/* A single scene per section; light, glass and the space between. */
.story-ribbon { display: none; }
.story-panel,.story-panel.has-spatial { background: #08090a; overflow: clip; }
.helix-stage { inset: 0; opacity: 1; mix-blend-mode: normal; background: url('assets/helix.webp') center/cover no-repeat; }
.helix-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.story-panel.has-spatial .helix-canvas { opacity: 1; }
.helix-stage .helix-video { filter: none; object-fit: cover; object-position: center; -webkit-mask-image: none; mask-image: none; }
.story-panel.has-cinema .helix-stage,.story-panel.has-spatial .helix-stage { background: none; }
.story-panel.has-cinema .helix-video { opacity: 1; transition: none; }
.story-panel.has-cinema .helix-hint { opacity: .8; right: 15%; top: 16%; bottom: auto; }
.story-panel:before { background: linear-gradient(90deg,#08090a 0%,rgba(8,9,10,.96) 24%,rgba(8,9,10,.72) 40%,transparent 66%); }
.story-panel.has-spatial .helix-hint { opacity: .8; right: 15%; top: 16%; bottom: auto; }
.story-number { right: auto; left: 4%; bottom: 26px; }
.story-panel .helix-hint { font-size: 9px; }

.explore-art { min-height: 465px; background: #f0f1ee; }
.explore-art.has-spatial .molecule-canvas { opacity: 1; z-index: -1; }
.explore-art.has-spatial .explore-motion-layer,.explore-art.has-spatial .explore-light-layer,.explore-art.has-spatial .explore-trace { display: none; }
.explore-art.has-spatial .explore-interaction-layer { pointer-events: auto; }
.explore-art:after { z-index: 0; background: linear-gradient(90deg,transparent 82%,#f2f2f0 100%); }
.explore-art button[data-collection-pick] { position: absolute; bottom: 62px; width: 48px; height: 48px; font-size: 13px; backdrop-filter: blur(12px); border-color: #8b9392; }
.explore-art [data-collection-pick="one"] { left: calc(18% - 24px); }
.explore-art [data-collection-pick="two"] { left: calc(50% - 24px); }
.explore-art [data-collection-pick="three"] { left: calc(82% - 24px); }
.explore-art button[data-collection-pick] .collection-name { font-size: 8px; letter-spacing: .08em; }
.explore-art .explore-hint { bottom: 7px; left: 22px; color: #47514f; font-size: 8px; }
.scene-caption { position: absolute; top: 22px; left: 24px; z-index: 1; color: #616b68; font: 500 8px/1.4 var(--body); letter-spacing: .17em; pointer-events: none; }
.scene-caption:after { content: ''; display: block; margin-top: 10px; width: 30px; height: 1px; background: #9da8a4; }
.art-motion-toggle,.explore-art button.art-motion-toggle { position: absolute; right: 18px; bottom: 10px; z-index: 3; min-width: 100px; min-height: 44px; width: auto; height: auto; border: 0; border-radius: 0; background: transparent; color: #515e59; font: 500 8px var(--body); letter-spacing: .02em; display: inline-flex; gap: 8px; align-items: center; justify-content: flex-end; }
.art-motion-toggle span { background: transparent; width: auto; height: auto; border: 0; border-radius: 0; font: inherit; display: inline; }
.story-motion-toggle { color: #bbc2c0; right: 4%; bottom: 13px; }
.explore-art button.art-motion-toggle { top: 7px; bottom: auto; }
.story-panel[data-spatial-state="fallback"] .art-motion-toggle,.explore-art[data-spatial-state="fallback"] button.art-motion-toggle { display: none; }
.story-panel[data-spatial-state="fallback"] .helix-stage { cursor: default; }
.explore-art[data-camera-state="travelling"] .scene-caption:after { transform: scaleX(1.7); transform-origin: left; }

/* The observation lens changes scale in the existing space, keeping a way home. */
.explore-art .observation-toggle { position: absolute; z-index: 3; top: 51px; left: 24px; right: auto; bottom: auto; display: inline-flex; align-items: center; gap: 13px; min-height: 44px; width: auto; height: auto; padding: 0; border: 0; border-radius: 0; color: #344542; background: transparent; font: 500 10px var(--body); backdrop-filter: none; }
.explore-art .observation-toggle span { display: inline; background: none; border: 0; width: auto; height: auto; font: inherit; }
.explore-art .observation-toggle[aria-pressed="true"],.explore-art .observation-toggle:hover { color: #243e43; background: transparent; }
.observation-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1; }
.explore-art .observation-toggle[hidden],.observation-controls[hidden] { display: none; }
.observation-toggle:focus-visible,.observation-controls input:focus-visible { outline: 2px solid #304d73; outline-offset: 5px; }
.observation-controls { position: absolute; z-index: 3; right: 22px; top: 70px; width: 160px; padding: 12px 14px; background: rgba(247,248,245,.85); border: 1px solid rgba(111,127,121,.18); color: #475550; }
.observation-controls label { display: block; font-size: 9px; font-weight: 600; margin-bottom: 5px; }
.observation-controls input { display: block; width: 100%; height: 44px; margin: 0; accent-color: #455d65; cursor: ew-resize; }
.observation-controls>div { display: flex; justify-content: space-between; font: 400 8px var(--body); }
.explore-art .observation-controls span,.explore-art .observation-frame>span { display: inline; width: auto; height: auto; padding: 0; border: 0; border-radius: 0; background: none; font: inherit; }
.explore-art .observation-frame>span { font: 500 7px var(--body); letter-spacing: .14em; }
.observation-frame { position: absolute; inset: 100px 24px 115px; z-index: 1; pointer-events: none; opacity: 0; }
.observation-frame>span { position: absolute; bottom: 8px; right: 12px; color: #677670; font: 500 7px var(--body); letter-spacing: .14em; }
.observation-frame i { position: absolute; width: 14px; height: 14px; border-color: rgba(84,107,98,.3); border-style: solid; border-width: 0; }
.observation-frame i:nth-of-type(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.observation-frame i:nth-of-type(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.observation-frame i:nth-of-type(3) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.observation-frame i:nth-of-type(4) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.explore-art[data-observation-mode="detail"] .observation-frame { opacity: 1; }
.explore-art[data-motion-paused="true"] .scene-caption:after,.explore-art[data-motion-paused="true"] .observation-frame { transition: none; }
.explore-art[data-spatial-state="fallback"] .observation-toggle,.explore-art[data-spatial-state="fallback"] .observation-controls,.explore-art[data-spatial-state="fallback"] .observation-frame { display: none; }

.difference-art { height: 510px; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 50% 45%,#e4e8e5, #f5f6f3 55%,#fff 90%); }
.difference-orbit { display: block; pointer-events: none; width: 90%; height: 145px; border: 1px solid rgba(124,142,140,.26); z-index: 0; }
.difference-orbit.orbit-one { transform: rotate(-24deg); }
.difference-orbit.orbit-two { height: 230px; width: 85%; transform: rotate(33deg); border-color: rgba(124,142,140,.15); }
.feature-vial { height: 365px; animation: none; margin-top: -30px; }
.vial-diagram { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; stroke-width: .65; color: #6e8586; }
.vial-diagram path { fill: none; stroke: currentColor; opacity: .22; transition: opacity .7s; }
.vial-diagram circle { fill: #f5f6f3; stroke: currentColor; stroke-width: 1; }
.difference-art[data-detail="form"] [data-line="form"],.difference-art[data-detail="identity"] [data-line="identity"],.difference-art[data-detail="details"] [data-line="details"] { opacity: .9; }
.vial-detail { position: absolute; z-index: 3; background: transparent; color: #67716e; border: 0; min-height: 44px; padding: 8px 0; text-align: left; font-size: 10px; letter-spacing: .1em; display: flex; align-items: center; gap: 8px; }
.vial-detail:before { content: ''; width: 4px; height: 4px; border: 1px solid currentColor; border-radius: 50%; }
.vial-detail[aria-pressed="true"] { color: #233e49; }
.vial-detail[aria-pressed="true"]:before { background: currentColor; }
.vial-detail[data-vial-detail="form"] { left: 8%; top: 19%; }
.vial-detail[data-vial-detail="identity"] { right: 5%; top: 47%; }
.vial-detail[data-vial-detail="details"] { left: 8%; top: 65%; }
.vial-readout { position: absolute; bottom: 22px; left: 8%; right: 8%; z-index: 2; border-top: 1px solid #d7ddda; padding-top: 16px; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; }
.vial-readout-index { grid-row: span 2; font: 400 25px/1 var(--display); color: #70807b; }
.vial-readout strong { font: 500 12px/1.4 var(--display); }
.vial-readout p { font-size: 11px; line-height: 1.6; color: #65716c; margin: 4px 0 0; }
.difference-art .art-caption { display: none; }

.newsletter { background: #080909 url('assets/newsletter-optics.webp') center/cover no-repeat; min-height: 460px; isolation: isolate; }
.newsletter:before { inset: 0; background: linear-gradient(90deg,rgba(0,0,0,.12),rgba(0,0,0,.42) 40%,rgba(0,0,0,.5) 60%,rgba(0,0,0,.14)); animation: none; }
.newsletter:after { content: none; }
.newsletter-inner { position: relative; z-index: 1; padding: 82px 0; }

@media (prefers-reduced-motion: no-preference) {
  .scene-caption:after { transition: transform 2.7s cubic-bezier(.65,0,.35,1); }
  .observation-frame { transition: opacity 1.2s; }
  .difference-orbit { transition: transform 1.4s cubic-bezier(.22,1,.36,1); }
  .difference-art[data-detail="identity"] .orbit-one { transform: rotate(5deg); }
  .difference-art[data-detail="details"] .orbit-one { transform: rotate(-42deg); }
}
@media (prefers-reduced-motion: reduce) {
  .art-motion-toggle,.explore-art button.art-motion-toggle { display: none; }
}
@media (max-width:850px) {
  .explore-art { min-height: 440px; }
  .vial-detail { font-size: 8px; gap: 4px; letter-spacing: .055em; }
  .vial-detail[data-vial-detail="form"],.vial-detail[data-vial-detail="details"] { left: 4%; }
  .vial-detail[data-vial-detail="identity"] { right: 3%; }
  .feature-vial { height: 320px; }
}
@media (max-width:600px) {
  .story-panel,.story-inner { min-height: 560px; }
  .helix-stage { inset: 22% -10% -10% 0; }
  .story-panel:before { background: linear-gradient(180deg,#08090a 0%,rgba(8,9,10,.9) 26%,rgba(8,9,10,.14) 70%),linear-gradient(90deg,rgba(8,9,10,.75),transparent); }
  .story-inner { justify-content: flex-start; padding-top: 55px; }
  .story-panel h2 { font-size: 39px; }
  .story-panel.has-spatial .helix-hint { top: 58%; bottom: auto; right: 21%; }
  .story-panel.has-cinema .helix-hint { top: 58%; bottom: auto; right: 21%; }
  .helix-stage .helix-video { object-position: 62% center; }
  .explore-art { min-height: 390px; }
  .explore-art:after { background: linear-gradient(180deg,transparent 88%,#f2f2f0); }
  .scene-caption { left: 18px; top: 18px; font-size: 7px; }
  .explore-art .observation-toggle { left: 18px; top: 44px; font-size: 9px; gap: 8px; }
  .observation-controls { top: 95px; right: 18px; width: 132px; padding: 9px 11px; }
  .observation-frame { inset: 90px 18px 114px; }
  .explore-art .explore-hint { left: 18px; font-size: 7px; }
  .explore-art button[data-collection-pick] { bottom: 59px; }
  .difference-art { height: 440px; }
  .feature-vial { height: 310px; margin-top: -33px; }
  .vial-readout { bottom: 18px; }
  .vial-detail { font-size: 8px; }
  .vial-readout p { font-size: 10px; }
  .newsletter { min-height: 420px; background-position: right center; }
  .newsletter:before { background: rgba(0,0,0,.5); }
  .newsletter-inner { padding: 68px 0; }
}
