/*
 * Marketing styles for the public topic pages (/salesforce-metadata-analyzer, /salesforce-org-analysis).
 *
 * A verbatim copy of the <style> block in welcome.html, so the topic pages look exactly like the home
 * page. welcome.html keeps its own inline copy (critical CSS for the most-visited page); when you change
 * one, change the other.
 */
/* ═══════════════════════════════════════════════════════════════════════════
   MetaLens360 — refraction, staged.

   The spectrum from v2 stays: each intelligence domain owns a hue, the
   evidence tiers own three more, nothing is coloured that does not mean
   something. What this pass adds is the PERFORMANCE of it — the hero panel
   reads an org in front of you and dissolves into the graph it resolved,
   a ticker of raw metadata types runs under the hero like signal entering
   the lens, and the stats that count up are measured numbers, labelled so.

   Dark-first. Saturated colour only holds meaning against a dark ground.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --ground:       #05070E;
  --ground-2:     #080B14;
  --surface:      #0D111C;
  --surface-2:    #141A29;
  --surface-3:    #1B2233;
  --line:         #1F273A;
  --line-2:       #2E384F;

  --text:         #F2F5FA;
  --text-2:       #A7B4CA;
  --text-3:       #74839C;

  --beam:         #2DD4E8;
  --beam-deep:    #0FA6BD;
  --beam-glow:    rgba(45, 212, 232, .16);
  --amber:        #F5A623;
  --amber-glow:   rgba(245, 166, 35, .15);

  --sp-1:         #F5A623;
  --sp-2:         #F2557A;
  --sp-3:         #A971F0;
  --sp-4:         #5B8CFA;
  --sp-5:         #2DD4E8;
  --sp-6:         #3DD68C;

  --verify:       #3DD68C;
  --derive:       #5B8CFA;
  --infer:        #A971F0;
  --alert:        #F2557A;

  --grid-line:    rgba(167, 180, 202, .055);
  --shadow:       0 2px 4px rgba(0,0,0,.5), 0 24px 60px -28px rgba(0,0,0,.9);
  --shadow-lift:  0 2px 4px rgba(0,0,0,.5), 0 32px 70px -26px rgba(45,212,232,.22);
  --card-top:     rgba(255,255,255,.055);
  --ghost-a:      .042;

  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --measure: 64ch;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --max: 1280px;

  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --ground:      #F7F8FB;
    --ground-2:    #FFFFFF;
    --surface:     #FFFFFF;
    --surface-2:   #F2F5F9;
    --surface-3:   #E8EDF4;
    --line:        #DCE3ED;
    --line-2:      #C2CDDB;

    --text:        #070B14;
    --text-2:      #45536B;
    --text-3:      #6C7C96;

    --beam:        #0B8FA6;
    --beam-deep:   #076F81;
    --beam-glow:   rgba(11, 143, 166, .10);
    --amber:       #B4720A;
    --amber-glow:  rgba(180, 114, 10, .10);

    --sp-1:        #B4720A;
    --sp-2:        #C7304F;
    --sp-3:        #7B3FC4;
    --sp-4:        #2A5ED0;
    --sp-5:        #0B8FA6;
    --sp-6:        #12885A;

    --verify:      #12885A;
    --derive:      #2A5ED0;
    --infer:       #7B3FC4;
    --alert:       #C7304F;

    --grid-line:   rgba(7, 11, 20, .05);
    --shadow:      0 1px 2px rgba(16,26,48,.06), 0 14px 34px -18px rgba(16,26,48,.20);
    --shadow-lift: 0 1px 2px rgba(16,26,48,.06), 0 22px 46px -20px rgba(11,143,166,.28);
    --card-top:    rgba(7,11,20,.035);
    --ghost-a:     .05;

    color-scheme: light;
  }
}

:root[data-theme="light"] {
  --ground:      #F7F8FB;
  --ground-2:    #FFFFFF;
  --surface:     #FFFFFF;
  --surface-2:   #F2F5F9;
  --surface-3:   #E8EDF4;
  --line:        #DCE3ED;
  --line-2:      #C2CDDB;

  --text:        #070B14;
  --text-2:      #45536B;
  --text-3:      #6C7C96;

  --beam:        #0B8FA6;
  --beam-deep:   #076F81;
  --beam-glow:   rgba(11, 143, 166, .10);
  --amber:       #B4720A;
  --amber-glow:  rgba(180, 114, 10, .10);

  --sp-1:        #B4720A;
  --sp-2:        #C7304F;
  --sp-3:        #7B3FC4;
  --sp-4:        #2A5ED0;
  --sp-5:        #0B8FA6;
  --sp-6:        #12885A;

  --verify:      #12885A;
  --derive:      #2A5ED0;
  --infer:       #7B3FC4;
  --alert:       #C7304F;

  --grid-line:   rgba(7, 11, 20, .05);
  --shadow:      0 1px 2px rgba(16,26,48,.06), 0 14px 34px -18px rgba(16,26,48,.20);
  --shadow-lift: 0 1px 2px rgba(16,26,48,.06), 0 22px 46px -20px rgba(11,143,166,.28);
  --card-top:    rgba(7,11,20,.035);
  --ghost-a:     .05;

  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient refraction + a whisper of film grain. The grain is what separates
   "flat dark page" from "surface with depth" — kept faint enough to be felt
   rather than seen. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(820px 560px at 78% -8%, var(--beam-glow), transparent 62%),
    radial-gradient(640px 440px at 6% 4%, var(--amber-glow), transparent 60%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .028;
  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='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--beam); color: var(--ground); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--beam); outline-offset: 3px; border-radius: 3px; }

/* ── Type ──────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700; line-height: 1.03;
  letter-spacing: -0.032em; text-wrap: balance; margin: 0;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); font-variation-settings: 'wdth' 86; font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; text-wrap: nowrap; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); font-variation-settings: 'wdth' 92; letter-spacing: -0.036em; }
h3 { font-size: clamp(1.18rem, 1.9vw, 1.5rem); letter-spacing: -0.02em; line-height: 1.18; }
h4 { font-size: 1.02rem; letter-spacing: -0.012em; line-height: 1.28; font-weight: 700; }
p  { margin: 0; }

/* Section kickers were 11px — smaller than body text and the faintest thing in
   the block they were supposed to introduce. Tripled, with the tracking eased
   at that size so it stays a label instead of sprawling across the column. */
