:root {
  --night: #07130d;
  --forest: #11281b;
  --leaf: #57c894;
  --leaf2: #87e3af;
  --sun: #f7c85f;
  --paper: #fff3cf;
  --paper-soft: #efe1b6;
  --cream: #f4ddb0;
  --soil: #8f6143;
  --roof: #db6b4d;
  --water: #6bb6d8;
  --ink: #182117;
  --muted: #b9ad87;
  --brass: #c89b4a;
  --panel: rgba(12, 28, 18, .88);
  --line: rgba(24, 33, 23, .16);
  --white-line: rgba(255, 243, 207, .2);
  --shadow: 0 26px 80px rgba(3, 8, 5, .46);
  --site-bg: #f1efe9;
  --site-paper: #fbf7ec;
  --site-white: #fffdf6;
  --site-ink: #191b1f;
  --site-muted: #5d626a;
  --site-blue: #312d27;
  --site-blue-soft: #ece4d8;
  --site-rust: #b65d3b;
  --site-rust-soft: #f0d3c4;
  --site-gold: #c38b38;
  --site-line: rgba(25, 27, 31, .16);
  --site-heavy-line: rgba(25, 27, 31, .28);
  --site-shadow: 0 26px 90px rgba(40, 37, 32, .14);
  --site-shadow-lift: 0 34px 110px rgba(40, 37, 32, .22);
  --motion-ease: cubic-bezier(.2, .8, .2, 1);
  --motion-snap: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
  font-family: "Public Sans", ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--site-ink);
  background:
    radial-gradient(circle at 82% 8%, rgba(182, 93, 59, .16), transparent 30%),
    radial-gradient(circle at 14% 28%, rgba(195, 139, 56, .12), transparent 34%),
    linear-gradient(90deg, rgba(25, 27, 31, .035) 1px, transparent 1px),
    linear-gradient(rgba(25, 27, 31, .035) 1px, transparent 1px),
    var(--site-bg);
  background-size: auto, auto, 44px 44px, 44px 44px, auto;
  overflow-x: hidden;
  overflow-y: auto;
}

button,
input {
  font: inherit;
}

i[data-lucide] {
  display: inline-block;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  vertical-align: -4px;
}

button {
  cursor: pointer;
  transition: transform .14s ease, border-color .14s ease, background-color .14s ease, box-shadow .14s ease;
}

button:hover {
  transform: translateY(-1px);
}

button:active {
  transform: translateY(1px);
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 120;
  padding: 10px 12px;
  border: 1px solid var(--site-rust);
  border-radius: 8px;
  color: var(--site-paper);
  background: var(--site-ink);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform .2s ease;
}

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

.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 12px clamp(16px, 4vw, 56px);
  color: var(--site-ink);
  border-bottom: 1px solid var(--site-line);
  background: rgba(251, 247, 236, .9);
  box-shadow: 0 12px 36px rgba(40, 37, 32, .08);
  backdrop-filter: blur(18px);
  animation: navDrop .72s var(--motion-snap) both;
}

.site-mark {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 12px;
  width: max-content;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 700;
}

.site-mark span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 36px;
  color: var(--site-paper);
  background: linear-gradient(135deg, var(--site-ink), var(--site-blue));
  border: 2px solid var(--site-rust);
  box-shadow: 5px 5px 0 rgba(182, 93, 59, .28);
}

.site-nav nav {
  display: flex;
  justify-content: flex-end;
  gap: clamp(10px, 3vw, 34px);
  color: var(--site-muted);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav a:hover {
  color: var(--site-ink);
}

.site-nav nav a {
  position: relative;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  transition: color .24s var(--motion-ease);
}

.site-nav nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  background: var(--site-rust);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .34s var(--motion-snap);
}

.site-nav nav a:hover::after,
.site-nav nav a:focus-visible::after {
  transform: scaleX(1);
}

.site-shell {
  position: relative;
  overflow: hidden;
  color: var(--site-ink);
  background: var(--site-bg);
}

.site-shell::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: clamp(18px, 6vw, 84px);
  z-index: 1;
  width: 1px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(182, 93, 59, .34), transparent);
  opacity: .55;
}

.site-shell .kicker {
  color: var(--site-rust);
}

.site-shell .kicker::before {
  background: var(--site-gold);
  box-shadow: 0 0 18px rgba(195, 139, 56, .42);
}

.site-hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: end;
  padding: clamp(96px, 12vw, 156px) clamp(18px, 6vw, 84px) clamp(64px, 9vw, 112px);
  background:
    linear-gradient(90deg, rgba(241, 239, 233, .98) 0 40%, rgba(241, 239, 233, .76) 64%, rgba(241, 239, 233, .18)),
    linear-gradient(180deg, rgba(241, 239, 233, .24), rgba(241, 239, 233, .96)),
    image-set(url("assets/agentdlc-control-room.webp") type("image/webp"), url("assets/agentdlc-control-room.png") type("image/png")) center / cover no-repeat;
  isolation: isolate;
}

.site-shell > section {
  position: relative;
  z-index: 2;
}

.site-shell > section > * {
  position: relative;
  z-index: 2;
}

.site-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, transparent 0 31px, rgba(25, 27, 31, .055) 31px 32px),
    linear-gradient(transparent 0 31px, rgba(25, 27, 31, .055) 31px 32px);
  background-size: 32px 32px;
}

.hero-copy {
  max-width: 900px;
  min-width: 0;
  width: min(100%, 900px);
}

.hero-title {
  margin-top: 18px;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 190px;
  line-height: .78;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--site-ink);
  text-shadow: 0 12px 0 rgba(182, 93, 59, .16);
  animation: titleRise .9s var(--motion-snap) .08s both;
}

.hero-copy p,
.site-shell .section-copy p {
  max-width: 740px;
  margin-top: 22px;
  color: var(--site-muted);
  font-size: 24px;
  line-height: 1.35;
}

.hero-copy .kicker {
  animation: riseFade .68s var(--motion-snap) both;
}

.hero-copy p {
  animation: riseFade .78s var(--motion-snap) .18s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  animation: riseFade .78s var(--motion-snap) .26s both;
}

.hero-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--site-line);
  border-radius: 8px;
  color: var(--site-ink);
  background: rgba(255, 253, 246, .72);
  box-shadow: 0 14px 44px rgba(40, 37, 32, .08);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  transition: transform .32s var(--motion-snap), border-color .28s var(--motion-ease), box-shadow .32s var(--motion-ease), background-color .28s var(--motion-ease);
}

.hero-button:hover {
  border-color: rgba(182, 93, 59, .44);
  box-shadow: 0 20px 58px rgba(40, 37, 32, .14);
  transform: translateY(-3px);
}

.site-hero .primary-link {
  color: var(--site-paper) !important;
  background: var(--site-ink) !important;
  border-color: var(--site-ink) !important;
  box-shadow: 8px 8px 0 rgba(182, 93, 59, .3);
}

.hero-ledger {
  width: min(100%, 980px);
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(34px, 8vw, 90px);
  border: 1px solid var(--site-line);
  background: var(--site-line);
  box-shadow: var(--site-shadow);
  animation: riseFade .82s var(--motion-snap) .38s both;
}

.hero-ledger span {
  min-height: 64px;
  display: grid;
  place-items: center;
  padding: 10px;
  background: rgba(255, 253, 246, .86);
  color: var(--site-blue);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  transition: color .24s var(--motion-ease), background-color .24s var(--motion-ease), transform .28s var(--motion-snap);
}

.hero-ledger span:hover {
  color: var(--site-paper);
  background: var(--site-ink);
  transform: translateY(-2px);
}

