/* ═════════════════════════════════════════════════════════
   Sun-Stained Journal  ·  Summer Cocktails 2026
   No framework. No build step. Just paper, ink, and citrus.
═════════════════════════════════════════════════════════ */

:root {
  /* Summer sky palette — navy ink, sky-blue paper, white cloud cards. No browns. */
  --paper:       #e6f3fb;
  --paper-warm:  #f1f8fd;
  --paper-deep:  #cfe7f5;
  --cloud:       #ffffff;
  --cloud-soft:  #fdfeff;
  --ink:         #1a2f4a;
  --ink-soft:    #3a4a66;
  --ink-faded:   #7a8aa3;
  --rule:        #b4c5d4;
  --sun:         #ffd23a;
  --sun-deep:    #f5a623;
  --ember:       #ff6b3a;
  --lime:        #5a8a3a;
  --berry:       #c4365e;
  --sky:         #5b8dc7;
  --sky-deep:    #3a6da8;
  --lavender:    #8a6db8;
  --grass:       #6ba84a;

  --serif:       "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --display:     "Caveat Brush", "Marker Felt", "Caveat", cursive;
  --hand:        "Caveat", "Reenie Beanie", "Comic Sans MS", cursive;
  --hand-loose:  "Reenie Beanie", "Caveat", cursive;
  --type:        "Special Elite", "American Typewriter", "Courier New", monospace;
  --label:       "Architects Daughter", "Caveat", sans-serif;

  --max-w:       min(1180px, 92vw);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  font-family: var(--serif);
  font-size: clamp(16px, 1.05vw + 12px, 19px);
  line-height: 1.55;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f4faff 0%, #e6f3fb 50%, #d4e8f5 100%) fixed,
    var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* fine sky-tint paper grain so backgrounds never read as a flat gradient */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.32;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.94  0 0 0 0 0.97  0 0 0 0 1.0  0 0 0 0.18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: screen;
}
.vignette {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse 120% 90% at 50% 50%, transparent 60%, rgba(58, 109, 168, 0.16) 100%);
}

/* ─────────── LASAGNA LOADING SCREEN ───────────
   Shown once per session on the landing page. Sketch lasagna + welcome
   line + parenthetical punchline + "tap to enter". Auto-dismisses ~4.4s. */
