:root {
  --ink: #0C0C0B;
  --graphite: #141412;
  --graphite-2: #1C1C19;
  --graphite-3: #262622;
  --line: rgba(242, 238, 229, .10);
  --line-2: rgba(242, 238, 229, .18);
  --ivory: #F2EEE5;
  --ivory-2: #E7E2D6;
  --text: #F2EEE5;
  --muted: #A29E93;
  --dim: #7C786F;
  --accent: #E5582B;
  --accent-soft: rgba(229, 88, 43, .14);
  --ok: #8FBF8A;
  --ink-muted: #5B5850;
  --ink-line: rgba(12, 12, 11, .12);

  --f-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ivory); color: var(--ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

.mono { font-family: var(--f-mono); letter-spacing: 0; }
.xs { font-size: 11.5px; line-height: 1.5; }
.dim { color: var(--dim); }
.accent { color: var(--accent); }
.muted-ink { color: var(--muted); }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 26px; height: 26px; color: var(--ivory); }
.brand__node, .mini-mark .brand__node { fill: var(--accent); }
.brand__word { font: 600 20px/1 var(--f-display); letter-spacing: -.02em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 8px; border: 1px solid transparent;
  font: 500 15px/1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn--sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: #F06838; }
.btn--light { background: var(--ivory); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--muted); }

.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px;
  font: 500 11px/1 var(--f-mono); white-space: nowrap;
}
.tag--outline { border: 1px solid var(--line-2); color: var(--muted); }
.tag--accent { background: var(--accent-soft); color: var(--accent); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 12, 11, .86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 14.5px; transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vw, 112px) 0 clamp(64px, 8vw, 104px); border-bottom: 1px solid var(--line); }
.hero__copy { max-width: 1060px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1 var(--f-mono); color: var(--muted); margin-bottom: 28px; }
.dot { width: 7px; height: 7px; background: var(--accent); }
.display {
  font: 600 clamp(40px, 6.6vw, 84px)/1.0 var(--f-display);
  letter-spacing: -.035em;
  text-wrap: balance;
}
.lede { margin-top: 28px; max-width: 640px; font-size: clamp(17px, 1.6vw, 19.5px); line-height: 1.55; color: var(--muted); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__note { margin-top: 18px; font-size: 14px; color: var(--dim); }

/* ---------- Product preview ---------- */
.preview {
  margin: clamp(48px, 7vw, 80px) 0 0;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--graphite);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .4);
  overflow: hidden;
}
.preview__bar { display: flex; align-items: center; gap: 14px; height: 42px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--graphite-2); }
.preview__dots { display: flex; gap: 6px; }
.preview__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--graphite-3); }
.preview__title { font: 500 12.5px/1 var(--f-body); color: var(--muted); }
.preview__bar .tag { margin-left: auto; }
.preview__body { display: grid; grid-template-columns: 180px 1fr 250px; min-height: 440px; font-size: 13.5px; }
.preview__cap { padding: 12px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--dim); }

