:root {
    --gold: #C2AB00;
    --goldb: #E8D000;
    --gdim: rgba(194, 171, 0, .15);
    --gglow: rgba(194, 171, 0, .5);
    --bg: #03100E;
    --teal: #0C2323;
    --ink: #F0EDE8;
    --muted: rgba(240, 237, 232, .42);
    --hl: rgba(240, 237, 232, .07);
    --hb: rgba(240, 237, 232, .12);
        --e-global-color-primary: #0C2323;
    --e-global-color-secondary: #D3CDC6;
    --e-global-color-text: #0C2323;
    --e-global-color-accent: #C2AB00;
    --e-global-color-2f0b43d: #272727;
    --e-global-color-474f0a9: #02010100;
    --e-global-color-312855e: #E2DEDA;
    --e-global-typography-primary-font-family: "Syne";
    --e-global-typography-primary-font-size: 35px;
    --e-global-typography-primary-font-weight: 700;
    --e-global-typography-primary-text-transform: none;
    --e-global-typography-primary-font-style: normal;
    --e-global-typography-primary-text-decoration: none;
    --e-global-typography-primary-line-height: 1em;
    --e-global-typography-primary-letter-spacing: 0px;
    --e-global-typography-primary-word-spacing: 0em;
    --e-global-typography-secondary-font-family: "Syne";
    --e-global-typography-secondary-font-size: 24px;
    --e-global-typography-secondary-font-weight: 700;
    --e-global-typography-secondary-font-style: normal;
    --e-global-typography-secondary-text-decoration: none;
    --e-global-typography-secondary-line-height: 1.7em;
    --e-global-typography-secondary-letter-spacing: 0px;
    --e-global-typography-secondary-word-spacing: 0em;
    --e-global-typography-text-font-family: "Space Grotesk";
    --e-global-typography-text-font-size: 22px;
    --e-global-typography-text-font-weight: 400;
    --e-global-typography-text-line-height: 1.7em;
    --e-global-typography-text-letter-spacing: 0px;
    --e-global-typography-text-word-spacing: 0em;
    --e-global-typography-accent-font-family: "Space Grotesk";
    --e-global-typography-accent-font-size: 18px;
    --e-global-typography-accent-font-weight: 500;
    --e-global-typography-accent-text-transform: none;
    --e-global-typography-accent-font-style: normal;
    --e-global-typography-accent-text-decoration: none;
    --e-global-typography-accent-line-height: 1.4em;
    --e-global-typography-accent-letter-spacing: 0px;
    --e-global-typography-accent-word-spacing: 0em;
    --e-global-typography-ad23919-font-family: "Syne";
    --e-global-typography-ad23919-font-size: 18px;
    --e-global-typography-ad23919-font-weight: 700;
    --e-global-typography-ad23919-line-height: 1em;
    --e-global-typography-2b6f268-font-family: "Syne";
    --e-global-typography-2b6f268-font-size: 50px;
    --e-global-typography-2b6f268-font-weight: 800;
    --e-global-typography-2b6f268-line-height: 1.4em;

    /* Home Animation font tokens: adjust these 3 vars globally */
    --ha-font-display: var(--e-global-typography-2b6f268-font-family), "Syne", sans-serif;
    --ha-font-body: var(--e-global-typography-text-font-family), "Space Grotesk", sans-serif;
    --ha-font-ui: var(--e-global-typography-accent-font-family), var(--ha-font-body);
}

/* ═══════════════════════════════════════════
   HERO — sticky 3D canvas
═══════════════════════════════════════════ */
#hero-pin {
    height: 900vh;
    position: relative;
    font-family: var(--ha-font-body)
}

#hero-sticky {
    position: sticky;
    top: 0;
    height: 100svh;
    overflow: hidden
}

#c {
    display: block;
    width: 100%;
    height: 100%
}

/* HUD LAYERS (above canvas, pointer-events:none by default) */
#hud {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none
}

/* Counter — top-left */
#counter {
    position: absolute;
    top: 50%;
    left: clamp(20px, 4vw, 52px);
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transition: opacity .5s;
}

#counter.show {
    opacity: 1
}

