/* =========================================================
   Meme's Fleuriste — styles
   Palette lifted from the shop itself: aubergine facade,
   black sign with gold lettering (and its blush drop shadow),
   pistachio shelving, Maltese limestone.
   ========================================================= */

:root {
  --plum-950: #150A14;
  --plum-900: #1F0E1E;
  --plum-800: #2B1229;
  --plum-700: #4A1A44;
  --plum-600: #5E2356;
  --gold: #D9B45C;
  --gold-2: #EAD08E;
  --blush: #EBB3C4;
  --pist: #B9CF8C;
  --pist-2: #7F9A55;
  --stone: #EFE6D3;
  --stone-2: #E4D8BE;
  --stone-3: #CDBE9C;
  --ink: #1C1119;
  --ink-2: #5A4A56;

  --font-d: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-b: "Instrument Sans", "Helvetica Neue", Arial, system-ui, sans-serif;

  --gutter: clamp(20px, 6vw, 96px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--plum-950);
  color: var(--stone);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: min(1180px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }

/* ---------- Wordmark: the sign, in type ---------- */
.wordmark {
  display: inline-flex; align-items: baseline; gap: .55rem; text-decoration: none; white-space: nowrap;
}
.wordmark__script {
  font-family: var(--font-d); font-style: italic; font-weight: 500;
  font-variation-settings: "SOFT" 100, "opsz" 48;
  font-size: 1.55rem; line-height: 1; letter-spacing: -.01em;
  color: var(--gold);
  text-shadow: 1px 1px 0 rgba(235, 179, 196, .55);
}
.wordmark__caps {
  font-family: var(--font-b); font-weight: 500; font-size: .6rem; letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold-2);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.6rem; border-radius: 999px;
  font-weight: 500; font-size: .95rem; letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  transition: transform .5s var(--ease-out), background .3s, color .3s, border-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--plum-950); }
.btn--gold:hover { background: var(--gold-2); }
.btn--ghost { color: var(--stone); border: 1px solid rgba(239, 230, 211, .38); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn--plum { background: var(--plum-700); color: var(--stone); }
.btn--plum:hover { background: var(--plum-600); }
.btn--small { padding: .62rem 1.15rem; font-size: .84rem; }

/* ---------- Topbar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: clamp(14px, 2.2vw, 22px) var(--gutter);
  padding-top: calc(clamp(14px, 2.2vw, 22px) + env(safe-area-inset-top));
  transition: background .5s, backdrop-filter .5s, box-shadow .5s;
}
.topbar.is-scrolled {
  background: rgba(21, 10, 20, .62);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(217, 180, 92, .14);
}
.nav { display: flex; gap: clamp(1.2rem, 2.6vw, 2.4rem); }
.nav a {
  font-size: .86rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  color: rgba(239, 230, 211, .78); position: relative; padding: .3rem 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out);
}
.nav a:hover { color: var(--stone); }
.nav a:hover::after { transform: scaleX(1); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; flex-direction: column; justify-content: center; gap: 6px; }
.menu-toggle span { display: block; height: 1.5px; background: var(--gold); transition: transform .4s, opacity .3s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 55; background: rgba(21, 10, 20, .96);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1.4rem;
  padding: 0 var(--gutter);
  opacity: 0; pointer-events: none; transition: opacity .4s;
}
.drawer.is-open { opacity: 1; pointer-events: auto; }
.drawer > a:not(.btn) {
  font-family: var(--font-d); font-weight: 300; font-variation-settings: "SOFT" 100, "opsz" 96;
  font-size: clamp(2.2rem, 9vw, 3.2rem); line-height: 1; text-decoration: none; color: var(--stone);
}
.drawer .btn { margin-top: .6rem; }
.drawer .btn + .btn { margin-top: 0; }

/* ---------- Curtain ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 100; background: var(--plum-950);
  display: grid; place-items: center;
}
.curtain__mark { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.curtain__script {
  font-family: var(--font-d); font-style: italic; font-weight: 400;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  font-size: clamp(3.4rem, 10vw, 6.5rem); line-height: 1; color: var(--gold);
  text-shadow: 2px 2px 0 rgba(235, 179, 196, .5);
  opacity: 0;
}
.curtain__caps {
  font-size: .72rem; letter-spacing: .5em; text-transform: uppercase; color: var(--gold-2); padding-left: .5em; opacity: 0;
}
.curtain__line {
  position: absolute; left: 50%; bottom: 14vh; width: 1px; height: 64px; background: linear-gradient(var(--gold), transparent);
  transform: translateX(-50%) scaleY(0); transform-origin: top;
}

/* ---------- The film ---------- */
.film { position: relative; height: 1000vh; }
.film__stage {
  position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden;
  background: var(--plum-950);
}
.film__layers { position: absolute; inset: 0; z-index: 1; }   /* own stacking context: keeps clips under vignette + copy */
.layer { position: absolute; inset: 0; opacity: 0; will-change: opacity; }
.layer img, .layer video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%;
}
.layer video { z-index: 1; }
.layer.has-clip img { opacity: 0; }
.film__vignette {
  position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background:
    linear-gradient(90deg, rgba(21, 10, 20, .58) 0%, rgba(21, 10, 20, .18) 42%, transparent 62%),
    linear-gradient(0deg, rgba(21, 10, 20, .66) 0%, rgba(21, 10, 20, .12) 38%, transparent 55%),
    linear-gradient(180deg, rgba(21, 10, 20, .45) 0%, transparent 22%);
}

