@import url('https://font.emtech.cc/css/jfOpenHuninn/400');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --paper: #f3f0e8;
  --paper-deep: #e8e5da;
  --surface: #fbfaf6;
  --ink: #18241f;
  --ink-soft: #53615a;
  --ink-faint: #7b857e;
  --line: #cfd4c9;
  --green: #168b58;
  --green-dark: #0d593a;
  --green-pale: #dce8bf;
  --red: #a74436;
  --red-dark: #762c2d;
  --cream: #f8f4e9;
  --white: #fffdf8;
  --sans: "DM Sans", "jfOpenHuninn", "Avenir Next", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "jfOpenHuninn", "STKaiti", "Kaiti SC", "KaiTi", "Songti SC", "SimSun", serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --max: 1240px;
  --pad: clamp(22px, 4vw, 56px);
  --shadow-hard: 10px 10px 0 var(--ink);
  --shadow-soft: 0 12px 28px rgba(24, 36, 31, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
::selection { color: var(--cream); background: var(--green-dark); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
p, h1, h2, h3, figure, dl, dd, dt { margin: 0; }
h1, h2, h3 { font-weight: 600; }
ul { list-style: none; margin: 0; padding: 0; }

.page-width { width: min(var(--max), calc(100% - (var(--pad) * 2))); margin-inline: auto; }
.scroll-progress { position: fixed; z-index: 30; inset: 0 0 auto; height: 3px; pointer-events: none; background: transparent; }
.scroll-progress span { display: block; width: 0; height: 100%; background: var(--green); transform-origin: left; }

.site-header { position: sticky; z-index: 20; top: 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 34px; min-height: 82px; padding: 14px var(--pad); border-bottom: 1px solid rgba(24, 36, 31, .14); background: var(--paper); }
.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; overflow: hidden; border: 1px solid var(--green); border-radius: 50%; background: var(--surface); }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-copy strong { font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: .04em; }
.brand-copy small { margin-top: 4px; color: var(--ink-faint); font-family: var(--mono); font-size: 8px; letter-spacing: .18em; }
.primary-nav { display: flex; justify-content: center; align-items: center; gap: clamp(20px, 3vw, 42px); }
.primary-nav a { position: relative; min-height: 44px; display: inline-flex; align-items: center; color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.primary-nav a::after { position: absolute; right: 0; bottom: 7px; left: 0; height: 2px; content: ""; background: var(--green); transform: scaleX(0); transform-origin: right; transition: transform 180ms ease; }
.primary-nav a:hover, .primary-nav a.is-active { color: var(--ink); }
.primary-nav a:hover::after, .primary-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.mobile-nav-only { display: none !important; }
.header-link, .text-link, .arrow-link, .card-link, .light-link { font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 13px; border: 1px solid var(--ink); font-size: 13px; font-weight: 700; transition: background 180ms ease, color 180ms ease, transform 180ms ease; }
.header-actions svg { width: 16px; height: 16px; }
.header-online { color: var(--cream); background: var(--green-dark); }
.header-download { color: var(--ink); background: transparent; }
.header-actions a:hover { color: var(--cream); background: var(--ink); transform: translateY(-2px); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 11px 8px; border: 1px solid var(--ink); background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 100%; height: 1.5px; margin: 5px 0; background: currentColor; transition: transform 180ms ease; }

.home-hero { display: grid; grid-template-columns: minmax(0, .88fr) minmax(420px, 1.12fr); gap: clamp(42px, 8vw, 120px); align-items: center; min-height: min(820px, calc(100vh - 82px)); padding-top: clamp(54px, 8vw, 110px); padding-bottom: clamp(70px, 10vw, 140px); }
.hero-copy { padding-bottom: 20px; }
.eyebrow, .section-kicker, .art-index, .frame-topline, .project-card-label, .system-label, .architecture-branches span, .stat span, .footer-meta { font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; color: var(--green-dark); font-size: 11px; font-weight: 700; }
.eyebrow-rule { display: inline-block; width: 31px; height: 2px; background: var(--green); }
.eyebrow-version { padding-left: 11px; border-left: 1px solid var(--line); color: var(--ink-faint); }
.hero-copy h1 { max-width: 9ch; margin-top: 28px; font-family: var(--display); font-size: clamp(60px, 7.2vw, 108px); font-weight: 700; line-height: .98; letter-spacing: -.055em; }
.hero-copy h1 em, h2 em { color: var(--green); font-style: normal; }
.hero-lede { max-width: 40ch; margin-top: 31px; color: var(--ink-soft); font-size: clamp(16px, 1.45vw, 19px); line-height: 1.8; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 20px; border: 1px solid transparent; font-size: 14px; font-weight: 700; cursor: pointer; transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease; }
.button svg { width: 18px; height: 18px; }
.button-primary { color: var(--cream); background: var(--green-dark); }
.button-primary:hover { background: var(--green); transform: translateY(-2px); }
.button-primary:active { transform: translateY(1px) scale(.98); }
.button-quiet { border-color: var(--line); color: var(--ink); background: transparent; }
.button-quiet:hover { border-color: var(--ink); background: var(--surface); transform: translateY(-2px); }
.text-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: var(--ink); font-size: 14px; border-bottom: 1px solid var(--ink); }
.text-link svg, .arrow-link svg, .card-link svg, .light-link svg { width: 16px; height: 16px; flex: 0 0 auto; }
.text-link:hover, .arrow-link:hover, .card-link:hover, .light-link:hover { color: var(--green); }
.hero-proof { display: flex; align-items: center; gap: 9px; margin-top: 42px; color: var(--ink-faint); font-family: var(--mono); font-size: 10px; letter-spacing: .06em; }
.proof-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-pale); }
.hero-art { position: relative; max-width: 630px; justify-self: end; padding: 18px 0 30px 29px; }
.art-index { position: absolute; top: 0; left: 0; color: var(--ink-faint); font-size: 10px; }
.art-index span { padding: 0 7px; color: var(--green); }
.player-frame { position: relative; z-index: 1; width: min(100%, 505px); margin-left: auto; padding: 15px; background: var(--surface); border: 1px solid var(--ink); box-shadow: var(--shadow-hard); transform: rotate(1.3deg); }
.frame-topline, .player-frame figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.frame-topline { padding: 0 1px 12px; color: var(--ink-faint); font-size: 8px; }
.player-image-wrap { position: relative; overflow: hidden; aspect-ratio: 9 / 14; background: var(--red-dark); }
.player-image-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.image-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; color: var(--cream); background: var(--red-dark); font-size: 13px; text-align: center; }
.image-stamp { position: absolute; right: 12px; bottom: 12px; padding: 5px 8px; color: var(--cream); border: 1px solid rgba(248, 244, 233, .7); font-family: var(--mono); font-size: 8px; letter-spacing: .14em; }
.player-frame figcaption { padding: 13px 1px 0; color: var(--ink-soft); font-size: 12px; }
.caption-number { color: var(--green); font-family: var(--mono); font-size: 11px; }
.hero-side-note { position: absolute; z-index: 5; right: -48px; bottom: 13px; display: flex; align-items: center; gap: 11px; padding: 8px 10px; color: var(--green-dark); border: 1px solid var(--green); background: var(--paper); font-family: var(--display); font-size: 20px; line-height: 1.12; transform: rotate(-7deg); }
.side-note-line { display: block; width: 44px; height: 1px; background: var(--green); }

