/* The first viewport and the scroll distance share a pinned stage. */
.home-opening { overflow: hidden; overscroll-behavior: none; }
.home-opening body { overflow: hidden; touch-action: none; }
.home .motion-hero { min-height: 207svh; }
.home .hero-stage {
    position: sticky;
    top: 0;
    height: 100svh;
    min-height: 440px;
    display: grid;
    place-items: center;
    padding: 72px 20px 90px;
    text-align: center;
    color: #fafafa;
    pointer-events: none;
    z-index: 4;
}
html:not(.home-motion) .hero-stage { background: #101012; }
.home .travel-island {
    position: fixed;
    z-index: 3;
    left: 0;
    top: 0;
    pointer-events: none;
    overflow: hidden;
    max-width: none;
}
html.island-docked .home .travel-shell { fill: none; }
.hero-copy { width: min(100%, 1280px); }
.hero-copy p { margin: 0; }
.hero-copy .hero-product { color: #d4d4d8; font-size: clamp(15px, 1.65vw, 23px); font-weight: 580; }
.hero-copy h1 {
    margin: .13em 0;
    padding-bottom: .05em;
    font-size: clamp(36px, 9.8vw, 148px);
    font-weight: 685;
    line-height: 1.04;
    letter-spacing: -.065em;
    color: #ececf2;
    background: linear-gradient(180deg, #fff 20%, #e8e8efea 62%, #a6a6b0ca);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: blur(.22px);

}
.hero-copy .hero-subtitle { display: grid; align-items: center; color: #dedee5; font-size: clamp(16px, 2.25vw, 30px); line-height: 1.45; }
.hero-subtitle > span { grid-area: 1 / 1; opacity: 1; filter: blur(0); transition: opacity .55s ease, filter .55s ease; }
.hero-subtitle > span[aria-hidden="true"] { opacity: 0; filter: blur(8px); }
.reduce-motion .hero-subtitle > span { transition: none; filter: none; }
.hero-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: clamp(20px, 3vw, 34px) 0 16px;
}
.hero-links a,
.hero-explore {
    pointer-events: auto;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 550;
}
.hero-links a { padding: 0 20px; }
.hero-links .download-windows { background: #f5f5f7; color: #141416; }
.hero-links .download-windows:hover { background: #dcdce5; }
.hero-links .hero-guide { background: #222225; border: 1px solid #45454a; color: #fafafa; }
.hero-links .hero-guide:hover { background: #333338; }
.hero-copy .hero-compatibility { color: #aaaab3; font-size: 13px; }
.hero-explore {
    position: absolute;
    bottom: max(24px, env(safe-area-inset-bottom));
    flex-direction: column;
    color: #d6d6df;
    padding: 8px 14px;
}
.hero-explore:hover { color: white; }

.nav.nav--home {
    position: absolute;
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--text);
}
html.island-docked .nav.nav--home { position: fixed; }
.nav.nav--home .nav__inner,
.nav.nav--home.is-scrolled .nav__inner {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: 0;
    box-shadow: none;
}
html.home-motion .feature-story { margin-top: -57svh; }
html.island-nav-ink:not(.island-docked) .nav.nav--home { color: #f5f5f7; }
html.island-nav-ink:not(.island-docked) .nav.nav--home :is(.nav__link, .nav__actions .btn) {
    color: #f5f5f7;
    background: transparent;
    border-color: transparent;
}
html.island-nav-ink:not(.island-docked) .nav.nav--home :is(.nav__link, .nav__actions .btn):hover,
html.island-nav-ink:not(.island-docked) .nav.nav--home .nav__link.is-active {
    background: #ffffff19;
    color: #fff;
}
html.island-nav-ink:not(.island-docked) .nav.nav--home .nav__admin-name { color: #e2e2eb; }
.nav .sheet { color: var(--text); }
html.home-opening .nav.nav--home { visibility: hidden; }

/* Each chapter pairs a distinct vector movement with an offset copy layer. */
.story-section { scroll-margin-top: var(--nav-h); padding-block: clamp(65px, 9vw, 142px); overflow: clip; }
.story-grid {
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gutter);
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: clamp(24px, 5vw, 84px);
}
.story-media { background: #fafafa; }
.story-audio { background: #eef1f8; }
.story-toast { background: #fafaf9; }
.story-copy { transform: translateY(var(--story-drift, 0px)); }
.story-copy .story-label { color: #35588a; font-size: 15px; font-weight: 640; margin-bottom: 12px; }
.story-copy h2 {
    font-size: clamp(36px, 5vw, 76px);
    font-weight: 675;
    letter-spacing: -.048em;
    line-height: 1.12;
    margin-bottom: 20px;
}
.story-copy p { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.65; font-weight: 500; color: var(--text-2); }
.story-copy .story-note { margin-top: 20px; font-size: 13px; color: var(--text-3); }
.story-visual {
    border-radius: clamp(18px, 3vw, 36px);
    background: #e8edf8;
    overflow: hidden;
}
.story-audio .story-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.story-audio .story-visual { grid-column: 1; grid-row: 1; background: #e0e7f6; }
.story-toast .story-visual { background: #e7f1ed; }
.story-toast .story-label { color: #315e51; }
.feature-art { display: block; width: 100%; height: auto; }

@media (max-width: 740px) {
    .story-grid, .story-audio .story-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .story-audio .story-visual { grid-row: 2; }
    .story-copy h2 { margin-bottom: 14px; }
    .hero-copy h1 { font-size: clamp(36px, 12vw, 74px); }
}
@media (max-height: 520px) {
    .home .hero-stage { padding-block: 45px 58px; min-height: 340px; }
    .hero-copy h1 { font-size: clamp(34px, 8vw, 74px); }
    .hero-explore { bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .home .motion-hero { min-height: 100svh; }
    html.home-motion .feature-story { margin-top: 0; }
    .home .hero-stage { position: relative; }
    .home .story-copy { transform: none; }
}

.hero-fluid {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    isolation: isolate;
    -webkit-mask-image: radial-gradient(ellipse at center, transparent 2%, #000 55%);
    mask-image: radial-gradient(ellipse at center, transparent 2%, #000 55%);
}
.hero-fluid i {
    position: absolute;
    width: 95vmax;
    height: 58vmax;
    border-radius: 58% 42% 72% 28% / 48% 45% 55% 52%;
    filter: blur(clamp(28px, 5vw, 74px));
    background: conic-gradient(from 225deg, #111117 4%, #525571 24%, #979fb34f 33%, #262842 46%, #111117 65%, #5b5370 81%, #111117 95%);
    animation: fluid-flow 34s ease-in-out infinite alternate;
    animation-play-state: paused;
}
.hero-fluid i:nth-child(1) { top: -44%; left: -27%; }
.hero-fluid i:nth-child(2) { right: -34%; bottom: -51%; animation-delay: -16s; animation-duration: 43s; }
.hero-fluid i:nth-child(3) {
    width: 65vmax;
    height: 36vmax;
    top: 46%;
    left: -15%;
    opacity: .46;
    animation-delay: -9s;
    animation-duration: 30s;
    background: conic-gradient(from 220deg, #181821, #9697b44d, #35334a, #101012 70%);
}
@keyframes fluid-flow {
    0% { transform: translate3d(-9%, 7%, 0) rotate(-24deg) scale(1.04); }
    45% { transform: translate3d(14%, 3%, 0) rotate(13deg) scale(.88, 1.16); }
    100% { transform: translate3d(6%, -16%, 0) rotate(34deg) scale(1.13, .93); }
}
.hero-copy, .hero-explore { position: relative; z-index: 1; }
.hero-explore { position: absolute; }

.nav.nav--home {
    opacity: var(--nav-reveal, 1);
    transform: translate3d(0, var(--dock-y, 0px), 0);
}
[data-island-slot][hidden] { display: none; }
.chapter-island-preview {
    display: block;
    width: min(100%, 240px);
    height: auto;
    margin: 0 auto 20px;
    overflow: visible;
}

.home .story-grid,
.home :is(#system, #about, #start) > .container {
    transform: translate3d(var(--chapter-x, 0px), var(--story-entry, 0px), 0);
}
.home :is(#system, #about, #start) { overflow: clip; }
.story-media .story-copy { container-type: inline-size; }
.story-media .story-copy h2 { font-size: clamp(26px, 15.5cqi, 72px); }
.story-media h2 span { display: block; white-space: nowrap; }
.story-media .story-visual {
    position: relative;
    aspect-ratio: 570 / 410;
    background: radial-gradient(ellipse at 47% 47%, #fff 8%, #eef0f7 59%, #e7eaf3);
}
.story-media .media-product,
.story-media .feature-art {
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
}
.story-media .media-product { object-fit: contain; }
.story-media .feature-art { overflow: visible; }

@media (max-width: 740px) {
    .story-grid, .home :is(#system, #about, #start) > .container { padding-inline: max(var(--gutter), 28px); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-fluid i { animation: none; }
}

.fluid-visible .hero-fluid i { animation-play-state: running; }
.story-media .media-product { padding: 10% 8% 7%; }
.story-media .feature-art { transform: translateY(-15%); }


.chapter-island-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}
.chapter-island-overlay[hidden] { display: none; }
.hero-equalizer path {
    transform-origin: 0 30px;
    transform: scaleY(.38);
}
.hero-spectrum-active .hero-equalizer path {
    animation: hero-spectrum .76s cubic-bezier(.43, 0, .25, 1) infinite alternate;
}
.hero-spectrum-active .hero-equalizer path:nth-child(2) { animation-delay: -.38s; animation-duration: .98s; }
.hero-spectrum-active .hero-equalizer path:nth-child(3) { animation-delay: -.18s; animation-duration: .66s; }
.hero-spectrum-active .hero-equalizer path:nth-child(4) { animation-delay: -.56s; animation-duration: 1.12s; }
@keyframes hero-spectrum {
    0% { transform: scaleY(.28); }
    55% { transform: scaleY(.92); }
    100% { transform: scaleY(.52); }
}

.home [data-island-slot] { display: none; }
.reduce-motion .home [data-island-slot] { display: inline; }
.reduce-motion .home .motion-hero { min-height: 100svh; }
.reduce-motion .home .hero-stage { position: relative; }
html.reduce-motion.home-motion .feature-story { margin-top: 0; }
.reduce-motion .home .story-copy,
.reduce-motion .home .story-grid,
.reduce-motion .home :is(#system, #about, #start) > .container,
.reduce-motion .home [data-parallax] { transform: none !important; }
.reduce-motion .home .reveal { opacity: 1; transition: none; }
.reduce-motion .hero-fluid i { animation: none; }
.reduce-motion .home :is(.hero-copy > :is(p, h1), .hero-links > a, .hero-explore > :is(span, svg)) { filter: none; }

.home-motion:not(.reduce-motion) .hero-copy > :is(p, h1),
.home-motion:not(.reduce-motion) .hero-links > a,
.home-motion:not(.reduce-motion) .hero-explore > :is(span, svg) { opacity: 0; }
.home-motion:not(.reduce-motion) .hero-copy-ready .hero-copy > :is(p, h1),
.home-motion:not(.reduce-motion) .hero-copy-ready .hero-links > a,
.home-motion:not(.reduce-motion) .hero-copy-ready .hero-explore > :is(span, svg) {
    animation: hero-copy-enter .66s cubic-bezier(.2,.75,.25,1) var(--hero-delay, 0ms) both;
}
.hero-copy h1 { --hero-delay: 70ms; }
.hero-subtitle { --hero-delay: 140ms; }
.hero-links .download-windows { --hero-delay: 210ms; }
.hero-links .hero-guide { --hero-delay: 265ms; }
.hero-compatibility { --hero-delay: 315ms; }
.hero-explore > :is(span, svg) { --hero-delay: 365ms; }
@keyframes hero-copy-enter {
    from { opacity: 0; filter: blur(10px); transform: translateY(16px); }
    to { opacity: 1; filter: blur(0); transform: translateY(0); }
}
