/* ═══════════════════════════════════════════════════════════════════════
   THE BAGEL BOX — styles.css
   Palette sampled directly from the logo badge:
     olive #3E4934 · pink #F2C8DE · bagel gold #E5934F
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* ── brand ─────────────────────────────────────────────── */
  --olive-900: #171C12;
  --olive-800: #1E2418;
  --olive-700: #2A3323;
  --olive:     #3E4934;
  --olive-500: #55634A;
  --olive-300: #8C9A7E;

  --pink:      #F2C8DE;
  --pink-600:  #E79BC4;
  --pink-800:  #A6407A;

  --gold:      #E5934F;
  --gold-300:  #F3C089;
  --gold-100:  #F9E3C8;

  --cream:     #FBF1E4;
  --cream-dim: #EADBC6;

  /* ── semantic ──────────────────────────────────────────── */
  --ground:    var(--olive-800);
  --ink:       var(--cream);
  --ink-soft:  #C9CBB4;
  --rule:      rgba(242, 200, 222, .32);
  --rule-firm: rgba(242, 200, 222, .55);

  /* ── type scale ────────────────────────────────────────── */
  --t-hero:  clamp(46px, 8.6vw, 138px);
  --t-mega:  clamp(44px, 8.5vw, 140px);
  --t-xl:    clamp(36px, 6vw, 92px);
  --t-lg:    clamp(28px, 4vw, 56px);
  --t-md:    clamp(22px, 2.6vw, 34px);
  --t-sm:    clamp(17px, 1.5vw, 21px);
  --t-body:  clamp(15px, 1.05vw, 17px);
  --t-micro: 12px;

  --pad-section: clamp(72px, 11vw, 168px);
  --pad-side:    clamp(20px, 4.5vw, 76px);

  --ff-display: "Bricolage Grotesque", "Archivo", Impact, sans-serif;
  --ff-body:    "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --ff-mono:    "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

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

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--pink-600);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.035em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; max-width: 62ch; }

.eyebrow {
  font-family: var(--ff-mono);
  font-size: var(--t-micro);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--pink);
  margin: 0 0 18px;
}

.section {
  position: relative;
  padding: var(--pad-section) var(--pad-side);
}

.shell { max-width: 1560px; margin-inline: auto; width: 100%; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 999;
  background: var(--pink); color: var(--olive-900);
  padding: 10px 18px; border-radius: 8px;
  font-family: var(--ff-mono); font-size: 13px;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ═══ the 3D canvas ═════════════════════════════════════════════════════
   Fixed to the viewport, but its world spans the whole document — bagels
   fall past the content and pile at the bottom of the page.               */
#bagel-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 3;
  pointer-events: none;
}

/* WebGL only drives falling bagels; hero is a photo */

/* ═══ header ════════════════════════════════════════════════════════════ */
.site-header {
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 6;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 3vw, 40px) var(--pad-side) 0;
}

.header-note {
  font-family: var(--ff-mono);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--pink);
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1 1 0;
  min-width: 0;
}
.header-note--right { justify-content: flex-end; text-align: right; }

.header-note .dot,
.announce .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  flex: none;
  box-shadow: 0 0 0 0 rgba(229, 147, 79, .7);
  animation: pulse 2.6s ease-out infinite;
}
.header-note-label {
  margin-left: 28px;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(229, 147, 79, .6); }
  70%  { box-shadow: 0 0 0 12px rgba(229, 147, 79, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 147, 79, 0); }
}

.header-brand {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  flex: 0 1 auto;
}
.header-dash {
  height: 0; border-bottom: 2px dashed var(--rule-firm);
  width: clamp(28px, 7vw, 130px);
}
.header-brand img { width: clamp(140px, 16vw, 220px); height: auto; }