.manifesto { padding-top: clamp(85px, 12vw, 170px); padding-bottom: clamp(90px, 12vw, 160px); border-top: 1px solid var(--line); }
.section-kicker { color: var(--green-dark); font-size: 10px; font-weight: 700; }
.manifesto-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: end; margin-top: 31px; }
.manifesto h2, .section-heading h2, .architecture-intro h2, .about-hero h1, .principle-heading h2, .architecture-title h2, .stack-copy h2, .closing-section h2 { font-family: var(--display); font-size: clamp(40px, 5vw, 70px); font-weight: 700; line-height: 1.05; letter-spacing: -.045em; }
.manifesto-copy { max-width: 39ch; padding-bottom: 6px; color: var(--ink-soft); }
.manifesto-copy p { font-size: 17px; line-height: 1.85; }
.arrow-link, .card-link, .light-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin-top: 25px; color: var(--ink); border-bottom: 1px solid currentColor; font-size: 13px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 84px; padding-top: 20px; border-top: 1px solid var(--line); }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat strong { font-size: clamp(19px, 2vw, 25px); font-weight: 600; letter-spacing: -.04em; }
.stat span { color: var(--ink-faint); font-size: 9px; }
.path-console { display: grid; grid-template-columns: .62fr 1fr 1.1fr; gap: 28px; align-items: center; margin-top: 62px; padding: 19px 22px 18px; border: 1px solid var(--ink); background: var(--surface); box-shadow: 5px 5px 0 var(--green); }
.path-console-top { display: flex; flex-direction: column; gap: 8px; }
.path-console-top strong { font-family: var(--display); font-size: 23px; line-height: 1.1; }
.path-tabs { display: flex; align-items: stretch; border: 1px solid var(--line); }
.path-tab { flex: 1; min-height: 48px; padding: 0 10px; border: 0; border-right: 1px solid var(--line); color: var(--ink-soft); background: transparent; font-size: 13px; cursor: pointer; transition: color 160ms ease, background 160ms ease; }
.path-tab:last-child { border-right: 0; }
.path-tab span { display: block; margin-bottom: 2px; color: var(--ink-faint); font-family: var(--mono); font-size: 9px; }
.path-tab:hover, .path-tab.is-active { color: var(--ink); background: var(--green-pale); }
.path-tab.is-active span { color: var(--green-dark); }
.path-console > p { min-height: 48px; color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.path-meter { position: relative; grid-column: 2 / -1; height: 3px; background: var(--paper-deep); }
.path-meter span { display: block; width: 33.333%; height: 100%; background: var(--green); transform-origin: left; transition: width 300ms cubic-bezier(.2,.8,.2,1); }

.feature-section { padding-bottom: clamp(100px, 14vw, 190px); }
.section-heading { display: grid; grid-template-columns: 1fr .72fr; gap: 50px; align-items: end; margin-bottom: 54px; }
.section-heading > p { max-width: 36ch; justify-self: end; color: var(--ink-soft); font-size: 16px; line-height: 1.8; }
.feature-grid { display: grid; grid-template-columns: 1.12fr .88fr; grid-template-rows: auto auto; gap: 20px; }
.feature-card { position: relative; overflow: hidden; min-height: 310px; padding: 28px; border: 1px solid var(--ink); }
.feature-card-large { display: grid; grid-template-columns: .86fr 1.14fr; grid-row: span 2; min-height: 650px; color: var(--cream); background: var(--red-dark); }
.feature-card-large .feature-number { color: rgba(248, 244, 233, .58); }
.feature-card-large .feature-content { align-self: end; position: relative; z-index: 1; padding-right: 18px; }
.feature-number { position: absolute; top: 24px; left: 28px; color: var(--green); font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.feature-card h3 { font-family: var(--display); font-size: clamp(27px, 3vw, 42px); line-height: 1.08; letter-spacing: -.03em; }
.feature-card p { max-width: 30ch; margin-top: 17px; color: var(--ink-soft); font-size: 15px; line-height: 1.75; }
.feature-card-large p { color: rgba(248, 244, 233, .74); }
.feature-card-large .card-link { color: var(--cream); }
.feature-card-large .card-link:hover { color: var(--green-pale); }
.preview-crop { position: absolute; top: 0; right: 0; bottom: 0; width: 47%; overflow: hidden; border-left: 1px solid rgba(248, 244, 233, .4); }
.preview-images { position: absolute; inset: 0; }
.preview-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; opacity: 0; transform: translateX(18px) scale(1.02); transition: opacity 300ms ease, transform 420ms cubic-bezier(.2,.8,.2,1); }
.preview-image.is-active { opacity: 1; transform: translateX(0) scale(1); }
.preview-crop::after { position: absolute; inset: 0; z-index: 1; pointer-events: none; content: ""; background: rgba(118, 44, 45, .12); mix-blend-mode: multiply; }
.preview-tabs { position: absolute; z-index: 3; top: 15px; right: 15px; display: flex; border: 1px solid rgba(248, 244, 233, .65); background: rgba(118, 44, 45, .72); }
.preview-tab { min-height: 34px; padding: 0 10px; border: 0; border-right: 1px solid rgba(248, 244, 233, .38); color: rgba(248, 244, 233, .72); background: transparent; font-size: 11px; cursor: pointer; transition: color 160ms ease, background 160ms ease; }
.preview-tab:last-child { border-right: 0; }
.preview-tab:hover, .preview-tab.is-active { color: var(--red-dark); background: var(--cream); }
.preview-image + .image-fallback { position: absolute; inset: 0; }
.feature-card-local { background: var(--green-pale); }
.feature-card-control { background: var(--surface); }
.feature-icon { display: grid; place-items: center; width: 51px; height: 51px; margin: 48px 0 28px; color: var(--green-dark); border: 1px solid var(--green-dark); }
.feature-icon svg { width: 30px; height: 30px; }
.feature-card-local h3, .feature-card-control h3 { font-size: 31px; }
.feature-card-local p, .feature-card-control p { max-width: 43ch; }
.feature-card-local .card-link, .feature-card-control .card-link { margin-top: 18px; }
.control-mark { display: flex; align-items: end; gap: 5px; height: 51px; margin: 48px 0 28px; padding: 0 3px; }
.control-mark span { display: block; width: 7px; background: var(--green); }
.control-mark span:nth-child(1) { height: 17px; }
.control-mark span:nth-child(2) { height: 31px; }
.control-mark span:nth-child(3) { height: 47px; background: var(--red); }
.control-mark span:nth-child(4) { height: 27px; }
.control-mark span:nth-child(5) { height: 38px; }
.pulse-control { display: inline-flex; align-items: center; gap: 11px; min-height: 44px; margin-top: 14px; padding: 0 12px; border: 1px solid var(--line); color: var(--ink-soft); background: transparent; font-size: 11px; cursor: pointer; transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease; }
.pulse-control:hover { color: var(--ink); border-color: var(--ink); background: var(--paper); transform: translateY(-2px); }
.pulse-control:active { transform: translateY(1px) scale(.98); }
.pulse-control[aria-pressed="true"] { color: var(--cream); border-color: var(--red); background: var(--red); }
.pulse-bars { display: inline-flex; align-items: center; gap: 3px; height: 16px; }
.pulse-bars i { display: block; width: 3px; height: 7px; background: currentColor; }
.pulse-bars i:nth-child(2) { height: 12px; }
.pulse-control[aria-pressed="true"] .pulse-bars i { animation: pulse-bar 720ms ease-in-out infinite alternate; }
.pulse-control[aria-pressed="true"] .pulse-bars i:nth-child(2) { animation-delay: 160ms; }
.pulse-control[aria-pressed="true"] .pulse-bars i:nth-child(3) { animation-delay: 320ms; }
@keyframes pulse-bar { from { transform: scaleY(.55); } to { transform: scaleY(1.35); } }

.architecture-section, .principle-section, .architecture-detail { color: var(--cream); background: var(--green-dark); }
.architecture-inner { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(50px, 9vw, 125px); align-items: center; padding-top: clamp(85px, 12vw, 150px); padding-bottom: clamp(90px, 13vw, 170px); }
.section-kicker-light { color: var(--green-pale); }
.architecture-intro h2 { margin-top: 28px; }
.architecture-intro h2 em { color: var(--green-pale); }
.architecture-intro p { max-width: 34ch; margin-top: 27px; color: rgba(248, 244, 233, .72); line-height: 1.85; }
.light-link { color: var(--cream); border-color: var(--cream); }
.light-link:hover { color: var(--green-pale); }
.architecture-map { display: flex; flex-direction: column; }
.architecture-layer { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 18px; min-height: 98px; padding: 17px 20px; border: 1px solid rgba(248, 244, 233, .35); background: rgba(248, 244, 233, .05); }
.layer-index { color: var(--green-pale); font-family: var(--mono); font-size: 11px; }
.architecture-layer strong { display: block; font-family: var(--display); font-size: 26px; font-weight: 700; }
.architecture-layer small { display: block; margin-top: 2px; color: rgba(248, 244, 233, .64); font-size: 12px; }
.layer-tag { align-self: start; color: var(--green-pale); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; }
.architecture-connector { position: relative; height: 33px; margin-left: 41px; border-left: 1px solid rgba(220, 232, 191, .55); }
.architecture-connector span { position: absolute; bottom: -1px; left: -4px; width: 7px; height: 7px; border-right: 1px solid var(--green-pale); border-bottom: 1px solid var(--green-pale); transform: rotate(45deg); }

.closing-section { display: grid; grid-template-columns: 90px 1fr auto; gap: 31px; align-items: center; padding-top: clamp(90px, 12vw, 145px); padding-bottom: clamp(90px, 12vw, 145px); }
.closing-mark { display: grid; place-items: center; width: 78px; height: 78px; color: var(--green); border: 1px solid var(--green); border-radius: 50%; }
.closing-mark img { width: 62px; height: 62px; object-fit: contain; }
.closing-section h2 { margin-top: 13px; font-size: clamp(42px, 5vw, 72px); }
.closing-section p { margin-top: 12px; color: var(--ink-soft); }
.closing-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.site-footer { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 20px; padding-top: 25px; padding-bottom: 30px; border-top: 1px solid var(--line); }
.brand-footer .brand-mark { width: 30px; height: 30px; }
.brand-footer .brand-mark img { width: 100%; height: 100%; }
.brand-footer .brand-copy strong { font-size: 17px; }
.brand-footer .brand-copy small { font-size: 7px; }
.site-footer > p { justify-self: center; color: var(--ink-soft); font-family: var(--display); font-size: 17px; }
.footer-meta { justify-self: end; color: var(--ink-faint); font-size: 9px; }

.about-hero { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(50px, 10vw, 150px); align-items: end; min-height: 600px; padding-top: clamp(80px, 11vw, 150px); padding-bottom: clamp(90px, 12vw, 160px); }
.about-hero h1 { max-width: 10ch; margin-top: 29px; font-size: clamp(58px, 7vw, 100px); }
.about-hero-copy > p { max-width: 48ch; margin-top: 31px; color: var(--ink-soft); font-size: 18px; line-height: 1.9; }
.project-card { position: relative; padding: 28px; border: 1px solid var(--ink); color: var(--cream); background: var(--red-dark); box-shadow: 8px 8px 0 var(--green); transform: rotate(-2deg); }
.project-card-label { color: rgba(248, 244, 233, .62); font-size: 9px; }
.project-card-mark { position: absolute; top: 27px; right: 26px; color: var(--green-pale); }
.project-card-mark img { width: 59px; height: 59px; object-fit: contain; }
.project-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 85px; border-top: 1px solid rgba(248, 244, 233, .28); }
.project-card dl > div { min-height: 83px; padding: 16px 11px 13px 0; border-bottom: 1px solid rgba(248, 244, 233, .28); }
.project-card dl > div:nth-child(even) { padding-left: 14px; border-left: 1px solid rgba(248, 244, 233, .28); }
.project-card dt { color: rgba(248, 244, 233, .58); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; }
.project-card dd { margin-top: 8px; font-size: 14px; font-weight: 600; }
.principle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(50px, 10vw, 150px); padding-top: clamp(85px, 12vw, 150px); padding-bottom: clamp(90px, 13vw, 170px); }
.principle-heading h2 { margin-top: 29px; }
.principle-heading h2 em { color: var(--green-pale); }
.principle-body { max-width: 48ch; align-self: end; }
.principle-lede { color: var(--green-pale); font-family: var(--display); font-size: clamp(25px, 3vw, 37px); line-height: 1.22; }
.principle-body > p:not(.principle-lede) { margin-top: 28px; color: rgba(248, 244, 233, .72); font-size: 16px; line-height: 1.9; }
.principle-signature { display: flex; align-items: center; gap: 11px; margin-top: 41px; color: rgba(248, 244, 233, .56); }
.principle-signature span { width: 38px; height: 1px; background: var(--green-pale); }
.principle-signature small { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; }
.about-features { padding-top: clamp(90px, 13vw, 170px); padding-bottom: clamp(95px, 13vw, 175px); }
.capability-ledger { border-top: 1px solid var(--line); }
.capability-row { display: grid; grid-template-columns: 75px minmax(0, 1fr) minmax(240px, .5fr); gap: 28px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--line); transition: padding 180ms ease, background 180ms ease; }
.capability-row:hover { padding-right: 14px; padding-left: 14px; background: var(--surface); }
.capability-index { padding-top: 5px; color: var(--green); font-family: var(--mono); font-size: 11px; font-weight: 700; }
.capability-row h3 { font-family: var(--display); font-size: 29px; line-height: 1.1; }
.capability-row p { max-width: 53ch; margin-top: 10px; color: var(--ink-soft); font-size: 15px; line-height: 1.75; }
.capability-row ul { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; padding-top: 5px; }
.capability-row li { height: max-content; padding: 5px 9px; border: 1px solid var(--line); color: var(--ink-soft); font-family: var(--mono); font-size: 9px; letter-spacing: .04em; }
.architecture-detail { padding-top: clamp(90px, 12vw, 155px); padding-bottom: clamp(95px, 13vw, 170px); }
.architecture-title { display: grid; grid-template-columns: 1fr .75fr; gap: 60px; align-items: end; }
.architecture-title h2 { margin-top: 29px; }
.architecture-title h2 em { color: var(--green-pale); }
.architecture-title > p { max-width: 39ch; color: rgba(248, 244, 233, .72); line-height: 1.85; }
.system-diagram { display: grid; grid-template-columns: 1fr 42px 1fr 42px 1fr; gap: 16px; align-items: center; margin-top: 68px; }
.system-column { min-height: 235px; padding: 24px 21px; border: 1px solid rgba(248, 244, 233, .35); background: rgba(248, 244, 233, .05); }
.system-column-state { color: var(--ink); border-color: var(--green-pale); background: var(--green-pale); }
.system-label { color: var(--green-pale); font-size: 9px; font-weight: 700; }
.system-column-state .system-label { color: var(--green-dark); }
.system-column h3 { margin-top: 42px; font-family: var(--display); font-size: 27px; line-height: 1.1; }
.system-column p { margin-top: 13px; color: rgba(248, 244, 233, .68); font-size: 13px; line-height: 1.65; }
.system-column-state p { color: rgba(24, 36, 31, .68); }
.system-column > span { display: block; margin-top: 28px; color: var(--green-pale); font-family: var(--mono); font-size: 9px; line-height: 1.55; }
.system-column-state > span { color: var(--green-dark); }
.system-arrow { color: var(--green-pale); }
.system-arrow svg { width: 100%; }
.architecture-branches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 48px; background: rgba(248, 244, 233, .3); }
.architecture-branches > div { min-height: 145px; padding: 20px; background: var(--green-dark); }
.architecture-branches span { color: var(--green-pale); font-size: 9px; }
.architecture-branches strong { display: block; margin-top: 19px; font-family: var(--mono); font-size: 12px; font-weight: 500; line-height: 1.5; }
.architecture-branches p { margin-top: 9px; color: rgba(248, 244, 233, .62); font-size: 12px; line-height: 1.6; }
.stack-section { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(50px, 10vw, 140px); padding-top: clamp(90px, 13vw, 170px); padding-bottom: clamp(95px, 13vw, 175px); }
.stack-copy h2 { margin-top: 28px; }
.stack-copy p { max-width: 33ch; margin-top: 26px; color: var(--ink-soft); line-height: 1.85; }
.stack-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.stack-list > div { display: grid; grid-template-columns: 31px 1fr; column-gap: 11px; min-height: 104px; padding: 17px 12px 14px 0; border-bottom: 1px solid var(--line); }
.stack-list > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.stack-list span { grid-row: span 2; color: var(--green); font-family: var(--mono); font-size: 10px; }
.stack-list strong { font-size: 15px; font-weight: 600; }
.stack-list small { color: var(--ink-soft); font-size: 12px; line-height: 1.5; }

