/* Layout: flat near-black canvas, one drifting gradient stage in the hero that shrinks into the About card on scroll. */
:root {
  --canvas: #0e0e10;
  --media: #09090b;
  --surface: #161619;
  --raised: #222226;
  --raised-hover: #2c2c31;
  --line: rgba(255, 255, 255, 0.08);
  --soft: rgba(255, 255, 255, 0.03);
  --text: #e6e6e8;
  --text-85: rgba(230, 230, 232, 0.85);
  --text-80: rgba(230, 230, 232, 0.8);
  --text-70: rgba(230, 230, 232, 0.7);
  --text-65: rgba(230, 230, 232, 0.65);
  --muted: #8e8e93;
  --link: #f2f2f2;
  /* Accent color: change --accent-rgb (and --accent to match) to re-theme the whole site. */
  --accent-rgb: 242, 242, 242;
  --accent: rgb(var(--accent-rgb));
  --accent-ink: #0e0e10;
  /* Color for small details (logo prompt, caret, labels, nav line, rating bars) and the hero glow. */
  --grad: linear-gradient(90deg, #3ddc84, #2bd4c4);
  --grad-v: linear-gradient(180deg, #3ddc84, #2bd4c4);
  /* Play buttons are green like Roblox's own; dark text keeps them readable. */
  --play: #30d158;
  --play-hover: #4ae070;
  --play-ink: #04170b;
  --verified: #0066ff;
  --cta: var(--accent);
  --cta-hover: #ffffff;
  --live: #30d158;
  --gold: #ffd60a;
  --warm: #ff6b3d;
  --blue: #3d7bff;
  --teal: #2bd4c4;
  --discord: #5865f2;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;
  --display: "Space Grotesk", var(--font);

  --arrive: cubic-bezier(0.34, 1.56, 0.64, 1);
  --leave: cubic-bezier(0.11, 0, 0.5, 0);
  --settle: cubic-bezier(0.5, 1, 0.89, 1);
  --calm: cubic-bezier(0.37, 0, 0.63, 1);

  --nav-h: 52px;
  --pad: clamp(20px, 4.5vw, 56px);
  --pad-l: max(var(--pad), env(safe-area-inset-left, 0px));
  --pad-r: max(var(--pad), env(safe-area-inset-right, 0px));
  --nav-pad-l: max(clamp(16px, 3vw, 28px), env(safe-area-inset-left, 0px));
  --nav-pad-r: max(clamp(16px, 3vw, 28px), env(safe-area-inset-right, 0px));
  --edge: max(var(--pad), calc((100vw - 1200px) / 2));
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px + env(safe-area-inset-top, 0px));
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  counter-reset: sec 1;
}

h1, h2, h3, h4, p {
  margin: 0;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
  color: inherit;
}

img,
video {
  max-width: 100%;
  display: block;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

[tabindex="-1"]:focus {
  outline: none;
}

.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;
}

::selection {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.skip {
  position: fixed;
  left: 12px;
  top: -64px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--text);
  color: var(--canvas);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s var(--settle);
}

.skip:focus {
  top: calc(env(safe-area-inset-top, 0px) + 10px);
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--nav-pad-r) 0 var(--nav-pad-l);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  background: rgba(14, 14, 16, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

/* Terminal prompt in front of the name. */
.brand-mark {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font: 700 15px/1 var(--mono);
  letter-spacing: -0.04em;
}

.links {
  position: relative;
  justify-self: center;
  display: flex;
  gap: 26px;
  counter-reset: nav;
  font: 500 14px/1.4 var(--display);
}

.links a {
  padding: 6px 0;
  color: var(--text-65);
  text-decoration: none;
  transition: color 0.12s var(--settle);
}

.links a:hover,
.links a.is-active {
  color: var(--text);
}

.links a::before {
  counter-increment: nav;
  content: counter(nav, decimal-leading-zero);
  margin-right: 6px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  vertical-align: 0.12em;
}

.links .ind {
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  pointer-events: none;
}

.nav-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.lang button {
  padding: 5px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  cursor: pointer;
  transition: color 0.12s var(--settle), background 0.12s var(--settle);
}

.lang button:hover {
  color: var(--text);
}

.lang button[aria-pressed="true"] {
  background: var(--raised);
  color: var(--text);
}

.cvbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.12s var(--settle), transform 0.12s var(--settle);
}

.cvbtn:hover {
  background: rgba(var(--accent-rgb), 0.12);
}

.cvbtn:active {
  transform: scale(0.95);
}

.menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  background: var(--raised);
  border: 1px solid var(--line);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.menu-btn span {
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s var(--settle), opacity 0.2s var(--settle);
}

.nav.open .menu-btn span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav.open .menu-btn span:nth-child(2) {
  opacity: 0;
}

.nav.open .menu-btn span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- hero stage ---------- */

.track {
  position: relative;
}

.stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.media {
  grid-area: 1 / 1;
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: var(--media);
}

.reel {
  position: absolute;
  inset: -10%;
  background-image:
    radial-gradient(46% 56% at 76% 40%, rgba(91, 140, 255, 0.24), transparent 72%),
    radial-gradient(38% 46% at 10% 90%, rgba(48, 209, 88, 0.14), transparent 70%),
    linear-gradient(180deg, #0e1016, #0a0a0e);
  background-size: 140% 140%;
  animation: drift 7s var(--calm) infinite alternate;
  transform-origin: 50% 50%;
}

.reel::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.4px);
  background-size: 18px 18px;
}

/* Game thumbnails sliding in a tilted wall behind everything in the hero.
   With JS it stays hidden until every thumbnail has decoded, then fades in already complete. */
.wall {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.72;
  transition: opacity 0.6s var(--settle);
}

.js .wall:not(.is-ready) {
  opacity: 0;
}

.wall-tilt {
  --card-w: clamp(170px, 17vw, 270px);
  --wall-gap: clamp(10px, 1.2vw, 16px);
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  flex-direction: column;
  gap: var(--wall-gap);
  transform: translate(-50%, -50%) perspective(1400px) rotateX(18deg) rotateZ(-10deg);
}

.wall-row {
  display: flex;
  gap: var(--wall-gap);
  width: max-content;
  animation: wall-scroll var(--dur, 80s) linear infinite;
  will-change: transform;
}

.wall-row:nth-child(even) {
  animation-direction: reverse;
  margin-left: calc(var(--card-w) * -0.5);
}

