/* Continuum website. One dark theme by design: the page is built around rendered footage. */
:root {
  color-scheme: dark;
  --bg: #07090d;
  --bg-2: #0b0e13;
  --surface: #11151c;
  --surface-2: #161b24;
  --line: #222a35;
  --line-2: #2d3644;
  --text: #e9eef4;
  --text-2: #aab3bf;
  --muted: #76818f;
  --accent: #52d0ff;
  --accent-ink: #04141c;
  --warm: #ffa149;
  --warm-ink: #1e0f02;
  --series-1: #3987e5;
  --series-2: #d95926;
  --series-3: #199e70;
  --radius: 14px;
  --radius-sm: 8px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 650; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: 0.86em; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 11vw, 140px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.h2 { font-size: clamp(32px, 4.6vw, 58px); margin-top: 18px; max-width: 18ch; }
.lede { color: var(--text-2); font-size: clamp(17px, 1.5vw, 20px); max-width: 62ch; margin-top: 20px; }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 15.5px; border: 1px solid transparent; transition: transform .2s var(--ease), background .2s, border-color .2s; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--warm); color: var(--warm-ink); }
.btn-primary:hover { background: #ffb36b; }
.btn-ghost { color: var(--text); border-color: rgba(255,255,255,.28); background: rgba(8,10,14,.35); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--text); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.site-header.is-solid { background: rgba(7,9,13,.82); backdrop-filter: blur(12px) saturate(140%); border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); font-weight: 650; letter-spacing: .02em; font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.brand small { font-weight: 500; color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-left: 2px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.nav-links a { color: var(--text-2); font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav .btn { padding: 9px 16px; font-size: 14px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 8px; width: 42px; height: 38px; }
.nav-toggle svg { width: 20px; height: 20px; margin: auto; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; transform: scale(calc(1 + var(--hp, 0) * .08)); transform-origin: 50% 40%; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(7,9,13,.72) 0%, rgba(7,9,13,.18) 28%, rgba(7,9,13,.30) 55%, rgba(7,9,13,.94) 92%, var(--bg) 100%),
  linear-gradient(90deg, rgba(7,9,13,.86) 0%, rgba(7,9,13,.45) 55%, rgba(7,9,13,.12) 100%); }
.hero-inner { padding-top: 140px; padding-bottom: clamp(48px, 8vh, 96px); opacity: calc(1 - var(--hp, 0) * 1.4); transform: translateY(calc(var(--hp, 0) * -40px)); }
.hero h1 { font-size: clamp(44px, 7.6vw, 104px); letter-spacing: -0.035em; font-weight: 680; max-width: 12ch; }
.hero h1 em { font-style: normal; background: linear-gradient(92deg, #ffffff 10%, var(--accent) 60%, #9fe6ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { color: #c9d1db; max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; align-items: center; }
.only-badge { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; padding: 7px 14px 7px 8px; border-radius: 999px; background: rgba(255,161,73,.12); border: 1px solid rgba(255,161,73,.45); color: #ffd2a6; font-size: 13.5px; font-weight: 600; letter-spacing: .02em; }
.only-badge b { background: var(--warm); color: var(--warm-ink); border-radius: 999px; padding: 2px 10px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.hero-specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: clamp(40px, 7vh, 72px); border-top: 1px solid rgba(255,255,255,.16); }
.hero-specs div { padding: 16px 18px 0 0; }
.hero-specs dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hero-specs dd { margin: 6px 0 0; font-size: 15px; color: var(--text); font-weight: 550; }
.hero-tools { position: absolute; right: var(--gutter); bottom: 24px; display: flex; gap: 8px; align-items: center; }
.icon-btn { width: 38px; height: 38px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: rgba(7,9,13,.45); color: var(--text); display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); }
.icon-btn svg { width: 16px; height: 16px; }
.hero-caption { font-family: var(--mono); font-size: 11.5px; color: rgba(233,238,244,.65); letter-spacing: .04em; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* Only in Divooka */
.divooka { background: radial-gradient(1200px 500px at 85% 10%, rgba(255,161,73,.10), transparent 60%), var(--bg-2); }
.divooka-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.divooka .h2 { max-width: 12ch; }
.divooka .h2 span { color: var(--warm); }
.points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.points li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--text-2); }
.points li svg { width: 20px; height: 20px; margin-top: 3px; color: var(--warm); }
.points b { color: var(--text); font-weight: 600; }
.graph-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.graph-tabs { display: flex; gap: 4px; padding: 10px; border-bottom: 1px solid var(--line); background: #0e1218; }
.graph-tabs button { font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text-2); background: none; border: 1px solid transparent; padding: 7px 14px; border-radius: 8px; cursor: pointer; }
.graph-tabs button[aria-selected="true"] { color: var(--text); background: var(--surface-2); border-color: var(--line-2); }
.graph-tabs .hint { margin-left: auto; align-self: center; font-family: var(--mono); font-size: 11.5px; color: var(--muted); padding-right: 6px; }
.graph-panel { padding: 8px; }
.graph-panel[hidden] { display: none; }
.graph-panel svg { width: 100%; height: auto; }
.graph-foot { padding: 14px 18px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 14.5px; }

/* Node graph drawing */
.ng-wire { fill: none; stroke: #5b6677; stroke-width: 2; }
.ng-wire.flow { stroke: var(--accent); stroke-dasharray: 6 10; animation: flow 1.6s linear infinite; }
.ng-wire.exec { stroke: #f2f5f8; stroke-width: 2.4; }
.ng-node rect.body { fill: #1a2029; stroke: #313b4a; }
.ng-node rect.head { fill: #222a35; }
.ng-node.k-scene rect.head { fill: #17394a; }
.ng-node.k-sim rect.head { fill: #4a2b12; }
.ng-node.k-out rect.head { fill: #183d30; }
.ng-node.k-proc rect.head { fill: #2f2350; }
.ng-node text { fill: #dfe6ee; font-family: var(--font); font-size: 13px; }
.ng-node text.title { font-weight: 650; font-size: 13.5px; }
.ng-node text.pin { fill: #9aa6b4; font-size: 11.5px; font-family: var(--mono); }
.ng-pin { fill: #0b0e13; stroke: #8b98a8; stroke-width: 1.6; }
.ng-pin.on { fill: var(--accent); stroke: var(--accent); }
.ng-exec { fill: #f2f5f8; }
@keyframes flow { to { stroke-dashoffset: -32; } }

/* Paradigms */
.para-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.para-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 56px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .3s, transform .4s var(--ease); }
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card-media { position: relative; aspect-ratio: 16 / 9; background: #0c0f14; overflow: hidden; }
.card-media video, .card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-media .tag { position: absolute; left: 12px; top: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; background: rgba(7,9,13,.72); color: var(--text); padding: 4px 9px; border-radius: 6px; backdrop-filter: blur(4px); }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-size: 20px; letter-spacing: -0.01em; }
.card p { color: var(--text-2); font-size: 15.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; list-style: none; padding-left: 0; margin-bottom: 0; }
.chips li { font-family: var(--mono); font-size: 11.5px; color: #c6d0db; border: 1px solid var(--line-2); border-radius: 6px; padding: 3px 8px; }

/* Coupling (sticky scroll) */
.coupling-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); margin-top: 56px; }
.steps { display: grid; gap: 0; }
.step { padding: 28px 0 28px 26px; border-left: 2px solid var(--line); min-height: 36vh; display: flex; flex-direction: column; justify-content: center; transition: border-color .4s; }
.step .n { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.step h3 { font-size: 22px; margin-top: 8px; color: var(--text-2); transition: color .4s; }
.step p { color: var(--muted); margin-top: 10px; transition: color .4s; }
.step.is-active { border-left-color: var(--accent); }
.step.is-active h3 { color: var(--text); }
.step.is-active p { color: var(--text-2); }
.hub-sticky { position: sticky; top: 96px; align-self: start; }
.hub { background: radial-gradient(closest-side, rgba(82,208,255,.08), transparent), var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.hub svg { width: 100%; height: auto; }
.hub .ring { fill: none; stroke: #2a3340; stroke-width: 1; }
.hub .spoke { stroke: #2f3947; stroke-width: 1.5; fill: none; transition: stroke .5s, stroke-width .5s; }
.hub .node circle { fill: #141922; stroke: #364152; stroke-width: 1.5; transition: fill .5s, stroke .5s; }
.hub .node text { fill: #c5ced9; font-size: 13px; font-family: var(--font); text-anchor: middle; transition: fill .5s; }
.hub .node text.sub { fill: #6f7b8a; font-size: 10.5px; font-family: var(--mono); }
.hub .core circle { fill: #10202a; stroke: var(--accent); stroke-width: 1.5; }
.hub .core text { fill: var(--text); font-size: 15px; font-weight: 650; text-anchor: middle; font-family: var(--font); }
.hub .core text.sub { fill: var(--accent); font-size: 10.5px; font-family: var(--mono); font-weight: 400; }
.hub .pulse { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: 0; }
.hub .field { fill: none; stroke: var(--warm); stroke-width: 1.5; stroke-dasharray: 3 6; opacity: .0; transition: opacity .5s; }
.hub[data-step="1"] .field { opacity: .9; }
.hub[data-step="1"] .node.fieldable circle { stroke: var(--warm); }
.hub[data-step="2"] .spoke, .hub[data-step="3"] .spoke.before { stroke: var(--accent); stroke-width: 2; }
.hub[data-step="2"] .spoke { stroke-dasharray: 5 7; animation: flow 1.4s linear infinite reverse; }
.hub[data-step="3"] .node.before circle { fill: #10202a; stroke: var(--accent); }
.hub[data-step="3"] .node.before text { fill: #fff; }
.hub[data-step="4"] .spoke.before { stroke: var(--warm); stroke-width: 2; stroke-dasharray: 5 7; animation: flow 1.4s linear infinite; }
.hub[data-step="4"] .core circle { fill: #2a1a0b; stroke: var(--warm); }
.hub[data-step="5"] .node.after circle { fill: #10202a; stroke: var(--accent); }
.hub[data-step="5"] .spoke.after { stroke: var(--accent); stroke-width: 2; }
.hub[data-step="6"] .node circle { stroke: #5a6a7e; }
.hub[data-step="6"] .pulse { animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { r: 60; opacity: .8; } 100% { r: 250; opacity: 0; } }
.hub-legend { display: flex; gap: 18px; flex-wrap: wrap; padding: 8px 12px 6px; font-size: 12.5px; color: var(--muted); font-family: var(--mono); }
.hub-legend i { display: inline-block; width: 14px; height: 2px; vertical-align: middle; margin-right: 6px; background: var(--accent); }
.hub-legend i.w { background: var(--warm); }

/* Showcase (full-bleed) */
.showcase { position: relative; min-height: 88vh; display: flex; align-items: flex-end; overflow: hidden; padding: 0; isolation: isolate; }
.showcase video, .showcase > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.showcase::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(7,9,13,.95) 0%, rgba(7,9,13,.35) 45%, rgba(7,9,13,.1) 70%, rgba(7,9,13,.6) 100%); }
.showcase .wrap { padding-bottom: clamp(48px, 8vw, 96px); padding-top: 120px; }
.solver-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; list-style: none; padding: 0; }
.solver-strip li { font-family: var(--mono); font-size: 12.5px; padding: 6px 12px; border-radius: 999px; background: rgba(7,9,13,.6); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px); }
.solver-strip li b { color: var(--accent); font-weight: 500; margin-right: 6px; }

/* Validation */
.val-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 56px); margin-top: 56px; align-items: start; }
.chart-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 14px; }
.chart-card h3 { font-size: 17px; font-weight: 600; }
.chart-card .sub { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 14px 0 4px; font-size: 13px; color: var(--text-2); list-style: none; padding: 0; }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 16px; height: 2px; border-radius: 2px; display: inline-block; }
.multiples { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.chart { position: relative; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: #1f2630; stroke-width: 1; }
.chart .axis text { fill: var(--muted); font-size: 11px; font-family: var(--mono); }
.chart .axis-title { fill: var(--text-2); font-size: 11.5px; font-family: var(--font); }
.chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .ref { stroke: #4b5563; stroke-width: 1; }
.chart .ref-label { fill: var(--muted); font-size: 10.5px; font-family: var(--mono); }
.chart .cross { stroke: #8792a1; stroke-width: 1; }
.chart .dot { stroke: var(--surface); stroke-width: 2; }
.chart .panel-title { fill: var(--text); font-size: 13px; font-weight: 600; font-family: var(--font); }
.tooltip { position: absolute; pointer-events: none; background: #0b0e13; border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; color: var(--text); min-width: 170px; box-shadow: 0 10px 30px rgba(0,0,0,.4); opacity: 0; transition: opacity .12s; z-index: 2; }
.tooltip .t { font-family: var(--mono); color: var(--muted); font-size: 11.5px; margin-bottom: 4px; }
.tooltip .r { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.tooltip .r span { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.tooltip .r i { width: 10px; height: 2px; display: inline-block; }
.tooltip .r b { font-weight: 600; font-variant-numeric: tabular-nums; }
details.table-view { margin-top: 10px; font-size: 13.5px; color: var(--text-2); }
details.table-view summary { cursor: pointer; color: var(--muted); font-family: var(--mono); font-size: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 12px; font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.checks { display: grid; gap: 0; border-top: 1px solid var(--line); }
.check { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.check h4 { font-size: 15.5px; font-weight: 600; letter-spacing: 0; }
.check p { grid-column: 1 / -1; color: var(--muted); font-size: 14px; }
.check .v { font-family: var(--mono); font-size: 13px; color: var(--accent); white-space: nowrap; align-self: start; padding-top: 2px; }

/* Engineering */
.eng-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 56px; }
.eng { background: var(--bg); padding: 30px 28px 32px; }
.eng svg { width: 28px; height: 28px; color: var(--accent); }
.eng h3 { font-size: 19px; margin-top: 18px; }
.eng p { color: var(--text-2); font-size: 15.5px; margin-top: 10px; }
.eng .status { display: inline-block; margin-top: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--warm); border: 1px solid rgba(255,161,73,.45); border-radius: 6px; padding: 2px 8px; }

/* Compare */
.compare-wrap { margin-top: 48px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare-wrap table { min-width: 760px; }
.compare-wrap th:first-child, .compare-wrap td:first-child { padding-left: 22px; }
.compare-wrap td b { font-weight: 600; color: var(--text); }
.compare-wrap td { color: var(--text-2); }
.compare-wrap tr:last-child td { border-bottom: 0; }
.note { color: var(--muted); font-size: 14px; margin-top: 18px; max-width: 80ch; }

/* Workflow */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 56px; counter-reset: flow; list-style: none; padding: 0; }
.flow li { position: relative; padding: 26px 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.flow li::before { counter-increment: flow; content: "0" counter(flow); font-family: var(--mono); font-size: 12px; color: var(--accent); }
.flow h3 { font-size: 19px; margin-top: 12px; }
.flow p { color: var(--text-2); font-size: 15px; margin-top: 8px; }
.flow code { color: #cfe9f5; }
.trigger-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 24px; }
.code { background: #0b0e13; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; font-family: var(--mono); font-size: 13px; line-height: 1.7; color: #c9d4df; overflow-x: auto; white-space: pre; }
.code .c { color: #6b7684; }
.code .k { color: var(--accent); }
.code .s { color: #ffc58f; }

/* Gallery strip */
.gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 48px; }
.gallery figure { margin: 0; position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: #0c0f14; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; font-family: var(--mono); font-size: 10.5px; color: #fff; background: linear-gradient(0deg, rgba(7,9,13,.82), rgba(7,9,13,0)); }

/* CTA */
.cta { text-align: center; background: radial-gradient(800px 380px at 50% 0%, rgba(82,208,255,.12), transparent 70%), var(--bg-2); }
.cta .h2 { margin-left: auto; margin-right: auto; max-width: 16ch; }
.cta .lede { margin-left: auto; margin-right: auto; }
.cta .hero-cta { justify-content: center; }
.cta-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 56px; text-align: left; }
.cta-cards a { display: block; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); transition: border-color .3s, transform .3s var(--ease); }
.cta-cards a:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); }
.cta-cards h3 { font-size: 18px; display: flex; justify-content: space-between; align-items: center; }
.cta-cards p { color: var(--text-2); font-size: 15px; margin-top: 8px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.foot ul { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; padding: 0; margin: 0; }
.foot a { color: var(--text-2); }

/* Responsive */
@media (max-width: 1080px) {
  .para-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eng-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav-links, .nav .btn { display: none; }
  .nav-toggle { display: grid; }
  .site-header.is-open { background: rgba(7,9,13,.96); }
  .site-header.is-open .nav-links { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(7,9,13,.98); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .site-header.is-open .nav-links a { display: block; padding: 12px 0; font-size: 16px; }
  .divooka-grid, .coupling-grid, .val-grid, .trigger-row { grid-template-columns: 1fr; }
  .hub-sticky { position: sticky; top: 72px; z-index: 2; order: -1; }
  .hub { padding: 4px; }
  .hub svg { max-height: 30vh; margin: 0 auto; }
  .hub-legend { display: none; }
  .step { min-height: 0; padding: 22px 0 22px 20px; }
  .hero-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-specs div { padding-bottom: 6px; }
  .cta-cards { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .para-grid, .eng-grid, .flow { grid-template-columns: 1fr; }
  .multiples { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .graph-tabs .hint { display: none; }
  .hero-tools .hero-caption { display: none; }
  .only-badge { font-size: 12.5px; border-radius: 14px; align-items: flex-start; }
  .only-badge b { white-space: nowrap; }
  .btn { padding: 12px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media, .hero-inner { transform: none !important; opacity: 1 !important; }
  .ng-wire.flow, .hub .spoke, .hub .pulse { animation: none !important; }
  .card, .btn, .gallery img { transition: none; }
}
@media (forced-colors: active) {
  .btn-primary, .only-badge b { border: 1px solid ButtonText; }
}
