/* =====================================================================
   CafeArt — Artisan Coffee Roastery
   A 3D-animated single-page experience
   ===================================================================== */

/* ---------- Design Tokens ---------- */
:root {
    /* Coffee palette */
    --espresso: #1a0f0a;
    --espresso-2: #241510;
    --bean: #2c1810;
    --roast: #4a2c1d;
    --mocha: #6f4e37;
    --caramel: #b87333;
    --crema: #c8956d;
    --latte: #e0c4a0;
    --cream: #efe1cd;
    --foam: #faf3e8;
    --gold: #e0b878;
    --gold-bright: #f0cd8e;

    --ink: #2c1810;
    --ink-soft: #5b4636;
    --paper: #f7efe3;

    --shadow-sm: 0 6px 18px rgba(26, 15, 10, 0.12);
    --shadow-md: 0 18px 40px rgba(26, 15, 10, 0.18);
    --shadow-lg: 0 40px 80px rgba(26, 15, 10, 0.28);

    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --script: 'Caveat', 'Comic Sans MS', cursive;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-soft: cubic-bezier(0.65, 0, 0.35, 1);

    --container: 1240px;
    --radius: 20px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
section { position: relative; }

::selection { background: var(--caramel); color: var(--foam); }

/* Lock scroll while the loader is up */
body.is-loading { overflow: hidden; height: 100vh; }

/* Skip link for keyboard / screen-reader users */
.skip-link {
    position: fixed;
    top: -120%; left: 1rem;
    z-index: 10001;
    background: var(--bean);
    color: var(--foam);
    padding: 0.7rem 1.2rem;
    border-radius: 0 0 12px 12px;
    font-weight: 600;
    transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 0; outline: 2px solid var(--gold-bright); }

/* Subtle paper grain everywhere */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9990;
    opacity: 0.04;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =====================================================================
   LAYOUT HELPERS
   ===================================================================== */
.section__head { max-width: 720px; margin: 0 auto 3.5rem; text-align: center; padding: 0 1.5rem; }
.section__eyebrow {
    font-family: var(--script);
    font-size: 1.5rem;
    color: var(--caramel);
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}
.section__title {
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    line-height: 1.08;
    color: var(--bean);
    letter-spacing: -0.5px;
}
.section__lead {
    margin-top: 1.1rem;
    color: var(--ink-soft);
    font-size: 1.08rem;
    font-weight: 300;
}

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
    --pad: 0.95rem 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: var(--pad);
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.98rem;
    letter-spacing: 0.3px;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s, color 0.4s;
    position: relative;
    overflow: hidden;
    will-change: transform;
}
.btn--solid {
    background: linear-gradient(135deg, var(--caramel), var(--roast));
    color: var(--foam);
    box-shadow: 0 12px 28px rgba(184, 115, 51, 0.4);
}
.btn--solid:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(184, 115, 51, 0.55); }
.btn--ghost {
    border: 1.5px solid currentColor;
    color: var(--bean);
    background: transparent;
}
.btn--ghost:hover { background: var(--bean); color: var(--foam); transform: translateY(-3px); }
.btn--full { width: 100%; justify-content: center; }
/* shine sweep */
.btn::after {
    content: "";
    position: absolute;
    top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s var(--ease);
}
.btn:hover::after { left: 130%; }

/* =====================================================================
   LOADER
   ===================================================================== */
.loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 1.6rem;
    background: radial-gradient(circle at 50% 40%, var(--espresso-2), var(--espresso));
    transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__cup {
    width: 90px; height: 78px;
    border: 4px solid var(--gold);
    border-radius: 6px 6px 28px 28px;
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,0.04);
}
.loader__cup::after { /* handle */
    content: "";
    position: absolute;
    right: -26px; top: 14px;
    width: 26px; height: 34px;
    border: 4px solid var(--gold);
    border-left: none;
    border-radius: 0 18px 18px 0;
}
.loader__fill {
    position: absolute;
    left: 0; bottom: 0; width: 100%;
    height: 0%;
    background: linear-gradient(var(--mocha), var(--bean));
    animation: fillUp 2.2s var(--ease) infinite;
}
@keyframes fillUp {
    0% { height: 0%; }
    60%, 100% { height: 100%; }
}
.loader__steam {
    position: absolute;
    top: -22px; left: 0; right: 0;
    display: flex; justify-content: center; gap: 14px;
}
.loader__steam span {
    width: 5px; height: 22px;
    background: linear-gradient(transparent, var(--gold));
    border-radius: 50%;
    opacity: 0;
    animation: steam 2.4s ease-in-out infinite;
}
.loader__steam span:nth-child(2) { animation-delay: 0.5s; }
.loader__steam span:nth-child(3) { animation-delay: 1s; }
@keyframes steam {
    0% { opacity: 0; transform: translateY(6px) scaleY(0.6); }
    40% { opacity: 0.7; }
    100% { opacity: 0; transform: translateY(-22px) scaleX(1.6) scaleY(1.4); }
}
.loader__text { color: var(--latte); font-weight: 300; letter-spacing: 1px; font-size: 0.95rem; }
.loader__dots { opacity: 0.6; }
.loader__bar {
    width: 200px; height: 3px;
    background: rgba(224, 184, 120, 0.2);
    border-radius: 3px; overflow: hidden;
}
.loader__bar span {
    display: block; height: 100%; width: 0%;
    background: var(--gold);
    transition: width 0.3s linear;
}

/* =====================================================================
   CUSTOM CURSOR
   ===================================================================== */
.cursor, .cursor-trail {
    position: fixed;
    top: 0; left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}
.cursor { width: 9px; height: 9px; background: var(--gold-bright); transition: transform 0.12s ease; }
.cursor-trail {
    width: 38px; height: 38px;
    border: 1.5px solid var(--gold);
    transition: transform 0.25s var(--ease), width 0.3s, height 0.3s, opacity 0.3s;
    opacity: 0.6;
}
.cursor-trail.is-hover { width: 64px; height: 64px; opacity: 1; background: rgba(224,184,120,0.08); }
body.cursor-ready { cursor: none; }
body.cursor-ready a, body.cursor-ready button { cursor: none; }

/* =====================================================================
   SCROLL PROGRESS
   ===================================================================== */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px; width: 0%;
    background: linear-gradient(90deg, var(--caramel), var(--gold-bright));
    z-index: 9995;
    transition: width 0.1s linear;
}

/* =====================================================================
   NAVIGATION
   ===================================================================== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.4rem clamp(1.2rem, 4vw, 3rem);
    transition: padding 0.4s var(--ease), background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.nav.is-scrolled {
    padding: 0.8rem clamp(1.2rem, 4vw, 3rem);
    background: rgba(247, 239, 227, 0.82);
    backdrop-filter: blur(14px) saturate(1.4);
    box-shadow: 0 6px 24px rgba(26, 15, 10, 0.08);
}
.nav__brand { display: flex; align-items: center; gap: 0.6rem; color: var(--bean); }
.nav__logo { display: grid; place-content: center; color: var(--caramel); transition: transform 0.5s var(--ease); }
.nav__brand:hover .nav__logo { transform: rotate(-12deg) scale(1.1); }
.nav__name {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.3px;
}
.nav__name em { font-style: normal; color: var(--caramel); }
.nav.is-light .nav__brand, .nav.is-light .nav__link { color: var(--foam); }
.nav.is-light .nav__logo { color: var(--gold); }

.nav__menu { display: flex; gap: 0.4rem; }
.nav__link {
    position: relative;
    padding: 0.5rem 0.95rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--bean);
    border-radius: 100px;
    transition: color 0.3s;
}
.nav__link::after {
    content: "";
    position: absolute;
    left: 50%; bottom: 4px;
    width: 0; height: 2px;
    background: var(--caramel);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.35s var(--ease);
}
.nav__link:hover::after, .nav__link.is-current::after { width: 40%; }
.nav__link:hover { color: var(--caramel); }

.nav__cta { --pad: 0.6rem 1.4rem; font-size: 0.9rem; }
.nav.is-light .nav__cta { color: var(--foam); }

/* Language toggle */
.lang {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border-radius: 100px;
    border: 1.5px solid var(--latte);
    background: rgba(255, 255, 255, 0.5);
    margin-left: auto;
}
.lang__btn {
    padding: 0.32rem 0.7rem;
    border-radius: 100px;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    color: var(--mocha);
    transition: background 0.3s var(--ease), color 0.3s;
}
.lang__btn.is-active { background: var(--bean); color: var(--foam); }
.lang__btn:not(.is-active):hover { color: var(--caramel); }
.nav.is-light .lang { border-color: rgba(247, 243, 232, 0.45); background: rgba(255, 255, 255, 0.1); }
.nav.is-light .lang__btn { color: var(--foam); }
.nav.is-light .lang__btn.is-active { background: var(--foam); color: var(--bean); }

