/* Kestrel components. Every value comes from tokens.css. */

/* ---- shared ---- */
.ks-label { font: 400 10.5px/1.5 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); }
.ks-readout__v { font: 500 12px/1.5 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.ks-svg-t { font: 400 10px var(--font-mono); letter-spacing: .1em; fill: var(--text-muted); }
.ks-svg-v { font: 500 13px var(--font-mono); letter-spacing: .06em; fill: var(--text); }
.ks-svg-a { font: 500 10px var(--font-mono); letter-spacing: .14em; fill: var(--alert); }
.ks-svg-k { font: 500 10px var(--font-mono); letter-spacing: .12em; fill: var(--text); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; }
.ks-ln { fill: none; stroke: var(--text); stroke-width: var(--stroke-hair); vector-effect: non-scaling-stroke; }
.ks-ln--dim { stroke-opacity: .28; }
.ks-ln--mid { stroke-opacity: .6; }
.ks-ln--hi { stroke-opacity: .85; stroke-width: 1.2px; }
.ks-ln--bold { stroke-width: var(--stroke-bold); }
.ks-ln--alert { stroke: var(--alert); stroke-width: var(--stroke-bold); }
.ks-dash { stroke-dasharray: 3 5; }
.ks-fill { fill: var(--text); }
.ks-fill--alert { fill: var(--alert); }

/* ---- Button ---- */
.ks-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3); min-height: 48px; padding: 0 var(--space-5); border: var(--stroke-hair) solid var(--border-strong); border-radius: var(--radius-none); background: transparent; color: var(--text); font: 500 12px/1 var(--font-mono); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s linear, color .2s linear, border-color .2s linear; }
.ks-btn:hover { background: var(--text); border-color: var(--text); color: var(--surface); }
.ks-btn:focus-visible { outline: var(--stroke-bold) solid var(--focus); outline-offset: 2px; }
.ks-btn--primary { background: var(--text); border-color: var(--text); color: var(--surface); }
.ks-btn--primary:hover { background: var(--alert); border-color: var(--alert); color: var(--on-alert); }
.ks-btn--alert { border-color: var(--alert); color: var(--alert); }
.ks-btn--alert:hover { background: var(--alert); border-color: var(--alert); color: var(--on-alert); }
.ks-btn--sm { min-height: 36px; padding: 0 var(--space-4); font-size: 11px; }
.ks-btn:disabled { background: transparent; border-color: var(--border); color: var(--text-faint); cursor: not-allowed; }

