/* =====================================================================
   Hey Halwai - site.css (Builder B)
   Order: tokens -> site -> motion. Mobile-first: base = 390px,
   then (min-width:768px) and (min-width:1200px). One extra step at 1024px for the header nav.
   Sections: 1 base · 2 layout · 3 components (btn, stamp, postmark, chips, eyebrow)
             4 header+menu · 5 hero · 6 marquee · 7 mithai · 8 baklava · 9 boxes
             10 gifting · 11 wholesale · 12 insta · 13 enquire/form · 14 footer
             15 corporate page · 16 404 · 17 utilities / reduced motion
   Never hides content waiting for JS. Nothing here animates under prefers-reduced-motion.
   ===================================================================== */

/* ---------- 1. base ---------- */
:root {
  --pistachio: #9DBB6B;                 /* read by HH.celebrate() */
  --header-h: 64px;                     /* the cream bar */
  --ticker-h: 36px;                     /* "Taaza Khabar" strip above it */
  --top-h: calc(var(--ticker-h) + var(--header-h));
  --font-deva: "Rozha One", "Noto Serif Devanagari", "Mangal", serif;   /* decorative accents only */
  --foil: linear-gradient(110deg, color-mix(in srgb, var(--gold) 70%, var(--brown)) 0%, var(--gold-light) 22%, var(--gold) 40%, color-mix(in srgb, var(--gold-light) 55%, var(--cream)) 55%, var(--gold) 72%, color-mix(in srgb, var(--gold) 70%, var(--brown)) 100%);
  --container-wide: 84rem;
  --frame: color-mix(in srgb, var(--white) 72%, var(--cream));   /* stamp paper */
  --hairline: rgba(201, 160, 74, .6);   /* gold rule on light */
  --hairline-dark: rgba(224, 187, 109, .45);
  --ink-soft: rgba(34, 21, 15, .5);
  --lux: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
  accent-color: var(--magenta);
  scrollbar-color: var(--gold) var(--paper);
}
@media (min-width: 1024px) { :root { --header-h: 76px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--top-h); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font: 400 var(--step-0)/var(--leading-body) var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  font-optical-sizing: auto;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  hanging-punctuation: first;
  min-width: 320px;
}
main { display: block; overflow-x: clip; }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
figure, ul, ol, dl, dd, p, h1, h2, h3, h4 { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--magenta); color: var(--white); }
.on-dark ::selection { background: var(--marigold); color: var(--ink); }
a, button, label, select, [role="button"] { -webkit-tap-highlight-color: rgba(215, 1, 133, .16); touch-action: manipulation; }
.on-dark a, .on-dark button, .on-dark [role="button"] { -webkit-tap-highlight-color: rgba(255, 190, 0, .22); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -.028em;
  line-height: var(--leading-tight);
  text-wrap: balance;
}
h1 em, h2 em, h3 em { font-style: italic; font-weight: 400; letter-spacing: -.02em; }
p, li, figcaption { text-wrap: pretty; }
.lede, .hero-lede, .gifting-pitch, .mf-line, .footer-brand .tag { text-wrap: balance; }
.step-no { font-variant-numeric: lining-nums; }

:focus-visible { outline: 2px dashed var(--magenta-deep); outline-offset: 4px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--marigold); }

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 200;
  background: var(--ink); color: var(--cream); padding: .75rem 1.25rem; min-height: 44px;
  display: inline-flex; align-items: center; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 1rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- 2. layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.wrap-wide { width: min(100% - 2 * var(--gutter), var(--container-wide)); margin-inline: auto; }
.section { position: relative; padding-block: clamp(3.25rem, 2rem + 6vw, 9rem); }
.band-paper { background: var(--paper); }
.on-dark { color: var(--cream); }

.h2 { font-size: var(--step-4); }
.lede { font-size: var(--step-1); line-height: 1.5; max-width: 44ch; color: var(--text-muted); }
.on-dark .lede { color: rgba(255, 248, 236, .86); }
.section-head { display: grid; gap: var(--space-s); margin-bottom: var(--space-xl); }
.section-head .h2 { max-width: 13ch; }

/* ---------- 3. components ---------- */
.eyebrow {
  font: 600 .75rem/1.2 var(--font-body);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent-text);
}
.on-dark .eyebrow { color: var(--gold-light); }
.hero .eyebrow, .nf .eyebrow { color: var(--marigold-soft); }

/* buttons: a mithai-shop family. Primary and WhatsApp are perforated stamp labels with a gold hairline
   (the perforation sits on ::before, so the focus ring is never masked); secondary is a gold-foil-bordered label. */
