:root {
  color-scheme: light;
  --paper: #f4f2e8;
  --paper-deep: #e9e6d8;
  --ink: #12222b;
  --ink-soft: #314149;
  --muted: #647177;
  --line: rgba(18, 34, 43, 0.26);
  --line-soft: rgba(65, 113, 126, 0.22);
  --teal: #417c8a;
  --teal-dark: #285766;
  --gold: #c69b4e;
  --gold-soft: rgba(198, 155, 78, 0.24);
  --white: rgba(255, 255, 255, 0.58);
  --shadow: rgba(18, 34, 43, 0.18);
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 12% 8%, rgba(65, 124, 138, 0.13), transparent 32%),
    radial-gradient(ellipse at 86% 24%, rgba(198, 155, 78, 0.12), transparent 30%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
}

body::before {
  background:
    linear-gradient(rgba(18, 34, 43, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 34, 43, 0.055) 1px, transparent 1px),
    repeating-radial-gradient(ellipse at 16% 18%, transparent 0 18px, rgba(65, 124, 138, 0.13) 19px 21px, transparent 22px 44px),
    repeating-radial-gradient(ellipse at 88% 8%, transparent 0 20px, rgba(65, 124, 138, 0.11) 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:
    linear-gradient(90deg, rgba(244, 242, 232, 0.97) 0%, rgba(244, 242, 232, 0.88) 39%, rgba(244, 242, 232, 0.25) 72%),
    url("assets/impossible/cover-clean.jpg") center / cover;
  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%, rgba(65, 124, 138, 0.16) 48%, rgba(198, 155, 78, 0.18) 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(rgba(18, 34, 43, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 34, 43, 0.08) 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: rgba(255, 255, 255, 0.4);
  border-color: var(--line);
  outline: none;
}

.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(3rem, 8vw, 7.4rem);
  letter-spacing: 0;
  line-height: 0.92;
  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);
  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: rgba(244, 242, 232, 0.76);
  color: var(--ink);
}

.book-feature {
  animation: panelFloat 7s ease-in-out infinite;
  align-items: stretch;
  background: rgba(244, 242, 232, 0.88);
  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;
}

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

.warning-band {
  background: var(--gold-soft);
  border-bottom: 2px solid rgba(137, 98, 31, 0.62);
  border-top: 2px solid rgba(137, 98, 31, 0.62);
  padding: 18px clamp(18px, 4vw, 64px);
}

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

.warning-band span {
  color: #785616;
  font-family: var(--mono);
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.warning-band strong {
  font-family: var(--mono);
  font-size: clamp(0.95rem, 1.55vw, 1.3rem);
}

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

.split-section,
.image-led,
.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,
.contact-section div {
  max-width: 680px;
}

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

.section-copy > p:not(.eyebrow),
.image-led 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: rgba(229, 240, 242, 0.62);
  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,
.wide-frame,
.image-led figure,
.video-grid figure {
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: 0 14px 34px var(--shadow);
}

.framed-media img,
.wide-frame 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: rgba(255, 255, 255, 0.54);
  border: 2px solid var(--ink);
  min-height: 230px;
  padding: 22px;
}

.system-card.accent {
  background: rgba(198, 155, 78, 0.22);
}

.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);
}

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

.pipeline-step {
  background: rgba(255, 255, 255, 0.58);
  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 rgba(65, 124, 138, 0.2);
}

.wide-frame {
  margin-top: 34px;
}

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

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

.video-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 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: rgba(229, 240, 242, 0.56);
  border-bottom: 2px solid var(--ink);
  border-top: 2px solid var(--ink);
}

.contact-link {
  background: rgba(255, 255, 255, 0.64);
  border: 2px solid var(--ink);
  color: inherit;
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 44px);
  text-decoration: none;
}

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

.contact-link strong {
  font-family: var(--mono);
  font-size: clamp(1.35rem, 3.3vw, 3.2rem);
  overflow-wrap: anywhere;
}

.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);
}

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

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

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

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

@media (max-width: 720px) {
  .site-hero {
    background:
      linear-gradient(rgba(244, 242, 232, 0.94), rgba(244, 242, 232, 0.78)),
      url("assets/impossible/cover-clean.jpg") center / cover;
    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.8rem, 15vw, 4.8rem);
  }

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

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

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

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

}

@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;
  }
}
