/* =========================================================
   Bean Board · Yendada — cave café
   Light theme is the default; dark theme via [data-theme="dark"].
   ========================================================= */
:root {
  /* brand constants */
  --clay: #b4513a;
  --clay-deep: #8f3b2a;
  --teal: #1f5b59;
  --brand: #2aa7c0;
  --cream: #f6eedf;
  --ink: #2a1e17;
  --veg: #2f8a3c;
  --nonveg: #c0392b;
  --wa: #1f9e57;

  /* light theme tokens */
  --bg: #f4ecdd;
  --surface: #ece0c8;
  --paper: #f8f2e6;
  --card: #fbf7ef;
  --text: #2a1e17;
  --text-soft: #66544a;
  --line: rgba(42, 30, 23, .14);
  --fill: rgba(42, 30, 23, .05);
  --field: rgba(255, 255, 255, .75);
  --accent: #b4513a;
  --accent-2: #a2541f;
  --price: #a0461f;
  --sand: #e4d2b2;
  --terracotta: #b4513a;
  --footer: #2b1f17;

  --sky-1: #f8ecd8;
  --sky-2: #f1d3ae;
  --sky-3: #e7b98e;
  --orb: rgba(255, 214, 150, .95);
  --rock-tint: #d8c3a0;
  --rock-shade: rgba(90, 60, 35, .35);
  --lamp: rgba(255, 196, 120, .55);
  --stars: 0;

  --tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='700'%3E%3Cfilter id='r' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.006 0.011' numOctaves='5' seed='11' stitchTiles='stitch'/%3E%3CfeDiffuseLighting lighting-color='%23f4ead7' surfaceScale='6'%3E%3CfeDistantLight azimuth='225' elevation='55'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23r)'/%3E%3C/svg%3E");
  --tex-blend: multiply;

  --f-display: "Fraunces", Georgia, serif;
  --f-body: "Jost", "Segoe UI", system-ui, sans-serif;
  --f-script: "Pinyon Script", cursive;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --radius: 22px;
  --gutter: clamp(16px, 4vw, 56px);

  /* rock relief used on the cave mound (lit stone) */
  --rock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='r' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.008 0.013' numOctaves='5' seed='4' stitchTiles='stitch'/%3E%3CfeDiffuseLighting lighting-color='%23ffffff' surfaceScale='7'%3E%3CfeDistantLight azimuth='250' elevation='50'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23r)'/%3E%3C/svg%3E");
  --mound: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 500' preserveAspectRatio='none'%3E%3Cpath d='M0 500V318c70-22 120-6 190-34s110-60 190-58 120 26 170-14 70-110 110-150 70-46 100-34 40 40 70 70 40 34 80 70 40 92 110 104 140-26 200 6 90 54 160 50 60-14 60-14V500Z'/%3E%3C/svg%3E");
  --edge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 80V46c90-20 170 14 260 6s150-40 250-30 140 34 250 26 170-46 290-38 150 30 230 22 110-22 160-16v64Z'/%3E%3C/svg%3E");
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #18110d;
  --surface: #241a14;
  --paper: #1d1511;
  --card: #2a1f18;
  --text: #ecdfc8;
  --text-soft: rgba(236, 223, 200, .66);
  --line: rgba(236, 223, 200, .14);
  --fill: rgba(236, 223, 200, .07);
  --field: rgba(255, 255, 255, .05);
  --accent: #d0693f;
  --accent-2: #ffcf8a;
  --price: #ffcf8a;
  --sand: #140e0b;
  --terracotta: #9a4330;
  --footer: #0e0907;

  --sky-1: #0d0a12;
  --sky-2: #1d1520;
  --sky-3: #3a2418;
  --orb: rgba(255, 236, 200, .9);
  --rock-tint: #6a5140;
  --rock-shade: rgba(0, 0, 0, .55);
  --lamp: rgba(255, 170, 80, .8);
  --stars: 1;

  --tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='700'%3E%3Cfilter id='r' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.006 0.011' numOctaves='5' seed='11' stitchTiles='stitch'/%3E%3CfeDiffuseLighting lighting-color='%23ffffff' surfaceScale='6'%3E%3CfeDistantLight azimuth='225' elevation='55'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23r)'/%3E%3C/svg%3E");
  --tex-blend: soft-light;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.04; margin: 0; letter-spacing: -0.015em; }