/* ═══ hero ══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(160px, 20vh, 240px) var(--pad-side) clamp(104px, 13vh, 150px);
  overflow: hidden;
}

.hero::after {
  /* soft warm bloom behind the bagel */
  content: "";
  position: absolute;
  right: -10%; top: 42%;
  width: min(70vw, 900px); aspect-ratio: 1;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(229,147,79,.20), rgba(229,147,79,0) 68%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  width: 100%;
}

.hero h1 {
  font-size: var(--t-hero);
  margin: 0 0 clamp(20px, 2.4vw, 34px);
}
.hero h1 .line { display: block; }
.hero h1 .pink { color: var(--pink); }
.hero h1 .gold { color: var(--gold-300); }

.hero-lede {
  font-size: var(--t-sm);
  color: var(--ink-soft);
  max-width: 44ch;
  margin-bottom: clamp(26px, 3vw, 40px);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* announcement — only in the markup while the client has it switched on */
.announce {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  margin: 0 0 clamp(26px, 3vw, 40px);
  padding: 9px 16px;
  border: 1.5px dashed var(--rule-firm);
  border-radius: 999px;
  background: rgba(242, 200, 222, .08);
  font-family: var(--ff-mono);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--pink);
}

/* hero chocolate bagel photo */
.bagel-anchor { position: relative; pointer-events: none; }
#hero-bagel {
  width: min(44vw, 560px);
  aspect-ratio: 1;
  margin-inline: auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 40px rgba(0, 0, 0, .35));
  animation: heroBagelFloat 5.5s ease-in-out infinite;
}
@keyframes heroBagelFloat {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-14px) rotate(4deg); }
}
@media (prefers-reduced-motion: reduce) {
  #hero-bagel { animation: none; }
}

/* ═══ buttons ═══════════════════════════════════════════════════════════ */
.btn {
  --btn-bg: var(--pink);
  --btn-fg: var(--olive-900);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--ff-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1;
  transition: transform .25s var(--ease-out), background-color .25s, color .25s;
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); }
.btn .arrow { transition: transform .25s var(--ease-out); }
.btn:hover .arrow { transform: translate(3px, -3px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--rule-firm);
}
.btn--ghost:hover { --btn-bg: var(--pink); --btn-fg: var(--olive-900); box-shadow: inset 0 0 0 1.5px var(--pink); }

.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--olive-900); }

/* the "drop a bagel" text trigger */
.drop-trigger {
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--ink-soft);
  border-bottom: 1.5px dashed var(--rule-firm);
  padding-bottom: 3px;
  transition: color .2s, border-color .2s;
}
.drop-trigger:hover { color: var(--pink); border-color: var(--pink); }

/* ═══ marquee ═══════════════════════════════════════════════════════════
   Clone-once, measure the originals, derive the duration from their width
   so the speed stays constant however many items you add.                 */
.marquee {
  border-top: 1.5px dashed var(--rule);
  border-bottom: 1.5px dashed var(--rule);
  padding: clamp(16px, 2vw, 26px) 0;
  overflow: hidden;
  position: relative;
  z-index: 4;
  background: var(--olive-700);
}
.marquee-track { display: flex; flex-wrap: nowrap; width: max-content; align-items: center; }
.marquee-track > * { flex: none; }
.marquee-item {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(24px, 3.4vw, 52px);
  letter-spacing: -.03em;
  color: var(--cream);
  padding: 0 clamp(16px, 2vw, 30px);
  white-space: nowrap;
}
.marquee-item.is-pink { color: var(--pink); }
.marquee-item.is-gold { color: var(--gold); }
.marquee-sep { color: var(--gold); font-size: clamp(16px, 2vw, 26px); padding: 0 4px; }

/* ═══ the rotating signature circle ═════════════════════════════════════
   Four photos pinned to the corners of ONE square. Rotating the square
   -90° every few seconds carousels them; each photo is counter-rotated so
   it always reads upright.                                                */
.signature {
  background: var(--olive-700);
  min-height: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: 0;
}

