/* Coimbra Founders Night
 *
 * Design rules held throughout: radii 2px (pills only on badges and buttons),
 * hairline borders instead of shadows, no blur or glow anywhere, a strict 4px
 * spacing scale, tight negative tracking on display type, orange as an accent
 * rather than a wash, and 150-200ms opacity/transform motion only.
 */

/* ── Poppins, self-hosted ────────────────────────────────────── */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-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: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-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: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-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;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-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: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600-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: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600-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: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-700-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: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-700-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;
}

/* ── tokens ─────────────────────────────────────────────────────────────── */
:root {
  --ink:      #0E1512;
  --ink-2:    #16201B;
  --forest:   #1E2A20;
  --rust:     #C1502A;
  --orange:   #F26B21;
  --amber:    #F5A623;
  --bone:     #F4F1EC;
  --muted:    rgba(244, 241, 236, .68);
  /* .52, not lower: --faint carries body-size text (captions, legal, meta) and
     at .46 it measured 4.17:1 on --ink-2, under the 4.5:1 AA floor. */
  --faint:    rgba(244, 241, 236, .52);
  --hair:     rgba(244, 241, 236, .10);
  --hair-2:   rgba(244, 241, 236, .18);

  /* Split out from --orange/--amber so the bright theme can darken accents
     used AS TEXT without touching button fills, where #F26B21 stays and the
     dark --on-accent text on it passes AA in both themes. */
  --orange-text: #F26B21;
  --amber-text:  #F5A623;
  --on-accent:   #0E1512;
  --nav-bg:      rgba(14, 21, 18, .94);

  color-scheme: dark;

  /* 4px scale */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  --r: 2px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --dur: .18s;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

body {
  background: var(--ink);
  color: var(--bone);
  font: 400 16px/1.6 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: var(--s3) var(--s4); background: var(--orange); color: var(--on-accent);
}
.skip:focus { left: 0; }

/* ── layout ─────────────────────────────────────────────────────────────── */
.wrap {
  width: 100%; max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--s5);
}
.sec {
  padding-block: var(--s8);
  border-top: 1px solid var(--hair);
  /* Anchor targets land below the sticky nav instead of underneath it. */
  scroll-margin-top: 76px;
}
.sec--alt { background: var(--ink-2); }

.grid { display: grid; gap: var(--s5); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }

/* ── type ───────────────────────────────────────────────────────────────── */
.label {
  font-size: .75rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--orange-text);
  margin-bottom: var(--s4);
}

.h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600; line-height: 1.1; letter-spacing: -.03em;
  max-width: 20ch;
  margin-bottom: var(--s6);
}

.note {
  color: var(--muted); max-width: 68ch; margin-top: var(--s6);
}

.link {
  display: inline-block;
  font-size: .9375rem; font-weight: 500; color: var(--amber-text);
  text-decoration: none; padding: 0;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.link:hover { border-bottom-color: var(--amber-text); }
.link--btn { cursor: pointer; }

/* ── buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: var(--s3) var(--s5);
  border-radius: 999px;            /* pill: the poster's own device */
  font-size: .9375rem; font-weight: 500; text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              opacity var(--dur) var(--ease);
}
.btn--lg { padding: var(--s4) var(--s6); font-size: 1rem; }

.btn--primary { background: var(--orange); color: var(--on-accent); font-weight: 600; }
.btn--primary:hover { background: var(--amber); }

.btn--ghost { border: 1px solid var(--hair-2); color: var(--bone); }
.btn--ghost:hover { border-color: var(--bone); }

.pill {
  display: inline-block;
  padding: var(--s2) var(--s4);
  border: 1px solid var(--hair-2);
  border-radius: 999px;
  color: var(--muted);
  font-size: .75rem; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase;
}

/* ── grain ──────────────────────────────────────────────────────────────── */
.grain::after {
  content: ''; position: absolute; inset: 0;
  background-image: var(--grain);
  opacity: .05;                    /* restrained: texture, not a filter */
  pointer-events: none;
}

/* Page-wide film grain, echoing the poster's printed texture. Fixed so it does
   not scroll with the content, pointer-events none so it never blocks a click,
   and restrained enough that type stays crisp. Tunable via --grain-opacity. */
:root { --grain-opacity: .12; }
body::after {
  content: '';
  position: fixed; inset: 0;
  z-index: 60;
  pointer-events: none;
  background-image: var(--grain);
  opacity: var(--grain-opacity);
}
/* On the cream theme the light noise is invisible over a near-white surface, so
   multiply lets the grain's dark specks read instead. Lower opacity keeps it a
   texture rather than a wash that dims the cream. */
html[data-theme="bright"] body::after {
  mix-blend-mode: multiply;
  opacity: .3;
}

/* ── photo grade ────────────────────────────────────────────────────────── */
/* Unifies warm indoor S1E1 shots with daylight S1E2 shots against the dark
   page, without stylising faces. */
.ph { position: relative; overflow: hidden; background: var(--forest); }
.ph img {
  width: 100%; height: 100%; object-fit: cover;
  filter: contrast(1.05) saturate(1.05) brightness(.92);
}
.ph::after {
  content: ''; position: absolute; inset: 0;
  background: var(--rust); opacity: .07; pointer-events: none;
}

/* ── nav ────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
body.is-scrolled .nav { border-bottom-color: var(--hair); }

.nav__in {
  display: flex; align-items: center; gap: var(--s5);
  height: 64px;
}

.wordmark {
  text-decoration: none; font-weight: 700; letter-spacing: -.02em;
  margin-right: auto;
}
.wordmark__full { display: none; }

.nav__links { display: none; gap: var(--s5); }
.nav__links a {
  font-size: .9375rem; color: var(--muted); text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.nav__links a:hover { color: var(--bone); }

.nav__end { display: flex; align-items: center; gap: var(--s3); }

.lang {
  display: flex; align-items: center; gap: 2px;
  font-size: .8125rem; font-weight: 500; color: var(--faint);
  padding: var(--s2);
}

.theme {
  font-size: .875rem; line-height: 1; color: var(--faint);
  padding: var(--s2);
  transition: color var(--dur) var(--ease);
}
.theme:hover { color: var(--bone); }
.lang__opt { transition: color var(--dur) var(--ease); }
.lang__opt.is-on { color: var(--bone); }
.lang__sep { color: var(--hair-2); }

.nav__cta { display: none; }

.burger {
  width: 40px; height: 40px;
  display: flex; flex-direction: column; justify-content: center;
  align-items: center; gap: 5px;
}
.burger span {
  display: block; width: 18px; height: 1.5px; background: var(--bone);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
body.is-menu .burger span:first-child { transform: translateY(3.25px) rotate(45deg); }
body.is-menu .burger span:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

/* ── hero ───────────────────────────────────────────────────────────────── */
/* Type-led hero on the flat page background: no imagery or gradient, just the
   grain texture over the theme's own surface. Colors are tokenized so the hero
   adapts in both themes like every other section. */
.hero { position: relative; overflow: hidden; }

/* Grain only. The .grain class paints the texture via ::after; this element
   just gives it a full-bleed positioned box to sit in. */
.hero__bg { position: absolute; inset: 0; pointer-events: none; }

.hero__in {
  position: relative;
  padding-block: var(--s9) var(--s8);
  display: flex; flex-direction: column; align-items: flex-start;
  gap: var(--s5);
  min-height: 56vh; justify-content: flex-end;   /* headline sits low */
}

