/* ===== Tokens ===== */
:root {
  --ink: #141210;
  --ink-2: #2a2622;
  --cream: #fbf8f0;
  --paper: #ffffff;
  --gold: #c09a48;          /* metallic gold, solid fallback */
  --gold-deep: #8c6a2b;     /* gold text on white */
  --gold-soft: #e4d2a6;
  --gold-metal: linear-gradient(115deg, #6f5220 0%, #b38b3e 18%, #e9d08f 34%, #fff3cf 42%, #d2ad5c 52%, #9a7432 70%, #c9a352 86%, #7a5a22 100%);
  --amber: #c98a2e;         /* brittle color */
  --amber-deep: #8a5418;
  --muted: #6d655a;
  --line: rgba(20, 18, 16, .12);

  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;

  --radius: 18px;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.01em;
  font-variant-numeric: lining-nums;
  margin: 0 0 .5em;
}
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h3 { font-size: 1.6rem; letter-spacing: 0; }
p { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 11vw, 140px) 0; }
.section__head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 64px); }

.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}
.eyebrow--dark { color: var(--gold-deep); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em;
  padding: .95em 1.6em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: 600 .95rem/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold-metal); background-size: 200% 100%; color: var(--ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 4px 14px -6px rgba(90,60,10,.6); transition: transform .2s ease, background-position .6s ease; }
.btn--gold:hover { background-position: 100% 0; }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--ghost-dark { color: var(--ink); border-color: var(--line); background: transparent; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--sm { padding: .7em 1.2em; font-size: .85rem; }
.btn--block { width: 100%; padding: 1.15em; font-size: 1rem; }

/* ===== Nav ===== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--gold-soft);
  padding-top: 10px; padding-bottom: 10px;
}
.nav__logo img { height: 44px; width: auto; border-radius: 6px; }
.nav__links { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 32px); }
.nav__links a:not(.btn) {
  color: rgba(255,255,255,.88); text-decoration: none; font-size: .92rem; font-weight: 500;
}
.nav__links a:not(.btn):hover { color: var(--gold); }
.nav.is-scrolled .nav__links a:not(.btn) { color: var(--ink-2); }
.nav.is-scrolled .nav__links a:not(.btn):hover { color: var(--gold-deep); }

/* ===== Gold label frame (cut from the packaging) ===== */
.gold-frame {
  border: var(--frame, 56px) solid transparent;
  border-image: url("assets/vector/gold-frame.svg") 100 stretch;
  background: var(--paper);
  background-clip: border-box;
}

/* ===== Hero / B-roll ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}
.hero__media { position: absolute; inset: 0; }
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0; transition: opacity 1s ease;
}
.hero.has-video .hero__video.is-visible { opacity: 1; }

/* Placeholder "boiling sugar" motion until real b-roll is added */
.hero__fallback {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 30% 70%, rgba(214,140,46,.55), transparent 70%),
    radial-gradient(50% 45% at 75% 35%, rgba(234,180,80,.45), transparent 70%),
    radial-gradient(80% 70% at 50% 110%, rgba(138,84,24,.9), transparent 70%),
    #1c140c;
  animation: simmer 14s ease-in-out infinite alternate;
}
.hero.has-video .hero__fallback { opacity: 0; transition: opacity 1s ease; }
.hero__fallback span {
  position: absolute; bottom: -120px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,230,170,.35), rgba(214,150,60,.08) 60%, transparent 70%);
  border: 1px solid rgba(255,220,150,.15);
  animation: rise linear infinite;
}
.hero__fallback span:nth-child(1) { left: 8%;  width: 90px;  height: 90px;  animation-duration: 13s; }
.hero__fallback span:nth-child(2) { left: 26%; width: 50px;  height: 50px;  animation-duration: 9s;  animation-delay: -4s; }
.hero__fallback span:nth-child(3) { left: 44%; width: 140px; height: 140px; animation-duration: 17s; animation-delay: -8s; }
.hero__fallback span:nth-child(4) { left: 63%; width: 70px;  height: 70px;  animation-duration: 11s; animation-delay: -2s; }
.hero__fallback span:nth-child(5) { left: 78%; width: 110px; height: 110px; animation-duration: 15s; animation-delay: -10s; }
.hero__fallback span:nth-child(6) { left: 90%; width: 40px;  height: 40px;  animation-duration: 8s;  animation-delay: -5s; }
@keyframes rise {
  from { transform: translateY(0) scale(.8); opacity: 0; }
  15%  { opacity: 1; }
  to   { transform: translateY(-120vh) scale(1.1); opacity: 0; }
}
@keyframes simmer {
  from { filter: hue-rotate(0deg) brightness(.95); }
  to   { filter: hue-rotate(-8deg) brightness(1.1); }
}

.hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,18,16,.55) 0%, rgba(20,18,16,.25) 40%, rgba(20,18,16,.75) 100%);
}
.hero__content {
  position: relative; z-index: 2;
  max-width: 820px;
  padding: 120px var(--gutter) 100px;
  text-align: center;
}
.hero__badge {
  width: min(100%, 340px); margin: 0 auto 36px;
  border-radius: 8px;
  box-shadow: 0 0 0 2px rgba(192,154,72,.8), 0 20px 50px -10px rgba(0,0,0,.6);
}
.hero h1 {
  font-size: clamp(3.2rem, 9vw, 7rem);
  font-weight: 600;
  margin-bottom: .35em;
}
.hero h1 em {
  font-style: italic; font-weight: 500;
  background: var(--gold-metal); background-size: 160% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .08em; /* keep italic tail inside the clip */
}
.hero__sub {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: rgba(255,255,255,.85);
  max-width: 560px; margin: 0 auto 2.2em;
}
.hero__ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero__caption {
  position: absolute; z-index: 2; left: var(--gutter); bottom: 28px;
  display: flex; align-items: center; gap: 10px;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.75);
}
.hero__caption .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: .25; } }

/* ===== Story ===== */
.story { background: var(--cream); }
.story__grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 7vw, 100px); align-items: center;
}
.frame {
  --frame: 48px;
  padding: clamp(16px, 3vw, 32px);
}
.frame img { width: 70%; margin: 0 auto; }
.frame__sig {
  font-family: var(--display); font-style: italic; font-size: 1.4rem;
  text-align: right; margin: 24px 0 0; color: var(--amber-deep);
}
.story__text p { color: var(--ink-2); font-size: 1.08rem; }
.story__text strong { color: var(--ink); }

