/* =========================================================
   Ivelle Blythe: styles
   Brand colours come straight from the logo.
   ========================================================= */
:root {
  --cream: #fff4e6;        /* logo background, page */
  --cream-deep: #f6e5cf;   /* photo placeholders */
  --paper: #fffaf3;        /* inputs, raised areas */
  --blush: #fde3f1;
  --pink: #fbb2df;         /* logo "I" */
  --green: #2c5240;        /* logo "B": text and main buttons */
  --green-dark: #1d3a2d;
  --cocoa: #7a5b4e;        /* logo script, secondary text */
  --line: rgba(44, 82, 64, 0.15);
  --line-strong: rgba(44, 82, 64, 0.3);
  --error: #a8322d;

  --display: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
  --text: "Albert Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(0.2, 0.75, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --gutter: 24px;
  --max: 1180px;
  --header-h: 68px;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; }
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--green);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2.5px solid var(--green); outline-offset: 3px; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--green); color: var(--cream); text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---------- Monogram (from the logo) ---------- */
.mono { display: inline-flex; align-items: flex-start; font-family: var(--display); font-weight: 700; line-height: 1; letter-spacing: 0; }
.mono-i { color: var(--pink); }
.mono-b { color: var(--green); transform: translateY(0.27em); margin-left: 0.03em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; text-align: center;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn svg { flex: none; }
.btn-primary { background: var(--green); color: var(--cream); }
.btn-primary:hover { background: var(--green-dark); }
.btn-secondary { background: transparent; color: var(--green); border-color: var(--green); }
.btn-secondary:hover { background: var(--green); color: var(--cream); }
.btn-pink { background: var(--pink); color: var(--green-dark); }
.btn-pink:hover { background: #fcc6e8; }
.btn-block { width: 100%; }
.link-btn {
  background: none; border: 0; padding: 6px 0;
  font-size: 14.5px; font-weight: 500; color: var(--cocoa);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--green); }
.round-btn {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid var(--green); background: transparent; color: var(--green);
  display: grid; place-items: center;
  transition: background-color 0.2s, color 0.2s, opacity 0.2s;
}
.round-btn:hover:not(:disabled) { background: var(--green); color: var(--cream); }
.round-btn:disabled { opacity: 0.3; cursor: default; }

/* ---------- Header ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; z-index: 41;
  height: env(safe-area-inset-top, 0px); background: var(--cream);
}
/* Full-screen reel at the top of the page */
.reel {
  position: relative; overflow: hidden; isolation: isolate;
  height: calc(100svh - 72px); min-height: 460px; max-height: 1000px;
  display: grid; place-items: center;
  background: var(--green);
}
.reel-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.reel-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(16, 33, 25, 0.55) 0%, rgba(16, 33, 25, 0.35) 55%, rgba(16, 33, 25, 0.6) 100%);
}
.reel-copy {
  width: min(100% - 32px, 760px); text-align: center; color: var(--cream);
  animation: reel-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.reel-eyebrow {
  margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--pink);
}
.reel-title {
  color: var(--cream);
  font-size: clamp(40px, calc(5vw + 16px), 84px); line-height: 1.02; letter-spacing: -0.022em;
  text-wrap: balance; font-variation-settings: "opsz" 30;
  text-shadow: 0 2px 24px rgba(10, 25, 18, 0.35);
}
.reel-sub {
  margin: 18px auto 0; max-width: 34em; font-size: clamp(16px, 1.2vw + 10px, 19px); line-height: 1.55;
  color: rgba(255, 244, 230, 0.92);
}
.reel-actions { margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(255, 244, 230, 0.75); }
.btn-ghost:hover { background: var(--cream); color: var(--green); border-color: var(--cream); }
.reel :focus-visible { outline-color: var(--pink); }
@media (max-width: 520px) {
  .reel-actions .btn { flex: 1 1 100%; }
  .reel-eyebrow { font-size: 12px; }
}
.reel-next {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  color: var(--cream); border: 1.5px solid rgba(255, 244, 230, 0.6);
  transition: background-color 0.2s, color 0.2s;
}
.reel-next:hover { background: var(--cream); color: var(--green); }
.reel-next svg { animation: reel-bob 2.2s ease-in-out infinite; }
@keyframes reel-in { from { transform: translateY(14px); } to { transform: none; } }
@keyframes reel-bob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) {
  .reel-copy, .reel-next svg { animation: none; }
}