.reveal { opacity: 1; transform: none; }
.reveal-delay-1, .reveal-delay-2 { transition-delay: 0ms; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: auto auto; justify-content: space-between; }
  .primary-nav { position: absolute; top: calc(100% + 1px); right: var(--pad); left: var(--pad); display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px; border: 1px solid var(--ink); background: var(--paper); box-shadow: 5px 5px 0 var(--ink); }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { min-height: 48px; padding: 0 12px; }
  .primary-nav a.mobile-nav-only { display: inline-flex !important; }
  .primary-nav a::after { right: 12px; bottom: 8px; left: 12px; }
  .header-link, .header-actions { display: none; }
  .menu-toggle { display: block; }
  .home-hero { grid-template-columns: 1fr; min-height: 0; gap: 58px; }
  .hero-copy { max-width: 680px; }
  .hero-art { width: min(100%, 650px); justify-self: center; }
  .manifesto-grid, .section-heading, .architecture-title { grid-template-columns: 1fr; gap: 28px; }
  .section-heading > p { justify-self: start; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-card-large { grid-column: span 2; grid-row: auto; min-height: 550px; }
  .architecture-inner { grid-template-columns: 1fr; gap: 56px; }
  .architecture-intro p { max-width: 50ch; }
  .closing-section { grid-template-columns: 70px 1fr; }
  .closing-actions { grid-column: 2; justify-content: flex-start; }
  .about-hero { grid-template-columns: 1fr .8fr; gap: 45px; }
  .principle-grid, .stack-section { grid-template-columns: 1fr; gap: 55px; }
  .principle-body { justify-self: end; }
  .system-diagram { grid-template-columns: 1fr; gap: 0; }
  .system-arrow { display: grid; place-items: center; height: 42px; transform: rotate(90deg); }
  .system-arrow svg { width: 42px; }
}

