:root {
  color-scheme: light;
  --paper: #f7f3e7;
  --paper-deep: #e4dece;
  --ink: #071720;
  --ink-soft: #1d3038;
  --muted: #3f5058;
  --line: rgba(7, 23, 32, 0.42);
  --line-soft: rgba(39, 95, 109, 0.34);
  --teal: #2e7487;
  --teal-dark: #164c5b;
  --gold: #b68327;
  --gold-soft: rgba(182, 131, 39, 0.26);
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --hero-wash-a: rgba(247, 243, 231, 0.98);
  --hero-wash-b: rgba(247, 243, 231, 0.9);
  --hero-wash-c: rgba(247, 243, 231, 0.33);
  --grid-line: rgba(7, 23, 32, 0.08);
  --contour-line: rgba(46, 116, 135, 0.17);
  --scan-a: rgba(46, 116, 135, 0.22);
  --scan-b: rgba(182, 131, 39, 0.26);
  --shadow: rgba(7, 23, 32, 0.24);
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #061016;
  --paper-deep: #0c1c24;
  --ink: #f4f0df;
  --ink-soft: #d6dfdb;
  --muted: #a9b9b7;
  --line: rgba(230, 238, 230, 0.46);
  --line-soft: rgba(106, 198, 215, 0.36);
  --teal: #6fd0e4;
  --teal-dark: #8bddeb;
  --gold: #f0bd5c;
  --gold-soft: rgba(240, 189, 92, 0.22);
  --surface: rgba(8, 21, 29, 0.78);
  --surface-strong: rgba(10, 26, 36, 0.94);
  --hero-wash-a: rgba(6, 16, 22, 0.98);
  --hero-wash-b: rgba(6, 16, 22, 0.88);
  --hero-wash-c: rgba(6, 16, 22, 0.48);
  --grid-line: rgba(244, 240, 223, 0.12);
  --contour-line: rgba(111, 208, 228, 0.19);
  --scan-a: rgba(111, 208, 228, 0.22);
  --scan-b: rgba(240, 189, 92, 0.28);
  --shadow: rgba(0, 0, 0, 0.46);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 12% 8%, var(--line-soft), transparent 32%),
    radial-gradient(ellipse at 86% 24%, var(--gold-soft), transparent 30%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  transition: background-color 240ms ease, color 240ms ease;
}

body::before {
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    repeating-radial-gradient(ellipse at 16% 18%, transparent 0 18px, var(--contour-line) 19px 21px, transparent 22px 44px),
    repeating-radial-gradient(ellipse at 88% 8%, transparent 0 20px, var(--contour-line) 21px 23px, transparent 24px 48px);
  background-size: 128px 128px, 128px 128px, 560px 380px, 640px 440px;
  content: "";
  inset: 0;
  opacity: 0.72;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

a {
  color: inherit;
}

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

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}

.site-hero {
  background:
    radial-gradient(circle at 82% 30%, var(--line-soft), transparent 30%),
    radial-gradient(circle at 92% 72%, var(--gold-soft), transparent 24%),
    linear-gradient(90deg, var(--hero-wash-a) 0%, var(--hero-wash-b) 58%, var(--hero-wash-c) 100%),
    var(--paper);
  border-bottom: 2px solid var(--ink);
  min-height: 88vh;
  overflow: hidden;
  padding: 22px clamp(18px, 4vw, 64px) 64px;
  position: relative;
}

