/* sentryline labs — marketing site
   shares the sorturls type stack but tuned editorial:
   bigger serif italics, tighter mono telemetry, single amber sentry accent. */

:root {
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  --bg: #050506;
  --bg-2: #08080a;
  --surface: #0c0c0e;
  --surface-2: #131316;
  --surface-3: #1a1a1e;
  --border: #1f1f24;
  --border-strong: #2c2c33;

  --text: #f5f5f7;
  --text-soft: #c8c8cc;
  --muted: #76767c;
  --muted-2: #4a4a50;

  --hl: rgba(255, 255, 255, 0.04);
  --hl-2: rgba(255, 255, 255, 0.08);
  --grid-dot: rgba(255, 255, 255, 0.05);

  /* sentry amber — used sparingly */
  --sentry: oklch(0.78 0.14 78);
  --sentry-soft: oklch(0.78 0.14 78 / 0.14);
  --sentry-border: oklch(0.78 0.14 78 / 0.32);

  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 18px;

  --max: 1240px;
  --gutter: 28px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "ss02", "cv11";
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--sentry-soft); color: var(--text); }

/* ───────────────────────── tokens ───────────────────────── */

.mono { font-family: var(--font-mono); }
.serif { font-family: var(--font-serif); }
.serif-italic { font-family: var(--font-serif); font-style: italic; }
.uppercase { text-transform: uppercase; letter-spacing: 0.08em; }
.tiny { font-size: 10.5px; letter-spacing: 0.06em; }
.muted { color: var(--muted); }
.soft { color: var(--text-soft); }
.amber { color: var(--sentry); }

.kbd {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 1.5px 5px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--surface);
  color: var(--muted);
  line-height: 1;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.pill.sentry {
  color: var(--sentry);
  border-color: var(--sentry-border);
  background: var(--sentry-soft);
}

.dot {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--muted-2);
}
.dot.live {
  background: var(--sentry);
  box-shadow: 0 0 0 0 var(--sentry-soft);
  animation: pulse-dot 2.4s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 var(--sentry-soft); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--r-sm);
  font-size: 13.5px;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--surface-2); border-color: var(--border-strong); }
.btn.primary {
  background: var(--text);
  color: #050506;
  border-color: var(--text);
  font-weight: 500;
}
.btn.primary:hover { background: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-soft); }
.btn.ghost:hover { background: var(--hl); color: var(--text); }
.btn .arr { transition: transform 0.2s ease; }
.btn:hover .arr { transform: translateX(2px); }

.frame {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.hr { height: 1px; background: var(--border); width: 100%; }

/* ───────────────────────── layout ───────────────────────── */

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

section { position: relative; }

/* ───────────────────────── top bar ───────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--text);
}
.brand-mark {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
}
.brand-mark svg { display: block; }
.brand-tag { color: var(--muted); }
.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-links a {
  padding: 6px 12px;
  font-size: 13px;
  color: var(--text-soft);
  border-radius: var(--r-sm);
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { color: var(--text); background: var(--hl); }
.nav-right {
  display: flex; align-items: center; gap: 10px;
}
.status-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  letter-spacing: 0.04em;
}

/* ───────────────────────── hero ───────────────────────── */

.hero {
  position: relative;
  padding: 96px 0 64px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--grid-dot) 1px, transparent 0);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
