/* ============ DBLJ — La Forge ============ */
:root {
    --fs-hero: clamp(3rem, 10vw, 7rem);
    --fs-h2: clamp(1.6rem, 4vw, 2.6rem);
    /* +~7%: Barlow Condensed reads small at equal size */
    --fs-body: clamp(1.07rem, 1.2vw, 1.2rem);
    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 2rem;
    --space-4: 4rem;
    --space-section: clamp(4rem, 10vh, 8rem);
    --maxw: 72rem;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --bar-h: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--dblj-void);
    color: #fff;
    font-family: var(--font-body, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
    font-size: var(--fs-body);
    letter-spacing: .015em; /* condensed face breathes a bit */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

.skiplink {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--dblj-red);
    color: #fff;
    padding: var(--space-1) var(--space-2);
    z-index: 100;
}
.skiplink:focus { left: 0; }

:focus-visible { outline: 2px solid var(--dblj-red-highlight); outline-offset: 3px; }

section, .hero, .footer {
    padding: var(--space-section) var(--space-2);
}
.section-title {
    font-family: var(--font-title);
    font-weight: 400; /* display face is single-weight; faux-bold distorts it */
    font-size: var(--fs-h2);
    text-transform: uppercase;
    letter-spacing: .12em; /* hand-drawn face wants looser tracking */
    color: var(--dblj-red);
    text-align: center;
    margin: 0 0 var(--space-3);
}
.section-title--gold { color: var(--dblj-gold1); }

/* ---- Reveal ---- */
[data-reveal] {
    opacity: 0;
    -webkit-transform: translateY(24px);
            transform: translateY(24px);
}
[data-reveal].is-inview {
    opacity: 1;
    -webkit-transform: none;
            transform: none;
    transition: opacity .6s var(--ease), -webkit-transform .6s var(--ease);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
    [data-reveal] { -webkit-transform: none; transform: none; }
    [data-reveal].is-inview { transition: opacity .15s linear; }
    * { animation: none !important; }
}

/* ---- CTA ---- */
.cta {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    text-transform: uppercase;
    letter-spacing: .1em;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    line-height: 1.4;
    transition: -webkit-transform .3s var(--ease), transform .3s var(--ease), opacity .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.cta:hover,
.cta:focus-visible {
    -webkit-transform: translateY(-2px);
            transform: translateY(-2px);
}
.cta--red {
    background-color: var(--dblj-red);
    color: #fff;
    border-color: var(--dblj-red);
}
.cta--red:hover,
.cta--red:focus-visible {
    background-color: var(--dblj-red-highlight);
    border-color: var(--dblj-red-highlight);
}
.cta--gold {
    background: transparent;
    border-color: var(--dblj-gold1);
    color: var(--dblj-gold1);
}
.cta--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, .3);
    color: #fff;
}
.cta--vault {
    background: transparent;
    border-color: transparent;
    color: var(--dblj-gold2);
    text-decoration: underline;
    text-underline-offset: 6px;
    opacity: .6;
}
.cta--vault:hover,
.cta--vault:focus-visible {
    opacity: 1;
    color: var(--dblj-gold1);
}
.cta--micro {
    font-size: .85rem;
    padding: var(--space-1) var(--space-2);
}

/* craft-card CTA: angled DBLJ pop — joins the card's hover life */
.craft-card .cta {
    will-change: transform;
    transition: -webkit-transform .3s var(--ease), transform .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.craft-card .cta:hover,
.craft-card .cta:focus-visible {
    -webkit-transform: translateY(-2px) scale(1.07) skewX(-6deg);
            transform: translateY(-2px) scale(1.07) skewX(-6deg);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .45), 0 0 16px rgba(239, 0, 1, .5);
}
/* card hover pre-warms the CTA glow so it reads as clickable */
.craft-card:hover .cta--red {
    box-shadow: 0 0 12px rgba(239, 0, 1, .35);
}
@media (prefers-reduced-motion: reduce) {
    .craft-card .cta:hover,
    .craft-card .cta:focus-visible {
        -webkit-transform: none;
                transform: none;
    }
}

