/* Światowid — design tokens
   Default = OBSIDIAN (dark) — palette synced with the printed wizytówka. */
:root {
  --bg: #06070A;
  --bg-2: #0B0D12;
  --bg-3: #12151C;
  --nav-height: 76px;
  --fg: #E8E4D8;
  --fg-dim: #8A8778;
  --fg-faint: #4A4840;
  --line: rgba(232, 228, 216, 0.10);
  --line-2: rgba(232, 228, 216, 0.18);
  --amber: oklch(0.78 0.14 75);
  --amber-dim: oklch(0.55 0.10 75);
  --amber-glow: oklch(0.78 0.14 75 / 0.28);
  --signal: oklch(0.72 0.18 35);
  --ok: oklch(0.75 0.14 150);

  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Inter', ui-sans-serif, system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

[data-theme="bone"] {
  --bg: #EDEAE0;
  --bg-2: #E3DFD2;
  --bg-3: #D7D2C3;
  --fg: #1A1812;
  --fg-dim: #55524A;
  --fg-faint: #8A8778;
  --line: rgba(26, 24, 18, 0.10);
  --line-2: rgba(26, 24, 18, 0.18);
  --amber: oklch(0.55 0.14 55);
  --amber-dim: oklch(0.42 0.10 55);
  --amber-glow: oklch(0.55 0.14 55 / 0.18);
}

[data-theme="steel"] {
  --bg: #0A0D11;
  --bg-2: #0F1319;
  --bg-3: #151A22;
  --amber: oklch(0.82 0.11 220);
  --amber-dim: oklch(0.60 0.10 220);
  --amber-glow: oklch(0.82 0.11 220 / 0.22);
  --signal: oklch(0.78 0.14 200);
}

[data-theme="blood"] {
  --bg: #08060A;
  --bg-2: #0E0A10;
  --bg-3: #150F18;
  --amber: oklch(0.70 0.18 20);
  --amber-dim: oklch(0.48 0.14 20);
  --amber-glow: oklch(0.70 0.18 20 / 0.22);
  --signal: oklch(0.80 0.14 40);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--fg); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
body { font-size: 15px; line-height: 1.5; letter-spacing: -0.005em; }

.mono { font-family: var(--mono); letter-spacing: 0; }
.tabular { font-variant-numeric: tabular-nums; }
.dim { color: var(--fg-dim); }
.faint { color: var(--fg-faint); }

/* Grain */
.grain {
  display: none;
}

/* Scanline overlay */
.scanlines {
  display: none;
}

/* Cursor crosshair */
.crosshair {
  position: fixed; pointer-events: none; z-index: 100; width: 18px; height: 18px; transform: translate(-50%,-50%);
  opacity: 0; transition: opacity 200ms;
}
.crosshair.on { opacity: 0.7; }
.crosshair::before, .crosshair::after { content:""; position:absolute; background: var(--amber); }
.crosshair::before { left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-50%); }
.crosshair::after { top: 50%; left: 0; height: 1px; width: 100%; transform: translateY(-50%); }

/* === NAV === */
nav.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: var(--nav-height);
  padding: 14px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
nav.top .brand { display: flex; align-items: center; gap: 8px; }
nav.top .brand .brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}
nav.top .brand .brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: scale(1.76);
  transform-origin: left center;
}
nav.top .brand .word { margin-left: 14px; font-weight: 600; letter-spacing: 0.15em; }
nav.top .links { display: flex; gap: 28px; justify-self: center; }
nav.top .links a { color: var(--fg-dim); text-decoration: none; transition: color 200ms; position: relative; }
nav.top .links a:hover { color: var(--fg); }
nav.top .links a::before { content: "["; margin-right: 2px; opacity: 0; transition: opacity 200ms; color: var(--amber); }
nav.top .links a::after { content: "]"; margin-left: 2px; opacity: 0; transition: opacity 200ms; color: var(--amber); }
nav.top .links a:hover::before, nav.top .links a:hover::after { opacity: 1; }
nav.top .right { justify-self: end; display: flex; align-items: center; gap: 20px; }
nav.top .right .status { display: flex; align-items: center; gap: 8px; color: var(--fg-dim); }
nav.top .right .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: pulse 2s infinite; }
nav.top .right .clearance {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border: 1px solid var(--amber);
  color: var(--amber);
  text-decoration: none;
  background: rgba(0, 0, 0, 0.2);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
nav.top .right .clearance:hover {
  background: var(--amber);
  color: var(--bg);
  box-shadow: 0 0 0 1px var(--amber), 0 0 22px var(--amber-glow);
}
[data-theme="bone"] nav.top .right .clearance { background: rgba(237, 234, 224, 0.65); }
[data-theme="bone"] nav.top .right .clearance:hover { background: var(--amber); color: var(--bg); }

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--fg-dim);
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}
.theme-toggle:hover { border-color: var(--amber); color: var(--amber); }
.theme-toggle:focus-visible { outline: 1px solid var(--amber); outline-offset: 2px; }
.theme-toggle svg { width: 14px; height: 14px; display: block; }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="bone"] .theme-toggle .icon-moon { display: none; }
[data-theme="bone"] .theme-toggle .icon-sun  { display: block; }

/* Hamburger + mobile drawer */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 36px; height: 36px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-2);
  cursor: pointer;
  transition: border-color 160ms ease;
}
.nav-burger:hover { border-color: var(--amber); }
.nav-burger span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--fg);
  transition: transform 240ms var(--ease), opacity 200ms ease;
  transform-origin: center;
}
.nav-burger.open { border-color: var(--amber); }
.nav-burger.open span { background: var(--amber); }
.nav-burger.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0.4); }
.nav-burger.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.nav-drawer {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: none;
  flex-direction: column;
  padding: 14px 18px 20px;
  gap: 0;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 24px 40px -24px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 240ms ease, transform 240ms var(--ease);
  pointer-events: none;
  z-index: 49;
}
[data-theme="bone"] .nav-drawer { box-shadow: 0 24px 40px -24px rgba(138,90,30,0.22); }
.nav-drawer.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-drawer a {
  padding: 16px 10px;
  color: var(--fg-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 160ms ease, padding-left 200ms ease;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-drawer a::before {
  content: '';
  width: 0; height: 1px;
  background: var(--amber);
  transition: width 200ms ease;
}
.nav-drawer a:hover,
.nav-drawer a.active { color: var(--fg); }
.nav-drawer a:hover::before,
.nav-drawer a.active::before { width: 14px; }
.nav-drawer a.drawer-cta {
  margin-top: 10px;
  justify-content: center;
  border: 1px solid var(--amber);
  color: var(--amber);
  background: transparent;
  letter-spacing: 0.16em;
  font-weight: 500;
  padding: 14px 10px;
}
.nav-drawer a.drawer-cta::before { display: none; }
.nav-drawer a.drawer-cta:hover {
  background: var(--amber);
  color: var(--bg);
}

@media (max-width: 640px) {
  .nav-burger { display: inline-flex; }
  .nav-drawer { display: flex; }
}

/* Language switcher */
.lang-switch { position: relative; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; background: transparent; color: var(--fg-dim);
  border: 1px solid var(--line-2); cursor: pointer;
  font-family: inherit; font-size: inherit; letter-spacing: inherit;
  transition: color 200ms, border-color 200ms;
}
.lang-btn:hover, .lang-btn.open { color: var(--amber); border-color: var(--amber); }
.lang-btn .lang-caret { font-size: 9px; opacity: 0.7; transition: transform 200ms; }
.lang-btn.open .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 60;
  min-width: 180px; background: var(--bg-2); border: 1px solid var(--line-2);
  display: flex; flex-direction: column;
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}
.lang-opt {
  display: flex; align-items: baseline; gap: 10px;
  padding: 8px 12px; background: transparent; color: var(--fg-dim);
  border: none; border-bottom: 1px solid var(--line);
  cursor: pointer; text-align: left;
  font-family: inherit; font-size: inherit; letter-spacing: inherit;
  transition: color 150ms, background 150ms;
}
.lang-opt:last-child { border-bottom: none; }
.lang-opt:hover { color: var(--amber); background: var(--bg-3); }
.lang-opt.active { color: var(--amber); }
.lang-opt-code { min-width: 24px; font-weight: 600; }
.lang-opt-name { font-size: 11px; letter-spacing: 0.05em; text-transform: none; font-family: var(--sans); color: inherit; opacity: 0.85; }

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* === HERO === */
.hero {
  position: relative;
  margin-top: var(--nav-height);
  height: 72vh; min-height: 560px; max-height: 780px;
  overflow: hidden;
  display: grid; grid-template-rows: 1fr auto;
}

.hero .video-wrap {
  position: absolute; inset: 0;
  background: var(--bg);
  overflow: hidden;
}
.hero video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.25) contrast(1.05) brightness(0.85) saturate(0.75);
  transition: opacity 600ms;
}
[data-theme="bone"] .hero video {
  filter: sepia(0.15) contrast(1.02) brightness(1.0) saturate(0.85);
}
.hero .video-wrap::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,7,10,0.55) 0%, rgba(6,7,10,0.35) 35%, rgba(6,7,10,0.55) 70%, rgba(6,7,10,0.92) 100%);
}
[data-theme="bone"] .hero .video-wrap::after {
  background:
    linear-gradient(180deg, rgba(237,234,224,0.6) 0%, rgba(237,234,224,0.4) 30%, rgba(237,234,224,0.7) 70%, rgba(237,234,224,0.95) 100%);
}
.hero .video-wrap::before {
  content: none;
}

