/* ==========================================================
   Pancho Coffee Shop
   ========================================================== */
:root {
  --paper: #f1e6dc;
  --paper-light: #f8f0e8;
  --ink: #2a2521;
  --ink-soft: #3a332e;
  --ink-muted: #6e645b;
  --red: #9b1f16;
  --red-dark: #84190f;
  --matcha: #6f7d3a;
  --rule: #b3a89e;

  --font-display: "Patrick Hand", cursive;
  --font-body: "Patrick Hand", "Comic Sans MS", cursive;

  /* the classic "drawn by hand" wobbly box */
  --wobbly: 255px 14px 225px 14px / 14px 225px 14px 255px;

  --page-w: 1148px;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .35 0 0 0 0 .25 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  margin: 0;
  background-color: var(--paper);
  /* subtle paper grain, pinned to the viewport so the sticky header matches it seamlessly */
  background-image: var(--grain);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
button, input { font: inherit; color: inherit; }

::selection { background: var(--red); color: var(--paper-light); }

:focus-visible {
  outline: 2px dashed var(--red);
  outline-offset: 4px;
  border-radius: 4px;
}

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

.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--red);
  color: var(--paper-light);
  border-radius: 6px;
  transform: translateY(-160%);
  transition: transform .2s;
}
.skip-link:focus { transform: none; }

.page {
  max-width: var(--page-w);
  margin: 0 auto;
  padding: 0 18px;
}

.squiggle { display: block; color: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.08em;
  border: 0;
  cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn--solid {
  background: var(--red);
  color: #fbeee6;
  height: 46px;
  padding: 0 26px;
  border-radius: 6px;
  box-shadow: 0 0 0 0 var(--ink);
}
.btn--solid:hover { background: var(--red-dark); transform: translate(-2px, -2px); box-shadow: 3px 3px 0 0 var(--ink); }
.btn--solid:active { transform: none; box-shadow: none; }
.btn--outline {
  height: 51px;
  padding: 0 26px;
  border: 1.5px solid var(--red);
  border-radius: 18px;
  color: var(--red);
}
.btn--outline:hover { background: var(--red); color: #fbeee6; }

/* ---------- Header (sticky) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background-color: var(--paper);
  background-image: var(--grain);   /* same grain as the page, so no seam */
  background-attachment: fixed;
}
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--page-w);
  margin: 0 auto;
  padding: 24px 40px 8px 30px;
  transition: padding .3s;
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--rule);
  opacity: 0;
  transition: opacity .3s;
}
.is-scrolled .site-header__inner { padding-top: 8px; }
.is-scrolled .site-header::after { opacity: 1; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__dog { width: 76px; transition: width .3s, transform .4s; }
.brand:hover .brand__dog { transform: rotate(-6deg); }
.is-scrolled .brand__dog { width: 48px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  color: var(--red);
  font-size: 47px;
  letter-spacing: 0.02em;
  -webkit-text-stroke: 0.6px var(--red);
  transition: font-size .3s;
}
.brand__sub {
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: 0.12em;
  margin: 6px 0 0 8px;
  color: var(--ink-soft);
  transition: font-size .3s, margin .3s;
}
.is-scrolled .brand__name { font-size: 34px; }
.is-scrolled .brand__sub { font-size: 15px; margin-top: 3px; }

.nav {
  display: flex;
  gap: 53px;
  margin-left: 70px;
  margin-right: auto;
  font-family: var(--font-display);
  font-size: 16.5px;
  letter-spacing: 0.1em;
}
.nav a { position: relative; padding: 4px 0; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.nav a:hover::after,
.nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--red); }
.nav__cta { display: none; }

.header-actions { display: flex; align-items: center; gap: 42px; }
.menu-toggle {
  display: none; flex-direction: column; gap: 6px;
  width: 26px; padding: 4px 0;
  background: none; border: 0; cursor: pointer;
}
.menu-toggle span {
  display: block; height: 1.6px; background: var(--ink); border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.nav-open .menu-toggle span:nth-child(1) { transform: translateY(7.6px) rotate(45deg); }
.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7.6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 660px;
  align-items: start;
  min-height: 440px;
  margin: 4px 0 36px;
}
.hero__copy { padding: 85px 0 0 75px; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 58px;
  line-height: 67px;
  letter-spacing: 0.03em;
  color: var(--ink);
  -webkit-text-stroke: 0.4px var(--ink);
}
.hero__rule { width: 118px; height: 8px; margin: 18px 0 0 4px; }
.hero__lede { margin-top: 22px; font-size: 21px; line-height: 30px; letter-spacing: 0.02em; }
.hero__ctas { display: flex; align-items: center; gap: 44px; margin-top: 36px; }

.open-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-size: 17px;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}
.open-status__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--rule);
}
.open-status.is-open .open-status__dot {
  background: var(--matcha);
  box-shadow: 0 0 0 0 rgba(111, 125, 58, .5);
  animation: pulse 2.4s infinite;
}

.link-underline {
  font-family: var(--font-display);
  font-size: 16.5px;
  letter-spacing: 0.06em;
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}
.link-underline .squiggle { width: 64px; height: 5px; transition: width .25s; }
.link-underline:hover .squiggle { width: 76px; }

