/* ==========================================================================
   Home page — the reference implementation.
   ========================================================================== */

/* ---------- 1. Hero: the shop window ---------- */
.hero { padding-block: clamp(28px, 2vw + 16px, 56px) clamp(8px, 2vw, 24px); overflow: hidden; }
.hero__grid { display: grid; gap: clamp(36px, 5vw, 80px); align-items: center; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6.2fr); } }
.hero__text { display: grid; gap: var(--s-5); justify-items: start; }
.hero__title { font-size: clamp(2.75rem, 1.4rem + 4vw, 4.75rem); }
.hero__lede { max-width: 46ch; }
.hero__from { font-size: var(--fs-small); color: var(--c-ink-soft); }
.hero__from strong { color: var(--c-ink); font-weight: 800; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero__assure { margin-top: var(--s-2); padding-top: var(--s-5); border-top: 1px solid var(--c-line); width: 100%; max-width: 480px; }

.storefront { position: relative; width: 100%; max-width: 700px; justify-self: center; }
.storefront__awning { margin-inline: -14px; position: relative; z-index: 3; }
.storefront__window {
  position: relative;
  aspect-ratio: 1 / 0.72;
  background:
    linear-gradient(112deg, transparent 58%, rgba(255, 255, 255, 0.38) 58.2%, rgba(255, 255, 255, 0.38) 63%, transparent 63.2%, transparent 66%, rgba(255, 255, 255, 0.22) 66.2%, rgba(255, 255, 255, 0.22) 68%, transparent 68.2%),
    radial-gradient(ellipse 80% 70% at 50% 30%, #FFF3F0, var(--c-blush) 70%);
  border: 12px solid var(--c-shopfront);
  border-top: 0;
  border-bottom: 0;
  overflow: hidden;
  z-index: 1;
}
.storefront__counter {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; gap: var(--s-4);
  padding: 14px 22px;
  background: var(--c-shopfront);
  color: var(--c-on-dark-soft);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  box-shadow: 0 18px 30px -18px rgba(15, 77, 74, 0.55);
}
.storefront__counter span:last-child { font-family: var(--font-display); text-transform: none; letter-spacing: 0.02em; font-size: 0.95rem; font-weight: 400; color: var(--c-paper); }
.storefront__hint {
  position: absolute; left: 12px; bottom: 12px; z-index: 4;
  font-size: var(--fs-fine); font-weight: 700; color: var(--c-ink-soft);
  background: rgba(255, 250, 246, 0.85); padding: 4px 10px; border-radius: var(--r-pill);
}
@media (hover: hover) { .storefront__hint { display: none; } }
/* Stock photos stand in for the dog and flower: say so, quietly, inside the window. */
.storefront__illus {
  position: absolute; right: 12px; bottom: 12px; z-index: 4;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: rgba(255, 250, 246, 0.9); color: var(--c-ink);
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.3; white-space: nowrap;
}
@media (max-width: 480px) { .storefront__illus { font-size: 0.625rem; padding: 3px 8px; right: 8px; bottom: 8px; } }
.parlour__illus { margin-top: var(--s-3); text-align: center; }

.storefront__hangs { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.hang {
  --size: 30%;
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--size);
  display: flex; flex-direction: column; align-items: center;
  animation: float var(--float-duration, 6s) ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
  --float-distance: 9px;
  --float-tilt: -1.2deg;
}
/* the string: runs from the knot to below the counter (clipped by the window) */
.hang::after {
  content: ""; position: absolute; left: 50%; top: calc(100% - 2px);
  width: 1.5px; height: 700px; margin-left: -0.75px;
  background: linear-gradient(180deg, rgba(43, 27, 36, 0.7), rgba(43, 27, 36, 0.45));
  transform-origin: top center; transform: rotate(var(--string-tilt, 0deg));
  z-index: -1;
}
.hang--bird { --x: 4%; --y: 8%; --size: 38%; --string-tilt: 4deg; z-index: 2; }
.hang--dog { --x: 58%; --y: 4%; --size: 33%; --string-tilt: -6deg; z-index: 1; --float-duration: 6.8s; }
.hang--flower { --x: 37%; --y: 33%; --size: 27%; --string-tilt: -1deg; z-index: 3; --float-duration: 5.4s; }

.hang__balloon {
  position: relative; display: block; width: 100%;
  aspect-ratio: 1 / 1.14;
  border-radius: 50% 50% 50% 50% / 44% 44% 56% 56%;
  overflow: hidden;
  background: var(--c-white);
  box-shadow: 0 14px 28px -10px rgba(43, 27, 36, 0.35);
  transition: transform var(--dur-3) var(--ease-spring), box-shadow var(--dur-3) var(--ease-out);
  cursor: pointer;
}
.hang__balloon img { width: 100%; height: 100%; object-fit: cover; }
.hang__balloon::after {
  /* latex sheen + shading */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(ellipse 22% 14% at 30% 20%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 100%),
    radial-gradient(ellipse 70% 60% at 35% 30%, rgba(255, 255, 255, 0.14), transparent 70%);
  box-shadow: inset -14px -20px 34px rgba(43, 27, 36, 0.28), inset 6px 8px 16px rgba(255, 255, 255, 0.25);
}
.hang__balloon:hover { transform: translateY(-8px) scale(1.035) rotate(-1.5deg); box-shadow: 0 22px 36px -12px rgba(43, 27, 36, 0.38); }
.hang__balloon:active { transform: scale(0.96, 1.04); }
.hang__balloon:focus-visible { outline-offset: 6px; border-radius: 50% 50% 50% 50% / 44% 44% 56% 56%; }
.hang__knot {
  width: 16px; height: 11px; margin-top: -3px;
  background: var(--knot, var(--c-raspberry));
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  border-radius: 2px;
}
.hang__tag {
  position: absolute; top: calc(100% + 34px); left: 50%; width: max-content;
  margin-left: -14px;
  transform: rotate(-9deg); transform-origin: 14px 50%;
  z-index: 2;
  transition: transform var(--dur-3) var(--ease-spring);
}
.hang--dog .hang__tag { transform: rotate(8deg); top: calc(100% + 58px); }
.hang--flower .hang__tag { top: calc(100% + 22px); transform: rotate(-4deg); }
.hang:hover .hang__tag { transform: rotate(3deg); }
.hang--dog:hover .hang__tag { transform: rotate(-3deg); }

@media (max-width: 979px) {
  /* On narrower screens the window sits right under the headline, before the sales copy. */
  .hero__grid { gap: 0; }
  .hero__text { display: contents; }
  .hero__text > * { margin-bottom: var(--s-5); }
  .hero__text > .eyebrow { order: 0; margin-bottom: var(--s-3); }
  .hero__title { order: 1; }
  .storefront { order: 2; max-width: 620px; margin: var(--s-2) auto var(--s-7); }
  .hero__lede { order: 3; }
  .hero__from { order: 4; }
  .hero__ctas { order: 5; }
  .hero__assure { order: 6; margin-bottom: 0; }
}
@media (max-width: 560px) {
  .storefront__awning { --awning-stripe: 26px; --awning-h: 40px; margin-inline: -6px; }
  .storefront__window { border-width: 8px; aspect-ratio: 1 / 0.92; }
  .hang--bird { --x: 3%; --y: 6%; --size: 40%; }
  .hang--dog { --x: 57%; --y: 3%; --size: 37%; }
  .hang--flower { --x: 34%; --y: 36%; --size: 30%; }
  .hang__tag { padding: 0.35em 0.7em 0.35em 1.55em; gap: 0.4em; }
  .hang__tag .tag__name { display: none; }
  .hang__tag .tag__price { font-size: 1.05rem; }
  .hang--dog .hang__tag { top: calc(100% + 40px); }
  .storefront__counter { padding: 10px 14px; font-size: 0.6rem; letter-spacing: 0.1em; }
  .storefront__counter span:last-child { font-size: 0.85rem; }
  .hero__ctas .btn { flex: 1 1 auto; }
}

/* ---------- 2. Price list ---------- */
.pricelist__grid { display: grid; gap: clamp(32px, 4vw, 72px); align-items: start; }
@media (min-width: 900px) { .pricelist__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.pricelist__preview { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: var(--s-4); }
@media (max-width: 899px) { .pricelist__preview { display: none; } }
.pricelist__plate { aspect-ratio: 5 / 5.4; transition: background-color var(--dur-3) var(--ease-out); }
.pricelist__plate img { transition: opacity 0.28s ease, transform 0.6s var(--ease-out); }
.pricelist__plate.is-swapping img { opacity: 0; transform: scale(0.97); }
.pricelist__caption { display: grid; gap: var(--s-2); }
.pricelist__caption-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); }
.pricelist__price { font-family: var(--font-display); font-size: 1.6rem; }

.menu-board { display: grid; gap: clamp(28px, 3vw, 44px); }
.menu-group__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); padding-bottom: var(--s-3); border-bottom: 1.5px solid var(--c-ink); }
.menu-group__title { font-size: var(--fs-3); }
.menu-group__blurb { font-size: var(--fs-fine); color: var(--c-ink-soft); text-align: right; max-width: 30ch; }
.menu-list { list-style: none; padding: 0; margin: 0; }
.menu-row {
  position: relative;
  display: flex; align-items: center; gap: var(--s-3);
  padding: 10px 0;
  border-bottom: 1px solid var(--c-line);
}
.menu-row__thumb { display: none; width: 52px; flex: none; border-radius: 50%; }
.menu-row__name {
  display: inline-flex; align-items: center; gap: 0.55em;
  padding: 6px 0; text-align: left;
  font-size: 1.125rem; font-weight: 700; color: var(--c-ink);
  transition: color var(--dur-1);
}
.menu-row__name .badge { font-size: 0.66rem; }
.menu-row__leader { flex: 1; min-width: 24px; align-self: center; margin-top: 8px; border-bottom: 2px dotted #D9C6BD; }
.menu-row__price { font-family: var(--font-display); font-size: 1.4rem; line-height: 1; min-width: 2.2ch; text-align: right; }
.menu-row__add {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--c-ink); color: var(--c-ink);
  transition: background var(--dur-1), color var(--dur-1), border-color var(--dur-1), transform var(--dur-2) var(--ease-spring);
}
.menu-row__add .icon { width: 18px; height: 18px; stroke-width: 2.2; }
.menu-row__add:hover { background: var(--c-raspberry); border-color: var(--c-raspberry); color: var(--c-white); transform: rotate(90deg); }
.menu-row::before {
  content: ""; position: absolute; left: -22px; top: 50%; width: 10px; height: 13px; margin-top: -7px;
  background: var(--c-raspberry);
  border-radius: 50% 50% 50% 50% / 44% 44% 56% 56%;
  transform: scale(0); transition: transform var(--dur-2) var(--ease-spring);
}
.menu-row.is-active::before { transform: scale(1); }
.menu-row.is-active .menu-row__name { color: var(--c-raspberry); }