.wall-off .wall-row {
  animation-play-state: paused;
}

.wall-card {
  flex: none;
  width: var(--card-w);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 34px -18px rgba(0, 0, 0, 0.9);
}

.wall-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15);
}

.shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.52) 40%, rgba(0, 0, 0, 0.84));
}

.scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 10, 13, 0.9) 0%, rgba(10, 10, 13, 0.72) 30%, rgba(10, 10, 13, 0.28) 60%, rgba(10, 10, 13, 0.16) 80%, rgba(10, 10, 13, 0.4) 100%);
}

@media (max-width: 859px) {
  .scrim {
    background: linear-gradient(rgba(10, 10, 13, 0.82) 0%, rgba(10, 10, 13, 0.74) 45%, rgba(10, 10, 13, 0.3) 62%, rgba(10, 10, 13, 0.3) 78%, rgba(10, 10, 13, 0.82) 100%);
  }
}

@keyframes wall-scroll {
  to { transform: translateX(-50%); }
}

.glow {
  display: none;
}

.hero {
  grid-area: 1 / 1;
  position: relative;
  z-index: 5;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 36px + env(safe-area-inset-top, 0px)) var(--pad-r) 44px var(--pad-l);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font: 600 11px/1.2 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

[data-live="live"] #live-pill {
  color: var(--live);
  background: rgba(48, 209, 88, 0.08);
  border-color: rgba(48, 209, 88, 0.22);
}

.dot {
  width: 6px;
  height: 6px;
  flex: none;
  display: inline-block;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.4);
}

[data-live="live"] .dot {
  background: var(--live);
  animation: pulse 1.8s var(--calm) infinite;
}

.hero-title {
  margin-top: 16px;
  display: flex;
  align-items: flex-start;
  gap: 0.1em;
  font-size: clamp(60px, 16vw, 88px);
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.hero-title .w {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.1em;
  vertical-align: top;
}

.hero-title .l {
  display: inline-block;
}

/* Blinking terminal caret after the name. */
.hero-title::after {
  content: "";
  order: 1;
  flex: none;
  width: 0.08em;
  height: 0.74em;
  margin: 0.17em 0 0 0.04em;
  background: var(--grad-v);
  animation: caret 1.1s steps(1) infinite;
}

.verified {
  order: 2;
  flex: none;
  width: 0.28em;
  height: 0.28em;
  margin-top: 0.16em;
}

/* Roblox verified mark: #0066ff square tilted 15°, white check with round ends and a sharp corner. */
.verified__seal {
  fill: var(--verified);
}

.verified__check {
  fill: none;
  stroke: #fff;
  stroke-width: 2.63;
  stroke-linecap: round;
  stroke-linejoin: miter;
}

.tagline {
  margin-top: 8px;
  color: var(--text-85);
  font-family: var(--display);
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tagline::before {
  content: "// ";
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--mono);
  font-weight: 500;
}

.intro-p {
  margin-top: 12px;
  max-width: 520px;
  color: var(--text-70);
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.6;
}

.ctas {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s var(--settle), filter 0.12s var(--settle), background 0.12s var(--settle);
}

.btn:active {
  transform: scale(0.95);
}

.btn.primary {
  background: var(--cta);
  color: var(--accent-ink);
}

.btn.primary:hover {
  background: var(--cta-hover);
  box-shadow: 0 10px 30px -12px rgba(255, 255, 255, 0.45);
}

.btn.ghost {
  color: var(--text);
  background: rgba(14, 14, 16, 0.35);
  border-color: rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hero-avatar {
  width: min(46vw, 260px);
  height: auto;
  margin: -6px auto;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.69));
}

.hstats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 0;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hs {
  position: relative;
  min-width: 0;
  padding: 2px 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.hs:nth-child(odd) {
  padding-left: 0;
  border-left: 0;
}

.hs b {
  display: block;
  font-family: var(--display);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.hs > span:not(.dot) {
  display: block;
  margin-top: 4px;
  color: var(--text-65);
  font: 500 10.5px/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hs .dot {
  position: absolute;
  top: 8px;
  right: 8px;
}

.spark {
  display: block;
  width: 100%;
  height: 20px;
  margin-top: 8px;
  overflow: visible;
}

.spark__line {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.spark__end {
  fill: var(--live);
}

.hint {
  display: none;
}

/* ---------- about (flow layout by default) ---------- */

.about {
  grid-area: 2 / 1;
  position: relative;
  z-index: 3;
  padding: clamp(56px, 9vw, 96px) var(--pad-r) clamp(56px, 9vw, 96px) var(--pad-l);
  border-top: 1px solid var(--line);
  background: var(--canvas);
  scroll-margin-top: var(--nav-h);
}

.slot {
  display: none;
}

.ab-text {
  max-width: 640px;
  margin: 0 auto;
}

.kicker {
  display: inline-block;
  counter-increment: sec;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kicker::before {
  content: counter(sec, decimal-leading-zero) " / ";
  color: var(--muted);
}

.ab-text h2 {
  margin-top: 4px;
  font-size: clamp(30px, 3.4vw, 44px);
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.ab-text > p:not(.kicker) {
  margin-top: 12px;
  color: var(--text-70);
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.65;
  text-wrap: pretty;
}

.inf-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  border-top: 1px solid var(--line);
}

.inf {
  min-width: 0;
  padding: 11px 0 12px;
  border-bottom: 1px solid var(--line);
}

.inf span {
  display: block;
  color: var(--muted);
  font: 500 10.5px/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inf b {
  display: block;
  margin-top: 3px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
}

/* ---------- story mode (desktop, enabled from <head>) ---------- */

html.story .track {
  height: 202vh;
}

html.story .stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: block;
  overflow: hidden;
}

html.story .media {
  position: absolute;
  inset: 0;
  z-index: 1;
  min-height: 0;
}

html.story .shade {
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.8));
}

html.story .glow {
  display: block;
  position: absolute;
  z-index: 2;
  top: 9vh;
  right: calc(var(--edge) - 110px);
  width: min(50vw, 640px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.13) 0%, rgba(255, 176, 138, 0.08) 42%, transparent 68%);
  pointer-events: none;
}

html.story .hero {
  position: absolute;
  inset: 0;
  min-height: 0;
  padding: clamp(92px, 19vh, 200px) 0 clamp(52px, 9vh, 100px) var(--edge);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  pointer-events: none;
}

html.story .hero-copy {
  width: min(56vw, 700px);
  pointer-events: auto;
  transform-origin: 0 0;
}

html.story .hero-title {
  font-size: clamp(64px, min(8.6vw, 14vh), 128px);
}

html.story .hstats {
  align-self: flex-start;
  grid-template-columns: repeat(4, minmax(0, 168px));
  pointer-events: auto;
}

html.story .hs:nth-child(3) {
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-height: 760px) {
  html.story .hero {
    padding-top: clamp(72px, 13vh, 200px);
    padding-bottom: clamp(36px, 6vh, 100px);
  }
}

html.story .hero-avatar {
  display: none;
}

html.story .about {
  position: absolute;
  inset: var(--nav-h) 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
}

html.story .slot {
  display: block;
  position: absolute;
  right: calc(var(--edge) + min(8vw, 96px));
  width: min(34vw, 408px);
  top: max(44px, calc((100vh - var(--nav-h) - 640px) / 2));
  bottom: max(44px, calc((100vh - var(--nav-h) - 640px) / 2));
  border-radius: 22px;
}

html.story .ab-text {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--edge);
  width: min(46vw, 552px);
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

html.story .ab-text > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.15s var(--leave), transform 0.15s var(--leave);
}

html.story .stage.docked .ab-text {
  pointer-events: auto;
}

html.story .stage.docked .ab-text > * {
  opacity: 1;
  transform: none;
  transition: opacity 0.26s var(--settle) calc(var(--i, 0) * 60ms), transform 0.26s var(--settle) calc(var(--i, 0) * 60ms);
}

html.story .hint {
  display: block;
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 6;
  transform: translateX(-50%);
  color: var(--text-65);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  opacity: 0;
  transition: visibility 0.2s;
}

html.story.intro .hint {
  animation: fade 0.3s var(--settle) 1.5s forwards, nudge-y 1.6s var(--calm) 1.8s infinite alternate;
}

html.story .hint.gone {
  visibility: hidden;
}

/* fixed avatar used only in story mode */

.buddy,
.bd-shadow,
.fx {
  display: none;
}

html.story .buddy {
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 25;
  pointer-events: none;
  transform-origin: 50% 95%;
  will-change: transform;
}

.bd-body {
  position: relative;
  width: 100%;
  height: 100%;
  transform-origin: 50% 95%;
}

.bd-img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.69));
  -webkit-user-drag: none;
  user-select: none;
}

