

/* ==================== FONTS (files in fonts/) ==================== */

@font-face {
    font-family: 'Barlow';
    src: url('fonts/barlow-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow';
    src: url('fonts/barlow-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow';
    src: url('fonts/barlow-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Big Shoulders Display';
    src: url('fonts/big-shoulders-display.woff2') format('woff2');
    font-weight: 700 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Share Tech Mono';
    src: url('fonts/share-tech-mono.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ==================== SHARED: COLOURS, TEXT, HEADER AND FOOTER ==================== */

:root {

    --bg-0: #030705;
    --bg-1: #07110c;
    --bg-2: #0c1b13;
    --bg-3: #13281c;
    --moss: #1f4a31;
    --fern: #4a9a62;

    --amber: #ffb02e;
    --amber-hot: #ff8a1f;
    --flare: #ff3d1f;
    --bone: #efe6d2;
    --holo: #6af7d1;
    --text: #e9e5d6;
    --muted: #9fb0a6;
    --line: rgba(255, 176, 46, .24);
    --line-soft: rgba(233, 229, 214, .1);
    --glow: rgba(255, 176, 46, .35);
    --f-display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
    --f-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --f-mono: 'Share Tech Mono', ui-monospace, 'SF Mono', Menlo, monospace;
    --gutter: clamp(16px, 4vw, 48px);
    --maxw: 1280px;
    --nav-h: 60px;
    --tick-h: 28px;
    --head-h: calc(var(--nav-h) + var(--tick-h));
    --ease: cubic-bezier(.2, .7, .2, 1);
}

html.lockdown {
    --amber: #ff3d1f;
    --amber-hot: #ff1f1f;
    --line: rgba(255, 61, 31, .4);
    --glow: rgba(255, 61, 31, .5);
    --bg-1: #120706;
    --bg-2: #1c0c0a;
    --bg-3: #2a1210;
}

/* ---------- RESET ---------- */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--head-h) + 12px);
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg-0);
    color: var(--text);
    font: 400 1.0625rem/1.65 var(--f-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body.is-loading {
    overflow: hidden;
}

img,
svg,
canvas,
iframe,
video {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
dl,
dd {
    margin: 0;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

::selection {
    background: var(--amber);
    color: #000;
}

:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
    white-space: nowrap;
}

.skip {
    position: fixed;
    left: 12px;
    top: -60px;
    z-index: 2000;
    background: var(--amber);
    color: #000;
    padding: 10px 16px;
    font-weight: 700;
    transition: top .2s;
}

.skip:focus {
    top: 12px;
}

html {
    scrollbar-color: var(--amber) var(--bg-1);
    scrollbar-width: thin;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-1);
}

::-webkit-scrollbar-thumb {
    background: var(--moss);
    border: 2px solid var(--bg-1);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--amber);
}

/* ---------- TYPE ---------- */

.display,
h1,
h2,
h3 {
    font-family: var(--f-display);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .01em;
    line-height: .92;
}

h1 {
    font-size: clamp(3.4rem, 10.5vw, 9.5rem);
    font-weight: 900;
}

h2 {
    font-size: clamp(2.4rem, 6vw, 5rem);
}

h3 {
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    line-height: 1;
}

.mono {
    font-family: var(--f-mono);
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .78rem;
}

.eyebrow {
    font-family: var(--f-mono);
    font-size: .8rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--amber);
    display: inline-flex;
    align-items: center;
    gap: .8em;
}

.eyebrow::before {
    content: "";
    width: 34px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 0 10px var(--glow);
}

.lead {
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
    color: #cfd6c8;
    max-width: 62ch;
}

.muted {
    color: var(--muted);
}

.metal {
    background: linear-gradient(180deg, #fff6df 0%, #ffd27a 38%, var(--amber-hot) 66%, #7c2a00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 24px rgba(255, 138, 31, .28));
}

html.lockdown .metal {
    background-image: linear-gradient(180deg, #ffe7e0 0%, #ff8a70 38%, #ff3d1f 66%, #4a0a00 100%);
}

/* ---------- LAYOUT ---------- */

.wrap {
    width: min(var(--maxw), 100% - 2 * var(--gutter));
    margin-inline: auto;
}

.section {
    position: relative;
    padding-block: clamp(72px, 11vw, 150px);
}

.section--tight {
    padding-block: clamp(48px, 7vw, 90px);
}

.section-head {
    display: grid;
    gap: 18px;
    margin-bottom: clamp(32px, 5vw, 64px);
}

.section-head p {
    color: #c3ccbf;
    max-width: 60ch;
}

/* ---------- HUD PRIMITIVES ---------- */

.panel {
    position: relative;
    background: linear-gradient(180deg, rgba(19, 40, 28, .72), rgba(7, 17, 12, .86));
    border: 1px solid var(--line);
    backdrop-filter: blur(6px);
}

.panel::before,
.panel::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid var(--amber);
    pointer-events: none;
    transition: width .3s var(--ease), height .3s var(--ease);
}

.panel::before {
    top: -1px;
    left: -1px;
    border-right: 0;
    border-bottom: 0;
}

.panel::after {
    bottom: -1px;
    right: -1px;
    border-left: 0;
    border-top: 0;
}

.panel:hover::before,
.panel:hover::after {
    width: 30px;
    height: 30px;
}

.scan::after {

    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .0) 0 2px, rgba(0, 0, 0, .1) 2px 3px);
    mix-blend-mode: multiply;
    opacity: .5;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    padding: .35em .8em;
    font-family: var(--f-mono);
    font-size: .74rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    border: 1px solid var(--line);
    color: var(--text);
    background: rgba(0, 0, 0, .35);
    transition: .2s;
}

.chip i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--c, var(--amber));
    box-shadow: 0 0 8px var(--c, var(--amber));
}

button.chip:hover,
a.chip:hover,
.chip.is-on {
    border-color: var(--amber);
    background: rgba(255, 176, 46, .12);
    color: #fff;
}

.hazard {
    background: repeating-linear-gradient(-45deg, var(--amber) 0 10px, #0a0a0a 10px 20px);
}

.btn {
    --cut: 12px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .7em;
    padding: 1em 1.6em;
    min-height: 52px;
    font-family: var(--f-display);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #120a00;
    background: var(--amber);
    clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
    transition: transform .2s var(--ease), background .2s, box-shadow .2s, filter .2s;
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.12) drop-shadow(0 6px 18px var(--glow));
}

.btn:active {
    transform: translateY(0);
}

.btn svg {
    width: 1.1em;
    height: 1.1em;
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    box-shadow: inset 0 0 0 1.5px var(--line);
}

.btn--ghost:hover {
    box-shadow: inset 0 0 0 1.5px var(--amber);
    color: #fff;
    background: rgba(255, 176, 46, .08);
}

.btn--sm {
    min-height: 42px;
    padding: .6em 1.1em;
    font-size: 1rem;
    --cut: 9px;
}

.btn[disabled],
.btn[aria-disabled="true"] {
    opacity: .45;
    pointer-events: none;
}

.pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 0 0 var(--glow);
    animation: ping 1.8s infinite;
    display: inline-block;
}

@keyframes ping {
    0% {
        box-shadow: 0 0 0 0 var(--glow);
    }

    70% {
        box-shadow: 0 0 0 12px transparent;
    }

    100% {
        box-shadow: 0 0 0 0 transparent;
    }
}

/* ---------- HEADER: NAV + LIVE TICKER ---------- */

.site-head {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 900;
    transition: transform .35s var(--ease), background .3s;
}

.site-head.is-hidden {
    transform: translateY(calc(-1 * var(--nav-h)));
}

.nav {
    height: var(--nav-h);
    display: flex;
    align-items: center;
    gap: 20px;
    padding-inline: var(--gutter);
    background: linear-gradient(180deg, rgba(3, 7, 5, .92), rgba(3, 7, 5, .55));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-soft);
}

.site-head.is-solid .nav {
    background: rgba(3, 7, 5, .92);
    border-bottom-color: var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
}

.brand svg {
    width: 40px;
    height: 40px;
    flex: none;
    filter: drop-shadow(0 0 10px var(--glow));
}

.brand b {
    display: block;
    font-family: var(--f-display);
    font-weight: 900;
    font-size: 1.35rem;
    letter-spacing: .08em;
    line-height: .95;
    text-transform: uppercase;
}

.brand small {
    display: block;
    font-family: var(--f-mono);
    font-size: .62rem;
    letter-spacing: .28em;
    color: var(--amber);
    text-transform: uppercase;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2.4vw, 34px);
}

.nav__links a {
    position: relative;
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 6px 2px;
    color: #cfd6c8;
}

.nav__links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 2px;
    background: var(--amber);
    transition: right .3s var(--ease);
    box-shadow: 0 0 10px var(--glow);
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
    color: #fff;
}

.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after {
    right: 0;
}

.nav__tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tool {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    font-family: var(--f-mono);
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #cfd6c8;
    transition: .2s;
}

.tool svg {
    width: 16px;
    height: 16px;
}

.tool:hover {
    border-color: var(--amber);
    color: #fff;
}

.tool[aria-pressed="true"] {
    background: var(--amber);
    color: #120a00;
    border-color: var(--amber);
}

.tool--danger {
    border-color: rgba(255, 61, 31, .55);
    color: #ff8a70;
}

.tool--danger:hover {
    background: #ff3d1f;
    color: #fff;
    border-color: #ff3d1f;
}

.nav__burger {
    display: none;
    width: 42px;
    height: 38px;
    border: 1px solid var(--line);
    position: relative;
}

.nav__burger span {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--text);
    transition: .3s var(--ease);
}

.nav__burger span:nth-child(1) {
    top: 12px;
}

.nav__burger span:nth-child(2) {
    top: 18px;
}

.nav__burger span:nth-child(3) {
    top: 24px;
}

.nav__burger[aria-expanded="true"] span:nth-child(1) {
    top: 18px;
    transform: rotate(45deg);
}

.nav__burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav__burger[aria-expanded="true"] span:nth-child(3) {
    top: 18px;
    transform: rotate(-45deg);
}

.ticker {
    height: var(--tick-h);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: rgba(3, 7, 5, .82);
    border-bottom: 1px solid var(--line-soft);
    font-family: var(--f-mono);
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ticker__live {
    flex: none;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    padding: 0 14px;
    background: var(--amber);
    color: #120a00;
    font-weight: 700;
}

.ticker__live .pulse-dot {
    background: #120a00;
    animation: none;
}

.ticker__track {
    display: flex;
    gap: 48px;
    white-space: nowrap;
    padding-left: 48px;
    animation: marquee 48s linear infinite;
    color: #b7c4b9;
    will-change: transform;
}

.ticker__track span b {
    color: var(--amber);
    font-weight: 400;
}

html.lockdown .ticker__track {
    color: #ffb4a6;
}

@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 920px) {
    :root {
        --nav-h: 56px;
        --tick-h: 26px;
    }

    .nav__burger {
        display: block;
    }

    .nav__tools .tool .tool__label {
        display: none;
    }

    .nav__tools .tool {
        padding: 0 10px;
    }

    .nav__links {
        position: fixed;
        inset: var(--head-h) 0 0 0;
        flex-direction: column;
        justify-content: center;
        gap: 22px;
        background: rgba(3, 7, 5, .97);
        backdrop-filter: blur(14px);
        opacity: 0;
        visibility: hidden;
        transition: .3s var(--ease);
        transform: translateY(-12px);
    }

    .nav__links a {
        font-size: clamp(2.2rem, 9vw, 3.4rem);
        letter-spacing: .06em;
    }

    .nav.is-open .nav__links {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .brand small {
        display: none;
    }
}

@media (max-width: 420px) {
    .ticker__live span {
        display: none;
    }

    .tool--danger .tool__label {
        display: none;
    }
}

.progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 1001;
    background: transparent;
    pointer-events: none;
}

.progress i {
    display: block;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--amber-hot), var(--amber));
    transform-origin: left;
    transform: scaleX(0);
    box-shadow: 0 0 14px var(--glow);
}

/* ---------- REVEAL ON SCROLL ---------- */

.js .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
    transition-delay: calc(var(--d, 0) * 90ms);
}

.js .reveal.in {
    opacity: 1;
    transform: none;
}

.js .reveal--left {
    transform: translateX(-40px);
}

.js .reveal--right {
    transform: translateX(40px);
}

.js .reveal--scale {
    transform: scale(.94);
}

/* ---------- FX LAYERS ---------- */

.fx-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.flash {
    position: fixed;
    inset: 0;
    z-index: 950;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(210, 235, 255, .85), rgba(160, 200, 255, .35) 60%, transparent 100%);
    mix-blend-mode: screen;
}

.flash.go {
    animation: lightning 1.2s ease-out;
}

@keyframes lightning {
    0% {
        opacity: 0;
    }

    6% {
        opacity: .5;
    }

    28% {
        opacity: .06;
    }

    40% {
        opacity: .38;
    }

    100% {
        opacity: 0;
    }
}

html.tremor main,
html.tremor .site-foot {
    animation: tremor .6s linear;
}

html.tremor-big main,
html.tremor-big .site-foot {
    animation: tremor-big .9s linear;
}

@keyframes tremor {
    0%, 100% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-1px, 1px);
    }

    20% {
        transform: translate(2px, -1px);
    }

    30% {
        transform: translate(-2px, 1px);
    }

    45% {
        transform: translate(1px, 2px);
    }

    60% {
        transform: translate(-1px, -1px);
    }

    80% {
        transform: translate(1px, 0);
    }
}

@keyframes tremor-big {
    0%, 100% {
        transform: translate(0, 0);
    }

    8% {
        transform: translate(-4px, 3px);
    }

    16% {
        transform: translate(5px, -3px);
    }

    24% {
        transform: translate(-5px, 2px);
    }

    36% {
        transform: translate(4px, 4px);
    }

    48% {
        transform: translate(-3px, -4px);
    }

    62% {
        transform: translate(3px, 2px);
    }

    80% {
        transform: translate(-1px, 1px);
    }
}

.lock-fx {
    position: fixed;
    inset: 0;
    z-index: 940;
    pointer-events: none;
    opacity: 0;
    transition: opacity .4s;
    overflow: hidden;
    visibility: hidden;
}

html.lockdown .lock-fx {
    visibility: visible;
}

html.lockdown .lock-fx {
    opacity: 1;
}

.lock-fx::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(255, 30, 10, .35) 100%);
    animation: alarm 1.2s ease-in-out infinite;
}

.beacon {
    position: absolute;
    top: calc(var(--head-h) + 8px);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 90, 60, .9), rgba(255, 40, 20, 0) 65%);
    animation: alarm 1.2s ease-in-out infinite;
    mix-blend-mode: screen;
}

.beacon--l {
    left: -30px;
}

.beacon--r {
    right: -30px;
    animation-delay: .6s;
}