/* ---- Hero (header = nav) ---- */
.hero {
    position: relative;
    height: 100svh;
}
html:not(.fx-on) .hero {
    height: 100svh;
}
.hero__bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 80;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    text-align: center;
    transition: none;
    pointer-events: none;
}
.hero__bar a {
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}
html:not(.fx-on) .hero__bar {
    position: fixed;
}
.hero__bar.is-stuck {
    min-height: 0;
    height: var(--bar-h, 4.5rem);
    flex-direction: row;
    justify-content: flex-start;
    gap: .6rem;
    padding: .4rem clamp(.75rem, 3vw, 1.5rem);
    background: rgba(0, 0, 0, .9);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--dblj-red-shadow);
}
.hero__bar.is-stuck .hero__brand {
    font-size: 1.6rem;
    margin: 0 auto 0 0; /* brand hugs the logo, pillars push right */
}
.hero__bar.is-stuck .pillar a {
    padding: .45rem .9rem;
    background: var(--dblj-blue);
}
.hero__bar.is-stuck .pillar a.is-active {
    background: var(--dblj-red-highlight);
}
.hero__bar.is-stuck .pillar__label {
    font-size: .75rem;
    white-space: nowrap;
}
.hero__bar.is-stuck .hero__tagline,
.hero__bar.is-stuck .hero__cta,
.hero__bar.is-stuck .pillar__desc {
    display: none;
}
.hero__bar.is-stuck .hero__pillars {
    display: flex;
    gap: .4rem;
    width: auto;
    margin: 0;
    grid-template-columns: unset;
}
.hero__bar.is-morphing .hero__brand,
.hero__bar.is-morphing .hero__pillars .pillar a {
    will-change: transform;
}
.hero__brand {
    font-family: var(--font-title);
    font-size: var(--fs-hero);
    font-weight: 400;
    letter-spacing: .14em;
    margin: 0;
    color: var(--dblj-red);
}
/* atelier quick-jump tabs, docked under the compact header */
.hero__subnav {
    position: fixed;
    top: var(--bar-h, 4.5rem);
    right: clamp(.75rem, 3vw, 1.5rem);
    display: flex;
    gap: 4px;
    z-index: 79;
    opacity: 0;
    pointer-events: none;
    -webkit-transform: translateY(-8px);
            transform: translateY(-8px);
    transition: opacity .3s var(--ease), -webkit-transform .3s var(--ease), transform .3s var(--ease);
}
.hero__subnav.is-visible {
    opacity: 1;
    pointer-events: auto;
    -webkit-transform: translateY(0);
            transform: translateY(0);
}
.hero__subnav a {
    display: block;
    padding: 6px 14px;
    background: rgba(13, 13, 14, .92);
    border: 1px solid rgba(242, 203, 5, .35);
    border-top: none;
    color: rgba(255, 255, 255, .85);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    -webkit-clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
            clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
    transition: color .25s var(--ease), background-color .25s var(--ease);
}
.hero__subnav a:hover { color: var(--dblj-gold1); }
.hero__subnav a.is-active { background: var(--dblj-red-highlight); color: #fff; }
@media (max-width: 768px) {
    .hero__subnav { top: 3.75rem; right: 8px; }
    .hero__subnav a { padding: 5px 10px; font-size: .6rem; }
}
.hero__logo {
    width: clamp(136px, 17vw, 212px);
    height: auto;
    margin-bottom: var(--space-1);
    filter: drop-shadow(0 6px 18px rgba(191, 4, 4, .35));
}
.hero__bar.is-stuck .hero__logo {
    width: 34px;
    margin: 0;
    flex: 0 0 auto;
    filter: none;
}
@media (max-width: 640px) {
    .hero__bar.is-stuck .hero__logo { width: 24px; }
}
.hero__tagline {
    margin: 0;
    color: rgba(255, 255, 255, .75);
    font-size: clamp(1rem, 2.5vw, 1.35rem);
}
.hero__pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: var(--space-2);
    justify-content: center;
    width: min(60rem, 92vw);
    margin-inline: auto;
    list-style: none;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
}
.hero__pillars .pillar {
    display: flex;
}
.pillar a {
    flex: 1;
    height: 100%;
    display: flex;
    padding: var(--space-2) var(--space-3);
    background: var(--dblj-bg-item);
    text-decoration: none;
    color: #fff;
    -webkit-transform: skewX(-8deg);
            transform: skewX(-8deg);
    transition: -webkit-transform .3s var(--ease), transform .3s var(--ease);
}
.pillar a:hover,
.pillar a:focus-visible {
    -webkit-transform: skewX(-8deg) translateY(-4px);
            transform: skewX(-8deg) translateY(-4px);
}
.hero .pillar__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .15rem;
    width: 100%;
    -webkit-transform: skewX(8deg);
            transform: skewX(8deg);
}
.pillar__num,
.pillar__label,
.pillar__desc {
    text-align: center;
}
.pillar__num {
    display: block;
    font-size: .75rem;
    letter-spacing: .2em;
    margin-bottom: .25rem;
}
.pillar--event .pillar__num { color: var(--dblj-red); }
.pillar--craft .pillar__num { color: var(--dblj-gold1); }
.pillar--dev .pillar__num { color: #fff; }
.pillar__label {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    white-space: normal;
}
.pillar__desc {
    display: block;
    margin-top: .35rem;
    max-width: none;
    font-size: .85rem; /* +~9% for condensed face */
    line-height: 1.4;
    text-transform: none;
    letter-spacing: normal;
    color: var(--dblj-text-muted);
}

.hero__cta::after {
    content: "_";
    color: var(--dblj-red);
    margin-left: .15em;
    font-weight: 900;
    animation: matrixblink 1s step-end infinite;
}
@media (max-width: 768px) {
    .hero__pillars {
        width: 96vw;
        gap: .5rem;
    }
    .pillar a {
        padding: .75rem .5rem;
    }
    .pillar__desc {
        font-size: .7rem;
    }
    .hero__bar.is-stuck {
        height: 3.75rem;
        gap: .4rem;
        padding: .3rem .5rem;
    }
    .hero__bar.is-stuck .hero__brand {
        white-space: nowrap;
        flex: 0 0 auto;
        font-size: 1.05rem;
        letter-spacing: .08em;
    }
    .hero__bar.is-stuck .hero__pillars {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        gap: .25rem;
        justify-content: flex-end;
    }
    .hero__bar.is-stuck .hero__pillars .pillar {
        min-width: 0;
    }
    .hero__bar.is-stuck .pillar a {
        padding: .25rem .4rem;
        max-width: 100%;
    }
    .hero__bar.is-stuck .pillar__label {
        font-size: .5rem;
        letter-spacing: 0;
        white-space: nowrap;
        max-width: 20vw;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .hero__bar.is-stuck .pillar__num {
        display: none;
    }
}

/* ---- Snap sections (title clearance under bar) ---- */
section[data-snap],
footer[data-snap] {
    padding-top: calc(var(--bar-h, 4.5rem) + 2rem);
}
@media (max-width: 768px) {
    #story {
        padding-top: calc(var(--bar-h, 3.75rem) + .75rem);
    }
    /* short sections fill the phone screen -> no blended frames */
    #trust,
    #vault,
    #next {
        min-height: 100svh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* ---- Arena ---- */
.arena {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: var(--space-3);
    max-width: var(--maxw);
    margin-inline: auto;
    scroll-margin-top: var(--bar-h, 3.75rem);
}
.arena__intro {
    text-align: center;
    color: var(--dblj-text-muted);
    margin: 0 auto;
    max-width: 44rem;
}
.arena__forge {
    text-align: center;
    color: var(--dblj-gold1);
    margin: 0 auto;
    max-width: 40rem;
    font-size: .85rem;
    letter-spacing: .04em;
    opacity: .85;
}
.arena__showcase {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: var(--space-3);
    align-items: center;
}
.arena__media img {
    width: 100%;
    height: auto;
    border: 1px solid var(--dblj-red-shadow);
    border-radius: 8px;
}
.arena__showcase-title {
    margin: 0 0 var(--space-1);
    font-family: var(--font-accent);
    font-weight: 400;
    font-size: 1.35rem;
    letter-spacing: .05em;
    color: var(--dblj-white);
}
.arena__showcase-body {
    margin: 0 0 var(--space-2);
    color: var(--dblj-text-muted);
}
.arena__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}
.arena__event {
    width: 100%;
}
@media (max-width: 768px) {
    .arena {
        min-height: auto;
        padding-top: calc(var(--bar-h, 3.75rem) + 1.25rem);
        padding-bottom: 1.5rem;
        gap: var(--space-3);
    }
    .arena__media img {
        max-height: 34svh;
        width: auto;
        margin-inline: auto;
    }
    .arena__event {
        min-height: auto;
    }
    .arena__showcase {
        grid-template-columns: 1fr;
    }
}
#craft,
#vault,
#dev,
#contact {
    scroll-margin-top: var(--bar-h, 3.75rem);
}

