/* ==========================================================================
   CMD — styles
   Mobile-first. Tokens first; everything below references them.
   Motion rule: only transform + opacity are ever animated or transitioned.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License: see /fonts/OFL-*.txt) ---------- */
@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/anton-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/anton-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/work-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/work-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
  --bg: #0a0e13;
  --surface: #121821;
  --surface-2: #18202b;
  --ink: #e9eef3;
  --soft: #a7b2bd;
  --bull: #2fe38a;
  --bull-ink: #03130a;
  --loss: #ff4d57;
  --loss-fill: #c81e2b; /* red behind white text: 5.6:1 (bright --loss is for red text on dark) */

  --glass: rgba(15, 21, 29, 0.48);
  --glass-strong: rgba(15, 21, 29, 0.82);
  --stroke: rgba(255, 255, 255, 0.1);
  --stroke-hi: rgba(255, 255, 255, 0.22);
  --hi: rgba(255, 255, 255, 0.08);

  --r-lg: 24px;
  --r: 18px;
  --r-sm: 12px;
  --pill: 999px;

  --gutter: 16px;
  --maxw: 1360px;
  --sec: 112px;
  --nav-h: 64px;

  --font: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Anton", Impact, "Arial Narrow", "Helvetica Neue Condensed", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Cascadia Code", Menlo, Consolas, monospace; /* taste-skill-ignore: terminal + intro only (client brief) */

  /* Five type steps, no more */
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.6rem, 1.5rem + 4.6vw, 6.25rem);
  --step-display: clamp(3.1rem, 9.4vw, 10rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 768px) { :root { --gutter: 24px; --sec: 160px; } }
@media (min-width: 1200px) { :root { --gutter: 32px; --sec: 200px; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
[id] { scroll-margin-top: 88px; }
a, button, label, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
[tabindex="-1"]:focus { outline: none; }
dialog { overscroll-behavior: contain; }
body {
  margin: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img, svg, canvas, picture, video { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(63, 207, 142, 0.35); color: #fff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
kbd { font-family: var(--mono); font-size: 0.9em; padding: 0.05em 0.4em; border-radius: 6px; background: var(--hi); }

.skip {
  position: fixed; left: var(--gutter); top: 12px; z-index: 200;
  padding: 12px 16px; border-radius: var(--pill);
  background: var(--ink); color: var(--bg); font-weight: 500; text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

/* Dim, pre-blurred room light behind everything so the glass has something to bend */
.ambient {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url("../assets/hero/ambient.webp") center / cover no-repeat;
  opacity: 0.32;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}
.section { position: relative; padding-block: calc(var(--sec) * 0.5); }

/* ---------- Type ---------- */
.title, .title-caps {
  font-family: var(--display);
  font-size: var(--step-head);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}
.lead { font-size: var(--step-lead); line-height: 1.45; max-width: 34em; text-wrap: pretty; }
.card-title { font-size: var(--step-lead); font-weight: 400; line-height: 1.2; letter-spacing: -0.01em; }

.section-head { display: grid; gap: 16px; margin-bottom: 40px; }
.section-head__sub { color: var(--soft); max-width: 40em; }
.section-head--row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 32px; }
.section-head--row .section-head__sub { margin-top: 16px; }
@media (min-width: 768px) { .section-head { margin-bottom: 56px; } }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4em; min-height: 44px;
  color: var(--ink); text-decoration: underline; text-underline-offset: 0.25em;
  text-decoration-color: rgba(233, 238, 243, 0.4);
}
.link-arrow:hover { text-decoration-color: var(--ink); }

/* ---------- Glass ---------- */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--stroke);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); /* taste-skill-ignore: glass edge highlight (reference) */
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--glass-strong); }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0 1.35em;
  border-radius: var(--pill); border: 1px solid transparent;
  font-size: 1rem; font-weight: 500; line-height: 1; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap;
  transition: transform 0.25s var(--ease);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: rgba(255, 255, 255, 0.12); opacity: 0; transition: opacity 0.25s var(--ease);
}
.btn:hover::after, .btn:focus-visible::after { opacity: 1; }
.btn:active { transform: scale(0.97); }
@media (hover: hover) { .btn:hover { transform: translateY(-1px); } .btn:active { transform: scale(0.97); } }
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid::after { background: rgba(10, 14, 19, 0.1); }
.btn--bull { background: var(--bull); color: var(--bull-ink); font-weight: 600; }
.btn--bull::after { background: rgba(255, 255, 255, 0.22); }
.btn--glass {
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-color: var(--stroke-hi);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12); /* taste-skill-ignore: glass edge highlight (reference) */
  color: var(--ink);
}
.btn--sm { min-height: 40px; padding: 0 1.05em; font-size: 0.9375rem; }
.btn--xl { min-height: 60px; padding: 0 2.1em; font-size: 1.125rem; }
@media (min-width: 768px) { .btn--xl { min-height: 64px; font-size: 1.1875rem; } }

.icon-btn {
  position: relative; isolation: isolate;
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  border-radius: 50%; color: var(--ink);
  transition: transform 0.25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: rgba(255, 255, 255, 0.12); opacity: 0; transition: opacity 0.25s var(--ease); }
.icon-btn:hover::after, .icon-btn:focus-visible::after { opacity: 1; }
.icon-btn:active { transform: scale(0.94); }
.icon-btn[disabled] { opacity: 0.4; cursor: default; }
.icon-btn[disabled]::after { opacity: 0; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: max(10px, env(safe-area-inset-top)) var(--gutter) 10px;
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(10, 14, 19, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.nav.is-solid::before { opacity: 1; }
.nav__inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: var(--maxw); margin-inline: auto; min-height: 44px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.logo__avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--surface); box-shadow: 0 0 0 1px var(--stroke-hi); }
.logo__word { font-weight: 500; font-size: 1.0625rem; letter-spacing: 0.16em; }

.nav__links { display: none; }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__actions [data-sound-toggle] .i-sound-on { display: none; }
.nav__actions [data-sound-toggle][aria-pressed="true"] .i-sound-on { display: block; }
.nav__actions [data-sound-toggle][aria-pressed="true"] .i-sound-off { display: none; }
.nav__actions .icon-btn[data-sound-toggle] { width: 40px; height: 40px; }
.nav__actions .icon-btn[data-sound-toggle] svg { width: 18px; height: 18px; }
.nav__menu-btn { width: 40px; height: 40px; }

