:root {
    --ink: #140726;
    --purple: #452a89;
    --purple-deep: #260c4b;
    --lilac: #a793dc;
    --gold: #d8ad3d;
    --paper: #fffaf3;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

html { background: var(--ink); }

body {
    margin: 0;
    color: var(--paper);
    background: var(--ink);
    font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.page-shell {
    position: relative;
    isolation: isolate;
    min-height: 100svh;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.photo,
.veil,
.grain,
.orb { position: absolute; inset: 0; pointer-events: none; }

.photo {
    z-index: -5;
    inset: -3%;
    background: url("team.jpg") center 44% / cover no-repeat;
    filter: saturate(.85) contrast(1.06);
    animation: cinematic 18s ease-in-out infinite alternate;
}

.veil {
    z-index: -4;
    background:
        linear-gradient(90deg, rgba(20, 7, 38, .97) 0%, rgba(28, 10, 51, .91) 40%, rgba(37, 13, 67, .55) 70%, rgba(20, 7, 38, .58) 100%),
        linear-gradient(0deg, rgba(20, 7, 38, .88), transparent 46%);
}

.grain {
    z-index: 5;
    opacity: .12;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,.16) 0 1px, transparent 1px),
        radial-gradient(circle at 75% 65%, rgba(255,255,255,.11) 0 1px, transparent 1px);
    background-size: 7px 7px, 11px 11px;
    mix-blend-mode: soft-light;
}

.orb { z-index: -2; border-radius: 50%; filter: blur(2px); }
.orb-one {
    width: 34rem;
    height: 34rem;
    inset: auto -13rem -18rem auto;
    background: radial-gradient(circle at 35% 35%, rgba(216,173,61,.24), rgba(69,42,137,.08) 48%, transparent 70%);
    animation: float 10s ease-in-out infinite;
}
.orb-two {
    width: 20rem;
    height: 20rem;
    inset: 8% auto auto 43%;
    background: radial-gradient(circle, rgba(143,127,184,.15), transparent 70%);
    animation: float 13s ease-in-out infinite reverse;
}

.topbar,
.footer {
    width: min(100% - 3rem, 1440px);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 10;
}

.topbar { padding-block: 1.6rem; border-bottom: 1px solid rgba(255,255,255,.14); }

.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: .85rem; }
.brand img { width: 68px; height: 68px; object-fit: contain; filter: drop-shadow(0 8px 25px rgba(0,0,0,.22)); }
.brand-name { font-size: .93rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.season { color: rgba(255,255,255,.68); font-size: .75rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.season span { color: var(--gold); padding-inline: .45rem; }

.content {
    width: min(100% - 3rem, 1440px);
    margin-inline: auto;
    display: flex;
    align-items: center;
    padding-block: clamp(3rem, 7vh, 7rem);
    position: relative;
    z-index: 2;
}

.message { max-width: 810px; }
.status {
    display: none;
    align-items: center;
    gap: .65rem;
    width: fit-content;
    margin-bottom: 2rem;
    padding: .62rem .95rem;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(12px);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.js .status { display: flex; }
.status-dot { width: .48rem; height: .48rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(216,173,61,.55); animation: pulse 2.2s infinite; }

.eyebrow {
    margin: 0 0 1rem;
    color: var(--gold);
    font-size: .82rem;
    font-weight: 850;
    letter-spacing: .2em;
    text-transform: uppercase;
}

h1 {
    margin: 0 0 1.6rem;
    max-width: 760px;
    font-size: clamp(3.8rem, 8.2vw, 8.5rem);
    font-weight: 850;
    letter-spacing: -.07em;
    line-height: .82;
    text-wrap: balance;
}
h1 em { color: var(--gold); font-style: normal; }

.intro {
    max-width: 710px;
    margin: 0;
    color: rgba(255,255,255,.8);
    font-size: clamp(1rem, 1.45vw, 1.28rem);
    line-height: 1.72;
}
.thanks { margin: .6rem 0 0; color: #fff; font-size: clamp(1rem, 1.45vw, 1.28rem); font-weight: 750; }

.progress { display: grid; grid-template-columns: minmax(130px, 230px) auto; align-items: center; gap: 1rem; margin-top: 2.5rem; }
.progress-line { height: 2px; overflow: hidden; background: rgba(255,255,255,.2); }
.progress-line i { display: block; width: 45%; height: 100%; background: var(--gold); animation: loading 2.6s ease-in-out infinite; }
.progress-label { color: rgba(255,255,255,.58); font-size: .72rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; white-space: nowrap; }

.footer { padding-block: 1.35rem 1.6rem; color: rgba(255,255,255,.48); font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.footer p { margin: 0; }

.js .message > * { opacity: 0; transform: translateY(20px); animation: reveal .8s cubic-bezier(.2,.8,.2,1) forwards; }
.js .message > :nth-child(2) { animation-delay: .08s; }
.js .message > :nth-child(3) { animation-delay: .16s; }
.js .message > :nth-child(4) { animation-delay: .25s; }
.js .message > :nth-child(5) { animation-delay: .32s; }
.js .message > :nth-child(6) { animation-delay: .4s; }

@keyframes reveal { to { opacity: 1; transform: translateY(0); } }
@keyframes cinematic { from { transform: scale(1.02) translate3d(0,0,0); } to { transform: scale(1.07) translate3d(-.6%, -.4%, 0); } }
@keyframes float { 50% { transform: translate3d(-1.5rem, -1rem, 0) scale(1.06); } }
@keyframes loading { 0% { transform: translateX(-110%); } 55%, 100% { transform: translateX(240%); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(216,173,61,0); } 100% { box-shadow: 0 0 0 0 rgba(216,173,61,0); } }

@media (max-width: 700px) {
    .topbar, .content, .footer { width: min(100% - 2rem, 1440px); }
    .topbar { padding-block: 1rem; }
    .brand img { width: 56px; height: 56px; }
    .brand-name { display: none; }
    .season { font-size: .64rem; letter-spacing: .09em; }
    .content { align-items: flex-end; padding-block: 3.5rem; }
    .photo { background-position: 63% center; }
    .veil { background: linear-gradient(0deg, rgba(20,7,38,.98) 4%, rgba(24,8,44,.91) 60%, rgba(20,7,38,.63) 100%); }
    .status { margin-bottom: 1.5rem; }
    h1 { font-size: clamp(3.5rem, 18vw, 5.2rem); line-height: .87; }
    .progress { grid-template-columns: minmax(80px, 1fr) auto; }
    .footer p:first-child { display: none; }
    .footer { justify-content: flex-end; }
}

@media (max-height: 700px) and (min-width: 701px) {
    .topbar { padding-block: .8rem; }
    .brand img { width: 52px; height: 52px; }
    .content { padding-block: 2rem; }
    .status { margin-bottom: 1rem; }
    h1 { font-size: clamp(3.8rem, 10vh, 6rem); margin-bottom: 1rem; }
    .progress { margin-top: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
