/* ==========================================================
   Noirelle — Maison de Cacao
   Palette: dark espresso · cocoa · caramel · copper-gold · warm cream
   ========================================================== */
:root {
  --espresso: #0f0805;
  --cocoa-900: #170d08;
  --cocoa-800: #1f120b;
  --cocoa-700: #2c1a10;
  --cocoa-600: #3d2416;
  --cocoa-400: #7a4f33;
  --caramel: #c98235;
  --caramel-2: #e3a55a;
  --copper: #c48a5a;
  --gold: #d9b27c;
  --gold-2: #ecd3a6;
  --cream: #f4ead8;
  --cream-2: #e9dcc4;
  --ink: #2a170d;
  --text: rgba(244, 234, 216, .92);
  --muted: rgba(244, 234, 216, .62);
  --line: rgba(217, 178, 124, .22);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; font-family: var(--sans); font-weight: 300; color: var(--text); background: var(--espresso);
  line-height: 1.6; overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
picture { display: contents; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
.container { width: min(1280px, 100% - 32px); margin-inline: auto; }
::selection { background: var(--caramel); color: var(--espresso); }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: .72rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold); font-weight: 400; margin: 0 0 22px;
}
.eyebrow i { font-style: normal; opacity: .5; }
.section-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.6rem, 5.4vw, 4.8rem); line-height: .98;
  letter-spacing: -.01em; margin: 0 0 20px; color: var(--cream);
}
.section-title em, .hero-title em { font-style: italic; color: var(--gold); }
.lead { font-size: 1.04rem; color: var(--muted); max-width: 44ch; margin: 0 0 28px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  padding: 17px 32px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 400; font-size: .95rem; letter-spacing: .02em; overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), background .4s, color .4s, border-color .4s, box-shadow .4s;
}
.btn .arr { width: 24px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.2; transition: transform .5s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(100deg, var(--caramel), var(--gold));
  transform: translateY(101%); transition: transform .6s var(--ease);
}
.btn:hover::before { transform: none; }
.btn-line { border-color: rgba(244, 234, 216, .55); color: var(--cream); }
.btn-line:hover { color: var(--espresso); border-color: transparent; }
.btn-dark { background: var(--cocoa-800); color: var(--cream); box-shadow: 0 18px 40px -18px rgba(23, 13, 8, .8); }
.btn-dark:hover { color: var(--espresso); }
.btn-gold { background: var(--gold); color: var(--espresso); }
.btn-gold::before { background: var(--cream); }
.btn-ghost { border-color: var(--line); color: var(--cream); }
.btn-ghost:hover { color: var(--espresso); }
.btn-sm { padding: 11px 22px; font-size: .85rem; }
.btn-text { font-size: .9rem; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: color .3s, border-color .3s; }
.btn-text:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 60; height: 84px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 0 clamp(16px, 4.6vw, 72px);
  transition: background .5s, height .5s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { height: 68px; background: rgba(15, 8, 5, .72); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-color: rgba(217, 178, 124, .1); }
.nav.on-light { background: rgba(244, 234, 216, .8); color: var(--ink); }
.nav.on-light .nav-links a { color: rgba(42, 23, 13, .7); }
.nav.on-light .icon-btn svg, .nav.on-light .logo svg { stroke: var(--ink); }
.logo { display: inline-flex; align-items: center; gap: 12px; justify-self: start; }
.logo svg { width: 28px; height: 28px; fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-linecap: round; transition: stroke .4s; }
.logo span { font-family: var(--serif); font-size: 1.55rem; letter-spacing: .32em; text-transform: uppercase; font-weight: 400; }
.nav-links { display: flex; gap: clamp(20px, 3vw, 46px); font-size: .9rem; }
.nav-links a { position: relative; color: rgba(244, 234, 216, .78); padding: 6px 0; transition: color .3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .5s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--cream); }
.nav.on-light .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: none; }
.nav-icons { display: flex; gap: 6px; justify-self: end; }
.icon-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; transition: background .3s; }
.icon-btn:hover { background: rgba(217, 178, 124, .12); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--cream); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.bag b {
  position: absolute; top: 5px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--caramel); color: var(--espresso); font-size: .66rem; font-weight: 500; display: grid; place-items: center;
  transform: scale(0); transition: transform .4s var(--ease);
}
.bag.has b { transform: scale(1); }
.bag.bump { animation: bump .6s var(--ease); }
@keyframes bump { 40% { transform: scale(1.25) rotate(-8deg); } }
.menu { display: none; }
.mobile-menu {
  position: fixed; inset: 68px 12px auto; z-index: 59; padding: 18px; border-radius: 18px;
  background: rgba(23, 13, 8, .94); border: 1px solid var(--line); backdrop-filter: blur(18px);
  display: grid; gap: 4px; font-family: var(--serif); font-size: 1.6rem;
}
.mobile-menu a { padding: 8px 10px; border-radius: 10px; }
.mobile-menu a:active { background: rgba(217, 178, 124, .12); }

