/* The story-led opening and scroll narrative */
:root {
  --story-blue: #2563eb;
  --story-blue-light: #8eb7ff;
  --story-ink: #07090d;
  --story-paper: #f4f6fb;
  --story-display: "Syne", sans-serif;
}

.story-page {
  background: var(--story-ink);
}

body.story-locked {
  overflow: hidden;
}

.story-topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 4rem;
  color: white;
  opacity: 0;
  transform: translateY(-110%);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(.2,.8,.2,1);
}

.story-topbar.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.story-logo,
.story-back {
  color: currentColor;
  text-decoration: none;
}

.story-logo {
  color: var(--story-blue);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
}

.story-back {
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(7,9,13,0.18);
  border-radius: 999px;
  background: rgba(244,246,251,0.82);
  color: var(--story-ink);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.story-gate {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: 2rem;
  background:
    radial-gradient(circle at 78% 26%, rgba(37,99,235,0.2), transparent 27rem),
    var(--story-ink);
  isolation: isolate;
  transition: background-color 0.8s ease, color 0.8s ease;
}

.gate-grid,
.gate-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.gate-grid {
  z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 90%);
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.gate-noise {
  z-index: -1;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

.gate-before,
.gate-after {
  width: min(1180px, 100%);
}

.gate-before {
  position: relative;
  text-align: center;
  transition: opacity 0.45s ease, filter 0.45s ease, transform 0.7s cubic-bezier(.2,.8,.2,1);
}

.gate-kicker {
  margin-bottom: 1.25rem;
  color: var(--story-blue-light);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.gate-command {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  font-family: var(--story-display);
  font-size: clamp(4rem, 12vw, 10.5rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.82;
}

.dont {
  position: relative;
}

.crossed-pair {
  position: relative;
  display: inline-block;
  color: #555a65;
}

.crossed-pair > span {
  color: inherit;
}

.crossed-pair::before {
  position: absolute;
  top: 50%;
  left: -3%;
  z-index: 1;
  width: 108%;
  height: clamp(3px, 0.06em, 9px);
  border-radius: 999px;
  background: var(--story-blue);
  content: "";
  transform: none;
}

.click-word {
  position: relative;
  overflow: hidden;
  padding: 0.13em 0.24em 0.18em;
  border: 0.04em solid var(--text);
  border-radius: 0.12em;
  background: var(--story-blue);
  box-shadow: 0.06em 0.07em 0 var(--text);
  color: white;
  cursor: pointer;
  font: inherit;
  letter-spacing: -0.075em;
  line-height: 0.78;
  transform: rotate(-2deg);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.click-word:hover {
  box-shadow: 0.025em 0.03em 0 var(--text);
  transform: rotate(0) translate(0.025em, 0.03em);
}

.click-word:active {
  box-shadow: none;
  transform: translate(0.06em, 0.07em);
}

.button-glint {
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -30%;
  width: 20%;
  background: rgba(255,255,255,0.28);
  filter: blur(8px);
  transform: skewX(-20deg);
  animation: buttonGlint 3.2s ease-in-out infinite 1s;
}

.scribble-note {
  position: relative;
  display: flex;
  width: max-content;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem clamp(1rem, 10vw, 9rem) 0 auto;
  color: var(--story-blue-light);
  font-family: var(--font-display);
  font-size: 0.8rem;
  transform: rotate(-5deg);
}

.scribble-note svg {
  display: block;
  width: 7rem;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transform: scaleY(-1);
}

.gate-after {
  position: absolute;
  top: 50%;
  left: 50%;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-50% + 2rem));
}

.gate-after .oops {
  margin-bottom: 0.4rem;
  color: var(--story-blue-light);
  font-family: var(--story-display);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 600;
  opacity: 0;
  transform: translateY(1rem);
}

.gate-after h2 {
  width: 100%;
  font-family: var(--story-display);
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.9;
  opacity: 0;
  transform: translateY(1.5rem);
}

.made-you {
  display: block;
  margin-bottom: clamp(1rem, 3vh, 2.5rem);
  color: var(--story-ink);
}

.look-word {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  color: var(--story-ink);
  font-size: clamp(5.6rem, 17vw, 17rem);
  letter-spacing: -0.095em;
  line-height: 0.55;
}

.eye {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  width: 1.05em;
  height: 0.62em;
  margin: 0 -0.07em;
  border: 0.15em solid currentColor;
  border-radius: 50% / 48%;
  background: var(--story-paper);
  place-items: center;
  transform-origin: center;
}

.eye i {
  display: block;
  width: 0.11em;
  height: 0.11em;
  border-radius: 50%;
  background: var(--story-blue);
  transform: translate(var(--pupil-x, 0), var(--pupil-y, 0));
  transition: transform 0.12s ease-out;
}

.stay-line,
.scroll-invite {
  opacity: 0;
  transform: translateY(1rem);
}

.stay-line {
  margin-top: 1.8rem;
  color: #b3b8c2;
  font-size: clamp(1rem, 2vw, 1.3rem);
}

.scroll-invite {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
  color: white;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-decoration: none;
  text-transform: uppercase;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 3rem;
  background: linear-gradient(var(--story-blue), transparent);
  transform-origin: top;
  animation: scrollPulse 1.8s ease-in-out infinite;
}

.story-gate.is-open .gate-before {
  opacity: 0;
  filter: blur(12px);
  pointer-events: none;
  transform: scale(1.08);
}

.story-gate.is-open {
  background: var(--story-paper);
  color: var(--story-ink);
}

.story-gate.is-open .gate-grid {
  opacity: 0.12;
}

.story-gate.is-open .gate-after {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  transition: opacity 0.1s linear 0.35s, transform 0.5s ease 0.35s;
}

.story-gate.is-open .oops {
  animation: storyReveal 0.65s ease forwards 0.45s;
}

.story-gate.is-open .gate-after h2 {
  animation: storyReveal 0.75s cubic-bezier(.2,.8,.2,1) forwards 1.05s;
}

.story-gate.is-open .eye {
  animation: blink 0.23s ease-in-out 2 1.85s;
}

.story-gate.is-open .stay-line {
  animation: storyReveal 0.65s ease forwards 2.3s;
}

.story-gate.is-open .scroll-invite {
  animation: storyReveal 0.65s ease forwards 2.75s;
}

.story-gate.is-open .stay-line {
  color: #555d69;
}

.story-gate.is-open .scroll-invite {
  color: var(--story-ink);
}

.why-story {
  position: relative;
  min-height: 120vh;
  padding: clamp(7rem, 14vw, 13rem) 6vw;
  background: var(--story-paper);
  color: var(--story-ink);
}

.story-index {
  display: block;
  margin-bottom: 1.5rem;
  color: var(--story-blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.why-intro {
  position: relative;
  z-index: 2;
  width: min(970px, 100%);
}

.why-intro h2 {
  font-family: var(--story-display);
  font-size: clamp(3.2rem, 7.3vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.93;
}

.why-intro em {
  color: var(--story-blue);
  font-style: normal;
}

.why-bottom {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(20rem, 1fr) auto;
  align-items: center;
  gap: clamp(5rem, 10vw, 12rem);
  margin-top: clamp(2rem, 4vh, 3.5rem);
}

.why-answer {
  width: min(620px, 100%);
  margin: 0;
  color: #3f4651;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.35;
}

.attention-beat {
  display: inline-flex;
  align-items: baseline;
  gap: 0.24em;
  white-space: nowrap;
}

.loading-dots {
  display: inline-flex;
  letter-spacing: 0.04em;
}

.loading-dots i {
  color: var(--story-blue);
  font-style: normal;
  font-weight: 700;
  opacity: 0.18;
  transform: translateY(0.08em) scale(0.75);
}

.pause-word {
  display: inline-block;
  color: var(--story-blue);
  font: inherit;
  font-weight: 600;
  opacity: 0;
  transform: translateY(0.25em);
}

.why-answer.is-revealed .loading-dots i:nth-child(1) {
  animation: dotLoad 0.55s ease forwards 0.65s;
}

.why-answer.is-revealed .loading-dots i:nth-child(2) {
  animation: dotLoad 0.55s ease forwards 1.55s;
}

.why-answer.is-revealed .loading-dots i:nth-child(3) {
  animation: dotLoad 0.55s ease forwards 2.45s;
}

.why-answer.is-revealed .pause-word {
  animation: pauseArrive 0.75s cubic-bezier(.2,.8,.2,1) forwards 3.55s;
}

.attention-orbit {
  position: relative;
  right: auto;
  bottom: auto;
  flex: 0 0 auto;
  justify-self: end;
  width: clamp(14rem, 24vw, 22rem);
  aspect-ratio: 1;
  border: 1px solid rgba(7,9,13,0.16);
  border-radius: 50%;
  animation: orbitSpin 18s linear infinite;
}

.attention-orbit span {
  position: absolute;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(7,9,13,0.16);
  border-radius: 999px;
  background: var(--story-paper);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.attention-orbit span:nth-child(1) { top: -1rem; left: 44%; }
.attention-orbit span:nth-child(2) { top: 45%; right: -2rem; }
.attention-orbit span:nth-child(3) { bottom: -1rem; left: 43%; }
.attention-orbit span:nth-child(4) { top: 45%; left: -2.5rem; }

.orbit-core {
  position: absolute;
  inset: 30%;
  display: grid;
  border-radius: 50%;
  background: var(--story-blue);
  color: white;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 2.4rem);
  font-weight: 800;
  place-items: center;
  transform: rotate(0);
  animation: orbitCounterSpin 18s linear infinite;
}

.chapter-transition {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: clamp(14rem, 30vh, 20rem);
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  margin-top: clamp(-7rem, -6vw, -3.5rem);
  padding-top: 1.5rem;
  overflow: hidden;
}

.chapter-transition span {
  font-size: clamp(0.7rem, 1vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(0.75rem);
}

.chapter-transition i {
  display: block;
  min-height: 8rem;
  flex: 1;
  width: 2px;
  background: linear-gradient(to bottom, var(--story-blue), rgba(37,99,235,0));
  opacity: 0;
  transform-origin: top;
}

.chapter-transition.is-revealed span {
  animation: chapterPromptIn 0.75s cubic-bezier(.2,.8,.2,1) forwards;
}

.chapter-transition.is-revealed i {
  animation: chapterLine 2s cubic-bezier(.4,0,.2,1) infinite 0.45s;
}

.transition-light {
  background: var(--story-paper);
  color: var(--story-ink);
}

.transition-dark {
  background: var(--story-ink);
  color: white;
}

.transition-into-dark {
  overflow: visible;
}

.transition-into-dark i {
  position: relative;
  background: linear-gradient(
    to bottom,
    var(--story-blue) 0%,
    var(--story-blue) 82%,
    var(--story-blue-light) 100%
  );
}

.transition-into-dark i::after {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 2px;
  height: 5rem;
  background: linear-gradient(
    to bottom,
    var(--story-blue-light) 0%,
    rgba(255,255,255,0.95) 42%,
    rgba(255,255,255,0) 100%
  );
  content: "";
  transform: translateX(-50%);
}

.transition-into-light {
  overflow: visible;
}

.transition-into-light i {
  position: relative;
  background: linear-gradient(
    to bottom,
    var(--story-blue) 0%,
    var(--story-blue) 82%,
    var(--story-blue-light) 100%
  );
}

.transition-into-light i::after {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 2px;
  height: 5rem;
  background: linear-gradient(
    to bottom,
    var(--story-blue-light) 0%,
    rgba(37,99,235,0.7) 38%,
    rgba(37,99,235,0) 100%
  );
  content: "";
  transform: translateX(-50%);
}

.proof-interlude {
  min-height: clamp(18rem, 36vh, 26rem);
  margin: clamp(3rem, 8vw, 7rem) 0 clamp(1.5rem, 4vw, 3rem);
  padding-top: clamp(3rem, 7vh, 5rem);
}

.proof-interlude + .thesis-block {
  margin-top: 0;
}

.transition-into-blue {
  min-height: clamp(20rem, 42vh, 30rem);
  overflow: visible;
}

.transition-into-blue i {
  position: relative;
  background: linear-gradient(
    to bottom,
    var(--story-blue) 0%,
    var(--story-blue) 84%,
    var(--story-blue-light) 100%
  );
}

.transition-into-blue i::after {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 2px;
  height: 7rem;
  background: linear-gradient(
    to bottom,
    var(--story-blue-light) 0%,
    rgba(255,255,255,0.96) 34%,
    rgba(255,255,255,0) 100%
  );
  content: "";
  transform: translateX(-50%);
}

.inline-scroll-cue.reveal {
  position: relative;
  z-index: 4;
  display: flex;
  width: max-content;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: clamp(3rem, 7vh, 5rem) auto clamp(2.5rem, 6vh, 4.5rem);
  color: var(--story-ink);
  text-align: center;
  transform: translateY(1.25rem);
}

.inline-scroll-cue.reveal.is-revealed {
  transform: translateY(0);
}

.inline-scroll-cue span {
  font-size: clamp(0.68rem, 1vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  white-space: nowrap;
  text-transform: uppercase;
}

.inline-scroll-cue i {
  display: block;
  width: 2px;
  height: clamp(5rem, 10vh, 7rem);
  background: linear-gradient(to bottom, var(--story-blue), rgba(37,99,235,0));
  transform-origin: top;
}

.inline-scroll-cue.is-revealed i {
  animation: chapterLine 2s cubic-bezier(.4,0,.2,1) infinite 0.35s;
}

.build-story {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.72fr);
  gap: 8vw;
  padding: clamp(7rem, 12vw, 12rem) 6vw;
  background: var(--story-ink);
}

.build-sticky {
  position: sticky;
  top: 9rem;
  align-self: start;
}

.build-sticky h2 {
  font-family: var(--story-display);
  font-size: clamp(3.5rem, 7vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.88;
}

.build-sticky h2 span {
  display: inline-block;
  min-width: 5ch;
  color: var(--story-blue);
  transition: opacity 0.26s ease, transform 0.26s ease;
}

.build-sticky h2 span.is-changing {
  opacity: 0;
  transform: translateY(0.2em);
}

.build-cards {
  display: grid;
  gap: 30vh;
  padding: 10vh 0 20vh;
}

.story-card {
  min-height: 25rem;
  padding: 2.5rem;
  border: 1px solid #252a34;
  border-radius: 1.5rem;
  background: linear-gradient(145deg, #121721, #0c0e13);
  box-shadow: 0 2rem 6rem rgba(0,0,0,0.35);
}

.story-card > span {
  color: var(--story-blue-light);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
}

.story-card h3 {
  margin: 7rem 0 1rem;
  font-family: var(--story-display);
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.story-card p {
  max-width: 28rem;
  color: #969eaa;
  font-size: 1.05rem;
}

.proof-story {
  min-height: 125vh;
  padding: clamp(7rem, 12vw, 12rem) 6vw;
  background: var(--story-paper);
  color: var(--story-ink);
}

.proof-heading {
  position: relative;
  max-width: 75rem;
}

.proof-heading > p {
  margin-bottom: 1.25rem;
  color: #555d69;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.proof-heading h2 {
  font-family: var(--story-display);
  font-size: clamp(3.3rem, 7.2vw, 7.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.proof-heading h2 em {
  position: relative;
  display: inline-block;
  overflow: hidden;
  color: var(--story-blue);
  font-style: normal;
  isolation: isolate;
  perspective: 600px;
}

.proof-heading h2 em::before,
.proof-heading h2 em::after {
  position: absolute;
  top: -0.04em;
  bottom: -0.04em;
  z-index: 2;
  width: 51%;
  border: 1px solid #d9dee7;
  background-color: white;
  content: "";
  backface-visibility: hidden;
}

.proof-heading h2 em::before {
  left: -0.02em;
  background-image: radial-gradient(circle at 88% 53%, var(--story-blue) 0 2px, transparent 3px);
  transform-origin: left center;
}

.proof-heading h2 em::after {
  right: -0.02em;
  background-image: radial-gradient(circle at 12% 53%, var(--story-blue) 0 2px, transparent 3px);
  transform-origin: right center;
}

.proof-heading h2 em.door-is-active::before {
  animation: doorOpenLeft 6.5s linear forwards;
}

.proof-heading h2 em.door-is-active::after {
  animation: doorOpenRight 6.5s linear forwards;
}

.proof-case {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(19rem, 0.65fr);
  margin-top: clamp(5rem, 10vw, 10rem);
  border: 1px solid #252b36;
  border-radius: 2rem;
  background: var(--story-ink);
  box-shadow: 0 2rem 6rem rgba(7,9,13,0.14);
  overflow: hidden;
}

.case-preview {
  position: relative;
  display: flex;
  min-height: 34rem;
  flex-direction: column;
  padding: 1rem;
  background: #dfe4ed;
  color: var(--story-ink);
  text-decoration: none;
  overflow: hidden;
}

.case-browser-bar {
  display: flex;
  height: 2.5rem;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.8rem;
  border-radius: 0.7rem 0.7rem 0 0;
  background: #f8f9fc;
  color: #7b8390;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-browser-bar i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #ccd1da;
}

.case-browser-bar > span {
  margin-left: auto;
}

.case-preview img {
  display: block;
  width: 100%;
  min-height: 0;
  flex: 1;
  border-radius: 0 0 0.7rem 0.7rem;
  object-fit: cover;
  object-position: top;
  transition: filter 0.45s ease, transform 0.65s cubic-bezier(.2,.8,.2,1);
}

.case-preview:hover img {
  filter: brightness(0.72);
  transform: scale(1.025);
}

.case-preview-action {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: white;
  box-shadow: 0 0.8rem 2.5rem rgba(7,9,13,0.18);
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.case-preview:hover .case-preview-action,
.case-preview:focus-visible .case-preview-action {
  opacity: 1;
  transform: translateY(0);
}

.case-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 4rem);
  color: white;
}

.case-label {
  margin-bottom: 1.3rem;
  color: var(--story-blue-light);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.case-copy h3 {
  margin-bottom: 1.25rem;
  font-family: var(--story-display);
  font-size: clamp(3rem, 5vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.case-copy > p {
  color: #aab0bb;
  font-size: 1.05rem;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 2rem 0;
  list-style: none;
}

.case-tags li {
  padding: 0.45rem 0.65rem;
  border: 1px solid #303743;
  border-radius: 999px;
  color: #d6dae1;
  font-size: 0.7rem;
}

.case-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 2rem;
  margin-top: auto;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--story-blue);
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.25s ease, color 0.25s ease;
}

.case-link:hover {
  gap: 3rem;
  color: var(--story-blue-light);
}

.thesis-block {
  display: grid;
  grid-template-columns: minmax(13rem, 0.34fr) minmax(0, 1.66fr);
  align-items: start;
  gap: clamp(2.5rem, 5vw, 6rem);
  margin-top: clamp(4rem, 8vw, 8rem);
}

.thesis-heading {
  padding-top: 1rem;
}

.thesis-heading > span {
  display: block;
  margin-bottom: 1.25rem;
  color: var(--story-blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.thesis-heading h3 {
  font-family: var(--story-display);
  font-size: clamp(2.2rem, 3.2vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.thesis-heading h3 em {
  color: var(--story-blue);
  font-style: normal;
}

.thesis-instruction {
  max-width: 17rem;
  margin-top: 1.5rem;
  color: #636b77;
  font-size: 0.9rem;
  line-height: 1.45;
}

.thesis-counter {
  margin-top: 2.25rem;
  color: #8a919c;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.thesis-counter span {
  color: var(--story-blue);
  font-size: 1.25rem;
}

.thesis-stage {
  position: relative;
  --thesis-duration: 3.4s;
  min-height: clamp(25rem, 31vw, 29rem);
  border-radius: 1.75rem;
  background: #dfe3eb;
  overflow: hidden;
}

.thesis-card {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(17rem, 1fr) minmax(16rem, 0.9fr);
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3.5rem);
  padding: clamp(1.75rem, 3vw, 3rem);
  padding-bottom: clamp(4.5rem, 6vw, 5.25rem);
  opacity: 0;
  pointer-events: none;
  transform: translateX(108%) rotate(1deg);
  transition:
    opacity 0.28s ease,
    transform 0.62s cubic-bezier(.16,.8,.2,1);
}

.thesis-card.is-active {
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) rotate(0);
}

.thesis-card.is-leaving {
  z-index: 3;
  opacity: 0;
  transform: translateX(-112%) rotate(-2.5deg);
  transition:
    opacity 0.24s ease 0.08s,
    transform 0.42s cubic-bezier(.7,0,.9,.35);
}

.outcome-browse {
  border: 1px solid #d7dce5;
  background: #fff;
}

.outcome-feel {
  background: var(--story-ink);
  color: white;
}

.outcome-act {
  background: var(--story-blue);
  color: white;
}

.thesis-nav {
  position: absolute;
  right: clamp(1.25rem, 3vw, 2.5rem);
  bottom: 0.9rem;
  left: clamp(1.25rem, 3vw, 2.5rem);
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.thesis-nav button {
  position: relative;
  padding: 0.6rem 0.2rem 0.35rem;
  border: 0;
  border-top: 2px solid rgba(127,135,147,0.35);
  background: transparent;
  color: #7f8793;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
}

.thesis-nav button::after {
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--story-blue);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
}

.thesis-nav button.is-active {
  color: var(--story-ink);
}

.thesis-stage.is-running .thesis-nav button.is-active::after {
  animation: thesisProgress var(--thesis-duration) linear forwards;
}

.thesis-stage[data-theme="dark"] .thesis-nav button,
.thesis-stage[data-theme="blue"] .thesis-nav button {
  border-top-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.62);
}

.thesis-stage[data-theme="dark"] .thesis-nav button.is-active,
.thesis-stage[data-theme="blue"] .thesis-nav button.is-active {
  color: white;
}

.thesis-stage[data-theme="dark"] .thesis-nav button::after {
  background: var(--story-blue-light);
}

.thesis-stage[data-theme="blue"] .thesis-nav button::after {
  background: white;
}

.outcome-copy > span {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--story-blue);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.outcome-feel .outcome-copy > span {
  color: var(--story-blue-light);
}

.outcome-act .outcome-copy > span {
  color: #d9e6ff;
}

.outcome-copy h3 {
  max-width: 27rem;
  margin-bottom: 1rem;
  font-family: var(--story-display);
  font-size: clamp(2rem, 2.8vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.outcome-copy p {
  max-width: 26rem;
  color: #555d69;
  font-size: 0.92rem;
  line-height: 1.5;
}

.outcome-feel .outcome-copy p {
  color: #aab0bb;
}

.outcome-act .outcome-copy p {
  color: #d9e6ff;
}

.outcome-visual {
  position: relative;
  min-width: 0;
}

.browse-visual {
  display: flex;
  height: 11rem;
  align-items: center;
  border: 1px solid #d8dce5;
  border-radius: 1.2rem;
  background:
    linear-gradient(90deg, white, transparent 18%, transparent 82%, white),
    #f4f6fb;
  overflow: hidden;
}

.browse-track {
  display: flex;
  width: max-content;
  gap: 0.75rem;
  padding-left: 0.75rem;
}

.browse-track span {
  display: grid;
  width: 6.5rem;
  height: 6.5rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #cdd3dd;
  border-radius: 50%;
  background: white;
  color: var(--story-ink);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.thesis-stage.is-running .outcome-browse.is-active .browse-track {
  animation: browseRail 16s linear infinite;
}

.trust-visual {
  min-height: 13rem;
}

.trust-visual span {
  position: absolute;
  right: 0;
  left: 0;
  display: flex;
  height: 4.8rem;
  align-items: center;
  padding: 0 2rem;
  border: 1px solid #303743;
  border-radius: 1rem;
  background: #111722;
  box-shadow: 0 1.5rem 4rem rgba(0,0,0,0.28);
  color: white;
  font-family: var(--story-display);
  font-size: clamp(1.6rem, 2.3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  opacity: 0;
  transform: translateY(3rem) rotate(0);
}

.trust-visual span:nth-child(1) { top: 0; --stack-x: -0.5rem; --stack-rotate: -2deg; }
.trust-visual span:nth-child(2) { top: 3.6rem; --stack-x: 0.6rem; --stack-rotate: 1.5deg; }
.trust-visual span:nth-child(3) { top: 7.2rem; --stack-x: -0.2rem; --stack-rotate: -0.5deg; color: var(--story-blue-light); }

.thesis-stage.is-running .outcome-feel.is-active .trust-visual span:nth-child(1) {
  animation: trustStack 0.75s cubic-bezier(.2,.8,.2,1) forwards 0.2s;
}

.thesis-stage.is-running .outcome-feel.is-active .trust-visual span:nth-child(2) {
  animation: trustStack 0.75s cubic-bezier(.2,.8,.2,1) forwards 0.45s;
}

.thesis-stage.is-running .outcome-feel.is-active .trust-visual span:nth-child(3) {
  animation: trustStack 0.75s cubic-bezier(.2,.8,.2,1) forwards 0.7s;
}

.act-visual {
  display: grid;
  min-height: 14rem;
  place-items: center;
}

.act-visual > i {
  position: absolute;
  width: min(14rem, 85%);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,0.38);
  border-radius: 50%;
}

.act-visual > i:nth-child(2) {
  width: min(10rem, 62%);
}

.act-visual > span {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  padding: 1.1rem 1.3rem 1.1rem 1.6rem;
  border-radius: 999px;
  background: white;
  box-shadow: 0 1.5rem 4rem rgba(5,29,83,0.25);
  color: var(--story-ink);
  font-weight: 700;
}

.act-visual b {
  font-size: 1.4rem;
}

.thesis-stage.is-running .outcome-act.is-active .act-visual > i:first-child {
  animation: actionPulse 2.4s ease-out infinite;
}

.thesis-stage.is-running .outcome-act.is-active .act-visual > i:nth-child(2) {
  animation: actionPulse 2.4s ease-out infinite 0.7s;
}

.thesis-stage.is-running .outcome-act.is-active .act-visual > span {
  animation: actionNudge 2.4s ease-in-out infinite 1s;
}

.reveal {
  opacity: 0;
  transform: translateY(3rem);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.8,.2,1);
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.payoff {
  display: grid;
  min-height: 100svh;
  box-sizing: border-box;
  padding: clamp(7rem, 12vh, 10rem) 6vw;
  background: var(--story-blue);
  color: white;
}

.payoff-lines {
  grid-area: 1 / 1;
  display: flex;
  align-self: center;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.5rem, 3vh, 3rem);
  overflow: visible;
}

.payoff-lines.is-exiting {
  pointer-events: none;
  animation: payoffStageOut 0.85s cubic-bezier(.55,.05,.85,.35) forwards;
}

.payoff-lines p {
  font-family: var(--story-display);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.85;
}

.payoff-line {
  position: relative;
  display: block;
  opacity: 0;
  transform: translateY(0.65em);
}

.payoff-lines p:nth-child(2) { text-align: center; }
.payoff-lines p:nth-child(3) { text-align: right; }

.payoff-click {
  font-size: clamp(3.1rem, 7.5vw, 7.5rem);
}

.payoff-look {
  font-size: clamp(3.5rem, 8.5vw, 8.6rem);
}

.payoff-stay {
  font-size: clamp(4rem, 10vw, 10rem);
}

.payoff-lines span {
  color: var(--story-ink);
}

.payoff-key,
.payoff-o {
  position: relative;
  display: inline-block;
}

.key-click::after {
  position: absolute;
  inset: -0.07em -0.09em;
  border: 0.025em solid var(--story-ink);
  border-radius: 0.1em;
  content: "";
  opacity: 0;
  pointer-events: none;
}

.key-stay::after {
  position: absolute;
  right: 0;
  bottom: -0.09em;
  left: 0;
  height: 0.055em;
  border-radius: 999px;
  background: white;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
}

.payoff-lines.is-revealed .payoff-click {
  animation: payoffLineIn 1.05s cubic-bezier(.2,.8,.2,1) forwards 0.35s;
}

.payoff-lines.is-revealed .key-click {
  animation: keyClick 0.75s cubic-bezier(.2,.8,.2,1) 1.35s;
}

.payoff-lines.is-revealed .key-click::after {
  animation: clickRipple 0.8s ease-out 1.42s;
}

.payoff-lines.is-revealed .payoff-look {
  animation: payoffLineIn 1.1s cubic-bezier(.2,.8,.2,1) forwards 2.15s;
}

.payoff-lines.is-revealed .payoff-o {
  animation: payoffBlink 0.22s ease-in-out 2 3.25s;
  transform-origin: center;
}

.payoff-lines.is-revealed .payoff-stay {
  animation: payoffCrescendo 1.3s cubic-bezier(.16,.8,.2,1) forwards 4.2s;
}

.payoff-lines.is-revealed .key-stay {
  animation: keyStay 0.9s cubic-bezier(.2,.8,.2,1) 5.25s;
}

.payoff-lines.is-revealed .key-stay::after {
  animation: stayLock 0.9s cubic-bezier(.2,.8,.2,1) forwards 5.45s;
}

.payoff-final {
  grid-area: 1 / 1;
  align-self: center;
  text-align: center;
  visibility: hidden;
  pointer-events: none;
}

.payoff-final.is-revealed {
  visibility: visible;
  pointer-events: auto;
}

.payoff-final p {
  margin-bottom: 1.2rem;
  color: #d7e4ff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(1rem);
}

.payoff-final h2 {
  font-family: var(--story-display);
  font-size: clamp(3.5rem, 9vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.88;
  opacity: 0;
  transform: translateY(0.35em) scale(0.96);
}

.final-highlight {
  position: relative;
  display: inline-block;
  z-index: 0;
  padding: 0 0.09em 0.05em;
  color: var(--story-ink);
  isolation: isolate;
}

.final-highlight::before {
  position: absolute;
  inset: 0.03em -0.01em -0.02em;
  z-index: -1;
  background: white;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
}

.payoff-final.is-revealed p {
  animation: finalIntroIn 0.75s ease forwards 0.45s;
}

.payoff-final.is-revealed h2 {
  animation: finalHeadlineIn 1.05s cubic-bezier(.2,.8,.2,1) forwards 1.75s;
}

.payoff-final.is-revealed .final-highlight::before {
  animation: finalHighlightWipe 0.65s cubic-bezier(.2,.8,.2,1) forwards 2.8s;
}

.payoff-button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
  padding: 1rem 1.2rem 1rem 1.5rem;
  border: 1px solid white;
  border-radius: 999px;
  background: white;
  color: var(--story-ink);
  font-weight: 700;
  text-decoration: none;
  opacity: 0;
  transform: translateY(1rem) scale(0.96);
  transition: gap 0.25s ease, transform 0.25s ease;
}

.payoff-final.is-revealed .payoff-button {
  animation:
    finalCtaIn 0.8s cubic-bezier(.2,.8,.2,1) forwards 4.15s,
    finalCtaBeacon 2.2s ease-in-out infinite 5.15s;
}

.payoff-button:hover {
  gap: 3rem;
  transform: translateY(-3px);
}

.story-footer {
  display: flex;
  justify-content: space-between;
  padding: 2rem 6vw;
  background: var(--story-ink);
  color: #888f9a;
  font-size: 0.78rem;
}

.story-footer a {
  color: white;
  text-decoration: none;
}

@keyframes buttonGlint {
  0%, 55% { left: -30%; }
  78%, 100% { left: 130%; }
}

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

@keyframes dotLoad {
  0% { opacity: 0.18; transform: translateY(0.08em) scale(0.75); }
  60% { opacity: 1; transform: translateY(-0.08em) scale(1.3); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

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

@keyframes payoffLineIn {
  from { opacity: 0; transform: translateY(0.65em); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes payoffStageOut {
  0% { opacity: 1; filter: blur(0); transform: translateX(0) scale(1); }
  100% { opacity: 0; filter: blur(8px); transform: translateX(-7vw) scale(0.97); visibility: hidden; }
}

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

@keyframes finalHeadlineIn {
  0% { opacity: 0; transform: translateY(0.35em) scale(0.96); }
  75% { opacity: 1; transform: translateY(-0.025em) scale(1.015); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes finalHighlightWipe {
  to { transform: scaleX(1); }
}

@keyframes finalCtaIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes finalCtaBeacon {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
  50% { box-shadow: 0 0 0 0.65rem rgba(255,255,255,0.18); }
}

@keyframes cinematicClickSlide {
  0% { opacity: 0; filter: blur(8px); transform: translateY(0.5em) scale(0.96); }
  18% { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
  72% { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
  100% { opacity: 0; filter: blur(5px); transform: translateX(-18vw) scale(0.94); }
}

@keyframes cinematicLookSlide {
  0% { opacity: 0; filter: blur(8px); transform: translateX(16vw) scale(0.96); }
  18% { opacity: 1; filter: blur(0); transform: translateX(0) scale(1); }
  72% { opacity: 1; filter: blur(0); transform: translateX(0) scale(1); }
  100% { opacity: 0; filter: blur(5px); transform: translateY(-0.45em) scale(1.04); }
}

@keyframes payoffCrescendo {
  0% { opacity: 0; transform: translateY(0.8em) scale(0.86); }
  65% { opacity: 1; transform: translateY(-0.04em) scale(1.035); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes keyClick {
  0%, 28%, 100% { transform: translate(0, 0) scale(1); }
  48% { transform: translate(0.04em, 0.05em) scale(0.91); }
  68% { transform: translate(0, 0) scale(1.04); }
}

@keyframes clickRipple {
  0% { opacity: 0; transform: scale(0.86); }
  30% { opacity: 0.8; }
  100% { opacity: 0; transform: scale(1.18); }
}

@keyframes payoffBlink {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.06); }
}

@keyframes keyStay {
  0% { transform: translateY(-0.12em); }
  45% { transform: translateY(0.07em); }
  70% { transform: translateY(-0.025em); }
  100% { transform: translateY(0); }
}

@keyframes stayLock {
  to { transform: scaleX(1); }
}

@keyframes chapterLine {
  0% { opacity: 0; transform: scaleY(0); }
  28% { opacity: 1; transform: scaleY(1); }
  72% { opacity: 1; transform: scaleY(1) translateY(0); }
  100% { opacity: 0; transform: scaleY(0.25) translateY(8rem); }
}

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

@keyframes browseRail {
  to { transform: translateX(-29rem); }
}

@keyframes trustStack {
  from { opacity: 0; transform: translateY(3rem) rotate(0); }
  to { opacity: 1; transform: translate(var(--stack-x), 0) rotate(var(--stack-rotate)); }
}

@keyframes actionPulse {
  0% { opacity: 0.7; transform: scale(0.82); }
  75%, 100% { opacity: 0; transform: scale(1.28); }
}

@keyframes actionNudge {
  0%, 55%, 100% { transform: translateX(0); }
  68% { transform: translateX(0.45rem); }
  78% { transform: translateX(-0.08rem); }
}

@keyframes thesisProgress {
  to { transform: scaleX(1); }
}

@keyframes doorOpenLeft {
  0%, 10% { transform: translateX(0); }
  10.5%, 17% { transform: translateX(-6%); }
  17.5%, 27% { transform: translateX(-2%); }
  27.5%, 38% { transform: translateX(-11%); }
  38.5%, 49% { transform: translateX(-4%); }
  49.5%, 59% { transform: translateX(-18%); }
  59.5%, 61% { transform: translateX(-7%); }
  70% { transform: translateX(-20%); }
  84% { transform: translateX(-62%); }
  100% { transform: translateX(-108%); }
}

@keyframes doorOpenRight {
  0%, 18% { transform: translateX(0); }
  18.5%, 25% { transform: translateX(5%); }
  25.5%, 34% { transform: translateX(1.5%); }
  34.5%, 45% { transform: translateX(10%); }
  45.5%, 54% { transform: translateX(3.5%); }
  54.5%, 60% { transform: translateX(17%); }
  60.5%, 61% { transform: translateX(6.5%); }
  70% { transform: translateX(20%); }
  84% { transform: translateX(62%); }
  100% { transform: translateX(108%); }
}

@keyframes blink {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.06); }
}

@keyframes scrollPulse {
  0% { opacity: 0; transform: scaleY(0); }
  40% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1) translateY(1rem); }
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

@keyframes orbitCounterSpin {
  to { transform: rotate(-360deg); }
}

@media (max-width: 900px) {
  .story-topbar {
    padding:
      max(1rem, env(safe-area-inset-top))
      max(1.5rem, env(safe-area-inset-right))
      1rem
      max(1.5rem, env(safe-area-inset-left));
  }

  .gate-command {
    flex-direction: column;
    font-size: clamp(4.5rem, 17vw, 8rem);
  }

  .scribble-note {
    margin-top: 1.25rem;
    margin-right: 5%;
  }

  .why-story {
    min-height: 105vh;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }

  .why-answer {
    width: 100%;
  }

  .why-bottom {
    grid-template-columns: 1fr;
    gap: 6rem;
    margin-top: 2.5rem;
  }

  .attention-orbit {
    justify-self: center;
    width: min(20rem, 76vw);
  }

  .build-story {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }

  .build-sticky {
    position: relative;
    top: 0;
  }

  .build-cards {
    gap: 2rem;
    padding: 2rem 0 4rem;
  }

  .proof-story {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }

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

  .case-preview {
    min-height: min(34rem, 70vw);
  }

  .case-preview-action {
    right: 1.5rem;
    bottom: 1.5rem;
    opacity: 1;
    transform: none;
  }

  .case-copy {
    min-height: 30rem;
  }

  .thesis-block {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .thesis-heading {
    max-width: 38rem;
  }

  .thesis-counter {
    margin-top: 1.5rem;
  }

  .thesis-stage {
    min-height: 39rem;
  }

  .thesis-card {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 1.5rem;
    padding: 2rem 1.5rem 5rem;
  }

  .outcome-copy h3 {
    max-width: 38rem;
    font-size: clamp(1.9rem, 7vw, 2.7rem);
  }

  .outcome-visual {
    width: 100%;
  }

  .browse-visual {
    height: 10rem;
  }

  .trust-visual,
  .act-visual {
    min-height: 13rem;
  }

  .payoff {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }
}

@media (max-width: 700px) {
  .build-story {
    gap: 2.5rem;
    padding-top: 6.5rem;
    padding-bottom: 6.5rem;
  }

  .build-cards {
    position: relative;
    gap: 0;
    padding: 0;
  }

  .build-cards::before {
    position: absolute;
    top: 1.75rem;
    bottom: 1.75rem;
    left: 1.35rem;
    width: 1px;
    background: linear-gradient(var(--story-blue), rgba(142,183,255,0.12));
    content: '';
  }

  .story-card {
    position: relative;
    display: grid;
    grid-template-columns: 2.8rem minmax(0, 1fr);
    min-height: 0;
    gap: 0 1rem;
    padding: 1.75rem 0;
    border: 0;
    border-bottom: 1px solid #252a34;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .story-card:first-child {
    border-top: 1px solid #252a34;
  }

  .story-card > span {
    position: relative;
    z-index: 1;
    display: grid;
    width: 2.7rem;
    height: 2.7rem;
    grid-row: 1 / 3;
    border: 1px solid rgba(142,183,255,0.34);
    border-radius: 50%;
    background: var(--story-ink);
    place-items: center;
  }

  .story-card h3 {
    grid-column: 2;
    margin: 0 0 0.65rem;
    font-size: clamp(1.75rem, 8vw, 2.4rem);
  }

  .story-card p {
    grid-column: 2;
    font-size: 0.95rem;
  }

  .thesis-stage {
    --thesis-duration: 6.5s;
  }
}

@media (max-width: 520px) {
  .story-topbar {
    justify-content: flex-end;
    padding:
      max(0.7rem, env(safe-area-inset-top))
      max(0.85rem, env(safe-area-inset-right))
      0.7rem
      max(0.85rem, env(safe-area-inset-left));
    pointer-events: none;
  }

  .story-topbar .story-logo {
    display: none;
  }

  .story-back {
    padding: 0.55rem 0.7rem;
    background: rgba(244,246,251,0.94);
    font-size: 0.6rem;
    letter-spacing: 0.06em;
    pointer-events: auto;
  }

  .story-gate {
    padding:
      max(4.5rem, calc(env(safe-area-inset-top) + 3.5rem))
      max(1.2rem, env(safe-area-inset-right))
      max(1.5rem, env(safe-area-inset-bottom))
      max(1.2rem, env(safe-area-inset-left));
  }

  .gate-noise {
    opacity: 0.07;
  }

  .gate-command {
    gap: 1.3rem;
    font-size: clamp(3.1rem, 15vw, 5.5rem);
  }

  .click-word {
    font-size: 0.5em;
  }

  .gate-after h2 {
    font-size: clamp(1.8rem, 8vw, 3rem);
  }

  .look-word {
    display: flex;
    justify-content: center;
    margin-top: 0.15em;
    font-size: clamp(4rem, 18vw, 6.5rem);
  }

  .scribble-note {
    margin: 1rem auto 0;
    font-size: 0.68rem;
  }

  .scribble-note svg {
    width: 4.5rem;
  }

  .why-answer {
    width: 100%;
    margin-right: 0;
  }

  .why-story {
    min-height: auto;
    padding-top: 6.5rem;
    padding-bottom: 6.5rem;
  }

  .why-intro h2,
  .proof-heading h2 {
    font-size: clamp(2.65rem, 13vw, 4.25rem);
  }

  .why-bottom {
    gap: 4.5rem;
  }

  .attention-orbit {
    width: min(17rem, 72vw);
    animation-duration: 24s;
  }

  .orbit-core {
    animation-duration: 24s;
  }

  .chapter-transition {
    min-height: 12rem;
  }

  .story-card {
    min-height: 0;
    padding: 1.75rem 0;
  }

  .story-card h3 {
    margin-top: 0;
  }

  .proof-story {
    padding-top: 6.5rem;
    padding-bottom: 6.5rem;
  }

  .proof-case {
    margin-top: 4rem;
    border-radius: 1.25rem;
  }

  .case-preview {
    min-height: 68vw;
    padding: 0.65rem;
  }

  .case-browser-bar > span {
    max-width: 64%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .case-preview-action {
    right: 1rem;
    bottom: 1rem;
  }

  .case-copy {
    min-height: auto;
    padding: 2.5rem 1.5rem;
  }

  .case-copy h3 {
    font-size: clamp(2.75rem, 15vw, 4rem);
  }

  .thesis-block {
    width: 100%;
    min-width: 0;
    gap: 2.25rem;
  }

  .thesis-stage {
    display: grid;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    --thesis-duration: 6.5s;
    min-height: 0;
    border-radius: 1.25rem;
  }

  .thesis-card {
    position: relative;
    inset: auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    grid-area: 1 / 1;
    gap: 1rem;
    padding: 1.5rem 1.15rem 5rem;
  }

  .outcome-copy,
  .outcome-visual {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .outcome-copy h3 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(1.4rem, 6.4vw, 1.75rem);
    overflow-wrap: break-word;
  }

  .outcome-copy p {
    width: 100%;
    max-width: 100%;
    font-size: 0.82rem;
    line-height: 1.45;
    overflow-wrap: break-word;
  }

  .trust-visual span {
    padding: 0 1.25rem;
    font-size: clamp(1.35rem, 6vw, 1.65rem);
  }

  .act-visual > span {
    gap: 1rem;
    padding: 0.95rem 1rem 0.95rem 1.2rem;
  }

  .thesis-nav {
    right: 1rem;
    left: 1rem;
  }

  .thesis-nav button {
    min-height: 44px;
    padding: 0.8rem 0.15rem 0.4rem;
    text-align: center;
  }

  .payoff {
    min-height: 100svh;
    padding-top: max(5.5rem, calc(env(safe-area-inset-top) + 4rem));
    padding-bottom: max(5.5rem, calc(env(safe-area-inset-bottom) + 4rem));
  }

  .payoff-lines {
    gap: 1.2rem;
  }

  .payoff-click { font-size: clamp(2.65rem, 13vw, 4.2rem); }
  .payoff-look { font-size: clamp(2.9rem, 14vw, 4.6rem); }
  .payoff-stay { font-size: clamp(3.25rem, 16vw, 5.2rem); }

  .payoff-final h2 {
    font-size: clamp(3rem, 14.5vw, 5rem);
  }

  .payoff-button {
    width: min(100%, 18rem);
    justify-content: center;
    gap: 1rem;
    margin-top: 2.25rem;
  }

  .payoff-lines.is-revealed .payoff-click {
    animation: payoffLineIn 0.8s cubic-bezier(.2,.8,.2,1) forwards 0.2s;
  }

  .payoff-lines.is-revealed .key-click {
    animation: keyClick 0.6s cubic-bezier(.2,.8,.2,1) 0.95s;
  }

  .payoff-lines.is-revealed .key-click::after {
    animation: clickRipple 0.65s ease-out 1s;
  }

  .payoff-lines.is-revealed .payoff-look {
    animation: payoffLineIn 0.85s cubic-bezier(.2,.8,.2,1) forwards 1.5s;
  }

  .payoff-lines.is-revealed .payoff-o {
    animation: payoffBlink 0.2s ease-in-out 2 2.35s;
  }

  .payoff-lines.is-revealed .payoff-stay {
    animation: payoffCrescendo 1s cubic-bezier(.16,.8,.2,1) forwards 2.9s;
  }

  .payoff-lines.is-revealed .key-stay {
    animation: keyStay 0.7s cubic-bezier(.2,.8,.2,1) 3.85s;
  }

  .payoff-lines.is-revealed .key-stay::after {
    animation: stayLock 0.7s cubic-bezier(.2,.8,.2,1) forwards 4s;
  }

  .payoff-final.is-revealed p {
    animation: finalIntroIn 0.5s ease forwards 0.2s;
  }

  .payoff-final.is-revealed h2 {
    animation: finalHeadlineIn 0.8s cubic-bezier(.2,.8,.2,1) forwards 0.65s;
  }

  .payoff-final.is-revealed .final-highlight::before {
    animation: finalHighlightWipe 0.5s cubic-bezier(.2,.8,.2,1) forwards 1.4s;
  }

  .payoff-final.is-revealed .payoff-button {
    animation:
      finalCtaIn 0.65s cubic-bezier(.2,.8,.2,1) forwards 2s,
      finalCtaBeacon 2.8s ease-in-out infinite 3s;
  }

  .story-footer {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (hover: none), (pointer: coarse) {
  .click-word:hover {
    box-shadow: 0.06em 0.07em 0 var(--text);
    transform: rotate(-2deg);
  }

  .case-preview:hover img {
    filter: none;
    transform: none;
  }

  .payoff-button:hover {
    gap: 1rem;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .attention-orbit,
  .orbit-core,
  .button-glint,
  .scroll-line,
  .chapter-transition i {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .inline-scroll-cue i {
    animation: none !important;
  }

  .chapter-transition span {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .loading-dots i,
  .pause-word {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .payoff-line {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .payoff-lines {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    overflow: visible;
  }

  .payoff-lines.is-exiting {
    display: none;
    animation: none !important;
  }

  .payoff-line {
    position: relative;
    inset: auto;
    display: block;
  }

  .payoff-key,
  .payoff-o,
  .payoff-key::after {
    animation: none !important;
  }

  .key-stay::after {
    transform: scaleX(1);
  }

  .payoff-final p,
  .payoff-final h2,
  .payoff-final .payoff-button {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .final-highlight::before {
    animation: none !important;
    transform: scaleX(1);
  }

  .proof-heading h2 em::before,
  .proof-heading h2 em::after {
    display: none;
  }

  .browse-track,
  .trust-visual span,
  .act-visual > i,
  .act-visual > span {
    animation: none !important;
  }

  .trust-visual span {
    opacity: 1;
    transform: translate(var(--stack-x), 0) rotate(var(--stack-rotate));
  }
}
