/* ═══════════════════════════════════════════════════════════════════
   LIZARDFORGE GAMING — FORGE DESIGN SYSTEM
   ═══════════════════════════════════════════════════════════════════ */

/* ─── FONT GLYPH PATCH ───────────────────────────────────────────────
   Google's Cinzel / Rajdhani subsets declare coverage of the General
   Punctuation block (U+2000–206F) but their files lack several glyphs —
   em/en dashes, arrows, curly quotes — so Chrome renders a .notdef box
   ("tofu", □) instead of falling back. Re-declare just those codepoints
   under the SAME family names, sourced from a local system font that has
   them. These load after the Google stylesheet, so they win for the
   overlapping range and every dash/arrow renders correctly. */
@font-face {
    font-family: 'Rajdhani';
    font-style: normal;
    font-weight: 100 900;
    src: local('Segoe UI'), local('Arial'), local('Helvetica Neue'), local('Roboto'), local('Noto Sans'), local('DejaVu Sans');
    unicode-range: U+00A0, U+00A9, U+00B7, U+00D7, U+2010-2027, U+2190-2199;
}
@font-face {
    font-family: 'Rajdhani';
    font-style: italic;
    font-weight: 100 900;
    src: local('Segoe UI'), local('Arial'), local('Helvetica Neue'), local('Roboto'), local('Noto Sans'), local('DejaVu Sans');
    unicode-range: U+00A0, U+00A9, U+00B7, U+00D7, U+2010-2027, U+2190-2199;
}
@font-face {
    font-family: 'Cinzel';
    font-style: normal;
    font-weight: 100 900;
    src: local('Georgia'), local('Times New Roman'), local('Segoe UI'), local('Arial'), local('Roboto'), local('DejaVu Serif');
    unicode-range: U+00A0, U+00A9, U+00B7, U+00D7, U+2010-2027, U+2190-2199;
}
@font-face {
    font-family: 'Cinzel Decorative';
    font-style: normal;
    font-weight: 100 900;
    src: local('Georgia'), local('Times New Roman'), local('Segoe UI'), local('Arial'), local('Roboto'), local('DejaVu Serif');
    unicode-range: U+00A0, U+00A9, U+00B7, U+00D7, U+2010-2027, U+2190-2199;
}


/* ─── VARIABLES ──────────────────────────────────────────────────── */
:root {
    /* Backgrounds */
    --bg-void:        #060606;
    --bg-deep:        #0a0806;
    --bg-iron:        #0e0c0a;
    --bg-warm:        #120d07;
    --bg-panel:       rgba(14, 10, 6, 0.85);
    --bg-glass:       rgba(20, 14, 8, 0.6);

    /* Ember palette */
    --ember-core:     #ff6b1a;
    --ember-glow:     #ff8c35;
    --ember-hot:      #ffaa55;
    --ember-dim:      #c8581a;

    /* Gold / molten */
    --gold-molten:    #c8762a;
    --gold-bright:    #e8a050;
    --gold-dim:       #8a5018;

    /* Iron / silver */
    --iron-bright:    #c0c8d0;
    --iron-mid:       #8a9099;
    --iron-dark:      #4a5058;
    --iron-shadow:    #1e2228;

    /* Text */
    --text-primary:   #e8e0d0;
    --text-secondary: #9a9088;
    --text-muted:     #5a5248;
    --text-accent:    #ff8c35;

    /* Glows */
    --glow-ember-sm:  0 0 12px rgba(255, 107, 26, 0.5);
    --glow-ember-md:  0 0 24px rgba(255, 107, 26, 0.4), 0 0 60px rgba(255, 107, 26, 0.2);
    --glow-ember-lg:  0 0 40px rgba(255, 107, 26, 0.5), 0 0 100px rgba(255, 107, 26, 0.25), 0 0 200px rgba(200, 118, 42, 0.15);
    --glow-gold-sm:   0 0 12px rgba(200, 118, 42, 0.4);
    --glow-gold-md:   0 0 30px rgba(200, 118, 42, 0.35), 0 0 80px rgba(200, 118, 42, 0.15);

    /* Typography */
    --font-display:   'Cinzel Decorative', 'Cinzel', serif;
    --font-heading:   'Cinzel', serif;
    --font-body:      'Rajdhani', 'Segoe UI', sans-serif;

    /* Spacing scale */
    --space-xs:  0.25rem;
    --space-sm:  0.5rem;
    --space-md:  1rem;
    --space-lg:  2rem;
    --space-xl:  4rem;
    --space-2xl: 8rem;

    /* Borders */
    --border-ember:   1px solid rgba(255, 107, 26, 0.3);
    --border-gold:    1px solid rgba(200, 118, 42, 0.25);
    --border-iron:    1px solid rgba(138, 144, 153, 0.12);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-mid:  0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

    /* Layout */
    --max-width: 1280px;
    --nav-height: 72px;
}


/* ─── RESET ──────────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-void);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul[role="list"] { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

.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;
}


/* ─── NAVIGATION ─────────────────────────────────────────────────── */
.forge-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--nav-height);
    transition: background var(--transition-mid), border-color var(--transition-mid), box-shadow var(--transition-mid);
    border-bottom: 1px solid transparent;
}

.forge-nav.scrolled {
    background: rgba(6, 6, 6, 0.92);
    backdrop-filter: blur(16px) saturate(1.5);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
    border-bottom-color: rgba(200, 118, 42, 0.2);
    box-shadow: 0 1px 30px rgba(0, 0, 0, 0.5);
}

.forge-nav__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

/* Brand */
.forge-nav__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.forge-nav__brand-icon {
    width: 36px;
    height: 36px;
    transition: filter var(--transition-mid);
}

.forge-nav__brand:hover .forge-nav__brand-icon {
    filter: drop-shadow(0 0 8px rgba(255, 107, 26, 0.7));
}

.forge-nav__brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.forge-nav__brand-primary {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-primary);
}

.forge-nav__brand-secondary {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--ember-core);
    text-transform: uppercase;
    margin-top: 1px;
}

/* Nav links */
.forge-nav__links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    list-style: none;
}

.forge-nav__link {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--iron-mid);
    position: relative;
    padding: 0.25rem 0;
    transition: color var(--transition-fast);
}

.forge-nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 1px;
    background: var(--ember-core);
    box-shadow: var(--glow-ember-sm);
    transition: width var(--transition-mid);
}

.forge-nav__link:hover {
    color: var(--text-primary);
}
.forge-nav__link:hover::after { width: 100%; }

.forge-nav__link--cta {
    padding: 0.45rem 1.1rem;
    border: var(--border-ember);
    color: var(--ember-glow);
    border-radius: 2px;
    transition: color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}
.forge-nav__link--cta::after { display: none; }
.forge-nav__link--cta:hover {
    color: var(--text-primary);
    background: rgba(255, 107, 26, 0.12);
    box-shadow: var(--glow-ember-sm);
}