.lock-banner {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100% - 24px);
    text-align: center;
    padding: 10px 22px;
    background: #ff3d1f;
    color: #fff;
    font-family: var(--f-display);
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    animation: alarm-text 1.2s steps(1) infinite;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

@media (max-width: 520px) {
    .lock-banner {
        font-size: .95rem;
        letter-spacing: .08em;
        padding: 8px 16px;
    }
}

@keyframes alarm {
    0%, 100% {
        opacity: .15;
    }

    50% {
        opacity: 1;
    }
}

@keyframes alarm-text {
    50% {
        opacity: .35;
    }
}

.reticle {
    position: fixed;
    z-index: 1500;
    left: 0;
    top: 0;
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s, width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), border-color .2s;
    border: 1.5px solid var(--amber);
    border-radius: 50%;
    mix-blend-mode: screen;
    will-change: transform;
}

.reticle::before,
.reticle::after {
    content: "";
    position: absolute;
    background: var(--amber);
}

.reticle::before {
    left: 50%;
    top: -6px;
    bottom: -6px;
    width: 1.5px;
    transform: translateX(-50%);
    opacity: .6;
}

.reticle::after {
    top: 50%;
    left: -6px;
    right: -6px;
    height: 1.5px;
    transform: translateY(-50%);
    opacity: .6;
}

.reticle.on {
    opacity: .9;
}

.reticle.hot {
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
    border-color: #fff;
}

@media (hover: none), (pointer: coarse) {
    .reticle {
        display: none;
    }
}

/* ---------- MARQUEE BAND ---------- */

.band {
    overflow: hidden;
    border-block: 1px solid var(--line);
    background: #060d09;
    padding-block: 14px;
}

.band__track {
    display: flex;
    width: max-content;
    gap: 56px;
    animation: marquee 40s linear infinite;
    font-family: var(--f-display);
    font-weight: 800;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 176, 46, .6);
    white-space: nowrap;
}

.band__track span {
    display: inline-flex;
    align-items: center;
    gap: 56px;
}

.band__track span::after {
    content: "✦";
    color: var(--amber);
    -webkit-text-stroke: 0;
    font-size: .7em;
}

/* ---------- GAUGE BARS ---------- */

.gauge {
    display: grid;
    gap: 6px;
}

.gauge__row {
    display: grid;
    grid-template-columns: 78px 1fr 34px;
    align-items: center;
    gap: 10px;
    font-family: var(--f-mono);
    font-size: .74rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

.gauge__bar {
    height: 8px;
    background: rgba(255, 255, 255, .07);
    position: relative;
    overflow: hidden;
}

.gauge__bar i {
    position: absolute;
    inset: 0;
    width: 100%;
    background: linear-gradient(90deg, var(--c, var(--amber)), color-mix(in srgb, var(--c, var(--amber)) 55%, #fff));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.2s var(--ease);
    box-shadow: 0 0 10px var(--c, var(--amber));
}

.in .gauge__bar i,
.gauge.in .gauge__bar i {
    transform: scaleX(var(--v));
}

.gauge__row b {
    color: var(--text);
    font-weight: 400;
    text-align: right;
}

/* ---------- 3D VIEWER FRAME (SHARED) — GOOGLE <MODEL-VIEWER> ---------- */

.viewer {
    position: relative;
    aspect-ratio: 4 / 3;
    min-height: 300px;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 42%, #1c3326 0%, #0a1510 62%, #050a07 100%);
}

.viewer model-viewer,
.stage model-viewer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    --poster-color: transparent;
    --progress-bar-color: var(--amber);
    --progress-bar-height: 3px;
    outline: 0;
}

.viewer.scan::after {
    opacity: .35;
}

.viewer__tag {
    position: absolute;
    z-index: 5;
    top: 12px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    background: rgba(3, 7, 5, .7);
    border: 1px solid var(--line);
    color: var(--amber);
    font-size: .66rem;
    pointer-events: none;
}

.mv-ar {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 6;
}

/* ---------- FOOTER ---------- */

.site-foot {
    position: relative;
    background: #020503;
    border-top: 1px solid var(--line);
    padding-top: clamp(48px, 7vw, 90px);
}

.site-foot::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    height: 6px;
    width: 100%;
    background: repeating-linear-gradient(-45deg, var(--amber) 0 10px, #050505 10px 20px);
    opacity: .85;
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: clamp(28px, 5vw, 72px);
    padding-bottom: 48px;
}

.foot-grid h4 {
    font-family: var(--f-mono);
    font-size: .78rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 16px;
    font-weight: 400;
}

.foot-grid li {
    margin-bottom: 8px;
}

.foot-grid a:hover {
    color: var(--amber);
}

.foot-grid p {
    color: var(--muted);
    font-size: .95rem;
    max-width: 46ch;
}

.credits {
    border-top: 1px solid var(--line-soft);
    padding-block: 22px 30px;
    font-size: .82rem;
    color: #7d8d83;
    display: grid;
    gap: 10px;
}

.credits a {
    text-decoration: underline;
    text-decoration-color: rgba(255, 176, 46, .4);
    text-underline-offset: 3px;
}

.credits a:hover {
    color: var(--amber);
}

.credits__line {
    color: var(--muted);
    font-family: var(--f-mono);
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: .74rem;
}

.credits ul {
    margin-top: 10px;
    display: grid;
    gap: 4px;
    columns: 2;
    column-gap: 28px;
}

@media (max-width: 800px) {
    .foot-grid {
        grid-template-columns: 1fr;
    }

    .credits ul {
        columns: 1;
    }
}

/* ---------- MOTION SAFETY ---------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }

    .ticker__track,
    .band__track {
        animation: none;
    }
}

/* ==================== HOME PAGE ONLY ==================== */

:where(.page-home) .hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: max(700px, 100svh);
    display: grid;
    align-items: center;
    padding-top: var(--head-h);
    background: #030806;
    --mx: 0;
    --my: 0;
}

:where(.page-home) .hero__sky {
    position: absolute;
    inset: 0;
    z-index: -6;
    background: radial-gradient(ellipse 60% 45% at 72% 88%, rgba(255, 138, 31, .26), transparent 62%), radial-gradient(ellipse 90% 60% at 15% -5%, rgba(38, 128, 118, .32), transparent 66%), linear-gradient(180deg, #02070a 0%, #061a1c 46%, #0a2218 76%, #04090a 100%);
}

html:where(.page-home).lockdown .hero__sky {
    background: radial-gradient(ellipse 60% 45% at 72% 88%, rgba(255, 50, 20, .4), transparent 62%), radial-gradient(ellipse 90% 60% at 15% -5%, rgba(120, 20, 10, .4), transparent 66%), linear-gradient(180deg, #0a0202 0%, #1a0605 46%, #1a0b08 76%, #090303 100%);
}

:where(.page-home) .hero__ridges {
    position: absolute;
    inset: auto 0 0 0;
    height: 70%;
    z-index: -4;
    pointer-events: none;
}

:where(.page-home) .hero__ridges svg {
    position: absolute;
    left: -4%;
    bottom: 0;
    width: 108%;
    height: 100%;
    transition: transform .6s var(--ease);
}

:where(.page-home) .hero__ridges svg:nth-child(1) {
    transform: translate(calc(var(--mx) * -6px), calc(var(--my) * -3px));
}

:where(.page-home) .hero__ridges svg:nth-child(2) {
    transform: translate(calc(var(--mx) * -14px), calc(var(--my) * -6px));
}

:where(.page-home) .hero__ridges svg:nth-child(3) {
    transform: translate(calc(var(--mx) * -26px), calc(var(--my) * -10px));
}

:where(.page-home) .hero__ridges svg:nth-child(4) {
    transform: translate(calc(var(--mx) * -40px), calc(var(--my) * -14px));
}

:where(.page-home) .hero__mist {
    position: absolute;
    left: -30%;
    width: 160%;
    z-index: -3;
    pointer-events: none;
    opacity: .9;
    background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(170, 210, 200, .17), transparent 70%);
    filter: blur(10px);
}

:where(.page-home) .hero__mist--1 {
    bottom: 4%;
    height: 38%;
    animation: drift 38s ease-in-out infinite alternate;
}

:where(.page-home) .hero__mist--2 {
    bottom: 22%;
    height: 30%;
    opacity: .6;
    animation: drift 52s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
    from {
        transform: translateX(-8%);
    }

    to {
        transform: translateX(8%);
    }
}

:where(.page-home) .hero__content {
    position: relative;
    z-index: 6;
    display: grid;
    gap: clamp(10px, 1.6vw, 18px);
    align-content: center;
    padding-block: clamp(24px, 6vh, 90px) clamp(110px, 16vh, 170px);
}

:where(.page-home) .hero__welcome {
    font-family: var(--f-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6em;
    font-size: clamp(.95rem, 2vw, 1.5rem);
    color: var(--bone);
    margin-bottom: -6px;
}

:where(.page-home) .hero h1 {
    line-height: .84;
}

:where(.page-home) .hero .lead {
    margin-top: 6px;
    max-width: 46ch;
}

:where(.page-home) .hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 12px;
}

:where(.page-home) .hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(18px, 4vw, 52px);
    margin-top: clamp(14px, 3vh, 34px);
    padding-top: 20px;
    border-top: 1px solid var(--line);
    max-width: 640px;
}

:where(.page-home) .hero__stats dt {
    color: var(--muted);
    font-size: .7rem;
}

:where(.page-home) .hero__stats dd {
    font-family: var(--f-display);
    font-weight: 800;
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    color: var(--amber);
    line-height: 1.1;
}

:where(.page-home) .hero__scroll {
    position: absolute;
    z-index: 8;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: grid;
    justify-items: center;
    gap: 10px;
    color: var(--muted);
    letter-spacing: .24em;
    text-align: center;
}

:where(.page-home) .hero__scroll i {
    width: 1px;
    height: 36px;
    background: linear-gradient(var(--amber), transparent);
    animation: scrollcue 1.8s ease-in-out infinite;
    transform-origin: top;
}

@keyframes scrollcue {
    0% {
        transform: scaleY(0);
    }

    50% {
        transform: scaleY(1);
    }

    100% {
        transform: scaleY(1);
        opacity: 0;
    }
}

:where(.page-home) .cup {
    position: absolute;
    z-index: 8;
    right: clamp(14px, 4vw, 52px);
    bottom: clamp(70px, 12vh, 120px);
    width: 92px;
    height: 92px;
    border-radius: 50%;
    display: grid;
    place-items: end center;
    border: 1px solid var(--line);
    background: radial-gradient(circle at 50% 40%, rgba(106, 247, 209, .14), rgba(0, 0, 0, .7));
    padding-bottom: 20px;
    color: var(--holo);
    font-size: .6rem;
    overflow: hidden;
}

:where(.page-home) .cup i {
    position: absolute;
    left: 50%;
    top: 44%;
    width: 10px;
    height: 10px;
    border: 1px solid currentColor;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(.2);
    opacity: 0;
}

:where(.page-home) .cup.hit i {
    animation: ripple 1.6s ease-out forwards;
}

:where(.page-home) .cup.hit i:nth-child(2) {
    animation-delay: .25s;
}

:where(.page-home) .cup.hit i:nth-child(3) {
    animation-delay: .5s;
}

@keyframes ripple {
    0% {
        opacity: .9;
        transform: translate(-50%, -50%) scale(.3);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(8);
    }
}

:where(.page-home) .cup span {
    position: relative;
    letter-spacing: .08em;
    opacity: .75;
}

:where(.page-home) .cup::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 44%;
    width: 4px;
    height: 4px;
    margin: -2px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
    animation: ping 2.4s infinite;
}