.eyebrow {
  font-family: var(--font-mono); font-size: 20px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--beam);
  line-height: 1.1;
}
@media (max-width: 700px) { .eyebrow { font-size: 16px; } }
/* Inside cards and panels the kicker labels a component, not a section, so it
   keeps its original scale — tripling it there would outweigh the heading it
   sits above. */
.card .eyebrow, .panel .eyebrow, .ai-src .eyebrow, .mx-cap,
.foot-col .eyebrow, .scene-tab, .stat-k {
  font-size: 11px; letter-spacing: .16em; font-weight: 500;
}
.eyebrow-dim { color: var(--text-3); }
.lede { font-size: clamp(1.06rem, 1.5vw, 1.24rem); color: var(--text-2); max-width: var(--measure); line-height: 1.6; }
.mono { font-family: var(--font-mono); font-size: .86em; }

.lit {
  background: linear-gradient(96deg, var(--beam) 0%, var(--sp-4) 46%, var(--sp-3) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ── Shell ─────────────────────────────────────────────────────────────── */
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); position: relative; z-index: 1; }

.section {
  position: relative; overflow: hidden;
  /* Top padding is the background word's room — it sits up there rather than
     behind the heading, which is what stopped the two colliding. */
  padding-block: clamp(3.6rem, 7.6vw, 6.6rem) clamp(2.8rem, 5.4vw, 5rem);
}
.section::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 1px;
  background: linear-gradient(90deg,
    transparent 0%, var(--sp-1) 12%, var(--sp-2) 28%, var(--sp-3) 44%,
    var(--sp-4) 60%, var(--sp-5) 76%, var(--sp-6) 90%, transparent 100%);
  background-size: 200% 100%;
  opacity: .34;
  animation: rail 26s ease-in-out infinite alternate;
}
@keyframes rail { from { background-position: 0% 0; } to { background-position: 100% 0; } }
.section::after {
  content: ""; position: absolute; inset-inline: 0; top: 1px; height: 7px;
  background-image: repeating-linear-gradient(to right, var(--line-2) 0 1px, transparent 1px 46px);
  opacity: .5; pointer-events: none;
}

/* Ghosted section word — the section's identity at architectural scale,
   sitting behind the content like etching on the instrument housing. */
/* Ghosted section word — the section's identity etched at architectural scale.
   LEFT-aligned and aligned to the content column, so it reads as a heading the
   type grew out of rather than a decoration floating in the corner. It was
   right-aligned and two of them — a short section's word and its neighbour's —
   sat close enough to read as one wrapped phrase, which is worse than either
   alone. Sections clip it, and the short stats band no longer carries one. */
.ghost {
  position: absolute; top: 0;
  left: 50%; transform: translateX(-50%);
  width: min(100%, var(--max)); padding-inline: var(--pad);
  text-align: left;
  font-family: var(--font-display); font-weight: 900;
  font-variation-settings: 'wdth' 120;
  font-size: clamp(3.2rem, 8.6vw, 7.6rem);
  letter-spacing: -0.05em; line-height: .74; text-transform: uppercase;
  color: var(--text); opacity: var(--ghost-a);
  pointer-events: none; user-select: none; z-index: 0; white-space: nowrap;
}
@media (max-width: 860px) { .ghost { display: none; } }

