/* ─── Hornbill (logo) ─── */
@font-face {
  font-family: 'Hornbill';
  src: url('../fonts/Hornbill-Personal Use Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hornbill';
  src: url('../fonts/Hornbill-Personal Use BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ─── Cormorant Garamond (headings) ─── */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/CormorantGaramond-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/CormorantGaramond-LightItalic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/CormorantGaramond-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/CormorantGaramond-MediumItalic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/CormorantGaramond-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/CormorantGaramond-SemiBoldItalic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/CormorantGaramond-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ─── DM Sans (body & UI) ─── */
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DMSans-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DMSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DMSans-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DMSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DMSans-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DMSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DMSans-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ─── Libre Baskerville (body serif) ─── */
@font-face {
  font-family: 'Libre Baskerville';
  src: url('../fonts/LibreBaskerville-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Libre Baskerville';
  src: url('../fonts/LibreBaskerville-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Libre Baskerville';
  src: url('../fonts/LibreBaskerville-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ─── Pinyon Script (accent) ─── */
@font-face {
  font-family: 'Pinyon Script';
  src: url('../fonts/PinyonScript-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ─── Custom Properties ─── */
:root {
  --primary-yellow:  #fff5cc;
  --accent-blue:     #110bd6;
  --accent-sky:      #abe2ff;
  --dark-burgundy:   #69041d;
  --text-primary:    #6B2D3E;
  --text-secondary:  #8B6B7E;
  --background:      #fffbf2;
  --border-light:    #69041d;
  --hover-state:     #110bd6;
  --accent-light:    #abe2ff;

  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  2rem;
  --sp-lg:  4rem;
  --sp-xl:  7rem;

  --max-w: 1180px;
  --radius-sm: 4px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--background);
}

img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
  transition: border-bottom 0.3s ease;
}

a:hover { border-bottom: 1px solid currentColor; }

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  line-height: 1.2;
}

.text-display { font-size: clamp(2.6rem, 7vw, 5.2rem); }
.text-title   { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.text-lede    { font-size: 1.1rem; }
.text-eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-family: 'DM Sans', sans-serif;
}

/* ─── Layout ─── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-md);
}

.grid-courtyard {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--sp-lg);
  align-items: center;
}

@media (max-width: 768px) {
  .grid-courtyard { grid-template-columns: 1fr; }
}

/* ─── Seal / Logo Mark ─── */
.seal {
  display: inline-block;
  width: 2.4rem;
  height: 2.4rem;
  border: 2px solid var(--dark-burgundy);
  border-radius: var(--radius-sm);
  transform: rotate(-3deg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Hornbill', serif;
  font-weight: 700;
  font-size: 0.65rem;
  color: var(--dark-burgundy);
  text-align: center;
  line-height: 1.1;
  flex-shrink: 0;
}

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--background);
  border-bottom: 1px solid var(--border-light);
  padding-block: var(--sp-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  text-decoration: none;
  border-bottom: none;
}

.site-logo:hover { border-bottom: none; }

.site-logo-text {
  font-family: 'Hornbill', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--dark-burgundy);
}

.logo-upright { font-style: normal; }
.logo-italic  { font-style: italic; }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  border-bottom: none;
}

.site-nav a:hover { color: var(--text-primary); border-bottom: none; }

.site-nav a.active {
  color: var(--dark-burgundy);
  font-weight: 400;
}

@media (max-width: 480px) {
  .site-nav { gap: var(--sp-sm); }
  .site-nav a { font-size: 0.78rem; }
}

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid var(--border-light);
  padding-block: var(--sp-lg);
  margin-top: var(--sp-xl);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  flex-wrap: wrap;
}

.site-footer-copy {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 2rem;
  border: 1.5px solid var(--accent-blue);
  border-radius: 2px;
  background: var(--accent-blue);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s ease-out, color 0.2s ease-out, transform 0.1s ease-out;
  text-decoration: none;
}

.btn:hover {
  background: transparent;
  color: var(--accent-blue);
  border: 1.5px solid var(--accent-blue);
}

#cta .btn:hover {
  background: var(--primary-yellow);
  color: var(--dark-burgundy);
  border-color: var(--primary-yellow);
}

#cta .btn-ghost-sky {
  border-color: var(--accent-sky);
  color: var(--accent-sky);
}

#cta .btn-ghost-sky:hover {
  background: var(--accent-sky);
  color: var(--dark-burgundy);
  border-color: var(--accent-sky);
}