:where(.page-home) .hero__fronds {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

:where(.page-home) .hero__fronds svg {
    position: absolute;
    bottom: -50px;
    width: min(46vw, 640px);
    height: auto;
    overflow: visible;
    filter: drop-shadow(0 0 26px rgba(0, 0, 0, .9));
}

:where(.page-home) .hero__fronds .fr-l {
    left: -10%;
    transform-origin: 20% 100%;
    animation: sway 9s ease-in-out infinite alternate;
}

:where(.page-home) .hero__fronds .fr-r {
    right: -13%;
    transform-origin: 80% 100%;
    animation: sway 11s ease-in-out infinite alternate-reverse;
}

@keyframes sway {
    from {
        transform: rotate(-1.6deg) translateX(calc(var(--mx) * 10px));
    }

    to {
        transform: rotate(1.8deg) translateX(calc(var(--mx) * 10px));
    }
}

/* ---------- THE EYE ---------- */

:where(.page-home) .eye {
    --ex: 0px;
    --ey: 0px;
    --pw: 15%;
    --lid: 0;
    position: absolute;
    z-index: 4;
    right: clamp(-40px, 3vw, 60px);
    top: 50%;
    width: min(50vw, 640px);
    aspect-ratio: 1;
    transform: translateY(-46%) translate(calc(var(--mx) * -14px), calc(var(--my) * -8px));
    transition: transform .5s var(--ease);
    cursor: pointer;
    pointer-events: auto;
}

:where(.page-home) .eye__head {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--skin, radial-gradient(circle, #3b5a2d, #14230f)) center / 560px;
    -webkit-mask-image: radial-gradient(circle, #000 34%, transparent 69%);
    mask-image: radial-gradient(circle, #000 34%, transparent 69%);
    filter: brightness(.55) saturate(.85);
}

html:where(.page-home).lockdown .eye__head {
    filter: brightness(.55) saturate(.9) hue-rotate(-50deg);
}

:where(.page-home) .eye__ball {
    position: absolute;
    left: 14%;
    right: 14%;
    top: 31%;
    bottom: 31%;
    border-radius: 50%;
    overflow: hidden;
    background: #000;
    box-shadow: 0 0 0 clamp(6px, 1vw, 12px) rgba(10, 22, 10, .9), 0 0 0 clamp(7px, 1.1vw, 13px) rgba(255, 176, 46, .22), 0 0 80px 10px rgba(255, 140, 30, .28), inset 0 0 40px 14px #000;
    animation: eyeglow 5s ease-in-out infinite alternate;
}

@keyframes eyeglow {
    from {
        box-shadow: 0 0 0 10px rgba(10, 22, 10, .9), 0 0 0 11px rgba(255, 176, 46, .2), 0 0 60px 6px rgba(255, 140, 30, .2), inset 0 0 40px 14px #000;
    }

    to {
        box-shadow: 0 0 0 10px rgba(10, 22, 10, .9), 0 0 0 11px rgba(255, 176, 46, .35), 0 0 110px 18px rgba(255, 140, 30, .38), inset 0 0 40px 14px #000;
    }
}

:where(.page-home) .eye__iris {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 74%;
    aspect-ratio: 1;
    border-radius: 50%;
    transform: translate(calc(-50% + var(--ex)), calc(-50% + var(--ey)));
    background: radial-gradient(circle, rgba(0, 0, 0, 0) 40%, rgba(40, 10, 0, .6) 82%, #120400 100%), repeating-conic-gradient(from 0deg, rgba(110, 36, 0, .6) 0 1.6deg, rgba(255, 215, 90, 0) 1.6deg 4.2deg), radial-gradient(circle, #ffe27a 0%, #ffb21d 30%, #e0760f 58%, #8a2f02 86%, #2a0a00 100%);
    transition: transform .12s linear;
}

:where(.page-home) .eye__pupil {
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--pw);
    height: 82%;
    border-radius: 50%;
    background: #000;
    transform: translate(calc(-50% + var(--ex) * .35), -50%);
    box-shadow: 0 0 22px 8px rgba(0, 0, 0, .85);
    transition: width .35s var(--ease);
}

:where(.page-home) .eye__gloss {
    position: absolute;
    left: 18%;
    top: 14%;
    width: 26%;
    height: 15%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 70%);
    transform: rotate(-24deg);
    filter: blur(1px);
}

:where(.page-home) .eye__lid {
    position: absolute;
    left: -6%;
    right: -6%;
    height: 56%;
    background: var(--skin, #1a2a14) center / 560px;
    filter: brightness(.5);
    transition: transform .09s ease-out;
    z-index: 2;
}

:where(.page-home) .eye__lid--t {
    top: 0;
    transform: translateY(calc(-100% + var(--lid) * 52%));
    border-bottom: 3px solid #050b05;
    box-shadow: 0 10px 18px rgba(0, 0, 0, .8);
}

:where(.page-home) .eye__lid--b {
    bottom: 0;
    transform: translateY(calc(100% - var(--lid) * 52%));
    border-top: 3px solid #050b05;
    box-shadow: 0 -10px 18px rgba(0, 0, 0, .8);
}

:where(.page-home) .eye__tag {
    position: absolute;
    left: 50%;
    bottom: 16%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--amber);
    font-size: .66rem;
    white-space: nowrap;
    padding: 6px 12px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, .55);
}

:where(.page-home) .eye.is-roaring .eye__pupil {
    width: 7%;
}

:where(.page-home) .eye.is-roaring {
    animation: eyeshake .5s linear;
}

@keyframes eyeshake {
    25% {
        translate: 3px -2px;
    }

    50% {
        translate: -3px 2px;
    }

    75% {
        translate: 2px 1px;
    }
}

@media (max-width: 1000px) {
    :where(.page-home) .eye {
        width: min(76vw, 520px);
        top: calc(var(--head-h) + 30px);
        right: -16vw;
        transform: translate(calc(var(--mx) * -10px), 0);
        opacity: .9;
    }

    :where(.page-home) .hero__content {
        align-content: end;
        padding-bottom: 130px;
    }

    :where(.page-home) .eye__tag {
        display: none;
    }

    :where(.page-home) .cup {
        display: none;
    }
}

@media (max-width: 560px) {
    :where(.page-home) .hero__welcome {
        letter-spacing: .4em;
    }

    :where(.page-home) .hero__stats {
        gap: 16px 28px;
    }

    :where(.page-home) .hero__cta .btn {
        flex: 1 1 100%;
    }

    :where(.page-home) .hero__scroll span {
        display: none;
    }
}

/* ---------- PILLARS ---------- */

:where(.page-home) .pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(14px, 2vw, 28px);
}

:where(.page-home) .pillar {
    padding: clamp(24px, 3vw, 40px);
    display: grid;
    gap: 16px;
    align-content: start;
    transition: transform .4s var(--ease), border-color .3s;
}

:where(.page-home) .pillar:hover {
    transform: translateY(-6px);
    border-color: var(--amber);
}

:where(.page-home) .pillar svg {
    width: 64px;
    height: 64px;
    color: var(--amber);
    filter: drop-shadow(0 0 12px var(--glow));
}

:where(.page-home) .pillar__num {
    position: absolute;
    top: 18px;
    right: 20px;
    color: var(--muted);
}

:where(.page-home) .pillar p {
    color: #b9c4b9;
}

:where(.page-home) .pillar .chip {
    justify-self: start;
    margin-top: 4px;
}

@media (max-width: 700px) {
    :where(.page-home) .pillars {
        grid-template-columns: 1fr;
    }

    :where(.page-home) .pillar {
        grid-template-columns: 64px 1fr;
        column-gap: 20px;
    }

    :where(.page-home) .pillar svg {
        grid-row: span 3;
    }

    :where(.page-home) .pillar .chip {
        grid-column: 2;
    }
}

@media (min-width: 701px) and (max-width: 960px) {
    :where(.page-home) .pillar {
        padding: 22px;
    }

    :where(.page-home) .pillar svg {
        width: 52px;
        height: 52px;
    }

    :where(.page-home) .pillar .chip {
        font-size: .64rem;
        letter-spacing: .06em;
    }
}

/* ---------- MAP ---------- */

:where(.page-home) .map {
    background: linear-gradient(180deg, var(--bg-0), var(--bg-1) 30%, var(--bg-1) 80%, var(--bg-0));
}

:where(.page-home) .map__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr);
    gap: clamp(16px, 2.4vw, 34px);
    align-items: start;
}

:where(.page-home) .map__stage {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #08170f, #030806);
}

:where(.page-home) .map__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

:where(.page-home) .map__sweep {
    position: absolute;
    inset: 4%;
    border-radius: 50%;
    pointer-events: none;
    background: conic-gradient(from 0deg, rgba(106, 247, 209, 0) 0deg, rgba(106, 247, 209, 0) 276deg, rgba(106, 247, 209, .2) 340deg, rgba(106, 247, 209, .55) 360deg);
    animation: spin-slow 7s linear infinite;
    mix-blend-mode: screen;
    -webkit-mask-image: radial-gradient(circle, #000 60%, transparent 71%);
    mask-image: radial-gradient(circle, #000 60%, transparent 71%);
}

:where(.page-home) .map__pins {
    position: absolute;
    inset: 0;
}

:where(.page-home) .pin {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
    display: grid;
    place-items: center;
    z-index: 2;
}

:where(.page-home) .pin i {
    position: relative;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--c);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .55), 0 0 14px var(--c);
    transition: transform .25s var(--ease);
}

:where(.page-home) .pin i::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid var(--c);
    opacity: .0;
    animation: pinring 2.6s infinite;
    animation-delay: var(--dl, 0s);
}

@keyframes pinring {
    0% {
        transform: scale(.5);
        opacity: .9;
    }

    100% {
        transform: scale(2.4);
        opacity: 0;
    }
}

:where(.page-home) .pin span {
    position: absolute;
    left: 50%;
    bottom: calc(100% - 4px);
    transform: translate(-50%, 4px);
    padding: 4px 10px;
    white-space: nowrap;
    font-family: var(--f-mono);
    font-size: .66rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    background: rgba(3, 7, 5, .92);
    border: 1px solid var(--c);
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: .2s;
}

:where(.page-home) .pin:hover span,
:where(.page-home) .pin:focus-visible span,
:where(.page-home) .pin.is-active span {
    opacity: 1;
    transform: translate(-50%, 0);
}

:where(.page-home) .pin:hover i,
:where(.page-home) .pin.is-active i {
    transform: scale(1.5);
}

:where(.page-home) .pin.is-active i::after {
    animation-duration: 1.4s;
}

:where(.page-home) .map__legend {
    position: absolute;
    left: 14px;
    bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: .66rem;
    z-index: 3;
}

:where(.page-home) .map__card {
    display: grid;
    align-content: start;
    overflow: hidden;
}

@media (min-width: 961px) {
    :where(.page-home) .map__card {
        align-self: stretch;
        contain: size;
        display: flex;
        flex-direction: column;
    }

    :where(.page-home) .map__card .mc__img {
        flex: 1 1 auto;
        min-height: 0;
        aspect-ratio: auto;
    }

    :where(.page-home) .map__card .mc__body {
        flex: none;
    }
}

:where(.page-home) .mc__img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--poster-bg, #0a1410);
    position: relative;
}

:where(.page-home) .mc__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4%;
}

:where(.page-home) .mc__body {
    padding: clamp(18px, 2.4vw, 28px);
    display: grid;
    gap: 10px;
}

:where(.page-home) .mc__zone {
    color: var(--amber);
}

:where(.page-home) .mc__species {
    color: var(--muted);
    font-style: italic;
    margin-top: -4px;
}

:where(.page-home) .mc__status {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-block: 6px;
}

:where(.page-home) .mc__status div {
    border: 1px solid var(--line-soft);
    padding: 10px 12px;
    display: grid;
    gap: 2px;
}

:where(.page-home) .mc__status span {
    color: var(--muted);
    font-size: .66rem;
}

:where(.page-home) .mc__status b {
    font-family: var(--f-display);
    font-size: 1.5rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

:where(.page-home) .ecg {
    width: 100%;
    height: 40px;
    color: var(--holo);
}

:where(.page-home) .ecg path {
    stroke-dasharray: 150 150;
    animation: ecg 2.2s linear infinite;
    filter: drop-shadow(0 0 4px currentColor);
}

@keyframes ecg {
    from {
        stroke-dashoffset: 300;
    }

    to {
        stroke-dashoffset: 0;
    }
}

:where(.page-home) .mc__body .btn {
    justify-self: start;
    margin-top: 6px;
}

:where(.page-home) .map__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

@media (max-width: 960px) {
    :where(.page-home) .map__grid {
        grid-template-columns: 1fr;
    }

    :where(.page-home) .map__stage {
        aspect-ratio: 1 / 1;
    }

    :where(.page-home) .pin span {
        display: none;
    }

    :where(.page-home) .pin.is-active span {
        display: block;
    }
}

/* ---------- TIME MACHINE ---------- */

:where(.page-home) .time {
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 138, 31, .08), transparent 60%), var(--bg-0);
}

:where(.page-home) .time__console {
    padding: clamp(20px, 3.4vw, 48px);
    transition: background .8s;
    overflow: hidden;
}

:where(.page-home) .time__console.after-impact {
    background: linear-gradient(180deg, rgba(60, 40, 32, .8), rgba(18, 12, 10, .92));
}

:where(.page-home) .time__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px 48px;
    flex-wrap: wrap;
}

:where(.page-home) .time__readout {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

:where(.page-home) .time__readout .mono {
    flex: 0 0 100%;
    color: var(--muted);
}

:where(.page-home) .time__readout b {
    font-size: clamp(5rem, 14vw, 10rem);
    line-height: .78;
    color: var(--amber);
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 40px var(--glow);
    min-width: 3ch;
}

:where(.page-home) .time__unit {
    font-family: var(--f-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    line-height: 1.1;
    font-size: 1.2rem;
    color: var(--bone);
    padding-bottom: 6px;
}

:where(.page-home) .time__era {
    max-width: 52ch;
    display: grid;
    gap: 6px;
}

:where(.page-home) .time__era .mono {
    color: var(--muted);
}

:where(.page-home) .time__era b {
    font-family: var(--f-display);
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    text-transform: uppercase;
    letter-spacing: .04em;
    line-height: 1;
}

:where(.page-home) .time__era p {
    color: #c3ccbf;
    min-height: 3.4em;
}

:where(.page-home) .time__rail {
    position: relative;
    margin-top: 56px;
    height: 156px;
    --pos: 50%;
}

:where(.page-home) .time__eras {
    display: flex;
    height: 36px;
    border: 1px solid var(--line);
}

:where(.page-home) .time__eras span {
    flex: var(--w) 1 0;
    min-width: 0;
    padding: 8px 10px;
    background: color-mix(in srgb, var(--c) 34%, #050a07);
    border-right: 1px solid rgba(0, 0, 0, .6);
    font-family: var(--f-mono);
    font-size: .68rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    color: #e9e5d6;
}

:where(.page-home) .time__eras span:last-child {
    border-right: 0;
}

:where(.page-home) .time__marks {
    position: absolute;
    left: 0;
    right: 0;
    top: 36px;
    height: 60px;
    pointer-events: none;
}

:where(.page-home) .mark {
    position: absolute;
    left: var(--x);
    top: var(--row, 10px);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--c);
    transform: translateX(-50%);
    opacity: .38;
    box-shadow: 0 0 0 2px #050a07;
    transition: .3s var(--ease);
}

:where(.page-home) .mark.on {
    opacity: 1;
    transform: translateX(-50%) scale(1.5);
    box-shadow: 0 0 0 2px #050a07, 0 0 16px var(--c);
}

:where(.page-home) .mark--mammoth {
    background: transparent;
    border: 2px dashed var(--bone);
    opacity: .6;
}

:where(.page-home) .time__impact {
    position: absolute;
    left: var(--x);
    top: -22px;
    height: 112px;
    border-left: 1px dashed #ff5a3a;
    pointer-events: none;
}

:where(.page-home) .time__impact span {
    position: absolute;
    right: 8px;
    top: 0;
    transform: translateY(-100%);
    white-space: nowrap;
    font-family: var(--f-mono);
    font-size: .66rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #ff8a70;
}

:where(.page-home) .time__scale {
    position: absolute;
    left: 0;
    right: 0;
    top: 104px;
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: .7rem;
    pointer-events: none;
}

:where(.page-home) #tRange {
    position: absolute;
    left: -14px;
    width: calc(100% + 28px);
    top: -10px;
    height: 120px;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: ew-resize;
    touch-action: pan-y;
}

:where(.page-home) #tRange::-webkit-slider-runnable-track {
    height: 120px;
    background: transparent;
}

:where(.page-home) #tRange::-moz-range-track {
    height: 120px;
    background: transparent;
}

:where(.page-home) #tRange::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 120px;
    border: 0;
    background: linear-gradient(90deg, transparent 11px, var(--amber) 11px 17px, transparent 17px);
    filter: drop-shadow(0 0 10px var(--amber));
}

:where(.page-home) #tRange::-moz-range-thumb {
    width: 28px;
    height: 120px;
    border: 0;
    border-radius: 0;
    background: linear-gradient(90deg, transparent 11px, var(--amber) 11px 17px, transparent 17px);
}

:where(.page-home) #tRange:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 2px;
}

:where(.page-home) .alive {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 28px;
}

:where(.page-home) .alive li {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    background: var(--bg, #0a1410);
    transition: all .5s var(--ease);
    filter: grayscale(1) brightness(.32);
    opacity: .6;
}

:where(.page-home) .alive li.on {
    filter: none;
    opacity: 1;
    border-color: var(--c);
    box-shadow: 0 0 26px -6px var(--c);
    transform: translateY(-4px);
}

:where(.page-home) .alive a {
    position: absolute;
    inset: 0;
    display: block;
}

:where(.page-home) .alive img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

:where(.page-home) .alive li::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(3, 7, 5, .92), transparent 55%);
    pointer-events: none;
}

