/* ==========================================================================
   SODA Ecosystem — styles.css
   Tokens are the canonical values from design.md. Do not hard-code colours
   below the :root block.
   ========================================================================== */

:root {
  /* — Surface & neutral — */
  --color-bg-void:      #07080D;
  --color-bg-base:      #0B0E17;
  --color-bg-raised:    #111726;
  --color-surface-1:    rgba(255,255,255,.04);
  --color-surface-2:    rgba(255,255,255,.07);
  --color-surface-3:    rgba(255,255,255,.10);
  --color-stroke:       rgba(255,255,255,.10);
  --color-stroke-strong:#556878;
  --color-scrim:        rgba(7,8,13,.72);

  /* — Text — */
  --color-text:         #F2F5F8;
  --color-text-soft:    #A8B6C6;
  --color-text-faint:   #7C8EA1;
  --color-on-accent:    #07080D;

  /* — Accent (brand lime) — */
  --color-accent:       #CCFE05;
  --color-accent-dim:   #A8D204;
  --color-accent-glow:  rgba(204,254,5,.30);
  --color-accent-wash:  rgba(204,254,5,.08);
  --color-accent-line:  rgba(204,254,5,.24);

  /* — Brand mark — */
  --brand-ground:       #CCFE05;
  --brand-mark:         #FFFFFF;

  /* — Product slots — */
  --color-product-01:   #4ECDF5;
  --color-product-02:   #5B8DEF;
  --color-product-03:   #A78BFA;

  /* — Type — */
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --fs-display-hero: clamp(3.5rem, 11vw, 9.5rem);
  --fs-display-1:    clamp(2.75rem, 6.5vw, 5.25rem);
  --fs-display-2:    clamp(2.25rem, 4.5vw, 3.75rem);
  --fs-statement:    clamp(1.5rem, 2.6vw, 2.25rem);
  --fs-body-lg:      1.125rem;
  --fs-body:         1rem;
  --fs-body-sm:      .875rem;
  --fs-caption:      .8125rem;
  --fs-label-lg:     .75rem;
  --fs-label-sm:     .6875rem;

  --track-label-lg: .32em;
  --track-label-sm: .28em;

  /* — Spacing — */
  --space-1: 4px;   --space-2: 8px;   --space-3: 12px;  --space-4: 16px;
  --space-5: 24px;  --space-6: 32px;  --space-7: 48px;  --space-8: 64px;
  --space-9: 96px;  --space-10: 128px; --space-11: 160px; --space-12: 224px;

  /* — Radius — */
  --radius-xs: 4px; --radius-sm: 8px; --radius-md: 14px;
  --radius-lg: 24px; --radius-xl: 32px; --radius-full: 999px;

  /* — Elevation — */
  --shadow-1: 0 1px 2px rgb(0 0 0/.40);
  --shadow-2: 0 8px 30px rgb(0 0 0/.28);
  --shadow-3: 0 18px 50px rgb(0 0 0/.35);
  --shadow-4: 0 25px 50px -12px rgb(0 0 0/.50);
  --glow-sm:  0 0 8px rgba(204,254,5,.30);
  --glow-lg:  0 0 24px rgba(204,254,5,.16), 0 0 64px rgba(204,254,5,.08);

  /* — Motion — */
  --ease-out-expo:  cubic-bezier(.14, 1, .34, 1);
  --ease-out-quint: cubic-bezier(.23, 1, .32, 1);
  --ease-out-soft:  cubic-bezier(.22, 1, .36, 1);
  --ease-in-out:    cubic-bezier(.65, 0, .35, 1);
  --ease-spring:    cubic-bezier(.34, 1.56, .64, 1);

  --dur-instant: 100ms; --dur-short: 200ms; --dur-medium: 400ms;
  --dur-long: 700ms;    --dur-xlong: 1200ms;

  /* — Layout — */
  --grid-width: 95vw;
  --grid-max: 1440px;
  --measure: 68ch;
  --measure-tight: 48ch;
  --section-pad: clamp(5rem, 12vh, 10rem);

  /* — z-index ladder —
     The nav sits ABOVE the menu overlay: the overlay's only close control on
     touch is the hamburger inside the nav pill. */
  --z-canvas: 0; --z-content: 10; --z-overlay: 80;
  --z-nav: 85; --z-cursor: 90; --z-preloader: 100;

  /* — Orb state (driven by JS per section) — */
  --orb-a: rgba(204,254,5,.16);
  --orb-b: rgba(78,205,245,.14);
  --orb-x: -50%;
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
html.lenis { scroll-behavior: auto; }
html.lenis body { min-height: 100%; }

body {
  margin: 0;
  background: var(--color-bg-base);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--color-accent); text-decoration: none; }

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

