/* ---------- Telegraf (PangramPangram) ----------
   Drop the licensed .woff2 files into src/assets/fonts/ with these names.
   Until they are present the stack falls back to Inter / system sans. */
@font-face {
  font-family: "Telegraf";
  src: url("/assets/fonts/PPTelegraf-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Telegraf";
  src: url("/assets/fonts/PPTelegraf-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Telegraf";
  src: url("/assets/fonts/PPTelegraf-Semibold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Telegraf";
  src: url("/assets/fonts/PPTelegraf-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ==========================================================================
   Conium AI — main stylesheet
   Light, technical, grid-driven. Brand blue #2489c4 on white.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --bg-tint: #eef6fb;
  --ink: #0e1c2b;
  --ink-2: #33414f;
  --muted: #6a7684;
  --line: #dfe5ec;
  --line-strong: #c3cdd8;
  --brand: #2489c4;
  --brand-600: #1c74a9;
  --brand-700: #155c88;
  --brand-800: #10476a;
  --brand-200: #b9dcf0;
  --brand-100: #d9ecf7;
  --brand-50: #eef6fb;
  --warn: #e39a2f;
  --radius: 4px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --font-sans: "Telegraf", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 500; letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
strong { font-weight: 600; color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
::selection { background: var(--brand-100); color: var(--ink); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container-narrow { width: min(100% - 2 * var(--gutter), 820px); margin-inline: auto; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }

/* ---------- typography ---------- */
.display { font-size: clamp(2rem, 3.9vw, 3.2rem); line-height: 1.06; letter-spacing: -0.03em; }
h1.page-title { font-size: clamp(2.2rem, 4.6vw, 3.6rem); letter-spacing: -0.03em; line-height: 1.05; }
h2, .h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); letter-spacing: -0.028em; }
h3, .h3 { font-size: clamp(1.25rem, 1.9vw, 1.55rem); letter-spacing: -0.018em; }
h4 { font-size: 1rem; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.05rem, 1.35vw, 1.25rem); line-height: 1.55; color: var(--ink-2); }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.text-brand { color: var(--brand-700); }
.measure { max-width: 62ch; }

.eyebrow {
  display: inline-flex; align-items: flex-start; gap: .65em;
  font-family: var(--font-mono); font-size: .74rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand-700);
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; margin-top: .48em; background: var(--brand); flex: none; }
.eyebrow-light { color: #fff; }
.eyebrow-light::before { background: #fff; }

.num { font-family: var(--font-mono); font-size: .8rem; font-weight: 500; color: var(--brand); letter-spacing: .06em; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.35rem; border: 1px solid var(--ink); border-radius: var(--radius);
  font-weight: 500; font-size: .95rem; line-height: 1; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--brand-700); }
.btn-light:hover { background: var(--brand-50); }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-sm { padding: .65rem 1rem; font-size: .875rem; }
.btn .arrow { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; color: var(--brand-700);
}
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow:hover { color: var(--brand); }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; /* solid: backdrop-filter blur is a common scroll-jank source */
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); font-weight: 500; font-size: 1.28rem; letter-spacing: -0.02em; }
.brand .logo-lockup { width: auto; height: 30px; flex: none; }
.site-footer .brand .logo-lockup { height: 32px; }
.brand-name { white-space: nowrap; }

.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.nav { display: flex; align-items: center; gap: .15rem; }
.nav > li > a, .nav-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem .85rem; border-radius: var(--radius);
  font-size: .95rem; font-weight: 500; color: var(--ink-2);
  transition: color .15s, background .15s;
}
.nav > li > a:hover, .nav-btn:hover, .nav > li > a.active, .has-menu.open .nav-btn { color: var(--ink); background: var(--bg-soft); }
.nav > li > a.active { color: var(--brand-700); }
.chev { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.has-menu { position: relative; }
.has-menu:hover .chev, .has-menu.open .chev, .has-menu:focus-within .chev { transform: rotate(180deg); }
.menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 360px;
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 24px 60px -24px rgba(14,28,43,.28), 0 2px 6px rgba(14,28,43,.05);
  padding: .5rem;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.has-menu:hover .menu, .has-menu:focus-within .menu, .has-menu.open .menu { opacity: 1; visibility: visible; transform: none; }
.menu a {
  display: grid; grid-template-columns: 2rem 1fr; column-gap: .5rem; row-gap: .1rem;
  padding: .7rem .75rem; border-radius: var(--radius); transition: background .15s;
}
.menu a:hover { background: var(--brand-50); }
.menu .n { font-family: var(--font-mono); font-size: .7rem; color: var(--brand); padding-top: .25em; }
.menu .t { font-weight: 500; color: var(--ink); font-size: .95rem; }
.menu .d { grid-column: 2; font-size: .8rem; color: var(--muted); line-height: 1.4; }
.menu .menu-all { display: flex; justify-content: space-between; margin-top: .25rem; border-top: 1px solid var(--line); border-radius: 0; padding: .85rem .75rem .5rem; font-weight: 500; color: var(--brand-700); font-size: .9rem; }

.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; border-radius: var(--radius); }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .25s var(--ease), opacity .2s; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 959px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-top: 1px solid var(--line);
    padding: 1rem var(--gutter) 2rem; overflow-y: auto;
    transform: translateX(100%); transition: transform .3s var(--ease);
  }
  body.nav-open .site-nav { transform: none; }
  body.nav-open { overflow: hidden; }
  .nav { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > li { border-bottom: 1px solid var(--line); }
  .nav > li > a, .nav-btn { width: 100%; padding: 1rem .25rem; font-size: 1.1rem; justify-content: space-between; border-radius: 0; }
  .nav > li > a:hover, .nav-btn:hover, .has-menu.open .nav-btn { background: none; }
  .menu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0;
    padding: 0 0 .5rem; min-width: 0; display: none;
  }
  .has-menu.open .menu { display: block; }
  .nav-cta { margin-top: 1.25rem; align-self: flex-start; padding: .85rem 1.25rem; font-size: 1rem; }
}

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-soft { background: var(--bg-soft); }
.section-tint { background: var(--bg-tint); }
.section-line { border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head h2 { margin-bottom: 0; }
.section-head .lead { margin: 0; }
.section-head.single { grid-template-columns: minmax(0, 760px); }
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; gap: 1rem; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .55;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.55) 60%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.55) 60%, transparent 100%);
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(2rem, 5vw, 5rem);
  align-items: center; padding: clamp(2rem, 4.5vw, 4rem) 0 clamp(2rem, 4vw, 3.5rem);
  min-height: min(calc(100vh - var(--header-h)), 820px);
}
.hero-copy .display { margin-bottom: 1rem; }
.hero-copy .lead { max-width: 54ch; margin-bottom: 1.5rem; font-size: clamp(1rem, 1.1vw, 1.1rem); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1.75rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hero-meta span::before { content: "//"; color: var(--brand); margin-right: .6em; }

.hero-visual { position: relative; aspect-ratio: 1 / 1; max-height: 640px; width: 100%; }
.hero-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.frame-corners::before, .frame-corners::after, .frame-corners .c3, .frame-corners .c4 {
  content: ""; position: absolute; width: 18px; height: 18px; border-color: var(--brand); border-style: solid; pointer-events: none;
}
.frame-corners::before { top: 0; left: 0; border-width: 1.5px 0 0 1.5px; }
.frame-corners::after { top: 0; right: 0; border-width: 1.5px 1.5px 0 0; }
.frame-corners .c3 { bottom: 0; left: 0; border-width: 0 0 1.5px 1.5px; }
.frame-corners .c4 { bottom: 0; right: 0; border-width: 0 1.5px 1.5px 0; }
.hero-visual .tag { position: absolute; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: rgba(255,255,255,.85); padding: .25rem .5rem; }
.hero-visual .tag-tl { top: 12px; left: 12px; }
.hero-visual .tag-br { bottom: 12px; right: 12px; color: var(--brand-700); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual { max-height: 460px; aspect-ratio: 4 / 3; order: 2; }
}

/* Short viewports (small laptops): keep headline, buttons and meta above the fold */
@media (min-width: 901px) and (max-height: 860px) {
  .hero-inner { padding: 2rem 0 2.25rem; min-height: calc(100vh - var(--header-h)); }
  .hero-copy .display { font-size: clamp(1.9rem, 3.1vw, 2.6rem); margin-bottom: .85rem; }
  .hero-copy .lead { margin-bottom: 1.25rem; font-size: 1rem; line-height: 1.5; }
  .hero-meta { margin-top: 1.25rem; gap: 1rem; }
  .hero-visual { max-height: min(56vh, 480px); }
}

@media (min-width: 901px) and (max-height: 720px) {
  .hero-inner { padding: 1.5rem 0 1.75rem; }
  .hero-copy .display { font-size: clamp(1.7rem, 2.7vw, 2.2rem); }
  .hero-copy .lead { font-size: .95rem; margin-bottom: 1.1rem; }
  .hero-meta { display: none; }
  .hero-visual { max-height: min(50vh, 400px); }
}

/* ---------- lifecycle strip ---------- */
.lifecycle { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.lifecycle-inner { display: flex; align-items: center; gap: 1.5rem; padding: 1rem 0; overflow-x: auto; scrollbar-width: none; }
.lifecycle-inner::-webkit-scrollbar { display: none; }
.lifecycle-label { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; padding-right: 1.5rem; border-right: 1px solid var(--line-strong); }
.lifecycle ol { display: flex; flex: 1; justify-content: space-between; gap: 1.25rem; }
.lifecycle li { display: flex; align-items: center; gap: 1.25rem; white-space: nowrap; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.lifecycle li::after { content: "→"; color: var(--brand); }
.lifecycle li:last-child::after { content: "↺"; }

/* ---------- product rows ---------- */
.product-list { border-top: 1px solid var(--line); }
.product-row {
  display: grid; grid-template-columns: 4rem minmax(0, 1.05fr) minmax(0, 1fr) 22rem;
  gap: 2rem 2.5rem; align-items: center; padding: clamp(1.75rem, 3vw, 2.75rem) 0;
  border-bottom: 1px solid var(--line); position: relative;
}
.product-row .num { padding-top: .35rem; align-self: start; }
.product-row h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); margin-bottom: .35rem; transition: color .2s; }
.product-row:hover h3 { color: var(--brand-700); }
.product-row .tag { color: var(--muted); font-size: .95rem; }
.product-row .desc { font-size: .95rem; }
.product-row .desc p { margin-bottom: .9rem; }
.product-row .viz { border: 1px solid var(--line); background: #fff; aspect-ratio: 4 / 3; overflow: hidden; transition: border-color .2s, transform .35s var(--ease), box-shadow .35s var(--ease); }
.product-row:hover .viz { border-color: var(--brand-200); transform: translateY(-3px); box-shadow: 0 24px 40px -28px rgba(14,28,43,.35); }
.product-row .viz svg { width: 100%; height: 100%; }
.product-row .row-link { position: absolute; inset: 0; }
.product-row .row-link:focus-visible { outline-offset: -2px; }
.product-row .desc a { position: relative; z-index: 1; }
@media (max-width: 1100px) {
  .product-row { grid-template-columns: 3rem minmax(0, 1fr) 18rem; }
  .product-row .desc { grid-column: 2; }
  .product-row .viz { grid-column: 3; grid-row: 1 / span 2; }
}
@media (max-width: 720px) {
  .product-row { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .product-row .viz { grid-column: 1 / -1; grid-row: auto; max-width: 480px; }
  .product-row .desc { grid-column: 2; }
}

/* ---------- photo band ---------- */
.band { position: relative; overflow: hidden; color: #fff; min-height: clamp(380px, 52vw, 560px); display: grid; align-items: end; isolation: isolate; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(16,71,106,.12) 0%, rgba(14,28,43,.35) 55%, rgba(14,28,43,.78) 100%); }
.band-inner { padding: clamp(2.5rem, 6vw, 5rem) 0; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 2rem; align-items: end; }
.band h2, .band h3 { color: #fff; }
.band .lead { color: rgba(255,255,255,.88); }
.band .eyebrow { color: #fff; }
.band .eyebrow::before { background: #fff; }
.band figcaption, .photo-credit { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.65); }
@media (max-width: 800px) { .band-inner { grid-template-columns: 1fr; } }

.photo { position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-16x9 { aspect-ratio: 16 / 9; }
.photo-4x3 { aspect-ratio: 4 / 3; }
.photo-3x4 { aspect-ratio: 3 / 4; }
.photo-21x9 { aspect-ratio: 21 / 9; }
.photo .caption { position: absolute; left: 12px; bottom: 12px; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); background: rgba(255,255,255,.9); padding: .3rem .55rem; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: #fff; padding: clamp(1.5rem, 2.5vw, 2.25rem); display: flex; flex-direction: column; gap: .75rem; transition: background .2s; }
.card:hover { background: var(--brand-50); }
.card .num { margin-bottom: 1.25rem; }
.card h3 { font-size: 1.15rem; margin: 0; }
.card p { font-size: .95rem; margin: 0; }
.card .link-arrow { margin-top: auto; padding-top: .75rem; font-size: .9rem; }
.card-icon { width: 40px; height: 40px; color: var(--brand); margin-bottom: .5rem; }
@media (max-width: 900px) { .cards, .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards, .cards-2, .cards-4 { grid-template-columns: 1fr; } }

/* ---------- split / two-column blocks ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split .lead { margin-bottom: 1.5rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

/* ---------- lists ---------- */
.check-list { display: grid; gap: .55rem; }
.check-list li { position: relative; padding-left: 1.5rem; font-size: .95rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border: 1.5px solid var(--brand); }
.check-list.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
@media (max-width: 560px) { .check-list.cols-2 { grid-template-columns: 1fr; } }

.mono-list li { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.value { background: var(--brand-50); border-left: 3px solid var(--brand); padding: 1.1rem 1.4rem; margin-top: 1.5rem; }
.value .label { display: block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-700); margin-bottom: .35rem; }
.value p { margin: 0; font-size: .95rem; color: var(--ink); }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: #fff; padding: 1.5rem; }
.stat .k { display: block; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.stat .v { display: block; font-size: 1.25rem; font-weight: 500; color: var(--ink); letter-spacing: -0.02em; }

/* ---------- product page ---------- */
.page-hero { position: relative; padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .45;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%); mask-image: linear-gradient(180deg, #000, transparent 90%);
}
.page-hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.page-hero .tagline { font-size: clamp(1.15rem, 1.6vw, 1.4rem); color: var(--ink); font-weight: 500; letter-spacing: -0.01em; margin-bottom: 1rem; }
.page-hero .lead { max-width: 56ch; margin-bottom: 1.75rem; }
.page-hero .viz { border: 1px solid var(--line); background: #fff; aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.page-hero .viz svg { width: 100%; height: 100%; }
@media (max-width: 900px) { .page-hero-inner { grid-template-columns: 1fr; } }

.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.5rem; }
.breadcrumb a:hover { color: var(--brand-700); }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--line-strong); }

.module { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); padding: clamp(3rem, 6vw, 5rem) 0; border-top: 1px solid var(--line); }
.module:first-child { border-top: 0; }
.module .num { display: block; margin-bottom: 1rem; }
.module h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); margin-bottom: .5rem; }
.module .tagline { font-size: 1.1rem; color: var(--ink); font-weight: 500; margin-bottom: 1rem; }
.module-side h4 { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 1rem; }
@media (max-width: 860px) { .module { grid-template-columns: 1fr; gap: 2rem; } }

.questions { display: grid; gap: .75rem; }
.questions li { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.25rem; border: 1px solid var(--line); background: #fff; font-size: 1rem; color: var(--ink); }
.questions li::before { content: "?"; flex: none; width: 26px; height: 26px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); font-family: var(--font-mono); font-size: .8rem; border: 1px solid var(--brand-100); }

.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: .4rem .65rem; border: 1px solid var(--line-strong); color: var(--ink-2); background: #fff; }

/* ---------- ecosystem diagram ---------- */
.eco { display: grid; gap: .5rem; }
.eco-steps { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .5rem; }
.eco-step { border: 1px solid var(--line-strong); background: #fff; padding: .9rem .6rem; text-align: center; position: relative; }
.eco-step .k { display: block; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; color: var(--brand); margin-bottom: .3rem; }
.eco-step .t { display: block; font-weight: 500; color: var(--ink); font-size: .9rem; letter-spacing: -0.01em; }
.eco-step + .eco-step::before { content: "→"; position: absolute; left: -.5rem; top: 50%; transform: translate(-50%, -50%); color: var(--brand); font-size: .8rem; background: var(--bg-soft); padding: 0 .1rem; z-index: 1; }
.eco-products { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .5rem; }
.eco-product { background: var(--brand-50); border: 1px solid var(--brand-100); padding: .7rem .6rem; font-size: .8rem; line-height: 1.35; color: var(--brand-800); text-align: center; display: flex; align-items: center; justify-content: center; }
.eco-product a { color: inherit; }
.eco-product a:hover { text-decoration: underline; }
.eco-product.wide { grid-column: 1 / -1; background: var(--brand-700); border-color: var(--brand-700); color: #fff; padding: 1rem; font-size: .9rem; }
.eco-product.wide a { color: #fff; }
@media (max-width: 860px) {
  .eco-steps, .eco-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eco-step + .eco-step::before { display: none; }
  .eco-product.wide { grid-column: 1 / -1; }
}

/* ---------- CTA ---------- */
.cta { background: linear-gradient(115deg, var(--brand-700) 0%, var(--brand) 100%); color: #fff; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); }
.cta-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 2rem; align-items: center; padding: clamp(3.5rem, 7vw, 6rem) 0; }
.cta h2 { color: #fff; margin-bottom: .75rem; }
.cta p { color: rgba(255,255,255,.85); max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: flex-end; }
@media (max-width: 800px) { .cta-inner { grid-template-columns: 1fr; } .cta-actions { justify-content: flex-start; } }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: clamp(3rem, 6vw, 5rem) 0 2rem; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.footer-brand p { max-width: 34ch; margin: 1.25rem 0; color: var(--ink-2); }
.footer-col h4 { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 1rem; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a:hover { color: var(--brand-700); }
.social { display: inline-flex; align-items: center; gap: .6rem; font-weight: 500; color: var(--ink); padding: .55rem .9rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; transition: border-color .2s, color .2s; }
.social svg { width: 18px; height: 18px; color: #0a66c2; }
.social:hover { border-color: var(--brand); color: var(--brand-700); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.footer-bottom a:hover { color: var(--brand-700); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .85rem; font-weight: 500; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem; color: var(--ink); background: #fff;
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: .75rem .9rem; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.field textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--muted); }
.hidden { display: none !important; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- contact / company helpers ---------- */
.info-list { display: grid; gap: 1.5rem; }
.info-list h4 { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: .4rem; }
.info-list p { margin: 0; }
.prose p { margin-bottom: 1.1em; }
.prose h3 { margin-top: 2rem; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.notfound .code { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .2em; color: var(--brand); margin-bottom: 1rem; }

/* ---------- viz (inline SVG illustrations) ---------- */
.viz svg text { font-family: var(--font-mono); }
.viz-static svg * { animation: none !important; }
/* Illustrations only animate while on screen (main.js toggles .is-visible); paused SVG animations cost no paint. */
.js .viz:not(.is-visible) svg * { animation-play-state: paused; }

@keyframes viz-scan { 0% { transform: translateY(0); } 50% { transform: translateY(var(--scan, 120px)); } 100% { transform: translateY(0); } }
@keyframes viz-dash { to { stroke-dashoffset: -40; } }
@keyframes viz-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes viz-blink { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }
@keyframes viz-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes viz-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.viz .scan { transform-box: fill-box; animation: viz-scan 6s var(--ease) infinite; }
.viz .dash { stroke-dasharray: 6 6; animation: viz-dash 1.6s linear infinite; }
.viz .pulse { animation: viz-pulse 2.4s ease-in-out infinite; }
.viz .blink { animation: viz-blink 1.8s ease-in-out infinite; }
.viz .float { animation: viz-float 4s ease-in-out infinite; }
.viz .grow { transform-box: fill-box; transform-origin: left center; animation: viz-grow 1.4s var(--ease) both; }
.viz .d1 { animation-delay: .3s; } .viz .d2 { animation-delay: .6s; } .viz .d3 { animation-delay: .9s; } .viz .d4 { animation-delay: 1.2s; }

/* ---------- reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- utilities ---------- */
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; } .mt-5 { margin-top: 4rem; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
