/* Atlas home page: the scroll story. Self-contained; privacy.html and
   404.html keep site.css. Tokens are the same values, lifted from site.css and
   DESIGN.md. The page is Liquid throughout; Frost is shown on the device and
   the ground during the "Look" chapter (a `.frost` scope redefines tokens). */

@font-face {
  font-family: "Atlas Display";
  src: url("assets/nunito-latin-var.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------- tokens */
:root {
  color-scheme: dark;
  --acf: 245, 199, 82;
  --a-dark: #F5C752;
  --a-fill-l: #8F6E1A;
  --a-text-l: #735714;

  --ground: #07090D;
  --ink: #FFFFFF;
  --ink2: #A7AAB0;
  --ink3: #8A8D93;
  --hair: rgba(255, 255, 255, .12);
  --track: rgba(255, 255, 255, .10);
  --pn-bg: rgba(255, 255, 255, .06);
  --pn-bd: rgba(255, 255, 255, .11);
  --pn-sh: inset 0 1px 0 rgba(255, 255, 255, .10), 0 16px 32px -24px rgba(0, 0, 0, .8);
  --gl-bg: rgba(255, 255, 255, .085);
  --gl-bd: rgba(255, 255, 255, .14);
  --gl-hi: rgba(255, 255, 255, .22);
  --gl-sh: 0 10px 30px -14px rgba(0, 0, 0, .7);
  --gl-solid: #1a1c21;       /* in-device glass: no backdrop-filter inside a moving device */
  --steel: 143, 163, 191;
  --fa: .5;
  --fs: .34;
  --ac-text: var(--a-dark);
  --ac-fill: var(--a-dark);
  --on-ac: #16130B;
  --hit: #30D158;
  --on-hit: #062A12;
  --field-in: rgba(0, 0, 0, .28);
  --rim: rgba(255, 255, 255, .17);
  --tube: rgba(12, 15, 21, .78);
  --hiw: rgba(255, 255, 255, .3);
  --glowa: .5;
  --core: rgba(255, 255, 255, .5);

  --display: ui-rounded, "SF Pro Rounded", "Atlas Display", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --r-panel: 24px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
:root[data-accent="ocean"] { --acf: 108, 178, 255; --a-dark: #6CB2FF; --a-fill-l: #0B62B8; --a-text-l: #0A5CAD; }
:root[data-accent="moss"]  { --acf: 111, 208, 124; --a-dark: #6FD07C; --a-fill-l: #2F7A3C; --a-text-l: #286934; }
:root[data-accent="ember"] { --acf: 255, 138, 102; --a-dark: #FF8A66; --a-fill-l: #A63A24; --a-text-l: #A33923; }
:root[data-accent="iris"]  { --acf: 180, 156, 255; --a-dark: #B49CFF; --a-fill-l: #6A48B0; --a-text-l: #6A48B0; }

/* Frost: the same structure, only colour and material change. */
.frost {
  --ground: #D2D8E0;
  --ink: #0E1622;
  --ink2: #414853;
  --ink3: #555C66;
  --hair: rgba(14, 22, 34, .13);
  --track: rgba(14, 22, 34, .13);
  --pn-bg: rgba(255, 255, 255, .30);
  --pn-bd: rgba(255, 255, 255, .60);
  --pn-sh: inset 0 1px 0 rgba(255, 255, 255, .75), 0 0 0 .5px rgba(30, 42, 60, .16), 0 16px 32px -26px rgba(30, 45, 70, .5);
  --gl-bg: rgba(255, 255, 255, .38);
  --gl-bd: rgba(255, 255, 255, .62);
  --gl-hi: rgba(255, 255, 255, .85);
  --gl-solid: #E3E7EC;
  --steel: 150, 175, 210;
  --fa: .34;
  --fs: .45;
  --ac-text: var(--a-text-l);
  --ac-fill: var(--a-fill-l);
  --on-ac: #FFFFFF;
  --hit: #34C759;
  --rim: #5E6B7E;
  --tube: rgba(169, 180, 194, .92);
  --hiw: rgba(255, 255, 255, .85);
  --glowa: .3;
  --core: rgba(255, 255, 255, .7);
  color: var(--ink);
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: 88px; }
html:not(.lenis) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:not(.lenis) { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 1.0625rem/1.55 var(--text);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
::selection { background: rgba(var(--acf), .38); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--ac-text); text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--ac-text); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 1.35rem + 2.1vw, 3rem); line-height: 1.06; letter-spacing: -.022em; }
p { margin: 0; }
.nowrap { white-space: nowrap; }
.wrap { width: min(1180px, 100%); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { width: min(760px, 100%); }
.lede { color: var(--ink2); font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.5; max-width: 38rem; text-wrap: pretty; }
.note { color: var(--ink2); font-size: .9375rem; line-height: 1.5; max-width: 40rem; }
.note.center { text-align: center; margin: 1.25rem auto 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 22px; background: var(--ac-fill); color: var(--on-ac); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- field, glass, panels, buttons */
.field {
  position: absolute; inset: -80px -10% auto -10%; height: 820px; z-index: 0; pointer-events: none;
  filter: blur(40px);
  background:
    radial-gradient(38% 42% at 22% 18%, rgba(var(--acf), var(--fa)) 0%, transparent 72%),
    radial-gradient(36% 40% at 84% 24%, rgba(var(--steel), var(--fs)) 0%, transparent 72%);
}
.glass {
  background: var(--gl-bg);
  -webkit-backdrop-filter: blur(24px) saturate(165%); backdrop-filter: blur(24px) saturate(165%);
  border: 1px solid var(--gl-bd);
  box-shadow: inset 0 1px 0 var(--gl-hi), var(--gl-sh);
}
.panel {
  background: var(--pn-bg);
  -webkit-backdrop-filter: blur(28px) saturate(150%); backdrop-filter: blur(28px) saturate(150%);
  border: 1px solid var(--pn-bd); box-shadow: var(--pn-sh); border-radius: var(--r-panel);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  font: 600 1rem/1.2 var(--text); color: var(--ink); text-decoration: none; border: 0; cursor: pointer;
  transition: transform .18s var(--ease-out), box-shadow .25s var(--ease-out), background-color .2s;
}
.btn:active { transform: scale(.97); }
.btn.prominent {
  min-height: 60px; padding: 0 30px; color: var(--on-ac);
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 55%), var(--ac-fill);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 14px 30px -16px rgba(var(--acf), .75);
}
.btn.prominent.full { width: 100%; font-size: 1.0625rem; }
.btn.glass { min-height: 60px; padding: 0 26px; }
.btn.glass.small { min-height: 44px; padding: 0 18px; font-size: .9375rem; color: var(--ac-text); }
.btn-stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.btn-stack b { font-size: 1.0625rem; font-weight: 650; }
.btn-stack small { font-size: .75rem; font-weight: 600; opacity: .78; }

/* ---------------------------------------------------------------- header */
.top { position: fixed; inset: 0 0 auto 0; z-index: 30; padding: 12px var(--gutter); transition: background-color .3s, box-shadow .3s; }
.top.stuck { background: color-mix(in srgb, var(--ground) 72%, transparent); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); box-shadow: 0 1px 0 var(--hair); }
.top-in { width: min(1180px, 100%); margin: 0 auto; display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; font: 700 1.25rem/1 var(--display); letter-spacing: -.01em; }
.mini-peak { width: 34px; height: 34px; overflow: visible; }
.mini-peak path { fill: none; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; }
.mp-track { stroke: color-mix(in srgb, rgb(var(--steel)) 55%, var(--ink) 20%); opacity: .75; }
.mp-fill { stroke: var(--a-dark); stroke-dasharray: 0 200; filter: drop-shadow(0 0 3px rgba(var(--acf), .7)); }
.mp-apex { fill: var(--track); stroke: var(--rim); stroke-width: 1; transition: fill .4s var(--ease-out); }
.mp-apex.on { fill: var(--a-dark); }
.nav { margin-left: auto; display: flex; align-items: center; border-radius: 22px; height: 44px; padding: 0 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 18px; color: var(--ink2); font-size: .9375rem; font-weight: 600; text-decoration: none; transition: color .2s, background-color .2s; }
.nav a:hover, .nav a[aria-current="true"] { color: var(--ink); background: var(--track); }
/* while the stage is Frost, the header wears Frost too */
.on-frost .top { --ink: #0E1622; --ink2: #414853; --track: rgba(14, 22, 34, .10); --gl-bg: rgba(255, 255, 255, .45); --gl-bd: rgba(255, 255, 255, .7); --gl-hi: rgba(255, 255, 255, .9); --ac-text: var(--a-text-l); }
.on-frost .top.stuck { background: rgba(210, 216, 224, .72); box-shadow: 0 1px 0 rgba(14, 22, 34, .12); }
@media (max-width: 860px) { .nav { display: none; } .top .btn.small { margin-left: auto; } }

/* ---------------------------------------------------------------- the Peak */
.peak { display: block; overflow: visible; }
.peak path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.peak .t-rim { stroke: var(--rim); stroke-width: 17; }
.peak .t-in { stroke: var(--tube); stroke-width: 14.5; }
.peak .f-glow { stroke: rgba(var(--acf), 1); stroke-width: 16; filter: url(#pkblur); opacity: var(--glowa); }
.peak .f-wall { stroke: rgba(var(--acf), .55); stroke-width: 12.5; }
.peak .f-body { stroke: var(--a-dark); stroke-width: 10; }
.peak .f-core { stroke: var(--core); stroke-width: 3; }
.peak .f-glow, .peak .f-wall, .peak .f-body, .peak .f-core { stroke-dasharray: 0 200; }
.peak .t-hi { stroke: var(--hiw); stroke-width: 1.1; opacity: .55; }
.peak .f-edge { fill: rgba(var(--acf), .55); filter: url(#pkblur); opacity: 0; }
.peak .pk-apex { fill: var(--tube); stroke: var(--rim); stroke-width: 1.5; transition: fill .5s var(--ease-out), stroke .5s; }
.peak .apex-glow { fill: rgba(var(--acf), .85); filter: url(#pkblur); opacity: 0; transition: opacity .8s var(--ease-out); }
.peak.lit .pk-apex { fill: var(--a-dark); stroke: rgba(255, 255, 255, .6); }
.peak.lit .apex-glow { opacity: 1; }
.peak.edge .f-edge { opacity: .8; }
.frost .peak .t-hi { opacity: .9; }
.frost .peak .f-wall { stroke: var(--ac-fill); stroke-width: 12; }
.frost .peak .f-body { stroke: rgb(var(--acf)); stroke-width: 8.5; }
.frost .peak .f-core { stroke: rgba(255, 255, 255, .75); stroke-width: 2.2; }
.frost .peak .f-edge { fill: rgba(var(--acf), .9); }

/* ================================================================= STORY */
/* The story renders only when scroll.js has GSAP and motion is allowed. */
.story { display: none; }
html.motion .story { display: block; position: relative; height: calc(var(--len, 30) * 100svh); }
html.motion .static-story { display: none; }

.stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate;
  background: var(--ground);
}
.stage > .field { inset: -120px -10% auto -10%; height: 110%; }
.frost-ground {
  position: absolute; inset: 0; z-index: 0; opacity: 0; pointer-events: none;
  background:
    radial-gradient(50% 55% at 20% 20%, rgba(var(--acf), .30) 0%, transparent 70%),
    radial-gradient(45% 50% at 85% 25%, rgba(150, 175, 210, .45) 0%, transparent 70%),
    #D2D8E0;
}

/* copy column */
.copy { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.c { position: absolute; pointer-events: auto; }
.c-hero {
  left: 0; right: 0; margin: 0 auto; top: clamp(96px, 15svh, 150px);
  width: min(900px, calc(100% - 2 * var(--gutter)));
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.c-hero h1 { font-size: clamp(2.35rem, 1.4rem + 3.6vw, 4.4rem); line-height: 1.02; letter-spacing: -.03em; max-width: 15ch; }
.c-hero .lede { margin-top: 18px; max-width: 36rem; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }

.c-side {
  left: max(var(--gutter), calc((100vw - 1180px) / 2 + var(--gutter)));
  top: 0; bottom: 0; width: min(30rem, 40vw);
  display: flex; flex-direction: column; justify-content: center;
  visibility: hidden;
}
.kicker { font: 700 .8125rem/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--ac-text); margin-bottom: 14px; }
.c-side h2 { max-width: 15ch; }
.c-side .lede { margin-top: 16px; }
.c-side .note { margin-top: 14px; }
.c-side .note b { color: var(--ink); }

.beats { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 4px; counter-reset: b; }
.beats li {
  position: relative; padding: 10px 0 10px 22px; color: var(--ink2); font-size: .9688rem; line-height: 1.45; opacity: .38;
}
.beats li::before { content: ""; position: absolute; left: 0; top: 13px; bottom: 13px; width: 3px; border-radius: 2px; background: var(--track); }
.beats li::after { content: ""; position: absolute; left: 0; top: 13px; bottom: 13px; width: 3px; border-radius: 2px; background: var(--a-dark); transform: scaleY(var(--on, 0)); transform-origin: top; box-shadow: 0 0 10px rgba(var(--acf), .8); }
.beats b { display: block; color: var(--ink); font: 700 1.0625rem/1.3 var(--display); }

.chips-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.chips-list li { display: flex; align-items: center; gap: 12px; color: var(--ink2); font-size: .9688rem; }
.chips-list .ico { color: var(--ac-text); }

/* the Look chapter's copy sits on Frost; its ink is tweened to Frost ink */
.c-look { --ink: #FFFFFF; --ink2: #A7AAB0; --kick: #F5C752; color: var(--ink); }
.c-look h2 { color: var(--ink); }
.c-look .kicker { color: var(--kick, var(--a-dark)); }
.swatches { display: inline-flex; gap: 6px; padding: 6px; border-radius: 30px; margin-top: 24px; }
.sw { width: 44px; height: 44px; border-radius: 22px; border: 0; padding: 0; cursor: pointer; position: relative; background: transparent; }
.sw::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 0 16px -2px var(--c); transition: transform .2s var(--ease-out); }
.sw[aria-checked="true"]::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; box-shadow: 0 0 0 2px var(--c); }
.sw:hover::before { transform: scale(1.08); }
.sw[data-accent="gold"]  { --c: #F5C752; }
.sw[data-accent="ocean"] { --c: #6CB2FF; }
.sw[data-accent="moss"]  { --c: #6FD07C; }
.sw[data-accent="ember"] { --c: #FF8A66; }
.sw[data-accent="iris"]  { --c: #B49CFF; }
.accent-name { margin: 10px 0 0 8px; font-weight: 600; }
/* the picker sits on Frost in its chapter */
.c-look .swatches { background: rgba(255, 255, 255, .42); border-color: rgba(255, 255, 255, .7); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 .5px rgba(30, 42, 60, .16), 0 14px 28px -20px rgba(30, 45, 70, .45); }

/* progress rail + hint */
.rail { position: absolute; z-index: 4; right: clamp(10px, 2vw, 28px); top: 50%; height: 160px; margin-top: -80px; width: 3px; border-radius: 2px; background: var(--track); overflow: hidden; }
.rail i { position: absolute; inset: 0; background: var(--a-dark); transform-origin: top; transform: scaleY(0); box-shadow: 0 0 8px rgba(var(--acf), .8); }
.hint { position: absolute; z-index: 4; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--ink2); font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.hint .ico { transform: rotate(90deg); width: 18px; height: 18px; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 4px; } }

/* ---------------------------------------------------------------- the rig */
.rig { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.phone-pos, .watch-pos { position: absolute; left: 50%; top: 50%; will-change: transform; }
.phone-pos { width: 414px; height: 868px; margin: -434px 0 0 -207px; }
.phone-fit { width: 100%; height: 100%; transform: scale(var(--k, .8)); transform-origin: 50% 50%; }
.watch-pos { width: 250px; height: 460px; margin: -230px 0 0 -125px; }
.watch-fit { width: 100%; height: 100%; transform: scale(var(--kw, 1)); transform-origin: 50% 50%; }

/* phone frame */
.phone {
  position: relative; width: 414px; height: 868px; padding: 12px; border-radius: 70px;
  background: linear-gradient(150deg, #4a4d53 0%, #1b1c1f 18%, #0c0d0f 50%, #1b1c1f 82%, #45484e 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .16),
    inset 0 0 0 5px #0a0b0c,
    0 60px 120px -50px rgba(0, 0, 0, .9),
    0 30px 60px -30px rgba(0, 0, 0, .6);
}
.hw { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #2b2d31, #4a4d53); }
.hw-action { left: -3px; top: 170px; height: 36px; }
.hw-vup { left: -3px; top: 232px; height: 62px; }
.hw-vdn { left: -3px; top: 308px; height: 62px; }
.hw-pwr { right: -3px; top: 250px; height: 96px; background: linear-gradient(270deg, #2b2d31, #4a4d53); }
.hw-cam { right: -2px; top: 520px; height: 70px; width: 3px; background: #222428; }
.screen {
  position: relative; width: 390px; height: 844px; border-radius: 58px; overflow: hidden; background: #000;
  color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.3;
  -webkit-mask-image: -webkit-radial-gradient(white, black); /* clip transformed children in Safari */
}
.island { position: absolute; z-index: 20; left: 50%; top: 11px; width: 124px; height: 36px; margin-left: -62px; border-radius: 18px; background: #000; }
.glare {
  position: absolute; top: 0; bottom: 0; left: -60%; right: -60%; z-index: 19; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .09) 46%, rgba(255, 255, 255, .02) 52%, transparent 58%);
  opacity: .25;
}

/* screens */
.scr {
  position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(70% 34% at 6% 0%, rgba(var(--acf), calc(var(--fa) * .75)) 0%, transparent 72%),
    radial-gradient(60% 30% at 100% 6%, rgba(var(--steel), var(--fs)) 0%, transparent 72%),
    var(--ground);
}
.s-off { z-index: 17; background: radial-gradient(120% 70% at 30% 10%, #0d0f13 0%, #020203 60%, #000 100%); }
.s-splash { z-index: 16; display: grid; place-items: center; opacity: 0; }
.splash-mark { width: 96px; height: 96px; overflow: visible; }
.splash-mark path, .logo path { fill: none; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; }
.lg-a { fill: var(--a-dark); }
.lg-s { stroke: #E0E5EE; }
.lg-a-stroke { stroke: var(--a-dark); }
.splash-mark .lg-a { filter: drop-shadow(0 0 6px rgba(var(--acf), .9)); }

/* status bar */
.sb { position: absolute; z-index: 5; left: 0; right: 0; top: 0; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 6px 34px 0 50px; font: 600 17px/1 var(--text); }
.sb-ico { display: flex; align-items: center; gap: 6px; }
.sb-ico i { display: block; background: var(--ink); }
.sig { width: 18px; height: 11px; clip-path: polygon(0 70%, 20% 70%, 20% 100%, 0 100%, 0 70%, 27% 50%, 47% 50%, 47% 100%, 27% 100%, 27% 50%, 54% 28%, 74% 28%, 74% 100%, 54% 100%, 54% 28%, 81% 0, 100% 0, 100% 100%, 81% 100%, 81% 0); }
.wifi { width: 16px; height: 12px; clip-path: polygon(50% 100%, 0 30%, 15% 12%, 50% 0, 85% 12%, 100% 30%); }
.bat { width: 26px; height: 12px; border-radius: 3.5px; background: transparent !important; box-shadow: inset 0 0 0 1.5px var(--ink2); position: relative; }
.bat::after { content: ""; position: absolute; inset: 2.5px 5px 2.5px 2.5px; border-radius: 1.5px; background: var(--hit); }

/* in-device controls */
.glassy { background: var(--gl-solid); border: 1px solid var(--gl-bd); box-shadow: inset 0 1px 0 var(--gl-hi), 0 8px 20px -12px rgba(0, 0, 0, .6); }
.frost .glassy { background: rgba(255, 255, 255, .5); }
.pnl { background: var(--pn-bg); border: 1px solid var(--pn-bd); box-shadow: var(--pn-sh); border-radius: 26px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 0 20px; border-bottom: .5px solid var(--hair); font-size: 17px; }
.row:last-child { border-bottom: 0; }
.row .v { color: var(--ink2); font-variant-numeric: tabular-nums; }
.row small { display: block; color: var(--ink2); font-size: 13px; margin-top: 2px; }
.acc { color: var(--ac-text); }
.circ { width: 44px; height: 44px; border-radius: 22px; display: grid; place-items: center; }
.circ.acc { color: var(--ac-text); }
.swap { display: inline-grid; }
.swap > * { grid-area: 1 / 1; }
.swap > :nth-child(2) { opacity: 0; }

/* Today */
.s-today { z-index: 2; padding: 0 20px; }
.cap { position: absolute; right: 18px; top: 60px; display: flex; gap: 14px; padding: 9px 16px; border-radius: 22px; }
.t-date { position: absolute; left: 20px; top: 104px; color: var(--ink2); font: 600 15px/1 var(--text); }
.t-title { position: absolute; left: 20px; top: 124px; font: 700 34px/1.1 var(--display); letter-spacing: -.01em; }
.seg { position: absolute; left: 20px; right: 20px; top: 176px; height: 36px; border-radius: 18px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; text-align: center; font: 600 15px/1 var(--text); color: var(--ink2); padding: 3px; }
.seg > span:not(.seg-thumb) { position: relative; z-index: 1; }
.seg .on { color: var(--ink); }
.seg-thumb { position: absolute; left: 3px; top: 3px; bottom: 3px; width: calc(50% - 3px); border-radius: 15px; background: rgba(255, 255, 255, .16); }
.frost .seg-thumb { background: rgba(255, 255, 255, .9); }
.ph-peak { position: absolute; left: 50%; top: 226px; width: 206px; margin-left: -103px; }
.t-day { position: absolute; left: 0; right: 0; top: 342px; text-align: center; font: 700 28px/1 var(--display); }
.t-days { position: absolute; left: 0; right: 0; top: 378px; text-align: center; color: var(--ink2); font: 500 15px/1 var(--text); }
.t-coach { position: absolute; left: 50%; top: 404px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; white-space: nowrap; padding: 8px 14px; border-radius: 18px; color: var(--ink2); font: 500 15px/1 var(--text); }
.t-coach .ico { width: 18px; height: 18px; position: relative; }
.t-coach > span:not(.coach-hi) { position: relative; }
.t-coach .chev { width: 14px; height: 14px; color: var(--ink3); }
.coach-hi { position: absolute; inset: 0; border-radius: inherit; background: rgba(var(--acf), .16); box-shadow: 0 0 0 1px rgba(var(--acf), .45), 0 0 24px -4px rgba(var(--acf), .6); opacity: 0; }
.t-list { position: absolute; left: 16px; right: 16px; top: 456px; padding: 2px 0; }
.t-list .row { min-height: 46px; }
.start {
  position: absolute; left: 20px; right: 20px; top: 666px; height: 60px; border-radius: 30px;
  display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--on-ac);
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 55%), var(--ac-fill);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 14px 30px -12px rgba(var(--acf), .8);
}
.start b { display: block; font: 650 18px/1.1 var(--text); }
.start small { display: block; font: 600 13px/1.2 var(--text); opacity: .75; }
.fillic { fill: currentColor; stroke: none; width: 18px; height: 18px; }

/* tab bar */
.tabbar { position: absolute; z-index: 6; left: 18px; right: 18px; bottom: 22px; height: 64px; border-radius: 32px; display: grid; grid-template-columns: repeat(4, 1fr); padding: 4px; }
.tab { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font: 600 11px/1 var(--text); color: var(--ink); }
.tab .ico { width: 24px; height: 24px; }
.tab-pill { position: absolute; left: 4px; top: 4px; bottom: 4px; width: calc((100% - 8px) / 4); border-radius: 28px; background: rgba(255, 255, 255, .14); }
.frost .tab-pill { background: rgba(255, 255, 255, .85); }
.tab[data-on="1"] { color: var(--ac-text); }

/* Diary */
.s-diary { z-index: 3; padding: 0 16px; }
.seg-top { top: 58px; left: 20px; right: 20px; }
.dnav { position: absolute; left: 20px; right: 20px; top: 108px; display: flex; align-items: center; justify-content: space-between; font: 600 17px/1 var(--text); }
.dnav .ico { width: 20px; height: 20px; }
.sum { position: absolute; left: 16px; right: 16px; top: 168px; padding: 18px 20px 16px; }
.sum-top { display: flex; align-items: baseline; gap: 8px; }
.kcal { font: 700 40px/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.of { color: var(--ink2); font-size: 15px; }
.left { margin-left: auto; color: var(--ac-text); font: 700 16px/1 var(--display); font-variant-numeric: tabular-nums; }
.bar { position: relative; height: 8px; border-radius: 4px; background: var(--track); margin: 14px 0 12px; overflow: hidden; }
.bar i { position: absolute; inset: 0; border-radius: inherit; background: var(--a-dark); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 12px rgba(var(--acf), .7); }
.frost .bar i { background: var(--ac-fill); }
.mac { display: flex; gap: 16px; color: var(--ink2); font-size: 14px; font-variant-numeric: tabular-nums; }
.mac b { color: var(--ink); }
.mac .cut { margin-left: auto; display: flex; align-items: center; }
.mac .cut .ico { width: 14px; height: 14px; }
.meals { position: absolute; left: 16px; right: 16px; top: 316px; padding: 4px 0; }
.mh { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-bottom: .5px solid var(--hair); }
.mh b { font: 700 17px/1 var(--text); }
.mt { color: var(--ink2); font-variant-numeric: tabular-nums; }
.mh .plus { margin-left: auto; color: var(--ac-text); width: 20px; height: 20px; stroke-width: 2.4; }
.me { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 20px; border-bottom: .5px solid var(--hair); }
.me small { display: block; color: var(--ink2); font-size: 13px; margin-top: 2px; }
.me .v { color: var(--ink2); }
.m4 .mh { border-bottom: 0; }

/* sheets */
.dim { position: absolute; inset: 0; z-index: 8; background: #000; opacity: 0; }
.sheet {
  position: absolute; z-index: 9; left: 0; right: 0; bottom: 0; border-radius: 34px 34px 0 0; padding: 14px 18px 30px;
  background: linear-gradient(180deg, #1c1f25, #121418); box-shadow: 0 -1px 0 rgba(255, 255, 255, .14), 0 -20px 50px -20px rgba(0, 0, 0, .8);
  transform: translateY(105%);
}
.grab { display: block; width: 40px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .28); margin: 0 auto 18px; }
.s-coach { top: 150px; }
.sh-label { display: flex; align-items: center; gap: 8px; color: var(--ink2); font: 600 15px/1 var(--text); }
.sh-label .ico { width: 18px; height: 18px; }
.sh-title { margin-top: 12px; font: 700 26px/1.15 var(--display); letter-spacing: -.01em; }
.sh-body { margin-top: 10px; color: var(--ink2); font-size: 16px; line-height: 1.4; }
.chart { margin-top: 18px; padding: 16px 18px 12px; }
.ch-k { color: var(--ink2); font: 600 14px/1 var(--text); }
.ch-v { margin-top: 6px; font: 700 30px/1 var(--display); }
.ch-v small { font-size: 16px; color: var(--ink2); }
.ch-svg { display: block; width: 100%; height: 76px; margin-top: 8px; overflow: visible; }
.ch-line { fill: none; stroke: var(--a-dark); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.ch-area { fill: rgba(var(--acf), .12); opacity: 0; }
.ch-dot { fill: var(--a-dark); opacity: 0; }
.ev { margin-top: 12px; padding: 2px 0; }
.ev .row { font-size: 15px; min-height: 44px; }

.s-search { top: 64px; }
.field-in { position: relative; display: flex; align-items: center; gap: 10px; height: 46px; border-radius: 23px; padding: 0 16px; font-size: 17px; }
.field-in .ico { width: 20px; height: 20px; color: var(--ink2); }
.typed { white-space: pre; }
.caret { width: 2px; height: 22px; background: var(--ac-text); margin-left: -8px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ph { position: absolute; left: 46px; color: var(--ink3); }
.seg3 { position: relative; left: auto; right: auto; top: auto; margin-top: 14px; grid-template-columns: repeat(3, 1fr); }
.seg3 .seg-thumb { width: calc(33.33% - 2px); }
.res-wrap { position: relative; margin-top: 14px; }
.res { padding: 2px 0; }
.res .row { min-height: 60px; }
.res .row > span:first-child { display: flex; flex-direction: column; }
.res-places { position: absolute; left: 0; right: 0; top: 0; opacity: 0; }
.res-places .row > span:first-child { display: grid; grid-template-columns: 26px 1fr; column-gap: 8px; }
.res-places .row .ico.acc { grid-row: 1 / 3; align-self: center; width: 20px; height: 20px; }
.res-places .more { grid-column: 1 / -1; color: var(--ac-text); font-weight: 600; }
.res-places .chev { width: 16px; height: 16px; color: var(--ink3); }
.res-note { display: flex; align-items: center; gap: 8px; margin: 14px 4px 0; color: var(--ink2); font-size: 13px; }
.res-note .ico { width: 16px; height: 16px; }

/* Guided set */
.s-session { z-index: 10; }
.gs-head { position: absolute; left: 18px; right: 18px; top: 58px; display: flex; align-items: center; justify-content: space-between; }
.gs-t { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.gs-t b { font: 700 18px/1 var(--text); }
.gs-t small { color: var(--ink2); font-size: 14px; }
.gs-prog { position: absolute; left: 20px; right: 20px; top: 116px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.gs-prog span { position: relative; height: 5px; border-radius: 3px; background: var(--track); overflow: hidden; }
.gs-prog i { position: absolute; inset: 0; background: var(--a-dark); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 10px rgba(var(--acf), .8); }
.ex-track { position: absolute; left: 0; right: 0; top: 170px; height: 330px; }
.ex { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 24px; }
.ex2 { transform: translateX(100%); }
.s-diary { transform: translateX(100%); }
.s-session { transform: translateX(100%); }
.ex-name { font: 700 30px/1.1 var(--display); margin-top: 16px; }
.ex-meta { margin-top: 8px; color: var(--ink2); font-size: 16px; }
.ex-set { margin-top: 6px; color: var(--ink3); font: 600 13px/1 var(--text); letter-spacing: .04em; text-transform: uppercase; }
.ex-w { display: flex; align-items: baseline; gap: 6px; margin-top: 18px; font-family: var(--display); }
.ex-w .num { font-weight: 700; font-size: 118px; line-height: .95; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ex-w .unit { color: var(--ink2); font-weight: 700; font-size: 26px; }
.ex-r { margin-top: 14px; color: var(--ac-text); font: 700 26px/1 var(--display); }
.ex-why { margin-top: 14px; color: var(--ink2); font-size: 16px; }
.gs-btns { position: absolute; left: 16px; right: 16px; bottom: 30px; display: grid; gap: 12px; }
.hit, .alt { display: flex; align-items: center; gap: 18px; padding: 0 22px; border-radius: 32px; height: 70px; }
.hit b, .alt b { display: block; font: 700 21px/1.1 var(--display); }
.hit small, .alt small { display: block; font-size: 13px; margin-top: 3px; }
.hit { height: 78px; background: linear-gradient(180deg, #5BE07E, var(--hit) 55%); color: var(--on-hit); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 16px 34px -14px rgba(48, 209, 88, .8); }
.hit small { opacity: .8; }
.hit small.swap { display: grid; }
.hit-ic { width: 32px; height: 32px; border-radius: 16px; background: #fff; color: var(--hit); display: grid; place-items: center; }
.hit-ic .ico { width: 20px; height: 20px; stroke-width: 3; }
.alt { background: var(--gl-solid); border: 1px solid var(--gl-bd); color: var(--ink); }
.alt small { color: var(--ink2); }
.alt .ico { color: var(--ink2); width: 28px; height: 28px; }
.skip-ic { width: 30px; height: 30px; border-radius: 15px; background: var(--ink2); color: #111; display: grid; place-items: center; }
.skip-ic .ico { width: 18px; height: 18px; color: #111; stroke-width: 2.6; }
.toast { position: absolute; z-index: 12; left: 0; right: 0; margin: 0 auto; width: max-content; top: 56px; transform: translateY(-90px); display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 26px; white-space: nowrap; font-size: 16px; }
.toast .ok { color: var(--hit); stroke-width: 3; width: 20px; height: 20px; }

/* Lock Screen */
.s-lock {
  z-index: 11; transform: translateY(0);
  background:
    radial-gradient(80% 50% at 20% 10%, rgba(var(--acf), .45) 0%, transparent 70%),
    radial-gradient(70% 45% at 90% 30%, rgba(var(--steel), .35) 0%, transparent 70%),
    radial-gradient(120% 60% at 50% 110%, #1b2230 0%, transparent 70%),
    #05070A;
  visibility: hidden;
}
.lk-date { position: absolute; left: 0; right: 0; top: 104px; text-align: center; font: 600 20px/1 var(--text); color: rgba(255, 255, 255, .85); }
.lk-time { position: absolute; left: 0; right: 0; top: 124px; text-align: center; font: 700 108px/1 var(--display); letter-spacing: -.02em; color: rgba(255, 255, 255, .92); }
.la {
  position: absolute; left: 12px; right: 12px; bottom: 126px; padding: 18px 20px 16px; border-radius: 30px;
  background: radial-gradient(60% 90% at 10% 0%, rgba(var(--acf), .35), transparent 70%), rgba(10, 12, 16, .88);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.la-top { display: flex; justify-content: space-between; align-items: baseline; }
.la-top b { font: 700 19px/1 var(--display); }
.la-top .swap { color: var(--ink2); font-size: 15px; font-weight: 600; justify-items: end; }
.la-mid { display: flex; align-items: baseline; gap: 6px; margin-top: 12px; }
.la-w { font: 700 58px/1 var(--display); letter-spacing: -.01em; }
.la-u { color: var(--ink2); font: 700 20px/1 var(--display); }
.la-r { color: var(--ac-text); font: 700 24px/1 var(--display); }
.la-hit { margin-left: auto; align-self: center; height: 56px; min-width: 140px; padding: 0 20px; border-radius: 28px; background: var(--hit); color: var(--on-hit); display: grid; place-items: center; font: 700 19px/1 var(--display); box-shadow: 0 10px 26px -12px rgba(48, 209, 88, .9); }
.la-hit .swap > span { display: flex; align-items: center; gap: 8px; justify-content: center; }
.la-hit .ico { stroke-width: 3; width: 20px; height: 20px; }
.la-prog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 16px; }
.la-prog span { position: relative; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.la-prog i { position: absolute; inset: 0; background: var(--a-dark); transform-origin: left; transform: scaleX(.25); }
.lk-foot { position: absolute; left: 44px; right: 44px; bottom: 34px; display: flex; justify-content: space-between; align-items: center; }
.lk-btn { width: 52px; height: 52px; border-radius: 26px; background: rgba(255, 255, 255, .14); display: grid; place-items: center; }
.lk-home { position: absolute; left: 50%; bottom: -22px; width: 140px; height: 5px; margin-left: -70px; border-radius: 3px; background: rgba(255, 255, 255, .85); }

/* Frost copy of Today */
.frost-layer { position: absolute; inset: 0; z-index: 14; clip-path: inset(100% 0 0 0); visibility: hidden; }
.frost-layer .scr { background:
    radial-gradient(70% 34% at 6% 0%, rgba(var(--acf), var(--fa)) 0%, transparent 72%),
    radial-gradient(60% 30% at 100% 6%, rgba(var(--steel), var(--fs)) 0%, transparent 72%),
    var(--ground); }
.frost-layer .sb .bat { box-shadow: inset 0 0 0 1.5px var(--ink2); }

/* the finger */
.tap { position: absolute; z-index: 18; left: 0; top: 0; width: 0; height: 0; opacity: 0; visibility: hidden; }
.tap .tip, .tap .ring { position: absolute; left: -26px; top: -26px; width: 52px; height: 52px; border-radius: 50%; }
.tap .tip { background: radial-gradient(circle, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .28) 55%, rgba(255, 255, 255, .1) 100%); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .5), 0 6px 18px rgba(0, 0, 0, .35); }
.tap .ring { box-shadow: 0 0 0 2px rgba(255, 255, 255, .8); opacity: 0; }
.wtap .tip, .wtap .ring { left: -18px; top: -18px; width: 36px; height: 36px; }

/* ---------------------------------------------------------------- watch */
.wt { position: relative; width: 250px; height: 460px; }
/* Sport band: fluoroelastomer, a touch narrower than the case, meeting it at
   the lugs with a seam. Each strap tapers and darkens as it curves away from
   the wrist-top (a cheap perspective), with a soft sheen down its length. The
   lower strap carries the adjustment holes; the upper one ends in the
   pin-and-tuck loop. */
.strap {
  position: absolute; left: 44px; width: 146px; height: 118px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .55) 0%, rgba(255, 255, 255, .07) 18%, rgba(255, 255, 255, .13) 46%, rgba(255, 255, 255, .05) 72%, rgba(0, 0, 0, .55) 100%),
    #1f2126;
}
.strap-t {
  top: -4px; border-radius: 30px 30px 4px 4px;
  clip-path: polygon(7% 0, 93% 0, 100% 100%, 0 100%);
  -webkit-mask-image: linear-gradient(to top, #000 55%, rgba(0, 0, 0, .55) 100%); mask-image: linear-gradient(to top, #000 55%, rgba(0, 0, 0, .55) 100%);
}
.strap-b {
  bottom: -4px; border-radius: 4px 4px 30px 30px;
  clip-path: polygon(0 0, 100% 0, 93% 100%, 7% 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, rgba(0, 0, 0, .55) 100%); mask-image: linear-gradient(to bottom, #000 55%, rgba(0, 0, 0, .55) 100%);
}
/* seam where the band slides into the case */
.strap-t::before, .strap-b::before {
  content: ""; position: absolute; left: 0; right: 0; height: 10px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, .15));
}
.strap-t::before { bottom: 0; }
.strap-b::before { top: 0; transform: scaleY(-1); }
/* adjustment holes down the lower strap */
.strap-b::after {
  content: ""; position: absolute; left: 50%; top: 34px; width: 10px; height: 70px; margin-left: -5px;
  background: radial-gradient(circle at 50% 50%, #0a0b0d 0 3px, rgba(255, 255, 255, .08) 3.4px 4px, transparent 4.4px) 0 0 / 10px 14px repeat-y;
}
/* pin-and-tuck loop on the upper strap */
.strap-t::after {
  content: ""; position: absolute; left: 50%; top: 22px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%;
  background: radial-gradient(circle, #3b3e44 0 3px, #15161a 3.5px 6px, transparent 6.5px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.wt-case {
  position: absolute; left: 0; top: 90px; width: 234px; height: 280px; padding: 14px; border-radius: 62px;
  background: linear-gradient(150deg, #54575e 0%, #1e1f23 22%, #0c0d0f 55%, #1e1f23 80%, #4d5057 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .18), inset 0 0 0 5px #070708, 0 50px 90px -40px rgba(0, 0, 0, .95);
}
.crown { position: absolute; z-index: 1; left: 228px; top: 170px; width: 16px; height: 46px; border-radius: 5px; overflow: hidden; background: linear-gradient(90deg, #3a3c41, #7c7f86 45%, #2a2c30); box-shadow: 0 0 0 1px rgba(0, 0, 0, .5); }
.crown i { position: absolute; left: 0; right: 0; top: -40px; bottom: -40px; background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .45) 0 2px, transparent 2px 5px); }
.side-btn { position: absolute; left: 230px; top: 240px; width: 8px; height: 54px; border-radius: 3px; background: linear-gradient(90deg, #2a2c30, #55585e); }
.w-screen { position: relative; width: 206px; height: 252px; border-radius: 48px; overflow: hidden; background: #000; color: #fff; font-family: var(--text); -webkit-mask-image: -webkit-radial-gradient(white, black); }
.w-lift, .w-saved { position: absolute; inset: 0; }
.w-lift { background: radial-gradient(90% 50% at 10% 0%, rgba(var(--acf), .38) 0%, transparent 70%), #000; }
.w-time { position: absolute; top: 14px; left: 0; right: 0; text-align: center; font: 600 15px/1 var(--text); }
.w-fork { position: absolute; right: 12px; top: 8px; width: 34px; height: 34px; border-radius: 17px; background: rgba(255, 255, 255, .14); display: grid; place-items: center; }
.w-fork .ico { width: 16px; height: 16px; }
.w-ex { position: absolute; top: 50px; left: 0; right: 0; text-align: center; font: 700 17px/1 var(--display); }
.w-set { position: absolute; top: 74px; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 6px; color: #A7AAB0; font: 600 13px/1 var(--text); }
.w-pk { width: 22px; height: 14px; }
.w-pk path { fill: none; stroke-linecap: round; stroke-width: 2.2; }
.w-pk-t { stroke: rgba(255, 255, 255, .3); }
.w-pk-f { stroke: var(--a-dark); }
.w-num { position: absolute; top: 94px; left: 0; right: 0; display: flex; justify-content: center; align-items: baseline; gap: 4px; }
.w-slot { display: grid; height: 40px; overflow: hidden; font: 700 38px/40px var(--display); font-variant-numeric: tabular-nums; }
.w-slot span { grid-area: 1 / 1; text-align: center; }
.w-slot span:nth-child(2) { transform: translateY(100%); }
.w-kg { color: #A7AAB0; font: 700 16px/1 var(--display); }
.w-bar { position: absolute; top: 140px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--a-dark); }
.w-sug { position: absolute; top: 150px; left: 0; right: 0; text-align: center; color: #A7AAB0; font-size: 13px; }
.w-row { position: absolute; left: 8px; right: 8px; bottom: 12px; display: flex; gap: 6px; }
.w-reps { width: 64px; height: 56px; border-radius: 28px; background: rgba(255, 255, 255, .14); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; color: #A7AAB0; }
.w-reps b { color: #fff; font: 700 20px/1 var(--display); }
.w-log { flex: 1; height: 56px; border-radius: 28px; background: linear-gradient(180deg, rgba(255, 255, 255, .25), rgba(255, 255, 255, 0) 60%), var(--a-dark); color: var(--on-ac); display: grid; place-items: center; font: 700 18px/1 var(--display); box-shadow: 0 8px 20px -8px rgba(var(--acf), .8); }
.w-saved { opacity: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding-top: 12px; background: radial-gradient(100% 60% at 50% 0%, #0f4a22 0%, #041a0b 55%, #000 100%); }
.w-saved .w-time { top: 14px; left: auto; right: 22px; text-align: right; }
.w-ok { width: 62px; height: 62px; border-radius: 50%; border: 1.5px solid rgba(48, 209, 88, .35); background: rgba(48, 209, 88, .08); display: grid; place-items: center; margin-bottom: 10px; }
.w-ok svg { width: 34px; height: 34px; }
.w-ok path { fill: none; stroke: #30D158; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.w-saved b { font: 700 22px/1 var(--display); }
.w-saved small { color: #A7AAB0; font-size: 12px; margin-top: 4px; }
.w-off { position: absolute; inset: 0; background: #000; }

/* ================================================================= STATIC STORY (fallback) */
.static-story { position: relative; isolation: isolate; overflow: clip; padding-bottom: 40px; }
.st-hero { position: relative; padding: 120px var(--gutter) 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.st-hero h1 { position: relative; font-size: clamp(2.35rem, 1.4rem + 3.6vw, 4.4rem); line-height: 1.02; letter-spacing: -.03em; max-width: 15ch; }
.st-hero .lede, .st-hero .actions { position: relative; }
.st-hero .lede { margin-top: 18px; }
.dev { position: relative; width: min(300px, 76vw); padding: 8px; border-radius: 48px; background: #16171A; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 40px 80px -40px rgba(0, 0, 0, .7); }
.dev img { border-radius: 40px; }
.st-hero .dev { margin-top: 48px; }
.wdev { width: min(220px, 60vw); padding: 12px; border-radius: 26%/22%; background: linear-gradient(160deg, #2b2d31, #0c0d0f 60%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.wdev img { border-radius: 16%/13%; }
.st-ch { width: min(1080px, 100%); margin: clamp(80px, 11vw, 140px) auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.st-ch h2 { max-width: 16ch; }
.st-ch .lede { margin-top: 16px; }
.la-img { margin-top: 24px; width: min(420px, 100%); border-radius: 20px; }
@media (max-width: 760px) { .st-ch { grid-template-columns: minmax(0, 1fr); justify-items: center; } .st-ch > div { justify-self: stretch; } }
.fade { opacity: 1; transition: opacity .8s var(--ease-out); }
html.io .fade:not(.in) { opacity: 0; }

/* ================================================================= BANDS: privacy, invite */
.band { position: relative; isolation: isolate; padding: clamp(80px, 11vw, 150px) 0 0; }
.band > .wrap { position: relative; z-index: 1; }
.feats { list-style: none; margin: 28px 0 0; padding: 4px 0 4px 18px; }
.feats li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px 16px 0; border-bottom: .5px solid var(--hair); color: var(--ink2); font-size: .9688rem; }
.feats li:last-child { border-bottom: 0; }
.feats .ico { margin-top: 1px; color: var(--ac-text); }
.feats b { display: block; color: var(--ink); font: 700 1.0625rem/1.3 var(--display); margin-bottom: 2px; }
.feats + .note { margin-top: 16px; }
#privacy h2 { max-width: 14ch; }
.invite-band { padding-bottom: clamp(80px, 10vw, 140px); overflow: clip; }
.invite-band .field { top: auto; bottom: -200px; height: 900px; }
.invite-in { text-align: center; }
.peak-sm { width: min(300px, 60vw); margin: 0 auto 28px; }
.invite-in .lede { margin: 18px auto 0; }
.invite { margin: 36px auto 0; padding: clamp(18px, 3vw, 28px); text-align: left; display: grid; gap: 18px; max-width: 560px; }
.field-row label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 6px; }
.opt { font-weight: 500; color: var(--ink2); margin-left: 4px; }
.hint-t { color: var(--ink2); font-size: .875rem; margin: -2px 0 8px; }
.invite input, .invite textarea {
  width: 100%; min-height: 48px; padding: 12px 16px; font: 400 1.0625rem/1.4 var(--text); color: var(--ink);
  background: var(--field-in); border: 1px solid var(--pn-bd); border-radius: 14px; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .18);
  transition: border-color .2s, box-shadow .2s; caret-color: var(--ac-text);
}
.invite textarea { resize: vertical; min-height: 96px; }
.invite input::placeholder, .invite textarea::placeholder { color: var(--ink3); }
.invite input:focus-visible, .invite textarea:focus-visible { outline: none; border-color: var(--ac-text); box-shadow: 0 0 0 3px rgba(var(--acf), .35); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.invite-status { font-size: .9375rem; text-align: center; color: var(--ink2); }
.invite-status:empty { display: none; }

.foot { border-top: .5px solid var(--hair); padding: 36px 0 calc(40px + env(safe-area-inset-bottom)); color: var(--ink2); font-size: .875rem; }
.foot-in { display: flex; flex-wrap: wrap; gap: 20px 48px; justify-content: space-between; }
.foot p + p { margin-top: 6px; }
.foot .brand { font-size: 1.0625rem; margin-bottom: 4px; }
.foot-links { text-align: right; }
@media (max-width: 640px) { .foot-links { text-align: left; } }
.logo { width: 22px; height: 22px; }

/* ================================================================= MOBILE */
@media (max-width: 760px) {
  .c-hero { top: 84px; }
  .c-hero h1 { font-size: clamp(2rem, 8.4vw, 2.5rem); }
  .c-hero .lede { font-size: 1rem; margin-top: 12px; }
  .c-hero .actions { margin-top: 18px; }
  .c-hero .btn.glass { display: none; }
  .c-side {
    left: var(--gutter); right: var(--gutter); width: auto; top: auto; bottom: 0; display: block;
    padding: 64px 0 max(20px, env(safe-area-inset-bottom));
    background: linear-gradient(to bottom, transparent, var(--ground) 56px);
    margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter);
  }
  .c-look { background: none; }
  .kicker { margin-bottom: 8px; }
  .c-side h2 { font-size: 1.6rem; max-width: 20ch; }
  .c-side .lede { font-size: .9688rem; margin-top: 8px; }
  .c-side .note, .beats, .chips-list { display: none; }
  .c-look .swatches { margin-top: 12px; }
  .c-look .accent-name { display: none; }
  .rail { display: none; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .c-hero .lede { display: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .glass, .panel { -webkit-backdrop-filter: none; backdrop-filter: none; background: color-mix(in srgb, var(--ground) 86%, var(--ink)); }
}

/* ---------------------------------------------------------------- invite states (from site.css) */
.err { color: #FF6B61; font-size: .875rem; margin-top: 6px; }
.err:empty { display: none; }
.invite-status.bad { color: #FF6B61; }
.sent { text-align: center; padding: 12px 0; }
.sent .tick { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 28px; display: grid; place-items: center; background: var(--hit); color: var(--on-hit); box-shadow: 0 12px 28px -14px rgba(48, 209, 88, .9); }
.sent .tick .ico { width: 26px; height: 26px; stroke-width: 3; }
.sent b { display: block; font: 700 1.25rem/1.3 var(--display); }
.sent p { color: var(--ink2); margin-top: 6px; }
