/* Carson Creative Media: website preview (B-010). Dark and cinematic: navy, one amber light.
   Colors and contrast follow design-direction.md section 4. Amber is used as text only on navy. */

/* Self-hosted WOFF2, Latin subset (SIL OFL 1.1; licenses in assets/fonts/). DM Sans trimmed to weights 400-700. */
@font-face { font-family: "DM Sans"; src: url("../fonts/DMSans-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
/* Lora subset, renamed "CCM Serif Web" because the OFL reserves the name "Lora" for unmodified copies. */
@font-face { font-family: "CCM Serif Web"; src: url("../fonts/CCMSerifWeb-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --navy: #0B1F3F;
  --night: #071733;          /* deeper navy for alternate scenes (a shade of the brand navy) */
  --deep: #050F22;
  --amber: #E8A33D;
  --amber-hi: #F0B35A;
  --white: #FFFFFF;
  --steel: #AEB5BF;
  --line: rgba(174, 181, 191, 0.22);
  --font-ui: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "CCM Serif Web", Georgia, serif;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Reduced motion: everything holds still. The preview override (?motion=on) sets html.motion-ok and lifts this. */
@media (prefers-reduced-motion: reduce) { html:not(.motion-ok) { scroll-behavior: auto; } html:not(.motion-ok) *, html:not(.motion-ok) *::before, html:not(.motion-ok) *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--navy); color: var(--white);
  font-family: var(--font-body); font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem); line-height: 1.65;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--white); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--amber); text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-ui); font-weight: 700; line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.01em; }
/* second pass 2026-10-22: a bolder, more confident type scale (same words) */
h1 { font-size: clamp(2.5rem, 1.55rem + 4.1vw, 4.75rem); line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.45rem + 2.1vw, 3.125rem); line-height: 1.06; letter-spacing: -0.022em; text-wrap: balance; }
h3 { font-size: clamp(1.3rem, 1.2rem + 0.4vw, 1.5rem); line-height: 1.25; }
p { margin: 0 0 1em; max-width: 38rem; }
.eyebrow { font-family: var(--font-ui); font-weight: 500; font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); margin: 0 0 0.9rem; }
.lead { font-size: clamp(1.1875rem, 1.1rem + 0.3vw, 1.3125rem); line-height: 1.55; color: #E4E8EE; }
.muted { color: var(--steel); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--amber); color: var(--navy); font-family: var(--font-ui); font-weight: 700; padding: 10px 16px; border-radius: 6px; text-decoration: none; }
.skip:focus { top: 12px; }

/* Preview ribbon (remove before launch) */
.preview-bar { background: var(--deep); color: var(--steel); font-family: var(--font-ui); font-size: 0.8125rem; text-align: center; padding: 6px var(--gutter); border-bottom: 1px solid var(--line); }
.preview-bar strong { color: var(--amber); font-weight: 700; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 31, 63, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; padding: 6px 0; }
.brand img { height: 40px; width: auto; }
.brand .logo-wide { display: none; }
@media (min-width: 640px) { .brand .logo-wide { display: block; width: 190px; height: auto; } .brand .logo-icon { display: none; } }
.nav-toggle { font-family: var(--font-ui); font-weight: 700; font-size: 1rem; color: var(--white); background: transparent; border: 2px solid rgba(255, 255, 255, 0.7); border-radius: 8px; min-height: 44px; padding: 0 16px; cursor: pointer; }
/* Pause motion / Play motion (site.js adds it; stops the reels, door loops and Cam) */
.motion-toggle { margin-left: auto; font-family: var(--font-ui); font-weight: 500; font-size: 0.875rem; color: #C9D1DC; background: transparent; border: 0; min-height: 44px; padding: 0 6px; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(201, 209, 220, 0.5); text-underline-offset: 4px; }
.motion-toggle:hover { color: var(--white); text-decoration-color: var(--amber); }
@media (min-width: 960px) { .motion-toggle { margin-right: 4px; } }
.site-nav { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { font-family: var(--font-ui); font-weight: 500; text-decoration: none; color: var(--white); }
.site-nav a[aria-current="page"] { color: var(--amber); }
.site-nav.open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; }
.site-nav.open li a { display: flex; align-items: center; min-height: 56px; font-size: 1.125rem; border-bottom: 1px solid var(--line); }
.site-nav.open .btn { margin-top: 16px; width: 100%; }
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open { display: flex; position: static; padding: 0; border: 0; background: none; align-items: center; gap: 28px; }
  .site-nav ul { display: flex; gap: 26px; }
  .site-nav li a { font-size: 1rem; padding: 10px 0; }
  .site-nav li a:hover { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 8px; }
  .site-nav.open .btn { margin: 0; width: auto; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-ui); font-weight: 700; font-size: 1rem; line-height: 1.2; min-height: 48px; padding: 12px 24px; border-radius: 8px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color 150ms ease, transform 150ms ease; }
.btn-amber { background: var(--amber); color: var(--navy); }
.btn-amber:hover { background: var(--amber-hi); text-decoration: none; }
.btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.7); }
.btn-ghost:hover { border-color: var(--amber); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 44px; padding: 8px 18px; }

/* ---------- Cam's spots ----------
   One live Cam (canvas.cam-live, made by cam-live.js) travels to these spots for a few short moments, then hides.
   The still picture is the fallback (reduced motion, no WebGL) and sits in the hero only. */
.cam-stage { position: relative; }
.cam-stage .cam-still { position: absolute; inset: 0; margin: auto; width: 100%; height: 100%; object-fit: contain; transition: opacity 400ms ease; }
.cam-pending .cam-stage .cam-still, html.cam-live .cam-stage .cam-still { opacity: 0; }
canvas.cam-live { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 250ms ease; }
canvas.cam-live.on { opacity: 1; }
.no-cam canvas.cam-live { display: none; }
/* his short lines: a bubble inside whichever spot he is in, shown only while he says it */
.cam-pending .bubble, html.cam-live .bubble { opacity: 0; transform: translateY(6px) scale(0.96); transition: opacity 220ms ease, transform 260ms cubic-bezier(.2, .8, .2, 1.2); }
.cam-pending .bubble.on, html.cam-live .bubble.on { opacity: 1; transform: none; }

