/* ==========================================================================
   Spin Clear — cold-white stainless steel / deep blue control panel / alert orange
   Static site. No frameworks, no remote assets.
   ========================================================================== */

/* ------------------------------------------------------------------ fonts */
@font-face { font-family: 'Bitter'; src: url('../fonts/bitter.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('../fonts/source-sans-3.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jetbrains-mono.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }

/* ------------------------------------------------------------------ tokens */
:root {
  /* cold white */
  --steel-0: #FFFFFF; --steel-50: #EEF1F4; --steel-100: #DDE2E7;
  --steel-200: #C8D0D8; --steel-300: #B0BAC4; --steel-400: #8E9AA6; --steel-500: #6E7C88;
  /* deep blue panel */
  --panel-950: #0C1218; --panel-900: #1C2A3A; --panel-800: #2A3C50;
  --panel-700: #3A5068; --panel-600: #4E6680; --panel-500: #6A8298;
  /* alert orange */
  --alert-900: #7A2E08; --alert-700: #B8480F; --alert-500: #E8641F;
  --alert-400: #F58A3C; --alert-300: #FAAE72; --alert-200: #FCD2AC; --alert-100: #FDEBDC;
  /* standing water blue */
  --water-900: #1E4A6A; --water-700: #2E6A8A; --water-500: #4A8AAA;
  --water-300: #7AB0C8; --water-200: #A8D0E0; --water-100: #D0E8F0;
  /* warning red */
  --red-900: #5C1A14; --red-700: #8A2A20; --red-500: #C0392B; --red-300: #D65A4A; --red-200: #E88878;
  /* success green */
  --green-900: #1E4A2E; --green-700: #2E6A42; --green-500: #4A8A5A; --green-300: #7AAA88; --green-200: #A8C8B4;
  /* semantic */
  --warn-yellow: #D4A040; --info-blue: #4A8AAA; --ok-green: #4A8A5A; --err-red: #C0392B;
  /* text + lines */
  --ink: #1C2A3A; --ink-2: #5A6A7A; --ink-on-dark: #EEF1F4; --ink-on-dark-2: #C8D0D8;
  --line: #DDE2E7; --line-strong: #C8D0D8;
  /* shape */
  --r-sm: 4px; --r-card: 10px; --r-cta: 16px; --r-pill: 999px;
  --shadow-xs: 0 1px 2px rgba(28,42,58,.05);
  --shadow-sm: 0 2px 6px rgba(28,42,58,.07);
  --shadow-md: 0 6px 16px rgba(28,42,58,.08);
  --shadow-lg: 0 16px 36px rgba(28,42,58,.10);
  --t-fast: .16s ease; --t-move: .28s ease;
  --container: 1100px; --gutter: 22px;
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; padding-top: 88px;
  background: var(--steel-50); color: var(--ink);
  font: 400 16px/1.7 'Source Sans 3', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
/* brushed stainless steel + water stain, 3% */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    repeating-linear-gradient(115deg, rgba(28,42,58,.03) 0 1px, transparent 1px 5px),
    radial-gradient(ellipse 620px 300px at 78% 12%, rgba(74,138,170,.06), transparent 70%),
    radial-gradient(ellipse 500px 260px at 12% 68%, rgba(74,138,170,.045), transparent 72%);
}
body > * { position: relative; z-index: 1; }
img { max-width: 100%; display: block; }
a { color: var(--water-700); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--alert-700); }
p a, li a, td a { text-decoration: underline; text-decoration-color: var(--alert-300); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--alert-500); outline-offset: 2px; }
[hidden] { display: none !important; }

