/* ==========================================================================
   Steven Morlier — Portfolio
   Palette and the strata motif are sampled from the original cover artwork:
   layered blue waveforms on black. Depth encodes age throughout.
   ========================================================================== */

/* ---- fonts (self-hosted, no third-party requests) ---- */
@font-face{font-family:'Fraunces';font-style:normal;font-weight:300 700;font-display:swap;src:url('../fonts/fraunces-roman-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:300 700;font-display:swap;src:url('../fonts/fraunces-roman-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
/* The italic is used for exactly one accented word in the hero, so it ships as a
   letters-only subset (83 KB instead of 149 KB). The unicode-range covers A–Z,
   a–z and basic punctuation: any word works, but digits in italic would fall
   back to the roman cut. See build/fetch_fonts.py. */
@font-face{font-family:'Fraunces';font-style:italic;font-weight:300 700;font-display:swap;src:url('../fonts/fraunces-italic-subset.woff2') format('woff2');unicode-range:U+20,U+27,U+2C-2E,U+41-5A,U+61-7A,U+2014,U+2019}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:400 600;font-display:swap;src:url('../fonts/plex-sans-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:400 600;font-display:swap;src:url('../fonts/plex-sans-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/plex-mono-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/plex-mono-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/plex-mono-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/plex-mono-500-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

/* ---- tokens ---- */
:root {
  --ink:      #05080d;   /* the black the waveforms sit on */
  --strat-hi: #1d3450;   /* topmost sediment: most recent work */
  --strat-lo: #080e18;   /* deepest sediment: 2014 */
  --slate:    #4e80ac;   /* mid-wave blue, for rules and edges */
  --mist:     #a6c2da;   /* pale wave crest */
  --sand:     #e9dcc5;   /* the one warm highlight in the artwork — the accent */
  --paper:    #f2f5f8;
  --text:     #c3d0db;
  --muted:    #8095a8;

  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --wonk: 'SOFT' 0, 'WONK' 1, 'opsz' 144;
  --measure: 68ch;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mist); text-decoration-color: color-mix(in oklab, var(--mist) 40%, transparent); text-underline-offset: .18em; }
a:hover { color: var(--sand); text-decoration-color: var(--sand); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; font-variation-settings: var(--wonk); line-height: 1.05; margin: 0; }
p { margin: 0 0 1.1em; }
ul, ol, dl { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: 74rem; margin-inline: auto; padding-inline: var(--gutter); }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--sand); color: var(--ink); padding: .6rem 1rem;
  font: 500 .8rem/1 var(--mono);
}
.skip:focus { left: .5rem; top: .5rem; }

/* the recurring label device: mono, tracked out, sand */
.eyebrow {
  display: block;
  font: 500 clamp(.68rem, .64rem + .12vw, .75rem)/1.2 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sand);
}

/* ==========================================================================
   Top bar
   ========================================================================== */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in oklab, var(--ink) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in oklab, var(--slate) 22%, transparent);
}
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--paper); }
.brand__mark {
  width: .95rem; height: .95rem; flex: none;
  /* three strata, in miniature — receding widths so it never reads as a menu icon */
  background:
    linear-gradient(var(--sand) 0 0) 0 1px / 100% 2px no-repeat,
    linear-gradient(var(--slate) 0 0) 0 6px / 68% 2px no-repeat,
    linear-gradient(color-mix(in oklab, var(--slate) 50%, transparent) 0 0) 0 11px / 40% 2px no-repeat;
}
.brand__name { font: 500 .9rem/1 var(--mono); letter-spacing: .04em; }
.topbar nav { display: flex; gap: clamp(.9rem, 2.5vw, 1.6rem); }
.topbar nav a {
  font: 400 .82rem/1 var(--mono); letter-spacing: .06em;
  color: var(--muted); text-decoration: none;
}
.topbar nav a:hover { color: var(--sand); }
@media (max-width: 26rem) {
  .brand__name { font-size: .8rem; }
  .topbar nav a { font-size: .74rem; letter-spacing: .03em; }
}

/* ==========================================================================
   Hero — the thesis, over a horizon of the source artwork
   ========================================================================== */
.hero { position: relative; padding-block: clamp(3.5rem, 11vh, 7.5rem) 0; overflow: hidden; }
.hero__in { position: relative; z-index: 2; }
.hero__eyebrow {
  display: flex; align-items: center; gap: .7rem;
  font: 500 .72rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase;
  color: var(--sand); margin: 0 0 clamp(1.5rem, 4vh, 2.5rem);
}
.hero__eyebrow .dot { width: 3px; height: 3px; background: currentColor; border-radius: 50%; }
.hero__title {
  font-size: clamp(2.4rem, 1.1rem + 6.4vw, 5.5rem);
  letter-spacing: -.02em;
  color: var(--paper);
  margin-bottom: clamp(1.5rem, 4vh, 2.25rem);
  text-wrap: balance;
}
/* The hero's line breaks are a composition choice, not content: below this
   width they would force the line wider than the viewport, so they drop out
   and the headline wraps on its own. */
