/* Deja-Vu — modern promo site (extracted from legacy MODX content) */

:root {
    /* Warm dark neutrals — resort lobby, fine-hotel evening */
    --bg: #131210;
    --bg-elevated: #1c1b17;
    --surface: #25231e;
    --text: #f3f0e8;
    --muted: #9e978a;

    /* Jewel accent — Cabo teal / evening ocean (CTAs, focus, active states) */
    --accent: #2a8a82;
    --accent-deep: #1a5c56;
    --accent-soft: #7fd4cc;

    /* Champagne gold — logo, premium trim */
    --gold: #bfa15a;
    --gold-soft: #e6d4a8;

    --border: #333028;

    /* Accent at opacity (single source for teal washes) */
    --accent-12: rgba(42, 138, 130, 0.12);
    --accent-14: rgba(42, 138, 130, 0.14);
    --accent-15: rgba(42, 138, 130, 0.15);
    --accent-18: rgba(42, 138, 130, 0.18);
    --accent-22: rgba(42, 138, 130, 0.22);
    --accent-35: rgba(42, 138, 130, 0.35);
    --accent-50: rgba(42, 138, 130, 0.5);
    --accent-75: rgba(42, 138, 130, 0.75);
    --accent-92: rgba(42, 138, 130, 0.92);

    /* Validation — wine (reads as alert, distinct from teal actions) */
    --danger-15: rgba(160, 72, 88, 0.2);
    --danger-border: rgba(180, 90, 105, 0.55);
    --danger-text: #e8aeb8;

    --radius: 12px;
    --radius-lg: 20px;
    /* Brand wordmark — Gloucester MT (local on many Windows/Mac with Office); host WOFF2 for universal match */
    --font-logo: "Gloucester MT", "Gloucester", "Gloucester MT Std", "Book Antiqua", Palatino, "Palatino Linotype",
        Georgia, serif;
    --font-display: "Bebas Neue", sans-serif;
    --font-body: "Source Sans 3", system-ui, sans-serif;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    --header-bg: rgba(19, 18, 16, 0.92);
    --chrome-pill: rgba(19, 18, 16, 0.55);
    --chrome-pill-solid: rgba(19, 18, 16, 0.92);
    --ghost-border: rgba(232, 230, 227, 0.38);
    --ghost-fill: rgba(19, 18, 16, 0.35);
    --hero-media-end: #0e0d0b;
    --callout-scrim-end: rgba(19, 18, 16, 0.45);
}

/* Light theme — warm paper, same teal + gold family */
html[data-theme="light"] {
    color-scheme: light;

    --bg: #f4f1ea;
    --bg-elevated: #faf8f3;
    --surface: #ffffff;
    --text: #1a1916;
    --muted: #5e5a52;

    --accent: #237a73;
    --accent-deep: #165a54;
    --accent-soft: #1a6b64;

    --gold: #9a7f3a;
    --gold-soft: #b6914a;

    --border: #e2ddd3;

    --accent-12: rgba(35, 122, 115, 0.1);
    --accent-14: rgba(35, 122, 115, 0.12);
    --accent-15: rgba(35, 122, 115, 0.14);
    --accent-18: rgba(35, 122, 115, 0.16);
    --accent-22: rgba(35, 122, 115, 0.18);
    --accent-35: rgba(35, 122, 115, 0.28);
    --accent-50: rgba(35, 122, 115, 0.45);
    --accent-75: rgba(35, 122, 115, 0.78);
    --accent-92: rgba(35, 122, 115, 0.92);

    --danger-15: rgba(160, 72, 88, 0.12);
    --danger-border: rgba(140, 60, 75, 0.45);
    --danger-text: #8f3545;

    --shadow: 0 14px 44px rgba(28, 24, 18, 0.09);
    --header-bg: rgba(252, 250, 246, 0.94);
    --chrome-pill: rgba(252, 250, 246, 0.78);
    --chrome-pill-solid: rgba(252, 250, 246, 0.94);
    --ghost-border: rgba(26, 25, 22, 0.18);
    --ghost-fill: rgba(255, 255, 255, 0.58);
    --hero-media-end: #ece8e0;
    --callout-scrim-end: rgba(255, 255, 255, 0.72);
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text);
    background:
        radial-gradient(ellipse 120% 80% at 50% -20%, var(--accent-22), transparent 55%),
        radial-gradient(ellipse 90% 55% at 100% 0%, rgba(191, 161, 90, 0.07), transparent 48%),
        var(--bg);
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    color: var(--accent-soft);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