/* the sentry line: a slow sweeping horizontal beam */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--sentry) 50%, transparent 100%);
  opacity: 0.5;
  animation: sweep 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sweep {
  0%, 100% { transform: translateY(-180px); opacity: 0; }
  20% { opacity: 0.55; }
  80% { opacity: 0.55; }
  50% { transform: translateY(180px); opacity: 0.5; }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 72px; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.eyebrow .bar { width: 18px; height: 1px; background: var(--muted-2); }

.h1 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0;
}
.h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
}
.h1 .amber {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.lede {
  margin-top: 28px;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 520px;
}

.hero-cta {
  margin-top: 36px;
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 540px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.hero-meta .k {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.hero-meta .v {
  font-family: var(--font-sans);
  font-size: 17px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.hero-meta .v em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

/* hero panel — a telemetry card sitting beside the headline */
.telemetry {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  overflow: hidden;
  min-height: 460px;
}
.tel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.tel-head .dots { display: inline-flex; gap: 5px; }
.tel-head .dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
}
.tel-body {
  padding: 20px 22px 22px;
  display: flex; flex-direction: column;
  gap: 18px;
}

.tel-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 14px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
}
.tel-row .label {
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 10px;
}
.tel-row .val { color: var(--text); }
.tel-row .meter {
  height: 4px;
  background: var(--surface-3);
  border-radius: 4px;
  overflow: hidden;
  min-width: 80px;
}
.tel-row .meter > i {
  display: block;
  height: 100%;
  background: var(--text);
  border-radius: 4px;
}
.tel-row .meter > i.amber { background: var(--sentry); }

.tel-graph {
  margin-top: 4px;
  border-top: 1px dashed var(--border);
  padding-top: 18px;
}
.tel-graph .glabel {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tel-graph svg { display: block; width: 100%; height: 140px; }

.tel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.tel-foot .cursor {
  display: inline-block;
  width: 8px; height: 12px;
  background: var(--sentry);
  margin-left: 6px;
  vertical-align: -2px;
  animation: blink 1s steps(2, end) infinite;
}
@keyframes blink { 0%, 50% { opacity: 1 } 51%, 100% { opacity: 0 } }

/* ───────────────────────── section header ───────────────────────── */

.section {
  padding: 88px 0;
  border-top: 1px solid var(--border);
}
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.sec-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sec-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 12px 0 0;
  max-width: 760px;
}
.sec-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.sec-sub {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-soft);
  max-width: 360px;
  line-height: 1.55;
}

/* ───────────────────────── flagship: sorturls ───────────────────────── */

.flagship {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  background:
    linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
}
@media (min-width: 960px) {
  .flagship { grid-template-columns: 0.95fr 1.05fr; gap: 0; }
}

.flagship-text { padding: 44px 44px 44px; display: flex; flex-direction: column; }
.flagship-text .top {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 28px;
}
.flagship-text h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 0 0 18px;
}
.flagship-text h3 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.flagship-text .desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-soft);
  margin-bottom: 28px;
  max-width: 460px;
}
.flagship-text .feat {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.flagship-text .feat li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px;
  color: var(--text-soft);
}
.flagship-text .feat li .n {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  flex-shrink: 0;
  padding-top: 2px;
  letter-spacing: 0.04em;
}
.flagship-text .actions {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: auto;
}

.flagship-vis {
  position: relative;
  padding: 36px;
  background:
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  border-left: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  min-height: 460px;
}
@media (max-width: 959px) { .flagship-vis { border-left: none; border-top: 1px solid var(--border); } }
.flagship-vis::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--grid-dot) 1px, transparent 0);
  background-size: 18px 18px;
  opacity: 0.7;
  pointer-events: none;
}

/* a stylized "library" mock — abstracted cards, no brand chrome */
.lib-mock {
  position: relative;
  width: 100%;
  max-width: 460px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6), 0 1px 0 rgba(255,255,255,0.04) inset;
}
.lib-mock .lib-top {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.lib-mock .lib-top .url {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 8px;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lib-mock .lib-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.lib-card {
  display: grid;
  grid-template-columns: 4px 32px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px 8px 0;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface-2);
}
.lib-card .strip { width: 4px; align-self: stretch; border-radius: 2px; }
.lib-card .thumb {
  width: 32px; height: 32px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--surface-3), var(--surface-2));
  border: 1px solid var(--border);
}
.lib-card .meta { min-width: 0; }
.lib-card .ttl {
  font-size: 12px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lib-card .sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lib-card .pill {
  font-size: 9.5px;
  padding: 1.5px 6px;
}

.lib-mock .lib-foot {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ───────────────────────── principles ───────────────────────── */

.principles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) { .principles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .principles { grid-template-columns: repeat(4, 1fr); } }

.principle {
  position: relative;
  padding: 24px 22px 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  min-height: 220px;
  display: flex; flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.principle:hover { border-color: var(--border-strong); }
.principle .pnum {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.principle h4 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 18px 0 10px;
  color: var(--text);
}
.principle h4 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.principle p {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.55;
  margin: 0;
}

/* ───────────────────────── shipping log ───────────────────────── */

.log {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
}
.log-row {
  display: grid;
  grid-template-columns: 110px 80px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
}
.log-row:last-child { border-bottom: none; }
.log-row .date { color: var(--muted); font-size: 11px; }
.log-row .prj {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px;
  color: var(--text);
}
.log-row .prj .pdot { width: 6px; height: 6px; border-radius: 1.5px; background: var(--text); }
.log-row .prj.sorturls .pdot { background: var(--sentry); }
.log-row .prj.lab .pdot { background: var(--muted-2); }
.log-row .msg { color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log-row .hash { color: var(--muted); font-size: 11px; }
.log-foot {
  padding: 12px 22px;
  background: var(--bg-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  display: flex; justify-content: space-between;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ───────────────────────── studio ───────────────────────── */

.studio {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 960px) { .studio { grid-template-columns: 1fr 1fr; gap: 80px; } }

.studio-text p {
  font-size: 16px;
  color: var(--text-soft);
  line-height: 1.65;
  margin: 0 0 18px;
  max-width: 540px;
}
.studio-text p em { font-family: var(--font-serif); font-style: italic; }
.studio-text .signoff {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--text);
  margin-top: 28px;
  display: inline-block;
}

.studio-side {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-2);
  padding: 26px;
  align-self: start;
}
.studio-side .kv {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}
.studio-side .kv:last-of-type { border-bottom: none; }
.studio-side .kv .k { color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; font-size: 10.5px; padding-top: 2px; }
.studio-side .kv .v { color: var(--text); }
.studio-side .kv .v.muted { color: var(--text-soft); }

/* ───────────────────────── cta ───────────────────────── */

.cta {
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 56px 48px;
  position: relative;
  background:
    radial-gradient(circle at 70% 30%, var(--sentry-soft) 0%, transparent 50%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--grid-dot) 1px, transparent 0);
  background-size: 22px 22px;
  opacity: 0.5;
  pointer-events: none;
}
.cta-inner {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  max-width: 600px;
}
.cta h3 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.cta .right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 16px;
}
.cta .note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ───────────────────────── footer ───────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 36px;
  margin-top: 88px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 800px) {
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
}
.foot-col h5 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.foot-col a { color: var(--text-soft); font-size: 13px; }
.foot-col a:hover { color: var(--text); }

