/* ==========================================================================
   DIGITAL GROWTH SYSTEM — Presentation styles
   --------------------------------------------------------------------------
   1. Tokens          6. The System        11. Always improving
   2. Base            7. Weekly report     12. Close + footer
   3. Utilities       8. Charts            13. Dialog + tooltip
   4. Header / rail   9. Search intent     14. Pricing (hidden in V1)
   5. Hero / premise 10. Traffic → business 15. Reduced motion
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  /* Surfaces — near-black with a cool ink undertone */
  --bg:        #08090c;
  --bg-2:      #0b0d11;
  --surface:   #101318;
  --surface-2: #14181f;
  --surface-3: #1a1f28;

  /* Ink — warm ivory, never pure white */
  --text:   #eeebe4;
  --text-2: #b3b6be;
  --text-3: #858a94;
  --line:   rgba(238, 235, 228, .08);
  --line-2: rgba(238, 235, 228, .14);

  /* Brand accent — champagne. Used sparingly: emphasis, the core, CTAs */
  --gold:       #d9bd85;
  --gold-soft:  rgba(217, 189, 133, .14);
  --gold-glow:  rgba(217, 189, 133, .22);

  /* Data palette (validated for CVD separation on the dark surface) */
  --series-1: #5a8ff0;   /* blue   — primary measure */
  --series-2: #b5852a;   /* gold   */
  --series-3: #a678e0;   /* violet — AI referrals */
  --series-4: #22a183;   /* teal   */
  --series-muted: #4a505c;
  --good: #5fc29a;

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", Inter, Roboto, Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Hoefler Text", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-pad: clamp(96px, 13vw, 176px);
  --radius: 18px;
  --radius-lg: 26px;
  --header-h: 64px;

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

/* 2. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* Procedural film grain — very low opacity, adds tactility to flat darks */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
em { font-style: normal; }
strong { font-weight: 600; color: var(--text); }

::selection { background: var(--gold); color: #111; }

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

/* 3. UTILITIES ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--gold);
  color: #111;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transform: translateY(-160%);
  transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-2);
}
.eyebrow__num { color: var(--gold); }
.eyebrow__num::after {
  content: "";
  display: inline-block;
  width: 28px; height: 1px;
  margin-left: 12px;
  vertical-align: middle;
  background: var(--line-2);
}
.eyebrow__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
}

.section-head { max-width: 760px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.section-title {
  margin-top: 22px;
  font-size: clamp(2.05rem, 4.6vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -.032em;
  font-weight: 600;
  text-wrap: balance;
}
.section-title em,
.hero__title em,
.close__title em,
.component__quote em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.015em;
  color: var(--gold);
}

.section-lede {
  margin-top: 22px;
  max-width: 620px;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--text-2);
  text-wrap: pretty;
}
.section-head--center .section-lede { margin-inline: auto; }
/* Section 04 in Spanish: the second line needs ~824px at full size — room for it on one line */
:lang(es) #journey .section-head { max-width: 840px; }

/* Buttons */
.btn {
  --btn-bg: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: transform .4s var(--ease-out), background-color .3s, color .3s, border-color .3s, box-shadow .4s var(--ease-out);
}
.btn svg { width: 18px; height: 18px; transition: transform .4s var(--ease-out); }
.btn--primary {
  background: linear-gradient(180deg, #e6cd99, #cfae6f);
  color: #15120c;
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 10px 30px -12px rgba(217, 189, 133, .55);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 18px 40px -14px rgba(217, 189, 133, .7); }
.btn--primary:hover svg { transform: translateY(2px); }
.btn--primary[data-open-contact]:hover svg { transform: translateX(3px); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: rgba(217, 189, 133, .5); color: var(--gold); }
.btn--quiet { color: var(--text-2); padding-inline: 8px; }
.btn--quiet::after {
  content: "";
  position: absolute;
  left: 8px; right: 8px; bottom: 14px;
  height: 1px;
  background: currentColor;
  opacity: .35;
  transform-origin: left;
  transition: opacity .3s, transform .5s var(--ease-out);
}
.btn--quiet:hover { color: var(--text); }
.btn--quiet:hover::after { opacity: .9; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 13px; }
.btn--lg { min-height: 60px; padding: 0 34px; font-size: 16px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: var(--gold);
  font-weight: 600;
  font-size: 15px;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .4s var(--ease-out); }
.link-arrow:hover svg { transform: translateY(3px); }

/* Reveal-on-scroll (only when JS is running) */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 1.1s var(--ease-out) var(--d, 0s), transform 1.1s var(--ease-out) var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* 4. HEADER / RAIL / PROGRESS --------------------------------------------- */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 60;
  pointer-events: none;
}
.progress__bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--gold));
  transform-origin: left;
  transform: scaleX(var(--progress, 0));
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-inline: var(--gutter);
  padding-top: env(safe-area-inset-top);
  box-sizing: content-box;
  transition: background-color .5s, border-color .5s, backdrop-filter .5s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(8, 9, 12, .72);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 14px; justify-self: start; }
.brand__mark { width: 32px; height: 32px; color: var(--text); }
.brand__core { fill: var(--gold); }
.brand__text { display: flex; flex-direction: column; gap: 4px; line-height: 1.2; }
.brand__name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.brand__by { font-size: 11.5px; letter-spacing: .06em; color: var(--text-3); white-space: nowrap; }

.site-header__chapter {
  display: flex;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
  opacity: 0;
  transition: opacity .5s;
}
.site-header.is-scrolled .site-header__chapter { opacity: 1; }
.site-header__chapter [data-chapter-num] { color: var(--gold); }
.site-header__sep { opacity: .4; }
.site-header__cta { justify-self: end; }
.site-header__actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
/* fits “Let’s talk” and “Hablemos” alike, so the language control never shifts when the language changes */
.site-header__cta { min-width: 7.75em; }

/* Language control — names the language you can switch to. “Letter Resolve”:
   letters dissolve into the other word left to right while a champagne light
   crosses the capsule (main.js → language()). */
