:root {
    --bg: #0b0b12;
    --bg-soft: #151620;
    --panel: rgba(18, 18, 26, 0.84);
    --panel-strong: rgba(17, 18, 28, 0.96);
    --line: rgba(255, 255, 255, 0.1);
    --text: #f8f5ed;
    --muted: #c8c1b6;
    --gold: #f2b84b;
    --gold-soft: #ffd58b;
    --rose: #d86f7f;
    --success: #6fd5a5;
    --danger: #ff6b6b;
    --shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(242, 184, 75, 0.18), transparent 30%),
        radial-gradient(circle at 80% 20%, rgba(216, 111, 127, 0.16), transparent 24%),
        linear-gradient(180deg, #0b0b12, #11131c 55%, #0b0b12);
    min-height: 100vh;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

.site-body,
.admin-body {
    position: relative;
    overflow-x: hidden;
}

.ambient {
    position: fixed;
    inset: auto;
    width: 28rem;
    height: 28rem;
    border-radius: 999px;
    filter: blur(70px);
    opacity: 0.2;
    pointer-events: none;
}

.ambient-one {
    top: 4rem;
    left: -8rem;
    background: var(--gold);
}

.ambient-two {
    right: -7rem;
    bottom: 8rem;
    background: var(--rose);
}

.topbar,
.admin-header {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.4rem 0;
}

.brand {
    font-family: "Fraunces", serif;
    font-size: 1.4rem;
    letter-spacing: 0.02em;
}

.topnav {
    display: flex;
    gap: 1rem;
    color: var(--muted);
}

.topnav a {
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    transition: background 180ms ease, color 180ms ease;
}

.topnav a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

main {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding-bottom: 4rem;
}

.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
    padding: 3rem 0 4rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid rgba(242, 184, 75, 0.35);
    background: rgba(242, 184, 75, 0.08);
    color: var(--gold-soft);
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hero h1,
.section-heading h2,
.about-copy h2,
.admin-header h1,
.contact-card h2 {
    font-family: "Fraunces", serif;
    line-height: 0.95;
    margin: 1rem 0;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6.4rem);
    max-width: 10ch;
}

.hero-text,
.feature-band p,
.media-copy p,
.video-copy p,
.about-copy p,
.about-panel,
.site-footer,
.admin-header p,
.flash,
.empty-copy,
.empty-state p,
.contact-card p,
.contact-details p {
    color: var(--muted);
    line-height: 1.7;
}

.hero-meta,
.hero-actions,
.inline-actions,
.social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.hero-meta {
    margin: 1.15rem 0;
}

.hero-meta span,
.social-row a {
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.55rem 0.9rem;
}

.hero-quote {
    margin: 1.15rem 0;
    padding-left: 1rem;
    border-left: 3px solid rgba(242, 184, 75, 0.5);
    color: var(--gold-soft);
    font-family: "Fraunces", serif;
    font-size: 1.25rem;
    line-height: 1.45;
}

.social-row {
    margin: 1.15rem 0 0;
}

.social-row a {
    transition: border-color 180ms ease, transform 180ms ease;
}

.social-row a:hover {
    border-color: rgba(242, 184, 75, 0.45);
    transform: translateY(-1px);
}

.button,
.circle-button {
    border: 0;
    cursor: pointer;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.8rem 1.2rem;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.circle-button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: linear-gradient(135deg, var(--gold), #ffcf74);
    color: #17120a;
}

.button-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border: 1px solid var(--line);
}

.button-danger {
    background: rgba(255, 107, 107, 0.12);
    color: #ffd5d5;
    border: 1px solid rgba(255, 107, 107, 0.25);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 2rem;
}

.hero-stats article,
.about-panel,
.feature-band,
.media-card,
.video-card,
.admin-card,
.flash,
.empty-state,
.contact-card {
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.hero-stats article {
    border-radius: 1.3rem;
    padding: 1rem;
}

.hero-stats strong {
    display: block;
    font-size: 1.5rem;
    color: var(--gold-soft);
}

.hero-stats span {
    color: var(--muted);
    font-size: 0.92rem;
}

.hero-visual {
    position: relative;
    min-height: 540px;
}

.visual-stack {
    position: relative;
    height: 100%;
}

.stack-card,
.stack-placeholder {
    position: absolute;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stack-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stack-card-1 {
    width: 64%;
    height: 64%;
    top: 0;
    right: 0;
}

.stack-card-2 {
    width: 48%;
    height: 46%;
    left: 0;
    top: 18%;
}

.stack-card-3 {
    width: 56%;
    height: 38%;
    right: 8%;
    bottom: 0;
}

.stack-card-4,
.stack-card-5 {
    display: none;
}

.stack-placeholder {
    display: grid;
    place-items: center;
    text-align: center;
    padding: 1.5rem;
    background:
        linear-gradient(135deg, rgba(242, 184, 75, 0.2), rgba(216, 111, 127, 0.18)),
        rgba(255, 255, 255, 0.06);
}

.stack-placeholder span {
    font-family: "Fraunces", serif;
    font-size: 1.3rem;
    max-width: 10ch;
}

.feature-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 1.6rem;
    margin-bottom: 3rem;
}

.feature-band span,
.section-heading h2,
.media-copy h3,
.video-copy h3,
.admin-card h2,
.list-heading span,
.contact-card h2 {
    color: var(--text);
}

.feature-band span {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--gold-soft);
    font-weight: 700;
}