.head { display: grid; gap: .6rem; margin-bottom: clamp(1.5rem, 2.8vw, 2.4rem); }

/* ── Nav ───────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--ground) 78%, transparent);
  backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 1.6rem; height: 100px; }
/* The brand outweighs the navigation, deliberately and by a wide margin. A
   wordmark set at the same size as the menu items beside it reads as one more
   menu item; at nearly double, with a tagline beneath, it reads as the company
   whose site this is. */
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; margin-right: .4rem; }
.brand-mark { width: 60px; height: 60px; flex: none; overflow: visible; }

/* The graph turns around the lens; the lens breathes. Different tempos so the
   pair reads as an instrument running rather than a spinner waiting. */
.ml-orbit { transform-origin: 12px 12px; animation: mlOrbit 18s linear infinite; }
@keyframes mlOrbit { to { transform: rotate(360deg); } }

.ml-core { transform-origin: 12px 12px; animation: mlCore 2.8s ease-in-out infinite; }
@keyframes mlCore { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.28); opacity: .82; } }

.ml-ring { transform-origin: 12px 12px; animation: mlRing 2.8s ease-in-out infinite; }
@keyframes mlRing { 0%, 100% { opacity: 1; } 50% { opacity: .72; } }

/* A halo that swells outward — what carries the mark across a light background,
   where a thin gradient stroke alone reads as grey. */
.ml-halo { transform-origin: 12px 12px; opacity: 0; animation: mlHalo 2.8s ease-out infinite; }
@keyframes mlHalo {
  0%   { transform: scale(.45); opacity: .30; }
  70%  { transform: scale(1.15); opacity: 0; }
  100% { transform: scale(1.15); opacity: 0; }
}
.brand:hover .ml-orbit { animation-duration: 6s; }
.brand:hover .ml-core  { animation-duration: 1.2s; }

@media (prefers-reduced-motion: reduce) {
  .ml-orbit, .ml-core, .ml-ring, .ml-halo { animation: none; }
  .ml-halo { opacity: .12; }
}
.brand-text { display: grid; gap: .22rem; }
.brand-name {
  font-family: var(--font-display); font-weight: 800; font-size: 2.58rem;
  letter-spacing: -0.05em; font-variation-settings: 'wdth' 84; line-height: 1;
  color: var(--text);
}
/* The suffix carries the accent and a hair of tracking so it reads as part of
   the name rather than a number someone typed after it. */
.brand-360 {
  color: var(--beam);
  letter-spacing: -0.02em;
  margin-left: .02em;
}
.brand-tag {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: .17em; text-transform: uppercase; color: var(--text-3); line-height: 1;
}
@media (max-width: 620px) {
  .brand-mark { width: 42px; height: 42px; }
  .brand-name { font-size: 1.75rem; }
  .brand-tag { font-size: 10px; }
}
@media (max-width: 430px) {
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 1.4rem; }
  .brand-tag { display: none; }
}

/* ── Announcement bar ──────────────────────────────────────────────────── */
.announce {
  position: relative; z-index: 61;
  background: linear-gradient(90deg, var(--sp-6) 0%, var(--sp-5) 34%, var(--sp-4) 68%, var(--sp-3) 100%);
}
.announce[hidden] { display: none; }
.announce-in {
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  min-height: 40px; padding-block: .5rem;
}
.announce-txt {
  font-size: 14px; font-weight: 600; letter-spacing: -0.005em; text-align: center;
  color: #04121A;
}
.announce-txt a { color: #04121A; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.announce-txt a:hover { text-decoration-thickness: 2px; }
.announce-x {
  position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer; line-height: 1;
  font-size: 20px; color: #04121A; opacity: .6; padding: 0 .25rem;
  transition: opacity .15s;
}
.announce-x:hover { opacity: 1; }
.nav-links { display: flex; gap: .1rem; margin-left: auto; align-items: center; }
/* Full-strength text, not a muted tint: navigation is the primary way through
   the site and had been styled as the faintest element on the page. The active
   item is marked by a beam underline rather than a filled pill, so the bar stays
   quiet while still saying where you are. */
.nav-links a {
  position: relative;
  font-size: 15px; font-weight: 500; color: var(--text); text-decoration: none;
  padding: .5rem .82rem; border-radius: 7px; letter-spacing: -0.005em;
  transition: color .16s, background .16s;
}
.nav-links a::after {
  content: ""; position: absolute; left: .82rem; right: .82rem; bottom: .18rem; height: 2px;
  border-radius: 2px; background: var(--beam); transform: scaleX(0); transform-origin: left;
  transition: transform .22s cubic-bezier(.2,.7,.3,1);
}
.nav-links a:hover { background: var(--surface-2); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.on { font-weight: 600; }
.nav-links a.on::after { transform: scaleX(1); }
.nav-links a.nav-cta::after { display: none; }
.nav-cta {
  font-size: 15px !important; font-weight: 600;
  padding: .58rem 1.25rem !important; border-radius: 100px !important;
  background: linear-gradient(135deg, var(--beam), var(--beam-deep));
  color: #04121A !important; text-decoration: none; margin-left: .4rem;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--beam) 50%, transparent), 0 6px 20px -8px var(--beam);
  transition: transform .16s, box-shadow .16s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--beam), 0 10px 26px -8px var(--beam); background: linear-gradient(135deg, var(--beam), var(--beam-deep)) !important; }
.nav-toggle {
  display: none; background: var(--surface-2); border: 1px solid var(--line-2);
  color: var(--text); border-radius: 7px; padding: .35rem .6rem; cursor: pointer;
  font-family: var(--font-mono); font-size: 11.5px; margin-left: auto;
}
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; position: absolute; top: 100px; left: 0; right: 0;
    flex-direction: column; gap: .1rem; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: .6rem;
    box-shadow: var(--shadow);
  }
  .nav-links.open a { padding: .72rem .8rem; }
  .nav-links.open .nav-cta { text-align: center; margin: .3rem 0 0; }
  .nav-toggle { display: block; }
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-size: 14.5px; font-weight: 600;
  padding: .74rem 1.35rem; border-radius: 100px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: all .18s;
  position: relative; overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--beam), var(--beam-deep));
  color: #04121A;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--beam) 45%, transparent), 0 10px 30px -12px var(--beam);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .6s ease;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--beam), 0 16px 38px -12px var(--beam); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--beam); }
