/* hetops.dev: the site is an eye. Lid-dark ground, a hazel iris palette (gold for focus and
   numbers, moss for live things and links), warm sclera white for type.
   Motion lives in app.js and switches off under prefers-reduced-motion. */

:root {
  --ink: #08090a;
  --ink-2: #0f1112;
  --ink-3: #171a1b;
  --line: rgba(239, 233, 221, 0.1);
  --line-2: rgba(239, 233, 221, 0.18);
  --text: #efe9dd;
  --text-2: rgba(239, 233, 221, 0.76);
  --text-3: rgba(239, 233, 221, 0.6);
  --gold: #e3a944;
  --gold-hi: #f0bd5e;
  --gold-ink: #1d1404;
  --moss: #45b88d;
  --moss-text: #74d3ab;
  --err: #ef7a64;
  --warn: #e3a944;
  --ok: #74d3ab;
  --sans: 'Archivo', ui-sans-serif, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1180px;
  --nav-h: 64px;
  color-scheme: dark;
  accent-color: var(--gold);
  scrollbar-color: #2b2e2f var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--nav-h) + 24px); overflow-x: clip; scroll-behavior: smooth; }
body {
  background: var(--ink); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6;
  font-stretch: 100%; -webkit-font-smoothing: antialiased; overflow-x: clip; caret-color: var(--gold);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(227, 169, 68, 0.32); color: var(--text); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
code { font-family: var(--mono); font-size: 0.86em; padding: 2px 7px; border-radius: 6px; background: var(--ink-3); border: 1px solid var(--line); }
kbd { font-family: var(--mono); font-size: 12px; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--text-3); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); }
.skip:focus { left: 8px; }

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-stretch: 115%; letter-spacing: -0.035em; line-height: 1; }
h3 { font-size: 24px; font-stretch: 108%; }
.head { margin-bottom: 64px; }
.sub { margin-top: 18px; max-width: 58ch; font-size: 18px; color: var(--text-2); }