.bd-streaks {
  position: absolute;
  inset: -35% 12% -25%;
  overflow: hidden;
  opacity: 0;
}

.bd-streaks i {
  position: absolute;
  top: 100%;
  width: 3px;
  height: 22%;
  border-radius: 2px;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.63), transparent);
  animation: streak-up 0.42s linear infinite;
}

.bd-streaks i:nth-child(1) { left: 8%; animation-delay: -0.05s; }
.bd-streaks i:nth-child(2) { left: 30%; animation-delay: -0.26s; }
.bd-streaks i:nth-child(3) { left: 52%; animation-delay: -0.14s; }
.bd-streaks i:nth-child(4) { left: 74%; animation-delay: -0.33s; }
.bd-streaks i:nth-child(5) { left: 92%; animation-delay: -0.2s; }

html.story .bd-shadow {
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 24;
  width: 100px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.75), transparent);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

html.story .fx {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 26;
  overflow: hidden;
  pointer-events: none;
}

.dust {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #e6e6e8, #b9b9c0 45%, transparent 72%);
}

.ray {
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  border-radius: 2px;
  background: #fff;
  transform-origin: 50% 100%;
}

/* ---------- sections ---------- */

.sec {
  padding: clamp(64px, 9vw, 112px) var(--pad-r) clamp(64px, 9vw, 112px) var(--pad-l);
  border-top: 1px solid var(--line);
  scroll-margin-top: var(--nav-h);
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
}

.head {
  max-width: 760px;
  margin: 0;
}

.head .kicker {
  margin-bottom: 8px;
}

.head h2 {
  font-size: clamp(32px, 4.2vw, 52px);
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.head p:not(.kicker) {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 18px);
  text-wrap: pretty;
}

.head p b {
  color: var(--text);
  font-weight: 600;
}

.head p b.g {
  color: var(--live);
}

/* ---------- skills ---------- */

.sk-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.sk {
  position: relative;
  min-width: 0;
  min-height: 340px;
  padding: 20px 22px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.sk h3 {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.sk .d {
  max-width: 46ch;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.chips {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chips li {
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text-80);
  font-size: 12px;
  font-weight: 600;
  cursor: help;
  transition: border-color 0.12s var(--settle), color 0.12s var(--settle);
}

.chips li:hover,
.chips li:focus-visible {
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--text);
}

.demo {
  position: relative;
  flex: 1;
  min-height: 160px;
  margin: 14px -22px 0;
}

/* Analytics card: metric tiles (tabs) + one explainer panel with a live example. */

.sk--ana {
  grid-column: 1 / -1;
  min-height: 0;
  padding-bottom: 22px;
  container-type: inline-size;
}

.sk--ana .d {
  max-width: 64ch;
}

/* Closed by default: title, the metric names and a button. The body opens with a grid-row transition. */
.ana-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.ana-top-text {
  min-width: 0;
  flex: 1 1 320px;
}

.ana-teaser {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sk--ana.is-open .ana-teaser {
  display: none;
}

.ana-teaser span {
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--raised);
  color: var(--muted);
  font: 600 10.5px/1.3 var(--mono);
}

.ana-toggle {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  background: transparent;
  color: var(--accent);
  font: 600 13px/1 var(--font);
  cursor: pointer;
  transition: background-color 0.15s var(--settle);
}

.ana-toggle:hover {
  background: rgba(var(--accent-rgb), 0.1);
}

.ana-toggle svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sk--ana.is-open .ana-toggle svg {
  transform: rotate(180deg);
}

.ana-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sk--ana.is-open .ana-body {
  grid-template-rows: 1fr;
}

.ana-clip {
  min-height: 0;
  overflow: hidden;
}

.ana {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ana-tile,
.ana-panel {
  --c: var(--live);
}

.ana-tile[data-cat="money"],
.ana-panel[data-cat="money"] {
  --c: var(--gold);
}

.ana-tile[data-cat="eng"],
.ana-panel[data-cat="eng"] {
  --c: var(--link);
}

.ana-tile[data-cat="disc"],
.ana-panel[data-cat="disc"] {
  --c: var(--teal);
}

.ana-tiles {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}

.ana-tile {
  position: relative;
  min-width: 0;
  padding: 11px 12px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  border-radius: 10px;
  background: var(--raised);
  border: 1px solid transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s var(--settle), border-color 0.15s var(--settle), transform 0.12s var(--settle);
}

.ana-tile::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 8px var(--c);
}

.ana-tile b {
  font: 700 15px/1.1 var(--mono);
  letter-spacing: -0.02em;
  transition: color 0.15s var(--settle);
}

.ana-tile span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
}

.ana-tile:hover {
  background: var(--raised-hover);
}

.ana-tile:active {
  transform: scale(0.97);
}

.ana-tile:focus-visible {
  outline: 2px solid var(--c);
  outline-offset: 2px;
}

.ana-tile[aria-selected="true"] {
  background: color-mix(in srgb, var(--c) 12%, var(--raised));
  border-color: color-mix(in srgb, var(--c) 55%, transparent);
}

.ana-tile[aria-selected="true"] b {
  color: var(--c);
}

.ana-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "lab intro" "lab more";
  gap: 6px 28px;
  padding: 18px 20px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
}

