/* =========================================================
   Foral — styles.css
   A calm, botanical-clean design system.
   ========================================================= */

:root {
  --cream: #e8d5de;
  --cream-2: #ddc0ce;
  --cream-3: #c9a3b5;
  --cream-dark: #1a0e14;
  --ink: #1a0e14;
  --ink-soft: #3d1e2e;
  --green: #6d2f44;
  --primary: #6d2f44;
  --green-deep: #4a1e2e;
  --primary-deep: #4a1e2e;
  --coral: #8f3d56;
  --blush: #e9c8d6;
  --gold: #8a6a0a;
  --teal: #c48a9c;
  --line: rgba(61, 26, 36, 0.14);
  --line-strong: rgba(61, 26, 36, 0.22);
  --shadow: 0 24px 60px -28px rgba(43, 22, 32, 0.28);
  --shadow-soft: 0 14px 40px -22px rgba(43, 22, 32, 0.18);
  --shadow-hover: 0 28px 70px -28px rgba(43, 22, 32, 0.34);
  --radius: 26px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Poppins", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--primary-deep) var(--cream-2); }
::-webkit-scrollbar{ width:10px; height:10px; }
::-webkit-scrollbar-track{ background: var(--cream-2); }
::-webkit-scrollbar-thumb{ background: linear-gradient(180deg, var(--primary) 0%, var(--primary-deep) 100%); border-radius:999px; border:2px solid var(--cream-2); }
::-webkit-scrollbar-thumb:hover{ background: var(--primary-deep); }
::-webkit-scrollbar-corner{ background: var(--cream-2); }

body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(143,61,86,0.12), transparent 60%),
    radial-gradient(900px 500px at 95% 0%, rgba(180,74,106,0.10), transparent 60%),
    radial-gradient(800px 800px at 50% 100%, rgba(61,26,36,0.07), transparent 70%),
    linear-gradient(180deg, var(--cream) 0%, #e2c9d6 100%);
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before{
  content:""; position: fixed; inset:0; pointer-events:none; z-index:1;
  opacity:0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}

/* Ambient bubble canvas sits behind everything */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

main, .nav, .footer { position: relative; z-index: 2; }

em { font-style: italic; color: var(--green); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--green-deep);
  margin-bottom: 1rem;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.05; color: var(--ink); }