/* Mobile toggle */
.forge-nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    width: 36px;
}
.forge-nav__toggle span {
    display: block;
    height: 2px;
    background: var(--iron-mid);
    border-radius: 2px;
    transition: transform var(--transition-mid), opacity var(--transition-mid), background var(--transition-fast);
}
.forge-nav__toggle:hover span { background: var(--ember-glow); }


/* ─── HERO ───────────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-void);
}

/* Canvas for ember particles — covers full hero */
.hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* Ambient background glow — the warm forge light that fills the void */
.hero__ambient-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 900px;
    border-radius: 50%;
    background: radial-gradient(
        ellipse at center,
        rgba(200, 118, 42, 0.08) 0%,
        rgba(255, 107, 26, 0.05) 30%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
}

/* Composition wrapper — everything that parallaxes */
.hero__composition {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: calc(var(--nav-height) + var(--space-xl)) var(--space-lg) var(--space-2xl);
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    align-items: center;
    gap: var(--space-xl);
    min-height: 100svh;
}

/* Background depth layer — the forge furnace light */
.hero__forge-light {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(
        ellipse at center,
        rgba(200, 118, 42, 0.22) 0%,
        rgba(255, 107, 26, 0.12) 35%,
        rgba(150, 60, 10, 0.05) 60%,
        transparent 80%
    );
    pointer-events: none;
    z-index: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

/* Image wrap — holds the dragon image and its glow layer */
.hero__image-wrap {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.hero__image-glow {
    position: absolute;
    inset: -15%;
    border-radius: 50%;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 107, 26, 0.35) 0%,
        rgba(200, 118, 42, 0.2)  25%,
        rgba(150, 60, 10, 0.08)  55%,
        transparent 80%
    );
    animation: forge-pulse 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    filter: blur(8px);
}

@keyframes forge-pulse {
    0%, 100% { opacity: 0.85; transform: scale(1); }
    50%       { opacity: 1;    transform: scale(1.05); }
}

.hero__dragon-img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 580px;
    max-height: 75vh;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(255, 107, 26, 0.45))
            drop-shadow(0 0 80px rgba(200, 118, 42, 0.25));
    animation: dragon-float 8s ease-in-out infinite;
}

@keyframes dragon-float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-12px); }
}

.hero__image-vignette {
    display: none;
}

/* Text layer */
.hero__text-layer {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    z-index: 4;
}

.hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.4em;
    color: var(--ember-core);
    text-transform: uppercase;
}

.hero__eyebrow-line {
    flex: 1;
    height: 1px;
    max-width: 50px;
    background: linear-gradient(90deg, transparent, var(--ember-core));
}
.hero__eyebrow-line:last-child {
    background: linear-gradient(90deg, var(--ember-core), transparent);
}

.hero__title {
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 1;
    display: flex;
    flex-direction: column;
    gap: 0.05em;
}

/* Blazor's <FocusOnNavigate> programmatically focuses the page <h1> on load/
   navigation. Suppress the browser focus ring it would otherwise draw around
   the title (the unwanted white box). Focus still moves for accessibility. */
h1[tabindex="-1"]:focus,
h1[tabindex="-1"]:focus-visible {
    outline: none;
}

.hero__title-main {
    font-size: clamp(2.8rem, 5vw, 5.5rem);
    color: var(--text-primary);
    letter-spacing: 0.06em;
}

.hero__title-divider {
    display: block;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--ember-core), var(--gold-molten), transparent);
    margin: 0.1em 0;
    box-shadow: var(--glow-ember-sm);
}

.hero__title-sub {
    font-size: clamp(1.5rem, 2.5vw, 2.8rem);
    color: var(--ember-core);
    letter-spacing: 0.25em;
}

.hero__tagline {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.5vw, 1.2rem);
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    font-style: italic;
    margin-top: 0.25rem;
}

.hero__cta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-top: var(--space-md);
}

/* Scroll hint */
.hero__scroll-hint {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 5;
    opacity: 0.5;
    animation: fade-in-up 1s 1.5s ease both;
}

.hero__scroll-label {
    font-family: var(--font-body);
    font-size: 0.6rem;
    letter-spacing: 0.35em;
    color: var(--iron-mid);
    text-transform: uppercase;
}

.hero__scroll-track {
    width: 1px;
    height: 50px;
    background: rgba(138, 144, 153, 0.2);
    position: relative;
    overflow: hidden;
}

.hero__scroll-runner {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 50%;
    background: linear-gradient(to bottom, transparent, var(--ember-core));
    animation: scroll-run 1.8s ease-in-out infinite;
}

@keyframes scroll-run {
    0%   { top: -50%; }
    100% { top: 150%; }
}


/* ─── BUTTONS ────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border-radius: 2px;
    transition:
        background var(--transition-mid),
        color var(--transition-mid),
        box-shadow var(--transition-mid),
        transform var(--transition-fast),
        border-color var(--transition-mid);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    transition: background var(--transition-fast);
}
.btn:hover::before { background: rgba(255, 255, 255, 0.03); }

.btn:active { transform: scale(0.98); }

/* Primary */
.btn--primary {
    background: linear-gradient(135deg, var(--ember-core) 0%, var(--gold-molten) 100%);
    color: var(--bg-void);
    border: 1px solid transparent;
}
.btn--primary:hover {
    box-shadow: var(--glow-ember-md);
    background: linear-gradient(135deg, var(--ember-glow) 0%, var(--gold-bright) 100%);
}

/* Glow variant */
.btn--glow {
    box-shadow: 0 0 0 rgba(255, 107, 26, 0);
    transition: box-shadow 0.4s ease, background var(--transition-mid), transform var(--transition-fast);
}
.btn--glow:hover {
    box-shadow: 0 0 20px rgba(255, 107, 26, 0.5), 0 0 60px rgba(255, 107, 26, 0.2);
}

/* Ghost */
.btn--ghost {
    background: transparent;
    color: var(--text-secondary);
    border: var(--border-iron);
}
.btn--ghost:hover {
    color: var(--text-primary);
    border-color: rgba(200, 118, 42, 0.4);
    box-shadow: var(--glow-gold-sm);
}

/* Small */
.btn--sm {
    padding: 0.5rem 1.1rem;
    font-size: 0.72rem;
}

.btn__inner { position: relative; z-index: 1; }


/* ─── FORGE DIVIDER ──────────────────────────────────────────────── */
.forge-divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-xl) auto;
    max-width: 500px;
    padding: 0 var(--space-lg);
}

.forge-divider__line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200, 118, 42, 0.4), transparent);
}

.forge-divider__emblem {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(255, 107, 26, 0.4));
    animation: emblem-spin 20s linear infinite;
}

.forge-divider__ember {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ember-core);
    box-shadow: var(--glow-ember-sm);
    flex-shrink: 0;
    animation: ember-blink 2s ease-in-out infinite;
}

