/* AgencyGenie homepage — "Business Operating System" layout.
   Loaded only on the homepage. Everything is scoped to body.os so the rest of
   the site keeps the shared light theme in site.css untouched.

   Posters are the default state. A canvas container keeps showing its static
   poster until the scene has actually painted a frame into that same box and
   marked it .scene-ready, so no-JS, no-WebGL, reduced-motion and any scene that
   fails to load all land on the same still image, with no layout shift and
   never an empty box. */

body.os {
  /* Colour comes from the one token layer in site.css, so the homepage flips
     with the rest of the site. Only the homepage's own scale and motion
     values live here.

     Two things stay dark in both modes. The hero is a band, exactly like the
     page head on every inner page. And each 3D stage is a dark well, the way a
     product site embeds a dark app screenshot on a light page: the scenes are
     authored for a dark background and would wash out on white. */

  --fs-display: clamp(2.75rem, 6vw, 5.25rem);
  --fs-h1: clamp(2rem, 3.6vw, 3.25rem);
  --fs-h2: clamp(1.5rem, 2.4vw, 2.25rem);
  --fs-h3: clamp(1.125rem, 1.6vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-small: .875rem;
  --fs-mono: .8125rem;

  --space-section: clamp(96px, 12vw, 180px);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-fast: 180ms;
  --dur-base: 320ms;
  --dur-slow: 620ms;

  --os-wrap: 1240px;
  --os-pad: clamp(20px, 5vw, 64px);

  /* the dark canvas the 3D sits on, identical in both modes */
  --stage-0: #0f141c;
  --stage-1: #151c26;
  --stage-2: #1c2432;
  --stage-line: rgba(255, 255, 255, .11);
  --on-stage: #f2f6ff;
  --on-stage-soft: #a8b3c7;
  --on-stage-low: #939eb0;

  /* Same base surface as every other page: site.css sets body to --paper
     (--bg-1), so the homepage must not sit on --bg-0 or it reads as a
     different theme the moment you click through to an inner page. */
  background: var(--bg-1);
  color: var(--text-hi);
  font-size: var(--fs-body);
}


/* ---------------------------------------------------------------- typography */
body.os h1,
body.os h2,
body.os h3 {
  letter-spacing: -.03em;
  text-wrap: balance;
  font-family: var(--f-body); /* Instrument Sans stands in for Inter */
  font-weight: 600;
}
body.os h1 { font-size: var(--fs-h1); line-height: 1.02; }
body.os h2 { font-size: var(--fs-h2); line-height: 1.06; }
body.os h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -.02em; }
body.os p { line-height: 1.65; }

.os-wrap {
  max-width: var(--os-wrap);
  margin-inline: auto;
  padding-left: max(var(--os-pad), env(safe-area-inset-left, 0px));
  padding-right: max(var(--os-pad), env(safe-area-inset-right, 0px));
}
.os-sec { position: relative; padding-block: var(--space-section); }
.os-sec--alt { background: var(--bg-3); }
.os-sec__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 55% at 78% 0%, rgba(0, 229, 160, .055), transparent 70%),
    radial-gradient(60% 50% at 10% 100%, rgba(91, 140, 255, .05), transparent 70%),
    linear-gradient(180deg, var(--bg-3), var(--bg-1));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 1px 0 var(--edge);
  z-index: 0;
}
.os-sec > .os-wrap { position: relative; z-index: 1; }

.eyebrow-m {
  display: block;
  font-family: var(--f-mono);
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-text);
  font-weight: 500;
}
.os-lede {
  font-size: 1.1875rem;
  color: var(--text-mid);
  max-width: 62ch;
  line-height: 1.6;
}
body.os .mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.os-head { display: grid; gap: 16px; max-width: 46ch; margin-bottom: clamp(40px, 5vw, 72px); }
.os-head--wide { max-width: 62ch; }
.os-head--mid { max-width: 54ch; }

/* word split for heading reveals (§4.4) */
body.os .w { display: inline-block; overflow: hidden; vertical-align: top; }
body.os .wi { display: inline-block; will-change: transform; }
body.os h1 em,
body.os h2 em { font-style: normal; color: var(--brand-text); }