.btn {
  --pr: 3px; --pd: 11px;                                  /* perforation radius / spacing */
  --face: var(--magenta); --face-hover: var(--magenta-deep);
  --btn-fill: var(--cream); --btn-fill-hover: var(--paper);
  position: relative; isolation: isolate; top: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 3rem; padding: .85rem 1.7rem;
  border: 0; border-radius: 0; background: transparent; color: var(--white);
  font: 600 .8125rem/1 var(--font-body);
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none; text-align: center;
  transition: color .35s var(--lux), top .25s var(--lux);
}
.btn svg { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }
.btn-whatsapp { --face: var(--teal-deep); --face-hover: var(--ink); color: var(--cream); }
.btn-primary::before, .btn-whatsapp::before, .ticker-label::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-color: var(--face);
  background-image: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .34) 50%, transparent 62%);
  background-repeat: no-repeat; background-size: 55% 100%; background-position: -120% 0;
  -webkit-mask:
    linear-gradient(#000 0 0) 50% 50% / calc(100% - 2 * var(--pr)) calc(100% - 2 * var(--pr)) no-repeat,
    radial-gradient(circle at 50% 0, #0000 calc(var(--pr) - .5px), #000 var(--pr)) 0 0 / var(--pd) var(--pr) round no-repeat,
    radial-gradient(circle at 50% 100%, #0000 calc(var(--pr) - .5px), #000 var(--pr)) 0 100% / var(--pd) var(--pr) round no-repeat,
    radial-gradient(circle at 0 50%, #0000 calc(var(--pr) - .5px), #000 var(--pr)) 0 0 / var(--pr) var(--pd) no-repeat round,
    radial-gradient(circle at 100% 50%, #0000 calc(var(--pr) - .5px), #000 var(--pr)) 100% 0 / var(--pr) var(--pd) no-repeat round;
  mask:
    linear-gradient(#000 0 0) 50% 50% / calc(100% - 2 * var(--pr)) calc(100% - 2 * var(--pr)) no-repeat,
    radial-gradient(circle at 50% 0, #0000 calc(var(--pr) - .5px), #000 var(--pr)) 0 0 / var(--pd) var(--pr) round no-repeat,
    radial-gradient(circle at 50% 100%, #0000 calc(var(--pr) - .5px), #000 var(--pr)) 0 100% / var(--pd) var(--pr) round no-repeat,
    radial-gradient(circle at 0 50%, #0000 calc(var(--pr) - .5px), #000 var(--pr)) 0 0 / var(--pr) var(--pd) no-repeat round,
    radial-gradient(circle at 100% 50%, #0000 calc(var(--pr) - .5px), #000 var(--pr)) 100% 0 / var(--pr) var(--pd) no-repeat round;
  transition: background-position .9s var(--lux), background-color .35s var(--lux), transform .2s var(--lux);
}
.btn-primary::after, .btn-whatsapp::after {
  content: ""; position: absolute; inset: 4px; z-index: -1; pointer-events: none;
  border: 1px solid rgba(224, 187, 109, .85); transition: transform .2s var(--lux);
}
.btn-primary:hover::before, .btn-primary:focus-visible::before,
.btn-whatsapp:hover::before, .btn-whatsapp:focus-visible::before { background-color: var(--face-hover); background-position: 220% 0; }
.btn:hover { top: -1px; }
.btn:active { top: 1px; }
.btn:active::before, .btn:active::after { transform: scale(.97); }
.btn-outline, .btn-outline-light {
  border: 1.5px solid transparent; padding: calc(.85rem - 1.5px) calc(1.7rem - 1.5px);
  background: linear-gradient(var(--btn-fill), var(--btn-fill)) padding-box, var(--foil) border-box;
  background-size: 100% 100%, 260% 100%; background-position: 0 0, 0 0; background-repeat: no-repeat;
  transition: background-position .9s var(--lux), color .35s var(--lux), top .25s var(--lux);
}
.btn-outline { color: var(--ink); }
.btn-outline-light { color: var(--cream); --btn-fill: var(--teal); --btn-fill-hover: var(--cream); }
.btn-outline:hover, .btn-outline:focus-visible, .btn-outline-light:hover, .btn-outline-light:focus-visible {
  --btn-fill: var(--btn-fill-hover); background-position: 0 0, 100% 0;
}
.btn-outline-light:hover, .btn-outline-light:focus-visible { color: var(--teal-deep); }
.gifting .btn-outline-light { --btn-fill: var(--teal-deep); }
#baklava .btn, #wholesale .btn, #enquire .btn, .band-paper .btn { --btn-fill: var(--paper); --btn-fill-hover: var(--cream); }
.btn[disabled] { opacity: .65; cursor: progress; }

/* arrow link */
.link-line {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 44px;
  font: 600 .8125rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid var(--gold); padding-block: .25rem;
}
.link-line:hover { border-bottom-color: currentColor; }

/* THE POSTAGE STAMP: wrapper carries tilt + shadow, .stamp-frame carries the perforation mask */
.stamp {
  --tilt: 0deg; --ar: 1/1;
  position: relative;
  transform: rotate(var(--tilt));
  filter: drop-shadow(0 .35rem .45rem rgba(34, 21, 15, .2)) drop-shadow(0 1px 1px rgba(34, 21, 15, .22));
}
.stamp-frame {
  --r: 4px; --d: 14px;
  padding: 10px;
  background: var(--frame);
  -webkit-mask:
    linear-gradient(#000 0 0) 50% 50% / calc(100% - 2 * var(--r)) calc(100% - 2 * var(--r)) no-repeat,
    radial-gradient(circle at 50% 0, #0000 calc(var(--r) - .5px), #000 var(--r)) 0 0 / var(--d) var(--r) round no-repeat,
    radial-gradient(circle at 50% 100%, #0000 calc(var(--r) - .5px), #000 var(--r)) 0 100% / var(--d) var(--r) round no-repeat,
    radial-gradient(circle at 0 50%, #0000 calc(var(--r) - .5px), #000 var(--r)) 0 0 / var(--r) var(--d) no-repeat round,
    radial-gradient(circle at 100% 50%, #0000 calc(var(--r) - .5px), #000 var(--r)) 100% 0 / var(--r) var(--d) no-repeat round;
  mask:
    linear-gradient(#000 0 0) 50% 50% / calc(100% - 2 * var(--r)) calc(100% - 2 * var(--r)) no-repeat,
    radial-gradient(circle at 50% 0, #0000 calc(var(--r) - .5px), #000 var(--r)) 0 0 / var(--d) var(--r) round no-repeat,
    radial-gradient(circle at 50% 100%, #0000 calc(var(--r) - .5px), #000 var(--r)) 0 100% / var(--d) var(--r) round no-repeat,
    radial-gradient(circle at 0 50%, #0000 calc(var(--r) - .5px), #000 var(--r)) 0 0 / var(--r) var(--d) no-repeat round,
    radial-gradient(circle at 100% 50%, #0000 calc(var(--r) - .5px), #000 var(--r)) 100% 0 / var(--r) var(--d) no-repeat round;
}
.stamp-r { transform: rotate(var(--tilt-m)); }
.stamp-media { position: relative; aspect-ratio: var(--ar); overflow: hidden; background: var(--paper); }
.stamp-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.stamp-media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(34, 21, 15, .16); pointer-events: none; z-index: 2; }
figure.stamp[data-lid] { cursor: pointer; }
figure.stamp[data-lid]:focus-visible { outline-offset: 10px; }
.lid-open { opacity: 0; }
figure.stamp.is-open { filter: drop-shadow(0 .8rem .8rem rgba(34, 21, 15, .26)) drop-shadow(0 1px 1px rgba(34, 21, 15, .22)); }
@media (min-width: 768px) {
  .stamp-frame { --r: 5px; --d: 18px; padding: 12px; }
  .stamp-r { transform: rotate(var(--tilt)); }
  .stamp { filter: drop-shadow(0 .9rem 1.1rem rgba(34, 21, 15, .2)) drop-shadow(0 1px 1px rgba(34, 21, 15, .22)); }
  figure.stamp.is-open { filter: drop-shadow(0 1.6rem 1.6rem rgba(34, 21, 15, .26)) drop-shadow(0 1px 1px rgba(34, 21, 15, .22)); }
}

/* hairline-framed photo (full bleed, gold mat line) */
.hair { --ar: 1/1; position: relative; aspect-ratio: var(--ar); overflow: hidden; outline: 1px solid var(--gold); outline-offset: 7px; background: var(--paper); }
.hair img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.hair::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255, 248, 236, .75); pointer-events: none; }

/* the postmark: circular cancellation with wavy lines (inline SVG) */
.postmark {
  position: absolute; display: block; width: var(--pm, 5.25rem); aspect-ratio: 1;
  color: var(--magenta); mix-blend-mode: multiply; pointer-events: none; z-index: 3;
  transform: rotate(var(--pm-rot, -14deg));
}
.postmark svg { width: 100%; height: 100%; overflow: visible; }

/* size chips: kaju katli diamonds with a silver-vark face, scaled by weight */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .4rem; }
.chip {
  --s: 4rem;
  position: relative; isolation: isolate; display: grid; place-items: center;
  width: var(--s); aspect-ratio: 1;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: linear-gradient(135deg, #D9DCDB, #A9AFB0 48%, #D6D9D8 62%, #9CA3A4);
  font: 400 .95rem/1 var(--font-serif); letter-spacing: -.01em; color: var(--ink);
}
.chip::before {
  content: ""; position: absolute; inset: 3px; z-index: -1;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: url(/images/brand/grain.png) 0 0 / 120px, linear-gradient(145deg, #F7F8F6, #D3D8D7 55%, #EEF0EE);
}
.chip::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .8) 50%, transparent 60%) no-repeat -130% 0 / 60% 100%;
  transition: background-position 1s var(--lux);
}
.chip:hover::after { background-position: 230% 0; }
.chip:nth-child(2) { --s: 4.6rem; }
.chip:nth-child(3) { --s: 5.2rem; }
.chip:nth-child(4) { --s: 5.8rem; }
@media (min-width: 768px) {
  .chip { --s: 5rem; font-size: 1.05rem; }
  .chip:nth-child(2) { --s: 5.8rem; }
  .chip:nth-child(3) { --s: 6.6rem; }
  .chip:nth-child(4) { --s: 7.4rem; }
}

/* ---------- 4. top bar: ticker + awning header + menu ---------- */
#top { position: fixed; inset: 0 0 auto 0; z-index: 100; }

/* "Taaza Khabar" news ticker; the marquee engine drives .marquee-track */
.ticker {
  display: flex; align-items: center; gap: .75rem; height: var(--ticker-h);
  padding-left: var(--gutter); background: var(--teal-ink); color: var(--cream); overflow: hidden;
  transition: height .45s var(--lux);
}
#top.is-scrolled .ticker { height: 0; }
.ticker-label {
  --face: var(--magenta); --pr: 2.5px; --pd: 9px;
  position: relative; isolation: isolate; flex: none; display: inline-flex; align-items: center;
  height: 1.5rem; padding: 0 .75rem; font: 400 .9rem/1 var(--font-deva); color: var(--white);
}
.ticker-run { flex: 1; min-width: 0; align-self: stretch; display: flex; align-items: center; }
html .ticker .marquee-track { flex-wrap: nowrap; justify-content: flex-start; padding-inline: 0; }
.ticker .marquee-item {
  padding-block: .5rem; color: var(--cream); text-decoration: none;
  font: 600 .75rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
}
.ticker .marquee-item::after { margin-inline: 1.25rem; }
.ticker .marquee-item:hover { color: var(--marigold-soft); }
/* static states (no JS, reduced motion): the first notice only, wrapped to fit the strip */
html:not(.js-motion) .ticker .marquee-item:not(:first-child),
html.js-motion .ticker [data-marquee].is-static .marquee-item:not(:first-child) { display: none; }
html:not(.js-motion) .ticker .marquee-item,
html.js-motion .ticker [data-marquee].is-static .marquee-item { white-space: normal; line-height: 1.15; padding-block: 0; }
html:not(.js-motion) .ticker .marquee-item::after,
html.js-motion .ticker [data-marquee].is-static .marquee-item::after { display: none; }
html.js-motion .ticker [data-marquee].is-static .marquee-track { justify-content: flex-start !important; padding-inline: 0; }
@media (prefers-reduced-motion: reduce) {
  .ticker .marquee-item:not(:first-child) { display: none; }
  .ticker .marquee-item { white-space: normal; line-height: 1.15; padding-block: 0; }
  .ticker .marquee-item::after { display: none; }
}

/* header: cream bar, shop-awning scalloped edge, badge hanging over it like a shop sign */
.header-bar { position: relative; height: var(--header-h); background: var(--cream); transition: height .4s var(--lux); }
#top.is-scrolled .header-bar { height: calc(var(--header-h) - 8px); }
.header-bar::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; pointer-events: none;
  background: radial-gradient(circle at 50% 0, var(--teal) 10.4px, var(--gold) 11.2px 12.4px, transparent 13.3px) 0 0 / 28px 14px repeat-x;
  transition: opacity .3s var(--lux);
}
#top.is-hidden .header-bar::after { opacity: 0; }
.header-piping { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 1; }
.header-in { height: 100%; width: min(100% - 2 * var(--gutter), var(--container-wide)); margin-inline: auto; display: flex; align-items: center; gap: .35rem; }
.brand { position: relative; display: flex; align-items: center; gap: .6rem; min-height: 44px; margin-right: auto; text-decoration: none; }
.brand-stamp {
  position: relative; top: 12px; z-index: 2; width: 46px; height: auto; transform: rotate(-4deg);
  filter: drop-shadow(0 4px 5px rgba(34, 21, 15, .3));
  transition: width .4s var(--lux), top .4s var(--lux);
}
.brand-word { width: 96px; height: auto; }
#top.is-scrolled .brand-stamp { width: 36px; top: 8px; }
.site-nav { display: none; }
.header-actions { display: flex; align-items: center; gap: .35rem; }
.header-actions .btn { --pr: 2.5px; --pd: 9px; min-height: 2.75rem; padding: .6rem 1.05rem; font-size: .75rem; }
@media (max-width: 399px) { .header-actions .icon-btn:not(.menu-btn) { display: none; } }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border: 0; background: transparent; color: var(--teal-deep); border-radius: 50%;
  transition: background-color .35s var(--lux), color .35s var(--lux);
}
.icon-btn:hover { background: rgba(39, 100, 103, .1); }
.icon-btn svg { width: 1.5rem; height: 1.5rem; fill: currentColor; }
.wa-btn { border: 1.5px solid transparent; background: linear-gradient(var(--cream), var(--cream)) padding-box, var(--foil) border-box; }
.wa-btn:hover { background: linear-gradient(var(--cream), var(--cream)) padding-box, var(--foil) border-box; color: var(--magenta-deep); }
/* menu icon: two short lines and a tiny gold diamond (a kaju katli); becomes an x */
.menu-btn .bars { position: relative; width: 24px; height: 16px; }
.menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; height: 1.5px; background: var(--ink); transition: transform .45s var(--lux), top .45s var(--lux), width .45s var(--lux); }
.menu-btn .bars::before { top: 3px; width: 24px; }
.menu-btn .bars::after { top: 11px; width: 14px; }
.menu-btn .bars i { position: absolute; right: 0; top: 8.5px; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); transition: transform .45s var(--lux), opacity .3s var(--lux); }
.menu-btn[aria-expanded="true"] .bars::before { top: 7px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { top: 7px; width: 24px; transform: rotate(-45deg); }
.menu-btn[aria-expanded="true"] .bars i { opacity: 0; transform: rotate(45deg) scale(0); }

@media (min-width: 1024px) {
  .header-in { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; }
  .brand { margin-right: 0; justify-self: start; }
  .brand-stamp { width: 54px; top: 14px; }
  #top.is-scrolled .brand-stamp { width: 42px; top: 10px; }
  .brand-word { width: 118px; }
  .site-nav { display: block; justify-self: center; }
  .site-nav ul { display: flex; gap: 1.8rem; }
  .site-nav a {
    display: inline-flex; align-items: center; min-height: 44px; position: relative;
    font: 600 .75rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  }
  .site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .55rem; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--lux); }
  .site-nav a:hover::after, .site-nav a:focus-visible::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .header-actions { justify-self: end; }
  .header-actions .btn { padding-inline: 1.4rem; }
  .menu-btn { display: none; }
}

/* full-screen menu: teal with the pattern veil, big serif links over faint gold Devanagari */
.menu {
  --tile-w: 320px; --tile-h: 266px;
  position: fixed; inset: 0; z-index: 90; color: var(--cream);
  background-color: var(--teal);
  background-image: linear-gradient(rgba(39, 100, 103, .9), rgba(39, 100, 103, .9)), url(/images/brand/pattern-tile.webp);
  background-size: auto, var(--tile-w) var(--tile-h);
  padding: calc(var(--top-h) + 1rem) var(--gutter) 2rem;
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem;
  visibility: hidden; opacity: 0; overflow-y: auto;
  transition: opacity .4s var(--lux), visibility 0s linear .4s;
}
.menu.is-open { visibility: visible; opacity: 1; transition: opacity .4s var(--lux); }
.menu-list { border-top: 1px solid var(--hairline-dark); }
.menu-list li { position: relative; overflow: hidden; border-bottom: 1px solid var(--hairline-dark); }
.menu-list a {
  position: relative; display: flex; align-items: center; min-height: 3.9rem; padding-block: .4rem;
  font: 400 clamp(2.2rem, 10.5vw, 3.4rem)/1.05 var(--font-serif); letter-spacing: -.03em; text-decoration: none; color: var(--cream);
  transition: color .35s var(--lux);
}
.menu-label { position: relative; z-index: 1; }
.menu-list a:hover { color: var(--marigold-soft); }
.menu-list a[aria-current="page"] .menu-label { text-decoration: underline; text-decoration-color: var(--gold-light); text-underline-offset: .18em; }
.menu-foot { display: grid; gap: .75rem; }
.menu-foot .btn { width: 100%; }
.menu-foot .btn-whatsapp { --face: var(--teal-ink); }
.menu-contact { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-top: .5rem; }
.menu-meta { display: grid; font-size: var(--step--1); color: rgba(255, 248, 236, .88); }
.menu-meta a { display: inline-flex; align-items: center; min-height: 44px; text-decoration-color: var(--gold-light); }
.menu-meta a:hover { text-decoration-color: currentColor; }
.menu-mascot { flex: none; width: 6.5rem; height: auto; transform-origin: 50% 100%; }
html.menu-open { overflow: hidden; }
@media (min-width: 1024px) { .menu { display: none; } }

/* ---------- 5. hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--teal); color: var(--cream);
  padding-top: calc(var(--top-h) + 1.75rem);
}
.hero-pattern, .site-footer { --tile-w: 320px; --tile-h: 266px; }   /* 800x665 tile; main.js reads these for the drift */
.hero-pattern { position: absolute; inset: 0; z-index: -2; background: url(/images/brand/pattern-tile.webp) 0 0 / var(--tile-w) var(--tile-h) repeat; }
.hero-veil { position: absolute; inset: 0; z-index: -1; background: rgba(39, 100, 103, .84); }
.hero-inner {
  width: min(100% - 2 * var(--gutter), var(--container-wide)); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "eyebrow" "title" "media" "lede" "actions";
  padding-bottom: var(--space-xl);
}
.hero-eyebrow { grid-area: eyebrow; margin-bottom: var(--space-s); }
.hero h1 {
  grid-area: title; color: var(--cream);
  font-size: clamp(2.9rem, 13.5vw, 4.2rem); letter-spacing: -.035em; line-height: .98;
  margin-bottom: var(--space-s);
}
.hero h1 em { display: block; color: var(--marigold-soft); }
.hero-media { grid-area: media; position: relative; margin: var(--space-s) 0 var(--space-l); }
.hero-media::before {
  content: ""; position: absolute; inset: -.9rem -.6rem .9rem 1.4rem; border: 1px solid var(--hairline-dark); z-index: 0;
}
.hero-media .stamp { z-index: 1; }
.hero-badge {
  position: absolute; z-index: 4; left: 0; bottom: -1.6rem; width: clamp(5.5rem, 27vw, 7.5rem);
  transform: rotate(-6deg); filter: drop-shadow(0 .6rem .8rem rgba(18, 54, 56, .45));
}
.hero-badge img { width: 100%; height: auto; }
.hero-lede { grid-area: lede; max-width: 34ch; font-size: var(--step-1); line-height: 1.5; color: rgba(255, 248, 236, .88); }
.hero-actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--space-m); }
.hero-actions .btn { flex: 1 1 14rem; }
.hero-meta { border-top: 1px solid var(--hairline-dark); }
.hero-meta ul {
  width: min(100% - 2 * var(--gutter), var(--container-wide)); margin-inline: auto;
  display: flex; flex-wrap: wrap; gap: .25rem 0; padding-block: 1rem;
  font: 600 .75rem/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--marigold-soft);
}
.hero-meta li { display: inline-flex; align-items: center; min-height: 1.75rem; }
.hero-meta li + li::before, .marquee-item::after, .diamond::before {
  content: ""; width: .4rem; height: .4rem; background: currentColor; transform: rotate(45deg); flex: none;
}
.hero-meta li + li::before { margin-inline: 1rem; }

@media (min-width: 768px) {
  .hero { padding-top: calc(var(--top-h) + 3rem); }
  .hero-pattern, .site-footer { --tile-w: 480px; --tile-h: 399px; }
  .hero-inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); column-gap: clamp(2rem, 5vw, 5rem);
    grid-template-areas: "eyebrow media" "title media" "lede media" "actions media";
    grid-template-rows: auto auto auto 1fr; align-content: center;
    padding-bottom: var(--space-2xl);
    min-height: min(46rem, calc(100svh - var(--top-h) - 6rem));
  }
  .hero h1 { font-size: clamp(3.6rem, 7.2vw, 7.2rem); margin-bottom: var(--space-m); }
  .hero-media { align-self: center; grid-row: 1 / -1; margin: 0; padding-left: 12%; max-width: 36rem; justify-self: end; width: 100%; }
  .hero-media::before { inset: -1.4rem -1.1rem 1.4rem 2.6rem; }
  .hero-badge { width: clamp(8rem, 13vw, 11.5rem); bottom: -2.2rem; left: -.5rem; }
  .hero-actions .btn { flex: 0 0 auto; }
  .hero-meta ul { font-size: .75rem; }
}

/* ---------- 6. marquee ---------- */
.marquee { background: var(--teal-deep); color: var(--cream); border-bottom: 1px solid var(--hairline-dark); padding-block: 1.1rem; overflow: hidden; }
.marquee-track { display: flex; align-items: center; width: max-content; }
.marquee-item {
  display: inline-flex; align-items: center; white-space: nowrap;
  font: italic 400 var(--step-2)/1.2 var(--font-serif); letter-spacing: -.01em;
}
.marquee-item::after { margin-inline: 1.75rem; color: var(--gold-light); }
html:not(.js-motion) .marquee-track { width: auto; flex-wrap: wrap; justify-content: center; row-gap: .35rem; padding-inline: var(--gutter); }
html:not(.js-motion) .marquee-item:nth-child(n+9) { display: none; }
html.js-motion [data-marquee].is-static .marquee-track { width: auto !important; flex-wrap: wrap !important; justify-content: center; row-gap: .35rem; padding-inline: var(--gutter); }
[data-marquee].is-static .marquee-item[aria-hidden="true"] { display: none; }

/* ---------- 7. mithai: specimen catalogue ---------- */
.mithai-head { margin-bottom: var(--space-xl); }
.specimen-list { display: grid; gap: var(--space-xl); }
.spec { width: 72%; }
.spec:nth-child(even) { margin-left: auto; }
.spec-art { position: relative; isolation: isolate; display: block; }
.spec-art img { display: block; width: 100%; height: auto; }
/* soft, warm contact shadow under each cut-out (an ellipse, not a box-shadow); grows and softens when lifted */
.spec-art::after {
  content: ""; position: absolute; z-index: -1; left: 12%; right: 12%; bottom: 1%; height: 11%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(48, 26, 12, .42), rgba(48, 26, 12, 0));
  transform: scale(calc(1 + var(--float-lift, 0) * .14), calc(1 + var(--float-lift, 0) * .35));
  opacity: calc(1 - var(--float-lift, 0) * .18);
}
.spec-art.is-lifted::after { filter: blur(3px); }
/* natural-history plate caption: gold hairline, small-caps plate line, serif name */
.spec-cap { position: relative; margin-top: var(--space-s); }
.spec-cap::before { content: ""; display: block; width: 3rem; height: 1px; margin-bottom: .75rem; background: var(--gold); }
.plate { display: block; font: 600 .75rem/1.3 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); }
.spec-cap h3 { margin-top: .35rem; font-size: var(--step-2); letter-spacing: -.02em; line-height: 1.1; }
.spec-cap p { margin-top: .4rem; max-width: 30ch; font-size: var(--step--1); line-height: 1.55; color: var(--text-muted); }

/* two full-bleed graded photographs as atmosphere */
.atmo { position: relative; margin-top: var(--space-2xl); }
.atmo-frame { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--paper); }
.atmo-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.atmo-frame::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255, 248, 236, .7); pointer-events: none; }
.atmo-card { position: relative; z-index: 2; margin: -2.5rem var(--gutter) 0; padding: 1.5rem 1.4rem 1.6rem; background: var(--teal-deep); color: var(--cream); }
.atmo-card .eyebrow { color: var(--gold-light); }
.atmo-card h3 { margin-block: var(--space-xs); font-size: var(--step-3); }
.mf-line { font: italic 400 var(--step-1)/1.3 var(--font-serif); letter-spacing: -.01em; color: var(--cream); }
.atmo-card .postmark { color: var(--gold-light); mix-blend-mode: normal; }

