:root {
    --gold:          #CCAC7E;
    --gold-dark:     #A88D5F;
    --gold-light:    #E6D0AE;
    --gold-glow:     rgba(204, 172, 126, 0.18);

    --bg:            #0C0C0C;
    --bg-card:       #141414;
    --bg-card-hover: #1C1C1C;
    --bg-overlay:    rgba(12, 12, 12, 0.92);

    --border:        rgba(204, 172, 126, 0.12);
    --border-hover:  rgba(204, 172, 126, 0.40);
    --border-subtle: rgba(255, 255, 255, 0.06);

    --text:          #F2EDE6;
    --text-muted:    rgba(242, 237, 230, 0.50);
    --text-faint:    rgba(242, 237, 230, 0.22);

    --radius-lg: 14px;
    --radius-md: 8px;
    --radius-sm: 5px;

    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
    --ease-card: cubic-bezier(0.4, 0, 0.2, 1);

    --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.35);
    --shadow-lift: 0 12px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--border-hover);
    --shadow-lb:   0 40px 100px rgba(0, 0, 0, 0.80);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    color-scheme: dark;
}

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

body.no-scroll { overflow: hidden; }

img, video { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; color: inherit; font: inherit; padding: 0; }
a { color: inherit; text-decoration: none; }

/* ── Site Header ────────────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 52px;
    background: linear-gradient(to bottom,
        rgba(12, 12, 12, 0.90) 0%,
        rgba(12, 12, 12, 0.00) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.site-header__logo img {
    height: 30px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: opacity 0.2s ease;
}
.site-header__logo:hover img { opacity: 1; }

.site-header__badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 8px var(--gold);
    animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.75); }
}

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    padding: 0 52px 88px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 65% 55% at 85% 45%, rgba(204, 172, 126, 0.065) 0%, transparent 68%),
        radial-gradient(ellipse 45% 60% at 15% 85%, rgba(204, 172, 126, 0.040) 0%, transparent 62%);
    pointer-events: none;
}

.hero__bg-word {
    position: absolute;
    right: -0.04em;
    top: 50%;
    transform: translateY(-54%);
    font-family: var(--font-display);
    font-size: clamp(130px, 20vw, 280px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(204, 172, 126, 0.07);
    pointer-events: none;
    user-select: none;
}

.hero__inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 28px;
}
.hero__eyebrow::before {
    content: '';
    display: block;
    width: 36px; height: 1px;
    background: var(--gold);
    flex-shrink: 0;
}

.hero__headline {
    font-family: var(--font-display);
    font-size: clamp(64px, 10.5vw, 130px);
    font-weight: 400;
    line-height: 0.92;
    letter-spacing: -0.025em;
    color: var(--text);
    margin-bottom: 32px;
}
.hero__headline em {
    font-style: italic;
    color: var(--gold);
}

.hero__sub {
    font-size: clamp(14px, 1.6vw, 17px);
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 500px;
    margin-bottom: 56px;
}

.hero__stats {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 52px;
}

.hero__stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 44px;
}

.hero__stat-num {
    font-family: var(--font-display);
    font-size: clamp(40px, 5vw, 58px);
    font-weight: 500;
    color: var(--gold);
    line-height: 1;
}

.hero__stat-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--text-muted);
    line-height: 1.5;
}
.hero__stat-label small {
    font-size: 10px;
    color: var(--text-faint);
    letter-spacing: 0.08em;
    display: block;
}

.hero__stat-divider {
    width: 1px;
    height: 52px;
    background: var(--border);
    margin-right: 44px;
    flex-shrink: 0;
}

.hero__scroll {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 12px 22px;
    border-radius: 100px;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.hero__scroll:hover {
    color: var(--gold);
    border-color: var(--border-hover);
    background: var(--gold-glow);
}
.hero__scroll svg { flex-shrink: 0; }

/* ── Library Sections ───────────────────────────────────────────── */
.lib-section {
    padding: 120px 52px;
    position: relative;
}
.lib-section + .lib-section {
    border-top: 1px solid var(--border-subtle);
}

/* Section header */
.lib-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 72px;
    position: relative;
}

.lib-section__head-bg {
    position: absolute;
    left: -16px;
    bottom: -28px;
    font-family: var(--font-display);
    font-size: clamp(110px, 16vw, 200px);
    font-weight: 600;
    color: transparent;
    -webkit-text-stroke: 1px rgba(204, 172, 126, 0.06);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.lib-section__head-text {
    position: relative;
    z-index: 1;
}

.section-tag {
    display: block;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5.5vw, 60px);
    font-weight: 400;
    letter-spacing: -0.015em;
    line-height: 1.05;
    color: var(--text);
}

.section-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 12px;
}

.section-pill {
    position: relative;
    z-index: 1;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
    border: 1px solid var(--border);
    padding: 8px 18px;
    border-radius: 100px;
    white-space: nowrap;
    margin-bottom: 4px;
}

/* ── Image Grid ─────────────────────────────────────────────────── */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.img-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    transition:
        transform  0.35s var(--ease-card),
        box-shadow 0.35s var(--ease-card),
        border-color 0.35s ease;
}

.img-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lift);
    border-color: var(--border-hover);
}
.img-card:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.img-card__frame {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.img-card__frame img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.65s var(--ease-out);
}
.img-card:hover .img-card__frame img {
    transform: scale(1.045);
}

.img-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(12, 12, 12, 0.88) 0%,
        rgba(12, 12, 12, 0.20) 45%,
        transparent 70%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 18px;
    opacity: 0;
    transition: opacity 0.28s ease;
}
.img-card:hover .img-card__overlay { opacity: 1; }

