body.story-page {
  min-height: 100%;
}

.story-shell {
  position: relative;
  z-index: 12;
  padding-top: clamp(96px, 11vh, 136px);
}

.story-container {
  position: relative;
  width: min(1200px, calc(100% - 6vw));
  margin: 0 auto;
}

.story-hero {
  position: relative;
  min-height: calc(100svh - 96px);
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 8vw, 6rem);
  display: flex;
  align-items: center;
}

.story-hero-grid,
.story-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.82fr);
  gap: clamp(2rem, 4vw, 4.4rem);
  align-items: start;
}

.story-hero-grid {
  position: relative;
  padding: clamp(1.15rem, 2.5vw, 1.85rem);
  border-radius: 36px;
}

.story-hero-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(140, 128, 106, 0.08);
  border-radius: 36px;
  background:
    radial-gradient(circle at 82% 22%, rgba(154, 123, 62, 0.026) 0%, rgba(154, 123, 62, 0) 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.015) 44%, rgba(255, 255, 255, 0) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 18px 46px rgba(var(--paper-shadow-rgb), 0.02);
  pointer-events: none;
}

.story-hero-grid > * {
  position: relative;
  z-index: 1;
}

.story-founder-split {
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.06fr);
}

.story-display {
  margin: 0 0 1.25rem;
  max-width: 10ch;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 7vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.84),
    0 18px 42px rgba(255, 255, 255, 0.18);
}

.story-lead {
  max-width: 42rem;
  margin: 0 0 1rem;
  color: rgba(26, 26, 26, 0.88);
  font-size: clamp(1.08rem, 1.45vw, 1.34rem);
  line-height: 1.7;
}

.story-hero-copy .section-body {
  max-width: 40rem;
}

.story-hero-tag {
  width: fit-content;
  margin-bottom: 1.15rem;
}

.story-hero-panel {
  align-self: start;
  max-width: 32rem;
  margin-top: 0.2rem;
  padding-top: 2.15rem;
  background:
    linear-gradient(180deg, rgba(var(--paper-rgb), 0.88) 0%, rgba(var(--paper-rgb), 0.7) 100%);
  box-shadow:
    0 32px 84px rgba(var(--paper-shadow-rgb), 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.story-hero-panel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 1px;
  background: linear-gradient(90deg, rgba(154, 123, 62, 0), rgba(154, 123, 62, 0.52), rgba(154, 123, 62, 0));
  opacity: 0.72;
}

.story-hero-panel .section-heading {
  max-width: 12ch;
  margin-bottom: 0.88rem;
  font-size: clamp(2.1rem, 3.2vw, 3.5rem);
  line-height: 0.98;
}

.story-hero-panel .story-proof-list {
  margin-top: 1.3rem;
}

.story-hero-panel .story-metric {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0.42) 100%);
}

