/* KYDOS · COLD FOCUS shared layer. Tokens, COLD GRADE, grain, FROST PANE, focus ring, status tags, CUT glyph, macro grid. Every page links this file. */
:root {
  --ink: #070D12; --deep: #0D1A24; --slate: #172A37; --frost: #C9D3DC;
  --white: #F2F5F8; --fog: #B7C3CE; --mist: #8D9CAB; --steel: #3E5262;
  --line: rgba(242,245,248,0.16); --grid: rgba(242,245,248,0.07); --line-frost: rgba(7,13,18,0.18);
  --red: #FD0517; --ease: cubic-bezier(0.2,0.7,0.2,1);
  --font-sans: 'Geist', system-ui, sans-serif; --font-mono: 'Geist Mono', ui-monospace, monospace;
}

/* COLD GRADE (retuned 21 Oct 2026 to the packaging reference): colour kept at 50% saturation, blue-cyan multiply (#D2E3F2), navy lift on shadows (#0C1C2C), grain. Was: duotone INK #070D12 (shadows) to #DCE5EC (highlights), contrast +6%, then the grain.
   Grey + contrast on the media, a multiply layer (#DBE4EB plus the grain tile) and a screen layer (INK) on top.
   #DBE4EB is the value that lands white exactly on #DCE5EC after the INK screen. */