@media (min-width: 768px) {
  .mithai-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: var(--space-l); }
  .specimen-list { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-m); row-gap: var(--space-2xl); align-items: start; }
  .spec, .spec:nth-child(even) { width: auto; margin-left: 0; }
  .spec-1 { grid-column: 1 / 6; }
  .spec-2 { grid-column: 7 / 10; margin-top: 6rem; }
  .spec-3 { grid-column: 10 / 13; margin-top: 1rem; }
  .spec-4 { grid-column: 1 / 5; }
  .spec-5 { grid-column: 5 / 10; margin-top: 3rem; }
  .spec-6 { grid-column: 10 / 13; margin-top: 7rem; }
  .atmo--box { margin-top: var(--space-3xl); }
  .atmo--mix { margin-top: var(--space-m); }
  .atmo-frame { aspect-ratio: 21 / 9; }
  .atmo-card { position: absolute; left: max(var(--gutter), calc((100% - var(--container-wide)) / 2)); bottom: 2.5rem; width: min(26rem, 38%); margin: 0; }
}
@media (min-width: 1200px) {
  .spec-1 figure, .spec-5 figure { display: grid; grid-template-columns: minmax(0, 1fr) 11rem; column-gap: 1.25rem; align-items: end; }
  .spec-1 .spec-cap, .spec-5 .spec-cap { margin-top: 0; padding-left: 1rem; }
  .spec-1 .spec-cap::before, .spec-5 .spec-cap::before { position: absolute; left: 0; top: 0; bottom: 0; width: 1px; height: auto; margin: 0; }
}

