:root {
    color-scheme: dark;
    --bg-primary: #04060f;
    --bg-secondary: #070b18;
    --surface: rgba(11, 16, 31, 0.72);
    --surface-strong: rgba(13, 20, 39, 0.9);
    --brand-gold: #c8ad56;
    --brand-gold-strong: #b8963f;
    --brand-gold-deep: #8c6f31;
    --brand-on-gold: #101216;
    --text-main: #f2ecdf;
    --text-soft: rgba(242, 236, 223, 0.75);
    --text-dim: rgba(242, 236, 223, 0.56);
    --champagne: var(--brand-gold);
    --champagne-strong: var(--brand-gold-strong);
    --border-soft: rgba(242, 236, 223, 0.24);
    --border-strong: rgba(242, 236, 223, 0.44);
    --focus: #f2ecdf;
    --error: #f2b8ae;
    --success: #c8e4c2;
    --shadow: 0 44px 100px rgba(0, 0, 0, 0.38);
    --ease-main: cubic-bezier(0.2, 0.72, 0.13, 1);
    --hero-pointer-x: 50%;
    --hero-pointer-y: 50%;
    --scroll-progress: 0;
    --gold-glow-soft: rgba(224, 176, 78, 0.32);
    --gold-glow-strong: rgba(241, 201, 112, 0.58);
    --font-brand: "Cinzel", "Times New Roman", serif;
    --font-copy: "Cormorant Garamond", "Times New Roman", serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img {
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 7.5rem;
    background-color: var(--bg-primary);
}

body {
    color: var(--text-main);
    font-family: var(--font-copy);
    font-size: 1.12rem;
    background-color: var(--bg-primary);
    background-image: radial-gradient(circle at 10% 6%, rgba(230, 176, 74, 0.3), transparent 34%), radial-gradient(circle at 88% 12%, rgba(196, 142, 54, 0.28), transparent 36%), linear-gradient(132deg, #030303 0%, #090909 36%, #3a2b12 66%, #7a5a25 100%);
    letter-spacing: 0.01em;
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    position: relative;
    overflow-x: hidden;
}

.hero-title,
.section-head h2,
.story-slide h3,
.gallery-card figcaption span:first-child,
.chapter-card h3,
.legal-doc-title,
.legal-doc-body h2,
.counter {
    font-family: var(--font-brand);
}

.hero-kicker,
.section-kicker,
.chapter-card-index,
.chapter-card-link,
.site-footer p {
    letter-spacing: 0.16em;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    filter: blur(24px);
    transform: scale(1.1);
    background: radial-gradient(circle at 20% 34%, color-mix(in srgb, var(--gold-glow-soft) 82%, transparent), transparent 55%), radial-gradient(circle at 82% 40%, rgba(70, 95, 175, 0.22), transparent 54%);
    animation: ambientDrift 28s ease-in-out infinite alternate;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    filter: blur(24px);
    transform: scale(1.1);
    background: radial-gradient(circle at 70% 40%, color-mix(in srgb, var(--gold-glow-strong) 60%, transparent), transparent 56%), radial-gradient(circle at 24% 58%, rgba(58, 82, 160, 0.18), transparent 58%);
    animation: ambientDrift 32s ease-in-out infinite alternate-reverse;
}

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    z-index: 999;
    background: var(--text-main);
    color: var(--bg-primary);
    padding: 0.55rem 0.8rem;
    border-radius: 0.35rem;
}

.grain-layer {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.12;
    background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 3px 3px, 3px 3px;
    animation: grainShift 24s steps(3) infinite;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    min-height: 5.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-block: 0.95rem 0.6rem;
    padding-inline: clamp(1rem, 2.2vw, 2rem);
    background: rgba(4, 6, 15, 0.82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(200, 173, 86, 0.12);
    transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease, transform 0.4s var(--ease-main);
}

body.is-home:not(.is-scrolled) .site-header {
    background: transparent;
    backdrop-filter: none;
    border-bottom-color: transparent;
}

body.is-scrolled .site-header {
    background: rgba(4, 6, 15, 0.72);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(200, 173, 86, 0.12);
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    width: min(12.5rem, 42vw);
    margin-right: auto;
}

.brand-wordmark {
    display: block;
    width: 100%;
    aspect-ratio: 680 / 102;
    background: var(--brand-gold);
    -webkit-mask: url("assets/logo-light.svg") center / contain no-repeat;
    mask: url("assets/logo-light.svg") center / contain no-repeat;
    /* Soft 2px black halo and boosted brightness to make the logo pop cleanly */
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 12px rgba(0, 0, 0, 0.24)) brightness(1.1);
}

.header-meta {
    display: flex;
    align-items: center;
    gap: clamp(0.7rem, 1.3vw, 1.4rem);
}

.counter {
    margin: 0;
    font-family: var(--font-brand);
    font-size: clamp(1.45rem, 2.25vw, 2rem);
    letter-spacing: 0.02em;
    color: var(--brand-gold);
    /* Added 1px black outline for contrast on background */
    text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.6), 1px -1px 0 rgba(0, 0, 0, 0.6), -1px 1px 0 rgba(0, 0, 0, 0.6), 1px 1px 0 rgba(0, 0, 0, 0.6), 0 0 16px color-mix(in srgb, var(--gold-glow-strong) 70%, transparent);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    opacity: 0.86;
    flex-wrap: nowrap;
}

.back-home-link {
    display: inline-flex;
    align-items: center;
    color: var(--brand-gold);
    text-decoration: none;
    font-family: var(--font-brand);
    font-size: 0.67rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding-inline: 0.95rem;
    min-height: 1.85rem;
    border: 1px solid color-mix(in srgb, var(--brand-gold) 44%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand-gold) 9%, transparent);
    transition: all 0.3s var(--ease-main);
    box-shadow: 0 0 0 1px #000;
    line-height: 1;
    white-space: nowrap;
    transform: scale(0.96);
}

.back-home-link:hover {
    color: var(--brand-on-gold);
    background: var(--brand-gold);
    box-shadow: 0 0 0 1px #000, 0 0 12px var(--gold-glow-soft);
}

.lang-switch {
    display: inline-flex;
    flex-shrink: 0;
    border: 1px solid color-mix(in srgb, var(--brand-gold) 44%, transparent);
    border-radius: 999px;
    padding: 0.12rem;
    background: color-mix(in srgb, var(--brand-gold) 9%, transparent);
    transform: scale(0.96);
    box-shadow: 0 0 0 1px #000;
}

.lang-btn {
    border: 0;
    background: transparent;
    color: #dfc675;
    /* Saturated gold */
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.67rem;
    font-weight: 600;
    /* Bolder weight */
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
}

.lang-btn {
    min-width: 2.1rem;
    min-height: 1.8rem;
    border-radius: 999px;
}

.lang-btn.is-active {
    color: var(--brand-on-gold);
    /* High contrast dark text on gold */
    background: var(--brand-gold);
    /* Solid gold background */
    box-shadow: 0 0 0 1px #000, 0 0 12px var(--gold-glow-soft);
}

.lang-btn:hover {
    color: var(--brand-gold);
}

.lang-btn:focus-visible,
.waitlist-form input:focus-visible,
.waitlist-form button:focus-visible,
.consent-check input:focus-visible+.consent-check-mark {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 24% 30%, rgba(195, 149, 60, 0.22), transparent 48%), radial-gradient(circle at 76% 66%, rgba(35, 63, 138, 0.3), transparent 56%), rgba(4, 6, 15, 0.8);
    backdrop-filter: blur(14px);
    transition: opacity 0.45s var(--ease-main), visibility 0.45s var(--ease-main);
}

.page-loader-inner {
    width: min(18rem, calc(100vw - 2.2rem));
    border: 1px solid color-mix(in srgb, var(--brand-gold) 36%, transparent);
    border-radius: 1rem;
    padding: 1.2rem 1rem 1rem;
    text-align: center;
    background: linear-gradient( 145deg, color-mix(in srgb, var(--brand-gold) 10%, rgba(9, 14, 28, 0.9)) 0%, color-mix(in srgb, rgba(7, 10, 19, 0.96) 90%, transparent) 100%);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px color-mix(in srgb, var(--brand-gold) 24%, transparent) inset;
}

