:root {
  --paper: #fffdf4;
  --paper-2: #fff8d7;
  --paper-3: #f6f1df;
  --ink: #15130e;
  --ink-2: #2c281f;
  --muted: #6e6758;
  --line: rgba(21, 19, 14, 0.13);
  --line-strong: rgba(21, 19, 14, 0.24);
  --gold: #ffd400;
  --gold-deep: #c99600;
  --gold-soft: #fff0a3;
  --red: #ff3657;
  --red-deep: #a60f35;
  --green: #00c979;
  --green-deep: #08784f;
  --blue: #2466d8;
  --charcoal: #0d0d0b;
  --white: #ffffff;
  --shadow: 0 28px 90px rgba(44, 34, 6, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(21, 19, 14, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(21, 19, 14, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, var(--paper), #fffaf0 42%, #fffdf7 78%, #f5f0df);
  background-size: 56px 56px, 56px 56px, auto;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.lightbox-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 400;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--charcoal);
  color: var(--gold);
  padding: 10px 14px;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 16px 24px;
}

.site-header.is-scrolled {
  background: rgba(255, 253, 244, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1220px, 100%);
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 244, 0.78);
  box-shadow: 0 16px 54px rgba(34, 28, 10, 0.1);
  padding: 10px 12px;
}

.brand {
  width: 160px;
  min-width: 160px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 8px;
  background: var(--gold);
  text-decoration: none;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 800;
}

.nav-menu a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  padding: 0 12px;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--ink);
  background: rgba(21, 19, 14, 0.06);
}

.nav-menu .nav-cta {
  color: var(--gold);
  background: var(--charcoal);
}

.nav-menu .nav-cta:hover,
.nav-menu .nav-cta:focus-visible {
  color: var(--charcoal);
  background: var(--gold);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: 140px 24px 0;
}

.hero-bg,
.hero-veil,
.hero-grid {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
  filter: saturate(1.06) contrast(1.08);
}

.hero-veil {
  background:
    linear-gradient(90deg, rgba(255, 253, 244, 0.98) 0%, rgba(255, 253, 244, 0.94) 42%, rgba(255, 253, 244, 0.72) 63%, rgba(255, 253, 244, 0.16) 100%),
    linear-gradient(180deg, rgba(255, 253, 244, 0.12), rgba(255, 253, 244, 0.98) 94%);
}

.hero-grid {
  background:
    linear-gradient(90deg, rgba(21, 19, 14, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(21, 19, 14, 0.07) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(180deg, transparent, black 22%, black 82%, transparent);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1220px, 100%);
  margin: 0 auto 34px;
}

.system-pill,
.kicker,
.hero-dock span,
.ticker-strip,
.thesis-card span,
.ledger-grid span,
.ledger-grid em,
.engine-map span,
.equation-stack span,
.equation-stack b,
.protocol-button,
.console-topline,
.console-readouts dt,
.dashboard-grid span,
.case-feature span,
.case-card span,
.validation-panel span,
.threshold-list,
.memory-rail,
.footer span {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-weight: 800;
  text-transform: uppercase;
}

.system-pill {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  border: 1px solid rgba(21, 19, 14, 0.18);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 212, 0, 0.22);
  padding: 8px 12px;
  font-size: 0.76rem;
}

.system-pill span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(0, 201, 121, 0.14);
}

.hero h1 {
  width: min(1040px, 100%);
  margin: 22px 0 0;
  color: var(--ink);
  font-size: 4.7rem;
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-copy {
  width: min(700px, 100%);
  margin: 24px 0 0;
  color: var(--ink-2);
  font-size: 1.16rem;
}

.hero-actions,
.access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 20px;
  text-decoration: none;
  font-weight: 900;
}

.btn-primary {
  color: var(--charcoal);
  border-color: #e4bd00;
  background: var(--gold);
  box-shadow: 0 20px 46px rgba(255, 212, 0, 0.25);
}

.btn-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.hero-dock {
  position: relative;
  z-index: 2;
  width: min(1220px, 100%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: rgba(255, 253, 244, 0.84);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-dock article {
  min-height: 150px;
  border-right: 1px solid var(--line);
  padding: 22px;
}

.hero-dock article:last-child {
  border-right: 0;
}

.hero-dock span,
.thesis-card span,
.engine-map span,
.dashboard-grid span,
.validation-panel span {
  display: block;
  color: var(--gold-deep);
  font-size: 0.72rem;
}

.hero-dock strong {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-size: 1.12rem;
}

.hero-dock p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.ticker-strip {
  overflow: hidden;
  contain: paint;
  border-bottom: 1px solid var(--line);
  background: var(--charcoal);
  color: var(--white);
  font-size: 0.72rem;
}

.strip-track {
  display: flex;
  gap: 10px;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 16px 24px;
}

.strip-track span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 212, 0, 0.25);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.74);
  padding: 0 14px;
}