/* ==========================================================
   Hero
   ========================================================== */
.hero { position: relative; height: 260vh; background: var(--espresso); }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; transform-origin: 60% 50%; will-change: transform; }
.hero-glow {
  position: absolute; left: 0; top: 0; width: 900px; height: 900px; margin: -450px 0 0 -450px; border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 165, 90, .16), transparent 62%); pointer-events: none; mix-blend-mode: screen;
  opacity: 0; transition: opacity .8s;
}
.hero-sticky:hover .hero-glow { opacity: 1; }
.fx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-layer { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.hero-layer.front { z-index: 4; }
.hi { position: absolute; left: 50%; top: 50%; opacity: 0; will-change: transform, opacity; }
.hi img { height: 100%; width: auto; max-width: none; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .55)); transition: filter .5s; }
.hi.lit img { filter: drop-shadow(0 0 26px rgba(227, 165, 90, .75)) drop-shadow(0 26px 30px rgba(0, 0, 0, .55)) brightness(1.12); }

.hero-product {
  position: absolute; z-index: 3; left: 60%; top: 52%; width: min(32vw, 50vh); aspect-ratio: 716 / 892;
  translate: -50% -50%; will-change: transform;
}
.bar-halo {
  position: absolute; inset: -40%; border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 165, 90, .38) 0%, rgba(201, 130, 53, .12) 34%, transparent 62%);
  opacity: var(--halo, 0); transform: scale(var(--halo-s, .6)); mix-blend-mode: screen;
}
.hero-bar { position: relative; width: 100%; height: 100%; transform: rotate(-24deg); will-change: transform, filter; }
.hero-bar img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 50px 60px rgba(0, 0, 0, .7)) drop-shadow(0 0 1px rgba(236, 211, 166, .4)); }
.sheen {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  -webkit-mask: url(assets/bar.webp) center / contain no-repeat; mask: url(assets/bar.webp) center / contain no-repeat;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 226, 180, .38) 48%, rgba(255, 240, 210, .1) 52%, transparent 62%) no-repeat;
  background-size: 300% 100%; animation: sheen 6s var(--ease) infinite 2.6s;
}
@keyframes sheen { 0% { background-position: 120% 0; } 45%, 100% { background-position: -40% 0; } }

.hero-copy {
  position: absolute; z-index: 5; left: clamp(16px, 4.6vw, 72px); top: 50%; translate: 0 -46%;
  width: min(480px, 34vw); will-change: transform, opacity;
}
.hero-copy .eyebrow { color: var(--cream); opacity: .85; }
.hero-title {
  font-family: var(--serif); font-weight: 300; color: var(--cream);
  font-size: clamp(3rem, 5.4vw, 5.6rem); line-height: .98; letter-spacing: -.015em; margin: 0 0 30px; white-space: nowrap;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); animation: lineUp 1.4s var(--ease-out) forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: .15s; }
