/* =========================================================
   Ember & Oat — warm browns & beiges
   ========================================================= */
:root {
  --espresso: #3b2418;
  --roast: #4a2c1d;
  --mocha: #6b4430;
  --walnut: #8a5a3c;
  --caramel: #b07a4f;
  --toffee: #c98a4b;
  --latte: #d9b99b;
  --oat: #eadbc8;
  --cream: #f3e7d7;
  --foam: #fbf6ef;
  --clay: #c0673f;

  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --hand: "Caveat", cursive;
  --mono: "Courier Prime", "Courier New", monospace;

  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(59, 36, 24, .35);
  --shadow-lg: 0 30px 60px -20px rgba(59, 36, 24, .45);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--espresso);
  line-height: 1.6;
  overflow-x: hidden;
}
/* paper grain overlay */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; color: var(--caramel); font-weight: 400; }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

.eyebrow {
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--walnut); font-weight: 700; margin-bottom: 1rem;
}
.eyebrow.light { color: var(--latte); }
.hand { font-family: var(--hand); color: var(--caramel); font-size: 1.4rem; font-weight: 500; }
.hand.big { font-size: 1.6rem; color: var(--latte); margin-top: .5rem; }

section { padding: clamp(4rem, 9vw, 7.5rem) clamp(1.25rem, 5vw, 5rem); position: relative; }
.section-head { max-width: 760px; margin: 0 auto 3.5rem; text-align: center; }
.section-head .sub { margin-top: 1rem; color: var(--mocha); }
.small-head { margin-top: 5rem; margin-bottom: 2rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--espresso);
  color: var(--cream);
  padding: .95rem 1.7rem;
  border-radius: 999px;
  font-weight: 500;
  transition: transform .25s, background .25s, box-shadow .25s;
  box-shadow: 0 6px 0 -1px var(--caramel);
}
.btn:hover { transform: translateY(-3px); background: var(--mocha); box-shadow: 0 9px 0 -1px var(--caramel); }
.btn-ghost { background: transparent; color: var(--espresso); box-shadow: inset 0 0 0 1.5px var(--espresso); }
.btn-ghost:hover { background: var(--espresso); color: var(--cream); box-shadow: inset 0 0 0 1.5px var(--espresso); }
.btn-small { padding: .6rem 1.2rem; font-size: .92rem; box-shadow: none; }
.btn-small:hover { box-shadow: none; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: 1rem clamp(1.25rem, 5vw, 5rem);
  background: rgba(243, 231, 215, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(138, 90, 60, .15);
  transition: padding .3s;
}
.nav.scrolled { padding-top: .6rem; padding-bottom: .6rem; }
.logo { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--espresso); }
.logo svg { width: 34px; height: 34px; color: var(--caramel); }
.logo em { font-style: italic; font-weight: 300; color: var(--caramel); }
.logo.light { color: var(--cream); }
.nav-links { display: flex; gap: 1.8rem; margin-left: auto; }
.nav-links a { position: relative; font-size: .95rem; color: var(--mocha); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 100%;
  background: var(--caramel); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav-links a:hover::after { transform: scaleX(1); }
.burger { display: none; width: 40px; height: 40px; position: relative; margin-left: auto; }
.burger span { position: absolute; left: 8px; right: 8px; height: 2px; background: var(--espresso); transition: transform .3s; }
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  min-height: calc(100vh - 70px);
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 3rem;
  background:
    radial-gradient(circle at 80% 40%, rgba(217, 185, 155, .7), transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(234, 219, 200, .9), transparent 50%);
}
.hero h1 { font-size: clamp(3rem, 7.5vw, 6.4rem); font-weight: 400; margin-bottom: 1.5rem; }
.lede { font-size: 1.15rem; max-width: 34rem; color: var(--mocha); margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.handnote { font-family: var(--hand); font-size: 1.5rem; color: var(--caramel); margin-top: 2.2rem; transform: rotate(-2deg); display: inline-block; }

.hero-art { position: relative; aspect-ratio: 1; max-width: 560px; justify-self: center; width: 100%; }
.hero-art::before {
  content: ""; position: absolute; inset: 8%;
  background: var(--latte);
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  animation: blob 14s ease-in-out infinite;
}
.hero-cup { position: relative; width: 100%; height: 100%; animation: bob 6s ease-in-out infinite; }
.steam path { stroke-dasharray: 120; animation: steam 3.2s ease-in-out infinite; }
.steam path:nth-child(2) { animation-delay: .6s; }
.steam path:nth-child(3) { animation-delay: 1.2s; }

.badge { position: absolute; top: 2%; right: 2%; width: 130px; height: 130px; z-index: 2; }
.badge svg { width: 100%; height: 100%; animation: spin 18s linear infinite; }
.badge text { font-family: var(--sans); font-size: 17px; letter-spacing: 3px; fill: var(--espresso); text-transform: uppercase; font-weight: 700; }
.badge-core {
  position: absolute; inset: 30%; display: grid; place-items: center;
  background: var(--espresso); border-radius: 50%; font-size: 1.6rem;
}
.hero-sticker {
  position: absolute; z-index: 2;
  font-family: var(--hand); font-size: 1.35rem; line-height: 1.1; text-align: center;
  background: var(--foam); padding: .8rem 1rem; border-radius: 12px; box-shadow: var(--shadow);
}
.hero-sticker.s1 { bottom: 14%; left: -2%; transform: rotate(-8deg); }
.hero-sticker.s2 {
  top: 40%; right: -3%; transform: rotate(10deg);
  background: var(--clay); color: var(--foam); border-radius: 50%; width: 92px; height: 92px;
  display: grid; place-content: center;
}
.hero-sticker.s2 b { font-family: var(--serif); font-size: 1.5rem; }

/* ---------- marquee ---------- */
.marquee { background: var(--espresso); color: var(--oat); overflow: hidden; padding: 1.1rem 0; transform: rotate(-1.2deg); margin: 0 -2%; }
.marquee-track { display: flex; gap: 2rem; width: max-content; animation: marquee 32s linear infinite; font-family: var(--serif); font-style: italic; font-size: 1.5rem; white-space: nowrap; }
.marquee i { color: var(--caramel); font-style: normal; }

/* ---------- story ---------- */
.story { display: grid; grid-template-columns: 1.3fr 1fr; gap: 4rem; align-items: center; max-width: 1240px; margin: 0 auto; }
.story-paper {
  background: var(--foam);
  padding: clamp(2rem, 5vw, 3.8rem);
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  position: relative; transform: rotate(-1deg);
  background-image: repeating-linear-gradient(transparent 0 31px, rgba(176, 122, 79, .14) 31px 32px);
}
.story-paper::before { /* tape */
  content: ""; position: absolute; top: -14px; left: 50%; width: 120px; height: 30px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(217, 185, 155, .75);
}
.story-paper h2 { margin-bottom: 1.5rem; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.story-paper p { color: var(--mocha); margin-bottom: 1rem; }
.signature { font-family: var(--hand); font-size: 2rem; color: var(--caramel) !important; margin-top: 1.5rem; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.stat {
  border: 1.5px solid rgba(138, 90, 60, .3); border-radius: var(--radius);
  padding: 1.6rem 1.2rem; text-align: center; background: rgba(251, 246, 239, .5);
  transition: transform .3s, background .3s;
}
.stat:hover { transform: translateY(-6px) rotate(-1deg); background: var(--foam); }
.stat .num { display: block; font-family: var(--serif); font-size: 3rem; color: var(--caramel); line-height: 1; }
.stat .label { font-size: .9rem; color: var(--mocha); }

/* ---------- menu ---------- */
.menu { background: var(--oat); }
.menu-card {
  max-width: 860px; margin: 0 auto;
  background: var(--foam); border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow-lg);
  outline: 1.5px dashed rgba(138, 90, 60, .35); outline-offset: -14px;
}
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2rem; }
.tab { padding: .55rem 1.3rem; border-radius: 999px; color: var(--mocha); font-weight: 500; transition: background .25s, color .25s; }
.tab:hover { background: var(--cream); }
.tab.active { background: var(--espresso); color: var(--cream); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp .5s ease; }
.menu-list { list-style: none; }
.menu-list li { display: flex; align-items: flex-end; gap: .8rem; padding: .95rem 0; border-bottom: 1px solid rgba(138, 90, 60, .12); }
.menu-list li:last-child { border-bottom: 0; }
.menu-list .item { font-family: var(--serif); font-size: 1.25rem; display: flex; flex-direction: column; }
.menu-list small { font-family: var(--sans); font-size: .88rem; color: var(--walnut); }
.menu-list .dots { flex: 1; border-bottom: 2px dotted rgba(138, 90, 60, .4); transform: translateY(-.45rem); min-width: 20px; }
.menu-list .price { font-family: var(--serif); font-size: 1.2rem; color: var(--caramel); }
.tag { display: inline-block; align-self: flex-start; margin-top: .3rem; font-family: var(--hand); font-weight: 700; font-size: 1.05rem; color: var(--clay); transform: rotate(-3deg); }
.menu-foot { text-align: center; margin-top: 1.8rem; font-size: .85rem; color: var(--walnut); }

/* flip cards */
.flip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; max-width: 1180px; margin: 0 auto; }
.flip { perspective: 1200px; height: 360px; text-align: left; }
.flip-inner { position: relative; width: 100%; height: 100%; transition: transform .8s cubic-bezier(.2, .8, .2, 1); transform-style: preserve-3d; }
.flip.flipped .flip-inner { transform: rotateY(180deg); }
.flip:hover:not(.flipped) .flip-inner { transform: rotateY(8deg) translateY(-4px); }
.flip-front, .flip-back {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: var(--radius); padding: 1.8rem 1.5rem; box-shadow: var(--shadow);
}
.flip-front { background: var(--foam); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center; }
.flip-front h4 { font-size: 1.4rem; margin-top: 1.4rem; }
.flip-front p { font-family: var(--hand); font-size: 1.25rem; color: var(--caramel); }
.flip-back { background: var(--espresso); color: var(--cream); transform: rotateY(180deg); display: flex; flex-direction: column; }
.flip-back h4 { font-size: 1.4rem; margin-bottom: 1rem; color: var(--latte); }
.flip-back ol { padding-left: 1.2rem; font-size: .95rem; display: grid; gap: .45rem; }
.flip-back li::marker { color: var(--caramel); font-family: var(--serif); }
.pairs { margin-top: auto; font-family: var(--hand); font-size: 1.3rem; color: var(--latte); border-top: 1px dashed rgba(217, 185, 155, .4); padding-top: .8rem; }

