/* A continuous pullback from the stars into Hop on the same laptop. */
html { scroll-padding-top: 0; }
.workspace-journey { position: relative; z-index: 2; height: 900svh; background: #08090b; isolation: isolate; }
.workspace-stage { position: sticky; top: 0; height: 100svh; overflow: clip; background: radial-gradient(ellipse at 50% 35%, #121316 0%, #090a0c 65%, #050506 100%); isolation: isolate; --crawl-opacity:0; --crawl-progress:0; --hero-opacity:0; --hero-scale:1; --shapes-opacity:0; --shapes-scale:1; --computer-opacity:0; --computer-scale:1.34; --hero-controls-opacity:0; --hero-screen-opacity:1; --backdrop-progress:0; --chrome-opacity:0; }
.journey-anchor { position: absolute; width: 1px; height: 1px; pointer-events: none; }
.journey-app-anchor { top: calc((100% - 100svh) * .74); }
.journey-anchor:not(.journey-app-anchor) { top: calc((100% - 100svh) * .98); }
.workspace-stage > .cosmic-prologue { position: absolute; inset: 0; z-index: 4; opacity: var(--crawl-opacity); pointer-events: none; }
.journey-computer { position: absolute; inset: -14px; z-index: 2; opacity: var(--computer-opacity, 0); transform: scale(var(--computer-scale, 1)); transform-origin: 50% 50%; will-change: transform, opacity; }
.workspace-stage .laptop-scene { height: 100%; transform: none; }
.workspace-stage .laptop-frame { height: 100%; box-shadow: inset 0 0 0 1px #37383a, 0 24px 65px #00000080; }
.workspace-stage .laptop-screen { height: 100%; min-height: 0; background: #050609; }
.workspace-stage .laptop-screen::before { display: none; }
.workspace-stage .laptop-notch { opacity: var(--chrome-opacity, 0); }
/* The app belongs to the screen; the hardware remains outside it. */
.platform-stage { position: absolute; inset: 0; padding-top: 0; z-index: 5; background: #e8e8e8; opacity: var(--platform-opacity, 0); will-change: opacity; }
.platform-stage[inert] { pointer-events: none; }
.platform-stage .hop-platform { border: 0; border-radius: 0; box-shadow: none; }
.journey-caption { position: absolute; left: 9%; right: 9%; bottom: 24px; z-index: 6; display: flex; justify-content: space-between; color: #6b5c49; font: 10px/1.3 'DM Sans', sans-serif; letter-spacing: 1px; pointer-events: none; opacity: var(--caption-opacity, 0); }
.journey-caption > span:last-child { letter-spacing: 0; }
.journey-caption b { margin-left: 8px; font-size: 12px; }
#main > .stack-card.mac-section { position: relative; top: auto; border-radius: 0; margin: 0; z-index: 3; box-shadow: none; }
@media (max-width: 800px) {
  .journey-caption { left: 7%; right: 7%; bottom: 20px; font-size: 8px; }
}
@media (max-width: 700px) {
  .platform-stage { padding-top: 0; }
}
@media (max-width: 480px) {
  .journey-caption > span:first-child { display: none; }
  .journey-caption { justify-content: center; bottom: 18px; }
}
/* Reduced motion uses a stationary laptop and a simple screen crossfade. */
.workspace-journey.is-reduced { height: 460svh; }
.workspace-journey.is-reduced .laptop-scene, .workspace-journey.is-reduced .platform-stage { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .workspace-journey { height: 460svh; }
}

/* One persistent website surface acquires chrome, then docks into the product. */
.website-window { position: absolute; z-index: 6; left: var(--website-x, 0px); top: var(--website-y, 0px); width: var(--website-width, 100%); height: var(--website-height, 100%); overflow: hidden; container-type: inline-size; background: #050609; border-radius: var(--website-radius, 0px); opacity: var(--website-opacity, 1); box-shadow: 0 0 0 1px rgb(20 20 20 / var(--website-outline, 0)), 0 12px 36px rgb(0 0 0 / var(--website-shadow, 0)); }
.platform-stage .hop-preview { background: #050609; }
.platform-stage .hop-navigation, .platform-stage .hop-terminal { opacity: var(--panels-opacity, 0); transform: translateX(calc(-14px * (1 - var(--panels-opacity, 0)))); }
.workspace-journey.is-reduced .hop-navigation, .workspace-journey.is-reduced .hop-terminal { transform: none; }

/* No navigation or prose is exposed before the starfield journey starts. */
.site-header--cosmic { position:absolute; inset:0 0 auto; visibility:hidden; pointer-events:none; }
.workspace-stage > .cosmic-stars { inset:-340px 0; transform:translateY(var(--star-travel, 0px)); will-change:transform; }
.workspace-stage .hero-copy { transform:translateY(var(--title-rise, 0px)) perspective(900px) translateZ(var(--title-depth, 620px)); }
.workspace-stage .hero--cosmic .shape-drift { transform:none; will-change:transform; }
.workspace-stage .hero-actions[aria-hidden="true"],
.workspace-stage .cosmic-footer[aria-hidden="true"] { visibility:hidden; pointer-events:none; }
.workspace-stage.is-docked .hero-actions,
.workspace-stage.is-docked .cosmic-footer { visibility:hidden; pointer-events:none; }

.workspace-journey.is-reduced .hero-copy,
.workspace-journey.is-reduced .shape-drift,
.workspace-journey.is-reduced .workspace-stage > .cosmic-stars { transform:none; }

/* Present Hop as a standalone application window, without device hardware. */
.workspace-stage .laptop-frame { padding:0; border:1px solid #343538; border-radius:14px; background:#202020; overflow:hidden; box-shadow:0 24px 65px #00000080; }
.workspace-stage .laptop-screen { border-radius:13px; }
.site-footer .wordmark img,.site-header .wordmark img { width:44px; height:44px; object-fit:contain; }

/* Reveal the navigation first; the terminal joins in the next scroll beat. */
.platform-stage .hop-navigation { opacity:var(--sidebar-opacity, 0); transform:translateX(calc(-14px * (1 - var(--sidebar-opacity, 0)))); }
.platform-stage .hop-terminal { transform:translateX(calc(-36px * (1 - var(--panels-opacity, 0)))); }
