/* ==========================================================================
   Hiyve.io: shared styles for the Platform and Dev paths
   ========================================================================== */

/* Hiyve Display: caps-only display face built from the logo lettering (see tools/font) */
@font-face {
  font-family: "Hiyve Display";
  src: url("../fonts/HiyveDisplay.woff2") format("woff2"), url("../fonts/HiyveDisplay.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-950: #07061a;
  --navy-900: #0d0b2e;
  --navy: #141137;
  --navy-700: #2f2a63;
  --honey: #f7d33e;
  --honey-600: #e8b90f;

  --ink: #16142b;
  --ink-2: #4b4862;
  --ink-3: #7c7993;
  --line: rgba(22, 20, 43, .12);

  --font-sans: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Hiyve Display", "Figtree", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 5.3vw, 76px);
  --edge: clamp(16px, 2.3vw, 32px);
  --cut: clamp(16px, 1.9vw, 28px);              /* hex-cut corner size on cards */
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Chapter 1 values are the default so the page looks right before JS runs */
  --base: #fff5da;
}

/* Chapter palettes. Applied to the atmosphere layers and to each chapter. */
[data-theme="honey"] {
  --base: #fff5da; --b1: #ffd45c; --b2: #ffb57e; --b3: #fff0b8;
  --card: linear-gradient(160deg, #fff0c2 0%, #ffd678 50%, #fbb98a 100%);
  --pill-bg: #ffe08a; --pill-fg: #5c3f00; --glow: #ffd45c;
  --hx1: #ffe08a; --hx2: #f5a849; --accent: #c98a00;
}
[data-theme="coral"] {
  --base: #ffe8df; --b1: #ff9b7a; --b2: #ff86a8; --b3: #ffc48a;
  --card: linear-gradient(160deg, #ffd6bf 0%, #ffa6a8 50%, #f48bb9 100%);
  --pill-bg: #ffc6b8; --pill-fg: #6e1c30; --glow: #ff9b7a;
  --hx1: #ffb199; --hx2: #f2709a; --accent: #d9483a;
}
[data-theme="lilac"] {
  --base: #f2eaff; --b1: #c6a6ff; --b2: #f0a9e3; --b3: #afc0ff;
  --card: linear-gradient(160deg, #eee2ff 0%, #cbaeff 52%, #e7a9ea 100%);
  --pill-bg: #dcc8ff; --pill-fg: #41247a; --glow: #c6a6ff;
  --hx1: #d8c2ff; --hx2: #a77bf2; --accent: #6d43d6;
}
[data-theme="indigo"] {
  --base: #e6eaff; --b1: #8ea0ff; --b2: #b49cf7; --b3: #a8d0ff;
  --card: linear-gradient(160deg, #dbe1ff 0%, #a8b5ff 50%, #9a8df2 100%);
  --pill-bg: #c9d1ff; --pill-fg: #22205f; --glow: #8ea0ff;
  --hx1: #b7c3ff; --hx2: #6d6ee8; --accent: #4f4fd6;
}
[data-theme="mint"] {
  --base: #e6f8f2; --b1: #8fe3c9; --b2: #a9d8ff; --b3: #d7f7e6;
  --card: linear-gradient(160deg, #e0fbef 0%, #a9ead3 50%, #8ed0ff 100%);
  --pill-bg: #c6f2e1; --pill-fg: #0f5a46; --glow: #8fe3c9;
  --hx1: #c0f3e2; --hx2: #3fc9a6; --accent: #0f8f74;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
code, pre { font-family: var(--font-mono); }
:focus-visible { outline: 2px solid var(--honey-600); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--honey); color: var(--navy); font-weight: 600;
}
.skip:focus { top: 16px; }

.ico {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.ico--sm { width: 14px; height: 14px; }

/* ---------- Buttons & hex tags ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 16px; border-radius: 9px;
  font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: background-color .3s, color .3s, border-color .3s, transform .2s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--lg { height: 54px; padding: 0 26px; border-radius: 12px; font-size: 17px; }
.btn--ghost { border: 1px solid color-mix(in srgb, currentColor 45%, transparent); }
.btn--ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.btn--solid { background: var(--navy); color: #fff; }
.btn--dark { height: 50px; padding: 0 18px; border-radius: 10px; background: var(--navy); color: #fff; margin-top: 28px; }
.btn--dark:hover, .btn--solid:hover { background: var(--navy-700); }
.btn--honey { background: var(--honey); color: var(--navy); }
.btn--honey:hover { background: #ffe066; }
.btn .ico { transition: translate .25s var(--ease); }
.btn:hover .ico { translate: 3px 0; }

/* Elongated hexagon tags */
.pill {
  display: inline-flex; align-items: center; height: 24px; padding: 0 12px;
  clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, 7px 100%, 0 50%);
  background: var(--pill-bg, #eee); color: var(--pill-fg, var(--ink));
  font-size: 12.5px; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
}
.pill code, code.pill { font-family: var(--font-mono); font-size: 12px; font-weight: 500; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 60;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 88px; padding: 0 var(--edge);
  color: var(--ink);
  transition: color .4s;
}
.nav::before {
  content: ""; position: absolute; inset: 0 0 -24px; z-index: -1; pointer-events: none;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent);
  transition: opacity .4s;
}
.nav[data-tone="dark"] { color: #fff; }
.nav[data-tone="dark"]::before { opacity: 0; }
.nav[data-tone="dark"] .btn--solid { background: var(--honey); color: var(--navy); }
.nav[data-tone="dark"] .btn--solid:hover { background: #ffe066; }
.nav__left { justify-self: start; }
.nav__right { justify-self: end; display: flex; align-items: center; gap: 12px; }
.nav__links { display: flex; gap: 22px; margin-right: 10px; }
.nav__links a { font-size: 15px; font-weight: 500; opacity: .82; transition: opacity .2s; }
.nav__links a:hover { opacity: 1; }

/* Brand: the hex mark from the logo, and HIYVE set in Hiyve Display with the glass treatment */
.brand { display: inline-flex; align-items: center; gap: 16px; height: 78px; }
.brand__mark { width: 69px; height: 68px; flex: none; overflow: visible; }
/* glass stops follow the header tone; the bee's stripes stay navy either way */
.brand__mark .bg1 { stop-color: var(--g1); } .brand__mark .bg2 { stop-color: var(--g2); }
.brand__mark .bg3 { stop-color: var(--g3); } .brand__mark .bg4 { stop-color: var(--g4); }
.brand__mark stop { transition: stop-color .4s; }
.brand__glass { fill: url(#brand-glass); }
.nav { --g1: #4b4694; --g2: #262160; --g3: #16142b; --g4: #3b3176; }
.nav[data-tone="dark"] { --g1: #ffffff; --g2: rgba(255, 255, 255, .62); --g3: rgba(255, 255, 255, .3); --g4: rgba(255, 228, 150, .85); }
.brand__word, .brand__word em {
  font-family: var(--font-display); font-size: 51px; line-height: 1; letter-spacing: .05em; font-style: normal;
  color: transparent; -webkit-background-clip: text; background-clip: text;
  transition: filter .4s;
}
.brand__word {
  padding-top: 2px;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, .62) 42%, rgba(255, 255, 255, .3) 58%, rgba(255, 228, 150, .85) 100%);
  -webkit-text-stroke: .5px rgba(255, 236, 190, .5);
  filter: drop-shadow(0 1px 6px rgba(247, 200, 90, .18));
}
.brand__word em {
  background-image: linear-gradient(180deg, #fff2b0 0%, #f7d33e 55%, #d99a0a 100%);
  -webkit-text-stroke: .5px rgba(255, 220, 90, .6);
}
.nav:not([data-tone="dark"]) .brand__word {
  background-image: linear-gradient(180deg, #4b4694 0%, #262160 42%, #16142b 60%, #3b3176 100%);
  -webkit-text-stroke: .5px rgba(22, 20, 43, .35);
  filter: none;
}

/* Menu button + panel (links move in here on narrower screens) */
.nav__menu { display: none; width: 38px; height: 34px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border-radius: 9px; border: 1px solid color-mix(in srgb, currentColor 35%, transparent); }
.nav__menu i { width: 16px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease), opacity .2s; }
.nav__menu[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__menu[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.nav__menu[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu {
  position: absolute; right: var(--edge); top: calc(100% + 4px); width: min(280px, calc(100vw - 2 * var(--edge)));
  display: grid; padding: 8px; border-radius: 16px;
  background: rgba(255, 255, 255, .94); color: var(--ink);
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 30px 60px -20px rgba(7, 6, 26, .35), 0 0 0 1px rgba(7, 6, 26, .06);
  animation: menu-in .22s var(--ease);
}
.menu[hidden] { display: none; }
.menu a { padding: 11px 14px; border-radius: 10px; font-size: 16px; font-weight: 600; }
.menu a:hover { background: rgba(247, 211, 62, .22); }

/* Platform / Dev path switch */
.paths {
  display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px;
  background: color-mix(in srgb, currentColor 8%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 20%, transparent);
}
.paths a {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; border-radius: 8px;
  font-size: 14px; font-weight: 600; opacity: .72; transition: opacity .2s, background-color .3s, color .3s;
}
.paths a:hover { opacity: 1; }
.paths a[aria-current] { opacity: 1; background: var(--navy); color: #fff; }
.nav[data-tone="dark"] .paths a[aria-current] { background: var(--honey); color: var(--navy); }
.paths .ico { width: 13px; height: 13px; }

/* ==========================================================================
   HERO: night hive
   ========================================================================== */
/* No background on .hero itself: the sticky layer fades out at the end to reveal the chapter atmosphere */
.hero { position: relative; height: 330vh; }
.hero__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: #fff;
  background:
    radial-gradient(55% 45% at 82% 30%, rgba(60, 74, 190, .4), transparent 70%),
    radial-gradient(45% 40% at 6% 78%, rgba(176, 58, 92, .32), transparent 70%),
    radial-gradient(120% 55% at 50% 118%, rgba(247, 211, 62, .62), rgba(214, 140, 50, .26) 38%, transparent 68%),
    linear-gradient(180deg, #05041a 0%, #0d0b2e 34%, #251a58 66%, #5b3f7c 86%, #b58848 100%);
}
/* film grain */
.hero__sticky::after, .finale::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.comb { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .comb {
  -webkit-mask-image: linear-gradient(#000 0%, #000 55%, rgba(0, 0, 0, .3) 85%, transparent);
  mask-image: linear-gradient(#000 0%, #000 55%, rgba(0, 0, 0, .3) 85%, transparent);
}

/* glowing hex cells, standing in for stars */
.glint {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); aspect-ratio: 100 / 87;
  translate: -50% -50%; color: #ffeaa8;
  filter: drop-shadow(0 0 5px rgba(255, 220, 120, .95)) drop-shadow(0 0 18px rgba(247, 180, 60, .6));
  animation: twinkle 4.6s ease-in-out var(--d) infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: .95; transform: scale(1) rotate(0); }
  50% { opacity: .3; transform: scale(.72) rotate(30deg); }
}

.hero__title { position: absolute; inset: 0; display: grid; place-items: center; padding-bottom: 18vh; pointer-events: none; }
.wordmark {
  position: relative; display: block; white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: min(15vw, 34vh); line-height: .9; letter-spacing: .01em;
  padding: 0 .04em;
  color: transparent;
  background:
    linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 45%, transparent 60%) -200% 0 / 200% 100% no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, .72) 0%, rgba(255, 255, 255, .22) 36%, rgba(255, 255, 255, .07) 62%, rgba(255, 224, 140, .42) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-stroke: 1.4px rgba(255, 236, 190, .5);
  filter: drop-shadow(0 0 28px rgba(247, 200, 90, .22));
  animation: sheen 7s ease-in-out 1.2s infinite;
  will-change: opacity, transform, filter;
}
.wordmark::before {
  content: attr(data-text); position: absolute; inset: 0; z-index: -1; padding: inherit;
  color: rgba(255, 220, 150, .14); -webkit-text-stroke: 0; filter: blur(22px);
}
@keyframes sheen {
  0%, 55% { background-position: -200% 0, 0 0; }
  100% { background-position: 200% 0, 0 0; }
}

.hero__intro {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: min(880px, calc(100% - 2 * var(--edge)));
  text-align: center;
  font-family: var(--font-sans); font-weight: 400;
  font-size: clamp(24px, 2.9vw, 40px); line-height: 1.2; letter-spacing: -.015em;
  color: rgba(255, 255, 255, .92);
}
.hero__intro .w { display: inline-block; opacity: 0; filter: blur(10px); }
.hero__intro:has(.hero__note) { display: grid; justify-items: center; gap: 22px; }
.hero__note { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.4; letter-spacing: 0; color: var(--honey); opacity: 0; max-width: 40ch; }

.hero__index {
  position: absolute; left: var(--edge); right: var(--edge); bottom: 28px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.hero__index div { display: flex; flex-direction: column; }
.hero__index a { font-size: 15px; line-height: 24px; color: rgba(255, 255, 255, .7); width: fit-content; transition: color .2s; }
.hero__index a:hover { color: #fff; }
.hero__index .hero__index-head { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; margin-bottom: 6px; }
.hero__index-head em { font-style: normal; font-family: var(--font-mono); font-size: 11px; color: var(--honey); }

/* Sunrise that carries the night sky into the first chapter's honey light */
.hero__dawn {
  position: absolute; left: 0; right: 0; top: 0; height: 220vh; pointer-events: none;
  background: linear-gradient(to top, #fff5da 0%, #fff5da 50%, #ffe3a0 60%, #ffc46b 70%, rgba(226, 140, 70, .55) 82%, rgba(140, 80, 120, 0) 100%);
  transform: translateY(100vh);
  will-change: transform;
}

/* ==========================================================================
   CHAPTER BAR
   ========================================================================== */
.chapbar {
  position: fixed; left: var(--edge); right: var(--edge); bottom: 0; z-index: 50;
  display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 24px; padding-bottom: 16px;
  color: var(--ink);
  opacity: 0; translate: 0 12px; pointer-events: none;
  transition: opacity .45s, translate .45s var(--ease), color .45s;
}
.chapbar::before {
  content: ""; position: absolute; left: calc(-1 * var(--edge)); right: calc(-1 * var(--edge)); bottom: 0; height: 120px; z-index: -1;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(to top, #000 35%, transparent);
  mask-image: linear-gradient(to top, #000 35%, transparent);
}
.chapbar.is-visible { opacity: 1; translate: 0 0; pointer-events: auto; }
.chapbar.is-dark { color: #fff; }
.chapbar.is-dark::before { display: none; }
.chapbar a { position: relative; display: block; padding-top: 10px; font-size: 14px; font-weight: 500; min-width: 0; }
.chapbar a::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: currentColor; opacity: .22; border-radius: 3px; }
.chapbar__fill { position: absolute; top: 0; left: 0; height: 3px; width: 100%; background: currentColor; border-radius: 3px; transform-origin: left; transform: scaleX(var(--p, 0)); }
.chapbar.is-dark .chapbar__fill { background: var(--honey); }
.chapbar__label { display: flex; gap: 8px; align-items: baseline; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .75; transition: opacity .3s; }
.chapbar__label em { font-style: normal; font-family: var(--font-mono); font-size: 11px; opacity: .7; }
.chapbar a.is-active .chapbar__label, .chapbar a:hover .chapbar__label { opacity: 1; }

/* ==========================================================================
   ATMOSPHERE (fixed gradient field behind chapters)
   ========================================================================== */
.atmos { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.atmos__layer { position: absolute; inset: 0; background: var(--base); opacity: 0; transition: opacity 1.1s ease; overflow: hidden; }
.atmos__layer.is-active { opacity: 1; }
.atmos__layer i {
  position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%;
  background: radial-gradient(closest-side, var(--b1), transparent);
  opacity: .55; filter: blur(20px);
  animation: drift 26s ease-in-out infinite alternate;
}
.atmos__layer i:nth-child(1) { left: -25vmax; top: -20vmax; }
.atmos__layer i:nth-child(2) { right: -30vmax; top: 10vh; background: radial-gradient(closest-side, var(--b2), transparent); animation-duration: 32s; animation-delay: -8s; }
.atmos__layer i:nth-child(3) { left: 20vw; bottom: -40vmax; background: radial-gradient(closest-side, var(--b3), transparent); animation-duration: 38s; animation-delay: -16s; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(8vw, 6vh, 0) scale(1.15); }
}

main, .finale, .footer { position: relative; z-index: 1; }

/* ==========================================================================
   CHAPTER
   ========================================================================== */
.chapter { position: relative; }
.chapter__intro { position: relative; height: 290vh; }
.chapter__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }

.chapter__head {
  position: relative; z-index: 2; text-align: center;
  width: min(1240px, calc(100% - 2 * var(--gutter)));
}
.chapter__head::before {
  content: ""; position: absolute; inset: -14% -8%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--base) 84%, transparent), transparent);
  opacity: var(--haze, 0);
}
.chapter__title {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px;
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(19px, 1.9vw, 26px); font-weight: 700; letter-spacing: .04em;
}
.chapter__num {
  display: inline-grid; place-items: center; width: 44px; aspect-ratio: 100 / 87;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background: var(--navy); color: var(--honey);
  font-family: var(--font-display); font-size: 14px; letter-spacing: .02em;
}
.chapter__statement {
  font-family: var(--font-sans); font-weight: 500;
  font-size: clamp(30px, 4.7vw, 68px); line-height: 1.06; letter-spacing: -.035em;
}
.chapter__statement .w { opacity: .14; }
.js .chapter__title { opacity: 0; translate: 0 24px; }
.js .chapter__statement { opacity: 0; }

.chapter__body {
  position: relative; z-index: 2;
  max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter) 200px;
}

/* ---------- Spotlight rows ---------- */
.spot {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center;
  padding: 40px 0 140px; scroll-margin-top: 90px;
}
.spot--flip { padding-top: 160px; }
.spot__copy .pill { margin-bottom: 18px; }
.spot__copy h3 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(26px, 2.7vw, 40px); line-height: 1.06; letter-spacing: .01em; max-width: 17ch;
}
.spot__copy p { margin-top: 18px; font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 46ch; }
.spot__copy p code, .feature__desc code, .step p code { font-size: .86em; padding: 1px 5px; border-radius: 5px; background: rgba(22, 20, 43, .07); }
.spot__visual { display: grid; place-items: center; }

/* ---------- Feature cards ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px 24px; }
.feature { scroll-margin-top: 90px; }
.feature__stage {
  position: relative; display: grid; place-items: center; overflow: hidden;
  aspect-ratio: 632 / 488; padding: 7%;
  background: var(--card);
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  isolation: isolate;
}
.feature__stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 30% 20%, rgba(255, 255, 255, .55), transparent 70%),
    radial-gradient(50% 45% at 85% 95%, color-mix(in srgb, var(--glow) 70%, transparent), transparent 70%);
}
/* faint honeycomb texture in every card */
.feature__stage::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .38;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='72.75' viewBox='0 0 42 72.75'%3E%3Cpath d='M14 0h14l7 12.12-7 12.13H14L7 12.12zM14 48.5h14l7 12.13-7 12.12H14l-7-12.12zM-7 24.25h14l7 12.13-7 12.12H-7l-7-12.12zM35 24.25h14l7 12.13-7 12.12H35l-7-12.12z' fill='none' stroke='white' stroke-opacity='.55' stroke-width='1'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(80% 70% at 80% 100%, #000, transparent 75%);
  mask-image: radial-gradient(80% 70% at 80% 100%, #000, transparent 75%);
}
.feature__title {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 22px;
  font-family: var(--font-sans);
  font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em;
}
.feature__title a { display: inline-flex; align-items: center; gap: 8px; }
.feature__title a .ico { width: 16px; height: 16px; stroke-width: 2.2; color: var(--accent, var(--ink)); transition: translate .25s var(--ease); }
.feature__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--accent, currentColor); }
.feature__title a:hover .ico { translate: 4px 0; }
.feature__desc { margin-top: 8px; font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 60ch; }

/* reveal on scroll */
.reveal .feature__stage, .reveal .spot__visual, .reveal .spot__copy, .reveal .step__copy, .reveal .step > .code { transition: opacity .9s var(--ease), translate .9s var(--ease); }
.reveal .m, .reveal .code, .reveal .arch { transition: opacity .9s var(--ease) .15s, scale .9s var(--ease) .15s, translate .9s var(--ease) .15s; }
.js .reveal:not(.is-in) .feature__stage, .js .reveal:not(.is-in) .spot__visual { opacity: 0; translate: 0 40px; }
.js .reveal:not(.is-in) .spot__copy, .js .reveal:not(.is-in) .step__copy { opacity: 0; translate: 0 24px; }
.js .reveal:not(.is-in) .m, .js .reveal:not(.is-in) .code, .js .reveal:not(.is-in) .arch { opacity: 0; scale: .96; translate: 0 14px; }

/* ==========================================================================
   MOCK UI (glass panels inside cards)
   ========================================================================== */
.m {
  position: relative; width: min(100%, 420px);
  padding: 22px 24px; border-radius: 14px;
  background: rgba(255, 255, 255, .76);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 24px 60px -24px rgba(40, 20, 60, .35), 0 0 0 1px rgba(255, 255, 255, .7) inset;
  font-size: 13px; line-height: 1.45; color: var(--ink);
}
.m__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.m__title { font-family: var(--font-sans); font-size: 19px; font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
.m__eyebrow { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--ink-3); margin-bottom: 4px; }
.m__label { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.m__text { color: var(--ink-2); }
.m__muted { color: var(--ink-3); font-size: 12px; }
.m__section { margin-top: 14px; }
.m__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.m__foot { display: flex; align-items: center; gap: 6px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.m__foot strong { color: var(--ink); font-weight: 600; }
.m__spacer { flex: 1; }
.m__checks li, .m__file { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.m__checks .ico { color: #1f8a4c; width: 15px; height: 15px; stroke-width: 2.4; }
.m__file .ico { color: var(--ink-3); width: 15px; height: 15px; }
.m__bullets li { position: relative; padding-left: 14px; color: var(--ink-2); }
.m__bullets li::before { content: ""; position: absolute; left: 1px; top: .5em; width: 7px; height: 6px; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); background: var(--honey-600); }
.m__btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line); background: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; }
.m__btn--dark { background: var(--navy); color: #fff; border-color: var(--navy); }
.m__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.m code { font-size: 11.5px; }

.chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; background: rgba(22, 20, 43, .06); font-size: 12px; font-weight: 600; white-space: nowrap; }
.chip--good { background: #dff5e6; color: #1b6b3d; }
.chip--honey { background: #fff0bf; color: #6b4a00; }
.chip--rose { background: #ffe0e6; color: #8a2140; }
.chip--warn { background: #ffe7d6; color: #8a3a12; }

.live { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 6px; background: #ffe3e0; color: #b4231a; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }

.av {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--h) 85% 72%), hsl(calc(var(--h) + 30) 70% 52%));
  color: #fff; font-size: 10px; font-weight: 700; box-shadow: 0 0 0 2px #fff;
}
.av--sm { width: 24px; height: 24px; font-size: 9px; }

/* Rooms (spotlight) */
.m--room { width: min(100%, 540px); padding: 26px 28px; }

/* Brief */
.m__people { display: flex; align-items: center; margin-top: 12px; }
.m__people .av + .av { margin-left: -6px; }
.m__people .m__muted { margin-left: 10px; }
.m--brief .chip { margin-top: 16px; }

/* One link */
.m__linkfield { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; min-width: 0; }
.m__linkfield > .ico { color: var(--honey-600); }
.m__linkfield span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m__sessions { margin-top: 16px; display: grid; gap: 2px; position: relative; }
.m__sessions::before { content: ""; position: absolute; left: 5px; top: 12px; bottom: 12px; width: 2px; background: var(--line); }
.m__sessions li { position: relative; display: flex; gap: 14px; align-items: center; padding: 8px 0; }
.m__sessions .dot { width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--ink-3) inset; flex: none; }
.m__sessions .is-next .dot { background: var(--honey); box-shadow: 0 0 0 3px rgba(247, 211, 62, .35); }
.m__sessions div { display: grid; }
.m__sessions strong { font-weight: 600; font-size: 13px; }
.m__sessions span { color: var(--ink-3); font-size: 12px; }

/* Files */
.m__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { display: grid; gap: 2px; padding: 10px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line); min-width: 0; }
.tile strong { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile span:last-child { font-size: 11px; color: var(--ink-3); }
.tile__tag { justify-self: start; margin-bottom: 18px; padding: 1px 5px; border-radius: 4px; background: var(--c); color: #fff; font-size: 9px; font-weight: 700; letter-spacing: .04em; }
.tile.is-presenting { box-shadow: 0 0 0 2px var(--honey-600); }
.tile.is-presenting span:last-child { color: #8a6200; font-weight: 600; }
.m__drop { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 10px; padding: 12px; border-radius: 10px; border: 1.5px dashed rgba(22, 20, 43, .18); color: var(--ink-3); font-size: 12px; }

/* Timeline */
.m__tl { margin-top: 16px; display: grid; gap: 14px; }
.m__tl li { display: grid; gap: 6px; padding-left: 16px; border-left: 2px solid var(--honey-600); }
.m__when { font-size: 12px; color: var(--ink-3); }
.m__tl .chip { justify-self: start; background: #fff; box-shadow: 0 0 0 1px var(--line); }

/* Call + Co-Pilot */
.m--call { padding: 0; overflow: hidden; width: min(100%, 440px); }
.video { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(160deg, #3a2f6e, #1a1640 70%); overflow: hidden; }
.video__person { position: absolute; left: 50%; bottom: 0; width: 62%; translate: -50% 0; fill: rgba(255, 190, 160, .9); }
.video__person path { fill: #ff8f7a; }
.video__name { position: absolute; left: 12px; bottom: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(7, 6, 26, .55); color: #fff; font-size: 11px; }
.video__self { position: absolute; right: 10px; top: 10px; width: 64px; aspect-ratio: 4 / 3; border-radius: 8px; background: linear-gradient(135deg, #f7d33e, #e88a3a); box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }
.copilot { position: relative; margin: -46px 14px 14px; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .95); box-shadow: 0 18px 40px -16px rgba(40, 20, 60, .45); }
.copilot__head { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12px; margin-bottom: 6px; }
.copilot__head > .ico { color: var(--honey-600); }
.copilot__head .chip { margin-left: auto; height: 20px; font-size: 11px; }
.copilot p { font-size: 13px; color: var(--ink-2); }
.copilot__actions { display: flex; gap: 6px; margin-top: 10px; }

/* Mood chart */
.chart { width: 100%; height: 120px; display: block; overflow: visible; }
.chart__line { fill: none; stroke: #e2553a; stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart__mark { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.chart__note { position: relative; left: var(--x); translate: -50% 0; width: max-content; margin-top: 4px; font-size: 11px; color: var(--ink-3); }

/* Chat */
.m--chat { display: grid; gap: 12px; }
.bubble { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: 13px; }
.bubble--me { justify-self: end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.bubble--agent { display: flex; gap: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line); border-bottom-left-radius: 4px; }
.agent-av { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 8px; background: var(--honey); color: var(--navy); }
.agent-av .ico { width: 15px; height: 15px; stroke-width: 2.2; }
.source { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; padding: 3px 8px; border-radius: 6px; background: rgba(247, 211, 62, .25); color: #6b4a00; font-size: 11px; font-weight: 600; }
.m__input { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: 10px; background: rgba(22, 20, 43, .05); color: var(--ink-3); }

/* Transcript */
.m--transcript .line { display: flex; gap: 10px; padding: 8px 0; }
.m--transcript .line + .line { border-top: 1px solid var(--line); }
.m--transcript b { font-weight: 600; }
.m--transcript time { color: var(--ink-3); font-size: 11px; margin-left: 4px; }
.m--transcript p { color: var(--ink-2); }
.tag { display: inline-block; margin-top: 5px; padding: 1px 7px; border-radius: 5px; font-size: 11px; font-weight: 600; }
.tag--decision { background: #e5ddff; color: #4a2a86; }
.tag--action { background: #fff0bf; color: #6b4a00; }
.caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--ink); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Audio (spotlight) */
.m--audio { width: min(100%, 520px); padding: 26px 28px; }
.track { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 10px; margin-top: 10px; }
.track__who { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.wave { display: flex; align-items: center; gap: 2px; height: 46px; }
.wave i { flex: 1; min-width: 1px; border-radius: 2px; background: var(--wc, var(--navy)); height: calc(var(--a) * 100%); transform-origin: center; animation: wave 1.6s ease-in-out infinite; animation-delay: var(--dl); }
.wave[data-tone="coral"] { --wc: #f0623e; }
@keyframes wave { 50% { transform: scaleY(.55); } }
.m__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.m__stats strong { font-size: 14px; font-weight: 600; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.bars i { width: 4px; border-radius: 1px; background: #1f8a4c; }
.bars i:nth-child(1) { height: 30%; } .bars i:nth-child(2) { height: 55%; } .bars i:nth-child(3) { height: 80%; } .bars i:nth-child(4) { height: 100%; }
.bars i.dim { background: rgba(22, 20, 43, .15); }

/* Whiteboard */
.m--board {
  min-height: 260px; display: grid; grid-template-columns: 1fr 48px 1fr; align-items: center; align-content: center; gap: 30px 8px; padding: 30px;
  background-color: rgba(255, 255, 255, .86);
  background-image: radial-gradient(rgba(22, 20, 43, .14) 1px, transparent 1.2px);
  background-size: 16px 16px;
}
.note { padding: 14px; min-height: 76px; background: var(--bg); rotate: var(--r); font-family: var(--font-sans); font-size: 15px; font-weight: 500; line-height: 1.25; box-shadow: 0 8px 18px -8px rgba(40, 20, 60, .35); }
.note--wide { grid-column: 1 / -1; justify-self: center; width: 70%; min-height: 0; }
.board__arrow { width: 48px; fill: none; stroke: var(--navy); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.cursor { position: absolute; right: 18%; bottom: 14%; padding: 2px 8px 2px 10px; border-radius: 4px 10px 10px 10px; background: var(--c); color: #fff; font-size: 11px; font-weight: 600; }
.cursor::before { content: ""; position: absolute; left: -9px; top: -9px; border: 7px solid transparent; border-left-color: var(--c); border-top-color: var(--c); border-radius: 2px; }

/* Poll */
.opt { position: relative; display: flex; justify-content: space-between; margin-top: 8px; padding: 9px 12px; border-radius: 9px; background: rgba(22, 20, 43, .05); overflow: hidden; isolation: isolate; }
.opt::before { content: ""; position: absolute; inset: 0; z-index: -1; width: var(--w); background: linear-gradient(90deg, #ffd8c8, #ffb4c2); border-radius: inherit; transform-origin: left; transition: transform 1.2s var(--ease) .35s; }
.js .reveal:not(.is-in) .opt::before { transform: scaleX(0); }
.opt b { font-weight: 600; }
.m--poll .m__title { margin-bottom: 6px; }
.m__hands { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.m__hands .ico { color: var(--honey-600); }

/* Search */
.m--search { width: min(100%, 540px); padding: 18px; }
.m__searchbar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 6px 18px -10px rgba(40, 20, 60, .3); font-size: 15px; }
.m__searchbar .ico { color: var(--ink-3); }
.result { padding: 14px 6px 12px; }
.result + .result { border-top: 1px solid var(--line); }
.result__meta { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: #4a2a86; margin-bottom: 4px; }
.result p { color: var(--ink-2); font-size: 13px; }
mark { background: linear-gradient(transparent 15%, rgba(247, 211, 62, .6) 15%, rgba(247, 211, 62, .6) 90%, transparent 90%); color: var(--ink); padding: 0 1px; }

/* Summary / tasks */
.m--summary .m__title { margin-bottom: 8px; }
.m--summary .m__label { margin-top: 16px; }
.m__todo li { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.m__todo li + li { border-top: 1px solid var(--line); }
.m__todo .av, .m__todo .m__muted, .m__todo .chip { margin-left: auto; }
.box { display: grid; place-items: center; width: 16px; height: 16px; flex: none; border-radius: 5px; box-shadow: 0 0 0 1.5px rgba(22, 20, 43, .3) inset; }
.box.is-done { background: #1f8a4c; box-shadow: none; color: #fff; }
.box .ico { width: 12px; height: 12px; stroke-width: 3; }

/* Email */
.m__field { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.m__field span { width: 56px; flex: none; color: var(--ink-3); font-weight: 400; }
.m--email .m__text { margin-top: 12px; }
.skel { display: grid; gap: 7px; margin-top: 10px; }
.skel i { display: block; height: 7px; width: var(--w); border-radius: 4px; background: rgba(22, 20, 43, .1); }
.m--email .m__foot { gap: 6px; border-top: 0; padding-top: 4px; }

/* Calendar */
.cal { display: flex; gap: 14px; margin-bottom: 18px; }
.cal__day { display: grid; place-items: center; align-content: center; width: 58px; flex: none; border-radius: 10px; background: var(--navy); color: #fff; }
.cal__day span { font-size: 11px; opacity: .75; }
.cal__day strong { font-family: var(--font-display); font-size: 22px; line-height: 1; letter-spacing: .02em; }
.cal__event { display: grid; gap: 4px; flex: 1; padding: 10px 12px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line); border-left: 4px solid #a77bf2; }
.cal__event strong { font-weight: 600; font-size: 14px; }
.cal__event > span:not(.chip) { color: var(--ink-3); font-size: 12px; }
.cal__event .chip { justify-self: start; margin-top: 2px; }

/* CRM */
.crm__row { display: grid; grid-template-columns: 90px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.crm__row > span { color: var(--ink-3); }
.crm__row > div { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.crm__row s { color: var(--ink-3); }
.crm__row .ico { color: var(--ink-3); }
.hl { font-weight: 600; padding: 1px 6px; border-radius: 5px; background: rgba(167, 123, 242, .18); color: #3f2380; }
.m--crm .m__foot { border-top: 0; }

/* Code panels */
.code {
  width: min(100%, 540px); border-radius: 14px; overflow: hidden; text-align: left;
  background: linear-gradient(170deg, #17143f, #0b0a26);
  box-shadow: 0 30px 70px -28px rgba(13, 11, 46, .7), 0 0 0 1px rgba(255, 255, 255, .08) inset;
  color: #d9dbff; font-family: var(--font-mono); font-size: 13px; line-height: 1.7;
}
.code--sm { width: min(100%, 484px); font-size: 12px; }
.code__bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.code__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.code__bar i:first-child { background: var(--honey); }
.code__bar span { margin-left: 8px; color: rgba(255, 255, 255, .5); font-size: 12px; }
.code pre { margin: 0; padding: 18px 20px 22px; overflow-x: auto; }
.code .k { color: #ff9bd2; } .code .t { color: var(--honey); } .code .s { color: #a5f0c5; }
.code .f { color: #9cc4ff; } .code .n { color: #ffb38a; } .code .p { color: #c7b8ff; }
.code .c { color: rgba(217, 219, 255, .45); } .code .ok { color: #7be0a2; }

/* Drop-in app */
.m--app { padding: 0; overflow: hidden; width: min(100%, 460px); background: rgba(255, 255, 255, .84); }
.app__bar { display: flex; align-items: center; gap: 5px; padding: 9px 12px; background: rgba(22, 20, 43, .05); }
.app__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(22, 20, 43, .18); }
.app__bar span { margin-left: 10px; padding: 2px 10px; border-radius: 6px; background: #fff; color: var(--ink-3); font-size: 11px; }
.app__body { display: grid; grid-template-columns: 1fr 120px; gap: 8px; padding: 10px; }
.app__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.vt { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 8px; background: linear-gradient(150deg, hsl(var(--h) 60% 45%), hsl(calc(var(--h) + 40) 55% 25%)); }
.vt span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .22); color: #fff; font-size: 10px; font-weight: 700; }
.app__side { padding: 10px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.app__side .ico { color: var(--honey-600); }
.app__tabs { display: grid; gap: 4px; }
.app__tabs span { display: flex; align-items: center; gap: 6px; padding: 5px 7px; border-radius: 6px; font-size: 11px; font-weight: 600; color: var(--ink-2); }
.app__tabs span.is-on { background: rgba(247, 211, 62, .28); color: var(--ink); }
.app__tabs .ico { width: 13px; height: 13px; color: currentColor; }
.app__controls { display: flex; justify-content: center; gap: 8px; padding: 2px 0 12px; }
.app__controls span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(22, 20, 43, .07); }
.app__controls .end { width: 46px; border-radius: 17px; background: #e2453a; color: #fff; }

/* Music */
.toggle { width: 38px; height: 22px; padding: 3px; border-radius: 99px; background: rgba(22, 20, 43, .2); flex: none; }
.toggle i { display: block; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.toggle.is-on { background: #5b4fe0; }
.toggle.is-on i { translate: 16px 0; }
.spectrum { display: flex; align-items: flex-end; gap: 2px; height: 110px; margin-top: 4px; }
.spectrum i { flex: 1; height: calc(var(--a) * 100%); border-radius: 2px 2px 0 0; background: linear-gradient(to top, #5b4fe0, #a77bf2 60%, #f0a9e3); transform-origin: bottom; animation: eq 1.8s ease-in-out infinite; animation-delay: var(--dl); }
@keyframes eq { 50% { transform: scaleY(.6); } }
.spectrum__axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--ink-3); }

/* Use cases / tile grids */
.m--uses { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
.use { display: grid; gap: 2px; padding: 14px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line); min-width: 0; }
.use .ico { width: 22px; height: 22px; color: var(--accent, #5b4fe0); margin-bottom: 10px; }
.use strong { font-weight: 600; font-size: 14px; }
.use span { color: var(--ink-3); font-size: 12px; }

/* ==========================================================================
   DEV PATH COMPONENTS
   ========================================================================== */

/* Numbered setup steps joined by a honey line */
.steps { position: relative; display: grid; gap: 64px; padding: 40px 0 120px; }
.steps::before { content: ""; position: absolute; left: 27px; top: 80px; bottom: 170px; width: 2px; background: linear-gradient(var(--honey-600), color-mix(in srgb, var(--honey-600) 20%, transparent)); }
.step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; scroll-margin-top: 90px; }
.step__copy { position: relative; padding-left: 84px; }
.step__num {
  position: absolute; left: 0; top: -6px; display: grid; place-items: center; width: 56px; aspect-ratio: 100 / 87;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background: var(--navy); color: var(--honey); font-family: var(--font-display); font-size: 18px; letter-spacing: .02em;
}
.step h3 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(24px, 2.3vw, 32px); font-weight: 700; letter-spacing: .015em; line-height: 1.05; }
.step p { margin-top: 12px; color: var(--ink-2); font-size: 17px; line-height: 1.6; max-width: 44ch; }
.step .code { width: 100%; max-width: 640px; justify-self: end; }

/* Code card overlapping a UI mock */
.combo { position: relative; width: min(100%, 560px); padding-bottom: 90px; }
.combo > .m { width: 100%; }
.combo > .code { position: absolute; left: -40px; bottom: 0; width: min(92%, 470px); }

/* Terminal */
.term .p { color: var(--honey); }

/* Developer Console keys */
.m--keys .key { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.m--keys .key > span:first-child { font-size: 12px; color: var(--ink-3); }
.m--keys code { font-size: 12px; padding: 4px 8px; border-radius: 6px; background: rgba(22, 20, 43, .05); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m--keys .ico { color: var(--ink-3); }
.env { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.env--live { background: #dff5e6; color: #1b6b3d; }
.env--test { background: #fff0bf; color: #6b4a00; }

/* Guides list */
.m--guides li { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.m--guides li + li { border-top: 1px solid var(--line); }
.m--guides .gi { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: rgba(247, 211, 62, .28); color: #7a5400; flex: none; }
.m--guides strong { font-weight: 600; font-size: 13.5px; }
.m--guides .ico--arrow { margin-left: auto; color: var(--ink-3); }

/* Architecture diagram */
.arch { width: min(100%, 580px); display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 14px; }
.arch__main { display: grid; gap: 10px; }
.arch__row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; position: relative; }
.arch__row:not(:last-child)::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 2px; height: 10px; background: var(--navy); opacity: .35; }
.arch__box, .arch__side > div {
  display: grid; gap: 2px; padding: 14px 16px;
  background: rgba(255, 255, 255, .8); box-shadow: 0 0 0 1px rgba(255, 255, 255, .8) inset, 0 14px 34px -18px rgba(40, 20, 60, .4);
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
}
.arch__box code, .arch__side code { font-size: 12.5px; font-weight: 500; color: var(--ink); }
.arch__box span, .arch__side span { font-size: 12px; color: var(--ink-3); }
.arch__box--top { background: var(--navy); }
.arch__box--top code { color: var(--honey); }
.arch__box--top span { color: rgba(255, 255, 255, .65); }
.arch__side { display: grid; gap: 10px; align-content: center; }
.arch__side > div { background: rgba(255, 255, 255, .55); }
.arch__caption { grid-column: 1 / -1; font-size: 12px; color: var(--ink-3); text-align: center; }

/* Capture controls */
.cap { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.cap strong { font-weight: 600; font-size: 13.5px; }
.cap .m__spacer + * { margin-left: 0; }
.cap__dot { width: 10px; height: 10px; border-radius: 50%; background: #e2453a; animation: pulse 1.4s ease-in-out infinite; flex: none; }
.cap__dot--live { background: #7b4fe0; }
.cap__dot--on { background: #1f8a4c; animation: none; }
.cap time { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); }

/* Invite dialog */
.m--invite .opt-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); }
.m--invite .m__linkfield { margin: 12px 0 6px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; }

/* Sign-in */
.m--auth .field { display: grid; gap: 4px; margin-top: 10px; }
.m--auth .field span { font-size: 11px; font-weight: 600; color: var(--ink-3); }
.m--auth .field b { display: block; padding: 9px 12px; border-radius: 9px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-weight: 500; }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 8px; }
.otp i { display: grid; place-items: center; aspect-ratio: 1; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-style: normal; font-family: var(--font-mono); font-weight: 500; font-size: 15px; }
.otp i:empty { box-shadow: 0 0 0 2px var(--accent, var(--honey-600)); }
.m--auth .m__btn--dark { width: 100%; justify-content: center; height: 34px; margin-top: 14px; }

/* Annotations on a shared screen */
.m--annot { padding: 0; overflow: hidden; }
.slide { position: relative; aspect-ratio: 16 / 10; background: #fff; padding: 18px 20px; }
.slide__title { font-family: var(--font-sans); font-weight: 600; font-size: 15px; }
.slide__bars { position: absolute; left: 20px; right: 20px; bottom: 18px; height: 55%; display: flex; align-items: flex-end; gap: 10px; }
.slide__bars i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: #c9d1ff; }
.slide__bars i:nth-child(4) { background: var(--navy); }
.ink { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #e2453a; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ink path { stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.6s var(--ease) .5s; }
.reveal.is-in .ink path, .no-js .ink path { stroke-dashoffset: 0; }
.share-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 12px; color: var(--ink-2); }
.share-bar .cursor { position: static; }

/* Intelligence hub */
.m--hub .tabs { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: rgba(22, 20, 43, .05); margin-bottom: 14px; }
.m--hub .tabs span { flex: 1; text-align: center; padding: 6px 0; border-radius: 7px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.m--hub .tabs span.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(22, 20, 43, .12); }

/* MCP agent */
.toolcall { display: grid; gap: 4px; padding: 10px 12px; border-radius: 10px; background: rgba(22, 20, 43, .04); box-shadow: 0 0 0 1px var(--line) inset; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-2); }
.toolcall b { font-family: var(--font-sans); font-size: 11px; font-weight: 700; color: var(--accent); display: flex; align-items: center; gap: 6px; }

/* Semantic relay */
.m--relay .canvas { position: relative; height: 150px; border-radius: 10px; background-color: #fff; background-image: radial-gradient(rgba(22, 20, 43, .12) 1px, transparent 1.2px); background-size: 14px 14px; box-shadow: 0 0 0 1px var(--line) inset; overflow: hidden; }
.m--relay .cursor { position: absolute; right: auto; bottom: auto; left: var(--x); top: var(--y); animation: roam var(--t, 6s) ease-in-out infinite alternate; }
@keyframes roam { to { translate: var(--dx) var(--dy); } }
.m--relay .topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.m--relay .topics code { padding: 3px 8px; border-radius: 6px; background: rgba(22, 20, 43, .06); }

/* Frameworks grid */
.m--fw { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px; }
.fw { display: grid; gap: 2px; align-content: start; padding: 12px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line); min-width: 0; }
.fw b { font-family: var(--font-sans); font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.fw span { font-size: 11.5px; color: var(--ink-3); }
.fw .fw__logo { width: 26px; height: 26px; margin-bottom: 8px; display: grid; place-items: center; border-radius: 7px; color: #fff; font-family: var(--font-mono); font-size: 10px; font-weight: 500; background: var(--c); }

/* Phone */
.phone { width: 190px; aspect-ratio: 9 / 18.5; padding: 10px; border-radius: 34px; background: #0d0b2e; box-shadow: 0 30px 60px -20px rgba(13, 11, 46, .6), 0 0 0 2px rgba(255, 255, 255, .25) inset; display: grid; grid-template-rows: auto 1fr auto; gap: 8px; }
.phone__notch { justify-self: center; width: 60px; height: 16px; border-radius: 10px; background: #000; }
.phone__tiles { display: grid; grid-template-rows: 1fr 1fr; gap: 6px; }
.phone__tiles .vt { aspect-ratio: auto; border-radius: 16px; }
.phone .app__controls { padding: 2px 0 6px; }
.phone .app__controls span { background: rgba(255, 255, 255, .12); color: #fff; width: 30px; height: 30px; }
.phone .app__controls .end { width: 40px; background: #e2453a; }
.phone-stage { display: flex; align-items: center; gap: 18px; }
.phone-stage .phone:last-child { scale: .86; rotate: 6deg; opacity: .9; }

/* Audio profiles */
.m--profiles { width: min(100%, 500px); padding: 26px 28px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 11px; background: rgba(22, 20, 43, .06); margin-bottom: 8px; }
.seg span { text-align: center; padding: 8px 0; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.seg span.is-on { background: var(--navy); color: #fff; }
.prow { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.prow b { font-weight: 600; }

/* Course player */
.lesson { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.lesson + .lesson { border-top: 1px solid var(--line); }
.lesson__state { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: rgba(22, 20, 43, .07); color: var(--ink-3); }
.lesson__state .ico { width: 13px; height: 13px; stroke-width: 2.4; }
.lesson.is-done .lesson__state { background: #1f8a4c; color: #fff; }
.lesson.is-open .lesson__state { background: var(--honey); color: var(--navy); }
.lesson div { display: grid; min-width: 0; }
.lesson strong { font-weight: 600; font-size: 13.5px; }
.lesson span { font-size: 12px; color: var(--ink-3); }
.lesson .m__btn { margin-left: auto; }

/* Example apps */
.ex { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.ex + .ex { border-top: 1px solid var(--line); }
.ex__icon { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 9px; background: var(--navy); color: var(--honey); }
.ex div { display: grid; min-width: 0; }
.ex strong { font-weight: 600; font-size: 13.5px; }
.ex span { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex .chip { margin-left: auto; }

/* Package explorer */
.pkgs { padding-top: 140px; scroll-margin-top: 60px; }
.pkgs__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; }
.pkgs__head .pill { grid-column: 1 / -1; justify-self: start; }
.pkgs__head h3 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(26px, 2.7vw, 40px); font-weight: 700; letter-spacing: .01em; line-height: 1.06; }
.pkgs__head p { color: var(--ink-2); font-size: 18px; max-width: 48ch; }
.pkgs__filters { display: flex; gap: 6px; margin: 36px 0 20px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.pkgs__filters button {
  flex: none; height: 34px; padding: 0 16px; font-size: 14px; font-weight: 600; color: var(--ink-2);
  background: rgba(255, 255, 255, .6);
  clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 9px 100%, 0 50%);
  transition: background-color .2s, color .2s;
}
.pkgs__filters button:hover { background: #fff; color: var(--ink); }
.pkgs__filters button[aria-pressed="true"] { background: var(--navy); color: var(--honey); }
.pkgs__filters button span { font-family: var(--font-mono); font-size: 11px; opacity: .65; margin-left: 4px; }
.pkgs__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pkgs__grid li[hidden] { display: none; }
.pkgs__grid a {
  display: grid; gap: 6px; height: 100%; padding: 16px 18px;
  background: rgba(255, 255, 255, .62); box-shadow: 0 0 0 1px rgba(255, 255, 255, .8) inset;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
  transition: background-color .2s, translate .25s var(--ease);
}
.pkgs__grid a:hover { background: #fff; translate: 0 -2px; }
.pkg__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.pkg__top code { font-size: 13px; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pkg__fw { flex: none; font-size: 11px; font-weight: 600; color: var(--pill-fg); background: var(--pill-bg); padding: 1px 7px; border-radius: 5px; }
.pkg__desc { font-size: 14px; line-height: 1.45; color: var(--ink-2); }

/* ==========================================================================
   CHAPTER ART (scroll-scrubbed scenes)
   ========================================================================== */
.art { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; pointer-events: none; }
.hexfield { position: absolute; inset: 0; }
.hx {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); aspect-ratio: 1 / 1.1547;
  translate: -50% -50%;
  transform: translate3d(0, calc(var(--ap, 0) * var(--depth) * -1px), 0);
  filter: blur(var(--blur));
  opacity: var(--o);
}
.hx > i { position: absolute; inset: 0; rotate: var(--rot); animation: bob var(--dur) ease-in-out var(--dl) infinite alternate; }
.hx > i::before, .hx > i::after {
  content: ""; position: absolute; inset: 0;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.hx > i::before { background: linear-gradient(150deg, rgba(255, 255, 255, .95), var(--hx1) 40%, var(--hx2)); }
.hx > i::after { inset: 7%; background: linear-gradient(330deg, rgba(255, 255, 255, .55), transparent 55%); }
@keyframes bob { to { transform: translateY(-14px); } }

/* Hexagon portal of light */
.portal { position: relative; width: min(42vmin, 380px); aspect-ratio: 1 / 1.1547; transform: scale(var(--as, 1)); }
.portal__frame, .portal__glow { position: absolute; inset: 0; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.portal__frame { background: linear-gradient(160deg, #fff7d6, #ffcc4d 40%, #f39a3d 75%, #e0702f); }
.portal__light { position: absolute; inset: 9%; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: radial-gradient(circle at 50% 42%, #fff 0 22%, #fff4c7 40%, #ffd96b 70%, #ffb648); animation: breathe 5s ease-in-out infinite; }
.portal__glow { inset: -25%; background: radial-gradient(closest-side, rgba(255, 214, 92, .9), rgba(255, 170, 80, .3) 60%, transparent); clip-path: none; filter: blur(30px); }
.portal__rays {
  position: absolute; inset: -90%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 236, 170, .55) 0deg 4deg, transparent 4deg 18deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent 70%); mask-image: radial-gradient(closest-side, #000 20%, transparent 70%);
  animation: spin 80s linear infinite;
}
@keyframes breathe { 50% { filter: brightness(1.12); } }
@keyframes spin { to { rotate: 360deg; } }

/* Concentric sound rings */
.rings { position: relative; width: min(40vmin, 360px); aspect-ratio: 1; transform: scale(var(--as, 1)); }
.rings > i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .8); box-shadow: 0 0 40px color-mix(in srgb, var(--hx2) 45%, transparent) inset, 0 0 30px color-mix(in srgb, var(--hx2) 35%, transparent); animation: ring 4.8s ease-out infinite; }
.rings > i:nth-child(2) { animation-delay: 1.2s; }
.rings > i:nth-child(3) { animation-delay: 2.4s; }
.rings > i:nth-child(4) { animation-delay: 3.6s; }
@keyframes ring { from { transform: scale(.35); opacity: 0; } 20% { opacity: 1; } to { transform: scale(1.9); opacity: 0; } }
.rings__core {
  position: absolute; inset: 26%; border-radius: 50%; display: flex; align-items: center; justify-content: center; gap: 6%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--hx1) 40%, var(--hx2) 85%);
  box-shadow: 0 30px 80px -10px color-mix(in srgb, var(--hx2) 60%, transparent), 0 0 0 10px rgba(255, 255, 255, .25);
}
.rings__core b { width: 6%; height: 40%; border-radius: 99px; background: #fff; animation: eq 1.1s ease-in-out infinite; transform-origin: center; }
.rings__core b:nth-child(2n) { animation-delay: -.3s; height: 55%; }
.rings__core b:nth-child(3n) { animation-delay: -.6s; height: 30%; }
.rings__core b:nth-child(4) { height: 62%; animation-delay: -.15s; }

/* Cards flying out */
.sent { position: relative; width: min(56vmin, 520px); aspect-ratio: 1.3; perspective: 900px; }
.sent__card {
  position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1.4; padding: 6%;
  border-radius: 16px; background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 30px 60px -20px color-mix(in srgb, var(--hx2) 55%, transparent), 0 0 0 1px rgba(255, 255, 255, .8) inset;
  display: grid; align-content: start; gap: 8%;
  transform:
    translate(-50%, -50%)
    translate3d(calc((var(--i) - 1) * 70% + var(--ap, 0) * (var(--i) - 1) * .8px), calc((var(--i) - 1) * -18% - var(--ap, 0) * (var(--i) + 1) * 1px), calc(var(--i) * 40px))
    rotateY(calc(-14deg + var(--i) * 8deg)) rotateX(8deg);
  animation: floaty 6s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -2s);
}
.sent__card .ico { width: 22%; height: auto; aspect-ratio: 1; color: var(--accent); }
.sent__card i { display: block; height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 22%, transparent); }
.sent__card i:nth-of-type(2) { width: 80%; } .sent__card i:nth-of-type(3) { width: 60%; }
.sent::before {
  content: ""; position: absolute; inset: 10% -10%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .9), color-mix(in srgb, var(--hx1) 50%, transparent) 50%, transparent);
  filter: blur(20px);
}
@keyframes floaty { to { margin-top: -18px; } }

/* Stacked hex plates */
.stack { position: relative; width: min(40vmin, 360px); aspect-ratio: 1; transform: scale(var(--as, 1)); perspective: 1200px; }
.stack__plate {
  position: absolute; inset: 0;
  transform: rotateX(62deg) rotateZ(30deg) translateZ(calc(var(--z) * 7vmin + var(--ap, 0) * var(--z) * .5px));
  transform-style: preserve-3d;
}
.stack__plate::before {
  content: ""; position: absolute; inset: 0; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .25) 0 1px, transparent 1px 22px),
    linear-gradient(150deg, rgba(255, 255, 255, .85), var(--hx1) 45%, var(--hx2));
}
.stack__plate:nth-of-type(3)::before { background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .25) 0 1px, transparent 1px 22px), linear-gradient(150deg, rgba(255, 255, 255, .9), var(--hx1) 35%, color-mix(in srgb, var(--hx2) 70%, #fff)); }
.stack__plate:nth-of-type(4)::before { background: radial-gradient(circle, #fff 0 10%, transparent 11%), linear-gradient(150deg, #fff, #ffe48a 40%, #f7b93e); }
.stack__beam {
  position: absolute; left: 50%; bottom: 30%; width: 22%; height: 140%; translate: -50% 0;
  background: linear-gradient(to top, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0));
  filter: blur(14px); opacity: .8;
}

/* ==========================================================================
   CROSSOVER BAND (links the two paths)
   ========================================================================== */
.cross { position: relative; z-index: 2; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter) 160px; }
.cross__card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center;
  padding: clamp(32px, 5vw, 64px);
  background: radial-gradient(70% 90% at 100% 100%, rgba(247, 211, 62, .28), transparent 60%), linear-gradient(150deg, #1d1650, #0b0a26);
  color: #fff;
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
}
.cross__card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='72.75' viewBox='0 0 42 72.75'%3E%3Cpath d='M14 0h14l7 12.12-7 12.13H14L7 12.12zM14 48.5h14l7 12.13-7 12.12H14l-7-12.12zM-7 24.25h14l7 12.13-7 12.12H-7l-7-12.12zM35 24.25h14l7 12.13-7 12.12H35l-7-12.12z' fill='none' stroke='%23f7d33e' stroke-opacity='.35' stroke-width='1'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(60% 80% at 100% 100%, #000, transparent 80%);
  mask-image: radial-gradient(60% 80% at 100% 100%, #000, transparent 80%);
}
.cross__card .pill { --pill-bg: rgba(247, 211, 62, .2); --pill-fg: var(--honey); margin-bottom: 18px; }
.cross__card h3 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(24px, 2.5vw, 36px); font-weight: 700; letter-spacing: .01em; line-height: 1.08; max-width: 18ch; }
.cross__card p { margin-top: 14px; color: rgba(255, 255, 255, .75); font-size: 18px; max-width: 44ch; }
.cross__card .btn { margin-top: 28px; }
.cross__card .code { justify-self: end; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1) inset; }
.cross__card .m { justify-self: end; }

/* ==========================================================================
   AVATAR PATH
   ========================================================================== */

/* The bust symbol reads these; --jaw is registered so it can animate and inherit into the <use> */
@property --jaw { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --x { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
@keyframes talk { 0%, 100% { --jaw: 0; } 35% { --jaw: 1.5; } 55% { --jaw: .4; } 75% { --jaw: 1.1; } }
.bust { display: block; width: 120px; aspect-ratio: 200 / 230; overflow: visible; }
.bust--md { width: 150px; }
.bust--lg { width: 100%; }
.talks { animation: talk .9s ease-in-out infinite; }
.bust--nod { animation: nod 2.4s ease-in-out infinite; transform-origin: 50% 72%; }
@keyframes nod { 0%, 100% { transform: rotate(0); } 30% { transform: translateY(4%) rotate(2deg); } 60% { transform: rotate(-1deg); } }

/* face mesh */
[data-mesh] line { stroke: var(--mesh-c, #f7d33e); stroke-width: .7; opacity: .8; }
[data-mesh] circle { fill: var(--mesh-c, #f7d33e); }
.scanline {
  position: absolute; left: 0; right: 0; top: 0; height: 16%; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(247, 211, 62, .25) 60%, #f7d33e 100%);
  animation: scan 2.8s ease-in-out infinite alternate;
}
@keyframes scan { to { top: 84%; } }

/* chapter art: scan, glasses, link, relay */
.scanart { position: relative; width: min(46vmin, 400px); aspect-ratio: 200 / 230; transform: scale(var(--as, 1)); --mesh-c: #2f2a63; }
.scanart__mesh { width: 100%; height: 100%; overflow: visible; }
.scanart__ghost { opacity: .22; filter: grayscale(1); }
.scanart .scanline { background: linear-gradient(to bottom, transparent, rgba(232, 185, 15, .3) 60%, #e8b90f 100%); }
.glassart { width: min(60vmin, 560px); color: var(--navy); transform: scale(var(--as, 1)); filter: drop-shadow(0 30px 40px rgba(60, 30, 120, .22)); animation: floaty 6s ease-in-out infinite alternate; }
.glassart svg { width: 100%; overflow: visible; }
.sensor { animation: pulse 1.8s ease-in-out infinite; }
.linkart { display: flex; align-items: center; gap: clamp(12px, 3vmin, 28px); transform: scale(var(--as, 1)); }
.linkart__card {
  display: grid; place-items: center; align-content: center; gap: 8px; width: min(26vmin, 210px); aspect-ratio: 1; border-radius: 22px;
  background: rgba(255, 255, 255, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 30px 60px -20px rgba(120, 50, 90, .35), 0 0 0 1px rgba(255, 255, 255, .8) inset;
  font-size: 13px; font-weight: 700; color: var(--ink-2);
}
.linkart__card > .ico { width: 40%; height: 40%; color: var(--navy); stroke-width: 1.4; }
.linkart__card .bust { width: 60%; }
.linkart__stream { position: relative; width: min(18vmin, 150px); height: 20px; }
.linkart__stream i, .split__stream i {
  position: absolute; top: 50%; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 10px var(--accent); animation: fly 1.8s linear infinite; animation-delay: calc(var(--i, 0) * .3s);
}
.linkart__stream i:nth-child(2), .split__stream i:nth-child(2) { --i: 1; } .linkart__stream i:nth-child(3), .split__stream i:nth-child(3) { --i: 2; }
.linkart__stream i:nth-child(4), .split__stream i:nth-child(4) { --i: 3; } .linkart__stream i:nth-child(5), .split__stream i:nth-child(5) { --i: 4; } .linkart__stream i:nth-child(6) { --i: 5; }
@keyframes fly { from { transform: translate(0, -50%); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } to { transform: translate(calc(100% * 14), -50%); opacity: 0; } }
.relayart { display: flex; align-items: center; transform: scale(var(--as, 1)); }
.relayart__node {
  display: grid; place-items: center; width: min(16vmin, 130px); aspect-ratio: 100 / 87; flex: none;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background: rgba(255, 255, 255, .8); color: var(--navy);
}
.relayart__node .ico { width: 36%; height: 36%; stroke-width: 1.4; }
.relayart__node--hub { width: min(20vmin, 160px); background: var(--navy); color: var(--honey); }
.relayart__wire { position: relative; width: min(14vmin, 120px); height: 4px; background: rgba(22, 20, 43, .15); }
.relayart__wire i { position: absolute; top: 50%; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px var(--accent); animation: wire 1s linear infinite; }
.relayart__wire:nth-child(4) i { animation-delay: .5s; }
@keyframes wire { from { transform: translate(-6px, -50%); } to { transform: translate(calc(min(14vmin, 120px) - 6px), -50%); } }

/* phone scan */
.phone--scan { width: 250px; }
.scanview { position: relative; overflow: hidden; border-radius: 24px; display: grid; place-items: center; background: radial-gradient(60% 50% at 50% 35%, #2f2a63, #0d0b2e 80%); }
.scanview .bust { width: 72%; margin-top: 8%; }
.scanview [data-mesh] { --mesh-c: #f7d33e; }
.scanview__hint { position: absolute; bottom: 12px; left: 50%; translate: -50% 0; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 11px; font-weight: 600; white-space: nowrap; }
.scansteps { display: flex; justify-content: center; gap: 6px; padding: 4px 0 8px; }
.scansteps span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .7); font-size: 11px; font-weight: 600; }
.scansteps .is-done { color: #7be0a2; }
.scansteps .is-now { color: #fff; }
.scansteps .is-now i { width: 6px; height: 6px; border-radius: 50%; background: var(--honey); animation: pulse 1.2s ease-in-out infinite; }

/* mesh → you */
.m--mesh { padding: 18px 22px; }
.morph { position: relative; width: 240px; margin: 0 auto; }
.morph .bust--lg { width: 100%; }
.morph__real { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--x)); animation: morph 6s ease-in-out infinite; }
.morph__edge { position: absolute; top: 4%; bottom: 0; left: var(--x); width: 2px; background: var(--honey); box-shadow: 0 0 14px 2px rgba(247, 211, 62, .7); animation: morph 6s ease-in-out infinite; }
@keyframes morph { 0%, 10% { --x: 100%; } 45%, 60% { --x: 0%; } 95%, 100% { --x: 100%; } }
.morph__labels { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--ink-3); }

/* expressions */
.m--expr { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 18px 14px; }
.m--expr figure { margin: 0; text-align: center; }
.m--expr .bust { width: 100%; }
.m--expr figcaption { margin-top: 4px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); }

/* editor */
.m--edit { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; }
.edit__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.edit__row > span:first-child { color: var(--ink-3); }
.edit__row b { font-weight: 600; }
.swatches { display: flex; gap: 6px; }
.swatches i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px #fff; }
.swatches i.is-on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--navy); }

/* approve */
.m--approve { display: grid; justify-items: center; gap: 10px; }
.approve__btns { display: flex; gap: 8px; }

/* glasses callouts */
.callouts { position: relative; width: min(100%, 540px); aspect-ratio: 400 / 260; color: var(--navy); }
.callouts__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.callouts__lead { fill: none; stroke: var(--navy); stroke-width: 1.5; stroke-dasharray: 4 4; opacity: .5; }
.callout {
  position: absolute; left: var(--x); top: var(--y); transform: translate(var(--tx, 0), var(--ty, -50%));
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 9px;
  background: #fff; box-shadow: 0 10px 28px -12px rgba(40, 20, 60, .4), 0 0 0 1px var(--line);
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.callout .ico { color: var(--accent); }

/* face signals */
.sig { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 10px; padding: 7px 0; font-size: 12.5px; font-weight: 600; }
.sig i { position: relative; height: 8px; border-radius: 4px; background: rgba(22, 20, 43, .08); overflow: hidden; }
.sig b { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--v) * 100%); border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--honey)); transform-origin: left; animation: sig var(--t, 2s) ease-in-out infinite alternate; }
@keyframes sig { to { transform: scaleX(.45); } }

/* pair */
.pair { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 0 4px; }
.pair__dev { display: grid; justify-items: center; gap: 6px; padding: 14px 16px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 12px; font-weight: 600; }
.pair__dev .ico { width: 26px; height: 26px; color: var(--navy); }
.pair__link { display: flex; align-items: center; gap: 5px; color: var(--accent); }
.pair__link i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: blink-dot 1.2s ease-in-out infinite; }
.pair__link i:nth-child(2), .pair__link i:nth-child(6) { animation-delay: .2s; }
.pair__link i:nth-child(3), .pair__link i:nth-child(7) { animation-delay: .4s; }
@keyframes blink-dot { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* video tiles */
.vtile { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: radial-gradient(70% 60% at 50% 30%, #4a3f8a, #1a1640 80%); }
.vtile .bust { width: 60%; margin-top: 16%; }
.vtile__name { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 6px; background: rgba(7, 6, 26, .55); color: #fff; font-size: 11px; font-weight: 600; }
.vtile .live { position: absolute; right: 8px; top: 8px; }
.vtile__same { position: absolute; left: 8px; top: 8px; padding: 3px 7px; border-radius: 6px; background: var(--honey); color: var(--navy); font-size: 10.5px; font-weight: 700; }
.vtile--you { background: linear-gradient(170deg, #cfe4f5 0%, #9fc2dc 55%, #6f9a6a 100%); }
.vtile--cam { background: linear-gradient(160deg, #6a5a48, #2e2620); }
.vtile--cam .bust { filter: brightness(.72) saturate(.75); }
.clutter { position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .08) 0 12px, transparent 12px 34px), radial-gradient(40% 50% at 82% 28%, rgba(255, 200, 120, .4), transparent 70%); }
.vtile--bad .bust { filter: blur(4px) saturate(.4) brightness(.8); }
.vtile--bad::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .16) 1px, transparent 1px); background-size: 10px 10px; }
.vtile--bad .chip { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 1; }
.vtile--off { background: rgba(22, 20, 43, .07); color: var(--ink-3); font-size: 12px; font-weight: 600; grid-auto-flow: row; align-content: center; gap: 6px; }
.vtile--off .ico { width: 24px; height: 24px; }

/* camera-ready */
.ready__pair, .weak__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ready__checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; font-size: 11.5px; }
.ready__checks span { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.ready__checks s { color: var(--ink-3); }
.ready__checks b { display: inline-flex; align-items: center; gap: 3px; color: #1b6b3d; font-weight: 600; }

/* anywhere */
.m--anywhere { display: grid; grid-template-columns: auto 50px minmax(0, 1fr); align-items: center; gap: 4px; }
.scenes { display: grid; gap: 8px; }
.scenes span { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 12px; font-weight: 600; white-space: nowrap; }
.scenes .ico { color: var(--accent); }
.scenes__lines { width: 50px; height: 130px; fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-dasharray: 3 3; }

/* live split */
.split { display: grid; grid-template-columns: 1fr 72px 1fr; align-items: end; gap: 6px; width: min(100%, 580px); }
.split__label { margin-bottom: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.split__stream { position: relative; height: 40px; margin-bottom: 30%; }
.split__stream span { position: absolute; left: 50%; top: 100%; translate: -50% 0; font-size: 11px; color: var(--ink-3); }

/* in sync */
.sync__row { display: grid; grid-template-columns: 44px repeat(4, 1fr); gap: 8px; align-items: center; }
.sync__who { font-size: 11px; font-weight: 700; color: var(--ink-3); }
.sync__row--you .chip { justify-content: center; }
.sync__ticks { display: grid; grid-template-columns: 44px repeat(4, 1fr); gap: 8px; height: 20px; }
.sync__ticks i { grid-column: 2; justify-self: center; border-left: 2px dashed var(--ink-3); opacity: .45; }
.sync__ticks i:nth-child(2) { grid-column: 3; } .sync__ticks i:nth-child(3) { grid-column: 4; } .sync__ticks i:nth-child(4) { grid-column: 5; }
.sync__row--them .bust { width: 100%; }

/* avatar tiles in the call grid */
.vt--av { position: relative; overflow: hidden; background: radial-gradient(70% 60% at 50% 30%, #4a3f8a, #1a1640 80%); }
.vt--av .bust { width: 58%; margin-top: 16%; }
.vt--av em { position: absolute; left: 6px; bottom: 5px; padding: 2px 5px; border-radius: 4px; background: rgba(7, 6, 26, .55); color: #fff; font-style: normal; font-size: 9px; font-weight: 600; }

/* switch */
.m--switch { width: min(100%, 440px); }
.m--switch .seg { grid-template-columns: 1fr 1fr; }
.m--switch .seg span { display: flex; align-items: center; justify-content: center; gap: 6px; }
.switch__tiles { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin-top: 12px; }

/* lanes */
.lanes { width: min(100%, 560px); display: grid; gap: 14px; }
.lane { padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .74); box-shadow: 0 0 0 1px rgba(255, 255, 255, .7) inset, 0 18px 40px -22px rgba(40, 20, 60, .35); }
.lane__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; font-weight: 700; }
.lane__head span { display: inline-flex; align-items: center; gap: 6px; }
.lane__head em { font-style: normal; font-weight: 500; font-size: 12px; color: var(--ink-3); }
.lane__track { position: relative; height: 34px; margin: 10px 0; border-radius: 8px; background: rgba(22, 20, 43, .06); overflow: hidden; }
.lane__blocks { position: absolute; left: 0; top: 0; bottom: 0; display: flex; align-items: center; gap: 4px; padding: 0 2px; width: max-content; animation: lane 7s linear infinite; }
.lane__blocks i { width: 18px; height: 22px; border-radius: 4px; background: linear-gradient(135deg, #ff9b7a, #f2709a); }
.lane--video .lane__blocks i:nth-child(3n) { background: linear-gradient(135deg, #8ea0ff, #6d6ee8); }
.lane--video .lane__blocks i:nth-child(5n) { background: linear-gradient(135deg, #ffd45c, #f5a849); }
.lane__blocks--dots { gap: 56px; animation-duration: 1.4s; }
.lane__blocks--dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
@keyframes lane { to { transform: translateX(-50%); } }
.lane__meter { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--ink-3); }
.lane__meter i { position: relative; flex: 1; height: 8px; border-radius: 4px; background: rgba(22, 20, 43, .08); }
.lane__meter i::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--honey)); }

/* latency */
.lat { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.lat .bust { width: 92px; justify-self: center; }
.lat__arrow { display: grid; justify-items: center; gap: 4px; font-size: 11px; color: var(--ink-3); }
.lat__arrow i { position: relative; width: 56px; height: 2px; background: var(--accent); }
.lat__arrow i::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--accent); }
.dial { margin-top: 10px; }
.dial__face { position: relative; height: 58px; }
.dial__face::before {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 120px; height: 60px; translate: -50% 0;
  border-radius: 120px 120px 0 0;
  background: conic-gradient(from 270deg at 50% 100%, #1b8a4c, var(--honey) 50%, #e2453a 100%);
  -webkit-mask: radial-gradient(circle at 50% 100%, transparent 44px, #000 45px); mask: radial-gradient(circle at 50% 100%, transparent 44px, #000 45px);
}
.dial__needle { position: absolute; left: 50%; bottom: 0; width: 3px; height: 52px; margin-left: -1.5px; border-radius: 2px; background: var(--navy); transform-origin: bottom; transform: rotate(-74deg); animation: needle 3s ease-in-out infinite alternate; }
@keyframes needle { to { transform: rotate(-60deg); } }
.dial__scale { display: flex; justify-content: space-between; margin-top: 4px; font-size: 11px; color: var(--ink-3); }

/* weak connection */
.bars--weak i { background: #e2453a; }

/* rendered at the other end */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 6px; }
.flow__step { display: grid; justify-items: center; gap: 3px; padding: 12px 8px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line); text-align: center; font-size: 11px; color: var(--ink-3); }
.flow__step b { font-size: 12.5px; color: var(--ink); font-weight: 600; }
.flow__step .ico { width: 24px; height: 24px; margin-bottom: 4px; color: var(--navy); }
.flow__step--hub { background: var(--navy); color: rgba(255, 255, 255, .7); }
.flow__step--hub b, .flow__step--hub .ico { color: var(--honey); }
.flow__wire { display: flex; gap: 4px; }
.flow__wire i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: blink-dot 1.2s ease-in-out infinite; }
.flow__wire i:nth-child(2) { animation-delay: .2s; } .flow__wire i:nth-child(3) { animation-delay: .4s; }

/* crossover with two buttons, and the room roster */
.cross__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cross__btns .btn { margin-top: 0; }
.cross__card .btn--ghost { color: #fff; }
.who { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.who:first-of-type { border-top: 0; }
.who .bust { width: 34px; height: 34px; border-radius: 50%; background: #2a2452; }
.who div { display: grid; }
.who strong { font-size: 13px; font-weight: 600; }
.who span { font-size: 11.5px; color: var(--ink-3); }

.hero--avatar .wordmark { font-size: min(13.6vw, 32vh); }

/* ==========================================================================
   SUBPAGES (features, pricing, demo, contact): same look, quieter motion
   ========================================================================== */
.subhero {
  position: relative; overflow: hidden; color: #fff; z-index: 1;
  display: grid; align-content: end; min-height: 52vh;
  padding: calc(88px + 8vh) var(--gutter) 7vh;
  background:
    radial-gradient(55% 45% at 82% 30%, rgba(60, 74, 190, .4), transparent 70%),
    radial-gradient(45% 40% at 6% 78%, rgba(176, 58, 92, .32), transparent 70%),
    radial-gradient(120% 55% at 50% 118%, rgba(247, 211, 62, .5), rgba(214, 140, 50, .2) 38%, transparent 68%),
    linear-gradient(180deg, #05041a 0%, #0d0b2e 40%, #251a58 80%, #3b2c6a 100%);
}
.subhero .comb { -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.subhero__inner { position: relative; z-index: 1; width: 100%; max-width: 1288px; margin: 0 auto; }
.subhero__kicker { --pill-bg: rgba(247, 211, 62, .2); --pill-fg: var(--honey); margin-bottom: 18px; }
.subhero h1 {
  font-family: var(--font-display); text-transform: uppercase; font-weight: 700;
  font-size: clamp(36px, 6vw, 84px); line-height: 1; letter-spacing: .01em; max-width: 16ch;
}
.subhero h1 em { font-style: normal; color: var(--honey); }
.subhero__lede { margin-top: 18px; max-width: 56ch; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: rgba(255, 255, 255, .78); }
.subhero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.subhero .btn--ghost { color: #fff; }

.page { position: relative; z-index: 1; max-width: 1288px; margin: 0 auto; padding: 64px var(--gutter) 120px; }
.section + .section { margin-top: 80px; }
.section__head { display: grid; gap: 10px; margin-bottom: 28px; max-width: 64ch; }
.section__head h2 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(22px, 2.4vw, 32px); letter-spacing: .015em; line-height: 1.1; }
.section__head p { color: var(--ink-2); font-size: 17px; }
.section__head .pill { justify-self: start; }

/* light fade-in for subpage blocks */
.fade { transition: opacity .7s var(--ease), translate .7s var(--ease); }
.js .fade:not(.is-in) { opacity: 0; translate: 0 16px; }

/* glass panel with hex-cut corners */
.panel {
  position: relative; padding: clamp(20px, 3vw, 36px);
  background: rgba(255, 255, 255, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .85) inset, 0 24px 60px -30px rgba(40, 20, 60, .3);
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px);
}
.panel--dark { background: linear-gradient(150deg, #1d1650, #0b0a26); color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset; }

/* Platform / SDK switch on pricing pages */
.tabs2 { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(22, 20, 43, .07); margin-bottom: 32px; }
.tabs2 a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 18px; border-radius: 9px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.tabs2 a[aria-current] { background: var(--navy); color: #fff; }
.tabs2 .ico { width: 14px; height: 14px; }

/* feature matrix */
.fgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fcard {
  display: grid; gap: 6px; align-content: start; padding: 18px 20px 16px;
  background: rgba(255, 255, 255, .66); box-shadow: 0 0 0 1px rgba(255, 255, 255, .85) inset;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
}
.fcard h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.fcard h3::before { content: ""; width: 10px; height: 9px; flex: none; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); background: var(--honey-600); }
.fcard p { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.fcard__tags { display: flex; gap: 6px; margin-top: 6px; }
.fcard__tags span { font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; background: rgba(22, 20, 43, .07); color: var(--ink-2); }
.fcard__tags .t-io { background: #fff0bf; color: #6b4a00; }
.fcard__tags .t-dev { background: #dde3ff; color: #26246b; }

/* plan card + feature table */
.plan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 16px; align-items: start; }
.plan__card { display: grid; gap: 8px; }
.plan__name { font-family: var(--font-display); text-transform: uppercase; font-size: 22px; letter-spacing: .03em; }
.plan__price { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.plan__price strong { font-family: var(--font-display); font-size: clamp(56px, 6vw, 80px); line-height: 1; letter-spacing: .01em; }
.plan__price span { font-size: 16px; color: var(--ink-2); }
.plan__note { color: var(--ink-2); font-size: 15px; }
.plan__card .btn { margin-top: 14px; justify-self: start; }
.plan__fine { font-size: 13px; color: var(--ink-3); }
.ptable { width: 100%; border-collapse: collapse; font-size: 15px; }
.ptable th, .ptable td { padding: 12px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ptable th { font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.ptable td:last-child, .ptable th:last-child { text-align: right; white-space: nowrap; }
.ptable .ico { display: inline-block; width: 18px; height: 18px; color: #1b8a4c; stroke-width: 2.6; vertical-align: -4px; }
.ptable tr:last-child td { border-bottom: 0; }

/* per-minute rate cards */
.rates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rate { display: grid; gap: 4px; align-content: start; }
.rate h3 { font-size: 16px; font-weight: 600; }
.rate__price { font-family: var(--font-display); font-size: clamp(34px, 3.4vw, 44px); line-height: 1; letter-spacing: .01em; margin: 10px 0 2px; }
.rate__unit { font-size: 13px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.rate__extra { font-size: 13px; color: var(--ink-2); }
.rate p { margin-top: 10px; font-size: 14.5px; color: var(--ink-2); }

/* cost calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.calc__row { display: grid; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.calc__row label { font-weight: 600; font-size: 15px; }
.calc__inputs { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 12px; align-items: center; }
.calc input[type="range"] { width: 100%; accent-color: var(--honey-600); }
.calc input[type="number"] { height: 38px; padding: 0 10px; border-radius: 8px; border: 1px solid rgba(22, 20, 43, .2); background: #fff; font: inherit; font-size: 15px; }
.calc__toggles { display: grid; gap: 12px; padding-top: 16px; }
.calc__toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 15px; }
.calc__toggle small { display: block; font-weight: 400; font-size: 13px; color: var(--ink-3); }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: rgba(22, 20, 43, .22); transition: background .2s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: translate .2s var(--ease); }
.switch input:checked + span { background: var(--navy); }
.switch input:checked + span::after { translate: 18px 0; }
.switch input:focus-visible + span { outline: 2px solid var(--honey-600); outline-offset: 2px; }
.calc__type { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-3); }
.calc__type b { color: var(--ink); }
.calc__out { display: grid; gap: 12px; }
.calc__out h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 20px; letter-spacing: .03em; color: var(--honey); }
.calc__line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: 15px; color: rgba(255, 255, 255, .75); }
.calc__line b { color: #fff; font-weight: 600; }
.calc__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 8px; }
.calc__total span { font-size: 15px; color: rgba(255, 255, 255, .75); }
.calc__total strong { font-family: var(--font-display); font-size: clamp(36px, 3.6vw, 48px); letter-spacing: .01em; }
.calc__rate { font-size: 13px; color: rgba(255, 255, 255, .55); }
.calc__big { display: none; padding: 14px 16px; border-radius: 10px; background: rgba(247, 211, 62, .14); color: #fff; font-size: 15px; }
.calc.is-big .calc__big { display: block; }
.calc.is-big .calc__total, .calc.is-big .calc__line { display: none; }
.calc__out .btn { justify-self: start; margin-top: 6px; }

/* demo + contact */
.split2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px; align-items: start; }
.checks { display: grid; gap: 12px; margin-top: 22px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; color: var(--ink-2); }
.checks .ico { flex: none; margin-top: 3px; width: 18px; height: 18px; color: #1b8a4c; stroke-width: 2.6; }
.calendly { min-height: 700px; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 24px 60px -30px rgba(40, 20, 60, .35), 0 0 0 1px var(--line); }
.calendly-inline-widget { min-width: 300px; height: 700px; }
.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 32px; }
.ccard { display: grid; gap: 6px; align-content: start; }
.ccard .ico { width: 24px; height: 24px; color: var(--honey-600); margin-bottom: 6px; }
.ccard h3 { font-size: 17px; font-weight: 600; }
.ccard p { font-size: 14.5px; color: var(--ink-2); }
.ccard a.big { font-size: 18px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--honey-600); }
/* closing band on subpages */
.band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; margin-top: 96px; }
.band h2 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(24px, 2.8vw, 38px); letter-spacing: .015em; line-height: 1.05; }
.band p { margin-top: 8px; color: rgba(255, 255, 255, .72); font-size: 16px; max-width: 48ch; }
.band__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.band .btn--ghost { color: #fff; }

@media (max-width: 1080px) {
  .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .subhero { min-height: 44vh; }
  .plan, .calc, .split2, .band { grid-template-columns: minmax(0, 1fr); }
  .rates, .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .fgrid, .rates, .contact-cards { grid-template-columns: minmax(0, 1fr); }
  .page { padding-top: 40px; padding-bottom: 80px; }
  .section + .section { margin-top: 56px; }
  .calc__inputs { grid-template-columns: minmax(0, 1fr) 84px; }
  .calendly, .calendly-inline-widget { min-height: 640px; height: 640px; }
  .band { margin-top: 64px; }
}

/* ==========================================================================
   FINALE
   ========================================================================== */
/* Nightfall: transparent at the top so the last chapter's atmosphere flows into it */
.finale {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  padding: 34vh var(--gutter) 22vh;
  background:
    radial-gradient(70% 30% at 50% 34%, rgba(247, 211, 62, .16), transparent 70%),
    radial-gradient(50% 40% at 85% 70%, rgba(60, 74, 190, .4), transparent 70%),
    linear-gradient(180deg, rgba(37, 26, 88, 0) 0%, rgba(37, 26, 88, .7) 12%, #1d1650 26%, #0b0a26 62%, #05041a 100%);
}
.finale .comb { -webkit-mask-image: linear-gradient(transparent, #000 35%); mask-image: linear-gradient(transparent, #000 35%); }
.finale__inner { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; }
.finale__title {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(38px, 6.2vw, 96px); line-height: .98; letter-spacing: .01em;
}
.finale__title em { font-style: normal; color: var(--honey); }
.finale__sub { margin: 28px auto 0; max-width: 38ch; font-size: clamp(18px, 1.6vw, 22px); color: rgba(255, 255, 255, .78); }
.finale__ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.finale .btn--ghost { color: #fff; }
.finale__stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px 64px; margin-top: 96px; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, .16); }
.finale__stats li { display: grid; gap: 2px; }
.finale__stats strong { font-family: var(--font-display); text-transform: uppercase; font-size: 30px; font-weight: 700; letter-spacing: .02em; }
.finale__stats span { color: rgba(255, 255, 255, .6); font-size: 14px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: #fff; color: var(--ink); padding: 80px var(--gutter) 40px; }
.footer__top { max-width: 1288px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer__brand img { width: 120px; height: auto; }
.footer__brand p { margin-top: 16px; max-width: 26ch; color: var(--ink-3); font-size: 15px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h4 { font-family: var(--font-sans); font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.footer__col a { color: var(--ink-2); font-size: 15px; width: fit-content; }
.footer__col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom { max-width: 1288px; margin: 64px auto 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__menu { display: flex; }
}
@media (max-width: 1080px) {
  .hero__index a:not(.hero__index-head) { display: none; }
  .pkgs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .combo > .code { left: -12px; }
}

@media (max-width: 860px) {
  .grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .spot { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-bottom: 96px; }
  .spot--flip { padding-top: 96px; }
  .feature__stage { aspect-ratio: auto; min-height: 380px; padding: 28px 18px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .chapter__intro { height: 240vh; }
  .step { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .step .code { justify-self: stretch; }
  .steps::before { display: none; }
  .cross__card { grid-template-columns: minmax(0, 1fr); }
  .cross__card .code, .cross__card .m { justify-self: stretch; width: 100%; }
  .pkgs__head { grid-template-columns: minmax(0, 1fr); }
  .arch { grid-template-columns: minmax(0, 1fr); }
  .arch__side { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { height: 64px; grid-template-columns: auto 1fr auto; gap: 10px; }
  .nav__logo { justify-self: center; }
  .brand__mark { width: 52px; height: 51px; }
  .brand__word { display: none; }
  .nav__demo { display: none; }
  .nav .btn--solid { height: 32px; padding: 0 12px; font-size: 13px; }
  .paths a { height: 28px; padding: 0 9px; font-size: 12.5px; }
  .paths .ico { display: none; }
  .hero__index { display: none; }
  .hero__title { padding-bottom: 6vh; }
  .wordmark, .hero--avatar .wordmark { white-space: normal; text-align: center; font-size: 25vw; line-height: .92; }
  .chapbar { gap: 8px; padding-bottom: 12px; }
  .chapbar a { font-size: 11px; padding-top: 8px; }
  .chapbar__label em { display: none; }
  .m { padding: 18px; }
  .m__cols { grid-template-columns: 1fr; gap: 0; }
  .m__tiles { grid-template-columns: 1fr 1fr; }
  .m__tiles .tile:last-child { display: none; }
  .m--board { padding: 22px 16px; gap: 22px 14px; }
  .note { font-size: 13px; padding: 10px; }
  .app__body { grid-template-columns: 1fr; }
  .app__side { display: none; }
  .m--fw { grid-template-columns: 1fr 1fr; }
  .phone-stage .phone:last-child { display: none; }
  .combo { padding-bottom: 0; display: grid; gap: 14px; }
  .m--expr { grid-template-columns: 1fr 1fr; }
  .m--anywhere { grid-template-columns: minmax(0, 1fr); }
  .scenes__lines { display: none; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split__stream { height: 28px; margin: 0; transform: rotate(90deg); }
  .split__stream span { display: none; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow__wire { justify-content: center; }
  .callout { font-size: 11px; padding: 5px 8px; }
  .combo > .code { position: static; width: 100%; }
  .step__copy { padding-left: 0; padding-top: 70px; }
  .step__num { top: 0; }
  .pkgs__grid { grid-template-columns: minmax(0, 1fr); }
  .arch__side { grid-template-columns: minmax(0, 1fr); }
  .finale__stats { gap: 24px 16px; margin-top: 64px; }
  .finale__stats li { flex: 1 1 40%; }
  .btn--lg { width: 100%; }
}

/* ==========================================================================
   REDUCED MOTION: show the end state of every scroll scene
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .hero { height: auto; }
  .hero__sticky { position: relative; height: auto; min-height: 100svh; padding: 120px 0 60px; display: grid; gap: 40px; align-content: center; }
  .hero__title, .hero__intro, .hero__index { position: relative; inset: auto; left: auto; top: auto; translate: none; margin: 0 auto; }
  .hero__title { padding: 0; }
  .hero__dawn { display: none; }
  .hero__intro .w, .chapter__statement .w { opacity: 1 !important; filter: none !important; }
  .chapter__intro { height: auto; }
  .chapter__sticky { position: relative; height: auto; min-height: 90vh; }
  .js .chapter__title, .js .chapter__statement { opacity: 1; translate: none; }
  .chapter__head::before { opacity: 1; }
  .art { opacity: .35; }
  .ink path { stroke-dashoffset: 0; }
}