.forge-divider--sm { max-width: 280px; margin: var(--space-lg) auto; }

@keyframes emblem-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes ember-blink {
    0%, 100% { opacity: 0.6; box-shadow: var(--glow-ember-sm); }
    50%       { opacity: 1;   box-shadow: var(--glow-ember-md); }
}


/* ─── SECTIONS ───────────────────────────────────────────────────── */
.section {
    position: relative;
    padding: var(--space-2xl) 0;
}

.section__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section__header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section__eyebrow {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--ember-core);
    margin-bottom: var(--space-sm);
}

.section__heading {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.04em;
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

.section__lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.section__body {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: var(--space-md);
}

.section__sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
    text-wrap: balance;
}


/* ─── ABOUT SECTION ──────────────────────────────────────────────── */
.section--about {
    background: linear-gradient(180deg, var(--bg-void) 0%, var(--bg-warm) 50%, var(--bg-void) 100%);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.about__text-block .section__heading { text-align: left; }

.about__stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.stat-card {
    background: var(--bg-glass);
    border: var(--border-gold);
    border-radius: 4px;
    padding: var(--space-lg);
    text-align: center;
    backdrop-filter: blur(8px);
    transition: border-color var(--transition-mid), box-shadow var(--transition-mid);
}

.stat-card:hover {
    border-color: rgba(200, 118, 42, 0.5);
    box-shadow: var(--glow-gold-sm);
}

.stat-card__value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ember-core);
    line-height: 1;
    margin-bottom: 0.4rem;
    text-shadow: var(--glow-ember-sm);
}

.stat-card__label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-transform: uppercase;
}


/* ─── FEATURES SECTION ───────────────────────────────────────────── */
.section--features {
    background: var(--bg-void);
    border-top: var(--border-iron);
    border-bottom: var(--border-iron);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.feature-card {
    position: relative;
    background: var(--bg-glass);
    border: var(--border-iron);
    border-radius: 4px;
    padding: var(--space-xl) var(--space-lg);
    overflow: hidden;
    transition: border-color var(--transition-mid), box-shadow var(--transition-mid), transform var(--transition-mid);
}

.feature-card:hover {
    border-color: rgba(255, 107, 26, 0.25);
    box-shadow: 0 4px 30px rgba(0,0,0,0.4), inset 0 0 40px rgba(255,107,26,0.04);
    transform: translateY(-4px);
}

.feature-card--centre {
    border-color: rgba(200, 118, 42, 0.2);
    background: rgba(20, 12, 4, 0.8);
}
.feature-card--centre:hover {
    border-color: rgba(255, 107, 26, 0.4);
    box-shadow: var(--glow-gold-sm), 0 4px 30px rgba(0,0,0,0.4);
}

.feature-card__accent {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ember-core), transparent);
    opacity: 0;
    transition: opacity var(--transition-mid);
}
.feature-card:hover .feature-card__accent { opacity: 1; }

.feature-card__icon {
    width: 56px;
    height: 56px;
    margin-bottom: var(--space-lg);
    filter: drop-shadow(0 0 6px rgba(255, 107, 26, 0.35));
}

.feature-card__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.06em;
    margin-bottom: var(--space-md);
}

.feature-card__body {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
}


/* ─── SHOWCASE SECTION ───────────────────────────────────────────── */
.section--showcase {
    background: linear-gradient(180deg, var(--bg-void) 0%, var(--bg-iron) 50%, var(--bg-void) 100%);
}

.showcase__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: minmax(340px, auto);
    gap: var(--space-md);
}

/* Two active projects, side by side */
.showcase__grid--projects {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(360px, auto);
}

.showcase-card {
    border-radius: 4px;
    overflow: hidden;
    transition: transform var(--transition-mid), box-shadow var(--transition-mid);
}
.showcase-card:hover { transform: translateY(-4px); }

.showcase-card__inner {
    height: 100%;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

/* Featured card */
.showcase-card--featured .showcase-card__inner {
    border: 1px solid rgba(200, 118, 42, 0.3);
    background: linear-gradient(135deg, var(--bg-warm) 0%, rgba(22, 14, 7, 0.95) 100%);
}

.showcase-card--featured:hover {
    box-shadow: var(--glow-gold-md);
}

.showcase-card__bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 75% 50%, rgba(200, 118, 42, 0.12), transparent 60%);
    pointer-events: none;
}

.showcase-card__content {
    position: relative;
    z-index: 1;
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    gap: var(--space-md);
}

.showcase-card__tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ember-core);
    border: var(--border-ember);
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
    align-self: flex-start;
    box-shadow: var(--glow-ember-sm);
}

.showcase-card__title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    line-height: 1.1;
}

.showcase-card__body {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 42ch;
}

/* Placeholder cards */
.showcase-card--placeholder .showcase-card__inner {
    border: var(--border-iron);
    background: rgba(14, 12, 10, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    min-height: 200px;
}

.showcase-card--placeholder:hover .showcase-card__inner {
    border-color: rgba(200, 118, 42, 0.2);
}

.showcase-card__placeholder-icon {
    width: 56px;
    height: 56px;
    opacity: 0.4;
    transition: opacity var(--transition-mid);
}
.showcase-card--placeholder:hover .showcase-card__placeholder-icon { opacity: 0.7; }

.showcase-card__placeholder-label {
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-transform: uppercase;
}


/* ─── CTA SECTION ────────────────────────────────────────────────── */
.section--cta {
    position: relative;
    overflow: hidden;
    background: var(--bg-void);
    text-align: center;
}

.cta__forge-glow {
    position: absolute;
    bottom: -200px; left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(255, 107, 26, 0.08), transparent 70%);
    pointer-events: none;
    animation: cta-glow-breathe 6s ease-in-out infinite;
}

@keyframes cta-glow-breathe {
    0%, 100% { opacity: 0.6; }
    50%       { opacity: 1; }
}

.cta__block {
    max-width: 600px;
    margin: 0 auto;
}

.cta__heading {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.03em;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.cta__heading-accent {
    color: var(--ember-core);
    text-shadow: var(--glow-ember-sm);
}

.cta__body {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.cta__discord-btn { gap: 0.6rem; }
.cta__discord-icon { flex-shrink: 0; }


/* ─── FOOTER ─────────────────────────────────────────────────────── */
.forge-footer {
    background: var(--bg-iron);
    border-top: var(--border-gold);
    padding: var(--space-xl) 0;
}

.forge-footer__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--space-xl);
}

.forge-footer__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.forge-footer__logo {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 6px rgba(200, 118, 42, 0.4));
}