a:hover {
    color: var(--text);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ——— Header ——— */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.site-header__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.75rem max(1.25rem, env(safe-area-inset-right))
        0.75rem max(1.25rem, env(safe-area-inset-left));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--text);
}

.site-logo:hover {
    color: var(--text);
}

.site-logo__mark {
    font-family: var(--font-logo);
    font-size: 1.65rem;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.02em;
    line-height: 1;
    padding: 0.2rem 0.45rem;
    border: 2px solid var(--gold);
    border-radius: 8px;
    color: var(--gold-soft);
}

.site-logo__text {
    font-family: var(--font-logo);
    font-size: 1.45rem;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.04em;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    cursor: pointer;
}

.nav-toggle__bar {
    display: block;
    width: 22px;
    height: 2px;
    margin: 0 auto;
    background: var(--text);
    border-radius: 1px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav__link {
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    color: var(--muted);
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
}

.site-nav__link:hover {
    color: var(--text);
}

.site-nav__link.is-active {
    color: var(--accent-soft);
    border-bottom-color: var(--accent);
}

.site-nav__tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.75rem;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
    line-height: 0;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.theme-toggle:hover {
    color: var(--accent-soft);
    border-color: var(--accent);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.theme-toggle__icon {
    display: block;
}

.theme-toggle__icon--moon {
    display: none;
}

html[data-theme="light"] .theme-toggle__icon--sun {
    display: none;
}

html[data-theme="light"] .theme-toggle__icon--moon {
    display: block;
}

.lang-switch {
    margin: 0;
    font-size: 0.88rem;
}

.lang-switch a {
    font-weight: 600;
    text-decoration: none;
    color: var(--muted);
    padding: 0.35rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: 999px;
}

.lang-switch a:hover {
    color: var(--text);
    border-color: var(--accent);
}

@media (max-width: 860px) {
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1.25rem 1.25rem;
        background: var(--bg-elevated);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        display: none;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav__list {
        flex-direction: column;
        gap: 0.25rem;
    }

    .site-nav__tools {
        margin-top: 0.5rem;
    }
}

/* ——— Main ——— */
.site-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem max(1.25rem, env(safe-area-inset-right)) 4rem
        max(1.25rem, env(safe-area-inset-left));
}

.site-main--home {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
}

.home-below {
    max-width: 1100px;
    margin: 0 auto 3rem;
    padding-left: max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
}

.page-header {
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    font-weight: 400;
    letter-spacing: 0.06em;
    margin: 0;
    line-height: 1.05;
    color: var(--text);
}

.content {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 4vw, 2.25rem);
    box-shadow: var(--shadow);
}

.content--wide {
    max-width: none;
}

.prose {
    color: var(--muted);
}

.prose h2,
.prose h3,
.prose h4 {
    font-family: var(--font-display);
    color: var(--text);
    letter-spacing: 0.04em;
    margin: 1.5rem 0 0.75rem;
    font-weight: 400;
}

.prose h3 {
    font-size: 1.75rem;
}

.prose h4 {
    font-size: 1.2rem;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0;
}

.prose p {
    margin: 0 0 1rem;
}

.prose .lede {
    font-size: 1.15rem;
    color: var(--text);
}

.prose small {
    color: var(--muted);
}

.prose em {
    color: #d4cec4;
}

.prose strong {
    color: var(--text);
}

