/* ---------------------------------------------------------
   Tokens
--------------------------------------------------------- */
:root {
  --cream: #F7F5F0;
  --card: #FBF8F2;
  --stone: #E4DFD5;
  --stone-2: #EDE8DE;
  --ink: #1A1A1A;
  --ink-70: rgba(26, 26, 26, .7);
  --ink-62: rgba(26, 26, 26, .62);
  --ink-25: rgba(26, 26, 26, .25);
  --ink-14: rgba(26, 26, 26, .14);
  --ink-12: rgba(26, 26, 26, .12);
  --ink-10: rgba(26, 26, 26, .1);

  --brown: #A9744F;
  --green: #597748; /* ~2% darker than the original #5B7A4A -- AA text contrast on cream (was 4.45:1, now 4.64:1) */
  --pink: #E85D9E;
  --orange: #F2994A;
  --yellow: #F2C94C;

  --panel: #1A1A1A;
  --panel-2: #262626;
  --cream-82: rgba(247, 245, 240, .82);
  --cream-70: rgba(247, 245, 240, .7);

  --brand-gradient: linear-gradient(100deg, var(--pink), var(--orange) 55%, var(--yellow));
  --brand-gradient-diag: linear-gradient(135deg, var(--pink), var(--orange) 55%, var(--yellow));

  --font-body: 'Baloo 2', system-ui, -apple-system, sans-serif;
  --font-script: 'Caveat', cursive;
  --font-marker: 'Permanent Marker', cursive;

  --container-w: 1180px;
}

/* ---------------------------------------------------------
   Reset / base
--------------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
/* The rest of the reduced-motion path lives at the end of this file, with
   the motion it answers to. It removes travel and loops but deliberately
   keeps colour/opacity feedback alive -- see "Reduced motion" below. */

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  /* Audited down to 320px with this removed: 4 real overflow sources found
     and fixed at the source (aspect-ratio on an auto-width wrapper, grid
     auto-fit/minmax min-content inflation, nested-flex min-content on
     .footer-nav, bare 1fr instead of minmax(0,1fr) on 3 mobile grids).
     Restored as a safety net only -- it isn't masking anything now. */
  overflow-x: hidden;
}

a { color: var(--ink); text-decoration: none; transition: color 160ms ease; }
a:hover { color: var(--brown); }

img { max-width: 100%; display: block; }

input, button { font-family: var(--font-body); }

::selection { background: var(--yellow); }

/* Baseline focus-visible: every interactive element gets a real,
   on-brand ring sized to its own box, not the browser default. */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 2px;
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding-inline: 32px;
}

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

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.015em; }
h2 { font-size: 48px; line-height: 1.08; }
h3 { font-size: 20px; }

.center { text-align: center; }

.eyebrow {
  font-family: var(--font-marker);
  font-size: 14px;
  letter-spacing: .16em;
  margin: 0 0 12px;
}
.eyebrow-green { color: var(--green); }

.eyebrow-marker {
  font-family: var(--font-marker);
  font-size: 15px;
  letter-spacing: .04em;
  margin: 0 0 12px;
}

.script-line {
  font-family: var(--font-script);
  font-size: 26px;
  color: var(--brown);
  margin: 0 0 18px;
}

.section-intro {
  font-size: 17px;
  line-height: 1.6;
  color: var(--cream-70);
  max-width: 470px;
  margin: 0 0 40px;
}

.btn {
  display: inline-block;
  padding: 17px 46px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: transform 150ms ease, opacity 150ms ease;
}
.btn-brand {
  background: var(--brand-gradient);
  color: var(--ink);
}
.btn-brand:hover { color: var(--ink); opacity: .92; }
.btn:active { transform: scale(0.96); }

.round-btn {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  color: var(--ink);
  transition: transform 150ms ease;
}
.round-btn:active { transform: scale(0.92); }
.round-btn--brand {
  border: none;
  background: var(--brand-gradient);
}