/* === HERO CASE REEL === */
.hero-case-nav {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 18px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  font-family: var(--mono);
}
.hero-case-pip {
  all: unset;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 10px;
  color: var(--fg-dim);
  transition: color 200ms;
}
[data-theme="bone"] .hero-case-pip { color: #5a5548; }
.hero-case-pip:hover { color: var(--fg); }
[data-theme="bone"] .hero-case-pip:hover { color: #0a0806; }
.hero-case-pip.active { color: var(--amber); }
[data-theme="bone"] .hero-case-pip.active { color: #8A5A1E; }
.hero-case-pip-track {
  display: block;
  position: relative;
  height: 2px;
  background: rgba(140, 140, 140, 0.25);
  overflow: hidden;
}
[data-theme="bone"] .hero-case-pip-track { background: rgba(26, 24, 18, 0.2); }
.hero-case-pip-fill {
  position: absolute; inset: 0 auto 0 0;
  width: 100%;
  background: var(--amber);
  transform-origin: left center;
  transform: scaleX(0);
}
[data-theme="bone"] .hero-case-pip-fill { background: #8A5A1E; }
.hero-case-pip.active .hero-case-pip-fill {
  animation-name: caseFill;
  animation-timing-function: linear;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}
.hero-case-pip-label {
  font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

@keyframes caseFill {
  0%   { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

@media (max-width: 720px) {
  .hero-case-nav { left: 14px; right: 14px; gap: 8px; }
  .hero-case-pip-label { font-size: 9px; letter-spacing: 0.1em; }
}

.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 600ms ease;
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr;
  align-content: end;
  padding: 0 28px 148px;
  height: 100%;
}

.hero-hud {
  position: absolute;
  inset: 92px 28px 60px;
  pointer-events: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  text-transform: uppercase;
}
.hero-hud .corner { position: absolute; display: flex; flex-direction: column; gap: 6px; }
.hero-hud .tl { top: 0; left: 0; }
.hero-hud .tr { top: 0; right: 0; text-align: right; }
.hero-hud .bl { bottom: 0; left: 0; }
.hero-hud .br { bottom: 0; right: 0; text-align: right; }
.hero-hud .corner .k { color: var(--fg-faint); }
.hero-hud .corner .v { color: var(--fg); }
.hero-hud .amber { color: var(--amber); }

.hero-hud .bracket::before, .hero-hud .bracket::after {
  content: ""; position: absolute; width: 14px; height: 14px;
  border: 1px solid var(--amber);
}
.hero-hud .tl.bracket::before { top: -4px; left: -4px; border-right: none; border-bottom: none; }
.hero-hud .tr.bracket::before { top: -4px; right: -4px; border-left: none; border-bottom: none; }
.hero-hud .bl.bracket::before { bottom: -4px; left: -4px; border-right: none; border-top: none; }
.hero-hud .br.bracket::before { bottom: -4px; right: -4px; border-left: none; border-top: none; }

.hero-title {
  max-width: 1320px;
  display: grid;
  gap: 32px;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--amber);
}
.hero-eyebrow .line { width: 40px; height: 1px; background: var(--amber); }

h1.hero-h1 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(44px, 6.8vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: var(--fg);
  text-shadow: 0 2px 14px rgba(0,0,0,0.7), 0 0 26px rgba(0,0,0,0.35);
}
/* Languages with longer headlines (Polish/Czech/Slovak) get a slightly
   smaller hero so the first line stays intact instead of wrapping. */
html[lang="pl"] h1.hero-h1,
html[lang="cs"] h1.hero-h1,
html[lang="sk"] h1.hero-h1,
html[lang="uk"] h1.hero-h1 {
  font-size: clamp(38px, 5.4vw, 80px);
  letter-spacing: -0.03em;
}
[data-theme="bone"] h1.hero-h1 {
  color: #0a0806;
  text-shadow: 0 2px 18px rgba(237,234,224,0.75), 0 0 32px rgba(237,234,224,0.45);
}
[data-theme="bone"] h1.hero-h1 .thin { color: #3a3830; }
[data-theme="bone"] h1.hero-h1 em { color: #8A5A1E; }
[data-theme="bone"] .hero-sub {
  color: #1a1812;
  background: rgba(237, 234, 224, 0.78);
  backdrop-filter: blur(8px);
  padding: 18px 22px;
  border-left: 2px solid #8A5A1E;
  text-shadow: none;
  font-weight: 500;
  font-size: 16px;
}
[data-theme="bone"] .hero-sub b { color: #0a0806; font-weight: 700; }
[data-theme="bone"] .hero-ctas .btn {
  background: rgba(237, 234, 224, 0.92);
  border-color: #8A5A1E;
  color: #0a0806;
  font-weight: 600;
}
[data-theme="bone"] .hero-ctas .btn.primary {
  background: #8A5A1E;
  color: #EDEAE0;
  border-color: #8A5A1E;
}
[data-theme="bone"] .hero-ctas .btn.primary:hover {
  background: rgba(237, 234, 224, 0.95);
  color: #8A5A1E;
}
h1.hero-h1 .thin { font-weight: 300; color: var(--fg-dim); }
h1.hero-h1 em { font-style: normal; color: var(--amber); font-weight: 400; }

.hero-sub {
  max-width: 620px;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  color: var(--fg-dim);
}
.hero-sub b { color: var(--fg); font-weight: 500; }

.hero-tagline {
  font-family: var(--mono);
  font-weight: 400;
  font-size: clamp(24px, 3.4vw, 52px);
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--fg);
  max-width: 900px;
  margin: 0;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0,0,0,0.6), 0 0 22px rgba(0,0,0,0.3);
}
html[lang="pl"] .hero-tagline,
html[lang="cs"] .hero-tagline,
html[lang="sk"] .hero-tagline,
html[lang="uk"] .hero-tagline {
  font-size: clamp(20px, 2.7vw, 40px);
}
[data-theme="bone"] .hero-tagline {
  color: #2a2620;
  text-shadow: 0 1px 10px rgba(237,234,224,0.55);
}

.hero-ctas { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  border: 1px solid var(--line-2);
  background: transparent; color: var(--fg);
  cursor: pointer; text-decoration: none;
  transition: all 200ms var(--ease);
  position: relative;
}
.btn::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, transparent 40%, var(--amber-glow) 100%);
  opacity: 0; transition: opacity 200ms;
}
.btn:hover { border-color: var(--amber); color: var(--amber); }
.btn:hover::after { opacity: 1; }
.btn.primary { background: var(--amber); color: #0a0a0a; border-color: var(--amber); }
.btn.primary:hover { background: transparent; color: var(--amber); }
.btn .arrow { font-family: var(--mono); }

.hero-footstrip {
  position: relative; z-index: 3;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(6,7,10,0.6); backdrop-filter: blur(10px);
  display: grid; grid-template-columns: repeat(5, 1fr);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
}
[data-theme="bone"] .hero-footstrip {
  background: rgba(255, 253, 245, 0.85);
}
.hero-footstrip > div {
  padding: 18px 24px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.hero-footstrip > div:last-child { border-right: none; }
.hero-footstrip .k { color: var(--fg-faint); }
[data-theme="bone"] .hero-footstrip .k { color: #6a6658; }
.hero-footstrip .v { color: var(--fg); font-size: 14px; letter-spacing: 0; }
[data-theme="bone"] .hero-footstrip .v { color: #0a0806; font-weight: 500; }
.hero-footstrip .v.amber { color: var(--amber); }
[data-theme="bone"] .hero-footstrip .v.amber { color: #8A5A1E; font-weight: 600; }

/* Scroll cue */
.scroll-cue {
  position: absolute; left: 50%; bottom: 100px;
  transform: translateX(-50%);
  z-index: 4;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--fg-dim);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-cue .track { width: 1px; height: 40px; background: linear-gradient(180deg, var(--fg-dim), transparent); position: relative; }
.scroll-cue .track::after { content:""; position:absolute; top:0; left:0; width:1px; height:12px; background: var(--amber); animation: drop 1.8s infinite var(--ease); }
@keyframes drop { 0% { top: 0; opacity: 1; } 80% { opacity: 0; } 100% { top: 40px; opacity: 0; } }

/* === SECTIONS === */
section { position: relative; padding: 96px 28px; border-top: 1px solid var(--line); }

.sec-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  margin-bottom: 56px; align-items: start;
}
.sec-index {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--amber);
}
.sec-index .id { display: block; margin-top: 4px; color: var(--fg-faint); }
.sec-title {
  font-family: var(--mono); font-size: clamp(32px, 4vw, 56px); line-height: 1; letter-spacing: -0.03em;
  font-weight: 400; text-transform: uppercase;
}
.sec-title .thin { color: var(--fg-dim); font-weight: 300; }
.sec-desc { color: var(--fg-dim); font-size: 16px; line-height: 1.55; max-width: 440px; }

/* Capability grid */
.cap-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0; border: 1px solid var(--line); }
.cap {
  grid-column: span 4;
  padding: 32px 28px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 260px;
  display: grid; grid-template-rows: auto 1fr auto; gap: 16px;
  position: relative;
  transition: background 200ms;
}
.cap:hover { background: var(--bg-2); }
.cap:nth-child(3n) { border-right: none; }
.cap:nth-last-child(-n+3) { border-bottom: none; }
.cap .num { font-family: var(--mono); font-size: 10px; color: var(--amber); letter-spacing: 0.15em; }
.cap h3 { font-family: var(--mono); font-size: 20px; font-weight: 500; letter-spacing: -0.01em; text-transform: uppercase; }
.cap p { color: var(--fg-dim); font-size: 14px; line-height: 1.55; }
.cap .tag { font-family: var(--mono); font-size: 10px; color: var(--fg-faint); letter-spacing: 0.15em; text-transform: uppercase; }

.cap.big { grid-column: span 8; min-height: 320px; }
.cap.big h3 { font-size: 28px; }

/* ── Scroll-driven capabilities cube ───────────────────────────────── */
.caps-scroll { position: relative; min-height: 520vh; padding: 0; scroll-margin-top: 80px; }
.caps-intro {
  padding: 80px 60px 32px;
  max-width: 1400px; margin: 0 auto;
}
.caps-intro .sec-head { max-width: 1200px; margin-bottom: 0; }
.caps-sticky {
  position: sticky; top: 0; height: 100vh;
  padding: 32px 60px 32px; display: grid;
  align-items: center;
  overflow: clip;
}
.caps-layout {
  display: grid;
  grid-template-columns: auto 1fr minmax(280px, 380px);
  gap: 48px; align-items: center;
  min-height: 0;
}
.caps-dots { display: flex; flex-direction: column; gap: 24px; align-self: center; }
.caps-dot {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.2em; color: var(--fg-faint);
  transition: color 350ms var(--ease);
}
.caps-dot .caps-dot-mark {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line-2);
  transition: all 350ms var(--ease);
}
.caps-dot.active { color: var(--amber); }
.caps-dot.active .caps-dot-mark {
  background: var(--amber);
  box-shadow: 0 0 12px var(--amber-glow);
  transform: scale(1.5);
}

.caps-stage {
  position: relative;
  perspective: 1800px;
  perspective-origin: 50% 45%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 0;
}
/* Pillar height scales with viewport so it never exceeds the sticky
   100vh container (which would get clipped by overflow). */
.caps-cube {
  position: relative;
  width: 340px;
  height: min(640px, 64vh);
  transform-style: preserve-3d;
  transform: rotateY(0deg);
  will-change: transform;
}
.caps-face {
  position: absolute; inset: 0;
  width: 340px;
  height: min(640px, 64vh);
  padding: 26px;
  background-color: #0a0806;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid color-mix(in srgb, var(--face-tint) 55%, var(--line-2));
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04) inset, 0 30px 70px -30px color-mix(in srgb, var(--face-tint) 50%, transparent);
  display: flex; flex-direction: column; justify-content: space-between;
  backface-visibility: hidden;
  overflow: hidden;
  color: #f5f1e6;
}
.caps-face::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,7,10,0.55) 0%, rgba(6,7,10,0.08) 34%, rgba(6,7,10,0.2) 62%, rgba(6,7,10,0.92) 100%);
  pointer-events: none;
}
.face-photo-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--face-tint) 18%, transparent) 0%,
    transparent 45%,
    color-mix(in srgb, var(--face-tint) 16%, transparent) 100%);
  mix-blend-mode: overlay;
  pointer-events: none;
}

