/* =====================================================================
   City Archivist — shared design system
   Direction B · "Clear & Architectural" (Aman × Monocle)
   One file, one system. No stray values: everything references a token.
   Loaded by all new pages; city pages migrate onto it in a later phase.
   ===================================================================== */

/* ── Tokens ─────────────────────────────────────────────────────────── */
:root {
  /* Spacing scale — fixed: 4 · 8 · 16 · 24 · 40 · 64 · 96 · 160 */
  --s-1: 4px;  --s-2: 8px;  --s-3: 16px; --s-4: 24px;
  --s-5: 40px; --s-6: 64px; --s-7: 96px; --s-8: 160px;

  /* Colour — cool stone, charcoal ink, one muted bronze accent */
  /* Warm paper (Direction A) on Direction B's architecture — the hybrid */
  --stone:     #f4eee2;   /* warm paper background            */
  --stone-2:   #ede4d4;   /* insets / hovers                 */
  --stone-3:   #e4dac6;   /* placeholders                    */
  --char:      #2a2520;   /* warm ink    — 11.4:1 on paper (AAA) */
  --char-soft: #6a6157;   /* secondary   —  5.3:1 on paper (AA)  */
  --char-faint:#726b5d;   /* tertiary    —  4.6:1 on paper (AA)  */
  --bronze:    #805f20;   /* warm gold   —  5.1:1 on paper (AA)  */
  --bronze-2:  #6b4f1a;   /* gold hover  —  6.5:1 (darker, not lighter) */
  --line:      rgba(42,37,32,0.16);
  --line-2:    rgba(42,37,32,0.08);
  --focus:     #8a6a2f;
  --header-bg: rgba(244,238,226,0.88);

  /* Type */
  --sans:  'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;     /* numerals & rare accents */

  /* Geometry */
  --r: 0px;                 /* architectural = no rounding */
  --wrap: 1180px;
  --wrap-narrow: 760px;
  --measure: 66ch;          /* ~70-char body line length */
  --header-h: 84px;
  --ease: cubic-bezier(.2,.7,.2,1);
}
/* CJK: Jost/Cormorant carry no Chinese glyphs — append Noto SC under lang=zh */
/* lang^="zh" so it also matches the correct BCP-47 tag zh-Hans */
:root[lang^="zh"] {
  --sans:  'Jost', 'Noto Sans SC', -apple-system, sans-serif;
  --serif: 'Cormorant Garamond', 'Noto Serif SC', Georgia, serif;
}

/* ── Dark mode — follows the device setting (prefers-color-scheme) ──
   Same warm hybrid, inverted: espresso paper, cream ink, brighter gold.
   Everything is tokenised, so only these values change. ── */
@media (prefers-color-scheme: dark) {
  :root {
    --stone:     #17130d;   /* warm near-black background       */
    --stone-2:   #1f1a13;
    --stone-3:   #2a231a;
    --char:      #f1e9db;   /* cream     — 15.0:1 on stone (AAA) */
    --char-soft: #b2a893;   /* secondary —  7.9:1 (AA)           */
    --char-faint:#978a74;   /* tertiary  —  5.5:1 (AA)           */
    --bronze:    #cca86a;   /* brighter gold for dark — ~7:1    */
    --bronze-2:  #e0c48c;
    --line:      rgba(224,196,140,0.16);
    --line-2:    rgba(241,233,219,0.08);
    --focus:     #cca86a;
    --header-bg: rgba(23,19,13,0.86);
  }
}

/* ── Reset / base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--stone); }
html.nav-open { overflow: hidden; }
body {
  font-family: var(--sans);
  background: var(--stone);
  color: var(--char);
  font-size: 17px; line-height: 1.8; font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::selection { background: rgba(124,106,78,0.18); }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--char); color: var(--stone); padding: var(--s-2) var(--s-4); z-index: 100; }
.skip-link:focus { left: var(--s-3); top: var(--s-3); }

/* ── Typography ─────────────────────────────────────────────────────── */
.display { font-family: var(--serif); font-weight: 500; font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1.05; letter-spacing: -0.01em; }
.display b, .display strong { font-weight: 500; font-style: italic; color: var(--bronze); }
.h1 { font-family: var(--sans); font-weight: 300; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; }
.h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 2.8vw, 2.3rem); line-height: 1.12; letter-spacing: 0; }
.h3 { font-family: var(--sans); font-weight: 400; font-size: 1.3rem; line-height: 1.2; letter-spacing: 0.01em; }
.lead { font-size: 1.1rem; line-height: 1.75; color: var(--char-soft); max-width: var(--measure); font-weight: 300; }
.body { max-width: var(--measure); }
.body p + p { margin-top: var(--s-4); }
.label { font-family: var(--sans); font-size: 10.5px; font-weight: 400; letter-spacing: 0.3em; text-transform: uppercase; color: var(--char-soft); }
.label--accent { color: var(--bronze); }
.muted { color: var(--char-soft); }
.serif-num { font-family: var(--serif); font-weight: 500; }

