/* ── RESET ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* blacks */
    --bg: #080808;
    --surface: #101010;
    --surface-2: #181818;
    --border: #2A2A2A;
    --border-2: #383838;

    /* cream / parchment */
    --cream: #F5EFE0;
    --cream-light: #FAF6ED;
    --cream-bright: #FDFAF4;
    --cream-dim: rgba(245, 239, 224, 0.08);
    --cream-border: rgba(245, 239, 224, 0.18);

    /* wine / champagne */
    --wine: #7B2D3E;
    --champ: #C9955A;
    --champ-light: #DEBB8A;
    --champ-bright: #EDD9B0;
    --champ-dim: rgba(201, 149, 90, 0.09);
    --champ-border: rgba(201, 149, 90, 0.25);

    /* aliases kept so existing code referencing --gold still works */
    --gold: var(--champ);
    --gold-light: var(--champ-light);
    --gold-bright: var(--champ-bright);
    --gold-dim: var(--champ-dim);
    --gold-border: var(--champ-border);

    /* text */
    --text-1: #F5EFE0;
    --text-2: #B0A898;
    --text-3: #6A6258;
}

html,
body {
    height: 100%;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}


/* ─────────────────────────────────────────
   BACKGROUND IMAGE SLIDER
───────────────────────────────────────── */
.bg-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: translateZ(0);
    /* slow Ken-Burns drift */
    animation: kenBurns 28s linear infinite;
    transform-origin: center;
    transition: opacity 2.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity;
    backface-visibility: hidden;
}

.bg-slide.active {
    opacity: 1;
}

/* cycle through kenBurns1-4 across all 18 slides */
.bg-slide:nth-child(4n+1) {
    animation-name: kenBurns1;
}

.bg-slide:nth-child(4n+2) {
    animation-name: kenBurns2;
}

.bg-slide:nth-child(4n+3) {
    animation-name: kenBurns3;
}

.bg-slide:nth-child(4n+0) {
    animation-name: kenBurns4;
}

@keyframes kenBurns1 {
    0% {
        transform: scale(1.05) translate3d(0%, 0%, 0);
    }

    50% {
        transform: scale(1.12) translate3d(-1.2%, -0.8%, 0);
    }

    100% {
        transform: scale(1.05) translate3d(0%, 0%, 0);
    }
}

@keyframes kenBurns2 {
    0% {
        transform: scale(1.06) translate3d(1%, 0.6%, 0);
    }

    50% {
        transform: scale(1.13) translate3d(-0.6%, -1%, 0);
    }

    100% {
        transform: scale(1.06) translate3d(1%, 0.6%, 0);
    }
}

@keyframes kenBurns3 {
    0% {
        transform: scale(1.08) translate3d(-1%, 1%, 0);
    }

    50% {
        transform: scale(1.04) translate3d(1.4%, -0.4%, 0);
    }

    100% {
        transform: scale(1.08) translate3d(-1%, 1%, 0);
    }
}

@keyframes kenBurns4 {
    0% {
        transform: scale(1.05) translate3d(0.6%, -0.6%, 0);
    }

    50% {
        transform: scale(1.12) translate3d(-1%, 1%, 0);
    }

    100% {
        transform: scale(1.05) translate3d(0.6%, -0.6%, 0);
    }
}

.bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        /* dynamic theme tint glow */
        radial-gradient(ellipse 110% 75% at 50% 10%, var(--overlay-tint, rgba(217, 167, 115, 0.16)) 0%, transparent 75%),
        /* cinematic dark scrim */
        linear-gradient(to bottom,
            rgba(4, 4, 6, 0.82) 0%,
            rgba(4, 4, 6, 0.45) 38%,
            rgba(4, 4, 6, 0.68) 72%,
            rgba(4, 4, 6, 0.95) 100%);
    transition: background 2.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* soft vignette ring & spotlight beam */
