/* =====================================================
   ALKEMILLA — public site styles
   Mobile-first. Breakpoints: 640, 1024, 1400.
   ===================================================== */

:root {
    /* Forest & Gold palette — Alkemilla brand */
    --bg:                #0D2818;
    --bg-light:          #F0E6CC;
    --bg-soft:           #1A3D2E;
    --fg:                #F0E6CC;
    --fg-dark:           #0D2818;
    --fg-muted:          rgba(240, 230, 204, 0.7);
    --fg-muted-dark:     #6B4A1F;
    --accent:            #D4A83C;
    --accent-warm:       #C44A2C;
    --border-light:      rgba(240, 230, 204, 0.18);
    --border-dark:       rgba(13, 40, 24, 0.12);

    --max:    1400px;
    --pad-x:  clamp(20px, 4vw, 60px);

    /* Typography */
    --font-display: "Cinzel", "Trajan Pro", Georgia, serif;
    --font-italic:  "Cormorant Garamond", "Cormorant SC", Georgia, serif;
    --font:         "IBM Plex Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-mono:    "IBM Plex Mono", "SF Mono", Menlo, monospace;

    --easing: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--fg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.5;
}

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

/* Utility */
.eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
}
.eyebrow-dark { color: var(--fg-muted-dark); }

.section-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--fg-dark);
    margin: 0;
}
.section-head-light .section-title { color: #ffffff; }
.section-head-light .eyebrow { color: rgba(255, 255, 255, 0.7); }

.section-head { margin-bottom: 48px; }
.section-lead {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    max-width: 640px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: 1px solid currentColor;
    background: transparent;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: background 0.3s var(--easing), color 0.3s var(--easing);
    cursor: pointer;
    text-decoration: none;
}
.btn-primary:hover, .btn-primary:focus-visible {
    background: #ffffff;
    color: #0b0b0b;
}
.btn-outline { color: var(--fg-dark); }
.btn-outline:hover { background: var(--fg-dark); color: #ffffff; }
.btn-dark { color: var(--fg-dark); border-color: var(--fg-dark); }
.btn-dark:hover { background: var(--fg-dark); color: #ffffff; }
.btn-link {
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffffff;
    border-bottom: 1px solid currentColor;
    padding-bottom: 4px;
    text-decoration: none;
}

/* =====================================================
   PRELOADER
   ===================================================== */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 1000;
    display: grid;
    place-items: center;
    pointer-events: none;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader-mark {
    font-size: clamp(22px, 4vw, 40px);
    letter-spacing: 0.32em;
    color: rgba(255, 255, 255, 0.85);
    animation: pre-fade 1.2s ease-in-out infinite alternate;
}
@keyframes pre-fade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}
body.is-ready .preloader { opacity: 0; visibility: hidden; }

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    height: 88px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--pad-x);
    background: transparent;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.4s ease, border-color 0.4s ease, height 0.4s var(--easing);
    color: #ffffff;
}
.site-header[data-state="compact"] { height: 64px; }
.site-header[data-state="below-hero"] {
    background: #ffffff;
    color: #000000;
    border-bottom-color: var(--border-dark);
}
.site-header .brand {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.28em;
    transition: color 0.4s ease;
}

