/* ==============================================================
   CakeXpress — Cinematic Luxury Edition
   Fonts: Italiana (display) · Cinzel (caps) · Cormorant Garamond
          (serif accents) · Jost (refined sans)
   Palette: onyx #0b0908 · champagne gold · ivory #f6f1e7
   ============================================================== */

:root {
  --onyx: #0b0908;
  --onyx-2: #14100d;
  --onyx-3: #1d1712;
  --ivory: #f6f1e7;
  --ivory-dim: rgba(246, 241, 231, 0.62);
  --gold: #c9a227;
  --gold-lt: #e8cd7a;
  --gold-pale: #f4e3ae;
  --gold-grad: linear-gradient(120deg, #9a771c 0%, #d4af37 30%, #f4e3ae 50%, #d4af37 70%, #9a771c 100%);
  --gold-text: linear-gradient(115deg, #b8912a, #f0dc9a 40%, #d9b95a 65%, #b8912a 100%);

  --display: "Italiana", "Cormorant Garamond", serif;
  --caps: "Cinzel", serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;

  --maxw: 1240px;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--onyx);
  color: var(--ivory);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
::selection { background: var(--gold); color: var(--onyx); }
.only-desktop { display: inline; }

/* ==================== AMBIENCE ==================== */
.grain {
  position: fixed; inset: -50%; z-index: 80; pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.9'/%3E%3C/svg%3E");
  animation: grainShift 7s steps(8) infinite;
}
@keyframes grainShift {
  0%,100% { transform: translate(0,0); } 12% { transform: translate(-3%,2%); }
  25% { transform: translate(2%,-3%); } 37% { transform: translate(-2%,-2%); }
  50% { transform: translate(3%,3%); } 62% { transform: translate(-3%,1%); }
  75% { transform: translate(1%,-3%); } 87% { transform: translate(-1%,3%); }
}

.cursor-glow {
  position: fixed; z-index: 79; pointer-events: none;
  width: 480px; height: 480px; border-radius: 50%;
  left: 0; top: 0; opacity: 0;
  background: radial-gradient(circle, rgba(212,175,55,.10), transparent 65%);
  transform: translate(-50%,-50%);
  transition: opacity .6s ease;
}
body.has-cursor .cursor-glow { opacity: 1; }

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--gold-grad); z-index: 200;
  box-shadow: 0 0 12px rgba(212,175,55,.7);
}

/* ==================== PRELOADER ==================== */
.loader {
  position: fixed; inset: 0; z-index: 500;
  background: var(--onyx);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  transition: opacity .9s var(--ease), visibility .9s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__logo { height: 110px; animation: loaderPulse 1.6s ease-in-out infinite; filter: drop-shadow(0 0 26px rgba(212,175,55,.45)); }
@keyframes loaderPulse { 0%,100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.05); opacity: 1; } }
.loader__bar { width: 180px; height: 1px; background: rgba(246,241,231,.14); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 40%; background: var(--gold-grad); animation: loaderBar 1.1s var(--ease) infinite; }
@keyframes loaderBar { from { transform: translateX(-120%); } to { transform: translateX(320%); } }