/* ── Controls ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px; height: 50px; padding: 0 24px; border-radius: 999px;
  font-size: 15px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.2s var(--ease);
}
.btn i { font-size: 18px; }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-gold { background: var(--gold); color: var(--gold-ink); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.8); }
.btn-gold:hover { background: var(--gold-hi); }
.btn-gold:disabled { opacity: 0.6; cursor: wait; }
.btn-line { border-color: var(--line-2); color: var(--text); }
.btn-line:hover { border-color: var(--text-3); background: var(--ink-3); }
.btn-lg { height: 58px; padding: 0 30px; font-size: 16px; }
.links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 24px; }
.links a, .more, .social a {
  position: relative; display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: 15px;
  text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 6px; text-decoration-thickness: 1px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.links a:hover, .more:hover, .social a:hover { color: var(--moss-text); text-decoration-color: var(--moss); }
.links i, .more i { font-size: 14px; transition: transform 0.3s var(--ease); }
.links a:hover i, .more:hover i { transform: translate(2px, -2px); }
.more { margin-top: 32px; }

/* ── Navigation ───────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); padding: 0 28px;
  display: flex; align-items: center; gap: 28px; border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.nav.scrolled { background: rgba(8, 9, 10, 0.92); border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; font-size: 18px; font-stretch: 112%; letter-spacing: -0.02em; }
.brand-mark { height: 20px; width: auto; fill: var(--moss); transition: transform 0.5s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg); }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a { position: relative; padding: 10px 12px; font-size: 14px; font-weight: 500; color: var(--text-2); transition: color 0.2s; }
.nav-links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-btn {
  height: 44px; min-width: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); cursor: pointer; font-size: 18px;
}
.nav-btn:hover { color: var(--text); border-color: var(--text-3); }
.nav-cv { height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(227, 169, 68, 0.55); color: var(--gold); font-size: 14px; font-weight: 600; transition: background 0.2s; }
.nav-cv:hover { background: rgba(227, 169, 68, 0.1); }
.menu-btn { display: none; }
.sheet { position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 49; padding: 12px 24px 28px; background: var(--ink); border-bottom: 1px solid var(--line); display: grid; gap: 18px; }
.sheet nav { display: grid; }
.sheet nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 24px; font-weight: 700; font-stretch: 112%; }

.palette { border: 0; padding: 0; background: transparent; color: var(--text); width: calc(100% - 32px); max-width: 600px; margin: 12vh auto auto; }
.palette::backdrop { background: rgba(4, 5, 5, 0.7); }
.palette-box { background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9); }
.palette-search { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); color: var(--text-3); }
.palette-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); font: 16px var(--sans); }
.palette-list { max-height: 50vh; overflow-y: auto; padding: 8px; }
.palette-group { padding: 10px 10px 4px; font-size: 12px; color: var(--text-3); }
.palette-item { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 12px; cursor: pointer; font-size: 15px; }
.palette-item i, .palette-item img { width: 20px; height: 20px; font-size: 18px; border-radius: 5px; color: var(--text-3); }
.palette-item .hint { margin-left: auto; font-size: 12px; color: var(--text-3); }
.palette-item[aria-selected="true"] { background: var(--ink-3); }
.palette-empty { padding: 18px; color: var(--text-3); }

/* ── Hero: the 3D eye ─────────────────────────────────── */
.hero {
  position: relative; min-height: 100dvh; padding: calc(var(--nav-h) + 24px) max(32px, calc((100vw - 1480px) / 2)) 48px;
  display: grid; grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr); gap: 24px; align-items: center;
}
.hero-copy { position: relative; z-index: 2; max-width: 680px; }
.hero h1 { font-size: clamp(2.4rem, 3.5vw, 4rem); font-stretch: 100%; font-weight: 760; line-height: 0.98; letter-spacing: -0.04em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.lede { margin-top: 24px; font-size: 18px; color: var(--text-2); max-width: 42ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.eye-caption {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); min-height: 76px; max-width: 48ch;
  font-size: 15px; color: var(--text-2);
}
.eye-caption img { display: inline-block; width: 22px; height: 22px; border-radius: 6px; vertical-align: -5px; margin-right: 8px; }
.eye-caption b { color: var(--text); font-weight: 650; }
.eye-caption a { color: var(--moss-text); font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgba(116, 211, 171, 0.4); white-space: nowrap; }

.eye-stage { position: relative; width: 100%; aspect-ratio: 1; max-height: calc(100dvh - var(--nav-h) - 40px); justify-self: center; }
.eye-stage::before {
  content: ""; position: absolute; inset: 14%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(227, 169, 68, 0.1), rgba(69, 184, 141, 0.05) 45%, transparent 70%);
}
.eye-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.orbits { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity 0.25s; will-change: transform; }
.eye-stage:not(.awake) .orb { opacity: 0 !important; }
.orb.hidden { pointer-events: none !important; }
.orb-tool { pointer-events: auto; }
.orb-tool button {
  width: 52px; height: 52px; padding: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: #0d0f10; border: 1px solid rgba(239, 233, 221, 0.24); box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.9);
  transition: border-color 0.25s, scale 0.35s var(--ease);
}
.orb-tool img { width: 32px; height: 32px; border-radius: 8px; }
.orb-tool button:hover, .orb-tool button:focus-visible, .orb-tool.on button { border-color: var(--gold); scale: 1.16; }
.orb-num, .orb-tag { white-space: nowrap; text-align: center; line-height: 1.15; }
.orb-num b { display: block; font-size: 20px; font-stretch: 116%; font-weight: 760; color: var(--gold); font-variant-numeric: tabular-nums; }
.orb-num span { font-size: 12px; color: var(--text-2); }
.orb-tag span { display: inline-block; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(8, 9, 10, 0.7); font-size: 12.5px; color: var(--text-2); }
.eye-fallback { position: absolute; inset: 26%; border-radius: 50%; display: none; background: radial-gradient(circle, #050505 0 17%, #7a5420 18%, #b07a24 32%, #4f8a68 52%, #173328 66%, #cfc6b5 70%, #7b746a 100%); }
.no-gl .eye-fallback { display: block; }

/* ── Experience: the eye chart ────────────────────────── */
.exp { padding-top: 160px; }
.chart { display: grid; gap: 30px; padding: 56px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.chart li { display: grid; grid-template-columns: 80px minmax(0, 1fr) 80px; align-items: baseline; transition: filter 0.5s var(--ease), opacity 0.5s var(--ease); }
.acuity { font-family: var(--mono); font-size: 12px; color: var(--text-3); text-align: left; }
.row {
  grid-column: 2; font-size: max(17px, calc(var(--s) * clamp(2.6rem, 8.4vw, 7.6rem))); font-stretch: 100%; font-weight: 800;
  letter-spacing: calc(0.02em + (1 - var(--s)) * 0.08em); line-height: 1; text-wrap: balance;
}
.chart li:first-child .row { color: var(--gold); }
.fine { grid-column: 2; margin-top: 10px; font-size: 14px; color: var(--text-3); }
@media (hover: hover) {
  .chart:hover li:not(:hover) { filter: blur(2px); opacity: 0.45; }
}
.roles { margin-top: 80px; }
.roles li { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: 32px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.roles li:first-child { border-top: 1px solid var(--line); }
.roles .when { grid-row: span 2; padding-top: 4px; font-family: var(--mono); font-size: 13px; color: var(--text-3); }
.roles h3 { font-size: 21px; }
.roles h3 span { margin-left: 8px; font-weight: 500; color: var(--text-3); }
.roles p { margin-top: 6px; color: var(--text-2); max-width: 64ch; }
.stackline { margin-top: 28px; max-width: 82ch; font-size: 15px; color: var(--text-2); }
.stackline b { margin-right: 6px; color: var(--text); }

/* ── Work: under the lens ─────────────────────────────── */
.work { padding-top: 180px; }
.p-icon { width: 56px; height: 56px; border-radius: 14px; margin-bottom: 20px; }
.problem { margin-top: 14px; font-size: 20px; font-stretch: 104%; font-weight: 500; line-height: 1.4; color: var(--text); max-width: 44ch; }

.story-intro { max-width: 640px; }
.story-intro h3, .case h3 { font-size: clamp(30px, 3.2vw, 40px); font-stretch: 112%; letter-spacing: -0.03em; }
.story-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; margin-top: 40px; }
.step { position: relative; min-height: 58vh; padding: 8px 0 24px 28px; border-left: 1px solid var(--line); opacity: 0.6; transition: opacity 0.5s var(--ease); }
.step::before { content: ""; position: absolute; left: -5px; top: 14px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); border: 1px solid var(--line-2); transition: background 0.4s, border-color 0.4s; }
.step.is-active { opacity: 1; }
.step.is-active::before { background: var(--gold); border-color: var(--gold); }
.step:last-child { min-height: 46vh; }
.step h4 { font-size: 26px; font-stretch: 110%; }
.step p { margin-top: 12px; font-size: 17px; color: var(--text-2); max-width: 42ch; }
.stage {
  position: sticky; top: calc(var(--nav-h) + 40px); width: min(100%, 540px); aspect-ratio: 1; justify-self: center; border-radius: 50%;
  overflow: hidden; clip-path: circle(50%); container-type: inline-size;
  background: radial-gradient(circle at 50% 42%, #17191a 0%, #0e1011 62%, var(--ink) 100%);
}
.stage-ring { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.stage-ring circle { fill: none; stroke: var(--line); stroke-width: 0.5; }
.stage-ring .stage-prog { stroke: var(--gold); stroke-width: 0.8; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 75; transition: stroke-dashoffset 0.9s var(--ease); }
.panel {
  position: absolute; inset: 17%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4cqw; text-align: center;
  opacity: 0; transform: scale(0.96); filter: blur(6px); pointer-events: none;
  transition: opacity 0.6s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease);
}
.panel.is-active { opacity: 1; transform: none; filter: none; }
.big { font-size: 17cqw; font-stretch: 100%; font-weight: 800; line-height: 0.9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.big.warn { color: var(--warn); }
.big-lbl { font-size: max(13px, 3.2cqw); color: var(--text-2); }
.flow { display: flex; align-items: center; justify-content: center; gap: 2cqw; width: 100%; }
.fnode { font-family: var(--mono); font-size: max(10px, 2.3cqw); padding: 1.2cqw 2cqw; border-radius: 999px; border: 1px solid var(--line-2); white-space: nowrap; }
.wire { position: relative; flex: 1; height: 1px; min-width: 24px; background: var(--line-2); overflow: hidden; }
.wire i { position: absolute; inset: 0; width: 30%; background: linear-gradient(90deg, transparent, var(--gold), transparent); animation: flowx 1.6s linear infinite; }
@keyframes flowx { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.tag { font-family: var(--mono); font-size: 13px; padding: 4px 12px; border-radius: 999px; border: 1px solid; }
.tag.warn { color: var(--warn); border-color: rgba(227, 169, 68, 0.4); }
.tag.err { color: var(--err); border-color: rgba(239, 122, 100, 0.4); }
.err-line { font-size: 14px; color: var(--err); border-color: rgba(239, 122, 100, 0.3); padding: 8px 12px; }
.diff { width: 100%; font-family: var(--mono); font-size: max(11px, 2.5cqw); text-align: left; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.diff div { display: flex; gap: 10px; padding: 9px 12px; }
.diff span { opacity: 0.7; }
.diff .del { color: var(--err); background: rgba(239, 122, 100, 0.08); text-decoration: line-through; }
.diff .add { color: var(--moss-text); background: rgba(69, 184, 141, 0.08); }
.stage-shot { width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #0e1117; }
.stage-foot { display: flex; gap: 10px; font-size: 15px; color: var(--text-2); }
.stage-foot b { color: var(--text); }

.case { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 72px; align-items: center; margin-top: 180px; }
.case.flip .case-text { order: 2; }
.case-text > p:not(.problem) { margin-top: 16px; color: var(--text-2); max-width: 54ch; }
.cmd code { display: inline-block; margin-top: 4px; padding: 9px 14px; font-size: 14px; color: var(--gold); }
.lens { position: relative; margin: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; }
.lens img { width: 100%; aspect-ratio: 16 / 10.5; object-fit: cover; object-position: top left; }
/* Retirement Radar: the terminal is small inside its frame, so crop in until the table reads. */
.lens.zoom img { transform: scale(1.55); transform-origin: 4% 56%; }
.loupe {
  position: absolute; width: 190px; height: 190px; margin: -95px 0 0 -95px; border-radius: 50%; pointer-events: none;
  border: 2px solid var(--gold); background-repeat: no-repeat; background-color: #0e1117;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.85); opacity: 0; scale: 0.6; transition: opacity 0.25s, scale 0.35s var(--ease);
}
.lens:hover .loupe { opacity: 1; scale: 1; }
.rule { padding: 8px 0; }
.rule-title { margin-bottom: 18px; font-weight: 700; font-size: 18px; }
.rule-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.rule-k { font-family: var(--mono); font-size: 14px; }
.rule-wire { height: 1px; background: linear-gradient(90deg, var(--line-2), rgb(var(--tint))); transform-origin: left; transform: scaleX(var(--w, 1)); transition: transform 0.9s var(--ease); }
.rule-v { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.rule-v.ok { color: var(--ok); border-color: rgba(116, 211, 171, 0.4); }
.rule-v.err { color: var(--err); border-color: rgba(239, 122, 100, 0.4); }

/* ── Live check ───────────────────────────────────────── */
.check { padding-top: 180px; }
.check-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
.check-form { display: grid; gap: 8px; margin-top: 30px; }
.check-form label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.check-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.check-row input {
  height: 54px; min-width: 0; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--ink-2);
  color: var(--text); font: 15px var(--mono); transition: border-color 0.3s, box-shadow 0.3s;
}
.check-row input::placeholder { color: var(--text-3); }
.check-row input:focus { outline: none; border-color: rgba(227, 169, 68, 0.7); box-shadow: 0 0 0 4px rgba(227, 169, 68, 0.14); }
.check-row .btn { height: 54px; }
.check-help { font-size: 13px; color: var(--text-3); }
.check-err { font-size: 14px; color: var(--err); }
.check-err a, .check-retry { color: var(--moss-text); text-decoration: underline; text-underline-offset: 4px; }
.check-retry { background: none; border: 0; padding: 0; cursor: pointer; }
.check-try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; font-size: 13px; color: var(--text-3); }
.check-try button { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font: 13px var(--mono); cursor: pointer; }
.check-try button:hover { border-color: rgba(227, 169, 68, 0.6); color: var(--text); }
.check-panel { min-height: 340px; display: grid; align-content: center; }
.check-empty, .check-loading { display: grid; justify-items: center; gap: 18px; text-align: center; color: var(--text-3); }
.scope {
  position: relative; width: 120px; height: 120px; border-radius: 50%; border: 1px solid var(--line-2);
  background: radial-gradient(circle, var(--ink) 0 22%, transparent 23%), repeating-radial-gradient(circle, transparent 0 13px, rgba(239, 233, 221, 0.06) 13px 14px);
}
.scope i { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(227, 169, 68, 0.5), transparent 25%); opacity: 0.35; }
.scope.scanning i { opacity: 1; animation: spin 1.2s linear infinite; }
.check-domain { margin-bottom: 18px; font: 600 20px var(--mono); }
.tiles { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; }
.tile { display: grid; align-content: start; gap: 4px; min-height: 116px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.tile-k { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.tile-v { font: 600 28px var(--mono); letter-spacing: -0.03em; }
.tile-n { font-size: 13px; line-height: 1.4; color: var(--text-2); }
.tile-bar { height: 3px; margin-top: 8px; border-radius: 2px; background: var(--line); overflow: hidden; }
.tile-bar i { display: block; height: 100%; background: currentColor; transform-origin: left; transform: scaleX(0); transition: transform 0.9s var(--ease); }
.tile[data-tone="ok"] .tile-v, .tile[data-tone="ok"] .tile-bar { color: var(--ok); }
.tile[data-tone="warn"] .tile-v, .tile[data-tone="warn"] .tile-bar { color: var(--warn); }
.tile[data-tone="err"] .tile-v, .tile[data-tone="err"] .tile-bar { color: var(--err); }
.tile[data-tone="muted"] .tile-v { color: var(--text-3); }
.check-full { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; font-weight: 600; color: var(--moss-text); }

/* ── How I ship: the release ring ─────────────────────── */
.ship { padding-top: 180px; }
.ship-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.ring { position: relative; width: min(100%, 440px); aspect-ratio: 1; justify-self: center; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.ring-track { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.ring-prog { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; transition: stroke-dashoffset 0.9s var(--ease); }
.ring-core {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 30%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink-2); border: 1px solid var(--line); font: 500 18px var(--mono); color: var(--text-2);
}
.ring-stage { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)) translateY(-31cqw) rotate(calc(var(--a) * -1)); }
.ring { container-type: inline-size; }
.ring-stage span {
  position: absolute; translate: -50% -50%; padding: 6px 14px; border-radius: 999px; white-space: nowrap;
  background: var(--ink); border: 1px solid var(--line-2); font: 500 13px var(--mono); color: var(--text-2); transition: border-color 0.3s, color 0.3s;
}
.ring-stage[data-s="ok"] span { border-color: rgba(227, 169, 68, 0.5); color: var(--text); }
.ring-stage[data-s="run"] span { border-color: var(--gold); color: var(--gold); }
.pipe { display: grid; }
.pipe li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.pipe li:first-child { border-top: 1px solid var(--line); }
.pipe b { font: 500 15px var(--mono); transition: color 0.3s; }
.pipe span { color: var(--text-2); font-size: 15px; }
.pipe li[data-s="run"] b { color: var(--gold); }
.pipe li[data-s="wait"] b { color: var(--text-3); }
.ship-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 96px; }
.ship-notes > div { padding-top: 24px; border-top: 1px solid var(--line-2); min-width: 0; }
.ship-notes h3 { font-size: 19px; }
.ship-notes p { margin-top: 10px; color: var(--text-2); font-size: 15px; }
.commits { display: grid; gap: 8px; margin-top: 18px; }
.commits li { display: flex; gap: 10px; align-items: baseline; font: 13px/1.5 var(--mono); color: var(--text-2); }
.commits i { flex: none; font-size: 16px; color: var(--moss-text); translate: 0 2px; }

/* ── Words ────────────────────────────────────────────── */
.words { padding-top: 180px; }
.words h2 { margin-bottom: 56px; }
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 56px; }
.quote { margin: 0; padding-top: 28px; border-top: 1px solid var(--line-2); display: grid; gap: 20px; align-content: space-between; }
.quote.lead { grid-column: 1 / -1; }
.quote blockquote { font-size: 21px; line-height: 1.45; letter-spacing: -0.01em; }
.quote.lead blockquote { font-size: clamp(26px, 3vw, 40px); font-stretch: 106%; font-weight: 500; line-height: 1.22; letter-spacing: -0.025em; max-width: 30ch; }
.quote figcaption { display: grid; font-size: 14px; color: var(--text-3); }
.quote figcaption b { color: var(--text); font-weight: 650; }

/* ── Activity ─────────────────────────────────────────── */
.activity { padding-top: 180px; }
.activity-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; margin-bottom: 36px; }
.activity-stats { display: flex; gap: 40px; }
.activity-stats dt { font-size: 13px; color: var(--text-3); }
.activity-stats dd { margin: 2px 0 0; font: 500 26px var(--mono); letter-spacing: -0.02em; }
.heatmap { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); grid-auto-columns: minmax(9px, 1fr); gap: 3px; overflow-x: auto; padding-bottom: 4px; }
.heatmap i { display: block; width: 100%; min-width: 9px; aspect-ratio: 1; border-radius: 50%; background: rgba(239, 233, 221, 0.06); }
.heatmap i[data-l="1"] { background: rgba(69, 184, 141, 0.32); }
.heatmap i[data-l="2"] { background: rgba(69, 184, 141, 0.55); }
.heatmap i[data-l="3"] { background: rgba(227, 169, 68, 0.7); }
.heatmap i[data-l="4"] { background: var(--gold); }
.heatmap-empty { grid-row: 1 / -1; color: var(--text-3); font-size: 14px; }
.activity-note { margin-top: 16px; font-size: 13px; color: var(--text-3); }
.shipped { margin-top: 48px; }
.shipped h3 { font-size: 19px; }
.shipped-list { margin-top: 14px; }
.shipped-list li { display: grid; grid-template-columns: 110px auto minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--text-2); }
.shipped-list time { font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.shipped-list a { color: var(--moss-text); text-decoration: underline; text-underline-offset: 4px; }
.shipped-tag { justify-self: start; padding: 2px 10px; border-radius: 999px; border: 1px solid currentColor; font-size: 12px; font-weight: 600; white-space: nowrap; }
.shipped-tag.radar { color: #f08a8d; }
.shipped-tag.dns { color: #6cc8de; }

/* ── Writing ──────────────────────────────────────────── */
.writing { padding-top: 160px; }
.writing h2 { margin-bottom: 40px; }
.posts { border-top: 1px solid var(--line); }
.posts a { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 32px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--line); transition: color 0.2s; }
.post-meta { font-family: var(--mono); font-size: 13px; color: var(--text-3); }
.post-title { font-size: 21px; font-weight: 600; font-stretch: 104%; letter-spacing: -0.015em; }
.posts i { font-size: 20px; color: var(--text-3); transition: transform 0.3s var(--ease), color 0.2s; }
.posts a:hover .post-title, .posts a:hover i { color: var(--gold); }
.posts a:hover i { transform: translate(3px, -3px); }

/* ── Contact: the eye closes ──────────────────────────── */
.contact { padding-top: 200px; padding-bottom: 140px; }
.mini-eye { display: block; width: 200px; height: auto; margin-bottom: 36px; overflow: visible; }
.mini-iris { fill: #2f5d4a; stroke: var(--gold); stroke-width: 1.5; }
.mini-pupil { fill: var(--ink); transition: r 0.5s var(--ease); }
.mini-lid { fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; }
.mini-lid.low { stroke: var(--text-3); stroke-width: 1.1; }
.contact h2 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); font-stretch: 112%; font-weight: 760; letter-spacing: -0.045em; line-height: 0.98; max-width: 14ch; }
.contact > p { margin-top: 22px; font-size: 18px; color: var(--text-2); }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 40px; }
.copy { height: 58px; padding: 0 22px; border-radius: 999px; border: 1px dashed var(--line-2); background: transparent; color: var(--text-2); font: 15px var(--mono); cursor: pointer; display: inline-flex; align-items: center; gap: 10px; }
.copy:hover { color: var(--text); border-color: var(--text-3); }
.social { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 40px; }
.social a { color: var(--text-2); }

.footer { display: flex; align-items: center; gap: 24px; padding-top: 28px; padding-bottom: 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-3); }
.footer .brand { font-size: 15px; color: var(--text); }
.footer .brand-mark { height: 16px; }
.footer nav { display: flex; gap: 20px; margin-left: auto; }
.footer nav a { position: relative; }
.footer nav a:hover { color: var(--text); }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; translate: -50% 20px; opacity: 0; pointer-events: none; padding: 10px 18px; border-radius: 999px; background: var(--text); color: var(--ink); font-size: 14px; transition: opacity 0.2s, translate 0.3s var(--ease); }
.toast.show { opacity: 1; translate: -50% 0; }