.menu-set {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-3) var(--s-5); align-items: center;
  padding: var(--s-5); border-radius: var(--r-md);
  background: var(--c-white); box-shadow: inset 0 0 0 1px var(--c-line);
}
.menu-set__name { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.2; margin-top: 4px; }
.menu-set__thumbs { display: flex; margin-top: var(--s-3); }
.menu-set__thumbs .plate { width: 44px; border-radius: 50%; box-shadow: 0 0 0 3px var(--c-white); }
.menu-set__thumbs .plate + .plate { margin-left: -10px; }
.menu-set__buy { display: grid; justify-items: end; gap: var(--s-2); }
.menu-set__buy .menu-row__price { font-size: 1.6rem; }

@media (max-width: 899px) {
  .menu-row__name { flex-wrap: wrap; row-gap: 2px; }
  .menu-row__thumb { display: block; }
  .menu-row::before { display: none; }
  .menu-row__name { font-size: 1.05rem; }
  .menu-group__blurb { display: none; }
}
@media (max-width: 420px) {
  .menu-row { gap: 10px; }
  .menu-row__thumb { width: 44px; }
  .menu-row__name { font-size: 1rem; }
  .menu-row__price { font-size: 1.2rem; }
  .menu-row__leader { min-width: 10px; }
  .menu-set { grid-template-columns: 1fr; }
  .menu-set__buy { justify-items: start; grid-auto-flow: column; align-items: center; justify-content: space-between; }
}