.signature-head {
  text-align: center;
  position: relative;
  z-index: 5;
  pointer-events: none;
  margin-bottom: 0;
}
.signature-head > * { pointer-events: auto; }
.signature-head .script {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(20px, 2.6vw, 34px);
  color: var(--pink);
  transform: rotate(-2.5deg);
  display: inline-block;
  margin-bottom: 14px;
  letter-spacing: -.02em;
}

.rotator-titles { position: relative; max-width: 1500px; margin-inline: auto; }
.rotator-title {
  font-size: var(--t-mega);
  color: var(--cream);
  opacity: 0;
  transition: opacity .35s ease;
}
.rotator-title:not(:first-child) { position: absolute; inset: 0; }
.rotator-title.is-active { opacity: 1; }
.rotator-title .price {
  font-family: var(--ff-mono);
  font-size: clamp(14px, 1.3vw, 20px);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--gold);
  vertical-align: super;
  margin-left: 10px;
}

.rotator-note {
  position: relative; z-index: 5;
  text-align: center;
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--ink-soft);
  min-height: 3.2em;
  max-width: 46ch;
  margin: 14px auto 0;
}

/* ── The wheel ──────────────────────────────────────────────────────
   #rotator is a ZERO-SIZE pivot. Each photo is pushed out along one of
   the pivot's local axes by --r, so turning the pivot orbits all four at
   once. JS counter-rotates the photos every tick (--counter) so they stay
   upright instead of tumbling. The pivot sits below the fold, so you see
   the top of the wheel swing through — not a tiny merry-go-round.     */
.rotator-stage { flex: none; position: relative; height: clamp(380px, 52vh, 560px); }

#rotator {
  --r: min(33vw, 390px);
  --counter: -45deg;
  position: absolute;
  left: 50%;
  top: 100%;
  width: 0; height: 0;
  --lift: clamp(30px, 5vh, 80px);
  transform: translateY(var(--lift)) rotate(0deg);
  transition: transform 1s cubic-bezier(.62, .03, .2, 1);
}
#rotator img {
  position: absolute;
  left: 0; top: 0;
  /* one uniform box for all four, so the front slot never shifts */
  width: min(34vw, 420px);
  height: min(24vw, 300px);
  object-fit: contain;
  max-width: none;
  filter: drop-shadow(0 26px 46px rgba(0, 0, 0, .55));
  transition: transform 1s cubic-bezier(.62, .03, .2, 1);
}
#rotator img.is-front { filter: drop-shadow(0 30px 54px rgba(0,0,0,.6)); }

#rotator .r-0 { transform: translate(-50%, -50%) translate(0, calc(var(--r) * -1)) rotate(var(--counter)); }
#rotator .r-1 { transform: translate(-50%, -50%) translate(var(--r), 0)            rotate(var(--counter)); }
#rotator .r-2 { transform: translate(-50%, -50%) translate(0, var(--r))            rotate(var(--counter)); }
#rotator .r-3 { transform: translate(-50%, -50%) translate(calc(var(--r) * -1), 0) rotate(var(--counter)); }
#rotator .r-0.freshfix-shot {
  width: min(42vw, 520px);
  height: min(30vw, 380px);
  transform: translate(-50%, -50%) translate(0, calc(var(--r) * -1)) rotate(var(--counter)) scale(1.35);
}
#rotator .r-3.coffee-shot {
  width: min(42vw, 520px);
  height: min(42vw, 520px);
  transform: translate(-50%, -50%) translate(calc(var(--r) * -1), 0) rotate(var(--counter)) scale(1.35);
}

/* ═══ offer cards ═══════════════════════════════════════════════════════ */
.offer { background: var(--olive-800); }
.offer h2 { font-size: var(--t-xl); max-width: 15ch; margin-bottom: clamp(36px, 5vw, 64px); }
.offer h2 .cup { color: var(--gold); }

.card-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.card { display: flex; flex-direction: column; gap: 18px; }
.card-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--olive-700);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.card:hover .card-media:not(.card-media--cycle) img { transform: scale(1.06); }

