/* ============================================================
   Drake's Workshop — premium leather + gold-bar chrome
   CSS-first materials; leather tile is a subtle realism layer.
   ============================================================ */

:root {
    --dw-bg: #070504;
    --dw-bg-mid: #0e0a07;
    --dw-panel: #100c09;
    --dw-leather-base: #2a1810;
    --dw-leather-mid: #3d261b;
    --dw-leather-hi: #5c3d2e;
    --dw-leather-lo: #140c08;
    --dw-gold-1: #f7e7a8;
    --dw-gold-2: #e4c77a;
    --dw-gold-3: #c9a45c;
    --dw-gold-4: #8e6d3d;
    --dw-gold-5: #5a4218;
    --dw-gold-6: #3a2c10;
    --dw-text: #f3ead8;
    --dw-text-muted: #b8a68c;
    --dw-nav: #dcc9a4;
    --dw-frame-pad: clamp(1rem, 3.5vw, 2.75rem);
    --dw-font-display: "Cinzel", "Palatino Linotype", Palatino, Georgia, serif;
    --dw-font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

    /* Metallic gold bar gradient (shared) */
    --dw-gold-bar:
        linear-gradient(
            180deg,
            #f8ecc0 0%,
            #e8d090 12%,
            #c9a45c 38%,
            #7a5a28 62%,
            #4a3810 82%,
            #d4b46a 100%
        );

    --dw-gold-bar-h:
        linear-gradient(
            90deg,
            var(--dw-gold-6) 0%,
            var(--dw-gold-4) 8%,
            var(--dw-gold-1) 22%,
            var(--dw-gold-3) 50%,
            var(--dw-gold-1) 78%,
            var(--dw-gold-4) 92%,
            var(--dw-gold-6) 100%
        );

    /* CSS leather: color mottling + micro-grain (no image required) */
    --dw-leather-css:
        radial-gradient(ellipse 120% 80% at 18% 22%, rgba(92, 61, 46, 0.35) 0%, transparent 52%),
        radial-gradient(ellipse 90% 70% at 78% 68%, rgba(20, 12, 8, 0.55) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 42% 80%, rgba(61, 38, 27, 0.4) 0%, transparent 60%),
        repeating-radial-gradient(
            circle at 20% 30%,
            rgba(0, 0, 0, 0.07) 0 0.6px,
            transparent 0.7px 2.4px
        ),
        repeating-radial-gradient(
            circle at 70% 60%,
            rgba(255, 210, 160, 0.035) 0 0.5px,
            transparent 0.6px 2.8px
        ),
        linear-gradient(165deg, #3a2418 0%, #2a1810 40%, #1a100c 72%, #120c08 100%);

    /* Optional photo leather (tiled) — blended under CSS overlays */
    --dw-leather-photo: url("../img/leather.png");

    --dw-mail:
        repeating-linear-gradient(
            45deg,
            transparent 0,
            transparent 6px,
            rgba(201, 164, 92, 0.2) 6px,
            rgba(201, 164, 92, 0.2) 7px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent 0,
            transparent 6px,
            rgba(90, 70, 40, 0.28) 6px,
            rgba(90, 70, 40, 0.28) 7px
        );
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body.dw-body {
    margin: 0;
    min-height: 100dvh;
    height: 100dvh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* page itself doesn't scroll; tall box content can */
    background-color: var(--dw-bg);
    color: var(--dw-text);
    font-family: var(--dw-font-body);
    font-size: 1.05rem;
    line-height: 1.6;
}

.dw-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   TOP BAR — leather field + gold rail
   ============================================================ */

.dw-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    flex-shrink: 0;
    isolation: isolate;
    background-color: var(--dw-leather-base);
    background-image:
        linear-gradient(180deg, rgba(255, 220, 170, 0.07) 0%, transparent 42%, rgba(0, 0, 0, 0.45) 100%),
        var(--dw-leather-css),
        var(--dw-leather-photo);
    background-size: auto, auto, 280px 280px;
    background-blend-mode: normal, normal, multiply;
    border-bottom: none;
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 230, 190, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.65);
}