.hero__heart {
  position: absolute;
  left: 409px; top: 238px;
  width: 30px; height: 30px;
  color: var(--red);
  animation: beat 2.8s ease-in-out infinite;
}
.hero__stage { position: relative; width: 660px; margin-left: -8px; }
.hero__art { width: 100%; }

/* ---------- Living illustration ----------
   Coordinates are percentages of the 1320x870 artwork. */
.hero__stage { container-type: inline-size; }
.living__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  will-change: transform;
}
/* hanging branch: sheared from its top edge, so the cut along the frame never moves */
.living__branch {
  transform-origin: 30% 0%;
  animation: branch-sway 6.5s ease-in-out infinite;
}
/* potted tree: rocks gently around the trunk where it meets the pot */
.living__tree {
  transform-origin: 89.4% 68.6%;
  animation: tree-sway 5.5s ease-in-out -2s infinite;
}
@keyframes branch-sway {
  0%, 100% { transform: skewX(0deg); }
  28%      { transform: skewX(-3.4deg) scaleY(1.006); }
  52%      { transform: skewX(1.1deg); }
  76%      { transform: skewX(-2deg) scaleY(1.004); }
}
@keyframes tree-sway {
  0%, 100% { transform: rotate(0deg); }
  30%      { transform: rotate(2deg); }
  60%      { transform: rotate(-1.1deg); }
  82%      { transform: rotate(0.9deg); }
}

/* the sign board's lettering (art px 848–1009 × 728–749), hand-lettered in the site font */
.living__signtext {
  position: absolute;
  left: 63.2%; top: 83.0%;
  width: 13.8%; height: 3.4%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 2.45cqw;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #2a2521;
  pointer-events: none;
}

/* Pancho on the sandwich board, placed in artwork coordinates (board face x 823–1038, y 525–712) */
.living__signdog {
  position: absolute;
  left: 65.64%; top: 60.34%;
  width: 9.62%;
  pointer-events: none;
}
.living__signdog .pancho-sit { display: block; width: 100%; height: auto; overflow: visible; }
/* seasonal outfits for every Pancho drawn into the page (season comes from main.js) */
.outfit { display: none; }
html[data-season="winter"] .outfit--winter,
html[data-season="spring"] .outfit--spring,
html[data-season="summer"] .outfit--summer,
html[data-season="autumn"] .outfit--autumn { display: inline; }
/* on the small board, keep the sway subtle so it still reads as a printed sign */
.living__signdog .hm-figure { animation-name: hm-sway-sm; }
@keyframes hm-sway-sm { 0%, 100% { transform: rotate(0); } 35% { transform: rotate(-1.4deg); } 70% { transform: rotate(1deg); } }

/* warm light behind the door glass, as if someone is inside */
.living__glow {
  position: absolute;
  left: 49.6%; top: 18.2%;
  width: 12.6%; height: 32.6%;
  background: radial-gradient(ellipse 72% 64% at 50% 62%, rgba(238, 150, 60, .75), rgba(238, 160, 70, .28) 62%, transparent 88%);
  mix-blend-mode: multiply;
  opacity: .7;
  pointer-events: none;
  animation: glow 7s ease-in-out infinite;
}
@keyframes glow {
  0%, 100% { opacity: .6; }
  40%      { opacity: 1; }
  55%      { opacity: .78; }
  70%      { opacity: .95; }
}

/* a takeaway cup left on the bench, still steaming */
.living__cup {
  position: absolute;
  left: 33.9%;
  bottom: 33.4%;
  width: 3.1%;
  overflow: visible;
  pointer-events: none;
}
.living__cup .cup,
.living__cup .lid { fill: var(--paper-light); stroke: var(--ink); stroke-width: 1.7; stroke-linejoin: round; }
.living__cup .sleeve { fill: var(--red); stroke: var(--ink); stroke-width: 1.2; }
.living__cup .hatch { fill: none; stroke: var(--ink); stroke-width: .9; opacity: .7; }
.living__cup .steam path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: .5;
  stroke-dasharray: 60;
  animation: steam-rise 4.2s ease-in-out infinite;
}
.living__cup .steam path:nth-child(2) { animation-delay: -1.4s; }
.living__cup .steam path:nth-child(3) { animation-delay: -2.8s; }
@keyframes steam-rise {
  0%   { stroke-dashoffset: 60;  opacity: 0;   transform: translateY(8px); }
  30%  { opacity: .7; }
  70%  { stroke-dashoffset: 0;   opacity: .45; }
  100% { stroke-dashoffset: -60; opacity: 0;   transform: translateY(-14px); }
}