.ana-panel:focus-visible {
  outline: 2px solid var(--c);
  outline-offset: 2px;
}

.ana-intro {
  grid-area: intro;
  min-width: 0;
}

.ana-more {
  grid-area: more;
  min-width: 0;
}

.ana-lab {
  grid-area: lab;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ana-intro.is-in,
.ana-more.is-in,
.ana-lab.is-in {
  animation: ana-in 0.32s var(--settle) both;
}

.ana-more.is-in {
  animation-delay: 0.05s;
}

.ana-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ana-acr {
  flex: none;
  padding: 5px 8px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--c) 16%, transparent);
  color: var(--c);
  font: 700 13px/1 var(--mono);
}

.ana-head h4 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.ana-cat {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ana-def {
  margin-top: 10px;
  color: var(--text-80);
  font-size: 14px;
  line-height: 1.5;
}

.ana-formula {
  margin-top: 12px;
}

.ana-formula code {
  display: block;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  color: var(--text);
  font: 500 12px/1.55 var(--mono);
}

.ana-tips-h {
  margin-top: 14px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ana-tips {
  margin: 7px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ana-tips li {
  position: relative;
  padding-left: 15px;
  color: var(--text-80);
  font-size: 13px;
  line-height: 1.45;
}

.ana-tips li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--c);
}

.ana-viz {
  min-width: 0;
}

.ana-chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.ana-chart text {
  fill: var(--muted);
  font: 600 9.5px var(--font);
}

.ana-grid line {
  stroke: rgba(255, 255, 255, 0.07);
}

.ana-area {
  fill: var(--c);
  opacity: 0.13;
}

.ana-line {
  fill: none;
  stroke: var(--c);
  stroke-width: 2.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.ana-mark {
  fill: var(--surface);
  stroke: var(--c);
  stroke-width: 1.6;
}

.ana-cursor {
  stroke: rgba(255, 255, 255, 0.32);
  stroke-dasharray: 3 3;
}

.ana-pt {
  fill: #fff;
  stroke: var(--c);
  stroke-width: 2.5;
}

.ana-chart .ana-pt-t,
.ana-chart .ana-tag {
  paint-order: stroke;
  stroke: var(--surface);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.ana-chart .ana-pt-t {
  fill: var(--text);
  font: 700 11px var(--mono);
}

.ana-chart .ana-tag {
  fill: var(--text-80);
  font: 600 10px var(--font);
}

.ana-avg {
  stroke: rgba(255, 255, 255, 0.4);
  stroke-dasharray: 4 4;
}

.ana-eq {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
}

.ana-eq-row {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 13px 13px;
  border-radius: 10px;
  background: var(--raised);
  border: 1px solid transparent;
  transition: background-color 0.2s var(--settle), border-color 0.2s var(--settle);
}

.ana-eq-k {
  color: var(--muted);
  font: 700 11px/1.2 var(--mono);
}

.ana-eq-row b {
  font-size: 20px;
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.ana-eq-row code {
  color: var(--muted);
  font: 500 10.5px/1.4 var(--mono);
}

.ana-eq-row.is-focus {
  background: color-mix(in srgb, var(--c) 11%, var(--raised));
  border-color: color-mix(in srgb, var(--c) 55%, transparent);
}

.ana-eq-row.is-focus .ana-eq-k,
.ana-eq-row.is-focus b {
  color: var(--c);
}

.ana-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px 18px;
}

.ana-slider {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ana-slider-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.ana-slider output {
  color: var(--text);
  font: 600 11.5px var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ana-range {
  --p: 50%;
  width: 100%;
  height: 18px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.ana-range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--c) var(--p), rgba(255, 255, 255, 0.12) var(--p));
}

.ana-range::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--c);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  -webkit-appearance: none;
  appearance: none;
}

.ana-range::-moz-range-track {
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
}

.ana-range::-moz-range-progress {
  height: 4px;
  border-radius: 4px;
  background: var(--c);
}

.ana-range::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--c);
}

.ana-range:focus-visible {
  outline: none;
}

.ana-range:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 35%, transparent);
}

.ana-range:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 35%, transparent);
}

.ana-read {
  min-height: 1.45em;
  color: var(--text-85);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}

.ana-read b {
  color: var(--c);
  white-space: nowrap;
}

.ana-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

@container (max-width: 980px) {
  .ana-tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@container (max-width: 700px) {
  .ana-panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "intro" "lab" "more";
    gap: 16px;
    padding: 16px;
  }
}

