/* =========================================================
   HEIDESON — Design System
   Editorial calm (OpenAI / Anthropic) + engineered density
   (NVIDIA / AMD / Arrow) + mono labels & metric cards (Together AI)
   ========================================================= */

:root {
  --ink: #0a0f14;
  --ink-2: #2b3540;
  --muted: #5f6b77;
  --faint: #8a949e;
  --line: #e4e8ec;
  --line-2: #d3d9df;
  --paper: #ffffff;
  --mist: #f4f6f8;
  --mist-2: #eaf1f4;

  --brand: #006f8d;          /* sampled from the Heideson mark */
  --brand-deep: #004c63;
  --brand-bright: #00a3c4;
  --cyan: #3fd5f2;

  --night: #05090d;
  --night-2: #0c141b;
  --night-3: #131e27;
  --night-line: #1f2c37;
  --night-text: #e8eef2;
  --night-muted: #93a3b0;

  /* lifecycle palette — carried over from the Heideson decks */
  --c-source: #e5336f;
  --c-develop: #f7821b;
  --c-launch: #12a3b0;
  --c-optimize: #163a6b;
  --c-continuity: #6fba3f;

  --font-display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --max: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 68px;
  --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;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--cyan); color: var(--night); }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 12px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; margin: 0; }
.display { font-size: clamp(44px, 7.2vw, 104px); letter-spacing: -0.045em; line-height: .98; font-weight: 600; }
.h1 { font-size: clamp(40px, 5.6vw, 76px); letter-spacing: -0.04em; line-height: 1.02; }
.h2 { font-size: clamp(32px, 3.9vw, 54px); letter-spacing: -0.035em; }
.h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.02em; line-height: 1.2; }
.h4 { font-size: 19px; letter-spacing: -0.01em; line-height: 1.3; }
.lead { font-size: clamp(18px, 1.55vw, 22px); line-height: 1.5; color: var(--ink-2); letter-spacing: -0.005em; }
.body-lg { font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.muted { color: var(--muted); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: currentColor; border-radius: 2px; }
.eyebrow.plain::before { display: none; }
.mono { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em; }
.grad-text { background: linear-gradient(92deg, var(--brand) 0%, var(--brand-bright) 55%, #4cc7e6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px;
  border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap;
}
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--brand); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-deep); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--cyan); }
.btn-outline-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }

.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--brand); border-bottom: 1px solid transparent; transition: border-color .2s; }
.text-link:hover { border-color: currentColor; }
.text-link .arrow { transition: transform .25s var(--ease); }
.text-link:hover .arrow { transform: translateX(3px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header.on-dark:not(.scrolled):not(.menu-open) { background: transparent; color: #fff; }
.site-header.on-dark:not(.scrolled):not(.menu-open) .brand-word { color: #fff; }
.site-header.on-dark:not(.scrolled):not(.menu-open) .nav-link { color: rgba(255,255,255,.86); }
.site-header.on-dark:not(.scrolled):not(.menu-open) .nav-link:hover { color: #fff; }
.site-header.on-dark:not(.scrolled):not(.menu-open) .header-cta { background: #fff; color: var(--ink); }
.site-header.on-dark:not(.scrolled):not(.menu-open) .menu-toggle span { background: #fff; }

.header-inner { height: 100%; display: flex; align-items: center; gap: 36px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 30px; height: 30px; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: .14em; color: var(--ink); transition: color .3s; }

.main-nav { display: flex; align-items: center; gap: 4px; height: 100%; }
.nav-item { position: static; height: 100%; display: flex; align-items: center; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  transition: color .2s, background .2s;
  background: none; border: 0;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ink); }
.nav-link[aria-current="page"] { background: var(--mist); }
.site-header.on-dark:not(.scrolled) .nav-link[aria-current="page"] { background: rgba(255,255,255,.12); }
.nav-link .chev { width: 9px; height: 9px; transition: transform .25s; opacity: .6; }
.nav-item:hover .chev, .nav-item:focus-within .chev { transform: rotate(180deg); }

.header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-cta { height: 40px; padding: 0 18px; font-size: 14px; }

/* Mega menu (NVIDIA / Arrow pattern) */
.mega {
  position: absolute; left: 0; right: 0; top: var(--header-h);
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(10,15,20,.18);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  color: var(--ink);
}
.nav-item:hover .mega, .nav-item:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega-inner { display: grid; grid-template-columns: 280px 1fr; gap: 48px; padding-top: 36px; padding-bottom: 40px; }
.mega-intro h3 { font-size: 24px; margin: 12px 0 10px; }
.mega-intro p { color: var(--muted); font-size: 14.5px; }
.mega-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.mega-cols.cols-3 { grid-template-columns: repeat(3, 1fr); }
.mega-col h4 { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.mega-col a { display: block; padding: 6px 0; font-size: 14.5px; color: var(--ink-2); transition: color .15s; }
.mega-col a:hover { color: var(--brand); }
.mega-card { display: block; padding: 18px; border-radius: var(--radius-sm); background: var(--mist); transition: background .2s; }
.mega-card:hover { background: var(--mist-2); }
.mega-card strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.mega-card span { font-size: 13.5px; color: var(--muted); line-height: 1.45; display: block; }

.menu-toggle { display: none; width: 40px; height: 40px; border: 0; background: none; position: relative; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: transform .3s, opacity .3s; }
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 24px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

.mobile-nav { display: none; }

/* ---------- Sections ---------- */
main { display: block; }
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section-tight { padding: clamp(56px, 7vw, 96px) 0; }
.section.mist { background: var(--mist); }
.section.night, .night { background: var(--night); color: var(--night-text); }
.night .lead, .night .body-lg { color: var(--night-muted); }
.night .muted { color: var(--night-muted); }
.night .eyebrow { color: var(--cyan); }
.night .text-link { color: var(--cyan); }
.hairline { border: 0; border-top: 1px solid var(--line); margin: 0; }
.night .hairline { border-color: var(--night-line); }

.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 96px); align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head .eyebrow { margin-bottom: 22px; }
.section-head.stack { grid-template-columns: 1fr; max-width: 880px; gap: 24px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; justify-items: center; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.split.top { align-items: start; }
.split-5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split-7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

.sticky-col { position: sticky; top: calc(var(--header-h) + 40px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(100vh, 980px); min-height: min(100svh, 980px);
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; background: var(--night);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform: scale(1.04); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,9,13,.55) 0%, rgba(5,9,13,0) 22%),
    linear-gradient(90deg, rgba(5,9,13,.72) 0%, rgba(5,9,13,.38) 38%, rgba(5,9,13,0) 62%),
    linear-gradient(0deg, rgba(5,9,13,.92) 0%, rgba(5,9,13,.55) 32%, rgba(5,9,13,0) 62%);
}
.hero-content { position: relative; z-index: 2; padding-top: calc(var(--header-h) + 80px); padding-bottom: clamp(56px, 8vw, 104px); width: 100%; }
.hero .eyebrow { color: var(--cyan); margin-bottom: 28px; }
.hero h1 { max-width: 13ch; }
.hero-sub { margin-top: 28px; max-width: 620px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: rgba(255,255,255,.82); }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { margin-top: clamp(48px, 7vw, 96px); padding-top: 22px; border-top: 1px solid rgba(255,255,255,.18); display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.hero-meta div { font-size: 13.5px; color: rgba(255,255,255,.72); line-height: 1.4; }
.hero-meta strong { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 11.5px; letter-spacing: .08em; color: var(--cyan); margin-bottom: 6px; }

/* Page hero (inner pages) */
.page-hero { padding: calc(var(--header-h) + clamp(64px, 9vw, 130px)) 0 clamp(56px, 7vw, 96px); position: relative; }
.page-hero .eyebrow { margin-bottom: 26px; }
.page-hero .lead { margin-top: 28px; max-width: 760px; }
.page-hero.night { overflow: hidden; }
.page-hero-media { position: relative; margin-top: clamp(48px, 6vw, 80px); border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 9; background: var(--mist); }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }

.image-hero { position: relative; min-height: min(78vh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--night); }
.image-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.image-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,9,13,.7) 0%, rgba(5,9,13,.35) 45%, rgba(5,9,13,0) 70%), linear-gradient(0deg, rgba(5,9,13,.9) 0%, rgba(5,9,13,.4) 40%, rgba(5,9,13,.1) 70%, rgba(5,9,13,.5) 100%); }
.image-hero .container { position: relative; z-index: 2; padding-top: calc(var(--header-h) + 60px); padding-bottom: clamp(56px, 7vw, 96px); }
.image-hero .eyebrow { color: var(--cyan); margin-bottom: 24px; }
.image-hero .lead { color: rgba(255,255,255,.8); margin-top: 24px; max-width: 720px; }

/* ---------- Intent cards (Start a conversation) ---------- */
.intent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.intent {
  background: #fff; padding: 32px 28px 28px; min-height: 260px;
  display: flex; flex-direction: column; gap: 18px;
  transition: background .3s var(--ease);
  position: relative;
}
.intent:hover { background: var(--mist); }
.intent img { width: 44px; height: 44px; object-fit: contain; }
.intent .num { font-family: var(--font-mono); font-size: 12px; color: var(--faint); position: absolute; top: 28px; right: 28px; }
.intent h3 { font-size: 21px; letter-spacing: -0.02em; line-height: 1.22; margin-top: auto; }
.intent p { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.intent .go { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--brand); }
.intent:hover .go .arrow { transform: translateX(3px); }
.intent .go .arrow { transition: transform .25s var(--ease); }

/* ---------- Pillars / features ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { padding: 34px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; display: flex; flex-direction: column; gap: 14px; transition: border-color .3s, transform .3s var(--ease), box-shadow .3s; }
.pillar:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: 0 24px 48px -32px rgba(10,15,20,.25); }
.pillar .idx { font-family: var(--font-mono); font-size: 12px; color: var(--brand); }
.pillar h3 { font-size: 24px; }
.pillar ul { list-style: none; padding: 0; margin: 10px 0 0; border-top: 1px solid var(--line); }
.pillar li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-2); display: flex; gap: 12px; align-items: baseline; }
.pillar li::before { content: "→"; color: var(--brand); font-size: 13px; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: 14px 0 14px 34px; border-top: 1px solid var(--line); position: relative; font-size: 16px; color: var(--ink-2); }
.check-list li:last-child { border-bottom: 1px solid var(--line); }
.check-list li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 16px; height: 16px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.night .check-list li { border-color: var(--night-line); color: var(--night-text); }
.night .check-list li::before { background-color: var(--brand-bright); }

/* ---------- Lifecycle (Source → Continuity) ---------- */
.lifecycle { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line); }
.stage { padding: 28px 24px 32px 0; border-right: 1px solid var(--line); position: relative; }
.stage + .stage { padding-left: 24px; }
.stage:last-child { border-right: 0; }
.stage::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 3px; background: var(--c); transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease); }
.stage.in::before, .in .stage::before { transform: scaleX(1); }
.stage .step { font-family: var(--font-mono); font-size: 12px; color: var(--c); letter-spacing: .06em; }
.stage h3 { font-size: 26px; margin: 14px 0 6px; }
.stage .phase { font-size: 13px; color: var(--faint); font-family: var(--font-mono); margin-bottom: 14px; }
.stage p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.stage[data-c="source"] { --c: var(--c-source); }
.stage[data-c="develop"] { --c: var(--c-develop); }
.stage[data-c="launch"] { --c: var(--c-launch); }
.stage[data-c="optimize"] { --c: var(--c-optimize); }
.stage[data-c="continuity"] { --c: var(--c-continuity); }