.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px; width: 30px;
    z-index: 950;
}
.nav__burger span {
    height: 2.5px; width: 100%;
    background: var(--bean);
    border-radius: 3px;
    transition: transform 0.4s var(--ease), opacity 0.3s, background 0.3s;
}
.nav.is-light .nav__burger span { background: var(--foam); }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 7rem clamp(1.2rem, 6vw, 5rem) 4rem;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(120% 90% at 75% 20%, #3a2317 0%, transparent 55%),
        radial-gradient(100% 100% at 10% 90%, #2c1810 0%, transparent 50%),
        linear-gradient(160deg, var(--espresso) 0%, #2a1812 45%, #1f120c 100%);
    color: var(--foam);
}
/* Looping video background + poster fallback */
.hero__media {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: #1a0f0a url("../assets/hero-poster.jpg") center/cover no-repeat;
}
.hero__video {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    /* subtle warmth + slow drift so the loop feels less mechanical */
    filter: saturate(1.05) contrast(1.03) brightness(0.92);
    animation: heroPan 32s ease-in-out infinite alternate;
}
/* Darkening scrim — heavier on the left where the headline sits */
.hero__scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(95deg,
            rgba(20, 12, 8, 0.9) 0%,
            rgba(20, 12, 8, 0.66) 38%,
            rgba(20, 12, 8, 0.32) 70%,
            rgba(26, 15, 10, 0.5) 100%),
        linear-gradient(0deg, rgba(20, 12, 8, 0.7) 0%, transparent 38%);
}
@keyframes heroPan {
    from { transform: scale(1.06) translate3d(-1.2%, -0.6%, 0); }
    to   { transform: scale(1.12) translate3d(1.2%, 0.6%, 0); }
}
/* warm vignette + light leak */
.hero::after {
    content: "";
    position: absolute; inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(60% 60% at 78% 35%, rgba(224, 184, 120, 0.12), transparent 60%),
        radial-gradient(120% 100% at 50% 120%, rgba(0,0,0,0.55), transparent 60%);
}
.hero__content {
    position: relative;
    z-index: 3;
    max-width: 640px;
    pointer-events: none;
}
.hero__content a, .hero__content .stat { pointer-events: auto; }
.hero__eyebrow {
    font-family: var(--script);
    font-size: 1.45rem;
    color: var(--gold-bright);
    margin-bottom: 1rem;
}
.hero__title {
    font-family: var(--serif);
    font-weight: 800;
    font-size: clamp(2.8rem, 8.5vw, 6.2rem);
    line-height: 0.98;
    letter-spacing: -1.5px;
}
.hero__title span { display: block; }
.hero__title--accent {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--gold);
    font-style: italic;
}
.hero__sub {
    margin-top: 1.6rem;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    max-width: 30ch;
    color: rgba(247, 243, 232, 0.85);
}
.hero__sub strong { color: var(--gold-bright); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero__actions .btn--ghost { color: var(--foam); }
.hero__actions .btn--ghost:hover { background: var(--foam); color: var(--bean); }

.hero__stats { display: flex; gap: 2.5rem; margin-top: 3rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat__num {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    color: var(--gold-bright);
    line-height: 1;
}
.stat__label {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(247, 243, 232, 0.6);
    margin-top: 0.4rem;
}

.hero__scroll {
    position: absolute;
    bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex; flex-direction: column;
    align-items: center; gap: 0.5rem;
    color: rgba(247, 243, 232, 0.7);
}
.hero__scroll-dot {
    width: 24px; height: 40px;
    border: 2px solid currentColor;
    border-radius: 14px;
    position: relative;
}
.hero__scroll-dot::after {
    content: "";
    position: absolute;
    top: 7px; left: 50%;
    width: 4px; height: 8px;
    background: var(--gold-bright);
    border-radius: 3px;
    transform: translateX(-50%);
    animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot {
    0% { opacity: 0; transform: translate(-50%, 0); }
    40% { opacity: 1; }
    80%, 100% { opacity: 0; transform: translate(-50%, 14px); }
}
.hero__scroll-text { font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; }

/* Pause the loop + hold a still frame for reduced-motion / blocked autoplay */
.hero.is-still .hero__video { animation: none; }

/* =====================================================================
   MARQUEE
   ===================================================================== */
.marquee {
    background: var(--bean);
    color: var(--latte);
    padding: 1.1rem 0;
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid rgba(224,184,120,0.15);
    border-bottom: 1px solid rgba(224,184,120,0.15);
}
.marquee__track {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    animation: marquee 28s linear infinite;
    font-family: var(--serif);
    font-size: 1.4rem;
    font-style: italic;
}
.marquee__track .dot { color: var(--caramel); font-style: normal; font-size: 0.8rem; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =====================================================================
   STORY
   ===================================================================== */
.story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 6rem);
    align-items: center;
    max-width: var(--container);
    margin: 0 auto;
    padding: clamp(5rem, 12vw, 9rem) 1.5rem;
}
.story__media { position: relative; min-height: 480px; }
.story__img-wrap {
    position: absolute;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.story__img-wrap:nth-child(1) { inset: 0 30% 18% 0; }
.story__img-wrap--float {
    width: 52%; right: 0; bottom: 0;
    aspect-ratio: 1 / 1;
    border: 8px solid var(--paper);
    animation: floatY 6s ease-in-out infinite;
}
.story__img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.2s var(--ease);
}
.story__media:hover .story__img { transform: scale(1.06); }
.story__badge {
    position: absolute;
    top: -6%; left: -4%;
    z-index: 4;
    background: var(--caramel);
    color: var(--foam);
    width: 120px; height: 120px;
    border-radius: 50%;
    display: grid;
    place-content: center;
    text-align: center;
    box-shadow: var(--shadow-md);
    animation: spinSlow 16s linear infinite;
}
.story__badge-num { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; }
.story__badge-text { font-size: 0.65rem; letter-spacing: 1px; text-transform: uppercase; line-height: 1.2; }

.story__text .section__eyebrow, .story__text .section__title { text-align: left; }
.story__text p { color: var(--ink-soft); margin-top: 1rem; font-weight: 300; }
.story__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1.4rem; margin: 1.8rem 0; }
.story__list li { display: flex; align-items: center; gap: 0.7rem; font-weight: 500; color: var(--bean); }
.story__list li::before {
    content: "";
    flex: none;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--caramel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23faf3e8' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* =====================================================================
   MENU
   ===================================================================== */
.menu { max-width: var(--container); margin: 0 auto; padding: clamp(4rem, 10vw, 7rem) 1.5rem; }
.menu__filters { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 3rem; }
.chip {
    padding: 0.55rem 1.3rem;
    border-radius: 100px;
    border: 1.5px solid var(--latte);
    color: var(--mocha);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.35s var(--ease);
}
.chip:hover { border-color: var(--caramel); color: var(--caramel); transform: translateY(-2px); }
.chip.is-active { background: var(--bean); color: var(--foam); border-color: var(--bean); }

.menu__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.6rem;
    perspective: 1400px;
}
.menu-card {
    background: linear-gradient(160deg, #fff, var(--paper));
    border-radius: var(--radius);
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.18s var(--ease-soft), box-shadow 0.4s, opacity 0.5s, scale 0.5s;
    border: 1px solid rgba(184,115,51,0.1);
}
.menu-card.is-hidden { display: none; }
.menu-card:hover { box-shadow: var(--shadow-lg); }
.menu-card__glow {
    position: absolute;
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(224,184,120,0.35), transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s;
    transform: translateZ(1px);
}
.menu-card:hover .menu-card__glow { opacity: 1; }
.menu-card__art {
    width: 100%; height: 168px;
    border-radius: 14px;
    background-color: var(--bean);
    background-size: cover;
    background-position: center;
    margin-bottom: 1.1rem;
    transform: translateZ(45px);
    box-shadow: inset 0 -30px 50px rgba(0,0,0,0.28);
    position: relative;
    overflow: hidden;
}
.menu-card__art img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.menu-card__art::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.25) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.8s var(--ease);
}
.menu-card:hover .menu-card__art::after { transform: translateX(100%); }
.menu-card__tag {
    position: absolute;
    top: 1.4rem; right: 1.4rem;
    background: var(--bean);
    color: var(--gold-bright);
    font-size: 0.68rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    border-radius: 100px;
    transform: translateZ(60px);
}
.menu-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; transform: translateZ(35px); }
.menu-card__name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--bean); }
.menu-card__price { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--caramel); white-space: nowrap; }
.menu-card__desc { margin-top: 0.5rem; font-size: 0.92rem; color: var(--ink-soft); font-weight: 300; transform: translateZ(25px); }
.menu-card__foot { margin-top: 1.1rem; display: flex; align-items: center; gap: 0.8rem; transform: translateZ(30px); }
.menu-card__dots { display: flex; gap: 4px; }
.menu-card__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--latte); }
.menu-card__dots i.on { background: var(--caramel); }
.menu-card__note { font-size: 0.75rem; color: var(--mocha); letter-spacing: 0.5px; }