/* ---------- 3. Workbench ---------- */
.specimen { display: grid; gap: var(--s-4); }
.specimen__frame { position: relative; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-2); }
.specimen__frame > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 58%; }
.pin {
  position: absolute; left: var(--x); top: var(--y);
  width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  background: var(--c-paper); box-shadow: 0 0 0 4px rgba(255, 250, 246, 0.45), 0 2px 6px rgba(0, 0, 0, 0.3);
}
.pin::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--c-raspberry); }
.pin__label {
  position: absolute; left: 26px; top: 50%; transform: translateY(-50%);
  white-space: nowrap;
  padding: 6px 12px; border-radius: var(--r-pill);
  background: rgba(255, 250, 246, 0.95); color: var(--c-ink);
  font-size: var(--fs-fine); font-weight: 700;
  box-shadow: 0 4px 14px rgba(43, 27, 36, 0.14);
}
.pin__label--left { left: auto; right: 26px; }
.pin__label::before { content: ""; position: absolute; top: 50%; width: 12px; height: 1.5px; background: rgba(255, 250, 246, 0.95); }
.pin__label:not(.pin__label--left)::before { right: 100%; }
.pin__label--left::before { left: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .pin { animation: pin-pulse 2.8s ease-in-out infinite; }
  .pin:nth-of-type(2) { animation-delay: -0.9s; }
  .pin:nth-of-type(3) { animation-delay: -1.8s; }
}
@keyframes pin-pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(255, 250, 246, 0.45), 0 2px 6px rgba(0, 0, 0, 0.3); } 50% { box-shadow: 0 0 0 9px rgba(255, 250, 246, 0.2), 0 2px 6px rgba(0, 0, 0, 0.3); } }
.specimen__notes { display: grid; gap: var(--s-2); }
.specimen__list { list-style: none; padding: 0; display: none; gap: 6px; font-size: var(--fs-small); }
.specimen__list li { position: relative; padding-left: 20px; }
.specimen__list li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--c-raspberry); }
@media (max-width: 760px) {
  .pin__label { display: none; }
  .specimen__list { display: grid; }
}
.workbench__text p:not(.eyebrow) { max-width: 46ch; }
@media (max-width: 899px) { .workbench .specimen { order: 2; } }
.workbench__founder { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--s-4); align-items: end; margin-top: var(--s-6) !important; padding-top: var(--s-5); border-top: 1px solid rgba(43, 27, 36, 0.12); }
.workbench__founder img { width: 96px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--r-sm); }