/* ==================== TYPO HELPERS ==================== */
.eyebrow {
  font-family: var(--caps); font-size: .72rem; letter-spacing: .5em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1.4rem; font-weight: 500;
}
.eyebrow--gold { color: var(--gold-lt); }
.display {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  line-height: 1.04; letter-spacing: .015em; color: var(--ivory);
}
.display em {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  background: var(--gold-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.display--onyx { text-shadow: 0 4px 40px rgba(0,0,0,.6); }
.lead { color: var(--ivory-dim); font-size: 1.06rem; max-width: 54ch; }
.section-head { text-align: center; max-width: 780px; margin: 0 auto clamp(3rem, 6vw, 5rem); padding: 0 1.5rem; }

/* ==================== BUTTONS ==================== */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 1.05rem 2.6rem;
  font-family: var(--caps); font-size: .78rem; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase; text-decoration: none;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), color .5s, background-color .5s, border-color .5s;
  will-change: transform;
}
.btn--gold {
  color: var(--onyx); background: var(--gold-grad); background-size: 220% auto;
  box-shadow: 0 18px 44px -16px rgba(212,175,55,.55), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn--gold:hover { background-position: right center; box-shadow: 0 26px 60px -16px rgba(212,175,55,.8), inset 0 1px 0 rgba(255,255,255,.4); }
.btn--line {
  color: var(--ivory); border: 1px solid rgba(212,175,55,.55); background: rgba(11,9,8,.25);
  backdrop-filter: blur(6px);
}
.btn--line:hover { border-color: var(--gold-lt); background: rgba(212,175,55,.14); color: var(--gold-pale); }
.btn--dark { color: var(--onyx-2); border-color: rgba(120,90,20,.5); background: transparent; }
.btn--dark:hover { background: rgba(212,175,55,.14); color: #7a5c10; }

/* ==================== NAV ==================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.3rem 0;
  transition: padding .5s var(--ease), background .5s var(--ease), box-shadow .5s;
}
.nav.is-scrolled {
  padding: .55rem 0;
  background: rgba(11,9,8,.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 rgba(212,175,55,.18), 0 18px 50px -22px rgba(0,0,0,.8);
}
.nav__inner {
  width: 100%; max-width: none; margin: 0; padding: 0 clamp(1.2rem, 3vw, 2.8rem);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: relative;
  column-gap: clamp(1rem, 2.5vw, 2.4rem);
}
/* Centered elevated crest */
.nav__brand {
  position: relative; left: auto; top: auto;
  transform: none;
  z-index: 2; line-height: 0;
  justify-self: center;
  margin: -1.4rem 0;
}
.nav__logo {
  height: 132px;
  transition: height .5s var(--ease), filter .5s var(--ease);
  filter: drop-shadow(0 4px 22px rgba(212,175,55,.55)) drop-shadow(0 12px 40px rgba(0,0,0,.5));
}
.nav.is-scrolled .nav__brand { transform: none; margin: -.6rem 0; }
.nav.is-scrolled .nav__logo { height: 78px; filter: drop-shadow(0 2px 14px rgba(212,175,55,.45)); }

.nav__wing {
  display: flex; align-items: center; gap: clamp(.9rem, 1.6vw, 1.8rem);
  flex-wrap: nowrap;
}
.nav__wing--left { justify-content: flex-start; }
.nav__wing--right { justify-content: flex-end; }
.nav__wing a {
  font-family: var(--sans); font-weight: 400; font-size: .8rem; letter-spacing: .13em;
  text-transform: uppercase; text-decoration: none; color: var(--ivory-dim);
  transition: color .35s; position: relative; white-space: nowrap;
}
.nav__wing a span {
  font-size: .58rem; color: var(--gold); margin-right: .4em; letter-spacing: .1em;
  font-family: var(--caps);
}
.nav__wing a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -7px; height: 1px; width: 0%;
  background: var(--gold-grad); transition: width .45s var(--ease);
}
.nav__wing a:not(.nav__cta):hover { color: var(--ivory); }
.nav__wing a:not(.nav__cta):hover::after { width: 100%; }

/* Desktop: hide the mobile combined drawer */
.nav__links { display: none; }
.nav__gap { display: none; }

.nav__links a {
  font-family: var(--sans); font-weight: 400; font-size: .82rem; letter-spacing: .13em;
  text-transform: uppercase; text-decoration: none; color: var(--ivory-dim);
  transition: color .35s; position: relative;
}
.nav__links a span {
  font-size: .6rem; color: var(--gold); margin-right: .45em; letter-spacing: .1em;
  font-family: var(--caps);
}
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -7px; height: 1px; width: 0%;
  background: var(--gold-grad); transition: width .45s var(--ease);
}
.nav__links a:not(.nav__cta):hover { color: var(--ivory); }
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
  border: 1px solid rgba(212,175,55,.6); padding: .62rem 1.5rem;
  color: var(--gold-pale) !important;
  font-family: var(--caps) !important; font-size: .68rem !important; letter-spacing: .22em !important;
  transition: background .4s, color .4s, box-shadow .4s !important;
}
.nav__cta:hover { background: var(--gold-grad); color: var(--onyx) !important; box-shadow: 0 14px 34px -12px rgba(212,175,55,.7); }

.nav__burger { display: none; flex-direction: column; gap: 7px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 111; }
.nav__burger span { width: 30px; height: 1.5px; background: var(--ivory); transition: transform .4s var(--ease); }
.nav__burger.is-open span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* ==================== HERO ==================== */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  transform: scale(1.06);
  animation: heroZoom 24s ease-in-out infinite alternate;
  filter: saturate(1.05) contrast(1.02);
}
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1.14); } }
.hero__veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 90% at 50% 108%, rgba(11,9,8,.94) 8%, transparent 55%),
    radial-gradient(130% 100% at 50% -20%, rgba(11,9,8,.85) 8%, transparent 60%),
    linear-gradient(rgba(11,9,8,.48), rgba(11,9,8,.42));
}
.hero__particles { position: absolute; inset: 0; z-index: 2; pointer-events: none; }