.forge-footer__brand-name {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.forge-footer__brand-sub {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.forge-footer__nav {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
}

.forge-footer__link {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}
.forge-footer__link:hover { color: var(--ember-glow); }

.forge-footer__copy {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.forge-footer__tagline {
    font-style: italic;
    color: var(--gold-dim);
    letter-spacing: 0.06em;
}


/* ─── ERROR / 404 ────────────────────────────────────────────────── */
.not-found,
.error-page {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: var(--space-lg);
    padding: var(--space-2xl) var(--space-lg);
}
.not-found h1, .error-page h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--text-primary);
}
.not-found p, .error-page p { color: var(--text-secondary); }


/* ─── SCROLL REVEAL SYSTEM ───────────────────────────────────────── */
[data-reveal] {
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal="fade-up"] { transform: translateY(30px); }
[data-reveal="fade-in"] { transform: translateY(0); }
[data-reveal="fade-left"] { transform: translateX(-30px); }
[data-reveal="fade-right"] { transform: translateX(30px); }

[data-reveal].revealed {
    opacity: 1;
    transform: translate(0, 0) !important;
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ─── PROJECT DETAIL PAGES ───────────────────────────────────────── */
.project-page {
    background: var(--bg-void);
}

/* Back link bar — sits below the fixed nav */
.project-back-bar {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: calc(var(--nav-height) + var(--space-lg)) var(--space-lg) 0;
}

.project-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--iron-mid);
    transition: color var(--transition-fast);
}
.project-back:hover { color: var(--ember-glow); }
.project-back__arrow { transition: transform var(--transition-fast); display: inline-block; }
.project-back:hover .project-back__arrow { transform: translateX(-3px); }

/* Hero band */
.project-hero {
    position: relative;
    overflow: hidden;
    padding: var(--space-xl) 0 var(--space-2xl);
    text-align: center;
    border-bottom: var(--border-iron);
}

.project-hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

.project-hero__glow {
    position: absolute;
    top: 35%; left: 50%;
    transform: translate(-50%, -50%);
    width: 720px;
    height: 720px;
    max-width: 110%;
    border-radius: 50%;
    background: radial-gradient(
        ellipse at center,
        rgba(200, 118, 42, 0.14) 0%,
        rgba(255, 107, 26, 0.06) 35%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
}

.project-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.project-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: 0.04em;
    line-height: 1.05;
}

.project-hero__tagline {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    font-weight: 300;
    font-style: italic;
    color: var(--text-secondary);
    max-width: 54ch;
    line-height: 1.6;
    text-wrap: balance;
}

/* Body sections */
.project-section {
    position: relative;
    padding: var(--space-xl) 0;
}
.project-section + .project-section {
    border-top: var(--border-iron);
}

.project-section__container {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.project-section__heading {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.04em;
    line-height: 1.15;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}
.project-section__heading::before {
    content: '';
    width: 28px;
    height: 2px;
    flex-shrink: 0;
    background: linear-gradient(90deg, var(--ember-core), transparent);
    box-shadow: var(--glow-ember-sm);
}

.project-section__body {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}
.project-section__body:last-child { margin-bottom: 0; }
.project-section__body strong { color: var(--text-primary); font-weight: 600; }

/* System / detail cards */
.project-systems {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.project-syscard {
    background: var(--bg-glass);
    border: var(--border-iron);
    border-radius: 4px;
    padding: var(--space-lg);
    transition: border-color var(--transition-mid), box-shadow var(--transition-mid), transform var(--transition-mid);
}
.project-syscard:hover {
    border-color: rgba(255, 107, 26, 0.25);
    box-shadow: 0 4px 30px rgba(0,0,0,0.4), inset 0 0 40px rgba(255,107,26,0.04);
    transform: translateY(-3px);
}

.project-syscard__title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.04em;
    margin-bottom: var(--space-sm);
}

.project-syscard__body {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Status pill */
.project-status {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border: var(--border-ember);
    border-radius: 2px;
    padding: 0.45rem 1rem;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--ember-glow);
    box-shadow: var(--glow-ember-sm);
}
.project-status__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ember-core);
    box-shadow: var(--glow-ember-sm);
    animation: ember-blink 2s ease-in-out infinite;
}

/* Closing nav band */
.project-foot {
    text-align: center;
    padding: var(--space-xl) 0 var(--space-2xl);
    border-top: var(--border-iron);
}
.project-foot__label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--ember-core);
    margin-bottom: var(--space-md);
}


/* ─── PROJECT IMAGE SHOWCASE — in-game plaque frames ─────────────── */
.project-image-showcase__hero {
    margin: 0 0 var(--space-md);
}

/* Framed bronze plaque shared by the hero panel and the support cards */
.project-image-card,
.project-image-showcase__hero {
    position: relative;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(196, 157, 92, 0.42);
    border-radius: 10px;
    background:
        radial-gradient(circle at 50% 0%, rgba(196, 157, 92, 0.10), transparent 45%),
        linear-gradient(180deg, rgba(20, 17, 13, 0.96), rgba(7, 7, 6, 0.98));
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.45),
        inset 0 0 0 1px rgba(255, 232, 180, 0.06),
        inset 0 0 32px rgba(0, 0, 0, 0.55);
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

/* Subtle bronze corner ticks (top-left / bottom-right) */
.project-image-card::before,
.project-image-card::after {
    content: "";
    position: absolute;
    z-index: 3;
    width: 44px;
    height: 44px;
    pointer-events: none;
    opacity: 0.75;
}
.project-image-card::before {
    left: 10px;
    top: 10px;
    border-left: 1px solid rgba(218, 178, 105, 0.65);
    border-top: 1px solid rgba(218, 178, 105, 0.65);
}
.project-image-card::after {
    right: 10px;
    bottom: 10px;
    border-right: 1px solid rgba(218, 178, 105, 0.45);
    border-bottom: 1px solid rgba(218, 178, 105, 0.45);
}

/* Hover: very subtle lift + warmer glow */
.project-image-card:hover,
.project-image-showcase__hero:hover {
    transform: translateY(-2px);
    border-color: rgba(226, 184, 106, 0.68);
    box-shadow:
        0 22px 48px rgba(0, 0, 0, 0.52),
        0 0 22px rgba(196, 157, 92, 0.12),
        inset 0 0 0 1px rgba(255, 232, 180, 0.08),
        inset 0 0 32px rgba(0, 0, 0, 0.55);
}

/* Media frame — holds a consistent panel even before the real art exists */
.project-image-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(ellipse at 50% 35%, rgba(196, 157, 92, 0.10), transparent 60%),
        linear-gradient(135deg, #0e0a06 0%, #15100a 100%);
}
.project-image-showcase__hero .project-image-card__media {
    aspect-ratio: 16 / 7;
}

.project-image-card__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    color: var(--text-muted);   /* tints alt text if the art is ever missing */
    font-size: 0.75rem;
}

/* Inner vignette: depth + plaque legibility (does not crush the art) */
.project-image-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 45%, transparent 42%, rgba(0, 0, 0, 0.48) 100%),
        linear-gradient(180deg, rgba(255, 226, 170, 0.04), rgba(0, 0, 0, 0.18));
}

/* Two supporting panels, side by side */
.project-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

