:root {
    --ee-ember: #ff7a1a;
    --ee-ember-soft: #ff9a3d;
    --ee-brass: #c9a46c;
    --ee-brass-dim: rgba(201, 164, 108, 0.35);
    --ee-ink: #07090c;
    --ee-panel: #0d1116;
    --ee-line: rgba(255, 255, 255, 0.08);
    --ee-serif: 'Cormorant Garamond', Georgia, serif;
}

body {
    background: var(--ee-ink);
}

.ee-section {
    position: relative;
    padding: 110px 0;
}

.ee-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ee-brass);
    font-family: var(--tg-heading-font-family);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.ee-eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--ee-brass);
}

.ee-heading {
    font-size: 44px;
    line-height: 1.1;
    margin-bottom: 18px;
}

.ee-heading em {
    font-family: var(--ee-serif);
    font-style: italic;
    font-weight: 500;
    color: var(--ee-ember-soft);
    text-transform: none;
}

.ee-quote {
    font-family: var(--ee-serif);
    font-style: italic;
    font-size: 24px;
    color: #e9dcc6;
    letter-spacing: .3px;
}

/* ---------- Buttons ---------- */
.ee-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    font-family: var(--tg-heading-font-family);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid transparent;
    transition: background .25s, color .25s, border-color .25s, box-shadow .25s, transform .25s;
}

.ee-btn--primary {
    background: linear-gradient(135deg, var(--ee-ember), #d9480f);
    color: #fff;
    box-shadow: 0 10px 30px rgba(255, 122, 26, 0.28);
}

.ee-btn--primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 38px rgba(255, 122, 26, 0.42);
}

.ee-btn--ghost {
    border-color: var(--ee-brass-dim);
    color: #f1e6d2;
    background: rgba(7, 9, 12, 0.35);
    backdrop-filter: blur(4px);
}

.ee-btn--ghost:hover {
    border-color: var(--ee-brass);
    color: #fff;
}

/* ---------- Hero ---------- */
.ee-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    padding: 170px 0 90px;
    overflow: hidden;
    isolation: isolate;
}

.ee-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: url("/assets/img/ember-eclipse/hero-valley.jpg") center 35% / cover no-repeat;
    transform: scale(1.04);
    animation: ee-drift 22s ease-in-out infinite alternate;
}

.ee-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(7, 9, 12, 0.75) 0%, rgba(7, 9, 12, 0.15) 30%, rgba(7, 9, 12, 0.35) 60%, var(--ee-ink) 100%),
        linear-gradient(90deg, rgba(7, 9, 12, 0.8) 0%, rgba(7, 9, 12, 0) 60%);
}

@keyframes ee-drift {
    from { transform: scale(1.04) translate3d(0, 0, 0); }
    to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

.ee-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px;
    margin-bottom: 26px;
    border: 1px solid rgba(255, 122, 26, 0.45);
    background: rgba(255, 122, 26, 0.08);
    color: var(--ee-ember-soft);
    font-family: var(--tg-heading-font-family);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.ee-hero__badge .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ee-ember);
    box-shadow: 0 0 10px var(--ee-ember);
    animation: ee-pulse 1.8s ease-in-out infinite;
}

@keyframes ee-pulse {
    50% { opacity: .35; }
}

.ee-hero__logo {
    display: block;
    width: min(620px, 100%);
    height: auto;
    margin: 0 0 22px -6px;
    filter: drop-shadow(0 6px 30px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 40px rgba(255, 122, 26, 0.18));
}

.ee-hero h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.ee-hero__tag {
    max-width: 520px;
    margin-bottom: 10px;
}

.ee-hero__lead {
    max-width: 520px;
    font-size: 17px;
    color: #c9ccd4;
    margin-bottom: 34px;
}

.ee-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.ee-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin-top: 46px;
    padding-top: 22px;
    border-top: 1px solid var(--ee-line);
    max-width: 620px;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #9aa0ab;
}

.ee-hero__meta strong {
    display: block;
    color: #f1e6d2;
    font-family: var(--tg-heading-font-family);
    font-size: 15px;
    letter-spacing: 1px;
}

/* ---------- Trailer ---------- */
.ee-trailer {
    padding-top: 40px;
}

.ee-trailer__frame {
    position: relative;
    max-width: 1040px;
    margin: 0 auto;
    padding: 10px;
    background: linear-gradient(160deg, rgba(201, 164, 108, 0.35), rgba(201, 164, 108, 0.05) 40%, rgba(255, 122, 26, 0.25));
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 120px rgba(255, 122, 26, 0.08);
}

.ee-trailer__video {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.ee-trailer__video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.ee-trailer__caption {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 1040px;
    margin: 18px auto 0;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #8b919c;
}

/* ---------- About ---------- */
.ee-about__text p {
    font-size: 16.5px;
}

.ee-facts {
    margin: 0;
    padding: 30px 32px;
    list-style: none;
    background: var(--ee-panel);
    border: 1px solid var(--ee-line);
    border-top: 2px solid var(--ee-brass);
}

.ee-facts li {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid var(--ee-line);
    font-size: 15px;
}

.ee-facts li:last-child {
    border-bottom: 0;
}

.ee-facts span {
    color: #8b919c;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 12.5px;
    padding-top: 2px;
}

.ee-facts strong {
    color: #f1e6d2;
    font-weight: 500;
    text-align: right;
}

.ee-emblem {
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    opacity: .9;
}

/* ---------- Pillars ---------- */
.ee-pillars {
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255, 122, 26, 0.07), transparent 70%),
        var(--ee-ink);
}

