/* ============================================================
   EINIEX Homepage — Design System
   Space Grotesk (display) + Space Mono (mono) + Instrument Serif (1 accent)
   ============================================================ */

:root {
  /* dark, default */
  --bg: #0A0A0A;        --surface: #121212;   --border: #1F1F1F;
  --text: #FFFFFF;      --text-2: #B4B4B4;
  --surface-2: #161616;

  /* platinum accent — flat gray */
  --gold-1: #787878;    --gold-2: #A8A8A8;    --gold-3: #909090;
  --gold-shader: #989898;
  --gold-gradient: #A8A8A8;

  --font-display: "Space Grotesk";
  --font-mono: "Space Mono";
  --font-serif: "Instrument Serif";

  --maxw: var(--size-container);
  --gutter: 1.5rem;
  --rhythm: 6rem;

  /* Button 004 — white fill, dark label */
  --button-004-color: #0A0A0A;
  --button-004-color-background: #ffffff;
  --button-004-color-focus: #fff;
  --button-004-border-radius: 0.6em;
  --button-004-padding: 0.95em 1.6em;
  --button-004-translate-y: 1.25em;
  --button-004-focus-inset: -0.125em;
  --button-004-click-scale: 0.955 0.925;
  --button-004-ease-hover: cubic-bezier(0.675, 0.15, 0.1, 1);
  --button-004-ease-click: cubic-bezier(0.4, 0, 0.2, 1);
  --button-004-ease-focus: cubic-bezier(0.32, 0.72, 0, 1);
}

[data-theme-status="light"] {
  --bg: #FAFAF8;        --surface: #FFFFFF;    --border: #E4E4E4;
  --text: #0A0A0A;      --text-2: #555555;
  --surface-2: #F2F1ED;
  --button-004-color: #FAFAF8;
  --button-004-color-background: #0A0A0A;

  /* light mode — darker gray for contrast on cream */
  --gold-1: #525252;    --gold-2: #686868;    --gold-3: #5C5C5C;
  --gold-shader: #606060;
  --gold-gradient: #686868;
}

* { box-sizing: border-box; }

/* ------------------------- Proportional scaling (Osmo-style) — adapted for EINIEX -------------------------
   The whole design is authored in rem so type, spacing and the container scale together off the root font-size.
   One CONTINUOUS clamp drives it — no per-breakpoint brackets (those caused a font jump just below 768px that
   blew out the mobile footer). Anchored to the 1280 design width: 16px there, scales UP to 20px on large
   monitors (1600w), and floors at 15px so phones/tablets stay readable instead of compressing. The clamp()
   values already in the sheet remain the natural type minimums. data-* hooks + layout media queries untouched. */
:root {
  /* 15px floor · 1.25vw fluid (=16px @1280) · 20px ceiling (reached ~1600w) */
  --size-font: clamp(15px, 1.25vw, 20px);
  /* container grows with the viewport up to 1600, never forces width past the screen on mobile */
  --size-container: clamp(992px, 100vw, 1600px);
}

/* html carries the page background too: in-app webviews (Instagram et al.)
   can fail to rasterize part of the body's layer on a hidden cold load,
   letting the host app show through — the root must never be transparent */
html { -webkit-text-size-adjust: 100%; font-size: var(--size-font); scrollbar-gutter: stable; background: #FAFAF8; }
html:has(body[data-theme-status="dark"]) { background: #0A0A0A; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display), sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.4s cubic-bezier(0.35, 1, 0.6, 1),
              color 0.4s cubic-bezier(0.35, 1, 0.6, 1);
}

[data-theme-status] { transition: background-color 0.4s cubic-bezier(0.35, 1, 0.6, 1); }

h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* solid mid-tone selection — visible on both dark and light surfaces in either theme
   (translucent washes vanish on same-tone backgrounds, e.g. dark bubbles in light mode) */
::selection { background: var(--gold-2); color: var(--bg); }
::-moz-selection { background: var(--gold-2); color: var(--bg); }

/* ---------- Layer A: page grain (everywhere) ---------- */
#grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: var(--grain-url);
  background-size: 11.25rem 11.25rem;
}
[data-theme-status="light"] #grain { opacity: 0.04; mix-blend-mode: multiply; }

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

.section { position: relative; padding-block: var(--rhythm); }
.section--tight { padding-block: 5.25rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono), monospace;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
}

/* corner-bracket scope pill */
.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.55em 0.95em;
  font-family: var(--font-mono), monospace;
  font-size: 0.71875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border: 0.0625rem solid var(--border);
  border-radius: 0.5rem;
  backdrop-filter: blur(0.5rem);
}
.pill svg { width: 0.8125rem; height: 0.8125rem; flex: 0 0 auto; }
.pill__dot { width: 0.375rem; height: 0.375rem; border-radius: 50%; background: var(--gold-shader); box-shadow: 0 0 0.5rem 0.0625rem rgba(184,189,208,0.55); }

/* corner brackets */
.brackets { position: relative; }
.brackets::before, .brackets::after,
.brackets > .bracket-b::before, .brackets > .bracket-b::after {
  content: ""; position: absolute; width: 0.5625rem; height: 0.5625rem; pointer-events: none;
  border-color: var(--text-2); border-style: solid; border-width: 0; opacity: 0.55;
}
.brackets::before { top: -0.3125rem; left: -0.3125rem; border-top-width: 0.09375rem; border-left-width: 0.09375rem; }
.brackets::after  { top: -0.3125rem; right: -0.3125rem; border-top-width: 0.09375rem; border-right-width: 0.09375rem; }
.brackets > .bracket-b::before { bottom: -0.3125rem; left: -0.3125rem; border-bottom-width: 0.09375rem; border-left-width: 0.09375rem; }
.brackets > .bracket-b::after  { bottom: -0.3125rem; right: -0.3125rem; border-bottom-width: 0.09375rem; border-right-width: 0.09375rem; }

.section-head { display: flex; flex-direction: column; gap: 1.375rem; max-width: 47.5rem; }
.section-head .lead { font-size: clamp(0.9375rem, 1.6vw, 1.0625rem); line-height: 1.55; color: var(--text-2); max-width: 56ch; }

.h2 {
  font-family: var(--font-display), sans-serif;
  font-weight: 500;
  font-size: clamp(2.125rem, 5vw, 4rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
  max-width: 18ch;
}
.h2 .dim { color: var(--text-2); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(1.625rem); }
/* No CSS transition here: GSAP drives the motion (initReveal). A CSS transition
   on this rule freezes at its start value in throttled/embedded contexts and
   resurfaces after GSAP clears its inline props — leaving content stuck hidden.
   Class change is an instant jump; GSAP (or reduced-motion) handles the rest. */
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } }

/* ============================================================
   HEADER / MEGA NAV
   ============================================================ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; justify-content: center;
  padding: 0.875rem var(--gutter);
  transition: transform 0.4s cubic-bezier(0.5,0,0,1);
}
.header__bar {
  width: 100%; max-width: var(--maxw);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1rem 0.75rem 1.25rem;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(1rem) saturate(1.2);
  border: 0.0625rem solid var(--border);
  border-radius: 0.875rem;
  transition: background 0.4s ease, border-color 0.4s ease;
}
.brand { display: inline-flex; align-items: center; }
.header.is-scrolled .header__bar {
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  box-shadow: 0 0.875rem 2.5rem -1.375rem rgba(0,0,0,0.55);
}

/* ---------- Text wordmark (replaces logo image) — line-through brand mark ---------- */
.wordmark {
  display: inline-block; position: relative;
  font-family: var(--font-display), sans-serif;
  font-weight: 500; letter-spacing: 0.30em; text-transform: uppercase;
  color: var(--text); line-height: 1; white-space: nowrap;
  font-size: 1.1875rem; padding: 0.30em 0; user-select: none;
}
.wordmark > span { display: inline-block; padding-left: 0.30em; }
/* the brand line — strikes through the vertical middle of the letters, the EINIEX mark */
.wordmark::before, .wordmark::after {
  content: ""; position: absolute; left: -0.12em; top: 50%; margin-top: -0.04688rem;
  width: calc(100% + 0.04em); height: 0.09375rem; background: currentColor; pointer-events: none;
}
.wordmark::before { transform-origin: left; transform: scaleX(1) rotate(0.001deg);
  transition: transform 0.62s cubic-bezier(0.625,0.05,0,1); transition-delay: 0.3s; }
.wordmark::after { transform-origin: right; transform: scaleX(0) rotate(0.001deg);
  transition: transform 0.62s cubic-bezier(0.625,0.05,0,1); }
@media (hover: hover) and (pointer: fine) {
  .wordmark:hover::before { transform-origin: right; transform: scaleX(0) rotate(0.001deg); transition-delay: 0s; }
  .wordmark:hover::after  { transform-origin: left;  transform: scaleX(1) rotate(0.001deg); transition-delay: 0.3s; }
}
.footer__mark .wordmark { font-size: 1.875rem; letter-spacing: 0.34em; }

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 0.3125rem;
  padding: 0.5625rem 0.8125rem; border-radius: 0.5625rem;
  font-size: 0.90625rem; color: var(--text);
  transition: background 0.25s ease;
  cursor: pointer;
}
.nav__item:hover .nav__link { background: color-mix(in srgb, var(--surface) 80%, transparent); }
.nav__plus {
  font-family: var(--font-mono), monospace; font-size: 0.6875rem; color: var(--text-2);
  transition: transform 0.35s cubic-bezier(0.5,0,0,1), color 0.25s ease;
  display: inline-block; line-height: 1;
}
.nav__item.open .nav__plus { transform: rotate(135deg); color: var(--text); }

/* mega panel */
.mega {
  position: absolute; top: calc(100% + 0.875rem); left: 50%;
  transform: translate(-50%, 0.5rem);
  background: var(--surface); border: 0.0625rem solid var(--border); border-radius: 1rem;
  padding: 1.75rem; opacity: 0; visibility: hidden; pointer-events: none;
  box-shadow: 0 1.875rem 4.375rem -1.875rem rgba(0,0,0,0.7);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.16,1,0.3,1), visibility 0.3s;
  z-index: 70;
}
.nav__item.open .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.mega__grid { display: grid; gap: 0.75rem 2.5rem; }
.mega__col-title {
  font-family: var(--font-mono), monospace; font-size: 0.6875rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-2); margin-bottom: 0.375rem; white-space: nowrap;
}
.mega__link { display: block; padding: 0.5625rem 0.625rem; border-radius: 0.5625rem; min-width: 12.5rem; transition: background 0.2s ease; }
.mega__link:hover { background: var(--surface-2); }
.mega__link h4 { font-size: 0.90625rem; font-weight: 500; }
.mega__link p { font-size: 0.78125rem; color: var(--text-2); margin-top: 0.125rem; line-height: 1.35; }

.header__right { display: flex; align-items: center; gap: 0.625rem; }
.link-ghost {
  padding: 0.5625rem 0.875rem; border-radius: 0.5625rem; font-size: 0.875rem; color: var(--text); white-space: nowrap;
  border: 0.0625rem solid var(--border); transition: border-color 0.25s ease, background 0.25s ease;
}
.link-ghost:hover { border-color: var(--text); }

.burger { display: none; }

/* ============================================================
   BUTTON 004
   ============================================================ */
.button-004 {
  color: var(--button-004-color); -webkit-user-select: none; user-select: none;
  background-color: #0000; outline-style: none; padding: 0; line-height: 1;
  text-decoration: none; display: inline-grid; position: relative;
  -webkit-tap-highlight-color: transparent; transition: scale 0.15s var(--button-004-ease-click);
  font-family: var(--font-display), sans-serif; font-weight: 500; font-size: 1rem; cursor: pointer;
}
.button-004::after {
  content: ''; display: block; position: absolute; inset: var(--button-004-focus-inset);
  border-radius: var(--button-004-border-radius); transition: box-shadow 0.3s var(--button-004-ease-focus);
  pointer-events: none; z-index: 1;
}
.button-004:is(:focus-visible)::after { box-shadow: 0 0 0 0.125em var(--button-004-color-focus); }
.button-004:active { scale: var(--button-004-click-scale); }
.button-004[aria-disabled="true"] { pointer-events: none; opacity: 0.7; }
.button-004__inner { pointer-events: none; border-radius: var(--button-004-border-radius); z-index: 1; padding: var(--button-004-padding); grid-area: 1 / 1; display: grid; }
.button-004__text { perspective: 10em; transform-style: preserve-3d; grid-area: 1 / 1; }
.button-004__text .button-004__split-char {
  --base-delay: 0.05s; --max-extra: 2.9s; --t: calc(var(--index) / max(var(--max-index), 1));
  --curve: sin(calc(var(--t) * 1.5deg)); --delay: calc(var(--base-delay) + (var(--curve) * var(--max-extra)));
  --rot-t: calc(var(--index) / max(var(--max-index), 1)); --rot-curve: sin(calc(var(--rot-t) * 30deg));
  --rot-sign: clamp(-1, var(--signed-index), 1); --rot-max: 36deg; display: inline-block;
}
.button-004__text.is--default .button-004__split-char { transition: transform 0.325s var(--button-004-ease-hover), translate 0.425s var(--button-004-ease-hover), rotate 0.45s var(--button-004-ease-hover), opacity 0.15s ease-out; }
.button-004__text.is--hover .button-004__split-char {
  transition: transform 0.35s var(--button-004-ease-hover), translate 0.35s var(--button-004-ease-hover), rotate 0.35s var(--button-004-ease-hover), opacity 0.15s 0.1s ease-out;
  rotate: 1 0 0 -72deg; transform: rotateZ(calc(var(--rot-sign) * var(--rot-curve) * var(--rot-max) * -1)) scale(0.65);
  translate: calc(var(--signed-index) * 0.125em) calc(var(--button-004-translate-y) * 1) 0; opacity: 0;
}
.button-004__bg { background: var(--button-004-color-background); border-radius: var(--button-004-border-radius); grid-area: 1 / 1; width: 100%; height: 100%; padding: 0; }
.button-004__text.is--hover { color: var(--button-004-color); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .button-004__text .button-004__split-char { will-change: transform, translate, rotate, opacity; }
  .button-004:is(:hover, :focus-visible) .button-004__text.is--default .button-004__split-char,
  [data-hover]:is(:hover, :focus-visible) .button-004 .button-004__text.is--default .button-004__split-char {
    translate: calc(var(--signed-index) * 0.125em) calc(var(--button-004-translate-y) * -1) 0; rotate: 1 0 0 72deg;
    transform: rotateZ(calc(var(--rot-sign) * var(--rot-curve) * var(--rot-max) * -1)) scale(0.65); opacity: 0;
    transition: transform 0.35s var(--delay) var(--button-004-ease-hover), translate 0.35s var(--delay) var(--button-004-ease-hover), rotate 0.35s var(--delay) var(--button-004-ease-hover), opacity 0.15s calc(var(--delay) + 0.1s) ease-out;
  }
  .button-004:is(:hover, :focus-visible) .button-004__text.is--hover .button-004__split-char,
  [data-hover]:is(:hover, :focus-visible) .button-004 .button-004__text.is--hover .button-004__split-char {
    translate: 0 0 0; rotate: 1 0 0 0deg; transform: rotateZ(0deg) scale(1); opacity: 1;
    transition: transform 0.325s calc(var(--delay) + 0.05s) var(--button-004-ease-hover), translate 0.425s calc(var(--delay) + 0.05s) var(--button-004-ease-hover), rotate 0.45s calc(var(--delay) + 0.05s) var(--button-004-ease-hover), opacity 0.15s calc(var(--delay) + 0.075s) ease-out;
  }
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.6em; cursor: pointer;
  padding: 0.95em 1.5em; border-radius: 0.6em; font-size: 1rem; font-weight: 500;
  color: var(--text); background: transparent; border: 0.0625rem solid var(--border);
  font-family: var(--font-display), sans-serif; transition: border-color 0.3s ease, background 0.3s ease;
}
.btn-outline:hover { border-color: var(--text); background: color-mix(in srgb, var(--surface) 60%, transparent); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding-top: 7.5rem; }
#hero-field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0; }
.hero__fallback { position: absolute; inset: 0; z-index: 0; }
.hero__mask { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, transparent 55%, var(--bg) 98%); }
.hero__vignette { display: none; }
.hero__inner { position: relative; z-index: 4; width: 100%; }
.hero__content { max-width: 70rem; display: flex; flex-direction: column; align-items: flex-start; gap: 1.875rem; }