/* Plaque caption attached to the image */
.project-image-card__caption {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 2;
    max-width: min(440px, calc(100% - 28px));
    padding: 10px 12px;
    border: 1px solid rgba(203, 162, 93, 0.5);
    border-radius: 9px;
    background: linear-gradient(180deg, rgba(21, 18, 13, 0.78), rgba(8, 8, 7, 0.86));
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.42),
        inset 0 0 0 1px rgba(255, 235, 190, 0.05);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Hero plaque: a touch wider for the longer line, still compact */
.project-image-showcase__hero .project-image-card__caption {
    max-width: min(560px, calc(100% - 32px));
    padding: 12px 14px;
}

/* Support cards: most compact label so the artwork dominates */
.project-image-grid .project-image-card__caption {
    max-width: min(360px, calc(100% - 28px));
    padding: 9px 11px;
}

.project-image-card__title {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(235, 206, 145, 0.96);
    margin-bottom: 4px;
}
.project-image-showcase__hero .project-image-card__title {
    font-size: 0.8rem;
}

.project-image-card__body {
    display: block;
    font-family: var(--font-body);
    font-size: 0.84rem;
    line-height: 1.35;
    color: rgba(235, 228, 210, 0.86);
}
.project-image-grid .project-image-card__body {
    font-size: 0.82rem;
}

/* Footer intro copy on project pages (Part 4) */
.project-foot__body {
    margin: 0.35rem auto 1rem;
    max-width: 42rem;
    color: rgba(235, 228, 210, 0.72);
    font-size: 0.95rem;
    line-height: 1.55;
}


/* ─── RESPONSIVE ─────────────────────────────────────────────────── */

/* Tablet — ≤ 1024px */
@media (max-width: 1024px) {
    .hero__composition {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        text-align: center;
        gap: var(--space-lg);
        padding-bottom: var(--space-xl);
    }
    .hero__text-layer { grid-column: 1; grid-row: 2; align-items: center; }
    .hero__image-wrap { grid-column: 1; grid-row: 1; }
    .hero__dragon-img { max-width: 420px; }
    .hero__title { align-items: center; }
    .hero__eyebrow { justify-content: center; }
    .hero__eyebrow-line { max-width: 30px; }
    .hero__cta { justify-content: center; }

    .about__grid { grid-template-columns: 1fr; gap: var(--space-xl); }
    .about__text-block .section__heading { text-align: center; }

    .features__grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }

    .showcase__grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
    .showcase-card--featured { grid-column: 1 / -1; }

    .forge-footer__inner { grid-template-columns: 1fr; text-align: center; gap: var(--space-lg); }
    .forge-footer__brand { justify-content: center; }
    .forge-footer__copy { text-align: center; }
}

/* Mobile — ≤ 640px */
@media (max-width: 640px) {
    :root {
        --space-lg: 1.25rem;
        --space-xl: 2.5rem;
        --space-2xl: 5rem;
    }

    .forge-nav__toggle { display: flex; }
    .forge-nav__links {
        position: fixed;
        inset: var(--nav-height) 0 0 0;
        background: rgba(6, 6, 6, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--space-xl);
        transform: translateX(100%);
        transition: transform var(--transition-mid);
    }
    .forge-nav__links.open { transform: translateX(0); }
    .forge-nav__link { font-size: 1rem; }

    .hero__dragon-img { max-width: 280px; }

    .showcase__grid { grid-template-columns: 1fr; }
    .project-systems { grid-template-columns: 1fr; }

    /* Image showcase: stack panels, caption becomes a readable plaque block */
    .project-image-grid { grid-template-columns: 1fr; }
    .project-image-showcase__hero .project-image-card__media { aspect-ratio: 4 / 3; }
    .project-image-card__caption,
    .project-image-grid .project-image-card__caption,
    .project-image-showcase__hero .project-image-card__caption {
        position: relative;
        left: auto;
        bottom: auto;
        max-width: none;
        margin: 0;
        padding: 12px 14px;
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
        border-radius: 0 0 10px 10px;
        background: linear-gradient(180deg, rgba(17, 15, 12, 0.96), rgba(8, 8, 7, 0.98));
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
    }

    /* Keep mobile caption text comfortable (overrides the compact desktop sizing) */
    .project-image-card__title,
    .project-image-showcase__hero .project-image-card__title {
        font-size: 0.78rem;
    }
    .project-image-card__body,
    .project-image-grid .project-image-card__body {
        font-size: 0.9rem;
        line-height: 1.45;
    }

    .about__stat-grid { grid-template-columns: 1fr 1fr; }
}


/* ═══════════════════════════════════════════════════════════════════
   GREYWAKE HUB — added components (hitters, game cards, counters,
   updates, goals, badges). Built on the existing forge tokens.
   ═══════════════════════════════════════════════════════════════════ */

/* Extra hero intro line under the tagline */
.hero__intro {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 1.3vw, 1.05rem);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 46ch;
    text-wrap: balance; /* even out line breaks so a lone "a" never strands at a line end */
}
.hero__intro strong { color: var(--text-primary); font-weight: 600; }

/* Section background variants so the hub bands alternate cleanly */
.section--hitters { background: var(--bg-void); }
.section--games   { background: linear-gradient(180deg, var(--bg-void) 0%, var(--bg-warm) 50%, var(--bg-void) 100%); border-top: var(--border-iron); border-bottom: var(--border-iron); }
.section--grows   { background: var(--bg-void); }
.section--updates { background: linear-gradient(180deg, var(--bg-void) 0%, var(--bg-iron) 50%, var(--bg-void) 100%); border-top: var(--border-iron); border-bottom: var(--border-iron); }
.section--goals   { background: var(--bg-void); }

/* Tighten the repeated section headers a touch vs the tall studio ones */
.section--hitters .section__header,
.section--games .section__header,
.section--grows .section__header,
.section--updates .section__header,
.section--goals .section__header { margin-bottom: var(--space-xl); }


/* ─── BIG HITTERS ────────────────────────────────────────────────── */
/* Grouped by game: one labelled row of four per game */
.hitter-group + .hitter-group { margin-top: var(--space-xl); }
.hitter-group__title {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
}
.hitter-group__title::before {
    content: '';
    width: 28px; height: 2px;
    flex-shrink: 0;
    background: linear-gradient(90deg, var(--ember-core), transparent);
    box-shadow: var(--glow-ember-sm);
}
.hitter-group__title a { transition: color var(--transition-fast); }
.hitter-group__title a:hover { color: var(--ember-glow); }

.hitter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.hitter-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--bg-glass);
    border: var(--border-iron);
    border-radius: 4px;
    padding: var(--space-lg);
    overflow: hidden;
    transition: border-color var(--transition-mid), box-shadow var(--transition-mid), transform var(--transition-mid);
}
.hitter-card:hover {
    border-color: rgba(255, 107, 26, 0.28);
    box-shadow: 0 4px 30px rgba(0,0,0,0.4), inset 0 0 40px rgba(255,107,26,0.04);
    transform: translateY(-4px);
}
.hitter-card:focus-visible {
    outline: 2px solid var(--ember-glow);
    outline-offset: 2px;
}

