/* ============================================================================
   public.css — design system for the seven public pages of cabrillo.film.
   Tokens harvested from the approved Figma set (Bddf6mtaDP4WhNbaP9Ss16), not
   invented. Motion follows Apple's fluid-interface rules: critically damped
   by default, overshoot only where a gesture carried momentum (so: nowhere on
   a marketing page), everything interruptible, everything opt-out-able.
   ========================================================================= */

:root {
  /* --- colour: exactly the palette the design uses ---------------------- */
  --blue:        #0d2d7c;   /* primary — headings, brand, nav                */
  --blue-hero:   #3861e3;   /* hero field                                     */
  --blue-deep:   #091f57;   /* pressed states on blue                         */
  --sky:         #78bde8;   /* accent on dark                                 */
  --orange:      #ff5408;   /* brand accent: rules, focus rings, big numerals */
  --rust:        #c93c00;   /* eyebrows AND button fills — 5.08:1 with white  */
  --rust-deep:   #a83200;   /* button hover — 6.73:1 with white               */
  /* Do not put white text on --orange. It measures 3.22:1, which fails AA
     for anything under 18.66px bold, and this is a public college site. */
  --yellow:      #fff066;   /* festival surface                               */
  --ink:         #20221d;   /* body copy                                      */
  --muted:       #4d4f4a;   /* secondary copy                                 */
  --hairline:    #dbe7f0;
  --tint:        #f4f9fc;   /* pale section background                        */
  --band:        #d3e9f4;   /* stronger section background                    */
  --placeholder: #b9cfe0;   /* film-still stand-in                            */
  --white:       #ffffff;
  --ok:          #1e7a2e;

  /* --- type ------------------------------------------------------------- */
  --font: 'Fira Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Fira Code', ui-monospace, Menlo, monospace;

  /* Tracking is size-specific: large text tightens, body sits at zero,
     mono eyebrows open up. A single letter-spacing value is wrong somewhere. */
  --track-display: -0.02em;
  --track-h1:      -0.01em;
  --track-body:     0;
  --track-eyebrow:  0.08em;

  /* --- spacing / shape --------------------------------------------------- */
  --gutter: clamp(20px, 5vw, 80px);
  --maxw: 1280px;
  --r-pill: 999px;
  --r-card: 12px;
  --r-sm: 10px;

  /* --- motion ------------------------------------------------------------
     A critically damped spring (damping 1.0, response ~0.4s) has no overshoot
     and settles gracefully. cubic-bezier(0.32,0.72,0,1) is its practical
     stand-in for discrete state changes. Nothing here bounces: no gesture on
     this site carries momentum, and overshoot without momentum reads as noise. */
  --spring:      cubic-bezier(0.32, 0.72, 0, 1);
  --spring-out:  cubic-bezier(0.4, 0, 0.2, 1);
  --t-press:  100ms;   /* feedback must feel instant                          */
  --t-quick:  180ms;   /* hover, colour                                       */
  --t-move:   400ms;   /* response 0.4s — position changes                    */
  --t-reveal: 620ms;   /* scroll entrance, longer because distance is larger  */

  --shadow-1: 0 1px 2px rgba(13,45,124,.06), 0 2px 8px rgba(13,45,124,.05);
  --shadow-2: 0 2px 4px rgba(13,45,124,.07), 0 12px 28px rgba(13,45,124,.10);
}

/* ---------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, figure, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video, iframe { display: block; max-width: 100%; }

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

body {
  font: 400 1rem/1.55 var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* No overflow-x here. Clipping on body makes it a scroll container and
     silently kills position: sticky in descendants. The horizontal overflow
     this used to hide was the nav's missing min-width, fixed at source. */
}

/* ------------------------------------------------------------ typography -- */
h1, h2, h3, h4 { color: var(--blue); font-weight: 700; }

.display {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: var(--track-display);
}
h1, .h1 {
  font-size: clamp(2rem, 4.6vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: var(--track-h1);
}
h2, .h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.14;
  letter-spacing: var(--track-h1);
}
h3, .h3 { font-size: 1.5rem;  line-height: 1.2; }
h4, .h4 { font-size: 1.25rem; line-height: 1.25; }