@media (min-width: 1000px) {
  .nav__links {
    display: flex; gap: 2px; padding: 4px;
    position: absolute; left: 50%; transform: translateX(-50%);
    border-radius: var(--pill);
  }
  .nav__links a {
    position: relative; isolation: isolate;
    padding: 10px 16px; border-radius: var(--pill);
    font-size: 0.9375rem; color: var(--ink); text-decoration: none; opacity: 0.86;
  }
  .nav__links a::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: rgba(255, 255, 255, 0.1); opacity: 0; transition: opacity 0.25s var(--ease); }
  .nav__links a:hover, .nav__links a[aria-current="true"] { opacity: 1; }
  .nav__links a:hover::after, .nav__links a[aria-current="true"]::after { opacity: 1; }
  .nav__menu-btn { display: none; }
}

.mobile-menu {
  position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 4px);
  padding: 12px; border-radius: var(--r-lg);
  background: rgba(12, 17, 24, 0.86);
  opacity: 0; transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu nav { display: grid; }
.mobile-menu nav a {
  display: flex; align-items: center; min-height: 52px; padding: 0 12px;
  font-family: var(--display); font-size: 1.75rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.01em; text-decoration: none;
  border-radius: var(--r-sm);
}
.mobile-menu nav a:active { background: var(--hi); }
.mobile-menu__row { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 4px 4px; }
@media (min-width: 1000px) { .mobile-menu { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero__stage { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--bg); }
html:not(.motion) .hero__stage { height: auto; min-height: 100svh; }
.motion .hero { height: 290vh; }
.motion .hero__stage { position: sticky; top: 0; }
@media (min-width: 768px) { .motion .hero { height: 330vh; } }

.hero__still, .hero__still img, .hero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero__still img { object-fit: cover; object-position: 50% 50%; }
.hero__canvas { opacity: 0; transition: opacity 0.6s var(--ease); }
.hero.is-ready .hero__canvas { opacity: 1; }

.hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    /* taste-skill-ignore: neutral scrim over the hero film */ linear-gradient(to bottom, rgba(10, 14, 19, 0.82) 0%, rgba(10, 14, 19, 0.38) 30%, rgba(10, 14, 19, 0.08) 52%, rgba(10, 14, 19, 0.2) 74%, rgba(10, 14, 19, 0.92) 100%);
}
.hero__veil { position: absolute; inset: 0; pointer-events: none; background: rgba(8, 11, 15, 0.62); opacity: 0; }

.hero__badge {
  position: relative; z-index: 3; display: flex; justify-content: center;
  padding: calc(var(--nav-h) + 28px) var(--gutter) 0;
}
.motion .hero__badge { position: absolute; left: 0; right: 0; top: 0; }

.hero__copy {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 64px;
  padding: 56px var(--gutter) 180px;
  text-align: center;
}
.motion .hero__copy {
  position: absolute; inset: 0; display: grid; grid-template: 1fr / 1fr; place-items: center; gap: 0;
  padding: calc(var(--nav-h) + 72px) var(--gutter) 128px;
}
.motion .hero__copy > * { grid-area: 1 / 1; }
.motion .hero__line--2, .motion .hero__statement { opacity: 0; visibility: hidden; }
/* Calls to action inside scroll scenes stay focusable while hidden (opacity only); focusing one scrolls the scene to it */
.motion .hero__cta, .motion .final__end { opacity: 0; pointer-events: none; }

.hero__intro, .hero__cta { display: flex; flex-direction: column; align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 36px; padding: 6px 16px 6px 12px;
  border-radius: var(--pill);
  font-size: var(--step-small); line-height: 1.3; text-decoration: none; color: var(--ink);
  transition: transform 0.25s var(--ease);
}
.badge:hover { transform: translateY(-1px); }
.badge__dot { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--soft); }
.badge.is-live .badge__dot { background: var(--bull); }
.badge.is-live .badge__dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  background: var(--bull); opacity: 0.5;
  animation: pulse 1.8s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(0.6); opacity: 0.6; } 100% { transform: scale(2.2); opacity: 0; } }

.hero__title, .hero__statement {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: var(--step-display); line-height: 0.9; letter-spacing: 0.005em;
}
.hero__title { display: grid; gap: 0.06em; }
.motion .hero__title { display: block; position: relative; width: min(100vw - 2 * var(--gutter), 8.6em); }
.motion .hero__line--2 { position: absolute; left: 0; right: 0; top: 50%; margin-top: -0.9em; }
.hero__line { display: block; margin-inline: auto; }
.hero__line--1 { white-space: nowrap; }
.hero__line--2, .hero__line--lead, .hero__statement { max-width: 8.2em; text-wrap: balance; }
.hero__sub { max-width: 34ch; margin-top: 26px; font-size: var(--step-body); font-weight: 500; line-height: 1.5; color: var(--ink); text-wrap: balance; }
@media (min-width: 768px) { .hero__sub { margin-top: 34px; max-width: 46ch; } }
.hero__note { margin-top: 18px; font-size: var(--step-small); color: var(--ink); opacity: 0.85; }
em.t-bull, em.t-loss { font-style: normal; }
.t-bull { color: var(--bull); }
.t-loss { color: var(--loss); }

.hero__cue {
  position: absolute; left: 50%; bottom: 28px; z-index: 2; transform: translateX(-50%);
  display: none; font-size: var(--step-small); font-weight: 500; color: var(--ink);
}
.hero__cue span { display: block; animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (min-width: 768px) { .motion .hero__cue { display: block; } }

/* Session clock */
.clock {
  position: absolute; z-index: 3;
  left: var(--gutter); bottom: calc(16px + env(safe-area-inset-bottom));
  width: calc(100% - 2 * var(--gutter) - 56px); max-width: 320px;
  padding: 12px 16px; border-radius: 16px;
  font-size: var(--step-small); line-height: 1.35;
}
.clock__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.clock__place { color: var(--soft); }
.clock__time { font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.clock__row--session { flex-wrap: wrap; justify-content: flex-start; gap: 2px 8px; margin-top: 4px; align-items: center; }
.clock__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--soft); flex: none; }
.clock.is-active .clock__dot { background: var(--bull); }
.clock.is-closed .clock__dot { background: var(--loss); }
.clock__session { font-weight: 500; }
.clock__next { color: var(--soft); font-variant-numeric: tabular-nums; }
.clock__next:not(:empty)::before { content: "· "; }
@media (max-width: 767px) { .clock { padding: 10px 14px; } }
@media (min-width: 768px) {
  .clock { bottom: 28px; width: 300px; }
  .clock__row--session { gap: 8px; }
  .clock__next { flex-basis: 100%; margin-top: 2px; }
  .clock__next:not(:empty)::before { content: none; }
}

