/* ORZENO — Design 3 "Prism": Web3-native, collectible, luminous.
   Tokens: primitive -> semantic -> component. Raw colour values live only in the primitive block. */

@property --ang {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

:root {
  /* primitive — client ORZENO tokens */
  --p-midnight: #08111f;
  --p-navy: #102039;
  --p-elevated: #152b43;
  --p-blue: #3a8dff;
  --p-cta: #1f69d0;
  --p-cyan: #2ed3e6;
  --p-frost: #f3f7fd;
  --p-amber: #f2b24c;
  /* primitive — Prism additions */
  --p-violet: #8b6cff;
  --p-gold: #d7b56d;
  --p-ink: #050b15;
  --p-fog: #aebbd0;
  /* primitive — the same colours as channels, for alpha */
  --ch-midnight: 8 17 31;
  --ch-navy: 16 32 57;
  --ch-elevated: 21 43 67;
  --ch-blue: 58 141 255;
  --ch-cyan: 46 211 230;
  --ch-frost: 243 247 253;
  --ch-amber: 242 178 76;
  --ch-violet: 139 108 255;
  --ch-gold: 215 181 109;
  --ch-ink: 5 11 21;

  /* semantic */
  --bg: var(--p-midnight);
  --surface: rgb(var(--ch-navy) / 0.78);
  --surface-solid: var(--p-navy);
  --surface-hi: rgb(var(--ch-elevated) / 0.9);
  --glass: rgb(var(--ch-frost) / 0.055);
  --text: var(--p-frost);
  --muted: var(--p-fog);
  --line: rgb(var(--ch-frost) / 0.12);
  --line-hi: rgb(var(--ch-frost) / 0.24);
  --action: var(--p-cta);
  --on-action: var(--p-frost);
  --on-bright: var(--p-ink);
  --warn: var(--p-amber);
  --accent: var(--p-cyan);
  --flag: var(--p-gold);
  --focus: var(--p-cyan);
  --grad: linear-gradient(100deg, var(--p-cyan), var(--p-blue) 52%, var(--p-violet));
  --holo: conic-gradient(
    from var(--ang),
    var(--p-cyan),
    var(--p-blue),
    var(--p-violet),
    var(--p-gold),
    var(--p-cyan)
  );

  --font-display: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'DM Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --gutter: clamp(18px, 4vw, 40px);
  --sec-y: clamp(72px, 9vw, 132px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur: 240ms;

  /* component */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-pill: 999px;
  --btn-h: 52px;
  --header-h: 70px;
  --mono-size: 0.7188rem;
  --card-w: 240px;
  --card-h: 330px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0313rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* static nebula: never animated, so frosted panels above it stay cheap to paint */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(42% 36% at 14% 6%, rgb(var(--ch-violet) / 0.34), transparent 70%),
    radial-gradient(38% 34% at 88% 16%, rgb(var(--ch-cyan) / 0.2), transparent 70%),
    radial-gradient(46% 40% at 76% 92%, rgb(var(--ch-blue) / 0.26), transparent 70%),
    radial-gradient(36% 32% at 8% 84%, rgb(var(--ch-violet) / 0.18), transparent 70%),
    radial-gradient(rgb(var(--ch-frost) / 0.5) 1px, transparent 1.4px) 0 0 / 140px 140px,
    radial-gradient(rgb(var(--ch-frost) / 0.28) 1px, transparent 1.2px) 60px 90px / 190px 190px;
  pointer-events: none;
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
svg {
  display: block;
}
em {
  font-style: normal;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 8px;
}
::selection {
  background: var(--p-cyan);
  color: var(--on-bright);
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.i {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.shell {
  width: min(1240px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  background: var(--p-frost);
  color: var(--on-bright);
  font-weight: 700;
}
.skip:focus {
  top: 12px;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.08em;
}
.num,
.label,
.tag,
.pos,
.util,
.surface-no,
.surface-foot,
.also-label,
.foot-note,
.panel-bar,
.panel-foot,
.tabs-hint,
.fig-bar,
.move-no,
.side-for,
.reviewed,
.begin-small,
.footer-bottom,
.footer-col h2,
.stack-status,
.pause,
.switch,
.mobile-note {
  font-family: var(--font-mono);
  font-size: var(--mono-size);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* utility strip */
.util {
  border-bottom: 1px solid var(--line);
  background: rgb(var(--ch-midnight) / 0.9);
  color: var(--muted);
}
.util-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px 24px;
  flex-wrap: wrap;
  padding-block: 8px;
}
.util-r {
  display: flex;
  align-items: center;
  gap: 6px 22px;
  flex-wrap: wrap;
}
.util a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 2px 12px;
  border: 1px solid var(--line-hi);
  border-radius: var(--r-pill);
  color: var(--text);
  transition:
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}
.util a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.warn-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--warn);
  vertical-align: middle;
}

/* header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(var(--ch-midnight) / 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.header-in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.logo-mark {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linejoin: round;
  transition: transform 600ms var(--ease);
}
.logo-mark path:last-child {
  fill: rgb(var(--ch-violet) / 0.7);
  stroke: var(--p-frost);
  stroke-width: 1;
}
.logo:hover .logo-mark {
  transform: rotate(90deg);
}
.logo strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.3em;
}
.nav {
  display: flex;
  gap: 2px;
  margin-inline: auto;
}
.nav a {
  padding: 9px 13px;
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition:
    color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}
.nav a:hover,
.nav a.is-active {
  color: var(--text);
  background: var(--glass);
}
.nav a.is-active {
  box-shadow: inset 0 0 0 1px var(--line-hi);
}
.menu-btn {
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-left: auto;
  border: 1px solid var(--line-hi);
  border-radius: 14px;
}
.menu-btn .i {
  width: 22px;
  height: 22px;
}
.menu-btn .i--close,
.menu-btn[aria-expanded='true'] .i--open {
  display: none;
}
.menu-btn[aria-expanded='true'] .i--close {
  display: block;
}
.mobile-panel {
  padding: 6px var(--gutter) 24px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
}
.mobile-panel li a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}
.mobile-panel li span {
  font-family: var(--font-mono);
  font-size: var(--mono-size);
  color: var(--accent);
}
.mobile-panel .btn {
  width: 100%;
  margin-top: 20px;
}
.mobile-note {
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.7;
}

/* buttons, links, tags */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-h);
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}
.btn .i,
.link .i {
  transition: transform var(--dur) var(--ease);
}
.btn:hover .i,
.link:hover .i {
  transform: translateX(4px);
}
.btn:active {
  transform: scale(0.97);
}
.btn--sm {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.9rem;
}
.btn--primary {
  background: var(--action);
  color: var(--on-action);
  box-shadow:
    inset 0 1px 0 rgb(var(--ch-frost) / 0.3),
    0 12px 32px -12px rgb(var(--ch-blue) / 0.9);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgb(var(--ch-frost) / 0.3),
    0 0 0 4px rgb(var(--ch-cyan) / 0.22),
    0 18px 44px -12px rgb(var(--ch-violet) / 0.95);
}
.btn--ghost {
  border-color: var(--line-hi);
  background: var(--glass);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn--ink {
  background: var(--on-bright);
  color: var(--p-frost);
}
.btn--ink:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -14px rgb(var(--ch-ink) / 0.9);
}
.btn--ink-line {
  border-color: var(--on-bright);
  color: var(--on-bright);
}
.btn--ink-line:hover {
  background: var(--on-bright);
  color: var(--p-frost);
}
.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 700;
  color: var(--accent);
}
.link:hover {
  color: var(--p-frost);
}
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 1px 10px;
  border: 1px solid var(--line-hi);
  border-radius: var(--r-pill);
  color: var(--text);
  white-space: nowrap;
  letter-spacing: 0.1em;
}
.tag--soft {
  border-color: rgb(var(--ch-cyan) / 0.5);
  color: var(--accent);
}
.pos {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.pos::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.pos--flag {
  color: var(--flag);
}
.pos--flag::before {
  border-radius: 1px;
  background: var(--flag);
  transform: rotate(45deg);
}
.num {
  color: var(--accent);
  letter-spacing: 0.06em;
}
.label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
}
.label .i {
  width: 14px;
  height: 14px;
  fill: var(--accent);
  stroke: none;
}
.label--ink,
.label--ink .i {
  color: var(--on-bright);
  fill: var(--on-bright);
}