.page-loader-inner img {
    width: clamp(3.2rem, 11vw, 5.1rem);
    height: auto;
    display: block;
    margin: 0 auto 0.72rem;
    filter: drop-shadow(0 0 20px color-mix(in srgb, var(--brand-gold) 42%, transparent));
    animation: loaderMarkFloat 1.5s ease-in-out infinite alternate;
}

.page-loader-inner p {
    margin: 0;
    min-height: 2.8em;
    line-height: 1.42;
    letter-spacing: 0.06em;
    color: color-mix(in srgb, var(--brand-gold) 86%, #fff 14%);
    font-size: clamp(0.72rem, 1.8vw, 0.86rem);
    transition: opacity 0.22s var(--ease-main), transform 0.22s var(--ease-main);
}

.page-loader-inner p.is-swapping {
    opacity: 0.42;
    transform: translateY(1px);
}

body.is-loading {
    overflow: hidden;
}

body.is-loading> :not(.page-loader) {
    filter: blur(7px);
    pointer-events: none;
}

body:not(.is-loading) .page-loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

main {
    width: 100%;
    margin-inline: auto;
    padding-bottom: 4rem;
    overflow: visible;
    /* Allow children to pop out of main layout bounds */
}


/* Art-direction: Physical height-fit + left-shift logic 
   Aligned to FHD (1920x900) master reference.
   MacBook/Narrow Desktop: Scales proportionally to preserve visual balance and crop. */

.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    padding: 0 !important;
    display: grid;
    /* Proportional panel width: 540px at 1920px (28.125vw) to maintain FHD composition balance. */
    grid-template-columns: 1fr clamp(380px, 28.125vw, 540px);
    align-items: stretch;
    overflow: hidden;
    background: #04060f;
    box-shadow: 0 40px 110px rgba(0, 0, 0, 0.45);
    isolation: isolate;
    border: none;
}

.hero-scene {
    grid-column: 1;
    position: relative;
    overflow: hidden;
    height: 100%;
    z-index: 1;
}

.hero-mastershot {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-mastershot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    position: relative;
    /* Slightly increased shift (-3% vs -2%) to give subject more room from the divider line. */
    transform: translateX(-3%);
    filter: saturate(0.92) contrast(1.02) brightness(0.72);
    transition: filter 0.6s var(--ease-main), transform 0.8s var(--ease-main);
    will-change: transform;
}


/* Ornamental vertical separator (Gold Line)
   Placed absolutely across the whole hero to ensure it stays on top of the seam. */

.hero-vignette {
    position: absolute;
    top: 0;
    /* Anchoring to the right edge to match the grid's fixed-width panel behavior.
       This ensures the separator remains perfectly aligned with the content panel seam
       even if there are minor viewport rounding differences. */
    right: clamp(380px, 28.125vw, 540px);
    height: 100%;
    /* Increased width to ensure SVG and shadow are not clipped, while line stays centered */
    width: 40px;
    /* High z-index to stay above both scene and content layers */
    z-index: 50;
    pointer-events: none;
    background: none;
    /* Precisely centered on the seam by shifting half its width to the right. */
    transform: translateX(50%);
    display: flex;
    justify-content: center;
    align-items: stretch;
    overflow: visible;
}

.hero-vignette svg {
    display: block;
    height: 100%;
    width: 100%;
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.6));
    transition: filter 0.4s var(--ease-main);
}


/* Interactive Focus: Subtle material highlight (Organic reflection) */

.hero.is-email-focus .hero-vignette svg {
    filter: drop-shadow(0 0 12px var(--gold-glow-soft)) brightness(1.15);
}


/* Ceremonial Success Sweep: "Polished Glint"
   A sharp, fast metallic spark that feels like a physical reflection. */

.success-sweep {
    position: absolute;
    top: 0;
    left: 50%;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(200, 173, 86, 0.4) 40%, #fff 50%, rgba(200, 173, 86, 0.4) 60%, transparent 100%);
    transform: translateX(-50%) translateY(-100%);
    z-index: 60;
    /* Sharp, realistic specularity instead of heavy bloom */
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    /* Fast, snappy glint timing */
    animation: sweepScan 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.hero-content {
    grid-column: 2;
    position: relative;
    z-index: 3;
    width: calc(100% + 1px);
    margin-left: -1px;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    /* Proportional padding: block scaled more aggressively to ensure fit on MacBook heights. */
    padding: clamp(2rem, 5.2vw, 6rem) clamp(2rem, 3.75vw, 4.5rem);
    pointer-events: auto;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.4);
}

.collector-card {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.collector-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Reduced gap (2.2vw vs 2.92vw) on shorter viewports to keep hero compact on MacBook. */
    gap: clamp(1.8rem, 2.2vw, 3.5rem);
}

.collector-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.2rem;
    width: 100%;
}

.collector-card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    /* Reduced gap (1.5vw vs 1.83vw) on shorter viewports. */
    gap: clamp(1.4rem, 1.5vw, 2.2rem);
}


/* Targeted MacBook / Narrow Desktop Refinements (1025px - 1720px)
   Fixes subpixel seam gaps and creates subject breathing room without affecting FHD. */

@media (min-width: 1025px) and (max-width: 1720px) {
    .hero-mastershot img {
        /* Pulled back slightly from -9.5% to -7.5% for better framing. */
        transform: scale(1.1) translateX(-7.5%);
        transform-origin: left center;
    }
    .hero-content {
        /* Micro-overlap and seam-fill to remove the unwanted dark strip. */
        margin-left: -1px;
        box-shadow: -1px 0 0 var(--bg-primary), -20px 0 60px rgba(0, 0, 0, 0.4);
    }
}


/* Targeted FHD Refinement (1721px+)
   Nudges the separator 38px LEFT to achieve perfect visual centering on the content panel seam on large screens.
   Includes a bleed and micro-overlap to remove the unwanted black strip. */

@media (min-width: 1721px) {
    .hero-vignette {
        right: calc(clamp(380px, 28.125vw, 540px) + 0px);
    }
    .hero-mastershot img {
        /* Scale compensates for the translateX(-3%) to prevent the dark container background from leaking on the right edge. */
        transform: scale(1.08) translateX(-3%);
        transform-origin: left center;
    }
    .hero-content {
        /* Micro-overlap to fill any subpixel gaps or reveals at the visual seam. */
        margin-left: -1px;
        box-shadow: -1px 0 0 var(--bg-primary), -20px 0 60px rgba(0, 0, 0, 0.4);
    }
}

