/* Nova Terra – the site's look: deep space, neon cyan and magenta, panels with cut corners.
   Fonts are self-hosted (SIL Open Font License, see assets/fonts/OFL-*.txt). */

@font-face { font-family: 'Michroma'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/michroma-latin-400-normal-t2_M26b.woff2") format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/chakra-petch-latin-400-normal-2_yGQR-.woff2") format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/chakra-petch-latin-500-normal-nmHGaJK.woff2") format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/chakra-petch-latin-600-normal-wMdAHqB.woff2") format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/chakra-petch-latin-700-normal-bQR2myt.woff2") format('woff2'); }

:root {
    --bg: #050816;
    --text: #e8f3ff;
    --muted: #9cb0cf;
    --cyan: #3ee8ff;
    --magenta: #d24bff;
    --pink: #ff5bd9;
    --violet: #8b5cff;
    --line: rgba(62, 232, 255, .28);
    --fill: linear-gradient(180deg, rgba(12, 22, 50, .93), rgba(6, 11, 28, .95));
    --font-display: 'Michroma', 'Eurostile', 'Arial Black', sans-serif;
    --font-body: 'Chakra Petch', 'Segoe UI', system-ui, sans-serif;
    --cut: 18px;
    --wrap: 1560px;
    --gutter: clamp(16px, 3vw, 40px);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--cyan); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--cyan); color: #000; }
.skip-link:focus { top: 16px; }
.is-muted { color: var(--muted); }
.icon { width: 1.15em; height: 1.15em; flex: none; }