/* ── Buttons & links — the ONLY two interactive styles ──────────────── */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-family: var(--sans); font-size: 11px; font-weight: 400;
  letter-spacing: 0.26em; text-transform: uppercase;
  padding: 16px 30px; border-radius: var(--r);
  background: transparent; color: var(--char);
  border: 1px solid var(--char);
  transition: background .35s var(--ease), color .35s var(--ease);
}
.btn:hover { background: var(--char); color: var(--stone); }
.btn--solid { background: var(--char); color: var(--stone); }
.btn--solid:hover { background: transparent; color: var(--char); }
.lk {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--char);
  transition: color .3s var(--ease);
}
.lk::after { content: '→'; transition: transform .3s var(--ease); }
.lk--plain::after { content: none; }
.lk:hover { color: var(--bronze); }
.lk:hover::after { transform: translateX(4px); }

/* ── Layout ─────────────────────────────────────────────────────────── */
.wrap { width: min(var(--wrap), 100% - var(--s-6)); margin-inline: auto; }
.wrap-narrow { width: min(var(--wrap-narrow), 100% - var(--s-5)); margin-inline: auto; }
.section { padding: clamp(var(--s-6), 10vw, var(--s-8)) 0; }
.section-sm { padding: var(--s-7) 0; }
.rule { height: 1px; background: var(--line); border: 0; }

/* ── Header / nav ───────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--header-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-2); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
/* Wordmark — the original City Archivist lockup: Cormorant, uppercase,
   widely tracked. Colours come from tokens so it works light + dark. */
.wordmark { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; white-space: nowrap; }
.wordmark span { color: var(--bronze); }
@media (max-width: 520px) { .wordmark { font-size: 1.05rem; letter-spacing: 0.2em; } }
.nav-links { display: flex; gap: var(--s-6); list-style: none; }
.nav-links a { position: relative; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--char-soft); transition: color .25s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--char); }
.nav-right { display: flex; align-items: center; gap: var(--s-5); }
.nav-lang { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--char-soft); transition: color .25s; }
.nav-lang:hover { color: var(--char); }
.nav-burger { display: none; width: 26px; height: 14px; position: relative; }
.nav-burger span { position: absolute; left: 0; width: 100%; height: 1px; background: var(--char); transition: transform .35s var(--ease), opacity .25s; }
.nav-burger span:nth-child(1) { top: 2px; } .nav-burger span:nth-child(2) { bottom: 2px; }
html.nav-open .nav-burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
html.nav-open .nav-burger span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

/* Mobile overlay */
.nav-overlay { position: fixed; inset: 0; z-index: 35; background: var(--stone); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: var(--s-4); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s; }
html.nav-open .nav-overlay { opacity: 1; visibility: visible; }
.nav-overlay a { font-family: var(--sans); font-size: 1.4rem; font-weight: 300; letter-spacing: 0.04em; color: var(--char); }
.nav-overlay a:hover { color: var(--bronze); }

/* ── Hero (calm, centred) ───────────────────────────────────────────── */
.hero { padding: clamp(var(--s-7), 12vw, var(--s-8)) 0 var(--s-7); text-align: center; }
.hero .label { display: inline-block; margin-bottom: var(--s-5); }
.hero .display { margin: 0 auto var(--s-5); max-width: 18ch; }
.hero-sub { margin: 0 auto var(--s-6); }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: var(--s-5); flex-wrap: wrap; }
.hero-figure { margin-top: clamp(var(--s-6), 8vw, var(--s-7)); }
.hero-figure img { width: 100%; aspect-ratio: 21/9; object-fit: cover; border: 1px solid var(--line); }
.figcap { margin-top: var(--s-3); display: flex; justify-content: space-between; gap: var(--s-4); }