.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: rgba(255, 244, 230, 0.9);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}
.topbar.is-scrolled { border-bottom-color: var(--line); }
.topbar-inner { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; }
.brand .mono { font-size: 30px; padding-bottom: 8px; }
.brand-name { font-family: var(--display); font-size: 21px; font-weight: 500; white-space: nowrap; }
.nav { display: flex; gap: 30px; }
.nav a {
  padding: 8px 0; font-size: 15.5px; font-weight: 500; text-decoration: underline;
  text-decoration-color: transparent; text-decoration-thickness: 3px; text-underline-offset: 8px;
  transition: text-decoration-color 0.2s;
}
.nav a:hover { text-decoration-color: var(--pink); }
.order-btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 8px 0 16px;
  border: 0; border-radius: 999px; background: var(--green); color: var(--cream);
  font-size: 15px; font-weight: 600;
}
.order-btn:hover { background: var(--green-dark); }
.count {
  min-width: 30px; height: 30px; padding: 0 9px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--pink); color: var(--green-dark);
  font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.count.is-bumped { animation: bump 0.5s var(--spring); }
@keyframes bump { 40% { transform: scale(1.3); } }
.menu-btn { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 104px; overflow: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: 72px; align-items: center; }
.hero .hero-title {
  font-size: clamp(36px, calc(4.2vw + 14px), 68px);
  line-height: 1.03; letter-spacing: -0.022em;
  max-width: 11.5em; text-wrap: balance;
  font-variation-settings: "opsz" 30; /* sturdier commas and hairlines than the default display cut */
}
.hero-sub { margin-top: 24px; max-width: 31em; font-size: 19px; color: var(--cocoa); }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }

/* The stage: a layered backdrop with the hero video, like one of our setups */
.hero-stage { position: relative; width: 100%; aspect-ratio: 520 / 640; }
.stage-shadow {
  position: absolute; left: 4%; right: -2%; top: 92%; height: 8%;
  background: radial-gradient(closest-side, rgba(29, 58, 45, 0.22), transparent);
}
.stage-pink {
  position: absolute; left: 5.77%; top: 23.44%; width: 51.92%; height: 72.19%;
  background: var(--pink);
  border-radius: 50% 50% 3.5% 3.5% / 29.2% 29.2% 2% 2%;
}
.stage-media {
  position: absolute; left: 28.85%; top: 6.25%; width: 61.54%; height: 89.38%;
  border-radius: 50% 50% 3.2% 3.2% / 27.97% 27.97% 1.8% 1.8%;
  overflow: hidden; background: var(--green-dark);
  transform: translateZ(0);
  box-shadow: 0 34px 60px -34px rgba(29, 58, 45, 0.55);
}
.stage-media video { width: 100%; height: 100%; object-fit: cover; }
.garland { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }

/* Balloons: built in app.js, inflate once on load */
.balloon { transform-box: fill-box; transform-origin: 50% 65%; }
.garland-animate .balloon { animation: inflate 0.75s var(--spring) both; animation-delay: var(--d, 0ms); }
@keyframes inflate {
  from { transform: scale(0); opacity: 0; }
  30% { opacity: 1; }
  to { transform: scale(1); opacity: 1; }
}

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-head { display: grid; gap: 14px; max-width: 40em; }
.section h2 { font-size: clamp(34px, calc(2.6vw + 18px), 52px); line-height: 1.05; letter-spacing: -0.018em; }
.section-head p { font-size: 18px; color: var(--cocoa); }
.section-head a { color: var(--green); font-weight: 600; text-underline-offset: 3px; }

/* ---------- Occasion filters ---------- */
.occasions {
  display: flex; gap: 22px;
  margin: 40px -4px 52px; padding: 4px 4px 8px;
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
}
.occasions::-webkit-scrollbar { display: none; }
.occasion {
  flex: none; width: 112px; padding: 0; border: 0; background: none;
  display: grid; justify-items: center; gap: 10px;
  text-align: center; color: var(--green); text-decoration: none; scroll-snap-align: start;
}
.occasion-ring {
  display: block; width: 100px; height: 100px; padding: 5px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  transition: box-shadow 0.2s;
}
.occasion-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--cream-deep); }
.occasion-all { width: 100%; height: 100%; border-radius: 50%; background: var(--green); display: grid; place-items: center; }
.occasion-all .mono { font-size: 36px; padding-bottom: 9px; }
.occasion-all .mono-b { color: var(--cream); }
.occasion:hover .occasion-ring { box-shadow: inset 0 0 0 1.5px var(--green); }
.occasion[aria-current="page"] .occasion-ring { box-shadow: inset 0 0 0 3px var(--green); }
.occasion-label { font-size: 14.5px; font-weight: 500; line-height: 1.3; }
.occasion[aria-current="page"] .occasion-label { font-weight: 700; }