.foot-brand .desc {
  font-size: 13px;
  color: var(--text-soft);
  margin: 14px 0 0;
  max-width: 320px;
  line-height: 1.55;
}

.foot-bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* huge wordmark in footer */
.wordmark {
  margin-top: 48px;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.04em;
  font-size: clamp(64px, 13vw, 180px);
  line-height: 0.9;
  color: var(--text);
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
}
.wordmark em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--text);
}
.wordmark .dotmark {
  display: inline-block;
  width: 0.18em; height: 0.18em;
  border-radius: 50%;
  background: var(--sentry);
  vertical-align: 0.08em;
  margin-left: 0.02em;
}

/* ───────────────────────── responsive tweaks ───────────────────────── */

/* tablet & narrow desktop */
@media (max-width: 960px) {
  :root { --gutter: 22px; }
  .hero { padding: 72px 0 48px; }
  .hero-inner { gap: 48px; }
  .section { padding: 72px 0; }
  .sec-head { margin-bottom: 36px; }
  .telemetry { min-height: auto; }
  .flagship-vis { min-height: 380px; }
  .studio-side { padding: 22px; }
  footer { margin-top: 64px; }
}

/* tablet portrait → small tablet */
@media (max-width: 768px) {
  .topbar .nav-links { display: none; }
  .nav-right .status-chip { display: none; }
}