.lang {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 15px 0 13px;
  border: 1px solid rgba(217, 189, 133, .28);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(217, 189, 133, .07), rgba(217, 189, 133, .015));
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: border-color .3s, color .3s, box-shadow .5s var(--ease-out);
}
.lang:hover { border-color: rgba(217, 189, 133, .55); color: var(--text); box-shadow: 0 0 0 4px rgba(217, 189, 133, .05), 0 10px 26px -14px rgba(217, 189, 133, .5); }
.lang__globe { flex: none; width: 15px; height: 15px; fill: none; stroke: var(--gold); stroke-width: 1.1; }
.lang__meridian { transform-box: fill-box; transform-origin: center; }
.lang__word, .lang__code { display: inline-flex; }
.lang__code { display: none; }
.lang__cell { display: inline-grid; }
.lang__g { grid-area: 1 / 1; }
.lang::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(100deg, transparent 30%, rgba(217, 189, 133, .34) 50%, transparent 70%);
  transform: translateX(-110%);
  pointer-events: none;
}
.lang.is-morphing { border-color: rgba(217, 189, 133, .6); box-shadow: 0 0 24px -8px rgba(217, 189, 133, .5); }
/* ~935 ms: 70 ms stagger; each letter lifts out while its successor rises in,
   lit champagne and settling to the label colour — the light travels with the stagger */
.lang.is-morphing::after { animation: langLight .9s cubic-bezier(.45, 0, .25, 1) .05s both; }
.lang.is-morphing .lang__meridian { animation: langTurn .9s var(--ease-in-out); }
.lang__g--out { animation: langOut .32s cubic-bezier(.4, 0, .2, 1) calc(var(--i) * 70ms + 40ms) both; }
.lang__g--in { animation: langIn .4s cubic-bezier(.16, 1, .3, 1) calc(var(--i) * 70ms + 115ms) both; }
@keyframes langLight { to { transform: translateX(110%); } }
@keyframes langTurn { 50% { transform: scaleX(.3); } }
@keyframes langOut { to { opacity: 0; transform: translateY(-.32em); } }
@keyframes langIn {
  from { opacity: 0; transform: translateY(.32em); color: var(--gold); text-shadow: 0 0 10px rgba(217, 189, 133, .75); }
  55%  { opacity: 1; color: var(--gold); text-shadow: 0 0 8px rgba(217, 189, 133, .4); }
  to   { opacity: 1; transform: none; }
}
.no-js .lang { display: none; }
/* a returning Spanish visitor never sees English flash (index.html <head>, 2 s failsafe) */
.i18n-pending body { visibility: hidden; }

.rail {
  position: fixed;
  right: 26px;
  top: 50%;
  z-index: 40;
  transform: translateY(-50%);
  display: none;
}
.rail ol { display: grid; gap: 4px; }
.rail a {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 24px;
  height: 24px;
}
.rail a::after {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-3);
  opacity: .5;
  transition: transform .4s var(--ease-out), background-color .3s, opacity .3s;
}
.rail a span {
  position: absolute;
  right: 26px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-2);
  opacity: 0;
  transform: translateX(6px);
  transition: opacity .3s, transform .4s var(--ease-out);
  pointer-events: none;
}
.rail a:hover span, .rail a:focus-visible span { opacity: 1; transform: none; }
.rail a:hover::after { opacity: 1; }
.rail a.is-active::after { background: var(--gold); opacity: 1; transform: scale(1.5); }

@media (min-width: 1280px) { .rail { display: block; } }

.brand__name { white-space: nowrap; }
@media (max-width: 960px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header__chapter { display: none; }
}
@media (max-width: 720px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header__chapter { display: none; }
  .brand__mark { width: 30px; height: 30px; }
  .brand { gap: 12px; }
  .brand__text { gap: 3px; }
  .brand__name { font-size: 12.5px; letter-spacing: .16em; }
  .brand__by { font-size: 10.5px; }
}
/* phones: compact ES / EN control; the header CTA gives way (the close section keeps its CTA) */
@media (max-width: 560px) {
  .site-header__cta { display: none; }
  .lang { height: 36px; padding: 0 12px 0 11px; gap: 7px; }
  .lang__word { display: none; }
  .lang__code { display: inline-flex; }
}
@media (max-width: 380px) {
  .brand__name, .brand__text { display: none; }
}

/* 5. HERO ------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding-top: calc(var(--header-h) + 40px);
  isolation: isolate;
  overflow: hidden;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 0% 60%, rgba(8,9,12,.92) 20%, rgba(8,9,12,.4) 55%, transparent 75%),
    linear-gradient(180deg, transparent 70%, var(--bg) 100%);
}
.hero__inner {
  align-self: center;
  padding-block: 40px 56px;
}
.hero__eyebrow { margin-bottom: 34px; }

.hero__title {
  max-width: 13.5em;
  font-size: clamp(2.7rem, 6.7vw, 6.1rem);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 600;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line__inner { display: inline-block; }
/* Serif italic descenders (g, y) drop further than the sans lines — extra room inside the
   reveal mask, cancelled by an equal negative margin so the layout does not shift. */
.hero__title .line--accent { margin-top: .08em; padding-bottom: .26em; margin-bottom: -.26em; }
.hero__title .line--accent em { letter-spacing: -.03em; }
/* Spanish runs ~60% longer: slightly smaller, balanced breaks — same composition (English untouched) */
:lang(es) .hero__title { font-size: clamp(2.5rem, 6.1vw, 5.5rem); }
:lang(es) .hero__title .line__inner { text-wrap: balance; }

.js .hero__title .line__inner {
  transform: translate3d(0, 105%, 0);
  transition: transform 1.3s var(--ease-out);
}
.js .hero__title .line:nth-child(2) .line__inner { transition-delay: .1s; }
.js .hero__title .line:nth-child(3) .line__inner { transition-delay: .24s; }
.js .is-loaded .hero__title .line__inner { transform: none; }

.hero__lede {
  margin-top: 34px;
  max-width: 540px;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  color: var(--text-2);
  text-wrap: pretty;
}
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }

.hero__pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  padding-bottom: 40px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.hero__pillars li { display: inline-flex; align-items: center; }
.hero__pillars li + li::before {
  content: "";
  width: 18px; height: 1px;
  margin-inline: 14px;
  background: var(--line-2);
}

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 40px;
  width: 1px;
  height: 64px;
  background: var(--line);
  overflow: hidden;
}
.hero__scroll span {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, var(--gold));
  animation: scrollcue 2.6s var(--ease-in-out) infinite;
}
@keyframes scrollcue {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

@media (max-width: 720px) {
  .hero { padding-top: calc(var(--header-h) + 12px); }
  .hero__veil {
    background:
      linear-gradient(180deg, rgba(8,9,12,.15) 0%, rgba(8,9,12,.55) 38%, rgba(8,9,12,.92) 62%, var(--bg) 100%);
  }
  .hero__inner { align-self: end; padding-block: 34vh 28px; padding-block: 30svh 28px; }
  .hero__eyebrow { margin-bottom: 22px; }
  .hero__lede { margin-top: 24px; }
  .hero__actions { margin-top: 30px; }
  .hero__actions .btn--primary { width: 100%; }
  .hero__actions .btn--quiet { margin-inline: auto; }
  .hero__pillars { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 22px; padding-bottom: 28px; font-size: 10.5px; }
  .hero__pillars li + li::before { display: none; }
  .hero__scroll { display: none; }
}

/* Portrait tablets: copy sits low, the system visual above it */
@media (min-width: 721px) and (max-width: 1100px) and (orientation: portrait) {
  .hero__inner { align-self: end; padding-bottom: 48px; }
  .hero__veil { background: linear-gradient(180deg, transparent 30%, rgba(8,9,12,.75) 55%, rgba(8,9,12,.9) 75%, var(--bg) 100%); }
}

/* Premise */
.premise { padding-block: clamp(80px, 12vw, 160px) 0; }
.premise__text {
  max-width: 21em;
  font-size: clamp(1.6rem, 3.6vw, 3rem);
  line-height: 1.18;
  letter-spacing: -.025em;
  font-weight: 500;
  color: var(--text-2);
  text-wrap: balance;
}
.premise__muted { color: var(--text-3); }
.premise__text strong { color: var(--text); font-weight: 600; }

/* 6. THE SYSTEM ------------------------------------------------------------ */
.system { padding-block: var(--section-pad); position: relative; }

.system__layout {
  margin-top: clamp(56px, 8vw, 110px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
}
.system__visual { position: relative; }
.orbit {
  position: sticky;
  top: calc(var(--header-h) + 40px);
  height: calc(100vh - var(--header-h) - 80px);
  max-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.orbit__svg { width: 100%; height: auto; max-height: 86%; overflow: visible; }
.orbit__ring { fill: none; stroke: var(--line-2); stroke-width: 1; }
.orbit__ring--inner { stroke: var(--line); stroke-dasharray: 2 6; }
.orbit__ring--outer { stroke: var(--line); }
.orbit__spokes line { stroke: var(--line); stroke-width: 1; transition: stroke .6s; }
.orbit__hex { fill: none; stroke: rgba(217, 189, 133, .18); stroke-width: 1; }
.orbit__core { fill: var(--surface-2); stroke: rgba(217,189,133,.6); stroke-width: 1; }
.orbit__core-label {
  fill: var(--gold);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .16em;
  text-anchor: middle;
}
.orbit__node circle {
  fill: var(--bg-2);
  stroke: var(--line-2);
  stroke-width: 1;
  transition: fill .6s, stroke .6s, r .6s var(--ease-out);
}
.orbit__node text {
  fill: var(--text-3);
  font-family: var(--font-mono);
  font-size: 10px;
  text-anchor: middle;
  transition: fill .6s;
}
.orbit__label {
  fill: var(--text-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-anchor: middle;
  transition: fill .6s;
}
.orbit__label[text-anchor="start"] { text-anchor: start; }
.orbit__label[text-anchor="end"] { text-anchor: end; }
.orbit__signal { fill: var(--gold); filter: drop-shadow(0 0 4px rgba(217,189,133,.9)); }

/* Highlight the active node — driven by data-active on .orbit */
.orbit[data-active="0"] [data-node="0"] circle, .orbit[data-active="1"] [data-node="1"] circle,
.orbit[data-active="2"] [data-node="2"] circle, .orbit[data-active="3"] [data-node="3"] circle,
.orbit[data-active="4"] [data-node="4"] circle, .orbit[data-active="5"] [data-node="5"] circle {
  fill: var(--gold); stroke: var(--gold); r: 24px;
}
.orbit[data-active="0"] [data-node="0"] text, .orbit[data-active="1"] [data-node="1"] text,
.orbit[data-active="2"] [data-node="2"] text, .orbit[data-active="3"] [data-node="3"] text,
.orbit[data-active="4"] [data-node="4"] text, .orbit[data-active="5"] [data-node="5"] text { fill: #15120c; font-weight: 700; }
.orbit[data-active="0"] [data-label="0"], .orbit[data-active="1"] [data-label="1"],
.orbit[data-active="2"] [data-label="2"], .orbit[data-active="3"] [data-label="3"],
.orbit[data-active="4"] [data-label="4"], .orbit[data-active="5"] [data-label="5"] { fill: var(--text); }
.orbit[data-active="0"] .orbit__spokes line:nth-child(1), .orbit[data-active="1"] .orbit__spokes line:nth-child(2),
.orbit[data-active="2"] .orbit__spokes line:nth-child(3), .orbit[data-active="3"] .orbit__spokes line:nth-child(4),
.orbit[data-active="4"] .orbit__spokes line:nth-child(5), .orbit[data-active="5"] .orbit__spokes line:nth-child(6) { stroke: rgba(217,189,133,.55); }

.orbit__caption {
  margin-top: 22px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.orbit__caption [data-orbit-num] { color: var(--gold); }

.system__list { display: grid; }

.component {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  column-gap: 8px;
  padding-block: clamp(44px, 6vw, 72px);
  border-top: 1px solid var(--line);
  transition: opacity .7s var(--ease-out);
}
.component:first-child { border-top: 0; padding-top: 8px; }
.component > *:not(.component__num) { grid-column: 2; }
.component__num {
  grid-row: 1 / span 6;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 30px;
  line-height: 1.1;
  color: var(--gold);
}
.component__title {
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: -.025em;
  font-weight: 600;
}
.component__lede {
  margin-top: 14px;
  max-width: 560px;
  color: var(--text-2);
  font-size: 1.05rem;
  text-wrap: pretty;
}

.features {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
}
.features li {
  position: relative;
  padding: 11px 0 11px 22px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--text);
}
.features li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 21px;
  width: 6px; height: 6px;
  transform: rotate(45deg);
  border: 1px solid var(--gold);
  opacity: .8;
}

.component__note {
  margin-top: 26px;
  max-width: 560px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-3);
}
.component__note span { color: var(--gold); margin-right: 4px; }

.component__quote {
  margin-top: 34px;
  padding: 26px 0 0;
  border-top: 1px solid rgba(217, 189, 133, .25);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.22;
  letter-spacing: -.02em;
  font-weight: 600;
}

.component--feature .component__title { color: var(--text); }

/* Desktop: dim components not in focus for a guided read */
@media (min-width: 961px) {
  .js .component { opacity: .38; }
  .js .component.is-active { opacity: 1; }
}

@media (max-width: 960px) {
  .system__layout { grid-template-columns: 1fr; margin-top: 48px; }
  .system__visual { display: none; }
}
@media (max-width: 600px) {
  .component { grid-template-columns: 1fr; }
  .component > *:not(.component__num) { grid-column: 1; }
  .component__num { grid-row: auto; font-size: 24px; margin-bottom: 10px; }
  .features { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
  .features li { padding: 7px 13px 7px 26px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13.5px; line-height: 1.35; background: rgba(255,255,255,.015); }
  .features li::before { left: 12px; top: 50%; width: 5px; height: 5px; margin-top: -3px; }
}

/* 7. WEEKLY REPORT --------------------------------------------------------- */
.report {
  position: relative;
  padding-block: var(--section-pad);
  isolation: isolate;
}
.report::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(70% 45% at 50% 30%, rgba(90, 143, 240, .08), transparent 70%),
    radial-gradient(50% 40% at 85% 55%, rgba(217, 189, 133, .05), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}

.dash {
  position: relative;
  margin-top: clamp(48px, 7vw, 88px);
  padding: clamp(14px, 2vw, 26px);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(26, 31, 40, .9), rgba(14, 17, 22, .95));
  border: 1px solid var(--line-2);
  box-shadow:
    0 1px 0 rgba(255,255,255,.05) inset,
    0 60px 120px -40px rgba(0, 0, 0, .8),
    0 0 0 1px rgba(0,0,0,.4);
}
.dash::before {
  /* hairline highlight along the top edge */
  content: "";
  position: absolute;
  top: -1px; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217,189,133,.6), transparent);
}

.dash__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 6px 6px 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.dash__id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.dash__mark { width: 30px; height: 30px; color: var(--gold); flex: none; }
.dash__name { font-weight: 600; font-size: 15px; letter-spacing: -.005em; }
.dash__for { color: var(--text-3); font-weight: 400; }
.dash__week { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); letter-spacing: .04em; }
.dash__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }

.sample-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(217, 189, 133, .35);
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.sample-badge__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* Segmented control (industry switch) */
.segmented {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  border: 1px solid var(--line);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.segmented::-webkit-scrollbar { display: none; }
.segmented button {
  flex: none;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-3);
  transition: color .3s, background-color .3s;
}
.segmented button:hover { color: var(--text); }
.segmented button[aria-checked="true"] { background: var(--surface-3); color: var(--text); box-shadow: 0 0 0 1px var(--line-2) inset; }

.dash__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}

.tile {
  position: relative;
  grid-column: span 12;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: rgba(16, 19, 24, .85);
  border: 1px solid var(--line);
  overflow: hidden;
  min-width: 0;
}
/* Cursor spotlight (desktop) */
[data-spot]::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(217, 189, 133, .07), transparent 60%);
  transition: opacity .4s;
}
[data-spot]:hover::before { opacity: 1; }

.tile__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.tile__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-2);
}
.tile__meta { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); letter-spacing: .06em; }
.tile__foot { margin-top: auto; font-size: 13px; color: var(--text-3); }

.tile--hero {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(90, 143, 240, .12), transparent 60%),
    rgba(16, 19, 24, .85);
}
.kpi-hero {
  margin-top: 18px;
  font-size: clamp(3.6rem, 7vw, 5.6rem);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
}
.delta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.delta svg { width: 11px; height: 11px; }
.delta--up { color: var(--good); }
.delta--down { color: #e58c7a; }
.delta--down svg { transform: rotate(180deg); }
.delta__vs { color: var(--text-3); font-weight: 400; margin-left: 2px; }
.tile--hero .tile__foot { padding-top: 18px; }

.kpis {
  grid-column: span 12;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.kpi {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 18px 16px;
  border-radius: var(--radius);
  background: rgba(16, 19, 24, .85);
  border: 1px solid var(--line);
  overflow: hidden;
  min-width: 0;
}
.kpi::after {
  content: "";
  position: absolute;
  left: 18px; right: 18px; top: 0;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--series-1);
  opacity: .7;
}
.kpi--ai::after { background: var(--series-3); }
.kpi__value {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.kpi__label { font-size: 13px; line-height: 1.3; color: var(--text-2); }
.kpi__note { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }

.tile--insights { background: rgba(16, 19, 24, .6); }

.dash__foot {
  margin-top: 18px;
  padding: 16px 8px 4px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-3);
  max-width: 980px;
}
.dash__foot strong { color: var(--gold); font-weight: 600; }

@media (min-width: 1100px) {
  .tile--hero { grid-column: span 4; }
  .tile--trend { grid-column: span 8; }
  .tile--sources { grid-column: span 5; }
  .tile--funnel { grid-column: span 4; }
  .tile--devices { grid-column: span 3; }
  .tile--list { grid-column: span 4; }
}
@media (min-width: 720px) and (max-width: 1099px) {
  .tile--hero { grid-column: span 5; }
  .tile--trend { grid-column: span 7; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile--sources { grid-column: span 7; }
  .tile--devices { grid-column: span 5; }
  .tile--funnel { grid-column: span 12; }
  .tile--list { grid-column: span 6; }
  .tile--list:last-of-type { grid-column: span 12; }
}
@media (max-width: 719px) {
  .dash { margin-inline: calc(var(--gutter) * -.5); border-radius: 22px; }
  .dash__top { padding-bottom: 16px; }
  .dash__controls { width: 100%; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dash__grid { gap: 10px; }
  .tile { padding: 18px 16px; }
  .kpi { padding: 16px 14px 14px; }
  .kpi::after { left: 14px; right: 14px; }
  .kpi-hero { font-size: 4rem; }
}

/* 8. CHARTS ---------------------------------------------------------------- */
.legend { display: inline-flex; gap: 16px; font-size: 12px; color: var(--text-2); }
.legend__item { display: inline-flex; align-items: center; gap: 7px; }
.legend__line { width: 16px; height: 2px; border-radius: 2px; background: var(--series-1); }
.legend__line--muted { background: repeating-linear-gradient(90deg, var(--text-3) 0 4px, transparent 4px 7px); }
.legend__swatch { width: 9px; height: 9px; border-radius: 3px; flex: none; }

.chart--trend { position: relative; height: clamp(190px, 22vw, 250px); }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .grid line { stroke: rgba(238,235,228,.06); stroke-width: 1; }
.chart .axis text { fill: var(--text-3); font-size: 11px; font-family: var(--font-mono); }
.chart .line-now { fill: none; stroke: var(--series-1); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.chart .line-prev { fill: none; stroke: var(--text-3); stroke-width: 1.5; stroke-dasharray: 4 4; opacity: .7; }
.chart .area-now { fill: url(#trendFill); }
.chart .crosshair { stroke: var(--line-2); stroke-width: 1; }
.chart .hover-dot { fill: var(--series-1); stroke: var(--surface); stroke-width: 2; }
.chart .end-dot { fill: var(--series-1); stroke: var(--surface); stroke-width: 2; }

/* Animated draw */
.js .chart .line-now { stroke-dasharray: var(--len) var(--len); stroke-dashoffset: var(--len); }
.js .chart .line-prev, .js .chart .area-now, .js .chart .end-dot { opacity: 0; }
.js .is-drawn .chart .line-now { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s var(--ease-in-out); }
.js .is-drawn .chart .line-prev { opacity: .7; transition: opacity 1.2s ease .3s; }
.js .is-drawn .chart .area-now { opacity: 1; transition: opacity 1.2s ease .8s; }
.js .is-drawn .chart .end-dot { opacity: 1; transition: opacity .5s ease 1.7s; }

/* Horizontal bars (sources, regions, pages) */
.bars { display: grid; gap: 12px; }
.bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: baseline;
  font-size: 14px;
}
.bar__label { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar__value { font-variant-numeric: tabular-nums; color: var(--text-2); font-size: 13px; }
.bar__value b { color: var(--text); font-weight: 600; margin-right: 6px; }
.bar__track {
  grid-column: 1 / -1;
  height: 6px;
  border-radius: 4px;
  background: rgba(238,235,228,.05);
  overflow: hidden;
}
.bar__fill {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: 4px;
  background: var(--series-1);
  transform-origin: left;
}
.bar--ai .bar__fill { background: var(--series-3); }
.bar--muted .bar__fill { background: var(--series-muted); }
.bar__tag {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--series-3);
  filter: brightness(1.35);
}
.js .bar__fill { transform: scaleX(0); }
.js .is-drawn .bar__fill { transform: scaleX(1); transition: transform 1.4s var(--ease-out) calc(var(--i, 0) * 80ms + .2s); }

.ai-split {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-2);
}
.ai-split__head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--text-3); margin-bottom: 10px; }
.ai-split__head span:first-child { color: var(--text-2); }
.ai-split__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(166, 120, 224, .3);
  background: rgba(166, 120, 224, .08);
  font-size: 12.5px;
  color: var(--text-2);
}
.chip b { color: var(--text); font-variant-numeric: tabular-nums; }

/* Funnel */
.funnel { display: grid; gap: 8px; }
.funnel__row { position: relative; display: grid; gap: 6px; }
.funnel__top { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.funnel__top span:first-child { color: var(--text-2); }
.funnel__top b { font-variant-numeric: tabular-nums; font-weight: 600; }
.funnel__bar {
  height: 22px;
  border-radius: 4px;
  background: rgba(238,235,228,.04);
  overflow: hidden;
}
.funnel__fill {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(90,143,240,.55), var(--series-1));
  transform-origin: left;
}
.funnel__row:last-child .funnel__fill { background: linear-gradient(90deg, #c9a45f, var(--gold)); }
.funnel__rate { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); letter-spacing: .04em; }
.js .funnel__fill { transform: scaleX(0); }
.js .is-drawn .funnel__fill { transform: scaleX(1); transition: transform 1.4s var(--ease-out) calc(var(--i, 0) * 140ms + .2s); }

.mix { margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.mix__head { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); margin-bottom: 10px; }
.mix__head b { color: var(--text); font-variant-numeric: tabular-nums; }
.mix__bar { display: flex; gap: 2px; height: 10px; }
.mix__seg { height: 100%; flex: var(--v) 1 0; border-radius: 3px; }
.js .mix__bar { clip-path: inset(0 100% 0 0); }
.js .is-drawn .mix__bar { clip-path: inset(0 0 0 0); transition: clip-path 1.4s var(--ease-out) .5s; }
.mix__legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 12px; color: var(--text-2); }
.mix__legend span { display: inline-flex; align-items: center; gap: 6px; }
.mix__legend b { color: var(--text); font-variant-numeric: tabular-nums; font-weight: 600; }

/* Donut */
.donut { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.donut__wrap { position: relative; width: min(180px, 100%); aspect-ratio: 1; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut__seg { fill: none; stroke-width: 14; transition: stroke-width .3s var(--ease-out); }
.donut__seg:hover { stroke-width: 18; }
.donut__center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.donut__center b { font-size: 2rem; line-height: 1; font-weight: 600; letter-spacing: -.04em; }
.donut__center span { font-size: 11px; font-family: var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-top: 6px; }
.donut__legend { display: grid; gap: 8px; width: 100%; font-size: 13px; }
.donut__legend li { display: flex; align-items: center; gap: 8px; color: var(--text-2); }
.donut__legend b { margin-left: auto; color: var(--text); font-variant-numeric: tabular-nums; font-weight: 600; }
.js .donut__seg { stroke-dasharray: 0 var(--c); }
.js .is-drawn .donut__seg { stroke-dasharray: var(--len) var(--c); transition: stroke-dasharray 1.4s var(--ease-out) calc(var(--i, 0) * 260ms + .2s), stroke-width .3s var(--ease-out); }

/* Ranked lists */
.rank { display: grid; gap: 0; counter-reset: rank; }
.rank li {
  counter-increment: rank;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}
.rank li:first-child { border-top: 0; padding-top: 2px; }
.rank li::before { content: counter(rank, decimal-leading-zero); font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); }
.rank__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.rank--queries .rank__label::before { content: "“"; color: var(--text-3); }
.rank--queries .rank__label::after { content: "”"; color: var(--text-3); }
.rank li > b { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13px; }
.rank__path { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-2); }

.regions { display: grid; gap: 10px; }
.regions .bar { font-size: 13.5px; }
.regions .bar__track { height: 4px; }

/* Insights */
.insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.insight {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: 14px;
  background: rgba(8, 9, 12, .45);
  border: 1px solid var(--line);
}
.insight__n { font-family: var(--font-serif); font-style: italic; color: var(--gold); font-size: 20px; line-height: 1; }
.insight__title { font-weight: 600; font-size: 15.5px; line-height: 1.3; letter-spacing: -.01em; }
.insight__body { font-size: 13.5px; color: var(--text-2); line-height: 1.55; }
.insight__action {
  margin-top: auto;
  display: flex;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text);
}
.insight__action::before {
  content: "→";
  color: var(--gold);
  font-weight: 600;
}
@media (max-width: 960px) { .insights { grid-template-columns: 1fr; } }

