@keyframes premiumSequenceFadeUp {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes archiveEndgamePulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.46;
    }
}

@keyframes overlayAuroraDrift {
    0% {
        transform: translate3d(-1.5%, -1%, 0) scale(1);
    }
    100% {
        transform: translate3d(1.8%, 1.2%, 0) scale(1.04);
    }
}

@keyframes overlaySheenSweep {
    0% {
        transform: translateX(-18%);
    }
    100% {
        transform: translateX(18%);
    }
}

@keyframes panelShimmer {
    0%,
    100% {
        transform: translateX(-4%) translateY(0);
        opacity: 0.56;
    }
    50% {
        transform: translateX(4%) translateY(-1%);
        opacity: 0.84;
    }
}

@keyframes railPulse {
    0%,
    100% {
        opacity: 0.42;
        transform: scaleY(0.98);
    }
    50% {
        opacity: 0.9;
        transform: scaleY(1.02);
    }
}

@keyframes cardSweep {
    0% {
        opacity: 0;
        transform: translateX(-120%);
    }
    18% {
        opacity: 0.82;
    }
    100% {
        opacity: 0;
        transform: translateX(120%);
    }
}

@keyframes sigilCoreFloat {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.02);
    }
}

@keyframes orbitSpin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes dustFloat {
    0%,
    100% {
        opacity: 0.3;
        transform: translate3d(0, 0, 0) scale(0.92);
    }
    50% {
        opacity: 0.88;
        transform: translate3d(var(--dust-drift, 16px), -10px, 0) scale(1.04);
    }
}

@keyframes hotspotIgnite {
    0% {
        transform: scale(1);
        box-shadow:
            0 0 0 0 rgba(var(--theme-spark-alt-rgb), 0.28),
            0 0 0 0 rgba(255, 255, 255, 0.18);
    }
    35% {
        transform: scale(1.18);
        box-shadow:
            0 0 0 16px rgba(var(--theme-spark-alt-rgb), 0.16),
            0 0 24px rgba(255, 255, 255, 0.22);
    }
    100% {
        transform: scale(1);
        box-shadow:
            0 0 0 0 rgba(var(--theme-spark-alt-rgb), 0),
            0 0 0 rgba(255, 255, 255, 0);
    }
}

@keyframes runeIgnite {
    0% {
        transform: scale(1);
        filter: saturate(1);
    }
    30% {
        transform: scale(1.28);
        filter: saturate(1.2) brightness(1.18);
    }
    100% {
        transform: scale(1);
        filter: saturate(1) brightness(1);
    }
}

@keyframes terminalLineReveal {
    0% {
        opacity: 0;
        transform: translateX(-12px);
        clip-path: inset(0 100% 0 0);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
        clip-path: inset(0 0 0 0);
    }
}

@keyframes terminalSweep {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

@keyframes terminalCaretBlink {
    0%,
    45% {
        opacity: 0;
    }
    50%,
    100% {
        opacity: 0.9;
    }
}

@keyframes glitchNoiseFlicker {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0);
    }
    18% {
        opacity: 0.9;
        transform: translate3d(-1.5%, 0, 0);
    }
    42% {
        opacity: 0.52;
        transform: translate3d(1.2%, 0, 0);
    }
    74% {
        opacity: 0.82;
        transform: translate3d(-0.6%, 0, 0);
    }
    100% {
        opacity: 0;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes glitchSplitFlicker {
    0%,
    100% {
        opacity: 0;
        transform: translate3d(0, 0, 0);
    }
    18% {
        opacity: 0.75;
        transform: translate3d(-1.2%, 0, 0);
    }
    42% {
        opacity: 0.38;
        transform: translate3d(1%, 0, 0);
    }
    74% {
        opacity: 0.66;
        transform: translate3d(-0.4%, 0, 0);
    }
}

@keyframes glitchPanelIn {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.98) skewX(4deg);
        filter: blur(3px);
    }
    18% {
        opacity: 1;
        transform: translateY(0) scale(1) skewX(-2deg);
        filter: blur(0);
    }
    84% {
        opacity: 1;
        transform: translateY(0) scale(1) skewX(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-8px) scale(1.01) skewX(0deg);
    }
}

