:root {
  color-scheme: dark;
  --ink: #111416; --slate: #1c2227; --gold: #c5a46d;
  --ivory: #f1ede3; --bronze: #8c7351; --muted: #c4c0b6;
  --line: #51483a; --serif: Georgia, "Times New Roman", serif;
  font: 100%/1.65 system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ivory); background: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); text-underline-offset: .25em; }
a:hover { color: var(--ivory); }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0 0 .55em; }
h1 { font-size: clamp(2.65rem, 5.7vw, 5.6rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.85rem, 3.3vw, 3.05rem); letter-spacing: -.025em; }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }
figure { margin: 0; }
figcaption { color: var(--muted); font-size: .875rem; margin-top: .9rem; }
.shell { width: min(calc(100% - 3rem), 76rem); margin-inline: auto; }
.skip { position: absolute; transform: translateY(-150%); background: var(--ivory); color: var(--ink); padding: .75rem; z-index: 2; }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); background: #14181b; }
.top, .foot { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ivory); text-decoration: none; font: 1.65rem var(--serif); }
.brand img { width: 34px; height: 34px; }
nav { display: flex; flex-wrap: wrap; gap: .2rem 1rem; align-items: center; }
nav a { text-decoration: none; color: var(--muted); font-size: .9rem; display: inline-flex; align-items: center; min-height: 44px; }
nav a[aria-current] { color: var(--ivory); text-decoration: underline; }
.nav-cta { color: var(--gold); border: 1px solid var(--bronze); padding-inline: .9rem; }
.hero { background: radial-gradient(ellipse at 80% 45%, #2d2921, #17191a 47%, #111416 74%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 4vw, 4rem); align-items: center; padding-block: clamp(3rem, 7vw, 6.5rem); }
.eyebrow { color: var(--gold); font-size: .875rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 650; margin-bottom: 1.1rem; }
.hero h1 em { color: var(--gold); font-weight: inherit; }
.lead { color: var(--muted); font-size: clamp(1.06rem, 1.5vw, 1.25rem); max-width: 43rem; }
.hero-art img, .disk-stage img { border-radius: 50%; width: 100%; box-shadow: 0 1rem 3rem #0008; }
.hero-art { width: min(100%, 34rem); justify-self: center; text-align: center; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; border: 1px solid var(--gold); background: var(--gold); color: var(--ink); padding: .58rem 1rem; font-weight: 650; text-decoration: none; }
.button:hover { background: var(--ivory); color: var(--ink); }
.button.secondary { color: var(--gold); background: transparent; }
.button.secondary:hover { color: var(--ivory); border-color: var(--ivory); }
.band { border-top: 1px solid var(--line); padding-block: clamp(2.6rem, 6vw, 5rem); }
.band:nth-of-type(even), .site-footer { background: var(--slate); }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1rem, 5vw, 6rem); }
.split h3 { margin-top: 1.5rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; margin-block: 1.5rem; }
.cards article, .discipline { border: 1px solid var(--line); padding: clamp(1rem, 2.5vw, 1.65rem); background: #171b1e; }
.cards article p { color: var(--muted); }
.link-list { padding-left: 1.25rem; }
.link-list li + li { margin-top: .4rem; }
.site-footer { border-top: 1px solid var(--line); padding-block: 1rem; }
.site-footer p { margin-top: .45rem; color: var(--muted); }
.page { padding-block: clamp(2.5rem, 6vw, 5.5rem); min-height: 65vh; }
.page-heading { margin-bottom: 2.25rem; }
.page-heading h1 { font-size: clamp(2.55rem, 5.7vw, 4.85rem); }
.reading { max-width: 49rem; margin-block: 2rem; }
.reading h2 { margin-top: 2rem; }
.reading li { margin-bottom: .5rem; }
blockquote, .notice { margin: 1.25rem 0; border-left: 3px solid var(--gold); padding: .7rem 1rem; background: var(--slate); }
blockquote { font: 1.25rem/1.5 var(--serif); }
.prototype { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1rem, 4.5vw, 4rem); margin-top: 2rem; align-items: start; }
.disk-stage { position: relative; }
.ring { position: absolute; pointer-events: none; border-radius: 50%; inset: 3%; }
.disk-stage[data-active="0"] .ring { border: 3px solid #ffd38a; box-shadow: inset 0 0 0 1px #111416; }
.disk-stage[data-active="0"] .ring::after, .disk-stage[data-active="1"] .ring::after { content: ""; position: absolute; border: inherit; border-radius: inherit; inset: 15%; }
.disk-stage[data-active="1"] .ring { inset: 17%; border: 3px solid #ffd38a; }
.disk-stage[data-active="2"] .ring { inset: 34%; border: 3px solid #ffd38a; }
.layer-controls { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .95rem; }
.layer-controls button, .video button { cursor: pointer; min-height: 44px; background: transparent; border: 1px solid var(--bronze); padding: .35rem .65rem; color: var(--ivory); }
.layer-controls button[aria-pressed="true"] { background: var(--gold); color: var(--ink); }
details { margin-bottom: .65rem; }
summary { cursor: pointer; padding: .55rem .12rem; min-height: 44px; color: var(--gold); }
.layer { border-top: 1px solid var(--line); }
.status { color: var(--gold); font-weight: 650; font-size: .875rem; }
.muted { color: var(--muted); }
.search { max-width: 43rem; margin-bottom: 1.5rem; }
.search label { display: block; margin-bottom: .45rem; }
.search input { width: 100%; background: var(--slate); border: 1px solid var(--bronze); padding: .62rem .75rem; color: var(--ivory); }
#search-status { margin-top: .5rem; }
.library-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.discipline h2 { font-size: 1.55rem; overflow-wrap: anywhere; }
.discipline:has(.entry) { grid-column: 1 / -1; }
.entry { max-width: 56rem; padding-block: 1rem; border-top: 1px solid var(--line); }
.evidence { margin-top: 1rem; }
.roadmap { max-width: 52rem; margin-block: 2rem; padding-left: 2.25rem; }
.roadmap li { border-top: 1px solid var(--line); padding: .85rem .5rem; }
.roadmap li::marker { color: var(--gold); font-weight: 700; }
.video iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; }
@media (max-width: 900px) {
  .top { align-items: flex-start; flex-direction: column; gap: .5rem; }
  .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 660px) {
  .shell { width: calc(100% - 2rem); }
  .hero-grid, .split, .prototype { grid-template-columns: 1fr; }
  .hero-art, .disk-view { max-width: 27rem; margin-inline: auto; }
  .hero-art { margin-top: 1.3rem; }
  .foot { align-items: flex-start; flex-direction: column; gap: .5rem; }
}
@media (max-width: 440px) {
  .library-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