/* ---------------------------------------------------------------- buttons */
.btn-x,
.btn-g {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 var(--fs-small) / 1 var(--f-body);
  padding: 15px 26px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
}
/* primary: the label swaps upward behind a clip mask on hover (§4.7) */
.btn-x {
  background: var(--brand-500);
  color: var(--cta-ink);
  overflow: hidden;
  will-change: transform;
}
.btn-x:hover { background: var(--brand-400); }
.btn-x__t { display: block; overflow: hidden; height: 1em; }
.btn-x__t span {
  display: block;
  height: 1em;
  transition: transform var(--dur-fast) var(--ease-out);
}
.btn-x:hover .btn-x__t span { transform: translateY(-110%); }
.btn-x__a { transition: transform var(--dur-fast) var(--ease-out); flex: none; }
.btn-x:hover .btn-x__a { transform: translateX(4px); }

/* secondary: the underline draws left to right */
.btn-g { color: var(--text-hi); border-color: var(--line-strong); background: transparent; }
.btn-g::after {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 12px;
  height: 1px;
  background: var(--brand-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--ease-out);
}
.btn-g:hover { border-color: var(--brand-500); }
.btn-g:hover::after { transform: scaleX(1); }
.os-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ------------------------------------------------- pointer glow layer (§4.6) */
.os-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(600px at var(--gx, 50%) var(--gy, 30%), rgba(0, 229, 160, .06), transparent 70%);
}
body.os main,
body.os .site-footer,
body.os .site-header { position: relative; z-index: 1; }
html.no-motion .os-glow { display: none; }

/* ---------------------------------------------------------- custom cursor */
.cur-dot,
.cur-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  pointer-events: none;
  border-radius: 50%;
}
.cur-dot { width: 8px; height: 8px; background: var(--text-hi); }
.cur-ring {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  transition: width 180ms var(--ease-out), height 180ms var(--ease-out),
    border-color 180ms var(--ease-out), opacity 180ms var(--ease-out);
}
.cur-ring.is-hot { width: 51px; height: 51px; border-color: var(--brand-500); }
html.has-cursor.has-motion body.os,
html.has-cursor.has-motion body.os * { cursor: none; }
html.has-cursor.has-motion body.os [data-grab] { cursor: none; }

/* ------------------------------------------------------------- header (§4.9) */
body.os .site-header {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  transition: background var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out), transform 220ms var(--ease-out);
}
body.os .site-header.is-solid {
  background: var(--band-scrim);
  border-bottom-color: var(--line-band);
}
body.os .site-header.is-hidden { transform: translateY(calc(-100% - env(safe-area-inset-top, 0px))); }
body.os::before { background: var(--stage-0); }
body.os .brand b { color: var(--brand-on-band); }
body.os .nav a { color: var(--on-band-soft); }
body.os .nav a:hover,
body.os .nav a[aria-current="page"] { color: var(--on-band); background: var(--tint-on-band); }
body.os .header-cta .login { color: var(--on-band); }
body.os .header-cta .btn--lamp,
body.os .mobile-nav .btn--lamp { background: var(--brand-500); color: var(--cta-ink); }
body.os .header-cta .btn--lamp:hover { background: var(--brand-400); }
body.os .skip { background: var(--brand-500); color: var(--cta-ink); }

/* ------------------------------------------------------ section rail (§4.9) */
.rail {
  position: fixed;
  right: max(14px, env(safe-area-inset-right, 0px));
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: none;
  padding: 10px 0;
}
.rail.is-ready { display: grid; gap: 14px; }
.rail a {
  position: relative;
  display: block;
  width: 26px;
  height: 8px;
  text-decoration: none;
}
.rail a::before {
  content: "";
  position: absolute;
  right: 0;
  top: 2px;
  width: 14px;
  height: 1px;
  background: var(--line-strong);
  transition: width var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.rail a:hover::before { width: 22px; background: var(--text-mid); }
.rail a.is-active::before { width: 26px; background: var(--brand-500); }
.rail a span {
  position: absolute;
  right: 34px;
  top: -5px;
  font-family: var(--f-mono);
  font-size: .625rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-mid);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
  pointer-events: none;
}
.rail a:hover span,
.rail a.is-active span { opacity: 1; transform: translateX(0); }
.rail__marker {
  position: absolute;
  right: 0;
  top: 10px;
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: var(--brand-500);
  box-shadow: 0 0 10px var(--brand-glow);
}
@media (max-width: 1100px) { .rail.is-ready { display: none; } }