.lede    { font-size: clamp(1.06rem, 1.5vw, 1.25rem); line-height: 1.5;  color: var(--ink); max-width: 62ch; }
.body    { font-size: 1.125rem; line-height: 1.6; max-width: 68ch; }
.small   { font-size: .875rem;  line-height: 1.45; color: var(--muted); }
.smaller { font-size: .8125rem; line-height: 1.4;  color: var(--muted); }

.eyebrow {
  font: 700 .75rem/1.4 var(--mono);
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--rust);
}
.eyebrow--on-dark { color: var(--yellow); }
.label {
  font: 700 .8125rem/1.4 var(--mono);
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--muted);
}

a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--orange); }

/* ---------------------------------------------------------------- layout -- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 7vw, 76px); }
.section--tint  { background: var(--tint); }
.section--band  { background: var(--band); }
.section--blue  { background: var(--blue); color: var(--white); }
.section--blue h1, .section--blue h2, .section--blue h3 { color: var(--white); }
.section--yellow { background: var(--yellow); }

.stack > * + * { margin-top: var(--gap, 16px); }
.grid { display: grid; gap: clamp(20px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.rule { height: 3px; background: var(--blue); border: 0; margin: 10px 0 22px; }
.hairline { height: 1px; background: var(--hairline); border: 0; }

/* ------------------------------------------------------------------ nav ---
   A translucent layer with content scrolling underneath, per Apple's
   materials guidance — not an opaque strip that eats a fixed band. */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--blue) 86%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  color: var(--white);
  transition: box-shadow var(--t-quick) var(--spring-out);
}
/* Scroll-edge effect instead of a hard 1px divider — it only appears once
   content is actually passing underneath the bar. */
.nav[data-scrolled="true"] { box-shadow: 0 6px 20px rgba(9,31,87,.22); }

.nav__inner {
  display: flex; align-items: center; gap: 22px;
  min-height: 68px; flex-wrap: wrap;
}
.nav__brand { display: flex; align-items: baseline; gap: 10px; color: var(--white); text-decoration: none; font-weight: 700; }
.nav__brand span.sub {
  font: 700 .7rem/1 var(--mono);
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase; color: var(--sky);
}
.nav__links { display: flex; align-items: center; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.nav__links a {
  color: var(--white); text-decoration: none; font-size: .9375rem;
  padding: 6px 2px; position: relative;
}
/* Underline grows from the centre — the motion points at the thing it marks. */
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--orange); border-radius: 2px;
  transform: scaleX(0); transform-origin: 50% 50%;
  transition: transform var(--t-quick) var(--spring);
}
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }

/* --------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 .875rem/1 var(--mono);
  letter-spacing: var(--track-eyebrow); text-transform: none;
  padding: 16px 30px; min-height: 48px;
  border: 2px solid transparent; border-radius: var(--r-pill);
  text-decoration: none; cursor: pointer;
  transition: background-color var(--t-quick) var(--spring-out),
              border-color   var(--t-quick) var(--spring-out),
              color          var(--t-quick) var(--spring-out),
              transform      var(--t-press) var(--spring-out),
              box-shadow     var(--t-quick) var(--spring-out);
}
.btn--primary { background: var(--rust); color: var(--white); }
.btn--primary:hover { background: var(--rust-deep); color: var(--white); box-shadow: var(--shadow-2); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: var(--white); border-color: var(--white); }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-deep); color: var(--white); }
.btn--outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: var(--white); }
.btn--sm { padding: 11px 20px; min-height: 40px; font-size: .8125rem; }

/* Feedback on press, not on release. 97% is felt, not seen. */
.btn:active { transform: scale(.97); transition-duration: var(--t-press); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.nav :focus-visible { outline-color: var(--sky); }

/* ----------------------------------------------------------------- chips -- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 .75rem/1 var(--mono); letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--blue); color: var(--white);
}
.chip--award  { background: var(--yellow); color: var(--blue); }
.chip--quiet  { background: transparent; color: var(--muted); border: 1px solid var(--hairline); }
/* Course codes. Yellow so the code reads as a label worth noticing rather
   than a faint outline; blue on brand yellow measures 10.6:1. */
.chip--code   { background: var(--yellow); color: var(--blue); }
.chip--ok     { background: #e5f3e6; color: var(--ok); }
.chip__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* ----------------------------------------------------------------- cards -- */
.card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 22px 24px;
  transition: transform var(--t-move) var(--spring),
              box-shadow var(--t-move) var(--spring),
              border-color var(--t-quick) var(--spring-out);
}
.card--flat { border-color: transparent; box-shadow: none; }
a.card, .card--interactive { text-decoration: none; display: block; }
a.card:hover, .card--interactive:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: color-mix(in srgb, var(--blue) 22%, transparent);
}
a.card:active, .card--interactive:active { transform: translateY(-1px) scale(.995); transition-duration: var(--t-press); }