.section {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  padding: 110px 0;
  scroll-margin-top: 112px;
}

.section-heading {
  width: min(840px, 100%);
  margin-bottom: 44px;
}

.section-heading.split {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(320px, 0.6fr);
  gap: 46px;
  align-items: end;
}

.kicker {
  margin: 0 0 12px;
  color: var(--gold-deep);
  font-size: 0.76rem;
}

.section-heading h2,
.access-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: 3.05rem;
  line-height: 1.06;
  letter-spacing: 0;
}

.section-heading p:not(.kicker),
.access-copy p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.thesis-lattice,
.engine-map,
.validation-grid {
  display: grid;
  gap: 18px;
}

.thesis-lattice {
  grid-template-columns: repeat(3, 1fr);
}

.thesis-card,
.engine-map article,
.validation-panel,
.research-ledger,
.model-board,
.dashboard-lab,
.casebook-grid,
.case-row figure {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 16px 60px rgba(44, 34, 6, 0.08);
}

.thesis-card {
  min-height: 330px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 212, 0, 0.1), rgba(255, 255, 255, 0.68)),
    rgba(255, 255, 255, 0.74);
}

.thesis-card h3,
.engine-map h3,
.validation-panel h3,
.dashboard-grid strong {
  margin: 38px 0 0;
  color: var(--ink);
  font-size: 1.32rem;
  line-height: 1.16;
}

.thesis-card p,
.engine-map p,
.validation-panel p,
.dashboard-grid p,
.ledger-copy p,
.model-copy p {
  margin: 16px 0 0;
  color: var(--muted);
}

.research-ledger {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1fr);
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  background: var(--line);
}

.ledger-copy,
.ledger-grid {
  background: rgba(255, 255, 255, 0.82);
  padding: 32px;
}

.ledger-copy h3,
.model-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1.12;
}

.ledger-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--charcoal);
}

.ledger-grid div {
  min-height: 156px;
  display: grid;
  align-content: center;
  border: 1px solid rgba(255, 212, 0, 0.15);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 212, 0, 0.12), transparent 52%),
    rgba(255, 255, 255, 0.04);
  padding: 20px;
}

.ledger-grid span {
  color: var(--gold);
  font-size: 0.72rem;
}

.ledger-grid strong {
  display: block;
  margin-top: 10px;
  color: var(--white);
  font-size: 1.12rem;
}

.ledger-grid em {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.7rem;
  font-style: normal;
}

.engine-section {
  position: relative;
  padding-top: 72px;
}

.engine-section::before,
.validation-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 150, 0, 0.44), rgba(21, 19, 14, 0.18), transparent);
}

.engine-map {
  grid-template-columns: repeat(4, 1fr);
}

.engine-map article {
  min-height: 278px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 248, 215, 0.42)),
    rgba(255, 255, 255, 0.72);
}

.engine-map h3 {
  margin-top: 42px;
  font-size: 1.18rem;
}

.engine-map .accent-card {
  color: var(--gold);
  background:
    linear-gradient(135deg, #11100c, #252116 58%, #0d0d0b),
    var(--charcoal);
}

.engine-map .accent-card span,
.engine-map .accent-card h3 {
  color: var(--gold);
}

.engine-map .accent-card p {
  color: rgba(255, 255, 255, 0.72);
}

.model-board {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1fr);
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  background: var(--line);
}

.model-copy,
.equation-stack {
  padding: 32px;
}

.model-copy {
  background: rgba(255, 255, 255, 0.82);
}

.equation-stack {
  display: grid;
  gap: 10px;
  background: var(--charcoal);
}

.equation-stack div {
  min-height: 88px;
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(255, 212, 0, 0.17);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 212, 0, 0.12), transparent 44%),
    rgba(255, 255, 255, 0.04);
  padding: 18px;
}

.equation-stack span {
  color: var(--gold);
  font-size: 0.72rem;
}

.equation-stack strong {
  color: var(--white);
}

.equation-stack b {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  text-align: right;
}

.protocol-section {
  border-top: 1px solid rgba(255, 212, 0, 0.2);
  border-bottom: 1px solid rgba(255, 212, 0, 0.2);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, #0d0d0b, #1f1a09 52%, #11100c);
  background-size: 64px 64px, 64px 64px, auto;
  color: var(--white);
}

.protocol-inner {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  padding: 110px 0;
}

.invert h2,
.invert p:not(.kicker) {
  color: var(--white);
}

.invert p:not(.kicker) {
  color: rgba(255, 255, 255, 0.68);
}

.protocol-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.34fr) minmax(0, 1fr);
  gap: 18px;
}

.protocol-tabs {
  display: grid;
  gap: 8px;
}