/* ---------------------------------------------------------
   Placeholder photo blocks
   (stand-ins for real photography — swap by replacing the
   .photo div's background with an <img>, or drop an <img>
   inside and set .photo{background:none})
--------------------------------------------------------- */
.photo {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 120px;
  background:
    radial-gradient(circle at 30% 20%, rgba(232, 93, 158, .16), transparent 55%),
    radial-gradient(circle at 80% 85%, rgba(91, 122, 74, .14), transparent 55%),
    linear-gradient(160deg, var(--stone-2), var(--stone));
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1.5px dashed var(--ink-25);
  border-radius: inherit;
  pointer-events: none;
}
.photo::after {
  content: attr(data-caption);
  position: relative;
  max-width: 78%;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-62);
  letter-spacing: .01em;
}
.photo--mono { filter: grayscale(1); }

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo:has(img)::before,
.photo:has(img)::after {
  content: none;
}

/* Intrinsic aspect ratios (source-image ratio), applied to the inner
   .photo div specifically -- it already has width/height:100% (both
   definite once the fixed-height wrapper resolves), so this is inert
   for current layout and only documents intrinsic size. Deliberately
   NOT applied to the outer wrappers (.hero-photo, .menu-photo, etc.):
   those have a fixed height but an auto width, and aspect-ratio there
   actively derives width from height, breaking the fill-container fit. */
.hero-photo .photo,
.menu-photo .photo,
.faq-photo .photo { aspect-ratio: 1200 / 896; }
.about-photo .photo { aspect-ratio: 3 / 4; }
.review-avatar .photo,
.cat-avatar-photo .photo,
.cat-stage-photo .photo { aspect-ratio: 1 / 1; }

/* ---------------------------------------------------------
   Header
--------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 245, 240, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ink-10);
}
.header-row {
  padding-block: 14px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.brand-badge {
  display: block;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  padding: 2px;
  background: var(--brand-gradient-diag);
  flex: none;
}
.brand-badge img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--ink);
  object-fit: cover;
}
.brand-badge--sm { width: 46px; height: 46px; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-title { font-weight: 800; font-size: 19px; letter-spacing: .02em; }
.brand-sub { font-family: var(--font-marker); font-size: 12px; color: var(--brown); letter-spacing: .14em; margin-top: 4px; }

.nav-panel {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-left: auto;
}

.main-nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
  font-weight: 600;
}

.phone-chip {
  font-weight: 700;
  font-size: 15px;
  padding: 9px 18px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  flex: none;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex: none;
  margin-left: auto;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

/* ---------------------------------------------------------
   Hero
--------------------------------------------------------- */
.hero { padding-block: 72px 88px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 64px;
  align-items: center;
}
.hero-copy h1 {
  font-size: 66px;
  line-height: 1.02;
  margin: 0 0 20px;
  text-wrap: pretty;
}
.hero-copy .script-line { font-size: 28px; }
.lede {
  font-size: 18px;
  line-height: 1.55;
  max-width: 460px;
  margin: 0 0 34px;
  color: var(--ink-70);
}
.stat-row {
  display: flex;
  align-items: stretch;
  margin-bottom: 36px;
}
.stat { padding-inline: 30px; }
.stat:first-child { padding-left: 0; }
.stat + .stat { border-left: 1px solid var(--ink-14); }
.stat-num { font-size: 44px; font-weight: 800; line-height: 1; }
.stat-label {
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-62);
  margin-top: 6px;
}

.hero-media { position: relative; }
.hero-photo {
  position: relative;
  height: 520px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--ink);
}
.hero-badge {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--font-marker);
  font-size: 14px;
  letter-spacing: .06em;
}

/* ---------------------------------------------------------
   About
--------------------------------------------------------- */
.about {
  position: relative;
  background: var(--panel);
  color: var(--cream);
  padding-block: 96px 104px;
  overflow: hidden;
}
.about-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.about-ring--1 { top: -160px; right: -120px; width: 520px; height: 520px; border: 1.5px solid rgba(232, 93, 158, .35); }
.about-ring--2 { top: -60px; right: 40px; width: 340px; height: 340px; border: 1.5px solid rgba(242, 201, 76, .28); }
.about-glow {
  position: absolute;
  bottom: -200px; left: -140px;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 153, 74, .16), rgba(242, 153, 74, 0) 70%);
  pointer-events: none;
}
.about-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 64px;
  align-items: start;
}
.about h2 { font-size: 50px; line-height: 1.06; margin: 0 0 14px; max-width: 520px; text-wrap: pretty; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
}
.feature-card {
  background: var(--card);
  color: var(--ink);
  border-radius: 20px;
  padding: 26px 24px;
}
.feature-card svg { display: block; margin-bottom: 16px; }
.feature-card h3 { margin: 0 0 6px; }
.feature-card p { font-size: 14.5px; line-height: 1.5; margin: 0; color: var(--ink-62); }