/* ---------- Category tiles (dark, NVIDIA/AMD) ---------- */
.cat-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-group { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--night-2); border: 1px solid var(--night-line); display: flex; flex-direction: column; min-height: 520px; transition: border-color .3s; }
.cat-group:hover { border-color: #2c4050; }
.cat-group .media { aspect-ratio: 4/3; overflow: hidden; }
.cat-group .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cat-group:hover .media img { transform: scale(1.05); }
.cat-group .body { padding: 26px 24px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cat-group .idx { font-family: var(--font-mono); font-size: 12px; color: var(--cyan); }
.cat-group h3 { font-size: 22px; color: #fff; }
.cat-group ul { list-style: none; padding: 0; margin: 8px 0 0; }
.cat-group li { font-size: 14px; color: var(--night-muted); padding: 7px 0; border-top: 1px solid var(--night-line); display: flex; gap: 10px; }
.cat-group li span { font-family: var(--font-mono); font-size: 11.5px; color: #5d6f7d; min-width: 20px; padding-top: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; color: var(--ink-2); background: #fff; white-space: nowrap; }
.chip.solid { background: var(--mist); border-color: transparent; }
.night .chip { border-color: var(--night-line); color: var(--night-text); background: transparent; }
.chip.brand { background: rgba(0,111,141,.08); border-color: transparent; color: var(--brand-deep); }

/* ---------- Industry cards ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.ind-card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 420px; color: #fff; display: flex; align-items: flex-end; grid-column: span 2; isolation: isolate; }
.ind-card.wide { grid-column: span 3; min-height: 480px; }
.ind-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
.ind-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5,9,13,.88) 0%, rgba(5,9,13,.35) 50%, rgba(5,9,13,0) 75%); }
.ind-card:hover img { transform: scale(1.05); }
.ind-card .body { padding: 28px; width: 100%; }
.ind-card .tag { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }
.ind-card h3 { font-size: clamp(24px, 2.2vw, 32px); margin: 10px 0 8px; }
.ind-card p { font-size: 14.5px; color: rgba(255,255,255,.78); max-width: 46ch; margin: 0; }
.ind-card .go { position: absolute; top: 22px; right: 22px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.14); backdrop-filter: blur(8px); display: grid; place-items: center; transition: background .3s, transform .3s var(--ease); }
.ind-card:hover .go { background: #fff; color: var(--ink); transform: rotate(-45deg); }

/* ---------- Metrics (Together AI style) ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.metric { padding: 30px 26px 30px 0; border-right: 1px solid var(--line); }
.metric + .metric { padding-left: 26px; }
.metric:last-child { border-right: 0; }
.metric .num { font-family: var(--font-display); font-weight: 500; font-size: clamp(44px, 5vw, 72px); letter-spacing: -0.045em; line-height: 1; }
.metric .num small { font-size: .5em; letter-spacing: -0.02em; margin-left: 2px; color: var(--muted); }
.metric .label { margin-top: 14px; font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.metric .k { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 18px; }
.night .metrics, .night .metric { border-color: var(--night-line); }
.night .metric .num small, .night .metric .label { color: var(--night-muted); }
.night .metric .k { color: var(--cyan); }
.metrics.cols-3 { grid-template-columns: repeat(3, 1fr); }
.metrics.cols-6 { grid-template-columns: repeat(6, 1fr); }
.metrics.cols-6 .num { font-size: clamp(34px, 3.4vw, 52px); }

/* ---------- Generic cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; background: #fff; display: flex; flex-direction: column; gap: 12px; }
.card.mist { background: var(--mist); border-color: transparent; }
.card h3 { font-size: 21px; }
.card p { font-size: 15px; color: var(--muted); }
.card .tagline { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--brand); }
.card .icon-badge { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--mist-2); color: var(--brand); }
.card .icon-badge svg { width: 22px; height: 22px; }
.night .card { background: var(--night-2); border-color: var(--night-line); }
.night .card p { color: var(--night-muted); }
.night .card .tagline { border-color: var(--night-line); color: var(--cyan); }

/* ---------- Quote / statement ---------- */
.statement { font-family: var(--font-display); font-size: clamp(30px, 4vw, 58px); line-height: 1.12; letter-spacing: -0.035em; font-weight: 500; max-width: 22ch; }
.statement .dim { color: var(--faint); }
.night .statement .dim { color: #4e5f6c; }

/* ---------- Media frames ---------- */
.frame { border-radius: var(--radius); overflow: hidden; background: var(--mist); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame.contain { background: #fff; border: 1px solid var(--line); }
.frame.contain img { object-fit: contain; }
.figure-cap { margin-top: 14px; font-size: 13px; color: var(--faint); font-family: var(--font-mono); }

/* ---------- Pain points ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.pain { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.pain .portrait { aspect-ratio: 1; background: linear-gradient(180deg, var(--mist-2), #fff); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.pain .portrait img { width: 86%; }
.pain .q { padding: 20px 20px 24px; }
.pain .q strong { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; display: block; margin-bottom: 8px; }
.pain .q p { font-size: 14px; color: var(--muted); line-height: 1.5; margin: 0; }

/* ---------- Capability matrix ---------- */
.matrix { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.matrix-row { display: grid; grid-template-columns: 170px repeat(5, 1fr); border-top: 1px solid var(--line); }
.matrix-row:first-child { border-top: 0; }
.matrix-row > div { padding: 18px 18px; border-left: 1px solid var(--line); font-size: 14px; }
.matrix-row > div:first-child { border-left: 0; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); background: var(--mist); display: flex; align-items: center; }
.matrix-head > div:not(:first-child) { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; border-top: 3px solid var(--c); }
.matrix-head > div span { display: block; font-family: var(--font-body); font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 6px; letter-spacing: 0; line-height: 1.45; }
.matrix-row ul { list-style: none; margin: 0; padding: 0; }
.matrix-row li { padding: 4px 0; color: var(--ink-2); }
.matrix-phase > div:not(:first-child) { font-family: var(--font-mono); font-size: 12px; color: var(--c); font-weight: 500; }

/* ---------- Technology page ---------- */
.tech-nav { position: sticky; top: var(--header-h); z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.tech-nav .container { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 12px; padding-bottom: 12px; }
.tech-nav .container::-webkit-scrollbar { display: none; }
.tech-nav a { flex-shrink: 0; height: 34px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 13.5px; color: var(--ink-2); border: 1px solid var(--line); transition: all .2s; }
.tech-nav a:hover { border-color: var(--ink); color: var(--ink); }
.tech-nav a.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.group-banner { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 360px; display: flex; align-items: flex-end; color: #fff; margin-bottom: 48px; isolation: isolate; }
.group-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.group-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5,9,13,.88) 0%, rgba(5,9,13,.5) 50%, rgba(5,9,13,.1) 100%); }
.group-banner .body { padding: clamp(28px, 4vw, 52px); max-width: 720px; }
.group-banner .eyebrow { color: var(--cyan); margin-bottom: 16px; }
.group-banner p { color: rgba(255,255,255,.8); margin-top: 14px; font-size: 17px; }

.cat { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 64px); padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 80px); }
.cat-head .idx { font-family: var(--font-mono); font-size: 12px; color: var(--brand); }
.cat-head h3 { font-size: clamp(26px, 2.4vw, 34px); margin: 12px 0 14px; }
.cat-head p { font-size: 15.5px; color: var(--muted); }
.cat-head .thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; }
.cat-head .thumbs.one { grid-template-columns: 1fr; }
.cat-head .thumbs.two { grid-template-columns: 1fr 1fr; }
.cat-head .thumbs img { border-radius: 10px; background: var(--mist); aspect-ratio: 1; object-fit: cover; width: 100%; border: 1px solid var(--line); }
.cat-head .thumbs.one img { aspect-ratio: 16/10; }
.sub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.sub { border: 1px solid var(--line); border-radius: 12px; padding: 22px 22px 20px; background: #fff; display: flex; flex-direction: column; gap: 12px; transition: border-color .25s, box-shadow .25s; }
.sub:hover { border-color: var(--line-2); box-shadow: 0 18px 40px -30px rgba(10,15,20,.3); }
.sub h4 { font-size: 17.5px; }
.sub .chips .chip { height: 26px; font-size: 12px; padding: 0 10px; }
.sub dl { margin: 4px 0 0; display: grid; gap: 10px; }
.sub dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 3px; }
.sub dd { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.sub dd.adv { color: var(--brand-deep); }

.coverage-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.coverage-table th { text-align: left; font-family: var(--font-mono); font-weight: 500; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--night-muted); padding: 14px 18px 14px 0; border-bottom: 1px solid var(--night-line); }
.coverage-table td { padding: 20px 18px 20px 0; border-bottom: 1px solid var(--night-line); vertical-align: top; color: var(--night-muted); line-height: 1.5; }
.coverage-table td:first-child { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 16.5px; letter-spacing: -0.01em; width: 20%; }
.table-wrap { overflow-x: auto; }

/* ---------- Industry detail ---------- */
.industry { padding: clamp(72px, 9vw, 120px) 0; border-top: 1px solid var(--line); scroll-margin-top: var(--header-h); }
.industry-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: end; margin-bottom: 48px; }
.industry-top .eyebrow { margin-bottom: 20px; }
.industry-top .sub-line { margin-top: 18px; font-size: 18px; color: var(--muted); }
.industry-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; }
.industry-media img { width: 100%; height: 100%; object-fit: cover; }
.challenge { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 18px; }
.challenge > div { padding: 30px 30px 32px; }
.challenge .ch { background: var(--mist); }
.challenge .adv { background: #fff; border-left: 1px solid var(--line); }
.challenge-title { grid-column: 1 / -1; padding: 22px 30px !important; border-bottom: 1px solid var(--line); display: flex; gap: 16px; align-items: baseline; background: #fff; }
.challenge-title .n { font-family: var(--font-mono); font-size: 12px; color: var(--brand); }
.challenge-title h3 { font-size: 21px; }
.challenge h4 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.challenge .ch h4 { color: var(--c-source); }
.challenge .adv h4 { color: var(--brand); }
.challenge ul { margin: 0; padding: 0; list-style: none; }
.challenge li { font-size: 15px; color: var(--ink-2); padding: 10px 0; border-top: 1px solid var(--line); line-height: 1.55; }
.challenge li:first-child { border-top: 0; padding-top: 0; }
.challenge li b { color: var(--ink); font-weight: 600; }
.challenge li ul { margin-top: 8px; }
.challenge li li { border: 0; padding: 3px 0 3px 16px; position: relative; font-size: 14px; color: var(--muted); }
.challenge li li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); }
.key-cats { margin-top: 26px; display: flex; gap: 20px; align-items: flex-start; }
.key-cats .mono { color: var(--faint); text-transform: uppercase; letter-spacing: .08em; padding-top: 6px; flex-shrink: 0; font-size: 11.5px; }

.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.adv-card { border-radius: var(--radius); padding: 28px 24px; background: var(--night-2); border: 1px solid var(--night-line); display: flex; flex-direction: column; gap: 14px; }
.adv-card .idx { font-family: var(--font-mono); font-size: 12px; color: var(--cyan); }
.adv-card h3 { font-size: 20px; color: #fff; line-height: 1.25; }
.adv-card dl { margin: 0; display: grid; gap: 14px; }
.adv-card dt { font-size: 14px; color: #fff; font-weight: 600; }
.adv-card dd { margin: 4px 0 0; font-size: 14px; color: var(--night-muted); line-height: 1.55; }

/* ---------- Case studies ---------- */
.case { padding: clamp(72px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.case-cell { background: #fff; padding: 28px 26px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.case-cell::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--c, var(--brand)); }
.case-cell h4 { font-size: 18px; }
.case-cell ul { margin: 0; padding: 0; list-style: none; }
.case-cell li { font-size: 14.5px; color: var(--ink-2); padding: 7px 0; line-height: 1.5; }
.case-cell .tagline { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; color: var(--brand); }
.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.kpi { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.kpi .k { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kpi .v { font-family: var(--font-display); font-size: 46px; font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.kpi .v.up { color: var(--brand); }
.kpi .v.down { color: var(--c-develop); }
.kpi p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.5; }
.radar-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: #fff; }
.radar-card svg { width: 100%; height: auto; display: block; }
.radar-legend { display: flex; gap: 18px; justify-content: center; margin-top: 10px; font-size: 12.5px; color: var(--muted); font-family: var(--font-mono); }
.radar-legend span { display: inline-flex; align-items: center; gap: 8px; }
.radar-legend i { width: 16px; height: 3px; border-radius: 2px; display: inline-block; }
.outcome { background: var(--mist); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); }
.outcome p { font-family: var(--font-display); font-size: clamp(20px, 1.9vw, 26px); line-height: 1.4; letter-spacing: -0.02em; color: var(--ink); font-weight: 450; }

/* ---------- Vision / mission ---------- */
.vm { position: relative; overflow: hidden; color: var(--ink); isolation: isolate; }
.vm > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.vm::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.55) 45%, rgba(255,255,255,.2) 100%); }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vm-card { background: rgba(255,255,255,.72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,.9); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); }
.vm-card img { width: 52px; height: 52px; object-fit: contain; margin-bottom: 26px; }
.vm-card p { font-family: var(--font-display); font-size: clamp(22px, 2.3vw, 32px); line-height: 1.22; letter-spacing: -0.025em; font-weight: 500; margin-top: 14px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 20px; background: var(--night); color: #fff; padding: clamp(48px, 7vw, 96px) clamp(28px, 6vw, 88px); isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(0,163,196,.55) 0%, rgba(0,111,141,.15) 45%, transparent 70%); z-index: -1; filter: blur(10px); }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); }
.cta-band h2 { max-width: 16ch; }
.cta-band p { margin-top: 20px; max-width: 560px; color: rgba(255,255,255,.75); font-size: 18px; }
.cta-band .actions { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.form-shell { border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 4vw, 48px); background: #fff; }
.intent-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 30px; }
.intent-picker label { position: relative; display: flex; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .2s, background .2s; font-size: 14px; font-weight: 600; letter-spacing: .01em; }
.intent-picker label:hover { border-color: var(--line-2); }
.intent-picker input { position: absolute; opacity: 0; pointer-events: none; }
.intent-picker label:has(input:checked) { border-color: var(--brand); background: rgba(0,111,141,.05); box-shadow: inset 0 0 0 1px var(--brand); }
.intent-picker img { width: 30px; height: 30px; object-fit: contain; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea { font: inherit; font-size: 15px; padding: 13px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; width: 100%; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0,111,141,.12); }
.form-note { font-size: 13px; color: var(--faint); margin-top: 16px; }
.form-success { display: none; padding: 40px 0 10px; }
.form-success.show { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--night-muted); padding: clamp(64px, 8vw, 104px) 0 40px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; padding-bottom: 64px; border-bottom: 1px solid var(--night-line); }
.footer-brand .brand-word { color: #fff; }
.footer-brand p { margin-top: 18px; max-width: 34ch; font-size: 15px; }
.footer-brand .tagline { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; color: var(--cyan); margin-top: 22px; text-transform: uppercase; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.footer-cols h4 { font-family: var(--font-mono); font-weight: 500; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-cols a { display: block; font-size: 14px; padding: 5px 0; color: var(--night-muted); transition: color .2s; }
.footer-cols a:hover { color: #fff; }
.footer-bottom { padding-top: 28px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; }
.footer-bottom .langs { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-bottom .langs span { color: #5d6f7d; }
.footer-bottom .langs span.on { color: #fff; }

/* ---------- Reveal ---------- */
.reveal { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.pending { opacity: 0; transform: translateY(18px); }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; } .reveal-d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.pending { opacity: 1; transform: none; transition: none; }
  .hero-media img { animation: none; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Utilities ---------- */
.mt-s { margin-top: 16px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 56px; } .mt-xl { margin-top: 96px; }
.mb-m { margin-bottom: 32px; }
.gap-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.center { text-align: center; }
.maxw-sm { max-width: 640px; } .maxw-md { max-width: 820px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.divider-label { display: flex; align-items: center; gap: 16px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 28px; }
.divider-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.night .divider-label::after { background: var(--night-line); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .cat-groups { grid-template-columns: repeat(2, 1fr); }
  .cat-group { min-height: 0; }
  .mega-cols { grid-template-columns: repeat(2, 1fr); }
  .mega-inner { grid-template-columns: 220px 1fr; }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .pain-grid { grid-template-columns: repeat(3, 1fr); }
  .metrics.cols-6 { grid-template-columns: repeat(3, 1fr); }
  .metrics.cols-6 .metric:nth-child(3) { border-right: 0; }
  .metrics.cols-6 .metric:nth-child(4) { padding-left: 0; }
  .metrics.cols-6 .metric:nth-child(n+4) { border-top: 1px solid var(--line); }
}

@media (max-width: 980px) {
  :root { --header-h: 62px; }
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav {
    display: block; position: fixed; inset: var(--header-h) 0 0 0; background: #fff; z-index: 99;
    padding: 20px var(--gutter) 40px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s;
  }
  .menu-open .mobile-nav { opacity: 1; visibility: visible; transform: none; }
  .mobile-nav a.m-link { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
  .mobile-nav .btn { margin-top: 28px; width: 100%; justify-content: center; }
  body.no-scroll { overflow: hidden; }

  .section-head, .split, .split-5-7, .split-7-5, .industry-top, .footer-top { grid-template-columns: 1fr; }
  .section-head { align-items: start; }
  .sticky-col { position: static; }
  .intent-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars, .card-grid, .card-grid.cols-4 { grid-template-columns: 1fr 1fr; }
  .lifecycle { grid-template-columns: 1fr; }
  .stage { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 0 !important; }
  .ind-grid { grid-template-columns: 1fr 1fr; }
  .ind-card, .ind-card.wide { grid-column: span 1; min-height: 380px; }
  .ind-card.wide:first-child { grid-column: span 2; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(3) { padding-left: 0; }
  .metric:nth-child(n+3) { border-top: 1px solid var(--line); }
  .night .metric:nth-child(n+3) { border-top-color: var(--night-line); }
  .metrics.cols-3 { grid-template-columns: 1fr; }
  .metrics.cols-3 .metric { border-right: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .hero-meta { grid-template-columns: repeat(3, 1fr); }
  .cat { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr 1fr; }
  .vm-grid { grid-template-columns: 1fr; }
  .matrix { overflow-x: auto; }
  .matrix-row { min-width: 920px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .challenge { grid-template-columns: 1fr; }
  .challenge .adv { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .intent-grid, .pillars, .card-grid, .card-grid.cols-2, .card-grid.cols-4, .cat-groups, .adv-grid, .case-grid, .kpi-grid { grid-template-columns: 1fr; }
  .intent { min-height: 0; }
  .ind-grid { grid-template-columns: 1fr; }
  .ind-card, .ind-card.wide, .ind-card.wide:first-child { grid-column: span 1; min-height: 340px; }
  .pain-grid { grid-template-columns: 1fr 1fr; }
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .hero-meta div:last-child { display: none; }
  .metrics, .metrics.cols-6 { grid-template-columns: 1fr 1fr; }
  .intent-picker, .field-grid { grid-template-columns: 1fr; }
  .group-banner { min-height: 300px; }
  .footer-bottom { flex-direction: column; }
}

.metrics.cols-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 980px) {
  .metrics.cols-5 { grid-template-columns: 1fr; }
  .metrics.cols-5 .metric { border-right: 0; padding: 20px 0; border-top: 1px solid var(--line); }
}

/* ---------- Language switch ---------- */
.lang-switch { font-size: 14px; font-weight: 500; color: var(--ink-2); padding: 8px 12px; border-radius: 999px; transition: background .2s, color .2s; }
.lang-switch:hover { background: var(--mist); color: var(--ink); }
.site-header.on-dark:not(.scrolled):not(.menu-open) .lang-switch { color: rgba(255,255,255,.86); }
.site-header.on-dark:not(.scrolled):not(.menu-open) .lang-switch:hover { background: rgba(255,255,255,.12); color: #fff; }
.footer-bottom .langs a { color: var(--night-muted); transition: color .2s; }
.footer-bottom .langs a:hover { color: #fff; }
@media (max-width: 980px) { .lang-switch { padding: 8px 6px; } }

/* ---------- Simplified Chinese ---------- */
html[lang="zh-CN"] body { font-family: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; line-height: 1.75; }
html[lang="zh-CN"] h1, html[lang="zh-CN"] h2, html[lang="zh-CN"] h3, html[lang="zh-CN"] h4,
html[lang="zh-CN"] .statement, html[lang="zh-CN"] .vm-card p, html[lang="zh-CN"] .outcome p, html[lang="zh-CN"] .pain .q strong {
  font-family: "Inter Tight", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; letter-spacing: 0; font-weight: 600;
}
html[lang="zh-CN"] .display { line-height: 1.12; letter-spacing: -0.01em; }
html[lang="zh-CN"] .h1 { line-height: 1.18; letter-spacing: 0; }
html[lang="zh-CN"] .h2 { line-height: 1.25; }
html[lang="zh-CN"] .statement { line-height: 1.3; font-weight: 500; }
html[lang="zh-CN"] .lead, html[lang="zh-CN"] .body-lg { line-height: 1.8; letter-spacing: 0; }
html[lang="zh-CN"] .eyebrow, html[lang="zh-CN"] .mono, html[lang="zh-CN"] .mega-col h4, html[lang="zh-CN"] .footer-cols h4,
html[lang="zh-CN"] .metric .k, html[lang="zh-CN"] .kpi .k, html[lang="zh-CN"] .sub dt, html[lang="zh-CN"] .divider-label, html[lang="zh-CN"] .challenge h4 {
  font-family: "JetBrains Mono", "Noto Sans SC", "PingFang SC", monospace; letter-spacing: .06em;
}
html[lang="zh-CN"] .brand-word { font-family: var(--font-display); }
h1, h2, h3, .statement { text-wrap: balance; }
html[lang="zh-CN"] p, html[lang="zh-CN"] li { text-wrap: pretty; }

/* ---------- Technical deep-dive panels ---------- */
.cat > .deep { grid-column: 1 / -1; }
.deep { border: 1px solid var(--line); border-radius: 12px; background: var(--mist); margin-top: 4px; }
.deep > summary { list-style: none; cursor: pointer; padding: 16px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.deep > summary::-webkit-details-marker { display: none; }
.deep > summary::after { content: "+"; font-size: 18px; color: var(--brand); transition: transform .25s var(--ease); }
.deep[open] > summary::after { transform: rotate(45deg); }
.deep > summary:hover { color: var(--ink); }
.deep-body { padding: 4px 22px 24px; display: grid; gap: 22px; }
.deep-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.deep h5 { font-family: var(--font-display); font-size: 16px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.01em; }
.deep p, .deep li { font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.deep ul { margin: 0; padding-left: 18px; }
.deep li { margin: 4px 0; }
.deep .src-note { font-size: 12.5px; color: var(--faint); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: #fff; border-radius: 10px; overflow: hidden; }
.spec-table th { text-align: left; font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; background: var(--mist-2); border-bottom: 1px solid var(--line); }
.spec-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); line-height: 1.5; min-width: 140px; }
.spec-table td:first-child { font-weight: 600; color: var(--ink); min-width: 120px; }
.spec-table tr:last-child td { border-bottom: 0; }
.diagram { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; overflow-x: auto; }
.diagram svg { display: block; min-width: 760px; width: 100%; height: auto; }
.market-note { border-left: 3px solid var(--brand); background: #fff; padding: 14px 18px; border-radius: 0 10px 10px 0; }

/* illustrations & icon tiles */
.cat-head .thumbs.illu img { aspect-ratio: 16/10; object-fit: cover; background: #eef5f8; border-color: var(--line); }
.pain .portrait { align-items: center; background: linear-gradient(180deg, var(--mist-2), #fff); }
.pain .portrait img { width: 42%; }
.intent img, .intent-picker img { object-fit: contain; }
.vm-card img { width: 56px; height: 56px; }
.cat-head .thumbs.photo img { aspect-ratio: 3/2; object-fit: cover; background: #e9edf0; }
@media (max-width: 760px) { .hero-media img { object-position: 72% 40%; } }
