:root {
  color-scheme: dark;
  --ink: #f5f4ef;
  --muted: #afb7c7;
  --space: #03060b;
  --side: clamp(27px, 7.35vw, 130px);
  --top: clamp(28px, 5.5vh, 64px);
  font-family: 'Sora', 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; min-width: 320px; }
body { overflow: hidden; background: var(--space); color: var(--ink); }
button { appearance: none; -webkit-appearance: none; font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: 1px solid #faf7e9; outline-offset: 7px; }
.screenreader-only { position: absolute; overflow: hidden; width: 1px; height: 1px; padding: 0; margin: -1px; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.experience { position: relative; isolation: isolate; overflow: hidden; height: 100svh; height: 100dvh; width: 100%; background: var(--space); --dx: 0px; --dy: 0px; }
.space, .space-picture, .space-color, .space-vignette, .starfield { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.space { z-index: 0; overflow: hidden; background: #03060b; }
.space-picture { display: block; transform: translate3d(var(--dx),var(--dy),0) scale(1.065); transform-origin: 69% 51%; will-change: transform; transition: transform 1900ms cubic-bezier(.16,.7,.12,1), filter 1500ms ease; filter: brightness(.78) saturate(.88); }
.galaxy { width: 100%; height: 100%; object-fit: cover; object-position: center; user-select: none; -webkit-user-drag: none; }
.space-color { background: linear-gradient(90deg, rgba(2,4,9,.97) 0%,rgba(2,4,9,.94) 13%,rgba(2,4,9,.73) 31%,rgba(2,4,9,.25) 52%,rgba(2,4,9,.03) 78%),linear-gradient(180deg,rgba(2,4,9,.36) 0%,transparent 25%,transparent 68%,rgba(2,4,9,.65) 100%); transition: opacity 1600ms ease; }
.space-vignette { background: radial-gradient(ellipse at 66% 48%, transparent 23%, rgba(1,2,6,.35) 80%,rgba(1,2,6,.62) 100%); }
.starfield { opacity: .77; transition: opacity 900ms ease; }
.experience[data-scene='1'] .space-picture { transform: translate3d(var(--dx), var(--dy),0) scale(1.56) rotate(-3.5deg); filter: brightness(.59) saturate(.72); }
.experience[data-scene='1'] .space-color { opacity: .9; }
.experience[data-scene='1'] .space-vignette { background: radial-gradient(ellipse at 69% 48%, rgba(1,2,8,.06) 0%,rgba(1,2,8,.56) 64%,rgba(1,2,8,.88) 100%); }
.header, .footer { position: absolute; left: 0; width: 100%; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding-inline: var(--side); }
.header { top: 0; padding-top: var(--top); }
.identity { border: 0; background: transparent; display: inline-flex; align-items: center; gap: 12px; padding: 0; font-size: 19px; line-height: 1; font-weight: 500; letter-spacing: -.075em; text-decoration: none; }
.brand-icon { width: 31px; height: 31px; flex: 0 0 auto; transition: transform 600ms cubic-bezier(.17,.67,.2,1); }
.identity:hover .brand-icon { transform: rotate(-16deg); }
.header-trail { display: inline-flex; align-items: center; gap: 20px; font-size: 9px; letter-spacing: .205em; color: #c3c6d1; font-weight: 500; }
.header-line { display: block; width: 32px; height: 1px; background: rgba(224,227,236,.57); }
.main { height: 100%; position: relative; z-index: 2; }
.scene { position: absolute; inset: 0; display: flex; align-items: center; padding: 95px var(--side) 100px; transition: opacity 850ms ease, visibility 850ms ease; }
.scene-inner { width: min(100%,820px); transform: translateY(4vh); transition: transform 1200ms cubic-bezier(.16,.7,.12,1); }
.small-label { display: flex; align-items: center; gap: 16px; margin-bottom: 29px; color: #b4b9c6; letter-spacing: .22em; font-size: 9px; font-weight: 500; line-height: 1.5; }
.label-bar { width: 27px; height: 1px; display: inline-block; background: #b6bbcd; }
h1,h2,p { margin: 0; }
h1,h2 { font-weight: 300; letter-spacing: -.085em; line-height: 1.10; }
h1 { font-size: clamp(59px,6.7vw,113px); max-width: 920px; }
h2 { font-size: clamp(60px,6.1vw,103px); max-width: 915px; }
h1 em,h2 em { font-family: 'Instrument Serif', 'Iowan Old Style', 'Times New Roman', serif; font-size: 1.12em; letter-spacing: -.045em; font-weight: 400; font-style: italic; color: #f0e9dc; }
.attribution { margin-top: 31px; color: #9da8ba; font-size: 12px; font-weight: 300; line-height: 1.6; }
.attribution span { color: #f0f0ed; }
.action { display: inline-flex; gap: 23px; align-items: center; background: none; padding: 0; margin-top: 48px; border: none; font-size: 12px; font-weight: 500; letter-spacing: .06em; }
.action-circle { border: 1px solid rgba(224,232,243,.44); width: 58px; height: 58px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; transition: background 350ms ease,border-color 350ms ease,color 350ms ease,transform 400ms cubic-bezier(.2,.8,.2,1); }
.action-circle svg { width: 23px; height: 23px; }
.action:hover .action-circle { background: #f5f2eb; border-color: #f5f2eb; color: #11151a; transform: translateX(5px); }
.action:active .action-circle { transform: scale(.93); }
.scene-home { opacity: 1; visibility: visible; }
.scene-discovery { opacity: 0; visibility: hidden; }
.scene-discovery .scene-inner { transform: translateY(9vh); }
.discovery-copy { color: #bdc3d1; font-size: clamp(12px,1.11vw,15px); font-weight: 300; line-height: 2; max-width: 475px; margin-top: 28px; }
.back-action { margin-top: 32px; gap: 17px; }
.back-action:hover .action-circle { transform: translateX(-5px); }
.experience[data-scene='1'] .scene-home { opacity: 0; visibility: hidden; }
.experience[data-scene='1'] .scene-home .scene-inner { transform: translateY(-4vh); }
.experience[data-scene='1'] .scene-discovery { opacity: 1; visibility: visible; }
.experience[data-scene='1'] .scene-discovery .scene-inner { transform: translateY(4vh); }
.footer { bottom: 0; padding-bottom: max(31px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr auto 1fr; }
.footer-meta { display: inline-flex; align-items: center; gap: 12px; color: rgba(197,206,222,.78); font-size: 8.5px; font-weight: 500; letter-spacing: .16em; }
.small-star { display: inline-block; width: 4px; height: 4px; background: #c6d1eb; border-radius: 50%; box-shadow: 0 0 7px #789ec9; }
.steps { display: flex; align-items: center; gap: 8px; }
.step { height: 22px; width: 22px; display: grid; place-items: center; border: none; background: transparent; padding: 0; }
.step span { display: block; width: 5px; height: 3px; border-radius: 4px; background: rgba(218,225,238,.37); transition: background 500ms ease,width 500ms ease; }
.step.active span { width: 25px; background: #f0f0e9; }
.step.active { width: 30px; }
.footer-cue { display: inline-flex; justify-self: end; align-items: center; gap: 17px; color: rgba(197,206,222,.80); font-size: 8.5px; font-weight: 500; letter-spacing: .15em; }
.footer-cue svg { width: 16px; height: 16px; }
.reveal { opacity: 1; filter: none; }
@media(max-width: 1100px) and (min-width: 701px) {
  .space-color { background: linear-gradient(90deg,rgba(2,4,9,.95) 0%,rgba(2,4,9,.86) 20%,rgba(2,4,9,.53) 50%,rgba(2,4,9,.03) 83%),linear-gradient(180deg,rgba(2,4,9,.3),transparent 35%,rgba(2,4,9,.5) 100%); }
  h1 { font-size: clamp(65px,7.3vw,95px); }
}
@media (max-width:700px) {
  :root { --side: clamp(26px,7.1vw,35px); --top: max(30px,env(safe-area-inset-top)); }
  .space-picture { transform-origin: 51% 28%; transform: translate3d(var(--dx),var(--dy),0) scale(1.035); filter: brightness(.87) saturate(.87); }
  .galaxy { object-fit: cover; object-position: center top; }
  .space-color { background: linear-gradient(180deg,rgba(2,4,9,.48) 0%,rgba(2,4,9,.08) 17%,rgba(2,4,9,.18) 32%,rgba(2,4,9,.63) 51%,rgba(2,4,9,.95) 65%,rgba(2,4,9,.99) 100%); }
  .space-vignette { background: radial-gradient(ellipse at 51% 30%,transparent 11%,rgba(1,3,8,.23) 74%,rgba(1,3,8,.64) 100%); }
  .experience[data-scene='1'] .space-picture { transform: translate3d(var(--dx),var(--dy),0) scale(1.72) rotate(-2deg); }
  .experience[data-scene='1'] .space-color { background: linear-gradient(180deg,rgba(2,4,9,.53) 0%,rgba(2,4,9,.16) 18%,rgba(2,4,9,.60) 42%,rgba(2,4,9,.94) 64%,#03060b 100%); }
  .header-trail { display: none; }
  .identity { font-size: 19px; gap: 10px; }
  .brand-icon { width: 29px; height: 29px; }
  .scene { align-items: flex-end; padding: 95px var(--side) max(121px,calc(env(safe-area-inset-bottom) + 112px)); }
  .scene-inner, .scene-discovery .scene-inner, .experience[data-scene='1'] .scene-discovery .scene-inner { transform: none; }
  .small-label { gap: 11px; margin-bottom: 15px; font-size: 8px; letter-spacing: .17em; }
  .label-bar { width: 21px; }
  h1 { font-size: clamp(43px,11.55vw,64px); line-height: 1.13; letter-spacing: -.083em; }
  h2 { font-size: clamp(43px,10.9vw,63px); line-height: 1.16; letter-spacing: -.083em; }
  h1 em,h2 em { font-size: 1.09em; }
  .attribution { font-size: 11px; margin-top: 22px; }
  .action { margin-top: 26px; font-size: 12px; gap: 18px; }
  .action-circle { width: 52px; height: 52px; }
  .discovery-copy { font-size: 12px; line-height: 1.85; margin-top: 19px; max-width: 360px; }
  .back-action { margin-top: 20px; }
  .footer { grid-template-columns: 1fr auto; padding-bottom: max(27px,env(safe-area-inset-bottom)); }
  .footer-meta { font-size: 8px; }
  .footer-cue { display: none; }
  .steps { justify-self: end; }
}
@media (max-width: 380px) {
  h1 { font-size: 11.55vw; }
  h2 { font-size: 10.5vw; }
}
@media (max-height: 680px) and (min-width: 701px) {
  .scene { padding-top: 75px; padding-bottom: 85px; }
  .scene-inner { transform: translateY(3vh); }
  h1 { font-size: clamp(54px,5.7vw,79px); }
  h2 { font-size: clamp(54px,5.5vw,75px); }
  .small-label { margin-bottom: 15px; }
  .attribution { margin-top: 16px; }
  .action { margin-top: 23px; }
}
@media (max-height: 710px) and (max-width: 700px) {
  .scene { padding-bottom: 91px; }
  h1 { font-size: clamp(40px,10.8vw,53px); }
  h2 { font-size: clamp(39px,10.3vw,53px); }
  .small-label { margin-bottom: 10px; }
  .attribution { margin-top: 12px; }
  .action { margin-top: 13px; }
  .action-circle { width: 47px; height: 47px; }
  .discovery-copy { margin-top: 11px; font-size: 11px; line-height: 1.7; }
  .back-action { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .space-picture { will-change: auto; }
}

/* v2.1: key layers and essential content are visible even without JavaScript. */
.scene-home { z-index: 1; }
.scene-discovery { z-index: 2; }
.header, .main, .footer { isolation: isolate; }