/* frosted panels (only a handful of large ones) and holographic borders */
.glass {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgb(var(--ch-frost) / 0.09), rgb(var(--ch-frost) / 0.03));
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  backdrop-filter: blur(16px) saturate(1.25);
  box-shadow:
    inset 0 1px 0 rgb(var(--ch-frost) / 0.14),
    0 34px 70px -44px rgb(var(--ch-ink) / 0.95);
}
.holo {
  position: relative;
}
.holo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1px;
  border-radius: inherit;
  background: var(--holo);
  -webkit-mask:
    linear-gradient(var(--p-ink) 0 0) content-box,
    linear-gradient(var(--p-ink) 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(var(--p-ink) 0 0) content-box,
    linear-gradient(var(--p-ink) 0 0);
  mask-composite: exclude;
  opacity: 0.42;
  transition: opacity 320ms var(--ease);
  pointer-events: none;
}
.holo:hover::before,
.holo:focus-within::before {
  opacity: 1;
  animation: shimmer 3.2s linear infinite;
}
@keyframes shimmer {
  to {
    --ang: 360deg;
  }
}

/* hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(36px, 5vw, 72px);
}
.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 4.5vw, 56px);
  align-items: center;
}
h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 5vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}
h1 span {
  display: block;
}
.js h1 span {
  animation: rise 900ms var(--ease) both;
}
.js h1 span:nth-child(2) {
  animation-delay: 110ms;
}
.js h1 span:nth-child(3) {
  animation-delay: 220ms;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.45em);
  }
}
.hero-body {
  margin-top: clamp(20px, 2.4vw, 30px);
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  color: var(--muted);
  max-width: 50ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.marks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.marks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 4px 14px 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--glass);
  font-size: 0.875rem;
  font-weight: 500;
}
.marks .i,
.checks .i {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

/* collectible card stack */
.stack {
  position: relative;
  perspective: 1200px;
  border-radius: var(--r-lg);
}
.stack-float {
  animation: float 7s ease-in-out infinite alternate;
}
@keyframes float {
  to {
    transform: translateY(-12px);
  }
}
.deck {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  height: calc(var(--card-h) + 90px);
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 420ms var(--ease);
}
.pcard {
  --x: 0px;
  --y: 0px;
  --z: 0px;
  --r: 0deg;
  --dim: 1;
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  flex-direction: column;
  width: var(--card-w);
  height: var(--card-h);
  margin: calc(var(--card-h) / -2) 0 0 calc(var(--card-w) / -2);
  padding: 12px 14px 16px;
  border-radius: var(--r-lg);
  background: linear-gradient(170deg, var(--p-elevated), var(--p-navy) 70%);
  box-shadow: 0 30px 60px -28px rgb(var(--ch-ink) / 0.95);
  transform-origin: 50% 100%;
  transform: translate3d(var(--x), var(--y), var(--z)) rotate(var(--r));
  filter: brightness(var(--dim));
  cursor: pointer;
  transition:
    transform 620ms var(--ease),
    filter 620ms var(--ease);
}
.pcard[data-pos='0'] {
  --z: 70px;
  z-index: 7;
  cursor: default;
  box-shadow:
    0 40px 80px -30px rgb(var(--ch-ink) / 0.95),
    0 0 70px -20px rgb(var(--ta) / 0.75);
}
.pcard[data-pos='1'] {
  --x: 34px;
  --y: -6px;
  --z: 34px;
  --r: 6deg;
  z-index: 6;
}
.pcard[data-pos='2'] {
  --x: -34px;
  --y: -6px;
  --z: 10px;
  --r: -6deg;
  z-index: 5;
}
.pcard[data-pos='3'] {
  --x: 62px;
  --y: 2px;
  --z: -20px;
  --r: 11deg;
  --dim: 0.8;
  z-index: 4;
}
.pcard[data-pos='4'] {
  --x: -62px;
  --y: 2px;
  --z: -44px;
  --r: -11deg;
  --dim: 0.8;
  z-index: 3;
}
.pcard[data-pos='5'] {
  --x: 86px;
  --y: 12px;
  --z: -72px;
  --r: 16deg;
  --dim: 0.62;
  z-index: 2;
}
.pcard[data-pos='6'] {
  --x: -86px;
  --y: 12px;
  --z: -96px;
  --r: -16deg;
  --dim: 0.62;
  z-index: 1;
}
.tile {
  flex: 1;
  min-height: 0;
  border-radius: 16px;
  background:
    radial-gradient(90% 90% at 12% 8%, rgb(var(--ta) / 0.85), transparent 62%),
    radial-gradient(80% 90% at 96% 100%, rgb(var(--tb) / 0.8), transparent 64%),
    linear-gradient(rgb(var(--ch-frost) / 0.1) 1px, transparent 1px) 0 0 / 100% 18px,
    var(--p-midnight);
  overflow: hidden;
}
.tile svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--p-frost);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tile .dash {
  stroke-dasharray: 4 7;
  opacity: 0.7;
}
.tile .solid {
  fill: var(--p-frost);
}
.tile .bar {
  stroke-width: 9;
  stroke-linecap: butt;
}
.tile .bar--b {
  opacity: 0.55;
}
.pcard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}
.pcard-name {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.pcard-name a:hover {
  color: var(--accent);
}
.pcard .pos {
  margin-top: 6px;
}
.stack-ctrl {
  position: relative;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 4px;
}
.round {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-hi);
  border-radius: 50%;
  background: var(--surface);
  transition:
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.round:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.06);
}
.stack-status {
  min-width: 15em;
  text-align: center;
  color: var(--muted);
}