/* =========================================================== canvas stages */
.stage { position: relative; }
/* the mid-page stages are dark viewports, the way a product site embeds a dark
   app screenshot on a light page; the hero and finale are already dark bands */
.pipe-stage,
.portal-stage,
.orbit-stage {
  background: radial-gradient(75% 70% at 50% 42%, var(--stage-1), var(--stage-0) 72%);
  border: 1px solid var(--stage-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.stage [data-poster] { width: 100%; height: 100%; display: block; }
.stage.scene-ready > [data-poster],
.stage.scene-ready > .portal-still { display: none; }
.stage--grab { cursor: grab; touch-action: pan-y; }
.stage--grab.is-grabbing { cursor: grabbing; }
.stage.is-pickable { cursor: pointer; }
.pillar-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

/* ================================================================ §2.1 hero */
.os-hero {
  position: relative;
  overflow: hidden;
  background: var(--stage-0);
  color: var(--on-stage);
}
.os-hero .os-hero__sub { color: var(--on-stage-soft); }
.os-hero h1 .l2 { color: var(--on-stage-soft); }
.os-hero .os-hero__trust { color: var(--on-stage-soft); }
.os-hero .eyebrow-m { color: var(--brand-on-band); }
.os-hero .btn-g { color: var(--on-stage); border-color: var(--line-band); }
/* The core is a thin wireframe. Without depth behind it the right-hand half of
   the hero reads as an empty box on a wide screen, so the backdrop carries a
   hot centre, a cool counter-light and a vignette to close the edges in. */
.os-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(28% 30% at 72% 42%, rgba(0, 229, 160, .20), transparent 70%),
    radial-gradient(60% 65% at 74% 38%, rgba(0, 229, 160, .10), transparent 72%),
    radial-gradient(55% 60% at 8% 4%, rgba(91, 140, 255, .16), transparent 70%),
    radial-gradient(70% 60% at 50% 115%, rgba(91, 140, 255, .07), transparent 70%);
}
.os-hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center;
  mask-image:
    radial-gradient(58% 62% at 72% 40%, #000 10%, rgba(0, 0, 0, .35) 55%, transparent 85%);
  -webkit-mask-image:
    radial-gradient(58% 62% at 72% 40%, #000 10%, rgba(0, 0, 0, .35) 55%, transparent 85%);
}
/* closes the hero off from the section below it */
.os-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(5, 7, 12, .75) 100%);
}
.os-hero > .os-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(56px, 8vw, 112px) clamp(56px, 7vw, 96px);
}
.os-hero__copy { display: grid; gap: 24px; min-width: 0; }
.os-hero h1 { font-size: var(--fs-display); line-height: 1.02; }
.os-hero h1 .l1,
.os-hero h1 .l2 { display: block; }
.os-hero h1 .l2 { color: var(--text-mid); }
.os-hero__sub { font-size: 1.125rem; color: var(--text-mid); max-width: 56ch; line-height: 1.6; }
.os-hero__trust {
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  /* low emphasis per the spec, but it carries the price, so not --text-low */
  color: var(--text-mid);
  letter-spacing: .02em;
  line-height: 1.7;
}
.os-hero__stage { position: relative; aspect-ratio: 1 / 1; min-width: 0; z-index: 1; }
/* the still core is the same object as the live one, so it gets the same bloom */
.os-hero__stage > [data-poster] { filter: drop-shadow(0 0 42px rgba(0, 229, 160, .28)); }
.core-chip {
  position: absolute;
  left: 0;
  top: 0;
  display: none;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--stage-line);
  background: rgba(15, 20, 28, .66);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--f-mono);
  font-size: .625rem;
  letter-spacing: .14em;
  color: var(--on-stage);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.stage.scene-ready .core-chip { display: block; }
.os-hero__hint {
  position: absolute;
  left: 50%;
  bottom: 2%;
  transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: .625rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-stage-low);
  display: none;
}
.stage.scene-ready .os-hero__hint { display: block; }
@media (max-width: 940px) {
  .os-hero > .os-wrap { grid-template-columns: 1fr; }
  .os-hero__stage { max-width: 460px; justify-self: center; width: 100%; }
}

