/* =============================================================
   budecosystem.com redesign — shared component layer
   Built on Bud Ecosystem design tokens (tokens.css).
   Dark-mode first. Consumes only var(--*) from tokens.css.
   ============================================================= */

/* ---------- Reset-ish base additions ---------- */
body { overflow-x: hidden; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.section { padding: 64px 0; }
.section-sm { padding: 44px 0; }
.divider-top { border-top: 1px solid var(--border); }

/* Section lead */
.section-eyebrow {
  font-size: 11px; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;
  color: var(--accent); font-weight: var(--fw-semibold); margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px;
}
.section-lead { max-width: 760px; margin-bottom: 36px; }
.section-lead h2 { font-size: clamp(30px, 4vw, 40px); margin: 0 0 16px; }
.section-lead p { font-size: 17px; color: var(--bud-haze); margin: 0; }
.text-center { text-align: center; }
.center-lead { margin-left: auto; margin-right: auto; text-align: center; }

/* =============================================================
   BUTTONS
   ============================================================= */
.btn {
  font-size: 14px; font-weight: var(--fw-semibold);
  padding: 10px 18px; border-radius: var(--radius-md);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  transition: background var(--duration-md) var(--ease-out-expo),
              border-color var(--duration-md) var(--ease-out-expo),
              color var(--duration-md) var(--ease-out-expo);
}
.btn i { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: var(--fg-on-accent); box-shadow: var(--shadow-glow); }
.btn-primary:hover { background: var(--accent-hover); color: var(--fg-on-accent); }
.btn-primary:active { background: var(--accent-pressed); }
.btn-ghost { background: transparent; color: var(--fg1); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--accent-muted); color: var(--fg1); }
.btn-quiet { background: transparent; color: var(--accent); padding-left: 0; padding-right: 0; }
.btn-quiet:hover { color: var(--accent-hover); gap: 11px; }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

/* =============================================================
   TOP NAV + MEGA MENU
   ============================================================= */
/* The header is injected into #nav-mount, so the mount is the sticky frame —
   sticky on .nav alone can't travel (its containing block is the mount itself,
   which is exactly one header tall). */
#nav-mount { position: sticky; top: 0; z-index: 200; }
:root { --nav-h: 71px; } /* header height — secondary sticky bars (brief sec-nav) pin below it */
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); } /* anchor jumps clear the sticky header */
.nav {
  background: rgba(18,14,28,0.78); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 28px; padding: 14px 0; }
.nav-logo { height: 26px; width: auto; max-width: none; flex-shrink: 0; }
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-item { position: relative; }
.nav-item > a, .nav-item > button {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: var(--fw-medium); color: var(--fg2);
  padding: 8px 12px; border-radius: var(--radius-sm); border: 0; background: none;
  transition: color var(--duration-sm), background var(--duration-sm);
}
.nav-item > a:hover, .nav-item > button:hover,
.nav-item.open > button { color: var(--fg1); background: rgba(255,255,255,0.04); }
.nav-item > a.nav-current, .nav-item > button.nav-current { color: var(--fg1); }
.nav-item > a.nav-current::after { content: ""; display: block; height: 2px; background: var(--accent); border-radius: 2px; margin-top: 4px; }
.nav-item .caret { width: 13px; height: 13px; transition: transform var(--duration-md); }
.nav-item.open .caret { transform: rotate(180deg); }
.nav-actions { display: flex; gap: 10px; align-items: center; }

/* Mega panel */
.mega {
  position: absolute; top: calc(100% + 10px); left: 0;
  background: var(--surface-overlay); backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-4); padding: 18px; min-width: 540px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--duration-md) var(--ease-out-expo),
              transform var(--duration-md) var(--ease-out-expo), visibility var(--duration-md);
  z-index: 210;
}
.nav-item.open .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mega-link {
  display: flex; gap: 12px; padding: 12px; border-radius: var(--radius-md);
  transition: background var(--duration-sm);
}
.mega-link:hover { background: var(--accent-muted); }
.mega-link .mi {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: var(--radius-md);
  background: var(--accent-muted); color: var(--bud-electric-2);
  display: flex; align-items: center; justify-content: center;
}
.mega-link .mi i { width: 17px; height: 17px; }
.mega-link .mt { font-size: 13px; font-weight: var(--fw-semibold); color: var(--fg1); display: block; }
.mega-link .md { font-size: 11.5px; color: var(--fg3); line-height: 1.45; margin-top: 2px; }
.mega-foot {
  margin-top: 10px; padding: 12px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--fg3);
}

/* Products mega: film-style stack on the left, live detail panel on the right */
.mega.mega-prod { min-width: 880px; }
.pm-wrap { display: flex; gap: 20px; align-items: stretch; }
.pm-stack { flex: 0 0 296px; display: flex; flex-direction: column; gap: 5px; }
.pm-stack > .mega-h { padding: 2px 2px 8px; }
.pm-layer {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  border: 1px solid rgba(183,133,244,0.14); border-radius: 9px;
  background: rgba(18,14,28,0.6);
  transition: border-color var(--duration-sm), background var(--duration-sm);
}
.pm-layer .pm-num { font-family: var(--font-mono); font-size: 10px; color: var(--fg3); }
.pm-layer .pm-name { font-size: 12.5px; font-weight: var(--fw-semibold); color: var(--fg2); }
.pm-layer .pm-role { margin-left: auto; font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; color: var(--fg3); }
.pm-layer:hover, .pm-layer.is-active { border-color: rgba(140,51,239,0.45); background: rgba(140,51,239,0.08); }
.pm-layer:hover .pm-name, .pm-layer.is-active .pm-name { color: var(--fg1); }
.pm-layer.is-active .pm-num, .pm-layer.is-active .pm-role { color: var(--bud-electric-2); }
.pm-detailcol { flex: 1 1 auto; min-width: 0; border-left: 1px solid var(--border); padding: 4px 4px 4px 20px; display: flex; }
.pm-detail { display: none; flex-direction: column; width: 100%; }
.pm-detail.is-active { display: flex; animation: pmIn .18s var(--ease-out-expo); }
@keyframes pmIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.pm-eyebrow { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--bud-electric-2); }
.pm-title { font-size: 20px; font-weight: var(--fw-bold); letter-spacing: -.02em; color: var(--fg1); margin: 8px 0 0; }
.pm-title span { color: var(--bud-electric-2); }
.pm-sum { font-size: 12.5px; line-height: 1.55; color: var(--fg2); margin: 8px 0 0; }
.pm-feats { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.pm-feats li { position: relative; padding-left: 18px; font-size: 12px; line-height: 1.45; color: var(--fg2); }
.pm-feats li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.pm-comps { margin-top: 13px; padding-top: 12px; border-top: 1px dashed var(--border); }
.pm-ch { display: block; font-size: 10px; font-weight: var(--fw-semibold); letter-spacing: .1em; text-transform: uppercase; color: var(--fg3); margin-bottom: 8px; }
.pm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pm-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 10.5px; color: var(--fg2);
  border: 1px solid var(--border); background: rgba(18,14,28,0.6);
  border-radius: 999px; padding: 4px 10px;
}
.pm-chip-link { color: var(--bud-electric-2); border-color: rgba(140,51,239,0.4); transition: background var(--duration-sm), border-color var(--duration-sm); }
.pm-chip-link:hover { background: var(--accent-muted); border-color: var(--bud-electric-2); }
.pm-cta { margin-top: auto; padding-top: 14px; font-size: 12.5px; font-weight: var(--fw-semibold); color: var(--accent); }
.pm-cta:hover { text-decoration: underline; }

