:root {
  --paper: #f1ede5;
  --surface: #faf7f0;
  --surface-2: #e6ded2;
  --ink: #1c2a30;
  --muted: #626e72;
  --line: rgba(28, 42, 48, .2);
  --line-strong: rgba(28, 42, 48, .46);
  --blue: #315f6d;
  --blue-soft: #acc6ce;
  --clay: #c79c7d;
  --sage: #bdc9b2;
  --green: #287c5c;
  --amber: #a96f2c;
  --shadow: 0 20px 50px rgba(42, 52, 53, .08);
  --sans: "Helvetica Neue", Helvetica, Arial, ui-sans-serif, system-ui, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

html[data-theme="dark"] {
  --paper: #0b1933;
  --surface: #122441;
  --surface-2: #1a3151;
  --ink: #eef3ff;
  --muted: #aebbd3;
  --line: rgba(225, 234, 255, .2);
  --line-strong: rgba(225, 234, 255, .46);
  --blue: #91a9ff;
  --blue-soft: #315aa6;
  --clay: #b58e78;
  --sage: #344966;
  --green: #60d59a;
  --amber: #ffca66;
  --shadow: 0 22px 56px rgba(2, 9, 24, .3);
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: clip; scroll-behavior: smooth; background: var(--paper); }
body { max-width: 100%; margin: 0; overflow-x: clip; color: var(--ink); background: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
::selection { color: var(--surface); background: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 13px; color: var(--surface); background: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header { min-height: 86px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; justify-self: start; font-weight: 700; letter-spacing: -.035em; text-decoration: none; }
.brand-mark { width: 38px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; color: var(--surface); background: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: -.04em; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { font-size: 10px; font-weight: 700; letter-spacing: .13em; text-decoration: none; text-transform: uppercase; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.theme-toggle { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 1px solid var(--ink); color: var(--ink); background: transparent; cursor: pointer; font-size: 17px; }
.theme-toggle:hover { color: var(--paper); background: var(--ink); }
.small-button { display: inline-flex; align-items: center; min-height: 40px; padding: 10px 13px; border: 1px solid var(--ink); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.small-button:hover { color: var(--surface); background: var(--ink); }

.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 26px; color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 30px; height: 2px; flex: 0 0 auto; background: currentColor; }
.tech-hero { min-height: 720px; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr); align-items: center; gap: clamp(52px, 8vw, 120px); padding: 90px 0 94px; }
.tech-hero h1 { max-width: 830px; margin: 0; font-size: clamp(60px, 8.4vw, 112px); font-weight: 500; line-height: .87; letter-spacing: -.072em; }
.tech-hero h1 em { color: var(--blue); font-family: var(--serif); font-style: normal; font-weight: 400; }
.hero-lede { max-width: 720px; margin: 34px 0 0; color: var(--muted); font-size: clamp(19px, 2.1vw, 25px); line-height: 1.48; letter-spacing: -.026em; }
.hero-lede strong { color: var(--ink); font-weight: 600; }
.hero-link { display: inline-flex; align-items: center; gap: 14px; margin-top: 34px; padding: 13px 16px; border: 1px solid var(--ink); color: var(--surface); background: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.hero-link:hover { color: var(--ink); background: transparent; }

.prompt-product { padding: 18px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.compare-label { margin: 0 0 15px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.compare-column { padding: 22px; border: 1px solid var(--line); }
.compare-column + .compare-column { margin-top: 12px; }
.compare-column.prompt { color: var(--muted); background: var(--paper); }
.compare-column.product { color: #f7fbff; background: var(--blue); border-color: var(--blue); }
html[data-theme="dark"] .compare-column.product { color: #0b1933; }
.compare-column small { display: block; margin-bottom: 25px; font-size: 9px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.compare-column strong { display: block; font-family: var(--serif); font-size: clamp(25px, 3vw, 37px); font-weight: 400; line-height: 1.05; letter-spacing: -.035em; }
.compare-column p { margin: 13px 0 0; font-size: 13px; line-height: 1.55; opacity: .82; }

.jump-strip { border-block: 1px solid var(--line); background: var(--surface); }
.jump-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.jump-link { min-width: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 18px 20px; border-right: 1px solid var(--line); font-size: 11px; font-weight: 700; text-decoration: none; }
.jump-link:nth-child(4n) { border-right: 0; }
.jump-link:nth-child(n+5) { border-top: 1px solid var(--line); }
.jump-link span { color: var(--muted); font-size: 8px; letter-spacing: .14em; }
.jump-link:hover { color: var(--surface); background: var(--ink); }
.jump-link:hover span { color: inherit; }

.section { padding: 120px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 60px; align-items: start; margin-bottom: 62px; }
.section-kicker { margin: 10px 0 0; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.section-heading h2 { max-width: 880px; margin: 0; font-size: clamp(46px, 6.4vw, 78px); font-weight: 500; line-height: .98; letter-spacing: -.057em; }
.section-heading h2 em { color: var(--blue); font-family: var(--serif); font-weight: 400; }
.section-intro { max-width: 760px; margin: 25px 0 0; color: var(--muted); font-size: 18px; line-height: 1.65; }

.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.principle { min-height: 330px; display: flex; flex-direction: column; padding: 29px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.principle:nth-child(2) { background: var(--surface-2); }
.principle:nth-child(3) { background: var(--sage); color: #1c2a30; }
.principle:nth-child(4) { background: var(--clay); color: #1c2a30; }
.principle-number { color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.principle h3 { margin: auto 0 13px; font-size: 27px; font-weight: 500; line-height: 1.04; letter-spacing: -.04em; }
.principle p { margin: 0; font-size: 14px; line-height: 1.62; opacity: .82; }

.role-split { display: grid; grid-template-columns: 1fr 1fr; margin-top: 15px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.role-column { padding: clamp(30px, 5vw, 58px); }
.role-column + .role-column { border-left: 1px solid var(--line); }
.role-column h3 { margin: 0 0 25px; font-family: var(--serif); font-size: 35px; font-weight: 400; letter-spacing: -.035em; }
.role-column ul { display: grid; gap: 15px; margin: 0; padding: 0; list-style: none; }
.role-column li { position: relative; padding-left: 21px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.role-column li::before { content: ""; position: absolute; top: .6em; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.role-column.systems li::before { border-radius: 0; background: var(--clay); }

.systems-section { padding-bottom: 0; }
.project-section { scroll-margin-top: 24px; padding: 112px 0; border-top: 1px solid var(--line); }
.project-intro { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 60px; align-items: start; }
.project-index { position: sticky; top: 24px; padding-top: 9px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.project-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.project-title-row h2 { margin: 0; font-size: clamp(48px, 7vw, 86px); font-weight: 500; line-height: .9; letter-spacing: -.065em; }
.status-pill { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 99px; font-size: 8px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.status-pill.concept::before { background: var(--amber); }
.project-thesis { max-width: 790px; margin: 25px 0 0; color: var(--muted); font-size: clamp(19px, 2.1vw, 25px); line-height: 1.52; letter-spacing: -.02em; }
.project-thesis strong { color: var(--ink); font-weight: 600; }
.project-visit { display: inline-block; margin-top: 22px; font-size: 11px; font-weight: 700; text-underline-offset: 5px; }

.system-flow { display: flex; align-items: stretch; margin-top: 46px; padding: 20px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.flow-node { position: relative; min-width: 0; flex: 1 1 0; padding: 20px 30px 20px 18px; border: 1px solid var(--line); background: var(--paper); }
.flow-node + .flow-node { margin-left: 22px; }
.flow-node:not(:last-child)::after { content: "→"; position: absolute; z-index: 2; top: 50%; right: -26px; width: 28px; color: var(--blue); font-size: 19px; font-weight: 400; text-align: center; transform: translateY(-50%); }
.flow-node small { display: block; margin-bottom: 12px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.flow-node strong { display: block; overflow-wrap: anywhere; font-size: 14px; font-weight: 600; line-height: 1.3; letter-spacing: -.015em; }

.project-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 14px; }
.detail-card { min-height: 300px; display: flex; flex-direction: column; padding: 29px; border: 1px solid var(--line); background: var(--surface); }
.detail-card.value { background: var(--surface-2); }
.detail-card.beyond { color: #f7fbff; background: var(--blue); border-color: var(--blue); }
html[data-theme="dark"] .detail-card.beyond { color: #0b1933; }
.detail-label { margin: 0 0 48px; font-size: 8px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; opacity: .75; }
.detail-card h3 { margin: auto 0 13px; font-size: 25px; font-weight: 500; line-height: 1.08; letter-spacing: -.038em; }
.detail-card p { margin: 0; font-size: 14px; line-height: 1.62; opacity: .82; }
.stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.stack span { padding: 5px 7px; border: 1px solid currentColor; font-size: 7px; font-weight: 700; letter-spacing: .12em; opacity: .74; text-transform: uppercase; }
.truth-line { margin: 14px 0 0; padding: 20px 23px; border-left: 3px solid var(--clay); color: var(--muted); background: var(--surface); font-family: var(--serif); font-size: clamp(22px, 2.8vw, 32px); line-height: 1.25; letter-spacing: -.025em; }
.truth-line strong { color: var(--ink); font-weight: 400; }

.matrix { border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.matrix-row { display: grid; grid-template-columns: 1fr 1.45fr 1.45fr 1.65fr; }
.matrix-row + .matrix-row { border-top: 1px solid var(--line); }
.matrix-row > div { min-width: 0; padding: 19px 21px; overflow-wrap: anywhere; font-size: 13px; line-height: 1.45; }
.matrix-row > div + div { border-left: 1px solid var(--line); }
.matrix-head { color: var(--muted); background: var(--paper); font-size: 8px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.matrix-product { font-weight: 700; }
.matrix-row em { color: var(--muted); font-style: normal; }

.closing { padding: 120px 0 140px; }
.closing-card { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); gap: 60px; align-items: end; padding: clamp(42px, 7vw, 86px); color: #f7fbff; background: var(--blue); }
html[data-theme="dark"] .closing-card { color: #0b1933; }
.closing-card::after { content: "C4"; position: absolute; right: -20px; bottom: -95px; font-family: var(--serif); font-size: 270px; line-height: 1; opacity: .08; pointer-events: none; }
.closing-card h2 { position: relative; z-index: 1; max-width: 720px; margin: 0; font-size: clamp(45px, 6.4vw, 78px); font-weight: 500; line-height: .98; letter-spacing: -.06em; }
.closing-card p { position: relative; z-index: 1; max-width: 430px; margin: 0 0 25px; font-size: 16px; line-height: 1.6; opacity: .84; }
.closing-card a { position: relative; z-index: 1; display: inline-flex; padding: 12px 15px; border: 1px solid currentColor; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
.closing-card a:hover { color: var(--blue); background: #f7fbff; }
html[data-theme="dark"] .closing-card a:hover { color: #f7fbff; background: #0b1933; }

.site-footer { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.site-footer a { font-weight: 700; text-underline-offset: 4px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .tech-hero { min-height: auto; grid-template-columns: 1fr; padding: 74px 0 82px; }
  .prompt-product { max-width: 620px; }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-intro { grid-template-columns: 110px minmax(0, 1fr); gap: 34px; }
  .system-flow { flex-wrap: wrap; gap: 12px; }
  .flow-node { flex: 1 1 calc(33.333% - 12px); }
  .flow-node + .flow-node { margin-left: 0; }
  .flow-node::after { display: none; }
}

@media (max-width: 740px) {
  .shell { width: min(100% - 24px, 1180px); }
  .site-header { min-height: 74px; }
  .small-button { width: 40px; justify-content: center; padding: 0; font-size: 0; }
  .small-button::before { content: "←"; font-size: 17px; }
  .tech-hero { gap: 46px; padding: 58px 0 66px; }
  .tech-hero h1 { font-size: clamp(52px, 15.5vw, 78px); }
  .jump-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jump-link:nth-child(4n) { border-right: 1px solid var(--line); }
  .jump-link:nth-child(2n) { border-right: 0; }
  .jump-link:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section { padding: 82px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 19px; margin-bottom: 43px; }
  .principle { min-height: 285px; }
  .role-split { grid-template-columns: 1fr; }
  .role-column + .role-column { border-top: 1px solid var(--line); border-left: 0; }
  .project-section { padding: 82px 0; }
  .project-intro { grid-template-columns: 1fr; gap: 18px; }
  .project-index { position: static; }
  .project-title-row { display: block; }
  .status-pill { margin-top: 18px; }
  .system-flow { display: grid; grid-template-columns: 1fr; padding: 12px; }
  .flow-node { padding: 18px; }
  .flow-node:not(:last-child)::after { display: block; content: "↓"; top: auto; right: 50%; bottom: -19px; width: 24px; height: 24px; padding-top: 2px; background: var(--surface); font-size: 15px; transform: translateX(50%); }
  .project-details { grid-template-columns: 1fr; }
  .detail-card { min-height: 250px; }
  .matrix { border: 0; background: transparent; box-shadow: none; }
  .matrix-head { display: none; }
  .matrix-row { display: block; margin-bottom: 12px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
  .matrix-row + .matrix-row { border-top: 1px solid var(--line); }
  .matrix-row > div { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 12px; padding: 14px 16px; }
  .matrix-row > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .matrix-row > div::before { content: attr(data-label); color: var(--muted); font-size: 7px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
  .closing { padding: 82px 0 100px; }
  .closing-card { grid-template-columns: 1fr; gap: 42px; }
  .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; padding: 28px 0; }
}

@media (max-width: 480px) {
  .brand span:last-child { display: none; }
  .principles { grid-template-columns: 1fr; }
  .principle { min-height: 255px; }
  .project-title-row h2 { font-size: 49px; }
  .matrix-row > div { grid-template-columns: 82px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