.lasagna-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background:
    radial-gradient(ellipse 60% 50% at 50% 35%, rgba(255, 255, 255, 0.65), transparent 70%),
    linear-gradient(180deg, #f4faff 0%, #e6f3fb 50%, #d4e8f5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4vh 6vw;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}
.lasagna-loader.is-gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.lasagna-loader-inner {
  max-width: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.lasagna-icon {
  width: clamp(180px, 46vw, 280px);
  height: auto;
  opacity: 0;
  transform: translateY(20px) scale(0.94);
  animation: lasagna-pop 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
  filter: drop-shadow(4px 8px 0 rgba(26, 47, 74, 0.14));
  margin-bottom: 0.4rem;
}
@keyframes lasagna-pop {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.lasagna-icon .steam {
  opacity: 0;
  animation: steam-rise 2.6s ease-in-out infinite;
}
.lasagna-icon .steam-2 { animation-delay: 0.4s; }
.lasagna-icon .steam-3 { animation-delay: 0.8s; }
@keyframes steam-rise {
  0%   { opacity: 0;    transform: translateY(8px); }
  30%  { opacity: 0.65; }
  100% { opacity: 0;    transform: translateY(-22px); }
}

/* Slice starts hidden inside the pan and rises out as if being scooped */
.lasagna-icon .slice {
  transform: translate(160px, 240px) rotate(2deg);
  animation: slice-rise 2.4s cubic-bezier(0.18, 1, 0.32, 1) 0.3s forwards;
}
@keyframes slice-rise {
  0%   { transform: translate(160px, 240px) rotate(2deg); }
  100% { transform: translate(160px, 100px) rotate(9deg); }
}

/* Cheese strands grow upward from the pan top to meet the rising slice. */
.lasagna-icon .strands {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scaleY(0);
  opacity: 0;
  animation: strands-grow 1.9s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards;
}
@keyframes strands-grow {
  0%   { transform: scaleY(0); opacity: 0; }
  15%  { opacity: 0.95; }
  100% { transform: scaleY(1); opacity: 0.95; }
}

.lasagna-text-1, .lasagna-text-2 {
  margin: 0;
  opacity: 0;
  animation: lasagna-text-in 0.55s ease forwards;
}
.lasagna-text-1 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(20px, 5vw, 30px);
  line-height: 1.25;
  color: var(--ink);
  animation-delay: 0.9s;
  max-width: 18ch;
}
.lasagna-text-2 {
  font-family: var(--hand);
  font-size: clamp(22px, 5.6vw, 32px);
  line-height: 1.2;
  color: var(--ember);
  transform: rotate(-1.5deg);
  animation-delay: 2.6s;
  max-width: 22ch;
}
@keyframes lasagna-text-in { to { opacity: 1; } }

/* Tap-to-enter call-to-action: a big, bold, pulsing button. The whole
   loader is clickable, but this gives the guest something obvious to tap. */
.lasagna-skip {
  font-family: var(--display);
  font-size: clamp(28px, 7vw, 44px);
  letter-spacing: 0.01em;
  text-transform: none;
  color: #ffffff;
  background: var(--ember);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 0.55rem 1.6rem 0.7rem;
  margin: 1.8rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow:
    4px 5px 0 var(--ink),
    0 14px 30px -16px rgba(26, 47, 74, 0.4);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  animation:
    lasagna-cta-in 0.5s ease 3.6s forwards,
    lasagna-cta-pulse 1.6s ease-in-out 4.2s infinite;
}
.lasagna-skip::after {
  content: " →";
  font-family: var(--display);
}
@keyframes lasagna-cta-in {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes lasagna-cta-pulse {
  0%, 100% { transform: translateY(0)   scale(1);    box-shadow: 4px 5px 0 var(--ink), 0 14px 30px -16px rgba(26, 47, 74, 0.4); }
  50%      { transform: translateY(-3px) scale(1.04); box-shadow: 4px 8px 0 var(--ink), 0 22px 36px -16px rgba(26, 47, 74, 0.5); }
}

@media (prefers-reduced-motion: reduce) {
  .lasagna-icon,
  .lasagna-text-1,
  .lasagna-text-2,
  .lasagna-skip {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .lasagna-icon .steam { opacity: 0.6; animation: none; }
}

/* ─────────── PAGE NAV (cocktails · scoops · tacos) ─────────── */
.page-nav {
  position: relative; z-index: 3;
  display: flex; justify-content: center; gap: 1.6rem;
  margin: 0 0 1.6rem;
  font-family: var(--type);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  flex-wrap: wrap;
}
.page-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-bottom: 1.5px dashed transparent;
  transition: all 0.25s ease;
  /* iOS 44px minimum tap target */
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.page-nav a:hover {
  border-color: var(--ember);
  color: var(--ember);
  transform: translateY(-1px);
}
.page-nav a.is-current {
  color: var(--ink);
  border-color: var(--ink);
}

/* ─────────── SKY SCENE (fixed background; clouds, sun, birds) ─────────── */
.sky-scene {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
/* Sun is wrapped in an anchor that routes back to the landing page so guests
   can hop between menus from anywhere. The SVG itself fills the link. */
.sky-sun-link {
  position: fixed;
  top: clamp(16px, 4vh, 48px);
  right: clamp(20px, 4vw, 64px);
  width: clamp(96px, 14vw, 160px);
  aspect-ratio: 1;
  z-index: 11;
  display: block;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 224, 102, 0.55));
  animation: sun-pulse 6s ease-in-out infinite;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.sky-sun-link:hover,
.sky-sun-link:focus-visible {
  transform: scale(1.07) rotate(4deg);
  outline: none;
}
.sky-sun-link:active {
  transform: scale(0.94);
}
.sky-sun {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.sky-sun .rays {
  transform-origin: 50% 50%;
  animation: sun-spin 90s linear infinite;
}
@keyframes sun-pulse {
  0%, 100% { filter: drop-shadow(0 0 14px rgba(255, 224, 102, 0.45)); }
  50%      { filter: drop-shadow(0 0 26px rgba(255, 224, 102, 0.85)); }
}
@keyframes sun-spin { to { transform: rotate(360deg); } }

.sky-cloud {
  position: absolute;
  opacity: 0.92;
  will-change: transform;
  animation: drift linear infinite;
}
.sky-cloud svg { display: block; }

.sky-bird {
  position: absolute;
  will-change: transform;
  animation: fly linear infinite;
}
.sky-bird svg {
  display: block;
  animation: flap 0.6s ease-in-out infinite;
  transform-origin: 50% 60%;
}

@keyframes drift {
  from { transform: translateX(-35vw); }
  to   { transform: translateX(120vw); }
}
@keyframes fly {
  from { transform: translate(-20vw, 0); }
  to   { transform: translate(115vw, -40px); }
}
@keyframes flap {
  0%, 100% { transform: scaleY(1)    translateY(0); }
  50%      { transform: scaleY(0.82) translateY(-2px); }
}

/* push the hero text above the sun in the corner */
.hero { z-index: 3; }
.hero > * { position: relative; }

/* ─────────── HERO ─────────── */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 6vh 6vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
  overflow: hidden;
}

.hero-stains {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
}
.stain {
  position: absolute;
  width: 50vmin;
  height: 50vmin;
}
.stain-1 { top: -6vmin; left: -8vmin; transform: rotate(-12deg); }
.stain-2 { bottom: -8vmin; right: -6vmin; transform: rotate(20deg); }
.stain-3 { top: 40%; right: 20%; width: 28vmin; height: 28vmin; opacity: 0.7; }

/* dew ring marks left by cold glasses */
.ring {
  position: absolute;
  border: 1.5px solid rgba(58, 109, 168, 0.45);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.ring::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(58, 109, 168, 0.25);
  border-radius: 50%;
}
.ring-1 { top: 12%; left: 8%; width: 130px; height: 130px; transform: rotate(-8deg); }
.ring-2 { bottom: 16%; right: 10%; width: 90px; height: 90px; }

.dateline {
  font-family: var(--type);
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 1rem;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(64px, 13vw, 180px);
  line-height: 0.88;
  margin: 0;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.05em;
}
/* soft white halo behind the title so the brush font always reads against the sky */
.hero-title::before {
  content: "";
  position: absolute;
  inset: -16% -8%;
  z-index: -1;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.4) 38%, rgba(255, 255, 255, 0) 72%);
  filter: blur(8px);
  pointer-events: none;
}
/* "Summer" / "Protein" — hand-painted brush, slight tilt, sun-yellow halo with subtle white outline for legibility on sky */
.t-summer {
  font-family: var(--display);
  font-style: normal;
  font-weight: 400;
  font-size: 1.18em;
  letter-spacing: 0.005em;
  color: var(--ink);
  display: inline-block;
  transform: rotate(-2deg);
  text-shadow:
    -1px -1px 0 rgba(255, 255, 255, 0.7),
    1px -1px 0 rgba(255, 255, 255, 0.7),
    -1px 1px 0 rgba(255, 255, 255, 0.7),
    1px 1px 0 rgba(255, 255, 255, 0.7),
    3px 3px 0 rgba(255, 210, 58, 0.9),
    6px 6px 0 rgba(255, 107, 58, 0.3);
}
.t-amp {
  font-family: var(--hand);
  font-size: 0.55em;
  color: var(--sun);
  font-style: normal;
  font-weight: 700;
  display: inline-block;
  transform: translateY(-0.1em) rotate(-6deg);
  text-shadow: 2px 2px 0 rgba(31, 26, 20, 0.15);
}
.t-cocktails {
  color: var(--ink);
  font-style: italic;
  text-shadow: 2px 2px 0 rgba(168, 52, 79, 0.15);
  display: inline-block;
  transform: rotate(1deg);
}

.hero-sub {
  font-family: var(--hand);
  font-size: clamp(22px, 2.4vw, 32px);
  color: var(--ember);
  margin: 1.2rem 0 0;
  position: relative;
  z-index: 2;
  transform: rotate(-1.5deg);
}

.hero-rules {
  margin-top: 5vh;
  font-family: var(--type);
  font-size: 0.78rem;
  color: var(--ink-faded);
  letter-spacing: 0.12em;
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 2;
}

/* hand-torn washi tape */
.tape {
  position: absolute;
  width: 110px;
  height: 22px;
  background: rgba(255, 210, 58, 0.78);
  border-left: 1px dashed rgba(26, 47, 74, 0.2);
  border-right: 1px dashed rgba(26, 47, 74, 0.2);
  box-shadow: 0 2px 0 rgba(26, 47, 74, 0.1);
  pointer-events: none;
  z-index: 1;
}
.tape::before, .tape::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 8px;
  background: inherit;
}
.tape::before { left: -6px; clip-path: polygon(100% 0, 60% 30%, 100% 60%, 40% 100%, 100% 80%); }
.tape::after { right: -6px; clip-path: polygon(0 0, 40% 30%, 0 60%, 60% 100%, 0 80%); }
.tape-hero {
  top: 8%;
  right: 12%;
  transform: rotate(18deg);
}

.scroll-hint {
  margin-top: auto;
  padding-top: 6vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--ink-soft);
  font-family: var(--hand);
  font-size: 22px;
  position: relative;
  z-index: 2;
  transform: rotate(-2deg);
  transition: transform 0.4s ease;
}
.scroll-hint:hover { transform: rotate(-2deg) translateY(4px); }
.scroll-hint svg { width: 22px; height: 36px; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ─────────── COCKTAIL SECTIONS ─────────── */
.cocktail {
  position: relative;
  min-height: 100vh;
  padding: 8vh 6vw;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.cocktail-inner {
  width: 100%;
  max-width: var(--max-w);
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) 1fr;
  gap: 6vw;
  align-items: center;
}
.cocktail.flip .cocktail-inner {
  grid-template-columns: 1fr minmax(280px, 0.85fr);
}
.cocktail.flip .stage { order: 2; }
.cocktail.flip .page { order: 1; text-align: right; }
.cocktail.flip .page .ingredients { padding-left: 0; padding-right: 0; }

/* stage = glass + streams */
.stage {
  position: relative;
  aspect-ratio: 320 / 420;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
.glass {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  filter: drop-shadow(8px 14px 0 rgba(31, 26, 20, 0.08));
}
.pour-streams {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.stream {
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
}
.liquid {
  /* y, height set by JS via transform */
  will-change: transform;
}
.liquid-shine { opacity: 0; }

/* foam (negroni) hidden until poured */
.foam-layer { opacity: 0; transform: translateY(20px); }
.foam-bubble { transform-origin: center; }

/* mint leaves and bubbles (mojito) hidden until poured */
.mint-leaf { opacity: 0; }
.bubble { opacity: 0; }

/* smoke (paloma) */
.smoke { opacity: 0; }

/* garnish appears at the end */
.garnish { opacity: 0; transform: translateY(-10px); }

/* page = name + ingredients + blurb */
.page {
  position: relative;
  z-index: 2;
}
.recipe-no {
  font-family: var(--type);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faded);
  display: inline-block;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.4rem;
}
.drink-name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.015em;
  margin: 0 0 1.6rem;
  color: var(--ink);
}
.drink-name::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  margin-top: 0.6rem;
  background: var(--sun);
  border-radius: 2px;
  transform: rotate(-1deg);
}
.cocktail.flip .drink-name::after { margin-left: auto; }