/* ── Split: editorial text + image (reused on reviews & city pages) ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--s-5), 6vw, var(--s-7)); align-items: center; }
.split .media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border: 1px solid var(--line); background: var(--stone-3); }
.split--rev { grid-template-columns: 1.1fr 0.9fr; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: var(--s-5); } .split .media { order: -1; } .split .media img { aspect-ratio: 16/10; } }

/* ── Section header ─────────────────────────────────────────────────── */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); padding-bottom: var(--s-4); border-bottom: 1px solid var(--char); margin-bottom: var(--s-2); }
.sec-head--center { flex-direction: column; align-items: center; text-align: center; border: 0; gap: var(--s-3); margin-bottom: var(--s-6); }

/* ── Review LIST (architectural rows) ───────────────────────────────── */
.rev-row { display: grid; grid-template-columns: 54px 150px 1fr auto; gap: clamp(var(--s-4), 4vw, var(--s-6)); align-items: center; padding: var(--s-5) 0; border-bottom: 1px solid var(--line); transition: background .3s var(--ease); }
.rev-row:hover { background: var(--stone-2); }
.rev-index { font-family: var(--serif); font-size: 1.4rem; color: var(--bronze); }
.rev-media img { width: 150px; height: 100px; object-fit: cover; border: 1px solid var(--line); background: var(--stone-3); }
.rev-loc { margin-bottom: var(--s-2); }
.rev-name { font-family: var(--serif); font-weight: 500; font-size: 1.55rem; line-height: 1.15; }
.rev-verdict { color: var(--char-soft); font-size: 1rem; max-width: 46ch; margin-top: var(--s-2); }

/* ── Review GRID cards (for homepage "Latest Reviews") ──────────────── */
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(var(--s-4), 3vw, var(--s-5)); }
.rev-card { display: flex; flex-direction: column; }
.rev-card .media { overflow: hidden; margin-bottom: var(--s-3); border: 1px solid var(--line); }
.rev-card .media img { width: 100%; aspect-ratio: 3/2; object-fit: cover; background: var(--stone-3); transition: transform 1.2s var(--ease); }
.rev-card:hover .media img { transform: scale(1.03); }
.rev-card .rev-name { margin: var(--s-2) 0; }
.rev-card .rev-verdict { margin-bottom: var(--s-4); }
.rev-card .score-row { margin-top: auto; }

/* ── Archivist Score (elegant, no coloured bars) ────────────────────── */
.score-num { font-family: var(--serif); font-weight: 500; font-size: 2.6rem; line-height: 0.9; }
.score-num small { font-size: 0.82rem; color: var(--char-soft); font-weight: 400; }
.score-num.is-tbd { color: var(--char-faint); }
.score-label { font-size: 9.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--char-soft); margin-top: var(--s-2); }
.score-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.rev-score { text-align: right; }
/* criteria breakdown (review template) */
.score-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); border-top: 1px solid var(--char); border-bottom: 1px solid var(--char); padding: var(--s-5) 0; }
.score-crit { text-align: center; }
.score-crit .n { font-family: var(--serif); font-size: 2rem; font-weight: 500; }
.score-crit .k { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--char-soft); margin-top: var(--s-2); }

/* ── Filter chips (city filter on overview) ─────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.chip { font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--char-soft); padding: 9px 18px; border: 1px solid var(--line); border-radius: var(--r); transition: color .25s, border-color .25s; }
.chip[aria-pressed="true"] { color: var(--char); border-color: var(--char); }
.chip[disabled] { color: var(--char-faint); cursor: default; }
.chip[disabled]::after { content: ' · soon'; color: var(--char-faint); }

/* ── Newsletter strip ───────────────────────────────────────────────── */
.news { border-top: 1px solid var(--line); }
.news-inner { max-width: 620px; margin-inline: auto; text-align: center; }
.news-form { display: flex; gap: var(--s-2); margin-top: var(--s-5); flex-wrap: wrap; justify-content: center; }
.news-input { flex: 1 1 220px; font-family: var(--sans); font-size: 14px; color: var(--char); background: transparent; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.news-input::placeholder { color: var(--char-faint); }
.news-input:focus-visible { border-color: var(--char); outline: none; }
.news-msg { margin-top: var(--s-3); font-size: 13px; color: var(--char-soft); min-height: 1.2em; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--char); padding: var(--s-7) 0 var(--s-6); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-6); }
.foot-tag { color: var(--char-soft); max-width: 42ch; margin-top: var(--s-3); font-size: 0.95rem; }
.foot-col-title { font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--char-faint); margin-bottom: var(--s-3); }
.foot-links { list-style: none; display: grid; gap: var(--s-2); }
.foot-links a { font-size: 0.95rem; color: var(--char-soft); transition: color .25s; }
.foot-links a:hover { color: var(--char); }
.foot-social { display: flex; gap: var(--s-4); margin-top: var(--s-3); }
.foot-social a { font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--char-soft); transition: color .25s; }
.foot-social a:hover { color: var(--bronze); }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-7); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.foot-copy { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--char-faint); }

