:root {
  color-scheme: dark;
  --ink: #0a0c09;
  --panel: #12150f;
  --paper: #f1f2e9;
  --muted: #a9ada0;
  --line: #2b3025;
  --lime: #d5ff52;
  --red: #ff9a89;
  --mono: 'Cascadia Code', 'SFMono-Regular', Consolas, monospace;
  --head: 'KAV Display', Arial, sans-serif;
  --body: 'KAV Display', 'Segoe UI', Arial, sans-serif;
}
@font-face { font-family: 'KAV Display'; src: url('assets/geist.woff2') format('woff2'); font-style: normal; font-weight: 100 900; font-display: swap; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 400 1rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
::selection { background: var(--lime); color: var(--ink); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; }
h1, h2 { letter-spacing: -.085em; line-height: .93; }
em { color: var(--lime); font-style: normal; }
.shell { width: min(100% - 112px, 1280px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 20; top: 10px; left: 10px; padding: 10px 16px; color: var(--ink); background: var(--lime); translate: 0 -150%; }
.skip-link:focus { translate: none; }
.site-header { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid #272c21; background: #0a0c09ee; backdrop-filter: blur(18px); }
.header-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; }
.brand-mark { position: relative; inline-size: 24px; block-size: 27px; background: var(--lime); clip-path: polygon(0 0, 23% 0, 23% 40%, 68% 0, 100% 0, 49% 49%, 100% 100%, 68% 100%, 23% 60%, 23% 100%, 0 100%); }
.brand strong { font: 700 1.7rem/.9 var(--head); letter-spacing: -.09em; }
.brand strong span { color: var(--lime); }
.brand-sub { color: var(--muted); font: 500 .68rem/1 var(--mono); letter-spacing: .08em; margin-top: 3px; }
.header-inner nav, .footer-inner nav { display: flex; gap: clamp(18px, 3vw, 42px); }
.header-inner nav a, .footer-inner nav a { color: #c4c7bb; font-size: .9rem; white-space: nowrap; transition: color .2s; }
.header-inner nav a:hover, .footer-inner nav a:hover { color: var(--lime); }
.lab-link { border: 1px solid #3b452c; padding: 8px 14px; font: 500 .83rem/1.4 var(--body); color: var(--lime); white-space: nowrap; transition: background .2s; }
.lab-link:hover { background: #d5ff5217; }
.status-dot { display: inline-block; inline-size: 7px; block-size: 7px; border-radius: 100%; background: var(--lime); margin-right: 6px; vertical-align: 1px; box-shadow: 0 0 13px #c6ff5488; }
.menu-toggle { display: none; }
.hero { position: relative; isolation: isolate; background: #0d110b; overflow: hidden; }
.hero-image, .hero-overlay { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: center 59%; animation: settle 1.3s ease-out both; }
.hero-overlay { background: linear-gradient(90deg, #090b08ee 2%, #090b08c9 28%, #090b0855 49%, transparent 72%), linear-gradient(0deg, #090b08b3, transparent 33%); }
.hero-inner { position: relative; display: grid; align-items: center; min-height: min(690px, max(585px, calc(100svh - 130px))); padding-block: 70px 86px; }
.hero-content { animation: arrive .65s .12s ease-out both; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #d9e2c8; font: 600 .75rem/1.4 var(--mono); letter-spacing: .12em; }
.eyebrow-line { width: 22px; height: 1px; background: var(--lime); display: inline-block; flex-shrink: 0; }
.slash { color: var(--lime); }
.hero h1 { font-size: clamp(4.6rem, 8.15vw, 8.4rem); margin-top: 26px; max-width: 700px; }
.hero-description { margin-top: 24px; max-width: 410px; font-size: clamp(1rem, 1.28vw, 1.19rem); color: #c1c6b7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 27px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 17px; border: 1px solid transparent; font-weight: 650; font-size: .88rem; line-height: 1.35; transition: background .22s, border-color .22s, color .22s; }
.button-primary { background: var(--lime); color: #141a06; }
.button-primary:hover { background: #e5ff99; }
.button-ghost { background: #12150d92; border-color: #5a6450; }
.button-ghost:hover { border-color: var(--lime); color: var(--lime); }
.hero-caption { position: absolute; right: 0; bottom: 27px; display: flex; align-items: center; gap: 13px; color: #d6ddc8; font: .67rem/1.25 var(--mono); letter-spacing: .09em; }
.hero-caption i { display: inline-block; width: 9px; height: 1px; vertical-align: 3px; background: var(--lime); opacity: .8; }
.frame-corner { width: 16px; height: 16px; border: solid var(--lime); border-width: 0 1px 1px 0; opacity: .85; }
@keyframes settle { from { scale: 1.035; opacity: .75; } to { scale: 1; opacity: 1; } }
@keyframes arrive { from { transform: translateY(12px); opacity: .2; } to { transform: translateY(0); opacity: 1; } }
.program-strip { background: #14190e; border-block: 1px solid #303924; }
.strip-inner { min-height: 63px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.strip-inner > div { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; }
.strip-inner > div > span:not(.status-dot) { color: #b4bea4; font: .72rem/1.25 var(--mono); letter-spacing: .075em; }
.strip-inner strong { font: 600 1.08rem/1.25 var(--head); }
.strip-inner a { color: var(--lime); font-size: .84rem; text-decoration: underline; text-underline-offset: .3em; white-space: nowrap; }
.section { padding-block: clamp(70px, 8vw, 116px); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, .65fr); align-items: end; gap: 30px; margin-bottom: 36px; }
.section-heading h2, .thesis h2 { margin-top: 15px; font-size: clamp(3rem, 6.1vw, 6.15rem); }
.section-heading > p, .prototype-intro > p:not(.eyebrow), .thesis-copy { color: var(--muted); }
.section-heading > p { max-width: 385px; padding-bottom: 2px; }
.research-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.research-card { border: 1px solid var(--line); background: #13160f; transition: border-color .25s; }
.research-card:hover, .research-card:focus-within { border-color: #a3bd58; }
.research-card > a { display: flex; height: 100%; flex-direction: column; overflow: hidden; }
.research-card img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; object-position: center; transition: filter .3s; filter: saturate(.8); }
.research-card:hover img { filter: saturate(1.2); }
.research-card-body { padding: 22px; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.tag { color: var(--lime); font: 600 .72rem/1.35 var(--mono); letter-spacing: .085em; }
.research-card h3 { font-size: clamp(1.5rem, 2.3vw, 2.15rem); line-height: 1.04; letter-spacing: -.055em; margin-top: 9px; }
.research-card p { margin: 11px 0 20px; color: var(--muted); font-size: .94rem; }
.research-card .text-link { margin-top: auto; }
.text-link { width: fit-content; color: var(--lime); font-size: .86rem; font-weight: 600; text-decoration: underline; text-underline-offset: .3em; }
.text-link:hover { color: #edffc0; }
.prototype-section { background: radial-gradient(ellipse at 20% 56%, #1c2911 0%, transparent 58%), #0d100a; border-block: 1px solid var(--line); }
.prototype-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(32px, 6vw, 90px); }
.prototype-intro h2 { font-size: clamp(4.25rem, 7.4vw, 7.7rem); margin-block: 17px; }
.prototype-intro > p:not(.eyebrow) { max-width: 370px; margin-bottom: 20px; }
.console { min-width: 0; background: #12160e; border: 1px solid #414c33; box-shadow: 0 20px 60px #0005; }
.console-header { background: #1b2214; display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 15px 18px; border-bottom: 1px solid #35422b; font-size: .9rem; }
.console-header > div { display: flex; align-items: center; gap: 8px; }
.console-symbol { color: var(--lime); font-size: 1rem; }
.console-label { color: #c5cdba; font: .68rem/1.25 var(--mono); letter-spacing: .07em; text-align: right; }
.console-body { padding: 18px; }
.scenario { min-width: 0; border: 0; margin: 0; padding: 0; }
.scenario legend { padding: 0; color: #c4cabc; font-size: .82rem; margin-bottom: 8px; }
.scenario-options { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.scenario-options label { cursor: pointer; display: block; }
.scenario input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.scenario label span { display: grid; place-items: center; min-height: 42px; text-align: center; padding: 6px 8px; border: 1px solid #384330; font-size: .82rem; transition: background .2s, border-color .2s; }
.scenario input:checked + span { border-color: #9ab74d; background: #273719; color: #e9ffb8; }
.scenario input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 3px; }
.checks { margin: 17px 0; }
.checks > div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #2b3426; }
.checks dt { font-size: .83rem; }
.check-value { margin: 0; font: .75rem/1.65 var(--mono); text-align: right; }
.check-value.muted { color: var(--muted); }
.check-value.good { color: var(--lime); }
.check-value.bad { color: var(--red); }
.result { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid #45523b; color: #dbe1d2; background: #1e271b; }
.result.good { border-color: #607b39; color: #e7ffb3; background: #222d17; }
.result.bad { border-color: #805045; color: #ffb0a1; background: #30211e; }
.result-indicator { margin-top: 7px; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: currentColor; }
.result strong, .result small { display: block; }
.result strong { font-size: .94rem; }
.result small { margin-top: 1px; color: #d1d7ca; font-size: .76rem; line-height: 1.4; }
.console-footer { display: flex; justify-content: space-between; align-items: baseline; gap: 13px; margin-top: 12px; }
.console-footer p { max-width: 280px; color: var(--muted); font-size: .75rem; }
.download { border: 0; background: transparent; padding: 0; cursor: pointer; flex-shrink: 0; }
.download:disabled { color: var(--muted); cursor: default; }
.notes-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(20px, 4vw, 53px); }
.notes-feature { position: relative; display: grid; align-items: end; isolation: isolate; overflow: hidden; min-height: 310px; border: 1px solid var(--line); }
.notes-feature::after, .notes-feature img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.notes-feature::after { content: ''; background: linear-gradient(0deg, #080a06f2 4%, #080a0670 40%, transparent 71%); }
.notes-feature img { object-fit: cover; transition: scale .4s; }
.notes-feature:hover img { scale: 1.035; }
.notes-feature-text { display: grid; justify-items: start; gap: 8px; padding: 24px; }
.notes-feature-text strong { font: 600 clamp(1.6rem, 3.15vw, 2.8rem)/1.02 var(--head); letter-spacing: -.06em; max-width: 405px; }
.note-list { display: grid; align-content: stretch; }
.note-list a { display: grid; gap: 2px; align-content: center; padding: 9px 0; border-block-end: 1px solid var(--line); }
.note-list a:first-child { border-block-start: 1px solid var(--line); }
.note-list strong { font: 600 clamp(1.15rem, 2.15vw, 1.6rem)/1.14 var(--head); letter-spacing: -.04em; transition: color .2s; }
.note-list a:hover strong { color: var(--lime); }
.read-time { color: var(--muted); font-size: .77rem; }
.archive-section { background: #10130e; border-block: 1px solid var(--line); }
.gallery-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.gallery-item { min-width: 0; display: grid; grid-template-rows: 1fr auto; overflow: hidden; border: 1px solid var(--line); background: #151912; transition: border-color .23s; }
.gallery-item:hover { border-color: var(--lime); }
.gallery-item img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; filter: saturate(.83); transition: filter .2s; }
.gallery-item:hover img { filter: saturate(1.2); }
.gallery-item span { display: block; padding: 7px 9px; font-size: .77rem; line-height: 1.4; color: #d7dbd0; }
.image-viewer { width: min(91vw, 960px); max-height: 94dvh; max-width: unset; padding: 0; border: 1px solid #677953; background: #10130d; color: var(--paper); }
.image-viewer::backdrop { background: #040603e6; backdrop-filter: blur(5px); }
.image-viewer > img { margin-inline: auto; width: 100%; max-height: 73dvh; object-fit: contain; background: #080a06; }
.viewer-toolbar, .viewer-controls { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 13px; }
.image-viewer button, .menu-toggle { border: 1px solid #52634a; background: #171d12; min-height: 37px; padding: 3px 10px; cursor: pointer; font-size: .85rem; }
.image-viewer button:hover, .menu-toggle:hover { border-color: var(--lime); }
.viewer-controls span { color: var(--muted); font: .75rem var(--mono); }
.thesis { display: grid; grid-template-columns: 1fr .8fr; gap: clamp(25px, 6vw, 90px); align-items: center; }
.thesis-copy p + p { margin-top: 13px; }
.thesis-copy .button { margin-top: 17px; color: var(--paper); }
.site-footer { border-top: 1px solid var(--line); background: #090b08; }
.footer-inner { min-height: 92px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.footer-inner > span { color: var(--muted); font-size: .78rem; }
.footer-inner nav { gap: 18px; }
.footer-inner nav a { font-size: .8rem; }
.article { padding-top: 40px; padding-bottom: 70px; }
.article-intro, .article-copy { width: min(100%, 720px); margin-inline: auto; }
.article-intro .back-link { display: inline-block; margin-bottom: 40px; }
.article h1 { margin: 15px 0 19px; font-size: clamp(3.2rem, 7.2vw, 6.25rem); }
.article-lede { color: #c8cec0; font-size: clamp(1.12rem, 2.4vw, 1.37rem); }
.article-image { width: min(100%, 1000px); margin: 35px auto; }
.article-image img { width: 100%; height: auto; max-height: 470px; object-fit: cover; border: 1px solid var(--line); }
.article-image figcaption { margin-top: 8px; color: var(--muted); font: .72rem/1.4 var(--mono); }
.article-copy p, .article-copy li { color: #c4cbbd; }
.article-copy p + p { margin-top: 14px; }
.article-copy h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); letter-spacing: -.06em; line-height: 1.08; margin: 32px 0 12px; }
.article-copy li + li { margin-top: 7px; }
.article-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 9px; }

@media (max-width: 1050px) {
  .shell { width: calc(100% - 72px); }
  .hero-image { object-position: 60% 55%; }
  .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 790px) {
  .shell { width: calc(100% - 40px); }
  .header-inner nav { gap: 16px; }
  .header-inner nav a { font-size: .84rem; }
  .brand-sub { display: none; }
  .section-heading, .prototype-layout, .thesis { grid-template-columns: 1fr; }
  .section-heading { gap: 14px; margin-bottom: 23px; }
  .section-heading > p { max-width: 500px; }
  .research-grid { gap: 9px; }
  .research-card-body { padding: 13px; }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .console { width: min(100%, 620px); }
  .notes-layout { grid-template-columns: 1fr; }
  .note-list a { padding: 13px 0; }
  .footer-inner { flex-wrap: wrap; padding-block: 20px; }
}
@media (max-width: 610px) {
  html { scroll-padding-top: 74px; }
  .header-inner { min-height: 59px; }
  .header-inner nav { gap: 9px 15px; flex-wrap: wrap; }
  .header-inner nav a { font-size: .79rem; }
  .lab-link { display: none; }
  .js .menu-toggle { display: inline-block; }
  .js .header-inner > nav { display: none; position: absolute; top: 100%; inset-inline: 0; padding: 15px 20px; background: #11160e; border-bottom: 1px solid var(--line); }
  .js .header-inner > nav.open { display: grid; }
  .js .header-inner > nav a { padding-block: 4px; font-size: .93rem; }
  .hero-inner { align-items: end; min-height: 690px; min-height: min(730px, max(625px, calc(100svh - 60px))); padding-block: 196px 62px; }
  .hero-image { height: 74%; object-position: 71% 20%; }
  .hero-overlay { background: linear-gradient(0deg, #090b08 23%, #090b08ab 49%, #090b0844 76%, transparent 100%), linear-gradient(90deg, #090b0844, transparent 75%); }
  .hero h1 { font-size: clamp(3.45rem, 11.7vw, 5.2rem); margin-top: 14px; }
  .hero-description { margin-top: 15px; }
  .hero-actions { margin-top: 18px; }
  .hero-caption { bottom: 11px; font-size: .59rem; }
  .strip-inner { min-height: 58px; }
  .strip-inner > div { gap: 4px 7px; }
  .strip-inner > div > span:not(.status-dot) { font-size: .64rem; }
  .strip-inner strong { font-size: .98rem; }
  .strip-inner a { font-size: .73rem; }
  .research-grid { grid-template-columns: 1fr; gap: 12px; }
  .research-card-body { padding: 17px; }
  .research-card h3 { font-size: 1.85rem; }
  .prototype-intro h2 { font-size: clamp(3.35rem, 13vw, 5.2rem); }
  .console-header, .console-body { padding: 12px; }
  .console-footer { flex-wrap: wrap; gap: 6px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .notes-feature { min-height: 245px; }
  .footer-inner nav { width: 100%; }
}
@media (max-width: 355px) {
  .shell { width: calc(100% - 28px); }
  .brand-sub { display: none; }
  .button { padding-inline: 10px; }
  .hero h1 { font-size: clamp(2.95rem, 12vw, 4rem); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Week-1 additions: breadcrumbs, article byline, pilot form */
.breadcrumbs { margin-bottom: 40px; color: var(--muted); font: 500 .78rem/1.4 var(--mono); letter-spacing: .04em; }
.breadcrumbs a { color: #c4c7bb; }
.breadcrumbs a:hover { color: var(--lime); }
.article-meta { margin-top: 14px; color: var(--muted); font: 500 .76rem/1.4 var(--mono); letter-spacing: .04em; }
.article-intro .article-actions { margin-top: 26px; }
.article-copy ul { padding-left: 1.2em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pilot-form { margin-top: 22px; padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line); background: #12150f; display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pilot-form label { display: grid; gap: 6px; color: #d9e2c8; font: 600 .74rem/1.4 var(--mono); letter-spacing: .06em; }
.pilot-form input, .pilot-form select, .pilot-form textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #3a4232; background: #0b0d09; color: var(--paper); font: 400 1rem/1.4 var(--body); letter-spacing: 0; }
.pilot-form textarea { resize: vertical; min-height: 120px; }
.pilot-form input:focus-visible, .pilot-form select:focus-visible, .pilot-form textarea:focus-visible { outline: 2px solid var(--lime); outline-offset: 1px; border-color: var(--lime); }
.pilot-form .button { justify-self: start; cursor: pointer; }
.form-note { color: var(--muted); font-size: .82rem; }
@media (max-width: 610px) { .form-grid { grid-template-columns: 1fr; } }