/* ---- Event widget ---- */
.event {
    max-width: var(--maxw);
    margin: 0 auto;
    text-align: center;
    border: 1px solid;
    border-radius: 4px;
    padding: var(--space-3);
}
.event__badge {
    display: inline-block;
    margin: 0 0 var(--space-1);
    padding: 2px 10px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--dblj-white);
    background: var(--dblj-red-highlight);
    border-radius: 2px;
}
.event__title {
    margin: 0 0 var(--space-2);
    font-family: var(--font-title);
    font-weight: 400;
    font-size: var(--fs-h2);
    text-transform: uppercase;
    letter-spacing: .1em;
}
.event__seats {
    margin: 0 0 var(--space-2);
    font-size: .9rem;
    letter-spacing: .04em;
    color: var(--dblj-text-muted);
}
.event__seats strong {
    color: var(--dblj-gold1);
    font-variant-numeric: tabular-nums;
}
.event__meta {
    margin: 0 0 var(--space-2);
    color: rgba(255, 255, 255, .7);
}
.event__location::after {
    content: " · ";
}
.event--live {
    position: relative;
    border-color: var(--dblj-red);
}
.event--live::before {
    content: "";
    position: absolute;
    inset: -1px;
    border: 1px solid var(--dblj-red-highlight);
    border-radius: 4px;
    opacity: 0;
    animation: eventpulse 2.4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes eventpulse {
    0%, 100% { opacity: 0; }
    50% { opacity: .8; }
}
.event--live .event__title { color: var(--dblj-red); }
.event--idle {
    border-color: var(--dblj-blue);
}
.event--idle .event__title {
    color: #6f83a6;
}
.event__hint {
    margin: 0;
    color: rgba(255, 255, 255, .55);
    font-style: italic;
}
.countdown {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin: var(--space-3) 0;
}
.countdown__cell b {
    display: block;
    min-width: 2.4ch;
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    color: #fff;
}
.countdown__cell i {
    font-style: normal;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: rgba(255, 255, 255, .5);
}
.countdown--mystery .countdown__cell b {
    font-family: var(--font-mono, monospace);
    border: 1px solid var(--dblj-blue);
    border-radius: 4px;
    padding: var(--space-1) 0;
    background: rgba(255, 255, 255, .03);
    color: var(--dblj-gold1);
    animation: countdownGlitch 2.6s ease-in-out infinite;
}
.countdown--mystery .countdown__cell:nth-child(2) b { animation-delay: .15s; }
.countdown--mystery .countdown__cell:nth-child(3) b { animation-delay: .3s; }
.countdown--mystery .countdown__cell:nth-child(4) b { animation-delay: .45s; }
@keyframes countdownGlitch {
    0%, 100% { opacity: .85; -webkit-transform: none; transform: none; text-shadow: none; }
    45% { opacity: .85; -webkit-transform: none; transform: none; text-shadow: none; }
    48% { opacity: .4; -webkit-transform: translateX(-1px); transform: translateX(-1px); text-shadow: 1px 0 var(--dblj-red); }
    51% { opacity: 1; -webkit-transform: translateX(1px); transform: translateX(1px); text-shadow: -1px 0 var(--dblj-gold2); }
    54% { opacity: .85; -webkit-transform: none; transform: none; text-shadow: none; }
}

/* ---- Timeline ---- */
.tl__track {
    position: relative;
    max-width: 48rem;
    margin: 0 auto;
    padding-left: var(--space-3);
}
.tl__list {
    max-width: none;
    margin: 0;
    padding: 0;
    list-style: none;
    position: relative;
}
.tl__list::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--dblj-red-shadow);
    opacity: .4;
}
.tl__item {
    position: relative;
    margin-bottom: var(--space-4);
    z-index: 1;
}
.tl__node {
    position: absolute;
    left: calc(-1 * var(--space-3) - 5px);
    top: var(--space-2);
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.tl__item[data-pillar="event"] .tl__node { background: var(--dblj-red); }
.tl__item[data-pillar="craft"] .tl__node { background: var(--dblj-gold1); }
.tl__item[data-pillar="dev"] .tl__node { background: #fff; }
.tl__year {
    position: absolute;
    right: 0;
    top: -2.2rem;
    font-size: clamp(2.4rem, 7vw, 4rem);
    font-weight: 900;
    color: rgba(255, 255, 255, .18);
    pointer-events: none;
    line-height: 1;
}
.tl__card {
    background: var(--dblj-bg-item);
    padding: var(--space-3);
    border-radius: 4px;
}
.tl__title {
    margin: 0 0 var(--space-1);
    font-family: var(--font-accent);
    font-weight: 400;
    font-size: 1.25rem;
    letter-spacing: .05em;
    color: #fff;
}
.tl__body {
    margin: 0;
    color: rgba(255, 255, 255, .75);
}

/* ---- Craft 3D card ---- */
.craft__intro {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto var(--space-3);
    color: rgba(255, 255, 255, .75);
}
.xcard-scene {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    margin: var(--space-4) auto;
    -webkit-perspective: 1200px;
            perspective: 1200px;
    overflow: visible;
}
.xcard {
    position: relative;
    width: min(280px, 70vw);
    aspect-ratio: 3 / 4;
    -webkit-transform-style: preserve-3d;
            transform-style: preserve-3d;
    transition: -webkit-transform .5s var(--ease);
    transition: transform .5s var(--ease);
    cursor: pointer;
    overflow: visible;
}
.xcard__layer {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
    transition: -webkit-transform .6s var(--ease);
    transition: transform .6s var(--ease);
}
.xcard__layer--back { background: var(--dblj-bg-menu); border: 1px solid var(--dblj-red-shadow); }
.xcard__layer--holo { background: linear-gradient(135deg, var(--dblj-blue), var(--dblj-bg-item)); }
.xcard__layer--art  { background: radial-gradient(circle at 35% 30%, var(--dblj-red-shadow), var(--dblj-bg-item) 70%); }
.xcard__layer--foil { border: 2px solid var(--dblj-gold1); background: transparent; }

.xcard.is-exploded .xcard__layer--back { -webkit-transform: translateZ(-60px); transform: translateZ(-60px); }
.xcard.is-exploded .xcard__layer--holo { -webkit-transform: translateZ(-20px); transform: translateZ(-20px); }
.xcard.is-exploded .xcard__layer--art  { -webkit-transform: translateZ(20px);  transform: translateZ(20px); }
.xcard.is-exploded .xcard__layer--foil { -webkit-transform: translateZ(60px);  transform: translateZ(60px); }

.craft__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-3);
    max-width: var(--maxw);
    margin: var(--space-4) auto 0;
    padding: 0;
    list-style: none;
    perspective: 900px;
}
.craft-card {
    background: var(--dblj-bg-item);
    padding: var(--space-2);
    border-radius: 8px;
    text-align: center;
    border: 1px solid transparent;
    transition: border-color .35s var(--ease), box-shadow .35s var(--ease);
    will-change: transform;
}
.craft-card:hover,
.craft-card:focus-within {
    border-color: var(--dblj-gold1);
    box-shadow: 0 22px 48px rgba(0, 0, 0, .55), 0 0 24px rgba(242, 203, 5, .12);
}
.craft-card__desc {
    margin: 0 0 var(--space-2);
    font-size: .9rem; /* +~9% for condensed face */
    line-height: 1.5;
    color: var(--dblj-text-muted);
    min-height: 3.7em;
}
.craft-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: var(--space-2);
}
.craft-card__name {
    margin: 0 0 var(--space-2);
    font-family: var(--font-accent);
    font-weight: 400;
    font-size: 1.2rem;
    letter-spacing: .05em;
}