/* Sectioned mega (Resources): labelled columns of plain text links */
.mega.mega-wide { min-width: 600px; }
.mega-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mega-col { display: flex; flex-direction: column; }
.mega-h {
  font-size: 11px; font-weight: var(--fw-semibold); letter-spacing: .08em;
  text-transform: uppercase; color: var(--fg3); padding: 6px 12px 8px;
}
.mega-li {
  font-size: 13px; font-weight: var(--fw-medium); color: var(--fg2);
  padding: 8px 12px; border-radius: var(--radius-md);
  transition: background var(--duration-sm), color var(--duration-sm);
}
.mega-li:hover { background: var(--accent-muted); color: var(--fg1); }

/* Mobile nav toggle */
.nav-burger { display: none; background: none; border: 0; color: var(--fg1); padding: 6px; }
.nav-burger i { width: 24px; height: 24px; }

/* =============================================================
   TOPOLOGY SELECTOR (the wedge) — persists across pages
   ============================================================= */
.topology {
  border: 1px dashed var(--border-strong); border-radius: var(--radius-lg);
  padding: 16px 18px; background: rgba(30,26,43,0.5);
}
.topology .topo-label {
  font-size: 11px; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;
  color: var(--fg3); font-weight: var(--fw-semibold); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.topo-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.topo-chip {
  font-size: 13px; font-weight: var(--fw-medium); color: var(--fg2);
  padding: 8px 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); background: transparent;
  transition: all var(--duration-md) var(--ease-out-expo);
}
.topo-chip:hover { border-color: var(--accent); color: var(--fg1); }
.topo-chip.active {
  background: var(--accent); color: var(--fg-on-accent);
  border-color: var(--accent); box-shadow: var(--shadow-glow);
}
.topo-note { margin-top: 10px; font-size: 12px; color: var(--fg3); line-height: 1.5; }
/* element that reacts to topology selection */
.topo-out { color: var(--bud-electric-2); font-weight: var(--fw-semibold); }

/* =============================================================
   STATS BAND
   ============================================================= */
.stats-band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 36px 0; background: rgba(30,26,43,0.4); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.stat .v { font-size: 42px; font-weight: var(--fw-bold); letter-spacing: var(--tracking-tight); line-height: 1; color: var(--fg1); }
.stat .l { font-size: 12.5px; color: var(--fg3); margin-top: 8px; line-height: 1.45; }
.stat .src { font-size: 10.5px; color: var(--fg3); opacity: .7; margin-top: 6px; font-family: var(--font-mono); }

/* =============================================================
   CARDS
   ============================================================= */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 24px; transition: border-color var(--duration-md), transform var(--duration-md);
}
.card-hover:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card h3 { font-size: 18px; margin: 0 0 8px; }
.card p { font-size: 14px; color: var(--fg2); margin: 0; line-height: 1.55; }

.icon-badge {
  width: 40px; height: 40px; border-radius: var(--radius-md);
  background: var(--accent-muted); color: var(--bud-electric-2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.icon-badge i { width: 20px; height: 20px; }

.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;
  color: var(--bud-electric-2); font-weight: var(--fw-semibold);
  padding: 6px 12px; border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill); background: var(--accent-muted);
}
.eyebrow-pill .dot { width: 5px; height: 5px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }

/* =============================================================
   PROOF / METRIC CARD  (stacked-metric format from IA v1.1)
   ============================================================= */
.proof-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 24px; display: flex; flex-direction: column; gap: 8px;
  transition: border-color var(--duration-md), transform var(--duration-md);
}
.proof-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.proof-card .chip { align-self: flex-start; }
.proof-card .pm { font-size: 28px; font-weight: var(--fw-bold); letter-spacing: var(--tracking-tight); color: var(--fg1); line-height: 1.05; }
.proof-card .pt { font-size: 14px; font-weight: var(--fw-semibold); color: var(--bud-electric-2); }
.proof-card .pd { font-size: 13px; color: var(--fg2); margin: 0; line-height: 1.55; }
.proof-card .btn-quiet { font-size: 12.5px; font-weight: var(--fw-semibold); margin-top: auto; padding-top: 12px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: var(--fw-semibold);
  padding: 4px 10px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); color: var(--fg3); background: transparent;
}
.chip.violet { color: var(--bud-electric-2); background: var(--accent-muted); border-color: rgba(183,133,244,.3); }

/* =============================================================
   STACK DIAGRAM (layers)
   ============================================================= */
.stack-viz {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-2xl);
  padding: 22px; box-shadow: var(--shadow-4); display: flex; flex-direction: column; gap: 8px;
}
.layer {
  display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 16px;
  padding: 14px 18px; border-radius: var(--radius-md);
  background: var(--bud-midnight); border: 1px solid var(--border); text-decoration: none;
  transition: border-color var(--duration-md), background var(--duration-md), transform var(--duration-md);
}
.layer:hover { border-color: var(--border-strong); transform: translateX(3px); }
.layer .tag { font-size: 10px; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--fg3); font-weight: var(--fw-semibold); }
.layer .name { font-size: 14px; font-weight: var(--fw-semibold); color: var(--fg1); }
.layer .name span { color: var(--fg3); font-weight: var(--fw-regular); margin-left: 8px; font-size: 12.5px; }
.layer .sub { font-size: 11px; color: var(--fg3); font-family: var(--font-mono); white-space: nowrap; }
.layer.hl { border-color: var(--border-strong); background: linear-gradient(90deg, rgba(140,51,239,.14), transparent 70%); }

/* Stack — labeled-tower variant (lifecycle label column + product rows) */
.stack-tower { display: grid; grid-template-columns: 150px 1fr; gap: 8px; }
.stack-tower .tl { display: flex; align-items: center; padding: 0 16px; background: var(--accent-muted); border: 1px solid rgba(183,133,244,.18); border-radius: var(--radius-md); font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--bud-electric-2); font-weight: 700; }
.stack-tower .tc { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 15px 18px; background: var(--bud-midnight); border: 1px solid var(--border); border-radius: var(--radius-md); text-decoration: none; transition: border-color var(--duration-md), background var(--duration-md), transform var(--duration-md); }
.stack-tower .tc:hover { border-color: var(--border-strong); transform: translateX(3px); }
.stack-tower .tc .nm { font-size: 14px; font-weight: var(--fw-semibold); color: var(--fg1); }
.stack-tower .tc .nm span { color: var(--fg3); font-weight: var(--fw-regular); margin-left: 8px; font-size: 12.5px; }
.stack-tower .tc .mx { font-family: var(--font-mono); font-size: 11px; color: var(--fg3); white-space: nowrap; }
.stack-tower .tc.hl { border-color: var(--border-strong); background: linear-gradient(90deg, rgba(140,51,239,.14), transparent 70%); }
.stack-tower .tc.hl .mx { color: var(--bud-electric-2); }

/* =============================================================
   CONVERSION LADDER (site-wide, above footer)
   ============================================================= */
.ladder-band { padding: 60px 0; border-top: 1px solid var(--border); background: rgba(30,26,43,0.3); }
.ladder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rung {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 28px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color var(--duration-md), transform var(--duration-md);
}
.rung:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.rung .rl { font-size: 10.5px; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--accent); font-weight: var(--fw-bold); }
.rung h3 { font-size: 20px; margin: 0; }
.rung p { font-size: 13.5px; color: var(--fg2); margin: 0; line-height: 1.55; flex: 1; }
.rung .weight { font-size: 11px; color: var(--fg3); }

/* =============================================================
   PERSONA ROUTER
   ============================================================= */
.persona-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 24px; display: flex; flex-direction: column; gap: 8px; text-decoration: none;
  transition: border-color var(--duration-md), transform var(--duration-md);
}
.persona-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.persona-card .eyebrow { color: var(--accent); }
.persona-card h3 { font-size: 18px; margin: 4px 0 0; }
.persona-card p { font-size: 13.5px; color: var(--fg2); margin: 0; line-height: 1.55; flex: 1; }
.persona-card .go { font-size: 12.5px; font-weight: var(--fw-semibold); color: var(--bud-electric-2); display: inline-flex; align-items: center; gap: 6px; }
.persona-card .go .u { color: var(--fg3); font-family: var(--font-mono); font-weight: var(--fw-regular); }