.hero__h1-wrap { position: relative; }
.hero__bloom {
  position: absolute; left: -6%; top: 8%; width: 70%; height: 84%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 30% 50%, rgba(176,185,210,0.3), rgba(150,158,185,0.1) 45%, transparent 70%);
  filter: blur(2.5rem); mix-blend-mode: screen; opacity: 0.8;
}
[data-theme-status="light"] .hero__bloom { mix-blend-mode: multiply; opacity: 0.4; }

.rotating-text__heading {
  text-align: left; letter-spacing: -0.035em; margin: 0;
  font-family: var(--font-display), sans-serif;
  font-size: clamp(2.5rem, 7vw, 6.5rem); font-weight: 500; line-height: 1.02; color: var(--text);
}
.rotating-text__highlight {
  color: var(--gold-2);
  padding-right: 0.04em;
}
.rotating-text__highlight .rotating-text__word {
  color: var(--gold-2);
}
[data-rotating-words] { display: inline-block; position: relative; }
.rotating-text__inner { display: inline-block; }
.rotating-text__word { display: block; white-space: nowrap; position: absolute; top: 0; left: 0; }
.rotating-line { padding-bottom: 0.1em; margin-bottom: -0.1em; white-space: nowrap; }
.rotating-line-mask { overflow-x: visible !important; overflow-y: clip !important; }

.hero__sub { font-size: clamp(1rem, 1.9vw, 1.25rem); line-height: 1.5; color: var(--text-2); max-width: 50ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.875rem; align-items: center; }
.hero__trust { display: flex; align-items: center; gap: 0.875rem; flex-wrap: wrap; margin-top: 0.25rem; }
.hero__trust p { font-family: var(--font-mono), monospace; font-size: 0.75rem; letter-spacing: 0.06em; color: var(--text-2); line-height: 1.5; max-width: 42ch; }

/* avatar stack */
.avatars { display: inline-flex; align-items: center; }
.avatars span {
  width: 1.875rem; height: 1.875rem; border-radius: 50%; margin-left: -0.5625rem;
  border: 0.09375rem solid var(--bg); background-size: cover; background-position: center;
  display: inline-block;
}
.avatars span:first-child { margin-left: 0; }

/* header entrance — hidden until the webfonts are in (einiex.js adds .fonts-in),
   then fades down into place. Masks the fallback-font frame: the header used to
   paint in a system font and visibly re-flow ("twitch") when Space Grotesk /
   Space Mono arrived a beat later. Reduced-motion never gets .entrance, so the
   header is simply visible immediately there. */
html.entrance .header { opacity: 0; transform: translateY(-0.375rem); }
html.entrance.fonts-in .header {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.5,0,0,1);
}

/* hero entrance — GSAP-driven (see einiex.js). Visible by default; JS pre-hides only when it can animate. */
html.entrance .hero__h1-wrap { will-change: filter; }
/* start hidden pre-paint so the entrance is always seen (not a flash). JS (heroEntrance) reveals it; reduced-motion never gets the .entrance class. */
html.entrance .hero__content { opacity: 0; }

/* ============================================================
   STATS / ODOMETER
   ============================================================ */
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.stat { display: flex; flex-direction: column; gap: 0.875rem; }
.stat__num-wrap { display: flex; align-items: flex-start; }
.odometer-h1 {
  margin: 0; font-family: var(--font-display), sans-serif;
  font-size: clamp(3.375rem, 7vw, 6.5rem); font-weight: 500; line-height: 1; letter-spacing: -0.03em;
}
[data-odometer-element] { display: inline-flex; align-items: center; font-variant-numeric: tabular-nums; }
[data-odometer-part="mask"], [data-odometer-part="static"] { display: inline-block; overflow: clip; padding: 0.05em; margin: -0.05em; }
[data-odometer-part="roller"] { display: block; white-space: pre; text-align: center; will-change: transform; }
[data-odometer-part="static"] { display: inline-block; }
.stat__suffix { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 500; line-height: 1; letter-spacing: -0.03em; }
.stat--lead .stat__rule { width: 3.5rem; height: 0.125rem; background: var(--gold-gradient); border-radius: 0.125rem; }
.stat__label { font-family: var(--font-mono), monospace; font-size: 0.78125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }

/* ============================================================
   HOW IT WORKS — highlight marker + phrase stack
   ============================================================ */
.how { position: relative; }
.highlight-title {
  text-align: left; letter-spacing: -0.03em; margin: 0; font-family: var(--font-display), sans-serif;
  font-size: clamp(2.125rem, 5vw, 4rem); font-weight: 500; line-height: 0.98; max-width: 18ch;
}
[data-highlight-marker-reveal] { visibility: hidden; }
/* padding-bottom gives the per-line overflow:hidden mask room for descenders (g, y, p…);
   the negative margin-bottom cancels it so line spacing / layout is unchanged. */
