/* Jackson County Roleplay — site design system.
   "County at night": the navy of the in-game night shots, the logo's steel
   blue, and Overpass (a descendant of the US highway-sign face). Red and blue
   are reserved for the lightbar — the wipe between slides and "live" dots —
   so they read as a signal, never as decoration. */

:root {
    --ink: #0A1222;
    --ink-2: #111C33;
    --ink-3: #1B2847;
    --paper: #EEF1F6;
    --paper-2: #DCE2EC;
    --fog: #9AA5BB;
    --steel: #2F6B9E;
    --steel-hi: #7EB0E0;
    --siren-red: #FF3547;
    --siren-blue: #3070FF;

    --bg: var(--ink);
    --fg: var(--paper);
    --fg-2: rgba(238, 241, 246, .82);
    --muted: var(--fog);
    --line: rgba(206, 219, 245, .16);
    --line-2: rgba(206, 219, 245, .28);
    --chrome-fg: var(--paper);
    --chrome-muted: var(--fog);
    --chrome-bg: var(--ink);

    --font: 'Overpass', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --gutter: clamp(1.25rem, 4.5vw, 4rem);
    --bar-h: 76px;
    --ease: cubic-bezier(.77, 0, .18, 1);
    --ease-out: cubic-bezier(.2, .75, .25, 1);
    color-scheme: dark;
}

/* Light slides (and the chrome sitting on top of them) swap the palette. */
.tone-light,
body[data-tone="light"] .bar,
body[data-tone="light"] .rail,
body[data-tone="light"] .next-btn {
    --bg: var(--paper);
    --fg: var(--ink);
    --fg-2: rgba(10, 18, 34, .8);
    --muted: #4C5872;
    --line: rgba(10, 18, 34, .14);
    --line-2: rgba(10, 18, 34, .3);
    --chrome-fg: var(--ink);
    --chrome-muted: #4C5872;
    --chrome-bg: var(--paper);
    --steel-hi: var(--steel);
}