.about-media { position: relative; }
.about-photo { height: 560px; border-radius: 24px; overflow: hidden; background: var(--panel-2); }
.sticker {
  position: absolute;
  top: 22px; left: -26px;
  transform: rotate(-6deg);
  background: var(--brand-gradient);
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 12px;
  font-family: var(--font-marker);
  font-size: 15px;
}

/* ---------------------------------------------------------
   Cats
--------------------------------------------------------- */
.cats { padding-block: 96px; }
.cats h2 { font-size: 48px; margin: 0 0 12px; }
.cats .script-line { font-size: 26px; margin-bottom: 52px; }

.cats-grid {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) minmax(220px, 300px);
  gap: 34px;
  align-items: stretch;
}

.cat-rail { display: flex; flex-direction: column; gap: 16px; }
.cat-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
}
.cat-avatar-ring {
  display: block;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  padding: 3px;
  background: var(--ink-14);
}
.cat-avatar.is-active .cat-avatar-ring { background: var(--brand-gradient-diag); }
.cat-avatar-ring { transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1); }
.cat-avatar.is-active .cat-avatar-ring { transform: scale(1.06); }
.cat-avatar-photo { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: var(--ink); }
.cat-avatar-name { font-size: 14px; font-weight: 700; color: var(--ink); }

.cat-stage { position: relative; min-height: 470px; }
.cat-stage-ring { position: absolute; border-radius: 46% 54% 40% 60%; pointer-events: none; }
.cat-stage-ring--1 { inset: 14px 30px 26px 10px; border: 2.5px dashed rgba(169, 116, 79, .5); transform: rotate(-4deg); }
.cat-stage-ring--2 { inset: 34px 8px 6px 34px; border: 2px dashed rgba(91, 122, 74, .45); border-radius: 58% 42% 60% 40%; transform: rotate(5deg); }
.cat-stage-inner { position: relative; height: 470px; padding: 26px; }
.cat-stage-photo { position: relative; width: 100%; height: 100%; border-radius: 22px; overflow: hidden; background: var(--ink); }

/* Focal moment: picking a cat visibly places a new photo on the stage,
   then its facts settle in a beat later -- the one rehearsed sequence
   this component earns, rather than generic section-by-section reveals. */
