/* =========================================================================
   PiraChest landing page
   One accent (blue) on a cool, ink-tinted dark. Hairlines and real shadows
   carry structure; type carries hierarchy.
   ========================================================================= */

:root{
  /* Surface ladder: every neutral is tinted toward the brand hue (~250). */
  --bg:        oklch(0.155 0.022 255);
  --bg-raised: oklch(0.195 0.026 255);
  --bg-sunk:   oklch(0.128 0.02 255);
  --hover:     oklch(0.235 0.032 255);

  /* Ink */
  --ink:       oklch(0.965 0.008 250);
  --ink-dim:   oklch(0.775 0.03 255);
  --ink-faint: oklch(0.645 0.035 255);   /* >=4.5:1 on --bg */

  /* Accent: the one blue. */
  --accent:        oklch(0.66 0.19 252);
  --accent-strong: oklch(0.73 0.15 250);
  --accent-ink:    oklch(0.16 0.04 255);   /* text on accent */

  --line:        oklch(0.32 0.035 255 / .65);
  --line-strong: oklch(0.46 0.06 252 / .8);

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;

  /* Type scale (fixed roles; hero is the only fluid one) */
  --t-hero:  clamp(2.25rem, 1.4rem + 2.35vw, 3.5rem);
  --t-h2:    clamp(1.6rem, 1.2rem + 1.1vw, 2.15rem);
  --t-lead:  1.125rem;
  --t-body:  1rem;
  --t-small: .875rem;
  --t-micro: .78rem;

  --gutter: clamp(20px, 5vw, 72px);
  --max-w: 1440px;
  --radius: 10px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --shadow-1: 0 1px 2px oklch(0.05 0.02 255 / .5), 0 6px 18px -8px oklch(0.05 0.02 255 / .55);
  --shadow-2: 0 2px 4px oklch(0.05 0.02 255 / .45), 0 22px 44px -18px oklch(0.05 0.02 255 / .8);

  /* Values that used to be hardcoded, so light mode can swap them. */
  --glow:        oklch(0.42 0.13 252 / .32);
  --dock-bg:     oklch(0.155 0.022 255 / .82);
  --card-edge:   oklch(0.9 0.02 250 / .14);
  --card-edge-2: oklch(0.9 0.02 250 / .35);
  --card-shadow:   0 2px 4px oklch(0.05 0.02 255 / .5), 0 14px 26px -12px oklch(0.05 0.02 255 / .85);
  --card-shadow-2: 0 4px 8px oklch(0.05 0.02 255 / .55), 0 26px 40px -14px oklch(0.05 0.02 255 / .9);
  --core-shadow: oklch(0.05 0.02 255 / .6);
}

/* ------------------------------------------------------------------ */
/* Light mode. Same hue (~255), same single accent, inverted ladder.   */
/* ------------------------------------------------------------------ */
:root[data-theme="light"]{
  --bg:        oklch(0.985 0.005 255);
  --bg-raised: oklch(0.962 0.008 255);
  --bg-sunk:   oklch(0.94 0.01 255);
  --hover:     oklch(0.925 0.014 255);

  --ink:       oklch(0.21 0.03 258);
  --ink-dim:   oklch(0.4 0.03 258);
  --ink-faint: oklch(0.5 0.03 258);      /* >=4.5:1 on --bg */

  --accent:        oklch(0.55 0.2 254);
  --accent-strong: oklch(0.5 0.2 254);
  --accent-ink:    oklch(0.99 0.005 255);

  --line:        oklch(0.86 0.014 255 / .9);
  --line-strong: oklch(0.72 0.05 254 / .9);

  --shadow-1: 0 1px 2px oklch(0.4 0.04 255 / .1), 0 6px 18px -8px oklch(0.4 0.04 255 / .18);
  --shadow-2: 0 2px 4px oklch(0.4 0.04 255 / .1), 0 22px 44px -18px oklch(0.4 0.05 255 / .28);

  --glow:        oklch(0.85 0.09 252 / .5);
  --dock-bg:     oklch(0.985 0.005 255 / .82);
  --card-edge:   oklch(0.3 0.03 255 / .14);
  --card-edge-2: oklch(0.3 0.03 255 / .32);
  --card-shadow:   0 2px 4px oklch(0.4 0.04 255 / .12), 0 14px 26px -12px oklch(0.4 0.05 255 / .3);
  --card-shadow-2: 0 4px 8px oklch(0.4 0.04 255 / .14), 0 26px 40px -14px oklch(0.4 0.05 255 / .36);
  --core-shadow: oklch(0.4 0.05 255 / .3);
}
:root[data-theme="light"]{ color-scheme: light; }
:root[data-theme="light"] .dock-link.discord svg{ color: #5865f2; }

*, *::before, *::after{ box-sizing: border-box; }
html{
  color-scheme: dark;
  scroll-behavior: smooth;
  scrollbar-color: var(--line-strong) var(--bg);
  scrollbar-width: thin;
}

body{
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* `clip`, not `hidden`: hidden forces overflow-y:auto and makes <body> its own
     scroller, which traps the bottom of the page on some layouts. */
  overflow-x: clip;
}

/* One restrained light source instead of four coloured corners. */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% -8%, var(--glow), transparent 70%),
    var(--bg);
}

a{ color: inherit; }
img{ max-width: 100%; display: block; }
p{ text-wrap: pretty; }
h1, h2, h3, h4{ text-wrap: balance; }

::selection{ background: oklch(0.66 0.19 252 / .38); color: var(--ink); }

:focus-visible{
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link{
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 0 0 8px 0;
  font-weight: 700; z-index: 500;
}
.skip-link:focus{ left: 0; }

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */
.hero{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(12px, 2vw, 28px) var(--gutter) clamp(32px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}

.hero-copy{
  display: grid;
  gap: 22px;
  justify-items: start;
  text-align: left;
}

/* Status chip: a quiet state label, no glow. */
.stamp{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink-dim);
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-raised);
}
.stamp::before{
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-strong);
}

h1.hero-title{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-hero);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 20ch;
  color: var(--ink);
}

.hero-sub{
  color: var(--ink-dim);
  font-size: var(--t-lead);
  line-height: 1.65;
  max-width: 48ch;
  margin: 0;
}

.status-line{
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  color: var(--ink-faint);
  min-height: 1.3em;
  margin: 2px 0 0;
  transition: opacity .26s ease;
}

.hero-actions{
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 6px;
}

/* Buttons */
.btn{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--t-small);
  line-height: 1;
  padding: 0 22px;
  height: 48px;
  border-radius: var(--radius);
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent;
  transition:
    background-color .2s var(--ease-out),
    border-color .2s var(--ease-out),
    color .2s var(--ease-out),
    transform .12s var(--ease-out),
    box-shadow .2s var(--ease-out);
}
.btn:active{ transform: translateY(1px) scale(.985); }

.btn-primary{
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-1);
}
.btn-primary:hover{ background: var(--accent-strong); box-shadow: var(--shadow-2); }

.btn-ghost{
  color: var(--ink);
  background: transparent;
  border-color: var(--line-strong);
}
.btn-ghost:hover{ background: var(--bg-raised); border-color: var(--accent-strong); }

/* ------------------------------------------------------------------ */
/* Hero visual: upright posters on a ring around the logo             */
/* ------------------------------------------------------------------ */
.hero-visual{
  display: grid; justify-items: center; align-items: center;
  overflow: visible; container-type: inline-size; min-width: 0; align-self: center;
}

.orbit-scene{
  /* script.js sets these (in card widths): ring half-extents and the radius
     of empty space left in the middle. */
  --halfW: 2.7;
  --halfH: 2.95;
  --hole: 1.32;
  --card-w: max(48px, min(
    calc(100cqw / (var(--halfW) * 2)),
    calc((100svh - 96px) / (var(--halfH) * 2))
  ));
  position: relative;
  width: calc(var(--card-w) * var(--halfW) * 2);
  height: calc(var(--card-w) * var(--halfH) * 2);
  max-width: 100%;
  margin: 0 auto;
}

.card-fan{ position: absolute; inset: 0; }

/* Contain the orbit at its source. A rotating box's bounding box swells past
   the scene at some angles and would otherwise widen the page (a horizontal
   scrollbar flickering in and out as the ring turns). `clip` on the scene
   stops it there; the scene is already sized to the full swept circle, so no
   poster is ever actually cut off. */
.orbit-scene{ overflow: clip; }

.fan-card{
  position: absolute;
  width: var(--card-w);
  aspect-ratio: 2 / 3;
  margin: 0;
  left: calc(50% - var(--card-w) / 2);
  top: calc(50% - var(--card-w) * 0.75);
  /* Sit on the ring, then turn back by the ring's angle so the poster stays upright.
     Rotating about the card's own centre (the default origin) keeps it in place. */
  transform: translate(calc(var(--x, 0) * var(--card-w)), calc(var(--y, 0) * var(--card-w))) rotate(calc(var(--orbit) * -1));
  opacity: 0;
  transition: opacity .6s var(--ease-out);
}
.fan-card.is-in{ opacity: 1; }
.fan-motion{
  width: 100%; height: 100%;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--card-edge);
  box-shadow: var(--card-shadow);
  background: var(--bg-raised);
  will-change: transform;
}
.fan-card img{ width: 100%; height: 100%; object-fit: cover; }

/* Motion, three independent layers so none of them fight over `transform`:
   1) .card-fan     turns the whole ring around the logo (--orbit angle),
   2) .fan-card     holds the ring position and turns back by the same angle,
                    so every poster stays upright while it travels,
   3) .fan-motion   carries each poster's own tilt/bob and the hover reaction.
   The orbit angle is a registered property so both layers read one value. */
@property --orbit{ syntax: "<angle>"; inherits: true; initial-value: 0deg; }

@media (prefers-reduced-motion: no-preference){
  .card-fan{ animation: orbit 90s linear infinite; }
  .fan-card.is-in .fan-motion{
    animation: card-tilt var(--dur, 8s) ease-in-out var(--delay, 0s) infinite alternate;
  }
}
@keyframes orbit{ to{ --orbit: 360deg; } }
@keyframes card-tilt{
  from{ transform: translateY(calc(var(--bob, .01) * var(--card-w) * -1)) rotate(calc(var(--rot, 2deg) * var(--dir, 1) * -1)); }
  to{   transform: translateY(calc(var(--bob, .01) * var(--card-w)))      rotate(calc(var(--rot, 2deg) * var(--dir, 1))); }
}

.card-fan{ transform: rotate(var(--orbit)); }

/* Subtle hover: a small lift, a hair of scale, a deeper shadow. The orbit
   pauses while a poster is hovered so it doesn't drift out from under the
   cursor. The tilt animation is replaced (not stacked) on hover. */
.fan-motion{
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s var(--ease-out);
}
.fan-card:hover{ z-index: 60 !important; }
.fan-card:hover .fan-motion{
  /* An animation always beats a plain `transform`, so the tilt loop has to be
     removed (not just paused) for the hover pose to apply. The transition above
     then eases the card from wherever it was into the lifted, upright pose. */
  animation: none;
  transform: translateY(-6px) scale(1.06) rotate(0deg);
  border-color: var(--card-edge-2);
  box-shadow: var(--card-shadow-2);
}
.card-fan:has(.fan-card:hover){ animation-play-state: paused; }

.chest-core{
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  /* Sized so the box's CORNERS (side x 1.414) still clear the nearest poster edge
     at every point of the orbit: half-width = hole x 0.94 / sqrt(2). */
  width: calc(var(--card-w) * var(--hole) * 2 * 0.66);
  height: calc(var(--card-w) * var(--hole) * 2 * 0.66);
  display: grid; place-items: center;
  border-radius: 50%;
  text-decoration: none;
  cursor: pointer;
  transition: transform .3s var(--ease-out);
}
.chest-core:hover{ transform: translate(-50%, -50%) scale(1.05); }
.chest-core:active{ transform: translate(-50%, -50%) scale(1.01); }
.chest-core img{
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgb(0 0 0 / .55)) drop-shadow(0 10px 18px rgb(0 0 0 / .6));
}

/* ------------------------------------------------------------------ */
/* Sections                                                            */
/* ------------------------------------------------------------------ */
.section{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) var(--gutter);
}
.section-head{
  max-width: 62ch;
  margin: 0 0 clamp(24px, 3vw, 40px);
}
.theme-section-head{
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.theme-section-head > div{ max-width: 62ch; }
.theme-docs-btn{ flex-shrink: 0; height: 44px; padding: 0 20px; }
.btn-icon{ width: 16px; height: 16px; flex-shrink: 0; fill: currentColor; }
@media (max-width: 640px){
  .theme-section-head{ align-items: flex-start; }
  .theme-docs-btn{ width: 100%; }
}
.section-head h2{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-h2);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}
.section-head p{ color: var(--ink-dim); margin: 0; max-width: 56ch; }

