:root {
  --black: #030506;
  --blue-950: #060b12;
  --blue-900: #0a1320;
  --blue-850: #0e1c2b;
  --green-950: #102117;
  --brown-950: #181412;
  --graphite: #232a31;
  --smoke: #4b5560;
  --mist: #8b959d;
  --white: #d8dcdd;
  --paper: #b7bcb9;
  --line: rgba(216, 220, 221, 0.16);
  --line-strong: rgba(216, 220, 221, 0.34);
  --amber-dim: #7d6d50;
  --green-dim: #5f7563;
  --danger-dim: #8a5b54;
  --max: 1180px;
  --display: 'Instrument Serif', Georgia, serif;
  --body: 'Sora', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 38% 12%, rgba(216, 220, 221, 0.075), transparent 24rem),
    radial-gradient(circle at 18% 12%, rgba(95, 117, 99, 0.58), transparent 34rem),
    radial-gradient(circle at 82% 3%, rgba(14, 28, 43, 0.98), transparent 38rem),
    linear-gradient(180deg, var(--black), var(--blue-950) 38%, var(--brown-950) 100%);
  font-family: var(--body);
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 0 58%, rgba(0, 0, 0, 0.42) 100%);
  z-index: -1;
}

#memory-field,
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#memory-field {
  z-index: -3;
  opacity: 0.84;
}

.grain {
  z-index: -2;
  opacity: 0.17;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .024) 1px, transparent 1px);
  background-size: 34px 34px, 34px 34px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 90%);
}

.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  height: 2px;
  background: transparent;
}

.scroll-meter span {
  display: block;
  width: calc(var(--scroll, 0) * 100%);
  height: 100%;
  background: linear-gradient(90deg, var(--mist), var(--green-dim), var(--amber-dim));
  box-shadow: 0 0 18px rgba(183, 188, 185, 0.28);
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 22px;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: rgba(3, 5, 6, 0.76);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand-mark,
.nav-cta,
.top-nav a,
.button {
  color: var(--white);
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-logo {
  display: block;
  width: 32px;
  height: 32px;
  box-sizing: border-box;
  padding: 1px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.9);
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 0 12px rgba(75, 1, 8, .42));
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.top-nav a,
.nav-cta,
.kicker,
.stage-label,
.memory-node span,
.memory-node small,
.artifact-card span,
.mode-panel span,
.layer-card span {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.top-nav a {
  position: relative;
  color: var(--mist);
  transition: color 220ms var(--ease), text-shadow 220ms var(--ease);
}

.top-nav a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--white), transparent);
  opacity: 0;
  transform: scaleX(.42);
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}

.top-nav a:hover,
.top-nav a.is-active,
.top-nav a[aria-current='true'],
.nav-cta:hover {
  color: var(--white);
  text-shadow: 0 0 18px rgba(216, 220, 221, 0.26);
}

.top-nav a.is-active::after,
.top-nav a[aria-current='true']::after {
  opacity: .86;
  transform: scaleX(1);
}

.nav-cta {
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  background: rgba(216, 220, 221, 0.055);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scene {
  position: relative;
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto;
  padding: 130px 0;
  opacity: var(--scene-presence, 1);
  transform: translate3d(0, calc((var(--scene-progress, 0.5) - 0.5) * -26px), 0);
  transition: opacity 360ms var(--ease);
}

.scene::after {
  content: '';
  position: absolute;
  inset: 10% -4% auto;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(216, 220, 221, 0.28), transparent);
  opacity: calc(var(--scene-presence, 1) * 0.44);
  transform: scaleX(var(--scene-presence, 1));
  transform-origin: left center;
}

.scene-left {
  transform: translate3d(calc((0.5 - var(--scene-progress, 0.5)) * 44px), 0, 0);
}

.scene-rise {
  transform: translate3d(0, calc((1 - var(--scene-presence, 1)) * 58px), 0);
}

.scene-debris {
  transform: translate3d(0, calc((var(--scene-progress, 0.5) - 0.5) * 34px), 0);
}

.scene-stack {
  transform: perspective(1200px) rotateX(calc((0.5 - var(--scene-progress, 0.5)) * 3deg));
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.82fr);
  gap: 56px;
  align-items: center;
  min-height: 100vh;
  padding-top: 150px;
  opacity: 1;
}

.kicker {
  margin: 0 0 18px;
  color: var(--mist);
}

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

h1,
h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

h1 {
  max-width: 12.4ch;
  font-size: clamp(4rem, 8vw, 8.2rem);
}

h2 {
  max-width: 13ch;
  font-size: clamp(3.4rem, 8.2vw, 8rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.05;
}

.hero-subhead,
.section-heading p,
.final-cta p {
  max-width: 650px;
  margin-top: 24px;
  color: var(--paper);
  font-size: clamp(1.05rem, 1.6vw, 1.34rem);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 260ms var(--ease), background 260ms var(--ease), border-color 260ms var(--ease);
}

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

.button.primary {
  background: var(--white);
  color: var(--black);
}

.button.secondary {
  background: rgba(216, 220, 221, 0.055);
  color: var(--white);
}

.hero-stage {
  position: relative;
  min-height: 620px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(216, 220, 221, .08), transparent 24%),
    radial-gradient(circle at 70% 20%, rgba(95, 117, 99, .17), transparent 23rem),
    rgba(6, 11, 18, 0.74);
  box-shadow: 0 44px 120px rgba(0, 0, 0, .42);
  overflow: hidden;
}

.hero-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.38;
}

.stage-label {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  color: var(--mist);
}

.lineage-map {
  position: absolute;
  inset: 60px 26px 74px;
}

.connector-web {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(216, 220, 221, 0.24);
  stroke-width: 1.4;
}

.connector-web .hot {
  stroke: rgba(138, 91, 84, 0.78);
  stroke-dasharray: 9 10;
  animation: trace 4.4s linear infinite;
}

.memory-node {
  position: absolute;
  z-index: 2;
  width: min(245px, 46%);
  padding: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(3, 5, 6, 0.8);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .34);
}

.memory-node strong {
  display: block;
  margin: 10px 0;
  font-size: 1rem;
  line-height: 1.25;
}

.memory-node span {
  color: var(--mist);
}

.memory-node small {
  color: var(--smoke);
  line-height: 1.45;
}

.node-decision {
  top: 0;
  left: 0;
}

.node-assumption {
  top: 142px;
  right: 16px;
  border-color: rgba(95, 117, 99, .64);
}

.node-conflict {
  top: 245px;
  left: 74px;
  border-color: rgba(138, 91, 84, .76);
}

.node-action {
  right: 0;
  bottom: 0;
  border-color: rgba(125, 109, 80, .72);
}

.evidence-tape {
  position: absolute;
  right: -34px;
  bottom: 24px;
  left: -34px;
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-block: 1px solid var(--line);
  color: var(--mist);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  transform: rotate(-3deg);
  white-space: nowrap;
}

.evidence-tape span {
  animation: tape 12s linear infinite;
}

.assumption-drift {
  position: absolute;
  right: 24px;
  top: 72px;
  z-index: 3;
  width: 180px;
  padding: 12px;
  border: 1px solid rgba(125, 109, 80, 0.48);
  background: rgba(24, 20, 18, 0.7);
  color: var(--mist);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.assumption-drift i,
.assumption-drift b,
.assumption-drift em {
  display: block;
  height: 1px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--smoke), var(--amber-dim), transparent);
  transform-origin: left center;
}

.assumption-drift i {
  width: 42%;
}

.assumption-drift b {
  width: 68%;
  animation: drift-line 5.5s var(--ease) infinite alternate;
}

.assumption-drift em {
  width: 88%;
  animation: drift-line 7s var(--ease) infinite alternate-reverse;
}


.memory-weave-stage {
  min-height: 680px;
  border-color: rgba(216, 220, 221, 0.22);
  background:
    radial-gradient(circle at 42% 18%, rgba(216, 220, 221, 0.08), transparent 19rem),
    radial-gradient(circle at 78% 34%, rgba(138, 91, 84, 0.22), transparent 17rem),
    linear-gradient(145deg, rgba(3, 5, 6, 0.78), rgba(6, 11, 18, 0.92) 56%, rgba(24, 20, 18, 0.82));
  box-shadow:
    0 0 0 1px rgba(95, 117, 99, 0.12) inset,
    0 48px 150px rgba(0, 0, 0, 0.54);
  isolation: isolate;
}

.memory-weave-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(3, 5, 6, 0.86), transparent 28%, rgba(3, 5, 6, 0.08) 64%, rgba(3, 5, 6, 0.34)),
    radial-gradient(circle at 18% 70%, rgba(3, 5, 6, 0.82), transparent 19rem);
  opacity: .96;
  pointer-events: none;
}

.memory-weave-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 5, 6, .24), transparent 24%, rgba(3, 5, 6, .34)),
    radial-gradient(circle at center, transparent 0 48%, rgba(0, 0, 0, .52) 100%);
}

.memory-weave-stage .stage-label {
  z-index: 12;
}

.weave-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.weave-image {
  position: absolute;
  inset: -4% -10% -6% -32%;
  width: 142%;
  height: 112%;
  object-fit: cover;
  object-position: 58% 47%;
  opacity: .74;
  transform: translate3d(var(--weave-drift-x, 0), var(--weave-drift-y, 0), 0) scale(1.018);
  filter: saturate(.92) contrast(1.08) brightness(.84);
  animation: weave-breathe 14s var(--ease) infinite alternate;
}