@media (max-width: 599px) {
  .motion .hero__copy { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .hero__sub { margin-top: 20px; }
}
/* Phones: the intro sentence sits on the busy chart, so give it a soft dark backing + shadow */
@media (max-width: 767px) {
  .hero__sub { position: relative; isolation: isolate; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 16px rgba(0, 0, 0, 0.8); }
  .hero__sub::before {
    content: ""; position: absolute; inset: -22px -28px; z-index: -1; pointer-events: none;
    background: radial-gradient(closest-side, rgba(8, 11, 15, 0.82), rgba(8, 11, 15, 0.55) 60%, rgba(8, 11, 15, 0));
  }
}

/* ---------- Section film scenes (same engine as the hero) ---------- */
.scene { position: relative; }
.scene__stage { position: relative; height: 100svh; min-height: 520px; overflow: hidden; background: var(--bg); }
html:not(.motion) .scene__stage { height: 82svh; min-height: 460px; }
.motion .scene { height: 230vh; }
.motion .scene__stage { position: sticky; top: 0; }
.scene__still, .scene__still img, .scene__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene__still img { object-fit: cover; }
.scene__canvas { opacity: 0; transition: opacity 0.6s var(--ease); }
.scene.is-ready .scene__canvas { opacity: 1; }
.scene__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: /* taste-skill-ignore: neutral scrim over scene film */ linear-gradient(to bottom, var(--bg) 0%, rgba(10, 14, 19, 0.35) 18%, rgba(10, 14, 19, 0.45) 60%, var(--bg) 100%);
}
.scene__veil { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: /* taste-skill-ignore: keeps late-scene text readable over the lit door */ radial-gradient(ellipse 60% 34% at 50% 50%, rgba(8, 11, 15, 0.86), rgba(8, 11, 15, 0.5) 60%, rgba(8, 11, 15, 0) 100%); }
.scene__copy {
  position: absolute; inset: 0; z-index: 2;
  display: grid; grid-template: 1fr / 1fr; place-items: center;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 64px; text-align: center;
}
.scene__copy > * { grid-area: 1 / 1; }
html:not(.motion) .scene__copy { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 24px; }
.scene__line {
  max-width: 9em; text-wrap: balance;
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: var(--step-display); line-height: 0.9; letter-spacing: 0.005em;
}
.motion .scene__line { opacity: 0; visibility: hidden; }
.motion .final__end .scene__line { opacity: 1; visibility: visible; }
.scene__still--end { display: none; }
html:not(.motion) .scene__still--start { display: none; }
html:not(.motion) .scene__still--end { display: block; }

/* Final scene: pull back to the window at dawn */
.motion .scene--final { height: 270vh; }
.final__copy { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
.final__end { display: flex; flex-direction: column; align-items: center; gap: 36px; }
.final__note { max-width: 30em; margin-top: -8px; font-weight: 500; }
.final__scrim { background: /* taste-skill-ignore: neutral scrim over the dawn film */ linear-gradient(to bottom, var(--bg) 0%, rgba(10, 14, 19, 0.4) 16%, rgba(10, 14, 19, 0.22) 50%, rgba(10, 14, 19, 0.6) 84%, var(--bg) 100%); }
.final__veil { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: /* taste-skill-ignore: keeps the CTA readable over the bright dawn */ radial-gradient(ellipse 46% 40% at 50% 54%, rgba(10, 14, 19, 0.72), rgba(10, 14, 19, 0) 100%); }
/* static dawn (reduced motion): all the text sits on the image at once, so darken more of it */
html:not(.motion) .final__veil { opacity: 1; background: /* taste-skill-ignore: static dawn needs a wider veil */ radial-gradient(ellipse 75% 62% at 50% 50%, rgba(10, 14, 19, 0.84), rgba(10, 14, 19, 0.5) 100%); }
@media (max-width: 599px) { .final__line--1, .final__line--2 { font-size: clamp(2.6rem, 13vw, 3.6rem); } }

/* ---------- Section backgrounds (dim cinematic stills behind a section, faded into the page at both ends) ---------- */
.has-bg { isolation: isolate; }
.section__bg {
  position: absolute; inset: 0 0 auto 0; height: min(100%, 150vh); z-index: -1; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 70%, transparent 100%);
}
.section__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.42; }
@media (min-width: 768px) { .section__bg img { opacity: 0.55; } }

/* ---------- About ---------- */
.about__grid { display: grid; gap: 40px; }
.about__body { display: grid; gap: 1.1em; max-width: 36em; }
.about__body p { font-size: var(--step-lead); line-height: 1.45; text-wrap: pretty; }
.about__portrait { position: relative; width: min(200px, 50vw); }
.about__portrait img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg);
  border: 1px solid var(--stroke-hi); background: var(--surface);
  box-shadow: 0 0 0 6px rgba(10, 14, 19, 0.6);
}
.about__portrait figcaption {
  position: absolute; left: 14px; bottom: 14px;
  padding: 6px 12px; border-radius: var(--pill);
  background: rgba(10, 14, 19, 0.86); font-size: var(--step-small); font-weight: 500;
}
.about__portrait figcaption span { color: var(--bull); }
.hl {
  font-weight: 500; color: var(--bull);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em;
  text-decoration-color: rgba(63, 207, 142, 0.45);
}
.side-title { font-size: var(--step-small); font-weight: 500; color: var(--soft); margin-bottom: 14px; }
.trade-list { display: grid; gap: 4px; }
.trade-list li { display: flex; align-items: baseline; gap: 14px; padding: 10px 0; font-family: var(--display); font-size: var(--step-lead); font-weight: 400; text-transform: uppercase; letter-spacing: 0.01em; }
.trade-list__k { width: 4.5rem; flex: none; font-size: var(--step-small); font-weight: 400; color: var(--soft); letter-spacing: 0; }
.about__side { border-radius: var(--r-lg); padding: 22px 22px 14px; }
@media (min-width: 1000px) {
  .about__grid { grid-template-columns: repeat(12, 1fr); gap: 56px 32px; }
  .about__title { grid-column: 1 / 13; }
  .about__portrait { grid-column: 1 / 4; grid-row: 2 / 4; width: 100%; align-self: start; }
  .about__body { grid-column: 4 / 10; grid-row: 2 / 4; max-width: none; }
  .about__side { grid-column: 10 / 13; grid-row: 2; align-self: start; padding: 28px 28px 18px; }
}

/* ---------- Journey ---------- */
.journey__grid { display: grid; gap: 40px; }
@media (min-width: 1000px) {
  .journey__grid { grid-template-columns: repeat(12, 1fr); gap: 56px 32px; align-items: center; }
  .journey__title { grid-column: 1 / 13; }
  .journey__text { grid-column: 1 / 7; }
  .journey__card { grid-column: 8 / 13; }
}