/* =====================================================================
   CRAFT
   ===================================================================== */
.craft {
    background-image:
        linear-gradient(160deg, rgba(20,12,8,0.92), rgba(26,15,10,0.95)),
        url("../assets/img/hall.jpg");
    background-size: cover;
    background-position: center;
    color: var(--foam);
    padding: clamp(5rem, 12vw, 8rem) 1.5rem;
    overflow: hidden;
}
@supports (background-image: image-set(url("x.webp") type("image/webp"))) {
    .craft {
        background-image:
            linear-gradient(160deg, rgba(20,12,8,0.92), rgba(26,15,10,0.95)),
            image-set(url("../assets/img/hall.webp") type("image/webp"),
                      url("../assets/img/hall.jpg") type("image/jpeg"));
    }
}
/* Desktop-only parallax; iOS handles fixed backgrounds poorly */
@media (hover: hover) and (min-width: 980px) {
    .craft { background-attachment: fixed; }
}
.craft__head { max-width: 720px; margin: 0 auto 4rem; text-align: center; }
.craft .section__title { color: var(--foam); }
.craft .section__eyebrow { color: var(--gold-bright); }
.craft__steps {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
}
.craft-step {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(224,184,120,0.18);
    border-radius: var(--radius);
    padding: 2.2rem 1.6rem;
    position: relative;
    transition: transform 0.5s var(--ease), background 0.5s, border-color 0.5s;
    overflow: hidden;
}
.craft-step:hover { transform: translateY(-10px); background: rgba(224,184,120,0.1); border-color: var(--gold); }
.craft-step__no {
    font-family: var(--serif);
    font-size: 3.4rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(224,184,120,0.4);
    line-height: 1;
}
.craft-step__icon {
    width: 56px; height: 56px;
    margin: 1rem 0 1.1rem;
    display: grid;
    place-content: center;
    border-radius: 50%;
    color: var(--gold-bright);
    background: rgba(224, 184, 120, 0.1);
    border: 1px solid rgba(224, 184, 120, 0.25);
    transition: transform 0.5s var(--ease), background 0.5s, color 0.5s;
}
.craft-step__icon svg { width: 30px; height: 30px; }
.craft-step:hover .craft-step__icon {
    transform: scale(1.12) rotate(-6deg);
    background: var(--caramel);
    color: var(--foam);
}
.craft-step h3 { font-family: var(--serif); font-size: 1.4rem; margin-bottom: 0.5rem; }
.craft-step p { font-size: 0.9rem; font-weight: 300; color: rgba(247,243,232,0.7); }