/* a leaf now and then lets go of the branch and drifts down */
.living__leaves { position: absolute; inset: 0; pointer-events: none; }
.leaf {
  position: absolute;
  width: 3%;
  opacity: 0;
  animation: leaf-fall 11s cubic-bezier(.35, .05, .55, 1) infinite;
}
.leaf > span { display: block; animation: leaf-sway 2.6s ease-in-out infinite alternate; }
.leaf svg { display: block; width: 100%; overflow: visible; }
.leaf path { fill: var(--paper-light); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.leaf .rib { fill: none; stroke-width: 1.1; }
.leaf--red path:first-child { fill: var(--red); }
/* five leaves on staggered, unequal timings so it never reads as a loop */
.leaf--1 { left: 21%; top: 34%; animation-delay: .8s; }
.leaf--2 { left: 31%; top: 30%; animation-duration: 13s; animation-delay: 4s; }
.leaf--3 { left: 13%; top: 37%; animation-duration: 15s; animation-delay: 7.5s; }
.leaf--4 { left: 37%; top: 26%; animation-duration: 12s; animation-delay: 10s; }
.leaf--5 { left: 6%;  top: 30%; animation-duration: 14s; animation-delay: 2.5s; }
.leaf--4 > span { animation-duration: 2.8s; }
.leaf--5 > span { animation-duration: 2.4s; }
.leaf--2 > span { animation-duration: 3.1s; }
.leaf--3 > span { animation-duration: 2.2s; }
@keyframes leaf-fall {
  0%   { opacity: 0; transform: translate(0, 0); }
  3%   { opacity: 1; }
  50%  { opacity: 1; transform: translate(var(--dx, 8cqw), var(--dy, 24cqw)); }
  57%  { opacity: 0; transform: translate(calc(var(--dx, 8cqw) + 1cqw), calc(var(--dy, 24cqw) + 1.5cqw)); }
  100% { opacity: 0; transform: translate(calc(var(--dx, 8cqw) + 1cqw), calc(var(--dy, 24cqw) + 1.5cqw)); }
}
@keyframes leaf-sway {
  from { transform: translateX(-2.6cqw) rotate(-45deg); }
  to   { transform: translateX(2.6cqw) rotate(55deg); }
}

/* ---------- Seasons (set by date in main.js; preview with ?season=spring|summer|autumn|winter) ---------- */
.living__layer img { display: block; width: 100%; height: 100%; }
.living__blossoms,
.living__snow { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.season-only { display: none; }
.hero__stage[data-season="spring"] .season-spring,
.hero__stage[data-season="summer"] .season-summer,
.hero__stage[data-season="autumn"] .season-autumn,
.hero__stage[data-season="winter"] .season-winter { display: block; }

/* winter: snow settled along the tops of the twigs (generated from the drawing itself) */
.living__layer .snow-layer { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.hero__stage[data-season="winter"] .living__layer .snow-layer { display: block; }

/* the tree and branch drawings shift colour with the season (the red leaf accents carry the change) */
.living__layer img { transition: filter 1s ease; }
.hero__stage[data-season="winter"] .living__layer img { filter: grayscale(.85) brightness(1.05); }
.hero__stage[data-season="spring"] .living__layer img { filter: hue-rotate(-18deg) saturate(.75) brightness(1.12); }
.hero__stage[data-season="summer"] .living__layer img { filter: hue-rotate(95deg) saturate(.9); }
.hero__stage[data-season="autumn"] .living__layer img { filter: hue-rotate(18deg) saturate(1.35); }

/* autumn: warm falling leaves (amber, mustard, rust, red) */
.leaf path:first-child { fill: #c8782e; }
.leaf--red path:first-child { fill: var(--red); }
.leaf--3 path:first-child { fill: #d4a24c; }
.leaf--5 path:first-child { fill: #b0512a; }
.p--leaf path { stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; fill: var(--c, #c8782e); }
.p--leaf .rib { fill: none; stroke-width: 1.1; }

/* falling particles built by main.js: petals (spring) and snow (winter) */
.p {
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--size, 2%);
  opacity: 0;
  animation: var(--fall, leaf-fall) var(--dur, 12s) var(--ease, cubic-bezier(.35, .05, .55, 1)) var(--delay, 0s) infinite;
}
.p > span { display: block; animation: var(--swayk, leaf-sway) var(--sw, 2.6s) ease-in-out infinite alternate; }
.p svg { display: block; width: 100%; overflow: visible; }
.p--petal path { fill: #eeb0a5; stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round; }
.p--flake path { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; }
.p--flake circle { fill: #fffdf9; stroke: var(--ink); stroke-width: 1.6; }
@keyframes snow-fall {
  0%   { opacity: 0; transform: translate(0, 0); }
  8%   { opacity: .95; }
  88%  { opacity: .95; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)); }
}
@keyframes snow-sway {
  from { transform: translateX(-1cqw) rotate(-35deg); }
  to   { transform: translateX(1cqw) rotate(35deg); }
}

/* winter: snow on the props, brighter window, thicker steam */
.living__snow path { fill: #fffdf9; stroke: var(--ink); stroke-width: 2.6; stroke-linejoin: round; }
.hero__stage[data-season="winter"] .living__glow {
  background: radial-gradient(ellipse 74% 66% at 50% 62%, rgba(236, 138, 44, .9), rgba(236, 150, 60, .35) 62%, transparent 90%);
}
.hero__stage[data-season="winter"] .living__cup .steam path { stroke-width: 2; }

/* summer: an iced coffee on the bench and butterflies around the plants */
.cup-iced { display: none; }
.hero__stage[data-season="summer"] .cup-hot { display: none; }
.hero__stage[data-season="summer"] .cup-iced { display: inline; }
.living__cup .cup-iced .cup { fill: rgba(250, 245, 238, .92); }
.living__cup .coffee { fill: #d9bfa2; }
.living__cup .ice { fill: rgba(255, 255, 255, .75); stroke: var(--ink); stroke-width: .9; }
.living__cup .straw { fill: none; stroke: var(--red); stroke-width: 2.6; stroke-linecap: round; }
.butterfly {
  position: absolute;
  left: var(--x); top: var(--y);
  width: 6.5%;
  animation: flutter var(--dur, 16s) ease-in-out var(--delay, 0s) infinite;
}
.butterfly svg { display: block; width: 100%; overflow: visible; }
.butterfly .wings { transform-box: fill-box; transform-origin: center; animation: flap .2s ease-in-out infinite alternate; }
.butterfly .wings path { fill: var(--paper-light); stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round; }
.butterfly .wings circle { fill: var(--red); }
.butterfly .body { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; }
.butterfly--2 { animation-direction: reverse; }
@keyframes flap { from { transform: scaleX(1); } to { transform: scaleX(.22); } }
@keyframes flutter {
  0%   { transform: translate(0, 0) rotate(-8deg); }
  18%  { transform: translate(5cqw, -4cqw) rotate(12deg); }
  36%  { transform: translate(10cqw, 1cqw) rotate(-4deg); }
  52%  { transform: translate(6cqw, 6cqw) rotate(10deg); }
  70%  { transform: translate(-3cqw, 3cqw) rotate(-14deg); }
  86%  { transform: translate(-5cqw, -2cqw) rotate(6deg); }
  100% { transform: translate(0, 0) rotate(-8deg); }
}

/* stop work when the hero is off screen */
.hero__stage.is-paused *,
.hero__stage.is-paused *::before { animation-play-state: paused !important; }


/* ---------- Rules ---------- */
.rule {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: 0 12px;
}

/* ---------- Section heading ---------- */
.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--red);
  font-size: 34px;
  letter-spacing: 0.1em;
  line-height: 1.2;
  -webkit-text-stroke: 0.3px var(--red);
}
.section-sub { font-size: 20px; margin-top: 4px; letter-spacing: 0.02em; }
.section-head__rule { width: 108px; height: 6px; margin-top: 8px; }

/* ---------- Menu ---------- */
.menu { padding: 26px 0 36px; display: flex; flex-direction: column; align-items: center; }
.drinks {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  width: 100%;
  margin-top: 40px;
  padding: 0 50px 0 70px;
}
.drink {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 10px 0;
  min-height: 256px;
}
.drink + .drink { border-left: 1px solid var(--rule); }
.drink img { height: 175px; width: auto; object-fit: contain; transition: transform .35s; }
.drink:hover img { transform: translateY(-6px) rotate(-2deg); }
.drink__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 23px;
  letter-spacing: 0.08em;
  margin-top: 14px;
}
.drink__notes { font-size: 18px; letter-spacing: 0.03em; margin-top: 2px; }
.drink__price { color: var(--red); font-size: 21px; margin-top: 8px; letter-spacing: 0.04em; }

.tag {
  position: absolute;
  top: 6px; right: 14px;
  padding: 0 10px;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  border: 1.3px solid currentColor;
  border-radius: var(--wobbly);
  transform: rotate(6deg);
  background: var(--paper);
}
.tag--new { color: var(--red); transform: rotate(-7deg); }

.menu__tagline { margin-top: 38px; font-size: 20px; letter-spacing: 0.03em; }
.menu__rule { width: 110px; height: 6px; margin-top: 6px; }

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 42px 0 40px 82px;
}
.feature {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 4px 0 4px 20px;
  min-height: 78px;
}
.feature + .feature { border-left: 1px solid var(--rule); padding-left: 56px; }
.feature__icon { flex: none; width: 52px; height: 64px; color: var(--red); margin-top: -2px; overflow: visible; }
.feature:nth-child(2) .feature__icon { width: 48px; height: 48px; margin-top: 6px; }
.feature:nth-child(3) .feature__icon { width: 38px; height: 46px; margin-top: 8px; }
.feature__icon { overflow: visible; }
.feature:nth-child(2):hover .feature__icon { animation: beat 1s ease-in-out; }
.feature:nth-child(3):hover .feature__icon { animation: twinkle .8s ease-in-out; }
.feature__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.07em;
  line-height: 1.5;
}
.feature__text { font-size: 18px; line-height: 27px; letter-spacing: 0.03em; }

/* ---------- Story ---------- */
.story {
  display: grid;
  grid-template-columns: 340px 1fr;
  align-items: center;
  gap: 40px;
  padding: 64px 70px 64px 60px;
}
.story__art {
  position: relative;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.story__art::before {
  content: "";
  position: absolute;
  top: -22px; left: 50%;
  width: 230px; height: 230px;
  translate: -50% 0;
  border: 1.5px solid var(--rule);
  border-radius: 48% 52% 45% 55% / 55% 45% 55% 45%;
  z-index: -1;
}
.story__art img { width: 100%; }
.story__art .pancho--nose { margin-top: -10px; }
.story__art::before { display: none; }   /* the line-drawn Pancho reads better without the old frame circle */

/* ---------- Pancho, alive: mug on his nose (brand illustration) ----------
   He sways gently, blinks, lifts his eyebrows now and then; the steam rises. */
.pancho--nose, .pancho--sit { position: relative; }
.story__art .pancho--sit { width: 180px; }
.pancho-nose, .pancho-sit { display: block; width: 100%; height: auto; overflow: visible; }
.hm-figure { transform-box: fill-box; transform-origin: 50% 100%; animation: hm-sway 6s ease-in-out infinite; }
.hm-eye { transform-box: fill-box; transform-origin: center; animation: hm-blink 5.2s ease-in-out 1.5s infinite; }
.hm-brow { transform-box: fill-box; transform-origin: center; animation: hm-brow 8s ease-in-out 3s infinite; }
.hm-steam path { transform-box: fill-box; transform-origin: 50% 100%; animation: hm-steam 3.2s ease-in-out infinite; }
.hm-steam path:nth-child(2) { animation-delay: -1.6s; }
@keyframes hm-sway  { 0%, 100% { transform: rotate(0); } 35% { transform: rotate(-2.2deg); } 70% { transform: rotate(1.6deg); } }
@keyframes hm-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes hm-brow  { 0%, 38%, 62%, 100% { transform: translateY(0); } 45%, 55% { transform: translateY(-38px); } }
/* seasonal drink garnishes (added by main.js) */
.drink__art { position: relative; display: inline-block; }
.drink__art img { display: block; }
.garnish { position: absolute; width: 46px; height: 46px; bottom: 2px; pointer-events: none; }
.garnish--right { right: -30px; }
.garnish--left { left: -30px; }
.garnish--top { width: 64px; height: 64px; top: -14px; bottom: auto; right: -22px; }
.garnish--topleft { width: 64px; height: 64px; top: -14px; bottom: auto; left: -30px; }

/* garnishes rock gently, as if in a light breeze */
.garnish { transform-origin: 50% 90%; animation: garnish-sway 4.6s ease-in-out infinite; }
.drink:nth-child(odd) .garnish { animation-delay: -2.2s; }
.garnish--top, .garnish--topleft { animation: snow-drift 6s ease-in-out infinite; }
@keyframes garnish-sway { 0%, 100% { rotate: -4deg; } 50% { rotate: 4deg; } }
@keyframes snow-drift { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 5px; rotate: 12deg; } }

/* little life near the drinks (added by main.js); paths stay inside the drink's column */
.critter { position: absolute; pointer-events: none; z-index: 1; }
.critter svg { display: block; width: 100%; height: auto; overflow: visible; }

.critter--bee { width: 24px; right: 6px; bottom: 58px; animation: bee-fly 5.5s ease-in-out infinite; }
.critter--bee .wing { transform-box: fill-box; transform-origin: 50% 100%; animation: wing-buzz .11s linear infinite alternate; }
.critter--bee .wing--b { animation-delay: -.05s; }
@keyframes bee-fly {
  0%   { transform: translate(0, 0) rotate(-4deg); }
  18%  { transform: translate(-16px, -12px) rotate(-12deg); }
  36%  { transform: translate(-28px, -2px) rotate(-2deg); }
  54%  { transform: translate(-14px, 8px) rotate(8deg); }
  72%  { transform: translate(-4px, -16px) rotate(-6deg); }
  100% { transform: translate(0, 0) rotate(-4deg); }
}
@keyframes wing-buzz { to { transform: scaleY(.3); } }

.critter--ladybird { width: 20px; right: 14px; bottom: -3px; animation: ladybird-walk 11s ease-in-out infinite; }
.critter--ladybird .legs { animation: legs-wiggle .35s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 0; }
@keyframes ladybird-walk {
  0%   { transform: translateX(-34px) scaleX(1); }
  44%  { transform: translateX(0) scaleX(1); }
  50%  { transform: translateX(0) scaleX(-1); }
  94%  { transform: translateX(-34px) scaleX(-1); }
  100% { transform: translateX(-34px) scaleX(1); }
}
@keyframes legs-wiggle { from { transform: skewX(-12deg); } to { transform: skewX(12deg); } }

.critter--butterfly { width: 22px; right: 8px; bottom: 64px; animation: butterfly-drift 7s ease-in-out infinite; }
.critter--butterfly .wings-x { transform-box: fill-box; transform-origin: center; animation: wing-flap .22s ease-in-out infinite alternate; }
@keyframes butterfly-drift {
  0%, 100% { transform: translate(0, 0) rotate(-6deg); }
  25%      { transform: translate(-22px, -14px) rotate(8deg); }
  50%      { transform: translate(-34px, 4px) rotate(-10deg); }
  75%      { transform: translate(-12px, 12px) rotate(6deg); }
}
@keyframes wing-flap { to { transform: scaleX(.25); } }

.critter--leaf { width: 20px; right: -2px; top: -12px; opacity: 0; animation: leaf-twirl 7.5s ease-in infinite; }
@keyframes leaf-twirl {
  0%   { opacity: 0; transform: translate(0, -6px) rotate(0deg); }
  10%  { opacity: 1; }
  45%  { transform: translate(-12px, 70px) rotate(150deg); }
  80%  { opacity: 1; transform: translate(4px, 140px) rotate(300deg); }
  100% { opacity: 0; transform: translate(0, 150px) rotate(330deg); }
}

/* every drink moves: bubbles rising in cold drinks, steam over hot ones */
.drink-fx { position: absolute; pointer-events: none; }
.drink-fx--bubbles { overflow: hidden; border-radius: 0 0 40% 40%; }
.drink-fx--bubbles i {
  position: absolute; bottom: -6px;
  width: var(--s); height: var(--s);
  border: 1.2px solid rgba(42, 37, 33, .55); border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  animation: bubble-rise var(--dur) ease-in var(--d) infinite;
}
@keyframes bubble-rise {
  0%   { transform: translate(0, 0); opacity: 0; }
  15%  { opacity: 1; }
  60%  { transform: translate(2px, -60%) ; }
  100% { transform: translate(-2px, -900%); opacity: 0; }
}
.drink-fx--steam { color: var(--ink); }
.drink-fx--steam .wisps { width: 100%; height: 100%; display: block; }
.drink-fx--steam .wisps path { stroke-width: 1.6; }

/* locations: coming soon */
.places.places--soon { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
.place--soon { text-align: center; }
.place--soon .place__status { color: var(--red); }
.place__soon { margin: 12px auto 18px; max-width: 380px; }
.place--soon .link-underline { align-items: center; }

/* the sitting drawing has a smaller coordinate system, so it gets a proportionally smaller lift and rise */
.pancho-sit .hm-brow { animation-name: hm-brow-sm; }
.pancho-sit .hm-steam path { animation-name: hm-steam-sm; }
@keyframes hm-brow-sm { 0%, 38%, 62%, 100% { transform: translateY(0); } 45%, 55% { transform: translateY(-18px); } }
@keyframes hm-steam-sm {
  0%   { transform: translateY(26px) scaleY(.7); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(-60px) scaleY(1.15); opacity: 0; }
}
@keyframes hm-steam {
  0%   { transform: translateY(50px) scaleY(.7); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(-110px) scaleY(1.15); opacity: 0; }
}

/* ---------- Rising heat on hot coffee (shared) ----------
   Paths use pathLength="1" and are drawn bottom-up; a short dash travels up each one. */
.wisps { overflow: visible; }
.wisps path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: .42 1;
  stroke-dashoffset: .42;
  opacity: 0;
  animation: wisp 2.8s ease-in-out infinite;
}
.wisps path:nth-child(2) { animation-delay: -.95s; }
.wisps path:nth-child(3) { animation-delay: -1.9s; }
@keyframes wisp {
  0%   { stroke-dashoffset: .42; opacity: 0; }
  20%  { opacity: .9; }
  70%  { opacity: .6; }
  100% { stroke-dashoffset: -1;  opacity: 0; }
}
.feature__icon .wisps path { stroke-width: 2.2; }
.drink__steam {
  position: absolute;
  top: -34px; left: calc(50% - 26px);
  width: 40px; height: 60px;
  color: var(--ink);
  pointer-events: none;
}
.drink__steam path { stroke-width: 1.6; }
.story__art figcaption { font-size: 17px; color: var(--ink-muted); transform: rotate(-3deg); }
.story__copy { max-width: 560px; }
.story__copy p { margin-top: 14px; font-size: 20px; line-height: 1.55; }
.section-title--left { text-align: left; }
.story__rule { width: 108px; height: 6px; margin-top: 6px; }
.story__sign {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-size: 22px !important;
}
.story__paw { width: 26px; height: 26px; transform: rotate(14deg); }

/* ---------- Journal ---------- */
.journal { padding: 30px 0 56px; }
.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 44px 40px 0;
}
.post {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 22px;
  border: 1.5px solid var(--ink);
  border-radius: var(--wobbly);
  background: var(--paper-light);
  transition: transform .3s, box-shadow .3s;
}
.post:nth-child(2) { border-radius: 14px 225px 14px 255px / 255px 14px 225px 14px; }
.post:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: 5px 6px 0 var(--rule); }
.post__meta { font-size: 16px; color: var(--red); letter-spacing: 0.04em; }
.post__title { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.25; margin-top: 8px; }
/* whole card is clickable */
.post__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post__excerpt { font-size: 18px; color: var(--ink-soft); margin-top: 10px; flex: 1; }
.post__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}
.post__more svg { width: 24px; height: 12px; transition: transform .25s; }
.post:hover .post__more svg { transform: translateX(5px); }

/* ---------- Visit ---------- */
.visit { padding: 30px 0 56px; }
.places {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  max-width: 860px;
  margin: 44px auto 0;
}
.place {
  padding: 28px 32px 26px;
  border: 1.5px dashed var(--rule);
  border-radius: 18px;
}
.place__name { font-family: var(--font-display); font-weight: 400; font-size: 26px; letter-spacing: 0.08em; text-transform: uppercase; }
.place__status { font-size: 16px; color: var(--ink-muted); min-height: 24px; }
.place__status.is-open { color: var(--matcha); }
.place address { margin-top: 12px; font-size: 19px; line-height: 1.4; }
.hours { width: 100%; margin: 16px 0 20px; border-collapse: collapse; font-size: 18px; }
.hours th { text-align: left; font-weight: 400; color: var(--ink-muted); padding: 4px 0; }
.hours td { text-align: right; padding: 4px 0; }
.hours tr + tr { border-top: 1px dotted var(--rule); }
.hours tr.is-today th,
.hours tr.is-today td { color: var(--red); }
.hours tr.is-today th::after { content: " · today"; }

/* ---------- Club ---------- */
.club {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding: 64px 70px 72px;
}
.stamp-card {
  justify-self: center;
  width: 100%;
  max-width: 420px;
  padding: 24px 26px 18px;
  background: var(--paper-light);
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  box-shadow: 6px 7px 0 var(--rule);
  transform: rotate(-2deg);
  transition: transform .4s;
}
.stamp-card:hover { transform: rotate(0); }
.stamp-card__head { display: flex; align-items: center; gap: 14px; }
.stamp-card__head img { width: 44px; }
.stamp-card__brand { font-size: 22px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); line-height: 1.1; }
.stamp-card__hint { font-size: 16px; color: var(--ink-muted); }
.stamps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 20px 0 14px;
}
.stamp {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 1.5px dashed var(--rule);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-muted);
  font-size: 16px;
  cursor: default;
  transition: border-color .2s, background-color .2s, transform .2s;
}
.stamp:not([disabled]) { cursor: pointer; border-color: var(--red); color: var(--red); }
.stamp:not([disabled]):hover { background: rgba(155, 31, 22, .07); transform: scale(1.06); }
.stamp.is-free { border-style: solid; border-color: var(--red); color: var(--red); }
.stamp.is-stamped { border: 1.5px solid var(--red); color: var(--red); }
.stamp svg { width: 62%; height: 62%; transform: rotate(-12deg); }
.stamp.is-new svg { animation: stamp-in .45s cubic-bezier(.2, 1.6, .4, 1); }
.stamp-card__foot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.stamp-card__count { font-size: 16px; color: var(--ink-soft); }
.stamp-card.is-complete .stamp-card__count { color: var(--red); }
.stamp-card__reset {
  flex: none;
  padding: 0;
  background: none; border: 0;
  font-size: 15px;
  color: var(--ink-muted);
  text-decoration: underline dotted;
  cursor: pointer;
}

