/* ═══════════════════════════════════════════════════════════════════════════
   evanking.net — design system
   ───────────────────────────────────────────────────────────────────────────
   The room this is set in is a control room, not a gallery. Neutrals are the
   blue-shifted charcoal of an unlit studio rather than pure black; the gold is
   a GRATICULE — hairlines, ticks, frame corners, the way a waveform monitor
   rules its own screen — rather than a decorative pop. One tally red, used
   only for what is genuinely live or genuinely wrong, because that is what a
   tally light means and it should be the only red in the building.

   Dark is the primary. A media portfolio is read in a dark room. Light is a
   full second design (calibrated monitor grey, never paper white), not an
   inversion.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. tokens ─────────────────────────────────────────────────────────────
   The bare :root block carries the COMPLETE dark palette, because dark is the
   design's default state. The light palette is redefined in two guarded
   blocks below. Nothing outside this section may declare a raw color. */

:root {
  /* grounds — machined black. Not a soft charcoal: the blacks go deep and the
     separation between surfaces is a hairline, not a fill. */
  --bg:            #050609;
  --bg-raised:     #0A0C11;
  --bg-sunk:       #000103;
  --panel:         #0E1116;

  /* ink — crisp and cool. No warmth anywhere in the neutrals. */
  --ink:           #FBFBFC;
  --ink-2:         #B4BCC8;
  --ink-3:         #737C8B;
  --ink-4:         #4A5261;

  /* the graticule */
  --gold:          #E6C462;
  --gold-2:        #C9A63F;
  --gold-ink:      #E6C462;   /* gold used AS text */
  --gold-wash:     rgba(230,196,98,.10);
  --gold-line:     rgba(230,196,98,.34);

  /* tally — live, or wrong. nothing else. */
  --tally:         #FF4A32;
  --tally-ink:     #FF7B67;
  --tally-wash:    rgba(255,74,50,.11);

  /* rules — hairlines. Surfaces are separated by a line, never by a fill. */
  --line:          #14181F;
  --line-2:        #1F242E;
  --line-strong:   #333B49;

  /* scrims — over imagery */
  --scrim-top:     rgba(5,6,9,.46);
  --scrim-bot:     rgba(5,6,9,.95);

  --selection:     rgba(230,196,98,.26);
  --shadow-1: 0 1px 2px rgba(0,0,0,.6);
  --shadow-2: 0 18px 48px -20px rgba(0,0,0,.9), 0 2px 6px rgba(0,0,0,.5);

  /* ── type ──
     Montserrat is the existing wordmark face and stays. It ships as ONE
     variable file — the four "weights" in the old build were byte-identical
     copies of it — so the whole 100..900 range costs a single 35KB request. */
  --font-display: 'Montserrat', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body:    ui-serif, 'Iowan Old Style', 'Source Serif 4', 'Charter', Georgia, serif;
  --font-mono:    ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;

  /* fluid scale, ~1.25 — one ratio, no off-scale sizes */
  --t-xs:   clamp(11px,  .30vw + 10.0px, 12.5px);
  --t-sm:   clamp(13px,  .35vw + 12.0px, 14.5px);
  --t-base: clamp(16px,  .40vw + 14.6px, 18px);
  --t-md:   clamp(19px,  .60vw + 17.2px, 22px);
  --t-lg:   clamp(23px, 1.10vw + 19.6px, 29px);
  --t-xl:   clamp(28px, 2.00vw + 22.0px, 40px);
  --t-2xl:  clamp(34px, 3.60vw + 23.0px, 58px);
  --t-3xl:  clamp(42px, 6.20vw + 24.0px, 86px);
  --t-hero: clamp(52px, 11.5vw + 12.0px, 168px);

  --tracking-wide: .16em;   /* eyebrows, labels */
  --tracking-mega: .26em;   /* the wordmark subtitle */

  /* space — 4px base */
  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 24px;  --s-6: 32px;  --s-7: 48px;  --s-8: 64px;
  --s-9: 96px;  --s-10: 128px;
  --gutter: clamp(20px, 5vw, 64px);
  --measure: 68ch;
  --wide: 1340px;

  /* motion — one curve for entrances, one for interface */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io:  cubic-bezier(.4, 0, .2, 1);
  --dur-1: 160ms;  --dur-2: 320ms;  --dur-3: 620ms;
}