/* ——— Home hero ——— */
.hero {
    position: relative;
    min-height: min(88vh, 900px);
    min-height: min(88dvh, 900px);
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(145deg, var(--surface) 0%, var(--hero-media-end) 100%);
}

.hero__media:empty {
    min-height: inherit;
}

.hero__grain {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.35;
    mix-blend-mode: overlay;
    background:
        radial-gradient(ellipse 80% 50% at 20% 20%, var(--accent-35), transparent 55%),
        radial-gradient(ellipse 60% 40% at 85% 75%, rgba(255, 255, 255, 0.06), transparent 50%),
        repeating-linear-gradient(
            -12deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.02) 2px,
            rgba(255, 255, 255, 0.02) 3px
        );
}

.hero__scrim {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(8, 8, 10, 0.97) 0%,
        rgba(8, 8, 10, 0.75) 28%,
        rgba(8, 8, 10, 0.25) 55%,
        rgba(8, 8, 10, 0.05) 100%
    );
}

html[data-theme="light"] .hero__scrim {
    background: linear-gradient(
        to top,
        rgba(244, 241, 234, 0.97) 0%,
        rgba(244, 241, 234, 0.72) 28%,
        rgba(244, 241, 234, 0.18) 55%,
        rgba(244, 241, 234, 0) 100%
    );
}

html[data-theme="light"] .hero__grain {
    opacity: 0.2;
    mix-blend-mode: multiply;
}

html[data-theme="light"] .hero__tags {
    color: rgba(26, 25, 22, 0.88);
}

html[data-theme="light"] .prose em {
    color: #6a655c;
}

html[data-theme="light"] .history-page .history-spotlight p {
    color: var(--muted);
}

.hero__content {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 max(1.25rem, env(safe-area-inset-right)) max(1.75rem, env(safe-area-inset-bottom))
        max(1.25rem, env(safe-area-inset-left));
    pointer-events: none;
}

.hero__content-inner {
    pointer-events: auto;
    width: 100%;
    max-width: 1100px;
    animation: hero-in 0.9s ease-out both;
}

@keyframes hero-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero__content-inner {
        animation: none;
    }
}

.hero__kicker {
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-soft);
}

.hero__title {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 14vw, 7.5rem);
    font-weight: 400;
    line-height: 0.92;
    letter-spacing: 0.08em;
    color: var(--text);
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.55);
}

.hero__tags {
    margin: 0 0 1rem;
    font-size: clamp(1rem, 2.8vw, 1.2rem);
    font-weight: 600;
    color: rgba(232, 230, 227, 0.88);
    letter-spacing: 0.02em;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 0.75rem;
}

/* Story block below hero */
.home-story {
    padding: 0 max(1.25rem, env(safe-area-inset-right)) 1rem max(1.25rem, env(safe-area-inset-left));
}

.home-story__wrap {
    max-width: 1100px;
    margin: 0 auto;
}

.home-story__card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.home-story__card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--gold-soft), var(--accent-soft));
    opacity: 0.9;
}

.home-story__label {
    margin: 0 0 1.25rem;
    padding-left: 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-soft);
}

.home-story__grid {
    display: grid;
    gap: 1.25rem 2.5rem;
    padding-left: 0.85rem;
}

@media (min-width: 860px) {
    .home-story__grid {
        grid-template-columns: 1fr 1.05fr;
        align-items: start;
    }
}

.home-story__lead {
    margin: 0;
    font-size: clamp(1.12rem, 2.2vw, 1.35rem);
    font-weight: 600;
    line-height: 1.5;
    color: var(--text);
}

.home-story__body {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--muted);
}

/* Home hero / slideshow (#banner) */
#banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
    touch-action: manipulation;
    height: 100%;
    min-height: min(88vh, 900px);
    min-height: min(88dvh, 900px);
}

.hero__media #banner {
    border-radius: 0;
    border: none;
    min-height: min(88vh, 900px);
    min-height: min(88dvh, 900px);
}

#banner .rslides {
    position: absolute;
    inset: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    touch-action: pan-y;
}