.why-section,
.orientation-section,
.stack-section,
.manifesto-band,
.model-section,
.lifecycle-section,
.dossier-section,
.stagebook-section,
.packet-section,
.gate-section,
.proof-section,
.production-section,
.council-section,
.readiness-section,
.workshop-section,
.contact-section,
.customer-section,
.maturity-section,
.adoption-section,
.faq-section,
.footer-intro {
  padding: clamp(70px, 10vw, 140px) clamp(18px, 6vw, 84px);
}

.why-section {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 6vw, 84px);
  background:
    radial-gradient(circle at 86% 18%, rgba(182, 93, 59, .1), transparent 32%),
    linear-gradient(180deg, var(--site-paper), #ece9df);
}

.orientation-section {
  display: grid;
  grid-template-columns: minmax(280px, .86fr) minmax(320px, 1.14fr);
  gap: clamp(28px, 6vw, 84px);
  border-top: 1px solid var(--site-line);
  background:
    radial-gradient(circle at 14% 16%, rgba(195, 139, 56, .13), transparent 34%),
    linear-gradient(180deg, #f7f2e8, #eee8dc);
}

.problem-stack,
.orientation-grid,
.stack-board,
.model-grid,
.stagebook,
.packet-grid,
.proof-grid,
.production-grid,
.workshop-grid,
.customer-grid,
.adoption-steps,
.faq-list {
  display: grid;
  gap: 14px;
}

.problem-stack article,
.orientation-grid article,
.stack-board article,
.model-grid article,
.stagebook article,
.packet-grid article,
.proof-grid article,
.production-grid article,
.workshop-grid article,
.customer-grid article,
.maturity-rail article,
.adoption-steps article,
.faq-list details {
  border: 1px solid var(--site-line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 246, .92), rgba(251, 247, 236, .72)),
    var(--site-paper);
  box-shadow: var(--site-shadow), inset 0 0 0 1px rgba(255, 253, 246, .56);
}

.problem-stack article {
  padding: 24px;
}

.orientation-grid article {
  min-height: 210px;
  padding: 24px;
}

.stack-section {
  border-top: 1px solid var(--site-line);
  background:
    radial-gradient(circle at 80% 10%, rgba(182, 93, 59, .12), transparent 30%),
    linear-gradient(90deg, rgba(25, 27, 31, .04) 1px, transparent 1px),
    linear-gradient(rgba(25, 27, 31, .04) 1px, transparent 1px),
    linear-gradient(180deg, #eee8dc, #f7f2e8);
  background-size: auto, 34px 34px, 34px 34px, auto;
}

.stack-board {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: clamp(34px, 6vw, 72px);
}

.stack-board article {
  min-height: 360px;
  display: grid;
  align-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 22px;
}

.stack-board article small {
  display: block;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--site-line);
  color: var(--site-rust);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}

.stack-board .adlc-layer {
  border-color: rgba(182, 93, 59, .48);
  background:
    linear-gradient(180deg, rgba(25, 27, 31, .94), rgba(49, 45, 39, .88)),
    var(--site-ink);
  box-shadow: var(--site-shadow-lift), inset 0 0 0 1px rgba(255, 253, 246, .08);
}

.stack-board .adlc-layer h3,
.stack-board .adlc-layer p {
  color: var(--site-paper);
}

.stack-board .adlc-layer small {
  color: var(--site-gold);
  border-color: rgba(255, 253, 246, .16);
}

.stack-callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--site-heavy-line);
  background: rgba(255, 253, 246, .72);
  box-shadow: var(--site-shadow);
}

.stack-callout strong {
  color: var(--site-rust);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.stack-callout p {
  color: var(--site-ink);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(28px, 4vw, 46px);
  line-height: .98;
}

.problem-stack span,
.orientation-grid span,
.stack-board span,
.model-grid span,
.proof-grid span,
.production-grid span,
.workshop-grid span,
.customer-grid span,
.maturity-rail span,
.stagebook span,
.adoption-steps span {
  color: var(--site-rust);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.problem-stack h3,
.orientation-grid h3,
.stack-board h3,
.model-grid h3,
.proof-grid h3,
.production-grid h3,
.workshop-grid h3,
.customer-grid h3,
.maturity-rail h3,
.stagebook h3,
.packet-grid h3,
.adoption-steps h3 {
  margin: 12px 0 0;
  color: var(--site-ink);
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 28px;
  line-height: .98;
  text-transform: uppercase;
}

.problem-stack p,
.orientation-grid p,
.stack-board p,
.model-grid p,
.proof-grid p,
.production-grid p,
.workshop-grid p,
.customer-grid p,
.maturity-rail p,
.stagebook p,
.packet-grid p,
.adoption-steps p,
.faq-list p,
.gate-matrix span {
  color: var(--site-muted);
  font-size: 16px;
  line-height: 1.5;
}

.manifesto-band {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(320px, 1.15fr);
  gap: clamp(28px, 6vw, 84px);
  border-top: 1px solid var(--site-line);
  border-bottom: 1px solid var(--site-line);
  background:
    linear-gradient(135deg, rgba(195, 139, 56, .1), rgba(251, 247, 236, .96) 42%, rgba(182, 93, 59, .11)),
    var(--site-paper);
}

.site-shell .section-copy h2,
.site-shell .manifesto-lines p,
.site-shell .split-proof h2 {
  max-width: 880px;
  margin-top: 14px;
  color: var(--site-ink);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 76px;
  font-weight: 400;
  line-height: .93;
}

.manifesto-lines {
  display: grid;
  gap: 22px;
}

.manifesto-lines p {
  max-width: 900px;
  padding-left: 24px;
  border-left: 4px solid var(--site-rust);
  font-size: 42px;
}

.manifesto-lines strong {
  color: var(--site-blue);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .42em;
  text-transform: uppercase;
}

.doctrine-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--site-line);
}

.doctrine-grid article {
  min-height: 360px;
  display: grid;
  align-content: end;
  padding: clamp(22px, 4vw, 46px);
  background:
    linear-gradient(180deg, rgba(182, 93, 59, .07), rgba(255, 253, 246, .92)),
    var(--site-paper);
}

.doctrine-grid span,
.factory-rail span {
  color: var(--site-rust);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 700;
}

.doctrine-grid h3 {
  margin-top: 16px;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 48px;
  line-height: .92;
  text-transform: uppercase;
}

.doctrine-grid p,
.split-proof li,
.council-grid p {
  margin-top: 18px;
  color: var(--site-muted);
  font-size: 17px;
  line-height: 1.5;
}

.model-section {
  background:
    radial-gradient(circle at 14% 16%, rgba(195, 139, 56, .13), transparent 34%),
    linear-gradient(180deg, #f6f0e5, var(--site-bg));
}

.model-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(34px, 6vw, 72px);
}

.model-grid article,
.proof-grid article,
.customer-grid article,
.maturity-rail article {
  min-height: 260px;
  padding: 22px;
}

.shift-matrix {
  display: grid;
  margin-top: clamp(28px, 5vw, 60px);
  border: 1px solid var(--site-heavy-line);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 253, 246, .78);
  box-shadow: var(--site-shadow);
}

.shift-matrix [role="row"] {
  display: grid;
  grid-template-columns: minmax(160px, .55fr) minmax(250px, 1fr) minmax(250px, 1fr);
  border-top: 1px solid var(--site-line);
  transition: background-color .28s var(--motion-ease);
}

.shift-matrix [role="row"]:first-child {
  border-top: 0;
}

.shift-matrix [role="row"]:not(.matrix-head):hover {
  background: rgba(182, 93, 59, .055);
}

.shift-matrix span {
  padding: 18px;
  border-left: 1px solid var(--site-line);
  color: var(--site-muted);
  font-size: 16px;
  line-height: 1.5;
}