.face-0 { transform: translateZ(170px); }
.face-1 { transform: rotateY(-90deg) translateZ(170px); }
.face-2 { transform: rotateY(-180deg) translateZ(170px); }
.face-3 { transform: rotateY(-270deg) translateZ(170px); }

.face-corner {
  position: absolute; width: 16px; height: 16px;
  border-color: var(--face-tint);
  opacity: 0.95;
  z-index: 2;
}
.face-corner.tl { top: 12px; left: 12px; border-left: 1px solid; border-top: 1px solid; }
.face-corner.tr { top: 12px; right: 12px; border-right: 1px solid; border-top: 1px solid; }
.face-corner.bl { bottom: 12px; left: 12px; border-left: 1px solid; border-bottom: 1px solid; }
.face-corner.br { bottom: 12px; right: 12px; border-right: 1px solid; border-bottom: 1px solid; }

.face-head {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 6px;
}
.face-num {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--face-tint);
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
.face-tag {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(245, 241, 230, 0.86);
  text-shadow: 0 1px 2px rgba(0,0,0,0.65);
}
.face-foot {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: 14px;
}
.face-line {
  height: 1px; width: 52px;
  background: var(--face-tint);
  opacity: 0.9;
}
.face-headline {
  font-family: var(--mono); font-weight: 500;
  font-size: 26px; line-height: 1.08;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: #f5f1e6;
  text-shadow: 0 2px 14px rgba(0,0,0,0.7);
  max-width: 280px;
}

.caps-shadow {
  position: absolute; bottom: 26px; left: 50%;
  width: 360px; height: 34px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(0,0,0,0.34), transparent 70%);
  filter: blur(14px);
  pointer-events: none;
}

.caps-panel { position: relative; min-height: 260px; }
.caps-panel-item {
  position: absolute; inset: 0;
  display: grid; align-content: center; gap: 14px;
  opacity: 0; transform: translateY(12px);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
  pointer-events: none;
}
.caps-panel-item.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.caps-panel-item .panel-num {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.2em; color: var(--amber);
}
.caps-panel-item h3 {
  font-family: var(--mono); font-size: 28px; font-weight: 500;
  letter-spacing: -0.01em; text-transform: uppercase;
  line-height: 1.1;
}
.caps-panel-item p {
  color: var(--fg-dim); font-size: 14px; line-height: 1.6;
  max-width: 380px;
}
.caps-panel-item .panel-tag {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.22em; margin-top: 6px;
}