/* small glass used in flip cards */
.glass {
  width: 110px; height: 150px; position: relative;
  border: 4px solid rgba(138, 90, 60, .35); border-top: 0;
  border-radius: 6px 6px 30px 30px;
  display: flex; flex-direction: column-reverse; overflow: hidden;
  background: rgba(255, 255, 255, .45);
}
.glass.short { height: 105px; width: 95px; }
.glass.tall { height: 180px; width: 100px; border-radius: 4px 4px 18px 18px; }
.glass span { display: block; transition: height .6s; }
.glass span:nth-child(1) { height: var(--h1); background: var(--l1); }
.glass span:nth-child(2) { height: var(--h2); background: linear-gradient(var(--l2), var(--l2)); }
.glass span:nth-child(3) { height: var(--h3); background: var(--l3); border-radius: 50% 50% 0 0 / 8px 8px 0 0; }
.glass.ice::after {
  content: ""; position: absolute; inset: 20% 15% 30%;
  background:
    linear-gradient(135deg, rgba(255,255,255,.55), rgba(255,255,255,.15)) 0 0 / 34px 30px no-repeat,
    linear-gradient(135deg, rgba(255,255,255,.5), rgba(255,255,255,.12)) 34px 36px / 30px 28px no-repeat,
    linear-gradient(135deg, rgba(255,255,255,.45), rgba(255,255,255,.1)) 6px 70px / 32px 30px no-repeat;
}