[data-highlight-marker-reveal] .highlight-marker-line { width: auto; display: inline-block !important; margin: -0.055em 0rem calc(-0.055em - 0.24em); padding-bottom: 0.24em; }
/* keep the highlighter bar tight to the text box, not the descender padding */
.highlight-marker-bar { position: absolute; inset: -0.055em 0rem calc(0.24em - 0.055em); z-index: 1; pointer-events: none; }

.steps { display: flex; flex-direction: column; margin-top: 3.5rem; border-top: 0.0625rem solid var(--border); }
.step {
  display: grid; grid-template-columns: 3.75rem 1fr auto; align-items: center; gap: 1.75rem;
  padding: 2.125rem 0.25rem; border-bottom: 0.0625rem solid var(--border); position: relative;
}
.step__no { font-family: var(--font-mono), monospace; font-size: 0.8125rem; color: var(--text-2); letter-spacing: 0.1em; }
.step__body { display: flex; flex-direction: column; gap: 0.5rem; }
.step__title { font-size: clamp(1.375rem, 2.6vw, 2rem); font-weight: 500; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 0.125rem; }
@keyframes caret-blink { 50% { opacity: 0; } 0%, 49% { opacity: 1; } }
.step__desc { font-size: 0.9375rem; color: var(--text-2); line-height: 1.5; }
.step__chip {
  width: 2.875rem; height: 2.875rem; border-radius: 0.75rem; border: 0.0625rem solid var(--border);
  display: grid; place-items: center; color: var(--text); background: var(--surface);
}
.step__chip svg { width: 1.25rem; height: 1.25rem; }

/* ============================================================
   MINI SHOWREEL
   ============================================================ */
