@font-face {
    font-family: "Inter";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("/vendor/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("/vendor/fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Inter Tight";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("/vendor/fonts/inter-tight-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Inter Tight";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("/vendor/fonts/inter-tight-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    color-scheme: dark;
    --night: #050408;
    --night-2: #0c0a11;
    --paper: #efeeeb;
    --ink: #0d0c10;
    --text: #f1eff5;
    --muted: #8f8a9c;
    --muted-dark: #6b6772;
    --line: rgba(255, 255, 255, 0.12);
    --line-dark: rgba(13, 12, 16, 0.14);
    --lavender: #c7bdf5;
    --sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    --display: "Inter Tight", "Inter", "Segoe UI", system-ui, sans-serif;
    --gutter: clamp(18px, 4vw, 56px);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--night);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}
.is-loading body { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 500; letter-spacing: -0.045em; line-height: 0.98; }
p { margin: 0; }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 0.88em; }
::selection { background: rgba(199, 189, 245, 0.4); }

/* Scrollbar: slim, lavender on the night background */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--night); }
::-webkit-scrollbar-thumb { background: rgba(199, 189, 245, 0.42); border-radius: 999px; border: 3px solid var(--night); }
::-webkit-scrollbar-thumb:hover { background: rgba(199, 189, 245, 0.65); }
::-webkit-scrollbar-thumb:active { background: var(--lavender); }
::-webkit-scrollbar-corner { background: var(--night); }
@supports not selector(::-webkit-scrollbar) {
    html { scrollbar-width: thin; scrollbar-color: rgba(199, 189, 245, 0.4) var(--night); }
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 14px; border-radius: 10px; background: var(--text); color: var(--night); font-weight: 600; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--lavender); outline-offset: 3px; border-radius: 6px; }

.label { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: -0.01em; }
.panel-light .label { color: var(--muted-dark); }

/* Split text: every word sits in a mask and slides up out of it */
/* room around each word, so tight letter spacing and descenders are never clipped by the mask */
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.04em 0.12em 0.16em; margin: -0.04em -0.12em -0.16em; }
.split-inner { display: inline-block; will-change: transform; }

/* Text links: the underline retracts and the arrow nudges on hover */
.text-link { position: relative; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; padding-bottom: 4px; }
.text-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: right; transition: transform 0.6s var(--ease); }
.text-link:hover::after { transform: scaleX(0); }
.text-link span { transition: transform 0.5s var(--ease); }
.text-link:hover span { transform: translate(3px, -3px); }

/* Loader: real download progress of the 3D logo */
.loader { position: fixed; inset: 0; z-index: 150; background: var(--night); display: flex; flex-direction: column; justify-content: space-between; padding: 28px var(--gutter); }
.loader-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; font-weight: 500; }
.loader-top span:first-child { color: var(--text); }
.loader-count { font-family: var(--display); font-weight: 500; font-size: clamp(96px, 22vw, 320px); letter-spacing: -0.06em; line-height: 0.8; font-variant-numeric: tabular-nums; }
.loader-line { height: 1px; background: var(--line); margin-top: 24px; }
.loader-line span { display: block; height: 100%; width: 100%; background: var(--text); transform: scaleX(0); transform-origin: left; }