.site-hero::before {
  animation: intelligenceScan 11s linear infinite;
  background: linear-gradient(90deg, transparent 0%, var(--scan-a) 48%, var(--scan-b) 50%, transparent 54%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  transform: translateX(-120%);
  z-index: 0;
}

.site-hero::after {
  animation: mapDrift 34s linear infinite;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 86px 86px;
  content: "";
  inset: -120px;
  opacity: 0.34;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.topbar,
.hero-stage {
  position: relative;
  z-index: 2;
}

.cosmic-field {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.orbit {
  animation: orbitTurn 28s linear infinite;
  border: 1px solid rgba(65, 124, 138, 0.42);
  border-radius: 50%;
  height: clamp(240px, 38vw, 620px);
  position: absolute;
  right: clamp(18px, 8vw, 160px);
  top: 15%;
  width: clamp(240px, 38vw, 620px);
}

.orbit::before,
.orbit::after {
  background: rgba(198, 155, 78, 0.86);
  border: 2px solid rgba(18, 34, 43, 0.82);
  border-radius: 50%;
  content: "";
  height: 12px;
  position: absolute;
  width: 12px;
}

.orbit::before {
  left: 11%;
  top: 20%;
}

.orbit::after {
  bottom: 13%;
  right: 17%;
}

.orbit-two {
  animation-duration: 38s;
  animation-direction: reverse;
  height: clamp(310px, 48vw, 760px);
  opacity: 0.62;
  right: clamp(-80px, 1vw, 60px);
  top: 7%;
  width: clamp(310px, 48vw, 760px);
}

.orbit-three {
  animation-duration: 46s;
  border-style: dashed;
  height: clamp(180px, 26vw, 420px);
  opacity: 0.7;
  right: clamp(120px, 16vw, 300px);
  top: 29%;
  width: clamp(180px, 26vw, 420px);
}

.signal {
  animation: signalPulse 5.8s ease-in-out infinite;
  background: linear-gradient(90deg, transparent, rgba(65, 124, 138, 0.72), rgba(198, 155, 78, 0.88), transparent);
  height: 2px;
  opacity: 0;
  position: absolute;
  right: -8%;
  top: 34%;
  transform: rotate(-18deg);
  transform-origin: center;
  width: 58vw;
}

.signal-two {
  animation-delay: 2.4s;
  right: 2%;
  top: 64%;
  --signal-angle: 15deg;
  transform: rotate(15deg);
  width: 48vw;
}

.node {
  animation: nodeBreathe 4.8s ease-in-out infinite;
  background: rgba(244, 242, 232, 0.74);
  border: 2px solid rgba(198, 155, 78, 0.86);
  border-radius: 50%;
  box-shadow: 0 0 0 12px rgba(198, 155, 78, 0.1), 0 0 30px rgba(65, 124, 138, 0.22);
  height: 18px;
  position: absolute;
  width: 18px;
}

.node-one {
  right: 31%;
  top: 22%;
}

.node-two {
  animation-delay: 1.4s;
  right: 11%;
  top: 51%;
}

.node-three {
  animation-delay: 2.8s;
  right: 39%;
  top: 72%;
}

.topbar {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 46px;
}

.brand,
.nav-links a {
  text-decoration: none;
}

.brand {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.nav-links a {
  border: 1px solid transparent;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.82rem;
  padding: 8px 10px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--surface);
  border-color: var(--line);
  outline: none;
}

.theme-toggle {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
  gap: 8px;
  min-height: 34px;
  padding: 7px 10px;
  text-transform: uppercase;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: var(--surface-strong);
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.theme-toggle-icon {
  background: var(--ink);
  border: 1px solid var(--gold);
  border-radius: 50%;
  box-shadow: inset -5px -3px 0 var(--paper);
  display: inline-block;
  height: 14px;
  width: 14px;
}

.hero-stage {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 74px);
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.72fr);
  min-height: calc(88vh - 120px);
  padding-top: clamp(42px, 8vw, 108px);
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  color: var(--teal-dark);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.55rem, 6.2vw, 5.7rem);
  letter-spacing: 0;
  line-height: 0.96;
  margin-top: 16px;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2rem, 4.6vw, 4.8rem);
  letter-spacing: 0;
  line-height: 0.98;
}

h3 {
  font-size: clamp(1.08rem, 1.5vw, 1.35rem);
  line-height: 1.15;
}

.hero-lede {
  color: var(--ink-soft);
  font-size: clamp(1.04rem, 1.7vw, 1.32rem);
  margin-top: 24px;
  max-width: 660px;
}

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

.button {
  align-items: center;
  border: 2px solid var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 12px 16px;
  text-decoration: none;
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
}

.button.secondary {
  background: var(--surface);
  color: var(--ink);
}

