/* ==========================================================================
   ESEF — Brand & Talent Agency
   Design concept: "The Record Board" — an athletic federation results board
   crossed with a fashion editorial. Strict indices, hairline rules, wide
   display type, black-and-white photography. Red is a marker, never decor.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Colour — OKLCH. Neutrals are tinted toward the brand red hue (25deg)
     so the surfaces and the accent feel like one family. */
  --ink:            oklch(0.145 0.008 25);   /* page ground  */
  --ink-raised:     oklch(0.205 0.009 25);   /* raised panel */
  --ink-sunk:       oklch(0.115 0.007 25);   /* recessed     */
  --rule:           oklch(0.305 0.011 25);   /* hairlines    */
  --rule-soft:      oklch(0.245 0.010 25);

  --paper:          oklch(0.960 0.011 77);   /* primary text — brand cream */
  --paper-dim:      oklch(0.760 0.010 60);   /* secondary text */
  --paper-faint:    oklch(0.560 0.009 45);   /* labels, indices */

  --signal:         oklch(0.656 0.206 25);   /* brand red — marker only */
  --signal-quiet:   oklch(0.480 0.150 25);

  /* Type */
  --face-display: "Syncopate", "Arial Black", sans-serif;
  --face-text:    "Archivo", "Helvetica Neue", Arial, sans-serif;

  --t-2xs:     0.6875rem;
  --t-xs:      0.75rem;
  --t-sm:      0.8125rem;
  --t-base:    clamp(1rem, 0.955rem + 0.22vw, 1.125rem);
  --t-md:      clamp(1.2rem, 1.06rem + 0.68vw, 1.6rem);
  --t-lg:      clamp(1.75rem, 1.35rem + 1.9vw, 3rem);
  --t-xl:      clamp(2.4rem, 1.6rem + 3.8vw, 5.25rem);
  --t-display: clamp(3.25rem, 0.6rem + 12vw, 12rem);

  /* Space — 4pt scale, semantic names */
  --space-2xs: 4px;
  --space-xs:  8px;
  --space-sm:  12px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-section: clamp(80px, 11vw, 176px);

  --gutter: clamp(20px, 4.5vw, 72px);
  --measure: 68ch;

  /* Motion — exponential deceleration, no bounce */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io:  cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur-med:  420ms;
  --dur-slow: 900ms;
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--face-text);
  font-size: var(--t-base);
  /* light type on dark ground reads lighter — extra leading */
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

::selection {
  background: var(--signal);
  color: oklch(0.145 0.008 25);
}

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

.skip-link {
  position: absolute;
  top: var(--space-xs);
  left: var(--space-xs);
  z-index: 200;
  padding: var(--space-xs) var(--space-md);
  background: var(--paper);
  color: var(--ink);
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

/* --------------------------------------------------------------------------
   3. Shared type utilities
   -------------------------------------------------------------------------- */

.label {
  font-size: var(--t-2xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-faint);
  font-weight: 500;
  line-height: 1.3;
}

.label--signal { color: var(--signal); }

/* Small square marker borrowed from the brand's own "|||" motif */
.label--marked::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: var(--space-xs);
  background: var(--signal);
  vertical-align: 0.08em;
}

.display {
  font-family: var(--face-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 0.92;
  text-transform: uppercase;
}

.index-num {
  font-family: var(--face-display);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  font-size: var(--t-sm);
  color: var(--paper-faint);
  letter-spacing: 0.02em;
}

.lede {
  font-size: var(--t-md);
  line-height: 1.44;
  max-width: 24ch;
  letter-spacing: -0.005em;
}

.prose {
  max-width: var(--measure);
  color: var(--paper-dim);
}
.prose p + p { margin-top: var(--space-md); }
.prose strong { color: var(--paper); font-weight: 600; }

/* --------------------------------------------------------------------------
   4. Layout scaffolding
   -------------------------------------------------------------------------- */

.shell {
  padding-inline: var(--gutter);
  max-width: 1440px;
  margin-inline: auto;
}

.section {
  padding-block: var(--space-section);
  border-top: 1px solid var(--rule-soft);
}

/* Asymmetric two-column: narrow label rail + wide content */
.split {
  display: grid;
  gap: var(--space-xl) var(--space-2xl);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split {
    /* Fixed narrow label rail rather than a proportional column, so section
       content starts near the left edge instead of drifting right. */
    grid-template-columns: 104px minmax(0, 1fr);
    gap: var(--space-xl);
  }

  /* Modifier: drop the rail entirely and stack the label above, so the
     section runs flush to the gutter. Used where the content is itself a
     grid and the extra indent would compound. */
  .split--flush {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-lg);
  }
}