/* ---------- 8. baklava ---------- */
#baklava { background: var(--paper); }
.baklava-grid { display: block; }
.baklava-media {
  position: relative; overflow: hidden; aspect-ratio: 5/6; background: var(--teal-ink);
}
.baklava-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 68%; }   /* subject sits in the lower half of the tall source */
.baklava-media::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255, 248, 236, .6); pointer-events: none; }
.baklava-text { padding-top: var(--space-xl); }
.baklava-line { padding-block: var(--space-l); border-top: 1px solid var(--hairline); display: grid; gap: var(--space-s); align-content: center; }
.baklava-line:first-child { border-top: 0; padding-top: 0; }
.baklava-line h2 { font-size: var(--step-5); letter-spacing: -.04em; }
.bk-big { font-size: var(--step-4); letter-spacing: -.035em; max-width: 11ch; }
.bk-sm { font-size: var(--step-3); max-width: 16ch; }
.bk-note { font-size: var(--step-0); color: var(--text-muted); max-width: 34ch; }
.bk-note strong { color: var(--ink); font-weight: 600; }
.bk-shots { display: grid; gap: var(--space-m); margin-top: var(--space-xs); }
.bk-one { margin-top: var(--space-xs); }
.baklava-line .stamp-media { aspect-ratio: 1/1; }          /* phones: full-width stamps, kept short */
.baklava-line .bk-wide .stamp-media { aspect-ratio: 3/2; }

@media (min-width: 768px) {
  .baklava-grid { display: flex; gap: clamp(2rem, 6vw, 6rem); align-items: flex-start; }
  .baklava-media { flex: 0 0 min(42%, 36rem); aspect-ratio: 4/5; max-height: calc(100svh - var(--header-h, 76px) - 3rem); }
  .baklava-text { flex: 1; padding-top: 0; min-width: 0; }
  .baklava-line { min-height: 72svh; padding-block: var(--space-xl); }
  .baklava-line:first-child { padding-top: var(--space-xl); }
  .bk-one { width: min(60%, 15rem); }
  .bk-shots { display: flex; gap: var(--space-m); align-items: flex-start; }
  .bk-shots .stamp { width: min(48%, 13rem); }
  .bk-shots .stamp:nth-child(2) { margin-top: 2rem; }
  .baklava-line .stamp-media, .baklava-line .bk-wide .stamp-media { aspect-ratio: var(--ar); }
}

