@font-face{font-family:Geist;src:url(assets/fonts/Geist-Variable.woff2) format('woff2');font-weight:100 900;font-display:block}
@font-face{font-family:'Geist Mono';src:url(assets/fonts/GeistMono-Variable.woff2) format('woff2');font-weight:100 900;font-display:block}
:root{--bg:#020604;--ink:#EDF6F1;--dim:#9FB5A9;--acc:#2BF08B;--em:#2BF08B;--btn:#2BF08B;--btnInk:#021208;--line:rgba(255,255,255,.14);
  --scrim:linear-gradient(90deg,rgba(2,6,4,.93) 0%,rgba(2,6,4,.74) 30%,rgba(2,6,4,0) 52%);
  --scrimPh:linear-gradient(0deg,rgba(2,6,4,.96) 0%,rgba(2,6,4,.88) 28%,rgba(2,6,4,0) 43%);color-scheme:dark}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--ink);font-family:Geist,system-ui,sans-serif;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
.nav{position:fixed;top:0;left:0;right:0;z-index:20;display:flex;align-items:center;gap:32px;padding:18px clamp(20px,4vw,56px)}
.brand{display:flex;align-items:center;gap:12px}.brand img{height:40px;width:auto}
.brand span{display:flex;flex-direction:column;line-height:1.2}
.brand b{font-weight:500;letter-spacing:.34em;font-size:15px}.brand i{font-style:normal;letter-spacing:.3em;font-size:9px;color:var(--acc);font-family:'Geist Mono',monospace}
.links{display:flex;gap:28px;margin-left:auto;font-size:14.5px;color:var(--dim)}
.btn{display:inline-flex;align-items:center;justify-content:center;background:var(--btn);color:var(--btnInk);font-weight:600;font-size:15.5px;padding:14px 24px;border-radius:10px;box-shadow:0 10px 30px -12px rgba(43,240,139,.6)}
.btn.sm{padding:10px 18px;font-size:14px}.btn.ghost{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}
.story{height:520vh;position:relative}
.stage{position:sticky;top:0;height:100vh;height:100svh;overflow:hidden}
.stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.scrim{position:absolute;inset:0;background:var(--scrim);pointer-events:none}
.copy{position:absolute;left:clamp(24px,6vw,104px);top:0;bottom:0;width:min(540px,40vw)}
.beat{position:absolute;left:0;right:0;top:50%;transform:translateY(-44%);opacity:0;transition:opacity .6s ease,transform .9s cubic-bezier(.16,1,.3,1);pointer-events:none}
.beat.on{opacity:1;transform:translateY(-50%);pointer-events:auto;transition-delay:.12s}
.tag{font-family:'Geist Mono',monospace;font-size:12px;font-weight:500;letter-spacing:.16em;text-transform:uppercase;color:var(--acc);margin-bottom:22px;display:flex;align-items:center;gap:12px}
.tag:before{content:'';width:28px;height:1px;background:var(--acc)}
h1,h2{font-family:Geist,sans-serif;font-weight:600;font-size:clamp(38px,3.9vw,60px);line-height:1.04;letter-spacing:-.035em;margin:0 0 24px;text-wrap:balance}
h1 em,h2 em{font-style:normal;color:var(--em)}
.beat p{font-size:18px;line-height:1.6;color:var(--dim);max-width:44ch;margin:0}
.ctas{display:flex;gap:12px;flex-wrap:wrap;margin-top:32px}
.own{margin-top:22px;font-size:13.5px;color:var(--dim);display:flex;align-items:center;gap:10px}
.live{width:8px;height:8px;border-radius:50%;background:var(--acc);box-shadow:0 0 0 4px rgba(43,240,139,.18);animation:pulse 2s ease-in-out infinite}
@keyframes pulse{50%{box-shadow:0 0 0 7px rgba(43,240,139,0)}}
.hint{position:absolute;left:50%;bottom:26px;transform:translateX(-50%);font-size:11px;letter-spacing:.24em;text-transform:uppercase;color:var(--dim);display:flex;flex-direction:column;align-items:center;gap:10px;transition:opacity .5s}
.hint span{width:1px;height:38px;background:linear-gradient(var(--acc),transparent);animation:drop 1.8s ease-in-out infinite}
@keyframes drop{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}}
.rail{position:absolute;right:clamp(18px,3vw,40px);top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:12px}
.rail i{width:3px;height:26px;border-radius:3px;background:var(--line);transition:background .4s,height .4s}.rail i.on{background:var(--acc);height:42px}
.after{min-height:86vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:120px 24px;position:relative;background:radial-gradient(60% 50% at 50% 40%,rgba(43,240,139,.13),transparent 70%),var(--bg)}
.after .tag:before{display:none}
.after p{color:var(--dim);font-size:18px;line-height:1.6;max-width:46ch;margin:0 0 32px}
.note{margin-top:64px;font-size:12.5px;color:var(--dim);opacity:.7;max-width:60ch}
.chip{position:fixed;right:18px;bottom:18px;z-index:30;display:flex;align-items:center;gap:2px;padding:4px;border-radius:999px;background:rgba(2,6,4,.84);color:#EDF3F9;backdrop-filter:blur(12px);box-shadow:0 0 0 1px rgba(255,255,255,.14);font-size:13px}
.chip a{padding:8px 12px;border-radius:999px}.chip .nm{font-weight:600}
@media (max-width:760px){
  .links{display:none}.nav{gap:12px;padding:14px 16px}.brand img{height:28px}.brand b{font-size:13px}.brand i{font-size:8px}.nav .btn.sm{margin-left:auto;padding:9px 14px;font-size:13px}
  .scrim{background:var(--scrimPh)}
  .copy{left:20px;right:20px;width:auto;top:auto;bottom:0;height:54%}
  .beat{top:auto;bottom:34px;transform:translateY(14px)}.beat.on{transform:none}
  h1,h2{font-size:clamp(30px,8.4vw,39px);margin-bottom:14px}.tag{margin-bottom:12px;font-size:11px}
  .beat p{font-size:15.5px;line-height:1.55}.ctas{margin-top:20px}.ctas .btn{padding:13px 18px;font-size:14.5px}.own{display:none}
  .rail{display:none}.hint{display:none}
  .chip{top:66px;bottom:auto;right:12px;font-size:12px}
}
@media (prefers-reduced-motion:reduce){.beat,.btn{transition:none}.hint span,.live{animation:none}}

/* one world: a taller story, the dark dip between acts, a scroll pill on phones, a soft nav backing */
.story{height:2063vh}
.veil{position:absolute;inset:0;background:var(--bg);opacity:0;pointer-events:none}
.hint{transition:opacity .5s}
.nav{background:linear-gradient(180deg,rgba(2,6,4,.88),rgba(2,6,4,.55) 70%,rgba(2,6,4,0));backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
@media (max-width:760px){
  .story{height:1629vh}
  .hint{display:flex!important;top:auto;bottom:calc(46% + 8px);left:50%;padding:10px 16px;border-radius:999px;background:rgba(43,240,139,.95);box-shadow:0 10px 30px -12px rgba(0,0,0,.6);color:#021208;font-weight:600;font-size:11px;letter-spacing:.16em;flex-direction:row;gap:8px;white-space:nowrap;animation:hb 1.6s ease-in-out infinite}
  .hint span{width:9px;height:9px;border-right:2px solid #021208;border-bottom:2px solid #021208;background:none;transform:rotate(45deg);animation:none;margin-top:-4px}
  @keyframes hb{50%{transform:translate(-50%,6px)}}
}

/* phones, design pass: the scene gets the top two-thirds, the words sit tight at the bottom */
@media (max-width:760px){
  .copy{height:40%}
  .beat{bottom:calc(18px + env(safe-area-inset-bottom,0px))}
  h1,h2{font-size:clamp(24px,6.6vw,29px);line-height:1.08;margin-bottom:9px}.tag{margin-bottom:8px;font-size:10px;letter-spacing:.16em}
  .beat p{font-size:13.5px;line-height:1.5;display:block;color:var(--dim)}
  .ctas{margin-top:12px;gap:8px}.ctas .btn{padding:11px 16px;font-size:13.5px}
  .hint{bottom:calc(40% + 6px)}
}

/* QA 09-30: full sentences on phones (the clamp cut words mid-way); the scroll pill sits under the nav, clear of the words */
@media (max-width:760px){
  .beat p{font-size:13px;line-height:1.45}
  .hint{top:calc(64px + env(safe-area-inset-top,0px))!important;bottom:auto!important}
}
@media (max-width:760px) and (max-height:700px){ .beat p{font-size:12.5px;line-height:1.4} h1,h2{font-size:clamp(22px,6.2vw,26px)} }

/* Kaplex: the brand lockup, a touch more air on the beats, the emerald glow on the primary button */
.brand img{height:34px}.brand b{letter-spacing:.38em}
.btn{transition:transform .2s ease,box-shadow .2s ease}.btn:active{transform:translateY(1px)}
.tag{color:var(--acc)}
h1,h2{letter-spacing:-.032em}
.beat p{max-width:42ch}
@media (max-width:760px){.brand img{height:26px}}
@media (max-width:360px){.tag{letter-spacing:.1em;font-size:9.5px}}

/* 6b: on phones the scroll pill sits in the scrim just above the copy, first screen only (never over the 3D content) */
@media (max-width:760px){
  .hint{top:auto!important;bottom:var(--hintB,32%)!important}
}

/* Products menu (tap or click, never hover) and the phone menu */
.pm{position:relative}
.pm-b,.mm-gb{all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:6px;color:inherit;font:inherit}
.pm-b svg,.mm-gb svg{width:12px;height:12px;transition:transform .25s}
.pm-b[aria-expanded="true"],.pm-b:focus-visible{color:var(--ink)}
.pm-b[aria-expanded="true"] svg,.mm-gb[aria-expanded="true"] svg{transform:rotate(180deg)}
.pm-b:focus-visible,.mm-b:focus-visible,.mm-gb:focus-visible,.pm-p a:focus-visible,.mm-p a:focus-visible{outline:2px solid var(--acc);outline-offset:4px;border-radius:6px}
.pm-p{position:absolute;top:calc(100% + 18px);left:-22px;width:380px;padding:10px;border-radius:16px;background:linear-gradient(180deg,rgba(8,18,13,.97),rgba(3,9,6,.97));box-shadow:0 0 0 1px rgba(43,240,139,.16),0 30px 60px -20px rgba(0,0,0,.8),0 0 50px -20px rgba(43,240,139,.25);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.pm-p[hidden],.mm-p[hidden],#mm-prod[hidden]{display:none}
.pm-h{margin:6px 12px 8px;font:500 11px/1 'Geist Mono',monospace;letter-spacing:.2em;text-transform:uppercase;color:var(--acc)}
.pm-p ul,#mm-prod{list-style:none;margin:0;padding:0}
.pm-p a,#mm-prod a{display:flex;align-items:center;gap:14px;padding:10px 12px;border-radius:10px;color:var(--ink)}
.pm-p a:active,#mm-prod a:active{background:rgba(43,240,139,.08)}
.pm-p img,#mm-prod img{width:34px;height:34px;object-fit:contain;flex:none}
.pm-p span,#mm-prod span{display:flex;flex-direction:column;gap:3px;line-height:1.25}
.pm-p b,#mm-prod b{font-weight:600;font-size:15px}.pm-p i,#mm-prod i{font-style:normal;font-size:13px;color:var(--dim)}
.mm-b,.mm-p{display:none}
@media (max-width:1000px){
  .links{display:none}.nav .btn.sm{margin-left:auto}
  .mm-b{all:unset;cursor:pointer;display:flex;flex-direction:column;justify-content:center;gap:6px;width:40px;height:40px;margin-left:4px;align-items:center;flex:none}
  .mm-b i{display:block;width:20px;height:1.6px;background:var(--ink);border-radius:2px;transition:transform .25s}
  .mm-b[aria-expanded="true"] i:first-child{transform:translateY(3.8px) rotate(45deg)}.mm-b[aria-expanded="true"] i:last-child{transform:translateY(-3.8px) rotate(-45deg)}
  .mm-p{display:block;position:fixed;z-index:30;left:0;right:0;top:68px;bottom:0;background:linear-gradient(180deg,#040b08,#020604);border-top:1px solid rgba(43,240,139,.14);overflow-y:auto;-webkit-overflow-scrolling:touch}
  .mm-p[hidden]{display:none}
  .mm-in{display:flex;flex-direction:column;padding:12px 16px 40px}
  .mm-in > a:not(.btn),.mm-gb{padding:16px 4px;font-size:19px;font-weight:500;border-bottom:1px solid rgba(255,255,255,.07);color:var(--ink)}
  .mm-gb{display:flex;justify-content:space-between;width:100%;box-sizing:border-box}
  .mm-g{display:flex;flex-direction:column}
  #mm-prod{padding:6px 0 10px;border-bottom:1px solid rgba(255,255,255,.07)}
  .mm-in .btn{margin-top:22px}
  html.mm-open,html.mm-open body{overflow:hidden}
}

/* no 3D (no WebGL2, or no JavaScript at all via the <noscript> copy of these rules): the story as a plain page, every
   chapter's heading and copy in order, over a still of the hero */
html.no3d .story{height:auto}
html.no3d .stage{position:relative;height:auto;overflow:visible;padding-top:min(52vw,560px);background:#020604 url(assets/hero-still.jpg) center top/auto min(52vw,560px) no-repeat}
html.no3d .stage canvas,html.no3d .veil,html.no3d .scrim,html.no3d .hint,html.no3d .rail{display:none!important}
html.no3d .copy{position:relative;left:auto;right:auto;top:auto;bottom:auto;width:auto;height:auto;max-width:760px;margin:0 auto;padding:0 24px 40px}
html.no3d .beat{position:relative;top:auto;bottom:auto;left:auto;right:auto;transform:none;opacity:1;pointer-events:auto;margin:0 0 64px}

.btn:not(.ghost),a.btn:not(.ghost){color:#06110b!important;font-weight:600}