.br-wide { display: none; }
@media (min-width: 34rem) { .br-wide { display: inline; } }
.hero__title em {
  font-style: italic;
  color: var(--sand);
  font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144;
}
.hero__intro { max-width: 54ch; color: var(--text); font-size: clamp(1.02rem, .98rem + .35vw, 1.2rem); }
.stack {
  display: flex; flex-wrap: wrap; gap: .4rem .5rem;
  list-style: none; margin-top: clamp(1.75rem, 5vh, 2.75rem);
}
.stack li {
  font: 400 .74rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--mist);
  border: 1px solid color-mix(in oklab, var(--slate) 40%, transparent);
  padding: .42rem .7rem;
}
/* the artwork emerges from the ink rather than sitting on it */
.hero__horizon { position: relative; margin-top: clamp(2.5rem, 8vh, 5rem); line-height: 0; }
.hero__horizon img {
  width: 100%; height: clamp(120px, 26vw, 300px); object-fit: cover; object-position: center 55%;
  opacity: .85;
  mix-blend-mode: screen;
  mask-image: linear-gradient(to bottom, transparent, #000 45%, #000 72%, transparent);
}

/* ---- 404 ---- */
.hero--nf { padding-bottom: clamp(3rem, 10vh, 6rem); }
.nf__list {
  list-style: none;
  margin-top: clamp(1.75rem, 5vh, 2.5rem);
  border-top: 1px solid color-mix(in oklab, var(--slate) 25%, transparent);
  max-width: 34rem;
}
.nf__list a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid color-mix(in oklab, var(--slate) 25%, transparent);
  font-family: var(--display); font-variation-settings: var(--wonk);
  font-size: 1.2rem; color: var(--paper); text-decoration: none;
}
.nf__list a:hover { color: var(--sand); }
.nf__year { font: 400 .8rem/1 var(--mono); color: var(--muted); }

/* ==========================================================================
   Section headings
   ========================================================================== */
.section-title { margin-bottom: clamp(1.75rem, 5vh, 2.75rem); }
.section-title__sub {
  display: block; margin-top: .7rem;
  font-family: var(--body); font-size: .95rem; color: var(--muted); line-height: 1.5;
  max-width: 46ch;
}

/* ==========================================================================
   Strata index — the signature. Band depth encodes how far back the work goes.
   ========================================================================== */
.work { padding-block: clamp(3rem, 9vh, 6rem); }
/* the bands run edge to edge — sediment does not stop at a content margin.
   .strata sits outside .wrap so it is naturally body-width: no negative
   margins, and no misalignment from the scrollbar that 100vw would cause. */
.strata {
  list-style: none;
  border-top: 1px solid color-mix(in oklab, var(--slate) 30%, transparent);
}
.stratum {
  /* depth 0 = 2024, depth 1 = 2014 */
  background: #101e30;
  background: color-mix(in oklab, var(--strat-hi) calc((1 - var(--depth)) * 100%), var(--strat-lo));
  border-bottom: 1px solid color-mix(in oklab, var(--slate) 24%, transparent);
}
.stratum__link {
  position: relative;
  display: grid;
  grid-template-columns: minmax(5.5rem, 7rem) minmax(0, 1fr) auto;
  align-items: start;
  gap: clamp(1rem, 3vw, 2.25rem);
  /* full-bleed hit area, but the text still lines up with .wrap */
  padding-block: clamp(1.4rem, 3.5vh, 2.1rem);
  padding-inline: calc(var(--gutter) + max(0px, (100% - 74rem) / 2));
  text-decoration: none; color: inherit;
  transition: background-color .35s var(--ease), transform .35s var(--ease);
}
/* sand rule sweeps down the leading edge on hover */
.stratum__link::before {
  content: ""; position: absolute; inset-block: 0; left: 0; width: 3px;
  background: var(--sand);
  transform: scaleY(0); transform-origin: top;
  transition: transform .4s var(--ease);
}
.stratum__link:hover, .stratum__link:focus-visible {
  background-color: color-mix(in oklab, var(--slate) 16%, transparent);
}
.stratum__link:hover::before, .stratum__link:focus-visible::before { transform: scaleY(1); }

.stratum__year {
  font: 500 clamp(1.4rem, 1.1rem + 1.1vw, 2.1rem)/1 var(--mono);
  letter-spacing: -.02em;
  color: color-mix(in oklab, var(--mist) calc(100% - var(--depth) * 42%), var(--strat-lo));
  padding-top: .15em;
  transition: color .35s var(--ease);
}
.stratum__link:hover .stratum__year, .stratum__link:focus-visible .stratum__year { color: var(--sand); }