/* large phone */
@media (max-width: 720px) {
  :root { --gutter: 18px; }

  /* topbar */
  .topbar .row { height: 52px; }
  .brand { font-size: 12px; }

  /* hero */
  .hero { padding: 48px 0 32px; }
  .hero-inner { gap: 32px; }
  .h1 { font-size: clamp(36px, 9vw, 52px); }
  .lede { font-size: 15px; margin-top: 22px; }
  .hero-cta { margin-top: 28px; gap: 10px; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; min-width: 0; }
  .hero-meta {
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
    margin-top: 40px;
    padding-top: 20px;
  }
  .hero-meta .v { font-size: 15px; }

  /* telemetry panel */
  .telemetry { border-radius: var(--r-md); }
  .tel-head { padding: 12px 14px; font-size: 10.5px; }
  .tel-body { padding: 16px 16px 18px; gap: 14px; }
  .tel-row {
    grid-template-columns: 90px 1fr auto;
    gap: 10px;
    font-size: 11px;
  }
  .tel-row .label { font-size: 9.5px; }
  .tel-row .meter { min-width: 50px; }
  .tel-graph svg { height: 110px; }
  .tel-foot { padding: 10px 14px; font-size: 10px; }
  .tel-foot span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 50%; }

  /* sections */
  .section { padding: 56px 0; }
  .sec-head { gap: 16px; margin-bottom: 28px; }
  .sec-title { font-size: clamp(26px, 7vw, 36px); }
  .sec-sub { font-size: 13.5px; max-width: 100%; }

  /* flagship */
  .flagship { border-radius: var(--r-lg); }
  .flagship-text, .flagship-vis { padding: 26px 22px; min-height: auto; }
  .flagship-text h3 { font-size: clamp(30px, 8vw, 38px); }
  .flagship-text .top { gap: 6px; flex-wrap: wrap; }
  .flagship-text .desc { font-size: 14px; }
  .flagship-text .feat {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 20px;
    margin-bottom: 24px;
  }
  .flagship-text .actions { gap: 10px; }
  .flagship-text .actions .btn { flex: 1 1 auto; justify-content: center; }
  .flagship-vis { padding: 24px 18px; }
  .lib-mock { max-width: 100%; }
  .lib-card { grid-template-columns: 4px 28px 1fr auto; gap: 8px; padding: 7px 8px 7px 0; }
  .lib-card .thumb { width: 28px; height: 28px; }
  .lib-card .ttl { font-size: 11.5px; }
  .lib-card .pill { display: none; }

  /* principles */
  .principles { gap: 12px; }
  .principle { min-height: 0; padding: 22px 20px 24px; }
  .principle h4 { font-size: 18px; margin: 14px 0 8px; }

  /* shipping log */
  .log-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 18px;
    white-space: normal;
  }
  .log-row .date { font-size: 10.5px; letter-spacing: 0.06em; }
  .log-row .prj { font-size: 10.5px; }
  .log-row .hash { display: none; }
  .log-row .msg { font-size: 12px; white-space: normal; line-height: 1.45; }
  .log-foot { padding: 12px 18px; gap: 4px; flex-direction: column; align-items: flex-start; }

  /* studio */
  .studio { gap: 32px; }
  .studio-text p { font-size: 14.5px; }
  .studio-text .signoff { font-size: 18px; margin-top: 20px; }
  .studio-side { padding: 20px; }
  .studio-side .kv { grid-template-columns: 96px 1fr; gap: 6px 12px; font-size: 11.5px; padding: 8px 0; }
  .studio-side .kv .k { font-size: 9.5px; }

  /* cta */
  .cta { padding: 32px 22px; border-radius: var(--r-lg); }
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .cta h3 { font-size: clamp(24px, 7vw, 32px); }
  .cta .right { align-items: flex-start; width: 100%; }
  .cta .right .row { width: 100%; justify-content: flex-start !important; }
  .cta .right .btn { flex: 1 1 auto; justify-content: center; }

  /* footer */
  footer { padding: 36px 0 28px; margin-top: 56px; }
  .foot-grid { gap: 28px; grid-template-columns: 1fr 1fr; }
  .foot-col.foot-brand { grid-column: 1 / -1; }
  .wordmark {
    margin-top: 32px;
    font-size: clamp(56px, 18vw, 110px);
    letter-spacing: -0.045em;
  }
  .foot-bottom {
    margin-top: 32px;
    padding-top: 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* small phone */
@media (max-width: 420px) {
  :root { --gutter: 16px; }
  .brand-tag { display: none; }
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .hero-meta > div:nth-child(3) { grid-column: 1 / -1; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-col.foot-brand { grid-column: auto; }
  .tel-row { grid-template-columns: 80px 1fr auto; }
  .tel-row .meter { display: none; }
  .lib-card .sub { font-size: 9.5px; }
}

/* ═════════════════════════════════════════════════════════════
   SUBPAGES — shared
   ═════════════════════════════════════════════════════════════ */

/* nav link marked current */
.nav-links a.current { color: var(--text); background: var(--hl); }

/* page header — sits under the sticky topbar */
.page-head {
  position: relative;
  padding: 72px 0 52px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--grid-dot) 1px, transparent 0);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 30% 0%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 0%, #000 20%, transparent 70%);
  pointer-events: none;
}
.page-head .wrap { position: relative; }

.crumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.crumb a { color: var(--muted); transition: color 0.15s; }
.crumb a:hover { color: var(--text-soft); }
.crumb .sep { color: var(--muted-2); }
.crumb .here { color: var(--sentry); }

.page-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(36px, 5.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0;
  max-width: 820px;
}
.page-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.page-lede {
  margin-top: 22px;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 560px;
}