.hero__content { position: relative; z-index: 3; padding: 11rem 1.5rem 15rem; max-width: 1000px; }
.hero__kicker {
  font-family: var(--caps); font-size: .74rem; letter-spacing: .58em;
  color: var(--gold-lt); margin-bottom: 2.4rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.7);
}
.hero__title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(3.4rem, 10.5vw, 8.6rem);
  line-height: .98; letter-spacing: .02em;
  color: var(--ivory);
  text-shadow: 0 6px 60px rgba(0,0,0,.55);
}
.hero__line { display: block; overflow: hidden; }
.hero__line--script em {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  background: var(--gold-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 4px 30px rgba(212,175,55,.35));
}

/* letter-by-letter reveal */
[data-letters] .ltr {
  display: inline-block;
  opacity: 0; transform: translateY(110%) rotate(4deg);
  animation: ltrIn 1s var(--ease) forwards;
  animation-delay: calc(var(--li) * 42ms + var(--ld, 0ms));
}
@keyframes ltrIn { to { opacity: 1; transform: none; } }

.hero__rule {
  display: flex; align-items: center; justify-content: center; gap: 1.2rem;
  margin: 2.4rem auto 2rem; width: min(420px, 70%);
}
.hero__rule::before, .hero__rule::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,.75));
}
.hero__rule::after { background: linear-gradient(90deg, rgba(212,175,55,.75), transparent); }
.hero__rule i { color: var(--gold-lt); font-style: normal; font-size: .95rem; animation: starSpin 8s linear infinite; }
@keyframes starSpin { to { transform: rotate(360deg); } }

.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.18rem); color: rgba(246,241,231,.86);
  font-weight: 300; letter-spacing: .02em; margin-bottom: 3rem;
  text-shadow: 0 2px 24px rgba(0,0,0,.8);
}
.hero__actions { display: flex; gap: 1.1rem; justify-content: center; flex-wrap: wrap; }

/* (scroll indicator replaced by the CakeXpress toy train, styled below) */

/* ==================== MARQUEE ==================== */
.marquee {
  position: relative; z-index: 5; overflow: hidden;
  padding: 1.5rem 0; background: var(--onyx-2);
  border-top: 1px solid rgba(212,175,55,.22);
  border-bottom: 1px solid rgba(212,175,55,.22);
}
.marquee__track { display: inline-flex; align-items: center; gap: 2.6rem; white-space: nowrap; animation: marquee 30s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--display); font-size: 1.6rem; letter-spacing: .06em; color: rgba(246,241,231,.85);
}
.marquee__track i { color: var(--gold); font-style: normal; font-size: .8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==================== ATELIER ==================== */
.atelier { position: relative; background: var(--ivory); color: var(--onyx-2); padding: clamp(5rem, 9vw, 9rem) 1.6rem; }
.atelier .eyebrow { color: #8a6a14; }
.atelier .display { color: var(--onyx-2); }
.atelier .lead { color: rgba(29,23,18,.68); margin: 1.6rem 0 2.4rem; }
.atelier__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: center;
}
.atelier__media {
  position: relative;
  min-height: 560px;
  background: #d9cdbc url("/assets/video/decorating.jpg") center / cover no-repeat;
  isolation: isolate;
}
.atelier__media video {
  width: 100%; min-height: 560px; aspect-ratio: 4/4.6; object-fit: cover;
  box-shadow: 0 60px 120px -50px rgba(29,23,18,.55);
}
.atelier__media-frame {
  position: absolute; inset: -18px 18px 18px -18px;
  border: 1px solid rgba(154,119,28,.5); z-index: -1;
}
.atelier__seal {
  position: absolute; right: -40px; top: 42px; z-index: 2;
  width: 112px; height: 112px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--ivory); text-align: center;
  background: radial-gradient(circle at 35% 25%, #d8b94e, #9a771c 72%);
  border: 1px solid rgba(255,255,255,.55);
  outline: 1px solid rgba(154,119,28,.4); outline-offset: 7px;
  box-shadow: 0 20px 42px -16px rgba(29,23,18,.65);
}
.atelier__seal span { font-size: .65rem; line-height: 1; margin-bottom: .25rem; }
.atelier__seal strong {
  font-family: var(--caps); font-size: .67rem; line-height: 1.3;
  letter-spacing: .18em; text-transform: uppercase; font-weight: 500;
}
.atelier__seal small {
  font-family: var(--serif); font-style: italic; font-size: .78rem;
  color: rgba(246,241,231,.8);
}
.atelier__caption {
  position: absolute; left: 22px; bottom: 22px; z-index: 2;
  min-width: 230px; padding: 1rem 1.25rem;
  background: rgba(11,9,8,.8); color: var(--ivory);
  border-left: 2px solid var(--gold); backdrop-filter: blur(10px);
  box-shadow: 0 18px 38px -18px rgba(0,0,0,.8);
}
.atelier__caption span {
  display: block; font-family: var(--caps); font-size: .55rem;
  letter-spacing: .34em; color: var(--gold-lt); text-transform: uppercase;
}
.atelier__caption strong {
  display: block; margin-top: .2rem;
  font-family: var(--serif); font-size: 1.15rem; font-weight: 500;
}
.atelier__list { list-style: none; margin: 0 0 2.6rem; display: grid; gap: 1.5rem; }
.atelier__list li { display: flex; gap: 1.1rem; align-items: flex-start; }
.atelier__list i { color: var(--gold); font-style: normal; font-size: .85rem; margin-top: .4rem; }
.atelier__list strong { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--onyx-2); line-height: 1.3; }
.atelier__list span { color: rgba(29,23,18,.6); font-size: .96rem; }