/* ---------- 9. boxes ---------- */
#boxes { background: var(--cream); --card: min(74vw, 19rem); overflow-x: clip; }
.boxes-head { display: grid; gap: var(--space-s); margin-bottom: var(--space-m); }
.boxes-head .h2 { max-width: 12ch; }
.boxes-head .lede { font-size: var(--step-0); max-width: 40ch; }
/* mobile "Swipe" hint: big, typographic, gold arrow draws out and nudges; fades after the first scroll of the track */
.swipe-hint { display: flex; align-items: center; gap: 1rem; padding-inline: var(--gutter); margin-top: var(--space-m); transition: opacity .6s var(--lux); }
.swipe-hint.is-done { opacity: 0; pointer-events: none; }
.swipe-word { position: relative; font: italic 400 var(--step-2)/1 var(--font-serif); letter-spacing: -.01em; color: var(--accent-text); }
.swipe-word::after { content: attr(data-text); position: absolute; inset: 0; color: var(--gold-light); opacity: 0; -webkit-mask-image: linear-gradient(105deg, transparent 38%, #000 50%, transparent 62%); mask-image: linear-gradient(105deg, transparent 38%, #000 50%, transparent 62%); -webkit-mask-size: 300% 100%; mask-size: 300% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: 100% 0; mask-position: 100% 0; }
.swipe-hint svg { width: 5.5rem; height: 1.25rem; overflow: visible; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.swipe-hint path { stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .swipe-hint svg { animation: swipe-nudge 2.4s ease-in-out infinite; }
  .swipe-hint path:first-child { animation: swipe-line 2.4s ease-in-out infinite; }
  .swipe-hint path:last-child { animation: swipe-head 2.4s ease-in-out infinite; }
  .swipe-word::after { opacity: 1; animation: swipe-sheen 2.4s ease-in-out infinite; }
}
@keyframes swipe-line { 0% { stroke-dashoffset: 1; opacity: 1; } 45% { stroke-dashoffset: 0; } 90% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes swipe-head { 0%, 35% { stroke-dashoffset: 1; opacity: 1; } 50% { stroke-dashoffset: 0; } 90% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes swipe-nudge { 0%, 50% { transform: translateX(0); } 72% { transform: translateX(.7rem); } 92%, 100% { transform: translateX(0); } }
@keyframes swipe-sheen { 0% { -webkit-mask-position: 100% 0; mask-position: 100% 0; } 60%, 100% { -webkit-mask-position: 0 0; mask-position: 0 0; } }
.box-track {
  display: flex; gap: var(--space-m); align-items: flex-start;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: var(--space-m) var(--gutter) var(--space-m);
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--gold) transparent;
}
.box-card { flex: 0 0 var(--card); scroll-snap-align: start; position: relative; }
.box-card:nth-child(even) { margin-top: 1.75rem; }
.box-card .stamp { --ar: 1/1; }
.box-card .postmark { --pm: 4.6rem; top: -1.1rem; right: -.7rem; opacity: .92; }
.box-meta { margin-top: var(--space-s); }
.box-meta h3 { font-size: var(--step-1); letter-spacing: -.02em; }
.box-meta .cat { font: 600 .75rem/1.3 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); margin-top: .3rem; }
.price-note { width: min(100% - 2 * var(--gutter), var(--container-wide)); margin-inline: auto; margin-top: var(--space-m); padding-top: var(--space-s); border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; justify-content: space-between; }
.price-note p { font-size: var(--step--1); color: var(--text-muted); max-width: 46ch; }
.price-note strong { color: var(--ink); }

@media (min-width: 768px) {
  #boxes { --card: clamp(15rem, min(26vw, 34svh), 25rem); padding-block: clamp(5rem, 11svh, 7rem) clamp(2.5rem, 5svh, 4rem); }
  .swipe-hint { display: none; }
  .boxes-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--space-xl); align-items: end; margin-bottom: 0; }
  .boxes-head .lede { grid-column: 2; grid-row: 1; align-self: end; }
  .boxes-head .chips { grid-column: 2; grid-row: 2; align-self: end; }
  .boxes-head .eyebrow, .boxes-head .h2 { grid-column: 1; }
  .box-track { padding-top: var(--space-l); }
  .box-card:nth-child(even) { margin-top: 1.5rem; }
}

/* ---------- 10. gifting ---------- */
.gifting { background: var(--teal-deep); color: var(--cream); }
.gifting-in { width: min(100% - 2 * var(--gutter), var(--container-wide)); margin-inline: auto; }
.gifting-head { display: grid; gap: var(--space-s); margin-bottom: var(--space-xl); }
.gifting-head .h2 { color: var(--cream); max-width: 14ch; }
.gifting-pitch { max-width: 42ch; font-size: var(--step-1); line-height: 1.5; color: rgba(255, 248, 236, .88); }
.gifting-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--space-xs); }
.gifting-cta .btn { flex: 1 1 13rem; }

/* static process list (corporate page only): compact, not pinned */
.steps { position: relative; padding-left: 2.25rem; }
.steps::before { content: ""; position: absolute; left: .5rem; top: 0; bottom: 0; width: 1px; background: var(--hairline-dark); }
.step { position: relative; display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: var(--space-s); align-items: center; padding-block: 1.1rem; }
.step::before { content: ""; position: absolute; left: -2.06rem; top: 50%; width: .6rem; height: .6rem; margin-top: -.3rem; background: var(--gold-light); transform: rotate(45deg); }
.step-media { position: relative; }
.step-media .stamp-frame { padding: 7px; --r: 3px; --d: 11px; }
.step-body h3 { font-size: var(--step-2); margin-top: .35rem; color: var(--cream); }
.step-body p { margin-top: .4rem; font-size: var(--step--1); line-height: 1.55; color: rgba(255, 248, 236, .86); max-width: 30ch; }
.step-no { font: italic 400 1rem/1 var(--font-serif); color: var(--gold-light); }
.step-media .postmark { --pm: 3.6rem; right: .1rem; bottom: .1rem; }

/* home: "Fill the box" scene. Rest state = pieces sitting in their slots (same grid as the tray). */
.gifting[data-scene] { padding-block: calc(var(--header-h) + .5rem) 2rem; overflow-x: clip; }
.scene-in { width: min(100% - 2 * var(--gutter), var(--container-wide)); margin-inline: auto; display: grid; gap: var(--space-m); }
.scene-copy { display: grid; gap: var(--space-s); max-width: 38rem; }
.scene-copy .h2 { color: var(--cream); max-width: 14ch; font-size: var(--step-3); }
.scene-copy .gifting-pitch { font-size: var(--step-0); }
.scene-copy .gifting-cta { margin-top: 0; }
.scene-stage {
  --stage: min(90vw, 46svh);
  --pad: calc(var(--stage) * .0288); --gap: calc(var(--stage) * .0216);
  position: relative; width: var(--stage); aspect-ratio: 1; margin-inline: auto;
}
.giftbox, .scene-pieces { position: absolute; left: 14%; top: 23.6%; width: 72%; aspect-ratio: 3 / 2.2; }
.giftbox-base, .scene-pieces {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: var(--gap); padding: var(--pad);
}
.giftbox-base {
  position: absolute; inset: 0; z-index: 1;
  background-color: var(--teal);
  background-image: linear-gradient(rgba(39, 100, 103, .82), rgba(39, 100, 103, .82)), url(/images/brand/pattern-tile.webp);
  background-size: auto, calc(var(--stage) * .34) calc(var(--stage) * .283);
  box-shadow: 0 1.4rem 2rem -.6rem rgba(0, 0, 0, .55), inset 0 0 0 calc(var(--stage) * .02) var(--teal-ink);
}
.giftbox-base::before { content: ""; position: absolute; inset: calc(var(--stage) * .02); border: 1px solid var(--gold); box-shadow: inset 0 .45rem .8rem -.1rem rgba(0, 0, 0, .4); pointer-events: none; }
.giftbox-slot { position: relative; background: rgba(18, 54, 56, .42); box-shadow: inset 0 0 0 1px rgba(224, 187, 109, .4), inset 0 .35rem .6rem rgba(0, 0, 0, .3); }
.scene-pieces { z-index: 2; pointer-events: none; }
.piece { position: relative; display: grid; place-items: center; min-width: 0; min-height: 0; transform: rotate(var(--r, 0deg)); }
.piece img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 .25rem .3rem rgba(0, 0, 0, .4)); }
/* lid: magenta face, foil border, inset double gold rule; the badge sits on a cream oval plate in the upper-left,
   everything is clipped to the face. The ribbon crosses off-centre (lower right) so it never covers the halwai. */