@media (max-width: 900px) {
  /* Keep the sticky scroll rotation on mobile, but give it a real scroll
     distance so the pillar doesn't whip past in 300px of scroll. */
  .caps-scroll { min-height: 520vh; }
  .caps-intro {
    padding: 56px 18px 20px;
  }
  .caps-sticky {
    padding: 24px 18px 28px;
    grid-template-rows: 1fr;
    gap: 16px;
  }
  .caps-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: 18px;
    align-content: start;
    justify-items: center;
  }
  .caps-dots { flex-direction: row; justify-content: center; gap: 16px; }
  .caps-stage { min-height: 0; width: 100%; }

  /* Shrink the pillar for phones but keep it prominent. */
  .caps-cube { width: 280px; height: 520px; }
  .caps-face { width: 280px; height: 520px; padding: 22px; }
  .face-0 { transform: translateZ(140px); }
  .face-1 { transform: rotateY(-90deg) translateZ(140px); }
  .face-2 { transform: rotateY(-180deg) translateZ(140px); }
  .face-3 { transform: rotateY(-270deg) translateZ(140px); }
  .face-headline { font-size: 22px; max-width: 220px; }
  .caps-shadow { width: 300px; }

  /* Hide the side panel on phones — the face already carries the headline. */
  .caps-panel { display: none; }
}

@media (max-width: 420px) {
  .caps-cube { width: 240px; height: 460px; }
  .caps-face { width: 240px; height: 460px; padding: 18px; }
  .face-0 { transform: translateZ(120px); }
  .face-1 { transform: rotateY(-90deg) translateZ(120px); }
  .face-2 { transform: rotateY(-180deg) translateZ(120px); }
  .face-3 { transform: rotateY(-270deg) translateZ(120px); }
  .face-headline { font-size: 20px; max-width: 180px; }
  .caps-shadow { width: 260px; }
}

/* Data sources section */
.sources {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--line);
}
.source-col { padding: 0; }
.source-col:first-child { border-right: 1px solid var(--line); }
.source-col h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  padding: 16px 24px; border-bottom: 1px solid var(--line);
  color: var(--amber);
  display: flex; justify-content: space-between; align-items: center;
}
.source-col h4 .count { color: var(--fg-faint); }
.source-row {
  display: grid; grid-template-columns: 24px 1fr auto auto; gap: 16px;
  padding: 14px 24px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em;
  align-items: center;
  transition: background 150ms;
}
.source-row:last-child { border-bottom: none; }
.source-row:hover { background: var(--bg-2); }
.source-row .idx { color: var(--fg-faint); font-size: 10px; }
.source-row .name { color: var(--fg); }
.source-row .volume { color: var(--fg-dim); font-size: 10px; }
.source-row .latency { color: var(--amber); font-size: 10px; }
.source-row .live { width: 6px; height: 6px; background: var(--ok); border-radius: 50%; box-shadow: 0 0 6px var(--ok); }

/* Dual use — two columns */
.dual {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--line);
}
.dual-panel {
  padding: 48px 40px;
  display: grid; gap: 28px; align-content: start;
  position: relative; min-height: 520px;
  overflow: hidden;
}
.dual-panel:first-child { border-right: 1px solid var(--line); }
.dual-panel .label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
  color: var(--amber);
}
.dual-panel .label::before { content: ""; width: 20px; height: 1px; background: var(--amber); }
.dual-panel h3 {
  font-family: var(--mono); font-size: 36px; line-height: 1; letter-spacing: -0.02em; text-transform: uppercase;
  font-weight: 400;
}
.dual-panel h3 .thin { color: var(--fg-dim); font-weight: 300; display: block; }
.dual-panel p { color: var(--fg-dim); font-size: 15px; line-height: 1.55; max-width: 440px; }
.dual-panel .bullets { display: grid; gap: 10px; font-family: var(--mono); font-size: 12px; }
.dual-panel .bullets li { list-style: none; display: grid; grid-template-columns: 16px 1fr; gap: 10px; color: var(--fg); }
.dual-panel .bullets li::before { content: "→"; color: var(--amber); }

.dual-panel .mini-demo {
  margin-top: auto;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  padding: 16px;
  font-family: var(--mono); font-size: 11px;
}
.dual-panel .mini-demo .hdr {
  display: flex; justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px; margin-bottom: 12px;
  color: var(--fg-faint); letter-spacing: 0.1em; text-transform: uppercase; font-size: 9px;
}
.mini-demo .bar-row {
  display: grid; grid-template-columns: 1fr 80px 50px; gap: 10px; align-items: center;
  padding: 6px 0;
}
.mini-demo .bar-row .name { color: var(--fg); font-size: 11px; }
.mini-demo .bar-row .bar { height: 4px; background: var(--bg-3); position: relative; }
.mini-demo .bar-row .bar-fill { height: 100%; background: var(--amber); transition: width 800ms var(--ease); }
.mini-demo .bar-row .pct { color: var(--amber); text-align: right; font-size: 11px; }

/* Signals ticker */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--bg-2);
}
.ticker.logo-ticker {
  background: var(--fg);
  border-top-color: rgba(6, 7, 10, 0.18);
  border-bottom-color: rgba(6, 7, 10, 0.18);
}
.ticker.logo-ticker.logo-ticker-black {
  background: var(--bg);
  border-top-color: rgba(232, 228, 216, 0.1);
  border-bottom-color: rgba(232, 228, 216, 0.1);
}
.ticker.logo-ticker.logo-ticker-black img {
  filter: url(#ticker-logo-fg);
}
.ticker.logo-ticker.logo-ticker-black img.preserve-color {
  filter: none;
}
.ticker .track {
  display: inline-flex;
  width: max-content;
  min-width: max-content;
  gap: 60px;
  padding: 18px 0;
  white-space: nowrap;
  animation: tick 240s linear infinite;
  will-change: transform;
}
.ticker.logo-ticker .track {
  padding: 28px 0;
  gap: 24px;
  align-items: center;
}
.ticker.logo-ticker img {
  max-height: 54px;
}
.ticker.logo-ticker .logo-chip {
  flex: 0 0 auto;
  padding: 0 28px;
  background: transparent;
  border: none;
  box-shadow: none;
}
[data-theme="bone"] .ticker.logo-ticker {
  background: var(--bg-2);
}
[data-theme="bone"] .ticker.logo-ticker .logo-chip {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0 28px;
}
[data-theme="bone"] .ticker.logo-ticker img {
  filter: none;
}
.ticker .item { display: inline-flex; gap: 10px; align-items: center; color: var(--fg-dim); }
.ticker .item .amber { color: var(--amber); }
.ticker .item .sep { color: var(--fg-faint); }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Forecast chart */
.forecast-block {
  border: 1px solid var(--line);
  display: grid; grid-template-columns: 1.4fr 1fr;
}
.forecast-chart { padding: 40px; border-right: 1px solid var(--line); min-height: 420px; position: relative; }
.forecast-chart .title { font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 8px; }
.forecast-chart .q { font-family: var(--mono); font-size: 18px; color: var(--fg); margin-bottom: 24px; }
.forecast-chart svg { width: 100%; height: 280px; display: block; }

.forecast-meta { padding: 40px; display: grid; gap: 20px; align-content: start; }
.forecast-meta .kv { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; }
.forecast-meta .kv .k { color: var(--fg-dim); text-transform: uppercase; letter-spacing: 0.1em; font-size: 10px; }
.forecast-meta .kv .v { color: var(--fg); letter-spacing: 0; }
.forecast-meta .kv .v.amber { color: var(--amber); }

/* === SPLIT SHOWCASE (dual-use hover split) === */
.split-container {
  position: relative;
  max-width: 1200px;
  width: 100%;
  min-height: 680px;
  margin: 0 auto 40px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  user-select: none;
  cursor: crosshair;
  touch-action: pan-y;
}
[data-theme="bone"] .split-container {
  border-color: rgba(138, 90, 30, 0.35);
  box-shadow: 0 40px 80px -40px rgba(138, 90, 30, 0.45);
}
.split-before, .split-after {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Stacking context on .split-before traps its panel (z:3) below .split-after (z:2).
   Without this, the civilian content floats above the military layer even when
   the clip-path has fully revealed the military side. */
.split-before { z-index: 1; }
.split-before::after, .split-after::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,7,10,0.88) 0%, rgba(6,7,10,0.62) 45%, rgba(6,7,10,0.72) 100%);
  pointer-events: none;
}
.split-after::after {
  background: linear-gradient(270deg, rgba(6,7,10,0.9) 0%, rgba(6,7,10,0.65) 45%, rgba(6,7,10,0.72) 100%);
}
.split-after {
  clip-path: polygon(56% 0%, 100% 0%, 100% 100%, 44% 100%);
  z-index: 2;
  will-change: clip-path;
}