.site-nav {
    display: flex;
    align-items: stretch;
    gap: 0;
    height: 100%;
}
.nav-link {
    display: flex;
    align-items: center;
    padding: 0 18px;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background 0.25s ease, color 0.25s ease;
    color: inherit;
}
.nav-link:hover {
    background: currentColor;
}
.nav-link:hover {
    color: var(--bg);
}
.site-header[data-state="below-hero"] .nav-link:hover { color: #ffffff; }

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 14px;
    font-size: 11px;
    letter-spacing: 0.16em;
    color: inherit;
    opacity: 0.85;
}
.lang-switch a { padding: 4px 6px; }
.lang-switch a.is-active { font-weight: 700; opacity: 1; }
.lang-switch a:not(.is-active) { opacity: 0.55; }
.lang-switch a:hover { opacity: 1; }

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 12px;
    color: inherit;
    align-items: center;
    flex-direction: column;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    width: 26px;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 768px) {
    .site-header { height: 64px; padding: 0 20px; }
    .site-nav {
        position: fixed;
        top: 64px;
        right: 0;
        bottom: 0;
        left: 0;
        background: #0b0b0b;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 32px 24px;
        gap: 12px;
        transform: translateY(-110%);
        transition: transform 0.45s var(--easing);
    }
    .site-header[data-state="below-hero"] .site-nav { background: #ffffff; }
    .site-nav.is-open { transform: translateY(0); }
    .nav-link {
        padding: 16px 0;
        font-size: 18px;
        letter-spacing: 0.06em;
        border-bottom: 1px solid currentColor;
    }
    .nav-link:hover { background: transparent; }
    .nav-toggle { display: inline-flex; }
    .nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
    .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .lang-switch { padding: 12px 0; font-size: 14px; }
}

/* =====================================================
   HERO TOP
   ===================================================== */
.hero-top {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: #0b0b0b;
}
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.25) 35%, rgba(0,0,0,0.55));
    z-index: 2;
}
.hero-inner {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    padding: 0 var(--pad-x);
    max-width: var(--max);
    margin: 0 auto;
}
.hero-inner .eyebrow { color: rgba(255,255,255,0.85); margin: 0; }
.hero-title {
    font-size: clamp(40px, 9vw, 108px);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.02;
    color: #ffffff;
    margin: 0;
    max-width: 920px;
    text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
.hero-title span { display: block; }
.hero-sub {
    font-size: clamp(15px, 1.4vw, 18px);
    font-weight: 300;
    line-height: 1.65;
    color: rgba(255,255,255,0.88);
    max-width: 520px;
    margin: 0;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-top: 8px; }

.hero-scroll-cue {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 56px;
    background: rgba(255, 255, 255, 0.22);
    overflow: hidden;
    z-index: 3;
}
.hero-scroll-cue span {
    display: block;
    width: 100%;
    height: 30%;
    background: #ffffff;
    animation: scrollcue 2.4s ease-in-out infinite;
}
@keyframes scrollcue {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(330%); }
}

/* =====================================================
   PHILOSOPHY
   ===================================================== */
.philosophy {
    background: var(--bg-light);
    color: var(--fg-dark);
    padding: clamp(80px, 14vw, 160px) var(--pad-x);
}
.philosophy-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    align-items: flex-start;
}
.philosophy-quote {
    flex: 1 1 600px;
    font-size: clamp(26px, 4vw, 60px);
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin: 0;
}
.philosophy-tags {
    list-style: none;
    margin: 0;
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.philosophy-tags li {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fg-dark);
    border-left: 2px solid var(--accent);
    padding-left: 12px;
}

/* =====================================================
   WORKS / COCKTAIL GRID
   ===================================================== */
.works {
    background: var(--bg-soft);
    color: var(--fg);
    padding: clamp(80px, 12vw, 140px) var(--pad-x);
}
.works-inner { max-width: var(--max); margin: 0 auto; }
.works .section-title { color: var(--fg); }
.works .eyebrow { color: var(--fg-muted); }
.works-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
@media (min-width: 768px) {
    .works-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}
.work-item {
    display: flex;
    flex-direction: column;
    gap: 18px;
    will-change: transform, opacity;
}
.work-image {
    position: relative;
    aspect-ratio: 16 / 11;
    background: #1a1a1a;
    overflow: hidden;
}
.work-image img,
.work-image canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.work-image canvas { pointer-events: none; opacity: 0; }
.work-image canvas.is-active { opacity: 1; }
.work-image:has(canvas.is-active) img { opacity: 0; }
.work-image.has-overlay { cursor: pointer; }
.work-image:focus { outline: 2px solid var(--accent); outline-offset: 4px; }

/* Overlay reveal on hover (desktop) / .is-open (mobile tap toggled by JS) */
.work-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 40, 24, 0.92) 0%, rgba(13, 40, 24, 0.96) 100%);
    color: var(--fg);
    padding: clamp(16px, 3vw, 28px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s var(--easing), transform 0.35s var(--easing);
    pointer-events: none;
    overflow-y: auto;
    z-index: 3;
}
.work-image:hover .work-overlay,
.work-image:focus-visible .work-overlay,
.work-image.is-open .work-overlay {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.work-overlay-inner {
    width: 100%;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.work-overlay-inner h4 {
    margin: 0 0 4px;
    font-size: clamp(18px, 2.4vw, 24px);
    font-family: var(--font-display, inherit);
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--accent);
    text-transform: uppercase;
}
.work-overlay-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(240, 230, 204, 0.9);
}
.work-overlay-label {
    margin: 8px 0 4px;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(240, 230, 204, 0.6);
}
.work-overlay-ings {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    line-height: 1.4;
}
.work-overlay-ings li {
    padding-left: 14px;
    position: relative;
    color: rgba(240, 230, 204, 0.92);
}
.work-overlay-ings li::before {
    content: "·";
    position: absolute;
    left: 4px;
    color: var(--accent);
    font-weight: 700;
}