.weave-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    repeating-linear-gradient(84deg, rgba(216, 220, 221, 0.05) 0 1px, transparent 1px 16px),
    linear-gradient(110deg, rgba(3, 5, 6, 0.74), transparent 44%, rgba(3, 5, 6, 0.22));
  mix-blend-mode: screen;
  opacity: .28;
  transform: translate3d(calc(var(--weave-drift-x, 0) * -0.5), 0, 0);
  animation: weave-shimmer 9s linear infinite;
}

.weave-light {
  position: absolute;
  z-index: 3;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 180, 118, 0.9);
  box-shadow: 0 0 28px rgba(226, 82, 66, 0.7), 0 0 58px rgba(125, 109, 80, 0.42);
  opacity: .45;
  animation: weave-flicker 4.8s var(--ease) infinite alternate;
}

.light-a {
  top: 31%;
  left: 61%;
}

.light-b {
  top: 44%;
  left: 78%;
  animation-delay: -1.8s;
}

.light-c {
  top: 67%;
  left: 53%;
  animation-delay: -3.1s;
}

.memory-weave-svg {
  position: absolute;
  inset: 8% 4% 14% 4%;
  z-index: 5;
  width: 92%;
  height: 78%;
  fill: none;
  pointer-events: none;
}

.weave-thread {
  stroke: rgba(216, 220, 221, 0.22);
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 420;
  opacity: .34;
  filter: drop-shadow(0 0 8px rgba(216, 220, 221, 0.06));
  transition: opacity 720ms var(--ease), stroke 720ms var(--ease), stroke-width 720ms var(--ease), stroke-dashoffset 900ms var(--ease), filter 720ms var(--ease);
}

.thread-decision {
  stroke: rgba(216, 220, 221, 0.52);
}

.thread-assumption {
  stroke: rgba(95, 117, 99, 0.54);
}

.thread-constraint {
  stroke: rgba(125, 109, 80, 0.5);
}

.thread-commitment {
  stroke: rgba(183, 188, 185, 0.34);
  stroke-dasharray: 12 12;
}

.thread-contradiction {
  stroke: rgba(138, 91, 84, 0.64);
  opacity: 0;
}

.thread-forward {
  stroke: rgba(216, 220, 221, 0.58);
  opacity: 0;
}

.memory-weave-stage[data-active-state='1'] .thread-decision,
.memory-weave-stage[data-active-state='2'] .thread-decision,
.memory-weave-stage[data-active-state='3'] .thread-decision,
.memory-weave-stage[data-active-state='4'] .thread-decision {
  opacity: 1;
  stroke-width: 2.1;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 18px rgba(216, 220, 221, 0.25));
}

.memory-weave-stage[data-active-state='2'] .thread-assumption,
.memory-weave-stage[data-active-state='2'] .thread-constraint,
.memory-weave-stage[data-active-state='2'] .thread-commitment,
.memory-weave-stage[data-active-state='3'] .thread-assumption,
.memory-weave-stage[data-active-state='3'] .thread-constraint,
.memory-weave-stage[data-active-state='3'] .thread-commitment,
.memory-weave-stage[data-active-state='4'] .thread-assumption,
.memory-weave-stage[data-active-state='4'] .thread-constraint,
.memory-weave-stage[data-active-state='4'] .thread-commitment {
  opacity: .92;
  stroke-dashoffset: 0;
}

.memory-weave-stage[data-active-state='3'] .thread-contradiction,
.memory-weave-stage[data-active-state='4'] .thread-contradiction {
  opacity: 1;
  stroke-width: 2.4;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 18px rgba(138, 91, 84, 0.54));
  animation: weave-tension-pulse 1300ms var(--ease) 1;
}

.memory-weave-stage[data-active-state='4'] .thread-forward {
  opacity: 1;
  stroke-width: 2.3;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 22px rgba(216, 220, 221, 0.34));
}

.weave-knot {
  position: absolute;
  z-index: 10;
  left: var(--x);
  top: var(--y);
  width: 16px;
  height: 16px;
  padding: 0;
  border: 1px solid rgba(216, 220, 221, 0.34);
  border-radius: 999px;
  background: rgba(216, 220, 221, 0.44);
  box-shadow: 0 0 20px rgba(216, 220, 221, 0.18);
  cursor: pointer;
  transform: translate(-50%, -50%) scale(.78);
  transition: transform 260ms var(--ease), background 260ms var(--ease), border-color 260ms var(--ease), box-shadow 260ms var(--ease), opacity 260ms var(--ease);
}

.weave-knot::after {
  content: '';
  position: absolute;
  inset: -10px;
  border: 1px solid currentColor;
  border-radius: inherit;
  opacity: .12;
}

.weave-knot:hover,
.weave-knot:focus-visible,
.weave-knot.is-active {
  transform: translate(-50%, -50%) scale(1.08);
  border-color: rgba(216, 220, 221, 0.86);
  background: rgba(216, 220, 221, 0.88);
  box-shadow: 0 0 28px rgba(216, 220, 221, 0.34), 0 0 70px rgba(95, 117, 99, 0.2);
  outline: 0;
}

.knot-contradiction,
.knot-contradiction:hover,
.knot-contradiction:focus-visible,
.knot-contradiction.is-active {
  color: rgba(138, 91, 84, 0.92);
  border-color: rgba(138, 91, 84, 0.86);
  background: rgba(226, 82, 66, 0.82);
  box-shadow: 0 0 26px rgba(226, 82, 66, 0.54), 0 0 80px rgba(138, 91, 84, 0.34);
}

.knot-forward,
.knot-forward:hover,
.knot-forward:focus-visible,
.knot-forward.is-active {
  color: rgba(216, 220, 221, 0.92);
  border-color: rgba(216, 220, 221, 0.92);
  background: rgba(183, 188, 185, 0.88);
}

.weave-panel {
  position: absolute;
  z-index: 11;
  right: 24px;
  bottom: 76px;
  width: min(410px, calc(100% - 48px));
  min-height: 250px;
  padding: 22px;
  border: 1px solid rgba(216, 220, 221, 0.24);
  background:
    linear-gradient(135deg, rgba(216, 220, 221, 0.065), transparent 30%),
    rgba(3, 5, 6, 0.84);
  box-shadow: 0 28px 100px rgba(0, 0, 0, .44);
  backdrop-filter: blur(14px);
}

.weave-panel article {
  display: none;
}

.weave-panel article.is-active {
  display: block;
}

.weave-panel span {
  color: var(--mist);
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.weave-panel h2 {
  max-width: none;
  margin-top: 12px;
  color: var(--white);
  font-size: clamp(1.8rem, 3.2vw, 3.5rem);
  letter-spacing: -.052em;
}

.weave-panel p {
  margin-top: 14px;
  color: var(--paper);
  font-size: .98rem;
}

.weave-panel p strong {
  color: var(--white);
  font-weight: 600;
}

.weave-panel small {
  display: block;
  margin-top: 16px;
  color: var(--mist);
  font-family: var(--mono);
  font-size: .66rem;
  line-height: 1.45;
  text-transform: uppercase;
}

.weave-stepper {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 12;
  display: flex;
  gap: 7px;
}

.weave-stepper button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(216, 220, 221, 0.18);
  background: rgba(3, 5, 6, 0.72);
  color: var(--mist);
  font-family: var(--mono);
  font-size: .62rem;
  cursor: pointer;
  transition: color 220ms var(--ease), border-color 220ms var(--ease), background 220ms var(--ease), transform 220ms var(--ease);
}

.weave-stepper button:hover,
.weave-stepper button:focus-visible,
.weave-stepper button.is-active {
  border-color: rgba(216, 220, 221, 0.6);
  background: rgba(216, 220, 221, 0.1);
  color: var(--white);
  outline: 0;
  transform: translateY(-2px);
}

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-heading h2,
.section-heading p {
  margin-inline: auto;
}

.split-heading {
  gap: 24px;
}

.anti-category {
  padding-top: 60px;
}

.not-this-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 58px;
}

.strike-card,
.truth-card,
.artifact-card,
.mode-panel,
.layer-card,
.why-grid article {
  border: 1px solid var(--line);
  background: rgba(6, 11, 18, 0.64);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .22);
}

.strike-card,
.truth-card {
  min-height: 220px;
  padding: 22px;
  color: var(--mist);
  font-size: clamp(1.45rem, 2.3vw, 2.35rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.strike-card {
  text-decoration: line-through;
  text-decoration-color: rgba(138, 91, 84, .78);
  text-decoration-thickness: 2px;
}

.truth-card {
  grid-column: span 1;
  background: linear-gradient(180deg, rgba(16, 33, 23, .74), rgba(3, 5, 6, .88));
  color: var(--white);
}

.scenario-heading {
  margin-bottom: 46px;
}

.scenario-layout {
  display: grid;
  grid-template-columns: minmax(420px, 0.98fr) minmax(0, 0.82fr);
  gap: 64px;
  align-items: start;
}

.scenario-stage {
  position: sticky;
  top: 120px;
  min-height: 74vh;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 28% 20%, rgba(95, 117, 99, 0.15), transparent 24rem),
    radial-gradient(circle at 82% 72%, rgba(125, 109, 80, 0.16), transparent 22rem),
    linear-gradient(145deg, rgba(14, 28, 43, 0.86), rgba(3, 5, 6, 0.88) 62%, rgba(24, 20, 18, 0.76));
  box-shadow: 0 42px 130px rgba(0, 0, 0, 0.42);
  overflow: hidden;
  isolation: isolate;
}

.scenario-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(216, 220, 221, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 220, 221, 0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: 0.42;
  transform: translate3d(calc(var(--scenario-progress, 0) * -24px), calc(var(--scenario-progress, 0) * -18px), 0);
}

.scenario-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 5, 6, .15), transparent 28%, rgba(3, 5, 6, .42)),
    radial-gradient(circle at center, transparent 0 48%, rgba(0, 0, 0, .48) 100%);
  z-index: 6;
}