#banner .rslides li {
    display: none;
    margin: 0;
    height: 100%;
}

#banner .rslides li.is-active {
    display: block;
    height: 100%;
}

#banner .rslides img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 35%;
    -webkit-user-drag: none;
    user-select: none;
}

.hero__media .rslides-nav {
    position: absolute;
    bottom: max(12rem, 22vh);
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: min(100%, 320px);
    justify-content: center;
    padding: 0.55rem 1rem 0.65rem;
    border-radius: 999px;
    background: var(--chrome-pill);
    backdrop-filter: blur(10px);
    z-index: 5;
}

#banner > .rslides-nav {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.hero__media .carousel-btn--prev {
    left: max(0.65rem, env(safe-area-inset-left));
}

.hero__media .carousel-btn--next {
    right: max(0.65rem, env(safe-area-inset-right));
}

@media (max-width: 540px) {
    .hero__media .rslides-nav {
        bottom: max(10.25rem, 18vh);
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__actions .btn {
        justify-content: center;
    }
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: min(48px, 12vw);
    height: min(48px, 12vw);
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--chrome-pill);
    color: var(--text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s ease, transform 0.15s ease;
}

.carousel-btn:hover {
    background: var(--accent-75);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.96);
}

.carousel-btn--prev {
    left: max(0.5rem, env(safe-area-inset-left));
}

.carousel-btn--next {
    right: max(0.5rem, env(safe-area-inset-right));
}

.rslides-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem max(0.75rem, env(safe-area-inset-right)) 0.85rem
        max(0.75rem, env(safe-area-inset-left));
    background: var(--surface);
    position: relative;
    z-index: 2;
}

.rslides-dot {
    width: 12px;
    height: 12px;
    min-width: 12px;
    min-height: 12px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease, background 0.2s ease;
}

.rslides-dot.is-active {
    background: var(--accent);
    transform: scale(1.15);
}

@media (prefers-reduced-motion: reduce) {
    .carousel-btn,
    .rslides-dot {
        transition: none;
    }
}

/* Song tables */
.prose table.normal {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    margin: 1rem 0 2rem;
}

.prose table.normal td {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.prose table.normal td.bold {
    font-weight: 700;
    color: var(--accent-soft);
    width: 32%;
}

@media (max-width: 640px) {
    .prose table.normal td.bold {
        display: block;
        width: 100%;
        padding-bottom: 0.15rem;
        border-bottom: none;
    }

    .prose table.normal td:not(.bold) {
        display: block;
        width: 100%;
        padding-top: 0;
        padding-bottom: 0.85rem;
    }
}

/* Songs page — toolbar, A–Z, filter */
.content.songs-page h3 {
    scroll-margin-top: clamp(6rem, 18vw, 8.5rem);
}

.songs-page tr[id^="songs-letter-"] {
    scroll-margin-top: clamp(5.5rem, 16vw, 7.5rem);
}

.songs-toolbar {
    position: sticky;
    top: calc(env(safe-area-inset-top, 0px) + 3.15rem);
    z-index: 35;
    margin: -0.25rem -0.5rem 1.25rem;
    padding: 0.85rem 0.65rem 1rem;
    background: var(--chrome-pill-solid);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

@media (min-width: 861px) {
    .songs-toolbar {
        margin-left: 0;
        margin-right: 0;
    }
}

.songs-toolbar__search {
    margin-bottom: 0.65rem;
}

.songs-toolbar__input {
    width: 100%;
    max-width: 28rem;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
}

.songs-toolbar__input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.songs-toolbar__input::placeholder {
    color: var(--muted);
}

.songs-toolbar__count {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    color: var(--muted);
}

.songs-alpha {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.4rem;
    align-items: center;
    max-height: 5.5rem;
    overflow-y: auto;
    padding-bottom: 0.15rem;
    -webkit-overflow-scrolling: touch;
}

.songs-alpha__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.1rem;
    padding: 0.35rem 0.45rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--muted);
    border: 1px solid var(--border);
    background: var(--surface);
    line-height: 1;
}