.account-shot { margin: 0; border-radius: var(--r-lg); padding: 12px; }
.account-shot img { display: block; width: 100%; height: auto; border-radius: calc(var(--r-lg) - 8px); }
.account-shot__cap { margin: 14px 6px 4px; font-size: var(--step-small); color: var(--soft); line-height: 1.5; }
.account { position: relative; border-radius: var(--r-lg); padding: 24px; overflow: hidden; }
.account__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.account__name { font-size: var(--step-lead); font-weight: 400; line-height: 1.2; }
.account__type { color: var(--soft); font-size: var(--step-small); margin-top: 4px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 6px 12px; border-radius: var(--pill);
  font-size: var(--step-small); font-weight: 500;
}
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill--loss { color: #fff; background: var(--loss-fill); text-transform: uppercase; letter-spacing: 0.04em; }
.status-pill--loss::before { background: #fff; }
.status-pill--live { color: var(--bull); background: rgba(63, 207, 142, 0.12); }
.status-pill--muted { color: var(--soft); background: var(--hi); }
.account__balance { margin-top: 32px; }
.account__label { font-size: var(--step-small); color: var(--soft); }
.account__value { font-family: var(--display); font-size: var(--step-head); font-weight: 400; letter-spacing: 0.01em; line-height: 1; font-variant-numeric: tabular-nums; margin-top: 4px; }
.account__value.is-loss { color: var(--ink); }
.account__rows { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.account__cell { padding: 14px 16px; border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.04); }
.account__cell b { display: block; font-weight: 500; font-variant-numeric: tabular-nums; margin-top: 2px; }
.account__glyph { position: absolute; right: 24px; bottom: 22px; width: 10px; height: 54px; opacity: 0.9; }
@media (min-width: 768px) { .account { padding: 32px; } }

/* Mini candles (used by the road + journal) */
.mcandle { position: relative; display: block; width: 14px; height: 44px; flex: none; }
.mcandle::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); border-radius: 2px; background: rgba(233, 238, 243, 0.35); }
.mcandle::after { content: ""; position: absolute; left: 0; right: 0; top: 9px; bottom: 9px; border-radius: 3px; background: rgba(233, 238, 243, 0.12); }
.mcandle--bull::before { background: rgba(63, 207, 142, 0.7); }
.mcandle--bull::after { background: var(--bull); }
.mcandle--loss::before { background: rgba(240, 101, 106, 0.7); }
.mcandle--loss::after { background: var(--loss); }
.mcandle--forming::after { background: transparent; border: 1.5px solid var(--ink); }
.mcandle--forming::before { animation: forming 1.8s ease-in-out infinite; }
@keyframes forming { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

.road { margin-top: 64px; border-radius: var(--r-lg); padding: 24px 20px; }
.road__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.road__title { font-size: var(--step-lead); font-weight: 400; }
.road__status { font-size: var(--step-small); color: var(--soft); }
.road__list { display: grid; gap: 4px; margin-top: 24px; }
.road__item { display: grid; grid-template-columns: 14px 1fr; gap: 18px; align-items: start; padding: 14px 0; }
.road__label { font-weight: 500; line-height: 1.35; }
.road__meta { display: block; margin-top: 4px; font-size: var(--step-small); color: var(--soft); }
.road__item.is-done .road__meta { color: var(--ink); }
.road__item.is-now .road__label { color: var(--ink); }
.road__item.is-later .road__label { color: var(--soft); font-weight: 400; }

.progress { margin-top: 16px; }
.progress__track { position: relative; height: 8px; border-radius: var(--pill); background: rgba(255, 255, 255, 0.1); }
.progress__fill { position: absolute; top: 0; bottom: 0; border-radius: var(--pill); transform-origin: var(--origin, left) center; }
.progress__fill.is-up { background: var(--bull); }
.progress__fill.is-down { background: var(--loss); }
.progress__tick { position: absolute; top: -5px; bottom: -5px; width: 2px; border-radius: 2px; background: var(--ink); transform: translateX(-50%); }
.progress__dot { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); transform: translate(-50%, -50%); }
.progress__labels { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: var(--step-small); font-variant-numeric: tabular-nums; }
.progress__labels span:first-child { color: var(--ink); }
.progress__labels span:last-child { color: var(--soft); text-align: right; }
.progress__stats { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 10px; font-size: var(--step-small); font-variant-numeric: tabular-nums; }
.progress__stats b { font-weight: 500; }

@media (min-width: 900px) {
  .road { padding: 36px 40px 40px; }
  .road__list { grid-template-columns: 1fr 1fr 2fr 1fr 1fr; gap: 28px; margin-top: 40px; align-items: start; }
  .road__item { grid-template-columns: 1fr; gap: 16px; padding: 0; }
}

.unlock { position: relative; margin-top: 32px; padding: 24px; border-radius: var(--r); background: rgba(63, 207, 142, 0.1); overflow: hidden; }
.unlock__title { font-family: var(--display); font-size: var(--step-head); font-weight: 400; text-transform: uppercase; line-height: 0.92; color: var(--bull); }
.unlock__text { margin-top: 12px; }
.unlock__burst { position: absolute; inset: 0; pointer-events: none; }
.unlock__burst i { position: absolute; bottom: -20px; width: 8px; height: 28px; border-radius: 2px; background: var(--bull); opacity: 0; }

/* ---------- Lessons ---------- */
.lessons__list { display: grid; gap: 16px; }
.loss {
  position: relative; isolation: isolate;
  display: grid; gap: 14px; padding: 12px;
  border-radius: var(--r-lg); cursor: pointer;
  transition: transform 0.3s var(--ease);
}
.loss__cta {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; margin: 0; padding: 0; border: 0; background: none;
  font-size: var(--step-small); font-weight: 500; color: var(--ink);
  text-decoration: underline; text-underline-offset: 0.25em; text-decoration-color: rgba(233, 238, 243, 0.35);
}
.loss__cta:hover { text-decoration-color: var(--ink); }
.loss::after { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; border: 1px solid var(--stroke-hi); background: rgba(255, 255, 255, 0.04); opacity: 0; transition: opacity 0.3s var(--ease); }
.loss:hover::after, .loss:focus-visible::after, .loss.is-active::after { opacity: 1; }
.loss:active { transform: scale(0.99); }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.loss:hover .thumb img, .vcard:hover .thumb img { transform: scale(1.03); }
.thumb__play {
  position: absolute; left: 12px; bottom: 12px;
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
}
.thumb__play svg { width: 14px; height: 14px; margin-left: 2px; }
.loss__body { display: grid; gap: 6px; padding: 2px 6px 6px; }
.loss__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pnl { font-family: var(--display); font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); font-weight: 400; line-height: 1; letter-spacing: 0.01em; }
.pnl--loss { color: var(--loss); }
.pnl--win { color: var(--bull); }
.loss__date { font-size: var(--step-small); color: var(--soft); }
.loss__label { font-size: var(--step-body); font-weight: 500; line-height: 1.35; }
.loss__lesson { color: var(--ink); line-height: 1.5; }

