:root {
    --base: #f9f7f2;
    --ink: #1a1a1a;
    --accent: #c5a059;
    --surface: #f2efe9;
    --surface-2: #ece7de;
    --noir: #111118;
    --noir-surface: #1a1a2e;
    --noir-accent: #7b5ea7;
    --transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    --section-y: clamp(100px, 11vw, 160px);
    --container-pad-x: 40px;
    --nav-offset: calc(5.75rem + env(safe-area-inset-top, 0px));
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--base);
    color: var(--ink);
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    opacity: 0.035;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    z-index: 9999;
}

h1, h2, h3 { font-family: "Fraunces", serif; font-weight: 300; text-transform: lowercase; }
p { color: var(--ink); opacity: 0.82; line-height: 1.75; }
a { color: inherit; text-decoration: none; }

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: max(var(--container-pad-x), env(safe-area-inset-left, 0px));
    padding-right: max(var(--container-pad-x), env(safe-area-inset-right, 0px));
}

.nav {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding-top: calc(30px + env(safe-area-inset-top, 0px));
    padding-bottom: 30px;
    z-index: 2100;
    transition: var(--transition);
}
.nav.scrolled {
    background: rgba(249, 247, 242, 0.88);
    backdrop-filter: blur(14px);
    padding-top: calc(20px + env(safe-area-inset-top, 0px));
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(26, 26, 26, 0.06);
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; }
.nav-brand {
    font-family: "Fraunces", serif;
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    font-weight: 600;
    letter-spacing: -0.03em;
}

.menu-trigger {
    background: transparent;
    border: 1px solid rgba(26, 26, 26, 0.12);
    border-radius: 999px;
    width: 48px;
    height: 48px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.35s ease, border-color 0.35s ease;
}
.menu-trigger span {
    position: absolute;
    left: 50%;
    width: 22px;
    height: 2px;
    border-radius: 1px;
    background: var(--ink);
    margin-left: -11px;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), top 0.45s cubic-bezier(0.16, 1, 0.3, 1), width 0.35s ease;
}
.menu-trigger span:first-child { top: calc(50% - 6px); }
.menu-trigger span:last-child { top: calc(50% + 4px); width: 14px; margin-left: -7px; }
.menu-trigger[aria-expanded="true"] span:first-child { top: 50%; transform: translateY(-50%) rotate(45deg); }
.menu-trigger[aria-expanded="true"] span:last-child { top: 50%; width: 22px; margin-left: -11px; transform: translateY(-50%) rotate(-45deg); }

.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 26, 0.25);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s;
    z-index: 1990;
    backdrop-filter: blur(4px);
}
.drawer-backdrop.active { opacity: 1; visibility: visible; }
.drawer {
    position: fixed;
    top: 0; right: 0;
    width: min(100%, 420px);
    height: 100dvh;
    background: var(--base);
    z-index: 1995;
    border-left: 1px solid rgba(26, 26, 26, 0.06);
    transform: translateX(100%);
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    padding-top: calc(5.375rem + env(safe-area-inset-top, 0px));
    display: flex;
    flex-direction: column;
}
.drawer.active { transform: translateX(0); }
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(26, 26, 26, 0.06);
}
.drawer-header span {
    font-family: "Fraunces", serif;
    font-size: 1.15rem;
    font-weight: 600;
}
.drawer-close {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(26, 26, 26, 0.12);
    background: transparent;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--ink);
}
.drawer-inner {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 48px 36px;
}
.drawer-links a {
    display: block;
    font-family: "Fraunces", serif;
    font-size: clamp(2rem, 8vw, 3.25rem);
    margin: 12px 0;
    line-height: 1.05;
    transition: var(--transition);
}
body.menu-open { overflow: hidden; }