.mini-showreel-lightbox { pointer-events: none; justify-content: center; align-items: center; padding: 3em; display: flex; position: fixed; inset: 0; overflow: hidden; z-index: 90; }
@media (max-width: 700px) {
  /* phones: let the player use nearly the full width */
  .mini-showreel-lightbox { padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left)); }
  .showreel-frame { border-radius: 0.75rem; }
}
.mini-showreel-lightbox__safearea { justify-content: center; align-items: center; width: 100%; height: 100%; display: flex; }
.mini-showreel-lightbox__target { justify-content: center; align-items: center; width: min(60rem, 100%); display: flex; }
.showreel-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 1rem; overflow: hidden; border: 0.0625rem solid var(--border); background: var(--surface); box-shadow: 0 3.125rem 7.5rem -3.125rem rgba(0,0,0,0.85); }
.showreel-frame .ph { position: absolute; inset: 0; border: 0; }
.showreel-frame__close { position: absolute; top: 0.875rem; right: 0.875rem; width: 2.375rem; height: 2.375rem; display: grid; place-items: center; border-radius: 0.625rem; border: 0.0625rem solid color-mix(in srgb, var(--text) 16%, transparent); background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(0.5rem); color: var(--text); cursor: pointer; transition: border-color 0.25s ease, background 0.25s ease; }
.showreel-frame__close:hover { border-color: var(--text); }
.mini-showreel-lightbox__dark { opacity: 0; pointer-events: auto; cursor: pointer; visibility: hidden; background-color: rgba(6,6,6,0.74); width: 100%; height: 100%; position: absolute; backdrop-filter: blur(0.375rem); transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1), visibility 0.5s; }
.mini-showreel-lightbox__target { opacity: 0; transform: translateY(0.875rem) scale(0.94); transition: opacity 0.5s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.mini-showreel { flex-flow: column; justify-content: center; align-items: center; width: min(100vw - 3em, 26em); display: flex; position: relative; }
.mini-showreel__card { grid-column-gap: 1em; grid-row-gap: 1em; color: var(--text); background-color: var(--surface); border: 0.0625rem solid var(--border); border-radius: 1em; flex-flow: column; width: 100%; padding: 1em; display: flex; position: relative; }
.mini-showreel__media { z-index: 1; position: relative; }
.mini-showreel__video { background-color: #1a1a1a; border-radius: .35em; width: 100%; position: relative; overflow: hidden; }
.mini-showreel__cover-image { object-fit: cover; width: 100%; height: 100%; position: absolute; top: 0; left: 0; }
.mini-showreel__before { padding-top: 56.25%; }
.mini-showreel__info { justify-content: space-between; align-items: center; height: 1.75em; padding-left: .35em; display: flex; position: relative; }
.mini-showreel__text { letter-spacing: -.02em; font-size: 1.15em; font-weight: 500; }
.mini-showreel__play-svg { width: 2.2em; }
.mini-showreel__click { z-index: 2; cursor: pointer; width: 100%; height: 100%; position: absolute; top: 0; left: 0; }
/* lightbox open/close — fade + scale only; the in-page card never moves */
[data-mini-showreel-status="active"].mini-showreel-lightbox .mini-showreel-lightbox__dark { opacity: 1; visibility: visible; }
[data-mini-showreel-status="active"].mini-showreel-lightbox .mini-showreel-lightbox__target { opacity: 1; transform: translateY(0) scale(1); }
.how__reel { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; margin-top: 5rem; }
.how__reel-copy h3 { font-size: clamp(1.375rem, 2.4vw, 1.875rem); font-weight: 500; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.how__reel-copy p { color: var(--text-2); font-size: 0.9375rem; line-height: 1.55; max-width: 40ch; }

/* placeholder */
.ph {
  position: relative; overflow: hidden; background: var(--surface);
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 0.0625rem, transparent 0.0625rem 0.5625rem);
  border: 0.0625rem solid var(--border); display: grid; place-items: center;
}
.ph__tag { font-family: var(--font-mono), monospace; font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); text-align: center; padding: 0.5rem 0.75rem; line-height: 1.5; }

/* ============================================================
   BENTO — what you can post
   ============================================================ */
.bento-wrap { position: relative; }
.bento {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(11.25rem, auto);
  gap: 0.0625rem; background: var(--border); border: 0.0625rem solid var(--border); border-radius: 1rem; overflow: hidden;
}
.cell {
  background: var(--bg); padding: 1.875rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1.75rem;
  position: relative; transition: background 0.3s ease; min-height: 11.25rem;
}
.cell:hover { background: var(--surface); z-index: 1; }
.cell::after { content: ""; position: absolute; inset: 0; border: 0.0625rem solid transparent; transition: border-color 0.3s ease; pointer-events: none; }
.cell:hover::after { border-color: var(--text); }
/* round the hover border on the grid's corner cells so it fills into the clipped rounded corners */
/* desktop (4 cols): cell1=TL, cell3=TR, cell6=BL, cell7=BR */
.bento .cell:nth-child(1)::after { border-top-left-radius: 1rem; }
.bento .cell:nth-child(3)::after { border-top-right-radius: 1rem; }
.bento .cell:nth-child(6)::after { border-bottom-left-radius: 1rem; }
.bento .cell:nth-child(7)::after { border-bottom-right-radius: 1rem; }
.cell--lg { grid-column: span 2; grid-row: span 2; }
.cell--wide { grid-column: span 2; }
.cell__icon { width: 1.875rem; height: 1.875rem; color: var(--text); }
.cell__icon svg { width: 100%; height: 100%; }
.cell__title { font-size: clamp(1.1875rem, 2vw, 1.625rem); font-weight: 500; letter-spacing: -0.02em; }
.cell__title .num { font-family: var(--font-mono), monospace; font-size: 0.6875rem; color: var(--text-2); display: block; margin-bottom: 0.875rem; letter-spacing: 0.12em; }
.cell__desc { font-size: 0.875rem; color: var(--text-2); line-height: 1.5; max-width: 34ch; margin-top: 0.5rem; }
.bento__foot { display: flex; align-items: center; gap: 0.5rem; margin-top: 1.75rem; font-size: 0.875rem; color: var(--text-2); }

/* ascii link animation cell */
.cell--ascii { padding: 0; overflow: hidden; }
.cell--ascii::after { display: none; }
.ascii-link {
  margin: 0; width: 100%; height: 100%;
  display: grid; place-items: center;
  font-family: var(--font-mono), monospace; font-size: 0.8125rem; line-height: 1.25;
  letter-spacing: 0; white-space: pre; color: var(--text-2);
  opacity: 0.62; user-select: none;
  -webkit-mask-image: radial-gradient(ellipse 78% 86% at 50% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 78% 86% at 50% 50%, #000 55%, transparent 100%);
}

/* ============================================================
   INDIVIDUAL vs COMPANY — split + glass cards
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }
.split__col {
  border: 0.0625rem solid var(--border); border-radius: 1.125rem; padding: 2.5rem; background: var(--surface);
  display: flex; flex-direction: column; gap: 1.625rem; position: relative; overflow: hidden;
}
.split__tag { font-family: var(--font-mono), monospace; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
.split__h { font-size: clamp(1.625rem, 3vw, 2.5rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
.split__list { display: flex; flex-direction: column; gap: 0.75rem; }
.split__list li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.9375rem; color: var(--text-2); line-height: 1.45; list-style: none; }
.split__list { padding: 0; margin: 0; }
.check { flex: 0 0 auto; width: 1.25rem; height: 1.25rem; margin-top: 0.0625rem; color: var(--text); }
.check.gold { color: var(--gold-2); }

/* glass cards */
.glass {
  margin-top: auto; border-radius: 0.875rem; padding: 1.25rem; backdrop-filter: blur(0.75rem);
  background: linear-gradient(150deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  border: 0.0625rem solid color-mix(in srgb, var(--text) 12%, transparent);
  box-shadow: 0 1.25rem 3.125rem -1.875rem rgba(0,0,0,0.7);
}
[data-theme-status="light"] .glass { background: linear-gradient(150deg, rgba(255,255,255,0.7), rgba(255,255,255,0.35)); }
.glass__row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.625rem 0; border-bottom: 0.0625rem solid color-mix(in srgb, var(--text) 8%, transparent); }
.glass__row:last-child { border-bottom: 0; }
.glass__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.glass__head h5 { font-size: 0.875rem; font-weight: 500; }
.glass__head span { font-family: var(--font-mono), monospace; font-size: 0.65625rem; color: var(--text-2); letter-spacing: 0.08em; }
.glass__id { display: flex; align-items: center; gap: 0.75rem; }
.glass__ava { width: 2.25rem; height: 2.25rem; border-radius: 50%; background-size: cover; background-position: center; }
.glass__id h5 { font-size: 0.875rem; font-weight: 500; }
.glass__id p { font-size: 0.71875rem; color: var(--text-2); font-family: var(--font-mono), monospace; letter-spacing: 0.06em; }
.glass__meta { font-size: 0.78125rem; color: var(--text-2); }
.glass__meta b { color: var(--text); font-weight: 500; }
.glass__verified { display: inline-flex; align-items: center; gap: 0.3125rem; font-family: var(--font-mono), monospace; font-size: 0.625rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-2); }
.glass__verified svg { width: 0.8125rem; height: 0.8125rem; }
.glass__chip { font-family: var(--font-mono), monospace; font-size: 0.6875rem; color: var(--text-2); padding: 0.3125rem 0.5625rem; border: 0.0625rem solid var(--border); border-radius: 0.4375rem; }

/* ============================================================
   COMPARISON TABLE — tiers
   ============================================================ */
.tiers { --columns-in-view: 3; }
.tiers__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); border: 0.0625rem solid var(--border); border-radius: 1rem; overflow: hidden; }
.tiers__row { display: contents; }
.tcell { padding: 1.25rem 1.375rem; border-bottom: 0.0625rem solid var(--border); border-right: 0.0625rem solid var(--border); display: flex; align-items: center; min-height: 4rem; }
.tcell:nth-child(4n) { border-right: 0; }
.tiers__grid > .tiers__row:last-child .tcell { border-bottom: 0; }
.tcell--head { flex-direction: column; align-items: flex-start; gap: 0.375rem; min-height: 7.5rem; justify-content: flex-end; padding-bottom: 1.375rem; }
.tcell--feature { color: var(--text-2); font-size: 0.90625rem; }
.tcell--val { font-size: 0.90625rem; justify-content: center; text-align: center; }
.tcell--top { background: var(--surface); }
.tier__name { font-size: 1.1875rem; font-weight: 500; letter-spacing: -0.01em; }
.tier__name.is--top { color: var(--text); }
.tier__tagline { font-family: var(--font-mono), monospace; font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.tier__badge { font-family: var(--font-mono), monospace; font-size: 0.625rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bg); background: var(--text); padding: 0.1875rem 0.5rem; border-radius: 0.3125rem; align-self: flex-start; }
.tcell--val .check { width: 1.125rem; height: 1.125rem; }
.tcell--label { color: var(--text); font-weight: 500; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-lines { grid-column-gap: 1.25em; grid-row-gap: 1.25em; flex-flow: wrap; justify-content: flex-start; align-items: flex-start; display: flex; }
.testimonial-lines__controls { grid-column-gap: 1em; grid-row-gap: 1em; flex-flow: row; justify-content: flex-start; align-items: flex-start; width: 33.3333%; display: flex; }
.testimonial-lines__main { grid-column-gap: 4em; grid-row-gap: 4em; flex-flow: column; flex: 1; justify-content: flex-start; align-items: flex-start; display: flex; }
.testimonial-lines__button { background-color: #0000; border: 0.0625rem solid var(--border); border-radius: .35em; justify-content: center; align-items: center; width: 2.8em; height: 2.8em; padding: 0; display: flex; color: var(--text); cursor: pointer; transition: border-color 0.25s ease; }
.testimonial-lines__button:hover { border-color: var(--text); }
.testimonial-lines__arrow { width: .8em; }
.testimonial-lines__main-details { grid-column-gap: 1.5em; grid-row-gap: 1.5em; flex-flow: row; justify-content: flex-start; align-items: center; display: flex; }
.testimonial-lines__count { width: 1ch; display: inline-block; }
.testimonial-lines__p { margin-bottom: 0; font-size: 1.1em; line-height: 1.2; font-family: var(--font-mono), monospace; letter-spacing: 0.04em; }
.testimonial-lines__p.is--faded { opacity: .72; }
.testimonial-lines__collection { width: 100%; }
.testimonial-lines__list { width: 100%; display: grid; position: relative; }
.testimonial-lines__item { grid-column-gap: 3em; grid-row-gap: 3em; opacity: 0; visibility: hidden; flex-flow: column; grid-area: 1 / 1; justify-content: flex-start; align-items: flex-start; width: 100%; display: flex; position: relative; }
.testimonial-lines__item.is--active { opacity: 1; visibility: visible; }
.testimonial-lines__h { letter-spacing: -.02em; width: 100%; margin-top: 0; margin-bottom: 0; font-size: clamp(1.5em, 3vw, 2.7em); font-weight: 500; line-height: 1.08; font-family: var(--font-display), sans-serif; }
.text-line-mask { padding-bottom: 0.2em; margin-bottom: -0.2em; }
.testimonial-lines__item-details { grid-column-gap: 1.1em; grid-row-gap: 1.1em; flex-flow: row; justify-content: flex-start; align-items: center; display: flex; }
.testimonial-lines__item-visual { aspect-ratio: 1; border-radius: 100em; width: 4em; overflow: hidden; background: var(--surface); }
.testimonial-lines__item-img { object-fit: cover; width: 100%; height: 100%; }
.testimonial-lines__pname { font-family: var(--font-display), sans-serif !important; font-size: 1.15em !important; letter-spacing: -0.01em; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing__head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.375rem; }
.pricing__h {
  font-family: var(--font-display), sans-serif; font-weight: 500;
  font-size: clamp(1.875rem, 4.4vw, 3.75rem); line-height: 1.02; letter-spacing: -0.03em; max-width: 18ch;
}
.pricing__h .dim { color: var(--text-2); }
.pricing__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 4rem; }
.price-card { border: 0.0625rem solid var(--border); border-radius: 1.125rem; padding: 2.5rem; background: var(--surface); display: flex; flex-direction: column; gap: 1.375rem; }
.price-card__top { display: flex; align-items: baseline; gap: 0.625rem; }
.price-card__amt { font-size: clamp(2.375rem, 5vw, 3.75rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.price-card__per { font-family: var(--font-mono), monospace; font-size: 0.8125rem; color: var(--text-2); letter-spacing: 0.06em; }
.price-card__label { font-family: var(--font-mono), monospace; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
.price-list { display: flex; flex-direction: column; gap: 0.875rem; padding: 0; margin: 0; }
.price-list li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.9375rem; color: var(--text); line-height: 1.45; list-style: none; }
.price-list li .sub { color: var(--text-2); }
.price-card__note { font-size: 0.8125rem; color: var(--text-2); line-height: 1.5; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final { position: relative; overflow: hidden; text-align: center; padding-block: 6.5rem; }
#final-glyph { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.6; }
#cta-dust { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.final__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 2.125rem; }
.final__h {
  font-family: var(--font-display), sans-serif; font-weight: 500;
  font-size: clamp(2.5rem, 7vw, 6.5rem); line-height: 0.98; letter-spacing: -0.03em; max-width: 14ch;
}
.final__h em { font-family: var(--font-serif), serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.final__slogan { font-family: var(--font-mono), monospace; font-size: 0.78125rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-2); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 0.0625rem solid var(--border); padding-block: 4.5rem 2.5rem; position: relative; z-index: 4; }
.footer__chips { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 3.5rem; }
.footer__chip {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5625rem 1rem; border: 0.0625rem solid var(--border);
  border-radius: 6.25rem; font-family: var(--font-mono), monospace; font-size: 0.71875rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-2);
}
.footer__chip i { width: 0.375rem; height: 0.375rem; border-radius: 50%; background: var(--text-2); font-style: normal; display: inline-block; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 2.5rem; flex-wrap: wrap; padding-bottom: 3rem; border-bottom: 0.0625rem solid var(--border); }
.footer__mark img { height: 1.875rem; width: auto; }
.footer__tagline { font-size: clamp(1.25rem, 2.4vw, 1.875rem); font-weight: 500; letter-spacing: -0.02em; max-width: 16ch; }
.footer__nav { display: flex; gap: 3.5rem; flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: 0.75rem; }
.footer__col h6 { font-family: var(--font-mono), monospace; font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); margin-bottom: 0.25rem; }
.footer__col a { font-size: 0.875rem; color: var(--text-2); transition: color 0.2s ease; }
.footer__col a:hover { color: var(--text); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding-top: 2.25rem; }

/* social icons */
.footer__social-row { display: flex; gap: 0.25rem; align-items: center; }
.footer__col--social { justify-content: flex-end; }
.footer__social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; color: var(--text-2);
  transition: color 0.2s ease;
}
.footer__social-link:hover { color: var(--text); }
.footer__social-link svg { width: 1.25rem; height: 1.25rem; display: block; }
.footer__legal { display: flex; gap: 1.375rem; flex-wrap: wrap; font-family: var(--font-mono), monospace; font-size: 0.6875rem; letter-spacing: 0.08em; color: var(--text-2); }
[data-current-time] { font-family: var(--font-mono), monospace; font-size: 0.71875rem; letter-spacing: 0.1em; color: var(--text-2); }

/* ============================================================
   THEME TOGGLE
   ============================================================ */
.btn-darklight { color: var(--text); cursor: pointer; background-color: var(--surface); border: 0.0625rem solid var(--border); border-radius: .55em; outline: 0; justify-content: center; align-items: center; gap: .5em; padding: 0 1em; height: 2.5rem; display: flex; position: relative; overflow: hidden; font-family: var(--font-display), sans-serif; font-size: 0.875rem; transition: border-color 0.25s ease, background 0.25s ease; }
.btn-darklight:hover { border-color: var(--text); }
.btn-darklight__icon { width: 1.125rem; height: 1.125rem; position: relative; flex: 0 0 auto; }
/* icon boxes stack in the same 18x18 square; one rotates/fades in, the other out */
.btn-darklight__icon-box { position: absolute; inset: 0; display: grid; place-items: center; transition: transform 0.6s cubic-bezier(0.35,1.2,0.5,1), opacity 0.4s ease; }
.btn-darklight__icon-box svg { width: 1.125rem; height: 1.125rem; display: block; }
/* word stays in flow (default <p> sizes the box); absolute <p> overlays for the swap */
.btn-darklight__word { position: relative; height: 1.2em; overflow: hidden; }
.btn-darklight__word-p { margin: 0; line-height: 1.2; white-space: nowrap; transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.5,0,0,1); }
.btn-darklight__word-p.is--absolute { position: absolute; top: 0; left: 0; }