/* hero surfaces */
.surfaces {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(40px, 5vw, 64px);
}
.surface {
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: var(--r-lg);
}
.surface-no {
  color: var(--accent);
}
.surface h2 {
  margin-top: 14px;
  font-size: clamp(1.5rem, 2.2vw, 1.95rem);
}
.surface > p:not(.surface-no, .surface-foot) {
  margin-block: 12px 22px;
  color: var(--muted);
  font-size: 0.97rem;
}
.mini {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgb(var(--ch-midnight) / 0.5);
  font-family: var(--font-mono);
  font-size: var(--mono-size);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.surface .mini {
  margin-top: auto;
}
.mini-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 10px;
}
.mini-row i {
  font-style: normal;
}
.mini-row b {
  height: 8px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, rgb(var(--ch-cyan) / 0.8), rgb(var(--ch-violet) / 0.25));
}
.mini-row .w2 {
  width: 72%;
}
.mini-row .w3 {
  width: 48%;
}
.mini--rules,
.mini--order {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.mini--rules span,
.mini--order span {
  padding: 6px 12px;
  border: 1px solid var(--line-hi);
  border-radius: var(--r-pill);
  color: var(--text);
}
.mini--rules .i {
  width: 14px;
  height: 14px;
  color: var(--accent);
}
.mini--order .on {
  border-color: var(--accent);
  color: var(--accent);
}
.mini--order .dashes {
  flex: 1;
  min-width: 48px;
  text-align: center;
  border-style: dashed;
  color: var(--muted);
}
.surface-foot {
  margin-top: 14px;
  color: var(--muted);
}
.hero-foot {
  display: flex;
  justify-content: flex-start;
  padding-block: 22px;
}
.pause {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-hi);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--dur) var(--ease);
}
.pause:hover {
  border-color: var(--accent);
}
.pause i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.6s ease-in-out infinite;
}
.pause[aria-pressed='true'] i {
  border-radius: 1px;
  background: var(--muted);
  animation: none;
}
@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