.giftbox-lid {
  position: absolute; inset: 0; z-index: 3; overflow: hidden; border-radius: 2px;
  border: calc(var(--stage) * .012) solid transparent;
  background: linear-gradient(var(--magenta), var(--magenta)) padding-box, var(--foil) border-box;
  background-size: 100% 100%, 240% 100%;
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .35);
}
.giftbox-lid::before { content: ""; position: absolute; inset: 6px; border: 3px double var(--gold-light); pointer-events: none; z-index: 1; }
.lid-plate {
  position: absolute; left: 7%; top: 6%; width: 52%; height: 62%; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4%;
  background: var(--cream);
  box-shadow: inset 0 0 0 2px var(--cream), inset 0 0 0 3px var(--gold), 0 .3rem .6rem rgba(0, 0, 0, .3);
}
.lid-plate img { display: block; flex: none; width: auto; height: 62%; }
.lid-plate .lid-word { height: 10%; }
.lid-shadow { z-index: 3; }
/* two crossing satin bands: children[0] horizontal, children[1] vertical */
.giftbox-ribbon { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.giftbox-ribbon .rb { position: absolute; box-shadow: 0 .15rem .35rem rgba(0, 0, 0, .35); }
.giftbox-ribbon .rb-h { left: 0; right: 0; top: 70%; height: 16%; background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 62%, var(--brown)) 0%, var(--gold-light) 28%, color-mix(in srgb, var(--gold-light) 55%, var(--cream)) 50%, var(--gold) 74%, color-mix(in srgb, var(--gold) 62%, var(--brown)) 100%); }
.giftbox-ribbon .rb-v { top: 0; bottom: 0; left: 66%; width: 11%; background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 62%, var(--brown)) 0%, var(--gold-light) 28%, color-mix(in srgb, var(--gold-light) 55%, var(--cream)) 50%, var(--gold) 74%, color-mix(in srgb, var(--gold) 62%, var(--brown)) 100%); }
.giftbox .postmark { --pm: calc(var(--stage) * .18); right: -4%; top: -7%; z-index: 5; color: var(--gold-light); mix-blend-mode: normal; }

/* FINAL STATIC STATE (no JS, or reduced motion): box filled, the lid and ribbon propped up against the top-right corner,
   scaled .7 and tilted 8deg so the tray stays readable. The animated end state is a closed, ribboned box (lid transform none). */
html:not(.js-motion) [data-scene="fill"] :is(.giftbox-lid, .giftbox-ribbon),
[data-scene="fill"].is-final :is(.giftbox-lid, .giftbox-ribbon) { transform: translate(34%, -38%) scale(.7) rotate(8deg); }
html:not(.js-motion) [data-scene="fill"] .scene-stage,
[data-scene="fill"].is-final .scene-stage { transform: rotate(-3deg); }

.scene-captions { counter-reset: cap; display: grid; gap: .35rem; }
.scene-captions li { counter-increment: cap; display: flex; align-items: baseline; gap: .75rem; font: 400 var(--step-1)/1.2 var(--font-serif); letter-spacing: -.01em; color: var(--cream); transition: color .4s var(--lux); }
.scene-captions li::before { content: "0" counter(cap); font: italic 400 1rem/1 var(--font-serif); color: var(--gold-light); }
.is-scene-live .scene-captions li { color: rgba(255, 248, 236, .72); }
.is-scene-live .scene-captions li.is-active { color: var(--cream); }
.is-scene-live .scene-captions li:not(.is-active) { display: none; }

@media (min-width: 768px) {
  .gifting { padding-block: clamp(3rem, 7svh, 5rem); }
  .gifting-head { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); column-gap: var(--space-xl); align-items: end; }
  .gifting-head .eyebrow, .gifting-head .h2 { grid-column: 1; }
  .gifting-pitch, .gifting-cta { grid-column: 2; }
  .gifting-pitch { grid-row: 1 / 3; align-self: end; }
  .gifting-cta { grid-row: 3; margin-top: 0; }
  .steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-m); padding: 2rem 0 0; }
  .steps::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 1px; }
  .step { grid-template-columns: minmax(0, 1fr); align-items: start; padding-block: 0; gap: var(--space-s); }
  .step::before { left: 0; top: -2.3rem; margin-top: 0; }
  .step-media { width: min(100%, 16rem); }
  .step-media .stamp-frame { padding: 9px; --r: 4px; --d: 14px; }
  .step-media .postmark { --pm: 4.6rem; }

  .gifting[data-scene] { display: flex; align-items: center; min-height: 100svh; padding-block: calc(var(--header-h) + 1rem) 2rem; }
  .scene-in { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "copy stage" "caps stage"; column-gap: var(--space-2xl); row-gap: var(--space-m); align-items: center; width: min(100% - 2 * var(--gutter), var(--container-wide)); }
  .scene-copy { grid-area: copy; align-self: end; }
  .scene-copy .h2 { font-size: var(--step-4); }
  .scene-copy .gifting-pitch { font-size: var(--step-1); }
  .scene-copy .gifting-cta .btn { flex: 0 0 auto; }
  .scene-stage { grid-area: stage; --stage: min(72svh, 640px, 46vw); margin: 0; }
  .scene-captions { grid-area: caps; align-self: start; }
  .is-scene-live .scene-captions li:not(.is-active) { display: flex; }
}

/* ---------- 11. wholesale ---------- */
#wholesale { background: var(--paper); }
.ws-grid { display: grid; gap: var(--space-xl); }
.ws-media { position: relative; }
.ws-media .hair { --ar: 1/1; }
.ws-text h2 { font-size: var(--step-4); max-width: 12ch; margin-block: var(--space-s); }
.ws-text .lede { margin-bottom: var(--space-l); }
.ws-points { display: grid; margin-bottom: var(--space-l); border-top: 1px solid var(--hairline); }
.ws-points li { padding-block: .85rem; border-bottom: 1px solid var(--hairline); font-family: var(--font-serif); font-size: var(--step-1); letter-spacing: -.015em; }
.ws-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.ws-actions .btn { flex: 1 1 13rem; }

@media (min-width: 768px) {
  .ws-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-m); align-items: center; }
  .ws-media { grid-column: 1 / 7; margin-bottom: 2rem; }
  .ws-media .hair { --ar: 4/5; }
  .ws-text { grid-column: 8 / 13; }
  .ws-actions .btn { flex: 0 0 auto; }
}

/* ---------- 12. instagram ---------- */
.insta-head { display: grid; gap: var(--space-s); margin-bottom: var(--space-xl); }
.insta-head h2 { font-size: var(--step-4); }
.insta-handle { display: inline-flex; align-items: center; min-height: 44px; font: italic 400 var(--step-2)/1 var(--font-serif); color: var(--accent-text); text-decoration-color: var(--gold); transition: text-decoration-color .35s var(--lux); }
.insta-handle:hover { text-decoration-color: currentColor; }
.insta-grid { display: grid; gap: var(--space-m); }
.insta-banner { display: block; overflow: hidden; box-shadow: 0 1.2rem 1.6rem -1rem rgba(34, 21, 15, .35); }
.insta-banner img { width: 100%; height: auto; transition: transform .9s var(--lux); }
@media (hover: hover) { .insta-banner:hover img { transform: scale(1.02); } }
.insta-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-m); }
.insta-photos a { display: block; text-decoration: none; }
.insta-photos a:nth-child(2) { margin-top: 1.5rem; }

@media (min-width: 768px) {
  .insta-head { grid-template-columns: 1fr auto; align-items: end; }
  .insta-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); row-gap: var(--space-xl); }
  .insta-banner { grid-column: 1 / -1; }
  .insta-photos { grid-column: 4 / 10; }
}