.btn:active { transform: scale(0.98); }

.btn-ghost {
  background: transparent;
  color: var(--dark-burgundy);
  border-color: var(--dark-burgundy);
}

.btn-ghost:hover {
  background: var(--dark-burgundy);
  color: #fff;
  border-color: var(--dark-burgundy);
}

/* ─── Sections ─── */
.section { padding-block: var(--sp-xl); }
.section-sm { padding-block: var(--sp-lg); }

/* ─── Hero (parallax) ─── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  top: -15%;
  left: 0;
  right: 0;
  height: 130%;
  background: url('../images/hero-bg.svg') center / cover no-repeat, var(--primary-yellow);
  transform-origin: center top;
  will-change: transform;
  z-index: 0;
}

/* Soft scrim keeps overlay text legible against the lightest area */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(254,253,251,0.35) 0%, rgba(254,253,251,0) 60%);
  z-index: 1;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin-inline: auto;
  padding-inline: var(--sp-md);
  will-change: opacity;
}

.hero-eyebrow { color: var(--text-secondary); }

.hero-title { margin-top: var(--sp-sm); }

.hero-title-script {
  font-family: 'Pinyon Script', cursive;
  font-weight: 400;
  font-size: 1.35em;
  display: block;
  line-height: 1;
  margin-bottom: -0.35em;
}

.hero-lede {
  margin-top: var(--sp-md);
  margin-inline: auto;
  max-width: 46ch;
  color: var(--dark-burgundy);
}

.hero-cta { margin-top: var(--sp-lg); }

@media (max-width: 480px) {
  .hero { min-height: 80vh; }
}

/* ─── Featured bakes wheel gallery ─── */
.wheel-section {
  position: relative;
  background: #f5f2ec;
}

.wheel-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.wheel-head { text-align: center; }

/* 3-D scene — perspective set here, preserved through ring → spoke → card */
.wheel-scene {
  position: relative;
  width: 100%;
  height: 480px;
  perspective: 2000px;
  perspective-origin: 50% 50%;
}

.wheel-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

/* each spoke places one card at its angle on the ring */
.wheel-spoke {
  position: absolute;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}

.wheel-card {
  position: absolute;
  width: 240px;
  height: 340px;
  left: -120px;   /* center horizontally: -width/2 */
  top: -170px;    /* center vertically: -height/2  */
  transform: translateZ(420px);
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 14px rgba(107, 45, 62, 0.09);
}

/* flavor zone — background set from --flavor custom property via inline style */
.wheel-card-img {
  flex: 0 0 195px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--flavor, #f0ece4);
  overflow: hidden;
}

.wheel-card-img img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  display: block;
}

.wheel-card-body {
  flex: 1;
  padding: 0.9rem 1.1rem 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.wheel-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.2;
  color: var(--dark-burgundy);
}

.wheel-card-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 0.35rem;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.wheel-card-price {
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-top: auto;
  padding-top: 0.4rem;
}

.wheel-loading {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-secondary);
  white-space: nowrap;
  font-size: 0.88rem;
}