/* Pure-touch devices: only show via .is-open (no hover) */
@media (hover: none) {
    .work-image:hover .work-overlay { opacity: 0; transform: translateY(8px); pointer-events: none; }
    .work-image.is-open .work-overlay { opacity: 1; transform: translateY(0); pointer-events: auto; }
}

.work-cat {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 8px;
}
.work-name {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 400;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
    line-height: 1.1;
}
.work-tagline {
    font-size: 15px;
    color: var(--fg-muted);
    line-height: 1.5;
    margin: 0 0 16px;
}
.work-stats {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg);
}
.work-stats span {
    padding: 4px 10px;
    border: 1px solid var(--border-light);
    border-radius: 999px;
}

/* =====================================================
   CAPABILITIES
   ===================================================== */
.capabilities {
    position: relative;
    background: #0b0b0b;
    color: #ffffff;
    padding: clamp(80px, 12vw, 140px) var(--pad-x);
    overflow: hidden;
}
.capabilities-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
    z-index: 0;
}
.capabilities-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}
.capabilities-inner { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; }
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }
.service-item {
    border-top: 1px solid rgba(255,255,255,0.18);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.service-num {
    font-size: 12px;
    letter-spacing: 0.18em;
    color: var(--accent);
}
.service-label {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    letter-spacing: -0.005em;
}
.service-detail {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

/* =====================================================
   EVENTS
   ===================================================== */
.events {
    background: var(--bg-soft);
    color: var(--fg);
    padding: clamp(80px, 12vw, 140px) var(--pad-x);
}
.events-inner { max-width: var(--max); margin: 0 auto; }
.events .section-title { color: var(--fg); }
.events .eyebrow { color: var(--fg-muted); }
.events-empty {
    padding: 48px 0;
    color: var(--fg-muted);
    border-top: 1px solid var(--border-light);
    font-size: 16px;
}
.events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
@media (min-width: 768px) { .events-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .events-grid { grid-template-columns: repeat(3, 1fr); } }
.event-card {
    background: #ffffff;
    border: 1px solid var(--border-dark);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.event-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.event-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--easing);
}
.event-card:hover .event-image img { transform: scale(1.04); }
.event-meta { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.event-date {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--fg-muted-dark);
}
.event-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.01em;
    color: var(--fg-dark);
}
.event-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    margin: 0;
}
.event-meta .btn { align-self: flex-start; margin-top: 8px; }

/* =====================================================
   GALLERY
   ===================================================== */
.gallery {
    background: var(--bg);
    color: #ffffff;
    padding: clamp(80px, 12vw, 140px) var(--pad-x);
}
.gallery-inner { max-width: var(--max); margin: 0 auto; }
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item {
    margin: 0;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #1a1a1a;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--easing);
}
.gallery-item:hover img { transform: scale(1.05); }

/* =====================================================
   CONTACT
   ===================================================== */
.contact {
    background: #0b0b0b;
    color: #ffffff;
    display: grid;
    grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .contact { grid-template-columns: 1fr 1fr; min-height: 80vh; } }
.contact-shader {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #0b0b0b;
    overflow: hidden;
}
@media (min-width: 1024px) { .contact-shader { aspect-ratio: auto; min-height: 100%; } }
#shader-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.contact-shader-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(28px, 5vw, 60px);
    z-index: 2;
}
.contact-shader-text h2 {
    font-size: clamp(36px, 5vw, 72px);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1;
    margin: 0 0 12px;
    color: #ffffff;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
}
.contact-shader-text p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.92);
    max-width: 360px;
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.4);
}

.contact-form-wrap {
    background: var(--bg-light);
    color: var(--fg-dark);
    padding: clamp(40px, 6vw, 80px) var(--pad-x);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.contact-form { display: flex; flex-direction: column; gap: 18px; max-width: 520px; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-muted-dark); }