.songs-alpha__link:hover {
    color: var(--accent-soft);
    border-color: var(--accent);
}

.prose table.normal tr.songs-row--hidden {
    display: none !important;
}

.songs-to-top {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1.25rem, env(safe-area-inset-bottom));
    z-index: 60;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--accent-92);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.songs-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.songs-to-top:hover {
    filter: brightness(1.08);
}

@media (prefers-reduced-motion: reduce) {
    .songs-to-top {
        transition: none;
    }
}

/* Video page */
.video-page .video-intro {
    margin: 0 0 1.75rem;
    padding: 1.1rem 1.25rem;
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 4.2vw, 2.35rem);
    font-weight: 400;
    letter-spacing: 0.06em;
    line-height: 1.15;
    color: var(--text);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: linear-gradient(135deg, var(--accent-12), var(--surface));
}

.video-page .video-grid {
    margin-top: 0.5rem;
}

/* Video embeds */
.video-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.video-embed {
    position: relative;
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.prose iframe:not(.video-embed iframe) {
    max-width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

/* Gallery */
#gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(120px, 100%), 1fr));
    gap: 0.65rem;
}

#gallery a {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    line-height: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#gallery a:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

#gallery img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

/* Audio samples */
.audio-player-ui {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.audio-player-ui audio {
    width: 100%;
    margin-bottom: 1rem;
}

.track-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 280px;
    overflow-y: auto;
}

.track-list li {
    margin: 0;
    border-bottom: 1px solid var(--border);
}

.track-list button {
    width: 100%;
    text-align: left;
    padding: 0.5rem 0.35rem;
    border: none;
    background: transparent;
    color: var(--muted);
    font-family: inherit;
    font-size: 0.92rem;
    cursor: pointer;
    border-radius: 6px;
}

.track-list button:hover,
.track-list button.is-active {
    color: var(--accent-soft);
    background: var(--accent-12);
}

/* Contact */
.contact-form-wrap {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.contact-form {
    display: grid;
    gap: 1rem;
    max-width: 36rem;
}

.field label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.req {
    color: var(--accent-soft);
}

.field input,
.field textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
}

.field input:focus,
.field textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn--primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: #fff;
    box-shadow: 0 4px 24px var(--accent-22);
}

.btn--primary:hover {
    filter: brightness(1.08);
    color: #fff;
}

.btn--lg {
    padding: 0.88rem 1.4rem;
    font-size: 1.02rem;
}

.btn--ghost {
    background: var(--ghost-fill);
    color: var(--text);
    border: 2px solid var(--ghost-border);
    backdrop-filter: blur(8px);
}

.btn--ghost:hover {
    border-color: var(--accent-soft);
    color: var(--accent-soft);
    background: var(--accent-18);
    filter: none;
}

.form-error {
    background: var(--danger-15);
    border: 1px solid var(--danger-border);
    color: var(--danger-text);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right))
        max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
    overscroll-behavior: contain;
    cursor: zoom-out;
}

.lightbox-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
    max-width: min(96vw, 1100px);
    max-height: min(96dvh, 100%);
    margin: auto;
    pointer-events: none;
}

.lightbox-panel > * {
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: env(safe-area-inset-top, 0px);
    right: 0;
    z-index: 5;
    width: 48px;
    height: 48px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.lightbox-close:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.lightbox-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    flex: 1;
    min-height: 0;
    position: relative;
    padding-top: calc(48px + env(safe-area-inset-top, 0px));
}