#cnum {
    line-height: 1;
    color: rgba(194, 171, 0, .08);
    letter-spacing: .02em
}

#ctotal {
    letter-spacing: .3em;
    color: var(--muted);
    padding-left: 4px
}

/* Station panel — right side */
#station {
    position: absolute;
    top: 50%;
    left: 60%;
    width: min(100%, clamp(220px, 40vw, 610px));
    opacity: 0;
    transition: transform .75s cubic-bezier(.2, .9, .3, 1);
    transform: translateY(-50%) translateX(clamp(12px, 2vw, 24px));
}

#station.show {
    opacity: 1;
    transform: translateY(-50%) translateX(-60%)
}

.st-tag {
    font-family: var(--ha-font-ui);
    font-size: clamp(9px, 0.7vw, 12px);
    letter-spacing: .38em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: clamp(8px, 1.2vw, 14px)
}

h2.st-h {
    font-family: var(--ha-font-display);
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: clamp(8px, 1vw, 12px);
    font-size: clamp(1.35rem, 3.8vw, min(var(--e-global-typography-2b6f268-font-size), 3.4rem));
    overflow-wrap: anywhere;
}

.st-p {
    font-family: var(--ha-font-body);
    font-size: clamp(.95rem, 1.6vw, 1.35rem);
    line-height: 1.75;
    overflow-wrap: anywhere;
    color: var(--muted)
}

.st-chips {
    margin-top: clamp(10px, 1.4vw, 18px);
    display: flex;
    flex-wrap: wrap;
    gap: clamp(8px, 1.4vw, 18px);
    font-weight: 500;
}

.st-chip {
    font-family: var(--ha-font-ui);
    padding: clamp(2px, 0.4vw, 4px) clamp(6px, 1vw, 10px);
    border-radius: 3px;
    border: 1px solid var(--hb);
    color: var(--muted);
    font-size: clamp(10px, 0.95vw, 14px);
    text-transform: uppercase;
    letter-spacing: clamp(0.8px, 0.2vw, 2px);
}

/* Intro text — center, fades on first scroll */
#intro {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 clamp(20px, 8vw, 120px);
    transition: transform .7s ease;
}

#intro.hide {
    opacity: 0;
    pointer-events: none;
    transform: scale(.97)
}

#intro-ey {
    font-family: var(--ha-font-ui);
    font-size: clamp(12px, 1.6vw, 20px);
    letter-spacing: .5em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: clamp(12px, 2vw, 20px);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .6s, transform .6s;
}

#intro-ey.in {
    opacity: 1;
    transform: none
}

#intro-h {
    font-family: var(--ha-font-display);
    font-size: clamp(1.9rem, 7vw, min(var(--e-global-typography-2b6f268-font-size), 4.6rem));
    line-height: 1;
    letter-spacing: .02em;
    color: var(--ink);
    opacity: 0;
    text-align: center;
    transform: translateY(16px);
    transition: opacity .7s .1s, transform .7s .1s;
}

#intro-h.in {
    opacity: 1;
    transform: none
}

#intro-h .g {
    color: var(--gold)
}

#intro-sc {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: opacity .7s .3s
}

#intro-sc.in {
    opacity: 1
}

#intro-sc span {
    letter-spacing: .5em;
    text-transform: uppercase;
    color: var(--muted)
}

.shl {
    width: 1px;
    height: 34px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: shlp 2s ease-in-out infinite
}

@keyframes shlp {

    0%,
    100% {
        opacity: .4;
        transform: scaleY(1)
    }

    50% {
        opacity: 1;
        transform: scaleY(.45)
    }
}

/* Phase progress dots — bottom center */
#dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity .5s;
}

#dots.show {
    opacity: 1
}

.dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(194, 171, 0, .2);
    transition: background .4s, transform .4s
}

.dot.act {
    background: var(--gold);
    transform: scale(1.5)
}

/* Scroll ring — bottom right */
#sring {
    position: absolute;
    bottom: clamp(16px, 2.4vw, 28px);
    right: clamp(16px, 2.4vw, 28px);
    z-index: 10;
    width: clamp(32px, 4vw, 40px);
    height: clamp(32px, 4vw, 40px);
    opacity: 0;
    transition: opacity .5s;
    pointer-events: none
}

