/* ============================================================================
   Dok Thong Bar — "Golden Flower of Tree Town"
   Golden-hour tropical night. Warm near-black, candlelit gold, one neon accent.
   Atmosphere is CSS-only (glow + bokeh + grain). Motion follows Emil Kowalski's
   principles (custom ease-out, <300ms UI, scale on press, staggered reveals).
   ============================================================================ */

/* ----- Tokens ----- */
:root {
  --night:       #0E0B07;
  --night-2:     #120D08;
  --surface:     #1A1410;
  --surface-2:   #211A13;
  --border:      #3A2E20;
  --border-soft: #2A2017;
  --gold:        #E8B872;
  --gold-deep:   #C8922F;
  --gold-bright: #F6D58A;
  --cream:       #F2E9DA;
  --muted:       #B8A98E;
  --neon:        #FF5FA2;
  --neon-blue:   #41A6FF;

  --font-display: "Fraunces", "Noto Serif Thai", Georgia, "Times New Roman", serif;
  --font-body:    "Hanken Grotesk", "Noto Sans Thai", system-ui, -apple-system, sans-serif;

  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --maxw: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 0 rgba(246,213,138,.06) inset, 0 24px 60px -28px rgba(0,0,0,.8);
  --glow-gold: 0 0 0 1px rgba(232,184,114,.18), 0 18px 50px -20px rgba(200,146,47,.45);

  --nav-h: 68px;
}

/* ----- Reset / base ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--night);
  color: var(--cream);
  line-height: 1.6;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  position: relative;
  min-height: 100vh;
}

/* Atmosphere: layered gold glow fixed behind everything */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(200,146,47,.30), transparent 55%),
    radial-gradient(80% 60% at 85% 10%, rgba(255,95,162,.10), transparent 60%),
    radial-gradient(100% 70% at 10% 100%, rgba(200,146,47,.12), transparent 60%),
    linear-gradient(180deg, var(--night-2), var(--night) 40%);
}
/* Film grain */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 4px; }

/* ----- Layout ----- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 9vw, 7rem); position: relative; scroll-margin-top: var(--nav-h); overflow-x: clip; }

/* Accessible skip link — off-screen via transform (never causes overflow/scroll) */
.skip-link {
  position: fixed; top: .7rem; left: .7rem; z-index: 120;
  transform: translateY(-220%); transition: transform .2s var(--ease-out);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep)); color: #2A1B06;
  padding: .6rem 1rem; border-radius: var(--radius-pill); font-weight: 600; font-size: .92rem;
}
.skip-link:focus { transform: translateY(0); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }

.kicker {
  font-family: var(--font-body);
  font-size: .8rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); display: inline-flex; align-items: center; gap: .6rem;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-deep)); }

.h-section {
  font-family: var(--font-display);
  font-weight: 400; font-optical-sizing: auto;
  font-size: clamp(2rem, 1.4rem + 3.4vw, 3.5rem);
  line-height: 1.04; letter-spacing: -0.015em;
  margin-top: .6rem; color: var(--cream);
}
.h-section em { font-style: italic; color: var(--gold); }
.section-intro { color: var(--muted); max-width: 56ch; margin-top: 1rem; }
.section-head { margin-bottom: clamp(1.8rem, 4vw, 3rem); }

/* Decorative flower watermark */
.flower-wm {
  position: absolute; color: var(--gold-deep); opacity: .05;
  width: min(46vw, 420px); aspect-ratio: 1; z-index: 0; pointer-events: none;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.4rem; border-radius: var(--radius-pill);
  font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  transition: transform 160ms var(--ease-out), background-color 200ms var(--ease-out),
              box-shadow 200ms var(--ease-out), border-color 200ms var(--ease-out);
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn--primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  color: #2A1B06; box-shadow: var(--glow-gold);
}
.btn--ghost { border: 1px solid var(--border); color: var(--cream); background: rgba(255,255,255,.02); }
.btn--neon { border: 1px solid color-mix(in srgb, var(--neon) 60%, transparent); color: var(--gold-bright); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { box-shadow: 0 0 0 1px rgba(232,184,114,.4), 0 22px 55px -18px rgba(200,146,47,.7); transform: translateY(-1px); }
  .btn--ghost:hover { border-color: var(--gold-deep); background: rgba(232,184,114,.06); }
  .btn--neon:hover { border-color: var(--neon); box-shadow: 0 0 18px -2px color-mix(in srgb, var(--neon) 55%, transparent); }
}