@container (max-width: 440px) {
  .ana-tiles {
    gap: 6px;
  }

  .ana-eq {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .ana-eq-row {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    grid-template-areas: "k v" "k f";
    align-items: center;
    gap: 0 12px;
    padding: 9px 12px;
  }

  .ana-eq-k {
    grid-area: k;
  }

  .ana-eq-row b {
    grid-area: v;
    font-size: 17px;
  }

  .ana-eq-row code {
    grid-area: f;
  }

  .ana-tile {
    padding: 11px 6px;
    align-items: center;
  }

  .ana-tile::after {
    top: 6px;
    right: 6px;
    width: 5px;
    height: 5px;
  }

  .ana-tile b {
    font-size: 12px;
  }

  .ana-tile span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

}

@container (max-width: 300px) {
  .ana-tile {
    padding-inline: 3px;
  }

  .ana-tile b {
    font-size: 10.5px;
  }
}

/* Game management demo: one update goes Plan → Build → Test → Live on an 8s CSS loop.
   The base styles are the finished frame, which is what reduced motion shows. */

.sk--mgr {
  container-type: inline-size;
}

.demo--mgr {
  margin: 18px 0 20px;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.mgr {
  --mgr-t: 8s;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: mgr-cycle var(--mgr-t) linear infinite;
}

.mgr-track {
  position: relative;
  height: 32px;
}

.mgr-line {
  position: absolute;
  top: 5px;
  left: 6px;
  right: 6px;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.mgr-line i {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--link) 62%, var(--live));
  animation: mgr-fill var(--mgr-t) var(--calm) infinite;
}

.mgr-node {
  position: absolute;
  top: 0;
  left: calc(6px + (100% - 12px) * var(--k));
  width: 12px;
  height: 12px;
  margin-left: -6px;
  color: var(--link);
  animation: var(--mgr-node) var(--mgr-t) linear infinite;
}

.mgr-node.n0 { --k: 0; --mgr-node: mgr-n0; }
.mgr-node.n1 { --k: 0.3333; --mgr-node: mgr-n1; }
.mgr-node.n2 { --k: 0.6667; --mgr-node: mgr-n2; }
.mgr-node.n3 { --k: 1; --mgr-node: mgr-n3; color: var(--live); }

.mgr-node b {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px var(--surface);
}

.mgr-node em {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.mgr-node.n0 em {
  left: 0;
  transform: none;
}

.mgr-node.n3 em {
  left: auto;
  right: 0;
  transform: none;
}

.mgr-dot {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  height: 0;
  opacity: 0;
  animation: mgr-dot var(--mgr-t) var(--calm) infinite;
}

.mgr-dot::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.35), 0 0 14px 2px rgba(var(--accent-rgb), 0.8);
}

.mgr-body {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 10px;
}

.mgr-tasks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mgr-tasks li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 10px;
  background: var(--raised);
}

.mgr-who {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 20%, transparent);
  color: var(--c);
  font-size: 10.5px;
  font-weight: 700;
}

.mgr-task {
  min-width: 0;
}

.mgr-task b {
  display: block;
  overflow: hidden;
  color: var(--text-80);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mgr-bar {
  display: block;
  height: 3px;
  margin-top: 5px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.mgr-bar i {
  display: block;
  height: 100%;
  background: var(--c);
  transform-origin: left;
  animation: var(--mgr-bar) var(--mgr-t) var(--calm) infinite;
}

.mgr-ok {
  color: var(--live);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  animation: var(--mgr-ok) var(--mgr-t) var(--arrive) infinite;
}

.mgr-tasks .t0 { --mgr-bar: mgr-b0; --mgr-ok: mgr-k0; }
.mgr-tasks .t1 { --mgr-bar: mgr-b1; --mgr-ok: mgr-k1; }
.mgr-tasks .t2 { --mgr-bar: mgr-b2; --mgr-ok: mgr-k2; }

.mgr-live {
  min-width: 0;
  padding: 9px 10px 8px;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.03);
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 100% 22px;
  border: 1px solid var(--line);
}

.mgr-chip {
  align-self: flex-start;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(48, 209, 88, 0.12);
  border: 1px solid rgba(48, 209, 88, 0.3);
  color: var(--live);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  animation: mgr-chip var(--mgr-t) var(--arrive) infinite;
}

.mgr-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--live);
  animation: pulse 1.8s var(--calm) infinite;
}

.mgr-spark {
  display: block;
  width: 100%;
  min-height: 34px;
  flex: 1;
  margin: 8px 0 6px;
  animation: mgr-spark var(--mgr-t) var(--calm) infinite;
}

.mgr-area {
  fill: rgba(48, 209, 88, 0.12);
}

.mgr-curve {
  fill: none;
  stroke: var(--live);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.mgr-spark-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.mgr-up {
  display: inline-block;
  color: var(--live);
  font-style: normal;
  animation: mgr-up var(--mgr-t) linear infinite;
}

@container (max-width: 330px) {
  .mgr-node em {
    font-size: 9px;
    letter-spacing: 0.04em;
  }

  .mgr-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .mgr-live {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px 10px;
  }

  .mgr-spark {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 44px;
    margin: 0;
  }

  .mgr-spark-label {
    justify-self: end;
  }
}

/* Off screen the demo rests on its finished frame and restarts from Plan when the section comes back. */
.rv .sec:not(.in) .mgr,
.rv .sec:not(.in) .mgr * {
  animation: none;
}

.demo--board {
  margin: 16px 0 20px;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
}

.board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.col {
  min-width: 0;
  min-height: 104px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.col-h {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.task {
  display: block;
  padding: 7px 8px;
  border-radius: 8px;
  background: var(--raised);
  color: var(--text-80);
  font-size: 11.5px;
  font-style: normal;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task.is-done::before {
  content: "✓ ";
  color: var(--live);
}

.task.mover {
  position: absolute;
  top: 64px;
  left: 8px;
  width: calc((100% - 16px) / 3 - 16px);
  padding-right: 22px;
  background: #2c2c31;
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  color: var(--text);
  animation: move-task 6.4s var(--calm) infinite;
}

.task.mover::after {
  content: "✓";
  position: absolute;
  right: 8px;
  color: var(--live);
  opacity: 0;
  animation: done-mark 6.4s step-end infinite;
}

.commits {
  display: flex;
  align-items: center;
  height: 14px;
}

.commits i {
  position: relative;
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--muted);
}

.commits i + i {
  margin-left: 28px;
}

.commits i + i::before {
  content: "";
  position: absolute;
  right: calc(100% + 2px);
  top: 2px;
  width: 28px;
  height: 2px;
  background: var(--muted);
  opacity: 0.6;
}

.commits i.head {
  border-color: var(--link);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.18);
  animation: pulse-accent 1.8s var(--calm) infinite;
}

/* ---------- portfolio ---------- */

.lc {
  margin-top: 32px;
  padding: 18px 20px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: left;
}

.lc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 12px;
}

.lc-title {
  min-width: 0;
}

.lc-title b {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.lc-title span {
  color: var(--muted);
  font-size: 13px;
}

.lc-status {
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

[data-live="live"] .lc-status {
  color: var(--live);
}

.chart__hover[hidden] {
  display: none;
}

.lc-plot {
  position: relative;
  margin-top: 10px;
}

.chart__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  outline: none;
}

.chart__svg:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 4px;
  border-radius: 8px;
}

.chart__grid {
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 1;
}

.chart__axis {
  fill: var(--muted);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.chart__stop--top {
  stop-color: var(--live);
  stop-opacity: 0.18;
}

.chart__stop--bottom {
  stop-color: var(--live);
  stop-opacity: 0;
}

.chart__line {
  fill: none;
  stroke: var(--live);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.chart__line.is-drawing {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 0.9s var(--calm) forwards;
}

.chart__area.is-drawing {
  opacity: 0;
  animation: fade 0.9s var(--calm) forwards;
}

.chart__end {
  fill: var(--live);
  stroke: var(--surface);
  stroke-width: 2;
}

.chart__halo {
  fill: var(--live);
  opacity: 0.25;
  transform-box: fill-box;
  transform-origin: center;
  animation: halo 1.8s var(--calm) infinite;
}

.chart__end-label {
  fill: var(--text);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.chart__cursor {
  stroke: rgba(255, 255, 255, 0.25);
  stroke-width: 1;
}

.chart__dot {
  fill: var(--live);
  stroke: var(--surface);
  stroke-width: 2;
}

.chart__tip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--raised);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 20px -8px #000;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 12px));
}

.chart__tip strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.chart__tip span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
}

.chart__tip span::before {
  content: "";
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--live);
}

