:root {
  --black: #070809;
  --black-2: #0d0f11;
  --iron: #24272b;
  --steel: #7f8384;
  --mist: #c8cac6;
  --mist-hi: #dcddd9;
  --mist-low: #acafaa;
  --paper: #ddd8cf;
  --ink: #17191a;
  --heat: #f05a21;
  --signal: #d8ff65;
  --edge: rgba(207, 208, 203, 0.17);
  --side: clamp(1.25rem, 5vw, 6.5rem);
  --story-progress-pct: 0%;
  --story-shade: 0.05;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--black);
  color: var(--mist);
  font-family: "IBM Plex Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

::selection {
  background: var(--heat);
  color: var(--black);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  transform: translateY(-160%);
  background: var(--paper);
  color: var(--black);
  font: 600 0.72rem/1 "JetBrains Mono", monospace;
  text-transform: uppercase;
  text-decoration: none;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-nav {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(1rem, 3vw, 3rem);
  align-items: center;
  width: 100%;
  min-height: 5rem;
  padding: 0 var(--side);
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgba(5, 6, 7, 0.9), rgba(5, 6, 7, 0));
  transition: min-height 180ms ease, border-color 180ms ease, background 180ms ease;
}

.site-nav.is-scrolled {
  min-height: 4rem;
  border-bottom-color: var(--edge);
  background: rgba(7, 8, 9, 0.88);
  backdrop-filter: blur(14px);
}

.brand-mark {
  display: block;
  width: 3.9rem;
  height: 2.7rem;
  overflow: hidden;
  text-decoration: none;
}

.brand-mark > span {
  position: relative;
  display: block;
  width: 3.9rem;
  height: 2.7rem;
  overflow: hidden;
}

.brand-mark img {
  position: absolute;
  top: 0.02rem;
  left: 0;
  width: auto;
  max-width: none;
  height: 3.1rem;
  clip-path: polygon(0 0, 30% 0, 30% 30%, 24.5% 30%, 24.5% 84.5%, 0 84.5%);
  filter: brightness(0.9) contrast(1.08);
}

.doctrine-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.doctrine-nav a {
  padding: 0.52rem clamp(0.55rem, 1vw, 0.9rem);
  border: 1px solid rgba(200, 202, 198, 0.18);
  color: rgba(200, 202, 198, 0.58);
  font: 500 clamp(0.48rem, 0.58vw, 0.6rem)/1 "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.doctrine-nav a:hover,
.doctrine-nav a:focus-visible,
.doctrine-nav a.is-current {
  border-color: rgba(240, 90, 33, 0.72);
  background: rgba(240, 90, 33, 0.06);
  color: var(--mist-hi);
  outline: none;
}

.nav-cta {
  justify-self: end;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--heat);
  color: var(--mist-hi);
  font: 500 0.68rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-cta span,
.primary-cta span {
  color: var(--heat);
}

.cinematic {
  position: relative;
  background: var(--black);
}

.cinematic-background {
  position: sticky;
  z-index: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #050607;
}

.rail-image,
.forge-image,
.cinematic-vignette,
.cinematic-shade,
.rail-pulse {
  position: absolute;
  inset: 0;
}

.rail-image {
  z-index: 1;
  opacity: 0;
  background: url("img/forgify-rail-background.png") center / cover no-repeat;
  filter: brightness(0.94) contrast(1.06);
  transform: translate3d(104%, 0, 0) scale(1.012);
  transition: opacity 180ms ease, transform 1.25s cubic-bezier(0.18, 0.78, 0.2, 1);
  will-change: transform;
}

.forge-image {
  z-index: 0;
  opacity: 1;
  overflow: hidden;
  transform: translate3d(0, 0, 0) scale(1);
  transition: opacity 850ms ease, transform 1.25s cubic-bezier(0.18, 0.78, 0.2, 1);
}

.forge-image img {
  position: absolute;
  top: 0;
  left: 50%;
  width: auto;
  max-width: none;
  height: 100%;
  filter: brightness(0.9) contrast(1.08);
  transform: translateX(-32.2%) scale(1);
  transform-origin: 32.2% center;
}

.cinematic.scene-rail .rail-image {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1.012);
}

