:root {
  --bg: #080000;
  --violet: #442AF6;
  --red: #EA334D;
  --text: #FFF8F0;
  --line: rgba(255, 248, 240, 0.14);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  --head-h: 4rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden;
  overflow-x: clip;
}

body.pantry-locked { overflow: hidden; }

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
input::placeholder { color: rgba(255, 248, 240, 0.45); }
input:focus-visible,
button:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

section[id],
.hero { scroll-margin-top: calc(var(--head-h, 4rem) + 10px); }

.noise, .glow { pointer-events: none; }

.noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

.glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(68, 42, 246, 0.18), rgba(68, 42, 246, 0.06) 40%, transparent 72%);
  filter: blur(18px);
  z-index: 0;
}

body > *:not(.noise):not(.glow):not(.pantry-backdrop):not(.pantry-drawer) { position: relative; z-index: 1; }

.mono { font-family: 'Montserrat'; color: var(--red); }

.goo-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 248, 240, 0.18);
  margin-right: 6px;
}
.goo-dot.on { background: var(--red); }

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  backdrop-filter: blur(12px);
  background: rgba(21, 13, 27, 0.62);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.site-head.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow);
  background: rgba(21, 13, 27, 0.82);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 600; }
.brand-mark { height: 2rem; width: auto; display: block; }
.site-nav {
  display: flex;
  gap: 2rem;
  font-size: 1rem;
  color: rgba(255, 248, 240, 0.86);
}
.header-actions { display: flex; align-items: center; gap: .75rem; }
.site-nav a:hover,
.visit-links a:hover { color: var(--violet); }

.status-pill,
.pantry-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: .8rem;
}
.pantry-pill { cursor: pointer; color: var(--text); }
.status-pill .dot {
  width: .6rem;
  height: .6rem;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(244, 178, 58, 0.15);
}
.status-pill.is-open .dot {
  background: #17da93;
  box-shadow: 0 0 0 4px rgba(87, 227, 154, 0.15);
}

.pantry-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 .35rem;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1;
}

main, footer { width: min(1080px, calc(100% - 2rem)); margin: 0 auto; }
section { padding: 4rem 0; }
.section-head { margin-bottom: 2rem; }
.kicker { margin: 0 0 .8rem; font-size: .8rem; text-transform: uppercase; color: var(--red); }
.section-title {
  margin: 0;
  font-family: "Syncopate", sans-serif;
  font-size: clamp(2rem, 4vw, 4rem);
  text-wrap: balance;
}
.section-note,
.lede,
.card-body p,
.rule-card p,
.quote-card p,
.visit-info p { color: rgba(255, 248, 240, 0.78); }

.line { display: block; overflow: hidden; }
.line-in { display: inline-block; }

.hero {
  position: relative;
  min-height: 210vh;
  padding-top: 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}
.hero-pin {
  position: sticky;
  top: var(--head-h, 4rem);
  height: calc(100vh - var(--head-h, 4rem));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-media,
.hero-video,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-media { overflow: hidden; }
.hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
  will-change: transform;
}
.hero-video {
  object-fit: cover;
  opacity: 1;
  transform-origin: center center;
  will-change: transform;
}
.hero-overlay {
  background: linear-gradient(180deg, rgba(8, 0, 0, 0.5), rgba(8, 0, 0));
  z-index: 0;
}
.hero.no-video .hero-video { display: none; }
.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  padding: clamp(1.25rem, 4vw, 3rem);
  transform-origin: center center;
  will-change: transform;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: end;
  justify-items: center;
}
.hero-title {
  margin: 0;
  font-family: "Syncopate", sans-serif;
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  line-height: .92;
  text-transform: uppercase;
  text-wrap: balance;
  max-width: none;
  overflow-wrap: anywhere;
}
.hero-title em,
.section-title em,
.quote-card em,
.card-body em,
.rule-card em,
.visit-info em,
.lede em {
  font-style: italic;
  color: var(--violet);
  font-family: "Syncopate", sans-serif;
}
.lede { font-size: 1rem; max-width: 40rem; }

.form-row { display: flex; gap: .9rem; flex-wrap: wrap; justify-content: center; }
.form-row input { flex: 1 1 240px; }
input[type="email"],
input[type="text"] {
  min-height: 48px;
  padding: .95rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .95rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
  will-change: transform;
}
.btn-red { background: var(--violet); color: white; }
.icon-btn {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--violet);
  color: white;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.pantry-btn {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  aspect-ratio: 1;
  padding: 0;
  font-size: 1.4rem;
  line-height: 1;
}