/* Dark is not "the dark theme" here — it is THE design, and it does not yield
   to the operating system. A cinematic portfolio that turns beige because the
   viewer's laptop is in light mode is a different, worse product; that is
   exactly what the first build did and it read as a corporate document.

   There is no `prefers-color-scheme: light` block on purpose. Light exists
   only as an explicit choice through the toggle, below, and it is a cool
   gallery white rather than a warm paper. */

/* explicit light choice must beat a dark OS */
:root[data-theme="light"] {
  --bg:          #F4F5F7;
  --bg-raised:   #FFFFFF;
  --bg-sunk:     #ECEEF1;
  --panel:       #FFFFFF;

  --ink:         #08090C;
  --ink-2:       #2C333E;
  --ink-3:       #5A6270;
  --ink-4:       #868D9B;

  --gold:        #C9A63F;
  --gold-2:      #A8862A;
  --gold-ink:    #7A5B08;
  --gold-wash:   rgba(168,134,42,.12);
  --gold-line:   rgba(168,134,42,.42);

  --tally:       #C4301A;
  --tally-ink:   #A32410;
  --tally-wash:  rgba(196,48,26,.10);

  --line:        #CFD3DB;
  --line-2:      #BEC3CD;
  --line-strong: #9AA1AF;

  --scrim-top:   rgba(10,12,16,.30);
  --scrim-bot:   rgba(10,12,16,.86);

  --selection:   rgba(168,134,42,.28);
  --shadow-1: 0 1px 2px rgba(15,18,24,.07);
  --shadow-2: 0 16px 44px -22px rgba(15,18,24,.30), 0 2px 5px rgba(15,18,24,.05);
}

/* ── 2. reset + base ────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--s-8);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);              /* explicit: a transparent body borrows the host ground */
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100svh;
}

::selection { background: var(--selection); color: var(--ink); }

img, picture, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
/* `overflow-wrap: break-word` is a LAST RESORT by spec — it only splits a word
   that cannot fit on a line by itself. Headings keep it, and keep hyphens off.
   The earlier "ConsumerWatchdog.or / g" break was not this property's fault: the
   heading had a max-width of 18ch, which made a 20-character word genuinely
   unable to fit, so the last resort fired correctly. Removing the property
   instead fixed the desktop symptom and pushed a 473px h1 off the side of a
   390px phone. The container was the bug; this is the safety net. */
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; hyphens: none; }

/* Grid and flex items refuse to shrink below min-content unless told to, which
   is how one long word drags a whole layout wider than the viewport. */
.wrap > *, .stack > *, .grid > * { min-width: 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.018em;
  text-wrap: balance;
}
h1 { font-size: var(--t-3xl); font-weight: 800; letter-spacing: -.028em; }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-lg); letter-spacing: -.01em; }
h4 { font-size: var(--t-md); letter-spacing: -.005em; }

a { color: inherit; text-decoration: none; }
code, kbd, samp, pre { font-family: var(--font-mono); font-size: .92em; }