/* ---------- Packages ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 60px 32px; }
.product { display: flex; flex-direction: column; min-width: 0; }
.product-media {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 22px; background: var(--cream-deep); cursor: pointer;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.product-media:hover img { transform: scale(1.035); }
.in-order {
  position: absolute; left: 12px; top: 12px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--pink); color: var(--green-dark);
  font-size: 13.5px; font-weight: 600;
}
.product-name { margin-top: 20px; font-size: 23px; line-height: 1.15; }
.product-media { display: block; }
.product-name a { color: inherit; text-decoration: none; }
.product-name a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.product-name a:focus-visible { outline: 2.5px solid var(--green); outline-offset: 4px; }
.product-desc { margin-top: 8px; font-size: 15.5px; line-height: 1.5; color: var(--cocoa); }
.product-foot { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-price { font-size: 16.5px; font-weight: 600; }
.product-price .from { font-weight: 400; color: var(--cocoa); }
.add {
  min-width: 96px; height: 44px; padding: 0 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 999px; border: 1.5px solid var(--green); background: transparent; color: var(--green);
  font-size: 15px; font-weight: 600;
  transition: background-color 0.2s, color 0.2s;
}
.add:hover, .add.is-added { background: var(--green); color: var(--cream); }

/* ---------- Occasion page ---------- */
.occ-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 60px; align-items: center; }
.occ-copy { min-width: 0; }
.occ-head h1 {
  font-size: clamp(40px, calc(3.4vw + 18px), 68px); line-height: 1.03; letter-spacing: -0.02em;
  text-wrap: balance; outline: none; font-variation-settings: "opsz" 30;
}
.occ-intro { margin-top: 18px; max-width: 30em; font-size: 19px; color: var(--cocoa); }
.occ-count { margin-top: 18px; font-weight: 600; }
.occ-cover { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 26px; background: var(--cream-deep); }
.occ-cover img { width: 100%; height: 100%; object-fit: cover; }
.occ-switch { margin: 56px -4px 52px; }
.crumbs [aria-current="page"] { color: var(--cocoa); }

/* ---------- Package page ---------- */
.package-view { padding: 28px 0 104px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 28px; font-size: 15px; color: var(--cocoa); }
.crumbs a { color: var(--green); font-weight: 500; text-underline-offset: 3px; }
.pkg { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 60px; align-items: start; }
.pkg-gallery { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 12px; }
.pkg-main {
  display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; overflow: hidden;
  border-radius: 26px; background: var(--cream-deep); cursor: zoom-in;
}
.pkg-main img { width: 100%; height: 100%; object-fit: cover; }
.pkg-thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.pkg-thumbs button { width: 76px; height: 94px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--cream-deep); opacity: 0.65; transition: opacity 0.2s; }
.pkg-thumbs button:hover { opacity: 1; }
.pkg-thumbs button[aria-current="true"] { opacity: 1; outline: 2.5px solid var(--green); outline-offset: 2px; }
.pkg-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pkg-info { min-width: 0; }
.pkg-cat { font-size: 15px; font-weight: 500; color: var(--cocoa); }
.pkg-info h1 {
  margin-top: 8px; font-size: clamp(36px, calc(2.8vw + 18px), 56px); line-height: 1.04;
  letter-spacing: -0.02em; text-wrap: balance; outline: none; font-variation-settings: "opsz" 30;
}
.pkg-price { margin-top: 16px; font-size: 22px; font-weight: 600; }
.pkg-price .from { font-size: 17px; font-weight: 400; color: var(--cocoa); }
.pkg-desc { margin-top: 14px; max-width: 34em; font-size: 18px; color: var(--cocoa); }
.pkg-info h2 { margin-top: 34px; font-family: var(--text); font-size: 17px; font-weight: 600; letter-spacing: 0; }
.pkg-form { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.pkg-actions { margin-top: 26px; display: flex; gap: 12px; }
.pkg-actions .btn { flex: 1; }
.pkg-ask { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--green); text-underline-offset: 3px; }
.related { margin-top: 104px; }
.related h2 { margin-bottom: 36px; font-size: clamp(30px, calc(1.8vw + 18px), 44px); line-height: 1.08; }