svg.i, .scroll-cue svg {
  width: 20px; height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  width: var(--grid-width);
  max-width: var(--grid-max);
  margin-inline: auto;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  z-index: var(--z-preloader);
  background: var(--color-accent);
  color: var(--color-on-accent);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { left: var(--space-4); top: var(--space-4); }

/* ==========================================================================
   Type styles
   ========================================================================== */

.display-hero {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-display-hero);
  line-height: .86;
  letter-spacing: -.02em;
  margin: 0;
}
.display-hero em { font-style: italic; color: var(--color-accent); }

.display-1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-display-1);
  line-height: .92;
  letter-spacing: -.015em;
}

.display-2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-display-2);
  line-height: 1;
  letter-spacing: -.01em;
}

.statement {
  font-size: var(--fs-statement);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -.005em;
  color: var(--color-text-soft);
  max-width: var(--measure-tight);
}

.eyebrow, .label-sm {
  font-size: var(--fs-label-lg);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--track-label-lg);
  padding-right: var(--track-label-lg);
  color: var(--color-text-faint);
  margin: 0;
}
.label-sm { font-size: var(--fs-label-sm); letter-spacing: var(--track-label-sm); }

.placeholder {
  color: var(--color-text-faint);
  border: 1px dashed var(--color-stroke-strong);
  border-radius: var(--radius-xs);
  padding: var(--space-2) var(--space-3);
  display: inline-block;
  font-size: var(--fs-body-sm);
}

/* Section handoff motif: a lime hairline that draws in as a section arrives.
   Default (no JS) is fully drawn. */
.sec-rule {
  display: block;
  width: 100%;
  max-width: 320px;
  height: 1px;
  margin-bottom: var(--space-6);
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-line) 60%, transparent);
  transform-origin: left center;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: .01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background var(--dur-short) var(--ease-out-quint),
    transform var(--dur-short) var(--ease-out-quint),
    box-shadow var(--dur-short) var(--ease-out-quint),
    border-color var(--dur-short) var(--ease-out-quint);
}
.btn .i { transition: transform var(--dur-short) var(--ease-out-quint); }

.btn--primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
}
.btn--primary:hover {
  background: color-mix(in srgb, var(--color-accent) 92%, #fff);
  box-shadow: var(--glow-lg);
  transform: translateY(-2px);
}
.btn--primary:hover .i { transform: translate(2px, -2px); }
.btn--primary:active { transform: scale(.98); }

.btn--ghost {
  background: var(--color-surface-1);
  border-color: var(--color-stroke);
  color: var(--color-text);
}
.btn--ghost:hover {
  background: var(--color-surface-2);
  border-color: var(--color-stroke-strong);
  transform: translateY(-2px);
}
.btn--ghost:active { transform: scale(.98); }

/* ==========================================================================
   Brand mark
   ========================================================================== */

.mark { width: 32px; height: 32px; display: block; flex: none; }
.mark--lg { width: 72px; height: 72px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
}
.brand__word {
  font-weight: 600;
  letter-spacing: .08em;
  font-size: var(--fs-body-sm);
}

/* ==========================================================================
   Preloader
   ========================================================================== */

.preloader {
  position: fixed; inset: 0;
  z-index: var(--z-preloader);
  background: var(--color-bg-void);
  display: grid;
  place-items: center;
  transition: opacity var(--dur-long) var(--ease-out-expo),
              visibility var(--dur-long) var(--ease-out-expo);
}
.preloader.is-done { opacity: 0; visibility: hidden; }
/* Failsafe: the preloader must never be able to trap the page. This lifts it
   on a CSS timer even if main.js is blocked, fails to parse, or never loads. */
.preloader { animation: preloader-failsafe 0s linear 2.5s forwards; }
@keyframes preloader-failsafe {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}
.preloader__inner { display: grid; justify-items: center; gap: var(--space-5); }
.preloader__rail {
  width: 140px; height: 1px;
  background: var(--color-stroke);
  overflow: hidden;
}
.preloader__rail span {
  display: block; height: 100%; width: 100%;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  animation: rail 1.2s var(--ease-out-expo) forwards;
}
@keyframes rail { to { transform: scaleX(1); } }

/* ==========================================================================
   Decorative layers
   ========================================================================== */

.orb {
  position: fixed;
  top: -20vh; left: 50%;
  width: 80vw; height: 80vw;
  max-width: 1100px; max-height: 1100px;
  transform: translateX(var(--orb-x));
  background: radial-gradient(circle, var(--orb-a), var(--orb-b) 45%, transparent 70%);
  filter: blur(120px);
  z-index: var(--z-canvas);
  pointer-events: none;
  will-change: transform;
}

.fx {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: var(--z-canvas);
  pointer-events: none;
}

.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 480px; height: 480px;
  margin: -240px 0 0 -240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(204,254,5,.10), transparent 65%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: var(--z-cursor);
  opacity: 0;
  transition: opacity var(--dur-medium) var(--ease-out-quint),
              transform var(--dur-medium) var(--ease-out-quint);
  will-change: transform;
}
.cursor-glow.is-on { opacity: 1; }
.cursor-glow.is-hot { transform: scale(1.3); }