/* document meta strip — version-hash flavour from the changelog */
.doc-meta {
  margin-top: 34px;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px 14px;
}
.doc-meta .chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  letter-spacing: 0.04em;
  background: var(--surface);
  white-space: nowrap;
}
.doc-meta .chip b { color: var(--text-soft); font-weight: 500; }
.doc-meta .chip .dot { background: var(--sentry); }

/* ═════════════════ legal — toc + prose ═════════════════ */

.legal {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding: 64px 0 24px;
}
@media (min-width: 900px) {
  .legal { grid-template-columns: 220px 1fr; gap: 72px; }
}

.toc {
  align-self: start;
}
@media (min-width: 900px) {
  .toc { position: sticky; top: 84px; }
}
.toc-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.toc ol {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  counter-reset: toc;
}
.toc li { counter-increment: toc; }
.toc a {
  display: flex; gap: 12px;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.4;
  transition: color 0.15s;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  padding-top: 2px;
  flex-shrink: 0;
}
.toc a:hover { color: var(--text); }
.toc a:hover::before { color: var(--sentry); }

.prose { max-width: 720px; }
.prose section { scroll-margin-top: 80px; padding-bottom: 8px; }
.prose section + section { margin-top: 44px; }
.prose h2 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.018em;
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 18px;
  display: flex; align-items: baseline; gap: 14px;
}
.prose h2 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.prose h2 .sn {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.prose h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  margin: 28px 0 10px;
  letter-spacing: -0.01em;
}
.prose p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-soft);
  margin: 0 0 16px;
}
.prose p em { font-family: var(--font-serif); font-style: italic; color: var(--text); }
.prose a.inline { color: var(--sentry); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--sentry-border); }
.prose a.inline:hover { text-decoration-color: var(--sentry); }
.prose ul {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: flex; flex-direction: column; gap: 10px;
}
.prose ul li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-soft);
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 2px; top: 10px;
  width: 5px; height: 5px;
  border-radius: 1.5px;
  background: var(--sentry);
}
.prose ul li strong { color: var(--text); font-weight: 600; }

.callout {
  border: 1px solid var(--border);
  border-left: 2px solid var(--sentry-border);
  border-radius: var(--r-sm);
  background: var(--surface);
  padding: 18px 20px;
  margin: 22px 0;
}
.callout p { margin: 0; font-size: 13.5px; color: var(--text-soft); }
.callout .lab {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--sentry);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.legal-foot {
  margin-top: 8px;
  padding: 26px 0 0;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.legal-foot a { color: var(--text-soft); }
.legal-foot a:hover { color: var(--sentry); }

/* ═════════════════ contact ═════════════════ */

.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 64px 0 24px;
}
@media (min-width: 900px) {
  .contact { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
}

.contact-form {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  padding: 32px 32px 30px;
}
.form-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.form-head .ttl {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.field label .req { color: var(--sentry); margin-left: 3px; }
.field input,
.field textarea,
.field select {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.field textarea { resize: vertical; min-height: 132px; line-height: 1.55; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-2); }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--sentry-border);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--sentry-soft);
}
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2376767c' stroke-width='1.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 32px;
}
.form-foot {
  margin-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.form-foot .hint {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
  max-width: 260px;
  line-height: 1.5;
}
.form-status {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--sentry);
  display: none;
  align-items: center; gap: 8px;
}
.form-status.show { display: inline-flex; }

/* contact aside — channels + response telemetry */
.contact-side { display: flex; flex-direction: column; gap: 16px; }

.channel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 18px 20px;
  transition: border-color 0.2s;
}
.channel:hover { border-color: var(--border-strong); }
.channel .ico {
  grid-row: 1 / 3;
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--sentry);
}
.channel .ico svg { display: block; }
.channel .k {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  align-self: end;
}
.channel .v {
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: var(--text);
  align-self: start;
}
.channel a.v:hover { color: var(--sentry); }

.side-panel {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-2);
  overflow: hidden;
}
.side-panel .sp-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.side-panel .sp-body { padding: 6px 18px 14px; }
.sp-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
}
.sp-row:last-child { border-bottom: none; }
.sp-row .k { color: var(--muted); font-size: 11px; letter-spacing: 0.02em; }
.sp-row .v { color: var(--text); }
.sp-row .v.amber { color: var(--sentry); }

@media (max-width: 720px) {
  .page-head { padding: 48px 0 36px; }
  .legal { padding: 44px 0 16px; gap: 36px; }
  .contact { padding: 44px 0 16px; gap: 28px; }
  .contact-form { padding: 24px 20px; }
  .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .toc { display: none; }
  .prose h2 { font-size: 21px; }
}
