/* ============================================================
   sovereign.css — /sovereign-ai (and /vi/sovereign-ai).
   Tokens come from warm-owner.css; the dark sections take the light text
   tokens from its ".hero, .panel-dark, … .sov-hero, .sov-dark" rule.
   ============================================================ */

.sov-head { max-width: 66ch; margin-bottom: clamp(26px, 4vw, 40px); }
.sov-head .section-title { margin-top: 16px; }
.sov-head .lead { margin-top: 14px; }
.sov-tint { background: var(--surface); border-block: 1px solid var(--hairline); }
.sov-two { align-items: start; }
.sov-two .section-title { margin-top: 16px; }
.sov-two .lead { margin-top: 14px; }

/* ---- hero ---- */
.sov-hero { background: var(--ink-navy); color: var(--tx-inv); padding-block: clamp(48px, 7vw, 92px) clamp(44px, 6vw, 80px); }
.sov-hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.sov-hero .eyebrow, .sov-dark .eyebrow { color: var(--brass); }
.sov-hero .eyebrow::before, .sov-dark .eyebrow::before { background: var(--brass); }
.sov-hero .display { font-size: clamp(38px, 5.2vw, 70px); line-height: 1.04; margin-top: 20px; max-width: 13ch; color: var(--tx-hi); }
.sov-hero .lead { margin-top: 22px; max-width: 54ch; color: var(--tx-mid); }
.sov-hero .hero-ctas { margin-top: 30px; }
.sov-hero .cta-sub { color: var(--tx-dim); max-width: 52ch; margin-top: 16px; }
.btn-line { border-color: rgba(196,165,116,.5); color: var(--tx-hi); background: transparent; }
.btn-line:hover { border-color: var(--brass); background: rgba(196,165,116,.12); }
.sov-hero .btn { white-space: normal; text-align: center; }
@media (max-width: 900px) { .sov-hero-grid { grid-template-columns: 1fr; } .sov-perimeter { max-width: 460px; margin-inline: auto; width: 100%; } }

/* ---- hero diagram: the perimeter ---- */
.sov-perimeter svg { width: 100%; height: auto; display: block; overflow: visible; }
.pm-ring { fill: rgba(244,239,228,.03); stroke: var(--brass); stroke-width: 1.5; stroke-dasharray: 7 7; }
.pm-cap { fill: var(--brass); font: 600 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.pm-node rect { fill: rgba(244,239,228,.06); stroke: rgba(244,239,228,.30); stroke-width: 1; }
.pm-node text { fill: var(--tx-hi); font: 600 14px var(--font); }
.pm-wire { fill: none; stroke: var(--gr-hi); stroke-width: 1.5; stroke-dasharray: 3 7; stroke-linecap: round; }
.pm-box rect { fill: rgba(56,182,124,.10); stroke: var(--gr-hi); stroke-width: 1.5; }
.pm-box .pm-slot { fill: rgba(244,239,228,.12); stroke: none; }
.pm-box text { fill: var(--tx-hi); font: 600 13px var(--mono); }
.pm-led { fill: var(--gr-hi); }
.pm-out { fill: none; stroke: var(--brass); stroke-width: 1.5; stroke-dasharray: 3 7; stroke-linecap: round; }
.pm-arrow { fill: none; stroke: var(--brass); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pm-gap { fill: var(--ink-navy); }
.pm-gate circle { fill: var(--ink-navy); stroke: var(--brass); stroke-width: 2; }
.pm-gate path { fill: none; stroke: var(--brass); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.pm-note { fill: var(--tx-dim); font: 500 12.5px var(--font); }
@keyframes pm-march { to { stroke-dashoffset: -140; } }
@keyframes pm-flow { to { stroke-dashoffset: -20; } }
@keyframes pm-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
/* Every loop stops within five seconds (WCAG 2.2.2: no pause control needed); the drawing then rests as drawn. */
.pm-ring { animation: pm-march 40s linear .125 forwards; }
.pm-wire, .pm-out { animation: pm-flow 1.8s linear 2; }
.pm-led { animation: pm-blink 2.6s ease-in-out 1; }
.pm-led-b { animation-delay: 1.3s; }

/* ---- what sovereign means ---- */
.sov-three .card { height: 100%; }
.sov-callout { margin-top: clamp(26px, 4vw, 40px); max-width: 30ch; }

/* ---- value rows ---- */
.sov-values .frow { grid-template-columns: 210px 1fr; }
.sov-values .frow:last-child { border-bottom: 1px solid var(--hairline); }
.sov-values .frow h3 { font-family: var(--serif); font-weight: 600; }
.sov-values .frow p { max-width: 62ch; }
@media (max-width: 680px) { .sov-values .frow { grid-template-columns: 1fr; } }

/* ---- comparison ---- */
.sov-table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--surface); }
.sov-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.sov-table th, .sov-table td { padding: 16px 14px; text-align: center; border-bottom: 1px solid var(--hairline); }
.sov-table tbody tr:last-child th, .sov-table tbody tr:last-child td { border-bottom: 0; }
.sov-table thead th { font-size: 13.5px; font-weight: 600; color: var(--tx-mid); line-height: 1.3; vertical-align: bottom; width: 17%; }
.sov-table tbody th { text-align: left; font-weight: 600; color: var(--tx-hi); padding-left: 22px; position: sticky; left: 0; background: var(--surface); }
.sov-table .is-us { background: var(--gr-dim); }
.sov-table thead .is-us { color: var(--gr-ink); font-weight: 700; }
.mk { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; font-size: 19px; font-weight: 700; line-height: 1; font-style: normal; }
.mk.yes { background: var(--gr); color: var(--surface); font-size: 16px; }
.mk.part, .mk.no { color: var(--tx-sub); }
.sov-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; margin-top: 16px; font-size: 13.5px; color: var(--tx-dim); }
.sov-legend span { display: inline-flex; align-items: center; gap: 7px; }
.sov-legend .mk { width: 24px; height: 24px; font-size: 15px; }
.sov-legend .mk.yes { font-size: 13px; }
.sov-source { margin-left: auto; }
@media (max-width: 700px) { .sov-source { margin-left: 0; } }