/* MOON = default box, SUN = is--absolute box */
[data-theme-status="dark"] .btn-darklight__icon-box { transform: translateY(0) rotate(0deg); opacity: 1; }                /* moon in */
[data-theme-status="dark"] .btn-darklight__icon-box.is--absolute { transform: translateY(120%) rotate(40deg); opacity: 0; }  /* sun out */
[data-theme-status="light"] .btn-darklight__icon-box { transform: translateY(-120%) rotate(-40deg); opacity: 0; }         /* moon out */
[data-theme-status="light"] .btn-darklight__icon-box.is--absolute { transform: translateY(0) rotate(0deg); opacity: 1; }  /* sun in */

/* "Light" = default p, "Dark" = is--absolute p */
[data-theme-status="dark"] .btn-darklight__word-p { opacity: 0; transform: translateY(-110%); }
[data-theme-status="dark"] .btn-darklight__word-p.is--absolute { opacity: 1; transform: translateY(0); }
[data-theme-status="light"] .btn-darklight__word-p { opacity: 1; transform: translateY(0); }
[data-theme-status="light"] .btn-darklight__word-p.is--absolute { opacity: 0; transform: translateY(110%); }
.theme-toggle-word { display: inline; }
@media (max-width: 900px) { .theme-toggle-word, .btn-darklight__word { display: none; } .btn-darklight { padding: 0 .7em; } .btn-darklight__icon { margin-right: 0; } }

