/* stage */
.film { height: 1150vh; position: relative; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#world { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scrim { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: var(--scrim, 0); background: linear-gradient(90deg, #0b0e0de6 0%, #0b0e0d99 28%, transparent 52%); }
.vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 50%, transparent 55%, #000a 100%); }
.grain { position: absolute; inset: -50%; pointer-events: none; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1s steps(4) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }

/* kinetic lines */
.m { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.l { display: inline-block; will-change: transform, opacity; }
.ch { position: absolute; z-index: 5; pointer-events: none; visibility: hidden; }

.ch-hero { left: 0; right: 0; top: 15vh; text-align: center; }
.ch-hero::before { content: ''; position: absolute; inset: -15vh -5vw -10vh; z-index: -1; background: radial-gradient(60% 70% at 50% 40%, #0b0e0df2 0%, #0b0e0dbb 45%, transparent 80%); }
.ch-hero .kicker { display: inline-block; }
.ch-hero h1 { margin: 0; font-size: clamp(46px, 5.6vw, 104px); font-weight: 460; letter-spacing: -.06em; line-height: .98; }
.hero-sub { margin: 26px 0 0; font-size: clamp(15px, 1.15vw, 19px); line-height: 1.5; letter-spacing: -.01em; color: #c9d1cb; font-weight: 500; }
.ch-crowd { left: 0; right: 0; bottom: 21vh; text-align: center; }
.ch-crowd::before { content: ''; position: absolute; inset: -12vh -10vw -30vh; z-index: -1; background: radial-gradient(50% 60% at 50% 60%, #0b0e0dd9, transparent); }
.ch-crowd p { margin: 0; font-size: clamp(28px, 3.4vw, 58px); letter-spacing: -.05em; line-height: 1.08; font-weight: 460; }
.dim { color: var(--amber); }

.ch-copy { left: var(--pad); top: 50%; transform: translateY(-50%); max-width: 36vw; }
.ch-copy .kicker { margin-bottom: 26px; }
.ch-copy h2 { margin: 22px 0 0; font-size: clamp(40px, 4.3vw, 78px); line-height: 1.0; letter-spacing: -.06em; font-weight: 460; }
.ch-copy p { margin: 28px 0 0; font-size: 14px; line-height: 1.7; color: var(--mute); }
.stats { margin-top: 30px; display: grid; gap: 4px; font-size: 13px; color: var(--mute); }
.stats b { color: var(--ink); font-weight: 650; }

/* phone viewfinder */
.phone { position: absolute; z-index: 4; left: 50%; top: 50%; transform: translate(-50%, -50%); visibility: hidden; pointer-events: none;
  box-shadow: 0 0 0 200vmax rgba(4, 6, 5, var(--dim, 0)), inset 0 0 0 calc(var(--ui) * 9px) #050706, inset 0 0 0 calc(var(--ui) * 10px) #2b322e; }
.phone-ui { position: absolute; inset: 0; padding: 22px 26px; opacity: var(--ui); display: flex; flex-direction: column; font-size: 11px; }
.ph-top { display: flex; justify-content: space-between; align-items: center; font-weight: 650; font-size: 12px; padding: 0 6px; }
.notch { width: 92px; height: 26px; border-radius: 20px; background: #050706; }
.ph-head { margin-top: 20px; display: flex; flex-direction: column; gap: 3px; text-shadow: 0 1px 12px #000; }
.ph-head b { font-size: 22px; letter-spacing: -.03em; font-weight: 640; }
.ph-head small { color: #c4cec7; font-size: 11px; }
.ph-pill { margin-top: 14px; align-self: flex-start; display: flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 99px; background: #0d1a14d9; border: 1px solid #1f4434; font-weight: 600; }
.ph-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: blink 1.2s infinite; }
.pill-gap { display: none; color: var(--amber); }
.phone.alert .pill-scan { display: none; }
.phone.alert .pill-gap { display: inline; }
.phone.alert .ph-pill { border-color: #6b4a1c; }
.phone.alert .ph-pill i { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
@keyframes blink { 50% { opacity: .35; } }
.ph-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.ph-stats { display: flex; gap: 10px; }
.ph-stats div { flex: 1; padding: 12px 14px; border-radius: 16px; background: #0c1310e0; border: 1px solid #ffffff12; display: flex; flex-direction: column; gap: 2px; }
.ph-stats b { font-size: 24px; font-weight: 650; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ph-stats span { color: var(--mute); font-size: 10px; }
.phone.alert .ph-stats div:last-child b { color: var(--amber); }
.ph-alert { padding: 13px 15px; border-radius: 16px; background: #1b140be8; border: 1px solid #6b4a1c; display: grid; gap: 3px; transform: translateY(calc((1 - var(--lock, 0)) * 30px)); opacity: var(--lock, 0); }
.ph-alert-tag { color: var(--amber); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ph-alert b { font-size: 15px; font-weight: 640; }
.ph-alert s { color: var(--mute); }
.ph-alert em { color: var(--green); font-style: normal; font-weight: 650; }

.reticle { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(calc(1.08 - var(--lock, 0) * .08)); opacity: var(--ui); --c: #ffffffd0; }
.phone.alert .reticle { --c: var(--amber); filter: drop-shadow(0 0 8px #f0a43a88); }
.reticle i { position: absolute; width: 22px; height: 22px; border: 2px solid var(--c); }
.reticle i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.reticle i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.reticle i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.reticle i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }

/* anchors */
.anchors { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.anchor { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform; }
.anchor > * { pointer-events: none; }
.tag { translate: -50% -100%; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); white-space: nowrap; font-weight: 700; padding: 8px 14px; border-radius: 99px; background: #0b0e0de6; border: 1px solid #ffffff26; backdrop-filter: blur(8px); box-shadow: 0 6px 24px #0009; }
.tag-green { color: var(--green); border-color: #16c78466; }
.delta { translate: -50% -50%; white-space: nowrap; padding: 8px 14px; border-radius: 99px; background: #241707; border: 1px solid var(--amber); color: var(--amber); font-size: 12px; box-shadow: 0 0 30px #f0a43a44; }
.delta b { font-weight: 750; margin-left: 4px; }
.ok { translate: -50% -50%; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #0d2219; border: 1px solid var(--green); color: var(--green); font-size: 12px; font-weight: 700; }
.proof { translate: -50% -50%; }
.ring { position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--green); box-shadow: 0 0 22px var(--green); }
.ring::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--green); animation: ping 1.8s infinite; }
@keyframes ping { to { transform: scale(2.6); opacity: 0; } }
.proof-card { position: absolute; left: 34px; top: -40px; width: 270px; padding: 15px 17px; border-radius: 16px; background: #0d1512e8; border: 1px solid #ffffff1c; backdrop-filter: blur(10px); display: grid; gap: 4px; font-size: 12px; color: var(--mute); }
.proof-card small { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.proof-card b { color: var(--ink); font-size: 16px; font-weight: 640; }
.proof-ok { color: var(--green); }

/* flow rail */
.flow { position: absolute; z-index: 8; left: 50%; bottom: 28px; transform: translateX(-50%); margin: 0; padding: 0; list-style: none; display: flex; gap: 22px; }
.flow li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 8px; row-gap: 7px; width: 150px; color: #8f9a93; transition: color .4s; font-size: 11px; --fill: 0; }
.flow .n { font-variant-numeric: tabular-nums; font-size: 10px; }
.flow .t { font-weight: 620; }
.flow .bar { grid-column: 1 / -1; height: 2px; background: #ffffff14; border-radius: 2px; overflow: hidden; }
.flow .bar i { display: block; height: 100%; width: calc(var(--fill) * 100%); background: var(--ink); }
.flow .s { grid-column: 1 / -1; font-size: 10px; opacity: 0; transform: translateY(-3px); transition: opacity .4s, transform .4s; }
.flow li.on, .flow li.done { color: var(--ink); }
.flow li.on .s, .flow li.done .s { opacity: 1; transform: none; }
.flow li:nth-child(2) .bar i { background: var(--amber); }
.flow li:nth-child(2) .s { color: var(--amber); }
.flow li:nth-child(3) .bar i, .flow li:nth-child(4) .bar i { background: var(--green); }
.flow li:nth-child(3) .s, .flow li:nth-child(4) .s { color: var(--green); }
.scroll-hint { position: absolute; z-index: 8; right: var(--pad); bottom: 34px; display: flex; align-items: center; gap: 10px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.scroll-hint span { width: 1px; height: 26px; background: linear-gradient(var(--ink), transparent); animation: drop 1.6s infinite; transform-origin: top; }
@keyframes drop { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 800px) {
  .ch-hero { top: 13vh; padding: 0 var(--pad); }
  .ch-hero h1 { font-size: 11vw; }
  .ch-copy { top: 92px; transform: none; max-width: 88vw; }
  .ch-copy .kicker { margin-bottom: 4px; }
  .ch-copy h2 { margin-top: 12px; }
  .ch-copy p { margin-top: 14px; }
  .stats { margin-top: 14px; font-size: 11px; }
  .scrim { background: linear-gradient(180deg, #0b0e0de6 0%, #0b0e0d99 34%, transparent 50%); }
  .ph-top, .ph-head, .ph-stats { display: none; }
  .ph-pill { position: absolute; left: 50%; top: calc(60% - 120px); transform: translateX(-50%); }
  .ph-bottom { margin-bottom: 70px; }
  .reticle { top: 60%; }
  .ch-copy h2 { font-size: 10vw; }
  .ch-copy p { font-size: 12px; }
  .ch-crowd { bottom: 26vh; padding: 0 var(--pad); }
  .flow { gap: 8px; left: var(--pad); right: var(--pad); transform: none; bottom: 20px; }
  .flow li { width: auto; flex: 1; font-size: 9px; }
  .flow .n { display: none; }
  .scroll-hint { display: none; }
  .phone-ui { padding: 16px 18px; }
  .proof-card { width: 220px; padding: 12px 14px; }
  .proof-card b { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* end of film page */
.film-end { margin-top: 140px; padding: 80px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; }
.film-end h2 { margin: 0; font-size: clamp(40px, 4.6vw, 80px); line-height: 1; letter-spacing: -.06em; font-weight: 460; }
.film-end div { display: flex; gap: 12px; }