.collector-card-foot {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.hero-kicker {
    margin: 0;
    color: color-mix(in srgb, var(--brand-gold) 92%, #fff 8%);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.68rem;
    line-height: 1.2;
}

body:not(.is-ready) .site-header {
    opacity: 0;
    transform: translateY(-20px);
}

body:not(.is-ready) .hero-mastershot {
    opacity: 0;
    transform: scale(1.05);
    filter: blur(10px);
}

body:not(.is-ready) .hero-vignette {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
}

body:not(.is-ready) .hero-kicker,
body:not(.is-ready) .hero-title,
body:not(.is-ready) .hero-meta li,
body:not(.is-ready) .waitlist-form,
body:not(.is-ready) .hero-status-group {
    opacity: 0;
    transform: translateY(30px);
}


/* Sequential Transitions */

.site-header {
    transition: transform 1.2s var(--ease-main) 0.1s, opacity 1.2s var(--ease-main) 0.1s;
}

.hero-mastershot {
    transition: transform 2.4s var(--ease-main) 0.2s, opacity 1.8s var(--ease-main) 0.2s, filter 1.8s var(--ease-main) 0.2s;
}

.hero-vignette {
    transition: clip-path 2s cubic-bezier(0.19, 1, 0.22, 1) 0.6s, opacity 0.8s ease-out 0.6s;
}

.hero-kicker {
    transition: transform 1s var(--ease-main) 0.8s, opacity 1s var(--ease-main) 0.8s;
}

.hero-title {
    transition: transform 1s var(--ease-main) 0.9s, opacity 1s var(--ease-main) 0.9s;
}

.hero-meta li:nth-child(1) {
    transition: transform 0.8s var(--ease-main) 1.0s, opacity 0.8s var(--ease-main) 1.0s;
}

.hero-meta li:nth-child(2) {
    transition: transform 0.8s var(--ease-main) 1.1s, opacity 0.8s var(--ease-main) 1.1s;
}

.hero-meta li:nth-child(3) {
    transition: transform 0.8s var(--ease-main) 1.2s, opacity 0.8s var(--ease-main) 1.2s;
}

.waitlist-form {
    transition: transform 1s var(--ease-main) 1.3s, opacity 1s var(--ease-main) 1.3s;
}


/* Entrance Trigger State */

body.is-ready .site-header,
body.is-ready .hero-mastershot,
body.is-ready .hero-kicker,
body.is-ready .hero-title,
body.is-ready .hero-meta li,
body.is-ready .waitlist-form,
body.is-ready .hero-status-group {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

body.is-ready .hero-vignette {
    opacity: 1;
    clip-path: inset(0 0 0% 0);
}


/* Golden Flash Animation for the Title Highlight */

.highlight-gold {
    color: inherit;
    transition: color 0.6s var(--ease-main);
}

body.is-ready .highlight-gold {
    animation: textGoldFlash 1.6s cubic-bezier(0.2, 0, 0.2, 1) 2.2s forwards;
}

@keyframes textGoldFlash {
    0% {
        color: inherit;
        text-shadow: 0 0 0 transparent;
    }
    30% {
        color: var(--brand-gold);
        text-shadow: 0 0 25px var(--brand-gold), 0 0 10px rgba(255, 255, 255, 0.5);
        transform: scale(1.02);
    }
    100% {
        color: var(--brand-gold);
        text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
}

@keyframes sweepScan {
    0% {
        transform: translateX(-50%) translateY(-100%);
    }
    100% {
        transform: translateX(-50%) translateY(100%);
    }
}


/* Remove old plaque animation */

.hero-title {
    margin: 0;
    max-width: none;
    /* Removed width restriction to let manual <br> tags control the 3-line layout precisely */
    font-family: var(--font-brand);
    /* Proportional font-size: 5.2rem at 1920px = 4.333vw. 
     Ensures text balance is preserved as the panel scales. */
    font-size: clamp(2.8rem, 4.333vw, 5.2rem);
    line-height: 0.9;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-shadow: 0 16px 32px rgba(0, 0, 0, 0.34);
}

.waitlist-form {
    width: 100%;
    display: grid;
    gap: 1.4rem;
    margin-top: 0;
}

.waitlist-row {
    display: grid;
    /* Increased button space (from auto to max-content) to prevent clipping */
    grid-template-columns: 1fr max-content;
    align-items: center;
    gap: 0;
    padding: 0;
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid rgba(242, 236, 223, 0.3);
    background: transparent;
    box-shadow: none;
    transition: border-color 0.3s var(--ease-main);
}

.cf-turnstile {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    min-height: 65px;
    margin-top: 0.5rem;
}

.waitlist-row:focus-within {
    border-color: var(--brand-gold);
    background: transparent;
    box-shadow: none;
}

.waitlist-form input {
    min-height: 3.8rem;
    border: 0;
    outline: none;
    /* Remove browser default outline */
    -webkit-appearance: none;
    background: transparent;
    color: var(--text-main);
    padding-inline: 0 0.5rem;
    font-size: 1.1rem;
    font-family: var(--font-copy);
    letter-spacing: 0.03em;
    width: 100%;
    box-shadow: none !important;
    /* Remove any lingering box shadows */
}


/* Chrome/Safari Autofill override: Prevents the white background when choosing browser suggestions.
   We use a long-duration transition on background-color to 'freeze' the transparent state. */

.waitlist-form input:-webkit-autofill,
.waitlist-form input:-webkit-autofill:hover,
.waitlist-form input:-webkit-autofill:focus,
.waitlist-form input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: var(--text-main) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.waitlist-form input:focus {
    outline: none;
    box-shadow: none;
}

.waitlist-form input::placeholder {
    color: color-mix(in srgb, var(--text-main) 40%, transparent);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
}

.waitlist-form input.is-invalid {
    box-shadow: none;
    border-bottom: 1px solid var(--error);
}

.waitlist-form button {
    min-width: 0;
    min-height: 3.8rem;
    padding-inline: 0.5rem 0;
    /* Minimized padding to prevent overflow */
    border-radius: 0;
    border: 0;
    background: transparent;
    color: var(--brand-gold);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-brand);
    cursor: pointer;
    box-shadow: none;
    transition: color 0.3s var(--ease-main), opacity 0.3s var(--ease-main);
    white-space: nowrap;
    /* Prevent text wrapping or cutting */
}

.waitlist-form button:hover {
    transform: none;
    background: transparent;
    color: #fff;
    box-shadow: none;
}

.waitlist-form button::after {
    display: none;
}

.consent-check {
    margin-top: 0;
    max-width: 100%;
    color: rgba(242, 236, 223, 0.54);
    font-size: 0.72rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    cursor: pointer;
    transition: color 0.2s var(--ease-main);
}

.consent-check:hover {
    color: rgba(242, 236, 223, 0.8);
}

.consent-check input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0, 0, 0, 0);
    overflow: hidden;
    white-space: nowrap;
}

.consent-check-mark {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 0;
    border: 1px solid color-mix(in srgb, var(--brand-gold) 40%, transparent);
    background: transparent;
    box-shadow: none;
    display: inline-grid;
    place-items: center;
    transition: border-color 0.2s var(--ease-main), background 0.2s var(--ease-main);
    flex-shrink: 0;
}

.consent-check-mark::after {
    content: "";
    width: 0.4rem;
    height: 0.4rem;
    background: var(--brand-gold);
    opacity: 0;
    transition: opacity 0.18s var(--ease-main);
}

.consent-check-text {
    font-family: var(--font-copy);
    letter-spacing: 0.02em;
}

.consent-check input:checked+.consent-check-mark {
    border-color: var(--brand-gold);
    background: transparent;
    box-shadow: none;
}

.consent-check input:checked+.consent-check-mark::after {
    opacity: 1;
}

.waitlist-feedback {
    min-height: 1.2rem;
    margin: 0;
    font-size: 0.86rem;
}

.waitlist-feedback.is-error {
    color: var(--error);
}

.waitlist-feedback.is-success {
    color: var(--success);
}

.hero-meta {
    list-style: none;
    display: flex;
    flex-direction: column;
    /* Proportional gap: 0.7rem at 1920px = 0.58vw */
    gap: clamp(0.5rem, 0.58vw, 0.7rem);
    padding: 0;
    margin: 0;
    position: relative;
    padding-left: 1.4rem;
}

.hero-meta::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: color-mix(in srgb, var(--brand-gold) 34%, transparent);
    transform-origin: top;
    transition: transform 1.2s var(--ease-main) 0.9s;
}

body:not(.is-ready) .hero-meta::before {
    transform: scaleY(0);
}

.hero-meta li {
    position: relative;
    padding-left: 0;
    color: rgba(242, 236, 223, 0.74);
    /* Proportional font-size: 1.05rem at 1920px = 0.875vw */
    font-size: clamp(0.9rem, 0.875vw, 1.05rem);
    line-height: 1.35;
    letter-spacing: 0.01em;
}

.hero-meta li::before {
    display: none;
}