:where(.page-home) .alive b {
    position: absolute;
    z-index: 2;
    left: 10px;
    right: 10px;
    bottom: 8px;
    font-family: var(--f-display);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    line-height: 1;
}

:where(.page-home) .alive small {
    position: absolute;
    z-index: 2;
    left: 10px;
    top: 8px;
    font-family: var(--f-mono);
    font-size: .6rem;
    letter-spacing: .12em;
    color: var(--c);
    text-transform: uppercase;
}

:where(.page-home) .time__mammoth {
    margin-top: 22px;
    color: var(--muted);
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: .7rem;
    line-height: 1.5;
}

:where(.page-home) .time__mammoth i {
    flex: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px dashed var(--bone);
}

@media (max-width: 960px) {
    :where(.page-home) .alive {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 560px) {
    :where(.page-home) .alive {
        grid-template-columns: repeat(2, 1fr);
    }

    :where(.page-home) .time__eras span {
        font-size: .55rem;
        padding-inline: 5px;
        letter-spacing: .06em;
    }

    :where(.page-home) .time__readout b {
        min-width: 0;
    }
}

/* ---------- FEATURED ---------- */

:where(.page-home) .feature {
    background: radial-gradient(ellipse 60% 60% at 20% 50%, rgba(63, 143, 90, .14), transparent 70%), var(--bg-1);
}

:where(.page-home) .feature__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(24px, 5vw, 72px);
    align-items: center;
}

:where(.page-home) .feature__info {
    display: grid;
    gap: 20px;
    align-content: center;
}

:where(.page-home) .specs {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 14px 32px;
    justify-content: start;
    padding-block: 14px;
    border-block: 1px solid var(--line);
}

:where(.page-home) .specs dt {
    color: var(--muted);
    font-size: .68rem;
}

:where(.page-home) .specs dd {
    font-family: var(--f-display);
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--amber);
}

:where(.page-home) .viewer__credit {
    margin-top: 12px;
    color: var(--muted);
    font-size: .66rem;
    line-height: 1.6;
}

@media (max-width: 960px) {
    :where(.page-home) .feature__grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- XR ---------- */

:where(.page-home) .xr {
    background: linear-gradient(180deg, var(--bg-0), #08140e 50%, var(--bg-0));
}

:where(.page-home) .xr__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(14px, 2vw, 28px);
}

:where(.page-home) .xr__card {
    padding: clamp(20px, 2.4vw, 30px);
    display: grid;
    gap: 14px;
    align-content: start;
}

:where(.page-home) .xr__card p {
    color: #b9c4b9;
}

:where(.page-home) .xr__card b {
    color: var(--bone);
    font-weight: 600;
}

:where(.page-home) .xr__art {
    position: relative;
    height: 190px;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    background: radial-gradient(circle at 50% 100%, rgba(255, 176, 46, .12), transparent 70%), #050c08;
}

:where(.page-home) .xr__art--desk span {
    position: absolute;
    left: 50%;
    top: 22px;
    width: 62%;
    height: 98px;
    transform: translateX(-50%);
    border: 3px solid #26382c;
    border-radius: 6px;
    background: linear-gradient(135deg, #0f261b, #051009);
    box-shadow: 0 0 0 1px var(--line-soft);
}

:where(.page-home) .xr__art--desk span::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 120px;
    height: 36px;
    margin: -18px 0 0 -60px;
    border: 2px solid var(--amber);
    border-radius: 50%;
    transform: rotate(-12deg);
    animation: orbit 5s linear infinite;
    box-shadow: 0 0 14px var(--glow);
}

:where(.page-home) .xr__art--desk i {
    position: absolute;
    left: 50%;
    bottom: 36px;
    width: 40px;
    height: 22px;
    transform: translateX(-50%);
    background: #26382c;
    clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%);
}

@keyframes orbit {
    to {
        transform: rotate(348deg);
    }
}

:where(.page-home) .xr__art--ar span {
    position: absolute;
    left: 50%;
    top: 14px;
    width: 78px;
    height: 150px;
    margin-left: -39px;
    border: 3px solid #3a4a40;
    border-radius: 14px;
    background: linear-gradient(180deg, #14301f, #08170f 70%);
    overflow: hidden;
}

:where(.page-home) .xr__art--ar span::before {
    content: "";
    position: absolute;
    left: -20%;
    right: -20%;
    bottom: 0;
    height: 50%;
    background: repeating-linear-gradient(90deg, rgba(106, 247, 209, .3) 0 1px, transparent 1px 14px), repeating-linear-gradient(0deg, rgba(106, 247, 209, .3) 0 1px, transparent 1px 12px);
    transform: perspective(60px) rotateX(55deg);
    transform-origin: bottom;
}

:where(.page-home) .xr__art--ar i {
    position: absolute;
    left: 50%;
    bottom: 40px;
    width: 34px;
    height: 34px;
    margin-left: -17px;
    border: 2px solid var(--holo);
    border-radius: 50%;
    animation: ping 2s infinite;
}

:where(.page-home) .xr__art--ar em {
    position: absolute;
    left: 50%;
    bottom: 58px;
    width: 12px;
    height: 28px;
    margin-left: -6px;
    background: var(--amber);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    filter: drop-shadow(0 0 8px var(--glow));
    animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
    50% {
        transform: translateY(-8px);
    }
}

:where(.page-home) .xr__art--vr span {
    position: absolute;
    left: 50%;
    top: 44px;
    width: 70%;
    height: 80px;
    transform: translateX(-50%);
    border: 3px solid #3a4a40;
    border-radius: 14px 14px 30px 30px;
    background: linear-gradient(180deg, #1a4a3a 0%, #0b2a20 48%, #040c08 49%, #0a1a12 100%);
    overflow: hidden;
}

:where(.page-home) .xr__art--vr span::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, rgba(255, 176, 46, .0) 0 20px, rgba(255, 176, 46, .1) 20px 22px);
    animation: pan 5s linear infinite;
}

@keyframes pan {
    to {
        background-position: 44px 0;
    }
}

:where(.page-home) .xr__art--vr i {
    position: absolute;
    left: 50%;
    top: 100px;
    width: 24px;
    height: 18px;
    transform: translateX(-50%);
    background: #050c08;
    border-radius: 0 0 14px 14px;
    border: 2px solid #3a4a40;
    border-top: 0;
}

:where(.page-home) .xr__status {
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

:where(.page-home) .xr__status::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--muted);
}

:where(.page-home) .xr__status.ok {
    color: var(--holo);
}

:where(.page-home) .xr__status.ok::before {
    background: var(--holo);
    box-shadow: 0 0 10px var(--holo);
}

:where(.page-home) .xr__status.no::before {
    background: #ff7a4a;
}

:where(.page-home) .xr__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: clamp(28px, 4vw, 48px);
}

@media (max-width: 960px) {
    :where(.page-home) .xr__art {
        height: 150px;
    }
}

@media (max-width: 700px) {
    :where(.page-home) .xr__grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- FACT VS FICTION ---------- */

:where(.page-home) .flip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(12px, 1.8vw, 24px);
}

:where(.page-home) .flip {
    perspective: 1400px;
    min-height: 280px;
    text-align: left;
    display: block;
    width: 100%;
}

:where(.page-home) .flip__in {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
    transform-style: preserve-3d;
    transition: transform .9s var(--ease);
}

:where(.page-home) .flip.is-flipped .flip__in {
    transform: rotateY(180deg);
}

:where(.page-home) .flip__face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    padding: clamp(20px, 2.4vw, 32px);
    display: grid;
    align-content: space-between;
    gap: 14px;
    border: 1px solid var(--line);
    background: linear-gradient(160deg, rgba(19, 40, 28, .9), rgba(5, 12, 8, .96));
}

:where(.page-home) .flip__face--back {
    transform: rotateY(180deg);
    background: linear-gradient(160deg, rgba(40, 24, 8, .95), rgba(8, 6, 3, .98));
    border-color: var(--amber);
}

:where(.page-home) .flip__q {
    font-family: var(--f-display);
    font-weight: 800;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    line-height: 1.02;
    text-transform: uppercase;
}

:where(.page-home) .flip__hint {
    color: var(--amber);
    display: flex;
    align-items: center;
    gap: 8px;
}

:where(.page-home) .flip__verdict {
    font-family: var(--f-mono);
    font-size: .78rem;
    letter-spacing: .2em;
    color: #120a00;
    background: var(--amber);
    display: inline-block;
    padding: 4px 10px;
    justify-self: start;
    text-transform: uppercase;
}

:where(.page-home) .flip__a {
    color: #d6dccb;
    font-size: 1rem;
    line-height: 1.55;
}

:where(.page-home) .flip__n {
    color: var(--muted);
}

@media (max-width: 960px) {
    :where(.page-home) .flip-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    :where(.page-home) .flip-grid {
        grid-template-columns: 1fr;
    }

    :where(.page-home) .flip {
        min-height: 250px;
    }
}

/* ---------- VISITOR PASS ---------- */

:where(.page-home) .pass {
    background: radial-gradient(ellipse 50% 60% at 80% 50%, rgba(255, 138, 31, .1), transparent 70%), var(--bg-1);
}

:where(.page-home) .pass__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 6vw, 90px);
    align-items: center;
}

:where(.page-home) .pass__grid > div:first-child {
    display: grid;
    gap: 18px;
    align-content: center;
}

:where(.page-home) .pass__form {
    display: grid;
    gap: 10px;
    margin-top: 10px;
    max-width: 460px;
}

:where(.page-home) .pass__form label {
    color: var(--amber);
    margin-top: 10px;
}

:where(.page-home) .pass__form input,
:where(.page-home) .pass__form select {
    width: 100%;
    height: 54px;
    padding: 0 16px;
    font: 500 1.1rem var(--f-body);
    color: var(--text);
    background: rgba(0, 0, 0, .4);
    border: 1px solid var(--line);
    border-radius: 0;
    outline: 0;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color .2s, box-shadow .2s;
}

:where(.page-home) .pass__form select {
    background-image: linear-gradient(45deg, transparent 50%, var(--amber) 50%), linear-gradient(135deg, var(--amber) 50%, transparent 50%);
    background-position: calc(100% - 22px) 24px, calc(100% - 16px) 24px;
    background-size: 6px 6px;
    background-repeat: no-repeat;
    padding-right: 40px;
}

:where(.page-home) .pass__form select option {
    background: #07110c;
}

:where(.page-home) .pass__form input:focus,
:where(.page-home) .pass__form select:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 3px var(--glow);
}

:where(.page-home) .badge-wrap {
    display: grid;
    place-items: center;
    perspective: 1000px;
    padding-top: 70px;
}

:where(.page-home) .badge {
    position: relative;
    width: min(100%, 330px);
    aspect-ratio: 330 / 470;
    background: linear-gradient(170deg, #f2ead6, #d9cfb4);
    color: #14110a;
    transform-origin: 50% -70px;
    animation: badge-sway 6s ease-in-out infinite alternate;
    transform: rotateX(calc(var(--ty, 0) * 1deg)) rotateY(calc(var(--tx, 0) * 1deg));
    box-shadow: 0 40px 70px -20px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(0, 0, 0, .15);
    border-radius: 14px;
}

@keyframes badge-sway {
    from {
        rotate: -2deg;
    }

    to {
        rotate: 2deg;
    }
}

:where(.page-home) .badge::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 100%;
    width: 28px;
    height: 90px;
    margin-left: -14px;
    background: linear-gradient(90deg, #7a1a10, #b3281a 50%, #7a1a10);
    transform-origin: bottom;
}

:where(.page-home) .badge__clip {
    position: absolute;
    left: 50%;
    top: 14px;
    width: 74px;
    height: 16px;
    margin-left: -37px;
    border-radius: 8px;
    background: #8a826c;
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, .5);
    z-index: 2;
}

:where(.page-home) .badge__head {
    margin: 40px 0 0;
    height: 56px;
    display: grid;
    place-items: center;
}

:where(.page-home) .badge__head span {
    font-family: var(--f-display);
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: #000;
    background: #f2ead6;
    padding: 0 16px;
    margin-left: .3em;
}

:where(.page-home) .badge__body {
    padding: 20px 24px 22px;
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 6px;
}

:where(.page-home) .badge__photo {
    width: 98px;
    height: 98px;
    border-radius: 50%;
    background: radial-gradient(circle, #1a3a28, #07110c);
    border: 4px solid #14110a;
    display: grid;
    place-items: center;
    color: var(--amber);
}

:where(.page-home) .badge__photo::after {
    content: "";
    width: 62px;
    height: 62px;
    background: url("assets/favicon.svg") center / contain no-repeat;
}

:where(.page-home) .badge__name {
    font-size: clamp(1.9rem, 4vw, 2.5rem);
    line-height: .95;
    word-break: break-word;
    margin-top: 8px;
}

:where(.page-home) .badge__role {
    font-weight: 600;
    font-size: 1.05rem;
    color: #3b3322;
}

:where(.page-home) .badge__meta {
    font-size: .66rem;
    color: #6a5f46;
}

:where(.page-home) .badge__code {
    display: flex;
    gap: 2px;
    align-items: stretch;
    height: 46px;
    margin-top: 10px;
}

:where(.page-home) .badge__code i {
    display: block;
    background: #14110a;
}

:where(.page-home) .badge__foot {
    font-size: .6rem;
    color: #6a5f46;
    margin-top: 6px;
}

/* ---------- FINAL CTA ---------- */

:where(.page-home) .cta {
    position: relative;
    text-align: center;
    padding-block: clamp(80px, 13vw, 180px);
    background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(255, 138, 31, .22), transparent 70%), var(--bg-0);
    border-top: 1px solid var(--line);
}

:where(.page-home) .cta .wrap {
    display: grid;
    gap: 22px;
    justify-items: center;
}

:where(.page-home) .cta h2 {
    font-size: clamp(2.6rem, 8vw, 7rem);
}

:where(.page-home) .cta p {
    color: #c3ccbf;
}

/* ---------- ENTRANCE: THE GATES, FULL SCREEN ---------- */

:where(.page-home) .gate-intro {
    position: fixed;
    inset: 0;
    z-index: 3000;
    overflow: hidden;
    background: #020503;
    transition: opacity 1s ease, visibility 1s;
}

.skip-intro:where(.page-home) .gate-intro {
    display: none;
}

:where(.page-home) .gate-intro.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

:where(.page-home) .gate-intro .fx-canvas {
    z-index: 2;
}

:where(.page-home) .gi__photo {
    position: absolute;
    inset: 0;
    background: #12402f var(--ph-dense) center 60% / cover no-repeat;
    background-blend-mode: multiply;
    filter: brightness(.9) saturate(.95);
    transform: scale(1.04);
    transition: transform 6s ease;
}