@keyframes lineUp { to { transform: none; } }
.hero-sub { color: var(--muted); max-width: 40ch; margin: 0 0 36px; font-size: 1.02rem; }
.hero-ctas { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero-copy .eyebrow, .hero-sub, .hero-ctas, .hero-count { opacity: 0; animation: fadeUp 1.2s var(--ease-out) forwards .6s; }
.hero-sub { animation-delay: .8s; } .hero-ctas { animation-delay: 1s; } .hero-count { animation-delay: 1.2s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-count { display: flex; align-items: center; gap: 16px; margin-top: 64px; font-size: .78rem; letter-spacing: .1em; }
.hero-count span:last-child { color: var(--muted); }
.hero-count i { position: relative; width: 84px; height: 1px; background: rgba(244, 234, 216, .2); }
.hero-count b { position: absolute; inset: 0; background: var(--cream); transform-origin: left; transform: scaleX(0); }

.rich { padding: clamp(60px, 7vw, 100px) 0; background: var(--cocoa-900); border-bottom: 1px solid var(--line); }
.rich-grid { display: grid; grid-template-columns: minmax(260px, 1fr) 2.2fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.rich .side-sub { margin: 0; }
.rich .side-list { grid-template-columns: repeat(4, 1fr); gap: 14px; }
.rich .side-list li { flex-direction: column; text-align: center; margin: 0; padding: 22px 12px 18px; border-radius: 20px; border: 1px solid rgba(217, 178, 124, .1); }
.rich .side-list li:hover, .rich .side-list li.on { transform: translateY(-4px); border-color: var(--line); }
.rich .thumb { width: 76px; height: 76px; }
.side-title { font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 2.8vw, 2.8rem); line-height: 1; margin: 0 0 18px; color: var(--cream); }
.side-sub { color: var(--muted); font-size: .9rem; max-width: 30ch; margin: 0 0 30px; }
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.side-list li {
  display: flex; align-items: center; gap: 16px; padding: 8px 12px 8px 8px; margin-left: -8px; border-radius: 60px; cursor: pointer;
  transition: background .4s, transform .5s var(--ease);
}
.side-list li:hover, .side-list li.on { background: rgba(217, 178, 124, .09); transform: translateX(6px); }
.thumb { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex: none; border: 1px solid rgba(236, 211, 166, .35); background: var(--cocoa-700); display: grid; place-items: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.side-list li:nth-child(n+2) .thumb img { object-fit: contain; padding: 6px; }
.side-list li.on .thumb img { transform: scale(1.12) rotate(-8deg); }
.side-list b { display: block; font-weight: 400; font-size: .92rem; color: var(--cream); }
.side-list small { color: var(--muted); font-size: .74rem; }

.scroll-cue { position: absolute; z-index: 5; left: 50%; bottom: 26px; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; }
.scroll-cue em { font-style: normal; }
.scroll-cue span { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.hero-veil { position: absolute; inset: 0; z-index: 8; background: var(--espresso); opacity: 0; pointer-events: none; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--cocoa-900); padding: 22px 0; }
.marquee-track { display: flex; width: max-content; gap: 34px; animation: marquee 38s linear infinite; font-family: var(--serif); font-size: 1.6rem; font-style: italic; color: var(--cream-2); white-space: nowrap; align-items: center; }
.marquee-track i { font-style: normal; font-size: .9rem; color: var(--caramel); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================
   Break it open
   ========================================================== */
.break { position: relative; padding: clamp(90px, 12vw, 160px) 0; background: radial-gradient(ellipse 60% 70% at 70% 50%, #2a170c, var(--cocoa-900) 70%); overflow: hidden; }
.break-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(280px, 5fr) 7fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.break-status { margin: 10px 0 26px; }
.snap-meter { width: 220px; height: 2px; background: rgba(244, 234, 216, .14); border-radius: 2px; overflow: hidden; margin-bottom: 12px; }
.snap-meter i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--caramel), var(--gold-2)); }
.break-status p { margin: 0; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.layer-card {
  position: relative; padding: 26px 28px; border-radius: 20px; margin-bottom: 22px; max-width: 440px;
  background: linear-gradient(160deg, rgba(61, 36, 22, .7), rgba(31, 18, 11, .7));
  border: 1px solid var(--line); animation: cardIn .7s var(--ease-out);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } }
.lc-num { position: absolute; top: 20px; right: 24px; font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: rgba(217, 178, 124, .3); }
.layer-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; margin: 0 0 8px; color: var(--cream); }
.layer-card p { margin: 0 0 16px; color: var(--muted); font-size: .94rem; }
.lc-notes { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lc-notes li { font-size: .74rem; letter-spacing: .08em; padding: 5px 12px; border-radius: 30px; border: 1px solid var(--line); color: var(--gold-2); }

.break-stage {
  position: relative; aspect-ratio: 1 / 1; max-height: 78vh; width: 100%; margin-inline: auto;
  touch-action: none; cursor: grab; outline: none; user-select: none; -webkit-user-select: none;
}
.break-stage:active { cursor: grabbing; }
.break-stage:focus-visible { box-shadow: 0 0 0 1px var(--gold); border-radius: 30px; }
.break-stage.broken { cursor: default; }
.bk-halo { position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle, rgba(201, 130, 53, .28), transparent 64%); transition: transform 1.2s var(--ease-out), opacity 1s; }
.break-stage.broken .bk-halo { transform: scale(1.2); opacity: 1.4; }
.bk-bar { position: absolute; left: 50%; top: 50%; width: 48%; aspect-ratio: 716 / 892; translate: -50% -50%; transition: transform .8s var(--ease); }
.bk-half { position: absolute; inset: 0; will-change: transform; transition: transform 1.1s var(--ease-out), filter .6s; }
.bk-half img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .65)); pointer-events: none; }
.bk-half.top { clip-path: polygon(0 0, 100% 0, 100% 51%, 88% 49.5%, 76% 53%, 63% 48.5%, 50% 52.5%, 38% 48%, 25% 52%, 12% 49%, 0 51.5%); }
.bk-half.bottom { clip-path: polygon(0 51.5%, 12% 49%, 25% 52%, 38% 48%, 50% 52.5%, 63% 48.5%, 76% 53%, 88% 49.5%, 100% 51%, 100% 100%, 0 100%); }
.break-stage.dragging .bk-half { transition: none; }
.crack-glow {
  position: absolute; left: 0; right: 0; top: 47%; height: 7%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 196, 120, .9), transparent);
  clip-path: polygon(0 60%, 12% 30%, 25% 75%, 38% 15%, 50% 85%, 63% 20%, 76% 90%, 88% 35%, 100% 60%, 100% 70%, 88% 45%, 76% 100%, 63% 30%, 50% 95%, 38% 25%, 25% 85%, 12% 40%, 0 70%);
  opacity: var(--crack, 0); filter: blur(1px); mix-blend-mode: screen;
}
.bk-section {
  position: absolute; left: 50%; top: 50%; width: 82%; translate: -50% -50%;
  opacity: 0; transform: scale(.55) rotate(-6deg); filter: blur(10px);
  transition: opacity .9s var(--ease-out) .15s, transform 1.3s var(--ease-out) .1s, filter .9s .15s;
}
.bk-section img { width: 100%; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .7)); }
.break-stage.broken .bk-section { opacity: 1; transform: none; filter: none; }
.hotspot {
  position: absolute; left: var(--x); top: var(--y); translate: -50% -50%;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(15, 8, 5, .55); border: 1px solid rgba(236, 211, 166, .7); color: var(--cream);
  font-size: .7rem; letter-spacing: .05em; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transform: scale(.4); transition: opacity .5s, transform .6s var(--ease), background .3s;
}
.hotspot::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid rgba(236, 211, 166, .45); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.break-stage.broken .hotspot { opacity: 1; transform: none; }
.break-stage.broken .hotspot:nth-of-type(1) { transition-delay: .9s; }
.break-stage.broken .hotspot:nth-of-type(2) { transition-delay: 1s; }
.break-stage.broken .hotspot:nth-of-type(3) { transition-delay: 1.1s; }
.break-stage.broken .hotspot:nth-of-type(4) { transition-delay: 1.2s; }
.hotspot:hover, .hotspot.on { background: var(--gold); color: var(--espresso); transform: scale(1.12); }
.caramel-drip { position: absolute; left: 86%; top: 28%; width: 9%; z-index: 1; translate: -50% 0; opacity: 0; transform: scaleY(.2); transform-origin: top; transition: opacity .6s .3s, transform 1.4s var(--ease-out) .25s; pointer-events: none; }
.break-stage.broken .caramel-drip { opacity: .95; transform: rotate(8deg); }
.bk-tip {
  position: absolute; left: 50%; bottom: 3%; translate: -50% 0; display: flex; align-items: center; gap: 10px;
  font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-2); transition: opacity .4s;
}
.break-stage.broken .bk-tip { opacity: 0; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--caramel); box-shadow: 0 0 0 0 rgba(201, 130, 53, .6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(201, 130, 53, 0); } 100% { box-shadow: 0 0 0 0 rgba(201, 130, 53, 0); } }