.kydos-grade { position: relative; isolation: isolate; overflow: hidden; }
.kydos-grade > *, .kydos-grade img, .kydos-grade video { filter: saturate(0.5) contrast(1.05) brightness(1.04); }
.kydos-grade > * img, .kydos-grade > * video { filter: none; }
.kydos-grade[data-fca] > *, .kydos-grade[data-fca] img { filter: none; }
.kydos-grade::before, .kydos-grade::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.kydos-grade::before { z-index: 1; background: url(/assets/img/grain.svg) 0 0 / 200px 200px, #D2E3F2; mix-blend-mode: multiply; }
.kydos-grade::after { z-index: 2; background-color: #0C1C2C; mix-blend-mode: screen; }
@supports not (mix-blend-mode: multiply) { .kydos-grade::before, .kydos-grade::after { display: none; } }

/* FROST PANE: the only interface blur. Hero media only, never holds text, at most one per page. */
[data-pane] { position: absolute; pointer-events: none; background-color: rgba(201,211,220,0.10); -webkit-backdrop-filter: blur(22px) saturate(0.7); backdrop-filter: blur(22px) saturate(0.7); border: 1px solid rgba(242,245,248,0.16); }
@media (prefers-reduced-transparency: reduce) { [data-pane] { -webkit-backdrop-filter: none; backdrop-filter: none; background-color: rgba(13,26,36,0.6); } }

/* Focus ring: 2 px WHITE, 3 px out. INK on FROST. Never red. */
:focus-visible { outline: 2px solid #F2F5F8; outline-offset: 3px; }
[data-surface="frost"] :focus-visible { outline-color: #070D12 !important; }

/* Status tags: the line says how certain it is. Filled, solid, dashed. */
[data-tag] { border-radius: 0 !important; max-width: 100%; width: max-content; white-space: normal !important; }
[data-tag="current" i], [data-tag="current · qualitative" i] { background-color: #F2F5F8 !important; border: 1px solid #F2F5F8 !important; color: #070D12 !important; }
[data-tag="pipeline" i], [data-tag="to validate" i], [data-tag="hypothesis" i] { border-style: dashed !important; }
[data-surface="frost"] [data-tag] { border-color: #070D12 !important; color: #070D12 !important; }
[data-surface="frost"] [data-tag="current" i], [data-surface="frost"] [data-tag="current · qualitative" i] { background-color: #070D12 !important; color: #C9D3DC !important; }

/* Plate chips and states. */
[data-chip="verified"], [data-chip="done"] { background-color: #F2F5F8 !important; border: 1px solid #F2F5F8 !important; color: #070D12 !important; }
[data-chip="declared"], [data-chip="notyet"] { border-style: dashed !important; }
[data-chip="derived"] { border-color: rgba(242,245,248,0.16) !important; }
[data-chip="now"] { border-color: #F2F5F8 !important; color: #F2F5F8 !important; }
[data-chip="done"]::before { content: ""; flex: none; width: 7px; height: 4px; margin-inline-end: 6px; border-inline-start: 1px solid currentColor; border-block-end: 1px solid currentColor; transform: translateY(-1px) rotate(-45deg); }

/* CUT glyph: moves 4 px right in 160 ms on hover and focus. */
[data-cut] { transition: transform 160ms cubic-bezier(0.2,0.7,0.2,1); }
a:hover > [data-cut], button:hover > [data-cut], a:focus-visible > [data-cut], button:focus-visible > [data-cut], [data-state="hover"] > [data-cut] { transform: translateX(4px); }

/* Macro grid: five hairlines, three under 900 px. The top-right hero label and the FROST PANE go under 900 px. */
@media (max-width: 899px) { [data-grid-q], [data-cold-tr], [data-pane] { display: none !important; } }
[data-pane-zone] { container-type: size; }
@container (max-height: 120px) { [data-pane] { display: none; } }

@media (prefers-reduced-motion: reduce) { [data-cut] { transition: none; } }

/* COLD FOCUS m3 · components. Cards: no lift, border LINE to WHITE 40%. Card head: label left, tag right, hairline under. Corner ticks 8 px outside. Tables. */
[data-card] { transition: border-color 160ms linear; }
[data-card]:hover { border-color: rgba(242,245,248,0.4) !important; }
[data-card-head] { justify-content: space-between !important; width: 100%; padding-block-end: 12px; border-block-end: 1px solid var(--line); }
[data-ticks] { position: relative; }
[data-ticks]::before { content: ""; position: absolute; inset: -8px; z-index: 3; pointer-events: none; background: linear-gradient(rgba(242,245,248,0.4),rgba(242,245,248,0.4)) 0 0/8px 1px no-repeat, linear-gradient(rgba(242,245,248,0.4),rgba(242,245,248,0.4)) 0 0/1px 8px no-repeat, linear-gradient(rgba(242,245,248,0.4),rgba(242,245,248,0.4)) 100% 0/8px 1px no-repeat, linear-gradient(rgba(242,245,248,0.4),rgba(242,245,248,0.4)) 100% 0/1px 8px no-repeat, linear-gradient(rgba(242,245,248,0.4),rgba(242,245,248,0.4)) 0 100%/8px 1px no-repeat, linear-gradient(rgba(242,245,248,0.4),rgba(242,245,248,0.4)) 0 100%/1px 8px no-repeat, linear-gradient(rgba(242,245,248,0.4),rgba(242,245,248,0.4)) 100% 100%/8px 1px no-repeat, linear-gradient(rgba(242,245,248,0.4),rgba(242,245,248,0.4)) 100% 100%/1px 8px no-repeat; }
[data-surface="frost"] [data-ticks]::before { background: linear-gradient(rgba(7,13,18,0.4),rgba(7,13,18,0.4)) 0 0/8px 1px no-repeat, linear-gradient(rgba(7,13,18,0.4),rgba(7,13,18,0.4)) 0 0/1px 8px no-repeat, linear-gradient(rgba(7,13,18,0.4),rgba(7,13,18,0.4)) 100% 0/8px 1px no-repeat, linear-gradient(rgba(7,13,18,0.4),rgba(7,13,18,0.4)) 100% 0/1px 8px no-repeat, linear-gradient(rgba(7,13,18,0.4),rgba(7,13,18,0.4)) 0 100%/8px 1px no-repeat, linear-gradient(rgba(7,13,18,0.4),rgba(7,13,18,0.4)) 0 100%/1px 8px no-repeat, linear-gradient(rgba(7,13,18,0.4),rgba(7,13,18,0.4)) 100% 100%/8px 1px no-repeat, linear-gradient(rgba(7,13,18,0.4),rgba(7,13,18,0.4)) 100% 100%/1px 8px no-repeat; }
[role="table"] [role="row"] { padding-inline: 12px; }
[role="table"] [role="row"]:has(> [role="columnheader"]) { background-color: #0D1A24; padding-block: 10px !important; }
[role="table"] [role="row"] > [role="columnheader"] { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #8D9CAB; }
[role="table"] [role="row"] > [role="cell"]:first-child, [role="table"] [role="row"] > [role="cell"]:first-child * { font-weight: 500 !important; }
[role="table"] [data-num] { text-align: right; font-variant-numeric: tabular-nums; }
[data-key-line] { overflow-wrap: anywhere; }
[data-seg] > span { transition: background-color 160ms linear; }


/* LEDE and ROW TEXT: Geist Mono capitals (text-transform only), one sentence per line, hierarchy by brightness. */
[data-lede], [data-rt] { font-family: var(--font-mono); font-weight: 400; font-style: normal; text-transform: uppercase; text-align: left; text-wrap: wrap; }
[data-lede] { font-size: 15px; letter-spacing: 0.04em; line-height: 1.6; max-width: 38ch; color: var(--fog); }
[data-lede] > [data-ln]:first-child { color: var(--white); }
[data-rt] { display: block; font-size: 13px; letter-spacing: 0.05em; line-height: 1.6; max-width: 40ch; color: var(--mist); }
[data-ln] { display: block; }
[data-u] { text-transform: none; }
[data-surface="frost"] [data-lede], [data-surface="frost"] [data-rt] { color: var(--steel); }
[data-surface="frost"] [data-lede] > [data-ln]:first-child { color: var(--ink); }
@media (min-width: 1200px) { [data-rt] { font-size: 14px; } }
@media (max-width: 599px) { [data-lede] { font-size: 14px; max-width: 34ch; } [data-rt] { font-size: 12px; } }

/* RUNNING TEXT: every paragraph in Geist Mono capitals. [data-p] = runtime sentence breaks (pre-line); o = opening 15 px, f = FOG 13 px, m = MIST 13 px. */
[data-p] { display: block; font-family: var(--font-mono); font-weight: 400; font-style: normal; text-transform: uppercase; text-align: left; white-space: pre-line; text-wrap: wrap; font-size: 13px; letter-spacing: 0.05em; line-height: 1.6; max-width: 40ch; }
[data-p="f"] { color: var(--fog); } [data-p="m"] { color: var(--mist); }
[data-p="o"] { font-size: 15px; letter-spacing: 0.04em; max-width: 38ch; color: var(--fog); }
[data-p] a { font-family: inherit !important; font-size: inherit !important; font-weight: 400 !important; letter-spacing: inherit !important; text-transform: inherit !important; line-height: inherit !important; }
[data-surface="frost"] [data-p], [data-surface="frost"] [data-p="o"] { color: var(--steel); }
[data-photo], [data-photo] [data-ln], [data-photo] > [data-ln]:first-child { color: var(--white) !important; }
::highlight(kydos-first) { color: #F2F5F8; } ::highlight(kydos-first-ink) { color: #070D12; }
@media (min-width: 1200px) { [data-p="f"], [data-p="m"] { font-size: 14px; } }
@media (max-width: 599px) { [data-p] { font-size: 12px; } [data-p="o"] { font-size: 14px; max-width: 34ch; } }

/* Hero footage crop: centred from 600 px, left edge kept under 600 px so the dark side stays in frame. */
[data-hero-media] { object-position: 50% 50%; }
@media (max-width: 599px) { [data-hero-media] { object-position: 0% 50%; } }

/* HOME hero readout pane: text pane with INK 60% layer inside, four ticks 8 px outside. */
[data-pane="readout"] { box-sizing: border-box; }
[data-pane="readout"]::after { content: ""; position: absolute; inset: -9px; z-index: 3; pointer-events: none; background: linear-gradient(rgba(242,245,248,0.4),rgba(242,245,248,0.4)) 0 0/8px 1px no-repeat, linear-gradient(rgba(242,245,248,0.4),rgba(242,245,248,0.4)) 0 0/1px 8px no-repeat, linear-gradient(rgba(242,245,248,0.4),rgba(242,245,248,0.4)) 100% 0/8px 1px no-repeat, linear-gradient(rgba(242,245,248,0.4),rgba(242,245,248,0.4)) 100% 0/1px 8px no-repeat, linear-gradient(rgba(242,245,248,0.4),rgba(242,245,248,0.4)) 0 100%/8px 1px no-repeat, linear-gradient(rgba(242,245,248,0.4),rgba(242,245,248,0.4)) 0 100%/1px 8px no-repeat, linear-gradient(rgba(242,245,248,0.4),rgba(242,245,248,0.4)) 100% 100%/8px 1px no-repeat, linear-gradient(rgba(242,245,248,0.4),rgba(242,245,248,0.4)) 100% 100%/1px 8px no-repeat; }
@media (prefers-reduced-transparency: reduce) { [data-pane="readout"] { background-color: rgba(13,26,36,0.8); } [data-pane="readout"] [data-pane-ink] { display: none; } }


/* LIGHT SECTION: one FROST section per page at most, tokens inverted. Set data-light and data-surface="frost" on the section; the FROST layer [data-light-bg] sits behind the content. Headlines INK, mono text SLATE (STEEL only from 14 px), hairlines INK 15%, tags and focus ring from the FROST rules above. */
[data-light] { color: #070D12; }
[data-light] [data-p], [data-light] [data-rt] { color: #172A37; }
[data-light] [data-card]:hover { border-color: rgba(7,13,18,0.4) !important; }
[data-light] ::selection { background: #070D12; color: #C9D3DC; }


/* HOME HERO (vibe pass, revised). Scoped to [data-vibe]. No stepping: the headline lines share one left edge. The lede is two columns on the 4-column macro grid, same top. The four-module strip sits on the same grid. */
[data-vibe] { --vibe-ease: cubic-bezier(0.2, 0.7, 0.2, 1); }
@media (min-width: 900px) {
  [data-vibe] [data-lc] { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; width: 100%; max-width: none; }
  [data-vibe] [data-lc] > [data-lc-i="1"] { grid-column: 1; padding-inline-end: 20px; }
  [data-vibe] [data-lc] > [data-lc-i="2"] { grid-column: 2 / span 2; padding-inline: 20px; }
}
@media (max-width: 899px) { [data-vibe] [data-lc] { display: flex; flex-direction: column; gap: 8px; max-width: none; } }
/* Module strip: each module is one link; a hairline on top (FROST 60% on hover), an underline that traces under the verb, the arrow moves 6 px. Fine pointers only for hover. */
[data-mod]::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background-color: rgba(242,245,248,0.16); transition: background-color 160ms linear; pointer-events: none; }
[data-mod-v]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background-color: #F2F5F8; transform: scaleX(0); transform-origin: left center; transition: transform 220ms var(--vibe-ease, ease); pointer-events: none; }
[data-mod-ar] { transition: transform 160ms var(--vibe-ease, ease); }
[data-mod-b] { transition: color 160ms linear; }
[data-mod] > a:focus-visible [data-mod-v]::after { transform: scaleX(1); }
[data-mod] > a:focus-visible [data-mod-b] { color: #F2F5F8; }
[data-mod] > a:focus-visible [data-mod-ar] { transform: translateX(6px); }
@media (hover: hover) and (pointer: fine) {
  [data-mod]:hover::before { background-color: rgba(201,211,220,0.6); }
  [data-mod]:hover [data-mod-v]::after { transform: scaleX(1); }
  [data-mod]:hover [data-mod-b] { color: #F2F5F8; }
  [data-mod]:hover [data-mod-ar] { transform: translateX(6px); }
}
@media (prefers-reduced-motion: reduce) { [data-mod]::before, [data-mod-v]::after, [data-mod-ar], [data-mod-b] { transition: none; } }
/* Crosshair: lines follow the cursor by at most 8 px (--vx, --vy set by cold-fx.js), eased 600 ms. */
[data-xh] { transform: translateY(var(--vy, 0px)); transition: transform 600ms var(--vibe-ease, ease); }
[data-xv] { transform: translateX(var(--vx, 0px)); transition: transform 600ms var(--vibe-ease, ease); }
[data-xf] { transform: translate(var(--vx, 0px), var(--vy, 0px)); transition: transform 600ms var(--vibe-ease, ease); }
@media (prefers-reduced-motion: reduce) { [data-xh], [data-xv], [data-xf] { transition: none; } }
/* Plus marks replace the 6 px dots on the grid intersections. The focal intersection carries the diamond instead. */
[data-vibe] [data-cd], [data-vibe] [data-plus] { border-radius: 0 !important; background-color: transparent !important; background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor) !important; background-size: 1px 100%, 100% 1px !important; background-position: 50% 50%, 50% 50% !important; background-repeat: no-repeat !important; color: #F2F5F8; }
[data-vibe] [data-surface="frost"] [data-plus] { color: #070D12; }
[data-vibe] [data-focal] { visibility: hidden; }
@media (max-width: 899px) { [data-vibe] [data-focal] { visibility: visible; } }


/* ARENA, section 02 (five modes). Hover on a card (fine pointers; set by the page script as data-hov on the card, its stem and its RESERVE dot): hairline FROST 60%, drawing lines STEEL to FROST, stem and dot WHITE. */
[data-ar="card"][data-hov] { border-color: rgba(201,211,220,0.6) !important; }
[data-ar="card"] [data-ln]:not([data-mp]):not([data-wh]), [data-ar="card"] [data-st] { transition: stroke 160ms linear; }
[data-ar="card"][data-hov] [data-ln]:not([data-mp]):not([data-wh]), [data-ar="card"][data-hov] [data-st] { stroke: #C9D3DC; }
[data-ar="stem"] { transition: background-color 160ms linear; }
[data-ar="stem"][data-hov], [data-ar="node"][data-hov] { background-color: #F2F5F8 !important; }
@media (prefers-reduced-motion: reduce) { [data-ar="card"], [data-ar="card"] [data-ln], [data-ar="card"] [data-st], [data-ar="stem"] { transition: none !important; } }

/* NAV: sticky section index follows the compacting bar (--kydos-nav-h set by SiteHeader). */
@media (prefers-reduced-motion: reduce) { [data-ixbar] { transition: none !important; } }

/* PILOT NETWORK: three-cell strip and card row. Stacked under 720 px. */
[data-pn-grid], [data-pn-cards] { display: grid; grid-template-columns: minmax(0, 1fr); }
[data-pn-cards] { gap: 16px; }
@media (min-width: 720px) { [data-pn-grid] { grid-template-columns: repeat(3, minmax(0, 1fr)); } [data-pn-cards] { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }

/* About Us true state: tags stay on one line. */
[data-nowrap-tags] [data-tag] { white-space: nowrap !important; }