/* ---------- How ordering works ---------- */
.how { background: var(--pink); color: var(--green-dark); }
.how h2 { color: var(--green-dark); }
.how-steps {
  position: relative; list-style: none; margin: 56px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px;
}
.how-steps::before {
  content: ""; position: absolute; left: 24px; right: calc(25% - 54px); top: 23px;
  border-top: 2px dotted rgba(29, 58, 45, 0.45);
}
.how-steps li { position: relative; }
.how-num {
  position: relative; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--cream); color: var(--green);
  font-family: var(--display); font-size: 22px; font-weight: 600;
}
.how-steps h3 { margin-top: 22px; font-size: 24px; }
.how-steps p { margin-top: 10px; max-width: 24em; font-size: 16px; }

/* ---------- Recent setups ---------- */
.work-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.strip-nav { flex: none; display: flex; gap: 10px; }
.strip {
  margin-top: 40px; padding: 0 max(var(--gutter), (100% - var(--max)) / 2) 4px;
  scroll-padding-inline: max(var(--gutter), (100% - var(--max)) / 2);
  display: flex; gap: 16px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip-item {
  position: relative; flex: none; height: clamp(320px, 38vw, 460px); aspect-ratio: 3 / 4;
  padding: 0; border: 0; border-radius: 20px; overflow: hidden;
  background: var(--cream-deep); scroll-snap-align: start; cursor: zoom-in;
}
.strip-item img, .strip-item video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.strip-item:hover img, .strip-item:hover video { transform: scale(1.03); }
.tag {
  position: absolute; left: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px 6px 10px; border-radius: 999px;
  background: rgba(255, 244, 230, 0.94); color: var(--green);
  font-size: 13.5px; font-weight: 600;
}

/* ---------- Contact ---------- */
.contact { background: var(--green); color: var(--cream); }
.contact h2 { color: var(--cream); max-width: 12em; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 72px; align-items: end; }
.contact-lead { margin-top: 18px; max-width: 30em; font-size: 18px; color: rgba(255, 244, 230, 0.86); }
.contact .btn { margin-top: 32px; }
.contact-icons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px; }
.contact-icon[hidden] { display: none; }
.contact-icon {
  width: 72px; height: 72px; display: grid; place-items: center;
  border-radius: 50%; border: 1.5px solid rgba(255, 244, 230, 0.45); color: var(--cream);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.contact-icon:hover { background: var(--pink); border-color: var(--pink); color: var(--green); }
.contact-list { margin: 0; }
.contact-list > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 20px 0; border-top: 1px solid rgba(255, 244, 230, 0.2); }
.contact-list > div:last-child { border-bottom: 1px solid rgba(255, 244, 230, 0.2); }
.contact-list dt { flex: none; font-size: 15px; font-weight: 500; color: var(--pink); }
.contact-list dd { margin: 0; min-width: 0; font-family: var(--display); font-size: 22px; text-align: right; overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.contact :focus-visible { outline-color: var(--pink); }

/* ---------- Footer ---------- */
.footer { padding: 40px 0; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-logo { width: 132px; height: auto; margin: -16px 0 -16px -14px; }
.footer p { font-size: 14.5px; color: var(--cocoa); }

/* ---------- Order bar (phones only) ---------- */
.order-bar { display: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 90; left: 50%; bottom: 24px;
  display: flex; align-items: center; gap: 14px;
  max-width: min(520px, calc(100% - 24px)); padding: 13px 18px;
  border-radius: 16px; background: var(--green-dark); color: var(--cream);
  font-size: 15px; line-height: 1.35;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.5);
  opacity: 0; pointer-events: none; transform: translate(-50%, 16px);
  transition: opacity 0.25s, transform 0.3s var(--ease);
}
.toast.is-shown { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.toast.has-action { padding: 10px 10px 10px 18px; }
.toast button {
  flex: none; padding: 9px 14px; border: 0; border-radius: 999px;
  background: var(--pink); color: var(--green-dark); font-size: 14px; font-weight: 600;
}

/* ---------- Layers: sheets, dialog, lightbox ---------- */
.layer { position: fixed; inset: 0; z-index: 70; visibility: hidden; transition: visibility 0s linear 0.45s; }
.layer.is-open { visibility: visible; transition-delay: 0s; }
.backdrop { position: absolute; inset: 0; background: rgba(23, 45, 35, 0.45); opacity: 0; transition: opacity 0.35s; }
.layer.is-open .backdrop { opacity: 1; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column;
  max-height: 92vh; max-height: 92dvh; overflow: hidden;
  background: var(--cream); color: var(--green);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -24px 60px -30px rgba(23, 45, 35, 0.55);
  transform: translateY(102%); transition: transform 0.45s var(--ease);
  outline: none; overscroll-behavior: contain;
}
.layer.is-open .sheet { transform: none; }
.close-btn {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  display: grid; place-items: center;
  background: rgba(255, 244, 230, 0.95); color: var(--green);
  box-shadow: 0 4px 14px -6px rgba(23, 45, 35, 0.45);
}

/* Package details */
.p-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.p-media { position: relative; background: var(--cream-deep); }
.p-slides { display: flex; aspect-ratio: 4 / 3.4; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.p-slides::-webkit-scrollbar { display: none; }
.p-slide { flex: 0 0 100%; scroll-snap-align: start; }
.p-slide img { width: 100%; height: 100%; object-fit: cover; }
.p-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 2px; }
.p-dots button { width: 24px; height: 24px; padding: 0; border: 0; background: none; display: grid; place-items: center; }
.p-dots button::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 244, 230, 0.6); box-shadow: 0 0 0 1px rgba(23, 45, 35, 0.25);
  transition: background-color 0.2s, transform 0.2s;
}
.p-dots button[aria-current="true"]::before { background: var(--cream); transform: scale(1.35); }
.p-body { padding: 24px 22px 28px; }
.p-cat { font-size: 14.5px; font-weight: 500; color: var(--cocoa); }
.p-body h3 { margin-top: 6px; font-size: 32px; line-height: 1.08; letter-spacing: -0.015em; }
.p-price { margin-top: 10px; font-size: 18px; font-weight: 600; }
.p-desc { margin-top: 12px; color: var(--cocoa); }
.p-body h4 { margin-top: 26px; font-family: var(--text); font-size: 16px; font-weight: 600; letter-spacing: 0; }
.p-includes { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.p-includes li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.45; }
.p-includes li::before {
  content: ""; position: absolute; left: 2px; top: 0.36em; width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe3f3, var(--pink) 55%, #e48cc1);
}
.p-form { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.p-foot {
  flex: none; display: flex; align-items: center; gap: 12px;
  padding: 14px 22px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--cream);
}
.p-foot .btn { flex: 1; }