.film__copies { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
.copy {
  position: absolute; left: var(--gutter); bottom: clamp(72px, 14vh, 150px);
  width: min(600px, 52vw); opacity: 0; visibility: hidden;
}
.copy.is-live { visibility: visible; }
.copy--finale {
  left: 50%; transform: translateX(-50%); text-align: center; width: min(680px, 84vw);
  bottom: clamp(44px, 7vh, 84px);
}
.copy--finale .copy__eyebrow { justify-content: center; }
.copy--finale .copy__body { margin-inline: auto; }
.copy--finale .copy__cta { justify-content: center; }

.copy__eyebrow {
  display: flex; align-items: center; gap: .85rem;
  font-size: .72rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--gold);
}
.copy__eyebrow i { display: block; width: 28px; height: 1px; background: var(--gold); transform-origin: left; }
.copy__title {
  margin-top: 1rem;
  font-family: var(--font-d); font-weight: 300; font-variation-settings: "SOFT" 100, "opsz" 144;
  font-size: clamp(2.5rem, 5.4vw, 5rem); line-height: .98; letter-spacing: -.012em; color: var(--stone);
  text-shadow: 0 2px 30px rgba(21, 10, 20, .55);
}
.copy__title em { font-style: italic; }
.copy__body {
  margin-top: 1.25rem; max-width: 42ch;
  font-size: clamp(1rem, 1.2vw, 1.12rem); line-height: 1.55; color: rgba(239, 230, 211, .84);
  text-shadow: 0 1px 14px rgba(21, 10, 20, .6);
}
.copy__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; pointer-events: auto; }

/* rail */
.rail {
  position: absolute; right: clamp(14px, 2.4vw, 30px); top: 50%; transform: translateY(-50%); z-index: 12;
  display: flex; flex-direction: column; gap: 18px;
}
.rail button { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 4px 0; }
.rail button i {
  display: block; width: 6px; height: 6px; border-radius: 50%; background: rgba(239, 230, 211, .38);
  transition: transform .4s, background .4s, box-shadow .4s;
}
.rail button span {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2);
  opacity: 0; transform: translateX(6px); transition: opacity .35s, transform .35s;
}
.rail button:hover span, .rail li.is-active span { opacity: 1; transform: none; }
.rail li.is-active i { background: var(--gold); transform: scale(1.5); box-shadow: 0 0 0 5px rgba(217, 180, 92, .18); }

/* hint + progress */
.hint {
  position: absolute; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 12; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: rgba(239, 230, 211, .7);
}
.hint i { width: 1px; height: 44px; background: linear-gradient(var(--gold), transparent); animation: hint-drop 2.2s var(--ease-out) infinite; transform-origin: top; }
@keyframes hint-drop { 0% { transform: scaleY(0); opacity: 0 } 30% { opacity: 1 } 100% { transform: scaleY(1); opacity: 0 } }
.progress { position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 13; background: rgba(217, 180, 92, .12); }
.progress span { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }

/* ---------- Sections ---------- */
.section { padding: clamp(88px, 11vw, 150px) 0; position: relative; }
.section--stone { background: var(--stone); color: var(--ink); }
.section--plum { background: var(--plum-900); color: var(--stone); }
.section--plum::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 80% 10%, rgba(217, 180, 92, .10), transparent 70%);
}
.section__head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.eyebrow {
  display: flex; align-items: center; gap: .85rem;
  font-size: .72rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--plum-700);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--gold { color: var(--gold); }
.display {
  margin-top: 1.1rem;
  font-family: var(--font-d); font-weight: 300; font-variation-settings: "SOFT" 100, "opsz" 144;
  font-size: clamp(2.2rem, 4.4vw, 3.9rem); line-height: 1.02; letter-spacing: -.012em; color: var(--ink);
}
.display--light { color: var(--stone); }
.lede { margin-top: 1.4rem; max-width: 56ch; font-size: clamp(1rem, 1.15vw, 1.1rem); color: var(--ink-2); }
.lede--light { color: rgba(239, 230, 211, .78); }

/* products */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.6vw, 36px) clamp(16px, 2vw, 28px); }
.product__media { display: block; overflow: hidden; border-radius: 3px; background: #fff; aspect-ratio: 4 / 5; }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.product:hover .product__media img { transform: scale(1.045); }
.product__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: .9rem; }
.product__row h3 { font-family: var(--font-d); font-weight: 400; font-variation-settings: "SOFT" 100, "opsz" 24; font-size: 1.22rem; line-height: 1.15; }
.price { font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; color: var(--plum-700); }
.price small { font-weight: 400; color: var(--ink-2); font-size: .85em; }
.product__note { margin-top: .25rem; font-size: .85rem; color: var(--ink-2); }
.section__foot {
  display: flex; justify-content: space-between; align-items: baseline; gap: 2rem; flex-wrap: wrap;
  margin-top: clamp(40px, 5vw, 64px); padding-top: 1.6rem; border-top: 1px solid rgba(28, 17, 25, .14);
  color: var(--ink-2); font-size: .95rem;
}
.link-arrow { color: var(--plum-700); font-weight: 500; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " →"; transition: margin-left .3s; }
.link-arrow:hover::after { margin-left: .3em; }

