/* Composición semántica de los cinco capítulos y su respaldo ilustrado. */
.experience-page .header-inner { height: 78px; }
.experience-page .main-nav { font-size: 12px; }
.experience-page .header-contact { font-size: 12px; padding: 9px 17px; }
.scroll-story { --story-height: calc(100svh - 78px); position: relative; color: #f8f1ff; background: #211631; }
.story-stage { height: var(--story-height); min-height: 590px; position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 85% 56%,#7051a144,transparent 60%),linear-gradient(120deg,#20172f,#2e2048 75%,#382451); }
.story-atmosphere { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 77% 55%,#8172c5a8,transparent 60%),radial-gradient(ellipse at 1% 100%,#a64d9750,transparent 50%); opacity: .45; }
.story-grain { position: absolute; inset: 0; z-index: -1; opacity: .14; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' opacity='.3' d='M0 0h200v200H0z'/%3E%3C/svg%3E"); pointer-events: none; }
.story-topline { position: absolute; top: 30px; left: 4.8%; right: 4.8%; display: flex; justify-content: space-between; gap: 20px; font-size: 9px; letter-spacing: 2.1px; color: #c3afd7; }
.story-coordinate { opacity: .55; }
.story-captions { position: absolute; z-index: 3; left: 7%; top: 24%; width: 43%; }
.story-caption { max-width: 580px; }
.story-caption:not(:first-child) { position: absolute; top: 0; left: 0; opacity: 0; visibility: hidden; }
.story-kicker { display: flex; align-items: center; gap: 13px; text-transform: uppercase; font-size: 10px; letter-spacing: 2px; color: #d6b9e7; margin-bottom: 23px; }
.story-kicker > span { display: grid; place-items: center; height: 28px; width: 28px; border: 1px solid #80618e; border-radius: 50%; letter-spacing: 0; }
.experience-page .story-caption h1,.experience-page .story-caption h2 { font-family: var(--display); font-size: clamp(44px,5.5vw,86px); letter-spacing: -.045em; line-height: 1.02; font-weight: 500; max-width: none; text-wrap: balance; }
.experience-page .story-caption h1 em,.experience-page .story-caption h2 em { color: #b6efda; font-style: normal; }
.experience-page .story-caption[data-chapter="2"] h2 { font-size: clamp(39px,4.7vw,72px); }
.story-description { font-size: clamp(13px,1.1vw,16px); line-height: 1.8; color: #c8bad5; max-width: 360px; margin-top: 25px; }
.story-start { display: inline-flex; align-items: center; gap: 29px; border-radius: 40px; background: #c5f3dc; color: #294b43; font-size: 12px; font-weight: 700; padding: 13px 22px; margin-top: 27px; transition: background .2s,box-shadow .2s; }
.story-start:hover { background: #e0ffe9; box-shadow: 0 0 30px #b6efda22; }
.story-start > span { font-size: 21px; line-height: 1; }
.scroll-story :focus-visible { outline-color: #c5f3dc; }
.story-art-wrap { position: absolute; z-index: 1; width: min(72%,1050px); right: -3%; top: 50%; transform: translateY(-49%); aspect-ratio: 900/740; pointer-events: none; }
.story-art { width: 100%; height: 100%; overflow: visible; }
.story-character-label { position: absolute; top: 27%; left: 56%; transform: rotate(-8deg); color: #eac6eb; font-size: 11px; font-family: var(--font); letter-spacing: .2px; }
.story-character-label svg { width: 54px; height: 40px; margin: 8px auto 0; transform: rotate(15deg); }
.story-world:not(.story-world--spark) { opacity: 0; visibility: hidden; }
.story-bottom { position: absolute; z-index: 4; left: 4.8%; right: 4.8%; bottom: 28px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.story-scroll-hint { display: flex; gap: 12px; align-items: center; color: #b6a4ca; font-size: 10px; letter-spacing: .2px; }
.story-scroll-hint > span { display: grid; place-items: center; width: 27px; height: 40px; border: 1px solid #796188; border-radius: 30px; font-size: 18px; color: #cef5df; }
.story-chapters { display: none; gap: 20px; }
.story-chapters a { position: relative; display: flex; gap: 7px; align-items: center; padding: 16px 0; font-size: 10px; color: #a18cae; transition: color .2s; }
.story-chapters a > span:first-child { font-variant-numeric: tabular-nums; }
.story-chapters a[aria-current] { color: #f8e5fa; }
.story-chapters i { position: absolute; height: 2px; bottom: 5px; left: 0; width: 100%; background: #ffffff1c; overflow: hidden; }
.story-chapters i::after { content: ''; position: absolute; inset: 0; background: #b6efda; transform: scaleX(var(--chapter-fill,0)); transform-origin: left; }
.story-motion { background: none; border: 0; border-bottom: 1px solid #796188; padding: 8px 0; color: #beaccb; font-size: 10px; }
.story-motion:hover { color: #fff; }
.story-scroll-points { display: none; }
.story-transcript { margin: 0; padding: 50px max(7%,24px); list-style: none; display: grid; grid-template-columns: repeat(3,1fr); gap: 50px; background: #2e2141; }
.story-transcript li > .eyebrow { color: #cdb1e4; margin-bottom: 15px; }
.experience-page .story-transcript h2 { font-size: 30px; letter-spacing: -1px; line-height: 1.15; }
.experience-page .story-transcript h2 em { color: #b6efda; }
.story-transcript li > p:last-child { font-size: 13px; color: #c8bad5; margin-top: 18px; }
.scroll-story.is-animated { height: calc(var(--story-height) + 360svh); }
.is-animated .story-stage { position: sticky; top: 78px; }
.is-animated .story-transcript { display: none; }
.is-animated .story-chapters { display: flex; }
.is-animated .story-scroll-points { display: block; position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.story-scroll-points > span { position: absolute; top: calc(105svh); width: 1px; height: 1px; }
.story-scroll-points > span:nth-child(2) { top: 225svh; }
.story-scroll-points > span:nth-child(3) { top: 330svh; }
.story-manifesto { position: relative; padding: 110px 0 100px; text-align: center; background: var(--bg); }
.story-manifesto .eyebrow { display: block; color: var(--muted); font-size: 10px; margin-bottom: 25px; }
.experience-page .story-manifesto h2 { font-size: clamp(33px,4.5vw,64px); font-weight: 500; }
.story-manifesto p:not(.eyebrow) { max-width: 550px; margin: 28px auto; color: var(--muted); font-size: 14px; }
.story-manifesto .inline-link { margin-top: 10px; }
.story-anchor { position: absolute; top: 0; }
.story-ambient .story-character-float { animation: story-bob 4s ease-in-out infinite; }
.story-ambient .story-eyes { transform-box: fill-box; transform-origin: center; animation: story-blink 6s infinite; }
.story-ambient .story-small-island,.story-ambient .story-satellite-island { animation: story-bob 7s -2s ease-in-out infinite; }
.page-inactive .scroll-story *,.scroll-story.is-offscreen * { animation-play-state: paused !important; }
@keyframes story-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes story-blink { 0%,43%,47%,100% { transform: scaleY(1); } 45% { transform: scaleY(.12); } }
@media(min-width:1600px) { .story-captions { left: calc((100% - 1380px)/2); } }
@media(max-width:1100px) { .story-captions { left: 5%; width: 45%; } .story-art-wrap { right: -8%; width: 74%; } .story-chapters { gap: 15px; } .story-chapter-name { display: none; } .story-chapters a { min-width: 40px; } .story-coordinate { display: none; } .story-character-label { top: 24%; } }
@media(max-width:760px) {
  .experience-page .header-inner { height: 70px; min-height: 70px; }
  .scroll-story { --story-height: calc(100svh - 70px); }
  .story-stage { min-height: 560px; }
  .is-animated .story-stage { top: 70px; }
  .scroll-story.is-animated { height: calc(max(560px,var(--story-height)) + 360svh); }
  .story-topline { top: 24px; left: 7%; font-size: 8px; letter-spacing: 1.5px; }
  .story-captions { left: 7%; top: 68px; width: 88%; }
  .story-kicker { font-size: 9px; margin-bottom: 16px; gap: 9px; }
  .story-kicker > span { width: 23px; height: 23px; font-size: 9px; }
  .experience-page .story-caption h1,.experience-page .story-caption h2,.experience-page .story-caption[data-chapter="2"] h2 { font-size: clamp(35px,8.7vw,56px); max-width: 500px; }
  .story-description { font-size: 12px; line-height: 1.7; margin-top: 16px; max-width: 330px; }
  .story-start { font-size: 10px; padding: 10px 16px; margin-top: 15px; gap: 20px; }
  .story-art-wrap { width: min(100%,520px); right: -4%; top: auto; bottom: 85px; transform: none; height: min(44%,375px); aspect-ratio: auto; }
  .story-art { object-fit: contain; }
  .story-character-label { display: none; }
  .story-bottom { left: 7%; right: 7%; bottom: 17px; flex-wrap: wrap; gap: 0 15px; }
  .story-scroll-hint { font-size: 9px; flex: 1; }
  .story-scroll-hint > span { width: 21px; height: 29px; font-size: 15px; }
  .story-chapters { gap: 4px; }
  .story-chapters a { min-width: 36px; padding: 14px 0; font-size: 9px; }
  .story-motion { font-size: 9px; padding: 6px 0; margin-top: 5px; }
  .story-transcript { grid-template-columns: 1fr; gap: 35px; }
  .story-manifesto { padding: 70px 0; }
}
@media(max-height:700px) and (min-width:761px) {
  .story-stage { min-height: 500px; }
  .story-captions { top: 19%; }
  .experience-page .story-caption h1,.experience-page .story-caption h2 { font-size: clamp(40px,5vw,64px); }
  .story-kicker { margin-bottom: 17px; }
  .story-description { margin-top: 16px; font-size: 12px; }
  .story-start { margin-top: 18px; }
  .story-art-wrap { height: 100%; width: 70%; }
}
@media(prefers-reduced-motion:reduce) { .scroll-story * { animation: none !important; } }

@media(max-width:760px) and (max-height:720px) {
  .story-captions { top: 52px; }
  .story-topline { top: 19px; }
  .story-kicker { margin-bottom: 12px; }
  .experience-page .story-caption h1,.experience-page .story-caption h2,.experience-page .story-caption[data-chapter="2"] h2 { font-size: clamp(30px,8vw,42px); }
  .story-description { margin-top: 12px; font-size: 11px; }
  .story-start { margin-top: 12px; padding-block: 8px; }
  .story-art-wrap { height: 40%; bottom: 67px; }
  .story-bottom { bottom: 10px; }
}

/* The illustrated fallback and the WebGL journey share the same semantic story. */
.scroll-story { background: #211330; }
.story-stage { background: radial-gradient(ellipse at 75% 45%,#473165,transparent 65%),linear-gradient(120deg,#20142f,#322046); }
.story-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; opacity: 0; transition: opacity 1s; pointer-events: none; }
.has-webgl .story-canvas { opacity: 1; }
.has-webgl .story-art-wrap { display: none; }
.is-static .story-canvas { display: none; }
.is-static .story-art-wrap { display: block; }
.story-vignette { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg,#20142ff5 0%,#20142fd9 24%,#20142f66 42%,transparent 60%),linear-gradient(0deg,#20142ff0 0%,transparent 18%,transparent 88%,#20142f66); }
.story-topline { z-index: 4; top: 27px; font-size: 8px; letter-spacing: 2px; }
.story-topline > span:first-child { display: flex; align-items: center; gap: 11px; }
.story-topline i { height: 5px; width: 5px; background: #b6efda; box-shadow: 0 0 12px #b6efda; border-radius: 50%; }
.story-captions { left: 5.8%; top: 25%; width: 42%; }
.experience-page .story-caption h1,.experience-page .story-caption h2,.experience-page .story-caption[data-chapter="2"] h2 { font-size: clamp(42px,5.1vw,80px); line-height: 1.04; letter-spacing: -.055em; font-weight: 500; text-wrap: initial; }
.experience-page .story-caption h1 em,.experience-page .story-caption h2 em { color: #b6efda; }
.story-kicker { margin-bottom: 23px; letter-spacing: 2.7px; font-size: 9px; }
.story-description { max-width: 310px; font-size: 13px; line-height: 1.8; color: #c6b7d7; margin-top: 25px; }
.story-start { margin-top: 26px; font-size: 11px; padding: 14px 22px; }
.story-scene-number { position: absolute; right: 4.5%; top: 75px; z-index: 2; font-family: var(--display); font-size: 120px; font-weight: 300; letter-spacing: -9px; line-height: 1; color: #d9c2ec14; pointer-events: none; }
.story-scene-note { position: absolute; z-index: 3; right: 5%; bottom: 125px; display: grid; grid-template-columns: 39px auto; column-gap: 12px; align-items: center; color: #d3bee5; pointer-events: none; }
.story-scene-note svg { grid-row: span 2; width: 37px; height: 37px; fill: none; stroke: #b6efda; stroke-width: .7; opacity: .7; }
.story-scene-note span { font-size: 8px; letter-spacing: 1.8px; }
.story-scene-note small { font-size: 9px; color: #a48dbb; margin-top: 3px; }
.story-bottom { border-top: 1px solid #dac9f01a; padding-top: 14px; bottom: 23px; gap: 20px; }
.story-scroll-hint > span:first-child { border: 0; border-radius: 0; border-right: 1px solid #d9bbfa26; padding-right: 16px; width: 25px; height: 32px; }
.story-scroll-hint > span:nth-child(2) { display: block; width: auto; height: auto; border: 0; font-size: 10px; color: #dbcbeb; }
.story-scroll-hint small { display: block; font-size: 8px; margin-top: 6px; color: #a08aad; }
.story-chapters { gap: 20px; }
.story-chapters a { gap: 5px; font-size: 9px; min-width: 46px; }
.story-chapter-name { font-size: 8px; }
.story-motion { white-space: nowrap; font-size: 9px; }
.scroll-story.is-animated { height: calc(max(590px,var(--story-height)) + 620svh); }
.story-scroll-points > span:nth-child(1) { top: 143svh; }
.story-scroll-points > span:nth-child(2) { top: 304svh; }
.story-scroll-points > span:nth-child(3) { top: 447svh; }
.story-scroll-points > span:nth-child(4) { top: 589svh; }
.story-transcript { grid-template-columns: repeat(2,1fr); }
.scroll-story[data-chapter="1"] .story-stage { background: radial-gradient(ellipse at 64% 42%,#5f398a,transparent 65%),#21142e; }
.scroll-story[data-chapter="2"] .story-stage { background: radial-gradient(ellipse at 70% 50%,#3b5a66,transparent 65%),#221931; }
.scroll-story[data-chapter="3"] .story-stage { background: radial-gradient(ellipse at 75% 45%,#62407b,transparent 65%),#22142f; }
.scroll-story[data-chapter="4"] .story-stage { background: radial-gradient(ellipse at 75% 45%,#514778,transparent 65%),#22182f; }
@media(min-width:1600px) { .story-captions { left: calc((100% - 1420px)/2); } }
@media(max-width:1100px) { .story-chapters { gap: 12px; } .story-chapter-name { display: none; } .story-captions { width: 42%; } .story-coordinate { display: none; } .story-scene-note { bottom: 120px; } }
@media(max-width:760px) {
  .story-stage { min-height: 560px; }
  .scroll-story.is-animated { height: calc(max(560px,var(--story-height)) + 560svh); }
  .story-canvas { top: 32%; height: 62%; }
  .story-vignette { background: linear-gradient(0deg,#20142f 0%,transparent 16%,transparent 65%,#20142f99 100%); }
  .story-captions { top: 71px; left: 7%; width: 86%; }
  .experience-page .story-caption h1,.experience-page .story-caption h2,.experience-page .story-caption[data-chapter="2"] h2 { font-size: clamp(36px,8.4vw,52px); max-width: 480px; line-height: 1.04; }
  .story-kicker { margin-bottom: 14px; font-size: 8px; }
  .story-description { max-width: 330px; font-size: 11px; margin-top: 16px; line-height: 1.7; }
  .story-start { margin-top: 16px; padding: 10px 16px; font-size: 10px; }
  .story-topline { top: 25px; left: 7%; font-size: 7px; letter-spacing: 1.4px; }
  .story-scene-number { right: 7%; top: 52px; font-size: 76px; letter-spacing: -5px; }
  .story-scene-note { display: none; }
  .story-bottom { padding-top: 9px; bottom: 12px; row-gap: 2px; }
  .story-scroll-hint { display: none; }
  .story-chapters { justify-content: space-between; width: 100%; gap: 15px; }
  .story-chapters a { width: 20%; padding: 12px 0; font-size: 9px; min-width: 0; }
  .story-motion { padding: 4px 0; font-size: 8px; margin-left: auto; }
  .story-transcript { grid-template-columns: 1fr; }
  .story-scroll-points > span:nth-child(1) { top: 130svh; }
  .story-scroll-points > span:nth-child(2) { top: 275svh; }
  .story-scroll-points > span:nth-child(3) { top: 403svh; }
  .story-scroll-points > span:nth-child(4) { top: 532svh; }
}
@media(max-height:720px) and (min-width:761px) {
  .story-captions { top: 19%; }
  .experience-page .story-caption h1,.experience-page .story-caption h2,.experience-page .story-caption[data-chapter="2"] h2 { font-size: clamp(37px,4.4vw,58px); }
  .story-description { margin-top: 15px; font-size: 12px; }
  .story-start { margin-top: 18px; }
}
@media(prefers-reduced-motion:reduce) { .story-canvas { transition: none; } }
@media(max-width:760px) and (max-height:720px) {
  .story-captions { top: 52px; }
  .story-topline { top: 20px; }
  .story-kicker { margin-bottom: 12px; }
  .experience-page .story-caption h1,.experience-page .story-caption h2,.experience-page .story-caption[data-chapter="2"] h2 { font-size: clamp(30px,7.8vw,40px); }
  .story-description { margin-top: 12px; font-size: 10px; }
  .story-start { margin-top: 12px; padding-block: 9px; }
  .story-canvas { top: 38%; height: 50%; }
}