/* Quantity stepper */
.stepper { flex: none; display: inline-flex; align-items: center; height: 52px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.stepper button { width: 44px; height: 100%; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--green); font-size: 20px; }
.stepper button:disabled { opacity: 0.3; cursor: default; }
.stepper span { min-width: 22px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.stepper-sm { height: 38px; }
.stepper[hidden] { display: none; }

/* DuitNow payment step */
.pay-amount { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.pay-amount span { color: var(--cocoa); }
.pay-amount strong { font-family: var(--display); font-size: 32px; font-weight: 500; }
.pay-steps { margin: 20px 0 0; padding: 0; list-style: none; counter-reset: pay; display: grid; gap: 22px; }
.pay-steps > li { counter-increment: pay; position: relative; padding-left: 40px; }
.pay-steps > li::before {
  content: counter(pay); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blush); color: var(--green); font-weight: 700; font-size: 14px;
}
.pay-step-title { margin: 3px 0 10px; font-weight: 600; }
.pay-qr { display: grid; justify-items: center; gap: 6px; padding: 16px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.pay-qr img { width: min(100%, 260px); height: auto; border-radius: 12px; }
.pay-bank { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; }
.pay-bank-title { margin: 0 0 8px; font-weight: 600; }
.pay-bank dl { margin: 0; display: grid; gap: 6px; }
.pay-bank dl > div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.pay-bank dt { color: var(--cocoa); }
.pay-bank dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }
#payBankAcc { font-variant-numeric: tabular-nums; letter-spacing: 0.03em; }
.pay-ref { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.pay-ref code { padding: 8px 14px; border-radius: 10px; background: var(--blush); font-size: 20px; font-weight: 700; letter-spacing: 0.06em; color: var(--green); }
.pay-agree { margin-top: 22px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 15px; line-height: 1.5; }
.check input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green); }
.privacy { margin-top: 14px; font-size: 14.5px; color: var(--cocoa); }
.privacy summary { cursor: pointer; font-weight: 600; color: var(--green); }
.privacy p { margin: 8px 0 0; line-height: 1.55; }
.pay-error { margin-top: 14px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn.is-busy { opacity: 0.7; pointer-events: none; }
.guests-input { max-width: 180px; font-variant-numeric: tabular-nums; }
.guest-total { margin: 2px 0 0; font-size: 15px; color: var(--cocoa); }
.guest-total strong { color: var(--green); }
.o-guests { font-size: 15px; font-weight: 600; }
.stepper-sm button { width: 36px; font-size: 18px; }

/* Form fields */
.fields { display: grid; gap: 18px; }
fieldset.fields { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset.fields + fieldset.fields { margin-top: 30px; }
legend { padding: 0; margin: 0 0 16px; font-family: var(--display); font-size: 22px; font-weight: 500; }
.field { display: grid; gap: 8px; min-width: 0; align-content: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label, .field .label { font-size: 15px; font-weight: 600; }
.field[hidden] { display: none; }
a.add { text-decoration: none; }
.product-types { margin-top: 6px; font-size: 14px; color: var(--cocoa); }
.pkg-types { margin: 22px 0 4px; }
.idea-type { padding: 0 16px; }
.opt { font-weight: 400; color: var(--cocoa); }
.input {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--line-strong); border-radius: 14px;
  background: var(--paper); color: var(--green-dark);
  font-size: 16px; line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none; appearance: none;
}
textarea.input { min-height: 84px; resize: vertical; }
select.input {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='18' height='18' fill='none' stroke='%232c5240' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.input[type="date"], .input[type="time"] { display: flex; align-items: center; }
.input::-webkit-date-and-time-value { text-align: left; }
.input::placeholder { color: rgba(122, 91, 78, 0.72); }
.input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(251, 178, 223, 0.6); }
.field.has-error .input { border-color: var(--error); }
.error { font-size: 14.5px; font-weight: 500; color: var(--error); }

/* Colour suggestions */
.ideas { display: flex; flex-wrap: wrap; gap: 8px; }
.idea {
  height: 38px; padding: 0 14px 0 10px;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--line-strong); border-radius: 999px; background: transparent;
  color: var(--green); font-size: 14.5px; font-weight: 500;
  transition: border-color 0.2s, background-color 0.2s;
}
.idea:hover { border-color: var(--green); }
.idea[aria-pressed="true"] { border-color: var(--green); background: var(--blush); }
.swatch { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); box-shadow: inset 0 0 0 1px rgba(23, 45, 35, 0.18); }