/* Grain / pore overlay (SVG noise) */
.dw-topbar::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.28;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.85'/%3E%3C/svg%3E");
    background-size: 180px 180px;
}

/* Gold bar under the toolbar */
.dw-topbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    height: 4px;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255, 245, 210, 0.55) 0%, transparent 45%),
        var(--dw-gold-bar-h);
    box-shadow:
        0 1px 0 rgba(0, 0, 0, 0.75),
        0 0 12px rgba(228, 199, 122, 0.35);
}

.dw-navbar {
    position: relative;
    z-index: 1;
    padding: clamp(0.35rem, 1.2vh, 0.65rem) 0 clamp(0.4rem, 1.4vh, 0.75rem);
}

.dw-nav-inner {
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: clamp(0.75rem, 3vw, 1.5rem);
}

.dw-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--dw-gold-2) !important;
    min-width: 0;
}

.dw-brand:hover,
.dw-brand:focus-visible {
    color: var(--dw-gold-1) !important;
}

.dw-brand-mark {
    height: 2.45rem;
    width: auto;
    flex-shrink: 0;
    filter:
        drop-shadow(0 0 4px rgba(247, 231, 168, 0.35))
        drop-shadow(0 2px 4px rgba(0, 0, 0, 0.65));
}

.dw-brand-name {
    font-family: var(--dw-font-display);
    font-weight: 700;
    font-size: clamp(0.8rem, 1.8vw, 1.08rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    background: linear-gradient(180deg, #fff6d0 0%, #e4c77a 42%, #a67c2d 78%, #f0d78c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.85));
}

.dw-navbar .navbar-toggler {
    border: 1px solid rgba(201, 164, 92, 0.55);
    background:
        linear-gradient(180deg, rgba(255, 220, 160, 0.08), transparent),
        var(--dw-leather-css);
    padding: 0.4rem 0.55rem;
    box-shadow:
        0 0 0 1px var(--dw-gold-5),
        0 0 0 2px var(--dw-gold-3),
        inset 0 1px 0 rgba(255, 230, 180, 0.15);
}

.dw-navbar .navbar-toggler:focus {
    box-shadow:
        0 0 0 1px var(--dw-gold-5),
        0 0 0 2px var(--dw-gold-2),
        0 0 0 0.2rem rgba(201, 164, 92, 0.35);
}

.dw-navbar .navbar-toggler-icon {
    filter: invert(0.85) sepia(0.45) saturate(2.2) hue-rotate(5deg);
}

.dw-nav-list {
    align-items: center;
    gap: 0.2rem;
}

.dw-nav-list .nav-link {
    color: var(--dw-nav);
    font-family: var(--dw-font-display);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.55rem 0.9rem !important;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.dw-nav-list .nav-link:hover,
.dw-nav-list .nav-link:focus {
    color: var(--dw-gold-1);
}

.dw-nav-list .nav-link.active {
    color: var(--dw-gold-1);
    text-shadow:
        0 0 10px rgba(247, 231, 168, 0.35),
        0 1px 2px rgba(0, 0, 0, 0.75);
}

/* Active gold underline bar */
.dw-nav-list .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.15rem;
    height: 3px;
    border-radius: 1px;
    background: var(--dw-gold-bar-h);
    box-shadow:
        0 0 8px rgba(228, 199, 122, 0.55),
        0 1px 0 rgba(0, 0, 0, 0.5);
}

/* ============================================================
   FRAME — layered gold pinstripes + chainmail corners
   ============================================================ */

.dw-shell {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: clamp(0.4rem, 1.4vh, 1.1rem) clamp(0.6rem, 2vw, 1.5rem);
    background:
        radial-gradient(ellipse at 50% 0%, #1c1410 0%, var(--dw-bg) 62%);
}

.dw-frame {
    flex: 1 1 auto;
    min-height: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 1120px;
    height: 100%;
    max-height: 100%;
    position: relative;
    border-radius: 1.15rem;
    overflow-x: hidden;
    overflow-y: auto; /* scroll only when box content is very tall */
    background-color: var(--dw-panel);
    border: 1px solid var(--dw-gold-5);
    box-shadow:
        /* outer gold bars */
        0 0 0 1px var(--dw-gold-3),
        0 0 0 2px var(--dw-gold-6),
        0 0 0 4px #1a120c,
        0 0 0 5px var(--dw-gold-4),
        0 0 0 6px var(--dw-gold-6),
        0 0 0 9px #0c0907,
        0 22px 50px rgba(0, 0, 0, 0.7),
        inset 0 0 90px rgba(0, 0, 0, 0.5);
}

.dw-frame-ornament {
    position: absolute;
    width: min(40%, 300px);
    height: min(40%, 300px);
    z-index: 1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(12, 8, 6, 0.25), rgba(12, 8, 6, 0.25)),
        var(--dw-mail),
        var(--dw-leather-photo);
    background-size: auto, 20px 20px, 160px 160px;
    background-blend-mode: normal, normal, multiply;
    opacity: 0.95;
}

.dw-frame-ornament--tl {
    top: 0;
    left: 0;
    border-top-left-radius: 1rem;
    mask-image: radial-gradient(ellipse 100% 100% at 0% 0%, #000 18%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 100% 100% at 0% 0%, #000 18%, transparent 70%);
}

.dw-frame-ornament--tr {
    top: 0;
    right: 0;
    border-top-right-radius: 1rem;
    mask-image: radial-gradient(ellipse 100% 100% at 100% 0%, #000 18%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 100% 100% at 100% 0%, #000 18%, transparent 70%);
}

.dw-frame-ornament--bl {
    bottom: 0;
    left: 0;
    border-bottom-left-radius: 1rem;
    mask-image: radial-gradient(ellipse 100% 100% at 0% 100%, #000 18%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 100% 100% at 0% 100%, #000 18%, transparent 70%);
}

.dw-frame-ornament--br {
    bottom: 0;
    right: 0;
    border-bottom-right-radius: 1rem;
    mask-image: radial-gradient(ellipse 100% 100% at 100% 100%, #000 18%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 100% 100% at 100% 100%, #000 18%, transparent 70%);
}

.dw-frame-diamond {
    position: absolute;
    bottom: -1px;
    left: 50%;
    z-index: 3;
    width: 16px;
    height: 16px;
    transform: translate(-50%, 50%) rotate(45deg);
    background: var(--dw-gold-bar);
    border: 1px solid var(--dw-gold-1);
    box-shadow:
        0 0 12px rgba(228, 199, 122, 0.55),
        inset 0 1px 0 rgba(255, 255, 220, 0.45);
    pointer-events: none;
}

.dw-frame-diamond--top {
    top: -1px;
    bottom: auto;
    transform: translate(-50%, -50%) rotate(45deg);
}

.dw-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    height: 100%;
}

/* ============================================================
   HOME HERO
   ============================================================ */

.dw-frame--hero {
    background-color: #0d0b09;
    background-image:
        linear-gradient(
            180deg,
            rgba(8, 6, 4, 0.62) 0%,
            rgba(8, 6, 4, 0.32) 38%,
            rgba(8, 6, 4, 0.78) 100%
        ),
        radial-gradient(ellipse 75% 55% at 50% 42%, transparent 0%, rgba(8, 6, 4, 0.75) 100%),
        url("../img/hero-worlds.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.dw-hero {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(0.75rem, 4.5vh, 3.5rem) var(--dw-frame-pad);
}

.dw-hero-inner {
    max-width: 42rem;
    margin-inline: auto;
    width: 100%;
}

.dw-hero-title {
    font-family: var(--dw-font-display);
    font-weight: 700;
    font-size: clamp(1.55rem, 5.2vh, 3.2rem);
    letter-spacing: 0.045em;
    line-height: 1.12;
    margin: 0 0 clamp(0.55rem, 1.6vh, 1.1rem);
    background: linear-gradient(180deg, #fff8d8 0%, #e8d090 38%, #a67c2d 78%, #f0d78c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 18px rgba(201, 164, 92, 0.25));
}

.dw-hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    margin-bottom: clamp(0.6rem, 1.8vh, 1.25rem);
}

.dw-hero-divider-line {
    display: block;
    width: min(7.5rem, 24vw);
    height: 3px;
    border-radius: 1px;
    background: var(--dw-gold-bar-h);
    box-shadow: 0 0 8px rgba(228, 199, 122, 0.4);
    opacity: 0.95;
}

.dw-hero-divider-gem {
    display: block;
    width: 11px;
    height: 11px;
    transform: rotate(45deg);
    background: var(--dw-gold-bar);
    border: 1px solid var(--dw-gold-1);
    box-shadow:
        0 0 10px rgba(247, 231, 168, 0.55),
        inset 0 1px 0 rgba(255, 255, 230, 0.5);
    flex-shrink: 0;
}

.dw-hero-lead {
    color: var(--dw-text-muted);
    font-size: clamp(0.92rem, 2.2vh, 1.12rem);
    font-weight: 400;
    line-height: 1.5;
    margin: 0 0 clamp(1rem, 3vh, 2rem);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.9);
}

.dw-hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(0.55rem, 1.5vh, 1rem) 1.15rem;
}

/* ============================================================
   BUTTONS — gold bar frame + recessed leather face
   ============================================================ */

.dw-btn {
    display: inline-flex;
    padding: 3px;
    min-width: 11.25rem;
    border-radius: 0.45rem;
    text-decoration: none;
    color: var(--dw-gold-1);
    background: var(--dw-gold-bar);
    box-shadow:
        0 1px 0 rgba(255, 245, 210, 0.45),
        0 0 0 1px var(--dw-gold-6),
        0 6px 16px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 230, 0.35),
        inset 0 -1px 0 rgba(40, 28, 8, 0.65);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.dw-btn-face {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.78rem 1.4rem;
    border-radius: 0.28rem;
    font-family: var(--dw-font-display);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dw-gold-1);
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.9),
        0 0 8px rgba(201, 164, 92, 0.25);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: var(--dw-leather-base);
    background-image:
        linear-gradient(180deg, rgba(255, 220, 170, 0.08) 0%, transparent 35%, rgba(0, 0, 0, 0.5) 100%),
        var(--dw-leather-css),
        var(--dw-leather-photo);
    background-size: auto, auto, 220px 220px;
    background-blend-mode: normal, normal, multiply;
    box-shadow:
        inset 0 2px 5px rgba(0, 0, 0, 0.75),
        inset 0 -1px 0 rgba(255, 220, 160, 0.08),
        inset 0 0 0 1px rgba(0, 0, 0, 0.45);
}

/* Pore grain on button face */
.dw-btn-face::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.32;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 120px 120px;
}

.dw-btn-face > * {
    position: relative;
    z-index: 1;
}

.dw-btn:hover,
.dw-btn:focus-visible {
    color: #fff8e0;
    text-decoration: none;
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow:
        0 1px 0 rgba(255, 245, 210, 0.55),
        0 0 0 1px var(--dw-gold-5),
        0 0 18px rgba(228, 199, 122, 0.35),
        0 8px 20px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 230, 0.45),
        inset 0 -1px 0 rgba(40, 28, 8, 0.65);
}