/* ============================================= §2.2 problem strip (2x3 grid) */
.probs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  perspective: 1100px;
}
@media (max-width: 760px) { .probs { grid-template-columns: 1fr; } }
.prob { position: relative; }
.prob__in {
  position: relative;
  height: 100%;
  display: grid;
  gap: 14px;
  align-content: start;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  box-shadow: var(--shadow-panel), inset 0 1px 0 var(--edge);
  transform-style: preserve-3d;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
  will-change: transform;
}
.prob.is-tilting .prob__in {
  border-color: var(--line-strong);
  box-shadow: var(--sx, 0px) var(--sy, 0px) 60px rgba(0, 0, 0, .45);
}
.prob__in::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(420px at var(--mx, 50%) var(--my, 50%), var(--brand-glow), transparent 60%);
  transition: opacity var(--dur-base) var(--ease-out);
}
.prob.is-tilting .prob__in::after { opacity: .12; }
.prob__q { font-size: 1.1875rem; font-weight: 600; letter-spacing: -.02em; color: var(--text-hi); }
.prob__b { color: var(--text-mid); font-size: var(--fs-small); }
.prob__cost {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  color: var(--danger-text);
}
.prob__cost b { color: var(--text-low); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: .625rem; }
.prob__n {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--f-mono);
  font-size: .625rem;
  color: var(--text-low);
  letter-spacing: .1em;
}

/* ================================================== §2.3 three pillars */
.pillars { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; perspective: 1400px; }
@media (max-width: 1000px) { .pillars { grid-template-columns: 1fr; } }
.pillar { position: relative; }
.pillar__in {
  height: 100%;
  display: grid;
  gap: 18px;
  align-content: start;
  padding: clamp(22px, 2.4vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  box-shadow: var(--shadow-panel), inset 0 1px 0 var(--edge);
  transform-style: preserve-3d;
  transition: border-color var(--dur-base) var(--ease-out);
  will-change: transform;
}
.pillar.is-tilting .pillar__in { border-color: var(--line-strong); }
.pillar__slot {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: radial-gradient(70% 70% at 50% 50%, rgba(0, 229, 160, .09), transparent 70%), var(--stage-0);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, .55);
  overflow: hidden;
}
.pillar h3 { font-size: 1.25rem; }
.pillar p { color: var(--text-mid); font-size: var(--fs-small); }
.pillar__n { font-family: var(--f-mono); font-size: .625rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brand-text); }

/* ======================================== §2.4 website studio / inquiry pipe */
.studio { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 1000px) { .studio { grid-template-columns: 1fr; } }
.feats { display: grid; gap: 2px; }
.feat {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.feat:first-child { border-top: 1px solid var(--line); }
.feat__ic {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--brand-tint);
  color: var(--brand-text);
}
.feat__ic svg { width: 18px; height: 18px; }
.feat b { display: block; font-weight: 600; color: var(--text-hi); }
.feat span { color: var(--text-mid); font-size: var(--fs-small); }
.studio__close { margin-top: 26px; font-size: 1.0625rem; color: var(--text-hi); max-width: 48ch; }
.pipe-stage { position: relative; aspect-ratio: 4 / 3; }
.pipe-label {
  position: absolute;
  left: 0;
  top: 0;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--stage-line);
  background: rgba(15, 20, 28, .72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--f-mono);
  font-size: .625rem;
  letter-spacing: .12em;
  color: var(--on-stage);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  display: none;
}
.stage.scene-ready .pipe-label { display: block; }

