/* =========================================================
   DALGA — styles.css
   Light, precise, system-diagram visual language.
   Order: tokens → reset → utilities → nav → sections → footer
========================================================= */

/* =========================
   Design tokens
========================= */
:root {
  /* Surfaces */
  --bg-primary: #ffffff;
  --bg-secondary: #f6f7f9;
  --bg-tertiary: #eef1f5;
  --surface: #ffffff;
  --surface-soft: #f9fafb;
  --border: #dfe3e8;
  --border-strong: #cbd2da;

  /* Text */
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;

  /* Accents */
  --accent-blue: #2563eb;
  --accent-navy: #16325c;
  --accent-cyan: #0f766e;

  /* Dark emphasis panels (vision, footer) */
  --dark-bg: #0e1b2e;
  --dark-bg-soft: #16283f;
  --dark-border: rgba(255, 255, 255, 0.14);
  --dark-text: #eef2f7;
  --dark-text-soft: #a7b6c9;

  /* Type */
  --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(72px, 8.5vw, 120px);
  --radius-sm: 5px;
  --radius: 8px;
  --radius-lg: 12px;

  /* Effects */
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05), 0 6px 16px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 2px 4px rgba(16, 24, 40, 0.04), 0 14px 34px rgba(16, 24, 40, 0.08);
  --ease: cubic-bezier(0.22, 0.7, 0.25, 1);
  --nav-h: 68px;
}

/* =========================
   Reset & base
========================= */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: rgba(37, 99, 235, 0.16); }

:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Component display rules must never override the hidden attribute */
[hidden] { display: none !important; }

.sprite { display: none; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* =========================
   Layout utilities
========================= */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); border-top: 1px solid var(--border); }
.section--alt { background: var(--bg-secondary); }

.sec-head { max-width: 720px; margin-bottom: clamp(36px, 4.5vw, 60px); }
.sec-head h2 { font-size: clamp(26px, 3.2vw, 40px); }
.sec-head__sub {
  margin-top: 18px;
  color: var(--text-secondary);
  font-size: clamp(15.5px, 1.3vw, 17.5px);
  max-width: 62ch;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-blue);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent-blue);
  flex: none;
}

.lead {
  color: var(--text-secondary);
  font-size: clamp(16px, 1.4vw, 18.5px);
  max-width: 56ch;
}

.tick {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent-blue);
  flex: none;
}
.tick--dev { background: var(--border-strong); }

/* Status labels — the wording carries the meaning, not the colour */
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 9px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
}
.status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.status--live { color: var(--accent-cyan); border-color: rgba(15, 118, 110, 0.35); }
.status--dev { color: var(--accent-blue); border-color: rgba(37, 99, 235, 0.32); }
.status--explore { color: var(--text-muted); }

/* =========================
   Buttons
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
              color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn__icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s var(--ease);
}
.btn:hover .btn__icon { transform: translateX(2px); }

.btn--primary { background: var(--accent-blue); color: #fff; box-shadow: var(--shadow-xs); }
.btn--primary:hover { background: #1d4fd8; }

.btn--ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text-primary); }
.btn--ghost:hover { background: var(--surface-soft); border-color: #b6bfca; }

.btn--muted { background: var(--surface-soft); border-color: var(--border); color: var(--text-muted); cursor: default; }

/* =========================
   Navigation
========================= */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 1px 3px rgba(16, 24, 40, 0.05); }

.nav__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--accent-navy); }
.brand__mark { width: 26px; height: 26px; display: block; color: var(--accent-blue); }
.brand__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.13em;
  color: var(--text-primary);
}

