:root {
  --flight-white: #f4f2ec;
  --flight-muted: rgba(244, 242, 236, .7);
  --flight-line: rgba(244, 242, 236, .26);
  --flight-orange: #ff7955;
}

html { background: #090a0c; }
body.home-experience { background: #090a0c; color: var(--flight-white); }
.home-experience h1, .home-experience h2, .home-experience h3 { text-wrap: initial; }
.home-experience a:focus-visible, .home-experience button:focus-visible { outline-color: var(--flight-white); }
.home-experience ::selection { background: var(--flight-orange); color: #090a0c; }

.experience-world {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: #0a0d14 url('./assets/rocket-sequence/web/01-rocket-before-launch.jpg') center / cover no-repeat;
}
.experience-world .scene-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.experience-world .scene-canvas[hidden] { display: none; }
.fallback-scene { position:absolute; inset:0; overflow:hidden; opacity:0; transition:opacity .4s ease; }
.fallback-scene span { position:absolute; inset:0; display:block; background-position:center; background-size:cover; background-repeat:no-repeat; }
.fallback-scene-current { background-image:url('./assets/rocket-sequence/web/01-rocket-before-launch.jpg'); }
.fallback-scene-next { opacity:0; transition:opacity .72s cubic-bezier(.22,.68,0,1); }
.scene-fallback .fallback-scene { opacity:1; }
.scene-fallback .world-shade { background:linear-gradient(90deg,rgba(3,7,13,.64),rgba(3,7,13,.25) 48%,rgba(3,7,13,.06)),linear-gradient(0deg,rgba(2,4,8,.65),transparent 40%,rgba(2,4,8,.25)); }
.world-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 7, 13, .69) 0%, rgba(4, 7, 13, .42) 36%, rgba(3, 7, 13, .04) 75%),
    linear-gradient(0deg, rgba(2, 4, 8, .57), transparent 36%, rgba(2, 4, 8, .2));
}

.scene-loading {
  position: fixed;
  z-index: 150;
  left: 0;
  top: 0;
  inset: 0;
  width: auto;
  padding: 0;
  border: 0;
  box-shadow: none;
  transform: none;
  font-size: initial;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  background: #090a0c;
  color: var(--flight-white);
  transition: opacity .42s ease, visibility .42s ease;
}
.scene-loading.is-ready { opacity: 0; visibility: hidden; pointer-events: none; transform: none; }
.skip-intro .scene-loading { display:none; }
.launch-word { display:flex; gap:.02em; color:var(--flight-white); font-size:clamp(54px,9vw,116px); font-weight:700; line-height:.8; letter-spacing:-.1em; }
.launch-word span { opacity:0; transform:translateY(12px); animation:launch-letter .5s cubic-bezier(.22,.68,0,1) forwards; }
.launch-word span:nth-child(2){animation-delay:.07s}.launch-word span:nth-child(3){animation-delay:.14s}.launch-word span:nth-child(4){animation-delay:.21s}.launch-word span:nth-child(5){animation-delay:.28s}
.scene-loading strong { opacity:0; font-size:11px; font-weight:400; letter-spacing:.36em; animation:launch-fade .45s .46s ease forwards; }
.scene-loading small { opacity:0; font-size:9px; color:var(--flight-muted); letter-spacing:.22em; animation:launch-fade .45s .52s ease forwards; }
.scene-loading i { display:block; width:110px; height:1px; margin-top:13px; background:var(--flight-orange); transform:scaleX(0); transform-origin:left; animation:launch-line .42s .54s cubic-bezier(.22,.68,0,1) forwards; }
@keyframes launch-letter { to{opacity:1;transform:none} }
@keyframes launch-fade { to{opacity:1} }
@keyframes launch-line { to{transform:scaleX(1)} }