/* Proper Coffee: cycle through drink photos on hover */
.card-media--cycle img {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .35s ease, transform .6s var(--ease-out);
  transform: scale(1);
}
.card-media--cycle img.coffee-shot {
  object-fit: cover;
  object-position: center 50%;
  transform: scale(1.35);
}
.card-media--cycle img.is-active { opacity: 1; z-index: 1; }
.card-media--cycle img.coffee-shot.is-active { transform: scale(1.35); }
.card:hover .card-media--cycle { transform: scale(1.06); transition: transform .6s var(--ease-out); }
.card-media--cycle { transition: transform .6s var(--ease-out); }

.card-media .swatch {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--ff-display); font-weight: 800;
  font-size: clamp(28px, 3.4vw, 52px);
  letter-spacing: -.04em;
  color: var(--olive-800);
  background: linear-gradient(140deg, var(--gold-300), var(--pink));
}

.card-body {
  flex: 1;
  border: 1.5px dashed var(--rule);
  border-radius: 18px;
  padding: clamp(24px, 2.6vw, 40px);
  position: relative;
  overflow: hidden;
  transition: border-color .3s, background-color .3s;
}
.card:hover .card-body { border-color: var(--pink); background: rgba(242, 200, 222, .05); }
.card-body h3 {
  font-family: var(--ff-mono);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 12px;
  line-height: 1.3;
}
.card-body p { color: var(--ink-soft); margin: 0; }

/* ═══ menu ══════════════════════════════════════════════════════════════ */
.menu {
  background: var(--cream);
  color: var(--olive-900);
}
.menu .eyebrow { color: var(--pink-800); }
.menu h2 { font-size: var(--t-xl); color: var(--olive-900); }

.menu-head {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 24px;
  margin-bottom: clamp(30px, 4vw, 56px);
}
.menu-head p { color: var(--olive-500); max-width: 40ch; margin: 0; }

.menu-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: clamp(28px, 3.5vw, 48px);
  border-bottom: 1.5px dashed rgba(62, 73, 52, .3);
  padding-bottom: 18px;
}
.menu-tab {
  font-family: var(--ff-mono);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--olive-500);
  transition: background-color .2s, color .2s;
}
.menu-tab:hover { background: rgba(62, 73, 52, .1); color: var(--olive-900); }
.menu-tab.is-active { background: var(--olive); color: var(--cream); }

.menu-panel { display: none; }
.menu-panel.is-active { display: block; animation: fadeUp .45s var(--ease-out) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.menu-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 90px); }

.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1.5px dashed rgba(62, 73, 52, .28);
  position: relative;
}
.menu-item h3 {
  font-family: var(--ff-body);
  font-weight: 700;
  letter-spacing: -.01em;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.3;
}
.menu-item .price {
  font-family: var(--ff-mono);
  font-size: 15px;
  color: var(--pink-800);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.menu-item p {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 14.5px;
  color: var(--olive-500);
  max-width: 46ch;
}
.menu-item .tag {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--pink);
  color: var(--olive-900);
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: 2px;
}
.menu-item .tag--veg { background: var(--olive-300); }
.menu-item .tag--hot { background: var(--gold); }

/* the photo that follows your cursor across a menu row */
.hover-peek {
  position: absolute;
  top: 0; left: 0;
  width: 190px; height: 150px;
  object-fit: cover;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  transition: opacity .22s;
  box-shadow: 0 18px 40px rgba(23, 28, 18, .3);
}
.hover-peek.is-active { opacity: 1; }

.menu-foot {
  margin-top: clamp(34px, 4vw, 56px);
  display: flex; flex-wrap: wrap; gap: 16px 30px;
  align-items: center;
  font-family: var(--ff-mono); font-size: 13px; color: var(--olive-500);
}