.ingredients {
  list-style: none;
  padding: 0;
  margin: 0 0 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-family: var(--hand);
  font-size: clamp(22px, 1.6vw, 28px);
  color: var(--ink-soft);
}
.ingredients li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  opacity: 0;
  transform: translateX(-12px);
  position: relative;
}
.cocktail.flip .ingredients li {
  flex-direction: row-reverse;
  transform: translateX(12px);
}
.swatch {
  width: 14px;
  height: 14px;
  background: var(--c);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(31, 26, 20, 0.5);
  flex-shrink: 0;
}

.blurb {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 1rem;
  max-width: 36ch;
  opacity: 0;
}
.cocktail.flip .blurb { margin-left: auto; }

.scribble {
  font-family: var(--hand-loose);
  font-size: clamp(20px, 1.7vw, 26px);
  color: var(--ember);
  margin: 0;
  transform: rotate(-1deg);
  max-width: 30ch;
  opacity: 0;
}
.cocktail.flip .scribble {
  margin-left: auto;
  transform: rotate(1.2deg);
}

/* ─────────── SELF-SERVE: LEMONADE + BOURBON WALL ─────────── */
.self-serve {
  position: relative;
  padding: 12vh 6vw;
  z-index: 2;
}
.self-serve-head {
  text-align: center;
  margin-bottom: 5vh;
}
.kicker {
  font-family: var(--type);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0 0 0.6rem;
}
.section-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.96;
  margin: 0;
  color: var(--ink);
}