/* ---------- home hero: Cam and the three doors ---------- */
.hero { position: relative; overflow: hidden; overflow: clip;   /* clip, not hidden: keeps the phone doors rail sticky */ padding: clamp(24px, 4vw, 56px) 0 clamp(56px, 7vw, 96px);
  background:
    radial-gradient(60% 55% at 22% 38%, rgba(66, 112, 190, 0.28), transparent 70%),
    radial-gradient(40% 40% at 80% 100%, rgba(232, 163, 61, 0.10), transparent 70%),
    linear-gradient(180deg, var(--navy), var(--night)); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(3, 9, 22, 0.55)); }
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 8px 48px; align-items: center; }
.hero-cam { position: relative; }
.hero-cam .cam-stage { height: clamp(220px, 48vw, 300px); }
.bubble { position: absolute; z-index: 2; left: max(0px, calc(50% - 190px)); top: 2%; max-width: 13rem; background: var(--white); color: var(--navy); font-family: var(--font-ui); font-weight: 700; font-size: 1rem; line-height: 1.3; padding: 10px 14px; border-radius: 16px 16px 4px 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); transition: transform 200ms ease; }
.bubble.is-react { transform: translateY(-2px) rotate(-1deg); }
.hero-copy .lead { margin-bottom: 1.5rem; }
@media (min-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(300px, 0.85fr) 1.4fr; min-height: min(78vh, 680px); }
  .hero-cam .cam-stage { height: min(62vh, 520px); }
  .bubble { left: 0; top: 8%; font-size: 1.0625rem; }
}