/* --------------------------------------------------------------------------
   5. Masthead
   -------------------------------------------------------------------------- */

.masthead {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-md) var(--gutter);
  background: color-mix(in oklch, var(--ink) 78%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-med) var(--ease-out),
              background var(--dur-med) var(--ease-out);
}
.masthead[data-scrolled="true"] {
  border-bottom-color: var(--rule-soft);
  background: color-mix(in oklch, var(--ink) 92%, transparent);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  font-family: var(--face-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.32em;
  color: var(--paper);
}
.wordmark__text { text-indent: 0.34em; } /* optical: cancel trailing tracking */

/* The ESEF monogram ships as black artwork on transparency. brightness(0)
   crushes any colour to black, invert(1) flips it to white — alpha survives
   both, so the mark comes through clean on the dark ground without needing
   a separate white asset. */
.brandmark {
  display: block;
  width: auto;
  filter: brightness(0) invert(1);
}
.masthead .brandmark { height: 52px; }
.footer .brandmark { height: 88px; opacity: 0.92; }

/* The mark drives the header height now, so the hero has to clear it —
   see the .hero padding-top below. Scaled back on small screens where a
   52px mark would crowd the nav. */
@media (max-width: 560px) {
  .masthead .brandmark { height: 38px; }
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(var(--space-md), 2.4vw, var(--space-2xl));
}

.nav a {
  font-size: var(--t-2xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--paper-dim);
  padding-block: var(--space-2xs);
  position: relative;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-med) var(--ease-out);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--paper); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

@media (max-width: 560px) {
  .nav { gap: var(--space-md); }
  .nav a { font-size: 0.625rem; letter-spacing: 0.14em; }
}

/* --------------------------------------------------------------------------
   6. Hero — the ESEF letter board
   -------------------------------------------------------------------------- */

/* Top padding must clear the fixed masthead, whose height is now set by the
   52px brand mark plus its 16px of vertical padding. */
.hero {
  padding-top: clamp(108px, 13vh, 148px);
  padding-bottom: var(--space-2xl);
}

.hero__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  padding-bottom: var(--space-lg);
}

.board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  border-block: 1px solid var(--rule);
  border-block-width: 1px;
  background: var(--rule-soft);
  padding-block: 1px;
}
@media (max-width: 760px) {
  .board { grid-template-columns: repeat(2, 1fr); }
}

.board__cell {
  position: relative;
  aspect-ratio: 3 / 4.4;
  overflow: hidden;
  background: var(--ink-sunk);
  isolation: isolate;
}
@media (max-width: 760px) {
  .board__cell { aspect-ratio: 3 / 3.6; }
}

/* All four photographs share one exposure. They were shot separately and do
   not match — cell 1 is roughly three times brighter in the band the letters
   sit in — but the client approved this look, so they run ungraded.
   Per-cell grading is kept in css/style-v3-graded.css if it is wanted later. */
/* Panel 4's subject stands at the very top of his source frame — there are no
   spare pixels above his head. The 1.06 zoom that gives the other panels their
   parallax headroom was eating exactly that. So this panel opts out: no zoom,
   no drift, crop window pinned to the top. It shows the photograph at full
   height instead. --drift-lock overrides the scroll offset the script writes. */
