/* Loaded after site.css: the Aether Zero menu's own design language
   (Titillium Web + Michroma, emerald #21D18B, dark opaque borders, the Glide highlight). */
@font-face { font-family: "Michroma"; src: url("/assets/fonts/michroma.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Titillium Web"; src: url("/assets/fonts/titillium-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Titillium Web"; src: url("/assets/fonts/titillium-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Titillium Web"; src: url("/assets/fonts/titillium-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Titillium Web"; src: url("/assets/fonts/titillium-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
:root { --void: #070A09; --deep: #101413; --surface: #141918; --pill: #1F2825; --emerald: #21D18B; --mint: #9BF7D2; --bone: #E4E9E7; --dim: #93A39D; --line: #232B28; --line-strong: #2B3532; --glass: rgba(16, 20, 19, 0.88); --display: "Michroma", "Titillium Web", system-ui, sans-serif; --body: "Titillium Web", system-ui, "Segoe UI", sans-serif; --voice: var(--body); }
body { font: 400 17px/1.55 var(--body); }
.nav-brand { font: 400 12px/1 var(--display); }
.nav-links { position: relative; font-size: 16px; }
.nav-links a::after { display: none; }

/* Glide: one highlight that travels to whatever is selected */
[data-glide] { position: relative; }
.glide { position: absolute; left: 0; top: 0; z-index: 0; width: var(--w, 0); height: var(--h, 0); transform: translate(var(--x, 0), var(--y, 0)); border-radius: 8px; background: var(--pill); opacity: var(--o, 0); pointer-events: none; transition: transform 0.34s var(--ease), width 0.34s var(--ease), height 0.34s var(--ease), opacity 0.25s; }
[data-glide] > :not(.glide) { position: relative; z-index: 1; }
.glide-line { top: auto; bottom: 0; height: 2px; border-radius: 1px; background: var(--emerald); transform: translateX(var(--x, 0)); }
.glide-ring { z-index: 2; background: none; border: 2px solid var(--emerald); border-radius: 12px; }
.glide-fill { background: var(--emerald); border-radius: 50%; }
.glide-soft { background: rgba(33, 209, 139, 0.13); border-radius: 14px; }

/* hero: the banner, alive */
.hero { grid-template-rows: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: clamp(20px, 3vw, 48px); padding: 110px var(--pad) 120px; }
.hero-copy { display: grid; gap: clamp(20px, 2.6vw, 34px); justify-items: start; }
.hero-name { display: block; overflow: hidden; font: 400 clamp(32px, 5.6vw, 96px)/1.2 var(--display); letter-spacing: -0.02em; color: #F2FFF9; }
.hero-name .ch { display: inline-block; }
.hero-line { overflow: visible; padding: 0; margin-top: 0.5em; font: 300 clamp(22px, 2.7vw, 40px)/1.2 var(--body); letter-spacing: 0; text-transform: none; white-space: normal; color: var(--bone); }
.hero-path { display: inline-flex; flex-wrap: wrap; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: var(--deep); }
.hero-path a { display: grid; gap: 1px; padding: 9px 18px; border-radius: 8px; font-weight: 600; font-size: 16px; color: var(--dim); transition: color 0.2s; }
.hero-path small { font-size: 13px; font-weight: 400; color: var(--dim); transition: color 0.2s; }
.hero-path a.is-on { color: #F2FFF9; }
.hero-path a.is-on small { color: var(--emerald); }
.js .hero-name .ch { transform: translateY(115%); }
.js .hero-line, .js .hero-path, .js .hero .socials, .js .hero .a0-visual { opacity: 0; }
.socials a { border-radius: 8px; background: var(--deep); border-color: var(--line); }

.statement-text { font: 300 clamp(28px, 4.2vw, 64px)/1.18 var(--body); letter-spacing: 0; }
.chapter-title, .connect-title { font: 400 clamp(28px, 4.8vw, 78px)/1.15 var(--display); letter-spacing: -0.02em; }
.era { font-weight: 600; font-size: 16px; }
.era::before { display: none; }
.lead { max-width: 30ch; font: 300 clamp(21px, 2.1vw, 30px)/1.3 var(--body); color: #CBD6D2; }
.body { max-width: 44ch; color: var(--dim); }
.button { border-radius: 10px; }
.button:hover, .play-button:hover { box-shadow: none; }
.chapter-a0 { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.stage-frame { box-shadow: 0 0 0 1px var(--line-strong), 0 40px 90px -40px #000; }
.stage-now strong { font: 600 clamp(19px, 1.7vw, 24px)/1.2 var(--body); letter-spacing: 0; }
.picker-thumbs .clip-pick, .picker-thumbs .clip-pick[aria-current="true"] { outline: 0; box-shadow: none; }
.picker-pips .clip-pick { font: 600 16px/1 var(--body); }
.picker-pips .clip-pick[aria-current="true"] { background: none; border-color: transparent; }
.stage-ghost { border-color: var(--line); background: var(--surface); }
.stage-arrow { border-color: var(--line-strong); background: var(--deep); }

.connect-list { display: grid; gap: 6px; border: 0; }
.connect-list a { border: 0; border-radius: 14px; }
.connect-list a::before { display: none; }
.connect-list strong { font: 400 clamp(22px, 3.6vw, 56px)/1.15 var(--display); letter-spacing: -0.02em; }
.connect-list a:hover, .connect-list a:focus-visible { color: #F2FFF9; padding-inline: clamp(4px, 1vw, 16px); }
.connect-list a:hover span, .connect-list a:focus-visible span { color: var(--mint); }
.connect-list a:hover .connect-icon, .connect-list a:focus-visible .connect-icon { color: var(--emerald); }

.dock { border-radius: 16px; border-color: var(--line); background: var(--glass); box-shadow: 0 24px 60px -24px #000; }
.queue-head h2 { font: 600 18px/1 var(--body); letter-spacing: 0; }
.discord-dialog h2 { font: 400 20px/1.2 var(--display); letter-spacing: 0; }
.discord-dialog { border-color: var(--line-strong); background: var(--deep); }

/* the menu window */
.azw-wrap { perspective: 1400px; }
.azw { display: flex; width: 100%; max-width: 760px; min-height: 430px; margin-inline: auto; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #101413; font-size: 16px; line-height: 1.35; box-shadow: 0 50px 100px -40px #000; }
.azw-side { flex: none; width: 200px; display: flex; flex-direction: column; padding: 14px 10px 12px; background: #141918; border-right: 1px solid #1F2725; }
.azw-brand { display: flex; align-items: center; gap: 9px; padding: 0 4px 14px; font: 400 11.5px/1 var(--display); letter-spacing: 0.02em; }
.azw-brand svg { width: 22px; height: 20px; }
.azw-navs { display: grid; gap: 1px; }
.azw-nav { display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 9px; border-radius: 7px; color: #A3B1AC; text-align: left; transition: color 0.15s; }
.azw-nav svg { width: 18px; height: 18px; color: #66746F; transition: color 0.15s; }
.azw-nav:hover { color: var(--bone); }
.azw-nav[aria-selected="true"] { color: #F2FFF9; }
.azw-nav[aria-selected="true"] svg { color: var(--emerald); }
.azw-nav b { margin-left: auto; font-weight: 400; font-size: 13.5px; color: #55615D; }
.azw-nav b.live { color: var(--emerald); }
.azw-foot { margin-top: auto; display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid #1F2725; }
.azw-seg { display: flex; padding: 2px; border: 1px solid var(--line); border-radius: 6px; background: #101413; }
.azw-seg button { flex: 1; height: 28px; border-radius: 4px; font-size: 14px; color: #8C9C96; }
.azw-seg button[aria-pressed="true"] { color: #F2FFF9; }
.azw-seg .glide { border-radius: 4px; }
.azw-who { display: flex; align-items: center; gap: 8px; padding: 0 4px; font-size: 14px; color: #8C9C96; }
.azw-who i { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); }
.azw-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.azw-top { height: 52px; display: flex; align-items: center; padding: 0 22px; font-size: 20px; }
.azw-body { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 14px; padding: 4px 22px 22px; }
.azw-group { overflow: hidden; border: 1px solid #1C2321; border-radius: 8px; background: #141918; }
.azw-group h3 { margin: 0; padding: 8px 14px; background: rgba(33, 209, 139, 0.1); font-size: 14.5px; font-weight: 700; color: var(--emerald); }
.azw-row { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 7px 14px; }
.azw-row > div { flex: 1; min-width: 0; }
.azw-row small { display: block; font-size: 14px; color: #7C8B85; }
.azw-row em { font-style: normal; font-size: 15px; color: #CBD6D2; text-align: right; }
.azw-toggle { flex: none; position: relative; width: 38px; height: 20px; border-radius: 10px; background: #2B3532; transition: background 0.18s; }
.azw-toggle::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #9AA8A3; transition: transform 0.22s var(--ease), background 0.18s; }
.azw-toggle[aria-checked="true"] { background: #1FBF80; }
.azw-toggle[aria-checked="true"]::after { transform: translateX(18px); background: #fff; }
.azw-row.is-slider { display: grid; gap: 2px; }
.azw-row.is-slider p { display: flex; justify-content: space-between; margin: 0; }

@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 96px; }
  .hero .a0-visual { order: -1; width: min(68%, 320px); margin-inline: 0; }
  .chapter-a0 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .azw { flex-direction: column; }
  .azw-side { width: auto; border-right: 0; border-bottom: 1px solid #1F2725; }
  .azw-navs { grid-auto-flow: column; grid-auto-columns: 1fr; }
  .azw-nav b { display: none; }
  .azw-foot { margin-top: 12px; }
  .azw-body { grid-template-columns: minmax(0, 1fr); padding-inline: 14px; }
}

.nav.is-stuck { background: linear-gradient(rgba(7, 10, 9, 0.94), rgba(7, 10, 9, 0.7) 68%, rgba(7, 10, 9, 0)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding-bottom: 22px; }

/* ---------- hero mark: an eclipse behind it so it reads against the bright cloud ---------- */
.a0-halo { inset: -5%; filter: none; background: radial-gradient(closest-side, rgba(4, 8, 6, 0.95) 0, rgba(4, 8, 6, 0.84) 54%, rgba(4, 8, 6, 0) 100%); }
.a0-logo { filter: none; }

/* social links share one bar; the highlight glides to the one you point at */
.socials { display: inline-flex; gap: 0; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: var(--deep); }
.socials a { padding: 9px 14px; border: 0; background: none; font-size: 16px; color: var(--dim); }
.socials a:hover, .socials a:focus-visible { border: 0; background: none; color: #F2FFF9; transform: none; }
.socials a:hover svg, .socials a:focus-visible svg { color: var(--emerald); }

/* ---------- clip viewers: card swap ---------- */
.stage-stack { position: relative; min-width: 0; perspective: 1400px; }
.stage-wide, .picker-thumbs { max-width: min(1100px, 104svh); }
.stage-fly { position: absolute; inset: 0; z-index: 3; border-radius: clamp(12px, 1.6vw, 22px); background: #0C1210 center / cover no-repeat; box-shadow: 0 0 0 1px var(--line-strong), 0 40px 90px -40px #000; pointer-events: none; backface-visibility: hidden; }
.stage-fly.is-emblem { background: #0C1210 url("/assets/favicon.png") center / 44px no-repeat; }
.stage-wait { background-color: #0C1210; background-size: cover; background-position: center; }
.stage-wide .stage-wait img { display: none; }
.stage-tall { gap: clamp(40px, 5.4vw, 92px); }
.stage-arrow { position: relative; z-index: 4; overflow: hidden; }
.stage-arrow.is-kick svg { animation: kick 0.5s var(--ease); }
.stage-prev.is-kick svg { animation-name: kick-back; }
@keyframes kick { 45% { transform: translateX(170%); opacity: 0; } 46% { transform: translateX(-170%); opacity: 0; } }
@keyframes kick-back { 45% { transform: translateX(-170%); opacity: 0; } 46% { transform: translateX(170%); opacity: 0; } }
.stage-now { overflow: hidden; padding-block: 2px; }
.stage-arrow:hover, .stage-prev:hover, .stage-next:hover, .button:hover, .play-button:hover { transform: none; }

/* hub logos: a badge on each chapter, and a small one on each step of the hero switcher */
.hub-badge { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line-strong), 0 14px 30px -14px #000; }
.era { gap: 14px; }
.hero-path a { grid-template-columns: auto auto; column-gap: 11px; align-items: center; justify-content: start; }
.path-logo { grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 50%; object-fit: cover; opacity: 0.55; filter: saturate(0.6); transition: opacity 0.25s, filter 0.25s, transform 0.4s var(--ease); }
.hero-path a.is-on .path-logo { opacity: 1; filter: none; transform: scale(1.08) rotate(-6deg); }
@media (max-width: 640px) {
  .hero-path a { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
  .path-logo { grid-row: auto; width: 28px; height: 28px; margin-bottom: 5px; }
  .hub-badge { width: 48px; height: 48px; }
}

/* ---------- every hub has its own colour ----------
   Emerald is Aether Zero. Unique Hub takes the pink of its logo, Xercuxis Hub the periwinkle of its.
   A chapter sets these four values and everything inside picks them up. */
:root { --accent: #21D18B; --accent-soft: #9BF7D2; --accent-ink: #06130D; --accent-tint: rgba(33, 209, 139, 0.14); }
#unique-hub, .hero-path a[href="#unique-hub"], .w-unique { --accent: #FF2E7E; --accent-soft: #FFA3C8; --accent-ink: #1C0410; --accent-tint: rgba(255, 46, 126, 0.16); }
#xercuxis-hub, .hero-path a[href="#xercuxis-hub"], .w-xercuxis { --accent: #9D97FF; --accent-soft: #D2CEFF; --accent-ink: #0C0A22; --accent-tint: rgba(157, 151, 255, 0.18); }

.chapter .era { color: var(--accent); }
.chapter-title .title-mask > span { background: linear-gradient(100deg, #F6FFFA 0%, var(--accent-soft) 52%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chapter .hub-badge { box-shadow: 0 0 0 2px var(--accent), 0 14px 30px -14px #000; }
.chapter .stage-frame { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 42%, #232B28), 0 44px 100px -44px color-mix(in srgb, var(--accent) 55%, #000); }
.chapter .stage-now strong { color: var(--accent-soft); }
.chapter .stage-arrow:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chapter .glide-ring { border-color: var(--accent); box-shadow: 0 10px 30px -12px var(--accent); }
.chapter .glide-fill { background: var(--accent); }
.chapter .picker-pips .clip-pick:hover { border-color: var(--accent); }
.chapter .picker-pips .clip-pick[aria-current="true"] { color: var(--accent-ink); }
.chapter .picker-thumbs .clip-pick[aria-current="true"] span { color: var(--accent-soft); }
.chapter .button-quiet:hover { border-color: var(--accent); color: var(--accent-soft); }
.chapter .stage-ghost { border-color: color-mix(in srgb, var(--accent) 30%, #232B28); background: color-mix(in srgb, var(--accent) 9%, #141918); }
.chapter .stage-wait { background-image: radial-gradient(60% 80% at 70% 30%, var(--accent-tint), transparent 70%); }
.glide-line { background: var(--accent); transition: transform 0.34s var(--ease), width 0.34s var(--ease), opacity 0.25s, background 0.5s; }
.hero-path a.is-on small { color: var(--accent); }
.statement-text .w-aether, .statement-text .w-unique, .statement-text .w-xercuxis { color: var(--accent-soft); }

/* ---------- Discord activity window ---------- */
.discord-dialog { width: min(880px, calc(100% - 28px)); padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line-strong); border-radius: 18px; background: #101413; overflow: auto; }
.discord-dialog[open] { animation: dd-in 0.5s var(--ease); }
.discord-dialog::backdrop { background: rgba(3, 6, 5, 0.74); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: dd-fade 0.4s ease; }
@keyframes dd-in { from { opacity: 0; transform: translateY(26px) scale(0.96); } }
@keyframes dd-fade { from { opacity: 0; } }
.dd-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.dd-copy { display: grid; gap: 16px; }
.discord-dialog h2 { margin: 0; padding-right: 34px; font: 400 clamp(17px, 2vw, 22px)/1.3 var(--display); letter-spacing: -0.01em; }
.discord-dialog .dd-copy > p { color: #CBD6D2; }
.discord-dialog ol.dd-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: step; font-size: 16px; color: var(--bone); }
.dd-steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; counter-increment: step; }
.dd-steps li::before { content: counter(step); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(33, 209, 139, 0.14); color: var(--mint); font-weight: 700; font-size: 14px; }
.dd-preview { display: grid; gap: 10px; }
.dd-preview-label { font-size: 14px; color: var(--dim); }
.presence-card { display: grid; gap: 12px; padding: 14px; border: 1px solid #26282C; border-radius: 12px; background: #111214; color: #F2F3F5; box-shadow: 0 30px 60px -30px #000; }
.presence-head { font-size: 13px; font-weight: 600; color: #B5BAC1; }
.presence-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; }
.presence-artwrap { position: relative; width: 88px; height: 88px; }
.presence-artwrap #presence-art { width: 88px; height: 88px; border-radius: 8px; object-fit: cover; }
.presence-artwrap .presence-brand { position: absolute; right: -7px; bottom: -7px; width: 30px; height: 30px; border-radius: 50%; border: 3px solid #111214; background: #111214; }
.presence-text { display: grid; gap: 1px; min-width: 0; line-height: 1.3; }
.presence-text strong, .presence-text > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.presence-text strong { font-size: 15.500px; font-weight: 600; }
.presence-text > span { font-size: 14px; color: #B5BAC1; }
.presence-progress { height: 4px; margin-top: 9px; border-radius: 2px; background: #3A3C42; overflow: hidden; }
.presence-progress i { display: block; width: var(--fill, 0%); height: 100%; border-radius: 2px; background: #F2F3F5; }
.presence-times { display: flex; justify-content: space-between; margin-top: 3px; font-size: 12.500px; font-variant-numeric: tabular-nums; color: #B5BAC1; }
.presence-button { display: grid; place-items: center; height: 34px; border-radius: 8px; background: #2B2D31; font-size: 14px; font-weight: 600; color: #F2F3F5; }
.dialog-note { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.chapter-actions .button svg:first-child { width: 17px; height: 17px; stroke-width: 1.7; }
@media (max-width: 720px) {
  .dd-grid { grid-template-columns: minmax(0, 1fr); }
  .dd-preview { order: -1; }
}

/* page ending */
.site-foot { align-items: center; margin-top: clamp(20px, 5vh, 60px); padding: 26px var(--pad) 34px; border-top: 1px solid var(--line); font-size: 15px; }
.to-top { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--deep); color: var(--bone); transition: border-color 0.2s, color 0.2s; }
.to-top svg { width: 15px; height: 15px; transform: rotate(-45deg); transition: transform 0.35s var(--ease); }
.to-top:hover { border-color: var(--emerald); color: #F2FFF9; }
.to-top:hover svg { transform: rotate(-45deg) translate(3px, -3px); }
.to-top.ext svg { transform: none; }
.to-top.ext:hover svg { transform: translate(3px, -3px); }
.site-foot { gap: 10px 14px; }
.site-foot > span:first-child { margin-right: auto; }
@media (max-width: 640px) { .nav-links { display: none; } }

/* nothing that swings or fans out may widen the page */
html { overflow-x: hidden; }
main, .chapter { overflow-x: clip; }

@media (max-width: 640px) {
  .stage-wide .stage-stack { grid-column: 1 / -1; grid-row: 1; }
  .stage-tall { gap: 14px; }
  .hero-path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .hero-path a { padding: 9px 10px; font-size: 14.5px; white-space: nowrap; }
  .socials { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
  .socials a { flex-direction: column; gap: 5px; padding: 10px 4px; font-size: 13.5px; justify-content: center; }
}

/* ---------- performance ----------
   Blurring whatever is behind an element has to be redone on every frame while the nebula moves,
   and was the single most expensive effect on the page. Solid surfaces look the same and cost nothing. */
.dock { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(13, 17, 16, 0.97); }
.nav.is-stuck { backdrop-filter: none; -webkit-backdrop-filter: none; background: linear-gradient(rgba(7, 10, 9, 0.97), rgba(7, 10, 9, 0.82) 64%, rgba(7, 10, 9, 0)); }
.discord-dialog::backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(3, 6, 5, 0.86); }
.stage-frame, .azw, .a0-logo { will-change: transform; }
