:root {
  --ink: #09111f;
  --ink-soft: #101b2c;
  --paper: #f3f0e8;
  --muted: #9da9b8;
  --line: rgba(211, 221, 233, 0.17);
  --blue: #69a8ff;
  --blue-bright: #96c1ff;
  --acid: #b7f397;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Geist", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
main { overflow: hidden; }

.site-header {
  width: min(1180px, calc(100% - 48px));
  height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.wordmark { display: flex; align-items: center; gap: 12px; font-weight: 650; letter-spacing: -.02em; }
.wordmark-mark {
  display: grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid rgba(105,168,255,.6); border-radius: 50%; color: var(--blue-bright);
  font: 600 11px/1 "Geist Mono", monospace; letter-spacing: .08em;
}
nav { display: flex; gap: 30px; color: #c4ccd6; font-size: 14px; }
nav a, footer a { transition: color .2s ease; }
nav a:hover, footer a:hover { color: var(--blue-bright); }
nav a.active { color: var(--blue-bright); }

.hero {
  width: min(1180px, calc(100% - 48px));
  min-height: 700px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  align-items: center;
  gap: clamp(48px, 7vw, 112px);
  padding: 80px 0 96px;
}
.eyebrow, .section-kicker {
  margin: 0 0 22px;
  color: var(--blue-bright);
  font: 600 12px/1.2 "Geist Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 5px rgba(183,243,151,.08); }
.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(54px, 6.2vw, 92px);
  line-height: .98;
  letter-spacing: -.065em;
  font-weight: 560;
}
.hero h1 em { color: var(--blue-bright); font-family: Georgia, serif; font-weight: 400; }
.hero-deck { max-width: 650px; margin: 34px 0 0; color: #b8c1cd; font-size: 18px; line-height: 1.75; }
.hero-actions { display: flex; gap: 12px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; min-width: 170px; padding: 14px 18px; border-radius: 4px; font-size: 14px; font-weight: 650; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--paper); color: var(--ink); }
.button-secondary { border: 1px solid var(--line); color: #d5dbe3; }

.system-card {
  position: relative;
  padding: 0 26px 28px;
  border: 1px solid rgba(105,168,255,.24);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(25,42,65,.74), rgba(10,18,31,.92));
  box-shadow: 0 34px 90px rgba(0,0,0,.28);
}
.system-card::before { content: ""; position: absolute; inset: -40px; z-index: -1; background: radial-gradient(circle at center, rgba(51,112,198,.13), transparent 66%); }
.terminal-bar { height: 48px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid var(--line); }
.terminal-bar span { width: 7px; height: 7px; border-radius: 50%; background: #4b5b70; }
.terminal-bar span:first-child { background: #6d91c2; }
.terminal-bar code { margin-left: auto; color: #68778a; font: 500 10px/1 "Geist Mono", monospace; }
.system-stage { padding: 23px 22px; border: 1px solid var(--line); background: rgba(7,14,26,.28); }
.system-stage.active { border-color: rgba(105,168,255,.44); background: rgba(64,125,211,.08); }
.system-label { margin: 0 0 10px; color: #718197; font: 600 10px/1 "Geist Mono", monospace; letter-spacing: .09em; text-transform: uppercase; }
.system-stage strong { display: block; margin-bottom: 7px; font-size: 15px; font-weight: 620; }
.system-stage span { color: #8f9cad; font-size: 12px; line-height: 1.55; }
.flow-line { position: relative; height: 36px; display: grid; place-items: center; }
.flow-line i { position: absolute; width: 1px; height: 100%; background: var(--line); }
.flow-line b { z-index: 1; width: 22px; height: 22px; display: grid; place-items: center; background: #111e30; color: var(--blue); font-size: 12px; border-radius: 50%; }
.system-result { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; background: var(--blue); color: #061020; }
.system-result span { font: 700 9px/1 "Geist Mono", monospace; letter-spacing: .13em; }
.system-result strong { font-size: 13px; }

.manifesto, .capabilities, .work, .principles, .contact {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 120px 0;
  border-top: 1px solid var(--line);
}
.manifesto-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(60px, 10vw, 150px); }
.manifesto h2, .section-heading h2, .work h2, .contact h2 {
  margin: 0; font-size: clamp(38px, 4vw, 60px); line-height: 1.08; letter-spacing: -.045em; font-weight: 540;
}
.manifesto-copy { color: #aeb9c7; font-size: 17px; line-height: 1.8; }
.manifesto-copy p { margin: 0 0 24px; }
.section-heading { margin-bottom: 54px; }
.section-heading h2 { max-width: 650px; }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.capability-grid article { min-height: 380px; padding: 34px 36px 32px 0; }
.capability-grid article + article { padding-left: 36px; border-left: 1px solid var(--line); }
.cap-number { color: var(--blue); font: 600 11px/1 "Geist Mono", monospace; }
.capability-grid h3 { margin: 68px 0 16px; font-size: 28px; letter-spacing: -.035em; }
.capability-grid p { color: #9eabb9; line-height: 1.7; }
.capability-grid ul { margin: 34px 0 0; padding: 0; list-style: none; color: #ccd3dc; font-size: 13px; }
.capability-grid li { padding: 9px 0; border-top: 1px solid var(--line); }

.work-heading { display: flex; justify-content: space-between; align-items: end; }
.work-heading > p { width: 300px; margin: 0; color: #8492a4; line-height: 1.6; }
.project-list { border-top: 1px solid var(--line); }
.project { padding: 34px 0 36px; border-bottom: 1px solid var(--line); transition: background .25s ease; }
.project:hover { background: rgba(105,168,255,.025); }
.project-meta { display: flex; justify-content: space-between; color: #647389; font: 600 10px/1 "Geist Mono", monospace; text-transform: uppercase; letter-spacing: .1em; }
.project-body { display: grid; grid-template-columns: .95fr 1.05fr; gap: 70px; align-items: start; margin-top: 28px; }
.project h3 { margin: 0; font-size: clamp(27px, 3vw, 42px); letter-spacing: -.04em; font-weight: 530; }
.project-subtitle { margin: 8px 0 0 !important; color: var(--blue-bright) !important; font-family: Georgia, serif; font-style: italic; }
.project-body > p { margin: 5px 0 0; color: #a4b0bf; line-height: 1.75; }
.project-tags { display: flex; gap: 8px; margin-top: 28px; }
.project-tags span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 3px; color: #8e9bad; font: 500 10px/1 "Geist Mono", monospace; text-transform: uppercase; }
.featured-project { position: relative; }
.featured-project::before { content: "Current build"; position: absolute; right: 0; top: 78px; color: var(--acid); font: 600 9px/1 "Geist Mono", monospace; text-transform: uppercase; letter-spacing: .1em; }

.principle-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px; margin-top: 52px; }
.principle-row p { margin: 0; color: #9daaba; line-height: 1.7; }
.principle-row span { display: block; margin-bottom: 30px; color: #536378; font: 600 10px/1 "Geist Mono", monospace; }
.principle-row strong { color: var(--paper); font-weight: 620; }

.contact { text-align: center; padding-top: 140px; padding-bottom: 140px; }
.contact .section-kicker { margin-bottom: 30px; }
.contact h2 { max-width: 850px; margin: 0 auto; }
.contact > p:not(.section-kicker) { max-width: 640px; margin: 28px auto 0; color: #9dabbc; font-size: 17px; line-height: 1.75; }
.contact-links { display: flex; justify-content: center; gap: 30px; margin-top: 40px; }
.contact-links a { padding-bottom: 5px; border-bottom: 1px solid rgba(105,168,255,.4); color: var(--blue-bright); }
footer { width: min(1180px, calc(100% - 48px)); margin: 0 auto; min-height: 100px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: #6e7c8e; font-size: 12px; }

/* ── Utilities page ── */

.utilities-hero {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 100px 0 80px;
}
.utilities-hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(38px, 4vw, 60px);
  line-height: 1.08;
  letter-spacing: -.045em;
  font-weight: 540;
}
.utilities-hero > p:not(.section-kicker) {
  max-width: 600px;
  margin: 22px 0 0;
  color: #9dabbc;
  font-size: 17px;
  line-height: 1.75;
}

.utilities-section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 120px;
}
.utility-list {
  border-top: 1px solid var(--line);
}
.utility {
  padding: 34px 0 36px;
  border-bottom: 1px solid var(--line);
  transition: background .25s ease;
}
.utility:hover {
  background: rgba(105,168,255,.025);
}
.utility-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #647389;
  font: 600 10px/1 "Geist Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.utility-status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 3px;
  font: 600 9px/1 "Geist Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.utility-status.live {
  background: rgba(183,243,151,.1);
  color: var(--acid);
  border: 1px solid rgba(183,243,151,.25);
}
.utility-body {
  margin-top: 24px;
}
.utility-body h2, .utility-body h3 {
  margin: 0;
  font-size: clamp(27px, 3vw, 42px);
  letter-spacing: -.04em;
  font-weight: 530;
}
.utility-body h3 a {
  transition: color .2s ease;
}
.utility-body h3 a:hover {
  color: var(--blue-bright);
}
.utility-body p {
  margin: 14px 0 0;
  max-width: 680px;
  color: #a4b0bf;
  line-height: 1.75;
}
.utility-tags {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}
.utility-tags span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: #8e9bad;
  font: 500 10px/1 "Geist Mono", monospace;
  text-transform: uppercase;
}

/* ── Writing / Article page ── */

.writing-article {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 100px 0 120px;
}

.article-header {
  max-width: 800px;
  margin: 0 auto 64px;
}

.article-header h1 {
  margin: 0;
  font-size: clamp(38px, 4vw, 60px);
  line-height: 1.08;
  letter-spacing: -.045em;
  font-weight: 540;
}

.article-subtitle {
  margin: 18px 0 0;
  color: var(--blue-bright);
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 20px;
  line-height: 1.4;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
}

.article-body p {
  margin: 0 0 24px;
  color: #bcc6d3;
  font-size: 17px;
  line-height: 1.8;
}

.article-body h2 {
  margin: 52px 0 20px;
  font-size: 28px;
  letter-spacing: -.03em;
  font-weight: 560;
  color: var(--paper);
}

.article-body h3 {
  margin: 36px 0 16px;
  font-size: 20px;
  letter-spacing: -.02em;
  font-weight: 600;
  color: var(--paper);
}

.article-body pre {
  margin: 28px 0;
  padding: 20px 24px;
  background: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow-x: auto;
  font: 500 13px/1.6 "Geist Mono", monospace;
  color: #c8d2e0;
}

.article-body code {
  font-family: "Geist Mono", monospace;
  font-size: .9em;
  color: var(--blue-bright);
}

.article-body pre code {
  font-size: inherit;
  color: inherit;
}

.article-body hr {
  margin: 60px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.article-signoff {
  color: #8492a4;
  font-size: 14px;
}

.article-table-wrapper {
  margin: 28px 0;
  overflow-x: auto;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
}

.article-table th {
  text-align: left;
  padding: 10px 16px;
  font: 600 10px/1 "Geist Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #647389;
  background: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.article-table th:first-child { border-radius: 4px 0 0 0; }
.article-table th:last-child { border-radius: 0 4px 0 0; }

.article-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: #aeb9c7;
}

.article-table td:first-child {
  white-space: nowrap;
  font-family: "Geist Mono", monospace;
  font-size: 13px;
  color: var(--blue-bright);
}

.article-table tr:last-child td {
  border-bottom: 0;
}

/* ── TAO pages ── */

.tao-hero {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 100px 0 80px;
}
.tao-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(38px, 4vw, 60px);
  line-height: 1.08;
  letter-spacing: -.045em;
  font-weight: 540;
}
.tao-hero-deck {
  max-width: 650px;
  margin: 22px 0 0;
  color: #b8c1cd;
  font-size: 18px;
  line-height: 1.75;
}
.tao-hero .hero-actions {
  margin-top: 36px;
}

.tao-what, .tao-portability, .tao-how, .tao-philosophy, .tao-registry-cta, .tao-registry, .tao-registry-outro {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 120px 0;
  border-top: 1px solid var(--line);
}

.tao-what-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(60px, 10vw, 150px);
}
.tao-what h2 {
  margin: 0;
  font-size: clamp(38px, 4vw, 60px);
  line-height: 1.08;
  letter-spacing: -.045em;
  font-weight: 540;
}
.tao-what-copy {
  color: #aeb9c7;
  font-size: 17px;
  line-height: 1.8;
}
.tao-what-copy p {
  margin: 0 0 24px;
}

.tao-layer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.tao-layer {
  padding: 36px 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--ink-soft);
}
.tao-layer h3 {
  margin: 0 0 12px;
  font-size: 24px;
  letter-spacing: -.03em;
  font-weight: 560;
}
.tao-layer-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  color: #647389;
  font: 600 10px/1 "Geist Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.tao-layer p {
  margin: 0;
  color: #9eabb9;
  line-height: 1.7;
}
.tao-invariant {
  margin: 36px 0 0;
  padding: 18px 24px;
  border-left: 3px solid var(--blue);
  color: #aeb9c7;
  font-size: 14px;
  line-height: 1.7;
}

.tao-how-heading {
  margin: 0 0 52px;
  max-width: 650px;
  font-size: clamp(38px, 4vw, 60px);
  line-height: 1.08;
  letter-spacing: -.045em;
  font-weight: 540;
}
.tao-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.tao-step {
  padding: 40px 20px 44px 0;
}
.tao-step + .tao-step {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.tao-step-number {
  display: block;
  margin-bottom: 40px;
  color: var(--blue);
  font: 600 11px/1 "Geist Mono", monospace;
}
.tao-step h3 {
  margin: 0 0 16px;
  font-size: 22px;
  letter-spacing: -.03em;
  font-weight: 560;
}
.tao-step p {
  margin: 0;
  color: #9eabb9;
  line-height: 1.7;
  font-size: 14px;
}
.tao-step code {
  font-family: "Geist Mono", monospace;
  font-size: .9em;
  color: var(--blue-bright);
}

.tao-philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 52px;
}
.tao-principle-card {
  padding: 36px 32px 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--ink-soft);
}
.tao-principle-num {
  display: block;
  margin-bottom: 28px;
  color: #536378;
  font: 600 10px/1 "Geist Mono", monospace;
}
.tao-principle-card h3 {
  margin: 0 0 14px;
  font-size: 18px;
  letter-spacing: -.02em;
  font-weight: 620;
}
.tao-principle-card p {
  margin: 0;
  color: #9eabb9;
  line-height: 1.7;
  font-size: 14px;
}

.tao-registry-cta {
  text-align: center;
  padding-bottom: 140px;
}
.tao-registry-cta h2 {
  max-width: 750px;
  margin: 0 auto;
  font-size: clamp(38px, 4vw, 60px);
  line-height: 1.08;
  letter-spacing: -.045em;
  font-weight: 540;
}
.tao-registry-cta > p {
  max-width: 640px;
  margin: 22px auto 0;
  color: #9dabbc;
  font-size: 17px;
  line-height: 1.75;
}
.tao-registry-cta .hero-actions {
  justify-content: center;
  margin-top: 36px;
}

/* ── TAO: Registry dossier ── */

.tao-agent-dossier {
  border-top: 1px solid var(--line);
  padding-top: 60px;
}
.dossier-header {
  margin-bottom: 48px;
}
.dossier-header h2 {
  margin: 0;
  font-size: clamp(38px, 4vw, 60px);
  line-height: 1.08;
  letter-spacing: -.045em;
  font-weight: 540;
}
.dossier-badges {
  margin: 20px 0 0;
  display: flex;
  gap: 10px;
}
.dossier-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 3px;
  font: 600 10px/1 "Geist Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.badge-type {
  background: rgba(105,168,255,.12);
  color: var(--blue-bright);
  border: 1px solid rgba(105,168,255,.3);
}
.badge-maturity {
  background: rgba(183,243,151,.1);
  color: var(--acid);
  border: 1px solid rgba(183,243,151,.25);
}
.dossier-tagline {
  margin: 32px 0 0;
  max-width: 650px;
  color: var(--blue-bright);
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 20px;
  line-height: 1.4;
}

.dossier-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-bottom: 52px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--line);
}
.dossier-stat {
  padding: 28px 24px;
  background: var(--ink-soft);
  text-align: center;
}
.dossier-stat-value {
  display: block;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--paper);
}
.dossier-stat-label {
  display: block;
  margin-top: 6px;
  color: #647389;
  font: 600 10px/1 "Geist Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.dossier-section {
  margin-bottom: 44px;
}
.dossier-section h3 {
  margin: 0 0 18px;
  font-size: 20px;
  letter-spacing: -.02em;
  font-weight: 620;
  color: var(--paper);
}
.dossier-section p {
  margin: 0 0 18px;
  max-width: 720px;
  color: #aeb9c7;
  line-height: 1.75;
  font-size: 15px;
}
.dossier-section p:last-child {
  margin-bottom: 0;
}
.dossier-section code {
  font-family: "Geist Mono", monospace;
  font-size: .9em;
  color: var(--blue-bright);
}

.dossier-table-wrapper {
  overflow-x: auto;
  margin: 0;
}
.dossier-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
}
.dossier-table th {
  text-align: left;
  padding: 10px 16px;
  font: 600 10px/1 "Geist Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #647389;
  background: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.dossier-table th:first-child {
  border-radius: 4px 0 0 0;
}
.dossier-table th:last-child {
  border-radius: 0 4px 0 0;
}
.dossier-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: #aeb9c7;
  font-size: 14px;
}
.dossier-table td:first-child {
  white-space: nowrap;
  font-family: "Geist Mono", monospace;
  font-size: 13px;
  color: var(--blue-bright);
}
.dossier-table tr:last-child td {
  border-bottom: 0;
}

.dossier-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.dossier-list li {
  position: relative;
  padding: 8px 0 8px 20px;
  color: #aeb9c7;
  line-height: 1.6;
  font-size: 15px;
}
.dossier-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #647389;
}

.dossier-footer {
  display: flex;
  gap: 12px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.tao-registry-outro {
  border-top: 0;
  padding-top: 0;
  padding-bottom: 120px;
}
.tao-registry-outro .section-kicker {
  margin-bottom: 18px;
}
.tao-registry-outro p {
  color: #9dabbc;
  font-size: 16px;
  line-height: 1.7;
}
.tao-registry-outro a {
  color: var(--blue-bright);
  border-bottom: 1px solid rgba(105,168,255,.3);
}

@media (max-width: 900px) {
  .tao-hero, .tao-what, .tao-portability, .tao-how, .tao-philosophy, .tao-registry-cta, .tao-registry, .tao-registry-outro { width: min(100% - 32px, 1180px); }
  .tao-hero { padding: 72px 0 60px; }
  .tao-what, .tao-portability, .tao-how, .tao-philosophy, .tao-registry-cta, .tao-registry, .tao-registry-outro { padding: 84px 0; }
  .tao-what-grid { grid-template-columns: 1fr; gap: 46px; }
  .tao-layer-grid { grid-template-columns: 1fr; }
  .tao-steps { grid-template-columns: repeat(2, 1fr); }
  .tao-step:nth-child(3), .tao-step:nth-child(4) { border-left: 0; padding-left: 0; }
  .tao-philosophy-grid { grid-template-columns: 1fr; }
  .dossier-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .tao-hero, .tao-what, .tao-portability, .tao-how, .tao-philosophy, .tao-registry-cta, .tao-registry, .tao-registry-outro { width: min(100% - 32px, 1180px); }
  .tao-hero { padding: 64px 0 60px; }
  .tao-what, .tao-portability, .tao-how, .tao-philosophy, .tao-registry-cta, .tao-registry, .tao-registry-outro { padding: 64px 0; }
  .tao-hero-deck { font-size: 16px; }
  .tao-steps { grid-template-columns: 1fr; }
  .tao-step { padding: 28px 0 32px !important; border-left: 0 !important; }
  .tao-step + .tao-step { border-top: 1px solid var(--line); }
  .tao-layer { padding: 28px 24px; }
  .tao-principle-card { padding: 28px 24px; }
  .tao-registry-cta { padding-bottom: 84px; }
  .tao-registry-cta .hero-actions { flex-direction: column; align-items: center; }
  .tao-registry-cta .button { width: 100%; max-width: 320px; }
  .dossier-stats { grid-template-columns: repeat(2, 1fr); }
  .dossier-stat { padding: 20px 16px; }
  .dossier-stat-value { font-size: 26px; }
  .dossier-footer { flex-direction: column; }
  .dossier-footer .button { width: 100%; }
  .tao-hero .hero-actions { flex-direction: column; }
  .tao-hero .button { width: 100%; }
}

@media (max-width: 900px) {
  .writing-article { padding: 80px 0; }
  .article-header { margin-bottom: 48px; }
}

@media (max-width: 640px) {
  .writing-article { padding: 64px 0; }
  .article-header { margin-bottom: 36px; }
  .article-body pre { padding: 16px 18px; font-size: 12px; }
  .article-table { font-size: 12px; }
  .article-table td, .article-table th { padding: 8px 12px; }
}

@media (max-width: 640px) {
  .utilities-hero, .utilities-section { width: min(100% - 32px, 1180px); }
  .utilities-hero { padding: 72px 0 60px; }
  .utilities-section { padding: 0 0 84px; }
  .utility-tags { flex-wrap: wrap; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 72px; }
  .system-card { width: min(520px, 100%); }
  .manifesto-grid { grid-template-columns: 1fr; gap: 46px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-grid article { min-height: auto; padding: 30px 0 34px !important; }
  .capability-grid article + article { border-left: 0; border-top: 1px solid var(--line); }
  .capability-grid h3 { margin-top: 34px; }
  .project-body { grid-template-columns: 1fr; gap: 18px; }
  .principle-row { grid-template-columns: 1fr; }
  .featured-project::before { display: none; }
}

@media (max-width: 640px) {
  .site-header, .hero, .manifesto, .capabilities, .work, .principles, .contact, footer, .utilities-hero, .utilities-section, .writing-article { width: min(100% - 32px, 1180px); }
  .site-header { height: 72px; }
  nav { gap: 12px; font-size: 11px; }
  .hero { min-height: auto; padding: 64px 0 80px; }
  .hero h1 { font-size: 52px; }
  .hero-deck { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .system-card { padding: 0 16px 18px; }
  .manifesto, .capabilities, .work, .principles, .contact { padding: 84px 0; }
  .work-heading { display: block; }
  .work-heading > p { width: auto; margin-top: 24px; }
  .project-tags { flex-wrap: wrap; }
  .contact { text-align: left; }
  .contact-links { justify-content: flex-start; }
  footer { min-height: 130px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
