/* ============================================================
   LogicVault — unofficial Profile Perfect guide
   Design system v3 · "Editorial Vault"
   Warm paper + ink + a single pine accent + restrained ochre.
   Fraunces (display) · Inter (body) · IBM Plex Mono (labels/numbers).
   No rainbow gradients, no blurred blobs — flat colour + hairline rules.
   ============================================================ */

:root {
  color-scheme: light;

  /* baseline + spacing (8px) */
  --bl: 8px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 40px; --s8: 48px; --s9: 64px; --s10: 80px; --s11: 96px;

  /* warm neutrals */
  --paper: #f4f1ea;
  --surface: #ffffff;
  --surface-2: #faf8f2;
  --ink: #211f1c;
  --ink-2: #3a362e;
  --muted: #6b655a;
  --faint: #9a9384;
  --line: #e7e1d4;
  --line-strong: #d7cebb;

  /* brand — pine + ochre */
  --accent: #1f5d4c;
  --accent-ink: #16493b;
  --accent-wash: #e8efe9;
  --accent-line: #cadfd2;
  --highlight: #b4541f;
  --highlight-ink: #8f3f16;
  --highlight-wash: #f4e8dd;
  --highlight-line: #e7d3c1;

  /* dark surfaces */
  --dark: #211f1c;
  --dark-ink: #b9b3a4;

  /* radii (tight, editorial) */
  --r-sm: 6px; --r: 10px; --r-lg: 14px; --r-xl: 18px; --r-pill: 999px;

  /* elevation (warm-tinted, subtle) */
  --shadow-sm: 0 1px 2px rgba(33,31,28,.05);
  --shadow: 0 2px 4px rgba(33,31,28,.04), 0 10px 24px -14px rgba(33,31,28,.16);
  --shadow-lg: 0 24px 44px -22px rgba(33,31,28,.26);
  --ring: 0 0 0 3px rgba(31,93,76,.26);

  /* type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --fs-xs: 12.5px; --fs-sm: 14px; --fs-base: 16px; --fs-md: 18px;
  --fs-lg: 21px; --fs-xl: 27px; --fs-2xl: 34px;
  --lh-tight: 1.08; --lh-head: 1.18; --lh-body: 1.62;
}

/* ---------- reset / base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: var(--lh-body);
  font-size: var(--fs-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-head);
  letter-spacing: -.012em;
  color: var(--ink);
  text-wrap: balance;
}
a { color: var(--accent-ink); text-decoration: none; transition: color .16s ease; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button, a, input, select, textarea { touch-action: manipulation; }
::selection { background: var(--accent-wash); color: var(--accent-ink); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }
[id] { scroll-margin-top: 96px; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 var(--s5); }

/* skip link */
.skip-link {
  position: absolute; left: var(--s3); top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); font-family: var(--font-mono);
  font-size: var(--fs-sm); padding: 10px 16px; border-radius: var(--r-sm);
  transition: top .16s ease;
}
.skip-link:focus { top: var(--s3); text-decoration: none; }

/* ============================================================
   header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,241,234,.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: var(--s5); height: 68px; }
.logo { display: flex; align-items: center; gap: 11px; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -.01em; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 8px; background: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--paper); font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: .5px;
}
.logo small { font-family: var(--font-body); font-size: 11px; color: var(--faint); font-weight: 500; display: block; line-height: 1.15; letter-spacing: .01em; }
.nav-links { display: flex; gap: var(--s5); margin-left: var(--s3); }
.nav-links a {
  position: relative; color: var(--muted); font-family: var(--font-mono);
  font-weight: 500; font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; padding: 6px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--accent-ink); }
.nav-links a.active::after { transform: scaleX(1); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: var(--s3); }
.lang-switch {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted);
  padding: 7px 13px; border-radius: var(--r-sm); font-family: var(--font-mono);
  font-size: var(--fs-xs); font-weight: 500; letter-spacing: .04em;
  transition: border-color .16s ease, color .16s ease;
}
.lang-switch::before { content: "\1F310"; font-size: 12px; line-height: 1; }
.lang-switch:hover { border-color: var(--accent); color: var(--accent-ink); text-decoration: none; }

/* ============================================================
   hero (home)
   ============================================================ */