/* scent */
.scent { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.scent__figure { position: sticky; top: 12vh; overflow: hidden; border-radius: 3px; }
.scent__figure img { width: 100%; height: auto; }
.menu__group {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  margin-top: 2.6rem; margin-bottom: .4rem;
  font-family: var(--font-d); font-weight: 400; font-variation-settings: "SOFT" 100, "opsz" 24; font-size: 1.35rem; color: var(--gold-2);
}
.menu__group small { font-family: var(--font-b); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(239, 230, 211, .5); }
.menu li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .85rem 0; border-top: 1px solid rgba(217, 180, 92, .18);
}
.menu li:last-child { border-bottom: 1px solid rgba(217, 180, 92, .18); }
.menu span { font-size: 1.02rem; }
.menu span small { font-size: .8rem; color: rgba(239, 230, 211, .5); margin-left: .4rem; }
.menu em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--gold-2); white-space: nowrap; }
.menu em small { color: rgba(239, 230, 211, .5); font-size: .8rem; margin-left: .3rem; }

/* weddings */
.weddings { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.quote { margin-top: 2.2rem; padding-left: 1.4rem; border-left: 1px solid var(--plum-700); }
.quote p { font-family: var(--font-d); font-style: italic; font-weight: 300; font-variation-settings: "SOFT" 100, "opsz" 48; font-size: 1.28rem; line-height: 1.4; color: var(--ink); }
.quote cite { display: block; margin-top: .8rem; font-style: normal; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.weddings .btn { margin-top: 2.2rem; }
.weddings__photos { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; }
.photo { overflow: hidden; border-radius: 3px; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.photo:hover img { transform: scale(1.04); }
.photo--tall { grid-row: 1 / 3; aspect-ratio: 3 / 4; }
.photo:not(.photo--tall) { aspect-ratio: 4 / 3; }

/* visit */
.visit { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.visit__photo { overflow: hidden; border-radius: 3px; aspect-ratio: 3 / 4; }
.visit__photo img { width: 100%; height: 100%; object-fit: cover; }
.details { margin-top: 2.4rem; display: grid; gap: 1rem; }
.details > div { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; padding-top: 1rem; border-top: 1px solid rgba(217, 180, 92, .18); }
.details dt { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); padding-top: .2rem; }
.details dd a { color: var(--stone); text-decoration: none; border-bottom: 1px solid rgba(217, 180, 92, .4); transition: border-color .3s; }
.details dd a:hover { border-color: var(--gold); }

/* footer */
.footer { background: var(--plum-950); padding: 48px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(217, 180, 92, .14); }
.footer__row { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; font-size: .88rem; color: rgba(239, 230, 211, .62); }
.footer__fine { font-size: .78rem; color: rgba(239, 230, 211, .4); }

/* reveal defaults (GSAP animates from these) */
.reveal, .reveal-lines { will-change: transform, opacity; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .nav, .topbar__cta { display: none; }
  .menu-toggle { display: flex; }
  .copy {
    left: var(--gutter); right: var(--gutter); width: auto;
    bottom: calc(clamp(64px, 12dvh, 110px) + env(safe-area-inset-bottom));
  }
  .copy--finale { left: var(--gutter); transform: none; width: auto; text-align: left; }
  .copy--finale .copy__eyebrow, .copy--finale .copy__cta { justify-content: flex-start; }
  .copy--finale .copy__body { margin-inline: 0; }
  .copy__title { font-size: clamp(2.1rem, 8.6vw, 3rem); }
  .layer img, .layer video { object-position: center 50%; }
  .film__vignette {
    background:
      linear-gradient(0deg, rgba(21, 10, 20, .8) 0%, rgba(21, 10, 20, .35) 40%, transparent 62%),
      linear-gradient(180deg, rgba(21, 10, 20, .5) 0%, transparent 25%);
  }
  .rail { right: 8px; gap: 14px; }
  .rail button span { display: none; }
  .hint { display: none; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .scent, .weddings, .visit { grid-template-columns: 1fr; }
  .scent__figure { position: static; }
  .weddings__photos { grid-template-columns: 1fr 1fr; }
  .visit__photo { aspect-ratio: 4 / 3; }
  .details > div { grid-template-columns: 96px 1fr; }
}
@media (max-width: 480px) {
  .product__row { flex-direction: column; gap: .15rem; }
  .products { gap: 22px 12px; }
}

@media (hover: none) and (pointer: coarse) {
  .rail button { padding: 8px 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hint i { animation: none; }
  .btn, .product__media img, .photo img { transition: none; }
}