/* ==========================================================
   Layers — exploded 3D stack
   ========================================================== */
.layers { position: relative; height: 420vh; background: var(--espresso); }
.layers-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; padding-top: 96px; }
.layers-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 50% 60% at 50% 60%, rgba(122, 79, 51, .32), transparent 70%), radial-gradient(ellipse 40% 30% at 50% 100%, rgba(201, 130, 53, .14), transparent 70%); }
.layers-head { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; }
.layers-head .section-title { font-size: clamp(2.2rem, 4.4vw, 3.9rem); margin: 0; }
.layers-head .lead { margin: 0; font-size: .96rem; }
.layers-grid { position: relative; flex: 1; display: grid; grid-template-columns: 250px 1fr 300px; align-items: center; gap: 20px; width: min(1280px, 100% - 32px); margin: 0 auto; min-height: 0; }
.layer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.layer-list li {
  display: flex; gap: 16px; align-items: center; padding: 14px 16px; border-radius: 14px; cursor: pointer;
  border: 1px solid transparent; transition: background .4s, border-color .4s, opacity .4s; opacity: .5;
}
.layer-list li:hover { opacity: .85; }
.layer-list li.on { opacity: 1; background: rgba(61, 36, 22, .45); border-color: var(--line); }
.layer-list span { font-family: var(--serif); font-size: 1.5rem; color: var(--gold); width: 30px; }
.layer-list b { display: block; font-weight: 400; color: var(--cream); }
.layer-list small { color: var(--muted); font-size: .76rem; }