input,
textarea {
  background: var(--surface-strong);
  border: 2px solid var(--ink);
  color: var(--ink);
  font: inherit;
  width: 100%;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

textarea {
  resize: vertical;
}

.book-feature {
  animation: panelFloat 7s ease-in-out infinite;
  align-items: stretch;
  background: var(--surface-strong);
  border: 2px solid var(--ink);
  box-shadow: 0 16px 38px var(--shadow);
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(150px, 0.62fr) minmax(0, 1fr);
  padding: 18px;
}

.book-cover-image {
  align-self: center;
  aspect-ratio: 784 / 1168;
  border: 2px solid var(--ink);
  box-shadow: 0 12px 24px rgba(18, 34, 43, 0.24);
  height: auto;
  width: 100%;
}

.book-cover-image {
  animation: coverGlow 6.5s ease-in-out infinite;
}

.book-copy {
  align-self: center;
}

.book-copy h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-top: 8px;
}

.book-copy p:not(.eyebrow) {
  color: var(--ink-soft);
  margin-top: 14px;
}

.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.book-actions .button {
  font-size: 0.8rem;
}

.book-audio {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
}

.book-audio[hidden] {
  display: none;
}

.book-audio audio {
  width: 100%;
}

.button:hover,
.button:focus-visible,
.resource-card:hover,
.resource-card:focus-visible {
  filter: contrast(1.08);
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.book-intro-band {
  background: var(--gold-soft);
  border-bottom: 2px solid var(--gold);
  border-top: 2px solid var(--gold);
  padding: 18px clamp(18px, 4vw, 64px);
}

.book-intro-band div {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: center;
  text-align: center;
}

.book-intro-band span {
  color: var(--teal-dark);
  font-family: var(--mono);
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.book-intro-band strong {
  font-family: var(--mono);
  font-size: clamp(0.9rem, 1.25vw, 1.08rem);
  max-width: 980px;
}

.new-book-section {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(7, 23, 32, 0.96), rgba(12, 28, 36, 0.91)),
    var(--paper-deep);
  border-bottom: 2px solid var(--gold);
  color: #f7f3e7;
  display: grid;
  gap: clamp(40px, 8vw, 110px);
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  overflow: hidden;
  padding: clamp(64px, 9vw, 118px) clamp(18px, 7vw, 110px);
  position: relative;
}

.new-book-section::after {
  background-image:
    linear-gradient(rgba(240, 189, 92, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 189, 92, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.new-book-visual,
.new-book-copy {
  position: relative;
  z-index: 1;
}

.new-book-visual {
  justify-self: center;
  max-width: 390px;
  width: 100%;
}

.new-book-visual img {
  border: 1px solid rgba(247, 243, 231, 0.7);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55), 0 0 46px rgba(240, 189, 92, 0.2);
  display: block;
  height: auto;
  position: relative;
  width: 100%;
  z-index: 2;
}

.book-orbit {
  border: 1px solid rgba(240, 189, 92, 0.35);
  inset: 8% -16%;
  position: absolute;
  transform: rotate(9deg);
}

.book-orbit-inner {
  inset: 15% -9%;
  transform: rotate(-7deg);
}

.new-book-copy {
  max-width: 720px;
}

.new-book-copy .eyebrow {
  color: #f0bd5c;
}

.new-book-copy h2 {
  color: #ffffff;
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  line-height: 0.98;
  margin-top: 12px;
  max-width: 900px;
}

.new-book-subtitle {
  color: #f0bd5c;
  font-family: var(--mono);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 800;
  margin-top: 18px;
  text-transform: uppercase;
}

.new-book-copy > p:not(.eyebrow):not(.new-book-subtitle) {
  color: #dce5e1;
  font-size: 1.12rem;
  margin-top: 24px;
  max-width: 650px;
}

.new-book-principles {
  border-bottom: 1px solid rgba(247, 243, 231, 0.35);
  border-top: 1px solid rgba(247, 243, 231, 0.35);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 30px 0;
  padding: 16px 0;
}

.new-book-principles span {
  color: #f7f3e7;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.new-book-copy .button.primary {
  background: #f0bd5c;
  border-color: #f0bd5c;
  color: #071720;
}

.split-section,
.image-led,
.featured-video-section,
.pipeline-section,
.interventions-section,
.briefing-section,
.system-section,
.contact-section {
  padding: clamp(58px, 9vw, 118px) clamp(18px, 4vw, 64px);
}

.split-section,
.image-led,
.featured-video-section,
.contact-section {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 76px);
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
}

.section-copy,
.image-led div,
.featured-video-copy,
.contact-section div {
  max-width: 680px;
}

.section-copy h2,
.image-led h2,
.featured-video-copy h2,
.contact-section h2,
.section-heading h2 {
  margin-top: 12px;
}

.section-copy > p:not(.eyebrow),
.image-led p:not(.eyebrow),
.featured-video-copy p:not(.eyebrow),
.contact-section p,
.section-heading + p {
  color: var(--ink-soft);
  font-size: 1.06rem;
  margin-top: 20px;
}

.profile-list {
  border: 2px solid var(--ink);
  background: var(--surface);
  margin-top: 30px;
}

.profile-list div {
  display: grid;
  gap: 16px;
  grid-template-columns: 120px minmax(0, 1fr);
  padding: 18px;
}

.profile-list div + div {
  border-top: 1px solid var(--line);
}

.profile-list dt {
  color: var(--teal-dark);
  font-family: var(--mono);
  font-weight: 800;
  text-transform: uppercase;
}

.profile-list dd {
  color: var(--ink);
  font-family: var(--mono);
}

.framed-media,
.image-led figure,
.featured-video-frame,
.video-grid figure {
  background: var(--surface);
  border: 2px solid var(--ink);
  box-shadow: 0 14px 34px var(--shadow);
}

.framed-media img,
.image-led img {
  width: 100%;
}

.system-section {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 960px;
}

.system-grid,
.resource-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
}

.system-card,
.resource-card {
  background: var(--surface);
  border: 2px solid var(--ink);
  min-height: 230px;
  padding: 22px;
}

.system-card.accent {
  background: var(--gold-soft);
}

.system-card span,
.resource-card span,
.pipeline-step span {
  color: var(--teal-dark);
  display: block;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.system-card p,
.resource-card p,
.pipeline-step p {
  color: var(--muted);
  margin-top: 14px;
}

.image-led {
  grid-template-columns: minmax(420px, 1.1fr) minmax(0, 0.9fr);
}

.featured-video-section {
  background: var(--surface);
  border-bottom: 2px solid var(--ink);
  border-top: 2px solid var(--ink);
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1fr);
}

.featured-video-frame {
  justify-self: center;
  max-width: 380px;
  width: 100%;
}

.featured-video-frame video {
  aspect-ratio: 406 / 720;
  background: var(--ink);
  object-fit: cover;
  width: 100%;
}

.frontier-video-section {
  grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1fr);
}