.board__cell:nth-child(4) {
  --zoom: 1;
  --zoom-hover: 1;
  --focal-y: 0%;
  --drift-lock: 0px;
}

.board__cell img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% var(--focal-y, 50%);
  filter: grayscale(1) contrast(1.12) brightness(0.7);
  transform: scale(var(--zoom, 1.06))
             translate3d(0, var(--drift-lock, var(--drift, 0px)), 0);
  transition: filter 560ms var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
  will-change: transform;
}

/* Keyboard parity with the hover behaviour below */
.board__cell:focus-within img {
  filter: grayscale(0) contrast(1.04) saturate(1.06) brightness(0.98);
  transform: scale(var(--zoom-hover, 1.01))
             translate3d(0, var(--drift-lock, var(--drift, 0px)), 0);
}

/* Pointer only — on touch there is no hover, so the board stays black and
   white rather than latching into a stuck :hover state after a tap. */
@media (hover: hover) {
  /* Hovering anywhere on the board pushes the other cells back... */
  .board:hover .board__cell img {
    filter: grayscale(1) contrast(1.14) brightness(0.42);
  }

  /* ...and brings the one under the cursor forward, in full colour.
     Equal specificity to the rule above, so source order decides.
     Held just under full brightness so a bright photograph cannot wash
     out the letterform now that the scrim is gone. */
  .board .board__cell:hover img {
    filter: grayscale(0) contrast(1.04) saturate(1.06) brightness(0.93);
    transform: scale(var(--zoom-hover, 1.01))
               translate3d(0, var(--drift-lock, var(--drift, 0px)), 0);
  }
}

/* No scrim: the photographs run edge to edge. Legibility instead comes from
   the screen blend (which can only lighten, never darken) plus the base
   brightness(0.7) already applied to the images. */

.board__letter {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  font-family: var(--face-display);
  font-weight: 700;
  font-size: var(--t-display);
  line-height: 0.78;
  text-align: center;
  /* No blend mode. A screen blend can only ever lighten its backdrop, which
     made "darker" and "more solid" mutually exclusive — every gain in opacity
     was also a gain in lightness. Straight alpha instead: the glyph renders
     as the stated colour, and the remaining 12% lets just enough photograph
     through to keep it from looking like flat type pasted on top.
     A side benefit: the letters no longer wash out over the bright first
     photograph, because they no longer depend on the backdrop at all. */
  color: oklch(0.55 0.15 25 / 0.88);
  padding-bottom: clamp(4px, 1.4vw, 18px);
  pointer-events: none;
  user-select: none;
}

.board__cell::after {
  /* index tick, top-left of each cell */
  content: attr(data-index);
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  z-index: 3;
  font-family: var(--face-display);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: var(--paper-dim);
  font-variant-numeric: tabular-nums;
}

.hero__foot {
  display: grid;
  gap: var(--space-lg);
  padding-top: var(--space-lg);
  align-items: start;
}
@media (min-width: 900px) {
  .hero__foot {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: var(--space-4xl);
  }
}

.hero__claim {
  font-size: var(--t-lg);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 500;
  max-width: 18ch;
}
.hero__claim em {
  font-style: normal;
  color: var(--signal);
}

/* --------------------------------------------------------------------------
   7. Partner marquee
   -------------------------------------------------------------------------- */

.marquee {
  border-block: 1px solid var(--rule-soft);
  overflow: hidden;
  padding-block: var(--space-md);
  --marquee-dur: 34s;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-run var(--marquee-dur) linear infinite;
}

.marquee__group {
  display: flex;
  align-items: center;
  gap: clamp(var(--space-lg), 4vw, var(--space-3xl));
  padding-right: clamp(var(--space-lg), 4vw, var(--space-3xl));
  flex: none;
}

.marquee__item {
  font-family: var(--face-display);
  font-weight: 400;
  font-size: var(--t-sm);
  letter-spacing: 0.16em;
  color: var(--paper-dim);
  white-space: nowrap;
}
.marquee__item::after {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  margin-left: clamp(var(--space-lg), 4vw, var(--space-3xl));
  background: var(--signal);
  vertical-align: 0.22em;
}

