/* ============================================================
   Petal Lounge — Floral Café, Brampton ON
   Design system: elegant botanical
   Display: Cormorant Garamond · Body: Montserrat
   ============================================================ */

:root {
  /* Surfaces */
  --cream:      #FAF5EF;
  --cream-2:    #F3E9DD;
  --paper:      #FFFDFA;

  /* Ink / text */
  --ink:        #3B2630;
  --ink-soft:   #6E5560;
  --ink-faint:  #9B8590;

  /* Brand florals */
  --plum:       #5C2A45;
  --plum-deep:  #3C1A2D;
  --rose:       #C97B92;
  --rose-soft:  #E7A9B8;
  --blush:      #F3DEE2;
  --sage:       #8AA177;
  --sage-deep:  #5F7A4E;
  --gold:       #C2A14D;
  --gold-soft:  #E0C783;

  /* Tokens */
  --maxw: 1200px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(60, 26, 45, .06);
  --shadow:    0 18px 50px -20px rgba(60, 26, 45, .28);
  --shadow-lg: 0 40px 90px -40px rgba(60, 26, 45, .45);
  --ease: cubic-bezier(.22, .61, .36, 1);

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 16px;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  min-height: 100vh;
}

/* Soft botanical wash behind the 3D canvas */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 78% 18%, rgba(231, 169, 184, .38), transparent 62%),
    radial-gradient(55% 45% at 12% 82%, rgba(138, 161, 119, .26), transparent 60%),
    radial-gradient(80% 60% at 50% 0%, rgba(255, 253, 250, .9), transparent 70%),
    linear-gradient(160deg, var(--cream) 0%, var(--cream-2) 100%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- 3D canvas ---------- */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: block;
  pointer-events: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  color: var(--plum);
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--rose);
  display: inline-flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: .7;
}
.eyebrow.center::after {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: .7;
}

p { color: var(--ink-soft); }
.lead { font-size: 1.12rem; color: var(--ink-soft); }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}
section { position: relative; }
.section-pad { padding-block: clamp(4.5rem, 11vw, 9rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), color .25s var(--ease);
}
.btn:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; }

.btn-primary {
  background: linear-gradient(135deg, var(--plum) 0%, var(--plum-deep) 100%);
  color: var(--cream);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold) 100%);
  color: var(--plum-deep);
  box-shadow: var(--shadow-sm);
}
.btn-gold:hover { box-shadow: 0 18px 40px -16px rgba(194,161,77,.7); transform: translateY(-2px); }

.btn-ghost {
  background: rgba(255,255,255,.8);
  color: var(--plum);
  border: 1px solid rgba(92,42,69,.18);
}
.btn-ghost:hover { background: #fff; border-color: rgba(92,42,69,.35); transform: translateY(-2px); }

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  inset: 1rem clamp(.8rem, 3vw, 1.6rem) auto;
  z-index: 50;
  margin-inline: auto;
  max-width: var(--maxw);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem .8rem .7rem 1.2rem;
  border-radius: 999px;
  background: rgba(255, 253, 250, .72);
  border: 1px solid rgba(92, 42, 69, .1);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--plum);
  letter-spacing: .01em;
}
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand b { font-weight: 600; }
.brand i { font-style: italic; color: var(--rose); }

.nav-links {
  display: flex;
  align-items: center;
  gap: .35rem;
  list-style: none;
}
.nav-links a {
  display: inline-block;
  padding: .55rem .95rem;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-links a:hover { color: var(--plum); background: rgba(231,169,184,.22); }
.nav-links a[aria-current="page"] { color: var(--plum); background: rgba(231,169,184,.32); }

.nav-right { display: flex; align-items: center; gap: .5rem; }
.ig-btn {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 999px;
  color: var(--plum);
  background: rgba(231,169,184,.22);
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.ig-btn:hover { background: var(--plum); color: var(--cream); transform: translateY(-2px); }
.ig-btn svg { width: 20px; height: 20px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 999px;
  color: var(--plum);
  background: rgba(231,169,184,.22);
  place-items: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 7rem;
  padding-bottom: 4rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  align-items: center;
  gap: 2rem;
  width: 100%;
}
.hero-copy { max-width: 38rem; }
.hero h1 {
  font-size: clamp(2.9rem, 7.6vw, 6.2rem);
  line-height: .94;
  letter-spacing: -0.02em;
  margin-top: 1.2rem;
}
.hero h1 .script {
  display: block;
  font-style: italic;
  font-weight: 500;
  color: var(--rose);
}
.hero .lead { margin-top: 1.5rem; max-width: 32rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.4rem;
  margin-top: 2.8rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(92,42,69,.14);
}
.hero-meta .item .k {
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--rose); font-weight: 600;
}
.hero-meta .item .v {
  font-family: var(--font-display); font-size: 1.35rem; color: var(--plum); line-height: 1.2;
}
/* ---- Hero logo ---- */
.hero-logo { display: grid; place-items: center; min-height: 40vh; }
.hero-logo img {
  width: min(100%, 540px);
  height: auto;
  filter: drop-shadow(0 28px 55px rgba(92, 42, 69, .22));
  animation: heroFloat 7s var(--ease) infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-16px) rotate(1.5deg); }
}

/* ---- Story-section laptop mock-up (CSS-drawn): animated flat screen ---- */
.laptop {
  width: min(100%, 600px);
  margin-inline: auto;
  container-type: inline-size;
  animation: deviceFloat 8s var(--ease) infinite;
}
.laptop-lid {
  position: relative;
  background: linear-gradient(158deg, #2c3138 0%, #14171b 100%);
  border-radius: 4.5cqw;
  padding: 3cqw;
  box-shadow: 0 30px 50px -22px rgba(60,26,45,.45), inset 0 0 0 1px rgba(255,255,255,.05);
}
.laptop-cam {
  position: absolute; top: 1.1cqw; left: 50%; transform: translateX(-50%);
  width: 1.1cqw; height: 1.1cqw; border-radius: 50%; background: #3a4047;
}
.laptop-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 1.4cqw;
  overflow: hidden;
  background: var(--cream);
  container-type: size;
}
.laptop-deck {
  position: relative;
  width: 113%;
  margin-left: -6.5%;
  height: 2.4cqw;
  background: linear-gradient(180deg, #e6eaef 0%, #c2c8d0 55%, #a3a9b2 100%);
  clip-path: polygon(1.4% 0, 98.6% 0, 100% 100%, 0 100%);
  border-radius: 0 0 1.6cqw 1.6cqw;
  box-shadow: 0 14px 22px -12px rgba(0,0,0,.4);
}
.laptop-deck::before {
  content: ""; position: absolute; top: 0; left: 9%; right: 9%; height: 0.5cqw;
  background: linear-gradient(180deg, #8a9099, #cfd4da);
}
.laptop-notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 13%; height: 1.1cqw; background: #aab0b8; border-radius: 0 0 1.4cqw 1.4cqw;
}

/* the mini website that plays on the screen — sized in container units so it scales */
.scr { width: 100%; height: 100%; background: var(--cream); display: flex; flex-direction: column; }
.scr-bar { height: 9cqh; flex: none; display: flex; align-items: center; gap: 1.4cqw; padding: 0 3cqw; background: #efe2d6; }
.scr-bar i { width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: #cdbcad; }
.scr-bar i:nth-child(1) { background: #e7a9b8; }
.scr-bar span { margin-left: 1.6cqw; font-family: var(--font-body); font-size: 2.6cqw; color: #9a8576; background: #fff; padding: 1cqh 3cqw; border-radius: 999px; }
.scr-stack { position: relative; flex: 1; }
.scr-slide {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; gap: 2.4cqh;
  padding: 4cqw;
  background: var(--cream);
  opacity: 0; transform: scale(1.03);
  transition: opacity .8s var(--ease), transform 4.2s linear;
}
.scr-slide.is-on { opacity: 1; transform: scale(1); z-index: 2; }
.scr-hero { flex: 1; border-radius: 3cqw; overflow: hidden; background: #f3e7da; box-shadow: inset 0 0 0 1px rgba(92,42,69,.06); }
.scr-hero img, .scr-hero svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.scr-txt { padding: 0 0.6cqw; }
.scr-txt .k { font-family: var(--font-body); font-size: 2.6cqw; letter-spacing: .2em; text-transform: uppercase; color: var(--rose); font-weight: 700; }
.scr-txt b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 8cqw; line-height: 1.0; color: var(--plum); margin-top: 1cqh; }
.scr-txt p { font-family: var(--font-body); font-size: 3.4cqw; color: var(--ink-soft); margin-top: 1cqh; }

@keyframes deviceFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) {
  .laptop { animation: none; }
  .scr-slide { transition: none; }
}

.scroll-hint {
  position: absolute;
  left: 50%; bottom: 1.6rem;
  transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: .5rem;
  font-size: .64rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-faint);
}
.scroll-hint .dot {
  width: 22px; height: 36px; border-radius: 999px;
  border: 1.5px solid rgba(92,42,69,.3);
  position: relative;
}
.scroll-hint .dot::after {
  content: ""; position: absolute; top: 7px; left: 50%;
  width: 4px; height: 8px; border-radius: 999px; background: var(--rose);
  transform: translateX(-50%);
  animation: scrolldot 1.8s var(--ease) infinite;
}
@keyframes scrolldot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; }
  80% { opacity: 0; transform: translate(-50%, 12px); }
  100% { opacity: 0; }
}

/* ---------- Story ---------- */
.story-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.story h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-top: 1rem; }
.story p + p { margin-top: 1rem; }
.story .signature {
  margin-top: 1.6rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--rose);
}
.story-art {
  position: relative;
  display: grid;
  place-items: center;
}
.story-art svg { width: 70%; height: auto; filter: drop-shadow(0 14px 24px rgba(92,42,69,.18)); }
.story-art .badge {
  position: absolute; bottom: 1.2rem; left: 1.2rem; right: 1.2rem;
  background: rgba(255,253,250,.94);
  border-radius: 14px;
  padding: .9rem 1.1rem;
  display: flex; align-items: center; gap: .8rem;
  box-shadow: var(--shadow-sm);
}
.story-art .badge .ring {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--rose), var(--gold), var(--sage), var(--rose));
}
.story-art .badge .t { font-size: .82rem; line-height: 1.35; }
.story-art .badge .t b { color: var(--plum); }