.scenario-stage-label {
  position: absolute;
  top: 18px;
  right: 18px;
  left: 18px;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--mist);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.scenario-stage-label i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(216, 220, 221, 0.25), transparent);
  transform-origin: left center;
  transform: scaleX(calc(0.18 + var(--scenario-progress, 0) * 0.82));
}

.scenario-artifacts,
.scenario-extraction,
.scenario-graph,
.scenario-action-card {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.scenario-doc {
  position: absolute;
  width: min(235px, 42%);
  padding: 15px;
  border: 1px solid rgba(216, 220, 221, 0.18);
  background: rgba(3, 5, 6, 0.76);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .38);
  opacity: 0;
  transform: translate3d(0, 34px, 0) rotate(var(--doc-rotation, 0deg));
  transition: opacity 720ms var(--ease), transform 900ms var(--ease), border-color 720ms var(--ease);
}

.scenario-doc span,
.extract-tag,
.graph-node span,
.scenario-action-card span {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.scenario-doc span {
  color: var(--mist);
}

.scenario-doc strong {
  display: block;
  margin-top: 10px;
  color: var(--paper);
  font-size: 0.9rem;
  line-height: 1.28;
}

.doc-roadmap {
  top: 102px;
  left: 8%;
  --doc-rotation: -4deg;
}

.doc-planning {
  top: 156px;
  right: 9%;
  --doc-rotation: 3deg;
}

.doc-review {
  bottom: 155px;
  left: 13%;
  --doc-rotation: 2deg;
}

.doc-paste {
  right: 12%;
  bottom: 102px;
  --doc-rotation: -3deg;
}

.scenario-story[data-active-step='0'] .scenario-doc,
.scenario-story[data-active-step='1'] .scenario-doc,
.scenario-story[data-active-step='2'] .scenario-doc,
.scenario-story[data-active-step='3'] .scenario-doc,
.scenario-story[data-active-step='4'] .scenario-doc {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(var(--doc-rotation, 0deg));
}

.scenario-story[data-active-step='1'] .scenario-doc,
.scenario-story[data-active-step='2'] .scenario-doc,
.scenario-story[data-active-step='3'] .scenario-doc,
.scenario-story[data-active-step='4'] .scenario-doc {
  opacity: 0.48;
  border-color: rgba(216, 220, 221, 0.12);
}

.extract-tag {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid rgba(95, 117, 99, .48);
  background: rgba(16, 33, 23, .76);
  color: var(--white);
  opacity: 0;
  transform: translate3d(-16px, 18px, 0);
  transition: opacity 520ms var(--ease), transform 680ms var(--ease);
}

.tag-decision {
  top: 112px;
  left: 24%;
}

.tag-assumption {
  top: 194px;
  right: 16%;
  transition-delay: 60ms;
}

.tag-constraint {
  bottom: 216px;
  left: 20%;
  transition-delay: 120ms;
}

.tag-commitment {
  right: 17%;
  bottom: 152px;
  transition-delay: 180ms;
}

.tag-outcome {
  top: 48%;
  left: 42%;
  border-color: rgba(125, 109, 80, .58);
  background: rgba(24, 20, 18, .78);
  transition-delay: 240ms;
}

.scenario-story[data-active-step='1'] .extract-tag,
.scenario-story[data-active-step='2'] .extract-tag,
.scenario-story[data-active-step='3'] .extract-tag,
.scenario-story[data-active-step='4'] .extract-tag {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.scenario-story[data-active-step='2'] .scenario-extraction,
.scenario-story[data-active-step='3'] .scenario-extraction,
.scenario-story[data-active-step='4'] .scenario-extraction {
  opacity: 0.34;
}

.scenario-graph {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 720ms var(--ease), transform 820ms var(--ease);
}

.scenario-graph svg {
  position: absolute;
  inset: 80px 22px 62px;
  width: calc(100% - 44px);
  height: calc(100% - 142px);
  fill: none;
  z-index: 2;
}

.scenario-graph .line {
  stroke: rgba(216, 220, 221, 0.23);
  stroke-width: 1.35;
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  transition: stroke-dashoffset 950ms var(--ease), stroke 500ms var(--ease), filter 500ms var(--ease), opacity 500ms var(--ease);
}

.graph-node {
  position: absolute;
  z-index: 3;
  width: min(240px, 42%);
  padding: 14px;
  border: 1px solid rgba(216, 220, 221, 0.24);
  background: rgba(3, 5, 6, 0.82);
  box-shadow: 0 24px 90px rgba(0, 0, 0, .34);
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 620ms var(--ease), transform 760ms var(--ease), border-color 500ms var(--ease), background 500ms var(--ease);
}

.graph-node span {
  color: var(--mist);
}

.graph-node strong {
  display: block;
  margin-top: 9px;
  color: var(--white);
  font-size: 0.94rem;
  line-height: 1.22;
}

.graph-decision {
  top: 42%;
  left: 38%;
}

.graph-assumption {
  top: 118px;
  left: 8%;
}

.graph-constraint {
  bottom: 120px;
  left: 7%;
}

.graph-conflict {
  top: 105px;
  right: 7%;
  border-color: rgba(125, 109, 80, .38);
}

.graph-dependency {
  right: 7%;
  bottom: 105px;
  border-color: rgba(95, 117, 99, .42);
}

.scenario-story[data-active-step='2'] .scenario-graph,
.scenario-story[data-active-step='3'] .scenario-graph,
.scenario-story[data-active-step='4'] .scenario-graph {
  opacity: 1;
  transform: scale(1);
}

.scenario-story[data-active-step='2'] .graph-node,
.scenario-story[data-active-step='3'] .graph-node,
.scenario-story[data-active-step='4'] .graph-node {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.scenario-story[data-active-step='2'] .line,
.scenario-story[data-active-step='3'] .line,
.scenario-story[data-active-step='4'] .line {
  stroke-dashoffset: 0;
}

.scenario-story[data-active-step='2'] .line-contradiction {
  opacity: 0;
  stroke-dashoffset: 520;
}

.scenario-story[data-active-step='2'] .graph-conflict {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
}

.scenario-story[data-active-step='3'] .line-contradiction,
.scenario-story[data-active-step='4'] .line-contradiction {
  stroke: rgba(138, 91, 84, 0.92);
  filter: drop-shadow(0 0 12px rgba(138, 91, 84, 0.32));
  animation: contradiction-pulse 1400ms var(--ease) 1;
}

.scenario-story[data-active-step='3'] .graph-conflict,
.scenario-story[data-active-step='4'] .graph-conflict {
  border-color: rgba(138, 91, 84, 0.84);
  background: rgba(24, 20, 18, 0.88);
}

.scenario-action-card {
  z-index: 5;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  width: min(500px, calc(100% - 68px));
  padding: 28px;
  border: 1px solid rgba(216, 220, 221, 0.5);
  background:
    radial-gradient(circle at 50% 0%, rgba(216, 220, 221, 0.18), transparent 16rem),
    linear-gradient(180deg, rgba(16, 33, 23, 0.94), rgba(6, 11, 18, 0.96) 58%, rgba(24, 20, 18, 0.9));
  box-shadow:
    0 0 0 1px rgba(95, 117, 99, 0.22) inset,
    0 0 72px rgba(216, 220, 221, 0.13),
    0 34px 120px rgba(0, 0, 0, .54);
  opacity: 0;
  transform: translate3d(-50%, -42%, 0) scale(.96);
  filter: blur(8px);
  transition: opacity 820ms var(--ease), transform 820ms var(--ease), filter 820ms var(--ease);
  text-align: center;
}

.scenario-action-card span {
  color: var(--white);
  text-shadow: 0 0 18px rgba(216, 220, 221, 0.22);
}

.scenario-action-card strong {
  display: block;
  margin-top: 12px;
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(2.15rem, 3.8vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.94;
}

.scenario-action-card ul {
  display: grid;
  gap: 8px;
  margin: 20px auto 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(216, 220, 221, 0.18);
  color: var(--paper);
  list-style: none;
  text-align: center;
}

.scenario-action-card li::before {
  content: '— ';
  color: var(--green-dim);
}

.scenario-story[data-active-step='4'] .scenario-action-card {
  opacity: 1;
  transform: translate3d(-50%, -50%, 0) scale(1);
  filter: blur(0);
}

.scenario-scroll-panels {
  display: grid;
  gap: 18vh;
  padding: 8vh 0 16vh;
}

.scenario-panel {
  min-height: 54vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  border-left: 1px solid rgba(216, 220, 221, 0.16);
  opacity: 0.54;
  transition: opacity 460ms var(--ease), border-color 460ms var(--ease), background 460ms var(--ease);
}

.scenario-panel.is-active {
  border-color: rgba(216, 220, 221, 0.42);
  background: linear-gradient(90deg, rgba(216, 220, 221, 0.045), transparent 68%);
  opacity: 1;
}

.scenario-panel h3 {
  max-width: 11ch;
  margin-top: 8px;
  font-family: var(--display);
  font-size: clamp(2.6rem, 5.2vw, 5.8rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.scenario-panel p:not(.kicker) {
  max-width: 560px;
  margin-top: 20px;
  color: var(--paper);
  font-size: 1.08rem;
}

.artifact-field {
  position: relative;
  min-height: 560px;
  margin-top: 70px;
}

.artifact-card {
  position: absolute;
  width: min(390px, 76vw);
  padding: 24px;
  background: rgba(24, 20, 18, 0.72);
  backdrop-filter: blur(10px);
}

.artifact-card span {
  color: var(--mist);
}

.artifact-card strong {
  display: block;
  margin-top: 18px;
  font-size: clamp(1.3rem, 2.3vw, 2.25rem);
  line-height: 1.02;
}

.offset-a {
  top: 0;
  left: 3%;
  transform: translate3d(calc((var(--scene-progress, .5) - .5) * -46px), 0, 0) rotate(-3deg);
}

.offset-b {
  top: 80px;
  right: 4%;
  transform: translate3d(calc((var(--scene-progress, .5) - .5) * 58px), 0, 0) rotate(2deg);
}

.offset-c {
  bottom: 66px;
  left: 18%;
  transform: translate3d(0, calc((var(--scene-progress, .5) - .5) * -38px), 0) rotate(1deg);
}

.offset-d {
  right: 17%;
  bottom: 0;
  transform: translate3d(calc((var(--scene-progress, .5) - .5) * 34px), 0, 0) rotate(-2deg);
}

.disputed {
  border-color: rgba(138, 91, 84, .9);
}

.faded {
  opacity: .72;
}

.sticky-story {
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  gap: 70px;
  align-items: start;
}

.sticky-stage {
  position: sticky;
  top: 120px;
  min-height: 72vh;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: radial-gradient(circle, rgba(14, 28, 43, .92), rgba(3, 5, 6, .72) 58%, rgba(0, 0, 0, .18));
}

.memory-core {
  position: relative;
  display: grid;
  width: min(62vw, 430px);
  aspect-ratio: 1;
  place-items: center;
}

.memory-core strong {
  z-index: 2;
  max-width: 8ch;
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 5.8rem);
  font-weight: 400;
  line-height: .88;
  text-align: center;
}

.core-ring {
  position: absolute;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  inset: 10%;
  animation: breathe 8s var(--ease) infinite alternate;
}

.ring-two {
  inset: 22%;
  border-color: rgba(95, 117, 99, .58);
  animation-delay: -2s;
}

.ring-three {
  inset: 34%;
  border-color: rgba(125, 109, 80, .58);
  animation-delay: -4s;
}

.story-steps {
  display: grid;
  gap: 20vh;
  padding: 14vh 0;
}

.story-step {
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-step p:not(.kicker) {
  max-width: 560px;
  margin-top: 22px;
  color: var(--paper);
  font-size: 1.12rem;
}

.mode-sequence,
.layers,
.why-grid {
  display: grid;
  gap: 16px;
  margin-top: 58px;
}

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

.mode-panel {
  min-height: 390px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 500ms var(--ease), border-color 500ms var(--ease), background 500ms var(--ease);
}

.mode-panel:hover {
  transform: translateY(-10px);
  border-color: var(--line-strong);
}

.mode-panel span,
.layer-card span {
  color: var(--mist);
}

.mode-panel p,
.layer-card p,
.why-grid span {
  color: var(--paper);
}

.conflict {
  background: linear-gradient(180deg, rgba(138, 91, 84, .24), rgba(6, 11, 18, .68));
}

.drift {
  background: linear-gradient(180deg, rgba(125, 109, 80, .24), rgba(6, 11, 18, .68));
}

.action {
  background: linear-gradient(180deg, rgba(95, 117, 99, .25), rgba(6, 11, 18, .68));
}

.reasoning-console {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 24px;
  margin-top: 18px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(216, 220, 221, .07), transparent 30%),
    rgba(3, 5, 6, 0.78);
  box-shadow: 0 34px 110px rgba(0, 0, 0, .34);
  overflow: hidden;
}

.console-track {
  display: grid;
  gap: 1px;
  border-right: 1px solid var(--line);
}

.console-track span {
  padding: 18px;
  background: rgba(216, 220, 221, 0.035);
  color: var(--mist);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.console-track span:nth-child(3) {
  color: var(--white);
  background: rgba(138, 91, 84, 0.18);
}

.console-body {
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 220px;
  padding: 30px;
}

.console-body p {
  max-width: 34ch;
  color: var(--paper);
  font-size: clamp(1.1rem, 2vw, 1.65rem);
}

.console-body strong {
  max-width: 28ch;
  font-family: var(--display);
  font-size: clamp(2rem, 4.8vw, 4.6rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.layers {
  perspective: 1200px;
}

.layer-card {
  min-height: 220px;
  padding: 28px;
  transform-origin: center top;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.layer-card:nth-child(1) {
  transform: translateY(0) rotateX(0deg);
}

.layer-card:nth-child(2) {
  transform: translateY(-26px) scale(.96);
  background: rgba(14, 28, 43, .62);
}

.layer-card:nth-child(3) {
  transform: translateY(-52px) scale(.92);
  background: rgba(16, 33, 23, .46);
}

.layer-card h3 {
  margin: 14px 0;
  font-size: clamp(2rem, 4vw, 4.4rem);
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.05em;
}

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

.why-grid article {
  min-height: 190px;
  padding: 24px;
}

.why-grid strong {
  display: block;
  margin-bottom: 16px;
  font-size: 1.35rem;
}

.why-grid span {
  display: block;
}

.manifesto {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.manifesto h2 {
  max-width: 10ch;
  margin-inline: auto;
}

.manifesto-lines {
  display: grid;
  gap: 10px;
  margin-top: 44px;
  color: var(--paper);
  font-family: var(--mono);
  font-size: clamp(1rem, 1.5vw, 1.24rem);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-inline: auto;
}

.final-cta {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.final-cta h2,
.final-cta p {
  margin-inline: auto;
}

.final-cta .cta-row {
  justify-content: center;
}

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 42px, 0) scale(.985);
  filter: blur(10px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease), filter 900ms var(--ease);
}

.site-header[data-reveal],
.scene-hero [data-reveal] {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.scene-left [data-reveal] {
  transform: translate3d(-54px, 20px, 0) scale(.985);
}

.scene-rise [data-reveal] {
  transform: translate3d(0, 64px, 0) scale(.97);
}

.scene-stack [data-reveal] {
  transform: translate3d(0, 26px, 0) rotateX(6deg) scale(.98);
}

.manifesto [data-reveal] {
  transform: translate3d(0, 0, 0) scale(.94);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.layers .layer-card[data-reveal],
.layers .layer-card[data-reveal].is-visible {
  filter: blur(0);
}

.layers .layer-card:nth-child(1)[data-reveal],
.layers .layer-card:nth-child(1)[data-reveal].is-visible {
  transform: translateY(0) rotateX(0deg);
}

.layers .layer-card:nth-child(2)[data-reveal],
.layers .layer-card:nth-child(2)[data-reveal].is-visible {
  transform: translateY(-26px) scale(.96);
}

.layers .layer-card:nth-child(3)[data-reveal],
.layers .layer-card:nth-child(3)[data-reveal].is-visible {
  transform: translateY(-52px) scale(.92);
}

.layers .layer-card[data-reveal].is-visible {
  opacity: 1;
}

@keyframes trace {
  to {
    stroke-dashoffset: -120;
  }
}

@keyframes tape {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-120%);
  }
}

@keyframes breathe {
  from {
    transform: scale(.95);
    opacity: .38;
  }

  to {
    transform: scale(1.08);
    opacity: .88;
  }
}

@keyframes drift-line {
  from {
    transform: scaleX(.48);
    opacity: .44;
  }

  to {
    transform: scaleX(1);
    opacity: .9;
  }
}

@keyframes contradiction-pulse {
  0% {
    stroke-width: 1.35;
    opacity: 0.62;
  }

  42% {
    stroke-width: 3.2;
    opacity: 1;
  }

  100% {
    stroke-width: 1.8;
    opacity: 0.92;
  }
}

@keyframes weave-breathe {
  from {
    transform: translate3d(-4px, 3px, 0) scale(1.012);
    filter: saturate(.9) contrast(1.04) brightness(.8);
  }

  to {
    transform: translate3d(7px, -5px, 0) scale(1.032);
    filter: saturate(.98) contrast(1.12) brightness(.9);
  }
}

@keyframes weave-shimmer {
  from {
    background-position: 0 0, 0 0;
    opacity: .2;
  }

  50% {
    opacity: .32;
  }

  to {
    background-position: 44px 0, 0 0;
    opacity: .22;
  }
}

@keyframes weave-flicker {
  0% {
    opacity: .28;
    transform: scale(.8);
  }

  34% {
    opacity: .7;
    transform: scale(1.06);
  }

  63% {
    opacity: .42;
    transform: scale(.92);
  }

  100% {
    opacity: .82;
    transform: scale(1.18);
  }
}

@keyframes weave-tension-pulse {
  0% {
    stroke-width: 1.4;
    opacity: .54;
  }

  42% {
    stroke-width: 3.6;
    opacity: 1;
  }

  100% {
    stroke-width: 2.4;
    opacity: .94;
  }
}

@media (max-width: 980px) {
  .top-nav {
    display: none;
  }

  .site-header {
    grid-template-columns: auto auto;
    justify-content: center;
  }

  .hero,
  .sticky-story,
  .split-heading,
  .scenario-layout {
    grid-template-columns: 1fr;
  }

  .scene,
  .scene-left,
  .scene-rise,
  .scene-debris,
  .scene-stack {
    transform: none;
  }

  .hero-stage {
    min-height: 540px;
  }

  .memory-weave-stage {
    min-height: 680px;
  }

  .weave-image {
    inset: -3% -24% -4% -28%;
    width: 150%;
  }

  .not-this-grid,
  .mode-sequence {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .console-track {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sticky-stage,
  .scenario-stage {
    position: relative;
    top: auto;
    min-height: 560px;
  }

  .story-steps {
    gap: 80px;
    padding: 70px 0 0;
  }

  .story-step {
    min-height: auto;
  }

  .scenario-scroll-panels {
    counter-reset: scenario-step;
    gap: 22px;
    padding: 22px 0 0;
  }

  .scenario-panel {
    counter-increment: scenario-step;
    min-height: auto;
    position: relative;
    padding-left: 46px;
  }

  .scenario-panel::before {
    content: counter(scenario-step, decimal-leading-zero);
    position: absolute;
    top: 28px;
    left: -14px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(216, 220, 221, 0.22);
    border-radius: 50%;
    background: rgba(3, 5, 6, 0.92);
    color: var(--mist);
    font-family: var(--mono);
    font-size: 0.56rem;
    font-weight: 700;
  }

  .scenario-panel.is-active::before {
    border-color: rgba(95, 117, 99, 0.78);
    color: var(--white);
    box-shadow: 0 0 28px rgba(95, 117, 99, 0.22);
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .nav-cta {
    display: none;
  }

  .scene {
    width: min(calc(100% - 24px), var(--max));
    padding: 90px 0;
  }

  .hero {
    padding-top: 120px;
    gap: 30px;
  }

  h1 {
    font-size: clamp(3.7rem, 18vw, 6rem);
  }

  h2 {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .not-this-grid,
  .mode-sequence,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 610px;
  }

  .memory-weave-stage {
    min-height: 760px;
  }

  .weave-image {
    inset: -2% -56% -5% -76%;
    width: 220%;
    height: 108%;
    opacity: .66;
  }

  .memory-weave-svg {
    inset: 8% -12% 30% -10%;
    width: 124%;
    height: 62%;
  }

  .weave-knot {
    width: 18px;
    height: 18px;
  }

  .knot-decision {
    --x: 50% !important;
    --y: 38% !important;
  }

  .knot-assumption {
    --x: 34% !important;
    --y: 26% !important;
  }

  .knot-constraint {
    --x: 24% !important;
    --y: 51% !important;
  }

  .knot-contradiction {
    --x: 72% !important;
    --y: 23% !important;
  }

  .knot-forward {
    --x: 76% !important;
    --y: 56% !important;
  }

  .weave-panel {
    right: 14px;
    bottom: 78px;
    width: calc(100% - 28px);
    min-height: 270px;
    padding: 18px;
  }

  .weave-panel h2 {
    font-size: clamp(1.72rem, 9vw, 3.2rem);
  }

  .weave-stepper {
    right: 14px;
    bottom: 24px;
    left: 14px;
    justify-content: center;
  }

  .assumption-drift {
    display: none;
  }

  .memory-node {
    width: 72%;
  }

  .node-decision {
    left: 0;
  }

  .node-assumption {
    right: 0;
    top: 132px;
  }

  .node-conflict {
    left: 6px;
    top: 284px;
  }

  .node-action {
    right: 0;
    bottom: 10px;
  }

  .artifact-field {
    min-height: 790px;
  }

  .artifact-card {
    position: relative;
    inset: auto;
    margin: 0 0 18px;
    transform: none;
    width: 100%;
  }

  .layer-card:nth-child(n) {
    transform: none;
  }

  .scenario-stage {
    min-height: 720px;
  }

  .scenario-doc {
    width: 68%;
    padding: 12px;
  }

  .doc-roadmap {
    top: 76px;
    left: 5%;
  }

  .doc-planning {
    top: 148px;
    right: 5%;
  }

  .doc-review {
    bottom: 252px;
    left: 5%;
  }

  .doc-paste {
    right: 5%;
    bottom: 182px;
  }

  .extract-tag {
    min-height: 30px;
    padding: 7px 8px;
    font-size: 0.54rem;
  }

  .tag-decision {
    top: 96px;
    left: 48%;
  }

  .tag-assumption {
    top: 186px;
    right: 8%;
  }

  .tag-constraint {
    bottom: 302px;
    left: 12%;
  }

  .tag-commitment {
    right: 10%;
    bottom: 205px;
  }

  .tag-outcome {
    top: 48%;
    left: 18%;
  }

  .scenario-graph svg {
    inset: 66px 10px 150px;
    width: calc(100% - 20px);
    height: calc(100% - 216px);
  }

  .graph-node {
    width: 48%;
    padding: 10px;
  }

  .graph-decision {
    top: 42%;
    left: 28%;
  }

  .graph-assumption {
    top: 86px;
    left: 4%;
  }

  .graph-constraint {
    bottom: 266px;
    left: 4%;
  }

  .graph-conflict {
    top: 96px;
    right: 4%;
  }

  .graph-dependency {
    right: 4%;
    bottom: 232px;
  }

  .scenario-action-card {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: calc(100% - 28px);
    padding: 18px;
  }

  .scenario-panel {
    padding: 22px 18px 22px 46px;
  }

  .scenario-panel h3 {
    font-size: clamp(2.4rem, 13vw, 4.6rem);
  }
}

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

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

  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
  }

  #memory-field {
    opacity: .28;
  }

  .weave-image {
    transform: none;
  }

  .weave-thread {
    stroke-dashoffset: 0;
  }

  .thread-contradiction,
  .thread-forward {
    opacity: .88;
  }
}

/* Symbolic replacement pass: make the whole page read as one memory fabric. */
:root {
  --stable-blue: #567286;
  --stable-blue-soft: rgba(86, 114, 134, 0.72);
  --drift-orange: #b26d3d;
  --next-yellow: #d6a85b;
}

.scene {
  isolation: isolate;
}

.scene::before {
  content: '';
  position: absolute;
  top: -58px;
  bottom: -58px;
  left: max(-5vw, -64px);
  z-index: -1;
  width: 1px;
  background:
    linear-gradient(180deg, transparent, rgba(216, 220, 221, 0.18) 16%, rgba(95, 117, 99, 0.2) 46%, rgba(125, 109, 80, 0.18) 68%, transparent),
    repeating-linear-gradient(180deg, transparent 0 46px, rgba(216, 220, 221, 0.2) 46px 47px, transparent 47px 98px);
  opacity: calc(var(--scene-presence, 1) * 0.82);
  transform: translate3d(calc((var(--scene-progress, .5) - .5) * 18px), 0, 0);
  pointer-events: none;
}

.scene::after {
  top: 4%;
  height: 92px;
  background:
    radial-gradient(circle at 18% 50%, rgba(216, 220, 221, 0.28) 0 2px, transparent 3px),
    radial-gradient(circle at 55% 50%, rgba(138, 91, 84, 0.32) 0 2px, transparent 3px),
    linear-gradient(90deg, transparent, rgba(216, 220, 221, 0.22), rgba(95, 117, 99, 0.18), transparent);
  opacity: calc(var(--scene-presence, 1) * 0.34);
  transform: scaleX(calc(.68 + var(--scene-presence, 1) * .32));
}

.hero {
  position: relative;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  min-height: calc(100vh + 70px);
  overflow: visible;
  isolation: isolate;
}

.hero-copy {
  position: relative;
  z-index: 16;
  grid-column: 1;
  grid-row: 1;
  max-width: 710px;
  text-shadow: 0 20px 70px rgba(0, 0, 0, 0.72);
}

.memory-weave-stage {
  grid-column: 1 / -1;
  grid-row: 1;
  align-self: stretch;
  justify-self: stretch;
  min-height: clamp(760px, 92vh, 980px);
  margin: -24px -8vw -36px 18vw;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.memory-weave-stage::before {
  z-index: 4;
  background:
    linear-gradient(90deg, rgba(3, 5, 6, 0.95), rgba(3, 5, 6, 0.76) 18%, rgba(3, 5, 6, 0.18) 46%, rgba(3, 5, 6, 0.06) 72%, rgba(3, 5, 6, 0.28)),
    radial-gradient(circle at 18% 64%, rgba(3, 5, 6, 0.86), transparent 23rem),
    radial-gradient(circle at 72% 40%, rgba(138, 91, 84, 0.14), transparent 28rem);
  opacity: 1;
}

.memory-weave-stage::after {
  z-index: 7;
  background:
    linear-gradient(180deg, rgba(3, 5, 6, .16), transparent 30%, rgba(3, 5, 6, .28)),
    radial-gradient(circle at 63% 44%, transparent 0 42%, rgba(0, 0, 0, .36) 100%);
}

.memory-weave-stage .stage-label {
  top: 34px;
  right: 9%;
  left: auto;
  color: rgba(216, 220, 221, 0.58);
}

.weave-art {
  inset: -7% -12% -8% -18%;
  overflow: visible;
}

.weave-art::after {
  content: '';
  position: absolute;
  inset: 10% 4% 14% 14%;
  z-index: 4;
  background:
    radial-gradient(circle at 63% 29%, rgba(86, 114, 134, .62) 0 2px, transparent 4px),
    radial-gradient(circle at 70% 38%, rgba(226, 82, 66, .78) 0 2px, transparent 5px),
    radial-gradient(circle at 55% 59%, rgba(178, 109, 61, .62) 0 2px, transparent 5px),
    radial-gradient(circle at 79% 66%, rgba(214, 168, 91, .72) 0 2px, transparent 6px),
    radial-gradient(circle at 45% 40%, rgba(86, 114, 134, .48) 0 2px, transparent 4px);
  filter: drop-shadow(0 0 18px rgba(226, 82, 66, .24));
  opacity: .74;
  animation: weave-flicker 5.6s var(--ease) infinite alternate;
  pointer-events: none;
}

.weave-image {
  inset: -13% -40% -14% -44%;
  width: 190%;
  height: 132%;
  object-position: 65% 50%;
  opacity: .94;
  filter: saturate(.96) contrast(1.14) brightness(.92);
}

.weave-veil {
  opacity: .18;
}

.memory-weave-svg {
  inset: 10% 0 18% 16%;
  width: 82%;
  height: 72%;
  z-index: 6;
}

.thread-decision,
.knot-decision {
  stroke: var(--stable-blue-soft);
}

.thread-assumption,
.thread-constraint,
.knot-assumption,
.knot-constraint {
  stroke: rgba(178, 109, 61, 0.74);
}

.thread-forward {
  stroke: rgba(214, 168, 91, 0.92);
}

.knot-decision,
.knot-decision:hover,
.knot-decision:focus-visible,
.knot-decision.is-active {
  color: var(--stable-blue);
  border-color: rgba(86, 114, 134, .9);
  background: rgba(86, 114, 134, .88);
  box-shadow: 0 0 28px rgba(86, 114, 134, .42), 0 0 78px rgba(86, 114, 134, .22);
}

.knot-assumption,
.knot-constraint,
.knot-assumption:hover,
.knot-constraint:hover,
.knot-assumption:focus-visible,
.knot-constraint:focus-visible,
.knot-assumption.is-active,
.knot-constraint.is-active {
  color: var(--drift-orange);
  border-color: rgba(178, 109, 61, .92);
  background: rgba(178, 109, 61, .84);
  box-shadow: 0 0 26px rgba(178, 109, 61, .46), 0 0 76px rgba(125, 109, 80, .26);
}

.knot-forward,
.knot-forward:hover,
.knot-forward:focus-visible,
.knot-forward.is-active {
  color: var(--next-yellow);
  border-color: rgba(214, 168, 91, .96);
  background: rgba(214, 168, 91, .88);
  box-shadow: 0 0 30px rgba(214, 168, 91, .44), 0 0 86px rgba(214, 168, 91, .26);
}

.weave-panel {
  right: 8%;
  bottom: 9%;
  width: min(390px, 36vw);
  min-height: 0;
  padding: 0 0 0 18px;
  border: 0;
  border-left: 1px solid rgba(216, 220, 221, .22);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  text-shadow: 0 12px 44px rgba(0, 0, 0, .9);
}

.weave-panel h2 {
  font-size: clamp(1.55rem, 2.4vw, 2.85rem);
}

.weave-panel p,
.weave-panel small {
  max-width: 34ch;
}

.weave-stepper {
  right: 8%;
  bottom: 28px;
}

.weave-stepper button {
  background: rgba(3, 5, 6, .34);
  border-color: rgba(216, 220, 221, .2);
}

.weave-legend {
  position: absolute;
  right: 8%;
  top: 70px;
  z-index: 12;
  display: grid;
  gap: 7px;
  color: rgba(216, 220, 221, .58);
  font-family: var(--mono);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  pointer-events: none;
}

.weave-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.weave-legend span::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 16px currentColor;
}

.legend-stable {
  color: var(--stable-blue);
}

.legend-contradiction {
  color: var(--danger-dim);
}

.legend-drift {
  color: var(--drift-orange);
}

.legend-next {
  color: var(--next-yellow);
}

.not-this-grid {
  position: relative;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.not-this-grid::before {
  content: '';
  position: absolute;
  left: 3%;
  right: 3%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 220, 221, .26), rgba(138, 91, 84, .28), rgba(95, 117, 99, .32), transparent);
  transform: translateY(-50%);
  pointer-events: none;
}

.strike-card,
.truth-card {
  position: relative;
  overflow: hidden;
}

.strike-card::before,
.truth-card::before,
.mode-panel::before,
.layer-card::before,
.why-grid article::before,
.artifact-card::before,
.story-step::before {
  content: '';
  position: absolute;
  pointer-events: none;
}

.strike-card::before {
  inset: 18px;
  border-top: 1px solid rgba(138, 91, 84, .54);
  transform: rotate(-8deg);
  transform-origin: center;
}

.truth-card::before {
  width: 9px;
  height: 9px;
  right: 20px;
  top: 20px;
  border: 1px solid rgba(95, 117, 99, .76);
  border-radius: 999px;
  background: rgba(95, 117, 99, .54);
  box-shadow: 0 0 28px rgba(95, 117, 99, .3);
}

.reasoning-console,
.layers,
.why-grid,
.artifact-field,
.manifesto-lines,
.final-cta>div {
  position: relative;
}

.scenario-stage::before,
.sticky-stage::before,
.reasoning-console::before,
.layers::before,
.why-grid::before,
.artifact-field::before,
.manifesto-lines::before,
.final-cta>div::before {
  content: '';
  position: absolute;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(86, 114, 134, .18), rgba(216, 220, 221, .2), rgba(138, 91, 84, .24), rgba(214, 168, 91, .18), transparent);
  opacity: .62;
}

.scenario-stage::before {
  inset: 62px 28px auto;
  height: 1px;
  z-index: 7;
}

.scenario-doc {
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(216, 220, 221, .045), transparent 38%),
    rgba(3, 5, 6, .72);
}

.scenario-doc::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  height: 1px;
  background: linear-gradient(90deg, rgba(216, 220, 221, .22), transparent);
}

.extract-tag {
  border-radius: 999px;
}

.graph-node,
.scenario-action-card,
.artifact-card,
.mode-panel,
.layer-card,
.why-grid article {
  border-radius: 0;
}

.artifact-field::before {
  inset: 12% 4% 16%;
  background:
    linear-gradient(108deg, transparent 0 9%, rgba(216, 220, 221, .2) 9.2%, transparent 9.5% 44%, rgba(138, 91, 84, .34) 44.4%, transparent 44.8%),
    linear-gradient(18deg, transparent 0 20%, rgba(125, 109, 80, .2) 20.3%, transparent 20.7% 70%, rgba(95, 117, 99, .18) 70.3%, transparent 70.7%);
}

.artifact-card::before {
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(216, 220, 221, .42), transparent);
}

.artifact-card.disputed::before {
  background: linear-gradient(180deg, transparent, rgba(138, 91, 84, .9), transparent);
  box-shadow: 0 0 22px rgba(138, 91, 84, .32);
}

.sticky-stage {
  background:
    radial-gradient(circle at center, rgba(14, 28, 43, .78), rgba(3, 5, 6, .72) 58%, rgba(0, 0, 0, .18)),
    repeating-linear-gradient(92deg, rgba(216, 220, 221, .04) 0 1px, transparent 1px 24px);
}

.sticky-stage::before {
  inset: 11% 14%;
  border: 1px solid rgba(216, 220, 221, .12);
  background:
    linear-gradient(90deg, transparent, rgba(216, 220, 221, .18), transparent),
    linear-gradient(0deg, transparent, rgba(95, 117, 99, .16), transparent);
}

.memory-core {
  border: 1px solid rgba(216, 220, 221, .16);
  background: radial-gradient(circle, rgba(3, 5, 6, .28), transparent 64%);
}

.mode-panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(216, 220, 221, .045), transparent 34%),
    rgba(6, 11, 18, 0.64);
}

.mode-panel::before {
  left: 24px;
  right: 24px;
  top: 72px;
  height: 1px;
  background: linear-gradient(90deg, rgba(86, 114, 134, .7), rgba(216, 220, 221, .2), transparent);
}

.mode-panel.conflict::before {
  height: 42px;
  background:
    linear-gradient(24deg, transparent 0 48%, rgba(138, 91, 84, .72) 49%, transparent 51%),
    linear-gradient(-24deg, transparent 0 48%, rgba(138, 91, 84, .72) 49%, transparent 51%);
  opacity: .9;
}

.mode-panel.drift::before {
  background: repeating-linear-gradient(90deg, rgba(178, 109, 61, .72) 0 14px, transparent 14px 25px);
  opacity: .8;
}

.mode-panel.action::before {
  background: linear-gradient(90deg, transparent, rgba(214, 168, 91, .84), rgba(216, 220, 221, .4));
  box-shadow: 0 0 28px rgba(214, 168, 91, .2);
}

.reasoning-console::before {
  top: -1px;
  right: 0;
  left: 0;
  height: 1px;
}

.console-track span {
  position: relative;
}

.console-track span::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(216, 220, 221, .38);
  transform: translateY(-50%);
}

.console-track span:nth-child(3)::before {
  background: var(--danger-dim);
  box-shadow: 0 0 18px rgba(138, 91, 84, .4);
}

.console-track span:nth-child(4)::before {
  background: var(--next-yellow);
  box-shadow: 0 0 18px rgba(214, 168, 91, .32);
}

.layers {
  gap: 0;
  padding-left: 34px;
}

.layers::before {
  top: 0;
  bottom: 48px;
  left: 10px;
  width: 1px;
  background: linear-gradient(180deg, rgba(86, 114, 134, .5), rgba(216, 220, 221, .28), rgba(214, 168, 91, .22));
}

.layer-card {
  position: relative;
  border-left-color: rgba(216, 220, 221, .34);
  box-shadow: -24px 32px 90px rgba(0, 0, 0, .24);
}

.layer-card::before {
  left: -39px;
  top: 34px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(216, 220, 221, .6);
  box-shadow: 0 0 24px rgba(216, 220, 221, .2);
}

.layer-card:nth-child(1)::before {
  background: var(--stable-blue);
}

.layer-card:nth-child(2)::before {
  background: var(--drift-orange);
}

.layer-card:nth-child(3)::before {
  background: var(--next-yellow);
}

.why-grid {
  gap: 1px;
  border: 1px solid var(--line);
  background: rgba(216, 220, 221, .06);
}

.why-grid::before {
  inset: 50% 0 auto;
  height: 1px;
  z-index: 1;
}

.why-grid article {
  position: relative;
  border: 0;
  background: rgba(3, 5, 6, .72);
}

.why-grid article::before {
  right: 20px;
  top: 20px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(216, 220, 221, .48);
  box-shadow: 0 0 20px rgba(216, 220, 221, .16);
}

.manifesto-lines {
  padding-left: 34px;
}

.manifesto-lines::before {
  top: 0;
  bottom: 0;
  left: 8px;
  width: 1px;
  background: linear-gradient(180deg, rgba(216, 220, 221, .22), rgba(95, 117, 99, .32), rgba(214, 168, 91, .2));
}

.manifesto-lines p {
  position: relative;
}

.manifesto-lines p::before {
  content: '';
  position: absolute;
  left: -30px;
  top: .78em;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(216, 220, 221, .34);
  border-radius: 999px;
  background: rgba(3, 5, 6, .8);
}

.final-cta>div::before {
  top: -46px;
  right: 12%;
  left: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 220, 221, .2), rgba(214, 168, 91, .38), transparent);
  box-shadow: 0 0 30px rgba(214, 168, 91, .12);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy,
  .memory-weave-stage {
    grid-column: 1;
  }

  .hero-copy {
    padding-top: 36px;
  }

  .memory-weave-stage {
    margin: 30px -12vw 0;
    min-height: 760px;
  }

  .weave-image {
    inset: -8% -44% -12% -62%;
    width: 210%;
    height: 122%;
  }

  .weave-panel {
    right: 18px;
    bottom: 88px;
    width: min(430px, calc(100% - 36px));
  }

  .weave-legend {
    top: 64px;
    right: 18px;
  }

  .memory-weave-svg {
    inset: 7% -4% 22% -2%;
    width: 108%;
  }
}