/* ==================== EXOTIC DESSERTS ==================== */
.desserts {
  position: relative;
  padding: clamp(5rem, 9vw, 9rem) 1.6rem;
  background:
    radial-gradient(60% 45% at 12% 20%, rgba(212,175,55,.10), transparent 75%),
    var(--onyx-2);
}
.desserts::before {
  content: ""; position: absolute; inset: 24px;
  border: 1px solid rgba(212,175,55,.12); pointer-events: none;
}
.desserts__lead {
  max-width: 660px; margin: 1.3rem auto 0;
  color: var(--ivory-dim); font-size: 1.04rem;
}
.desserts__grid {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 250px); gap: 1rem;
}
.dessert-card {
  position: relative; overflow: hidden;
  border: 1px solid rgba(212,175,55,.18);
  box-shadow: 0 30px 70px -38px rgba(0,0,0,.85);
}
.dessert-card--tall { grid-row: span 2; }
.dessert-card--wide { grid-column: span 2; }
.dessert-card img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.92) brightness(.84);
  transition: transform 1s var(--ease), filter .7s var(--ease);
}
.dessert-card:hover img {
  transform: scale(1.08); filter: saturate(1.12) brightness(.96);
}
.dessert-card__shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,9,8,.94) 3%, rgba(11,9,8,.15) 64%, transparent);
}
.dessert-card::after {
  content: ""; position: absolute; inset: 12px; pointer-events: none;
  border: 1px solid transparent;
  transition: border-color .55s var(--ease);
}
.dessert-card:hover::after { border-color: rgba(244,227,174,.5); }
.dessert-card__body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 1.5rem; }
.dessert-card__body span {
  font-family: var(--caps); font-size: .56rem; letter-spacing: .38em;
  color: var(--gold-lt); text-transform: uppercase;
}
.dessert-card__body h3 {
  font-family: var(--display); font-size: 1.65rem; font-weight: 400;
  letter-spacing: .02em; margin: .2rem 0;
}
.dessert-card__body p {
  color: rgba(246,241,231,.65); font-size: .88rem; line-height: 1.45;
  max-width: 34ch;
}
.desserts__menu {
  max-width: var(--maxw); margin: 2.2rem auto 0; text-align: center;
  padding-top: 1.6rem; border-top: 1px solid rgba(212,175,55,.18);
}
.desserts__menu > span {
  font-family: var(--caps); font-size: .58rem; letter-spacing: .38em;
  text-transform: uppercase; color: var(--gold);
}
.desserts__menu p {
  margin-top: .65rem; font-family: var(--serif); font-size: 1.15rem;
  color: rgba(246,241,231,.78);
}
.desserts__menu i { color: var(--gold); font-style: normal; padding: 0 .65rem; font-size: .65rem; }

/* ==================== FLAVOURS ==================== */
.flavours { padding: clamp(5rem, 9vw, 9rem) 1.6rem; background:
  radial-gradient(70% 50% at 50% 0%, rgba(212,175,55,.08), transparent 70%), var(--onyx); }