/* ---- TextField ---- */
.ks-field { display: flex; flex-direction: column; gap: var(--space-2); }
.ks-input { width: 100%; min-height: 52px; padding: 0 var(--space-4); background: transparent; border: var(--stroke-hair) solid var(--border-strong); border-radius: var(--radius-none); color: var(--text); font: 400 14px var(--font-mono); letter-spacing: .06em; outline: none; transition: border-color .2s linear, box-shadow .2s linear; }
.ks-input::placeholder { color: var(--text-muted); }
.ks-input:focus-visible { border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.ks-input:disabled { border-color: var(--border); color: var(--text-faint); }
.ks-hint { font: 400 11px/1.5 var(--font-mono); letter-spacing: .08em; color: var(--text-muted); }
.ks-field.is-error .ks-input { border-color: var(--alert); }
.ks-field.is-error .ks-hint { color: var(--alert); }

/* ---- Toggle ---- */
.ks-toggle { display: inline-flex; align-items: center; gap: var(--space-3); min-height: 44px; padding: 0; border: 0; background: none; color: var(--text); font: 500 12px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.ks-toggle__track { position: relative; width: 44px; height: 20px; border: var(--stroke-hair) solid var(--border-strong); transition: border-color .2s linear; }
.ks-toggle__thumb { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; background: var(--text-muted); transition: transform .2s linear, background .2s linear; }
.ks-toggle__state { min-width: 3ch; color: var(--text-muted); }
.ks-toggle.is-on .ks-toggle__track { border-color: var(--alert); }
.ks-toggle.is-on .ks-toggle__thumb { transform: translateX(24px); background: var(--alert); }
.ks-toggle.is-on .ks-toggle__state { color: var(--alert); }
.ks-toggle:focus-visible { outline: var(--stroke-bold) solid var(--focus); outline-offset: 2px; }
.ks-toggle:disabled { color: var(--text-faint); cursor: not-allowed; }
.ks-toggle:disabled .ks-toggle__track { border-color: var(--border); }
.ks-toggle:disabled .ks-toggle__thumb { background: var(--text-faint); }

/* ---- Status ---- */
.ks-status { display: inline-flex; align-items: center; gap: var(--space-2); font: 500 11px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; }
.ks-status--nominal { color: var(--signal); }
.ks-status--alert { color: var(--alert); }
.ks-status--standby { color: var(--text-muted); }

/* ---- Advisory ---- */
.ks-adv { display: flex; align-items: flex-start; gap: var(--space-4); padding: var(--space-4) 0; border-top: var(--stroke-hair) solid var(--border-strong); border-bottom: var(--stroke-hair) solid var(--border); }
.ks-adv__mark { flex: 0 0 auto; width: 10px; height: 10px; margin-top: 4px; background: var(--signal); }
.ks-adv--alert { border-top-color: var(--alert); }
.ks-adv--alert .ks-adv__mark { background: var(--alert); }
.ks-adv__body { flex: 1 1 auto; min-width: 0; }
.ks-adv__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-3); }
.ks-adv__code { font: 500 11px/1.5 var(--font-mono); letter-spacing: .16em; color: var(--text-muted); }
.ks-adv__title { font: 500 13px/1.5 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.ks-adv--alert .ks-adv__title { color: var(--alert); }
.ks-adv__text { margin-top: var(--space-1); font: 400 14px/1.6 var(--font-sans); color: var(--text-muted); }
.ks-adv__x { flex: 0 0 auto; width: 44px; height: 44px; margin: -12px -12px 0 0; border: 0; background: none; color: var(--text); font: 400 20px/1 var(--font-mono); cursor: pointer; }
.ks-adv__x:hover { color: var(--alert); }
.ks-adv__x:focus-visible { outline: var(--stroke-bold) solid var(--focus); outline-offset: -2px; }

/* ---- Meter ---- */
.ks-meter { display: flex; flex-direction: column; gap: var(--space-2); }
.ks-meter__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.ks-meter__bar { display: flex; gap: 2px; height: 14px; }
.ks-meter__seg { flex: 1 1 0; border: var(--stroke-hair) solid var(--border-strong); }
.ks-meter__seg.is-on { background: var(--text); border-color: var(--text); }
.ks-meter--alert .ks-meter__seg.is-on { background: var(--alert); border-color: var(--alert); }
.ks-meter--signal .ks-meter__seg.is-on { background: var(--signal); border-color: var(--signal); }

/* ---- Frame ---- */
.ks-frame { position: relative; border: var(--stroke-hair) solid var(--border); background: var(--surface-raised); color: var(--text); }
.ks-frame::before { content: ''; position: absolute; top: -1px; left: -1px; width: 10px; height: 10px; border-top: var(--stroke-hair) solid var(--text); border-left: var(--stroke-hair) solid var(--text); }
.ks-frame::after { content: ''; position: absolute; bottom: -1px; right: -1px; width: 10px; height: 10px; border-bottom: var(--stroke-hair) solid var(--text); border-right: var(--stroke-hair) solid var(--text); }
.ks-frame__head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: 10px var(--space-4); border-bottom: var(--stroke-hair) solid var(--border); }
.ks-frame__status { color: var(--alert); }
.ks-frame__body { padding: var(--space-4); }
.ks-frame__body.is-flush { padding: 0; }

/* ---- Readout ---- */
.ks-readout { display: inline-flex; flex-direction: column; gap: var(--space-1); }
.ks-readout--lg .ks-readout__v { font: 500 20px/1.3 var(--font-mono); letter-spacing: .04em; }
.ks-readout--xl .ks-readout__v { font: 500 48px/1 var(--font-display); letter-spacing: .02em; }
.ks-readout--alert .ks-readout__v { color: var(--alert); }
.ks-readout--signal .ks-readout__v { color: var(--signal); }
.ks-readout__u { color: var(--text-muted); font-size: .7em; }