:where(.page-home) .gi__photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 78% 82% at 50% 50%, transparent 35%, rgba(2, 5, 3, .86) 100%);
}

:where(.page-home) .gate-intro.is-opening .gi__photo {
    transform: scale(1.18);
}

:where(.page-home) .gi__glow {
    position: absolute;
    left: 50%;
    top: 52%;
    width: 78vmin;
    height: 78vmin;
    z-index: 3;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255, 232, 170, .9), rgba(255, 168, 60, .32) 38%, transparent 70%);
    mix-blend-mode: screen;
    opacity: 0;
    transform: translate(-50%, -50%) scale(.7);
    transition: opacity 2.4s ease, transform 3.6s ease;
}

:where(.page-home) .gate-intro.is-loaded .gi__glow {
    opacity: .3;
}

:where(.page-home) .gate-intro.is-opening .gi__glow {
    opacity: .85;
    transform: translate(-50%, -50%) scale(1.5);
}

:where(.page-home) .gate-intro.is-through .gi__glow {
    opacity: 1;
    transform: translate(-50%, -50%) scale(4);
    transition-duration: 1.6s;
}

:where(.page-home) .gi__mv {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    outline: 0;
    background: transparent;
    --poster-color: transparent;
    --progress-bar-color: transparent;
    opacity: 0;
    transform: translateY(28px);
    filter: brightness(.1);
    transition: opacity 1.4s ease, transform 2.4s cubic-bezier(.2, .7, .2, 1), filter 2.8s ease;
}

:where(.page-home) .gate-intro.is-loaded .gi__mv {
    opacity: 1;
    transform: none;
    filter: brightness(1.12);
}

:where(.page-home) .gi__mist {
    position: absolute;
    left: -8%;
    right: -8%;
    bottom: 0;
    height: 30vh;
    z-index: 5;
    pointer-events: none;
    background: radial-gradient(ellipse 34% 55% at 28% 100%, rgba(186, 218, 200, .22), transparent 70%), radial-gradient(ellipse 42% 48% at 68% 100%, rgba(186, 218, 200, .18), transparent 70%);
    animation: gi-mist 11s ease-in-out infinite alternate;
}

@keyframes gi-mist {
    from {
        transform: translateX(-4%);
    }

    to {
        transform: translateX(4%);
    }
}

:where(.page-home) .gi__ui,
:where(.page-home) .gi__bottom {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 6;
    display: grid;
    justify-items: center;
    padding-inline: 16px;
    text-align: center;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .95);
}

:where(.page-home) .gi__ui {
    top: clamp(24px, 6vh, 64px);
    pointer-events: none;
    transition: opacity .5s ease;
}

:where(.page-home) .gate-intro.is-opening .gi__ui {
    opacity: 0;
}

:where(.page-home) .gi__bottom {
    bottom: clamp(16px, 3.5vh, 40px);
    gap: 9px;
}

:where(.page-home) .gi__welcome {
    margin-right: -.55em;
    font-family: var(--f-display);
    font-weight: 800;
    font-size: clamp(1rem, 2.4vw, 1.6rem);
    letter-spacing: .55em;
    text-transform: uppercase;
    color: var(--bone);
}

:where(.page-home) .gi__bar {
    width: min(280px, 60vw);
    height: 2px;
    background: rgba(255, 255, 255, .14);
    overflow: hidden;
    transition: opacity .6s ease;
}

:where(.page-home) .gi__bar i {
    display: block;
    height: 100%;
    background: var(--amber);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s ease;
}

:where(.page-home) .gate-intro.is-loaded .gi__bar,
:where(.page-home) .gate-intro.is-loaded .gi__log {
    display: none;
}

:where(.page-home) .gi__log {
    min-height: 1.4em;
    font-size: .74rem;
    color: var(--muted);
}

:where(.page-home) .gate-intro .btn {
    animation: gi-pulse 2s ease-in-out infinite;
}

:where(.page-home) .gate-intro .btn:disabled {
    animation: none;
}

@keyframes gi-pulse {
    50% {
        filter: drop-shadow(0 0 20px var(--glow));
    }
}

:where(.page-home) .gi__skip {
    padding-bottom: 2px;
    font-size: .7rem;
    letter-spacing: .2em;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
}

:where(.page-home) .gi__skip:hover {
    color: var(--amber);
}

:where(.page-home) .gi__bottom > * {
    transition: opacity .6s ease;
}

:where(.page-home) .gate-intro.is-opening .gi__bottom > * {
    opacity: 0;
    pointer-events: none;
}

@media (max-height: 520px) {
    :where(.page-home) .gi__ui {
        top: 12px;
    }

    :where(.page-home) .gi__bottom {
        bottom: 10px;
        gap: 5px;
    }

    :where(.page-home) .gi__log,
    :where(.page-home) .gi__bar {
        display: none;
    }
}

/* ==================== COLLECTION PAGE ONLY ==================== */

html:where(.page-collection) {
    scroll-padding-top: calc(var(--head-h) + 84px);
}

/* ---------- INTRO HERO ---------- */

:where(.page-collection) .a-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: max(620px, 82svh);
    display: grid;
    align-items: end;
    padding-top: var(--head-h);
    background: #030806;
}

:where(.page-collection) .a-hero__sky {
    position: absolute;
    inset: 0;
    z-index: -5;
    background: radial-gradient(ellipse 60% 50% at 80% 92%, rgba(255, 138, 31, .26), transparent 62%), radial-gradient(ellipse 80% 60% at 10% -10%, rgba(38, 128, 118, .3), transparent 66%), linear-gradient(180deg, #02070a 0%, #061a1c 50%, #0a2218 80%, #04090a 100%);
}

html:where(.page-collection).lockdown .a-hero__sky {
    background: radial-gradient(ellipse 60% 50% at 80% 92%, rgba(255, 50, 20, .4), transparent 62%), linear-gradient(180deg, #0a0202 0%, #1a0605 50%, #1a0b08 80%, #090303 100%);
}

:where(.page-collection) .a-hero__ridges {
    position: absolute;
    inset: auto 0 0 0;
    height: 62%;
    z-index: -3;
    pointer-events: none;
}

:where(.page-collection) .a-hero__ridges svg {
    position: absolute;
    left: -3%;
    bottom: 0;
    width: 106%;
    height: 100%;
}

:where(.page-collection) .a-hero__mist {
    position: absolute;
    left: -30%;
    bottom: 6%;
    width: 160%;
    height: 40%;
    z-index: -2;
    pointer-events: none;
    background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(170, 210, 200, .16), transparent 70%);
    filter: blur(10px);
    animation: drift 44s ease-in-out infinite alternate;
}

:where(.page-collection) .a-hero__content {
    position: relative;
    z-index: 6;
    display: grid;
    gap: clamp(12px, 1.8vw, 20px);
    padding-block: clamp(40px, 8vh, 100px) clamp(80px, 12vh, 130px);
}

:where(.page-collection) .a-hero h1 {
    line-height: .84;
    font-size: clamp(3.6rem, 12vw, 10.5rem);
}

:where(.page-collection) .a-hero .lead {
    max-width: 54ch;
}

:where(.page-collection) .crumbs {
    display: flex;
    gap: 10px;
    color: var(--muted);
}

:where(.page-collection) .crumbs a:hover {
    color: var(--amber);
}

:where(.page-collection) .crumbs [aria-current] {
    color: var(--text);
}

:where(.page-collection) .a-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 18px clamp(24px, 5vw, 64px);
    padding-top: 20px;
    margin-top: 8px;
    border-top: 1px solid var(--line);
    max-width: 720px;
}

:where(.page-collection) .a-hero__stats dt {
    color: var(--muted);
    font-size: .7rem;
}

:where(.page-collection) .a-hero__stats dd {
    font-family: var(--f-display);
    font-weight: 800;
    font-size: clamp(1.7rem, 3.4vw, 2.6rem);
    color: var(--amber);
    line-height: 1.1;
}

:where(.page-collection) .a-hero__stats small {
    font-size: .5em;
    letter-spacing: .1em;
    color: var(--muted);
}

:where(.page-collection) .a-hero__scroll {
    position: absolute;
    z-index: 8;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    display: grid;
    justify-items: center;
    gap: 8px;
    color: var(--muted);
    letter-spacing: .24em;
}

:where(.page-collection) .a-hero__scroll i {
    width: 1px;
    height: 30px;
    background: linear-gradient(var(--amber), transparent);
    animation: scrollcue 1.8s ease-in-out infinite;
    transform-origin: top;
}

/* ---------- STICKY FILTER BAR ---------- */

:where(.page-collection) .filterbar {
    position: sticky;
    top: var(--stick, var(--head-h));
    z-index: 800;
    background: rgba(3, 7, 5, .92);
    backdrop-filter: blur(12px);
    border-block: 1px solid var(--line);
    transition: top .35s var(--ease);
}

:where(.page-collection) .filterbar__in {
    display: flex;
    align-items: center;
    gap: 12px 24px;
    min-height: 64px;
    padding-block: 10px;
}

:where(.page-collection) .filterbar__chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1 1 auto;
    padding-block: 2px;
}

:where(.page-collection) .filterbar__chips::-webkit-scrollbar {
    display: none;
}

:where(.page-collection) .filterbar__chips .chip {
    flex: none;
    min-height: 38px;
}

:where(.page-collection) .filterbar__count {
    color: var(--muted);
    font-size: .7rem;
    flex: none;
    white-space: nowrap;
}

:where(.page-collection) .filterbar__halls {
    display: flex;
    gap: 4px;
    flex: none;
}

:where(.page-collection) .filterbar__halls a {
    padding: 8px 10px;
    color: var(--muted);
    font-size: .72rem;
    border-bottom: 2px solid transparent;
    transition: .2s;
}

:where(.page-collection) .filterbar__halls a:hover {
    color: #fff;
}

:where(.page-collection) .filterbar__halls a.is-current {
    color: var(--amber);
    border-bottom-color: var(--amber);
}

@media (max-width: 1100px) {
    :where(.page-collection) .filterbar__halls {
        display: none;
    }
}

@media (max-width: 640px) {
    :where(.page-collection) .filterbar__count {
        display: none;
    }

    :where(.page-collection) .filterbar__in {
        min-height: 56px;
    }
}

/* ---------- HALLS ---------- */

:where(.page-collection) .hall {
    position: relative;
    overflow: hidden;
    padding-block: clamp(64px, 9vw, 128px) clamp(32px, 5vw, 70px);
    background: linear-gradient(180deg, var(--bg-0) 0%, color-mix(in srgb, var(--hall) 7%, var(--bg-0)) 45%, var(--bg-0) 100%);
}

:where(.page-collection) .hall::before {
    content: attr(data-title);
    position: absolute;
    top: clamp(24px, 4vw, 60px);
    right: -1%;
    z-index: 0;
    font-family: var(--f-display);
    font-weight: 900;
    font-size: clamp(7rem, 24vw, 22rem);
    line-height: .8;
    text-transform: uppercase;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1px color-mix(in srgb, var(--hall) 22%, transparent);
    pointer-events: none;
    transform: translateY(var(--py, 0px));
}

:where(.page-collection) .hall > .wrap {
    position: relative;
    z-index: 1;
}

:where(.page-collection) .hall__head {
    display: grid;
    gap: 14px;
    margin-bottom: clamp(16px, 3vw, 40px);
    max-width: 640px;
}

:where(.page-collection) .hall__head .eyebrow {
    color: var(--hall);
}

:where(.page-collection) .hall__head p:last-child {
    color: #c3ccbf;
}

/* ---------- EXHIBITS ---------- */

:where(.page-collection) .exhibit {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: clamp(24px, 4.5vw, 72px);
    align-items: center;
    padding-block: clamp(36px, 5vw, 70px);
    transition: opacity .6s, filter .6s;
}

:where(.page-collection) .exhibit + .exhibit {
    border-top: 1px solid var(--line-soft);
}

:where(.page-collection) .exhibit:nth-child(even) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
}

:where(.page-collection) .exhibit:nth-child(even) .exhibit__media {
    order: 2;
}

:where(.page-collection) .exhibit.is-dim {
    opacity: .14;
    filter: grayscale(1);
}

:where(.page-collection) .exhibit__num {
    position: absolute;
    right: 0;
    top: 6px;
    z-index: 0;
    font-size: clamp(6rem, 13vw, 11rem);
    line-height: .8;
    color: transparent;
    -webkit-text-stroke: 1px color-mix(in srgb, var(--c) 40%, transparent);
    pointer-events: none;
}

:where(.page-collection) .exhibit:nth-child(even) .exhibit__num {
    right: auto;
    left: 0;
}

:where(.page-collection) .exhibit__media,
:where(.page-collection) .exhibit__info {
    position: relative;
    z-index: 1;
    min-width: 0;
}

:where(.page-collection) .exhibit .viewer {
    aspect-ratio: 4 / 3;
    border-color: color-mix(in srgb, var(--c) 45%, transparent);
}

:where(.page-collection) .exhibit .viewer::before,
:where(.page-collection) .exhibit .viewer::after {
    border-color: var(--c);
}

:where(.page-collection) .exhibit__info {
    display: grid;
    gap: 14px;
}

:where(.page-collection) .exhibit__code {
    color: var(--c);
}

:where(.page-collection) .exhibit__name {
    font-size: clamp(2.8rem, 6.4vw, 5.2rem);
    line-height: .88;
}

:where(.page-collection) .exhibit__name a {
    background: linear-gradient(90deg, var(--text), var(--text)) left bottom / 0% 3px no-repeat;
    transition: background-size .4s var(--ease), color .3s;
}

:where(.page-collection) .exhibit__name a:hover {
    color: #fff;
    background-size: 100% 3px;
    background-image: linear-gradient(90deg, var(--c), var(--c));
}

:where(.page-collection) .exhibit__species {
    color: var(--muted);
}

:where(.page-collection) .exhibit__species em {
    color: #d6dccb;
}

:where(.page-collection) .exhibit__tag {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--c);
}

:where(.page-collection) .exhibit__sum {
    color: #c3ccbf;
    max-width: 52ch;
}

:where(.page-collection) .exhibit__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

:where(.page-collection) .facts {
    display: grid;
    grid-template-columns: repeat(4, auto);
    justify-content: start;
    gap: 12px clamp(18px, 3vw, 36px);
    padding-block: 14px;
    border-block: 1px solid var(--line-soft);
}

:where(.page-collection) .facts dt {
    color: var(--muted);
    font-size: .64rem;
}

:where(.page-collection) .facts dd {
    font-family: var(--f-display);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text);
    line-height: 1.15;
}

:where(.page-collection) .exhibit .gauge {
    max-width: 440px;
}

:where(.page-collection) .exhibit__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

:where(.page-collection) .exhibit .viewer__credit {
    margin-top: 10px;
    color: var(--muted);
    font-size: .62rem;
    line-height: 1.6;
}