/* Tablet: thumbnail beside the text */
@media (min-width: 640px) {
  .loss { grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: 20px; align-items: center; }
}
/* Desktop: a trade ledger, one row per L: thumbnail | big red P&L | what happened + the lesson */
@media (min-width: 1000px) {
  .lessons__list { gap: 14px; }
  .loss { grid-template-columns: 300px minmax(0, 1fr); gap: 32px; padding: 14px 28px 14px 14px; }
  .loss__body { grid-template-columns: 11.5rem minmax(0, 1fr); grid-template-areas: "top label" "top lesson" "top cta"; column-gap: 28px; row-gap: 6px; align-items: start; padding: 0; }
  .loss__top { grid-area: top; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; align-self: center; }
  .loss__top .pnl { font-size: clamp(2.6rem, 1.6rem + 2vw, 3.6rem); }
  .loss__label { grid-area: label; font-size: var(--step-lead); }
  .loss__lesson { grid-area: lesson; max-width: 40em; }
  .loss__cta { grid-area: cta; }
}

/* ---------- Latest videos ---------- */
.videos__grid { display: grid; gap: 28px; }
.vcard {
  position: relative; isolation: isolate; display: grid; gap: 14px; width: 100%;
  padding: 0; text-align: left; background: none; border: 0;
  transition: transform 0.3s var(--ease);
}
.vcard:active { transform: scale(0.99); }
.vcard__title { font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vcard__date { display: block; margin-top: 4px; font-size: var(--step-small); color: var(--soft); }
.vcard--feature .vcard__title { font-size: var(--step-lead); font-weight: 400; letter-spacing: -0.01em; -webkit-line-clamp: 2; }
.vcard--feature .thumb { border-radius: var(--r-lg); }
.videos__rest {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.videos__rest::-webkit-scrollbar { display: none; }
.videos__rest > li { scroll-snap-align: start; }
@media (min-width: 700px) { .videos__rest { grid-auto-columns: 44%; } }
@media (min-width: 1000px) {
  .videos__grid { grid-template-columns: repeat(12, 1fr); gap: 32px; }
  .vcard--feature { grid-column: 1 / 8; }
  .videos__side { grid-column: 8 / 13; display: grid; gap: 20px; align-content: start; }
  .videos__side .vcard { grid-template-columns: 44% 1fr; gap: 16px; align-items: start; }
  .videos__side--4 { gap: 14px; }
  .videos__side--4 .vcard { grid-template-columns: 40% 1fr; }
  .videos__side--4 .vcard__title { -webkit-line-clamp: 2; }
  .videos__rest { grid-column: 1 / 13; grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-auto-columns: auto; overflow: visible; margin: 8px 0 0; padding: 0; gap: 24px; }
}

/* ---------- Start here ---------- */
.start__grid { display: grid; gap: 40px; }
/* "Who I learned from" follows Start here as its next step: one continuous block, no double section gap */
.start:has(+ .creators) { padding-bottom: calc(var(--sec) * 0.3); }
.start + .creators { padding-top: calc(var(--sec) * 0.2); }
.creators__intro { margin-top: 18px; color: var(--ink); }
.creators__intro + .section-head__sub { margin-top: 10px; }
.start__head .lead { margin-top: 24px; }
.start__count { margin-top: 20px; font-size: var(--step-small); color: var(--soft); font-variant-numeric: tabular-nums; }
.start__count.is-complete { color: var(--bull); }
.path { display: grid; gap: 16px; counter-reset: step; }
.step {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px;
  padding: 22px 20px; border-radius: var(--r-lg);
}
.step__num { grid-row: 1 / 3; font-family: var(--display); font-size: var(--step-head); font-weight: 400; line-height: 0.85; color: var(--bull); min-width: 1.1ch; font-variant-numeric: tabular-nums; transition: opacity 0.3s; }
.step__title { font-size: var(--step-lead); font-weight: 400; line-height: 1.25; letter-spacing: -0.01em; padding-right: 48px; }
.step__note { color: var(--soft); }
.step__actions { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; min-width: 0; }
.step__actions .btn { white-space: normal; text-align: left; line-height: 1.3; padding-block: 10px; max-width: 100%; }
.start__grid > *, .step > * { min-width: 0; }
.step__done-text { font-size: var(--step-small); color: var(--bull); opacity: 0; transition: opacity 0.3s var(--ease); }
.step.is-done .step__done-text { opacity: 1; }
.step.is-done .step__num { color: var(--bull); }

.check { position: absolute; top: 16px; right: 14px; display: grid; place-items: center; width: 48px; height: 48px; cursor: pointer; }
.check input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.check__box { pointer-events: none; position: relative; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--stroke-hi); }
.check__box::before { content: ""; position: absolute; inset: -1.5px; border-radius: 50%; background: var(--bull); opacity: 0; transform: scale(0.6); transition: opacity 0.25s var(--ease), transform 0.35s var(--ease); }
.check__box svg { position: relative; width: 14px; height: 14px; color: var(--bull-ink); opacity: 0; transform: scale(0.5); transition: opacity 0.2s var(--ease), transform 0.3s var(--ease); }
.check input:checked + .check__box::before { opacity: 1; transform: none; }
.check input:checked + .check__box svg { opacity: 1; transform: none; }
.check input:focus-visible + .check__box { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (min-width: 1000px) {
  .start__grid { grid-template-columns: repeat(12, 1fr); gap: 32px; }
  .start__head { grid-column: 1 / 6; position: sticky; top: calc(var(--nav-h) + 10vh); align-self: start; }
  .path { grid-column: 6 / 13; }
  .step { padding: 30px 32px; gap: 8px 28px; }
  .check { top: 24px; right: 22px; }
}

/* ---------- Creators slider ---------- */
.slider-ctrl { display: flex; gap: 8px; }
.slider {
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  --edge: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  scroll-padding-inline: var(--edge);
  cursor: grab;
}
.slider::-webkit-scrollbar { display: none; }
.slider.is-dragging { cursor: grabbing; scroll-snap-type: none; -webkit-user-select: none; user-select: none; }
.slider.is-dragging .creator { pointer-events: none; }
.slider__track { display: flex; gap: 16px; padding: 4px var(--edge) 12px; width: max-content; }
.slider__track > li { scroll-snap-align: start; width: min(330px, 84vw); flex: none; }
.creator {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; gap: 22px; height: 100%; min-height: 280px;
  padding: 22px; border-radius: var(--r-lg); cursor: pointer;
  transition: transform 0.3s var(--ease);
}
.creator::after { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; border: 1px solid var(--stroke-hi); opacity: 0; transition: opacity 0.3s var(--ease); }
.creator:hover::after, .creator:focus-visible::after { opacity: 1; }
@media (hover: hover) { .creator:hover { transform: translateY(-3px); } }
.creator__tag { align-self: flex-start; padding: 6px 12px; border-radius: var(--pill); background: var(--hi); font-size: var(--step-small); }
.creator__quote { flex: 1; font-size: var(--step-lead); font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.creator__head { display: flex; align-items: center; gap: 14px; }
.creator__avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--hi); box-shadow: 0 0 0 1px var(--stroke-hi); }
.creator__foot { display: flex; align-items: flex-end; justify-content: flex-start; gap: 12px; }
.creators__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--stroke); }
.creators__cta-text { max-width: 36ch; font-size: var(--step-lead); font-weight: 500; line-height: 1.35; }
@media (max-width: 599px) { .creators__cta .btn { width: 100%; justify-content: center; } }
.creator__name { font-size: var(--step-body); font-weight: 500; line-height: 1.3; }
.creator__handle { font-size: var(--step-small); color: var(--soft); }
.creator__go {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px;
  font-size: var(--step-small); font-weight: 500; white-space: nowrap;
  text-decoration: underline; text-underline-offset: 0.25em; text-decoration-color: rgba(233, 238, 243, 0.35);
}
.creator__go:hover { text-decoration-color: var(--ink); }