.btn-row { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; }

/* ── Evidence chip ─────────────────────────────────────────────────────── */
.ev {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .2rem .5rem; border-radius: 4px; border: 1px solid; white-space: nowrap;
}
.ev::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; box-shadow: 0 0 8px currentColor; }
.ev-observed { color: var(--verify); border-color: color-mix(in srgb, var(--verify) 45%, transparent); background: color-mix(in srgb, var(--verify) 12%, transparent); }
.ev-derived  { color: var(--derive); border-color: color-mix(in srgb, var(--derive) 45%, transparent); background: color-mix(in srgb, var(--derive) 12%, transparent); }
.ev-inferred { color: var(--infer);  border-color: color-mix(in srgb, var(--infer) 45%, transparent);  background: color-mix(in srgb, var(--infer) 12%, transparent); }
.ev-unknown  { color: var(--text-3); border-color: var(--line-2); background: transparent; border-style: dashed; }
.ev-inferred::before { border-radius: 1px; transform: rotate(45deg); }
.ev-unknown::before  { background: transparent; border: 1px solid currentColor; box-shadow: none; }

/* ── Cards ─────────────────────────────────────────────────────────────── */
.card {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: 12px;
  padding: 1.2rem 1.25rem; display: grid; gap: .5rem; align-content: start;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  overflow: hidden;
}
/* One pseudo-element carries both the lit top edge and the hue bar, so the
   other stays free for the cursor spotlight. */
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, transparent, var(--card-top) 22%, var(--card-top) 78%, transparent) top / 100% 1px no-repeat,
    linear-gradient(90deg, var(--hue, transparent), var(--hue, transparent)) bottom / 100% 2px no-repeat;
  opacity: .85;
}
/* The spotlight: a soft pool of the card's own hue that follows the cursor. */
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(230px circle at var(--mx, 50%) var(--my, 0%),
    color-mix(in srgb, var(--hue, var(--beam)) 13%, transparent), transparent 72%);
  opacity: 0; transition: opacity .3s;
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.card:hover::after { opacity: 1; }
.card[data-hue]:hover { box-shadow: 0 2px 4px rgba(0,0,0,.4), 0 26px 54px -26px var(--hue); }
.card h3 + p, .card h4 + p, .card p { color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.card .eyebrow { margin-bottom: .1rem; }
.card > * { position: relative; z-index: 1; }

.grid { display: grid; gap: .85rem; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(218px, 1fr)); }