/* --------------------------------------------------------------- numbers -- */
.stat__value { font: 700 clamp(2rem,4vw,2.5rem)/1 var(--font); letter-spacing: var(--track-h1); color: var(--orange); }
.stat__label { font: 700 .75rem/1.4 var(--mono); letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* ------------------------------------------------------------ film cards --
   The still is the hero of the card, so the play affordance grows from the
   centre of the still on hover — anchored to its source, not floating in. */
.film__still {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--placeholder);
  border-radius: var(--r-sm);
  overflow: hidden;
  display: grid; place-items: center;
}
.film__still img, .film__still iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.film__play {
  position: absolute; inset: 0; margin: auto;
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(255,255,255,.92);
  border: 0; cursor: pointer;
  display: grid; place-items: center;
  transform: scale(.92);
  transition: transform var(--t-move) var(--spring), background-color var(--t-quick) var(--spring-out);
}
.film__play::after {
  content: ""; width: 0; height: 0; margin-left: 5px;
  border-left: 19px solid var(--blue);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}
.film:hover .film__play, .film__play:hover { transform: scale(1); background: var(--white); }
.film__play:active { transform: scale(.94); transition-duration: var(--t-press); }
.film__title { font-size: 1.25rem; font-weight: 700; color: var(--blue); margin-top: 12px; }
.film__meta  { font: 700 .75rem/1.4 var(--mono); letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--muted); margin-top: 4px; }

/* The embed materialises: blur and scale resolve together so it reads as a
   real surface arriving, not an opacity fade. */
.film__embed { opacity: 0; filter: blur(8px); transform: scale(1.015); }
.film__embed[data-ready="true"] {
  opacity: 1; filter: blur(0); transform: scale(1);
  transition: opacity var(--t-move) var(--spring-out),
              filter   var(--t-move) var(--spring-out),
              transform var(--t-move) var(--spring);
}

/* --------------------------------------------------------- scroll reveal --
   Entrance only, once, from below. No overshoot: nothing the user did carried
   momentum into this, so a bounce would be decoration rather than physics. */
/* Scoped to .js: without JavaScript nothing is ever un-hidden, so the page
   must render fully instead. The inline head script adds .js before paint. */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  will-change: opacity, transform;
}
/* Already on screen at load: visible immediately, no entrance transition. */
.js [data-reveal][data-instant="true"] { transition: none !important; }
.js [data-reveal][data-shown="true"] {
  opacity: 1;
  transform: none;
  transition: opacity var(--t-reveal) var(--spring-out),
              transform var(--t-reveal) var(--spring);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: auto;
}

/* ----------------------------------------------------------------- forms -- */
.field { display: block; }
.field > span {
  display: block; font: 700 .8125rem/1.4 var(--mono);
  letter-spacing: var(--track-eyebrow); text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--font); color: var(--ink);
  padding: 14px 16px; border: 1.5px solid var(--hairline);
  border-radius: var(--r-sm); background: var(--white);
  transition: border-color var(--t-quick) var(--spring-out), box-shadow var(--t-quick) var(--spring-out);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent);
}