@media (max-width: 640px) {
  .scene::before {
    left: 4px;
  }

  .memory-weave-stage {
    margin-inline: -14px;
    min-height: 780px;
  }

  .weave-image {
    inset: -6% -92% -8% -112%;
    width: 300%;
    height: 116%;
    opacity: .74;
  }

  .weave-panel {
    right: 14px;
    bottom: 92px;
    padding-left: 14px;
  }

  .weave-legend {
    top: 48px;
    right: 14px;
    grid-template-columns: repeat(2, auto);
    gap: 7px 12px;
    font-size: .52rem;
  }

  .weave-stepper {
    bottom: 58px;
  }

  .not-this-grid::before,
  .artifact-field::before,
  .layers::before,
  .why-grid::before {
    opacity: .34;
  }
}

@media (min-width: 981px) {

  .scenario-stage,
  .sticky-stage {
    position: sticky;
    top: 120px;
  }

  .scenario-stage {
    min-height: 74vh;
  }

  .sticky-stage {
    min-height: 72vh;
  }
}

/* Hero artwork refinement: use the image itself as the semantic surface. */
:root {
  --stable-blue: #091518;
  --stable-blue-soft: rgba(14, 25, 24, 0.82);
  --danger-dim: #3D0006;
  --drift-orange: #52392A;
  --next-yellow: #C9B495;
}