/* Industry switch transitions */
[data-swap] { transition: opacity .35s ease, transform .5s var(--ease-out); }
[data-swap].is-swapping { opacity: 0; transform: translateY(6px); }

/* 9. SEARCH INTENT --------------------------------------------------------- */
.searching { padding-block: var(--section-pad); position: relative; }

.search-stage { margin-top: clamp(48px, 7vw, 80px); }

.searchbox {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 760px;
  min-height: 76px;
  padding: 0 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--surface-3), var(--surface));
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px -40px rgba(90, 143, 240, .35), 0 1px 0 rgba(255,255,255,.05) inset;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  letter-spacing: -.015em;
}
.searchbox svg { width: 22px; height: 22px; flex: none; color: var(--text-3); }
.searchbox__text { white-space: nowrap; overflow: hidden; text-overflow: clip; min-width: 0; }
.searchbox__caret {
  width: 2px; height: 1.2em;
  margin-left: -12px;
  background: var(--gold);
  animation: caret 1.05s steps(1) infinite;
  flex: none;
}
@keyframes caret { 50% { opacity: 0; } }

.search-stage__bar {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.illustrative {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.illustrative::before { content: "◆"; color: var(--gold); margin-right: 8px; font-size: 8px; vertical-align: 2px; }

.journeys { margin-top: 22px; }
.journeys__head, .journey-row {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1.1fr 1.15fr;
  gap: 24px;
  align-items: center;
}
.journeys__head {
  padding: 0 24px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.journeys__body { display: grid; gap: 10px; }
.journey-row {
  position: relative;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: rgba(16, 19, 24, .7);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color .4s, background-color .4s;
}
.journey-row:hover { border-color: var(--line-2); background: rgba(20, 24, 31, .85); }
/* travelling light along the row */
.journey-row::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: translateX(-100%);
  opacity: .8;
}
.js .journeys.is-in .journey-row::after { animation: sweep 3.2s var(--ease-in-out) calc(var(--i) * .5s + .4s) infinite; }
@keyframes sweep {
  0% { transform: translateX(-100%); }
  55%, 100% { transform: translateX(100%); }
}
.journey-cell { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.journey-cell__k { display: none; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.journey-query { font-size: 1.05rem; font-weight: 500; letter-spacing: -.01em; }
.journey-query::before { content: "“"; color: var(--text-3); }
.journey-query::after { content: "”"; color: var(--text-3); }
.journey-source { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--text-2); }
.journey-source i { width: 8px; height: 8px; border-radius: 50%; background: var(--series-1); flex: none; }
.journey-source.is-ai i { background: var(--series-3); }
.journey-source.is-social i { background: var(--series-4); }
.journey-source.is-maps i { background: var(--series-2); }
.journey-page { font-family: var(--font-mono); font-size: 13px; color: var(--text-2); overflow-wrap: anywhere; }
.journey-action { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: var(--text); }
.journey-action::before {
  content: "";
  width: 18px; height: 18px;
  flex: none;
  border-radius: 50%;
  background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m5.5 9.2 2.3 2.3 4.7-5' fill='none' stroke='%23d9bd85' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
  box-shadow: 0 0 0 1px rgba(217,189,133,.35) inset;
}
/* arrow connectors between cells (desktop) */
.journey-cell + .journey-cell::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 50%;
  width: 10px; height: 10px;
  border-top: 1px solid var(--text-3);
  border-right: 1px solid var(--text-3);
  transform: translateY(-50%) rotate(45deg);
  opacity: .5;
}

.journeys__note { margin-top: 16px; font-size: 13px; color: var(--text-3); max-width: 760px; }

@media (max-width: 860px) {
  .journeys__head { display: none; }
  .journey-row { grid-template-columns: 1fr; gap: 0; padding: 20px; }
  .journey-cell { padding: 10px 0 10px 22px; border-left: 1px solid var(--line-2); }
  .journey-cell:first-child { padding-top: 0; }
  .journey-cell:last-child { padding-bottom: 0; }
  .journey-cell::after {
    content: "";
    position: absolute;
    left: -4px; top: 17px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--surface-3);
    border: 1px solid var(--text-3);
  }
  .journey-cell:first-child::after { top: 7px; }
  .journey-cell:last-child::after { background: var(--gold); border-color: var(--gold); }
  .journey-cell + .journey-cell::before { display: none; }
  .journey-cell__k { display: block; }
}
@media (max-width: 600px) {
  .searchbox { min-height: 62px; padding: 0 20px; gap: 12px; }
  .searchbox svg { width: 18px; height: 18px; }
  .search-stage__bar { margin-top: 28px; }
  .search-stage__bar .segmented { width: 100%; }
}

/* 10. TRAFFIC → BUSINESS --------------------------------------------------- */
.journey { padding-block: var(--section-pad); position: relative; overflow: hidden; }

.flow {
  position: relative;
  margin-top: clamp(56px, 8vw, 96px);
  padding-block: 40px;
}
.flow__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.flow__stages {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.flow__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.flow__dot {
  position: relative;
  width: 64px; height: 64px;
  margin-bottom: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, var(--surface-3), var(--bg-2));
  border: 1px solid var(--line-2);
  box-shadow: 0 0 0 10px rgba(8,9,12,.7);
}
.flow__dot::after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: var(--series-1);
  box-shadow: 0 0 16px rgba(90, 143, 240, .7);
}
.flow__stage--goal .flow__dot { border-color: rgba(217,189,133,.6); box-shadow: 0 0 0 10px rgba(8,9,12,.7), 0 0 60px rgba(217,189,133,.25); }
.flow__stage--goal .flow__dot::after { background: var(--gold); box-shadow: 0 0 22px rgba(217,189,133,.9); }
.js .flow__stage--goal.is-pulse .flow__dot { animation: goalpulse .9s var(--ease-out); }
@keyframes goalpulse {
  0% { transform: scale(1); }
  35% { transform: scale(1.09); }
  100% { transform: scale(1); }
}
.flow__idx { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--gold); }
.flow__name { font-size: 1.12rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.flow__desc { font-size: 14px; color: var(--text-3); max-width: 190px; }
.flow__stage--goal .flow__name { color: var(--gold); }

@media (max-width: 860px) {
  .flow { padding-block: 10px; max-width: 520px; margin-inline: auto; }
  .flow__stages { grid-template-columns: 1fr; gap: 34px; }
  .flow__stage {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-areas: "dot idx" "dot name" "dot desc";
    column-gap: 22px;
    row-gap: 2px;
    text-align: left;
    align-items: center;
  }
  .flow__dot { grid-area: dot; width: 56px; height: 56px; margin: 0; align-self: center; }
  .flow__dot::after { inset: 19px; }
  .flow__idx { grid-area: idx; }
  .flow__name { grid-area: name; }
  .flow__desc { grid-area: desc; max-width: none; }
}

/* 11. ALWAYS IMPROVING ----------------------------------------------------- */
.improving { padding-block: var(--section-pad) calc(var(--section-pad) * .5); position: relative; }
.improving__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.contrast {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
}
.contrast__col { padding: 18px 20px; background: var(--bg-2); }
.contrast__label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.contrast__col--old .contrast__label { color: var(--text-3); }
.contrast__steps { margin-top: 8px; font-size: 15px; font-weight: 600; }
.contrast__steps span { color: var(--text-3); font-weight: 400; margin-inline: 3px; }
.contrast__col--old .contrast__steps { color: var(--text-3); text-decoration: line-through; text-decoration-color: rgba(238,235,228,.25); }

.cycle {
  --size: min(520px, 100%);
  position: relative;
  width: var(--size);
  aspect-ratio: 1;
  justify-self: center;
}
.cycle__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.cycle__track { fill: none; stroke: var(--line-2); stroke-width: 1; }
.cycle__arc {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 942.48;
  stroke-dashoffset: var(--arc, 785.4);
  filter: drop-shadow(0 0 6px rgba(217,189,133,.6));
  transition: stroke-dashoffset 1s var(--ease-in-out);
}
.cycle__steps li {
  --a: calc(var(--i) * 60deg - 90deg);
  position: absolute;
  left: calc(50% + cos(var(--a)) * 37.5%);
  top: calc(50% + sin(var(--a)) * 37.5%);
  transform: translate(-50%, -50%);
}
.cycle__steps button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 96px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--text-2);
  transition: color .4s, border-color .4s, background-color .4s, transform .5s var(--ease-out), box-shadow .5s;
}
.cycle__steps button:hover { color: var(--text); border-color: rgba(217,189,133,.4); }
.cycle__steps button[aria-pressed="true"] {
  color: #15120c;
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.06);
  box-shadow: 0 10px 40px -10px rgba(217,189,133,.55);
}
.cycle__n { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; opacity: .7; font-weight: 400; }
.cycle__center {
  position: absolute;
  left: 50%; top: 50%;
  width: 46%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.cycle__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.1;
  color: var(--gold);
}
.cycle__text { margin-top: 10px; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.cycle__center.is-swapping .cycle__title,
.cycle__center.is-swapping .cycle__text { opacity: 0; transform: translateY(6px); }
.cycle__title, .cycle__text { transition: opacity .35s, transform .5s var(--ease-out); }

@media (max-width: 960px) {
  .improving__layout { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .cycle__steps button { min-width: 0; padding: 8px 10px; font-size: 12.5px; border-radius: 12px; }
  .cycle__center { width: 52%; }
  .cycle__title { font-size: 1.45rem; }
  .cycle__text { font-size: 12.5px; margin-top: 6px; }
  .contrast { grid-template-columns: 1fr; }
}

/* Honest by design */
.honest {
  margin-top: clamp(72px, 10vw, 128px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.honest__col { padding: 34px 40px 0 0; }
.honest__col--no { padding: 34px 0 0 40px; border-left: 1px solid var(--line); }
.honest__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.honest__col--no .honest__label { color: var(--text-3); }
.honest li { padding: 10px 0; font-size: 15.5px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; }
.honest li::before { content: "✓"; color: var(--gold); }
.honest__col--no li { color: var(--text-2); }
.honest__col--no li::before { content: "×"; color: var(--text-3); }
@media (max-width: 760px) {
  .honest { grid-template-columns: 1fr; }
  .honest__col, .honest__col--no { padding: 28px 0 0; border-left: 0; }
}

/* 12. CLOSE + FOOTER ------------------------------------------------------- */
.close {
  position: relative;
  min-height: 88vh;
  min-height: 88svh;
  display: grid;
  place-items: center;
  padding-block: var(--section-pad);
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(60% 50% at 50% 55%, rgba(217, 189, 133, .08), transparent 70%);
}
.close__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.close__inner { text-align: center; }
.close__inner .eyebrow { justify-content: center; }
.close__title {
  margin-top: 30px;
  font-size: clamp(2.5rem, 7vw, 6.4rem);
  line-height: 1;
  letter-spacing: -.045em;
  font-weight: 600;
  text-wrap: balance;
}
.close__chain {
  margin: 40px auto 0;
  max-width: 820px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-2);
}
.close__chain i { font-style: normal; color: var(--gold); }
.close__signature { margin-top: 22px; font-size: 13px; letter-spacing: .04em; color: var(--text-3); }
.close__actions { margin-top: 52px; display: flex; justify-content: center; }

.site-footer { border-top: 1px solid var(--line); padding-block: 28px calc(28px + env(safe-area-inset-bottom)); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 12.5px; color: var(--text-3); }

@media (max-width: 600px) {
  .close__actions .btn { width: 100%; }
  .close__chain { font-size: 11px; gap: 6px 8px; }
}

/* 13. DIALOG + TOOLTIP ----------------------------------------------------- */
.contact {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-3), var(--surface));
  color: var(--text);
  box-shadow: 0 60px 140px -30px rgba(0,0,0,.9);
}
.contact::backdrop { background: rgba(4, 5, 7, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.contact[open] { animation: dialogIn .5s var(--ease-out); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.contact__inner { position: relative; padding: clamp(28px, 5vw, 44px); }
.contact__x { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--text-2); }
.contact__x:hover { background: var(--surface-3); color: var(--text); }
.contact__x svg { width: 18px; height: 18px; }
.contact__title { margin-top: 14px; font-size: clamp(1.7rem, 4vw, 2.2rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 600; }
.contact__steps { margin-top: 26px; display: grid; gap: 4px; }
.contact__steps li { display: grid; grid-template-columns: 36px 1fr; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); }
.contact__steps li > span { font-family: var(--font-serif); font-style: italic; color: var(--gold); font-size: 18px; }
.contact__steps strong { font-size: 15.5px; }
.contact__steps p { margin-top: 2px; font-size: 14px; color: var(--text-2); }
.contact [hidden] { display: none; }
/* WhatsApp first (champagne), email second (ghost); the WhatsApp glyph takes the button's ink, never brand green */
.contact__actions { margin-top: 22px; display: grid; gap: 10px; }
.contact__action { width: 100%; padding-inline: 20px; white-space: normal; text-align: center; line-height: 1.25; }
.contact__icon { flex: none; }
.btn--primary.contact__action:hover svg { transform: none; }
.contact__address { margin-top: 2px; text-align: center; font-size: 13.5px; color: var(--text-2); overflow-wrap: anywhere; -webkit-user-select: all; user-select: all; }
.contact__note { margin-top: 6px; text-align: center; font-size: 13px; color: var(--text-3); text-wrap: pretty; }
.contact__fallback { margin-top: 18px; font-size: 14px; color: var(--text-3); }
.contact__inner > .btn { margin-top: 26px; width: 100%; }
.contact { overscroll-behavior: contain; }
/* the page behind the open dialog stays put; the gutter keeps the layout from shifting */
html.is-modal { overflow: hidden; scrollbar-gutter: stable; }

.tooltip {
  position: fixed;
  z-index: 90;
  top: 0; left: 0;
  pointer-events: none;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(26, 31, 40, .96);
  border: 1px solid var(--line-2);
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.8);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-2);
  white-space: nowrap;
}
.tooltip b { color: var(--text); font-weight: 600; }
.tooltip__title { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 3px; }
.tooltip__row { display: flex; align-items: center; gap: 7px; }
.tooltip__row i { width: 8px; height: 8px; border-radius: 2px; flex: none; }

/* 14. PRICING (hidden in V1) ---------------------------------------------- */
.pricing { padding-block: var(--section-pad); }
.pricing[hidden] { display: none; }
.plans { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; max-width: 900px; margin-inline: auto; }
.plan { padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--line-2); background: var(--surface); }
.plan__name { font-size: 1.3rem; }
.plan__price { margin-top: 12px; display: flex; align-items: baseline; gap: 6px; }
.plan__amount { font-size: 3rem; font-weight: 600; letter-spacing: -.04em; }
.plan__per { color: var(--text-3); }
.plan .features { grid-template-columns: 1fr; }

/* 15. REDUCED MOTION ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .hero__title .line__inner { transform: none; }
  .hero__scroll, .searchbox__caret { display: none; }
  .js .journeys.is-in .journey-row::after { animation: none; }
  .orbit__signal { display: none; }
}

/* Forced colors / high contrast */
@media (forced-colors: active) {
  .btn--primary { border: 1px solid ButtonText; }
  .bar__fill, .funnel__fill, .mix__seg { forced-color-adjust: none; }
}

/* Search journeys — row currently being "typed" in the search box */
.journey-row.is-current { border-color: rgba(217, 189, 133, .32); background: rgba(22, 24, 28, .9); }
.journey-row.is-current .journey-query { color: var(--gold); }

/* Hero KPI — supporting comparisons */
.kpi-sub { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); }
.kpi-sub div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpi-sub dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.kpi-sub dd { margin: 0; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