.hero__title {
  font-size: clamp(2.25rem, 7vw, 4.75rem);
  font-weight: 600; line-height: 1.03; letter-spacing: -.035em;
  /* 19ch, not 16: at 16 the English headline broke to three lines and left
     "know?" orphaned. Portuguese breaks identically either way. */
  max-width: 19ch;
  /* Evens out the lines and keeps the last word off its own line at narrow
     widths, where max-width alone cannot help. Ignored by older browsers,
     which just get the plain wrap. */
  text-wrap: balance;
}
.hero__title em { font-style: normal; font-weight: 400; color: var(--orange-text); }

.hero__lead { font-size: clamp(1rem, 2vw, 1.1875rem); max-width: 56ch; }
.hero__sub  { color: var(--muted); max-width: 52ch; }

.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s2); }

/* ── next edition ───────────────────────────────────────────────────────── */
.next {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border: 1px solid var(--hair);
  border-radius: var(--r);
  overflow: hidden;
}
.next__media { position: relative; overflow: hidden; background: var(--forest); aspect-ratio: 1 / 1; }
.next__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: contrast(1.05) saturate(1.05) brightness(.92);
}

.next__body { padding: var(--s6); display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); }
.next__code { font-size: .75rem; font-weight: 600; letter-spacing: .14em; color: var(--orange-text); }
.next__eyebrow {
  font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--faint); margin-top: var(--s2);
}
.next__title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.next__addr { color: var(--muted); font-size: .9375rem; }

.next__meta { width: 100%; margin-top: var(--s3); }
.next__row {
  display: flex; justify-content: space-between; gap: var(--s4);
  padding-block: var(--s3);
  border-top: 1px solid var(--hair);
  font-size: .9375rem;
}
.next__row dt { color: var(--faint); }
.next__row dd { text-align: right; font-weight: 500; }

.next__approval { font-size: .875rem; color: var(--faint); }
.next__partners { font-size: .875rem; color: var(--muted); }
.next__body .btn { margin-top: var(--s3); }

/* ── purpose ────────────────────────────────────────────────────────────── */
.pcard {
  padding: var(--s6) 0 0;
  border-top: 1px solid var(--hair);
}
.pcard h3 {
  font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em;
  margin-bottom: var(--s2);
}
.pcard p { color: var(--muted); }

/* ── non-profit statement ───────────────────────────────────────────────── */
/* The strongest trust signal on the page, delivered as display type rather
   than a boxed aside. */
.statement {
  font-size: clamp(1.75rem, 4.5vw, 3.25rem);
  font-weight: 600; line-height: 1.12; letter-spacing: -.03em;
  max-width: 22ch;
  text-wrap: balance;
}
.statement em { font-style: normal; color: var(--orange-text); }
#nonprofit .note { margin-top: var(--s5); }

/* ── gallery strip ──────────────────────────────────────────────────────── */
/* Auto-scrolling marquee. The track holds two copies of the set and slides
   left by exactly one copy (--shift, measured in JS), then loops. */
/* Scrollable in both directions: JS nudges scrollLeft for the auto-drift, but
   the container is a real overflow scroller, so drag, wheel and touch all work.
   Auto-drift pauses on hover/focus/drag (handled in JS). */
