/* ==========================================================================
   Warung Selera — one-page site (hero, color-block sections, wavy menu hero,
   inline scattered menu collage, scroll-reveal animations)
   ========================================================================== */

body {
  overflow-x: hidden;
}

/* ---------------- Top bar ---------------- */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 36px;
  background: rgba(43, 18, 16, 0.5);
  backdrop-filter: blur(8px);
  transition: padding 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.35s ease, box-shadow 0.35s ease;
}

.topbar.scrolled {
  padding: 10px 36px;
  background: rgba(24, 10, 8, 0.85);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.topbar.scrolled .topbar-brand .brand-mark,
.topbar.scrolled .brand-mark {
  transform: scale(0.9);
}

.brand-mark {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  .topbar {
    transition: none;
  }
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
}

.topbar-brand .brand-mark {
  width: 36px;
  height: 36px;
  font-size: 0.9rem;
}

.topbar-brand-text {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.topbar-nav a {
  color: var(--cream);
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
  cursor: pointer;
}

.topbar-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--gold);
  transition: width 0.2s ease;
}

.topbar-nav a:hover::after {
  width: 100%;
}

@media (max-width: 640px) {
  .topbar-brand-text {
    display: none;
  }

  .topbar-nav {
    gap: 16px;
  }

  .topbar {
    padding: 14px 20px;
  }
}

/* ---------------- Dot navigation ---------------- */

.dot-nav {
  position: fixed;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 110;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dot-nav a {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(43, 18, 16, 0.25);
  transition: background 0.2s ease, transform 0.2s ease;
}

.dot-nav a:hover {
  background: rgba(43, 18, 16, 0.5);
}

.dot-nav a.active {
  background: var(--red);
  animation: dotNavPulse 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes dotNavPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.7); }
  100% { transform: scale(1.3); }
}

@media (prefers-reduced-motion: reduce) {
  .dot-nav a.active {
    animation: none;
    transform: scale(1.3);
  }
}

@media (max-width: 720px) {
  .dot-nav {
    display: none;
  }
}

/* ---------------- Scroll-reveal animation system ---------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(56px);
  transition: opacity 0.9s cubic-bezier(0.16, 0.8, 0.2, 1), transform 0.9s cubic-bezier(0.16, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

[data-reveal][data-reveal-dir="left"] { transform: translateX(-90px); }
[data-reveal][data-reveal-dir="right"] { transform: translateX(90px); }
[data-reveal][data-reveal-dir="scale"] { transform: scale(0.55); }

[data-reveal].revealed {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

[data-reveal][data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 0.22s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: 0.36s; }
[data-reveal][data-reveal-delay="4"] { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------------- Whole-section slide-in (each section enters as its own "slide") ---------------- */

.op-section {
  position: relative;
  padding: 110px 24px;
  text-align: center;
}

.op-section:not(.op-hero) {
  opacity: 0;
  transform: scale(0.94) translateY(50px);
  transition: opacity 1s cubic-bezier(0.16, 0.8, 0.2, 1), transform 1s cubic-bezier(0.16, 0.8, 0.2, 1);
}