@media (max-width: 960px) {
    :where(.page-collection) .exhibit,
    :where(.page-collection) .exhibit:nth-child(even) {
        grid-template-columns: 1fr;
    }

    :where(.page-collection) .exhibit:nth-child(even) .exhibit__media {
        order: 0;
    }

    :where(.page-collection) .exhibit__num,
    :where(.page-collection) .exhibit:nth-child(even) .exhibit__num {
        right: 0;
        left: auto;
        top: -10px;
        opacity: .6;
    }

    :where(.page-collection) .facts {
        grid-template-columns: repeat(2, auto);
    }
}

:where(.page-collection) .notes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(12px, 2vw, 26px);
    margin-top: clamp(24px, 4vw, 56px);
}

:where(.page-collection) .note {
    padding: clamp(20px, 2.4vw, 30px);
    display: grid;
    gap: 12px;
    align-content: start;
}

:where(.page-collection) .note svg {
    width: 44px;
    height: 44px;
    color: var(--hall);
}

:where(.page-collection) .note p {
    color: #b9c4b9;
    font-size: .98rem;
}

@media (max-width: 860px) {
    :where(.page-collection) .notes {
        grid-template-columns: 1fr;
    }
}

/* ---------- SIZE CHART ---------- */

:where(.page-collection) .scale {
    background: linear-gradient(180deg, var(--bg-0), #08140e 55%, var(--bg-0));
}

:where(.page-collection) .scale__chart {
    position: relative;
    padding: clamp(18px, 3vw, 40px);
    display: grid;
    gap: 14px;
}

:where(.page-collection) .sc-row {
    display: grid;
    grid-template-columns: minmax(104px, 150px) 1fr minmax(64px, 96px);
    align-items: center;
    gap: 14px;
}

:where(.page-collection) .sc-row > span {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1;
}

:where(.page-collection) .sc-row > b {
    font-family: var(--f-mono);
    font-weight: 400;
    font-size: .78rem;
    letter-spacing: .08em;
    color: var(--muted);
    text-align: right;
}

:where(.page-collection) .sc-track {
    position: relative;
    height: 22px;
    background: rgba(255, 255, 255, .04);
}

:where(.page-collection) .sc-track i {
    position: absolute;
    inset: 0;
    width: calc(var(--v) * 100%);
    background: linear-gradient(90deg, color-mix(in srgb, var(--c) 40%, #000), var(--c));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.3s var(--ease);
    transition-delay: calc(var(--i) * 80ms);
    box-shadow: 0 0 16px -2px var(--c);
}

:where(.page-collection) .scale__chart.in .sc-track i {
    transform: scaleX(1);
}

:where(.page-collection) .sc-row a:hover {
    color: var(--c);
}

:where(.page-collection) .sc-track::after {
    content: "";
    position: absolute;
    left: calc(var(--bus, .545) * 100%);
    top: -8px;
    bottom: -8px;
    border-left: 1px dashed rgba(239, 230, 210, .5);
    pointer-events: none;
}

:where(.page-collection) .scale__chart {
    --bus: .545;
}

:where(.page-collection) .sc-bus {
    position: absolute;
    left: calc(var(--bus) * 100%);
    top: calc(100% + 8px);
    transform: translateX(-4px);
    font-style: normal;
    font-size: .62rem;
    letter-spacing: .12em;
    color: var(--bone);
    white-space: nowrap;
}

:where(.page-collection) .sc-row:last-child {
    margin-bottom: 22px;
}

@media (max-width: 640px) {
    :where(.page-collection) .sc-row {
        grid-template-columns: 1fr 76px;
    }

    :where(.page-collection) .sc-row > span {
        grid-column: 1 / -1;
    }

    :where(.page-collection) .sc-bus {
        display: none;
    }
}

/* ---------- TAKE IT HOME ---------- */

:where(.page-collection) .take {
    background: radial-gradient(ellipse 50% 60% at 15% 50%, rgba(255, 138, 31, .12), transparent 70%), var(--bg-1);
    border-top: 1px solid var(--line);
}

:where(.page-collection) .take__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 6vw, 90px);
    align-items: center;
}

:where(.page-collection) .take__grid > div {
    display: grid;
    gap: 18px;
    justify-items: start;
}

:where(.page-collection) .take__steps {
    display: grid;
    gap: 14px;
    counter-reset: s;
}

:where(.page-collection) .take__steps li {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 18px;
    align-items: center;
    padding: 20px 24px;
}

:where(.page-collection) .take__steps .display {
    font-size: 4rem;
    line-height: .8;
    color: var(--amber);
    text-shadow: 0 0 24px var(--glow);
}

:where(.page-collection) .take__steps p {
    color: #b9c4b9;
}

@media (max-width: 900px) {
    :where(.page-collection) .take__grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== EXHIBIT PAGE ONLY ==================== */

:root:where(.page-detail) {
    --c: var(--amber);
}

html:where(.page-detail) {
    scroll-padding-top: calc(var(--head-h) + 16px);
}

/* ---------- HERO / STAGE ---------- */

:where(.page-detail) .d-hero {
    position: relative;
    padding-top: calc(var(--head-h) + clamp(20px, 3vw, 40px));
    padding-bottom: clamp(48px, 6vw, 90px);
    background: var(--bg-0);
    isolation: isolate;
    overflow: hidden;
}

:where(.page-detail) .d-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(ellipse 55% 45% at 28% 30%, color-mix(in srgb, var(--c) 18%, transparent), transparent 70%), radial-gradient(ellipse 50% 60% at 100% 100%, rgba(63, 143, 90, .14), transparent 70%), linear-gradient(180deg, #030705, #07110c);
}

:where(.page-detail) .crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    margin-bottom: clamp(16px, 2.4vw, 28px);
}

:where(.page-detail) .crumbs a:hover {
    color: var(--amber);
}

:where(.page-detail) .crumbs [aria-current] {
    color: var(--text);
}

:where(.page-detail) .d-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr);
    gap: clamp(24px, 4vw, 60px);
    align-items: start;
}

:where(.page-detail) .stage {
    position: relative;
    height: clamp(420px, 68vh, 720px);
    background: radial-gradient(ellipse at 50% 42%, #1c3326 0%, #0a1510 62%, #050a07 100%);
    overflow: hidden;
    border-color: color-mix(in srgb, var(--c) 45%, transparent);
}

:where(.page-detail) .stage::before,
:where(.page-detail) .stage::after {
    border-color: var(--c);
    z-index: 6;
}

:where(.page-detail) .stage.scan::after {
    z-index: 3;
    border: 0;
    width: auto;
    height: auto;
}

:where(.page-detail) .stage__tag {
    position: absolute;
    z-index: 5;
    top: 14px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(3, 7, 5, .7);
    border: 1px solid var(--line);
    color: var(--amber);
    font-size: .68rem;
    pointer-events: none;
}

:where(.page-detail) .stage__fs {
    position: absolute;
    z-index: 5;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: rgba(3, 7, 5, .7);
    border: 1px solid var(--line);
    color: var(--text);
    transition: .2s;
}

:where(.page-detail) .stage__fs:hover {
    border-color: var(--amber);
    color: var(--amber);
}

:where(.page-detail) .stage__fs svg {
    width: 18px;
    height: 18px;
}

:where(.page-detail) .stage:fullscreen {
    height: 100vh;
    border: 0;
}

:where(.page-detail) .stage:-webkit-full-screen {
    height: 100vh;
    border: 0;
}

:where(.page-detail) .stage.is-fixed {
    position: fixed;
    inset: 0;
    z-index: 2000;
    height: 100vh;
    border: 0;
}

:where(.page-detail) .stage__night {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    transition: opacity .5s;
    background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 20, 0, .75) 100%), repeating-linear-gradient(0deg, rgba(0, 255, 90, .06) 0 1px, transparent 1px 3px);
    mix-blend-mode: screen;
}

:where(.page-detail) .stage.is-night model-viewer {
    filter: grayscale(1) sepia(1) hue-rotate(58deg) saturate(4.5) brightness(1.2) contrast(1.2);
}

:where(.page-detail) .stage.is-night .stage__night {
    opacity: 1;
}

:where(.page-detail) .stage.is-night .stage__tag::after {
    content: " · NV";
    color: #6fff8a;
}

:where(.page-detail) .stage__note {
    position: absolute;
    z-index: 8;
    left: 50%;
    top: 50%;
    width: min(440px, calc(100% - 32px));
    transform: translate(-50%, -50%);
    padding: 24px;
    display: grid;
    gap: 12px;
    background: rgba(3, 7, 5, .95);
}

:where(.page-detail) .stage__note[hidden] {
    display: none;
}

:where(.page-detail) .stage__note p {
    color: #c3ccbf;
    font-size: .98rem;
}

:where(.page-detail) .stage__note code {
    font-family: var(--f-mono);
    font-size: .82rem;
    color: var(--amber);
    background: rgba(255, 176, 46, .1);
    padding: 1px 6px;
}

:where(.page-detail) .stage__x {
    position: absolute;
    top: 6px;
    right: 10px;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--muted);
}

:where(.page-detail) .stage__x:hover {
    color: var(--amber);
}

:where(.page-detail) .stage__noteBtns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

/* ---------- CONTROL DOCK ---------- */

:where(.page-detail) .dock {
    margin-top: 14px;
    padding: 14px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 26px;
    align-items: center;
}

:where(.page-detail) .dock__group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

:where(.page-detail) .dock__label {
    color: var(--muted);
    font-size: .66rem;
    margin-right: 4px;
}

:where(.page-detail) .vp {
    padding: 9px 14px;
    min-height: 40px;
    border: 1px solid var(--line);
    font-family: var(--f-mono);
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #cfd6c8;
    transition: .2s;
    background: rgba(0, 0, 0, .25);
}

:where(.page-detail) .vp:hover:not(:disabled) {
    border-color: var(--amber);
    color: #fff;
    background: rgba(255, 176, 46, .1);
}

:where(.page-detail) .vp[aria-pressed="true"],
:where(.page-detail) .vp.is-on {
    border-color: var(--amber);
    background: rgba(255, 176, 46, .16);
    color: #fff;
}

:where(.page-detail) .vp:disabled {
    opacity: .35;
    cursor: not-allowed;
}

:where(.page-detail) .dock__xr {
    margin-left: auto;
}

:where(.page-detail) .dock__xr .btn {
    min-height: 46px;
    padding: .7em 1.2em;
    font-size: 1.02rem;
}

:where(.page-detail) .d-stage .viewer__credit {
    margin-top: 12px;
    color: var(--muted);
    font-size: .64rem;
    line-height: 1.6;
}

:where(.page-detail) .d-stage .viewer__credit a {
    text-decoration: underline;
    text-decoration-color: rgba(255, 176, 46, .4);
    text-underline-offset: 3px;
}

/* ---------- FILE CARD ---------- */

:where(.page-detail) .d-info {
    display: grid;
    gap: 16px;
    position: sticky;
    top: calc(var(--head-h) + 20px);
}

:where(.page-detail) .d-code {
    color: var(--c);
}

:where(.page-detail) .d-info h1 {
    font-size: clamp(3.4rem, 7vw, 6rem);
    line-height: .86;
}

:where(.page-detail) .d-species {
    color: var(--muted);
    font-size: 1.15rem;
}

:where(.page-detail) .d-species em {
    color: #d6dccb;
}

:where(.page-detail) .d-tag {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--c);
}

:where(.page-detail) .d-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
}

:where(.page-detail) .d-specs > div {
    background: #07110c;
    padding: 12px 14px;
    display: grid;
    gap: 2px;
}

:where(.page-detail) .d-specs dt {
    color: var(--muted);
    font-size: .64rem;
}

:where(.page-detail) .d-specs dd {
    font-family: var(--f-display);
    font-weight: 800;
    font-size: 1.3rem;
    line-height: 1.1;
}

:where(.page-detail) .d-info .gauge {
    margin-top: 4px;
}

:where(.page-detail) .d-note {
    color: var(--muted);
    font-size: .64rem;
}

@media (max-width: 1000px) {
    :where(.page-detail) .d-grid {
        grid-template-columns: 1fr;
    }

    :where(.page-detail) .d-info {
        position: static;
    }

    :where(.page-detail) .stage {
        height: clamp(340px, 58vh, 560px);
    }

    :where(.page-detail) .dock__xr {
        margin-left: 0;
        width: 100%;
    }

    :where(.page-detail) .dock__xr .btn {
        flex: 1 1 200px;
    }
}

/* ---------- TABS ---------- */

:where(.page-detail) .tabs__list {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    scrollbar-width: none;
}

:where(.page-detail) .tabs__list::-webkit-scrollbar {
    display: none;
}

:where(.page-detail) .tabs__list button {
    padding: 14px 22px;
    font-family: var(--f-display);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
    transition: .2s;
}

:where(.page-detail) .tabs__list button:hover {
    color: #fff;
}

:where(.page-detail) .tabs__list button[aria-selected="true"] {
    color: var(--amber);
    border-bottom-color: var(--amber);
}

:where(.page-detail) .tabs__panel {
    margin-top: 24px;
    padding: clamp(22px, 3.4vw, 48px);
}

:where(.page-detail) .tabs__panel[hidden] {
    display: none;
}

:where(.page-detail) .notes-list {
    display: grid;
    gap: 24px;
    counter-reset: n;
}

:where(.page-detail) .notes-list li {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 20px;
    align-items: start;
    counter-increment: n;
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    color: #d3dacb;
    line-height: 1.6;
    max-width: 80ch;
}

:where(.page-detail) .notes-list li::before {
    content: "0" counter(n);
    font-family: var(--f-display);
    font-weight: 900;
    font-size: 3.4rem;
    line-height: .8;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--c);
}

:where(.page-detail) .fvf {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(14px, 2.4vw, 32px);
}

:where(.page-detail) .fvf__card {
    padding: clamp(18px, 2.4vw, 30px);
    display: grid;
    gap: 14px;
    align-content: start;
    border: 1px solid var(--line-soft);
    font-size: 1.1rem;
    color: #d3dacb;
}

:where(.page-detail) .fvf__card--fact {
    background: rgba(106, 247, 209, .05);
    border-color: rgba(106, 247, 209, .35);
}

:where(.page-detail) .fvf__card--fact .flip__verdict {
    background: var(--holo);
}

:where(.page-detail) .fvf__card--fic {
    background: rgba(255, 138, 31, .06);
    border-color: var(--line);
}

:where(.page-detail) .flip__verdict {
    font-family: var(--f-mono);
    font-size: .78rem;
    letter-spacing: .2em;
    color: #120a00;
    background: var(--amber);
    display: inline-block;
    padding: 4px 10px;
    justify-self: start;
    text-transform: uppercase;
}