.memory-weave-stage::before {
  background:
    linear-gradient(90deg, rgba(3, 5, 6, 0.42), rgba(3, 5, 6, 0.24) 18%, rgba(3, 5, 6, 0.04) 42%, transparent 68%),
    radial-gradient(ellipse at 16% 66%, rgba(3, 5, 6, 0.28), transparent 30rem);
  opacity: .66;
}

.memory-weave-stage::after {
  background:
    linear-gradient(180deg, rgba(3, 5, 6, .025), transparent 42%, rgba(3, 5, 6, .09)),
    radial-gradient(circle at 66% 44%, transparent 0 64%, rgba(0, 0, 0, .14) 100%);
}

.weave-legend-wrap {
  position: absolute;
  top: auto;
  right: auto;
  bottom: 138px;
  left: 35%;
  z-index: 12;
  display: grid;
  width: 220px;
  gap: 10px;
}

.memory-weave-stage .stage-label {
  position: relative;
  inset: auto;
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  gap: 10px;
  padding: 7px 10px 7px 0;
  color: var(--next-yellow);
  text-shadow: 0 0 20px rgba(201, 180, 149, .14);
}

.memory-weave-stage .stage-label::after {
  content: '';
  width: min(14vw, 152px);
  height: 2px;
  background: linear-gradient(90deg, #091518, #3D0006, #52392A, #C9B495, transparent);
  opacity: .76;
}

.weave-art::after,
.weave-light,
.memory-weave-svg,
.weave-knot {
  display: none !important;
}

.weave-image,
.weave-focus {
  inset: -16% -46% -16% -50%;
  width: 202%;
  height: 136%;
  object-position: 65% 50%;
}

.weave-image {
  opacity: .94;
  filter: saturate(.92) contrast(1.05) brightness(.82);
}

.weave-focus {
  position: absolute;
  z-index: 2;
  object-fit: cover;
  opacity: 0;
  transform: translate3d(var(--weave-drift-x, 0), var(--weave-drift-y, 0), 0) scale(1.026);
  filter: saturate(1.34) contrast(1.32) brightness(1.28);
  mix-blend-mode: screen;
  transition: opacity 520ms var(--ease), filter 520ms var(--ease), transform 900ms var(--ease);
  animation: weave-breathe 14s var(--ease) infinite alternate;
  pointer-events: none;
}

.focus-stable,
.focus-drift,
.focus-contradiction,
.focus-next {
  /* These assets are generated from actual pixels in hero-memory-weave.png.
     The hover behavior is color-family based, not position-mask based. */
  filter: saturate(1.22) contrast(1.18) brightness(1.18);
}

.focus-stable {
  mix-blend-mode: screen;
}

.focus-drift {
  mix-blend-mode: screen;
}

.focus-contradiction {
  mix-blend-mode: screen;
}

.focus-next {
  mix-blend-mode: screen;
}

.memory-weave-stage[data-active-state='1'] .focus-stable,
.memory-weave-stage[data-active-state='2'] .focus-drift,
.memory-weave-stage[data-active-state='3'] .focus-contradiction,
.memory-weave-stage[data-active-state='4'] .focus-next {
  opacity: .54;
  filter: saturate(1.34) contrast(1.26) brightness(1.24);
}

.memory-weave-stage[data-active-state='3'] .focus-contradiction {
  opacity: .58;
  filter: saturate(1.42) contrast(1.32) brightness(1.26);
}

.memory-weave-stage[data-active-state='4'] .focus-next {
  opacity: .48;
  filter: saturate(1.18) contrast(1.16) brightness(1.3);
}

.weave-panel {
  left: 58%;
  right: 5%;
  bottom: 136px;
  width: auto;
  max-width: none;
  min-height: 92px;
  padding: 10px 0 0 16px;
  border-left-color: rgba(201, 180, 149, .32);
}

.weave-panel h2 {
  max-width: 42ch;
  min-height: 2.05em;
  margin-top: 7px;
  font-size: clamp(1.18rem, 1.56vw, 1.86rem);
  line-height: .98;
}

.weave-panel p {
  max-width: 82ch;
  margin-top: 8px;
  font-size: .82rem;
  line-height: 1.34;
}

.weave-panel small {
  max-width: 86ch;
  margin-top: 9px;
  color: rgba(201, 180, 149, .76);
  font-size: .58rem;
  letter-spacing: .14em;
}

.weave-stepper {
  left: 42%;
  right: 5%;
  bottom: 76px;
  justify-content: center;
}

.weave-stepper button {
  width: 64px;
  height: 42px;
  background: rgba(3, 5, 6, .28);
  font-size: .72rem;
}

.weave-stepper button:nth-child(1).is-active,
.weave-stepper button:nth-child(1):hover,
.weave-stepper button:nth-child(1):focus-visible {
  border-color: #5C5F5E;
  background: rgba(92, 95, 94, .46);
  color: #F0E5D2;
  box-shadow: 0 0 22px rgba(92, 95, 94, .28);
}

.weave-stepper button:nth-child(2).is-active,
.weave-stepper button:nth-child(2):hover,
.weave-stepper button:nth-child(2):focus-visible {
  border-color: #386562;
  background: rgba(16, 25, 27, .68);
  color: #D7C7AE;
  box-shadow: 0 0 22px rgba(56, 101, 98, .28);
}

.weave-stepper button:nth-child(3).is-active,
.weave-stepper button:nth-child(3):hover,
.weave-stepper button:nth-child(3):focus-visible {
  border-color: #52392A;
  background: rgba(82, 57, 42, .54);
  color: #E0C7A3;
  box-shadow: 0 0 22px rgba(82, 57, 42, .34);
}

.weave-stepper button:nth-child(4).is-active,
.weave-stepper button:nth-child(4):hover,
.weave-stepper button:nth-child(4):focus-visible {
  border-color: #3D0006;
  background: rgba(75, 1, 8, .58);
  color: #F1C0A9;
  box-shadow: 0 0 24px rgba(75, 1, 8, .42);
}

.weave-stepper button:nth-child(5).is-active,
.weave-stepper button:nth-child(5):hover,
.weave-stepper button:nth-child(5):focus-visible {
  border-color: #C9B495;
  background: rgba(201, 180, 149, .18);
  color: #F2E4CC;
  box-shadow: 0 0 24px rgba(201, 180, 149, .30);
}

.weave-legend {
  position: relative;
  inset: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.weave-legend span {
  gap: 0;
  padding-left: 9px;
  border-left: 2px solid currentColor;
  text-shadow: 0 0 18px rgba(201, 180, 149, .16);
}

.weave-legend span::before {
  content: none;
}

.legend-stable {
  color: #091518;
  filter: brightness(2.2) saturate(1.25);
}

.legend-contradiction {
  color: #310002;
  filter: brightness(2.35) saturate(1.2);
}

.legend-drift {
  color: #52392A;
  filter: brightness(1.95) saturate(1.18);
}

.legend-next {
  color: #C9B495;
}

@media (max-width: 980px) {

  .weave-legend-wrap {
    left: 18px;
    bottom: 228px;
    width: min(220px, calc(100% - 36px));
  }

  .weave-panel,
  .weave-stepper {
    left: 18px;
    right: 18px;
  }

  .weave-image,
  .weave-focus {
    inset: -10% -60% -12% -86%;
    width: 260%;
  }
}

@media (max-width: 640px) {
  .memory-weave-stage .stage-label::after {
    width: 96px;
  }

  .weave-legend-wrap {
    top: auto;
    bottom: 242px;
  }

  .weave-legend {
    font-size: .5rem;
  }

  .weave-panel {
    bottom: 126px;
    padding-top: 10px;
  }

  .weave-panel h2 {
    max-width: none;
    font-size: clamp(1.25rem, 7vw, 2.2rem);
  }

  .weave-panel p {
    font-size: .86rem;
  }

  .weave-image,
  .weave-focus {
    inset: -7% -100% -10% -130%;
    width: 330%;
  }
}
.closing-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-top: 34px;
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.closing-nav a {
  color: var(--mist);
  transition: color 220ms var(--ease), text-shadow 220ms var(--ease);
}

.closing-nav a:hover,
.closing-nav a:focus-visible {
  color: var(--white);
  text-shadow: 0 0 18px rgba(201, 180, 149, .2);
  outline: 0;
}

.site-footer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: clamp(36px, 6vw, 92px);
  padding: 72px clamp(20px, 5vw, 76px) 34px;
  border-top: 1px solid rgba(216, 220, 221, .12);
  background:
    radial-gradient(circle at 72% 0%, rgba(82, 57, 42, .16), transparent 34rem),
    linear-gradient(180deg, rgba(3, 5, 6, .82), rgba(3, 5, 6, .96));
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 34px;
  right: 6%;
  left: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(9, 21, 24, .8), rgba(75, 1, 8, .5), rgba(82, 57, 42, .56), rgba(201, 180, 149, .42), transparent);
  opacity: .74;
}