h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -0.01em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease);
  will-change: transform;
}
.btn--solid { background: var(--green); color: #fff; box-shadow: var(--shadow-soft); }
.btn--solid:hover { transform: translateY(-3px); box-shadow: var(--shadow); background: var(--green-deep); }
.btn--ghost { background: transparent; color: var(--green); border: 1.5px solid var(--line); }
.btn--ghost:hover { background: rgba(168,80,106,0.07); transform: translateY(-2px); }
.btn--text { background: none; color: var(--ink-soft); padding: 0.85rem 0.4rem; }
.btn--text:hover { color: var(--green); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.2rem;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.loader p { font-family: var(--serif); font-size: 2rem; letter-spacing: 0.3em; color: var(--green); }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__bloom { display: flex; gap: 0.6rem; }
.loader__bloom span {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--coral);
  animation: bloom 1s infinite ease-in-out;
}
.loader__bloom span:nth-child(2){ background: var(--gold); animation-delay: .15s;}
.loader__bloom span:nth-child(3){ background: var(--green); animation-delay: .3s;}
.loader__bloom span:nth-child(4){ background: var(--teal); animation-delay: .45s;}
@keyframes bloom { 0%,100%{ transform: translateY(0) scale(.8); opacity:.5;} 50%{ transform: translateY(-10px) scale(1.1); opacity:1;} }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 5vw, 4rem);
  z-index: 50;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(253, 246, 242, 0.86);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 0.8rem; padding-bottom: 0.8rem;
}
.nav__brand { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--green); text-decoration: none; letter-spacing: 0.02em; outline:none; border:none; }
.nav__brand:focus, .nav__brand:active{ outline:none; box-shadow:none; }
.nav__mark { color: var(--coral); margin-right: 0.15rem; display: inline-block; animation: spin 9s linear infinite; outline:none; border:none; -webkit-text-stroke:0; text-shadow:none; -webkit-font-smoothing: antialiased; }
@keyframes spin { to { transform: rotate(360deg); } }
.nav__links { display: flex; gap: clamp(1rem, 2.4vw, 2.2rem); }
.nav__links a { color: var(--ink-soft); text-decoration: none; font-size: 0.92rem; font-weight: 400; position: relative; transition: color 0.3s; }
.nav__links a::after { content:""; position:absolute; left:0; bottom:-4px; width:0; height:1.5px; background: var(--coral); transition: width 0.35s var(--ease); }
.nav__links a:hover { color: var(--green); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { padding: 0.6rem 1.3rem; font-size: 0.88rem; }
@media (max-width: 860px){ .nav__links { display: none; } }

.hero { position: relative; content-visibility: auto; background: radial-gradient(700px 400px at 50% 55%, rgba(109,47,68,0.08), transparent 70%); }
.hero-scroll { position: relative; height: 340vh; contain: layout; }
.hero-sticky {
  position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: clip;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 9rem clamp(1.2rem, 5vw, 4rem) 3.5rem; text-align: center;
}
.hero-sticky::before{
  content:"❀ ❀ ❀"; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  font-size: clamp(180px, 28vw, 420px); line-height:1; color: rgba(109,47,68,0.045);
  font-family: var(--serif); letter-spacing: 0.18em; pointer-events:none; z-index:0;
  filter: blur(0.5px);
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; display: block; contain: strict; filter: drop-shadow(0 18px 32px rgba(46,35,41,0.18)); }
@media (max-width: 760px){ .hero-scroll{ height: 260vh; } }
@media (min-width: 1600px){ .hero-scroll{ height: 300vh; } }
.hero__glow {
  position: absolute; top: 50%; left: 50%; width: min(62%, 540px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244,201,93,0.16), rgba(168,80,106,0.10) 45%, transparent 70%);
  filter: blur(36px); z-index: 0; animation: floaty 7s ease-in-out infinite;
  opacity: 0.85;
}
.hero__visuals{ position:absolute; inset:0; z-index:2; pointer-events:none; overflow:hidden; }
.float-petal{ position:absolute; font-family: var(--serif); color: rgba(109,47,68,0.10); animation: petalFloat 11s ease-in-out infinite; }
.float-petal.p1{ top:18%; left:12%; font-size:28px; animation-delay:0s; } .float-petal.p2{ top:22%; right:14%; font-size:22px; animation-delay:1.5s; } .float-petal.p3{ bottom:26%; left:16%; font-size:18px; animation-delay:3s; } .float-petal.p4{ bottom:20%; right:18%; font-size:32px; animation-delay:2s; }
@keyframes petalFloat{ 0%,100%{ transform: translateY(0) rotate(0deg); opacity:0.7;} 50%{ transform: translateY(-18px) rotate(8deg); opacity:1;} }
@keyframes floaty { 0%,100%{ transform: translate(-50%,-50%) translateY(0) scale(1);} 50%{ transform: translate(-50%,-50%) translateY(-18px) scale(1.05);} }