/* ---------------------------------------------------------------- footer -- */
.foot { background: var(--blue); color: var(--white); padding-block: 52px 30px; }
.foot a { color: #fff; text-decoration-color: rgba(255,255,255,.45); }
.foot a:hover { text-decoration-color: var(--yellow); color: var(--yellow); }
.foot__inner {
  display: grid; gap: 34px 28px;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(130px, 1fr));
  align-items: start;
}
.foot__brand p { margin: 0; }
.foot__addr { color: rgba(255,255,255,.72); font-size: .875rem; line-height: 1.6; margin-top: 8px !important; }
.foot__head {
  font: 700 .6875rem/1 var(--mono); letter-spacing: var(--track-eyebrow);
  text-transform: uppercase; color: var(--sky); margin: 0 0 14px;
}
.foot__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot__list a { font-size: .9375rem; }
.foot__base {
  margin-top: 38px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.18);
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: space-between;
}
.foot__mark { font: 700 .8125rem/1 var(--mono); letter-spacing: var(--track-eyebrow); color: var(--sky); }
.foot__fine { font-size: .8125rem; color: rgba(255,255,255,.6); margin: 0; }
@media (max-width: 760px) {
  .foot__inner { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .foot__inner { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------- utility -- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--white); color: var(--blue);
  padding: 12px 18px; border-radius: 0 0 var(--r-sm) 0; font-weight: 700;
}
.skip:focus { left: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.flow > * + * { margin-top: 12px; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; }  .mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 44px; }
.center { text-align: center; }

/* Anything wide enough to break the page scrolls inside its own box. */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ================================ preferences ============================ */

/* Reduced motion is not "no feedback" — it is non-vestibular feedback. Keep
   opacity, drop travel, drop springs, keep the press cue. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { transform: none; }
  .js [data-reveal][data-shown="true"] { transition: opacity 220ms ease; transform: none; }
  a.card:hover, .card--interactive:hover { transform: none; }
  .film:hover .film__play, .film__play:hover { transform: scale(1); }
  .btn:active { transform: none; }
  .nav__links a::after { transition: opacity var(--t-quick) ease; }
  .film__embed[data-ready="true"] { transition: opacity 220ms ease; filter: none; transform: none; }
}

/* Frostier, not translucent. */
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--blue); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  .card { border-color: var(--blue); }
  .nav { background: var(--blue); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .small, .smaller, .stat__label, .film__meta { color: var(--ink); }
  a { text-decoration-thickness: 2px; }
}

/* =============================== responsive ============================== */
@media (max-width: 900px) {
  /* One horizontally-scrolling row. Without nowrap the flex row still wraps
     and overflow-x never engages, which cost 4 stacked rows of viewport. */
  .nav__inner { min-height: 56px; padding-block: 8px; gap: 12px; flex-wrap: nowrap; }
  .nav__brand { flex: 0 0 auto; font-size: .95rem; }
  .nav__links {
    gap: 16px; margin-left: auto; flex-wrap: nowrap;
    overflow-x: auto; overscroll-behavior-x: contain;
    scrollbar-width: none; -ms-overflow-style: none;
    padding: 2px 0;
  }
  .nav__links::-webkit-scrollbar { display: none; }
  .nav__links a { white-space: nowrap; flex: 0 0 auto; font-size: .875rem; }
}
@media (max-width: 640px) {
  .btn { width: 100%; }
  .btn.btn--inline { width: auto; }
  .section { padding-block: 40px; }
}

/* ============================================================================
   Craft pass. Selected from /high-end-visual-design, filtered against the
   Cabrillo brand and this audience. Adopted: nested enclosures, diffused
   ambient shadows in place of hairline borders, nested CTA icon with kinetic
   hover, heavier spatial rhythm, blur-resolve on entry. Rejected, with cause,
   in the handoff notes: dark/OLED surfaces, floating detached pill nav,
   rotated Z-axis cards, film-grain overlays.
   ========================================================================= */

/* --- spatial rhythm: let it breathe ------------------------------------- */
.section { padding-block: clamp(64px, 9vw, 112px); }

/* --- cards: ambient depth, not a grey outline ----------------------------
   A 1px grey border is the cheapest possible edge. A diffused shadow plus a
   near-invisible tinted ring reads as a surface sitting above the page. */