.strip {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 var(--s5) var(--s2);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  scrollbar-width: none;          /* Firefox: hide the bar, keep the scroll */
  -ms-overflow-style: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip.is-dragging { cursor: grabbing; }
.strip.is-dragging .shot img { transition: none; }

.strip__track {
  display: flex; gap: var(--s3);
  width: max-content;
}

/* CTA below the strip, linking to the full editions list. */
.gallery__cta { margin-top: var(--s6); }

.shot {
  position: relative; overflow: hidden;
  flex: 0 0 auto;
  width: clamp(240px, 62vw, 400px);
  aspect-ratio: 3 / 2;
  border-radius: var(--r);
  background: var(--forest);
  padding: 0;
}
.shot img {
  width: 100%; height: 100%; object-fit: cover;
  filter: contrast(1.05) saturate(1.05) brightness(.92);
  transition: transform var(--dur) var(--ease);
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;   /* the button, not the image, is the drag/click target */
}
.shot::after {
  content: ''; position: absolute; inset: 0;
  background: var(--rust); opacity: .07; pointer-events: none;
}
.shot:hover img { transform: scale(1.02); }

/* ── quotes ─────────────────────────────────────────────────────────────── */
.quote {
  display: flex; flex-direction: column; gap: var(--s5);
  padding: var(--s6) var(--s5);
  border: 1px solid var(--hair);
  border-radius: var(--r);
}
.quote blockquote { flex: 1; color: var(--bone); font-size: .9375rem; }
.quote figcaption { display: flex; flex-direction: column; gap: 2px; }
.quote__who  { font-weight: 600; font-size: .9375rem; }
.quote__role { font-size: .8125rem; color: var(--muted); }
.quote__lang {
  font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint); margin-top: var(--s1);
}
.quote figcaption .link { margin-top: var(--s3); align-self: flex-start; }

/* ── editions ───────────────────────────────────────────────────────────── */
.season {
  font-size: .75rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--faint);
  padding-bottom: var(--s3); margin-bottom: var(--s5);
  border-bottom: 1px solid var(--hair);
}
.season:not(:first-child) { margin-top: var(--s8); }

.ed {
  border: 1px solid var(--hair);
  border-radius: var(--r);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.ed--next { border-color: var(--hair-2); }

.ed__media { position: relative; overflow: hidden; aspect-ratio: 1 / 1; background: var(--forest); }
.ed__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: contrast(1.03) saturate(1.03) brightness(.95);
}
.ed__flag {
  position: absolute; top: var(--s3); left: var(--s3);
  padding: var(--s1) var(--s3);
  background: var(--orange); color: var(--on-accent);
  border-radius: 999px;
  font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}

.ed__body { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s1); flex: 1; }
.ed__code { font-size: .75rem; font-weight: 600; letter-spacing: .14em; color: var(--orange-text); }
.ed__date { font-weight: 500; }
.ed__host { color: var(--muted); font-size: .9375rem; }
.ed__n    { color: var(--faint); font-size: .875rem; }
.ed__acts { display: flex; flex-wrap: wrap; gap: var(--s4); margin-top: auto; padding-top: var(--s4); }

/* ── partners ───────────────────────────────────────────────────────────── */
/* These companies are the reason each edition happens, so they get real
   presence: full-strength text at reading size, not faint metadata chips. */
.partners {
  list-style: none; padding: 0;
  display: grid; gap: var(--s3);
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.partner {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s5);
  border: 1px solid var(--hair-2);
  border-radius: var(--r);
  font-size: 1rem; font-weight: 500; color: var(--bone);
  letter-spacing: -.01em; line-height: 1.3;
  transition: border-color var(--dur) var(--ease);
}
.partner::before {
  content: ''; flex: 0 0 auto;
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--orange);
}
.partner:hover { border-color: var(--bone); }

/* ── faq ────────────────────────────────────────────────────────────────── */
/* Constrained here rather than by a narrow wrapper, so the section label and
   heading stay on the same left edge as every other section. */