.op-section.slide-in {
  opacity: 1;
  transform: scale(1) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .op-section:not(.op-hero) {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.op-title {
  font-family: var(--font-display);
  font-weight: 200;
  color: var(--red);
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.op-title-light {
  color: var(--cream);
}

.op-title-dusty {
  color: var(--dusty);
}

.op-caption {
  max-width: 560px;
  margin: 28px auto 0;
  opacity: 0.8;
  font-size: 1.05rem;
  font-weight: 300;
}

.op-caption-light {
  color: var(--cream);
  opacity: 0.9;
}

.op-block-cream { background: var(--cream); }
.op-block-gold { background: var(--gold); }
.op-block-red { background: var(--red); }
.op-block-coral { background: var(--coral); }
.op-block-sage { background: var(--sage); }
.op-block-teal { background: var(--teal); }
.op-block-dustyblue { background: var(--dustyblue); }

.op-block-gold .op-title,
.op-block-coral .op-title {
  color: var(--ink);
}

.op-block-gold .op-caption,
.op-block-coral .op-caption {
  color: var(--ink);
}

/* ---------------- Hero ---------------- */

.op-hero {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.op-hero-inner {
  text-align: center;
}

.op-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  opacity: 0;
  transform: scale(0.85);
  animation: heroIn 1s cubic-bezier(0.2, 0.7, 0.3, 1) 0.2s forwards;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(14px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.brand-mark-lg {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1px solid var(--cream);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 200;
  font-size: 1.6rem;
  animation: brandFloat 5s ease-in-out infinite;
}

@keyframes brandFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .brand-mark-lg {
    animation: none;
  }
}

.logo-dot {
  position: absolute;
  top: 10px;
  right: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  font-style: normal;
  animation: dotPulse 2.4s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.8); opacity: 1; }
}

.op-logo h1 {
  font-family: var(--font-display);
  font-weight: 200;
  color: var(--cream);
  font-size: clamp(2rem, 7vw, 4.2rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.op-script {
  opacity: 0;
  animation: heroIn 1s cubic-bezier(0.2, 0.7, 0.3, 1) 0.6s forwards;
  font-family: var(--font-script);
  color: var(--gold);
  font-size: 1.8rem;
  margin-top: 6px;
}

.scroll-cue {
  display: inline-flex;
  margin-top: 56px;
  color: var(--cream);
  opacity: 0;
  animation: bounce 1.8s infinite, fadeIn 1s ease 1.2s forwards;
}

.scroll-cue svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1;
}

@keyframes fadeIn {
  to { opacity: 0.6; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ---------------- Scattered flat-lay icons (intro / roots) ---------------- */

.op-scatter {
  display: flex;
  justify-content: center;
  gap: 44px;
  flex-wrap: wrap;
  margin-top: 44px;
}

.op-scatter .plate {
  width: 130px;
  transition: transform 0.25s ease, opacity 0.7s cubic-bezier(0.2,0.7,0.3,1), translate 0.7s cubic-bezier(0.2,0.7,0.3,1);
}

.op-scatter .plate:nth-child(1).revealed { transform: rotate(-8deg) translateY(6px); }
.op-scatter .plate:nth-child(2).revealed { transform: rotate(5deg) translateY(-10px); }
.op-scatter .plate:nth-child(3).revealed { transform: rotate(-4deg) translateY(4px); }
.op-scatter .plate:nth-child(4).revealed { transform: rotate(9deg) translateY(-6px); }

.op-scatter .plate:hover {
  transform: scale(1.08) rotate(0deg) !important;
}

/* ---------------- Menu section (scattered clusters, flexbox-based so it can't break) ---------------- */

.op-menu {
  background: var(--teal);
  background-image: url('../images/pattern-food.svg');
  background-size: 220px 220px;
  padding-bottom: 70px;
}

.op-menu .op-title {
  margin-bottom: 30px;
}

.menu-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 30px 40px;
  max-width: 900px;
  margin: 0 auto 70px;
}

.cluster-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.cluster-starburst {
  width: 34px;
  height: 34px;
}

.cluster-label span {
  font-family: var(--font-script);
  color: var(--cream);
  font-size: 2rem;
  white-space: nowrap;
}

.cluster-arrow {
  width: 90px;
  opacity: 0.9;
  flex-shrink: 0;
}

.draw-path {
  transition: stroke-dashoffset 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.draw-path:nth-child(2) { transition-delay: 0.5s; }
.draw-path:nth-child(3) { transition-delay: 0.9s; }
.draw-path:nth-child(4) { transition-delay: 1.3s; }

.draw-arrow.revealed .draw-path {
  stroke-dashoffset: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
  .draw-path {
    transition: none;
  }
}

.cluster-item {
  text-align: center;
}

.cluster-item .plate {
  width: 150px;
  margin: 0 auto;
  cursor: pointer;
  animation: showcaseBob 5s ease-in-out infinite;
  transition: transform 0.25s ease;
}

.cluster-item:nth-child(odd) .plate { transform: rotate(-4deg); }
.cluster-item:nth-child(even) .plate { transform: rotate(4deg); }

.cluster-item .plate:hover {
  transform: scale(1.07) rotate(0deg) !important;
  animation-play-state: paused;
}

@keyframes showcaseBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.cluster-item-name {
  display: block;
  margin-top: 12px;
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 300;
}

.cluster-tomatoes {
  width: 90px;
  opacity: 0.9;
}

@media (prefers-reduced-motion: reduce) {
  .cluster-item .plate {
    animation: none;
  }
}

.op-menu-cta {
  display: block;
  margin: 10px auto 0;
  color: var(--cream);
  border-color: var(--cream);
}

.op-menu-cta:hover {
  background: var(--cream);
  color: var(--ink);
}

/* ---------------- Illustrated atmosphere scenes (stand-in for real-photo mood sections) ---------------- */

.op-scene {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px 24px;
  overflow: hidden;
}

.op-scene-red {
  background: radial-gradient(circle at 30% 20%, var(--red-dark), var(--ink) 75%);
}

.op-scene-blue {
  background: radial-gradient(circle at 70% 25%, var(--dustyblue), var(--ink) 78%);
}

.op-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(253,243,227,0.55) 1.5px, transparent 1.6px);
  background-size: 46px 46px;
  opacity: 0.18;
}

.op-scene-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.op-spotlight {
  position: absolute;
  top: 0;
  left: 50%;
  width: 90px;
  z-index: 2;
  opacity: 0.85;
  transform-origin: top center;
  animation: spotlightSwing 4.5s ease-in-out infinite;
}

@keyframes spotlightSwing {
  0%, 100% { transform: translateX(-50%) rotate(-4deg); }
  50% { transform: translateX(-50%) rotate(4deg); }
}

@media (prefers-reduced-motion: reduce) {
  .op-spotlight {
    animation: none;
    transform: translateX(-50%);
  }
}

.zigzag {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 30px;
  z-index: 3;
}

.zigzag path {
  fill: var(--gold);
}

#live .zigzag path {
  fill: var(--cream);
}

/* ---------------- Visit / botanical illustrations ---------------- */

.op-botanical {
  position: relative;
  overflow: hidden;
  padding-bottom: 60px;
}

.botanical {
  position: absolute;
  opacity: 0.9;
  pointer-events: none;
  animation: botanicalSway 7s ease-in-out infinite;
}

@keyframes botanicalSway {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

.botanical-tomato {
  top: -20px;
  left: 20px;
  width: 130px;
  transform-origin: top center;
  animation-duration: 6.5s;
}

.botanical-pumpkin {
  bottom: -30px;
  right: 40px;
  width: 150px;
  transform-origin: bottom center;
  animation-duration: 8s;
  animation-delay: -2s;
}

.botanical-fennel {
  top: 30px;
  right: -10px;
  width: 130px;
  display: none;
  transform-origin: top center;
  animation-duration: 7.5s;
  animation-delay: -4s;
}

.botanical-onion {
  bottom: 10px;
  left: -20px;
  width: 120px;
  display: none;
  transform-origin: bottom center;
  animation-duration: 6s;
  animation-delay: -1s;
}

@media (prefers-reduced-motion: reduce) {
  .botanical {
    animation: none;
  }
}

@media (min-width: 900px) {
  .botanical-fennel,
  .botanical-onion {
    display: block;
  }
}

.op-follow {
  margin-top: 60px;
  font-size: 1rem !important;
}

/* ---------------- Map section (neutral, between hours and newsletter) ---------------- */

.op-map-section {
  padding: 0;
  background: var(--cream-soft);
}

.op-map-section .op-map {
  border-radius: 0;
  box-shadow: none;
  min-height: 420px;
}

.op-map-section .op-map iframe {
  min-height: 420px;
  filter: grayscale(0.15);
}

/* ---------------- Team ---------------- */

.op-team-masonry {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 30px;
  max-width: 760px;
  margin: 50px auto 0;
  text-align: left;
}

.op-team-tile {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.op-team-tile-lg {
  grid-column: 1;
  grid-row: 1;
}

.op-team-tile-sm {
  grid-column: 1;
  grid-row: 2;
}

.op-team-tile-tall {
  grid-column: 2;
  grid-row: 1 / 3;
  align-items: center;
  text-align: center;
}

.op-team-tile .avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

.op-team-tile-tall .avatar {
  width: 120px;
  height: 120px;
}

.op-team-tile h4 {
  font-weight: 500;
}

.op-team-tile p {
  opacity: 0.7;
  font-size: 0.9rem;
  font-weight: 300;
  margin-top: 4px;
}

@media (max-width: 700px) {
  .op-team-masonry {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .op-team-tile-lg,
  .op-team-tile-sm,
  .op-team-tile-tall {
    grid-column: 1;
    grid-row: auto;
    align-items: center;
    text-align: center;
  }
}

/* ---------------- Visit section ---------------- */

.op-hours {
  color: var(--ink);
  max-width: 420px;
  margin: 40px auto 0;
  text-align: left;
}

.op-hours p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(43,18,16,0.15);
  font-weight: 300;
}

.op-phone {
  display: block;
  margin-top: 20px;
  border-bottom: none !important;
  text-align: center;
}

.op-phone a {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.2rem;
}

.op-map {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 240px;
  max-width: 900px;
  margin: 0 auto;
}

.op-map-card {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  background: var(--ink);
  color: var(--cream);
  padding: 20px 24px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  max-width: 240px;
}

.op-map-card strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
  color: var(--gold);
}

.op-map-card span {
  font-size: 0.82rem;
  font-weight: 300;
  opacity: 0.9;
}

.op-map iframe {
  width: 100%;
  height: 100%;
  min-height: 240px;
  border: 0;
  display: block;
}

form#newsletter-form {
  display: flex;
  gap: 10px;
  margin: 20px auto 0;
  max-width: 480px;
  flex-wrap: wrap;
  justify-content: center;
}

#newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 13px 18px;
  border-radius: 999px;
  border: none;
  font-family: var(--font-body);
}

.op-thanks {
  font-family: var(--font-script);
  font-size: 1.8rem;
  margin-top: 18px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.op-thanks.show {
  opacity: 1;
}

.op-photo-credits {
  max-width: 1000px;
  margin: 40px auto 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--ink);
  opacity: 0.55;
  line-height: 1.8;
}

.op-footer-bottom {
  max-width: 1000px;
  margin: 30px auto 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--ink);
  opacity: 0.7;
}