.card {
  border-color: transparent;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--blue) 7%, transparent),
    0 1px 2px rgba(13,45,124,.04),
    0 8px 24px -12px rgba(13,45,124,.16);
}
a.card:hover, .card--interactive:hover {
  border-color: transparent;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--blue) 16%, transparent),
    0 2px 6px rgba(13,45,124,.06),
    0 22px 48px -18px rgba(13,45,124,.28);
}

/* --- nested enclosure for film stills ------------------------------------
   The still sits in a tray rather than flat on the page. Concentric radii:
   inner = outer - padding, so the curves stay true. */
.film__frame {
  padding: 8px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--blue) 5%, transparent);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.6),
    0 0 0 1px color-mix(in srgb, var(--blue) 8%, transparent),
    0 18px 40px -22px rgba(13,45,124,.35);
  transition: box-shadow var(--t-move) var(--spring), transform var(--t-move) var(--spring);
}
.film:hover .film__frame {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.7),
    0 0 0 1px color-mix(in srgb, var(--blue) 14%, transparent),
    0 30px 60px -26px rgba(13,45,124,.42);
}
.film__frame .film__still { border-radius: 12px; }   /* 20 - 8 = concentric */

/* --- eyebrow as a micro pill --------------------------------------------- */
.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--rust) 9%, transparent);
  /* 4.12:1 against this tint at 11px; the deeper rust clears AA. */
  color: var(--rust-deep);
  font-size: .6875rem;
  letter-spacing: .16em;
}
.eyebrow--on-dark {
  background: rgba(255,255,255,.12);
  color: var(--yellow);   /* 10.6:1 on the hero blue; rust was unreadable */
}

/* --- nested CTA icon with kinetic hover -----------------------------------
   The arrow never sits naked beside the label; it gets its own chip, flush
   with the pill's inner padding, and drifts on hover. */
.btn--arrow { padding-right: 8px; gap: 14px; }
.btn--arrow::after {
  content: "\2192";
  width: 34px; height: 34px; flex: 0 0 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1rem; line-height: 1;
  background: rgba(255,255,255,.28);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
  transition: transform var(--t-move) var(--spring),
              background-color var(--t-quick) var(--spring-out);
}
.btn--arrow:hover::after { transform: translateX(3px) scale(1.06); background: rgba(255,255,255,.42); }
.btn--outline.btn--arrow::after,
.btn--blue.btn--arrow::after { background: color-mix(in srgb, var(--blue) 12%, transparent); }
.btn--outline.btn--arrow:hover::after { background: rgba(255,255,255,.22); }

/* --- entry: resolve blur with the travel ---------------------------------
   Apple's "materialise" note: a surface arriving reads better than an
   opacity fade. Cheap here because it is one short transition, not a filter
   on a scrolling container. */
