:root {
  --cacao: #0e0c0b;
  --cacao-2: #171412;
  --cacao-3: #231c18;
  --ink: #f4eadc;
  --muted: #cbbba6;
  --gold: #d7b56a;
  --gold-2: #f3e0a8;
  --gold-dim: rgba(215, 181, 106, 0.18);
  --chili: #8b2a3a;
  --original: #6a3d2a;
  --kaffe: #c4a05a;
  --chai: #6b3d78;
  --cream: #f7ead8;
  --line: rgba(215, 181, 106, 0.28);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --script: "Italianno", "Segoe Script", cursive;
  --sans: "Outfit", system-ui, sans-serif;
  --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--cacao);
  color: var(--ink);
  min-height: 100%;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus { left: 12px; top: 12px; z-index: 1000; background: var(--gold); color: #111; padding: 8px 12px; }

.grain, .fx-layer, #spark-layer { pointer-events: none; }
.grain {
  position: fixed; inset: 0; z-index: 50;
  opacity: 0.09;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.55'/></svg>");
}
#fx {
  position: fixed; inset: 0; z-index: 6; width: 100%; height: 100%;
}
#gifts { position: fixed; inset: 0; z-index: 18; pointer-events: none; }
#spark-layer { position: fixed; inset: 0; z-index: 90; }

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: linear-gradient(to bottom, rgba(14,12,11,.88), rgba(14,12,11,.28) 70%, transparent);
  backdrop-filter: blur(10px);
}
.brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.brand svg { width: 42px; height: 42px; }
.brand-mark { display: flex; flex-direction: column; line-height: 1; }
.brand-mark em {
  font-family: var(--script); font-style: normal; font-size: 34px; color: var(--gold-2);
  letter-spacing: 0.02em;
}
.brand-mark small {
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold);
}
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a {
  text-decoration: none; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream);
  opacity: 0.86;
}
.nav-links a:hover { color: var(--gold-2); opacity: 1; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--gold);
  background: linear-gradient(180deg, #ead39a, #c79a46);
  color: #1a120c; text-decoration: none; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; font-size: 12px;
  padding: 13px 22px; border-radius: 999px; cursor: pointer;
  box-shadow: 0 8px 30px rgba(215,181,106,.28);
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(215,181,106,.4); }
.btn-ghost {
  background: transparent; color: var(--gold-2);
}
.menu-btn {
  display: none; background: none; border: 1px solid var(--line); color: var(--gold);
  width: 42px; height: 42px; border-radius: 10px; font-size: 20px; cursor: pointer;
}

.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; }
.slides { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease;
}
.slide.active { opacity: 1; z-index: 1; }
.slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
  animation: ken 14s ease-in-out infinite alternate;
}
@keyframes ken {
  from { transform: scale(1.08) translate3d(0,0,0); }
  to { transform: scale(1.18) translate3d(-2%, -1%, 0); }
}
.slide::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,12,11,.28), transparent 30%, rgba(14,12,11,.55) 70%, rgba(14,12,11,.92)),
    radial-gradient(ellipse at 30% 80%, rgba(139,42,58,.18), transparent 50%);
}
.hero-copy {
  position: relative; z-index: 3; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 8vw 110px;
  max-width: 1100px;
}
.kicker {
  color: var(--gold); letter-spacing: 0.42em; text-transform: uppercase; font-size: 12px;
  margin: 0 0 12px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; }
h1 {
  font-size: clamp(42px, 7vw, 92px); line-height: 0.95; color: #fff8ec;
  text-shadow: 0 10px 40px rgba(0,0,0,.45);
}
h1 span { font-style: italic; color: var(--gold-2); }
.lede {
  max-width: 560px; color: var(--cream); font-size: 18px; line-height: 1.6; margin: 18px 0 28px;
  opacity: 0.92;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-dots {
  position: absolute; z-index: 4; right: 28px; bottom: 110px;
  display: flex; flex-direction: column; gap: 8px;
}
.hero-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--gold);
  background: transparent; padding: 0; cursor: pointer;
}
.hero-dots button.on { background: var(--gold); }