.op-staff-links a {
  text-decoration: underline;
}

/* ---------------- Dish display case carousel ---------------- */

.op-display {
  background: var(--teal);
}

.op-display-carousel {
  position: relative;
  max-width: 1000px;
  margin: 50px auto 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.op-display-track {
  display: flex;
  gap: 36px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 10px 4px 20px;
  flex: 1;
}

.op-display-track::-webkit-scrollbar {
  height: 5px;
}

.op-display-track::-webkit-scrollbar-thumb {
  background: rgba(253, 243, 227, 0.3);
  border-radius: 999px;
}

.op-display-item {
  flex: 0 0 auto;
  width: 120px;
  scroll-snap-align: start;
  text-align: center;
}

.op-display-item .plate {
  transition: transform 0.2s ease;
}

.op-display-item:hover .plate {
  transform: scale(1.06);
}

.op-display-item span {
  display: block;
  margin-top: 12px;
  color: var(--cream);
  font-size: 0.85rem;
  font-weight: 300;
}

.op-display-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(253, 243, 227, 0.4);
  background: rgba(0,0,0,0.15);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
}

.op-display-arrow:hover {
  background: rgba(0,0,0,0.35);
}

.op-display-arrow svg {
  width: 18px;
  height: 18px;
  stroke: var(--cream);
}