.dw-btn:hover .dw-btn-face,
.dw-btn:focus-visible .dw-btn-face {
    color: #fff8e0;
}

.dw-btn:active {
    transform: translateY(0);
    filter: brightness(0.97);
}

.dw-btn-icon {
    flex-shrink: 0;
    width: 1.15rem;
    height: 1.15rem;
    opacity: 0.95;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.7));
}

/* ============================================================
   INNER PAGES + FOOTER
   ============================================================ */

.dw-page-about .dw-frame,
.dw-page-connect .dw-frame,
.dw-page-support .dw-frame,
.dw-page-play .dw-frame,
.dw-page-gallery .dw-frame,
.dw-page-404 .dw-frame {
    background-image:
        linear-gradient(180deg, rgba(14, 10, 8, 0.82) 0%, rgba(14, 10, 8, 0.9) 100%),
        var(--dw-mail),
        var(--dw-leather-photo);
    background-size: auto, 20px 20px, 240px 240px;
    background-blend-mode: normal, normal, multiply;
}

/* Shared inner-page panel */
.dw-page {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 42rem;
    margin-inline: auto;
    padding: clamp(1rem, 3.5vh, 2rem) var(--dw-frame-pad) clamp(1.25rem, 4vh, 2.25rem);
    overflow-y: auto;
}