/* The starry sky behind everything. */
.sky {
    position: fixed;
    inset: 0;
    z-index: -10;
    pointer-events: none;
    background:
        radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 33% 72%, #cfe9ff 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 58% 34%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 77% 81%, #e6d6ff 50%, transparent 51%),
        radial-gradient(1px 1px at 91% 12%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 46% 93%, #bfe9ff 50%, transparent 51%),
        radial-gradient(1px 1px at 4% 55%, #fff 50%, transparent 51%),
        radial-gradient(ellipse 60% 45% at 85% 8%, rgba(139, 92, 255, .2), transparent 70%),
        radial-gradient(ellipse 50% 40% at 8% 65%, rgba(62, 232, 255, .07), transparent 70%),
        radial-gradient(ellipse 70% 50% at 50% 110%, rgba(210, 75, 255, .1), transparent 70%),
        var(--bg);
    background-size: 240px 240px, 310px 310px, 270px 270px, 350px 350px, 290px 290px, 330px 330px, 260px 260px, auto, auto, auto, auto;
}

/* ---------- Panels: cut corners, a gradient edge and a soft glow ---------- */
.panel, .btn, .main-nav, .csera-badge, .lang-switch {
    --c: var(--cut);
    --edge: linear-gradient(135deg, var(--cyan) 0%, rgba(62, 232, 255, .25) 30%, rgba(139, 92, 255, .25) 70%, var(--magenta) 100%);
    --shape: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
    position: relative;
    isolation: isolate;
}
.panel::before, .btn::before, .main-nav::before, .csera-badge::before, .lang-switch::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background: var(--edge);
    clip-path: var(--shape);
}
.panel::after, .btn::after, .main-nav::after, .csera-badge::after, .lang-switch::after {
    content: '';
    position: absolute;
    inset: 1.5px;
    z-index: -1;
    background: var(--fill);
    clip-path: var(--shape);
}
.panel { padding: clamp(18px, 2vw, 28px); filter: drop-shadow(0 0 10px rgba(62, 232, 255, .16)); }
.panel--cyan { --edge: linear-gradient(135deg, var(--cyan), rgba(62, 232, 255, .35) 50%, var(--cyan)); filter: drop-shadow(0 0 14px rgba(62, 232, 255, .35)); }
.panel--magenta { --edge: linear-gradient(135deg, var(--magenta), rgba(210, 75, 255, .35) 50%, var(--pink)); filter: drop-shadow(0 0 14px rgba(210, 75, 255, .35)); }

.slashes {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 700;
    letter-spacing: -.12em;
    color: var(--magenta);
    text-shadow: 0 0 10px rgba(210, 75, 255, .8);
}
.text-gradient {
    background: linear-gradient(90deg, #ff7be9, var(--magenta) 55%, #a46bff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
    --c: 11px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    color: #fff;
    font: 600 16px/1 var(--font-body);
    letter-spacing: .02em;
    text-decoration: none;
    transition: filter .2s, transform .2s;
}
.btn .icon { width: 18px; height: 18px; }
.icon--fill { fill: currentColor; }
.btn--cyan { --edge: var(--cyan); --fill: linear-gradient(180deg, rgba(20, 70, 96, .92), rgba(8, 30, 48, .95)); filter: drop-shadow(0 0 10px rgba(62, 232, 255, .55)); }
.btn--magenta { --edge: var(--magenta); --fill: linear-gradient(180deg, rgba(70, 20, 96, .92), rgba(32, 8, 48, .95)); filter: drop-shadow(0 0 10px rgba(210, 75, 255, .5)); }
.btn--ghost { --edge: rgba(210, 225, 255, .6); --fill: rgba(8, 14, 34, .8); }
.btn:hover { transform: translateY(-1px); filter: drop-shadow(0 0 16px rgba(62, 232, 255, .7)) brightness(1.15); }

/* ---------- Header ---------- */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 20; padding-top: 18px; }
.site-header__row { display: flex; align-items: center; gap: 18px; }
.brand { display: block; flex: none; color: inherit; }
.logo { display: block; width: clamp(180px, 17vw, 270px); height: auto; overflow: visible; filter: drop-shadow(0 0 8px rgba(62, 232, 255, .4)); }
.logo__text { font-family: var(--font-display); font-size: 21px; letter-spacing: 8px; }
.logo__ring { filter: drop-shadow(0 0 3px #3ee8ff); }

.main-nav { --c: 14px; flex: 1; display: flex; justify-content: center; padding: 6px; filter: drop-shadow(0 0 8px rgba(62, 232, 255, .18)); }
.main-nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.main-nav__list li + li { border-left: 1px solid rgba(62, 232, 255, .16); }
.main-nav__link {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 4px;
    padding: 10px clamp(10px, 1.1vw, 18px);
    border-radius: 6px;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    transition: background .2s, box-shadow .2s;
}
.main-nav__link .icon { color: var(--cyan); }
.main-nav__link:hover { background: rgba(62, 232, 255, .08); }
.main-nav__link.is-active {
    background: linear-gradient(180deg, rgba(62, 232, 255, .24), rgba(62, 232, 255, .06));
    box-shadow: inset 0 0 0 1px var(--cyan), 0 0 16px rgba(62, 232, 255, .45);
}

.site-header__side { display: flex; align-items: center; gap: 12px; flex: none; }
.csera-badge { --c: 14px; display: flex; align-items: center; gap: 12px; padding: 10px 20px 10px 14px; --edge: linear-gradient(135deg, var(--cyan), rgba(62, 232, 255, .3)); filter: drop-shadow(0 0 8px rgba(62, 232, 255, .25)); }
.csera-badge__mark { width: 34px; height: 34px; color: var(--cyan); stroke-width: 1.6; filter: drop-shadow(0 0 6px var(--cyan)); }
.csera-badge__text { display: flex; flex-direction: column; line-height: 1.1; }
.csera-badge__text strong { font: 400 20px var(--font-display); letter-spacing: .14em; }
.csera-badge__text small { font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--cyan); }
.lang-switch { --c: 8px; display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 10px; color: var(--text); font: 400 12px var(--font-display); letter-spacing: .1em; text-decoration: none; }
.lang-switch:hover { color: var(--cyan); }
.menu-button { display: none; width: 46px; height: 46px; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: rgba(8, 14, 34, .8); color: var(--text); cursor: pointer; }
.menu-button .icon { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; min-height: clamp(600px, 82vh, 860px); }
.hero__art { position: absolute; inset: 0 0 0 auto; width: min(70%, 1300px); z-index: -1; }
.hero__art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% 40%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%), linear-gradient(0deg, transparent 0%, #000 30%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0%, #000 38%), linear-gradient(0deg, transparent 0%, #000 30%);
    mask-composite: intersect;
}
.hero__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: start; padding-top: 170px; padding-bottom: 150px; }
.hero__content { max-width: 900px; padding-top: 30px; }
.kicker { margin: 0; color: var(--cyan); font: 400 13px var(--font-display); letter-spacing: .5em; text-transform: uppercase; }
.hero__title {
    margin: 16px 0 22px;
    font: 400 clamp(40px, 5vw, 92px)/1 var(--font-display);
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #f3fbff;
    text-shadow: 0 0 26px rgba(62, 232, 255, .35);
}
.hero__title .text-gradient { text-shadow: none; filter: drop-shadow(0 0 18px rgba(210, 75, 255, .45)); }
.hero__text { margin: 0; max-width: 36em; color: #dbe8ff; font-size: clamp(17px, 1.3vw, 20px); text-shadow: 0 1px 12px rgba(0, 0, 0, .8); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 34px; }
.hero__actions .slashes { font-size: 22px; }

.csera { width: 340px; margin-top: 10px; }
.csera__head { display: flex; align-items: center; justify-content: space-between; }
.csera__head h2 { margin: 0; font: 400 26px var(--font-display); letter-spacing: .1em; }
.csera__head .slashes { font-size: 18px; }
.csera__name { margin: 4px 0 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(62, 232, 255, .3); color: var(--cyan); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.csera__list { margin: 0; }
.csera__list div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; padding: 5px 0; font-size: 15px; }
.csera__list dt { color: var(--muted); }
.csera__list dt::before { content: '▸'; margin-right: 8px; color: var(--cyan); }
.csera__list dt::after { content: ':'; }
.csera__list dd { margin: 0; font-weight: 600; }
.csera__list .is-alert { color: var(--pink); text-shadow: 0 0 10px rgba(255, 91, 217, .6); }
.csera__list .is-muted { color: var(--muted); font-weight: 500; }
.redacted { display: inline-block; width: var(--w); height: .95em; vertical-align: -.12em; background: repeating-linear-gradient(90deg, #d7e3f7 0 85%, transparent 85% 100%); background-size: 1ch 100%; color: transparent; user-select: none; }

/* ---------- Cards ---------- */
.cards { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin-top: -120px; }
.card { display: flex; flex-direction: column; padding: 0; color: inherit; text-decoration: none; transition: transform .25s, filter .25s; }
.card:hover { transform: translateY(-4px); filter: drop-shadow(0 0 18px rgba(62, 232, 255, .4)); }
.card__media { position: relative; height: 160px; margin: 1.5px 1.5px 0; clip-path: polygon(var(--c) 0, 100% 0, 100% 100%, 0 100%, 0 var(--c)); }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(9, 16, 40, .96)); }
.card__body { position: relative; flex: 1; display: flex; flex-direction: column; margin-top: -40px; padding: 0 22px 20px; }
.card__icon { width: 32px; height: 32px; color: var(--cyan); filter: drop-shadow(0 0 6px rgba(62, 232, 255, .8)); }
.card__title { margin: 12px 0 8px; font: 400 16px var(--font-display); letter-spacing: .1em; text-transform: uppercase; }
.card__text { flex: 1; margin: 0 0 12px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.card__arrow { align-self: flex-end; width: 22px; height: 22px; }

/* ---------- Sections ---------- */
.section-title { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font: 400 17px var(--font-display); letter-spacing: .1em; text-transform: uppercase; }
.section-title__icon { width: 26px; height: 26px; color: var(--magenta); filter: drop-shadow(0 0 6px rgba(210, 75, 255, .7)); }
.section-title .slashes { font-size: 15px; }
.split { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 24px; margin-top: 28px; }
.split--news { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); padding: 0; }
.about__text { padding: clamp(20px, 2vw, 30px); }
.about__text p { margin: 0 0 14px; color: #d3e0f5; }
.about__art { position: relative; margin: 1.5px 1.5px 1.5px 0; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%); }
.about__art img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%); }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; align-items: center; gap: 12px; padding: 4px 0; font-size: 15.5px; }
.checklist .icon { color: var(--cyan); stroke-width: 3; }

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.feature-list__item { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border: 1px solid rgba(62, 232, 255, .22); border-radius: 4px; background: rgba(10, 20, 46, .6); }
.feature-list__icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border: 1px solid rgba(62, 232, 255, .4); border-radius: 4px; color: var(--cyan); }
.feature-list__icon .icon { width: 24px; height: 24px; }
.feature-list__item strong { display: block; font-weight: 600; }
.feature-list__item small { color: var(--muted); font-size: 13.5px; }

