:root {
  --deep: #071b24;
  --ink: #08212b;
  --sea: #0e3a46;
  --paper: #f3efe7;
  --paper-2: rgb(243 239 231 / 78%);
  --paper-3: rgb(243 239 231 / 52%);
  --brass: #d4ba87;
  --brass-2: #e9d6ad;
  --line: rgb(212 186 135 / 18%);
  --line-2: rgb(243 239 231 / 14%);
  --teal: #6fe0cf;
  --rose: #ff92b4;
  --glass: rgb(7 27 36 / 58%);
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(20px, 5vw, 72px);
  --top-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--deep); color: var(--paper); scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.5 var(--font-body); background: var(--deep); overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; letter-spacing: -.02em; margin: 0; }
em { font-style: italic; color: var(--brass-2); }
::selection { background: rgb(212 186 135 / 35%); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 8px; background: var(--brass); color: var(--deep); font-weight: 600; }
.skip:focus { top: 12px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--font-body); letter-spacing: .01em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.btn--gold { background: linear-gradient(135deg, var(--brass-2), var(--brass) 55%, #b9975c); color: var(--deep); box-shadow: 0 10px 30px rgb(0 0 0 / 25%); }
.btn--gold:hover { background: linear-gradient(135deg, #f4e6c4, var(--brass-2) 55%, var(--brass)); box-shadow: 0 14px 36px rgb(0 0 0 / 32%); }
.btn--ghost { background: rgb(7 27 36 / 42%); border-color: rgb(243 239 231 / 26%); color: var(--paper); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: rgb(243 239 231 / 55%); }
.btn--xl { min-height: 60px; padding: 0 30px; font-size: 17px; }
.play-ico { width: 0; height: 0; margin-right: 2px; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
.btn--xl .play-ico { border-width: 7px 0 7px 12px; }
.kicker { margin: 0 0 14px; color: var(--brass); font: 700 11px/1 var(--font-mono); letter-spacing: .22em; text-transform: uppercase; }

.top {
  position: fixed; inset: 0 0 auto; z-index: 40; display: flex; align-items: center; gap: 24px; height: var(--top-h); padding: 0 var(--gutter);
  transition: background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.top.is-solid { background: rgb(7 27 36 / 72%); border-color: var(--line-2); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
.top__mark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.top__mark span { display: grid; font: 800 15px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; }
.top__mark small { margin-top: 4px; color: var(--brass); font: 600 9px/1 var(--font-mono); letter-spacing: .22em; }
.top__nav { display: flex; gap: 26px; margin-left: auto; }
.top__nav a { color: var(--paper-2); font: 500 14px/1 var(--font-body); text-decoration: none; letter-spacing: .02em; transition: color .2s; }
.top__nav a:hover { color: var(--paper); }
.top__cta { min-height: 42px; padding: 0 18px; font-size: 14px; }

.film { position: relative; height: calc(100svh * 10); }
.film__stage { position: sticky; top: 0; height: 100svh; height: 100dvh; overflow: hidden; background: var(--sea); contain: strict; }
.film__poster, .film__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.film__poster { transition: opacity .6s var(--ease); }
.film__poster.is-hidden { opacity: 0; }
.film__scrim, .film__grain { position: absolute; inset: 0; pointer-events: none; }
.film__scrim {
  background:
    radial-gradient(70% 80% at 16% 92%, rgb(7 27 36 / 86%), rgb(7 27 36 / 40%) 45%, transparent 72%),
    linear-gradient(180deg, rgb(7 27 36 / 58%), rgb(7 27 36 / 0%) 24%),
    linear-gradient(0deg, rgb(7 27 36 / 72%), rgb(7 27 36 / 0%) 42%);
}
.film__scrim--deep { opacity: 0; background: linear-gradient(90deg, rgb(7 27 36 / 78%), rgb(7 27 36 / 30%) 55%, transparent); transition: opacity .8s var(--ease); }
.film__stage[data-active="numbers"] .film__scrim--deep, .film__stage[data-active="coast"] .film__scrim--deep, .film__stage[data-active="hero"] .film__scrim--deep { opacity: 1; }
.film__stage[data-active="hero"] .film__scrim--deep { background: linear-gradient(90deg, rgb(7 27 36 / 42%), rgb(7 27 36 / 10%) 50%, transparent); }
.film__grain { opacity: .07; mix-blend-mode: overlay; background-image: url("../assets/film/grain.svg"); }

.film__copy { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.ch { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr auto; padding: calc(var(--top-h) + 36px) var(--gutter) 64px; opacity: 0; visibility: hidden; will-change: opacity, transform; }
.ch.is-active { visibility: visible; }
.ch a, .ch button { pointer-events: auto; }
.ch__kicker { margin: 0 0 18px; color: var(--brass); font: 700 11px/1 var(--font-mono); letter-spacing: .24em; text-transform: uppercase; }
.ch__title { max-width: 11ch; font-size: clamp(40px, 5.6vw, 92px); line-height: .96; text-wrap: balance; text-shadow: 0 2px 30px rgb(7 27 36 / 40%); }
.ch--hero .ch__title { font-size: clamp(46px, 6.6vw, 112px); }
.op { font-family: var(--font-body); font-weight: 600; }
.op--x { color: var(--teal); }
.op--d { color: var(--rose); }
.ch__foot { grid-row: 3; align-self: end; display: grid; gap: 20px; max-width: 520px; }
.ch__foot--hero { max-width: 660px; gap: 18px; }
.ch__body { margin: 0; color: var(--paper-2); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.5; text-wrap: pretty; }
.ch--hero .ch__body { color: var(--paper); font-size: clamp(17px, 1.35vw, 21px); max-width: 560px; }
.ch__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.ch__micro { margin: 0; color: var(--paper-3); font: 500 11px/1.5 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.ch__example { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--paper); font: 600 14px/1 var(--font-mono); letter-spacing: .02em; }
.ch__example span { color: var(--brass); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; }
.ch__example i { color: var(--paper-3); font-style: normal; }

.facts-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.facts-strip li { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.facts-strip b { color: var(--brass-2); font: 700 15px/1.1 var(--font-body); letter-spacing: .01em; }
.facts-strip span { color: var(--paper-3); font: 500 11px/1.35 var(--font-mono); letter-spacing: .03em; }

.balloons { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.balloons li { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; min-height: 44px; padding: 0 14px; border: 1px solid rgb(111 224 207 / 40%); border-radius: 999px; background: rgb(111 224 207 / 12%); color: var(--teal); font: 700 16px/1 var(--font-mono); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.balloons li.is-divide { border-color: rgb(255 146 180 / 45%); background: rgb(255 146 180 / 12%); color: var(--rose); }

.nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.nums div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nums dt { color: var(--paper-3); font: 600 10px/1 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; }
.nums dd { margin: 8px 0 0; font: 500 clamp(26px, 2.4vw, 34px)/1 var(--font-head); font-variant-numeric: tabular-nums; }
.nums dd.is-no { color: var(--rose); }

.film__hud { position: absolute; right: var(--gutter); bottom: 56px; z-index: 6; display: grid; gap: 6px; text-align: right; pointer-events: none; }
.hud__line { margin: 0; color: var(--paper-3); font: 500 11px/1.2 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; transition: color .3s; }
.hud__line span { color: var(--paper); }
.hud__line.is-key span { color: var(--brass); }
.hud__line.is-dim { color: rgb(243 239 231 / 34%); }
.hud__load { margin: 8px 0 0; color: rgb(243 239 231 / 40%); font: 500 10px/1 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; transition: opacity .6s; }
.hud__load.is-done { opacity: 0; }
.film__hud.is-flash .hud__line span { color: var(--brass-2); }

.film__rail { position: absolute; right: calc(var(--gutter) - 6px); top: 50%; z-index: 6; margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; transform: translateY(-50%); }
.film__rail button { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 4px 6px; border: 0; background: none; color: var(--paper-3); cursor: pointer; }
.film__rail span { width: 22px; height: 2px; background: currentColor; transition: width .3s var(--ease), background .3s; font-size: 0; }
.film__rail i { font: 500 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; font-style: normal; opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .25s var(--ease); }
.film__rail button:hover i, .film__rail button:focus-visible i, .film__rail li.is-on i { opacity: 1; transform: none; }
.film__rail li.is-on button { color: var(--brass); }
.film__rail li.is-on span { width: 36px; }

.film__cue { position: absolute; left: 50%; bottom: 22px; z-index: 7; display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 0 16px; min-height: 38px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--paper-2); font: 500 12px/1 var(--font-body); letter-spacing: .04em; transform: translateX(-50%); cursor: pointer; transition: opacity .5s var(--ease), border-color .3s, color .3s; }
.film__cue:hover { border-color: rgb(243 239 231 / 40%); color: var(--paper); }
.film__cue.is-off { opacity: 0; pointer-events: none; }
html.is-playing .film__cue { border-color: rgb(212 186 135 / 55%); color: var(--brass-2); }
.film__cue-play, .film__cue-pause { display: none; }
.film__cue-play { border-width: 5px 0 5px 9px; color: var(--brass); }
.film__cue-pause { width: 8px; height: 10px; border-left: 3px solid var(--brass); border-right: 3px solid var(--brass); }
html.is-midfilm:not(.is-playing) .film__cue-wheel { display: none; }
html.is-midfilm:not(.is-playing) .film__cue-play { display: block; }
html.is-playing .film__cue-wheel, html.is-playing .film__cue-play { display: none; }
html.is-playing .film__cue-pause { display: block; }
.film__cue-wheel { position: relative; width: 14px; height: 22px; border: 1.5px solid var(--paper-3); border-radius: 8px; }
.film__cue-wheel::after { content: ""; position: absolute; left: 50%; top: 4px; width: 2px; height: 5px; margin-left: -1px; border-radius: 2px; background: var(--brass); animation: cue 1.6s var(--ease) infinite; }
html.is-playing .film__cue-wheel::after { animation-duration: .8s; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(8px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