/* =============================================================
   HERO
   ============================================================= */
.hero { position: relative; padding: 72px 0 76px; overflow: hidden; isolation: isolate; background: var(--motif-bg); }
/* parent-scoped so position:absolute beats the motif script's .motif-stage{position:relative} */
.hero .hero-bg, .page-hero .hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-clear { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,7,18,.88) 0%, rgba(10,7,18,.5) 40%, rgba(10,7,18,.55) 75%, rgba(10,7,18,.92) 100%); }
.hero .container { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); font-weight: var(--fw-bold); letter-spacing: -0.03em; line-height: 1.02; margin: 0 0 20px; }
.hero h1 .accent { color: var(--accent); }
.hero .lede { font-size: 18px; color: var(--bud-haze); line-height: 1.55; max-width: 620px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }

/* Page hero (interior, smaller) */
.page-hero { position: relative; padding: 56px 0 44px; overflow: hidden; isolation: isolate; background: var(--motif-bg); border-bottom: 1px solid var(--border); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 16px; }
.page-hero .lede { font-size: 17px; color: var(--bud-haze); max-width: 640px; margin: 0; }
.page-hero .hero-actions { margin-top: 26px; }

/* Breadcrumb */
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--fg3); margin-bottom: 18px; font-family: var(--font-mono); }
.crumbs a { color: var(--fg3); }
.crumbs a:hover { color: var(--fg2); }
.crumbs .sep { opacity: .5; }

/* =============================================================
   CTA BLOCK
   ============================================================= */
.cta-band { padding: 64px 0; }
.cta-panel {
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-2xl);
  padding: 48px 56px; position: relative; overflow: hidden; isolation: isolate;
}
.cta-panel .cta-bg { position: absolute; right: -40px; top: -40px; width: 460px; height: 460px; z-index: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 70% 30%, #000, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 60% at 70% 30%, #000, transparent 75%); }
.cta-panel > * { position: relative; z-index: 2; }
.cta-panel h2 { font-size: clamp(34px, 4.5vw, 48px); max-width: 600px; margin: 0 0 16px; }
.cta-panel p { font-size: 16px; color: var(--bud-haze); max-width: 560px; margin: 0 0 28px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
/* Combined CTA blade (promoted from /design-guide): rail divider between
   the headline/actions split and the embedded engage ladder */
.engage-rail { display: flex; align-items: center; gap: 14px; margin: 36px 0 20px; }
.engage-rail .el { font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--fg3); font-weight: 700; white-space: nowrap; }
.engage-rail::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* =============================================================
   FORMS
   ============================================================= */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12px; font-weight: var(--fw-semibold); color: var(--fg2); margin-bottom: 7px; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 14px; color: var(--fg1);
  background: var(--bud-midnight); border: 1px solid var(--border-strong);
  border-radius: var(--radius-md); padding: 11px 14px;
  transition: border-color var(--duration-sm), box-shadow var(--duration-sm);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--fg3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--bud-alert); }
.field .err { display: none; font-size: 12px; color: var(--bud-alert); margin-top: 6px; }
.field.invalid .err { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* =============================================================
   TABLE (comparison + spec tables)
   ============================================================= */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th, table.tbl td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
table.tbl thead th { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg3); font-weight: var(--fw-semibold); background: rgba(255,255,255,.02); }
table.tbl tbody tr:last-child td { border-bottom: 0; }
table.tbl tbody tr:hover { background: rgba(255,255,255,.02); }
table.tbl td:first-child { font-weight: var(--fw-semibold); color: var(--fg1); }
.tick { color: var(--bud-success); }
.cross { color: var(--bud-alert); }
.partial { color: var(--bud-amber); }

/* =============================================================
   FILTER BAR (customers / resources hubs)
   ============================================================= */
.filter-bar { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filter-row .fl { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg3); font-weight: var(--fw-semibold); margin-right: 4px; }
.filter-chip {
  font-size: 13px; color: var(--fg2); padding: 7px 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); background: transparent;
  transition: all var(--duration-sm);
}
.filter-chip:hover { color: var(--fg1); border-color: var(--accent); }
.filter-chip.active { background: var(--accent); color: var(--fg-on-accent); border-color: var(--accent); }
.filter-select { font: inherit; font-size: 13px; color: var(--fg1); background: var(--bud-midnight); border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: 8px 12px; }

/* =============================================================
   TABS
   ============================================================= */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 28px; flex-wrap: wrap; }
.tab {
  font-size: 14px; font-weight: var(--fw-medium); color: var(--fg2);
  padding: 12px 18px; border: 0; background: none; border-bottom: 2px solid transparent;
  transition: color var(--duration-sm), border-color var(--duration-sm);
}
.tab:hover { color: var(--fg1); }
.tab.active { color: var(--fg1); border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer { padding: 64px 0 0; border-top: 1px solid var(--border); }
.foot-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.foot-brand img { height: 28px; margin-bottom: 16px; }
.foot-brand p { font-size: 13px; color: var(--fg3); max-width: 280px; margin: 0; }
.foot-cols h4 { font-size: 11px; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--fg3); margin: 0 0 14px; font-weight: var(--fw-semibold); }
.foot-cols a { font-size: 13px; color: var(--fg2); display: block; padding: 4px 0; }
.foot-cols a:hover { color: var(--fg1); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--fg3); padding: 22px 0; border-top: 1px solid var(--border); }
.foot-bottom .links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-bottom a { color: var(--fg3); }
.foot-bottom a:hover { color: var(--fg2); }
/* "Cookie settings" reopens the consent banner. It has to be a <button>, not a
   link — it performs an action rather than navigating — so it is stripped back
   to look like its neighbours in the row. */
.foot-linkbtn { appearance: none; background: none; border: 0; padding: 0; margin: 0;
  font: inherit; color: var(--fg3); cursor: pointer; text-decoration: none; }
.foot-linkbtn:hover { color: var(--fg2); }
.foot-linkbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 560px) {
  /* The footer nav stopped narrowing at the 1024px breakpoint, so on a phone
     it stayed three columns of ~85px and 11 of its 24 links wrapped onto two
     lines ("Bud Novaria (AIOS)", "Bud Model Foundry", …). Two columns at this
     width gives ~162px each, which fits every label but the two longest. */
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .foot-bottom { flex-direction: column; gap: 14px; align-items: flex-start; }
}
/* signature footer bar */
.foot-bar { height: 4px; background: var(--bud-footer-bar); width: 100%; }

/* =============================================================
   PILLARS
   ============================================================= */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pillar {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
  border-top: 3px solid var(--accent); padding: 26px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform var(--duration-md), border-color var(--duration-md);
}
.pillar:hover { transform: translateY(-2px); }
.pillar h3 { font-size: 18px; margin: 0; }
.pillar .claim { font-size: 14px; color: var(--fg2); font-style: italic; line-height: 1.55; margin: 0; }
.pillar .proof-lbl { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg3); font-weight: var(--fw-semibold); }
.pillar .proof { font-size: 12.5px; color: var(--fg2); margin: 0; line-height: 1.5; }

/* =============================================================
   MISC
   ============================================================= */
.partners-band { padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(30,26,43,0.3); }
.partners-inner { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; justify-content: center; }
.partner-name { font-size: 15px; font-weight: var(--fw-semibold); color: var(--fg2); opacity: .8; }
.partner-lbl { font-size: 11px; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--fg3); }

.note-band { background: var(--bud-midnight); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 20px; font-size: 13px; color: var(--fg2); }
.dark-band { background: var(--bg-alt); }
.callout { border-left: 3px solid var(--accent); padding: 14px 20px; background: var(--accent-muted); border-radius: 0 var(--radius-md) var(--radius-md) 0; }

/* skip link */
.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: var(--radius-md); }
.skip:focus { left: 12px; }

/* =============================================================
   TRUST MARQUEE  (animated logo/name strip)
   ============================================================= */
.marquee-band { padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(30,26,43,0.3); overflow: hidden; }
.marquee-label { text-align: center; margin-bottom: 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--fg3); font-weight: 600; }
.marquee-label b { color: var(--bud-electric-2); font-weight: 600; }
.marquee { position: relative; overflow: hidden; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.marquee-track { display: flex; gap: 64px; width: max-content; align-items: center; animation: marquee-scroll 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-name { font-size: 18px; font-weight: var(--fw-semibold); color: var(--fg2); opacity: .5; white-space: nowrap; transition: opacity var(--duration-md); }
.marquee-name:hover { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; } }

/* Logo variant (.mq-logos) — single consolidated row: the "Trusted Partners"
   label sits in a pinned pill on the left edge and the logo strip slides
   underneath it. Opt-in; the default text marquee elsewhere is untouched. */
.marquee-band.mq-logos { position: relative; padding: 18px 0; }
.marquee-band.mq-logos .mq-pin { position: absolute; inset: 0; z-index: 3; display: flex; pointer-events: none; }
.marquee-band.mq-logos .marquee-label {
  display: inline-flex; align-items: center; margin: 0;
  padding: 0 28px 0 32px; background: var(--bg);
  border-right: 1px solid var(--border); color: var(--bud-electric-2);
}
.marquee-band.mq-logos .marquee::before { width: 380px; background: linear-gradient(to right, var(--bg) 55%, transparent); }
.marquee-logo { height: 26px; width: auto; filter: brightness(0) invert(1); opacity: .55; transition: opacity var(--duration-md); }
.marquee-logo:hover { opacity: 1; }
@media (max-width: 640px) {
  .marquee-band.mq-logos .mq-pin { position: static; justify-content: center; margin-bottom: 14px; }
  .marquee-band.mq-logos .marquee-label { border-right: 0; padding: 0; background: none; }
  .marquee-band.mq-logos .marquee::before { width: 120px; background: linear-gradient(to right, var(--bg), transparent); }
}

/* =============================================================
   PRODUCT SHOWCASE  (tabbed, with CSS "UI mock")
   namespaced .sc-* to avoid colliding with .tab/.tab-panel
   ============================================================= */
.sc-tabs { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; margin: 0 auto 28px; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill); width: max-content; max-width: 100%; }
.sc-tab { padding: 10px 16px; font-size: 13px; font-weight: var(--fw-semibold); color: var(--fg2); background: transparent; border: 0; border-radius: var(--radius-pill); cursor: pointer; white-space: nowrap; transition: all var(--duration-md) var(--ease-out-expo); }
.sc-tab:hover { color: var(--bud-electric-2); }
.sc-tab.on { background: var(--fg1); color: var(--bg); }
.sc-panel { display: none; }
.sc-panel.on { display: grid; grid-template-columns: 1fr 1.1fr; gap: 16px; animation: sc-fade .35s var(--ease-out-expo); }
@keyframes sc-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.sc-copy { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.sc-copy .layer-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--bud-electric); font-weight: 700; }
.sc-copy h3 { font-size: 30px; font-weight: var(--fw-bold); letter-spacing: -.02em; margin: 0; }
.sc-copy h3 .light { font-weight: var(--fw-regular); color: var(--bud-electric-2); }
.sc-copy p { font-size: 14px; color: var(--fg2); line-height: 1.65; margin: 0; }
.sc-bullets { display: flex; flex-direction: column; gap: 2px; margin: 6px 0; }
.sc-bullets li { display: grid; grid-template-columns: 12px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--border); align-items: baseline; font-size: 13px; color: var(--fg2); }
.sc-bullets li::before { content: ""; width: 8px; height: 8px; background: var(--bud-electric); margin-top: 5px; }
.sc-bullets li b { color: var(--fg1); font-weight: var(--fw-semibold); }
.sc-copy .more { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--bud-electric-2); border-bottom: 1px solid currentColor; padding-bottom: 2px; align-self: flex-start; font-weight: var(--fw-semibold); margin-top: auto; }
.sc-copy .more:hover { color: var(--accent-hover); }

/* UI mock */
.ui-mock { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 18px; display: flex; flex-direction: column; gap: 10px; min-height: 360px; position: relative; overflow: hidden; box-shadow: var(--shadow-3); }
.mock-head { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.mock-head .dots { display: flex; gap: 4px; }
.mock-head .dots i { width: 8px; height: 8px; border-radius: 999px; background: var(--border-strong); display: block; }
.mock-head .url { font-family: var(--font-mono); font-size: 10px; color: var(--fg3); letter-spacing: .04em; }
.mock-body { display: grid; grid-template-columns: 96px 1fr; gap: 12px; flex: 1; }
.mock-side { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; }
.mock-side .item { padding: 6px 8px; border-radius: var(--radius-xs); font-family: var(--font-mono); font-size: 10px; color: var(--fg3); border-left: 2px solid transparent; }
.mock-side .item.on { background: var(--accent-muted); color: var(--bud-electric-2); border-left-color: var(--accent); }
.mock-content { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mock-kpi-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; }
.mock-kpi { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.mock-kpi.t1 { background: var(--bud-electric-3); color: #1A0633; border-color: transparent; }
.mock-kpi.t2 { background: var(--bud-electric-2); color: #1A0633; border-color: transparent; }
.mock-kpi.t3 { background: var(--bud-electric); color: #fff; border-color: transparent; }
.mock-kpi .k { font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; opacity: .8; font-weight: 600; }
.mock-kpi .v { font-size: 22px; font-weight: var(--fw-bold); letter-spacing: -.02em; line-height: 1; }
.mock-kpi .s { font-family: var(--font-mono); font-size: 9px; opacity: .7; }
.mock-chart { flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; min-height: 120px; display: flex; flex-direction: column; gap: 6px; }
.mock-chart .chart-title { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg3); font-weight: 600; }
.mock-chart svg { flex: 1; width: 100%; }
.mock-rows { display: flex; flex-direction: column; gap: 2px; }
.mock-rows .mr { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 7px 10px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-xs); align-items: center; font-family: var(--font-mono); font-size: 10px; }
.mock-rows .mr .n { color: var(--fg1); }
.mock-rows .mr .m { color: var(--bud-electric-2); font-weight: 600; }
.mock-rows .mr.live .n::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--bud-success); margin-right: 6px; display: inline-block; }
.mock-rows .mr .badge { font-size: 9px; padding: 2px 6px; border-radius: var(--radius-xs); color: #fff; background: var(--accent); }
.mock-tag { position: absolute; bottom: 8px; right: 12px; font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg3); }

/* =============================================================
   PARADOX VS-GRID  (status-quo vs Bud OS)
   ============================================================= */
.vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vs-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 32px; display: flex; flex-direction: column; gap: 22px; }
.vs-card.os { background: linear-gradient(180deg, rgba(140,51,239,.14), rgba(140,51,239,.02)); border-color: var(--border-strong); }
.vs-card .vs-head { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--fg2); }
.vs-card.os .vs-head { color: var(--bud-electric-2); }
.vs-card .vs-body { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 240px; }
.vs-card .vs-caption { font-size: 13px; color: var(--fg2); line-height: 1.55; margin: 0; }
.vs-card .vs-caption b { color: var(--fg1); font-weight: var(--fw-semibold); }
/* Stacked "rebuilt per client" rows in a .vs-body (partners/si.html). Lifted
   out of three identical inline style attributes so the radius is a TOKEN and
   the design-guide §09 purge can reach it — an inline literal is the one thing
   a scoped stylesheet cannot override. */
.vs-rows { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 280px; }
.vs-rows .vs-row {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--fg2);
  padding: 12px 15px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--bud-midnight);
}
.tool-mess { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; width: 100%; max-width: 320px; }
.tool-mess i { aspect-ratio: 1; border-radius: 2px; background: var(--surface-elev); border: 1px solid var(--border); }
.tool-mess i.r { background: rgba(255,107,107,.18); border-color: rgba(255,107,107,.3); }
.tool-mess i.a { background: rgba(245,180,0,.16); border-color: rgba(245,180,0,.3); }
.tool-mess i.g { background: rgba(140,51,239,.12); border-color: rgba(183,133,244,.25); }
.os-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 6px; aspect-ratio: 1; max-width: 220px; width: 100%; }
.os-grid i { display: block; border-radius: 2px; opacity: 0; transform: scale(.6); transition: opacity .6s var(--ease-out-expo), transform .6s var(--ease-out-expo); }
.vs-card.os.in-view .os-grid i { opacity: 1; transform: scale(1); }
.os-grid i:nth-child(1){ background: var(--bud-electric-3); grid-column: 1; grid-row: 1; transition-delay: 0ms; }
.os-grid i:nth-child(2){ background: var(--bud-electric-3); grid-column: 2; grid-row: 1; transition-delay: 100ms; }
.os-grid i:nth-child(3){ background: var(--bud-electric-2); grid-column: 3; grid-row: 1 / span 2; transition-delay: 200ms; }
.os-grid i:nth-child(4){ background: var(--bud-electric-2); grid-column: 1; grid-row: 2 / span 2; transition-delay: 280ms; }
.os-grid i:nth-child(5){ background: var(--bud-electric-2); grid-column: 2; grid-row: 2; transition-delay: 360ms; }
.os-grid i:nth-child(6){ background: var(--bud-electric); grid-column: 2; grid-row: 3; transition-delay: 460ms; }
.os-grid i:nth-child(7){ background: var(--bud-electric); grid-column: 3; grid-row: 3; transition-delay: 560ms; }

/* Thesis visuals — fragmented tiles vs. unified product rows */
.frag { position: relative; width: 100%; max-width: 380px; height: 300px; margin: 0 auto; }
.frag-tile { position: absolute; padding: 6px 10px; font-size: 11px; font-family: var(--font-mono); background: var(--surface-elev); border: 1px solid var(--border); color: var(--fg2); white-space: nowrap; letter-spacing: .02em; border-radius: 2px; --r: 0deg; animation: fragFloat 6.5s ease-in-out infinite; will-change: transform; }
.frag-tile.broken { border-color: rgba(255,107,107,.4); color: rgba(255,107,107,.85); background: rgba(255,107,107,.06); text-decoration: line-through; text-decoration-color: rgba(255,107,107,.5); animation: fragBrokenFlicker 4.2s ease-in-out infinite; }
.frag-tile:nth-child(1)  { animation-delay:  -0.0s; }
.frag-tile:nth-child(2)  { animation-delay:  -1.1s; }
.frag-tile:nth-child(3)  { animation-delay:  -0.4s; }
.frag-tile:nth-child(4)  { animation-delay:  -2.6s; }
.frag-tile:nth-child(5)  { animation-delay:  -1.7s; }
.frag-tile:nth-child(6)  { animation-delay:  -3.3s; }
.frag-tile:nth-child(7)  { animation-delay:  -0.8s; }
.frag-tile:nth-child(8)  { animation-delay:  -2.1s; }
.frag-tile:nth-child(9)  { animation-delay:  -4.0s; }
.frag-tile:nth-child(10) { animation-delay:  -1.4s; }
.frag-tile:nth-child(11) { animation-delay:  -3.0s; }
.frag-tile:nth-child(12) { animation-delay:  -2.4s; }
@keyframes fragFloat {
  0%   { transform: rotate(var(--r)) translate(0, 0); }
  25%  { transform: rotate(calc(var(--r) + 1.2deg)) translate(2px, -3px); }
  50%  { transform: rotate(calc(var(--r) - 1deg))   translate(-2px, 2px); }
  75%  { transform: rotate(calc(var(--r) + 0.6deg)) translate(3px, 1px); }
  100% { transform: rotate(var(--r)) translate(0, 0); }
}
@keyframes fragBrokenFlicker {
  0%, 100% { opacity: 0.85; transform: rotate(var(--r)) translate(0,0); }
  20%      { opacity: 0.45; }
  35%      { opacity: 0.95; transform: rotate(calc(var(--r) - 1.8deg)) translate(-2px, 1px); }
  55%      { opacity: 0.55; }
  75%      { opacity: 0.9;  transform: rotate(calc(var(--r) + 1.2deg)) translate(2px, -1px); }
}
@media (prefers-reduced-motion: reduce) {
  .frag-tile, .frag-tile.broken { animation: none !important; transform: rotate(var(--r)); }
}
.unified { display: flex; flex-direction: column; gap: 4px; width: 100%; max-width: 360px; margin: 0 auto; }
.unified-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; background: rgba(140,51,239,.10); border: 1px solid rgba(183,133,244,.25); font-size: 12.5px; color: var(--fg1); border-radius: var(--radius-xs); }
.unified-row > span:nth-child(2) { font-weight: var(--fw-semibold); }
.unified-row .n { font-family: var(--font-mono); font-size: 10px; color: var(--bud-electric-2); letter-spacing: .05em; }
.unified-row .rl { font-family: var(--font-mono); font-size: 9px; color: var(--fg3); text-transform: uppercase; letter-spacing: .12em; }

/* Rotating headline word */
.rot { color: var(--bud-electric-2); transition: opacity .3s var(--ease-out-expo); display: inline-block; }

/* =============================================================
   FLYWHEEL  (animated SVG visualization + outcome cards)
   ============================================================= */
.fw-viz { max-width: 1040px; margin: 8px auto 8px; }
.fw-viz svg { width: 100%; height: auto; display: block; }
.fw-spin-rev  { transform-origin: 720px 450px; animation: fwSpinRev 80s linear infinite; }
.fw-spin-slow { transform-origin: 720px 450px; animation: fwSpinSlow 50s linear infinite; }
.fw-spin-med  { transform-origin: 720px 450px; animation: fwSpinMed 35s linear infinite; }
@keyframes fwSpinRev  { to { transform: rotate(-360deg); } }
@keyframes fwSpinSlow { to { transform: rotate(360deg); } }
@keyframes fwSpinMed  { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .fw-spin-rev, .fw-spin-slow, .fw-spin-med { animation: none !important; }
  .fw-viz svg [class^="fw-"] circle[r="5"], .fw-viz svg circle[r="4"], .fw-viz svg circle[r="4.5"] { display: none; }
}
.fw-outcomes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 8px; }
.fw-out { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 16px 14px; display: flex; flex-direction: column; gap: 8px; }
.fw-out .oh { display: flex; align-items: center; justify-content: space-between; }
.fw-out .onum { font-family: var(--font-mono); font-size: 11px; color: var(--bud-electric-2); font-weight: 700; letter-spacing: .12em; }
.fw-out .oarrow { font-size: 22px; font-weight: 700; color: var(--bud-electric-2); font-style: italic; line-height: 1; }
.fw-out .olabel { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg3); font-weight: 600; }
.fw-out h4 { font-size: 14.5px; font-weight: var(--fw-semibold); margin: 0; line-height: 1.25; color: var(--fg1); }
.fw-out h4 em { font-style: normal; color: var(--bud-electric-2); }
.fw-out p { font-size: 12px; color: var(--fg2); line-height: 1.5; margin: 0; }
.fw-out .ospark { height: 34px; margin-top: auto; }
.fw-out .ospark svg { width: 100%; height: 100%; display: block; }
.fw-out .otag { font-size: 10px; color: var(--fg3); border-top: 1px solid var(--border); padding-top: 8px; }
.fw-out .otag span { color: var(--bud-electric-2); font-weight: var(--fw-semibold); }

/* =============================================================
   DECAY  (flywheel closing line — reveals in sequence on scroll)
   Compact left-accent callout; the argument builds line by line
   when the block enters the viewport. Static emphasis only.
   ============================================================= */
.decay { background: var(--accent-muted); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 24px 26px; margin-top: 28px; text-align: center; }
.decay-head { font-size: clamp(22px, 3.2vw, 34px); line-height: 1.24; font-weight: var(--fw-semibold);
  color: var(--fg1); margin: 0 auto 12px; max-width: 24ch; }
.decay-head .seq { display: block; }
.decay-head em { font-style: normal; color: var(--fg3); }
.decay-head .accent { color: var(--bud-electric-2); }
.decay-sub { font-size: 14.5px; line-height: 1.6; color: var(--fg2); margin: 0 auto; max-width: 64ch; }
.decay-sub strong { color: var(--fg1); }
.decay-punch { font-size: clamp(17px, 2.1vw, 22px); line-height: 1.4; font-weight: var(--fw-semibold);
  color: var(--fg1); margin: 16px auto 0; padding-top: 14px; border-top: 1px solid var(--border); max-width: 48ch; }
.decay-punch em { font-style: normal; }
.decay-punch .frag { color: var(--fg3); }
.decay-punch .unified { color: var(--bud-electric-2); font-weight: var(--fw-bold); }

/* sequential reveal — staggered fade-up, one part after another.
   Hidden state is gated on html.js-reveal so no-JS / reduced-motion shows everything. */
html.js-reveal .decay .seq { opacity: 0; transform: translateY(10px); }
.decay.seq-in .seq { animation: seq-in .5s var(--ease-out-expo) forwards;
  animation-delay: calc(var(--seq, 0) * .42s); }
@keyframes seq-in { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html.js-reveal .decay .seq { opacity: 1; transform: none; }
  .decay.seq-in .seq { animation: none; }
}

/* =============================================================
   SCROLL REVEAL  (subtle fade-up on section entry)
   ============================================================= */
html.js-reveal [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease-out-expo), transform .55s var(--ease-out-expo); }
html.js-reveal [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js-reveal [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
}

/* =============================================================
   ARCHITECTURE DIAGRAM  (reference architecture — planes + governance rail)
   Reusable: tiers stacked top→bottom, optional SENTRY rail, perimeter variant
   ============================================================= */
.arch { display: grid; grid-template-columns: 1fr 58px; gap: 12px; align-items: stretch; }
.arch.no-rail { grid-template-columns: 1fr; }
.arch-flow { display: flex; flex-direction: column; }
.arch-tier { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 13px 15px; }
.arch-tier + .arch-tier { margin-top: 28px; position: relative; }
.arch-tier + .arch-tier::before { content: ""; position: absolute; left: 50%; top: -28px; width: 2px; height: 20px; background: linear-gradient(var(--accent), var(--border-strong)); transform: translateX(-50%); }
.arch-tier + .arch-tier::after { content: ""; position: absolute; left: 50%; top: -10px; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--accent); transform: translateX(-50%); }
.arch-tlabel { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.arch-tlabel .t { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--bud-electric-2); font-weight: 700; }
.arch-tlabel .meta { font-family: var(--font-mono); font-size: 10px; color: var(--fg3); }
.arch-nodes { display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); gap: 8px; }
.arch-node { background: var(--bud-midnight); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 11px 13px; display: flex; flex-direction: column; gap: 3px; }
.arch-node .nn { font-size: 13px; font-weight: var(--fw-semibold); color: var(--fg1); }
.arch-node .nd { font-size: 11px; color: var(--fg3); line-height: 1.4; }
.arch-node.hl { border-color: var(--accent); background: linear-gradient(180deg, rgba(140,51,239,.16), transparent 80%); }
.arch-node.hl .nn { color: var(--bud-electric-2); }
.arch-node.wide { grid-column: 1 / -1; }
/* SENTRY governance rail spanning full height */
.arch-rail { background: linear-gradient(180deg, rgba(140,51,239,.18), rgba(140,51,239,.04)); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 14px 6px; }
.arch-rail .ri { width: 26px; height: 26px; border-radius: var(--radius-sm); background: var(--accent-muted); color: var(--bud-electric-2); display: flex; align-items: center; justify-content: center; }
.arch-rail .ri i { width: 15px; height: 15px; }
.arch-rail .rl { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--bud-electric-2); font-weight: 700; }
/* perimeter variant (trust — "your perimeter, zero egress") */
.arch-perimeter { border: 1.5px dashed var(--border-strong); border-radius: var(--radius-xl); padding: 30px 18px 18px; position: relative; background: rgba(30,26,43,0.35); }
.arch-perimeter > .pl { position: absolute; top: -11px; left: 22px; background: var(--bg); padding: 0 12px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--bud-electric-2); font-weight: 700; }
.arch-perimeter > .pl .x { color: var(--bud-success); }
.arch-egress { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; font-family: var(--font-mono); font-size: 11px; color: var(--fg3); }
.arch-egress .blocked { color: var(--bud-alert); text-decoration: line-through; }

/* =============================================================
   PROOF / "PRODUCTION" CARDS  (deck "Not slideware. Production." style)
   square surface cards · mono labels · two-cell number block w/ violet lead
   ============================================================= */
.pf-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.pf-head h2 { font-size: clamp(30px, 4vw, 40px); margin: 0 0 14px; }
.pf-head h2 em { font-style: normal; color: var(--bud-electric-2); }
.pf-head p { font-size: 16px; color: var(--fg2); margin: 0 auto; max-width: 620px; }
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pf-case { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 28px 26px; display: flex; flex-direction: column; transition: border-color var(--duration-md), transform var(--duration-md); }
.pf-case:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.pf-top { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--bud-electric-2); }
.pf-top small { color: var(--fg3); font-weight: 500; letter-spacing: .1em; font-size: 11px; }
.pf-cust { font-size: 21px; font-weight: var(--fw-bold); letter-spacing: -.015em; color: var(--fg1); margin: 0 0 18px; line-height: 1.25; min-height: 2.5em; }
.pf-num-block { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 18px; }
.pf-nc { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 15px; }
.pf-nc.lead { background: var(--accent); border-color: var(--accent); }
.pf-nc .v { font-size: 21px; font-weight: var(--fw-bold); letter-spacing: -.02em; line-height: 1.05; color: var(--fg1); }
.pf-nc .v .u { font-size: .58em; opacity: .85; font-weight: 700; }
.pf-nc.lead .v { color: #fff; }
.pf-nc .l { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg3); margin-top: 10px; line-height: 1.35; }
.pf-nc.lead .l { color: rgba(255,255,255,.8); }
.pf-case > p { font-size: 13px; color: var(--fg2); line-height: 1.6; margin: 0; margin-top: auto; }

/* =============================================================
   METRIC CARD  (replaces bare big-number/small-text stat callouts)
   mono label · moderate value · readable description — Madel card style
   ============================================================= */
.metric-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); border-top: 2px solid var(--accent); padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 8px; transition: border-color var(--duration-md), transform var(--duration-md); }
.metric-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.metric-card .mc-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--bud-electric-2); font-weight: 700; }
.metric-card .mc-value { font-size: 30px; font-weight: var(--fw-bold); letter-spacing: -.02em; line-height: 1; color: var(--fg1); margin-top: 2px; }
.metric-card .mc-desc { font-size: 13px; color: var(--fg2); line-height: 1.55; }
.metric-card .mc-src { font-family: var(--font-mono); font-size: 10px; color: var(--fg3); opacity: .8; margin-top: auto; padding-top: 8px; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1180px) {
  .mega.mega-prod { left: -200px; }
}
@media (max-width: 980px) {
  .mega.mega-prod { left: -300px; }
}
@media (max-width: 1024px) {
  .stats-grid, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .hero-split { grid-template-columns: 1fr; gap: 40px; }
  .foot-cols { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-links.mobile-open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface-overlay); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border); padding: 16px; gap: 2px;
  }
  .nav-links.mobile-open .mega { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; min-width: 0; border: 0; padding: 4px 0 8px 16px; background: none; }
  .mega-grid { grid-template-columns: 1fr; }
  .mega.mega-wide, .mega.mega-prod { min-width: 0; }
  .pm-wrap { flex-direction: column; }
  .pm-stack { flex: 0 0 auto; }
  .pm-detailcol { display: none; }
  .mega-cols { grid-template-columns: 1fr; gap: 4px; }
  .grid-3, .ladder, .pillars, .persona-grid { grid-template-columns: 1fr; }
  .sc-panel.on, .vs-grid, .pf-grid { grid-template-columns: 1fr; }
  .fw-outcomes { grid-template-columns: 1fr 1fr; }
  .arch { grid-template-columns: 1fr; }
  .arch-rail { flex-direction: row; padding: 10px; }
  .arch-rail .rl { writing-mode: horizontal-tb; transform: none; }
  .section, .ladder-band, .cta-band { padding: 44px 0; }
  .nl-band { padding-bottom: 40px; }
  .cta-panel { padding: 32px 24px; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .container, .container-wide { padding: 0 20px; }
  /* Nav row = logo + demo CTA + burger; at 28px gaps it overflows a
     375px viewport, pushing the burger past the right edge. */
  .nav-inner { gap: 12px; justify-content: space-between; }
  .nav-logo { height: 22px; }
  .nav-actions { margin-left: auto; }
  .nav-actions .btn-primary { padding: 7px 10px; font-size: 12px; }
  .nav-actions .btn-primary i, .nav-actions .btn-primary svg { display: none; }
  .stats-grid, .grid-2, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .fw-outcomes { grid-template-columns: 1fr; }
  .arch-nodes { grid-template-columns: 1fr !important; }
  .layer { grid-template-columns: 1fr; gap: 6px; }
  .layer .sub { white-space: normal; }
  .stack-tower { grid-template-columns: 1fr; gap: 4px; }
  .stack-tower .tl { padding: 6px 12px; }
  .stack-tower .tc { grid-template-columns: 1fr; gap: 4px; }
  .stack-tower .tc .mx { white-space: normal; }
}

/* ── CONTENT-NEEDED placeholder (content-integration phase) ─────────
   Red-outlined block marking a content gap for the product-content
   team. Remove each block as real content lands. */
.todo-block {
  border: 2px dashed var(--bud-red);
  background: var(--bud-red-soft);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin: 20px 0;
}
.todo-block .todo-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--bud-red); margin-bottom: 10px;
}
.todo-block .todo-tag::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--bud-red); }
.todo-block h3, .todo-block h4 { color: var(--fg1); margin: 0 0 6px; font-size: 16px; }
.todo-block p { color: var(--fg2); font-size: 14px; margin: 0; line-height: 1.6; }
.todo-block ul { color: var(--fg2); font-size: 14px; margin: 8px 0 0 18px; line-height: 1.7; }

/* ── Newsletter signup ─────────────────────────────────────────────── */
/* The band sits above the footer rule, inside the page's .container, so the
   sign-up row is flush with the .cta-panel above it. Spacing above comes from
   the preceding section's own padding; this only owns the gap down to the
   footer's full-bleed rule. */
.nl-band { padding: 0 0 56px; }
/* Nested variant — partials.js appends this into the page's closing
   .cta-panel when there is one. The hairline stops inside the panel's own
   padding rather than running edge to edge, so it reads as a divider between
   two blocks of the same card. */
.cta-panel .nl-inline { margin-top: 38px; padding-top: 30px; border-top: 1px solid var(--border-strong); }
/* Mirror the panel's own .hero-split grid (every CTA blade runs 1.2fr 1fr with
   an inline gap:48px) so the copy sits under the CTA copy and the field+button
   line up with the numbered boxes — same left edge, same right edge. */
.cta-panel .nl-inline .newsletter { display: grid; grid-template-columns: 1.2fr 1fr; column-gap: 48px; align-items: center; }
.cta-panel .nl-inline .newsletter input[type="email"] { flex: 1 1 auto; min-width: 0; }
/* Collapses at .hero-split's own breakpoint, not the narrower mobile one, or
   the sign-up keeps two columns after the panel above it has stacked. Declared
   here rather than in the 1024px block further up the file: that block comes
   BEFORE this section, so at equal specificity the grid above would win. */
@media (max-width: 1024px) { .cta-panel .nl-inline .newsletter { grid-template-columns: 1fr; } }
/* The panel and the input share --surface, which would leave the field
   invisible but for its border; drop it to the page background so it still
   reads as a well. */
.cta-panel .newsletter input[type="email"] { background: var(--bg); }
.newsletter {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
}
.newsletter .nl-copy h4 { color: var(--fg1); font-size: 16px; margin: 0 0 4px; }
.newsletter .nl-copy p { color: var(--fg3); font-size: 13px; margin: 0; }
.newsletter form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter input[type="email"] {
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  color: var(--fg1); font-size: 14px; padding: 11px 14px; min-width: 260px; font-family: inherit;
}
.newsletter input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
/* Error slot for the submit handler — no standing copy, so it collapses out
   of the layout until something is written into it. */
.newsletter .nl-note { flex-basis: 100%; font-size: 12px; color: var(--fg3); margin: 0; }
.newsletter .nl-note:empty { display: none; }
@media (max-width: 560px) { .newsletter input[type="email"] { min-width: 0; flex: 1; } }

/* =============================================================
   NEWS ARTICLE (detail page) — scoped to .article-*.
   Reuses tokens only. Category jewel tones tag the post; they
   never override Electric Violet as the brand hero accent.
   ============================================================= */
.page-hero h1 .accent { color: var(--accent); }

/* Category palette (mirrors the newsroom index keys) */
.art-cat-award         { --cat:#F2C341; --cat-fill:rgba(242,195,65,0.16); --cat-border:rgba(242,195,65,0.32); --cat-glow:rgba(242,195,65,0.10); }
.art-cat-partnership   { --cat:#4F86F2; --cat-fill:rgba(79,134,242,0.16); --cat-border:rgba(79,134,242,0.32); --cat-glow:rgba(79,134,242,0.10); }
.art-cat-product       { --cat:#B785F4; --cat-fill:rgba(140,51,239,0.16); --cat-border:rgba(183,133,244,0.34); --cat-glow:rgba(140,51,239,0.12); }
.art-cat-certification { --cat:#35C88B; --cat-fill:rgba(53,200,139,0.16); --cat-border:rgba(53,200,139,0.32); --cat-glow:rgba(53,200,139,0.10); }

/* Hero meta row */
.art-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.art-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: var(--fw-semibold); letter-spacing: .04em;
  padding: 5px 11px; border-radius: var(--radius-pill);
  background: var(--cat-fill); border: 1px solid var(--cat-border); color: var(--cat);
}
.art-tag i { width: 13px; height: 13px; }
.art-dot { width: 3px; height: 3px; border-radius: 999px; background: var(--fg3); opacity: .6; }
.art-meta .m { font-size: 12.5px; color: var(--fg3); display: inline-flex; align-items: center; gap: 6px; }
.art-meta .m i { width: 13px; height: 13px; }

/* Two-column body: prose + sticky share rail */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 188px; gap: 56px; align-items: start; }
.prose { max-width: 760px; min-width: 0; }
.prose > p { font-size: 16px; line-height: 1.72; color: var(--fg2); margin: 0 0 22px; }
.prose > p.lead-para { font-size: 18.5px; line-height: 1.62; color: var(--fg2); margin-bottom: 28px; }
.prose h2 { font-size: 24px; font-weight: var(--fw-bold); letter-spacing: -0.01em; line-height: 1.22; margin: 46px 0 16px; }
.prose h3 { font-size: 17px; font-weight: var(--fw-semibold); line-height: 1.3; margin: 32px 0 12px; color: var(--fg1); }
.prose strong { color: var(--fg1); font-weight: var(--fw-semibold); }
.prose a { color: var(--accent); }
.prose ul { margin: 0 0 24px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 13px; }
.prose ul li { position: relative; padding-left: 26px; font-size: 15.5px; line-height: 1.6; color: var(--fg2); }
.prose ul li::before { content: ""; position: absolute; left: 5px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--cat, var(--accent)); }
.prose ul li strong { display: inline; }

/* Pull quote */
.pullquote { margin: 32px 0; padding: 22px 26px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--cat, var(--accent)); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.pullquote p { font-size: 18px; line-height: 1.55; color: var(--fg1); margin: 0 0 12px; }
.pullquote cite { font-style: normal; font-size: 12.5px; color: var(--fg3); display: block; }
.pullquote cite b { color: var(--fg2); font-weight: var(--fw-semibold); }

/* Partner / customer quote card (promoted from the brief tier via /design-guide) */
.quote-card { margin-top: 24px; border: 1px solid var(--border-strong); border-radius: var(--radius-xl); background: linear-gradient(135deg, var(--accent-muted), transparent 65%); padding: 28px 30px; }
.quote-card .q-tag { display: inline-block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--bud-electric-2); border: 1px solid var(--border-strong); border-radius: var(--radius-pill); padding: 4px 12px; margin-bottom: 14px; }
.quote-card blockquote { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--fg1); }
.quote-card cite { display: block; margin-top: 14px; font-style: normal; font-size: 12.5px; color: var(--fg3); }

/* At-a-glance fact strip */
.art-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin: 0 0 32px; }
.art-fact { background: var(--surface); padding: 18px 20px; }
.art-fact .n { font-size: 23px; font-weight: var(--fw-bold); color: var(--cat, var(--accent)); letter-spacing: -0.02em; line-height: 1.05; }
.art-fact .l { font-size: 11.5px; color: var(--fg3); margin-top: 6px; line-height: 1.45; }

/* Sticky share rail */
.article-aside { position: sticky; top: 92px; }
.share-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg3); margin: 0 0 14px; }
.share-btns { display: flex; flex-direction: column; gap: 8px; }
.share-btn { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--fg2); padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); transition: border-color var(--duration-sm) var(--ease-out-expo), color var(--duration-sm) var(--ease-out-expo); }
.share-btn:hover { border-color: var(--border-strong); color: var(--fg1); }
.share-btn svg, .share-btn i { width: 15px; height: 15px; flex: none; }

/* Back-to-newsroom strip */
.art-back { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: var(--fw-semibold); color: var(--fg2); }
.art-back:hover { color: var(--fg1); }
.art-back i { width: 15px; height: 15px; }

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; gap: 36px; }
  .article-aside { position: static; }
  .share-btns { flex-direction: row; flex-wrap: wrap; }
}

/* Article figures — featured (lead) image + inline body graphics/charts */
.art-figure { margin: 0 0 28px; }
.art-figure.lead { margin-bottom: 30px; }
.art-figure img { display: block; max-width: 100%; max-height: 620px; width: auto; height: auto; margin: 0 auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.art-figure figcaption { margin: 11px 0 0; font-size: 12.5px; color: var(--fg3); text-align: center; line-height: 1.5; }

/* Optional LIGHT reading surface for an article body — opt in by putting
   data-theme="light" on the body <section class="section art-cat-*">.
   tokens.css's [data-theme="light"] block re-scopes every semantic var for
   this subtree, so prose, pullquotes, .art-facts, figures, and the share
   rail all flip to light; the dark hero / nav / footer stay untouched.
   The section paints --bg (the rest of .section is transparent) and gets a
   hairline top/bottom rule so the light band reads as an intentional pane. */
.section[data-theme="light"] {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
/* On a light surface the two pale category accents lose contrast (award gold
   and product lavender) — deepen them so quote borders, bullets, and the
   .art-facts numbers stay legible on white. Blue/green read fine as-is. */
.section[data-theme="light"].art-cat-award   { --cat: #A16207; }  /* gold → deep goldenrod */
.section[data-theme="light"].art-cat-product { --cat: #7C3AED; }  /* lavender → brand violet */

/* ============ HOMEPAGE · EMBEDDED FILM (section 1.5) ============
   The film is a NATIVE full-bleed blade placed directly after the partner
   marquee — all of its styling lives in assets/css/film.css (scoped under
   .film-blade). No wrapper styling needed here. */

/* ============ PRODUCT-OVERVIEW FILM · SHARED STAGE CHROME ============
   Paired with window.BudFilmNav (site.js), which injects .bud-film-veil
   and .bud-film-nav into every rAF film stage and dims the grid motif
   once the opening beat is past. Scoped to [data-film-beat] so nothing
   here can reach a page that has no film on it. */

/* Motif — the driver writes the opacity; this only makes the drop smooth.
   Descendant, not child: SENTRY nests its grid a level deeper. */
[data-film-beat] bud-grid { transition: opacity 1.1s cubic-bezier(.4, 0, .2, 1); }

/* Veil — sits between the motif and .ff-scenes (z-index 0 beats DOM order
   against the scenes' z-index 1). Darkens the left rail and the top/bottom
   title bands, which is where every one of these films sets its copy, while
   leaving the middle of the frame clear for the diagram. */
.bud-film-veil {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity 1.1s cubic-bezier(.4, 0, .2, 1);
  background:
    radial-gradient(115% 105% at 0% 50%, rgba(10, 7, 18, .78), rgba(10, 7, 18, .3) 48%, transparent 74%),
    linear-gradient(180deg, rgba(10, 7, 18, .62), transparent 30%, transparent 70%, rgba(10, 7, 18, .66));
}
[data-film-beat="story"] > .bud-film-veil { opacity: 1; }

/* Beat nav — back / forward across beat boundaries, bottom-right of the
   stage. Matches the hero-carousel arrow chrome ([data-hc-arrow]). */
.bud-film-nav {
  position: absolute; right: 16px; bottom: 14px; z-index: 42;
  display: flex; align-items: center; gap: 8px;
  padding: 5px 7px; border-radius: 999px;
  border: 1px solid rgba(183, 133, 244, .16); background: rgba(10, 7, 18, .72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.bud-film-btn {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  padding: 0; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(183, 133, 244, .18); background: rgba(18, 14, 28, .6); color: var(--fg2);
  transition: background .12s, color .12s, border-color .12s;
}
.bud-film-btn:hover { background: rgba(140, 51, 239, .18); border-color: rgba(183, 133, 244, .4); color: var(--fg1); }
.bud-film-btn:focus-visible { outline: 2px solid var(--bud-electric-2, #B785F4); outline-offset: 2px; }
.bud-film-ix {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em;
  color: var(--fg3); min-width: 46px; text-align: center; user-select: none;
}
@media (max-width: 560px) {
  .bud-film-nav { right: 10px; bottom: 10px; gap: 6px; }
  .bud-film-ix { min-width: 40px; font-size: 9.5px; }
}

/* ---- Legibility: darkening behind the films' text components ----
   The scenes float copy straight over the diagram, so the shared text
   hooks get their own backdrop rather than relying on the stage veil. */

/* Beat C detail panel — index / title / metric / bullets (.pfc-* on Bud Pod) */
.ffc-detail, .pfc-detail {
  position: relative;
  border-radius: 14px;
  background: radial-gradient(120% 120% at 0% 0%, rgba(10, 7, 18, .82), rgba(10, 7, 18, .5) 62%, rgba(10, 7, 18, .18));
}

/* Station labels riding the flow line in beat B */
.ff-lab { text-shadow: 0 1px 10px rgba(10, 7, 18, .95), 0 0 22px rgba(10, 7, 18, .8); }

/* Scene headings and eyebrows — a soft halo so they hold over any motif */
[data-film-beat] .ff-a h3, [data-film-beat] .ff-b h3,
[data-film-beat] [data-in] { text-shadow: 0 1px 12px rgba(10, 7, 18, .7); }