.home-experience .site-header {
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 76px;
  color: var(--flight-white);
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
}
.home-experience .site-header.is-scrolled { background: rgba(7, 10, 16, .8); border-color: var(--flight-line); backdrop-filter: blur(14px); }
.experience-header .brand { font-size: 13px; letter-spacing: -.02em; gap: 12px; white-space: nowrap; }
.experience-header .brand-symbol { position: relative; display: block; width: 34px; height: 34px; border: 0; transform: none; font-size: 0; }
.experience-header .brand-symbol::before { content: ''; position: absolute; inset: 0; background: var(--flight-white); -webkit-mask: url('./assets/verto-mark.svg') center / contain no-repeat; mask: url('./assets/verto-mark.svg') center / contain no-repeat; }
.experience-header .brand-symbol::after { content: ''; position: absolute; right: 0; bottom: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--flight-orange); }
.experience-header .brand i { color: var(--flight-white); font-weight: 400; font-style: normal; }
.experience-header .site-nav { gap: clamp(16px, 2.1vw, 34px); }
.experience-header .site-nav > a { color: var(--flight-white); font-size: 11px; font-weight: 400; opacity: .86; }
.experience-header .site-nav > a:hover { opacity: 1; }
.experience-header .site-nav > .nav-mobile-cta { display: none; }
.experience-header .site-nav > a:not(.nav-mobile-cta):after { background: var(--flight-white); }
.experience-header .header-cta { margin-left: clamp(18px, 3vw, 46px); padding-left: 23px; border-left-color: var(--flight-line); font-size: 11px; font-weight: 400; white-space: nowrap; }
.experience-header .header-cta span { font-size: 16px; color: var(--flight-orange); }
.experience-header .menu-toggle { position: relative; z-index: 2; }
.experience-header .menu-toggle span { background: var(--flight-white); transition: transform .55s cubic-bezier(.19, 1, .22, 1), background .55s ease; }
.experience-header .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.experience-header .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.experience-main { position: relative; z-index: 1; }
.flight-chapter { position: relative; min-height: 120svh; }
.chapter-inner {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding-top: 110px;
  padding-bottom: 100px;
}
.chapter-marker {
  position: absolute;
  left: 0;
  top: max(108px, 12svh);
  color: var(--flight-muted);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .22em;
}
.chapter-kicker, .project-type, .chapter-aside, .chapter-coordinate {
  color: var(--flight-muted);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .17em;
}
.chapter-kicker { margin-bottom: 15px; }
.chapter-description { max-width: 480px; color: var(--flight-muted); font-size: clamp(15px, 1.25vw, 18px); line-height: 1.45; }
.chapter-copy-left { max-width: 690px; }
.chapter-copy h2, .chapter-copy-left h2 {
  margin: 0 0 29px;
  max-width: 780px;
  font-size: clamp(50px, 6.8vw, 105px);
  line-height: .94;
  letter-spacing: -.075em;
  font-weight: 700;
}
.chapter-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; margin-top: 32px; }
.exp-action { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 46px; font-size: 13px; font-weight: 400; line-height: 1.2; transition: background .2s ease, color .2s ease, transform .2s ease; }
.exp-action span, .inline-route span { font-size: 18px; line-height: 1; }
.exp-action:hover, .inline-route:hover { transform: translateY(-2px); }
.exp-action-primary { padding: 11px 17px 11px 20px; border: 1px solid rgba(255, 255, 255, .8); border-radius: 100px; }
.exp-action-primary:hover { background: var(--flight-white); color: #0a0d14; }
.exp-action-text { border-bottom: 1px solid var(--flight-line); }
.inline-route { display: inline-flex; align-items: center; gap: 35px; margin-top: 29px; padding-bottom: 7px; border-bottom: 1px solid var(--flight-line); font-size: 13px; transition: transform .2s ease; }
.chapter-aside { position: absolute; right: 0; bottom: 13svh; }
.chapter-aside span, .chapter-coordinate span { color: var(--flight-orange); padding: 0 5px; }

.chapter-hero { min-height: 135svh; }
.chapter-hero .chapter-inner { align-items: stretch; }
.hero-wordmark {
  position: absolute;
  left: -.012em;
  top: 18svh;
  color: #fff;
  font-size: clamp(96px, 14.1vw, 214px);
  font-weight: 700;
  line-height: .8;
  letter-spacing: -.11em;
  white-space: nowrap;
  text-shadow: 0 3px 30px rgba(0, 0, 0, .1);
}
.hero-wordmark span { color: var(--flight-orange); }
.hero-intro { position: absolute; left: 0; bottom: 12svh; width: min(590px, 53vw); }
.hero-intro h1 { max-width: 590px; font-size: clamp(33px, 3.55vw, 55px); line-height: 1.03; letter-spacing: -.063em; }
.hero-intro .chapter-description { max-width: 470px; margin-top: 22px; }
.chapter-coordinate { position: absolute; right: 0; bottom: 13svh; white-space: nowrap; }

.chapter-launch .chapter-copy { max-width: 720px; }
.chapter-launch .chapter-description { max-width: 430px; }
.chapter-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .74fr); gap: clamp(60px, 10vw, 165px); }
.chapter-split .chapter-copy { max-width: 600px; }
.chapter-split .chapter-copy h2 { font-size: clamp(55px, 6vw, 91px); }
.route-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--flight-line); }
.route-list li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: baseline; min-height: 72px; padding: 21px 0; border-bottom: 1px solid var(--flight-line); }
.route-list li > span { color: var(--flight-orange); font-size: 10px; letter-spacing: .1em; }
.route-list li a, .route-list li strong { color: var(--flight-white); font-size: clamp(19px, 2vw, 28px); font-weight: 400; line-height: 1.08; letter-spacing: -.035em; }
.route-list li a { display: flex; justify-content: space-between; gap: 15px; width: 100%; }
.route-list li a:hover { color: var(--flight-orange); }
.route-list li b { font-size: 16px; font-weight: 400; }
.process-list li { min-height: 62px; padding: 14px 0; }
.process-list li strong { font-size: clamp(18px, 1.8vw, 25px); }