/* =====================================================================
   GALLERY
   ===================================================================== */
.gallery { max-width: var(--container); margin: 0 auto; padding: clamp(5rem, 12vw, 8rem) 1.5rem; }
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
    gap: 1.2rem;
    perspective: 1200px;
}
.gallery__item {
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.25s var(--ease-soft), box-shadow 0.5s;
    box-shadow: var(--shadow-sm);
}
.gallery__item img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ease);
}
.gallery__item:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; }
.gallery__item::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(26,15,10,0.75));
}
.gallery__item span {
    position: absolute;
    left: 1.4rem; bottom: 1.2rem;
    z-index: 2;
    color: var(--foam);
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 600;
    transform: translateZ(40px) translateY(8px);
    opacity: 0.85;
    transition: transform 0.5s var(--ease), opacity 0.4s;
}
.gallery__item:hover { box-shadow: var(--shadow-lg); }
.gallery__item:hover img { transform: scale(1.12); }
.gallery__item:hover span { transform: translateZ(60px) translateY(0); opacity: 1; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }

/* =====================================================================
   QUOTES
   ===================================================================== */
.quotes {
    background:
        radial-gradient(60% 80% at 20% 20%, rgba(224,184,120,0.12), transparent),
        linear-gradient(var(--cream), var(--paper));
    padding: clamp(5rem, 12vw, 8rem) 1.5rem;
    text-align: center;
}
.quotes__inner { max-width: 820px; margin: 0 auto; }
.quotes__stage { position: relative; min-height: 240px; margin-top: 1.5rem; }
.quote {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.4rem;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    pointer-events: none;
}
.quote.is-active { opacity: 1; transform: none; pointer-events: auto; }
.quote p {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.4rem, 3.5vw, 2.3rem);
    line-height: 1.35;
    color: var(--bean);
}
.quote p::before { content: "“"; color: var(--caramel); }
.quote p::after { content: "”"; color: var(--caramel); }
.quote footer { display: flex; align-items: center; justify-content: center; gap: 0.8rem; }
.quote__avatar {
    width: 50px; height: 50px;
    flex: none;
    display: grid; place-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--caramel), var(--roast));
    color: var(--foam);
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: var(--shadow-sm);
}
.quote__who { display: flex; flex-direction: column; text-align: left; color: var(--bean); font-weight: 600; }
.quote__who span { font-weight: 300; opacity: 0.75; font-size: 0.9rem; }