/* Keyboard focus is visible everywhere and never removed. */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 999;
  background: var(--panel); color: var(--ink);
  padding: var(--s-3) var(--s-5); border: 1px solid var(--gold);
  font-family: var(--font-display); font-size: var(--t-sm); font-weight: 700;
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  transition: top var(--dur-1) var(--ease-io);
}
.skip-link:focus { top: var(--s-4); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* ── 3. layout primitives ───────────────────────────────────────────────── */

.wrap      { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 860px; }
.measure   { max-width: var(--measure); }

.stack     { display: grid; gap: var(--s-4); align-content: start; }
.stack--2  { gap: var(--s-2); }
.stack--5  { gap: var(--s-5); }
.stack--6  { gap: var(--s-6); }
.stack--7  { gap: var(--s-7); }

.row       { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }
.row--between { justify-content: space-between; }

.grid      { display: grid; gap: var(--s-6); }
.grid--2   { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3   { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

/* Anything that can outgrow the viewport scrolls inside itself, never the page. */
.scroll-x  { overflow-x: auto; overscroll-behavior-x: contain; }

.section   { padding-block: clamp(var(--s-8), 9vw, var(--s-10)); }
.section + .section { border-top: 1px solid var(--line); }

/* ── 4. type roles ──────────────────────────────────────────────────────── */

.display { font-family: var(--font-display); }
.mono    { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* The eyebrow is a slate: a marker with a rule running off it, the way a
   graticule ticks the edge of a monitor. */
.eyebrow {
  font-family: var(--font-display);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--gold); flex: none;
}
.eyebrow--plain::before { display: none; }

.lede {
  font-size: var(--t-md);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

.meta {
  font-family: var(--font-display);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: var(--s-5); }
.prose h2 { font-size: var(--t-xl); margin-top: var(--s-8); }
.prose h3 { font-size: var(--t-lg); margin-top: var(--s-7); }
.prose p  { text-wrap: pretty; }
.prose a  {
  color: var(--gold-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--gold-line);
  transition: text-decoration-color var(--dur-1) var(--ease-io);
}
.prose a:hover { text-decoration-color: var(--gold); }
.prose ul, .prose ol { padding-left: 1.4em; display: grid; gap: var(--s-2); }
.prose li::marker { color: var(--gold); }
.prose blockquote {
  border-left: 2px solid var(--gold);
  padding-left: var(--s-5);
  font-size: var(--t-md);
  line-height: 1.5;
  color: var(--ink-2);
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: var(--s-8); }

/* ── 5. controls ────────────────────────────────────────────────────────── */

.btn {
  --btn-fg: var(--bg); --btn-bg: var(--gold); --btn-bd: var(--gold);
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-family: var(--font-display); font-size: var(--t-sm); font-weight: 700;
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  padding: var(--s-3) var(--s-5);
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid var(--btn-bd); border-radius: 2px;
  cursor: pointer;
  transition: background var(--dur-1) var(--ease-io),
              color var(--dur-1) var(--ease-io),
              border-color var(--dur-1) var(--ease-io);
}
.btn:hover { --btn-bg: transparent; --btn-fg: var(--gold-ink); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bd: var(--gold); --btn-fg: var(--gold-ink); }

/* The arrow moves, the label does not — motion that reads as direction. */
.btn .arrow { transition: transform var(--dur-1) var(--ease-io); color: currentColor; }
.btn:hover .arrow { transform: translateX(4px); }

.tag {
  display: inline-flex; align-items: center;
  font-family: var(--font-display); font-size: var(--t-xs); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3);
  padding: 3px var(--s-2);
  border: 1px solid var(--line-2); border-radius: 2px;
}
.tag--gold  { color: var(--gold-ink); border-color: var(--gold-line); background: var(--gold-wash); }
.tag--tally { color: var(--tally-ink); border-color: var(--tally); background: var(--tally-wash); }

/* ── 6. motion ──────────────────────────────────────────────────────────── */

/* Reveals are opt-in per element and OFF until the script arms them, so a page
   with JS disabled shows everything rather than nothing — the failure mode of
   every scroll-reveal library. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-3) var(--ease-out),
              transform var(--dur-3) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   7. site chrome — header and footer
   ═══════════════════════════════════════════════════════════════════════════ */

.site-head {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background var(--dur-2) var(--ease-io),
              border-color var(--dur-2) var(--ease-io),
              backdrop-filter var(--dur-2) var(--ease-io);
}
/* Transparent over a hero, solid once the page has moved. The class is set by
   script; without script it stays solid, which is legible either way. */
.site-head.is-stuck {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom-color: var(--line);
}
@supports not (backdrop-filter: blur(1px)) {
  .site-head.is-stuck { background: var(--bg); }
}

.site-head__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-5); min-height: 68px;
}

.wordmark {
  font-family: var(--font-display); font-weight: 800;
  font-size: var(--t-sm); letter-spacing: .2em;
  display: inline-flex; gap: .55em; white-space: nowrap;
}
.wordmark__a { color: var(--ink); }
.wordmark__b { color: var(--gold-ink); }

.site-nav ul { list-style: none; display: flex; gap: var(--s-6); padding: 0; }
.site-nav a, .site-nav__soon {
  font-family: var(--font-display); font-size: var(--t-xs); font-weight: 600;
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  color: var(--ink-2); position: relative; padding-block: var(--s-2);
  display: inline-flex; align-items: baseline; gap: .5em;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-2) var(--ease-out);
}
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); }
.site-nav a:hover::after, .site-nav a[aria-current]::after { transform: scaleX(1); }