.stack-stage { position: relative; height: 100%; min-height: 360px; perspective: 1800px; display: grid; place-items: center; }
.stack-shadow { position: absolute; left: 50%; top: 66%; width: 60%; height: 22%; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .75), transparent); filter: blur(10px); }
.stack {
  --s: 1; position: relative; width: 340px; height: 220px; transform-style: preserve-3d;
  transform: translateY(var(--ty, 0px)) scale(var(--s)) rotateX(var(--rx, 58deg)) rotateZ(var(--rz, -36deg));
}
.slab { position: absolute; inset: 0; transform-style: preserve-3d; cursor: pointer; will-change: transform; }
.slab .f { position: absolute; background-size: cover; background-position: center; backface-visibility: hidden; }
.slab .top { inset: 0; transform: translateZ(var(--h)); border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(255, 230, 190, .12); }
.slab .top::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(130deg, rgba(255, 236, 205, .28), transparent 40%, rgba(0, 0, 0, .25)); }
.slab .bot { inset: 0; transform: rotateY(180deg); filter: brightness(.3); }
.slab .side { filter: brightness(.68) saturate(1.1); }
.slab .s-front { left: 0; top: 100%; width: 100%; height: var(--h); transform-origin: top; transform: rotateX(90deg); }
.slab .s-back { left: 0; bottom: 100%; width: 100%; height: var(--h); transform-origin: bottom; transform: rotateX(-90deg); }
.slab .s-right { left: 100%; top: 0; width: var(--h); height: 100%; transform-origin: left; transform: rotateY(-90deg); filter: brightness(.48); }
.slab .s-left { right: 100%; top: 0; width: var(--h); height: 100%; transform-origin: right; transform: rotateY(90deg); filter: brightness(.48); }
.slab .side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(255, 220, 170, .18), transparent 30%, rgba(0, 0, 0, .3)); }
.slab .top, .slab .side { transition: box-shadow .5s, filter .5s; }
.slab.on .top { box-shadow: inset 0 0 0 1.5px rgba(236, 211, 166, .9), 0 0 50px rgba(227, 165, 90, .5); }
.slab.dim .f { filter: brightness(.45) saturate(.7); }
.slab.dim .top::after { background: rgba(10, 5, 2, .25); }
.slab-tag {
  position: absolute; left: 100%; top: 0; transform-origin: left top; white-space: nowrap; pointer-events: none;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2);
  display: flex; align-items: center; gap: 10px; opacity: 0; transition: opacity .5s;
}
.slab-tag::before { content: ""; width: 60px; height: 1px; background: var(--gold); }
.slab.on .slab-tag { opacity: 1; }