.split-panel {
  position: absolute;
  top: 0; bottom: 0;
  width: 58%;
  padding: 72px 64px;
  z-index: 3;
  display: flex; flex-direction: column;
  justify-content: center;
  gap: 22px;
  color: #f5f1e6;
}
.split-panel-left { left: 0; padding-right: 40px; }
.split-panel-right { right: 0; padding-left: 40px; align-items: flex-start; text-align: left; }

.split-kicker {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  display: flex; align-items: center; gap: 14px;
}
.split-kicker::before {
  content: ''; width: 34px; height: 1px;
  background: var(--amber);
}
.split-h {
  font-family: var(--mono);
  font-size: clamp(36px, 3.8vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0;
  color: #f5f1e6;
  text-shadow: 0 2px 14px rgba(0,0,0,0.55);
}
.split-h .thin { color: rgba(245, 241, 230, 0.55); font-weight: 300; }
.split-h em { font-style: normal; color: var(--amber); }
.split-p {
  font-family: var(--sans);
  font-size: 17px; line-height: 1.55;
  color: rgba(245, 241, 230, 0.88);
  max-width: 520px;
  margin: 0;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.split-bullets {
  list-style: none;
  padding: 0; margin: 0;
  display: grid; gap: 12px;
  font-family: var(--mono);
  font-size: 14px;
  color: rgba(245, 241, 230, 0.92);
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.split-bullets li {
  display: grid; grid-template-columns: 18px 1fr;
  gap: 12px;
  line-height: 1.45;
}
.split-bullets li::before {
  content: '→';
  color: var(--amber);
}

.split-demo {
  margin-top: auto;
  font-family: var(--mono);
  background: rgba(6, 7, 10, 0.6);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(184, 130, 46, 0.35);
  padding: 12px 14px;
  display: grid; gap: 8px;
  max-width: 460px;
}
.split-demo-hdr {
  display: flex; justify-content: space-between;
  color: var(--amber);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(184, 130, 46, 0.25);
  font-size: 9px;
}
.split-row {
  display: grid; grid-template-columns: 1fr 90px 44px;
  align-items: center; gap: 10px;
  font-size: 11px;
  color: rgba(245, 241, 230, 0.92);
}
.split-row .name { font-family: var(--sans); font-size: 11.5px; line-height: 1.3; }
.split-row .bar {
  height: 4px; position: relative;
  background: rgba(245, 241, 230, 0.14);
  overflow: hidden;
}
.split-row .bar-fill {
  display: block;
  height: 100%;
  background: var(--amber);
  width: 0%;
  transition: width 900ms cubic-bezier(.22, 1, .36, 1);
}
.split-row .pct {
  font-variant-numeric: tabular-nums;
  color: var(--amber);
  text-align: right;
  font-size: 11px;
}

.split-label {
  position: absolute;
  top: 24px;
  z-index: 4;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(245, 241, 230, 0.7);
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
}
.split-label-left { left: 56px; }
.split-label-right { right: 56px; }

.split-corner {
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--amber);
  opacity: 0.85;
  z-index: 6;
  pointer-events: none;
}
[data-theme="bone"] .split-corner { border-color: var(--amber); }
.split-corner.tl { top: 10px; left: 10px; border-left: 1px solid; border-top: 1px solid; }
.split-corner.tr { top: 10px; right: 10px; border-right: 1px solid; border-top: 1px solid; }
.split-corner.bl { bottom: 10px; left: 10px; border-left: 1px solid; border-bottom: 1px solid; }
.split-corner.br { bottom: 10px; right: 10px; border-right: 1px solid; border-bottom: 1px solid; }

@media (max-width: 900px) {
  .split-container { min-height: auto; }
  .split-after { clip-path: none !important; position: relative; inset: auto; box-shadow: none; border-top: 1px solid rgba(184,130,46,0.35); }
  .split-before { position: relative; inset: auto; }
  .split-panel { position: relative; width: 100%; padding: 40px 28px; gap: 12px; top: auto; bottom: auto; }
  .split-panel-left { padding-right: 28px; }
  .split-panel-right { padding-left: 28px; }
  .split-label { top: 12px; font-size: 10px; letter-spacing: 0.18em; }
  .split-label-left { left: 28px; }
  .split-label-right { right: 28px; }
}

/* === SUPPORTED MODELS === */
.models-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
}
.model-card {
  position: relative;
  padding: 36px 24px 28px;
  display: grid; gap: 14px; align-content: start; justify-items: center;
  text-align: center;
  border-right: 1px solid var(--line);
  min-height: 260px;
  background: transparent;
  transition: background 240ms ease;
  opacity: 0; transform: translateY(8px);
  animation: modelIn 620ms cubic-bezier(.16,1,.3,1) forwards;
}
.model-card:last-child { border-right: none; }
.model-card:hover { background: rgba(184, 130, 46, 0.055); }
[data-theme="bone"] .model-card:hover { background: rgba(138, 90, 30, 0.06); }

@keyframes modelIn {
  to { opacity: 1; transform: translateY(0); }
}

.model-corner {
  position: absolute;
  width: 10px; height: 10px;
  border-color: var(--amber);
  opacity: 0;
  transition: opacity 240ms ease;
  pointer-events: none;
}
.model-corner.tl { top: 10px; left: 10px; border-left: 1px solid; border-top: 1px solid; }
.model-corner.br { bottom: 10px; right: 10px; border-right: 1px solid; border-bottom: 1px solid; }
.model-card:hover .model-corner { opacity: 0.9; }

.model-logo {
  flex: none;
  width: 96px; height: 96px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: rgba(245, 241, 230, 0.9);
  border: 1px solid var(--line);
  margin-top: 8px;
  transition: transform 240ms var(--ease), border-color 240ms ease;
}
[data-theme="bone"] .model-logo { background: #fff; border-color: rgba(138, 90, 30, 0.18); }
.model-logo img {
  display: block;
  max-width: 72%;
  max-height: 72%;
  object-fit: contain;
}
.model-card:hover .model-logo {
  transform: scale(1.05);
  border-color: var(--amber);
}
.model-name {
  font-family: var(--mono);
  font-size: 28px; font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--fg);
  line-height: 1;
  margin-top: 4px;
}
.model-tag {
  font-size: 13px; line-height: 1.45;
  color: var(--fg-dim);
  max-width: 220px;
}
.model-pub {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-top: auto;
  padding-top: 8px;
}

@media (max-width: 1000px) {
  .models-grid { grid-template-columns: repeat(3, 1fr); }
  .model-card:nth-child(3) { border-right: none; }
  .model-card:nth-child(1), .model-card:nth-child(2), .model-card:nth-child(3) { border-bottom: 1px solid var(--line); }
  .model-card:nth-child(4) { border-right: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .models-grid { grid-template-columns: repeat(1, 1fr); }
  .model-card { border-right: none; border-bottom: 1px solid var(--line); min-height: 140px; padding: 24px 18px; }
  .model-card:last-child { border-bottom: none; }
  .model-name { font-size: 22px; }
}

/* === HEART OF ŚWIATOWID === */
.heart-card {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 48px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(184,130,46,0.035), transparent 60%);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 40px 48px;
  align-items: center;
}
.heart-corner {
  position: absolute; width: 18px; height: 18px;
  border-color: var(--amber); opacity: 0.9;
  pointer-events: none;
}
.heart-corner.tl { top: 10px; left: 10px; border-left: 1px solid; border-top: 1px solid; }
.heart-corner.tr { top: 10px; right: 10px; border-right: 1px solid; border-top: 1px solid; }
.heart-corner.bl { bottom: 10px; left: 10px; border-left: 1px solid; border-bottom: 1px solid; }
.heart-corner.br { bottom: 10px; right: 10px; border-right: 1px solid; border-bottom: 1px solid; }

.heart-photo {
  position: relative;
  width: 360px; height: 360px;
  grid-row: 1 / 3;
  align-self: center; justify-self: center;
  overflow: hidden;
  border: 1px solid rgba(184, 130, 46, 0.45);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.4);
}
[data-theme="bone"] .heart-photo {
  border-color: rgba(138, 90, 30, 0.4);
  box-shadow: 0 30px 60px -30px rgba(138,90,30,0.35);
}
.heart-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.2) contrast(1.05) brightness(0.85) saturate(0.85);
  transform: scale(1.05);
  transition: transform 900ms var(--ease), filter 700ms ease;
}
[data-theme="bone"] .heart-photo img {
  filter: sepia(0.15) contrast(1.02) brightness(0.9) saturate(0.82);
}
.heart-card:hover .heart-photo img {
  transform: scale(1.1);
  filter: grayscale(0) contrast(1.1) brightness(0.95) saturate(1);
}
[data-theme="bone"] .heart-card:hover .heart-photo img {
  filter: sepia(0.08) contrast(1.05) brightness(0.95) saturate(0.95);
}
.heart-photo-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,7,10,0.25) 0%, transparent 40%, rgba(6,7,10,0.55) 100%),
    radial-gradient(ellipse at 30% 40%, transparent 0%, rgba(6,7,10,0.25) 100%);
  pointer-events: none;
}
.heart-photo-badge {
  position: absolute;
  bottom: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  background: rgba(6,7,10,0.72);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(184,130,46,0.6);
  color: #f5f1e6;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.heart-photo-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px rgba(184,130,46,0.8);
  animation: heartLivePulse 2s ease-in-out infinite;
  flex: none;
}