.shift-matrix span:first-child {
  border-left: 0;
  color: var(--site-ink);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 700;
  text-transform: uppercase;
}

.shift-matrix .matrix-head span {
  color: var(--site-paper);
  background: var(--site-ink);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.lifecycle-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 8%, rgba(182, 93, 59, .1), transparent 30%),
    linear-gradient(90deg, rgba(182, 93, 59, .065) 1px, transparent 1px),
    linear-gradient(rgba(25, 27, 31, .045) 1px, transparent 1px),
    linear-gradient(180deg, #f5efe4, #ece3d7);
  background-size: auto, 32px 32px, 32px 32px, auto;
}

.lifecycle-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, transparent 0 120px, rgba(182, 93, 59, .12) 120px 122px, transparent 122px 220px);
  opacity: .18;
  transform: translateX(-8%);
  animation: railDrift 18s linear infinite;
}

.factory-rail {
  display: grid;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  gap: 12px;
  margin-top: clamp(34px, 6vw, 72px);
  overflow-x: auto;
  padding-bottom: 12px;
}

.factory-rail a {
  position: relative;
  min-width: 0;
  min-height: 190px;
  display: grid;
  align-content: space-between;
  padding: 18px;
  border: 1px solid rgba(182, 93, 59, .22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 246, .88), rgba(251, 247, 236, .7)),
    var(--site-paper);
  box-shadow: 0 16px 42px rgba(40, 37, 32, .12);
  transition: transform .38s var(--motion-snap), border-color .28s var(--motion-ease), box-shadow .38s var(--motion-ease);
}

.factory-rail a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -18px;
  width: 26px;
  height: 6px;
  background: var(--site-rust);
  box-shadow: 0 0 18px rgba(182, 93, 59, .3);
  transform-origin: left;
  transition: transform .38s var(--motion-snap), box-shadow .28s var(--motion-ease);
}

.factory-rail a:last-child::after {
  display: none;
}

.factory-rail a:hover {
  border-color: rgba(182, 93, 59, .42);
  box-shadow: var(--site-shadow-lift);
  transform: translateY(-8px);
}

.factory-rail a:hover::after {
  box-shadow: 0 0 24px rgba(182, 93, 59, .44);
  transform: scaleX(1.35);
}

.factory-rail strong {
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 28px;
  text-transform: uppercase;
}

.factory-rail small {
  color: var(--site-muted);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 700;
  text-transform: uppercase;
}