.frontier-video-frame {
  justify-self: stretch;
  max-width: 620px;
  width: 100%;
}

.frontier-video-frame video {
  aspect-ratio: 16 / 9;
  background: var(--ink);
  object-fit: cover;
  width: 100%;
}

.featured-video-copy .button {
  margin-top: 26px;
}

.pipeline {
  align-items: stretch;
  display: grid;
  gap: 42px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 38px;
  position: relative;
}

.pipeline-step {
  background: var(--surface);
  border: 2px solid var(--ink);
  min-height: 220px;
  padding: 22px;
  position: relative;
}

.pipeline-step::after {
  border-bottom: 18px solid transparent;
  border-left: 26px solid var(--ink);
  border-top: 18px solid transparent;
  content: "";
  position: absolute;
  right: -35px;
  top: calc(50% - 18px);
}

.pipeline-step:last-child::after {
  display: none;
}

.pipeline-step.active {
  border-color: var(--teal);
  box-shadow: inset 0 0 0 3px var(--line-soft);
}

.interventions-section {
  background: var(--surface);
  border-bottom: 2px solid var(--ink);
  border-top: 2px solid var(--ink);
}

.case-study {
  background: var(--surface-strong);
  border: 2px solid var(--ink);
  box-shadow: 0 14px 34px var(--shadow);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.85fr);
  margin-top: 34px;
  padding: clamp(22px, 4vw, 40px);
}

.case-study-copy {
  max-width: 760px;
}