.img-card__expand-icon {
    position: absolute;
    top: 14px; right: 14px;
    width: 34px; height: 34px;
    background: rgba(204, 172, 126, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    border: 1px solid rgba(204, 172, 126, 0.28);
}

.img-card__label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* ── Video Grid ─────────────────────────────────────────────────── */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
    gap: 16px;
}

.vid-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    transition:
        transform  0.35s var(--ease-card),
        box-shadow 0.35s var(--ease-card),
        border-color 0.35s ease;
}
.vid-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lift);
    border-color: var(--border-hover);
}

.vid-card__frame {
    position: relative;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: #0A0A0A;
}

.vid-card__frame video {
    width: 100%; height: 100%;
    object-fit: cover;
}

.vid-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(12, 12, 12, 0.38);
    cursor: pointer;
    transition: background 0.28s ease;
}
.vid-card__overlay.is-playing { background: transparent; }
.vid-card__overlay.is-playing .vid-play-btn { opacity: 0; }
.vid-card__overlay:hover .vid-play-btn { opacity: 1 !important; transform: scale(1.08); }

.vid-play-btn {
    width: 50px; height: 50px;
    background: rgba(204, 172, 126, 0.92);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0C0C0C;
    padding-left: 3px;
    box-shadow: 0 4px 24px rgba(204, 172, 126, 0.35);
    transition:
        opacity    0.22s ease,
        transform  0.22s var(--ease-out),
        background 0.22s ease;
}
.vid-play-btn:hover { background: var(--gold-light); }

.vid-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 11px 14px;
}

.vid-card__name {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.03em;
}

.vid-fullscreen-btn {
    flex-shrink: 0;
    width: 28px; height: 28px;
    background: var(--bg-card-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-faint);
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.vid-fullscreen-btn:hover {
    color: var(--gold);
    background: var(--gold-glow);
    border-color: var(--border-hover);
}
.vid-fullscreen-btn:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* ── Empty State ────────────────────────────────────────────────── */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 65vh;
    text-align: center;
    padding: 48px 24px;
    gap: 18px;
}

.empty-state__icon { color: var(--text-faint); margin-bottom: 6px; }

.empty-state h3 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 400;
    color: var(--text-muted);
}

.empty-state > p {
    font-size: 14px;
    color: var(--text-faint);
}

.empty-state__paths {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.empty-path {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    font-size: 13px;
}

.empty-path__type {
    color: var(--text-muted);
    font-weight: 500;
    min-width: 80px;
    text-align: left;
}

.empty-path code {
    color: var(--gold);
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 12.5px;
    background: rgba(204, 172, 126, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
}

.empty-path__formats {
    color: var(--text-faint);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
}

/* ── Site Footer ────────────────────────────────────────────────── */
.site-footer {
    padding: 56px 52px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
}

.site-footer__logo {
    height: 26px;
    filter: brightness(0) invert(1);
    opacity: 0.22;
}

.site-footer__note {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
}

/* ── Lightbox ───────────────────────────────────────────────────── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}
.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}
.lightbox:focus { outline: none; }

.lightbox__stage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 64px 80px;
}

.lightbox__stage img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lb);
    animation: lb-fade-in 0.22s var(--ease-out);
}

.lightbox__stage video {
    max-height: 100%;
    max-width: 100%;
    height: 100%;
    aspect-ratio: 9 / 16;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lb);
    animation: lb-fade-in 0.22s var(--ease-out);
}

@keyframes lb-fade-in {
    from { opacity: 0; transform: scale(0.97); }
    to   { opacity: 1; transform: scale(1); }
}

.lightbox__close {
    position: fixed;
    top: 20px; right: 20px;
    z-index: 1010;
    width: 42px; height: 42px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: background 0.2s ease, color 0.2s ease;
}
.lightbox__close:hover {
    background: rgba(204, 172, 126, 0.18);
    color: var(--gold);
}
.lightbox__close:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.lightbox__nav {
    position: fixed;
    top: 50%; transform: translateY(-50%);
    z-index: 1010;
    width: 46px; height: 46px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: background 0.2s ease, color 0.2s ease;
}
.lightbox__nav:hover {
    background: rgba(204, 172, 126, 0.16);
    color: var(--gold);
}
.lightbox__nav:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }

.lightbox__counter {
    position: fixed;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1010;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 18px;
    border-radius: 100px;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .site-header   { padding: 18px 28px; }
    .hero          { padding: 0 28px 72px; }
    .lib-section   { padding: 96px 28px; }
    .site-footer   { padding: 48px 28px; }

    .video-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
    .image-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
}

@media (max-width: 720px) {
    .site-header { padding: 14px 16px; }
    .site-header__badge { display: none; }

    .hero { padding: 0 16px 56px; }
    .hero__bg-word { font-size: 90px; opacity: 0.7; right: -10px; }
    .hero__stats { flex-wrap: wrap; row-gap: 24px; }
    .hero__stat  { padding-right: 28px; }
    .hero__stat-divider { margin-right: 28px; height: 40px; }
    .hero__stat-num { font-size: 40px; }
    .hero__scroll { display: none; }

    .lib-section { padding: 64px 16px; }
    .lib-section__head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 48px; }
    .lib-section__head-bg { font-size: 100px; left: -8px; }

    .image-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .video-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    .site-footer { padding: 40px 16px; }

    .lightbox__stage { padding: 52px 56px; }
    .lightbox__nav--prev { left: 8px; }
    .lightbox__nav--next { right: 8px; }
}

@media (max-width: 400px) {
    .image-grid { grid-template-columns: 1fr; }
    .video-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Reduced Motion ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition:    none !important;
        animation:     none !important;
        scroll-behavior: auto !important;
    }
    .badge-dot { animation: none; }
}