.dossier-section {
  background:
    radial-gradient(circle at 86% 12%, rgba(182, 93, 59, .12), transparent 32%),
    linear-gradient(180deg, #f4ecdf, #efe7da);
}

.dossier-board {
  display: grid;
  grid-template-columns: minmax(300px, .34fr) minmax(0, 1fr);
  gap: 1px;
  margin-top: clamp(34px, 6vw, 72px);
  border: 1px solid var(--site-heavy-line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--site-line);
  box-shadow: var(--site-shadow);
}

.dossier-rail {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  background:
    linear-gradient(180deg, rgba(25, 27, 31, .94), rgba(49, 45, 39, .82) 34%, rgba(182, 93, 59, .2)),
    var(--site-ink);
}

.dossier-tabs {
  display: grid;
  align-content: start;
  gap: 1px;
  background: var(--site-line);
}

.dossier-tabs button {
  min-height: 58px;
  padding: 0 18px;
  border: 0;
  border-radius: 0;
  color: var(--site-muted);
  background: rgba(255, 253, 246, .82);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
  transition: color .28s var(--motion-ease), background-color .28s var(--motion-ease), transform .28s var(--motion-snap);
}

.dossier-tabs button:hover,
.dossier-tabs button.active {
  color: var(--site-paper);
  background: var(--site-ink);
  transform: translateX(4px);
}

.dossier-intake {
  position: relative;
  display: grid;
  align-content: end;
  gap: 18px;
  min-height: 358px;
  padding: 24px;
  overflow: hidden;
  color: var(--site-paper);
}

.dossier-intake::before {
  content: "";
  position: absolute;
  inset: auto -25% 36% -25%;
  height: 210px;
  background:
    radial-gradient(circle at 50% 50%, rgba(195, 139, 56, .34), transparent 58%),
    linear-gradient(90deg, transparent 0 31px, rgba(255, 253, 246, .08) 31px 32px),
    linear-gradient(transparent 0 31px, rgba(255, 253, 246, .08) 31px 32px);
  background-size: auto, 32px 32px, 32px 32px;
  transform: rotate(-8deg);
}

.dossier-intake > * {
  position: relative;
  z-index: 1;
}

.dossier-intake > span {
  color: var(--site-gold);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.dossier-intake h3 {
  max-width: 280px;
  color: var(--site-white);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(31px, 3.4vw, 43px);
  font-weight: 400;
  line-height: .96;
}

.dossier-intake p {
  max-width: 310px;
  color: rgba(255, 253, 246, .72);
  font-size: 14px;
  line-height: 1.5;
}

.intake-chain {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.intake-chain li {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 253, 246, .14);
  background: rgba(255, 253, 246, .07);
}

.intake-chain b {
  color: var(--site-white);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.intake-chain small {
  color: rgba(255, 253, 246, .66);
  font-size: 12px;
  line-height: 1.25;
}

.dossier-ctas {
  display: grid;
  gap: 8px;
}

.dossier-ctas a {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(255, 253, 246, .18);
  color: var(--site-paper);
  background: rgba(255, 253, 246, .08);
  transition: transform .24s var(--motion-snap), border-color .24s var(--motion-ease), background-color .24s var(--motion-ease);
}

.dossier-ctas a:hover,
.dossier-ctas a:focus-visible {
  border-color: rgba(195, 139, 56, .6);
  background: rgba(195, 139, 56, .18);
  transform: translateX(4px);
}

.dossier-ctas strong {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.dossier-ctas span {
  color: rgba(255, 253, 246, .64);
  font-size: 12px;
  line-height: 1.35;
}

.dossier-panel {
  min-height: 520px;
  padding: clamp(26px, 5vw, 58px);
  background:
    linear-gradient(135deg, rgba(255, 253, 246, .96), rgba(251, 247, 236, .84)),
    var(--site-paper);
  animation: packetOpen .46s var(--motion-snap) both;
}

.dossier-panel span,
.packet-spine > span,
.packet-example > span {
  color: var(--site-rust);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.dossier-panel h3 {
  max-width: 880px;
  margin-top: 14px;
  color: var(--site-ink);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(44px, 7vw, 92px);
  font-weight: 400;
  line-height: .9;
}

.dossier-panel p {
  max-width: 780px;
  margin-top: 20px;
  color: var(--site-muted);
  font-size: 20px;
  line-height: 1.45;
}

.dossier-panel dl {
  display: grid;
  grid-template-columns: minmax(110px, .24fr) minmax(0, 1fr);
  gap: 12px 18px;
  margin: clamp(24px, 5vw, 48px) 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--site-line);
}

.dossier-panel dt {
  color: var(--site-ink);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.dossier-panel dd {
  margin: 0;
  color: var(--site-muted);
  font-size: 17px;
  line-height: 1.5;
}

.dossier-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(24px, 4vw, 42px);
}

.dossier-panel-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--site-heavy-line);
  color: var(--site-ink);
  background: rgba(255, 253, 246, .72);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  transition: transform .24s var(--motion-snap), border-color .24s var(--motion-ease), background-color .24s var(--motion-ease);
}

.dossier-panel-actions a:first-child {
  color: var(--site-paper);
  border-color: var(--site-ink);
  background: var(--site-ink);
}

.dossier-panel-actions a:hover,
.dossier-panel-actions a:focus-visible {
  border-color: var(--site-rust);
  transform: translateY(-2px);
}

.dossier-output {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(24px, 4vw, 46px);
  border: 1px solid var(--site-line);
  background: var(--site-line);
}

.dossier-output > span {
  grid-column: 1 / -1;
  padding: 10px 12px;
  color: var(--site-rust);
  background: rgba(255, 253, 246, .7);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.dossier-output div {
  min-height: 118px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(25, 27, 31, .045), transparent),
    rgba(255, 253, 246, .78);
}

.dossier-output strong {
  color: var(--site-ink);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

.dossier-output small {
  color: var(--site-muted);
  font-size: 13px;
  line-height: 1.3;
}

.stagebook-section {
  background:
    linear-gradient(90deg, rgba(25, 27, 31, .045) 1px, transparent 1px),
    linear-gradient(rgba(25, 27, 31, .045) 1px, transparent 1px),
    linear-gradient(180deg, var(--site-bg), #e9e7de);
  background-size: 32px 32px, 32px 32px, auto;
}

.stagebook {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(34px, 6vw, 72px);
}

.stagebook article {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
}

.stagebook dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  margin: 8px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--site-line);
}

.stagebook dt {
  color: var(--site-rust);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.stagebook dd {
  margin: 0;
  color: var(--site-muted);
}

.split-proof {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  padding: 1px;
  background: var(--site-line);
}

.split-proof > div {
  padding: clamp(34px, 6vw, 84px);
  background:
    linear-gradient(135deg, rgba(182, 93, 59, .12), rgba(255, 253, 246, .86)),
    #eee5d8;
  color: var(--site-ink);
}

.split-proof > div:last-child {
  background:
    linear-gradient(135deg, rgba(195, 139, 56, .14), rgba(255, 253, 246, .92)),
    var(--site-paper);
  color: var(--site-ink);
}

.site-shell .split-proof > div:first-child .kicker,
.site-shell .council-section .kicker {
  color: var(--site-rust);
}

.site-shell .split-proof > div:first-child .kicker::before,
.site-shell .council-section .kicker::before {
  background: var(--site-gold);
  box-shadow: 0 0 18px rgba(195, 139, 56, .42);
}

.site-shell .split-proof > div:first-child h2 {
  color: var(--site-ink);
}

.split-proof > div:first-child li {
  color: var(--site-muted);
  border-left-color: rgba(182, 93, 59, .32);
}

.split-proof > div:last-child li {
  color: var(--site-muted);
  border-left-color: rgba(182, 93, 59, .32);
}

.split-proof ul {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.split-proof li {
  margin-top: 0;
  padding-left: 22px;
  border-left: 3px solid var(--site-line);
}

.packet-section {
  background:
    radial-gradient(circle at 10% 10%, rgba(195, 139, 56, .13), transparent 32%),
    linear-gradient(135deg, #f8f4ea, #ece8df 62%, rgba(240, 211, 196, .56));
}

.packet-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(34px, 6vw, 72px);
}

.packet-grid article {
  min-height: 230px;
  padding: 24px;
}

.packet-grid svg {
  width: 34px;
  height: 34px;
  color: var(--site-rust);
  stroke-width: 2;
}

.packet-anatomy {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(320px, 1.1fr);
  gap: 1px;
  margin-top: clamp(32px, 6vw, 72px);
  border: 1px solid var(--site-heavy-line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--site-line);
  box-shadow: var(--site-shadow);
}

.packet-spine,
.packet-example {
  min-width: 0;
  padding: clamp(24px, 4vw, 42px);
  background:
    linear-gradient(180deg, rgba(255, 253, 246, .94), rgba(251, 247, 236, .76)),
    var(--site-paper);
}

.packet-spine ol {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: packet;
}

.packet-spine li {
  position: relative;
  min-width: 0;
  min-height: 74px;
  padding: 0 0 0 56px;
  counter-increment: packet;
}

.packet-spine li::before {
  content: counter(packet, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--site-paper);
  background: var(--site-ink);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
}

.packet-spine strong,
.packet-spine small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.packet-spine strong {
  color: var(--site-ink);
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 22px;
  text-transform: uppercase;
}

.packet-spine small {
  margin-top: 4px;
  color: var(--site-muted);
  font-size: 14px;
  line-height: 1.4;
}

.packet-example pre {
  max-width: 100%;
  min-height: 100%;
  margin: 20px 0 0;
  padding: 22px;
  overflow: auto;
  border: 1px solid var(--site-line);
  border-radius: 8px;
  color: var(--site-paper);
  background: var(--site-ink);
  box-shadow: inset 0 0 0 1px rgba(251, 247, 236, .08);
}

.packet-example code {
  display: block;
  max-width: 100%;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.gate-section {
  background:
    linear-gradient(90deg, rgba(25, 27, 31, .04) 1px, transparent 1px),
    linear-gradient(rgba(25, 27, 31, .04) 1px, transparent 1px),
    var(--site-paper);
  background-size: 34px 34px;
}

.gate-matrix {
  display: grid;
  margin-top: clamp(34px, 6vw, 72px);
  border: 1px solid var(--site-heavy-line);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 253, 246, .72);
  box-shadow: var(--site-shadow);
}

.gate-matrix [role="row"] {
  display: grid;
  grid-template-columns: minmax(170px, .7fr) minmax(240px, 1fr) minmax(240px, 1fr);
  border-top: 1px solid var(--site-line);
}

.gate-matrix [role="row"]:first-child {
  border-top: 0;
}

.gate-matrix span {
  padding: 18px;
  border-left: 1px solid var(--site-line);
}

.gate-matrix span:first-child {
  border-left: 0;
  color: var(--site-ink);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 700;
  text-transform: uppercase;
}

.gate-matrix .matrix-head span {
  color: var(--site-paper);
  background: var(--site-ink);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.proof-section {
  background:
    radial-gradient(circle at 12% 20%, rgba(182, 93, 59, .1), transparent 30%),
    linear-gradient(180deg, #f5efe4, #ece4d8);
}

.proof-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(34px, 6vw, 72px);
}

.production-section {
  background:
    linear-gradient(90deg, rgba(25, 27, 31, .045) 1px, transparent 1px),
    linear-gradient(rgba(25, 27, 31, .045) 1px, transparent 1px),
    linear-gradient(180deg, #f8f4ea, #eee4d8);
  background-size: 32px 32px, 32px 32px, auto;
}

.production-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(34px, 6vw, 72px);
}

.production-grid article {
  min-height: 250px;
  padding: 22px;
}

.council-section {
  color: var(--site-ink);
  background:
    radial-gradient(circle at 88% 4%, rgba(182, 93, 59, .14), transparent 34%),
    linear-gradient(180deg, #f4ecdf, #e9dfd0);
}

.council-section .section-copy h2,
.council-section .section-copy p {
  color: var(--site-ink);
}

.council-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 12px;
  margin-top: clamp(34px, 6vw, 72px);
  overflow-x: auto;
  padding-bottom: 12px;
}

.council-grid details {
  min-height: 250px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--site-line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 246, .9), rgba(251, 247, 236, .72)),
    var(--site-paper);
  box-shadow: var(--site-shadow), inset 0 0 0 1px rgba(255, 253, 246, .5);
}

.council-grid summary {
  cursor: pointer;
  color: var(--site-ink);
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 26px;
  text-transform: uppercase;
}

.council-grid summary::marker,
.faq-list summary::marker {
  color: var(--site-rust);
}

.council-grid p {
  color: var(--site-muted);
}

.readiness-section {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(320px, 1.18fr);
  gap: clamp(28px, 6vw, 84px);
  background:
    radial-gradient(circle at 18% 14%, rgba(195, 139, 56, .16), transparent 30%),
    linear-gradient(180deg, #f6f0e5, #ebe4d8);
}

.readiness-console {
  display: grid;
  grid-template-columns: minmax(300px, .92fr) minmax(360px, 1.08fr);
  gap: 1px;
  min-width: 0;
  border: 1px solid var(--site-heavy-line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--site-line);
  box-shadow: var(--site-shadow-lift);
}

.readiness-score {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  min-height: 420px;
  min-width: 0;
  padding: clamp(22px, 4vw, 34px);
  overflow: hidden;
  color: var(--site-paper);
  background:
    radial-gradient(circle at 44% 18%, rgba(195, 139, 56, .22), transparent 32%),
    linear-gradient(180deg, rgba(25, 27, 31, .94), rgba(49, 45, 39, .9)),
    var(--site-ink);
}

.readiness-score > * {
  min-width: 0;
  max-width: 100%;
}

.readiness-score span {
  color: var(--site-gold);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.readiness-score strong {
  color: var(--site-white);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(40px, 3.8vw, 62px);
  font-weight: 400;
  line-height: 1.32;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.readiness-score p {
  color: rgba(255, 253, 246, .72);
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: break-word;
}

.readiness-meter {
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 253, 246, .18);
  background: rgba(255, 253, 246, .08);
}

.readiness-meter span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--site-rust), var(--site-gold));
  transition: width .34s var(--motion-snap);
}

.readiness-checks {
  display: grid;
  gap: 1px;
  min-width: 0;
  overflow: hidden;
  background: var(--site-line);
}

.readiness-checks button {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 70px;
  padding: 18px 20px 18px 54px;
  border: 0;
  border-radius: 0;
  color: var(--site-muted);
  background: rgba(255, 253, 246, .86);
  text-align: left;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: break-word;
}

.readiness-checks button::before {
  content: "";
  position: absolute;
  left: 20px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--site-heavy-line);
  background: var(--site-paper);
  transform: rotate(45deg);
}

.readiness-checks button[aria-pressed="true"] {
  color: var(--site-ink);
  background: rgba(195, 139, 56, .16);
}

.readiness-checks button[aria-pressed="true"]::before {
  border-color: var(--site-rust);
  background: var(--site-rust);
  box-shadow: inset 0 0 0 4px var(--site-paper);
}

.readiness-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.readiness-actions a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 253, 246, .32);
  color: var(--site-paper);
  background: rgba(255, 253, 246, .08);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.readiness-actions a:first-child {
  color: var(--site-ink);
  border-color: var(--site-paper);
  background: var(--site-paper);
}