.flavours__cloud {
  max-width: 1000px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: .9rem 1rem; justify-content: center;
}
.flavour {
  font-family: var(--serif); font-size: 1.12rem; font-weight: 500; letter-spacing: .04em;
  color: rgba(246,241,231,.82);
  padding: .68rem 1.55rem;
  border: 1px solid rgba(212,175,55,.28); border-radius: 100px;
  background: rgba(20,16,13,.6);
  transition: all .5s var(--ease);
  cursor: default;
}
.flavour:hover {
  color: var(--onyx); background: var(--gold-grad);
  border-color: transparent; transform: translateY(-4px) scale(1.05);
  box-shadow: 0 20px 44px -14px rgba(212,175,55,.55);
}
.flavours__note {
  text-align: center; margin-top: 2.8rem;
  font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--gold-lt);
}

/* ==================== CINEMA QUOTE ==================== */
.cinema { position: relative; min-height: 72vh; display: grid; place-items: center; overflow: hidden; }
.cinema__video { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; }
.cinema__veil { position: absolute; inset: 0; background: linear-gradient(rgba(11,9,8,.72), rgba(11,9,8,.62)); }
.cinema__quote { position: relative; z-index: 2; text-align: center; padding: 6rem 1.6rem; max-width: 900px; }
.cinema__quote p em {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.7rem, 3.6vw, 3rem); line-height: 1.35; color: var(--ivory);
  text-shadow: 0 4px 40px rgba(0,0,0,.7);
}
.cinema__quote cite {
  display: block; margin-top: 2rem;
  font-family: var(--caps); font-style: normal; font-size: .74rem; letter-spacing: .5em;
  text-transform: uppercase; color: var(--gold-lt);
}

/* ==================== COLLECTIONS ==================== */
.collections { padding: clamp(5rem, 9vw, 9rem) 1.6rem; }
.collections__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem;
}
.ccard {
  position: relative; aspect-ratio: 3/4.3; overflow: hidden; cursor: pointer;
  transform-style: preserve-3d; will-change: transform;
  transition: transform .25s ease-out;
  border: 1px solid rgba(212,175,55,.16);
}
.ccard__img {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transition: transform .9s var(--ease), filter .6s;
  filter: saturate(.92) brightness(.88);
}
.ccard:hover .ccard__img { transform: scale(1.1); filter: saturate(1.1) brightness(1); }
.ccard__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,9,8,.94) 6%, rgba(11,9,8,.25) 46%, transparent 75%);
  transition: opacity .5s;
}
.ccard__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.7rem 1.5rem; z-index: 2; }
.ccard__no {
  font-family: var(--caps); font-size: .68rem; letter-spacing: .45em; color: var(--gold-lt);
  display: block; margin-bottom: .55rem;
}
.ccard__body h3 { font-family: var(--display); font-size: 1.75rem; font-weight: 400; letter-spacing: .03em; margin-bottom: .45rem; }
.ccard__body p {
  color: rgba(246,241,231,.68); font-size: .9rem; line-height: 1.55;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .6s var(--ease), opacity .6s var(--ease);
}
.ccard:hover .ccard__body p { max-height: 90px; opacity: 1; }
.ccard::after {
  content: ""; position: absolute; inset: 12px; z-index: 3; pointer-events: none;
  border: 1px solid rgba(212,175,55,0);
  transition: border-color .5s var(--ease), inset .5s var(--ease);
}
.ccard:hover::after { border-color: rgba(212,175,55,.55); }

/* ==================== NUMBERS ==================== */
.numbers { padding: clamp(4rem, 7vw, 6rem) 1.6rem; background: var(--onyx-2); border-top: 1px solid rgba(212,175,55,.16); border-bottom: 1px solid rgba(212,175,55,.16); }
.numbers__row {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center;
}
.numbers__item strong, .numbers__item em {
  font-family: var(--display); font-size: clamp(2.6rem, 5vw, 4.2rem); font-style: normal;
  background: var(--gold-text);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1;
}
.numbers__item span {
  display: block; margin-top: .8rem;
  font-family: var(--caps); font-size: .66rem; letter-spacing: .34em; text-transform: uppercase;
  color: rgba(246,241,231,.55);
}

