/* Page sections: home (below the hero), menu, story, visit. */

/* registered so the glass's milk / foam / surface colours fade instead of snapping */
@property --milk { syntax: "<color>"; inherits: true; initial-value: #f7efe3; }
@property --foam { syntax: "<color>"; inherits: true; initial-value: #fbf4ea; }
@property --surface { syntax: "<color>"; inherits: true; initial-value: #fbf4ea; }
@property --art { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --cinnamon { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --hot { syntax: "<number>"; inherits: true; initial-value: 1; }
.glass-scene { transition: transform 0.6s var(--ease-out), --milk 0.6s, --foam 0.6s, --surface 0.6s, --art 0.5s, --cinnamon 0.6s, --hot 0.6s; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: rgba(251, 243, 232, 0.06);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px;
  color: var(--ink-soft);
}
.status::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #8a7a6c;
}
.status.is-open::before { background: #7bd88f; box-shadow: 0 0 0 4px rgba(123, 216, 143, 0.18); }

.link-arrow {
  display: inline-flex;
  gap: 8px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}
.link-arrow span { transition: transform 0.4s var(--ease-out); }
.link-arrow:hover span { transform: translateX(4px); }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(36px, 6vh, 64px);
}

/* =========================================================================
   HOME
   ========================================================================= */
.intro .statement {
  margin: 0;
  max-width: 22ch;
  font-family: var(--serif);
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.intro .statement em { color: var(--accent); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: clamp(48px, 8vh, 88px) 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.stats dt { font-size: 13px; color: var(--ink-faint); margin-bottom: 8px; }
.stats dd { margin: 0; font-family: var(--serif); font-size: clamp(40px, 5vw, 68px); letter-spacing: -0.03em; color: var(--accent); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.card {
  position: relative;
  border-radius: 24px;
  background: #fff8ee;
  box-shadow: 0 1px 0 var(--line-dark), 0 30px 60px -40px rgba(60, 30, 10, 0.45);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: box-shadow 0.5s var(--ease-out), transform 0.6s var(--ease-out), opacity 1s var(--ease-out);
}
.card:hover { box-shadow: 0 1px 0 var(--line-dark), 0 40px 70px -36px rgba(60, 30, 10, 0.55); }
.card-art { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--mocha); }
.card-art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s var(--ease-out); }
.card:hover .card-art img { transform: scale(1.08); }
.card-body { padding: 22px 24px 26px; }
.card h3 { margin: 0 0 8px; font: 500 24px/1.1 var(--serif); letter-spacing: -0.01em; }
.card p { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: var(--ink-dark-soft); }
.price { font-weight: 500; font-variant-numeric: tabular-nums; color: var(--accent-deep); }

/* rising steam (used on cup art) */
.steam { position: absolute; left: 50%; top: 18%; width: 40px; height: 40px; transform: translateX(-60%); }
.steam i {
  position: absolute;
  bottom: 0;
  width: 5px; height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  filter: blur(3px);
  opacity: 0;
  animation: steam 3.2s var(--ease-out) infinite;
}
.steam i:nth-child(1) { left: 6px; }
.steam i:nth-child(2) { left: 18px; animation-delay: 1s; }
.steam i:nth-child(3) { left: 30px; animation-delay: 2s; }
@keyframes steam {
  0% { transform: translateY(10px) scaleY(0.6); opacity: 0; }
  30% { opacity: 0.8; }
  100% { transform: translateY(-34px) translateX(6px) scaleY(1.2); opacity: 0; }
}

/* marquee */
.marquee {
  overflow: hidden;
  padding: 26px 0;
  background: var(--accent);
  color: var(--ink-dark);
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 44px);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.marquee-track { display: inline-flex; gap: 36px; align-items: center; animation: marquee 32s linear infinite; padding-right: 36px; }
.marquee b { font-weight: 400; font-size: 0.6em; opacity: 0.6; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* split */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split-media { margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 1; }
.split-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--ease-out); }
.split-media.is-in img { transform: scale(1); }
.split-copy .h2 { margin-bottom: 22px; }
.split-copy .lede { margin: 0 0 30px; }

/* reviews */
.quotes { display: grid; min-height: 220px; }
.quote {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out);
  pointer-events: none;
}
.quote.is-active { opacity: 1; transform: none; pointer-events: auto; transition-delay: 0.25s; }
.quote blockquote {
  margin: 0 0 24px;
  max-width: 24ch;
  font-family: var(--serif);
  font-size: clamp(30px, 4.2vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.quote figcaption { color: var(--ink-soft); font-size: 15px; }
.quote-dots { display: flex; gap: 10px; margin-top: 36px; }
.quote-dots button {
  position: relative;
  width: 44px; height: 3px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: var(--line);
  cursor: pointer;
  overflow: hidden;
}
.quote-dots button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
.quote-dots button[aria-selected="true"]::after { animation: dot-fill var(--dur, 6s) linear forwards; }
.quotes:hover ~ .quote-dots button[aria-selected="true"]::after { animation-play-state: paused; }
@keyframes dot-fill { to { transform: scaleX(1); } }

/* visit band */
.visit-band { background: radial-gradient(ellipse at 80% 0%, rgba(243, 180, 107, 0.14), transparent 60%); }
.visit-band-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; }
.visit-band-side .lede { margin: 0 0 28px; }

/* =========================================================================
   MENU
   ========================================================================= */
.tabs-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 10;
  background: rgba(22, 11, 6, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-block: 1px solid var(--line);
}
.tabs {
  position: relative;
  display: flex;
  gap: 4px;
  padding: 10px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative;
  z-index: 1;
  flex: none;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink-soft);
  font: 500 14px var(--sans);
  cursor: pointer;
  transition: color 0.35s var(--ease-out);
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink-dark); }
.tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tab-pill {
  position: absolute;
  top: 10px;
  left: 0;
  height: calc(100% - 20px);
  border-radius: 999px;
  background: var(--cream);
  transition: transform 0.55s var(--ease-out), width 0.55s var(--ease-out);
}

.menu-panels { padding: clamp(48px, 8vh, 88px) 0; }

/* the menu as a home page section (below the marquee) */
.menu-home { position: relative; padding-top: clamp(72px, 12vh, 140px); overflow-x: clip; }
.menu-home::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle, rgba(243, 180, 107, 0.12), transparent 62%);
  pointer-events: none;
}
.menu-home-head { position: relative; }
.menu-home-head .display { margin-bottom: 22px; }
.menu-home-head .lede { margin: 0 0 clamp(40px, 6vh, 64px); }
.panel[hidden] { display: none; }
.panel-intro { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; }
.panel-intro p { margin: 16px 0 0; color: var(--ink-soft); max-width: 46ch; line-height: 1.6; }
.panel-photo {
  flex: none;
  width: clamp(220px, 26vw, 340px);
  aspect-ratio: 4 / 5;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--mocha);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  animation: photo-in 0.9s var(--ease-out) both;
}
.panel-photo img { width: 100%; height: 100%; object-fit: cover; }
@keyframes photo-in { from { opacity: 0; transform: translateY(20px) scale(0.97); } }
.items { display: grid; grid-template-columns: 1fr 1fr; gap: 6px clamp(32px, 6vw, 88px); }
.item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  animation: rise 0.7s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 50ms);
}
.item-top { display: flex; align-items: baseline; gap: 12px; }
.item h3, .item h4 { margin: 0; font: 400 23px/1.2 var(--serif); letter-spacing: -0.01em; }
.panel-intro h3 { margin: 0; }
.item .leader { flex: 1; border-bottom: 1px dotted var(--ink-faint); transform: translateY(-5px); }
.item .price { color: var(--accent); }
.item p { margin: 8px 0 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }
.tags { display: flex; gap: 6px; margin-top: 10px; }
.tag {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(243, 180, 107, 0.35);
}

/* drink builder */
.builder { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.builder-art {
  position: relative;
  aspect-ratio: 1;
  border-radius: 32px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 60%, #fff6e8, #ecd3b0 75%);
}
/* ---- see-through 3D glass: layers are set by pages.js from the chosen options ---- */
.builder-art { perspective: 900px; overflow: hidden; }
.glass-scene {
  --gh: 0.86;                       /* glass height factor: small / regular / large */
  --taper: polygon(0 0, 100% 0, 91% 100%, 9% 100%);
  position: relative;
  width: 44%;
  margin-top: 4%;
  transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -10deg));
  transform-style: preserve-3d;
  /* transition list (incl. the colour properties) is declared at the top of this file */
}
.glass {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: calc(150% * var(--gh)); /* % of width, so the size change animates smoothly */
  transition: padding-bottom 0.8s var(--ease-out);
}
.glass-back,
.glass-front,
.liquid { position: absolute; clip-path: var(--taper); }
.glass-back,
.glass-front { inset: 0; }
/* the far wall, seen through the liquid-free part of the glass */
.glass-back {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08) 30%, rgba(255, 255, 255, 0.04) 70%, rgba(255, 255, 255, 0.24));
}
/* the near wall: thin edges plus vertical light streaks */
.glass-front {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0, rgba(255, 255, 255, 0) 7%, rgba(255, 255, 255, 0) 16%, rgba(255, 255, 255, 0.4) 19%, rgba(255, 255, 255, 0) 25%, rgba(255, 255, 255, 0) 80%, rgba(255, 255, 255, 0.22) 86%, rgba(255, 255, 255, 0) 90%, rgba(255, 255, 255, 0.5) 100%);
  pointer-events: none;
}
/* rim: an ellipse sitting on the top edge, so the opening reads as round */
.glass-rim {
  position: absolute;
  left: -1%;
  right: -1%;
  top: 0;
  aspect-ratio: 6 / 1;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: radial-gradient(ellipse at 50% 60%, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.18));
  box-shadow: 0 1px 0 rgba(120, 70, 30, 0.15);
}
/* thick glass base */
.glass::after {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  bottom: 0;
  aspect-ratio: 6 / 1;
  transform: translateY(50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.12) 70%);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}
.glass-shadow {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -9%;
  height: 12%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(90, 50, 20, 0.32), rgba(90, 50, 20, 0) 70%);
  filter: blur(4px);
  transform: translateZ(-1px);
}

/* the drink: a stack of layers, bottom up, inside the glass walls */
.liquid {
  left: 3.5%;
  right: 3.5%;
  bottom: 3%;
  height: calc(var(--fill, 0.85) * 94%);
  display: flex;
  flex-direction: column-reverse;
  transition: height 0.8s var(--ease-out);
}
/* curved-surface shading across the whole stack, so it reads as a cylinder, not flat bands */
.liquid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(60, 28, 8, 0.2) 0, rgba(60, 28, 8, 0) 18%, rgba(255, 255, 255, 0.16) 38%, rgba(255, 255, 255, 0) 55%, rgba(60, 28, 8, 0) 82%, rgba(60, 28, 8, 0.24) 100%);
  pointer-events: none;
}
.layer {
  flex: none;
  height: var(--h, 0%);
  transition: height 0.8s var(--ease-out), background-color 0.6s;
}
.layer--syrup { background: linear-gradient(to top, #d8952e, #f0c058); }
.layer--choc { background: linear-gradient(to top, #2f160a, #5a2d14); }
.layer--shot { background: linear-gradient(to top, #1d0d05, #3d1e0d 70%, #6b3a1a); }
.layer--water { background: linear-gradient(to top, rgba(110, 58, 24, 0.75), rgba(160, 98, 52, 0.45)); }
/* milk blends into the espresso below it, the way a latte does in a glass */
.layer--milk { background: linear-gradient(to top, color-mix(in srgb, var(--milk, #f7efe3) 45%, #8a4f26), color-mix(in srgb, var(--milk, #f7efe3) 88%, #c48a55) 30%, var(--milk, #f7efe3) 70%); }
.layer--foam {
  background:
    radial-gradient(circle at 20% 40%, rgba(255, 255, 255, 0.85) 0 1.5px, transparent 2px) 0 0 / 9px 8px,
    linear-gradient(to top, color-mix(in srgb, var(--foam, #fbf4ea) 92%, #a06a3e), var(--foam, #fbf4ea) 40%, #fffdf8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
/* liquid surface seen through the rim: an ellipse riding on top of the stack */
.surface {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  aspect-ratio: 6 / 1;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at 45% 40%, color-mix(in srgb, var(--surface, #fbf4ea) 80%, #fff), var(--surface, #fbf4ea) 70%);
  transition: background 0.6s;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.surface .art {
  width: 28%;
  aspect-ratio: 2 / 1;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 60%, #fffaf2 0 45%, transparent 47%);
  opacity: var(--art, 0);
  transform: scale(calc(0.6 + var(--art, 0) * 0.4));
  transition: opacity 0.5s, transform 0.6s var(--ease-out);
}
.surface .cinnamon {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, #8a4a1c 0 1.2px, transparent 1.6px) 3px 2px / 11px 6px,
    radial-gradient(circle, #6b3412 0 1px, transparent 1.4px) 7px 4px / 13px 7px;
  opacity: var(--cinnamon, 0);
  transition: opacity 0.6s;
}
.builder-art .steam { top: auto; bottom: 100%; left: 50%; opacity: var(--hot, 1); transition: opacity 0.6s; }
.glass-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6%;
  margin: 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-dark-soft);
}
.builder fieldset { border: 0; margin: 0 0 26px; padding: 0; }
.builder legend { margin-bottom: 12px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-dark-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-dark);
  font-size: 14px;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.chip input:checked + span { background: var(--ink-dark); color: var(--cream); box-shadow: none; }
.chip input:focus-visible + span { outline: 2px solid var(--accent-deep); outline-offset: 2px; }
.chip:hover span { box-shadow: inset 0 0 0 1px var(--ink-dark-soft); }
.total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 22px; border-top: 1px solid var(--line-dark); }
.total-label { font-family: var(--serif); font-size: 22px; }
.total-price { font-family: var(--serif); font-size: 44px; letter-spacing: -0.02em; color: var(--accent-deep); font-variant-numeric: tabular-nums; }

/* =========================================================================
   STORY
   ========================================================================= */
.chapters { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.chapters-media { position: sticky; top: calc(var(--nav-h) + 6vh); height: min(78vh, 680px); }
.chapters-media figure {
  position: absolute;
  inset: 0;
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.9s var(--ease-out), transform 1.4s var(--ease-out);
}
.chapters-media figure.is-active { opacity: 1; transform: none; }
.chapters-media img { width: 100%; height: 100%; object-fit: cover; }
.chapters-media figcaption {
  position: absolute;
  left: 20px; bottom: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(22, 11, 6, 0.6);
  backdrop-filter: blur(8px);
  font-size: 13px;
  color: var(--ink-soft);
}
.chapter { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.32; transition: opacity 0.6s var(--ease-out); }
.chapter.is-active { opacity: 1; }
.chapter .num { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--accent); margin-bottom: 18px; }
.chapter .h2 { margin-bottom: 20px; }
.chapter .lede { margin: 0; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.value { padding: 30px 28px 34px; border-radius: 24px; background: #fff8ee; box-shadow: 0 1px 0 var(--line-dark); }
.value svg { width: 40px; height: 40px; margin-bottom: 26px; color: var(--accent-deep); }
.value h3 { margin: 0 0 10px; font: 400 26px/1.15 var(--serif); }
.value p { margin: 0; color: var(--ink-dark-soft); line-height: 1.6; font-size: 15px; }

.timeline { position: relative; display: grid; gap: 0; margin-top: 48px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--line);
}
.timeline .progress {
  position: absolute;
  left: 7px; top: 8px;
  width: 1px;
  height: calc(var(--p, 0) * (100% - 16px));
  background: var(--accent);
}
.moment { position: relative; display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 0 0 48px 44px; }
.moment::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--espresso);
  box-shadow: inset 0 0 0 1px var(--ink-faint);
  transition: background 0.4s, box-shadow 0.4s;
}
.moment.is-in::before { background: var(--accent); box-shadow: 0 0 0 5px rgba(243, 180, 107, 0.18); }
.moment .year { font-family: var(--serif); font-size: 28px; color: var(--accent); }
.moment h3 { margin: 0 0 6px; font: 400 24px var(--serif); }
.moment p { margin: 0; color: var(--ink-soft); line-height: 1.6; max-width: 52ch; }

/* =========================================================================
   VISIT
   ========================================================================= */
.visit-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.info-block + .info-block { margin-top: 44px; }
.info-block h2 { margin: 0 0 16px; font: 500 12px var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.info-block p { margin: 0; color: var(--ink-soft); line-height: 1.7; font-size: 16px; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today td { color: var(--ink); }
.hours tr.is-today td:first-child::after {
  content: "Today";
  margin-left: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink-dark);
  font-size: 11px;
  font-weight: 500;
}

.map {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: #2a170c;
  box-shadow: inset 0 0 0 1px var(--line);
}
.map svg { width: 100%; height: 100%; }
.map .route { stroke-dasharray: 6 8; animation: dash 18s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -280; } }
.pin { position: absolute; left: 58%; top: 43.75%; transform: translate(-50%, -100%); }
.pin-dot {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--accent);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.6);
  animation: bob 2.6s var(--ease-in-out) infinite;
}
.pin-dot span { transform: rotate(45deg); font-family: var(--serif); font-weight: 600; color: var(--ink-dark); }
.pin::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -8px;
  width: 18px; height: 6px;
  margin-left: -9px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  animation: shadow 2.6s var(--ease-in-out) infinite;
}
.pin-ring {
  position: absolute;
  left: 50%; bottom: -10px;
  width: 80px; height: 30px;
  margin-left: -40px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0;
  animation: ring 2.6s var(--ease-out) infinite;
}
@keyframes bob { 50% { transform: rotate(-45deg) translate(4px, -4px); } }
@keyframes shadow { 50% { transform: scale(0.7); opacity: 0.6; } }
@keyframes ring { 0% { transform: scale(0.2); opacity: 0.8; } 100% { transform: scale(1.4); opacity: 0; } }
.map-label {
  position: absolute;
  left: 20px; bottom: 18px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(22, 11, 6, 0.75);
  backdrop-filter: blur(8px);
  font-size: 14px;
  line-height: 1.4;
}
.map-label a { color: var(--accent); text-decoration: none; }

/* booking */
.book-photo { margin: 32px 0 0; border-radius: 24px; overflow: hidden; aspect-ratio: 5 / 4; box-shadow: 0 30px 60px -36px rgba(60, 30, 10, 0.6); }
.book-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.book { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: var(--ink-dark-soft); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  background: #fff8ee;
  color: var(--ink-dark);
  font: 15px var(--sans);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 4px rgba(201, 130, 58, 0.15);
}
.stepper { display: flex; align-items: center; justify-content: space-between; padding: 6px; border: 1px solid var(--line-dark); border-radius: 14px; background: #fff8ee; }
.stepper button {
  width: 40px; height: 40px;
  border: 0;
  border-radius: 10px;
  background: var(--crema);
  color: var(--ink-dark);
  font-size: 20px;
  cursor: pointer;
  transition: background 0.3s;
}
.stepper button:hover { background: #ecd3b0; }
.stepper output { font-family: var(--serif); font-size: 22px; font-variant-numeric: tabular-nums; }
.form .btn { justify-self: start; --bg: var(--ink-dark); --fg: var(--cream); }
.section--cream .form-note { color: var(--accent-deep); font-size: 15px; min-height: 1.4em; margin: 0; grid-column: 1 / -1; }

.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  font: 400 clamp(20px, 2vw, 26px) var(--serif);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--sans);
  font-size: 22px;
  color: var(--accent);
  transition: transform 0.45s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; color: var(--ink-soft); line-height: 1.7; max-width: 62ch; }
.faq details[open] p { animation: rise 0.5s var(--ease-out); }

/* =========================================================================
   responsive
   ========================================================================= */
@media (max-width: 900px) {
  .cards, .values { grid-template-columns: 1fr; max-width: 520px; }
  .split-grid, .visit-band-inner, .builder, .visit-grid, .book { grid-template-columns: 1fr; }
  .items { grid-template-columns: 1fr; }
  .chapters { grid-template-columns: 1fr; }
  .chapters-media { top: calc(var(--nav-h) + 12px); height: 42vh; z-index: 2; }
  .chapter { min-height: 60vh; }
  .split-media { aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr; gap: 20px; }
  .section-head { flex-direction: column; align-items: start; }
  .moment { grid-template-columns: 1fr; gap: 4px; }
  .form { grid-template-columns: 1fr; }
  .panel-intro { flex-direction: column; align-items: start; }
  .panel-photo { width: 100%; aspect-ratio: 16 / 10; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .steam i, .map .route, .pin-dot, .pin::after, .pin-ring { animation: none; }
  .item { animation: none; }
}