@keyframes cat-stage-reveal {
  from { opacity: 0; transform: scale(0.94) rotate(-1.5deg); }
  to { opacity: 1; transform: scale(1) rotate(0deg); }
}
.cat-stage-slide.is-active {
  animation: cat-stage-reveal 550ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes cat-detail-reveal {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.cat-detail.is-updating {
  animation: cat-detail-reveal 400ms cubic-bezier(0.16, 1, 0.3, 1) 80ms backwards;
}

.cat-detail {
  background: var(--card);
  border: 1.5px solid var(--ink-12);
  border-radius: 24px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
}
.cat-detail h3 { font-size: 34px; margin: 0 0 2px; }
.cat-detail .script-line { font-size: 22px; margin: 0 0 22px; }
.cat-facts { display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.cat-fact { display: grid; grid-template-columns: 108px 1fr; gap: 10px; }
.cat-fact span:first-child { font-weight: 700; }
.cat-fact span:last-child { color: var(--ink-62); }
.fact-divider { height: 1px; background: var(--ink-10); }
.cat-nav { margin-top: auto; padding-top: 28px; display: flex; align-items: center; gap: 14px; }
.cat-dots { display: flex; gap: 6px; }
.cat-dot {
  /* Real padding, not an absolutely-positioned hit-box overlay: at the
     row's actual spacing an overlaid 44px hit-box on every dot covered
     more than half of its neighbors, so a dead-center click on 4 of 5
     dots landed on the next one instead. Padding is a flex-participating
     box -- adjacent dots' click areas can never overlap by construction,
     even though 24px falls short of the 44px floor used elsewhere. */
  box-sizing: content-box;
  display: block;
  width: 8px; height: 8px;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  background-color: var(--ink-25);
  background-clip: content-box;
}
.cat-dot.is-active { background-color: var(--pink); }
.cat-dot:focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 2px;
}

/* ---------------------------------------------------------
   Menu
--------------------------------------------------------- */
.menu { padding-block: 40px 96px; }
.menu h2 { margin: 0 0 10px; }
.menu .eyebrow { margin-bottom: 36px; }

.menu-tabs {
  max-width: 460px;
  margin: 0 auto 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  border: 1.5px solid var(--ink-14);
  border-radius: 999px;
}
.menu-tab {
  padding: 12px 0;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  background: transparent;
  color: var(--ink);
  transition: background 200ms ease, color 200ms ease, transform 150ms ease;
}
.menu-tab.is-active { background: var(--ink); color: var(--cream); }
.menu-tab:active { transform: scale(0.97); }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}
.menu-grid[hidden] { display: none; }
.menu-card {
  background: var(--card);
  border: 1.5px solid var(--ink-10);
  border-radius: 22px;
  padding: 16px;
  min-width: 0; /* auto-fit/minmax track: don't let the photo's intrinsic size grow the column */
}
.menu-photo { height: 220px; border-radius: 16px; overflow: hidden; background: var(--stone-2); }
.menu-card h3 { margin: 16px 0 4px; font-size: 21px; }
.menu-card p { font-size: 14.5px; line-height: 1.5; color: var(--ink-62); margin: 0 0 12px; }
.menu-card .price { font-family: var(--font-marker); font-size: 17px; color: var(--brown); margin: 0; }

/* ---------------------------------------------------------
   Reviews
--------------------------------------------------------- */
.reviews { padding-block: 96px; }
.reviews h2 { margin-bottom: 44px; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.review-card {
  background: var(--card);
  border: 1.5px solid var(--ink-10);
  border-radius: 22px;
  padding: 26px;
  min-width: 0;
}
.review-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.review-avatar { display: block; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: var(--stone); flex: none; }
.review-meta { display: flex; flex-direction: column; }
.review-date { font-size: 12.5px; color: var(--ink-62); }
.review-name { font-size: 17px; font-weight: 700; }
.review-card .script-line { font-size: 23px; line-height: 1.35; margin: 0; color: var(--ink); }

/* ---------------------------------------------------------
   FAQ
--------------------------------------------------------- */
.faq { padding-block: 0 96px; }
.faq h2 { margin: 0 0 40px; }
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 34px;
  align-items: start;
}
.faq-side { background: var(--panel); border-radius: 24px; padding: 18px; }
.faq-photo { height: 320px; border-radius: 16px; overflow: hidden; background: var(--panel-2); }
.faq-rules { padding: 20px 8px 8px; color: var(--cream); }
.faq-rules .eyebrow-marker { margin: 0 0 12px; }
.rules-text { font-family: var(--font-marker); font-size: 15px; line-height: 1.9; margin: 0; color: var(--cream-82); }

.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1.5px solid var(--ink-14);
  border-radius: 18px;
  background: var(--card);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-body);
}
.faq-question span:first-child { font-size: 18px; font-weight: 700; color: var(--ink); }
.faq-question { transition: background 200ms ease; }
.faq-question:hover { background: var(--stone-2); }

/* Drawn, not typed: two bars that morph + into – as the item opens, so the
   control animates its own state instead of swapping one text glyph for
   another. Terracotta, per the FAQ sign's documented role in the palette. */
