/* 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(--blue-on-dark); }

.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: 10px; overflow: hidden; border-radius: inherit; opacity: var(--ui);
  font: 12px/1.3 -apple-system, BlinkMacSystemFont, system-ui, sans-serif; color: #fff;
  background: linear-gradient(180deg, #000a, transparent 28%, transparent 65%, #0009);
}
.phone svg {
  width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.ph-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 19px 0; height: 36px; font-weight: 650; }
.ph-top svg { width: 36px; height: 12px; }
.notch { position: absolute; left: 50%; translate: -50% 0; width: 33%; max-width: 110px; height: 24px; border-radius: 99px; background: #050706; }
.ph-toolbar { position: absolute; top: 50px; inset-inline: 14px; display: flex; justify-content: space-between; }
.ph-tool, .ph-confirm, .ph-shutter, .ph-marker { display: grid; place-items: center; border-radius: 50%; color: #fff; }
.ph-tool { width: 34px; height: 34px; background: #202726e6; border: 1px solid #ffffff36; }
.ph-dock { position: absolute; inset: auto 0 0; }
.ph-capture {
  position: absolute; left: 13px; right: 13px; bottom: calc(100% + 12px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  opacity: calc(1 - var(--lock, 0));
}
.ph-zoom { justify-self: start; display: flex; align-items: center; gap: 9px; padding: 5px 9px; border-radius: 99px; border: 1px solid #ffffff40; background: #202726ef; font-size: 11px; }
.ph-zoom b { font-weight: 650; white-space: nowrap; }
.ph-shutter { width: 44px; height: 44px; background: var(--blue); border: 3px solid #252e2c; outline: 1px solid #ffffffa3; }
.ph-shutter svg { width: 21px; height: 21px; }
.ph-results { background: #fafcf9; color: var(--text); border-radius: 24px 24px 0 0; padding: 8px 14px 12px; }
.ph-grabber { display: block; width: 32px; height: 3px; margin: 0 auto 9px; border-radius: 99px; background: #c9d1cb; }
.ph-summary { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ph-summary div { display: grid; gap: 2px; }
.ph-summary b { font-size: 13px; font-weight: 680; }
.ph-summary div > span { color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.ph-gaps { display: none; }
.phone.alert .ph-gaps { display: inline; }
.ph-confirm { flex: none; width: 30px; height: 30px; background: var(--blue); }
.ph-confirm svg { width: 15px; height: 15px; }
.ph-result-row { display: grid; grid-template-rows: calc(59px * var(--lock, 0)); overflow: hidden; }
.ph-alert {
  align-self: start; margin-top: 8px; padding: 7px; border-radius: 10px; border: 1px solid var(--error-border);
  background: var(--surface); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 7px; align-items: center;
  transform: translateY(calc((1 - var(--lock, 0)) * 30px)); opacity: var(--lock, 0);
}
.ph-label-icon { display: grid; place-items: center; width: 26px; height: 29px; border-radius: 6px; color: var(--muted); background: var(--page); }
.ph-label-icon svg { width: 15px; height: 15px; }
.ph-product, .ph-price { display: grid; gap: 2px; }
.ph-product b { font-size: 11px; font-weight: 600; }
.ph-product small { color: var(--muted); font-size: 9px; white-space: nowrap; }
.ph-price { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ph-price s { color: var(--error); font-size: 9px; text-decoration-thickness: 1px; }
.ph-price strong { font-size: 12px; font-weight: 600; }
.ph-price small { color: var(--error); font-size: 9px; }

.reticle { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(calc(1.08 - var(--lock, 0) * .08)); opacity: var(--ui); }
.reticle i { position: absolute; width: 26px; height: 26px; border: 1.25px solid #fffffff0; filter: drop-shadow(0 1px 3px #0009); }
.reticle i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 11px 0 0 0; }
.reticle i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 11px 0 0; }
.reticle i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 11px; }
.reticle i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 11px 0; }
.ph-marker { position: absolute; left: 50%; bottom: 5px; translate: -50% 50%; width: 20px; height: 20px; background: var(--blue); box-shadow: 0 2px 6px #0004; }
.ph-marker svg { width: 13px; height: 13px; stroke-width: 2.3; }
.ph-marker-alert, .phone.alert .ph-marker-check { display: none; }
.phone.alert .ph-marker { background: #d54040; }
.phone.alert .ph-marker-alert { display: block; }

/* 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(--text); white-space: nowrap; font-weight: 700; padding: 8px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(8px); box-shadow: 0 6px 24px #0009; }
.tag-green { color: var(--blue-ink); background: var(--blue-soft); border-color: #b8d7ff; }
.delta { translate: -50% -50%; white-space: nowrap; padding: 8px 14px; border-radius: 99px; background: var(--error-soft); border: 1px solid var(--error-border); color: var(--error); font-size: 12px; box-shadow: 0 0 20px #a8372d44; }
.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: var(--blue); border: 1px solid var(--surface); color: var(--surface); 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(--blue); box-shadow: 0 0 22px #0573fe80; }
.ring::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--blue); 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: #fffffff5; border: 1px solid var(--border); backdrop-filter: blur(10px); display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.proof-card small { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.proof-card b { color: var(--text); font-size: 16px; font-weight: 640; }
.proof-ok { color: var(--blue-ink); }

/* 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(--blue); }
.flow li:nth-child(3) .s, .flow li:nth-child(4) .s { color: var(--blue-on-dark); }
.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 { display: none; }
  .ph-toolbar { top: calc(60% - 112px); inset-inline: 7px; }
  .ph-tool { width: 31px; height: 31px; }
  .ph-dock { bottom: 55px; }
  .ph-results { border-radius: 20px; }
  .ph-shutter { width: 39px; height: 39px; }
  .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; }
  .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(--border); 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; }