.bars {
  margin: 6px 0 4px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.bars__row {
  display: grid;
  grid-template-columns: minmax(96px, 190px) minmax(0, 1fr) minmax(52px, auto);
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.bars__name {
  overflow: hidden;
  color: var(--text-80);
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bars__track {
  height: 10px;
  border-radius: 99px;
  background: var(--raised);
  overflow: hidden;
}

.bars__fill {
  display: block;
  height: 100%;
  width: calc(var(--w, 0) * 100%);
  min-width: 4px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(48, 209, 88, 0.55), var(--live));
  transition: width 0.9s var(--settle);
}

.bars.is-pre .bars__fill {
  width: 0;
}

.bars__value {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.controls {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
}

.lc[hidden] + .controls {
  margin-top: 32px;
}

.seg {
  position: relative;
  min-width: 0;
  max-width: 100%;
  display: inline-flex;
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.seg::-webkit-scrollbar {
  display: none;
}

.seg .pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: 7px;
  background: var(--raised);
}

.seg button {
  position: relative;
  z-index: 1;
  padding: 7px 14px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.12s var(--settle);
}

.seg button:hover,
.seg button[aria-pressed="true"] {
  color: var(--text);
}

.seg button small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.livebtn {
  min-height: 41px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

[data-live="live"] .livebtn {
  color: var(--live);
}

.pf-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gw {
  min-width: 0;
}

.gc {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: box-shadow 0.2s var(--settle);
}

.gc.is-hover {
  box-shadow: 0 24px 40px -18px #000;
}

.gc .th {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  overflow: hidden;
  background: var(--raised);
}

.gc .th img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s var(--settle);
}

.gc .th img.is-active {
  opacity: 1;
}

.gc .th::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.3), transparent 35%);
  pointer-events: none;
}

.glare {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.12), transparent 50%);
  pointer-events: none;
  transition: opacity 0.2s var(--settle);
}

.gc.is-hover .glare {
  opacity: 1;
}

.gc .now {
  position: absolute;
  top: 10px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.667);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.gc .now {
  right: 10px;
  color: var(--text-80);
}

[data-live="live"] .gc .now {
  color: var(--live);
}

.gc .dots {
  position: absolute;
  left: 50%;
  bottom: 8px;
  z-index: 1;
  display: flex;
  gap: 4px;
  transform: translateX(-50%);
}

.gc .dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: background 0.2s var(--settle), transform 0.2s var(--settle);
}

.gc .dots i.is-active {
  background: #fff;
  transform: scale(1.25);
}

.gc .nm {
  min-width: 0;
  padding: 12px 14px 0;
}