h1, h2, h3, h4 { font-family: 'Bitter', Rockwell, Georgia, serif; font-weight: 700; line-height: 1.2; letter-spacing: .005em; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
h3 { font-size: clamp(1.18rem, 2vw, 1.4rem); }
h4 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
blockquote { margin: 0; }

.eyebrow {
  display: inline-block; font-family: 'Source Sans 3', sans-serif; font-size: .72rem;
  font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--alert-500);
}
.eyebrow::before { content: '\25CE\00a0'; }
.serif { font-family: 'Bitter', Rockwell, Georgia, serif; }
.mono { font-family: 'JetBrains Mono', Consolas, Menlo, monospace; }
.lead { font-size: 1.08rem; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.small { font-size: .86rem; }

/* ------------------------------------------------------------------ layout */
.container { width: min(var(--container), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.container--narrow { width: min(820px, calc(100% - var(--gutter) * 2)); }
.container--wide { width: min(1280px, calc(100% - var(--gutter) * 2)); }
.section { margin: 56px 0; }
.section-sm { margin: 36px 0; }
.section-tight { margin: 40px 0 56px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head p { margin: 0; max-width: 620px; color: var(--ink-2); }
.section-title { margin-bottom: 4px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.stack > * + * { margin-top: 18px; }

/* ------------------------------------------------------------------ header */
.site-header { position: relative; z-index: 200; }
.brand-bar {
  position: sticky; top: 0; z-index: 200; height: 36px;
  background: var(--steel-50); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; transition: transform var(--t-move);
}
.brand-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(1280px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.brand { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.brand__mark {
  width: 28px; height: 28px; border-radius: 50%; background: var(--alert-500);
  display: grid; place-items: center; flex: 0 0 auto;
}
.brand__mark svg { width: 18px; height: 18px; display: block; }
.brand__name { font: 700 1.02rem/1 'Bitter', Rockwell, Georgia, serif; color: var(--panel-900); font-weight: 700; }
.brand__tag { font: 800 .52rem/1 'Source Sans 3', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--alert-500); display: block; margin-top: 2px; }
.brand-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--steel-0); color: var(--panel-900); display: grid; place-items: center;
  cursor: pointer; padding: 0; flex: 0 0 auto; transition: all var(--t-fast);
}
.icon-btn:hover { border-color: var(--alert-500); color: var(--alert-500); }
.icon-btn svg { width: 16px; height: 16px; display: block; }
.btn-3d {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 13px;
  border-radius: var(--r-pill); border: 1.5px solid var(--alert-500); color: var(--alert-700);
  font: 700 .72rem/1 'Source Sans 3', sans-serif; letter-spacing: .08em; text-transform: uppercase;
  background: transparent; white-space: nowrap;
}
.btn-3d:hover { background: var(--alert-500); color: var(--steel-0); }
.btn-3d svg { width: 13px; height: 13px; display: block; }
.hamburger { display: none; width: 38px; height: 38px; }

.door-nav {
  position: sticky; top: 36px; z-index: 190; height: 48px;
  background: var(--steel-100); border-bottom: 1px solid var(--line-strong);
  transition: top var(--t-move);
}
.door-nav__inner { width: min(1280px, calc(100% - var(--gutter) * 2)); margin-inline: auto; height: 100%; display: flex; align-items: center; }
.door-list { display: flex; align-items: flex-start; gap: 2px; height: 100%; }
.door-item { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 94px; }
.door {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto;
  border: 2px solid var(--steel-300); background: var(--steel-200);
  display: grid; place-items: center; position: relative; overflow: hidden;
  transition: background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.door::before {
  content: ''; position: absolute; inset: 3px; border-radius: 50%;
  background: linear-gradient(145deg, rgba(255,255,255,.62), rgba(110,124,136,.16) 60%, rgba(28,42,58,.10));
}
.door::after {
  content: ''; position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: var(--panel-800); opacity: .55; box-shadow: 0 0 0 3px rgba(28,42,58,.08);
}
.door-item:hover .door { background: var(--steel-100); border-color: var(--alert-500); }
.door-item.is-active .door {
  background: var(--alert-500); border-color: var(--panel-900);
  box-shadow: 0 0 12px rgba(232,100,31,.30);
}
.door-item.is-active .door::after { background: #fff; opacity: 1; box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.door__label {
  margin-top: 1px; padding: 0 12px; border-radius: var(--r-pill);
  font: 600 .70rem/1.5 'Source Sans 3', sans-serif; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-2); white-space: nowrap; transition: color var(--t-fast), background var(--t-fast);
}
.door-item:hover .door__label { color: var(--ink); }
.door-item.is-active .door__label { background: var(--alert-500); color: var(--steel-0); font-weight: 700; }
.door-link { position: absolute; inset: 0; z-index: 2; display: block; }
.door-link:focus-visible { outline-offset: -2px; }
.door-item.is-active .door-link { cursor: default; }

/* active-item lock dot is drawn with ::after; dropdown follows */
.door-dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(-6px);
  width: 268px; background: var(--steel-0); border: 1px solid var(--line);
  border-top: 2px solid var(--alert-500); border-radius: var(--r-card);
  box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden;
  transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast); z-index: 210;
}
.door-item.is-open .door-dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.door-dropdown a { display: block; padding: 9px 11px; border-radius: var(--r-sm); font-size: .88rem; color: var(--ink); }
.door-dropdown a:hover { background: var(--steel-50); color: var(--alert-700); }
.door-dropdown a span { display: block; font-size: .74rem; color: var(--ink-2); }
.door-dropdown__title { font: 800 .66rem/1.4 'Source Sans 3', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--alert-500); padding: 6px 11px 4px; }

.drawer { display: none; }
.drawer-backdrop { display: none; }
body.scrolled .brand-bar { transform: translateY(-100%); }
body.scrolled .door-nav { top: 0; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; min-height: 440px; border: 1px solid var(--line);
  border-radius: var(--r-card); overflow: hidden; background: var(--steel-0);
  box-shadow: var(--shadow-sm);
}
.hero__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(238,241,244,.97) 0%, rgba(238,241,244,.90) 45%, rgba(238,241,244,.30) 78%, rgba(238,241,244,.10) 100%); }
.hero__inner { position: relative; z-index: 2; padding: 48px 44px; max-width: 690px; min-height: 440px; display: flex; flex-direction: column; justify-content: center; }
.hero h1 { font-size: clamp(1.95rem, 4.2vw, 2.9rem); margin: 14px 0 12px; }
.hero .lead { font-size: 1.14rem; max-width: 520px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.kicker {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px; border-radius: var(--r-pill);
  background: var(--steel-0); border: 1px solid var(--line-strong);
  font: 800 .70rem/1.4 'Source Sans 3', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--alert-700);
}

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--r-pill); border: 1.5px solid transparent;
  font: 700 .9rem/1.2 'Source Sans 3', sans-serif; letter-spacing: .04em; text-transform: uppercase;
  cursor: pointer; text-align: center; transition: all var(--t-fast); min-height: 44px;
}
.btn svg { width: 15px; height: 15px; display: block; flex: 0 0 auto; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--alert-500); color: var(--panel-900); border-color: var(--alert-500); }
.btn--primary:hover { background: var(--alert-700); border-color: var(--alert-700); color: #fff; }
.btn--panel { background: var(--panel-900); color: var(--ink-on-dark); border-color: var(--panel-900); }
.btn--panel:hover { background: var(--panel-800); color: #fff; }
.btn--outline { background: var(--steel-0); color: var(--alert-700); border-color: var(--alert-500); }
.btn--outline:hover { background: var(--alert-100); color: var(--alert-900); }
.btn--ghost { background: transparent; color: var(--ink-on-dark); border-color: var(--panel-500); }
.btn--ghost:hover { border-color: var(--alert-400); color: var(--alert-300); }
.btn--danger { background: var(--red-500); color: #fff; border-color: var(--red-500); }
.btn--sm { padding: 8px 15px; font-size: .78rem; min-height: 40px; }
.btn--lg { padding: 14px 26px; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }
.btn-drain svg { transition: transform var(--t-fast); }
.btn-drain:hover svg { transform: translateY(2px); }

/* ------------------------------------------------------------------ cards */
.card {
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  background: var(--steel-0); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow-sm); color: var(--ink); cursor: pointer;
  transition: transform var(--t-move), box-shadow var(--t-move), border-color var(--t-move);
  text-decoration: none; min-width: 0;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--panel-700), transparent); opacity: .35;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--alert-500); color: var(--ink); }