.hero-status-group {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.hero-status-divider {
    width: 1px;
    height: 1rem;
    background: color-mix(in srgb, var(--brand-gold) 30%, transparent);
}

.hero-counter-minimal {
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.hero-counter-label {
    color: var(--text-dim);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hero-counter-minimal strong {
    color: var(--brand-gold);
    font-family: var(--font-brand);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}


/* Remove old plaque styles */


/* vision-section: Architectural Act Ledger Refinement */

.vision-section {
    margin-top: clamp(10rem, 20vw, 16rem);
    /* Increased space for more 'breathing room' */
    position: relative;
    width: 100%;
    /* Standardized alignment with header/hero */
    padding-inline: clamp(1rem, 5vw, 6rem);
    display: flex;
    flex-direction: column;
    gap: clamp(4rem, 10vw, 8rem);
}

.vision-header {
    max-width: 50rem;
}

.vision-title {
    margin: 1rem 0 0;
    font-family: var(--font-brand);
    font-size: clamp(2.2rem, 4.8vw, 4.2rem);
    line-height: 1.02;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.vision-viewport {
    width: 100%;
    overflow: visible;
    /* Changed to allow numbers to breathe */
}

.vision-rail {
    display: flex;
    transition: transform 0.8s var(--ease-main);
}

.vision-act {
    flex: 0 0 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-block: 0 4rem;
    position: relative;
    /* Precise act spacing */
    padding-inline: 2rem;
    border-left: 1px solid color-mix(in srgb, var(--brand-gold) 15%, transparent);
}

.vision-act:last-child {
    border-right: 1px solid color-mix(in srgb, var(--brand-gold) 15%, transparent);
}

.act-number {
    font-family: var(--font-brand);
    font-size: clamp(4rem, 8vw, 6.5rem);
    line-height: 1;
    color: var(--brand-gold);
    opacity: 0.35;
    /* Increased opacity for more presence */
    font-weight: 700;
    /* Bolder weight */
    margin-left: -0.2rem;
    /* Optical alignment */
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.9);
}

.act-content {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.act-content h3 {
    margin: 0;
    font-family: var(--font-brand);
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
    line-height: 1.2;
    color: var(--text-main);
    letter-spacing: 0.01em;
}

.act-content p {
    margin: 0;
    color: var(--text-soft);
    max-width: 28ch;
    /* Tighter line length for editorial feel */
    font-size: clamp(1rem, 1.1vw, 1.15rem);
    line-height: 1.6;
}

.vision-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-soft);
}

.vision-progress-track {
    flex-grow: 1;
    height: 1px;
    background: color-mix(in srgb, var(--brand-gold) 15%, transparent);
}

.vision-progress-fill {
    height: 100%;
    width: 33.33%;
    background: var(--brand-gold);
    transition: transform 0.8s var(--ease-main), width 0.8s var(--ease-main);
    transform-origin: left;
}

.vision-nav {
    display: flex;
    gap: 0.75rem;
}

.nav-arrow {
    width: 3.2rem;
    height: 3.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-soft);
    color: var(--text-soft);
    cursor: pointer;
    transition: all 0.4s var(--ease-main);
}

.nav-arrow:hover:not(:disabled) {
    border-color: var(--brand-gold);
    color: var(--brand-gold);
    transform: translateY(-2px);
}

@media (min-width: 1024px) {
    .vision-section {
        /* Align acts precisely with title start */
        padding-inline: clamp(1rem, 5vw, 8rem);
    }
    .vision-act {
        flex: 1;
        /* Equal 1/3 widths */
        padding-inline: 3rem;
        /* Vertical dividers strictly between acts */
    }
    .vision-act:first-child {
        padding-left: 0;
        border-left: none;
    }
    .vision-act:last-child {
        padding-right: 0;
        border-right: none;
    }
    .vision-controls {
        display: none;
    }
    .vision-rail {
        transform: none !important;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1023px) {
    .vision-act {
        padding-inline: 1.5rem;
    }
}

.marquee {
    --film-strip-h: 1.35rem;
    --film-hole-w: 0.9rem;
    --film-hole-h: 0.62rem;
    --film-hole-gap: 2rem;
    --film-bar: #07090f;
    --film-image-h: clamp(160px, 22vw, 320px);
    margin-top: 6rem;
    margin-bottom: 6rem;
    overflow-x: hidden;
    /* Clip the horizontal overflow to remove the right-side strip */
    overflow-y: visible;
    /* Maintain vertical space for 3D pop-out */
    background: transparent;
    position: relative;
    isolation: isolate;
    /* Create new stacking context to prevent bleed */
    padding-block: 4rem;
    /* Generous space for 3D pop-out */
    perspective: 1500px;
    z-index: 20;
}


/* The actual dark film strip background - expanded to full viewport width */

.marquee::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    /* Keep the strip background locked to the same geometry as the images and perforations */
    height: calc(var(--film-image-h) + (var(--film-strip-h) * 2) + 2rem);
    background: var(--film-bar);
    z-index: -1;
    border-top: 1px solid color-mix(in srgb, var(--brand-gold) 28%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--brand-gold) 28%, transparent);
}


/* Filmszalag perforáció - Synchronized with track */

.marquee-track::before,
.marquee-track::after {
    content: "";
    position: absolute;
    left: -200%;
    right: -200%;
    height: var(--film-strip-h);
    z-index: 5;
    pointer-events: none;
    background: repeating-linear-gradient( 90deg, var(--film-bar) 0, var(--film-bar) calc((var(--film-hole-gap) - var(--film-hole-w)) / 2), transparent calc((var(--film-hole-gap) - var(--film-hole-w)) / 2), transparent calc((var(--film-hole-gap) + var(--film-hole-w)) / 2), var(--film-bar) calc((var(--film-hole-gap) + var(--film-hole-w)) / 2), var(--film-bar) var(--film-hole-gap)) 0 0 / var(--film-hole-gap) 100%, linear-gradient( 180deg, color-mix(in srgb, var(--brand-gold) 18%, var(--film-bar)) 0%, var(--film-bar) 100%);
    -webkit-mask: linear-gradient( 180deg, black 0%, black calc(50% - var(--film-hole-h) / 2), transparent calc(50% - var(--film-hole-h) / 2), transparent calc(50% + var(--film-hole-h) / 2), black calc(50% + var(--film-hole-h) / 2), black 100%) left / var(--film-hole-gap) 100%, linear-gradient(black, black);
    mask: linear-gradient( 180deg, black 0%, black calc(50% - var(--film-hole-h) / 2), transparent calc(50% - var(--film-hole-h) / 2), transparent calc(50% + var(--film-hole-h) / 2), black calc(50% + var(--film-hole-h) / 2), black 100%) left / var(--film-hole-gap) 100%, linear-gradient(black, black);
}

.marquee-track::before {
    top: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--brand-gold) 20%, transparent);
}

.marquee-track::after {
    bottom: 0;
    border-top: 1px solid color-mix(in srgb, var(--brand-gold) 20%, transparent);
}

.marquee-track {
    position: relative;
    display: flex;
    width: max-content;
    gap: 1.5rem;
    padding-block: calc(var(--film-strip-h) + 1rem);
    padding-inline: 0.35rem;
    animation: marqueeSlide 72s linear infinite;
    will-change: transform;
    transform-style: preserve-3d;
}


/* Stop animation ONLY when hovering over an actual image/picture.
   By disabling pointer events on the containers and enabling them only on images, 
   the :hover state is only captured when the cursor is on the photo. */

.marquee,
.marquee-track {
    pointer-events: none;
}

.marquee-track picture {
    pointer-events: auto;
}

.marquee.is-touch-paused .marquee-track {
    animation-play-state: paused;
}

.marquee-track img {
    width: 100%;
    height: var(--film-image-h);
    object-fit: cover;
    /* Fill the frame */
    object-position: center 25%;
    border-radius: 0;
    border: 1px solid var(--border-soft);
    display: block;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s var(--ease-main), border-color 0.4s var(--ease-main), box-shadow 0.5s var(--ease-main);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0);
}

.marquee-track picture {
    display: block;
    flex: 0 0 clamp(240px, 32vw, 450px);
    position: relative;
    z-index: 1;
    transform-style: preserve-3d;
    transition: z-index 0s;
}

.marquee-track picture.marquee-portrait {
    flex: 0 0 clamp(130px, 16vw, 240px);
}


/* 3D Pop-out effect */

.marquee-track picture.is-touch-active {
    z-index: 50;
}

.marquee-track picture.is-touch-active img {
    transform: scale(1.3) translateZ(120px);
    /* Significant 3D jump crossing boundaries */
    filter: saturate(1.1) contrast(1.05) brightness(1.1);
    border-color: var(--brand-gold);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.9), 0 0 30px rgba(200, 173, 86, 0.4);
}

@media (hover: hover) and (pointer: fine) {
    .marquee:hover .marquee-track {
        animation-play-state: paused;
    }

    .marquee-track picture:hover {
        z-index: 50;
    }

    .marquee-track picture:hover img {
        transform: scale(1.3) translateZ(120px);
        filter: saturate(1.1) contrast(1.05) brightness(1.1);
        border-color: var(--brand-gold);
        box-shadow: 0 40px 80px rgba(0, 0, 0, 0.9), 0 0 30px rgba(200, 173, 86, 0.4);
    }
}