/* ── Hero ──────────────────────────────────────────────────────────────── */
/* No forced viewport height. It was min(86vh, 860px) with the content centred,
   so on a tall screen the leftover height collected as an empty band above the
   headline — the hero was reserving space it had nothing to put in. Sized by its
   content now, and starting close under the nav where the eye already is. */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(1.4rem, 2.8vw, 2.4rem) clamp(1.8rem, 3.4vw, 3rem);
  display: grid; align-items: center;
}
#heroBg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.4rem); align-items: center; }
@media (max-width: 1040px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-copy { display: grid; gap: 1.15rem; align-content: start; }
.hero h1 { margin-bottom: .3rem; }

.hero-tag {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .05em;
  color: var(--text-2); border: 1px solid var(--line-2); border-radius: 100px;
  padding: .34rem .5rem .34rem .8rem; width: fit-content;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}
.hero-tag .pip { width: 6px; height: 6px; border-radius: 50%; background: var(--sp-6); box-shadow: 0 0 10px var(--sp-6); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.hero-tag .sep { color: var(--line-2); }
.hero-tag b { color: var(--beam); font-weight: 600; }

/* ── Panel: the org read, then the graph ───────────────────────────────── */
.tilt { perspective: 1100px; position: relative; }
.tilt::before {
  content: ""; position: absolute; inset: -14% -10%; z-index: -1;
  filter: blur(48px); opacity: .55; pointer-events: none;
  background:
    radial-gradient(42% 46% at 24% 28%, var(--beam-glow), transparent 70%),
    radial-gradient(40% 44% at 78% 70%, color-mix(in srgb, var(--sp-3) 22%, transparent), transparent 72%),
    radial-gradient(32% 36% at 62% 12%, color-mix(in srgb, var(--sp-1) 15%, transparent), transparent 70%);
}
.panel {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--ground-2));
  border: 1px solid var(--line-2); border-radius: 16px;
  box-shadow: var(--shadow-lift); overflow: hidden;
  transform-style: preserve-3d; will-change: transform;
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
.panel::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px; z-index: 4;
  background: linear-gradient(90deg, transparent, var(--beam), var(--sp-3), transparent); opacity: .55;
}
.panel-bar {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  padding: .62rem .95rem; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-3) 60%, transparent);
  font-family: var(--font-mono); font-size: 11px; color: var(--text-3); letter-spacing: .06em;
  position: relative; z-index: 4;
}
.panel-bar .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sp-6); box-shadow: 0 0 9px var(--sp-6); flex: none; }
/* Window chrome — the fastest possible "this is the product, running" cue. */
.wdots { display: flex; gap: 5px; margin-right: .3rem; flex: none; }
.wdots i { width: 8px; height: 8px; border-radius: 50%; }
.wdots i:nth-child(1) { background: color-mix(in srgb, var(--sp-2) 72%, transparent); }
.wdots i:nth-child(2) { background: color-mix(in srgb, var(--sp-1) 72%, transparent); }
.wdots i:nth-child(3) { background: color-mix(in srgb, var(--sp-6) 72%, transparent); }
.panel-bar .num { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--text-2); }
.transport { display: inline-flex; align-items: center; gap: 1px; margin-left: .1rem; }
.tbtn {
  display: inline-grid; place-items: center; width: 22px; height: 22px;
  background: none; border: 0; border-radius: 5px; cursor: pointer; padding: 0;
  color: var(--text-3); transition: color .15s, background .15s;
}
.tbtn svg { width: 12px; height: 12px; fill: currentColor; display: block; }
.tbtn:hover { color: var(--beam); background: var(--surface-3); }
.tbtn:active { transform: scale(.92); }
/* One button, two glyphs: which one shows is the state, so the control always
   says what pressing it will DO rather than what is currently happening. */
.tbtn .i-play { display: none; }
.transport[data-paused="true"] .i-pause { display: none; }
.transport[data-paused="true"] .i-play { display: block; }
.transport[data-paused="true"] #tPlay { color: var(--beam); }

.scenes {
  display: flex; gap: 0; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 40%, transparent);
  overflow-x: auto; scrollbar-width: none; position: relative; z-index: 4;
}
.scenes::-webkit-scrollbar { display: none; }
.scene-tab {
  position: relative; flex: 1 1 0; min-width: 0; background: none; border: 0; cursor: pointer;
  padding: .62rem .5rem .66rem; text-align: center; white-space: nowrap;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .09em;
  text-transform: uppercase; color: var(--text-3); transition: color .18s, background .18s;
}
.scene-tab:hover { color: var(--text-2); background: var(--surface-2); }
.scene-tab[aria-selected="true"] { color: var(--text); }
/* The underline doubles as the auto-advance timer: the bar filling IS how long
   is left, so the rail never needs a separate progress element. */
.scene-tab .tick {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: var(--hue, var(--beam)); transform: scaleX(0); transform-origin: left;
  box-shadow: 0 0 10px var(--hue, var(--beam));
}
.scene-tab[aria-selected="true"] .tick { transform: scaleX(var(--adv, 1)); }
@media (max-width: 460px) { .scene-tab { font-size: 9.5px; padding-inline: .6rem; } }

.panel-stage { position: relative; }
#graph { display: block; width: 100%; height: 350px; }
.graph-read {
  border-top: 1px solid var(--line); padding: .85rem 1rem;
  display: grid; gap: .45rem; min-height: 106px;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}
