:root {
  --black: #070709;
  --deck: #101014;
  --rail: #19191d;
  --oxblood: #7c142a;
  --brass: #dda948;
  --pale: #f5e9ce;
  --smoke: #bdb5a5;
  --cyan: #4ed8ea;
  --line: rgba(221, 169, 72, .38);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); }
body { margin: 0; color: var(--pale); background: var(--black); font-family: var(--sans); }
img { display: block; width: 100%; }
a { color: var(--cyan); text-underline-offset: .2em; }
code { color: var(--cyan); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.skip { position: fixed; left: 1rem; top: -8rem; z-index: 1000; padding: .8rem 1rem; background: var(--cyan); color: var(--black); }
.skip:focus { top: 1rem; }
.site-shell { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
.cue-spine { position: sticky; top: 0; height: 100vh; padding: 1.2rem .7rem; background: var(--rail); border-right: 2px solid rgba(221,169,72,.65); display: flex; flex-direction: column; align-items: center; z-index: 20; }
.brand { color: var(--pale); text-decoration: none; font-size: .78rem; font-weight: 900; letter-spacing: .16em; text-align: center; line-height: 1.12; }
.brand img { width: 48px; height: 48px; margin: 0 auto .55rem; border-radius: 50%; }
.cue-spine nav { width: 100%; margin-top: 1.4rem; display: grid; gap: .3rem; }
.spine-stop { display: grid; justify-items: center; gap: .35rem; padding: .7rem .25rem; color: var(--smoke); text-decoration: none; border-radius: 4px; text-transform: uppercase; font-weight: 800; font-size: .58rem; letter-spacing: .1em; }
.spine-stop b { width: 38px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid #777066; border-radius: 50%; font-size: .7rem; }
.spine-stop:hover, .spine-stop:focus-visible, .spine-stop.is-current { background: var(--oxblood); color: var(--pale); }
.spine-stop.is-current b { border-color: var(--brass); color: var(--brass); }
.ready { margin-top: auto; display: grid; justify-items: center; gap: .5rem; color: var(--smoke); text-transform: uppercase; letter-spacing: .16em; font-size: .55rem; }
.ready i { width: 13px; aspect-ratio: 1; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 22px rgba(78,216,234,.45); animation: cueBlink 3s ease-in-out infinite; }
main { min-width: 0; }
.hero { min-height: 100vh; display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: clamp(2rem, 6vw, 7rem); padding: clamp(3rem, 7vw, 7.5rem); overflow: hidden; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 1rem; color: var(--brass); text-transform: uppercase; letter-spacing: .14em; font-weight: 850; font-size: .78rem; }
.eyebrow.cyan { color: var(--cyan); }
h1, h2 { margin: 0; font-family: var(--serif); letter-spacing: -.035em; }
h1 { font-size: clamp(3.3rem, 7.7vw, 8.8rem); line-height: .88; }
h2 { font-size: clamp(2.4rem, 5vw, 5.8rem); line-height: .98; }
.lede { color: var(--smoke); font-size: clamp(1.1rem, 1.6vw, 1.5rem); line-height: 1.55; max-width: 44rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: .8rem 1.25rem; border: 1px solid var(--brass); border-radius: 2px; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font-weight: 850; font-size: .78rem; }
.button.brass { color: var(--black); background: var(--brass); }
.button.wire { color: var(--pale); background: transparent; }
.button:hover { transform: translateY(-2px); }
.hero-stage { margin: 0; position: relative; transform: rotate(1.4deg); border: 7px solid #1d1612; box-shadow: 0 35px 90px rgba(0,0,0,.55); }
.hero-stage::before, .hero-stage::after { content: ""; position: absolute; top: -4%; bottom: -4%; width: 14%; background: linear-gradient(90deg, #24050d, var(--oxblood), #310713); z-index: 2; transition: transform .8s ease; }
.hero-stage::before { left: -5%; transform-origin: left; }
.hero-stage::after { right: -5%; transform-origin: right; }
.hero-stage:hover::before { transform: translateX(-55%); }
.hero-stage:hover::after { transform: translateX(55%); }
.hero-stage figcaption { position: absolute; left: 1rem; bottom: 1rem; z-index: 3; padding: .6rem .8rem; color: var(--black); background: var(--brass); text-transform: uppercase; letter-spacing: .12em; font-size: .65rem; font-weight: 900; }
.context-block, .paper-tech, .book-chapter, .boundary-chapter { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 7vw, 7rem); padding: clamp(4rem, 9vw, 10rem); }
.context-block { background: #0d0d10; }
.context-block figure, .paper-tech figure, .book-chapter figure, .boundary-chapter figure { margin: 0; border: 1px solid var(--line); box-shadow: 0 25px 70px rgba(0,0,0,.35); }
.context-block p, .paper-tech p, .book-chapter p, .boundary-chapter p, .chapter-heading p, .workbench p { color: var(--smoke); font-size: clamp(1rem, 1.3vw, 1.28rem); line-height: 1.7; }
.drawer-chapter { padding: clamp(4rem, 9vw, 10rem); background: linear-gradient(180deg, #070709, #100d0e); }
.chapter-heading { max-width: 62rem; margin-bottom: 3rem; }
.drawer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.drawer { position: relative; margin: 0; border: 1px solid var(--line); background: var(--deck); overflow: hidden; }
.drawer img { transition: transform .7s ease, filter .7s ease; }
.drawer:hover img { transform: scale(1.035); filter: brightness(1.12); }
.drawer figcaption { padding: 1rem; color: var(--brass); font-family: var(--serif); font-size: 1.5rem; font-weight: 700; }
.workbench { padding: clamp(4rem, 9vw, 10rem); display: grid; grid-template-columns: 1fr .9fr; gap: 2rem 6rem; background: #080708; }
.workbench-rule { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; color: var(--brass); text-transform: uppercase; letter-spacing: .14em; font-weight: 900; }
.workbench-rule i { height: 1px; flex: 1; background: linear-gradient(90deg, var(--brass), var(--oxblood)); }
.workbench ol { margin: 2rem 0 0; padding: 0; list-style: none; display: grid; gap: .8rem; }
.workbench li { padding: 1rem; color: var(--smoke); background: var(--deck); border-left: 3px solid var(--brass); line-height: 1.55; }
.workbench li b { color: var(--pale); }
.magnet-image { margin: 0; align-self: stretch; border: 8px solid #17130f; display: grid; place-items: center; background: #000; }
.paper-tech { background: radial-gradient(circle at 20% 50%, rgba(78,216,234,.08), transparent 38%), #0d0d10; }
blockquote { margin: 2rem 0 0; padding: 1.4rem; border: 1px solid rgba(78,216,234,.5); color: var(--pale); font-family: var(--serif); font-size: 1.7rem; line-height: 1.4; }
.book-chapter { background: #090709; }
.boundary-chapter { background: linear-gradient(135deg, #16060b, #080709 55%); }
.text-link { display: inline-block; margin-top: 1.5rem; color: var(--cyan); font-weight: 800; text-decoration: none; }
footer { padding: 3rem clamp(2rem, 9vw, 10rem); border-top: 1px solid var(--line); color: var(--smoke); display: flex; flex-wrap: wrap; gap: 1rem 3rem; align-items: center; }
footer p { margin: 0; }
footer .fine { width: 100%; font-size: .75rem; }

.policy-page { background: #09090b; }
.policy-mast { position: sticky; top: 0; z-index: 30; min-height: 76px; padding: .7rem clamp(1rem, 4vw, 4rem); display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: rgba(7,7,9,.93); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.policy-brand { display: inline-flex; align-items: center; gap: .8rem; color: var(--pale); text-decoration: none; font-weight: 900; letter-spacing: .14em; }
.policy-brand img { width: 44px; height: 44px; border-radius: 50%; }
.policy-hero { min-height: 78vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 6rem); padding: clamp(3rem, 8vw, 8rem); }
.policy-hero figure { margin: 0; border: 1px solid var(--line); }
.policy-index { padding: 2rem clamp(1rem, 8vw, 8rem) 5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #09090b; }
.policy-index a { min-height: 76px; padding: 1rem; display: flex; align-items: center; gap: .8rem; color: var(--smoke); background: var(--deck); border: 1px solid rgba(255,255,255,.035); text-decoration: none; font-size: .9rem; }
.policy-index a b { color: var(--brass); font-size: .7rem; }
.policy-index a:hover, .policy-index a.is-active { color: var(--pale); background: #171216; border-color: var(--oxblood); }
.policy-flow { max-width: 1180px; margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 3rem) 7rem; }
.policy-entry { scroll-margin-top: 100px; display: grid; grid-template-columns: 72px 1fr; gap: 1.4rem; padding: 3.5rem 0; border-top: 1px solid var(--line); }
.policy-entry > span { width: 60px; height: 60px; display: grid; place-items: center; color: var(--brass); border: 1px solid var(--brass); border-radius: 50%; font-weight: 900; }
.policy-entry h2 { font-size: clamp(2rem, 4vw, 4rem); }
.policy-entry p { max-width: 55rem; color: var(--smoke); font-size: clamp(1rem, 1.3vw, 1.25rem); line-height: 1.72; }
.policy-figure { margin: 1rem 0 5rem 92px; border: 1px solid var(--line); background: var(--deck); }
.policy-figure figcaption { padding: 1rem 1.2rem; color: var(--smoke); }
.policy-footer { background: #050506; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes cueBlink { 0%, 75%, 100% { opacity: .35; } 82% { opacity: 1; } }

@media (max-width: 900px) {
  .site-shell { grid-template-columns: 1fr; }
  .cue-spine { position: sticky; width: 100%; height: auto; padding: .6rem .8rem; flex-direction: row; border-right: 0; border-bottom: 2px solid rgba(221,169,72,.65); }
  .brand { display: flex; align-items: center; gap: .55rem; text-align: left; }
  .brand img { width: 38px; height: 38px; margin: 0; }
  .cue-spine nav { margin: 0 0 0 auto; width: auto; display: flex; }
  .spine-stop { padding: .3rem .5rem; }
  .spine-stop b { width: 30px; }
  .spine-stop span, .ready { display: none; }
  .hero, .context-block, .paper-tech, .book-chapter, .boundary-chapter, .policy-hero { grid-template-columns: 1fr; }
  .hero { padding-top: 4rem; }
  .workbench { grid-template-columns: 1fr; }
  .magnet-image { min-height: 300px; }
  .policy-index { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .cue-spine nav .spine-stop:nth-child(2), .cue-spine nav .spine-stop:nth-child(4) { display: none; }
  .hero, .context-block, .paper-tech, .book-chapter, .boundary-chapter, .drawer-chapter, .workbench { padding: 4rem 1.2rem; }
  .drawer-grid, .policy-index { grid-template-columns: 1fr; }
  .policy-mast .button { font-size: .62rem; padding: .55rem .7rem; }
  .policy-hero { padding: 3rem 1.2rem; }
  .policy-flow { padding-inline: 1.2rem; }
  .policy-entry { grid-template-columns: 1fr; }
  .policy-figure { margin-left: 0; }
  .workbench-rule { gap: .45rem; font-size: .7rem; }
}

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