/* Mobile: flat horizontal swipe, no 3D */
@media (max-width: 768px) {
  .wheel-section { height: auto !important; }
  .wheel-sticky {
    position: static;
    height: auto;
    overflow: visible;
    padding-block: var(--sp-lg);
    align-items: flex-start;
  }
  .wheel-scene {
    height: auto;
    perspective: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--sp-sm);
  }
  .wheel-ring {
    position: static;
    display: flex;
    gap: 1rem;
    transform: none !important;
    transform-style: flat;
    width: max-content;
    height: auto;
    padding-inline: var(--sp-md);
  }
  .wheel-spoke {
    position: static;
    width: auto;
    height: auto;
    transform: none !important;
    transform-style: flat;
  }
  .wheel-card {
    position: static;
    left: auto;
    top: auto;
    transform: none !important;
    opacity: 1 !important;
    scroll-snap-align: start;
    height: auto;
  }
  .wheel-card-img { flex: 0 0 180px; }
}

/* Reduced motion: same flat fallback */
@media (prefers-reduced-motion: reduce) {
  .wheel-section { height: auto !important; }
  .wheel-sticky {
    position: static;
    height: auto;
    overflow: visible;
    padding-block: var(--sp-lg);
    align-items: flex-start;
  }
  .wheel-scene {
    height: auto;
    perspective: none;
    overflow-x: auto;
  }
  .wheel-ring {
    position: static;
    display: flex;
    gap: 1rem;
    transform: none !important;
    transform-style: flat;
    width: max-content;
    height: auto;
    padding-inline: var(--sp-md);
  }
  .wheel-spoke {
    position: static;
    width: auto;
    height: auto;
    transform: none !important;
    transform-style: flat;
  }
  .wheel-card {
    position: static;
    left: auto;
    top: auto;
    transform: none !important;
    opacity: 1 !important;
    height: auto;
  }
  .wheel-card-img { flex: 0 0 180px; }
}

/* ─── Reveal animations (pre-staged for later tasks) ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px) rotate(0.25deg);
}

.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }
.reveal[data-delay="4"] { transition-delay: 0.48s; }

/* ─── Accessibility ─── */
:focus-visible {
  outline: 2px solid var(--dark-burgundy);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Remove default outline for mouse users */
:focus:not(:focus-visible) { outline: none; }

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ─── Touch devices: no hover effects ─── */
@media (hover: none) {
  .btn:hover {
    background: var(--accent-blue);
    color: #fff;
  }
  .btn-ghost:hover {
    background: transparent;
    color: var(--dark-burgundy);
  }
}

/* ─── Gallery ─── */
.gallery-hero-sub { color: var(--text-secondary); }

.gallery-loading {
  color: var(--text-secondary);
  grid-column: 1 / -1;
  padding: var(--sp-lg) 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1400px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

.gallery-card {
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--primary-yellow);
  transition: box-shadow 0.3s ease;
}

.gallery-card:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

.gallery-card-img {
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.gallery-card:nth-child(3n+1) .gallery-card-img { aspect-ratio: 3 / 4; }
.gallery-card:nth-child(3n+2) .gallery-card-img { aspect-ratio: 1 / 1; }
.gallery-card:nth-child(3n)   .gallery-card-img { aspect-ratio: 4 / 5; }

.gallery-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease-out;
}

@media (hover: hover) {
  .gallery-card:hover .gallery-card-img img { transform: scale(1.04); }
  .gallery-card:hover { box-shadow: 0 8px 28px rgba(107, 45, 62, 0.14); }
}

@media (hover: none) {
  .gallery-card:active { box-shadow: 0 4px 12px rgba(107, 45, 62, 0.1); }
}

.gallery-card-label { padding: var(--sp-sm); }

.gallery-card-label h3 {
  font-size: 1rem;
  margin-top: 0.2rem;
}

/* ─── Pricing ─── */
.pricing-toggle-group {
  display: inline-flex;
  border: 1px solid var(--border-light);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: var(--sp-lg);
}

.pricing-toggle {
  padding: 0.6rem 1.6rem;
  background: transparent;
  color: var(--dark-burgundy);
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  transition: background 0.2s ease-out, color 0.2s ease-out;
}

.pricing-toggle.is-active {
  background: var(--dark-burgundy);
  color: #fff;
  font-weight: 400;
}

.pricing-toggle:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2×2 on mobile */
  gap: var(--sp-md);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.pricing-cards.is-switching {
  opacity: 0;
  transform: translateY(12px);
}

@media (min-width: 900px) {
  .pricing-cards { grid-template-columns: repeat(4, 1fr); } /* flexible row on desktop */
}

.pricing-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: var(--sp-md);
  display: flex;
  flex-direction: column;
  background: var(--background);
}