.contact-form input,
.contact-form select,
.contact-form textarea {
    background: #ffffff;
    color: var(--fg-dark);
    border: 1px solid var(--border-dark);
    padding: 12px 14px;
    font-family: inherit;
    font-size: 16px;
    letter-spacing: 0;
    text-transform: none;
    transition: border-color 0.25s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--fg-dark);
}
.contact-form .checkbox {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    text-transform: none;
    letter-spacing: 0;
    font-size: 13px;
}
.contact-form .checkbox input { width: 18px; height: 18px; }
.contact-form button { align-self: flex-start; margin-top: 8px; }
.form-msg {
    margin: 0;
    font-size: 13px;
    padding: 10px 12px;
    border-radius: 6px;
}
.form-msg[data-state="ok"] { background: #ecfdf5; color: #047857; border: 1px solid #6ee7b7; }
.form-msg[data-state="err"] { background: #fef2f2; color: #b91c1c; border: 1px solid #fca5a5; }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
    background: var(--bg-light);
    color: var(--fg-dark);
    border-top: 1px solid #000;
    padding: 80px var(--pad-x) 0;
    overflow: hidden;
}
.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}
.footer-col p {
    margin: 0;
    line-height: 2;
    color: var(--fg-muted-dark);
    font-size: 14px;
}
.footer-label {
    color: var(--fg-dark) !important;
    font-size: 12px !important;
    letter-spacing: 0.18em;
    margin-bottom: 12px !important;
    line-height: 1.4 !important;
}
.footer-mark {
    font-size: clamp(60px, 18vw, 320px);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 0.85;
    color: var(--fg-dark);
    white-space: nowrap;
    user-select: none;
    transform: translateY(8%);
    text-align: center;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    border-top: 1px solid var(--border-dark);
    padding: 24px 0;
    font-size: 12px;
    color: var(--fg-muted-dark);
}
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { color: inherit; }
.footer-legal a:hover { color: var(--fg-dark); }

/* =====================================================
   EVENT DETAIL + BOOKING + THANKS
   ===================================================== */
.event-page { background: #fff; color: var(--fg-dark); padding-top: 64px; }
.event-hero {
    min-height: 60vh;
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: clamp(80px, 10vw, 140px) var(--pad-x) clamp(60px, 8vw, 100px);
    display: flex;
    align-items: flex-end;
}
.event-hero-inner { max-width: var(--max); margin: 0 auto; width: 100%; }
.event-hero h1 {
    font-size: clamp(36px, 6vw, 80px);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.02;
    margin: 14px 0;
}
.event-lead { font-size: 18px; line-height: 1.6; max-width: 640px; opacity: 0.9; }
.event-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 24px;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}
.event-hero-stats strong { font-weight: 600; color: #fff; }

.event-booking {
    padding: clamp(60px, 10vw, 120px) var(--pad-x);
    background: var(--bg-soft);
}
.event-booking-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}
@media (min-width: 1024px) { .event-booking-inner { grid-template-columns: 1fr 1.4fr; gap: 80px; } }
.booking-info h2 { font-size: clamp(28px, 4vw, 48px); margin: 0 0 16px; font-weight: 500; letter-spacing: -0.02em; color: var(--fg); }
.booking-info p { color: var(--fg-muted); font-size: 16px; line-height: 1.6; }

