/* Home page (direction B, artboard "Home B"). Tokens and shared pieces come from site.css. */

.bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------- hero */

/* vitalrust.com's hero: the whole first screen, edge to edge. The owner's loop covers it (object-fit
   cover) under its own shade, darker on the left where the text sits; no page scene shows in it.
   The header floats over the top (layout headerOverlay), the wipe strip sits on the bottom edge. */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; background: var(--bg); } /* solid: no page scene under the video */
.hero-media { position: absolute; inset: 0; }
.hero-media .bg-video { filter: saturate(0.6); }
.hero-shade {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--bg) 86%, transparent) 0%, color-mix(in srgb, var(--bg) 55%, transparent) 50%, color-mix(in srgb, var(--bg) 25%, transparent) 100%),
        linear-gradient(180deg, color-mix(in srgb, var(--bg) 60%, transparent) 0%, transparent 20%, transparent 65%, color-mix(in srgb, var(--bg) 85%, transparent) 100%);
}
.hero-content { position: relative; flex: 1; padding-top: calc(var(--header-h) + 48px); padding-bottom: 48px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.hero-wordmark {
    margin: 0; font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 900;
    font-size: clamp(54px, 14vw, 196px); line-height: 1; letter-spacing: -0.01em; text-transform: uppercase; color: var(--text); white-space: nowrap;
}
/* The hero wordmark is the brand kit's logo: bone, with the teal copy on top fading in as it
   docks into the header (site.js sets --morph-p). Width set, height follows: never stretched. */
.hero-wordmark { position: relative; align-self: flex-start; width: clamp(260px, 58vw, 940px); line-height: 0; font-size: 0; }
.hero-wordmark .wm { display: block; width: 100%; height: auto; }
.hero-wordmark .wm-teal { position: absolute; inset: 0; opacity: var(--morph-p, 0); }
.hero-tagline { margin: 6px 0 0; font-weight: 800; font-size: clamp(12px, 1vw, 15px); letter-spacing: 0.3em; text-transform: uppercase; color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
/* The hero wordmark eases in on load, the tagline and button just after (CSS only: ends visible). */
@keyframes hero-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-wordmark { animation: hero-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-tagline { animation: hero-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both; }
.hero-actions { animation: hero-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both; }
@media (prefers-reduced-motion: reduce) {
    .hero-wordmark, .hero-tagline, .hero-actions { animation: none; }
}
/* The scroll morph (site.js): above the fixed header, scaled from its left middle, bone to the logo's
   teal as it docks; once docked the header logo takes over (the heading stays, transparent, for
   screen readers). It never takes clicks meant for the nav it passes. */
.hero-wordmark.is-morphing {
    position: relative; z-index: 21; pointer-events: none; transform-origin: 0 50%;
    color: color-mix(in srgb, var(--accent-text) calc(var(--morph-p, 0) * 100%), var(--text));
}
.hero-wordmark.is-docked { color: transparent; }
/* While it morphs the wordmark is fixed at its scroll-0 place (site.js measures --fix-x / --fix-y) and a
   placeholder of its size keeps its room in the hero, so only the script moves it (no fight with a
   phone's compositor scroll). */
.hero-wordmark.is-morphing.is-fixed { position: fixed; left: var(--fix-x, auto); top: var(--fix-y, auto); margin: 0; }
.hero-wordmark-holder { display: block; flex: none; align-self: flex-start; width: var(--hold-w, 0); height: var(--hold-h, 0); }
.hero-wordmark.is-docked .wm { opacity: 0; }
/* Scroll-driven (site.js adds .morph-sda where the browser has them): the same path as CSS animations
   on the page's scroll timeline, so the browser moves the wordmark in step with its own scroll (iOS
   momentum scroll included) instead of a script a frame behind. site.js writes the wm-dock keyframes
   in px and --dock-d, the scroll at which it docks; the entrance (hero-rise) runs first as before. */
@supports (animation-timeline: scroll()) {
    .hero-wordmark.is-morphing.morph-sda {
        animation: hero-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both, wm-dock linear both;
        animation-timeline: auto, scroll(root);
        animation-range: normal, 0px var(--dock-d, 1px);
        will-change: transform;
    }
    .hero-wordmark.morph-sda .wm-teal { animation: wm-teal linear both; animation-timeline: scroll(root); animation-range: 0px var(--dock-d, 1px); }
    /* The fade above wins over the docked opacity, so the docked teal copy (aria-hidden) hides this way. */
    .hero-wordmark.morph-sda.is-docked .wm-teal { visibility: hidden; }
}
@keyframes wm-teal { from { opacity: 0; } to { opacity: 1; } }
.btn-play { --slant: 20px; min-height: 60px; padding: 14px calc(30px + var(--slant)) 14px 30px; gap: 14px; font-size: clamp(16px, 1.3vw, 20px); letter-spacing: 0.04em; }
.btn-play svg { width: 13px; height: 13px; }
.hero-strip { position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 80%, transparent); }
.hero-strip-row { min-height: 60px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.strip-label { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text); }
.strip-square { width: 8px; height: 8px; background: var(--accent); }
.strip-scope { font-size: 13px; color: var(--text-3); }
.strip-count { font-family: var(--font-mono); font-weight: 700; font-size: 16px; color: var(--text); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- intro: what runs on the server */

/* The headline, two live counters and the ways in on the left; a 2x2 bento of feature tiles on the
   right (one column on phones). Depth without images: a teal glow behind the tiles that their glass
   blurs. No grid texture (the owner found it looked generic, 2026-12-03). */
.intro { position: relative; overflow: hidden; }
.intro-bg {
    position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(180deg, var(--bg) 0, transparent 220px),
        radial-gradient(ellipse 46% 60% at 74% 52%, color-mix(in srgb, var(--peacock-teal) 16%, transparent) 0%, transparent 70%);
    opacity: 0.9;
}
.intro > .container { position: relative; }
.intro-grid { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); align-items: center; gap: 56px !important; }
.intro .container.intro-grid { max-width: 1280px; }
.intro-text { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; min-width: 0; container-type: inline-size; }
.intro-line {
    margin: 0; display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-mono); font-weight: 600; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3);
}
.intro-line::before { content: ''; flex: none; width: 8px; height: 8px; background: var(--accent); box-shadow: 0 0 12px color-mix(in srgb, var(--peacock-teal) 70%, transparent); }
/* As big as the longest word allows (--hl, its letters, from home.js): a short English headline
   runs large, a long French or Spanish word still fits its column without breaking. */