@media (max-width: 760px) {
    .premium-sequence__meta {
        grid-template-columns: 1fr;
    }

    .secret-atlas__progress-grid {
        grid-template-columns: 1fr;
    }

    .secret-ending__fragments {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

body.eva-legal-glow .site-footer__note {
    box-shadow:
        0 0 0 1px rgba(255, 228, 186, 0.22),
        0 0 28px rgba(255, 201, 128, 0.18);
    animation: legalGlow 1.8s ease-in-out infinite alternate;
}

.container {
    width: min(92%, 1220px);
    margin: 0 auto;
    padding: 0;
}

.section {
    position: relative;
    margin-bottom: clamp(4rem, 7vw, 7rem);
}

main > .section::before {
    content: '';
    position: absolute;
    top: -1.65rem;
    left: 50%;
    width: min(280px, 44vw);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(var(--theme-spark-alt-rgb), 0.52),
        rgba(var(--theme-line-rgb), 0.36),
        transparent
    );
    opacity: 0.78;
    pointer-events: none;
}

.section-header,
.story-header,
.impact-intro {
    max-width: 760px;
    margin-bottom: 1.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    align-items: flex-start;
    text-align: left;
}

.eyebrow,
.block-eyebrow,
.hero-stage__eyebrow,
.contact-chip {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 0.52rem 0.92rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(23, 23, 18, 0.08);
    background: rgba(251, 244, 234, 0.84);
    color: var(--accent-strong);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-title,
.block-title {
    font-size: clamp(2.3rem, 4.8vw, 4.25rem);
}

.section-title::after,
.icon-left,
.event-points i,
.card-link::after {
    display: none;
}

.section-description {
    max-width: 720px;
    font-size: 1.05rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 54px;
    padding: 0.9rem 1.35rem;
    border-radius: 16px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-contact,
.btn.nav-cta {
    background: var(--accent-strong);
    color: #fff;
    box-shadow: 0 18px 34px rgba(26, 39, 31, 0.22);
}

.btn-primary {
    background: var(--warm);
    color: #fff;
    box-shadow: 0 18px 34px rgba(155, 78, 34, 0.24);
}

.btn-secondary,
.btn-ghost,
.btn.nav-ghost {
    background: rgba(251, 244, 234, 0.74);
    color: var(--ink);
    border-color: var(--line);
}

.btn-disabled {
    background: rgba(23, 33, 29, 0.08);
    color: rgba(23, 33, 29, 0.42);
    cursor: not-allowed;
}

.site-hero {
    position: relative;
    min-height: 100svh;
    padding-top: 0;
    margin-bottom: clamp(3.5rem, 7vw, 6rem);
    overflow: clip;
}

#navbar-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    width: 100%;
    padding-top: 18px;
}

.hero-cinematic {
    --hero-pointer-x: 50%;
    --hero-pointer-y: 45%;
    position: relative;
    width: 100%;
    min-height: 100svh;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 0 0 42px 42px;
    background: #111813;
    box-shadow: 0 42px 110px rgba(14, 18, 15, 0.3);
    animation: heroLift 1.05s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-cinematic__aurora,
.hero-cinematic__particles,
.hero-cinematic__comets {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-cinematic__aurora {
    z-index: 0;
    opacity: 0.92;
    background:
        radial-gradient(circle at var(--hero-pointer-x) var(--hero-pointer-y), rgba(var(--theme-spark-rgb), 0.26), transparent 0 18%),
        radial-gradient(circle at 18% 24%, rgba(var(--theme-spark-alt-rgb), 0.22), transparent 0 20%),
        radial-gradient(circle at 82% 18%, rgba(var(--theme-line-rgb), 0.18), transparent 0 24%),
        radial-gradient(circle at 60% 86%, rgba(var(--theme-orb-rgb), 0.14), transparent 0 22%);
    mix-blend-mode: screen;
    filter: blur(6px);
    animation: auroraPulse 12s ease-in-out infinite alternate;
}

.hero-cinematic__particles,
.hero-cinematic__comets {
    z-index: 0;
    overflow: hidden;
}

.hero-cinematic__particle {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--size);
    height: var(--size);
    border-radius: 999px;
    background:
        radial-gradient(circle, rgba(255, 250, 241, 0.95) 0%, rgba(var(--theme-spark-rgb), 0.62) 36%, rgba(var(--theme-spark-rgb), 0) 72%);
    opacity: 0;
    filter: blur(0.2px);
    transform: translate3d(0, 0, 0) scale(0.7);
    animation:
        heroParticleFloat var(--duration) ease-in-out infinite,
        heroParticleBlink calc(var(--duration) * 0.55) ease-in-out infinite;
    animation-delay: var(--delay);
}

.hero-cinematic__particle[data-shape='pixel'],
.hero-cinematic__particle[data-shape='cube'] {
    border-radius: 6px;
}

.hero-cinematic__particle[data-shape='pixel'] {
    clip-path: polygon(0 14%, 14% 14%, 14% 0, 86% 0, 86% 14%, 100% 14%, 100% 86%, 86% 86%, 86% 100%, 14% 100%, 14% 86%, 0 86%);
}

.hero-cinematic__particle[data-shape='cube'] {
    transform: translate3d(0, 0, 0) rotate(12deg) scale(0.72);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.hero-cinematic__particle[data-shape='diamond'] {
    border-radius: 0;
    transform: translate3d(0, 0, 0) rotate(45deg) scale(0.72);
}

.hero-cinematic__particle[data-shape='halo'] {
    background: none;
    border: 1px solid rgba(var(--theme-spark-rgb), 0.7);
    box-shadow: 0 0 16px rgba(var(--theme-spark-rgb), 0.18);
}

.hero-cinematic__particle[data-shape='cross'] {
    border-radius: 0;
    background:
        linear-gradient(90deg, transparent 42%, rgba(var(--theme-spark-rgb), 0.8) 42%, rgba(var(--theme-spark-rgb), 0.8) 58%, transparent 58%),
        linear-gradient(0deg, transparent 42%, rgba(var(--theme-spark-rgb), 0.8) 42%, rgba(var(--theme-spark-rgb), 0.8) 58%, transparent 58%);
}

.hero-cinematic__particle[data-shape='streak'] {
    width: calc(var(--size) * 1.9);
    height: max(2px, calc(var(--size) * 0.18));
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(var(--theme-spark-rgb), 0), rgba(var(--theme-spark-rgb), 0.92), rgba(var(--theme-spark-rgb), 0));
}

.hero-cinematic__comet {
    position: absolute;
    top: var(--top);
    left: -18%;
    width: 18vw;
    max-width: 240px;
    min-width: 120px;
    height: 2px;
    border-radius: 999px;
    opacity: 0;
    background: linear-gradient(90deg, rgba(var(--theme-comet-rgb), 0), rgba(var(--theme-comet-rgb), 0.8), rgba(var(--theme-comet-rgb), 0));
    box-shadow: 0 0 18px rgba(var(--theme-spark-rgb), 0.55);
    transform: rotate(-14deg);
    animation: heroCometSweep var(--duration) linear infinite;
    animation-delay: var(--delay);
}

.hero-cinematic__video,
.hero-cinematic__veil {
    position: absolute;
    inset: 0;
}

.hero-cinematic__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.02) contrast(1.04) brightness(0.68);
}

.hero-cinematic__veil {
    background:
        radial-gradient(circle at var(--hero-pointer-x) var(--hero-pointer-y), rgba(var(--theme-comet-rgb), 0.08), transparent 0 16%),
        radial-gradient(circle at 16% 24%, rgba(var(--theme-spark-alt-rgb), 0.26), transparent 24%),
        linear-gradient(110deg, rgba(10, 16, 13, 0.84) 0%, rgba(10, 16, 13, 0.52) 42%, rgba(10, 16, 13, 0.78) 100%);
    transition: background-position 0.3s ease;
}

.hero-cinematic__grid {
    position: relative;
    z-index: 1;
    min-height: inherit;
    width: min(94%, 1320px);
    margin: 0 auto;
    padding: clamp(6.8rem, 11vw, 8.5rem) 0 clamp(1.6rem, 3vw, 2.2rem);
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(380px, 0.96fr);
    gap: clamp(1.2rem, 2.5vw, 2rem);
    align-items: end;
}

.hero-cinematic__content,
.hero-cinematic__stack {
    position: relative;
    z-index: 1;
}

.hero-cinematic__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 1rem;
    padding: clamp(0.4rem, 1.4vw, 0.8rem);
}

