* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }

:root {
    --er-bg: #050505;
    --er-text: #f2f0e8;
    --er-muted: #9f9b8d;
    --er-gold: #c8a75d;
    --er-line: rgba(200, 167, 93, 0.18);
}

body.empyrean-coming-soon {
    position: relative;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 50% 42%, rgba(200, 167, 93, 0.09), transparent 35%),
        radial-gradient(circle at 50% 75%, rgba(225, 81, 45, 0.05), transparent 34%),
        var(--er-bg);
    color: var(--er-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ecs-particle-field {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    opacity: 0.74;
}

.ecs-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr;
}

.ecs-site-mark {
    position: relative;
    z-index: 10;
    padding: 26px 24px 0;
    text-align: center;
}

.ecs-site-mark__title {
    font-family: var(--er-display-font, "UnifrakturMaguntia", "Old English Text MT", fantasy);
    font-weight: 400;
    text-transform: lowercase;
    letter-spacing: 0.035em;
    color: var(--er-gold);
    font-size: clamp(2rem, 3.8vw, 3.8rem);
    line-height: 1.04;
    font-feature-settings: "liga" 1;
    text-shadow:
        0 0 18px rgba(200, 167, 93, 0.18),
        0 0 38px rgba(200, 167, 93, 0.10);
}

.ecs-hero {
    min-height: calc(100vh - 96px);
    display: grid;
    place-items: center;
    align-content: center;
    padding: 10px 24px 58px;
    gap: 18px;
}

.ecs-sigil {
    position: relative;
    width: min(80vw, 640px);
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    isolation: isolate;
}

.ecs-sigil__art {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    isolation: isolate;
}

.ecs-sigil__layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

.ecs-sigil__layer--energy {
    filter: hue-rotate(var(--er-energy-hue));
    animation: ecsEnergyHueDrift 3s ease-in-out infinite;
}

.ecs-sigil__layer--flames { z-index: 1; }
.ecs-sigil__layer--eye-core { z-index: 2; }
.ecs-sigil__layer--base { z-index: 5; }

.ecs-flame-wave,
.ecs-flame-wave > svg,
.ecs-flame-wave__svg {
    overflow: visible !important;
    pointer-events: none !important;
}

.ecs-flame-wave > svg,
.ecs-flame-wave__svg {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

.ecs-node {
    position: absolute;
    z-index: 8;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    pointer-events: none;
    user-select: none;
}

.ecs-node__visual,
.ecs-node__img {
    display: block;
    width: 100%;
    height: 100%;
}

.ecs-node__img {
    object-fit: contain;
    filter: none;
    opacity: 1;
}

.ecs-node--hand-l { left: 9.692%; top: 18.481%; width: 10.693%; height: 27.441%; }
.ecs-node--hand-r { left: 90.918%; top: 18.481%; width: 10.693%; height: 27.441%; }
.ecs-node--sun { left: 8.667%; top: 73.987%; width: 14.355%; height: 14.355%; }
.ecs-node--earth { left: 50.012%; top: 94.690%; width: 10.205%; height: 10.205%; }
.ecs-node--moon { left: 91.553%; top: 73.853%; width: 16.235%; height: 16.553%; }

.ecs-core {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 9;
    width: 34%;
    height: 18%;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    pointer-events: none;
    text-align: center;
}

.ecs-core__title {
    display: block;
    margin: 0;
    padding: 0;
    width: 100%;
    color: #050505;
    font-size: clamp(1.02rem, 1.75vw, 1.42rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.ecs-subscribe {
    width: min(720px, calc(100vw - 40px));
    margin: -14px auto 0;
    padding: 22px;
    border: 1px solid var(--er-line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.025);
    box-shadow:
        0 26px 90px rgba(0, 0, 0, 0.34),
        0 0 30px rgba(200, 167, 93, 0.05);
    text-align: center;
}

.ecs-subscribe__kicker {
    margin: 0 0 6px;
    color: var(--er-gold);
    font-size: 0.74rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.ecs-subscribe__label {
    display: block;
    margin: 0 0 14px;
    color: var(--er-muted);
    font-size: 0.98rem;
    line-height: 1.5;
}

.ecs-subscribe__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.ecs-subscribe input[type="email"] {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(200, 167, 93, 0.28);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.34);
    color: var(--er-text);
    padding: 0 18px;
    outline: none;
}

.ecs-subscribe input[type="email"]:focus {
    border-color: rgba(200, 167, 93, 0.72);
    box-shadow: 0 0 0 3px rgba(200, 167, 93, 0.11);
}

.ecs-subscribe button {
    min-height: 48px;
    border: 1px solid rgba(200, 167, 93, 0.62);
    border-radius: 999px;
    background: rgba(8, 8, 8, 0.94);
    color: var(--er-gold);
    padding: 0 22px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow:
        0 0 15px rgba(200, 167, 93, 0.11),
        inset 0 0 16px rgba(200, 167, 93, 0.03);
    transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.ecs-subscribe button:hover,
.ecs-subscribe button:focus-visible {
    border-color: rgba(200, 167, 93, 0.92);
    color: #f5df9a;
    box-shadow:
        0 0 22px rgba(200, 167, 93, 0.20),
        inset 0 0 20px rgba(200, 167, 93, 0.05);
    outline: none;
}

.ecs-subscribe__status {
    margin: 14px 0 0;
    font-size: 0.92rem;
}

.ecs-subscribe__status--success { color: rgba(200, 167, 93, 0.96); }
.ecs-subscribe__status--error { color: #ff7d5c; }

.ecs-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@keyframes ecsEnergyHueDrift {
    0%, 100% { filter: hue-rotate(calc(var(--er-energy-hue) - 20deg)); }
    50% { filter: hue-rotate(calc(var(--er-energy-hue) + 20deg)); }
}

@media (max-width: 760px) {
    .ecs-sigil { width: min(90vw, 520px); }
    .ecs-subscribe__row { grid-template-columns: 1fr; }
    .ecs-subscribe button { width: 100%; }
    .ecs-core__title { font-size: 0.86rem; letter-spacing: 0.09em; }
}

@media (max-width: 460px) {
    .ecs-hero { padding-left: 14px; padding-right: 14px; }
    .ecs-subscribe { width: calc(100vw - 28px); padding: 18px; }
    .ecs-core__title { font-size: 0.72rem; letter-spacing: 0.08em; }
}