.reveal { opacity: 0; transform: translateY(50px); transition: var(--transition); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal.reveal-delay { transition-delay: 0.1s; }

/* Hero kept intentionally close to current winner */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    display: flex;
    align-items: center;
    padding-top: var(--nav-offset);
    padding-bottom: max(clamp(32px, 6vh, 72px), env(safe-area-inset-bottom, 0px));
    overflow: hidden;
}
.hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}
.hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-video-bg.is-poster-only {
    background: url("_assets/image-6.webp") center / cover no-repeat;
}
.hero-video-bg.is-poster-only video {
    display: none;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
        var(--base) 0%,
        var(--base) 35%,
        rgba(249, 247, 242, 0.42) 70%,
        transparent 100%);
    z-index: -1;
}
.hero-content { position: relative; z-index: 10; width: 100%; }
.hero-title {
    font-size: clamp(3.5rem, 9vw, 8rem);
    line-height: 0.9;
    margin-bottom: 30px;
    max-width: 900px;
}
.hero-title span { display: block; color: var(--accent); font-style: italic; padding-left: 10%; }
.hero-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
    display: block;
}
.hero-lede { max-width: 520px; margin-bottom: 40px; }

.heading-section {
    font-family: "Fraunces", serif;
    font-weight: 300;
    text-transform: lowercase;
    font-size: clamp(2.1rem, 2.8vw + 1.1rem, 3.5rem);
    line-height: 1.08;
    margin: 0;
}
.heading-section--tight { margin-bottom: clamp(1rem, 2.5vw, 1.875rem); }
.heading-dialogue {
    font-family: "Fraunces", serif;
    font-weight: 300;
    text-transform: lowercase;
    font-size: clamp(2.35rem, 3.5vw + 1.15rem, 4rem);
    line-height: 1.02;
    margin: 0;
}
.section-intro { text-align: center; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.loc-tag {
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
    display: block;
}
.link-plain { color: inherit; text-decoration: none; }

.heritage { padding: var(--section-y) 0; background: var(--surface); }
.heritage-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 80px; align-items: center; }
.heritage-visual {
    width: min(520px, 100%);
    aspect-ratio: 3 / 4;
    height: auto;
    max-height: clamp(520px, 62vh, 780px);
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 22px 50px rgba(85, 66, 30, 0.14);
    position: relative;
}
.heritage-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 18%;
    transform: scale(1.02);
}
.heritage-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20, 15, 10, 0.2), transparent 45%);
    pointer-events: none;
}
.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 44px;
}
.stat-item {
    border: 1px solid rgba(26, 26, 26, 0.12);
    background: rgba(255, 255, 255, 0.45);
    border-radius: 14px;
    padding: 18px 16px;
}
.stat-item h4 {
    font-family: "League Spartan", sans-serif;
    font-size: 1.9rem;
    color: var(--accent);
    margin-bottom: 6px;
}
.stat-item p {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 600;
    opacity: 0.8;
}

.collection {
    padding: var(--section-y) 0;
    background: linear-gradient(to bottom, var(--base), var(--surface) 38%, var(--surface-2));
    position: relative;
}
.collection::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, rgba(249, 247, 242, 0.95), transparent);
    pointer-events: none;
}
.media-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: auto;
    align-items: start;
    gap: 18px;
}
.media-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(26, 26, 26, 0.11);
    background: #dfd7ca;
    cursor: default;
    isolation: isolate;
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.65s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}
.collection .media-card {
    aspect-ratio: 9 / 16;
    width: 100%;
    min-height: 0;
}
.collection .media-card img,
.collection .media-card .video-thumb {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
    filter: saturate(0.96) contrast(1.03);
}
.media-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.media-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(23, 17, 11, 0.45), rgba(23, 17, 11, 0.03) 55%),
        linear-gradient(to right, rgba(197, 160, 89, 0.08), transparent 55%);
    z-index: 1;
    pointer-events: none;
}
.media-caption {
    position: absolute;
    left: 14px;
    bottom: 12px;
    z-index: 2;
    color: #fff;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    font-family: "League Spartan", sans-serif;
    font-size: 0.74rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.88;
}

.slot-xl { grid-column: span 6; grid-row: span 2; }
.slot-sm { grid-column: span 3; }