.gc .nm b {
  display: block;
  overflow: hidden;
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: -0.01em;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.gc .nm b a {
  color: inherit;
  text-decoration: none;
}

.gc .nm b a:hover {
  text-decoration: underline;
}

.gc .nm b a:focus-visible {
  outline-offset: -2px;
  border-radius: 4px;
}

.gc .nm span {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.gc .nm span .studio {
  overflow: hidden;
  text-overflow: ellipsis;
}

.i-verified {
  width: 13px;
  height: 13px;
  flex: none;
}

.i-verified path:first-child {
  fill: var(--verified);
}

.i-verified__check {
  stroke: #fff;
}

.gc .nm em {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: var(--text-80);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.gc .st {
  margin: auto 0 0;
  padding: 4px 14px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
}

.gc .st > div {
  min-width: 0;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.gc .st dt {
  color: var(--muted);
  font: 500 10px/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gc .st dd {
  margin: 2px 0 0;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.gc .st dd.g {
  color: var(--live);
}

.gc .st dd[title] {
  cursor: help;
}

.gc .st dd.rec {
  color: var(--gold);
  transform-origin: 0 50%;
  animation: rec-pop 0.26s var(--arrive);
}

@keyframes rec-pop {
  from { transform: scale(1.18); }
  to { transform: none; }
}

.gc .st > .rt {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  padding: 10px 0;
  border-bottom: 0;
}

.gc .rt dd {
  margin: 0;
  font-size: 14px;
}

.gc .rate {
  height: 4px;
  border-radius: 99px;
  background: var(--raised);
  overflow: hidden;
}

.gc .rate i {
  display: block;
  height: 100%;
  width: calc(var(--r, 0) * 100%);
  border-radius: inherit;
  background: var(--grad);
  transition: width 0.34s var(--settle) 0.4s;
}

.rv .gw:not(.seen) .gc .rate i {
  width: 0;
}

.gc .play {
  margin: 0 12px 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  background: var(--play);
  color: var(--play-ink);
  font-weight: 700;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.12s var(--settle);
}

.gc .play:hover {
  background: var(--play-hover);
  box-shadow: 0 8px 24px -10px rgba(48, 209, 88, 0.7);
}

.gc .play svg {
  width: 14px;
  height: 14px;
}

.noscript-games {
  margin: 26px auto 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  max-width: 420px;
  text-align: center;
}

/* ---------- contact ---------- */

.ct-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ct {
  position: relative;
  min-width: 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.ic {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
}

.ic svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ic--discord {
  background: var(--discord);
}

.ic--x {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.ct h3 {
  margin-top: 14px;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
}

.handle-row {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.handle {
  color: var(--link);
  font-size: clamp(16px, 1.7vw, 21px);
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration: none;
  user-select: all;
}

a.handle {
  user-select: auto;
}

a.handle:hover {
  text-decoration: underline;
}

.copy-btn {
  position: relative;
  display: inline-grid;
  overflow: hidden;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--raised);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s var(--settle);
}

.copy-btn:hover {
  background: var(--raised-hover);
}

.copy-btn .a,
.copy-btn .b {
  grid-area: 1 / 1;
  transition: transform 0.15s var(--leave), opacity 0.15s var(--leave);
}

.copy-btn .b {
  color: var(--live);
  opacity: 0;
  transform: translateY(120%);
}

.copy-btn.done .a {
  opacity: 0;
  transform: translateY(-120%);
}

.copy-btn.done .b {
  opacity: 1;
  transform: none;
  transition: transform 0.2s var(--arrive), opacity 0.2s var(--settle);
}

.ct p {
  max-width: 46ch;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.ct-go {
  display: inline-block;
  margin-top: 14px;
  color: var(--link);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.ct-go:hover {
  text-decoration: underline;
}

.ct-links {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cl {
  display: block;
  min-width: 0;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.12s var(--settle);
}

.cl:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.cl > span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cl b {
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}

.cl b em {
  color: var(--muted);
  font-style: normal;
}

/* ---------- footer ---------- */

.ft {
  padding: 44px var(--pad-r) 0 var(--pad-l);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.ft-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
}

.ft .brand {
  margin-bottom: 8px;
}

.ft p {
  max-width: 340px;
  color: var(--muted);
  line-height: 1.6;
}

.ft h4 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ft ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.ft li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-80);
}

.ft li a {
  text-decoration: none;
  transition: color 0.12s var(--settle);
}

.ft li a:hover {
  color: #fff;
}

.ft li em {
  color: var(--muted);
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.ft .ft-bottom {
  max-width: none;
  padding: 28px 0 calc(30px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

/* ---------- floating UI ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  max-width: calc(100vw - 32px);
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--raised);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 20px -8px #000;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 0.2s var(--settle), transform 0.2s var(--settle);
}

.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.tip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 80;
  max-width: min(260px, calc(100vw - 24px));
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--raised);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 20px -8px #000;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s var(--settle), visibility 0.12s;
}

.tip.is-on {
  opacity: 1;
  visibility: visible;
}

.tick {
  display: inline-block;
  animation: tick-in 0.2s var(--settle);
}

/* ---------- intro & reveals ---------- */

.js .nav {
  opacity: 0;
}

.js.intro .nav {
  animation: fade 0.26s var(--settle) forwards;
}

.js .badge,
.js .tagline,
.js .intro-p,
.js .ctas {
  opacity: 0;
}

.js .hero-title .l {
  transform: translateY(110%);
}

.js .verified {
  opacity: 0;
  transform: scale(0.4);
}

.js .hs {
  opacity: 0;
  transform: translateY(24px) scale(0.94);
}

.js .hero-avatar {
  opacity: 0;
  transform: translateY(-40px);
}

.js.intro .badge {
  animation: up 0.22s var(--settle) 0.1s forwards;
}

.js.intro .hero-title .l {
  animation: rise 0.34s var(--arrive) forwards;
  animation-delay: calc(0.22s + var(--i, 0) * 24ms);
}

.js.intro .verified {
  animation: pop 0.3s var(--arrive) 0.42s forwards;
}

.js.intro .tagline {
  animation: up 0.26s var(--settle) 0.72s forwards;
}

.js.intro .intro-p {
  animation: up 0.26s var(--settle) 0.82s forwards;
}

.js.intro .ctas {
  animation: up 0.22s var(--settle) 0.94s forwards;
}

.js.intro .hs {
  animation: card 0.22s var(--arrive) forwards;
  animation-delay: calc(1.05s + var(--i, 0) * 60ms);
}

.js.intro .hero-avatar {
  animation: card 0.34s var(--arrive) 0.6s forwards;
}

/* The page-load fade uses filter, so the scroll transition stays free to drive opacity. */
html.story.js .media {
  filter: opacity(0);
}

html.story.js.intro .media {
  animation: media-in 0.8s var(--calm) forwards;
}

@keyframes media-in {
  to { filter: opacity(1); }
}

.rv .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.15s var(--leave), transform 0.15s var(--leave);
}

.rv .in .reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.26s var(--settle), transform 0.26s var(--settle);
}

.rv .in .head .reveal:nth-child(2) {
  transition-delay: 40ms;
}

.rv .in .head .reveal:nth-child(3) {
  transition-delay: 80ms;
}

.rv .sk,
.rv .ct,
.rv .cl,
.rv .gw {
  opacity: 0;
  transition: opacity 0.15s var(--leave), transform 0.15s var(--leave);
}

.rv .sk { transform: translateY(34px) scale(0.94); }
.rv .ct { transform: translateY(30px) scale(0.95); }
.rv .cl { transform: translateY(20px) scale(0.95); }
.rv .gw { transform: translateY(30px) scale(0.93); }

.rv .in .sk,
.rv .in .ct,
.rv .in .gw {
  opacity: 1;
  transform: none;
  transition: opacity 0.22s var(--settle) calc(var(--i, 0) * 55ms), transform 0.22s var(--arrive) calc(var(--i, 0) * 55ms);
}

.rv .in .cl {
  opacity: 1;
  transform: none;
  transition: opacity 0.22s var(--settle) calc(0.15s + var(--i, 0) * 50ms), transform 0.22s var(--arrive) calc(0.15s + var(--i, 0) * 50ms), border-color 0.12s var(--settle);
}

html:not(.story).rv .about:not(.in) .ab-text > * {
  opacity: 0;
  transform: translateY(14px);
}

html:not(.story).rv .about .ab-text > * {
  transition: opacity 0.26s var(--settle) calc(var(--i, 0) * 60ms), transform 0.26s var(--settle) calc(var(--i, 0) * 60ms);
}

/* ---------- keyframes ---------- */

@keyframes drift { to { background-position: 100% 100%, 100% 100%, 100% 100%, 100% 100%; } }
@keyframes fade { to { opacity: 1; } }
@keyframes up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes rise { to { transform: none; } }
@keyframes card { to { opacity: 1; transform: none; } }
@keyframes pop { to { opacity: 1; transform: none; } }
@keyframes nudge-y { to { translate: 0 5px; } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.4); }
  100% { box-shadow: 0 0 0 7px rgba(48, 209, 88, 0); }
}
@keyframes pulse-accent {
  0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.45); }
  100% { box-shadow: 0 0 0 7px rgba(var(--accent-rgb), 0); }
}
@keyframes caret { 50% { opacity: 0; } }
@keyframes halo {
  0% { transform: scale(0.6); opacity: 0.35; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes ana-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes streak-up { from { top: 100%; } to { top: -25%; } }
@keyframes tick-in { from { opacity: 0; transform: translateY(-40%); } to { opacity: 1; transform: none; } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes move-task {
  0%, 16% { transform: translateX(0); }
  30%, 52% { transform: translateX(calc(100% + 24px)); }
  66%, 100% { transform: translateX(calc(200% + 48px)); }
}
@keyframes done-mark {
  0% { opacity: 0; }
  68% { opacity: 1; }
  98% { opacity: 0; }
}
@keyframes mgr-cycle {
  0% { opacity: 0; }
  3%, 95% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes mgr-fill {
  0%, 6% { clip-path: inset(0 100% 0 0); }
  15%, 38% { clip-path: inset(0 66.667% 0 0); }
  47%, 56% { clip-path: inset(0 33.333% 0 0); }
  65%, 100% { clip-path: inset(0 0 0 0); }
}
@keyframes mgr-dot {
  0% { transform: translateX(0); opacity: 0; }
  6% { transform: translateX(0); opacity: 1; }
  15%, 38% { transform: translateX(33.333%); }
  47%, 56% { transform: translateX(66.667%); }
  65% { transform: translateX(100%); opacity: 1; }
  69%, 100% { transform: translateX(100%); opacity: 0; }
}
@keyframes mgr-n0 { 0%, 4% { color: var(--muted); } 6%, 100% { color: var(--link); } }
@keyframes mgr-n1 { 0%, 14% { color: var(--muted); } 16%, 100% { color: var(--link); } }
@keyframes mgr-n2 { 0%, 46% { color: var(--muted); } 48%, 100% { color: var(--link); } }
@keyframes mgr-n3 { 0%, 64% { color: var(--muted); } 66%, 100% { color: var(--live); } }
@keyframes mgr-b0 {
  0%, 17% { transform: scaleX(0); }
  24% { transform: scaleX(0.55); }
  27% { transform: scaleX(0.7); }
  33%, 100% { transform: scaleX(1); }
}
@keyframes mgr-b1 {
  0%, 19% { transform: scaleX(0); }
  26% { transform: scaleX(0.4); }
  31% { transform: scaleX(0.75); }
  36%, 100% { transform: scaleX(1); }
}
@keyframes mgr-b2 {
  0%, 21% { transform: scaleX(0); }
  28% { transform: scaleX(0.5); }
  34% { transform: scaleX(0.65); }
  38%, 100% { transform: scaleX(1); }
}
@keyframes mgr-k0 { 0%, 49% { opacity: 0; transform: scale(0.3); } 52%, 100% { opacity: 1; transform: none; } }
@keyframes mgr-k1 { 0%, 51.5% { opacity: 0; transform: scale(0.3); } 54.5%, 100% { opacity: 1; transform: none; } }
@keyframes mgr-k2 { 0%, 54% { opacity: 0; transform: scale(0.3); } 57%, 100% { opacity: 1; transform: none; } }
@keyframes mgr-chip { 0%, 66% { opacity: 0; transform: translateY(6px) scale(0.9); } 70%, 100% { opacity: 1; transform: none; } }
@keyframes mgr-spark { 0%, 68% { clip-path: inset(0 100% 0 0); } 86%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes mgr-up { 0%, 80% { opacity: 0; } 84%, 100% { opacity: 1; } }

/* ---------- responsive ---------- */

@media (min-width: 620px) {
  html:not(.story) .hstats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  html:not(.story) .hs:nth-child(3) {
    padding-left: 18px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
  }
}

@media (min-width: 860px) {
  html:not(.story) .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    grid-template-areas: "copy avatar" "stats stats";
    align-content: center;
    column-gap: 32px;
    row-gap: 44px;
    padding-left: max(var(--edge), env(safe-area-inset-left, 0px));
    padding-right: max(var(--edge), env(safe-area-inset-right, 0px));
  }

  html:not(.story) .hero-copy {
    grid-area: copy;
  }

  html:not(.story) .hero-avatar {
    grid-area: avatar;
    align-self: center;
    width: min(100%, 440px);
    margin: 0 auto;
  }

  html:not(.story) .hstats {
    grid-area: stats;
  }
}

@media (max-width: 980px) {
  .pf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav {
    grid-template-columns: 1fr auto;
  }

  .menu-btn {
    display: inline-flex;
  }

  .links {
    position: absolute;
    top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    justify-self: stretch;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 4px var(--nav-pad-r) 12px var(--nav-pad-l);
    background: var(--canvas);
    border-bottom: 1px solid var(--line);
  }

  .nav.open .links {
    display: flex;
    animation: menu-in 0.2s var(--settle);
  }

  .links a {
    padding: 13px 0;
    border-top: 1px solid var(--line);
    font-size: 16px;
  }

  .links a:first-child {
    border-top: 0;
  }

  .links .ind {
    display: none;
  }

  .sk-grid,
  .ct-grid,
  .ct-links {
    grid-template-columns: 1fr;
  }

  .sk {
    min-height: 0;
  }

  .ft-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

}

@media (max-width: 420px) {
  .seg button {
    padding: 7px 10px;
    font-size: 12.5px;
  }

  .seg button small {
    margin-left: 3px;
  }
}

@media (max-width: 620px) {
  .pf-grid {
    grid-template-columns: 1fr;
  }

  .bars__row {
    grid-template-columns: minmax(0, 1fr) minmax(48px, auto);
    row-gap: 6px;
  }

  .bars__track {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 380px) {
  .brand [data-bind="name"] {
    display: none;
  }

  .cvbtn {
    padding: 7px 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
}