@keyframes marquee-run {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* --------------------------------------------------------------------------
   8. Record rows — services, roster, team
   Full-width hairline rows. No cards, no side stripes.
   -------------------------------------------------------------------------- */

.record {
  border-top: 1px solid var(--rule-soft);
}

.record__row {
  border-bottom: 1px solid var(--rule-soft);
  position: relative;
}

.record__row::before {
  /* hover wash — a tint, not a stripe */
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink-raised);
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease-out);
  pointer-events: none;
}
.record__row:hover::before { opacity: 0.55; }

.record__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-sm) var(--space-2xl);
  padding-block: var(--space-lg);
  align-items: baseline;
  transition: transform var(--dur-med) var(--ease-out);
}
@media (min-width: 900px) {
  .record__inner {
    grid-template-columns: 3.2rem minmax(0, 1.15fr) minmax(0, 1.6fr);
    padding-block: var(--space-xl);
  }
  .record__row:hover .record__inner { transform: translate3d(var(--space-sm), 0, 0); }
}

.record__title {
  font-family: var(--face-display);
  font-weight: 700;
  font-size: var(--t-md);
  line-height: 1.06;
  letter-spacing: -0.008em;
  text-transform: uppercase;
}

.record__meta {
  font-size: var(--t-2xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
  margin-top: var(--space-xs);
  font-weight: 500;
}

.record__body {
  color: var(--paper-dim);
  max-width: 60ch;
  font-size: var(--t-base);
}

/* Expandable roster rows */
.roster__row { border-bottom: 1px solid var(--rule-soft); position: relative; }

.roster__trigger {
  width: 100%;
  text-align: left;
  display: grid;
  gap: var(--space-sm) var(--space-2xl);
  grid-template-columns: 3.2rem minmax(0, 1fr) auto;
  align-items: center;
  padding-block: var(--space-lg);
  transition: transform var(--dur-med) var(--ease-out);
}
@media (min-width: 900px) {
  .roster__trigger { padding-block: var(--space-xl); }
  .roster__row:hover .roster__trigger { transform: translate3d(var(--space-sm), 0, 0); }
}

.roster__name {
  font-family: var(--face-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 0.9rem + 1.7vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  transition: color var(--dur-fast) var(--ease-out);
}
.roster__row:hover .roster__name { color: var(--signal); }

.roster__disc {
  display: block;
  font-family: var(--face-text);
  font-size: var(--t-2xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-faint);
  margin-top: var(--space-xs);
  font-weight: 500;
}

.roster__sign {
  position: relative;
  width: 15px; height: 15px;
  flex: none;
  justify-self: end;
}
.roster__sign::before,
.roster__sign::after {
  content: "";
  position: absolute;
  background: var(--paper-dim);
  transition: transform var(--dur-med) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.roster__sign::before { inset: 7px 0 7px 0; height: 1px; }
.roster__sign::after  { inset: 0 7px 0 7px; width: 1px; }

.roster__trigger[aria-expanded="true"] .roster__sign::after { transform: scaleY(0); }
.roster__trigger[aria-expanded="true"] .roster__sign::before { background: var(--signal); }

/* grid-template-rows technique — animates without touching height */
.roster__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-med) var(--ease-io);
}
.roster__panel[data-open="true"] { grid-template-rows: 1fr; }
.roster__panel > div { overflow: hidden; }

.roster__panel p {
  color: var(--paper-dim);
  max-width: var(--measure);
  padding-bottom: var(--space-xl);
}
@media (min-width: 900px) {
  .roster__panel p { padding-left: calc(3.2rem + var(--space-2xl)); }
}

/* --------------------------------------------------------------------------
   9. Story block
   -------------------------------------------------------------------------- */

.story {
  display: grid;
  gap: var(--space-2xl);
  align-items: start;
}
@media (min-width: 1000px) {
  .story {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: var(--space-4xl);
  }
}

.story__figure {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--ink-sunk);
}
/* In colour, matching the team portraits — black and white is reserved for
   the hero board, where it does the work of unifying four mismatched shoots. */