.story-hero-panel .story-metric-value {
  color: #8a6630;
  background: linear-gradient(180deg, #b4893d 0%, #89652a 56%, #714f1b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.story-hero-panel .story-metric-label {
  margin-top: 0.42rem;
  color: rgba(26, 26, 26, 0.6);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.story-metric-grid,
.story-fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.82rem;
  margin-top: 1.55rem;
}

.story-metric,
.story-fact,
.story-layer-card {
  position: relative;
  border: 1px solid rgba(140, 128, 106, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow:
    0 18px 44px rgba(var(--paper-shadow-rgb), 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.story-metric,
.story-fact {
  padding: 0.96rem 1rem 0.9rem;
}

.story-metric-value,
.story-fact-value {
  display: block;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.3vw, 2.36rem);
  font-variant-numeric: tabular-nums;
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.story-metric-label,
.story-fact-label {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.84rem;
  line-height: 1.38;
  text-wrap: pretty;
}

.story-section {
  position: relative;
  z-index: 12;
  padding: clamp(3.6rem, 6vw, 5.8rem) 0;
}

.story-section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(140, 128, 106, 0), rgba(140, 128, 106, 0.14), rgba(140, 128, 106, 0));
  pointer-events: none;
}

.story-copy {
  max-width: 48rem;
}

.story-copy .section-body + .section-body {
  margin-top: 1rem;
}

.story-callout,
.story-identity-panel {
  padding-top: 2rem;
}

.story-callout,
.story-identity-panel,
.story-founder-facts {
  background:
    linear-gradient(180deg, rgba(var(--paper-rgb), 0.84) 0%, rgba(var(--paper-rgb), 0.68) 100%);
  box-shadow:
    0 30px 80px rgba(var(--paper-shadow-rgb), 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.54);
}

.story-identity-panel,
.story-founder-facts,
.story-footer-panel {
  position: relative;
  overflow: hidden;
}

.story-callout {
  position: relative;
}

.story-callout::after,
.story-identity-panel::after,
.story-founder-facts::after,
.story-footer-panel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 26px;
  right: 26px;
  height: 1px;
  background: linear-gradient(90deg, rgba(154, 123, 62, 0), rgba(154, 123, 62, 0.42), rgba(154, 123, 62, 0));
  opacity: 0.56;
  pointer-events: none;
}

.story-kicker {
  display: block;
  margin-bottom: 1rem;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.story-quote {
  margin: 0 0 1.25rem;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.4vw, 2.32rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.story-proof-list {
  display: grid;
  gap: 0.9rem;
}

.story-founder-facts .story-fact-grid {
  grid-template-columns: 1fr;
  gap: 0.74rem;
  margin-top: 1.35rem;
}

.story-proof-item {
  padding-top: 0.9rem;
  border-top: 1px solid rgba(140, 128, 106, 0.16);
}

.story-proof-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.story-proof-title {
  display: block;
  margin-bottom: 0.26rem;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.12rem;
}

.story-proof-copy {
  display: block;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.52;
  text-wrap: pretty;
}

.story-inline-link {
  color: rgba(122, 91, 34, 0.96);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.story-inline-link:hover,
.story-inline-link:focus-visible {
  color: var(--text-primary);
}

.story-inline-link:focus-visible {
  outline: none;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.story-section-title {
  max-width: 12ch;
}

.story-intro {
  max-width: 46rem;
  margin-bottom: 1.45rem;
}

.story-layer-sequence {
  position: relative;
  display: grid;
  gap: 1.1rem;
  --layer-progress: 0;
}

.story-layer-spotlight {
  display: none;
  padding: 2rem 2rem 1.8rem;
  background:
    linear-gradient(180deg, rgba(var(--paper-rgb), 0.88) 0%, rgba(var(--paper-rgb), 0.76) 100%);
  box-shadow:
    0 28px 74px rgba(var(--paper-shadow-rgb), 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.story-page.story-ready .story-layer-spotlight {
  display: block;
}

.story-layer-spotlight-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.story-layer-spotlight-step {
  color: rgba(26, 26, 26, 0.6);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.story-layer-spotlight-body {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(15rem, 0.86fr);
  gap: 1.4rem;
  align-items: start;
}

.story-layer-spotlight-title {
  margin: 0 0 0.42rem;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 2.6vw, 2.7rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.story-layer-spotlight-copy {
  max-width: 34rem;
}

.story-layer-spotlight-side {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.story-layer-spotlight-need {
  margin: 0;
}

.story-layer-spotlight-hint {
  margin: 0;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-transform: uppercase;
}

.story-layer-control-rail {
  display: none;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.3rem;
}

.story-page.story-ready .story-layer-control-rail {
  display: flex;
}

.story-layer-tab {
  appearance: none;
  border: 1px solid rgba(140, 128, 106, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  padding: 0.58rem 0.84rem;
  color: rgba(26, 26, 26, 0.72);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease,
    color 0.24s ease,
    box-shadow 0.24s ease;
}

.story-layer-tab[aria-pressed="true"] {
  border-color: rgba(154, 123, 62, 0.28);
  background: linear-gradient(180deg, rgba(255, 249, 238, 0.92), rgba(248, 240, 220, 0.84));
  color: var(--text-primary);
  box-shadow:
    0 14px 28px rgba(var(--paper-shadow-rgb), 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.story-layer-tab:focus-visible {
  outline: none;
  border-color: rgba(154, 123, 62, 0.28);
  color: var(--text-primary);
  box-shadow:
    0 0 0 3px rgba(154, 123, 62, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.story-layer-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.story-layer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(140, 128, 106, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(var(--paper-rgb), 0.84) 0%, rgba(var(--paper-rgb), 0.7) 100%);
  box-shadow:
    0 22px 58px rgba(var(--paper-shadow-rgb), 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  will-change: transform, opacity, border-color, box-shadow;
}

.story-layer-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 23px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 48%);
  pointer-events: none;
}

.story-layer-card > * {
  position: relative;
  z-index: 1;
}

.story-layer-card:nth-child(1),
.story-layer-card:nth-child(2),
.story-layer-card:nth-child(3) {
  grid-column: span 4;
}

.story-layer-card:nth-child(4),
.story-layer-card:nth-child(5) {
  grid-column: span 6;
}

.story-layer-button {
  width: 100%;
  border: 0;
  background: none;
  padding: 1.08rem 1.06rem 0.42rem;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.story-layer-button:focus-visible {
  outline: none;
}

.story-layer-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.72rem;
}

.story-layer-card-top .story-layer-number {
  margin-bottom: 0;
}

.story-layer-card-state {
  color: rgba(26, 26, 26, 0.48);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story-layer-number {
  display: inline-block;
  margin-bottom: 0.72rem;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.story-layer-title {
  margin: 0 0 0.34rem;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.34rem;
  line-height: 1;
  letter-spacing: -0.035em;
}

.story-layer-eyebrow {
  margin: 0 0 0.58rem;
  color: rgba(26, 26, 26, 0.74);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.45;
}

.story-layer-copy,
.story-layer-need {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.story-layer-need {
  color: rgba(26, 26, 26, 0.82);
  text-wrap: pretty;
}

.story-layer-detail {
  padding: 0 1.06rem 1.06rem;
}

.story-page.story-ready .story-layer-grid {
  transition:
    max-height 0.75s cubic-bezier(0.21, 0.47, 0.32, 0.98),
    opacity 0.55s cubic-bezier(0.21, 0.47, 0.32, 0.98),
    transform 0.55s cubic-bezier(0.21, 0.47, 0.32, 0.98),
    visibility 0s linear 0.55s;
}

.story-page.story-ready .story-layer-sequence:not(.is-expanded) .story-layer-grid {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-14px) scale(0.985);
  visibility: hidden;
  pointer-events: none;
}

.story-page.story-ready .story-layer-sequence.is-expanded .story-layer-grid {
  max-height: 120rem;
  opacity: 1;
  transform: none;
  visibility: visible;
  pointer-events: auto;
  transition:
    max-height 0.75s cubic-bezier(0.21, 0.47, 0.32, 0.98),
    opacity 0.55s cubic-bezier(0.21, 0.47, 0.32, 0.98),
    transform 0.55s cubic-bezier(0.21, 0.47, 0.32, 0.98),
    visibility 0s linear 0s;
}

.story-page.story-ready .story-layer-card {
  opacity: 0;
  transform: translateY(24px) scale(0.982);
  transition:
    opacity 0.55s cubic-bezier(0.21, 0.47, 0.32, 0.98),
    transform 0.55s cubic-bezier(0.21, 0.47, 0.32, 0.98),
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease;
  transition-delay: calc(var(--layer-order, 0) * 55ms);
}

.story-page.story-ready .story-layer-sequence.is-expanded .story-layer-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.story-page.story-ready .story-layer-card.is-active,
.story-page.story-ready .story-layer-card:focus-within {
  border-color: rgba(154, 123, 62, 0.22);
  background:
    linear-gradient(180deg, rgba(var(--paper-rgb), 0.92) 0%, rgba(var(--paper-rgb), 0.78) 100%);
  box-shadow:
    0 28px 70px rgba(var(--paper-shadow-rgb), 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.story-page.story-ready .story-layer-card.is-active .story-layer-card-state,
.story-page.story-ready .story-layer-card:focus-within .story-layer-card-state {
  color: var(--gold);
}

.story-page.story-ready .story-layer-detail {
  max-height: 0;
  padding-bottom: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-10px);
  transition:
    max-height 0.38s cubic-bezier(0.21, 0.47, 0.32, 0.98),
    padding-bottom 0.38s cubic-bezier(0.21, 0.47, 0.32, 0.98),
    opacity 0.28s ease,
    transform 0.28s ease;
}

.story-page.story-ready .story-layer-card.is-active .story-layer-detail,
.story-page.story-ready .story-layer-card:focus-within .story-layer-detail {
  max-height: 10rem;
  padding-bottom: 1.06rem;
  opacity: 1;
  transform: translateY(0);
}

.story-founder-title {
  margin: 0 0 0.8rem;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.story-pulse {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.story-pulse li {
  padding: 0.48rem 0.78rem;
  border: 1px solid rgba(140, 128, 106, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  color: rgba(26, 26, 26, 0.72);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.story-footer {
  --site-footer-padding: 5.4rem 3vw 2rem;
  --site-footer-inner-width: min(1020px, 100%);
  --site-footer-wordmark-gap: 0.45rem;
  --site-footer-wordmark-color: rgba(26, 26, 26, 0.08);
  --site-footer-wordmark-size: clamp(2.8rem, 8.6vw, 7.8rem);
  --site-footer-wordmark-tracking: 0.2em;
  --story-footer-heading-width: 31ch;
}

.story-footer-panel {
  padding-top: var(--story-footer-panel-padding-top, 2.4rem);
  padding-bottom: var(--story-footer-panel-padding-bottom, 2.3rem);
  background:
    linear-gradient(180deg, rgba(var(--paper-rgb), 0.84) 0%, rgba(var(--paper-rgb), 0.72) 100%);
  box-shadow:
    0 30px 90px rgba(var(--paper-shadow-rgb), 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.story-footer-panel .section-heading {
  max-width: var(--story-footer-heading-width, 16ch);
  text-wrap: balance;
}

/* Scroll-progress reveal: JS drives opacity, transform, filter directly.
   Initial hidden state set here; JS overrides inline as scroll progresses.
   .is-visible fallback ensures page remains legible if scroll-reveal JS
   hasn't loaded or the old IntersectionObserver path is still active. */
.story-page.story-ready [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(4px);
}

.story-page.story-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition:
    opacity 0.72s cubic-bezier(0.21, 0.47, 0.32, 0.98),
    transform 0.72s cubic-bezier(0.21, 0.47, 0.32, 0.98),
    filter 0.72s cubic-bezier(0.21, 0.47, 0.32, 0.98);
  will-change: opacity, transform, filter;
}

@media (hover: hover) and (pointer: fine) {
  .story-metric,
  .story-fact,
  .story-layer-card,
  .story-layer-tab {
    transition:
      transform 0.28s ease,
      border-color 0.28s ease,
      box-shadow 0.28s ease,
      background 0.28s ease,
      color 0.28s ease;
  }

  .story-metric:hover,
  .story-fact:hover {
    transform: translateY(-3px);
    border-color: rgba(154, 123, 62, 0.2);
    background: rgba(255, 255, 255, 0.54);
    box-shadow:
      0 22px 54px rgba(var(--paper-shadow-rgb), 0.07),
      inset 0 1px 0 rgba(255, 255, 255, 0.56);
  }

  .story-layer-tab:hover {
    transform: translateY(-1px);
    border-color: rgba(154, 123, 62, 0.22);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.48);
  }

  .story-page.story-ready .story-layer-card:hover {
    transform: translateY(-4px) rotateX(0.6deg) rotateY(-0.45deg) scale(1.008);
    border-color: rgba(154, 123, 62, 0.22);
    background:
      linear-gradient(180deg, rgba(var(--paper-rgb), 0.92) 0%, rgba(var(--paper-rgb), 0.78) 100%);
    box-shadow:
      0 30px 72px rgba(var(--paper-shadow-rgb), 0.09),
      inset 0 1px 0 rgba(255, 255, 255, 0.56);
  }

  .story-page.story-ready .story-layer-card:hover .story-layer-card-state {
    color: var(--gold);
  }

  .story-page.story-ready .story-layer-card:hover .story-layer-detail {
    max-height: 10rem;
    padding-bottom: 1.06rem;
    opacity: 1;
    transform: translateY(0);
  }

  .story-proof-item {
    transition: opacity 0.24s ease, transform 0.24s ease;
  }

  .story-proof-item:hover {
    transform: translateX(2px);
  }
}

@media (max-width: 1100px) {
  .story-container {
    width: min(960px, calc(100% - 5vw));
  }

  .story-hero-grid,
  .story-split,
  .story-founder-split {
    grid-template-columns: 1fr;
  }

  .story-display {
    max-width: 12ch;
  }

  .story-section-title,
  .story-hero-panel .section-heading {
    max-width: 100%;
  }

  .story-hero-grid {
    padding: 1.2rem;
  }

  .story-hero-panel {
    max-width: 100%;
  }

  .story-founder-facts .story-fact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas: none;
    gap: 0.82rem;
    margin-top: 1.45rem;
  }

  .story-founder-facts .story-fact-grid > .story-fact:nth-child(1),
  .story-founder-facts .story-fact-grid > .story-fact:nth-child(2),
  .story-founder-facts .story-fact-grid > .story-fact:nth-child(3) {
    grid-area: auto;
    width: auto;
    max-width: none;
    justify-self: stretch;
  }

  .story-layer-spotlight-body {
    grid-template-columns: 1fr;
  }

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

  .story-layer-card:nth-child(1),
  .story-layer-card:nth-child(2),
  .story-layer-card:nth-child(3),
  .story-layer-card:nth-child(4),
  .story-layer-card:nth-child(5) {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .story-shell {
    padding-top: 92px;
  }

  .story-container {
    width: calc(100% - 36px);
  }

  .story-hero {
    min-height: auto;
    padding: 1.6rem 0 3rem;
  }

  .story-hero-grid {
    padding: 0.85rem;
    border-radius: 28px;
  }

  .story-hero-grid::before {
    border-radius: 28px;
  }

  .story-display {
    margin-bottom: 1rem;
    max-width: 100%;
    font-size: clamp(3rem, 15vw, 4.5rem);
    line-height: 0.96;
  }

  .story-lead {
    font-size: 1rem;
    line-height: 1.64;
  }

  .story-hero-panel,
  .story-callout,
  .story-identity-panel,
  .story-founder-facts {
    padding: 1.5rem 1.2rem;
  }

  .story-hero-panel::after {
    left: 20px;
    right: 20px;
  }

  .story-callout::after,
  .story-identity-panel::after,
  .story-founder-facts::after,
  .story-footer-panel::after {
    left: 20px;
    right: 20px;
  }

  .story-pulse {
    gap: 0.45rem;
    margin-top: 1rem;
  }

  .story-pulse li {
    font-size: 0.62rem;
    letter-spacing: 0.07em;
  }

  .story-metric-grid,
  .story-fact-grid {
    grid-template-columns: 1fr;
    gap: 0.58rem;
  }

  .story-founder-facts .story-fact:last-child {
    width: auto;
    max-width: none;
  }

  .story-section {
    padding: 3.2rem 0;
  }

  .story-layer-sequence {
    gap: 0.8rem;
  }

  .story-layer-spotlight {
    padding: 1.45rem 1.18rem 1.2rem;
  }

  .story-layer-spotlight-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
  }

  .story-layer-spotlight-title {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
  }

  .story-layer-control-rail {
    gap: 0.42rem;
    margin-top: 1rem;
  }

  .story-layer-tab {
    flex: 1 1 calc(50% - 0.42rem);
    min-height: 44px;
    padding: 0.66rem 0.8rem;
    font-size: 0.64rem;
  }

  .story-layer-grid {
    grid-template-columns: 1fr;
    gap: 0.72rem;
  }

  .story-layer-card {
    border-radius: 21px;
  }

  .story-layer-card::before {
    border-radius: 20px;
  }

  .story-layer-button {
    padding: 0.96rem 0.92rem 0.26rem;
  }

  .story-layer-detail {
    padding: 0 0.92rem 0.92rem;
  }

  .story-quote {
    font-size: clamp(1.46rem, 7.8vw, 1.92rem);
    line-height: 1.08;
  }

  .story-proof-title {
    font-size: 1rem;
  }

  .story-proof-copy,
  .story-layer-copy,
  .story-layer-need {
    font-size: 0.86rem;
    line-height: 1.48;
  }

  .story-footer {
    --site-footer-padding-mobile: 4.8rem 18px 2rem;
    --site-footer-wordmark-gap: 0.28rem;
    --site-footer-wordmark-size: clamp(2.6rem, 15vw, 5rem);
    --site-footer-wordmark-tracking: 0.16em;
  }

  .story-footer-panel {
    padding: var(--story-footer-panel-padding-top-mobile, 1.7rem) 1.2rem var(--story-footer-panel-padding-bottom-mobile, 1.6rem);
  }

  .story-footer-panel .section-heading {
    max-width: 100%;
  }

  .story-footer .cta-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 0.72rem;
    max-width: min(18rem, 100%);
  }

  .story-footer .cta-button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .story-founder-facts .story-fact-grid {
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .story-founder-facts .story-fact {
    padding: 0.62rem 0.72rem 0.58rem;
  }

  .story-founder-facts .story-fact-value {
    font-size: clamp(1.1rem, 4.8vw, 1.5rem);
    line-height: 1;
  }

  .story-founder-facts .story-fact-label {
    margin-top: 0.22rem;
    font-size: 0.7rem;
    line-height: 1.3;
  }
}

@media (max-width: 768px) and (max-height: 700px) {
  .story-shell {
    padding-top: 84px;
  }

  .story-section {
    padding: 2.6rem 0;
  }

  .story-hero {
    padding-bottom: 2.4rem;
  }

  .story-display {
    font-size: clamp(2.7rem, 13.5vw, 4rem);
  }

  .story-hero-panel,
  .story-callout,
  .story-identity-panel,
  .story-founder-facts,
  .story-layer-spotlight {
    padding: 1.2rem 1rem;
  }

  .story-footer {
    --site-footer-padding-mobile: 4.2rem 18px 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-layer-tab,
  .story-layer-grid,
  .story-layer-card,
  .story-layer-detail {
    transition-duration: 0.01ms !important;
  }

  .story-page.story-ready .story-layer-card,
  .story-page.story-ready .story-layer-card:hover,
  .story-page.story-ready .story-layer-sequence.is-expanded .story-layer-card {
    transform: none;
  }
}

/* ── Scroll-progress focal reveal ── */

/* Proof title: muted → primary driven by --reveal-progress */
.story-proof-item .story-proof-title {
  opacity: calc(0.5 + var(--reveal-progress, 1) * 0.5);
  transition: opacity 0.1s linear;
}

/* Pullquote gold bar: width driven by --bar-progress */
.story-page.story-ready .story-pullquote::before {
  width: calc(3.6rem * var(--bar-progress, 1));
}

/* Preserve hover lift on revealed focal items */
@media (hover: hover) and (pointer: fine) {
  .story-page.story-ready .story-metric:hover,
  .story-page.story-ready .story-fact:hover {
    transform: translateY(-3px) !important;
  }
}

/* ── Pull-quote ── */

.story-pullquote {
  position: relative;
  margin: 2.4rem 0;
  padding: 2rem 0;
  border-top: 1px solid rgba(140, 128, 106, 0.16);
  border-bottom: 1px solid rgba(140, 128, 106, 0.16);
}

.story-pullquote .story-quote {
  margin: 0;
}

.story-pullquote::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 3.6rem;
  height: 2px;
  background: var(--gold);
}

@media (max-width: 768px) {
  .story-pullquote {
    margin: 1.8rem 0;
    padding: 1.4rem 0;
  }
}

/* ── Narrative concept grid ── */

.story-concept-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
  margin-top: 1.2rem;
  margin-bottom: 1.2rem;
}

.story-concept-grid .story-proof-item {
  padding: 0.9rem 1rem 0.86rem;
  border: 1px solid rgba(140, 128, 106, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow:
    0 18px 44px rgba(var(--paper-shadow-rgb), 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.story-concept-grid .story-proof-title {
  display: block;
  margin-bottom: 0.38rem;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.story-concept-grid .story-proof-copy {
  font-size: 0.86rem;
  line-height: 1.48;
}

/* ── Scrollable callout ── */

.story-callout {
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  scrollbar-width: none;
}

.story-callout::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.story-callout::before {
  content: "";
  position: sticky;
  bottom: 0;
  display: block;
  height: 2.5rem;
  margin-top: -2.5rem;
  background: linear-gradient(to top, rgba(var(--paper-rgb), 0.88) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* ── Founder narrative card ── */

.story-founder-narrative {
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  scrollbar-width: none;
  background:
    linear-gradient(180deg, rgba(var(--paper-rgb), 0.84) 0%, rgba(var(--paper-rgb), 0.68) 100%);
  box-shadow:
    0 28px 82px rgba(var(--paper-shadow-rgb), 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.story-founder-narrative::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.story-founder-narrative::after {
  content: "";
  position: sticky;
  bottom: 0;
  display: block;
  height: 2.5rem;
  margin-top: -2.5rem;
  background: linear-gradient(to top, rgba(var(--paper-rgb), 0.88) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.story-founder-narrative .section-heading {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  margin-bottom: 1.2rem;
}

.story-founder-narrative .story-pullquote {
  margin: 1.4rem 0 1rem;
  padding: 1.2rem 0;
}

.story-founder-narrative .section-note {
  font-size: 0.86rem;
  line-height: 1.52;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .story-concept-grid {
    grid-template-columns: 1fr;
  }

  .story-callout,
  .story-founder-narrative {
    max-height: none;
    overflow-y: visible;
  }

  .story-founder-narrative {
    padding: 1.5rem 1.2rem;
  }
}