/* ----- Wordmark / flower mark ----- */
.flower-mark { width: 1em; height: 1em; color: var(--gold); flex: none; }
.wordmark { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display); }
.wordmark .mark { width: 1.7em; height: 1.7em; }
.wordmark .name { font-size: 1.12rem; letter-spacing: .02em; color: var(--cream); }
.wordmark .name b { font-weight: 600; }
.wordmark .th { font-size: .92em; color: var(--gold); }

/* ----- Nav ----- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color 300ms var(--ease-out), backdrop-filter 300ms var(--ease-out),
              border-color 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--night) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--border-soft);
  box-shadow: 0 10px 30px -20px rgba(0,0,0,.9);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-links { display: flex; align-items: center; gap: .25rem; }
.nav-links a {
  padding: .5rem .8rem; border-radius: var(--radius-pill); font-size: .92rem; color: var(--muted);
  transition: color 180ms var(--ease-out), background-color 180ms var(--ease-out);
}
@media (hover: hover) { .nav-links a:hover { color: var(--cream); background: rgba(255,255,255,.04); } }
.nav-links a.active { color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: .6rem; }

/* Open-now pill */
.status {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .7rem .4rem .6rem; border-radius: var(--radius-pill);
  font-size: .8rem; font-weight: 600; letter-spacing: .02em;
  border: 1px solid var(--border); background: rgba(0,0,0,.25); color: var(--muted);
}
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); position: relative; }
.status.is-open { color: var(--gold-bright); border-color: color-mix(in srgb, var(--gold) 40%, transparent); }
.status.is-open .dot { background: #6BE29A; box-shadow: 0 0 0 0 rgba(107,226,154,.6); animation: pulse 2.4s var(--ease-out) infinite; }
.status .sub { color: var(--muted); font-weight: 500; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(107,226,154,.5); } 70% { box-shadow: 0 0 0 7px rgba(107,226,154,0); } 100% { box-shadow: 0 0 0 0 rgba(107,226,154,0); } }

.lang-toggle {
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: .42rem .7rem; font-size: .82rem; font-weight: 600; color: var(--gold);
  transition: transform 160ms var(--ease-out), border-color 180ms var(--ease-out), background-color 180ms var(--ease-out);
}
.lang-toggle:active { transform: scale(0.97); }
@media (hover: hover) { .lang-toggle:hover { border-color: var(--gold-deep); background: rgba(232,184,114,.06); } }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--cream); border-radius: 2px;
  transition: transform 200ms var(--ease-out), opacity 160ms var(--ease-out);
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(4px); }

/* ----- Hero ----- */
.hero {
  min-height: 100svh; display: grid; place-items: center; text-align: center;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 4rem; position: relative; overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; max-width: 880px; }
.hero .eyebrow { color: var(--gold); letter-spacing: .26em; text-transform: uppercase; font-size: .76rem; font-weight: 600; }
.hero h1 {
  font-family: var(--font-display); font-weight: 300; font-optical-sizing: auto;
  font-size: clamp(3.2rem, 1.5rem + 9vw, 8rem); line-height: .92; letter-spacing: -0.02em;
  margin: 1.2rem 0 .4rem; color: var(--cream);
}
/* Neon wordmark glow */
.hero h1 .neon {
  color: var(--gold-bright);
  text-shadow: 0 0 14px rgba(246,213,138,.45), 0 0 40px rgba(232,184,114,.25);
}
.hero h1 .th { display: block; font-size: .42em; color: var(--gold); letter-spacing: .04em; margin-bottom: .1em; font-weight: 400; }
.hero .tagline { font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem); color: var(--gold); }
.hero .lead { color: var(--muted); margin: 1rem auto 0; max-width: 40ch; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 2rem; }
.hero .status { margin: 1.6rem auto 0; }

/* Bokeh string-lights */
.bokeh { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.bokeh span {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--gold-bright), rgba(200,146,47,.2) 60%, transparent 70%);
  filter: blur(1px); opacity: .55; animation: twinkle 5s var(--ease-in-out) infinite;
}
@keyframes twinkle { 0%,100% { opacity: .3; transform: translateY(0) scale(1); } 50% { opacity: .75; transform: translateY(-6px) scale(1.08); } }