.story__figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.03) saturate(1.04) brightness(0.97);
}

.pull {
  font-family: var(--face-display);
  font-weight: 700;
  font-size: var(--t-lg);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-top: var(--space-xl);
  max-width: 16ch;
}
.pull span { color: var(--signal); }

/* --------------------------------------------------------------------------
   10. Team cards (team page) — portrait + record, not boxes
   -------------------------------------------------------------------------- */

.people { display: grid; gap: var(--space-section); }

.person {
  display: grid;
  gap: var(--space-lg) var(--space-2xl);
  align-items: start;
}
@media (min-width: 900px) {
  .person {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr);
    gap: var(--space-4xl);
  }
  .person:nth-child(even) .person__figure { order: 2; }
}

.person__figure {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ink-raised);
}
/* Team portraits run in full colour — the one place the site drops the
   black-and-white treatment, so the people read as people. */
.person__figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.03) saturate(1.04) brightness(0.97);
  transition: filter var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
.person:hover .person__figure img {
  filter: contrast(1.06) saturate(1.08) brightness(1.02);
  transform: scale(1.025);
}

.person__figure[data-empty="true"] {
  display: grid;
  place-items: center;
}
.person__figure[data-empty="true"]::after {
  content: attr(data-initials);
  font-family: var(--face-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--rule);
  letter-spacing: 0.04em;
}

.person__name {
  font-family: var(--face-display);
  font-weight: 700;
  font-size: var(--t-xl);
  line-height: 0.94;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.person__role {
  margin-top: var(--space-sm);
  font-size: var(--t-2xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--signal);
  font-weight: 500;
}

.person__bio { margin-top: var(--space-lg); }

/* --------------------------------------------------------------------------
   11. Contact
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  gap: var(--space-2xl);
  align-items: start;
}
@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: var(--space-4xl);
  }
}

.field { display: grid; gap: var(--space-xs); margin-bottom: var(--space-lg); }

.field label {
  font-size: var(--t-2xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-faint);
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  font-family: var(--face-text);
  font-size: var(--t-base);
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: var(--space-sm) var(--space-md);
  transition: border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 8.5rem; line-height: 1.6; }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--paper-faint); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--signal);
  background: var(--ink-raised);
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--paper-faint) 50%),
                    linear-gradient(135deg, var(--paper-faint) 50%, transparent 50%);
  background-position: calc(100% - 18px) center, calc(100% - 13px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: var(--space-2xl);
}
.field select option { background: var(--ink-raised); color: var(--paper); }

.field__hint { font-size: var(--t-xs); color: var(--paper-faint); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--face-display);
  font-weight: 700;
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.btn:hover { background: var(--signal); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--rule);
}
.btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.contact-direct { display: grid; gap: var(--space-lg); }

.contact-direct__item { display: grid; gap: var(--space-2xs); }

.contact-direct a {
  font-size: var(--t-md);
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  width: fit-content;
  transition: border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.contact-direct a:hover { color: var(--signal); border-bottom-color: var(--signal); }

.form-status {
  margin-top: var(--space-md);
  font-size: var(--t-sm);
  min-height: 1.4em;
}
.form-status[data-state="ok"]  { color: var(--signal); }
.form-status[data-state="err"] { color: var(--signal); }

/* --------------------------------------------------------------------------
   11b. Social feed carousel
   Horizontal scroll-snap strip. Bleeds off the right edge so it reads as a
   continuing feed rather than a closed row. Native scrolling does the work —
   the arrows are a convenience, not the mechanism, so it stays usable with a
   trackpad, a touch swipe, or the keyboard with no JS at all.
   -------------------------------------------------------------------------- */

.feed { padding-block: var(--space-section); border-top: 1px solid var(--rule-soft); }

.feed__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.feed__handle {
  font-family: var(--face-display);
  font-weight: 700;
  font-size: var(--t-md);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  transition: color var(--dur-fast) var(--ease-out);
}
.feed__handle:hover { color: var(--signal); }

.feed__nav { display: flex; gap: var(--space-xs); }

.feed__btn {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
  color: var(--paper-dim);
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.feed__btn:hover:not([disabled]) {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}
.feed__btn[disabled] { opacity: 0.3; cursor: not-allowed; }
.feed__btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; }

.feed__track {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  /* bleed past the shell so the strip runs off the right edge */
  margin-right: calc(var(--gutter) * -1);
  padding-right: var(--gutter);
  overscroll-behavior-x: contain;
}
.feed__track::-webkit-scrollbar { display: none; }

.feed__item {
  position: relative;
  flex: 0 0 clamp(200px, 24vw, 310px);
  aspect-ratio: 4 / 5;
  scroll-snap-align: start;
  overflow: hidden;
  background: var(--ink-raised);
}

.feed__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.03) saturate(1.03) brightness(0.9);
  transition: filter var(--dur-med) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
