/* Layers of the stage, back to front: films and plates, the line, the words. */
.film, .plate { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity; }
/* The first film stays whole in this box, so the words can sit exactly on it. */
.hero-box {
  --box-w: max(100vw, calc(var(--stage-h) * 16 / 9));
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--box-w);
  height: calc(var(--box-w) * 9 / 16);
  transform: translate(-50%, -50%);
  container-type: size;
  overflow: hidden;
  z-index: 1;
  -webkit-mask-image: linear-gradient(#000 88%, transparent);
  mask-image: linear-gradient(#000 88%, transparent);
  will-change: translate;
}
.hero-box.is-tall {
  --box-w: max(100vw, calc(var(--stage-h) * 9 / 16));
  left: calc(50vw - (var(--box-w) - 100vw) * .22);
  height: calc(var(--box-w) * 16 / 9);
}
.hero-film { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-globe {
  position: absolute;
  left: 0;
  top: 16%;
  width: 25%;
  height: 66%;
  opacity: 0;
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent), linear-gradient(transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, #000 88%, transparent), linear-gradient(transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.is-tall .hero-globe { top: 22%; width: 36%; height: 34%; }
.hero-scrim { position: absolute; inset: 0; background: #010824; opacity: 0; }
.wave-cover {
  position: absolute;
  left: 20%;
  top: 46%;
  width: 80%;
  height: 28%;
  background: #021133;
  opacity: 0;
  -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent);
}
.is-tall .wave-cover { left: -6%; top: 55%; width: 112%; height: 21%; background: #00175A; }
.hero-patch { position: absolute; filter: blur(.5cqw); }
.hero-patch--say { left: 27%; top: 26.5%; width: 31%; height: 16.5%; background: #021133; }
.hero-patch--ask { left: 32.4%; top: 17.2%; width: 11.6%; height: 4.6%; background: #021C5A; }
.hero-ask { position: absolute; left: 33%; top: 17.7%; color: #DCE8FF; font: 500 1.16cqw/1.4 Inter, sans-serif; white-space: nowrap; }
.hero-say { position: absolute; left: 28.4%; top: 28.2%; color: #fff; font: 600 3.25cqw/1.2 Inter, sans-serif; letter-spacing: -.02em; }
.hero-say em { color: #45B8EC; }
.is-tall .hero-patch--say { left: 36%; top: 29%; width: 58%; height: 16.5%; background: #02113E; }
.is-tall .hero-patch--ask { left: 17.8%; top: 15.2%; width: 30%; height: 3.2%; background: #031C66; }
.is-tall .hero-ask { left: 19.2%; top: 15.5%; font-size: 3.7cqw; }
.is-tall .hero-say { left: 38%; top: 30%; font-size: 6.9cqw; }
.film { transform-origin: 0 0; }
.film--globe {
  -webkit-mask-image: radial-gradient(circle closest-side at 50% 49%, #000 86%, transparent 100%);
  mask-image: radial-gradient(circle closest-side at 50% 49%, #000 86%, transparent 100%);
}
.plate { width: 100%; height: 100%; object-fit: cover; }
.plate--waves { object-position: 100% 100%; transform-origin: 100% 100%; }

.field, .pour, .line { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.line { z-index: 1; }
.has-field #plate-app, .has-field #plate-final { display: none; }

.top {
  position: absolute;
  z-index: 4;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(16px, 3.2vh, 30px) var(--gutter);
  opacity: 0;
  pointer-events: none;
}
.top img { width: auto; height: clamp(17px, 2.3vh, 24px); }
.dots { display: flex; gap: 9px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--electric); transition: background .3s, box-shadow .3s; }
.dots i.is-on { background: #fff; box-shadow: 0 0 10px #fff; }

.scene { position: absolute; z-index: 2; inset: 0; padding: 0 var(--gutter); opacity: 0; visibility: hidden; }

.index { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; color: var(--ink-soft); font: 500 15px/1 var(--mono); letter-spacing: .08em; }
.index::after { content: ""; width: 44px; height: 2px; background: linear-gradient(90deg, var(--cyan), transparent); }
.note { color: var(--ink-soft); }

/* Hero: only a hint to scroll; the film carries the rest. */
.hint { position: absolute; left: 50%; bottom: 22px; width: 1px; height: 46px; overflow: hidden; background: var(--hair); }
.hint i { display: block; width: 100%; height: 40%; background: var(--cyan); animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

/* 01: words in the sky over the floor of light. */
.opening { position: absolute; left: var(--gutter); right: var(--gutter); top: 15vh; text-align: center; }
.opening .index { justify-content: center; }
.opening .index::after { display: none; }
.opening h1 {
  font: 600 clamp(44px, 8.8vw, 164px)/1 Inter, sans-serif;
  letter-spacing: -.04em;
}
.opening h1 span, .opening h1 em { display: block; }
.lead { margin-top: 20px; font-size: clamp(19px, 2vw, 32px); font-weight: 600; letter-spacing: -.02em; }

.promise::before { content: ""; position: absolute; z-index: -1; inset: -40vh -100vw -40vh calc(var(--gutter) * -1); background: linear-gradient(90deg, rgba(1, 8, 36, .55), transparent 58%); }
.promise {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  font: 600 clamp(38px, 6.4vw, 118px)/1.04 Inter, sans-serif;
  letter-spacing: -.04em;
  text-shadow: 0 0 40px rgba(1, 8, 36, .85);
}
.promise li + li { margin-top: .12em; }
.promise span { color: var(--ink-dim); color: color-mix(in srgb, var(--ink) calc(var(--light, 0) * 100%), rgba(244, 248, 255, .16)); }

/* 02: the globe as the brain. */
.brain-head { position: absolute; left: var(--gutter); top: 15vh; width: min(42vw, 640px); }
.brain-head h2, .brand-copy h2 { margin-bottom: 14px; font: 600 clamp(34px, 4.7vw, 84px)/1.02 Inter, sans-serif; letter-spacing: -.04em; }
.halo { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.node {
  position: absolute;
  display: grid;
  place-items: center;
  width: clamp(46px, 5.6vw, 76px);
  aspect-ratio: 1;
  margin: calc(clamp(46px, 5.6vw, 76px) / -2);
  border: 1px solid var(--hair);
  border-radius: 50%;
  background: var(--glass);
  box-shadow: 0 0 26px rgba(31, 107, 255, .55), inset 0 0 16px rgba(39, 215, 245, .18);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.node svg { width: 48%; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.cards { position: absolute; left: var(--gutter); bottom: 12vh; display: flex; flex-direction: column; gap: 12px; width: min(30vw, 420px); }
.cards li {
  padding: clamp(14px, 1.5vw, 22px) clamp(18px, 1.8vw, 26px);
  border: 1px solid var(--hair);
  border-radius: 18px;
  background: var(--glass);
  box-shadow: inset 0 1px 0 rgba(160, 220, 255, .25), 0 12px 40px rgba(1, 8, 36, .5);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-weight: 600;
  font-size: clamp(16px, 1.35vw, 22px);
  letter-spacing: -.015em;
  border-color: color-mix(in srgb, var(--cyan) calc(var(--on, 0) * 100%), var(--hair));
  box-shadow: inset 0 1px 0 rgba(160, 220, 255, .25), 0 12px 40px rgba(1, 8, 36, .5), 0 0 calc(var(--on, 0) * 34px) rgba(39, 215, 245, .55);
}

/* 03: value and the glass slab. */
#brand { background: linear-gradient(90deg, rgba(1, 8, 36, .9), rgba(1, 8, 36, .62) 46%, transparent 72%); }
.brand-copy { position: absolute; left: var(--gutter); top: 50%; width: min(52vw, 780px); transform: translateY(-50%); }
.value { display: flex; flex-wrap: wrap; align-items: baseline; margin-top: clamp(14px, 2.4vh, 26px); font: 600 clamp(58px, 9vw, 164px)/.95 Inter, sans-serif; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.value b { font-weight: 600; }
.value span { flex-basis: 100%; color: var(--cyan); font-size: .34em; letter-spacing: -.02em; text-transform: uppercase; line-height: 1.2; }
.tag { margin: 12px 0 8px; padding-left: 12px; border-left: 3px solid var(--cyan); font-weight: 600; }
.note--small { max-width: 34em; font-size: .92em; }

.slab { position: absolute; right: calc(var(--gutter) * 1.2); top: 50%; width: min(29vw, 460px); aspect-ratio: .78; margin-top: calc(min(29vw, 460px) / -1.56); perspective: 1100px; }
.slab div {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 1.5px solid rgba(120, 225, 255, .75);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(90, 170, 255, .28), rgba(4, 20, 80, .22) 46%, rgba(39, 215, 245, .18));
  box-shadow: 0 0 60px rgba(31, 107, 255, .7), inset 0 0 44px rgba(120, 200, 255, .26), 26px 26px 0 -2px rgba(31, 107, 255, .16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transform: rotateY(var(--turn-y, -20deg)) rotateX(var(--turn-x, 6deg));
}
.slab img { width: 74%; height: auto; transform: rotate(var(--logo-turn, -9deg)); filter: drop-shadow(0 0 16px rgba(39, 215, 245, .5)); }

.gauge { position: absolute; right: calc(var(--gutter) * 1.2 + min(29vw, 460px) / 2 - min(30vw, 62vh)); top: calc(50% - min(30vw, 62vh)); width: min(60vw, 124vh); height: min(60vw, 124vh); opacity: 0; pointer-events: none; }
.gauge circle { fill: none; }
.gauge__ticks { stroke: rgba(120, 200, 255, .5); stroke-width: 2.4; stroke-dasharray: .06 .94; }
.gauge__rest { stroke: rgba(120, 200, 255, .16); stroke-width: .6; }
.gauge__sweep { stroke: var(--cyan); stroke-width: .9; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 2px var(--cyan)); }

/* Closing. */
.end-mark {
  position: absolute;
  left: 50%;
  bottom: -3.4vw;
  margin-left: -60vw;
  width: 120vw;
  font: 600 15.4vw/1 Inter, sans-serif;
  letter-spacing: -.05em;
  text-align: center;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(#000 38%, transparent 96%);
  mask-image: linear-gradient(#000 38%, transparent 96%);
}
.closing {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: 30%;
  text-align: center;
  font: 600 clamp(38px, 6.2vw, 116px)/1.04 Inter, sans-serif;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.closing span { color: color-mix(in srgb, var(--ink) calc(var(--light, 0) * 100%), rgba(244, 248, 255, .16)); }
.closing em span { color: color-mix(in srgb, var(--cyan) calc(var(--light, 0) * 100%), rgba(244, 248, 255, .16)); }

@media (orientation: portrait), (max-width: 820px) {
  .opening { top: 13vh; }
  .opening h1 { font-size: 14.6vw; }
  .promise { font-size: 12.4vw; }
  .brain-head { top: 11vh; right: var(--gutter); width: auto; }
  .brain-head h2 { margin-bottom: 8px; font-size: 9.6vw; }
  .brain-head .note { font-size: 14px; line-height: 1.4; }
  .cards { right: var(--gutter); bottom: 5vh; flex-direction: row; gap: 8px; width: auto; }
  .cards li { flex: 1; display: grid; place-items: center; min-height: 74px; padding: 8px 6px; border-radius: 14px; font-size: 13px; line-height: 1.2; text-align: center; }
  .brand-copy { top: 11vh; right: var(--gutter); width: auto; transform: none; }
  .brand-copy h2 { font-size: 9.2vw; margin-bottom: 8px; }
  .brand-copy .note { font-size: 14px; line-height: 1.4; }
  .value { font-size: 17vw; }
  .slab { right: 8vw; top: auto; bottom: 4vh; width: 36vw; margin-top: 0; }
  .gauge { right: -22vw; top: auto; bottom: -14vh; width: 100vw; height: 100vw; }
  #brand { background: linear-gradient(rgba(1, 8, 36, .88), rgba(1, 8, 36, .7) 62%, transparent 86%); }
  .closing { top: 22%; font-size: 12.6vw; }
  .end-mark { bottom: 3vh; margin-left: -60vw; font-size: 15.4vw; }
}

/* Plain reading mode: no motion, every scene in the normal flow. */
.is-plain .stage { position: static; height: auto; overflow: visible; background: linear-gradient(var(--night), #03175F); }
.is-plain .gauge, .is-plain .scroller, .is-plain .hero-box, .is-plain .film, .is-plain .plate, .is-plain .line, .is-plain .pour, .is-plain .field, .is-plain #hero, .is-plain .ghost, .is-plain .halo { display: none; }
.is-plain .top { position: static; opacity: 1; }
.is-plain .scene { position: static; opacity: 1; visibility: visible; padding: 8vh var(--gutter); }
.is-plain .scene > *, .is-plain .opening, .is-plain .promise, .is-plain .brain-head, .is-plain .cards, .is-plain .brand-copy, .is-plain .closing, .is-plain .slab { position: static; width: auto; margin-top: 18px; transform: none; opacity: 1; }

.is-plain .end-mark { display: none; }
.is-plain .slab { width: min(70vw, 320px); }
.is-plain .promise span, .is-plain .closing span { color: inherit; }
.is-plain .reel { flex-wrap: wrap; justify-content: center; transform: none; }
.is-plain .captions { position: static; }
.is-plain .caption { position: static; opacity: 1; }