/* ---- Vault / Heritage ---- */
.vault {
    text-align: center;
    background-color: transparent;
    position: relative;
}
.vault > * {
    position: relative;
}
.heritage__body {
    max-width: 40rem;
    margin: 0 auto var(--space-2);
    color: rgba(255, 255, 255, .8);
    line-height: 1.7;
}
.heritage__body strong {
    color: var(--dblj-gold1);
    font-weight: 700;
}
.heritage__sub {
    margin: var(--space-3) auto var(--space-2);
    font-family: var(--font-accent);
    font-weight: 400;
    font-size: 1.25rem;
    letter-spacing: .05em;
    font-style: normal; /* hand-drawn face carries the flavour, italic doubles it */
    color: var(--dblj-gold2);
}

/* ---- Dev matrix ---- */
.matrix__intro {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto var(--space-3);
    color: rgba(255, 255, 255, .75);
}
.matrix__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-2);
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0;
    list-style: none;
}
.matrix__tile {
    font-family: ui-monospace, monospace;
    background: var(--dblj-bg-menu);
    border: 1px solid rgba(255, 255, 255, .08);
    border-left: 3px solid rgba(255, 255, 255, .15);
    padding: var(--space-2);
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.matrix__tile[data-status="online"] { border-left-color: var(--dblj-red-highlight); }
.matrix__tile[data-status="forge"] { border-left-color: var(--dblj-gold1); }
.matrix__tile[data-status="planned"] { border-left-color: #6f83a6; }
.matrix__tile:hover {
    background-color: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .2);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .5);
}
.matrix__tile[data-status="online"]:hover { border-left-color: var(--dblj-red-highlight); }
.matrix__tile[data-status="forge"]:hover { border-left-color: var(--dblj-gold1); }
.matrix__tile[data-status="planned"]:hover { border-left-color: #6f83a6; }
.matrix__tile h3 {
    margin: 0 0 var(--space-1);
    font-size: .95rem;
    font-weight: 600;
}
.badge {
    display: inline-block;
    font-size: .7rem;
    letter-spacing: .15em;
    padding: 2px 8px;
    border: 1px solid currentColor;
    border-radius: 2px;
}
.matrix__tile[data-status="online"] .badge { color: var(--dblj-red-highlight); }
.matrix__tile[data-status="forge"] .badge { color: var(--dblj-gold1); }
.matrix__tile[data-status="planned"] .badge { color: #6f83a6; }

/* ---- Footer ---- */
.footer {
    text-align: center;
    border-top: 1px solid var(--dblj-red-shadow);
    background: var(--dblj-bg-menu);
}
.footer__brand {
    font-family: var(--font-title);
    font-weight: 400;
    letter-spacing: .22em;
    color: var(--dblj-red);
    margin: 0 0 var(--space-2);
}
.footer__logo {
    display: block;
    width: 48px;
    height: auto;
    margin: 0 auto var(--space-1);
    opacity: .92;
}
.footer__sitenav {
    margin: 0 0 var(--space-1);
}
.footer__sitenav a {
    color: rgba(255, 255, 255, .55);
    margin: 0 var(--space-2);
    text-decoration: none;
    font-size: .85rem;
    transition: color .3s var(--ease);
}
.footer__sitenav a:hover,
.footer__sitenav a:focus-visible {
    color: var(--dblj-gold1);
}
.footer__legal a {
    color: rgba(255, 255, 255, .7);
    margin: 0 var(--space-2);
    text-decoration: none;
    transition: color .3s var(--ease);
}
.footer__legal a:hover,
.footer__legal a:focus-visible {
    color: var(--dblj-red-highlight);
}
.footer__nocookie {
    max-width: 40rem;
    margin: var(--space-3) auto;
    font-size: .85rem;
    color: rgba(255, 255, 255, .5);
    font-style: italic;
}
.footer__legal-placeholder {
    max-width: 40rem;
    margin: 0 auto var(--space-3);
    font-size: .75rem;
    color: rgba(255, 255, 255, .35);
}
.footer__made {
    margin: 0 0 var(--space-2);
    color: rgba(255, 255, 255, .55);
    font-size: .9rem;
}
.footer__copy {
    font-size: .8rem;
    color: rgba(255, 255, 255, .4);
    margin: 0;
}

/* ============ FX v3 — Nav + sections ============ */
#fx-bg-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}
#main {
    position: relative;
    z-index: 1;
}
.skiplink {
    z-index: 100;
}

.craft__sub {
    margin: var(--space-4) 0 var(--space-1);
    padding-top: var(--space-4);
    clear: both;
    font-family: var(--font-accent);
    font-weight: 400;
    font-size: 1.35rem;
    letter-spacing: .06em;
    color: var(--dblj-gold1);
    text-align: center;
}
.craft__lore {
    margin: 0 0 var(--space-3);
    text-align: center;
    color: var(--dblj-text-muted);
    max-width: 36rem;
    margin-inline: auto;
}

/* ============ FX v2 — Scrollytelling ============ */
html {
    overscroll-behavior: none;
}
html.no-deck {
    overscroll-behavior: auto;
}
html.no-deck .hero__bar {
    position: fixed;
}
html.fx-on {
    scroll-behavior: auto;
}

html.fx-on body {
    overflow-x: hidden;
}

/* ---- Hero FX (chars) ---- */
.hero__char {
    display: inline-block;
    transform-origin: center bottom;
}

/* ---- Card scrollytelling ---- */
.card-scrolly {
    display: none;
    position: relative;
    height: auto;
    margin: var(--space-4) 0;
}
#card-scrolly {
    margin-bottom: var(--space-2);
}
.fx-on .card-scrolly {
    display: block;
}
.fx-on .xcard-scene--fallback {
    display: none;
}
.card-scrolly__pin {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.card-scrolly__canvas {
    /* fullscreen backdrop stage: header bar + labels float above it */
    position: absolute;
    inset: 0;
    width: 100vw;
    height: 100svh;
    max-height: none;
    aspect-ratio: auto;
    z-index: 1;
}
.card-scrolly__labels {
    z-index: 2;
}
.card-scrolly__labels {
    position: absolute;
    left: 50%;
  top: auto;
    bottom: 14svh;
    right: auto;
    -webkit-transform: translateX(-50%);
            transform: translateX(-50%);
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
    pointer-events: none;
    min-width: min(90vw, 40rem);
    min-height: 3.5rem;
}
.card-scrolly__label {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    text-align: center;
}
.card-scrolly__label-desc {
    margin-inline: auto;
}
.card-scrolly__label-title {
    display: block;
    font-family: var(--font-title);
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    font-weight: 400;
    font-style: italic;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--dblj-gold1);
    text-shadow: 3px 3px 0 var(--dblj-red-shadow);
    -webkit-transform: skewX(-6deg);
            transform: skewX(-6deg);
}
.card-scrolly__label-title::after {
    content: "";
    display: block;
    width: 2.6rem;
    height: 3px;
    margin: .45rem auto 0;
    background: var(--dblj-red-highlight);
    -webkit-transform: skewX(-12deg);
            transform: skewX(-12deg);
}
.card-scrolly__label-desc {
    display: block;
    font-size: .92rem; /* +~8% for condensed face */
    letter-spacing: .02em;
    line-height: 1.5;
    color: var(--dblj-text-muted);
    margin-top: .55rem;
    max-width: min(84vw, 30rem);
    white-space: normal;
}
.card-scrolly__label.is-active {
    visibility: visible;
    opacity: 1;
}
.fx-lite .card-scrolly {
    height: auto;
}
@media (max-width: 768px) {
    .card-scrolly__labels {
        bottom: 16svh;
    }
    .card-scrolly__label-title {
        font-size: 1.15rem;
    }
    .card-scrolly__label-desc {
        font-size: .75rem;
    }
}