.pv-side { padding: 16px 10px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.pv-side__item { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 6px; color: var(--muted); }
.pv-side__item em { font: 500 11px/1.6 var(--f-mono); font-style: normal; color: var(--dim); }
.pv-side__item .em-accent { color: var(--accent); }
.pv-side__item.is-on { background: var(--graphite-3); color: var(--text); }

.pv-main { padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pv-head__t { font: 600 17px/1.3 var(--f-display); letter-spacing: -.01em; margin-top: 4px; }
.status {
  font: 500 11.5px/1 var(--f-mono); padding: 6px 9px; border-radius: 4px; white-space: nowrap;
  background: rgba(143, 191, 138, .12); color: var(--ok);
}
.status.is-wait { background: var(--accent-soft); color: var(--accent); }
.pv-context { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--ink); }
.pv-context p:last-child { margin-top: 4px; color: var(--ivory-2); }

.pv-steps { display: flex; flex-direction: column; }
.pv-step { position: relative; display: flex; gap: 14px; padding: 9px 0; transition: opacity .4s; }
.pv-step:not(:last-child)::before {
  content: ""; position: absolute; left: 8px; top: 30px; bottom: -6px; width: 1px; background: var(--line-2);
}
.pv-step__ic { flex: none; width: 17px; height: 17px; margin-top: 2px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--graphite); position: relative; z-index: 1; transition: background-color .3s, border-color .3s; }
.pv-step > div p:first-child { color: var(--text); }
.pv-step.is-pending { opacity: .35; }
.pv-step.is-active .pv-step__ic { border-color: var(--ivory); box-shadow: 0 0 0 4px rgba(242, 238, 229, .08); }
.pv-step.is-done .pv-step__ic { background: var(--ivory); border-color: var(--ivory); }
.pv-step.is-done .pv-step__ic::after {
  content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px;
  border: solid var(--ink); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.pv-step.is-gate .pv-step__ic { border-color: var(--accent); background: var(--accent-soft); }

.pv-rail { padding: 18px 16px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.pv-agents { display: flex; flex-direction: column; }
.pv-agents li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.pv-agents li .mono { margin-left: auto; }
.led { width: 7px; height: 7px; border-radius: 50%; background: var(--graphite-3); flex: none; }
.led--run { background: var(--ok); }
.led--wait { background: var(--muted); }
.pv-approval {
  margin-top: auto; padding: 14px; border-radius: 8px; border: 1px solid rgba(229, 88, 43, .45);
  background: linear-gradient(var(--accent-soft), var(--accent-soft)), var(--ink);
  transition: opacity .5s, transform .5s;
}
.pv-approval p:nth-child(2) { margin: 6px 0 12px; line-height: 1.45; }
.pv-approval.is-hidden { opacity: 0; transform: translateY(8px); }
.pv-approval__btns { display: flex; gap: 8px; }
.pv-approval__btns span { flex: 1; text-align: center; padding: 7px 0; border-radius: 6px; border: 1px solid var(--line-2); font-size: 12.5px; }
.pv-approval__btns .is-primary { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; border-bottom: 1px solid var(--line); }
.section--tight-top { padding-top: clamp(40px, 6vw, 80px); }
.light { background: var(--ivory); color: var(--ink); border-bottom-color: var(--ink-line); }
.light .muted-ink, .light .body-lg { color: var(--ink-muted); }
.kicker { font: 500 13px/1 var(--f-mono); color: var(--accent); margin-bottom: 20px; }
.light .kicker { color: #B9431D; }
.h2 { font: 600 clamp(32px, 4.4vw, 54px)/1.05 var(--f-display); letter-spacing: -.03em; text-wrap: balance; }
.body-lg { font-size: clamp(16.5px, 1.4vw, 18px); line-height: 1.6; color: var(--muted); max-width: 560px; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px 64px; align-items: end; margin-bottom: clamp(44px, 6vw, 72px); }

/* Problem */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink-line); }
.work-grid li { padding: 28px 28px 32px 0; border-bottom: 1px solid var(--ink-line); }
.work-grid li:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid var(--ink-line); }
.work-grid .mono { color: var(--ink-muted); text-transform: uppercase; letter-spacing: .06em; }
.work-grid p { margin-top: 12px; font-size: 17px; line-height: 1.5; }
.statement { margin-top: clamp(48px, 6vw, 72px); max-width: 900px; font: 500 clamp(22px, 2.6vw, 32px)/1.3 var(--f-display); letter-spacing: -.02em; color: var(--ink-muted); }
.statement strong { color: var(--ink); font-weight: 600; }

