/* Vardo v2 — dark constellation. Inter body, Anton display, Plex Mono data. */

:root {
  --bg: #111213;
  --bg-2: #17181a;
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);
  --ink: #f4f3f1;
  --soft: #b9b6b1;
  --faint: #7d7a75;
  --accent: #d97757;
  --tile: #fcfaf5;
  --ok: #6fbf82;
  --grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cpath d='M71.5 0v72M0 71.5h72' stroke='rgba(255,255,255,0.055)' stroke-dasharray='3 5'/%3E%3C/svg%3E");
  --ease: cubic-bezier(0.4, 0, 0, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.mono { font-family: "IBM Plex Mono", monospace; }
img { max-width: 100%; }
a { color: inherit; }

/* ── nav ─────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 40px;
  padding: 18px 40px;
  background: rgba(17, 18, 19, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 19px; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
}
.diamond { width: 13px; height: 13px; background: var(--accent); transform: rotate(45deg); border-radius: 2px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--soft); text-decoration: none;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.ghost-link { font-size: 14.5px; font-weight: 500; color: var(--soft); text-decoration: none; }
.ghost-link:hover { color: var(--ink); }
.btn-light {
  display: inline-block;
  background: var(--ink); color: #17181a;
  font-weight: 600; font-size: 14.5px;
  padding: 10px 20px; border-radius: 8px;
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-light:hover { background: #fff; }
.btn-light:active { transform: scale(0.97); }
.btn-light.large { font-size: 16.5px; padding: 15px 30px; }
.btn-ghost {
  display: inline-block;
  background: transparent; color: var(--ink);
  font-weight: 600; font-size: 15px;
  padding: 12px 24px; border-radius: 8px;
  border: 1px solid var(--line);
  text-decoration: none; cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.04); }
.btn-ghost.center { display: block; width: fit-content; margin: 44px auto 0; }

/* ── display type ────────────────────────────────────────────────────────── */
.display {
  font-family: "Anton", "Arial Narrow", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.94;
  letter-spacing: 0.005em;
}
.display .line { display: block; }

/* ── hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}
.field { position: absolute; inset: 0; z-index: 0; }
.edges { position: absolute; inset: 0; width: 100%; height: 100%; }
.edges line { stroke: rgba(255, 255, 255, 0.16); stroke-dasharray: 1 6; stroke-linecap: round; stroke-width: 1.5; }

.node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  animation: bob 7s ease-in-out infinite;
}
@keyframes bob { 50% { margin-top: -9px; } }
.node.tile-n {
  background: var(--tile); border-radius: 14px;
  width: 56px; height: 56px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.node.tile-n img, .node.tile-n svg { width: 30px; height: 30px; object-fit: contain; }
.node.tile-n.full { background: transparent; overflow: hidden; }
.node.tile-n.full img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.node.tile-n.full.zoom img { width: 148%; height: 148%; max-width: none; margin: -24%; border-radius: 0; }
.node.tile-n.black { background: #050505; }
.node.tile-n.dark { background: #202124; }
.node.tile-n.dark svg { color: var(--ink); }
.node.tile-n.orange { background: var(--accent); }
.node.tile-n.orange svg { color: #17110d; }
.node.sm { width: 42px; height: 42px; border-radius: 11px; }
.node.sm img, .node.sm svg { width: 22px; height: 22px; }
.node.back-n { opacity: 0.5; }
.node.pill {
  background: #232527; border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px;
  font-size: 13px; font-weight: 600; white-space: nowrap;
  color: var(--soft);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.node.pill.green { color: #9ed8ab; border-color: rgba(111, 191, 130, 0.4); }
.node.pill.amber { color: #e8c66a; border-color: rgba(232, 198, 106, 0.35); }
.node.avatar-n {
  width: 46px; height: 46px; border-radius: 50%;
  font-size: 14px; font-weight: 700; letter-spacing: 0.02em;
  color: #17181a;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.45);
}
.node.deco { color: rgba(255, 255, 255, 0.5); }
.node.deco svg { width: 30px; height: 30px; }

/* entrance */
.js .node { opacity: 0; scale: 0.5; transition: opacity 0.5s var(--ease), scale 0.6s var(--spring); animation-play-state: paused; }
.js .node.in { opacity: 1; scale: 1; animation-play-state: running; }
.js .node.back-n.in { opacity: 0.5; }
.js .edges { opacity: 0; transition: opacity 1.2s ease 0.5s; }
.js .edges.in { opacity: 1; }

.hero-center { position: relative; z-index: 2; text-align: center; max-width: 900px; }
.hero .display { font-size: clamp(64px, 12.5vw, 176px); }
.js .hero .display .line { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .hero .display .line:nth-child(2) { transition-delay: 0.12s; }
.js .hero.go .display .line { opacity: 1; transform: none; }

.scrib { position: relative; display: inline-block; }
.scrib-svg {
  position: absolute; left: 50%; top: 52%;
  width: 1.05em; height: 0.85em;
  transform: translate(-50%, -50%) rotate(-6deg);
  overflow: visible; pointer-events: none;
}
.scrib-svg path { stroke-width: 7; }
.js .scrib-svg path { stroke-dasharray: 640; stroke-dashoffset: 640; }
.js .hero.go .scrib-svg path { animation: drawscrib 1.1s var(--ease) 0.9s forwards; }
@keyframes drawscrib { to { stroke-dashoffset: 0; } }

.node-a { display: inline-block; width: 0.8em; height: 0.94em; vertical-align: -0.017em; margin-right: 0.05em; }
.node-a svg { width: 100%; height: 100%; overflow: visible; }
.node-a .a-edge { stroke: var(--ink); stroke-width: 8; stroke-linecap: round; }
.node-a .a-node { stroke: var(--bg); stroke-width: 3; }
.js .node-a .a-node { transform-origin: center; transform-box: fill-box; scale: 0; transition: scale 0.5s var(--spring); }
.js .node-a .a-edge { stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 0.7s var(--ease); }
.js .hero.go .node-a .a-node { scale: 1; }
.js .hero.go .node-a .a-edge { stroke-dashoffset: 0; }

.hero-sub { margin: 34px auto 0; font-size: clamp(16px, 1.6vw, 19.5px); color: var(--soft); max-width: 640px; }
.hero-center .btn-ghost { margin-top: 32px; }
.js .hero-sub, .js .hero-center .btn-ghost { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease) 0.5s, transform 0.6s var(--ease) 0.5s; }
.js .hero.go .hero-sub, .js .hero.go .btn-ghost { opacity: 1; transform: none; }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 22px; height: 34px; border: 1.5px solid var(--line); border-radius: 12px;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 7px; width: 3px; height: 7px;
  background: var(--faint); border-radius: 2px; transform: translateX(-50%);
  animation: hintdrop 1.8s ease-in-out infinite;
}
@keyframes hintdrop { 55% { transform: translate(-50%, 9px); opacity: 0; } 60% { transform: translateX(-50%); opacity: 0; } }