/* ---------- 13. enquire + form ---------- */
#enquire { background: var(--paper); }
.enquire-grid { display: grid; gap: var(--space-xl); }
.enquire-intro { display: grid; gap: var(--space-s); align-content: start; }
.mascot { width: clamp(7.5rem, 38vw, 13rem); height: auto; margin-bottom: var(--space-xs); justify-self: center; }
.enquire-intro h2 { font-size: var(--step-4); max-width: 11ch; }
.enquire-intro .lede { font-size: var(--step-0); max-width: 36ch; }
.contact-list { margin-top: var(--space-m); border-top: 1px solid var(--hairline); }
.contact-list li { border-bottom: 1px solid var(--hairline); }
.contact-list a { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .15rem 1rem; min-height: 3.5rem; padding-block: .7rem; text-decoration: none; }
.contact-list .k { font: 600 .75rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); }
.contact-list .v { font: 400 var(--step-1)/1.2 var(--font-serif); letter-spacing: -.01em; overflow-wrap: anywhere; }
.contact-list a:hover .v { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .25em; }

.enquiry-form { display: grid; gap: var(--space-m); }
.form-grid { display: grid; gap: var(--space-m); grid-template-columns: minmax(0, 1fr); }
.field { position: relative; display: grid; gap: .4rem; align-content: start; }
.field label { font: 600 .75rem/1.2 var(--font-body); letter-spacing: .18em; text-transform: uppercase; }
.field label .req { color: var(--accent-text); margin-left: .15rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3.25rem; padding: .8rem .95rem;
  background: var(--cream); color: var(--ink);
  border: 1px solid var(--ink-soft); border-radius: 2px;
  font-size: 1rem; line-height: 1.4;
  transition: border-color .3s var(--lux), background-color .3s var(--lux);
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2322150F' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: .8rem;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); opacity: .75; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px dashed var(--magenta-deep); outline-offset: 3px; border-color: var(--magenta-deep); background: var(--white);
}
.field [aria-invalid="true"] { border-color: var(--magenta-deep); background: color-mix(in srgb, var(--magenta-soft) 55%, var(--cream)); }
.field-error { min-height: 0; font-size: var(--step--1); line-height: 1.4; font-weight: 500; color: var(--magenta-deep); }
.field-error:empty { display: none; }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.form-actions .btn { flex: 1 1 14rem; }
.form-status { min-height: 1.5em; font-size: var(--step-0); font-weight: 500; }
.form-status:empty { display: none; }
.form-flash { padding: 1rem 1.25rem; background: var(--cream); border: 1px solid var(--gold); font-weight: 500; }
.form-flash[hidden] { display: none; }
.form-flash.is-sent, .enquiry-form.is-sent .form-status { color: var(--teal-deep); }
.form-flash.is-error, .enquiry-form.is-error .form-status { color: var(--magenta-deep); }
.enquiry-form.is-sent .form-status { font-weight: 600; }
.enquiry-form.is-sending { cursor: progress; }
.enquiry-form.is-sending .btn-submit { opacity: .7; }
.enquiry-form.is-sending .field input, .enquiry-form.is-sending .field select, .enquiry-form.is-sending .field textarea { opacity: .75; }

@media (min-width: 600px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-wide { grid-column: 1 / -1; }
  .form-actions .btn { flex: 0 0 auto; }
}
@media (min-width: 900px) {
  .enquire-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .mascot { width: clamp(11rem, 18vw, 16rem); justify-self: start; }
}

/* ---------- 14. footer ---------- */
.site-footer {
  background-image: linear-gradient(rgba(18, 54, 56, .93), rgba(18, 54, 56, .93)), url(/images/brand/pattern-tile.webp);
  background-size: auto, var(--tile-w) var(--tile-h);
  color: var(--cream); padding-block: var(--space-2xl) var(--space-l);
}
.footer-in { width: min(100% - 2 * var(--gutter), var(--container-wide)); margin-inline: auto; display: grid; gap: var(--space-xl); }
.footer-brand img.wm { width: min(15rem, 70%); height: auto; margin-bottom: var(--space-s); }
.footer-brand .tag { font: italic 400 var(--step-3)/1.05 var(--font-serif); letter-spacing: -.03em; max-width: 12ch; }
.footer-brand .sub { margin-top: var(--space-s); color: var(--gold-light); font: 600 .75rem/1.6 var(--font-body); letter-spacing: .2em; text-transform: uppercase; }
.footer-cols { display: grid; gap: var(--space-l); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-cols h2 { font: 600 .75rem/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); margin-bottom: .6rem; }
.footer-cols a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer-cols a:hover { text-decoration: underline; text-decoration-color: var(--gold-light); }
.footer-cols .contact { grid-column: 1 / -1; }
.footer-base { border-top: 1px solid var(--hairline-dark); padding-top: var(--space-m); display: grid; gap: .75rem; font-size: var(--step--1); color: rgba(255, 248, 236, .82); }
.footer-base .credits { font-size: .75rem; line-height: 1.6; max-width: 70ch; }
.footer-base .credits a { text-decoration-color: var(--gold-light); }

@media (min-width: 768px) {
  .footer-in { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: var(--space-2xl); }
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-cols .contact { grid-column: auto; }
  .footer-base { grid-column: 1 / -1; grid-template-columns: 1fr auto; align-items: end; }
  .footer-base .credits { grid-column: 1 / -1; }
}

/* ---------- 15. corporate page ---------- */
.why-grid { display: grid; gap: var(--space-xl); }
.why-list { border-top: 1px solid var(--hairline); }
.why-list li { padding-block: 1.25rem; border-bottom: 1px solid var(--hairline); }
.why-list h3 { font-size: var(--step-2); letter-spacing: -.02em; }
.why-list p { margin-top: .4rem; color: var(--text-muted); max-width: 46ch; }
.gallery-head { display: grid; gap: var(--space-s); margin-bottom: var(--space-xl); }
.gallery-head .h2 { max-width: 14ch; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-l) var(--space-s); }
.gallery li:nth-child(even) { margin-top: 1.5rem; }
.gal-meta { margin-top: .75rem; }
.gal-meta h3 { font-size: var(--step-0); font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.gal-meta .cat { margin-top: .25rem; font: 600 .75rem/1.3 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); }
.occasions { display: flex; flex-wrap: wrap; gap: .75rem; }
.occasions li { display: inline-flex; align-items: center; min-height: 3rem; padding: .4rem 1.4rem; border: 1px solid var(--gold); border-radius: 999px; font: italic 400 var(--step-1)/1.2 var(--font-serif); letter-spacing: -.01em; }
.occ-head { display: grid; gap: var(--space-s); margin-bottom: var(--space-xl); }
.occ-head .h2 { max-width: 14ch; }

@media (min-width: 768px) {
  .why-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--space-2xl); align-items: start; }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-xl) var(--space-m); }
  .gallery li:nth-child(even) { margin-top: 0; }
  .gallery li:nth-child(4n+2) { margin-top: 3rem; }
  .gallery li:nth-child(4n+4) { margin-top: 1.5rem; }
}

/* ---------- 16. 404 ---------- */
.nf { position: relative; isolation: isolate; overflow: hidden; min-height: 100svh; background: var(--teal); color: var(--cream); display: flex; align-items: center; padding: var(--space-xl) 0; }
.nf-in { width: min(100% - 2 * var(--gutter), var(--container-wide)); margin-inline: auto; display: grid; gap: var(--space-xl); align-items: center; }
.nf-media { position: relative; width: min(100%, 26rem); padding-bottom: 2rem; }
.nf-media .hero-badge { left: -.5rem; bottom: 0; }
.nf h1 { font-size: clamp(2.9rem, 13vw, 6.5rem); letter-spacing: -.035em; line-height: .98; margin-block: var(--space-s) var(--space-s); }
.nf h1 em { display: block; color: var(--marigold-soft); }
.nf p.lede { margin-bottom: var(--space-l); }
@media (min-width: 768px) {
  .nf-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); column-gap: var(--space-2xl); }
}

/* ---------- 3b. Indian voice, material and the notice board ---------- */
/* Devanagari accents: decorative, behind the headings (aria-hidden, lang="hi") */
.has-deva { position: relative; }
.has-deva > :not(.deva) { position: relative; z-index: 1; }
.deva {
  position: absolute; z-index: 0; white-space: nowrap; pointer-events: none; user-select: none;
  font: 400 clamp(5.5rem, 30vw, 9rem)/1 var(--font-deva); letter-spacing: 0; color: var(--gold); opacity: .26;
}
.deva--h { right: 0; top: -.2em; }
.deva--hero { left: 0; top: 3.5rem; font-size: clamp(10rem, 70vw, 30rem); color: var(--gold-light); opacity: .1; }
.deva--menu { right: .25rem; top: 50%; transform: translateY(-50%); font-size: 3.6rem; color: var(--gold-light); opacity: .22; }
@media (min-width: 768px) {
  .deva--h { top: -.35em; font-size: clamp(8rem, 12vw, 13rem); }
  .deva--hero { left: -1rem; top: 6%; }
}