.club__copy p { margin-top: 14px; font-size: 20px; line-height: 1.55; max-width: 480px; }
.signup {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  max-width: 460px;
}
.signup input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 16px;
  font-size: 19px;
  background: var(--paper-light);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
}
.signup input::placeholder { color: var(--ink-muted); opacity: .7; }
.signup input[aria-invalid="true"] { border-color: var(--red); }
.signup input:focus-visible { outline-offset: 2px; }
.signup__msg { margin-top: 10px; min-height: 28px; font-size: 17px !important; }
.signup__msg.is-error { color: var(--red); }
.signup__msg.is-ok { color: var(--matcha); }

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 62px 28px 44px;
  border-top: 1px solid var(--rule);
  font-size: 17px;
  letter-spacing: 0.04em;
}
.footer-nav { display: flex; gap: 28px; text-transform: uppercase; font-size: 15px; letter-spacing: 0.1em; }
.footer-nav a:hover { color: var(--red); }
.socials { display: flex; gap: 34px; }
.socials a { display: block; width: 27px; height: 27px; color: var(--red); transition: transform .2s; }
.socials a:hover { transform: translateY(-3px) rotate(-6deg); }
.socials svg { width: 100%; height: 100%; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 25;
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--red);
  color: var(--paper-light);
  box-shadow: 3px 3px 0 var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s, visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }
.to-top svg { width: 24px; height: 24px; }

/* ---------- Motion ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .draw { clip-path: inset(0 100% 0 0); transition: clip-path 1s ease .25s; }
.js .draw.is-in { clip-path: inset(0 0 0 0); }

@keyframes beat {
  0%, 60%, 100% { transform: scale(1); }
  30% { transform: scale(1.15); }
  45% { transform: scale(.96); }
}
@keyframes steam {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(-3px); opacity: .55; }
}
@keyframes twinkle {
  50% { transform: rotate(20deg) scale(1.15); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(111, 125, 58, .45); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(111, 125, 58, 0); }
}
@keyframes stamp-in {
  0% { transform: scale(2.2) rotate(-30deg); opacity: 0; }
  100% { transform: scale(1) rotate(-12deg); opacity: 1; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1100px) {
  .nav { gap: 32px; margin-left: 40px; }
  .hero { grid-template-columns: 1fr 1.25fr; }
  .hero__stage { width: 100%; }
  .hero__heart { display: none; }
  .hero__copy { padding-left: 40px; }
  .drinks { padding: 0; }
  .features { padding-left: 0; }
  .feature + .feature { padding-left: 32px; }
  .story { grid-template-columns: 260px 1fr; padding-inline: 20px; }
  .posts { margin-inline: 0; gap: 22px; }
  .club { padding-inline: 10px; gap: 40px; }
  .site-footer { padding-inline: 12px; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 90px; }
  .header-actions .btn { display: none; }
  .menu-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%; left: 16px; right: 16px;
    flex-direction: column;
    gap: 6px;
    margin: 6px 0 0;
    padding: 18px 24px 22px;
    background: var(--paper-light);
    border: 1.5px solid var(--ink);
    border-radius: 16px;
    box-shadow: 5px 6px 0 var(--rule);
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav a { padding: 8px 0; }
  .nav a::after { bottom: 4px; }
  .nav .nav__cta { display: block; color: var(--red); }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .site-header__inner { padding: 16px 22px 8px; }

  .hero { grid-template-columns: 1fr; }
  .hero__copy { padding: 40px 8px 0; }
  .hero__title { font-size: 46px; line-height: 54px; }
  .hero__stage { margin: 24px auto 0; }

  .drinks { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .drink:nth-child(3) { border-left: 0; }

  .features { grid-template-columns: 1fr; gap: 28px; padding: 36px 8px; }
  .feature, .feature + .feature { border-left: 0; padding-left: 0; }

  .story { grid-template-columns: 1fr; gap: 48px; padding: 64px 8px 56px; }
  .story__copy { justify-self: center; }
  .posts { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .places { grid-template-columns: 1fr; max-width: 520px; }
  .club { grid-template-columns: 1fr; padding: 56px 8px; }
  .club__copy { order: -1; }

  .site-footer { flex-direction: column-reverse; gap: 18px; padding: 22px 0 28px; }
}

@media (max-width: 480px) {
  .page { padding: 0 16px; }
  .site-header__inner { padding-inline: 16px; }
  .brand__dog { width: 56px; }
  .brand__name { font-size: 34px; }
  .brand__sub { font-size: 15px; }
  .is-scrolled .brand__dog { width: 40px; }
  .is-scrolled .brand__name { font-size: 28px; }
  .hero__title { font-size: 38px; line-height: 46px; }
  .hero__ctas { gap: 28px; }
  .drinks { grid-template-columns: 1fr; }
  .drink + .drink { border-left: 0; }
  .section-title { font-size: 30px; }
  .place { padding: 22px 20px; }
  .stamp-card { padding: 20px 18px 16px; }
  .stamps { gap: 9px; }
  .signup { flex-direction: column; }
  .footer-nav { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .draw { clip-path: none; }
  .wisps path { opacity: .45; stroke-dasharray: none; }
}

/* All display type is set in caps, like the hand-lettered mockup */
.btn, .brand__name, .brand__sub, .nav, .hero__title, .link-underline,
.section-title, .drink__name, .feature__title, .post__title { text-transform: uppercase; }