.bg-vignette {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        radial-gradient(ellipse 95% 95% at 50% 50%,
            transparent 22%,
            rgba(4, 4, 6, 0.50) 65%,
            rgba(4, 4, 6, 0.88) 100%),
        radial-gradient(circle at 50% 0%, var(--arch-glow-color, rgba(217, 167, 115, 0.15)) 0%, transparent 60%);
    transition: background 2.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* subtle dot grid on top of photo */
.bg-grid {
    position: absolute;
    inset: 0;
    z-index: 3;
    background-image: radial-gradient(circle, rgba(245, 239, 224, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}


/* ─────────────────────────────────────────
   ARCH SILHOUETTE
───────────────────────────────────────── */
.arch-wrap {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(520px, 80vw);
    height: min(480px, 65vh);
    pointer-events: none;
    z-index: 4;
}

.arch-outer {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(245, 239, 224, 0.12);
    border-radius: min(260px, 40vw) min(260px, 40vw) 0 0;
}

.arch-inner {
    position: absolute;
    inset: 22px;
    border: 1px solid rgba(245, 239, 224, 0.06);
    border-radius: min(238px, 38vw) min(238px, 38vw) 0 0;
}

.arch-glow {
    display: block;
    position: absolute;
    inset: -30px;
    background: radial-gradient(ellipse at 50% 50%, var(--arch-glow-color, rgba(217, 167, 115, 0.22)) 0%, transparent 70%);
    filter: blur(35px);
    opacity: 0.85;
    transition: background 2s ease, opacity 2s ease;
    pointer-events: none;
}


/* ─────────────────────────────────────────
   PARTICLES
───────────────────────────────────────── */
.particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: var(--particle-color, var(--gold));
    opacity: 0;
    animation: particleFloat var(--dur) ease-in-out var(--delay) infinite;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) scale(1);
    }

    20% {
        opacity: 0.55;
    }

    80% {
        opacity: 0.25;
    }

    100% {
        opacity: 0;
        transform: translateY(-125px) scale(0.35);
    }
}


/* ─────────────────────────────────────────
   CONTENT
───────────────────────────────────────── */
.content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    opacity: 0;
    animation: fadeIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

/* Eyebrow */
.eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.40em;
    text-transform: uppercase;
    color: var(--champ-light);
    margin-bottom: 26px;
    text-shadow:
        0 0 24px rgba(201, 149, 90, 0.40),
        0 0 60px rgba(201, 149, 90, 0.15);
}

/* Headline wrap */
.headline-wrap {
    position: relative;
    width: 100%;
    height: calc(clamp(42px, 8vw, 96px) * 1.08 * 2 + 8px);
    overflow: hidden;
    margin-bottom: 4px;
}

.headline {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(42px, 8vw, 96px);
    font-weight: 600;
    line-height: 1.08;
    color: var(--text-1);
    letter-spacing: -0.018em;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    pointer-events: none;
    text-shadow: 0 2px 50px rgba(0, 0, 0, 0.7), 0 0 120px rgba(217, 167, 115, 0.06);
    backface-visibility: hidden;
    will-change: opacity, transform, filter;
    transform: translateY(0);
    filter: blur(0);
}

.headline.active {
    opacity: 1;
    pointer-events: auto;
    animation: headlineFadeIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.headline.leaving {
    opacity: 1;
    pointer-events: none;
    animation: headlineFadeOut 0.65s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}

/* ── Headline Smooth Fade Keyframes ── */
@keyframes headlineFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
        filter: blur(4px);
    }

    40% {
        filter: blur(0px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes headlineFadeOut {
    0% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-8px);
        filter: blur(3px);
    }
}

/* Subtitle */
.sub {
    font-size: clamp(14.5px, 2vw, 17.5px);
    font-weight: 400;
    line-height: 1.8;
    color: rgba(245, 239, 224, 0.82);
    max-width: 560px;
    margin-bottom: 44px;
    letter-spacing: 0.01em;
}


/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 48px;
    position: relative;
    z-index: 15;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 34px;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.06em;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* shimmer sweep */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.09) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.5s ease;
    pointer-events: none;
}