.footer-claim h2 {
  max-width: 11ch;
  font-size: clamp(2.6rem, 5.4vw, 5.8rem);
}

.footer-claim p:not(.kicker) {
  max-width: 520px;
  margin-top: 22px;
  color: var(--paper);
  font-size: clamp(.98rem, 1.25vw, 1.14rem);
  line-height: 1.55;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.footer-grid section {
  min-height: 190px;
  padding: 18px 16px;
  border-left: 1px solid rgba(216, 220, 221, .14);
  background: linear-gradient(180deg, rgba(216, 220, 221, .035), transparent);
}

.footer-grid h3 {
  margin: 0 0 18px;
  color: var(--white);
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.footer-grid a,
.footer-grid span,
.footer-bottom a,
.footer-bottom span {
  display: block;
  color: var(--mist);
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.footer-grid a,
.footer-bottom a {
  transition: color 220ms var(--ease), transform 220ms var(--ease);
}

.footer-grid a + a,
.footer-grid a + span,
.footer-grid span + span,
.footer-grid span + a {
  margin-top: 12px;
}

.footer-grid a:hover,
.footer-grid a:focus-visible,
.footer-bottom a:hover,
.footer-bottom a:focus-visible {
  color: var(--white);
  outline: 0;
  transform: translateX(3px);
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 24px;
  padding-top: 34px;
  border-top: 1px solid rgba(216, 220, 221, .1);
}

@media (max-width: 980px) {
  .site-footer {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .closing-nav {
    justify-content: flex-start;
  }

  .site-footer {
    padding-inline: 18px;
  }

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

  .footer-grid section {
    min-height: 0;
  }

  .footer-bottom {
    display: grid;
  }
}

/* Stance update: local-first boundary, private inference, and operational roles. */
.not-this-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.boundary-grid,
.role-split {
  display: grid;
  gap: 16px;
  margin-top: 58px;
}

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

.role-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.boundary-card,
.role-card {
  position: relative;
  min-height: 300px;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(6, 11, 18, 0.64);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .22);
  overflow: hidden;
}

.boundary-card::before,
.role-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--line-strong);
  opacity: .8;
}

.boundary-card span,
.role-card span {
  color: var(--mist);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.boundary-card h3,
.role-card h3 {
  margin-top: 18px;
  font-family: var(--display);
  font-size: clamp(2rem, 3.2vw, 3.8rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.96;
}

.boundary-card p,
.role-card li {
  color: var(--paper);
}

.boundary-card p {
  margin-top: 20px;
}

.boundary-card strong {
  color: var(--white);
  font-weight: 700;
}

.boundary-card.authority {
  background: linear-gradient(180deg, rgba(14, 28, 43, .74), rgba(6, 11, 18, .74));
}

.boundary-card.authority::before {
  background: var(--stable-blue);
}

.boundary-card.llm {
  background: linear-gradient(180deg, rgba(95, 117, 99, .22), rgba(6, 11, 18, .74));
}

.boundary-card.llm::before {
  background: var(--green-dim);
}

.boundary-card.fallback {
  background: linear-gradient(180deg, rgba(125, 109, 80, .22), rgba(6, 11, 18, .74));
}

.boundary-card.fallback::before {
  background: var(--amber-dim);
}

.boundary-card.deployment {
  background: linear-gradient(180deg, rgba(138, 91, 84, .18), rgba(6, 11, 18, .76));
}

.boundary-card.deployment::before {
  background: var(--danger-dim);
}

.role-card {
  min-height: 260px;
  background:
    radial-gradient(circle at 90% 0%, rgba(216, 220, 221, 0.06), transparent 16rem),
    rgba(3, 5, 6, 0.74);
}

.role-card ul {
  display: grid;
  gap: 9px;
  margin: 22px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.role-card li::before {
  content: '— ';
  color: var(--green-dim);
}

@media (max-width: 980px) {
  .not-this-grid,
  .boundary-grid,
  .role-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .not-this-grid,
  .boundary-grid,
  .role-split {
    grid-template-columns: 1fr;
  }

  .boundary-card,
  .role-card {
    min-height: auto;
  }
}

/* Language toggle for the static website. */
.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  background: rgba(216, 220, 221, 0.045);
  color: var(--mist);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.language-toggle button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
  transition: color 180ms var(--ease), text-shadow 180ms var(--ease);
}

.language-toggle button:hover,
.language-toggle button:focus-visible,
.language-toggle button.is-active {
  color: var(--white);
  text-shadow: 0 0 14px rgba(216, 220, 221, 0.24);
  outline: 0;
}

.language-toggle span {
  color: rgba(216, 220, 221, 0.28);
}

@media (max-width: 640px) {
  .header-actions {
    justify-self: end;
    gap: 8px;
  }

  .header-actions .nav-cta {
    display: inline-flex;
    padding: 8px 9px;
    font-size: 0.62rem;
  }

  .language-toggle {
    padding: 8px 9px;
    font-size: 0.62rem;
  }
}