.hitter-card__game {
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ember-core);
}

.hitter-card__title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.03em;
    line-height: 1.2;
}

.hitter-card__body {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
    flex: 1;
}

.hitter-card__cue {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--iron-mid);
    transition: color var(--transition-fast), transform var(--transition-fast);
}
.hitter-card:hover .hitter-card__cue { color: var(--ember-glow); }


/* ─── GAME CARDS ─────────────────────────────────────────────────── */
.game-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.game-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--bg-warm) 0%, rgba(22, 14, 7, 0.95) 100%);
    border: 1px solid rgba(200, 118, 42, 0.28);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color var(--transition-mid), box-shadow var(--transition-mid), transform var(--transition-mid);
}
.game-card:hover {
    border-color: rgba(226, 184, 106, 0.5);
    box-shadow: var(--glow-gold-md);
    transform: translateY(-4px);
}

.game-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #0e0a06 0%, #15100a 100%);
}
.game-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow), opacity var(--transition-mid);
}
.game-card:hover .game-card__media img { transform: scale(1.04); }

.game-card__tag {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--ember-core);
    background: rgba(6, 6, 6, 0.72);
    border: var(--border-ember);
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
    box-shadow: var(--glow-ember-sm);
    backdrop-filter: blur(4px);
}

.game-card__body {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-lg);
    flex: 1;
}

.game-card__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.03em;
    line-height: 1.15;
}
.game-card__title a { transition: color var(--transition-fast); }
.game-card__title a:hover { color: var(--ember-glow); }

.game-card__desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.game-card__features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.game-card__features li {
    position: relative;
    padding-left: 1.3rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.game-card__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ember-core);
    box-shadow: var(--glow-ember-sm);
}

.game-card__meta {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding-top: var(--space-md);
    border-top: var(--border-iron);
}
.game-card__meta-row { display: flex; flex-direction: column; gap: 0.25rem; }
.game-card__meta-label {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-bright);
}
.game-card__meta-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

.game-card__cta { align-self: flex-start; margin-top: auto; }


/* ─── GREYWAKE GROWS — counters ──────────────────────────────────── */
.grows { display: flex; flex-direction: column; gap: var(--space-xl); }

.counter-group__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--gold-bright);
    text-align: center;
    margin-bottom: var(--space-md);
}

.counter-group--global {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-md);
}
/* Slightly narrower cells on the narrower project-page container */
.counter-grid--project {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    margin-top: var(--space-lg);
}

.counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.3rem;
    background: var(--bg-glass);
    border: var(--border-gold);
    border-radius: 4px;
    padding: var(--space-lg) var(--space-md);
    backdrop-filter: blur(8px);
    transition: border-color var(--transition-mid), box-shadow var(--transition-mid), transform var(--transition-mid);
}
.counter:hover {
    border-color: rgba(200, 118, 42, 0.5);
    box-shadow: var(--glow-gold-sm);
    transform: translateY(-3px);
}
.counter--wide { min-width: 200px; }

.counter__value {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--ember-core);
    text-shadow: var(--glow-ember-sm);
}
.counter--wide .counter__value { font-size: 1.7rem; }

.counter__label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.counter__note {
    font-size: 0.68rem;
    font-style: italic;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}


/* ─── RECENT UPDATES ─────────────────────────────────────────────── */
.updates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.update-col__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: var(--border-gold);
}
.update-col__title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-primary);
}
.update-col__link {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--iron-mid);
    white-space: nowrap;
    transition: color var(--transition-fast);
}
.update-col__link:hover { color: var(--ember-glow); }

.update-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.update {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    position: relative;
    padding-left: 1.2rem;
}
.update::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ember-core);
    box-shadow: var(--glow-ember-sm);
}
.update__title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}
.update__note {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* Update list on the narrower project pages */
.project-section .update-list { margin-top: var(--space-md); }


/* ─── DEVELOPMENT GOALS ──────────────────────────────────────────── */
.goals {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}
.goal-col__title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: var(--border-gold);
}
.goal-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.goal {
    background: var(--bg-glass);
    border: var(--border-iron);
    border-left: 2px solid rgba(200, 118, 42, 0.5);
    border-radius: 4px;
    padding: var(--space-md);
    transition: border-color var(--transition-mid);
}
.goal:hover { border-left-color: var(--ember-core); }
.goal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}
.goal__title {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}
.goal__note {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
}
/* goal-list on the narrower project pages */
.project-section .goal-list { margin-top: var(--space-md); max-width: 640px; }


/* ─── STATUS BADGES (public-facing wording) ──────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 0.18rem 0.55rem;
    border-radius: 2px;
    white-space: nowrap;
    border: 1px solid transparent;
}
.badge--dev {
    color: var(--ember-glow);
    border-color: rgba(255, 107, 26, 0.4);
    background: rgba(255, 107, 26, 0.08);
}
.badge--planned {
    color: var(--iron-bright);
    border-color: rgba(138, 144, 153, 0.35);
    background: rgba(138, 144, 153, 0.08);
}
.badge--soon {
    color: var(--gold-bright);
    border-color: rgba(200, 118, 42, 0.4);
    background: rgba(200, 118, 42, 0.08);
}


/* ─── PROJECT SYSCARD — head row + muted variant + anchor offset ──── */
.project-syscard__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--space-sm);
}
.project-syscard__head .project-syscard__title { margin-bottom: 0; }
.project-syscard--muted { background: rgba(14, 12, 10, 0.5); }

/* Deep-linked feature sections must clear the fixed nav on native jumps */
.project-syscard[id] { scroll-margin-top: calc(var(--nav-height) + var(--space-lg)); }


/* ─── RESPONSIVE — hub components ─────────────────────────────────── */
@media (max-width: 1024px) {
    .hitter-grid { grid-template-columns: 1fr 1fr; }
    .game-cards  { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
    .updates     { grid-template-columns: 1fr; gap: var(--space-xl); }
    .goals       { grid-template-columns: 1fr; gap: var(--space-xl); }
}

@media (max-width: 640px) {
    .hitter-grid { grid-template-columns: 1fr; }
    .counter-grid { grid-template-columns: 1fr 1fr; }
    .counter__value { font-size: 2rem; }
    .counter-group--global { flex-direction: column; align-items: stretch; }
    .counter--wide { min-width: 0; }
}


/* ═══════════════════════════════════════════════════════════════════
   POLISH PASS — punch hero, trust strip, chips/tags, miniature showcase,
   visual strips, boss gallery, cross-sell, CTAs. Built on forge tokens.
   ═══════════════════════════════════════════════════════════════════ */

/* Punch tagline (replaces the long descriptive hero line) */
.hero__tagline--punch {
    font-style: normal;
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

/* ─── TRUST STRIP ────────────────────────────────────────────────── */
.trust-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem 1.75rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-md) var(--space-lg);
    border-top: var(--border-iron);
    border-bottom: var(--border-iron);
}
.trust-strip__item {
    position: relative;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-secondary);
    white-space: nowrap;
}
.trust-strip__item::before {
    content: '';
    display: inline-block;
    width: 5px; height: 5px;
    margin-right: 0.6rem;
    border-radius: 50%;
    background: var(--ember-core);
    box-shadow: var(--glow-ember-sm);
    vertical-align: middle;
}
/* Inline variant sits inside a project section, below the big-hitter grid */
.trust-strip--inline {
    margin-top: var(--space-lg);
    border: var(--border-gold);
    border-radius: 4px;
    background: var(--bg-glass);
}