@media (max-width: 680px) {
  :root { --pad: 20px; }
  .site-header { min-height: 72px; }
  .brand-copy strong { font-size: 19px; }
  .home-hero { padding-top: 58px; }
  .hero-copy h1 { max-width: 8ch; font-size: clamp(53px, 15vw, 78px); }
  .hero-lede { font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 13px; }
  .hero-proof { margin-top: 28px; font-size: 9px; }
  .hero-art { padding-left: 7px; }
  .player-frame { width: calc(100% - 9px); box-shadow: 6px 6px 0 var(--ink); transform: rotate(.7deg); }
  .hero-side-note { right: -1px; font-size: 16px; }
  .manifesto h2, .section-heading h2, .architecture-intro h2, .about-hero h1, .principle-heading h2, .architecture-title h2, .stack-copy h2, .closing-section h2 { font-size: clamp(39px, 11vw, 57px); }
  .manifesto-copy p { font-size: 16px; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: 26px 15px; margin-top: 57px; }
  .path-console { display: flex; flex-direction: column; align-items: stretch; gap: 16px; margin-top: 45px; padding: 18px; }
  .path-console-top { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; }
  .path-console-top strong { font-size: 20px; }
  .path-console > p { min-height: 0; }
  .path-meter { width: 100%; }
  .feature-grid { display: flex; flex-direction: column; gap: 15px; }
  .feature-card-large { display: block; min-height: 580px; padding: 23px; }
  .feature-card-large .feature-content { position: absolute; right: 23px; bottom: 24px; left: 23px; padding-right: 0; }
  .preview-crop { top: 0; right: 0; bottom: auto; width: 100%; height: 58%; border-right: 0; border-bottom: 1px solid rgba(248, 244, 233, .4); border-left: 0; }
  .feature-card { min-height: 330px; padding: 23px; }
  .feature-number { top: 20px; left: 23px; }
  .feature-icon, .control-mark { margin-top: 45px; }
  .architecture-layer { grid-template-columns: 31px 1fr; gap: 12px; }
  .layer-tag { grid-column: 2; margin-top: -7px; }
  .closing-section { display: block; padding-top: 85px; padding-bottom: 90px; }
  .closing-mark { margin-bottom: 27px; }
  .closing-actions { margin-top: 27px; }
  .site-footer { grid-template-columns: 1fr; gap: 17px; }
  .site-footer > p, .footer-meta { justify-self: start; }
  .about-hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding-top: 65px; gap: 55px; }
  .about-hero h1 { max-width: 8ch; font-size: clamp(55px, 14vw, 77px); }
  .about-hero-copy > p { font-size: 16px; }
  .project-card { width: calc(100% - 8px); align-self: center; box-shadow: 5px 5px 0 var(--green); }
  .principle-grid { gap: 45px; }
  .principle-body { justify-self: start; }
  .capability-row { grid-template-columns: 37px 1fr; gap: 13px; padding: 23px 0; }
  .capability-row:hover { padding-right: 7px; padding-left: 7px; }
  .capability-row ul { grid-column: 2; justify-content: flex-start; padding-top: 0; }
  .capability-row h3 { font-size: 26px; }
  .architecture-branches { grid-template-columns: 1fr; }
  .architecture-branches > div { min-height: 0; }
  .stack-list { grid-template-columns: 1fr; }
  .stack-list > div, .stack-list > div:nth-child(even) { padding-left: 0; border-left: 0; }
}

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

@media print {
  .site-header { position: static; }
  .menu-toggle, .header-link, .header-actions, .scroll-progress, .closing-actions { display: none; }
  .home-hero, .about-hero { min-height: auto; }
  .architecture-section, .principle-section, .architecture-detail { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