@keyframes marqueeSlide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}


/* archive-selection: Curated Editorial Spread */

.archive-selection {
    margin-top: clamp(6rem, 15vw, 12rem);
    width: 100%;
    padding-inline: clamp(1rem, 5vw, 6rem);
}

.archive-head {
    max-width: 50rem;
    margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.archive-title {
    margin: 1rem 0 0;
    font-family: var(--font-brand);
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.archive-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
}

.archive-item {
    margin: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.archive-image-wrap {
    width: 100%;
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border-soft);
}

.archive-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.8s var(--ease-main), filter 0.6s var(--ease-main);
}


/* Art-directed Crop Positioning */

.img-europe {
    aspect-ratio: 4 / 5.2;
    object-position: center 30%;
}

.img-takumi {
    aspect-ratio: 16 / 11;
    object-position: 50% 15%;
}

.img-artdeco {
    aspect-ratio: 16 / 11;
    object-position: center 60%;
}

.archive-side-stack {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.archive-label {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding-left: 0.2rem;
}

.plate-no {
    font-family: var(--font-brand);
    font-size: 0.65rem;
    color: #dfc675;
    /* Saturated gold */
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding-top: 0.25rem;
    opacity: 0.85;
    font-weight: 600;
    /* Bolder weight */
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.9);
}

.label-content {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    border-left: 1px solid color-mix(in srgb, var(--brand-gold) 30%, transparent);
    padding-left: 1rem;
}

.label-content strong {
    font-family: var(--font-brand);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

.label-content span {
    font-size: 0.85rem;
    color: var(--text-soft);
    letter-spacing: 0.02em;
}

.archive-item:hover .archive-img {
    transform: scale(1.03);
    filter: saturate(1.1) brightness(1.05);
}

@media (max-width: 1023px) {
    .archive-grid {
        grid-template-columns: 1fr;
    }
    .img-europe {
        aspect-ratio: 1 / 1.1;
    }
}

.story-journey {
    margin-top: clamp(10rem, 20vw, 16rem);
    width: min(1440px, calc(100% - 3rem));
    margin-inline: auto;
    position: relative;
    z-index: 5;
    opacity: 1 !important;
    visibility: visible !important;
}

.story-journey .section-head-journey {
    max-width: 44rem;
}

.journey-shell {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr);
    /* Narrower rail column for elegance */
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
    position: relative;
    padding-top: 2rem;
}

.journey-rail {
    position: sticky;
    top: 15vh;
    height: 70vh;
    display: grid;
    grid-template-rows: auto 1fr;
    /* Removed bottom static label for cleaner look */
    justify-items: center;
    gap: 1.5rem;
}

.journey-edge {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin: 0;
    font-family: var(--font-brand);
    font-size: 0.72rem;
    /* Slightly larger */
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #f2ecdf;
    /* Using main text color for highest contrast */
    opacity: 1;
    /* Full opacity */
    font-weight: 600;
    /* Bolder weight */
    white-space: nowrap;
    text-align: center;
    transition: color 0.4s ease;
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.8));
    /* Ensure pop on dark bg */
}

.journey-edge-end {
    display: none;
    /* Hide static bottom label to focus on the active indicator */
}

.journey-line {
    width: 2px;
    /* Slightly thicker for visibility */
    height: 100%;
    background: rgba(200, 173, 86, 0.25);
    /* More visible track */
    position: relative;
    overflow: hidden;
    box-shadow: inset 1px 0 2px rgba(0, 0, 0, 0.3);
}

.journey-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--brand-gold), #fff, var(--brand-gold), transparent);
    transform-origin: top center;
    transform: scaleY(0);
    box-shadow: 0 0 15px var(--brand-gold);
    /* Stronger glow */
}

.journey-track {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(6rem, 15vh, 12rem);
    padding-bottom: 20vh;
    width: 100%;
}

.journey-card {
    position: relative;
    opacity: 1;
    background: linear-gradient(180deg, rgba(13, 18, 36, 0.98) 0%, rgba(6, 8, 15, 1) 100%);
    border: 1px solid rgba(242, 236, 223, 0.08);
    /* Minimal hairline border */
    border-radius: 4px;
    /* Sharper, more architectural corners */
    padding: clamp(2rem, 6vw, 4.5rem);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    transition: transform 0.9s var(--ease-main), opacity 0.9s var(--ease-main), border-color 0.6s var(--ease-main);
    will-change: transform, opacity;
}


/* Premium Top Glint */

.journey-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200, 173, 86, 0.25), transparent);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.journey-card.is-active {
    border-color: rgba(200, 173, 86, 0.2);
}

.journey-card.is-active::before {
    opacity: 1;
}

.journey-card-index {
    display: inline-block;
    margin: 0 0 1rem;
    font-family: var(--font-brand);
    font-size: 0.7rem;
    color: var(--brand-gold);
    letter-spacing: 0.2em;
    opacity: 0.6;
    border-bottom: 1px solid rgba(200, 173, 86, 0.3);
    padding-bottom: 0.3rem;
}

.journey-card h3 {
    margin: 0 0 2rem;
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    line-height: 1;
    color: var(--text-main);
    font-weight: 500;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.journey-card p {
    margin: 0;
    font-size: clamp(1.05rem, 1.25vw, 1.3rem);
    line-height: 1.8;
    color: var(--text-soft);
    max-width: 65ch;
}


/* final-invitation: Closing Ritual Section */

.final-invitation {
    margin-top: clamp(4rem, 10vw, 8rem);
    /* Reduced from 8rem/20vw/15rem */
    margin-bottom: clamp(6rem, 15vw, 10rem);
    width: 100%;
    padding-top: 4rem;
    padding-inline: clamp(1rem, 5vw, 6rem);
    border-top: 1px solid color-mix(in srgb, var(--brand-gold) 15%, transparent);
    position: relative;
}

.invitation-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(3rem, 8vw, 8rem);
    align-items: center;
}

.invitation-content {
    max-width: 42rem;
}

.invitation-title {
    margin: 1.2rem 0 1.5rem;
    font-family: var(--font-brand);
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    line-height: 1.02;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.invitation-lead {
    margin: 0;
    color: var(--text-soft);
    font-size: clamp(1.1rem, 1.3vw, 1.25rem);
    line-height: 1.6;
    max-width: 35ch;
}

.invitation-action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.invitation-btn {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    padding: 1.2rem 2.2rem;
    background: transparent;
    border: 1px solid var(--brand-gold);
    color: var(--brand-gold);
    text-decoration: none;
    transition: all 0.5s var(--ease-main);
    position: relative;
    overflow: hidden;
}

.btn-text {
    font-family: var(--font-brand);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2;
}

.btn-arrow {
    transition: transform 0.5s var(--ease-main);
    z-index: 2;
}

.invitation-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--brand-gold);
    transform: translateX(-101%);
    transition: transform 0.5s var(--ease-main);
    z-index: 1;
}

.invitation-btn:hover {
    color: var(--brand-on-gold);
}

.invitation-btn:hover::before {
    transform: translateX(0);
}

.invitation-btn:hover .btn-arrow {
    transform: translateX(8px);
}

.invitation-micro {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    padding-left: 0.2rem;
}

@media (max-width: 1023px) {
    .invitation-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .invitation-action {
        align-items: flex-start;
    }
}

.chapter-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 2000;
}

.chapter-modal.is-open {
    display: block;
}

.chapter-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 6, 15, 0.76);
    backdrop-filter: blur(4px);
}

.chapter-modal-panel {
    position: relative;
    width: min(760px, calc(100vw - 1.4rem));
    max-height: calc(100vh - 2rem);
    overflow: auto;
    margin: 1rem auto;
    border-radius: 1rem;
    border: 1px solid color-mix(in srgb, var(--brand-gold) 36%, var(--border-soft));
    background: linear-gradient(158deg, color-mix(in srgb, var(--surface-strong) 96%, transparent), color-mix(in srgb, var(--surface) 88%, transparent));
    box-shadow: 0 32px 82px rgba(0, 0, 0, 0.45);
    padding: clamp(1rem, 2.4vw, 1.6rem);
}