/* ─── TAGS & CHIPS ───────────────────────────────────────────────── */
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.75rem;
}
.tag {
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: rgba(200, 118, 42, 0.08);
    border: 1px solid rgba(200, 118, 42, 0.28);
    border-radius: 2px;
    padding: 0.15rem 0.5rem;
    white-space: nowrap;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.chip-row--lead { margin-top: var(--space-md); }
.chip {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    background: rgba(255, 107, 26, 0.09);
    border: 1px solid rgba(255, 107, 26, 0.3);
    border-radius: 999px;
    padding: 0.28rem 0.75rem;
}

/* Game-card chip block replaces the old "In now" sentence */
.game-card__chips-block { display: flex; flex-direction: column; gap: 0.5rem; }
.game-card__chips-label {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-bright);
}

/* ─── MINIATURE SHOWCASE ─────────────────────────────────────────── */
.section--minis {
    background: linear-gradient(180deg, var(--bg-void) 0%, var(--bg-warm) 50%, var(--bg-void) 100%);
    border-top: var(--border-iron);
    border-bottom: var(--border-iron);
}

.mini-ladder {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}
.mini-tier {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
    width: 170px;
}
/* Progression chevron between tiers (desktop row only) — CSS-drawn, not a
   font glyph, so it can never render as a missing-glyph box. */
.mini-tier:not(:last-child)::after {
    content: '';
    position: absolute;
    right: calc(var(--space-xl) / -2 - 4px);
    top: 66px;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--ember-core);
    border-right: 2px solid var(--ember-core);
    transform: translateX(-50%) rotate(45deg);
}
.mini-tier__art {
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mini-tier__art img { height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0,0,0,0.5)); }
.mini-tier__placeholder {
    width: 118px; height: 158px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(200, 160, 110, 0.5);
    border-radius: 4px;
    background: repeating-linear-gradient(45deg, rgba(120, 90, 55, 0.14), rgba(120, 90, 55, 0.14) 6px, rgba(90, 66, 40, 0.14) 6px, rgba(90, 66, 40, 0.14) 12px);
    color: var(--gold-dim);
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.mini-tier__name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--ember-glow);
    letter-spacing: 0.04em;
}
.mini-tier__blurb { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; max-width: 20ch; }

.mini-spotlight {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-xl);
}
.mini-spotlight__item {
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at 50% 40%, rgba(196,157,92,0.10), transparent 60%), var(--bg-glass);
    border: var(--border-gold);
    border-radius: 6px;
    padding: 0.5rem;
    transition: border-color var(--transition-mid), box-shadow var(--transition-mid), transform var(--transition-mid);
}
.mini-spotlight__item:hover { border-color: rgba(226,184,106,0.5); box-shadow: var(--glow-gold-sm); transform: translateY(-3px); }
.mini-spotlight__item img { height: 100%; width: 100%; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.5)); }
.mini-note { text-align: center; margin-top: var(--space-md); font-size: 0.8rem; color: var(--text-muted); font-style: italic; }

/* ─── VISUAL BLOCKS (reels / materials) ──────────────────────────── */
.visual-block { margin-top: var(--space-lg); }
.visual-block + .visual-block { margin-top: var(--space-xl); }
.visual-block__title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

/* Themed reel tiles are self-framed rounded stone squares on transparent
   backgrounds — show them at size with a label, no extra border. */
.reel-strip { display: flex; flex-wrap: wrap; gap: var(--space-md); }
.reel-tile {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    width: 96px;
}
.reel-tile img {
    width: 96px; height: 96px;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55));
    transition: transform var(--transition-mid), filter var(--transition-mid);
}
.reel-tile:hover img {
    transform: translateY(-3px);
    filter: drop-shadow(0 10px 20px rgba(255, 107, 26, 0.35));
}
.reel-tile figcaption {
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.material-strip { display: flex; flex-wrap: wrap; gap: var(--space-md); }
.material-strip__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    width: 74px;
}
.material-strip__item img {
    width: 64px; height: 64px;
    object-fit: contain;
    border: var(--border-iron);
    border-radius: 4px;
    background: var(--bg-glass);
    padding: 4px;
}
.material-strip__item figcaption {
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* ─── BOSS GALLERY ───────────────────────────────────────────────── */
.boss-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}
.boss-card {
    margin: 0;
    border: var(--border-gold);
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-glass);
    transition: border-color var(--transition-mid), box-shadow var(--transition-mid), transform var(--transition-mid);
}
.boss-card:hover { border-color: rgba(226,184,106,0.55); box-shadow: var(--glow-gold-md); transform: translateY(-3px); }
.boss-card__media { aspect-ratio: 3 / 4; overflow: hidden; }
.boss-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.boss-card:hover .boss-card__media img { transform: scale(1.05); }
.boss-card__name {
    display: block;
    padding: 0.5rem 0.6rem;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--text-primary);
    text-align: center;
    border-top: var(--border-iron);
}

/* ─── PAGE CTA BANDS ─────────────────────────────────────────────── */
.page-cta__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
}
.page-cta { text-align: center; }

/* ─── CROSS-SELL CARD ────────────────────────────────────────────── */
.cross-sell {
    display: grid;
    grid-template-columns: 240px 1fr;
    align-items: stretch;
    border: 1px solid rgba(200, 118, 42, 0.3);
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-warm) 0%, rgba(22,14,7,0.95) 100%);
    transition: border-color var(--transition-mid), box-shadow var(--transition-mid), transform var(--transition-mid);
}
.cross-sell:hover { border-color: rgba(226,184,106,0.5); box-shadow: var(--glow-gold-md); transform: translateY(-3px); }
.cross-sell__media { overflow: hidden; }
.cross-sell__media img { width: 100%; height: 100%; object-fit: cover; min-height: 150px; }
.cross-sell__body { padding: var(--space-lg); display: flex; flex-direction: column; gap: 0.4rem; justify-content: center; }
.cross-sell__eyebrow {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ember-core);
}
.cross-sell__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.03em;
}
.cross-sell__desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }
.cross-sell__cue {
    margin-top: 0.3rem;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ember-glow);
}