.hero-cinematic__eyebrow {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.56rem 0.92rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    backdrop-filter: blur(18px);
}

.hero-cinematic__title {
    max-width: 10.4ch;
    color: #fff;
    font-size: clamp(4rem, 8vw, 7.2rem);
    line-height: 0.94;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.hero-cinematic__title-line {
    display: block;
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    animation: titleLineIn 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-cinematic__title-line:nth-child(2) {
    margin-left: clamp(0.7rem, 2vw, 1.6rem);
    animation-delay: 0.14s;
}

.hero-cinematic__title-line:nth-child(3) {
    margin-left: clamp(1.5rem, 4vw, 3.6rem);
    animation-delay: 0.28s;
}

.hero-cinematic__lead {
    max-width: 420px;
    color: rgba(255, 245, 233, 0.88);
    font-size: 0.96rem;
    line-height: 1.5;
}

.hero-cinematic__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 0.25rem;
}

.hero-cinematic__actions .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
    backdrop-filter: blur(18px);
}

.hero-cinematic__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 0.15rem;
}

.hero-cinematic__pills span {
    display: inline-flex;
    position: relative;
    overflow: hidden;
    align-items: center;
    padding: 0.58rem 0.82rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    backdrop-filter: blur(18px);
    animation: pillBreath 6s ease-in-out infinite;
}

.hero-cinematic__pills span:nth-child(2) {
    animation-delay: 0.8s;
}

.hero-cinematic__pills span:nth-child(3) {
    animation-delay: 1.6s;
}

.hero-cinematic__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 0.5rem;
}

.hero-cinematic__metrics article,
.hero-cinematic__spotlight,
.hero-cinematic__project-card {
    background: rgba(255, 250, 242, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px);
    box-shadow: 0 26px 60px rgba(8, 12, 10, 0.18);
}

.hero-cinematic__metrics article {
    padding: 0.95rem;
    border-radius: 24px;
}

.hero-cinematic__metrics strong {
    display: block;
    color: #fff;
    font-family: 'Fraunces', serif;
    font-size: clamp(1.2rem, 2.2vw, 1.9rem);
    line-height: 1.05;
}

.hero-cinematic__metrics p {
    margin-top: 0.45rem;
    color: rgba(255, 244, 231, 0.8);
    font-size: 0.88rem;
}