/* ---------------- Full-screen menu gallery modal ---------------- */

.menu-gallery {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  transition: opacity 0.4s cubic-bezier(0.16, 0.8, 0.2, 1), transform 0.4s cubic-bezier(0.16, 0.8, 0.2, 1), visibility 0s linear 0.4s;
  pointer-events: none;
}

.menu-gallery.open {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
  transition: opacity 0.4s cubic-bezier(0.16, 0.8, 0.2, 1), transform 0.4s cubic-bezier(0.16, 0.8, 0.2, 1), visibility 0s linear 0s;
}

@media (prefers-reduced-motion: reduce) {
  .menu-gallery {
    transition: opacity 0.15s linear, visibility 0s linear 0.15s;
    transform: none;
  }
  .menu-gallery.open {
    transition: opacity 0.15s linear;
  }
}

.mg-photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background 0.4s ease;
  background-image: url('../images/pattern-food.svg');
  background-size: 220px 220px;
}

.mg-photo-icon {
  width: min(60%, 380px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
  border: 10px solid var(--white);
  display: grid;
  place-items: center;
  animation: mgPhotoIn 0.4s ease;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.mg-photo-icon.mg-fade-out {
  opacity: 0;
  transform: scale(0.9);
}

.mg-panel {
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.mg-panel.mg-fade-out {
  opacity: 0;
  transform: translateY(8px);
}

@media (prefers-reduced-motion: reduce) {
  .mg-photo-icon,
  .mg-panel {
    transition: none;
  }
}

.mg-photo-icon img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

@keyframes mgPhotoIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.mg-photo-label {
  position: absolute;
  left: 32px;
  bottom: 70px;
  font-family: var(--font-script);
  font-size: 2.4rem;
  color: var(--cream);
}

.mg-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.mg-dots button {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(253, 243, 227, 0.45);
  border: none;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.mg-dots button.active {
  width: 26px;
  background: var(--cream);
}

.mg-panel {
  background: var(--cream);
  padding: 90px 64px;
  overflow-y: auto;
  position: relative;
}

.mg-eyebrow {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--ink);
  font-size: 2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mg-underline {
  width: 54px;
  height: 3px;
  background: var(--gold);
  margin: 18px 0 34px;
}

.mg-list-item {
  padding: 20px 0;
  border-bottom: 1px solid rgba(43,18,16,0.12);
  animation: mgItemIn 0.4s ease backwards;
}

.mg-list-item:nth-child(1) { animation-delay: 0.05s; }
.mg-list-item:nth-child(2) { animation-delay: 0.1s; }
.mg-list-item:nth-child(3) { animation-delay: 0.15s; }
.mg-list-item:nth-child(4) { animation-delay: 0.2s; }
.mg-list-item:nth-child(5) { animation-delay: 0.25s; }
.mg-list-item:nth-child(6) { animation-delay: 0.3s; }

@keyframes mgItemIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.mg-list-item-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

.mg-list-item-top span:last-child {
  color: var(--red);
}

.mg-list-item p {
  margin-top: 8px;
  font-size: 0.88rem;
  font-weight: 300;
  opacity: 0.7;
  max-width: 440px;
}

.mg-close {
  position: fixed;
  top: 26px;
  right: 26px;
  z-index: 320;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--ink);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.mg-close:hover {
  background: var(--red);
  transform: scale(1.06);
}

.mg-close svg {
  width: 18px;
  height: 18px;
  stroke: var(--cream);
}

.mg-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 310;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(253, 243, 227, 0.4);
  background: rgba(43, 18, 16, 0.35);
  backdrop-filter: blur(4px);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}

.menu-gallery.open .mg-arrow {
  display: flex;
}

.mg-prev { left: 26px; }
.mg-next { right: 26px; }

.mg-arrow svg {
  width: 20px;
  height: 20px;
  stroke: var(--cream);
}

.mg-arrow:hover {
  background: rgba(43, 18, 16, 0.55);
}

@media (max-width: 860px) {
  .menu-gallery.open {
    grid-template-columns: 1fr;
    grid-template-rows: 42vh 1fr;
    overflow-y: auto;
  }

  .mg-photo {
    min-height: 42vh;
  }

  .mg-panel {
    padding: 40px 28px 60px;
  }

  .mg-arrow {
    top: 21vh;
    width: 42px;
    height: 42px;
  }
}

