/* Layout: a night-side earth. The hero is the planet rising over a dot-grid sea; below it, the page reads
   like a field guide: left-hung headings, mono labels, three profile hues (sun = image, sea = audio,
   leaf = video) used only where they mean a profile. Dark first, with a daylight theme. */
:root {
  /* Color: dark (night) values first */
  --bg: #060d12;
  --bg-2: #0a161d;
  --bg-3: #0f1f28;
  --rule: #1b2d36;
  --ink: #e4ede8;
  --ink-2: #a2b5b0;
  --ink-3: #6a817d;
  --sun: #f0ae78;
  --sea: #6cc4d6;
  --leaf: #a9d790;
  --on-ink: #060d12;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --scheme: dark;
  color-scheme: dark;

  /* Type */
  --display: "Gloock", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body: "Hanken Grotesk", ui-sans-serif, -apple-system, "Segoe UI", system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 1.9rem);
  --step-3: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
  --step-4: clamp(2.5rem, 1.5rem + 3.6vw, 4.6rem);

  --wrap: 1200px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --radius: 14px;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #eef2ef;
    --bg-2: #f7faf8;
    --bg-3: #e3eae6;
    --rule: #cfdad5;
    --ink: #0c1a1d;
    --ink-2: #3f5457;
    --ink-3: #66797b;
    --sun: #b5571c;
    --sea: #19798f;
    --leaf: #3b7a29;
    --on-ink: #f7faf8;
    --shadow: 0 30px 70px -36px rgba(12, 26, 29, 0.35);
    --scheme: light;
    color-scheme: light;
  }
}

:root[data-theme="light"] {
  --bg: #eef2ef;
  --bg-2: #f7faf8;
  --bg-3: #e3eae6;
  --rule: #cfdad5;
  --ink: #0c1a1d;
  --ink-2: #3f5457;
  --ink-3: #66797b;
  --sun: #b5571c;
  --sea: #19798f;
  --leaf: #3b7a29;
  --on-ink: #f7faf8;
  --shadow: 0 30px 70px -36px rgba(12, 26, 29, 0.35);
  --scheme: light;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
code, kbd, pre { font-family: var(--mono); }

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

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * 32px);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
@media (min-width: 720px) {
  .wrap {
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px));
  }
}

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--on-ink); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { left: 16px; }

/* ---------- Labels ---------- */
.label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2);
}
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.6; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 70%, transparent);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-family: var(--display); font-size: 1.5rem; letter-spacing: 0.01em;
}
.brand svg { width: 26px; height: 26px; }
.stage-chip {
  font-family: var(--mono); font-size: 0.5625rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-2); border: 1px solid var(--ink-3); border-radius: 999px; padding: 3px 7px 2px;
  transform: translateY(-1px);
}
.nav-links { display: flex; gap: 22px; margin-left: 12px; }
.nav-links a {
  text-decoration: none; color: var(--ink-2); font-size: 0.9375rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 38px; height: 38px; border-radius: 999px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--rule); background: transparent; color: var(--ink-2);
  cursor: pointer; transition: color 0.2s, border-color 0.2s;
}
.icon-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.icon-btn svg { width: 17px; height: 17px; }
.theme-sun { display: none; }
:root[data-theme="dark"] .theme-sun, :root:not([data-theme]) .theme-sun { display: block; }
:root[data-theme="dark"] .theme-moon, :root:not([data-theme]) .theme-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-sun { display: none; }
  :root:not([data-theme]) .theme-moon { display: block; }
}

@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 20px; border-radius: 999px;
  font: 600 0.9375rem/1 var(--body); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.2s, background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-primary:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--ink) 88%, var(--sun)); }
.btn-ghost { border-color: var(--rule); color: var(--ink); background: color-mix(in srgb, var(--bg) 40%, transparent); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 0.875rem; }
@media (max-width: 480px) { .nav .btn-sm span { display: none; } .nav .btn-sm { padding: 0 12px; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(640px, 90svh, 900px);
  display: flex;
  border-bottom: 1px solid var(--rule);
}
#hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: -1;
}
.hero::after {
  /* keeps the headline legible over the field */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 18% 42%, color-mix(in srgb, var(--bg) 72%, transparent), transparent 70%);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  padding-block: clamp(48px, 8vh, 96px) clamp(120px, 20vh, 220px);
}
.hero-copy { min-width: 0; max-width: 40rem; }
.hero-stage { min-height: 360px; align-self: stretch; }
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step-4);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 22px 0 22px;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  display: block;
  color: transparent;
  background: linear-gradient(100deg, var(--sun) 0%, var(--leaf) 55%, var(--sea) 100%);
  -webkit-background-clip: text; background-clip: text;
}
.hero-lede { font-size: var(--step-1); line-height: 1.55; color: var(--ink-2); max-width: 34rem; margin: 0 0 32px; text-wrap: pretty; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.alpha-note { margin: 18px 0 0; max-width: 34rem; font-size: 0.875rem; line-height: 1.5; color: var(--ink-3); }
.alpha-note strong { color: var(--ink-2); font-weight: 600; }
.hero-meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); }