/* ==================== GALLERY ==================== */
.gallery { padding: clamp(5rem, 9vw, 9rem) 1.6rem; }
.gallery__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 250px; gap: 1.1rem;
}
.gallery__grid figure { position: relative; overflow: hidden; border: 1px solid rgba(212,175,55,.14); }
.gallery__tall { grid-row: span 2; }
.gallery__img {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transition: transform 1.1s var(--ease), filter .7s;
  filter: saturate(.95) brightness(.92);
}
.gallery__grid figure:hover .gallery__img { transform: scale(1.09); filter: saturate(1.12) brightness(1.02); }
.gallery__grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 2.2rem 1.4rem 1.2rem;
  font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--ivory);
  background: linear-gradient(to top, rgba(11,9,8,.85), transparent);
  opacity: 0; transform: translateY(12px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.gallery__grid figure:hover figcaption { opacity: 1; transform: none; }

/* ==================== CAKEXPRESS TOY TRAIN (in hero) ==================== */
.railway {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 205px; z-index: 4; overflow: hidden;
}
.railtrack {
  position: absolute; left: 0; right: 0; bottom: 14px; height: 14px;
  border-top: 2px solid rgba(212,175,55,.85);
  background: repeating-linear-gradient(
    90deg,
    transparent 0 26px,
    rgba(201,162,39,.5) 26px 32px
  );
  box-shadow: 0 -2px 24px rgba(212,175,55,.28);
}
.railtrack::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px;
  background: rgba(138,106,20,.6);
}

.train {
  position: absolute; bottom: 8px; left: 0;
  display: flex; align-items: flex-end;
  will-change: transform;
  animation: trainRun 38s linear infinite;
  animation-delay: -7s;
}
.railway:hover .train,
.railway:hover .train * { animation-play-state: paused !important; }

@keyframes trainRun {
  from { transform: translateX(calc(-100% - 100px)); }
  to   { transform: translateX(calc(100vw + 100px)); }
}

.carwrap {
  position: relative; flex: 0 0 auto; margin-left: -8px;
  animation: carBob 1.05s ease-in-out infinite;
}
.carwrap:nth-child(odd) { animation-delay: .16s; }
.carwrap:nth-child(3n)  { animation-delay: .32s; }
@keyframes carBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-2.5px); }
}

/* emoji fumes drifting up from each wagon */
.fume {
  position: absolute; left: 50%; top: 6px; z-index: 2;
  font-style: normal; font-size: 1.35rem; line-height: 1;
  opacity: 0; pointer-events: none;
  animation: fumeRise 4.6s linear infinite;
  animation-delay: var(--fd, 0s);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.55));
}
.carwrap--engine .fume { top: -20px; }
@keyframes fumeRise {
  0%   { opacity: 0; transform: translate(-50%, 0) scale(.55) rotate(0deg); }
  12%  { opacity: 1; }
  60%  { opacity: .9; }
  100% { opacity: 0; transform: translate(calc(-50% - 44px), -86px) scale(1.35) rotate(-14deg); }
}

.train .wheel {
  animation: wheelSpin 1.05s linear infinite;
  transform-box: fill-box; transform-origin: center;
}
@keyframes wheelSpin { to { transform: rotate(360deg); } }