.lemonade-card {
  max-width: 920px;
  margin: 0 auto 10vh;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4vw;
  align-items: center;
  position: relative;
  background: var(--cloud);
  padding: 3rem 3rem;
  border-radius: 4px;
  box-shadow:
    0 1px 0 rgba(26, 47, 74, 0.05),
    0 14px 30px -20px rgba(26, 47, 74, 0.25),
    inset 0 0 0 1px rgba(26, 47, 74, 0.06);
  transform: rotate(-0.6deg);
}
.lemonade-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(26, 47, 74, 0.2);
  pointer-events: none;
}
.lemonade-art {
  position: relative;
}
.lemonade-art svg { width: 100%; height: auto; }
.tape-lem {
  position: absolute;
  top: -16px;
  left: 30%;
  transform: rotate(-8deg);
}
.lemonade-text .drink-name { font-size: clamp(34px, 4vw, 54px); }
.lemonade-text .recipe-no { color: var(--plum); }

/* bourbon wall */
.bourbon-wall-head {
  text-align: center;
  margin-bottom: 4vh;
}
.bourbon-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(28px, 4vw, 52px);
  margin: 0 0 0.6rem;
}
.bourbon-sub {
  font-family: var(--hand);
  font-size: clamp(20px, 1.6vw, 26px);
  color: var(--ink-soft);
  margin: 0;
}
.bourbon-wall {
  max-width: 1100px;
  margin: 0 auto;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(91, 141, 199, 0.06) 0px,
      rgba(91, 141, 199, 0.06) 2px,
      transparent 2px,
      transparent 18px
    ),
    var(--cloud);
  padding: 3rem 2.5rem 2rem;
  border: 2px solid var(--ink);
  border-radius: 6px;
  position: relative;
  box-shadow: 0 24px 50px -30px rgba(26, 47, 74, 0.35);
}
.bourbon-wall::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(26, 47, 74, 0.25);
  border-radius: 4px;
  pointer-events: none;
}
.shelf {
  position: relative;
  margin-bottom: 1.6rem;
}
.shelf-board {
  /* painted white shelves with a thin shadow line, no wood grain */
  position: absolute;
  bottom: -8px;
  left: -1rem;
  right: -1rem;
  height: 10px;
  background: linear-gradient(to bottom, #ffffff, #e6eef6);
  border-top: 1.5px solid var(--ink);
  border-bottom: 1px solid rgba(26, 47, 74, 0.25);
  box-shadow: 0 6px 10px -6px rgba(26, 47, 74, 0.35);
}
.bottles {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.8rem;
  align-items: end;
  position: relative;
  z-index: 2;
}
.bottle {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.bottle:hover { transform: translateY(-8px); }
.bottle svg {
  width: 100%;
  max-width: 80px;
  height: auto;
  filter: drop-shadow(3px 6px 0 rgba(31, 26, 20, 0.18));
}
.bottle-label {
  font-family: var(--label);
  font-size: 7.5px;
  font-weight: 700;
  fill: var(--ink);
  letter-spacing: 0.04em;
}

.bourbon-footnote {
  text-align: center;
  font-family: var(--hand);
  font-size: clamp(20px, 1.6vw, 26px);
  color: var(--ember);
  margin: 2.5rem 0 0;
  transform: rotate(-0.6deg);
}
.bourbon-footnote em {
  font-style: italic;
  color: var(--plum);
}

/* ─────────── FRIDGE ─────────── */
.fridge-section {
  position: relative;
  padding: 12vh 6vw 14vh;
  z-index: 2;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(26, 47, 74, 0.08), transparent 70%);
}
.fridge-head {
  text-align: center;
  margin-bottom: 5vh;
}
.fridge-sub {
  font-family: var(--hand);
  font-size: clamp(20px, 1.7vw, 26px);
  color: var(--ink-soft);
  margin: 0.4rem 0 0;
}

.fridge-stage {
  position: relative;
  width: min(420px, 88vw);
  margin: 0 auto;
  text-align: center;
}
.fridge {
  position: relative;
  width: 100%;
  aspect-ratio: 360 / 520;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.fridge-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 20px 26px rgba(31, 26, 20, 0.2));
}
.fridge-closed {
  z-index: 2;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.6, 0, 0.4, 1);
  transform-origin: left center;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.fridge-open {
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease 0.2s;
}
.fridge.is-open .fridge-closed {
  transform: perspective(900px) rotateY(-105deg);
  opacity: 0;
}
.fridge.is-open .fridge-open { opacity: 1; }