/* ─── COMMUNITY / STORE NOTE (honest — links only where real) ────── */
.community-note {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}
.community-note__item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.community-note__item--live {
    color: var(--ember-glow);
    font-weight: 600;
    transition: color var(--transition-fast);
}
.community-note__item--live:hover { color: var(--ember-core); }

/* Inline text link — used inside section__sub / project-section__body copy */
.inline-link {
    color: var(--ember-glow);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(255, 140, 53, 0.35);
    text-underline-offset: 2px;
    transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}
.inline-link:hover {
    color: var(--ember-core);
    text-decoration-color: currentColor;
}

/* ─── RESPONSIVE — polish modules ────────────────────────────────── */
@media (max-width: 1024px) {
    .mini-spotlight { grid-template-columns: repeat(3, 1fr); }
    .cross-sell { grid-template-columns: 200px 1fr; }
}
@media (max-width: 640px) {
    .mini-ladder { gap: var(--space-lg); }
    .mini-tier:not(:last-child)::after { display: none; }
    .mini-spotlight { grid-template-columns: repeat(3, 1fr); gap: var(--space-sm); }
    .cross-sell { grid-template-columns: 1fr; }
    .cross-sell__media { aspect-ratio: 16 / 9; }
    .trust-strip { gap: 0.5rem 1rem; }
    .trust-strip__item { font-size: 0.65rem; }
}


/* ═══════════════════════════════════════════════════════════════════
   CASTLE DOMAIN — holdings, legendary wonders, dev-log
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Holdings grid (Shrouded Maw castle domain) ─────────────────── */
.holdings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-md);
}
.holding-card {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    background: var(--bg-glass);
    border: var(--border-gold);
    border-left: 2px solid rgba(200, 118, 42, 0.6);
    border-radius: 4px;
    padding: var(--space-md);
    transition: border-color var(--transition-mid), transform var(--transition-mid), box-shadow var(--transition-mid);
}
.holding-card:hover {
    border-left-color: var(--ember-core);
    box-shadow: var(--glow-gold-sm);
    transform: translateY(-2px);
}
.holding-card__name {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}
.holding-card__blurb { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.55; }

/* ─── Legendary wonder chips ─────────────────────────────────────── */
.wonder-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--space-md); }
.wonder-chip {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--gold-bright);
    background: rgba(200, 118, 42, 0.08);
    border: 1px solid rgba(200, 118, 42, 0.35);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
}
.wonder-chip--more {
    color: var(--text-muted);
    font-style: italic;
    font-family: var(--font-body);
    font-weight: 500;
    border-style: dashed;
}

/* ─── Dev-log post page ──────────────────────────────────────────── */
.devlog { padding: var(--space-xl) 0 var(--space-2xl); }
.devlog__container { max-width: 720px; margin: 0 auto; padding: 0 var(--space-lg); }
.devlog__title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    line-height: 1.1;
    margin: var(--space-sm) 0 var(--space-lg);
}
.devlog__intro {
    font-size: 1.15rem;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}
.devlog__section { margin-bottom: var(--space-lg); }
.devlog__section-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ember-glow);
    letter-spacing: 0.02em;
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}
.devlog__section-title::before {
    content: '';
    width: 22px;
    height: 2px;
    flex-shrink: 0;
    background: linear-gradient(90deg, var(--ember-core), transparent);
    box-shadow: var(--glow-ember-sm);
}
.devlog__body { font-size: 1rem; color: var(--text-secondary); line-height: 1.8; }
.devlog__closing {
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.75;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: var(--border-gold);
}
.devlog__signoff { margin-top: var(--space-md); font-style: italic; color: var(--gold-dim); font-size: 0.9rem; }
.devlog__cta { justify-content: flex-start; margin-top: var(--space-xl); }

@media (max-width: 1024px) {
    .holdings-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .holdings-grid { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════════════════════════
   THE GREYWAKE PROMISE — a statement of intent, not a feature section.
   A single carved plaque, not a card grid: it needs to read as one
   uninterrupted commitment, signed at the bottom like a real promise.
   ═══════════════════════════════════════════════════════════════════ */
.section--promise {
    position: relative;
    overflow: hidden;
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
    background: var(--bg-void);
}

.promise__glow {
    position: absolute;
    top: -120px; left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 560px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(255, 107, 26, 0.1), transparent 70%);
    pointer-events: none;
}

.promise__plaque {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-xl);
    text-align: center;
    background: linear-gradient(180deg, rgba(20, 14, 8, 0.75), rgba(10, 8, 6, 0.9));
    border: var(--border-gold);
    border-radius: 6px;
    backdrop-filter: blur(10px);
    box-shadow: var(--glow-gold-md), inset 0 1px 0 rgba(232, 160, 80, 0.08);
}

/* Corner brackets — the plaque/seal cue that separates this from a feature card */
.promise__plaque::before,
.promise__plaque::after {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    border: 2px solid var(--gold-molten);
    opacity: 0.65;
}
.promise__plaque::before {
    top: -1px; left: -1px;
    border-right: none;
    border-bottom: none;
}
.promise__plaque::after {
    bottom: -1px; right: -1px;
    border-left: none;
    border-top: none;
}

.promise__mark {
    width: 44px;
    height: 44px;
    margin: 0 auto var(--space-md);
    filter: drop-shadow(0 0 10px rgba(255, 107, 26, 0.45));
}

.promise__eyebrow {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--ember-core);
    margin-bottom: var(--space-sm);
}

.promise__heading {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.6vw, 2.75rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.06em;
    text-shadow: var(--glow-ember-sm);
    margin-bottom: var(--space-lg);
}

.promise__lead {
    max-width: 640px;
    margin: 0 auto var(--space-lg);
}
.promise__lead p {
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.55;
    letter-spacing: 0.01em;
}
.promise__lead p + p { margin-top: var(--space-md); }
.promise__lead .promise__invite {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ember-glow);
    letter-spacing: 0.01em;
}

.promise__tenets {
    list-style: none;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    margin: var(--space-lg) auto 0;
    padding-top: var(--space-lg);
    border-top: var(--border-iron);
    text-align: left;
}
.promise__tenets li {
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.promise__tenet-mark {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ember-core);
    box-shadow: var(--glow-ember-sm);
    transform: translateY(-1px);
}

.promise__signature {
    margin-top: var(--space-xl);
    padding-top: var(--space-md);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}
.promise__signature-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--gold-bright);
    position: relative;
    padding-bottom: 0.4rem;
}
.promise__signature-name::after {
    content: '';
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200, 118, 42, 0.6), transparent);
}
.promise__signature-role {
    margin-top: 0.4rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

@media (max-width: 640px) {
    .promise__plaque { padding: var(--space-xl) var(--space-lg); }
    .promise__tenets { align-items: flex-start; }
}