.scroll-cue { position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%); z-index: 2; color: var(--muted); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; display: grid; gap: .4rem; justify-items: center; }
.scroll-cue .line { width: 1px; height: 34px; background: linear-gradient(var(--gold-deep), transparent); animation: drop 2.2s var(--ease-in-out) infinite; transform-origin: top; }
@keyframes drop { 0% { transform: scaleY(0); opacity: 0; } 40% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1) translateY(8px); opacity: 0; } }

/* Hero background photo (the bar's real neon sign), dimmed beneath the content */
.hero-photo { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center 40%; opacity: .5; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(120% 85% at 50% 0%, rgba(200,146,47,.22), transparent 55%),
  linear-gradient(180deg, rgba(14,11,7,.5) 0%, rgba(14,11,7,.74) 52%, rgba(14,11,7,.93) 100%); }

/* Neon-lady silhouette accent (CC0) — the bar's signature, tastefully placed */
.lady-neon { position: absolute; right: clamp(-2.5rem, 0vw, 3rem); bottom: 0; height: clamp(230px, 42vw, 380px); width: auto; z-index: 0; opacity: .9; pointer-events: none;
  filter: drop-shadow(0 0 16px rgba(255,95,162,.55)) drop-shadow(0 0 38px rgba(255,95,162,.28)); }
.contact .container { position: relative; z-index: 1; }
@media (max-width: 760px) { .lady-neon { opacity: .26; right: -1.5rem; height: 270px; } }

/* ----- Glass card / bento ----- */
.glass {
  background: linear-gradient(180deg, rgba(33,26,19,.7), rgba(20,15,10,.55));
  border: 1px solid var(--border-soft); border-radius: var(--radius);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-card);
}
.bento { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.bento .card { padding: clamp(1.2rem, 2.6vw, 1.8rem); position: relative; overflow: hidden; }
.card-head { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.1rem; }
.card-head .mark { width: 1.5rem; height: 1.5rem; color: var(--gold-deep); }
.card-head h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; color: var(--cream); }
.card-head .th { color: var(--gold); font-size: .9rem; }

/* Menu list with dotted leaders */
.menu-list { list-style: none; padding: 0; display: grid; gap: .2rem; }
.menu-list li { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .5rem; padding: .5rem 0; border-bottom: 1px dashed var(--border-soft); }
.menu-list li:last-child { border-bottom: 0; }
.menu-list .name { color: var(--cream); font-weight: 500; }
.menu-list .name .th { display: block; color: var(--muted); font-size: .84rem; font-weight: 400; }
.menu-list .name .desc { display: block; color: var(--muted); font-size: .82rem; font-style: italic; }
.menu-list .price { color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu-list .price .cur { color: var(--gold-deep); font-weight: 500; margin-right: .1em; }
.disclaimer { color: var(--muted); font-size: .85rem; margin-top: 1.2rem; display: flex; gap: .5rem; align-items: flex-start; }
.disclaimer svg { width: 1rem; height: 1rem; flex: none; margin-top: .2rem; color: var(--gold-deep); }

/* ----- What's on / events ----- */
.whatson-grid { display: grid; gap: 1rem; grid-template-columns: 1.3fr 1fr; }
.happy {
  padding: clamp(1.6rem, 3vw, 2.4rem); position: relative; overflow: hidden;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(200,146,47,.22), transparent 55%),
    linear-gradient(180deg, rgba(33,26,19,.8), rgba(20,15,10,.6));
}
.happy .big { font-family: var(--font-display); font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); color: var(--gold-bright); line-height: 1.05; margin: .4rem 0 .6rem; }
.happy .time { display: inline-block; border: 1px solid var(--border); border-radius: var(--radius-pill); padding: .3rem .8rem; color: var(--gold); font-weight: 600; font-size: .9rem; margin-top: .4rem; }
.events { display: grid; gap: .8rem; }
.event { padding: 1.1rem 1.2rem; display: grid; gap: .35rem; }
.event .top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.event h4 { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; color: var(--cream); }
.event .when { color: var(--gold); font-size: .82rem; font-weight: 600; white-space: nowrap; }
.event p { color: var(--muted); font-size: .9rem; }
.badge { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #2A1B06; background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep)); padding: .2rem .5rem; border-radius: 6px; }

/* ----- Gallery ----- */
.gallery { display: grid; gap: .8rem; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; }
.tile { position: relative; overflow: hidden; border-radius: var(--radius-sm); border: 1px solid var(--border-soft); background: var(--surface); }
.tile.wide { grid-column: span 2; }
.tile.tall { grid-row: span 2; }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out), filter 400ms var(--ease-out); }
.tile .cap { position: absolute; inset: auto 0 0 0; padding: .8rem; font-size: .82rem; color: var(--cream); background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.tile .play { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold-bright); }
.tile .play svg { width: 48px; height: 48px; filter: drop-shadow(0 4px 12px rgba(0,0,0,.6)); }
@media (hover: hover) and (pointer: fine) { .tile:hover img { transform: scale(1.05); } }
/* Placeholder tiles (no real media yet) */
.tile.placeholder { display: grid; place-items: center; background:
    radial-gradient(120% 100% at 30% 0%, rgba(200,146,47,.16), transparent 60%), var(--surface); color: var(--gold-deep); }
