/* =========================================================================
   AQUANIMO — tokens → base → chrome → beats → components → responsive
   ========================================================================= */

:root{
  --ui:255,255,255;                 /* UI ink, flipped to dark on bright acts */
  --ink:rgb(var(--ui));
  --ink-dim:rgba(var(--ui),.66);
  --ink-mute:rgba(var(--ui),.40);
  --line:rgba(var(--ui),.20);
  --hair:rgba(var(--ui),.12);
  --glass:rgba(10,14,26,.28);
  --void:#04050b;

  --serif:'Instrument Serif', 'Times New Roman', serif;
  --sans:'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --micro:clamp(9px, .58vw, 10.5px);
  --h1:clamp(2.5rem, 5.9vw, 5.8rem);
  --h2:clamp(1.9rem, 4.1vw, 3.8rem);

  --ease:cubic-bezier(.22,.61,.36,1);
  --pad:clamp(18px, 3.2vw, 44px);
}

*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
body{
  background:var(--void);
  color:var(--ink);
  font-family:var(--sans);
  font-weight:300;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  cursor:none;
}
a{ color:inherit; text-decoration:none; }
sup{ font-size:.48em; vertical-align:super; letter-spacing:0; }
/* Derived tokens resolve where they are DECLARED, not where they are used:
   --ink was computed against :root's --ui and stayed white for ever, so the
   ink never actually flipped over the bright finale. Re-derive them here. */
body.ui-dark{
  --ui:14,16,26;
  --ink:rgb(var(--ui));
  --ink-dim:rgba(var(--ui),.80);
  --ink-mute:rgba(var(--ui),.62);
  --line:rgba(var(--ui),.24);
  --hair:rgba(var(--ui),.14);
}
.nav, .hud, .rail, .beat{ transition:color .8s var(--ease); }