*, *::before, *::after { box-sizing: border-box; }
html {
    font-family: var(--font);
    font-size: 100%;
    line-height: 1.5;
    background: var(--ink);
    color: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
}
body { margin: 0; background: var(--ink); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
::selection { background: var(--steel); color: #fff; }
:focus-visible { outline: 2px solid var(--steel-hi); outline-offset: 3px; border-radius: 4px; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
    position: fixed; left: var(--gutter); top: .75rem; z-index: 100;
    background: var(--paper); color: var(--ink); padding: .6rem 1rem; border-radius: 6px;
    font-weight: 700; text-decoration: none; transform: translateY(-150%);
}
.skip:focus { transform: none; }
.ico { width: 1.2em; height: 1.2em; flex: none; }

/* ---- Type ---------------------------------------------------------------- */
.d-xl {
    font-weight: 800;
    font-size: clamp(3.3rem, 12.4vw, 12.75rem);
    line-height: .86;
    letter-spacing: -.045em;
}
.d-l {
    font-weight: 800;
    font-size: clamp(2.7rem, 8.2vw, 7.75rem);
    line-height: .9;
    letter-spacing: -.04em;
}
.h2 {
    font-weight: 800;
    font-size: clamp(2.1rem, 5vw, 4.4rem);
    line-height: .96;
    letter-spacing: -.032em;
}
.h3 {
    font-weight: 700;
    font-size: clamp(1.2rem, 1.55vw, 1.45rem);
    line-height: 1.2;
    letter-spacing: -.012em;
}
.lead {
    font-size: clamp(1.08rem, 1.4vw, 1.32rem);
    line-height: 1.55;
    color: var(--fg-2);
    max-width: 44ch;
}
.body { font-size: 1.0625rem; line-height: 1.65; color: var(--fg-2); max-width: 62ch; }
.small { font-size: .9375rem; line-height: 1.55; color: var(--muted); }
.meta { font-size: .9375rem; font-weight: 600; color: var(--muted); letter-spacing: .005em; }
.stack > span, .stack .ln { display: block; }
.h2, .d-l, .numbers-lead, .pillar h3 { text-wrap: balance; }
.body a, .lead a, .small a, .inline-link {
    color: var(--fg);
    text-decoration: underline;
    text-decoration-color: var(--line-2);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    transition: text-decoration-color .25s;
}
.body a:hover, .lead a:hover, .small a:hover, .inline-link:hover { text-decoration-color: currentColor; }
code, .code {
    font-family: inherit; font-weight: 700; font-size: .95em;
    background: var(--line); border-radius: 4px; padding: .08em .35em;
}

/* The one orchestrated load moment: the first slide's headline lines wipe up
   from their baseline, echoing the slide wipe. Fill mode is `backwards` so the
   clip is gone once it finishes and tall glyphs are never cut off. */
.intro .ln { animation: line-in 1s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
.intro .after-lines { animation: fade-in .9s var(--ease-out) backwards; animation-delay: .6s; }
@keyframes line-in {
    from { clip-path: inset(0 0 100% 0); transform: translateY(.3em); }
    to { clip-path: inset(0 0 0 0); transform: none; }
}
@keyframes fade-in { from { opacity: 0; } }

/* ---- Buttons --------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6em;
    min-height: 3.25rem; padding: .2em 1.45rem 0; border-radius: 6px;
    border: 1.5px solid transparent;
    font: 700 1rem/1 var(--font); letter-spacing: .005em;
    text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: background-color .25s, color .25s, border-color .25s;
}
.btn .ico { margin-top: -.2em; }
.btn-solid { background: var(--fg); color: var(--bg); }
.btn-solid:hover { background: var(--steel); color: #fff; }
.btn-ghost { border-color: var(--line-2); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--fg); }
.btn-sm { min-height: 2.6rem; padding: .18em 1rem 0; font-size: .9375rem; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .45; pointer-events: none; }
.btns { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---- Top bar ----------------------------------------------------------------- */
.bar {
    position: fixed; inset: 0 0 auto 0; z-index: 40;
    height: var(--bar-h);
    display: flex; align-items: center; gap: 2rem;
    padding: 0 var(--gutter);
    color: var(--chrome-fg);
    transition: color .5s, background-color .3s;
}
.bar::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: var(--chrome-bg); opacity: 0;
    border-bottom: 1px solid var(--line);
    transition: opacity .3s;
}
.bar.is-solid::before, .doc .bar::before { opacity: .94; }
.bar-brand {
    display: flex; align-items: center; gap: .7rem;
    text-decoration: none; font-weight: 800; font-size: 1.05rem; line-height: 1.02;
    letter-spacing: -.01em;
}
.bar-brand img { width: 40px; height: 40px; }
.bar-brand span { padding-top: .15em; }
.bar-links { display: flex; gap: 1.8rem; margin-left: auto; }
.bar-links a {
    text-decoration: none; font-weight: 600; font-size: .9688rem;
    color: var(--chrome-muted); padding: .4rem 0 .2rem;
    border-bottom: 2px solid transparent;
    transition: color .25s, border-color .25s;
}
.bar-links a:hover { color: var(--chrome-fg); }
.bar-links a[aria-current="page"] { color: var(--chrome-fg); border-bottom-color: currentColor; }
.bar .btn-solid { background: var(--chrome-fg); color: var(--chrome-bg); }
.bar .btn-solid:hover { background: var(--steel); color: #fff; }
.bar-menu {
    display: none; margin-left: auto;
    align-items: center; gap: .5rem;
    background: none; border: 0; padding: .5rem 0; cursor: pointer;
    font-weight: 700; font-size: 1rem; color: var(--chrome-fg);
}
.bar-menu span { padding-top: .18em; }
@media (max-width: 1020px) {
    .bar-links, .bar .bar-cta { display: none; }
    .bar-menu { display: inline-flex; }
}
@media (max-width: 640px) {
    :root { --bar-h: 64px; }
    .bar-brand img { width: 34px; height: 34px; }
    .bar-brand { font-size: .95rem; }
}

/* ---- Menu overlay -------------------------------------------------------------- */
.menu {
    position: fixed; inset: 0; z-index: 60;
    background: var(--ink);
    display: flex; flex-direction: column;
    padding: 0 var(--gutter) clamp(1.5rem, 5vh, 3rem);
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path .6s var(--ease), visibility 0s .6s;
    overflow-y: auto;
}
.menu.open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .6s var(--ease), visibility 0s; }
.menu-head { height: var(--bar-h); display: flex; align-items: center; justify-content: space-between; flex: none; }
.menu-close {
    display: inline-flex; align-items: center; gap: .5rem;
    background: none; border: 0; cursor: pointer; font-weight: 700; font-size: 1rem; padding: .5rem 0;
}
.menu-close span { padding-top: .18em; }
.menu-links { margin: auto 0; padding: 2rem 0; display: flex; flex-direction: column; }
.menu-links a {
    text-decoration: none; font-weight: 800;
    font-size: clamp(2.6rem, 10vw, 6rem); line-height: 1; letter-spacing: -.04em;
    color: var(--fog); padding: .06em 0;
    transition: color .2s;
}
.menu-links a:hover, .menu-links a[aria-current="page"] { color: var(--paper); }
.menu-foot { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
body.menu-open { overflow: hidden; }

/* ---- Deck ---------------------------------------------------------------------- */
html.js.has-deck, html.js.has-deck body { height: 100%; overflow: hidden; overscroll-behavior: none; }
.slide {
    position: relative;
    min-height: 100vh; min-height: 100svh;
    background: var(--bg); color: var(--fg);
    overflow: hidden;
    outline: none;
}
.js .deck { position: fixed; inset: 0; overflow: hidden; background: var(--ink); }
.js .slide { position: absolute; inset: 0; min-height: 0; visibility: hidden; will-change: clip-path, transform; }
.js .slide.is-active { visibility: visible; z-index: 2; }
.js .slide.is-leaving { visibility: visible; z-index: 1; }
.slide-in { position: relative; z-index: 1; }
.js .slide-in {
    height: 100%; overflow-y: auto; overscroll-behavior: contain;
    scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.slide-body {
    min-height: 100%;
    display: flex; flex-direction: column; justify-content: center;
    padding: calc(var(--bar-h) + clamp(1.25rem, 4vh, 3rem)) var(--gutter) clamp(4.75rem, 11vh, 6.5rem);
}
@media (min-width: 1021px) { .slide-body { padding-right: calc(var(--gutter) + 56px); } }
.slide-body.at-end { justify-content: flex-end; }
.slide-body.finale { justify-content: flex-start; }
.slide.alt { --bg: var(--ink-2); }
.slide-media { position: absolute; inset: 0; z-index: 0; background: var(--ink); }
.slide-media img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transition: opacity 1.6s ease;
}
.slide-media img.on { opacity: 1; }
.slide-media::after {
    content: ''; position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 18, 34, .94) 0%, rgba(10, 18, 34, .72) 42%, rgba(10, 18, 34, .25) 100%),
        linear-gradient(0deg, rgba(10, 18, 34, .9) 0%, rgba(10, 18, 34, 0) 45%);
}
.slide-media.even::after { background: rgba(10, 18, 34, .74); }
@media (max-width: 760px) {
    .slide-media::after { background: linear-gradient(0deg, rgba(10, 18, 34, .96) 25%, rgba(10, 18, 34, .6) 100%); }
}

/* Rail: one tick per slide on the right edge; labels show on hover/focus. */
.rail {
    position: fixed; z-index: 30; right: calc(var(--gutter) * .5 + 4px); top: 50%;
    transform: translateY(-50%);
    display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
    color: var(--chrome-fg);
}
.rail-item {
    position: relative; display: flex; align-items: center; justify-content: flex-end;
    width: 44px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer;
}
.rail-tick {
    width: 14px; height: 2px; border-radius: 2px; background: var(--chrome-muted); opacity: .6;
    transition: width .45s var(--ease), background-color .3s, opacity .3s;
}
.rail-item:hover .rail-tick { opacity: 1; width: 22px; }
.rail-item[aria-current] .rail-tick { width: 34px; background: var(--chrome-fg); opacity: 1; }
.rail-label {
    position: absolute; right: 52px; white-space: nowrap;
    font-size: .875rem; font-weight: 700; padding-top: .15em;
    opacity: 0; transform: translateX(6px); pointer-events: none;
    transition: opacity .25s, transform .25s;
}
.rail-item:hover .rail-label, .rail-item:focus-visible .rail-label { opacity: 1; transform: none; }
.next-btn {
    position: fixed; z-index: 30; right: var(--gutter); bottom: clamp(.9rem, 2.6vh, 1.5rem);
    width: 46px; height: 46px; border-radius: 50%;
    display: grid; place-items: center; cursor: pointer;
    background: transparent; border: 1.5px solid var(--line-2); color: var(--chrome-fg);
    transition: border-color .25s, color .5s, transform .5s var(--ease);
}
.next-btn:hover { border-color: var(--chrome-fg); }
.next-btn .ico { width: 20px; height: 20px; }
.next-btn.is-up { transform: rotate(180deg); }
@media (max-width: 1020px) {
    .rail { display: none; }
}
/* A slide taller than the screen scrolls under the next button;
   a short scrim keeps it legible over whatever passes beneath. */
body.slide-scrolls::after {
    content: ''; position: fixed; z-index: 29; left: 0; right: 0; bottom: 0; height: 4.75rem;
    pointer-events: none; background: linear-gradient(to top, var(--slide-bg, var(--ink)) 40%, transparent);
}

@media (max-width: 640px) {
    .d-xl { font-size: 17vw; }
    .intro .d-xl { font-size: 18vw; }
}

.lightbar {
    position: fixed; z-index: 35; left: 0; right: 0; top: -2px; height: 4px;
    display: flex; pointer-events: none; opacity: 0;
}
.lightbar span { flex: 1; height: 100%; }
.lb-red { background: var(--siren-red); box-shadow: 0 0 18px 4px rgba(255, 53, 71, .75), 0 0 60px 14px rgba(255, 53, 71, .35); }
.lb-blue { background: var(--siren-blue); box-shadow: 0 0 18px 4px rgba(48, 112, 255, .75), 0 0 60px 14px rgba(48, 112, 255, .35); }

/* A live signal: alternates red/blue like a lightbar. */
.live-dot {
    display: inline-block; width: .55em; height: .55em; border-radius: 50%;
    background: var(--siren-red); vertical-align: .1em;
    animation: siren 1.2s steps(1) infinite;
}
@keyframes siren { 50% { background: var(--siren-blue); } }

/* ---- Shared layout helpers ------------------------------------------------------- */
.split {
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(2rem, 6vw, 6rem); align-items: center;
}
.split.top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.gap-s > * + * { margin-top: .75rem; }
.gap-m > * + * { margin-top: clamp(1rem, 2.4vh, 1.5rem); }
.gap-l > * + * { margin-top: clamp(1.5rem, 4vh, 2.5rem); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.tag {
    display: inline-flex; align-items: center; gap: .5em;
    font-size: .875rem; font-weight: 700; line-height: 1;
    padding: .5em .8em .38em; border-radius: 4px;
    border: 1.5px solid var(--line-2); color: var(--fg);
}

/* ---- Footer (lives inside the last slide) ------------------------------------------ */
.foot {
    margin-top: auto;
    padding-top: clamp(2rem, 5vh, 3.5rem);
    display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem;
    border-top: 1px solid var(--line);
    margin-bottom: 2.4rem;
}
.foot h2 { font-size: .9375rem; font-weight: 700; color: var(--fg); margin-bottom: .7rem; }
.foot ul { list-style: none; padding: 0; display: grid; gap: .35rem; }
.foot a { color: var(--muted); text-decoration: none; font-size: .9375rem; }
.foot a:hover { color: var(--fg); }
.foot-brand p { max-width: 36ch; }
.foot-credit { margin-top: 1rem; font-size: .875rem; color: var(--muted); }
.foot-credit a { color: var(--fg); }
@media (max-width: 760px) {
    .foot { grid-template-columns: 1fr 1fr; }
    .foot-brand { grid-column: 1 / -1; }
}
.finale { gap: clamp(2rem, 5vh, 3rem); }
.finale-main { flex: 1; display: flex; flex-direction: column; justify-content: center; }

/* =====================================================================================
   Home
   ===================================================================================== */
.hero-title { max-width: 11ch; }
.hero-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; margin-top: clamp(1.5rem, 4vh, 2.5rem); }
.hero-foot .lead { max-width: 40ch; }
.hero-live { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1rem; margin-bottom: 1.25rem; }
.hero-live b { font-weight: 800; }

.numbers-lead { font-weight: 800; font-size: clamp(2.2rem, 5.6vw, 5.2rem); line-height: .98; letter-spacing: -.035em; max-width: 14ch; }
.numbers-lead em { font-style: normal; font-variant-numeric: tabular-nums; }
.numbers-list {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line); margin-top: clamp(2rem, 6vh, 3.5rem);
}
.numbers-list > div { padding: 1.25rem 1.5rem 0 0; }
.numbers-list > div + div { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.numbers-list b { display: block; font-weight: 800; font-size: clamp(1.8rem, 3.2vw, 2.75rem); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.numbers-list span { display: block; margin-top: .5rem; color: var(--muted); font-size: .9375rem; font-weight: 600; }
@media (max-width: 760px) {
    .numbers-list { grid-template-columns: 1fr 1fr; }
    .numbers-list > div { padding: 1.1rem 1rem 1.1rem 0; border-bottom: 1px solid var(--line); }
    .numbers-list > div + div { padding-left: 0; border-left: 0; }
    .numbers-list > div:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line); }
}