@media (max-width: 700px) {
    :where(.page-detail) .fvf {
        grid-template-columns: 1fr;
    }

    :where(.page-detail) .notes-list li {
        grid-template-columns: 48px 1fr;
        gap: 14px;
    }

    :where(.page-detail) .notes-list li::before {
        font-size: 2.4rem;
    }
}

/* ---------- HABITAT ---------- */

:where(.page-detail) .habitat {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(72px, 10vw, 140px) clamp(180px, 22vw, 300px);
    background: linear-gradient(180deg, var(--bg-0) 0%, #0a1e1b 40%, #06120d 100%);
    border-block: 1px solid var(--line);
}

:where(.page-detail) .habitat__scene {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

:where(.page-detail) .habitat__scene svg {
    position: absolute;
    left: -3%;
    bottom: 0;
    width: 106%;
    height: 60%;
}

:where(.page-detail) .habitat__mist {
    position: absolute;
    left: -30%;
    bottom: 8%;
    width: 160%;
    height: 40%;
    background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(170, 210, 200, .14), transparent 70%);
    filter: blur(10px);
    animation: drift 46s ease-in-out infinite alternate;
}

:where(.page-detail) .habitat__grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(20px, 4vw, 56px);
    align-items: start;
}

:where(.page-detail) .hab-list {
    padding: clamp(20px, 3vw, 36px);
    display: grid;
    gap: 18px;
}

:where(.page-detail) .hab-list div {
    display: grid;
    gap: 4px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line-soft);
}

:where(.page-detail) .hab-list div:last-child {
    border: 0;
    padding: 0;
}

:where(.page-detail) .hab-list dt {
    color: var(--amber);
    font-size: .7rem;
}

:where(.page-detail) .hab-list dd {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    letter-spacing: .02em;
    line-height: 1.15;
}

:where(.page-detail) .hab-vp {
    display: grid;
    gap: 16px;
    align-content: start;
}

:where(.page-detail) .hab-vp p {
    color: #c3ccbf;
}

:where(.page-detail) .hab-vp__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

:where(.page-detail) .hab-nb-title {
    margin-top: 10px;
}

:where(.page-detail) .neighbors {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

:where(.page-detail) .neighbors a {
    display: grid;
    grid-template-columns: 72px auto;
    gap: 12px;
    align-items: center;
    padding: 8px 16px 8px 8px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, .35);
    transition: .2s;
}

:where(.page-detail) .neighbors a:hover {
    border-color: var(--amber);
    transform: translateY(-2px);
}

:where(.page-detail) .neighbors img {
    width: 72px;
    height: 54px;
    object-fit: contain;
}

:where(.page-detail) .neighbors b {
    font-family: var(--f-display);
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

:where(.page-detail) .neighbors small {
    display: block;
    font-family: var(--f-mono);
    font-size: .62rem;
    letter-spacing: .12em;
    color: var(--muted);
    text-transform: uppercase;
}

@media (max-width: 860px) {
    :where(.page-detail) .habitat__grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- XR ---------- */

:where(.page-detail) .xr3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(14px, 2vw, 28px);
}

:where(.page-detail) .xr3__card {
    padding: clamp(20px, 2.6vw, 32px);
    display: grid;
    gap: 12px;
    align-content: start;
}

:where(.page-detail) .xr3__ico {
    font-size: 2.6rem;
    line-height: 1;
}

:where(.page-detail) .xr3__card p {
    color: #b9c4b9;
}

:where(.page-detail) .xr3__card b {
    color: var(--bone);
    font-weight: 600;
}

:where(.page-detail) .xr__status {
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

:where(.page-detail) .xr__status::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--muted);
    flex: none;
}

:where(.page-detail) .xr__status.ok {
    color: var(--holo);
}

:where(.page-detail) .xr__status.ok::before {
    background: var(--holo);
    box-shadow: 0 0 10px var(--holo);
}

:where(.page-detail) .xr__status.no::before {
    background: #ff7a4a;
}

:where(.page-detail) .xr__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    align-items: center;
    margin-top: clamp(24px, 3vw, 40px);
}

:where(.page-detail) .xr__cta .mono {
    color: var(--holo);
}

@media (max-width: 700px) {
    :where(.page-detail) .xr3 {
        grid-template-columns: 1fr;
    }
}

/* ---------- CREDIT ---------- */

:where(.page-detail) .credit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: clamp(20px, 3vw, 36px);
    width: min(var(--maxw), 100% - 2 * var(--gutter));
}

:where(.page-detail) .credit h3 {
    margin-block: 6px 2px;
}

:where(.page-detail) .credit__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ---------- PREV / NEXT ---------- */

:where(.page-detail) .pn {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(12px, 2vw, 24px);
}

:where(.page-detail) .pn a {
    position: relative;
    display: grid;
    grid-template-columns: minmax(96px, 150px) 1fr;
    gap: 20px;
    align-items: center;
    padding: 16px 22px 16px 16px;
    border: 1px solid var(--line);
    background: linear-gradient(160deg, rgba(19, 40, 28, .72), rgba(7, 17, 12, .9));
    transition: .3s var(--ease);
    overflow: hidden;
}

:where(.page-detail) .pn a:hover {
    border-color: var(--c);
    transform: translateY(-4px);
}

:where(.page-detail) .pn a:last-child {
    grid-template-columns: 1fr minmax(96px, 150px);
    text-align: right;
}

:where(.page-detail) .pn a:last-child img {
    order: 2;
}

:where(.page-detail) .pn img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
}

:where(.page-detail) .pn small {
    display: block;
    font-family: var(--f-mono);
    font-size: .68rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 4px;
}

:where(.page-detail) .pn b {
    font-family: var(--f-display);
    font-weight: 800;
    font-size: clamp(1.6rem, 3.4vw, 2.6rem);
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: .02em;
}

@media (max-width: 700px) {
    :where(.page-detail) .pn {
        grid-template-columns: 1fr;
    }

    :where(.page-detail) .pn a:last-child {
        grid-template-columns: minmax(96px, 150px) 1fr;
        text-align: left;
    }

    :where(.page-detail) .pn a:last-child img {
        order: 0;
    }
}

:where(.page-detail) select.vp {
    display: none;
}

/* ---------- ANIMATION DROPDOWN ---------- */

:where(.page-detail) .pick {
    position: relative;
}

:where(.page-detail) .pick[hidden] {
    display: none;
}

:where(.page-detail) .pick__btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    max-width: 260px;
    padding-right: 16px;
    cursor: pointer;
}

:where(.page-detail) .pick__label {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

:where(.page-detail) .pick__chev {
    flex: none;
    width: 7px;
    height: 7px;
    margin-top: -4px;
    border-right: 1.5px solid var(--amber);
    border-bottom: 1.5px solid var(--amber);
    transform: rotate(45deg);
    transition: transform .2s;
}

:where(.page-detail) .pick.is-open .pick__btn {
    border-color: var(--amber);
    background: rgba(255, 176, 46, .16);
    color: #fff;
}

:where(.page-detail) .pick.is-open .pick__chev {
    margin-top: 4px;
    transform: rotate(-135deg);
}

:where(.page-detail) .pick__list {
    position: absolute;
    z-index: 80;
    width: max-content;
    max-width: min(320px, 80vw);
    max-height: 280px;
    overflow-y: auto;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: linear-gradient(180deg, rgba(14, 32, 22, .97), rgba(5, 12, 8, .98));
    border: 1px solid var(--amber);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .6), 0 0 0 4px rgba(255, 176, 46, .08);
    scrollbar-width: thin;
    scrollbar-color: var(--amber) transparent;
    outline: none;
}

:where(.page-detail) .pick__list[hidden] {
    display: none;
}

:where(.page-detail) .pick__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    font-family: var(--f-mono);
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #cfd6c8;
    cursor: pointer;
}

:where(.page-detail) .pick__list li::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: 1px solid var(--line);
}

:where(.page-detail) .pick__list li:hover,
:where(.page-detail) .pick__list li.is-focus {
    background: rgba(255, 176, 46, .12);
    color: #fff;
}

:where(.page-detail) .pick__list li[aria-selected="true"] {
    color: var(--amber);
}

:where(.page-detail) .pick__list li[aria-selected="true"]::before {
    background: var(--amber);
    border-color: var(--amber);
    box-shadow: 0 0 8px var(--amber);
}

:where(.page-detail) .stage__qr {
    display: block;
    width: min(190px, 60%);
    height: auto;
    margin: 4px 0 10px;
    padding: 10px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0 0 3px var(--amber), 0 12px 30px rgba(0, 0, 0, .5);
}



:where(.page-detail) .stage__note p[hidden] {
    display: none;
}

/* ==================== JURASSIC PARK LOOK (ALL PAGES, COMES LAST) ==================== */

:root {
    --bg-0: #050b09;
    --bg-1: #08130e;
    --bg-2: #0d1f16;
    --bg-3: #14301f;
    --moss: #2a5b40;
    --fern: #5fa56f;
    --amber: #e8b53a;
    --amber-hot: #f08a24;
    --gold-hi: #f6dc8f;
    --jp-red: #d8362c;
    --jp-red-dark: #8d1a20;
    --bone: #f4ebd0;
    --text: #f0e9d2;
    --muted: #aab6a5;
    --line: rgba(232, 181, 58, .34);
    --line-soft: rgba(240, 233, 210, .12);
    --glow: rgba(232, 181, 58, .4);
    --tint: #36917a;
    --ph-palms: url("assets/img/jungle-palms.jpg");
    --ph-dense: url("assets/img/jungle-dense.jpg");
    --ph-mist: url("assets/img/jungle-mist.jpg");
    --ph-monstera: url("assets/img/jungle-monstera.jpg");
    --ph-frog: url("assets/img/jungle-frog.jpg");
}

html.lockdown {
    --jp-red: #ff3b2a;
    --tint: #7a2a22;
}

body {
    background: var(--bg-0);
}

/* ---------- LETTERING: CONDENSED CAPITALS, LIKE THE MOVIE POSTERS ---------- */

h1,
h2,
h3,
.display {
    font-weight: 900;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.metal {
    background: linear-gradient(180deg, #fff3c9 0%, #f4d57b 42%, #e0a92f 74%, #a8731a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 0 rgba(90, 14, 10, .9)) drop-shadow(0 0 20px rgba(216, 54, 44, .3));
}

.lead {
    color: #e2dcc4;
}

.section-head p,
.hall__head p:last-child {
    color: #d3dacb;
}

/* ---------- HEADER ---------- */

.nav {
    background: linear-gradient(180deg, rgba(3, 8, 6, .92), rgba(3, 8, 6, .55));
    backdrop-filter: blur(8px);
}

.brand img {
    width: 46px;
    height: 46px;
    flex: none;
    transition: transform .5s var(--ease);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .7));
}

.brand:hover img {
    transform: rotate(-8deg) scale(1.06);
}

.brand b {
    font-weight: 900;
    font-size: 1.3rem;
    letter-spacing: .16em;
    color: var(--bone);
}

.brand small {
    color: var(--amber);
    letter-spacing: .3em;
}

.nav__links a {
    font-family: var(--f-display);
    font-weight: 800;
    font-size: 1.06rem;
    letter-spacing: .2em;
}

.ticker__live {
    position: relative;
    z-index: 2;
    background: var(--jp-red);
    color: var(--bone);
    box-shadow: 10px 0 14px -6px rgba(0, 0, 0, .7);
}

.ticker__live .pulse-dot {
    background: var(--bone);
}

.progress i {
    background: linear-gradient(90deg, var(--jp-red), var(--amber));
}

.tool {
    border-radius: 999px;
}

.tool--danger {
    border-color: rgba(216, 54, 44, .75);
    color: #ff9d8e;
}

.tool--danger:hover {
    background: var(--jp-red);
    border-color: var(--jp-red);
    color: var(--bone);
}

.nav__burger {
    border-radius: 8px;
}

/* ---------- BUTTONS: GOLD PILLS WITH DARK LETTERING, LIKE THE SITE'S CALLS TO ACTION ---------- */

.btn {
    clip-path: none;
    border-radius: 999px;
    min-height: 52px;
    padding: .7em 1.7em;
    background: linear-gradient(180deg, #f6cf5f, #dba52c);
    color: #1b1304;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .5);
    font-family: var(--f-display);
    font-weight: 900;
    font-size: 1.12rem;
    letter-spacing: .14em;
    text-shadow: none;
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 8px 26px rgba(232, 181, 58, .4), inset 0 1px 0 rgba(255, 255, 255, .5);
}

.btn--ghost {
    background: rgba(0, 0, 0, .35);
    color: var(--bone);
    box-shadow: inset 0 0 0 2px rgba(244, 235, 208, .55);
    backdrop-filter: blur(4px);
}

.btn--ghost:hover {
    background: rgba(244, 235, 208, .12);
    box-shadow: inset 0 0 0 2px var(--amber);
    color: #fff;
    filter: none;
}

.btn--sm {
    min-height: 42px;
    padding: .55em 1.3em;
    font-size: .98rem;
}

.tool[aria-pressed="true"] {
    background: var(--amber);
}

.chip {
    background: rgba(0, 0, 0, .5);
    border-radius: 999px;
}

.vp {
    border-radius: 999px;
}

/* ---------- PANELS: DARK GLASS OVER THE PHOTOS, THIN GOLD KEYLINE ---------- */

.panel {
    background: linear-gradient(180deg, rgba(14, 32, 22, .78), rgba(5, 12, 8, .88));
    backdrop-filter: blur(7px);
    border: 1px solid var(--line);
    border-radius: 6px;
}

.panel::before,
.panel::after {
    display: none;
}

.band {
    background: rgba(3, 8, 6, .94);
}

.band__track {
    -webkit-text-stroke: 1px rgba(232, 181, 58, .6);
    letter-spacing: .12em;
}

/* ---------- PHOTO SECTIONS ---------- */

#welcome,
.map,
.time,
.feature,
.xr,
#facts,
.pass,
.cta,
.scale,
.take,
.hall,
.d-story,
.habitat,
.d-xr,
.d-credit,
.d-next {
    --sa: .53;
    --sb: .84;
    --pos: center;
    background-color: var(--tint);
    background-image: linear-gradient(180deg, rgba(4, 10, 8, var(--sa)) 0%, rgba(4, 10, 8, calc(var(--sa) + .06)) 55%, rgba(4, 10, 8, var(--sb)) 100%), var(--ph, var(--ph-dense));
    background-size: cover, cover;
    background-position: center, var(--pos);
    background-repeat: no-repeat;
    background-blend-mode: normal, multiply;
    box-shadow: inset 0 90px 80px -70px #030806, inset 0 -90px 80px -70px #030806;
}

#welcome {
    --ph: var(--ph-monstera);
}

.map {
    --ph: var(--ph-mist);
    --sa: .48;
}