.hero { position: relative; padding: var(--s11) 0 var(--s10); text-align: center; }
.hero > .container { position: relative; z-index: 1; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.kicker::before, .kicker::after { content: ""; width: 26px; height: 1px; background: var(--line-strong); }
.kicker b { color: var(--accent-ink); font-weight: 600; }
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem); font-weight: 600; margin: var(--s5) auto var(--s4);
  max-width: 16ch; line-height: var(--lh-tight); letter-spacing: -.025em;
}
.grad-text { color: var(--accent); font-style: italic; font-weight: 500; }
.hero .sub { color: var(--muted); font-size: var(--fs-md); max-width: 46ch; margin: 0 auto var(--s7); line-height: 1.6; }
.search-bar {
  display: flex; max-width: 520px; margin: 0 auto var(--s6);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r);
  padding: 6px 6px 6px 18px; box-shadow: var(--shadow-sm);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.search-bar:focus-within { border-color: var(--accent); box-shadow: var(--shadow), var(--ring); }
.search-bar input { flex: 1; border: 0; outline: 0; font-size: var(--fs-base); font-family: inherit; color: var(--ink); background: transparent; min-width: 0; }
.search-bar input::placeholder { color: var(--faint); }
.search-bar button {
  border: 0; background: var(--ink); color: var(--paper); font-weight: 600; font-size: 15px;
  padding: 11px 24px; border-radius: var(--r-sm); cursor: pointer; font-family: inherit;
  transition: background .16s ease, transform .12s ease;
}
.search-bar button:hover { background: var(--accent-ink); }
.search-bar button:active { transform: translateY(1px); }
.trust-chips { display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 7px 14px 7px 7px; font-size: var(--fs-sm); font-weight: 500; color: var(--muted);
}
.chip .dot { background: var(--accent-wash); color: var(--accent-ink); border: 1px solid var(--accent-line);
  font-family: var(--font-mono); display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--fs-xs); font-weight: 600; line-height: 1; padding: 3px 8px; border-radius: var(--r-sm); min-width: 24px; }

/* ============================================================
   sections
   ============================================================ */
.section { padding: var(--s10) 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { margin-bottom: var(--s7); }
.sec-kicker { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--highlight-ink); }
.sec-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 600; margin-top: var(--s2); letter-spacing: -.02em; }
.sec-head p { color: var(--muted); margin-top: var(--s2); max-width: 44ch; }
.sec-head.center { text-align: center; }
.sec-head.center p { margin-left: auto; margin-right: auto; }

/* ============================================================
   cards
   ============================================================ */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(256px, 1fr)); gap: var(--s4); }
.card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s5); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column; color: var(--ink);
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .26s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent-line); text-decoration: none; }
.card:hover::before { transform: scaleX(1); }
.card h3 { font-size: var(--fs-md); font-weight: 600; margin-bottom: var(--s1); line-height: 1.28; }
.card p { color: var(--muted); font-size: var(--fs-sm); flex: 1; line-height: 1.55; }
.card .go { margin-top: var(--s4); font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-xs); letter-spacing: .04em; text-transform: uppercase; color: var(--accent-ink); display: inline-flex; align-items: center; gap: 6px; }
.card:hover .go { gap: 9px; }
.lvl-num {
  width: 52px; height: 52px; border-radius: var(--r); background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 600; font-size: var(--fs-lg);
  color: var(--accent-ink); margin-bottom: var(--s4);
  border: 1px solid var(--line);
}

/* ============================================================
   story
   ============================================================ */