.tile.placeholder .mark { width: 38%; opacity: .35; }
.tile.placeholder .lbl { position: absolute; bottom: .8rem; left: 0; right: 0; text-align: center; color: var(--muted); font-size: .78rem; }

/* ----- Find us ----- */
.find-grid { display: grid; gap: 1.2rem; grid-template-columns: 1.1fr .9fr; align-items: start; }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4 / 3; background: var(--surface); }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.2) contrast(1.05) brightness(.92); }
.info-stack { display: grid; gap: 1rem; }
.info-block { padding: 1.2rem 1.3rem; }
.info-block h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; margin-bottom: .7rem; display: flex; align-items: center; gap: .5rem; }
.info-block h3 svg { width: 1.1rem; height: 1.1rem; color: var(--gold-deep); }
.info-block h3 .tz { color: var(--muted); font-size: .72rem; font-weight: 400; letter-spacing: .02em; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: .42rem 0; border-bottom: 1px dashed var(--border-soft); font-size: .92rem; }
.hours-table td:last-child { text-align: right; color: var(--gold); font-variant-numeric: tabular-nums; }
.hours-table tr:last-child td { border-bottom: 0; }
.hours-table tr.today td { color: var(--cream); }
.hours-table tr.today td:first-child::after { content: "•"; color: var(--gold-bright); margin-left: .4rem; }
.note { color: var(--muted); font-size: .86rem; margin-top: .6rem; }

/* ----- Contact / footer ----- */
.contact { text-align: center; }
.contact .cta-row { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.6rem; }
.socials { display: flex; gap: .6rem; justify-content: center; margin-top: 1.4rem; }
.socials a { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted); transition: transform 160ms var(--ease-out), color 180ms var(--ease-out), border-color 180ms var(--ease-out); }
.socials a:active { transform: scale(0.94); }
@media (hover: hover) { .socials a:hover { color: var(--gold); border-color: var(--gold-deep); } }
.socials svg { width: 20px; height: 20px; }

.site-footer { border-top: 1px solid var(--border-soft); padding-block: 2.4rem; text-align: center; color: var(--muted); }
.site-footer .wordmark { justify-content: center; margin-bottom: 1rem; }
.site-footer .meta { font-size: .82rem; display: flex; gap: .4rem 1.2rem; flex-wrap: wrap; justify-content: center; }
.site-footer .legal { margin-top: 1rem; font-size: .76rem; color: color-mix(in srgb, var(--muted) 75%, transparent); }
.divider-flower { display: grid; place-items: center; color: var(--gold-deep); margin: 0 auto 1.2rem; }
.divider-flower .mark { width: 30px; opacity: .6; }

/* ----- Reveal on scroll (only hidden when JS is present; no-JS shows all) ----- */
.reveal { transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js [data-stagger] > * { opacity: 0; transform: translateY(14px); }
.js [data-stagger].is-visible > * { animation: rise 520ms var(--ease-out) forwards; }
/* preview mode (?preview=1): force all content visible for screenshots */
.reveal-all .reveal, .reveal-all [data-stagger] > *, .reveal-all .hero-inner > * { opacity: 1 !important; transform: none !important; animation: none !important; }
.reveal-all .hero { min-height: 580px !important; }

/* ============================================================================
   Preloader — the golden flower draws itself, then the hero blooms in.
   Pure-CSS choreography (robust without JS), gated on html.preloading
   (set by the early inline script on first visit, motion-on only).
   ============================================================================ */
.preloader { display: none; }
.reveal-all .preloader { display: none !important; }

html.preloading .preloader {
  display: grid; grid-auto-flow: row; place-content: center; justify-items: center; gap: 1.5rem;
  position: fixed; inset: 0; z-index: 200;
  background: radial-gradient(120% 90% at 50% 42%, rgba(200,146,47,.22), transparent 60%), var(--night);
  animation: pre-out 850ms var(--ease-out) 1750ms forwards;
}

.pre-flower {
  width: clamp(96px, 24vw, 158px); height: auto; color: var(--gold); overflow: visible;
  filter: drop-shadow(0 0 16px rgba(232,184,114,.5));
  animation: pre-bloom 1400ms var(--ease-out) 760ms both;
}
.pre-flower path, .pre-flower circle { stroke-dasharray: 1; stroke-dashoffset: 1; }
.pre-flower .petals path { animation: draw 1000ms var(--ease-out) 200ms forwards; }
.pre-flower .pre-center { animation: draw 520ms var(--ease-out) 1000ms forwards; }
.pre-word {
  font-family: var(--font-display); color: var(--gold); letter-spacing: .42em; text-indent: .42em;
  font-size: clamp(1rem, 3.2vw, 1.35rem); text-transform: uppercase; opacity: 0; transform: translateY(8px);
  animation: fadeUp 700ms var(--ease-out) 1080ms forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@keyframes pre-bloom { 0% { transform: scale(.82) rotate(-10deg); } 70% { transform: scale(1.05) rotate(3deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes pre-out { to { opacity: 0; transform: scale(1.1); filter: blur(7px); visibility: hidden; } }

/* Hero bloom-in, choreographed to start as the preloader exits */
html.preloading .hero-inner > * { opacity: 0; transform: translateY(18px); animation: heroIn 760ms var(--ease-out) forwards; }
html.preloading .hero-inner > *:nth-child(1) { animation-delay: 1.95s; }
html.preloading .hero-inner > *:nth-child(2) { animation-delay: 2.05s; }
html.preloading .hero-inner > *:nth-child(3) { animation-delay: 2.18s; }
html.preloading .hero-inner > *:nth-child(4) { animation-delay: 2.30s; }
html.preloading .hero-inner > *:nth-child(5) { animation-delay: 2.42s; }
html.preloading .hero-inner > *:nth-child(6) { animation-delay: 2.54s; }
html.preloading .hero h1 .neon { animation: heroIn 760ms var(--ease-out) 2.18s forwards, flicker 1.1s steps(1) 2.9s 1; }
@keyframes heroIn { to { opacity: 1; transform: none; } }
@keyframes flicker { 0%,18%,22%,54%,58%,100% { opacity: 1; } 20%,56% { opacity: .35; } 23% { opacity: .8; } }

/* ===== Subtle ambient life & micro-delight ===== */
/* Breathing gold glow (candlelight) */
@media (prefers-reduced-motion: no-preference) {
  body::before { animation: breathe 9s var(--ease-in-out) infinite; }
}
@keyframes breathe { 0%,100% { opacity: 1; } 50% { opacity: .8; } }

/* Gold sheen sweep across the primary CTA on hover */
.btn--primary { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: translateX(-130%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
}
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover::after { animation: sheen 720ms var(--ease-out); }
  .wordmark:hover .mark { animation: bloomspin 1.1s var(--ease-out); }
}
@keyframes sheen { to { transform: translateX(130%) skewX(-18deg); } }
@keyframes bloomspin { from { transform: rotate(0) scale(1); } 60% { transform: rotate(144deg) scale(1.12); } to { transform: rotate(144deg) scale(1); } }
[data-stagger].is-visible > *:nth-child(1) { animation-delay: 0ms; }
[data-stagger].is-visible > *:nth-child(2) { animation-delay: 60ms; }
[data-stagger].is-visible > *:nth-child(3) { animation-delay: 120ms; }
[data-stagger].is-visible > *:nth-child(4) { animation-delay: 180ms; }
[data-stagger].is-visible > *:nth-child(5) { animation-delay: 240ms; }
[data-stagger].is-visible > *:nth-child(6) { animation-delay: 300ms; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ----- Mobile menu overlay ----- */
.mobile-menu { position: fixed; inset: 0; z-index: 60; background: color-mix(in srgb, var(--night) 96%, transparent); backdrop-filter: blur(20px); display: grid; place-content: center; gap: .4rem; text-align: center; opacity: 0; visibility: hidden; transition: opacity 280ms var(--ease-out), visibility 280ms; }
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a { font-family: var(--font-display); font-size: 1.7rem; color: var(--cream); padding: .5rem; }
.mobile-menu .close { position: absolute; top: 1rem; right: 1rem; width: 46px; height: 46px; border: 1px solid var(--border); border-radius: 12px; display: grid; place-items: center; color: var(--cream); font-size: 1.4rem; }

/* ----- Lightbox / slideshow ----- */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(6,4,2,.94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .4rem; padding: clamp(.8rem, 3vw, 2rem); opacity: 0; visibility: hidden; transition: opacity 260ms var(--ease-out), visibility 260ms; }
.lightbox.open { opacity: 1; visibility: visible; }
.lb-stage { grid-column: 2; display: grid; place-items: center; min-width: 0; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
.lb-stage.fade { opacity: 0; transform: scale(.98); }
.lb-stage img, .lb-stage video, .lb-stage iframe { max-width: min(90vw, 1200px); max-height: 80vh; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 30px 80px -30px rgba(0,0,0,.9); background: var(--surface); }
.lb-stage iframe { width: min(90vw, 1200px); aspect-ratio: 16/9; }
.lb-btn { border: 1px solid var(--border); background: rgba(0,0,0,.45); color: var(--cream); display: grid; place-items: center; cursor: pointer; transition: transform .14s var(--ease-out), border-color .18s var(--ease-out), background-color .18s var(--ease-out); }
.lb-btn:active { transform: scale(.92); }
@media (hover: hover) and (pointer: fine) { .lb-btn:hover { border-color: var(--gold-deep); background: rgba(232,184,114,.14); color: var(--gold-bright); } }
.lb-close { position: absolute; top: 1rem; right: 1rem; width: 46px; height: 46px; border-radius: 12px; font-size: 1.7rem; line-height: 1; z-index: 3; }
.lb-nav { width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; line-height: 1; z-index: 3; }
.lb-prev { grid-column: 1; }
.lb-next { grid-column: 3; }
.lb-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: .9rem; justify-content: center; padding: 1.1rem; color: var(--muted); font-size: .9rem; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.lb-play { width: 42px; height: 42px; border-radius: 50%; }
.lb-play svg { width: 16px; height: 16px; }
.lb-play .i-pause { display: none; }
.lightbox.playing .lb-play .i-play { display: none; }
.lightbox.playing .lb-play .i-pause { display: block; }
.lb-count { font-variant-numeric: tabular-nums; color: var(--gold); font-weight: 600; }
.lb-cap { color: var(--cream); max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) {
  /* Full-bleed image with large overlay controls (thumb-friendly) */
  .lightbox { display: block; padding: 0; }
  .lb-stage { position: absolute; inset: 0 0 6rem 0; padding: .8rem; }
  .lb-stage img, .lb-stage video, .lb-stage iframe { max-width: 94vw; max-height: 100%; }
  .lb-btn { background: rgba(0,0,0,.6); border-color: color-mix(in srgb, var(--gold) 34%, var(--border)); color: var(--gold-bright); }
  .lb-close { top: .6rem; right: .6rem; width: 52px; height: 52px; font-size: 2rem; }
  .lb-nav { position: absolute; top: 50%; margin-top: -30px; transform: none; width: 60px; height: 60px; font-size: 2.2rem; }
  .lb-prev { left: .5rem; right: auto; }
  .lb-next { right: .5rem; left: auto; }
  .lb-bar { padding: 1rem .9rem 1.25rem; gap: 1.2rem; }
  .lb-play { width: 58px; height: 58px; }
  .lb-play svg { width: 22px; height: 22px; }
  .lb-count { font-size: 1.05rem; }
  .lb-cap { display: block; font-size: .82rem; max-width: 48vw; }
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .whatson-grid, .find-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
}
@media (max-width: 720px) {
  .nav-links, .nav-actions .status .sub { display: none; }
  .nav-toggle { display: inline-flex; }
  .bento { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .nav-actions .status { padding: .35rem .5rem; }
  .gallery .tile.wide { grid-column: auto; }
}

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  [data-stagger] > * { opacity: 1; transform: none; }
}

/* Print: keep it simple */
@media print { body::before, body::after, .bokeh, .nav, .scroll-cue { display: none; } body { background: #fff; color: #000; } }