/* ticker */
.ticker {
  border-block: 1px solid var(--line);
  background: rgb(var(--ch-midnight) / 0.55);
  overflow: hidden;
}
.ticker-track {
  display: flex;
  gap: 12px;
  width: max-content;
  padding: 14px 6px;
  animation: marquee 44s linear infinite;
}
.ticker:hover .ticker-track {
  animation-play-state: paused;
}
.ticker span {
  padding: 8px 20px;
  border: 1px solid var(--line-hi);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-family: var(--font-display);
  font-weight: 500;
  white-space: nowrap;
}
.ticker span:nth-child(3n + 1) {
  border-color: rgb(var(--ch-cyan) / 0.55);
}
.ticker span:nth-child(3n + 2) {
  border-color: rgb(var(--ch-violet) / 0.6);
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* sections */
.sec {
  position: relative;
  padding-block: var(--sec-y);
}
.head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 22px 56px;
  align-items: end;
  margin-bottom: clamp(34px, 4.6vw, 56px);
}
h2,
h3 {
  font-family: var(--font-display);
}
h2 {
  font-weight: 700;
  font-size: clamp(1.9rem, 3.8vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h3 {
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.aside {
  color: var(--muted);
  max-width: 46ch;
}
.aside .link {
  margin-top: 8px;
}
.foot-note {
  margin-top: 24px;
  color: var(--muted);
  line-height: 1.8;
}

/* flagship cards */
.flags {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.flag,
.cell,
.side {
  border-radius: var(--r-lg);
  background:
    radial-gradient(80% 70% at 100% 0%, rgb(var(--ta, var(--ch-blue)) / 0.26), transparent 70%), var(--surface);
  transition: transform 320ms var(--ease);
}
.flag {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.6vw, 32px);
}
.flag:hover,
.cell:hover,
.side:hover {
  transform: translateY(-6px);
}
.flag-top {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: var(--mono-size);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.flag h3 {
  margin-top: 18px;
  font-size: clamp(1.5rem, 2.3vw, 2rem);
}
.flag > p:not(.flag-top) {
  margin-top: 12px;
  color: var(--muted);
}
.checks {
  display: grid;
  gap: 10px;
  margin-block: 20px 12px;
}
.checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 500;
}
.checks .i {
  margin-top: 5px;
}
.flag .link {
  margin-top: auto;
}
.also {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px 24px;
  margin-top: 22px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.also-label {
  color: var(--muted);
}
.also ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.also a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-hi);
  border-radius: var(--r-pill);
  font-weight: 500;
  transition:
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}
.also a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.also .i {
  color: var(--accent);
}

/* platform tour */
.window {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.tabs {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 14px;
  border-right: 1px solid var(--line);
}
.tabs button {
  display: flex;
  gap: 14px;
  align-items: baseline;
  min-height: 72px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  text-align: left;
  color: var(--muted);
  transition:
    background-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}
.tabs .t {
  display: grid;
  gap: 2px;
}
.tabs b {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
}
.tabs small {
  font-size: 0.85rem;
}
.tabs button:hover {
  color: var(--text);
}
.tabs button[aria-selected='true'] {
  background: rgb(var(--ch-frost) / 0.09);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgb(var(--ch-cyan) / 0.5);
}
.tabs-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 0 6px;
  color: var(--muted);
  letter-spacing: 0.08em;
  line-height: 1.6;
}
.tabs-hint .i {
  width: 14px;
  height: 14px;
}
.panels,
.hero-copy,
.faq-copy {
  min-width: 0;
}
.panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.panel[hidden] {
  display: none;
}
.panel + .panel {
  border-top: 1px solid var(--line);
}
.js .panel + .panel {
  border-top: 0;
}
.js .panel:not([hidden]) {
  animation: panel-in 480ms var(--ease);
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
.panel-bar,
.panel-foot,
.fig-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  flex-wrap: wrap;
  padding: 14px 20px;
  color: var(--muted);
  line-height: 1.7;
}
.panel-bar,
.fig-bar {
  border-bottom: 1px solid var(--line);
}
.panel-foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
}
.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
}
.ui-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgb(var(--ch-midnight) / 0.55);
}
.ui-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.ui-head b {
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.rows > div {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
.rows > div:last-child {
  border-bottom: 0;
}
.rows dt,
.side-notes dt,
.steps-list span,
.ctrls small,
.review small {
  font-family: var(--font-mono);
  font-size: var(--mono-size);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.rows dd {
  font-size: 0.95rem;
}
.rows--rules dt {
  color: var(--accent);
}
.rows--order dd {
  font-family: var(--font-mono);
  font-size: 0.9rem;
}
.toggle {
  display: flex;
  gap: 6px;
}
.toggle span {
  padding: 3px 14px;
  border: 1px solid var(--line-hi);
  border-radius: var(--r-pill);
  color: var(--muted);
}
.toggle .on {
  border-color: var(--accent);
  color: var(--accent);
}
.steps-list,
.side-notes {
  display: grid;
  align-content: start;
  gap: 12px;
}
.steps-list li,
.side-notes > div {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: var(--r-sm);
  background: rgb(var(--ch-frost) / 0.035);
}
.steps-list li:nth-child(2),
.side-notes > div:nth-child(2) {
  border-left-color: var(--p-blue);
}
.steps-list li:nth-child(3),
.side-notes > div:nth-child(3) {
  border-left-color: var(--p-violet);
}
.steps-list b {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.steps-list p,
.side-notes dd {
  margin-top: 2px;
  font-size: 0.93rem;
  color: var(--muted);
}
.ctrls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}
.ctrls span {
  padding: 7px 16px;
  border: 1px dashed var(--line-hi);
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}
.ctrls small {
  margin-left: auto;
}
.review {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}
.review button {
  min-height: 44px;
  padding: 0 20px;
  border: 1px dashed var(--line-hi);
  border-radius: var(--r-pill);
  font-weight: 700;
  color: var(--muted);
  cursor: not-allowed;
}
.depth {
  width: 100%;
  height: auto;
  padding: 10px 14px 12px;
  fill: none;
}
.depth-a,
.depth-b {
  stroke-width: 13;
}
.depth-a {
  stroke: rgb(var(--ch-cyan) / 0.75);
}
.depth-b {
  stroke: rgb(var(--ch-violet) / 0.8);
}
.depth-mid {
  stroke: var(--p-frost);
  stroke-dasharray: 3 5;
  opacity: 0.7;
}
.depth text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  fill: var(--muted);
}
.callout {
  margin: 0 20px 20px;
  padding: 12px 16px;
  border-left: 2px solid var(--warn);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: rgb(var(--ch-amber) / 0.08);
  font-size: 0.93rem;
}
.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.trio li {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.trio b {
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.trio p {
  margin-top: 6px;
  font-size: 0.95rem;
  color: var(--muted);
}

/* why: bento */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}
.cell {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: clamp(22px, 2.6vw, 30px);
}
.cell--a,
.cell--b {
  grid-column: span 3;
}
.cell--a {
  --ta: var(--ch-cyan);
}
.cell--b {
  --ta: var(--ch-violet);
}
.cell--c {
  --ta: var(--ch-blue);
}
.cell--d {
  --ta: var(--ch-violet);
}
.cell h3 {
  margin-top: auto;
  padding-top: 40px;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}
.cell p {
  margin-top: 10px;
  color: var(--muted);
}
.cell--e {
  justify-content: space-between;
  border: 1px dashed var(--line-hi);
  background: rgb(var(--ch-midnight) / 0.5);
}
.cell--e:hover {
  transform: none;
}
.sys {
  width: 100%;
  height: auto;
}
.sys-l {
  stroke: var(--line-hi);
  stroke-dasharray: 3 5;
  fill: none;
}
.sys-core {
  fill: var(--p-blue);
  stroke: var(--p-frost);
  stroke-width: 1.5;
}
.sys-f {
  fill: var(--p-midnight);
  stroke: var(--flag);
  stroke-width: 2;
}
.sys-c {
  fill: var(--p-midnight);
  stroke: var(--accent);
  stroke-width: 2;
}
.cell--e figcaption {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--muted);
}
.cell--e figcaption b {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--mono-size);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}

/* ecosystem: orbit + index table */
.eco {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: start;
}
.orbit-fig {
  border-radius: var(--r-lg);
  overflow: hidden;
}
.orbit {
  position: relative;
  width: min(100% - 40px, 540px);
  aspect-ratio: 1;
  margin: 20px auto;
}
/* Nodes stay put so labels never collide or slide behind the core; only the dashed ring turns. */
.ring {
  position: absolute;
  inset: 14%;
}
.ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px dashed rgb(var(--ch-cyan) / 0.45);
  border-radius: 50%;
  animation: orbit 120s linear infinite;
}
.ring--in {
  inset: 27%;
}
.ring--in::before {
  border: 1px dashed rgb(var(--ch-gold) / 0.6);
  animation-duration: 90s;
  animation-direction: reverse;
}
@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}
.ring li {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
}
.node {
  display: grid;
  justify-items: center;
  gap: 1px;
  padding: 7px 14px;
  border: 1px solid rgb(var(--ch-cyan) / 0.6);
  border-radius: var(--r-pill);
  background: var(--p-navy);
  line-height: 1.2;
  white-space: nowrap;
}
.node b {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
}
.node small {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.node--flag {
  border-color: var(--flag);
}
.node--flag small {
  color: var(--flag);
}
.core {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  justify-items: center;
  align-content: center;
  width: 19%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 32% 28%, rgb(var(--ch-frost) / 0.9), transparent 36%),
    conic-gradient(from 210deg, var(--p-cyan), var(--p-blue), var(--p-violet), var(--p-cyan));
  box-shadow: 0 0 70px 4px rgb(var(--ch-blue) / 0.7);
  color: var(--on-bright);
  line-height: 1.1;
}
.core svg {
  width: 30%;
  fill: none;
  stroke: var(--on-bright);
  stroke-width: 2.2;
  stroke-linejoin: round;
}
.core b {
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: clamp(0.6875rem, 1vw, 0.82rem);
  font-weight: 800;
  letter-spacing: 0.14em;
}
.core small {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.fig-note {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--muted);
}
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}
.index {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.index thead th {
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: var(--mono-size);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.index tbody tr {
  border-top: 1px solid var(--line);
  transition: background-color var(--dur) var(--ease);
}
.index tbody tr:hover {
  background: rgb(var(--ch-frost) / 0.05);
}
.index td,
.index tbody th {
  padding: 14px 16px;
  vertical-align: baseline;
}
.index tbody th {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  white-space: nowrap;
}
.index td:last-child {
  font-size: 0.93rem;
  color: var(--muted);
}

/* how it works: glass steps on a rail that fills on scroll */
.moves {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding-top: 38px;
}
.moves::before,
.moves::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 10px;
  height: 2px;
  border-radius: 2px;
}
.moves::before {
  background: var(--line-hi);
}
.moves::after {
  background: var(--grad);
  box-shadow: 0 0 18px rgb(var(--ch-blue) / 0.9);
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
}
.move {
  position: relative;
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition:
    transform 320ms var(--ease),
    border-color var(--dur) var(--ease);
}
.move:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}
.move-dot {
  position: absolute;
  left: 26px;
  top: -38px;
  z-index: 1;
  width: 22px;
  height: 22px;
  border: 3px solid var(--p-midnight);
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 18px rgb(var(--ch-cyan) / 0.8);
}
.move-no {
  display: flex;
  gap: 12px;
  color: var(--muted);
}
.move h3 {
  margin-top: 14px;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
}
.move > p:not(.move-no) {
  margin-top: 10px;
  font-size: 0.97rem;
  color: var(--muted);
}