.pillars { display: grid; }
.pillar {
    display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: .5rem 3rem; align-items: end;
    padding: clamp(1rem, 2.6vh, 1.6rem) 0;
    border-bottom: 1px solid var(--line);
}
.pillar:first-child { border-top: 1px solid var(--line); }
.pillar h3 { font-weight: 800; font-size: clamp(2.2rem, 6vw, 5.4rem); line-height: .92; letter-spacing: -.04em; }
.pillar p { padding-bottom: .5rem; }
@media (max-width: 760px) { .pillar { grid-template-columns: 1fr; } }

.steps { list-style: none; margin-inline: 0; margin-bottom: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.step { border-top: 2px solid var(--fg); padding-top: 1.1rem; display: flex; flex-direction: column; gap: .75rem; }
.step-n { font-weight: 800; font-size: clamp(3rem, 5.5vw, 5rem); line-height: .9; letter-spacing: -.05em; }
.step .btn { align-self: flex-start; margin-top: .25rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) {
    .steps { grid-template-columns: 1fr; gap: 1.25rem; }
    .step { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; }
    .step-n { grid-row: span 3; font-size: 2.6rem; }
}

.badges { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.badge {
    background: var(--bg); text-decoration: none;
    display: flex; flex-direction: column; align-items: center; gap: .9rem;
    padding: clamp(1.1rem, 2.5vw, 1.75rem) .75rem 1.1rem; text-align: center;
    transition: background-color .3s;
}
.badge:hover { background: var(--ink-3); }
.badge img { height: clamp(64px, 8vw, 104px); width: auto; object-fit: contain; }
.badge b { font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; }
.badge span { font-size: .8125rem; color: var(--muted); font-weight: 600; margin-top: -.6rem; }
.badge.is-soon img { filter: grayscale(1) brightness(.7); }
@media (max-width: 1020px) { .badges { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .badges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.times { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 5rem); margin-top: clamp(1.75rem, 5vh, 3rem); }
.time { border-top: 1px solid var(--line-2); padding-top: 1rem; }
.time-v { font-weight: 800; font-size: clamp(3.4rem, 9.5vw, 9rem); line-height: .9; letter-spacing: -.05em; font-variant-numeric: tabular-nums; margin-top: .4rem; white-space: nowrap; }
.time-v small { font-size: .32em; letter-spacing: 0; margin-left: .15em; }
@media (max-width: 640px) { .times { grid-template-columns: 1fr; } }

.quote.is-long { font-size: clamp(1.35rem, 2.5vw, 2.3rem); max-width: 36ch; }
.quote { max-width: 30ch; font-weight: 400; font-style: italic; font-size: clamp(1.6rem, 3.3vw, 3rem); line-height: 1.22; letter-spacing: -.02em; }
.quote-wrap { min-height: clamp(14rem, 40vh, 22rem); display: flex; flex-direction: column; justify-content: center; }
.quote-by { display: flex; align-items: center; gap: .9rem; margin-top: 1.75rem; }
.quote-by img { width: 48px; height: 48px; border-radius: 50%; background: var(--ink-3); }
.quote-by b { font-weight: 700; }
.quote-controls { display: flex; align-items: center; gap: .75rem; margin-top: clamp(1.75rem, 5vh, 3rem); }
.icon-btn {
    width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
    background: none; border: 1.5px solid var(--line-2); color: var(--fg); transition: border-color .25s;
}
.icon-btn:hover { border-color: var(--fg); }
.quote-count { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; margin-left: .5rem; font-size: .9375rem; }
.quote-fade { transition: opacity .35s; }
.quote-fade.out { opacity: 0; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    list-style: none; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: 1.1rem 0 .95rem; font-weight: 700; font-size: clamp(1.05rem, 1.35vw, 1.25rem);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { transition: transform .35s var(--ease); color: var(--muted); }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq details p { padding: 0 2.5rem 1.25rem 0; }

.discord-widget { width: 100%; max-width: 380px; height: 420px; border: 0; border-radius: 8px; background: var(--ink-2); }
@media (max-width: 900px) { .discord-widget { display: none; } }

/* =====================================================================================
   Inner pages (departments, applications, about, marketplace, 404).
   The home page tells the story in big type; these pages are directories, so
   they switch to denser cards built around the in-game photos.
   ===================================================================================== */
.slide-body.sub > * { width: 100%; max-width: 80rem; margin-inline: auto; }
.slide-body.sub { gap: clamp(1.5rem, 4vh, 2.75rem); }
.slide-body.sub.finale { gap: 0; }
.slide-media.dim::after {
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(10, 18, 34, .72) 0%, rgba(10, 18, 34, .9) 60%, var(--ink) 100%);
}

/* Page head: the page's name, centered, over a dimmed photo. */
.phead { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.phead-title { font-weight: 800; font-size: clamp(2.6rem, 6.4vw, 5.75rem); line-height: .92; letter-spacing: -.04em; text-wrap: balance; }
.phead .lead { max-width: 52ch; }
.shead { display: flex; flex-direction: column; gap: .6rem; }
.shead-title { font-weight: 800; font-size: clamp(1.9rem, 3.6vw, 3.1rem); line-height: 1; letter-spacing: -.032em; text-wrap: balance; }
.shead .lead { max-width: 60ch; }

.card {
    background: rgba(148, 170, 215, .055);
    border: 1px solid var(--line);
    border-radius: 18px;
}
a.card { text-decoration: none; transition: border-color .25s, background-color .25s; }
a.card { transition: border-color .25s, background-color .25s, transform .35s var(--ease-out); }
a.card:hover { border-color: var(--line-2); background: rgba(148, 170, 215, .09); transform: translateY(-3px); }

/* Status pills. The dot carries the meaning; the words say it for everyone. */
.pill {
    display: inline-flex; align-items: center; gap: .5em; width: max-content;
    font-size: .8125rem; font-weight: 700; line-height: 1; white-space: nowrap;
    padding: .5em .8em .38em; border-radius: 999px;
    border: 1px solid var(--line-2); background: rgba(10, 18, 34, .55); color: var(--fg);
}
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; margin-top: -.12em; background: var(--fog); }
.pill.is-open::before { background: var(--steel-hi); box-shadow: 0 0 0 3px rgba(126, 176, 224, .22); }
.pill.is-soon::before { background: transparent; border: 1.5px solid var(--fog); }
.pill.plain::before { display: none; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.chip {
    display: inline-flex; align-items: center; min-height: 2.5rem; padding: .2em 1.05rem 0;
    border-radius: 999px; border: 1px solid var(--line-2); background: rgba(10, 18, 34, .5);
    font-weight: 700; font-size: .9375rem; text-decoration: none; transition: border-color .2s, background-color .2s;
}
.chip:hover { border-color: var(--fg); }

/* Photo crossfade inside a card (same behaviour as .slide-media). */
.photos { position: relative; overflow: hidden; background: var(--ink-3); }
.photos > img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transition: opacity 1.6s ease;
}
.photos > img.on { opacity: 1; animation: drift 9s ease-out both; }
/* A slow push-in on whichever photo is showing. */
@keyframes drift { from { transform: scale(1.08); } }
.pbars { position: absolute; z-index: 2; left: 1rem; right: 1rem; bottom: 1rem; display: flex; gap: 4px; }
.pbars span { flex: 1; height: 3px; border-radius: 2px; background: rgba(238, 241, 246, .28); overflow: hidden; position: relative; }
.pbars span::after { content: ''; position: absolute; inset: 0; background: var(--paper); transform: scaleX(0); transform-origin: left; }
.pbars span.done::after { transform: none; }
.pbars span.on::after { animation: fill 6s linear forwards; }
@keyframes fill { to { transform: none; } }

/* Department head, with a live Discord avatar. */
.head { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; min-width: 0; }
.head .person-av { width: 28px; font-size: 0; }
.head b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.head:hover b { color: var(--steel-hi); }

.slide-body .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; max-width: 46rem; margin-inline: auto; }
.stats .card { padding: 1.1rem 1.25rem 1rem; text-align: center; }
.stats b { display: block; font-weight: 800; font-size: clamp(1.6rem, 2.6vw, 2.25rem); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: .45rem; color: var(--muted); font-size: .875rem; font-weight: 600; }
@media (max-width: 560px) { .slide-body .stats { grid-template-columns: 1fr; } }

.checks { list-style: none; padding: 0; display: grid; gap: .4rem; }
.checks li { display: flex; gap: .55rem; align-items: flex-start; font-weight: 600; font-size: .9375rem; line-height: 1.45; }
.checks .ico { color: var(--steel-hi); width: 1.05em; height: 1.05em; margin-top: .12em; }

/* Closing slide: a photo banner with the page's call to action, then the footer. */
.cta-card { position: relative; overflow: hidden; border-radius: 22px; border: 1px solid var(--line); isolation: isolate; }
.cta-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(10, 18, 34, .78); }
.cta-in {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.1rem;
    padding: clamp(2.5rem, 7vh, 4.5rem) clamp(1.25rem, 4vw, 3rem);
}
.cta-in .lead { max-width: 50ch; }
.cta-in .btns { justify-content: center; margin-top: .4rem; }

/* ---- Departments ------------------------------------------------------------------- */
.dtiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.dtile { display: flex; gap: .9rem; align-items: center; padding: .9rem 1rem; min-width: 0; }
.dtile-logo { width: 52px; height: 52px; flex: none; display: grid; place-items: center; }
.dtile-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.dtile-txt { min-width: 0; display: grid; gap: .35rem; }
.dtile-txt b { font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; line-height: 1.1; }
.dtile-txt > span:not(.pill) { font-size: .875rem; color: var(--muted); font-weight: 600; line-height: 1.3; text-wrap: balance; }
.dtile.is-soon .dtile-logo img { filter: grayscale(1) brightness(.75); }
@media (max-width: 1100px) { .dtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .dtiles { grid-template-columns: 1fr; } }

.dcard {
    display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); overflow: hidden;
    min-height: min(38rem, calc(100svh - var(--bar-h) - 9rem));
}
.dcard .photos { min-height: 18rem; }
.dcard .photos::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 18, 34, .55) 0%, rgba(10, 18, 34, 0) 30%); }
.dcard-tags { position: absolute; z-index: 1; top: 1rem; left: 1rem; right: 1rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.plate {
    display: inline-flex; align-items: center; gap: .55rem; padding: .3rem .8rem .3rem .35rem;
    border-radius: 999px; background: rgba(10, 18, 34, .72); border: 1px solid var(--line-2);
    font-weight: 800; font-size: .9375rem; letter-spacing: .01em;
}
.plate img { width: 28px; height: 28px; object-fit: contain; }
.plate span { padding-top: .12em; }
.photos.is-empty { display: grid; place-items: center; }
.photos.is-empty > img { position: static; opacity: .9; width: auto; height: clamp(120px, 30%, 200px); object-fit: contain; }
.dcard-mark { font-size: clamp(3rem, 8vw, 6rem); opacity: .5; }
.dcard-body { display: flex; flex-direction: column; gap: 1.1rem; padding: clamp(1.5rem, 3.2vw, 2.75rem); }
.dcard-title { font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.75rem); line-height: 1; letter-spacing: -.03em; text-wrap: balance; }
.dcard-body .body { font-size: 1rem; }
.facts { display: grid; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: .7rem 0 .6rem; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-weight: 600; font-size: .9375rem; }
.facts dd { font-weight: 600; font-size: .9375rem; }
.dcard-body .btns { margin-top: auto; padding-top: .4rem; }
@media (max-width: 900px) {
    .dcard { grid-template-columns: 1fr; min-height: 0; }
    .dcard .photos { min-height: 0; aspect-ratio: 16 / 10; }
    .facts > div { grid-template-columns: 7rem 1fr; }
}