/* ============================================================
   UNDERLINE LINK
   ============================================================ */
[data-underline-link] { position: relative; }
[data-underline-link]::before {
  content: ""; position: absolute; bottom: 0.25rem; left: 0.8125rem; width: calc(100% - 1.625rem); height: 0.0625rem;
  background-color: currentColor; transition: transform 0.6s cubic-bezier(0.625, 0.05, 0, 1);
  transform-origin: right; transform: scaleX(0);
}
@media (hover: hover) and (pointer: fine) {
  .nav__item:hover [data-underline-link]::before { transform-origin: left; transform: scaleX(1); }
}

/* ============================================================
   TOOLTIP
   ============================================================ */
.css-tooltip { margin: 0; display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.875rem; color: var(--text-2); position: relative; }
.css-tooltip__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 0.9375rem; height: 0.9375rem; border-radius: 50%;
  border: 0.075rem solid currentColor;
  font-size: 0.59375rem; font-family: var(--font-mono), monospace; font-weight: 700;
  line-height: 1; flex-shrink: 0; cursor: help; color: var(--text-2);
}
.css-tooltip__box { flex-flow: column; align-items: center; padding-top: .5em; padding-bottom: .5em; display: flex; position: absolute; bottom: calc(100% + 0.25rem); left: 50%; transform: translateX(-50%); opacity: 0; visibility: hidden; z-index: 100; pointer-events: none; }
/* Bento-footer tooltip: trigger sits near the left edge — keep box on-screen
   and point the tail at the "?" icon (constant offset from the trigger's left). */
/* Open/close + tail positioning are JS-driven from einiex.js (initTooltips):
   GSAP animates a fast fade so the popover never freezes invisible in
   throttled/embedded contexts, and the tail is aligned to the "?" icon.
   CSS only holds the resting hidden state. */
.css-tooltip__box-inner { flex-flow: column; align-items: center; display: flex; position: relative; }
.css-tooltip__card { grid-row-gap: .5em; color: var(--text); background-color: var(--surface); border: 0.0625rem solid var(--border); border-radius: .75em; flex-flow: column; width: 20em; max-width: calc(100vw - 1em); padding: 1.4em; display: flex; box-shadow: 0 1.25rem 3.125rem -1.5625rem rgba(0,0,0,0.7); }
.css-tootlip__tip { width: 2.2em; margin: -.0625em 1.25em; display: flex; position: relative; color: var(--surface); }
.css-tooltip__card-text { opacity: .8; }
.css-tooltip__card-h { font-size: 1.05em; font-weight: 500; line-height: 1.3; margin: 0; }
.css-tooltip__card-p { margin: 0; font-size: 0.92em; line-height: 1.5; }
[data-css-tooltip-hover] { position: relative; cursor: help; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) and (pointer: fine) {
  [data-css-tooltip-hover] { cursor: default; pointer-events: auto; }
  [data-css-tooltip-hover] .css-tooltip__icon { cursor: default; }
}
[data-css-tooltip-hover]:focus-visible { outline: 0.125rem solid var(--text); outline-offset: 0.3rem; border-radius: 0.25rem; }

/* ============================================================
   MOBILE SCROLL HINT (horizontally-scrollable tables / tiers)
   ============================================================ */
.scrollhint-wrap { position: relative; }
.scrollhint {
  position: absolute; top: 0; right: 0; bottom: 0; width: 3rem;
  display: none; align-items: center; justify-content: flex-end;
  padding-right: 0.45rem; z-index: 6; pointer-events: none;
  border-top-right-radius: 1rem; border-bottom-right-radius: 1rem;
  background: linear-gradient(to right, transparent, color-mix(in srgb, var(--bg) 55%, transparent) 90%);
}
.scrollhint-wrap.is-scrollable .scrollhint { display: flex; }
.scrollhint__arrows { display: flex; align-items: center; }
.scrollhint__chev {
  display: grid; place-items: center; color: var(--text);
  opacity: 0.16; animation: scrollhint-pulse 1.5s ease-in-out infinite;
}
.scrollhint__chev + .scrollhint__chev { margin-left: -0.5rem; }
.scrollhint__chev:nth-child(1) { animation-delay: 0s; }
.scrollhint__chev:nth-child(2) { animation-delay: 0.18s; }
.scrollhint__chev:nth-child(3) { animation-delay: 0.36s; }
.scrollhint__chev svg { width: 1rem; height: 1rem; }
@keyframes scrollhint-pulse { 0%, 100% { opacity: 0.16; } 45% { opacity: 0.92; } }
@media (prefers-reduced-motion: reduce) { .scrollhint__chev { animation: none; opacity: 0.5; } }

/* ============================================================
   ARCH GRID (Layer C — bento only)
   ============================================================ */