.faq-sign {
  position: relative;
  width: 18px;
  height: 18px;
  flex: none;
}
.faq-sign::before,
.faq-sign::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2.5px;
  margin: -1.25px 0 0 -8px;
  border-radius: 2px;
  background: var(--brown);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), opacity 200ms ease;
}
.faq-sign::after { transform: rotate(90deg); }
.faq-item.is-open .faq-sign::after { transform: rotate(0deg); opacity: 0; }
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 350ms cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-answer p {
  overflow: hidden;
  min-height: 0;
  margin: 0;
  padding: 0 22px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-70);
  max-width: 560px;
}
/* Bottom padding is bound to .is-open, not transitioned: if it stayed
   on the paragraph unconditionally, the grid-rows collapse below could
   never reach a true 0 (padding still needs somewhere to go), leaving
   a persistent gap on close. Snapping it removes that floor instantly,
   while grid-template-rows keeps the actual open/close motion smooth. */
.faq-item.is-open .faq-answer p { padding-bottom: 20px; }

/* ---------------------------------------------------------
   Contacts
--------------------------------------------------------- */
.contacts { padding-block: 0 40px; }
.map-wrap { position: relative; border-radius: 28px; overflow: hidden; background: var(--stone); min-height: 440px; }
.map-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35); }
.contact-card {
  position: absolute;
  top: 28px; left: 28px;
  width: 340px;
  background: var(--panel);
  color: var(--cream);
  border-radius: 22px;
  padding: 30px 28px;
}
.contact-card h2 { font-size: 34px; margin: 0 0 18px; }
.contact-rows { display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.contact-label { font-weight: 700; }
.contact-value { color: var(--cream-70); }
.contact-link { color: var(--yellow); }
.contact-tag { color: var(--orange); margin: 20px 0 18px; }
.social-row { display: flex; gap: 8px; }
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(247, 245, 240, .4);
  color: var(--cream);
  font-size: 12px;
  font-weight: 700;
  transition: color 200ms ease, transform 150ms ease;
}
.social-btn:hover,
.social-btn:focus-visible { color: var(--yellow); }
.social-btn:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.social-btn:active { transform: scale(0.92); }

/* ---------------------------------------------------------
   Footer
--------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--ink-10); margin-top: 40px; }
.footer-row { padding-block: 30px; display: flex; align-items: center; gap: 40px; }
.footer-nav { display: flex; gap: 26px; margin-left: auto; font-size: 14.5px; font-weight: 600; }
.footer-note { text-align: center; font-size: 13px; color: var(--ink-62); margin: 0; padding: 0 32px 26px; }

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */
@media (max-width: 980px) {
  /* minmax(0, 1fr), not bare 1fr: a bare 1fr track's automatic minimum
     is content-based, so a long word or a fixed-size child can force
     the track (and everything stacked in it) wider than the viewport */
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-media { order: -1; }
  .hero-photo { height: 360px; }
  .hero-copy h1 { font-size: 48px; }

  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-media { order: -1; }
  .about-photo { height: 320px; }

  .faq-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .nav-panel { display: none; }
  .nav-toggle {
    display: flex;
    width: 44px;
    height: 44px;
  }

  .site-header.is-open .nav-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--ink-10);
    padding: 12px 32px 20px;
  }
  .site-header.is-open .main-nav {
    flex-direction: column;
    gap: 4px;
    width: 100%;
  }
  .site-header.is-open .main-nav a { padding: 10px 0; }
  .site-header.is-open .phone-chip {
    margin-top: 12px;
  }

  .cats-grid { grid-template-columns: minmax(0, 1fr); }

  .cat-rail {
    flex-direction: row;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    /* fade the trailing edge so the next avatar visibly peeks in;
       the ::after spacer below keeps this from ever fading the
       genuinely-last avatar once fully scrolled */
    mask-image: linear-gradient(to right, black calc(100% - 28px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black calc(100% - 28px), transparent 100%);
  }
  .cat-rail::-webkit-scrollbar { display: none; }
  .cat-rail::after {
    /* trailing spacer so the next avatar always peeks at the edge
       instead of the row ending flush with the viewport */
    content: '';
    flex: 0 0 32px;
  }
  .cat-avatar { scroll-snap-align: start; }

  .cat-stage, .cat-stage-inner { min-height: 320px; height: 320px; }
  .cat-stage-ring { display: none; }

  .cat-fact {
    display: flex;
    flex-wrap: wrap;
    column-gap: 10px;
    row-gap: 2px;
  }
  .cat-fact span:first-child { flex: 0 0 108px; }
  .cat-fact span:last-child { flex: 1 1 140px; min-width: 140px; }

  .menu-tab { padding: 14px 0; }

  .contact-card { position: static; width: auto; margin-top: 16px; border-radius: 22px; }
  .map-wrap { min-height: 0; display: flex; flex-direction: column; }
  .map-frame { position: relative; height: 320px; }
}