/* Touch: grow inline links to a 44px hit area without moving the layout. */
@media (pointer: coarse) {
  .links a::after, .more::after, .social a::after, .footer nav a::after, .check-err a::after, .check-retry::after, .shipped-list a::after, .eye-caption a::after {
    content: ""; position: absolute; inset: -12px -6px;
  }
  .check-err a, .check-retry, .shipped-list a, .eye-caption a { position: relative; }
  .check-try button { min-height: 44px; }
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .eye-stage { order: -1; width: min(100%, 640px); }
  .hero-copy { max-width: 640px; }
  .story-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .stage { order: -1; top: calc(var(--nav-h) + 12px); width: min(88vw, 400px); z-index: 2; margin-bottom: 24px; }
  .step { min-height: 44vh; }
  .case, .check-grid, .ship-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .case.flip .case-text { order: 0; }
  .ship-notes { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .menu-btn { display: inline-flex; }
  .nav-btn kbd { display: none; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .nav { padding: 0 16px; }
  .nav-cv { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); padding: calc(var(--nav-h) + 8px) 20px 40px; gap: 8px; align-content: start; }
  .eye-stage { order: -1; max-height: none; width: calc(100% + 24px); margin: 0 -12px; aspect-ratio: 1.2; }
  .orb-tag { display: none; }
  .orb-tool button { width: 40px; height: 40px; }
  .orb-tool img { width: 24px; height: 24px; border-radius: 6px; }
  .orb-num b { font-size: 16px; }
  .orb-num span { font-size: 11px; }
  .eye-caption { min-height: 0; margin-top: 26px; }
  .exp, .work, .check, .ship, .words, .activity, .writing { padding-top: 112px; }
  .head { margin-bottom: 40px; }
  .chart { gap: 24px; padding: 36px 0; }
  .chart li { grid-template-columns: minmax(0, 1fr); }
  .acuity { grid-column: 1; text-align: center; margin-bottom: 6px; }
  .row, .fine { grid-column: 1; }
  .roles li { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
  .roles .when { grid-row: auto; }
  .case { margin-top: 112px; }
  .rule-row { grid-template-columns: minmax(0, 1fr) auto; }
  .rule-wire { display: none; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .check-row { grid-template-columns: minmax(0, 1fr); }
  .check-panel { min-height: 240px; }
  .pipe li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ring-stage span { font-size: 11px; padding: 4px 9px; }
  .quotes { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .shipped-list li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .posts a { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .posts i { display: none; }
  .contact { padding-top: 140px; padding-bottom: 96px; }
  .footer { flex-wrap: wrap; }
}

/* Focus grammar: blur to sharp; screenshots open through a round aperture. */
.pre-focus { filter: blur(9px); opacity: 0.25; transform: scale(0.985); transition: filter 0.9s var(--ease), opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.pre-focus.focused { filter: none; opacity: 1; transform: none; }
.chart li.pre-focus.focused { transition-duration: 0.7s; }
.pre-aperture { clip-path: circle(0% at 50% 50%); transition: clip-path 1.2s cubic-bezier(0.65, 0, 0.2, 1); }
.pre-aperture.apertured { clip-path: circle(75% at 50% 50%); }
.stage.pre-aperture.apertured, .ring.pre-aperture.apertured { clip-path: circle(50% at 50% 50%); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .step { opacity: 1; }
}

/* ── Intro: the big eye wakes, then shrinks into the hero ───────── */
.intro-overlay { display: none; }
html.intro { overflow: hidden; }
html.intro .intro-overlay {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: var(--ink);
  transition: background-color 0.9s var(--ease), opacity 0.45s var(--ease);
}
html.intro .intro-overlay.landing { background-color: transparent; }
html.intro .intro-overlay.gone { opacity: 0; pointer-events: none; }
.intro-eye { position: relative; width: min(1100px, 92vw); aspect-ratio: 5 / 2; will-change: transform; }
.ie-eye {
  position: absolute; inset: 0; clip-path: ellipse(50% 0% at 50% 50%);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent 32%, transparent 68%, rgba(0, 0, 0, 0.6)), radial-gradient(ellipse 60% 70% at 50% 50%, #1d1f1f 0%, #121414 55%, #0b0c0d 100%);
  transition: background-color 0.6s;
}
.ie-iris { position: absolute; left: 50%; top: 50%; height: 92%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; }
.ie-lids { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transition: opacity 0.5s; }
.ie-lid { fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; }
.ie-lid.low { stroke: var(--text-3); stroke-width: 1.1; }
.ie-lashes { fill: none; stroke: var(--text-2); stroke-width: 1.3; stroke-linecap: round; }
.intro-overlay.landing .ie-lids { opacity: 0; }
.intro-overlay.landing .ie-eye { background: transparent; clip-path: none !important; }
.intro-skip {
  position: absolute; right: 24px; bottom: 24px; min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: transparent; color: var(--text-3); font-size: 13px;
}
.intro-skip:hover { color: var(--text); }
.intro-overlay.landing .intro-skip { opacity: 0; }
@media (max-width: 760px) { .intro-eye { width: 94vw; aspect-ratio: 1.55; } }

/* ── The watcher: the eye docks in the corner past the hero ───── */
.eye-body { position: absolute; inset: 0; }
.eye-body.docked {
  position: fixed; inset: auto 24px 24px auto; width: 128px; height: 128px; z-index: 45; border-radius: 50%;
  transition: opacity 0.4s var(--ease), translate 0.4s var(--ease);
}
.eye-body.docked.resting { opacity: 0; translate: 0 16px; pointer-events: none; }
.is-docked .orbits, .is-docked::before { opacity: 0; transition: opacity 0.3s; }
.dock-hit { display: none; }
.docked .dock-hit { display: block; position: absolute; inset: 14%; border-radius: 50%; }
.docked .dock-hit:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.dock-note {
  position: absolute; right: calc(100% + 6px); bottom: 50%; translate: 0 50%; width: max-content; max-width: 230px;
  padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: var(--text); color: var(--ink);
  font-size: 13.5px; font-weight: 600; line-height: 1.35; opacity: 0; scale: 0.92; transform-origin: right center;
  pointer-events: none; transition: opacity 0.3s var(--ease), scale 0.4s var(--ease); display: none;
}
.docked .dock-note { display: block; }
.docked:hover .dock-note, .docked.say .dock-note { opacity: 1; scale: 1; }
@media (max-width: 760px) {
  .eye-body.docked { width: 92px; height: 92px; inset: auto 12px 12px auto; }
  .dock-note { max-width: 180px; font-size: 12.5px; }
}

/* ── Radar: the scope sweeps while a domain is being checked ───── */
@keyframes spin { to { rotate: 360deg; } }
.scope i { animation: spin 6s linear infinite; }
.scope.scanning i { opacity: 1; animation-duration: 1.1s; }
.scope::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 50%; height: 1px; transform-origin: left center;
  background: linear-gradient(90deg, rgba(227, 169, 68, 0.9), transparent); animation: spin 6s linear infinite;
}
.scope.scanning::after { animation-duration: 1.1s; }

/* ── Inside the eye: a pinned 3D flight driven by scroll ───────── */
.inside { position: relative; height: 620vh; }
.inside-sticky { position: sticky; top: 0; height: 100dvh; overflow: hidden; }
.inside-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.inside-caps { position: absolute; inset: 0; pointer-events: none; }
.inside-cap {
  position: absolute; left: max(32px, calc((100vw - 1180px) / 2 + 32px)); bottom: 12vh; max-width: 560px;
  opacity: 0; transform: translateY(18px); filter: blur(6px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), filter 0.6s var(--ease);
}
.inside-cap.on { opacity: 1; transform: none; filter: none; }
.inside-cap h2 { font-size: clamp(2rem, 4vw, 3.4rem); text-shadow: 0 2px 30px rgba(0, 0, 0, 0.8); }
.inside-cap h2 span { color: var(--gold); font-variant-numeric: tabular-nums; }
.inside-cap p { margin-top: 12px; font-size: 18px; color: var(--text-2); max-width: 44ch; text-shadow: 0 1px 16px rgba(0, 0, 0, 0.9); }
/* Without WebGL or with reduced motion: the stops as a plain list. */
.inside.static { height: auto; padding-top: 140px; }
.inside.static .inside-sticky { position: static; height: auto; overflow: visible; }
.inside.static .inside-canvas { display: none; }
.inside.static .inside-caps { position: static; display: grid; gap: 48px; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.inside.static .inside-cap { position: static; opacity: 1; transform: none; filter: none; max-width: 640px; }
@media (max-width: 760px) {
  .inside { height: 520vh; }
  .inside-cap { left: 20px; right: 20px; bottom: 10vh; }
  .inside-cap p { font-size: 16px; }
}

/* ── Break production ─────────────────────────────────────────── */
.chaos { padding-top: 180px; }
.chaos-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.chaos-board { border-top: 1px solid var(--line-2); padding-top: 20px; }
.chaos-board svg { width: 100%; height: auto; display: block; overflow: visible; }
.c-wires path { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.c-dots circle.ok { fill: var(--moss-text); }
.c-dots circle.bad { fill: var(--err); }
.c-node rect { fill: var(--ink-2); stroke: var(--line-2); stroke-width: 1.2; transition: fill 0.3s, stroke 0.3s; }
.c-label { fill: var(--text); font: 600 13px var(--sans); }
.c-sub { fill: var(--text-3); font: 500 11px var(--mono); }
.c-node.down rect { stroke: var(--err); fill: rgba(239, 122, 100, 0.12); }
.c-node.down .c-sub { fill: var(--err); }
.c-node.drained { opacity: 0.5; }
.c-node.starting rect { stroke: var(--gold); }
.c-node.canary rect { stroke: var(--gold); fill: rgba(227, 169, 68, 0.1); }
.chaos-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.chaos-metrics dt { font-size: 12px; color: var(--text-3); }
.chaos-metrics dd { margin: 2px 0 0; font: 500 22px var(--mono); font-variant-numeric: tabular-nums; transition: color 0.3s; }
.chaos.alarm .chaos-metrics dd[data-m="err"], .chaos.alarm .chaos-metrics dd[data-m="avail"] { color: var(--err); }
.chaos-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.chaos-btn {
  display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 16px; border-radius: 16px; cursor: pointer; text-align: left;
  border: 1px solid var(--line-2); background: var(--ink-2); color: var(--text); font-weight: 600; font-size: 14px;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.chaos-btn i { font-size: 20px; color: var(--err); }
.chaos-btn:hover:not(:disabled) { border-color: rgba(239, 122, 100, 0.6); background: rgba(239, 122, 100, 0.06); }
.chaos-btn:active:not(:disabled) { transform: scale(0.98); }
.chaos-btn:disabled { opacity: 0.45; cursor: wait; }
.chaos-log { margin-top: 20px; display: grid; gap: 2px; font: 13px/1.45 var(--mono); }
.chaos-log li { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--text-2); animation: logIn 0.4s var(--ease); }
.chaos-log time { color: var(--text-3); }
.chaos-log li.alert span { color: var(--err); }
.chaos-log li.ok span { color: var(--moss-text); }
@keyframes logIn { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 1024px) { .chaos-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .chaos { padding-top: 112px; }
  .chaos-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chaos-btns { grid-template-columns: minmax(0, 1fr); }
  /* The diagram scales down to half size on a phone; grow its type and boxes to stay readable. */
  .c-node rect { x: -64px; y: -30px; width: 128px; height: 60px; rx: 30px; }
  .c-label { font-size: 21px; }
  .c-sub { font-size: 16px; }
  .c-dots circle { r: 6px; }
}

/* ── Polish: flow between sections ──────────────────────────── */
/* The journey fades in from the page and back out into it; no hard edges. */
.inside::before, .inside::after { content: ""; position: absolute; left: 0; right: 0; height: 28vh; z-index: 3; pointer-events: none; }
.inside::before { top: 0; background: linear-gradient(var(--ink), transparent); }
.inside::after { bottom: 0; background: linear-gradient(transparent, var(--ink)); }
.inside.static::before, .inside.static::after { display: none; }

/* Journey rail: the five stops, current one lit. */
.inside-rail { position: absolute; right: max(24px, calc((100vw - 1180px) / 2)); top: 50%; translate: 0 -50%; z-index: 2; display: grid; gap: 4px; width: 150px; }
.inside-rail li { display: flex; justify-content: flex-end; }
.inside-rail::before { content: ""; position: absolute; right: 7px; top: 14px; bottom: 14px; width: 1px; background: var(--line-2); }
.inside-rail::after {
  content: ""; position: absolute; right: 7px; top: 14px; width: 1px; height: calc((100% - 28px) * var(--journey, 0));
  background: var(--gold); transition: height 0.2s linear;
}
.inside-rail button {
  position: relative; width: 100%; display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-height: 36px; padding: 0 0 0 12px;
  background: none; border: 0; cursor: pointer; color: var(--text-3); font: 500 13px var(--sans); transition: color 0.3s;
}
.inside-rail button::after {
  content: ""; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--ink);
  transition: background 0.3s, border-color 0.3s, scale 0.4s var(--ease);
}
.inside-rail button span { opacity: 0; }
.inside-rail button:hover, .inside-rail button.on { color: var(--text); }
.inside-rail button.on::after { background: var(--gold); border-color: var(--gold); scale: 1.15; }
.inside.static .inside-rail { display: none; }
@media (max-width: 760px) {
  .inside-rail { right: 12px; top: auto; bottom: 34vh; translate: none; width: 15px; }
  .inside-rail button { font-size: 0; gap: 0; min-height: 28px; }
}

/* Reading progress: a hairline under the nav, driven by the scroll itself. */
@supports (animation-timeline: scroll()) {
  .nav::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; transform-origin: left; transform: scaleX(0);
    background: linear-gradient(90deg, var(--moss), var(--gold)); animation: readProgress linear both; animation-timeline: scroll(root);
  }
  @keyframes readProgress { to { transform: scaleX(1); } }
}

/* After the intro eye lands, the hero copy comes into focus one line at a time. */
html.intro .hero-copy > * { opacity: 0; filter: blur(10px); transform: translateY(14px); }
html.intro-landed .hero-copy > * { transition: opacity 0.9s var(--ease), filter 0.9s var(--ease), transform 0.9s var(--ease); }
html.intro-landed .hero-copy > :nth-child(2) { transition-delay: 0.12s; }
html.intro-landed .hero-copy > :nth-child(3) { transition-delay: 0.24s; }
html.intro-landed .hero-copy > :nth-child(4) { transition-delay: 0.36s; }

/* Tactile buttons. */
.btn-gold:hover, .btn-line:hover { transform: translateY(-1px); }
.btn-gold:active, .btn-line:active { transform: translateY(1px) scale(0.98); }

/* Break production: the board pulses while an incident is open; the pressed button shows it is running. */
.chaos-board { position: relative; transition: box-shadow 0.4s; }
.chaos.alarm .chaos-board::before {
  content: ""; position: absolute; inset: -12px; border-radius: 24px; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(239, 122, 100, 0.35), 0 0 60px -20px rgba(239, 122, 100, 0.45); animation: alarmPulse 1.2s ease-in-out infinite;
}
@keyframes alarmPulse { 50% { opacity: 0.35; } }
.chaos-btn.running { border-color: rgba(239, 122, 100, 0.7); opacity: 1; }
.chaos-btn.running::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--err); animation: alarmPulse 0.8s ease-in-out infinite; }
.c-wires path { transition: stroke 0.4s; }

@media (prefers-reduced-motion: reduce) {
  html.intro .hero-copy > * { opacity: 1; filter: none; transform: none; }
}
/* Only the current stop is named; hovering the rail names them all. */
.inside-rail button:not(.on) { color: transparent; }
.inside-rail:hover button, .inside-rail:focus-within button { color: var(--text-3); }
.inside-rail:hover button.on, .inside-rail button.on { color: var(--text); }
/* The watcher sleeps in the bottom-right corner at the end of the page; keep the footer clear of it. */
.footer { padding-right: max(32px, 168px); }
@media (max-width: 760px) { .footer { padding-right: 20px; padding-bottom: 120px; } }

/* ── Live watch pill: real service health from dns.hetops.dev/api/watch ── */
.watch-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--line-2); background: rgba(8, 9, 10, 0.82); color: var(--text-2); font: 500 12.5px var(--sans);
  transition: border-color 0.3s, color 0.3s;
}
.watch-pill:hover { color: var(--text); border-color: var(--text-3); }
.watch-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--moss-text); box-shadow: 0 0 0 3px rgba(116, 211, 171, 0.18); animation: livePulse 2.4s ease-in-out infinite; }
.watch-pill[data-state="degraded"] i { background: var(--gold); box-shadow: 0 0 0 3px rgba(227, 169, 68, 0.2); }
.watch-pill[data-state="down"] i { background: var(--err); box-shadow: 0 0 0 3px rgba(239, 122, 100, 0.2); }
@keyframes livePulse { 50% { box-shadow: 0 0 0 6px rgba(116, 211, 171, 0); } }
.hero-watch { position: absolute; left: 50%; bottom: 6%; translate: -50% 0; z-index: 4; }
.eye-stage:not(.awake) .hero-watch { opacity: 0; }
.dock-watch { display: none; }
.docked .dock-watch { display: inline-flex; position: absolute; right: 0; bottom: calc(100% + 8px); }