.release-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  border: 1px solid var(--rule); background: color-mix(in srgb, var(--bg-2) 70%, transparent);
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.04em; color: var(--ink-2);
  text-decoration: none;
}
.release-pill b {
  font-weight: 500; color: var(--on-ink); background: var(--ink);
  padding: 3px 8px; border-radius: 999px; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.625rem;
}
.release-pill:hover { border-color: var(--ink-3); }

@media (max-width: 960px) {
  .hero { min-height: 0; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); padding-block: 40px 40px; gap: 0; }
  .hero-stage { min-height: min(92vw, 440px); }
  .hero::after { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 70%, transparent) 0%, transparent 55%); }
}

/* ---------- Ticker ---------- */
.ticker {
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  background: var(--bg-2);
}
.ticker-track {
  display: flex; width: max-content; gap: 0;
  animation: tick 48s linear infinite;
}
.ticker-track span {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2); padding: 16px 22px; white-space: nowrap; display: inline-flex; align-items: center; gap: 22px;
}
.ticker-track span::after { content: "✦"; color: var(--ink-3); font-size: 0.625rem; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 11vw, 140px); }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { display: grid; gap: 18px; max-width: 46rem; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2, .cta h2 {
  font-family: var(--display); font-weight: 400; font-size: var(--step-3);
  line-height: 1.06; letter-spacing: -0.005em; margin: 0; text-wrap: balance;
}
.section-head p { margin: 0; color: var(--ink-2); font-size: var(--step-1); line-height: 1.55; max-width: 40rem; text-wrap: pretty; }

/* ---------- Shapes (chat vs media) ---------- */
.shapes { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.shapes-copy { min-width: 0; display: grid; gap: 18px; color: var(--ink-2); }
.shapes-copy p { margin: 0; max-width: 34rem; }
.shapes-copy strong { color: var(--ink); font-weight: 600; }
.shape-list { display: grid; gap: 10px; min-width: 0; }
.shape {
  display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; align-items: center;
  padding: 16px 18px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--rule);
}
.shape .label { color: var(--ink-3); }
.shape .io { font-size: 0.9375rem; line-height: 1.4; color: var(--ink); min-width: 0; }
.shape .io small { display: block; color: var(--ink-3); font-size: 0.8125rem; }
.shape .arrow { color: var(--ink-3); font-family: var(--mono); font-size: 0.8125rem; }
.shape.is-chat { background: transparent; border-style: dashed; }
.shape.is-chat .io { color: var(--ink-2); }
.shape[data-p="image"] .label { color: var(--sun); }
.shape[data-p="audio"] .label { color: var(--sea); }
.shape[data-p="video"] .label { color: var(--leaf); }
@media (max-width: 960px) { .shapes { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) {
  .shape { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .shape .arrow { transform: rotate(90deg); width: max-content; }
}

/* ---------- Profiles ---------- */
.profiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.profile {
  --hue: var(--sun);
  min-width: 0;
  border: 1px solid var(--rule); border-radius: 18px;
  background:
    radial-gradient(120% 60% at 0% 0%, color-mix(in srgb, var(--hue) 12%, transparent), transparent 60%),
    var(--bg-2);
  padding: 26px 24px 10px;
  display: flex; flex-direction: column;
}
.profile[data-p="audio"] { --hue: var(--sea); }
.profile[data-p="video"] { --hue: var(--leaf); }
.profile-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.profile h3 { font-family: var(--display); font-weight: 400; font-size: var(--step-2); margin: 0; }
.profile .label { color: var(--hue); }
.profile > p { color: var(--ink-2); margin: 8px 0 18px; font-size: 0.9688rem; }
.ops { list-style: none; margin: 0; padding: 0; }
.ops li { padding: 14px 0; border-top: 1px solid var(--rule); display: grid; gap: 4px; }
.ops code { font-size: 0.75rem; color: var(--hue); overflow-wrap: anywhere; }
.ops .what { font-size: 0.9375rem; line-height: 1.45; }
.ops .who { font-size: 0.8125rem; color: var(--ink-3); }
@media (max-width: 1000px) { .profiles { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Architecture ---------- */
.arch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1.5fr) 40px minmax(0, 1fr);
  align-items: stretch;
  margin-bottom: clamp(48px, 7vw, 88px);
}
.arch-col { min-width: 0; display: grid; gap: 10px; align-content: center; }
.arch-col > .label { margin-bottom: 2px; }
.node {
  border: 1px solid var(--rule); border-radius: 12px; padding: 12px 14px; background: var(--bg-2);
  font-size: 0.9375rem; line-height: 1.35;
}
.node small { display: block; color: var(--ink-3); font-size: 0.8125rem; margin-top: 2px; }
.host {
  border: 1px solid color-mix(in srgb, var(--ink) 30%, var(--rule)); border-radius: 18px; padding: 20px;
  background: var(--bg-3); display: grid; gap: 14px; box-shadow: var(--shadow);
}
.host-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.host-head strong { font-family: var(--display); font-weight: 400; font-size: 1.6rem; }
.host-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.host-grid .node { background: var(--bg-2); }
.plugin-node { display: flex; align-items: center; gap: 10px; }
.plugin-node i { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--hue, var(--ink-3)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--hue, var(--ink-3)) 18%, transparent); }
.plugin-node[data-p="image"] { --hue: var(--sun); }
.plugin-node[data-p="audio"] { --hue: var(--sea); }
.plugin-node[data-p="video"] { --hue: var(--leaf); }
.wire { position: relative; display: grid; place-items: center; }
.wire::before {
  content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 1px;
  background: repeating-linear-gradient(90deg, var(--ink-3) 0 4px, transparent 4px 9px);
}
.wire span {
  position: relative; font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-3); background: var(--bg); padding: 4px 2px; writing-mode: vertical-rl; transform: rotate(180deg);
}
.gpu {
  margin-top: 6px; border-radius: 12px; padding: 12px 14px; text-align: center;
  border: 1px dashed var(--rule); color: var(--ink-2); font-size: 0.875rem;
}
@media (max-width: 1000px) {
  .arch { grid-template-columns: minmax(0, 1fr); }
  .wire { height: 44px; }
  .wire::before { left: 50%; right: auto; top: 4px; bottom: 4px; width: 1px; height: auto;
    background: repeating-linear-gradient(180deg, var(--ink-3) 0 4px, transparent 4px 9px); }
  .wire span { writing-mode: horizontal-tb; transform: none; padding: 2px 8px; }
}
@media (max-width: 520px) { .host-grid { grid-template-columns: minmax(0, 1fr); } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: step; border-top: 1px solid var(--rule); }
.steps li { counter-increment: step; padding: 26px 26px 26px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 8px; align-content: start; min-width: 0; }
.steps li + li { }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: 0.75rem; color: var(--ink-3);
}
.steps h3 { margin: 0; font-size: 1.125rem; font-weight: 600; }
.steps p { margin: 0; color: var(--ink-2); font-size: 0.9688rem; }
.steps code { font-size: 0.75rem; color: var(--ink); background: var(--bg-3); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .steps { grid-template-columns: minmax(0, 1fr); } .steps li { padding-right: 0; } }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.feature {
  min-width: 0; padding: 28px 24px 30px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  display: grid; gap: 10px; align-content: start;
  transition: background-color 0.25s;
}
.feature:hover { background: var(--bg-2); }
.feature svg { width: 26px; height: 26px; color: var(--ink-2); }
.feature h3 { margin: 6px 0 0; font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.feature p { margin: 0; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.55; }
.feature code { font-size: 0.6875rem; color: var(--ink); }
@media (max-width: 1060px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Office ---------- */
.office { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.office .section-head { margin-bottom: 28px; }
.office-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.office-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; }
.office-list svg { width: 22px; height: 22px; color: var(--ink-3); margin-top: 3px; }
.office-list strong { display: block; font-weight: 600; }
.office-list span { color: var(--ink-2); font-size: 0.9688rem; }
.office-list code { font-size: 0.75rem; color: var(--ink); }

.ledger { border: 1px solid var(--rule); border-radius: 18px; background: var(--bg-2); padding: 22px; box-shadow: var(--shadow); min-width: 0; }
.ledger-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; margin-bottom: 18px; }
.ledger-top strong { font-weight: 600; }
.bar { position: relative; height: 44px; border-radius: 10px; background: var(--bg-3); display: flex; overflow: hidden; }
.bar i { display: block; height: 100%; border-right: 2px solid var(--bg-2); }
.bar i[data-p="image"] { background: color-mix(in srgb, var(--sun) 70%, var(--bg-3)); }
.bar i[data-p="audio"] { background: color-mix(in srgb, var(--sea) 70%, var(--bg-3)); }
.bar i[data-p="video"] { background: color-mix(in srgb, var(--leaf) 70%, var(--bg-3)); }
.bar i.idle { opacity: 0.45; background-image: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--bg-2) 50%, transparent) 6px 12px); }
.bar .limit { position: absolute; top: -6px; bottom: -6px; left: 75%; width: 2px; background: var(--ink); }
.bar-scale { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--mono); font-size: 0.625rem; color: var(--ink-3); position: relative; }
.bar-scale .mark { position: absolute; left: 75%; transform: translateX(-50%); color: var(--ink); }
.ledger-rows { margin: 20px 0 0; padding: 0; list-style: none; font-family: var(--mono); font-size: 0.75rem; }
.ledger-rows li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--rule); color: var(--ink-2); }
.ledger-rows li i { width: 8px; height: 8px; border-radius: 2px; }
.ledger-rows li b { font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.ledger-note { margin: 14px 0 0; font-size: 0.8125rem; color: var(--ink-3); }
@media (max-width: 960px) { .office { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Developers ---------- */
.dev { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.dev .section-head { margin-bottom: 24px; }
.dev-links { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.dev-links a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink);
}
.dev-links a span { color: var(--ink-3); font-size: 0.875rem; }
.dev-links a:hover { color: var(--sea); }
.term { border: 1px solid var(--rule); border-radius: 16px; background: var(--bg-2); overflow: hidden; min-width: 0; box-shadow: var(--shadow); }
.term-bar { display: flex; align-items: center; gap: 4px; padding: 8px; border-bottom: 1px solid var(--rule); background: var(--bg-3); overflow-x: auto; }
.tab {
  font: 500 0.8125rem/1 var(--body); color: var(--ink-2); background: transparent; border: 0;
  padding: 10px 14px; border-radius: 9px; cursor: pointer; white-space: nowrap;
}
.tab[aria-selected="true"] { background: var(--bg-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); }
.copy { margin-left: auto; font: 500 0.75rem/1 var(--mono); color: var(--ink-3); background: transparent; border: 1px solid var(--rule); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.copy:hover { color: var(--ink); }
.term pre { margin: 0; padding: 22px; overflow-x: auto; font-size: 0.78rem; line-height: 1.85; color: var(--ink); tab-size: 2; }
.term .c { color: var(--ink-3); }
.term .k { color: var(--sea); }
.term .s { color: var(--sun); }
.term .g { color: var(--leaf); }

/* ---------- Gallery ---------- */
.shots { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.shot { margin: 0; min-width: 0; display: grid; gap: 12px; }
.shot img { border-radius: 14px; border: 1px solid var(--rule); box-shadow: var(--shadow); width: 100%; }
.shot figcaption { color: var(--ink-3); font-size: 0.875rem; max-width: 36rem; }
.shot figcaption b { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .shots { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Catalog ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: 16px; background: var(--bg-2); }
table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 0.9375rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-family: var(--mono); font-weight: 500; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); background: var(--bg-3); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--bg-3) 50%, transparent); }
td a { text-decoration: none; font-weight: 600; }
td a:hover { color: var(--sea); }
td small { display: block; color: var(--ink-3); font-size: 0.8125rem; }
td code { font-size: 0.7rem; color: var(--ink-2); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.06em; }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tag[data-p="image"] { color: var(--sun); }
.tag[data-p="audio"] { color: var(--sea); }
.tag[data-p="video"] { color: var(--leaf); }
.catalog-foot { margin-top: 18px; color: var(--ink-3); font-size: 0.875rem; }
.catalog-foot code { color: var(--ink-2); font-size: 0.75rem; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; border-top: 1px solid var(--rule); }
.cta .wrap { position: relative; padding-block: clamp(80px, 12vw, 150px); display: grid; gap: 26px; justify-items: start; }
.cta p { margin: 0; color: var(--ink-2); font-size: var(--step-1); max-width: 38rem; }
.cta-horizon {
  position: absolute; inset: auto -10% -62% -10%; height: 120%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--sea) 16%, transparent), transparent 70%);
  border-top: 1px solid color-mix(in srgb, var(--sea) 35%, transparent);
}
.principles { display: flex; flex-wrap: wrap; gap: 10px; }
.principles span { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 8px 12px; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink-2); background: color-mix(in srgb, var(--bg) 60%, transparent); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--rule); background: var(--bg-2); }
.footer .wrap { padding-block: 56px 40px; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer p { margin: 12px 0 0; color: var(--ink-3); font-size: 0.875rem; max-width: 22rem; }
.footer h4 { margin: 0 0 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; color: var(--ink-2); font-size: 0.9375rem; }
.footer a:hover { color: var(--ink); }
.footer-base { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; border-top: 1px solid var(--rule); color: var(--ink-3); font-size: 0.8125rem; }
@media (max-width: 820px) { .footer .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer .wrap > :first-child { grid-column: 1 / -1; } }