.sov-swipe { display: none; }
@media (max-width: 760px) {
  .sov-swipe { display: flex; justify-content: flex-end; gap: 6px; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--gr-ink); }
  .sov-table { min-width: 600px; font-size: 14px; }
  .sov-table th, .sov-table td { padding: 14px 8px; }
  .sov-table tbody th { width: 132px; min-width: 132px; max-width: 132px; padding-left: 14px; font-size: 13.5px; line-height: 1.3; }
  .sov-table thead td { width: 132px; position: sticky; left: 0; background: var(--surface); }
  .sov-table thead th { font-size: 12.5px; }
  .sov-table thead .is-us, .sov-table td.is-us { width: 104px; min-width: 104px; }
}

/* ---- sizes ---- */
.sov-dark { background: var(--ink-navy); color: var(--tx-inv); }
.sov-dark .section-title { color: var(--tx-hi); }
.sov-dark .lead { color: var(--tx-mid); }
.sov-sizes { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.sov-stack { position: sticky; top: 104px; }
.sov-stack svg { width: 100%; height: auto; display: block; max-height: calc(100vh - 150px); }
.st-bus { fill: none; stroke: rgba(244,239,228,.12); stroke-width: 2; }
.st-body { fill: rgba(244,239,228,.04); stroke: rgba(244,239,228,.24); stroke-width: 1.5; transition: fill .35s var(--ease), stroke .35s var(--ease); }
.st-gpu, .st-chip { fill: rgba(244,239,228,.09); transition: fill .35s var(--ease); }
.st-led { fill: rgba(244,239,228,.26); transition: fill .35s var(--ease); }
.st-name { fill: var(--tx-dim); font: 600 13px var(--mono); transition: fill .35s var(--ease); }
.st-unit { cursor: pointer; }
/* Lit: the active size, or every size when no script is running. */
.st-unit.is-on .st-body, .sov-sizes:not(.is-live) .st-body { fill: rgba(196,165,116,.12); stroke: var(--brass); }
.st-unit.is-on .st-gpu, .sov-sizes:not(.is-live) .st-gpu { fill: var(--gr-hi); }
.st-unit.is-on .st-chip, .sov-sizes:not(.is-live) .st-chip { fill: var(--brass); }
.st-unit.is-on .st-led, .sov-sizes:not(.is-live) .st-led { fill: var(--gr-hi); }
.st-unit.is-on .st-name, .sov-sizes:not(.is-live) .st-name { fill: var(--tx-hi); }
.st-unit.is-on .st-led { animation: pm-blink 1.8s ease-in-out 2; }
.st-unit.is-on .st-gpu { animation: st-wake .5s var(--ease) both; }
.st-unit.is-on .st-gpu:nth-of-type(3) { animation-delay: .05s; }
.st-unit.is-on .st-gpu:nth-of-type(4) { animation-delay: .10s; }
.st-unit.is-on .st-gpu:nth-of-type(5) { animation-delay: .15s; }
.st-unit.is-on .st-gpu:nth-of-type(6) { animation-delay: .20s; }
.st-unit.is-on .st-gpu:nth-of-type(7) { animation-delay: .25s; }
.st-unit.is-on .st-gpu:nth-of-type(8) { animation-delay: .30s; }
.st-unit.is-on .st-gpu:nth-of-type(9) { animation-delay: .35s; }
@keyframes st-wake { from { opacity: .25; } to { opacity: 1; } }

.sov-size-list { list-style: none; display: grid; gap: 16px; }
.sov-size { position: relative; border: 1px solid rgba(244,239,228,.16); border-radius: var(--radius); padding: clamp(20px, 2.6vw, 28px); background: rgba(244,239,228,.035); transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease); }
.sov-size.is-on, .sov-sizes:not(.is-live) .sov-size { border-color: var(--brass); background: rgba(196,165,116,.09); }
.sov-size-for { font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brass); }
.sov-size h3 { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; color: var(--tx-hi); margin: 8px 0 6px; }
.sov-size p { color: var(--tx-mid); font-size: 15px; }
.sov-size dl { margin-top: 14px; display: grid; gap: 0; border-top: 1px solid rgba(244,239,228,.14); }
.sov-size dl div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(244,239,228,.10); }
.sov-size dt { font-family: var(--mono); font-size: 12px; color: var(--tx-dim); padding-top: 2px; }
.sov-size dd { color: var(--tx-hi); font-size: 14.5px; font-weight: 500; }
@media (max-width: 860px) {
  .sov-sizes { grid-template-columns: 1fr; gap: 18px; }
  .sov-stack { top: 68px; z-index: 3; background: var(--ink-navy); padding: 10px 0 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); border-bottom: 1px solid rgba(244,239,228,.12); }
  .sov-stack svg { max-height: 200px; }
}
@media (max-width: 420px) { .sov-size dl div { grid-template-columns: 104px 1fr; } }