.chapter-modal-close {
    margin-left: auto;
    display: inline-flex;
    border: 1px solid color-mix(in srgb, var(--brand-gold) 45%, transparent);
    border-radius: 999px;
    background: transparent;
    color: var(--brand-gold);
    min-height: 2rem;
    padding: 0 0.9rem;
    cursor: pointer;
}

.chapter-modal-index {
    margin: 0.7rem 0 0.4rem;
    color: var(--brand-gold);
    letter-spacing: 0.08em;
    font-size: 0.74rem;
}

.chapter-modal-panel h3 {
    margin: 0;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
}

.chapter-modal-panel p:last-child {
    margin: 0.8rem 0 0;
    line-height: 1.72;
    color: var(--text-soft);
    white-space: pre-wrap;
}

body.is-modal-open {
    overflow: hidden;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: transform 0.75s var(--ease-main), opacity 0.75s var(--ease-main);
}

.legal {
    margin-top: 8rem;
    border: 1px solid var(--border-soft);
    border-radius: 1.1rem;
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: clamp(1.2rem, 2.2vw, 1.9rem);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.section-head-legal {
    margin-bottom: 1rem;
}

.legal-lead {
    margin: 0.7rem 0 0;
    max-width: 70ch;
    color: var(--text-soft);
}

.legal-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.legal-card {
    margin: 0;
    border: 1px solid var(--border-soft);
    border-radius: 0.85rem;
    padding: 0.95rem 1rem;
    background: linear-gradient( 135deg, color-mix(in srgb, var(--surface-strong) 86%, transparent) 0%, color-mix(in srgb, var(--surface) 72%, transparent) 100%);
}

.legal-card h3 {
    margin: 0;
    font-family: var(--font-brand);
    font-size: clamp(1rem, 2vw, 1.24rem);
}

.legal-updated {
    margin: 0.5rem 0 0;
    font-size: 0.72rem;
    color: var(--text-dim);
}

.legal-list {
    margin: 0.7rem 0 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.42rem;
}

.legal-list li {
    color: var(--text-soft);
    font-size: 0.82rem;
    line-height: 1.4;
}

.legal-doc {
    /* Removed overriding margin-top to prevent overlap with header */
}

.legal-doc-title {
    margin: 0.45rem 0 0;
    font-family: var(--font-brand);
    font-size: clamp(1.8rem, 4.2vw, 2.8rem);
    line-height: 1.05;
}

.legal-doc-meta {
    margin: 0.6rem 0 0;
    color: var(--text-dim);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.legal-doc-body {
    margin-top: 0.95rem;
    display: grid;
    gap: 0.95rem;
}

.legal-doc-body h2 {
    margin: 0.35rem 0 0;
    font-family: var(--font-brand);
    font-size: clamp(1.05rem, 1.9vw, 1.32rem);
    letter-spacing: 0.02em;
    color: color-mix(in srgb, var(--brand-gold) 78%, var(--text-main) 22%);
}

.legal-doc-body p,
.legal-doc-body li {
    margin: 0;
    color: color-mix(in srgb, var(--text-soft) 92%, #fff 8%);
    font-size: clamp(0.92rem, 1.5vw, 1rem);
    line-height: 1.72;
}

.legal-doc-body ul {
    margin: 0.05rem 0 0.2rem;
    padding-left: 1.3rem;
    display: grid;
    gap: 0.28rem;
}

.legal-doc-body p+h2,
.legal-doc-body ul+h2 {
    margin-top: 0.8rem;
    padding-top: 0.9rem;
    border-top: 1px solid color-mix(in srgb, var(--border-soft) 80%, transparent);
}

.legal-doc-body a {
    color: var(--brand-gold);
    text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, var(--brand-gold) 48%, transparent);
}

.legal-doc-body a:hover {
    color: color-mix(in srgb, var(--brand-gold) 82%, #fff 18%);
}


/* site-footer: Luxury Signature Refinement */

.site-footer {
    width: 100%;
    margin-top: clamp(4rem, 8vw, 6rem);
    padding-block: 4rem 3rem;
    border-top: 1px solid color-mix(in srgb, var(--brand-gold) 15%, transparent);
    background: linear-gradient(to bottom, #03040a, #010103);
    position: relative;
    overflow: hidden;
}

.footer-container {
    max-width: min(1440px, calc(100% - 4rem));
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    text-align: center;
}

.footer-brand {
    opacity: 0.9;
    filter: drop-shadow(0 0 15px color-mix(in srgb, var(--brand-gold) 20%, transparent));
}

.footer-logo-mark {
    display: block;
    width: clamp(5rem, 10vw, 7.5rem);
    aspect-ratio: 1 / 1;
    background: var(--brand-gold);
    -webkit-mask: url("assets/brand-mark-gold-trace.svg?v=20260418-2") center / contain no-repeat;
    mask: url("assets/brand-mark-gold-trace.svg?v=20260418-2") center / contain no-repeat;
    margin: 0 auto;
}

.footer-info p {
    margin: 0;
    color: var(--brand-gold);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    opacity: 0.75;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem 2.2rem;
    padding-top: 0.5rem;
}

.footer-legal a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: all 0.3s var(--ease-main);
    border-bottom: 1px solid transparent;
}

.footer-legal a:hover {
    color: var(--brand-gold);
    border-color: color-mix(in srgb, var(--brand-gold) 30%, transparent);
}

@media (max-width: 760px) {
    .site-footer {
        padding-inline: 1.5rem;
    }
    .footer-legal {
        gap: 1rem 1.5rem;
    }
    .footer-container {
        gap: 2rem;
    }
}

.back-to-top {
    position: fixed;
    right: clamp(0.7rem, 2vw, 1.2rem);
    bottom: clamp(0.9rem, 2.2vw, 1.3rem);
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--brand-gold) 48%, transparent);
    background: rgba(9, 12, 20, 0.92);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.95);
    transition: opacity 0.4s var(--ease-main), transform 0.4s var(--ease-main), visibility 0.4s;
    z-index: 1200;
}