/* engine coupling rod pumps in time with the wheels */
.train .rod {
  animation: rodPump 1.05s ease-in-out infinite;
  transform-box: fill-box; transform-origin: center;
}
@keyframes rodPump {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

/* CAKEXPRESS banner gently swaying above the engine */
.train .flagband {
  animation: flagWave 2.4s ease-in-out infinite;
  transform-box: fill-box; transform-origin: 50% 100%;
}
@keyframes flagWave {
  0%, 100% { transform: skewX(0deg) translateY(0); }
  50%      { transform: skewX(-2.5deg) translateY(-1.5px); }
}

.train .flame {
  animation: flameFlick .5s ease-in-out infinite alternate;
  transform-box: fill-box; transform-origin: 50% 100%;
}
.train .flame.f2 { animation-duration: .38s; }
.train .flame.f3 { animation-duration: .62s; }
@keyframes flameFlick {
  from { transform: scale(1) rotate(-4deg); opacity: .85; }
  to   { transform: scale(1.25, 1.5) rotate(4deg); opacity: 1; }
}

.train .smoke {
  animation: smokeRise 2.6s ease-out infinite;
  transform-box: fill-box; transform-origin: center;
  opacity: 0;
}
.train .smoke.s2 { animation-delay: .9s; }
.train .smoke.s3 { animation-delay: 1.7s; }
@keyframes smokeRise {
  0%   { transform: translate(0, 0) scale(.5); opacity: 0; }
  12%  { opacity: .85; }
  100% { transform: translate(-30px, -52px) scale(2.6); opacity: 0; }
}

.toot {
  position: absolute; right: -12px; top: -38px; z-index: 3;
  font-family: var(--serif); font-style: italic; font-size: 1.05rem;
  color: var(--gold-pale);
  background: rgba(20,16,13,.92);
  border: 1px solid rgba(212,175,55,.55);
  border-radius: 14px 14px 14px 2px;
  padding: .3rem .85rem;
  opacity: 0; transform: translateY(8px) scale(.8);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  pointer-events: none; white-space: nowrap;
}
.toot.show { opacity: 1; transform: translateY(0) scale(1); }

@media (max-width: 700px) {
  .railway { height: 150px; }
  .hero__content { padding-bottom: 11rem; }
  .carwrap svg.car { width: 106px; height: auto; }
  .carwrap svg.car.engine { width: 148px; height: auto; }
  .fume { font-size: 1.05rem; top: 2px; }
  .train { animation-duration: 28s; }
}

@media (prefers-reduced-motion: reduce) {
  .train { animation: none; left: 50%; transform: translateX(-50%); }
  .carwrap, .train .wheel, .train .flame, .train .smoke, .train .rod, .fume { animation: none !important; }
  .train .smoke { opacity: .5; }
  .fume { opacity: .6; }
}

/* ==================== BRANCHES ==================== */
.branches { padding: clamp(5rem, 9vw, 9rem) 1.6rem; background:
  radial-gradient(60% 40% at 50% 100%, rgba(212,175,55,.07), transparent 70%), var(--onyx); }
.branches__grid { max-width: 940px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.branch {
  position: relative; padding: 2.8rem 2.4rem;
  background: linear-gradient(160deg, var(--onyx-3), var(--onyx-2));
  border: 1px solid rgba(212,175,55,.28);
  transition: transform .6s var(--ease), border-color .6s, box-shadow .6s;
  overflow: hidden;
}
.branch::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--gold-grad); opacity: .8;
}
.branch:hover { transform: translateY(-8px); border-color: rgba(212,175,55,.6); box-shadow: 0 40px 80px -40px rgba(212,175,55,.35); }
.branch__no { font-family: var(--caps); font-size: .64rem; letter-spacing: .44em; text-transform: uppercase; color: var(--gold); }
.branch h3 { font-family: var(--display); font-size: 2.1rem; font-weight: 400; margin: .8rem 0 .6rem; }
.branch p { color: var(--ivory-dim); margin-bottom: 1.5rem; }
.branch__map {
  font-family: var(--caps); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold-lt); text-decoration: none;
}
.branch__map i { font-style: normal; display: inline-block; transition: transform .4s var(--ease); }
.branch__map:hover i { transform: translateX(6px); }

/* ==================== FINALE / CONTACT ==================== */
.finale { position: relative; min-height: 88vh; display: grid; place-items: center; overflow: hidden; text-align: center; }
.finale__video { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; }
.finale__veil {
  position: absolute; inset: 0;
  background: radial-gradient(90% 90% at 50% 50%, rgba(11,9,8,.55) 0%, rgba(11,9,8,.9) 100%);
}
.finale__content { position: relative; z-index: 2; padding: 7rem 1.6rem; max-width: 860px; }
.finale__lead { color: rgba(246,241,231,.85); font-size: 1.12rem; margin: 1.6rem 0 2.8rem; text-shadow: 0 2px 20px rgba(0,0,0,.8); }
.finale__actions { display: flex; gap: 1.1rem; justify-content: center; flex-wrap: wrap; }
.finale__hours {
  margin-top: 2.6rem;
  font-family: var(--caps); font-size: .68rem; letter-spacing: .4em; text-transform: uppercase;
  color: rgba(232,205,122,.8);
}