/* ── Typographic hero rule (stands in for the hero photo) ───────────── */
.hero-rule { margin-top: clamp(var(--s-6), 8vw, var(--s-7)); padding-top: var(--s-4); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }

/* ── Credentials: period line hides itself while empty ──────────────── */
.cred-period { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--char-faint); margin-top: 2px; }
.cred-period:empty { display: none; }

/* ── Newsletter fine print + empty state ────────────────────────────── */
.news-fine { margin-top: var(--s-4); font-size: 12px; line-height: 1.7; color: var(--char-faint); max-width: 48ch; margin-inline: auto; }
.news-fine .lk { font-size: 11px; margin-left: var(--s-2); }
.empty-state { text-align: center; max-width: 52ch; margin: var(--s-7) auto 0; }
.empty-state .h2 { margin-bottom: var(--s-4); }

/* ── Transparency line (review pages) ───────────────────────────────── */
.transparency { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.transparency .ti { display: flex; flex-direction: column; gap: 2px; }
.transparency .tk { font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--char-faint); }
.transparency .tv { font-size: 0.95rem; color: var(--char-soft); }

/* ── Review page ────────────────────────────────────────────────────── */
.breadcrumb { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--char-soft); padding: var(--s-5) 0 0; }
.review-hero { padding: var(--s-5) 0 var(--s-6); }
.review-hero .label { margin-bottom: var(--s-3); }
.review-hero .display { margin-bottom: var(--s-3); }
.review-meta { color: var(--char-soft); font-size: 0.95rem; letter-spacing: 0.02em; }
.review-figure { margin-top: var(--s-5); }
.review-figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border: 1px solid var(--line); background: var(--stone-3); }
.banner { border: 1px solid var(--line); background: var(--stone-2); padding: var(--s-4) var(--s-5); text-align: center; color: var(--char-soft); font-size: 0.95rem; }

.score-head { display: flex; align-items: baseline; gap: var(--s-4); margin-bottom: var(--s-5); }
.score-head .score-num { font-size: 3.4rem; }
.facts { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-5); border-top: 1px solid var(--char); border-bottom: 1px solid var(--char); padding: var(--s-5) 0; }
.fact .k { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--char-soft); margin-bottom: var(--s-2); }
.fact .v { font-family: var(--serif); font-size: 1.3rem; color: var(--char); }
@media (max-width: 820px) { .facts { grid-template-columns: repeat(2, 1fr); gap: var(--s-4); } }

.prose { max-width: var(--measure); }
.prose p + p { margin-top: var(--s-4); }

.ideal { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); }
.ideal ul { list-style: none; display: grid; gap: var(--s-3); margin-top: var(--s-3); }
.ideal li { padding-left: var(--s-4); position: relative; color: var(--char-soft); }
.ideal li::before { content: ''; position: absolute; left: 0; top: 0.7em; width: 10px; height: 1px; background: var(--bronze); }
.ideal .not li::before { background: var(--char-faint); }
@media (max-width: 820px) { .ideal { grid-template-columns: 1fr; gap: var(--s-5); } }

.cn { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5) var(--s-6); }
.cn .k { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bronze); margin-bottom: var(--s-2); }
.cn .v { color: var(--char); }
.pay { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.pay span { font-size: 11px; letter-spacing: 0.06em; border: 1px solid var(--line); padding: 5px 12px; color: var(--char-soft); }
@media (max-width: 820px) { .cn { grid-template-columns: 1fr; } }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); }
.gallery img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border: 1px solid var(--line); background: var(--stone-3); }
@media (max-width: 820px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

.map-embed { width: 100%; aspect-ratio: 16/9; border: 1px solid var(--line); background: var(--stone-3); }
.prevnext { display: flex; justify-content: space-between; gap: var(--s-4); border-top: 1px solid var(--line); padding-top: var(--s-5); }
.prevnext a { display: flex; flex-direction: column; gap: var(--s-1); max-width: 45%; }
.prevnext .dir { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--char-soft); }
.prevnext .nm { font-family: var(--serif); font-size: 1.15rem; color: var(--char); }
.prevnext .next { text-align: right; align-items: flex-end; }

