/* Veylo — marketing site. Colors and type follow the Android app. */
:root {
  --bg: #f6f5f2;
  --bg2: #efeee9;
  --card: #ffffff;
  --ink: #17171c;
  --ink2: #55555f;
  --ink3: #8a8a94;
  --line: #e4e2dc;
  --acc: #5e63c9;
  --acc2: #7a7fe0;
  --acc-soft: #e7e8fb;
  --acc-ink: #ffffff;
  --dark: #0b0b10;
  --dark2: #15151d;
  --ok: #2f9e6d;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --r: 28px;
  --maxw: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--acc-soft); }

.wrap { width: min(var(--maxw), calc(100% - 40px)); margin: 0 auto; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { color: var(--acc); font-weight: 600; font-size: 15px; letter-spacing: -.005em; margin: 0 0 14px; }
.h-xl { font-size: clamp(48px, 9vw, 120px); line-height: .98; letter-spacing: -.045em; font-weight: 650; margin: 0; }
.h-l { font-size: clamp(38px, 6vw, 80px); line-height: 1.02; letter-spacing: -.04em; font-weight: 650; margin: 0; }
.h-m { font-size: clamp(28px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -.03em; font-weight: 650; margin: 0; }
.lead { font-size: clamp(18px, 1.6vw, 22px); color: var(--ink2); line-height: 1.5; letter-spacing: -.01em; margin: 18px 0 0; }
.grad { background: linear-gradient(100deg, var(--acc) 10%, #9a8cf0 55%, var(--acc) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: sheen 8s linear infinite; }
@keyframes sheen { to { background-position: -200% 0; } }

/* ------------------------------------------------------------------ nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 60px;
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav.on-dark { background: color-mix(in srgb, var(--dark) 70%, transparent); }
.nav.on-dark .nav-links a, .nav.on-dark .brand { color: #f2f2f6; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 650; font-size: 18px; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; }
.nav-links a { color: var(--ink2); transition: color .2s; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--acc); color: var(--acc-ink); font: 600 16px var(--font); letter-spacing: -.01em;
  box-shadow: 0 12px 30px -10px rgb(94 99 201 / .55);
  transition: transform .25s var(--ease), box-shadow .25s, background .2s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgb(94 99 201 / .6); background: #5559c2; }
.btn:active { transform: scale(.98); }
.btn.sm { height: 36px; padding: 0 16px; font-size: 14px; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { background: var(--bg2); }
.btn svg { width: 20px; height: 20px; }

/* ------------------------------------------------------------------ phone */
.phone {
  width: var(--pw, 300px); aspect-ratio: 900 / 1916; position: relative;
  filter: drop-shadow(0 40px 60px rgb(30 25 80 / .22)) drop-shadow(0 10px 20px rgb(0 0 0 / .12));
}
.phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.phone .screen { opacity: 0; transition: opacity .6s var(--ease), transform .7s var(--ease-out); transform: scale(.985); }
.phone .screen.on { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ scroll scenes */
.scene { position: relative; }
.sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* Hero */
.hero { height: 260vh; }
.hero .sticky { display: grid; place-items: center; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.blob.a { width: 46vw; height: 46vw; left: -10vw; top: -12vw; background: #dcdcfb; animation: drift 18s ease-in-out infinite alternate; }
.blob.b { width: 38vw; height: 38vw; right: -8vw; top: 20vh; background: #efe3f7; animation: drift 22s ease-in-out infinite alternate-reverse; }
.blob.c { width: 30vw; height: 30vw; left: 30vw; bottom: -14vw; background: #e2eefc; animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(6vw, 4vh) scale(1.12); } }
.rings { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.rings i {
  position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgb(94 99 201 / .16);
  transform: translate(-50%, -50%) scale(calc(1 + var(--p, 0) * 1.6)); opacity: calc(1 - var(--p, 0) * 1.4);
}
.rings i:nth-child(1) { width: 260px; height: 260px; animation: breathe 5s ease-in-out infinite; }
.rings i:nth-child(2) { width: 460px; height: 460px; animation: breathe 5s .6s ease-in-out infinite; }
.rings i:nth-child(3) { width: 680px; height: 680px; animation: breathe 5s 1.2s ease-in-out infinite; }
@keyframes breathe { 50% { border-color: rgb(94 99 201 / .3); } }
.hero-logo {
  position: absolute; left: 50%; top: 50%; width: min(120px, 14vh); height: min(120px, 14vh);
  transform: translate(-50%, calc(-50% - min(250px, 27vh) - var(--p, 0) * 30vh)) scale(calc(1 - var(--p, 0) * .55));
  opacity: calc(1 - var(--p, 0) * 2.2);
}
.hero-logo .halo { position: absolute; inset: -60px; border-radius: 50%; background: radial-gradient(circle, #d9daf9 0%, rgb(217 218 249 / .6) 40%, transparent 70%); animation: pulse 3.6s ease-in-out infinite; }
.hero-logo img { position: relative; width: 100%; height: 100%; filter: drop-shadow(0 22px 34px rgb(94 99 201 / .45)); }
@keyframes pulse { 50% { transform: scale(1.08); opacity: .8; } }
.hero-copy {
  position: absolute; left: 0; right: 0; top: 50%; text-align: center; padding: 0 20px;
  transform: translateY(calc(-28% - var(--p, 0) * 40vh)); opacity: calc(1 - var(--p, 0) * 2.6);
}
.hero-copy .lead { max-width: 620px; margin-inline: auto; }
.hero-cta { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-phone {
  position: absolute; left: 50%; top: 50%; --pw: min(330px, 72vw);
  transform: translate(-50%, calc(-50% + (1 - var(--q, 0)) * 85vh)) perspective(1600px) rotateX(calc((1 - var(--q, 0)) * 28deg)) scale(calc(.82 + var(--q, 0) * .18));
}
.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); color: var(--ink3); opacity: calc(1 - var(--p, 0) * 6); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-hint span { width: 22px; height: 34px; border-radius: 12px; border: 1.5px solid var(--ink3); position: relative; }
.scroll-hint span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; border-radius: 2px; background: var(--ink3); transform: translateX(-50%); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 60% { transform: translate(-50%, 9px); opacity: 0; } 61% { transform: translate(-50%, 0); opacity: 0; } }
.hero-caption { position: absolute; bottom: 9vh; left: 0; right: 0; text-align: center; opacity: calc(var(--q, 0) * 2 - 1); }
.hero-caption .mono { color: var(--ink3); display: inline-flex; gap: 8px; align-items: center; }

/* Statement — words light up with scroll */
.statement { height: 220vh; background: var(--dark); color: #fff; }
.statement .sticky { display: grid; place-items: center; }
.statement p {
  margin: 0; width: min(1000px, calc(100% - 40px));
  font-size: clamp(30px, 4.6vw, 64px); line-height: 1.12; letter-spacing: -.035em; font-weight: 650;
}
.statement .w { opacity: .14; transition: opacity .25s linear; }
.statement .w.lit { opacity: 1; }
.statement .w.accent.lit { color: #a9acff; }
.statement .glow { position: absolute; width: 60vw; height: 60vw; border-radius: 50%; background: radial-gradient(circle, rgb(94 99 201 / .35), transparent 65%); left: 50%; top: 50%; transform: translate(-50%, -50%) scale(calc(.6 + var(--p, 0) * .8)); filter: blur(30px); pointer-events: none; }

/* Feature tour — phone pinned, screens and captions change */
.tour { height: 480vh; }
.tour .sticky { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6vw; padding: 60px max(20px, calc((100vw - var(--maxw)) / 2)) 0; }
.tour-phone { --pw: min(320px, 70vw); transform: perspective(1800px) rotateY(calc(var(--tilt, 0) * 1deg)) rotateX(2deg); transition: transform .8s var(--ease-out); }
.tour-steps { position: relative; height: 340px; }
.tour-step { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease), transform .7s var(--ease-out); pointer-events: none; }
.tour-step.on { opacity: 1; transform: none; pointer-events: auto; }
.tour-step .num { font-family: var(--mono); color: var(--acc); font-size: 13px; letter-spacing: .1em; margin-bottom: 14px; }
.tour-step p { color: var(--ink2); font-size: 19px; margin: 16px 0 0; max-width: 420px; }
.tour-side { display: flex; flex-direction: column; gap: 16px; }
.tour-side .chip { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--card); box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgb(20 20 60 / .25); opacity: 0; transform: translateX(-24px); transition: opacity .5s var(--ease), transform .6s var(--ease-out); max-width: 320px; }
.tour-side .chip.on { opacity: 1; transform: none; }
.tour-side .chip b { display: block; font-size: 15px; letter-spacing: -.01em; }
.tour-side .chip small { color: var(--ink2); font-size: 13.5px; }
.chip .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--acc-soft); color: var(--acc); display: grid; place-items: center; flex-shrink: 0; }
.chip .ic svg { width: 20px; height: 20px; }
.tour-dots { position: absolute; right: max(20px, calc((100vw - var(--maxw)) / 2)); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; }
.tour-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: height .4s var(--ease), background .3s; }
.tour-dots i.on { height: 26px; background: var(--acc); }
.tour-progress { position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, var(--acc), #9a8cf0); }

/* Security specs */
.specs { padding: 160px 0 140px; background: var(--dark); color: #fff; position: relative; overflow: hidden; }
.specs .lead { color: #a6a6b4; max-width: 640px; }
.spec-grid { margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.spec {
  position: relative; padding: 28px 24px 26px; border-radius: var(--r); background: var(--dark2);
  border: 1px solid rgb(255 255 255 / .06); overflow: hidden; min-height: 230px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.spec::before { content: ""; position: absolute; inset: 0; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgb(122 127 224 / .22), transparent 45%); opacity: 0; transition: opacity .3s; }
.spec:hover::before { opacity: 1; }
.spec .big { font-size: clamp(38px, 4vw, 54px); font-weight: 650; letter-spacing: -.04em; line-height: 1; }
.spec .big small { font-size: .45em; letter-spacing: -.01em; color: #a9acff; margin-left: 4px; }
.spec h3 { margin: 16px 0 6px; font-size: 17px; letter-spacing: -.015em; }
.spec p { margin: 0; color: #9c9cab; font-size: 14.5px; line-height: 1.5; }
.spec .tag { position: absolute; top: 22px; left: 24px; color: #6e6e80; }
.keychain { margin-top: 90px; display: grid; grid-template-columns: repeat(5, auto); align-items: center; justify-content: center; gap: 14px; font-family: var(--mono); font-size: 13px; color: #b9b9c8; }
.keychain .k { padding: 12px 16px; border-radius: 14px; border: 1px solid rgb(255 255 255 / .1); background: rgb(255 255 255 / .03); text-align: center; }
.keychain .k b { display: block; color: #fff; font-family: var(--font); font-size: 15px; letter-spacing: -.01em; margin-bottom: 2px; }
.keychain .arrow { width: 40px; height: 1px; background: linear-gradient(90deg, transparent, #7a7fe0, transparent); position: relative; overflow: hidden; }
.keychain .arrow::after { content: ""; position: absolute; inset: 0; width: 30%; background: #c9cbff; filter: blur(2px); animation: flow 2.2s linear infinite; }
@keyframes flow { from { transform: translateX(-100%); } to { transform: translateX(400%); } }

/* Disguise */
.disguise { height: 300vh; }
.disguise .sticky { display: grid; place-items: center; text-align: center; }
.icon-stage { position: relative; width: 168px; height: 168px; margin: 46px auto 26px; }
.icon-stage .ic {
  position: absolute; inset: 0; border-radius: 42px; display: grid; place-items: center;
  box-shadow: 0 30px 50px -20px rgb(20 20 60 / .4);
  opacity: 0; transform: scale(.6) rotate(-12deg); transition: opacity .55s var(--ease), transform .7s var(--ease-out);
}
.icon-stage .ic.on { opacity: 1; transform: none; }
.icon-stage .ic.out { opacity: 0; transform: scale(1.25) rotate(10deg); }
.icon-stage .ic svg { width: 64%; height: 64%; }
.ic-veylo { background: linear-gradient(135deg, #6e73d6, #5157be); }
.ic-calc { background: linear-gradient(160deg, #3a3a42, #1d1d22); }
.ic-clock { background: linear-gradient(160deg, #f4f4f6, #dcdce2); }
.ic-weather { background: linear-gradient(170deg, #5aa7f2, #2f74d0); }
.icon-label { height: 34px; position: relative; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.icon-label span { position: absolute; left: 0; right: 0; opacity: 0; transform: translateY(14px); transition: opacity .4s, transform .5s var(--ease-out); }
.icon-label span.on { opacity: 1; transform: none; }
.icon-hint { color: var(--ink2); margin-top: 6px; min-height: 26px; font-size: 16px; }
.dock { margin-top: 40px; display: inline-flex; gap: 10px; padding: 10px; border-radius: 26px; background: rgb(255 255 255 / .6); box-shadow: inset 0 0 0 1px var(--line); }
.dock i { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; opacity: .35; transition: opacity .3s, transform .3s var(--ease-out); }
.dock i.on { opacity: 1; transform: translateY(-4px); }
.dock i svg { width: 62%; height: 62%; }

/* Fan of phones */
.fan { height: 240vh; }
.fan .sticky { display: grid; place-items: center; }
.fan-head { position: absolute; top: 11vh; left: 0; right: 0; text-align: center; padding: 0 20px; opacity: calc(var(--p, 0) * 3); transform: translateY(calc((1 - min(1, var(--p, 0) * 3)) * 30px)); }
.fan-row { position: relative; width: 100%; height: 100%; }
.fan .phone { --pw: min(260px, 52vw, calc((100svh - 330px) * .47)); position: absolute; left: 50%; top: 64%; }
.fan .phone.l { transform: translate(calc(-50% - var(--s, 0) * min(300px, 30vw)), calc(-50% + var(--s, 0) * 30px)) rotate(calc(var(--s, 0) * -8deg)) scale(calc(.92 + var(--s, 0) * .03)); }
.fan .phone.c { transform: translate(-50%, calc(-50% - var(--s, 0) * 10px)); z-index: 2; }
.fan .phone.r { transform: translate(calc(-50% + var(--s, 0) * min(300px, 30vw)), calc(-50% + var(--s, 0) * 30px)) rotate(calc(var(--s, 0) * 8deg)) scale(calc(.92 + var(--s, 0) * .03)); }

/* Biometrics block */
.bio { padding: 140px 0; }
.bio .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.bio .phone { --pw: min(320px, 74vw); justify-self: center; }
.points { margin: 34px 0 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.points li { display: flex; gap: 14px; align-items: flex-start; }
.points li b { display: block; letter-spacing: -.01em; }
.points li span { color: var(--ink2); font-size: 15.5px; }

/* Never-see list */
.never { padding: 120px 0; background: var(--bg2); }
.never-grid { margin-top: 50px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.nv { background: var(--card); border-radius: 22px; padding: 22px; box-shadow: 0 1px 0 var(--line); display: flex; gap: 14px; align-items: center; }
.nv .x { width: 34px; height: 34px; border-radius: 50%; background: #fdeaea; color: #c9483e; display: grid; place-items: center; flex-shrink: 0; }
.nv .x svg { width: 16px; height: 16px; }
.nv b { letter-spacing: -.01em; }

/* CTA */
.cta { padding: 160px 0 120px; text-align: center; position: relative; overflow: hidden; }
.cta .logo-big { width: 110px; height: 110px; margin: 0 auto 30px; filter: drop-shadow(0 22px 34px rgb(94 99 201 / .4)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.cta .hero-cta { margin-top: 36px; }
.cta .note { margin-top: 18px; color: var(--ink3); font-size: 14px; }

/* Reveal on enter */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 50px; color: var(--ink3); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 22px; }
footer a { color: var(--ink2); }

/* ------------------------------------------------------------------ legal pages */
.doc { padding: 130px 0 90px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(40px, 6vw, 64px); letter-spacing: -.04em; line-height: 1.03; margin: 0; }
.doc .meta { color: var(--ink3); margin-top: 14px; font-size: 15px; }
.doc h2 { font-size: 26px; letter-spacing: -.025em; margin: 56px 0 12px; }
.doc h3 { font-size: 18px; letter-spacing: -.015em; margin: 28px 0 8px; }
.doc p, .doc li { color: #3c3c45; }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-size: 13px; color: var(--ink3); font-weight: 600; }
.doc .toc { margin-top: 34px; padding: 22px 24px; background: var(--card); border-radius: 20px; box-shadow: 0 1px 0 var(--line); columns: 2; column-gap: 30px; }
.doc .toc a { display: block; padding: 4px 0; color: var(--ink2); font-size: 15px; }
.callout { margin: 26px 0; padding: 20px 22px; border-radius: 20px; background: var(--acc-soft); color: #33367a; display: flex; gap: 14px; }
.callout svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; }
.callout.warn { background: #fff4e5; color: #7a4a06; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; display: grid; gap: 12px; margin: 22px 0; }
.steps li { counter-increment: s; display: flex; gap: 16px; align-items: center; background: var(--card); padding: 16px 18px; border-radius: 18px; box-shadow: 0 1px 0 var(--line); margin: 0; }
.steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; background: var(--acc); color: #fff; font-weight: 600; display: grid; place-items: center; flex-shrink: 0; font-size: 15px; }
.path { font-family: var(--mono); font-size: 13.5px; background: var(--bg2); padding: 3px 8px; border-radius: 8px; white-space: nowrap; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0; }
.box { background: var(--card); border-radius: 20px; padding: 22px; box-shadow: 0 1px 0 var(--line); }
.box h3 { margin-top: 0; }
.box ul { margin: 0; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 980px) {
  .tour .sticky { grid-template-columns: 1fr; grid-template-rows: auto auto; gap: 18px; padding-top: 80px; justify-items: center; text-align: center; }
  .tour-side { display: none; }
  .tour-steps { height: 190px; width: min(520px, 100%); order: -1; }
  .tour-step p { margin-inline: auto; font-size: 17px; }
  .tour-phone { --pw: min(250px, 58vw); }
  .tour-dots { display: none; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .keychain { grid-template-columns: 1fr; }
  .keychain .arrow { width: 1px; height: 26px; justify-self: center; background: linear-gradient(180deg, transparent, #7a7fe0, transparent); }
  .keychain .arrow::after { display: none; }
  .bio .wrap { grid-template-columns: 1fr; }
  .never-grid { grid-template-columns: 1fr 1fr; }
  .nav-links .hide-sm { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .spec-grid, .never-grid, .two { grid-template-columns: 1fr; }
  .doc .toc { columns: 1; }
  .nav-links { gap: 14px; }
  .rings i:nth-child(3) { display: none; }
  .fan .phone.l, .fan .phone.r { opacity: .9; }
}

/* Reduced motion: keep layout, drop movement. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero, .statement, .disguise, .fan { height: auto; }
  .tour { height: auto; }
  .sticky { position: relative; height: auto; min-height: 100vh; }
  .reveal { opacity: 1; transform: none; }
}

/* Fixes after preview */
.nav-links a.btn, .nav.on-dark .nav-links a.btn { color: var(--acc-ink); }
.hero-phone { transform: translate(-50%, calc(-50% + (1 - var(--q, 0)) * 105vh)) perspective(1600px) rotateX(calc((1 - var(--q, 0)) * 28deg)) scale(calc(.82 + var(--q, 0) * .18)); }
@media (max-height: 760px), (max-width: 600px) { .scroll-hint { display: none; } }
@media (max-width: 980px) {
  .tour-steps { height: 230px; }
  .tour-step .num { margin-bottom: 8px; }
  .tour-step p { margin-top: 10px; }
  .tour-phone { --pw: min(230px, 54vw, calc((100svh - 360px) * .47)); }
}
[id] { scroll-margin-top: 84px; }

/* Spec cards: label sits in the flow at the top, the number below it never overlaps. */
.spec { justify-content: flex-start; gap: 0; }
.spec .tag { position: static; margin-bottom: auto; padding-bottom: 22px; }

/* Disguise: content starts below the nav and scales to the screen height, so nothing is clipped. */
.disguise .sticky { place-items: start center; padding-top: max(90px, 11vh); }
.disguise .h-l { font-size: clamp(34px, min(5.4vw, 8.5vh), 76px); }
.disguise .lead { font-size: clamp(16px, min(1.5vw, 2.4vh), 21px); }
.icon-stage { width: min(168px, 19vh); height: min(168px, 19vh); margin: min(46px, 5vh) auto min(26px, 3vh); }
.icon-stage .ic { border-radius: 25%; }
.dock { margin-top: min(40px, 4vh); }
@media (max-height: 600px) { .dock { display: none; } }

/* Phones always fit the window: width is capped by height too (phone is 290:618). */
.hero-phone { --pw: min(330px, 72vw, calc((100svh - 120px) * .47)); }
.tour-phone { --pw: min(320px, 70vw, calc((100svh - 140px) * .47)); }
.bio .phone { --pw: min(320px, 74vw, calc((100svh - 120px) * .47)); }
@media (max-width: 980px) { .tour-phone { --pw: min(230px, 54vw, calc((100svh - 360px) * .47)); } }

/* Hero is text only now; the phone rises in its own scene after "Unlock faster". */
.hero { height: 170vh; }
.rise { height: 230vh; }
.rise .sticky { display: grid; place-items: center; }
.rise .rings i { transform: translate(-50%, -50%) scale(calc(.6 + var(--q, 0) * .6)); opacity: calc(var(--q, 0) * 1); }

/* Hero: short scroll; text and logo fade out just as the next section arrives (no empty gap). */
.hero { height: 135vh; }
.hero-copy { opacity: calc(1 - var(--p, 0) * 1.25); }
.hero-logo { opacity: calc(1 - var(--p, 0) * 1.4); }
.hero .rings i { opacity: calc(1 - var(--p, 0) * 1.1); }

/* No dead zone between hero and "Everything in its place": the hero text stays readable while it
   scrolls away, and the next heading is visible as soon as it enters the screen. */
.hero { height: 115vh; }
.hero-copy { opacity: calc(1 - var(--p, 0) * .7); }
.hero-logo { opacity: calc(1 - var(--p, 0) * .8); }
.fan-head { opacity: 1; transform: none; }