/* ---- Trust wall ---- */
.trust__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-3);
    list-style: none;
    margin: var(--space-3) 0 0;
    padding: 0;
}
.trust-card {
    text-align: center;
}
.trust-card__logo {
    width: 100%;
    max-width: 240px;
    height: auto;
    -webkit-filter: grayscale(1);
            filter: grayscale(1);
    opacity: .85;
    transition: -webkit-filter .35s var(--ease), opacity .35s var(--ease);
    transition: filter .35s var(--ease), opacity .35s var(--ease);
}
.trust-card:hover .trust-card__logo,
.trust-card:focus-within .trust-card__logo {
    -webkit-filter: grayscale(0);
            filter: grayscale(0);
    opacity: 1;
}
.trust-card__work {
    margin: var(--space-1) 0 0;
    font-size: .8rem;
    color: var(--dblj-text-muted);
}
@media (max-width: 768px) {
    .trust__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2);
    }
    .trust-card__logo {
        max-width: 150px;
        margin-inline: auto;
    }
    .vault {
        min-height: auto;
    }
    .matrix__grid {
        gap: var(--space-1);
    }
    .devdemo__grid {
        gap: var(--space-2);
    }
}

/* ---- Dev demo ---- */
.devdemo__intro {
    max-width: 40rem;
    margin: 0 auto var(--space-4);
    text-align: center;
    color: var(--dblj-text-muted);
}
.devdemo__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-3);
    list-style: none;
    margin: 0;
    padding: 0;
}
.devdemo-card__window {
    border: 1px solid var(--dblj-red-shadow);
    border-radius: 8px;
    overflow: hidden;
    background: #0d0d0d;
    transition: -webkit-transform .35s var(--ease), transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.devdemo-card:hover .devdemo-card__window,
.devdemo-card:focus-within .devdemo-card__window {
    -webkit-transform: translateY(-6px);
            transform: translateY(-6px);
    border-color: var(--dblj-red-highlight);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .55);
}
.devdemo-card__titlebar {
    display: flex;
    gap: 6px;
    padding: .55rem .75rem;
    background: #1a1a1a;
    border-bottom: 1px solid var(--dblj-red-shadow);
}
.devdemo-card__titlebar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--dblj-red-shadow);
}
.devdemo-card__titlebar span:first-child { background: #c0392b; }
.devdemo-card__titlebar span:nth-child(2) { background: #d4a017; }
.devdemo-card__titlebar span:nth-child(3) { background: #27ae60; }
.devdemo-card__body {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: var(--space-2);
    padding: var(--space-2);
}
.devdemo-card__shot {
    width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid var(--dblj-red-shadow);
}
.devdemo-card__name {
    margin: 0 0 var(--space-1);
    font-family: var(--font-mono, monospace);
    font-size: .95rem;
}
.devdemo-card__desc {
    margin: 0 0 var(--space-2);
    font-family: var(--font-mono, monospace);
    font-size: .8rem;
    color: var(--dblj-text-muted);
    line-height: 1.5;
}
@media (max-width: 480px) {
    .devdemo-card__body {
        grid-template-columns: 1fr;
    }
    .devdemo-card__shot {
        max-width: 120px;
    }
}

/* ---- Timeline vein FX ---- */
.tl {
    position: relative;
    overflow-x: clip; /* pre-reveal x-shifted items must not widen the layout viewport */
}
.tl__vein {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    height: auto;
    width: 2px;
    background: var(--dblj-red-shadow);
    -webkit-transform-origin: top center;
            transform-origin: top center;
    -webkit-transform: scaleY(0);
            transform: scaleY(0);
    opacity: .85;
    pointer-events: none;
    z-index: 0;
}
.fx-on .tl__list::before {
    opacity: 0;
}

/* ---- Heritage (no vault FX) ---- */
/* ---- Craft card shine ---- */
.craft-card {
    position: relative;
    overflow: hidden;
    -webkit-transform-style: preserve-3d;
            transform-style: preserve-3d;
}
.craft-card__shine {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}
.craft-card__shine {
    -webkit-transform-style: preserve-3d;
            transform-style: preserve-3d;
    will-change: transform;
}

/* ---- Matrix cursor ---- */
.matrix__cursor {
    display: inline-block;
    color: var(--dblj-red-highlight);
    animation: matrixblink 1s step-end infinite;
    margin-left: 2px;
}
@keyframes matrixblink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ---- FX reduced-motion: hide canvas scrolly ---- */
@media (prefers-reduced-motion: reduce) {
    .card-scrolly,
    #fx-bg-canvas {
        display: none !important;
    }
    .xcard-scene--fallback {
        display: flex !important;
    }
}