/* gold foil: a moving sheen on hairlines and borders (utility); still under reduced motion */
.foil { background: var(--foil); background-size: 240% 100%; background-position: 0 0; }
@media (prefers-reduced-motion: no-preference) {
  .foil { animation: foil-sheen 7s ease-in-out infinite alternate; }
}
@keyframes foil-sheen { from { background-position: 0 0; } to { background-position: 100% 0; } }

/* paper grain: a static, tiny tiled PNG (no live filter), laid over the whole page */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 1000; pointer-events: none;
  background: url(/images/brand/grain.png) 0 0 / 160px 160px;
}
@media print { body::before { display: none; } }

/* embossed perforation: the stamp paper catches light on one edge and shades the other */
.stamp-frame { box-shadow: inset 1px 1px 1px rgba(255, 255, 255, .95), inset -1px -1px 2px rgba(34, 21, 15, .16); }

/* headings with scale contrast: one oversized word, one small italic line */
.h-split { max-width: none; }
.h-split .h-big { display: block; font-size: clamp(3.4rem, 17vw, 6.5rem); letter-spacing: -.04em; line-height: .9; }
.h-split .h-small { display: block; margin-top: .4rem; font: italic 400 var(--step-2)/1.1 var(--font-serif); letter-spacing: -.015em; color: var(--accent-text); }
.h-split--sm .h-big { font-size: clamp(3rem, 15vw, 5rem); }
.ws-text .h-split { margin-block: var(--space-s); }

/* "Halwai's Notice Board": pinned paper objects on a linen panel */
.notice-board {
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(0deg, rgba(34, 21, 15, .04) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(34, 21, 15, .035) 0 1px, transparent 1px 4px);
  border-block: 1px solid var(--hairline);
}
.notice-head { display: grid; gap: var(--space-s); margin-bottom: var(--space-s); }
.notice-head .h2 { max-width: 14ch; }
.board-rule { display: block; width: 5rem; height: 2px; }
.notes {
  display: flex; gap: 1.25rem; align-items: flex-start;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 1.75rem var(--gutter) 2.25rem; scroll-padding-inline: var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--gold) transparent;
}
.note {
  position: relative; flex: 0 0 min(76vw, 17.5rem); scroll-snap-align: start;
  transform: rotate(var(--rot, 0deg));
  filter: drop-shadow(0 .45rem .5rem rgba(34, 21, 15, .2));
  transition: transform .5s var(--lux), filter .5s var(--lux);
}
.note:nth-child(even) { margin-top: 1.2rem; }
.note:hover, .note:focus-within { transform: rotate(0deg) translateY(-.4rem); filter: drop-shadow(0 .9rem .9rem rgba(34, 21, 15, .24)); }
.note-in {
  --pr: 4px; --pd: 14px;
  position: relative; display: block; min-height: 12rem; padding: 1.5rem 1.35rem 1.25rem;
  color: var(--ink); text-decoration: none; background: var(--frame);
}
.note-in:focus-visible { outline-offset: -9px; }
.note-chip { display: inline-block; padding: .3rem .65rem; background: var(--magenta-soft); color: var(--magenta-deep); font: 600 .75rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; }
.note h3 { margin-top: .85rem; font-size: var(--step-1); letter-spacing: -.02em; line-height: 1.12; }
.note p { margin-top: .5rem; font-size: var(--step--1); line-height: 1.5; color: var(--text-muted); }
.note-link { display: inline-block; margin-top: 1rem; padding-bottom: .2rem; border-bottom: 1px solid var(--gold); font: 600 .75rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; }
.note:hover .note-link, .note-in:focus-visible .note-link { border-bottom-color: currentColor; }
.pin {
  position: absolute; z-index: 2; top: -.5rem; left: 50%; width: 1.15rem; height: 1.15rem; margin-left: -.575rem; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, var(--gold-light), var(--gold) 58%, color-mix(in srgb, var(--gold) 60%, var(--brown)));
  box-shadow: 0 .3rem .35rem rgba(34, 21, 15, .35);
}
/* stamp-edged card */
.note--card .note-in {
  padding: 1.9rem 1.6rem 1.5rem;
  -webkit-mask:
    linear-gradient(#000 0 0) 50% 50% / calc(100% - 2 * var(--pr)) calc(100% - 2 * var(--pr)) no-repeat,
    radial-gradient(circle at 50% 0, #0000 calc(var(--pr) - .5px), #000 var(--pr)) 0 0 / var(--pd) var(--pr) round no-repeat,
    radial-gradient(circle at 50% 100%, #0000 calc(var(--pr) - .5px), #000 var(--pr)) 0 100% / var(--pd) var(--pr) round no-repeat,
    radial-gradient(circle at 0 50%, #0000 calc(var(--pr) - .5px), #000 var(--pr)) 0 0 / var(--pr) var(--pd) no-repeat round,
    radial-gradient(circle at 100% 50%, #0000 calc(var(--pr) - .5px), #000 var(--pr)) 100% 0 / var(--pr) var(--pd) no-repeat round;
  mask:
    linear-gradient(#000 0 0) 50% 50% / calc(100% - 2 * var(--pr)) calc(100% - 2 * var(--pr)) no-repeat,
    radial-gradient(circle at 50% 0, #0000 calc(var(--pr) - .5px), #000 var(--pr)) 0 0 / var(--pd) var(--pr) round no-repeat,
    radial-gradient(circle at 50% 100%, #0000 calc(var(--pr) - .5px), #000 var(--pr)) 0 100% / var(--pd) var(--pr) round no-repeat,
    radial-gradient(circle at 0 50%, #0000 calc(var(--pr) - .5px), #000 var(--pr)) 0 0 / var(--pr) var(--pd) no-repeat round,
    radial-gradient(circle at 100% 50%, #0000 calc(var(--pr) - .5px), #000 var(--pr)) 100% 0 / var(--pr) var(--pd) no-repeat round;
}
.note--card .note-in::before { content: ""; position: absolute; inset: 9px; border: 1px solid var(--hairline); pointer-events: none; }
/* receipt slip: torn zigzag foot, dashed rules */
.note--receipt .note-in {
  padding-bottom: 2rem;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 9px) no-repeat, conic-gradient(from 135deg at 50% 0, #000 90deg, #0000 0) bottom / 18px 9px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 9px) no-repeat, conic-gradient(from 135deg at 50% 0, #000 90deg, #0000 0) bottom / 18px 9px repeat-x;
}
.note--receipt .note-chip { display: block; padding: 0 0 .6rem; background: transparent; color: var(--ink); border-bottom: 1px dashed var(--ink-soft); }
/* festival tag: cut corners and a string hole */
.note--tag .note-in {
  padding-top: 2.9rem; background: var(--marigold-soft);
  clip-path: polygon(16% 0, 84% 0, 100% 11%, 100% 100%, 0 100%, 0 11%);
  -webkit-mask: radial-gradient(circle .5rem at 50% 1.35rem, #0000 98%, #000);
  mask: radial-gradient(circle .5rem at 50% 1.35rem, #0000 98%, #000);
}
.note--tag .pin { top: .65rem; }
.note--tag .note-chip { background: var(--cream); }
/* postcard: a stamp spot and address lines */
.note--post .note-in { padding: 1.4rem 1.35rem 4.2rem; background: var(--cream); border: 1px solid var(--hairline); }
.note--post .note-in::before { content: ""; position: absolute; top: .9rem; right: .9rem; width: 2.4rem; height: 2.9rem; border: 1px dashed var(--magenta-deep); opacity: .7; }
.note--post .note-in::after { content: ""; position: absolute; left: 1.35rem; right: 1.35rem; bottom: 1rem; height: 2.2rem; background: repeating-linear-gradient(to bottom, transparent 0 .7rem, var(--hairline) .7rem calc(.7rem + 1px)); }
.note--post .note-link { position: relative; z-index: 1; }
@media (min-width: 768px) {
  .notes {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; overflow: visible;
    width: min(100% - 2 * var(--gutter), var(--container-wide)); margin-inline: auto; padding: 2.25rem 0 2.75rem;
  }
  .note { flex: none; }
  .note:nth-child(n) { margin-top: 0; }
  .note:nth-child(2) { margin-top: 2.5rem; }
  .note:nth-child(3) { margin-top: .75rem; }
  .note:nth-child(4) { margin-top: 3.25rem; }
}

/* ---------- 17. reduced motion: nothing animates ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  #top, .menu, .marquee { display: none; }
}