/* ================================================= §2.5 client login portal */
.portal-stage { position: relative; aspect-ratio: 16 / 11; margin-bottom: clamp(32px, 4vw, 56px); }
.portal-mock {
  position: absolute;
  left: 0;
  top: 0;
  width: 420px;
  height: 246px;
  transform-origin: 0 0;
  padding: 14px 16px;
  display: grid;
  gap: 8px;
  align-content: start;
  opacity: 0;
  pointer-events: none;
  background: transparent;
}
.portal-mock { display: none; }
.stage.scene-ready .portal-mock { display: grid; }
.portal-mock__top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-band);
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--on-stage);
  letter-spacing: .04em;
}
.portal-mock ul { list-style: none; display: grid; gap: 6px; }
.portal-mock li {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  line-height: 1.3;
}
.portal-mock li i { width: 7px; height: 7px; border-radius: 50%; background: var(--on-stage-low); }
.portal-mock li.ok i { background: var(--brand-500); }
.portal-mock li.pay i { background: var(--accent-500); }
.portal-mock li.wait i { background: var(--warn-500); }
.portal-mock b { font-weight: 600; color: var(--on-stage); }
.portal-mock em { font-style: normal; color: var(--on-stage-soft); }
.portal-mock time { font-family: var(--f-mono); font-size: 10px; color: var(--on-stage-low); }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
@media (max-width: 860px) { .cols2 { grid-template-columns: 1fr; } }
.col-h {
  font-family: var(--f-mono);
  font-size: .6875rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-text);
  margin-bottom: 18px;
}
.col-list { list-style: none; display: grid; gap: 14px; }
.col-list li { display: grid; gap: 4px; padding-left: 16px; border-left: 2px solid var(--bg-3); }
.col-list b { color: var(--text-hi); font-weight: 600; }
.col-list span { color: var(--text-mid); font-size: var(--fs-small); }
.url-line {
  margin-top: 28px;
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  color: var(--text-low);
  word-break: break-word;
}
.url-line b { color: var(--brand-text); font-weight: 500; }

/* ============================================= §2.6 how it works (pinned) */
#how-it-works { overflow: hidden; }
#how-it-works.is-pinned { padding-block: 0; height: 100vh; display: grid; align-content: center; }
.how-head { display: grid; gap: 14px; max-width: 44ch; margin-bottom: 40px; }
.how-view { position: relative; }
.how-track { display: flex; gap: 20px; will-change: transform; }
.step {
  flex: 0 0 clamp(280px, 30vw, 380px);
  display: grid;
  gap: 14px;
  align-content: start;
  padding: clamp(24px, 2.6vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  box-shadow: var(--shadow-panel), inset 0 1px 0 var(--edge);
}
.step__n { font-family: var(--f-mono); font-size: 2rem; font-weight: 500; color: var(--brand-text); line-height: 1; letter-spacing: -.02em; }
.step h3 { font-size: 1.1875rem; }
.step p { color: var(--text-mid); font-size: var(--fs-small); }
.how-rail { margin-top: 32px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.how-rail i { display: block; height: 100%; background: var(--brand-500); transform: scaleX(0); transform-origin: left; }
@media (max-width: 767px) {
  .how-view { padding-left: 28px; }
  .how-track { flex-direction: column; gap: 0; }
  .step { flex: none; border: 0; border-radius: 0; background: none; padding: 0 0 36px; }
  .how-spine {
    position: absolute;
    left: 3px;
    top: 6px;
    bottom: 40px;
    width: 2px;
    background: var(--brand-500);
    transform-origin: top;
    opacity: .5;
  }
  .how-spine-track { position: absolute; left: 3px; top: 6px; bottom: 40px; width: 2px; background: var(--line); }
  .step { position: relative; }
  .step::before {
    content: "";
    position: absolute;
    left: -28px;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bg-1);
    border: 2px solid var(--brand-500);
  }
  .how-rail { display: none; }
}
@media (min-width: 768px) { .how-spine, .how-spine-track { display: none; } }

/* ====================================== §2.7 not just an ERP / portal orbit */
.os-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 1000px) { .os-split { grid-template-columns: 1fr; } }
.blocks { display: grid; gap: 2px; }
.block { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.block:first-child { border-top: 1px solid var(--line); }
.block__ic {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--accent-tint);
  color: var(--accent-text);
}
.block__ic svg { width: 18px; height: 18px; }
.block b { display: block; color: var(--text-hi); font-weight: 600; margin-bottom: 4px; }
.block span { color: var(--text-mid); font-size: var(--fs-small); }
.orbit-wrap { position: sticky; top: 110px; }
.orbit-stage { position: relative; aspect-ratio: 1 / 1; }
.orbit-label {
  position: absolute;
  left: 0;
  top: 0;
  display: none;
  width: max-content;
  max-width: 190px;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stage-line);
  background: rgba(15, 20, 28, .8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  text-align: center;
}
.stage.scene-ready .orbit-label { display: block; }
.orbit-label b {
  display: block;
  font-family: var(--f-mono);
  font-size: .625rem;
  letter-spacing: .16em;
  color: var(--brand-on-band);
}
.orbit-label span {
  display: block;
  max-height: 0;
  overflow: hidden;
  font-size: .75rem;
  color: var(--on-stage-soft);
  transition: max-height var(--dur-base) var(--ease-out), margin-top var(--dur-base) var(--ease-out);
}
.orbit-label.is-open span { max-height: 3.2em; margin-top: 4px; }
.orbit-panel {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-2);
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height var(--dur-slow) var(--ease-out), opacity var(--dur-base) var(--ease-out),
    padding var(--dur-slow) var(--ease-out);
}
.orbit-panel:not(.is-open) { visibility: hidden; }
.orbit-panel.is-open { max-height: 320px; opacity: 1; padding: 20px; visibility: visible; }
.orbit-panel h3 { font-size: 1rem; margin-bottom: 8px; }
.orbit-panel p { color: var(--text-mid); font-size: var(--fs-small); }
.orbit-panel__x {
  float: right;
  background: none;
  border: 1px solid var(--line);
  color: var(--text-mid);
  border-radius: 8px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}