.doors { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.door { --open: 0deg; position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: center; text-decoration: none; color: var(--white); padding: 12px 16px 12px 12px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); transition: background-color 200ms ease, border-color 200ms ease, transform 200ms ease; }
.door:hover, .door:focus-visible { background-color: rgba(255, 255, 255, 0.07); border-color: rgba(232, 163, 61, 0.65); --open: -34deg; text-decoration: none; }
.door:focus-visible { outline-offset: 4px; }
.door-frame { position: relative; display: block; width: 76px; height: 104px; border-radius: 38px 38px 6px 6px; background: radial-gradient(80% 70% at 30% 60%, #FFE2AE, var(--amber) 55%, #B9741C); box-shadow: inset 0 0 0 3px #0A1A35; perspective: 400px; overflow: hidden; }
.door-panel { position: absolute; inset: 3px; border-radius: 35px 35px 4px 4px; background: linear-gradient(160deg, #1B3A6B, #10264A 60%, #0C1F40); transform-origin: left center; transform: rotateY(var(--open)); transition: transform 450ms cubic-bezier(.2, .8, .2, 1); box-shadow: inset 0 0 0 1px rgba(174, 181, 191, 0.25); display: grid; place-items: center; }
.door-panel::after { content: ""; position: absolute; right: 9px; top: 54%; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 6px rgba(232, 163, 61, 0.8); }
.door-panel svg { width: 34px; height: 34px; color: var(--steel); }
.door-text { display: block; }
.door-label { display: block; font-family: var(--font-ui); font-weight: 700; font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.375rem); line-height: 1.2; }
.door-sub { display: block; color: var(--steel); font-size: 0.975rem; line-height: 1.45; margin-top: 4px; }
.door-go { display: inline-block; margin-top: 6px; font-family: var(--font-ui); font-weight: 700; font-size: 0.9375rem; color: var(--amber); }
.door-go::after { content: "\2192"; display: inline-block; margin-left: 6px; transition: transform 200ms ease; }
.door:hover .door-go::after, .door:focus-visible .door-go::after { transform: translateX(4px); }
@media (min-width: 640px) and (max-width: 959px) { .door { grid-template-columns: 88px 1fr; } .door-frame { width: 88px; height: 120px; border-radius: 44px 44px 6px 6px; } }
@media (min-width: 960px) {
  .doors { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .door { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 22px 18px 22px; align-content: start; height: 100%; }
  .door-frame { width: 132px; height: 184px; border-radius: 66px 66px 8px 8px; }
  .door-panel { border-radius: 63px 63px 6px 6px; }
  .door-panel svg { width: 48px; height: 48px; }
  .door-panel::after { right: 14px; width: 9px; height: 9px; }
}

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.alt { background: var(--night); }
.section.deep { background: var(--deep); }
.section-head { margin-bottom: clamp(24px, 4vw, 40px); }
.section-head p { color: var(--steel); }

/* film tile placeholder: nothing clickable, nothing that looks broken */
.film { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); border: 1px solid var(--line); background:
  radial-gradient(60% 70% at 50% 45%, rgba(66, 112, 190, 0.18), transparent 70%), var(--deep); overflow: hidden; display: grid; place-items: center; text-align: center; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); }
.film::before, .film::after { content: ""; position: absolute; left: 0; right: 0; height: 9%; background: #000; opacity: 0.55; }
.film::before { top: 0; } .film::after { bottom: 0; }
.film-inner { position: relative; z-index: 1; padding: 24px; display: grid; justify-items: center; gap: 10px; }
.film-inner img { width: clamp(44px, 8vw, 72px); opacity: 0.18; }
.film-inner p { margin: 0; font-family: var(--font-ui); font-size: 0.9375rem; color: var(--steel); max-width: 30rem; }
.film-inner .film-title { font-weight: 700; font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); color: var(--white); }
.films-row { display: grid; gap: 18px; }
/* Why choose us (Home): grade chart beside how we check; the A row is lit as our standard */
.why-grid { display: grid; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (min-width: 900px) { .why-grid { grid-template-columns: 1.05fr 1fr; } }
.grades { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.grades th, .grades td { padding: 12px 16px; vertical-align: middle; background: rgba(255, 255, 255, 0.035); }
.grades th { width: 4.6rem; font-family: var(--font-ui); font-weight: 700; font-size: 1.35rem; color: var(--white); text-align: center; border-radius: var(--radius) 0 0 var(--radius); white-space: nowrap; }
.grades td { color: #DCE1E8; font-size: 1rem; border-radius: 0 var(--radius) var(--radius) 0; }
.grades tr.bar th { background: var(--amber); color: var(--navy); }
.grades tr.bar td { background: rgba(232, 163, 61, 0.14); color: var(--white); box-shadow: inset -1px 0 0 rgba(232, 163, 61, 0.5), inset 0 1px 0 rgba(232, 163, 61, 0.5), inset 0 -1px 0 rgba(232, 163, 61, 0.5); }
.bar-tag { display: inline-block; margin-left: 10px; font-family: var(--font-ui); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); background: var(--amber); border-radius: 999px; padding: 2px 9px; vertical-align: 2px; white-space: nowrap; }
.why-copy p { color: #DCE1E8; }
.why-copy .callout p { color: var(--white); font-size: 1.125rem; }
.why-sizes-title { margin: clamp(36px, 5vw, 56px) 0 16px; font-size: 1.25rem; }
.why-covers { margin: 24px 0 0; max-width: 46rem; color: var(--steel); }
.why-covers strong { color: var(--white); font-family: var(--font-ui); }
/* timing chart: the worst-case note sits under the heading (Jeff 2026-10-29) */
.timing-lead { margin: 0.6rem 0 0; max-width: 44rem; color: var(--white); font-size: 1.0625rem; }

/* promo player (Home "Meet Carson Creative Media"): poster + play button; YouTube loads only on click (site.js) */
.premiere .wrap { max-width: 1040px; }
.film.yt { display: block; text-decoration: none; color: var(--white); cursor: pointer; }
.film.yt::before, .film.yt::after { display: none; }
.film.yt img, .film.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.yt-play { position: absolute; left: clamp(14px, 3vw, 28px); bottom: clamp(14px, 3vw, 28px); display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px 10px 12px; border-radius: 999px; background: var(--amber); color: var(--navy); font-family: var(--font-ui); font-weight: 700;
  font-size: clamp(0.9375rem, 0.9rem + 0.3vw, 1.0625rem); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); transition: transform 0.2s ease, background 0.2s ease; }
.yt-play svg { width: 1.9em; height: 1.9em; padding: 0.35em 0.3em 0.35em 0.45em; border-radius: 50%; background: var(--navy); color: var(--amber); }
.yt-play small { font-weight: 500; font-size: 0.85em; opacity: 0.8; }
.film.yt:hover .yt-play, .film.yt:focus-visible .yt-play { transform: scale(1.05); background: var(--amber-hi); }
.film.yt:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }
.yt-note { margin: 14px 0 0; font-family: var(--font-ui); font-size: 0.875rem; color: var(--steel); text-align: center; }
@media (max-width: 560px) { .yt-play { left: 10px; bottom: 10px; gap: 6px; padding: 5px 12px 5px 5px; font-size: 0.8125rem; } }
@media (prefers-reduced-motion: reduce) { .yt-play { transition: none; } }

@media (min-width: 640px) { .films-row { grid-template-columns: repeat(3, 1fr); } .films-row .film-inner p:not(.film-title) { font-size: 0.875rem; } }

/* preview-only placeholders (dashed). These are notes for Jeff, not for visitors */
.ph { border: 2px dashed rgba(232, 163, 61, 0.55); border-radius: var(--radius); padding: 20px 22px; color: var(--steel); font-family: var(--font-ui); font-size: 0.9375rem; }
.ph strong { color: var(--amber); }

/* what we make: cards */
.cards { display: grid; gap: 16px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { margin: 0; color: #DCE1E8; }
.card .tag { display: inline-block; font-family: var(--font-ui); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); background: var(--amber); border-radius: 999px; padding: 3px 10px; margin-bottom: 12px; }
.card.feature { border-color: rgba(232, 163, 61, 0.6); background: linear-gradient(160deg, rgba(232, 163, 61, 0.10), rgba(255, 255, 255, 0.02) 60%); }
@media (min-width: 960px) { .card.feature.span2 { grid-column: span 2; } }
.card ul { margin: 12px 0 0; padding-left: 1.2em; color: #DCE1E8; }
.card li { margin: 4px 0; }
.callout { margin-top: 20px; border-left: 4px solid var(--amber); padding: 6px 0 6px 18px; }
.callout p { margin: 0; }
.callout strong { font-family: var(--font-ui); }

/* how it works: numbered steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; position: relative; padding-top: 58px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; font-family: var(--font-ui); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--amber); }
.steps li::after { content: ""; position: absolute; top: 20px; left: 44px; right: 0; height: 1px; background: var(--line); }
.steps h3 { font-size: 1.2rem; margin-bottom: 0.35em; }
.steps p { margin: 0; color: #DCE1E8; font-size: 1rem; }

/* pull line */
.pull { font-family: var(--font-body); font-style: italic; font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); line-height: 1.4; max-width: 44rem; }
.pull::before { content: ""; display: block; width: 48px; height: 4px; background: var(--amber); margin-bottom: 20px; border-radius: 2px; }

/* chapter hero */
.chapter-hero { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 72px); background:
  radial-gradient(55% 60% at 82% 40%, rgba(66, 112, 190, 0.25), transparent 70%), linear-gradient(180deg, var(--navy), var(--night)); }
.calm .chapter-hero { background: radial-gradient(55% 60% at 82% 42%, rgba(232, 163, 61, 0.16), transparent 70%), linear-gradient(180deg, var(--navy), var(--night)); }
.chapter-hero .wrap { display: grid; gap: 8px 40px; align-items: center; }
.chapter-hero .cam-stage { height: clamp(190px, 46vw, 260px); }
.crumbs { font-family: var(--font-ui); font-size: 0.875rem; color: var(--steel); margin-bottom: 18px; }
.crumbs a { color: var(--steel); }
@media (min-width: 960px) {
  .chapter-hero .wrap { grid-template-columns: 1.5fr 1fr; }
  .chapter-hero .cam-stage { height: 380px; }
  .chapter-hero .hero-cam { order: 2; }
}
@media (max-width: 959px) { .chapter-hero .hero-cam { order: -1; } }

/* other doors at the end of a chapter */
.other-doors { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- Let's talk (every page) ---------- */
.talk { position: relative; background: linear-gradient(180deg, var(--night), var(--deep)); padding: clamp(56px, 8vw, 96px) 0 0; overflow: hidden; }
.talk .wrap { display: grid; gap: 0 32px; align-items: end; }
.talk-copy { padding-bottom: clamp(40px, 6vw, 80px); }
.talk-email { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 8px 0 18px; }
.talk-where { font-family: var(--font-ui); color: var(--steel); font-size: 0.9375rem; margin: 0; }
.talk .cam-stage { height: 220px; }
@media (min-width: 760px) {
  .talk .wrap { grid-template-columns: 1fr 300px; }
  .talk .cam-stage { height: 300px; }
}
.email-text { font-family: var(--font-ui); font-weight: 500; word-break: break-all; }

/* ---------- footer ---------- */
.site-footer { background: var(--deep); border-top: 1px solid var(--line); padding: 40px 0 32px; font-family: var(--font-ui); font-size: 0.9375rem; color: var(--steel); }
.site-footer .wrap { display: grid; gap: 24px; }
.site-footer img { width: 120px; height: auto; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer a { color: var(--white); display: inline-flex; align-items: center; min-height: 44px; }
.site-footer p { margin: 0 0 6px; }
.site-footer .foot-privacy { font-size: 0.875rem; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: auto 1fr auto; align-items: start; gap: 48px; } }
@media (max-width: 759px) { .talk-copy { padding-bottom: 4px; } .talk .cam-stage { height: 170px; } }

/* =====================================================================
   Movie-theater feel (Jeff, 2026-10-21). Subtle, cheap (CSS only), all motion off under reduced motion.
   ===================================================================== */

/* faint film grain over everything. Second pass (Jeff, 2026-10-22: it read as shimmer): now STATIC and fainter.
   No animation, no transform: the tile never moves, so nothing on the page flickers. */
body::after { content: ""; position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: 0.022;
  background-image: 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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* letterbox bars slide in at the top and bottom of the hero (they sit in the hero's padding, never over words) */
.letterbox { display: none; }
.motion-ok .letterbox { display: block; position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.letterbox::before, .letterbox::after { content: ""; position: absolute; left: 0; right: 0; height: clamp(12px, 2.6vw, 34px); background: #02060F; opacity: 0.92; }
.letterbox::before { top: 0; transform-origin: top; animation: bar-in 1.1s cubic-bezier(.2, .8, .2, 1) 0.2s both; }
.letterbox::after { bottom: 0; transform-origin: bottom; animation: bar-in 1.1s cubic-bezier(.2, .8, .2, 1) 0.2s both; }
@keyframes bar-in { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* section titles fade up like opening credits (site.js adds .credit, then .in when the title comes into view) */
.motion-ok .credit { opacity: 0; transform: translateY(14px); transition: opacity 900ms ease, transform 1100ms cubic-bezier(.2, .8, .2, 1); }
.motion-ok .credit-2 { transition-delay: 120ms; }
.motion-ok .credit.in { opacity: 1; transform: none; }

/* a soft projector-light sweep across a door card on hover or keyboard focus */
.door { overflow: hidden; isolation: isolate; }
.door > * { position: relative; z-index: 1; }
.door::before { content: ""; position: absolute; z-index: 0; top: -30%; bottom: -30%; left: 0; width: 45%; pointer-events: none; opacity: 0;
  background: linear-gradient(100deg, transparent 10%, rgba(255, 236, 200, 0.15) 50%, transparent 90%); transform: translateX(-140%) skewX(-14deg); }
.motion-ok .door:hover::before, .motion-ok .door:focus-visible::before { opacity: 1; transform: translateX(330%) skewX(-14deg); transition: transform 1200ms cubic-bezier(.3, .6, .2, 1), opacity 250ms ease; }

/* =====================================================================
   A look for each door and chapter (same layout, different atmosphere)
   nonprofit = warm, soft light · business = crisp storefront-at-night · family = summer trip (road map, snapshots)
   ===================================================================== */
/* Nonprofit door: two hands shaking at the bottom (Jeff 2026-10-23), same amber line style as the family path */
.door[data-door="nonprofit"] { background-image: radial-gradient(120% 80% at 50% -10%, rgba(232, 163, 61, 0.15), transparent 62%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 44'%3E%3Cg fill='none' stroke='%23E8A33D' stroke-opacity='.38' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 15h9v15H3M77 15h-9v15h9M12 17h7l9-5c2-1 4-1 6 0l7 4M68 17h-6l-6-3-10-1-8 4c-2 1-2 4 1 4l7-2M12 28h5l8 7c1.5 1.3 3.5 1 4.5-.5M23 27l7 6c1.5 1.3 3.5 1 4.5-.5M29 25l7 5.5c1.5 1.2 3.5.7 4.3-.8M68 28h-6l-6-5M44 19l13 10c1.4 1.1 1 3-.6 3.4'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 0 0, right 10px bottom 8px; background-size: auto, 80px 44px; }
@media (max-width: 639px) { .door[data-door="nonprofit"] { background-position: 0 0, right 8px bottom 7px; background-size: auto, 58px 32px; } }
.door[data-door="nonprofit"] .door-frame { background: radial-gradient(85% 75% at 40% 58%, #FFEFD2, #F4BE6C 48%, #C27C24); }
.door[data-door="business"] { box-shadow: inset 0 1px 0 rgba(160, 200, 255, 0.32);
  background-image: linear-gradient(180deg, rgba(110, 170, 255, 0.10), transparent 38%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 36' preserveAspectRatio='none'%3E%3Cg fill='%2382AAFF' fill-opacity='.10'%3E%3Cpath d='M0 36V18h18V8h14v10h10V2h20v34zM70 36V14h26v22zM100 36V6h16V0h14v6h10v30zM146 36V16h22V10h12v26zM186 36V4h24v32zM214 36V20h26v16z'/%3E%3C/g%3E%3Cg fill='%23E8A33D' fill-opacity='.30'%3E%3Crect x='6' y='22' width='4' height='4'/%3E%3Crect x='48' y='8' width='4' height='4'/%3E%3Crect x='54' y='20' width='4' height='4'/%3E%3Crect x='78' y='20' width='5' height='4'/%3E%3Crect x='108' y='12' width='4' height='4'/%3E%3Crect x='122' y='22' width='4' height='4'/%3E%3Crect x='152' y='22' width='5' height='4'/%3E%3Crect x='194' y='10' width='4' height='4'/%3E%3Crect x='200' y='24' width='4' height='4'/%3E%3Crect x='224' y='26' width='5' height='4'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 0 0, center bottom; background-size: auto, 100% 30px; }
.door[data-door="business"] .door-frame { background: repeating-linear-gradient(90deg, transparent 0 15px, rgba(10, 26, 53, 0.35) 15px 17px), linear-gradient(180deg, #FFF7E6 0%, #F5C97E 34%, #E8A33D 62%, #7C4B12); }
.door[data-door="family"] {
  background-image: radial-gradient(100% 70% at 88% -10%, rgba(255, 200, 110, 0.15), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60'%3E%3Cpath d='M4 54C30 42 28 20 56 24S92 52 114 10' fill='none' stroke='%23E8A33D' stroke-opacity='.38' stroke-width='2' stroke-dasharray='5 6' stroke-linecap='round'/%3E%3Ccircle cx='114' cy='10' r='4' fill='%23E8A33D' fill-opacity='.5'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 46'%3E%3Cg transform='rotate(-9 20 23)'%3E%3Crect x='5' y='4' width='30' height='37' rx='2' fill='none' stroke='white' stroke-opacity='.24' stroke-width='2'/%3E%3Crect x='9' y='8' width='22' height='21' fill='white' fill-opacity='.07'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 0 0, right 10px bottom 8px, left 10px top 10px; background-size: auto, 86px 43px, 30px 34px; }
.door[data-door="family"] .door-frame { background: linear-gradient(180deg, #FFE6A8 0%, #F3B957 40%, #E8A33D 56%, #5E9FB6 57%, #2F6E8A 100%); }

/* =====================================================================
   Background video behind the top of each page (README "Background video").
   Layers, back to front: placeholder light, Jeff's clip (when ready), motif, dark shade (keeps words readable), warm glow.
   ===================================================================== */
.bgv { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  --c1: rgba(66, 112, 190, 0.34); --c2: rgba(232, 163, 61, 0.20); --glow: rgba(232, 163, 61, 0.16); }
.bgv-ph { position: absolute; inset: 0; }
.bgv-ph i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; left: -20vmax; top: -30vmax; background: radial-gradient(circle, var(--c1), transparent 62%); }
.bgv-ph i + i { left: auto; right: -25vmax; top: auto; bottom: -40vmax; background: radial-gradient(circle, var(--c2), transparent 60%); }
.motion-ok .bgv-ph i { animation: drift 26s ease-in-out infinite alternate; will-change: transform; }
.motion-ok .bgv-ph i + i { animation-duration: 32s; animation-direction: alternate-reverse; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(14vmax, 8vmax, 0) scale(1.12); } }
.bgv-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 900ms ease; }
.bgv-video.has-poster, .bgv-video.is-playing { opacity: 1; }
.bgv-motif { position: absolute; inset: 0; background-repeat: no-repeat; opacity: 0.9; }
.bgv-reel.has-poster ~ .bgv-motif { display: none; }
/* the reel: two video layers that take turns; the incoming clip fades in over the outgoing one (about 1.2 s) */
.bgv-reel { position: absolute; inset: 0; z-index: 0; }
.bgv-reel .bgv-video { transition: opacity 1200ms ease; }
.bgv-reel .bgv-video.is-front { z-index: 2; }
/* words sit on at least 86% navy, so they stay readable over the brightest frame; Cam's window shows more of the scene */
.bgv-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 23, 51, 0.45) 0, rgba(7, 23, 51, 0.5) calc(var(--win) - 70px), rgba(7, 23, 51, 0.86) var(--win)), linear-gradient(180deg, transparent 75%, var(--night)); }
.bgv-glow { position: absolute; inset: 0; background: radial-gradient(45% 40% at 50% calc(var(--win) * 0.55), var(--glow), transparent 70%); }
.motion-ok .bgv-glow { animation: breathe 9s ease-in-out infinite alternate; }
@keyframes breathe { from { opacity: 0.55; } to { opacity: 1; } }
.hero { --win: calc(clamp(24px, 4vw, 56px) + clamp(220px, 48vw, 300px)); }
.chapter-hero { --win: calc(clamp(28px, 5vw, 64px) + clamp(190px, 46vw, 260px)); }
.chapter-hero .wrap { position: relative; z-index: 1; }
@media (min-width: 960px) {
  .hero .bgv-shade { background: linear-gradient(90deg, rgba(7, 23, 51, 0.42) 0%, rgba(7, 23, 51, 0.5) 30%, rgba(7, 23, 51, 0.86) 40%, rgba(7, 23, 51, 0.88) 100%), linear-gradient(180deg, transparent 75%, var(--night)); }
  .hero .bgv-glow { background: radial-gradient(28% 45% at 20% 62%, var(--glow), transparent 70%); }
  .chapter-hero .bgv-shade { background: linear-gradient(90deg, rgba(7, 23, 51, 0.88) 0%, rgba(7, 23, 51, 0.86) 56%, rgba(7, 23, 51, 0.5) 63%, rgba(7, 23, 51, 0.42) 100%), linear-gradient(180deg, transparent 75%, var(--night)); }
  .chapter-hero .bgv-glow { background: radial-gradient(26% 50% at 80% 58%, var(--glow), transparent 70%); }
}

/* chapter atmospheres (placeholder light + motif until Jeff's footage is in) */
.ch-nonprofit .bgv { --c1: rgba(232, 163, 61, 0.24); --c2: rgba(255, 196, 150, 0.16); --glow: rgba(255, 190, 120, 0.20); }
.ch-business .bgv { --c1: rgba(70, 130, 230, 0.36); --c2: rgba(120, 200, 255, 0.14); --glow: rgba(150, 190, 255, 0.12); }
.ch-business .bgv-motif { background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 60' preserveAspectRatio='none'%3E%3Cg fill='%2382AAFF' fill-opacity='.09'%3E%3Cpath d='M0 60V30h30V14h22v16h18V4h34v56zM110 60V24h44v36zM160 60V10h28V0h22v10h18v50zM234 60V26h38V16h20v44zM300 60V6h40v54zM348 60V32h42V18h20v42zM418 60V12h30v8h32v40z'/%3E%3C/g%3E%3Cg fill='%23E8A33D' fill-opacity='.22'%3E%3Crect x='10' y='38' width='6' height='6'/%3E%3Crect x='80' y='14' width='6' height='6'/%3E%3Crect x='90' y='34' width='6' height='6'/%3E%3Crect x='124' y='36' width='8' height='6'/%3E%3Crect x='176' y='20' width='6' height='6'/%3E%3Crect x='198' y='40' width='6' height='6'/%3E%3Crect x='250' y='38' width='8' height='6'/%3E%3Crect x='314' y='18' width='6' height='6'/%3E%3Crect x='326' y='42' width='6' height='6'/%3E%3Crect x='372' y='44' width='8' height='6'/%3E%3Crect x='430' y='26' width='6' height='6'/%3E%3Crect x='460' y='40' width='6' height='6'/%3E%3C/g%3E%3C/svg%3E"),
    repeating-linear-gradient(90deg, transparent 0 120px, rgba(140, 180, 255, 0.035) 120px 122px);
  background-position: center bottom, 0 0; background-size: 100% 22%, auto; }
.ch-family .bgv { --c1: rgba(255, 196, 110, 0.24); --c2: rgba(70, 160, 190, 0.20); --glow: rgba(255, 200, 120, 0.18); }
.ch-family .bgv-motif { background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 200'%3E%3Cpath d='M10 180C80 150 90 80 170 90S290 170 390 30' fill='none' stroke='%23E8A33D' stroke-opacity='.28' stroke-width='3' stroke-dasharray='9 10' stroke-linecap='round'/%3E%3Ccircle cx='390' cy='30' r='7' fill='%23E8A33D' fill-opacity='.4'/%3E%3Ccircle cx='10' cy='180' r='5' fill='white' fill-opacity='.25'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 100'%3E%3Cg transform='rotate(-8 40 50)'%3E%3Crect x='14' y='14' width='50' height='58' rx='3' fill='none' stroke='white' stroke-opacity='.16' stroke-width='3'/%3E%3C/g%3E%3Cg transform='rotate(7 80 50)'%3E%3Crect x='58' y='22' width='50' height='58' rx='3' fill='none' stroke='white' stroke-opacity='.12' stroke-width='3'/%3E%3C/g%3E%3C/svg%3E");
  background-position: right 4% bottom 12%, right 6% top 14%; background-size: min(46vw, 560px) auto, min(18vw, 200px) auto; }
@media (max-width: 959px) { .ch-family .bgv-motif { background-position: center top 8%, right 4% top 4%; background-size: 90vw auto, 22vw auto; } }

/* =====================================================================
   SECOND PASS (Jeff, 2026-10-22): Cam as the guide + visual polish.
   Same layout, words and colors. Everything that moves is off under reduced motion (see the rule at the top).
   ===================================================================== */

/* ---------- hero: bigger stage for Cam, more confident type, more depth ---------- */
.hero .lead, .chapter-hero .lead { font-size: clamp(1.1875rem, 1.06rem + 0.5vw, 1.4375rem); }
.hero h1, .chapter-hero h1 { text-shadow: 0 2px 34px rgba(3, 9, 22, 0.6); }
.hero .eyebrow::before, .chapter-hero .eyebrow::before { content: ""; display: inline-block; width: 28px; height: 2px; margin-right: 10px; vertical-align: 0.3em; background: var(--amber); border-radius: 2px; }
.chapter-hero h1 { font-size: clamp(2.375rem, 1.5rem + 3.3vw, 4.25rem); }
@media (min-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(320px, 1fr) 1.35fr; min-height: min(80vh, 700px); }
  .hero-cam .cam-stage { height: min(66vh, 560px); }
}
/* a warm pool of light under Cam, so he stands in the scene instead of floating on it */
.hero-cam::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 2%; height: 16%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(232, 163, 61, 0.22), rgba(232, 163, 61, 0.06) 60%, transparent); }
.calm .hero-cam::after { background: radial-gradient(closest-side, rgba(255, 196, 130, 0.24), transparent); }
.hero-cam .cam-stage { z-index: 1; }

/* bubbles that Cam's script puts inside a spot (chapter top, doors rail, corner rider, Let's talk) */
.cam-stage .cam-say { position: absolute; left: 2%; top: 3%; right: auto; z-index: 2; margin: 0; max-width: 15rem; font-size: 0.9375rem; pointer-events: none; }
.cam-say.below { left: 0; right: 0; top: auto; bottom: 0; max-width: none; text-align: center; font-size: 0.8125rem; padding: 6px 8px; border-radius: 4px 14px 14px 14px; }
.talk .cam-say { top: 0; left: 0; }

/* ---------- doors: little windows into each world ---------- */
.door { background-color: rgba(9, 26, 55, 0.74); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 18px 44px rgba(2, 6, 15, 0.45);
  transition: background-color 200ms ease, border-color 200ms ease, box-shadow 350ms ease, transform 350ms cubic-bezier(.2, .8, .2, 1); }
.door[data-door="business"] { box-shadow: inset 0 1px 0 rgba(160, 200, 255, 0.32), 0 18px 44px rgba(2, 6, 15, 0.45); }
.door:hover, .door:focus-visible, .door.is-near { --open: -76deg; border-color: rgba(232, 163, 61, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 28px 60px rgba(2, 6, 15, 0.6), 0 0 44px rgba(232, 163, 61, 0.16); }
.motion-ok .door:hover, .motion-ok .door:focus-visible { transform: translateY(-6px); }
.door-frame { box-shadow: inset 0 0 0 2px rgba(232, 163, 61, 0.6), 0 14px 30px rgba(2, 6, 15, 0.55); transition: box-shadow 350ms ease; }
.door:hover .door-frame, .door:focus-visible .door-frame, .door.is-near .door-frame { box-shadow: inset 0 0 0 2px var(--amber), 0 0 26px rgba(232, 163, 61, 0.45), 0 14px 30px rgba(2, 6, 15, 0.55); }
.door-win { position: absolute; inset: 3px; overflow: hidden; border-radius: 35px 35px 4px 4px; background: #0C1F40; }
.door-win img, .door-win video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.door-video { opacity: 0; transition: opacity 700ms ease; }
.door-video.is-playing { opacity: 1; }
.door-win::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 23, 51, 0) 40%, rgba(7, 23, 51, 0.45)); }
.motion-ok .door-win img, .motion-ok .door-win video { transition: transform 1200ms cubic-bezier(.2, .8, .2, 1), opacity 700ms ease; }
.motion-ok .door:hover .door-win img, .motion-ok .door:hover .door-win video, .motion-ok .door.is-near .door-win video { transform: scale(1.07); }
/* the door itself is now glass: you see the world through it, and it swings open when you choose it */
.door-panel { z-index: 1; background: linear-gradient(160deg, rgba(27, 58, 107, 0.6), rgba(12, 31, 64, 0.72) 60%, rgba(10, 26, 54, 0.8));
  box-shadow: inset 0 0 0 1px rgba(174, 181, 191, 0.3), inset 18px 0 30px rgba(255, 255, 255, 0.04); }
.door-panel svg { color: var(--white); filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6)); }
@media (min-width: 960px) { .door-win { border-radius: 63px 63px 6px 6px; } }
@media (min-width: 640px) and (max-width: 959px) { .door-win { border-radius: 41px 41px 4px 4px; } }
/* phones: each door is a wide window on top of its words */
@media (max-width: 639px) {
  .door { grid-template-columns: 1fr; gap: 12px; padding: 10px 10px 14px; }
  .door-text { padding: 0 6px; }
  .door-frame { width: 100%; height: clamp(108px, 32vw, 150px); border-radius: 50% 50% 8px 8px / 56px 56px 8px 8px; }
  .door-win { border-radius: 50% 50% 6px 6px / 53px 53px 6px 6px; }
  .door-panel { border-radius: 50% 50% 6px 6px / 53px 53px 6px 6px; }
}
/* the doors arrive one after another */
.motion-ok .doors > li { animation: door-in 900ms cubic-bezier(.2, .8, .2, 1) both; animation-delay: 350ms; }
.motion-ok .doors > li:nth-child(2) { animation-delay: 480ms; }
.motion-ok .doors > li:nth-child(3) { animation-delay: 610ms; }
@keyframes door-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* phones and tablets: a rail beside the doors where Cam walks along with you (only when the live Cam can run) */
.doors-rail { display: none; }
@media (max-width: 959px) {
  .motion-ok:not(.no-cam) .doors-wrap { --rail: clamp(96px, 26vw, 170px); display: grid; grid-template-columns: minmax(0, 1fr) var(--rail); gap: 10px; }
  .motion-ok:not(.no-cam) .doors-rail { display: block; position: relative; }
  .doors-rail .cam-stage { position: sticky; top: calc(50vh - var(--rail) * 0.45 - 34px); height: calc(var(--rail) * 0.9 + 72px); }
}

/* ---------- the corner rider (chapter pages, desktop): Cam rides along small and tucks away over text ---------- */
.cam-rider { position: fixed; right: 14px; top: 0; width: 150px; height: 196px; z-index: 44; pointer-events: none;
  transform: translateX(calc(100% + 30px)); transition: transform 650ms cubic-bezier(.2, .8, .2, 1); }
.calm .cam-rider { transition: transform 1100ms ease-in-out; }
.cam-rider.out { transform: none; }
.cam-rider .cam-say { left: auto; right: 4px; top: 0; max-width: 146px; font-size: 0.875rem; padding: 8px 11px; border-radius: 14px 14px 4px 14px; }

/* ---------- smoother scenes: sections fade into each other instead of hard edges ---------- */
.section.alt { background: linear-gradient(180deg, var(--navy) 0, var(--night) 140px, var(--night) calc(100% - 140px), var(--navy) 100%); }
.talk { background: linear-gradient(180deg, var(--navy) 0, var(--night) 160px, var(--deep) 100%); }
.motion-ok .reveal { opacity: 0; transform: translateY(22px); transition: opacity 800ms ease, transform 1000ms cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0ms); }
.motion-ok .reveal.in { opacity: 1; transform: none; }
.card { background: linear-gradient(170deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015) 70%); box-shadow: 0 16px 40px rgba(2, 6, 15, 0.3); }
.card.feature { box-shadow: 0 16px 40px rgba(2, 6, 15, 0.3), 0 0 50px rgba(232, 163, 61, 0.08); }
.film { box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.03), 0 0 80px rgba(66, 112, 190, 0.12); }

/* ---------- how it works: a visual sequence (numbered lights joined by a line that draws itself) ---------- */
.steps { gap: 28px 22px; }
.steps li { padding-top: 0; padding-left: 74px; min-height: 56px; }
.steps li::before { content: counter(step); top: 0; left: 0; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%;
  font-size: 1.5rem; color: var(--amber); background: radial-gradient(circle at 35% 30%, #1B3A6B, var(--deep));
  box-shadow: inset 0 0 0 2px rgba(232, 163, 61, 0.75), 0 0 22px rgba(232, 163, 61, 0.22), 0 10px 22px rgba(2, 6, 15, 0.5); }
.steps li::after { top: 60px; bottom: -26px; left: 26px; right: auto; width: 2px; height: auto; transform-origin: top;
  background: linear-gradient(180deg, rgba(232, 163, 61, 0.7), rgba(174, 181, 191, 0.2)); }
.steps li:last-child::after { display: none; }
@media (min-width: 640px) {
  .steps li { padding-left: 0; padding-top: 76px; }
  .steps li::after { top: 26px; left: 66px; right: -14px; bottom: auto; width: auto; height: 2px; transform-origin: left;
    background: linear-gradient(90deg, rgba(232, 163, 61, 0.75), rgba(174, 181, 191, 0.18)); }
}
@media (min-width: 640px) and (max-width: 959px) { .steps li:nth-child(2n)::after { display: none; } }
.motion-ok .steps.reveal-seq li::before { transform: scale(0.6); opacity: 0; transition: transform 600ms cubic-bezier(.2, .8, .2, 1.3), opacity 400ms ease; transition-delay: var(--d, 0ms); }
.motion-ok .steps.reveal-seq li::after { transform: scaleY(0); transition: transform 700ms ease; transition-delay: calc(var(--d, 0ms) + 300ms); }
@media (min-width: 640px) { .motion-ok .steps.reveal-seq li::after { transform: scaleX(0); } }
.motion-ok .steps.reveal-seq li > * { opacity: 0; transform: translateY(12px); transition: opacity 700ms ease, transform 800ms cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--d, 0ms) + 120ms); }
.motion-ok .steps.reveal-seq.in li::before { transform: none; opacity: 1; }
.motion-ok .steps.reveal-seq.in li::after { transform: none; }
.motion-ok .steps.reveal-seq.in li > * { opacity: 1; transform: none; }

/* ---------- "Cue the story!": the short clapperboard moment when a door is chosen (site.js; skipped under reduced motion) ---------- */
.cue { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: none; }
.cueing .cue { display: block; }
.cue i { position: absolute; left: 0; right: 0; height: 50.5%; background: #02060F; transform: scaleY(0); }
.cue i:first-child { top: 0; transform-origin: top; }
.cue i:last-of-type { bottom: 0; transform-origin: bottom; }
.cueing .cue i { animation: cue-close 380ms cubic-bezier(.6, 0, .9, .6) 400ms forwards; }
.cue-soft .cue i { background: var(--navy); animation-duration: 520ms; animation-delay: 260ms; animation-timing-function: ease-in-out; }
@keyframes cue-close { to { transform: scaleY(1); } }
.cue-clap { position: absolute; left: 50%; top: 50%; z-index: 1; display: none; justify-items: center; gap: 12px; transform: translate(-50%, -50%); }
.cue-svg .cue-clap { display: grid; animation: cue-pop 300ms cubic-bezier(.2, .8, .2, 1.3) both; }
.cue-clap svg { width: 120px; height: auto; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.5)); }
.cue-clap .cue-stick { transform-box: view-box; transform-origin: 6px 30px; transform: rotate(-24deg); animation: cue-snap 160ms ease-in 260ms forwards; }
.cue-clap span { background: var(--white); color: var(--navy); font-family: var(--font-ui); font-weight: 700; padding: 8px 14px; border-radius: 14px; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35); }
@keyframes cue-pop { from { opacity: 0; transform: translate(-50%, -50%) scale(0.7); } }
@keyframes cue-snap { to { transform: rotate(0deg); } }

/* How long it takes (Jeff, 2026-10-24) */
.timing { width: 100%; max-width: 46rem; border-collapse: collapse; margin: 8px 0 0; font-family: var(--font-ui); }
.timing th, .timing td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.timing thead th { font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); font-weight: 500; }
.timing tbody th { font-weight: 500; color: var(--white); }
.timing tbody td { font-weight: 700; color: var(--amber); white-space: nowrap; }
.timing-note { max-width: 46rem; margin-top: 18px; color: #C9D1DC; font-size: 0.95rem; }
@media (max-width: 560px) { .timing tbody td { white-space: normal; } .timing th, .timing td { padding: 12px 6px; } }
.timing { max-width: 64rem; }
.timing tbody td { white-space: normal; }
.timing tbody td:last-child { font-weight: 400; color: #C9D1DC; font-size: 0.95rem; }
.timing-fast { max-width: 64rem; margin-top: 20px; font-family: var(--font-ui); color: var(--white); }
.timing-fast strong { color: var(--amber); }
.timing-note { max-width: 64rem; }
@media (max-width: 720px) {
  .timing thead { display: none; }
  .timing tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .timing th, .timing td { display: block; border: 0; padding: 2px 0; }
  .timing td[data-label]::before { content: attr(data-label) ": "; color: #C9D1DC; font-weight: 400; }
}