.dw-page--center {
    justify-content: center;
    text-align: center;
}

.dw-page-head {
    flex-shrink: 0;
    text-align: center;
    margin-bottom: clamp(0.85rem, 2.2vh, 1.35rem);
}

.dw-page-title {
    font-family: var(--dw-font-display);
    font-weight: 700;
    font-size: clamp(1.45rem, 3.5vh, 2rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 0.5rem;
    background: linear-gradient(180deg, #fff8d8 0%, #e8d090 40%, #a67c2d 80%, #f0d78c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.75));
}

.dw-page-lead {
    color: var(--dw-text-muted);
    font-size: clamp(0.95rem, 2vh, 1.08rem);
    line-height: 1.5;
    margin: 0;
}

.dw-page-prose {
    color: var(--dw-text-muted);
    font-size: 1.02rem;
    line-height: 1.65;
}

.dw-page-prose p {
    margin: 0 0 1rem;
}

.dw-page-prose p:last-child {
    margin-bottom: 0;
}

.dw-page-prose strong {
    color: var(--dw-gold-2);
    font-weight: 600;
}

.dw-page-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1rem;
    margin-top: clamp(1.1rem, 3vh, 1.75rem);
}

.dw-page-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.dw-page-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 1rem;
    text-decoration: none;
    color: var(--dw-gold-1);
    font-family: var(--dw-font-display);
    font-size: 0.92rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 0.35rem;
    background:
        linear-gradient(180deg, rgba(255, 220, 170, 0.06), rgba(0, 0, 0, 0.35)),
        var(--dw-leather-css);
    box-shadow:
        0 0 0 1px var(--dw-gold-5),
        0 0 0 2px rgba(201, 164, 92, 0.45),
        inset 0 1px 0 rgba(255, 230, 180, 0.1);
    transition: filter 0.15s ease, transform 0.15s ease;
}