.story-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s7); margin-bottom: var(--s4); box-shadow: var(--shadow-sm); }
.story-block header { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s3); margin-bottom: var(--s1); }
.story-block h3 { font-size: var(--fs-xl); font-weight: 600; letter-spacing: -.02em; }
.story-block .tag { margin-left: auto; }
.story-block > p { color: var(--muted); margin-bottom: var(--s5); max-width: 62ch; }
.episode-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); gap: var(--s2); list-style: none; }
.episode-list li a, .episode-list li span.ep {
  display: flex; align-items: center; gap: var(--s2); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 13px;
  font-size: var(--fs-sm); font-weight: 500; color: var(--ink); transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.episode-list li a:hover { border-color: var(--accent-line); text-decoration: none; background: var(--surface); transform: translateX(2px); }
.episode-list .no { color: var(--accent-ink); font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 600; font-variant-numeric: tabular-nums; background: var(--accent-wash); border-radius: var(--r-sm); padding: 2px 7px; }
.tag {
  display: inline-block; background: var(--highlight-wash); border: 1px solid var(--highlight-line);
  color: var(--highlight-ink); border-radius: var(--r-sm); padding: 3px 11px;
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .02em;
}

/* ============================================================
   level number grid
   ============================================================ */
.group-block { margin-bottom: var(--s7); }
.group-block h3 { font-family: var(--font-mono); font-size: var(--fs-md); font-weight: 600; margin-bottom: var(--s3); display: flex; align-items: center; gap: var(--s2); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.num-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 6px; }
.num-grid a, .num-grid span {
  display: flex; align-items: center; justify-content: center; height: 42px;
  border-radius: var(--r-sm); font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: 500; font-variant-numeric: tabular-nums;
}
.num-grid a { background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); transition: border-color .14s ease, color .14s ease, transform .14s ease, box-shadow .14s ease; }
.num-grid a:hover { border-color: var(--accent); color: var(--accent-ink); text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.num-grid span { background: #ece7db; border: 1px solid transparent; color: #b3ab99; }

/* ============================================================
   article / prose
   ============================================================ */
.prose { font-size: var(--fs-md); color: var(--ink-2); max-width: 68ch; }
.prose h2 { font-size: var(--fs-xl); font-weight: 600; margin: var(--s9) 0 var(--s3); letter-spacing: -.02em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--fs-lg); font-weight: 600; margin: var(--s6) 0 var(--s2); }
.prose p { margin-bottom: var(--s3); line-height: 1.72; }
.prose ul, .prose ol { margin: 0 0 var(--s4) 0; padding-left: 22px; }
.prose li { margin-bottom: var(--s2); line-height: 1.66; }
.prose li strong { color: var(--ink); font-weight: 600; }
.prose a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--accent-line); }
.prose a:hover { text-decoration-color: var(--accent); }
.prose .lead { font-size: var(--fs-lg); color: var(--muted); line-height: 1.55; }

/* ============================================================
   level detail
   ============================================================ */
.page-hero { padding: var(--s8) 0 var(--s5); }
.breadcrumb { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--faint); letter-spacing: .02em; margin-bottom: var(--s3); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent-ink); text-decoration: none; }
.breadcrumb .sep { margin: 0 var(--s2); color: var(--line-strong); }
.page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 600; letter-spacing: -.025em; margin-bottom: var(--s2); }
.page-hero .sub { color: var(--muted); max-width: 48ch; font-size: var(--fs-md); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s7); align-items: start; padding-bottom: var(--s10); }
.detail-layout > aside { position: sticky; top: 92px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s6); margin-bottom: var(--s4); box-shadow: var(--shadow-sm); }
.panel > h2 { font-size: var(--fs-lg); font-weight: 600; margin-bottom: var(--s1); display: flex; align-items: center; gap: var(--s2); }
.panel > h2::before { content: ""; width: 4px; height: 20px; border-radius: 2px; background: var(--accent); flex-shrink: 0; }
.panel > .note { color: var(--muted); font-size: var(--fs-sm); margin-bottom: var(--s5); padding-left: 12px; }