@media (hover: none), (pointer: coarse) {
  .cursor-glow { display: none; }
}

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: fixed;
  top: var(--space-4);
  left: 0; right: 0;
  z-index: var(--z-nav);
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav__pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  width: var(--grid-width);
  max-width: var(--grid-max);
  min-height: 56px;
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  background: var(--color-surface-1);
  border: 1px solid var(--color-stroke);
  box-shadow: var(--shadow-2);
  transition: background var(--dur-medium) var(--ease-out-quint);
}
@supports (backdrop-filter: blur(20px)) {
  .nav__pill { background: rgba(11,14,23,.55); backdrop-filter: blur(20px); }
}
.nav.is-stuck .nav__pill { background: rgba(11,14,23,.82); }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
}
.nav__links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding-inline: var(--space-4);
  color: var(--color-text-soft);
  font-size: var(--fs-body-sm);
  font-weight: 500;
  transition: color var(--dur-short) var(--ease-out-quint);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: var(--space-4); right: var(--space-4);
  bottom: 10px;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-short) var(--ease-out-quint);
}
.nav__links a:hover { color: var(--color-text); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__links a[aria-current="true"] { color: var(--color-text); }
.nav__links a[aria-current="true"]::after { transform: scaleX(1); }

.lang { display: flex; align-items: center; gap: 2px; }
.lang__btn {
  min-width: 44px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer;
  font-family: inherit;
  font-size: var(--fs-label-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--track-label-sm);
  padding-right: calc(var(--track-label-sm) + 2px);
  color: var(--color-text-faint);
  transition: color var(--dur-short) var(--ease-out-quint);
}
.lang__btn:hover { color: var(--color-accent); }
.lang__btn.is-active { color: var(--color-text); }
.lang__sep { color: var(--color-text-faint); font-size: var(--fs-label-sm); }

.menu-btn {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-surface-1);
  border: 1px solid var(--color-stroke);
  cursor: pointer;
  padding: 0;
  place-items: center;
  gap: 5px;
}
.menu-btn span {
  display: block; width: 16px; height: 1.5px;
  background: var(--color-text);
  transition: transform var(--dur-medium) var(--ease-in-out),
              opacity var(--dur-short) var(--ease-in-out);
}
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

/* Overlay pattern: the layer stays display:grid and toggles visibility, so its
   fade always runs (a transition started in the same frame as a display:none →
   grid flip stalls at t=0 in Chromium) and, while closed, it is invisible,
   un-clickable, unfocusable and absent from the accessibility tree.
   `.menu { display: grid }` would beat the browser's `[hidden] { display: none }`
   — that once left a full-screen invisible layer swallowing every click on the
   page — so the [hidden] rule below is explicit and is the no-JS state only. */
