/* Same tokens as the desktop app (src/renderer/styles.css), so the site and
 * the product it is selling look like one thing.
 */
@font-face { font-family: Geist; src: url("./assets/fonts/geist-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("./assets/fonts/geist-mono-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

@font-face { font-family: "Space Grotesk"; src: url("./assets/fonts/space-grotesk-variable.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }

:root {
  color-scheme: dark;
  --bg-primary: #090A0C;
  --bg-secondary: #101216;
  --bg-elevated: #16191F;
  --bg-muted: #1D2128;
  --text-primary: #F4F6F8;
  --text-secondary: #A0A7B2;
  --text-muted: #686F7B;
  --border-default: #252A32;
  --border-subtle: #1B1F26;
  --accent: #9FF56A;
  --accent-hover: #B2FF82;
  --accent-muted: rgba(159,245,106,.12);
  --radius-md: 9px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-elevated: 0 8px 32px rgba(0,0,0,.35), 0 1px 0 rgba(255,255,255,.03) inset;
  --sans: Geist, -apple-system, BlinkMacSystemFont, sans-serif;
  --button-radius: 14px;
  --button-font-size: 16px;
  --button-height: 50px;
  --button-padding: 22px;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
.column { width: min(920px, calc(100% - 48px)); margin: 0 auto; }

/* --- intro --------------------------------------------------------------- */

.intro {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  background: #000; opacity: 1; transition: opacity 500ms ease;
}
.intro.is-done { opacity: 0; pointer-events: none; }
.intro-brand { display: flex; align-items: center; }
.intro-hourglass { width: 64px; height: 64px; overflow: visible; flex: none; }
.intro-text-mask { overflow: hidden; margin-left: 16px; }
.intro-wordmark { opacity: 0; }
.intro .brand-wordmark { display: inline-flex; font-size: 32px; }

/* --- hero -------------------------------------------------------------- */

.hero { position: absolute; inset: 0; z-index: 4; padding: 0 5.5%; pointer-events: none; }
.hero a { pointer-events: auto; }
.hero-nav { position: relative; height: 104px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; }
.hero-nav::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, #ffffff05, #ffffff15 35%, #ffffff15 65%, #ffffff05); }
.brand { display: inline-flex; justify-self: start; align-items: center; gap: 13px; color: #f3f6f2; text-decoration: none; }
.brand img { width: 34px; height: 34px; transition: filter 180ms ease; }
.brand-wordmark { color: #f3f6f2; display: inline-flex; gap: .24em; font-family: "Space Grotesk", var(--sans); font-size: 25px; font-weight: 650; letter-spacing: -.055em; line-height: 1.1; white-space: nowrap; }
h1, h2 { font-family: "Space Grotesk", var(--sans); font-weight: 650; color: #f3f6f2; }
.title-light { font-weight: 450; color: #bac2bc; }
.brand-hours { font-weight: 450; color: #bac2bc; }
.brand:hover img { filter: drop-shadow(0 0 8px #9ff56a44); }
.hero-nav nav { display: flex; justify-content: center; align-items: center; gap: 8px; }
.hero-nav nav a { position: relative; padding: 10px 15px; border-radius: 9px; color: #9da69f; font-size: 13px; font-weight: 500; white-space: nowrap; text-decoration: none; transition: color 180ms, background 180ms; }
.hero-nav nav a::after { content: ""; position: absolute; height: 2px; bottom: 4px; left: 15px; right: 15px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform 180ms ease; }
.hero-nav nav a:hover, .hero-nav nav a:focus-visible { color: #f3f6f2; background: #ffffff05; }
.hero-nav nav a:hover::after, .hero-nav nav a:focus-visible::after { transform: scaleX(1); }
.nav-action { position: relative; justify-self: end; }
.nav-action::before { content: ""; position: absolute; top: -7px; bottom: -7px; left: -28px; width: 1px; background: linear-gradient(transparent, #aab4ad38 20%, #aab4ad38 80%, transparent); }
@media (prefers-reduced-motion: reduce) { .hero-nav a, .hero-nav a::after, .brand img { transition: none; } }
.hero-copy { position: absolute; top: 50%; transform: translateY(-50%); width: 45%; max-width: 700px; text-align: center; }
.hero-copy h1 { font-size: clamp(42px, 4.5vw, 86px); line-height: 1.07; font-weight: 650; letter-spacing: -.052em; margin: 0 0 28px; text-wrap: balance; }
.hero-actions { display: flex; justify-content: center; align-items: center; gap: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--button-height); padding: 0 var(--button-padding); border: 1px solid #c7ffad66; border-radius: var(--button-radius); background: linear-gradient(180deg, #b5fc88, #9ff56a); color: #101708; font-family: var(--sans); font-size: var(--button-font-size); font-weight: 600; line-height: 1.2; letter-spacing: -.025em; white-space: nowrap; text-decoration: none; cursor: pointer; box-shadow: 0 1px 0 #ffffff40 inset, 0 0 24px #9ff56a1c, 0 6px 18px #0003; transition: filter 160ms, box-shadow 160ms; }
.button:hover { filter: brightness(1.06); box-shadow: 0 1px 0 #ffffff40 inset, 0 0 30px #9ff56a30, 0 6px 18px #0003; }
.button:active { filter: brightness(.96); }
.button .button-icon { width: 22px; height: 22px; flex: none; }
.nav-download { --button-height: 40px; --button-font-size: 14px; --button-padding: 16px; --button-radius: 11px; gap: 8px; }
.nav-download .button-icon { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) { .button { transition: none; } }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.hero-meta { margin: 14px 0 0; color: #767e7c; font-size: 12px; letter-spacing: .035em; }
.hero-meta span { margin: 0 10px; }
.hero-atmosphere { position: absolute; inset: 0; overflow: hidden; background: #08090b; }
.atmosphere-glow { position: absolute; width: 75%; height: 110%; right: -7%; top: -3%; background: radial-gradient(ellipse, #c0c7ce1c, #8c949c0d 35%, transparent 70%); filter: blur(50px); }

/* --- 3D zone --------------------------------------------------------------
 * A scroll track with a pinned viewport. Scroll position directly controls
 * the entire scene, including partially open lids and camera transitions.
 */

.scene-zone { height: 850vh; position: relative; --hero-opacity: 1; }
.demo-anchor { position: absolute; top: 200vh; pointer-events: none; }
.scene-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.scene-canvas, .scene-css3d { position: absolute; inset: 0; }
.scene-canvas { opacity: 0; transition: opacity 600ms; z-index: 1; }
.scene-canvas.is-ready { opacity: 1; }
.scene-canvas canvas { display: block; width: 100%; height: 100%; }
/* Layered above the WebGL canvas rather than "hole-punched" through it:
 * Chromium would not composite the transparent gap in the canvas over this
 * layer despite correct z-index and confirmed zero alpha there (tested
 * extensively — DOM order, overflow, isolation, layer promotion all made no
 * difference), a known-hard class of WebGL+CSS3D interop bug. Sitting on top
 * is a non-issue here since the real app is only ever shown at front-facing
 * camera poses (never at the oblique angles where the bezel would need to
 * occlude it), and it's hidden entirely below the "mostly open" hinge
 * threshold in scene.js.
 */
.scene-css3d { z-index: 2; overflow: hidden; pointer-events: none; }

.scene-sticky::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; z-index: 3;
  background: linear-gradient(to top, var(--bg-primary) 0%, transparent 100%);
  pointer-events: none;
}
.scene-caption {
  position: absolute; left: 69%; top: 50%; z-index: 4; width: 26%; max-width: 410px;
  color: var(--text-primary); pointer-events: none;
  opacity: 0; transform: translateY(calc(-50% + 8px)); transition: opacity 300ms, transform 300ms;
}
.scene-caption.is-visible { opacity: 1; transform: translateY(-50%); }
.scene-step { color: var(--accent); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; margin: 0 0 24px; }
.scene-caption h2 { font-size: clamp(26px, 2.7vw, 44px); letter-spacing: -.045em; line-height: 1.12; margin: 0 0 24px; }
.scene-description { font-size: clamp(15px, 1.15vw, 18px); line-height: 1.6; color: #d1d6d1; margin: 0 0 16px; }
.scene-detail { font-size: 14px; line-height: 1.7; color: #89928d; margin: 0; }
.scene-progress { display: flex; gap: 7px; height: 4px; margin-top: 30px; }
.scene-progress-island { flex: 1; height: 100%; border-radius: 999px; background: #ffffff14; transition: background-color 240ms ease, transform 240ms ease; }
.scene-progress-island.is-current { background: var(--accent); transform: scaleY(1.25); }
@media (prefers-reduced-motion: reduce) { .scene-progress-island { transition: none; } }
@media (max-width: 900px) {
  .scene-caption { left: 7%; top: auto; bottom: 5%; width: 86%; max-width: none; transform: translateY(8px); }
  .scene-caption.is-visible { transform: translateY(0); }
  .scene-step { margin-bottom: 12px; font-size: 10px; }
  .scene-caption h2 { font-size: clamp(23px, 4vw, 32px); margin-bottom: 12px; }
  .scene-caption h2 br { display: none; }
  .scene-caption h2 .title-light::before { content: " "; }
  .scene-description { font-size: 14px; margin-bottom: 8px; line-height: 1.5; }
  .scene-detail { font-size: 12px; line-height: 1.5; }
  .scene-progress { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) { .scene-caption { transition: none; } }

/* Scroll-controlled pages beyond the laptop. */
.story-anchor { position: absolute; pointer-events: none; }
.story-pages { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.story-page { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 7vh 8vw; opacity: 0; visibility: hidden; transform-origin: center; will-change: transform, opacity; }
.story-label { color: var(--accent); font: 11px var(--mono); letter-spacing: .12em; margin: 0 0 28px; }
.story-page h2 { font-size: clamp(36px, 5.2vw, 84px); line-height: 1.08; letter-spacing: -.055em; margin: 0 0 28px; }
.story-copy { max-width: 660px; font-size: clamp(15px, 1.3vw, 19px); line-height: 1.7; color: #929c96; margin: 0; }
.story-orbit { position: relative; margin-top: 42px; width: 220px; height: 120px; }
.story-orbit span { position: absolute; inset: 0; border: 1px solid #9ff56a28; border-radius: 50%; transform: rotate(-22deg); }
.story-orbit span:nth-child(2) { transform: rotate(22deg); }
.story-orbit span:nth-child(3) { inset: 20px 45px; transform: rotate(90deg); }
.story-orbit i { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 60px 20px #9ff56a18; }
.story-page-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 7vw; text-align: left; }
.story-preview { width: 100%; padding: 32px; background: linear-gradient(140deg, #151b18, #0b0d0c); border: 1px solid #ffffff15; border-radius: 20px; box-shadow: 0 40px 100px #0008; transform: perspective(1000px) rotateY(-10deg) rotateX(4deg); }
.preview-top { display: flex; gap: 6px; padding-bottom: 36px; }
.preview-top i { width: 6px; height: 6px; border-radius: 50%; background: #ffffff30; }
.preview-line { height: 8px; border-radius: 8px; width: 80%; margin: 14px 0; background: #ffffff10; }
.preview-line.short { width: 48%; }
.preview-tiles { display: flex; gap: 12px; margin: 32px 0; }
.preview-tiles span { height: 110px; flex: 1; border: 1px solid #ffffff0d; border-radius: 10px; background: #ffffff04; }
.preview-tiles span:first-child { background: #9ff56a0d; border-color: #9ff56a30; }
.story-end-mark { display: flex; gap: 10px; margin-top: 48px; }
.story-end-mark span { height: 3px; width: 40px; background: #9ff56a33; }
.story-end-mark span:last-child { background: var(--accent); }
@media (max-width: 700px) {
  .story-page { padding: 6vh 7vw; }
  .story-label { margin-bottom: 20px; font-size: 10px; }
  .story-page h2 { font-size: clamp(32px, 8vw, 48px); margin-bottom: 20px; }
  .story-page-grid { display: flex; gap: 34px; text-align: center; }
  .story-preview { max-width: 380px; padding: 22px; }
  .preview-top { padding-bottom: 12px; }
  .preview-tiles { margin: 20px 0; }
  .preview-tiles span { height: 65px; }
  .story-orbit { margin-top: 28px; }
}
@media (max-height: 600px) {
  .story-orbit { height: 70px; margin-top: 20px; }
  .story-page h2 { font-size: 36px; }
  .story-copy { font-size: 14px; }
}

@media (max-width: 1000px) {
  .hero { padding: 0 5%; }
  .hero-nav { height: 88px; }
  .hero-nav { gap: 12px; }
  .brand .brand-wordmark { font-size: 21px; }
  .hero-nav nav { gap: 2px; }
  .hero-nav nav a { padding-inline: 11px; }
  .hero-copy { width: 47%; }
  .hero-copy h1 { font-size: 43px; }
}
@media (max-width: 700px) {
  .atmosphere-glow { width: 150%; height: 75%; right: -30%; top: 30%; }
  .hero-nav { height: 112px; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 68px 44px; gap: 0 12px; }
  .brand { gap: 10px; }
  .brand img { width: 28px; height: 28px; }
  .brand .brand-wordmark { font-size: 20px; }
  .nav-action { grid-column: 2; grid-row: 1; }
  .hero-nav nav { grid-column: 1 / -1; grid-row: 2; gap: 15px; }
  .hero-nav nav a { padding: 10px 13px; font-size: 12px; }
  .hero-copy { top: 140px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 480px; }
  .hero-copy h1 { font-size: clamp(34px, 8.8vw, 46px); margin-bottom: 16px; }
  .hero-actions { gap: 18px; }
  :root { --button-font-size: 14px; --button-padding: 16px; --button-height: 48px; }
  .hero-meta { font-size: 10px; margin-top: 10px; }
}
@media (max-height: 650px) and (min-width: 701px) {
  .hero-nav { height: 72px; }
  .hero-copy h1 { font-size: 40px; margin-bottom: 16px; }
}

@media (max-width: 420px) {
  .brand .brand-wordmark { flex-direction: column; gap: 0; font-size: 18px; line-height: 1.04; letter-spacing: -.04em; }
  .brand img { width: 30px; height: 30px; }

}

@media (min-width: 701px) and (max-width: 900px) {
  .hero-nav { height: 116px; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 72px 44px; gap: 0 12px; }
  .nav-action { grid-column: 2; grid-row: 1; }
  .hero-nav nav { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 900px) { .nav-action::before { display: none; } }
@media (max-width: 360px) { :root { --button-padding: 12px; } .brand { gap: 8px; } .brand img { width: 26px; height: 26px; } }

.story-copy p { margin: 0; }
.story-copy p + p { margin-top: 18px; }
.story-copy strong { color: #d6ddd7; font-weight: 600; }
.story-page-grid .story-copy { max-width: 560px; }
@media (max-width: 700px) {
  .story-page-grid .story-preview { display: none; }
  .story-copy { font-size: 14px; line-height: 1.6; }
}
@media (max-height: 700px) {
  .story-orbit, .story-end-mark { display: none; }
  .story-page { padding-block: 24px; }
  .story-page h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 18px; }
  .story-label { margin-bottom: 16px; }
  .story-copy { font-size: 14px; line-height: 1.5; }
  .story-copy p + p { margin-top: 12px; }
}

/* First story page: editorial copy above a three-part benefit row. */
.story-why { align-items: flex-start; text-align: left; padding: 6vh 6vw; }
.story-why .story-label { margin-bottom: 4vh; }
.story-why h2 { font-size: clamp(42px, 6.3vw, 104px); margin-bottom: 3vh; }
.story-why .story-copy { max-width: 920px; font-size: clamp(15px, 1.4vw, 21px); line-height: 1.6; color: #b9c0bc; }
.story-why .story-copy p + p { margin-top: 2.5vh; }
.story-page-index { position: absolute; right: 6vw; top: 6vh; display: flex; align-items: center; gap: 24px; color: #626b65; font: 12px var(--mono); }
.story-page-index span:first-child { color: var(--accent); }
.story-page-index i { width: 40px; height: 1px; background: #9ff56a66; }
.why-benefits { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; margin-top: 6vh; }
.why-benefits article { padding: 0 4vw; border-left: 1px solid #9ff56a18; }
.why-benefits article:first-child { padding-left: 0; border-left: 0; }
.why-benefits article:last-child { padding-right: 0; }
.why-benefits .benefit-icon { width: 38px; height: 38px; color: var(--accent); margin-bottom: 18px; }
.why-benefits h3 { font: 650 clamp(18px, 1.7vw, 26px)/1.2 "Space Grotesk", var(--sans); letter-spacing: -.035em; margin: 0 0 16px; }
.why-benefits p { max-width: 330px; color: #89928d; font-size: clamp(13px, 1.25vw, 18px); line-height: 1.6; margin: 0; }
@media (max-width: 700px) {
  .story-why { padding: 24px 7vw; }
  .story-why .story-label { font-size: 9px; margin-bottom: 18px; }
  .story-page-index { top: 26px; right: 7vw; gap: 10px; font-size: 9px; }
  .story-page-index i { width: 18px; }
  .story-why h2 { font-size: clamp(32px, 8vw, 48px); margin-bottom: 18px; }
  .story-why .story-copy { font-size: 13px; line-height: 1.5; }
  .story-why .story-copy p + p { margin-top: 12px; }
  .why-benefits { grid-template-columns: 1fr; margin-top: 22px; gap: 14px; }
  .why-benefits article, .why-benefits article:first-child, .why-benefits article:last-child { position: relative; padding: 0 0 0 38px; border: 0; }
  .why-benefits .benefit-icon { position: absolute; left: 0; top: 0; width: 25px; height: 25px; margin: 0; }
  .why-benefits h3 { font-size: 16px; margin-bottom: 4px; }
  .why-benefits p { max-width: none; font-size: 12px; line-height: 1.4; }
}
@media (max-height: 700px) and (min-width: 701px) {
  .story-why h2 { font-size: 48px; }
  .story-why .story-copy { font-size: 15px; }
  .story-why .story-label { margin-bottom: 18px; }
  .why-benefits { margin-top: 24px; }
  .why-benefits .benefit-icon { width: 28px; height: 28px; margin-bottom: 10px; }
  .why-benefits h3 { margin-bottom: 8px; }
}
@media (max-height: 650px) and (max-width: 700px) {
  .story-why { padding-block: 16px; }
  .story-why .story-label { margin-bottom: 12px; }
  .story-page-index { display: none; }
  .story-why h2 { font-size: 28px; margin-bottom: 12px; }
  .story-why .story-copy { font-size: 12px; line-height: 1.4; }
  .why-benefits { margin-top: 16px; gap: 10px; }
  .why-benefits h3 { font-size: 15px; }
  .why-benefits p { font-size: 11px; }
}

.story-why-header { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 16px; margin-bottom: 4vh; }
.story-why-header .story-label { margin: 0; }
.story-why-header .story-page-index { position: static; flex: none; }
@media (max-width: 700px) { .story-why-header { margin-bottom: 18px; } }
@media (max-height: 650px) { .story-why-header { margin-bottom: 12px; } }

.benefit-icon { display: block; background: var(--accent); mask: var(--benefit-icon) center / contain no-repeat; -webkit-mask: var(--benefit-icon) center / contain no-repeat; }
.benefit-icon-handshake { --benefit-icon: url("./assets/icons/lucide/handshake.svg"); }
.benefit-icon-shield { --benefit-icon: url("./assets/icons/lucide/shield.svg"); }
.benefit-icon-clock { --benefit-icon: url("./assets/icons/lucide/clock.svg"); }

/* Privacy: three plain principles, without decorative headers or footers. */
.story-privacy { grid-template-columns: 1fr 1fr; gap: 6vw; padding-inline: 6vw; }
.story-privacy h2 { font-size: clamp(44px, 6.3vw, 104px); }
.privacy-principles { display: grid; gap: 18px; width: 100%; }
.privacy-principle { display: flex; align-items: center; gap: 24px; padding: 32px; border: 1px solid #ffffff12; border-radius: 18px; background: linear-gradient(135deg, #ffffff03, #ffffff01); }
.privacy-icon { flex: none; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 15px; background: #9ff56a08; }
.privacy-icon .benefit-icon { width: 34px; height: 34px; }
.privacy-principle h3 { margin: 0 0 10px; font: 650 clamp(18px, 1.7vw, 26px)/1.2 "Space Grotesk", var(--sans); letter-spacing: -.035em; }
.privacy-principle p { margin: 0; color: #89928d; font-size: clamp(14px, 1.2vw, 18px); line-height: 1.55; }
.benefit-icon-laptop { --benefit-icon: url("./assets/icons/lucide/laptop.svg"); }
.benefit-icon-server-off { --benefit-icon: url("./assets/icons/lucide/server-off.svg"); }
.benefit-icon-file-check { --benefit-icon: url("./assets/icons/lucide/file-check.svg"); }
@media (max-width: 1000px) {
  .privacy-principle { padding: 22px; gap: 16px; }
  .privacy-icon { width: 48px; height: 48px; border-radius: 11px; }
  .privacy-icon .benefit-icon { width: 28px; height: 28px; }
}
@media (max-width: 700px) {
  .story-privacy { text-align: left; padding: 24px 7vw; gap: 24px; }
  .story-privacy h2 { font-size: 36px; margin-bottom: 18px; }
  .story-privacy .story-label { margin-bottom: 16px; }
  .story-privacy .story-copy { font-size: 13px; line-height: 1.5; }
  .privacy-principles { gap: 10px; }
  .privacy-principle { padding: 14px; gap: 14px; border-radius: 12px; }
  .privacy-principle h3 { font-size: 17px; margin-bottom: 5px; }
  .privacy-principle p { font-size: 12px; line-height: 1.4; }
}
@media (max-width: 700px) and (max-height: 700px) {
  .story-privacy { padding-block: 16px; gap: 14px; }
  .story-privacy h2 { font-size: 28px; margin-bottom: 12px; }
  .story-privacy h2 br { display: none; }
  .story-privacy h2 .title-light::before { content: " "; }
  .story-privacy .story-label { margin-bottom: 12px; }
  .story-privacy .story-copy { font-size: 12px; line-height: 1.4; }
  .story-privacy .story-copy p + p { margin-top: 8px; }
  .privacy-principle { padding: 10px 12px; gap: 10px; }
  .privacy-principle h3 { font-size: 15px; }
  .privacy-principle p { font-size: 11px; }
  .privacy-icon { width: 34px; height: 34px; }
  .privacy-icon .benefit-icon { width: 23px; height: 23px; }
}

/* Quiet architectural frame shared by the three story pages. */
.story-page { --frame-x: 3vw; --frame-y: 4vh; isolation: isolate; }
.story-page::before, .story-page::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.story-page::before {
  background:
    linear-gradient(#ffffff07, #ffffff07) var(--frame-x) 0 / 1px 100% no-repeat,
    linear-gradient(#ffffff07, #ffffff07) calc(100% - var(--frame-x)) 0 / 1px 100% no-repeat,
    linear-gradient(#ffffff07, #ffffff07) 0 var(--frame-y) / 100% 1px no-repeat,
    linear-gradient(#ffffff07, #ffffff07) 0 calc(100% - var(--frame-y)) / 100% 1px no-repeat;
}
.story-page::after {
  background:
    linear-gradient(#ffffff13, #ffffff13) calc(var(--frame-x) - 16px) var(--frame-y) / 33px 1px no-repeat,
    linear-gradient(#ffffff13, #ffffff13) var(--frame-x) calc(var(--frame-y) - 16px) / 1px 33px no-repeat,
    linear-gradient(#ffffff13, #ffffff13) calc(100% - var(--frame-x) + 16px) var(--frame-y) / 33px 1px no-repeat,
    linear-gradient(#ffffff13, #ffffff13) calc(100% - var(--frame-x)) calc(var(--frame-y) - 16px) / 1px 33px no-repeat,
    linear-gradient(#ffffff13, #ffffff13) calc(var(--frame-x) - 16px) calc(100% - var(--frame-y)) / 33px 1px no-repeat,
    linear-gradient(#ffffff13, #ffffff13) var(--frame-x) calc(100% - var(--frame-y) + 16px) / 1px 33px no-repeat,
    linear-gradient(#ffffff13, #ffffff13) calc(100% - var(--frame-x) + 16px) calc(100% - var(--frame-y)) / 33px 1px no-repeat,
    linear-gradient(#ffffff13, #ffffff13) calc(100% - var(--frame-x)) calc(100% - var(--frame-y) + 16px) / 1px 33px no-repeat;
}
.story-paperwork { display: grid; grid-template-columns: 1.25fr 1fr; gap: 5vw; text-align: left; padding-inline: 6vw; }
.story-paperwork h2 { font-size: clamp(38px, 4.8vw, 78px); }
.paperwork-steps { list-style: none; margin: 0; padding: 0 0 0 4vw; border-left: 1px solid #ffffff0d; }
.paperwork-steps li { display: flex; align-items: flex-start; gap: 24px; padding: 34px 0; }
.paperwork-steps li + li { border-top: 1px solid #ffffff10; }
.step-icon { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid #ffffff13; border-radius: 14px; }
.step-icon .benefit-icon { width: 30px; height: 30px; }
.paperwork-steps h3 { font: 650 clamp(18px, 1.7vw, 26px)/1.25 "Space Grotesk", var(--sans); letter-spacing: -.035em; margin: 0 0 12px; }
.paperwork-steps p { font-size: clamp(14px, 1.2vw, 18px); line-height: 1.6; color: #89928d; margin: 0; }
.benefit-icon-play { --benefit-icon: url("./assets/icons/lucide/play.svg"); }
.benefit-icon-chart { --benefit-icon: url("./assets/icons/lucide/chart-no-axes-column-increasing.svg"); }
.benefit-icon-check { --benefit-icon: url("./assets/icons/lucide/check.svg"); }
@media (max-width: 700px) {
  .story-page { --frame-x: 3vw; --frame-y: 2vh; }
  .story-paperwork { display: flex; align-items: stretch; gap: 24px; padding: 30px 7vw; }
  .story-paperwork h2 { font-size: 34px; }
  .story-paperwork .story-label { font-size: 9px; margin-bottom: 18px; }
  .story-paperwork .story-copy { font-size: 13px; line-height: 1.5; }
  .paperwork-steps { padding: 0; border: 0; }
  .paperwork-steps li { padding: 14px 0; gap: 16px; align-items: center; }
  .step-icon { width: 42px; height: 42px; border-radius: 10px; }
  .step-icon .benefit-icon { width: 23px; height: 23px; }
  .paperwork-steps h3 { font-size: 17px; margin-bottom: 5px; }
  .paperwork-steps p { font-size: 12px; line-height: 1.4; }
}
@media (max-width: 700px) and (max-height: 650px) {
  .story-paperwork { gap: 12px; padding-block: 22px; }
  .story-paperwork h2 { font-size: 28px; margin-bottom: 12px; }
  .story-paperwork .story-label { margin-bottom: 12px; }
  .story-paperwork .story-copy { font-size: 12px; line-height: 1.4; }
  .paperwork-steps li { padding: 10px 0; }
  .paperwork-steps h3 { font-size: 15px; }
  .paperwork-steps p { font-size: 11px; }
}

/* Shared typography for all three story slides. */
.story-page {
  --story-heading-size: clamp(38px, 4.8vw, 78px);
  --story-body-size: clamp(15px, 1.3vw, 19px);
  --story-label-size: 11px;
  --story-subheading-size: clamp(18px, 1.7vw, 26px);
  --story-detail-size: clamp(14px, 1.2vw, 18px);
}
.story-page h2 { font-size: var(--story-heading-size); line-height: 1.08; }
.story-page .story-copy { font-size: var(--story-body-size); line-height: 1.6; }
.story-page .story-label { font-size: var(--story-label-size); }
.story-page h3 { font-size: var(--story-subheading-size); line-height: 1.25; }
.story-page :is(.why-benefits, .privacy-principle, .paperwork-steps) p { font-size: var(--story-detail-size); line-height: 1.55; }
@media (max-width: 700px) {
  .story-page {
    --story-heading-size: 34px;
    --story-body-size: 13px;
    --story-label-size: 9px;
    --story-subheading-size: 17px;
    --story-detail-size: 12px;
  }
  .story-page .story-copy { line-height: 1.5; }
  .story-page :is(.why-benefits, .privacy-principle, .paperwork-steps) p { line-height: 1.4; }
}
@media (min-width: 701px) and (max-height: 700px) {
  .story-page { --story-heading-size: 44px; --story-body-size: 15px; }
}
@media (max-width: 700px) and (max-height: 700px) {
  .story-page {
    --story-heading-size: 28px;
    --story-body-size: 12px;
    --story-subheading-size: 15px;
    --story-detail-size: 11px;
  }
  .story-page .story-copy { line-height: 1.4; }
}
@media (max-width: 700px) { .hero-nav nav { gap: 6px; } .hero-nav nav a { padding-inline: 10px; } }

/* Opaque foreground plane for the first-to-second layered transition. */
.story-why { z-index: 1; }
.story-privacy { z-index: 2; background: var(--bg-primary); }
.story-paperwork { z-index: 3; background: var(--bg-primary); }

/* Paint the lightweight hero immediately while WebGL and the live timer load. */
.hero-preview { position:absolute; inset:0; z-index:3; pointer-events:none; transition:opacity 200ms; }
.hero-preview img { position:absolute; left:69%; transform:translateX(-69%); width:auto; max-width:none; height:100%; }
.scene-sticky.is-live .hero-preview { opacity:0 !important; visibility:hidden; transition:opacity 200ms, visibility 0s 200ms; }
@media (max-aspect-ratio:95/100) { .hero-preview img { left:0; transform:none; width:100%; height:100%; object-fit:contain; } }
@media (prefers-reduced-motion:reduce) { .hero-preview { transition:none; } }