/* NOTE: never animate CSS `transform` on these <g> elements — they already carry
   an SVG `transform="translate(..)"` attribute and CSS transform would clobber it,
   stacking every beer at origin. Opacity + filter are safe. */
.fridge.is-open .beer {
  animation: beer-pop 0.55s ease both;
}
.fridge.is-open .beer:nth-child(odd)  { animation-delay: 0.08s; }
.fridge.is-open .beer:nth-child(even) { animation-delay: 0.18s; }
@keyframes beer-pop {
  from { opacity: 0; filter: blur(3px); }
  to   { opacity: 1; filter: blur(0); }
}
.beer-label {
  font-family: var(--label);
  font-size: 9px;
  font-weight: 700;
  fill: #1f1a14;
}

.sticker-text {
  font-family: var(--type);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.click-hint {
  animation: hint-pulse 1.8s ease-in-out infinite;
  transform-origin: 180px 500px;
}
.fridge.is-open .click-hint { display: none; }
@keyframes hint-pulse {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.18); opacity: 1; }
}
.hint-text {
  font-family: var(--hand);
  font-size: 16px;
}

.fridge-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(252, 234, 178, 0.55), transparent 65%);
  border-radius: 14px;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}
.fridge.is-open .fridge-flash {
  animation: flash 0.55s ease;
}
@keyframes flash {
  0% { opacity: 0; }
  20% { opacity: 1; }
  100% { opacity: 0; }
}