.menu {
  position: fixed; inset: 0;
  z-index: var(--z-overlay);
  background: var(--color-scrim);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-medium) var(--ease-in-out),
              visibility 0s linear var(--dur-medium);
}
@supports (backdrop-filter: blur(24px)) {
  .menu { backdrop-filter: blur(24px); }
}
.menu[hidden] { display: none; }
.menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity var(--dur-medium) var(--ease-in-out), visibility 0s;
}
.menu__links { display: grid; gap: var(--space-5); text-align: center; }
.menu__links a {
  font-family: var(--font-display);
  font-size: var(--fs-display-2);
  color: var(--color-text);
  line-height: 1;
}
.menu__links a:hover { color: var(--color-accent); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  z-index: var(--z-content);
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-block: var(--space-11) var(--space-9);
}
.hero__inner { display: grid; gap: var(--space-6); justify-items: start; }
.hero__inner .display-hero { max-width: 14ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.scroll-cue {
  position: absolute;
  bottom: var(--space-7);
  left: 50%;
  transform: translateX(-50%);
  display: grid; place-items: center;
  width: 44px; height: 44px;
  color: var(--color-text-faint);
  transition: color var(--dur-short) var(--ease-out-quint),
              opacity var(--dur-medium) var(--ease-out-quint);
  animation: cue 2s var(--ease-in-out) infinite;
}
.scroll-cue:hover { color: var(--color-accent); }
@keyframes cue {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 6px); }
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  position: relative;
  z-index: var(--z-content);
  padding-block: var(--section-pad);
}
.sec-head { display: grid; gap: var(--space-4); margin-bottom: var(--space-9); }

/* Manifesto — the statement moment. Words are illuminated by scroll in JS;
   the plain paragraph is the no-JS state. */
.manifesto .wrap { display: grid; gap: var(--space-5); }
.manifesto__text {
  font-size: clamp(1.625rem, 3.2vw, 2.75rem);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--color-text);
  max-width: 30ch;
}
.manifesto__text .w { display: inline-block; }

/* Approach tiles */
.grid-4 {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.tile-wrap { display: grid; }
.tile {
  padding: var(--space-6);
  border-radius: var(--radius-md);
  background: var(--color-surface-1);
  border: 1px solid var(--color-stroke);
  display: grid;
  gap: var(--space-3);
  align-content: start;
  transition: background var(--dur-medium) var(--ease-out-quint),
              border-color var(--dur-medium) var(--ease-out-quint);
}
.tile:hover { background: var(--color-surface-2); border-color: var(--color-stroke-strong); }
.tile__num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--color-accent);
  line-height: 1;
}
.tile__title { font-size: 1.25rem; font-weight: 600; }
.tile__body { color: var(--color-text-soft); font-size: var(--fs-body-sm); }

/* Why rows — the divider draws itself as the row arrives (--p set by JS) */
.rows { display: grid; }
.row {
  --p: 1;
  position: relative;
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 2fr;
  gap: var(--space-6);
  padding-block: var(--space-6);
}
.row::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: var(--color-stroke);
  transform: scaleX(var(--p));
  transform-origin: left;
}
.row:last-child::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--color-stroke);
}
.row__t { font-size: 1.5rem; font-weight: 600; }
.row__b { color: var(--color-text-soft); max-width: var(--measure); }

/* Services list — the readable companion to the pinned scene */
.svc-group { margin-bottom: var(--space-9); }
.svc-group__head {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.svc-group__num {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--color-accent);
}
.svc-group__title { font-size: 1.5rem; font-weight: 600; }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0 var(--space-7);
}
.svc {
  --p: 1;
  position: relative;
  display: grid;
  gap: var(--space-2);
  padding-block: var(--space-5);
  scroll-margin-top: 120px;
}
.svc::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: var(--color-stroke);
  transform: scaleX(var(--p));
  transform-origin: left;
}
.svc__t { font-size: 1.0625rem; font-weight: 600; margin: 0; }
.svc__b { color: var(--color-text-soft); font-size: var(--fs-body-sm); max-width: 44ch; }
.svc:target .svc__t { color: var(--color-accent); }

.callout {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  background: var(--color-surface-1);
  border: 1px solid var(--color-stroke);
}
.callout__t { font-size: 1.25rem; font-weight: 600; }
.callout__list { display: grid; gap: var(--space-2); color: var(--color-text-soft); font-size: var(--fs-body-sm); }
.callout__list strong { color: var(--color-text); font-weight: 600; margin-right: var(--space-2); }