.archgrid { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(var(--border) 0.0625rem, transparent 0.0625rem), linear-gradient(90deg, var(--border) 0.0625rem, transparent 0.0625rem);
  /* horizontal lines offset up by their own thickness: no hard rule at the very
     top of the section — the first row reads as vertical strokes only, so the
     grid fades in instead of starting on a line */
  background-position: 0 -0.0625rem, 0 0;
  background-size: 4rem 4rem; -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, #000 30%, transparent 75%); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .how__reel { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .cell--lg { grid-column: span 2; grid-row: span 1; }
  /* tablet (2 cols): cell1 spans full width = TL+TR; cell3 is col-2 row-2 = not a corner;
     cell6 is no longer the last row; cell7 is full-width last row = BL+BR */
  .bento .cell:nth-child(1)::after  { border-top-right-radius: 1rem; }
  .bento .cell:nth-child(3)::after  { border-top-right-radius: 0; }
  .bento .cell:nth-child(6)::after  { border-bottom-left-radius: 0; }
  .bento .cell:nth-child(7)::after  { border-bottom-left-radius: 1rem; border-bottom-right-radius: 1rem; }
}
@media (max-width: 860px) {
  :root { --rhythm: 5rem; --gutter: 1.25rem; }
  .nav, .header__right .link-ghost, .header__right .button-004 { display: none; }
  .burger { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border: 0.0625rem solid var(--border); border-radius: 0.625rem; background: var(--surface); cursor: pointer; color: var(--text); }
  /* stats stay on ONE horizontal row on tablet & phone — scaled to fit, not stacked */
  .stats__grid { grid-template-columns: repeat(3, 1fr); gap: 0.85rem; text-align: center; }
  .stat { align-items: center; gap: 0.6rem; }
  .stat__num-wrap { justify-content: center; }
  .stats__grid .odometer-h1 { font-size: clamp(1.5rem, 6.8vw, 3.25rem); }
  .stats__grid .stat__suffix { font-size: clamp(1.1rem, 4.4vw, 2.25rem); }
  .stat--lead .stat__rule { width: 2rem; }
  .stat__label { font-size: clamp(0.5rem, 2.2vw, 0.78125rem); }
  .split { grid-template-columns: 1fr; }
  .pricing__grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 2.5rem 1fr; }
  .step__chip { display: none; }
  .tiers { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 0.0625rem solid var(--border); border-radius: 1rem; }
  .tiers__grid { grid-template-columns: 8.75rem repeat(3, minmax(7.25rem, 1fr)); min-width: 33.75rem; border: 0; border-radius: 0; overflow: visible; }
  .tcell { padding: 1rem 0.9375rem; min-height: 3.625rem; }
  .tcell--head { min-height: 7rem; }
  /* keep the feature labels pinned while the tier columns scroll */
  .tcell--feature, .tcell--corner { position: sticky; left: 0; z-index: 2; background: var(--bg); border-right: 0.0625rem solid var(--border); }
  .tcell--top { background: var(--surface); }
  .testimonial-lines__controls { order: 9999; width: 100%; }
  .footer__top { flex-direction: column; align-items: flex-start; }
  /* 2-col nav grid: Platform|Pricing top row, Company|Social bottom row */
  .footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; width: 100%; }
  /* clock sits at the right of the Privacy/Terms row */
  .footer__bottom { position: relative; }
  .footer__legal { gap: 0.625rem 1rem; padding-right: 8.75rem; }
  [data-current-time] { position: absolute; right: 0; bottom: 0; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .cell--lg, .cell--wide { grid-column: span 1; }
  /* mobile (1 col): cell1 still full-width first = TL+TR (TR already added at 62.5rem);
     cell3 and cell6 still not corners (already reset at 62.5rem);
     cell7 still full-width last = BL+BR (already set at 62.5rem) — no additional changes needed */
  /* keep tooltips on-screen near the left edge */
  .css-tooltip__box { left: 0; right: auto; transform: none; align-items: flex-start; }
  .css-tooltip__card { width: min(82vw, 20em); }
  .css-tootlip__tip { margin-left: 1.1em; }
}
@media (max-width: 860px) {
  /* full, intentional hero on mobile — centered with breathing room */
  .hero { min-height: 70svh; align-items: center; padding: 6.5rem 0 1.5rem; }
  /* tighten the gap between hero and the counters */
  .section--tight { padding-block: 2.75rem 4rem; }
}

/* ============================================================
   MOBILE UNDERLAY MENU
   Page content slides left to reveal the menu fixed beneath it.
   ============================================================ */
:root { --menu-width: min(86vw, 25rem); }

.burger { position: relative; }
.burger__bars {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.3125rem; width: 1.125rem;
}
.burger__bar { display: block; width: 100%; height: 0.1rem; background: currentColor; border-radius: 0.125rem; }

/* the menu — fixed to the right, sitting BEHIND the page content */
.mnav {
  position: fixed; top: 0; bottom: 0; right: 0; z-index: 40;
  width: var(--menu-width);
  background: var(--surface);
  border-left: 0.0625rem solid var(--border);
  color: var(--text);
}
.mnav__inner {
  display: flex; flex-direction: column; justify-content: flex-start; gap: 1.875rem;
  height: 100%; width: 100%;
  padding: 1.25rem 1.5rem 1.875rem;
  overflow-y: auto;
}
.mnav__top { display: flex; align-items: center; justify-content: space-between; min-height: 2.75rem; }
.mnav__close {
  display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem;
  border: 0.0625rem solid var(--border); border-radius: 0.625rem; background: var(--surface); color: var(--text); cursor: pointer;
}
.mnav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.125rem; }
.mnav__link {
  display: block; width: 100%; padding: 0.625rem 0.875rem; border-radius: 0.75rem;
  transition: background 0.25s ease;
}
.mnav__link-label {
  display: block;
  font-family: var(--font-display), sans-serif; font-weight: 500;
  font-size: clamp(2.25rem, 12vw, 3.25rem); line-height: 0.96; letter-spacing: -0.035em;
}
.mnav__link--current { background: var(--gold-2); color: var(--bg); }
.mnav__link:not(.mnav__link--current):active { background: var(--surface-2); }

.mnav__bottom { display: flex; flex-direction: column; gap: 1.625rem; position: relative; padding-top: 1.625rem; margin-top: auto; }
.mnav__rule { position: absolute; top: 0; left: 0; width: 100%; height: 0.0625rem; background: var(--border); transform-origin: left; }
.mnav__cta { display: flex; flex-direction: column; gap: 0.75rem; }
.mnav__login { justify-content: center; }
.mnav__apply { width: 100%; }

.mnav__meta { display: flex; gap: 1.25rem; }
.mnav__meta-col { display: flex; flex-direction: column; gap: 0.625rem; flex: 1; }
.mnav__meta-title {
  font-family: var(--font-mono), monospace; font-size: 0.65625rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-2); opacity: 0.7;
}
.mnav__meta-link { font-size: 0.875rem; color: var(--text); line-height: 1.1; }
.mnav__meta-link:active { color: var(--text-2); }
.mnav__social { display: flex; align-items: center; gap: 0.875rem; margin-top: auto; }
.mnav__social a { display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); transition: color 0.2s ease; }
.mnav__social a:active { color: var(--text); }
.mnav__social svg { width: 1.375rem; height: 1.375rem; display: block; }

/* overlay that travels with the content: dims it + frames the seam */
.mnav-overlay {
  position: fixed; inset: 0 -0.0625rem 0 0; z-index: 55;
  pointer-events: none; cursor: pointer; visibility: hidden;
  overflow: clip;
}
.mnav-overlay__dim { position: absolute; inset: 0; background: rgba(0,0,0,0.5); opacity: 0; }
[data-theme-status="light"] .mnav-overlay__dim { background: rgba(10,10,10,0.32); }
.mnav-overlay__frame { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; }
.mnav-overlay__frame-row { display: flex; flex-direction: column; align-items: flex-end; }
.mnav-overlay__bar { width: 100%; height: 0.875rem; background: var(--bg); }
.mnav-overlay__corner {
  width: 0.875rem; height: 0.875rem; transform-origin: 100% 0;
  background-image: radial-gradient(circle farthest-side at 0 100%, transparent 99%, var(--bg));
}
.mnav-overlay__corner--bottom {
  transform-origin: 100% 100%;
  background-image: radial-gradient(circle farthest-side at 0 0, transparent 99%, var(--bg));
}

/* keep page grain above the sliding content, still under the header */
#grain { z-index: 57; }
.page-main { position: relative; z-index: 50; background: var(--bg); min-height: 100svh; }