#sring.show {
    opacity: 1
}

/* Corner accents */
.ca {
    position: absolute;
    width: 18px;
    height: 18px;
    pointer-events: none;
    z-index: 10
}

.ca.tl {
    top: 76px;
    left: 20px;
    border-top: 1px solid rgba(194, 171, 0, .25);
    border-left: 1px solid rgba(194, 171, 0, .25)
}

.ca.tr {
    top: 76px;
    right: 20px;
    border-top: 1px solid rgba(194, 171, 0, .25);
    border-right: 1px solid rgba(194, 171, 0, .25)
}

.ca.bl {
    bottom: 20px;
    left: 20px;
    border-bottom: 1px solid rgba(194, 171, 0, .25);
    border-left: 1px solid rgba(194, 171, 0, .25)
}

.ca.br {
    bottom: 20px;
    right: 20px;
    border-bottom: 1px solid rgba(194, 171, 0, .25);
    border-right: 1px solid rgba(194, 171, 0, .25)
}

/* Final slide */
#final-hud {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 clamp(20px, 8vw, 120px);
    pointer-events: none;
    opacity: 0;
    transition: opacity .9s ease
}

#final-hud.show {
    opacity: 1;
    pointer-events: auto
}

#fh-claim {    
    font-family: var(--ha-font-display);
    font-size: clamp(1.85rem, 6.2vw, min(var(--e-global-typography-2b6f268-font-size), 4.2rem));
    font-weight: var(--e-global-typography-2b6f268-font-weight);
    line-height: 1.2;
    letter-spacing: .03em;
    color: #F0EDE8;
    margin-bottom: clamp(16px, 2.6vw, 28px)
}

@media (max-width: 900px) {
    #station {
        top: auto;
        bottom: clamp(72px, 10vh, 130px);
        left: clamp(16px, 5vw, 28px);
        right: clamp(16px, 5vw, 28px);
        width: auto;
        max-width: none;
        transform: translateY(0) translateX(clamp(10px, 2.4vw, 18px));
    }

    #station.show {
        transform: translateY(0) translateX(0);
    }
}

#fh-claim .g {
    color: #C2AB00
}

#fh-claim .ou {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(240, 237, 232, .38)
}

#fh-sub {
    font-family: var(--ha-font-body);
    font-size: clamp(1rem, 1.8vw, 1.35rem);
    line-height: 1.8;
    color: #fff;
    max-width: clamp(280px, 75vw, 900px);
    margin: clamp(18px, 3.5vw, 45px) auto clamp(20px, 3vw, 36px);
}

#fh-btns {
    display: flex;
    gap: clamp(10px, 1.4vw, 16px);
    justify-content: center;
    flex-wrap: wrap;
    pointer-events: auto
}

.fh-btn {
    font-family: var(--ha-font-ui);
    display: inline-flex;
    align-items: center;
    gap: clamp(6px, 1vw, 10px);
    padding: clamp(10px, 1.6vw, 15px) clamp(16px, 2.8vw, 28px);
    border-radius: clamp(4px, 0.7vw, 6px);
    font-weight: 600;
    font-size: clamp(.85rem, 1.2vw, 1rem);
    letter-spacing: clamp(.02em, .12vw, .04em);
    cursor: pointer;
    transition: .3s;
    text-decoration: none
}

#fh-btns .elementor-button,
#fh-btns .elementor-button-text {
    font-family: var(--ha-font-ui);
}

.fh-btn-gold {
    background: #C2AB00;
    color: #03100E;
    box-shadow: 0 4px 24px rgba(194, 171, 0, .4)
}

.fh-btn-gold:hover {
    background: #D6BE00;
    box-shadow: 0 8px 36px rgba(194, 171, 0, .5);
    transform: translateY(-2px)
}

.fh-btn-ghost {
    border: 1.5px solid rgba(194, 171, 0, .4);
    color: #C2AB00
}

.fh-btn-ghost:hover {
    background: rgba(194, 171, 0, .08);
    border-color: #C2AB00
}