/* ---------- the wall ---------- */
.wall { background: var(--mocha); color: var(--cream); overflow: hidden; }
.wall h2 { color: var(--foam); }
.corkboard {
  position: relative; max-width: 1240px; height: 760px; margin: 0 auto;
  border-radius: 10px;
  background-color: #a5774f;
  background-image:
    radial-gradient(rgba(59, 36, 24, .25) 1px, transparent 1.5px),
    radial-gradient(rgba(251, 246, 239, .12) 1px, transparent 1.5px);
  background-size: 9px 9px, 13px 13px;
  background-position: 0 0, 4px 6px;
  box-shadow: inset 0 0 0 14px var(--roast), inset 0 0 40px rgba(0,0,0,.35), var(--shadow-lg);
}
.polaroid {
  position: absolute; left: var(--x); top: var(--y);
  width: clamp(150px, 17vw, 220px);
  background: var(--foam); padding: 12px 12px 0;
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, .45);
  transform: rotate(var(--r));
  cursor: grab; user-select: none; touch-action: none;
  transition: transform .3s, box-shadow .3s;
}
.polaroid::before { /* push pin */
  content: ""; position: absolute; top: -8px; left: 50%; width: 18px; height: 18px; margin-left: -9px;
  border-radius: 50%; background: radial-gradient(circle at 35% 35%, #e3926a, var(--clay) 55%, #8f4426);
  box-shadow: 0 3px 4px rgba(0,0,0,.4); z-index: 2;
}
.polaroid:hover { transform: rotate(0deg) scale(1.05); box-shadow: 0 24px 40px -10px rgba(0,0,0,.55); }
.polaroid.dragging { cursor: grabbing; transform: rotate(0deg) scale(1.08); transition: none; box-shadow: 0 34px 50px -12px rgba(0,0,0,.6); }
.polaroid svg { display: block; width: 100%; aspect-ratio: 1; }
.polaroid figcaption { font-family: var(--hand); font-size: 1.3rem; color: var(--espresso); text-align: center; padding: .4rem 0 .6rem; }
.pin-note {
  position: absolute; left: var(--x); top: var(--y); transform: rotate(var(--r));
  background: #f6e6c8; color: var(--espresso); padding: 1rem 1.2rem;
  font-family: var(--hand); font-size: 1.4rem; line-height: 1.1; box-shadow: var(--shadow);
}

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(59, 36, 24, .85); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 2rem;
  opacity: 0; pointer-events: none; transition: opacity .35s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lb-frame { background: var(--foam); padding: 18px 18px 0; width: min(520px, 90vw); transform: scale(.9) rotate(-3deg); transition: transform .45s cubic-bezier(.2, .9, .3, 1.3); }
.lightbox.open .lb-frame { transform: scale(1) rotate(-1deg); }
.lb-art svg { width: 100%; display: block; }
.lb-caption { font-family: var(--hand); font-size: 1.9rem; text-align: center; padding: .8rem 0 1.1rem; }
.lb-close { position: absolute; top: 1.2rem; right: 1.6rem; font-size: 2.6rem; color: var(--cream); line-height: 1; }

/* ---------- brew bar / builder ---------- */
.builder { background: var(--cream); }
.builder-wrap {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; max-width: 1100px; margin: 0 auto;
  background: var(--foam); border-radius: 28px; padding: clamp(1.5rem, 4vw, 3rem); box-shadow: var(--shadow-lg);
}
.control { margin-bottom: 1.6rem; }
.control label { display: block; font-family: var(--serif); font-size: 1.15rem; margin-bottom: .6rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  padding: .5rem 1.05rem; border-radius: 999px; font-size: .92rem;
  border: 1.5px solid rgba(138, 90, 60, .35); color: var(--mocha);
  transition: all .2s;
}
.chip:hover { border-color: var(--caramel); background: var(--cream); }
.chip.active { background: var(--caramel); border-color: var(--caramel); color: var(--foam); }

.builder-result { display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; }
.big-glass {
  width: 200px; height: 260px; position: relative;
  border: 6px solid rgba(138, 90, 60, .3); border-top: 0;
  border-radius: 8px 8px 60px 60px;
  background: rgba(255,255,255,.6);
  box-shadow: inset -14px 0 0 rgba(255,255,255,.35);
}
.glass-fill {
  position: absolute; inset: 0; overflow: hidden;
  border-radius: 0 0 54px 54px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.big-glass::after { /* handle */
  content: ""; position: absolute; right: -52px; top: 50px; width: 44px; height: 90px;
  border: 6px solid rgba(138, 90, 60, .3); border-left: 0; border-radius: 0 40px 40px 0;
}
.big-glass .layer { width: 100%; height: 0; flex-shrink: 0; transition: height .7s cubic-bezier(.3, .8, .3, 1), background .5s; }
.layer.espresso { background: linear-gradient(var(--mocha), var(--espresso)); }
.layer.syrup { background: var(--toffee); }
.layer.milk { background: linear-gradient(#e7cfb0, var(--latte)); }
.layer.foam { background: var(--foam); border-radius: 30px 30px 0 0 / 10px 10px 0 0; box-shadow: inset 0 -4px 6px rgba(176,122,79,.15); }
.ice-cubes { position: absolute; inset: 30px 30px 60px; pointer-events: none; opacity: 0; transition: opacity .4s; }
.ice-cubes.show { opacity: 1; }
.ice-cubes i { position: absolute; width: 50px; height: 46px; border-radius: 8px; background: linear-gradient(135deg, rgba(255,255,255,.7), rgba(255,255,255,.15)); border: 1px solid rgba(255,255,255,.6); }
.ice-cubes i:nth-child(1) { top: 10px; left: 0; transform: rotate(12deg); }
.ice-cubes i:nth-child(2) { top: 60px; right: 0; transform: rotate(-18deg); }
.ice-cubes i:nth-child(3) { top: 110px; left: 30px; transform: rotate(6deg); }
.saucer { width: 280px; height: 26px; background: var(--oat); border-radius: 50%; margin-top: -8px; box-shadow: 0 6px 0 var(--latte); }
.steam-mini { height: 50px; display: flex; gap: 18px; transition: opacity .4s; }
.steam-mini.hide { opacity: 0; }
.steam-mini i { width: 6px; height: 40px; border-radius: 6px; background: linear-gradient(transparent, rgba(176, 122, 79, .45)); animation: rise 2.4s ease-in-out infinite; }
.steam-mini i:nth-child(2) { animation-delay: .5s; }
.steam-mini i:nth-child(3) { animation-delay: 1s; }
.result-card { text-align: center; margin-top: 2rem; }
.result-label { font-family: var(--hand); font-size: 1.4rem; color: var(--caramel); }
.result-card h3 { font-size: 2.2rem; margin: .2rem 0 .4rem; }
.result-card p { color: var(--mocha); max-width: 300px; margin: 0 auto; }
.result-price { font-family: var(--serif); font-size: 1.3rem; color: var(--caramel) !important; margin-top: .6rem !important; }
.pop { animation: pop .45s ease; }

/* ---------- reviews ---------- */
.reviews { background: var(--oat); }
.notes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; max-width: 1180px; margin: 0 auto; }
.note {
  background: var(--bg); padding: 2rem 1.6rem 1.6rem;
  font-family: var(--hand); font-size: 1.45rem; line-height: 1.3; color: var(--espresso);
  transform: rotate(var(--r)); box-shadow: var(--shadow); position: relative;
  transition: transform .35s;
}
.note::before { content: ""; position: absolute; top: -10px; left: 50%; width: 80px; height: 22px; transform: translateX(-50%) rotate(2deg); background: rgba(251, 246, 239, .7); }
.note:hover { transform: rotate(0) translateY(-8px) scale(1.03); }
.note cite { display: block; margin-top: 1rem; font-family: var(--sans); font-style: normal; font-size: .85rem; color: var(--walnut); }

/* ---------- workshops / tickets ---------- */
.tickets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem; max-width: 1100px; margin: 0 auto; }
.ticket {
  display: grid; grid-template-columns: 1fr 140px;
  background: var(--foam); border-radius: 14px; box-shadow: var(--shadow);
  position: relative; transition: transform .35s, box-shadow .35s;
  -webkit-mask: radial-gradient(circle 14px at calc(100% - 140px) 0, transparent 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle 14px at calc(100% - 140px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 14px at calc(100% - 140px) 0, transparent 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle 14px at calc(100% - 140px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
}
.ticket:hover { transform: translateY(-6px) rotate(-.6deg); }
.ticket-main { padding: 1.8rem; }
.ticket-kicker { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--clay); font-weight: 700; }
.ticket h3 { margin: .4rem 0 .6rem; }
.ticket p { color: var(--mocha); font-size: .95rem; }
.ticket-stub {
  border-left: 2px dashed rgba(138, 90, 60, .35);
  background: var(--latte); border-radius: 0 14px 14px 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; padding: 1rem;
}
.stub-price { font-family: var(--serif); font-size: 2rem; color: var(--espresso); }
.stub-seats { font-family: var(--hand); font-size: 1.25rem; color: var(--mocha); }
.stub-no { font-family: var(--mono); font-size: .75rem; color: var(--walnut); writing-mode: horizontal-tb; }

/* ---------- visit ---------- */
.visit { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; max-width: 1200px; margin: 0 auto; }
.visit-text h2 { margin-bottom: 1.2rem; }
.visit-text > p { color: var(--mocha); margin-bottom: 2rem; max-width: 520px; }
.map-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 8px solid var(--foam); }
.map-card svg { display: block; width: 100%; }
.map-pin { animation: pinBounce 2s ease-in-out infinite; transform-origin: 221px 146px; }

.receipt {
  justify-self: center; width: 100%; max-width: 360px;
  filter: drop-shadow(0 20px 25px rgba(59, 36, 24, .25));
  transform: rotate(2deg);
}
.receipt-inner {
  background: #fffdf8; padding: 2rem 1.6rem 2.4rem; font-family: var(--mono); font-size: .9rem; color: var(--roast);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%,
                conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%;
  -webkit-mask-composite: source-in;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%,
                conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%;
          mask-composite: intersect;
}
.r-center { text-align: center; }
.r-title { font-size: 1.25rem; font-weight: 700; letter-spacing: .15em; margin-bottom: .3rem; }
.r-sep { text-align: center; color: var(--latte); overflow: hidden; white-space: nowrap; margin: .6rem 0; }
.r-row { display: flex; justify-content: space-between; gap: 1rem; }
.r-total { font-weight: 700; font-size: 1rem; }
.r-thanks { font-family: var(--hand); font-size: 1.5rem; margin: 1.2rem 0 .8rem; color: var(--caramel); }
.barcode { height: 48px; background: repeating-linear-gradient(90deg, var(--roast) 0 2px, transparent 2px 4px, var(--roast) 4px 7px, transparent 7px 9px, var(--roast) 9px 10px, transparent 10px 13px); }

/* ---------- footer ---------- */
.footer { background: var(--espresso); color: var(--latte); padding: 4rem clamp(1.25rem, 5vw, 5rem) 2rem; }
.footer-top { display: flex; justify-content: space-between; gap: 3rem; flex-wrap: wrap; padding-bottom: 3rem; border-bottom: 1px solid rgba(217, 185, 155, .2); }
.footer-tag { margin-top: 1rem; max-width: 300px; }
.newsletter { max-width: 460px; flex: 1; }
.newsletter label { display: block; font-family: var(--serif); font-size: 1.2rem; color: var(--cream); margin-bottom: 1rem; }
.nl-row { display: flex; gap: .6rem; }
.nl-row input {
  flex: 1; padding: .9rem 1.2rem; border-radius: 999px; border: 1.5px solid rgba(217, 185, 155, .35);
  background: transparent; color: var(--cream); font: inherit;
}
.nl-row input::placeholder { color: rgba(217, 185, 155, .6); }
.nl-row input:focus { outline: none; border-color: var(--caramel); }
.footer .btn { background: var(--caramel); box-shadow: none; }
.footer .btn:hover { background: var(--toffee); }
.nl-msg { font-family: var(--hand); font-size: 1.4rem; color: var(--latte); margin-top: .6rem; min-height: 1.8rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.6rem; font-size: .85rem; color: rgba(217, 185, 155, .7); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.note.reveal.in { transform: rotate(var(--r)); }
.note.reveal.in:hover { transform: rotate(0) translateY(-8px) scale(1.03); }
.story-paper.reveal.in { transform: rotate(-1deg); }
.receipt.reveal.in { transform: rotate(2deg); }

/* ---------- keyframes ---------- */
@keyframes steam { 0% { stroke-dashoffset: 120; opacity: 0; } 30% { opacity: .7; } 100% { stroke-dashoffset: -120; opacity: 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blob {
  0%, 100% { border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; }
  50% { border-radius: 58% 42% 55% 45% / 42% 58% 42% 58%; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes rise { 0% { transform: translateY(10px) scaleY(.6); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateY(-14px) scaleY(1); opacity: 0; } }
@keyframes pop { 0% { transform: scale(.92); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes pinBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .flip-grid, .notes { grid-template-columns: repeat(2, 1fr); }
  .corkboard { height: 900px; }
}
@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--cream); padding: 1rem 1.5rem 1.5rem; border-bottom: 1px solid rgba(138,90,60,.2);
    transform: translateY(-120%); transition: transform .35s; z-index: -1;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: .8rem 0; font-size: 1.1rem; border-bottom: 1px dashed rgba(138,90,60,.2); }
  .nav-cta { display: none; }
  .burger { display: block; }
  .hero, .story, .visit, .builder-wrap { grid-template-columns: 1fr; }
  .hero { text-align: left; padding-top: 3rem; }
  .hero-art { max-width: 420px; }
  .tickets { grid-template-columns: 1fr; }
  /* corkboard becomes a scattered grid on small screens */
  .corkboard { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1rem; padding: 2.5rem 1.2rem; }
  .polaroid, .pin-note { position: relative; left: auto; top: auto; width: 100%; }
}
@media (max-width: 560px) {
  .flip-grid, .notes { grid-template-columns: 1fr; }
  .ticket { grid-template-columns: 1fr 100px;
    -webkit-mask: radial-gradient(circle 12px at calc(100% - 100px) 0, transparent 98%, #000) top / 100% 51% no-repeat,
                  radial-gradient(circle 12px at calc(100% - 100px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
            mask: radial-gradient(circle 12px at calc(100% - 100px) 0, transparent 98%, #000) top / 100% 51% no-repeat,
                  radial-gradient(circle 12px at calc(100% - 100px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat; }
  .nl-row { flex-direction: column; }
  .hero-sticker.s2 { right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* mobile + perf pass */
html,body{overflow-x:clip}
@media(max-width:860px){body::before{display:none}.tabs{display:grid;grid-template-columns:1fr 1fr;gap:.4rem}.tab{text-align:center}.hero-sticker.s1{left:2%}.hero-sticker.s2{right:2%}.marquee{margin:0}}