/* ═══ about / Emma ══════════════════════════════════════════════════════ */
.about { background: var(--olive-700); overflow: hidden; }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
}
.about-photo {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  transform: rotate(-2deg);
}
.about-photo img { width: 100%; height: auto; }
.about-photo::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1.5px rgba(242, 200, 222, .35);
  border-radius: 20px;
  pointer-events: none;
}
.about-badge {
  position: absolute;
  right: -14px; bottom: 22px;
  background: var(--pink);
  color: var(--olive-900);
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 8px;
  transform: rotate(4deg);
  z-index: 2;
}
.about h2 { font-size: var(--t-xl); margin-bottom: 22px; }
.about h2 em { font-style: normal; color: var(--pink); }
.about p { color: var(--ink-soft); font-size: var(--t-sm); }

.about-stats {
  display: flex; flex-wrap: wrap;
  gap: clamp(20px, 3vw, 52px);
  margin-top: clamp(26px, 3vw, 42px);
  padding-top: clamp(22px, 3vw, 34px);
  border-top: 1.5px dashed var(--rule);
}
.about-stat b {
  display: block;
  font-family: var(--ff-display);
  font-size: clamp(30px, 3.4vw, 50px);
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--gold-300);
  line-height: 1;
}
.about-stat span {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ═══ gallery — the draggable wall ══════════════════════════════════════ */
.gallery {
  background: var(--olive-800);
  min-height: 100svh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: var(--pad-section) var(--pad-side);
}

#collage {
  position: absolute; inset: 0;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  z-index: 1;
}
.collage-item {
  position: absolute;
  cursor: grab;
  will-change: left, top;
  border-radius: 16px;
  overflow: hidden;
  touch-action: none;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .34);
}
.collage-item:active { cursor: grabbing; }
.collage-item.is-dragging { z-index: 999 !important; }
.collage-item img,
.collage-item video { width: 100%; height: auto; pointer-events: none; }

/* graphic tiles mixed into the wall so it reads as a designed collage */
.collage-card {
  display: grid; place-items: center; text-align: center;
  aspect-ratio: 1;
  padding: 14px;
  font-family: var(--ff-display);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: .98;
  font-size: clamp(14px, 1.5vw, 20px);
  overflow-wrap: anywhere;
  hyphens: auto;
}
.collage-card--pink  { background: var(--pink);  color: var(--olive-900); }
.collage-card--gold  { background: var(--gold);  color: var(--olive-900); }
.collage-card--olive { background: var(--olive); color: var(--pink); box-shadow: inset 0 0 0 2px var(--pink); }

.gallery-center {
  position: relative;
  z-index: 4;
  text-align: center;
  pointer-events: none;
  background: radial-gradient(ellipse at center, var(--olive-800) 42%, rgba(30, 36, 24, 0) 75%);
  padding: 40px 70px;
}
.gallery-center h2 { font-size: clamp(30px, 4.6vw, 66px); }
.gallery-center a { pointer-events: auto; border-bottom: 2px solid var(--pink); transition: color .2s; }
.gallery-center a:hover { color: var(--pink); }
.gallery-center .hint {
  font-family: var(--ff-mono); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold); margin: 28px auto 0;
  max-width: none; text-align: center;
}

/* ═══ visit ═════════════════════════════════════════════════════════════ */
.visit { background: var(--olive-700); }
.visit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.visit h2 { font-size: var(--t-lg); margin-bottom: clamp(34px, 4vw, 56px); }
.visit-block h3 {
  font-family: var(--ff-mono); font-weight: 500;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--pink); margin-bottom: 14px;
}
.visit-block p, .visit-block li { color: var(--ink-soft); }
.visit-block ul { list-style: none; padding: 0; margin: 0; }
.visit-block li {
  display: flex; justify-content: space-between; gap: 18px;
  padding: 9px 0;
  border-bottom: 1.5px dashed var(--rule);
  font-family: var(--ff-mono); font-size: 13.5px;
}
.visit-block li b { color: var(--cream); font-weight: 500; }
.visit-link { color: var(--pink); border-bottom: 1.5px dashed var(--pink); padding-bottom: 2px; }
.visit-link:hover { color: var(--gold-300); border-color: var(--gold-300); }
.visit-phone {
  display: inline-block;
  color: var(--pink);
  font-weight: 700;
  background: rgba(242, 200, 222, .18);
  padding: 6px 12px;
  border-radius: 8px;
  letter-spacing: .02em;
  transition: background-color .2s, color .2s, transform .2s var(--ease-out);
}
.visit-phone:hover {
  background: rgba(242, 200, 222, .32);
  color: var(--pink-600);
  transform: translateY(-1px);
}