.case-study-copy h3 {
  font-size: clamp(1.65rem, 3vw, 3rem);
  margin-top: 10px;
}

.case-study-copy p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 1.04rem;
  margin-top: 18px;
}

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

.case-study-map {
  align-self: stretch;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  grid-template-rows: 1fr auto;
  margin: 0;
  min-height: 310px;
  overflow: hidden;
}

.case-study-map img,
.case-study-map video {
  align-self: center;
  background: #ffffff;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.case-study-map video {
  aspect-ratio: 16 / 9;
  background: var(--ink);
}

.case-study-map .case-study-video {
  object-fit: contain;
}

.science-map {
  min-height: 330px;
}

.science-intervention-diagram {
  align-items: center;
  background:
    linear-gradient(90deg, transparent 49%, var(--line) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, var(--line) 50%, transparent 51%),
    radial-gradient(circle at center, var(--surface-strong), var(--surface) 68%);
  display: grid;
  min-height: 100%;
  overflow: hidden;
  place-items: center;
  position: relative;
}

.science-ring,
.science-axis,
.science-core {
  position: absolute;
}

.science-ring {
  aspect-ratio: 1;
  border: 2px solid var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 24px var(--line-soft);
}

.ring-one {
  width: 36%;
}

.ring-two {
  animation: orbitPulse 9s ease-in-out infinite;
  border-color: var(--gold);
  width: 58%;
}

.ring-three {
  animation: orbitPulse 12s ease-in-out infinite reverse;
  border-color: var(--ink);
  opacity: 0.58;
  width: 78%;
}

.science-axis {
  background: var(--teal);
  height: 2px;
  opacity: 0.72;
  width: 84%;
}

.axis-one {
  transform: rotate(28deg);
}

.axis-two {
  transform: rotate(-28deg);
}

.science-core {
  align-items: center;
  aspect-ratio: 1;
  background: var(--ink);
  border: 2px solid var(--gold);
  color: var(--paper);
  display: grid;
  font-family: var(--mono);
  font-size: clamp(2rem, 5vw, 4.8rem);
  font-weight: 800;
  place-items: center;
  width: 21%;
}

@keyframes orbitPulse {
  0%,
  100% {
    transform: scale(0.96) rotate(0deg);
  }

  50% {
    transform: scale(1.04) rotate(7deg);
  }
}

.case-study-map figcaption {
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.82rem;
  padding: 10px 12px;
}