/* ---------- Indicators ---------- */
.indicators__grid { display: grid; gap: 24px; }
.ind { display: grid; gap: 20px; padding: 12px; border-radius: var(--r-lg); align-content: start; }
/* Dark monitor-style frame around the indicator screenshot */
.ind__shot {
  position: relative; margin: 0; padding: 10px; border-radius: var(--r);
  background: #05080b; border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 24px 60px -24px rgba(0, 0, 0, 0.9); /* taste-skill-ignore: bezel depth */
}
.ind__shot::before { content: ""; display: block; height: 18px; margin: -2px 2px 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: radial-gradient(circle at 6px 6px, rgba(255, 77, 87, 0.8) 3px, transparent 3.5px), radial-gradient(circle at 20px 6px, rgba(233, 238, 243, 0.3) 3px, transparent 3.5px), radial-gradient(circle at 34px 6px, rgba(47, 227, 138, 0.8) 3px, transparent 3.5px); background-repeat: no-repeat; } /* taste-skill-ignore: window dots on the chart frame */
.ind__shot img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: #0d1218; }
.ind__shot.is-contain img { object-fit: contain; }
.ind__zoom { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; cursor: zoom-in; border-radius: 8px; }
.ind__zoom:focus-visible { outline: 2px solid var(--bull); outline-offset: 3px; }
.ind__zoomhint { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 8px; border-radius: var(--pill); background: rgba(10, 14, 19, 0.86); font-size: var(--step-small); font-weight: 500; transition: opacity 0.25s var(--ease); }
.ind__zoomhint svg { width: 16px; height: 16px; }
@media (hover: hover) { .ind__zoomhint { opacity: 0; } .ind__zoom:hover .ind__zoomhint, .ind__zoom:focus-visible .ind__zoomhint { opacity: 1; } }
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1400px, 96vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(5, 8, 12, 0.9); }
.lightbox__img { display: block; max-width: 100%; max-height: 88vh; width: auto; height: auto; margin: 0 auto; border-radius: 12px; cursor: zoom-out; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.lightbox__close { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; z-index: 2; }
.lightbox__close svg { width: 20px; height: 20px; }
.ind__free { position: absolute; right: 18px; top: 8px; padding: 4px 12px; border-radius: var(--pill); background: var(--bull); color: var(--bull-ink); font-size: var(--step-small); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.ind__body { display: grid; gap: 14px; padding: 4px 10px 14px; }
.ind__desc { line-height: 1.5; }
.ind__features { display: grid; gap: 10px; margin-top: 4px; }
.ind__features li { position: relative; padding-left: 26px; }
.ind__features li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 12px; height: 7px; border-left: 2px solid var(--bull); border-bottom: 2px solid var(--bull); transform: rotate(-45deg); }
.ind__soon { color: var(--soft); }
.ind__cta { display: grid; gap: 10px; margin-top: 8px; }
.ind__cta .btn { justify-self: start; }
.ind__note { font-size: var(--step-small); color: var(--soft); }
.ind__credit { font-size: var(--step-small); color: var(--soft); }
@media (min-width: 900px) {
  .indicators__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ind { padding: 14px; }
  .ind__body { padding: 8px 18px 22px; }
  /* one indicator: screenshot and details side by side */
  .indicators__grid.is-single { grid-template-columns: 1fr; }
  .is-single .ind { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: center; padding: 18px; }
  .is-single .ind__body { padding: 8px 18px 8px 0; gap: 18px; }
}
.ind .card-title { font-family: var(--display); font-size: clamp(2rem, 1.2rem + 1.8vw, 3rem); text-transform: uppercase; line-height: 0.95; letter-spacing: 0.01em; }

/* ---------- Tools ---------- */
.tools__grid { display: grid; gap: 24px; }
.calc, .journal, .glossary { border-radius: var(--r-lg); padding: 24px 20px; }
.calc__fields { display: grid; gap: 14px; margin-top: 24px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field__label { font-size: var(--step-small); color: var(--soft); }
.field__control {
  position: relative; display: flex; align-items: center; gap: 8px;
  height: 58px; padding: 0 16px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--stroke);
}
.field__control:focus-within { border-color: var(--stroke-hi); outline: 2px solid var(--ink); outline-offset: 2px; }
.field__control input {
  flex: 1; min-width: 0; width: 100%; height: 100%; border: 0; background: none; outline: none;
  font-size: var(--step-lead); font-weight: 400; font-variant-numeric: tabular-nums;
  -moz-appearance: textfield; appearance: textfield;
}
.field__control input::-webkit-outer-spin-button, .field__control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field__affix { color: var(--soft); font-size: var(--step-body); }
.calc__out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.calc__res { display: grid; gap: 4px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); }
.calc__inst { font-weight: 500; }
.calc__inst small { display: block; font-size: var(--step-small); font-weight: 400; color: var(--soft); }
.calc__num { font-family: var(--display); font-size: var(--step-head); font-weight: 400; line-height: 1; color: var(--bull); font-variant-numeric: tabular-nums; margin-top: 8px; }
.calc__meta { font-size: var(--step-small); color: var(--soft); font-variant-numeric: tabular-nums; }
.calc__help { margin-top: 18px; font-size: var(--step-small); color: var(--soft); max-width: 46em; }
.calc__warn { margin-top: 18px; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid rgba(229, 72, 77, 0.5); background: rgba(229, 72, 77, 0.1); font-size: var(--step-small); line-height: 1.5; color: var(--ink); }
.calc__warn[hidden] { display: none; }