.cinematic.scene-rail .forge-image {
  opacity: 0;
  transform: translate3d(-14%, 0, 0) scale(0.985);
}

.cinematic.scene-rail .rail-pulse {
  opacity: 0.75;
}

.forge-fog {
  position: absolute;
  z-index: 2;
  top: 20%;
  left: 50%;
  width: min(64vh, 88vw);
  height: 60%;
  opacity: 0.7;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(208, 210, 206, 0.18), transparent 48%),
    radial-gradient(ellipse at 42% 65%, rgba(118, 111, 104, 0.16), transparent 56%);
  filter: blur(22px);
  transform: translateX(-50%) scale(1);
  transition: opacity 900ms ease 160ms, transform 1.4s ease;
}

.cinematic.scene-rail .forge-fog {
  opacity: 0;
  transform: translateX(-64%) scale(0.9);
}

.cinematic.scene-logo .forge-fog {
  animation: fog-breathe 5.5s ease-in-out infinite;
}

.forgify-emergence {
  position: absolute;
  z-index: 6;
  top: calc(52.5% - clamp(2.25rem, 5vh, 3.5rem));
  left: calc(50% + 0.5cm);
  width: min(65vh, 86vw);
  opacity: 0;
  filter: blur(9px) brightness(0.68);
  transform: translate(-50%, -50%) scale(0.94);
  transition: opacity 520ms ease, filter 760ms ease, transform 820ms cubic-bezier(0.18, 0.78, 0.2, 1);
}

.forgify-emergence .logo-category {
  position: absolute;
  top: calc(100% + clamp(1.2rem, 2.8vh, 2.4rem));
  left: 50%;
  width: min(42rem, 88vw);
  margin: 0;
  opacity: 1;
  visibility: visible;
  color: rgba(200, 202, 198, 0.8);
  font: 500 clamp(0.68rem, 1.3vh, 1rem)/1.55 "JetBrains Mono", monospace;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
  filter: none;
  transform: translate(-50%, 0);
  transition: opacity 580ms ease, filter 780ms ease, transform 780ms cubic-bezier(0.18, 0.78, 0.2, 1);
}

.forgify-emergence img {
  display: block;
  width: 100%;
  height: auto;
}

.cinematic.scene-logo .forgify-emergence {
  opacity: 0.98;
  filter: blur(0) brightness(0.92) contrast(1.07);
  transform: translate(-50%, -50%) scale(1);
}

.forge-stage {
  position: absolute;
  z-index: 6;
  inset: 0;
  pointer-events: none;
}

.forge-panel {
  position: absolute;
  top: 52.5%;
  left: calc(50% + 0.5cm);
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(64vh, 86vw);
  min-height: min(49vh, 30rem);
  opacity: 0;
  filter: blur(14px) brightness(0.62);
  text-align: center;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 620ms ease, filter 1s ease, transform 1.1s cubic-bezier(0.18, 0.78, 0.2, 1);
}

.forge-panel.is-active {
  opacity: 1;
  filter: blur(0) brightness(1);
  transform: translate(-50%, -50%) scale(1);
  transition-delay: 150ms, 80ms, 80ms;
}

.forge-panel h2 {
  margin: 0;
  font: 700 clamp(2.85rem, 6.3vh, 6.25rem)/0.85 "Barlow Condensed", Impact, sans-serif;
  letter-spacing: -0.034em;
  text-transform: uppercase;
}

