/* ==========================================================================================
   PROJECT AEVUM - base styles (all pages)
   Colours are taken straight from the logo.
   ========================================================================================== */
:root {
    --ink: #140223;          /* the logo's background */
    --ink-2: #1d0632;
    --ink-3: #2a0b47;
    --purple: #7b2fd0;
    --purple-hi: #a35cf0;
    --teal: #2fd3bf;
    --teal-deep: #138a83;
    --gold: #f5b620;
    --gold-hi: #ffd35c;
    --cream: #f4eedc;        /* the logo's lettering */
    --text: #e9e2f2;
    --muted: #a99bbd;
    --line: rgba(244, 238, 220, 0.12);
    --radius: 14px;
    --serif: "Cinzel", Georgia, serif;
    --sans: "Karla", system-ui, sans-serif;
    --wrap: min(1180px, 100% - 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--ink);
    color: var(--text);
    font: 400 1.0625rem/1.65 var(--sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cream); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; color: var(--cream); }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 12px; }

/* film grain over everything (cheap SVG noise) */
.grain { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; opacity: 0.07; mix-blend-mode: overlay; }

/* ---------------------------------------------------------------- top bar */
.topbar {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 12px max(20px, calc((100% - 1180px) / 2));
    background: linear-gradient(var(--ink) 30%, rgba(20, 2, 35, 0.75));
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cream); }
.brand img { width: 44px; height: auto; -webkit-mask-image: radial-gradient(closest-side, #000 78%, transparent 100%); mask-image: radial-gradient(closest-side, #000 78%, transparent 100%); }
.brand-word { font: 700 1.35rem/1 var(--serif); letter-spacing: 0.08em; display: flex; flex-direction: column; }
.brand-word small { font-size: 0.55rem; letter-spacing: 0.42em; color: var(--muted); margin-bottom: 3px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
    color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: 999px;
    font-weight: 600; font-size: 0.95rem;
}
.nav a:hover { background: rgba(244, 238, 220, 0.07); color: var(--cream); }
.nav a[aria-current="page"] { color: var(--gold-hi); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav .nav-cta { background: var(--gold); color: var(--ink); margin-left: 6px; }
.nav .nav-cta:hover { background: var(--gold-hi); color: var(--ink); }
.navtoggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.navtoggle span { display: block; width: 24px; height: 2px; background: var(--cream); margin: 5px 0; transition: transform .25s, opacity .25s; }
.navtoggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navtoggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navtoggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------- buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 24px; border-radius: 10px; text-decoration: none;
    font: 700 1rem/1 var(--sans); letter-spacing: 0.02em;
    border: 1px solid transparent; transition: transform .15s, background .2s, border-color .2s;
    color: var(--cream); background: var(--ink-3);
}
.btn:hover { transform: translateY(-2px); color: var(--cream); }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 6px 0 #a87300, 0 10px 30px rgba(245, 182, 32, 0.25); }
.btn-gold:hover { background: var(--gold-hi); color: var(--ink); }
.btn-gold:active { transform: translateY(3px); box-shadow: 0 3px 0 #a87300; }
.btn-ghost { background: transparent; border-color: rgba(244, 238, 220, 0.3); }
.btn-ghost:hover { border-color: var(--cream); background: rgba(244, 238, 220, 0.05); }
.btn-small { padding: 10px 16px; font-size: 0.92rem; }

/* ---------------------------------------------------------------- hero (home) */
.hero {
    position: relative; min-height: calc(100vh - 66px);
    display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 30px;
    width: var(--wrap); margin: 0 auto; padding: 40px 0 80px;
    overflow-x: clip; /* (the glow behind the logo never makes the page scroll sideways) */
}
.kicker {
    display: inline-flex; align-items: center; gap: 12px;
    font: 600 0.78rem/1 var(--sans); letter-spacing: 0.32em; text-transform: uppercase; color: var(--teal);
}
.kicker span { width: 34px; height: 1px; background: currentColor; opacity: 0.6; }
.wordmark { margin: 18px 0 22px; line-height: 0.86; }
.wm-small { display: block; font: 500 clamp(1rem, 2.2vw, 1.5rem)/1 var(--serif); letter-spacing: 0.6em; color: var(--cream); padding-left: 0.3em; }
.wm-big {
    display: block; font: 900 clamp(4.2rem, 11vw, 9.5rem)/0.9 var(--serif); letter-spacing: 0.04em;
    color: var(--cream);
    /* the logo's cream lettering, with a soft violet glow behind it */
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35), 0 0 46px rgba(123, 47, 208, 0.55);
    position: relative;
}
.lede { font-size: 1.2rem; max-width: 34ch; color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero-art { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.hero-art .emblem {
    width: 92%; height: auto; aspect-ratio: 953 / 865; object-fit: contain; position: relative; z-index: 2;
    animation: drift 9s ease-in-out infinite;
    /* (the picture's square corners melt into the page) */
    -webkit-mask-image: radial-gradient(closest-side, #000 82%, transparent 100%);
    mask-image: radial-gradient(closest-side, #000 82%, transparent 100%);
}
.halo {
    position: absolute; inset: 4%; border-radius: 50%; z-index: 1;
    background: conic-gradient(from 0deg, rgba(47, 211, 191, 0.0), rgba(47, 211, 191, 0.35), rgba(123, 47, 208, 0.0), rgba(245, 182, 32, 0.3), rgba(47, 211, 191, 0.0));
    filter: blur(40px); animation: spin 22s linear infinite;
}
.iris-glow {
    position: absolute; z-index: 3; width: 9%; aspect-ratio: 1; border-radius: 50%;
    left: 45.5%; top: 47%; pointer-events: none;
    background: radial-gradient(circle, rgba(255, 220, 90, 0.9), rgba(255, 200, 60, 0) 70%);
    mix-blend-mode: screen; animation: pulse 3.2s ease-in-out infinite;
}
.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px; border: 2px solid rgba(244, 238, 220, 0.35); border-radius: 14px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: cue 1.8s ease-in-out infinite; }

@keyframes drift { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 0.55; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------------------------------------------------------------- ticker */
.ticker {
    overflow: hidden; border-block: 1px solid var(--line);
    background: linear-gradient(90deg, rgba(123, 47, 208, 0.18), rgba(47, 211, 191, 0.12), rgba(245, 182, 32, 0.12));
}
.ticker-track { display: flex; align-items: center; gap: 28px; width: max-content; padding: 14px 0; animation: tick 38s linear infinite; }
.ticker span { font: 700 0.95rem/1 var(--serif); letter-spacing: 0.18em; text-transform: uppercase; color: var(--cream); white-space: nowrap; }
.ticker i { width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); flex: none; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- section heads */
.sec-head { margin-bottom: 40px; }
.sec-num { font: 700 1rem/1 var(--serif); color: var(--gold); letter-spacing: 0.2em; }
.sec-head h2 { font: 700 clamp(2rem, 4.6vw, 3.4rem)/1.05 var(--serif); margin: 10px 0 12px; letter-spacing: 0.02em; }
.sec-head p { color: var(--muted); max-width: 52ch; }

/* ---------------------------------------------------------------- our games */
.made { width: var(--wrap); margin: 0 auto; padding: 110px 0 60px; }
.shelf { display: grid; gap: 28px; }
.work {
    display: grid; grid-template-columns: 1.25fr 1fr; gap: 0;
    background: linear-gradient(135deg, var(--ink-2), var(--ink-3));
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    position: relative;
}
.work::before {
    content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--accent, var(--gold));
}
.work > * { min-width: 0; }
.work-img { position: relative; display: block; overflow: hidden; min-height: 280px; }
.work-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.work:hover .work-img img { transform: scale(1.04); }
.work-status {
    position: absolute; left: 16px; top: 16px; padding: 6px 12px; border-radius: 999px;
    font: 700 0.75rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase;
    background: rgba(20, 2, 35, 0.85); color: var(--cream); border: 1px solid var(--line);
}
.work-status.s-live { color: #7dffb0; border-color: rgba(125, 255, 176, 0.4); }
.work-status.s-live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3dff8a; margin-right: 7px; box-shadow: 0 0 8px #3dff8a; }
.work-body { padding: 34px 36px; display: flex; flex-direction: column; justify-content: center; }
.work-no { font: 900 3.4rem/1 var(--serif); color: transparent; -webkit-text-stroke: 1px rgba(244, 238, 220, 0.35); }
.work h3 { font: 700 2rem/1.1 var(--serif); margin: 8px 0 4px; }
.work-meta { color: var(--teal); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem; }
.work-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.work-empty { grid-template-columns: 1fr; background: transparent; border-style: dashed; }
.work-empty::before { display: none; }
.work-empty .work-body { padding: 28px 36px; }
.work-empty h3 { color: var(--muted); }
.work-empty p { color: var(--muted); max-width: 60ch; }

/* ---------------------------------------------------------------- crew */
.crew {
    width: var(--wrap); margin: 0 auto; padding: 90px 0;
    display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center;
}
.crew-art { position: relative; height: 440px; }
.crew-art img {
    position: absolute; width: 78%; border-radius: var(--radius); border: 1px solid var(--line);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); object-fit: cover; aspect-ratio: 16 / 10;
}
.crew-art img:first-child { left: 0; top: 0; transform: rotate(-3deg); }
.crew-art img:last-child { right: 0; bottom: 0; transform: rotate(2.5deg); }
.crew-text > p { font-size: 1.12rem; max-width: 52ch; }
.tenets { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.tenets li { padding: 16px 18px 16px 52px; position: relative; border-left: 1px solid var(--line); }
.tenets li::before {
    content: ""; position: absolute; left: 18px; top: 22px; width: 12px; height: 12px;
    background: var(--teal); transform: rotate(45deg); box-shadow: 0 0 12px rgba(47, 211, 191, 0.6);
}
.tenets li:nth-child(2)::before { background: var(--purple-hi); box-shadow: 0 0 12px rgba(163, 92, 240, 0.6); }
.tenets li:nth-child(3)::before { background: var(--gold); box-shadow: 0 0 12px rgba(245, 182, 32, 0.6); }
.tenets b { color: var(--cream); }

/* ---------------------------------------------------------------- join */
.join {
    position: relative; overflow: hidden; text-align: center;
    width: var(--wrap); margin: 40px auto 100px; padding: 80px 24px;
    border-radius: 22px; border: 1px solid var(--line);
    background:
        radial-gradient(60% 80% at 15% 0%, rgba(47, 211, 191, 0.18), transparent 60%),
        radial-gradient(60% 80% at 85% 100%, rgba(123, 47, 208, 0.35), transparent 60%),
        var(--ink-2);
}
.join-mark { position: absolute; width: 420px; right: -90px; top: -60px; opacity: 0.12; transform: rotate(18deg); pointer-events: none; }
.join h2 { font: 700 clamp(2rem, 5vw, 3.2rem)/1.1 var(--serif); }
.join p { color: var(--muted); margin-top: 10px; }
.join-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; position: relative; }
.soon-pill { padding: 12px 20px; border-radius: 999px; border: 1px dashed rgba(244, 238, 220, 0.35); color: var(--muted); font-weight: 600; }

/* ---------------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--line); background: #0e0119; }
.foot-inner { width: var(--wrap); margin: 0 auto; padding: 50px 0 30px; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-brand { display: flex; gap: 16px; align-items: center; max-width: 380px; }
.foot-brand strong { font: 700 1.2rem/1 var(--serif); color: var(--cream); letter-spacing: 0.06em; }
.foot-brand p { color: var(--muted); margin: 6px 0 0; font-size: 0.95rem; }
.foot-cols { display: flex; gap: 60px; }
.foot-cols h4 { font: 700 0.78rem/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot-cols a, .foot-cols span { display: block; color: var(--text); text-decoration: none; margin-bottom: 8px; }
.foot-cols a:hover { color: var(--gold-hi); }
.foot-base { width: var(--wrap); margin: 0 auto; padding: 18px 0 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--muted); }
.foot-base a { color: var(--muted); text-decoration: none; }
.foot-base a:hover { color: var(--cream); }

/* ---------------------------------------------------------------- reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 920px) {
    .hero { grid-template-columns: 1fr; text-align: center; padding-top: 20px; min-height: 0; }
    .hero-art { order: -1; width: min(420px, 90%); margin: 0 auto; }
    .lede { margin-inline: auto; }
    .hero-actions, .kicker { justify-content: center; }
    .scroll-cue { display: none; }
    .work { grid-template-columns: 1fr; }
    .work-img { min-height: 0; aspect-ratio: 16 / 8; }
    .crew { grid-template-columns: 1fr; gap: 30px; }
    .crew-art { height: 300px; }
}
@media (max-width: 760px) {
    .navtoggle { display: block; }
    .nav {
        position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
        background: var(--ink); border-bottom: 1px solid var(--line); padding: 10px 16px 18px;
        display: none;
    }
    .nav.open { display: flex; }
    .nav a { padding: 12px 10px; border-radius: 8px; }
    .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); }
    .nav .nav-cta { margin: 8px 0 0; text-align: center; }
    .work-body { padding: 26px 22px; }
    .foot-cols { gap: 36px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}