.protocol-button {
  min-height: 70px;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.055);
  text-align: left;
  cursor: pointer;
  padding: 0 18px;
}

.protocol-button span {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--charcoal);
  background: var(--gold);
}

.protocol-button.is-active {
  color: var(--gold);
  border-color: rgba(255, 212, 0, 0.48);
  background: rgba(255, 212, 0, 0.12);
}

.protocol-console {
  min-height: 540px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  border: 1px solid rgba(255, 212, 0, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 212, 0, 0.1), transparent 48%),
    rgba(0, 0, 0, 0.34);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.console-topline {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.76rem;
  padding: 16px 20px;
}

.console-topline strong {
  color: var(--gold);
  text-align: right;
}

.protocol-console p {
  width: min(760px, calc(100% - 40px));
  margin: 24px 20px 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.06rem;
}

.console-shot {
  margin: 24px 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  aspect-ratio: 7 / 3;
  background: #080806;
  overflow: hidden;
}

.console-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.console-readouts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0;
  background: rgba(255, 255, 255, 0.14);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.console-readouts div {
  background: rgba(0, 0, 0, 0.48);
  padding: 18px 20px;
}

.console-readouts dt,
.console-readouts dd {
  margin: 0;
}

.console-readouts dt {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.7rem;
}

.console-readouts dd {
  margin-top: 6px;
  color: var(--white);
  font-weight: 800;
}

.dashboard-section {
  padding-bottom: 62px;
}

.dashboard-lab {
  display: grid;
  grid-template-columns: minmax(360px, 0.56fr) minmax(0, 1fr);
  gap: 1px;
  overflow: hidden;
  background: var(--line);
}

.dashboard-shot {
  display: grid;
  align-content: center;
  justify-items: center;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(255, 212, 0, 0.12), transparent 48%),
    var(--charcoal);
  padding: 36px;
}

.dashboard-shot img {
  width: min(420px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.36);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
}

.dashboard-grid article {
  min-height: 216px;
  background: rgba(255, 255, 255, 0.82);
  padding: 26px;
}

.dashboard-grid strong {
  display: block;
  margin-top: 30px;
}

.casebook-section {
  position: relative;
  padding-top: 74px;
}

.casebook-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.66fr);
  gap: 1px;
  overflow: hidden;
  background: var(--line);
}

figure {
  margin: 0;
}

.case-feature,
.case-card,
.case-row figure {
  position: relative;
  overflow: hidden;
  background: #080806;
}

.case-feature {
  min-height: 640px;
}

.case-feature img,
.case-card img,
.case-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.case-feature::after,
.case-card::after,
.case-row figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 4, 0.02), rgba(5, 5, 4, 0.68)),
    linear-gradient(90deg, rgba(255, 212, 0, 0.08), transparent 44%);
  pointer-events: none;
}

.case-feature figcaption,
.case-card figcaption,
.case-row figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(9, 9, 7, 0.72);
  backdrop-filter: blur(12px);
  padding: 14px 16px;
}

.case-feature span,
.case-card span {
  display: block;
  color: var(--gold);
  font-size: 0.72rem;
}

.case-feature strong,
.case-card strong {
  display: block;
  margin-top: 7px;
  color: var(--white);
  font-size: 1.02rem;
  line-height: 1.25;
}

.case-stack {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.case-card {
  min-height: 319px;
}

.case-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.case-row figure {
  min-height: 420px;
}

.case-row figcaption {
  color: var(--white);
  font-weight: 800;
}

.validation-section {
  position: relative;
  padding-top: 72px;
}

.validation-grid {
  grid-template-columns: repeat(3, 1fr);
}

.validation-panel {
  min-height: 382px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 248, 215, 0.44)),
    rgba(255, 255, 255, 0.72);
}

.validation-panel h3 {
  margin-top: 34px;
}

.mode-compare {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 26px;
}

.mode-compare div {
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  padding: 14px;
}

.mode-compare b,
.mode-compare em {
  display: block;
}

.mode-compare b {
  color: var(--ink);
}

.mode-compare em {
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
  font-size: 0.88rem;
}

.threshold-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 26px;
  font-size: 0.72rem;
}

.threshold-list div {
  min-height: 54px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  padding: 0 14px;
}

.threshold-list i {
  min-width: 38px;
  display: inline-flex;
  justify-content: center;
  border-radius: 6px;
  color: var(--charcoal);
  background: var(--gold);
  font-style: normal;
  padding: 4px 8px;
}

.memory-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 26px;
  font-size: 0.68rem;
}