.card:active { transform: translateY(-1px); }
.card:focus-visible { outline: 2px solid var(--alert-500); outline-offset: 2px; }
.card-media { aspect-ratio: 16 / 10; background: var(--steel-50); border-bottom: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; }
.card-media img, .card-media svg { width: 100%; height: 100%; object-fit: contain; transition: transform var(--t-move); }
.card:hover .card-media img, .card:hover .card-media svg { transform: scale(1.04); }
.card-body { padding: 18px; flex: 1 1 auto; }
.card-title { font: 700 1.06rem/1.3 'Bitter', Rockwell, Georgia, serif; margin: 0 0 7px; }
.card-desc { font-size: .9rem; color: var(--ink-2); margin: 0; line-height: 1.55; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 18px; border-top: 1px solid var(--line); }
.card-arrow { font-size: 1.1rem; color: var(--alert-500); line-height: 1; transition: transform var(--t-fast); }
.card:hover .card-arrow { transform: translateX(4px); }
.card--16x9 .card-media { aspect-ratio: 16 / 9; }

/* tags, chips, badges */
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--r-pill); font: 700 .68rem/1.5 'Source Sans 3', sans-serif; letter-spacing: .07em; text-transform: uppercase; }
.tag--orange { background: var(--alert-100); color: var(--alert-900); }
.tag--panel { background: var(--panel-900); color: var(--ink-on-dark); }
.tag--water { background: var(--water-100); color: var(--water-900); }
.tag--red { background: #FAE0DC; color: var(--red-900); }
.tag--green { background: #E0EEE4; color: var(--green-900); }
.tag--outline { background: transparent; border: 1px solid var(--line-strong); color: var(--ink-2); }
.chip { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--steel-0); color: var(--ink-2); font: 600 .8rem/1.4 'Source Sans 3', sans-serif; cursor: pointer; transition: all var(--t-fast); min-height: 36px; }
.chip:hover { border-color: var(--alert-500); color: var(--alert-700); }
.chip.is-active { background: var(--alert-500); border-color: var(--alert-500); color: var(--steel-0); }
.param-badge { display: inline-block; font: 500 .78rem/1.5 'JetBrains Mono', Consolas, monospace; background: var(--steel-50); border: 1px solid var(--panel-600); border-radius: var(--r-sm); padding: 1px 7px; color: var(--panel-900); }
.badge-3d { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: var(--r-pill); background: var(--alert-500); color: #fff; font: 800 .66rem/1.4 'Source Sans 3', sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.badge-3d svg { width: 11px; height: 11px; display: block; }
.difficulty-badge { display: inline-flex; padding: 3px 10px; border-radius: var(--r-pill); font: 800 .66rem/1.5 'JetBrains Mono', monospace; letter-spacing: .08em; }
.difficulty-badge[data-level="EASY"] { background: #E0EEE4; color: var(--green-900); }
.difficulty-badge[data-level="MEDIUM"] { background: #FAF0C4; color: #7A5210; }
.difficulty-badge[data-level="CALL A PRO"] { background: #FAE0DC; color: var(--red-900); }

/* diag cards */
.diag-card .card-body { padding-top: 20px; }
.diag-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--alert-500); display: grid; place-items: center; margin-bottom: 14px; }
.diag-icon svg { width: 26px; height: 26px; display: block; }

/* tool / part cards */
.part-card .card-media { background: var(--steel-50); }

/* sim card */
.sim-card { background: var(--panel-900); border-color: var(--panel-800); color: var(--ink-on-dark); }
.sim-card .card-title { color: #fff; }
.sim-card .card-desc { color: var(--ink-on-dark-2); }
.sim-card .card-foot { border-color: var(--panel-700); }
.sim-card .card-media { background: var(--panel-950); border-color: var(--panel-800); }

/* quote + qa cards */
.quote-card, .qa-card { border-left: 3px solid var(--alert-500); }
.quote-card .card-body { padding: 20px 18px 16px; }
.quote-card__mark { font: 700 2.6rem/.7 Georgia, serif; color: var(--alert-300); display: block; margin-bottom: 4px; }
.quote-card__text { font: 400 .96rem/1.6 'Source Sans 3', sans-serif; color: var(--ink); margin: 0 0 12px; }
.quote-card__src { font: 500 .74rem/1.5 'JetBrains Mono', monospace; color: var(--ink-2); }
.qa-card .card-body { padding: 18px; }
.qa-card__q { font: italic 400 .98rem/1.55 'Source Sans 3', sans-serif; margin: 10px 0 8px; color: var(--ink); }
.qa-card__src { font: 500 .72rem/1.5 'JetBrains Mono', monospace; color: var(--ink-2); display: block; margin-bottom: 12px; }
.qa-card__a { font-size: .86rem; line-height: 1.55; color: var(--ink-2); margin: 0; padding-top: 11px; border-top: 1px dashed var(--line-strong); }
.qa-card__a::before { content: '\2705\00a0'; }

/* blog cards */
.blog-meta { font: 500 .72rem/1.5 'JetBrains Mono', monospace; color: var(--ink-2); display: flex; gap: 10px; flex-wrap: wrap; }

/* teach card */
.teach-card .card-media { background: var(--steel-100); }
.teach-card__steps { display: flex; gap: 4px; margin-top: 10px; flex-wrap: wrap; }
.teach-card__dot { width: 18px; height: 4px; border-radius: 2px; background: var(--steel-200); }
.teach-card__dot.is-on { background: var(--alert-500); }

/* trust strip */
.trust-strip { background: var(--panel-900); color: var(--ink-on-dark); border-radius: var(--r-card); padding: 26px 0; }
.trust-strip .grid-4 { gap: 18px; }
.trust-item { display: flex; gap: 13px; align-items: flex-start; padding: 4px 18px; }
.trust-item + .trust-item { border-left: 1px solid var(--panel-700); }
.trust-item__icon { width: 34px; height: 34px; border-radius: 50%; background: var(--alert-500); color: #fff; display: grid; place-items: center; flex: 0 0 auto; }
.trust-item__icon svg { width: 18px; height: 18px; display: block; }
.trust-item h4 { color: #fff; font-size: .94rem; margin: 0 0 3px; font-family: 'Source Sans 3', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.trust-item p { margin: 0; font-size: .8rem; color: var(--ink-on-dark-2); line-height: 1.5; }

/* steps flow */
.steps-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; counter-reset: step; }
.steps-flow li { position: relative; background: var(--steel-0); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-sm); }
.steps-flow__num { position: absolute; top: 10px; left: 10px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; background: var(--alert-500); color: #fff; display: grid; place-items: center; font: 800 .82rem/1 'JetBrains Mono', monospace; }
.steps-flow__art { aspect-ratio: 16 / 10; background: var(--steel-50); border-bottom: 1px solid var(--line); display: grid; place-items: center; }
.steps-flow__art svg { width: 100%; height: 100%; }
.steps-flow__body { padding: 16px; }
.steps-flow__label { font: 800 .66rem/1.4 'Source Sans 3', sans-serif; letter-spacing: .14em; color: var(--alert-500); text-transform: uppercase; }
.steps-flow h4 { margin: 5px 0 5px; font-size: 1rem; }
.steps-flow p { margin: 0; font-size: .84rem; color: var(--ink-2); line-height: 1.5; }

/* data table */
.data-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--steel-0); box-shadow: var(--shadow-sm); }
.data-table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .88rem; }
.data-table thead th { background: var(--alert-500); color: #fff; text-align: left; padding: 12px 14px; font: 700 .76rem/1.4 'Source Sans 3', sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.data-table tbody td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.data-table tbody tr:hover { background: var(--alert-100); }
.data-table .src { font: 500 .74rem/1.5 'JetBrains Mono', monospace; color: var(--ink-2); }
.data-table .src a { color: var(--water-700); }

/* discussion tags */
.tag-scroll { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 14px; scrollbar-width: thin; }
.tag-scroll .card { flex: 0 0 auto; width: 268px; }
.tag-scroll .card-body { padding: 14px 16px; }
.tag-scroll .card-title { font-size: .94rem; font-family: 'Source Sans 3', sans-serif; font-weight: 600; }
.tag-scroll .card-foot { padding: 9px 16px; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--alert-500); border-radius: var(--r-cta); padding: 34px 38px; color: #fff; box-shadow: var(--shadow-md); }
.cta-band::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.10) 0 1px, transparent 1px 5px); pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: #FFF3E8; margin-bottom: 16px; max-width: 620px; }
.cta-band .btn--panel { background: var(--panel-900); }

/* ------------------------------------------------------------------ page hero */
.page-hero { position: relative; overflow: hidden; background: var(--panel-900); color: var(--ink-on-dark); border-bottom: 3px solid var(--alert-500); padding: 40px 0 44px; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 1px, transparent 1px 6px); pointer-events: none; }
.page-hero > .container { position: relative; z-index: 1; }
.breadcrumb { font: 500 .72rem/1.6 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-on-dark-2); margin-bottom: 14px; }
.breadcrumb a { color: var(--ink-on-dark-2); }
.breadcrumb a:hover { color: var(--alert-300); }
.breadcrumb span { color: var(--alert-300); }
.page-hero h1 { color: #fff; margin: 8px 0 10px; max-width: 860px; }
.page-hero .lead { color: var(--ink-on-dark-2); max-width: 760px; margin: 0; font-size: 1.06rem; }
.page-hero .eyebrow { color: var(--alert-300); }

/* content blocks */
.prose { max-width: 780px; }
.prose h2 { margin-top: 34px; }
.prose h3 { margin-top: 26px; }
.prose p, .prose li { color: var(--ink); }
.panel { background: var(--steel-0); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-sm); padding: 24px; }
.panel + .panel { margin-top: 20px; }
.panel h3 { margin-top: 0; }