/* Press / "as featured in" strip */
.press { margin-top: 3.5rem; }
.press__label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--mocha);
    opacity: 0.7;
    margin-bottom: 1.1rem;
}
.press__logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(1.2rem, 4vw, 2.8rem);
}
.press__logos li {
    font-family: var(--serif);
    font-size: clamp(0.95rem, 2.2vw, 1.25rem);
    font-style: italic;
    color: var(--bean);
    opacity: 0.45;
    transition: opacity 0.4s, transform 0.4s var(--ease);
    cursor: default;
}
.press__logos li:hover { opacity: 0.85; transform: translateY(-2px); }
.quotes__dots { display: flex; gap: 0.6rem; justify-content: center; margin-top: 1rem; }
.quotes__dots button {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--latte);
    transition: all 0.4s var(--ease);
}
.quotes__dots button.is-active { background: var(--caramel); width: 28px; border-radius: 100px; }

/* =====================================================================
   VISIT / CONTACT
   ===================================================================== */
.visit { max-width: var(--container); margin: 0 auto; padding: clamp(4rem, 10vw, 7rem) 1.5rem; }
.visit__card {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    background: linear-gradient(160deg, var(--bean), var(--espresso));
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    color: var(--foam);
}
.visit__info { padding: clamp(2rem, 5vw, 3.5rem); }
.visit__info .section__eyebrow { color: var(--gold-bright); text-align: left; }
.visit__info .section__title { color: var(--foam); text-align: left; }
.visit__lead { color: rgba(247,243,232,0.78); margin: 1rem 0 2rem; font-weight: 300; }
.visit__details { display: grid; gap: 1.2rem; margin-bottom: 2rem; }
.visit__details li { display: flex; gap: 1rem; align-items: flex-start; }
.visit__ico {
    display: grid; place-content: center;
    width: 46px; height: 46px; flex: none;
    background: rgba(224,184,120,0.14);
    border-radius: 14px; font-size: 1.3rem;
}
.visit__details strong { color: var(--gold-bright); font-weight: 600; }
.visit__details div { font-size: 0.92rem; color: rgba(247,243,232,0.8); font-weight: 300; }
.visit__details a { color: var(--gold-bright); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.visit__details a:hover { border-color: var(--gold-bright); }
.visit__socials { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.social {
    padding: 0.5rem 1.1rem;
    border: 1px solid rgba(224,184,120,0.3);
    border-radius: 100px;
    font-size: 0.85rem;
    transition: all 0.35s var(--ease);
}
.social:hover { background: var(--caramel); border-color: var(--caramel); transform: translateY(-2px); }

.visit__form { background: var(--paper); color: var(--ink); padding: clamp(2rem, 5vw, 3.5rem); }
.visit__form h3 { font-family: var(--serif); font-size: 1.6rem; color: var(--bean); margin-bottom: 1.5rem; }
.field { position: relative; margin-bottom: 1.1rem; }
.field--row { display: flex; gap: 1rem; margin-bottom: 0; }
.field--row .field { flex: 1; }
.field input, .field select, .field textarea {
    width: 100%;
    padding: 1rem 1rem 0.5rem;
    border: 1.5px solid var(--latte);
    border-radius: 12px;
    background: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--ink);
    transition: border-color 0.3s, box-shadow 0.3s;
    resize: none;
}
.field textarea { padding-top: 1.3rem; }
.field select { padding-top: 1.3rem; padding-bottom: 0.7rem; appearance: none; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--caramel);
    box-shadow: 0 0 0 4px rgba(184,115,51,0.12);
}
.field label {
    position: absolute;
    left: 1rem; top: 0.95rem;
    color: var(--mocha);
    font-size: 0.95rem;
    pointer-events: none;
    transition: all 0.25s var(--ease);
}
.field label.label--static,
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
    top: 0.35rem; font-size: 0.68rem; color: var(--caramel); letter-spacing: 0.5px;
}
.field select + label { top: 0.35rem; font-size: 0.68rem; color: var(--caramel); }
.visit__form-note { margin-top: 0.8rem; font-size: 0.88rem; min-height: 1.2em; color: var(--caramel); font-weight: 500; }
.visit__form-note.is-error { color: #c0392b; }

.visit__map {
    margin-top: 1.6rem;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    line-height: 0;
}
.visit__map iframe {
    width: 100%;
    height: 380px;
    border: 0;
    display: block;
    filter: grayscale(0.25) sepia(0.18) saturate(1.1);
}

/* =====================================================================
   LIGHTBOX
   ===================================================================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4vmin;
    background: rgba(14, 8, 5, 0.92);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img {
    max-width: min(1100px, 94vw);
    max-height: 86vh;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    transform: scale(0.94);
    transition: transform 0.45s var(--ease);
    object-fit: contain;
}
.lightbox.is-open .lightbox__img { transform: scale(1); }
.lightbox__cap {
    position: absolute;
    bottom: 5vmin; left: 0; right: 0;
    text-align: center;
    color: var(--latte);
    font-family: var(--serif);
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}
.lightbox__close, .lightbox__nav {
    position: absolute;
    background: rgba(247, 243, 232, 0.12);
    color: var(--foam);
    border-radius: 50%;
    width: 52px; height: 52px;
    font-size: 1.5rem;
    display: grid; place-content: center;
    transition: background 0.3s, transform 0.3s;
}
.lightbox__close { top: 3vmin; right: 3vmin; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 3vmin; }
.lightbox__nav--next { right: 3vmin; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--caramel); }
.lightbox__nav:hover { transform: translateY(-50%) scale(1.08); }
@media (max-width: 600px) { .lightbox__nav { width: 44px; height: 44px; } }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { background: var(--espresso); color: rgba(247,243,232,0.75); padding: clamp(3rem, 8vw, 5rem) 1.5rem 2rem; }
.footer__top {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 2fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(224,184,120,0.15);
}
.footer__brand .nav__name { font-size: 1.9rem; color: var(--foam); }
.footer__brand p { margin-top: 0.8rem; font-weight: 300; max-width: 34ch; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer__cols h4 { color: var(--gold-bright); font-size: 0.8rem; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 1rem; }
.footer__cols a { display: block; padding: 0.3rem 0; font-weight: 300; transition: color 0.3s, transform 0.3s; }
.footer__cols a:hover { color: var(--gold-bright); transform: translateX(4px); }
.footer__bottom {
    max-width: var(--container);
    margin: 1.6rem auto 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.6rem;
    font-size: 0.85rem;
}
.footer__credit span { color: var(--gold-bright); }

/* =====================================================================
   BACK TO TOP
   ===================================================================== */
.to-top {
    position: fixed;
    bottom: 1.6rem; right: 1.6rem;
    z-index: 800;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--caramel);
    color: var(--foam);
    font-size: 1.3rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.45s var(--ease);
}
.to-top.is-show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--bean); transform: translateY(-4px); }