/* ═══ footer ════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--olive-900);
  padding: clamp(60px, 8vw, 120px) var(--pad-side) clamp(120px, 14vw, 170px);
  position: relative;
  overflow: hidden;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 60px);
  margin-bottom: clamp(30px, 5vw, 70px);
}
.footer-word {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(48px, 13vw, 210px);
  line-height: .8;
  letter-spacing: -.05em;
  color: var(--olive);
  margin: 0;
  max-width: none;
  user-select: none;
}
.footer-word span { color: var(--pink); }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(24px, 3vw, 52px);
  padding-top: clamp(24px, 3vw, 40px);
  border-top: 1.5px dashed var(--rule);
}
.footer-cols h3 {
  font-family: var(--ff-mono); font-weight: 500;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--pink); margin-bottom: 14px;
}
.footer-cols a, .footer-cols p { color: var(--ink-soft); font-size: 14px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-cols a:hover { color: var(--pink); }

.footer-base {
  margin-top: clamp(34px, 4vw, 60px);
  padding-top: 22px;
  border-top: 1.5px dashed var(--rule);
  display: flex; flex-wrap: wrap; gap: 12px 26px;
  justify-content: space-between; align-items: center;
  font-family: var(--ff-mono); font-size: 12px; color: var(--olive-300);
}

/* the sticker that drops bagels */
.drop-sticker {
  position: relative;
  flex: none;
  width: clamp(104px, 12vw, 160px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--pink);
  color: var(--olive-900);
  display: grid; place-items: center;
  text-align: center;
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.5;
  transform: rotate(-8deg);
  transition: transform .3s var(--ease-out), background-color .25s;
  z-index: 5;
}
.drop-sticker:hover { transform: rotate(4deg) scale(1.06); background: var(--gold); }

/* ═══ sticky pill nav ═══════════════════════════════════════════════════ */
.pill-nav {
  position: fixed;
  left: 0; right: 0; bottom: clamp(16px, 2.4vw, 30px);
  z-index: 20;
  display: flex; justify-content: center;
  padding-inline: 14px;
  transition: bottom .3s var(--ease-out), opacity .3s;
  pointer-events: none;
}
.pill-nav.is-tucked { bottom: 0; }