.video-card {
    cursor: pointer;
    padding: 0;
    font: inherit;
    color: inherit;
    text-align: left;
    appearance: none;
    -webkit-appearance: none;
    display: block;
    width: 100%;
}
.play-pill {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    display: grid;
    place-items: center;
    transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
    .media-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 22px 45px rgba(82, 61, 29, 0.18);
        border-color: rgba(64, 49, 24, 0.26);
    }
    .collection .media-card:hover img,
    .collection .media-card:hover .video-thumb { transform: scale(1.03); }
    .video-card:hover .play-pill {
        border-color: rgba(255, 255, 255, 0.75);
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.05);
    }
    .location-card:hover { transform: translateY(-6px); }
    .social-large a:hover { color: var(--accent); padding-left: 16px; }
    .menu-trigger:hover {
        background: rgba(26, 26, 26, 0.04);
        border-color: rgba(26, 26, 26, 0.2);
    }
    .drawer-links a:hover { color: var(--accent); padding-left: 12px; }
    .btn-atelier:hover {
        border-color: rgba(26, 26, 26, 0.85);
        background: var(--ink);
        color: var(--base);
    }
    .btn-hero:hover {
        background: rgba(249, 247, 242, 0.82);
        border-color: var(--accent);
        color: var(--ink);
    }
}
.play-pill::before {
    content: "";
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 10px solid #fff;
    margin-left: 2px;
}

.locations { padding: var(--section-y) 0; background: var(--surface); }
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.location-card {
    background: var(--base);
    border: 1px solid rgba(26, 26, 26, 0.08);
    border-radius: 18px;
    padding: 44px;
    transition: var(--transition);
}
.location-card > p { margin-top: 20px; }
.location-card .btn-atelier { margin-top: 26px; }

.dialogue { padding: var(--section-y) 0; }
.contact-wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 80px; }
.social-large { list-style: none; margin-top: 44px; border-top: 1px solid rgba(26, 26, 26, 0.1); }
.social-large li { border-bottom: 1px solid rgba(26, 26, 26, 0.1); }
.social-large a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    color: var(--ink);
    font-family: "Fraunces", serif;
    font-size: clamp(1.3rem, 1.6vw + 0.82rem, 1.95rem);
    transition: var(--transition);
}
.contact-aside { display: flex; flex-direction: column; justify-content: flex-end; }
.contact-lead {
    font-family: "Fraunces", serif;
    font-size: clamp(1.35rem, 2.5vw + 0.65rem, 2.2rem);
    margin-bottom: 34px;
}
.contact-lead:last-of-type { margin-bottom: 0; }

.btn-atelier {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 30px;
    border-radius: 999px;
    border: 1px solid rgba(26, 26, 26, 0.5);
    text-decoration: none;
    color: var(--ink);
    font-size: 0.76rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.34);
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.btn-hero {
    background: rgba(249, 247, 242, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(26, 26, 26, 0.28);
    box-shadow: 0 4px 24px rgba(26, 26, 26, 0.06);
}
.btn-noir {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 30px;
    border-radius: 999px;
    border: 1px solid rgba(249, 247, 242, 0.35);
    text-decoration: none;
    color: #f9f7f2;
    font-size: 0.76rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    background: transparent;
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
    .btn-noir:hover {
        background: #f9f7f2;
        border-color: #f9f7f2;
        color: var(--noir);
    }
}

.cyber-noir {
    padding: var(--section-y) 0;
    background: var(--noir);
}
.cyber-noir .loc-tag {
    color: #9d7fd4;
}
.cyber-noir .heading-section {
    color: #f9f7f2;
    font-family: "Fraunces", serif;
    font-weight: 300;
    text-transform: lowercase;
}
.cyber-noir p {
    color: rgba(249, 247, 242, 0.75);
}
.cyber-noir .media-card {
    grid-column: span 4;
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(155, 125, 212, 0.18);
    background: #1a1a2e;
}
.cyber-noir .media-caption {
    color: rgba(249, 247, 242, 0.82);
}
.cyber-noir-cta {
    margin-top: 28px;
    text-align: center;
}

.footer {
    padding: 90px 0 max(40px, calc(24px + env(safe-area-inset-bottom, 0px)));
    border-top: 1px solid rgba(26, 26, 26, 0.06);
}
.footer-brand {
    font-size: clamp(3rem, 12vw, 10rem);
    opacity: 0.03;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    pointer-events: none;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.62;
}
.footer-bottom a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    margin-left: 20px;
}
.footer-disclosure {
    text-align: center;
    font-size: 0.72rem;
    line-height: 1.6;
    letter-spacing: 0.06em;
    text-transform: none;
    opacity: 0.52;
    max-width: 36rem;
    margin: 0 auto 28px;
    font-weight: 400;
}