@media (max-width: 640px) {
  .container { padding-inline: 20px; }
  h2 { font-size: 34px; }
  .hero-copy h1 { font-size: 36px; }
  .about h2 { font-size: 34px; }
  /* Grid, not flex-wrap: a wrapped flex item keeps the border-left/
     padding-left meant for "sits beside a sibling," so the 3rd stat
     landed on its own row still indented with a stray divider line.
     Grid's auto-placement starts row 2 back at column 1 instead. */
  .stat-row {
    display: grid;
    grid-template-columns: repeat(2, auto);
    column-gap: 24px;
    row-gap: 16px;
  }
  .stat { padding-inline: 0; }
  .stat + .stat { border-left: none; }
  .stat:first-child { border-right: 1px solid var(--ink-14); padding-right: 24px; }
  .contact-card { padding: 24px 20px; }

  /* header content (badge + wordmark + toggle) is too wide for the
     40px of container padding left at 320px without this. The wordmark
     is the binding constraint: "MILK & MARMALADE" is 16 characters, so
     at 19px it alone takes 180px of the 280px available and shoves the
     44px toggle past the viewport edge. Step the lockup down to the
     badge's existing small size and a 16px wordmark to buy the
     clearance back -- the .brand flex item is `flex: none`, so nothing
     upstream of this will absorb the overflow for us. */
  .header-row { gap: 12px; }
  .site-header .brand-badge { width: 46px; height: 46px; }
  .site-header .brand-title { font-size: 16px; }

  /* reading copy up to 16px; .review-date stays as
     intentional fine print */
  .cat-facts { font-size: 16px; }
  .contact-rows { font-size: 16px; }
  .faq-answer p { font-size: 16px; }

  /* footer-nav's 5 links don't fit their row's leftover space and
     flexbox won't shrink a nowrap flex container below its content's
     natural width on its own -- wrap both the row and the nav */
  .footer-row { flex-wrap: wrap; row-gap: 14px; }
  .footer-nav { flex-wrap: wrap; min-width: 0; row-gap: 8px; }
}

/* ---------------------------------------------------------
   Motion

   Thesis: "the pen writes." DESIGN.md's north star is the
   Handwritten Menu Board, so the page's one authored moment
   makes that literal -- the hero's Caveat line lays itself
   down like ink, left to right, in the order a person writes
   a board: marker eyebrow stamps, headline settles, script
   line writes. Everything below that is continuity (state
   changes that used to snap) or feedback (controls that used
   to acknowledge nothing). No section-by-section scroll
   reveals: this page already earns its component moment in
   the cat carousel above, and repeating a reveal per section
   would be movement without meaning.

   Easing is the one curve this stylesheet already uses,
   cubic-bezier(0.16, 1, 0.3, 1) -- a confident deceleration.
--------------------------------------------------------- */

/* --- Focal moment: the hero writes itself ---------------- */

/* The marker eyebrow is stamped, not slid -- it settles out of a
   slight over-scale the way a rubber stamp lifts off paper. */