.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links > a {
  position: relative;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--text-secondary);
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.nav__links > a:hover { color: var(--text-primary); background: var(--bg-secondary); }
.nav__links > a.is-active { color: var(--text-primary); font-weight: 500; }
.nav__links > a.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 1px;
  height: 1.5px;
  background: var(--accent-blue);
}
.nav__cta { margin-left: 10px; min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.nav__cta.is-active::after { display: none; }

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav__bar {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.25s var(--ease);
}

/* =========================
   Hero
========================= */
.hero {
  padding-top: calc(var(--nav-h) + clamp(48px, 7vw, 88px));
  padding-bottom: clamp(56px, 7vw, 96px);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.hero__title {
  font-size: clamp(32px, 4.4vw, 54px);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 22px;
  max-width: 16ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.hero__meta li { display: inline-flex; align-items: center; gap: 9px; }

/* Hero architecture diagram */
.hero__visual { margin: 0; }
.arch { width: 100%; height: auto; display: block; }

.arch__box rect {
  fill: var(--surface);
  stroke: var(--border-strong);
  stroke-width: 1;
}
.arch__box text {
  fill: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-anchor: middle;
}
.arch__lines path {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 1;
}
.arch__platform rect {
  fill: var(--accent-navy);
  stroke: var(--accent-navy);
  stroke-width: 1;
}
.arch__platform-word {
  fill: #fff;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-anchor: middle;
}
.arch__platform-sub {
  fill: rgba(255, 255, 255, 0.72);
  font-family: var(--font-mono);
  font-size: 11px;
  text-anchor: middle;
}
.arch__box--product rect { fill: var(--surface); stroke: var(--border-strong); }
.arch__box--ghost rect { fill: var(--surface-soft); stroke-dasharray: 4 4; }
.arch__pname {
  fill: var(--text-primary);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  text-anchor: middle;
}
.arch__pstatus {
  fill: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-anchor: middle;
}
.arch__caption {
  fill: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

/* One orchestrated entrance: the system draws itself, then stays still */
.js .arch__lines path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: archDraw 1s var(--ease) forwards;
  animation-delay: 0.35s;
}
.js .arch__lines:nth-of-type(4) path { animation-delay: 0.75s; }
.js .arch__box,
.js .arch__platform {
  opacity: 0;
  animation: archIn 0.6s var(--ease) forwards;
}
.js .arch__layer .arch__box:nth-child(1) { animation-delay: 0.05s; }
.js .arch__layer .arch__box:nth-child(2) { animation-delay: 0.12s; }
.js .arch__layer .arch__box:nth-child(3) { animation-delay: 0.19s; }
.js .arch__layer .arch__box:nth-child(4) { animation-delay: 0.26s; }
.js .arch__layer .arch__box:nth-child(5) { animation-delay: 0.33s; }
.js .arch__platform { animation-delay: 0.5s; }
.js .arch__layer--products .arch__box:nth-child(1) { animation-delay: 0.95s; }
.js .arch__layer--products .arch__box:nth-child(2) { animation-delay: 1.02s; }
.js .arch__layer--products .arch__box:nth-child(3) { animation-delay: 1.09s; }
@keyframes archDraw { to { stroke-dashoffset: 0; } }
@keyframes archIn { from { opacity: 0; } to { opacity: 1; } }

/* =========================
   Company introduction
========================= */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.intro__copy p { color: var(--text-secondary); font-size: clamp(15.5px, 1.3vw, 17.5px); max-width: 62ch; }
.intro__copy p:first-child { color: var(--text-primary); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; }

.statement {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
}
.statement__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.statement__flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.statement__flow li {
  font-family: var(--font-display);
  font-size: clamp(14.5px, 1.4vw, 17px);
  font-weight: 600;
  color: var(--text-primary);
}
.statement__flow li:not(:last-child)::after {
  content: "→";
  margin-left: 8px;
  color: var(--accent-blue);
  font-family: var(--font-body);
  font-weight: 400;
}
.statement__note { color: var(--text-muted); font-size: 14px; margin: 0; }

/* =========================
   Products
========================= */
.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(24px, 3vw, 40px);
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.product--rev .product__body { order: 2; }
.product--rev .product__visual { order: 1; }

.product__top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.product__logo {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.3vw, 27px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent-navy);
}
.product__tagline { font-size: clamp(19px, 2vw, 25px); margin-bottom: 14px; max-width: 22ch; }
.product__desc { color: var(--text-secondary); max-width: 52ch; }

.caps { display: flex; flex-wrap: wrap; gap: 7px; margin: 22px 0 26px; }
.caps li {
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  font-size: 13px;
  color: var(--text-secondary);
}

/* Future products */
.future {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(24px, 3vw, 40px);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.future h3 { font-size: clamp(20px, 2vw, 27px); margin: 14px 0 12px; }
.future p { color: var(--text-secondary); max-width: 46ch; margin: 0; }
.sprout { width: 100%; height: auto; display: block; }
.sprout__link { fill: none; stroke: var(--border-strong); stroke-width: 1; }
.sprout__seed { fill: var(--surface-soft); stroke: var(--border-strong); stroke-width: 1; }
.sprout__seed--ghost { stroke-dasharray: 4 4; }
.sprout__base { fill: var(--accent-navy); }
.sprout__label { fill: #fff; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-anchor: middle; }

/* =========================
   Product mockups (HTML/CSS)
========================= */
.mock {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
}
.mock__dots { display: inline-flex; gap: 5px; }
.mock__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); }
.mock__title { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.mock__body { padding: 16px; display: grid; gap: 14px; }

.mock__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat {
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  display: grid;
  gap: 2px;
}
.stat__k { font-size: 10px; font-family: var(--font-mono); color: var(--text-muted); }
.stat__v { font-family: var(--font-display); font-size: clamp(15px, 1.5vw, 18px); font-weight: 600; }
.stat__d { font-size: 10.5px; font-family: var(--font-mono); }
.stat__d.up { color: var(--accent-cyan); }
.stat__d.down { color: var(--accent-blue); }

.chart { padding: 13px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.chart__head { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); margin-bottom: 11px; }
.chart__legend { display: inline-flex; align-items: center; gap: 5px; }
.chart__legend i { width: 7px; height: 7px; border-radius: 2px; display: inline-block; }
.chart__legend .k1 { background: var(--accent-blue); }
.chart__legend .k2 { background: var(--border-strong); margin-left: 5px; }
.chart__bars { display: flex; align-items: flex-end; gap: 5px; height: 88px; }
.chart__bars span {
  flex: 1;
  height: var(--h);
  border-radius: 2px 2px 0 0;
  background: var(--accent-blue);
}
.chart__bars span.ghost { background: repeating-linear-gradient(135deg, var(--border-strong) 0 3px, transparent 3px 7px); }

.agent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent-blue);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}
.agent__tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-blue);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 3px;
  padding: 2px 6px;
  flex: none;
  margin-top: 1px;
}
.agent__text { font-size: 12.5px; color: var(--text-secondary); margin: 0; line-height: 1.5; }