/* ---- Applications -------------------------------------------------------------------- */
.atiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; }
.atile { display: flex; flex-direction: column; gap: .9rem; padding: 1.1rem 1.1rem 1rem; }
.atile img { width: 32px; height: 32px; }
.atile b { font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; line-height: 1.15; }
.atile .small { flex: 1; margin-top: -.45rem; font-size: .875rem; line-height: 1.45; }
@media (max-width: 1000px) { .atiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .atiles { grid-template-columns: 1fr 1fr; } }

.acards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
.acards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.acard { display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.25rem, 2vw, 1.75rem); scroll-margin-top: calc(var(--bar-h) + 1rem); }

.acard > img { width: 40px; height: 40px; }
.acard h3 { font-weight: 800; font-size: clamp(1.45rem, 2vw, 1.85rem); letter-spacing: -.025em; line-height: 1.05; }
.acard .tagline { font-weight: 600; color: var(--fg); margin-top: -.5rem; }
.acard .body { font-size: .9688rem; line-height: 1.6; }
.acard .note { font-size: .9375rem; line-height: 1.55; color: var(--fg-2); padding: .75rem .9rem .65rem; border-radius: 10px; background: rgba(126, 176, 224, .08); border: 1px solid rgba(126, 176, 224, .22); }
.acard .btns { margin-top: auto; padding-top: .25rem; }
.acard .btns .btn { flex: 1 1 auto; }
@media (max-width: 1000px) { .acards, .acards.two { grid-template-columns: 1fr; } }