.workshop-section {
  background:
    linear-gradient(90deg, rgba(25, 27, 31, .045) 1px, transparent 1px),
    linear-gradient(rgba(25, 27, 31, .045) 1px, transparent 1px),
    linear-gradient(180deg, #ebe4d8, #f7f2e8);
  background-size: 32px 32px, 32px 32px, auto;
}

.workshop-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(34px, 6vw, 72px);
}

.workshop-grid article {
  min-height: 290px;
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: 24px;
}

.workshop-grid small {
  display: block;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--site-line);
  color: var(--site-rust);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, .78fr) minmax(340px, 1.22fr);
  gap: clamp(28px, 6vw, 84px);
  background:
    radial-gradient(circle at 82% 12%, rgba(182, 93, 59, .14), transparent 34%),
    linear-gradient(180deg, #f7f2e8, #ede3d6);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  gap: 1px;
  border: 1px solid var(--site-heavy-line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--site-line);
  box-shadow: var(--site-shadow-lift);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(22px, 4vw, 34px);
  background:
    linear-gradient(180deg, rgba(255, 253, 246, .94), rgba(251, 247, 236, .78)),
    var(--site-paper);
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form span,
.contact-side > span {
  color: var(--site-rust);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px;
  border: 1px solid var(--site-line);
  border-radius: 8px;
  color: var(--site-ink);
  background: rgba(255, 253, 246, .86);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
  line-height: 1.45;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(195, 139, 56, .34);
  border-color: var(--site-rust);
}

.contact-wide,
.contact-submit,
.contact-note,
.contact-output {
  grid-column: 1 / -1;
}

.contact-submit {
  min-height: 52px;
  justify-content: center;
  border: 1px solid var(--site-ink);
  border-radius: 8px;
  color: var(--site-paper);
  background: var(--site-ink);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-note {
  margin: 0;
  color: var(--site-muted);
  font-size: 14px;
  line-height: 1.45;
}

.contact-output {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(182, 93, 59, .28);
  border-radius: 8px;
  background: rgba(255, 253, 246, .74);
}

.contact-output[hidden] {
  display: none;
}

.contact-output p {
  margin: 0;
  color: var(--site-muted);
  line-height: 1.45;
}

.contact-output label {
  display: grid;
  gap: 8px;
}

.contact-output textarea {
  min-height: 180px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
}

.contact-output-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-output-actions a,
.contact-output-actions button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--site-heavy-line);
  border-radius: 8px;
  color: var(--site-ink);
  background: var(--site-paper);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-output-actions a {
  color: var(--site-paper);
  border-color: var(--site-ink);
  background: var(--site-ink);
}

.contact-side {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: clamp(22px, 4vw, 30px);
  color: var(--site-paper);
  background:
    linear-gradient(180deg, rgba(25, 27, 31, .95), rgba(49, 45, 39, .9)),
    var(--site-ink);
}

.contact-side article {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 253, 246, .16);
}

.contact-side h3 {
  color: var(--site-white);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
}

.contact-side p {
  margin-top: 8px;
  color: rgba(255, 253, 246, .68);
  font-size: 14px;
  line-height: 1.45;
}

.customer-section {
  background:
    radial-gradient(circle at 90% 12%, rgba(195, 139, 56, .12), transparent 34%),
    linear-gradient(180deg, #f7f2e8, #eee5d8);
}

.customer-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(34px, 6vw, 72px);
}

.maturity-section {
  background:
    linear-gradient(90deg, rgba(25, 27, 31, .045) 1px, transparent 1px),
    linear-gradient(rgba(25, 27, 31, .045) 1px, transparent 1px),
    linear-gradient(180deg, var(--site-bg), #f6f0e5);
  background-size: 32px 32px, 32px 32px, auto;
}

.maturity-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(210px, 1fr));
  gap: 12px;
  margin-top: clamp(34px, 6vw, 72px);
  overflow-x: auto;
  padding-bottom: 12px;
}

.maturity-rail small {
  display: block;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--site-line);
  color: var(--site-rust);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}

.adoption-section {
  background:
    linear-gradient(180deg, #ece8df, #f7f2e8);
}

.adoption-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(34px, 6vw, 72px);
}

.adoption-steps article {
  min-height: 260px;
  padding: 22px;
}

.faq-section {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 6vw, 84px);
  background:
    radial-gradient(circle at 92% 18%, rgba(182, 93, 59, .1), transparent 32%),
    var(--site-paper);
}

.faq-list details {
  padding: 0;
}

.faq-list summary {
  cursor: pointer;
  padding: 20px;
  color: var(--site-ink);
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 24px;
  line-height: 1;
  text-transform: uppercase;
}

.faq-list p {
  margin: 0;
  padding: 0 20px 20px;
}

.council-grid details[open] p,
.faq-list details[open] p {
  animation: detailOpen .34s var(--motion-snap) both;
}

.problem-stack article,
.orientation-grid article,
.stack-board article,
.model-grid article,
.stagebook article,
.packet-grid article,
.proof-grid article,
.production-grid article,
.workshop-grid article,
.customer-grid article,
.maturity-rail article,
.adoption-steps article,
.faq-list details,
.doctrine-grid article,
.council-grid details {
  position: relative;
  overflow: hidden;
  transition: transform .38s var(--motion-snap), border-color .28s var(--motion-ease), box-shadow .38s var(--motion-ease), background-color .28s var(--motion-ease);
}