.graph-read .rk { font-family: var(--font-mono); font-size: 11px; color: var(--beam); letter-spacing: .07em; }
.graph-read .rv { font-size: 13.5px; color: var(--text-2); line-height: 1.5; }

/* The terminal overlay — the org being read, live. */
#term {
  position: absolute; inset: 0; z-index: 3;
  background: var(--ground-2);
  padding: 1.05rem 1.2rem;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 2.05;
  overflow: hidden; transition: opacity .7s ease;
}
#term .tl { min-height: 2.05em; white-space: pre-wrap; word-break: break-word; }
.c-dim  { color: var(--text-3); }
.c-txt  { color: var(--text-2); }
.c-num  { color: var(--beam); font-weight: 500; }
.c-ok   { color: var(--verify); }
.c-warn { color: var(--amber); }
.c-cmd  { color: var(--text); }
#caret {
  display: inline-block; width: 7px; height: 1.05em; margin-left: 2px;
  background: var(--beam); vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
  box-shadow: 0 0 8px var(--beam);
}
@keyframes blink { 50% { opacity: 0; } }

/* ── Ticker: raw signal entering the lens ──────────────────────────────── */
.beamline {
  border-block: 1px solid var(--line); overflow: hidden;
  background: color-mix(in srgb, var(--surface) 40%, transparent);
  padding-block: .8rem; position: relative;
}
.beamline .label {
  position: absolute; left: 0; top: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; padding: 0 1.1rem 0 var(--pad);
  background: linear-gradient(90deg, var(--ground) 55%, transparent);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text-3); white-space: nowrap;
}
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 94%, transparent);
}
.marquee-track {
  display: flex; gap: 2.4rem; width: max-content;
  animation: mq 46s linear infinite;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .05em;
  color: var(--text-3); white-space: nowrap;
}
.marquee-track span i { font-style: normal; color: var(--line-2); margin-left: 2.4rem; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ── Stats: measured, and it says so ───────────────────────────────────── */
.stats-sec { padding-block: clamp(2rem, 3.6vw, 3.2rem); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem 2rem; }
.stat { display: grid; gap: .15rem; align-content: start; }
.stat-v {
  font-family: var(--font-display); font-weight: 800;
  font-variation-settings: 'wdth' 90;
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  letter-spacing: -0.035em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.stats-note { margin-top: 1.4rem; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); letter-spacing: .03em; }
.stats-note b { color: var(--verify); font-weight: 500; }

/* ── Question list ─────────────────────────────────────────────────────── */
.q-list { display: grid; gap: 0; }
.q {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: .9rem; align-items: center;
  padding: .62rem .4rem; border-bottom: 0;
  transition: background .18s, padding-left .18s;
}
.q:first-child { border-top: 1px solid var(--line); }
.q:hover { background: color-mix(in srgb, var(--surface-2) 70%, transparent); padding-left: .9rem; }
.q-txt {
  font-family: var(--font-display); font-size: clamp(.98rem, 1.5vw, 1.16rem);
  font-weight: 500; letter-spacing: -0.024em; font-variation-settings: 'wdth' 94;
}
.q-idx { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.q-item { border-bottom: 1px solid var(--line); }
.q-item:first-child { border-top: 1px solid var(--line); }
.q { width: 100%; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; border-bottom: 0; }
.q-caret {
  width: 9px; height: 9px; border-right: 1.6px solid var(--text-3); border-bottom: 1.6px solid var(--text-3);
  transform: rotate(45deg); transition: transform .24s, border-color .18s; margin-left: .2rem; flex: none;
}
.q[aria-expanded="true"] .q-caret { transform: rotate(-135deg); border-color: var(--beam); }
.q[aria-expanded="true"] .q-txt { color: var(--beam); }
.q-ans { padding: .2rem .4rem 1.3rem 2.6rem; display: grid; gap: .75rem; }
.q-ans[hidden] { display: none; }
@media (max-width: 640px) { .q-ans { padding-left: .4rem; } }
.qa-note { font-size: 13.5px; color: var(--text-2); line-height: 1.6; max-width: 70ch; }
.qa-note b { color: var(--text); font-weight: 600; }
/* Each answer row assembles rather than appearing — the point is that the
   product WORKS this out, so the reader should watch it resolve. */
.qa-row {
  display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
  padding: .42rem .7rem; border-radius: 7px;
  background: var(--surface); border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; color: var(--text-2);
  opacity: 0; transform: translateX(-10px);
  animation: qaIn .42s cubic-bezier(.2,.7,.3,1) forwards;
  animation-delay: calc(var(--i) * 90ms);
}
@keyframes qaIn { to { opacity: 1; transform: none; } }
.qa-row .nm { color: var(--text); font-weight: 500; }
.qa-row .arrow { color: var(--line-2); }
.qa-row .grow { flex: 1; }
/* A measured bar, filling from zero, so magnitude reads before the number does. */
.qa-bar { height: 5px; border-radius: 3px; background: var(--surface-3); overflow: hidden; min-width: 90px; flex: 1; }
.qa-bar i {
  display: block; height: 100%; border-radius: 3px; background: var(--hue, var(--beam));
  width: 0; animation: qaBar .8s cubic-bezier(.2,.7,.3,1) forwards;
  animation-delay: calc(var(--i) * 90ms + 120ms);
  box-shadow: 0 0 10px var(--hue, var(--beam));
}
@keyframes qaBar { to { width: var(--w, 50%); } }
.qa-legend { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); letter-spacing: .06em; }
@media (max-width: 640px) { .q { grid-template-columns: auto 1fr auto; gap: .6rem; } .q .ev { display: none; } }

/* ── Flow / prism ──────────────────────────────────────────────────────── */
.flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(1rem, 3vw, 2.6rem); align-items: center; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr; } .flow-mid { justify-self: start; transform: rotate(90deg); } }
.chiplist { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
  font-family: var(--font-mono); font-size: 12px; padding: .38rem .66rem; border-radius: 6px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2);
  transition: border-color .18s, color .18s, transform .18s;
}
.chip:hover { transform: translateY(-1px); border-color: var(--text-3); }
.chip.out {
  border-color: color-mix(in srgb, var(--beam) 42%, transparent);
  color: var(--beam); background: var(--beam-glow);
  box-shadow: 0 0 22px -10px var(--beam);
}
.flow-mid { display: grid; place-items: center; }
.prism { filter: drop-shadow(0 0 16px var(--beam-glow)); }