@keyframes heartLivePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4;  transform: scale(0.82); }
}

.heart-meta {
  grid-column: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.heart-loc-kicker, .heart-sys-kicker {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
  display: inline-flex; gap: 10px; align-items: center;
}
.heart-loc-kicker::before, .heart-sys-kicker::before {
  content: ''; width: 18px; height: 1px; background: var(--amber);
}
.heart-loc-line1, .heart-sys-name {
  font-family: var(--mono);
  font-size: 22px; font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--fg);
  line-height: 1.1;
}
.heart-loc-line2, .heart-sys-sub {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-top: 4px;
}

.heart-stats {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.heart-stat {
  display: grid;
  gap: 4px;
}
.heart-stat-v {
  font-family: var(--mono);
  font-size: 32px; font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--amber);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.heart-stat-u {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
  margin-top: 4px;
}
.heart-stat-k {
  font-family: var(--mono);
  font-size: 9px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-top: 6px;
}

@media (max-width: 900px) {
  .heart-card {
    grid-template-columns: 1fr;
    padding: 40px 28px;
    gap: 28px 0;
  }
  .heart-photo {
    grid-row: auto;
    width: 100%; height: auto;
    aspect-ratio: 16 / 9;
    max-width: 520px;
  }
  .heart-meta, .heart-stats { grid-column: 1; }
}
@media (max-width: 640px) {
  .heart-card { padding: 32px 18px; }
  .heart-photo { aspect-ratio: 16 / 10; }
  .heart-photo-badge { font-size: 8.5px; letter-spacing: 0.18em; padding: 5px 8px; bottom: 10px; left: 10px; }
  .heart-meta { grid-template-columns: 1fr; gap: 24px; }
  .heart-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; padding-top: 20px; }
  .heart-stat-v { font-size: 26px; }
  .heart-loc-line1, .heart-sys-name { font-size: 18px; }
}

/* === PARTNERS === */
.partners-grid {
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.partner-card {
  position: relative;
  padding: 36px 28px 32px;
  display: grid; gap: 12px; align-content: start;
  border-right: 1px solid var(--line);
  background: transparent;
  transition: background 260ms ease;
  opacity: 0; transform: translateY(10px);
  animation: partnerIn 620ms cubic-bezier(.16,1,.3,1) forwards;
  min-height: 200px;
  cursor: default;
}
.partners-grid:not(.is-ready) .partner-card { animation-play-state: paused; }
.partner-card:last-child { border-right: none; }
.partner-card:hover {
  background: rgba(184, 130, 46, 0.055);
}
[data-theme="bone"] .partner-card:hover { background: rgba(138, 90, 30, 0.055); }

.partner-corner {
  position: absolute;
  width: 12px; height: 12px;
  border-color: var(--amber);
  opacity: 0;
  transition: opacity 260ms ease, transform 260ms ease;
  pointer-events: none;
}
.partner-corner.tl { top: 10px;    left: 10px;  border-left: 1px solid; border-top: 1px solid;    transform: translate(4px, 4px); }
.partner-corner.tr { top: 10px;    right: 10px; border-right: 1px solid; border-top: 1px solid;   transform: translate(-4px, 4px); }
.partner-corner.bl { bottom: 10px; left: 10px;  border-left: 1px solid; border-bottom: 1px solid; transform: translate(4px, -4px); }
.partner-corner.br { bottom: 10px; right: 10px; border-right: 1px solid; border-bottom: 1px solid; transform: translate(-4px, -4px); }
.partner-card:hover .partner-corner {
  opacity: 0.9;
  transform: translate(0, 0);
}

@keyframes partnerIn {
  to { opacity: 1; transform: translateY(0); }
}

.partner-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.partner-num {
  font-family: var(--mono);
  font-size: 56px; font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.partner-desc {
  font-size: 12px;
  line-height: 1.45;
  color: var(--fg-dim);
}

@media (max-width: 1000px) {
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .partner-card:nth-child(3) { border-right: none; }
  .partner-card:nth-child(1), .partner-card:nth-child(2), .partner-card:nth-child(3) {
    border-bottom: 1px solid var(--line);
  }
  .partner-card:nth-child(4) { border-right: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-card { min-height: 180px; padding: 26px 20px 22px; }
  .partner-card:nth-child(odd) { border-right: 1px solid var(--line); }
  .partner-card:nth-child(even) { border-right: none; }
  .partner-card:not(:last-child) { border-bottom: 1px solid var(--line); }
  .partner-num { font-size: 44px; }
}

/* CTA */
.cta-final {
  padding: 140px 28px 140px;
  text-align: center;
  border-top: 1px solid var(--line);
  position: relative;
}
.cta-final h2 {
  font-family: var(--mono); font-size: clamp(40px, 6vw, 88px); line-height: 0.95; letter-spacing: -0.03em;
  text-transform: uppercase; font-weight: 400;
  max-width: 900px; margin: 0 auto 28px;
}
.cta-final h2 .thin { color: var(--fg-dim); font-weight: 300; }
.cta-final h2 em { font-style: normal; color: var(--amber); }
.cta-final p { color: var(--fg-dim); max-width: 520px; margin: 0 auto 36px; font-size: 16px; }

/* Legal pages — privacy / terms / cookies */
.legal-page { min-height: 100vh; display: flex; flex-direction: column; }
.legal-hero {
  padding: 180px 28px 60px;
  border-bottom: 1px solid var(--line);
}
.legal-hero-inner { max-width: 1000px; margin: 0 auto; }
.legal-hero .kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--amber);
  margin-bottom: 20px;
}
.legal-hero h1 {
  font-family: var(--mono); font-weight: 400;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 0.96; letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.legal-hero h1 em { font-style: normal; color: var(--amber); }
.legal-hero .meta {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--fg-faint);
}
.legal-hero .legal-canonical-note {
  margin-top: 18px;
  max-width: 720px;
  font-size: 12px; line-height: 1.6;
  color: var(--fg-faint);
  font-style: italic;
  border-left: 1px solid var(--line-2);
  padding-left: 14px;
}
.legal-body {
  flex: 1;
  padding: 72px 28px 120px;
}
.legal-body-inner { max-width: 820px; margin: 0 auto; }
.legal-body h2 {
  font-family: var(--mono); font-weight: 500;
  font-size: 22px; letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: 56px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 14px;
}
.legal-body h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.legal-body h2 .num {
  color: var(--amber); font-size: 13px; letter-spacing: 0.2em;
  font-weight: 400;
  flex-shrink: 0;
}
.legal-body p, .legal-body li {
  font-family: var(--sans); font-size: 15.5px; line-height: 1.72;
  color: var(--fg-dim);
}
.legal-body p { margin: 0 0 14px; }
.legal-body p b { color: var(--fg); font-weight: 500; }
.legal-body a { color: var(--amber); text-decoration: none; border-bottom: 1px solid rgba(184,130,46,0.4); transition: border-color 200ms var(--ease); }
.legal-body a:hover { border-bottom-color: var(--amber); }
.legal-body ul {
  list-style: none; padding: 0; margin: 0 0 18px;
  display: grid; gap: 10px;
}
.legal-body ul li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
}
.legal-body ul li::before {
  position: absolute;
  left: 0;
  top: 0;
  content: "→"; color: var(--amber); font-family: var(--mono);
}
.legal-body .callout {
  margin: 24px 0;
  padding: 22px 24px;
  border-left: 2px solid var(--amber);
  background: var(--bg-2);
  font-size: 14.5px; line-height: 1.6;
  color: var(--fg);
}