.js [data-reveal] { filter: blur(6px); }
.js [data-reveal][data-shown="true"] {
  filter: blur(0);
  transition: opacity var(--t-reveal) var(--spring-out),
              transform var(--t-reveal) var(--spring),
              filter var(--t-reveal) var(--spring-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal][data-instant="true"] { filter: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { filter: none; }
  .js [data-reveal][data-shown="true"] { filter: none; transition: opacity 220ms ease; }
  .film:hover .film__frame { transform: none; }
  .btn--arrow:hover::after { transform: none; }
}
@media (prefers-contrast: more) {
  .card { box-shadow: 0 0 0 2px var(--blue); }
  .eyebrow { background: transparent; padding-inline: 0; }
}

/* ============================================================================
   Mobile pass. Inline grid-template-columns cannot be overridden by a media
   query, so every fixed two/three-column row on the public pages moves here
   as a named primitive that can actually collapse.
   ========================================================================= */

.split-date    { display:grid; gap:clamp(28px,5vw,70px); grid-template-columns:minmax(0,300px) minmax(0,1fr); align-items:center; }
.split-media   { display:grid; gap:clamp(28px,4vw,48px); grid-template-columns:repeat(auto-fit,minmax(min(340px,100%),1fr)); align-items:center; }
.row-code      { display:grid; gap:18px; grid-template-columns:minmax(0,110px) minmax(0,1fr); align-items:baseline; }
.row-label     { display:grid; gap:18px; grid-template-columns:minmax(0,120px) minmax(0,1fr); }
.row-label-cta { display:grid; gap:16px; grid-template-columns:minmax(0,120px) minmax(0,1fr) auto; align-items:center; }
.row-body-cta  { display:grid; gap:20px; grid-template-columns:minmax(0,1fr) auto; align-items:start; }
.row-step      { display:grid; gap:16px; grid-template-columns:44px minmax(0,1fr) auto; align-items:start; }
.route-row     { display:grid; gap:14px; grid-template-columns:minmax(0,180px) minmax(0,1fr) auto; align-items:center; }
.route-row__meta { text-align:right; }

@media (max-width: 760px) {
  .split-date, .row-code, .row-label, .row-label-cta, .row-body-cta, .route-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  /* Keep the step number beside its text; drop the tag underneath. */
  .row-step { grid-template-columns: 36px minmax(0,1fr); gap: 12px; }
  .row-step > :last-child { grid-column: 2; }
  .route-row__meta { text-align: left; }
  /* A CTA that was pinned right now sits under the copy it belongs to. */
  .row-body-cta > .btn, .row-label-cta > .btn { justify-self: start; }
}

/* The nav is a flex child, and flex children refuse to shrink below their
   content unless min-width is cleared — which is why overflow-x never
   engaged and the whole page scrolled sideways. */
.nav__links { min-width: 0; }
.nav__inner { min-width: 0; }

/* Long unbroken strings (emails, uids) must not push the page wide. */
.wrap, .card, p, h1, h2, h3, h4 { overflow-wrap: anywhere; }

@media (max-width: 640px) {
  /* The big date lockup is set for a 1440 canvas; rein it in on a phone. */
  .split-date > div:first-child > div { font-size: clamp(4rem, 22vw, 6rem) !important; }
}

/* --- mobile nav -----------------------------------------------------------
   The login button is the single most important control on a phone, so it is
   pinned beside the brand and never scrolls out of reach. The page links get
   their own full-width scrolling row underneath. */
.nav__cta { flex: 0 0 auto; white-space: nowrap; }

@media (max-width: 900px) {
  .nav__inner { flex-wrap: wrap; row-gap: 4px; padding-block: 8px; min-height: 0; gap: 10px; }
  .nav__brand { flex: 1 1 auto; font-size: .95rem; }
  .nav__cta   { order: 2; min-height: 44px; padding: 11px 16px; font-size: .7rem; white-space: nowrap; }
  .nav__links {
    order: 3; flex: 1 0 100%; width: 100%; margin-left: 0;
    min-width: 0; flex-wrap: nowrap; gap: 16px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scrollbar-width: none; -ms-overflow-style: none;
    position: relative;
  }
  .nav__links::-webkit-scrollbar { display: none; }
  /* 34px was under the 44px minimum; height comes from padding so the
     type size is unchanged. */
  .nav__links a {
    white-space: nowrap; flex: 0 0 auto; font-size: .875rem;
    min-height: 44px; display: inline-flex; align-items: center;
  }
  .nav__links a::after { bottom: 8px; }
}

/* A scrolling row with no edge cue hides its own contents. Fade the right
   edge of the bar so it reads as "there is more this way". */
@media (max-width: 900px) {
  .nav__inner { position: relative; }
  .nav__inner::after {
    content: ""; position: absolute; right: 0; bottom: 0; height: 44px; width: 36px;
    pointer-events: none;
    background: linear-gradient(to right, transparent, color-mix(in srgb, var(--blue) 88%, transparent));
    opacity: 1; transition: opacity var(--t-quick) ease;
  }
  /* Scrolled to the end, or nothing to scroll: a fade that never goes away
     reads as permanent truncation. public.js sets this. */
  .nav__inner[data-navend="1"]::after { opacity: 0; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav__inner::after { display: none; }
}

/* Real poster frames now sit in the still; the grey block is only the
   backdrop while the image loads. */
.film__still img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film__still .film__play { z-index: 2; box-shadow: 0 4px 18px rgba(0,0,0,.28); }

/* --- credited film stills used across the site ---------------------------- */
.still { margin: 0; }
.still__frame {
  position: relative;
  aspect-ratio: var(--still-ratio, 21 / 9);
  padding: 8px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--blue) 5%, transparent);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.6),
    0 0 0 1px color-mix(in srgb, var(--blue) 8%, transparent),
    0 18px 40px -22px rgba(13,45,124,.35);
}
.still__frame img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 12px;              /* 20 - 8: concentric with the frame */
  display: block;
}
.still__credit {
  margin-top: 10px;
  font: 700 .75rem/1.4 var(--mono);
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--muted);
}
.still__credit em { font-style: normal; color: var(--blue); }
.section--blue .still__credit { color: rgba(255,255,255,.7); }
.section--blue .still__credit em { color: #fff; }
@media (max-width: 640px) {
  .still__frame { aspect-ratio: 16 / 10; padding: 6px; border-radius: 16px; }
  .still__frame img { border-radius: 10px; }
}

/* --- photo hero: the largest surface on the site, now carrying an image ---- */
.hero-photo { position: relative; isolation: isolate; overflow: hidden; }
.hero-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: var(--hero-img);
  background-size: cover; background-position: center 42%;
}
/* Scrim: the headline has to stay legible over any frame. */
.hero-photo::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg,
    color-mix(in srgb, var(--blue) 92%, transparent) 0%,
    color-mix(in srgb, var(--blue) 78%, transparent) 42%,
    color-mix(in srgb, var(--blue) 38%, transparent) 100%);
}
@media (max-width: 760px) {
  .hero-photo::before { background-position: center 40%; }
  .hero-photo::after {
    background: linear-gradient(180deg,
      color-mix(in srgb, var(--blue) 88%, transparent) 0%,
      color-mix(in srgb, var(--blue) 82%, transparent) 60%,
      color-mix(in srgb, var(--blue) 92%, transparent) 100%);
  }
}
@media (prefers-contrast: more) {
  .hero-photo::after { background: var(--blue); }
}