.pricing-card-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--dark-burgundy);
  margin-top: 0.5rem;
  line-height: 1.1;
}

.pricing-card-serves {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.pricing-card-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: var(--sp-sm);
  line-height: 1.6;
  flex-grow: 1;
}

.pricing-card-timeline {
  color: var(--accent-blue);
  margin-top: var(--sp-sm);
}

.pricing-card .btn {
  margin-top: var(--sp-md);
  align-self: flex-start;
}

.pricing-notes {
  margin-top: var(--sp-lg);
  padding-top: var(--sp-md);
  border-top: 1px solid var(--border-light);
}

.pricing-notes p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ─── Moon-gate overlay ─── */
.gallery-overlay {
  display: none;
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: rgba(107, 45, 62, 0.6);
  z-index: 200;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gallery-overlay.is-visible { display: flex; }
.gallery-overlay.is-open    { opacity: 1; }

.gallery-overlay-card {
  position: relative;
  background: var(--background);
  border-radius: 50%;
  width: min(88vw, 520px);
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* No overflow:hidden — lets close button sit just outside the circle edge */
  padding: clamp(2.2rem, 9vw, 3.8rem);
  text-align: center;
  box-shadow: 0 28px 80px rgba(107, 45, 62, 0.3);
  transform: scale(0.92);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-overlay.is-open .gallery-overlay-card { transform: scale(1); }

.overlay-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 2.4rem;
  height: 2.4rem;
  background: var(--background);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(107, 45, 62, 0.12);
  flex-shrink: 0;
}

.overlay-close:hover {
  background: var(--dark-burgundy);
  color: var(--background);
  border-color: var(--dark-burgundy);
}

.overlay-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  border: 3px solid var(--primary-yellow);
  box-shadow: 0 0 0 1px var(--border-light);
}

.overlay-name {
  font-size: 1.25rem;
  margin-top: 0.75rem;
  line-height: 1.2;
}

.overlay-note {
  margin-top: 0.25rem;
  color: var(--text-secondary);
}

.overlay-desc {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 28ch;
  line-height: 1.55;
}

.overlay-price {
  margin-top: 0.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--accent-blue);
}

.overlay-save {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  padding: 0.5rem 1.5rem;
}

.overlay-save.is-saved {
  background: transparent;
  color: var(--accent-blue);
}

@media (prefers-reduced-motion: reduce) {
  .gallery-overlay,
  .gallery-overlay-card { transition: none; }
}

/* ─── Utility ─── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }

/* ─── Plate scroll gallery ─── */
.plate-gallery {
  position: relative;
  background: var(--primary-yellow);
}

.plate-gallery-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.plate-gallery-sticky .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.plate-scene {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-lg);
  align-items: center;
  width: 100%;
}

.plate-stage-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.plate-counter { color: var(--text-secondary); }