/* ---- About --------------------------------------------------------------------------- */
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.people.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 46rem; margin-inline: auto; }
.people.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.person { display: flex; align-items: center; gap: 1rem; padding: 1rem; min-width: 0; }
.person-av {
    flex: none; width: 56px; aspect-ratio: 1; border-radius: 50%;
    background: var(--ink-3); display: grid; place-items: center; overflow: hidden;
    font-weight: 800; color: var(--fog);
}
.person-av img { width: 100%; height: 100%; object-fit: cover; }
.person-txt { min-width: 0; display: grid; gap: .45rem; }
.person b { display: block; font-weight: 800; font-size: 1.0625rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person .role { font-size: .875rem; color: var(--muted); font-weight: 600; line-height: 1.3; }
.people.two .person { flex-direction: column; text-align: center; padding: 1.75rem 1rem 1.5rem; }
.people.two .person-av { width: clamp(88px, 9vw, 112px); font-size: 1.5rem; }
.people.two .person b { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
.people.two .person .role { font-size: .9375rem; }
@media (max-width: 1100px) { .people, .people.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .people, .people.three { grid-template-columns: 1fr; } }

/* ---- Marketplace ---------------------------------------------------------------------- */
.buy-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.buy-steps li { padding: 1.1rem 1.25rem 1rem; display: grid; grid-template-columns: auto 1fr; gap: .2rem .9rem; align-items: baseline; }
.buy-steps .n { grid-row: span 2; font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--steel-hi); }
.buy-steps b { font-weight: 800; font-size: 1.0625rem; }
.buy-steps p { grid-column: 2; }
.fine { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.75rem; text-align: center; }
.fine p { max-width: 34ch; }
@media (max-width: 860px) { .buy-steps { grid-template-columns: 1fr; } }

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; font-variant-numeric: tabular-nums; }
.price b { font-weight: 800; font-size: 1.45rem; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: .3rem; }
.price b + b { font-size: 1.05rem; color: var(--muted); }
.price .rbx { width: .8em; height: .8em; }