.menu-grid {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
.menu-grid li { display: flex; }
.cookie-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.cookie-card figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.cookie-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cookie-card:hover img { transform: scale(1.04); }
.flavor-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  display: inline-block;
  padding: .35rem .8rem;
  font-size: .65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: rgba(68, 42, 246, 0.92);
  border-radius: 999px;
  color: #fff;
}
.card-body {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: 1.1rem;
  flex: 1;
}
.card-body h3 { margin: 0; font-family: "Syncopate", sans-serif; font-size: 1.15rem; }
.card-body p { margin: 0; font-size: .9rem; }
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  margin-top: auto;
}
.goo { display: flex; }

.interlude {
  position: relative;
  padding: 3rem 0 4rem;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
}
.interlude video,
.interlude-fallback {
  border-radius: 0;
  min-height: 340px;
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.interlude-fallback { display: none; }
.interlude.no-video video { display: none; }
.interlude.no-video .interlude-fallback { display: block; }
.interlude-fallback img { width: 100%; min-height: 340px; max-height: 72vh; object-fit: cover; }
.interlude-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .45), transparent 50%);
  border-radius: 0;
  pointer-events: none;
}
.interlude-quote {
  position: absolute;
  left: 2rem;
  bottom: 2rem;
  margin: 0;
  max-width: 500px;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(6, 7, 11, .7);
  backdrop-filter: blur(10px);
}
.interlude-quote p { margin: 0 0 .5rem; font-family: "Syncopate", sans-serif; font-size: clamp(1rem, 2vw, 3rem);}
.interlude-quote cite { font-style: normal; font-size: 1rem; color: var(--red); }

.rules { position: relative; padding: 4rem 0; }
.rules .stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0 4vh;
  position: relative;
}
.rules .rule-card {
  position: sticky;
  top: 7rem;
  width: min(620px, 100%);
  min-height: 170px;
  padding: 1.2rem 1.3rem;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(6, 7, 11, .7);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: .4rem;
  overflow: hidden;
  opacity: 1;
  transform: none;
  will-change: auto;
}
.rules .rule-card:nth-child(1) { top: 7rem; z-index: 1; }
.rules .rule-card:nth-child(2) { top: 7.8rem; z-index: 2; }
.rules .rule-card:nth-child(3) { top: 8.6rem; z-index: 3; }
.rules .rule-card:nth-child(4) { top: 9.4rem; z-index: 4; }
.rules .rule-card:nth-child(5) { top: 10.2rem; z-index: 5; }
.rule-no { display: block; margin-bottom: .15rem; font-size: .75rem; text-transform: uppercase; color: var(--red); }
.rules .rule-card h3 { margin: 0 0 .25rem; font-family: "Syncopate", sans-serif; font-size: 1.35rem; line-height: 1.1; }
.rules .rule-card p { margin: 0; max-width: 46ch; line-height: 1.5; color: rgba(255, 248, 240, 0.82); }

.quote-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(350px, 450px);
  overflow-x: auto;
  padding: 1.5rem;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.quote-row::-webkit-scrollbar { display: none; height: 0; }
.quote-card {
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1rem;
  margin: 10px;
  background: rgba(255, 255, 255, .04);
  box-shadow: var(--shadow);
}
.quote-card p { margin: 0 0 1rem; font-family: "Syncopate", sans-serif; font-size: 1rem; }
.quote-card figcaption { color: var(--red); font-size: .75rem; }
.quote-nav {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: .75rem auto 0;
}
.q-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  cursor: pointer;
}

.signup-box,
.visit-info,
.checkout-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}
.signup-box {
  padding: clamp(1.5rem, 4vw, 2.6rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 3vw, 1.75rem);
}
.signup-box .section-note { margin: 0; }
.signup-box .form-row { justify-content: flex-start; margin: 0; }

.find-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
}
.visit-info { padding: 1.1rem 1.15rem; }
.visit-info h2 {
  margin: 0;
}
.hours {
  margin: 1rem 0 0;
  display: grid;
  gap: .35rem;
}
.hours > div {
  display: flex;
  justify-content: space-between;
  gap: .85rem;
  padding: .45rem 0;
  border-bottom: 1px solid var(--line);
}
.hours dt, .hours dd { margin: 0; }
.hours dt { color: rgba(255, 248, 240, 0.6); }
.visit-links {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-top: .9rem;
}