/* ---------- Offerings ---------- */
.offer-head { text-align: center; max-width: 40rem; margin: 0 auto 3.2rem; }
.offer-head h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-top: 1rem; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.8rem;
  border-radius: var(--radius);
  background: rgba(255, 253, 250, .94);
  border: 1px solid rgba(92, 42, 69, .1);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(135deg, rgba(231,169,184,.16), transparent 60%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(201,123,146,.4); }
.card:hover::after { opacity: 1; }
.card .icon {
  width: 58px; height: 58px; border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--blush), #fff);
  color: var(--plum);
  margin-bottom: 1.3rem;
  box-shadow: inset 0 0 0 1px rgba(92,42,69,.08);
}
.card .icon svg { width: 30px; height: 30px; }
.card h3 { font-size: 1.7rem; }
.card p { margin-top: .5rem; font-size: .92rem; position: relative; }
.card .more {
  margin-top: 1.4rem;
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  color: var(--rose);
  position: relative;
}
.card .more svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.card:hover .more svg { transform: translateX(4px); }
.card .tag {
  position: absolute; top: 1.2rem; right: 1.2rem;
  font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700;
  color: var(--sage-deep);
  background: rgba(138,161,119,.18);
  padding: .3rem .6rem; border-radius: 999px;
}

/* ---------- Strip / quote ---------- */
.quote { text-align: center; }
.quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  line-height: 1.25;
  color: var(--plum);
  max-width: 22ch;
  margin: 1.4rem auto 0;
}
.quote blockquote span { color: var(--rose); font-style: italic; }

/* ---------- Visit ---------- */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
}
.visit h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-top: 1rem; }
.info-list { list-style: none; margin-top: 2rem; display: grid; gap: 1.3rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-list .ic {
  width: 46px; height: 46px; flex: none; border-radius: 13px;
  display: grid; place-items: center;
  color: var(--plum); background: rgba(231,169,184,.22);
}
.info-list .ic svg { width: 22px; height: 22px; }
.info-list .k { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--rose); font-weight: 600; }
.info-list .v { color: var(--ink); font-weight: 500; }
.info-list .v a { color: var(--plum); border-bottom: 1px solid rgba(92,42,69,.25); }
.info-list .v a:hover { border-color: var(--plum); }
.visit-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .8rem; }

.map-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.7);
  min-height: 360px;
  background: var(--blush);
}
.map-card iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; filter: saturate(.92); }

/* ---------- Instagram CTA ---------- */
.ig-band {
  border-radius: var(--radius-lg);
  padding: clamp(2.4rem, 6vw, 4.5rem);
  text-align: center;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(231,169,184,.5), transparent 60%),
    linear-gradient(150deg, var(--plum) 0%, var(--plum-deep) 100%);
  color: var(--cream);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}
.ig-band h2 { color: var(--cream); font-size: clamp(2rem, 5vw, 3.4rem); }
.ig-band .eyebrow { color: var(--rose-soft); }
.ig-band p { color: rgba(250,245,239,.8); max-width: 36rem; margin: 1rem auto 0; }
.ig-band .btn { margin-top: 2rem; }
.ig-band .petal-deco { position: absolute; opacity: .25; pointer-events: none; }

/* ---------- Footer ---------- */
.footer {
  margin-top: 2rem;
  border-top: 1px solid rgba(92,42,69,.12);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.footer .brand { font-size: 1.6rem; margin-bottom: 1rem; }
.footer p { font-size: .9rem; max-width: 26rem; }
.footer h4 { font-family: var(--font-body); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--rose); margin-bottom: 1.1rem; }
.footer ul { list-style: none; display: grid; gap: .7rem; }
.footer ul a, .footer address {
  color: var(--ink-soft); font-size: .92rem; font-style: normal; line-height: 1.6;
  transition: color .2s var(--ease);
}
.footer ul a:hover { color: var(--plum); }
.footer-bottom {
  border-top: 1px solid rgba(92,42,69,.1);
  padding-block: 1.4rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; justify-content: space-between; align-items: center;
  font-size: .8rem; color: var(--ink-faint);
}
.footer-bottom a { color: var(--ink-soft); }
.footer-bottom a:hover { color: var(--plum); }

/* ---------- Coming soon ---------- */
.soon {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8rem 1.5rem 5rem;
}
.soon-inner { max-width: 44rem; }
.soon .bloom-mark { width: clamp(90px, 18vw, 150px); height: auto; margin: 0 auto 1.8rem; animation: floaty 6s var(--ease) infinite; }
.soon h1 {
  font-size: clamp(3rem, 11vw, 7rem);
  line-height: .95;
}
.soon h1 .script { display: block; font-style: italic; font-weight: 500; color: var(--rose); font-size: .42em; letter-spacing: .04em; margin-top: .4rem; }
.soon .pill {
  display: inline-flex; align-items: center; gap: .6rem;
  margin-top: 1.8rem;
  padding: .6rem 1.3rem; border-radius: 999px;
  background: rgba(255,253,250,.8);
  border: 1px solid rgba(92,42,69,.12);
  box-shadow: var(--shadow-sm);
  font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; color: var(--plum);
}
.soon .pill .pulse {
  width: 9px; height: 9px; border-radius: 50%; background: var(--sage);
  box-shadow: 0 0 0 0 rgba(138,161,119,.6);
  animation: pulse 2s infinite;
}
.soon p { font-size: 1.1rem; max-width: 34rem; margin: 1.6rem auto 0; }
.soon .soon-cta { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(138,161,119,.55); }
  70% { box-shadow: 0 0 0 12px rgba(138,161,119,0); }
  100% { box-shadow: 0 0 0 0 rgba(138,161,119,0); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-logo { order: -1; min-height: 0; margin-bottom: .5rem; }
  .hero-logo img { width: min(74%, 340px); }
  .hero { min-height: auto; padding-top: 9rem; }
  .story-grid, .visit-grid { grid-template-columns: 1fr; }
  .story-art { order: -1; max-width: 30rem; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .nav { inset: .7rem .7rem auto; }
  .nav-mobile-open .nav-links {
    display: flex;
    position: absolute;
    top: calc(100% + .6rem);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .2rem;
    padding: .8rem;
    border-radius: var(--radius);
    background: rgba(255, 253, 250, .96);
    border: 1px solid rgba(92, 42, 69, .12);
    box-shadow: var(--shadow);
  }
  .nav-mobile-open .nav-links a { text-align: center; padding: .8rem; }
  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 1.2rem 1.8rem; }
}

