.story-hero { position: relative; isolation: isolate; display: grid; align-items: end; min-height: min(790px, calc(100svh - var(--header-height))); overflow: hidden; background: var(--navy-deep); color: white; }
.story-hero-photo { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 57%; }
.story-hero::after { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(90deg, rgba(4, 19, 41, .89), rgba(4, 19, 41, .53) 46%, rgba(4, 19, 41, .05) 80%), linear-gradient(0deg, rgba(4, 19, 41, .55), transparent 55%); }
.story-hero-inner { width: min(1280px, calc(100% - 2 * clamp(18px, 5vw, 76px))); margin-inline: auto; padding-block: clamp(64px, 9vw, 126px); }
.story-hero h1 { max-width: 11ch; margin: 16px 0 22px; font-size: clamp(3.3rem, 7.3vw, 7.6rem); }
.story-hero-copy { max-width: 29rem; font-size: clamp(1.0625rem, 1.7vw, 1.3rem); }
.story-hero .site-button { margin-top: 26px; }

.story { padding-block: clamp(64px, 9vw, 122px); }
.story-heading { max-width: 53rem; margin-bottom: clamp(28px, 5vw, 60px); }
.story-heading .eyebrow { color: var(--muted); }
.story h2, .closing h2 { margin-top: 12px; font-size: clamp(2.6rem, 5.2vw, 5.2rem); }
.story-grid { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(210px, 1fr); align-items: start; gap: clamp(20px, 5vw, 76px); }
.stage { --progress: 0; align-self: start; min-width: 0; }
.enhanced .stage { position: sticky; top: calc(var(--header-height) + 22px); }
.stage-screen { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 1.39; max-height: calc(100svh - var(--header-height) - 110px); border-radius: 9px 9px 0 0; background: var(--navy); }
.stage-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 59%; transform: scale(1.4); transform-origin: 52% 54%; transition: transform 760ms cubic-bezier(.2, .65, .25, 1), filter 600ms ease; }
.stage[data-scene="pairings"] .stage-photo { transform: scale(1.015); }
.stage:is([data-scene="similar"], [data-scene="category"]) .stage-photo { transform: scale(1.08); filter: brightness(.48); }
.scene-layer { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 350ms ease, transform 470ms ease, visibility 0s linear 470ms; }
.stage[data-scene="piece"] .scene-piece,
.stage[data-scene="pairings"] .scene-pairings,
.stage[data-scene="similar"] .scene-similar,
.stage[data-scene="category"] .scene-category { opacity: 1; visibility: visible; transform: none; transition-delay: 80ms, 80ms, 0s; }
.pin { position: absolute; display: flex; align-items: center; gap: 8px; width: max-content; max-width: 80%; padding: .48rem .7rem; border: 1px solid rgba(255,255,255,.7); border-radius: 5px; background: var(--paper); color: var(--navy); font-size: .875rem; font-weight: 700; box-shadow: 0 5px 22px rgba(0,0,0,.2); }
.pin i { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px var(--sky); }
.pin-sofa { left: 50%; top: 47%; }
.pin-table { left: 37%; top: 65%; }
.pin-rug { right: 5%; bottom: 8%; }
.selection { position: absolute; left: 6%; right: 6%; bottom: 9%; padding: clamp(8px, 2vw, 22px); border: 1px solid rgba(255,255,255,.6); border-radius: 8px; background: var(--paper); }
.selection > p { margin-bottom: .7rem; color: var(--navy); font: 700 clamp(1rem, 2.2vw, 1.65rem)/1.05 var(--display); }
.selection-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(6px, 1.6vw, 16px); }
.selection-grid-wide { grid-template-columns: repeat(3, 1fr); }
.selection-grid > div { min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 4px; background: white; }
.selection-grid img { width: 100%; height: clamp(42px, 12vw, 144px); object-fit: contain; }
.selection-grid span { display: block; margin-top: 5px; font-size: .875rem; line-height: 1.2; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 9px 9px; background: white; }
.steps::before { position: absolute; inset: 0 0 auto; height: 3px; content: ""; background: var(--blue); transform: scaleX(var(--progress)); transform-origin: left; pointer-events: none; }
.steps a { display: grid; min-height: 48px; place-items: center; padding: 9px 4px; color: var(--muted); font-weight: 600; font-size: .875rem; text-align: center; line-height: 1.18; text-decoration: none; }
.steps a:hover, .steps a[aria-current="step"] { color: var(--navy); background: #eff5fa; }
.steps a[aria-current="step"] { font-weight: 700; }
.chapter { display: grid; align-items: center; min-height: clamp(210px, 57svh, 540px); padding-block: 28px; border-top: 1px solid var(--line); scroll-margin-top: 12px; }
.chapter h3 { font-size: clamp(2rem, 3.6vw, 4.1rem); color: var(--navy); }
.chapter p { max-width: 32rem; margin-top: 16px; color: var(--muted); font-size: 1.0625rem; }
.closing { background: var(--navy-deep); color: white; }
.closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px 40px; padding-block: clamp(54px, 8vw, 106px); }
.closing h2 { max-width: 17ch; margin: 0; }
.closing p { margin-top: 16px; color: var(--sky); }
.closing .site-button { flex-shrink: 0; }

@media (max-width: 720px) {
  .story-hero::after { background: linear-gradient(0deg, rgba(4, 19, 41, .94) 5%, rgba(4, 19, 41, .63) 47%, rgba(4, 19, 41, .1) 86%); }
  .story-hero-photo { object-position: 55% center; }
  .story-hero-inner { padding-block: 54px; }
  .story-hero h1 { font-size: clamp(3.25rem, 11vw, 5.5rem); }
  .story-grid { display: block; }
  .stage { z-index: 1; padding-bottom: 7px; background: var(--paper); }
  .enhanced .stage { top: calc(var(--header-height) + 3px); }
  .stage-screen { max-height: 37svh; }
  .chapter { min-height: max(210px, 42svh); align-items: start; scroll-margin-top: min(47svh, calc((100vw - 36px) / 1.39 + 54px)); }
  .chapters { margin-top: 14px; }
  .closing-inner { flex-direction: column; align-items: start; }
}

@media (max-width: 380px) {
  .steps a { font-size: .8125rem; }
  .selection-grid span { font-size: .8125rem; }
}

@media (max-height: 490px) and (orientation: landscape) {
  .enhanced .stage { position: static; }
  .chapter { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .enhanced .stage { position: static; }
  .stage-photo, .scene-layer { transition: none; }
  .chapter { min-height: auto; scroll-margin-top: 0; }
}