.pill-nav-inner {
  pointer-events: auto;
  display: flex; align-items: center; gap: clamp(10px, 1.4vw, 22px);
  padding: 12px clamp(16px, 2vw, 28px);
  border-radius: 999px;
  background: rgba(23, 28, 18, .72);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: inset 0 0 0 1.5px var(--rule), 0 18px 40px rgba(0, 0, 0, .4);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.pill-nav-inner::-webkit-scrollbar { display: none; }

.pill-nav a {
  font-family: var(--ff-mono);
  font-size: 13.5px;
  color: var(--ink-soft);
  white-space: nowrap;
  padding: 6px 4px;
  transition: color .2s;
  position: relative;
}
.pill-nav a::after {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: 0;
  height: 1.5px; background: var(--pink);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.pill-nav a:hover { color: var(--pink); }
.pill-nav a:hover::after,
.pill-nav a.is-current::after { transform: scaleX(1); }
.pill-nav a.is-current { color: var(--pink); }

.pill-nav .pill-order {
  background: var(--pink); color: var(--olive-900);
  border-radius: 999px; padding: 9px 18px; font-weight: 500;
}
.pill-nav .pill-order::after { display: none; }
.pill-nav .pill-order:hover { background: var(--gold); color: var(--olive-900); }

/* ═══ scroll reveal ═════════════════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(38px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--d, 0ms);
}

/* ═══ responsive ════════════════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  #hero-bagel { width: min(70vw, 460px); }
  .hero { min-height: auto; padding-top: clamp(150px, 26vh, 240px); }
  .card-row { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 460px; }
  .menu-list { grid-template-columns: 1fr; }

  .rotator-stage { height: clamp(320px, 42vh, 440px); }
  #rotator { --r: min(28vw, 280px); --lift: clamp(20px, 4vh, 60px); }
  #rotator img {
    width: min(32vw, 300px);
    height: min(24vw, 220px);
  }
  #rotator .r-0.freshfix-shot {
    width: min(38vw, 340px);
    height: min(28vw, 260px);
    transform: translate(-50%, -50%) translate(0, calc(var(--r) * -1)) rotate(var(--counter)) scale(1.25);
  }
  #rotator .r-3.coffee-shot {
    width: min(36vw, 320px);
    height: min(36vw, 320px);
    transform: translate(-50%, -50%) translate(calc(var(--r) * -1), 0) rotate(var(--counter)) scale(1.25);
  }
}

@media (max-width: 720px) {
  /* the hero stacks: copy first, bagel underneath — so drop the 100svh
     centring that was pushing everything past the fold */
  .hero {
    min-height: auto;
    padding-top: clamp(150px, 21vh, 200px);
    padding-bottom: 130px;
  }
  #hero-bagel { width: min(64vw, 300px); }
  .hero-lede { margin-bottom: 26px; }

  /* keep the whole pill on screen instead of clipping Order */
  .pill-nav-inner { gap: 6px; padding: 9px 12px; }
  .pill-nav a { font-size: 12.5px; padding: 6px 3px; }
  .pill-nav .pill-order { padding: 8px 14px; }


  .site-header { flex-wrap: wrap; justify-content: center; gap: 14px; }
  .header-note { display: none; }
  .header-brand { flex: 1 1 100%; justify-content: center; }
  .header-dash { flex: 1; }
  .hero-grid { gap: 34px; }

  /* Signature wheel — same zero-size pivot as desktop, sized for phones */
  .signature {
    padding-top: 40px;
    padding-inline: var(--pad-side);
  }
  .rotator-title {
    font-size: clamp(28px, 9.5vw, 40px);
    line-height: 1.05;
  }
  .rotator-title .price {
    display: inline-block;
    margin-left: 8px;
    font-size: 13px;
    vertical-align: baseline;
  }
  .rotator-note {
    min-height: 4.5em;
    font-size: 12px;
    margin: 10px auto 0;
    padding-inline: 8px;
  }
  .rotator-stage {
    height: 260px;
    margin-top: 4px;
  }
  #rotator {
    --r: 38vw;
    --lift: 8px;
    left: 50%;
    top: 100%;
    width: 0;
    height: 0;
  }
  #rotator img {
    width: 58vw;
    height: 42vw;
    max-width: 240px;
    max-height: 180px;
  }
  #rotator .r-0.freshfix-shot {
    width: 64vw;
    height: 48vw;
    max-width: 260px;
    max-height: 200px;
    transform: translate(-50%, -50%) translate(0, calc(var(--r) * -1)) rotate(var(--counter)) scale(1.2);
  }
  #rotator .r-3.coffee-shot {
    width: 64vw;
    height: 64vw;
    max-width: 240px;
    max-height: 240px;
    transform: translate(-50%, -50%) translate(calc(var(--r) * -1), 0) rotate(var(--counter)) scale(1.2);
  }

  .gallery-center { padding: 26px 18px; }
  .hover-peek { display: none; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none !important; }
}