.back-to-top img {
    width: 2rem;
    height: 2.25rem;
    display: block;
    opacity: 0.92;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    transform: translateY(-1px) scale(1.02);
    border-color: color-mix(in srgb, var(--brand-gold) 72%, transparent);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

body.is-low-power::before,
body.is-low-power::after,
body.is-low-power .grain-layer,
body.is-low-power .hero-scene::before {
    animation: none;
}

body.is-low-power::before,
body.is-low-power::after {
    content: none;
}

body.is-low-power .hero-scene::before {
    display: none;
}

body.is-low-power .waitlist-form button::after,
body.is-low-power .gallery-card::before,
body.is-low-power .gallery-card::after {
    display: none;
}

body.is-low-power .grain-layer,
body.is-low-power .hero-content::before,
body.is-low-power .hero-content::after {
    display: none;
}

body.is-low-power .gallery-card {
    transform: none;
    transition: border-color 0.24s var(--ease-main), box-shadow 0.24s var(--ease-main);
    will-change: auto;
}

body.is-low-power .hero {
    perspective: none;
}

body.is-low-power .hero-mastershot,
body.is-low-power .hero-mastershot img {
    transition: none;
}

body.is-low-power .hero-mastershot img {
    transform: none !important;
}

body.is-low-power .hero-content,
body.is-low-power .hero.is-sheet-dragging .hero-content,
body.is-low-power .hero.is-sheet-scrolling .hero-content,
body.is-low-power .hero.is-sheet-expanded .hero-content {
    transform: none !important;
    margin-bottom: 0;
    min-height: 0;
    transition: none;
    box-shadow: none;
    filter: none;
}

body.is-low-power .site-header,
body.is-low-power .page-loader,
body.is-low-power .back-to-top,
body.is-low-power .marquee,
body.is-low-power .editorial,
body.is-low-power .gallery,
body.is-low-power .site-footer,
body.is-low-power .legal {
    backdrop-filter: none;
}

body.is-low-power .back-to-top {
    animation: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.brand-copy-wrap {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.02em;
}

.brand-copy {
    font-size: 0.42em;
    line-height: 1;
    margin-top: 0.16em;
    opacity: 0.9;
}

@keyframes ambientDrift {
    from {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.8;
    }
    to {
        transform: translate3d(2.4vw, -2.2vh, 0) scale(1.08);
        opacity: 1;
    }
}

@keyframes grainShift {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(1px, -2px, 0);
    }
}

@keyframes loaderMarkFloat {
    from {
        transform: translateY(0) scale(1);
    }
    to {
        transform: translateY(-3px) scale(1.025);
    }
}

@keyframes counterGlow {
    0%,
    100% {
        opacity: 0.9;
        text-shadow: 0 0 12px color-mix(in srgb, var(--brand-gold) 24%, transparent);
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 24px color-mix(in srgb, var(--brand-gold) 44%, transparent);
    }
}

@keyframes ctaSheen {
    0% {
        transform: translateX(-110%) skewX(-20deg);
        opacity: 0;
    }
    12% {
        opacity: 0.9;
    }
    36% {
        transform: translateX(280%) skewX(-20deg);
        opacity: 0;
    }
    100% {
        transform: translateX(280%) skewX(-20deg);
        opacity: 0;
    }
}

@media (max-width: 1024px) {
    .hero {
        min-height: clamp(620px, 86vh, 780px);
    }
    .hero-content {
        padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
    }
    .hero-title {
        font-size: clamp(2.35rem, 6.1vw, 4rem);
    }
    .collector-card-inner {
        gap: 2.5rem;
    }
}

@media (max-width: 760px) {
    /* Reset Global Mobile Constraints */
    html {
        background-color: #04060f;
    }
    body {
        padding-inline: 0;
        font-size: 1.05rem;
        overflow-x: hidden;
        background-color: #04060f;
    }
    main {
        padding-bottom: 2rem;
    }
    .site-header {
        padding-inline: 1.25rem;
        min-height: 4.2rem;
        width: 100%;
    }

    .header-controls {
        gap: 0.4rem;
    }

    .back-home-link {
        padding-inline: 0.7rem;
        min-height: 1.65rem;
        font-size: 0.62rem;
    }

    body.is-home:not(.is-scrolled) .site-header {
        background: rgba(4, 6, 15, 0.82);
        backdrop-filter: blur(12px);
        border-bottom-color: rgba(200, 173, 86, 0.12);
    }
    .hero {
        --mobile-sheet-offset: 0px;
        --mobile-sheet-layout-offset: 0px;
        --mobile-sheet-progress: 0;
        --mobile-sheet-scale: 1;
        --mobile-sheet-peek: clamp(18px, 4.5vw, 24px);
        --mobile-sheet-height: 0px;
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 0;
        max-height: none;
        width: 100%;
        background: var(--bg-primary);
        box-shadow: none;
        overflow: hidden;
        perspective: 1400px;
    }
    .hero.is-sheet-expanded,
    .hero.is-sheet-settling {
        overflow: visible;
    }
    .hero-scene {
        height: clamp(300px, calc(100svh - 4.2rem - var(--mobile-sheet-peek)), 780px);
        min-height: 300px;
        width: 100%;
        order: 1;
        position: relative;
        z-index: 1;
        overflow: hidden;
        flex: 0 0 auto;
    }
    .hero-mastershot {
        position: relative;
        z-index: 0;
        height: 100%;
    }
    .hero-scene::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient(to bottom, rgba(4, 6, 15, 0.04), rgba(4, 6, 15, 0.22)), linear-gradient(to top, rgba(4, 6, 15, 0.14), transparent 36%);
        opacity: calc(0.08 + (var(--mobile-sheet-progress) * 0.2));
        transition: opacity 280ms ease;
        pointer-events: none;
    }
    .hero-mastershot img {
        transform: none !important;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 15%;
        /* Targeted crop for faces in portrait */
        filter: saturate(0.95) brightness(0.8);
        transition: transform 3s ease-out;
    }
    body.is-ready .hero-mastershot img {
        transform: scale(1.05);
        /* Subtle cinematic zoom-in */
    }
    .hero-scene::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 2;
        background: linear-gradient(to bottom, transparent 54%, rgba(4, 6, 15, 0.16) 74%, rgba(4, 6, 15, 0.58) 88%, var(--bg-primary) 100%);
        pointer-events: none;
    }
    .hero-content {
        order: 2;
        width: 100%;
        height: auto;
        flex: 0 0 auto;
        grid-column: auto;
        margin-top: 0;
        margin-bottom: var(--mobile-sheet-layout-offset);
        min-height: var(--mobile-sheet-height);
        padding: 2rem 1.2rem calc(1.2rem + env(safe-area-inset-bottom, 0px));
        background: var(--bg-primary);
        text-align: left;
        position: relative;
        z-index: 2;
        border-top: 1px solid rgba(200, 173, 86, 0.15);
        box-shadow: 0 -30px 60px rgba(0, 0, 0, 0.8);
        transform: translate3d(0, var(--mobile-sheet-offset), 0) scale(var(--mobile-sheet-scale));
        transform-origin: center top;
        transition: transform 500ms cubic-bezier(0.14, 1, 0.24, 1.02), margin-bottom 500ms cubic-bezier(0.14, 1, 0.24, 1.02), box-shadow 280ms ease, border-color 260ms ease, filter 280ms ease;
        will-change: transform;
        isolation: isolate;
    }
    .hero-content::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 20px;
        background: radial-gradient(ellipse 72px 20px at 50% 0, rgba(0, 0, 0, 0.28), transparent 72%), linear-gradient(90deg, transparent, rgba(200, 173, 86, 0.1) 18%, rgba(200, 173, 86, 0.24) 36%, rgba(242, 236, 223, 0.62) 50%, rgba(200, 173, 86, 0.24) 64%, rgba(200, 173, 86, 0.1) 82%, transparent) top / 100% 1px no-repeat;
        opacity: calc(0.56 - (var(--mobile-sheet-progress) * 0.2));
        pointer-events: none;
    }
    .hero-content::after {
        content: "";
        position: absolute;
        left: 50%;
        top: -11px;
        width: 62px;
        height: 22px;
        border-radius: 999px 999px 10px 10px;
        transform: translate3d(-50%, 0, 0);
        background: radial-gradient(circle at 50% 38%, rgba(214, 184, 95, 0.96) 0 1.7px, rgba(214, 184, 95, 0.28) 1.8px 4.3px, transparent 4.6px), linear-gradient(90deg, transparent 0, rgba(214, 184, 95, 0.06) 24%, rgba(242, 236, 223, 0.74) 50%, rgba(214, 184, 95, 0.06) 76%, transparent 100%) center 62% / 18px 1px no-repeat, linear-gradient(180deg, rgba(19, 24, 36, 0.98) 0%, rgba(12, 16, 26, 0.99) 66%, rgba(9, 12, 20, 1) 100%);
        border: 1px solid rgba(200, 173, 86, 0.34);
        border-bottom: 0;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), 0 2px 7px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -8px 12px rgba(0, 0, 0, 0.16);
        opacity: calc(0.96 - (var(--mobile-sheet-progress) * 0.34));
        pointer-events: none;
        animation: mobileSeamCueFloat 7.2s cubic-bezier(0.32, 0.08, 0.2, 1) infinite;
    }
    .hero.is-sheet-dragging .hero-content,
    .hero.is-sheet-scrolling .hero-content {
        transition: none;
        box-shadow: 0 -42px 76px rgba(0, 0, 0, 0.82), 0 20px 34px rgba(0, 0, 0, 0.18);
        filter: brightness(1.015);
    }
    .hero.is-sheet-expanded .hero-content {
        box-shadow: 0 -46px 88px rgba(0, 0, 0, 0.84), 0 20px 34px rgba(0, 0, 0, 0.16);
        border-top-color: rgba(200, 173, 86, 0.26);
        filter: brightness(1.03);
        z-index: 6;
    }
    .hero.is-sheet-expanded .hero-content::after,
    .hero.is-sheet-settling .hero-content::after,
    .hero.is-seam-cue-muted .hero-content::after {
        opacity: 0;
        animation: none;
    }
    .collector-card {
        height: auto;
    }
    .collector-card-inner {
        height: auto;
        justify-content: flex-start;
        gap: clamp(1.05rem, 4.5vw, 1.65rem);
    }
    .collector-card-body {
        flex-grow: 0;
        justify-content: flex-start;
        gap: 0.95rem;
    }
    .collector-card-foot {
        gap: 0.75rem;
        margin-top: 0.35rem;
    }
    .waitlist-form {
        gap: 0.58rem;
    }
    .waitlist-form input {
        min-height: 3.45rem;
        font-size: 1.03rem;
        margin-bottom: 0.62rem;
    }
    .waitlist-form button {
        min-height: 3.45rem;
    }
    .waitlist-feedback {
        min-height: 0.85rem;
        font-size: 0.8rem;
    }
    @keyframes mobileSeamCueFloat {
        0%,
        100% {
            transform: translate3d(-50%, 0, 0);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), 0 2px 7px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -8px 12px rgba(0, 0, 0, 0.16);
        }
        50% {
            transform: translate3d(-50%, -2px, 0);
            box-shadow: 0 11px 24px rgba(0, 0, 0, 0.22), 0 3px 9px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -8px 12px rgba(0, 0, 0, 0.16), 0 0 16px rgba(200, 173, 86, 0.07);
        }
    }
    .collector-card-inner {
        gap: clamp(1.05rem, 4.5vw, 1.65rem);
    }
    .hero-title {
        font-size: clamp(2.85rem, 13vw, 4.1rem);
        line-height: 0.9;
        letter-spacing: -0.03em;
        margin-inline: 0;
    }
    .hero-meta {
        padding-left: 1rem;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0.72rem;
    }
    .hero-meta li {
        width: 100%;
        text-align: left;
        font-size: 0.8rem;
        line-height: 1.45;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        color: var(--brand-gold);
        opacity: 0.7;
    }
    .waitlist-form {
        width: 100%;
        margin-top: 0.6rem;
    }
    .waitlist-row {
        grid-template-columns: 1fr;
        gap: 0;
        border-bottom: none;
    }
    .waitlist-form input {
        min-height: 3.45rem;
        text-align: left;
        border: 1px solid rgba(242, 236, 223, 0.15);
        background: rgba(255, 255, 255, 0.03);
        margin-bottom: 0.62rem;
        padding-inline: 1rem;
        border-radius: 2px;
        font-size: 1.03rem;
    }
    .waitlist-form button {
        width: 100%;
        min-height: 3.45rem;
        background: var(--brand-gold);
        color: var(--brand-on-gold);
        border: 1px solid var(--brand-gold);
        font-size: 0.92rem;
        font-weight: 700;
        border-radius: 2px;
        box-shadow: 0 15px 30px rgba(200, 173, 86, 0.15);
    }
    .hero-vignette {
        display: none;
        /* Hide the vertical separator on mobile */
    }
    .hero-status-group {
        justify-content: flex-start;
        margin-top: 0.45rem;
        opacity: 0.6;
    }
    .consent-check {
        align-items: flex-start;
        gap: 0.62rem;
        font-size: 0.72rem;
        line-height: 1.5;
        text-align: left;
    }
    .waitlist-feedback {
        min-height: 0.85rem;
        font-size: 0.8rem;
        text-align: left;
    }
    /* Vision Section: Focused Single-Column Carousel */
    .vision-section {
        margin-top: clamp(8rem, 22vw, 10rem);
        padding-inline: 0;
        width: 100%;
        gap: 2rem;
    }
    .vision-header {
        padding-inline: 1.25rem;
        text-align: left;
    }
    .vision-viewport {
        overflow: hidden;
        /* Clips other acts */
        width: 100%;
        padding-bottom: 0rem;
    }
    .vision-rail {
        display: flex;
        width: 100%;
    }
    .vision-act {
        flex: 0 0 100%;
        padding-inline: 1.25rem;
        padding-block: 0;
        border: none;
        text-align: left;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    .act-number {
        font-size: clamp(4.5rem, 15vw, 6rem);
        opacity: 0.25;
        margin-bottom: -1rem;
    }
    .act-content h3 {
        font-size: 1.6rem;
        line-height: 1.2;
    }
    .act-content p {
        font-size: 1.1rem;
        line-height: 1.6;
        max-width: none;
    }
    .vision-controls {
        display: flex;
        padding-inline: 1.25rem;
        margin-top: 0;
    }
    /* Archive Selection */
    .archive-selection {
        padding-inline: 1.25rem;
        margin-top: 6rem;
    }
    .archive-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .archive-head {
        text-align: center;
        margin-inline: auto;
    }
    /* Story Journey (Chapters) - THE FIX */
    .story-journey {
        width: 100%;
        margin-top: 8rem;
        padding-inline: 0;
    }
    .story-journey .section-head-journey {
        padding-inline: 1.25rem;
        text-align: center;
        margin-inline: auto;
    }
    .journey-shell {
        grid-template-columns: 1fr;
        gap: 0;
    }
    /* Move progress to a subtle horizontal bar or just stack */
    .journey-rail {
        position: relative;
        top: 0;
        height: auto;
        padding-inline: 1.25rem;
        margin-bottom: 2.5rem;
        grid-template-rows: auto auto;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .journey-edge {
        writing-mode: initial;
        transform: none;
        min-width: 0;
        width: 100%;
        text-align: center;
        font-size: 0.75rem;
    }
    .journey-line {
        width: 100%;
        height: 1px;
    }
    .journey-track {
        display: flex;
        flex-direction: row;
        /* Keep horizontal swipe but full-width cards */
        overflow-x: auto;
        padding-inline: 1.25rem;
        gap: 1.25rem;
        scroll-snap-type: x mandatory;
    }
    .journey-track .journey-card {
        flex: 0 0 100%;
        max-width: 100%;
        scroll-snap-align: center;
        padding: 3rem 1.5rem;
        margin-left: 0 !important;
    }
    /* Final Invitation */
    .final-invitation {
        padding-inline: 1.25rem;
        text-align: center;
    }
    .invitation-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .invitation-content {
        max-width: none;
    }
    .invitation-action {
        align-items: center;
        width: 100%;
    }
    .invitation-btn {
        width: 100%;
        justify-content: center;
    }
    /* Footer */
    .site-footer {
        padding-inline: 1.25rem;
    }
    .footer-legal {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem 1.8rem;
        text-align: center;
        padding-inline: 1rem;
    }
    /* Marquee / Filmstrip Mobile Refinement */
    .marquee {
        --film-image-h: 190px;
        margin-top: 4.5rem;
        margin-bottom: 4.5rem;
        padding-block: 3rem;
    }
    /* Make the background bar frame the images properly */
    .marquee::before {
        height: calc(var(--film-image-h) + (var(--film-strip-h) * 2) + 2rem + 4px);
        opacity: 0.98;
    }
    /* Perforation adjustment for mobile */
    .marquee-track::before {
        height: calc(var(--film-strip-h) + 2px);
    }
    .marquee-track::after {
        height: calc(var(--film-strip-h) + 2px);
    }
    .marquee-track {
        animation-duration: 45s;
        /* Faster movement (was 72s or inheriting longer) */
    }
    /* Make images larger by default */
    .marquee-track img {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        border-width: 0.5px;
    }
    /* Dramatic breakout and focus on touch/hover */
    .marquee-track picture.is-touch-active {
        z-index: 100;
    }
    .marquee-track picture.is-touch-active img {
        transform: scale(1.1) translateZ(60px);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 20px rgba(200, 173, 86, 0.3);
        border-color: var(--brand-gold);
    }
    .marquee-track picture {
        flex: 0 0 240px;
        /* Increased width */
        padding-block: 0px;
    }
    .marquee-track picture.marquee-portrait {
        flex: 0 0 130px;
        /* Increased width */
    }
    .back-to-top {
        right: 1.25rem;
        bottom: 1.5rem;
        width: 3.4rem;
        height: 3.4rem;
    }
}

@media (max-width: 760px) and (hover: hover) and (pointer: fine) {
    .marquee-track picture:hover {
        z-index: 100;
    }

    .marquee-track picture:hover img {
        transform: scale(1.1) translateZ(60px);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 20px rgba(200, 173, 86, 0.3);
        border-color: var(--brand-gold);
    }
}

@keyframes journeyMobileGlow {
    from {
        opacity: 0.4;
        transform: translateX(-1.8%);
    }
    to {
        opacity: 0.82;
        transform: translateX(1.8%);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