/* ── Motion ─────────────────────────────────────────────────────────
   Slow, restrained, editorial. Every effect is driven by one `.in` class
   added by ca.js on scroll, and every one of them is switched off under
   prefers-reduced-motion (block at the end of this file).
   `--rv-d` is an optional per-element delay set by JS for stagger. ── */

/* 1 · Base reveal — content rises quietly into place */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--rv-d, 0s); }
.rv.in { opacity: 1; transform: none; }

/* 2 · Stagger — direct children come in one after another */
.rv-group > * { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--rv-d, 0s); }
.rv-group.in > * { opacity: 1; transform: none; }

/* 3 · Mask reveal — the headline rises out of a clipped edge */
.rv-mask { overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.rv-mask > * { opacity: 0; transform: translateY(105%); transition: opacity 1.25s var(--ease), transform 1.25s var(--ease); transition-delay: var(--rv-d, 0s); }
.rv-mask.in > * { opacity: 1; transform: none; }

/* 4 · Image reveal — settles from a slight overscale */
.rv-img { overflow: hidden; }
.rv-img img { opacity: 0; transform: scale(1.06); transition: opacity 1.2s var(--ease), transform 1.7s var(--ease); transition-delay: var(--rv-d, 0s); }
.rv-img.in img { opacity: 1; transform: none; }

/* 5 · Hairline that draws itself from the left */
.rv-line { position: relative; border-bottom-color: transparent !important; }
.rv-line::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--char); transform: scaleX(0); transform-origin: left; transition: transform 1.3s var(--ease); transition-delay: var(--rv-d, 0.1s); }
.rv-line.in::after { transform: scaleX(1); }

/* 6 · Header settles once you leave the top */
.site-header { transition: box-shadow .45s var(--ease), background .45s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 1px 0 0 var(--line); }

/* 7 · Mobile menu links stagger in */
.nav-overlay a { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
html.nav-open .nav-overlay a { opacity: 1; transform: none; }
html.nav-open .nav-overlay a:nth-child(1) { transition-delay: .06s; }
html.nav-open .nav-overlay a:nth-child(2) { transition-delay: .12s; }
html.nav-open .nav-overlay a:nth-child(3) { transition-delay: .18s; }
html.nav-open .nav-overlay a:nth-child(4) { transition-delay: .24s; }
html.nav-open .nav-overlay a:nth-child(5) { transition-delay: .30s; }

/* 8 · Review row — quiet hover detail */
.rev-row .rev-index { transition: transform .5s var(--ease), color .35s var(--ease); }
.rev-row:hover .rev-index { transform: translateX(3px); color: var(--bronze-2); }
.rev-row .rev-name { transition: color .35s var(--ease); }
.rev-row:hover .rev-name { color: var(--bronze); }

/* No-JS safety: show everything in its final state */
html:not(.js) .rv,
html:not(.js) .rv-group > *,
html:not(.js) .rv-mask > *,
html:not(.js) .rv-img img,
html:not(.js) .nav-overlay a { opacity: 1; transform: none; }
html:not(.js) .rv-line::after { transform: scaleX(1); }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .rev-row { grid-template-columns: 1fr auto; gap: var(--s-4); align-items: start; }
  .rev-index, .rev-media { display: none; }
  .score-num { font-size: 2rem; }
  .rev-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: var(--s-5); }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .score-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
  .sec-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .foot-grid { grid-template-columns: 1fr; }
}

/* ── Motion preference ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv,
  .rv-group > *,
  .rv-mask > *,
  .rv-img img,
  .nav-overlay a { opacity: 1 !important; transform: none !important; transition: none !important; }
  .rv-line::after { transform: scaleX(1) !important; transition: none !important; }
  .rv-mask { overflow: visible; }
  .site-header.is-scrolled { box-shadow: none; }
  .rev-card .media img { transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