/* Relative container for plate + cake */
.plate-stage {
  position: relative;
  width: 310px;
  height: 210px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* The static plate */
.plate-dish {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 290px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(175deg, #ffffff 0%, #EEE8E2 100%);
  border: 3px solid rgba(107, 45, 62, 0.13);
  box-shadow:
    0 14px 36px rgba(107, 45, 62, 0.13),
    0 2px 6px rgba(107, 45, 62, 0.06),
    inset 0 3px 8px rgba(255, 255, 255, 0.95);
}

.plate-inner-rim {
  position: absolute;
  top: 12px;
  left: 22px;
  right: 22px;
  bottom: 12px;
  border-radius: 50%;
  border: 1.5px solid rgba(107, 45, 62, 0.09);
}

/* Cake that hops onto the plate */
.plate-cake {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 185px;
  z-index: 2;
  transform-origin: bottom center;
  opacity: 0; /* hidden until first scroll trigger */
}

.plate-cake img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 16px rgba(107, 45, 62, 0.2));
}

@keyframes cake-jump {
  /* Start fully off-screen above viewport */
  0% {
    transform: translateX(-50%) translateY(-110vh) scale(0.75) rotate(-6deg);
    opacity: 0;
    animation-timing-function: cubic-bezier(0.45, 0, 0.65, 0.2);
  }
  /* Fade in as it falls into view */
  20% {
    opacity: 1;
    animation-timing-function: cubic-bezier(0.55, 0, 0.7, 0.3);
  }
  /* Impact — squash on the plate (wider, shorter) */
  62% {
    transform: translateX(-50%) translateY(20px) scaleX(1.24) scaleY(0.72) rotate(1.5deg);
    animation-timing-function: cubic-bezier(0.15, 0.8, 0.35, 1);
  }
  /* Bounce up — stretch */
  75% {
    transform: translateX(-50%) translateY(-18px) scaleX(0.87) scaleY(1.16) rotate(-1deg);
  }
  /* Small secondary settle */
  86% {
    transform: translateX(-50%) translateY(6px) scaleX(1.06) scaleY(0.95) rotate(0.4deg);
  }
  /* Nearly there */
  94% {
    transform: translateX(-50%) translateY(-2px) scale(1.01) rotate(0);
  }
  /* Landed */
  100% {
    transform: translateX(-50%) translateY(0) scale(1) rotate(0);
    opacity: 1;
  }
}

.plate-cake.is-jumping {
  animation: cake-jump 0.9s linear both;
}

/* Progress dots */
.plate-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.plate-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--dark-burgundy);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, transform 0.25s ease;
  flex-shrink: 0;
}

.plate-dot.is-active {
  background: var(--dark-burgundy);
  transform: scale(1.4);
}

.plate-dot:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

/* Right-column info panel */
.plate-info {
  display: flex;
  flex-direction: column;
  transition: opacity 0.2s ease;
}

.plate-info.is-fading { opacity: 0; }

.plate-info h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.8rem);
  margin-top: 0.5rem;
  color: var(--dark-burgundy);
  line-height: 1.15;
}

.plate-info-desc {
  margin-top: var(--sp-sm);
  color: var(--text-secondary);
  max-width: 36ch;
  line-height: 1.65;
}

.plate-info-price {
  margin-top: 0.75rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: var(--accent-blue);
}

.plate-scroll-hint {
  margin-top: 2rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--text-secondary);
  transition: opacity 0.6s ease;
  user-select: none;
}

.plate-scroll-hint.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Spacer: height is set in JS based on cake count */
.plate-gallery-spacer { background: var(--primary-yellow); }

@media (max-width: 768px) {
  .plate-scene {
    grid-template-columns: 1fr;
    gap: var(--sp-sm);
    text-align: center;
  }
  .plate-stage-col { order: 2; }
  .plate-info { order: 1; align-items: center; }
  .plate-info-desc { max-width: none; }

  .plate-stage { width: 250px; height: 175px; }
  .plate-dish  { width: 230px; height: 72px; }
  .plate-cake  { width: 140px; bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .plate-cake.is-jumping { animation: none; }
}

/* ─── Tilt cards ─── */
.tilt-card {
  position: relative;
  transform-style: preserve-3d;
}

.tilt-highlight {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
  .tilt-card { transform: none !important; transition: none !important; }
  .tilt-highlight { display: none; }
}