h2 { font-size: clamp(2.2rem, 5.4vw, 4.4rem); font-variation-settings: "opsz" 120; }
.eyebrow { font-size: .78rem; letter-spacing: .28em; text-transform: uppercase; font-weight: 500; margin: 0 0 1.2rem; color: var(--accent); }
.script { font-family: var(--f-script); font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; margin: 0 0 .6rem; color: var(--accent); }
.muted { color: var(--text-soft); }

/* textured stone surface */
.tex { background-color: var(--surface); background-image: var(--tex); background-blend-mode: var(--tex-blend); background-size: 700px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.6rem; border-radius: 999px; border: 0;
  background: var(--clay); color: var(--cream);
  font-weight: 500; letter-spacing: .04em; text-decoration: none;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .3s;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 207, 138, .55), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { opacity: 1; }
.btn--glow { box-shadow: 0 10px 30px -10px rgba(180, 81, 58, .8); }
.btn--glow:hover { box-shadow: 0 16px 40px -10px rgba(255, 150, 90, .7); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: var(--fill); }
.btn--wa { background: var(--wa); }
.btn--wa svg { width: 22px; height: 22px; fill: currentColor; }
.btn--wide { width: 100%; }

.link-arrow {
  background: none; border: 0; padding: 0 0 2px; text-decoration: none;
  font-weight: 500; letter-spacing: .06em; display: inline-flex; align-items: center; gap: .5rem;
  border-bottom: 1px solid currentColor;
}
.link-arrow::after { content: "→"; transition: transform .4s var(--ease); }
.link-arrow:hover::after { transform: translateX(5px); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 1rem;
  background: var(--bg); color: var(--text);
  clip-path: circle(150% at 50% 80%);
}
.loader__cup svg { width: 120px; height: 120px; }
.loader .cup-line { stroke: var(--text); }
.loader .steam { fill: none; stroke: var(--text); stroke-width: 3; stroke-linecap: round; opacity: 0; animation: steam 1.8s ease-in-out infinite; }
.loader .s2 { animation-delay: .3s; } .loader .s3 { animation-delay: .6s; }
.loader .fill { transform-origin: 50% 100%; transform: scaleY(0); transform-box: fill-box; animation: fillcup 1.6s var(--ease) forwards .2s; }
.loader__text { font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; margin: 0; }
.loader__text span { animation: blink 1.2s infinite; } .loader__text span:nth-child(2) { animation-delay: .2s; } .loader__text span:nth-child(3) { animation-delay: .4s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(6px); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(-10px); } }
@keyframes fillcup { to { transform: scaleY(1); } }
@keyframes blink { 50% { opacity: .2; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.6rem;
  padding: 14px var(--gutter);
  transition: background .5s var(--ease), padding .5s var(--ease), transform .5s var(--ease), box-shadow .5s;
}
.nav.is-solid {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  padding-top: 10px; padding-bottom: 10px; box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .5);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.nav__logo img { height: 40px; width: auto; padding: 6px 12px; background: var(--cream); border-radius: 12px; box-shadow: 0 4px 14px -8px rgba(0, 0, 0, .4); }
.nav__branch { font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }
.nav__links { display: flex; gap: 2rem; margin-left: auto; }
.nav__links a { text-decoration: none; color: var(--text); font-size: .95rem; letter-spacing: .05em; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { padding: .7rem 1.25rem; font-size: .9rem; }

.theme-btn {
  width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1px solid var(--line);
  background: var(--fill); display: grid; place-items: center; position: relative; overflow: hidden;
  transition: background .3s, transform .5s var(--ease);
}
.theme-btn:hover { transform: rotate(-15deg); }
.theme-btn svg { width: 20px; height: 20px; position: absolute; fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; transition: transform .6s var(--ease), opacity .4s; }
.theme-btn .i-moon { transform: translateY(140%) rotate(40deg); opacity: 0; }
[data-theme="dark"] .theme-btn .i-sun { transform: translateY(-140%) rotate(-40deg); opacity: 0; }
[data-theme="dark"] .theme-btn .i-moon { transform: none; opacity: 1; }

.nav__burger { display: none; width: 44px; height: 44px; border: 0; background: var(--cream); border-radius: 50%; position: relative; }
.nav__burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease); }
.nav__burger span:first-child { top: 18px; } .nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.drawer {
  background: var(--bg);
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: center; gap: 1.4rem; padding: 0 var(--gutter);
  clip-path: circle(0% at calc(100% - 38px) 36px); transition: clip-path .8s var(--ease); visibility: hidden;
}
.drawer.is-open { clip-path: circle(150% at calc(100% - 38px) 36px); visibility: visible; }
.drawer a:not(.btn) { font-family: var(--f-display); font-size: 2.6rem; color: var(--text); text-decoration: none; }
.drawer .btn { align-self: flex-start; margin-top: 1rem; }

/* =========================================================
   HERO — sky above, cave below, a door in the middle
   ========================================================= */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; isolation: isolate; }

.hero__sky {
  position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 55%, var(--sky-3) 100%);
  transition: background .6s var(--ease);
}
.hero__orb {
  position: absolute; left: 50%; top: 56%; width: min(70vw, 760px); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(circle, var(--orb) 0%, transparent 62%); opacity: .55; filter: blur(8px);
}
.hero__stars {
  position: absolute; inset: 0; opacity: var(--stars); transition: opacity .8s;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, #fff8, transparent), radial-gradient(1px 1px at 28% 32%, #fff9, transparent),
    radial-gradient(1.6px 1.6px at 44% 12%, #fffa, transparent), radial-gradient(1px 1px at 63% 26%, #fff8, transparent),
    radial-gradient(1.3px 1.3px at 78% 14%, #fffb, transparent), radial-gradient(1px 1px at 88% 34%, #fff7, transparent),
    radial-gradient(1.2px 1.2px at 6% 40%, #fff6, transparent), radial-gradient(1px 1px at 54% 38%, #fff6, transparent),
    radial-gradient(1.5px 1.5px at 36% 6%, #fff9, transparent), radial-gradient(1px 1px at 94% 8%, #fff9, transparent);
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { to { filter: brightness(.6); } }

.hero__copy {
  position: absolute; z-index: 3; left: 0; right: 0; top: clamp(86px, 13svh, 140px);
  text-align: center; padding: 0 var(--gutter);
}
.hero__title { font-size: clamp(2.6rem, min(7.4vw, 9.5svh), 6.6rem); font-weight: 300; line-height: .98; color: var(--text); }
.hero__title em { font-style: italic; color: var(--accent); font-weight: 400; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }
.hero__sub { max-width: 460px; margin: 1rem auto 1.4rem; color: var(--text-soft); font-size: 1.04rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.4rem; }
.hero__sub + .hero__actions { margin-top: 0; }

/* the cave */
.cave {
  --dw: clamp(104px, min(17vw, 25svh), 250px);
  --dh: calc(var(--dw) * 1.55);
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  height: calc(var(--dh) * 1.24);
  transform-origin: 50% calc(100% - var(--dh) / 2);
  will-change: transform;
}
.cave__rock {
  position: absolute; bottom: 0; left: 50%; width: max(100%, 980px); height: 100%; transform: translateX(-50%);
  background-color: var(--rock-tint);
  background-image: linear-gradient(180deg, transparent 30%, var(--rock-shade)), var(--rock);
  background-blend-mode: normal, multiply;
  background-size: 100% 100%, 600px;
  -webkit-mask: var(--mound) center / 100% 100% no-repeat; mask: var(--mound) center / 100% 100% no-repeat;
  filter: drop-shadow(0 -6px 20px rgba(0, 0, 0, .15));
  transition: background-color .6s var(--ease);
}
.cave__ground {
  position: absolute; left: 50%; bottom: 0; width: calc(var(--dw) * 2.4); height: 26px; transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 100%, var(--lamp), transparent 70%); opacity: .7; z-index: 1;
}

.lamp {
  position: absolute; bottom: calc(var(--dh) * .52); width: 10px; height: 16px; z-index: 2;
  border-radius: 50% 50% 40% 40%; background: #ffd79a;
  box-shadow: 0 0 12px 4px var(--lamp), 0 0 60px 24px var(--lamp);
  animation: flicker 3.2s infinite;
}
.lamp::before { content: ""; position: absolute; left: 50%; top: -12px; width: 2px; height: 12px; margin-left: -1px; background: #3a2a20; }
.lamp--l { left: calc(50% - var(--dw) / 2 - 34px); }
.lamp--r { right: calc(50% - var(--dw) / 2 - 34px); animation-delay: -1.4s; }
@keyframes flicker { 0%, 100% { opacity: 1; } 42% { opacity: .82; } 45% { opacity: 1; } 70% { opacity: .9; } }

/* doorway */
.door {
  position: absolute; left: 50%; bottom: 0; z-index: 2;
  width: var(--dw); height: var(--dh); margin-left: calc(var(--dw) / -2);
  border-radius: calc(var(--dw) / 2) calc(var(--dw) / 2) 4px 4px;
  overflow: hidden; perspective: 900px;
  background: #1a120d;
  box-shadow:
    0 0 0 10px color-mix(in srgb, var(--rock-tint) 70%, #000 30%),
    0 0 0 12px rgba(0, 0, 0, .25),
    0 20px 60px -10px rgba(0, 0, 0, .5);
}
.door__inside { position: absolute; inset: 0; }
.door__inside img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; transform: scale(1.4); }
.door__glow { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 70%, rgba(255, 200, 130, .55), transparent 70%); mix-blend-mode: screen; opacity: 0; }
.door__leaf {
  position: absolute; top: 0; bottom: 0; width: 50%;
  background-color: #5d3b25;
  background-image:
    linear-gradient(180deg, transparent 22%, #2b1c13 22%, #2b1c13 25.5%, #4a4038 25.5%, #4a4038 26%, transparent 26%, transparent 74%, #2b1c13 74%, #2b1c13 77.5%, #4a4038 77.5%, #4a4038 78%, transparent 78%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .28) 0 2px, transparent 2px 25%),
    linear-gradient(90deg, #6a4329, #553520 60%, #6a4329);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, .45);
}
.door__leaf--l { left: 0; transform-origin: 0 50%; }
.door__leaf--r { right: 0; transform-origin: 100% 50%; }
.door__leaf--l::after, .door__leaf--r::after { /* studs */
  content: ""; position: absolute; top: 23.6%; left: 10%; right: 10%; height: 4px;
  background: radial-gradient(circle, #8b7f72 1.6px, transparent 2px) 0 0 / 14px 4px repeat-x;
  box-shadow: 0 calc(var(--dh) * .52) 0 0 transparent;
}
.door__ring {
  position: absolute; top: 52%; width: 18px; height: 18px; border-radius: 50%;
  border: 3px solid #c9a46a; box-shadow: 0 2px 4px rgba(0, 0, 0, .5);
}
.door__leaf--l .door__ring { right: 10px; }
.door__leaf--r .door__ring { left: 10px; }
.door__seam {
  position: absolute; left: 50%; top: 4%; bottom: 0; width: 2px; margin-left: -1px;
  background: linear-gradient(180deg, transparent, #ffd08a 20%, #ffb35c 80%, transparent);
  box-shadow: 0 0 12px 2px rgba(255, 180, 90, .8);
  opacity: .85; animation: seam 3s ease-in-out infinite;
}
@keyframes seam { 50% { opacity: .45; } }

/* full-room layer revealed after walking through the door */
.hero__room { position: absolute; inset: 0; z-index: 4; opacity: 0; visibility: hidden; pointer-events: none; }
.hero__room img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero__room::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 12, 8, .15), rgba(20, 12, 8, .55)); }
.hero__welcome {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 14svh; text-align: center; color: var(--cream);
  font-family: var(--f-script); font-size: clamp(3rem, 8vw, 6rem); line-height: 1; text-shadow: 0 6px 40px rgba(0, 0, 0, .6);
}

.hero__status {
  position: absolute; z-index: 3; right: var(--gutter); bottom: 22px;
  display: inline-flex; align-items: center; gap: .6rem; font-size: .82rem; letter-spacing: .05em;
  padding: .5rem .95rem; border-radius: 999px; color: var(--cream);
  background: rgba(24, 17, 13, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero__status i { width: 8px; height: 8px; border-radius: 50%; background: #5bd17a; animation: pulse 2s infinite; }
.hero__status.is-closed i { background: #e2765b; animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(91, 209, 122, .6); } 70% { box-shadow: 0 0 0 10px rgba(91, 209, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(91, 209, 122, 0); } }
.hero__hint {
  position: absolute; z-index: 3; left: var(--gutter); bottom: 26px; margin: 0;
  font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--cream);
  display: flex; align-items: center; gap: .7rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}
.hero__hint::before { content: ""; width: 1px; height: 28px; background: currentColor; animation: hint 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Organic section edges ---------- */
.story, .menu, .reserve, .visit, .footer { position: relative; }
.story::before, .menu::before, .reserve::before, .visit::before, .footer::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: clamp(36px, 5vw, 80px);
  background: var(--edge-color); -webkit-mask: var(--edge) center/100% 100% no-repeat; mask: var(--edge) center/100% 100% no-repeat;
  z-index: 3; pointer-events: none;
}

/* ---------- Story ---------- */
.story { --edge-color: var(--surface); padding: clamp(80px, 12vw, 170px) var(--gutter); }
.story__inner { max-width: 1180px; margin: 0 auto; position: relative; z-index: 1; }
.story__title { font-size: clamp(2rem, 4.8vw, 4rem); max-width: 16ch; font-weight: 300; }
.story__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); margin-top: clamp(32px, 5vw, 64px); max-width: 960px; margin-left: auto; color: var(--text-soft); font-size: 1.08rem; }
.story__grid p { margin: 0; }
.story__stats { list-style: none; padding: 0; margin: clamp(48px, 7vw, 96px) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.story__stats li { padding: 1.6rem 1rem 0 0; }
.story__stats strong { display: block; font-family: var(--f-display); font-weight: 300; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; color: var(--accent); }
.story__stats span { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-soft); }

/* ---------- Spaces ---------- */
.spaces { padding: 40px 0 clamp(80px, 10vw, 140px); overflow: hidden; }
.spaces__head { padding: 0 var(--gutter); max-width: 1180px; margin: 0 auto 48px; box-sizing: content-box; }
.spaces__track { display: flex; gap: clamp(20px, 3vw, 44px); padding: 0 var(--gutter); width: max-content; }
.space { width: min(78vw, 520px); flex: none; }
.space__media { height: min(62vh, 560px); overflow: hidden; border-radius: 200px 200px 28px 28px; position: relative; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.space:nth-child(2) .space__media { border-radius: 28px 160px 28px 160px; }
.space:nth-child(3) .space__media { border-radius: 48% 52% 28px 28px / 30% 30% 28px 28px; }
.space--photo .space__media { border-radius: 28px 28px 220px 220px; }
.space__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.4s var(--ease); }
.space:hover .space__media img { transform: scale(1.04); }
.space__body { padding: 1.6rem .4rem 0; display: grid; gap: .6rem; max-width: 440px; }
.space__no { font-size: .8rem; letter-spacing: .3em; color: var(--accent); }
.space__body h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.space__body p { margin: 0; color: var(--text-soft); }
.space__body .link-arrow { justify-self: start; margin-top: .4rem; color: var(--accent); }
.space__tag { justify-self: start; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; background: var(--clay); color: var(--cream); }

/* ---------- Menu ---------- */
.menu { --edge-color: var(--paper); background: var(--paper); padding: clamp(80px, 10vw, 140px) var(--gutter); }
.menu__inner { max-width: 1180px; margin: 0 auto; position: relative; z-index: 1; }
.menu__head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.menu__head .script { color: var(--accent-2); }
.menu__head .muted { font-size: .92rem; margin-top: 1rem; }
.menu__controls {
  position: sticky; top: 62px; z-index: 5; padding: 14px var(--gutter); margin: 0 calc(var(--gutter) * -1) 28px;
  background: linear-gradient(var(--paper) 72%, color-mix(in srgb, var(--paper) 0%, transparent));
}
.menu__tabs { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; scroll-snap-type: x proximity; }
.menu__tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; scroll-snap-align: start;
  padding: .6rem 1.15rem; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--text); font-size: .92rem; letter-spacing: .03em; white-space: nowrap;
  transition: background .4s var(--ease), color .4s, border-color .4s;
}
.tab:hover { border-color: var(--text-soft); }
.tab.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.menu__tools { display: flex; gap: 1rem; align-items: center; margin-top: .9rem; flex-wrap: wrap; }
.search { flex: 1 1 240px; display: flex; align-items: center; gap: .6rem; padding: .55rem 1rem; border-radius: 999px; background: var(--fill); border: 1px solid var(--line); }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--text-soft); stroke-width: 2; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: .95rem; }
.search input::placeholder { color: var(--text-soft); }
.diet { display: flex; padding: 4px; border-radius: 999px; background: var(--fill); border: 1px solid var(--line); }
.diet__btn { border: 0; background: none; color: var(--text); padding: .4rem .9rem; border-radius: 999px; font-size: .88rem; display: inline-flex; align-items: center; gap: .4rem; transition: background .3s; }
.diet__btn.is-active { background: var(--card); box-shadow: 0 2px 8px -4px rgba(0, 0, 0, .3); }
.dot { width: 12px; height: 12px; border: 1.5px solid; border-radius: 2px; display: inline-grid; place-items: center; flex: none; background: #fff; }
.dot::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.dot--v { color: var(--veg); }
.dot--nv { color: var(--nonveg); }

.menu__panel { min-height: 420px; }
.cat__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-bottom: 1.2rem; }
.cat__head h3 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 300; font-style: italic; }
.cat__head p { margin: 0; color: var(--text-soft); font-size: .95rem; }
.cat__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 80px); }
.dish { padding: 1.25rem 0; border-bottom: 1px dashed var(--line); }
.dish__row { display: flex; align-items: baseline; gap: .7rem; }
.dish__name { font-family: var(--f-body); font-weight: 500; font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; display: inline-flex; align-items: center; gap: .55rem; flex-wrap: wrap; margin: 0; }
.dish__leader { flex: 1; border-bottom: 1px dotted var(--text-soft); opacity: .5; transform: translateY(-4px); min-width: 20px; }
.dish__price { font-family: var(--f-display); font-size: 1.2rem; color: var(--price); white-space: nowrap; }
.dish__desc { margin: .35rem 0 0; color: var(--text-soft); font-size: .95rem; max-width: 46ch; }
.dish__vars { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.dish__vars span { font-size: .8rem; padding: .2rem .65rem; border-radius: 999px; background: var(--fill); display: inline-flex; align-items: center; gap: .4rem; }
.dish__vars b { color: var(--price); font-weight: 500; }
.dish mark { background: color-mix(in srgb, var(--accent-2) 30%, transparent); color: inherit; border-radius: 3px; }
.addons { margin-top: 2rem; padding: 1.4rem 1.6rem; border-radius: var(--radius); background: var(--fill); border: 1px solid var(--line); }
.addons h4 { margin: 0 0 .8rem; font-family: var(--f-script); font-weight: 400; font-size: 2rem; color: var(--accent-2); }
.addons ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem 2rem; }
.addons li { display: flex; justify-content: space-between; border-bottom: 1px dotted var(--line); padding: .25rem 0; font-size: .95rem; }
.addons li b { font-weight: 400; color: var(--price); }
.empty { text-align: center; padding: 4rem 1rem; color: var(--text-soft); }
.empty strong { display: block; font-family: var(--f-display); font-size: 1.6rem; font-weight: 300; color: var(--text); margin-bottom: .4rem; }
.search-results .cat { margin-bottom: 2.4rem; }

/* ---------- Reserve ---------- */
.reserve { --edge-color: var(--sand); background: var(--sand); padding: clamp(80px, 10vw, 150px) var(--gutter); overflow: hidden; }
.reserve__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px circle at var(--lx, 70%) var(--ly, 40%), color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 60%); }
.reserve__inner { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.reserve__intro .script { color: var(--accent-2); }
.reserve__intro > p { color: var(--text-soft); }
.steps { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1rem; }
.steps li { display: flex; align-items: center; gap: 1rem; }
.steps p { margin: 0; }
.steps b { font-weight: 500; }
.steps span { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--accent); color: var(--accent); font-family: var(--f-display); }
.reserve__alt { font-size: .95rem; color: var(--text-soft); }
.reserve__alt a { color: var(--accent); }

.booking {
  background: var(--card); color: var(--text);
  border-radius: 34px; padding: clamp(18px, 3vw, 32px);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .55), inset 0 0 0 1px var(--line);
  display: grid; gap: 1rem;
}
.room { position: relative; height: 170px; border-radius: 22px 22px 22px 22px; overflow: hidden; margin-bottom: .4rem; }
.room img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transition: transform 1.2s var(--ease); }
.booking:hover .room img { transform: scale(1.05); }
.room::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(20, 12, 8, .75)); }
.room__label { position: absolute; z-index: 1; left: 18px; bottom: 14px; color: var(--cream); display: grid; }
.room__label small { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; opacity: .8; }
.room__label strong { font-family: var(--f-display); font-weight: 400; font-size: 1.7rem; line-height: 1.1; }

.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.float { position: relative; display: block; }
.float input, .float select {
  width: 100%; padding: 1.45rem 1rem .55rem; border-radius: 16px; border: 1px solid var(--line);
  background: var(--field); font: inherit; color: var(--text); outline: none; appearance: none; -webkit-appearance: none;
  transition: border-color .3s, box-shadow .3s;
}
.float select { cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%), linear-gradient(135deg, var(--text) 50%, transparent 50%); background-position: calc(100% - 22px) 55%, calc(100% - 17px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.float select option { color: #2a1e17; background: #fff; }
.float > span { position: absolute; left: 1rem; top: 1rem; color: var(--text-soft); pointer-events: none; transition: all .3s var(--ease); }
.float input:focus, .float select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); }
.float input:focus + span, .float input:not(:placeholder-shown) + span,
.float select:focus + span, .float select:valid + span { top: .45rem; font-size: .72rem; letter-spacing: .08em; }
.err { display: none; font-style: normal; font-size: .8rem; color: var(--nonveg); margin-top: .35rem; }
.float.is-invalid input, .float.is-invalid select { border-color: var(--nonveg); }
.float.is-invalid .err { display: block; }
.booking__note { margin: .2rem 0 .2rem; font-size: .88rem; color: var(--text-soft); text-align: center; }

/* ---------- Visit ---------- */
.visit { --edge-color: var(--terracotta); background: var(--terracotta); color: var(--cream); padding: clamp(80px, 10vw, 140px) var(--gutter); }
.visit__inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.visit .eyebrow { color: rgba(246, 238, 223, .8); }
.visit h2 { margin-bottom: 2rem; }
.visit__phone { display: block; font-family: var(--f-display); font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 300; text-decoration: none; margin: 1.6rem 0 1rem; }
.visit__map, .visit__wa { color: var(--cream); }
.hours { background: rgba(24, 17, 13, .2); border-radius: 30px; padding: clamp(24px, 3vw, 40px); border: 1px solid rgba(246, 238, 223, .2); }
.hours h3 { font-size: 1.6rem; margin-bottom: 1rem; }
.hours ul { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; padding: .7rem 0; border-bottom: 1px solid rgba(246, 238, 223, .18); }
.hours li:last-child { border-bottom: 0; }
.hours li.is-today { font-weight: 600; }
.hours li.is-today span:first-child::after { content: "Today"; margin-left: .6rem; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; padding: .15rem .5rem; border-radius: 999px; background: var(--cream); color: var(--clay); font-weight: 500; vertical-align: 2px; }

/* ---------- Footer ---------- */
.footer { --edge-color: var(--footer); background: var(--footer); color: #ecdfc8; text-align: center; padding: clamp(70px, 9vw, 120px) var(--gutter) 40px; }
.footer__logo { margin: 0 auto 1.4rem; height: 54px; width: auto; background: var(--cream); padding: 10px 18px; border-radius: 16px; }
.footer .script { color: #ffcf8a; }
.footer__meta { margin: 1.2rem 0 .4rem; }
.footer__meta a { color: #ffcf8a; }
.footer__fine { font-size: .8rem; color: rgba(236, 224, 200, .5); margin: 0; }

/* ---------- FAB ---------- */
.fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; display: none;
  padding: .9rem 1.4rem; border-radius: 999px; background: var(--clay); color: var(--cream); text-decoration: none; font-weight: 500;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .6); transform: translateY(150%); transition: transform .6s var(--ease);
}
.fab.is-shown { transform: none; }

/* ---------- Modal ticket ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(12, 8, 6, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ticket {
  position: relative; width: min(420px, 100%); max-height: calc(100svh - 32px); overflow-y: auto;
  background: var(--card); color: var(--text); border-radius: 28px; padding: 28px 26px 22px; display: grid; gap: .9rem;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .8);
}
.ticket__close { position: absolute; top: 12px; right: 14px; width: 38px; height: 38px; border: 0; background: var(--fill); border-radius: 50%; font-size: 1.4rem; line-height: 1; }
.ticket__top { display: flex; justify-content: space-between; align-items: center; padding-right: 42px; }
.ticket__top img { height: 34px; width: auto; background: var(--cream); padding: 4px 8px; border-radius: 8px; }
.ticket__ref { margin: 0; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); }
.ticket__ref b { color: var(--accent); }
.ticket h3 { font-size: 1.8rem; font-weight: 300; }
.ticket__rows { margin: 0; display: grid; gap: .1rem; }
.ticket__rows div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.ticket__rows dt { color: var(--text-soft); font-size: .9rem; }
.ticket__rows dd { margin: 0; font-weight: 500; text-align: right; }
.ticket__hint { margin: .3rem 0 0; font-size: .92rem; color: var(--text-soft); }
.btn--plain { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 160%); background: var(--ink); color: var(--cream); padding: .9rem 1.3rem; border-radius: 14px; font-size: .95rem; max-width: calc(100% - 32px); transition: transform .6s var(--ease); box-shadow: 0 20px 40px -20px #000; }
.toast.is-shown { transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .theme-btn { margin-left: auto; }
  .reserve__inner, .visit__inner { grid-template-columns: 1fr; }
  .fab { display: inline-flex; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .cave { --dw: clamp(104px, min(36vw, 25svh), 170px); }
  .hero__status { bottom: auto; top: 76px; right: 50%; transform: translateX(50%); font-size: .76rem; white-space: nowrap; }
  .hero__copy { top: 124px; }
  .hero__hint { display: none; }
  .lamp--l { left: calc(50% - var(--dw) / 2 - 26px); }
  .lamp--r { right: calc(50% - var(--dw) / 2 - 26px); }
  .story__grid { grid-template-columns: 1fr; }
  .story__stats li { padding-right: .5rem; }
  .story__stats span { font-size: .66rem; letter-spacing: .12em; }
  .spaces__track { overflow-x: auto; width: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; }
  .spaces__track::-webkit-scrollbar { display: none; }
  .space { scroll-snap-align: center; }
  .space__media { height: 52svh; }
  .cat__list { grid-template-columns: 1fr; }
  .addons ul { grid-template-columns: 1fr 1fr; }
  .menu__controls { top: 60px; }
}
@media (max-height: 760px) { .hero__sub { display: none; } }
@media (max-height: 760px) and (max-width: 760px) { .hero__status { display: none; } .hero__copy { top: 92px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