/* Modal for premium video viewing */
.media-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    background: rgba(14, 10, 6, 0.82);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.media-modal.active {
    opacity: 1;
    visibility: visible;
}
.media-modal-inner {
    width: min(96vw, 1240px);
    max-height: 90dvh;
    background: #0c0c0c;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 35px 60px rgba(0, 0, 0, 0.45);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.media-modal.active .media-modal-inner {
    transform: translateY(0) scale(1);
}
.media-modal-inner.portrait {
    width: min(92vw, 560px);
    max-height: 92dvh;
}
.media-modal video {
    width: 100%;
    max-height: 86dvh;
    background: #000;
    display: block;
}
.media-modal-inner.portrait video {
    width: 100%;
    height: min(88dvh, 996px);
    max-height: 88dvh;
    object-fit: contain;
    aspect-ratio: 9 / 16;
    margin: 0 auto;
}
.media-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    z-index: 1;
}

@media (max-width: 1024px) {
    :root { --section-y: clamp(88px, 10vw, 120px); }
    .hero::before {
        background: linear-gradient(165deg, var(--base) 0%, rgba(249, 247, 242, 0.92) 42%, rgba(249, 247, 242, 0.55) 72%, transparent 100%);
    }
    .hero { align-items: flex-start; padding-top: max(6rem, var(--nav-offset)); }
    .hero-content { max-width: 36rem; }
    .heritage-grid, .location-grid, .contact-wrap { grid-template-columns: 1fr; gap: 54px; }
    .media-grid { grid-template-columns: repeat(2, 1fr); }
    .slot-xl, .slot-sm { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 640px) {
    :root { --container-pad-x: 20px; --section-y: 96px; }
    .nav.scrolled { backdrop-filter: none; }
    .drawer-backdrop.active { backdrop-filter: none; }
    .media-modal.active { backdrop-filter: none; }
    .play-pill { backdrop-filter: none; background: rgba(255, 255, 255, 0.32); }
    body::after { display: none; }
    .hero { min-height: 100svh; align-items: flex-start; padding-top: var(--nav-offset); }
    .hero-title { font-size: clamp(2.4rem, 12vw, 3.4rem); line-height: 0.95; max-width: 100%; }
    .hero-title span { padding-left: 0; }
    .stat-grid { grid-template-columns: 1fr; }
    .media-grid { grid-template-columns: 1fr; }
    .location-card { padding: 32px 24px; }
    .social-large a { font-size: 1.3rem; gap: 12px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
    .footer-bottom a { margin-left: 0; margin-right: 16px; display: inline-block; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    :root { --transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease; }
    .reveal, .reveal.active { opacity: 1; transform: none; transition: none; }
    .media-card, .media-card img, .location-card, .social-large a { transition: none; }
    .media-card:hover, .location-card:hover, .social-large a:hover { transform: none; }
    .media-modal, .media-modal-inner { transition: none; }
}

.float-chat {
    position: fixed;
    bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    right: 28px;
    z-index: 2000;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    background: var(--accent);
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-decoration: none;
    border-radius: 999px;
    box-shadow: 0 8px 28px rgba(197, 160, 89, 0.38);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s ease;
    pointer-events: none;
}
.float-chat.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.float-chat:hover {
    box-shadow: 0 12px 36px rgba(197, 160, 89, 0.52);
}