.tcards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; }
.tcard { display: flex; flex-direction: column; gap: .9rem; padding: 1.25rem; border-top: 3px solid var(--tc); }
.tcard-name { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.tcard-name h3 { font-weight: 800; font-size: 1.45rem; letter-spacing: -.025em; }
.tcard-name span { font-size: .8125rem; font-weight: 700; color: var(--muted); }
.tcard .price b:first-child { color: var(--tc); }
.tcard .checks .ico { color: var(--tc); }
.tcard details summary { cursor: pointer; font-weight: 700; font-size: .875rem; color: var(--muted); list-style: none; display: inline-flex; gap: .3rem; align-items: center; }
.tcard details summary::-webkit-details-marker { display: none; }
.tcard details summary .ico { width: 1em; height: 1em; transition: transform .3s var(--ease); }
.tcard details[open] summary .ico { transform: rotate(180deg); }
.tcard details .checks { margin-top: .6rem; }
.tcard .btns { margin-top: auto; flex-direction: column; gap: .5rem; }
.tcard .btns .btn { width: 100%; }
@media (max-width: 1180px) { .tcards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .tcards { grid-template-columns: 1fr; } }

.compare-card { padding: .5rem clamp(1rem, 2vw, 1.75rem) 1rem; }
.compare-wrap { overflow-x: auto; }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .9375rem; }
.compare th, .compare td { padding: .55rem .75rem .45rem; text-align: center; border-bottom: 1px solid var(--line); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare th:first-child, .compare td:first-child { text-align: left; padding-left: 0; font-weight: 600; }
.compare thead th { font-weight: 800; font-size: 1.05rem; color: var(--tc, var(--fg)); padding-top: .9rem; }
.compare thead th span { display: block; font-size: .8125rem; font-weight: 600; color: var(--muted); margin-top: .15rem; }
.compare .grp td { text-align: left; padding-top: 1.1rem; font-weight: 700; color: var(--muted); font-size: .875rem; border-bottom-color: var(--line-2); }
.compare .ico { margin: 0 auto; width: 1.1em; height: 1.1em; }
.compare .yes { color: var(--steel-hi); }
.compare .no { color: var(--muted); opacity: .5; }

.igroup { display: grid; gap: .9rem; }
.igroup + .igroup { margin-top: clamp(1.25rem, 3.5vh, 2.25rem); }
.igroup-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1.5rem; }
.igroup-head h3 { font-weight: 800; font-size: clamp(1.35rem, 2vw, 1.7rem); letter-spacing: -.025em; }
.igroup-head p { max-width: 64ch; }
.icards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.icard { display: flex; flex-direction: column; gap: .7rem; padding: 1.2rem 1.25rem; }
.icard h4 { font-weight: 800; font-size: 1.2rem; letter-spacing: -.015em; }
.icard .small { flex: 1; }
.icard .btns { gap: .5rem; }
@media (max-width: 900px) { .icards { grid-template-columns: 1fr; } }