/* ===== Crunch ===== */
.crunch { background: var(--paper); }
.compare {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: clamp(16px, 4vw, 48px); align-items: center;
  margin-bottom: clamp(56px, 8vw, 96px);
}
.compare__col {
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
}
.compare__col--them { background: #f2efe9; color: var(--muted); }
.compare__col--ted  { background: var(--ink); color: #fff; }
.compare__label {
  font-family: var(--display); font-weight: 700; font-size: 1.8rem; margin-bottom: 20px;
}
.compare__col--ted .compare__label { background: var(--gold-metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.compare ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 8px; }
.compare li { display: flex; gap: 10px; align-items: center; }
.compare__col--them li::before { content: "×"; font-weight: 700; color: #b0a89c; }
.compare__col--ted li::before { content: "✓"; font-weight: 700; color: var(--gold); }
.compare__vs {
  font-family: var(--display); font-style: italic; font-size: 1.4rem; color: var(--muted);
}

.slab {
  position: relative; height: 120px; border-radius: 14px 30px 18px 40px;
  overflow: hidden;
}
.slab--dense {
  background: linear-gradient(135deg, #9a5f1c, #6e3f10 60%, #5a330c);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.2), inset 0 10px 30px rgba(255,255,255,.12);
}
.slab--airy {
  background: linear-gradient(135deg, #f0c470, #d99a3c 55%, #c07c26);
  box-shadow: inset 0 10px 30px rgba(255,255,255,.3);
}
.slab--airy span {
  position: absolute; border-radius: 50%;
  background: rgba(255, 240, 200, .45);
  box-shadow: inset 0 -2px 4px rgba(140, 80, 20, .35);
}
.slab--airy span:nth-child(1)  { width: 18px; height: 14px; left: 8%;  top: 20%; }
.slab--airy span:nth-child(2)  { width: 10px; height: 9px;  left: 22%; top: 60%; }
.slab--airy span:nth-child(3)  { width: 24px; height: 18px; left: 35%; top: 30%; }
.slab--airy span:nth-child(4)  { width: 8px;  height: 8px;  left: 48%; top: 72%; }
.slab--airy span:nth-child(5)  { width: 16px; height: 12px; left: 58%; top: 15%; }
.slab--airy span:nth-child(6)  { width: 22px; height: 16px; left: 70%; top: 52%; }
.slab--airy span:nth-child(7)  { width: 9px;  height: 9px;  left: 82%; top: 25%; }
.slab--airy span:nth-child(8)  { width: 14px; height: 11px; left: 88%; top: 68%; }
.slab--airy span:nth-child(9)  { width: 12px; height: 10px; left: 15%; top: 78%; }
.slab--airy span:nth-child(10) { width: 11px; height: 9px;  left: 62%; top: 82%; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 32px); }
.feature { border-top: 2px solid var(--ink); padding-top: 24px; }
.feature__num {
  font-family: var(--display); font-weight: 700; color: var(--gold-deep);
  font-size: 1.15rem; font-variant-numeric: lining-nums; letter-spacing: .08em; display: block; margin-bottom: 12px;
}
.feature p { color: var(--muted); }

/* ===== Process ===== */
.process { background: var(--cream); border-block: 1px solid var(--gold-soft); }
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 28px 22px;
  border: 1px solid var(--line);
}
.step__n {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold-metal); color: var(--ink);
  font-family: var(--display); font-weight: 700; font-size: 1.3rem; font-variant-numeric: lining-nums;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
  margin-bottom: 20px;
}
.step h3 { font-size: 1.35rem; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ===== Preorder ===== */
.preorder { background: var(--cream); }
.preorder__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px); align-items: start;
}
.preorder__info > p { color: var(--ink-2); font-size: 1.08rem; }
.product {
  display: flex; align-items: center; gap: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin: 32px 0;
}
.product__badge { width: 120px; border-radius: 6px; flex-shrink: 0; }
.product__name { font-family: var(--display); font-weight: 700; font-size: 1.2rem; margin: 0; }
.product__meta { margin: 2px 0 0; color: var(--muted); }
.pickup-steps { padding-left: 1.2em; margin: 0; display: grid; gap: 10px; color: var(--ink-2); }
.pickup-steps li::marker { font-family: var(--display); font-weight: 700; color: var(--gold-deep); font-variant-numeric: lining-nums; }

.order {
  background: var(--paper);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 40px 80px -40px rgba(80, 50, 10, .35), 0 0 0 1px var(--line);
}
.field { margin-bottom: 20px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(192,154,72,.2);
}
.field input.is-invalid { border-color: #d24b3c; }
.field textarea { resize: vertical; }

.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.stepper button {
  width: 48px; height: 48px; border: 0; background: #f6f2ea;
  font-size: 1.3rem; cursor: pointer; color: var(--ink);
}
.stepper button:hover { background: var(--gold-soft); }
.stepper input {
  width: 64px; border: 0 !important; border-radius: 0; text-align: center;
  font-weight: 600; box-shadow: none !important; -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

.promo { margin: -4px 0 18px; }
.promo__toggle {
  background: none; border: 0; padding: 0; font: inherit; font-size: .85rem;
  color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.promo__toggle:hover { color: var(--ink); }
.promo__row { display: flex; gap: 8px; }
.promo__row input {
  flex: 1; min-width: 0; font: inherit; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em;
  padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
}
.promo__row input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(192,154,72,.2); }
.promo__row input:disabled { background: #f6f2ea; color: var(--ink); }
.promo__apply { padding: 10px 18px; }
.promo__msg { font-size: .85rem; margin: 8px 0 0; color: #b03a2e; }
.promo__msg.is-ok { color: var(--gold-deep); font-weight: 600; }

.order__loading { color: var(--muted); text-align: center; padding: 24px 0; margin: 0; }
.order [hidden] { display: none !important; }

.sizes { display: grid; gap: 10px; }
.size {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border: 1.5px solid var(--line); border-radius: 14px; padding: 8px 8px 8px 16px;
}
.size__info strong { display: block; font-family: var(--display); font-size: 1.5rem; line-height: 1.1; font-variant-numeric: lining-nums; }
.size__info small { color: var(--muted); font-size: .85rem; }
.size .stepper button { width: 42px; height: 42px; }
.size .stepper input { width: 48px; }

.places { display: grid; gap: 8px; }
.place {
  display: block; width: 100%; text-align: left; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 14px; background: #fff;
  padding: 12px 16px; font: inherit; color: var(--ink); line-height: 1.3;
  transition: border-color .15s ease, background .15s ease;
}
.place strong { display: block; font-family: var(--display); font-size: 1.3rem; font-weight: 700; }
.place small { display: block; font-size: .85rem; color: var(--muted); }
.place .place__details { margin-top: 4px; font-style: italic; }
.place:hover { border-color: var(--gold); }
.place[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.place[aria-checked="true"] small { color: var(--gold-soft); }

.days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.day {
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  padding: 10px 6px; text-align: center; cursor: pointer;
  font: inherit; color: var(--ink); line-height: 1.2;
  transition: border-color .15s ease, background .15s ease;
}
.day small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.day strong { display: block; font-family: var(--display); font-size: 1.5rem; font-variant-numeric: lining-nums; }
.day:hover { border-color: var(--gold); }
.day[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.day[aria-checked="true"] small { color: var(--gold); }

.order__total {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px dashed var(--line);
  padding: 20px 0; margin-top: 8px;
}
.order__total strong { font-family: var(--display); font-size: 2.2rem; font-variant-numeric: lining-nums; }
.order__fine { font-size: .85rem; color: var(--muted); text-align: center; margin: 14px 0 0; }
.order__error {
  background: #fbeceb; color: #9b2c20; border-radius: 12px;
  padding: 12px 14px; margin: 0 0 14px; font-size: .92rem;
}
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

/* The bot trap: off-screen, not display:none (some bots skip hidden fields). */
.order__hp {
  position: absolute; left: -10000px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

.order__done { text-align: center; padding: 32px 0; }
.order__done img { width: 70px; margin: 0 auto 20px; }
.order__done h3 { font-size: 2rem; }
.order__done .btn { margin-top: 20px; }

/* ===== Footer ===== */
.footer { background: var(--paper); color: var(--muted); padding: 72px 0 40px; text-align: center; border-top: 4px double var(--gold); }
.footer__grid { display: grid; justify-items: center; gap: 12px; }
.footer__logo { width: 240px; margin-bottom: 16px; border-radius: 6px; }
.footer__warn { max-width: 520px; color: var(--ink-2); }
.footer__warn strong { color: var(--gold-deep); }
.footer__allergen, .footer__copy { font-size: .82rem; margin: 0; }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps .step:last-child { grid-column: span 2; }
}
@media (max-width: 820px) {
  .nav__links a:not(.btn) { display: none; }
  .story__grid, .preorder__grid { grid-template-columns: 1fr; }
  .story__art { max-width: 380px; }
  .compare { grid-template-columns: 1fr; }
  .compare__vs { text-align: center; }
  .features { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .nav__logo img { height: 36px; }
  .steps { grid-template-columns: 1fr; }
  .steps .step:last-child { grid-column: auto; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .product__badge { width: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