/* traders & creators */
.sides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.side {
  padding: clamp(24px, 3.4vw, 44px);
}
.side-for {
  display: inline-flex;
  padding: 4px 14px;
  border: 1px solid var(--line-hi);
  border-radius: var(--r-pill);
  color: var(--text);
}
.side h3 {
  margin-top: 20px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
}
.side > p:not(.side-for) {
  margin-top: 14px;
  color: var(--muted);
  max-width: 48ch;
}
.side .checks {
  margin-bottom: 0;
}
.not-shown {
  margin-top: 18px;
  padding: clamp(20px, 2.6vw, 30px);
  border: 1px dashed var(--line-hi);
  border-radius: var(--r-lg);
  background: rgb(var(--ch-midnight) / 0.5);
}
.not-shown h3 {
  font-size: 1.25rem;
}
.not-shown p {
  margin-top: 10px;
  color: var(--muted);
  max-width: 96ch;
}

/* faq */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
}
.lead {
  margin-top: 18px;
  color: var(--muted);
  max-width: 44ch;
}
.reviewed {
  margin-top: 22px;
  color: var(--muted);
}
.faq-list {
  display: grid;
  gap: 12px;
}
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color var(--dur) var(--ease);
}
.faq-list details[open],
.faq-list details:hover {
  border-color: rgb(var(--ch-cyan) / 0.6);
}
.faq-list summary {
  display: flex;
  align-items: baseline;
  gap: 16px;
  min-height: 66px;
  padding: 18px 20px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary .i {
  align-self: center;
  margin-left: auto;
  width: 22px;
  height: 22px;
  color: var(--accent);
  transition: transform var(--dur) var(--ease);
}
.faq-list details[open] summary .i {
  transform: rotate(45deg);
}
.faq-list details p {
  padding: 0 20px 20px 58px;
  color: var(--muted);
}

/* final call: gradient card */
.sec--begin {
  padding-top: 0;
}
.begin {
  --focus: var(--p-ink);
  padding: clamp(30px, 6vw, 80px);
  border-radius: clamp(26px, 4vw, 44px);
  background:
    radial-gradient(60% 90% at 0% 0%, rgb(var(--ch-frost) / 0.45), transparent 60%),
    var(--grad);
  box-shadow: 0 50px 110px -50px rgb(var(--ch-violet) / 0.95);
  color: var(--on-bright);
}
.begin h2 {
  font-weight: 800;
  font-size: clamp(2.2rem, 5.6vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  max-width: 14ch;
}
.begin-body {
  margin-top: 20px;
  font-size: 1.15rem;
  font-weight: 500;
  max-width: 52ch;
}
.begin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.begin-small {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  margin-top: 28px;
  font-weight: 500;
  line-height: 1.8;
}

/* footer */
.footer {
  padding: clamp(48px, 6vw, 80px) 0 110px;
  border-top: 1px solid var(--line);
  background: rgb(var(--ch-midnight) / 0.8);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 0.7fr));
  gap: 36px;
}
.footer-brand p {
  margin-top: 18px;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 44ch;
}
.footer-col {
  display: grid;
  align-content: start;
  gap: 2px;
}
.footer-col h2 {
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.14em;
}
.footer-col a {
  display: flex;
  align-items: center;
  min-height: 40px;
  color: var(--muted);
  transition: color var(--dur) var(--ease);
}
.footer-col a:hover {
  color: var(--text);
}
.legal {
  margin-top: 40px;
  padding: 18px 20px;
  border-left: 2px solid var(--warn);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: rgb(var(--ch-amber) / 0.07);
  font-size: 0.9rem;
  line-height: 1.7;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 8px 32px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.8;
}