/* Contact */
.contact__inner { display: grid; gap: var(--space-5); justify-items: start; }

/* ==========================================================================
   Products — pinned stage, one product at a time
   ========================================================================== */

.section--stage { padding-block: 0; }

.stage {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: var(--section-pad);
}
.stage.is-pinned {
  height: 100svh;
  padding-block: 0;
}

.stage__inner {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--space-6);
  width: var(--grid-width);
  height: 100%;
}
.stage.is-pinned .stage__inner { padding-block: var(--space-9) var(--space-6); }

.stage__head { display: grid; gap: var(--space-3); }

.stage__panels { position: relative; display: grid; gap: var(--space-11); }
.stage.is-pinned .stage__panels { gap: 0; }

.product {
  --hue: var(--color-product-01);
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-8);
  align-items: center;
  min-height: 0;
}
.product[data-slot="2"] { --hue: var(--color-product-02); }
.product[data-slot="3"] { --hue: var(--color-product-03); }

.stage.is-pinned .product {
  position: absolute;
  inset: 0;
  grid-template-rows: minmax(0, 1fr);   /* definite row, so the art's % cap resolves */
  /* Stacked panels overlap; an invisible one must never swallow the clicks
     meant for the visible one's CTA. */
  pointer-events: none;
}
.stage.is-pinned .product.is-active { pointer-events: auto; z-index: 1; }

.product__text {
  display: grid;
  gap: var(--space-3);
  align-content: center;
  justify-items: start;
}
.product__num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: .9;
  color: var(--color-text-faint);
  opacity: .45;
  margin-bottom: var(--space-2);
}
.product__eyebrow {
  font-size: var(--fs-label-lg);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--track-label-lg);
  padding-right: var(--track-label-lg);
  color: var(--hue);
}
.product__title { font-size: clamp(1.75rem, 2.6vw, 2.5rem); line-height: 1.1; font-weight: 600; }
.product__sub { color: var(--color-text-soft); font-size: var(--fs-body-lg); }
.product__body { font-size: var(--fs-body-sm); }
.product__foot { padding-top: var(--space-3); }

/* Feature beats — each line is tied to a moment in the product's illustration
   via data-beat. --m fills the marker; default 1 so the no-JS page is "on". */
.product__features {
  display: grid;
  gap: var(--space-3);
  width: 100%;
  margin-top: var(--space-2);
}
.product__features--2col { grid-template-columns: 1fr 1fr; column-gap: var(--space-5); }
.product__features li { min-width: 0; }
.feat {
  --m: 1;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: var(--space-3);
  align-items: start;
  color: var(--color-text-soft);
  font-size: var(--fs-body-sm);
  line-height: 1.5;
  text-decoration: none;
  transition: color var(--dur-short) var(--ease-out-quint);
}
a.feat:hover { color: var(--color-text); }
.feat__mark {
  position: relative;
  width: 18px; height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  border: 1.5px solid var(--color-stroke-strong);
}
.feat__mark::after {
  content: "";
  position: absolute; inset: 4px;
  border-radius: 50%;
  background: var(--color-accent);
  transform: scale(var(--m));
}

.product__art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
}
.art {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100svh - 340px);
  overflow: visible;
}
/* Pinned: the art may never be taller than the row it shares with the text,
   or it crowds the index at short viewports. */
/* Flex, not grid: a % max-height on a grid item resolves against its (auto)
   grid area, never the container, so the cap silently became `none`. */
.stage.is-pinned .product__art { height: 100%; display: flex; align-items: center; justify-content: center; }
.stage.is-pinned .art { max-height: 100%; }

/* Short viewports (1366×768 laptops): spend less on chrome and ornament so the
   text stack — now including feature beats — fits beside the art. */
@media (max-height: 820px) {
  .stage.is-pinned .stage__inner { padding-block: var(--space-8) var(--space-5); gap: var(--space-4); }
  .stage__head .sec-rule { margin-bottom: var(--space-4); }
  .stage.is-pinned .product__num { display: none; }
  .stage.is-pinned .product__text { gap: var(--space-2); }
}

.tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: var(--radius-xs);
  background: var(--color-surface-1);
  border: 1px solid var(--color-stroke);
  color: var(--color-text-faint);
  font-size: var(--fs-caption);
  font-weight: 500;
}

.stage__index {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-text-faint);
}
.stage__num { color: var(--color-text); min-width: 1.4em; }
.stage__bar {
  position: relative;
  width: 160px; height: 1px;
  background: var(--color-stroke);
  margin-left: var(--space-3);
}
.stage__bar i {
  position: absolute; inset: 0;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
}
.stage:not(.is-pinned) .stage__index { display: none; }

/* --- Art: shared strokes --------------------------------------------------- */

.art [class*="__bg"], .art .c-tile__bg { fill: var(--color-surface-1); stroke: var(--color-stroke); stroke-width: 1; }
.art .c-tile__img { fill: var(--color-surface-2); }
.art .c-ln { fill: var(--color-text-faint); opacity: .45; }

/* 02 · leads (sales) */
.art .c-av { fill: var(--color-surface-3); }
.art .c-tile__hi { fill: none; stroke: var(--hue); stroke-width: 1.5; opacity: 0; }
.art .c-voice__bg { fill: var(--color-bg-raised); stroke: var(--hue); stroke-opacity: .5; }
.art .c-voice__phone { fill: var(--hue); }
.art .c-voice__wave rect { fill: var(--color-accent); transform-box: fill-box; transform-origin: center; }
.product.is-active .c-voice__wave rect { animation: wave 1.1s ease-in-out infinite; }
.product.is-active .c-voice__wave rect:nth-child(2) { animation-delay: -.15s; }
.product.is-active .c-voice__wave rect:nth-child(3) { animation-delay: -.3s; }
.product.is-active .c-voice__wave rect:nth-child(4) { animation-delay: -.45s; }
.product.is-active .c-voice__wave rect:nth-child(5) { animation-delay: -.6s; }
.product.is-active .c-voice__wave rect:nth-child(6) { animation-delay: -.75s; }
@keyframes wave { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
.art .c-badge circle { fill: var(--color-accent); }
.art .c-badge path { stroke: var(--color-on-accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.art .c-scan__line { stroke: var(--color-accent); stroke-width: 1.5; }
.art .c-stat__bg { fill: var(--color-bg-raised); stroke: var(--hue); stroke-opacity: .5; }
.art .c-stat__spark { stroke: var(--hue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.art .c-stat__dot { fill: var(--color-accent); }
.art .c-stat__arrow { stroke: var(--color-accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* 02 · enterprise */
.art .e-ring { stroke: var(--color-stroke); stroke-width: 1; stroke-dasharray: 3 9; }
.art .e-edge { stroke: var(--hue); stroke-opacity: .55; stroke-width: 1.5; stroke-linecap: round; }
.art .e-pulse { stroke: var(--color-accent); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 10 140; opacity: 0; }
.art .e-core__outer { fill: var(--color-bg-raised); stroke: var(--hue); stroke-width: 1.5; }
.art .e-core__inner { fill: var(--color-accent-wash); stroke: var(--color-accent-line); stroke-width: 1; }
.art .e-core__dot { fill: var(--color-accent); }
.art .e-node circle { fill: var(--color-bg-raised); stroke: var(--hue); stroke-width: 1.5; }
.art .e-node__icon { stroke: var(--color-text-soft); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.product.is-active .e-ring--a { animation: spin 48s linear infinite; }
.product.is-active .e-ring--b { animation: spin 72s linear infinite reverse; }
.product.is-active .e-pulse { animation: pulse 1.8s linear infinite; }
.product.is-active .e-pulse:nth-child(2) { animation-delay: -.3s; }
.product.is-active .e-pulse:nth-child(3) { animation-delay: -.6s; }
.product.is-active .e-pulse:nth-child(4) { animation-delay: -.9s; }
.product.is-active .e-pulse:nth-child(5) { animation-delay: -1.2s; }
.product.is-active .e-pulse:nth-child(6) { animation-delay: -1.5s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { from { stroke-dashoffset: 150; } to { stroke-dashoffset: 0; } }
.art .e-ring { transform-box: fill-box; transform-origin: center; }

/* 03 · edu */
.art .d-track { stroke: var(--color-stroke); stroke-width: 2; stroke-linecap: round; }
.art .d-progress { stroke: var(--hue); stroke-width: 2.5; stroke-linecap: round; }
.art .d-ms circle { fill: var(--color-bg-raised); stroke: var(--hue); stroke-width: 1.5; }
.art .d-ms--last circle { stroke: var(--color-accent); }
.art .d-ms__check { stroke: var(--color-accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.art .d-marker__ring { fill: var(--color-accent-wash); stroke: var(--color-accent); stroke-width: 1.5; }
.art .d-marker__dot { fill: var(--color-accent); }
.art .d-bubble__bg { fill: var(--color-bg-raised); stroke: var(--hue); stroke-opacity: .5; stroke-width: 1; }
.art .d-exam__bg { fill: var(--color-bg-raised); stroke: var(--hue); stroke-opacity: .5; stroke-width: 1; }
.art .d-exam__cam { fill: none; stroke: var(--color-text-soft); stroke-width: 1.5; }
.art .d-exam__lens { fill: none; stroke: var(--hue); stroke-width: 1.5; }
.art .d-exam__ok circle { fill: var(--color-accent); }
.art .d-exam__ok path { fill: none; stroke: var(--color-on-accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.art .d-typing circle { fill: var(--color-text-faint); }
.art .d-msg rect { fill: var(--color-text-soft); opacity: .6; }
.art .d-ring__track { stroke: var(--color-stroke); stroke-width: 3; }
.art .d-ring__fill { stroke: var(--color-accent); stroke-width: 3; stroke-linecap: round; transform: rotate(-90deg); transform-box: fill-box; transform-origin: center; }
.art .d-ring__check { stroke: var(--color-accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.product.is-active .d-typing circle { animation: blink 1s ease-in-out infinite; }
.product.is-active .d-typing circle:nth-child(2) { animation-delay: .18s; }
.product.is-active .d-typing circle:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  position: relative;
  z-index: var(--z-content);
  border-top: 1px solid var(--color-stroke);
  padding-block: var(--space-9) var(--space-6);
  background: var(--color-bg-raised);
}
.footer__inner {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 2fr 1fr 1fr;
}
.footer__brand { display: grid; gap: var(--space-3); justify-items: start; }
.footer__brand .mark { width: 40px; height: 40px; }
.footer__tag { color: var(--color-text-faint); font-size: var(--fs-body-sm); }
.footer__col ul { display: grid; gap: var(--space-3); margin-top: var(--space-4); }
.footer__col li { color: var(--color-text-soft); font-size: var(--fs-body-sm); }
.footer__link { color: var(--color-text-soft); transition: color var(--dur-short) var(--ease-out-quint); }
.footer__link:hover { color: var(--color-accent); }
.footer__link--ext { display: inline-flex; align-items: center; gap: var(--space-1); }
.footer__link--ext .i { width: 16px; height: 16px; }

.footer__meta {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-9);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-stroke);
  color: var(--color-text-faint);
  font-size: var(--fs-caption);
}

/* ==========================================================================
   Reveal animation base state
   Final state lives here; JS moves elements to the from-state only after it
   initialises, so a script failure leaves everything visible.
   ========================================================================== */

.reveal, .split { opacity: 1; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1023px) {
  .nav__links { display: none; }
  .menu-btn { display: grid; }
  .nav__pill { gap: var(--space-3); padding-left: var(--space-4); }
  .lang { margin-left: auto; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 1fr; gap: var(--space-3); }

  .product { grid-template-columns: 1fr; gap: var(--space-6); }
  .art { max-height: 62vh; }
  .stage__panels { gap: var(--space-10); }
  .svc-grid { gap: 0 var(--space-5); }
}

@media (max-width: 599px) {
  .product__features--2col { grid-template-columns: 1fr; }
}

@media (max-width: 599px) {
  :root { --grid-width: 92vw; }
  .hero__inner .display-hero { max-width: none; }
  .footer__inner { grid-template-columns: 1fr; gap: var(--space-7); }
  .footer__meta { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .hero__actions { width: 100%; }
}

/* ==========================================================================
   Reduced motion — everything decorative stops
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .orb, .fx, .cursor-glow { display: none; }
  .scroll-cue { animation: none; }
  .preloader { display: none; }
}