.journal { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.journal__mark { display: flex; align-items: flex-end; gap: 8px; height: 56px; margin-bottom: 14px; }
.journal__mark span { width: 10px; border-radius: 3px; background: rgba(233, 238, 243, 0.14); }
.journal__mark span:nth-child(1) { height: 22px; }
.journal__mark span:nth-child(2) { height: 34px; }
.journal__mark span:nth-child(3) { height: 28px; }
.journal__mark span:nth-child(4) { height: 44px; }
.journal__mark span:nth-child(5) { height: 56px; background: transparent; border: 1.5px solid var(--ink); animation: forming 1.8s ease-in-out infinite; }
.journal__soon { font-family: var(--display); font-size: var(--step-head); font-weight: 400; text-transform: uppercase; line-height: 0.92; }
.journal__text { color: var(--ink); margin-bottom: 14px; }
.journal .btn { margin-top: auto; }

.glossary__head { display: grid; gap: 8px; }
.glossary__hint { font-size: var(--step-small); color: var(--soft); }
.glossary__list { display: grid; gap: 0; margin-top: 20px; align-items: start; }
.glossary__item { border-top: 1px solid var(--stroke); }
.glossary__term { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 12px 2px; font-weight: 500; cursor: pointer; list-style: none; border-radius: 8px; }
.glossary__term::-webkit-details-marker { display: none; }
.glossary__term:hover { color: var(--bull); }
.glossary__term:focus-visible { outline: 2px solid var(--bull); outline-offset: 2px; }
.glossary__icon { position: relative; flex: none; width: 14px; height: 14px; }
.glossary__icon::before, .glossary__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -0.75px; background: currentColor; border-radius: 1px; transition: transform 0.25s var(--ease); }
.glossary__icon::after { transform: rotate(90deg); }
.glossary__item[open] .glossary__icon::after { transform: rotate(0deg); }
.glossary__def { padding: 0 2px 18px; line-height: 1.55; color: var(--ink); max-width: 40em; }
@media (min-width: 768px) {
  .calc__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glossary__list { grid-template-columns: 1fr 1fr; column-gap: 40px; }
}
@media (min-width: 1000px) {
  .tools__grid { grid-template-columns: repeat(12, 1fr); gap: 32px; }
  .calc { grid-column: 1 / 8; padding: 32px; align-self: start; }
  .glossary { grid-column: 8 / 13; padding: 32px; align-self: start; }
  .glossary .glossary__list { grid-template-columns: 1fr; }
}

/* Tap-to-define terms */
.gterm {
  display: inline; margin: 0; padding: 0; border: 0; background: none;
  font: inherit; color: inherit; letter-spacing: inherit; text-align: inherit;
  text-decoration: underline dotted; text-decoration-thickness: 1.5px; text-underline-offset: 0.22em;
  text-decoration-color: rgba(233, 238, 243, 0.5);
  cursor: help; -webkit-tap-highlight-color: transparent;
}
.gterm:hover, .gterm[aria-expanded="true"] { text-decoration-color: var(--bull); }
.gpop {
  position: absolute; z-index: 70; width: min(340px, calc(100vw - 2 * var(--gutter)));
  padding: 16px 18px; border-radius: 16px;
  background: rgba(14, 19, 26, 0.9);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.2s var(--ease), transform 0.25s var(--ease);
}
.gpop.is-open { opacity: 1; transform: none; }
.gpop__term { font-weight: 500; }
.gpop__def { margin-top: 6px; font-size: 0.9375rem; line-height: 1.5; }


/* ---------- Footer ---------- */
.footer { padding: 64px 0 calc(40px + env(safe-area-inset-bottom)); }
.footer__grid { display: grid; gap: 24px; }
.footer__brand { display: flex; align-items: baseline; gap: 14px; color: var(--soft); }
.footer__brand .logo__word { color: var(--ink); }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer__links a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.footer__legal { display: grid; gap: 10px; font-size: var(--step-small); color: var(--soft); max-width: 62em; }
.footer__pages { display: flex; flex-wrap: wrap; gap: 0 24px; font-size: var(--step-small); }
.footer__pages a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-underline-offset: 0.25em; }
.footer__copy { font-size: var(--step-small); color: var(--soft); }
@media (min-width: 900px) {
  .footer__grid { grid-template-columns: 1fr auto; align-items: center; }
  .footer__links { justify-self: end; }
  .footer__legal, .footer__pages, .footer__copy { grid-column: 1 / -1; }
}

/* Small-print disclaimers next to P&L, the account card and video titles */
.disclaimer { margin-top: 32px; max-width: 62em; font-size: var(--step-small); line-height: 1.5; color: var(--soft); }
.account__note { margin-top: 20px; font-size: var(--step-small); color: var(--soft); }

/* ---------- Terminal launcher ---------- */
.term-launch {
  position: fixed; right: var(--gutter); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
  width: 44px; height: 44px; border-radius: 50%;
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: -0.02em; /* taste-skill-ignore: ">_" terminal glyph */
  display: grid; place-items: center;
  transition: transform 0.25s var(--ease), opacity 0.3s var(--ease);
}
.term-launch:hover { transform: translateY(-2px); }
.term-launch:active { transform: scale(0.94); }
@media (min-width: 768px) { .term-launch { bottom: 28px; } }
/* Phones: the floating button covered text and checkboxes. The terminal stays in the menu ("Open terminal"). */
@media (max-width: 767px) { .term-launch { display: none; } }
/* "Press / for the terminal" only makes sense with a keyboard */
@media (hover: none), (max-width: 767px) { .kbd-only { display: none; } }

/* ---------- Page candle (scroll progress) ---------- */
.pcandle {
  position: fixed; right: 6px; top: 50%; z-index: 30; pointer-events: none;
  width: 10px; height: min(36vh, 300px); transform: translateY(-50%);
}
.pcandle::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); background: rgba(233, 238, 243, 0.1); }
.pcandle__wick { position: absolute; left: 50%; bottom: 0; width: 2px; height: 100%; margin-left: -1px; border-radius: 2px; background: rgba(233, 238, 243, 0.45); transform-origin: 50% 100%; transform: scaleY(0); }
.pcandle__body { position: absolute; left: 1px; right: 1px; bottom: 0; height: 100%; border-radius: 2px; background: #c2ccd6; transform-origin: 50% 100%; transform: scaleY(0); opacity: 0.85; }
.pcandle__body::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--bull); opacity: 0; transition: opacity 0.5s var(--ease); }
.pcandle.is-closed .pcandle__body::after { opacity: 1; }
.pcandle.is-closed .pcandle__wick { background: rgba(63, 207, 142, 0.6); }
.pcandle__open { position: absolute; left: -3px; right: -3px; bottom: 0; height: 2px; border-radius: 2px; background: rgba(233, 238, 243, 0.55); }
@media (max-width: 599px) {
  .pcandle { right: 3px; width: 5px; height: min(30vh, 220px); }
  .pcandle__body { left: 0.5px; right: 0.5px; }
  .pcandle__open { left: -1px; right: -1px; }
}
@media (min-width: 768px) { .pcandle { right: 14px; width: 12px; } }
/* Phones: too thin to read as a candle; it looked like a second scrollbar and sat on top of the creator cards */
@media (max-width: 767px) { .pcandle { display: none; } }