.ee-pillar {
    height: 100%;
    padding: 34px 28px;
    background: var(--ee-panel);
    border: 1px solid var(--ee-line);
    transition: border-color .3s, transform .3s;
}

.ee-pillar:hover {
    border-color: rgba(255, 122, 26, 0.4);
    transform: translateY(-4px);
}

.ee-pillar__num {
    display: block;
    font-family: var(--ee-serif);
    font-style: italic;
    font-size: 34px;
    line-height: 1;
    color: var(--ee-ember-soft);
    margin-bottom: 18px;
}

.ee-pillar h3 {
    font-size: 20px;
    margin-bottom: 10px;
    letter-spacing: .5px;
}

.ee-pillar p {
    font-size: 15px;
    margin: 0;
}

/* ---------- Gallery ---------- */
.ee-gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.ee-shot {
    position: relative;
    grid-column: span 2;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--ee-line);
    background: #000;
    cursor: zoom-in;
}

.ee-shot--wide {
    grid-column: span 3;
}

.ee-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.2, .7, .2, 1), filter .4s;
    filter: saturate(.92);
}

.ee-shot:hover img,
.ee-shot:focus-visible img {
    transform: scale(1.05);
    filter: saturate(1.08);
}

.ee-shot figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 40px 18px 14px;
    text-align: left;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: #f1e6d2;
    font-family: var(--ee-serif);
    font-style: italic;
    font-size: 19px;
}

.ee-lightbox {
    padding: 0;
    border: 0;
    background: transparent;
    max-width: min(1400px, 94vw);
}

.ee-lightbox::backdrop {
    background: rgba(3, 4, 6, 0.92);
}

.ee-lightbox img {
    display: block;
    max-width: 100%;
    max-height: 86vh;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}

.ee-lightbox button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 20px;
}

/* ---------- Concept art ---------- */
.ee-art {
    margin: 0;
}

.ee-art .ee-shot {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
}

.ee-art figcaption.ee-art__note {
    position: static;
    padding: 14px 0 0;
    background: none;
    font-family: var(--tg-body-font-family);
    font-style: normal;
    font-size: 14px;
    color: #8b919c;
}

/* ---------- Signup ---------- */
.ee-signup {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
}

.ee-signup::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, var(--ee-ink) 0%, rgba(7, 9, 12, 0.7) 40%, rgba(7, 9, 12, 0.85) 100%),
        url("/assets/img/ember-eclipse/shot-finale.jpg") center 60% / cover no-repeat;
}

.ee-signup__form {
    display: flex;
    gap: 10px;
    max-width: 520px;
    margin: 30px auto 0;
}

.ee-signup__form input[type="email"] {
    flex: 1;
    min-width: 0;
    height: 56px;
    padding: 0 20px;
    background: rgba(7, 9, 12, 0.75);
    border: 1px solid var(--ee-brass-dim);
    color: #fff;
    font-size: 15px;
}

.ee-signup__form input[type="email"]:focus {
    outline: none;
    border-color: var(--ee-ember);
}

.ee-signup__form .ee-btn {
    height: 56px;
    border: 0;
    white-space: nowrap;
}

.ee-signup__form .ee-btn[disabled] {
    opacity: .6;
    cursor: progress;
}

.ee-signup .hp {
    position: absolute;
    left: -9999px;
}

.ee-status {
    min-height: 24px;
    margin: 14px 0 0;
    font-weight: 500;
}

.ee-status.success {
    color: var(--tg-theme-primary);
}

.ee-status.error {
    color: var(--tg-theme-secondary);
}

.ee-promise {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    font-size: 14px;
    color: #b9bdc6;
}

.ee-promise i {
    color: var(--ee-ember-soft);
}

.ee-promise strong {
    color: var(--ee-ember-soft);
    font-weight: 600;
}

/* ---------- Reveal on scroll ---------- */
.ee-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
}

.ee-reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .ee-hero__bg,
    .ee-hero__badge .dot {
        animation: none;
    }

    .ee-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 991px) {
    .ee-section {
        padding: 80px 0;
    }

    .ee-heading {
        font-size: 36px;
    }

    .ee-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .ee-shot,
    .ee-shot--wide {
        grid-column: span 1;
    }

    .ee-shot--wide:first-child {
        grid-column: span 2;
    }
}

@media (max-width: 575px) {
    .ee-hero {
        padding: 140px 0 60px;
    }

    .ee-heading {
        font-size: 30px;
    }

    .ee-quote {
        font-size: 21px;
    }

    .ee-gallery {
        grid-template-columns: 1fr;
    }

    .ee-shot,
    .ee-shot--wide,
    .ee-shot--wide:first-child {
        grid-column: span 1;
    }

    .ee-signup__form {
        flex-direction: column;
    }

    .ee-facts {
        padding: 22px 20px;
    }
}

/* Spacing tweaks used once each in the markup. !important because they
   replace what were inline styles, which beat every rule above. */
.ee-pt-30 { padding-top: 30px !important; }
.ee-pt-40 { padding-top: 40px !important; }
.ee-mb-36 { margin-bottom: 36px !important; }
.ee-mb-40 { margin-bottom: 40px !important; }
.ee-mb-50 { margin-bottom: 50px !important; }
.ee-m-0 { margin: 0 !important; }
.ee-flex { display: flex !important; }
.ee-signup__lead { max-width: 520px !important; margin: 0 auto !important; }