.fridge-hint {
  margin-top: 1.2rem;
  font-family: var(--hand);
  font-size: 22px;
  color: var(--ember);
  transform: rotate(-1deg);
  transition: opacity 0.3s ease;
}
.fridge.is-open + .fridge-hint { opacity: 0.4; }

/* ─────────── END PAGE / FOOTER ─────────── */
.end-page {
  position: relative;
  padding: 10vh 6vw 8vh;
  text-align: center;
  z-index: 2;
}
.end-stains {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.end-stains .stain {
  width: 80vmin;
  height: 60vmin;
  bottom: -20vmin;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.6;
}
.rules {
  list-style: none;
  padding: 0;
  margin: 1rem 0 3rem;
  font-family: var(--hand);
  font-size: clamp(22px, 2vw, 30px);
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  z-index: 2;
}
.rules li:nth-child(odd) { transform: rotate(-0.6deg); }
.rules li:nth-child(even) { transform: rotate(0.5deg); }

.end-sig {
  font-family: var(--type);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faded);
  position: relative;
  z-index: 2;
}

/* ─────────── PROGRESS RAIL ─────────── */
.progress-rail {
  position: fixed;
  right: 2.4vw;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  z-index: 10;
  padding: 0.7rem 0.4rem;
}
.progress-rail a {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-family: var(--type);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--ink-faded);
  text-decoration: none;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}
.progress-rail a::before {
  content: attr(data-drink);
}
.progress-rail a:hover {
  color: var(--ember);
  border-color: var(--ember);
  transform: scale(1.15);
}
.progress-rail a.is-current {
  color: var(--ember);
  border-color: var(--ember);
  background: var(--paper);
  transform: scale(1.18);
  font-weight: 700;
}

/* ─────────── RESPONSIVE ─────────── */
@media (max-width: 980px) {
  .progress-rail { right: 1.4vw; }
}