/* A destination that is planned but not built is stated, not linked. */
.site-nav__soon { color: var(--ink-4); cursor: default; }
.site-nav__soon i {
  font-style: normal; font-size: 8px; letter-spacing: .1em;
  color: var(--gold-ink); border: 1px solid var(--gold-line);
  padding: 1px 3px; border-radius: 2px; position: relative; top: -.4em;
}

.site-head__end { display: flex; align-items: center; gap: var(--s-3); }

.theme-toggle {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line-2); border-radius: 50%;
  cursor: pointer; transition: border-color var(--dur-1) var(--ease-io);
}
.theme-toggle:hover { border-color: var(--gold); }
.theme-toggle__dot {
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--gold);
  /* Half-lit: reads as the sun/moon idea without shipping two icons. */
  box-shadow: inset -4px -1px 0 0 var(--bg);
}

.nav-toggle {
  display: none; width: 34px; height: 34px; place-items: center;
  background: transparent; border: 1px solid var(--line-2); border-radius: 2px;
  cursor: pointer;
}
.nav-toggle__bars { display: grid; gap: 4px; width: 15px; }
.nav-toggle__bars i { display: block; height: 1.5px; background: var(--ink); transition: transform var(--dur-1) var(--ease-io); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:first-child { transform: translateY(2.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:last-child  { transform: translateY(-2.75px) rotate(-45deg); }

.mobile-nav { border-top: 1px solid var(--line); background: var(--bg-raised); }
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { list-style: none; padding: var(--s-4) var(--gutter) var(--s-6); display: grid; gap: var(--s-1); }
.mobile-nav a, .mobile-nav .site-nav__soon {
  display: flex; align-items: baseline; gap: .5em;
  font-family: var(--font-display); font-size: var(--t-md); font-weight: 700;
  letter-spacing: -.01em; text-transform: none; padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 860px) {
  .site-nav { display: none; }
  .nav-toggle { display: grid; }
}

/* ── footer ─────────────────────────────────────────────────────────────── */

.site-foot { border-top: 1px solid var(--line); background: var(--bg-sunk); }
.site-foot__in {
  padding-block: clamp(var(--s-8), 8vw, var(--s-9));
  display: grid; gap: var(--s-8);
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}
.site-foot__mail {
  font-size: var(--t-lg); font-weight: 700; letter-spacing: -.02em;
  color: var(--ink);
  border-bottom: 1px solid var(--gold-line); padding-bottom: 3px;
  justify-self: start;
  transition: border-color var(--dur-1) var(--ease-io), color var(--dur-1) var(--ease-io);
}
.site-foot__mail:hover { color: var(--gold-ink); border-bottom-color: var(--gold); }

.site-foot__nav { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--s-6); }
.site-foot__nav ul { list-style: none; padding: 0; display: grid; gap: var(--s-2); }
.site-foot__nav a, .site-foot__nav .site-nav__soon {
  font-family: var(--font-display); font-size: var(--t-sm); font-weight: 500;
  letter-spacing: 0; text-transform: none; color: var(--ink-2); padding: 0;
}
.site-foot__nav a:hover { color: var(--gold-ink); }

.site-foot__base {
  display: flex; flex-wrap: wrap; gap: var(--s-4);
  justify-content: space-between; align-items: center;
  padding-block: var(--s-5); border-top: 1px solid var(--line);
}
.site-foot__legal { display: flex; gap: var(--s-3); }
.site-foot__legal a:hover { color: var(--gold-ink); }

@media (max-width: 760px) {
  .site-foot__in { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   8. shared components — used by more than one page type
   ═══════════════════════════════════════════════════════════════════════════ */

.sec-head { display: grid; gap: var(--s-4); margin-bottom: var(--s-8); max-width: var(--wide); }
.sec-head h2 { max-width: 20ch; }

/* ── the graticule ──
   Frame corners, drawn in the accent. The site's structural motif: a broadcast
   safe-area overlay. Decorative, so always aria-hidden at the markup level. */
.graticule { position: absolute; inset: clamp(12px, 2.2vw, 28px); pointer-events: none; z-index: 2; }
.graticule__c { position: absolute; width: 22px; height: 22px; border-style: solid; border-color: var(--gold); border-width: 0; opacity: .55; }
.graticule__c--tl { top: 0; left: 0;  border-top-width: 2px; border-left-width: 2px; }
.graticule__c--tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.graticule__c--bl { bottom: 0; left: 0;  border-bottom-width: 2px; border-left-width: 2px; }
.graticule__c--br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }

/* ── work grid ──────────────────────────────────────────────────────────── */

.work-grid {
  list-style: none; padding: 0;
  display: grid; gap: var(--s-5);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}
.work-card { display: grid; }
.work-card__link {
  display: grid; gap: var(--s-3); align-content: start;
  padding: var(--s-5); height: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 3px;
  position: relative; overflow: hidden;
  transition: border-color var(--dur-2) var(--ease-io),
              transform var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out);
}
/* A gold rule wipes in along the top edge — the graticule idea at card scale. */
.work-card__link::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-2) var(--ease-out);
}
.work-card__link:hover, .work-card__link:focus-visible {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}
.work-card__link:hover::before, .work-card__link:focus-visible::before { transform: scaleX(1); }