@media (max-width: 640px) {
  .legal-hero { padding: 130px 20px 48px; }
  .legal-body { padding: 56px 20px 80px; }
  .legal-body h2 { font-size: 18px; flex-direction: column; gap: 6px; }
}

/* Dataflow hover, no transforms or dot scaling so the nodes never overlap
   the connecting lines when hovered. Hover just tints stroke/fill/text. */
.df-node {
  cursor: pointer;
}
.df-node-shape {
  transition: stroke 200ms var(--ease), stroke-width 200ms var(--ease), fill 200ms var(--ease);
}
.df-input:hover .df-node-shape,
.df-output:hover .df-node-shape {
  stroke: var(--amber);
  stroke-width: 1.6;
  fill: rgba(184, 130, 46, 0.06);
}
[data-theme="bone"] .df-input:hover .df-node-shape,
[data-theme="bone"] .df-output:hover .df-node-shape {
  fill: rgba(138, 90, 30, 0.08);
}
.df-input:hover text,
.df-output:hover text {
  fill: var(--amber);
}
.df-core:hover .df-node-shape {
  fill: rgba(184, 130, 46, 0.1);
}

/* Request access modal */
.reqa-backdrop {
  position: fixed; inset: 0;
  z-index: 1000;
  background: rgba(6, 7, 10, 0.65);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 32px 20px;
  animation: reqaFadeIn 220ms var(--ease);
}
[data-theme="bone"] .reqa-backdrop { background: rgba(20, 16, 8, 0.55); }
@keyframes reqaFadeIn { from { opacity: 0; } to { opacity: 1; } }
.reqa-modal {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--line-2);
  padding: 40px 44px 36px;
  animation: reqaSlideUp 320ms var(--ease);
}
@keyframes reqaSlideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.reqa-corner {
  position: absolute; width: 14px; height: 14px;
  border-color: var(--amber);
  pointer-events: none;
}
.reqa-corner.tl { top: 10px; left: 10px; border-left: 1px solid; border-top: 1px solid; }
.reqa-corner.tr { top: 10px; right: 10px; border-right: 1px solid; border-top: 1px solid; }
.reqa-corner.bl { bottom: 10px; left: 10px; border-left: 1px solid; border-bottom: 1px solid; }
.reqa-corner.br { bottom: 10px; right: 10px; border-right: 1px solid; border-bottom: 1px solid; }
.reqa-close {
  appearance: none; background: transparent; border: none;
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px;
  font-size: 24px; line-height: 1; color: var(--fg-faint);
  cursor: pointer;
  transition: color 200ms var(--ease);
}
.reqa-close:hover { color: var(--amber); }
.reqa-head { display: grid; gap: 10px; margin-bottom: 24px; }
.reqa-kicker {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--amber);
}
.reqa-title {
  font-family: var(--mono); font-weight: 500;
  font-size: 28px; line-height: 1.1; letter-spacing: -0.015em;
  margin: 0;
  color: var(--fg);
}
.reqa-lede {
  font-family: var(--sans); font-size: 14px; line-height: 1.55;
  color: var(--fg-dim); margin: 4px 0 0;
}
.reqa-form {
  display: grid; gap: 16px;
}
.reqa-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.reqa-field { display: grid; gap: 6px; }
.reqa-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--fg-faint);
}
.reqa-field input,
.reqa-field textarea,
.reqa-field select {
  appearance: none; -webkit-appearance: none;
  width: 100%;
  padding: 11px 14px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  color: var(--fg);
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em;
  transition: border-color 180ms var(--ease), background 180ms var(--ease);
}
.reqa-field textarea {
  font-family: var(--sans); font-size: 14px; line-height: 1.55;
  resize: vertical; min-height: 96px;
}
.reqa-field input:focus,
.reqa-field textarea:focus,
.reqa-field select:focus {
  outline: none; border-color: var(--amber);
}
.reqa-select-wrap { position: relative; }
.reqa-select-wrap select {
  padding-right: 38px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  cursor: pointer;
}
.reqa-select-caret {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--amber); pointer-events: none;
  font-family: var(--mono); font-size: 11px;
}
.reqa-foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  margin-top: 8px; padding-top: 16px;
  border-top: 1px solid var(--line);
}
.reqa-routing {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--fg-faint);
}
.reqa-routing b { color: var(--amber); font-weight: 500; }

@media (max-width: 600px) {
  .reqa-backdrop { padding: 16px; }
  .reqa-modal { padding: 32px 24px 28px; }
  .reqa-row { grid-template-columns: 1fr; }
  .reqa-title { font-size: 22px; }
  .reqa-foot { flex-direction: column; align-items: stretch; }
  .reqa-foot .btn { width: 100%; justify-content: center; }
}