@keyframes hero-stamp {
  from { opacity: 0; transform: scale(1.06); }
  to   { opacity: 1; transform: scale(1); }
}
.hero-copy .eyebrow {
  animation: hero-stamp 320ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

@keyframes hero-settle {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-copy h1 {
  animation: hero-settle 560ms cubic-bezier(0.16, 1, 0.3, 1) 120ms backwards;
}

/* THE moment. A soft-edged mask sweeps left to right so the line
   appears as a stroke being laid down, with an ink-like leading
   edge -- a hard clip would read as a wipe, not as handwriting.
   The mask is 260% of the line's width: parked at 100% its opaque
   half sits entirely off the left edge (nothing shown), and at 0%
   it covers the line completely. Default mask-position is 0%, so
   if this animation never runs the line is simply visible. */
@keyframes ink-write {
  from { -webkit-mask-position: 120% 0; mask-position: 120% 0; }
  to   { -webkit-mask-position: 0% 0;   mask-position: 0% 0; }
}
.hero-copy .script-line {
  /* Geometry, in units of the line's own width W. The mask is 2W wide and
     opaque across its first half, fading out by 60%. Mask-position P offsets
     it by -W*P, so the opaque edge sits at (1 - P)W and the fade ends at
     (1.2 - P)W. That makes P=120% the moment the fade clears the left edge
     (nothing drawn) and P=0% the moment the opaque edge reaches the right
     edge (fully drawn) -- so position maps 1:1 onto how much is written, and
     no part of the duration is spent off-screen. Default mask-position is
     0%, so a browser that never runs the animation just shows the line. */
  /* Only the alpha channel of this gradient does anything -- a gradient
     mask-image resolves as mask-mode: alpha -- so the opaque stop uses the
     ink token rather than introducing a raw #000 that isn't in the palette. */
  -webkit-mask-image: linear-gradient(90deg, var(--ink) 0 50%, rgba(26, 26, 26, 0) 60%);
          mask-image: linear-gradient(90deg, var(--ink) 0 50%, rgba(26, 26, 26, 0) 60%);
  -webkit-mask-size: 200% 100%;
          mask-size: 200% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  /* Deliberately NOT the house cubic-bezier(0.16, 1, 0.3, 1). That curve is
     an arrival -- measured, it draws 83% of the line in the first quarter of
     its time, so the stroke finishes early and then crawls. A pen is a
     different physical event: press, travel at a near-steady rate, ease off.
     This curve measures 19% / 68% / 94% at the quarter marks. */
  animation: ink-write 700ms cubic-bezier(0.45, 0.1, 0.35, 1) 380ms backwards;
}

/* The supporting copy is one group, not four staggered beats --
   the handwriting is the gesture, this just clears the way for it. */
.hero-copy .lede,
.hero-copy .stat-row,
.hero-copy .btn {
  animation: hero-settle 520ms cubic-bezier(0.16, 1, 0.3, 1) 300ms backwards;
}

@keyframes hero-photo-in {
  from { opacity: 0; transform: scale(1.03); }
  to   { opacity: 1; transform: scale(1); }
}
.hero-media {
  animation: hero-photo-in 700ms cubic-bezier(0.16, 1, 0.3, 1) 160ms backwards;
}

/* --- Continuity: the menu tab swap ----------------------- */

/* Switching Desserts/Drinks used to replace the grid with no
   explanation at all. The incoming cards arrive as what they are,
   a list -- so a capped stagger is the honest reading. Three cards
   per panel, 45ms apart, 90ms total: enough to show sequence,
   short enough that it never becomes a wait. */
@keyframes menu-card-in {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.menu-grid.is-entering .menu-card {
  animation: menu-card-in 380ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.menu-grid.is-entering .menu-card:nth-child(2) { animation-delay: 45ms; }
.menu-grid.is-entering .menu-card:nth-child(3) { animation-delay: 90ms; }

/* --- Feedback: the hamburger states its own state -------- */
.nav-toggle span {
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), opacity 200ms ease;
}
/* spans are 2px tall with a 5px gap, so the outer two travel 7px to meet */
.site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0.4); }
.site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Continuity: the mobile nav opens downward ----------- */
@media (max-width: 860px) {
  /* clip-path does the opening so no layout property animates and
     nothing below the header is pushed around mid-transition */
  @keyframes nav-panel-in {
    from { opacity: 0; clip-path: inset(0 0 100% 0); }
    to   { opacity: 1; clip-path: inset(0 0 0 0); }
  }
  .site-header.is-open .nav-panel {
    animation: nav-panel-in 260ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  @keyframes nav-link-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .site-header.is-open .main-nav a,
  .site-header.is-open .phone-chip {
    animation: nav-link-in 260ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
  }
  .site-header.is-open .main-nav a:nth-child(2) { animation-delay: 30ms; }
  .site-header.is-open .main-nav a:nth-child(3) { animation-delay: 60ms; }
  .site-header.is-open .main-nav a:nth-child(4) { animation-delay: 90ms; }
  .site-header.is-open .main-nav a:nth-child(5) { animation-delay: 120ms; }
  .site-header.is-open .phone-chip            { animation-delay: 150ms; }
}

/* --- World texture: the doodled rings breathe ------------ */

/* These two rings are deliberately imperfect hand-drawn shapes
   (asymmetric border-radius). Holding them perfectly still is the
   one thing a drawn line never does, so they drift a couple of
   degrees over half a minute -- felt rather than seen. Paused by
   IntersectionObserver whenever the section is off screen. */
@keyframes ring-drift-a {
  from { transform: rotate(-5.5deg) scale(1); }
  to   { transform: rotate(-2.4deg) scale(1.014); }
}
@keyframes ring-drift-b {
  from { transform: rotate(6.2deg) scale(1.012); }
  to   { transform: rotate(3.6deg) scale(1); }
}
.cat-stage-ring--1 { animation: ring-drift-a 26s ease-in-out infinite alternate; }
.cat-stage-ring--2 { animation: ring-drift-b 31s ease-in-out infinite alternate; }
.cats.is-offscreen .cat-stage-ring { animation-play-state: paused; }

/* --- Feedback on the things that are actually interactive --
   Cards deliberately get no hover: menu, review and feature cards
   aren't clickable, and lifting them would promise a click that
   isn't there. Only real controls respond. */
.phone-chip { transition: background 200ms ease, color 200ms ease, border-color 200ms ease; }
.phone-chip:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.cat-avatar { cursor: pointer; }
.cat-avatar:hover .cat-avatar-ring { transform: scale(1.06); }
.cat-avatar.is-active:hover .cat-avatar-ring { transform: scale(1.09); }
.brand-badge { transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1); }
.brand:hover .brand-badge { transform: rotate(-6deg); }

/* ---------------------------------------------------------
   Reduced motion

   Not a blanket kill. Travel, the ink sweep and the ambient
   loop all come off -- they are movement for its own sake
   under this preference. What stays is the feedback that
   tells you your click landed: colour, background and
   opacity still change, just without the journey.
--------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  /* entrances: show the end state immediately */
  .hero-copy .eyebrow,
  .hero-copy h1,
  .hero-copy .lede,
  .hero-copy .stat-row,
  .hero-copy .btn,
  .hero-media,
  .menu-grid.is-entering .menu-card,
  .cat-stage-slide.is-active,
  .cat-detail.is-updating,
  .site-header.is-open .nav-panel,
  .site-header.is-open .main-nav a,
  .site-header.is-open .phone-chip {
    animation: none;
  }

  /* the handwriting reveal: drop the sweep, keep the line */
  .hero-copy .script-line {
    animation: none;
    -webkit-mask-image: none;
            mask-image: none;
  }

  /* ambient loop stops entirely */
  .cat-stage-ring--1,
  .cat-stage-ring--2 { animation: none; }

  /* disclosure snaps rather than travelling; the answer appearing
     is itself the confirmation */
  .faq-answer { transition: none; }

  /* keep the state change legible, lose the rotation */
  .faq-sign::before,
  .faq-sign::after { transition: opacity 150ms ease; }
  .faq-item.is-open .faq-sign::after { transform: rotate(0deg); }

  /* controls: no travel, but colour/opacity feedback survives */
  .btn, .round-btn, .menu-tab, .social-btn, .cat-avatar-ring,
  .nav-toggle span, .brand-badge {
    transition-property: background, color, border-color, opacity;
    transition-duration: 150ms;
  }
  .btn:active, .round-btn:active, .menu-tab:active, .social-btn:active { transform: none; }
  .cat-avatar:hover .cat-avatar-ring,
  .cat-avatar.is-active:hover .cat-avatar-ring,
  .cat-avatar.is-active .cat-avatar-ring { transform: none; }
  .brand:hover .brand-badge { transform: none; }
  .site-header.is-open .nav-toggle span:nth-child(1),
  .site-header.is-open .nav-toggle span:nth-child(3) { transform: none; }
}