/* answer table */
table.answer-grid { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-sm); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.answer-grid th { background: var(--accent-wash); text-align: left; padding: 12px 15px; font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-ink); border-bottom: 1px solid var(--accent-line); white-space: nowrap; }
.answer-grid td { padding: 12px 15px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.answer-grid tbody tr { transition: background .14s ease; }
.answer-grid tbody tr:nth-child(even) { background: var(--surface-2); }
.answer-grid tbody tr:hover { background: var(--accent-wash); }
.answer-grid tbody tr:last-child td { border-bottom: 0; }
.answer-grid td:first-child { font-weight: 600; white-space: nowrap; color: var(--ink); }

/* steps timeline */
.steps { list-style: none; counter-reset: step; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 var(--s5) 52px; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: var(--r-sm); background: var(--ink);
  color: var(--paper); font-family: var(--font-mono); font-weight: 600; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.steps > li::after { content: ""; position: absolute; left: 17px; top: 40px; bottom: 6px; width: 1px; background: var(--line-strong); }
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps h3 { font-size: var(--fs-md); font-weight: 600; margin-bottom: var(--s1); }
.steps p { color: var(--muted); font-size: 15px; line-height: 1.6; }

/* hints */
.hint { display: flex; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px dashed var(--line); }
.hint:last-child { border-bottom: 0; padding-bottom: 0; }
.hint .h-tag { flex-shrink: 0; align-self: flex-start; white-space: nowrap; }
.hint p { color: var(--muted); font-size: 15px; line-height: 1.6; }

/* traps */
.trap { background: var(--highlight-wash); border: 1px solid var(--highlight-line); border-left: 3px solid var(--highlight); border-radius: var(--r-sm); padding: var(--s3) var(--s4); margin-bottom: var(--s2); }
.trap:last-child { margin-bottom: 0; }
.trap h4 { font-size: 15px; color: var(--highlight-ink); margin-bottom: 3px; font-weight: 600; }
.trap p { font-size: var(--fs-sm); color: #6f5320; line-height: 1.55; }

/* prev / next */
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin: var(--s5) 0 0; }
.prevnext a {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3) var(--s4);
  display: flex; flex-direction: column; gap: 2px; color: var(--ink); font-weight: 600; font-size: 15px;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.prevnext a:hover { border-color: var(--accent-line); text-decoration: none; box-shadow: var(--shadow); transform: translateY(-2px); }
.prevnext .dir { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--faint); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.prevnext a.next { text-align: right; }

/* sidebar cards */
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s5); margin-bottom: var(--s3); box-shadow: var(--shadow-sm); }
.side-card h3 { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: var(--s3); }
.side-card ul { list-style: none; }
.side-card li { margin-bottom: var(--s2); }
.side-card li:last-child { margin-bottom: 0; }
.side-card li a { display: flex; gap: var(--s2); align-items: center; color: var(--ink); font-weight: 500; font-size: 15px; }
.side-card li a:hover { color: var(--accent-ink); text-decoration: none; }
.side-card li a .lvl-num { width: 40px; height: 40px; font-size: 15px; border-radius: var(--r-sm); margin: 0; flex-shrink: 0; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 15px;
  padding: 12px 24px; border-radius: var(--r-sm); border: 0; cursor: pointer; font-family: inherit;
  box-shadow: var(--shadow-sm); transition: background .16s ease, transform .12s ease, box-shadow .16s ease;
}
.btn:hover { background: var(--accent-ink); text-decoration: none; box-shadow: var(--shadow); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); box-shadow: none; }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.btn.full { width: 100%; }

/* ============================================================
   faq
   ============================================================ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: var(--s2); overflow: hidden; transition: border-color .16s ease, box-shadow .16s ease; }
.faq details:hover { border-color: var(--line-strong); }
.faq details[open] { border-color: var(--accent-line); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; padding: var(--s4) var(--s5); font-weight: 600; font-size: 15.5px; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 20px; line-height: 1; color: var(--accent); font-weight: 500; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 var(--s5) var(--s4); color: var(--muted); font-size: 15px; line-height: 1.65; }

/* ============================================================
   cta band
   ============================================================ */
.cta-band { background: var(--dark); border-radius: var(--r-xl); padding: var(--s10) var(--s8); text-align: center; color: #fff; position: relative; overflow: hidden; border-top: 2px solid var(--accent); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 600; margin-bottom: var(--s2); letter-spacing: -.02em; color: #fff; }
.cta-band p { color: var(--dark-ink); max-width: 42ch; margin: 0 auto var(--s5); }
.cta-band .btn { background: var(--paper); color: var(--ink); }
.cta-band .btn:hover { background: #fff; }

/* ============================================================
   footer
   ============================================================ */
.site-footer { background: var(--dark); color: var(--dark-ink); margin-top: var(--s9); padding: var(--s10) 0 var(--s5); font-size: var(--fs-sm); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: var(--s6); margin-bottom: var(--s8); }
.footer-brand .logo { color: #fff; margin-bottom: var(--s3); }
.footer-brand .logo .logo-mark { background: var(--accent); color: #fff; }
.footer-brand .logo small { color: #7d776a; }
.footer-brand p { color: #948d7e; max-width: 320px; line-height: 1.6; }
.site-footer h4 { color: #fff; font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .12em; margin-bottom: var(--s4); font-weight: 600; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--dark-ink); }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: var(--s5); display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between; color: #7d776a; font-size: var(--fs-xs); }

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 960px) {
  .detail-layout { grid-template-columns: 1fr; gap: var(--s6); }
  .detail-layout > aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero { padding: var(--s10) 0 var(--s9); }
  .section { padding: var(--s9) 0; }
  .story-block { padding: var(--s5); }
  .panel { padding: var(--s5); }
  .cta-band { padding: var(--s8) var(--s5); }
  .prevnext { grid-template-columns: 1fr; }
  .header-inner { height: 62px; }
}
@media (max-width: 520px) {
  .container { padding: 0 var(--s4); }
  .footer-grid { grid-template-columns: 1fr; }
  .num-grid { grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.7rem); }
  .steps > li { padding-left: 46px; }
}

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