.dw-page-list a:hover,
.dw-page-list a:focus-visible {
    color: #fff8e0;
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.dw-page-list-meta {
    color: var(--dw-text-muted);
    font-family: var(--dw-font-body);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    text-transform: none;
}

.dw-page-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--dw-text-muted);
    text-align: center;
}

.dw-page-signoff {
    margin-top: 0.25rem;
    font-style: italic;
}

.dw-404-code {
    font-family: var(--dw-font-display);
    font-weight: 700;
    font-size: clamp(2.5rem, 8vh, 4rem);
    letter-spacing: 0.12em;
    margin: 0 0 0.25rem;
    background: linear-gradient(180deg, #fff8d8 0%, #e8d090 40%, #a67c2d 80%, #f0d78c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.75));
    line-height: 1;
}

/* Legacy stub aliases (kept for safety) */
.dw-stub {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(1.25rem, 5vh, 3.5rem) var(--dw-frame-pad);
}

.dw-stub-title {
    font-family: var(--dw-font-display);
    font-weight: 700;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    letter-spacing: 0.06em;
    background: linear-gradient(180deg, #fff6d0, #c9a45c 70%, #e8d090);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
    margin-bottom: 0.75rem;
}

.dw-stub-text {
    color: var(--dw-text-muted);
    font-size: 1.1rem;
    margin: 0;
}

/* ============================================================
   GALLERY — scrolling screenshot grid
   Drop files in assets/gallery/
   ============================================================ */

.dw-gallery {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: clamp(0.85rem, 2.5vh, 1.5rem) var(--dw-frame-pad) clamp(1rem, 3vh, 1.75rem);
    width: 100%;
    max-width: 64rem;
    margin-inline: auto;
}

.dw-gallery-head {
    flex-shrink: 0;
    text-align: center;
    margin-bottom: clamp(0.75rem, 2vh, 1.25rem);
}

.dw-gallery-title {
    font-family: var(--dw-font-display);
    font-weight: 700;
    font-size: clamp(1.45rem, 3.5vh, 2rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 0.5rem;
    background: linear-gradient(180deg, #fff8d8 0%, #e8d090 40%, #a67c2d 80%, #f0d78c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.75));
}

.dw-gallery-lead {
    color: var(--dw-text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.dw-code {
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: 0.85em;
    color: var(--dw-gold-2);
    background: rgba(0, 0, 0, 0.35);
    padding: 0.1em 0.4em;
    border-radius: 0.2rem;
    border: 1px solid rgba(201, 164, 92, 0.25);
}

.dw-gallery-empty {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    border: 1px dashed rgba(201, 164, 92, 0.35);
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.25);
}

.dw-gallery-empty-text {
    font-family: var(--dw-font-display);
    color: var(--dw-gold-2);
    letter-spacing: 0.06em;
    margin: 0 0 0.5rem;
}

.dw-gallery-empty-hint {
    color: var(--dw-text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.dw-gallery-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0.15rem 0.35rem 0.5rem;
    scroll-behavior: smooth;
    border-radius: 0.4rem;
    scrollbar-width: thin;
    scrollbar-color: var(--dw-gold-3) rgba(0, 0, 0, 0.35);
}

.dw-gallery-scroll:focus-visible {
    outline: 2px solid var(--dw-gold-3);
    outline-offset: 2px;
}

.dw-gallery-scroll::-webkit-scrollbar {
    width: 8px;
}

.dw-gallery-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 4px;
}

.dw-gallery-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--dw-gold-2), var(--dw-gold-5));
    border-radius: 4px;
}

.dw-gallery-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1.15rem;
}

.dw-gallery-item {
    margin: 0;
}

.dw-gallery-card {
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 0.4rem;
    overflow: hidden;
    background: rgba(8, 6, 4, 0.55);
    box-shadow:
        0 0 0 1px var(--dw-gold-5),
        0 0 0 2px rgba(201, 164, 92, 0.4),
        0 6px 16px rgba(0, 0, 0, 0.4);
}

.dw-gallery-link {
    display: block;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    background: #0a0806;
    aspect-ratio: 16 / 9;
    transition: filter 0.2s ease;
}

.dw-gallery-link:hover,
.dw-gallery-link:focus-visible {
    filter: brightness(1.06);
}

.dw-gallery-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.dw-gallery-caption {
    flex: 1 1 auto;
    padding: 0.75rem 0.85rem 0.9rem;
    border-top: 1px solid rgba(201, 164, 92, 0.28);
    background:
        linear-gradient(180deg, rgba(255, 220, 170, 0.05), rgba(0, 0, 0, 0.35)),
        var(--dw-leather-css);
}

.dw-gallery-caption-title {
    font-family: var(--dw-font-display);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dw-gold-1);
    margin: 0 0 0.4rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}