@media (max-width: 780px) {
  /* shrink the sun + tuck it into the corner so it doesn't overlap the page-nav */
  .sky-sun-link {
    top: 10px;
    right: 10px;
    width: 60px;
  }

  /* hero — tighter vertical rhythm so the brush stack sits close
     and the rules don't get pushed to the bottom by auto-margins */
  .hero { padding: 4vh 5vw 3vh; }
  .hero-title {
    font-size: clamp(64px, 18vw, 120px);
    line-height: 0.78;
    gap: 0;
  }
  .t-summer { font-size: 1em; }
  .t-amp {
    /* pull the ampersand up into the brush word above and down into the italic below */
    margin: -0.18em 0 -0.12em;
  }
  .t-cocktails, .t-scoops, .t-tacos { margin-top: -0.05em; }
  .hero-sub { font-size: clamp(18px, 4.6vw, 26px); margin-top: 0.8rem; }
  .hero-rules { gap: 0.9rem; font-size: 0.66rem; margin-top: 2vh; }
  .scroll-hint {
    /* drop the auto-margin push so it sits just under the rules, not at the bottom of viewport */
    margin-top: 2.4vh;
    padding-top: 0;
    font-size: 18px;
  }
  .ring-1 { width: 80px; height: 80px; }
  .ring-2 { width: 60px; height: 60px; }
  .tape-hero { right: 8%; }

  /* cocktail sections — single column, stage on top, page below */
  .cocktail { padding: 5vh 5vw; min-height: 100vh; }
  .cocktail-inner,
  .cocktail.flip .cocktail-inner {
    grid-template-columns: 1fr;
    gap: 2vh;
  }
  .cocktail.flip .stage,
  .cocktail.flip .page { order: initial; text-align: left; }
  .cocktail.flip .ingredients li { flex-direction: row; transform: translateX(-12px); }
  .cocktail.flip .blurb { margin-left: 0; }
  .cocktail.flip .scribble { margin-left: 0; transform: rotate(-1deg); }
  .cocktail.flip .drink-name::after { margin-left: 0; }

  .stage { max-width: 260px; }
  .drink-name { font-size: clamp(38px, 10vw, 60px); margin-bottom: 1rem; }
  .recipe-no { margin-bottom: 0.8rem; }
  .ingredients { font-size: clamp(20px, 5.6vw, 26px); gap: 0.4rem; margin-bottom: 1.2rem; }
  .swatch { width: 12px; height: 12px; }
  .blurb { font-size: clamp(17px, 4.4vw, 20px); margin-bottom: 0.6rem; }
  .scribble { font-size: clamp(20px, 5vw, 24px); }

  /* self-serve & bourbon */
  .self-serve { padding: 8vh 5vw; }
  .section-title { font-size: clamp(40px, 11vw, 80px); }
  .lemonade-card {
    grid-template-columns: 1fr;
    padding: 1.8rem 1.4rem;
    gap: 1.4rem;
    transform: rotate(-0.3deg);
    margin-bottom: 6vh;
  }
  .lemonade-art { max-width: 200px; margin: 0 auto; }
  .lemonade-text { text-align: center; }
  .lemonade-text .scribble { text-align: center; max-width: none; }

  .bourbon-wall { padding: 1.6rem 1rem 1rem; }
  .bottles { grid-template-columns: repeat(3, 1fr); gap: 1.6rem 0.4rem; }
  .bottle svg { max-width: 64px; }
  .bottle-label { font-size: 7px; }
  .shelf { margin-bottom: 1.8rem; }
  .bourbon-title { font-size: clamp(24px, 6vw, 36px); }
  .bourbon-footnote { font-size: 22px; }

  /* fridge */
  .fridge-section { padding: 8vh 5vw 10vh; }
  .fridge-stage { width: min(360px, 92vw); }
  .fridge { min-height: 44px; }
  .fridge-hint { font-size: 20px; margin-top: 1rem; }
  .fridge-sub { font-size: 18px; }

  /* footer */
  .end-page { padding: 8vh 5vw 6vh; }
  .rules { font-size: clamp(20px, 5vw, 26px); }

  /* progress rail — smaller and out of the way */
  .progress-rail {
    right: 1vw;
    top: auto;
    bottom: 2vh;
    transform: none;
    flex-direction: row;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    background: rgba(207, 231, 245, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 999px;
    box-shadow: 0 2px 14px -6px rgba(31, 26, 20, 0.3);
  }
  .progress-rail a { width: 32px; height: 32px; font-size: 8px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(62px, 22vw, 110px); }
  .stage { max-width: 220px; }
  .bottles { grid-template-columns: repeat(3, 1fr); gap: 1.2rem 0.2rem; }
  .bottle svg { max-width: 56px; }
  .lemonade-card { padding: 1.4rem 1rem; }
}

@media (max-width: 380px) {
  .progress-rail { display: none; }
}

/* iOS Safari toolbar/notch safety */
@supports (padding: max(0px)) {
  .hero { padding-top: max(5vh, env(safe-area-inset-top)); }
  .end-page { padding-bottom: max(6vh, env(safe-area-inset-bottom)); }
  .progress-rail { right: max(1vw, env(safe-area-inset-right)); }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .ingredients li, .blurb, .scribble, .bottle, .garnish, .foam-layer { opacity: 1 !important; transform: none !important; }
}