.orbit-hint { margin-top: 14px; font-family: var(--f-mono); font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-low); display: none; }
.orbit-wrap:has(.scene-ready) .orbit-hint { display: block; }

/* ============================================= §2.8 agency types (4 cards) */
.types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; perspective: 1200px; }
@media (max-width: 1000px) { .types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .types { grid-template-columns: 1fr; } }
.type { position: relative; }
.type__in {
  height: 100%;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 26px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  box-shadow: var(--shadow-panel), inset 0 1px 0 var(--edge);
  text-decoration: none;
  transform-style: preserve-3d;
  transition: border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
  will-change: transform;
}
.type.is-tilting .type__in { border-color: var(--brand-500); background: var(--bg-3); }
.type h3 { font-size: 1.0625rem; color: var(--text-hi); }
.type p { color: var(--text-mid); font-size: var(--fs-small); }
.type__go { font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-text); }
.types-foot { margin-top: 28px; color: var(--text-mid); font-size: var(--fs-small); }
.types-foot a { color: var(--brand-text); }

/* ======================================================== §2.9 pricing */
.price { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 20px; perspective: 1200px; }
@media (max-width: 900px) { .price { grid-template-columns: 1fr; } }
.pz { position: relative; }
.pz__in {
  height: 100%;
  display: grid;
  gap: 16px;
  align-content: start;
  padding: clamp(26px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  box-shadow: var(--shadow-panel), inset 0 1px 0 var(--edge);
  transform-style: preserve-3d;
  will-change: transform;
}
.pz--base .pz__in {
  border-color: rgba(0, 229, 160, .32);
  background: linear-gradient(180deg, rgba(0, 229, 160, .12), var(--bg-2) 62%);
  box-shadow: var(--shadow-panel), inset 0 1px 0 rgba(0, 229, 160, .22);
}
.pz__amt { font-family: var(--f-mono); font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.pz__amt small { font-size: .9rem; color: var(--text-mid); font-weight: 400; letter-spacing: 0; }
.pz p { color: var(--text-mid); font-size: var(--fs-small); }
.mods { list-style: none; display: grid; gap: 0; }
.mods li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.mods li:first-child { border-top: 1px solid var(--line); }
.mods b { display: block; color: var(--text-hi); font-weight: 600; }
.mods span { color: var(--text-mid); font-size: var(--fs-small); }
.mods .p { font-family: var(--f-mono); font-size: var(--fs-small); color: var(--brand-text); white-space: nowrap; }

/* ============================================================ §2.10 FAQ */
.qa { max-width: 860px; border-top: 1px solid var(--line); margin: 0; }
.qa > div { border-bottom: 1px solid var(--line); }
.qa dt { margin: 0; }
.qa dt button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  text-align: left;
  background: none;
  border: 0;
  padding: 22px 0;
  color: var(--text-hi);
  font: 600 1.0625rem / 1.4 var(--f-body);
  letter-spacing: -.01em;
  cursor: pointer;
}
.qa dt button i {
  flex: none;
  position: relative;
  width: 14px;
  height: 14px;
}
.qa dt button i::before,
.qa dt button i::after {
  content: "";
  position: absolute;
  background: var(--brand-500);
  transition: transform var(--dur-base) var(--ease-out);
}
.qa dt button i::before { left: 0; top: 6px; width: 14px; height: 2px; }
.qa dt button i::after { left: 6px; top: 0; width: 2px; height: 14px; }
.qa dt button[aria-expanded="true"] i::after { transform: scaleY(0); }
.qa dd { margin: 0; overflow: hidden; }
.qa dd[hidden] { display: none; }
.qa dd p { color: var(--text-mid); padding-bottom: 24px; max-width: 70ch; font-size: var(--fs-small); }

/* ======================================================== §2.11 final CTA */
.finale {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--stage-0);
  color: var(--on-stage);
}
.finale p { color: var(--on-stage-soft); }
.finale .finale__tel { color: var(--on-stage); }
.finale .btn-g { color: var(--on-stage); border-color: var(--line-band); }
.conv-stage { position: absolute; inset: 0; pointer-events: none; }
.finale > .os-wrap { position: relative; z-index: 1; display: grid; gap: 22px; justify-items: center; max-width: 820px; }
.finale h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
.finale p { color: var(--on-stage-soft); max-width: 56ch; }
.finale .os-actions { justify-content: center; margin-top: 8px; }
.finale__tel { font-family: var(--f-mono); color: var(--text-hi); text-decoration: none; font-size: var(--fs-small); }
.finale__tel:hover { color: var(--brand-on-band); }

