/* ═══════════════════════════════════════════════════════════════
   Lymegrove design system — shared across / and every product page
   Tokens → base → layout → components → hero slider → product themes
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Surfaces */
  --bg: #060709;
  --bg-2: #0b0c10;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);

  /* Ink */
  --ink: #f4f5f7;
  --ink-2: #b4b8c2;
  --ink-3: #8b909c;

  /* Brand — lime, the grove */
  --lime: #c6f36b;
  --accent: var(--lime);
  --accent-2: #6be3c4;
  --accent-ink: #0a0d06;

  /* Type */
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-serif: "Instrument Serif", ui-serif, Georgia, serif;
  --font-display: var(--font-sans);

  /* Rhythm */
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(88px, 12vw, 160px);
  --radius: 22px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  color-scheme: dark;
}

/* ─── Base ──────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

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

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14px;
  transform: translateY(-160%); transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: none; }

/* Film-grain noise — one fixed layer, GPU composited, never repaints */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none;
  opacity: 0.055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─── Layout ────────────────────────────────────────────────── */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section--rule { border-top: 1px solid var(--line); }

/* Section head */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
}
.eyebrow--plain::before { display: none; }

.sh { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.sh--center { margin-inline: auto; text-align: center; }
.sh__title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(36px, 5.4vw, 68px);
  font-weight: 500; line-height: 1.02; letter-spacing: -0.035em;
  text-wrap: balance;
}
.sh__title em, .serif-em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  letter-spacing: -0.01em; color: var(--ink-2);
}
.sh__sub { margin-top: 20px; color: var(--ink-2); font-size: clamp(16px, 1.4vw, 19px); max-width: 600px; text-wrap: pretty; }
.sh--center .sh__sub { margin-inline: auto; }

.mono { font-family: var(--font-mono); }
.muted { color: var(--ink-3); }

/* ─── Buttons ───────────────────────────────────────────────── */

.btn {
  --b-bg: var(--surface-2);
  --b-ink: var(--ink);
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--b-bg); color: var(--b-ink);
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap;
  cursor: pointer; isolation: isolate;
  transition: transform 0.35s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.35s var(--ease);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.28); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--primary {
  --b-bg: var(--accent); --b-ink: var(--accent-ink);
  border-color: transparent; font-weight: 600;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent), 0 10px 40px -10px var(--accent);
}
.btn--primary:hover { border-color: transparent; box-shadow: 0 0 0 1px var(--accent), 0 14px 50px -8px var(--accent); }
.btn--ghost { --b-bg: transparent; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { margin-top: 18px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink-3); }

/* Status chip (beta / coming soon / on the App Store) */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface);
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2);
}
.chip__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ─── Glass & gradient borders ──────────────────────────────── */

.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015));
  -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%);
}

/* 1px gradient hairline that brightens toward the top-left light source */
.edge { position: relative; border-radius: var(--radius); }
.edge::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(255,255,255,0.22), rgba(255,255,255,0.04) 35%, rgba(255,255,255,0.02) 65%, color-mix(in srgb, var(--accent) 45%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

.card {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012));
  transition: transform 0.5s var(--ease), background 0.4s;
}
.card:hover { background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); }
.card__icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent); margin-bottom: 22px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent);
}
.card__icon svg { width: 22px; height: 22px; }
.card__num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 18px; display: block; }
.card h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.card p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.card__meta { margin-top: 16px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-3); }

.grid { display: grid; gap: clamp(14px, 1.6vw, 20px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* Ambient glow blob */
.glow {
  position: absolute; pointer-events: none; border-radius: 50%;
  filter: blur(90px); opacity: 0.5; z-index: 0;
  background: radial-gradient(circle, var(--accent), transparent 65%);
}

/* ─── App icon (Apple squircle proportions) ─────────────────── */

.app-icon {
  width: var(--s, 64px); height: var(--s, 64px); flex: none;
  border-radius: calc(var(--s, 64px) * 0.2237);
  overflow: hidden; background: #111;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 10px 30px -8px rgba(0,0,0,0.7);
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; }

/* ─── Device frames ─────────────────────────────────────────── */
/* Screens are raw captures; the hardware is drawn in CSS so every
   product shares one consistent, crisp, resolution-independent frame. */

.dev-phone {
  --w: 300px;
  position: relative; width: var(--w); flex: none;
  padding: calc(var(--w) * 0.032);
  border-radius: calc(var(--w) * 0.165);
  background:
    linear-gradient(145deg, #4a4e57 0%, #1b1d22 18%, #0c0d10 55%, #2a2d33 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.16),
    inset 0 0 0 calc(var(--w) * 0.012) #050506,
    0 calc(var(--w) * 0.12) calc(var(--w) * 0.25) calc(var(--w) * -0.06) rgba(0,0,0,0.85),
    0 0 0 0.5px rgba(0,0,0,0.9);
}
.dev-phone__screen {
  position: relative; overflow: hidden; background: #000;
  border-radius: calc(var(--w) * 0.135);
  aspect-ratio: 1320 / 2868;
}
.dev-phone__screen img, .dev-phone__screen video { width: 100%; height: 100%; object-fit: cover; }
.dev-phone__screen::after {
  /* Dynamic Island */
  content: ""; position: absolute; left: 50%; top: calc(var(--w) * 0.03);
  width: calc(var(--w) * 0.3); height: calc(var(--w) * 0.088);
  transform: translateX(-50%); border-radius: 999px; background: #000;
}
.dev-phone__screen--no-island::after { display: none; }
.dev-phone::after {
  /* Specular sheen across the glass */
  content: ""; position: absolute; inset: calc(var(--w) * 0.032); border-radius: calc(var(--w) * 0.135);
  background: linear-gradient(115deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 32%);
  pointer-events: none;
}

.dev-window { position: relative; }
.dev-window img { width: 100%; filter: drop-shadow(0 40px 60px rgba(0,0,0,0.6)); }
.dev-window--framed {
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 50px 100px -30px rgba(0,0,0,0.9);
}
.dev-window--framed img { filter: none; }

.dev-ipad {
  --w: 520px;
  width: var(--w); padding: calc(var(--w) * 0.028);
  border-radius: calc(var(--w) * 0.06);
  background: linear-gradient(145deg, #3d4048, #121317 40%, #26282d);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14), 0 40px 90px -30px rgba(0,0,0,0.9);
}
.dev-ipad img { border-radius: calc(var(--w) * 0.035); width: 100%; aspect-ratio: 2064 / 2752; object-fit: cover; }

/* ─── Navigation ────────────────────────────────────────────── */

.nav {
  position: fixed; top: 14px; left: 50%; z-index: 90;
  width: min(calc(100% - 24px), 1180px);
  transform: translateX(-50%);
  transition: top 0.4s var(--ease);
}
.nav__bar {
  display: flex; align-items: center; gap: 16px;
  height: 58px; padding: 0 8px 0 20px; border-radius: 999px;
  background: rgba(10, 11, 14, 0.55);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 10px 40px -12px rgba(0,0,0,0.6);
  transition: background 0.4s;
}
.nav.is-scrolled .nav__bar { background: rgba(10, 11, 14, 0.78); }
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; font-size: 17px; flex: none; }
.nav__mark {
  width: 22px; height: 22px; border-radius: 7px; flex: none;
  background: conic-gradient(from 210deg, var(--lime), #6be3c4, #7b8cff, var(--lime));
  box-shadow: 0 0 18px -2px color-mix(in srgb, var(--lime) 70%, transparent);
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 4px, #000 4.5px); mask: radial-gradient(circle at 50% 50%, transparent 4px, #000 4.5px);
}
.nav__crumb { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink-2); font-size: 15px; font-weight: 500; }
.nav__crumb::before { content: ""; width: 1px; height: 18px; background: var(--line-2); transform: rotate(18deg); }
.nav__crumb .app-icon { --s: 24px; box-shadow: 0 0 0 1px rgba(255,255,255,0.12); }
.nav__crumb span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav__links { display: flex; gap: 2px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav__links a {
  display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 999px;
  font-size: 14px; color: var(--ink-2); transition: color 0.2s, background 0.2s;
}
.nav__links a:hover, .nav__links a[aria-current="true"] { color: var(--ink); background: rgba(255,255,255,0.06); }
.nav__cta { flex: none; }
.nav__links + .nav__cta { margin-left: 4px; }
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
}
@media (max-width: 420px) {
  .nav__bar { padding-left: 14px; gap: 10px; }
  .nav__brand .nav__word { display: none; }
}

/* ─── Reveal on scroll ──────────────────────────────────────── */

.js .reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }

/* ═══════════════════════════════════════════════════════════════
   HERO SLIDER
   ═══════════════════════════════════════════════════════════════ */

.hs {
  --hs-h: max(720px, min(100svh, 980px));
  position: relative; min-height: var(--hs-h);
  overflow: hidden; isolation: isolate;
  background: var(--bg);
}
.hs:focus-visible { outline-offset: -4px; border-radius: 0; }

/* Per-slide atmospheres, cross-faded */
.hs__atmos { position: absolute; inset: 0; z-index: -1; }
.hs__bg {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.2s var(--ease-in-out);
}
.hs__bg.is-active { opacity: 1; }
.hs__bg::before, .hs__bg::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(100px);
  transform: translate3d(calc(var(--px, 0) * -30px), calc(var(--py, 0) * -20px), 0);
  transition: transform 1.2s var(--ease);
}
.hs__bg::before { width: 62vw; height: 62vw; right: -14vw; top: -18vw; background: radial-gradient(circle, var(--g1), transparent 62%); opacity: 0.55; }
.hs__bg::after  { width: 46vw; height: 46vw; left: -14vw; bottom: -22vw; background: radial-gradient(circle, var(--g2), transparent 62%); opacity: 0.4; }
.hs__grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 75%);
  mask: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 75%);
}
.hs__vignette { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, transparent 60%, var(--bg) 100%); }

.hs__track { position: relative; height: var(--hs-h); touch-action: pan-y; }

.hs__slide {
  position: absolute; inset: 0;
  display: grid; align-items: center;
  padding-top: 92px; padding-bottom: 150px;
  visibility: hidden;
}
.hs__slide.is-active, .hs__slide.is-leaving { visibility: visible; }
.hs__inner {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center; gap: clamp(24px, 4vw, 64px);
}

/* Copy column — staggered entrance */
.hs__copy > * {
  opacity: 0; transform: translate3d(0, 26px, 0); filter: blur(8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), filter 0.5s var(--ease);
}
.hs__slide.is-active .hs__copy > * {
  opacity: 1; transform: none; filter: none;
  transition-duration: 1s; transition-delay: calc(var(--d, 0) * 70ms + 260ms);
}
.hs__slide.is-leaving .hs__copy > * { opacity: 0; transform: translate3d(0, -14px, 0); filter: blur(6px); transition-delay: 0s; }
.hs__copy > :nth-child(1) { --d: 0; } .hs__copy > :nth-child(2) { --d: 1; } .hs__copy > :nth-child(3) { --d: 2; }
.hs__copy > :nth-child(4) { --d: 3; } .hs__copy > :nth-child(5) { --d: 4; } .hs__copy > :nth-child(6) { --d: 5; }

.hs__kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.hs__kicker .app-icon { --s: 52px; }
.hs__kicker-text { display: grid; gap: 2px; }
.hs__index { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--ink-3); }
.hs__cat { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hs-accent); }

.hs__title { font-size: clamp(52px, 7.6vw, 112px); line-height: 0.92; letter-spacing: -0.04em; font-weight: 500; }
.hs__tag { margin-top: 22px; font-size: clamp(20px, 2vw, 26px); line-height: 1.25; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.hs__desc { margin-top: 14px; max-width: 470px; color: var(--ink-2); font-size: 16.5px; }
.hs__copy .cta-row { margin-top: 32px; }
.hs__copy .chip-row { margin-top: 26px; }
.hs__slide .btn--primary { --accent: var(--hs-accent); --accent-ink: var(--hs-ink, #050505); }

/* Stage column — devices glide in, react to the pointer */
.hs__stage {
  position: relative; height: min(64vh, 640px); min-height: 440px;
  perspective: 1600px;
}
.hs__dev {
  position: absolute;
  opacity: 0;
  transform: translate3d(calc(var(--tx, 0px) + 80px), calc(var(--ty, 0px) + 20px), 0) rotate(var(--r, 0deg)) scale(0.94);
  transition: opacity 0.6s var(--ease), transform 0.9s var(--ease);
  will-change: transform, opacity;
}
.hs__slide.is-active .hs__dev {
  opacity: 1;
  transform:
    translate3d(calc(var(--tx, 0px) + var(--px, 0) * var(--depth, 14px)), calc(var(--ty, 0px) + var(--py, 0) * var(--depth, 14px)), 0)
    rotate(var(--r, 0deg));
  transition: opacity 1s var(--ease) calc(var(--dd, 0) * 110ms + 120ms), transform 1.4s var(--ease) calc(var(--dd, 0) * 110ms + 120ms);
}
.hs.is-tracking .hs__slide.is-active .hs__dev { transition: opacity 1s var(--ease), transform 0.6s var(--ease); }
.hs__slide.is-leaving .hs__dev {
  opacity: 0; transform: translate3d(calc(var(--tx, 0px) - 60px), var(--ty, 0px), 0) rotate(var(--r, 0deg)) scale(0.97);
  transition-duration: 0.55s; transition-delay: 0s;
}
.hs.is-back .hs__slide:not(.is-active):not(.is-leaving) .hs__dev { transform: translate3d(calc(var(--tx, 0px) - 80px), calc(var(--ty, 0px) + 20px), 0) rotate(var(--r, 0deg)) scale(0.94); }
.hs.is-back .hs__slide.is-leaving .hs__dev { transform: translate3d(calc(var(--tx, 0px) + 60px), var(--ty, 0px), 0) rotate(var(--r, 0deg)) scale(0.97); }

/* Halo under the hero device */
.hs__halo {
  position: absolute; left: 50%; top: 50%; width: 70%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--hs-accent) 35%, transparent), transparent 65%);
  filter: blur(40px); opacity: 0; transition: opacity 1.4s var(--ease);
}
.hs__slide.is-active .hs__halo { opacity: 0.8; }

/* Controls */
.hs__ui {
  position: absolute; left: 0; right: 0; bottom: clamp(24px, 4vh, 44px); z-index: 5;
}
.hs__ui-inner { display: flex; align-items: flex-end; gap: 20px; }
.hs__tabs { flex: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.hs__tab {
  all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 10px; width: 100%;
  padding: 10px 2px 4px; color: var(--ink-3); transition: color 0.3s;
}
.hs__tab:hover, .hs__tab[aria-selected="true"] { color: var(--ink); }
.hs__tab:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.hs__tab-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs__tab-num { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.hs__bar { position: relative; height: 2px; border-radius: 2px; background: rgba(255,255,255,0.12); overflow: hidden; }
.hs__bar i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: var(--tab-accent, var(--ink)); border-radius: inherit; box-shadow: 0 0 10px var(--tab-accent); }
.hs__tab[aria-selected="true"] .hs__bar i { transform: scaleX(var(--p, 0)); }
.hs__tab.is-done .hs__bar i { transform: scaleX(1); opacity: 0.35; }

.hs__btns { display: flex; gap: 8px; flex: none; }
.hs__btn {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line-2); background: rgba(255,255,255,0.04);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background 0.25s, border-color 0.25s, transform 0.3s var(--ease);
}
.hs__btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); }
.hs__btn:active { transform: scale(0.94); }
.hs__btn svg { width: 18px; height: 18px; }
.hs__btn .i-play { display: none; }
.hs.is-paused .hs__btn .i-play { display: block; }
.hs.is-paused .hs__btn .i-pause { display: none; }

.hs__hint { margin-top: 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-3); }
.hs__hint kbd { font-family: inherit; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--ink-2); }