/* ---------- News ---------- */
.news__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; }
.news-feature { position: relative; display: block; min-height: 320px; overflow: hidden; border: 1px solid rgba(62, 232, 255, .3); border-radius: 4px; color: inherit; text-decoration: none; }
.news-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-feature:hover img { transform: scale(1.04); }
.news-feature::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, rgba(5, 8, 22, .94) 85%); }
.news-feature__body { position: absolute; inset: auto 0 0 0; z-index: 1; padding: 20px 22px; }
.news-feature h3 { margin: 10px 0 4px; font-size: clamp(20px, 1.8vw, 26px); font-weight: 600; }
.news-feature__meta { margin: 0 0 6px; color: var(--muted); font-size: 14px; }
.news-feature__excerpt { margin: 0; max-width: 40em; padding-right: 30px; color: #d3e0f5; font-size: 15px; }
.news-feature__arrow { position: absolute; right: 20px; bottom: 20px; width: 22px; height: 22px; color: var(--cyan); }
.news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-content: start; }
.news-item { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 14px; padding: 8px; border: 1px solid rgba(62, 232, 255, .2); border-radius: 4px; background: rgba(10, 20, 46, .55); color: inherit; text-decoration: none; transition: border-color .2s, background .2s; }
.news-item:hover { border-color: var(--cyan); background: rgba(14, 30, 64, .7); }
.news-item img { width: 110px; height: 72px; object-fit: cover; border-radius: 3px; display: block; }
.news-item__body { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.news-item__body strong { font-weight: 600; line-height: 1.25; }
.news-item__body time { color: var(--muted); font-size: 13px; }
.badge { display: inline-block; padding: 2px 8px; border: 1px solid currentColor; border-radius: 3px; background: rgba(5, 8, 22, .6); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.badge--news { color: var(--pink); }
.badge--devlog { color: var(--magenta); }
.badge--feature { color: var(--cyan); }

/* ---------- Development log ---------- */
.timeline { position: relative; list-style: none; margin: 0; padding: 0; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 18px; bottom: 18px; width: 1px; background: linear-gradient(var(--magenta), var(--cyan)); opacity: .6; }
.timeline__item { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid rgba(62, 232, 255, .1); }
.timeline__dot { position: relative; z-index: 1; justify-self: center; width: 14px; height: 14px; border: 2px solid var(--cyan); border-radius: 50%; background: var(--bg); }
.is-progress .timeline__dot, .is-testing .timeline__dot { border-color: var(--magenta); background: radial-gradient(var(--magenta) 35%, var(--bg) 40%); box-shadow: 0 0 10px var(--magenta); }
.is-planned .timeline__dot { border-style: dashed; border-color: var(--muted); }
.timeline__text strong { display: block; font-weight: 600; line-height: 1.3; }
.timeline__text time, .timeline__when { color: var(--muted); font-size: 13px; }
.status { padding: 3px 10px; border: 1px solid currentColor; border-radius: 3px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.status--done { color: var(--cyan); }
.status--testing { color: var(--pink); }
.status--progress { color: var(--magenta); }
.status--planned { color: var(--muted); }
.link-more { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 16px; text-underline-offset: 4px; }

/* ---------- Gallery ---------- */
.gallery { margin-top: 28px; }
.gallery__viewport { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px; }
.gallery__track {
    --per: 5;
    list-style: none;
    margin: 0;
    padding: 4px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (var(--per) - 1) * 14px) / var(--per));
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__item { scroll-snap-align: start; }
.gallery__item figure { margin: 0; }
.gallery__item img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid rgba(62, 232, 255, .3); border-radius: 4px; }
.gallery__item figcaption { margin-top: 6px; color: var(--muted); font-size: 13px; }
.gallery__nav { display: grid; place-items: center; width: 44px; height: 70px; padding: 0; border: 0; background: none; color: var(--cyan); cursor: pointer; filter: drop-shadow(0 0 6px rgba(62, 232, 255, .7)); }
.gallery__nav .icon { width: 32px; height: 32px; }
.gallery__nav:disabled { opacity: .25; cursor: default; }
.gallery__dots { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.gallery__dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(200, 220, 255, .3); cursor: pointer; }
.gallery__dots button[aria-current='true'] { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }

/* ---------- AI notice ---------- */
.ai-notice { display: flex; align-items: center; gap: 28px; margin-top: 28px; padding: 26px 34px; }
.ai-chip { flex: none; width: 74px; height: 74px; color: #f0b8ff; filter: drop-shadow(0 0 8px rgba(210, 75, 255, .9)); }
.ai-notice > div { padding-left: 28px; border-left: 1px solid rgba(210, 75, 255, .4); }
.ai-notice__title { margin: 0 0 6px; font: 400 19px var(--font-display); letter-spacing: .06em; text-transform: uppercase; }
.ai-notice p { margin: 0; color: #d3e0f5; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 56px; padding: 24px 0 20px; border-top: 1px solid rgba(62, 232, 255, .18); background: linear-gradient(180deg, rgba(8, 14, 34, .6), rgba(5, 8, 22, .96)); }
.site-footer__row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
.brand--small .logo { width: 190px; }
.site-footer__slashes { color: var(--magenta); font-style: italic; font-weight: 700; letter-spacing: -.1em; }
.site-footer__tagline { margin: 0; padding-left: 24px; border-left: 1px solid rgba(62, 232, 255, .25); color: var(--muted); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 14px 26px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.site-footer__links a { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; }
.site-footer__links a:hover { color: var(--cyan); }
.site-footer__links .icon { color: var(--cyan); width: 20px; height: 20px; }
.site-footer__fine { margin-top: 14px; margin-bottom: 0; color: #6f81a3; font-size: 13px; }

/* ---------- Sub pages ---------- */
.page-hero { position: relative; isolation: isolate; padding: 170px 0 60px; }
.page-hero__art { position: absolute; inset: 0; z-index: -1; }
.page-hero__art img { width: 100%; height: 100%; object-fit: cover; opacity: .7; -webkit-mask-image: linear-gradient(0deg, transparent, #000 45%), linear-gradient(90deg, transparent, #000 45%); -webkit-mask-composite: source-in; mask-image: linear-gradient(0deg, transparent, #000 45%), linear-gradient(90deg, transparent, #000 45%); mask-composite: intersect; }
.page-hero h1 { margin: 12px 0 16px; font: 400 clamp(34px, 5vw, 72px)/1.05 var(--font-display); letter-spacing: .05em; text-transform: uppercase; text-shadow: 0 0 24px rgba(62, 232, 255, .35); }
.page-hero__lead { max-width: 40em; margin: 0; color: #dbe8ff; font-size: clamp(17px, 1.3vw, 20px); text-shadow: 0 1px 12px rgba(0, 0, 0, .8); }
.page-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.prose h2 { margin: 0 0 12px; font: 400 17px var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.prose p { margin: 0 0 12px; color: #d3e0f5; }
.prose p:last-child { margin-bottom: 0; }
.prose .icon-lg { width: 34px; height: 34px; margin-bottom: 10px; color: var(--cyan); filter: drop-shadow(0 0 6px rgba(62, 232, 255, .7)); }
.stack > * + * { margin-top: 24px; }

.classified { max-width: 760px; margin: 0 auto; text-align: center; }
.classified__stamp { display: inline-block; margin: 6px 0 20px; padding: 8px 18px; border: 2px solid var(--pink); color: var(--pink); font: 400 clamp(20px, 3vw, 30px) var(--font-display); letter-spacing: .14em; text-transform: uppercase; transform: rotate(-3deg); text-shadow: 0 0 12px rgba(255, 91, 217, .7); box-shadow: 0 0 18px rgba(255, 91, 217, .35), inset 0 0 18px rgba(255, 91, 217, .2); }
.classified__lines { margin: 22px auto; text-align: left; }
.classified__lines span { display: block; height: 13px; width: var(--w); margin: 11px 0; background: rgba(215, 227, 247, .78); }

.post { max-width: 880px; margin-inline: auto; }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); }
.post__image { margin: 0 0 24px; }
.post__image img { display: block; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border: 1px solid rgba(62, 232, 255, .3); border-radius: 4px; }
.post__body p { font-size: 18px; }

/* ---------- Smaller screens ---------- */
@media (max-width: 1400px) {
    .csera-badge__text { display: none; }
    .csera-badge { padding: 8px 10px; }
}
@media (max-width: 1280px) {
    .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gallery__track { --per: 3; }
}
@media (max-width: 1150px) {
    .menu-button { display: grid; }
    .main-nav { position: absolute; top: calc(100% + 10px); left: var(--gutter); right: var(--gutter); display: none; padding: 10px; }
    .site-header.is-open .main-nav { display: block; }
    .main-nav__list { flex-direction: column; align-items: stretch; }
    .main-nav__list li + li { border-left: 0; border-top: 1px solid rgba(62, 232, 255, .12); }
    .main-nav__link { margin: 4px 0; padding: 12px 14px; }
    .site-header__side { margin-left: auto; }
    .hero__row { grid-template-columns: 1fr; padding-bottom: 150px; }
    .split, .split--news { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    body { font-size: 16px; }
    .hero__art { width: 100%; opacity: .6; }
    .hero__row { padding-top: 130px; }
    .csera { width: 100%; max-width: 420px; }
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -90px; }
    .about { grid-template-columns: 1fr; }
    .about__art { height: 220px; margin: 0 1.5px 1.5px; }
    .news__grid { grid-template-columns: 1fr; }
    .gallery__track { --per: 2; }
    .gallery__viewport { grid-template-columns: 30px minmax(0, 1fr) 30px; }
    .site-footer__tagline { padding-left: 0; border-left: 0; }
    .site-footer__links { margin-left: 0; }
    .csera-badge { display: none; }
}
@media (max-width: 520px) {
    .cards { grid-template-columns: 1fr; }
    .card__media { height: 140px; }
    .ai-notice { flex-direction: column; align-items: flex-start; padding: 22px; }
    .ai-notice > div { padding-left: 0; border-left: 0; }
    .gallery__track { --per: 1.2; }
    .news-item { grid-template-columns: 88px minmax(0, 1fr); }
    .news-item img { width: 88px; height: 64px; }
    .timeline__item { grid-template-columns: 20px minmax(0, 1fr); }
    .timeline__item .status { grid-column: 2; justify-self: start; }
    .hero__actions .slashes { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}

/* ---------- Coming soon ---------- */
.soon { position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
.soon__top { padding-top: 22px; animation: fade-down .9s cubic-bezier(.2, .7, .2, 1) both; }
.soon__main { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; padding-block: 24px 48px; }
.soon .hero__content { padding-top: 0; }
.hero__content > :nth-child(5) { animation-delay: .75s; }
.hero__content > :nth-child(6) { animation-delay: .9s; }
.soon__label {
    display: flex;
    flex-wrap: wrap;
    margin: 0 0 24px;
    font: 400 clamp(20px, 2.6vw, 38px)/1.2 var(--font-display);
    letter-spacing: .42em;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--cyan), #ffffff 25%, var(--magenta) 50%, #ffffff 75%, var(--cyan));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 14px rgba(62, 232, 255, .35));
}
.hero__content > .soon__label { animation: shimmer 9s linear infinite; }
.soon__label span { display: inline-block; animation: letter-in .7s ease-out both; animation-delay: calc(.8s + var(--i) * 75ms); }
@keyframes letter-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes shimmer { from { background-position: 0% 0; } to { background-position: 300% 0; } }
.soon__status { display: flex; align-items: center; gap: 14px; max-width: 540px; margin-top: 30px; color: var(--muted); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; }
.soon__bar { position: relative; flex: 1; height: 4px; overflow: hidden; border-radius: 2px; background: rgba(62, 232, 255, .12); }
.soon__bar::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 35%; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--cyan), var(--magenta), transparent); animation: sweep 2.8s cubic-bezier(.5, 0, .5, 1) infinite; }
@keyframes sweep { from { translate: -100% 0; } to { translate: 300% 0; } }
.soon__state { color: var(--pink); text-shadow: 0 0 10px rgba(255, 91, 217, .6); animation: alert 2.6s ease-in-out infinite; }
.soon__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; padding-block: 16px 22px; border-top: 1px solid rgba(62, 232, 255, .12); color: #7d8fb0; font-size: 13px; }
.soon__ai { display: inline-flex; align-items: center; gap: 10px; }
.soon__ai .ai-chip { width: 26px; height: 26px; }
@media (max-width: 1150px) {
    .soon__main { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .soon__label { letter-spacing: .3em; }
    .soon__status { flex-wrap: wrap; }
    .soon__bar { flex-basis: 100%; order: 3; }
}

/* ---------- Motion: calm and tasteful; everything stops with reduced motion ---------- */
.sky::before, .sky::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
.sky::before {
    background:
        radial-gradient(1.5px 1.5px at 22% 40%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 67% 12%, #e6d6ff 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 84% 58%, #cfe9ff 50%, transparent 51%),
        radial-gradient(1px 1px at 41% 77%, #fff 50%, transparent 51%);
    background-size: 380px 380px, 420px 420px, 460px 460px, 400px 400px;
    animation: twinkle 7s ease-in-out infinite alternate, drift 240s linear infinite;
}
.sky::after {
    top: 12%; left: 62%; right: auto; bottom: auto;
    width: 160px; height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9), transparent);
    rotate: -24deg;
    opacity: 0;
    animation: shooting-star 19s ease-in 6s infinite;
}
@keyframes twinkle { from { opacity: .25; } to { opacity: 1; } }
@keyframes drift { to { background-position: -380px 190px, -420px 210px, -460px 230px, -400px 200px; } }
@keyframes shooting-star {
    0%, 92% { opacity: 0; translate: 0 0; }
    93% { opacity: 1; }
    97% { opacity: 0; translate: -340px 150px; }
    100% { opacity: 0; translate: -340px 150px; }
}

.site-header { animation: fade-down .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero__art img { animation: settle 2.8s cubic-bezier(.2, .7, .2, 1) both; }
.hero__content > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero__content > :nth-child(1) { animation-delay: .15s; }
.hero__content > :nth-child(2) { animation-delay: .3s; }
.hero__content > :nth-child(3) { animation-delay: .45s; }
.hero__content > :nth-child(4) { animation-delay: .6s; }
.csera { animation: slide-in 1.1s cubic-bezier(.2, .7, .2, 1) .7s both; }
.hero__title { animation: rise .9s cubic-bezier(.2, .7, .2, 1) .3s both, breathe 7s ease-in-out 1.5s infinite; }
@keyframes fade-down { from { opacity: 0; translate: 0 -14px; } }
@keyframes settle { from { opacity: 0; scale: 1.08; } to { opacity: 1; scale: 1; } }
@keyframes rise { from { opacity: 0; translate: 0 18px; filter: blur(4px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@keyframes slide-in { from { opacity: 0; translate: 36px 0; } }
@keyframes breathe { 50% { text-shadow: 0 0 34px rgba(62, 232, 255, .55); } }

.hero__art, .motes, .hero__row { will-change: transform; }
.motes { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.motes span {
    position: absolute;
    left: var(--x); top: var(--y);
    width: var(--s); height: var(--s);
    border-radius: 50%;
    background: #e9c8ff;
    box-shadow: 0 0 8px 1px rgba(210, 75, 255, .8);
    opacity: 0;
    animation: float var(--t) ease-in-out var(--d) infinite;
}
@keyframes float {
    0% { opacity: 0; translate: 0 0; }
    20% { opacity: .7; }
    80% { opacity: .5; }
    100% { opacity: 0; translate: 26px -120px; }
}

.csera__scan { position: absolute; inset: 1.5px; overflow: hidden; clip-path: var(--shape); pointer-events: none; }
.csera__scan::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: -30%;
    height: 30%;
    background: linear-gradient(180deg, transparent, rgba(62, 232, 255, .1) 70%, rgba(62, 232, 255, .35) 98%, transparent);
    animation: scan 7.5s cubic-bezier(.5, 0, .5, 1) 2s infinite;
}
@keyframes scan { 0% { translate: 0 0; } 45%, 100% { translate: 0 460%; } }
.csera__list .is-alert { animation: alert 2.6s ease-in-out infinite; }
@keyframes alert { 50% { opacity: .55; } }

.card__media img { transition: scale .6s cubic-bezier(.2, .7, .2, 1), filter .6s; }
.card:hover .card__media img { scale: 1.06; filter: brightness(1.12) saturate(1.1); }
.card__media::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .16) 50%, transparent 70%);
    translate: -130% 0;
    transition: translate .9s cubic-bezier(.2, .7, .2, 1);
}
.card:hover .card__media::before { translate: 130% 0; }
.card:hover .card__arrow { translate: 4px 0; }
.card__arrow { transition: translate .3s; }
.gallery__item img { transition: scale .5s, border-color .3s; }
.gallery__item:hover img { scale: 1.03; border-color: var(--cyan); }

.js [data-reveal] {
    opacity: 0;
    translate: 0 28px;
    transition: opacity .9s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0ms), translate .9s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0ms), transform .25s, filter .25s;
}
.js [data-reveal].is-visible, .reveal-fallback [data-reveal] { opacity: 1; translate: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; }
    .js [data-reveal] { opacity: 1; translate: none; }
    .motes, .sky::after { display: none; }
}