/* ───────────────────────────────────────────────────────── stage layers ── */
#gl{
  position:fixed; inset:0; width:100vw; height:100vh;
  display:block; z-index:0;
  background:radial-gradient(120% 90% at 50% 32%, #121936 0%, #04050b 72%);
}
.atmos{
  position:fixed; inset:0; z-index:1; pointer-events:none;
  mix-blend-mode:screen; opacity:0; transition:opacity 1.4s var(--ease);
  background:radial-gradient(58% 42% at 50% 6%, rgba(150,215,255,.26), transparent 72%);
}
body.no-gl #gl{
  background:
    radial-gradient(80% 60% at 50% 12%, #2b3d7d 0%, transparent 62%),
    linear-gradient(#0a1130, #04050b 58%, #0b2350);
}

/* bubbles */
.bubbles{ position:fixed; inset:0; z-index:2; pointer-events:none; opacity:0; transition:opacity 1s var(--ease); }
.bubbles b{
  position:absolute; bottom:-8vh; border-radius:50%;
  background:radial-gradient(circle at 32% 28%, rgba(255,255,255,.85), rgba(255,255,255,.10) 58%, rgba(255,255,255,.03));
  box-shadow:inset 0 0 5px rgba(255,255,255,.5);
  animation:rise linear infinite;
}
@keyframes rise{
  0%{ transform:translate3d(0,0,0) scale(.7); opacity:0; }
  14%{ opacity:.7; }
  100%{ transform:translate3d(var(--dx), -118vh, 0) scale(1.08); opacity:0; }
}

/* ────────────────────────────────────────────────────────────────── nav ── */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:20;
  display:flex; align-items:center; justify-content:space-between;
  padding:clamp(14px,1.8vw,22px) var(--pad);
  font-size:var(--micro); letter-spacing:.2em; text-transform:uppercase;
}
.nav__l,.nav__r{ display:flex; align-items:center; gap:clamp(10px,1.4vw,22px); }
.nav__c{
  font-family:var(--serif); letter-spacing:.46em; font-size:clamp(11px,1.02vw,14px);
  text-indent:.46em; opacity:0; transform:translateY(-6px);
  transition:opacity .8s var(--ease), transform .8s var(--ease);
}
.nav__c.on{ opacity:1; transform:none; }
.nav__lnk{ position:relative; opacity:.72; transition:opacity .4s var(--ease); padding-bottom:2px; }
.nav__lnk::after{
  content:''; position:absolute; left:0; right:0; bottom:0; height:1px;
  background:currentColor; transform:scaleX(0); transform-origin:right;
  transition:transform .5s var(--ease);
}
.nav__lnk:hover{ opacity:1; }
.nav__lnk:hover::after{ transform:scaleX(1); transform-origin:left; }
.pill{
  border:1px solid rgba(var(--ui),.30); border-radius:100px;
  padding:.66em 1.5em; letter-spacing:.2em; font-weight:400;
  background:rgba(var(--ui),.10); backdrop-filter:blur(10px);
  transition:background .45s var(--ease), color .45s var(--ease);
}
.pill:hover{ background:rgb(var(--ui)); color:var(--void); }
body.ui-dark .pill:hover{ color:#fff; }
.cart{
  width:25px; height:25px; border-radius:50%; border:1px solid var(--line);
  display:grid; place-items:center; font-size:8.5px; letter-spacing:0;
  background:rgba(var(--ui),.08);
}

/* ────────────────────────────────────────────────────── chapter rail ── */
.rail{
  position:fixed; left:var(--pad); top:50%; transform:translateY(-50%); z-index:20;
  display:grid; gap:16px; pointer-events:auto;
}
.rail button{
  display:flex; align-items:center; gap:12px; background:none; border:0; cursor:none;
  color:inherit; font:inherit; padding:0;
}
.rail i{
  width:5px; height:5px; border-radius:50%; background:rgba(var(--ui),.32);
  transition:transform .5s var(--ease), background .5s var(--ease);
}
.rail span{
  font-size:var(--micro); letter-spacing:.2em; text-transform:uppercase; color:var(--ink-mute);
  opacity:0; transform:translateX(-6px);
  transition:opacity .5s var(--ease), transform .5s var(--ease), color .5s;
  white-space:nowrap;
}
.rail button:hover span{ opacity:1; transform:none; }
.rail button.on i{ background:rgb(var(--ui)); transform:scale(1.9); }
.rail button.on span{ opacity:1; transform:none; color:var(--ink-dim); }

/* ───────────────────────────────────────────────────────────────── beats ── */
.stage{ position:fixed; inset:0; z-index:5; pointer-events:none; }
.beat{
  position:absolute; inset:0;
  padding:calc(var(--pad) + 52px) var(--pad) calc(var(--pad) + 56px);
  opacity:0; will-change:opacity, transform;
}
.beat--hero{ display:grid; grid-template-rows:1fr auto; align-items:end; }
.beat--center{ display:grid; place-items:center; text-align:center; }
.beat--left{ display:grid; align-items:center; justify-items:start; padding-left:calc(var(--pad) + 46px); }

.eyebrow{
  font-size:var(--micro); letter-spacing:.30em; text-transform:uppercase;
  color:var(--ink-dim); display:flex; align-items:center; gap:.9em;
}
.eyebrow::before{ content:''; width:22px; height:1px; background:currentColor; opacity:.55; }
.eyebrow--plain{ justify-content:center; }
.eyebrow--plain::before{ display:none; }

h1,h2{ font-family:var(--serif); font-weight:400; line-height:1.0; letter-spacing:-.012em; }
h1{ font-size:var(--h1); }
h2{ font-size:var(--h2); }
.it{ font-style:italic; }
.lede{
  max-width:36ch; font-size:clamp(.8rem,.98vw,.96rem); line-height:1.68;
  color:var(--ink-dim); font-weight:300;
}

.hero__row{ display:flex; align-items:flex-end; justify-content:space-between; gap:5vw; flex-wrap:wrap; }
.hero__side{ max-width:25ch; text-align:right; }
.hero__side .lede{
  font-family:var(--serif); font-style:italic; font-size:clamp(.95rem,1.24vw,1.28rem);
  color:var(--ink); line-height:1.38; margin-left:auto;
}
.scrollcue{
  margin-top:1.2em; font-size:var(--micro); letter-spacing:.26em; text-transform:uppercase;
  color:var(--ink-mute); display:flex; align-items:center; gap:.8em; justify-content:flex-end;
}
.scrollcue i{
  width:1px; height:30px; background:linear-gradient(currentColor, transparent);
  animation:cue 2.4s var(--ease) infinite;
}
@keyframes cue{
  0%{ transform:scaleY(.15); transform-origin:top }
  50%{ transform:scaleY(1); transform-origin:top }
  51%{ transform-origin:bottom }
  100%{ transform:scaleY(.08); transform-origin:bottom }
}

/* staircase steps */
.step{ max-width:min(46ch, 74vw); }
.step__no{
  display:flex; align-items:center; gap:.9em; margin-bottom:1.1em;
  font-size:var(--micro); letter-spacing:.28em; text-transform:uppercase; color:var(--ink-mute);
}
.step__no::after{ content:''; width:clamp(40px,7vw,110px); height:1px; background:var(--line); }
.step .lede{ margin-top:1.3em; }

/* underwater hotspots */
.spot{ position:absolute; pointer-events:none; }
.spot__dot{
  position:relative; width:30px; height:30px; border-radius:50%;
  border:1px solid rgba(var(--ui),.7);
  background:radial-gradient(circle at 34% 30%, rgba(255,255,255,.7), rgba(255,255,255,.06) 62%, transparent);
  backdrop-filter:blur(3px);
}
.spot__dot::before{
  content:''; position:absolute; left:50%; top:50%; width:9px; height:1px; margin:-.5px 0 0 -4.5px;
  background:rgb(var(--ui));
}
.spot__dot::after{
  content:''; position:absolute; inset:-12px; border-radius:50%;
  border:1px solid rgba(var(--ui),.30); animation:ping 3s var(--ease) infinite;
}
@keyframes ping{ 0%{ transform:scale(.6); opacity:.9 } 100%{ transform:scale(1.4); opacity:0 } }
.spot__card{
  margin:14px 0 0 14px; padding:16px 18px 17px; max-width:29ch;
  border:1px solid var(--hair); border-radius:3px;
  background:var(--glass); backdrop-filter:blur(14px) saturate(1.2);
  box-shadow:0 22px 60px rgba(0,10,30,.28);
}
.spot__ttl{ font-family:var(--serif); font-size:clamp(1.02rem,1.5vw,1.42rem); line-height:1.12; }
.spot__txt{ margin-top:.62em; font-size:clamp(.68rem,.79vw,.78rem); line-height:1.66; color:var(--ink-dim); }

/* claim badges */
.claims{ display:flex; flex-wrap:wrap; justify-content:center; gap:clamp(14px,2.6vw,40px); margin-top:clamp(30px,4vw,56px); }
.claim{ display:grid; justify-items:center; gap:.95em; width:78px; }
.claim svg{ width:27px; height:27px; stroke:currentColor; fill:none; stroke-width:1; opacity:.88; }
.claim span{ font-size:8.5px; letter-spacing:.16em; text-transform:uppercase; color:var(--ink-mute); text-align:center; line-height:1.5; }

/* product card in the closeup act */
.spec{
  display:flex; gap:clamp(18px,2.6vw,40px); align-items:flex-start;
  border:1px solid var(--hair); border-radius:3px; padding:clamp(16px,1.9vw,24px) clamp(18px,2.2vw,30px);
  background:var(--glass); backdrop-filter:blur(14px) saturate(1.2);
  box-shadow:0 22px 60px rgba(0,10,30,.28);
}
.spec__num{ font-family:var(--serif); font-size:clamp(1.7rem,3vw,2.6rem); line-height:.92; }
.spec__num small{ font-size:.36em; letter-spacing:.05em; opacity:.7; }
.spec__lbl{ font-size:var(--micro); letter-spacing:.18em; text-transform:uppercase; color:var(--ink-mute); margin-top:.85em; line-height:1.6; }

/* cta */
.cta{
  pointer-events:auto; display:inline-flex; align-items:center; gap:1em;
  border:1px solid rgba(var(--ui),.45); border-radius:100px; padding:1.05em 2.1em;
  font-size:var(--micro); letter-spacing:.22em; text-transform:uppercase;
  background:rgba(var(--ui),.10); backdrop-filter:blur(10px);
  transition:background .5s var(--ease), color .5s var(--ease), transform .5s var(--ease);
}
.cta:hover{ background:rgb(var(--ui)); color:var(--void); transform:translateY(-2px); }
body.ui-dark .cta:hover{ color:#fff; }
.cta__arrow{ transition:transform .5s var(--ease); }
.cta:hover .cta__arrow{ transform:translateX(6px); }

/* finale footer */
.foot{
  position:absolute; left:var(--pad); right:var(--pad); bottom:calc(var(--pad) + 40px);
  display:flex; justify-content:space-between; gap:2vw; flex-wrap:wrap;
  font-size:var(--micro); letter-spacing:.18em; text-transform:uppercase; color:var(--ink-mute);
  border-top:1px solid var(--hair); padding-top:1.3em; pointer-events:auto;
}
.foot a{ transition:color .35s; }
.foot a:hover{ color:var(--ink); }
.foot__nav{ display:flex; gap:clamp(12px,1.9vw,26px); flex-wrap:wrap; }

/* ─────────────────────────────────────────────────────────────────── hud ── */
.hud{
  position:fixed; z-index:20; left:var(--pad); right:var(--pad); bottom:clamp(14px,1.9vw,22px);
  display:flex; align-items:center; justify-content:space-between; pointer-events:none;
  font-size:var(--micro); letter-spacing:.22em; text-transform:uppercase; color:var(--ink-dim);
}
.hud__sound{
  pointer-events:auto; cursor:none; background:none; border:0; color:inherit;
  display:flex; align-items:flex-end; gap:3px; height:14px;
}
.hud__sound i{ width:1.5px; background:currentColor; opacity:.6; height:4px; transition:height .3s var(--ease); }
.hud__sound.on i{ animation:eq .9s var(--ease) infinite alternate; }
.hud__sound.on i:nth-child(2){ animation-delay:.15s }
.hud__sound.on i:nth-child(3){ animation-delay:.3s }
.hud__sound.on i:nth-child(4){ animation-delay:.45s }
@keyframes eq{ from{ height:3px } to{ height:13px } }
.hud__chapter{ letter-spacing:.24em; }
.hud__pct{ font-variant-numeric:tabular-nums; }

/* the progress hairline across the very bottom */
.progress{
  position:fixed; left:0; right:0; bottom:0; height:1px; z-index:21;
  background:rgba(var(--ui),.14); pointer-events:none;
}
.progress i{ display:block; height:100%; width:0; background:rgb(var(--ui)); opacity:.85; }

/* ──────────────────────────────────────────────────────────────── cursor ── */
.cursor{
  position:fixed; z-index:120; top:0; left:0; width:22px; height:22px; margin:-11px 0 0 -11px;
  border-radius:50%; border:1px solid rgba(var(--ui),.45); pointer-events:none;
  transition:width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s;
}
.cursor i{ position:absolute; inset:9px; border-radius:50%; background:rgb(var(--ui)); }
.cursor.big{ width:46px; height:46px; margin:-23px 0 0 -23px; background:rgba(var(--ui),.10); }
.cursor.big i{ inset:21px; }

/* ──────────────────────────────────────────────────────────────── loader ── */
.loader{
  position:fixed; inset:0; z-index:80; background:var(--void);
  display:grid; place-content:center; justify-items:center; gap:20px;
  transition:opacity 1s var(--ease), visibility 1s;
}
.loader.done{ opacity:0; visibility:hidden; }
.loader__mark{ font-family:var(--serif); letter-spacing:.52em; font-size:clamp(12px,1.4vw,17px); text-indent:.52em; color:#fff; }
.loader__bar{ width:min(190px,44vw); height:1px; background:rgba(255,255,255,.14); overflow:hidden; }
.loader__bar i{ display:block; height:100%; width:0%; background:#fff; transition:width .35s linear; }
.loader__hint{ font-size:var(--micro); letter-spacing:.28em; text-transform:uppercase; color:rgba(255,255,255,.35); }

/* ─────────────────────────────────────────────────────────────── runway ── */
.runway{ position:relative; z-index:1; height:1600vh; pointer-events:none; }

/* ─────────────────────────────────────────────────────────── responsive ── */
@media (max-width:900px){
  body{ cursor:auto; }
  .cursor, .rail, .nav__c{ display:none; }
  .beat--left{ padding-left:var(--pad); align-items:end; padding-bottom:calc(var(--pad) + 80px); }
  .hero__row{ flex-direction:column; align-items:flex-start; }
  .hero__side{ text-align:left; max-width:32ch; }
  .hero__side .lede{ margin-left:0; }
  .scrollcue{ justify-content:flex-start; }
  .hud__chapter{ display:none; }
  .spot__card{ max-width:24ch; padding:12px 14px; }
  .spot__txt{ display:none; }
  .claims{ gap:16px 12px; }
  .claim{ width:66px; }
  .spec{ flex-wrap:wrap; gap:16px; }
  .foot{ font-size:8px; gap:12px; bottom:calc(var(--pad) + 30px); }
}
@media (prefers-reduced-motion:reduce){
  .bubbles, .scrollcue i{ display:none; }
}

/* =========================================================================
   COMMERCE — cart drawer, side panel, currency menu, toast
   The chrome is glass over the film; nothing here blocks the canvas.
   ========================================================================= */
.nav button{ font:inherit; color:inherit; background:none; border:0; cursor:none; }
.cart{ cursor:none; }

.scrim{
  position:fixed; inset:0; z-index:60; background:rgba(3,5,12,.55);
  -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px);
  opacity:0; transition:opacity .45s var(--ease);
}
.scrim.on{ opacity:1; }

.drawer, .panel{
  position:fixed; top:0; right:0; bottom:0; z-index:70;
  width:min(420px, 92vw);
  display:flex; flex-direction:column; gap:22px;
  padding:clamp(18px,2.4vw,30px);
  background:rgba(9,13,24,.92);
  -webkit-backdrop-filter:blur(20px); backdrop-filter:blur(20px);
  border-left:1px solid rgba(255,255,255,.14);
  color:#fff;                                   /* the drawer keeps its own ink */
  transform:translateX(100%); transition:transform .5s var(--ease);
  overflow-y:auto;
}
.drawer.on, .panel.on{ transform:none; }

.drawer__top{ display:flex; align-items:center; justify-content:space-between; }
.drawer__ttl{
  font-size:var(--micro); letter-spacing:.24em; text-transform:uppercase;
  opacity:.62;
}
.drawer__x{
  font:inherit; color:inherit; background:none; border:0; cursor:none;
  width:32px; height:32px; border-radius:50%; opacity:.6;
  transition:opacity .3s var(--ease), background .3s var(--ease);
}
.drawer__x:hover{ opacity:1; background:rgba(255,255,255,.10); }

/* the product line */
.line{ display:flex; gap:16px; align-items:flex-start; }
.line__jar{
  position:relative; flex:0 0 62px; height:82px; border-radius:8px;
  background:linear-gradient(160deg,#16305a,#0b1730 60%,#132c4e);
  border:1px solid rgba(255,255,255,.14); overflow:hidden;
}
.line__jar i{
  position:absolute; left:50%; top:9px; width:26px; height:7px; border-radius:2px;
  transform:translateX(-50%); background:rgba(255,255,255,.55);
}
.line__jar b{
  position:absolute; left:8px; right:8px; bottom:10px; height:38px; border-radius:4px;
  background:linear-gradient(180deg,rgba(255,255,255,.90),rgba(214,228,255,.72));
}
.line__body{ flex:1; min-width:0; }
.line__name{ font-size:.95rem; line-height:1.35; }
.line__name .it{ font-family:var(--serif); font-style:italic; }
.line__meta{ font-size:11.5px; opacity:.55; margin-top:5px; letter-spacing:.02em; }
.line__price{ font-family:var(--serif); font-size:1.2rem; white-space:nowrap; }

.qty{
  display:inline-flex; align-items:center; gap:14px; margin-top:12px;
  border:1px solid rgba(255,255,255,.20); border-radius:999px; padding:5px 12px;
}
.qty button{
  font:inherit; color:inherit; background:none; border:0; cursor:none;
  font-size:1rem; line-height:1; opacity:.7; transition:opacity .25s var(--ease);
}
.qty button:hover{ opacity:1; }
.qty span{ font-size:.9rem; min-width:14px; text-align:center; }

.drawer__rows{ display:grid; gap:9px; border-top:1px solid rgba(255,255,255,.14); padding-top:18px; }
.row{ display:flex; justify-content:space-between; font-size:.86rem; opacity:.72; }
.row--tot{ opacity:1; font-size:1rem; padding-top:6px; }
.row--tot b{ font-family:var(--serif); font-size:1.25rem; }

.cta--full{ width:100%; justify-content:center; }
.drawer__note{ font-size:11px; opacity:.45; line-height:1.6; }

/* side panel */
.panel__body{ font-size:.9rem; line-height:1.7; opacity:.8; display:grid; gap:14px; }
.panel__body h4{ font-family:var(--serif); font-size:1.35rem; font-weight:400; opacity:1; }
.panel__body label{ font-size:var(--micro); letter-spacing:.2em; text-transform:uppercase; opacity:.6; }
.panel__body input{
  width:100%; font:inherit; font-size:.92rem; color:#fff; margin-top:6px;
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.18);
  border-radius:8px; padding:11px 13px;
}
.panel__body input:focus{ outline:2px solid rgba(150,200,255,.5); outline-offset:1px; }

/* currency menu */
.menu{
  position:fixed; z-index:80; display:grid; min-width:130px;
  background:rgba(9,13,24,.95); border:1px solid rgba(255,255,255,.16);
  border-radius:10px; padding:6px; color:#fff;
  -webkit-backdrop-filter:blur(18px); backdrop-filter:blur(18px);
  opacity:0; transform:translateY(-6px); transition:.28s var(--ease);
}
.menu.on{ opacity:1; transform:none; }
.menu button{
  font:inherit; color:inherit; background:none; border:0; cursor:none;
  text-align:left; font-size:.86rem; padding:9px 11px; border-radius:7px;
  transition:background .22s var(--ease);
}
.menu button:hover, .menu button[aria-current="true"]{ background:rgba(255,255,255,.10); }

/* toast */
.toast{
  position:fixed; left:50%; bottom:34px; z-index:90; transform:translate(-50%, 14px);
  background:rgba(9,13,24,.92); color:#fff; border:1px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter:blur(16px); backdrop-filter:blur(16px);
  border-radius:999px; padding:11px 20px; font-size:.85rem;
  opacity:0; pointer-events:none; transition:.4s var(--ease);
}
.toast.on{ opacity:1; transform:translate(-50%, 0); }

@media (max-width:620px){
  .drawer, .panel{ width:100vw; border-left:0; }
  .toast{ bottom:76px; width:max-content; max-width:88vw; text-align:center; }
}

/* The page flips its UI ink to dark over the bright lagoon (body.ui-dark).
   The overlays sit on their own dark glass, so they must keep light ink —
   redefining the token locally fixes every child at once (the checkout
   button was rendering dark-on-dark at the end of the timeline). */
.drawer, .panel, .menu, .toast{
  --ui:255,255,255;
  --ink:rgb(255,255,255);
  --ink-dim:rgba(255,255,255,.66);
  --ink-mute:rgba(255,255,255,.40);
  --line:rgba(255,255,255,.20);
  color:#fff;
}
.drawer .cta{ color:#fff; border-color:rgba(255,255,255,.38); }
.drawer .cta:hover{ background:#fff; color:#0b1020; }

/* `display:flex` on these panels outranks the browser's own [hidden] rule, so
   a hidden drawer stayed in the layout. Restore the intent explicitly. */
.drawer[hidden], .panel[hidden], .menu[hidden], .scrim[hidden]{ display:none; }