.memory-rail span {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.memory-rail span:nth-child(2) {
  background: rgba(255, 212, 0, 0.24);
}

img.zoomable-shot {
  cursor: zoom-in;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(8, 8, 6, 0.92);
  backdrop-filter: blur(12px);
  cursor: zoom-out;
}

.image-lightbox.is-open {
  display: flex;
}

.lightbox-frame {
  width: min(1320px, 100%);
  max-height: calc(100vh - 56px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  border: 1px solid rgba(255, 212, 0, 0.32);
  border-radius: 8px;
  background: #070706;
  overflow: hidden;
  box-shadow: 0 32px 120px rgba(0, 0, 0, 0.56);
  cursor: zoom-out;
}

.lightbox-frame img {
  width: 100%;
  max-height: calc(100vh - 124px);
  object-fit: contain;
  background: #080806;
  cursor: zoom-out;
}

.lightbox-frame figcaption {
  min-height: 44px;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(255, 212, 0, 0.18);
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 0 16px;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 212, 0, 0.32);
  border-radius: 8px;
  color: var(--gold);
  background: rgba(8, 8, 6, 0.94);
  font-size: 1.8rem;
  line-height: 1;
  cursor: zoom-out;
}

.access-section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(135deg, #11100c, #2a230a 58%, #0d0d0b);
  background-size: 56px 56px, 56px 56px, auto;
  color: var(--white);
  padding: 44px 24px;
}

.access-shell {
  width: min(1220px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  margin: 0 auto;
}

.access-copy h2,
.access-copy p {
  color: var(--white);
}

.access-copy p {
  width: min(720px, 100%);
  color: rgba(255, 255, 255, 0.72);
}

.access-actions {
  justify-content: flex-end;
  margin: 0;
}

.access-actions .btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.footer {
  padding: 32px 24px;
  background: #fffdf7;
}

.footer-inner {
  width: min(1220px, 100%);
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 24px;
  align-items: center;
  margin: 0 auto;
  color: var(--muted);
}

.footer img {
  width: 150px;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
}

.footer p {
  margin: 0;
}

.footer span {
  font-size: 0.76rem;
}

@media (max-width: 1120px) {
  .hero h1 {
    font-size: 3.8rem;
  }

  .hero-dock,
  .engine-map,
  .validation-grid,
  .thesis-lattice {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-heading.split,
  .research-ledger,
  .model-board,
  .protocol-layout,
  .dashboard-lab,
  .casebook-grid,
  .access-shell {
    grid-template-columns: 1fr;
  }

  .access-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 12px;
  }

  .nav-shell {
    min-height: 64px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .brand {
    width: 146px;
    min-width: 146px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding-top: 12px;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding: 126px 16px 0;
  }

  .hero-bg {
    object-position: 72% center;
  }

  .hero-veil {
    background:
      linear-gradient(180deg, rgba(255, 253, 244, 0.92) 0%, rgba(255, 253, 244, 0.78) 54%, rgba(255, 253, 244, 0.96) 100%),
      linear-gradient(90deg, rgba(255, 253, 244, 0.94), rgba(255, 253, 244, 0.58));
  }

  .system-pill {
    width: 100%;
    border-radius: 8px;
  }

  .hero h1 {
    font-size: 2.76rem;
  }

  .hero-copy {
    font-size: 1.02rem;
  }

  .hero-actions .btn,
  .access-actions .btn {
    width: 100%;
  }

  .hero-dock,
  .engine-map,
  .validation-grid,
  .thesis-lattice,
  .ledger-grid,
  .dashboard-grid,
  .case-row,
  .console-readouts {
    grid-template-columns: 1fr;
  }

  .hero-dock article {
    min-height: 128px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-dock article:last-child {
    border-bottom: 0;
  }

  .section,
  .protocol-inner {
    width: min(100% - 32px, 1220px);
    padding: 76px 0;
  }

  .engine-section,
  .validation-section,
  .casebook-section {
    padding-top: 56px;
  }

  .section-heading h2,
  .access-copy h2 {
    font-size: 2.18rem;
  }

  .ledger-copy,
  .ledger-grid,
  .model-copy,
  .equation-stack {
    padding: 24px;
  }

  .equation-stack div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .equation-stack b {
    text-align: left;
  }

  .console-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .console-topline strong {
    text-align: left;
  }

  .protocol-console {
    min-height: auto;
  }

  .console-shot {
    aspect-ratio: 16 / 10;
  }

  .dashboard-shot {
    padding: 26px 18px;
  }

  .case-feature {
    min-height: 380px;
  }

  .case-card,
  .case-row figure {
    min-height: 280px;
  }

  .case-feature figcaption,
  .case-card figcaption,
  .case-row figcaption {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 12px;
  }

  .mode-compare,
  .threshold-list,
  .memory-rail {
    grid-template-columns: 1fr;
  }

  .access-section {
    padding: 36px 16px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .hero h1 {
    font-size: 2.18rem;
  }

  .protocol-button {
    grid-template-columns: 40px 1fr;
    padding: 0 14px;
  }
}