/* ---- LeaderList ---- */
.ks-leader { margin: 0; padding: 0; }
.ks-leader__row { display: flex; align-items: baseline; gap: 10px; padding: var(--space-3) 0; border-bottom: var(--stroke-hair) solid var(--border); }
.ks-leader__row dt, .ks-leader__row dd { margin: 0; }
.ks-leader__row i { flex: 1 1 auto; border-bottom: var(--stroke-hair) dotted var(--border-strong); transform: translateY(-3px); }

/* ---- Tape ---- */
.ks-tape { display: inline-flex; flex-direction: column; align-items: center; gap: var(--space-2); }
.ks-tape--v svg { -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent); }
.ks-tape--h svg { -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.ks-tape__box { fill: var(--surface); stroke: var(--text); stroke-width: var(--stroke-hair); vector-effect: non-scaling-stroke; }

/* ---- Reticle ---- */
.ks-ret__dia { fill: var(--surface); stroke: var(--alert); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.ks-ret__ring { fill: none; stroke: var(--alert); stroke-opacity: .55; stroke-width: var(--stroke-hair); stroke-dasharray: 2 6; vector-effect: non-scaling-stroke; }
.ks-ret__lock { filter: drop-shadow(var(--glow-alert)); }

/* ---- Radar ---- */
.ks-ticks { fill: none; stroke: var(--text); stroke-opacity: .5; stroke-width: 8; stroke-dasharray: 1.2 6.8; }
.ks-ticks--major { stroke-opacity: .8; stroke-width: 16; stroke-dasharray: 1.5 77.6; }
.ks-radar__sweep { transform-origin: 160px 160px; animation: ks-spin 8s linear infinite; }
@keyframes ks-spin { to { transform: rotate(360deg); } }

/* ---- Attitude ---- */
.ks-att__sky { fill: var(--text); fill-opacity: .06; }

/* ---- Terrain ---- */
.ks-terrain__row { fill: var(--surface); stroke: var(--text); stroke-width: var(--stroke-hair); vector-effect: non-scaling-stroke; }
.ks-terrain, .ks-contour, .ks-radar, .ks-att { max-width: 100%; height: auto; }

@media (prefers-reduced-motion: reduce) {
  .ks-radar__sweep { animation: none; }
  .ks-btn, .ks-input, .ks-toggle__track, .ks-toggle__thumb { transition: none; }
}

/* =====================================================================
   NovaCove layer. Chart and Horizon modes. Tokens only; no hex.
   ===================================================================== */
:root {
  --motion-route-draw: 1400ms;
  --motion-beacon-pulse: 2400ms;
  --motion-contour-reveal: 800ms;
  --motion-current-flow: 14s;
  --motion-chart-transition: 360ms;
  --motion-horizon-reveal: 900ms;
  --ease-draw: cubic-bezier(.3, 0, .2, 1);
  --ease-settle: cubic-bezier(.2, .6, .2, 1);
}
.nc-svg { display: block; overflow: visible; }
.nc-line { fill: none; stroke: var(--text); stroke-width: var(--stroke-hair); vector-effect: non-scaling-stroke; }
.nc-line--mid { stroke-opacity: .6; }
.nc-line--bold { stroke-width: var(--stroke-bold); }
.nc-line--select { stroke: var(--select); stroke-width: var(--stroke-bold); }
.nc-dot { fill: var(--text); }
.nc-label { font: 400 10px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; fill: var(--text-muted); color: var(--text-muted); }
.nc-label--b { fill: var(--text-muted); }
text.nc-label { paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.nc-hero text.nc-label, .nc-horizon text { stroke: none; }
.nc-chart .nc-contour { stroke-opacity: .4; }
.nc-chart .nc-contour.is-major { stroke-opacity: .4; }
.nc-label.is-sel { fill: var(--select); font-weight: 500; }
.nc-value { font: 500 13px var(--font-mono); letter-spacing: .06em; fill: var(--text); }
.nc-note { margin: 0; font: 400 13px/1.5 var(--font-sans); color: var(--text-muted); }

/* Cove */
.nc-coast { fill: none; stroke: var(--chart-coast); stroke-width: 1.5px; vector-effect: non-scaling-stroke; stroke-linecap: square; }
.nc-depth { fill: none; stroke: var(--chart-depth); stroke-width: var(--stroke-hair); vector-effect: non-scaling-stroke; }
.nc-mouth { fill: var(--surface); stroke: var(--chart-coast); stroke-width: var(--stroke-hair); }
.nc-bracket { fill: none; stroke: var(--select); stroke-width: var(--stroke-bold); vector-effect: non-scaling-stroke; }
.nc-bracket--ring { stroke-width: var(--stroke-hair); }
.nc-hit { cursor: pointer; outline: none; }
.nc-hit__area { fill: transparent; }
.nc-hit:focus-visible .nc-hit__area { stroke: var(--focus-ring); stroke-width: var(--stroke-bold); stroke-dasharray: 4 3; }
.nc-hit:hover .nc-coast, .nc-hit:hover .nc-pass__line { stroke-width: 2.2px; }
.nc-pass__hit { fill: none; stroke: transparent; stroke-width: 16px; }
.nc-hit:focus-visible { outline: none; }
.nc-hit:focus-visible .nc-pass__hit { stroke: var(--focus-ring); stroke-opacity: .35; }

/* Passage: five states, five line styles */
.nc-pass__line { fill: none; stroke-linecap: butt; vector-effect: non-scaling-stroke; }
.nc-pass--observed { stroke: var(--passage-observed); stroke-width: 1.5px; fill: none; vector-effect: non-scaling-stroke; }
.nc-pass--authorized { stroke: var(--passage-authorized); stroke-width: 2px; fill: none; vector-effect: non-scaling-stroke; }
.nc-pass--proposed { stroke: var(--passage-proposed); stroke-width: 1.5px; stroke-dasharray: 7 5; fill: none; vector-effect: non-scaling-stroke; }
.nc-pass--blocked { stroke: var(--passage-blocked); stroke-width: 2px; stroke-dasharray: 2 4; fill: none; vector-effect: non-scaling-stroke; }
.nc-pass--unverified { stroke: var(--passage-unverified); stroke-width: 1.5px; stroke-dasharray: 1 5; stroke-linecap: round; fill: none; vector-effect: non-scaling-stroke; }
.nc-pass__halo { fill: none; stroke: var(--passage-authorized); stroke-opacity: .22; stroke-width: 9px; vector-effect: non-scaling-stroke; }
.nc-pass__arrow { stroke-dasharray: none; }
.nc-pass__mark { fill: none; stroke-width: var(--stroke-bold); vector-effect: non-scaling-stroke; }
.nc-pass__mark--blocked { stroke: var(--passage-blocked); }
.nc-pass__mark--ok { stroke: var(--passage-authorized); }
.nc-pass__q { font: 500 13px var(--font-mono); fill: var(--passage-unverified); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; }
.nc-gate { fill: none; stroke-width: var(--stroke-bold); stroke-dasharray: none; }

/* Boundary */
.nc-boundary { fill: none; stroke: var(--text-muted); stroke-width: var(--stroke-hair); stroke-dasharray: 10 3 2 3; vector-effect: non-scaling-stroke; }

/* Beacon (brand colour appears only in Horizon; Instrument uses signal) */
.nc-beacon__ring { fill: none; stroke: var(--signal); stroke-width: var(--stroke-hair); vector-effect: non-scaling-stroke; }
.nc-beacon__tick { fill: none; stroke: var(--signal); stroke-width: var(--stroke-hair); vector-effect: non-scaling-stroke; }
.nc-beacon__dot { fill: var(--signal); }
.nc-beacon--amber .nc-beacon__ring, .nc-beacon--amber .nc-beacon__tick { stroke: var(--brand-beacon); }
.nc-beacon--amber .nc-beacon__dot { fill: var(--brand-beacon); }
.nc-beacon__pulse { fill: none; stroke: var(--signal); stroke-width: var(--stroke-hair); transform-box: fill-box; transform-origin: center; animation: nc-pulse var(--motion-beacon-pulse) var(--ease-settle) 3; }
.nc-beacon--amber .nc-beacon__pulse { stroke: var(--brand-beacon); }

/* Contours, currents, grid */
.nc-contour { fill: none; stroke: var(--chart-depth); stroke-width: var(--stroke-hair); vector-effect: non-scaling-stroke; }
.nc-contour.is-major { stroke: var(--chart-coast); stroke-opacity: .55; }
.nc-contour--brand { stroke: var(--brand-seaglass); stroke-opacity: .28; }
.nc-contour--brand.is-major { stroke: var(--brand-seaglass); stroke-opacity: .5; }
.nc-contours { pointer-events: none; }
.nc-current { fill: none; stroke: var(--chart-depth); stroke-width: var(--stroke-hair); stroke-dasharray: 2 8; vector-effect: non-scaling-stroke; }
.nc-flow { animation: nc-flow var(--motion-current-flow) linear infinite; }
.nc-grid { fill: none; stroke: var(--text-faint); stroke-width: var(--stroke-hair); vector-effect: non-scaling-stroke; }
.nc-grid--edge { stroke: var(--text-muted); }

/* Chart + legend */
.nc-chart { margin: 0; width: 100%; background: var(--surface); }
.nc-chart__svg { border: var(--stroke-hair) solid var(--border); }
.nc-chart__cap { padding-top: var(--space-4); }
.nc-chart__note { margin: var(--space-3) 0 0; font: 400 13px/1.5 var(--font-sans); color: var(--text-muted); }
.nc-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); }
.nc-legend__i { display: flex; align-items: center; gap: var(--space-3); }
.nc-legend__t { display: flex; flex-direction: column; }
.nc-legend__t .nc-label { fill: none; }
.nc-legend__n { font: 400 12px/1.4 var(--font-sans); color: var(--text-muted); }
.nc-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Navigation */
.nc-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.nc-crumbs li { display: flex; align-items: center; gap: var(--space-3); font: 400 10.5px var(--font-mono); letter-spacing: .16em; text-transform: uppercase; }
.nc-crumbs a { color: var(--text-muted); text-decoration: none; border-bottom: var(--stroke-hair) solid var(--border-strong); }
.nc-crumbs a:hover { color: var(--text); }
.nc-crumbs a:focus-visible { outline: var(--stroke-bold) solid var(--focus-ring); outline-offset: 2px; }
.nc-crumbs__cur { color: var(--text); }
.nc-switch { display: flex; flex-direction: column; border: var(--stroke-hair) solid var(--border-strong); }
.nc-switch__i { display: flex; align-items: center; gap: var(--space-3); min-height: 48px; padding: 0 var(--space-4); background: transparent; color: var(--text); border: 0; border-bottom: var(--stroke-hair) solid var(--border); border-radius: var(--radius-none); text-align: left; cursor: pointer; font: inherit; }
.nc-switch__i:last-child { border-bottom: 0; }
.nc-switch__i:hover { background: var(--surface-raised); }
.nc-switch__i:focus-visible { outline: var(--stroke-bold) solid var(--focus-ring); outline-offset: -2px; }
.nc-switch__i.is-on { box-shadow: inset 3px 0 0 var(--select); background: var(--surface-raised); }
.nc-switch__i .nc-coast, .nc-switch__i .nc-depth { stroke-width: 1px; }
.nc-switch__t { display: flex; flex-direction: column; flex: 1; }
.nc-switch__n { font: 500 15px var(--font-sans); }
.nc-switch__sel { color: var(--select); }
.nc-pstate { display: inline-flex; align-items: center; gap: var(--space-3); font: 500 12px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.nc-insp { display: flex; flex-direction: column; gap: var(--space-4); }
.nc-insp__r { display: flex; flex-wrap: wrap; gap: var(--space-6); }
.nc-trace { list-style: none; margin: 0; padding: 0; }
.nc-trace__i { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-3) 0; border-bottom: var(--stroke-hair) solid var(--border); position: relative; }
.nc-trace__t { display: flex; flex-direction: column; flex: 1; }
.nc-trace__n { font: 500 15px var(--font-sans); color: var(--text); }
.nc-trace__d { fill: none; stroke: var(--text); stroke-width: var(--stroke-hair); }
.nc-trace--authorized .nc-trace__d { stroke: var(--passage-authorized); fill: var(--passage-authorized); }
.nc-trace--blocked .nc-trace__d { stroke: var(--passage-blocked); }
.nc-trace__d.is-fill { fill: var(--passage-blocked); }
.nc-trace--proposed .nc-trace__d, .nc-trace--unverified .nc-trace__d { stroke: var(--text-muted); stroke-dasharray: 2 2; }
.nc-div { position: relative; height: 14px; margin: var(--space-7) 0; }
.nc-div__t { position: absolute; left: 50%; top: -9px; transform: translateX(-50%); background: var(--surface); padding: 0 var(--space-4); }

/* Horizon (brand surface; does not invert with the theme) */
.nc-horizon { width: 100%; height: 100%; }
.nc-moon { fill: var(--brand-moon); }
.nc-moon-ring { fill: none; stroke: var(--brand-moon); stroke-opacity: .3; stroke-width: var(--stroke-hair); }
.nc-hz-line { stroke: var(--brand-mist); stroke-opacity: .6; stroke-width: var(--stroke-hair); vector-effect: non-scaling-stroke; }
.nc-hz-route { fill: none; stroke: var(--brand-beacon); stroke-width: 2px; vector-effect: non-scaling-stroke; stroke-dasharray: 1; }
.nc-hz-wp { fill: var(--brand-beacon); }
.nc-hz-ring { fill: none; stroke: var(--brand-beacon); stroke-width: var(--stroke-hair); vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; }
.nc-hero { position: relative; overflow: hidden; background: var(--brand-ocean); color: var(--brand-moon); min-height: 520px; }
.nc-hero__bg { position: absolute; inset: 0; }
.nc-hero__fg { position: relative; max-width: 760px; padding: var(--space-9) var(--space-6) var(--space-8); }
.nc-hero__k { margin: 0 0 var(--space-4); font: 400 10.5px var(--font-mono); letter-spacing: .24em; text-transform: uppercase; color: var(--brand-mist); }
.nc-hero__h { margin: 0; font: 300 clamp(44px, 7vw, 84px)/.95 var(--font-display); letter-spacing: .01em; text-transform: uppercase; color: var(--brand-moon); }
.nc-hero__p { margin: var(--space-5) 0 0; max-width: 480px; font: 400 17px/1.5 var(--font-sans); color: var(--brand-mist); }
.nc-hero__a { margin-top: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-4); }