.booking-form {
    background: #fff;
    border: 1px solid var(--border-dark);
    padding: clamp(24px, 4vw, 40px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.booking-form label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #666; }
.booking-form input,
.booking-form select {
    background: #fff;
    border: 1px solid var(--border-dark);
    padding: 12px 14px;
    font-size: 16px;
    font-family: inherit;
    color: #0b0b0b;
    text-transform: none;
    letter-spacing: 0;
    transition: border-color 0.2s ease;
}
.booking-form input:focus,
.booking-form select:focus { outline: none; border-color: #0b0b0b; }
.booking-form .checkbox { flex-direction: row; align-items: center; gap: 10px; text-transform: none; letter-spacing: 0; font-size: 13px; color: #444; }
.booking-form .checkbox input { width: 18px; height: 18px; }
.booking-form button { margin-top: 8px; align-self: flex-start; }
.booking-form .legal { font-size: 12px; color: #888; text-transform: none; letter-spacing: 0; margin: 0; }

.alert {
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0;
    color: #b91c1c;
}
.alert-error { background: #fef2f2; border: 1px solid #fca5a5; }

/* Thanks */
.thanks-page {
    min-height: 100vh;
    background: var(--bg-soft);
    padding: 96px var(--pad-x) 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.thanks-card {
    background: #fff;
    border: 1px solid var(--border-dark);
    max-width: 640px;
    width: 100%;
    padding: clamp(32px, 5vw, 56px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: var(--fg-dark);
}
.status-badge {
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.status-badge.is-ok { background: #ecfdf5; color: #047857; border: 1px solid #6ee7b7; }
.status-badge.is-wait { background: #fffbeb; color: #92400e; border: 1px solid #fcd34d; }
.thanks-card h1 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 400;
    letter-spacing: -0.02em;
    margin: 8px 0;
    line-height: 1.1;
}
.thanks-card p { color: #444; font-size: 16px; line-height: 1.6; margin: 0; }
.thanks-event {
    border-top: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
    padding: 20px 0;
    margin: 16px 0;
}
.thanks-event h2 { font-size: 22px; margin: 4px 0; font-weight: 400; }
.thanks-date { font-size: 13px; color: #666; letter-spacing: 0.04em; }
.thanks-card .btn { align-self: flex-start; }

/* =====================================================
   CMS PAGE BLOCKS
   ===================================================== */
.cms-page { background: #fff; color: var(--fg-dark); padding-top: 64px; }
.cms-tpl-narrow .cms-inner { max-width: 720px; }
.cms-tpl-wide .cms-inner { max-width: 1600px; }
.cms-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x); }

.cms-hero {
    min-height: 60vh;
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(80px, 10vw, 140px) var(--pad-x);
}
.cms-hero-inner h1 {
    font-size: clamp(36px, 6vw, 80px);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 0 0 16px;
}
.cms-hero-inner p { font-size: 18px; opacity: 0.92; max-width: 640px; margin: 0 auto 24px; }
.cms-hero .btn { color: #fff; }

.cms-text { padding: clamp(40px, 6vw, 80px) 0; }
.cms-text h2 { font-size: clamp(28px, 4vw, 48px); font-weight: 400; letter-spacing: -0.02em; margin: 0 0 16px; }
.cms-text .prose { font-size: 16px; line-height: 1.7; color: #333; max-width: 720px; }

.cms-image { margin: 40px auto; max-width: var(--max); padding: 0 var(--pad-x); }
.cms-image img { width: 100%; height: auto; }
.cms-image figcaption { font-size: 13px; color: #666; margin-top: 8px; text-align: center; }

.cms-gallery { padding: 60px 0; background: var(--bg-soft); }
.cms-gallery-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .cms-gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cms-gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.cms-gallery-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.cms-cta { padding: 60px var(--pad-x); text-align: center; }

.cms-columns { padding: 60px 0; }
.cms-columns .cms-inner { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .cms-columns .cms-inner { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.cms-col h3 { font-size: 20px; margin: 0 0 12px; font-weight: 500; }
.cms-col p { font-size: 15px; line-height: 1.6; color: #444; }

.cms-video { padding: 40px var(--pad-x); }
.cms-video video { width: 100%; max-width: var(--max); margin: 0 auto; display: block; }

.cms-spacer-small { height: 32px; }
.cms-spacer-medium { height: 64px; }
.cms-spacer-large { height: 128px; }

.cms-html { padding: 40px var(--pad-x); }

/* Admin block editor */
.block-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 12px;
}
.block-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    color: var(--accent);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.16em;
}
.block-head .actions button {
    background: transparent;
    color: var(--fg-muted);
    border: 1px solid var(--border);
    padding: 4px 10px;
    margin-left: 4px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}
.block-head .actions button.danger { color: var(--danger); border-color: var(--danger); }
.block-head .actions button:hover { background: var(--surface); }
.block-fields { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 800px) { .block-fields { grid-template-columns: repeat(2, 1fr); } }
.block-card .hint { font-size: 11px; color: var(--fg-muted); margin: -4px 0 8px; }
.block-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* =====================================================
   NEWSLETTER LANDING
   ===================================================== */
.newsletter-page {
    min-height: 100vh;
    background: var(--bg-soft);
    color: var(--fg);
    padding: 96px var(--pad-x) 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.newsletter-card {
    background: #fff;
    border: 1px solid var(--border-dark);
    max-width: 560px;
    width: 100%;
    padding: clamp(32px, 6vw, 64px);
}
.newsletter-card h1 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 400;
    letter-spacing: -0.02em;
    margin: 12px 0 16px;
    line-height: 1.1;
}
.newsletter-card .lead { color: #444; font-size: 15px; line-height: 1.6; margin-bottom: 24px; }
.newsletter-form { display: flex; flex-direction: column; gap: 16px; }
.newsletter-form label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #666; }
.newsletter-form input {
    background: #fff;
    border: 1px solid var(--border-dark);
    padding: 12px 14px;
    font-size: 16px;
    font-family: inherit;
    text-transform: none;
    letter-spacing: 0;
}
.newsletter-form input:focus { outline: none; border-color: var(--fg-dark); }
.newsletter-form .checkbox { flex-direction: row; align-items: center; gap: 10px; text-transform: none; letter-spacing: 0; font-size: 13px; color: #444; }
.newsletter-form .checkbox input { width: 18px; height: 18px; }
.newsletter-form button { align-self: flex-start; margin-top: 8px; }

.alert-ok { background: #ecfdf5; color: #047857; border: 1px solid #6ee7b7; padding: 12px 16px; border-radius: 4px; margin-bottom: 16px; font-size: 14px; }

/* =====================================================
   CHECK-IN (universal QR landing)
   ===================================================== */
.checkin {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    transition: background 0.4s ease;
}
.checkin.state-ok,
.checkin.state-valid { background: linear-gradient(135deg, #047857, #064e3b); }
.checkin.state-already { background: linear-gradient(135deg, #92400e, #78350f); }
.checkin.state-denied,
.checkin.state-error { background: linear-gradient(135deg, #991b1b, #7f1d1d); }
.checkin.state-missing { background: #0b0b0b; }
.checkin-card {
    max-width: 540px;
    width: 100%;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 32px;
}
.checkin-eyebrow { font-size: 12px; letter-spacing: 0.32em; color: rgba(255,255,255,0.85); margin: 0; }
.checkin-big { margin: 0; font-size: clamp(40px, 9vw, 96px); font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.checkin-msg { font-size: 17px; color: rgba(255,255,255,0.92); margin: 0; }
.checkin-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    background: rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.18);
    text-align: left;
    margin: 12px 0;
}
.checkin-info .label { display: block; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-bottom: 4px; }
.checkin-info strong { font-size: 16px; font-weight: 500; color: #fff; }
.checkin-time { font-size: 12px; letter-spacing: 0.2em; color: rgba(255,255,255,0.7); margin: 0; }
@media (max-width: 480px) { .checkin-info { grid-template-columns: 1fr; } }

/* =====================================================
   404 / NOT FOUND
   (the template referenced these classes but no styles existed —
   content rendered unstyled under the fixed header)
   ===================================================== */
.not-found-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px var(--pad-x, 24px) 64px;
    background: var(--bg, #0b0b0b);
}
.not-found-card {
    max-width: 560px;
    width: 100%;
    background: #fff;
    color: #0b0b0b;
    padding: 48px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}
.not-found-card h1 { margin: 0; font-size: clamp(28px, 5vw, 40px); font-weight: 600; letter-spacing: -0.02em; }
.not-found-card .lead { margin: 0; color: #444; font-size: 16px; line-height: 1.6; }
.not-found-ctas { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: center; align-items: center; margin-top: 8px; }
.not-found-ctas .btn-link { color: #0b0b0b; } /* card is light — the default .btn-link is white */

/* Shader fallback (mobile): site.js removes the WebGL canvas under 1024px and
   adds this class — without it the contact panel was a flat black box. */
.contact-shader.shader-fallback {
    background:
        radial-gradient(ellipse 70% 50% at 30% 30%, rgba(212,168,60,0.18), transparent 70%),
        linear-gradient(160deg, #0b0b0b, #14301f 75%, #0d281a);
}

/* Sold-out panel in place of the booking form */
.booking-soldout {
    background: #fff;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #444;
}
.booking-soldout strong { color: #0b0b0b; font-size: 18px; }
.booking-soldout .btn { align-self: flex-start; margin-top: 8px; }

/* =====================================================
   REDUCED MOTION
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
    .hero-video, .capabilities-video { display: none; }
    .hero-top { background: linear-gradient(135deg, #1a1a1a, #0b0b0b); }
    .capabilities { background: #0b0b0b; }
}