.problem-stack article::before,
.orientation-grid article::before,
.stack-board article::before,
.model-grid article::before,
.stagebook article::before,
.packet-grid article::before,
.proof-grid article::before,
.production-grid article::before,
.workshop-grid article::before,
.customer-grid article::before,
.maturity-rail article::before,
.adoption-steps article::before,
.faq-list details::before,
.doctrine-grid article::before,
.council-grid details::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 34%, rgba(255, 253, 246, .7) 48%, transparent 62%);
  opacity: 0;
  transform: translateX(-55%);
  transition: opacity .36s var(--motion-ease), transform .72s var(--motion-snap);
}

.problem-stack article > *,
.orientation-grid article > *,
.stack-board article > *,
.model-grid article > *,
.stagebook article > *,
.packet-grid article > *,
.proof-grid article > *,
.production-grid article > *,
.workshop-grid article > *,
.customer-grid article > *,
.maturity-rail article > *,
.adoption-steps article > *,
.faq-list details > *,
.doctrine-grid article > *,
.council-grid details > * {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
}

.stack-board h3,
.factory-rail strong,
.factory-rail small,
.council-grid summary,
.maturity-rail h3,
.maturity-rail small {
  overflow-wrap: anywhere;
}

.problem-stack article:hover,
.orientation-grid article:hover,
.stack-board article:hover,
.model-grid article:hover,
.stagebook article:hover,
.packet-grid article:hover,
.proof-grid article:hover,
.production-grid article:hover,
.workshop-grid article:hover,
.customer-grid article:hover,
.maturity-rail article:hover,
.adoption-steps article:hover,
.faq-list details:hover,
.doctrine-grid article:hover,
.council-grid details:hover {
  border-color: rgba(182, 93, 59, .42);
  box-shadow: var(--site-shadow-lift), inset 0 0 0 1px rgba(255, 253, 246, .64);
  transform: translateY(-6px);
}

.problem-stack article:hover::before,
.orientation-grid article:hover::before,
.stack-board article:hover::before,
.model-grid article:hover::before,
.stagebook article:hover::before,
.packet-grid article:hover::before,
.proof-grid article:hover::before,
.production-grid article:hover::before,
.workshop-grid article:hover::before,
.customer-grid article:hover::before,
.maturity-rail article:hover::before,
.adoption-steps article:hover::before,
.faq-list details:hover::before,
.doctrine-grid article:hover::before,
.council-grid details:hover::before {
  opacity: .7;
  transform: translateX(58%);
}

.gate-matrix [role="row"] {
  transition: background-color .28s var(--motion-ease);
}

.gate-matrix [role="row"]:not(.matrix-head):hover {
  background: rgba(182, 93, 59, .055);
}

.manifesto-lines p {
  transition: border-color .3s var(--motion-ease), transform .38s var(--motion-snap), color .3s var(--motion-ease);
}

.manifesto-lines p:hover {
  border-left-color: var(--site-gold);
  transform: translateX(8px);
}

.packet-grid svg {
  transition: transform .34s var(--motion-snap), color .28s var(--motion-ease);
}

.packet-grid article:hover svg {
  color: var(--site-gold);
  transform: translateY(-4px) rotate(-4deg);
}

body.motion-ready .site-shell .revealable {
  opacity: .98;
  filter: none;
  transform: translateY(10px);
  transition:
    opacity .48s var(--motion-snap) var(--reveal-delay, 0ms),
    transform .48s var(--motion-snap) var(--reveal-delay, 0ms);
}

body.motion-ready .site-shell .revealable.in-view {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

body.motion-ready .site-shell .revealable.reveal-slide {
  transform: translateY(10px);
}

body.motion-ready .site-shell .revealable.reveal-slide.in-view {
  transform: translateY(0);
}

@keyframes navDrop {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes titleRise {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(34px) scale(.98);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes riseFade {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes railDrift {
  from {
    transform: translateX(-8%);
  }

  to {
    transform: translateX(8%);
  }
}

@keyframes detailOpen {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes packetOpen {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(16px) scale(.99);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

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

  body.motion-ready .site-shell .revealable,
  body.motion-ready .site-shell .revealable.reveal-slide {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

.playground-footer {
  color: var(--paper);
  color-scheme: dark;
  border-top: 1px solid rgba(255, 243, 207, .18);
  background:
    linear-gradient(180deg, rgba(7, 19, 13, .96), rgba(3, 8, 5, 1) 38%),
    var(--night);
}

.footer-intro {
  padding-bottom: clamp(28px, 5vw, 64px);
}

.footer-intro h2 {
  max-width: 880px;
  margin-top: 14px;
  color: var(--paper);
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  line-height: .93;
  font-size: 128px;
}

.footer-intro p {
  max-width: 740px;
  margin-top: 22px;
  color: rgba(255, 243, 207, .78);
  font-size: 24px;
  line-height: 1.35;
}

.footer-note {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: rgba(255, 243, 207, .66);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.game-shell {
  height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(340px, 28vw, 440px);
  grid-template-rows: 64px minmax(0, 1fr);
  grid-template-areas:
    "topbar topbar"
    "world hud";
  background: rgba(7, 19, 13, .82);
}

.topbar {
  grid-area: topbar;
  z-index: 70;
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--white-line);
  background:
    linear-gradient(180deg, rgba(255, 243, 207, .08), transparent),
    rgba(7, 19, 13, .92);
  backdrop-filter: blur(18px);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 10px;
}

.brand span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 34px;
  color: var(--night);
  background: linear-gradient(135deg, var(--paper), #f3ca79);
  border: 2px solid var(--roof);
  box-shadow: 5px 5px 0 rgba(219, 107, 77, .45), 0 0 0 4px rgba(255, 243, 207, .08);
}

.brand small,
.mission-status span {
  color: rgba(255, 243, 207, .7);
}

.mission-status {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.mission-status strong {
  min-width: 0;
  overflow: hidden;
  color: var(--paper);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.topbar button,
.briefing-card button,
.task-buttons button,
.panel-head button,
.mobile-pad button,
.action-bar button,
.factory-tools button,
.factory-commands button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid var(--white-line);
  border-radius: 8px;
  color: var(--paper);
  background: rgba(255, 243, 207, .07);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.topbar button:hover,
.briefing-card button:hover,
.action-bar button:hover,
.factory-tools button:hover,
.factory-commands button:hover {
  border-color: rgba(247, 200, 95, .75);
  box-shadow: 0 0 0 3px rgba(247, 200, 95, .12);
}

.world-stage {
  grid-area: world;
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #143321;
  box-shadow: inset 0 0 0 1px rgba(255, 243, 207, .08), inset 0 -120px 140px rgba(7, 19, 13, .28);
}

.world-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 31px, rgba(24, 33, 23, .08) 31px 32px),
    linear-gradient(transparent 0 31px, rgba(24, 33, 23, .08) 31px 32px);
  background-size: 32px 32px;
  mix-blend-mode: multiply;
  opacity: .22;
}

.world-stage::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 6;
  height: 120px;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(7, 19, 13, .35));
}

#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  touch-action: none;
}

.briefing-card {
  position: absolute;
  left: 22px;
  top: 22px;
  z-index: 20;
  width: min(680px, calc(100% - 44px));
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(255, 243, 207, .26);
  border-radius: 10px;
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(219, 107, 77, .22), transparent 16px),
    linear-gradient(180deg, rgba(255, 243, 207, .08), transparent),
    rgba(7, 19, 13, .88);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 243, 207, .06);
  backdrop-filter: blur(16px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.briefing-card.closed {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
}

.kicker,
.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--leaf2);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 18px var(--sun);
}

h1,
h2,
h3,
p {
  margin: 0;
}

.briefing-card h2 {
  max-width: 620px;
  margin-top: 14px;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 64px;
  line-height: .86;
  letter-spacing: 0;
  text-transform: uppercase;
}

.briefing-card p,
.panel p,
.ending-card p {
  color: rgba(255, 243, 207, .76);
  line-height: 1.5;
}

.briefing-card p {
  max-width: 620px;
  margin-top: 18px;
  font-size: 18px;
}

.briefing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.primary-link {
  color: var(--ink) !important;
  background: var(--paper) !important;
  border-color: var(--paper) !important;
  box-shadow: 8px 8px 0 rgba(219, 107, 77, .45);
}

.world-toast {
  position: absolute;
  left: 22px;
  bottom: 92px;
  z-index: 25;
  max-width: min(520px, calc(100% - 44px));
  padding: 12px 14px;
  border: 1px solid rgba(247, 200, 95, .34);
  border-radius: 8px;
  color: var(--paper);
  background: rgba(7, 19, 13, .82);
  box-shadow: 0 18px 50px rgba(7, 16, 10, .28);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  text-transform: uppercase;
  transition: opacity .2s ease, transform .2s ease;
}

.world-toast.quiet {
  opacity: .58;
}

.mobile-pad {
  display: none;
  position: absolute;
  left: 12px;
  bottom: 16px;
  z-index: 30;
  align-items: end;
  gap: 8px;
  pointer-events: none;
}

.mobile-pad div {
  display: flex;
  gap: 6px;
}

.mobile-pad button {
  min-width: 48px;
  color: var(--ink);
  background: rgba(255, 243, 207, .9);
  border-color: rgba(24, 33, 23, .14);
  pointer-events: auto;
}

.action-bar {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 35;
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 243, 207, .24);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 243, 207, .08), transparent),
    rgba(7, 19, 13, .88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

.action-bar button {
  min-width: 92px;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
}

.action-bar button svg,
.topbar button svg,
.factory-commands button svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.4;
}