/* ── quick start ─────────────────────────────────────────────────────────── */
.quickstart { padding: 40px 24px 110px; text-align: center; }
.qs-h { font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; letter-spacing: -0.02em; }
.qs-sub { color: var(--soft); margin-top: 10px; }
.qs-term {
  max-width: 780px; margin: 36px auto 0;
  background: #17181a;
  border: 1px solid #2a2c2e;
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
}
.qs-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid #232527;
}
.qs-dot { width: 10px; height: 10px; border-radius: 50%; background: #2e3134; }
.qs-app { margin-left: auto; font-size: 12px; color: var(--faint); background: #232527; padding: 4px 12px; border-radius: 6px; }
.qs-line {
  display: flex; align-items: baseline; gap: 12px;
  padding: 18px 20px;
  font-size: 14px;
  overflow-x: auto;
}
.qs-prompt { color: var(--faint); flex: 0 0 auto; }
#qs-text { white-space: nowrap; }
.qs-copy {
  margin-left: auto; align-self: center; flex: 0 0 auto;
  background: transparent; border: 0; color: var(--faint);
  padding: 6px 10px; border-radius: 7px; cursor: pointer;
  display: flex; align-items: center; gap: 7px;
  font-family: inherit; font-size: 13px; font-weight: 500;
  transition: color 0.15s ease, background 0.15s ease;
}
.qs-copy:hover { color: var(--ink); background: #232527; }
.qs-copy svg { width: 16px; height: 16px; }
.qs-copy.ok { color: #6fbf82; }
.qs-copy.ok svg { display: none; }
.qs-note { margin-top: 20px; font-size: 14px; color: var(--faint); }

/* ── the lab ─────────────────────────────────────────────────────────────── */
.lab { padding: 30px 24px 130px; max-width: 1060px; margin: 0 auto; }
.lab-h {
  font-size: clamp(34px, 4.2vw, 54px); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.08;
  text-align: center;
}
.lab-sub { text-align: center; color: var(--soft); margin-top: 16px; font-size: 17px; }
.lab-list {
  list-style: none;
  margin: 46px auto 0;
  max-width: 920px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px 48px;
}
.lab-li {
  display: flex; align-items: center; gap: 14px;
  font-size: 16.5px; font-weight: 500;
  padding: 11px 0;
}
.lab-ic {
  width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto;
  background: var(--tile);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.lab-ic img, .lab-ic svg { width: 19px; height: 19px; object-fit: contain; }
.lab-ic.dark { background: #232527; }
.lab-ic.dark svg { color: var(--soft); }
.js .lab-li { opacity: 0; transform: translateY(12px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.js .lab-li.in { opacity: 1; transform: none; }

/* ── chapters ────────────────────────────────────────────────────────────── */
.chapters { height: 340vh; position: relative; }
.chapters-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: grid; grid-template-columns: 1fr minmax(320px, 420px);
  gap: 0; overflow: hidden;
}
.ch-canvas {
  position: relative;
  background-image: var(--grid);
  border-right: 1px dashed var(--line-soft);
  overflow: hidden;
}
.scene { position: absolute; inset: 0; display: grid; place-items: center; }
.js .scene { opacity: 0; filter: blur(14px); transform: translateY(40px) scale(0.98); transition: opacity 0.55s var(--ease), filter 0.55s var(--ease), transform 0.55s var(--ease); pointer-events: none; }
.js .scene.on { opacity: 1; filter: none; transform: none; }
.js .scene.was { transform: translateY(-40px) scale(0.98); }
.scene-fit { position: relative; width: 760px; height: 560px; transform-origin: center; }
.scene-edges { position: absolute; inset: 0; width: 100%; height: 100%; }
.sedge { stroke: rgba(255, 255, 255, 0.3); stroke-width: 1.5; stroke-dasharray: 1 6; stroke-linecap: round; }

.tile {
  position: absolute;
  background: var(--tile); border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.tile.big { width: 96px; height: 96px; }
.tile.big img, .tile.big svg { width: 52px; height: 52px; object-fit: contain; }
.tile.claude { width: 76px; height: 76px; border-radius: 16px; }
.tile.claude svg { width: 42px; height: 42px; }
.tile.accent { background: var(--accent); }
.tile.accent > svg { color: #17110d; }
.tile-tag.tag-top { top: auto; bottom: calc(100% + 10px); }
.tile-tag {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%);
  font-size: 12.5px; font-weight: 500; color: var(--faint);
  white-space: nowrap;
}
.biz {
  position: absolute;
  background: #1d1f21; border: 1px solid var(--line);
  border-radius: 12px; padding: 13px 17px;
  display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}
.biz-name { font-size: 15.5px; font-weight: 600; }
.biz-meta { font-size: 12px; color: var(--soft); }
.biz-meta.mono { font-family: "IBM Plex Mono", monospace; color: var(--faint); }
.person {
  position: absolute;
  background: var(--tile); color: #26221e;
  border-radius: 14px; padding: 20px 26px 18px;
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px;
  align-items: center;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
}
.avatar {
  grid-row: 1 / 3;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent); color: #17110d;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
}
.cp-name { font-weight: 700; font-size: 17px; }
.cp-role { font-size: 13px; color: #6c635a; }
.mailcard {
  position: absolute;
  background: #1d1f21; border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 16px;
  display: flex; flex-direction: column; gap: 3px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  font-size: 13.5px;
}
.mc-src { font-size: 11.5px; color: var(--faint); }
.mc-src.good { color: var(--ok); display: inline-flex; align-items: center; gap: 5px; }
.mc-src.good svg { width: 12px; height: 12px; }
.mailcard.dead { opacity: 0.5; }
.mailcard.dead .mono { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.post {
  position: absolute;
  background: var(--tile); color: #26221e;
  border-radius: 12px; padding: 12px 16px;
  display: flex; flex-direction: column; gap: 3px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  max-width: 250px;
}
.post-head { font-size: 12px; font-weight: 700; color: #6c635a; }
.post-body { font-size: 13.5px; font-weight: 500; line-height: 1.4; }

/* scene choreography: edges flow, elements pop on --d */
.sedge {
  stroke: rgba(255, 255, 255, 0.34); stroke-width: 1.5;
  stroke-dasharray: 2 6; stroke-linecap: round;
  animation: sflow 1.1s linear infinite;
}
@keyframes sflow { to { stroke-dashoffset: -16; } }
.js .sedge { opacity: 0; transition: opacity 0.5s ease; }
.js .scene.on .sedge { opacity: 1; transition-delay: var(--d, 0s); }
.js .scene .s-el { opacity: 0; scale: 0.82; transition: opacity 0.4s var(--ease), scale 0.5s var(--spring); }
.js .scene.on .s-el { opacity: 1; scale: 1; transition-delay: var(--d, 0s); }
.js .scene.on .mailcard.dead { opacity: 0.5; }

.ch-rail {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 56px;
  background: var(--bg);
}
.ch-text { position: absolute; left: 56px; right: 96px; top: 50%; transform: translateY(-50%); }
.js .ch-text { opacity: 0; transform: translateY(calc(-50% + 26px)); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); pointer-events: none; }
.js .ch-text.on { opacity: 1; transform: translateY(-50%); }
.js .ch-text.was { transform: translateY(calc(-50% - 26px)); }
.kicker {
  font-size: 14px; font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}
.ch-text h2, .stories h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.ch-text .body { margin-top: 16px; color: var(--soft); font-size: 16.5px; max-width: 40ch; }
.ch-nav {
  position: absolute; right: 40px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.ch-arrow {
  width: 30px; height: 30px; border-radius: 8px;
  background: transparent; border: 1px solid var(--line);
  color: var(--soft); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.ch-arrow:hover { border-color: rgba(255, 255, 255, 0.4); color: var(--ink); }
.ch-arrow svg { width: 15px; height: 15px; }
.ch-dot {
  width: 6px; height: 6px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
  transition: height 0.3s var(--ease), background 0.3s ease;
  cursor: pointer;
}
.ch-dot.on { height: 20px; background: var(--ink); }

/* ── stats ───────────────────────────────────────────────────────────────── */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line);
  background-image: var(--grid);
}
.stat { padding: 56px 44px 60px; border-right: 1px dashed var(--line); }
.stat:last-child { border-right: 0; }
.stat-label { font-size: 15px; font-weight: 500; color: var(--soft); }
.stat-num {
  margin-top: 44px;
  font-size: clamp(26px, 2.6vw, 40px); font-weight: 500;
  letter-spacing: 0.01em;
  display: flex; overflow: hidden;
}
.stat-num .odchar { display: inline-block; }
.stat-num .odcol { display: inline-block; height: 1.25em; overflow: hidden; }
.odcol .odstrip { display: flex; flex-direction: column; transition: transform 1.6s var(--ease); }
.odcol .odstrip span { height: 1.25em; line-height: 1.25; }

/* ── carousel ────────────────────────────────────────────────────────────── */
.strip-section { padding: 130px 0 120px; overflow: hidden; }
.center-h {
  text-align: center;
  font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; letter-spacing: -0.02em;
}
.center-sub { text-align: center; color: var(--soft); max-width: 560px; margin: 16px auto 0; }
.strip-wrap {
  margin-top: 64px;
  cursor: grab;
  user-select: none; -webkit-user-select: none;
  touch-action: pan-y;
}
.strip-wrap.grabbing { cursor: grabbing; }
.strip { display: flex; gap: 26px; width: max-content; will-change: transform; padding: 30px 0; }
.src-tile {
  width: 128px; height: 128px; flex: 0 0 auto;
  background: var(--tile); border-radius: 30px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), inset 0 -3px 0 rgba(0, 0, 0, 0.12);
  transform: rotate(var(--tilt, 0deg));
}
.src-tile img, .src-tile svg { width: 76px; height: 76px; object-fit: contain; pointer-events: none; }
.src-tile.full { background: transparent; overflow: hidden; }
.src-tile.full img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.src-tile.full.zoom img { width: 148%; height: 148%; max-width: none; margin: -24%; border-radius: 0; }
.src-tile.t-black { background: #050505; }
.src-tile.t-red { background: #f00; }
.src-tile.t-dark { background: #202124; }
.src-tile.t-dark svg { color: var(--ink); }
.src-tile.t-orange { background: var(--accent); }
.src-tile.t-orange svg { color: #17110d; }
.src-tile.t-blue { background: #10386b; }
.src-tile.t-blue svg { color: #cfe2ff; }

/* ── stories ─────────────────────────────────────────────────────────────── */
.stories { padding: 40px 40px 60px; max-width: 1280px; margin: 0 auto; }
.stories-h { text-align: center; font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 80px; }
.story {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 70px;
  align-items: center;
  margin-bottom: 120px;
}
.story.flip .story-media { order: 2; }
.story.flip .story-text { order: 1; }
.story-media { position: relative; min-height: 460px; border-radius: 20px; overflow: hidden; }
.story-media.orange {
  background: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='460' height='460' viewBox='0 0 460 460'%3E%3Cg fill='none' stroke='rgba(23,17,13,0.16)' stroke-width='1.6'%3E%3Cpath d='M-20 90 C 100 40 190 140 320 95 S 500 130 500 130'/%3E%3Cpath d='M-20 150 C 100 100 200 200 330 155 S 500 190 500 190'/%3E%3Cpath d='M-20 215 C 100 165 210 265 340 220 S 500 255 500 255'/%3E%3Cpath d='M-20 285 C 100 235 220 335 350 290 S 500 325 500 325'/%3E%3Cpath d='M-20 360 C 100 310 230 410 360 365 S 500 400 500 400'/%3E%3C/g%3E%3C/svg%3E");
}
.story-media.oxblood {
  background: #71291d;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='460' height='460' viewBox='0 0 460 460'%3E%3Cg fill='none' stroke='rgba(255,240,230,0.12)' stroke-width='1.6'%3E%3Cpath d='M-20 90 C 100 40 190 140 320 95 S 500 130 500 130'/%3E%3Cpath d='M-20 150 C 100 100 200 200 330 155 S 500 190 500 190'/%3E%3Cpath d='M-20 215 C 100 165 210 265 340 220 S 500 255 500 255'/%3E%3Cpath d='M-20 285 C 100 235 220 335 350 290 S 500 325 500 325'/%3E%3Cpath d='M-20 360 C 100 310 230 410 360 365 S 500 400 500 400'/%3E%3C/g%3E%3C/svg%3E");
}
.term, .chatwin {
  position: absolute; left: 48px; top: 48px; right: -30px; bottom: -30px;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.term { background: #17181a; border: 1px solid #2a2c2e; }
.term-bar { display: flex; gap: 7px; padding: 13px 16px; }
.term-bar span { width: 11px; height: 11px; border-radius: 50%; background: #34363a; }
.term-bar.light span { background: #d8d2c6; }
.term-body { padding: 16px 24px 24px; font-size: 13.5px; line-height: 2.05; }
.t-in { color: var(--ink); }
.t-dim, .t-out { color: var(--faint); }
.t-out { color: var(--ink); }
.t-step { color: var(--soft); }
.t-r { color: var(--faint); float: right; }
.js .term-body p { opacity: 0; transform: translateY(6px); transition: opacity 0.35s ease, transform 0.35s ease; }
.js .term-body p.tin { opacity: 1; transform: none; }

.chatwin { background: #faf7f1; }
.chat-body { padding: 22px 26px; display: flex; flex-direction: column; gap: 16px; }
.bub { border-radius: 14px; padding: 12px 16px; max-width: 85%; font-size: 14.5px; line-height: 1.5; }
.bub.user { align-self: flex-end; background: #e8e2d6; color: #26221e; border-bottom-right-radius: 4px; }
.bub.claude { align-self: flex-start; background: #fff; color: #26221e; border: 1px solid #e5dfd2; border-bottom-left-radius: 4px; }
.bub.claude .small { font-size: 13px; margin-top: 6px; color: #4c463f; }
.inline-tick { width: 13px; height: 13px; color: #3f8a55; vertical-align: -2px; }
.c-trail { align-self: flex-start; font-size: 12.5px; color: #988f84; font-family: "IBM Plex Mono", monospace; padding-left: 4px; }
.c-cost { color: #71291d; font-weight: 600; }
.js .c-step { opacity: 0; transform: translateY(8px); transition: opacity 0.4s ease, transform 0.4s ease; }
.js .c-step.tin { opacity: 1; transform: none; }

.story-text .kicker { margin-bottom: 12px; }
.story-text .body { margin-top: 14px; color: var(--soft); max-width: 46ch; }
.story-text .btn-ghost { margin-top: 26px; }
.works { margin-top: 34px; font-size: 13px; font-weight: 600; color: var(--faint); }
.chips-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.wchip {
  font-size: 13.5px; font-weight: 600;
  background: #1d1f21; border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 8px;
}

/* ── proof ───────────────────────────────────────────────────────────────── */
.proof {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 80px;
  max-width: 1180px; margin: 0 auto; padding: 110px 40px 150px;
  border-top: 1px dashed var(--line);
}
.proof h2 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; letter-spacing: -0.02em; }
.big-p { margin-top: 28px; font-size: clamp(18px, 1.9vw, 23px); line-height: 1.55; color: var(--ink); }
.big-p.dim { color: var(--faint); font-size: clamp(16px, 1.6vw, 19px); }
.hl {
  background-image: linear-gradient(rgba(217, 119, 87, 0.32), rgba(217, 119, 87, 0.32));
  background-repeat: no-repeat;
  background-size: 0% 68%;
  background-position: 0 82%;
  padding: 0 3px; margin: 0 -3px;
  border-radius: 3px;
  transition: background-size 0.8s var(--ease);
}
.hl.on { background-size: 100% 68%; }
.proof-stats { display: flex; flex-direction: column; gap: 40px; justify-content: center; }
.pstat { border-left: 1px dashed var(--line); padding-left: 32px; }
.pstat-n { font-size: clamp(44px, 4.6vw, 64px); font-weight: 500; line-height: 1; }
.pstat-l { margin-top: 8px; color: var(--faint); font-size: 15px; }
.price-card {
  background: #17181a;
  border: 1px solid #2a2c2e;
  border-radius: 14px;
  padding: 26px 28px 22px;
}
.pc-head { font-size: 15px; font-weight: 600; color: var(--soft); }
.pc-head .mono { font-size: 26px; color: var(--ink); margin-right: 2px; }
.pc-row {
  display: grid; grid-template-columns: 86px 1fr; gap: 14px;
  align-items: baseline;
  padding: 13px 0 3px;
  position: relative;
}
.pc-row + .pc-row { border-top: 1px solid rgba(255, 255, 255, 0.06); margin-top: 10px; }
.pc-row.or::before {
  content: "or";
  position: absolute; top: -9px; left: 0;
  font-size: 11px; color: var(--faint);
  background: #17181a; padding-right: 8px;
}
.pc-n { font-size: 24px; font-weight: 500; text-align: right; }
.pc-t { font-size: 14.5px; color: var(--soft); }
.pc-foot { margin-top: 20px; font-size: 13px; color: var(--faint); }
.js .price-card { opacity: 0; transform: translateY(18px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.js .price-card.on { opacity: 1; transform: none; }

/* ── closing ─────────────────────────────────────────────────────────────── */
.closing {
  text-align: center;
  padding: 150px 24px 140px;
  border-top: 1px dashed var(--line);
  background-image: var(--grid);
}
.closing-h { font-size: clamp(56px, 9vw, 128px); }
.install-row {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 54px;
  background: var(--bg-2); border: 1px solid var(--line);
  padding: 10px 10px 10px 22px; border-radius: 12px;
  max-width: 92vw;
}
.install-url { font-size: clamp(13px, 2.6vw, 16px); color: var(--soft); overflow-wrap: anywhere; }
.install-note { margin-top: 18px; color: var(--faint); font-size: 15px; }

/* ── footer ──────────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line-soft); padding: 64px 40px 40px; max-width: 1280px; margin: 0 auto; }
.foot-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot-brand p { margin-top: 14px; color: var(--faint); font-size: 14.5px; }
.foot-h { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.foot-col a { display: block; color: var(--soft); text-decoration: none; font-size: 15px; margin-bottom: 10px; }
.foot-col a:hover { color: var(--ink); }
.foot-dim { color: var(--faint); font-size: 13.5px; }
.foot-legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-soft); color: #6a6761; font-size: 12.5px; max-width: 74ch; }

/* ── responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .nav { padding: 14px 20px; gap: 20px; }
  .nav-links, .ghost-link { display: none; }
  .chapters { height: auto; }
  .chapters-sticky { position: static; height: auto; display: block; overflow: visible; }
  .m-stack .ch-canvas { border-right: 0; padding: 30px 20px 10px; }
  .m-stack .scene { position: static; margin: 0 auto 34px; max-width: 480px; }
  .m-stack .scene-fit { width: auto; height: auto; transform: none !important; display: flex; flex-direction: column; align-items: center; gap: 18px; }
  .m-stack .scene-fit > * { position: relative !important; left: auto !important; top: auto !important; }
  .m-stack .scene-edges { display: none; }
  .m-stack .ch-text { position: static; margin: 46px auto 22px; max-width: 440px; text-align: center; }
  .js .m-stack .ch-text { opacity: 1; transform: none; transition: none; }
  .m-stack .ch-text .body { margin-left: auto; margin-right: auto; }
  .m-stack .tile { margin-bottom: 26px; }
  .m-stack .tile-tag.tag-top { top: calc(100% + 10px); bottom: auto; }
  .m-stack .scene-fit > *:not(:first-child)::before {
    content: ""; position: absolute; top: -17px; left: 50%;
    height: 13px; border-left: 2px dotted rgba(255, 255, 255, 0.28);
  }
  .lab-list { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-bottom: 1px dashed var(--line); padding: 36px 28px; }
  .stat:nth-child(even) { border-right: 0; }
  .stat:nth-child(n+3) { border-bottom: 0; }
  .story { grid-template-columns: 1fr; gap: 40px; margin-bottom: 90px; }
  .story.flip .story-media { order: 0; }
  .story.flip .story-text { order: 1; }
  .story-media { min-height: 380px; }
  .term, .chatwin { left: 22px; top: 26px; }
  .proof { grid-template-columns: 1fr; gap: 50px; padding: 80px 24px 100px; }
  .foot-cols { grid-template-columns: 1fr; gap: 32px; }
  .stories { padding: 20px 24px 40px; }
}
@media (max-width: 620px) {
  .hero .display { font-size: clamp(56px, 16.5vw, 96px); }
  .node.back-n { display: none; }
  .node.tile-n { width: 44px; height: 44px; border-radius: 11px; }
  .node.tile-n img, .node.tile-n svg { width: 24px; height: 24px; }
  .node.pill { font-size: 11.5px; padding: 5px 10px; }
  .src-tile { width: 96px; height: 96px; border-radius: 22px; }
  .src-tile img, .src-tile svg { width: 46px; height: 46px; }
  .install-row { flex-direction: column; align-items: stretch; padding: 14px; gap: 12px; text-align: center; }
  .hero { padding: 130px 20px 70px; }
  .quickstart { padding-bottom: 90px; }
  .lab { padding-bottom: 90px; }
  .lab-h br { display: none; }
  .lab-list { margin-top: 30px; gap: 2px 0; }
  .lab-li { font-size: 15px; padding: 9px 0; gap: 12px; }
  .lab-ic { width: 30px; height: 30px; border-radius: 8px; }
  .lab-ic img, .lab-ic svg { width: 17px; height: 17px; }
  #qs-text { white-space: normal; overflow-wrap: anywhere; text-align: left; }
  .qs-line { align-items: flex-start; }
  .qs-copy { align-self: flex-start; }
}

/* ── reduced motion / no-js ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .node, .scroll-hint span { animation: none; }
  .js .node, .js .edges, .js .hero .display .line, .js .hero-sub, .js .hero-center .btn-ghost,
  .js .scene, .js .ch-text, .js .scene .tile, .js .scene .chip, .js .scene .mini,
  .js .scene .card-person, .js .scene .scene-edges, .js .term-body p, .js .c-step, .hl {
    transition: none;
  }
  .js .hero .display .line, .js .hero-sub, .js .hero-center .btn-ghost { opacity: 1; transform: none; }
  .js .node { opacity: 1; scale: 1; }
  .js .edges { opacity: 1; }
  .js .term-body p, .js .c-step { opacity: 1; transform: none; }
  .js .scrib-svg path, .js .node-a .a-edge { stroke-dashoffset: 0 !important; stroke-dasharray: none; animation: none; }
  .js .node-a .a-node { scale: 1; }
}
html:not(.js) .scene { position: relative; margin-bottom: 20px; }
html:not(.js) .ch-text { position: static; transform: none; margin-bottom: 40px; }
html:not(.js) .chapters { height: auto; }
html:not(.js) .chapters-sticky { position: static; height: auto; overflow: visible; }