.gallery-section,
.video-section,
.about-section,
.contact-section {
    margin-top: 4.5rem;
}

.section-heading,
.list-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3.6rem);
    max-width: 11ch;
}

.carousel-controls {
    display: flex;
    gap: 0.8rem;
}

.circle-button {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border: 1px solid var(--line);
    font-size: 1.5rem;
}

.carousel {
    overflow: hidden;
}

.carousel-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 34%);
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.4rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.media-card,
.video-card,
.admin-card,
.empty-state,
.about-panel,
.contact-card {
    border-radius: 1.8rem;
    overflow: hidden;
}

.media-card {
    scroll-snap-align: start;
}

.media-card img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.media-copy,
.video-copy,
.about-panel,
.admin-card,
.contact-card {
    padding: 1.2rem;
}

.media-copy h3,
.video-copy h3,
.admin-card h2 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.video-frame,
.video-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #09090d;
}

.video-frame iframe,
.video-thumb iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.about-section,
.contact-section {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1rem;
    align-items: start;
}

.about-copy h2 {
    font-size: clamp(2rem, 4vw, 4.2rem);
}

.about-panel ul {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
    color: var(--muted);
    line-height: 1.8;
}

.contact-details strong {
    color: var(--gold-soft);
}

.social-row-contact {
    margin-top: 1rem;
}

.site-footer {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1rem 0 2.6rem;
}

.empty-state {
    padding: 2rem;
}

.empty-state h3,
.admin-card code {
    color: var(--text);
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.admin-shell {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2.2rem 0 4rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1.5rem;
}

.admin-header h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.flash {
    padding: 1rem 1.2rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.flash-success {
    border-color: rgba(111, 213, 165, 0.28);
}

.flash-error {
    border-color: rgba(255, 107, 107, 0.28);
}

.login-card {
    max-width: 480px;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.admin-grid-wide {
    grid-template-columns: 1.5fr 0.7fr;
    margin-bottom: 1rem;
}

.admin-list {
    margin-top: 1rem;
}

.admin-form {
    display: grid;
    gap: 0.9rem;
}

.admin-form label {
    display: grid;
    gap: 0.35rem;
}

.admin-form span {
    color: var(--gold-soft);
    font-size: 0.92rem;
}

.admin-form input,
.admin-form textarea {
    width: 100%;
    border-radius: 1rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    padding: 0.9rem 1rem;
}

.item-editor {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1rem;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--line);
}

.item-thumb {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 1.25rem;
}

.compact-form {
    margin-bottom: 0.8rem;
}

.item-editor-video {
    grid-template-columns: minmax(260px, 320px) 1fr;
}

.admin-card code,
.empty-state code {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.55rem;
    padding: 0.15rem 0.4rem;
}

@media (max-width: 980px) {
    .hero,
    .about-section,
    .contact-section,
    .admin-grid,
    .admin-grid-wide {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 420px;
    }

    .feature-band,
    .video-grid {
        grid-template-columns: 1fr;
    }

    .carousel-track {
        grid-auto-columns: minmax(280px, 78%);
    }
}

@media (max-width: 720px) {
    .topbar,
    .topnav,
    .section-heading,
    .list-heading,
    .admin-header,
    .item-editor,
    .item-editor-video {
        display: grid;
    }

    .topbar,
    .admin-header {
        gap: 1rem;
    }

    .topnav {
        grid-auto-flow: column;
        justify-content: start;
        overflow-x: auto;
    }

    .hero {
        padding-top: 2rem;
    }

    .hero h1 {
        max-width: 100%;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 360px;
    }

    .stack-card-1 {
        width: 68%;
    }

    .stack-card-2 {
        width: 48%;
    }

    .stack-card-3 {
        width: 60%;
    }

    .carousel-track {
        grid-auto-columns: 88%;
    }
}
