/* ══════════════════════════════════════
   TOKENS
══════════════════════════════════════ */
:root {
  --black:      #09080a;
  --black-mid:  #111019;
  --gold:       #c9a46a;
  --gold-light: #e4c98a;
  --cream:      #f0e9dc;
  --cream-dim:  rgba(240,233,220,0.65);
  --muted:      rgba(240,233,220,0.42);
  --muted-dark: #7a6f62;
  --light-bg:   #f5f0ea;
  --text-dark:  #1a1714;
  --fd:         'Cormorant Garamond', Georgia, serif;
  --fb:         'Jost', system-ui, sans-serif;
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
}

/* ══════════════════════════════════════
   BASE
══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: auto;
  /* clip (not hidden) — hidden turns html into a scroll container and
     silently breaks position:sticky on descendants (the hero/canvas pin) */
  overflow-x: clip;
  overflow-y: visible;
  width: 100%;
}
body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--fb);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: clip;
  overflow-y: visible;
  width: 100%;
}
img  { display: block; max-width: 100%; }
a    { text-decoration: none; color: inherit; }
button { font-family: var(--fb); cursor: pointer; border: none; background: none; }

/* ══════════════════════════════════════
   LOADER
══════════════════════════════════════ */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner  { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.loader-logo   {
  width: 72px; height: 72px; border-radius: 50%; object-fit: contain;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:.4;transform:scale(.94)} 50%{opacity:1;transform:scale(1)} }
.loader-bar-wrap { width: 140px; height: 1px; background: rgba(201,164,106,.18); }
#loader-bar      { height: 100%; width: 0%; background: var(--gold); transition: width .08s linear; }
#loader-percent  { font-size: .65rem; letter-spacing: .22em; color: var(--gold); opacity: .6; }

/* ══════════════════════════════════════
   HEADER
══════════════════════════════════════ */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 40px;
  transition: background .4s, backdrop-filter .4s, padding .3s;
}
#site-header.scrolled {
  background: rgba(9,8,10,.88);
  backdrop-filter: blur(14px);
  padding: 14px 40px;
}
.header-logo img { height: 42px; width: 42px; object-fit: contain; border-radius: 50%; }
#site-header nav { display: flex; align-items: center; gap: 34px; }
#site-header nav a {
  font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cream); opacity: .75; transition: opacity .2s;
}
#site-header nav a:hover { opacity: 1; }
#site-header .nav-cta {
  padding: 8px 20px; border: 1px solid var(--gold);
  color: var(--gold); border-radius: 2px; opacity: 1;
  transition: background .2s, color .2s;
}
#site-header .nav-cta:hover { background: var(--gold); color: var(--black); }

#menu-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  padding: 13px; margin: -13px; /* enlarge tap target to ~48px without shifting the visual icon */
}
#menu-toggle span { display: block; width: 22px; height: 1px; background: var(--cream); transition: transform .3s, opacity .3s; }
#menu-toggle.open span:first-child { transform: rotate(45deg) translate(4px,4px); }
#menu-toggle.open span:last-child  { transform: rotate(-45deg) translate(4px,-4px); }

/* ══════════════════════════════════════
   MOBILE NAV
══════════════════════════════════════ */
#mobile-nav {
  position: fixed; inset: 0; z-index: 490;
  background: var(--black);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  transform: translateY(-100%); transition: transform .5s var(--ease);
}
#mobile-nav.open { transform: translateY(0); }
#mobile-nav a { font-family: var(--fd); font-size: 2.2rem; font-weight: 400; }
#mobile-nav .mob-cta { font-family: var(--fb); font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
#mobile-nav .mob-ig  { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; opacity: .45; }

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn-gold {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  background: var(--gold); color: var(--black);
  font-size: .78rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  border-radius: 2px; transition: background .2s, transform .2s;
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-gold.btn-lg  { padding: 17px 42px; font-size: .84rem; }
.btn-gold.btn-sm  { padding: 9px 18px;  font-size: .7rem; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  border: 1px solid rgba(240,233,220,.28); color: var(--cream);
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  border-radius: 2px; transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  border: 1px solid var(--gold); color: var(--gold);
  font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
  border-radius: 2px; transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--gold); color: var(--black); }

/* shared label */
.eyebrow {
  display: block;
  font-size: .62rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.eyebrow.dim { color: var(--muted-dark); }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  position: sticky; top: 0;
  height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--black);
  z-index: 1;
}