/* ---------- Crosshair cursor (desktop only) ---------- */
.xh { display: none; }
@media (hover: hover) and (pointer: fine) {
  .xh { display: block; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0; transition: opacity 0.2s; }
  .xh.is-on { opacity: 1; }
  .xh.is-off-target { opacity: 0; }
  .xh__v, .xh__h, .xh__label { position: absolute; left: 0; top: 0; will-change: transform; }
  .xh__v { height: 100dvh; width: 0; border-left: 1px dashed rgba(233, 238, 243, 0.16); } /* taste-skill-ignore: chart crosshair (client brief) */
  .xh__h { width: 100vw; height: 0; border-top: 1px dashed rgba(233, 238, 243, 0.16); } /* taste-skill-ignore: chart crosshair (client brief) */
  .xh__label {
    padding: 4px 8px; border-radius: 6px; white-space: nowrap;
    background: rgba(14, 19, 26, 0.8); color: var(--ink);
    font-size: 12px; font-weight: 500; letter-spacing: 0.08em; font-variant-numeric: tabular-nums;
  }
  html.xh-active, html.xh-active body, html.xh-active main * { cursor: none; }
  html.xh-active a, html.xh-active button, html.xh-active label, html.xh-active summary,
  html.xh-active [role="button"], html.xh-active a *, html.xh-active button *, html.xh-active label * { cursor: pointer; }
  html.xh-active input, html.xh-active textarea { cursor: text; }
  html.xh-active .slider, html.xh-active .slider * { cursor: grab; }
  html.xh-active .slider a, html.xh-active .slider a * { cursor: pointer; }
}

/* ---------- Dialogs ---------- */
dialog { color: var(--ink); }
dialog::backdrop { background: rgba(4, 7, 10, 0.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

.player { width: min(1120px, calc(100% - 2 * var(--gutter))); max-width: none; max-height: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.player[open] .player__box { animation: pop-in 0.4s var(--ease); }
.player__box { padding: 10px; border-radius: var(--r-lg); background: rgba(14, 19, 26, 0.82); border: 1px solid var(--stroke); }
.player__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 2px 4px 10px 10px; }
.player__title { font-size: var(--step-small); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@keyframes pop-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }

.term { width: min(760px, calc(100% - 2 * var(--gutter))); max-width: none; padding: 0; border: 0; background: transparent; overflow: visible; margin-top: max(12vh, 64px); }
.term::backdrop { background: rgba(4, 7, 10, 0.55); }
.term__box {
  position: relative; overflow: hidden;
  border-radius: 16px; border: 1px solid rgba(63, 207, 142, 0.22);
  background: rgba(7, 11, 15, 0.86);
  -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%);
  font-family: var(--mono); font-size: 14px; line-height: 1.6; /* taste-skill-ignore: terminal (client brief) */
}
.term__box::before { /* scanlines */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: /* taste-skill-ignore: CRT scanlines (client brief) */ repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 0, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 3px);
}
.term__box::after { /* glitch flash */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: rgba(63, 207, 142, 0.16); opacity: 0;
}
.term.is-glitch .term__box { animation: glitch 0.34s steps(1, end); }
.term.is-glitch .term__box::after { animation: flash 0.34s steps(1, end); }
@keyframes glitch {
  0% { transform: translate(0, 0); opacity: 0; }
  15% { transform: translate(-3px, 1px); opacity: 1; }
  30% { transform: translate(4px, -1px); }
  45% { transform: translate(-2px, 0); opacity: 0.85; }
  60% { transform: translate(1px, 1px); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
@keyframes flash { 0% { opacity: 0.9; } 20% { opacity: 0; } 35% { opacity: 0.5; } 50%, 100% { opacity: 0; } }
.term__bar { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; background: rgba(255, 255, 255, 0.04); }
.term__dots { display: flex; gap: 6px; }
.term__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(233, 238, 243, 0.22); }
.term__dots i:first-child { background: var(--loss); opacity: 0.8; }
.term__dots i:last-child { background: var(--bull); opacity: 0.8; }
.term__name { flex: 1; color: var(--soft); font-size: 12.5px; }
.term__close { min-width: 44px; min-height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--stroke); background: none; color: var(--soft); font: inherit; font-size: 12.5px; }
.term__close:hover { color: var(--ink); border-color: var(--stroke-hi); }
.term__log { position: relative; z-index: 1; height: min(44vh, 360px); overflow-y: auto; padding: 16px 18px 8px; overscroll-behavior: contain; }
.term__log p { white-space: pre-wrap; word-break: break-word; }
.t-in { color: var(--ink); }
.t-in::before { content: "> "; color: var(--bull); }
.t-out { color: #c3cdd7; }
.t-ok { color: var(--bull); }
.t-err { color: var(--loss); }
.t-dim { color: var(--soft); }
.t-out a, .t-ok a { color: var(--ink); }
.term__form { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; margin: 4px 10px 10px; padding: 4px 8px; border-radius: 10px; border: 1px solid transparent; }
.term__form:focus-within { border-color: rgba(63, 207, 142, 0.35); background: rgba(63, 207, 142, 0.04); outline: 2px solid var(--bull); outline-offset: 2px; }
.term__prompt { color: var(--bull); }
.term__input { flex: 1; min-width: 0; height: 40px; border: 0; background: none; outline: none; color: var(--ink); caret-color: var(--bull); font-family: var(--mono); font-size: 16px; } /* taste-skill-ignore: terminal input */

/* ---------- Intro loader ---------- */
html.intro-pending::after {
  content: ""; position: fixed; inset: 0; z-index: 99; background: var(--bg);
  animation: intro-failsafe 0.01s linear 4s forwards;
}
@keyframes intro-failsafe { to { opacity: 0; visibility: hidden; } }
.intro {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: var(--gutter);
  background: var(--bg);
}
.intro__line { /* taste-skill-ignore: terminal intro line (client brief) */ width: min(44ch, 100%); font-family: var(--mono); font-size: 15px; color: var(--ink); min-height: 1.6em; }
.intro__line .c { color: var(--bull); }
.intro__caret { display: inline-block; width: 0.55em; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: var(--bull); animation: caret 0.9s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
@media (min-width: 768px) { .intro__line { font-size: 17px; } }

/* ---------- Reduced motion ----------
   Owner's choice (2026-11-06): animations play for everyone. The block that switched them off for
   prefers-reduced-motion was removed; restore it (and CMD.reduced in js/main.js + index.html) to respect the setting:
   @media (prefers-reduced-motion: reduce) {
     *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
     .badge.is-live .badge__dot::after { display: none; }
   } */