.intro-h { font-size: clamp(30px, 5vw, 76px); line-height: 0.9; letter-spacing: -0.02em; hyphens: manual; overflow-wrap: anywhere; /* last resort for long compounds */ }
@supports (width: 1cqi) {
    .intro-h { font-size: clamp(30px, calc(100cqi / (var(--hl, 10) * 0.95)), 88px); }
}
.intro-h .accent { text-shadow: 0 0 36px color-mix(in srgb, var(--peacock-teal) 35%, transparent); }

/* Live counters: small spaced labels over big tabular figures, split by a hairline. */
.intro-stats { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.intro-stat { margin: 0; padding: 16px 28px 16px 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.intro-stat + .intro-stat { padding-left: 28px; border-left: 1px solid var(--line); }
.intro-stat dt { font-family: var(--font-mono); font-weight: 700; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-4); }
.intro-stat dd { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.intro-big {
    font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; font-size: clamp(24px, 2.2vw, 32px); line-height: 1;
    font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text);
}
.intro-of { margin-left: 2px; font-size: 0.6em; font-weight: 700; color: var(--text-4); }
.intro-meter { display: block; width: 100%; min-width: 120px; height: 3px; background: var(--line); }
.intro-meter > span { display: block; width: 0%; height: 100%; background: var(--accent); box-shadow: 0 0 10px color-mix(in srgb, var(--peacock-teal) 60%, transparent); transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.intro-when { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); white-space: nowrap; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.intro-actions .btn { min-height: 52px; }
.intro-actions .btn-ghost { background: color-mix(in srgb, var(--obsidian) 60%, transparent); transition: border-color 0.2s, background-color 0.2s; }
.intro-actions .btn-ghost:hover { border-color: var(--accent); background: var(--panel-hover); }
.intro-actions .btn-ghost svg { width: 10px; height: 10px; color: var(--accent); }

/* The bento: four glass tiles on the panel system (site.css .panel: cut corner, teal top line). */
.feat-grid { position: relative; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.feat-cell { display: flex; min-width: 0; }
.feat {
    position: relative; flex: 1; min-width: 0; min-height: 264px; padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 18px;
    color: var(--text); -webkit-tap-highlight-color: transparent; container-type: inline-size;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s, background-color 0.25s;
}
.feat:hover { color: var(--text); }
.feat::before { transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
/* The pointer's light (site.js sets --mx / --my), shown on hover only. */
.feat::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s;
    background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 30%), color-mix(in srgb, var(--peacock-teal) 22%, transparent), transparent 70%);
}
.feat > * { position: relative; z-index: 1; }
a.feat:focus-visible { outline-offset: -3px; }
.feat-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.feat-icon {
    width: 56px; height: 56px; flex: none; display: inline-flex; align-items: center; justify-content: center; color: var(--text);
    border: 1px solid var(--panel-line-top);
    background: linear-gradient(135deg, color-mix(in srgb, var(--peacock-teal) 30%, transparent) 0%, color-mix(in srgb, var(--deep-peacock) 55%, transparent) 100%);
    box-shadow: 0 0 28px color-mix(in srgb, var(--peacock-teal) 26%, transparent), inset 0 1px 0 color-mix(in srgb, var(--bone) 14%, transparent);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
    transition: border-color 0.25s, box-shadow 0.25s;
}
.feat-icon svg { position: relative; width: 26px; height: 26px; }
/* The badges stay still: no sweep or shimmer (owner, 2026-12-04: a premium, calm look). */
/* What makes it work, in one short mono kicker after a teal tick (home.*.kicker; gold on the store). */
.feat-kicker {
    display: inline-flex; align-items: center; gap: 8px; padding-top: 6px; text-align: right;
    font-family: var(--font-mono); font-weight: 700; font-size: 11px; line-height: 1.3; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3);
}
/* No dash in front: the kicker itself carries the accent colour (owner, 2026-12-04). */
.feat-kicker { color: var(--accent-text, var(--accent)); }
.feat-store .feat-kicker { color: var(--premium); }
/* Off: a muted square Soon chip. */
.feat-flag {
    display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border: 1px solid var(--line-overlay);
    font-family: var(--font-mono); font-weight: 700; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-5);
}
.feat-dot { position: relative; width: 7px; height: 7px; flex: none; background: var(--off); }