.profile { padding: 26px; border-radius: 22px; background: linear-gradient(170deg, rgba(44, 26, 16, .78), rgba(23, 13, 8, .7)); border: 1px solid var(--line); }
.profile-k { margin: 0 0 6px; font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.profile-title { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; margin: 0 0 8px; color: var(--cream); line-height: 1.05; }
.profile-text { margin: 0 0 6px; color: var(--muted); font-size: .86rem; min-height: 4.2em; }
.radar { width: 100%; max-width: 240px; display: block; margin: 0 auto; overflow: visible; }
.radar .grid { fill: none; stroke: rgba(217, 178, 124, .16); }
.radar .axis { stroke: rgba(217, 178, 124, .14); }
#radarShape { fill: rgba(201, 130, 53, .32); stroke: var(--gold); stroke-width: 1.2; stroke-linejoin: round; }
#radarDots circle { fill: var(--gold-2); }
#radarLabels text { fill: var(--muted); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; font-family: var(--sans); }
.pf-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 10px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.pf-stats dt { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.pf-stats dd { margin: 2px 0 0; font-family: var(--serif); font-size: 1.12rem; color: var(--cream); line-height: 1.15; }
.layers-progress { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; width: 160px; height: 1px; background: rgba(244, 234, 216, .14); }
.layers-progress i { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(0); }

/* ==========================================================
   Ingredient explorer
   ========================================================== */
.ingredients { padding: clamp(100px, 12vw, 170px) 0; background: linear-gradient(var(--espresso), var(--cocoa-900)); }
.split-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 70px); }
.split-head .lead { margin: 0; }
.ing-explorer { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.ing-stage { position: relative; aspect-ratio: 1; max-width: 560px; width: 100%; margin-inline: auto; display: grid; place-items: center; }
.ing-ring { position: absolute; inset: 0; animation: spin 40s linear infinite; }
.ing-ring svg { width: 100%; height: 100%; }
.ing-ring text { fill: rgba(217, 178, 124, .55); font-size: 11.5px; font-family: var(--sans); }
@keyframes spin { to { transform: rotate(360deg); } }
.ing-stage::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 1px solid var(--line); }
.ing-glow { position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(circle, var(--g, rgba(201, 130, 53, .35)), transparent 66%); transition: background .8s; }
.ing-hero {
  position: relative; width: 62%; max-height: 62%; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .6));
  animation: float 6s ease-in-out infinite; transition: opacity .45s, transform .6s var(--ease);
}
.ing-hero.swap { opacity: 0; transform: scale(.82) rotate(-10deg); }
@keyframes float { 50% { translate: 0 -14px; } }
.ing-meta { position: absolute; bottom: -5%; left: 50%; translate: -50% 0; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-2); white-space: nowrap; }
.ing-tabs { list-style: none; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ing-tab {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; text-align: left;
  border: 1px solid rgba(217, 178, 124, .12); background: rgba(44, 26, 16, .35); transition: border-color .4s, background .4s, transform .4s var(--ease);
}
.ing-tab:hover { transform: translateY(-2px); border-color: var(--line); }
.ing-tab[aria-selected="true"] { border-color: var(--gold); background: rgba(61, 36, 22, .7); }
.ing-tab img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.ing-tab span { font-size: .84rem; line-height: 1.2; }
.ing-detail h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 3.6vw, 3.2rem); margin: 0 0 12px; color: var(--cream); line-height: 1; }
.ing-detail p { color: var(--muted); margin: 0 0 26px; max-width: 48ch; }
.ing-detail.swap { animation: cardIn .6s var(--ease-out); }
.ing-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.ing-facts div { background: var(--cocoa-900); padding: 16px; }
.ing-facts dt, .ing-facts span { display: block; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.ing-facts b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.2rem; color: var(--gold-2); margin-top: 4px; line-height: 1.2; }

/* ==========================================================
   Macro
   ========================================================== */
.macro { position: relative; height: 110vh; min-height: 640px; overflow: hidden; display: flex; align-items: center; background: var(--espresso); }
.macro-media { position: absolute; inset: 0; }
.macro-media img { width: 100%; height: 118%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0) scale(var(--ms, 1.08)); will-change: transform; }
.macro::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 8, 5, .88), rgba(15, 8, 5, .2) 55%, transparent), linear-gradient(transparent 70%, var(--espresso)); pointer-events: none; }
.macro-copy { position: relative; z-index: 2; }
.macro-title { font-family: var(--serif); font-weight: 300; font-size: clamp(3rem, 7.4vw, 7.2rem); line-height: .95; margin: 0 0 24px; color: var(--cream); max-width: 9ch; }
.macro-title span { display: inline-block; opacity: 0; transform: translateY(40px); filter: blur(8px); transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out), filter 1.2s; }
.macro-title em { color: var(--gold); }
.macro-title.in span { opacity: 1; transform: none; filter: none; }
.macro-title.in span:nth-child(2) { transition-delay: .15s; }
.macro-title.in span:nth-child(3) { transition-delay: .3s; }

/* ==========================================================
   Journey — horizontal scroll
   ========================================================== */
.journey { position: relative; height: 340vh; background: var(--cocoa-900); }
.journey-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(26px, 4vh, 50px); padding-top: 60px; }
.journey-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; }
.journey-head .section-title { margin: 0; font-size: clamp(2.4rem, 4.6vw, 4.2rem); }
.journey-head .lead { margin: 0; }
.journey-track { display: flex; gap: clamp(20px, 3vw, 44px); padding-inline: max(16px, calc((100vw - 1280px) / 2)); width: max-content; will-change: transform; }
.j-card { position: relative; width: clamp(280px, 34vw, 480px); flex: none; }
.j-card + .j-card::before {
  content: ""; position: absolute; left: calc(-1 * clamp(20px, 3vw, 44px)); top: 30%; width: clamp(20px, 3vw, 44px); height: 1px; background: var(--gold); opacity: .6;
}
.j-card figure { margin: 0 0 20px; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; border: 1px solid rgba(217, 178, 124, .12); }
.j-card img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.4s var(--ease-out); }
.j-card.in img { transform: scale(1); }
.j-num { font-size: .72rem; letter-spacing: .3em; color: var(--gold); }
.j-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.8rem; margin: 4px 0 6px; color: var(--cream); letter-spacing: .02em; }
.j-card p { margin: 0; color: var(--muted); font-size: .92rem; max-width: 38ch; }
.journey-progress i { display: block; position: relative; height: 1px; background: rgba(244, 234, 216, .14); }
.journey-progress b { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(0); }