.ppcard { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding: clamp(1.25rem, 2.5vw, 2rem); }
.ppcard-main { display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; }
.ppcard-main h3 { font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -.03em; line-height: 1; }
.pp-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.75rem; align-content: center; }
.pp-feats b { display: block; font-weight: 800; font-size: 1rem; margin-bottom: .2rem; }
@media (max-width: 860px) { .ppcard, .pp-feats { grid-template-columns: 1fr; } }

/* =====================================================================================
   404
   ===================================================================================== */
.nf { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.nf-code { font-weight: 800; font-size: clamp(6rem, 22vw, 16rem); line-height: .8; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 2px var(--line-2); }
.nf-path { font-weight: 600; color: var(--muted); overflow-wrap: anywhere; }
.nf .btns { justify-content: center; margin-top: .75rem; }

/* =====================================================================================
   Motion
   ===================================================================================== */
/* Slide contents rise in, staggered, as the slide arrives (deck.js tags them). */
.js .slide:not(.is-shown) .rv { opacity: 0; }
.slide.is-shown .rv { animation: rise .9s var(--ease-out) backwards; animation-delay: calc(var(--rv, 0) * 55ms + 220ms); }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

/* Between pages: the new page wipes up over the old one, like a slide change,
   while the top bar stays put. Browsers without view transitions just load. */
@view-transition { navigation: auto; }
.bar { view-transition-name: bar; }
::view-transition-old(root) { animation: page-out .8s var(--ease) both; }
::view-transition-new(root) { animation: page-in .8s var(--ease) both; }
@keyframes page-out { to { transform: translateY(-10vh) scale(.97); filter: brightness(.3); } }
@keyframes page-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

/* =====================================================================================
   Documents (privacy policy, terms) — normal reading scroll.
   ===================================================================================== */
.doc main { padding: calc(var(--bar-h) + clamp(2.5rem, 8vh, 5rem)) var(--gutter) 0; max-width: calc(46rem + 2 * var(--gutter)); margin: 0 auto; }
.doc-head { padding-bottom: clamp(2rem, 5vh, 3rem); border-bottom: 1px solid var(--line); margin-bottom: clamp(2rem, 5vh, 3rem); }
.doc-foot { max-width: calc(64rem + 2 * var(--gutter)); margin: clamp(3rem, 8vh, 5rem) auto 0; padding: 0 var(--gutter); }
.doc-cta { margin-top: clamp(2rem, 6vh, 4rem); padding-top: clamp(2rem, 5vh, 3rem); border-top: 1px solid var(--line); }
/* The policy pages carry their own stylesheet from the previous design; map
   its variables onto this palette and lift its tiny all-caps labels. */
.doc { --txt-dim: var(--fg-2); --txt-faint: var(--muted); }
.doc .legal-meta-l, .doc .legal-toc-t, .doc .req-l { font-size: .875rem; font-weight: 700; color: var(--muted); }
.doc .legal-toc a, .doc .legal-meta-v { font-size: 1rem; }
.doc .legal-sec h2 { font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -.025em; line-height: 1.1; }
.doc .legal-sec h3 { font-size: 1.0625rem; font-weight: 700; color: var(--fg); margin-top: 1.75rem; }
.doc .legal-sec p, .doc .legal-sec li { font-size: 1.0625rem; line-height: 1.7; }
.doc .legal-sec, .doc .legal-meta, .doc .legal-toc { scroll-margin-top: calc(var(--bar-h) + 1.5rem); }
.doc .legal-sec .btn { text-decoration: none; }
.doc .legal-sec .btn-solid { color: var(--bg); }
.doc .legal-sec .btn-solid:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .live-dot { animation: none; }
    ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