.stratum__main { display: block; min-width: 0; }
.stratum__title {
  display: block;
  font-family: var(--display); font-variation-settings: var(--wonk);
  font-size: clamp(1.45rem, 1.2rem + 1.1vw, 2.15rem); line-height: 1.1;
  color: var(--paper); letter-spacing: -.015em;
  margin-bottom: .5rem;
}
.stratum__card { display: block; max-width: 52ch; color: var(--text); font-size: .95rem; }
.stratum__go {
  font: 400 1.35rem/1 var(--mono); color: var(--slate); padding-top: .3em;
  transition: transform .35s var(--ease), color .35s var(--ease);
}
.stratum__link:hover .stratum__go, .stratum__link:focus-visible .stratum__go {
  transform: translateX(.35rem); color: var(--sand);
}

/* ---- tag chips ---- */
.chips { display: flex; flex-wrap: wrap; gap: .35rem .4rem; list-style: none; }
.chips li {
  font: 400 .7rem/1 var(--mono); letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid color-mix(in oklab, var(--slate) 32%, transparent);
  padding: .3rem .55rem;
}
/* --muted would drop under 4.5:1 against the lighter (recent) bands */
.chips--sm { margin-top: .9rem; }
.chips--sm li { color: var(--mist); }
.chips--hero { margin-top: 1.75rem; }
.chips--hero li { color: var(--mist); border-color: color-mix(in oklab, var(--slate) 45%, transparent); }

/* ==========================================================================
   About
   ========================================================================== */
.about { padding-block: clamp(3rem, 9vh, 6rem); border-top: 1px solid color-mix(in oklab, var(--slate) 20%, transparent); }
.about__in { display: grid; gap: clamp(1rem, 4vw, 3.5rem); grid-template-columns: 1fr; }
.about__body { max-width: var(--measure); }
.about__body p { font-size: clamp(1rem, .97rem + .25vw, 1.1rem); }
.about__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.btn {
  display: inline-block;
  font: 500 .8rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none;
  padding: .85rem 1.4rem;
  background: var(--sand); color: var(--ink);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.btn:hover { background: var(--paper); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--mist); border: 1px solid color-mix(in oklab, var(--slate) 50%, transparent); }
.btn--ghost:hover { background: color-mix(in oklab, var(--slate) 18%, transparent); color: var(--sand); }

@media (min-width: 56rem) {
  .about__in { grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); }
  .section-title { margin-bottom: 0; }
}

/* ==========================================================================
   Project page
   ========================================================================== */
.project { padding-block: clamp(2rem, 6vh, 3.5rem) clamp(3rem, 9vh, 5rem); }
.crumb { margin-bottom: clamp(2rem, 6vh, 3.5rem); }
.crumb a {
  font: 400 .78rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
}
.crumb a::before { content: "← "; }
.crumb a:hover { color: var(--sand); }

.phero { max-width: 60rem; padding-bottom: clamp(2rem, 6vh, 3rem); }
.phero__year {
  font: 500 .8rem/1 var(--mono); letter-spacing: .18em; color: var(--sand);
  margin: 0 0 1.1rem;
}
.phero__title {
  font-size: clamp(2.2rem, 1.2rem + 5vw, 4.25rem);
  letter-spacing: -.025em; color: var(--paper);
  margin-bottom: 1.25rem;
}
.phero__lede {
  max-width: 56ch; margin: 0;
  font-size: clamp(1.05rem, 1rem + .45vw, 1.3rem);
  color: var(--mist); line-height: 1.55;
}

/* Product shots arrive on a white background, so the plate is light on purpose:
   a lit panel in a dark page, rather than a white rectangle fighting the ink. */
.shot {
  margin: 0 0 clamp(2.5rem, 7vh, 4rem);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  background: var(--paper);
  border: 1px solid color-mix(in oklab, var(--slate) 25%, transparent);
}
.shot img { margin-inline: auto; width: auto; max-height: 60vh; }
.shot figcaption {
  margin-top: 1rem;
  font: 400 .8rem/1.4 var(--mono); color: #52667a;
}

/* body sections: label in the left rail, prose in the right */
.prose { max-width: 74rem; }
.block {
  display: grid; grid-template-columns: 1fr; gap: .9rem;
  padding-block: clamp(1.75rem, 5vh, 2.75rem);
  border-top: 1px solid color-mix(in oklab, var(--slate) 22%, transparent);
}
.block__title { margin: 0; }
.block__body { max-width: var(--measure); min-width: 0; }
.block__body > :last-child { margin-bottom: 0; }