@media (max-width: 420px) {
  .brand { font-size: 1.2rem; }
  .brand .mark { width: 26px; height: 26px; }
}

/* ---------- Accessibility ---------- */
:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Gifts page — "The Gifting House"
   ============================================================ */
.gifts-page .page-top { padding-top: clamp(7.5rem, 13vh, 10rem); }

.gifts-head { text-align: center; max-width: 46rem; margin: 0 auto; }
.gifts-head h1 { font-size: clamp(2.8rem, 7vw, 5rem); margin-top: .9rem; }
.gifts-head .lead { margin-top: 1.3rem; }

/* Featured collection banner */
.featured {
  position: relative;
  margin: clamp(2.5rem, 6vw, 4rem) 0 3rem;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.4rem);
  background:
    radial-gradient(75% 130% at 86% 8%, rgba(231,169,184,.55), transparent 60%),
    linear-gradient(150deg, #fff 0%, var(--blush) 100%);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.5fr .8fr;
  gap: 2rem;
  align-items: center;
  overflow: hidden;
}
.featured h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-top: .6rem; }
.featured p { margin-top: .9rem; max-width: 38rem; }
.featured-art { display: grid; place-items: center; }
.featured-art svg, .featured-art img { width: clamp(120px, 20vw, 200px); height: auto; filter: drop-shadow(0 14px 24px rgba(92,42,69,.18)); animation: floaty 7s var(--ease) infinite; }
.featured-art img { width: clamp(200px, 30vw, 340px); }

/* Filter chips */
.gfilter { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; margin-bottom: 2.6rem; }
.chip {
  padding: .55rem 1.05rem;
  border-radius: 999px;
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
  color: var(--ink-soft);
  background: rgba(255,253,250,.72);
  border: 1px solid rgba(92,42,69,.14);
  transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}
.chip:hover { color: var(--plum); border-color: rgba(201,123,146,.5); }
.chip.is-active { background: var(--plum); color: var(--cream); border-color: var(--plum); }
.chip span { opacity: .55; margin-left: .35rem; font-weight: 500; }
.chip.is-active span { opacity: .8; }

/* Product grid */
.ggrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.gcard {
  display: flex; flex-direction: column;
  background: rgba(255,253,250,.96);
  border: 1px solid rgba(92,42,69,.1);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  /* scroll-reveal start state (cascade handled by gifts.js) */
  opacity: 0;
  transform: translateY(32px) scale(.97);
  transition: opacity .6s var(--ease), transform .6s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.gcard.in { opacity: 1; transform: none; }
.gcard.in:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(201,123,146,.4); }
.gcard.hide { display: none; }

@media (prefers-reduced-motion: reduce) {
  .gcard { opacity: 1; transform: none; }
}