/* ---------- 4. Parlour ---------- */
.parlour__media { position: relative; max-width: 440px; justify-self: center; width: 100%; }
.parlour__media img { width: 100%; aspect-ratio: 4 / 5.2; object-fit: cover; object-position: 50% 40%; }
.parlour__media::after {
  /* thin inset line echoing a painted window frame */
  content: ""; position: absolute; inset: 10px; pointer-events: none;
  border: 1.5px solid rgba(255, 250, 246, 0.45);
  border-radius: 50% 50% 8px 8px / 35% 35% 8px 8px;
}
.parlour__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2) var(--s-3); }
.parlour__per { color: var(--c-on-dark-soft); font-weight: 600; }
.parlour__price .badge { align-self: center; }
.parlour__form { display: grid; gap: var(--s-3); max-width: 480px; padding-top: var(--s-5); border-top: 1px solid rgba(255, 250, 246, 0.18); margin-top: var(--s-6) !important; }
.parlour__form .field__label { color: var(--c-paper); }
.parlour__form .input { border-color: transparent; color-scheme: light; }
@media (max-width: 420px) { .parlour__form .input-group { flex-direction: column; } }
@media (max-width: 899px) { .parlour__media { max-width: 360px; } .parlour__media img { aspect-ratio: 4 / 4.4; } }