.site-foot { padding: 2rem 0 3rem; }
.foot-row {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  color: rgba(255, 248, 240, 0.74);
}
.foot-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font-size: .9rem;
}

.pantry-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(5, 1, 10, 0.75);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.pantry-backdrop.is-open { 
  opacity: 1; 
  pointer-events: auto; 
}

.pantry-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  width: min(420px, 100vw);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border-left: 1px solid var(--line);
  background: rgba(21, 13, 27, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: -24px 0 64px rgba(0, 0, 0, 0.6);
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(0.34, 1.15, 0.64, 1);
}

.pantry-drawer.is-open { transform: translateX(0); }

.pantry-scroll {
  flex: 1;
  min-height: 120px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.5rem;
}

.pantry-item .pantry-item-name { flex: 1; }
.pantry-item .pantry-item-price { color: rgba(255, 248, 240, 0.6); font-size: .82rem; }

.qty-stepper {
  display: flex;
  align-items: center;
  gap: .4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .15rem .3rem;
}
.qty-stepper button {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: .9rem;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease;
}
.qty-stepper button:hover,
.qty-stepper button:focus-visible { background: var(--red); }
.qty-stepper .qty-value {
  min-width: 1.2rem;
  text-align: center;
  font-family: 'Montserrat';
  font-size: .85rem;
}
.pantry-item-remove {
  border: 0;
  background: transparent;
  color: rgba(255, 248, 240, 0.45);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
}
.pantry-item-remove:hover,
.pantry-item-remove:focus-visible { color: var(--red); }

.pantry-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.pantry-head .kicker { margin-bottom: .35rem; }
.pantry-title { margin: 0; font-family: "Syncopate", sans-serif; font-size: 1.25rem; }
.pantry-empty { margin: 0; color: rgba(255, 248, 240, 0.6); font-size: .95rem; }
.pantry-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.pantry-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem .8rem;
  padding: .7rem .8rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}
.pantry-item .mono { white-space: nowrap; }
.pantry-foot { display: grid; gap: .8rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.pantry-total-row { display: flex; align-items: center; justify-content: space-between; font-size: 1.05rem; }
#checkoutBtn:disabled { opacity: .45; cursor: not-allowed; }
.checkout-panel { display: grid; gap: .7rem; padding: 1rem; }
.checkout-panel label {
  display: grid;
  gap: .35rem;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255, 248, 240, 0.7);
}
.checkout-panel input {
  width: 100%;
  min-height: 46px;
  padding: .7rem .9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}
.form-success { margin: 0; color: #17da93; }

.reveal,
.section-head,
.cookie-card,
.rule-card,
.quote-card,
.signup-box,
.visit-info,
.interlude-quote {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.in { opacity: 1; transform: translateY(0); }
.loaded .hero-title .line-in { animation: rise .8s ease both; }
.loaded .hero-title .line:nth-child(2) .line-in { animation-delay: .12s; }
@keyframes rise {
  from { transform: translateY(110%); }
  to { transform: translateY(0); }
}

@media (max-width: 980px) {
  .site-head { 
    flex-wrap: wrap; 
    justify-content: center;
  }
  .brand {
    order: 1;
    width: 100%;
    justify-content: center;
  }
  .site-nav {
    order: 2;
    width: 100%;
    gap: .5rem;
    overflow-x: auto;
    padding: .25rem 0;
    justify-content: center;
    text-align: center;
  }
  .header-actions {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  .hero-grid,
  .find-us-grid { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  section { padding: 4rem 0; }
  .menu-grid { grid-template-columns: 1fr; }

  .rules .stack {
    gap: 0;
    padding-bottom: 0;
  }
  .rules .rule-card {
    position: sticky;
    top: 7rem;
    width: 100%;
    min-height: 0;
    margin-bottom: 10vh;
  }
  .rules .rule-card:nth-child(1) { top: 5.5rem; }
  .rules .rule-card:nth-child(2) { top: 6.2rem; }
  .rules .rule-card:nth-child(3) { top: 6.9rem; }
  .rules .rule-card:nth-child(4) { top: 7.6rem; }
  .rules .rule-card:nth-child(5) { top: 8.3rem; }

  .quote-row {
    grid-auto-columns: minmax(280px, 82vw);
    padding: 1rem 0.25rem;
  }
}

@media (max-width: 560px) {
  .pantry-drawer {
    width: 100vw;
  }
}