/* Liquid glass header: clear in the middle, bending the page along the rim, with a bright specular edge */
.nav {
    position: fixed; top: 16px; left: 50%; z-index: 50;
    width: min(980px, calc(100% - 2 * var(--gutter)));
    height: 62px; padding: 0 9px 0 18px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    border-radius: 999px;
    transform: translateX(-50%);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
    transition: width 0.7s var(--ease), height 0.7s var(--ease), top 0.7s var(--ease), color 0.4s;
}
.nav.is-scrolled { top: 12px; height: 56px; width: min(840px, calc(100% - 2 * var(--gutter))); }
.nav-glass {
    position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden;
    background: rgba(18, 14, 28, 0.42);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 14px 40px -16px rgba(0, 0, 0, 0.55);
}
.nav-glass::before {      /* specular rim: light catching the top-left and bottom-right edges */
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    box-shadow:
        inset 1.5px 1.5px 0.5px -0.5px rgba(255, 255, 255, 0.75),
        inset -1px -1px 0.5px -0.5px rgba(255, 255, 255, 0.45),
        inset 0 0 6px 1px rgba(255, 255, 255, 0.12),
        inset 0 0 22px rgba(255, 255, 255, 0.05);
}
.liquid .nav-glass {
    background: rgba(255, 255, 255, 0.025);
    -webkit-backdrop-filter: url(#liquid-glass) blur(1.5px) saturate(150%) brightness(1.06);
    backdrop-filter: url(#liquid-glass) blur(1.5px) saturate(150%) brightness(1.06);
}
.nav.on-light { color: var(--ink); text-shadow: 0 1px 8px rgba(255, 255, 255, 0.5); }
.nav.on-light .nav-glass { box-shadow: inset 0 0 0 1px rgba(13, 12, 16, 0.08), 0 14px 40px -20px rgba(0, 0, 0, 0.35); }
html:not(.liquid) .nav.on-light .nav-glass { background: rgba(239, 238, 235, 0.55); }
.nav-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; font-size: 17px; }
.nav-brand img { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; opacity: 0.8; transition: opacity 0.3s, background 0.3s; }
.nav-links a:hover { opacity: 1; background: rgba(127, 127, 127, 0.16); }
.nav-cta { height: 42px; padding: 0 18px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--text); color: var(--ink); font-size: 14px; font-weight: 600; text-shadow: none; transition: transform 0.5s var(--ease), background 0.4s, color 0.4s; }
.nav.on-light .nav-cta { background: var(--ink); color: var(--text); }
.nav-cta:hover { transform: scale(1.04); }

/* Layers: night sky at the back, the footer above it (revealed under the page), the page, the 3D logo, the header */
.sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.logo-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; }
main { position: relative; z-index: 2; }
.logo-slot { position: relative; }
.logo-fallback { display: none; width: 100%; height: 100%; object-fit: contain; }
.no-webgl .logo-fallback { display: block; }

/* Hero */
.hero { position: relative; min-height: 100svh; padding: clamp(130px, 20vh, 190px) var(--gutter) 0; display: flex; flex-direction: column; align-items: center; text-align: center; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28vh; background: linear-gradient(transparent, var(--night)); pointer-events: none; }
.hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.hero-title { font-size: clamp(46px, 7.6vw, 124px); letter-spacing: -0.055em; max-width: 12ch; }
.hero-slot { width: min(42vh, 70vw, 420px); aspect-ratio: 1; margin-top: clamp(20px, 5vh, 56px); z-index: 1; }

/* Light panels */
.panel-light { position: relative; background: var(--paper); color: var(--ink); }

/* Intro */
.intro { padding: clamp(110px, 18vh, 200px) var(--gutter); }
.intro-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(170px, 290px) 1fr; gap: clamp(28px, 6vw, 90px); align-items: start; }
.intro-slot { width: 100%; aspect-ratio: 1; }
.intro-copy { display: flex; flex-direction: column; gap: 26px; }
.scrub-text { font-family: var(--display); font-size: clamp(28px, 3.9vw, 56px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.08; }
.scrub-text .word { opacity: 0.14; }
.intro-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 280px)); gap: 20px; margin-top: 30px; }
.intro-facts p { padding-top: 14px; border-top: 1px solid var(--line-dark); font-size: 15px; font-weight: 500; }
.intro-facts span { display: block; color: var(--muted-dark); font-size: 13px; font-weight: 500; margin-bottom: 4px; }