/* ---------- 5. Club punch card ---------- */
.punch { --stub: 11rem; max-width: 640px; width: 100%; justify-self: center; box-shadow: none; }
.punch__main { padding: clamp(20px, 3vw, 32px); gap: var(--s-5); }
.punch__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-3); }
.punch__label { color: var(--c-ink-soft); }
.punch__tiers { background: var(--c-paper); }
.punch__tiers span { padding: 0.45em 0.9em; }
.punch__body { display: grid; gap: var(--s-4); }
.punch__tier { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.5em; font-family: var(--font-display); font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); line-height: 1; }
.punch__price { font-size: 0.55em; color: var(--c-ink-soft); }
.punch__holes { list-style: none; padding: 0; display: flex; gap: 14px; }
.punch__holes li {
  width: 42px; height: 48px;
  border-radius: 50% 50% 50% 50% / 44% 44% 56% 56%;
  border: 2px dashed var(--c-line);
  position: relative;
}
.punch__holes li.is-on {
  border: 0;
  background: radial-gradient(ellipse 26% 18% at 32% 26%, rgba(255, 255, 255, 0.75), transparent 100%), var(--hole, var(--c-raspberry));
  box-shadow: inset -5px -7px 12px rgba(43, 27, 36, 0.18);
  animation: inflate 0.55s var(--ease-spring) both;
  animation-delay: calc(var(--i, 0) * 90ms);
}
.punch__holes li.is-on::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 10px; height: 7px; margin-left: -5px; background: var(--hole, var(--c-raspberry)); clip-path: polygon(50% 0, 100% 100%, 0 100%); filter: brightness(0.85); }
@keyframes inflate { 0% { transform: scale(0.2, 0.1); } 60% { transform: scale(1.12, 0.94); } 100% { transform: none; } }
.punch__stub { align-items: stretch; text-align: center; }
.punch__stub .fine { text-align: center; }
@media (max-width: 559px) {
  .punch { --stub: 5.5rem; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto var(--stub);
    -webkit-mask:
      radial-gradient(circle var(--notch) at 0 calc(100% - var(--stub)), #0000 98%, #000) left / 51% 100% no-repeat,
      radial-gradient(circle var(--notch) at 100% calc(100% - var(--stub)), #0000 98%, #000) right / 51% 100% no-repeat;
    mask:
      radial-gradient(circle var(--notch) at 0 calc(100% - var(--stub)), #0000 98%, #000) left / 51% 100% no-repeat,
      radial-gradient(circle var(--notch) at 100% calc(100% - var(--stub)), #0000 98%, #000) right / 51% 100% no-repeat;
  }
  .punch__stub { border-left: 0; border-top: 2px dashed var(--c-line); flex-direction: row; align-items: center; justify-content: space-between; }
  .punch__stub .btn { flex: 1; }
}

/* ---------- 6. Overheard ---------- */
.overheard__title { margin-bottom: clamp(28px, 3vw, 48px); }
.overheard__grid { display: grid; gap: clamp(40px, 5vw, 80px); align-items: end; }
@media (min-width: 900px) { .overheard__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.quote { position: relative; display: grid; gap: var(--s-5); }
.quote blockquote { margin: 0; }
.quote blockquote p { font-family: var(--font-display); line-height: 1.22; letter-spacing: -0.01em; text-wrap: balance; }
.quote blockquote p::before { content: "\201C"; display: block; height: 0.62em; font-size: 2.4em; line-height: 1; color: var(--c-raspberry); }
.quote--lily blockquote p { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); }
.quote--tom blockquote p { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.2rem); }
.quote--tom { padding: clamp(24px, 3vw, 40px); border-radius: var(--r-lg); background: var(--c-butter); }
.quote__by { display: flex; align-items: center; gap: var(--s-3); font-weight: 700; }
.quote__by img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.quote__by::before { content: ""; width: 24px; height: 1.5px; background: var(--c-ink); }
.quote__by:has(img)::before { display: none; }
.quote__wink { justify-self: start; }

/* ---------- 7. Back room ---------- */
.popfield { position: relative; height: clamp(280px, 34vw, 420px); }
.pop-balloon {
  position: absolute; left: var(--x); top: var(--y);
  width: calc(var(--w, 64px) * var(--pop-scale, 1.3));
  color: var(--c);
  animation: float var(--float-duration, 5s) ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
  --float-distance: 12px;
  transition: transform var(--dur-2) var(--ease-spring), opacity var(--dur-2);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pop-balloon svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 10px 12px rgba(43, 27, 36, 0.14)); transition: transform var(--dur-2) var(--ease-spring); }
.pop-balloon:hover svg { transform: scale(1.08) rotate(-4deg); }
.pop-balloon:focus-visible { outline-offset: 2px; border-radius: 40%; }
.pop-balloon.is-popped { pointer-events: none; animation: none; opacity: 0; transform: scale(1.35); }
.pop-balloon.is-back { animation: inflate 0.6s var(--ease-spring) both; }

@media (max-width: 899px) {
  .backroom .split { gap: 24px; }
  .popfield { height: 250px; --pop-scale: 0.95; }
}