.chapter-work-intro .chapter-copy { max-width: 650px; }
.chapter-project { min-height: 122svh; }
.project-layout { display: grid; grid-template-columns: minmax(0, .77fr) minmax(0, 1.23fr); gap: clamp(42px, 6vw, 95px); }
.project-copy { min-width: 0; align-self: center; }
.project-copy .chapter-marker { position: static; margin-bottom: 25px; }
.project-copy h2 { margin-bottom: 18px; font-size: clamp(56px, 6.8vw, 108px); line-height: .82; letter-spacing: -.075em; overflow-wrap: anywhere; }
.project-type { margin-bottom: 24px; color: var(--flight-orange); }
.project-copy .chapter-description { max-width: 390px; }
.project-visual {
  position: relative;
  display: block;
  width: 100%;
  align-self: center;
  padding: 10px 10px 0;
  border: 1px solid var(--flight-line);
  background: rgba(7, 9, 14, .38);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
  transform: perspective(1400px) rotateY(-4deg);
  transition: transform .45s ease, border-color .25s ease;
}
.project-visual:hover { transform: perspective(1400px) rotateY(0deg) translateY(-5px); border-color: rgba(255, 255, 255, .7); }
.project-visual img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.project-visual span { display: block; padding: 12px 3px; color: var(--flight-muted); font-size: 9px; letter-spacing: .16em; }

.chapter-agent .chapter-copy { max-width: 630px; }
.chapter-agent .chapter-copy h2 { font-size: clamp(55px, 6.1vw, 92px); }
.signal-visual { position: relative; width: min(35vw, 500px); aspect-ratio: 1; justify-self: center; }
.signal-ring { position: absolute; inset: 0; display: block; border: 1px solid rgba(207, 255, 74, .22); border-radius: 50%; }
.signal-ring-two { inset: 17%; }
.signal-ring-three { inset: 34%; border-color: rgba(207, 255, 74, .5); }
.signal-ring-one:before, .signal-ring-two:after { content: ''; position: absolute; inset: 50% 0 auto; height: 1px; background: rgba(207, 255, 74, .14); }
.signal-ring-one:after { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: rgba(207, 255, 74, .14); }
.signal-core { position: absolute; left: calc(50% - 6px); top: calc(50% - 6px); width: 12px; height: 12px; border-radius: 50%; background: #cfff4a; box-shadow: 0 0 25px rgba(207, 255, 74, .65); }
.signal-caption { position: absolute; bottom: -32px; left: 0; width: 100%; color: rgba(207, 255, 74, .75); font-size: 9px; text-align: center; letter-spacing: .18em; }
.chapter-studio .chapter-copy { max-width: 760px; }
.chapter-contact .chapter-copy { max-width: 800px; }
.chapter-contact h2 { max-width: 770px; }

.scene-hud {
  position: fixed;
  z-index: 90;
  left: 15px;
  top: 50%;
  width: 1px;
  height: 126px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .26);
  pointer-events: none;
}
.scene-hud-track { display: block; width: 100%; height: 100%; }
.scene-hud-track span { display: block; height: 0; width: 100%; background: var(--flight-orange); transition: height .14s linear; }
.scroll-cue { position: fixed; z-index: 90; right: max(32px, calc((100vw - var(--shell)) / 2)); bottom: 24px; color: var(--flight-white); font-size: 9px; letter-spacing: .18em; pointer-events: none; }
.scroll-cue span { display: inline-block; margin-left: 9px; font-size: 18px; vertical-align: middle; }
.home-experience.near-end .scroll-cue { opacity: 0; }
.scene-fallback .scene-hud { display: none; }

