/* metric-matched fallbacks so the web-font swap does not shift the hero (CLS 0) */
@font-face{font-family:"Fraunces Fallback";src:local("Georgia Bold"),local(Georgia);font-weight:600;size-adjust:76.3%;ascent-override:128.2%;descent-override:33.4%;line-gap-override:0%}
@font-face{font-family:"Manrope Fallback";src:local(Arial);size-adjust:103.7%;ascent-override:102.8%;descent-override:28.9%;line-gap-override:0%}
:root{
  --bg:#0c1510; --bg2:#13211a; --ink:#f3efe4; --mute:#a9b3a6; --gold:#f2c230; --green:#5aa04a; --teal:#2f9c95;
  --line:rgba(243,239,228,.12);
}
*{box-sizing:border-box;margin:0;padding:0}
html{background:var(--bg);overflow-x:clip} /* clip, not hidden: the journey's off-screen props must not widen the page */
body{color:var(--ink);font-family:Manrope,"Manrope Fallback",system-ui,sans-serif;overflow-x:hidden;-webkit-font-smoothing:antialiased}
h1,h2,.serif{font-family:Fraunces,"Fraunces Fallback",Georgia,serif;font-weight:600;letter-spacing:-.02em;line-height:1.02}
a{color:inherit}
.grain{position:fixed;inset:0;pointer-events:none;z-index:50;opacity:.06;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
nav{position:fixed;top:0;left:0;right:0;z-index:40;display:flex;justify-content:space-between;align-items:center;padding:18px clamp(16px,4vw,48px)}
nav .brand{display:flex;gap:10px;align-items:center;font-family:Fraunces,serif;font-size:20px;color:var(--gold);text-decoration:none}
nav .brand img{width:30px;height:30px;border-radius:8px}
.herocta{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;gap:8px;padding:12px 20px;border-radius:999px;background:var(--gold);color:#1a1405;font-weight:700;text-decoration:none;font-size:15px;transition:transform .2s}
.btn:hover{transform:translateY(-2px)}
.btn.ghost{background:transparent;color:var(--ink);border:1px solid var(--line);backdrop-filter:blur(8px)}

/* HERO */
.hero{min-height:100svh;display:grid;place-items:center;text-align:center;padding:92px 16px 0;position:relative;overflow:hidden;grid-template-rows:auto auto}
.herodevs{position:relative;width:min(1000px,94vw);height:min(44vw,440px);margin-top:1vh;perspective:1600px;transform-style:preserve-3d}
.hd-rig{position:absolute;inset:0;transform-style:preserve-3d;will-change:transform}
.tint{position:fixed;inset:0;z-index:-2;pointer-events:none;transition:background 1.2s ease;background:radial-gradient(60% 50% at 50% 60%,var(--tc,rgba(90,160,74,.10)),transparent 70%)}
#dust{position:fixed;inset:0;width:100%;height:100%;z-index:60;pointer-events:none}
.herodevs .dev3d{position:absolute;will-change:transform}
.hd-mac{width:66%;left:17%;top:2%;aspect-ratio:1.58}
.hd-tab{width:27%;left:-1%;top:20%;aspect-ratio:215/282}
.hd-phone{width:15%;right:3%;top:18%;aspect-ratio:71.5/149.6}
.aurora{position:absolute;inset:-20%;z-index:-1;filter:blur(80px);opacity:.55;
  background:radial-gradient(40% 35% at 30% 30%,rgba(90,160,74,.55),transparent 70%),radial-gradient(35% 30% at 72% 60%,rgba(242,194,48,.35),transparent 70%),radial-gradient(30% 30% at 50% 90%,rgba(47,156,149,.35),transparent 70%);
  animation:drift 18s ease-in-out infinite alternate}
@keyframes drift{to{transform:translate3d(4%,-3%,0) rotate(8deg) scale(1.08)}}
/* C11 Score Story: fictional demo card over the rig; the final state is plain CSS, JS only animates it in */
.hd-score{position:absolute;left:calc(50% - 13em);top:8%;width:26em;font-size:clamp(9px,1.2vw,13px);padding:1em 1.1em .6em;border-radius:1.2em;text-align:left;
  background:rgba(12,21,16,.86);border:1px solid var(--line);box-shadow:0 2em 4em rgba(0,0,0,.5);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.hs-head{display:flex;justify-content:space-between;align-items:baseline;gap:.8em;margin-bottom:.7em}
.hs-head b{font-size:1.05em;color:var(--ink);font-weight:600}
.hs-head span{font-size:.8em;letter-spacing:.08em;text-transform:uppercase;color:var(--gold);white-space:nowrap}
.hs-row{position:relative;display:flex;align-items:center;gap:.8em;padding:.55em 0;border-top:1px solid rgba(243,239,228,.08)}
.hs-row .n{font-style:normal;font-family:Fraunces,serif;font-size:1.7em;line-height:1;color:var(--gold);min-width:1.6em;font-variant-numeric:tabular-nums}
.hs-row .t{flex:1;min-width:0;color:var(--ink);font-size:1em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sc{position:relative;flex:none;font-size:.85em;padding:.25em .75em;border-radius:99px;border:1px solid rgba(242,194,48,.4);background:rgba(242,194,48,.1);color:var(--gold);cursor:help}
.sc:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.sc small{position:absolute;right:0;top:calc(100% + .5em);width:20em;padding:.7em .9em;border-radius:.9em;background:#15201a;border:1px solid var(--line);color:var(--ink);font-size:.95em;line-height:1.4;text-align:left;white-space:normal;opacity:0;pointer-events:none;transition:opacity .2s;z-index:3}
.sc:hover small,.sc:focus-visible small,.sc[aria-expanded=true] small{opacity:1}
@media(max-width:559px){.hs-row:nth-of-type(4){display:none}.hd-score{left:calc(50% - 13em - 3%)}}
.eyebrow{font-size:13px;letter-spacing:.22em;text-transform:uppercase;color:var(--gold);display:flex;flex-wrap:wrap;width:min(620px,calc(100vw - 32px));margin:0 auto;gap:8px 14px;justify-content:center;align-items:center}
.eyebrow .chip{letter-spacing:.14em;font-variant-numeric:tabular-nums;padding:5px 12px;border:1px solid rgba(242,194,48,.35);border-radius:99px;background:rgba(242,194,48,.08);cursor:help}
.eyebrow .chip b{display:inline-block;min-width:3ch;text-align:center;font-weight:700}
@media(max-width:559px){.eyebrow{font-size:12px;letter-spacing:.18em}.eyebrow .chip{letter-spacing:.1em}}
.hero h1{font-size:clamp(46px,min(9vw,13vh),132px);margin:12px 0 16px}
.line{display:block;overflow:hidden;padding-bottom:.14em;margin-bottom:-.14em}
.line>span{display:inline-block}
.hero p{max-width:560px;margin:0 auto 22px;color:var(--mute);font-size:clamp(16px,1.6vw,20px);line-height:1.5}
.scrollcue{margin-top:28px;font-size:12px;letter-spacing:.2em;color:var(--mute);text-transform:uppercase}
.scrollcue i{display:block;width:1px;height:46px;margin:12px auto 0;background:linear-gradient(var(--gold),transparent);animation:cue 1.8s infinite}
@keyframes cue{0%{transform:scaleY(0);transform-origin:top}50%{transform:scaleY(1);transform-origin:top}51%{transform-origin:bottom}100%{transform:scaleY(0);transform-origin:bottom}}

/* device chrome (journey) */
.shell{position:absolute;inset:0;border-radius:var(--r,46px);background:linear-gradient(145deg,#3a3d3f,#121314 40%,#2b2d2f);padding:var(--b,11px);
  box-shadow:0 0 0 1px rgba(255,255,255,.08) inset,0 50px 120px rgba(0,0,0,.6),0 0 120px rgba(90,160,74,.12)}
.island{position:absolute;top:calc(var(--b,11px) + 8px);left:50%;transform:translateX(-50%);width:28%;height:24px;border-radius:20px;background:#000;z-index:2}
.base{position:absolute;left:50%;top:100%;transform:translateX(-50%);width:116%;height:14px;opacity:0;border-radius:0 0 18px 18px;
  background:linear-gradient(#c9cbcd,#7d8083);box-shadow:0 20px 40px rgba(0,0,0,.5)}
.base:before{content:"";position:absolute;left:50%;top:0;transform:translateX(-50%);width:16%;height:5px;border-radius:0 0 8px 8px;background:#6a6d70}

/* NUMBERS */
.numbers{padding:18vh clamp(16px,6vw,90px);display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:40px;max-width:1200px;margin:0 auto}
.num .v{font-family:Fraunces,serif;font-size:clamp(56px,7vw,96px);color:var(--gold);line-height:1}
.num .v{position:relative;display:inline-block;cursor:help}
.num .v:after{content:attr(data-src);position:absolute;left:0;bottom:calc(100% + 8px);white-space:nowrap;font:600 11px Manrope,sans-serif;letter-spacing:.04em;color:var(--ink);background:#1d2019;border:1px solid rgba(242,194,48,.4);padding:6px 10px;border-radius:99px;opacity:0;transform:translateY(6px);transition:.25s;pointer-events:none}
.num .v:hover:after,.num .v:focus:after{opacity:1;transform:none}
.num .l{color:var(--mute);margin-top:10px;line-height:1.5}
.principles{max-width:1100px;margin:0 auto;padding:0 clamp(16px,6vw,90px) 16vh}
.principles h2{font-size:clamp(32px,5vw,64px);max-width:18ch;margin-bottom:40px}
.plist{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}
.plist div{border:1px solid var(--line);border-radius:20px;padding:24px;background:linear-gradient(180deg,rgba(255,255,255,.03),transparent)}
.plist b{display:block;font-size:18px;margin-bottom:8px}
.plist span{color:var(--mute);line-height:1.55}

/* CTA */
.cta{min-height:90svh;display:grid;place-items:center;text-align:center;padding:16vh 16px;position:relative;overflow:hidden}
.cta h2{font-size:clamp(42px,8vw,120px);margin-bottom:24px}
.cta p{color:var(--mute);max-width:520px;margin:0 auto 32px;line-height:1.55}
footer{border-top:1px solid var(--line);padding:28px clamp(16px,4vw,48px);display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;color:var(--mute);font-size:14px}

@media (max-width:760px){
  nav .btn{padding:10px 14px;font-size:13px}
}
@media (prefers-reduced-motion:reduce){.aurora,.scrollcue i{animation:none}}
/* reduced motion: real-app row is a plain horizontally scrolling strip */
.real.static{height:auto;padding:12vh 0 8vh;overflow:visible}
.real.static .rtrack{overflow-x:auto;scroll-snap-type:x mandatory;padding:0 clamp(16px,6vw,90px);transform:none!important}
.real.static .rphone{scroll-snap-align:center}
.rshell{position:relative}
.rplay{position:absolute;inset:0;margin:auto;width:64px;height:64px;border-radius:50%;border:0;background:var(--gold);color:#1a1405;font-size:22px;cursor:pointer}
.rplay[hidden]{display:none}
.real{height:100svh;position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:center;perspective:1400px}
.realhead{padding:0 clamp(16px,6vw,90px);margin-bottom:4vh}
.realhead h2{font-size:clamp(34px,5vw,72px);margin-top:10px}
.rtrack{display:flex;gap:clamp(24px,5vw,80px);padding:0 50vw 0 clamp(16px,30vw,520px);will-change:transform;transform-style:preserve-3d}
.rphone{flex:none;width:clamp(200px,22vw,300px);transform-style:preserve-3d}
.rshell{aspect-ratio:390/844;border-radius:38px;padding:9px;background:linear-gradient(145deg,#3a3d3f,#121314 40%,#2b2d2f);box-shadow:0 40px 90px rgba(0,0,0,.55)}
.rshell video{width:100%;height:100%;object-fit:cover;border-radius:30px;display:block;background:#111}
.rphone figcaption{margin-top:16px}
.rphone figcaption b{display:block;font-family:Fraunces,serif;font-size:22px}
.rphone figcaption span{color:var(--mute);font-size:14px}
@media (max-width:760px){.real{justify-content:flex-start;padding-top:96px}.realhead{margin-bottom:3vh}.realhead h2{font-size:32px}.rphone{width:min(56vw,230px,calc((100svh - 360px)*.462))}.real{padding-bottom:16px}.rshell{border-radius:30px;padding:7px}.rshell video{border-radius:24px}}
@media (max-height:500px){.real{padding-top:70px}.realhead{display:none}.rphone{width:28vh}.rphone figcaption{display:none}}
.film{padding:12vh clamp(16px,4vw,48px) 10vh;text-align:center;position:relative}
.filmhead h2{font-size:clamp(34px,5vw,72px);margin:10px 0 5vh}
.filmtabs{display:inline-flex;gap:6px;padding:5px;border-radius:999px;border:1px solid var(--line);margin:-2vh 0 4vh;flex-wrap:wrap;justify-content:center}
.filmtabs button{font:inherit;font-size:14px;padding:9px 16px;border-radius:999px;border:0;background:none;color:var(--mute);cursor:pointer}
.filmtabs button.on{background:var(--gold);color:#1a1405;font-weight:700}
.filmbox{max-width:1200px;margin:0 auto;border-radius:22px;overflow:hidden;border:1px solid var(--line);box-shadow:0 40px 120px rgba(0,0,0,.5),0 0 120px rgba(242,194,48,.08);will-change:transform}
.filmbox video{display:block;width:100%;aspect-ratio:16/9;background:#000}

/* Real section cards: same surface as the "After the premiere" / "Deterministic scoring" cards (vol.css) plus a soft green glow; caption is its own strip */
.rphone{padding:14px 14px 0;border:1px solid rgba(255,255,255,.1);border-radius:26px;position:relative;isolation:isolate;
  background:linear-gradient(155deg,rgba(255,255,255,.085),rgba(255,255,255,.02) 42%,rgba(0,0,0,.18));
  box-shadow:0 1px 0 rgba(255,255,255,.14) inset,0 -14px 28px rgba(0,0,0,.26) inset,0 2px 0 rgba(0,0,0,.45),0 22px 38px -16px rgba(0,0,0,.7),0 0 0 1px rgba(0,0,0,.3),0 0 46px -6px rgba(90,160,74,.34),0 0 120px -30px rgba(143,209,122,.28)}
.rphone figcaption{margin:16px -14px 0;padding:14px 18px 16px;border-top:1px solid rgba(255,255,255,.12);border-radius:0 0 26px 26px;background:rgba(0,0,0,.28)}
.rphone figcaption b{font-size:20px;margin-bottom:2px}
@media (max-width:760px){.rphone{width:min(60vw,250px,calc((100svh - 410px)*.462 + 28px));padding:10px 10px 0;border-radius:22px}.rphone figcaption{margin:12px -10px 0;padding:10px 14px 12px;border-radius:0 0 22px 22px}.rphone figcaption b{font-size:17px}.rphone figcaption span{font-size:13px}}

/* Scroll cue at section transitions: a small gold line + chevron in the empty space between sections */
.xcue{display:flex;justify-content:center;height:64px;margin:6px 0 -10px;pointer-events:none}
.xcue i{display:block;width:12px;height:12px;margin-top:20px;border-right:1.5px solid var(--gold);border-bottom:1.5px solid var(--gold);transform:rotate(45deg);opacity:0;animation:xcue 2.4s ease-in-out infinite}
@keyframes xcue{0%{opacity:0;transform:translateY(-8px) rotate(45deg)}40%{opacity:.8}80%,100%{opacity:0;transform:translateY(14px) rotate(45deg)}}
@media (prefers-reduced-motion:reduce){.xcue{display:none}}

/* Number cards: same card as the Real phones (vol.css surface, green glow); number and label get room, label sits in its own strip */
.numbers{gap:28px}
.num{padding:26px 24px 0;border:1px solid rgba(255,255,255,.1);border-radius:26px;overflow:visible;display:flex;flex-direction:column;
  box-shadow:0 1px 0 rgba(255,255,255,.14) inset,0 -14px 28px rgba(0,0,0,.26) inset,0 2px 0 rgba(0,0,0,.45),0 22px 38px -16px rgba(0,0,0,.7),0 0 0 1px rgba(0,0,0,.3),0 0 46px -6px rgba(90,160,74,.34),0 0 120px -30px rgba(143,209,122,.28)}
.num .l{margin:20px -24px 0;padding:14px 24px 18px;flex:1;border-top:1px solid rgba(255,255,255,.12);border-radius:0 0 26px 26px;background:rgba(0,0,0,.28)}
/* Tree rings: organic growth rings behind everything, drawn in as you scroll */
#rings{opacity:.5;position:fixed;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none}
#rings path{fill:none;stroke-linecap:round}
.num .v{font-size:clamp(48px,5.2vw,76px)}
.num.views .v{font-size:clamp(40px,3.5vw,54px);white-space:nowrap}
.numbers .num.views .v{font-size:clamp(36px,3.1vw,48px)}

/* Real phones: no card behind the phone any more (the number cards carry that look); the glow stays, the caption is its own small card */
.rphone{padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.rphone .rshell{box-shadow:0 40px 90px rgba(0,0,0,.55),0 0 60px -6px rgba(90,160,74,.4),0 0 130px -30px rgba(143,209,122,.3)}
.rphone figcaption{margin:20px 0 0;padding:12px 16px 14px;border:1px solid rgba(255,255,255,.12);border-radius:16px;background:linear-gradient(155deg,rgba(255,255,255,.07),rgba(0,0,0,.22));box-shadow:0 14px 26px -18px rgba(0,0,0,.7)}
@media (max-width:760px){.rphone{padding:0;width:min(56vw,230px,calc((100svh - 400px)*.462))}.rphone figcaption{margin:14px 0 0;padding:10px 14px 12px;border-radius:14px}}

/* Partners section: the number-card surface again, with the green glow */
.partners{max-width:1100px;margin:0 auto;padding:12vh clamp(16px,6vw,90px) 8vh}
.partners h2{font-size:clamp(32px,5vw,56px);margin:.2em 0;max-width:20ch}
.partners .sub{color:var(--mute);max-width:60ch;line-height:1.5}
.ptgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px;margin-top:32px}
.partners .eyebrow{text-align:left}
.ptc{padding:22px 22px 24px;border:1px solid rgba(255,255,255,.1);border-radius:26px;display:flex;flex-direction:column;gap:10px;
  background:linear-gradient(155deg,rgba(255,255,255,.085),rgba(255,255,255,.02) 42%,rgba(0,0,0,.18));
  box-shadow:0 1px 0 rgba(255,255,255,.14) inset,0 -14px 28px rgba(0,0,0,.26) inset,0 2px 0 rgba(0,0,0,.45),0 22px 38px -16px rgba(0,0,0,.7),0 0 0 1px rgba(0,0,0,.3),0 0 46px -6px rgba(90,160,74,.34),0 0 120px -30px rgba(143,209,122,.28)}
.ptc b{font-family:Fraunces,serif;font-size:22px;font-weight:600}
.ptc span{color:var(--mute);line-height:1.5;font-size:15px}
.ptc.next{border-style:dashed;box-shadow:0 14px 26px -18px rgba(0,0,0,.6);background:none}
.ptc .pill{align-self:flex-start;font-style:normal}

/* Real captions turn with their phones (real3d.js sets the transform); stronger contrast */
.real.gl3 .rphone figcaption{background:linear-gradient(155deg,rgba(255,255,255,.1),rgba(0,0,0,.5)),#0b110c;border-color:rgba(255,255,255,.26);box-shadow:0 18px 30px -14px rgba(0,0,0,.85),0 0 30px -8px rgba(90,160,74,.35);backface-visibility:hidden}
.rphone figcaption b{color:#f3efe4}.rphone figcaption span{color:rgba(243,239,228,.78)}
/* no one-word last lines */
h1,h2,h3,.eyebrow,.btn,figcaption b{text-wrap:balance}p,.sub,li,figcaption span,.l{text-wrap:pretty}
