/* REFLEX landing page. Palette and type in :root; scenes are fixed panels driven by scroll (site.js). */
:root {
  --ink: #0B0E12; --ink2: #0E1217; --card: #181E26; --card2: #222A33; --line: rgba(255,255,255,0.12);
  --text: #F2F4F6; --muted: #A3ADB8; --lime: #C9F23A; --lime-ink: #0B0E12; --coral: #FF3D8A;
  --ease: cubic-bezier(.2,.8,.2,1);
  --display: "Archivo Black", Inter, sans-serif;
  --wordmark: "Syncopate", Inter, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --px: 0; --py: 0;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink); color: var(--text); font: 16px/1.6 Inter, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
html, body { overflow-x: hidden; max-width: 100%; }
a { color: var(--lime); }
::selection { background: var(--lime); color: var(--lime-ink); }
/* ---------- preloader ---------- */
#loader { position: fixed; inset: 0; z-index: 80; background: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; transition: opacity 0.9s var(--ease), visibility 0.9s; }
#loader.gone { opacity: 0; visibility: hidden; }
#loader .lring { width: 120px; height: 120px; }
#loader .pct { font-family: var(--mono); color: var(--muted); font-size: 13px; letter-spacing: 2px; }
#loader .wm { font-family: var(--wordmark); font-weight: 700; letter-spacing: 0.42em; font-size: 22px; color: var(--text); margin-left: 0.42em; }
#loader .hint { color: var(--muted); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }
/* ---------- backdrop: a soft photograph per scene, film grain, a cast of light ---------- */
.bg { position: fixed; inset: -12% -8%; z-index: 0; pointer-events: none; overflow: hidden; }
.bg .layer { position: absolute; inset: 0; will-change: transform; }
.bg .far { background: url(/rack.jpg) center 30% / cover no-repeat; filter: blur(18px) saturate(1.1); opacity: 0.3; transform: scale(1.12); }
.bg .ringart { display: flex; align-items: center; justify-content: center; opacity: var(--ringart, 0.03); }
.bg .ringart svg { width: 130vmax; height: 130vmax; animation: turn 240s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.photo { position: fixed; inset: 0; z-index: 0; background-position: center 32%; background-size: cover; background-repeat: no-repeat; opacity: 0; filter: saturate(1.12) contrast(1.06); pointer-events: none; will-change: opacity; }
.photo[data-i="0"], .photo[data-i="1"] { filter: blur(10px) saturate(1.1) contrast(1.05); transform: scale(1.06); }
.photo[data-i="5"] { background-position: center top; filter: saturate(0.95) contrast(1.05); }
.photos .grade { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(180deg, rgba(11,14,18,0.28) 0%, rgba(11,14,18,0.08) 38%, rgba(11,14,18,0.55) 72%, rgba(11,14,18,0.9) 100%); }
body.simple .photo { transition: opacity 0.7s var(--ease); }
.tint { position: fixed; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen; opacity: 0.9; transition: background 0.8s; }
.vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(11,14,18,0.85) 100%); }
.grain { position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
#progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--lime); z-index: 40; }
/* ---------- chrome ---------- */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; background: linear-gradient(180deg, rgba(11,14,18,0.92), rgba(11,14,18,0.55) 70%, rgba(11,14,18,0)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--wordmark); font-weight: 700; letter-spacing: 0.42em; font-size: 17px; color: var(--text); text-decoration: none; }
.mark { width: 22px; height: 22px; }
.bar nav { display: flex; align-items: center; gap: 2px; }
.bar nav a { color: var(--text); text-decoration: none; font-family: var(--mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; padding: 8px 12px; position: relative; opacity: 0.8; transition: opacity 0.2s; }
.bar nav a:hover { opacity: 1; }
.bar nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease); }
.bar nav a.active { opacity: 1; }
.bar nav a.active::after { transform: scaleX(1); }
.bar nav a.cta { color: var(--ink); background: var(--lime); margin-left: 12px; padding: 11px 18px; font-weight: 700; border-radius: 5px; box-shadow: 0 8px 24px rgba(201,242,58,0.25); opacity: 1; transition: transform 0.2s var(--ease), box-shadow 0.2s; }
.bar nav a.cta:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(201,242,58,0.4); }
.bar nav a.cta::after { display: none; }
.scroll-spacer { position: relative; z-index: 1; height: 720vh; }
.scrollhint { position: fixed; left: 0; right: 0; bottom: 14px; z-index: 12; text-align: center; font-family: var(--mono); font-size: 10px; letter-spacing: 3px; color: var(--muted); text-transform: uppercase; pointer-events: none; opacity: 0; transition: opacity 1s 1.8s; }
.scrollhint.in { opacity: 1; }
.scrollhint::after { content: ""; display: block; width: 1px; height: 26px; margin: 8px auto 0; background: linear-gradient(var(--lime), transparent); }
/* ---------- panels ---------- */
.panel { position: fixed; inset: 0; z-index: 10; display: flex; align-items: center; pointer-events: none; opacity: 0; --k: 0; }
.panel.on { pointer-events: auto; }
.panel .wrap { width: 100%; max-width: 1220px; margin: 0 auto; padding: 72px 28px 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); align-items: center; }
.panel.center .wrap { grid-template-columns: 1fr; }
.panel .copy { max-width: 560px; will-change: transform, opacity; position: relative; padding: 28px 30px; margin-left: -30px; }
.panel.right .copy { order: 2; margin-left: 0; margin-right: -30px; justify-self: end; }
.panel.right .stage, .panel.right .vf { order: 1; }
.panel:not(.right):not(.center) .vf, .panel:not(.right):not(.center) .stage { justify-self: end; }
.panel.right .vf, .panel.right .stage { justify-self: start; }
.panel .copy::before { content: ""; position: absolute; inset: -8% -12%; z-index: -1; border-radius: 48px; background: radial-gradient(70% 70% at 50% 50%, rgba(11,14,18,0.94), rgba(11,14,18,0.78) 50%, rgba(11,14,18,0) 100%); transform: scale(var(--plate, 1)); pointer-events: none; }
.panel.center .copy { margin: 0 auto; text-align: center; max-width: 660px; }
.panel.center .copy::before { inset: -8% -14%; }
.kicker { color: var(--lime); font-family: var(--mono); font-size: 11px; letter-spacing: 3px; text-transform: uppercase; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 22px; height: 1px; background: var(--lime); }
.panel.center .kicker { justify-content: center; }
h1, h2 { font-family: var(--display); letter-spacing: -1px; margin: 0 0 16px; line-height: 0.98; text-wrap: balance; }
.w { display: inline-block; opacity: 0; transform: translateY(0.5em); filter: blur(6px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease); transition-delay: calc(var(--i) * 70ms + 120ms); }
.copy.in .w { opacity: 1; transform: none; filter: blur(0); }
h2 { background: linear-gradient(100deg, var(--text) 55%, var(--lime) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead, .facts, .readouts, .verdict, .lifts, .lifts-note, .feats, .goals, .pull, .cite, .guard, .ctas, .stores, .tiles, .badges, .ringwrap, .fcard { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: 0.45s; }
.fcard { transition-delay: 0.6s; }
.copy.in .lead, .copy.in .facts, .copy.in .readouts, .copy.in .verdict, .copy.in .lifts, .copy.in .lifts-note, .copy.in .feats, .copy.in .goals, .copy.in .pull, .copy.in .cite, .copy.in .guard, .copy.in .ctas, .copy.in .stores, .copy.in .tiles, .copy.in .badges, .copy.in .ringwrap, .copy.in .fcard { opacity: 1; transform: none; }
body.simple .copy .w { opacity: 1; transform: none; filter: none; }
body.simple .copy > * { opacity: 1; transform: none; }
h1 { font-size: clamp(38px, min(4.4vw, 8.6vh), 72px); }
h2 { font-size: clamp(30px, 4.2vw, 54px); }
h1 em, h2 em { font-style: normal; color: var(--lime); }
.lead { color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); margin: 0 0 24px; max-width: 34em; }
@media (max-height: 820px) { .lead { font-size: 15.5px; margin-bottom: 16px; } }
/* The ask: a flat lime block with a white light running round its edge; on hover ink floods
   in from the left, the text turns lime and the arrow steps forward. No gradients, no bevels. */
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; background: var(--lime); color: var(--ink); font-weight: 800; padding: 16px 26px; border-radius: 5px; text-decoration: none; font-size: 16px; letter-spacing: -0.1px; border: 0; cursor: pointer; font-family: inherit; position: relative; isolation: isolate; overflow: hidden; box-shadow: 0 14px 34px rgba(0,0,0,0.45), 0 0 28px rgba(201,242,58,0.22); transition: color 0.35s var(--ease), transform 0.2s var(--ease), box-shadow 0.3s; }
.btn:not(.ghost)::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; background: conic-gradient(from var(--a), transparent 0 55%, #fff 72%, transparent 88% 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; animation: orbit 2.8s linear infinite; z-index: 1; pointer-events: none; }
.btn:not(.ghost)::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--ink); transform: scaleX(0); transform-origin: left center; transition: transform 0.4s var(--ease); z-index: -1; }
.btn:not(.ghost):hover { color: var(--lime); transform: translateY(-2px); box-shadow: 0 18px 44px rgba(0,0,0,0.5), 0 0 0 1px rgba(201,242,58,0.7), 0 0 34px rgba(201,242,58,0.35); }
.btn:not(.ghost):hover::after { transform: scaleX(1); }
.btn .arr { width: 18px; height: 18px; flex: none; transition: transform 0.35s var(--ease); }
.btn:not(.ghost):hover .arr { transform: translateX(4px); }
@keyframes orbit { to { --a: 360deg; } }
@media (prefers-reduced-motion: reduce) { .btn:not(.ghost)::before { animation: none; --a: 200deg; } }
.btn.ghost { background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid var(--line); box-shadow: none; padding: 15px 22px; }
.btn.ghost:hover { transform: translateY(-2px); background: rgba(255,255,255,0.1); }
.btn:not(.ghost) > * { position: relative; z-index: 2; }
.ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.ctas .btn { flex: 1 1 auto; white-space: nowrap; }
.ctas.small .btn, .panel.center .ctas .btn { flex: 0 1 auto; }
.ctas.small { margin-top: 18px; align-items: center; gap: 14px; }
.ctas.small .btn { padding: 13px 20px; font-size: 14.5px; }
.ctas.small .aside { color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: 1px; }
.panel.center .ctas { justify-content: center; }
.facts { display: flex; gap: 20px; margin-top: 22px; color: var(--muted); font-family: var(--mono); font-size: 12px; flex-wrap: wrap; }
.facts b { color: var(--text); font-weight: 600; }
.scatter { display: flex; margin: 0 0 18px; perspective: 900px; }
.scatter .word { font-family: var(--wordmark); font-weight: 700; font-size: clamp(11px, 1.2vw, 19px); letter-spacing: 0.3em; color: var(--lime); display: flex; flex-wrap: wrap; row-gap: 4px; }
.scatter .wd { display: inline-flex; white-space: nowrap; }
.scatter .sp { display: inline-block; width: 0.9em; }
.scatter .l { display: inline-block; opacity: 0; transform: translate3d(var(--dx), var(--dy), var(--dz)) rotate(var(--r)); transition: transform 1.4s var(--ease), opacity 1.2s var(--ease); transition-delay: var(--d); will-change: transform; white-space: pre; }
.scatter.in .l { opacity: 1; transform: none; }
.scatter .l.dot { color: var(--text); }
/* readouts, verdict, quote, guard */
.lifts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.lift { font-family: var(--mono); font-size: 11px; letter-spacing: 0.4px; padding: 5px 9px; border-radius: 5px; border: 1px solid var(--line); color: var(--muted); }
.lift.on { color: var(--lime, #C9F23A); border-color: rgba(201,242,58,0.45); background: rgba(201,242,58,0.08); }
.lifts-note { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 10px 0 0; }
.vf.wide { aspect-ratio: 16 / 10; height: auto; width: min(100%, 640px); }
.vf.wide video { object-fit: cover; }
.vf-call { position: absolute; right: 14px; bottom: 40px; background: rgba(24,30,38,0.85); border: 1px solid rgba(255,255,255,0.14); border-radius: 10px; padding: 8px 12px; font-family: var(--mono); text-align: right; backdrop-filter: blur(6px); transition: border-color 0.3s; }
.vf-call small { display: block; font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.vf-call span { font-size: 15px; font-weight: 600; color: var(--text); }
.vf-call.bad { border-color: var(--coral); } .vf-call.bad span { color: var(--coral); }
.vf-call.good { border-color: var(--lime); } .vf-call.good span { color: var(--lime); }
/* The verdict stage: the bench viewfinder pinned to the top, the phone large in the space
   below it, overlapping only the viewfinder's lower-right corner. */
.vfstage { position: relative; height: min(80vh, 800px); width: 100%; }
.vfstage .vf.wide { position: absolute; top: 0; left: 0; width: min(100%, 600px); }
.vfstage .phone.under { top: auto; left: auto; right: 4%; bottom: 0; width: clamp(200px, 38vh, 330px); --tx: 50%; --ty: 50%; --tz: 30px; --ry: -10deg; --d: 0.3; }
.goals { display: grid; gap: 14px; margin-top: 22px; }
.goal { border-left: 2px solid var(--lime); padding-left: 14px; }
.goal h3 { margin: 0 0 4px; font-size: 17px; }
.goal p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; text-align: left; }
.feat { background: rgba(24,30,38,0.85); border: 1px solid var(--line); border-radius: 14px; padding: 16px; backdrop-filter: blur(6px); }
.feat i { display: block; font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--lime); margin-bottom: 8px; }
.feat h3 { margin: 0 0 6px; font-size: 17px; }
.feat p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
@media (max-width: 760px) { .feats { grid-template-columns: 1fr; } .vfstage { height: auto; } .vfstage .vf.wide { position: relative; } .vfstage .phone.under { position: relative; right: auto; bottom: auto; margin: 12px auto 0; --tx: 50%; --ty: 50%; } }
.readouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0 0; }
.ro { background: rgba(24,30,38,0.8); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; backdrop-filter: blur(6px); }
.ro b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; }
.ro span { color: var(--muted); font-size: 11px; font-family: var(--mono); }
.ro.good b { color: var(--lime); }
.verdict { margin-top: 12px; background: var(--lime); color: var(--lime-ink); border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: 14px; }
.verdict small { display: block; font-weight: 800; font-size: 9px; letter-spacing: 2px; text-transform: uppercase; opacity: 0.75; margin-bottom: 2px; font-family: var(--mono); }
.pull { font-family: var(--display); font-size: clamp(18px, 2.1vw, 25px); line-height: 1.3; margin: 0 0 10px; }
.pull::before { content: "\201C"; color: var(--lime); }
.pull::after { content: "\201D"; color: var(--lime); }
.cite { color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: 1px; }
.guard { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; border: 1px solid rgba(201,242,58,0.4); color: var(--lime); border-radius: 999px; padding: 7px 12px; font-size: 12px; font-family: var(--mono); }
.fcard { margin: 18px 0 0; max-width: 300px; }
.fcard img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.1); }
.fcard figcaption { margin-top: 10px; color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: 1px; line-height: 1.5; }
/* ---------- viewfinder ---------- */
.vf { position: relative; height: min(76vh, 760px); aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 40px 100px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.12); opacity: var(--k); transform: translateY(calc((1 - var(--k)) * 24px)) scale(calc(0.97 + var(--k) * 0.03)) rotateY(calc(var(--px) * 3deg)); will-change: transform, opacity; }
.vf video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; display: block; filter: saturate(1.1) contrast(1.05); }
.vf-trail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 0 4px rgba(201,242,58,0.7)); }
.vf-knee { position: absolute; left: 0; right: 0; height: 0; border-top: 2px dashed rgba(201,242,58,0.85); pointer-events: none; }
.vf-knee span { position: absolute; left: 12px; top: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--lime); }
.vf-dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(11,14,18,0.8), 0 0 14px rgba(201,242,58,0.9); pointer-events: none; }
.vf-dot b { position: absolute; left: 18px; top: -3px; font-family: var(--mono); font-weight: 600; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--text); white-space: nowrap; text-shadow: 0 1px 6px rgba(0,0,0,0.9); }
.vf-dot.barpt { background: var(--text); box-shadow: 0 0 0 3px rgba(11,14,18,0.8), 0 0 12px rgba(255,255,255,0.7); }
.vf-top { position: absolute; left: 14px; top: 40px; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--text); text-shadow: 0 1px 6px rgba(0,0,0,0.9); }
.vf-top .rec { display: inline-flex; align-items: center; gap: 6px; }
.vf-top .rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 10px var(--coral); animation: blink 1.2s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.vf-rep { position: absolute; right: 14px; top: 40px; font-family: var(--display); font-size: 13px; letter-spacing: 1px; color: var(--lime); text-shadow: 0 1px 6px rgba(0,0,0,0.9); }
.vf-chip { position: absolute; left: 14px; bottom: 40px; background: var(--lime); color: var(--lime-ink); font-family: var(--mono); font-weight: 600; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; padding: 7px 11px; border-radius: 999px; transition: background 0.3s, color 0.3s; }
.vf-chip.dim { background: rgba(24,30,38,0.85); color: var(--text); }
.vf-corner { position: absolute; width: 22px; height: 22px; border: 2px solid rgba(242,244,246,0.7); pointer-events: none; }
.vf-corner.tl { left: 10px; top: 10px; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.vf-corner.tr { right: 10px; top: 10px; border-left: 0; border-bottom: 0; border-top-right-radius: 6px; }
.vf-corner.bl { left: 10px; bottom: 10px; border-right: 0; border-top: 0; border-bottom-left-radius: 6px; }
.vf-corner.br { right: 10px; bottom: 10px; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .vf video { display: none; } .vf { background: var(--poster) center / cover; } }
/* ---------- phones: real screens, on the side opposite the copy, with the app's own labels ---------- */
.stage { position: relative; height: min(80vh, 800px); width: 100%; perspective: 1400px; }
/* Each phone has its own share of the scene's entry (--d): the first arrives, then the second. */
.phone { position: absolute; top: 50%; left: 50%; width: clamp(190px, 31vh, 300px); margin: 0; transform-style: preserve-3d; --d: 0; --kd: clamp(0, calc((var(--k) - var(--d)) / (1 - var(--d))), 1); opacity: var(--kd); will-change: transform, opacity;
  transform: translate(-50%, -50%) translate3d(calc(var(--tx) + (1 - var(--kd)) * var(--dir) * 30vw), calc(var(--ty) + (1 - var(--kd)) * 6vh), var(--tz)) rotateY(calc(var(--ry) + var(--px) * 7deg + (1 - var(--kd)) * var(--dir) * 35deg)) rotateX(calc(var(--py) * -4deg)); transition: transform 0.15s linear, opacity 0.15s linear; }
.phone.a { --tx: -60%; --ty: -4%; --tz: -30px; --ry: 14deg; z-index: 1; }
.phone.b { --tx: 42%; --ty: 6%; --tz: 20px; --ry: -10deg; z-index: 2; --d: 0.45; }
.panel.right .phone { --dir: -1; }
.panel:not(.right) .phone { --dir: 1; }
.stage.flank { position: absolute; inset: 0; height: auto; pointer-events: none; }
.stage.flank .phone { width: clamp(170px, 26vh, 240px); }
@media (max-width: 1100px) { .stage.flank { display: none; } }
.stage.flank .phone.a { --tx: -200%; --ty: -12%; --tz: -60px; --ry: 22deg; --dir: -1; --d: 0; }
.stage.flank .phone.b { --tx: 200%; --ty: -4%; --tz: -60px; --ry: -22deg; --dir: 1; --d: 0.4; }
.phone .frame { border-radius: 30px; padding: 8px; background: linear-gradient(160deg, #1a2029, #0b0e12); box-shadow: 0 40px 90px rgba(0,0,0,0.65), inset 0 0 0 1px rgba(255,255,255,0.16), 0 0 0 1px rgba(0,0,0,0.6); }
.phone img { display: block; width: 100%; height: auto; border-radius: 23px; }
.phone .callout { position: absolute; left: var(--cx); top: var(--cy); transform: translate(0, -50%); display: inline-flex; align-items: center; gap: 8px; background: rgba(11,14,18,0.92); border: 1px solid rgba(201,242,58,0.5); color: var(--text); font-family: var(--mono); font-size: 10.5px; letter-spacing: 1px; padding: 6px 10px 6px 8px; border-radius: 999px; white-space: nowrap; opacity: 0; transition: opacity 0.5s var(--ease) 0.9s, transform 0.5s var(--ease) 0.9s; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.phone .callout::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); flex: none; }
.phone .callout.left { transform: translate(-100%, -50%); }
.panel.on .phone .callout { opacity: 1; }
/* ring, badges, tiles, stores, footer, modal */
.ringwrap { display: flex; justify-content: center; margin: 0 auto 8px; position: relative; }
.ring { width: min(300px, 60vw); height: auto; position: relative; }
.ring .track { stroke: rgba(255,255,255,0.12); }
.ring .fill { stroke: var(--lime); filter: drop-shadow(0 0 6px rgba(201,242,58,0.55)); }
.ring .dot { fill: var(--lime); filter: drop-shadow(0 0 6px rgba(201,242,58,0.95)); animation: pulse 1.6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }
.ringwrap::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(201,242,58,0.22), rgba(255,170,80,0.08) 55%, transparent 72%); filter: blur(24px); }
.ring text { fill: var(--text); font-family: var(--display); }
.ring .lbl { fill: var(--muted); font-family: var(--mono); font-size: 4.5px; letter-spacing: 0.5px; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.badge { background: var(--lime); color: var(--lime-ink); font-weight: 800; letter-spacing: 1.5px; font-size: 11px; padding: 7px 11px; border-radius: 999px; font-family: var(--mono); }
.badge.ghost { background: rgba(24,30,38,0.8); color: var(--text); border: 1px solid var(--line); letter-spacing: 0.5px; font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; text-align: left; }
.tile { background: rgba(24,30,38,0.85); border: 1px solid var(--line); border-radius: 14px; padding: 14px; backdrop-filter: blur(6px); }
.tile h3 { font-size: 14px; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.tile h3 i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); display: inline-block; box-shadow: 0 0 10px rgba(201,242,58,0.8); }
.tile p { color: var(--muted); margin: 0; font-size: 12.5px; line-height: 1.5; }
.stores { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: 1px; }
.store { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
footer { position: relative; z-index: 12; background: var(--ink); border-top: 1px solid var(--line); padding: 44px 24px 60px; color: var(--muted); font-size: 13px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
footer .links { display: flex; gap: 22px; font-family: var(--mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
footer a { text-decoration: none; color: var(--muted); }
footer a:hover { color: var(--lime); }
footer .wm { font-family: var(--wordmark); font-weight: 700; letter-spacing: 0.42em; font-size: 14px; color: var(--text); margin-left: 0.42em; }
.modal { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal .scrim { position: absolute; inset: 0; background: rgba(5,7,10,0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sheet { position: relative; width: min(520px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: 0 40px 100px rgba(0,0,0,0.7); transform: translateY(16px) scale(0.98); opacity: 0; transition: transform 0.35s var(--ease), opacity 0.35s var(--ease); max-height: calc(100svh - 40px); overflow: hidden auto; }
.modal.open .sheet { transform: none; opacity: 1; }
.sheet h3 { font-family: var(--display); font-size: 24px; margin: 0 0 6px; letter-spacing: -0.4px; }
.sheet p { color: var(--muted); margin: 0 0 18px; font-size: 14px; }
.close { position: absolute; top: 14px; right: 14px; background: var(--card2); border: 0; color: var(--text); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 18px; }
label { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin: 12px 0 6px; }
input, textarea { width: 100%; background: var(--ink); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 15px; }
input:focus, textarea:focus { outline: 2px solid var(--lime); outline-offset: 0; border-color: transparent; }
textarea { min-height: 76px; resize: vertical; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg input { position: absolute; width: 1px; height: 1px; left: 0; top: 0; opacity: 0; pointer-events: none; }
.seg span { display: flex; align-items: center; justify-content: center; gap: 7px; text-align: center; padding: 11px 8px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; font-weight: 600; font-size: 13px; }
.seg span svg { width: 18px; height: 18px; flex: none; }
.seg input:checked + span { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none; }
.err { color: var(--coral); font-size: 13px; margin-top: 10px; display: none; }
.done { display: none; text-align: center; padding: 8px 0; }
.done .ok { width: 84px; height: 84px; margin: 0 auto 12px; }
.sheet.sent form { display: none; }
.sheet.sent .done { display: block; }
/* ---------- phones and narrow screens: the same sections, stacked ---------- */
body.simple .vignette, body.simple .scroll-spacer, body.simple #progress, body.simple .scrollhint { display: none; }
body.simple .tint { opacity: 0.6; }
body.simple .panel { position: relative; opacity: 1 !important; pointer-events: auto; min-height: 0; padding: 6vh 0; align-items: flex-start; --k: 1; overflow: hidden; }
body.simple .panel .wrap { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 64px 28px 0; }
body.simple .panel .copy, body.simple .panel.right .copy { transform: none !important; max-width: 100%; margin: 0; padding: 20px 0; order: 2; justify-self: stretch; }
body.simple .panel .copy::before { inset: -4% 0; border-radius: 28px; }
/* On a phone the viewfinder spans the column, flush with the text below it. */
body.simple .panel .vf, body.simple .panel.right .vf { width: min(100%, 440px); max-width: none; height: auto; max-height: none; aspect-ratio: 9 / 16; margin: 0 auto; order: 1; transform: none; justify-self: center; align-self: start; }
body.simple .stage, body.simple .stage.flank { position: static; width: 100%; height: auto; perspective: none; display: flex; justify-content: center; gap: 12px; order: 1; pointer-events: auto; }
body.simple .phone { position: static; width: calc(50% - 6px); max-width: 220px; }
body.simple .phone .callout { display: none; }
body.simple .readouts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.simple .ctas .btn { white-space: normal; }
body.simple .tiles { grid-template-columns: 1fr; }
body.simple .fcard { max-width: 100%; }
@media (max-width: 820px) {
  .bar nav a:not(.cta) { display: none; }
  h1 { font-size: clamp(36px, 10vw, 60px); }
  .scatter .word { font-size: 11px; letter-spacing: 0.2em; }
}
@media (prefers-reduced-motion: reduce) {
  .scatter .l { transition: none; }
}

/* back to top: shows once the hero is gone, sits above the footer's z-index */
.totop { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(24,30,38,0.85); color: var(--text); border: 1px solid var(--line); backdrop-filter: blur(6px); box-shadow: 0 10px 30px rgba(0,0,0,0.5); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), background 0.2s; }
.totop.on { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--lime); color: var(--lime-ink); }

/* paged mode (desktop): no native scroll, one scene at a time, a dot rail on the right */
body.paged { overflow: hidden; height: 100vh; }
body.paged .scroll-spacer { display: none; }
body.paged footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; transform: translateY(100%); transition: transform 0.6s var(--ease); }
body.paged.at-end footer { transform: none; }
.dots { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; gap: 10px; }
.dot { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 1px solid rgba(242,244,246,0.45); background: transparent; cursor: pointer; transition: background 0.25s, border-color 0.25s, transform 0.25s; }
.dot:hover { border-color: var(--text); transform: scale(1.2); }
.dot.on { background: var(--lime); border-color: var(--lime); box-shadow: 0 0 10px rgba(201,242,58,0.7); }
body.simple .dots { display: none; }
body.paged .totop { bottom: 22px; right: 22px; }
body.paged.at-end .totop { bottom: 150px; }

/* Paged mode: phones enter one after the other when their scene becomes current, instead of
   riding the fade together. --kd is forced by the scene's state; transform and opacity, which
   derive from it, transition with a per-phone delay. */
body.paged .phone { --kd: 0; transition: transform 0.8s var(--ease), opacity 0.8s var(--ease); }
body.paged .panel.on .phone { --kd: 1; }
body.paged .panel.on .phone.a { transition-delay: 0.08s; }
body.paged .panel.on .phone.b { transition-delay: 0.42s; }
body.paged .panel:not(.on) .phone { transition-delay: 0s; transition-duration: 0.35s; }
/* On phones the same idea with a plain rise: a section's phones come up one after the other as
   it scrolls into view. */
body.simple .phone { transform: translateY(22px); opacity: 0; transition: transform 0.7s var(--ease), opacity 0.7s var(--ease); }
body.simple .panel.on .phone { transform: none; opacity: 1; }
body.simple .panel.on .phone.b { transition-delay: 0.35s; }
/* The bench viewfinder keeps its wide shape on phones; the verdict stage stacks it over the phone. */
body.simple .panel .vf.wide { aspect-ratio: 16 / 10; width: 100%; }
body.simple .vfstage { flex-direction: column; align-items: center; }
body.simple .vfstage .phone.under { width: min(62%, 230px); margin: 0 auto; }