.forge-panel--superhuman .forge-eyebrow {
  max-width: 29ch;
  margin: 0 auto clamp(0.7rem, 1.5vh, 1.2rem);
  color: rgba(206, 208, 204, 0.78);
  font: 600 clamp(1.2rem, 2.55vh, 2.2rem)/1.02 "Barlow Condensed", Impact, sans-serif;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.forge-panel--superhuman h2 {
  font-size: clamp(4.4rem, 9.4vh, 9rem);
  line-height: 0.74;
}

.forge-panel .forge-assurance {
  margin: clamp(1.5rem, 3.1vh, 2.5rem) auto 0;
  color: rgba(206, 208, 204, 0.67);
  font: 500 clamp(0.64rem, 1.16vh, 0.9rem)/1.6 "JetBrains Mono", monospace;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.rail-stage {
  position: absolute;
  z-index: 6;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.rail-panel {
  position: absolute;
  top: 50%;
  left: var(--side);
  width: min(58rem, 64vw);
  opacity: 0;
  filter: blur(6px);
  transform: translate3d(48vw, -50%, 0) scale(0.97);
  transition: opacity 440ms ease, filter 680ms ease, transform 880ms cubic-bezier(0.18, 0.78, 0.2, 1);
  will-change: transform, opacity;
}

.rail-panel.is-active {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, -50%, 0) scale(1);
  transition-delay: 150ms, 80ms, 80ms;
}

.rail-panel.is-before {
  opacity: 0;
  filter: blur(5px);
  transform: translate3d(-58vw, -50%, 0) scale(0.98);
}

.rail-panel.is-after {
  opacity: 0;
  transform: translate3d(48vw, -50%, 0) scale(0.97);
}

.cinematic-vignette {
  z-index: 5;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 4, 5, 0.18), transparent 25%, transparent 75%, rgba(3, 4, 5, 0.24)),
    linear-gradient(180deg, rgba(3, 4, 5, 0.38), transparent 18%, transparent 76%, rgba(3, 4, 5, 0.58));
}

.cinematic-shade {
  z-index: 1;
  opacity: var(--story-shade);
  background: #030405;
  transition: opacity 240ms linear;
}

.rail-pulse {
  top: 55%;
  right: 9%;
  bottom: auto;
  left: auto;
  width: clamp(4rem, 8vw, 9rem);
  height: 2px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, var(--heat), rgba(240, 90, 33, 0));
  box-shadow: 0 0 1rem rgba(240, 90, 33, 0.65);
  animation: signal-breathe 2.6s ease-in-out infinite;
}

.story-progress {
  position: absolute;
  z-index: 8;
  right: var(--side);
  bottom: 2.25rem;
  left: var(--side);
  height: 1px;
  overflow: hidden;
  background: rgba(200, 202, 198, 0.14);
}

.story-progress i {
  display: block;
  width: var(--story-progress-pct);
  height: 100%;
  background: var(--heat);
  box-shadow: 0 0 0.75rem rgba(240, 90, 33, 0.6);
}

