/* ==========================================================================
   Rihstal AI — rīḥ (wind) + crystal: movement given structure
   Sand ground, Gulf-teal crystal, saffron sun.
   ========================================================================== */

:root {
  --bg: #F2EDE4;
  --bg-2: #EAE3D6;
  --surface: #FAF7F1;
  --ink: #1A1510;
  --ink-2: #463E35;
  --muted: #6E6457;
  --faint: #9D9385;
  --line: #DCD2C3;
  --line-2: #CBBFAD;
  --soft: rgba(26, 21, 16, 0.06);
  --soft-2: rgba(26, 21, 16, 0.11);

  --accent: #0C6B6E;
  --accent-hover: #095557;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(12, 107, 110, 0.12);
  --sun: #F0B03A;
  --sun-ink: #2A1C04;
  --ok: #1E9E6A;

  --code-bg: #1C1814;
  --code-ink: #EDE6DA;
  --code-dim: #8E8476;
  --code-k: #F0B03A;
  --code-s: #86D6CB;
  --code-f: #F3D9A8;
  --code-hl: rgba(240, 176, 58, 0.12);

  /* canvas tokens (read by app.js) */
  --cv-ink: #1A1510;
  --cv-sand: #B98C4E;
  --cv-accent: #0C6B6E;
  --cv-surface: #FAF7F1;
  --cv-line: #CBBFAD;
  --cv-c-dark: #08484B;
  --cv-c-light: #7CD1C6;
  --cv-c-hi: #EFFFFB;

  --font-sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-ar: "Reem Kufi", "Noto Kufi Arabic", "Geeza Pro", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --cut: 9px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E0C0A;
    --bg-2: #14110E;
    --surface: #1A1612;
    --ink: #F1EBE1;
    --ink-2: #D2C9BC;
    --muted: #A39889;
    --faint: #7A7064;
    --line: #2C2620;
    --line-2: #3B342C;
    --soft: rgba(241, 235, 225, 0.07);
    --soft-2: rgba(241, 235, 225, 0.12);
    --accent: #35B8AE;
    --accent-hover: #4CCAC0;
    --accent-ink: #04201E;
    --accent-soft: rgba(53, 184, 174, 0.14);
    --code-bg: #15120F;
    --code-hl: rgba(240, 176, 58, 0.10);
    --cv-ink: #F1EBE1;
    --cv-sand: #D3A867;
    --cv-accent: #35B8AE;
    --cv-surface: #1A1612;
    --cv-line: #3B342C;
    --cv-c-dark: #0A3A3C;
    --cv-c-light: #46C4B8;
    --cv-c-hi: #E2FFF9;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0E0C0A;
  --bg-2: #14110E;
  --surface: #1A1612;
  --ink: #F1EBE1;
  --ink-2: #D2C9BC;
  --muted: #A39889;
  --faint: #7A7064;
  --line: #2C2620;
  --line-2: #3B342C;
  --soft: rgba(241, 235, 225, 0.07);
  --soft-2: rgba(241, 235, 225, 0.12);
  --accent: #35B8AE;
  --accent-hover: #4CCAC0;
  --accent-ink: #04201E;
  --accent-soft: rgba(53, 184, 174, 0.14);
  --code-bg: #15120F;
  --code-hl: rgba(240, 176, 58, 0.10);
  --cv-ink: #F1EBE1;
  --cv-sand: #D3A867;
  --cv-accent: #35B8AE;
  --cv-surface: #1A1612;
  --cv-line: #3B342C;
  --cv-c-dark: #0A3A3C;
  --cv-c-light: #46C4B8;
  --cv-c-hi: #E2FFF9;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* faint sand grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .36  0 0 0 0 .25  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
:root[data-theme="dark"] body::before { opacity: .35; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body::before { opacity: .35; } }

body > * { position: relative; z-index: 1; }

img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
code, pre { font-family: var(--font-mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 14px; font-size: 14px;
}
.skip:focus { top: 12px; }

/* ---------- buttons: chamfered like crystal facets ---------- */
.btn {
  --c: var(--cut);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; --c: 7px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-soft { background: var(--soft); color: var(--ink); }
.btn-soft:hover { background: var(--soft-2); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-mark { width: 38px; height: 30px; }
.brand-mark .bm-wind, .brand-mark .bm-lines { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.brand-mark .bm-wind { opacity: .55; }
.brand-mark .bm-f1 { fill: var(--cv-c-light); }
.brand-mark .bm-f2 { fill: color-mix(in srgb, var(--cv-c-light) 55%, white); }
.brand-mark .bm-f3 { fill: var(--accent); }
.brand-mark .bm-f4 { fill: var(--cv-c-dark); }
.brand-mark .bm-f5 { fill: color-mix(in srgb, var(--accent) 70%, black); }
.brand-mark .bm-f6 { fill: color-mix(in srgb, var(--cv-c-dark) 75%, black); }
.brand-word { font-size: 21px; font-weight: 600; letter-spacing: -0.03em; white-space: nowrap; }
.brand-ai { margin-left: .2em; color: var(--accent); font-weight: 500; }

.nav { display: flex; gap: 26px; font-size: 14.5px; color: var(--ink-2); }
.nav a { position: relative; padding: 4px 0; }
.nav a:hover { color: var(--ink); }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center; color: var(--ink-2);
}
.icon-btn:hover { color: var(--ink); background: var(--soft); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn .i-sun { display: none; }
:root[data-theme="dark"] .icon-btn .i-sun { display: block; }
:root[data-theme="dark"] .icon-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .i-sun { display: block; }
  :root:not([data-theme="light"]) .icon-btn .i-moon { display: none; }
}

/* ---------- hero ---------- */
.hero {
  min-height: calc(100svh - var(--header-h));
  display: grid;
  grid-template-rows: 1fr auto;
}
.hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding-top: clamp(24px, 4vh, 48px);
  padding-bottom: clamp(24px, 4vh, 48px);
}

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
  padding: 9px 12px;
  border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}
.flag { width: 14px; height: 10px; display: grid; grid-template-columns: 4px 1fr; grid-template-rows: repeat(3, 1fr); flex: none; }
.flag i:nth-child(1) { grid-row: 1 / 4; background: #C8102E; }
.flag i:nth-child(2) { background: #00843D; }
.flag i:nth-child(3) { background: #FFFFFF; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.12); }
.flag i:nth-child(4) { background: #111; }

.hero h1 {
  margin-top: 26px;
  font-size: clamp(2.5rem, 3.55vw, 3.6rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.lede { margin-top: 26px; color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.lede span { display: block; }
.cta-row { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.offer {
  margin-top: 22px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font: 400 11px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.chip {
  display: inline-block; padding: 4px 7px;
  background: var(--sun); color: var(--sun-ink); font-weight: 500;
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
}

/* illustration */
.hero-art {
  position: relative;
  aspect-ratio: 720 / 560;
  width: 100%;
  container-type: inline-size;
}
.hero-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.art-label {
  position: absolute;
  left: calc(var(--x) / 720 * 100%);
  top: calc(var(--y) / 560 * 100%);
  display: flex; flex-direction: column; gap: 3px;
  font-size: clamp(8.5px, 1.46cqw, 11px);
  line-height: 1.2;
  pointer-events: none;
  white-space: nowrap;
}
.art-label.center { transform: translateX(-50%); align-items: center; text-align: center; }
.art-label b { font: 500 1em/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.art-label span { font-size: 1.15em; color: var(--muted); }
.art-label em {
  margin-top: 4px; font: 400 .95em/1 var(--font-mono); font-style: normal; color: var(--accent);
  padding: 4px 6px; background: var(--accent-soft);
}

.motion-btn {
  position: absolute; left: calc(14 / 720 * 100%); bottom: 0;
  display: inline-flex; align-items: center; gap: 7px;
  font: 400 11px/1 var(--font-mono); letter-spacing: .04em; color: var(--muted);
  padding: 6px 8px 6px 0;
}
.motion-btn:hover { color: var(--ink); }
.motion-btn svg { width: 10px; height: 10px; fill: currentColor; }
.motion-btn .i-play { display: none; }
.motion-btn[aria-pressed="true"] .i-play { display: block; }
.motion-btn[aria-pressed="true"] .i-pause { display: none; }

/* spec strip */
.spec-strip { border-top: 1px solid var(--line); }
.spec-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px;
  padding-top: 16px; padding-bottom: 16px;
  font: 400 11px/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.spec-inner span { display: inline-flex; align-items: center; gap: 10px; }
.spec-inner span::before {
  content: ""; width: 6px; height: 6px; background: var(--accent); transform: rotate(45deg); flex: none;
}

/* ---------- sections ---------- */
.section { padding: clamp(72px, 11vw, 136px) 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font: 500 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.eyebrow span { color: var(--accent); }
.eyebrow span::after { content: ""; display: inline-block; width: 18px; height: 1px; background: var(--line-2); margin-left: 12px; vertical-align: middle; }
.section h2 {
  margin-top: 18px;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  font-weight: 500; line-height: 1.04; letter-spacing: -0.04em;
  text-wrap: balance;
}
.section-sub { margin-top: 18px; font-size: 17.5px; color: var(--ink-2); max-width: 62ch; }

/* ---------- API ---------- */
.api-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.code-card {
  background: var(--code-bg); color: var(--code-ink);
  border: 1px solid color-mix(in srgb, var(--code-bg) 70%, var(--line-2));
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  min-width: 0;
}
.code-bar { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.08); padding: 0 8px 0 4px; }
.code-tabs { display: flex; }
.code-tabs button {
  padding: 14px 14px 13px; font: 400 12px/1 var(--font-mono); color: var(--code-dim);
  border-bottom: 1px solid transparent; margin-bottom: -1px;
}
.code-tabs button:hover { color: var(--code-ink); }
.code-tabs button[aria-selected="true"] { color: var(--code-ink); border-bottom-color: var(--sun); }
.copy-btn {
  font: 400 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--code-dim); padding: 8px 10px; border: 1px solid rgba(255,255,255,.12);
}
.copy-btn:hover { color: var(--code-ink); border-color: rgba(255,255,255,.25); }
.code {
  margin: 0; padding: 22px 0 26px; overflow-x: auto;
  font-size: 13.5px; line-height: 1.75; tab-size: 4;
}
.code code { display: block; padding: 0 24px; min-width: max-content; }
.code .k { color: var(--code-k); }
.code .s { color: var(--code-s); }
.code .f { color: var(--code-f); }
.code .n { color: var(--code-s); }
.code .c { color: var(--code-dim); }
.code .ar-str { unicode-bidi: isolate; font-family: "Geeza Pro", "Noto Sans Arabic", "Segoe UI", var(--font-ar), sans-serif; font-size: 1.04em; }
.code .hl { display: inline-block; background: var(--code-hl); box-shadow: -24px 0 0 var(--code-hl), 24px 0 0 var(--code-hl), inset 2px 0 0 var(--sun); margin: 0 -24px; padding: 0 24px; min-width: calc(100% + 48px); }

.feature-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.feature-list li { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.feature-list b { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.feature-list b::before { content: ""; width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg); flex: none; }
.feature-list span { color: var(--muted); font-size: 15px; padding-left: 17px; }

.works-with {
  margin-top: clamp(36px, 5vw, 56px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font: 400 12px/1 var(--font-mono); color: var(--ink-2);
}
.works-with span { padding: 9px 12px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.works-with .works-label { border: 0; background: none; padding-left: 0; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }

/* ---------- models ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters button {
  font: 400 12px/1 var(--font-mono); padding: 10px 13px; color: var(--ink-2);
  border: 1px solid var(--line-2); background: transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.filters button:hover { border-color: var(--ink-2); color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.model-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2);
}
.model {
  position: relative;
  padding: 22px 22px 20px;
  border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  display: flex; flex-direction: column; gap: 6px;
  transition: background-color .2s ease;
}
.model:hover { background: var(--surface); }
.model::after {
  content: ""; position: absolute; top: -1px; right: -1px; width: 14px; height: 14px;
  background: linear-gradient(225deg, var(--bg-2) 50%, var(--line-2) 50%, var(--line-2) calc(50% + 1px), transparent calc(50% + 1px));
}
.model[hidden] { display: none; }
.model-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.model h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.tag-uae {
  font: 500 9.5px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 6px; background: var(--accent-soft); color: var(--accent); white-space: nowrap;
}
.model-org { font-size: 13.5px; color: var(--muted); }
.model-id { margin-top: 10px; font-size: 12px; color: var(--ink-2); overflow-wrap: anywhere; }
.model-tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.model-tags span { font: 400 10.5px/1 var(--font-mono); color: var(--muted); padding: 4px 6px; border: 1px solid var(--line); }
.models-note { margin-top: 24px; color: var(--muted); font-size: 15px; }
.models-note a { color: var(--accent); }
.models-note a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- why ---------- */
.latency {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(24px, 4vw, 44px);
  background: var(--surface);
  border: 1px solid var(--line);
}
.latency h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 500; letter-spacing: -0.03em; }
.latency-copy p { margin-top: 12px; color: var(--ink-2); max-width: 48ch; }
.lc-title { font: 500 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.bars { display: grid; gap: 12px; }
.bars li {
  display: grid; grid-template-columns: 128px minmax(0, 1fr) 66px; align-items: center; gap: 14px;
  font-size: 14px; outline-offset: 4px;
}
.bar-name { color: var(--ink-2); }
.is-us .bar-name { color: var(--ink); font-weight: 600; }
.bar-track { height: 22px; display: flex; align-items: center; }
.bar {
  display: block; height: 14px;
  width: max(4px, calc(var(--v) / 220 * 100%));
  background: color-mix(in srgb, var(--ink) 22%, transparent);
  border-radius: 0 4px 4px 0;
  transform-origin: left;
  transition: background-color .15s ease;
}
.is-us .bar { background: var(--accent); }
.bars li:hover .bar, .bars li:focus-visible .bar { background: color-mix(in srgb, var(--ink) 38%, transparent); }
.bars li.is-us:hover .bar, .bars li.is-us:focus-visible .bar { background: var(--accent-hover); }
.bar-val { font: 400 12.5px/1 var(--font-mono); color: var(--ink-2); text-align: right; }
.latency.is-in .bar { animation: grow 1.1s cubic-bezier(.2,.7,.2,1) .25s both; }
@keyframes grow { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .latency.is-in .bar { animation: none; } }
.latency-chart .fine { margin-top: 18px; font-size: 12.5px; color: var(--faint); }

.pillars {
  margin-top: clamp(28px, 4vw, 44px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.pillar { padding: 30px 28px 30px 0; border-bottom: 1px solid var(--line); }
.pillar:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.pillar svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.pillar h3 { margin-top: 18px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.pillar p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* ---------- name ---------- */
.section-name { padding-bottom: 0; overflow: hidden; }
.name-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.name-word { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .25em; line-height: 1; }
.name-word .ar { font-family: var(--font-ar); font-weight: 600; font-size: clamp(5.5rem, 13vw, 11rem); color: var(--accent); line-height: 1.25; }
.name-word .plus { font-size: clamp(2rem, 4vw, 3.4rem); color: var(--faint); font-weight: 400; }
.name-word .en { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 500; letter-spacing: -0.05em; }
.entry { margin-top: 20px; font-size: 28px; letter-spacing: -0.03em; }
.entry b { font-weight: 600; }
.pron { font: 400 15px/1 var(--font-mono); color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.entry i { font-size: 16px; color: var(--muted); margin-left: 4px; }
.def { margin-top: 10px; font-size: 19px; }
.def strong { font-weight: 600; background: linear-gradient(transparent 62%, color-mix(in srgb, var(--sun) 55%, transparent) 62%); }
.name-copy > p:last-child { margin-top: 18px; color: var(--ink-2); max-width: 54ch; }

.lattice { margin-top: clamp(40px, 6vw, 72px); height: clamp(150px, 20vw, 250px); }
.lattice svg { width: 100%; height: 100%; }
.lattice .lt-base { fill: none; stroke: var(--ink); stroke-opacity: .32; stroke-width: 1; vector-effect: non-scaling-stroke; }
.lattice .lt-flow {
  fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 70 2400; stroke-dashoffset: 70;
  animation: flow var(--dur, 6s) linear var(--delay, 0s) infinite;
}
@keyframes flow { to { stroke-dashoffset: -1500; } }
@media (prefers-reduced-motion: reduce) { .lattice .lt-flow { animation: none; display: none; } }
.paused .lattice .lt-flow { animation-play-state: paused; }

/* ---------- CTA ---------- */
.cta { background: var(--bg-2); }
.cta-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta h2 { margin-top: 0; font-size: clamp(2.2rem, 4.6vw, 3.9rem); }
.cta p { margin-top: 18px; color: var(--ink-2); font-size: 17.5px; max-width: 52ch; }
.cta .cta-row { justify-content: center; }
.cta .cta-mail { margin-top: 18px; font: 400 13px/1.4 var(--font-mono); color: var(--muted); }
.cta .cta-mail a { color: var(--ink); user-select: all; border-bottom: 1px solid var(--line-2); }
.cta .cta-mail a:hover { border-bottom-color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px;
  padding-top: 22px; padding-bottom: 22px;
  font: 400 11.5px/1.4 var(--font-mono); color: var(--muted);
}
.footer-left { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-links a:hover, .status:hover { color: var(--ink); }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }

/* ---------- tooltip ---------- */
.tooltip {
  position: fixed; z-index: 80; pointer-events: none;
  font: 400 12px/1.3 var(--font-mono); padding: 7px 9px;
  background: var(--ink); color: var(--bg);
  transform: translate(-50%, calc(-100% - 10px));
}

/* ---------- reveal ---------- */
/* content is visible at rest; it only animates once it scrolls into view */
.js .reveal.is-in { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .js .reveal.is-in { animation: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .model-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 640px; }
  .hero h1 { font-size: clamp(2.5rem, 7vw, 3.8rem); }
  .api-grid, .latency, .name-grid { grid-template-columns: minmax(0, 1fr); }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .pillar:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--line); }
  .pillar { padding-right: 24px; }
}
@media (max-width: 720px) {
  .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-inner { justify-content: flex-start; }
}
@media (max-width: 560px) {
  :root { --header-h: 60px; }
  .hide-xs { display: none; }
  .brand-word { font-size: 19px; }
  .hero h1 { font-size: clamp(2.3rem, 10.5vw, 2.9rem); }
  .lede { font-size: 16px; }
  .lede span { display: inline; }
  .lede span::after { content: " "; }
  .btn { height: 44px; padding: 0 18px; }
  .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .model { padding: 16px 12px 14px; }
  .model-top { flex-direction: column; align-items: flex-start; gap: 6px; }
  .model h3 { font-size: 15px; }
  .model-org { font-size: 12.5px; }
  .model-id { margin-top: 6px; font-size: 10.5px; }
  .model-tags { margin-top: 6px; gap: 4px; }
  .model-tags span { font-size: 9.5px; padding: 3px 5px; }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .hero-art { margin-bottom: 26px; }
  .art-label span { display: none; }
  .lbl-models { left: calc(256 / 720 * 100%); transform: translateX(-100%); align-items: flex-end; }
  .motion-btn { bottom: auto; top: 100%; margin-top: 6px; }
  .pillar, .pillar:nth-child(2n) { padding-left: 0; padding-right: 0; border-left: 0; }
  .bars li { grid-template-columns: 104px minmax(0, 1fr) 58px; gap: 10px; font-size: 13px; }
  .code { font-size: 12.5px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