/* ---- what runs on it ---- */
.sov-note { margin-top: 20px; padding: 16px 18px; border-left: 3px solid var(--hairline-2); background: var(--paper-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 14.5px; color: var(--tx-mid); max-width: 60ch; }
.sov-layers { list-style: none; border-top: 1px solid var(--hairline); }
.sov-layers li { display: grid; grid-template-columns: 190px 1fr; gap: 6px 18px; padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.sov-layers b { color: var(--tx-hi); font-weight: 650; }
.sov-layers span { font-size: 15px; }
@media (max-width: 560px) { .sov-layers li { grid-template-columns: 1fr; } }
.sov-links { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; font-size: 15px; font-weight: 600; }

/* ---- DTS ---- */
.sov-dts { display: grid; grid-template-columns: 1fr auto; gap: clamp(20px, 5vw, 60px); align-items: center; }
.sov-dts .section-title { margin-top: 16px; }
.sov-dts .lead { margin-top: 14px; max-width: 60ch; }
.sov-dts-logo { width: clamp(180px, 24vw, 300px); height: auto; }
@media (max-width: 760px) { .sov-dts { grid-template-columns: 1fr; } .sov-dts-logo { order: -1; } }
.sov-road { margin-top: clamp(26px, 4vw, 40px); background: var(--ink-navy); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
.sov-road .kicker { color: var(--tx-dim); }
.sov-road-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 14px; font-family: var(--serif); font-size: clamp(19px, 2.4vw, 26px); font-weight: 600; color: var(--tx-hi); }
.sov-road-steps li { display: inline-flex; align-items: center; gap: 14px; }
.sov-road-steps li + li::before { content: "→"; color: var(--brass); font-family: var(--font); font-weight: 500; }
.sov-road-steps li:last-child { color: var(--brass); }
.sov-pillars { margin-top: clamp(20px, 3vw, 28px); }

/* ---- CTA ---- */
.cta-band .section-title { margin-top: 16px; }
.sov-cta-row { justify-content: center; margin-top: 0; }
.cta-band .btn { white-space: normal; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .pm-ring, .pm-wire, .pm-out, .pm-led, .st-unit.is-on .st-led, .st-unit.is-on .st-gpu { animation: none; }
  .st-body, .st-gpu, .st-chip, .st-led, .st-name, .sov-size { transition: none; }
}