.hero__overlay {
  position: relative; z-index: 3; flex: 1;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  pointer-events: none;
}
.hero__top { max-width: 820px; padding-top: 0.5rem; opacity: 0; transform: translate3d(0,16px,0); will-change: transform, opacity; }
.hero__top h1 { margin-top: 0.6rem; }
.hero__lede { font-size: clamp(1rem, 1.5vw, 1.2rem); color: var(--ink-soft); margin: 1.4rem auto 0; max-width: 34em; text-wrap: balance; }
.hero__actions { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero__bottom { max-width: 660px; padding-bottom: 0.5rem; opacity: 0; transform: translate3d(0,24px,0) scale(0.98); will-change: transform, opacity; }
.hero__stats { list-style: none; display: flex; gap: clamp(1.4rem, 3vw, 2.8rem); justify-content: center; margin-top: 2.2rem; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-family: var(--serif); font-size: 1.9rem; color: var(--green); }
.hero__stats span { font-size: 0.78rem; letter-spacing: 0.08em; color: var(--ink-soft); text-transform: uppercase; }
.hero__overlay a, .hero__overlay button { pointer-events: auto; }

/* CSS fallback bottle (no WebGL) */
.bottle-fallback { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2; width: 120px; height: 300px; display: none; }
.bottle-fallback__glass {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 110px; height: 250px; border-radius: 40px 40px 26px 26px;
  background: linear-gradient(135deg, #6d2f44, #3d1a24);
  border: 1.5px solid rgba(46,35,41,0.22);
  box-shadow: inset -10px 0 22px rgba(255,255,255,0.1), var(--shadow-hover);
}
.bottle-fallback__cap {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 56px; height: 54px; border-radius: 12px 12px 6px 6px; background: #3d1a24; border: 1px solid rgba(46,35,41,0.2);
}
.no-webgl .bottle-fallback { display: block; }

.scroll-cue { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 4; opacity: 0; }
.scroll-cue span {
  display: block; width: 26px; height: 42px; border: 2px solid var(--green); border-radius: 14px; position: relative;
}
.scroll-cue span::after {
  content:""; position:absolute; top:8px; left:50%; transform: translateX(-50%);
  width:4px; height:8px; border-radius:2px; background: var(--coral); animation: scrolldot 1.6s infinite;
}
@keyframes scrolldot { 0%{ opacity:0; top:8px;} 40%{ opacity:1;} 100%{ opacity:0; top:22px;} }

@media (max-width: 880px){ .hero-sticky { padding-top: 7rem; } }

/* ---------- Story ---------- */
.story { padding: clamp(4rem, 9vw, 8rem) clamp(1.2rem, 5vw, 4rem); position:relative; }
.story::before{
  content:""; position:absolute; top:8%; right:4%; width:180px; height:180px; border-radius:50%;
  background: radial-gradient(circle, rgba(109,47,68,0.09), transparent 70%); pointer-events:none;
}
.story::after{
  content:""; position:absolute; bottom:10%; left:3%; width:220px; height:220px; border-radius:50%;
  background: radial-gradient(circle, rgba(212,160,23,0.08), transparent 70%); pointer-events:none;
}
.story__inner { max-width: 1080px; margin: 0 auto; text-align: center; position:relative; z-index:1; }
.story__inner h2 { margin-bottom: 1.4rem; }
.story__body { max-width: 60ch; margin: 0 auto; color: var(--ink-soft); font-size: 1.08rem; }
.story__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 3.4rem; text-align: left; }
.story__card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.7rem; box-shadow: var(--shadow-soft); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  position:relative; overflow:hidden;
}
.story__card::before{
  content:""; position:absolute; top:0; left:0; right:0; height:4px;
  background: linear-gradient(90deg, var(--primary-deep), var(--coral), var(--gold));
  opacity:0.9;
}
.story__card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.story__icon { font-size: 2rem; display: block; margin-bottom: 1rem; }
.story__card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.story__card p { color: var(--ink-soft); font-size: 0.96rem; }
@media (max-width: 760px){ .story__cards { grid-template-columns: 1fr; } }