/* --- full-bleed photo band ------------------------------------------------ */
.photoband { position: relative; overflow: hidden; }
.photoband img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photoband__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 46px clamp(20px,5vw,80px) 18px;
  font: 700 .75rem/1.4 var(--mono);
  letter-spacing: var(--track-eyebrow); text-transform: uppercase;
  color: rgba(255,255,255,.92);
  background: linear-gradient(to top, rgba(9,31,87,.78), transparent);
  pointer-events: none;
}

/* ---------- FAQ accordion ----------
   Native <details>, so it works with JavaScript off, is keyboard-operable and
   announces its own state to a screen reader without any ARIA of ours. The
   chevron is a pseudo-element rather than an icon file. */
.qa {
  border-bottom: 1px solid var(--hairline);
  background: transparent;
}
.qa > summary {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 4px;
  cursor: pointer; list-style: none;
  font: 700 1.0625rem/1.45 var(--font);
  color: var(--blue);
  transition: color .18s ease;
}
.qa > summary::-webkit-details-marker { display: none; }
.qa > summary:hover { color: var(--rust); }
.qa > summary:focus-visible {
  outline: 2px solid var(--rust); outline-offset: 3px; border-radius: 6px;
}
/* Chevron sits last so the question wraps against the text column, not the icon. */
.qa > summary::after {
  content: ""; flex: none; margin-left: auto; margin-top: .35em;
  width: 9px; height: 9px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transform-origin: center;
  transition: transform .22s cubic-bezier(.32,.72,0,1);
}
.qa[open] > summary::after { transform: rotate(-135deg); }
.qa__a {
  padding: 0 40px 20px 4px;
  margin: 0;
  color: var(--ink); font-size: .9375rem; line-height: 1.65;
  animation: qa-in .28s cubic-bezier(.32,.72,0,1) both;
}
@keyframes qa-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .qa > summary::after { transition: none; }
  .qa__a { animation: none; }
}

/* Jump links to each group, so a long page is navigable without scrolling it. */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.jump a {
  font: 700 .75rem/1 var(--font-mono);
  letter-spacing: var(--track-eyebrow); text-transform: uppercase;
  color: var(--blue); text-decoration: none;
  padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--hairline); background: #fff;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.jump a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.jump a:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; }
/* Anchored headings must clear the sticky nav when jumped to. */
.qa-group { scroll-margin-top: 96px; }