/* Order sheet */
.o-head { flex: none; position: relative; padding: 22px 22px 16px; border-bottom: 1px solid var(--line); }
.o-head h3 { padding-right: 56px; font-size: 28px; outline: none; }
.o-head .close-btn { top: 14px; right: 14px; background: var(--cream-deep); box-shadow: none; }
.o-progress {
  list-style: none; margin: 16px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  font-size: 13.5px; font-weight: 500; color: var(--cocoa);
}
.o-progress li { padding-top: 8px; border-top: 3px solid var(--line); }
.o-progress li.is-done { border-top-color: var(--pink); }
.o-progress li.is-current { border-top-color: var(--green); color: var(--green); font-weight: 700; }
.o-step { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.o-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 22px 28px; }
.o-items { list-style: none; margin: 0; padding: 0; }
.o-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.o-item img { width: 72px; height: 90px; border-radius: 12px; object-fit: cover; background: var(--cream-deep); }
.o-item h4 { font-size: 18px; line-height: 1.2; letter-spacing: 0; }
.o-item-meta { margin-top: 4px; font-size: 14.5px; color: var(--cocoa); overflow-wrap: anywhere; }
.o-item-actions { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.o-item-price { font-weight: 600; white-space: nowrap; }
.o-foot {
  flex: none; display: grid; gap: 12px;
  padding: 16px 22px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--paper);
}
.o-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.o-total span { font-size: 15px; font-weight: 500; }
.o-total strong { font-family: var(--display); font-size: 26px; font-weight: 500; }
.fine { font-size: 14px; line-height: 1.45; color: var(--cocoa); }
.fine:empty { display: none; }
.o-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.empty { display: grid; justify-items: center; gap: 10px; padding: 56px 8px; text-align: center; }
.empty-title { font-family: var(--display); font-size: 25px; }
.empty p:not(.empty-title) { max-width: 22em; color: var(--cocoa); }
.empty .btn { margin-top: 14px; }
.preview { margin-top: 28px; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.preview summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; list-style: none; cursor: pointer;
  font-size: 15px; font-weight: 600;
}
.preview summary::-webkit-details-marker { display: none; }
.preview summary::after {
  content: ""; width: 9px; height: 9px; flex: none;
  border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg) translateY(-3px); transition: transform 0.2s;
}
.preview[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.preview pre { margin: 0; padding: 0 16px 16px; white-space: pre-wrap; font-family: var(--text); font-size: 14px; line-height: 1.5; color: var(--green-dark); }
.done { flex: 1; overflow-y: auto; display: grid; align-content: center; justify-items: center; gap: 14px; padding: 28px 24px 36px; text-align: center; }
.done-garland { width: 240px; height: 124px; overflow: visible; margin-bottom: 6px; }
.done h4 { font-size: 30px; outline: none; }
.done p { max-width: 26em; color: var(--cocoa); }
.done-actions { display: grid; gap: 10px; width: 100%; max-width: 340px; margin-top: 12px; }
.done .fine { max-width: 26em; }
.copy-fallback { min-height: 170px; font-size: 14px; text-align: left; }

/* Lightbox */
.lightbox .backdrop { background: rgba(17, 33, 26, 0.95); }
.lb-stage { position: absolute; inset: 72px 92px; display: grid; place-items: center; outline: none; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 14px; }
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px; border-radius: 50%; border: 0;
  display: grid; place-items: center;
  background: rgba(255, 244, 230, 0.12); color: var(--cream);
  transition: background-color 0.2s, color 0.2s;
}
.lb-btn:hover { background: var(--pink); color: var(--green-dark); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lightbox .close-btn { top: 16px; right: 16px; }
.lb-count { position: absolute; top: 28px; left: 24px; font-size: 14.5px; color: rgba(255, 244, 230, 0.8); }
.lightbox :focus-visible { outline-color: var(--pink); }

/* ---------- Desktop and tablet layers ---------- */
@media (min-width: 761px) {
  .sheet-product {
    left: 50%; top: 50%; right: auto; bottom: auto;
    width: min(1000px, calc(100vw - 48px)); height: min(700px, calc(100vh - 48px)); max-height: none;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto;
    border-radius: 28px; opacity: 0;
    transform: translate(-50%, -47%) scale(0.98);
    transition: transform 0.4s var(--ease), opacity 0.3s;
  }
  .layer.is-open .sheet-product { opacity: 1; transform: translate(-50%, -50%); }
  .sheet-product .p-scroll { display: contents; }
  .sheet-product .p-media { grid-column: 1; grid-row: 1 / span 2; min-height: 0; }
  .sheet-product .p-slides { height: 100%; aspect-ratio: auto; }
  .sheet-product .p-body { grid-column: 2; grid-row: 1; overflow-y: auto; padding: 44px 40px 28px; }
  .sheet-product .p-foot { grid-column: 2; grid-row: 2; padding: 16px 40px 24px; }
  .sheet-order {
    left: auto; top: 0; right: 0; bottom: 0;
    width: min(460px, 100vw); max-height: none;
    border-radius: 28px 0 0 28px;
    transform: translateX(102%);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 52px; }
  .how-steps::before { display: none; }
}

@media (max-width: 920px) {
  .menu-btn {
    display: grid; place-items: center; align-content: center; gap: 6px;
    width: 46px; height: 46px; padding: 0; border-radius: 50%;
    border: 1.5px solid var(--line-strong); background: transparent;
  }
  .menu-btn span { width: 18px; height: 1.8px; border-radius: 2px; background: var(--green); transition: transform 0.25s var(--ease); }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.9px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.9px) rotate(-45deg); }
  .topbar-inner { gap: 10px; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 4px var(--gutter) 14px;
    background: var(--cream); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -30px rgba(23, 45, 35, 0.5);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav a { padding: 15px 0; font-size: 17px; border-bottom: 1px solid var(--line); text-decoration: none; }
  .nav a:last-child { border-bottom: 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-stage { order: -1; width: min(100%, 460px); margin-inline: auto; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .contact-icons { justify-content: flex-start; }
  .pkg { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .occ-head { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .occ-cover { order: -1; }
  .pkg-gallery { position: static; }
  .pkg-main { aspect-ratio: 4 / 4.4; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; --header-h: 62px; }
  body { font-size: 16px; }
  .brand { gap: 10px; }
  .brand .mono { font-size: 26px; padding-bottom: 7px; }
  .brand-name { font-size: 19px; }
  .order-btn { height: 44px; padding: 0 7px 0 13px; gap: 8px; }
  .order-btn-label { display: none; }
  .hero { padding: 16px 0 44px; }
  .hero-sub { margin-top: 18px; font-size: 17px; }
  .hero-actions { margin-top: 28px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .section { padding: 68px 0; }
  .section-head p { font-size: 16.5px; }
  .occasions { gap: 14px; margin: 30px calc(var(--gutter) * -1) 40px; padding: 4px var(--gutter) 8px; scroll-padding-inline: var(--gutter); }
  .occasion { width: 84px; gap: 8px; }
  .occasion-ring { width: 80px; height: 80px; padding: 4px; }
  .occasion-all .mono { font-size: 30px; padding-bottom: 8px; }
  .occasion-label { font-size: 13.5px; }
  .product-grid { gap: 40px 14px; }
  .product-media { border-radius: 16px; }
  .product-name { margin-top: 12px; font-size: 18px; }
  .product-desc { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .product-foot { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 12px; }
  .product-price { font-size: 15px; }
  .add { width: 100%; height: 42px; min-width: 0; }
  .in-order { left: 8px; top: 8px; padding: 5px 10px; font-size: 12px; }
  .package-view { padding: 16px 0 72px; }
  .crumbs { margin-bottom: 18px; }
  .pkg-main { border-radius: 18px; }
  .pkg-thumbs button { width: 64px; height: 78px; }
  .pkg-desc { font-size: 16.5px; }
  .occ-intro { font-size: 17px; }
  .occ-cover { border-radius: 18px; }
  .related { margin-top: 72px; }
  .related h2 { margin-bottom: 26px; }
  .related .product:nth-child(n + 3) { display: none; }
  .how-steps { grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 44px; }
  .how-steps::before { display: block; left: 23px; right: auto; top: 24px; bottom: 24px; border-top: 0; border-left: 2px dotted rgba(29, 58, 45, 0.45); }
  .how-steps li { min-height: 48px; padding-left: 70px; }
  .how-num { position: absolute; left: 0; top: 0; }
  .how-steps h3 { margin-top: 9px; font-size: 22px; }
  .work-head { align-items: flex-start; }
  .strip-nav { display: none; }
  .strip { margin-top: 28px; gap: 12px; }
  .strip-item { height: 360px; border-radius: 16px; }
  .contact-icons { gap: 12px; }
  .contact-icon { width: 56px; height: 56px; }
  .contact-icon svg { width: 26px; height: 26px; }
  .footer-grid { flex-direction: column; gap: 4px; text-align: center; }
  .footer-logo { margin: -10px auto -14px; }
  body.has-bar .footer { padding-bottom: 120px; }

  .order-bar {
    position: fixed; z-index: 50; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 10px 10px 18px; border-radius: 22px;
    background: var(--green); color: var(--cream);
    box-shadow: 0 18px 40px -18px rgba(23, 45, 35, 0.75);
    transform: translateY(calc(100% + 28px)); transition: transform 0.4s var(--ease);
  }
  .order-bar.is-visible { transform: none; }
  .order-bar-text { display: grid; line-height: 1.3; }
  .order-bar-text strong { font-size: 16px; }
  .order-bar-text span { font-size: 14px; color: rgba(255, 244, 230, 0.8); }
  .order-bar .btn { flex: none; min-height: 46px; padding: 0 20px; white-space: nowrap; }

  .toast { top: calc(var(--header-h) + 10px + env(safe-area-inset-top, 0px)); bottom: auto; width: calc(100% - 24px); justify-content: space-between; transform: translate(-50%, -12px); }
  .toast.is-shown { transform: translate(-50%, 0); }

  .lb-stage { inset: 64px 12px 100px; }
  .lb-btn { top: auto; bottom: 28px; transform: none; }
  .lb-prev { left: calc(50% - 68px); }
  .lb-next { right: calc(50% - 68px); }
}

@media (max-width: 380px) {
  .brand-name { font-size: 17px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
}