/* ---------- Section heads ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head h2 { margin-bottom: 0.8rem; }
.section-sub { color: var(--ink-soft); }

.products { padding: clamp(3rem, 7vw, 6rem) clamp(1.2rem, 5vw, 4rem) 5rem; content-visibility: auto; contain-intrinsic-size: 800px; position:relative; }
.products::before{
  content:""; position:absolute; inset:0; pointer-events:none; opacity:0.06;
  background:
    radial-gradient(400px 400px at 20% 30%, rgba(109,47,68,0.5), transparent 60%),
    radial-gradient(350px 350px at 80% 70%, rgba(109,47,68,0.3), transparent 65%);
}
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.4rem; max-width: 1180px; margin: 0 auto;
}
.product-card {
  position: relative; background: linear-gradient(180deg, #fff 0%, #fdf2f6 100%); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem 1.6rem 1.8rem; overflow: clip;
  cursor: pointer; box-shadow: var(--shadow-soft); contain: layout paint;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.product-card::after{
  content:""; position:absolute; top:-50%; left:-60%; width:60%; height:200%; transform: rotate(18deg) translateX(-80px);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent); opacity:0; transition: transform 0.7s var(--ease), opacity 0.5s;
  pointer-events:none;
}
.product-card:hover::after{ transform: rotate(18deg) translateX(420px); opacity:1; }
.product-card:hover { transform: translate3d(0,-8px,0); box-shadow: var(--shadow); }
.product-card__canvas { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 0.4s var(--ease); contain: strict; display: block; }
.product-card:hover .product-card__canvas, .product-card:focus-within .product-card__canvas { opacity: 1; }
.product-card__bottle {
  position: relative; z-index: 2; height: 190px; display: flex; align-items: center; justify-content: center;
  transition: transform 0.45s var(--ease);
}
.product-card:hover .product-card__bottle { transform: translate3d(0,-4px,0) rotate(-1.5deg); }
@media (max-width: 760px){
  .product-card__canvas{ display: none; }
  .product-card:hover{ transform: none; }
}
.product-card__badge {
  position: absolute; top: 1.1rem; right: 1.1rem; z-index: 3;
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--blush); color: var(--green-deep); padding: 0.3rem 0.7rem; border-radius: 999px; font-weight: 500;
}
.product-card__info { position: relative; z-index: 2; margin-top: 1rem; }
.product-card__cat { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral); }
.product-card__name { font-size: 1.5rem; margin: 0.2rem 0 0.4rem; }
.product-card__price { font-family: var(--serif); font-size: 1.35rem; color: var(--green); }
.product-card__hint { font-size: 0.82rem; color: var(--ink-soft); margin-top: 0.4rem; display: inline-flex; align-items: center; gap: 0.3rem; }

/* ---------- Sparkle / features ---------- */
.sparkle { padding: clamp(3rem, 7vw, 6rem) clamp(1.2rem, 5vw, 4rem); background: linear-gradient(180deg, transparent, rgba(194,107,128,0.05)); }
.sparkle__inner { max-width: 1180px; margin: 0 auto; }
.sparkle__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 3rem; }
.feature {
  background: rgba(255,255,255,0.7); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.5rem; backdrop-filter: blur(6px);
  transition: transform 0.5s var(--ease), background 0.5s;
}
.feature:hover { transform: translateY(-8px); background: #fff; }
.feature__num { font-family: var(--serif); font-size: 2.4rem; color: var(--coral); line-height: 1; margin-bottom: 0.8rem; }
.feature h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.feature p { color: var(--ink-soft); font-size: 0.94rem; }
@media (max-width: 980px){ .sparkle__grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .sparkle__grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { padding: clamp(3rem, 7vw, 6rem) clamp(1.2rem, 5vw, 4rem); max-width: 820px; margin: 0 auto; }
.faq__list { display: flex; flex-direction: column; gap: 0.9rem; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.faq__q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 1.3rem 1.5rem; font-family: var(--sans); font-size: 1.04rem; font-weight: 500; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq__q .faq__icon { font-size: 1.5rem; color: var(--coral); transition: transform 0.4s var(--ease); flex-shrink: 0; }
.faq__item.is-open .faq__icon { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease); }
.faq__a p { padding: 0 1.5rem 1.4rem; color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Contact ---------- */
.contact { padding: clamp(3rem, 7vw, 6rem) clamp(1.2rem, 5vw, 4rem) 5rem; }
.contact__card {
  max-width: 760px; margin: 0 auto; text-align: center;
  background: var(--green-deep);
  color: #fff; border-radius: 32px; padding: clamp(2.5rem, 6vw, 4rem);
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.contact__card::before, .contact__card::after {
  content:""; position:absolute; border-radius:50%; background: rgba(244,201,93,0.25); filter: blur(10px);
}
.contact__card::before { width: 220px; height: 220px; top: -80px; right: -60px; }
.contact__card::after { width: 180px; height: 180px; bottom: -70px; left: -50px; background: rgba(215,107,136,0.3); }
.contact__card h2 { color: #fff; margin-bottom: 0.8rem; }
.contact__card p { color: rgba(255,255,255,0.86); margin-bottom: 1.8rem; }
.contact__card .btn--solid { background: #fff; color: var(--green-deep); }
.contact__card .btn--solid:hover { background: var(--gold); }
.contact__meta { margin-top: 1.4rem; font-size: 0.82rem; color: rgba(255,255,255,0.72); }

/* ---------- Footer ---------- */
.footer { padding: 2rem clamp(1.2rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer__brand { font-family: var(--serif); font-size: 1.4rem; color: var(--green); }
.footer__brand span { color: var(--coral); }
.footer p { color: var(--ink-soft); font-size: 0.86rem; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: none; }
.modal.is-open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(46, 35, 41, 0.42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.4s var(--ease); }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__panel {
  position: relative; z-index: 2; max-width: 860px; width: calc(100% - 2.4rem); margin: 6vh auto;
  background: #fff; border-radius: 28px; overflow: hidden; display: grid; grid-template-columns: 0.85fr 1.15fr;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.5);
  transform: translateY(30px) scale(0.96); opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
  max-height: 88vh;
}
.modal.is-open .modal__panel { transform: translateY(0) scale(1); opacity: 1; }
.modal__canvas { background: var(--cream-2); width: 100%; height: 100%; min-height: 360px; }
.modal__body { padding: clamp(1.6rem, 3vw, 2.6rem); overflow-y: auto; }
.modal__cat { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral); }
.modal__body h3 { font-size: 2rem; margin: 0.3rem 0 0.8rem; }
.modal__desc { color: var(--ink-soft); margin-bottom: 1.2rem; }
.modal__notes { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.6rem; }
.modal__notes li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.94rem; color: var(--ink-soft); }
.modal__notes li::before { content: "❀"; color: var(--green); flex-shrink: 0; }
.modal__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 1.3rem; }
.modal__price { font-family: var(--serif); font-size: 1.9rem; color: var(--green); }
.modal__close {
  position: absolute; top: 0.9rem; right: 1rem; z-index: 3; width: 38px; height: 38px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.85); color: var(--ink); font-size: 1.4rem; cursor: pointer; line-height: 1;
  transition: background 0.3s, transform 0.3s;
}
.modal__close:hover { background: #fff; transform: rotate(90deg); }
@media (max-width: 680px){
  .modal__panel { grid-template-columns: 1fr; }
  .modal__canvas { min-height: 240px; }
}

.reveal { opacity: 0; transform: translate3d(-24px,0,0); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); will-change: transform, opacity; }
.reveal.reveal--right { transform: translate3d(24px,0,0); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal:nth-child(2){ transition-delay: 0.06s; }
.reveal:nth-child(3){ transition-delay: 0.12s; }
.reveal:nth-child(4){ transition-delay: 0.18s; }
.story, .sparkle, .faq { content-visibility: auto; contain-intrinsic-size: 600px; }
#bg-canvas{ will-change: opacity; }
@media (prefers-reduced-motion: reduce){
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
  #bg-canvas, .product-card__canvas, #hero-canvas { display: none !important; }
}
@media (max-width: 760px){
  .reveal{ transform: translate3d(0,16px,0); }
  .reveal.reveal--right{ transform: translate3d(0,16px,0); }
}