.faq { max-width: 800px; }
.qa { border-bottom: 1px solid var(--hair); }
.qa summary {
  list-style: none; cursor: pointer;
  padding-block: var(--s5);
  display: flex; justify-content: space-between; align-items: center; gap: var(--s4);
  font-size: 1.0625rem; font-weight: 500; letter-spacing: -.01em;
  transition: color var(--dur) var(--ease);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: '+'; flex: 0 0 auto;
  font-size: 1.25rem; font-weight: 400; color: var(--orange-text); line-height: 1;
  transition: transform var(--dur) var(--ease);
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa summary:hover { color: var(--amber-text); }
.qa > p { color: var(--muted); padding-bottom: var(--s5); max-width: 68ch; }

/* ── footer ─────────────────────────────────────────────────────────────── */
.foot { position: relative; overflow: hidden; border-top: 1px solid var(--hair); }
.foot__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 140% at 10% 100%, var(--rust) 0%, transparent 60%),
    radial-gradient(70% 130% at 90% 100%, var(--forest) 0%, transparent 60%),
    var(--ink);
  opacity: .55;
}
.foot__in {
  position: relative;
  padding-block: var(--s8) var(--s6);
  display: flex; flex-direction: column; gap: var(--s5);
}
.foot__mark { font-weight: 700; letter-spacing: -.02em; }
.foot__tag { color: var(--muted); font-size: .9375rem; }
.foot__links { display: flex; gap: var(--s5); }
@media (min-width: 768px) { .foot__links { margin-left: var(--s7); } }
.foot__legal { font-size: .8125rem; color: var(--faint); }

/* ── responsive ─────────────────────────────────────────────────────────── */

/* Mobile menu sheet */
@media (max-width: 767px) {
  .nav__links {
    display: flex; flex-direction: column; gap: 0;
    position: fixed; inset: 64px 0 auto;
    background: var(--ink);
    border-bottom: 1px solid var(--hair);
    padding: var(--s2) var(--s5) var(--s5);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  }
  body.is-menu .nav__links { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding-block: var(--s4); border-bottom: 1px solid var(--hair); }
}

@media (min-width: 768px) {
  .wrap { padding-inline: var(--s6); }
  .sec { padding-block: var(--s9); }

  .grid--2 { grid-template-columns: repeat(2, 1fr); gap: var(--s6) var(--s7); }
  /* Two across at tablet; three only once there is room for them to breathe. */
  .grid--3 { grid-template-columns: repeat(2, 1fr); }

  .wordmark__c { display: none; }
  .wordmark__full { display: inline; }
  .nav__links { display: flex; }
  .nav__cta { display: inline-block; }
  .burger { display: none; }

  .hero__in { padding-block: var(--s10) var(--s9); }

  .next { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .next__media { aspect-ratio: auto; height: 100%; }
  .next__body { padding: var(--s7); }

  .strip { padding-inline: max(var(--s6), calc((100vw - 1200px) / 2)); }

  .foot__in { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .foot__legal { margin-left: auto; }
}

@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ── bright theme ───────────────────────────────────────────────────────── */
/* The light variant re-maps tokens only; component rules never change. The
   lightbox keeps its pinned poster-dark treatment. Every value here
   was contrast-checked: accents darken because #F26B21/#F5A623 read fine as
   text on ink (6.1:1 / 9.1:1) but fail hard on cream (2.7:1 / 1.8:1). Button
   fills keep the original orange, whose dark --on-accent text passes in both
   themes.

   Select with the nav toggle or ?theme=bright. */
html[data-theme="bright"] {
  --ink:      #F4EFE7;               /* page bg: warm cream, not clinical white */
  --ink-2:    #FBF8F3;               /* raised surfaces sit lighter, not darker */
  --forest:   #E8E1D4;               /* media placeholder                       */
  --bone:     #161D18;
  --muted:    rgba(22, 29, 24, .70); /* 5.9:1 on page                           */
  --faint:    rgba(22, 29, 24, .62); /* .62, not .55: at .55 it was 3.7:1       */
  --hair:     rgba(22, 29, 24, .12);
  --hair-2:   rgba(22, 29, 24, .22);
  --orange-text: #A94A0C;            /* 5.0:1 on page                           */
  --amber-text:  #8A5711;            /* 5.3:1 on page                           */
  --nav-bg:      rgba(244, 239, 231, .94);
  color-scheme: light;
}

/* The footer gradient at .55 would swamp dark text on a light ground. */
html[data-theme="bright"] .foot__bg { opacity: .3; }

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

  /* JS already suppresses the auto-drift under reduced motion; the strip stays a
     plain scroller the reader drives by hand. */
}
