:root {
  --plum: #3d1f45;
  --plum-deep: #2a1330;
  --plum-soft: #6a4275;
  --gold: #c9a45c;
  --gold-deep: #a9853f;
  --cream: #faf5ec;
  --cream-2: #f4ead6;
  --sand: #eaddc2;
  --ink: #33203a;
  --muted: rgba(51, 32, 58, 0.66);
  --line: rgba(61, 31, 69, 0.14);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-script: "Great Vibes", cursive;
  --font-body: "Outfit", system-ui, sans-serif;

  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  background:
    radial-gradient(140% 90% at 80% 0%, #fff9ee 0%, transparent 45%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.script {
  font-family: var(--font-script);
  font-weight: 400;
}

.display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.005em;
  color: var(--plum);
  margin: 0;
}

.display em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-deep);
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--plum-soft);
}

.lede {
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  color: var(--muted);
  max-width: 46ch;
  margin: 0;
}

.lede--center {
  margin-inline: auto;
  text-align: center;
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem clamp(1.1rem, 4vw, 3rem);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
}

.nav.is-scrolled {
  background: rgba(250, 245, 236, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.nav__logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 40%;
  box-shadow: 0 4px 16px rgba(61, 31, 69, 0.22);
}

.nav__wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav__script {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--plum);
}

.nav__sub {
  font-size: 0.58rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--plum-soft);
  margin-left: 0.2rem;
}

.nav__links {
  display: none;
  gap: 2rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.nav__links a {
  position: relative;
  color: var(--plum);
  opacity: 0.82;
  transition: opacity 0.25s var(--ease);
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--gold-deep);
  transition: width 0.3s var(--ease);
}

.nav__links a:hover {
  opacity: 1;
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__cta {
  padding: 0.55rem 1.2rem;
  border: 1px solid var(--plum);
  border-radius: 999px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--plum);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.nav__cta:hover {
  background: var(--plum);
  color: var(--cream);
}

/* ---------- BUTTONS ---------- */
.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.cta-group--center {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn--solid {
  background: var(--plum);
  color: var(--cream);
  box-shadow: 0 10px 30px rgba(42, 19, 48, 0.28);
}

.btn--solid:hover {
  background: var(--plum-deep);
  transform: translateY(-2px);
}

.btn--outline {
  border: 1px solid var(--plum);
  color: var(--plum);
}

.btn--outline:hover {
  background: var(--plum);
  color: var(--cream);
  transform: translateY(-2px);
}

.btn--soon {
  border: 1px dashed var(--gold-deep);
  color: var(--gold-deep);
  cursor: default;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 8rem clamp(1.2rem, 5vw, 3rem) 5rem;
  overflow: hidden;
  background:
    radial-gradient(70% 90% at 88% 30%, rgba(201, 164, 92, 0.22) 0%, transparent 60%),
    radial-gradient(80% 80% at 0% 100%, rgba(106, 66, 117, 0.12) 0%, transparent 55%),
    linear-gradient(160deg, #fbf6ee 0%, #f2e6cf 60%, #ecdcbd 100%);
}

.hero__grid {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__content {
  max-width: 560px;
}

.hero__brand {
  margin: 0 0 1.4rem;
  display: flex;
  flex-direction: column;
}

.hero__brand .script {
  font-size: clamp(3.4rem, 9vw, 6.5rem);
  line-height: 0.9;
  color: var(--plum);
  text-shadow: 0 12px 40px rgba(61, 31, 69, 0.14);
}

.hero__sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(0.85rem, 1.8vw, 1.1rem);
  letter-spacing: 0.58em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding-left: 0.6em;
  margin-top: 0.35rem;
}

.hero__line {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  color: var(--muted);
  max-width: 42ch;
  margin: 0;
}

.hero__meta {
  margin: 1.6rem 0 0;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--plum-soft);
}

.hero__media {
  margin: 0;
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 420px;
}

.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  box-shadow: 0 40px 80px rgba(42, 19, 48, 0.26);
  animation: heroFloat 7s ease-in-out infinite alternate;
}

.hero__media::before {
  content: "";
  position: absolute;
  inset: -1.2rem -1.2rem auto auto;
  width: 55%;
  height: 55%;
  border: 1px solid var(--gold);
  border-radius: 14px;
  z-index: -1;
}

@keyframes heroFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-12px); }
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.8rem;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--plum-soft);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--gold-deep), transparent);
  animation: scrollpulse 2.2s var(--ease) infinite;
}

@keyframes scrollpulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ---------- SECTIONS ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4.5rem, 10vw, 8rem) clamp(1.2rem, 5vw, 3rem);
}

/* PRODUCT */
.product {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.product__text h2 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  margin-bottom: 1.1rem;
}

.claims {
  list-style: none;
  margin: 1.8rem 0 1.3rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem 1.5rem;
}

.claims li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: var(--plum);
}