.feed__item:hover img,
.feed__item:focus-visible img {
  filter: contrast(1.05) saturate(1.08) brightness(1);
  transform: scale(1.03);
}

.feed__index {
  position: absolute;
  top: var(--space-sm); left: var(--space-sm);
  font-family: var(--face-display);
  font-size: 0.625rem;
  font-variant-numeric: tabular-nums;
  color: var(--paper);
  mix-blend-mode: difference;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .feed__track { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   12. Big closing CTA
   -------------------------------------------------------------------------- */

.cta {
  padding-block: var(--space-section);
  border-top: 1px solid var(--rule-soft);
}

.cta__link {
  display: block;
  font-family: var(--face-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 0.9rem + 9vw, 10rem);
  line-height: 0.86;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  transition: color var(--dur-med) var(--ease-out);
}
.cta__link:hover { color: var(--signal); }

.cta__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--rule-soft);
}

/* --------------------------------------------------------------------------
   13. Footer + status bar
   -------------------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--rule-soft);
  padding-block: var(--space-2xl) var(--space-3xl);
}

.footer__grid {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.footer__list { display: grid; gap: var(--space-xs); margin-top: var(--space-md); }
.footer__list a {
  font-size: var(--t-sm);
  color: var(--paper-dim);
  width: fit-content;
  transition: color var(--dur-fast) var(--ease-out);
}
.footer__list a:hover { color: var(--signal); }

.footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: space-between;
  margin-top: var(--space-3xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--rule-soft);
}

.statusbar {
  position: fixed;
  left: var(--gutter);
  bottom: var(--space-md);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  pointer-events: none;
  mix-blend-mode: difference;
}
.statusbar__dot {
  width: 6px; height: 6px;
  background: var(--signal);
  animation: pulse 3.2s var(--ease-io) infinite;
}
.statusbar time { font-variant-numeric: tabular-nums; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}

@media (max-width: 720px) {
  .statusbar { display: none; }
}

/* --------------------------------------------------------------------------
   14. Scroll reveal
   -------------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal][data-shown="true"] {
  opacity: 1;
  transform: none;
}

/* Line-by-line headline reveal */
.reveal-line { display: block; overflow: hidden; }
.reveal-line > span {
  display: block;
  transform: translate3d(0, 105%, 0);
  transition: transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-shown="true"] .reveal-line > span { transform: none; }

/* --------------------------------------------------------------------------
   15. Reduced motion — honour it fully
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] { opacity: 1; transform: none; }
  .reveal-line > span { transform: none; }
  .marquee__track { animation: none; }
  /* Still honours a panel's zoom opt-out, so panel 4's subject is not
     re-cropped for reduced-motion users. */
  .board__cell img { transform: scale(var(--zoom-hover, 1.02)); }
}