/* =====================================================================
   SHARED ANIMATIONS
   ===================================================================== */
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* Reveal-on-scroll */
.reveal {
    opacity: 0;
    transform: translateY(38px);
    transition: opacity 0.9s var(--ease) var(--d, 0s), transform 0.9s var(--ease) var(--d, 0s);
    will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 980px) {
    .story { grid-template-columns: 1fr; }
    .story__media { max-width: 520px; margin: 0 auto; width: 100%; }
    .craft__steps { grid-template-columns: repeat(2, 1fr); }
    .visit__card { grid-template-columns: 1fr; }
    .footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .nav__menu {
        position: fixed;
        inset: 0 0 0 auto;
        width: min(78vw, 320px);
        flex-direction: column;
        justify-content: center;
        gap: 1.4rem;
        padding: 2rem;
        background: linear-gradient(160deg, var(--bean), var(--espresso));
        transform: translateX(100%);
        transition: transform 0.5s var(--ease);
        box-shadow: -20px 0 60px rgba(0,0,0,0.4);
    }
    .nav__menu.is-open { transform: none; }
    .nav__menu .nav__link { color: var(--foam); font-size: 1.2rem; }
    .nav__burger { display: flex; }
    .nav__cta { display: none; }

    .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
    .gallery__item--wide { grid-column: span 2; }
    .gallery__item--tall { grid-row: span 1; }

    .hero__stats { gap: 1.6rem; }
    .story__list { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .craft__steps { grid-template-columns: 1fr; }
    .field--row { flex-direction: column; gap: 0; }
    .footer__cols { grid-template-columns: 1fr 1fr; }
    .menu__grid { grid-template-columns: 1fr; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* Touch / no-hover devices: disable custom cursor */
@media (hover: none) {
    body.cursor-ready { cursor: auto; }
    .cursor, .cursor-trail { display: none; }
}