/* ------------------------------------------------------------------ */
/* Manifest: a ruled two-column index, not a card grid                 */
/* ------------------------------------------------------------------ */
.manifest{
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 5vw, 80px);
  border-top: 1px solid var(--line);
}
.manifest li{
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  column-gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.feat-icon{
  width: 22px; height: 22px;
  fill: var(--accent-strong);
  flex-shrink: 0;
  margin-top: 3px;
}
.manifest-body h3{
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.manifest-body p{
  margin: 0;
  color: var(--ink-dim);
  font-size: var(--t-small);
  line-height: 1.65;
  max-width: 52ch;
}

/* ------------------------------------------------------------------ */
/* Launch-time / hardware-use charts                                   */
/* ------------------------------------------------------------------ */
.perf-section-head-2{ margin-top: 44px; }
.perf-chart{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  padding: 28px clamp(20px, 4vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.perf-row{
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}
.perf-label{
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--ink-dim);
  text-align: right;
}
.perf-track{
  position: relative;
  height: 34px;
  background: var(--bg-sunk);
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}
.perf-bar{
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--pct);
  min-width: 52px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  border-radius: 6px;
  background: var(--line-strong);
}
.perf-bar.is-us{
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}
/* Text on the accent fill uses the token made for it. --ink fails contrast here. */
.perf-bar.is-us .perf-value{ color: var(--accent-ink); }
.perf-value{
  font-size: var(--t-micro);
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.perf-note{
  margin-top: 14px;
  font-size: var(--t-micro);
  color: var(--ink-faint);
  max-width: 62ch;
}
@media (max-width: 560px){
  .perf-row{ grid-template-columns: 68px minmax(0, 1fr); }
  .perf-label{ font-size: var(--t-micro); }
  .perf-value{ font-size: .68rem; }
}


/* ------------------------------------------------------------------ */
/* Theme toggle (lives in the dock)                                    */
/* ------------------------------------------------------------------ */
.theme-toggle{
  position: relative;
  width: 34px; height: 34px;
  flex-shrink: 0;
  display: grid; place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-dim);
  cursor: pointer;
  transition: color .2s var(--ease-out), background-color .2s var(--ease-out), transform .12s var(--ease-out);
}
.theme-toggle:hover{ color: var(--ink); background: var(--hover); }
.theme-toggle:active{ transform: scale(.92); }
.theme-toggle svg{
  grid-area: 1 / 1;
  width: 17px; height: 17px;
  fill: currentColor;
  transition: transform .5s var(--ease-out), opacity .3s var(--ease-out);
}
/* Dark is showing: offer the sun. Light is showing: offer the moon. */
.tt-moon{ opacity: 0; transform: rotate(-90deg) scale(.4); }
:root[data-theme="light"] .tt-sun{ opacity: 0; transform: rotate(90deg) scale(.4); }
:root[data-theme="light"] .tt-moon{ opacity: 1; transform: rotate(0) scale(1); }

/* Circular reveal from the button. The new theme is painted on top and a
   growing circle uncovers it; --tt-x / --tt-y / --tt-r are set from JS. */
::view-transition-old(root),
::view-transition-new(root){ animation: none; mix-blend-mode: normal; }
::view-transition-old(root){ z-index: 1; }
::view-transition-new(root){ z-index: 2; }
@media (prefers-reduced-motion: no-preference){
  ::view-transition-new(root){
    animation: theme-reveal .65s var(--ease-out) both;
  }
}
@keyframes theme-reveal{
  from{ clip-path: circle(0 at var(--tt-x, 100%) var(--tt-y, 100%)); }
  to{   clip-path: circle(var(--tt-r, 150vmax) at var(--tt-x, 100%) var(--tt-y, 100%)); }
}

/* Fallback for browsers without View Transitions: fade the surfaces. */
@media (prefers-reduced-motion: no-preference){
  html.theme-fading, html.theme-fading *, html.theme-fading *::before, html.theme-fading *::after{
    transition:
      background-color .4s var(--ease-out),
      border-color .4s var(--ease-out),
      color .4s var(--ease-out),
      box-shadow .4s var(--ease-out),
      fill .4s var(--ease-out) !important;
  }
}

/* ------------------------------------------------------------------ */
/* Screenshot carousel                                                 */
/* ------------------------------------------------------------------ */
.sr-only{
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.carousel{ outline-offset: 6px; }
.carousel-viewport{
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  box-shadow: var(--shadow-2);
  touch-action: pan-y;
  cursor: grab;
}
.carousel-viewport.is-dragging{ cursor: grabbing; }
.carousel-track{
  display: flex;
  margin: 0; padding: 0;
  list-style: none;
  transform: translate3d(calc(var(--slide, 0) * -100% + var(--drag, 0px)), 0, 0);
  transition: transform .6s var(--ease-out);
  will-change: transform;
}
.carousel-viewport.is-dragging .carousel-track{ transition: none; }
.carousel-slide{
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  background: var(--bg-sunk);
}
.carousel-slide img{
  width: 100%; height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
.carousel-cap{
  position: absolute; left: 14px; bottom: 14px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  color: var(--ink);
  background: var(--dock-bg);
  backdrop-filter: blur(8px) saturate(1.2);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.carousel-bar{
  display: flex; align-items: center; justify-content: center;
  gap: 16px;
  margin-top: 18px;
}
.carousel-btn{
  width: 40px; height: 40px;
  display: grid; place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-raised);
  color: var(--ink-dim);
  cursor: pointer;
  transition: color .2s var(--ease-out), border-color .2s var(--ease-out), background-color .2s var(--ease-out), transform .12s var(--ease-out);
}
.carousel-btn:hover{ color: var(--ink); border-color: var(--line-strong); background: var(--hover); }
.carousel-btn:active{ transform: scale(.92); }
.carousel-btn svg{ width: 18px; height: 18px; fill: currentColor; }
.carousel-dots{ display: flex; align-items: center; gap: 8px; }
.carousel-dot{
  width: 8px; height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--line-strong);
  cursor: pointer;
  transition: width .35s var(--ease-out), background-color .25s var(--ease-out);
}
.carousel-dot:hover{ background: var(--ink-faint); }
.carousel-dot[aria-selected="true"]{ width: 26px; background: var(--accent-strong); }
@media (max-width: 560px){
  .carousel-slide{ aspect-ratio: 4 / 3; }
  .carousel-cap{ left: 10px; bottom: 10px; }
}
@media (prefers-reduced-motion: reduce){
  .carousel-track{ transition: none; }
}


/* ------------------------------------------------------------------ */
/* Privacy                                                             */
/* ------------------------------------------------------------------ */
.privacy-grid{
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  overflow: hidden;
}
.privacy-grid li{
  display: flex; gap: 14px; align-items: flex-start;
  padding: 26px clamp(18px, 2.4vw, 30px);
  border-right: 1px solid var(--line);
}
.privacy-grid li:last-child{ border-right: none; }
.privacy-grid .feat-icon{ width: 22px; height: 22px; margin-top: 2px; color: var(--accent-strong); flex-shrink: 0; }
.privacy-note{
  margin: 18px 0 0;
  max-width: 68ch;
  font-size: var(--t-small);
  color: var(--ink-faint);
  line-height: 1.65;
}
@media (max-width: 860px){
  .privacy-grid{ grid-template-columns: 1fr; }
  .privacy-grid li{ border-right: none; border-bottom: 1px solid var(--line); }
  .privacy-grid li:last-child{ border-bottom: none; }
}

/* ------------------------------------------------------------------ */
/* Spec sheet                                                          */
/* ------------------------------------------------------------------ */
.spec-sheet{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}
.spec-sheet-row{
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-size: var(--t-body);
}
.spec-sheet-row:nth-child(3n){ border-right: none; }
.spec-sheet-row:nth-last-child(-n+3){ border-bottom: none; }
.spec-sheet-row span:first-child{
  color: var(--ink-faint);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.spec-sheet-row span:last-child{ color: var(--ink); font-variant-numeric: tabular-nums; }
.spec-sheet-row a{
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  transition: text-decoration-color .2s var(--ease-out);
}
.spec-sheet-row a:hover{ text-decoration-color: var(--accent-strong); }

/* ------------------------------------------------------------------ */
/* Themes                                                              */
/* ------------------------------------------------------------------ */
.theme-section{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-sunk);
  max-width: none;
  padding-left: 0; padding-right: 0;
}
.theme-section > *{
  max-width: var(--max-w);
  margin-left: auto; margin-right: auto;
  padding-left: var(--gutter); padding-right: var(--gutter);
}

.theme-gallery{
  display: grid;
  gap: 18px;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.theme-preview{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  box-shadow: var(--shadow-2);
}
.theme-preview img{
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  transition: opacity .25s var(--ease-out);
}

.theme-grid{ display: flex; flex-wrap: wrap; gap: 8px; }
.theme-swatch{
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body);
  font-size: var(--t-small);
  font-weight: 500;
  color: var(--ink-dim);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px 8px 12px;
  cursor: pointer;
  transition: border-color .2s var(--ease-out), color .2s var(--ease-out), background-color .2s var(--ease-out);
}
.theme-swatch:hover{ color: var(--ink); border-color: var(--line-strong); }
.theme-swatch.is-active{
  color: var(--ink);
  border-color: var(--accent-strong);
  background: var(--bg-raised);
}
.swatch-dot{
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--sw, var(--accent));
  box-shadow: inset 0 0 0 1px oklch(1 0 0 / .18);
  flex-shrink: 0;
}

.theme-packs{
  border-top: 1px solid var(--line);
  padding-top: 32px;
  display: grid;
  gap: 24px;
}
.theme-packs-copy h3{
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}
.theme-packs-copy p{ margin: 0; color: var(--ink-dim); max-width: 62ch; }

.theme-feature-list{
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.theme-feature-list li{ display: flex; gap: 12px; align-items: flex-start; }
.theme-feature-list .feat-icon{ width: 20px; height: 20px; margin-top: 2px; }
.theme-feature-list h4{
  font-family: var(--font-display);
  font-size: var(--t-body);
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--ink);
}
.theme-feature-list p{ margin: 0; color: var(--ink-dim); font-size: var(--t-small); line-height: 1.6; }

.theme-cta{ margin: 0; font-size: var(--t-small); color: var(--ink-dim); }
.theme-cta a{
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}
.theme-cta a:hover{ text-decoration-color: var(--accent-strong); }

/* ------------------------------------------------------------------ */
/* Reviews                                                             */
/* ------------------------------------------------------------------ */
.reviews-track{
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 4px var(--gutter) 14px;
  margin: 0 calc(var(--gutter) * -1);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.reviews-track:focus-visible{ outline-offset: -2px; }

.review-card{
  scroll-snap-align: start;
  flex: 0 0 clamp(240px, 26vw, 290px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  padding: 28px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
  transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out), box-shadow .2s var(--ease-out), transform .2s var(--ease-out);
}
/* hover lives in "Reviews polish" at the end of this file */

.review-avatar{
  width: 72px; height: 72px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: var(--bg-sunk);
  margin-bottom: 4px;
}
.review-stars{
  color: #ffb100;
  letter-spacing: 3px;
  font-size: 1.55rem;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(0,0,0,.1);
}
.review-stars.one-star{ color: var(--ink-faint); text-shadow: none; }
.review-name{ font-weight: 600; font-size: var(--t-small); line-height: 1.35; }
.review-quote{
  margin: 4px 0 0;
  color: var(--ink-dim);
  font-size: var(--t-small);
  line-height: 1.6;
  min-height: 1.4em;
}
.review-note{ margin: -2px 0 0; font-size: var(--t-micro); color: var(--ink-faint); font-style: italic; }

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */
.pc-footer{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px var(--gutter) 64px;
  display: grid;
  gap: 20px;
  border-top: 1px solid var(--line);
}
.pc-footer .disclaimer{
  font-size: var(--t-small);
  color: var(--ink-faint);
  max-width: 72ch;
  line-height: 1.65;
  margin: 0;
}
.pc-footer .disclaimer strong{ color: var(--ink-dim); font-weight: 600; }
.pc-footer .disclaimer a{ color: var(--ink-dim); text-underline-offset: 3px; }
.pc-footer .disclaimer a:hover{ color: var(--ink); }
.footer-row{
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: var(--t-small); color: var(--ink-faint);
}
.footer-row a{ color: var(--ink-dim); text-decoration: none; }
.footer-row a:hover{ color: var(--ink); }

/* ------------------------------------------------------------------ */
/* Link dock: site link, stars, Discord. Always reachable, never in    */
/* the way: a slim pill pinned bottom-right, quiet at rest.            */
/* ------------------------------------------------------------------ */
.dock{
  position: fixed;
  /* Bottom-RIGHT: the hero copy and its buttons live on the left, so the dock
     never lands on top of them even on a short laptop screen. */
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 200;
  display: flex;
  align-items: center;
  padding: 4px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--dock-bg);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: var(--shadow-1);
  font-size: var(--t-small);
  transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.dock:hover, .dock:focus-within{ border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.dock-link{
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 14px;
  border-radius: 999px;
  color: var(--ink-dim);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s var(--ease-out), background-color .2s var(--ease-out);
}
.dock-link:hover{ color: var(--ink); background: var(--hover); }
.dock-link svg{ width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }
.dock-link.discord svg{ color: #8f98ff; }
.dock-link.discord:hover{ color: var(--ink); }
.dock-count{
  font-variant-numeric: tabular-nums;
  font-size: var(--t-micro);
  font-weight: 600;
  color: var(--ink-faint);
  padding-left: 2px;
  transition: color .2s var(--ease-out);
}
.dock-link:hover .dock-count{ color: var(--accent-strong); }
.dock-sep{ width: 1px; height: 18px; background: var(--line); margin: 0 2px; flex-shrink: 0; }

/* Footer needs room so the dock never sits on top of its last line. */
.pc-footer{ padding-bottom: 96px; }

@media (max-width: 900px), (max-height: 640px){
  /* No free corner here (single column, or a window too short to clear the
     ring), so nothing pinned can avoid the content. Unpin the dock and let it
     be a centred row. It sits after <main> in the markup, so it lands at the
     end of the page in normal flow. */
  .dock{
    position: static;
    margin: 8px auto 40px;
    width: max-content;
    max-width: calc(100% - 2 * var(--gutter));
    box-shadow: none;
    background: var(--bg-raised);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .pc-footer{ padding-bottom: 56px; }
}
@media (max-width: 640px){
  .dock-link{ padding: 0 11px; }
  .dock-link.home .dock-label{ display: none; }   /* icon-only on phones */
}
@media (prefers-reduced-motion: reduce){
  .dock, .dock-link{ transition: none; }
}

/* ------------------------------------------------------------------ */
/* Load-in: one authored moment (hero copy), nothing else animates     */
/* ------------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference){
  .hero-copy > *{
    animation: rise .8s var(--ease-out) both;
  }
  .hero-copy > :nth-child(2){ animation-delay: .06s; }
  .hero-copy > :nth-child(3){ animation-delay: .12s; }
  .hero-copy > :nth-child(4){ animation-delay: .18s; }
  .hero-copy > :nth-child(5){ animation-delay: .24s; }
}
@keyframes rise{
  from{ opacity: 0; transform: translateY(14px); }
  to{ opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .chest-core, .fan-card, .btn, .review-card, .theme-swatch{ transition: none; }
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */
@media (max-width: 1000px){
  .spec-sheet{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-sheet-row:nth-child(3n){ border-right: 1px solid var(--line); }
  .spec-sheet-row:nth-child(2n){ border-right: none; }
  .spec-sheet-row:nth-last-child(-n+3){ border-bottom: 1px solid var(--line); }
  .spec-sheet-row:nth-last-child(-n+2){ border-bottom: none; }
}

@media (max-width: 900px){
  .hero{ grid-template-columns: 1fr; }
  .hero-visual{ order: -1; }
  .hero-copy{ justify-items: start; }
  .manifest{ grid-template-columns: 1fr; }
}

@media (max-width: 640px){
  .hero-actions{ flex-direction: column; width: 100%; }
  .btn{ width: 100%; }
  .spec-sheet{ grid-template-columns: 1fr; }
  .spec-sheet-row{ border-right: none !important; border-bottom: 1px solid var(--line) !important; }
  .spec-sheet-row:last-child{ border-bottom: none !important; }
  .review-card{ flex-basis: 78vw; }
}

/* ---- theming page (moved from inline) ---- */
  /* ---- additions scoped to this page only, same tokens as styles.css ---- */

  .doc-shell{
    max-width: var(--max-w);
    margin: 0 auto;
    padding: clamp(28px, 4vw, 48px) var(--gutter) clamp(64px, 8vw, 120px);
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: start;
  }

  .doc-back{
    display: inline-flex; align-items: center; gap: 6px;
    font-size: var(--t-small); color: var(--ink-dim);
    text-decoration: none; margin-bottom: 28px;
  }
  .doc-back:hover{ color: var(--ink); }
  .doc-back svg{ width: 14px; height: 14px; fill: currentColor; }

  .doc-nav{
    position: sticky; top: 24px;
    display: none;
    flex-direction: column;
    gap: 2px;
    border-left: 1px solid var(--line);
    padding-left: 16px;
  }
  .doc-nav a{
    font-size: var(--t-small);
    color: var(--ink-faint);
    text-decoration: none;
    padding: 5px 0;
    border-left: 2px solid transparent;
    margin-left: -17px;
    padding-left: 15px;
  }
  .doc-nav a:hover{ color: var(--ink-dim); }
  .doc-nav a.is-active{ color: var(--ink); border-left-color: var(--accent-strong); }

  .doc-header{ max-width: 62ch; margin-bottom: clamp(36px, 5vw, 56px); }
  .doc-kicker{
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono);
    font-size: var(--t-micro);
    color: var(--ink-faint);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 14px;
  }
  .doc-kicker::before{ content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-strong); }
  .doc-header h1{
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--t-h2);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
  }
  .doc-header p{ color: var(--ink-dim); font-size: var(--t-lead); line-height: 1.65; margin: 0; }

  .doc-body{ min-width: 0; }
  .doc-body section{ margin-bottom: clamp(44px, 6vw, 72px); scroll-margin-top: 24px; }
  .doc-body h2{
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.015em;
    margin: 0 0 14px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }
  .doc-body section:first-child h2{ border-top: none; padding-top: 0; }
  .doc-body h3{
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    margin: 28px 0 10px;
  }
  .doc-body p{ color: var(--ink-dim); font-size: var(--t-body); line-height: 1.7; margin: 0 0 14px; max-width: 68ch; }
  .doc-body ul, .doc-body ol{ color: var(--ink-dim); font-size: var(--t-body); line-height: 1.75; margin: 0 0 16px; padding-left: 22px; max-width: 66ch; }
  .doc-body li{ margin-bottom: 6px; }
  .doc-body li::marker{ color: var(--ink-faint); }
  .doc-body strong{ color: var(--ink); font-weight: 600; }

  .doc-body code{
    font-family: var(--font-mono);
    font-size: .85em;
    background: var(--bg-raised);
    border: 1px solid var(--line);
    padding: 1px 6px;
    border-radius: 5px;
    color: var(--accent-strong);
  }

  pre{
    background: var(--bg-sunk);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    overflow-x: auto;
    margin: 0 0 20px;
  }
  pre code{
    font-family: var(--font-mono);
    font-size: 12.5px;
    line-height: 1.65;
    background: none; border: none; padding: 0; color: var(--ink-dim);
  }
  .code-label{
    font-family: var(--font-mono);
    font-size: var(--t-micro);
    color: var(--ink-faint);
    margin: 0 0 6px;
  }
  .tok-key{ color: #8fc7ea; }
  .tok-str{ color: #9fd8a0; }
  .tok-com{ color: var(--ink-faint); }
  .tok-num{ color: #e0b070; }

  .note{
    border-left: 2px solid var(--accent-strong);
    background: var(--bg-raised);
    border-radius: 0 8px 8px 0;
    padding: 14px 18px;
    margin: 0 0 20px;
    max-width: 68ch;
  }
  .note p{ margin: 0; color: var(--ink-dim); font-size: var(--t-small); }
  .note-label{
    display: block;
    font-family: var(--font-mono);
    font-size: var(--t-micro);
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--accent-strong);
    margin-bottom: 6px;
  }

  .role-table{
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 22px;
    font-size: var(--t-small);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
  }
  .role-table th, .role-table td{
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
  }
  .role-table th{
    color: var(--ink-faint);
    font-size: var(--t-micro);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 600;
    background: var(--bg-raised);
  }
  .role-table td{ color: var(--ink-dim); }
  .role-table tr:last-child td{ border-bottom: none; }
  .role-table code{ font-size: .82em; }

  .sw{
    display: inline-flex; align-items: center; gap: 8px;
  }
  .sw i{
    width: 13px; height: 13px; border-radius: 4px;
    border: 1px solid oklch(1 0 0 / .15);
    flex-shrink: 0;
  }

  .preset-list{
    list-style: none;
    margin: 0 0 22px; padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 10px;
  }
  .preset-list li{
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 14px;
    display: flex; align-items: center; gap: 10px;
  }
  .preset-list .dot{ width: 13px; height: 13px; border-radius: 50%; flex-shrink: 0; border: 1px solid oklch(1 0 0 / .18); }
  .preset-list .name{ font-size: var(--t-small); font-weight: 600; color: var(--ink); }
  .preset-list .base{ font-family: var(--font-mono); font-size: var(--t-micro); color: var(--ink-faint); margin-left: auto; }

  .pill-row{ display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; }
  .pill{
    font-family: var(--font-mono);
    font-size: var(--t-micro);
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--ink-faint);
  }

  .field-list{ margin: 0 0 22px; padding: 0; list-style: none; }
  .field-list > li{
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 180px minmax(0,1fr);
    gap: 16px;
  }
  .field-list > li:last-child{ border-bottom: none; }
  .field-list code.fname{ font-size: .82rem; color: var(--ink); background: none; border: none; padding: 0; }
  .field-list .fmeta{ font-family: var(--font-mono); font-size: var(--t-micro); color: var(--ink-faint); display: block; margin-top: 3px; }
  .field-list p{ margin: 0; font-size: var(--t-small); max-width: none; }

  @media (max-width: 900px){
    .doc-shell{ grid-template-columns: 1fr; }
    .doc-nav{ display: none !important; }
    .field-list > li{ grid-template-columns: 1fr; gap: 4px; }
  }
  @media (min-width: 901px){ .doc-nav{ display: flex; } }

/* =========================================================================
   REDESIGN LAYER. Ultramarine fields + doubloon gold on ink. Type does the
   talking. Loaded last so it re-tokens everything above it.
   ========================================================================= */
@font-face{ font-family:"Archivo"; src:url(fonts/archivo.woff2) format("woff2"); font-weight:100 900; font-stretch:62% 125%; font-display:swap; }
@font-face{ font-family:"Geist"; src:url(fonts/geist.woff2) format("woff2"); font-weight:100 900; font-display:swap; }
@font-face{ font-family:"Geist Mono"; src:url(fonts/geist-mono.woff2) format("woff2"); font-weight:400; font-display:swap; }

:root{
  --bg:oklch(.16 .045 268); --bg-raised:oklch(.205 .055 268); --bg-sunk:oklch(.13 .04 268); --hover:oklch(.26 .07 268);
  --ink:oklch(.97 .012 95); --ink-dim:oklch(.82 .035 270); --ink-faint:oklch(.7 .045 270);
  --gold:oklch(.87 .17 92); --gold-ink:oklch(.2 .05 268);
  --field:oklch(.47 .24 268); --field-ink:oklch(.98 .01 95);
  --accent:var(--gold); --accent-strong:oklch(.9 .16 95); --accent-ink:var(--gold-ink);
  --line:oklch(.42 .07 268 / .5); --line-strong:oklch(.58 .1 268 / .7);
  --glow:transparent; --dock-bg:oklch(.16 .045 268 / .8);
  --font-display:"Archivo","Segoe UI",system-ui,sans-serif; --font-body:"Geist","Segoe UI",system-ui,sans-serif; --font-mono:"Geist Mono",ui-monospace,monospace;
  --radius:14px; --ease-expo:cubic-bezier(.7,0,.2,1);
}
:root[data-theme="light"]{
  --bg:oklch(.975 .012 270); --bg-raised:oklch(.95 .02 270); --bg-sunk:oklch(.925 .028 270); --hover:oklch(.91 .035 270);
  --ink:oklch(.2 .07 268); --ink-dim:oklch(.38 .06 268); --ink-faint:oklch(.5 .06 268);
  --accent:var(--field); --accent-strong:oklch(.4 .24 268); --accent-ink:oklch(.99 .01 95);
  --line:oklch(.8 .04 268 / .8); --line-strong:oklch(.6 .1 268 / .8); --dock-bg:oklch(.975 .012 270 / .82);
}
body{ font-weight:420; }
body::before{ background:var(--bg); }
::selection{ background:var(--gold); color:var(--gold-ink); }
html{ scrollbar-color:var(--field) var(--bg); }
.btn-primary{ background:var(--gold); color:var(--gold-ink); box-shadow:none; }
:root[data-theme="light"] .btn-primary{ background:var(--field); color:var(--field-ink); }
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 14px 28px -12px oklch(.2 .2 268 / .6); }
.btn{ border-radius:999px; height:52px; padding:0 28px; font-size:.95rem; }

/* Lenis */
html.lenis,html.lenis body{ height:auto; }
.lenis.lenis-smooth{ scroll-behavior:auto !important; }
.lenis.lenis-stopped{ overflow:clip; }

/* Display type */
h1.hero-title,.section-head h2,.doc-header h1,.theme-packs-copy h3{ font-family:var(--font-display); font-stretch:112%; font-weight:800; letter-spacing:-.035em; line-height:.98; }
.section-head h2{ font-size:clamp(2.1rem,1.1rem + 3.6vw,4.4rem); margin-bottom:18px; max-width:16ch; }
.section-head p{ font-size:1.1rem; }

/* HERO: the page opens drenched in the field colour. Bleed via clip trick. */
.hero{ position:relative; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.3' filter='url(%23n)'/%3E%3C/svg%3E") 0 0/160px, var(--field); background-blend-mode:overlay, normal; color:var(--field-ink); padding-top:clamp(48px,7vw,96px); padding-bottom:clamp(48px,7vw,96px); min-height:min(100svh,980px); box-shadow:0 0 0 100vmax var(--field); clip-path:inset(0 -100vmax); }
.hero-copy{ gap:28px; }
h1.hero-title{ font-size:clamp(2.9rem,1rem + 6.4vw,6rem); max-width:9ch; color:var(--field-ink); }
.hero-tail{ display:block; margin-top:.28em; font-stretch:100%; font-weight:500; letter-spacing:-.02em; font-size:.3em; line-height:1.15; color:var(--gold); }
.hero-sub{ color:oklch(.92 .05 270); max-width:44ch; }
.stamp{ background:oklch(1 0 0 / .1); border-color:oklch(1 0 0 / .25); color:var(--field-ink); }
.stamp::before{ background:var(--gold); box-shadow:0 0 0 4px oklch(.87 .17 92 / .25); }
.status-line{ color:oklch(.85 .08 270); }
.hero .btn-primary{ background:var(--gold); color:var(--gold-ink); }
.hero .btn-ghost{ color:var(--field-ink); border-color:oklch(1 0 0 / .45); }
.hero .btn-ghost:hover{ background:oklch(1 0 0 / .12); border-color:var(--field-ink); }
.fan-motion{ border:0; border-radius:8px; box-shadow:0 2px 3px oklch(.1 .1 268 / .4), 0 28px 40px -14px oklch(.1 .15 268 / .75); }
.chest-core img{ filter:drop-shadow(0 18px 24px oklch(.1 .15 268 / .55)); }
.hero :focus-visible{ outline-color:var(--gold); }

/* Hero word reveal (JS wraps words; default stays visible) */
.hero-title .w{ display:inline-block; overflow:clip; vertical-align:top; padding-bottom:.08em; margin-bottom:-.08em; }
.hero-title .w > i{ display:inline-block; font-style:normal; }
html.js-anim .hero-title .w > i{ transform:translateY(110%); }
html.js-anim.is-ready .hero-title .w > i{ transform:none; transition:transform 1.1s var(--ease-out) calc(var(--i) * 70ms + var(--hd, 0ms)); }
html.js-anim .hero-copy > :not(h1){ opacity:0; transform:translateY(16px); }
html.js-anim.is-ready .hero-copy > :not(h1){ opacity:1; transform:none; transition:opacity .9s var(--ease-out) calc(.35s + var(--hd, 0ms)), transform .9s var(--ease-out) calc(.35s + var(--hd, 0ms)); }
.hero-copy > *{ animation:none !important; }

/* Scroll-linked drift, CSS only, progressive */
@supports (animation-timeline: view()){
  @media (prefers-reduced-motion:no-preference){
    .hero-visual{ animation:drift linear both; animation-timeline:scroll(root); animation-range:0 90vh; }
    .carousel-viewport{ animation:frame-in linear both; animation-timeline:view(); animation-range:entry 0% cover 38%; }
    .theme-preview{ animation:frame-in linear both; animation-timeline:view(); animation-range:entry 0% cover 40%; }
  }
}
@keyframes drift{ to{ transform:translateY(-8vh) scale(.94); opacity:.35; } }
@keyframes frame-in{ from{ transform:scale(.9) translateY(4vh); border-radius:40px; } to{ transform:none; } }

/* Scroll reveals */
html.js-reveal [data-reveal]{ opacity:0; transform:translateY(28px); }
html.js-reveal [data-reveal].is-in{ opacity:1; transform:none; transition:opacity 1s var(--ease-out) var(--d,0ms), transform 1s var(--ease-out) var(--d,0ms); }

/* Reviews: colour-blocked, big quotes, drawn stars */
.review-card{ flex-basis:clamp(280px,30vw,380px); align-items:flex-start; text-align:left; padding:28px; gap:14px; border-radius:var(--radius); border:0; background:var(--bg-raised); box-shadow:none; min-height:340px; }
.review-card:nth-child(3n+1){ background:var(--field); color:var(--field-ink); }
.review-card:nth-child(3n+1) .review-quote{ color:oklch(.94 .04 270); }
.review-card:nth-child(3n+2){ background:var(--gold); color:var(--gold-ink); }
.review-card:nth-child(3n+2) .review-quote{ color:oklch(.28 .06 268); }
.review-card:nth-child(3n){ background:var(--bg-raised); }
.review-avatar{ border-radius:12px; width:56px; height:56px; border:0; order:3; margin:auto 0 0; }
.review-stars{ order:0; font-size:0; width:112px; height:20px; color:var(--gold); background:currentColor; letter-spacing:0; text-shadow:none;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22.4' height='20' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.8l3 6.9 7.5.7-5.7 5 1.7 7.4L12 17.9 5.5 21.8l1.7-7.4-5.7-5 7.5-.7z'/%3E%3C/svg%3E") 0 0/22.4px 20px repeat-x;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22.4' height='20' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.8l3 6.9 7.5.7-5.7 5 1.7 7.4L12 17.9 5.5 21.8l1.7-7.4-5.7-5 7.5-.7z'/%3E%3C/svg%3E") 0 0/22.4px 20px repeat-x; }
.review-card:nth-child(3n+2) .review-stars{ color:var(--gold-ink); }
.review-stars.one-star{ background:linear-gradient(90deg,currentColor 20%,var(--line-strong) 20%); color:var(--ink); }
.review-name{ order:2; font-family:var(--font-display); font-stretch:105%; font-weight:700; font-size:1rem; }
.review-quote{ order:1; font-family:var(--font-display); font-stretch:100%; font-weight:600; font-size:1.3rem; line-height:1.28; letter-spacing:-.015em; color:var(--ink); margin:0; }
.review-quote-empty{ opacity:.4; }
.reviews-track{ cursor:grab; scroll-snap-type:none; } .reviews-track.is-drag{ cursor:grabbing; user-select:none; }

/* Screens / themes */
.carousel-viewport,.theme-preview{ border:0; border-radius:24px; box-shadow:0 40px 70px -40px oklch(.1 .2 268 / .9); }
.carousel-cap{ font-family:var(--font-display); font-weight:700; background:var(--gold); color:var(--gold-ink); border:0; padding:8px 16px; }
.carousel-dot[aria-selected="true"]{ background:var(--gold); } :root[data-theme="light"] .carousel-dot[aria-selected="true"]{ background:var(--field); }
.theme-section{ background:var(--bg-sunk); border:0; }
.theme-preview{ padding:clamp(14px,3vw,44px); background:color-mix(in oklch,var(--sw,var(--field)) 78%,black); transition:background-color .7s var(--ease-expo); }
.theme-preview img{ border-radius:12px; box-shadow:0 30px 50px -26px #000a; }
.theme-swatch{ font-weight:600; padding:10px 18px 10px 14px; } .theme-swatch.is-active{ background:var(--gold); color:var(--gold-ink); border-color:var(--gold); }
:root[data-theme="light"] .theme-swatch.is-active{ background:var(--field); color:var(--field-ink); border-color:var(--field); }
.theme-feature-list h4{ font-family:var(--font-display); font-size:1.15rem; }

/* Perf: chunky bars that fill when seen */
.perf-chart{ background:transparent; border:0; padding:0; gap:12px; }
.perf-row{ grid-template-columns:110px minmax(0,1fr); } .perf-label{ font-family:var(--font-display); font-weight:700; color:var(--ink); }
.perf-track{ height:60px; border:0; border-radius:12px; background:var(--bg-raised); }
.perf-bar{ border-radius:12px; background:var(--line-strong); padding-right:18px; transform-origin:left; }
.perf-bar.is-us{ background:var(--gold); } :root[data-theme="light"] .perf-bar.is-us{ background:var(--field); }
.perf-bar.is-us .perf-value{ color:var(--gold-ink); } :root[data-theme="light"] .perf-bar.is-us .perf-value{ color:var(--field-ink); }
.perf-value{ font-family:var(--font-display); font-stretch:110%; font-weight:800; font-size:1.05rem; }
html.js-reveal .perf-bar{ clip-path:inset(0 100% 0 0 round 12px); } html.js-reveal .perf-chart.is-in .perf-bar{ clip-path:inset(0 0 0 0 round 12px); transition:clip-path 1.4s var(--ease-out) .15s; }
.perf-note{ font-family:var(--font-mono); }

/* Privacy: a full gold field, statements not cards */
.privacy-section{ position:relative; color:var(--gold-ink); max-width:var(--max-w); box-shadow:0 0 0 100vmax var(--gold); clip-path:inset(0 -100vmax); background:var(--gold); }
.privacy-section .section-head p,.privacy-note{ color:oklch(.3 .07 268); }
.privacy-section .section-head h2{ max-width:12ch; font-size:clamp(2.6rem,1rem + 6vw,6rem); }
.privacy-grid{ background:none; border:0; border-radius:0; border-top:2px solid var(--gold-ink); }
.privacy-grid li{ border-right:0; border-left:0; padding:26px 28px 26px 0; }
.privacy-grid .feat-icon{ fill:var(--gold-ink); }
.privacy-section .manifest-body h3{ font-size:1.5rem; font-stretch:105%; font-weight:800; }
.privacy-section .manifest-body p{ color:oklch(.28 .07 268); }

/* Manifest: index rows that flood with colour on hover */
.manifest{ grid-template-columns:1fr; border-top:1px solid var(--line-strong); }
.manifest li{ position:relative; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr) 32px; align-items:center; column-gap:clamp(16px,4vw,64px); padding:clamp(20px,2.4vw,34px) 8px; isolation:isolate; transition:padding .5s var(--ease-out), color .3s; }
.manifest li::before{ content:""; position:absolute; inset:0 -12px; z-index:-1; background:var(--field); clip-path:inset(100% 0 0 0); transition:clip-path .55s var(--ease-expo); border-radius:6px; }
.manifest li:hover::before{ clip-path:inset(0); } .manifest li:hover{ padding-left:22px; color:var(--field-ink); }
.manifest .feat-icon{ order:3; grid-column:3; grid-row:1; width:28px; height:28px; margin:0; } .manifest li:hover .feat-icon{ fill:var(--gold); }
.manifest .manifest-body{ display:contents; }
.manifest-body h3{ font-family:var(--font-display); font-stretch:108%; font-weight:800; font-size:clamp(1.3rem,.9rem + 1.5vw,2.1rem); letter-spacing:-.03em; line-height:1.05; margin:0; grid-column:1; grid-row:1; }
.manifest .manifest-body p{ grid-column:2; grid-row:1; max-width:46ch; } .manifest li:hover .manifest-body p{ color:oklch(.94 .04 270); }
@media (max-width:760px){ .manifest li{ grid-template-columns:minmax(0,1fr) 28px; row-gap:8px; } .manifest .manifest-body p{ grid-column:1; grid-row:2; } .manifest .feat-icon{ grid-row:1; grid-column:2; } .perf-row{ grid-template-columns:76px minmax(0,1fr); } }

/* Spec sheet + footer */
.spec-sheet{ background:none; border:0; border-top:1px solid var(--line-strong); border-radius:0; }
.spec-sheet-row{ padding:26px 0; border-right:0 !important; } .spec-sheet-row span:last-child{ font-family:var(--font-display); font-stretch:108%; font-weight:700; font-size:1.35rem; }
.spec-sheet-row span:first-child{ font-family:var(--font-mono); font-weight:400; }
.pc-footer{ position:relative; overflow:clip; border:0; padding-top:clamp(40px,6vw,80px); }
.pc-footer::before{ content:"PiraChest"; display:block; font-family:var(--font-display); font-stretch:125%; font-weight:900; font-size:clamp(3rem,15.5vw,14rem); letter-spacing:-.05em; line-height:.8; color:var(--field); margin:0 0 .12em -.04em; user-select:none; }
.dock{ border-radius:999px; }

/* THEMING PAGE */
.doc-shell{ padding-top:0; }
.doc-back{ color:var(--field-ink); font-weight:600; margin-bottom:clamp(40px,8vw,110px); }
.doc-back:hover{ color:var(--gold); }
.doc-header{ position:relative; max-width:none; color:var(--field-ink); padding:clamp(28px,4vw,48px) 0 clamp(40px,6vw,88px); box-shadow:0 0 0 100vmax var(--field); clip-path:inset(0 -100vmax); background:var(--field); }
.doc-header h1{ font-size:clamp(2.6rem,1rem + 6vw,6rem); max-width:11ch; margin:0 0 28px; }
.doc-header p{ color:oklch(.92 .05 270); max-width:58ch; } .doc-header code{ background:oklch(1 0 0 / .14); border-color:transparent; color:var(--gold); }
.doc-shell{ grid-template-columns:1fr; } .doc-shell > .doc-nav{ display:none !important; }
.doc-body-wrap{ display:grid; grid-template-columns:220px minmax(0,1fr); gap:clamp(28px,4vw,64px); }
.doc-body-wrap > .doc-back,.doc-body-wrap > .doc-header{ grid-column:1 / -1; }
.doc-body-wrap > .doc-nav-slot{ grid-column:1; }
.doc-body{ grid-column:2; padding-top:clamp(36px,5vw,64px); }
.doc-nav{ top:32px; border-left:1px solid var(--line-strong); } .doc-nav a.is-active{ border-left-color:var(--gold); } :root[data-theme="light"] .doc-nav a.is-active{ border-left-color:var(--field); }
.doc-body h2{ font-family:var(--font-display); font-stretch:108%; font-weight:800; font-size:clamp(1.8rem,1.2rem + 1.6vw,2.6rem); letter-spacing:-.03em; border-top:2px solid var(--line-strong); padding-top:28px; }
.note{ border-left:0; border-radius:var(--radius); background:var(--bg-raised); padding:18px 22px; } .note-label{ color:var(--accent-strong); }
.role-table{ border:0; border-top:1px solid var(--line-strong); border-radius:0; } .role-table th{ background:none; font-family:var(--font-mono); font-weight:400; }
pre{ border:0; border-radius:var(--radius); background:var(--bg-sunk); } .tok-key{ color:oklch(.8 .12 250); } .tok-str{ color:var(--gold); } .tok-num{ color:oklch(.8 .16 20); }
:root[data-theme="light"] .tok-key{ color:oklch(.42 .2 268); } :root[data-theme="light"] .tok-str{ color:oklch(.45 .13 70); }
.preset-list li{ border:0; background:var(--bg-raised); } .preset-list .dot{ width:18px; height:18px; }
@media (max-width:900px){ .doc-body-wrap{ grid-template-columns:1fr; } .doc-body{ grid-column:1; } }
.doc-kicker{ display:none; }

/* PAGE TRANSITION: six-slat shutter, gold then field. Direction and stagger are set from JS. */
.curtain{ position:fixed; inset:0; z-index:400; pointer-events:none; visibility:hidden; overflow:hidden; }
.curtain .c-a, .curtain .c-b{ position:absolute; inset:0; display:grid; grid-template-columns:repeat(6,1fr); }
.curtain i{ display:block; width:calc(100% + 1px); clip-path:inset(100% 0 0 0); }  /* +1px hides sub-pixel seams between slats */
.curtain .c-a i{ background:var(--gold); } .curtain .c-b i{ background:var(--field); }
.curtain .c-tag{ position:absolute; inset:0; display:grid; align-content:end; padding:var(--gutter); color:var(--field-ink); }
.curtain-label{ font-family:var(--font-display); font-stretch:125%; font-weight:900; font-size:clamp(3rem,13vw,13rem); letter-spacing:-.05em; line-height:.84; overflow:clip; padding-bottom:.2em; margin-bottom:-.2em; }
.curtain-label span{ display:block; } .curtain-sub{ font-family:var(--font-mono); font-size:.85rem; color:oklch(.85 .08 270); margin:0 0 1.2rem; }
/* Entrances that follow a page transition run tighter than a cold page load. */
html.is-nav.js-anim.is-ready .hero-title .w > i{ transition-duration:.75s; transition-delay:calc(var(--i) * 45ms + var(--hd, 0ms)); }
html.is-nav.js-anim.is-ready .hero-copy > :not(h1){ transition-duration:.6s; transition-delay:calc(.16s + var(--hd, 0ms)); }
html.is-nav.js-reveal [data-reveal].is-in{ transition-duration:.7s; }
.dock{ z-index:500; }
@media (prefers-reduced-motion:reduce){ html.js-reveal [data-reveal],html.js-reveal .perf-bar{ opacity:1 !important; transform:none !important; clip-path:none !important; } }
:root .hero .btn-primary,:root[data-theme="light"] .hero .btn-primary{ background:var(--gold); color:var(--gold-ink); }
.section-head h3{ font-family:var(--font-display); font-stretch:108%; font-weight:800; font-size:clamp(1.5rem,1rem + 1.6vw,2.4rem); letter-spacing:-.03em; line-height:1.05; margin:0 0 12px; }
.doc-header .doc-back{ margin-top:0; }

/* Full-bleed layout: no centred max-width column. */
:root{ --max-w: none; --gutter: clamp(20px, 4vw, 64px); }
.doc-body p, .doc-body ul, .doc-body ol{ max-width: 80ch; }

/* Code blocks: kill the per-token box (.doc-body code outranked `pre code`). */
.doc-body pre code{ background:none; border:0; padding:0; border-radius:0; color:var(--ink-dim); font-size:13px; }
.doc-body pre code .tok-key,.doc-body pre code .tok-str,.doc-body pre code .tok-num,.doc-body pre code .tok-com{ background:none; border:0; padding:0; }
.doc-body pre code .tok-key{ color:oklch(.8 .12 250); } .doc-body pre code .tok-str{ color:var(--gold); } .doc-body pre code .tok-num{ color:oklch(.8 .16 20); } .doc-body pre code .tok-com{ color:var(--ink-faint); }
:root[data-theme="light"] .doc-body pre code .tok-key{ color:oklch(.42 .2 268); }
:root[data-theme="light"] .doc-body pre code .tok-str{ color:oklch(.45 .13 70); }

/* ---- Quick resize pass: tighter type, capped previews ---- */
.section{ padding-top:clamp(40px,5vw,72px); padding-bottom:clamp(40px,5vw,72px); }
h1.hero-title{ font-size:clamp(2.5rem,1rem + 4.4vw,4.6rem); }
.section-head h2{ font-size:clamp(1.8rem,1rem + 2.3vw,3.1rem); }
.section-head h3{ font-size:clamp(1.3rem,1rem + 1vw,1.8rem); }
.privacy-section .section-head h2{ font-size:clamp(2.1rem,1rem + 3.6vw,4.2rem); }
.doc-header h1{ font-size:clamp(2.3rem,1rem + 4vw,4.4rem); }
.doc-body h2{ font-size:clamp(1.5rem,1.1rem + 1vw,2rem); }
.manifest-body h3{ font-size:clamp(1.1rem,.9rem + .9vw,1.55rem); }
.manifest li{ padding-block:clamp(14px,1.6vw,22px); }
.privacy-section .manifest-body h3{ font-size:1.2rem; }
.perf-track{ height:44px; } .perf-value{ font-size:.95rem; }
.review-card{ flex-basis:clamp(250px,22vw,320px); min-height:270px; padding:22px; }
.review-quote{ font-size:1.1rem; }
.spec-sheet-row{ padding:18px 0; } .spec-sheet-row span:last-child{ font-size:1.1rem; }
.pc-footer::before{ font-size:clamp(3rem,13vw,10rem); }
.btn{ height:46px; padding:0 24px; font-size:.9rem; }

/* Screenshots: a sensible window-sized frame, centred, never wall-to-wall */
.carousel,.theme-gallery{ width:min(100%,1080px); margin-inline:auto; }
.theme-preview{ padding:clamp(10px,2vw,28px); }
.carousel-cap{ font-size:.75rem; padding:6px 12px; }
.theme-section .theme-gallery{ margin-bottom:clamp(28px,3vw,40px); }

/* =========================================================================
   V3. Palette pulled from the logo (cyan -> blue) with coral as the one
   contrast colour. Light/dark are now pure token swaps, no per-rule hacks.
   ========================================================================= */
:root{
  --cyan:oklch(.83 .14 215); --blue:oklch(.56 .24 262); --deep:oklch(.36 .19 264);
  --coral:oklch(.75 .17 40); --coral-ink:oklch(.2 .06 30); --ice:oklch(.9 .07 225);
  --bg:oklch(.145 .035 262); --bg-raised:oklch(.205 .05 262); --bg-sunk:oklch(.115 .03 262); --hover:oklch(.26 .06 262);
  --ink:oklch(.97 .008 250); --ink-dim:oklch(.8 .03 255); --ink-faint:oklch(.66 .04 258);
  --line:oklch(.34 .06 262 / .6); --line-strong:oklch(.5 .09 262 / .7); --dock-bg:oklch(.145 .035 262 / .82);
  --sel:var(--cyan); --sel-ink:oklch(.2 .06 262);
  --tok-key:oklch(.82 .12 225); --tok-str:oklch(.82 .14 60); --tok-num:oklch(.78 .16 20);
  --accent:var(--sel); --accent-strong:oklch(.88 .12 215); --accent-ink:var(--sel-ink);
  --gold:var(--coral); --gold-ink:var(--coral-ink); --field:var(--deep); --field-ink:oklch(.98 .01 250);
}
:root[data-theme="light"]{
  --bg:oklch(.985 .005 250); --bg-raised:oklch(.955 .014 250); --bg-sunk:oklch(.93 .024 252); --hover:oklch(.91 .03 252);
  --ink:oklch(.19 .06 262); --ink-dim:oklch(.38 .06 262); --ink-faint:oklch(.5 .06 262);
  --line:oklch(.86 .025 255); --line-strong:oklch(.7 .06 258); --dock-bg:oklch(.985 .005 250 / .85);
  --sel:var(--blue); --sel-ink:oklch(.99 .005 250);
  --tok-key:oklch(.45 .2 264); --tok-str:oklch(.5 .13 50); --tok-num:oklch(.5 .2 20);
  --accent-strong:oklch(.46 .24 264);
}
:root .btn-primary,:root[data-theme="light"] .btn-primary,:root .hero .btn-primary,:root[data-theme="light"] .hero .btn-primary{ background:var(--coral); color:var(--coral-ink); }
:root .theme-swatch.is-active,:root[data-theme="light"] .theme-swatch.is-active{ background:var(--sel); color:var(--sel-ink); border-color:var(--sel); }
:root .carousel-dot[aria-selected="true"],:root[data-theme="light"] .carousel-dot[aria-selected="true"]{ background:var(--sel); }
:root .perf-bar.is-us,:root[data-theme="light"] .perf-bar.is-us{ background:var(--sel); }
:root .perf-bar.is-us .perf-value,:root[data-theme="light"] .perf-bar.is-us .perf-value{ color:var(--sel-ink); }
:root .doc-nav a.is-active,:root[data-theme="light"] .doc-nav a.is-active{ border-left-color:var(--sel); }
.tok-key,:root[data-theme="light"] .tok-key,.doc-body pre code .tok-key,:root[data-theme="light"] .doc-body pre code .tok-key{ color:var(--tok-key); }
.tok-str,:root[data-theme="light"] .tok-str,.doc-body pre code .tok-str,:root[data-theme="light"] .doc-body pre code .tok-str{ color:var(--tok-str); }
.tok-num,.doc-body pre code .tok-num{ color:var(--tok-num); }
.perf-bar,.perf-track{ border:0; }
.review-card:nth-child(3n){ border:1px solid var(--line); }

/* HERO: calm ground, one big coral disc behind the logo, type does the rest */
.hero{ background:none; box-shadow:none; clip-path:none; color:var(--ink); min-height:min(94svh,900px); grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr); }
h1.hero-title{ color:var(--ink); font-size:clamp(2.8rem,1rem + 5.2vw,5.6rem); max-width:8ch; }
.hero-tail{ display:inline-block; margin-top:.7em; padding:.2em .6em .24em; border-radius:999px; background:var(--coral); color:var(--coral-ink); font-stretch:100%; font-weight:700; font-size:.26em; letter-spacing:-.01em; transform:rotate(-3deg); transform-origin:left center; }
.hero-sub{ color:var(--ink-dim); max-width:40ch; font-size:1.02rem; }
.stamp{ background:var(--bg-raised); border:1px solid var(--line); color:var(--ink-dim); }
.stamp::before{ background:var(--coral); box-shadow:0 0 0 4px color-mix(in oklch,var(--coral) 25%,transparent); }
.status-line{ color:var(--ink-faint); }
.hero .btn-ghost{ color:var(--ink); border-color:var(--line-strong); }
.hero .btn-ghost:hover{ background:var(--bg-raised); border-color:var(--ink); }
.hero :focus-visible{ outline-color:var(--sel); }
.chest-core::before{ content:""; position:absolute; inset:-13%; border-radius:50%; background:var(--coral); z-index:-1; }
.chest-core img{ filter:none; }
.fan-motion{ box-shadow:0 2px 3px oklch(.1 .1 262 / .25), 0 24px 36px -16px oklch(.1 .15 262 / .55); }

/* BENTO: size follows importance */
.bento{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); grid-auto-rows:minmax(150px,auto); gap:14px; }
.tile{ position:relative; display:flex; flex-direction:column; justify-content:space-between; gap:18px; padding:clamp(18px,2vw,28px); overflow:hidden; background:var(--bg-raised); color:var(--ink); border:1px solid var(--line); border-radius:28px; transition:transform .5s var(--ease-out); --t:1.3rem; }
.tile:hover{ transform:translateY(-4px) scale(1.012); }
.tile .feat-icon{ width:30px; height:30px; fill:currentColor; flex:none; }
.tile h3{ font-family:var(--font-display); font-stretch:106%; font-weight:800; font-size:var(--t); line-height:1.02; letter-spacing:-.03em; margin:0 0 8px; }
.tile p{ margin:0; font-size:.92rem; line-height:1.45; max-width:42ch; opacity:.82; }
.t-pc{ grid-column:span 6; grid-row:span 2; border:0; border-radius:44px; --t:clamp(2.2rem,1rem + 3vw,4.2rem); background:linear-gradient(180deg,var(--cyan),var(--blue) 62%); color:oklch(.99 .005 250); }
.t-pc .feat-icon{ width:48px; height:48px; color:oklch(.2 .08 262); } .t-pc p{ font-size:1.05rem; opacity:.95; }
.t-music{ grid-column:span 3; grid-row:span 2; border:0; border-radius:36px 36px 120px 36px; --t:clamp(1.8rem,1rem + 1.6vw,2.6rem); background:var(--coral); color:var(--coral-ink); }
.t-tv{ grid-column:span 3; --t:1.5rem; border-radius:28px 28px 28px 8px; }
.t-books{ grid-column:span 3; border:0; background:var(--deep); color:var(--field-ink); border-radius:8px 28px 28px 28px; }
.t-bay{ grid-column:span 5; border:0; background:var(--ink); color:var(--bg); --t:1.7rem; border-radius:32px; }
.t-dl{ grid-column:span 4; border-radius:24px; }
.t-rom{ grid-column:span 3; background:transparent; border-style:dashed; border-color:var(--line-strong); border-radius:20px; --t:1.05rem; padding:18px; } .t-rom p{ font-size:.82rem; }
.t-themes{ grid-column:span 7; border:0; background:var(--ice); color:oklch(.2 .06 262); --t:clamp(1.8rem,1rem + 1.8vw,2.8rem); border-radius:56px 20px 56px 20px; }
.t-yt{ grid-column:span 5; border-radius:80px; padding-inline:clamp(28px,3vw,44px); --t:1.4rem; }
.t-yt .feat-icon{ position:absolute; right:clamp(24px,3vw,40px); top:50%; translate:0 -50%; width:44px; height:44px; opacity:.9; } .t-yt .tile-body{ padding-right:64px; }
.dots{ display:flex; gap:8px; } .dots i{ width:26px; height:26px; border-radius:50%; background:var(--c); box-shadow:inset 0 0 0 2px oklch(0 0 0 / .12); }
.bars{ display:grid; gap:6px; } .bars i{ height:8px; width:var(--w); border-radius:99px; background:var(--sel); }
@media (max-width:980px){ .bento{ grid-template-columns:repeat(6,minmax(0,1fr)); } .tile{ grid-column:span 3 !important; grid-row:auto !important; } .t-pc,.t-themes{ grid-column:span 6 !important; } }
@media (max-width:560px){ .bento{ grid-template-columns:1fr; } .tile,.t-pc,.t-themes{ grid-column:auto !important; } .t-yt{ border-radius:44px; } }

/* =========================================================================
   V4. Blues only. Declared colour schemes (stops browser auto-darkening).
   Manifest = plain boxes sized to their content, no dead space.
   ========================================================================= */
:root{ color-scheme:dark; --coral:oklch(.8 .11 240); --coral-ink:oklch(.17 .06 262); --disc:oklch(.95 .03 235); }
:root[data-theme="light"]{ color-scheme:light; --coral:oklch(.48 .23 264); --coral-ink:oklch(.99 .005 250); --disc:oklch(.9 .06 235); }
.chest-core::before{ background:var(--disc); }
.privacy-section .section-head p,.privacy-note,.privacy-section .manifest-body p{ color:inherit; opacity:.85; }
.review-card:nth-child(3n+2) .review-quote{ color:inherit; }

.bento{ grid-auto-rows:auto; gap:12px; }
.bento .tile{ border-radius:22px; justify-content:flex-start; gap:14px; padding:clamp(18px,1.8vw,26px); border:0; --t:1.35rem; }
.bento .tile h3{ margin:0 0 6px; } .bento .tile .feat-icon{ width:28px; height:28px; }
.bento .t-pc{ grid-column:span 7; grid-row:auto; min-height:clamp(200px,17vw,260px); justify-content:space-between; --t:clamp(2.2rem,1rem + 2.6vw,3.8rem); background:linear-gradient(200deg,var(--cyan) 0%,var(--blue) 58%); color:oklch(.99 .005 250); }
.bento .t-pc .feat-icon{ width:40px; height:40px; color:oklch(.2 .08 262); }
.bento .t-music{ grid-column:span 5; grid-row:auto; min-height:clamp(200px,17vw,260px); justify-content:space-between; --t:clamp(1.8rem,1rem + 1.8vw,2.8rem); background:var(--coral); color:var(--coral-ink); }
.bento .t-tv,.bento .t-books,.bento .t-bay,.bento .t-themes,.bento .t-dl,.bento .t-yt{ grid-column:span 4; }
.bento .t-tv,.bento .t-dl,.bento .t-yt{ background:var(--bg-raised); }
.bento .t-books{ background:var(--deep); color:var(--field-ink); }
.bento .t-bay{ background:var(--ink); color:var(--bg); }
.bento .t-themes{ background:var(--ice); color:oklch(.2 .06 262); }
.bento .t-yt .feat-icon{ position:static; translate:none; width:28px; height:28px; opacity:1; } .bento .t-yt .tile-body{ padding:0; } .bento .t-yt{ padding-inline:clamp(18px,1.8vw,26px); }
.bento .t-rom{ grid-column:1 / -1; display:grid; grid-template-columns:auto minmax(0,.7fr) minmax(0,2fr); align-items:center; gap:18px; padding:14px 22px; background:var(--bg-sunk); color:var(--ink-dim); --t:1.05rem; }
.bento .t-rom .tile-body{ display:contents; } .bento .t-rom h3{ margin:0; color:var(--ink); } .bento .t-rom p{ font-size:.85rem; max-width:none; }
@media (max-width:980px){ .bento{ grid-template-columns:repeat(6,minmax(0,1fr)); } .bento .tile{ grid-column:span 3; } .bento .t-pc,.bento .t-music,.bento .t-rom{ grid-column:span 6; } .bento .t-rom{ grid-template-columns:auto 1fr; } .bento .t-rom p{ grid-column:1 / -1; } }
@media (max-width:560px){ .bento{ grid-template-columns:1fr; } .bento .tile,.bento .t-pc,.bento .t-music,.bento .t-rom{ grid-column:auto; } }

/* =========================================================================
   V5 HERO. Nav bar, centred headline, a hand of posters rising from the logo.
   ========================================================================= */
.hero{ display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:auto auto 1fr; justify-items:center; text-align:center; gap:0; min-height:100svh; padding:0 var(--gutter); overflow:clip; border-bottom:1px solid var(--line); }
.hero-nav{ width:100%; display:flex; align-items:center; justify-content:space-between; gap:24px; padding:22px 0; }
.brand{ font-family:var(--font-display); font-stretch:112%; font-weight:800; font-size:1.2rem; letter-spacing:-.03em; color:var(--ink); text-decoration:none; }
.hero-links{ display:flex; gap:clamp(18px,3vw,36px); margin-left:auto; }
.hero-links a{ font-size:.92rem; font-weight:500; color:var(--ink-dim); text-decoration:none; transition:color .2s; } .hero-links a:hover{ color:var(--ink); }
.btn.btn-sm{ height:38px; padding:0 18px; font-size:.85rem; }
.hero-copy{ justify-items:center; gap:20px; padding-top:clamp(24px,6svh,72px); }
h1.hero-title{ max-width:11ch; text-wrap:balance; font-size:clamp(2.8rem,1rem + 5.6vw,6rem); line-height:.96; }
.hero-sub{ max-width:52ch; text-align:center; font-size:1.08rem; }
.hero-actions{ justify-content:center; }
.status-line{ margin:4px 0 0; }

.hero-fan{ position:relative; width:100%; align-self:end; margin-top:clamp(20px,4svh,48px); --ch:clamp(170px,min(26vw,40svh),400px); --cw:calc(var(--ch) * .68); height:calc(var(--ch) * .74); animation:none; }
.hero-fan .orbit-scene{ position:absolute; inset:0; width:auto; height:auto; max-width:none; margin:0; overflow:clip; }
.hero-fan .card-fan{ position:absolute; inset:0; animation:none; transform:none; }
.hero-fan .fan-card{ position:absolute; top:auto; left:calc(50% - var(--cw) / 2); bottom:calc(var(--ch) * -.34); width:var(--cw); height:var(--ch); aspect-ratio:auto;
  transform:rotate(var(--a)); transform-origin:50% calc(100% + var(--ch) * 1.35); translate:0 14%; opacity:0;
  transition:opacity .9s var(--ease-out) calc(var(--i) * 70ms + .25s), translate 1.1s var(--ease-out) calc(var(--i) * 70ms + .25s); }
.hero-fan .fan-card.is-in{ opacity:1; translate:0 0; }
.hero-fan .fan-card:hover{ z-index:80 !important; translate:0 -5%; transition-delay:0s; }
.hero-fan .fan-motion{ border-radius:10px; border:0; box-shadow:0 1px 2px oklch(.1 .1 262 / .3), 0 22px 40px -14px oklch(.1 .15 262 / .6); }
.hero-fan .chest-core{ left:50%; top:auto; bottom:calc(var(--ch) * -.05); width:calc(var(--ch) * .38); height:calc(var(--ch) * .38); transform:translateX(-50%); z-index:100; }
.hero-fan .chest-core:hover{ transform:translateX(-50%) scale(1.06); } .hero-fan .chest-core:active{ transform:translateX(-50%) scale(1.01); }
.hero-fan .chest-core::before{ display:none; }
.hero-fan .chest-core img{ filter:drop-shadow(0 8px 18px oklch(.1 .15 262 / .55)); }
/* two hairline rings centred on the logo: a compass, not a glow */
.hero-fan::before,.hero-fan::after{ content:""; position:absolute; left:50%; translate:-50% 0; aspect-ratio:1; border-radius:50%; border:1px solid var(--line); pointer-events:none; }
.hero-fan::before{ width:calc(var(--ch) * 2.8); bottom:calc(var(--ch) * .14 - var(--ch) * 1.4); }
.hero-fan::after{ width:calc(var(--ch) * 4.2); bottom:calc(var(--ch) * .14 - var(--ch) * 2.1); }
@media (max-width:720px){ .hero-links{ display:none; } .hero-nav{ padding:16px 0; } .hero-nav .btn{ margin-left:auto; } }
/* V5 tuning: fit the whole hero in one screen, rings fade before the copy */
.hero-copy{ gap:16px; padding-top:clamp(12px,3.5svh,48px); }
h1.hero-title{ font-size:clamp(2.7rem,1rem + 5vw,5.4rem); }
.hero-sub{ max-width:60ch; font-size:1.05rem; }
.hero-fan{ --ch:clamp(170px,min(28vw,46svh),430px); margin-top:clamp(12px,2.5svh,32px); }
.hero-fan::before,.hero-fan::after{ -webkit-mask-image:linear-gradient(to bottom,transparent 8%,#000 40%); mask-image:linear-gradient(to bottom,transparent 8%,#000 40%); }
.hero-fan::before{ width:calc(var(--ch) * 2.5); bottom:calc(var(--ch) * .14 - var(--ch) * 1.25); }
.hero-fan::after{ width:calc(var(--ch) * 3.6); bottom:calc(var(--ch) * .14 - var(--ch) * 1.8); }
.hero-copy > *{ text-align:center; }
.btn.btn-sm{ width:auto; flex:none; }
@media (max-width:720px){ h1.hero-title{ font-size:clamp(3rem,13vw,4rem); } .hero-nav .btn{ margin-left:auto; } .hero-actions{ width:100%; } }


/* =========================================================================
   V6 HERO. Compact: no dead space under the copy, posters stand upright in a
   straight row rising from the bottom edge, logo sits on top of them.
   ========================================================================= */
.hero{ min-height:0; grid-template-rows:auto auto auto; padding-bottom:0; }
.hero-copy{ gap:14px; padding-top:clamp(4px,1.5svh,20px); }
.hero-sub{ font-size:1rem; }

.hero-fan{
  --cw:clamp(84px,min(8.4vw,16svh),190px);
  --ch:calc(var(--cw) * 1.5);
  --logo:calc(var(--ch) * .68);
  align-self:auto; margin-top:clamp(18px,3svh,36px);
  height:calc(var(--ch) * .92);
}
.hero-fan::before,.hero-fan::after{ display:none; }
.hero-fan .orbit-scene{ overflow:visible; }

/* the row: upright, side by side, centred (overflow bleeds off both edges equally) */
.hero-fan .card-fan{ display:flex; justify-content:center; align-items:flex-start; gap:10px; }
.hero-fan .fan-card{
  position:relative; flex:none; left:auto; bottom:auto; top:calc(var(--d) * var(--d) * var(--ch) * .008);
  width:var(--cw); height:var(--ch);
  transform:none; transform-origin:50% 50%; translate:0 14%;
  z-index:1 !important;
}
.hero-fan .fan-card.is-in{ translate:0 0; }
.hero-fan .fan-card:hover{ translate:0 -5%; z-index:5 !important; }
.hero-fan .fan-card.is-in .fan-motion{ animation:none; }   /* no idle tilt: keep them straight */
.hero-fan .fan-card:hover .fan-motion{ transform:none; }

/* the logo: bigger, centred on the seam, sitting above the posters on its own disc */
.hero-fan .chest-core{
  top:calc(var(--ch) * .1); bottom:auto;
  width:var(--logo); height:var(--logo);
  transform:translateX(-50%);
}
.hero-fan .chest-core::before{ display:none; }
.hero-fan .chest-core img{ filter:drop-shadow(0 0 3px oklch(1 0 0 / .9)) drop-shadow(0 0 16px oklch(.95 .05 220 / .6)) drop-shadow(0 8px 14px oklch(.1 .15 262 / .5)); }

@media (max-width:720px){
  .hero-fan{ --cw:clamp(84px,24vw,120px); }
  .hero-fan .card-fan{ gap:8px; }
}

/* =========================================================================
   V7 MANIFEST. Interlocking 12x4 bento, every tile a compact box, size set by
   importance. Layout (cols x rows):
     PC 6x2 | Music 3x2 | TV 3x1
     Themes 4x2 | Bay 4x1 | Books 4x1 ... Download 3x1 ... YouTube 4x1 | ROM 4x1
   ========================================================================= */
.bento{ grid-template-columns:repeat(12,minmax(0,1fr)); grid-auto-rows:minmax(clamp(170px,14vw,215px),auto); gap:12px; }
.bento .tile{ justify-content:space-between; gap:14px; --t:1.3rem; }
.bento .tile-body{ display:block; }
.bento .tile p{ max-width:36ch; }

.bento .t-pc    { grid-column:1 / 7;  grid-row:1 / 3; --t:clamp(2.4rem,1rem + 3.4vw,4.6rem); }
.bento .t-music { grid-column:7 / 10; grid-row:1 / 3; --t:clamp(1.8rem,1rem + 1.8vw,2.8rem); }
.bento .t-tv    { grid-column:10 / 13; grid-row:1;    --t:1.5rem; background:var(--deep); color:var(--field-ink); }
.bento .t-dl    { grid-column:10 / 13; grid-row:2;    --t:1.4rem; background:var(--bg-raised); }
.bento .t-themes{ grid-column:1 / 5;  grid-row:3 / 5; --t:clamp(1.8rem,1rem + 1.8vw,2.8rem); border-radius:22px; }
.bento .t-bay   { grid-column:5 / 9;  grid-row:3;     --t:1.6rem; }
.bento .t-books { grid-column:9 / 13; grid-row:3;     --t:1.5rem; }
.bento .t-yt    { grid-column:5 / 9;  grid-row:4;     --t:1.4rem; background:var(--bg-raised); padding:clamp(18px,1.8vw,26px); }
.bento .t-rom   { grid-column:9 / 13; grid-row:4;     --t:1.4rem; display:flex; flex-direction:column; align-items:stretch; background:var(--bg-sunk); color:var(--ink); border:1px solid var(--line); padding:clamp(18px,1.8vw,26px); }
.bento .t-rom .tile-body{ display:block; }
.bento .t-rom h3{ margin:0 0 6px; color:inherit; }
.bento .t-rom p{ font-size:.92rem; max-width:36ch; }
.bento .t-yt .feat-icon{ position:static; translate:none; width:28px; height:28px; opacity:1; }
.bento .t-yt .tile-body{ padding:0; }

/* tablet: one hero tile, everything else half-width */
@media (max-width:980px){
  .bento{ grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-rows:minmax(180px,auto); }
  .bento .tile,.bento .t-music,.bento .t-tv,.bento .t-dl,.bento .t-themes,.bento .t-bay,.bento .t-books,.bento .t-yt,.bento .t-rom{ grid-column:auto; grid-row:auto; }
  .bento .t-pc{ grid-column:1 / -1; grid-row:auto; min-height:260px; }
}
@media (max-width:560px){
  .bento{ grid-template-columns:1fr; }
  .bento .t-pc{ grid-column:auto; }
}


/* =========================================================================
   Reviews polish
   Hover keeps each card's own colours (it used to inherit a transparent
   background, which put dark ink on the dark page). Lift and shadow have room
   to render, the row fades at its scrolling edges, and there are real controls.
   ========================================================================= */
@property --fade-l{ syntax:"<length>"; inherits:false; initial-value:0px; }
@property --fade-r{ syntax:"<length>"; inherits:false; initial-value:0px; }

.reviews-track{
  padding:28px var(--gutter) 52px;
  margin:-24px calc(var(--gutter) * -1) -38px;
  scroll-snap-type:none;
  scroll-padding-inline:var(--gutter);
  overscroll-behavior-x:contain;
  -webkit-mask-image:linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
          mask-image:linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
  transition:--fade-l .35s var(--ease-out), --fade-r .35s var(--ease-out);
}
@media (pointer:coarse){ .reviews-track{ scroll-snap-type:x proximity; } }
.reviews-track:focus-visible{ outline:none; }
.reviews-track:focus-visible .review-card[data-current]{ outline:2px solid var(--accent); outline-offset:4px; }

.review-card{
  transition:transform .5s var(--ease-out), box-shadow .5s var(--ease-out), opacity .35s var(--ease-out);
  -webkit-tap-highlight-color:transparent;
}
.review-avatar{ -webkit-user-drag:none; user-select:none; flex:none; }
.review-avatar-fallback{
  display:grid; place-items:center; width:56px; height:56px; border-radius:12px; order:3; margin:auto 0 0;
  font:700 1rem/1 var(--font-display); letter-spacing:.02em;
  background:color-mix(in oklch, currentColor 16%, transparent); color:inherit;
}
.review-stars{ flex:none; }
.review-stars.one-star{ color:inherit; background:linear-gradient(90deg, currentColor 20%, color-mix(in oklch, currentColor 26%, transparent) 20%); }

@media (hover:hover){
  .review-card:hover{
    transform:translateY(-6px);
    box-shadow:inset 0 1px 0 oklch(1 0 0 / .16), 0 2px 4px oklch(.1 .15 268 / .28), 0 28px 40px -22px oklch(.1 .15 268 / .8);
  }
  .reviews-track:has(.review-card:hover) .review-card:not(:hover){ opacity:.8; }
}
.reviews-track.is-drag{ cursor:grabbing; user-select:none; }
.reviews-track.is-drag .review-card{ pointer-events:none; transform:none; opacity:1; }

@media (prefers-reduced-motion:reduce){
  .review-card, .reviews-track{ transition:none; }
  .reviews-track:has(.review-card:hover) .review-card:not(:hover){ opacity:1; }
}

/* Sections focused by in-page anchor links: focus moves for keyboard/AT users, no ring on a non-interactive block */
[tabindex="-1"]:focus{ outline:none; }

/* Avatar: soft black shadow falling from the top edge */
.review-avatar-wrap{ position:relative; display:block; flex:none; width:56px; height:56px; order:3; margin:auto 0 0; border-radius:12px; overflow:hidden; }
.review-avatar-wrap::after{ content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  background:linear-gradient(180deg, oklch(0 0 0 / .6) 0, oklch(0 0 0 / .22) 36%, transparent 64%); }
.review-avatar-wrap .review-avatar, .review-avatar-wrap .review-avatar-fallback{ width:100%; height:100%; order:0; margin:0; display:grid; border-radius:0; }

/* Logo: the white glow is now black */
.hero-fan .chest-core img{ filter:drop-shadow(0 0 3px oklch(0 0 0 / .9)) drop-shadow(0 0 16px oklch(0 0 0 / .6)) drop-shadow(0 8px 14px oklch(.1 .15 262 / .5)); }

/* =========================================================================
   Benchmarks: measured table + X/blank feature matrix
   ========================================================================= */
.perf-note code{ font-family:var(--font-mono); font-size:.95em; padding:1px 5px; border-radius:4px; background:var(--bg-sunk); color:var(--ink-dim); }
.table-wrap{ margin-top:10px; border:1px solid var(--line); border-radius:18px; background:var(--bg-raised); overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:thin; }
.bench-table,.compare-table{ width:100%; min-width:620px; border-collapse:collapse; font-size:var(--t-small); }
.bench-table thead th,.compare-table thead th{ padding:14px 16px; text-align:center; font-family:var(--font-mono); font-size:var(--t-micro); font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-faint); border-bottom:1px solid var(--line); }
.bench-table thead th:first-child,.compare-table thead th:first-child{ text-align:left; }
.bench-table tbody th,.bench-table tbody td,.compare-table tbody th,.compare-table tbody td{ padding:13px 16px; border-top:1px solid color-mix(in oklch,var(--line) 55%,transparent); }
.bench-table tbody tr:first-child th,.bench-table tbody tr:first-child td,.compare-table tbody tr:first-child th,.compare-table tbody tr:first-child td{ border-top:0; }
.bench-table tbody th,.compare-table tbody th{ position:sticky; left:0; z-index:1; min-width:220px; text-align:left; font-weight:500; color:var(--ink-dim); background:var(--bg-raised); }
.bench-table tbody td,.compare-table tbody td{ text-align:center; color:var(--ink-dim); font-variant-numeric:tabular-nums; white-space:nowrap; }
.bench-table .is-us,.compare-table .is-us{ background:color-mix(in oklch,var(--sel) 9%,transparent); color:var(--ink); }
.bench-table thead .is-us,.compare-table thead .is-us{ color:var(--ink); }
.x{ display:inline-grid; place-items:center; width:22px; height:22px; border-radius:50%; background:var(--sel); color:var(--sel-ink); font:700 .7rem/1 var(--font-mono); letter-spacing:0; }
.bench-note{ margin-top:14px; max-width:80ch; font-size:var(--t-micro); line-height:1.65; color:var(--ink-faint); }
.bench-note a{ color:var(--ink-dim); text-decoration:underline; text-underline-offset:2px; }
.bench-note a:hover{ color:var(--ink); }
@media (max-width:720px){
  .bench-table,.compare-table{ min-width:560px; font-size:.8rem; }
  .bench-table thead th,.compare-table thead th{ padding:12px 10px; }
  .bench-table tbody th,.bench-table tbody td,.compare-table tbody th,.compare-table tbody td{ padding:11px 10px; }
  .bench-table tbody th,.compare-table tbody th{ min-width:180px; }
}

/* =========================================================================
   Design checklist pass
   ========================================================================= */
/* 15 contrast: faint ink was borderline */
:root{ --ink-faint:oklch(.74 .04 258); }
:root[data-theme="light"]{ --ink-faint:oklch(.45 .06 262); }
.tile p{ opacity:.92; }

/* 4 mono only for code */
.spec-sheet-row span:first-child,.perf-note{ font-family:var(--font-body); }

/* 10 one loud CTA, quiet secondary */
.btn-lg{ height:56px; padding:0 34px; font-size:1.02rem; }
.hero .btn-ghost{ border-color:var(--line); color:var(--ink-dim); }

/* 13 embellishments: off-palette pink/orange stats, extruded 3D numbers, scroll-scale frames */
.stat,.stat-st{ --c:var(--sel) !important; }
.stat-3d{ transform:none !important; }
.stat-num{ transform:none; text-shadow:none !important; }
.stat-label{ transform:none; }
.stat-icon{ animation:none !important; }
.stat-icon svg:not(:first-child){ display:none; }
.stat-icon svg{ transform:none; }
.carousel-viewport,.theme-preview{ animation:none !important; }
.tile:hover{ transform:translateY(-3px); }

/* 14 inner radius = outer radius - padding (24 - 12 = 12) */
.theme-preview{ padding:12px; border-radius:24px; }
.theme-preview img{ border-radius:12px; }

/* 18 tabular numerals wherever digits change or align */
.dock-count,.stat-num,.perf-value,.vb-val,.spec-sheet-row span:last-child,.cmp td{ font-variant-numeric:tabular-nums; }

/* 19 loading states */
@keyframes sk{ to{ background-position:-200% 0; } }
.carousel-slide,.theme-preview img,.review-avatar-wrap{ background:linear-gradient(100deg,var(--bg-sunk) 30%,var(--hover) 50%,var(--bg-sunk) 70%) 0 0/200% 100%; }
.hero-fan .fan-card:not(.is-in){ opacity:.35; }
.hero-fan .fan-card:not(.is-in) .fan-motion{ background:linear-gradient(100deg,var(--bg-raised) 30%,var(--hover) 50%,var(--bg-raised) 70%) 0 0/200% 100%; }
.dock-count:empty::before{ content:""; display:inline-block; width:2ch; height:.8em; border-radius:4px; background:var(--line-strong); vertical-align:middle; }
@media (prefers-reduced-motion:no-preference){
  .carousel-slide,.theme-preview img,.review-avatar-wrap,.hero-fan .fan-card:not(.is-in) .fan-motion{ animation:sk 1.4s linear infinite; }
}

/* 20 press feedback on the controls people actually tap */
.theme-swatch{ transition:transform .12s var(--ease-out),border-color .2s var(--ease-out),color .2s var(--ease-out),background-color .2s var(--ease-out); }
.theme-swatch:active,.carousel-dot:active{ transform:scale(.94); }
.tile:active{ transform:scale(.985); }

/* Hero: the Home screen is a big full-colour card behind everything (headline, buttons, posters, logo), rising from the bottom edge. */
.hero{ isolation:isolate; }
.hero-shot{ position:absolute; z-index:-1; left:50%; bottom:-4%; width:min(62vw,960px); height:auto; aspect-ratio:16/9; object-fit:cover; translate:-50% 0; border-radius:0; box-shadow:0 40px 80px -24px oklch(.1 .15 262 / .8); pointer-events:none; user-select:none; }
@media (prefers-reduced-motion:no-preference){
  .hero-shot{ animation:shot-in 1.2s var(--ease-out) .15s both; }
}
@keyframes shot-in{ from{ translate:-50% 30%; opacity:0; } to{ translate:-50% 0; opacity:1; } }
/* Logo palette: cyan #00C3FF to royal blue #0054FF, tuned per mode */
:root{ --cyan:#00c3ff; --blue:#0054ff; --deep:#0a2a8f; --ice:oklch(.92 .06 225);
  --sel:#00c3ff; --sel-ink:#021326; --accent:#00c3ff; --accent-strong:#5fd8ff; --accent-ink:#021326;
  --coral:#00c3ff; --coral-ink:#021326; --disc:#dff6ff; }
:root[data-theme="light"]{ --sel:#0054ff; --sel-ink:#ffffff; --accent:#0054ff; --accent-strong:#0043cc; --accent-ink:#ffffff;
  --coral:#0054ff; --coral-ink:#ffffff; --deep:#0a2a8f; --ice:oklch(.93 .05 225); --disc:#cfeeff; }
.bento .t-pc{ background:linear-gradient(180deg,#00c3ff,#0054ff); }
.perf-bar.is-us,.vb-bar.vb-us{ background:linear-gradient(180deg,#00c3ff,#0054ff); }

/* Screenshot: full colour, no fade. Text stays legible with a crisp outline in the page colour (no blur, no box). */
.hero-shot{ box-shadow:none; -webkit-mask-image:none; mask-image:none; }
.hero-copy h1,.hero-copy .hero-sub{ paint-order:stroke fill; -webkit-text-stroke:var(--so,10px) var(--bg); text-shadow:none; }
.hero-copy .hero-sub{ --so:5px; color:var(--ink); font-weight:560; }
.hero .btn-ghost{ background:var(--bg); color:var(--ink); border-color:var(--line-strong); }

/* Site-wide: surfaces, lines and ink tinted to the logo's cyan-to-royal-blue range (hue 235-262) */
:root{
  --bg:oklch(.15 .065 262); --bg-raised:oklch(.205 .085 262); --bg-sunk:oklch(.115 .055 262); --hover:oklch(.27 .1 260);
  --ink:oklch(.975 .012 235); --ink-dim:oklch(.82 .045 240); --ink-faint:oklch(.72 .06 245);
  --line:oklch(.36 .1 258 / .6); --line-strong:oklch(.52 .15 252 / .75); --dock-bg:oklch(.15 .065 262 / .82);
  --glow2:rgb(0 84 255 / .4);
}
:root[data-theme="light"]{
  --bg:oklch(.985 .012 235); --bg-raised:oklch(.955 .03 238); --bg-sunk:oklch(.925 .045 242); --hover:oklch(.9 .06 245);
  --ink:oklch(.2 .09 262); --ink-dim:oklch(.37 .11 262); --ink-faint:oklch(.46 .12 262);
  --line:oklch(.85 .05 240); --line-strong:oklch(.68 .12 250); --dock-bg:oklch(.985 .012 235 / .85);
  --glow2:rgb(0 195 255 / .28);
}
body::before{ background:radial-gradient(75% 50% at 50% -8%, var(--glow2), transparent 72%), var(--bg); }
.bento .t-tv,.bento .t-books{ background:linear-gradient(180deg,#0a46d6,#0a2a8f); color:#fff; }
.bento .t-bay{ background:var(--ink); color:var(--bg); }
.review-card:nth-child(3n+1){ background:linear-gradient(180deg,#0070ff,#0054ff); }
.stat{ --c:var(--sel) !important; }

/* Hero composition: headline and CTA on clean ground, the Home screen below them as a full-colour window,
   with the poster row and logo overlapping its lower edge. Nothing sits on top of the screenshot except the posters. */
.hero-copy h1,.hero-copy .hero-sub{ -webkit-text-stroke:0; paint-order:normal; text-shadow:none; }
.hero-copy .hero-sub{ font-weight:inherit; color:var(--ink-dim); }
.hero .btn-ghost{ background:transparent; color:var(--ink); border-color:var(--line-strong); }
.hero-fan{ margin-top:calc(clamp(18px,3svh,36px) + var(--ch) * 1.4); }
.hero-shot{ top:calc(var(--ch) * -1.35); width:min(66vw,1000px); bottom:auto; border-radius:0; box-shadow:0 0 0 1px var(--line-strong), 0 40px 70px -30px oklch(.08 .1 262 / .85); }

/* Hero ground: the brand gradient from the logo lockup. Bright cyan at the top, royal blue through the middle, light edges at the bottom corners. Same in both modes. */
.hero{ background:
    radial-gradient(55% 40% at 4% 104%, #5cc2ff 0%, transparent 72%),
    radial-gradient(55% 40% at 96% 104%, #5cc2ff 0%, transparent 72%),
    linear-gradient(180deg,#55d0ff 0%,#2fa8ff 26%,#0a74ff 55%,#0058f0 80%,#0a63f6 100%);
  color:#fff; border-bottom:0; }
.hero .brand,.hero-links a,.hero h1.hero-title{ color:#fff; }
.hero-links a{ opacity:.92; } .hero-links a:hover{ opacity:1; }
.hero .hero-sub,.hero-copy .hero-sub{ color:rgb(255 255 255 / .92); }
:root .hero .btn-primary,:root[data-theme="light"] .hero .btn-primary{ background:#fff; color:#0054ff; box-shadow:0 10px 24px -10px rgb(0 30 120 / .6); }
:root .hero .btn-primary:hover,:root[data-theme="light"] .hero .btn-primary:hover{ background:#eaf7ff; }
.hero .btn-ghost{ color:#fff; border-color:rgb(255 255 255 / .6); background:transparent; }
.hero .btn-ghost:hover{ background:rgb(255 255 255 / .14); border-color:#fff; }
.hero :focus-visible{ outline-color:#fff; }
.hero-fan .chest-core img{ filter:brightness(0) invert(1) drop-shadow(0 6px 14px rgb(0 20 90 / .5)); }

/* =========================================================================
   Site-wide brand gradient. One continuous cyan -> royal blue ground for the whole page, a deeper
   or brighter variant per mode, tiny drift in a fixed layer (transform only, so it stays cheap).
   ========================================================================= */
:root{ --g1:#3fb8f5; --g2:#1f8cf0; --g3:#0a5fe0; --g4:#0a47c0; --g5:#0a37a0; }
:root[data-theme="light"]{ --g1:#66d6ff; --g2:#3bb0ff; --g3:#1480ff; --g4:#0a62f0; --g5:#0a52d8; }
:root,:root[data-theme="light"]{
  --bg:#0a5fe0; --bg-raised:rgb(255 255 255 / .12); --bg-sunk:rgb(0 20 90 / .28); --hover:rgb(255 255 255 / .2);
  --ink:#fff; --ink-dim:rgb(255 255 255 / .86); --ink-faint:rgb(255 255 255 / .72);
  --line:rgb(255 255 255 / .24); --line-strong:rgb(255 255 255 / .5); --dock-bg:rgb(4 28 110 / .6);
  --accent:#fff; --accent-strong:#dff4ff; --accent-ink:#0054ff;
  --sel:#fff; --sel-ink:#0054ff; --coral:#fff; --coral-ink:#0054ff; --gold:#fff; --gold-ink:#0054ff; --disc:#dff6ff;
  --ice:#e6f7ff; --deep:#0a2a8f; color-scheme:dark;
}
html{ background:var(--g5); }
body{ background:linear-gradient(180deg,var(--g1) 0,var(--g2) 700px,var(--g3) 1700px,var(--g4) 3400px,var(--g5) 100%); }
body::before{ inset:-10%; background:
    radial-gradient(38% 28% at 18% 18%, rgb(130 225 255 / .30), transparent 70%),
    radial-gradient(42% 32% at 82% 72%, rgb(0 70 230 / .38), transparent 70%); will-change:transform; }
@media (prefers-reduced-motion:no-preference){
  body::before{ animation:ground-drift 30s ease-in-out infinite alternate; }
}
@keyframes ground-drift{ from{ transform:translate3d(-2%,1.5%,0); } to{ transform:translate3d(2%,-1.5%,0); } }
/* small variance: every other section sits a touch deeper */
main > section:nth-of-type(even):not(.hero){ background:rgb(0 25 100 / .1); }
.hero{ background:none; }
.hero-links a{ color:#fff; }
.btn-ghost{ color:#fff; border-color:var(--line-strong); }
.theme-swatch.is-active,.carousel-cap{ color:#0054ff; background:#fff; border-color:#fff; }
.carousel-dot[aria-selected="true"]{ background:#fff; }

/* =========================================================================
   Compact hero: one line headline, tighter gaps, smaller posters, so nav, copy, CTA, the Home
   window and the poster row all fit in the first screen.
   ========================================================================= */
.hero-nav{ padding:14px 0; }
h1.hero-title{ max-width:none; font-size:clamp(2.2rem,1rem + 3.4vw,4.2rem); line-height:1; }
.hero-copy{ gap:10px; padding-top:0; }
.hero-sub{ font-size:.98rem; max-width:62ch; }
.hero-actions{ margin-top:2px; }
.hero-fan{ --cw:clamp(78px,min(7vw,13svh),160px); margin-top:calc(clamp(14px,2svh,24px) + var(--ch) * 1.55); }
.hero-shot{ top:calc(var(--ch) * -1.5); width:min(60vw,940px); }

/* =========================================================================
   Real dark and light modes on the same brand gradient.
   Dark: deep navy-blue ground, white ink, cyan accent. Light: pale sky ground, navy ink, royal-blue accent.
   ========================================================================= */
:root{
  --g1:#0b5aa8; --g2:#08408f; --g3:#062c7e; --g4:#051f64; --g5:#040f3c; --b1:rgb(0 195 255 / .2); --b2:rgb(0 84 255 / .32);
  --bg:#062c7e; --bg-raised:rgb(255 255 255 / .08); --bg-sunk:rgb(0 8 40 / .38); --hover:rgb(255 255 255 / .15);
  --ink:#fff; --ink-dim:rgb(255 255 255 / .84); --ink-faint:rgb(255 255 255 / .68);
  --line:rgb(130 200 255 / .24); --line-strong:rgb(130 205 255 / .5); --dock-bg:rgb(4 20 80 / .72);
  --accent:#00c3ff; --accent-strong:#5fd8ff; --accent-ink:#021326; --sel:#00c3ff; --sel-ink:#021326;
  --coral:#00c3ff; --coral-ink:#021326; --gold:#00c3ff; --gold-ink:#021326; --disc:#dff6ff; --ice:#e6f7ff; color-scheme:dark;
}
:root[data-theme="light"]{
  --g1:#d9f5ff; --g2:#b8e6ff; --g3:#92cdff; --g4:#70b0ff; --g5:#5497ff; --b1:rgb(255 255 255 / .55); --b2:rgb(0 120 255 / .22);
  --bg:#b8e6ff; --bg-raised:rgb(255 255 255 / .62); --bg-sunk:rgb(0 60 160 / .09); --hover:rgb(255 255 255 / .85);
  --ink:#04184f; --ink-dim:rgb(4 24 79 / .82); --ink-faint:rgb(4 24 79 / .72);
  --line:rgb(4 24 79 / .16); --line-strong:rgb(4 24 79 / .4); --dock-bg:rgb(255 255 255 / .75);
  --accent:#0054ff; --accent-strong:#0043cc; --accent-ink:#fff; --sel:#0054ff; --sel-ink:#fff;
  --coral:#0054ff; --coral-ink:#fff; --gold:#0054ff; --gold-ink:#fff; --disc:#cfeeff; --ice:#fff; color-scheme:light;
}
body::before{ background:radial-gradient(38% 28% at 18% 18%, var(--b1), transparent 70%), radial-gradient(42% 32% at 82% 72%, var(--b2), transparent 70%); }
main > section:nth-of-type(even):not(.hero){ background:rgb(0 25 100 / .12); }
:root[data-theme="light"] main > section:nth-of-type(even):not(.hero){ background:rgb(255 255 255 / .3); }

/* ink and accent follow the mode again (earlier hero rules had forced white) */
.hero .brand,.hero-links a,.hero h1.hero-title,.hero-links a:hover{ color:var(--ink); }
.hero .hero-sub,.hero-copy .hero-sub{ color:var(--ink-dim); }
:root .hero .btn-primary,:root[data-theme="light"] .hero .btn-primary{ background:var(--coral); color:var(--coral-ink); box-shadow:0 10px 24px -10px rgb(0 20 90 / .55); }
:root .hero .btn-primary:hover,:root[data-theme="light"] .hero .btn-primary:hover{ background:var(--accent-strong); }
.btn-ghost,.hero .btn-ghost{ color:var(--ink); border-color:var(--line-strong); background:transparent; }
.btn-ghost:hover,.hero .btn-ghost:hover{ background:var(--hover); border-color:var(--ink); }
.hero :focus-visible{ outline-color:var(--sel); }
.theme-swatch.is-active,.carousel-cap{ color:var(--sel-ink); background:var(--sel); border-color:var(--sel); }
.carousel-dot[aria-selected="true"]{ background:var(--sel); }
.hero-fan .chest-core img{ filter:brightness(0) invert(1) drop-shadow(0 6px 14px rgb(0 20 90 / .5)); }
:root[data-theme="light"] .hero-fan .chest-core img{ filter:drop-shadow(0 6px 14px rgb(0 40 140 / .35)); }

/* footer wordmark was dark blue on dark blue */
.pc-footer::before{ color:var(--ink); opacity:.16; }

/* =========================================================================
   One look. Brand gradient ground, white ink, glass cards. No light/dark switch.
   ========================================================================= */
:root{
  --g1:#1ba3ff; --g2:#0b7bff; --g3:#0a5ef0; --g4:#0a46d0; --g5:#082f9c; --b1:rgb(140 230 255 / .28); --b2:rgb(0 50 200 / .35);
  --bg:#0a5ef0; --bg-raised:rgb(255 255 255 / .12); --bg-sunk:rgb(0 15 80 / .3); --hover:rgb(255 255 255 / .2);
  --ink:#fff; --ink-dim:rgb(255 255 255 / .92); --ink-faint:rgb(255 255 255 / .78);
  --line:rgb(255 255 255 / .26); --line-strong:rgb(255 255 255 / .55); --dock-bg:rgb(6 40 150 / .7);
  --accent:#fff; --accent-strong:#e3f6ff; --accent-ink:#0054ff; --sel:#fff; --sel-ink:#0054ff;
  --coral:#fff; --coral-ink:#0054ff; --gold:#fff; --gold-ink:#0054ff; --disc:#e3f6ff; --ice:#eaf8ff; color-scheme:dark;
}
.hero-sub,.hero-copy .hero-sub{ font-weight:500; }
.tile{ box-shadow:inset 0 1px 0 rgb(255 255 255 / .22), 0 22px 44px -26px rgb(0 20 100 / .7); }
main > section:nth-of-type(even):not(.hero){ background:rgb(0 20 100 / .14); }

/* =========================================================================
   Polish pass: one logo in the nav, none on the cards, no hard colour bands, soft hero exit
   ========================================================================= */
.brand{ display:inline-flex; align-items:center; line-height:0; }
.brand img{ height:38px; width:auto; display:block; filter:brightness(0) invert(1); transition:transform .25s var(--ease-out); }
.brand:hover img{ transform:scale(1.06); }
.chest-core{ display:none !important; }

/* the gradient is the only ground: no stepped bands between sections */
main > section:nth-of-type(even):not(.hero),.theme-section{ background:none; }
.privacy-section{ background:none; color:var(--ink); box-shadow:0 0 0 100vmax rgb(255 255 255 / .1); }
.privacy-section .section-head p,.privacy-note,.privacy-section .manifest-body p{ color:var(--ink-dim); opacity:1; }

/* posters fade into the page instead of being sliced by the hero edge */
.hero{ -webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 110px),transparent 100%); mask-image:linear-gradient(to bottom,#000 calc(100% - 110px),transparent 100%); }

/* Montserrat everywhere, to match the PiraChest banner in the app. Variable weight 100-900. */
@font-face{ font-family:"Montserrat"; src:url(fonts/montserrat.woff2) format("woff2"); font-weight:100 900; font-display:swap; 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:"Montserrat"; src:url(fonts/montserrat-ext.woff2) format("woff2"); font-weight:100 900; font-display:swap; unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
:root{ --font-display:"Montserrat","Segoe UI",system-ui,sans-serif; --font-body:"Montserrat","Segoe UI",system-ui,sans-serif; }
h1.hero-title{ letter-spacing:-.025em; font-weight:800; }