.claims li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 164, 92, 0.18);
}

.product__meta {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.product__media {
  margin: 0;
  position: relative;
}

.product__media img {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: 0 30px 70px rgba(42, 19, 48, 0.22);
}

.product__media::after {
  content: "";
  position: absolute;
  inset: auto -1.4rem -1.4rem auto;
  width: 60%;
  height: 60%;
  border: 1px solid var(--gold);
  border-radius: 8px;
  z-index: -1;
}

/* FORMATS */
.formats__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}

.formats__head h2 {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  margin-bottom: 1rem;
}

.formats__grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.format {
  overflow: hidden;
}

.format__media {
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
}

.format__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.format:hover .format__media img {
  transform: scale(1.05);
}

.format__body {
  padding: 1.6rem 0.4rem 0;
}

.format__index {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold-deep);
  letter-spacing: 0.1em;
}

.format__body h3 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0.3rem 0 0.6rem;
  color: var(--plum);
}

.format__body p {
  margin: 0;
  color: var(--muted);
  max-width: 42ch;
}

/* INGREDIENTS */
.ingredients {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.ingredients__media {
  margin: 0;
}

.ingredients__media img {
  width: 100%;
  border-radius: 10px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: 0 30px 70px rgba(42, 19, 48, 0.2);
}

.ingredients__text h2 {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  margin-bottom: 1.1rem;
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.8rem 0 0;
  padding: 0;
}

.chips li {
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--plum);
  background: rgba(255, 255, 255, 0.45);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.chips li:hover {
  background: #fff;
  border-color: var(--gold);
}

/* GALLERY */
.gallery__head {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.gallery__head h2 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.tile {
  position: relative;
  padding: 0;
  border: none;
  margin: 0;
  cursor: pointer;
  overflow: hidden;
  border-radius: 8px;
  background: var(--sand);
  aspect-ratio: 1 / 1;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.5s var(--ease);
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(42, 19, 48, 0.28));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.tile:hover img {
  transform: scale(1.07);
}

.tile:hover::after {
  opacity: 1;
}

.tile:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

.tile--wide {
  grid-column: span 2;
  aspect-ratio: 16 / 7;
}

.tile--tall {
  aspect-ratio: 1 / 1;
}

/* CLOSER */
.closer {
  text-align: center;
  max-width: 720px;
}

.closer__title {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  margin-bottom: 1.2rem;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 3.5rem 1.5rem 3rem;
  background: var(--plum-deep);
  color: var(--cream);
}

.footer__logo {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 40%;
  margin: 0 auto 0.9rem;
}

.footer__brand {
  margin: 0;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: #f0dfb2;
}

.footer__brand .script {
  display: block;
  font-size: 2rem;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
  margin-bottom: 0.1rem;
}

.footer__tag {
  margin: 0.9rem 0 1.4rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.78);
}

.footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.footer__social a {
  opacity: 0.85;
  transition: opacity 0.25s var(--ease);
}

.footer__social a:hover {
  opacity: 1;
  color: #f0dfb2;
}

.footer__copy {
  margin: 1.6rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  opacity: 0.55;
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(24, 10, 28, 0.92);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__figure {
  margin: 0;
  max-width: min(1000px, 90vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  transform: scale(0.96);
  transition: transform 0.4s var(--ease);
}

.lightbox.is-open .lightbox__figure {
  transform: scale(1);
}

.lightbox__figure img {
  max-width: 100%;
  max-height: 76vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lightbox__figure figcaption {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-align: center;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.lightbox__close {
  top: 1.4rem;
  right: 1.4rem;
  width: 46px;
  height: 46px;
  font-size: 1.6rem;
  line-height: 1;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 2rem;
  line-height: 1;
}

.lightbox__nav--prev { left: 1.2rem; }
.lightbox__nav--next { right: 1.2rem; }

.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox__nav:hover {
  transform: translateY(-50%) scale(1.08);
}

/* ---------- REVEAL ANIMATION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

.hero__content.reveal {
  transition-delay: 0.15s;
}

/* ---------- RESPONSIVE ---------- */
@media (min-width: 720px) {
  .nav__links { display: flex; }

  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .hero__media {
    justify-self: end;
    max-width: 460px;
  }

  .product {
    grid-template-columns: 1fr 1fr;
  }

  .formats__grid {
    grid-template-columns: 1fr 1fr;
  }

  .ingredients {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .gallery__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .tile--wide {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
  }

  .tile--tall {
    grid-row: span 2;
    aspect-ratio: auto;
  }
}

@media (min-width: 720px) {
  .product__media { order: 2; }
}

@media (max-width: 719px) {
  .hero {
    padding-top: 7rem;
    padding-bottom: 5.5rem;
    text-align: left;
  }
  .hero__media {
    max-width: 300px;
    order: -1;
  }
  .hero__scroll { display: none; }
  .claims { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__media { transform: none; }
}
