/* ============================================================
   GUCCHI — Core stylesheet
   Palette sampled directly from the physical packaging:
   maroon #340F10, gold #F2B560, cream #F3E6C8
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand — pulled from the box */
  --maroon-950: #1A0708;
  --maroon-900: #250A0B;
  --maroon-800: #340F10;   /* the box body */
  --maroon-700: #4A1817;
  --maroon-600: #61221F;

  --gold-400:   #F2B560;   /* the GUCCHI wordmark */
  --gold-300:   #F7CE8B;
  --gold-500:   #D9963F;
  --gold-600:   #B4762A;

  --cream-100:  #FBF6EA;
  --cream-200:  #F3E6C8;   /* the banner panels */
  --cream-300:  #E4D2AB;

  /* Environment — the Himalaya, not the box */
  --pine-900:   #0E1A16;
  --pine-700:   #1C2F27;
  --pine-500:   #2F4A3D;
  --slate-700:  #2B3440;
  --mist-300:   #C6CFD2;

  --ink:        #14100E;
  --ink-soft:   rgba(20,16,14,.62);
  --paper:      #FAF5EC;

  /* Type */
  --display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SF Mono", ui-monospace, "Roboto Mono", monospace;

  /* Scale — fluid */
  --t-hero: clamp(3.2rem, 9vw, 8.5rem);
  --t-h1:   clamp(2.4rem, 5.4vw, 4.6rem);
  --t-h2:   clamp(1.9rem, 3.6vw, 3.1rem);
  --t-h3:   clamp(1.25rem, 1.9vw, 1.6rem);
  --t-body: clamp(1rem, 1.05vw, 1.09rem);
  --t-sm:   .875rem;
  --t-xs:   .74rem;

  /* Rhythm */
  --gut: clamp(1.25rem, 4vw, 3rem);
  --sec: clamp(5rem, 11vh, 9rem);
  --max: 1320px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --rule: 1px solid rgba(243,230,200,.16);
  --rule-dark: 1px solid rgba(52,15,16,.14);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--cream-100);
  background: var(--maroon-950);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img, canvas, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; }

::selection { background: var(--gold-400); color: var(--maroon-900); }

:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 3. Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: var(--sec); position: relative; }
.grid { display: grid; gap: clamp(1.5rem, 3vw, 3rem); }

/* ---------- 4. Type utilities ---------- */
.eyebrow {
  font-family: var(--body);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-400);
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: currentColor;
  opacity: .7;
  flex: none;
}
.display {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -.015em;
}
.display em {
  font-style: italic;
  color: var(--gold-400);
}
.lede {
  font-size: clamp(1.05rem, 1.35vw, 1.28rem);
  line-height: 1.72;
  color: rgba(251,246,234,.76);
  max-width: 62ch;
}
.muted { color: rgba(251,246,234,.6); }

/* ---------- 5. Buttons ---------- */
.btn {
  --bg: var(--gold-400);
  --fg: var(--maroon-900);
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: 1.02rem 1.9rem;
  background: var(--bg);
  color: var(--fg);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  border: 1px solid var(--bg);
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  will-change: transform;
}
.btn span { position: relative; z-index: 1; }
.btn::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--gold-300);
  transform: translateY(101%);
  transition: transform .45s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgba(242,181,96,.55); }
.btn:hover::after { transform: translateY(0); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  --bg: transparent;
  --fg: var(--cream-100);
  border-color: rgba(243,230,200,.34);
}
.btn--ghost::after { background: rgba(243,230,200,.1); }
.btn--ghost:hover { box-shadow: none; border-color: var(--gold-400); color: var(--gold-300); }

.btn .arw { transition: transform .4s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }

/* ---------- 6. Header ---------- */
.hdr {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 1.15rem;
  transition: background .5s var(--ease), backdrop-filter .5s var(--ease), padding .5s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.hdr.is-stuck {
  background: rgba(26,7,8,.82);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  padding-block: .72rem;
  border-bottom-color: rgba(242,181,96,.16);
}
.hdr__in {
  /* Must match .wrap, or the brand hugs the left edge of the viewport and the
     nav runs off the right one. Same max-width, same gutter, same centring. */
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gut);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand__mark { width: 34px; height: 26px; flex: none; color: var(--gold-400); }
.brand__txt {
  font-family: var(--display);
  font-size: 1.62rem;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--cream-100);
  line-height: 1;
}
.brand__sub {
  display: block;
  font-family: var(--body);
  font-size: .52rem;
  letter-spacing: .34em;
  color: var(--gold-500);
  margin-top: 3px;
  font-weight: 500;
}

.nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.4rem); }
.nav a {
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: .04em;
  color: rgba(251,246,234,.78);
  position: relative;
  padding-block: 4px;
  transition: color .3s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold-400);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--cream-100); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.burger {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0;
  cursor: pointer;
  position: relative;
  z-index: 110;
}
.burger i {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--cream-100);
  margin: 5px auto;
  transition: transform .4s var(--ease), opacity .3s;
}
.burger.is-open i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.is-open i:nth-child(2) { opacity: 0; }
.burger.is-open i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- 7. Preloader ---------- */
.pre {
  position: fixed; inset: 0;
  z-index: 9999;
  background: var(--maroon-950);
  display: grid;
  place-items: center;
  transition: opacity .9s var(--ease), visibility .9s;
}
.pre.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.pre__in { text-align: center; width: min(320px, 76vw); }
.pre__mark { width: 62px; margin: 0 auto 1.6rem; color: var(--gold-400); animation: rise 2.4s var(--ease) infinite; }
@keyframes rise {
  0%,100% { transform: translateY(0); opacity: .75; }
  50%     { transform: translateY(-9px); opacity: 1; }
}
.pre__name {
  font-family: var(--display);
  font-size: 2rem; letter-spacing: .34em;
  color: var(--cream-100); margin-bottom: .35rem;
}
.pre__tag { font-size: var(--t-xs); letter-spacing: .3em; text-transform: uppercase; color: var(--gold-500); margin-bottom: 2rem; }
.pre__bar { height: 2px; background: rgba(242,181,96,.16); overflow: hidden; border-radius: 2px; }
.pre__fill { height: 100%; width: 0%; background: var(--gold-400); transition: width .35s var(--ease); }
.pre__pct { margin-top: .8rem; font-family: var(--mono); font-size: var(--t-xs); color: var(--gold-500); letter-spacing: .12em; }

/* ---------- 8. Footer ---------- */
.ftr {
  background: var(--maroon-950);
  border-top: 1px solid rgba(242,181,96,.15);
  padding-block: clamp(3.5rem, 7vh, 5.5rem) 2rem;
}
.ftr__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3rem;
  border-bottom: var(--rule);
}
.ftr h4 {
  font-size: var(--t-xs);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 1.3rem;
  font-weight: 600;
}
.ftr li { margin-bottom: .72rem; }
.ftr li a, .ftr address {
  font-size: var(--t-sm);
  color: rgba(251,246,234,.62);
  font-style: normal;
  line-height: 1.75;
  transition: color .3s;
}
.ftr li a:hover { color: var(--gold-300); }
.ftr__brand p { font-size: var(--t-sm); color: rgba(251,246,234,.55); max-width: 34ch; margin-top: 1rem; }
.ftr__base {
  padding-top: 1.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: var(--t-xs);
  color: rgba(251,246,234,.42);
  letter-spacing: .04em;
}
.ftr__fssai {
  font-family: var(--mono);
  letter-spacing: .06em;
}

/* ---------- 9. Shared decorative ---------- */
.hairline {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242,181,96,.4), transparent);
  border: 0;
}
.noise {
  position: fixed; inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

/* Scroll cue */
.cue {
  position: absolute;
  bottom: 2.2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
  font-size: var(--t-xs);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(251,246,234,.5);
  z-index: 4;
}
.cue__line { width: 1px; height: 44px; background: linear-gradient(180deg, var(--gold-400), transparent); position: relative; overflow: hidden; }
.cue__line::after {
  content: ""; position: absolute; inset: 0;
  background: var(--cream-100);
  animation: cueRun 2.1s var(--ease) infinite;
}
@keyframes cueRun {
  0% { transform: translateY(-100%); }
  60%,100% { transform: translateY(100%); }
}

/* ---------- 10. Reveal primitives (driven by GSAP, CSS is the fallback) ---------- */
[data-rise], [data-fade], [data-split] > span > i { will-change: transform, opacity; }
.no-js [data-rise], .no-js [data-fade] { opacity: 1 !important; transform: none !important; }

/* ---------- 11. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-rise], [data-fade] { opacity: 1 !important; transform: none !important; }
  .cue { display: none; }
}