/* Numbers: a tall section with a sticky stage; the logo turns while the numbers take turns */
.numbers { position: relative; height: 500vh; }
.numbers-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.numbers-slot { position: absolute; left: 50%; top: 50%; width: min(54vh, 60vw, 540px); aspect-ratio: 1; transform: translate(-50%, -46%); }
.stat { position: absolute; display: flex; flex-direction: column; gap: 10px; max-width: 30ch; }
/* room below the baseline, so the comma in "3,016" never touches the label */
.stat-value { font-family: var(--display); font-weight: 500; font-size: clamp(72px, 11vw, 176px); letter-spacing: -0.06em; line-height: 0.85; padding-bottom: 0.16em; }
.stat-label { color: var(--muted); font-size: 15px; max-width: 24ch; }
.stat-a { left: var(--gutter); bottom: 13vh; }
.stat-b { right: var(--gutter); top: 30vh; text-align: right; align-items: flex-end; }
.stat-c { left: var(--gutter); top: 30vh; }
.stat-d { right: var(--gutter); bottom: 13vh; text-align: right; align-items: flex-end; }
.stat-e { left: var(--gutter); bottom: 13vh; }
.js .stat { opacity: 0; }
.numbers-index { position: absolute; right: var(--gutter); top: clamp(100px, 14vh, 140px); color: var(--muted); font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.numbers-index span { color: var(--text); }


/* Rhythia: a play field where notes fly into the 3x3 grid */
.rhythia { position: relative; background: var(--night); padding: clamp(110px, 16vh, 180px) max(var(--gutter), calc((100% - 1300px) / 2)); display: grid; grid-template-columns: minmax(280px, 0.9fr) 1.1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.rhythia-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.rhythia h2 { font-size: clamp(40px, 5.4vw, 84px); max-width: 11ch; }
.rhythia-text { color: var(--muted); font-size: 17px; max-width: 46ch; }
.playfield { position: relative; aspect-ratio: 1; width: 100%; max-width: 640px; justify-self: center; }
.playfield canvas { width: 100%; height: 100%; display: block; }
.playfield-hud { position: absolute; left: 0; right: 0; bottom: -6px; display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.playfield-hud b { color: var(--text); font-weight: 600; }

/* Steps: a big typographic list */
.steps { background: var(--night); padding: clamp(90px, 14vh, 160px) var(--gutter) clamp(110px, 16vh, 180px); }
.steps-head { max-width: 1240px; margin: 0 auto 70px; display: flex; flex-direction: column; gap: 22px; }
.steps-head h2 { font-size: clamp(40px, 6vw, 92px); max-width: 13ch; }
.step-rows { max-width: 1240px; margin: 0 auto; padding: 0; list-style: none; }
.step-row { position: relative; display: grid; grid-template-columns: 70px 1fr minmax(240px, 380px); gap: 24px; align-items: center; padding: clamp(26px, 3.4vw, 44px) 0; }
.step-row::before, .step-row:last-child::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--line); transform-origin: left; }
.step-row::before { top: 0; }
.step-row:last-child::after { bottom: 0; }
.js .step-row::before, .js .step-row:last-child::after { transform: scaleX(var(--line-progress, 0)); }
.step-no { color: var(--muted); font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
/* the hover nudge uses `translate`, separate from the `transform` the scroll animation drives */
.step-row h3 { font-size: clamp(48px, 8vw, 128px); letter-spacing: -0.055em; line-height: 1.12; transition: translate 0.8s var(--ease), color 0.5s; }
.step-row p { color: var(--muted); font-size: 16px; transition: color 0.5s; }
.step-row:hover h3 { translate: 18px 0; color: var(--lavender); }
.step-row:hover p { color: var(--text); }
.step-row code { color: var(--text); }

/* Showcase */
.showcase { padding: clamp(110px, 16vh, 180px) var(--gutter) clamp(80px, 12vh, 140px); }
.showcase-head { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1fr minmax(240px, 380px); gap: 22px 40px; align-items: end; }
.showcase-head .label { grid-column: 1 / -1; }
.showcase-head h2 { font-size: clamp(40px, 6vw, 92px); max-width: 12ch; }
.showcase-sub { color: var(--muted-dark); font-size: 16px; }
.showcase-sub a { text-decoration: underline; text-underline-offset: 2px; }
.showcase-sub a:hover { color: var(--ink); }
.laptop-stage { max-width: 1120px; margin: 70px auto 0; perspective: 1600px; }
.laptop { position: relative; transform-origin: 50% 90%; will-change: transform; }
.laptop-frame { position: relative; z-index: 1; width: 100%; height: auto; pointer-events: none; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.22)); }
.laptop-screen { position: absolute; z-index: 0; left: 11.6%; top: 11.6%; width: 76.8%; height: 76.8%; background: #000; container-type: inline-size; overflow: hidden; }
.app { position: absolute; inset: 0; display: flex; flex-direction: column; font-size: 1.15cqi; color: #ededed; }
.app-top { height: 7%; display: flex; align-items: center; gap: 0.8em; padding: 0 2.6em; border-bottom: 1px solid #1d1d1d; font-weight: 700; font-size: 1.1em; }
.app-logo { width: 1.7em; height: 1.7em; object-fit: contain; }
.app-pill { padding: 0.25em 0.8em; border-radius: 99px; border: 1px solid #2a2a2a; color: #a3a3a3; font-size: 0.8em; font-weight: 600; }
.app-card { width: 52%; margin: 4.5% auto 0; padding: 2.4em; border-radius: 1.4em; background: #0b0b0b; border: 1px solid #222; display: flex; flex-direction: column; gap: 1.6em; }
.app-title { font-size: 1.9em; font-weight: 750; letter-spacing: -0.03em; }
.app-summary { display: grid; grid-template-columns: 1.6fr 1fr 0.6fr; gap: 1em; padding: 1em 1.2em; border-radius: 0.9em; border: 1px solid #222; background: #111; }
.app-summary small { display: block; color: #8a8a8a; font-size: 0.85em; }
.app-progress { padding: 1.4em; border-radius: 1em; border: 1px solid #222; background: #0e0e0e; }
.app-progress-head { display: flex; justify-content: space-between; font-weight: 650; font-size: 1.15em; }
.app-progress-head span:last-child { color: #a3a3a3; font-weight: 500; font-variant-numeric: tabular-nums; }
.app-bar { height: 0.65em; margin: 1em 0 1.1em; border-radius: 99px; background: #1c1c1c; overflow: hidden; }
/* same colours as the real upload page: solid blue with light stripes running backwards */
.app-bar span { display: block; width: 0; height: 100%; border-radius: inherit; background-color: #4c8dff; background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.16) 0 0.5em, transparent 0.5em 1em); background-size: 1.42em 1.42em; animation: stripes 0.9s linear infinite; }
.app-bar.done span { background: #2fbf71; animation: none; }
@keyframes stripes { to { background-position: -1.42em 0; } }
.app-detail { color: #a3a3a3; font-size: 0.95em; line-height: 1.5; }

/* Community: the Discord server, live */
/* a tall section with a sticky stage: the scene plays while the stage stays in view (no JS pinning) */
.community { position: relative; height: 220vh; background: var(--night); }
.community-stage { position: sticky; top: 0; height: 100svh; overflow: clip; padding: clamp(90px, 12vh, 140px) max(var(--gutter), calc((100% - 1300px) / 2)); display: grid; grid-template-columns: minmax(280px, 0.9fr) 1.1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.community-wall { will-change: transform, opacity; }
/* hidden until the scene shows them (no flash before the script runs) */
.js .community .label, .js .community-live, .js #discordJoin, .js [data-fade] { opacity: 0; }
.community-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.community h2 { font-size: clamp(40px, 5.2vw, 84px); max-width: 12ch; }
.community-live { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 17px; }
.community-live b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.community-sep { color: #3a3546; }
.online-dot { width: 9px; height: 9px; border-radius: 50%; background: #34d399; }
/* five rows that slide sideways in alternating directions; 8 avatars visible per row, as before */
.community-wall { --per-row: 8; --gap: clamp(8px, 1vw, 14px); position: relative; display: flex; flex-direction: column; gap: var(--gap); min-width: 0; overflow-x: clip; overflow-y: visible; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.wall-row { display: flex; gap: var(--gap); width: max-content; padding-right: var(--gap); will-change: transform; }
.community-wall .person { position: relative; flex: none; width: calc((var(--wall-width, 600px) - (var(--per-row) - 1) * var(--gap)) / var(--per-row)); aspect-ratio: 1; border-radius: 50%; }
.community-wall .person img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #15121c; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); transition: transform 0.5s var(--ease), box-shadow 0.3s; }
.community-wall .person.is-placeholder { background: radial-gradient(circle at 32% 28%, hsl(calc(250 + var(--shade, 0) * 0.3) 28% 26%), hsl(252 24% 12%) 72%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.community-wall .person::after { content: ""; position: absolute; right: 2%; bottom: 2%; width: 24%; height: 24%; border-radius: 50%; border: 2px solid var(--night); background: #34d399; }
.community-wall .person[data-status="idle"]::after { background: #f2a93b; }
.community-wall .person[data-status="dnd"]::after { background: #ef4d56; }
.community-wall .person[data-status="member"]::after { display: none; }
.community-wall .person:hover img { transform: scale(1.12); box-shadow: 0 0 0 2px var(--lavender); }
.community-wall .person:hover { z-index: 2; }

/* Patterns: one huge line that runs with the scroll */
.patterns { background: var(--night); padding: clamp(80px, 12vh, 140px) 0 clamp(120px, 18vh, 200px); overflow: hidden; }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-track span { flex: none; padding-right: 0.45em; font-family: var(--display); font-weight: 500; font-size: clamp(64px, 12vw, 200px); letter-spacing: -0.055em; line-height: 1; white-space: nowrap; }
.marquee-track span:nth-child(even) { color: #2d2938; }

/* Footer: sits under the page and is uncovered as the last section scrolls away */
.footer {
    position: sticky; bottom: 0; z-index: 1;
    min-height: 100svh; padding: clamp(88px, 12vh, 130px) var(--gutter) 16px;
    display: flex; flex-direction: column; justify-content: space-between; gap: clamp(18px, 3.5vh, 40px);
    overflow: hidden;
}
.footer:not(.is-revealed) { visibility: hidden; }
.footer.is-tall { position: relative; }
.footer.is-tall:not(.is-revealed) { visibility: visible; }
.footer-top { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.footer-statement { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(18px, 3vh, 30px); }
.footer-statement h2 { font-size: clamp(36px, min(4.6vw, 8vh), 80px); max-width: 17ch; }
.footer-button {
    display: inline-flex; align-items: center; gap: 14px; height: 58px; padding: 0 26px; border-radius: 999px;
    background: var(--text); color: var(--ink); font-weight: 600; font-size: 16px;
    transition: transform 0.6s var(--ease), background 0.4s;
}
.footer-button:hover { transform: translateY(-3px); background: #fff; }
.footer-button span:last-child { transition: transform 0.5s var(--ease); }
.footer-button:hover span:last-child { transform: translate(3px, -3px); }
.footer-slot { width: min(24vh, 22vw, 260px); aspect-ratio: 1; cursor: grab; touch-action: none; }
.footer-slot.is-dragging { cursor: grabbing; }
.footer-links { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(120px, 190px)); gap: 24px; }
.footer-cols div { display: flex; flex-direction: column; gap: 9px; }
.footer-cols h4 { margin-bottom: 6px; font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.footer-cols a { font-size: 15px; font-weight: 500; width: fit-content; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.5s var(--ease); }
.footer-cols a:hover { background-size: 100% 1px; }
.back-top { border: 1px solid var(--line); background: none; border-radius: 999px; padding: 10px 18px; font-size: 14px; font-weight: 500; cursor: pointer; transition: background 0.3s, color 0.3s; }
.back-top:hover { background: var(--text); color: var(--ink); }
.footer-wordmark { font-family: var(--display); font-weight: 600; letter-spacing: -0.05em; line-height: 0.92; white-space: nowrap; text-align: center; padding: 0.04em 0 0.06em; clip-path: inset(-40% -10% 0 -10%); user-select: none; }
.footer-links, .footer-wordmark { flex: none; }
.footer-wordmark span { display: inline-block; }
/* each letter paints its gradient in its own box: give the box room so glyph overhangs are not cut, and do the tight spacing with margins */
.footer-wordmark .letter { display: inline-block; will-change: transform; letter-spacing: 0; padding: 0 0.12em; margin: 0 -0.13em 0 -0.12em; background: linear-gradient(180deg, #e4e0f0 5%, #7b72a6 70%, rgba(123, 114, 166, 0.25)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-aside { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; text-align: right; }
.footer-aside .back-top { margin-bottom: 6px; }
.footer-copy { font-size: 15px; font-weight: 500; }
.footer-note { max-width: 34ch; color: #e6e2f2; font-size: 18px; font-weight: 500; line-height: 1.4; letter-spacing: -0.01em; }

/* 404 */
.not-found-page { overflow-x: clip; }
.not-found { position: relative; z-index: 1; min-height: 100svh; padding: 120px var(--gutter) 60px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 10px; }
.not-found-code { font-family: var(--display); font-weight: 600; font-size: clamp(140px, 30vw, 420px); letter-spacing: -0.07em; line-height: 0.8; background: linear-gradient(180deg, #e4e0f0 10%, #7b72a6 75%, rgba(123, 114, 166, 0.2)); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 0.06em; animation: notFoundIn 1.4s var(--ease) both; }
.not-found-copy { display: flex; flex-direction: column; align-items: center; gap: 18px; animation: notFoundIn 1.4s var(--ease) 0.15s both; }
.not-found h1 { font-size: clamp(34px, 4.4vw, 64px); }
.not-found-copy p { color: var(--muted); font-size: 17px; max-width: 40ch; }
.not-found-legal { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; color: var(--muted); font-size: 14px; }
.not-found-legal a:hover { color: var(--text); }
.not-found-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px; margin-top: 10px; }
@keyframes notFoundIn { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
    .nav-links { display: none; }
    .rhythia, .community-stage { grid-template-columns: 1fr; }
    .community { height: auto; }
    .community-stage { position: relative; height: auto; padding-top: clamp(90px, 14vh, 150px); padding-bottom: clamp(90px, 14vh, 150px); }
    .community-wall { --per-row: 6; }
    .step-row { grid-template-columns: 44px 1fr; }
    .step-row p { grid-column: 2; }
    .showcase-head { grid-template-columns: 1fr; }
    .intro-facts { grid-template-columns: 1fr; }
    .stat-b, .stat-c { top: 22vh; }
    .footer-links { flex-direction: column; align-items: flex-start; }
    .footer-aside { align-self: stretch; align-items: flex-start; text-align: left; }
    .footer-aside .back-top { order: 3; margin: 8px 0 0; }
}
@media (max-width: 640px), (max-height: 620px) {
    .footer { position: relative; min-height: 0; }
    .footer:not(.is-revealed) { visibility: visible; }
}
@media (max-width: 640px) {
    .intro-grid { grid-template-columns: 1fr; }
    .intro-slot { width: 150px; }
    .numbers-slot { width: 78vw; }
    .stat-value { font-size: 64px; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-slot { width: 160px; justify-self: center; }
    .footer-note { font-size: 16px; max-width: none; }
    .footer-cols { grid-template-columns: repeat(2, 1fr); }
    .footer-cols { grid-template-columns: repeat(2, 1fr); }
    .app { font-size: 1.6cqi; }
    .app-card { width: 80%; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
    .js .stat { opacity: 1; position: static; }
    .numbers { height: auto; }
    .numbers-stage { position: relative; height: auto; display: grid; gap: 40px; padding: 140px var(--gutter); }
    .numbers-slot { position: relative; left: auto; top: auto; transform: none; margin: 0 auto; }
}