/* ==========================================================
   Collection
   ========================================================== */
.collection { padding: clamp(100px, 12vw, 170px) 0; background: var(--espresso); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 9px 20px; border-radius: 40px; border: 1px solid var(--line); font-size: .84rem; color: var(--muted); transition: background .3s, color .3s, border-color .3s; }
.chip:hover { color: var(--cream); }
.chip.active { background: var(--gold); border-color: var(--gold); color: var(--espresso); }
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.prod {
  position: relative; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden;
  background: var(--cocoa-800); border: 1px solid rgba(217, 178, 124, .1);
  transition: transform .7s var(--ease), border-color .5s, opacity .5s, box-shadow .7s;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.prod.hide { display: none; }
.prod:hover { border-color: var(--line); box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .9); }
.prod.tilting { transition: transform .12s linear, border-color .5s, box-shadow .7s; }
.prod figure { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.prod figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.prod:hover figure img { transform: scale(1.07); }
.prod figure::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255, 220, 170, .18), transparent 45%); opacity: 0; transition: opacity .5s; pointer-events: none; }
.prod:hover figure::after { opacity: 1; }
.prod .tag { position: absolute; top: 14px; left: 14px; z-index: 1; font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; padding: 5px 11px; border-radius: 20px; background: rgba(15, 8, 5, .6); backdrop-filter: blur(8px); color: var(--gold-2); }
.prod-info { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; margin: 0; color: var(--cream); line-height: 1.1; }
.prod .notes { margin: 0; color: var(--muted); font-size: .84rem; }
.prod-row { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; }
.prod .price { font-family: var(--serif); font-size: 1.4rem; color: var(--gold-2); }
.add {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 30px; font-size: .8rem;
  border: 1px solid var(--line); transition: background .3s, color .3s, border-color .3s;
}
.add:hover { background: var(--gold); color: var(--espresso); border-color: var(--gold); }
.add.done { background: var(--caramel); border-color: var(--caramel); color: var(--espresso); }

/* ==========================================================
   CTA
   ========================================================== */
.cta { display: grid; grid-template-columns: 1.35fr 1fr; min-height: 560px; border-top: 1px solid var(--line); }
.cta-dark { position: relative; overflow: hidden; background: radial-gradient(ellipse at 55% 55%, #33200f, var(--cocoa-900) 70%); }
.cta-bar { position: absolute; left: 50%; top: 50%; width: min(30%, 260px); translate: -50% -50%; transform: rotate(-28deg) translateY(var(--cy, 0px)); filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .7)); }
.cta-shards { position: absolute; left: 6%; top: 8%; width: 18%; max-width: 220px; opacity: .9; transform: translateY(var(--sy, 0px)) rotate(-12deg); filter: blur(1px) drop-shadow(0 20px 30px rgba(0, 0, 0, .6)); }
.cta-caramel { position: absolute; right: 12%; bottom: 8%; width: 14%; max-width: 140px; transform: translateY(var(--ky, 0px)) rotate(14deg); filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .5)); }
.cta-quote { position: absolute; left: clamp(20px, 4vw, 60px); bottom: clamp(24px, 4vw, 50px); max-width: 360px; }
.cta-quote p { font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.25; margin: 0 0 8px; color: var(--cream); }
.cta-quote span { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.cta-cream {
  position: relative; color: var(--ink); text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 80px clamp(24px, 4vw, 60px); background: var(--cream) url(assets/cream.webp) center / cover;
}
.cta-cream .eyebrow { color: rgba(42, 23, 13, .7); }
.cta-title { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 5vw, 4.6rem); line-height: .98; margin: 0 0 20px; }
.cta-cream p { margin: 0 0 32px; max-width: 32ch; color: rgba(42, 23, 13, .72); }