.work-card__top { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }
.work-card__title { font-size: var(--t-md); }
.work-card__kicker { color: var(--gold-ink); }
.work-card__summary { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.58; }
.work-card__stack { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-1); }
.work-card__go {
  margin-top: auto; padding-top: var(--s-3);
  font-size: var(--t-xs); font-weight: 700; letter-spacing: var(--tracking-wide);
  text-transform: uppercase; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: var(--s-2);
}
.work-card__link:hover .work-card__go { color: var(--gold-ink); }
.work-card__link:hover .arrow { transform: translateX(4px); }
.work-card__go .arrow { transition: transform var(--dur-1) var(--ease-io); }

.work-more { margin-top: var(--s-7); }

/* ── post list ──────────────────────────────────────────────────────────── */

.post-list { list-style: none; padding: 0; display: grid; }
.post-row { border-top: 1px solid var(--line); }
.post-row:last-child { border-bottom: 1px solid var(--line); }
.post-row a {
  display: grid; gap: var(--s-2) var(--s-6); align-items: baseline;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  padding: var(--s-5) 0;
  transition: color var(--dur-1) var(--ease-io);
}
.post-row__date  { grid-row: 1; color: var(--ink-3); }
.post-row__title { grid-row: 1; font-size: var(--t-md); font-weight: 700; letter-spacing: -.012em; }
.post-row__desc  { grid-column: 2; font-size: var(--t-sm); color: var(--ink-3); line-height: 1.55; max-width: 62ch; }
.post-row__go {
  grid-column: 3; grid-row: 1; font-size: var(--t-xs); font-weight: 700;
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  color: var(--ink-4); white-space: nowrap;
  transition: color var(--dur-1) var(--ease-io), transform var(--dur-1) var(--ease-io);
}
.post-row a:hover .post-row__title { color: var(--gold-ink); }
.post-row a:hover .post-row__go { color: var(--gold-ink); transform: translateX(4px); }

@media (max-width: 720px) {
  .post-row a { grid-template-columns: 1fr; gap: var(--s-2); }
  .post-row__date, .post-row__title, .post-row__desc, .post-row__go { grid-column: 1; grid-row: auto; }
}