.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: #120f0d; overflow: hidden; white-space: nowrap;
}
.marquee-track {
  display: inline-flex; gap: 38px; padding: 14px 0;
  animation: slide 28s linear infinite;
  color: var(--gold); letter-spacing: 0.28em; text-transform: uppercase; font-size: 12px;
}
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

section { position: relative; z-index: 8; padding: 92px 7vw; }
.section-head { max-width: 760px; margin-bottom: 42px; }
.section-head h2 { font-size: clamp(34px, 5vw, 64px); line-height: 1; }
.section-head p { color: var(--muted); font-size: 17px; line-height: 1.7; }

.flavors {
  display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 22px; align-items: stretch;
}
.flavor {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 420px;
  isolation: isolate; cursor: pointer; text-decoration: none; color: inherit;
  box-shadow: var(--shadow);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease, border-color .3s;
}
.flavor img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1) }
.flavor:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 28px 70px rgba(0,0,0,.55), 0 0 40px rgba(215,181,106,.28);
}
.flavor:hover img { transform: scale(1.14) rotate(-1.2deg); }
.flavor figcaption {
  position: absolute; inset: auto 0 0; padding: 22px;
  background: linear-gradient(transparent, rgba(10,8,7,.9));
}
.flavor strong { display: block; font-family: var(--serif); font-size: 28px; }
.flavor em { font-style: normal; color: var(--gold); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; }
.flavor .pair { margin-top: 6px; color: var(--cream); font-size: 14px; opacity: .85; }
.flavor.center { min-height: 520px; }
.sparkle {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(110deg, transparent 32%, rgba(255,236,190,.0) 42%, rgba(255,248,220,.55) 50%, rgba(255,236,190,.0) 58%, transparent 68%);
  transform: translateX(-130%);
  opacity: 0;
}
.card:hover .sparkle, .flavor:hover .sparkle {
  opacity: 1;
  animation: sheen .7s linear infinite;
}
@keyframes sheen {
  0% { transform: translateX(-130%); }
  100% { transform: translateX(130%); }
}

.products {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.card {
  position: relative; background: linear-gradient(180deg, #1c1714, #120f0d);
  border: 1px solid var(--line); border-radius: 18px; padding: 16px 16px 20px;
  overflow: visible; transform-style: preserve-3d;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .25s, box-shadow .35s;
  will-change: transform;
}
.card:hover {
  border-color: var(--gold);
  box-shadow: 0 22px 50px rgba(0,0,0,.5), 0 0 36px rgba(215,181,106,.35);
  z-index: 4;
}
.card-media {
  position: relative; aspect-ratio: 4/5; border-radius: 14px; overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #3a2a20, #0e0c0b);
}
.card:hover .card-media {
  background: radial-gradient(circle at 50% 30%, #5a4030, #1a100c);
}
.card-media img {
  width: 100%; height: 100%; object-fit: contain; padding: 10px;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), filter .4s;
}
.card:hover .card-media img {
  transform: scale(1.12) translateY(-10px) rotate(-2.5deg);
  filter: drop-shadow(0 18px 22px rgba(0,0,0,.55)) drop-shadow(0 0 18px rgba(215,181,106,.45));
  animation: prod-bob 1.35s ease-in-out infinite;
}
@keyframes prod-bob {
  0%, 100% { transform: scale(1.12) translateY(-10px) rotate(-2.5deg); }
  50% { transform: scale(1.16) translateY(-18px) rotate(2deg); }
}
.glitter-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 4;
}
.flavor .glitter-canvas { z-index: 5; }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(14,12,11,.72); border: 1px solid var(--gold);
  color: var(--gold-2); font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  padding: 5px 8px; border-radius: 999px;
}
.card h3 { font-size: 22px; margin: 14px 0 4px; }
.price { color: var(--gold); font-weight: 600; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 13px; line-height: 1.5; min-height: 62px; }
.card .btn { width: 100%; margin-top: 8px; }