.gtile { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; }
.gtile[data-cat="plush-bears"]      { background: linear-gradient(150deg, #fce7ec, #f3c7d2); }
.gtile[data-cat="cuddle-cups"]      { background: linear-gradient(150deg, #f7d9e0, #e7a9b8); }
.gtile[data-cat="relaxation-boxes"] { background: linear-gradient(150deg, #e8efdc, #bcd0a3); }
.gtile[data-cat="gift-boxes"]       { background: linear-gradient(150deg, #efd9e6, #c98fb4); }
.gtile[data-cat="gourmet"]          { background: linear-gradient(150deg, #f7e8c9, #e0c07a); }
.gtile[data-cat="luxe-collection"]  { background: linear-gradient(150deg, #ecd2a8, #6b2f4d); }
.gtile[data-cat="romance"]          { background: linear-gradient(150deg, #f7cdd5, #c97b92); }
.gtile[data-cat="baby-boxes"]       { background: linear-gradient(150deg, #e8e9f3, #cdd6ea); }

.gtile .gi {
  width: 66px; height: 66px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,253,250,.78);
  color: var(--plum);
  box-shadow: 0 8px 18px -8px rgba(92,42,69,.35);
}
.gtile .gi svg { width: 32px; height: 32px; }

/* Product photo (drop files into assets/images/gifts/) */
.gphoto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.gtile.has-photo .gi { display: none; }
.gtile .gbadge { z-index: 2; }

.gbadge {
  position: absolute; top: .8rem; left: .8rem;
  font-size: .56rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  padding: .34rem .62rem; border-radius: 999px;
}
.gbadge.best { background: var(--gold); color: var(--plum-deep); }
.gbadge.new { background: var(--sage-deep); color: #fff; }

.gbody { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.gcat { font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--rose); font-weight: 600; }
.gname { font-size: 1.3rem; line-height: 1.08; color: var(--plum); }
.gfoot { margin-top: auto; padding-top: .7rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.gprice { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.gprice small { font-size: .58rem; letter-spacing: .12em; color: var(--ink-faint); font-family: var(--font-body); margin-left: .15rem; }
.gbuy {
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--plum); background: rgba(231,169,184,.25);
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.gbuy:hover { background: var(--plum); color: var(--cream); transform: translateY(-2px); }
.gbuy svg { width: 18px; height: 18px; }

.gempty { display: none; text-align: center; color: var(--ink-soft); padding: 3rem 1rem; font-size: 1.05rem; }
.gnote { text-align: center; color: var(--ink-faint); font-size: .82rem; margin-top: 2.4rem; }

/* Gift price sort */
.gsort-row { display: flex; justify-content: flex-end; margin: -1.4rem 0 1.9rem; }
.gsort { display: inline-flex; align-items: center; gap: .6rem; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); }
.gsort select {
  font-family: var(--font-body); font-size: .8rem; font-weight: 600; color: var(--plum);
  padding: .5rem 2.1rem .5rem .9rem; border-radius: 999px;
  border: 1px solid rgba(92,42,69,.16); background-color: rgba(255,253,250,.8);
  appearance: none; -webkit-appearance: none; cursor: pointer;
  text-transform: none; letter-spacing: normal;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C2A45' stroke-width='2' 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 .8rem center; background-size: 14px;
}
.gsort select:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; }

@media (max-width: 980px) {
  .ggrid { grid-template-columns: repeat(3, 1fr); }
  .featured { grid-template-columns: 1fr; }
  .featured-art { order: -1; }
}
@media (max-width: 680px) {
  .ggrid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .gname { font-size: 1.15rem; }
}
@media (max-width: 380px) {
  .ggrid { grid-template-columns: 1fr; }
}

/* ============================================================
   Brand logo (image)
   ============================================================ */
.brand-logo { height: 48px; width: auto; display: block; }
.footer .brand-logo { height: 64px; margin-bottom: 1rem; }
@media (max-width: 420px) { .brand-logo { height: 42px; } }

/* ============================================================
   Shopping bag — nav button + drawer
   ============================================================ */
.bag-btn {
  position: relative;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 999px;
  color: var(--plum);
  background: rgba(231,169,184,.22);
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.bag-btn:hover { background: var(--plum); color: var(--cream); transform: translateY(-2px); }
.bag-btn svg { width: 20px; height: 20px; }
.bag-count {
  position: absolute; top: -3px; right: -3px;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px;
  background: var(--gold); color: var(--plum-deep);
  font-family: var(--font-body); font-size: .62rem; font-weight: 700;
  display: grid; place-items: center;
  border: 2px solid var(--cream);
  opacity: 0; transform: scale(.5);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.bag-btn.has-items .bag-count { opacity: 1; transform: scale(1); }
.bag-btn.pulse { animation: bagpulse .42s var(--ease); }
@keyframes bagpulse { 0%,100% { transform: none; } 35% { transform: scale(1.16); } }

.bag-overlay, .pmodal-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(60,26,45,.45);
  opacity: 0; transition: opacity .3s var(--ease);
}
.bag-overlay.show, .pmodal-overlay.show { opacity: 1; }
/* Safety net: an overlay/modal that isn't visibly shown must never swallow clicks
   (a missed rAF once left an invisible overlay blocking the whole gift page). */
.bag-overlay:not(.show), .pmodal-overlay:not(.show), .pmodal:not(.show) { pointer-events: none; }

.bag-drawer {
  position: fixed; top: 0; right: 0; z-index: 90;
  height: 100%; width: min(420px, 92vw);
  background: var(--cream);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform .32s var(--ease);
}
.bag-drawer.show { transform: none; }
.bag-head { display: flex; align-items: center; justify-content: space-between; padding: 1.4rem 1.5rem; border-bottom: 1px solid rgba(92,42,69,.12); }
.bag-head h2 { font-size: 1.8rem; }
.bag-close, .pmodal-close {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center; border-radius: 50%;
  color: var(--plum); background: rgba(231,169,184,.22);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.bag-close:hover, .pmodal-close:hover { background: var(--plum); color: var(--cream); }
.bag-close svg, .pmodal-close svg { width: 18px; height: 18px; }

.bag-body { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.bag-foot { padding: 1.3rem 1.5rem; border-top: 1px solid rgba(92,42,69,.12); }
.bag-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.bag-total span { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.bag-total strong { font-family: var(--font-display); font-size: 1.8rem; color: var(--plum); }
.bag-total small { font-size: .55rem; color: var(--ink-faint); font-family: var(--font-body); }
.bag-foot-actions { display: flex; gap: .7rem; }
.bag-clear-all { flex: none; padding-left: 1.1rem; padding-right: 1.1rem; white-space: nowrap; }
.bag-checkout { flex: 1; }

.bag-item { display: grid; grid-template-columns: 64px 1fr auto; gap: .9rem; padding: .95rem 0; border-bottom: 1px solid rgba(92,42,69,.08); }
.bag-thumb { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: linear-gradient(150deg, var(--blush), #fff); display: grid; place-items: center; }
.bag-thumb-img { width: 100%; height: 100%; object-fit: cover; }
.bag-item-main h3 { font-size: 1.02rem; line-height: 1.15; color: var(--plum); }
.bag-price { font-size: .78rem; color: var(--ink-soft); margin: .15rem 0 .5rem; }
.bag-qty { display: flex; align-items: center; gap: .5rem; }
.qbtn { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(231,169,184,.28); color: var(--plum); font-size: 1rem; line-height: 1; transition: background-color .2s var(--ease), color .2s var(--ease); }
.qbtn:hover { background: var(--plum); color: var(--cream); }
.qval { min-width: 18px; text-align: center; font-weight: 600; color: var(--ink); }
.bag-rm { margin-left: .35rem; font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.bag-rm:hover { color: var(--rose); }
.bag-line { font-family: var(--font-display); font-size: 1.12rem; color: var(--ink); font-weight: 600; }

.bag-empty { text-align: center; padding: 3rem 1rem; color: var(--ink-soft); }
.bag-empty-ic, .bag-done-ic { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 1rem; border-radius: 50%; background: rgba(231,169,184,.22); color: var(--plum); }
.bag-empty-ic svg { width: 28px; height: 28px; }
.bag-empty .btn { margin-top: 1.2rem; }
.bag-checkout-done { text-align: center; padding: .5rem 0 1rem; }
.bag-done-ic svg { width: 28px; height: 28px; }
.bag-checkout-done h3 { font-size: 1.6rem; }
.bag-checkout-done p { font-size: .9rem; margin-top: .5rem; }
.bag-summary { white-space: pre-wrap; text-align: left; font-family: var(--font-body); font-size: .78rem; line-height: 1.6; background: rgba(243,222,226,.5); border: 1px solid rgba(92,42,69,.12); border-radius: 12px; padding: 1rem; margin: 1.2rem 0; color: var(--ink); }
.bag-actions { display: grid; gap: .6rem; margin-top: 1.2rem; }
.bag-actions .btn { width: 100%; }
.bag-actions .btn svg { width: 18px; height: 18px; flex: none; }
.bag-hint { font-size: .76rem; color: var(--ink-faint); margin-top: 1rem; line-height: 1.55; }
.bag-mini { display: flex; gap: .6rem; justify-content: center; align-items: center; margin-top: .9rem; color: var(--ink-faint); }
.bag-link { font-size: .78rem; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.bag-link:hover { color: var(--plum); }

.bag-toast-wrap { position: fixed; left: 50%; bottom: 1.6rem; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: .5rem; align-items: center; pointer-events: none; }
.bag-toast { background: var(--plum); color: var(--cream); padding: .8rem 1.3rem; border-radius: 999px; font-size: .8rem; font-weight: 500; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.bag-toast.show { opacity: 1; transform: none; }

/* ============================================================
   Product detail modal
   ============================================================ */
.pmodal {
  position: fixed; z-index: 90;
  top: 50%; left: 50%;
  transform: translate(-50%, -46%) scale(.98);
  width: min(820px, 94vw); max-height: 90vh; overflow: auto;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1fr 1fr;
  opacity: 0;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.pmodal.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.pmodal-close { position: absolute; top: 1rem; right: 1rem; z-index: 2; background: rgba(255,253,250,.88); }
.pmodal-media { position: relative; min-height: 320px; }
.pmodal-media .gtile { height: 100%; aspect-ratio: auto; border-radius: 0; }
.pmodal-media .gtile .gi { width: 92px; height: 92px; }
.pmodal-media .gtile .gi svg { width: 44px; height: 44px; }
.pmodal-info { padding: clamp(1.6rem, 3vw, 2.6rem); display: flex; flex-direction: column; }
.pmodal-cat { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--rose); font-weight: 600; }
.pmodal-name { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-top: .35rem; }
.pmodal-price { font-family: var(--font-display); font-size: 1.85rem; color: var(--ink); font-weight: 600; margin-top: .5rem; }
.pmodal-price small { font-size: .58rem; color: var(--ink-faint); font-family: var(--font-body); letter-spacing: .1em; margin-left: .15rem; }
.pmodal-desc { margin-top: 1rem; color: var(--ink-soft); line-height: 1.7; }
.pmodal-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.ptag { font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sage-deep); background: rgba(138,161,119,.16); padding: .34rem .7rem; border-radius: 999px; font-weight: 600; }
.pmodal-actions { margin-top: auto; padding-top: 1.6rem; display: flex; align-items: center; gap: 1rem; }
.qstep { display: flex; align-items: center; gap: .7rem; border: 1px solid rgba(92,42,69,.18); border-radius: 999px; padding: .3rem .5rem; }
.qstep .qbtn { width: 30px; height: 30px; font-size: 1.1rem; }
.qstep-val { min-width: 20px; text-align: center; font-weight: 600; color: var(--ink); }
.pmodal-add { flex: 1; }

@media (max-width: 680px) {
  .pmodal { grid-template-columns: 1fr; top: auto; bottom: 0; left: 0; transform: translateY(100%); width: 100%; max-height: 92vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .pmodal.show { transform: none; }
  /* Mobile: show the FULL product photo (no cropping) */
  .pmodal-media { min-height: 0; aspect-ratio: auto; }
  .pmodal-media .gtile { height: auto; aspect-ratio: auto; }
  .pmodal-media .gtile:not(.has-photo) { aspect-ratio: 16 / 10; }
  .pmodal-media .gtile.has-photo { background: var(--blush); }
  .pmodal-media .gphoto { position: static; display: block; width: 100%; height: auto; max-height: 60vh; object-fit: contain; }
}

/* ============================================================
   Cursor glow — soft pink light that trails the cursor (desktop)
   ============================================================ */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 440px; height: 440px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 70;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle closest-side,
    rgba(201, 123, 146, .45) 0%,
    rgba(231, 169, 184, .30) 38%,
    rgba(231, 169, 184, 0) 72%);
  filter: blur(24px);
  opacity: 0;
  transition: opacity .45s var(--ease);
  mix-blend-mode: multiply;
  will-change: transform;
}
.cursor-glow.on { opacity: 1; }

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-glow { display: none !important; }
}

/* ============================================================
   Flower page — browsable category tree + Make-Your-Own builder
   ============================================================ */
.flower-page .page-top {
  padding-top: clamp(7.5rem, 13vh, 10rem);
  padding-bottom: clamp(4rem, 10vw, 7rem);
}

/* ---- View transition (per navigation) ---- */
.flview { opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.flview.show { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .flview { opacity: 1; transform: none; transition: none; } }

/* ---- Breadcrumb + back ---- */
.flbar { display: flex; align-items: center; gap: 1rem 1.4rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.flback {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  color: var(--plum);
  background: rgba(255,253,250,.7);
  border: 1px solid rgba(92,42,69,.14);
  padding: .5rem .95rem; border-radius: 999px;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.flback:hover { background: var(--plum); color: var(--cream); transform: translateX(-2px); }
.flback svg { width: 15px; height: 15px; }
.flcrumb { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .76rem; letter-spacing: .06em; color: var(--ink-faint); }
.flcrumb a { color: var(--ink-soft); transition: color .2s var(--ease); }
.flcrumb a:hover { color: var(--plum); }
.flcrumb [aria-current] { color: var(--plum); font-weight: 600; }
.flsep { opacity: .5; }

/* ---- View header ---- */
.flhead { text-align: center; max-width: 46rem; margin: 0 auto clamp(2.4rem, 6vw, 3.6rem); }
.flhead h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); margin-top: .9rem; }
.flhead .lead { margin-top: 1.2rem; }

/* ---- Bloom placeholder art ---- */
.bloom { width: clamp(64px, 22%, 112px); height: auto; filter: drop-shadow(0 8px 16px rgba(92,42,69,.22)); }
.bloom .petals ellipse { fill: #fffaf6; stroke: rgba(92,42,69,.16); stroke-width: .9; }
.bloom .petals-b ellipse { fill: #fdeef0; opacity: .92; }
.bloom .bloomc { fill: var(--gold); }

/* ---- Category tiles ---- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: clamp(1rem, 2.4vw, 1.6rem); }
.cat-tile {
  display: flex; flex-direction: column;
  background: rgba(255,253,250,.96);
  border: 1px solid rgba(92,42,69,.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  touch-action: manipulation;                       /* no 300ms tap delay / double-tap */
  -webkit-tap-highlight-color: rgba(201,123,146,.18);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.cat-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(201,123,146,.4); }
.cat-tile:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; }

.cat-art {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--blush);
}
.cat-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(80% 70% at 50% 30%, rgba(255,255,255,.28), transparent 60%),
              linear-gradient(180deg, transparent 55%, rgba(60,26,45,.16));
}
.cat-art .bloom { position: relative; z-index: 1; transition: transform .5s var(--ease); }
.cat-tile:hover .cat-art .bloom { transform: scale(1.06) rotate(-3deg); }
.cat-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 0; }
.cat-art.has-photo .bloom { display: none; }
.cat-art.has-photo::after { background: linear-gradient(180deg, transparent 55%, rgba(60,26,45,.18)); }

/* Category tiles: show the whole bouquet, centred on a soft backdrop (not cropped). */
.cat-tile .cat-photo { object-fit: contain; }
.cat-tile .cat-art.has-photo { background: linear-gradient(160deg, #fff, var(--blush)); }
.cat-tile .cat-art.has-photo::after { background: none; }

.cat-count {
  position: absolute; z-index: 2; top: .8rem; right: .8rem;
  font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  color: var(--plum); background: rgba(255,253,250,.9);
  padding: .34rem .6rem; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.cat-tile-body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.cat-label { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; color: var(--plum); }
.cat-blurb { color: var(--ink-soft); font-size: .92rem; line-height: 1.5; }
.cat-more {
  margin-top: auto; padding-top: .9rem;
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--rose);
}
.cat-more svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.cat-tile:hover .cat-more svg { transform: translateX(4px); }

/* ---- Hue gradients (placeholder art) ---- */
[data-hue="rose"]   { background: linear-gradient(150deg, #f7cdd5, #c97b92); }
[data-hue="blush"]  { background: linear-gradient(150deg, #fce7ec, #e7a9b8); }
[data-hue="plum"]   { background: linear-gradient(150deg, #a86d86, #3c1a2d); }
[data-hue="sage"]   { background: linear-gradient(150deg, #e8efdc, #8aa177); }
[data-hue="cream"]  { background: linear-gradient(150deg, #f3e9dd, #d9c3b0); }
[data-hue="sky"]    { background: linear-gradient(150deg, #e3f0fa, #8fc3e8); }
[data-hue="peach"]  { background: linear-gradient(150deg, #fde4d2, #f0a673); }
[data-hue="lilac"]  { background: linear-gradient(150deg, #ece0f3, #b79fd6); }
[data-hue="gold"]   { background: linear-gradient(150deg, #f7e8c9, #e0c07a); }
[data-hue="ruby"]   { background: linear-gradient(150deg, #e07a92, #7c1d3a); }

/* ---- Reveal cascade (tiles + product cards) ---- */
.flreveal { opacity: 0; transform: translateY(22px) scale(.98); transition: opacity .6s var(--ease), transform .6s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.flreveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .flreveal { opacity: 1; transform: none; } }

/* ---- Make-Your-Own builder ---- */
.builder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 3vw, 2rem); }
.fbuilder {
  display: flex; flex-direction: column;
  background: rgba(255,253,250,.9);
  border: 1px solid rgba(92,42,69,.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.fpreview {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 16 / 10; overflow: hidden;
  background: var(--preview, var(--blush));
  transition: background .4s var(--ease);
}
.fpreview::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(75% 70% at 50% 32%, rgba(255,255,255,.3), transparent 60%),
              linear-gradient(180deg, transparent 50%, rgba(60,26,45,.22));
}
.fpreview .bloom { position: relative; z-index: 1; width: clamp(70px, 24%, 120px); }
.fpreview.has-photo .bloom { display: none; }
.fprice {
  position: absolute; z-index: 2; left: 1rem; bottom: 1rem;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: #fff;
  background: rgba(60,26,45,.7);
  padding: .25rem .75rem; border-radius: 999px;
  text-shadow: 0 1px 6px rgba(0,0,0,.25);
}
.fprice small { font-size: .52rem; letter-spacing: .12em; font-family: var(--font-body); opacity: .85; margin-left: .15rem; }

.fbuilder-body { padding: clamp(1.3rem, 2.6vw, 1.8rem); display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.fbuilder-body .gcat { font-size: .62rem; }
.fbuilder-body h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.fbuilder-sub { color: var(--ink-soft); font-size: .9rem; margin-bottom: .5rem; }

.fopt { margin-top: .4rem; }
.fopt-label { display: block; font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); margin-bottom: .55rem; }
.fopt-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.fchip {
  padding: .5rem .9rem; border-radius: 999px;
  font-size: .76rem; font-weight: 600; letter-spacing: .04em;
  color: var(--ink-soft);
  background: rgba(255,253,250,.8);
  border: 1px solid rgba(92,42,69,.16);
  transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
}
.fchip:hover { color: var(--plum); border-color: rgba(201,123,146,.55); }
.fchip.is-active { background: var(--plum); color: var(--cream); border-color: var(--plum); }
.fswatch { display: inline-flex; align-items: center; gap: .5rem; }
.sw-dot { width: 15px; height: 15px; border-radius: 50%; flex: none; border: 1px solid rgba(92,42,69,.22); box-shadow: 0 1px 3px rgba(60,26,45,.18); }
.fchip.is-active .sw-dot { box-shadow: 0 0 0 2px rgba(255,253,250,.85); }

.fbuild-actions { margin-top: auto; padding-top: 1.3rem; display: flex; align-items: center; gap: .9rem; }
.fadd { flex: 1; white-space: nowrap; }

/* ---- Single full-width configurator (Make Your Own Bouquet) ---- */
.mybuilder { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: clamp(1.2rem, 3vw, 2rem); align-items: start; }
.mybuilder .fpreview { position: sticky; top: 6.5rem; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.bloom-wrap { position: relative; z-index: 1; display: grid; place-items: center; }
.mybody {
  background: rgba(255,253,250,.92);
  border: 1px solid rgba(92,42,69,.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.3rem, 2.6vw, 2rem);
  display: flex; flex-direction: column; gap: 1.25rem;
}
.mybody .fopt { margin-top: 0; }
.fopt-label small { font-weight: 500; letter-spacing: .03em; text-transform: none; color: var(--ink-faint); margin-left: .4rem; font-size: .92em; }

/* segmented bouquet-type toggle */
.myseg { display: inline-flex; gap: .3rem; padding: .3rem; background: rgba(92,42,69,.07); border-radius: 999px; align-self: flex-start; }
.myseg-btn { padding: .55rem 1.15rem; border-radius: 999px; font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--ink-soft); transition: color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease); }
.myseg-btn.is-active { background: var(--plum); color: var(--cream); box-shadow: var(--shadow-sm); }

/* show only the active type's base options */
.mybody[data-type="roses"] .type-mixed { display: none; }
.mybody[data-type="mixed"] .type-roses { display: none; }

/* wrap dropdown */
.wrap-select {
  width: 100%; padding: .8rem 2.6rem .8rem 1rem;
  border-radius: 14px; border: 1px solid rgba(92,42,69,.2);
  background-color: rgba(255,253,250,.9); color: var(--ink);
  font-family: var(--font-body); font-size: .95rem; font-weight: 500;
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C2A45' stroke-width='2' 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 .9rem center; background-size: 16px;
}
.wrap-select:focus-visible { outline: 2px solid var(--plum); outline-offset: 1px; }

/* bouquet toppers (checkbox cards + small thumbnail) */
.topper-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.topper { display: flex; align-items: center; gap: .55rem; padding: .5rem .65rem .5rem .55rem; border: 1px solid rgba(92,42,69,.16); border-radius: 14px; background: rgba(255,253,250,.7); cursor: pointer; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.topper:hover { border-color: rgba(201,123,146,.55); }
.topper.is-on { border-color: var(--plum); background: rgba(231,169,184,.16); }
.topper input { width: 16px; height: 16px; flex: none; accent-color: var(--plum); cursor: pointer; }
/* small square thumbnail — drop images into assets/images/toppers/<value>.<ext> */
.topper-thumb {
  position: relative; flex: none; overflow: hidden;
  width: 36px; height: 36px; border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, #fff, var(--blush));
  border: 1px solid rgba(92,42,69,.1);
}
.topper-thumb .bloom { width: 20px; height: auto; filter: none; }
.topper-thumb.has-photo .bloom { display: none; }
.topper-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topper-name { font-size: .86rem; font-weight: 600; color: var(--ink); line-height: 1.2; }
.topper-name em { font-style: normal; color: var(--rose); font-weight: 600; font-size: .76rem; margin-left: .2rem; }
.topper-note { font-size: .68rem; color: var(--ink-faint); line-height: 1.3; margin-top: .15rem; }
.topper-price { font-size: .76rem; font-weight: 600; color: var(--rose); white-space: nowrap; }
/* Pearl Mesh colour choice — spans both grid columns, appears once Pearl Mesh is checked */
.topper-colorpick { grid-column: 1 / -1; padding: .3rem .2rem 0; }
.topper-colorpick .fopt-label { margin-bottom: .45rem; }

/* add-ons (quantity steppers) */
.addon-list { display: flex; flex-direction: column; gap: .4rem; }
.addon { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .55rem .55rem .55rem .85rem; border: 1px solid rgba(92,42,69,.14); border-radius: 14px; background: rgba(255,253,250,.7); transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.addon.is-on { border-color: var(--plum); background: rgba(231,169,184,.14); }
.addon-name { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: .88rem; font-weight: 500; color: var(--ink); line-height: 1.3; }
.addon-name em { font-style: normal; color: var(--rose); font-weight: 600; font-size: .82rem; margin-left: .2rem; }
.addon-note { font-size: .68rem; color: var(--ink-faint); line-height: 1.3; margin-top: .15rem; }
.qstep-sm { padding: .2rem .35rem; flex: none; }
.qstep-sm .qbtn { width: 26px; height: 26px; }
.addon-q, .topper-q { min-width: 18px; text-align: center; font-weight: 600; color: var(--ink); }

/* instructions */
.myinstructions { width: 100%; padding: .8rem 1rem; border-radius: 14px; border: 1px solid rgba(92,42,69,.2); background: rgba(255,253,250,.9); font-family: var(--font-body); font-size: .92rem; color: var(--ink); line-height: 1.5; resize: vertical; }
.myinstructions:focus-visible { outline: 2px solid var(--plum); outline-offset: 1px; }

.mybody .fbuild-actions { border-top: 1px solid rgba(92,42,69,.12); }

/* ---- Coming-soon leaf ---- */
.leaf-soon { text-align: center; max-width: 40rem; margin: 0 auto; padding: clamp(1rem, 4vw, 2.5rem) 0; }
.leaf-bloom { display: grid; place-items: center; width: clamp(110px, 26vw, 170px); aspect-ratio: 1; margin: 0 auto 1.8rem; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow); }
.leaf-bloom .bloom { width: 42%; }
.leaf-soon h2 { font-size: clamp(2rem, 5vw, 3rem); }
.leaf-soon p { color: var(--ink-soft); font-size: 1.05rem; margin: 1rem auto 0; max-width: 32rem; }
.leaf-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* product-card art square within the reused .ggrid */
.gtile-art { aspect-ratio: 1 / 1; border-radius: 0; }
.fdesc { font-size: .8rem; color: var(--ink-soft); line-height: 1.45; margin-top: .1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gcard[role="button"] { cursor: pointer; }

/* Bouquet detail modal: full photo centred on a soft backdrop */
.flower-modal .pmodal-media { min-height: 320px; background: linear-gradient(160deg, #fff, var(--blush)); display: grid; place-items: center; }
.flower-modal .pmodal-media .cat-art { width: 100%; height: 100%; aspect-ratio: auto; background: transparent; }
.flower-modal .pmodal-media .cat-art::after { display: none; }
.flower-modal .pmodal-media .cat-photo { object-fit: contain; }
@media (max-width: 680px) { .flower-modal .pmodal-media { min-height: 46vh; } }

/* Customize modal: single column (photo header + full builder controls), scrolls. */
.customize-modal { grid-template-columns: 1fr; width: min(560px, 94vw); max-height: 92vh; overflow: auto; }
.customize-modal .pmodal-media { min-height: 180px; max-height: 32vh; overflow: hidden; }
/* Make-Your-Own live preview fills the media banner (overrides .fpreview aspect-ratio) */
.customize-modal .pmodal-media .fpreview { width: 100%; height: 100%; aspect-ratio: auto; }
.customize-modal .pmodal-info { gap: .2rem; }
.customize-modal .pmodal-sub { color: var(--ink-soft); font-size: .88rem; line-height: 1.5; margin: .35rem 0 .2rem; }
.customize-modal .cm-price { margin-top: .2rem; }
/* the embedded configurator sits flush inside the modal (no double panel) */
.customize-modal .mybody { background: transparent; border: 0; box-shadow: none; padding: .4rem 0 0; }
@media (max-width: 680px) { .customize-modal .pmodal-media { max-height: 30vh; } }

/* "from" price label on product cards */
.gfrom { font-family: var(--font-body); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .builder-grid { grid-template-columns: 1fr; }
  .mybuilder { grid-template-columns: 1fr; }
  .mybuilder .fpreview { position: static; aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) {
  .flhead h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
  .fbuild-actions { flex-direction: column; align-items: stretch; }
  .fadd { width: 100%; }
  .topper-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Sakura petals background (homepage) + readability re-theme
   ============================================================ */
.sakura { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.sakura-bg {
  position: absolute; inset: -2%;
  background-image: url("../images/site/sakura-bg.jpg");
  background-size: cover; background-position: center 42%; background-repeat: no-repeat;
}
/* Scrim darkened for whole-page legibility (design darkened the top only). */
.sakura-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(56,18,42,0.60) 0%, rgba(56,18,42,0.30) 24%,
    rgba(56,18,42,0.32) 58%, rgba(46,14,36,0.55) 100%);
}
.sakura-petals { position: absolute; inset: 0; display: block; }
.sakura-haze { position: absolute; inset: 0; background: radial-gradient(135% 80% at 50% 6%, rgba(255,241,248,0.30), rgba(255,241,248,0) 44%); }
.sakura-vignette { position: absolute; inset: 0; background: radial-gradient(120% 100% at 50% 40%, rgba(56,18,42,0) 50%, rgba(46,14,36,0.55) 100%); }

/* Dark fallback base so pages never flash light-cream behind light text. */
body[data-scene="home"], body[data-scene="page"] { background: #3a142c; }

/* --- Homepage text over the backdrop goes light (opaque cards keep their dark text) --- */
[data-scene="home"] .hero .eyebrow,
[data-scene="home"] .story .eyebrow,
[data-scene="home"] .offer-head .eyebrow,
[data-scene="home"] .quote .eyebrow,
[data-scene="home"] .visit .eyebrow { color: #ffd9e6; }

[data-scene="home"] .hero h1,
[data-scene="home"] .story h2,
[data-scene="home"] .offer-head h2,
[data-scene="home"] .visit h2,
[data-scene="home"] .quote blockquote {
  color: #fff6fb; text-shadow: 0 2px 22px rgba(30,8,22,.55);
}
[data-scene="home"] .hero h1 .script,
[data-scene="home"] .quote blockquote span,
[data-scene="home"] .story .signature { color: #ffc8dc; }

[data-scene="home"] .hero .lead,
[data-scene="home"] .story p,
[data-scene="home"] .offer-head .lead,
[data-scene="home"] .visit .lead {
  color: rgba(255,247,250,.9); text-shadow: 0 1px 12px rgba(30,8,22,.45);
}

[data-scene="home"] .hero-meta .item .k,
[data-scene="home"] .visit .info-list .k { color: rgba(255,228,238,.72); }
[data-scene="home"] .hero-meta .item .v,
[data-scene="home"] .visit .info-list .v,
[data-scene="home"] .visit .info-list .v a { color: #fff6fb; }
[data-scene="home"] .visit .info-list .ic { color: #ffc8dc; border-color: rgba(255,255,255,.25); }
[data-scene="home"] .scroll-hint { color: rgba(255,240,246,.82); }

/* Footer sits on the backdrop on every page — soft dark panel + light text. */
.footer {
  background: rgba(38,12,28,.8);
  border-top: 1px solid rgba(255,255,255,.1);
}
.footer p,
.footer ul a,
.footer address,
.footer-bottom { color: rgba(255,246,250,.82); }
.footer h4 { color: #ffc8dc; }
.footer ul a:hover,
.footer-bottom a:hover { color: #fff; }
.footer-bottom { border-top-color: rgba(255,255,255,.12); }

/* --- Inner pages (data-scene="page"): light text for content over the backdrop.
   Opaque islands (featured banner, product/category cards, builder panels, modals,
   filter chips, selects) keep their own dark-on-light styling and aren't touched. --- */
/* Gift page header + notes */
.gifts-head h1,
.flhead h1,
.soon h1 { color: #fff6fb; text-shadow: 0 2px 22px rgba(30,8,22,.55); }
.gifts-head .eyebrow,
.flhead .eyebrow { color: #ffd9e6; }
.gifts-head .lead,
.flhead .lead { color: rgba(255,247,250,.9); text-shadow: 0 1px 12px rgba(30,8,22,.45); }

/* Menu coming-soon */
.soon h1 .script { color: #ffc8dc; }
.soon > .soon-inner > p, .soon p { color: rgba(255,247,250,.9); text-shadow: 0 1px 12px rgba(30,8,22,.45); }

/* Flower breadcrumb (the .flback pill keeps its own light bg) */
.flcrumb { color: rgba(255,240,246,.7); }
.flcrumb a { color: rgba(255,240,246,.82); }
.flcrumb a:hover { color: #fff; }
.flcrumb [aria-current] { color: #fff6fb; }

/* Flower "blooming soon" leaf */
.leaf-soon h2 { color: #fff6fb; text-shadow: 0 2px 18px rgba(30,8,22,.5); }
.leaf-soon p { color: rgba(255,247,250,.88); }

/* Notes + empty states + gift sort label sit on the backdrop */
.gnote { color: rgba(255,240,246,.72); }
.gempty { color: rgba(255,247,250,.85); }
.gsort { color: rgba(255,240,246,.78); }

@media (prefers-reduced-motion: reduce) {
  .sakura-petals { opacity: .9; }
}

/* ============================================================
   Motion & delight layer (effects.js) — pure polish, no content
   ============================================================ */

/* ---------- Performance (mobile-first) ---------- */
/* Offscreen cards skip layout & paint entirely — long grids scroll much smoother. */
.gcard, .cat-tile { content-visibility: auto; contain-intrinsic-size: 260px 440px; }

@media (max-width: 760px) {
  /* The nav's live backdrop blur over an animating canvas is the #1 GPU cost on phones. */
  .nav-inner { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255,253,250,.95); }
}

/* Brand selection + slim scrollbar */
::selection { background: rgba(201,123,146,.5); color: #fff; }
html { scrollbar-width: thin; scrollbar-color: rgba(201,123,146,.65) rgba(38,12,28,.3); }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: rgba(38,12,28,.25); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--rose-soft), var(--rose));
  border-radius: 999px;
  border: 3px solid rgba(38,12,28,.4);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--rose), var(--plum)); }

/* Scroll progress bar (rose → gold) */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 99;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--rose), var(--gold-soft), var(--gold));
  box-shadow: 0 0 12px rgba(201,123,146,.5);
  pointer-events: none;
}

/* Fly-to-bag petal */
.fly-petal {
  position: fixed; top: 0; left: 0; width: 26px; height: 26px;
  z-index: 120; pointer-events: none; will-change: transform, opacity;
  filter: drop-shadow(0 3px 6px rgba(60,26,45,.4));
}
.fly-petal svg { width: 100%; height: 100%; display: block; }

/* Petal burst on click / tap */
.burst-petal {
  position: fixed; top: 0; left: 0; width: 14px; height: 14px;
  z-index: 210; pointer-events: none; will-change: transform, opacity;
}
.burst-petal svg { width: 100%; height: 100%; display: block; }

/* ---------- Signature intro veil (once per session) ---------- */
.intro { position: fixed; inset: 0; z-index: 200; cursor: pointer; }
.intro-half {
  position: absolute; left: 0; right: 0; height: 50.5%;
  background: linear-gradient(180deg, #2c0f21 0%, #421831 100%);
  transition: transform .85s cubic-bezier(.72, 0, .18, 1);
}
.intro-top { top: 0; }
.intro-bot { bottom: 0; background: linear-gradient(0deg, #2c0f21 0%, #421831 100%); }
.intro-center {
  position: absolute; inset: 0;
  display: grid; place-items: center; align-content: center; gap: .4rem;
  text-align: center;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.intro-center::before {           /* soft rose glow behind the mark */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(38% 34% at 50% 44%, rgba(201,123,146,.35), transparent 70%);
  pointer-events: none;
}
.intro-mark { position: relative; width: clamp(84px, 14vw, 128px); }
.intro-mark svg { width: 100%; height: auto; display: block; animation: introSpin 2.4s var(--ease) both; }
.intro-mark::after {              /* expanding ring */
  content: ""; position: absolute; inset: -26%;
  border: 1.5px solid rgba(255,214,229,.55); border-radius: 50%;
  opacity: 0; transform: scale(.45);
  animation: introRing 1.1s var(--ease) .75s both;
}
.intro .ib-a, .intro .ib-b, .intro .ib-c {
  transform-origin: 32px 32px;
  transform: scale(0) rotate(-40deg);
  animation: introBloom .8s cubic-bezier(.34, 1.56, .64, 1) both;
}
.intro .ib-a { animation-delay: .22s; }
.intro .ib-b { animation-delay: .42s; }
.intro .ib-c { animation-delay: .6s; animation-duration: .5s; }
.intro-name {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 6vw, 3.4rem); color: #fff6fb;
  letter-spacing: .5em; text-indent: .5em; opacity: 0;
  animation: introName .9s var(--ease) .8s both;
}
.intro-sub {
  font-size: .68rem; font-weight: 600; letter-spacing: .34em; text-indent: .34em;
  text-transform: uppercase; color: #ffc8dc; opacity: 0;
  animation: introSub .7s var(--ease) 1.25s both;
}
.intro.out .intro-top { transform: translateY(-101%); }
.intro.out .intro-bot { transform: translateY(101%); }
.intro.out .intro-center { opacity: 0; transform: scale(.96); }
.intro.out { pointer-events: none; }
@keyframes introBloom { to { transform: scale(1) rotate(0deg); } }
@keyframes introSpin { from { transform: rotate(-14deg); } to { transform: rotate(0deg); } }
@keyframes introRing { 0% { opacity: .9; transform: scale(.45); } 100% { opacity: 0; transform: scale(1.25); } }
@keyframes introName { 0% { opacity: 0; letter-spacing: .5em; transform: translateY(12px); }
                       100% { opacity: 1; letter-spacing: .14em; text-indent: .14em; transform: none; } }
@keyframes introSub { to { opacity: .85; } }

/* Cursor-glow click ripple (pseudo — independent of the glow's inline transform) */
.cursor-glow::after {
  content: ""; position: absolute; inset: 32%;
  border-radius: 50%; border: 2px solid transparent;
  opacity: 0;
}
.cursor-glow.pop::after { animation: ringPop .5s var(--ease); }
@keyframes ringPop {
  0%   { opacity: .9; transform: scale(.3);  border-color: rgba(255,255,255,.9); }
  100% { opacity: 0;  transform: scale(1.7); border-color: rgba(201,123,146,0); }
}

/* Cursor-tilt: quick transform response while tilting (effects.js sets the transform) */
.card.is-tilt, .cat-tile.is-tilt, .gcard.is-tilt {
  transition: transform .1s ease-out;
  will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {

  /* Word-stagger headline entrance (effects.js splits words into .w spans) */
  .wsplit .w {
    display: inline-block;
    opacity: 0;
    filter: blur(8px);
    transform: translateY(.45em) rotate(2deg);
    animation: wordIn .7s var(--ease) forwards;
    animation-delay: calc(.15s + var(--wi, 0) * .09s);
  }
  .wsplit .script.w { display: block; }  /* keep the accent on its own line */
  @keyframes wordIn { to { opacity: 1; filter: blur(0); transform: none; } }

  /* Shimmering gradient on the script accents + quote highlight */
  .hero h1 .script, .soon h1 .script, .quote blockquote span {
    background: linear-gradient(100deg, #ffc8dc 20%, #fff6fb 38%, var(--gold-soft) 52%, #ffc8dc 70%);
    background-size: 260% 100%;
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
    animation: shimmerText 7s linear infinite;
  }
  @keyframes shimmerText { to { background-position: -260% 0; } }

  /* Split script accents need BOTH animations — the shimmer shorthand above would
     otherwise replace the wordIn entrance and leave the accent stuck invisible. */
  .wsplit .script.w {
    animation: wordIn .7s var(--ease) forwards, shimmerText 7s linear infinite;
    animation-delay: calc(.15s + var(--wi, 0) * .09s), 0s;
  }

  /* The sakura backdrop slowly breathes (Ken Burns) */
  .sakura-bg {
    animation: kenburns 32s ease-in-out infinite alternate;
    will-change: transform;
  }
  @keyframes kenburns {
    from { transform: scale(1) translateY(0); }
    to   { transform: scale(1.07) translateY(-1.2%); }
  }

  /* Hero logo drifts gently */
  .hero-logo img { animation: floaty 7s var(--ease) infinite; }

  /* Photos ease in closer on hover */
  .gcard .cat-photo, .cat-tile .cat-photo, .gcard .gphoto { transition: transform .7s var(--ease); }
  .gcard:hover .cat-photo, .cat-tile:hover .cat-photo, .gcard:hover .gphoto { transform: scale(1.06); }

  /* Option chips / toppers pop when selected */
  .fchip.is-active, .chip.is-active, .topper.is-on { animation: chipPop .28s var(--ease); }
  @keyframes chipPop { 0% { transform: scale(1); } 45% { transform: scale(1.1); } 100% { transform: scale(1); } }

  /* "Now open" tags glow softly */
  .card .tag { animation: tagGlow 3.2s ease-in-out infinite; }
  @keyframes tagGlow {
    0%, 100% { box-shadow: 0 0 0 rgba(138,161,119,0); }
    50%      { box-shadow: 0 0 16px rgba(138,161,119,.6); }
  }

  /* Light sweep across primary/gold buttons on hover */
  .btn-primary, .btn-gold { position: relative; overflow: hidden; }
  .btn-primary::after, .btn-gold::after {
    content: ""; position: absolute; top: 0; left: -85%;
    width: 55%; height: 100%;
    transform: skewX(-22deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
    transition: left .65s var(--ease);
    pointer-events: none;
  }
  .btn-primary:hover::after, .btn-gold:hover::after { left: 130%; }
}

/* ---------- Performance: touch devices skip infinite repaint animations ----------
   (Last in the file on purpose — must out-cascade the motion rules above.) */
@media (pointer: coarse) {
  .hero h1 .script, .soon h1 .script, .quote blockquote span { animation: none; }
  .card .tag { animation: none; }
  /* split headline accents still need their entrance to become visible */
  .wsplit .script.w {
    animation: wordIn .7s var(--ease) forwards;
    animation-delay: calc(.15s + var(--wi, 0) * .09s);
  }
}

/* ---------- Performance: touch devices show content instantly (no scroll-triggered
   entrance fades) so scrolling feels direct. Hover/box-shadow transitions still apply. ---------- */
@media (pointer: coarse) {
  .reveal, .reveal.d1, .reveal.d2, .reveal.d3,
  .gcard, .cat-tile, .flreveal {
    opacity: 1 !important;
    transform: none !important;
    transition-property: box-shadow, border-color !important;
    animation: none !important;
  }
}