.dw-gallery-caption-blurb {
    margin: 0;
    color: var(--dw-text-muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.dw-lightbox {
    border: none;
    padding: 0;
    max-width: min(96vw, 1100px);
    max-height: 92vh;
    background: transparent;
    color: var(--dw-text);
}

.dw-lightbox::backdrop {
    background: rgba(4, 3, 2, 0.88);
}

.dw-lightbox[open] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
}

.dw-lightbox-img {
    display: block;
    max-width: 100%;
    max-height: min(62vh, 720px);
    width: auto;
    height: auto;
    border-radius: 0.35rem;
    box-shadow:
        0 0 0 1px var(--dw-gold-5),
        0 0 0 2px var(--dw-gold-3),
        0 0 0 3px var(--dw-gold-6),
        0 16px 40px rgba(0, 0, 0, 0.65);
}

.dw-lightbox-caption {
    text-align: center;
    max-width: 36rem;
    padding: 0 0.5rem;
}

.dw-lightbox-title {
    font-family: var(--dw-font-display);
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dw-gold-1);
    margin: 0 0 0.35rem;
}

.dw-lightbox-blurb {
    margin: 0;
    color: var(--dw-text-muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.dw-lightbox-close-form {
    align-self: flex-end;
    margin: 0;
}

.dw-lightbox-close {
    appearance: none;
    border: 1px solid var(--dw-gold-4);
    background: var(--dw-gold-bar);
    color: #1a1208;
    font-size: 1.4rem;
    line-height: 1;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.3rem;
    cursor: pointer;
    font-weight: 700;
}

.dw-lightbox-close:hover,
.dw-lightbox-close:focus-visible {
    filter: brightness(1.1);
}

.dw-lightbox-nav {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.dw-lightbox-nav .dw-btn {
    min-width: 6.5rem;
}

.dw-lightbox-nav .dw-btn-face {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.dw-footer {
    flex-shrink: 0;
    position: relative;
    isolation: isolate;
    background-color: var(--dw-leather-lo);
    background-image:
        linear-gradient(180deg, rgba(255, 220, 170, 0.04), rgba(0, 0, 0, 0.35)),
        var(--dw-leather-css),
        var(--dw-leather-photo);
    background-size: auto, auto, 260px 260px;
    background-blend-mode: normal, normal, multiply;
    border-top: none;
    padding: clamp(0.55rem, 1.4vh, 0.95rem) 0;
    box-shadow: inset 0 1px 0 rgba(201, 164, 92, 0.25);
}

.dw-footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: var(--dw-gold-bar-h);
    box-shadow: 0 0 10px rgba(228, 199, 122, 0.3);
    pointer-events: none;
}

.dw-footer-copy {
    position: relative;
    z-index: 1;
    font-size: 0.82rem;
    color: var(--dw-text-muted);
    letter-spacing: 0.03em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 767.98px) {
    .dw-brand-name {
        letter-spacing: 0.07em;
    }

    .dw-nav-list {
        padding: 0.65rem 0 0.45rem;
        width: 100%;
    }

    .dw-nav-list .nav-item {
        width: 100%;
        text-align: center;
    }

    .dw-nav-list .nav-link.active::after {
        left: 28%;
        right: 28%;
    }

    .dw-shell {
        padding: 0.4rem 0.5rem;
    }

    .dw-frame {
        border-radius: 0.85rem;
    }

    .dw-frame-ornament {
        width: 50%;
        height: 34%;
        opacity: 0.8;
    }

    .dw-btn {
        width: 100%;
        max-width: 17rem;
    }
}

/* Very short viewports: tighten chrome so hero still fits */
@media (max-height: 700px) {
    .dw-brand-mark {
        height: 1.9rem;
    }

    .dw-btn-face {
        padding: 0.55rem 1.1rem;
        font-size: 0.85rem;
    }

    .dw-hero-cta {
        flex-wrap: nowrap;
    }

    .dw-btn {
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dw-btn {
        transition: none;
    }

    .dw-btn:hover,
    .dw-btn:focus-visible {
        transform: none;
    }
}

/* If leather image fails / offline, CSS stack still reads as leather */
@supports not (background-blend-mode: multiply) {
    .dw-topbar,
    .dw-btn-face,
    .dw-footer {
        background-image:
            linear-gradient(180deg, rgba(255, 220, 170, 0.08), rgba(0, 0, 0, 0.4)),
            var(--dw-leather-css);
    }
}