.presence {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: center;
}
.presence img { width: 100%; border-radius: 24px; height: 520px; object-fit: cover; box-shadow: var(--shadow); }
.presence blockquote {
  font-family: var(--serif); font-size: clamp(26px, 3vw, 40px); line-height: 1.25; margin: 0 0 16px;
}
.presence .sig { font-family: var(--script); font-size: 42px; color: var(--gold); }

.about {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start;
}
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about-photos img { width: 100%; height: 260px; object-fit: cover; border-radius: 18px; }
.about-photos img.tall { grid-column: 1 / -1; height: 340px; object-position: top; }
.about p { color: var(--muted); line-height: 1.8; font-size: 16px; }
.about h2 { margin-bottom: 8px; }

.ritual { padding-top: 40px; }
.ritual-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.ritual-card {
  border: 1px solid var(--line); border-radius: 18px; padding: 22px;
  background: rgba(255,255,255,.02);
}
.ritual-card b { color: var(--gold); display: block; letter-spacing: .16em; text-transform: uppercase; font-size: 11px; margin-bottom: 8px; }
.ritual-card h3 { font-size: 28px; margin-bottom: 8px; }

.gift-stage {
  min-height: 640px; display: grid; place-items: center; text-align: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(215,181,106,.16), transparent 45%),
    url("images/gift-explode.jpg") center/cover;
  border-radius: 28px; overflow: hidden; position: relative;
}
.gift-stage::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,12,11,.2), rgba(14,12,11,.78));
}
.gift-inner { position: relative; z-index: 2; padding: 40px 20px; max-width: 720px; }
.gift-inner h2 { font-size: clamp(36px, 6vw, 72px); }
.big-gift {
  width: min(260px, 70vw); margin: 20px auto 24px; cursor: pointer; pointer-events: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.5));
  animation: bob 3.2s ease-in-out infinite;
}
@keyframes bob {
  0%,100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}

.follow {
  text-align: center;
}
.follow a.ig {
  font-family: var(--serif); font-size: 42px; color: var(--gold-2); text-decoration: none;
}

footer {
  padding: 48px 7vw 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px;
  display: grid; gap: 18px;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.foot-grid a { color: var(--cream); text-decoration: none; display: block; margin: 6px 0; }
.foot-grid a:hover { color: var(--gold); }
.legal-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; opacity: .8; }

.float-gift {
  position: absolute; width: 72px; height: 72px; pointer-events: auto; cursor: pointer;
  background: url("images/gift-closed.jpg") center/cover; border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  animation: drift linear forwards;
  z-index: 19;
}
@keyframes drift {
  from { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  to { transform: translateY(-110vh) rotate(18deg); opacity: 0; }
}

.burst-bit {
  position: fixed; z-index: 95; pointer-events: none;
  font-size: 22px; line-height: 1; color: #f3e0a8;
  text-shadow: 0 0 10px rgba(243,224,168,.9);
  animation: pop .85s cubic-bezier(.12,.7,.2,1) forwards;
  will-change: transform, opacity;
}
@keyframes pop {
  0% { transform: translate(0,0) rotate(0deg) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(.2); opacity: 0; }
}

.legal-page { padding: 120px 8vw 80px; max-width: 860px; margin: 0 auto; }
.legal-page h1 { font-size: 48px; margin-bottom: 12px; }
.legal-page h2 { font-size: 28px; margin: 28px 0 8px; }
.legal-page p, .legal-page li { color: var(--muted); line-height: 1.75; }

@media (max-width: 980px) {
  .flavors, .products, .ritual-grid, .presence, .about, .foot-grid { grid-template-columns: 1fr 1fr; }
  .flavor.center { min-height: 420px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 70px; right: 16px;
    background: #171412; border: 1px solid var(--line); padding: 16px 22px; border-radius: 16px;
  }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
}
@media (max-width: 640px) {
  .products, .flavors, .ritual-grid, .presence, .about, .foot-grid, .about-photos { grid-template-columns: 1fr; }
  .hero-copy { padding: 0 22px 96px; }
  section { padding: 64px 22px; }
  .about-photos img, .presence img { height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  .slide img { animation: none; transform: none; }
  .marquee-track { animation: none; }
  .float-gift, .big-gift { animation: none; }
}