/* ====================================================== footer on the home */
body.os .site-footer { background: var(--footer-bg); border-top: 1px solid var(--line-band); color: var(--on-band-soft); }
body.os .site-footer h2 { color: var(--on-band); }
body.os .site-footer ul a { color: var(--on-band-soft); }
body.os .site-footer ul a:hover { color: var(--brand-on-band); }
body.os .foot-contact a { color: var(--on-band); }
body.os .foot-bottom { border-top-color: var(--line-band); }

/* ==================================================== reduced motion (§4.1) */
html.no-motion body.os .os-glow,
html.no-motion .rail,
html.no-motion .cur-dot,
html.no-motion .cur-ring { display: none !important; }
html.no-motion #how-it-works .how-track { flex-direction: column; gap: 20px; transform: none !important; }
html.no-motion #how-it-works .step { flex: none; }
@media (prefers-reduced-motion: reduce) {
  body.os *,
  body.os *::before,
  body.os *::after { animation: none !important; transition: none !important; }
}

/* ------------------------------------------- §3.4 poster: the portal, still */
/* Not an SVG: these rows are the substance of the section, so they stay real
   markup whether or not the glass slab ever renders. */
.portal-still { display: grid; place-items: center; padding: 4%; }
.portal-still__card {
  width: min(520px, 100%);
  border: 1px solid var(--stage-line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--stage-2), var(--stage-0));
  color: var(--on-stage);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
  overflow: hidden;
}
.portal-still__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-bottom: 1px solid var(--stage-line);
  background: rgba(255, 255, 255, .03);
  font-size: var(--fs-small);
  color: var(--on-stage);
}
.portal-still__top .mono { font-size: .6875rem; color: var(--on-stage-low); }
.portal-still ul { list-style: none; margin: 0; padding: 0; }
.portal-still li {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--stage-line);
  font-size: var(--fs-small);
}
.portal-still li:last-child { border-bottom: 0; }
.portal-still li i { width: 7px; height: 7px; border-radius: 50%; background: var(--on-stage-low); }
.portal-still li.ok i { background: var(--brand-500); }
.portal-still li.pay i { background: var(--accent-500); }
.portal-still li.wait i { background: var(--warn-500); }
.portal-still b { color: var(--on-stage); font-weight: 600; }
.portal-still em { font-style: normal; color: var(--on-stage-soft); }
.portal-still time { font-family: var(--f-mono); font-size: .6875rem; color: var(--on-stage-low); }

/* ------------------------------------------------- Lenis (§4.1) base styles */
/* site.css sets scroll-behavior: smooth globally, which fights a rAF-driven
   smooth scroll. These are the styles Lenis needs; they only apply once the
   motion system has actually booted. */
html.lenis,
html.lenis body { height: auto; }
html.has-motion,
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }
