/* Capital Alliance — prototype styles. Tokens live in tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--t-body)/1.65 var(--f-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.band :focus-visible { outline-color: var(--gold-300); }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.mono { font-family: var(--f-mono); font-size: var(--t-micro); letter-spacing: 0.02em; }
.num, .metric__v { font-variant-numeric: tabular-nums; }
.fine { font-size: var(--t-micro); color: var(--muted); line-height: 1.55; }
.center { display: flex; justify-content: center; margin-top: 40px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold-400); color: var(--navy-900); padding: 8px 14px; }
.skip:focus { left: 8px; }

/* Band: always-navy institutional surface. Re-maps tokens so every component works inside. */
.band {
  --ink: var(--band-ink); --ink-2: #d5dbe5; --muted: var(--band-muted); --line: var(--band-line-soft);
  --line-strong: rgba(238, 241, 246, 0.2); --gold: var(--gold-400); --surface: var(--band-bg-2);
  --surface-2: rgba(255, 255, 255, 0.03); --signal: var(--band-signal); --focus: var(--gold-300);
  background: var(--band-bg); color: var(--ink); position: relative; isolation: isolate;
}
.band--tech {
  background:
    linear-gradient(var(--band-line-soft) 1px, transparent 1px) 0 0 / 100% 64px,
    linear-gradient(90deg, var(--band-line-soft) 1px, transparent 1px) 0 0 / 64px 100%,
    radial-gradient(ellipse at 80% 0%, rgba(134, 169, 220, 0.14), transparent 60%),
    var(--band-bg);
}

/* ── Type ─────────────────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--f-label); font-weight: 500; font-size: var(--t-micro);
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.eyebrow--gold { color: var(--gold-400); }
.display { font-family: var(--f-display); font-weight: 300; font-size: var(--t-display); line-height: 0.98; letter-spacing: -0.02em; font-optical-sizing: auto; }
.display--page { font-size: var(--t-page); line-height: 1.04; max-width: 20ch; }
.h2 { font-family: var(--f-display); font-weight: 400; font-size: var(--t-h2); line-height: 1.12; letter-spacing: -0.01em; }
.h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; line-height: 1.2; }
.lede { font-size: var(--t-lede); line-height: 1.6; color: var(--ink-2); max-width: 60ch; margin-top: 24px; }
.band .lede { color: var(--ink-2); }

/* ── Buttons & links ──────────────────────────────────────────────────── */
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 12px 20px;
  font-family: var(--f-label); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; border-radius: var(--r-s);
  transition: background 0.2s var(--ease), color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.btn .glyph { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.btn:hover .glyph { transform: translateX(3px); }
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { background: var(--ink-2); }
.btn--gold { background: var(--gold-400); color: var(--navy-900); }
.btn--gold:hover { background: var(--gold-300); }
.btn--ghost-light, .btn--ghost { border-color: var(--line-strong); color: var(--ink); }
.btn--ghost-light:hover, .btn--ghost:hover { border-color: var(--gold-400); }
.btn--secondary { border-color: var(--ink); color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--bg); }
.btn--disabled { border: 1px dashed var(--line-strong); color: var(--muted); cursor: not-allowed; min-height: 40px; }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--gold);
  text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 4px;
}
.text-link .glyph { width: 15px; height: 15px; }
.text-link:hover { text-decoration-color: currentColor; }
.text-link--light { color: var(--gold-300); }
.glyph { width: 24px; height: 24px; flex: none; }
.glyph.inline { width: 14px; height: 14px; vertical-align: -2px; }

/* ── Header & navigation ──────────────────────────────────────────────── */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--navy-900) 94%, transparent); color: #eef1f6;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s;
  --ink: #eef1f6; --muted: #9aa7bd; --line: rgba(238, 241, 246, 0.1); --line-strong: rgba(238, 241, 246, 0.22); --gold: var(--gold-400); --focus: var(--gold-300);
}
.site-header.is-scrolled { border-bottom-color: var(--band-line); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; flex: none; }
.wordmark img { width: 38px; height: auto; }
.wordmark__text { display: flex; flex-direction: column; font-family: var(--f-label); text-transform: uppercase; line-height: 1.1; }
.wordmark__text span:first-child { font-size: 0.98rem; letter-spacing: 0.3em; font-weight: 400; }
.wordmark__text span:last-child { font-size: 0.62rem; letter-spacing: 0.52em; color: var(--gold-400); font-weight: 500; }
.primary-nav { margin-left: auto; }
.primary-nav > ul { display: flex; gap: 4px; align-items: center; }
.nav-link {
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; text-decoration: none;
  font-size: 0.9rem; color: #c9d1de; border-bottom: 1px solid transparent; transition: color 0.15s;
}
.nav-link svg { width: 12px; height: 12px; transition: transform 0.2s; }
.nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-link:hover, .nav-link.is-active, .nav-link[aria-expanded="true"] { color: #fff; }
.nav-link.is-active { border-bottom-color: var(--gold-400); }
.site-header__actions { display: flex; align-items: center; gap: 12px; }
.site-header__actions .btn { min-height: 40px; padding: 10px 16px; }
.menu-btn { display: none; width: 44px; height: 44px; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; }
.menu-btn span:first-child { top: 17px; } .menu-btn span:last-child { top: 25px; left: 17px; }

.has-mega { position: static; }
.mega {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--navy-900);
  border-top: 1px solid var(--band-line); border-bottom: 1px solid var(--band-line);
  display: grid; grid-template-columns: 3fr 1fr; gap: 32px;
  padding: 28px max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); animation: drop 0.22s var(--ease);
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.mega__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.mega__item { display: flex; gap: 14px; align-items: flex-start; padding: 14px; text-decoration: none; border: 1px solid transparent; transition: border-color 0.15s, background 0.15s; }
.mega__item .glyph { color: var(--gold-400); margin-top: 2px; }
.mega__item strong { display: block; font-weight: 500; color: #fff; }
.mega__item small { display: block; color: #9aa7bd; font-size: var(--t-small); margin-top: 2px; }
.mega__item:hover, .mega__item:focus-visible { border-color: var(--band-line); background: rgba(255, 255, 255, 0.03); }
.mega__aside { border-left: 1px solid var(--band-line-soft); padding-left: 28px; display: flex; flex-direction: column; gap: 14px; }
.mega__aside a { display: inline-flex; align-items: center; gap: 8px; color: #dfe4ec; text-decoration: none; font-size: 0.92rem; }
.mega__aside a .glyph { width: 14px; height: 14px; color: var(--gold-400); }
.mega__aside a:hover { color: var(--gold-300); }

.mobile-menu { position: fixed; inset: 0; z-index: 80; background: rgba(4, 11, 22, 0.6); }
.mobile-menu__panel {
  --ink: #eef1f6; --muted: #9aa7bd; --gold: var(--gold-400); --line-strong: rgba(238, 241, 246, 0.22);
  position: absolute; inset: 0 0 0 auto; width: min(440px, 100%); background: var(--navy-900); color: var(--ink);
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 24px calc(env(safe-area-inset-bottom, 0px) + 24px);
  overflow-y: auto; display: flex; flex-direction: column; gap: 24px; animation: slide 0.28s var(--ease);
}
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.menu-close { width: 44px; height: 44px; display: grid; place-items: center; color: inherit; }
.mobile-menu__caps li a { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--band-line-soft); text-decoration: none; font-size: 1.05rem; }
.mobile-menu__caps .glyph { color: var(--gold-400); }
.mobile-menu__caps small { display: block; font-size: var(--t-small); color: #9aa7bd; }
.mobile-menu__main { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.mobile-menu__main a { display: block; padding: 12px 0; font-family: var(--f-display); font-size: 1.4rem; text-decoration: none; }
.mobile-menu__foot { margin-top: auto; }

/* ── Page transitions ─────────────────────────────────────────────────── */
main { display: block; outline: none; }
main.is-leaving { opacity: 0; transform: translateY(4px); transition: opacity 0.14s, transform 0.14s; }
main.is-entering { animation: enter 0.42s var(--ease); }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }

/* ── Sections ─────────────────────────────────────────────────────────── */
.section { padding-block: var(--s-section); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.section + .section:not(.band):not(.section--tight) { padding-top: 0; }
.section-head { margin-bottom: clamp(32px, 4vw, 56px); max-width: 760px; }
.section-head--split { max-width: none; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; }
.section-head__text { color: var(--muted); max-width: 52ch; }
.section-head .h2 + .section-head__text { margin-top: 16px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); }
.panel { border: 1px solid var(--line); background: var(--surface); padding: clamp(20px, 3vw, 32px); }
.bar-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }

/* ── Home hero ────────────────────────────────────────────────────────── */
.hero { padding-block: clamp(48px, 7vw, 104px) 0; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 70% at 78% 40%, rgba(207, 169, 104, 0.1), transparent 70%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero .display span { display: block; }
.hero .display span:last-child { font-style: italic; color: var(--gold-300); }
.hero__viz { margin: 0; position: relative; }
.hero__viz canvas { width: 100%; aspect-ratio: 1; max-height: 520px; display: block; }
.hero__viz figcaption { text-align: center; color: var(--muted); margin-top: -8px; letter-spacing: 0.12em; text-transform: uppercase; }
.hero__equation {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: clamp(40px, 5vw, 72px); padding-block: 22px; border-top: 1px solid var(--band-line);
  font-family: var(--f-label); text-transform: uppercase; letter-spacing: 0.28em; font-size: 0.8rem; color: var(--ink-2);
}
.hero__equation .plus { color: var(--gold-400); letter-spacing: 0; font-family: var(--f-mono); }

/* ── Page hero ────────────────────────────────────────────────────────── */
.page-hero { padding-block: clamp(40px, 6vw, 88px) clamp(40px, 5vw, 64px); overflow: hidden; }
.page-hero--compact { padding-bottom: clamp(40px, 5vw, 64px); }
.page-hero__inner { position: relative; }
.page-hero__field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.9; }
.page-hero__ribbon { margin-top: clamp(40px, 5vw, 64px); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--t-small); color: var(--muted); margin-bottom: 28px; }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--line-strong); }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink-2); }

.ribbon { display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); }
.ribbon li { flex: 1 1 180px; padding: 16px 20px 0 0; position: relative; }
.ribbon li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.ribbon small { display: block; font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ribbon span { display: block; margin-top: 4px; font-size: 0.95rem; color: var(--ink-2); }
.ribbon .is-current span { color: var(--gold-300); font-weight: 500; }
.ribbon .is-current::before { content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: var(--gold-400); }

/* ── Definition (GEO) ─────────────────────────────────────────────────── */
.definition__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 80px); }
.definition__text { font-family: var(--f-display); font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.55rem); line-height: 1.45; color: var(--ink); max-width: 44ch; }
.facts { margin: 32px 0 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--f-mono); font-size: var(--t-micro); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; color: var(--ink-2); }
.facts a { color: var(--gold); }
.kind { display: inline-block; font-family: var(--f-mono); font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 6px; border: 1px solid var(--line-strong); color: var(--muted); margin-left: 8px; vertical-align: 2px; }
.kind--commercial-brand { border-color: var(--gold); color: var(--gold); }

/* ── Capability cards ─────────────────────────────────────────────────── */
.cap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cap-card { position: relative; background: var(--surface); padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column; gap: 14px; transition: background 0.2s; }
.cap-card__link { position: absolute; inset: 0; z-index: 1; }
.cap-card__head { display: flex; justify-content: space-between; align-items: center; color: var(--gold); }
.cap-card__head .mono { color: var(--muted); }
.cap-card h3 { font-family: var(--f-display); font-size: 1.7rem; line-height: 1.1; }
.cap-card__brand { font-size: var(--t-small); color: var(--ink-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cap-card__brand .kind { margin: 0; }
.cap-card ul { display: grid; gap: 6px; font-size: var(--t-small); color: var(--muted); padding-top: 14px; border-top: 1px solid var(--line); }
.cap-card li::before { content: ''; display: inline-block; width: 10px; height: 1px; background: var(--gold); vertical-align: middle; margin-right: 10px; }
.cap-card__more { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-label); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; color: var(--gold); }
.cap-card__more .glyph { width: 15px; height: 15px; transition: transform 0.2s var(--ease); }
.cap-card:hover { background: var(--surface-2); }
.cap-card:hover .cap-card__more .glyph { transform: translateX(4px); }
.cap-card--tech .cap-card__head { color: var(--signal); }
.cap-card:focus-within { outline: 2px solid var(--focus); outline-offset: -2px; }

/* ── Brand tree ───────────────────────────────────────────────────────── */
.tree { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; position: relative; }
.tree > * { position: relative; }
.tree__node { grid-column: 1 / -1; justify-self: center; text-align: center; padding: 12px 28px; border: 1px solid var(--line-strong); background: var(--surface); min-width: 260px; }
.tree__node small, .tree__brand small, .tree__tech small { display: block; font-family: var(--f-mono); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 2px; }
.tree__node--parent { color: var(--ink-2); }
.tree__node--master { display: flex; align-items: center; gap: 14px; background: var(--navy-900); color: #eef1f6; border-color: var(--gold-500); font-family: var(--f-label); letter-spacing: 0.2em; text-transform: uppercase; text-align: left; }
.tree__node--master small { color: #9aa7bd; letter-spacing: 0.08em; }
.tree__node--master::after, .tree__node--parent::after { content: ''; position: absolute; left: 50%; top: 100%; height: 12px; border-left: 1px solid var(--line-strong); }
.tree__cap { display: flex; flex-direction: column; gap: 8px; padding: 18px 14px; border-top: 2px solid var(--gold-bright); background: var(--surface); text-decoration: none; transition: background 0.2s; min-height: 130px; }
.tree__cap:hover { background: var(--surface-2); }
.tree__cap .glyph { color: var(--gold); }
.tree__cap span { font-weight: 500; line-height: 1.3; }
.tree__cap small { display: none; }
.tree__brand { padding: 14px; border: 1px solid var(--line); font-size: 0.92rem; line-height: 1.3; text-decoration: none; background: transparent; }
.tree__brand--commercial { border-color: var(--gold); color: var(--ink); }
.tree__brand--commercial small { color: var(--gold); }
a.tree__brand:hover { background: var(--surface); }
.tree__brand--span { border-style: solid; border-color: var(--signal); }
.tree__brand--span small { color: var(--signal); }
.tree__tech { padding: 12px 14px; border: 1px dashed var(--signal); font-size: 0.92rem; color: var(--ink-2); }

/* ── Services ─────────────────────────────────────────────────────────── */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.svc { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.svc > h3, .svc > p, .svc a { padding-inline: 22px; }
.svc h3 { font-size: 1rem; font-weight: 500; padding-top: 22px; }
.svc p { font-size: var(--t-small); color: var(--muted); padding-bottom: 22px; margin-top: 6px; }
.svc--link a { display: block; position: relative; text-decoration: none; height: 100%; padding-block: 0; }
.svc--link a .glyph { position: absolute; top: 22px; right: 18px; width: 16px; height: 16px; color: var(--gold); transition: transform 0.2s; }
.svc--link h3 { padding-right: 26px; color: var(--ink); }
.svc--link a:hover { background: var(--surface-2); }
.svc--link a:hover .glyph { transform: translateX(3px); }
.svc--link h3 { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }

/* ── Process flow ─────────────────────────────────────────────────────── */
.legend__h { display: inline-block; width: 10px; height: 10px; background: var(--gold-bright); border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.flow { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); counter-reset: step; }
.flow__step { position: relative; padding: 28px 12px 0 0; display: flex; flex-direction: column; gap: 6px; }
.flow__step::before { content: ''; position: absolute; top: 5px; left: 0; right: 0; height: 1px; background: var(--line-strong); }
.flow__step::after { content: ''; position: absolute; top: 0; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1px solid var(--ink-2); }
.flow__step:last-child::before { right: auto; width: 20px; }
.flow__n { color: var(--muted); }
.flow__label { font-weight: 500; font-size: 0.92rem; line-height: 1.3; }
.flow__tag { display: inline-flex; align-items: center; gap: 4px; font-family: var(--f-mono); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold); }
.flow__tag .glyph { width: 12px; height: 12px; }
.flow__step.is-human::after { background: var(--gold-bright); border-color: var(--gold-bright); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold-bright) 22%, transparent); }
.flow__step.is-human .flow__label { color: var(--gold); }

/* ── Deal architecture ────────────────────────────────────────────────── */
.deal { overflow: hidden; }
.deal::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 50% 60% at 10% 100%, rgba(207, 169, 104, 0.08), transparent 70%); }
.deal__disciplines { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 28px; }
.deal__disciplines .mono { color: var(--muted); margin-right: 6px; text-transform: uppercase; letter-spacing: 0.1em; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line-strong);
  font-size: var(--t-small); border-radius: 999px; transition: border-color 0.15s, background 0.15s, color 0.15s; min-height: 36px;
}
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip--dark[aria-pressed="true"] { background: var(--gold-400); color: var(--navy-900); border-color: var(--gold-400); }
.chip__n { font-family: var(--f-mono); font-size: 0.7rem; opacity: 0.7; }
.deal__layout { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.deal__track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; counter-reset: d; }
.deal__track li { position: relative; }
.deal__track li:not(:nth-child(4n)):not(:last-child)::after { content: ''; position: absolute; top: 50%; right: -10px; width: 10px; height: 1px; background: var(--band-line); }
.deal__step {
  width: 100%; text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 16px; min-height: 108px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); transition: border-color 0.2s, background 0.2s, opacity 0.2s;
  position: relative;
}
.deal__step::before { content: ''; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 3px; background: var(--actor, transparent); }
.deal__step .mono { color: var(--muted); }
.deal__name { font-family: var(--f-display); font-size: 1.2rem; line-height: 1.15; }
.deal__actor { margin-top: auto; font-family: var(--f-mono); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--actor-text, var(--muted)); }
.deal__step:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.04); }
.deal__step.is-active { border-color: var(--gold-400); background: rgba(207, 169, 104, 0.08); }
.is-filtered .deal__step:not(.is-lit) { opacity: 0.32; }
.is-filtered .deal__step.is-lit { border-color: var(--band-signal); }
.actor-analysis { --actor: #6f7f99; --actor-text: #aab5c7; }
.actor-ai-assist { --actor: var(--band-signal); --actor-text: var(--band-signal); }
.actor-human { --actor: var(--gold-400); --actor-text: var(--gold-300); }
.actor-authorized { --actor: #7cc3a1; --actor-text: #9fd6bb; }
.swatch { display: inline-block; width: 12px; height: 12px; background: var(--actor); vertical-align: -1px; margin-right: 8px; }
.deal__panel { border: 1px solid var(--band-line); padding: 28px; background: rgba(255, 255, 255, 0.025); min-height: 280px; position: sticky; top: 96px; }
.deal__panel .mono { color: var(--muted); }
.deal__panel h3 { font-family: var(--f-display); font-size: 2rem; margin: 10px 0 12px; }
.deal__panel p { color: var(--ink-2); }
.deal__who { font-size: var(--t-small); color: var(--actor-text) !important; margin-bottom: 14px; font-weight: 500; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tag-list li, .tag { font-family: var(--f-mono); font-size: 0.68rem; padding: 3px 8px; border: 1px solid var(--line-strong); color: var(--ink-2); display: inline-block; }
.deal__legend { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 28px; font-size: var(--t-small); color: var(--muted); }

/* ── Compliance ───────────────────────────────────────────────────────── */
.compliance__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.compliance__grid > div > p { color: var(--muted); margin-top: 18px; max-width: 52ch; }
.seg { display: inline-grid; grid-auto-flow: column; gap: 1px; background: var(--line-strong); border: 1px solid var(--line-strong); margin: 28px 0 12px; max-width: 100%; }
.seg__btn { padding: 10px 14px; font-size: var(--t-small); min-height: 42px; text-align: left; background: var(--bg); }
.band .seg__btn, .dash .seg__btn { background: var(--band-bg); }
.compliance .seg { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seg__btn[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.seg__btn small { display: block; font-size: 0.7rem; opacity: 0.7; }
.seg--dark .seg__btn[aria-selected="true"] { background: var(--gold-400); color: var(--navy-900); }
.chain { border-left: 1px solid var(--gold-bright); }
.chain li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 14px 0 14px 24px; border-bottom: 1px solid var(--line); position: relative; animation: enter 0.35s var(--ease) both; }
.chain li:nth-child(n) { animation-delay: calc(var(--i, 0) * 30ms); }
.chain li::before { content: ''; position: absolute; left: -4px; top: 21px; width: 7px; height: 7px; background: var(--bg); border: 1px solid var(--gold-bright); transform: rotate(45deg); }
.chain__k { color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; padding-top: 2px; }
.chain__v { color: var(--ink); }
.chain__note { display: block !important; color: var(--gold) !important; font-size: var(--t-small); border-bottom: 0 !important; }
.chain__note::before { display: none; }

.notice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; padding: 24px 28px; border: 1px solid var(--line); border-left: 3px solid var(--gold-bright); background: var(--surface); }
.notice > .glyph { color: var(--gold); }
.notice__t { font-family: var(--f-label); text-transform: uppercase; letter-spacing: 0.18em; font-size: var(--t-micro); color: var(--gold); margin-bottom: 8px; }
.notice p:not(.notice__t) { color: var(--ink-2); max-width: 90ch; }
.notice .text-link { margin-top: 12px; font-size: var(--t-small); }
.note-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; border: 1px dashed var(--signal); color: var(--ink-2); }
.note-card .glyph { color: var(--signal); }
.note-card a { color: var(--signal); }

/* ── Brand endorsement ────────────────────────────────────────────────── */
.endorse { border: 1px solid var(--line); background: var(--surface); }
.endorse__media { aspect-ratio: 2056 / 765; overflow: hidden; border-bottom: 1px solid var(--line); }
.endorse__media img { width: 100%; height: 100%; object-fit: cover; }
.endorse__body { padding: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 48px; align-items: start; }
.endorse__body > .eyebrow { grid-column: 1 / -1; margin: 0; }
.endorse__body > .check-list { grid-column: 2; grid-row: 2 / span 3; }
.endorse__body > .btn { justify-self: start; }
.endorse__brand { display: flex; align-items: center; gap: 18px; }
.endorse__brand img { width: 84px; height: 84px; border-radius: 50%; }
.endorse__tag { font-family: var(--f-label); text-transform: uppercase; letter-spacing: 0.22em; font-size: var(--t-micro); color: var(--muted); margin-top: 6px; }
.endorse__rel { font-size: var(--t-small); color: var(--muted); }
.check-list { display: grid; gap: 10px; }
.check-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; color: var(--ink-2); }
.check-list .glyph { width: 18px; height: 18px; color: var(--gold); margin-top: 3px; }

/* ── Use cases ────────────────────────────────────────────────────────── */
.uc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.uc { border-top: 1px solid var(--ink); padding-top: 20px; }
.uc h3 { font-family: var(--f-display); font-size: 1.45rem; line-height: 1.2; margin-bottom: 10px; }
.uc p { color: var(--muted); }
.mini-flow { display: grid; gap: 0; margin-top: 8px; }
.mini-flow li { padding: 10px 0 10px 22px; border-left: 1px solid var(--signal); position: relative; font-size: var(--t-small); }
.mini-flow li::before { content: ''; position: absolute; left: -4px; top: 16px; width: 7px; height: 7px; background: var(--signal); border-radius: 50%; }
.mini-flow li:last-child { font-weight: 500; color: var(--signal); }

/* ── Opportunities ────────────────────────────────────────────────────── */
.demo-badge {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 0.68rem;
  letter-spacing: 0.04em; padding: 4px 9px; border: 1px dashed var(--line-strong); color: var(--muted); white-space: nowrap;
}
.demo-badge__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--warn); flex: none; }
.band .demo-badge__dot { background: #e0a94a; }
.demo-banner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 16px 20px; border: 1px dashed var(--warn); background: color-mix(in srgb, var(--warn) 7%, var(--surface)); margin-bottom: 28px; font-size: var(--t-small); color: var(--ink-2); }
.demo-banner .glyph { color: var(--warn); }
.filters { display: grid; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filters__row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; }
.result-count { color: var(--muted); margin: 18px 0; }
.opp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.opp { background: var(--surface); border: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; gap: 14px; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease); }
.opp:hover { border-color: var(--line-strong); box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.opp__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.opp__type { font-family: var(--f-label); text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.7rem; color: var(--gold); font-weight: 500; }
.opp__id { color: var(--muted); }
.opp__title { font-family: var(--f-display); font-size: 1.35rem; line-height: 1.2; }
.opp__data { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.opp__data--3 { grid-template-columns: repeat(3, 1fr); }
.opp__data > div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.opp__data > div:nth-child(odd) { padding-right: 12px; }
.opp__data dt { font-family: var(--f-mono); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.opp__data dd { margin: 3px 0 0; font-size: var(--t-small); }
.opp__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.opp__foot .text-link { font-size: var(--t-small); }
.status { font-size: var(--t-small); }
.risk { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-small); }
.risk__bars { display: inline-flex; gap: 2px; align-items: flex-end; }
.risk__bars i { width: 4px; height: 12px; background: var(--line-strong); }
.risk__bars i:nth-child(1) { height: 6px; } .risk__bars i:nth-child(2) { height: 8px; } .risk__bars i:nth-child(3) { height: 10px; }
.risk--1 .on { background: var(--risk-1); } .risk--2 .on { background: var(--risk-2); } .risk--3 .on { background: var(--risk-3); } .risk--4 .on { background: var(--risk-4); }
.empty { grid-column: 1 / -1; padding: 48px; text-align: center; border: 1px dashed var(--line-strong); color: var(--muted); display: grid; gap: 12px; justify-items: center; }

.drawer, .inspector { position: fixed; inset: 0; z-index: 90; }
.drawer__scrim, .inspector__scrim { position: absolute; inset: 0; background: rgba(4, 11, 22, 0.55); animation: fade 0.2s; }
@keyframes fade { from { opacity: 0; } }
.drawer__panel, .inspector__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--surface); color: var(--ink);
  padding: calc(env(safe-area-inset-top, 0px) + 16px) clamp(20px, 3vw, 32px) calc(env(safe-area-inset-bottom, 0px) + 32px);
  overflow-y: auto; display: flex; flex-direction: column; gap: 16px; animation: slide 0.28s var(--ease); border-left: 1px solid var(--line);
}
.inspector__head { display: flex; justify-content: space-between; align-items: center; }
.progress { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(6, auto); grid-auto-flow: column; gap: 4px 16px; font-size: var(--t-small); }
.progress li { padding: 6px 0 6px 18px; position: relative; color: var(--muted); }
.progress li::before { content: ''; position: absolute; left: 0; top: 13px; width: 8px; height: 8px; border: 1px solid var(--line-strong); border-radius: 50%; }
.progress li.done { color: var(--ink-2); } .progress li.done::before { background: var(--ink-2); border-color: var(--ink-2); }
.progress li.now { color: var(--gold); font-weight: 500; } .progress li.now::before { background: var(--gold-bright); border-color: var(--gold-bright); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-bright) 25%, transparent); }
.drawer .btn { align-self: flex-start; }

/* ── Forms ────────────────────────────────────────────────────────────── */
.field { display: grid; gap: 6px; font-size: var(--t-small); }
.field > span { color: var(--ink-2); font-weight: 500; }
.field em { font-style: normal; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-s); padding: 11px 12px; min-height: 46px; width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.field--inline { min-width: 160px; }
.field--grow { flex: 1 1 240px; }
.field--full { grid-column: 1 / -1; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--bad); }
.check { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: var(--t-small); color: var(--ink-2); align-items: start; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--gold-500); }
.check.is-invalid span { color: var(--bad); }
.check a { color: var(--gold); }
.contact { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.form { background: var(--surface); border: 1px solid var(--line); padding: clamp(20px, 3.5vw, 40px); }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form__error { margin-top: 18px; color: var(--bad); font-size: var(--t-small); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.form-done { border: 1px solid var(--gold); background: var(--surface); padding: clamp(24px, 4vw, 48px); display: grid; gap: 16px; justify-items: start; outline: none; }
.form-done .mono { color: var(--muted); }
.steps { counter-reset: s; display: grid; gap: 20px; margin-bottom: 24px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 4px 12px; }
.steps li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; font-family: var(--f-mono); font-size: var(--t-micro); color: var(--gold); padding-top: 4px; }
.steps strong { font-weight: 500; } .steps span { color: var(--muted); font-size: var(--t-small); }

/* ── Dashboard ────────────────────────────────────────────────────────── */
.dash { border: 1px solid var(--band-line); background: rgba(4, 11, 22, 0.55); backdrop-filter: blur(2px); }
.dash__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--band-line-soft); }
.dash__bar .seg { margin: 0; }
.dash__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.7fr) minmax(0, 1fr); }
.dash__grid > * { padding: 20px; }
.dash__grid > * + * { border-left: 1px solid var(--band-line-soft); }
.dash__metrics { display: grid; grid-template-columns: 1fr; gap: 0; align-content: start; }
.metric { padding: 14px 0; border-bottom: 1px solid var(--line); }
.metric:first-child { padding-top: 0; }
.metric__l { font-family: var(--f-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.metric__v { font-family: var(--f-display); font-size: 2rem; line-height: 1.1; margin-top: 4px; }
.metric__v span { font-family: var(--f-text); font-size: 0.85rem; color: var(--muted); margin-left: 2px; }
.metric__n { font-size: var(--t-micro); color: var(--muted); margin-top: 2px; }
.metric--warn .metric__v { color: #e0a94a; }
.metric--bad .metric__v { color: #ef7b72; }
.dash__chart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.dash__chart-head .mono { color: var(--muted); }
.slider { display: flex; align-items: center; gap: 10px; font-size: var(--t-small); color: var(--ink-2); }
.slider output { font-family: var(--f-mono); color: var(--gold-300); min-width: 3.4em; text-align: right; }
.slider input { accent-color: var(--gold-400); width: 150px; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.c-grid line { stroke: var(--band-line-soft); }
.c-grid text, .c-x text { fill: var(--muted); font: 10px var(--f-mono); }
.c-zero { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 3; }
.c-proj-bg { fill: rgba(207, 169, 104, 0.05); }
.c-proj-label { fill: var(--gold-300); font: 10px var(--f-mono); text-transform: uppercase; letter-spacing: 0.08em; }
.c-area { fill: var(--band-signal); fill-opacity: 0.12; }
.c-line { fill: none; stroke: var(--band-signal); stroke-width: 2; stroke-linejoin: round; }
.c-scen { fill: none; stroke: var(--gold-400); stroke-width: 2; stroke-dasharray: 5 4; }
.c-base { fill: none; stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 2 3; }
.c-dot { fill: var(--band-signal); } .c-dot--scen { fill: var(--gold-400); }
.c-end { fill: var(--gold-300); font: 500 11px var(--f-mono); }
.c-legend { display: flex; gap: 18px; font-size: var(--t-micro); color: var(--muted); margin-top: 8px; }
.c-legend i { display: inline-block; width: 16px; height: 0; border-top: 2px solid; vertical-align: middle; margin-right: 6px; }
.k-line { border-color: var(--band-signal) !important; } .k-scen { border-color: var(--gold-400) !important; border-top-style: dashed !important; } .k-base { border-color: var(--muted) !important; border-top-style: dotted !important; }
.dash__signals > .mono { color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.signals li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.signals strong { display: block; font-weight: 500; font-size: 0.92rem; }
.signals span { font-size: var(--t-micro); color: var(--muted); }
.signals .risk { flex: none; font-size: var(--t-micro); }
.dash__signals .fine { margin-top: 12px; }

/* ── Twin agent ───────────────────────────────────────────────────────── */
.twin__arch { display: flex; align-items: stretch; margin-bottom: 40px; overflow-x: auto; padding-bottom: 4px; }
.twin__node { flex: 1 1 0; min-width: 120px; padding: 16px; border: 1px solid var(--line); background: var(--surface); font-weight: 500; font-size: 0.92rem; display: flex; flex-direction: column; gap: 6px; }
.twin__node .mono { color: var(--muted); font-weight: 400; }
.twin__node.is-ai { border-color: var(--signal); color: var(--signal); }
.twin__node.is-human { border-color: var(--gold-bright); background: color-mix(in srgb, var(--gold-bright) 12%, var(--surface)); color: var(--gold); }
.twin__edge { flex: 0 0 18px; align-self: center; height: 1px; background: var(--line-strong); }
.twin__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 24px; }
.bound { display: grid; gap: 0; }
.bound li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.bound .glyph { width: 18px; height: 18px; margin-top: 2px; }
.bound--can .glyph { color: var(--ok); }
.bound--cannot li { color: var(--ink-2); }
.bound--cannot .glyph { color: var(--bad); }
.twin__console { --ink: var(--band-ink); --muted: var(--band-muted); --line: var(--band-line-soft); --line-strong: rgba(238, 241, 246, 0.22); background: var(--band-bg); color: var(--ink); padding: 20px; border: 1px solid var(--band-line); }
.twin__console-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.twin__console-head .mono { color: var(--band-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.task { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--band-line-soft); font-size: var(--t-small); }
.task small { display: block; color: var(--gold-300); font-size: var(--t-micro); }
.task__s { font-family: var(--f-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.06em; padding-top: 2px; }
.task--done .task__s { color: #7cc3a1; }
.task--running .task__s { color: var(--band-signal); animation: blink 1.4s infinite; }
.task--queued .task__s { color: var(--band-muted); }
.task--human .task__s { color: var(--gold-300); }
@keyframes blink { 50% { opacity: 0.35; } }
.twin__gate { margin-top: 16px; padding: 14px; border: 1px dashed var(--gold-500); }
.twin__gate .mono { color: var(--gold-300); text-transform: uppercase; letter-spacing: 0.08em; }
.twin__gate-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }

/* ── Intelligence teaser ──────────────────────────────────────────────── */
.teaser { overflow: hidden; }
.teaser__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.teaser__grid > div > p:not(.eyebrow) { color: var(--ink-2); margin-top: 18px; max-width: 56ch; }
.teaser__stack { display: grid; gap: 6px; }
.teaser__stack li { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 1px solid var(--line); background: rgba(4, 11, 22, 0.6); font-weight: 500; }
.teaser__stack li .mono { color: var(--band-signal); }
.teaser__stack li.is-human { border-color: var(--gold-400); color: var(--gold-300); }
.teaser__stack em { margin-left: auto; font-style: normal; font-family: var(--f-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.06em; display: inline-flex; gap: 4px; align-items: center; }
.teaser__stack em .glyph { width: 13px; height: 13px; }
.teaser__stack li:nth-child(3) { border-color: var(--band-signal); }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(24px, 5vw, 80px); }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 1.05rem; font-weight: 500; }
.faq__icon { width: 14px; height: 14px; position: relative; flex: none; }
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--gold); transition: transform 0.2s; }
.faq__icon::after { transform: rotate(90deg); }
.faq details[open] .faq__icon::after { transform: rotate(0); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 70ch; }

/* ── Related, CTA ─────────────────────────────────────────────────────── */
.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.related__item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: border-color 0.2s; }
.related__item > .glyph:first-child { color: var(--gold); }
.related__item > .glyph:last-child { width: 16px; height: 16px; color: var(--muted); }
.related__item strong { display: block; font-weight: 500; }
.related__item small { color: var(--muted); font-size: var(--t-small); overflow-wrap: anywhere; }
.related__item:hover { border-color: var(--gold); }
.cta { padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--band-line); }
.cta__inner { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 24px 48px; align-items: end; }
.cta p { color: var(--ink-2); margin-top: 14px; max-width: 56ch; }
.cta .btn-row { margin-top: 0; }

/* ── Brand pages ──────────────────────────────────────────────────────── */
.brand-hero { position: relative; overflow: hidden; background: var(--navy-900); color: #eef1f6; --ink: #eef1f6; --ink-2: #d5dbe5; --muted: #b4bfcf; --line-strong: rgba(238, 241, 246, 0.3); --gold: var(--gold-400); --focus: var(--gold-300); padding-block: clamp(32px, 5vw, 72px) clamp(40px, 6vw, 88px); }
.brand-hero__media { position: absolute; inset: 0 0 0 56%; z-index: 0; }
.brand-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 60%; opacity: 0.75; }
.brand-hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy-900) 0%, rgba(8, 22, 40, 0.55) 35%, rgba(8, 22, 40, 0.1)); }
.brand-hero--sivarSeguros { background: #0b2150; }
.brand-hero--sivarSeguros .brand-hero__media::after { background: linear-gradient(90deg, #0b2150 0%, rgba(11, 33, 80, 0.55) 35%, rgba(11, 33, 80, 0.1)); }
@media (max-width: 1023px) { .brand-hero__media { inset: 0; } .brand-hero__media img { opacity: 0.25; } }
.brand-hero__inner { position: relative; z-index: 1; }
.brand-hero__id { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.brand-hero__id img { width: 96px; height: 96px; border-radius: 50%; }
.brand-hero__tag { font-family: var(--f-label); text-transform: uppercase; letter-spacing: 0.3em; font-size: 0.8rem; color: var(--gold-300); margin-top: 10px; }
.brand-hero--sivarSeguros .brand-hero__tag { color: #7fc8f0; }
.brand-hero .eyebrow { color: var(--gold-300); }
.offer { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.offer li { padding: 20px 16px 20px 0; display: grid; gap: 4px; }
.offer li + li { padding-left: 16px; border-left: 1px solid var(--line); }
.offer strong { font-family: var(--f-display); font-weight: 400; font-size: 1.3rem; }
.offer span { color: var(--muted); font-size: var(--t-small); }
.modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.modules a, .modules li > div { display: grid; gap: 6px; padding: 20px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; height: 100%; position: relative; }
.modules a:hover { border-color: var(--gold); }
.modules a .glyph { position: absolute; right: 16px; top: 20px; width: 16px; height: 16px; color: var(--gold); }
.modules strong { font-weight: 500; }
.modules span { color: var(--muted); font-size: var(--t-small); }
.modules .is-planned > div { border-style: dashed; background: transparent; }
.modules em { font-style: normal; color: var(--muted); }

/* Properties */
.prop-search { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: end; padding: 20px; background: var(--surface); border: 1px solid var(--line); }
.prop-search + .fine { margin: 14px 0 24px; }
.prop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.prop { border: 1px solid var(--line); background: var(--surface); }
.prop__img { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); border-bottom: 1px dashed var(--line-strong); display: grid; place-items: center; overflow: hidden; }
.prop__img svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.prop__img path { fill: color-mix(in srgb, var(--gold-bright) 16%, transparent); }
.prop__img span { position: relative; font-family: var(--f-mono); font-size: var(--t-micro); color: var(--muted); }
.prop__body { padding: 16px; display: grid; gap: 8px; }
.prop__body .mono { color: var(--warn); }
.prop__body h3 { font-family: var(--f-display); font-size: 1.2rem; }
.prop--map { display: grid; align-content: center; gap: 8px; padding: 20px; border-style: dashed; color: var(--muted); font-size: var(--t-small); background: repeating-linear-gradient(45deg, transparent 0 10px, color-mix(in srgb, var(--line) 50%, transparent) 10px 11px); }

/* ROI */
.roi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); padding: clamp(20px, 3vw, 36px); border: 1px solid var(--line); background: var(--surface); }
.roi__inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-content: start; }
.roi__metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.roi__metrics .metric:first-child, .roi__metrics .metric:nth-child(2) { padding-top: 0; }
.roi .metric--warn .metric__v { color: var(--warn); }
.roi .metric--bad .metric__v { color: var(--bad); }
.roi__split { margin: 20px 0 12px; }
.roi__bar { height: 10px; background: var(--ok); display: flex; }
.roi__bar span { background: var(--ink-2); display: block; height: 100%; }
.roi__legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 8px; font-size: var(--t-micro); color: var(--muted); }
.roi__legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; }
.k-ds { background: var(--ink-2); } .k-cf { background: var(--ok); }

/* About */
.vision { max-width: 980px; }
.vision__q { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.4rem); line-height: 1.12; letter-spacing: -0.01em; }
.vision__es { font-family: var(--f-label); text-transform: uppercase; letter-spacing: 0.26em; font-size: var(--t-micro); color: var(--gold); margin-top: 24px; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.pillars li { padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pillars h3 { font-family: var(--f-label); text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.85rem; color: var(--gold); margin-bottom: 8px; font-weight: 500; }
.pillars p { color: var(--ink-2); }

/* Intelligence hub */
.insight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.insight { border-top: 1px solid var(--ink); padding: 18px 0 8px; display: grid; gap: 12px; align-content: start; }
.insight .mono { color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.insight h3 { font-family: var(--f-display); font-size: 1.35rem; line-height: 1.2; }
.insight .text-link { font-size: var(--t-small); }
.insight .text-link .glyph { width: 16px; height: 16px; }
.seg + .demo-badge { margin: 0; }

/* Sitemap */
.smap { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px 32px; }
.smap__group h3 { font-family: var(--f-label); text-transform: uppercase; letter-spacing: 0.2em; font-size: var(--t-micro); color: var(--gold); padding-bottom: 10px; border-bottom: 1px solid var(--ink); font-weight: 500; }
.smap__group li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.smap__group a { display: grid; gap: 2px; text-decoration: none; min-width: 0; }
.smap__group a .mono { color: var(--ink); overflow-wrap: anywhere; }
.smap__group a span:last-child { font-size: var(--t-small); color: var(--muted); }
.smap__group a:hover .mono { color: var(--gold); }
.smap__group li > .mono { color: var(--muted); overflow-wrap: anywhere; }
.st { font-style: normal; font-family: var(--f-mono); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 6px; border: 1px solid; flex: none; }
.st--built { color: var(--ok); } .st--draft { color: var(--warn); } .st--planned { color: var(--muted); border-style: dashed; }
.decisions li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dk { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.06em; padding-top: 3px; }
.dk--hecho { color: var(--ok); } .dk--supuesto { color: var(--signal); } .dk--decisión { color: var(--gold); } .dk--open-decision { color: var(--bad); }

.prose { max-width: 72ch; }
.prose h2 { font-family: var(--f-display); font-size: 1.5rem; margin: 32px 0 10px; }
.prose p { color: var(--ink-2); margin-bottom: 12px; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { padding-block: clamp(48px, 6vw, 80px) calc(env(safe-area-inset-bottom, 0px) + 72px); }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 48px; padding-bottom: 40px; border-bottom: 1px solid var(--band-line); }
.site-footer__brand { display: grid; gap: 14px; align-content: start; }
.site-footer__brand p { font-family: var(--f-display); font-size: 1.15rem; }
.site-footer__brand .fine { font-family: var(--f-label); text-transform: uppercase; letter-spacing: 0.2em; }
.site-footer__cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.site-footer__cols ul { display: grid; gap: 8px; font-size: var(--t-small); }
.site-footer__cols a { text-decoration: none; color: var(--ink-2); }
.site-footer__cols a:hover { color: var(--gold-300); }
.site-footer__bottom { padding-top: 28px; display: grid; gap: 10px; }
.site-footer__bottom strong { font-weight: 500; }
.site-footer__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer__meta a, .site-footer__meta button { color: var(--gold-300); text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }

/* Prototype pill & inspector */
.proto-pill {
  position: fixed; right: 16px; bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); z-index: 40;
  display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 12px; background: var(--navy-900); color: #dfe4ec;
  border: 1px solid var(--band-line); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6); max-width: calc(100% - 32px);
}
.proto-pill > .mono:first-child { color: #e0a94a; text-transform: uppercase; letter-spacing: 0.1em; }
.proto-pill__path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 30ch; }
.proto-pill button { font-family: var(--f-label); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.68rem; padding: 8px 10px; background: rgba(255, 255, 255, 0.06); min-height: 32px; }
.proto-pill button:hover { background: var(--gold-400); color: var(--navy-900); }
.insp { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.insp > div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.insp dt { font-size: var(--t-micro); color: var(--muted); display: flex; justify-content: space-between; font-weight: 500; }
.insp dd { margin: 4px 0 0; font-size: var(--t-small); overflow-wrap: anywhere; }
.insp .tag { margin: 2px 4px 2px 0; }
.outline { display: grid; gap: 2px; font-size: var(--t-small); }
.outline li { display: flex; gap: 8px; }
.outline .mono { color: var(--gold); flex: none; width: 22px; }
.outline .lvl-h2 { padding-left: 14px; } .outline .lvl-h3 { padding-left: 28px; color: var(--muted); }
.inspector pre { background: var(--surface-2); border: 1px solid var(--line); padding: 14px; font: 11px/1.5 var(--f-mono); overflow: auto; max-height: 40vh; margin: 0; white-space: pre; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1140px) {
  .primary-nav { display: none; }
  .menu-btn { display: block; }
  .site-header__actions { margin-left: auto; }
  .dash__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dash__chart { grid-column: 1 / -1; grid-row: 1; border-left: 0 !important; border-bottom: 1px solid var(--band-line-soft); }
  .dash__metrics { grid-template-columns: 1fr 1fr; gap: 0 20px; border-left: 0 !important; }
  .dash__metrics .metric:nth-child(2) { padding-top: 0; }
  .twin__grid { grid-template-columns: 1fr 1fr; }
  .twin__console { grid-column: 1 / -1; }
  .prop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__top { grid-template-columns: 1fr; }
}
@media (max-width: 1023px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__viz canvas { max-height: 400px; max-width: 460px; margin-inline: auto; }
  .cap-grid, .opp-grid, .insight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deal__layout { grid-template-columns: 1fr; }
  .deal__panel { position: static; min-height: 0; }
  .deal__track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .deal__track li::after { display: none; }
  .compliance__grid, .teaser__grid, .faq__grid, .definition__grid, .contact, .roi { grid-template-columns: 1fr; }
  .endorse__body { grid-template-columns: 1fr; }
  .endorse__body > .check-list { grid-column: auto; grid-row: auto; }
  .uc-grid, .pillars, .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .offer li:nth-child(4) { padding-left: 0; border-left: 0; }
  .prop-search { grid-template-columns: 1fr 1fr; }
  .section-head--split { grid-template-columns: 1fr; }
  /* Tree → two columns: capability | who delivers it */
  .tree { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 12px; }
  .tree > * { grid-column: auto !important; }
  .tree__node { grid-column: 1 / -1 !important; }
  .tree__cap { min-height: 0; flex-direction: row; align-items: center; padding: 12px; }
  .tree__cap small { display: none; }
  .tree > :nth-child(3) { grid-row: 3; grid-column: 1 !important; } .tree > :nth-child(4) { grid-row: 4; grid-column: 1 !important; }
  .tree > :nth-child(5) { grid-row: 5; grid-column: 1 !important; } .tree > :nth-child(6) { grid-row: 6; grid-column: 1 !important; }
  .tree > :nth-child(7) { grid-row: 7; grid-column: 1 !important; } .tree > :nth-child(8) { grid-row: 8; grid-column: 1 !important; }
  .tree > :nth-child(9) { grid-row: 3; grid-column: 2 !important; } .tree > :nth-child(10) { grid-row: 4; grid-column: 2 !important; }
  .tree > :nth-child(11) { grid-row: 5; grid-column: 2 !important; } .tree > :nth-child(12) { grid-row: 6; grid-column: 2 !important; }
  .tree > :nth-child(13) { grid-row: 7 / span 2; grid-column: 2 !important; display: flex; flex-direction: column; justify-content: center; }
  .tree > :nth-child(14) { grid-row: 9; grid-column: 1 / -1 !important; }
  /* Process flows become vertical */
  .flow { grid-template-columns: 1fr; }
  .flow__step { padding: 0 0 22px 32px; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
  .flow__step::before { top: 11px; bottom: 0; left: 5px; right: auto; width: 1px; height: auto; }
  .flow__step:last-child::before { display: none; }
  .flow__step::after { top: 2px; }
}
@media (max-width: 640px) {
  .site-header__actions .btn { display: none; }
  .site-header__inner { height: 64px; }
  .cap-grid, .opp-grid, .insight-grid, .uc-grid, .pillars, .modules, .two-col, .prop-grid, .twin__grid, .form__grid, .roi__inputs { grid-template-columns: 1fr; }
  .deal__track { grid-template-columns: 1fr; gap: 0; }
  .deal__track li { border-left: 1px solid var(--band-line); padding: 0 0 8px 16px; }
  .deal__track li::before { content: ''; position: absolute; left: -4px; top: 18px; width: 7px; height: 7px; border-radius: 50%; background: var(--actor, var(--band-muted)); }
  .deal__track li:has(.actor-human)::before { background: var(--gold-400); }
  .deal__step { min-height: 0; flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; padding: 12px 14px; }
  .deal__actor { margin-left: auto; margin-top: 0; }
  .dash__grid, .dash__metrics { grid-template-columns: 1fr; }
  .dash__metrics .metric:nth-child(2) { padding-top: 14px; }
  .dash__grid > * { padding: 16px; }
  .dash__grid > * + * { border-left: 0; border-top: 1px solid var(--band-line-soft); }
  .slider input { width: 100%; }
  .slider { width: 100%; }
  .offer { grid-template-columns: 1fr 1fr; }
  .offer li { padding-left: 0 !important; border-left: 0 !important; border-bottom: 1px solid var(--line); }
  .prop-search { grid-template-columns: 1fr; }
  .facts > div, .chain li, .decisions li { grid-template-columns: 1fr; gap: 4px; }
  .ribbon li { flex-basis: 50%; padding-bottom: 12px; }
  .ribbon li:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero__equation { justify-content: flex-start; gap: 6px 10px; letter-spacing: 0.18em; font-size: 0.72rem; }
  .cta__inner { grid-template-columns: 1fr; }
  .seg { display: grid; grid-auto-flow: row; grid-template-columns: 1fr 1fr; width: 100%; }
  .dash__bar .seg { grid-template-columns: repeat(3, 1fr); }
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
  .task { grid-template-columns: 1fr; gap: 2px; }
  .progress { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .proto-pill__path { display: none; }
  .proto-pill { right: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); padding: 4px 4px 4px 10px; }
  .twin__arch { flex-direction: column; overflow: visible; }
  .twin__edge { flex-basis: 12px; width: 1px; height: 12px; }
  .twin__node { min-width: 0; flex-direction: row; align-items: baseline; }
  .endorse__brand img { width: 64px; height: 64px; }
  .filters__row .field--inline { flex: 1 1 140px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ── Language switch ──────────────────────────────────────────────────── */
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 10px; text-decoration: none;
  font-family: var(--f-label); font-size: 0.74rem; letter-spacing: 0.14em; color: #c9d1de;
  border: 1px solid transparent; border-radius: var(--r-s); transition: border-color 0.15s, color 0.15s;
}
.lang-switch .glyph { width: 16px; height: 16px; color: var(--gold-400); }
.lang-switch__on { color: #fff; }
.lang-switch__sep { opacity: 0.4; }
.lang-switch__to { color: var(--gold-300); }
.lang-switch:hover { border-color: var(--band-line); color: #fff; }
.lang-switch--footer, .lang-switch--menu { align-self: flex-start; border-color: var(--band-line); margin-top: 4px; }
.mobile-menu__foot { display: grid; gap: 14px; }
.mobile-menu__foot p { font-size: var(--t-micro); color: #9aa7bd; }
@media (max-width: 1140px) { .site-header__actions .lang-switch:not(.lang-switch--menu) .glyph { display: none; } }