/* design switcher */
.switch {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line-hi);
  border-radius: var(--r-pill);
  background: rgb(var(--ch-navy) / 0.96);
  color: var(--muted);
  letter-spacing: 0.08em;
  box-shadow: 0 16px 40px -12px rgb(var(--ch-ink) / 0.9);
  transition:
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.switch b,
.switch .i {
  font-weight: 500;
  color: var(--accent);
}
.switch:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* reveal */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 760ms var(--ease) var(--d, 0ms),
    transform 760ms var(--ease) var(--d, 0ms),
    border-color var(--dur) var(--ease);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
.js .flag[data-reveal].is-in:hover,
.js .cell[data-reveal].is-in:not(.cell--e):hover,
.js .side[data-reveal].is-in:hover,
.js .move[data-reveal].is-in:hover {
  transform: translateY(-6px);
  transition-delay: 0ms;
  transition-duration: 320ms;
}

/* motion paused by the visitor */
.is-paused *,
.is-paused *::before,
.is-paused *::after {
  animation-play-state: paused !important;
}

/* responsive */
@media (max-width: 1180px) {
  .nav,
  .header-cta {
    display: none;
  }
  .menu-btn {
    display: grid;
  }
  .stack-float {
    scale: 0.9;
  }
}
@media (max-width: 1100px) {
  .eco {
    grid-template-columns: minmax(0, 1fr);
  }
  .moves {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 22px;
    padding-top: 0;
  }
  .moves::before,
  .moves::after,
  .move-dot {
    display: none;
  }
  .flags {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .flags .flag:last-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 900px) {
  .hero-in,
  .head,
  .faq,
  .window,
  .sides {
    grid-template-columns: minmax(0, 1fr);
  }
  .stack-float {
    scale: 1;
  }
  .surfaces {
    grid-template-columns: minmax(0, 1fr);
  }
  .surface {
    min-height: 0;
  }
  .tabs {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .tabs button {
    flex: none;
    min-height: 56px;
    padding: 8px 16px;
  }
  .tabs-hint {
    display: none;
  }
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cell,
  .cell--a,
  .cell--b {
    grid-column: span 1;
    min-height: 0;
  }
  .cell--e {
    grid-column: 1 / -1;
  }
  .trio {
    grid-template-columns: minmax(0, 1fr);
  }
  .also {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 700px) {
  /* orbit collapses to two plain lists */
  .orbit {
    width: auto;
    aspect-ratio: auto;
    display: grid;
    gap: 14px;
    margin: 18px 20px;
  }
  .ring,
  .ring--in {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border: 0;
    border-radius: 0;
    animation: none;
  }
  .ring::before {
    display: none;
  }
  .ring--in {
    order: -1;
  }
  .ring li {
    position: static;
    transform: none;
  }
  .node,
  .ring--in .node {
    animation: none;
  }
  .core {
    position: static;
    order: -2;
    width: 96px;
    transform: none;
  }
  .core b {
    font-size: 0.6875rem;
  }
  /* index table becomes stacked rows */
  .index thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .index tbody tr {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 4px 8px;
    padding: 16px;
  }
  .index td,
  .index tbody th {
    padding: 0;
  }
  .index tbody th {
    white-space: normal;
  }
  .index td:nth-child(n + 3) {
    grid-column: 2;
  }
}
@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }
  h1 {
    font-size: clamp(2.1rem, 10.4vw, 3.6rem);
  }
  .util-in > span:first-child {
    display: none;
  }
  .util-in,
  .util-r {
    justify-content: center;
  }
  .hero-actions .btn,
  .begin-actions .btn {
    flex: 1 1 100%;
  }
  /* card stack collapses to a simple grid of cards */
  .stack {
    perspective: none;
  }
  .stack-float {
    animation: none;
  }
  .deck {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    height: auto;
    transform: none;
  }
  .pcard,
  .pcard[data-pos] {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    height: auto;
    margin: 0;
    padding: 10px 12px 14px;
    transform: none;
    filter: none;
    cursor: default;
    box-shadow: none;
    z-index: auto;
  }
  .pcard:first-child {
    grid-column: 1 / -1;
  }
  .tile {
    flex: none;
    height: 92px;
  }
  .pcard-name {
    font-size: 1.05rem;
  }
  .pcard .tag {
    display: none;
  }
  .pcard:first-child .tag {
    display: inline-flex;
  }
  .stack-ctrl {
    display: none;
  }
  .flags,
  .bento,
  .moves,
  .panel-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .flags .flag:last-child,
  .cell--e {
    grid-column: auto;
  }
  .rows > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .faq-list details p {
    padding-left: 20px;
  }
  .faq-list summary {
    gap: 12px;
    font-size: 1.02rem;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .switch {
    right: 10px;
    bottom: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .moves::after {
    transform: scaleX(1);
  }
}