/* ==========================================================
   Concept 03 brand layer: the Pancho logo and illustrations.
   Fonts and background stay as the original hand-drawn design.
   ========================================================== */
/* header logo: the original hand-drawn Pancho and lettering (see the header rules above) */

/* ---------- Pancho poses from the brand illustrations ---------- */
.menu__sign { display: flex; align-items: center; gap: 18px; margin-top: 38px; }
.menu__sign .menu__tagline { margin-top: 0; }
.menu__pancho { width: 92px; transform-origin: 50% 90%; animation: peek 6s ease-in-out infinite; }
@keyframes peek { 0%, 70%, 100% { transform: translateY(0) rotate(0); } 78% { transform: translateY(-6px) rotate(-3deg); } 86% { transform: translateY(0) rotate(2deg); } }

.journal { position: relative; }
.journal__pancho {
  position: absolute; right: 4%; top: 10px;
  width: 150px;
  animation: skate 7s ease-in-out infinite;
}
@keyframes skate {
  0%, 100% { transform: translateX(0) rotate(0); }
  25%      { transform: translateX(-26px) rotate(-1.5deg); }
  50%      { transform: translateX(-8px) rotate(.5deg); }
  75%      { transform: translateX(-34px) rotate(-1deg); }
}

.club { position: relative; padding-bottom: 200px; }
.club__pancho {
  position: absolute; right: 4%; bottom: -4px;
  width: 170px;
  pointer-events: none;
}
@keyframes nose-balance { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-2.5deg); } 65% { transform: rotate(2deg); } }

@media (max-width: 1100px) {
  .journal__pancho { width: 120px; right: 0; }
  .club__pancho { width: 130px; }
}
@media (max-width: 860px) {
  .journal__pancho { position: static; display: block; margin: 0 auto 10px; width: 130px; }
  .club { padding-bottom: 40px; }
  .club__pancho { position: static; display: block; width: 140px; margin: 10px auto 0; }
}