/* Footer — multi-column, company-grade */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  font-family: var(--mono);
  color: var(--fg-dim);
}
.site-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 28px 36px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 56px 40px;
  align-items: start;
}
.site-footer .footer-brand {
  display: grid; gap: 18px; align-content: start; justify-items: center;
  max-width: 320px;
  text-align: center;
}
.site-footer .footer-brand-row {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--mono); font-size: 16px; letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase; color: var(--fg);
  font-weight: 500;
}
.site-footer .footer-brand-row > :first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.site-footer .footer-brand-row > :last-child {
  display: block;
  line-height: 1;
}
.site-footer .footer-tagline {
  font-family: var(--sans); font-size: 13.5px; line-height: 1.6;
  color: var(--fg-dim); letter-spacing: 0; text-transform: none;
}
.site-footer .footer-status {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-faint);
  padding: 8px 12px;
  border: 1px solid var(--line);
  width: fit-content;
}
.site-footer .footer-status::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px rgba(184,130,46,0.65);
  animation: heartLivePulse 2.4s ease-in-out infinite;
}
.site-footer .footer-col {
  display: grid; gap: 16px; align-content: start;
}
.site-footer .footer-col-head {
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--amber);
}
.site-footer .footer-col ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 10px;
}
.site-footer .footer-col a {
  font-size: 13px; letter-spacing: 0.04em;
  color: var(--fg-dim); text-decoration: none;
  transition: color 200ms var(--ease), transform 200ms var(--ease);
  display: inline-block;
}
.site-footer .footer-col a:hover { color: var(--amber); transform: translateX(2px); }
.site-footer .footer-contact { display: grid; gap: 6px; }
.site-footer .footer-contact-k {
  font-size: 10px; letter-spacing: 0.2em; color: var(--fg-faint);
  text-transform: uppercase;
}
.site-footer .footer-contact-v {
  font-size: 13px; color: var(--fg); letter-spacing: 0.02em;
}
.site-footer .footer-contact-v a { font-size: inherit; color: inherit; }
.site-footer-bar {
  border-top: 1px solid var(--line);
  max-width: 1400px; margin: 0 auto;
  padding: 22px 28px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fg-faint);
}
.site-footer-bar .meta { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.site-footer-bar .meta .dot { color: var(--amber); }
.site-footer-bar .legal-links { display: flex; gap: 22px; }
.site-footer-bar .legal-links a {
  color: var(--fg-faint); text-decoration: none;
  transition: color 200ms var(--ease);
}
.site-footer-bar .legal-links a:hover { color: var(--amber); }

@media (max-width: 1000px) {
  .site-footer-inner {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 48px 36px;
  }
  .site-footer .footer-brand { grid-column: 1 / -1; max-width: 480px; }
}
@media (max-width: 640px) {
  .site-footer-inner {
    grid-template-columns: 1fr 1fr;
    padding: 60px 20px 28px;
    gap: 40px 28px;
  }
  .site-footer .footer-brand { grid-column: 1 / -1; }
  .site-footer-bar {
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Tweaks panel */
.tweaks {
  position: fixed; bottom: 20px; right: 20px; z-index: 200;
  width: 280px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  font-family: var(--mono); font-size: 11px;
  display: none;
}
.tweaks.on { display: block; }
.tweaks .head { padding: 10px 14px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--amber); letter-spacing: 0.2em; text-transform: uppercase; font-size: 9px; }
.tweaks .row { padding: 12px 14px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.tweaks .row:last-child { border-bottom: none; }
.tweaks label { color: var(--fg-dim); letter-spacing: 0.1em; text-transform: uppercase; font-size: 9px; }
.tweaks .opts { display: flex; gap: 6px; flex-wrap: wrap; }
.tweaks .opt {
  flex: 1; min-width: 0; padding: 6px 8px; text-align: center;
  background: var(--bg-3); border: 1px solid var(--line); color: var(--fg-dim);
  cursor: pointer; transition: all 150ms; font-size: 10px;
}
.tweaks .opt.active { background: var(--amber); color: #000; border-color: var(--amber); }
.tweaks .opt:hover:not(.active) { color: var(--fg); border-color: var(--line-2); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .cap { grid-column: span 6; }
  .cap:nth-child(3n) { border-right: 1px solid var(--line); }
  .cap:nth-child(2n) { border-right: none; }
  .dual, .sources, .forecast-block { grid-template-columns: 1fr; }
  .dual-panel:first-child, .source-col:first-child, .forecast-chart { border-right: none; border-bottom: 1px solid var(--line); }
  .sec-head { grid-template-columns: 1fr; gap: 20px; }
  nav.top .links { display: none; }
  .hero-footstrip { grid-template-columns: repeat(2, 1fr); font-size: 9px; }
}

/* ---- Phone layout ---- */
@media (max-width: 640px) {
  /* Nav: collapse to brand + lang switcher only */
  nav.top {
    grid-template-columns: 1fr auto;
    min-height: 64px;
    padding: 11px 14px;
    font-size: 10px;
  }
  nav.top .brand { gap: 7px; }
  nav.top .brand .brand-link { gap: 8px; }
  nav.top .brand .brand-mark { transform: scale(1.42); }
  nav.top .brand .word { margin-left: 9px; font-size: 12px; letter-spacing: 0.12em; }
  nav.top .right { gap: 10px; }
  nav.top .right .clearance { display: none; }
  .lang-btn { padding: 5px 8px; font-size: 10px; }

  /* Hero: content-sized (no dead video below the CTAs). Title top,
     breathing gap, CTAs, then pip strip — no empty space after. */
  .hero {
    height: auto;
    min-height: 0;
    max-height: none;
    margin-top: 64px;
    padding: 14px 0 18px;  /* override section{} 72px bottom */
    grid-template-rows: 1fr auto;
  }
  h1.hero-h1 {
    font-size: clamp(36px, 10.5vw, 56px);
    line-height: 1.04;
    letter-spacing: -0.025em;
  }
  [data-theme="bone"] h1.hero-h1 .thin { color: #2a2620; }
  .hero-inner {
    padding: 22px 18px 20px;
    align-content: start;
    height: auto;
  }
  .hero-title {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: none;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }
  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
    padding: 15px 18px;
    font-size: 11px;
    letter-spacing: 0.14em;
  }

  /* Hero pip nav: drop labels, pure 4-segment progress strip — and
     put it in flow so it sits flush under the CTAs (no dead video gap). */
  .hero-case-nav {
    position: relative;
    left: auto; right: auto; bottom: auto;
    margin: 14px 18px 0;
    padding: 0;
    gap: 6px;
  }
  .hero-case-pip { padding-top: 6px; }
  .hero-case-pip-label { display: none; }
  .hero-case-pip-track { height: 3px; }

  /* Split: stronger darkening so the panel copy reads over the photo */
  .split-before::after,
  .split-after::after {
    background: linear-gradient(180deg, rgba(6,7,10,0.86) 0%, rgba(6,7,10,0.78) 40%, rgba(6,7,10,0.92) 100%) !important;
  }
  .split-panel { padding: 36px 22px; }
  .split-h { font-size: 30px; }
  .split-p { font-size: 13px; }
  .split-demo { padding: 10px 12px; }
  .split-row { grid-template-columns: 1fr 64px 36px; gap: 8px; }
  .split-row .name { font-size: 11px; }

  /* Sections: less horizontal padding, tighter vertical rhythm */
  section { padding: 72px 18px; }
  .sec-title { font-size: clamp(28px, 8vw, 44px); line-height: 1.05; }
  .sec-desc { font-size: 14px; line-height: 1.55; }

  /* CTA final: stacked */
  .cta-final { padding: 80px 18px 80px; }
  .cta-final h2 { font-size: clamp(32px, 9vw, 56px); }
  .cta-final p { font-size: 14px; }
}

@media (max-height: 900px) and (min-width: 641px) {
  nav.top {
    min-height: 68px;
    padding: 10px 24px;
  }

  .hero {
    margin-top: 68px;
    height: calc(100vh - 68px - 76px);
    min-height: 0;
    max-height: none;
    padding-top: 0;
  }

  .hero video {
    object-position: center 50%;
  }

  .hero-inner {
    align-content: end;
    padding: 0 28px 96px;
  }

  .hero-title {
    gap: 18px;
  }

  h1.hero-h1 {
    font-size: clamp(34px, 4.6vw, 72px);
    line-height: 0.98;
  }

  .hero-tagline {
    font-size: clamp(18px, 2.1vw, 30px);
    max-width: 720px;
  }

  .hero-ctas {
    gap: 10px;
  }

  .hero-ctas .btn {
    padding: 11px 16px;
    font-size: 10px;
    letter-spacing: 0.13em;
  }

  .hero-case-nav {
    bottom: 12px;
    gap: 10px;
  }

  .hero-case-pip {
    gap: 4px;
    padding-top: 6px;
  }

  .hero-case-pip-label {
    font-size: 9px;
  }

  .ticker.logo-ticker .track {
    padding: 16px 0;
    gap: 20px;
  }

  .ticker.logo-ticker .logo-chip {
    padding: 0 20px;
  }

  .ticker.logo-ticker img {
    max-height: 42px;
  }
}

/* Very narrow (small phones) */
@media (max-width: 380px) {
  h1.hero-h1 { font-size: 30px; }
  .sec-title { font-size: 26px; }
  .split-h { font-size: 26px; }
  nav.top { padding: 10px 12px; }
  nav.top .brand .word { font-size: 11px; }
}