/* CSS-only background — radial gold glow */
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 65%, rgba(201,164,106,.09) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 50% 30%, rgba(201,164,106,.05) 0%, transparent 60%);
}
/* subtle grain overlay via SVG filter */
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: .028;
}

/* thin decorative gold lines flanking the eyebrow */
.hero-content { position: relative; z-index: 2; text-align: center; padding: 0 5vw; max-width: 900px; }

.hero-content .eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 28px;
}
.hero-content .eyebrow::before,
.hero-content .eyebrow::after {
  content: ''; display: block;
  width: 36px; height: 1px; background: var(--gold); opacity: .5;
}

/* heading — each line clips up from behind overflow:hidden wrapper.
   line-height needs enough room below the baseline for descenders
   (g/y/p in "Fragrance"/"Signature") or the .hline clip cuts them off. */
.hero-heading {
  font-family: var(--fd);
  font-size: clamp(2.6rem, 5vw, 5.5rem);
  font-weight: 400; line-height: 1.22;
  color: var(--cream);
  margin-bottom: 18px;
}
.hline { display: block; overflow: hidden; }
.hline-inner { display: block; }
.hline-italic { font-style: italic; color: var(--gold-light); }

.hero-sub {
  font-size: clamp(.9rem, 1.4vw, 1.05rem);
  font-weight: 300; line-height: 1.8;
  color: var(--cream-dim);
  max-width: 440px; margin: 0 auto 40px;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* scroll hint */
.hero-scroll {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 2;
}
.hero-scroll span { font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.scroll-line { width: 1px; height: 38px; background: var(--gold); animation: scrollpulse 2.2s ease-in-out infinite; }
@keyframes scrollpulse {
  0%   { transform: scaleY(0); transform-origin: top;    opacity: 0; }
  40%  { transform: scaleY(1);                           opacity: 1; }
  60%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ══════════════════════════════════════
   CANVAS SCROLL
══════════════════════════════════════ */
#video-scroll-wrap {
  position: relative;
  margin-top: -100vh; /* pull canvas up to overlap hero seamlessly */
}
#canvas-wrap {
  position: sticky; top: 0;
  width: 100%; height: 100vh; overflow: hidden;
  clip-path: circle(0% at 50% 50%);  /* starts invisible, JS expands it */
  z-index: 2;
}
#scroll-canvas { display: block; width: 100%; height: 100%; }
#dark-overlay {
  position: fixed; inset: 0; z-index: 5;
  background: rgba(9,8,10,.9); opacity: 0; pointer-events: none;
}

/* MARQUEE */
.marquee-wrap {
  position: fixed; bottom: 8vh; left: 0; right: 0;
  z-index: 10; overflow: hidden; pointer-events: none; opacity: 0;
}
.marquee-text {
  white-space: nowrap; display: inline-block;
  font-family: var(--fd);
  font-size: clamp(7rem, 12vw, 13rem);
  font-weight: 300; letter-spacing: -.02em;
  color: rgba(201,164,106,.07);
  will-change: transform;
}

/* SCROLL CONTAINER */
#scroll-container { position: relative; height: 900vh; }

/* SCROLL SECTIONS */
.scroll-section {
  position: absolute; left: 0; right: 0;
  display: flex; align-items: center; min-height: 100vh;
  z-index: 20; opacity: 0; pointer-events: none;
  will-change: opacity, transform;
}
.scroll-section.visible { opacity: 1; pointer-events: auto; }
.align-left  { padding-left: 5vw;  padding-right: 55vw; }
.align-right { padding-left: 55vw; padding-right: 5vw;  }
.sec-inner { max-width: 40vw; position: relative; }
/* soft dark halo behind the text block so it stays readable no matter
   how bright the frame image underneath is at that scroll position */
.sec-inner::before {
  content: ''; position: absolute; inset: -10% -14%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(9,8,10,.5) 0%, transparent 72%);
}
.sec-label {
  display: block; font-size: .62rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold); opacity: .8; margin-bottom: 16px;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.sec-heading {
  font-family: var(--fd);
  font-size: clamp(2.8rem, 5vw, 5.5rem);
  font-weight: 400; line-height: 1.0;
  color: var(--cream); margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0,0,0,.55), 0 10px 40px rgba(0,0,0,.4);
}
.sec-heading em { font-style: italic; color: var(--gold-light); }
.sec-body {
  font-size: .92rem; font-weight: 300; line-height: 1.85; color: var(--cream-dim); max-width: 380px;
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
}