/* ── Capability table ──────────────────────────────────────────────────── */
.caps { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.cap-group { border-bottom: 1px solid var(--line); }
.cap-group:last-child { border-bottom: 0; }
.cap-head {
  display: flex; align-items: center; gap: .75rem; padding: .78rem 1.1rem;
  background: linear-gradient(90deg, color-mix(in srgb, var(--hue) 11%, transparent), transparent 62%);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--hue); font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.cap-head .bar { width: 3px; height: 14px; border-radius: 3px; background: var(--hue); box-shadow: 0 0 10px var(--hue); flex: none; }
.cap-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cap { padding: 1rem 1.1rem; display: grid; gap: .25rem; align-content: start; border-top: 1px solid var(--line); transition: background .18s; }
.cap:hover { background: var(--surface-2); }
.cap:nth-child(odd) { border-right: 1px solid var(--line); }
@media (max-width: 680px) { .cap:nth-child(odd) { border-right: 0; } }
.cap-name { font-weight: 600; font-size: 14.5px; letter-spacing: -0.01em; }
.cap-desc { font-size: 13.5px; color: var(--text-2); line-height: 1.55; }

/* ── AI sample ─────────────────────────────────────────────────────────── */
.ai-sample {
  display: grid; gap: 0; border: 1px solid var(--line-2); border-radius: 14px;
  overflow: hidden; background: var(--surface); box-shadow: var(--shadow);
}
.ai-src { padding: 1rem 1.1rem; background: var(--ground-2); border-bottom: 1px solid var(--line); }
.ai-src .mono { color: var(--text-2); display: block; line-height: 1.95; font-size: 12px; }
.ai-src .mono b { color: var(--beam); font-weight: 500; }
.ai-out { padding: 1.15rem 1.1rem 1.3rem; display: grid; gap: .75rem; position: relative; }
.ai-out::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--beam), var(--sp-3)); opacity: .8;
}
.ai-out p { font-size: 14.5px; color: var(--text-2); line-height: 1.68; }
.ai-out p b { color: var(--text); font-weight: 600; }
.ai-badge { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }

/* ── Matrix ────────────────────────────────────────────────────────────── */
.matrix-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
table.matrix { border-collapse: collapse; width: 100%; min-width: 700px; font-size: 13px; }
table.matrix th, table.matrix td { padding: .68rem .9rem; text-align: left; border-bottom: 1px solid var(--line); }
table.matrix th {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-3); font-weight: 500; background: var(--surface-2);
}
table.matrix td.m { font-family: var(--font-mono); font-size: 12px; color: var(--text); }
table.matrix td.s { color: var(--text-2); }
table.matrix tbody tr { transition: background .16s; }
table.matrix tbody tr:hover { background: var(--surface-2); }
table.matrix tr:last-child td { border-bottom: 0; }
.mx-cap { text-align: left; padding: .8rem .9rem; color: var(--text-3); }