/* ==================== FOOTER ==================== */
.footer { background: #070605; padding: 4.5rem 1.6rem 2.8rem; border-top: 1px solid rgba(212,175,55,.18); }
.footer__inner { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.footer__logo { height: 64px; margin: 0 auto 1.2rem; filter: drop-shadow(0 4px 18px rgba(212,175,55,.35)); }
.footer__tag { font-family: var(--serif); font-size: 1.3rem; color: var(--gold-lt); margin-bottom: 2rem; }
.footer__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 2rem; margin-bottom: 2.2rem; }
.footer__links a {
  font-family: var(--caps); font-size: .66rem; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(246,241,231,.6); text-decoration: none; transition: color .35s;
}
.footer__links a:hover { color: var(--gold-lt); }
.footer__copy { font-size: .82rem; color: rgba(246,241,231,.35); border-top: 1px solid rgba(246,241,231,.08); padding-top: 1.8rem; letter-spacing: .05em; }

/* ==================== WHATSAPP FLOAT ==================== */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 150;
  width: 56px; height: 56px; border-radius: 50%;
  background: #1fbe59; color: #fff; display: grid; place-items: center;
  box-shadow: 0 16px 36px -10px rgba(31,190,89,.65);
  transition: transform .45s var(--ease);
  animation: waPulse 3s infinite;
}
.wa-float:hover { transform: scale(1.12) translateY(-3px); }
@keyframes waPulse {
  0% { box-shadow: 0 16px 36px -10px rgba(31,190,89,.65), 0 0 0 0 rgba(31,190,89,.45); }
  70% { box-shadow: 0 16px 36px -10px rgba(31,190,89,.65), 0 0 0 18px rgba(31,190,89,0); }
  100% { box-shadow: 0 16px 36px -10px rgba(31,190,89,.65), 0 0 0 0 rgba(31,190,89,0); }
}

/* ==================== REVEALS ==================== */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-up { opacity: 0; transform: translateY(70px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 130ms); }
.reveal-up.is-in { opacity: 1; transform: none; }
.reveal-clip { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s var(--ease); }
.reveal-clip.is-in { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01s !important; }
  html { scroll-behavior: auto; }
  .reveal, .reveal-up { opacity: 1; transform: none; }
  .reveal-clip { clip-path: none; }
  [data-letters] .ltr { opacity: 1; transform: none; animation: none; }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1080px) {
  .collections__grid { grid-template-columns: repeat(2, 1fr); }
  .numbers__row { grid-template-columns: repeat(2, 1fr); }
  .desserts__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 320px);
  }
  .dessert-card--tall, .dessert-card--wide { grid-row: auto; grid-column: auto; }
}
@media (max-width: 900px) {
  .atelier__grid { grid-template-columns: 1fr; }
  .atelier__media { min-height: 0; }
  .atelier__media video { min-height: 0; aspect-ratio: 16/10; }
  .atelier__seal { right: 24px; top: 24px; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .only-desktop { display: none; }
}
@media (max-width: 1100px) {
  .nav__wing a { font-size: .72rem; letter-spacing: .08em; }
  .nav__wing { gap: .7rem; }
  .nav__logo { height: 110px; }
  .nav.is-scrolled .nav__logo { height: 70px; }
  .nav__cta { padding: .55rem 1rem !important; font-size: .6rem !important; }
}
@media (max-width: 760px) {
  .nav__inner { grid-template-columns: 1fr auto; }
  .nav__wing { display: none; }
  .nav__brand { justify-self: start; margin: -.8rem 0; }
  .nav__links {
    display: flex;
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 2rem;
    background: rgba(7,6,5,.97); backdrop-filter: blur(16px);
    transform: translateY(-102%); transition: transform .7s var(--ease);
    z-index: 110;
  }
  .nav__links.is-open { transform: none; }
  .nav__links a { font-size: 1.15rem; }
  .nav__gap { display: none; }
  .nav__logo { height: 96px; }
  .nav.is-scrolled .nav__logo { height: 68px; }
  .nav__burger { display: flex; justify-self: end; }
  .branches__grid { grid-template-columns: 1fr; }
  .cinema { min-height: 60vh; }
}
@media (max-width: 560px) {
  .collections__grid, .gallery__grid { grid-template-columns: 1fr; }
  .desserts::before { inset: 12px; }
  .desserts__grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .dessert-card { min-height: 360px; }
  .desserts__menu i { padding: 0 .25rem; }
  .atelier__seal { width: 86px; height: 86px; right: 16px; top: 16px; outline-offset: 4px; }
  .atelier__seal strong { font-size: .56rem; }
  .atelier__caption { left: 12px; bottom: 12px; min-width: 190px; padding: .75rem 1rem; }
  .gallery__tall { grid-row: span 1; }
  .gallery__grid { grid-auto-rows: 300px; }
  .btn { padding: .95rem 1.9rem; letter-spacing: .2em; }
  .hero__kicker { letter-spacing: .34em; }
}