.case-study-panel {
  border: 1px solid var(--line);
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-study-panel a {
  background: var(--surface);
  color: inherit;
  padding: 18px;
  text-decoration: none;
}

.case-study-panel a + a {
  border-left: 1px solid var(--line);
}

.case-study-panel span,
.case-study-flow a {
  color: var(--teal-dark);
  display: block;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.case-study-panel strong {
  display: block;
  font-family: var(--mono);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  margin-top: 8px;
}

.case-study-panel p {
  color: var(--muted);
  margin-top: 8px;
}

.case-study-panel a:hover,
.case-study-panel a:focus-visible {
  background: var(--surface-strong);
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.case-study-flow {
  border-top: 2px solid var(--ink);
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-top: 20px;
}

.case-study-flow a {
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 12px;
  position: relative;
  text-align: center;
  text-decoration: none;
}

.case-study-flow a:hover,
.case-study-flow a:focus-visible {
  background: var(--surface);
  border-color: var(--gold);
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.case-study-flow a:not(:last-child)::after {
  color: var(--gold);
  content: ">";
  position: absolute;
  right: -12px;
  top: calc(50% - 11px);
}

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

.resource-card {
  color: inherit;
  min-height: 210px;
  text-decoration: none;
}

.video-grid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 28px;
}

.video-grid video {
  aspect-ratio: 16 / 9;
  background: var(--ink);
  width: 100%;
}

.video-grid figcaption {
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.9rem;
  padding: 12px 14px;
}

.contact-section {
  background: var(--surface);
  border-bottom: 2px solid var(--ink);
  border-top: 2px solid var(--ink);
}

.contact-forms {
  display: grid;
  gap: 16px;
}

.site-form {
  background: var(--surface-strong);
  border: 2px solid var(--ink);
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 30px);
}

.compact-form {
  background: var(--surface);
}

.form-heading h3 {
  margin-top: 8px;
}

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

.site-form label span {
  color: var(--teal-dark);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.site-form input,
.site-form textarea {
  padding: 12px;
}

.form-hp {
  display: none;
}

.response-page {
  align-items: center;
  display: grid;
  min-height: 100vh;
  padding: clamp(24px, 5vw, 70px);
}

.response-card {
  background: var(--surface-strong);
  border: 2px solid var(--ink);
  box-shadow: 0 14px 34px var(--shadow);
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 760px;
  padding: clamp(24px, 5vw, 56px);
}

.response-card h1 {
  font-size: clamp(2.2rem, 6vw, 4.8rem);
}

.site-footer {
  align-items: center;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  font-family: var(--mono);
  gap: 10px 22px;
  justify-content: space-between;
  padding: 24px clamp(18px, 4vw, 64px);
}

.site-footer.generated-footer {
  border-top: 1px solid var(--line);
  margin-top: clamp(40px, 7vw, 88px);
}

.fine-print {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  flex-basis: 100%;
  font-family: var(--sans);
  font-size: 0.72rem;
  gap: 6px;
  line-height: 1.45;
  margin-top: 14px;
  padding-top: 14px;
}

.fine-print span {
  display: block;
}

.works-hero {
  border-bottom: 2px solid var(--ink);
  min-height: 58vh;
  overflow: hidden;
  padding: 22px clamp(18px, 4vw, 64px) 72px;
  position: relative;
}

.works-hero::before {
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    radial-gradient(ellipse at 78% 16%, var(--gold-soft), transparent 36%),
    radial-gradient(ellipse at 14% 30%, var(--line-soft), transparent 34%);
  background-size: 104px 104px, 104px 104px, auto, auto;
  content: "";
  inset: 0;
  opacity: 0.9;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.works-hero .topbar,
.works-hero-copy {
  position: relative;
  z-index: 1;
}

.works-hero-copy {
  max-width: 980px;
  padding-top: clamp(70px, 10vw, 132px);
}

.works-hero-copy h1 {
  max-width: 980px;
}

.works-hero-copy p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.8vw, 1.34rem);
  margin-top: 24px;
  max-width: 790px;
}

.works-note {
  background: var(--surface);
  border-bottom: 2px solid var(--ink);
  padding: 20px clamp(18px, 4vw, 64px);
}

.works-note div {
  align-items: center;
  display: flex;
  gap: 18px;
  max-width: 1120px;
}

.works-note span {
  color: var(--teal-dark);
  font-family: var(--mono);
  font-weight: 800;
  text-transform: uppercase;
}

.works-note p {
  color: var(--ink-soft);
}

.works-section {
  padding: clamp(58px, 9vw, 118px) clamp(18px, 4vw, 64px);
}

.products-downloads-section {
  background: var(--surface);
  border-top: 2px solid var(--ink);
}

.column-section {
  border-bottom: 2px solid var(--ink);
  padding: clamp(58px, 8vw, 96px) clamp(18px, 4vw, 64px);
}

.column-entry {
  align-items: stretch;
  background: var(--surface-strong);
  border: 2px solid var(--ink);
  display: grid;
  grid-template-columns: minmax(130px, 0.18fr) minmax(0, 1fr);
  margin-top: 34px;
}

.works-timeline {
  display: grid;
  gap: 18px;
  margin-top: 38px;
}

.work-entry {
  align-items: stretch;
  background: var(--surface);
  border: 2px solid var(--ink);
  display: grid;
  grid-template-columns: minmax(130px, 0.18fr) minmax(0, 1fr);
}

.work-entry.pending {
  border-style: dashed;
}

.work-date {
  align-items: flex-start;
  border-right: 2px solid var(--ink);
  color: var(--teal-dark);
  display: flex;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 24px 18px;
}

.work-body {
  padding: clamp(20px, 3vw, 30px);
}

.work-body h3 {
  font-size: clamp(1.35rem, 2.5vw, 2.25rem);
  margin-top: 8px;
}

.work-body p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 1.03rem;
  margin-top: 14px;
  max-width: 900px;
}

.work-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.work-links .button {
  font-size: 0.78rem;
  min-height: 40px;
  padding: 9px 12px;
}

.editorial-article {
  background: var(--surface-strong);
  border: 2px solid var(--ink);
  box-shadow: 0 14px 34px var(--shadow);
  margin: clamp(44px, 7vw, 86px) auto;
  max-width: 980px;
  padding: clamp(24px, 5vw, 64px);
}

.editorial-article p {
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.45vw, 1.18rem);
  line-height: 1.72;
}