/* notices */
.notice { border-radius: var(--r-card); padding: 14px 18px; font-size: .92rem; border: 1px solid transparent; margin: 0 0 18px; }
.notice--safety { background: #FAE0DC; border-color: var(--red-200); color: var(--red-900); }
.notice--info { background: var(--water-100); border-color: var(--water-300); color: var(--water-900); }
.notice--warn { background: #FAF0C4; border-color: var(--warn-yellow); color: #7A5210; }
.notice--neutral { background: var(--steel-100); border-color: var(--line-strong); color: var(--ink); }
.notice strong { font-weight: 700; }
.tip-box { border-left: 4px solid var(--alert-500); background: var(--steel-0); border-radius: var(--r-sm); padding: 12px 16px; margin: 0 0 16px; font-size: .9rem; box-shadow: var(--shadow-xs); }
.tip-box--warn { border-color: var(--red-500); }
.tip-box--note { border-color: var(--water-500); }
.tip-box--ok { border-color: var(--green-500); }
.tip-box__label { font: 800 .68rem/1.4 'Source Sans 3', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--alert-700); display: block; margin-bottom: 3px; }
.tip-box--warn .tip-box__label { color: var(--red-700); }
.tip-box--note .tip-box__label { color: var(--water-900); }
.tip-box--ok .tip-box__label { color: var(--green-700); }
.legal-note { background: var(--steel-100); border-left: 4px solid var(--panel-900); padding: 12px 16px; font: 400 .84rem/1.6 'JetBrains Mono', Consolas, monospace; color: var(--ink); border-radius: var(--r-sm); }
.empty-state { border: 2px dashed var(--line-strong); border-radius: var(--r-card); padding: 34px; text-align: center; color: var(--ink-2); background: var(--steel-0); }
.empty-state svg { width: 40px; height: 40px; margin: 0 auto 10px; display: block; }
.safety-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; background: #FAE0DC; border: 1px solid var(--red-200); border-left: 4px solid var(--red-500); border-radius: var(--r-sm); padding: 11px 16px; color: var(--red-900); font: 700 .8rem/1.5 'JetBrains Mono', monospace; letter-spacing: .05em; margin-bottom: 24px; }
.safety-strip svg { width: 18px; height: 18px; display: block; flex: 0 0 auto; }
.indicator { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: var(--r-pill); font: 700 .72rem/1.4 'JetBrains Mono', monospace; letter-spacing: .07em; }
.indicator::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.indicator--ok { background: #E0EEE4; color: var(--green-700); }
.indicator--warn { background: #FAF0C4; color: #7A5210; }
.indicator--bad { background: #FAE0DC; color: var(--red-700); }
.indicator--idle { background: var(--steel-100); color: var(--ink-2); }
.webgl-status { font: 700 .72rem/1.4 'JetBrains Mono', monospace; letter-spacing: .08em; padding: 4px 10px; border-radius: var(--r-pill); background: var(--steel-100); color: var(--ink-2); }
.webgl-status[data-state="READY"] { background: #E0EEE4; color: var(--green-700); }
.webgl-status[data-state="FALLBACK"] { background: #FAF0C4; color: #7A5210; }
.webgl-status[data-state="ERROR"] { background: #FAE0DC; color: var(--red-700); }

/* ------------------------------------------------------------------ forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font: 700 .78rem/1.4 'Source Sans 3', sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--steel-0); color: var(--ink); font: 400 .94rem/1.5 'Source Sans 3', sans-serif;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--alert-500); outline-offset: 1px; border-color: var(--alert-500); }
.field-hint { font-size: .78rem; color: var(--ink-2); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.result-box { background: var(--panel-900); color: var(--ink-on-dark); border-radius: var(--r-card); padding: 22px; border-left: 4px solid var(--alert-500); }
.result-box h3 { color: #fff; margin-top: 0; }
.result-box__num { font: 700 2.1rem/1.2 'Bitter', Georgia, serif; color: var(--alert-300); display: block; margin: 4px 0; }
.result-box ul { margin: 10px 0 0; padding-left: 1.2em; font-size: .9rem; color: var(--ink-on-dark-2); }
.result-box li { margin-bottom: 5px; }
.result-box__warn { margin-top: 14px; background: rgba(192,57,43,.22); border: 1px solid var(--red-300); color: #FFD9D2; border-radius: var(--r-sm); padding: 9px 12px; font-size: .86rem; }

/* ------------------------------------------------------------------ parts table */
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 18px; }
.filter-bar .field { margin: 0; min-width: 160px; flex: 1 1 160px; }
.parts-table { width: 100%; border-collapse: collapse; font-size: .88rem; background: var(--steel-0); }
.parts-table thead th { background: var(--panel-900); color: #fff; text-align: left; padding: 11px 13px; font: 700 .76rem/1.4 'Source Sans 3', sans-serif; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.parts-table th.sortable { cursor: pointer; user-select: none; }
.parts-table th.sortable:hover { color: var(--alert-300); }
.parts-table tbody td { padding: 11px 13px; border-top: 1px solid var(--line); }
.parts-table tbody tr:hover { background: var(--steel-50); }
.parts-row-detail td { background: var(--steel-50); color: var(--ink-2); font-size: .86rem; padding: 14px 18px !important; }
.row-toggle { background: transparent; border: 1px solid var(--line-strong); border-radius: var(--r-sm); color: var(--water-700); cursor: pointer; font: 700 .72rem/1.4 'JetBrains Mono', monospace; padding: 5px 9px; min-height: 32px; }
.row-toggle:hover { border-color: var(--alert-500); color: var(--alert-700); }

/* ------------------------------------------------------------------ blog */
.card.featured-post { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: 1fr auto; background: var(--steel-0); }
.card.featured-post .card-media { grid-column: 1; grid-row: 1 / 3; aspect-ratio: auto; height: 100%; min-height: 250px; border-bottom: 0; border-right: 1px solid var(--line); }
.card.featured-post .card-body { grid-column: 2; grid-row: 1; padding: 26px; display: flex; flex-direction: column; justify-content: center; }
.card.featured-post .card-foot { grid-column: 2; grid-row: 2; }
.card.featured-post .card-title { font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
.toc { background: var(--steel-0); border: 1px solid var(--line); border-left: 3px solid var(--alert-500); border-radius: var(--r-card); padding: 16px 20px; margin-bottom: 26px; }
.toc h4 { margin: 0 0 8px; font-size: .86rem; text-transform: uppercase; letter-spacing: .1em; }
.toc ol { margin: 0; padding-left: 1.2em; font-size: .88rem; }
.toc li { margin-bottom: 3px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; font: 500 .76rem/1.5 'JetBrains Mono', monospace; color: var(--ink-2); margin-bottom: 22px; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 26px; }
.pagination button { min-width: 40px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line-strong); background: var(--steel-0); border-radius: var(--r-sm); cursor: pointer; font: 700 .82rem/1 'JetBrains Mono', monospace; color: var(--ink); }
.pagination button.is-active { background: var(--alert-500); border-color: var(--alert-500); color: #fff; }
.pagination button:hover { border-color: var(--alert-500); }

/* ------------------------------------------------------------------ teach player */
.teach-embed { margin: 0 0 26px; background: var(--steel-0); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-sm); overflow: hidden; }
.teach-embed__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; background: var(--panel-900); color: #fff; flex-wrap: wrap; }
.teach-embed__title { font: 700 .82rem/1.4 'Bitter', Georgia, serif; letter-spacing: .03em; }
.teach-embed__engine { font: 500 .66rem/1.4 'JetBrains Mono', monospace; color: var(--alert-300); letter-spacing: .06em; text-transform: uppercase; }
.teach-embed__stage { position: relative; background: var(--steel-50); aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); }
.teach-embed__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.teach-embed__art svg { width: 100%; height: 100%; display: block; }
.teach-embed__hotspot { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: var(--alert-500); border: 3px solid #fff; box-shadow: 0 0 0 4px rgba(232,100,31,.30), 0 2px 8px rgba(28,42,58,.25); cursor: help; }
.teach-embed__hotspot::after { content: attr(data-n); position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font: 800 .72rem/1 'JetBrains Mono', monospace; }
.teach-embed__hotspot.animate__pulse { animation: sc-pulse 1.8s ease-in-out infinite; }
.teach-embed__badge { position: absolute; top: 12px; left: 12px; background: var(--alert-500); color: #fff; padding: 4px 11px; border-radius: var(--r-pill); font: 800 .7rem/1.4 'JetBrains Mono', monospace; letter-spacing: .08em; }
.teach-embed__predict { position: absolute; bottom: 12px; left: 12px; right: 12px; background: rgba(28,42,58,.94); color: #fff; padding: 9px 13px; border-radius: var(--r-sm); font-size: .86rem; }
.teach-embed__predict button { background: var(--alert-500); border: 0; color: #fff; border-radius: var(--r-pill); padding: 4px 12px; margin-left: 8px; cursor: pointer; font: 700 .76rem/1.4 'Source Sans 3', sans-serif; min-height: 32px; }
.teach-embed__foot { padding: 16px 18px; }
.teach-embed__step-title { font: 700 1.02rem/1.3 'Bitter', Georgia, serif; margin: 0 0 5px; }
.teach-embed__caption { font-size: .94rem; color: var(--ink-2); margin: 0 0 14px; min-height: 1.5em; }
.teach-embed__controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.teach-embed__controls .btn { min-width: 44px; min-height: 44px; }
.teach-embed__controls .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.teach-embed__predict button { min-height: 44px; }
.teach-embed__progress { flex: 1 1 auto; display: flex; gap: 4px; min-width: 120px; }
.teach-embed__progress i { flex: 1; height: 5px; border-radius: 3px; background: var(--steel-200); }
.teach-embed__progress i.is-on { background: var(--alert-500); }
.teach-embed__counter { font: 700 .76rem/1.4 'JetBrains Mono', monospace; color: var(--ink-2); white-space: nowrap; }
.teach-embed__note { margin-top: 12px; font: 500 .72rem/1.5 'JetBrains Mono', monospace; color: var(--ink-2); }
.teach-embed__discrete { display: inline-flex; align-items: center; gap: 6px; background: var(--water-100); color: var(--water-900); border-radius: var(--r-pill); padding: 3px 10px; font: 700 .68rem/1.4 'JetBrains Mono', monospace; }

/* ------------------------------------------------------------------ home 3D-like preview */
.preview-block { background: var(--panel-900); border-radius: var(--r-card); overflow: hidden; color: var(--ink-on-dark); }
.preview-block__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 0; }
.preview-stage { position: relative; min-height: 380px; background: radial-gradient(circle at 50% 40%, #2A3C50, #0C1218 72%); display: grid; place-items: center; overflow: hidden; perspective: 900px; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.preview-stage img { -webkit-user-drag: none; user-drag: none; pointer-events: none; }
.preview-stage:active { cursor: grabbing; }
.preview-stage__hint { position: absolute; left: 14px; bottom: 12px; font: 500 .7rem/1.4 'JetBrains Mono', monospace; color: var(--ink-on-dark-2); letter-spacing: .06em; }
.preview-stack { position: relative; width: 260px; height: 260px; transform-style: preserve-3d; transition: transform .12s linear; }
.preview-layer { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2,.9,.3,1.2), opacity .3s ease; cursor: pointer; }
.preview-layer svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 10px 14px rgba(0,0,0,.4)); }
.preview-layer__name { position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 700 .68rem/1.4 'JetBrains Mono', monospace; color: var(--alert-300); background: rgba(12,18,24,.85); padding: 3px 9px; border-radius: var(--r-pill); }
.preview-stack[data-exploded="1"] .preview-layer { opacity: .95; }
/* The exploded discs are scaled to .5; counter-scale the caption so it stays
   legible, and tuck it just under each smaller disc. */
.preview-stack[data-exploded="1"] .preview-layer__name {
  transform: translateX(-50%) scale(1.85);
  bottom: -46px;
}
.preview-block__side { padding: 32px 34px; display: flex; flex-direction: column; justify-content: center; }
.preview-block__side h2 { color: #fff; }
.preview-block__side p { color: var(--ink-on-dark-2); }
.preview-block__side .eyebrow { color: var(--alert-300); }
.preview-layer-list { list-style: none; padding: 0; margin: 16px 0; }
.preview-layer-list li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--panel-700); font-size: .88rem; color: var(--ink-on-dark-2); cursor: pointer; }
.preview-layer-list li:hover, .preview-layer-list li.is-active { color: #fff; }
.preview-layer-list b { font: 700 .72rem/1 'JetBrains Mono', monospace; color: var(--alert-500); width: 22px; }
.preview-block__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* ------------------------------------------------------------------ teardown page */
.teardown-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.sim-shell { position: relative; background: var(--panel-950); border: 1px solid var(--panel-800); border-radius: var(--r-card); overflow: hidden; min-height: 480px; }
.sim-canvas-wrap { position: relative; width: 100%; aspect-ratio: 16 / 10; background: radial-gradient(circle at 50% 42%, #24374B, #0C1218 74%); }
.sim-canvas-wrap canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.sim-canvas-wrap [data-pump-labels] { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.sim-canvas-wrap canvas:active { cursor: grabbing; }
.sim-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(12,18,24,.92); z-index: 5; padding: 24px; }
.sim-overlay__box { width: min(360px, 100%); text-align: center; color: #fff; }
.sim-overlay__box h3 { color: #fff; margin: 12px 0 6px; }
.sim-overlay__box p { color: var(--ink-on-dark-2); font-size: .88rem; }
.sim-progress { height: 6px; border-radius: 4px; background: var(--panel-700); overflow: hidden; margin: 14px 0; }
.sim-progress i { display: block; height: 100%; width: 12%; background: var(--alert-500); border-radius: 4px; transition: width .3s ease; }
.sim-skeleton { display: flex; gap: 10px; justify-content: center; margin-bottom: 8px; }
.sim-skeleton i { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--panel-600); background: rgba(110,130,152,.15); animation: sc-pulse 1.4s ease-in-out infinite; }
.sim-skeleton i:nth-child(2) { animation-delay: .15s; } .sim-skeleton i:nth-child(3) { animation-delay: .3s; } .sim-skeleton i:nth-child(4) { animation-delay: .45s; }
.sim-error { background: #FAE0DC; border: 1px solid var(--red-200); color: var(--red-900); border-radius: var(--r-card); padding: 18px; }
.sim-error h3 { color: var(--red-900); }
.sim-fallback { padding: 18px; background: var(--steel-0); }
.sim-fallback img { width: 100%; height: auto; }
.sim-fallback__layers { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.sim-fallback__layers .btn { transition: transform .28s ease, background .16s ease; }
.sim-fallback__layers .btn.is-active { background: var(--alert-500); border-color: var(--alert-500); color: #fff; }
.sim-fallback[data-exploded="1"] .sim-fallback__layers .btn:nth-child(1) { transform: translateY(-10px); }
.sim-fallback[data-exploded="1"] .sim-fallback__layers .btn:nth-child(2) { transform: translateY(-3px); }
.sim-fallback[data-exploded="1"] .sim-fallback__layers .btn:nth-child(3) { transform: translateY(4px); }
.sim-fallback[data-exploded="1"] .sim-fallback__layers .btn:nth-child(4) { transform: translateY(11px); }
.sim-toolbar { display: flex; gap: 9px; flex-wrap: wrap; padding: 14px; border-top: 1px solid var(--panel-800); background: var(--panel-900); align-items: center; }
.sim-toolbar .btn { min-height: 40px; padding: 9px 15px; font-size: .76rem; }
.sim-toolbar__spacer { flex: 1 1 auto; }
.sim-legend { display: flex; gap: 14px; flex-wrap: wrap; padding: 10px 14px; background: var(--panel-950); color: var(--ink-on-dark-2); font: 500 .72rem/1.5 'JetBrains Mono', monospace; }
.sim-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sim-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.sim-panel { background: var(--steel-0); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-sm); padding: 20px; }
.sim-panel h3 { margin-top: 0; }
.sim-panel__status { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.sim-panel dl { margin: 0; }
.sim-panel dt { font: 800 .68rem/1.4 'Source Sans 3', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--alert-700); margin-top: 14px; }
.sim-panel dd { margin: 3px 0 0; font-size: .9rem; color: var(--ink); }
.sim-panel__layers { list-style: none; padding: 0; margin: 16px 0 0; }
.sim-panel__layers li { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 6px; cursor: pointer; font-size: .86rem; background: var(--steel-0); }
.sim-panel__layers li:hover { border-color: var(--alert-500); }
.sim-panel__layers li.is-active { background: var(--alert-100); border-color: var(--alert-500); font-weight: 700; }
.sim-panel__layers b { font: 700 .72rem/1 'JetBrains Mono', monospace; color: var(--alert-700); }
.sim-note { font: 500 .72rem/1.6 'JetBrains Mono', monospace; color: var(--ink-2); margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.sim-3d-label { position: absolute; transform: translate(-50%, -50%); background: rgba(12,18,24,.88); color: #fff; border: 1px solid var(--alert-500); border-radius: var(--r-pill); padding: 3px 9px; font: 700 .68rem/1.4 'JetBrains Mono', monospace; white-space: nowrap; pointer-events: none; z-index: 3; }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--panel-950); color: var(--ink-on-dark-2); margin-top: 72px; padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 34px; }
.footer-col h4 { color: #fff; font: 700 .8rem/1.4 'Source Sans 3', sans-serif; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 7px; font-size: .88rem; }
.footer-col a { color: var(--ink-on-dark-2); }
.footer-col a:hover { color: var(--alert-300); }
.footer-brand .brand__name { color: #fff; }
.footer-brand p { font-size: .84rem; line-height: 1.6; margin: 12px 0; max-width: 300px; }
.footer-icons { display: flex; gap: 9px; }
.footer-icons span { width: 30px; height: 30px; border: 1px solid var(--panel-700); border-radius: 50%; display: grid; place-items: center; }
.footer-icons svg { width: 15px; height: 15px; display: block; }
.footer-version { font: 500 .7rem/1.5 'JetBrains Mono', monospace; color: var(--panel-500); margin-top: 12px; }
.subscribe { display: flex; gap: 7px; margin-top: 10px; flex-wrap: wrap; }
.subscribe input { flex: 1 1 140px; min-width: 0; padding: 9px 11px; border: 1px solid var(--panel-700); background: var(--panel-900); color: #fff; border-radius: var(--r-sm); font-size: .84rem; }
.subscribe button { min-height: 40px; }
.footer-disclaimer { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; margin-top: 36px; padding: 22px 0; border-top: 1px solid var(--panel-800); }
.safety-box { display: flex; gap: 14px; border: 1px solid var(--alert-700); border-radius: var(--r-card); padding: 16px; background: rgba(232,100,31,.07); }
.safety-box svg { width: 26px; height: 26px; flex: 0 0 auto; color: var(--alert-400); }
.safety-box h4 { color: var(--alert-300); font-size: .84rem; margin: 0 0 6px; }
.safety-box p, .safety-box li { font-size: .8rem; line-height: 1.55; margin: 0; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 0 24px; border-top: 1px solid var(--panel-800); font-size: .8rem; }
.footer-bottom nav { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-bottom a { color: var(--ink-on-dark-2); }
.footer-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--alert-500); color: #fff; padding: 5px 12px; border-radius: var(--r-pill); font: 800 .68rem/1.4 'JetBrains Mono', monospace; letter-spacing: .08em; }

/* ------------------------------------------------------------------ misc */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--alert-500); color: #fff; padding: 10px 16px; z-index: 999; }
.skip-link:focus { left: 12px; top: 12px; }
.search-box { display: flex; gap: 8px; margin-bottom: 22px; }
.search-box input { flex: 1 1 auto; min-width: 0; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--steel-0); font-size: 1rem; }
.search-result { padding: 18px 0; border-bottom: 1px solid var(--line); }
.search-result h3 { margin: 0 0 4px; font-size: 1.14rem; }
.search-result p { margin: 0 0 5px; font-size: .9rem; color: var(--ink-2); }
.search-result__url { font: 500 .72rem/1.4 'JetBrains Mono', monospace; color: var(--water-700); }
.divider { height: 1px; background: var(--line); margin: 28px 0; }
.inline-list { display: flex; gap: 10px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }

@keyframes sc-pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.14); opacity: .82; } }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .teardown-layout { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hamburger { display: grid; }
  .door-nav { display: none; }
  body { padding-top: 36px; }
  .drawer-backdrop { display: block; position: fixed; inset: 0; background: rgba(12,18,24,.5); z-index: 240; opacity: 0; visibility: hidden; transition: opacity var(--t-fast), visibility var(--t-fast); }
  body.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; }
  .drawer { display: block; position: fixed; top: 0; right: 0; bottom: 0; width: min(310px, 86vw); background: var(--steel-50); z-index: 250; transform: translateX(102%); transition: transform var(--t-move); overflow-y: auto; padding: 18px; box-shadow: var(--shadow-lg); }
  body.drawer-open .drawer { transform: translateX(0); }
  .drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
  .drawer__head h4 { margin: 0; }
  .drawer__list { list-style: none; margin: 0; padding: 0; }
  .drawer__list > li { border-bottom: 1px solid var(--line); }
  .drawer__link { display: flex; align-items: center; gap: 13px; padding: 11px 6px; font: 700 .92rem/1.4 'Source Sans 3', sans-serif; color: var(--ink); text-transform: uppercase; letter-spacing: .06em; }
  .drawer__link:hover { color: var(--alert-700); }
  .drawer__door { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--steel-300); background: var(--steel-200); flex: 0 0 auto; display: grid; place-items: center; position: relative; }
  .drawer__door::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--panel-800); opacity: .5; }
  .drawer__link.is-active .drawer__door { background: var(--alert-500); border-color: var(--panel-900); }
  .drawer__link.is-active .drawer__door::after { background: #fff; opacity: 1; }
  .drawer__sub { list-style: none; margin: 0 0 8px 43px; padding: 0; }
  .drawer__sub a { display: block; padding: 5px 0; font-size: .82rem; color: var(--ink-2); }
  .drawer__sub a:hover { color: var(--alert-700); }
  .preview-block__inner { grid-template-columns: minmax(0, 1fr); }
  .card.featured-post { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; }
  .card.featured-post .card-media { grid-column: 1; grid-row: 1; border-right: 0; border-bottom: 1px solid var(--line); min-height: 210px; }
  .card.featured-post .card-body { grid-column: 1; grid-row: 2; }
  .card.featured-post .card-foot { grid-column: 1; grid-row: 3; }
  .footer-disclaimer { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .grid-2, .grid-3, .grid-4, .grid-auto, .steps-flow, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 440px; }
  .hero__inner { padding: 30px 22px; }
  .hero__shade { background: linear-gradient(90deg, rgba(238,241,244,.97), rgba(238,241,244,.82)); }
  .section { margin: 40px 0; }
  .trust-strip .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-item + .trust-item { border-left: 0; }
  .cta-band { padding: 26px 22px; }
  .preview-stage { min-height: 300px; }
  .preview-stack { width: 200px; height: 200px; }
  .preview-block__side { padding: 24px 22px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .brand__tag { display: none; }
  .sim-canvas-wrap { aspect-ratio: 4 / 3; }
  .teach-embed__stage { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