/* ── sudo hire het ──────────────────────────────────────────── */
.hire { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; background: rgba(4, 5, 5, 0.6); opacity: 0; transition: opacity 0.3s var(--ease); }
.hire.in { opacity: 1; }
.hire.out { opacity: 0; }
.hire-term {
  width: min(640px, 100%); border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); background: #0b0d0c;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9); transform: translateY(12px) scale(0.98); transition: transform 0.4s var(--ease);
}
.hire.in .hire-term { transform: none; }
.hire-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.hire-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.hire-bar span { margin-left: 8px; font: 12px var(--mono); color: var(--text-3); }
.hire-bar button { margin-left: auto; min-height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background: none; color: var(--text-3); font: 12px var(--mono); cursor: pointer; }
.hire-out { padding: 18px 20px 22px; display: grid; gap: 8px; font: 14px/1.5 var(--mono); color: var(--text-2); min-height: 240px; }
.hire-out li { animation: logIn 0.3s var(--ease); }
.hire-out li.cmd { color: var(--text); }
.hire-out li i { margin-right: 8px; color: var(--moss-text); vertical-align: -2px; }
.hire-out li.go { color: var(--gold); }

/* ── Case-study pages (/work/…) ───────────────────────────────── */
.cs-main { padding-top: calc(var(--nav-h) + 72px); max-width: 920px; }
.cs-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 40px; color: var(--text-3); font-size: 14px; font-weight: 600; transition: color 0.2s; }
.cs-back:hover { color: var(--text); }
.cs-hero h1 { font-size: clamp(2.8rem, 6vw, 5rem); font-stretch: 112%; font-weight: 760; letter-spacing: -0.045em; line-height: 0.98; }
.cs-lede { margin-top: 22px; font-size: clamp(19px, 2vw, 23px); line-height: 1.45; color: var(--text); max-width: 40ch; font-stretch: 104%; }
.cs-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; padding: 22px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); }
.cs-meta dt { font-size: 12px; color: var(--text-3); }
.cs-meta dd { margin: 4px 0 0; font-size: 15px; color: var(--text); }
.cs-sec { margin-top: 96px; }
.cs-sec h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 26px; }
.cs-sec > p { font-size: 18px; line-height: 1.65; color: var(--text-2); max-width: 66ch; }
.cs-sec > p + p { margin-top: 16px; }
.cs-list { display: grid; gap: 14px; max-width: 66ch; }
.cs-list li { position: relative; padding-left: 26px; font-size: 18px; line-height: 1.55; color: var(--text-2); }
.cs-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 10px; rotate: 45deg; border: 1.5px solid var(--gold); }
.cs-time { position: relative; display: grid; gap: 0; padding-left: 30px; border-left: 1px solid var(--line-2); }
.cs-time li { position: relative; padding: 0 0 30px; }
.cs-time li::before { content: ""; position: absolute; left: -36.5px; top: 4px; width: 12px; height: 12px; rotate: 45deg; background: var(--ink); border: 1.5px solid var(--gold); }
.cs-time b { font-size: 19px; font-stretch: 108%; }
.cs-time p { margin-top: 6px; color: var(--text-2); font-size: 16.5px; max-width: 62ch; }
.cs-flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px 34px; }
.cs-flow li { position: relative; display: grid; gap: 2px; padding: 14px 18px; min-width: 150px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--ink-2); }
.cs-flow li:not(:last-child)::after {
  content: ""; position: absolute; right: -24px; top: 50%; width: 14px; height: 14px; translate: 0 -50%;
  background: var(--gold); clip-path: polygon(0 20%, 60% 50%, 0 80%);
}
.cs-flow b { font: 600 14.5px var(--mono); color: var(--text); }
.cs-flow span { font-size: 13px; color: var(--text-3); }
.cs-next { margin-top: 140px; padding: 64px 0 120px; border-top: 1px solid var(--line); }
.cs-next h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 16ch; }
.cs-next .ctas { margin-top: 28px; }
.case-link { color: var(--gold) !important; }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
@media (max-width: 760px) {
  .cs-main { padding-top: calc(var(--nav-h) + 40px); }
  .cs-meta { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .cs-sec { margin-top: 72px; }
  .cs-flow { flex-direction: column; gap: 22px; }
  .cs-flow li:not(:last-child)::after { right: auto; left: 22px; top: auto; bottom: -19px; translate: 0; rotate: 90deg; }
}