.lightbox-nav {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--chrome-pill-solid);
    color: var(--text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.lightbox-nav:hover:not(:disabled) {
    background: var(--accent);
    border-color: var(--accent);
}

.lightbox-nav:disabled {
    opacity: 0.28;
    cursor: not-allowed;
}

.lightbox-stage {
    flex: 1;
    min-width: 0;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: pan-y;
}

.lightbox-img {
    max-width: 100%;
    max-height: min(72vh, 100%);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    -webkit-user-drag: none;
    user-select: none;
}

.lightbox-counter {
    margin: 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (max-width: 520px) {
    .lightbox-row {
        gap: 0.2rem;
    }

    .lightbox-nav {
        width: 44px;
        height: 44px;
        min-width: 40px;
        min-height: 40px;
        font-size: 1.35rem;
    }
}

/* ——— History page ——— */
.content.history-page {
    padding-top: clamp(1.35rem, 3.5vw, 2rem);
    padding-bottom: clamp(2rem, 4vw, 2.75rem);
}

.history-page-grid--photos {
    display: grid;
    gap: clamp(1.75rem, 4vw, 2.75rem);
    max-width: 58rem;
    margin: 0 auto;
    align-items: start;
}

@media (min-width: 960px) {
    .history-page-grid--photos {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
        gap: clamp(2rem, 4vw, 3rem);
    }

    .history-page-grid--photos .history-visual {
        position: sticky;
        top: 5.25rem;
    }
}

.history-visual {
    position: relative;
    isolation: isolate;
    padding-bottom: 0.5rem;
}

.history-photo {
    margin: 0;
}

.history-photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    object-fit: cover;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow);
}

.history-photo--primary img {
    outline: 1px solid var(--accent-50);
    outline-offset: 5px;
}

.history-photo--secondary {
    width: 76%;
    margin: -14% 0 0 auto;
    position: relative;
    z-index: 2;
}

.history-photo--secondary img {
    aspect-ratio: 1;
    border: 3px solid var(--bg-elevated);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.55);
    transform: rotate(2.25deg);
}

@media (max-width: 959px) {
    .history-photo--secondary {
        width: 68%;
        margin-top: -12%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .history-photo--secondary img {
        transform: none;
    }
}

.history-page .history-page-grid--photos .history-article {
    max-width: none;
    margin: 0;
}

.history-page .history-article {
    max-width: 42rem;
    margin: 0 auto;
}

.history-page .history-lead {
    margin: 0 0 1.65rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    font-size: clamp(1.22rem, 2.6vw, 1.48rem);
    font-weight: 600;
    line-height: 1.55;
    color: var(--text);
    letter-spacing: 0.01em;
}

.history-page .history-body {
    margin: 0 0 1.75rem;
    font-size: 1.06rem;
    line-height: 1.78;
    color: var(--muted);
}

.history-page .history-spotlight {
    margin: 0 0 2rem;
    padding: 1.35rem 1.35rem 1.35rem 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    background: linear-gradient(120deg, var(--accent-14) 0%, var(--surface) 45%, var(--bg-elevated) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.history-page .history-spotlight p {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.75;
    color: #c4bfb8;
}

.history-page .history-callout {
    margin: 0;
    padding: 1.65rem 1.25rem;
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4.5vw, 2.35rem);
    font-weight: 400;
    line-height: 1.18;
    letter-spacing: 0.07em;
    color: var(--text);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--accent-18) 0%, var(--callout-scrim-end) 100%);
    border: 1px solid var(--accent-35);
    text-wrap: balance;
}

@media (max-width: 520px) {
    .history-page .history-spotlight {
        padding: 1.15rem 1.1rem 1.15rem 1rem;
    }
}

/* Footer */
.site-footer {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem max(1.25rem, env(safe-area-inset-right)) calc(3rem + env(safe-area-inset-bottom))
        max(1.25rem, env(safe-area-inset-left));
    text-align: center;
    color: var(--muted);
    font-size: 0.88rem;
    border-top: 1px solid var(--border);
}

.site-footer__social {
    margin-bottom: 1rem;
}

.site-footer__social a {
    font-weight: 600;
    text-decoration: none;
}

.site-footer__copy {
    max-width: 36rem;
    margin: 0 auto 0.75rem;
    line-height: 1.5;
}

.site-footer__credit {
    margin: 0;
}

.site-footer__credit a {
    text-decoration: none;
}