.time {
    --ph: var(--ph-dense);
    --sa: .58;
    --sb: .9;
}

.feature {
    --ph: var(--ph-palms);
    --sa: .56;
    --pos: 30% 50%;
}

.xr {
    --ph: var(--ph-monstera);
    --sa: .56;
}

#facts {
    --ph: var(--ph-mist);
    --sa: .51;
}

.pass {
    --ph: var(--ph-frog);
    --sa: .31;
    --sb: .6;
    --tint: #6b5518;
    --pos: 60% 50%;
}

.cta {
    --ph: var(--ph-palms);
    --sa: .47;
    --sb: .84;
    --pos: 70% 40%;
}

.scale {
    --ph: var(--ph-mist);
    --sa: .61;
    --sb: .9;
}

.take {
    --ph: var(--ph-dense);
    --sa: .59;
}

#apex {
    --ph: var(--ph-dense);
}

#pack {
    --ph: var(--ph-monstera);
}

#giants {
    --ph: var(--ph-palms);
    --pos: 50% 40%;
}

#skysea {
    --ph: var(--ph-mist);
}

#relics {
    --ph: var(--ph-frog);
    --sa: .35;
    --sb: .7;
    --tint: #6b5518;
    --pos: 60% 50%;
}

.hall {
    background-color: color-mix(in srgb, var(--hall) 26%, var(--tint));
}

.d-story {
    --ph: var(--ph-mist);
    --sa: .58;
}

.habitat {
    --ph: var(--ph-palms);
    --sa: .43;
    --sb: .92;
}

.d-xr {
    --ph: var(--ph-monstera);
    --sa: .58;
}

.d-credit {
    --ph: var(--ph-dense);
    --sa: .64;
}

.d-next {
    --ph: var(--ph-frog);
    --sa: .39;
    --sb: .62;
    --tint: #6b5518;
    --pos: 50% 37%;
}

.section.d-next {
    padding-block: clamp(96px, 11vw, 145px) clamp(56px, 7.1vw, 93px);
}

.section.d-next {
    box-shadow: inset 0 90px 80px -70px #030806, inset 0 -50px 50px -40px #030806;
}

@media (max-width: 640px) {
    .d-next {
        --pos: 26% 37%;
    }
}

.hall::before {
    -webkit-text-stroke-color: color-mix(in srgb, var(--hall) 55%, transparent);
}

/* ---------- FOOTER ---------- */

.site-foot {
    background-color: var(--tint);
    background-image: linear-gradient(180deg, rgba(3, 8, 6, .9), rgba(3, 8, 6, .96)), var(--ph-dense);
    background-size: cover;
    background-position: center;
    background-blend-mode: normal, multiply;
}

.site-foot::before {
    background: repeating-linear-gradient(-45deg, var(--jp-red) 0 10px, #050505 10px 20px);
    opacity: .95;
}

.foot-grid h4 {
    letter-spacing: .24em;
    color: var(--amber);
}

.site-foot details {
    margin-top: 18px;
}

.site-foot .credits__line {
    color: var(--amber);
    font-family: var(--f-mono);
    font-size: .74rem;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.site-foot details ul {
    margin-top: 10px;
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: .86rem;
}

.site-foot details a {
    color: var(--bone);
    text-decoration: underline;
    text-decoration-color: var(--line);
    text-underline-offset: 3px;
}

.site-foot details a:hover {
    color: var(--amber);
}

.site-foot details p {
    color: var(--muted);
    font-size: .82rem;
}

/* ---------- TYPE THAT WAS SIZED FOR A DIFFERENT FONT ---------- */

.hero__stats dd {
    font-size: clamp(1.4rem, 2.6vw, 2rem);
}

.eyebrow {
    letter-spacing: .24em;
}

.mc__status b {
    font-size: 1.15rem;
}

.tabs__list button {
    letter-spacing: .12em;
}

/* ---------- HERO (HOMEPAGE): THE LOGO OVER A FULL-BLEED JUNGLE PHOTO ---------- */

.jp-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: max(700px, 100svh);
    display: grid;
    align-items: center;
    padding-top: var(--head-h);
    background: #04100e;
    --mx: 0;
    --my: 0;
}

.jp-bg {
    position: absolute;
    inset: 0;
    z-index: -5;
    overflow: hidden;
    transform: translate(calc(var(--mx, 0) * -10px), calc(var(--my, 0) * -6px));
    transition: transform .5s var(--ease);
}

.jp-bg__img {
    position: absolute;
    inset: -5%;
    background-color: var(--tint);
    background-image: var(--ph-palms);
    background-size: cover;
    background-position: 40% 50%;
    background-blend-mode: multiply;
    filter: saturate(1.1) contrast(1.05);
    animation: jp-drift 46s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes jp-drift {
    from {
        transform: scale(1.02) translate(0, 0);
    }

    to {
        transform: scale(1.12) translate(-1.5%, -1%);
    }
}

.jp-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 32%, rgba(246, 207, 95, .22), transparent 70%), linear-gradient(180deg, rgba(3, 9, 7, .45) 0%, rgba(3, 9, 7, .04) 38%, rgba(3, 9, 7, .78) 100%);
}

html.lockdown .jp-bg__img {
    filter: saturate(.7) hue-rotate(-60deg) brightness(.8);
}

.jp-vignette {
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background: radial-gradient(ellipse 88% 76% at 50% 42%, transparent 50%, rgba(2, 6, 5, .68) 100%), linear-gradient(180deg, transparent 62%, #050b09 100%);
}

.jp-hero .fx-canvas {
    z-index: 2;
}

.jp-hero__content {
    position: relative;
    z-index: 5;
    display: grid;
    justify-items: center;
    text-align: center;
    gap: clamp(10px, 1.8vh, 18px);
    padding-block: clamp(10px, 2vh, 30px) clamp(96px, 14vh, 140px);
}

.jp-hero__content::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -2% -14% 0;
    background: radial-gradient(ellipse 50% 54% at 50% 52%, rgba(3, 9, 7, .55), rgba(3, 9, 7, .22) 58%, transparent 80%);
    pointer-events: none;
}

.jp-lockup {
    --ld: min(28vw, 22svh, 230px);
    position: relative;
    width: min(94vw, 720px);
    display: grid;
    justify-items: center;
    gap: clamp(2px, .8vh, 10px);
}

.jp-emblem-btn {
    display: block;
    width: var(--ld);
    height: var(--ld);
    border-radius: 50%;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.jp-emblem-btn img {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .7)) drop-shadow(0 0 50px rgba(216, 54, 44, .35));
    animation: jp-breathe 6s ease-in-out infinite;
}

.jp-lockup.is-roaring .jp-emblem-btn img {
    animation: jp-roar .5s linear;
}

@keyframes jp-breathe {
    50% {
        transform: scale(1.02);
        filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .7)) drop-shadow(0 0 80px rgba(216, 54, 44, .5));
    }
}

@keyframes jp-roar {
    25% {
        transform: translate(4px, -3px) scale(1.05);
    }

    50% {
        transform: translate(-4px, 3px) scale(1.05);
    }

    75% {
        transform: translate(3px, 2px) scale(1.03);
    }
}

.jp-wordmark {
    display: block;
    width: min(100%, 700px);
    height: auto;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .8));
}

.jp-kicker {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 16px;
    font-family: var(--f-display);
    font-weight: 800;
    font-size: clamp(.95rem, 1.7vw, 1.3rem);
    letter-spacing: .34em;
    text-transform: uppercase;
    color: var(--amber);
    text-shadow: 0 2px 12px rgba(0, 0, 0, .9);
}

.jp-kicker i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--jp-red);
}

.jp-hero .lead {
    max-width: 54ch;
    margin-inline: auto;
    color: #efe8d0;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .95);
}

.jp-hero .hero__cta {
    justify-content: center;
}

.jp-hero .hero__stats {
    justify-content: center;
    margin-inline: auto;
    border-top: 1px solid var(--line);
    text-align: center;
    max-width: 720px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .9);
}

.jp-hero .hero__stats dt {
    color: #c9d1c1;
}

.jp-hero .hero__scroll {
    position: absolute;
    z-index: 8;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
}

.jp-hero .cup {
    z-index: 8;
}

@media (max-width: 700px) {
    .jp-hero .cup {
        display: none;
    }

    .jp-hero .hero__cta .btn {
        flex: 1 1 100%;
    }

    .jp-lockup {
        --ld: min(40vw, 22svh, 190px);
    }

    .jp-kicker {
        letter-spacing: .2em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jp-bg__img {
        animation: none;
    }
}

/* ---------- HOME: SECTIONS THAT DREW THEIR OWN ART ---------- */

.map__stage {
    background-color: var(--tint);
    background-image: linear-gradient(180deg, rgba(3, 9, 7, .72), rgba(3, 9, 7, .84)), var(--ph-mist);
    background-size: cover;
    background-position: center;
    background-blend-mode: normal, multiply;
    border-radius: 6px;
}

.map__sweep {
    background: conic-gradient(from 0deg, rgba(232, 181, 58, 0) 0deg, rgba(232, 181, 58, 0) 276deg, rgba(232, 181, 58, .2) 340deg, rgba(232, 181, 58, .55) 360deg);
}

.xr__art {
    height: 170px;
    border-radius: 4px;
    background-color: var(--tint);
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    background-image: var(--ph-dense);
}

.xr__art > * {
    display: none;
}

.xr__art--desk {
    background-image: var(--ph-palms);
}

.xr__art--ar {
    background-image: var(--ph-monstera);
}

.xr__art--vr {
    background-image: var(--ph-mist);
}

.xr__art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(4, 10, 8, .8));
}

.time__eras span {
    font-size: .64rem;
}

.time__console.after-impact {
    background: linear-gradient(180deg, rgba(70, 36, 24, .82), rgba(18, 10, 8, .93));
}

.badge-wrap .badge {
    border-radius: 10px;
}

.badge__head.hazard,
.hazard {
    background: repeating-linear-gradient(-45deg, var(--jp-red) 0 10px, #0a0a0a 10px 20px);
}

/* ---------- COLLECTION PAGE ---------- */

.a-hero {
    background: #04100e;
}

.a-hero__sky {
    background-color: var(--tint);
    background-image: var(--ph-palms);
    background-size: cover;
    background-position: 40% 50%;
    background-blend-mode: multiply;
    filter: saturate(1.1);
}

.a-hero__ridges,
.a-hero__mist {
    display: none;
}

.a-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(ellipse 80% 80% at 28% 62%, rgba(3, 9, 7, .72), transparent 72%), linear-gradient(180deg, rgba(3, 9, 7, .55) 0%, rgba(3, 9, 7, .1) 40%, #050b09 100%);
}

.a-hero .fx-canvas {
    z-index: 3;
}

.a-hero h1 {
    line-height: .92;
}

/* ---------- DETAIL PAGE ---------- */

.d-hero {
    background: #04100e;
}

.d-hero__bg {
    background-color: color-mix(in srgb, var(--c) 30%, var(--tint));
    background-image: linear-gradient(180deg, rgba(3, 9, 7, .55), rgba(3, 9, 7, .8)), var(--ph-dense);
    background-size: cover;
    background-position: center;
    background-blend-mode: normal, multiply;
}

.stage {
    background: radial-gradient(ellipse at 50% 42%, rgba(30, 58, 42, .85) 0%, rgba(8, 18, 13, .94) 70%), var(--ph-mist);
    background-size: cover;
    border-radius: 6px;
}

.habitat__scene {
    background-image: linear-gradient(180deg, transparent, rgba(3, 9, 7, .5));
}

.habitat__mist {
    display: none;
}

.d-info h1 {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
}

.pn a,
.neighbors a {
    background: rgba(3, 8, 6, .62);
    border-radius: 6px;
}

.notes-list li::before {
    -webkit-text-stroke-color: var(--amber);
}

/* ---------- RESPONSIVE SAFETY (TABLET AND PHONE) ---------- */

@media (max-width: 960px) {
    .feature__grid,
    .map__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 860px) {
    .pass__grid,
    .take__grid,
    .habitat__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .badge-wrap {
        padding-top: 56px;
    }
}

@media (max-width: 560px) {
    .specs {
        gap: 12px 20px;
    }

    .specs dd {
        font-size: 1.35rem;
    }

    .btn {
        padding: .65em 1.3em;
        font-size: 1.02rem;
        letter-spacing: .1em;
    }

    .brand b {
        font-size: 1.1rem;
        letter-spacing: .12em;
    }
}

.viewer {
    width: 100%;
    min-width: 0;
}

@media (max-width: 960px) {
    .js .reveal--left,
    .js .reveal--right {
        transform: translateY(26px);
    }

    .js .reveal--left.in,
    .js .reveal--right.in {
        transform: none;
    }
}

/* ---------- FONT-SIZE FIXES (TEXT THAT WAS CUT OFF) ---------- */

.hall::before {
    right: var(--gutter);
    left: auto;
    transform: none;
    max-width: calc(100% - 2 * var(--gutter));
    font-size: clamp(3.6rem, 13vw, 11rem);
    line-height: .85;
    opacity: .9;
}

@media (max-width: 700px) {
    .tabs__list {
        flex-wrap: wrap;
        overflow: visible;
        gap: 0 14px;
    }

    .tabs__list button {
        padding: 10px 2px;
        font-size: 1.02rem;
        letter-spacing: .06em;
    }
}

dt.mono,
.viewer__tag,
.viewer__credit,
.viewer__credit a,
.badge__meta,
.map__legend,
.d-note,
.dock__label,
.time__mammoth,
.time__scale,
.time__impact span,
.pin span,
.mono {
    font-size: max(.75rem, 12px);
}

.badge__foot,
.neighbors small,
.pn small,
.site-foot small,
.brand small {
    font-size: max(.72rem, 11.5px);
}

.time__eras span {
    font-size: .7rem;
}

@media (max-width: 560px) {
    .time__eras span {
        font-size: .64rem;
        padding-inline: 5px;
        letter-spacing: 0;
    }
}

.alive small,
.alive a small,
.map__card .mono,
.map__card span.mono {
    font-size: max(.72rem, 11.5px);
}

@media (max-width: 920px) {
    .nav__links {
        bottom: auto;
        height: calc(100vh - var(--head-h));
        height: calc(100dvh - var(--head-h));
        overflow-y: auto;
        justify-content: safe center;
    }

    .nav__links a {
        flex: none;
    }
}

.cta.gates {
    padding-block: 36px;
}

.cta.gates .wrap {
    gap: 16px;
}

.cta.gates h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    line-height: 1;
}

/* ---------- AR LAUNCHER (ar.html, opened by the QR code) ---------- */

.page-ar,
.page-ar body {
    min-height: 100%;
    background: #030705;
}

.ar-launch {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
}

.ar-launch .btn[hidden] {
    display: none;
}