/* ---------- Footer ---------- */
.footer { background: var(--espresso); border-top: 1px solid var(--line); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 40px; align-items: start; }
.footer p { color: var(--muted); font-size: .88rem; max-width: 36ch; }
.foot-links { display: grid; gap: 8px; font-size: .9rem; color: var(--muted); }
.foot-links a:hover { color: var(--gold); }
.news label { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--cream); margin-bottom: 14px; }
.news-row { display: flex; gap: 8px; padding: 6px; border-radius: 40px; border: 1px solid var(--line); }
.news-row input { flex: 1; min-width: 0; background: none; border: 0; padding: 0 16px; color: var(--cream); font: inherit; font-size: .9rem; outline: none; }
.copy { font-size: .74rem !important; margin-top: 50px !important; max-width: none !important; letter-spacing: .06em; }

.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 80; translate: -50% 0; padding: 14px 22px; border-radius: 40px;
  background: rgba(31, 18, 11, .94); border: 1px solid var(--line); color: var(--cream); font-size: .88rem;
  backdrop-filter: blur(12px); opacity: 0; transform: translateY(20px); transition: opacity .4s, transform .5s var(--ease); pointer-events: none;
}
.toast.show { opacity: 1; transform: none; }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); }
[data-reveal].in { opacity: 1; transform: none; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1180px) {
  .layers-grid { grid-template-columns: 200px 1fr 260px; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav { grid-template-columns: 1fr auto; }
  .menu { display: grid; }
  .hero-copy { width: 40vw; }
  .hero-product { left: 50%; }
  .layers-grid { grid-template-columns: 1fr 260px; }
  .layer-list { display: none; }
}
@media (max-width: 860px) {
  .nav { height: 66px; }
  .logo span { font-size: 1.2rem; letter-spacing: .26em; }
  .hero { height: 220vh; }
  .hero-product { left: 50%; top: 37%; width: min(52vw, 32vh); }
  .hero-copy { left: 16px; right: 16px; width: auto; top: auto; bottom: 74px; translate: 0 0; }
  .hero-title { font-size: clamp(2.6rem, 11vw, 3.6rem); margin-bottom: 14px; }
  .hero-sub { font-size: .9rem; margin-bottom: 20px; }
  .hero-copy .eyebrow { font-size: .6rem; letter-spacing: .2em; gap: 8px; margin-bottom: 14px; }
  .hero-count { display: none; }
  .scroll-cue { display: none; }
  .rich-grid { grid-template-columns: 1fr; }
  .rich .side-list { grid-template-columns: repeat(2, 1fr); }
  .break-grid { grid-template-columns: 1fr; }
  .break-stage { max-height: none; order: -1; }
  .layers { height: 380vh; }
  .layers-sticky { padding-top: 76px; }
  .layers-head .lead { display: none; }
  .layers-grid { grid-template-columns: 1fr; grid-template-rows: 1fr auto; gap: 8px; padding-bottom: 46px; }
  .stack { --s: .62; }
  .profile { padding: 16px 18px; display: grid; grid-template-columns: 1fr 120px; gap: 0 12px; align-items: center; }
  .profile-k, .profile-title, .profile-text { grid-column: 1; }
  .profile-text { min-height: 0; font-size: .8rem; }
  .profile-title { font-size: 1.5rem; }
  .radar { grid-column: 2; grid-row: 1 / 4; max-width: 120px; }
  #radarLabels { display: none; }
  .pf-stats { grid-column: 1 / -1; }
  .ing-explorer { grid-template-columns: 1fr; }
  .ing-stage { max-width: 380px; }
  .ing-tabs { grid-template-columns: repeat(2, 1fr); }
  .ing-facts { grid-template-columns: 1fr 1fr 1fr; }
  .ing-facts div { padding: 12px; }
  .macro { height: 92vh; align-items: flex-start; padding-top: 110px; }
  .macro::after { background: linear-gradient(rgba(15, 8, 5, .85), rgba(15, 8, 5, .2) 50%, var(--espresso)); }
  .journey { height: auto; }
  .journey-sticky { position: relative; height: auto; padding: 90px 0; }
  .journey-track { flex-direction: column; width: auto; padding-inline: 16px; transform: none !important; }
  .j-card { width: 100%; }
  .j-card + .j-card::before { display: none; }
  .journey-progress { display: none; }
  .prod-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .prod-info { padding: 14px; }
  .prod h3 { font-size: 1.25rem; }
  .prod .notes { font-size: .76rem; }
  .prod-row { flex-wrap: wrap; gap: 8px; }
  .cta { grid-template-columns: 1fr; }
  .cta-dark { min-height: 420px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .prod-grid { grid-template-columns: 1fr; }
  .ing-tab span { font-size: .78rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee-track { animation: none; }
}