.btn:hover::after {
    transform: translateX(120%);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

/* Primary — champagne → wine, dark text, no glow */
.btn-primary {
    background: var(--champ);
    color: #1A0808;
    border: 1px solid var(--border-accent);
    font-weight: 600;
    letter-spacing: 0.06em;
    transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.btn-primary:hover {
    background: var(--champ-light);
    border-color: var(--border-accent);
}

/* Secondary — cream-tinted glass */
.btn-secondary {
    background: rgba(245, 239, 224, 0.05);
    color: var(--cream);
    border-color: rgba(245, 239, 224, 0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.btn-secondary:hover {
    background: rgba(245, 239, 224, 0.10);
    border-color: rgba(245, 239, 224, 0.32);
}





/* ─────────────────────────────────────────
   BOTTOM BAR
───────────────────────────────────────── */
.bottom-bar {
    position: absolute;
    bottom: 18px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    color: rgba(245, 239, 224, 0.8);
    letter-spacing: 0.05em;
    opacity: 0;
    animation: fadeIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
    padding: 0 24px;
    z-index: 20;
    pointer-events: none;
}

.footer-links-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    margin: 0;
    font-size: 10.5px;
}

.bottom-bar a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
    pointer-events: auto;
}

.bottom-bar a:hover {
    color: var(--champ-bright, #EDD9B0);
}

.version-badge {
    color: inherit;
    font-size: inherit;
}

/* ─────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────── */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(7px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ─────────────────────────────────────────
   RESPONSIVE — TABLET (≤ 768px)
───────────────────────────────────────── */
@media (max-width: 768px) {

    .hero {
        height: 100vh;
        height: 100svh;
    }

    .headline {
        font-size: clamp(38px, 9vw, 64px);
    }

    .headline-wrap {
        height: calc(clamp(38px, 9vw, 64px) * 1.08 * 2 + 8px);
    }

    .sub {
        font-size: 15px;
        max-width: 420px;
    }

    .bottom-bar {
        font-size: 10.5px;
        bottom: 14px;
    }
}


/* ─────────────────────────────────────────
   RESPONSIVE — MOBILE (≤ 480px)
───────────────────────────────────────── */
@media (max-width: 480px) {
    .content {
        padding: 0 20px 24px;
    }

    .eyebrow {
        font-size: 10px;
        letter-spacing: 0.28em;
        margin-bottom: 20px;
    }

    .headline {
        font-size: clamp(38px, 11.5vw, 52px);
    }

    .headline-wrap {
        height: calc(clamp(38px, 11.5vw, 52px) * 1.08 * 3 + 8px);
        margin-bottom: 4px;
    }

    .sub {
        font-size: 14px;
        line-height: 1.75;
        margin-bottom: 30px;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
        margin-bottom: 36px;
    }

    .btn {
        justify-content: center;
        padding: 14px 28px;
        width: 100%;
    }

    .arch-wrap {
        height: min(350px, 50vh);
    }

    .bottom-bar {
        font-size: 10px;
        bottom: 10px;
        gap: 5px;
        z-index: 20;
    }
}


/* ─────────────────────────────────────────
   RESPONSIVE — SMALL MOBILE (≤ 360px)
───────────────────────────────────────── */
@media (max-width: 360px) {
    .headline {
        font-size: clamp(34px, 10.5vw, 40px);
    }

    .headline-wrap {
        height: calc(clamp(34px, 10.5vw, 40px) * 1.08 * 3 + 8px);
    }

    .sub {
        font-size: 13px;
    }
}


/* ─────────────────────────────────────────
   TALL SCREENS
───────────────────────────────────────── */
@media (min-height: 900px) {
    .sub {
        margin-bottom: 52px;
    }

    .btn-group {
        margin-bottom: 56px;
    }
}

/* ─────────────────────────────────────────
   ACCESSIBILITY / REDUCED MOTION
───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

    .content,
    .bottom-bar,
    .headline {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}

/* ─────────────────────────────────────────
   FOCUS STATES
───────────────────────────────────────── */
.btn:focus-visible,
.bottom-bar a:focus-visible {
    outline: 2px solid var(--champ-light);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ═══════════════════════════════════════════════════
   SOFT UI THEME — matches the portal (dark)
═══════════════════════════════════════════════════ */
:root {
    --bg:           #080707;
    --surface:      #121111;
    --surface-2:    #1b1a1a;
    --border:       #201f1f;
    --border-2:     #2e2d2d;

    --text-1:       #f5f5f5;
    --text-2:       #a3a3a3;
    --text-3:       #727272;

    --champ:        #e8e8e8;
    --champ-light:  #f2f2f2;
    --champ-bright: #fafafa;
    --champ-dim:    rgba(255, 255, 255, 0.084);
    --champ-border: rgba(255, 255, 255, 0.30);

    --btn-solid-bg: #f5f5f5;
    --btn-solid-fg: #080707;
}

html,
body {
    background: var(--bg);
}

/* deeper, neutral scrim over the photos */
.bg-overlay {
    background:
        radial-gradient(ellipse 110% 75% at 50% 10%, var(--overlay-tint, rgba(255, 255, 255, 0.05)) 0%, transparent 75%),
        linear-gradient(to bottom,
            rgba(8, 7, 7, 0.84) 0%,
            rgba(8, 7, 7, 0.50) 38%,
            rgba(8, 7, 7, 0.72) 72%,
            rgba(8, 7, 7, 0.97) 100%);
}

.bg-vignette {
    background:
        radial-gradient(ellipse 95% 95% at 50% 50%, transparent 22%, rgba(8, 7, 7, 0.55) 65%, rgba(8, 7, 7, 0.92) 100%),
        radial-gradient(circle at 50% 0%, var(--arch-glow-color, rgba(255, 255, 255, 0.06)) 0%, transparent 60%);
}

.bg-grid {
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

.arch-outer {
    border-color: rgba(255, 255, 255, 0.10);
}

.arch-inner {
    border-color: rgba(255, 255, 255, 0.05);
}

/* eyebrow in the sage accent, without the warm glow */
.eyebrow {
    color: var(--champ);
    text-shadow: none;
}

.headline {
    color: var(--text-1);
}

.sub {
    color: rgba(245, 245, 245, 0.78);
}

/* buttons: solid light pill + outlined pill */
.btn {
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.btn::after {
    display: none;
}

.btn-primary {
    background: var(--btn-solid-bg);
    color: var(--btn-solid-fg);
    border: 1px solid var(--btn-solid-bg);
}

.btn-primary:hover {
    background: color-mix(in srgb, var(--btn-solid-bg) 86%, var(--champ));
    border-color: color-mix(in srgb, var(--btn-solid-bg) 86%, var(--border-accent));
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-1);
    border: 1px solid rgba(245, 245, 245, 0.32);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(245, 245, 245, 0.55);
    transform: translateY(-1px);
}

.bottom-bar {
    color: rgba(245, 245, 245, 0.72);
}

.bottom-bar a:hover {
    color: var(--champ-light);
}

.btn:focus-visible,
.bottom-bar a:focus-visible {
    outline-color: var(--champ-light);
    border-radius: 999px;
}

/* Borders use a neutral light grey, not the accent colour */
:root,
html[data-theme="dark"] {
    --border-accent: #8a8a8a;
    --champ-border: rgba(255, 255, 255, 0.16);
    --gold-border: rgba(255, 255, 255, 0.16);
    --focus-ring: 0 0 0 2px rgba(255, 255, 255, 0.22);
}

html[data-theme="light"] {
    --border-accent: #5c5c5c;
    --champ-border: rgba(0, 0, 0, 0.18);
    --gold-border: rgba(0, 0, 0, 0.18);
    --focus-ring: 0 0 0 2px rgba(0, 0, 0, 0.18);
}

/* No outline or glow ring on focused inputs */
input:focus,
input:focus-visible,
select:focus,
select:focus-visible,
textarea:focus,
textarea:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}