/* STATS */
.sec-stats { justify-content: center; }
.stats-grid { display: flex; gap: 72px; flex-wrap: wrap; justify-content: center; }
.stat { text-align: center; }
.stat-num { font-family: var(--fd); font-size: clamp(4rem, 8vw, 8rem); font-weight: 300; line-height: 1; color: var(--cream); }
.stat-suf { font-family: var(--fd); font-size: clamp(2rem, 4vw, 4rem); color: var(--gold); }
.stat-lbl { display: block; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

/* CTA SECTION */
.sec-cta { justify-content: center; align-items: center; text-align: center; }
.cta-inner { max-width: 580px; margin: 0 auto; }
.cta-button { margin-top: 30px; }

/* ══════════════════════════════════════
   COLLECTION
══════════════════════════════════════ */
.collection { background: var(--light-bg); padding: 110px 5vw 90px; }
.col-header  { text-align: center; margin-bottom: 68px; }
.col-title {
  font-family: var(--fd); font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 400; line-height: 1.0; color: var(--text-dark); margin-bottom: 14px;
}
.col-title em { font-style: italic; color: var(--muted-dark); }
.col-sub { font-size: .88rem; color: var(--muted-dark); letter-spacing: .05em; }

.products-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2px; max-width: 1400px; margin: 0 auto;
}
.product-card { background: #fff; overflow: hidden; transition: transform .4s var(--ease); }
.product-card:hover { transform: translateY(-4px); }

.prod-img { position: relative; aspect-ratio: 3/4; overflow: hidden; background: #f0ede8; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .prod-img img { transform: scale(1.04); }

.prod-hover {
  position: absolute; inset: 0;
  background: rgba(9,8,10,.58);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
}
.product-card:hover .prod-hover { opacity: 1; }
.prod-hover a {
  padding: 11px 22px; border: 1px solid var(--gold); color: var(--gold);
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap; transition: background .2s, color .2s;
}
.prod-hover a:hover { background: var(--gold); color: var(--black); }

.prod-info { padding: 22px 18px 26px; border-top: 1px solid #f0ede8; }
.prod-info h3 { font-family: var(--fd); font-size: 1.45rem; font-weight: 400; color: var(--text-dark); margin-bottom: 4px; }
.prod-inspired { font-size: .78rem; color: var(--muted-dark); margin-bottom: 14px; line-height: 1.5; }
.prod-inspired em { font-style: italic; color: var(--text-dark); }

.prod-bottom { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.prod-price { font-family: var(--fd); font-size: 1.3rem; font-weight: 500; color: var(--text-dark); }

.sizes { display: flex; gap: 6px; }
.sz {
  padding: 4px 11px; border: 1px solid #d5cdc3;
  font-size: .64rem; letter-spacing: .05em; color: var(--text-dark);
  transition: border-color .2s, background .2s, color .2s;
}
.sz.active, .sz:hover { border-color: var(--text-dark); background: var(--text-dark); color: #fff; }

.prod-img.no-photo {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f0ede8, #e6dfd2);
}
.prod-img.no-photo span {
  font-family: var(--fd); font-style: italic; font-size: .85rem;
  letter-spacing: .04em; color: var(--muted-dark);
}

/* ══════════════════════════════════════
   STORY
══════════════════════════════════════ */
.story { background: var(--black); padding: 110px 5vw; }
.story-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.story-heading {
  font-family: var(--fd); font-size: clamp(3rem, 5.5vw, 5.5rem);
  font-weight: 400; line-height: 1.0; color: var(--cream); margin-bottom: 26px;
}
.story-heading em { font-style: italic; color: var(--gold-light); }
.story-text p { font-size: .92rem; font-weight: 300; line-height: 1.88; color: var(--cream-dim); margin-bottom: 18px; }
.story-text .btn-outline { margin-top: 14px; }
.story-img { border-radius: 2px; overflow: hidden; aspect-ratio: 4/5; }
.story-img img { width: 100%; height: 100%; object-fit: cover; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer { background: var(--black-mid); border-top: 1px solid rgba(201,164,106,.1); padding: 72px 5vw 0; }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 56px; padding-bottom: 56px;
}
.footer-brand img { height: 44px; width: 44px; object-fit: contain; border-radius: 50%; margin-bottom: 14px; }
.footer-brand p { font-size: .8rem; font-weight: 300; color: var(--muted); max-width: 220px; line-height: 1.7; margin-top: 10px; }
.footer-col h4 { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.footer-col a { display: block; font-size: .82rem; font-weight: 300; color: var(--muted); margin-bottom: 12px; transition: color .2s; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.05);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
  padding: 22px 0; max-width: 1200px; margin: 0 auto;
}
.footer-bottom p { font-size: .7rem; color: var(--muted); letter-spacing: .07em; }
.footer-credit { font-size: .68rem; color: var(--muted); letter-spacing: .06em; }
.footer-credit a { color: var(--gold); opacity: .8; transition: opacity .2s; }
.footer-credit a:hover { opacity: 1; }
.footer-social { display: flex; gap: 18px; }
.footer-social a { color: var(--muted); transition: color .2s; }
.footer-social a:hover { color: var(--gold); }

/* ══════════════════════════════════════
   FLOATING WHATSAPP
══════════════════════════════════════ */
.wa-float {
  position: fixed; bottom: 30px; right: 30px; z-index: 400;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 22px rgba(37,211,102,.32);
  transition: transform .2s, box-shadow .2s;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37,211,102,.48); }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .align-left  { padding-left: 4vw; padding-right: 48vw; }
  .align-right { padding-left: 48vw; padding-right: 4vw; }
  .sec-inner   { max-width: 46vw; }
}

@media (max-width: 768px) {
  #site-header { padding: 16px 22px; }
  #site-header nav { display: none; }
  #menu-toggle { display: flex; }

  /* hero stays sticky/pinned on mobile too so the canvas frame-scrub
     reveal underneath it still has something to wipe away */
  .hero-heading { font-size: clamp(2rem, 9vw, 3.2rem); }
  .hero-sub { font-size: .88rem; max-width: 100%; }

  /* canvas scroll storytelling: centered stacked text instead of the
     desktop 55vw/45vw side-by-side split, which would crush the copy
     into a sliver on a narrow viewport. Scroll distance per section is
     kept equal to desktop (not shortened) so there's enough physical
     scroll room to actually read each block before it's swiped past. */
  .align-left, .align-right {
    padding-left: 7vw; padding-right: 7vw;
    text-align: center;
  }
  .sec-inner { max-width: 100%; width: 100%; }
  .stats-grid { gap: 40px; }

  /* collection */
  .collection { padding: 72px 5vw 56px; }
  .col-header { margin-bottom: 44px; }
  .col-title { font-size: clamp(2.4rem, 8vw, 3.8rem); }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 3px; }

  /* story */
  .story { padding: 80px 5vw 70px; }
  .story-inner { grid-template-columns: 1fr; gap: 40px; }
  .story-img { aspect-ratio: 4/3; order: -1; }
  .story-heading { font-size: clamp(2.4rem, 8vw, 3.8rem); }

  /* footer */
  .footer-inner { grid-template-columns: 1fr; gap: 36px; padding-bottom: 40px; text-align: center; }
  .footer-brand { display: flex; flex-direction: column; align-items: center; }
  .footer-brand img { margin-bottom: 10px; }
  .footer-brand p { max-width: none; }
  .footer-col a { text-align: center; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
  .footer-social { margin-top: 4px; }
}

@media (max-width: 480px) {
  #site-header { padding: 14px 18px; }

  .hero-heading { font-size: clamp(1.8rem, 8.5vw, 2.6rem); }
  .hero-sub { font-size: .84rem; }
  .hero-btns { flex-direction: column; align-items: center; gap: 10px; }
  .hero-btns .btn-gold,
  .hero-btns .btn-ghost { width: 100%; max-width: 280px; justify-content: center; }

  .sec-body { font-size: .86rem; }
  .stats-grid { gap: 28px; }
  .marquee-text { font-size: 9rem; }

  .products-grid { grid-template-columns: 1fr; }
  .prod-img { aspect-ratio: 1/1; }

  .story { padding: 64px 5vw 56px; }
  .story-img { aspect-ratio: 16/9; }

  footer { padding: 56px 5vw 0; }
  .footer-inner { gap: 28px; }
}