/* Phone mockup */
.mock--phone { background: none; border: 0; box-shadow: none; display: flex; justify-content: center; }
.phone {
  width: min(262px, 80%);
  aspect-ratio: 9 / 18;
  padding: 8px;
  border: 1px solid var(--border-strong);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.phone__screen {
  height: 100%;
  border-radius: 20px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  padding: 14px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  overflow: hidden;
}
.phone__head { display: flex; align-items: baseline; justify-content: space-between; }
.phone__brand { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--accent-navy); }
.phone__loc { font-family: var(--font-mono); font-size: 9px; color: var(--text-muted); }
.feed { display: grid; gap: 9px; }
.feed__card { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.feed__art { height: 44px; border-bottom: 1px solid var(--border); }
.feed__art.art1 { background: #dbe4f7; }
.feed__art.art2 { background: #dcecea; }
.feed__art.art3 { background: #e7eaf0; }
.feed__meta { padding: 7px 9px; display: grid; gap: 1px; }
.feed__t { font-size: 11px; font-weight: 500; }
.feed__s { font-family: var(--font-mono); font-size: 9px; color: var(--text-muted); }
.phone__tabs { margin-top: auto; display: flex; justify-content: space-around; padding-top: 9px; border-top: 1px solid var(--border); }
.phone__tabs i { width: 16px; height: 2.5px; border-radius: 2px; background: var(--border-strong); }
.phone__tabs i.on { background: var(--accent-blue); }

/* =========================
   Technology domains
========================= */
.domains {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 16px;
}
.domain {
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.domain:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.domain__schematic {
  width: 64px;
  height: 32px;
  display: block;
  margin-bottom: 16px;
  fill: none;
  stroke: var(--accent-blue);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.domain h3 { font-size: 18.5px; margin-bottom: 9px; }
.domain > p { color: var(--text-secondary); font-size: 14.5px; line-height: 1.6; margin-bottom: 18px; }

.domain__caps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.domain__caps li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.domain__caps li::before {
  content: "";
  width: 7px;
  height: 1px;
  background: var(--border-strong);
  flex: none;
  transform: translateY(-3px);
}
.domain__note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-muted);
}

/* =========================
   Research & innovation
========================= */
.research {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.research__copy p { color: var(--text-secondary); font-size: clamp(15.5px, 1.3vw, 17.5px); }
.quote {
  margin: 26px 0 0;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
}
.quote p { color: var(--text-primary); font-family: var(--font-display); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.5; margin: 0; }

.research__map {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.research__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.pills { display: flex; flex-wrap: wrap; gap: 7px; }
.pills li {
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  font-size: 12.5px;
  color: var(--text-secondary);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.pills li:hover { border-color: var(--accent-blue); color: var(--accent-blue); }

/* =========================
   Process timeline
========================= */
.timeline {
  --tl-pad: 30px;
  position: relative;
  max-width: 840px;
  padding-left: var(--tl-pad);
}
.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
}
.timeline::before { background: var(--border); }
.timeline::after {
  background: var(--accent-blue);
  transform: scaleY(var(--progress, 0));
  transform-origin: top;
  transition: transform 0.2s linear;
}

.step { position: relative; display: flex; gap: 20px; padding-bottom: 30px; }
.step--last { padding-bottom: 0; }
.step::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--tl-pad));
  top: 10px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1px solid var(--border-strong);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.step.is-in::before { border-color: var(--accent-blue); background: var(--accent-blue); }
.step__n {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  padding-top: 5px;
  min-width: 22px;
}
.step.is-in .step__n { color: var(--accent-blue); }
.step__c h3 { font-size: clamp(17.5px, 1.7vw, 21px); margin-bottom: 5px; }
.step__c p { color: var(--text-secondary); margin: 0; max-width: 56ch; font-size: 15px; }

/* =========================
   Engineering principles
========================= */
.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.principle {
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.principle h3 { font-size: 18.5px; margin-bottom: 9px; }
.principle p { color: var(--text-secondary); margin: 0; font-size: 14.5px; }

/* =========================
   Shared product infrastructure
========================= */
.stack { display: grid; justify-items: center; gap: 0; }
.stack__core {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 20px 40px;
  border-radius: var(--radius);
  background: var(--accent-navy);
  color: #fff;
  text-align: center;
}
.stack__coreword { font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; letter-spacing: 0.14em; }
.stack__coretag { font-family: var(--font-mono); font-size: 11px; color: rgba(255, 255, 255, 0.72); }

/* Connector rails, drawn as static hairlines rather than motion */
.stack__caps::before,
.stack__products::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -32px;
  width: 1px;
  height: 32px;
  background: var(--border-strong);
}

.stack__caps {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 32px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.stack__caps li {
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  font-size: 13.5px;
  color: var(--text-secondary);
}

.stack__products {
  position: relative;
  width: 100%;
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.stack__product {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.stack__product--next { border-style: dashed; background: var(--surface-soft); }
.stack__pname { font-family: var(--font-display); font-size: 19px; font-weight: 600; }

/* =========================
   Partners
========================= */
.partners {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.partners__copy p { color: var(--text-secondary); font-size: clamp(15.5px, 1.3vw, 17.5px); max-width: 50ch; }
.partners__copy .btn { margin-top: 10px; }

.partner-list { display: grid; border-top: 1px solid var(--border); }
.partner-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--border);
  font-size: clamp(14.5px, 1.4vw, 16px);
  color: var(--text-secondary);
  transition: color 0.18s var(--ease);
}
.partner-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border-strong);
  flex: none;
  transition: background-color 0.18s var(--ease);
}
.partner-list li:hover { color: var(--text-primary); }
.partner-list li:hover::before { background: var(--accent-blue); }

/* =========================
   References & collaborations
========================= */
.refs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.ref {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.ref__logo {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  flex: none;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  color: var(--text-muted);
}
.ref__logo--open { font-size: 24px; font-weight: 400; color: var(--border-strong); }
.ref--open { border-style: dashed; background: var(--surface-soft); }
.ref h3 { font-size: 17.5px; margin-bottom: 6px; }
.ref p { color: var(--text-secondary); font-size: 14px; margin: 0; }

/* =========================
   Company vision (dark emphasis panel)
========================= */
.vision {
  background: var(--dark-bg);
  color: var(--dark-text);
  padding-block: clamp(88px, 11vw, 150px);
  border-top: 1px solid var(--dark-bg);
}
.vision__inner { max-width: 900px; }
.vision__text {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.8vw, 34px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.vision__text:nth-of-type(2) { color: var(--dark-text-soft); }
.vision__final {
  font-family: var(--font-display);
  font-size: clamp(23px, 3.2vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 36px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--dark-border);
}

/* =========================
   Contact
========================= */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.contact h2 { font-size: clamp(26px, 3.2vw, 40px); }

.contact__card {
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
}
.contact__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.contact__email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.3vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent-blue);
  word-break: break-word;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s var(--ease);
}
.contact__email:hover { border-bottom-color: var(--accent-blue); }

.contact__meta { margin: 28px 0 0; display: grid; gap: 16px; }
.contact__meta div { display: grid; gap: 3px; padding-top: 16px; border-top: 1px solid var(--border); }
.contact__meta dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact__meta dd { margin: 0; font-size: 15px; color: var(--text-secondary); }

/* =========================
   Footer (dark)
========================= */
.footer {
  background: var(--dark-bg);
  color: var(--dark-text-soft);
  padding-top: clamp(48px, 6vw, 72px);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 44px;
}
.footer__word { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: 0.14em; display: block; margin-bottom: 10px; color: var(--dark-text); }
.footer__brand p { max-width: 30ch; font-size: 14.5px; }
.footer__col { display: grid; align-content: start; gap: 10px; }
.footer__col h4 { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--dark-text); font-weight: 500; margin-bottom: 2px; }
.footer__col a { font-size: 14px; width: fit-content; word-break: break-word; transition: color 0.18s var(--ease); }
.footer__col a:hover { color: var(--dark-text); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px 30px;
  border-top: 1px solid var(--dark-border);
}
.footer__bottom p { margin: 0; font-size: 12.5px; }
.footer__legal { font-family: var(--font-mono); font-size: 11.5px; }

/* =========================
   Scroll reveal
   Hidden only when JS is available, so the page still reads without it.
========================= */
.js .reveal {
  opacity: 0;
  translate: 0 14px;
  transition: opacity 0.5s var(--ease), translate 0.5s var(--ease);
  transition-delay: var(--rd, 0s);
}
.js .reveal.is-visible { opacity: 1; translate: none; }

/* =========================
   Responsive
========================= */
@media (max-width: 1024px) {
  .hero__grid,
  .intro,
  .research,
  .partners,
  .contact,
  .product,
  .product--rev,
  .future { grid-template-columns: minmax(0, 1fr); }

  .hero__visual { max-width: 620px; }
  .product--rev .product__body,
  .product--rev .product__visual { order: 0; }
  .product__visual, .future__visual { max-width: 560px; margin-inline: auto; width: 100%; }
  .domains { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav__toggle { display: flex; }

  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 16px var(--gutter) 26px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0.24s;
  }
  .nav__links.is-open { opacity: 1; transform: translateY(0); visibility: visible; pointer-events: auto; }
  .nav__links > a { padding: 13px 10px; font-size: 16px; }
  .nav__links > a.is-active::after { left: 10px; right: auto; width: 18px; bottom: 7px; }
  .nav__cta { margin: 12px 0 0; min-height: 48px; }

  .nav__toggle[aria-expanded="true"] .nav__bar:first-child { transform: translateY(3.2px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__bar:last-child { transform: translateY(-3.2px) rotate(-45deg); }

  body.is-locked { overflow: hidden; }
}

@media (max-width: 720px) {
  .mock__stats { grid-template-columns: minmax(0, 1fr); }
  .stat { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
  .domain__caps { grid-template-columns: minmax(0, 1fr); }
  .timeline { --tl-pad: 24px; }
  .step { gap: 14px; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .hero__meta { flex-direction: column; gap: 10px; }
  .ref { flex-direction: column; gap: 14px; }
}

@media (max-width: 420px) {
  .btn { width: 100%; }
  .statement, .research__map, .contact__card, .domain { padding: 20px 16px; }
  .step__n { display: none; }
}

/* =========================
   Reduced motion
========================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; translate: none; }
  .js .arch__lines path { stroke-dashoffset: 0; }
  .js .arch__box, .js .arch__platform { opacity: 1; }
  .timeline::after { transition: none; }
}

/* =========================
   Print
========================= */
@media print {
  .nav { display: none !important; }
  body { background: #fff; color: #000; }
  .vision, .footer { background: #fff; color: #000; }
}