/* Each tile's visual, between the chip row and the text. */
.feat-visual { flex: 1; display: flex; align-items: flex-end; min-height: 72px; }
.feat-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-family: var(--font-mono); font-weight: 600; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.feat-big {
    font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 900; font-size: clamp(36px, 3.6vw, 52px); line-height: 0.9; letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text); text-transform: none;
}
/* The event has started: the countdown becomes a teal NOW with a pulsing light, and "Starts in"
   steps aside (live.js marks the countdown data-now and its wrapper .has-now). */
.feat-stat.has-now { font-size: 0; }
.feat-stat.has-now .feat-chip { font-size: 12px; }
.feat-big[data-now] { display: inline-flex; align-items: center; gap: 0.22em; text-transform: uppercase; color: var(--accent); letter-spacing: 0.02em; }
.feat-big[data-now]::before { content: ''; width: 0.3em; height: 0.3em; border-radius: 50%; background: var(--accent); animation: feat-now 1.6s ease-in-out infinite; }
@keyframes feat-now { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.7); } }
@media (prefers-reduced-motion: reduce) { .feat-big[data-now]::before { animation: none; } }
/* The tile's own width sets it, so a countdown with days ("6d 23h 59m") still fits its tile. */
@supports (width: 1cqi) {
    .feat-big { font-size: clamp(28px, 13cqi, 52px); }
    .feat-shield .feat-big { font-size: clamp(40px, 22cqi, 76px); } /* a short count: it can run bigger */
}
.feat-chip { padding: 3px 7px; border: 1px solid var(--line-strong); font-weight: 800; font-size: 11px; letter-spacing: 0.14em; color: var(--text); }
/* Store: three rank badges, overlapping, the middle one in front; they fan out on hover. */
.feat-art { position: relative; display: flex; align-items: flex-end; height: 124px; }
.feat-art img { width: 108px; height: 108px; flex: none; object-fit: contain; filter: drop-shadow(0 8px 14px color-mix(in srgb, var(--obsidian) 80%, transparent)); transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
.feat-art img + img { margin-left: -36px; }
.feat-art img:nth-child(2) { z-index: 2; width: 128px; height: 128px; }
.feat-art img:nth-child(1), .feat-art img:nth-child(3) { opacity: 0.92; }
/* Stats: a small rising bar chart, the last bar lit. */
.feat-chart { display: flex; align-items: flex-end; gap: 5px; width: 100%; max-width: 260px; height: 76px; border-bottom: 1px solid var(--line-strong); }
.feat-chart span { flex: 1; height: var(--h); background: linear-gradient(180deg, color-mix(in srgb, var(--peacock-teal) 55%, transparent), color-mix(in srgb, var(--peacock-teal) 14%, transparent)); transform-origin: bottom; }
.feat-chart span:last-child { background: var(--accent); box-shadow: 0 0 14px color-mix(in srgb, var(--peacock-teal) 60%, transparent); }
.feat-text { display: flex; flex-direction: column; gap: 6px; padding-right: 40px; }
.feat-title { margin: 0; font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; font-size: 17px; line-height: 1.15; letter-spacing: -0.005em; text-transform: uppercase; }
.feat-desc { font-size: 14px; line-height: 1.45; color: var(--text-3); }
.feat-go {
    position: absolute; right: 18px; bottom: 20px; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line-strong); color: var(--text); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.feat-go svg { width: 12px; height: 12px; }
/* The store tile is the one place gold belongs: its icon light and its edge on hover. */
.feat-store .feat-icon { box-shadow: 0 0 28px color-mix(in srgb, var(--argus-gold) 22%, transparent), inset 0 1px 0 color-mix(in srgb, var(--bone) 14%, transparent); }
.feat-store::before { background: var(--premium); }
.feat.is-soon .feat-icon { box-shadow: none; opacity: 0.7; }

/* Tap (phones) and hover (a mouse only): the tile lifts, the top line runs the full width, the light
   follows the pointer, the arrow nudges, the store badges fan out. */
a.feat:active { background-color: var(--panel-hover); border-color: var(--panel-line-top); }
a.feat:active .feat-go { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
@media (hover: hover) {
    .feat:hover { transform: translateY(-3px); border-color: var(--panel-line-top); }
    .feat:hover::before { width: calc(100% + 2px); }
    .feat:hover::after { opacity: 1; }
    .feat:hover .feat-icon { border-color: var(--accent); box-shadow: 0 0 36px color-mix(in srgb, var(--peacock-teal) 42%, transparent), inset 0 1px 0 color-mix(in srgb, var(--bone) 18%, transparent); }
    .feat-store:hover .feat-icon { border-color: var(--premium); box-shadow: 0 0 36px color-mix(in srgb, var(--argus-gold) 32%, transparent); }
    .feat:hover .feat-go { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
    .feat-store:hover .feat-go { background: var(--premium); border-color: var(--premium); color: var(--bg); }
    .feat-store:hover .feat-art img:nth-child(1) { transform: translateX(-8px) rotate(-4deg); }
    .feat-store:hover .feat-art img:nth-child(2) { transform: translateY(-6px) scale(1.04); }
    .feat-store:hover .feat-art img:nth-child(3) { transform: translateX(8px) rotate(4deg); }
}

/* Reveal (site.js adds .reveal-ready, then .is-revealed in view): the left column, then the tiles
   one by one, fade up; the chart bars grow. Nothing is hidden without script or with reduced motion. */
@media (prefers-reduced-motion: no-preference) {
    .reveal-ready .rv { opacity: 0; transform: translateY(22px); }
    .reveal-ready.is-revealed .rv {
        opacity: 1; transform: none;
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
        transition-delay: calc(var(--i, 0) * 90ms);
    }
    .reveal-ready .feat-chart span { transform: scaleY(0); }
    .reveal-ready.is-revealed .feat-chart span { transform: none; transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: calc(500ms + var(--b) * 40ms); }
}
@media (prefers-reduced-motion: reduce) {
    .feat, .feat::before, .feat::after, .feat-go, .feat-art img, .intro-meter > span { transition: none; }
    .feat:hover { transform: none; }
    .feat-icon::before { animation: none; display: none; }
}

@media (max-width: 1100px) {
    .intro-grid { grid-template-columns: minmax(0, 1fr); gap: 40px !important; }
    .intro-text { max-width: 720px; }
}
/* Phones: the same four tiles as a dense 2x2: a small badge with the arrow across from it, the
   visual filling the tile's width, then the kicker over the title and its line. */
@media (max-width: 640px) {
    .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    /* Every tile has the same skeleton, so the rows line up: the badge, a fixed-height visual band,
       then the kicker, title and line from the same height in every tile. */
    .feat { min-height: 0; padding: 14px 14px 16px; gap: 12px; display: grid !important; grid-template-rows: 38px 104px auto auto; align-content: start; }
    .feat-top { display: contents; }
    .feat-icon { order: 0; width: 38px; height: 38px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%); }
    .feat-icon svg { width: 19px; height: 19px; }
    .feat-visual { order: 1; min-height: 0; height: 104px; align-items: center; overflow: visible; }
    .feat-kicker, .feat-flag { order: 2; align-self: flex-start; margin-bottom: -4px; }
    .feat-kicker { padding-top: 0; gap: 6px; font-size: 10px; letter-spacing: 0.1em; text-align: left; }
    .feat-flag { padding: 3px 7px; font-size: 10px; gap: 6px; }
    .feat-text { order: 3; padding-right: 0; gap: 4px; }
    .feat-title { font-size: 13px; line-height: 1.2; overflow-wrap: break-word; }
    .feat-desc { font-size: 12px; line-height: 1.4; }
    .feat-go { display: none; } /* the whole tile is the link; no arrow box on phones */
    .feat-stat { gap: 5px; font-size: 10px; letter-spacing: 0.08em; }
    .feat-chip { padding: 2px 6px; font-size: 10px; }
    .feat-big { white-space: normal; }
    .feat-shield .feat-big { font-size: clamp(38px, 26cqi, 52px); }
    .feat-store .feat-visual, .feat-stats .feat-visual { justify-content: center; }
    .feat-art { width: 100%; height: auto; justify-content: center; }
    .feat-art img { flex: none; width: 42%; height: auto; aspect-ratio: 1; }
    .feat-art img:nth-child(2) { width: 52%; height: auto; }
    .feat-art img + img { margin-left: -16%; }
    .feat-chart { height: 54px; max-width: none; gap: 3px; }
    .intro-stat { padding-right: 18px; }
    .intro-stat + .intro-stat { padding-left: 18px; }
    .intro-actions { width: 100%; }
    .intro-actions .btn { flex: 1 1 auto; justify-content: center; }
    .intro-line { letter-spacing: 0.1em; font-size: 11px; }
    .intro-h { font-size: clamp(30px, calc(100cqi / (var(--hl, 10) * 0.95)), 58px); }
}
@media (max-width: 640px) {
    @supports (width: 1cqi) {
        .feat-big { font-size: clamp(20px, 16cqi, 30px); }
        .feat-shield .feat-big { font-size: clamp(34px, 34cqi, 58px); }
    }
}

/* servers: the shared server block, in servers.css */

/* ---------------------------------------------------------------- events */

.event-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.event-card { position: relative; flex: 1 1 460px; height: 420px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); } /* solid: no page scene under the video */
.event-shade { position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 30%, transparent) 0%, color-mix(in srgb, var(--bg) 94%, transparent) 100%); }
.event-body { position: relative; height: 100%; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.event-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; font-size: 12px; }
.event-kicker { background: color-mix(in srgb, var(--bg) 70%, transparent); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------------------------------------------------------------- leaderboard */

.board-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.board { flex: 1 1 320px; }
.board-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--panel-line); }
.board-title { font-weight: 800; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.board-rows { margin: 0; padding: 0; list-style: none; }
.board-rows li { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--panel-line); font-size: 14px; transition: background-color 0.2s; }
.board-rows li:last-child { border-bottom: 0; }
.board-rows li:hover { background-color: var(--panel-hover); }
.board-rows .rank { width: 22px; font-weight: 800; font-size: 12px; color: var(--text-5); font-variant-numeric: tabular-nums; }
.board-rows li:first-child .rank { color: var(--accent-text); }
.board-rows .who { flex: 1; font-weight: 600; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-rows .val { font-weight: 800; color: var(--text-2); font-variant-numeric: tabular-nums; }
.board-rows.is-empty .who, .board-rows.is-empty .val { color: var(--text-5); }

/* ---------------------------------------------------------------- store teaser and discord */

.store-teaser { position: relative; overflow: hidden; background: var(--bg); } /* solid: no page scene under the video */
.store-shade { position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 86%, transparent); }
.store-content { position: relative; }
.store-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.store-card { padding: 20px; min-height: 140px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; color: var(--text); position: relative; overflow: hidden; }
.store-name { font-weight: 800; font-size: 16px; }
/* Product art: the card's hero, over a soft gold glow (gold is the store's accent). */
.store-card.has-art { padding-top: 12px; min-height: 300px; }
.store-art { position: relative; display: grid; place-items: center; height: 170px; margin: 0 -8px; }
.store-art::before { content: ''; position: absolute; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--premium) 34%, transparent) 0%, transparent 68%); filter: blur(6px); opacity: 0.75; transition: opacity 0.25s ease, transform 0.35s ease; }
.store-art img { position: relative; width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 10px 14px color-mix(in srgb, var(--bg) 70%, transparent)); transition: transform 0.35s cubic-bezier(.2,.7,.2,1); }
.store-info { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.store-price { font-family: var(--font-mono); font-weight: 700; font-size: 15px; color: var(--premium); white-space: nowrap; }
.store-card .link-accent { display: inline-flex; align-items: center; gap: 6px; }
@media (hover: hover) {
    .store-card { transition: transform 0.25s ease, border-color 0.25s ease; }
    .store-card:hover { transform: translateY(-3px); }
    .store-card:hover .store-art img { transform: scale(1.07) rotate(-3deg); }
    .store-card:hover .store-art::before { opacity: 1; transform: scale(1.12); }
}
.store-card:active .store-art img { transform: scale(0.97); }
@media (prefers-reduced-motion: reduce) {
    .store-card, .store-art img, .store-art::before { transition: none !important; }
    .store-card:hover, .store-card:hover .store-art img { transform: none !important; }
}
/* Discord: a full-bleed band on the brand kit's invite art, deep peacock light from the right. */
.discord-band { position: relative; overflow: hidden; background: var(--obsidian); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.discord-band-bg {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, var(--obsidian) 0%, color-mix(in srgb, var(--obsidian) 82%, transparent) 45%, color-mix(in srgb, var(--deep-peacock) 55%, transparent) 100%),
        url("/Console/assets/brand/discord/argus-invite-bg-1920x1080.png") right center / cover no-repeat;
}
.discord-band::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); z-index: 1; }
.discord-row { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: row !important; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 36px; }
.discord-feats { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.discord-feats li {
    padding: 8px 14px; border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--obsidian) 65%, transparent);
    font-weight: 800; font-size: 13px; letter-spacing: 0.04em; color: var(--text);
}
.discord-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.discord-mark { width: 88px; height: 88px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--deep-peacock) 50%, var(--obsidian)); color: var(--text); }
.discord-mark svg { width: 44px; height: 44px; }
.discord-soon { font-weight: 800; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.discord-row .titles { display: flex; flex-direction: column; gap: 14px; }

@media (max-width: 900px) {
    /* still the whole first screen (100svh); the header is two rows here, so the content clears it */
    .hero-content { padding-top: 128px; padding-bottom: 40px; }
    .hero-shade {
        background:
            linear-gradient(90deg, color-mix(in srgb, var(--bg) 80%, transparent) 0%, color-mix(in srgb, var(--bg) 60%, transparent) 100%),
            linear-gradient(180deg, color-mix(in srgb, var(--bg) 70%, transparent) 0%, transparent 25%, transparent 60%, color-mix(in srgb, var(--bg) 85%, transparent) 100%);
    }
    .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
    .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .store-card.has-art { min-height: 0; padding: 10px 12px 14px; gap: 8px; }
    .store-art { height: 118px; margin: 0; }
    .store-art::before { width: 104px; height: 104px; }
    .store-art img { width: 104px; height: 104px; }
    .store-info { flex-direction: column; align-items: flex-start; gap: 2px; }
    .store-name { font-size: 14px; line-height: 1.25; }
    .store-price { font-size: 14px; }
    .store-card .link-accent { font-size: 11px; }
    .event-card { height: 340px; }
    .hero-tagline { font-size: 11px; letter-spacing: 0.2em; }
}

/* The header is fixed over Home: anchor jumps (#servers, #join, ...) stop below it. */
.home [id] { scroll-margin-top: calc(var(--header-h) + 24px); }
@media (max-width: 900px) { .home [id] { scroll-margin-top: 112px; } }

/* Phones, as on vitalrust.com: the content sits near the top, the logo runs almost edge to edge. */
@media (max-width: 760px) {
    .hero-content { justify-content: flex-start; padding-top: calc(var(--header-h) + 72px); gap: 16px; }
    .hero-wordmark { width: calc(100vw - 2 * var(--gutter)); }
    .hero-tagline { font-size: 13px; letter-spacing: 0.26em; }
    .btn-play { --slant: 18px; min-height: 58px; font-size: 19px; padding-left: 26px; }
    /* Discord band: the invite art is 16:9, so cover on a tall phone band shows only a sliver of the
       S. Phones get the whole wordmark across the band behind the heading instead, bleeding a little
       past both edges, dimmed the way the desktop art is (darker left, peacock light from the right). */
    .discord-band-bg {
        background:
            linear-gradient(90deg, color-mix(in srgb, var(--obsidian) 72%, transparent) 0%, color-mix(in srgb, var(--obsidian) 55%, transparent) 55%, color-mix(in srgb, var(--deep-peacock) 45%, transparent) 100%),
            url("/Console/assets/brand/logo/argus-wordmark-teal.svg") 50% 38% / 114% auto no-repeat,
            var(--obsidian);
    }
}