/* Architecture */
.arch { display: grid; grid-template-columns: 1fr 1.15fr; gap: 20px; }
.arch__panel { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); background: var(--graphite); display: flex; flex-direction: column; }
.arch__panel--after { border-color: var(--line-2); }
.arch__label { display: flex; flex-direction: column; gap: 6px; font: 600 18px/1.3 var(--f-display); letter-spacing: -.01em; margin-bottom: 24px; }
.arch__label .mono { font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.arch__label .accent { color: var(--accent); }
.arch__cap { margin-top: auto; padding-top: 24px; font-size: 14px; color: var(--dim); }
.arch__before { width: 100%; height: auto; max-width: 440px; margin: 0 auto; }
.arch__before .ln-dash line { stroke: var(--line-2); stroke-width: 1.2; stroke-dasharray: 4 5; }
.arch__before .tool rect { fill: var(--graphite-2); stroke: var(--line-2); }
.arch__before text { font: 500 12.5px var(--f-body); fill: var(--muted); text-anchor: middle; }
.arch__before .person circle { fill: var(--graphite-3); stroke: var(--muted); }
.arch__before .person text { fill: var(--text); font-size: 11.5px; }
@media (prefers-reduced-motion: no-preference) {
  .arch__before .ln-dash line { animation: dash 2.4s linear infinite; }
  .arch__before .ln-dash line:nth-child(even) { animation-direction: reverse; }
}
@keyframes dash { to { stroke-dashoffset: -18; } }

.layers { display: flex; flex-direction: column; }
.layer { border: 1px solid var(--line-2); border-radius: 8px; padding: 14px 16px; background: var(--graphite-2); }
.layer__name { display: flex; align-items: center; gap: 8px; font: 600 15px/1.3 var(--f-display); }
.layer__desc { margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.layer--core { border-color: var(--accent); background: linear-gradient(rgba(229, 88, 43, .06), rgba(229, 88, 43, .06)), var(--ink); padding: 18px 16px; }
.mini-mark { width: 18px; height: 18px; color: var(--ivory); }
.layer__link { display: flex; justify-content: space-between; padding: 8px 18px; font: 500 11px/1 var(--f-mono); color: var(--dim); position: relative; }
.layer__link::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { padding: 6px 10px; border-radius: 6px; background: var(--graphite-3); font-size: 13px; }
.chips--base { gap: 0; margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.chips--base span { font: 500 11.5px/1.8 var(--f-mono); color: var(--muted); }
.chips--base span:not(:last-child)::after { content: "·"; margin: 0 8px; color: var(--dim); }

/* Agents */
.disclaimer { margin-top: 16px; font-size: 13.5px; line-height: 1.55; color: var(--dim); max-width: 560px; }
.disclaimer .tag { margin-right: 6px; vertical-align: 1px; }
.agents { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.agent { background: var(--ink); padding: 26px 22px 28px; display: flex; flex-direction: column; transition: background-color .25s; }
.agent:hover { background: var(--graphite); }
.agent h3 { margin-top: 10px; font: 600 19px/1.2 var(--f-display); letter-spacing: -.015em; }
.agent__job { margin: 12px 0 22px; color: var(--ivory-2); font-size: 15px; line-height: 1.5; }
.agent dl { margin-top: auto; display: flex; flex-direction: column; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.agent dt { font: 500 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.agent dd { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.agent div:last-child dd { color: var(--text); }

/* How it works */
.steps { border: 1px solid var(--ink-line); border-radius: var(--radius); background: #FBF9F4; overflow: hidden; }
.steps__list { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--ink-line); }
.steps__list button {
  appearance: none; border: 0; background: transparent; cursor: pointer; text-align: left;
  display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 20px; font: 600 18px/1.1 var(--f-display);
  letter-spacing: -.01em; color: var(--ink-muted); position: relative; transition: color .2s, background-color .2s;
}
.steps__list button:not(:first-child) { border-left: 1px solid var(--ink-line); }
.steps__list button .mono { font-size: 12px; font-weight: 500; color: var(--ink-muted); }
.steps__list button:hover { color: var(--ink); }
.steps__list button[aria-selected="true"] { color: var(--ink); background: var(--ivory); }
.steps__list button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }
.steps__list button[aria-selected="true"] .mono { color: #B9431D; }
.steps__panel { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: clamp(28px, 4vw, 48px); min-height: 270px; align-items: start; }
.steps__panel[hidden] { display: none; }
.steps__panel h3 { font: 600 clamp(22px, 2.2vw, 28px)/1.2 var(--f-display); letter-spacing: -.02em; }
.steps__panel p { margin-top: 14px; color: var(--ink-muted); font-size: 16.5px; max-width: 480px; }
.kv { border: 1px solid var(--ink-line); border-radius: 8px; background: #fff; }
.kv li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 16px; font-size: 14px; }
.kv li:not(:last-child) { border-bottom: 1px solid var(--ink-line); }
.kv span { font: 500 12px/1.6 var(--f-mono); color: var(--ink-muted); flex: none; }
.kv b { font-weight: 500; text-align: right; }
@media (prefers-reduced-motion: no-preference) {
  .steps__panel:not([hidden]) { animation: fadeUp .35s ease both; }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Control */
.control { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.principles { counter-reset: p; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.principles li { counter-increment: p; padding: 22px 0; border-top: 1px solid var(--line); }
.principles li::before { content: "0" counter(p); font: 500 11.5px/1 var(--f-mono); color: var(--accent); }
.principles h3 { margin-top: 10px; font: 600 17px/1.3 var(--f-display); letter-spacing: -.01em; }
.principles p { margin-top: 6px; font-size: 14.5px; color: var(--muted); }
.approval { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 12px; }
.approval__card { border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--graphite); padding: 20px; }
.approval__top { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; align-items: center; }
.approval__t { margin: 14px 0 16px; font: 600 18px/1.3 var(--f-display); }
.approval__dl { display: flex; flex-direction: column; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.approval__dl div { display: flex; justify-content: space-between; gap: 16px; font-size: 13.5px; }
.approval__dl dt { color: var(--dim); }
.approval__dl dd { text-align: right; }
.approval__btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.approval__btns .btn { cursor: default; }
.log { border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 16px; }
.log li { display: flex; gap: 14px; padding: 9px 0; font-size: 13.5px; color: var(--muted); }
.log li:not(:last-child) { border-bottom: 1px solid var(--line); }
.log li:last-child { color: var(--text); }
.footnote { margin-top: clamp(40px, 5vw, 56px); padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--dim); max-width: 760px; }

/* Vision */
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stages li { position: relative; padding: 26px 24px 30px; border: 1px solid var(--ink-line); border-radius: var(--radius); background: #FBF9F4; }
.stages li:nth-child(2) { background: var(--ivory-2); }
.stages li:nth-child(3) { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.stages .mono { text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); }
.stages li:nth-child(3) .mono { color: var(--accent); }
.stages h3 { margin-top: 28px; font: 600 24px/1.15 var(--f-display); letter-spacing: -.02em; }
.stages p { margin-top: 10px; color: var(--ink-muted); font-size: 15.5px; }
.stages li:nth-child(3) p { color: var(--muted); }
.thesis { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: 220px 1fr; gap: 32px; border-top: 1px solid var(--ink); padding-top: 28px; }
.thesis__h { font: 600 22px/1.2 var(--f-display); letter-spacing: -.02em; }
.thesis__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; }
.thesis__grid div:last-child { grid-column: 1 / -1; }
.thesis__grid dt { font: 500 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: #B9431D; }
.thesis__grid dd { margin-top: 10px; font-size: 16.5px; line-height: 1.55; }

/* Contact */
.contact { border-bottom: 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact .body-lg { margin-top: 24px; }
.contact__who { margin-top: 32px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--muted); }
.contact__who b { color: var(--text); font-weight: 600; }
.form { display: flex; flex-direction: column; gap: 18px; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line-2); border-radius: 12px; background: var(--graphite); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--ivory-2); }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 13px; border-radius: 8px; border: 1px solid var(--line-2);
  background: var(--ink); color: var(--text); font: 400 15.5px/1.4 var(--f-body);
  transition: border-color .2s;
}
.form textarea { resize: vertical; min-height: 110px; }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.form ::placeholder { color: var(--dim); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ivory); }
.form [aria-invalid="true"] { border-color: var(--accent); }
.form__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form__privacy { font-size: 13px; color: var(--dim); }
.form__status { font-size: 14px; color: var(--muted); }
.form__status:empty { display: none; }
.form__status.is-error { color: #F08A68; }
.form__status.is-ok { color: var(--ok); }
.form button[disabled] { opacity: .6; cursor: progress; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 36px 0 44px; }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto auto auto; gap: 16px 32px; align-items: center; }
.footer__line { color: var(--dim); font-size: 14px; }
.footer__nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer__nav a:hover { color: var(--text); }
.footer__copy { color: var(--dim); font-size: 13px; }
.footer__mail { color: var(--muted); font-size: 14px; text-decoration: none; }
.footer__mail:hover { color: var(--text); }
.contact__mail { margin-top: 16px; font-size: 15px; color: var(--muted); }
.contact__mail a, .footnote a { color: var(--text); text-underline-offset: 3px; }

/* Reveal */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .preview__body { grid-template-columns: 160px 1fr; }
  .pv-rail { display: none; }
  .agents { grid-template-columns: repeat(2, 1fr); }
  .control { grid-template-columns: 1fr; }
  .approval { position: static; max-width: 560px; }
}
@media (max-width: 900px) {
  .nav__toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; cursor: pointer;
  }
  .nav__toggle span { display: block; width: 22px; height: 1.5px; background: var(--ivory); margin: 0 auto; transition: transform .25s; }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav__links {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px; background: var(--ink); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav__cta { margin-top: 18px; height: 46px; }

  .split, .arch, .contact__grid, .thesis { grid-template-columns: 1fr; }
  .split { align-items: start; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work-grid li, .work-grid li:not(:nth-child(3n + 1)) { padding: 24px 20px 26px 0; border-left: 0; }
  .work-grid li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--ink-line); }
  .stages { grid-template-columns: 1fr; }
  .steps__list { grid-template-columns: repeat(5, minmax(120px, 1fr)); overflow-x: auto; scrollbar-width: none; }
  .steps__list::-webkit-scrollbar { display: none; }
  .steps__panel { grid-template-columns: 1fr; gap: 24px; }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .preview__body { grid-template-columns: 1fr; min-height: 0; }
  .pv-side { display: none; }
  .pv-main { padding: 16px; }
  .preview__title { display: none; }
  .agents, .work-grid, .principles, .thesis__grid, .form__row { grid-template-columns: 1fr; }
  .work-grid li:nth-child(even) { padding-left: 0; border-left: 0; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .kv li { flex-direction: column; gap: 2px; }
  .kv b { text-align: left; }
  .layer__link { font-size: 10px; padding: 8px 4px; }
}