@media (min-width: 52rem) {
  .block { grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
}

/* "Label: explanation" lists are genuinely definition lists */
.defs { display: grid; gap: 1.15rem; }
.defs__row { display: block; }
.defs dt {
  font: 500 .95rem/1.4 var(--body);
  color: var(--paper);
  letter-spacing: .005em;
}
.defs dd { margin: .2rem 0 0; color: var(--text); }
.defs__row { position: relative; padding-left: 1.1rem; }
.defs__row::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: .4rem; height: 1px; background: var(--sand);
}

ul.plain { list-style: none; display: grid; gap: .6rem; }
ul.plain li { position: relative; padding-left: 1.1rem; }
ul.plain li::before {
  content: ""; position: absolute; left: 0; top: .72em;
  width: .4rem; height: 1px; background: var(--slate);
}

.note { color: var(--muted); font-size: .93rem; font-style: italic; }

/* ---- resource cards ---- */
.rescards { list-style: none; display: grid; gap: .85rem; margin-bottom: 1.1rem; }
.rescard {
  display: grid; grid-template-columns: auto 1fr; align-items: center;
  gap: 0 1.1rem;
  padding: 1.1rem 1.25rem;
  background: color-mix(in oklab, var(--strat-hi) 55%, var(--ink));
  border: 1px solid color-mix(in oklab, var(--slate) 28%, transparent);
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.rescard:hover { border-color: var(--sand); background: color-mix(in oklab, var(--strat-hi) 80%, var(--ink)); }
.rescard__icon { grid-row: span 2; width: 3.5rem; height: 3.5rem; border-radius: 12px; }
.rescard__link { font: 500 .95rem/1.4 var(--body); text-decoration: none; color: var(--paper); }
.rescard__link:hover { color: var(--sand); }
.rescard__link::after { content: " ↗"; font-family: var(--mono); color: var(--sand); }
.rescard__note { margin: .25rem 0 0; font-size: .88rem; color: var(--muted); }
.rescard:not(:has(.rescard__icon)) { grid-template-columns: 1fr; }

/* ---- prev / next ---- */
.pager {
  display: grid; gap: 1px;
  grid-template-columns: 1fr;
  margin-top: clamp(2.5rem, 7vh, 4rem);
  border-top: 1px solid color-mix(in oklab, var(--slate) 22%, transparent);
}
.pager__item {
  display: block; padding: clamp(1.4rem, 4vh, 2rem) 0;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in oklab, var(--slate) 22%, transparent);
}
.pager__dir {
  display: block;
  font: 500 .7rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .6rem;
}
.pager__name {
  display: block;
  font-family: var(--display); font-variation-settings: var(--wonk);
  font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); line-height: 1.15;
  color: var(--paper);
}
.pager__year { display: block; margin-top: .35rem; font: 400 .8rem/1 var(--mono); color: var(--muted); }
.pager__item:hover .pager__name { color: var(--sand); }
.pager__item:hover .pager__dir { color: var(--sand); }
.pager__item--next { text-align: right; }

@media (min-width: 46rem) {
  .pager { grid-template-columns: 1fr 1fr; column-gap: clamp(1.5rem, 4vw, 3rem); }
  .pager__item--prev:only-child { grid-column: 1; }
  .pager__item--next:only-child { grid-column: 2; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid color-mix(in oklab, var(--slate) 25%, transparent);
  background: var(--strat-lo);
  padding-block: clamp(2.5rem, 7vh, 4rem);
}
.footer__in { display: grid; gap: 1.25rem; }
.footer__sig { margin: 0; max-width: 40ch; font-family: var(--display); font-variation-settings: var(--wonk); font-size: 1.15rem; line-height: 1.3; color: var(--paper); }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; }
.footer__links a, .footer__meta a {
  font: 400 .82rem/1 var(--mono); letter-spacing: .06em; color: var(--mist); text-decoration: none;
}
.footer__links a:hover, .footer__meta a:hover { color: var(--sand); }
.footer__meta { margin: 0; font: 400 .78rem/1 var(--mono); letter-spacing: .06em; color: var(--muted); }

@media (min-width: 52rem) {
  .footer__in { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .footer__links { grid-column: 2; grid-row: 1; justify-content: flex-end; }
  .footer__meta { grid-column: 2; grid-row: 2; text-align: right; }
}

/* ==========================================================================
   Motion — one orchestrated reveal, opt-out respected
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); }
  .reveal.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .strata .reveal.is-in { transition-delay: calc(var(--i, 0) * 60ms); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* narrow screens: stack the year above the title */
@media (max-width: 34rem) {
  .stratum__link { grid-template-columns: 1fr auto; row-gap: .5rem; }
  .stratum__year { grid-column: 1; font-size: 1.15rem; }
  .stratum__main { grid-column: 1 / -1; }
  .stratum__go { grid-column: 2; grid-row: 1; }
}