/* ── work groups (the /work index) ──────────────────────────────────────── */
.work-group + .work-group { margin-top: var(--s-9); }
.work-group__head {
  display: flex; align-items: baseline; gap: var(--s-3);
  font-size: var(--t-lg); margin-bottom: var(--s-5);
  padding-bottom: var(--s-3); border-bottom: 1px solid var(--line);
}
.work-group__count { font-size: var(--t-sm); color: var(--gold-ink); font-weight: 400; }

/* ── generic page head (about, contact, press) ──────────────────────────── */
.page-head {
  display: grid; gap: var(--s-4);
  padding-block: clamp(var(--s-8), 9vw, var(--s-9)) var(--s-7);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: var(--t-2xl); max-width: 18ch; }

/* ── definition-style capability lists ─────────────────────────────────── */
.caps { display: grid; gap: var(--s-6); grid-template-columns: repeat(auto-fit, minmax(min(100%,240px),1fr)); }
.cap { display: grid; gap: var(--s-3); align-content: start; }
.cap h3 { font-size: var(--t-xs); font-weight: 700; letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--gold-ink); }
.cap ul { list-style: none; padding: 0; display: grid; gap: var(--s-2); font-size: var(--t-sm); color: var(--ink-2); }
.cap li { padding-bottom: var(--s-2); border-bottom: 1px solid var(--line); }

/* ── contact ───────────────────────────────────────────────────────────── */
.contact-grid { display: grid; gap: var(--s-8); grid-template-columns: repeat(auto-fit, minmax(min(100%,280px),1fr)); }
.contact-block { display: grid; gap: var(--s-2); align-content: start; }
.contact-block a { color: var(--ink); border-bottom: 1px solid var(--gold-line); justify-self: start; padding-bottom: 2px; }
.contact-block a:hover { color: var(--gold-ink); border-bottom-color: var(--gold); }

/* ═══════════════════════════════════════════════════════════════════════════
   9. over-media context
   ───────────────────────────────────────────────────────────────────────────
   Anything sitting on top of a photograph must NOT follow the theme. The
   photograph is dark in both themes, so theme-following ink renders near-black
   on a dark frame the moment the viewer is in light mode — which is exactly
   what the first render of the hero did.

   So a media context re-points the ink tokens at fixed light values. Children
   keep reading the same token names and do not know the difference; nothing
   below needs a second set of rules.
   ═══════════════════════════════════════════════════════════════════════════ */

.on-media {
  --ink:      #F5F6F8;
  --ink-2:    #D3D8E0;
  --ink-3:    #A4ACBA;
  --ink-4:    #7C8494;
  --gold-ink: #E6C462;
  --gold:     #E6C462;
  --gold-2:   #C9A63F;
  --line:        rgba(245,246,248,.16);
  --line-2:      rgba(245,246,248,.26);
  --line-strong: rgba(245,246,248,.40);
  --tally:       #FF4A32;
  --tally-wash:  rgba(255,74,50,.16);
  color: var(--ink);
}
/* The SOLID button keeps dark ink, because it sits on its own gold fill.
   Scoped away from .btn--ghost deliberately: a ghost button is transparent, so
   dark ink on it is dark-on-photograph — which rendered as an invisible
   "Watch the reel" the first time this rule was written unscoped. */
.on-media .btn:not(.btn--ghost) { --btn-fg: #08090D; }
.on-media .btn:not(.btn--ghost):hover { --btn-fg: #E6C462; }
.on-media .btn--ghost { --btn-fg: #F5F6F8; --btn-bd: rgba(245,246,248,.42); }
.on-media .btn--ghost:hover { --btn-fg: #E6C462; --btn-bd: #E6C462; }

/* The header is over the hero until the page moves, so it borrows the same
   context — and gives it back the moment it goes solid. */
body.has-hero .site-head:not(.is-stuck) {
  --ink: #F5F6F8; --ink-2: #D3D8E0; --ink-3: #A4ACBA; --ink-4: #7C8494;
  --gold-ink: #E6C462; --gold: #E6C462;
  --line-2: rgba(245,246,248,.30);
}