.action-bar button small {
  color: rgba(255, 243, 207, .62);
  font-size: 10px;
}

.action-bar button.active {
  color: var(--ink);
  background-color: var(--sun) !important;
  background-image: linear-gradient(135deg, var(--sun), #efb048) !important;
  border-color: var(--sun) !important;
}

.hud {
  grid-area: hud;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
  overflow: auto;
  border-left: 1px solid var(--white-line);
  background:
    linear-gradient(90deg, rgba(255, 243, 207, .08), transparent 18px),
    rgba(7, 19, 13, .92);
}

.panel {
  padding: 14px;
  border: 1px solid rgba(255, 243, 207, .18);
  border-radius: 10px;
  color: var(--paper);
  background:
    linear-gradient(180deg, rgba(255, 243, 207, .08), rgba(255, 243, 207, .025)),
    var(--panel);
  box-shadow: 0 18px 60px rgba(3, 8, 5, .24), inset 0 0 0 1px rgba(255, 243, 207, .05);
}

.panel.compact {
  padding: 12px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-head button {
  width: 42px;
  padding: 0;
  color: var(--paper);
  border-color: rgba(255, 243, 207, .18);
  background: rgba(255, 243, 207, .08);
}

.task-buttons,
.quest-steps,
.artifact-list,
.agent-roster,
#eventLog {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.task-buttons button {
  justify-content: flex-start;
  width: 100%;
  min-height: 56px;
  color: var(--paper);
  background: linear-gradient(135deg, rgba(87, 200, 148, .42), rgba(17, 40, 27, .88));
  border-color: rgba(135, 227, 175, .46);
  box-shadow: inset 4px 0 0 var(--leaf);
}

.task-buttons button small {
  display: block;
  color: rgba(255, 243, 207, .68);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.stat-grid div {
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(255, 243, 207, .14);
  border-radius: 10px;
  background: rgba(255, 243, 207, .08);
}

.factory-stats {
  grid-template-columns: repeat(2, 1fr);
}

.factory-stats strong {
  font-size: 21px;
}

.stat-grid strong,
.stat-grid span {
  display: block;
}

.factory-panel p {
  margin-bottom: 10px;
}

.factory-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.factory-tools button,
.factory-commands button {
  min-height: 44px;
  color: var(--paper);
  border-color: rgba(255, 243, 207, .16);
  background: rgba(255, 243, 207, .08);
}

.factory-tools button.active {
  color: var(--ink);
  background: linear-gradient(135deg, var(--sun), #efb048);
  border-color: var(--roof);
  box-shadow: 0 0 0 3px rgba(247, 200, 95, .16);
}

.factory-tools small {
  color: var(--muted);
}

.factory-commands {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.factory-commands button:last-child {
  grid-column: 1 / -1;
}

.stat-grid strong {
  overflow: hidden;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 22px;
  line-height: 1;
  text-overflow: ellipsis;
}

.stat-grid span {
  margin-top: 4px;
  color: rgba(255, 243, 207, .62);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.panel h2,
.panel h3,
.ending-card h2 {
  margin-top: 8px;
  color: var(--paper);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 36px;
  font-weight: 400;
  line-height: .95;
}

.panel h3 {
  font-size: 30px;
}

.panel p {
  margin-top: 8px;
  color: rgba(255, 243, 207, .72);
}

.step,
.artifact,
.agent-row,
.log-line {
  padding: 9px 10px;
  border: 1px solid rgba(255, 243, 207, .14);
  border-radius: 10px;
  background: rgba(255, 243, 207, .08);
}

.step.done {
  border-color: rgba(87, 200, 148, .7);
  background: rgba(87, 200, 148, .18);
}

.step.active {
  border-color: var(--roof);
  background: rgba(219, 107, 77, .16);
}

.step.awaiting {
  border-color: var(--sun);
  background: rgba(247, 200, 95, .18);
  box-shadow: inset 4px 0 0 var(--sun);
}

.artifact.empty {
  color: rgba(255, 243, 207, .58);
}

.artifact small {
  float: right;
  color: rgba(255, 243, 207, .58);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.agent-row {
  width: 100%;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 11px;
  color: var(--paper);
  text-align: left;
}

button.agent-row {
  min-height: 62px;
  font-family: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.agent-row.active {
  border-color: var(--sun);
  background: rgba(247, 200, 95, .2);
}

.agent-row.selected {
  outline: 2px solid var(--roof);
  outline-offset: 2px;
}

.agent-avatar {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 9px;
  background: rgba(255, 243, 207, .1);
}

.agent-row strong,
.agent-row span {
  display: block;
}

.agent-row strong {
  font-size: 13px;
}

.agent-row span {
  margin-top: 3px;
  color: rgba(255, 243, 207, .64);
  font-size: 12px;
}

#eventLog {
  max-height: 260px;
  overflow: auto;
}

.log-line {
  border-left: 5px solid var(--roof);
  line-height: 1.42;
}

.ending-card h2 {
  font-size: 56px;
}

.ending-card p {
  max-width: 780px;
  margin-top: 12px;
  color: rgba(255, 243, 207, .74);
}

.ending-stamp {
  width: max-content;
  max-width: 100%;
  margin-top: 18px;
  padding: 9px 13px;
  border: 4px solid var(--roof);
  color: var(--roof);
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 46px;
  line-height: .9;
  letter-spacing: 0;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

@media (max-width: 1080px) {
  .hero-title {
    font-size: 118px;
  }

  .section-copy h2,
  .manifesto-lines p,
  .split-proof h2,
  .footer-intro h2 {
    font-size: 58px;
  }

  .footer-intro h2 {
    font-size: 82px;
  }

  .site-nav {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .site-nav nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .why-section,
  .orientation-section,
  .readiness-section,
  .contact-section,
  .manifesto-band,
  .packet-anatomy,
  .split-proof,
  .faq-section {
    grid-template-columns: 1fr;
  }

  .doctrine-grid,
  .orientation-grid,
  .model-grid,
  .stagebook,
  .packet-grid,
  .proof-grid,
  .production-grid,
  .workshop-grid,
  .customer-grid,
  .adoption-steps {
    grid-template-columns: 1fr;
  }

  .stack-callout {
    grid-template-columns: 1fr;
  }

  .readiness-console {
    grid-template-columns: 1fr;
  }

  .readiness-score {
    min-height: 280px;
  }

  .contact-panel,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .dossier-board {
    grid-template-columns: 1fr;
  }

  .dossier-rail {
    grid-template-rows: auto;
  }

  .dossier-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dossier-intake {
    min-height: 0;
    align-content: start;
  }

  .dossier-ctas {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .factory-rail,
  .maturity-rail,
  .council-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    overflow: visible;
    padding-bottom: 0;
  }

  .factory-rail a::after {
    display: none;
  }

  .shift-matrix [role="row"] {
    grid-template-columns: 1fr;
  }

  .shift-matrix span {
    border-left: 0;
    border-top: 1px solid var(--site-line);
  }

  .shift-matrix span:first-child {
    border-top: 0;
    background: rgba(182, 93, 59, .06);
  }

  .shift-matrix .matrix-head {
    display: none;
  }

  .doctrine-grid article {
    min-height: 260px;
  }

  .game-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "topbar"
      "world";
  }

  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  }

  .hud {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 55;
    max-height: calc(100svh - 92px);
    border: 1px solid var(--white-line);
    border-radius: 12px;
    transform: translateY(calc(100% + 24px));
    transition: transform .22s ease;
  }

  .hud.open {
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .site-nav {
    padding: 10px;
  }

  .site-mark strong {
    display: none;
  }

  .site-nav nav {
    flex-wrap: wrap;
    gap: 16px;
    overflow: visible;
    font-size: 11px;
  }

  .site-nav nav a {
    min-height: 34px;
    padding: 0 6px;
  }

  .site-hero {
    min-height: 86svh;
    padding: 150px 16px 48px;
    background:
      linear-gradient(180deg, rgba(241, 239, 233, .92), rgba(241, 239, 233, .96)),
      image-set(url("assets/agentdlc-control-room.webp") type("image/webp"), url("assets/agentdlc-control-room.png") type("image/png")) center / cover no-repeat;
  }

  .hero-title {
    font-size: 58px;
    line-height: .84;
  }

  .hero-copy p,
  .section-copy p,
  .footer-intro p {
    font-size: 17px;
  }

  .hero-ledger {
    grid-template-columns: 1fr;
  }

  .hero-ledger span {
    min-height: 48px;
  }

  .manifesto-band,
  .stack-section,
  .model-section,
  .lifecycle-section,
  .dossier-section,
  .why-section,
  .orientation-section,
  .stagebook-section,
  .packet-section,
  .gate-section,
  .proof-section,
  .production-section,
  .readiness-section,
  .workshop-section,
  .contact-section,
  .adoption-section,
  .faq-section,
  .customer-section,
  .maturity-section,
  .council-section,
  .footer-intro {
    padding: 56px 16px;
  }

  .section-copy h2,
  .manifesto-lines p,
  .split-proof h2,
  .footer-intro h2 {
    font-size: 38px;
  }

  .site-shell .section-copy h2,
  .site-shell .manifesto-lines p,
  .site-shell .split-proof h2,
  .playground-footer .footer-intro h2 {
    max-width: 100%;
    font-size: clamp(38px, 11vw, 46px);
    line-height: 1;
    overflow-wrap: anywhere;
  }

  .site-shell .manifesto-lines p {
    padding-left: 16px;
  }

  .hero-copy p,
  .site-shell .section-copy p,
  .playground-footer .footer-intro p {
    font-size: 17px;
    line-height: 1.42;
  }

  .hero-actions {
    display: grid;
  }

  .readiness-actions {
    display: grid;
  }

  .readiness-actions a {
    justify-content: center;
    width: 100%;
  }

  .contact-output-actions {
    display: grid;
  }

  .contact-output-actions a,
  .contact-output-actions button {
    width: 100%;
  }

  .hero-button {
    width: 100%;
    justify-content: flex-start;
  }

  .manifesto-lines strong {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
  }

  .dossier-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .factory-rail,
  .maturity-rail,
  .council-grid,
  .dossier-ctas {
    grid-template-columns: 1fr;
    overflow: visible;
    padding-bottom: 0;
  }

  .problem-stack h3,
  .orientation-grid h3,
  .model-grid h3,
  .proof-grid h3,
  .production-grid h3,
  .customer-grid h3,
  .maturity-rail h3,
  .stagebook h3,
  .packet-grid h3,
  .adoption-steps h3 {
    font-size: 24px;
  }

  .dossier-panel {
    min-height: 0;
    padding: 24px;
  }

  .dossier-panel h3 {
    font-size: 42px;
  }

  .dossier-panel p {
    font-size: 17px;
  }

  .dossier-panel dl {
    grid-template-columns: 1fr;
  }

  .dossier-output {
    grid-template-columns: 1fr;
  }

  .dossier-output div {
    min-height: 0;
  }

  .packet-spine,
  .packet-example {
    padding: 20px;
  }

  .packet-spine li {
    min-height: 0;
    padding: 52px 0 0;
  }

  .packet-example code {
    font-size: 12px;
  }

  .gate-matrix {
    border-radius: 8px;
  }

  .gate-matrix [role="row"] {
    grid-template-columns: 1fr;
  }

  .gate-matrix span {
    border-left: 0;
    border-top: 1px solid var(--site-line);
    padding: 14px;
  }

  .gate-matrix span:first-child {
    border-top: 0;
    background: rgba(182, 93, 59, .06);
  }

  .gate-matrix .matrix-head {
    display: none;
  }

  .faq-list summary {
    font-size: 21px;
  }

  .footer-note {
    display: grid;
  }

  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 58px;
    padding: 8px;
  }

  .game-shell {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .brand small,
  .mission-status span,
  #toggleGuide {
    display: none;
  }

  .mission-status strong {
    font-size: 10px;
    line-height: 1.25;
    white-space: normal;
    text-overflow: clip;
  }

  .topbar button {
    min-width: 42px;
    padding: 0 10px;
  }

  #resetTop {
    display: none;
  }

  .briefing-card {
    left: 10px;
    top: 10px;
    width: calc(100% - 20px);
    max-height: calc(100svh - 190px);
    overflow: auto;
  }

  .briefing-card h2 {
    font-size: 40px;
  }

  .briefing-card p {
    font-size: 15px;
  }

  .world-toast {
    left: 10px;
    right: 10px;
    bottom: 142px;
    max-width: none;
    font-size: 10px;
  }

  .mobile-pad {
    display: flex;
  }

  .action-bar {
    left: auto;
    right: 10px;
    bottom: 10px;
    max-width: calc(100% - 138px);
    display: grid;
    grid-template-columns: repeat(3, minmax(58px, 1fr));
    transform: none;
  }

  body.hud-open .action-bar,
  body.hud-open .mobile-pad {
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
  }

  .action-bar button {
    min-width: 0;
    min-height: 48px;
    padding: 5px 7px;
  }

  .action-bar button span {
    display: none;
  }

  .action-bar button small {
    font-size: 9px;
  }

  .panel h2 {
    font-size: 32px;
  }

  .panel h3 {
    font-size: 26px;
  }

  .factory-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