.scroll-note {
  position: absolute;
  z-index: 8;
  right: var(--side);
  bottom: 3.1rem;
  margin: 0;
  color: rgba(200, 202, 198, 0.5);
  font: 500 0.6rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-note span {
  color: var(--heat);
}

.story {
  position: relative;
  z-index: 7;
  margin-top: -100vh;
  margin-top: -100svh;
}

.story-step {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 6rem var(--side);
}

.rail-panel h2,
.forge-panel h2,
.sequence-finish h2 {
  margin: 0;
  color: var(--mist);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-weight: 700;
  letter-spacing: -0.034em;
  text-transform: uppercase;
  background:
    radial-gradient(circle at 17% 23%, rgba(255, 255, 255, 0.2) 0 0.8px, transparent 1.25px),
    radial-gradient(circle at 73% 61%, rgba(42, 44, 43, 0.26) 0 0.8px, transparent 1.35px),
    radial-gradient(circle at 45% 78%, rgba(255, 255, 255, 0.1) 0 1px, transparent 1.5px),
    linear-gradient(112deg, #b9bbb7 0%, #d7d8d4 25%, #aeb0ac 57%, #cbccc8 100%);
  background-size: 7px 7px, 9px 8px, 11px 10px, 100% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rail-panel h2 {
  max-width: 13ch;
  font-size: clamp(5.2rem, 10.4vw, 12rem);
  line-height: 0.78;
}

.rail-panel--dense h2 {
  max-width: 17ch;
  font-size: clamp(4rem, 7.65vw, 9rem);
  line-height: 0.86;
}

.heat-stop {
  color: var(--heat);
  background: none;
  -webkit-text-fill-color: var(--heat);
}

.story-step--logo {
  min-height: 112vh;
  min-height: 112svh;
}

.story-step--forge-trigger {
  min-height: 118vh;
  min-height: 118svh;
  scroll-margin-top: 4rem;
}

.story-step--rail-trigger {
  min-height: 112vh;
  min-height: 112svh;
  scroll-margin-top: 4rem;
}

.story-step--rail-hold {
  min-height: 185vh;
  min-height: 185svh;
}

.qualification {
  position: relative;
  z-index: 10;
  min-height: 128vh;
  overflow: hidden;
  background: #151514;
}

.qualification-image,
.qualification-shade {
  position: absolute;
  inset: 0;
}

.qualification-image {
  background: url("img/forgify-real-world-background.png") center / cover no-repeat;
}

.qualification-shade {
  background:
    linear-gradient(90deg, rgba(10, 11, 11, 0.92) 0%, rgba(10, 11, 11, 0.76) 44%, rgba(10, 11, 11, 0.14) 76%, rgba(10, 11, 11, 0.28) 100%),
    linear-gradient(180deg, rgba(8, 9, 9, 0.35), transparent 32%, rgba(8, 9, 9, 0.4));
}

.qualification-shell {
  position: relative;
  z-index: 1;
  max-width: 92rem;
  margin: 0 auto;
  padding: clamp(8rem, 14vh, 12rem) var(--side) clamp(7rem, 12vh, 11rem);
}

.section-label,
.fit-heading,
.node-kicker,
.branch-answer,
.tree-node > span,
.sequence-finish > p {
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
  letter-spacing: 0.11em;
}

.section-label {
  margin: 0 0 1.6rem;
  color: var(--heat);
  font-size: clamp(0.64rem, 0.78vw, 0.76rem);
  text-transform: uppercase;
}

.qualification-intro {
  max-width: 47rem;
}

.qualification-intro h2 {
  margin: 0;
  color: #d5d3cd;
  font: 500 clamp(5rem, 9.5vw, 10.5rem)/0.82 "Barlow Condensed", Impact, sans-serif;
  letter-spacing: -0.04em;
}

.qualification-lede {
  max-width: 38rem;
  margin: 2.4rem 0 0;
  color: rgba(221, 219, 213, 0.78);
  font-size: clamp(1.1rem, 1.65vw, 1.45rem);
  line-height: 1.58;
}

.qualification-fit {
  max-width: 56rem;
  margin-top: clamp(5rem, 10vh, 8rem);
}

.fit-heading {
  margin: 0 0 1rem;
  color: rgba(221, 219, 213, 0.54);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.qualification-fit ul {
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(221, 219, 213, 0.2);
  list-style: none;
}

.qualification-fit li {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1.5rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(221, 219, 213, 0.2);
  color: #d8d5ce;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.2;
}

.qualification-fit li span {
  color: rgba(221, 219, 213, 0.46);
}

.fit-call {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(18rem, 0.7fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: end;
  max-width: 76rem;
  margin-top: clamp(7rem, 13vh, 11rem);
  padding-top: clamp(3rem, 6vh, 5rem);
  border-top: 1px solid rgba(240, 90, 33, 0.58);
}

.fit-call h3 {
  margin: 0;
  color: #d5d3cd;
  font: 500 clamp(3.5rem, 6vw, 6.5rem)/0.9 "Barlow Condensed", Impact, sans-serif;
  letter-spacing: -0.035em;
}

.fit-call div > p:last-child {
  max-width: 38rem;
  margin: 1.5rem 0 0;
  color: rgba(221, 219, 213, 0.68);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.6;
}

.fit-call .fit-investment {
  max-width: 34rem;
  margin-top: 1.8rem;
  padding: 1rem 0 0 1rem;
  border-top: 1px solid rgba(221, 219, 213, 0.2);
  border-left: 1px solid rgba(240, 90, 33, 0.58);
  color: rgba(221, 219, 213, 0.68);
  font: 500 0.74rem/1.65 "JetBrains Mono", monospace;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.fit-investment span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--heat);
  font-size: 0.58rem;
  letter-spacing: 0.11em;
}

.primary-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--heat);
  background: rgba(9, 10, 10, 0.66);
  color: #dedbd4;
  font: 600 0.72rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.primary-cta:hover,
.primary-cta:focus-visible {
  background: var(--heat);
  color: var(--black);
  outline: none;
}

.primary-cta:hover span,
.primary-cta:focus-visible span {
  color: var(--black);
}

.next-chapters {
  position: relative;
  z-index: 10;
  padding: clamp(7rem, 12vw, 12rem) var(--side);
  border-top: 1px solid rgba(200, 202, 198, 0.16);
  background:
    linear-gradient(rgba(200, 202, 198, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 202, 198, 0.035) 1px, transparent 1px),
    #08090a;
  background-size: 11rem 11rem;
}

.next-chapters__header {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, .75fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: end;
  max-width: 92rem;
  margin: 0 auto clamp(5rem, 9vw, 9rem);
}

.next-chapters__header .section-label {
  grid-column: 1 / -1;
  margin-bottom: -1rem;
}

.next-chapters__header h2 {
  margin: 0;
  color: var(--mist);
  font: 600 clamp(4.5rem, 8.5vw, 9.5rem)/.82 "Barlow Condensed", Impact, sans-serif;
  letter-spacing: -.04em;
  text-transform: uppercase;
}

.next-chapters__header > p:last-child {
  margin: 0 0 .7rem;
  color: rgba(200, 202, 198, .62);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.65;
}

.chapter-gates {
  display: grid;
  gap: 1px;
  max-width: 92rem;
  margin: 0 auto;
  border: 1px solid rgba(200, 202, 198, .18);
  background: rgba(200, 202, 198, .18);
}

.chapter-gate {
  position: relative;
  min-height: clamp(31rem, 48vw, 47rem);
  display: grid;
  grid-template-columns: minmax(23rem, .75fr) minmax(32rem, 1.25fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 5rem);
  overflow: hidden;
  color: var(--mist);
  background: #0d0f11;
  text-decoration: none;
}

.chapter-gate::after {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  content: "";
  background: var(--heat);
  box-shadow: 0 0 16px rgba(240,90,33,.6);
  transition: width 320ms ease;
}

.chapter-gate:hover::after,
.chapter-gate:focus-visible::after {
  width: 100%;
}

.chapter-gate:focus-visible {
  outline: 1px solid var(--heat);
  outline-offset: -1px;
}

.chapter-gate__copy {
  position: relative;
  z-index: 2;
}

.chapter-gate__copy > p,
.chapter-gate__copy > span,
.chapter-screen-bar {
  font-family: "JetBrains Mono", monospace;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.chapter-gate__copy > p {
  margin: 0 0 1.3rem;
  color: var(--heat);
  font-size: .61rem;
}

.chapter-gate__copy h3 {
  margin: 0;
  color: var(--mist);
  font: 600 clamp(3.8rem, 6.5vw, 7.5rem)/.82 "Barlow Condensed", Impact, sans-serif;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.chapter-gate__copy > span {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: 32rem;
  margin-top: 2.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(200,202,198,.22);
  color: rgba(200,202,198,.62);
  font-size: .62rem;
  line-height: 1.5;
}

.chapter-gate__copy > span i {
  color: var(--heat);
  font-style: normal;
}

.chapter-gate__screen {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(200,202,198,.25);
  background: #101216;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  transform: perspective(1400px) rotateY(-3deg);
  transition: transform 320ms ease, border-color 320ms ease;
}

.chapter-gate:hover .chapter-gate__screen,
.chapter-gate:focus-visible .chapter-gate__screen {
  border-color: rgba(240,90,33,.45);
  transform: perspective(1400px) rotateY(0) translateX(-.5rem);
}

.chapter-screen-bar {
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 .8rem;
  border-bottom: 1px solid rgba(200,202,198,.16);
  color: #929793;
  font-size: .54rem;
}

.chapter-screen-bar i {
  color: var(--heat);
  font-style: normal;
}

.chapter-screen-live {
  position: relative;
  aspect-ratio: 1500 / 980;
  overflow: hidden;
  background: #eaeaea;
  filter: saturate(.7) brightness(.88);
}

.chapter-screen-live iframe {
  position: absolute;
  inset: 0;
  width: 200%;
  height: 200%;
  border: 0;
  transform: scale(.5);
  transform-origin: top left;
  pointer-events: none;
}

.chapter-gate--human {
  grid-template-columns: 1.15fr .85fr;
  background:
    radial-gradient(circle at 15% 50%, rgba(240,90,33,.08), transparent 27rem),
    repeating-linear-gradient(112deg, transparent 0 8px, rgba(255,255,255,.012) 9px 10px),
    #0a0c0e;
}

.chapter-gate__portraits {
  position: relative;
  z-index: 1;
  min-height: 24rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(200,202,198,.15);
  background: rgba(200,202,198,.15);
}

.chapter-gate__portraits::after {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  height: 42%;
  content: "";
  background: linear-gradient(transparent, rgba(5,6,7,.72));
  pointer-events: none;
}

.chapter-gate__portraits img {
  width: 100%;
  height: 100%;
  min-height: 24rem;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(.68);
  transition: filter 320ms ease, transform 520ms cubic-bezier(.2,.7,.2,1);
}

.chapter-gate__portraits img:first-child {
  object-position: 50% 25%;
}

.chapter-gate__portraits img:last-child {
  object-position: 50% 40%;
}

.chapter-gate--human:hover .chapter-gate__portraits img,
.chapter-gate--human:focus-visible .chapter-gate__portraits img {
  filter: grayscale(1) contrast(1.04) brightness(.82);
  transform: scale(1.025);
}

.operating-sequence {
  position: relative;
  z-index: 10;
  padding: clamp(7rem, 12vw, 12rem) var(--side);
  overflow: hidden;
  border-top: 1px solid rgba(200, 202, 198, 0.16);
  background:
    linear-gradient(rgba(200, 202, 198, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 202, 198, 0.04) 1px, transparent 1px),
    #090a0b;
  background-size: 12rem 12rem;
}

.sequence-header {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: end;
  max-width: 90rem;
  margin: 0 auto;
}

.sequence-header .section-label {
  grid-column: 1 / -1;
  margin-bottom: -1rem;
}

.sequence-header h2 {
  margin: 0;
  color: var(--mist);
  font: 600 clamp(4.5rem, 8.5vw, 9.5rem)/0.83 "Barlow Condensed", Impact, sans-serif;
  letter-spacing: -0.04em;
}

.sequence-header > p:last-child {
  margin: 0 0 0.6rem;
  color: rgba(200, 202, 198, 0.62);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.65;
}

.decision-tree {
  max-width: 74rem;
  margin: clamp(7rem, 13vw, 13rem) auto 0;
}

.tree-node {
  position: relative;
  padding: clamp(1.8rem, 3vw, 2.8rem);
  border: 1px solid rgba(200, 202, 198, 0.24);
  background: rgba(15, 17, 19, 0.94);
}

.tree-node--entry {
  width: min(100%, 38rem);
  margin: 0 auto;
  border-top-color: var(--heat);
}

.node-kicker {
  margin: 0 0 1.1rem;
  color: rgba(200, 202, 198, 0.46);
  font-size: 0.61rem;
  text-transform: uppercase;
}

.tree-node h3 {
  margin: 0;
  color: #d3d3cf;
  font: 600 clamp(2.6rem, 4.5vw, 4.8rem)/0.88 "Barlow Condensed", Impact, sans-serif;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.tree-node > p:not(.node-kicker) {
  max-width: 35rem;
  margin: 1.3rem 0 0;
  color: rgba(200, 202, 198, 0.62);
  font-size: 0.98rem;
  line-height: 1.58;
}

.tree-node > span {
  display: block;
  margin-top: 1.7rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(200, 202, 198, 0.14);
  color: #d3d3cf;
  font-size: 0.62rem;
}

.tree-arrow {
  height: 6rem;
  color: var(--heat);
  font: 400 1.1rem/6rem "JetBrains Mono", monospace;
  text-align: center;
}

.tree-gate {
  position: relative;
  width: min(100%, 29rem);
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid rgba(240, 90, 33, 0.7);
  background: #121416;
  text-align: center;
}

.tree-gate::before,
.tree-gate::after {
  position: absolute;
  width: 0.55rem;
  height: 0.55rem;
  content: "";
  background: var(--heat);
}

.tree-gate::before {
  top: -0.3rem;
  left: -0.3rem;
}

.tree-gate::after {
  right: -0.3rem;
  bottom: -0.3rem;
}

.tree-gate p {
  margin: 0;
  color: #d5d4cf;
  font: 600 clamp(1.1rem, 2vw, 1.55rem)/1.25 "IBM Plex Sans", Arial, sans-serif;
}

.tree-split {
  position: relative;
  width: 50%;
  height: 5rem;
  margin: 0 auto;
  border-top: 1px solid rgba(200, 202, 198, 0.28);
}

.tree-split::before,
.tree-split::after {
  position: absolute;
  top: 0;
  width: 1px;
  height: 5rem;
  content: "";
  background: rgba(200, 202, 198, 0.28);
}

.tree-split::before { left: 0; }
.tree-split::after { right: 0; }

.tree-split i {
  position: absolute;
  top: -5rem;
  left: 50%;
  width: 1px;
  height: 5rem;
  background: rgba(200, 202, 198, 0.28);
}

.tree-branches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 8rem);
}

.branch-answer {
  margin: 0 0 1rem;
  color: rgba(200, 202, 198, 0.48);
  font-size: 0.62rem;
  text-align: center;
}

.branch-answer--yes {
  color: var(--heat);
}

.tree-node--exit {
  opacity: 0.72;
}

.tree-path {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tree-path .tree-node + .tree-node {
  margin-top: 5rem;
}

.tree-path .tree-node + .tree-node::before {
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 1px;
  height: 5rem;
  content: "";
  background: rgba(200, 202, 198, 0.28);
}

.tree-node--hot {
  border-color: rgba(240, 90, 33, 0.72);
  box-shadow: inset 3px 0 var(--heat);
}

.tree-node--hot .node-kicker {
  color: var(--heat);
}

.sequence-finish {
  max-width: 74rem;
  margin: clamp(9rem, 16vw, 17rem) auto 0;
  padding-top: clamp(3rem, 6vw, 6rem);
  border-top: 1px solid rgba(240, 90, 33, 0.62);
}

.sequence-finish > p {
  margin: 0 0 1rem;
  color: rgba(200, 202, 198, 0.48);
  font-size: 0.66rem;
}

.sequence-finish h2 {
  max-width: 9ch;
  font-size: clamp(5rem, 10vw, 11rem);
  line-height: 0.79;
}

.site-footer {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  min-height: 7rem;
  padding: 2rem var(--side);
  border-top: 1px solid rgba(200, 202, 198, 0.16);
  background: #050607;
}

.site-footer p,
.site-footer > a:last-child {
  margin: 0;
  color: rgba(200, 202, 198, 0.45);
  font: 500 0.58rem/1.5 "JetBrains Mono", monospace;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-footer > a:last-child {
  justify-self: end;
}

@keyframes fog-breathe {
  0%, 100% { opacity: 0.54; transform: translateX(-50%) scale(0.96) translate3d(-1%, 1%, 0); }
  50% { opacity: 0.8; transform: translateX(-50%) scale(1.04) translate3d(1.5%, -1%, 0); }
}

@keyframes signal-breathe {
  0%, 100% { opacity: 0.46; transform: scaleX(0.75); transform-origin: right; }
  50% { opacity: 1; transform: scaleX(1); transform-origin: right; }
}

@media (max-width: 900px) {
  .rail-panel {
    width: min(100%, 44rem);
  }

  .rail-panel h2 {
    font-size: clamp(4.6rem, 14vw, 8.4rem);
  }

  .rail-panel--dense h2 {
    font-size: clamp(3.6rem, 9.7vw, 6.6rem);
  }

  .fit-call,
  .sequence-header,
  .next-chapters__header {
    grid-template-columns: 1fr;
  }

  .next-chapters__header .section-label {
    margin-bottom: 0;
  }

  .chapter-gate,
  .chapter-gate--human {
    grid-template-columns: 1fr;
  }

  .chapter-gate__screen {
    transform: none;
  }

  .chapter-gate--human .chapter-gate__copy {
    order: 0;
  }

  .chapter-gate__portraits {
    order: 1;
  }

  .sequence-header .section-label {
    margin-bottom: 0;
  }

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

  .site-footer p {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --side: 1.15rem;
  }

  .site-nav {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0.35rem 0.8rem;
    min-height: 6.4rem;
    padding-top: 0.45rem;
    padding-bottom: 0.55rem;
  }

  .site-nav.is-scrolled {
    min-height: 6.4rem;
  }

  .brand-mark {
    transform: scale(0.88);
    transform-origin: left center;
  }

  .nav-cta {
    font-size: 0;
  }

  .nav-cta::before {
    content: "BOOK THE CALL";
    font-size: 0.62rem;
  }

  .nav-cta span {
    margin-left: 0.35rem;
    font-size: 0.72rem;
  }

  .doctrine-nav {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-content: stretch;
    gap: 0.28rem;
  }

  .doctrine-nav a {
    flex: 1;
    padding: 0.42rem 0.25rem;
    font-size: clamp(0.39rem, 2.05vw, 0.52rem);
    letter-spacing: 0.035em;
    text-align: center;
    white-space: nowrap;
  }

  .chapter-gate {
    min-height: auto;
    padding: 1.4rem;
  }

  .chapter-gate__copy {
    padding: 2rem 0;
  }

  .chapter-gate__copy h3 {
    font-size: clamp(3.5rem, 17vw, 5.8rem);
  }

  .chapter-gate__portraits,
  .chapter-gate__portraits img {
    min-height: 16rem;
  }

  .rail-image {
    background-position: 58% center;
  }

  .story-step {
    padding-top: 7rem;
    padding-bottom: 4.5rem;
  }

  .rail-panel {
    width: calc(100vw - (2 * var(--side)));
  }

  .rail-panel h2 {
    font-size: clamp(4.25rem, 21vw, 6.8rem);
  }

  .rail-panel--dense h2 {
    font-size: clamp(3.15rem, 15vw, 5.1rem);
  }

  .forgify-emergence {
    width: min(73vh, 86vw);
  }

  .forgify-emergence .logo-category {
    width: 88vw;
    font-size: clamp(0.6rem, 2.9vw, 0.78rem);
  }

  .forge-panel {
    width: min(75vh, 84vw);
  }

  .forge-panel h2 {
    font-size: clamp(2.6rem, 12.8vw, 4.5rem);
  }

  .forge-panel--superhuman h2 {
    font-size: clamp(3.8rem, 18vw, 5.8rem);
  }

  .forge-panel--superhuman .forge-eyebrow {
    font-size: clamp(1rem, 4.7vw, 1.5rem);
  }

  .scroll-note {
    display: none;
  }

  .story-progress {
    bottom: 1.1rem;
  }

  .qualification {
    min-height: 0;
  }

  .qualification-image {
    background-position: 63% center;
  }

  .qualification-shade {
    background: rgba(10, 11, 11, 0.78);
  }

  .qualification-intro h2 {
    font-size: clamp(4.5rem, 23vw, 7rem);
  }

  .qualification-fit li {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .fit-call h3 {
    font-size: clamp(3.4rem, 17vw, 5rem);
  }

  .sequence-header h2,
  .sequence-finish h2 {
    font-size: clamp(4rem, 19vw, 7rem);
  }

  .tree-split {
    display: none;
  }

  .tree-branches {
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-top: 4rem;
  }

  .tree-branch {
    position: relative;
  }

  .tree-branch::before {
    position: absolute;
    bottom: 100%;
    left: 50%;
    width: 1px;
    height: 4rem;
    content: "";
    background: rgba(200, 202, 198, 0.28);
  }

  .tree-branch--yes {
    margin-top: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