.experience-footer { position: relative; z-index: 2; padding: 22px 0; border-top: 1px solid var(--flight-line); background: rgba(5, 8, 13, .96); }
.footer-inner { display: flex; align-items: center; gap: 30px; color: var(--flight-muted); font-size: 11px; }
.footer-brand { color: var(--flight-white); font-weight: 700; letter-spacing: -.02em; }
.footer-brand span { margin-left: 8px; color: var(--flight-orange); }
.footer-inner nav { display: flex; gap: 20px; margin-left: auto; }
.footer-inner nav a:hover { color: var(--flight-white); }
.page-leave::after { content:''; position:fixed; z-index:300; inset:0; pointer-events:none; background:#070a10; opacity:0; animation:page-leave .44s ease forwards; }
@keyframes page-leave { to{opacity:1} }

@media (max-width: 1000px) {
  .chapter-split { grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); gap: 5vw; }
  .chapter-split .chapter-copy h2 { font-size: clamp(48px, 6.8vw, 76px); }
  .project-copy h2 { font-size: clamp(54px, 7vw, 85px); }
  .chapter-coordinate { display: none; }
}

@media (max-width: 900px) {
  .home-experience .site-header { height: 68px; }
  .experience-header .site-nav {
    position: fixed;
    inset: 68px 0 auto;
    display: flex;
    min-height: calc(100svh - 68px);
    max-height: calc(100svh - 68px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: clamp(54px, 11svh, 110px) max(20px, 8vw) 12svh;
    background: rgba(7, 10, 16, .97);
    border-bottom: 0;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    backdrop-filter: blur(24px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-20px);
    transition: opacity .48s ease, transform .62s cubic-bezier(.19, 1, .22, 1), visibility .62s;
  }
  .experience-header .site-nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .experience-header .site-nav > a { border-color: var(--flight-line); font-size: clamp(25px, 6vw, 46px); line-height: 1; min-height: 70px; opacity: 0; transform: translateY(15px); transition: opacity .48s ease, transform .62s cubic-bezier(.19, 1, .22, 1), color .25s ease; }
  .experience-header .site-nav.is-open > a { opacity: 1; transform: translateY(0); }
  .experience-header .site-nav > a:nth-child(2) { transition-delay: .045s; }
  .experience-header .site-nav > a:nth-child(3) { transition-delay: .09s; }
  .experience-header .site-nav > a:nth-child(4) { transition-delay: .135s; }
  .experience-header .site-nav > a:nth-child(5) { transition-delay: .18s; }
  .experience-header .site-nav > a:nth-child(6) { transition-delay: .225s; }
  .experience-header .site-nav > .nav-mobile-cta { display: flex; color: var(--flight-orange) !important; font-size: 14px; }
  .experience-header .header-cta { display: none; }
  .experience-header .menu-toggle { display: block; }
  .home-experience .shell { width: min(calc(100% - 40px), var(--shell)); }
  .hero-intro { width: min(560px, 66vw); }
  .chapter-marker { top: 100px; }
}

@media (max-width: 700px) {
  .experience-world { background-image: url('./assets/rocket-sequence/web/01-rocket-before-launch-mobile.jpg'); }
  .fallback-scene-current { background-image:url('./assets/rocket-sequence/web/01-rocket-before-launch-mobile.jpg'); }
  .world-shade { background: linear-gradient(180deg, rgba(3, 7, 13, .48) 0%, rgba(3, 7, 13, .14) 36%, rgba(3, 7, 13, .58) 100%); }
  .home-experience .shell { width: min(calc(100% - 36px), var(--shell)); }
  .flight-chapter, .chapter-hero, .chapter-project { min-height: 100svh; }
  .chapter-inner { position: relative; top: auto; min-height: 100svh; padding-top: 120px; padding-bottom: 90px; }
  .chapter-marker { top: 94px; }
  .chapter-hero .chapter-inner { min-height: max(100svh, 640px); }
  .hero-wordmark { left: -.025em; top: 20svh; font-size: clamp(83px, 22.5vw, 145px); }
  .hero-intro { left: 0; bottom: 10svh; width: 100%; max-width: 550px; }
  .hero-intro h1 { max-width: 500px; font-size: clamp(29px, 7.4vw, 48px); }
  .hero-intro .chapter-description { max-width: 450px; margin-top: 17px; font-size: 15px; }
  .chapter-kicker { font-size: 9px; }
  .chapter-actions { gap: 13px 23px; margin-top: 25px; }
  .exp-action { font-size: 12px; min-height: 42px; }
  .chapter-copy-left h2, .chapter-copy h2, .chapter-split .chapter-copy h2 { font-size: clamp(48px, 11.8vw, 77px); overflow-wrap: anywhere; }
  .chapter-copy-left, .chapter-copy { align-self: center; }
  .chapter-split { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 42px; }
  .chapter-split .chapter-copy { align-self: stretch; }
  .route-list li { min-height: 57px; padding: 14px 0; }
  .route-list li a, .route-list li strong { font-size: clamp(17px, 4.8vw, 23px); }
  .process-list li { min-height: 48px; padding: 10px 0; }
  .chapter-aside { display: none; }
  .project-layout { display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 30px; }
  .project-copy { align-self: stretch; }
  .project-copy .chapter-marker { margin-bottom: 17px; }
  .project-copy h2 { font-size: clamp(52px, 13vw, 84px); }
  .project-type { margin-bottom: 16px; }
  .project-copy .chapter-description { font-size: 14px; }
  .project-visual { transform: none; padding: 6px 6px 0; }
  .project-visual:hover { transform: translateY(-3px); }
  .project-visual span { padding: 8px 2px; }
  .chapter-agent .chapter-copy h2 { font-size: clamp(48px, 11.5vw, 73px); }
  .signal-visual { width: min(44vw, 230px); margin: 15px auto 0; }
  .signal-caption { font-size: 7px; white-space: nowrap; }
  .scene-hud { display: none; }
  .scroll-cue { right: 18px; bottom: 13px; font-size: 7px; }
  .scroll-cue span { font-size: 15px; margin-left: 2px; }
  .footer-inner { flex-wrap: wrap; gap: 13px 20px; }
  .footer-inner nav { width: 100%; margin-left: 0; }
}

@media (max-width: 380px) {
  .home-experience .shell { width: calc(100% - 32px); }
  .hero-wordmark { font-size: 22vw; }
  .hero-intro h1 { font-size: 28px; }
  .hero-intro .chapter-description { font-size: 14px; }
  .chapter-copy-left h2, .chapter-copy h2, .chapter-split .chapter-copy h2 { font-size: 45px; }
  .chapter-actions { gap: 11px 16px; }
  .exp-action-primary { padding-inline: 14px; }
}

@media (max-height: 680px) and (max-width: 700px) {
  .chapter-hero .chapter-inner { min-height: 640px; }
  .hero-wordmark { top: 110px; }
  .hero-intro { bottom: 101px; }
  .hero-intro .chapter-description { margin-top: 12px; }
  .hero-intro .chapter-actions { margin-top: 16px; gap: 8px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .scene-loading, .exp-action, .inline-route, .project-visual, .experience-header .site-nav, .experience-header .site-nav > a, .experience-header .menu-toggle span, .fallback-scene, .fallback-scene-next { transition: none; }
  .launch-word span,.scene-loading strong,.scene-loading small,.scene-loading i { animation:none; opacity:1; transform:none; }
}