/* Bespoke slide typography */
.hs__title--gather { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.03em; font-size: clamp(72px, 10vw, 150px); }
.hs__title--gather i { color: var(--hs-accent); }
.hs__title--flo { font-weight: 300; letter-spacing: -0.06em; }
.hs__title--flo b { font-weight: 600; background: linear-gradient(100deg, #9b8cff, #5eead4 55%, #c6f36b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hs__title--fractura { font-family: "Courier Prime", var(--font-mono); font-weight: 700; letter-spacing: 0.08em; color: #00f5ff; text-shadow: 0 0 10px rgba(0,245,255,0.7), 0 0 40px rgba(0,245,255,0.35); font-size: clamp(48px, 7vw, 104px); }
.hs__title--overdrive { font-family: "Press Start 2P", var(--font-mono); font-weight: 400; letter-spacing: 0; line-height: 1.12; font-size: clamp(30px, 4.4vw, 64px); }
.hs__title--overdrive span { display: block; font-size: 1.5em; background: linear-gradient(180deg, #ffe066 10%, #ff8a3d 55%, #ff3ea5 90%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 18px rgba(255, 62, 165, 0.45)); }
.hs__title--blackbox { font-family: "Major Mono Display", var(--font-mono); font-weight: 400; letter-spacing: -0.02em; text-transform: lowercase; font-size: clamp(46px, 6.4vw, 96px); line-height: 1; color: #e9fdff; text-shadow: 0 0 22px rgba(0, 240, 255, 0.55); }
.hs__title--blackbox span { color: #ffb000; text-shadow: 0 0 22px rgba(255, 176, 0, 0.5); }

/* Responsive */
@media (max-width: 1080px) {
  .hs__tab-label .hs__tab-name { font-size: 12px; }
}
@media (max-width: 900px) {
  .hs { --hs-h: max(820px, 100svh); }
  .hs__slide { padding-top: 96px; padding-bottom: 140px; align-items: start; }
  .hs__inner { grid-template-columns: 1fr; gap: 8px; }
  .hs__stage { order: -1; height: 340px; min-height: 0; margin-inline: auto; width: 100%; }
  .hs__dev--opt { display: none; }
  .hs__kicker { margin-bottom: 16px; }
  .hs__kicker .app-icon { --s: 44px; }
  .hs__desc { display: none; }
  .hs__tag { margin-top: 14px; }
  .hs__copy .cta-row { margin-top: 22px; }
  .hs__copy .chip-row { display: none; }
  .hs__tab-name { display: none; }
  .hs__hint { display: none; }
}
@media (max-width: 420px) {
  .hs__btns .hs__btn--nav { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   PRODUCT PAGE PRIMITIVES
   ═══════════════════════════════════════════════════════════════ */

.p-hero { position: relative; padding-top: clamp(130px, 16vh, 180px); padding-bottom: clamp(60px, 10vw, 120px); overflow: hidden; isolation: isolate; }
.p-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.p-hero__title { font-family: var(--font-display); font-size: clamp(56px, 8vw, 120px); line-height: 0.95; letter-spacing: -0.04em; font-weight: 500; margin-top: 22px; }
.p-hero__tag { margin-top: 24px; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; text-wrap: balance; }
.p-hero__lead { margin-top: 16px; max-width: 520px; color: var(--ink-2); font-size: 17.5px; }
.p-hero .cta-row { margin-top: 34px; }
.p-hero__stage { position: relative; display: flex; justify-content: center; align-items: center; min-height: 520px; }
.p-hero__glow1, .p-hero__glow2 { position: absolute; z-index: -1; border-radius: 50%; filter: blur(110px); pointer-events: none; }
.p-hero__glow1 { width: 60vw; height: 60vw; right: -20vw; top: -25vw; background: radial-gradient(circle, var(--accent), transparent 62%); opacity: 0.32; }
.p-hero__glow2 { width: 40vw; height: 40vw; left: -18vw; bottom: -20vw; background: radial-gradient(circle, var(--accent-2), transparent 62%); opacity: 0.22; }
@media (max-width: 900px) {
  .p-hero__grid { grid-template-columns: 1fr; }
  .p-hero__stage { min-height: 0; margin-top: 24px; }
}

/* Device compositions shared by product heroes */
.combo { position: relative; width: 100%; max-width: 640px; aspect-ratio: 1 / 0.92; }
.combo > * { position: absolute; }
.combo__back { top: 10%; left: 0; width: 90%; }
.combo__front { right: 0; bottom: 0; }
.combo__front.dev-phone { --w: clamp(130px, 15vw, 210px); }
.combo--phones { aspect-ratio: 1 / 1.08; max-width: 560px; }
.combo--phones .combo__a { --w: clamp(170px, 18.5vw, 250px); left: 50%; top: 50%; transform: translate(-22%, -50%) rotate(3deg); z-index: 2; }
.combo--phones .combo__b { --w: clamp(140px, 15vw, 205px); left: 50%; top: 50%; transform: translate(-96%, -45%) rotate(-6deg); filter: brightness(0.8); }
@media (max-width: 900px) {
  .combo--phones { max-width: 420px; margin-inline: auto; }
  .combo--phones .combo__a { --w: min(44vw, 210px); }
  .combo--phones .combo__b { --w: min(36vw, 175px); }
}

/* Feature list rows */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--rev > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }

/* Big stats */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: clamp(28px, 4vw, 48px) clamp(12px, 2vw, 32px); text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__n { font-family: var(--font-display); font-size: clamp(48px, 7vw, 96px); line-height: 1; letter-spacing: -0.04em; color: var(--accent); }
.stat__l { margin-top: 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 640px) { .stats-row { grid-template-columns: 1fr; } .stat + .stat { border-left: 0; border-top: 1px solid var(--line); } }

/* Screens rail — horizontal, snap, drag-scrollable */
.rail {
  display: flex; gap: clamp(16px, 2vw, 28px); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 20px var(--gutter) 40px; margin-inline: calc(var(--gutter) * -1);
  -webkit-mask: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
  mask: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: center; flex: none; }
.rail figcaption { margin-top: 18px; text-align: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--ink-3); text-transform: uppercase; }
.rail .dev-phone { --w: clamp(220px, 24vw, 280px); }
.rail-ctrl { display: flex; gap: 8px; justify-content: flex-end; }

/* Segmented control */
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.seg button {
  all: unset; box-sizing: border-box; cursor: pointer; height: 38px; padding: 0 18px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background 0.25s, color 0.25s;
}
.seg button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Quote */
.quote { max-width: 900px; margin-inline: auto; text-align: center; }
.quote blockquote { font-family: var(--font-serif); font-size: clamp(28px, 3.6vw, 46px); line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
.quote cite { display: block; margin-top: 26px; font-style: normal; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }

/* Closing CTA panel */
.closer { position: relative; overflow: hidden; text-align: center; padding: clamp(56px, 9vw, 120px) var(--gutter); border-radius: calc(var(--radius) * 1.6); isolation: isolate; }
.closer .glow { width: 70%; height: 140%; left: 15%; top: 30%; opacity: 0.35; }
.closer h2 { font-family: var(--font-display); font-size: clamp(40px, 6vw, 84px); line-height: 0.98; letter-spacing: -0.04em; font-weight: 500; text-wrap: balance; }
.closer p { margin: 20px auto 0; max-width: 520px; color: var(--ink-2); }
.closer .cta-row { justify-content: center; margin-top: 34px; }

/* Data table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
.table-wrap table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14.5px; }
.table-wrap caption { text-align: left; padding: 0 0 16px; color: var(--ink-3); font-size: 13px; }
.table-wrap th, .table-wrap td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--line); }
.table-wrap th:first-child, .table-wrap td:first-child { text-align: left; color: var(--ink-2); }
.table-wrap thead th { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.table-wrap tbody tr:hover { background: rgba(255,255,255,0.02); }
.table-wrap th:nth-child(2), .table-wrap td:nth-child(2) { background: color-mix(in srgb, var(--accent) 7%, transparent); color: var(--accent); font-weight: 600; }

/* Ecosystem rail — "More from Lymegrove" */
.eco { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.eco a {
  display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  transition: background 0.3s, box-shadow 0.3s, transform 0.4s var(--ease);
}
.eco a:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); transform: translateY(-2px); }
.eco .app-icon { --s: 48px; }
.eco b { display: block; font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em; }
.eco small { display: block; color: var(--ink-3); font-size: 13px; line-height: 1.4; }

/* ─── Footer ────────────────────────────────────────────────── */

.footer { position: relative; border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 14px; color: var(--ink-3); }
.footer__top { display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; }
.footer__brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.footer__blurb { margin-top: 12px; max-width: 320px; }
.footer__cols { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.footer__col h2 { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__col a { color: var(--ink-2); transition: color 0.2s; }
.footer__col a:hover { color: var(--ink); }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; }

/* ═══════════════════════════════════════════════════════════════
   PRODUCT THEMES — scoped by <body data-product="…">
   ═══════════════════════════════════════════════════════════════ */

[data-product="gather"]    { --accent: #5fe0a8; --accent-2: #f5b53d; --accent-ink: #04140c; --font-display: var(--font-serif); }
[data-product="flo"]       { --accent: #a99bff; --accent-2: #5eead4; --accent-ink: #0b0820; }
[data-product="fractura"]  { --accent: #00f5ff; --accent-2: #ff2d78; --accent-ink: #001417; --font-display: "Courier Prime", var(--font-mono); }
[data-product="overdrive"] { --accent: #ff3ea5; --accent-2: #2ee6ff; --accent-ink: #1a0010; --font-display: "Press Start 2P", var(--font-mono); }
[data-product="blackbox"]  { --accent: #00f0ff; --accent-2: #ffb000; --accent-ink: #001417; --font-display: "Major Mono Display", var(--font-mono); }

[data-product="gather"] .sh__title, [data-product="gather"] .p-hero__title, [data-product="gather"] .closer h2 { font-weight: 400; letter-spacing: -0.025em; }
[data-product="gather"] .sh__title em { color: var(--accent); }

[data-product="fractura"] .p-hero__title,
[data-product="fractura"] .sh__title,
[data-product="fractura"] .closer h2 { font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
[data-product="fractura"] .p-hero__title { color: var(--accent); text-shadow: 0 0 12px rgba(0,245,255,0.6), 0 0 48px rgba(0,245,255,0.3); }
[data-product="fractura"] .sh__title { font-size: clamp(30px, 4.4vw, 56px); }
[data-product="fractura"] .stat__n { text-shadow: 0 0 12px rgba(0,245,255,0.6); }

[data-product="overdrive"] .p-hero__title { font-size: clamp(30px, 5vw, 68px); line-height: 1.15; letter-spacing: 0; }
[data-product="overdrive"] .p-hero__title span { display: block; font-size: 1.6em; background: linear-gradient(180deg, #ffe066 10%, #ff8a3d 55%, #ff3ea5 90%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 22px rgba(255,62,165,0.45)); }
[data-product="overdrive"] .sh__title, [data-product="overdrive"] .closer h2 { font-size: clamp(20px, 2.8vw, 36px); line-height: 1.35; letter-spacing: 0; }
[data-product="overdrive"] .stat__n { font-size: clamp(26px, 3.4vw, 44px); letter-spacing: 0; }

[data-product="blackbox"] .p-hero__title { text-transform: lowercase; letter-spacing: -0.02em; font-weight: 400; color: #e9fdff; text-shadow: 0 0 26px rgba(0,240,255,0.5); }
[data-product="blackbox"] .p-hero__title span { color: var(--accent-2); text-shadow: 0 0 26px rgba(255,176,0,0.5); }
[data-product="blackbox"] .sh__title, [data-product="blackbox"] .closer h2 { text-transform: lowercase; font-weight: 400; letter-spacing: -0.02em; font-size: clamp(30px, 4.4vw, 58px); }

/* Scanline overlay for the three arcade titles */
.scanlines::after {
  content: ""; position: fixed; inset: 0; z-index: 99; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.12) 0 1px, transparent 1px 3px);
  opacity: 0.35;
}

/* ─── Reduced motion ────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .hs__bg::before, .hs__bg::after { transform: none; }
}