/* Motion primitives. Reveal and draw play once; flow and pulse are ambient and opt-in. */
.nc-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: nc-draw var(--motion-route-draw) var(--ease-draw) forwards; }
.nc-fade { animation: nc-fadein var(--motion-chart-transition) var(--ease-settle) both; }
.nc-reveal { opacity: 0; animation: nc-fadein var(--motion-contour-reveal) var(--ease-settle) forwards; }
.nc-hz-layer { animation: nc-rise var(--motion-horizon-reveal) var(--ease-settle) both; }
.nc-hz-cont .nc-contour { opacity: 0; animation: nc-fadein var(--motion-contour-reveal) var(--ease-settle) forwards; }
.nc-pulse { animation: nc-pulse var(--motion-beacon-pulse) var(--ease-settle) 3; }
@keyframes nc-draw { to { stroke-dashoffset: 0; } }
@keyframes nc-fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes nc-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes nc-pulse { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(2.6); } }
@keyframes nc-flow { to { stroke-dashoffset: -400; } }
@media (prefers-reduced-motion: reduce) {
  .nc-draw { animation: none; stroke-dashoffset: 0; }
  .nc-fade, .nc-hz-layer { animation: none; }
  .nc-reveal, .nc-hz-cont .nc-contour { animation: none; opacity: 1; }
  .nc-flow, .nc-pulse, .nc-beacon__pulse { animation: none; }
  .nc-beacon__pulse { opacity: 0; }
}

.ks-frame__head .ks-frame__status.is-neutral { color: var(--text-muted); }
/* Brand surfaces do not invert with the theme: re-seat interface controls on brand-ocean. */
.nc-hero .ks-btn { color: var(--brand-moon); border-color: var(--brand-mist); background: transparent; }
.nc-hero .ks-btn--primary { background: var(--brand-moon); color: var(--brand-ocean); border-color: var(--brand-moon); }
.nc-hero .ks-btn:hover { background: var(--brand-beacon); color: var(--brand-ocean); border-color: var(--brand-beacon); }
.nc-hero .ks-btn:focus-visible { outline-color: var(--brand-moon); }