.editorial-article h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.4rem);
}

.editorial-article p + p,
.editorial-links + p {
  margin-top: 1.15em;
}

.editorial-note,
.editorial-media-block {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 18px;
}

.editorial-media-block {
  display: grid;
  gap: 18px;
  margin: 30px 0;
}

.editorial-media-block audio {
  width: 100%;
}

.editorial-links {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
  padding: 18px 0;
}

.editorial-gallery {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.editorial-gallery .section-heading {
  margin-bottom: 6px;
}

.editorial-gallery figure {
  background: var(--surface);
  border: 1px solid var(--line);
  margin: 0;
}

.editorial-gallery img {
  display: block;
  width: 100%;
}

.editorial-gallery figcaption {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.5;
  padding: 12px 14px;
}

@media (max-width: 1040px) {
  .hero-stage {
    grid-template-columns: 1fr;
  }

  .split-section,
  .image-led,
  .featured-video-section,
  .contact-section,
  .new-book-section {
    grid-template-columns: 1fr;
  }

  .new-book-visual {
    max-width: 330px;
  }

  .system-grid,
  .pipeline,
  .case-study {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pipeline-step::after {
    display: none;
  }
}

@media (max-width: 720px) {
  .site-hero {
    background:
      radial-gradient(circle at 82% 22%, var(--line-soft), transparent 32%),
      linear-gradient(var(--hero-wash-a), var(--hero-wash-b)),
      var(--paper);
    min-height: 86vh;
  }

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

  .nav-links {
    justify-content: flex-start;
  }

  .hero-stage {
    padding-top: 58px;
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 3.8rem);
  }

  .book-intro-band div,
  .profile-list div {
    align-items: flex-start;
    flex-direction: column;
    display: flex;
  }

  .system-grid,
  .resource-grid,
  .pipeline,
  .video-grid,
  .case-study,
  .case-study-flow {
    grid-template-columns: 1fr;
  }

  .system-card,
  .resource-card,
  .pipeline-step {
    min-height: 0;
  }

  .book-feature {
    grid-template-columns: 1fr;
  }

  .case-study-flow a:not(:last-child)::after {
    content: "";
  }

  .case-study-panel {
    grid-template-columns: 1fr;
  }

  .case-study-panel a + a {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .works-note div {
    align-items: flex-start;
    flex-direction: column;
  }

  .work-entry,
  .column-entry {
    grid-template-columns: 1fr;
  }

  .work-date {
    border-bottom: 2px solid var(--ink);
    border-right: 0;
    padding: 14px 18px;
  }

}

@keyframes intelligenceScan {
  0% {
    transform: translateX(-120%);
  }

  42%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes mapDrift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(86px, 86px, 0);
  }
}

@keyframes orbitTurn {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes signalPulse {
  0%,
  100% {
    opacity: 0;
    transform: translateX(12%) rotate(var(--signal-angle, -18deg));
  }

  42% {
    opacity: 0.72;
  }

  58% {
    opacity: 0.28;
    transform: translateX(-8%) rotate(var(--signal-angle, -18deg));
  }
}

@keyframes nodeBreathe {
  0%,
  100% {
    transform: scale(0.82);
  }

  50% {
    transform: scale(1.18);
  }
}

@keyframes panelFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes coverGlow {
  0%,
  100% {
    box-shadow: 0 12px 24px rgba(18, 34, 43, 0.24), 0 0 0 rgba(198, 155, 78, 0);
  }

  50% {
    box-shadow: 0 16px 30px rgba(18, 34, 43, 0.28), 0 0 34px rgba(198, 155, 78, 0.24);
  }
}

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