/* ── Roles ─────────────────────────────────────────────────────────────── */
.role {
  position: relative; border: 1px solid var(--line); border-radius: 12px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  padding: 1.1rem 1.2rem; display: grid; gap: .35rem; align-content: start;
  transition: border-color .2s, transform .2s, box-shadow .2s; overflow: hidden;
}
.role::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 2px; background: var(--hue); opacity: .75; pointer-events: none; }
.role::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(210px circle at var(--mx, 50%) var(--my, 0%),
    color-mix(in srgb, var(--hue, var(--beam)) 12%, transparent), transparent 72%);
  opacity: 0; transition: opacity .3s;
}
.role:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: 0 2px 4px rgba(0,0,0,.4), 0 22px 46px -26px var(--hue); }
.role:hover::after { opacity: 1; }
.role > * { position: relative; z-index: 1; }
.role-title { font-weight: 700; font-size: 14.5px; letter-spacing: -0.01em; }
.role-q { font-size: 13.5px; color: var(--text); line-height: 1.55; font-style: italic; }
.role-a { font-size: 12.5px; color: var(--text-3); line-height: 1.55; font-family: var(--font-mono); }

/* ── Trust ─────────────────────────────────────────────────────────────── */
.trust-row { display: grid; grid-template-columns: 200px 1fr; gap: 1.3rem; padding: .78rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.trust-row:last-child { border-bottom: 0; }
@media (max-width: 720px) { .trust-row { grid-template-columns: 1fr; gap: .35rem; } }
.trust-k { font-weight: 700; font-size: 14.5px; color: var(--text); }
.trust-v { font-size: 14px; color: var(--text-2); line-height: 1.62; }

/* ── Note ──────────────────────────────────────────────────────────────── */
.note {
  border: 1px dashed var(--line-2); border-radius: 10px; padding: .95rem 1.1rem;
  font-size: 13.5px; color: var(--text-3); line-height: 1.62;
  background: color-mix(in srgb, var(--surface) 45%, transparent);
}
.note b { color: var(--text-2); font-weight: 600; }

/* ── CTA ───────────────────────────────────────────────────────────────── */
.cta-band {
  position: relative; border: 1px solid var(--line-2); border-radius: 18px;
  background: linear-gradient(150deg, var(--surface-2), var(--ground-2));
  padding: clamp(2rem, 4.5vw, 3.4rem); display: grid; gap: 1.15rem; justify-items: start;
  overflow: hidden; box-shadow: var(--shadow-lift);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, var(--beam), var(--sp-3), var(--amber), transparent); opacity: .6;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(640px 280px at 92% 4%, var(--beam-glow), transparent 68%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding-block: 2.2rem 2.4rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2rem; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-col { display: grid; gap: .5rem; align-content: start; }
.foot-col a { font-size: 13.5px; color: var(--text-2); text-decoration: none; transition: color .15s; }
.foot-col a:hover { color: var(--beam); }
.foot-bottom {
  margin-top: 2.4rem; padding-top: 1.3rem; border-top: 1px solid var(--line);
  display: flex; gap: 1rem; justify-content: space-between; flex-wrap: wrap;
  font-size: 12.5px; color: var(--text-3);
}

/* ── Motion ────────────────────────────────────────────────────────────── */
.rise { opacity: 0; transform: translateY(16px); transition: opacity .72s cubic-bezier(.2,.7,.3,1), transform .72s cubic-bezier(.2,.7,.3,1); }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

.page { display: none; }
.page.active { display: block; }

/* ── Contact form ────────────────────────────────────────────────────────
   Deliberately plain next to the rest of the page. Everything else here is
   selling; this is the one place someone is doing work, and animation or
   gradient on a field they are typing into is friction dressed as polish. */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .42rem; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--text-2); letter-spacing: .01em; }
.field input, .field select, .field textarea {
  width: 100%; box-sizing: border-box;
  background: var(--surface-2); color: var(--text-1);
  border: 1px solid var(--line); border-radius: 10px;
  padding: .72rem .8rem; font: inherit; font-size: 14.5px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 132px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--beam); box-shadow: 0 0 0 4px color-mix(in srgb, var(--beam) 18%, transparent);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
/* The honeypot. Off-screen rather than display:none — some bots skip hidden
   fields but not positioned ones, and a real user never reaches it: it is
   removed from the tab order and hidden from assistive tech. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 12.5px; color: var(--text-3); margin: .9rem 0 0; }
.form-status { margin: 1rem 0 0; padding: .85rem 1rem; border-radius: 10px; font-size: 14px; line-height: 1.55; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: color-mix(in srgb, var(--sp-6) 12%, transparent); border: 1px solid color-mix(in srgb, var(--sp-6) 40%, transparent); color: var(--text-1); }
.form-status.err { background: color-mix(in srgb, var(--sp-2) 12%, transparent); border: 1px solid color-mix(in srgb, var(--sp-2) 42%, transparent); color: var(--text-1); }
.btn[disabled] { opacity: .55; pointer-events: none; }
