/* =========================================================
   Strato-Luxe v2 — "The Street You Know"
   VOICE   A mid-century educational film: bright, narrated,
           optimistic, and fair to the skeptic.
   IDEA    A short film in reels, from "you've felt it" to
           "it depends on who shows up."
   PICTURE Film-leader countdown, then the street slider.
   COLOUR  Technicolor fields from the shared Populance palette:
           sky, mustard, teal, brown, on white and ink.
   TYPE    Badge combo: Yellowtail script (brand, short labels),
           Michroma wide capitals (headings), Jost (reading text).
   ========================================================= */

:root {
  /* Mid-century palette. Every text/background pair used on the page
     meets WCAG AA contrast (4.5:1 or better). */
  --white:   #F4ECDD;  /* warm paper (page background) */
  --ink:     #1F1A17;  /* warm charcoal text */
  --muted:   #5A4F45;  /* secondary text on paper (6.8:1) */
  --sky:     #9FD0C7;  /* aqua */
  --cyan:    #1D6A6E;  /* focus and link accents */
  --mustard: #D9A62E;  /* harvest gold */
  --teal:    #1D6A6E;  /* deep teal, takes light text */
  --sage:    #8FA86A;
  --olive:   #5F6B2E;  /* avocado */
  --brown:   #AE4A20;  /* burnt orange */
  --walnut:  #2E231C;
  --light:   #FAF5EA;  /* text on dark colors */
  --leader:  #2E2B27;

  --display: "Michroma", "Eurostile", "Arial", sans-serif;
  --script: "Yellowtail", "Brush Script MT", cursive;
  --body: "Jost", "Futura", "Century Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; color-scheme: light; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.125rem/1.6 var(--body); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--cyan); text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; line-height: 1.08; text-wrap: balance; }

.button {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.6rem;
  border-radius: 24px; background: var(--ink); color: var(--white); text-decoration: none; font-weight: 500;
}
.button:hover { background: var(--teal); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.8rem max(4vw, 16px); background: var(--white); border-bottom: 1px solid #E3E6E0;
}
.wordmark { font-family: var(--display); font-weight: 600; font-size: 1.15rem; text-decoration: none; }
.site-nav { display: flex; gap: 1.5rem; }
.site-nav a { text-decoration: none; color: var(--muted); padding: 0.4rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a.is-current { color: var(--ink); border-bottom-color: var(--cyan); }
.nav-toggle { display: none; }
@media (max-width: 860px) {
  .nav-toggle { display: block; min-height: 44px; padding: 0 1rem; background: none; border: 1px solid var(--ink); border-radius: 22px; font: inherit; cursor: pointer; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--white); padding: 0.5rem max(4vw, 16px) 1rem; border-bottom: 1px solid #E3E6E0; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.75rem 0; border-bottom: 1px solid #E3E6E0; }
}

/* ---------- Opening: film leader, then title ---------- */
.opening {
  position: relative; min-height: calc(100vh - 60px);
  display: grid; place-items: center; padding: 4rem max(5vw, 16px);
  background: var(--sky); overflow: hidden;
  animation: lights-up 0.6s 3.1s both;
}
@keyframes lights-up { from { background: var(--leader); } to { background: var(--sky); } }

.leader {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: var(--leader); animation: leader-out 0.4s 3s both;
}
.leader svg { position: absolute; width: min(70vmin, 520px); height: auto; fill: none; stroke: #8A847A; stroke-width: 2; }
.leader-sweep {
  stroke: #D8D2C4; stroke-width: 80; stroke-dasharray: 252 252; stroke-dashoffset: 252;
  transform: rotate(-90deg); transform-origin: 100px 100px; opacity: 0.18;
  animation: sweep 1s linear 3;
}
.leader-n {
  position: absolute; font-family: var(--display); font-weight: 400; color: #ECE6D8;
  font-size: min(32vmin, 240px); opacity: 0;
}
.n3 { animation: flash 1s 0s both; }
.n2 { animation: flash 1s 1s both; }
.n1 { animation: flash 1s 2s both; }
@keyframes sweep { to { stroke-dashoffset: 0; } }
@keyframes flash { 0% { opacity: 0; } 2%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes leader-out { to { opacity: 0; visibility: hidden; } }

.title-card { position: relative; text-align: center; max-width: 60rem; animation: fadein 0.8s 3.3s both; }
.presents { font-style: italic; font-size: 1.15rem; margin: 0 0 1rem; color: var(--muted); }
.title-card h1 { font-size: clamp(2.8rem, 9vw, 7rem); letter-spacing: -0.03em; line-height: 0.98; }
.tagline { font-size: clamp(1.15rem, 2.2vw, 1.4rem); max-width: 36ch; margin: 1.5rem auto 2rem; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .opening, .title-card { animation: none; }
  .leader { display: none; }
}

/* ---------- Reels ---------- */
.reel { padding: clamp(4rem, 9vw, 7rem) max(5vw, 16px); }
.reel > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.reel--sky { background: var(--sky); }
.reel--mustard { background: var(--mustard); }
.reel--white { background: var(--white); }
.reel--ink { background: var(--ink); color: var(--white); }

.reel-card { text-align: center; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.reel-no { margin: 0 0 0.6rem; font-style: italic; font-size: 1.1rem; }
.reel-card h2 { font-size: clamp(2.2rem, 6vw, 4.6rem); letter-spacing: -0.02em; }

/* Narration: one line per beat, like a narrator's script */
.narration { max-width: 40rem; }
.narration p { font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.3; margin: 0 0 clamp(1.5rem, 4vw, 2.5rem); }
.narration .beat { font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 3.4vw, 2.3rem); margin-top: clamp(2.5rem, 6vw, 4rem); }
.narration-single { text-align: center; font-size: 1.3rem; max-width: 40ch; margin-top: -1.5rem; margin-bottom: 2.5rem; }

/* Reel 3: ledger of sourced figures */
.ledger { margin-top: 0; margin-bottom: 0; }
.ledger div {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0.25rem 2.5rem;
  padding: 1.75rem 0; border-top: 2px solid var(--ink);
}
.ledger dt { grid-row: span 2; font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1; white-space: nowrap; color: var(--brown); }
.ledger dd { margin: 0; font-size: 1.2rem; max-width: 46ch; }
.ledger dd.src { font-size: 0.95rem; font-style: italic; color: var(--muted); }
@media (max-width: 720px) { .ledger div { grid-template-columns: 1fr; } .ledger dt { grid-row: auto; white-space: normal; } }

.costs { border-top: 2px solid var(--ink); padding-top: 1rem; }
.costs summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 500; font-size: 1.1rem; }
.costs ol { padding-left: 1.3rem; max-width: 60rem; }
.costs li { margin-bottom: 0.5rem; }
.costs strong { font-weight: 500; }

/* Reel 4: street slider */
.street { max-width: 1180px; margin: 0 auto; }
.street-frame {
  position: relative; aspect-ratio: 1200 / 420; overflow: hidden; touch-action: pan-y;
  border-radius: 28px 28px 6px 6px; background: var(--sky); cursor: ew-resize;
  box-shadow: 0 24px 50px -30px rgba(21, 25, 26, 0.45);
}
.layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.layer-future { clip-path: inset(0 0 0 var(--cut)); }
.street-handle { position: absolute; top: 0; bottom: 0; left: var(--cut); width: 4px; margin-left: -2px; background: var(--white); box-shadow: 0 0 0 1px rgba(21,25,26,0.25); pointer-events: none; }
.street-handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: var(--white); border: 3px solid var(--ink); }
.street-controls { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; font-weight: 500; }
.street-controls input { flex: 1; accent-color: var(--ink); min-height: 44px; }
.street figcaption { color: var(--muted); margin-top: 0.5rem; max-width: 70ch; }

/* Reel 5: fair questions */
.faq { max-width: 48rem; }
.faq details { border-top: 2px solid var(--ink); }
.faq details:last-child { border-bottom: 2px solid var(--ink); }
.faq summary {
  cursor: pointer; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--display); font-weight: 600; font-size: clamp(1.1rem, 2.4vw, 1.45rem); list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.6rem; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { font-size: 1.2rem; margin: 0 0 1.5rem; max-width: 52ch; }

/* Reel 6: coming attractions posters */
.posters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.poster {
  display: flex; flex-direction: column; padding: 1.4rem; border-radius: 4px;
  min-height: 420px; color: var(--ink); background: var(--white);
}
.poster h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin: 0.2rem 0 0.2rem; }
.poster-kind { margin: 0; font-style: italic; }
.poster-place { margin: 0 0 1rem; font-weight: 500; }
.poster p:last-child { margin: auto 0 0; }
.poster--teal { background: var(--teal); color: var(--white); }
.poster--mustard { background: var(--mustard); }
.poster--image { background: var(--sky); padding-top: 0; overflow: hidden; }
.poster--image img { width: calc(100% + 2.8rem); max-width: none; margin: 0 -1.4rem 1.2rem; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 1000px) { .posters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .posters { grid-template-columns: 1fr; } .poster { min-height: 0; } }

/* Based on: papers */
.based-on { text-align: center; }
.based-label { font-style: italic; font-size: 1.2rem; margin: 0 auto 2rem; }
.paper-list { list-style: none; padding: 0; margin: 0 auto 2.5rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; text-align: left; }
.paper-list li { border-top: 6px solid var(--teal); padding-top: 1rem; }
.paper-list li:nth-child(2) { border-color: var(--mustard); }
.paper-list li:nth-child(3) { border-color: var(--sage); }
.paper-list li:nth-child(4) { border-color: var(--brown); }
.paper-list h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.paper-list p { margin: 0; }
@media (max-width: 900px) { .paper-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .paper-list { grid-template-columns: 1fr; } }

/* The end */
.the-end { text-align: center; }
.end-title { font-family: var(--display); font-weight: 400; font-style: italic; font-size: clamp(2rem, 6vw, 3.6rem); margin: 0 auto 1rem; }
.the-end h2 { font-size: clamp(1.6rem, 4vw, 2.8rem); max-width: 22ch; margin-bottom: 3rem; }
.actions { list-style: none; counter-reset: act; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; text-align: left; margin-bottom: 3rem; }
.actions li { counter-increment: act; border-top: 2px solid var(--ink); padding-top: 1rem; }
.actions h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.actions h3::before { content: counter(act) ". "; }
.actions p { margin: 0; }
@media (max-width: 820px) { .actions { grid-template-columns: 1fr; } }
.contact-lines { font-family: var(--display); font-size: clamp(1rem, 2.4vw, 1.4rem); line-height: 1.9; }
.contact-lines a { text-decoration-color: var(--ink); }
.handoff { max-width: 44ch; margin-top: 2rem; }
.handoff a { text-decoration-color: var(--ink); font-weight: 500; }

.site-footer { padding: 1.25rem max(4vw, 16px); background: var(--ink); color: #C9D0CF; font-size: 0.9rem; }
.site-footer p { margin: 0; }

/* Phones: the street picture runs edge to edge so it is as large as possible. */
@media (max-width: 600px) {
  .street-frame { margin: 0 calc(-1 * max(5vw, 16px)); border-radius: 0; }
  .street-handle::after { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
  .opening { min-height: 85vh; }
}

/* =========================================================
   Trailer cut: letterbox bars, captions and a one-time sweep
   ========================================================= */
.trailer { background: #000000; padding: clamp(14px, 3.2vw, 40px) 0; border-radius: 6px; }
.trailer .street-frame { border-radius: 0; box-shadow: none; }

.lower-third {
  position: absolute; bottom: 6%; margin: 0; max-width: 42%;
  padding: 0.35rem 0.7rem; background: rgba(21, 25, 26, 0.78); color: #FBFBF7;
  font-size: clamp(0.72rem, 1.4vw, 0.95rem); line-height: 1.3;
  transition: opacity 0.3s; pointer-events: none;
}
.lower-third--today { left: 2%; }
.lower-third--future { right: 2%; text-align: right; }
.street-frame.hide-today .lower-third--today,
.street-frame.hide-future .lower-third--future { opacity: 0; }

.trailer-card {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
}
.trailer-card span {
  grid-area: 1 / 1; opacity: 0;
  font-family: var(--display); font-weight: 600; color: #FBFBF7;
  font-size: clamp(1.2rem, 4.2vw, 3.2rem); text-shadow: 0 2px 18px rgba(0,0,0,0.55);
}
.trailer-card span.on { opacity: 1; transition: opacity 0.35s; }

@media (max-width: 600px) {
  .trailer { margin: 0 calc(-1 * max(5vw, 16px)); border-radius: 0; }
  .trailer .street-frame { margin: 0; }
  .lower-third { display: none; } /* too small to read over the picture; the caption below says the same */
}

/* =========================================================
   Posters woven into the film
   ========================================================= */
/* Opening: the night-overpass poster is the studio ident */
.opening { background: var(--ink); color: #FBFBF7; animation: none; }
.opening .presents { color: #C9D0CF; margin-top: 1.5rem; }
.ident { width: min(100%, 900px); margin: 0 auto; border-radius: 4px; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.9); }
.opening .title-card h1 { color: #FBFBF7; }
.opening .button { background: var(--mustard); color: var(--ink); }
.opening .button:hover { background: #FBFBF7; }

/* Reel 2: title card set over the golden-hour overpass */
.reel-card--still { position: relative; max-width: 1180px; overflow: hidden; border-radius: 4px; text-align: left; }
.reel-card--still img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: center 40%; }
.still-title {
  position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(transparent, rgba(21, 25, 26, 0.85)); color: #FBFBF7;
}
.still-tag { margin: 0.6rem 0 0; font-style: italic; font-size: 1.15rem; color: #E9E4D6; }
@media (max-width: 600px) {
  .reel-card--still { margin-left: calc(-1 * max(5vw, 16px)); margin-right: calc(-1 * max(5vw, 16px)); border-radius: 0; }
  .reel-card--still img { aspect-ratio: 4 / 3; }
}

/* The end: agents of proximity */
.agents {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center; text-align: left; max-width: 900px; margin: 0 auto 3rem;
}
.agents img { width: 100%; border: 10px solid #FBFBF7; transform: rotate(-1.5deg); box-shadow: 0 18px 40px -20px rgba(0,0,0,0.55); }
.agents h3 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); }
.agents-tag { font-family: var(--display); font-weight: 400; font-style: italic; font-size: 1.2rem; margin: 0.4rem 0 0.8rem; }
.agents p:last-child { margin: 0; font-size: 1.15rem; }
@media (max-width: 720px) { .agents { grid-template-columns: 1fr; } }
/* Keep the whole opening on one screen now that the poster sits above the title */
.ident { width: min(100%, 760px, 62vh * 2.1); }
.opening .title-card h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
.opening .tagline { margin: 1rem auto 1.5rem; }
.opening { padding-top: 2.5rem; padding-bottom: 2.5rem; }


/* =========================================================
   Mid-century color pass
   ========================================================= */
.site-header { border-bottom-color: #E2D6C0; }
.opening { background: var(--walnut); }
.leader { background: var(--leader); }

/* Reel 1 aqua, Reel 2 gold, Reel 3 paper, Reel 4 teal, Reel 5 paper,
   Reel 6 walnut, papers paper, the end burnt orange */
.reel--sky { background: var(--sky); }
.reel--sky .reel-no, .reel--mustard .reel-no { color: var(--ink); }

.reel--teal { background: var(--teal); color: var(--light); }
.reel--teal .street-controls { color: var(--light); }
.reel--teal .street-controls input { accent-color: var(--mustard); }
.reel--teal .street figcaption { color: #D3E6E2; }
.reel--teal .trailer { box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6); }

.reel--ink { background: var(--walnut); color: var(--light); }

.ledger dt { color: var(--brown); }
.ledger dd.src { font-size: 1rem; color: var(--muted); }
.costs, .ledger div, .faq details { border-color: var(--ink); }

/* Coming-attraction posters */
.poster { background: var(--white); }
.poster--teal { background: var(--teal); color: var(--light); }
.poster--mustard { background: var(--mustard); color: var(--ink); }
.poster--image { background: var(--white); color: var(--ink); }

/* Papers: one mid-century color per paper */
.paper-list li { border-top-color: var(--teal); }
.paper-list li:nth-child(2) { border-top-color: var(--mustard); }
.paper-list li:nth-child(3) { border-top-color: var(--olive); }
.paper-list li:nth-child(4) { border-top-color: var(--brown); }

/* The end: burnt orange with light text */
.reel--orange { background: var(--brown); color: var(--light); }
.reel--orange .actions li { border-top-color: var(--light); }
.reel--orange a { text-decoration-color: var(--light); }
.reel--orange .agents img { border-color: var(--light); }
.reel--orange .contact-lines a, .reel--orange .handoff a { text-decoration-color: var(--mustard); }

/* Buttons */
.button { background: var(--ink); color: var(--light); }
.button:hover { background: var(--teal); color: var(--light); }
.opening .button { background: var(--mustard); color: var(--ink); }
.opening .button:hover { background: var(--light); color: var(--ink); }

/* Links and focus */
a { text-decoration-color: var(--brown); }
:focus-visible { outline-color: var(--mustard); }
.site-nav a:hover, .site-nav a.is-current { border-bottom-color: var(--brown); }
.reel-card--still .reel-no { color: var(--light); }


/* =========================================================
   Type option D, badge combo: chrome script on short labels,
   wide Michroma capitals on headings, Jost for reading.
   Michroma has one weight, so headings are set at 400 (no faux bold),
   and sizes are smaller because the letters are very wide.
   ========================================================= */
h1, h2, h3 { font-weight: 400; line-height: 1.15; }

/* Script: brand and short labels only */
.wordmark { font-family: var(--script); font-weight: 400; font-size: 1.8rem; line-height: 1; }
.presents, .reel-no, .poster-kind, .end-title, .agents-tag, .based-label {
  font-family: var(--script); font-style: normal; font-weight: 400;
}
.presents { font-size: 1.9rem; }
.reel-no { font-size: 1.8rem; margin-bottom: 0.3rem; }
.poster-kind { font-size: 1.5rem; }
.end-title { font-size: clamp(3rem, 8vw, 4.6rem); }
.agents-tag { font-size: 1.8rem; }
.based-label { font-size: 1.8rem; }

/* Wide capitals: headings, figures, contact */
.opening .title-card h1 { font-size: clamp(1.7rem, 4.4vw, 3.2rem); letter-spacing: 0; }
.reel-card h2 { font-size: clamp(1.5rem, 4.2vw, 3rem); letter-spacing: 0; }
.narration .beat { font-size: clamp(1.15rem, 2.5vw, 1.6rem); font-weight: 400; line-height: 1.35; }
.ledger dt { font-weight: 400; font-size: clamp(1.4rem, 3.4vw, 2.4rem); white-space: normal; overflow-wrap: anywhere; }
.faq summary { font-weight: 400; font-size: clamp(0.95rem, 2vw, 1.2rem); }
.poster h3 { font-size: clamp(1rem, 1.6vw, 1.3rem); }
.paper-list h3 { font-size: 0.95rem; line-height: 1.3; }
.the-end h2 { font-size: clamp(1.25rem, 3vw, 2rem); max-width: 26ch; margin-left: auto; margin-right: auto; }
.agents h3 { font-size: clamp(1.15rem, 2.6vw, 1.7rem); }
.actions h3 { font-size: 1rem; }
.contact-lines { font-weight: 400; font-size: clamp(0.85rem, 2vw, 1.15rem); }
.trailer-card span { font-weight: 400; font-size: clamp(0.95rem, 3.2vw, 2.3rem); }
.still-title h2 { font-size: clamp(1.4rem, 4vw, 2.8rem); }
@media (max-width: 600px) { .based-label { font-size: 1.45rem; } .wordmark { font-size: 1.6rem; } }

/* =========================================================
   Reel 2: the research (pamphlet covers)
   ========================================================= */
.covers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.cover {
  position: relative; overflow: hidden; aspect-ratio: 3 / 4;
  display: flex; flex-direction: column; padding: 1.5rem 1.4rem;
  border-radius: 4px; box-shadow: 0 16px 30px -20px rgba(31, 26, 23, 0.6);
}
.cover::before { /* mid-century disc */
  content: ""; position: absolute; width: 75%; aspect-ratio: 1; border-radius: 50%;
  right: -22%; top: -16%; background: rgba(250, 245, 234, 0.18);
}
.cover h3 { position: relative; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.3; margin-bottom: 1rem; }
.cover p { position: relative; margin: 0 0 1rem; font-size: 1.05rem; }
.cover a { position: relative; margin-top: auto; font-weight: 500; text-decoration-color: currentColor; min-height: 44px; display: inline-flex; align-items: flex-end; }
.cover--teal { background: var(--teal); color: var(--light); }
.cover--gold { background: var(--mustard); color: var(--ink); }
.cover--gold::before { background: rgba(250, 245, 234, 0.3); }
.cover--avocado { background: var(--olive); color: var(--light); }
.cover--orange { background: var(--brown); color: var(--light); }
@media (max-width: 1000px) { .covers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .covers { grid-template-columns: 1fr; } .cover { aspect-ratio: auto; min-height: 240px; } }

/* =========================================================
   Reel 3: what we gain (avocado, light text)
   ========================================================= */
.reel--avocado { background: var(--olive); color: var(--light); }
.reel--avocado .reel-no { color: var(--light); }
.gains { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.gain-col h3 { font-size: clamp(1.1rem, 2.2vw, 1.5rem); padding-bottom: 0.8rem; border-bottom: 2px solid var(--light); margin-bottom: 0.5rem; }
.gain-col dl { margin: 0; }
.gain-col dt { font-family: var(--script); font-size: 1.7rem; line-height: 1.1; margin-top: 1.1rem; color: #F2D48A; }
.gain-col dd { margin: 0.2rem 0 0; font-size: 1.1rem; max-width: 46ch; }
.gain-src { margin-top: 2.5rem; font-size: 0.95rem; font-style: italic; color: #E4E8D2; }
@media (max-width: 820px) { .gains { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .cover::before { width: 40%; right: -12%; top: -20%; } }

/* Research covers now carry real summaries and a quotation: 2 x 2 grid */
.covers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.cover { aspect-ratio: auto; min-height: 380px; padding: 2rem 1.9rem 1.6rem; }
.cover-kind { position: relative; margin: 0 0 0.4rem; font-family: var(--script); font-size: 1.5rem; line-height: 1.1; }
.cover h3 { font-size: clamp(1.05rem, 1.8vw, 1.35rem); }
.cover p { font-size: 1.08rem; max-width: 46ch; }
.cover blockquote {
  position: relative; margin: 0.4rem 0 1.2rem; padding-left: 1rem;
  border-left: 3px solid currentColor; font-style: italic; font-size: 1.08rem; max-width: 44ch;
}
@media (max-width: 760px) { .covers { grid-template-columns: 1fr; } .cover { min-height: 0; } }
.cover::before { background: rgba(250, 245, 234, 0.1); } .cover--gold::before { background: rgba(250, 245, 234, 0.18); }

/* =========================================================
   Photos: vintage snapshots and a documentary pair
   ========================================================= */
.snapshot { margin: 0; }
.snapshot img {
  width: 100%; background: #FFFDF6; padding: 9px 9px 9px; border: 1px solid #E3DAC8;
  box-shadow: 0 14px 28px -16px rgba(31, 26, 23, 0.55);
}
.snapshot--right { float: right; width: min(42%, 240px); margin: 0.3rem 0 1.2rem 1.6rem; transform: rotate(2deg); }
.snapshot--center { max-width: 440px; margin: 0 auto 3rem; transform: rotate(-1.2deg); }
.snapshot figcaption { margin-top: 0.8rem; font-style: italic; color: var(--muted); font-size: 1rem; text-align: center; }
.narration::after { content: ""; display: block; clear: both; }
@media (max-width: 600px) {
  .snapshot--right { float: none; width: 70%; margin: 0 auto 1.6rem; }
}

.photo-pair {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem;
  max-width: 1000px; margin: 0.5rem auto clamp(2rem, 5vw, 3rem);
}
.photo-pair figure { margin: 0; }
.photo-pair img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 3px; }
.photo-pair figcaption { margin-top: 0.6rem; font-style: italic; font-size: 1rem; }
@media (max-width: 680px) { .photo-pair { grid-template-columns: 1fr; } }

.pdf-note { font-weight: 400; opacity: 0.85; }

/* =========================================================
   Opening: the foggy night overpass, full bleed
   ========================================================= */
.opening--photo {
  min-height: calc(100vh - 60px);
  background:
    linear-gradient(rgba(20, 16, 12, 0.35), rgba(20, 16, 12, 0.15) 40%, rgba(20, 16, 12, 0.75)),
    url("../images/costs-night-overpass.jpg") center 45% / cover no-repeat,
    #0E0D0B;
  align-content: end; padding-bottom: clamp(3rem, 9vh, 6rem);
}
.opening--photo .title-card { max-width: 46rem; }
.brand-script {
  font-family: var(--script); font-size: clamp(3.2rem, 9vw, 6rem); line-height: 1;
  color: var(--mustard); margin: 0; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}
.opening--photo .presents { margin-top: 0.4rem; }
.opening--photo .title-card h1, .opening--photo .tagline { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7); }

/* =========================================================
   Early-1960s Los Angeles pass
   Googie rooflines between chapters, atomic starbursts on the
   chapter labels, a motel-sign sunset stripe, pool turquoise.
   ========================================================= */
:root { --sky: #86CEC9; --slant: clamp(18px, 4vw, 56px); }

/* Googie rooflines: each chapter overlaps the one above on an angle,
   alternating direction so the seams zigzag down the page. */
.reel, .opening { position: relative; }
.reel { margin-top: calc(-1 * var(--slant)); padding-top: calc(clamp(4rem, 9vw, 7rem) + var(--slant)); }
.reel:nth-of-type(odd)  { clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%); }
.reel:nth-of-type(even) { clip-path: polygon(0 0, 100% var(--slant), 100% 100%, 0 100%); }
.opening { padding-bottom: calc(clamp(3rem, 9vh, 6rem) + var(--slant)); }

/* Atomic starbursts around the chapter label */
.reel-no { display: inline-flex; align-items: center; gap: 0.7rem; }
.reel-card .reel-no { justify-content: center; }
.reel-no::before, .reel-no::after {
  content: ""; width: 0.95rem; height: 0.95rem; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0l1.6 7.2L18.5 3.5l-3.7 6.9L20 10l-5.2 1.6 3.7 6.9-6.9-3.7L10 20l-1.6-5.2-6.9 3.7 3.7-6.9L0 10l5.2-1.6L1.5 3.5l6.9 3.7z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0l1.6 7.2L18.5 3.5l-3.7 6.9L20 10l-5.2 1.6 3.7 6.9-6.9-3.7L10 20l-1.6-5.2-6.9 3.7 3.7-6.9L0 10l5.2-1.6L1.5 3.5l6.9 3.7z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.reel-no::after { width: 0.6rem; height: 0.6rem; }
.reel-card--still .reel-no { justify-content: flex-start; }

/* Motel-sign sunset stripe under the header and above the footer */
.site-header { border-bottom: 0; box-shadow: none; }
.site-header::after, .site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, var(--mustard) 0 33.4%, var(--brown) 33.4% 66.7%, var(--teal) 66.7% 100%);
}
.site-header::after { bottom: -6px; }
.site-footer { position: relative; margin-top: 0; }
.site-footer::before { top: 0; }
.site-footer p { padding-top: 6px; }

/* =========================================================
   Ad-cue option: subtle borrowings from 1950s car advertising
   ========================================================= */

/* 1. Overlapping ovals behind a few chapter titles (Pontiac-style) */
.has-ovals { isolation: isolate; }
.has-ovals > * { position: relative; z-index: 1; }
.has-ovals > .ovals { position: absolute; z-index: 0; inset: 0 auto 0 0; width: min(36vw, 420px); max-width: none; margin: 0; pointer-events: none; }
.ovals span { position: absolute; top: 4%; width: 46%; height: 62%; border-radius: 50%; }
.ovals span:nth-child(1) { left: -14%; background: var(--mustard); opacity: 0.32; }
.ovals span:nth-child(2) { left: 14%; top: 10%; background: var(--sage); opacity: 0.34; }
.ovals span:nth-child(3) { left: 40%; top: -6%; height: 58%; background: var(--ink); opacity: 0.12; }
#the-end .ovals span:nth-child(1) { background: var(--light); opacity: 0.16; }
#the-end .ovals span:nth-child(2) { background: var(--mustard); opacity: 0.3; }
#the-end .ovals span:nth-child(3) { background: var(--ink); opacity: 0.16; }
@media (max-width: 600px) { .has-ovals > .ovals { width: 55vw; } .ovals span { height: 34%; } }

/* 2. Chrome trim spear under each chapter title */
.reel-card h2::after {
  content: ""; display: block; width: clamp(120px, 18vw, 220px); height: 5px; margin: 1rem auto 0;
  background: linear-gradient(180deg, #F4F4F2 0%, #A9ADAE 45%, #6F7375 55%, #D9DBDB 100%);
  clip-path: polygon(0 50%, 8% 0, 100% 20%, 100% 80%, 8% 100%);
}
.reel-card--still h2::after { margin-left: 0; }

/* 3. Two-tone covers: colored upper body, cream lower panel */
.cover { padding: 0; min-height: 0; }
.cover > .cover-kind, .cover > h3 { padding-left: 1.9rem; padding-right: 1.9rem; }
.cover > .cover-kind { padding-top: 1.8rem; }
.cover > h3 { padding-bottom: 1.4rem; margin-bottom: 0; }
.cover-lower {
  position: relative; flex: 1; display: flex; flex-direction: column;
  background: #FBF6EA; color: var(--ink); padding: 1.4rem 1.9rem 1.5rem;
  border-top: 4px solid; border-image: linear-gradient(90deg, #F4F4F2, #A9ADAE, #6F7375, #D9DBDB) 1; /* chrome seam */
}
.cover-lower blockquote { border-left-color: currentColor; }
.cover--teal .cover-lower blockquote { border-left-color: var(--teal); }
.cover--gold .cover-lower blockquote { border-left-color: var(--mustard); }
.cover--avocado .cover-lower blockquote { border-left-color: var(--olive); }
.cover--orange .cover-lower blockquote { border-left-color: var(--brown); }
.cover-lower a { text-decoration-color: var(--brown); }

/* 4. Letterspaced capitals, like the ads' model names */
.gain-col h3 { text-transform: uppercase; letter-spacing: 0.16em; font-size: clamp(0.95rem, 1.6vw, 1.15rem); }
/* Keep the ovals in the left margin, near the chapter title only */
.has-ovals > .ovals { inset: 0 auto auto -2vw; width: min(19vw, 250px); height: min(64vh, 440px); }
.ovals span { height: 100%; top: 0; }
.ovals span:nth-child(2) { top: 8%; height: 92%; }
.ovals span:nth-child(3) { top: -10%; height: 90%; }
@media (max-width: 760px) { .has-ovals > .ovals { display: none; } }
.pdf-note { margin-left: 0.35em; }

/* Who we are: closes the research chapter */
.who {
  max-width: 46rem; margin: clamp(3rem, 7vw, 4.5rem) auto 0; padding-top: 1.6rem;
  border-top: 3px solid var(--ink);
}
.who h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 0.9rem; }
.who p { font-size: 1.12rem; margin: 0 0 1rem; }
.who a { text-decoration-color: var(--brown); font-weight: 500; }

/* Officials pass: adopted-policy note, illustration note, four actions */
.narration .adopted { font-size: 1.15rem; line-height: 1.6; margin-top: 2rem; max-width: 40rem; }
.illus-note { display: block; margin-top: 0.5rem; font-style: italic; }
.illus-note a { color: inherit; text-decoration-color: var(--mustard); }
.actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 820px) { .actions { grid-template-columns: 1fr; } }
