/* =============================================================
   matcha: cafe — site styles
   palette, typography, layout, and mobile-friendly spacing
   ============================================================= */

:root {
  --ink: #0e120c;
  --ink-soft: #2a2f24;
  --paper: #f3ecdb;
  --cream: #ebe2c9;
  --bone: #f9f4e6;
  --matcha: #4a6f2a;
  --matcha-deep: #1f3611;
  --matcha-bright: #84d05a;
  --matcha-glow: #b6e88a;
  --sage: #aab98a;
  --rule: rgba(14,18,12,0.14);
  --rule-strong: rgba(14,18,12,0.28);

  --f-sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-italic: "Instrument Serif", ui-serif, Georgia, serif;
  --f-mono: "DM Mono", ui-monospace, monospace;
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-feature-settings: "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--matcha-bright); color: var(--matcha-deep); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* ---------- typographic primitives ---------- */
.em { font-family: var(--f-italic); font-style: italic; font-weight: 400; letter-spacing: 0; }
.mono { font-family: var(--f-mono); font-weight: 500; letter-spacing: 0; }

/* the brand "matcha:" lockup, used everywhere */
.lockup {
  font-family: var(--f-sans);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--ink);
}
.lockup .colon { color: var(--matcha); }
.lockup .suffix {
  font-family: var(--f-italic);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-left: -0.02em;
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--matcha);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(44px, 6vw, 80px);
}

/* ---------- header / nav ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  border-bottom: 1px solid var(--rule);
}
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}
.nav .open-pill { justify-self: end; }
.nav .brand { font-size: 22px; line-height: 1; margin-left: 90px; }
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
  justify-content: center;
}
.nav ul a {
  font-size: 14px;
  color: var(--ink-soft);
  transition: color .25s ease;
  position: relative;
  padding: 4px 0;
}
.nav ul a:hover { color: var(--matcha-deep); }
.nav ul a .dot {
  color: var(--matcha);
  font-family: var(--f-italic);
  font-style: italic;
  margin-right: 2px;
}

/* ---------- hamburger button ---------- */
.nav-toggle {
  display: none;
  grid-column: 3;
  justify-self: end;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- mobile nav overlay ---------- */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 48;
  background: var(--paper);
  align-items: center;
  justify-content: center;
}
.mobile-nav.open { display: flex; }
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
  text-align: center;
}
.mobile-nav ul a {
  font-size: clamp(32px, 8vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  transition: color .2s;
}
.mobile-nav ul a:hover { color: var(--matcha); }
.mobile-nav ul a .dot {
  color: var(--matcha);
  font-family: var(--f-italic);
  font-style: italic;
  margin-right: 3px;
}

.open-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px 7px 11px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--f-mono);
  color: var(--ink);
  white-space: nowrap;
}
.open-pill .glow {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--matcha-bright);
  box-shadow: 0 0 0 0 rgba(132,208,90,0.6);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(132,208,90,0.55); }
  50%      { box-shadow: 0 0 0 7px rgba(132,208,90,0); }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(10px, 3vw, 40px) 0 clamp(28px, 5vw, 72px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 36px);
}
.hero h1 {
  margin: 0;
  font-family: var(--f-sans);
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: -0.055em;
  font-size: clamp(72px, 22vw, 220px);
  color: var(--ink);
}
.hero h1 .colon { color: var(--matcha); }
.hero h1 .suffix {
  font-family: var(--f-italic);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--matcha-deep);
  display: inline-block;
  transform: translateY(0.04em);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: end;
  margin-top: clamp(14px, 2vw, 24px);
}
.hero-tagline {
  grid-column: 1 / span 7;
  font-family: var(--f-italic);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.6vw, 36px);
  line-height: 1.18;
  color: var(--ink-soft);
  max-width: 28ch;
  margin: 0;
}
.hero-tagline em { color: var(--matcha-deep); font-style: italic; }
.hero-side {
  grid-column: 9 / span 4;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-left: 1px solid var(--rule);
  padding-left: 22px;
}
.hero-side .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  line-height: 1.45;
}
.hero-side .row .k {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--matcha);
  flex-shrink: 0;
  padding-top: 2px;
}
.hero-side .row .v { text-align: right; max-width: 70%; }

/* whisk graphic */
.whisk-wrap {
  position: absolute;
  right: clamp(-40px, 2vw, 40px);
  top: clamp(60px, 8vw, 120px);
  width: clamp(220px, 24vw, 360px);
  height: clamp(220px, 24vw, 360px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.95;
}
.whisk-wrap svg { width: 100%; height: 100%; }
.whisk-wrap .ring {
  transform-origin: center;
  animation: spin 32s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- marquee ---------- */
.marquee {
  background: var(--matcha-deep);
  color: var(--bone);
  border-top: 1px solid var(--matcha-deep);
  border-bottom: 1px solid var(--matcha-deep);
  overflow: hidden;
  padding: 18px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 48px;
  animation: marquee 42s linear infinite;
  white-space: nowrap;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-size: clamp(24px, 4vw, 56px);
  font-family: var(--f-italic);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.marquee-track .dot {
  color: var(--matcha-bright);
  font-family: var(--f-sans);
  font-style: normal;
  transform: translateY(-0.2em);
  display: inline-block;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- section primitive ---------- */
section {
  padding: clamp(20px, 3vw, 40px) 0;
  position: relative;
}
section + section { border-top: 1px solid var(--rule); }
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: clamp(14px, 2vw, 24px);
}
.section-head .lockup {
  font-size: clamp(48px, 9vw, 132px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  margin: 0;
}
.section-head .lockup .suffix { color: var(--matcha-deep); }
.section-head .lede {
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
}
.section-head .lede em { font-family: var(--f-italic); font-style: italic; color: var(--matcha-deep); }

.head-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(10px, 2vw, 20px);
}
.head-row .ix {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--matcha);
}

/* ---------- place section ---------- */
#place .place-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2.5vw, 36px);
  align-items: stretch;
}
.place-card {
  background: var(--bone);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: clamp(20px, 2.6vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}
.place-card .num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--matcha);
}
.place-card h3 {
  font-family: var(--f-italic);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.05;
  margin: 14px 0 10px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.place-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}
.pc-1 { grid-column: 1 / span 5; background: var(--matcha-deep); color: var(--bone); border-color: var(--matcha-deep); justify-content: flex-start; }
.pc-1 > div { margin: auto 0; text-align: center; }
.pc-1 h3 { color: var(--matcha-glow); }
.pc-1 p, .pc-1 .num { color: rgba(249,244,230,0.78); }
.pc-1 .num { color: var(--matcha-bright); }
.pc-2 { grid-column: 6 / span 4; }
.pc-3 { grid-column: 10 / span 3; background: var(--cream); }

/* ---------- menu ---------- */
.menu-cat { margin-bottom: clamp(36px, 6vw, 72px); }
.menu-cat:last-child { margin-bottom: 0; }

.cat-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule-strong);
}
.cat-head h3 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}
.cat-head h3 .em {
  font-family: var(--f-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--matcha);
}
.cat-head .cat-note {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-soft);
  text-align: right;
  max-width: 36ch;
}
.cat-head .ix {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--matcha);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.6vw, 24px);
}

.drink {
  background: var(--bone);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 22px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .25s, background .25s;
  position: relative;
}
.drink:hover {
  transform: translateY(-4px);
  border-color: var(--matcha);
  background: #fffaeb;
}
.drink .glass {
  width: 78px;
  height: 124px;
  margin-bottom: 16px;
  position: relative;
  --bg-a: rgba(0,0,0,0.04);
  --c-bot: var(--matcha);
  --c-mid: #ffffff;
  --c-top: var(--matcha-glow);
  --c-foam: #ffffff;
}
.drink .glass::before {
  /* outer glass shape */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px 12px 16px 16px;
  background:
    linear-gradient(to right,
      rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.02) 8%, rgba(255,255,255,0.55) 14%, rgba(0,0,0,0.02) 22%, rgba(0,0,0,0.04) 30%,
      rgba(255,255,255,0.4) 38%, rgba(0,0,0,0.03) 46%, rgba(0,0,0,0.06) 54%, rgba(255,255,255,0.5) 62%,
      rgba(0,0,0,0.03) 70%, rgba(0,0,0,0.05) 78%, rgba(255,255,255,0.45) 86%, rgba(0,0,0,0.03) 94%, rgba(0,0,0,0.06) 100%);
  box-shadow: inset 0 0 0 1px rgba(14,18,12,0.18);
  overflow: hidden;
  z-index: 1;
}
.drink .glass-fill {
  position: absolute;
  left: 4px; right: 4px; top: 6px; bottom: 6px;
  border-radius: 8px 8px 12px 12px;
  overflow: hidden;
  z-index: 0;
  background: var(--c-mid);
}
.drink .glass-fill::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 38%;
  background: var(--c-bot);
}
.drink .glass-fill::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 28%;
  background: var(--c-top);
}
.drink .glass-foam {
  position: absolute;
  left: 4px; right: 4px; top: 6px;
  height: 18%;
  border-radius: 8px 8px 0 0;
  background: var(--c-foam);
  z-index: 2;
  display: none;
}
.drink.has-foam .glass-foam { display: block; }
.drink .glass-ribs {
  position: absolute;
  inset: 4px 4px 6px 4px;
  border-radius: 8px 8px 12px 12px;
  background:
    repeating-linear-gradient(90deg,
      transparent 0, transparent 6px,
      rgba(255,255,255,0.18) 6px, rgba(255,255,255,0.18) 7px,
      transparent 7px, transparent 12px,
      rgba(0,0,0,0.06) 12px, rgba(0,0,0,0.06) 13px);
  z-index: 3;
  pointer-events: none;
}
/* ice cubes */
.drink.has-ice .glass-fill::before {
  background:
    radial-gradient(circle at 30% 70%, rgba(255,255,255,0.7) 0 8px, transparent 9px),
    radial-gradient(circle at 65% 50%, rgba(255,255,255,0.6) 0 6px, transparent 7px),
    radial-gradient(circle at 50% 85%, rgba(255,255,255,0.55) 0 7px, transparent 8px),
    var(--c-bot);
}

/* mug variant for hot lattes */
.drink.is-mug .glass { width: 96px; height: 84px; }
.drink.is-mug .glass::before { border-radius: 4px 4px 14px 14px; }
.drink.is-mug .glass-fill { border-radius: 2px 2px 12px 12px; }
.drink.is-mug .glass-foam { border-radius: 2px 2px 0 0; }
.drink.is-mug .glass-ribs { display: none; }
.drink.is-mug .glass::after {
  content: "";
  position: absolute;
  right: -16px; top: 22px;
  width: 22px; height: 38px;
  border: 6px solid rgba(14,18,12,0.16);
  border-left: none;
  border-radius: 0 60% 60% 0 / 0 50% 50% 0;
  z-index: 2;
}

.drink .name {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 4px;
  color: var(--ink);
  min-height: 36px;
  display: flex;
  align-items: end;
  justify-content: center;
}
.drink .price {
  font-family: var(--f-mono);
  font-size: 15px;
  color: var(--matcha-deep);
  margin-bottom: 8px;
}
/* drink photo variant */
.drink.has-photo {
  padding: 0 0 16px;
  align-items: stretch;
}
.drink-photo-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 5px 5px 0 0;
  background: var(--cream);
  margin-bottom: 14px;
  flex-shrink: 0;
}
.drink-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.drink.has-photo:hover .drink-photo { transform: scale(1.04); }
.drink.has-photo .name,
.drink.has-photo .price,
.drink.has-photo .badges { padding: 0 14px; }

.drink .badges {
  display: flex;
  gap: 6px;
  height: 20px;
  align-items: center;
}
.drink .badge {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px;
  color: var(--matcha-deep);
  background: rgba(255,255,255,0.5);
}

.menu-foot {
  margin-top: 28px;
  padding: 18px 22px;
  background: var(--cream);
  border-radius: 6px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  border: 1px solid var(--rule);
}
.menu-foot .label { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.menu-foot .label strong { color: var(--ink); font-weight: 600; }
.menu-foot .price {
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--matcha-deep);
  white-space: nowrap;
}
.legend {
  display: flex;
  gap: 22px;
  margin-top: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-soft);
}
.legend .badge {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px;
  color: var(--matcha-deep);
  background: rgba(255,255,255,0.6);
  margin-right: 8px;
  vertical-align: middle;
}

.grades {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.grade {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 16px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--bone);
  font-size: 14px;
}
.grade .em { font-family: var(--f-italic); font-style: italic; color: var(--matcha-deep); margin-right: 4px; }
.grade .price { font-family: var(--f-mono); color: var(--matcha); }

/* ---------- dessert cards ---------- */
.dessert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.6vw, 20px);
}

.dessert-card {
  background: var(--bone);
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .25s, background .25s;
}
.dessert-card:hover {
  transform: translateY(-4px);
  border-color: var(--matcha);
  background: #fffaeb;
}

.dessert-photo-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--cream);
  overflow: hidden;
}
.dessert-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.dessert-card:hover .dessert-photo { transform: scale(1.04); }

.dessert-info { padding: 14px 16px 16px; }
.dessert-price {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 3px;
}
.dessert-name {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.3;
}
.dessert-weight {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--sage);
  margin-top: 5px;
  letter-spacing: 0.06em;
}

/* ---------- ritual section ---------- */
#ritual { background: var(--matcha-deep); color: var(--bone); }
#ritual .section-head .lockup,
#ritual .section-head .lockup .suffix { color: var(--bone); }
#ritual .section-head .lockup .colon { color: var(--matcha-bright); }
#ritual .section-head .ix { color: var(--matcha-bright); }
#ritual .section-head .lede { color: rgba(249,244,230,0.78); }
#ritual .section-head .lede em { color: var(--matcha-glow); }

#ritual .ritual-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
}
#ritual .photo {
  grid-column: 1 / span 7;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 6 / 5;
  background: #d8cfba;
  position: relative;
}
#ritual .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
#ritual .photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(31,54,17,0.18));
  pointer-events: none;
}
#ritual .copy { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 16px; }
#ritual .copy h3 {
  font-family: var(--f-italic);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--matcha-glow);
}
#ritual .copy p {
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(249,244,230,0.85);
  margin: 0;
}
#ritual .copy .price-block {
  margin-top: 8px;
  padding: 20px 22px;
  border: 1px solid rgba(182,232,138,0.3);
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
#ritual .copy .price-block .pp {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--matcha-bright);
}
#ritual .copy .price-block .pv {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 40px);
  color: var(--bone);
  letter-spacing: -0.02em;
}
#ritual .copy .footnote {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 14.5px;
  color: var(--matcha-glow);
  opacity: 0.85;
}
#ritual .certs { display: flex; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
#ritual .cert {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--matcha-glow);
  padding: 6px 11px;
  border: 1px solid rgba(182,232,138,0.35);
  border-radius: 999px;
}

/* ---------- visit ---------- */
#visit .visit-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 3vw, 36px);
}
.visit-block { display: flex; flex-direction: column; gap: 12px; }
.visit-block .label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--matcha);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 10px;
}
.visit-block.where { grid-column: 1 / span 5; }
.visit-block.hours { grid-column: 6 / span 4; }
.visit-block.reach { grid-column: 10 / span 3; }

.where .addr {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.where .addr-en { font-size: 14px; color: var(--ink-soft); margin-top: -2px; }
.where .map-link {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 17px 11px 14px;
  border: 1px solid var(--matcha-deep);
  background: var(--matcha-deep);
  color: var(--bone);
  border-radius: 999px;
  font-size: 14px;
  transition: background .25s, color .25s;
  align-self: flex-start;
}
.where .map-link:hover { background: var(--matcha); border-color: var(--matcha); }
.where .map-link svg { width: 16px; height: 16px; }

.hours-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hours-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--rule);
  font-size: 14px;
}
.hours-list li:last-child { border-bottom: none; }
.hours-list li.today {
  border-bottom: none;
}
.hours-list .day { color: var(--ink); }
.hours-list .time { font-family: var(--f-mono); font-size: 13px; color: var(--ink-soft); }

.reach-list { display: grid; gap: 12px; }
.reach-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px 13px;
  background: var(--bone);
  border: 1px solid var(--rule);
  border-radius: 4px;
  transition: border-color .25s, background .25s;
}
.reach-item:hover { border-color: var(--matcha); background: #fffaea; }
.reach-item .k {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--matcha);
}
.reach-item .v { font-size: 15px; }
.reach-item .v .em { color: var(--matcha-deep); }

.check-row {
  margin-top: 22px;
  padding: 16px 20px;
  background: var(--cream);
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  grid-column: 1 / -1;
}
.check-row .k {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--matcha);
}
.check-row .v {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: clamp(18px, 2vw, 26px);
  color: var(--ink);
}
.check-row .v .em { color: var(--matcha-deep); }

/* ---------- voices ---------- */
#voices { background: var(--bone); text-align: center; }
#voices .stars {
  display: inline-flex;
  gap: 4px;
  color: var(--matcha-bright);
  font-size: 22px;
  letter-spacing: 0.05em;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.06));
}
#voices blockquote {
  font-family: var(--f-italic);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(26px, 3.6vw, 52px);
  line-height: 1.18;
  color: var(--ink);
  max-width: 22ch;
  margin: 18px auto 22px;
  letter-spacing: -0.01em;
}
#voices blockquote .em-mark { color: var(--matcha); font-family: var(--f-italic); font-style: italic; }
#voices .attribution {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  flex-wrap: wrap;
  justify-content: center;
}
#voices .attribution .who { color: var(--ink); }
#voices .gscore {
  margin-top: 22px;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--matcha-deep);
  font-size: 13px;
}
#voices .gscore strong { font-size: 22px; font-weight: 600; }

/* ---------- footer ---------- */
footer.site {
  background: var(--ink);
  color: var(--bone);
  padding: clamp(40px, 6vw, 72px) 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.footer-grid .brand-block .lockup {
  font-size: clamp(48px, 7vw, 92px);
  color: var(--bone);
  line-height: 0.9;
}
.footer-grid .brand-block .lockup .colon { color: var(--matcha-bright); }
.footer-grid .brand-block .lockup .suffix { color: var(--matcha-glow); }
.footer-grid .brand-block p {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 15px;
  margin: 14px 0 0;
  color: rgba(249,244,230,0.7);
  max-width: 28ch;
}
.fcol h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--matcha-bright);
  margin: 0 0 14px;
}
.fcol ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.fcol a { font-size: 14px; color: rgba(249,244,230,0.78); transition: color .2s; }
.fcol a:hover { color: var(--matcha-glow); }
.fcol a .em { font-family: var(--f-italic); font-style: italic; color: var(--matcha-bright); margin-right: 4px; }

.fcredit {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid rgba(249,244,230,0.12);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(249,244,230,0.55);
}
.fcredit .collab {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 13px;
  color: rgba(249,244,230,0.7);
}
.fcredit .collab strong { color: var(--matcha-glow); font-weight: 400; font-style: italic; }

.sd-credit {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-decoration: none;
  margin-left: auto;
}
.sd-label {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 12px;
  color: rgba(249,244,230,0.45);
  transition: color .2s;
}
.sd-by {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(249,244,230,0.6);
  transition: color .2s;
}
.sd-logo {
  height: 18px;
  width: auto;
  opacity: 0.6;
  transition: opacity .2s;
  display: block;
}
.sd-credit:hover .sd-label,
.sd-credit:hover .sd-by { color: rgba(249,244,230,0.9); }
.sd-credit:hover .sd-logo { opacity: 0.9; }

/* ---------- reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 1s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
.r1 { animation-delay: 0.05s; }
.r2 { animation-delay: 0.18s; }
.r3 { animation-delay: 0.32s; }
.r4 { animation-delay: 0.46s; }
.r5 { animation-delay: 0.60s; }

.scroll-rise {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.scroll-rise.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .scroll-rise { animation: none; transition: none; opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .whisk-wrap .ring { animation: none; }
  .open-pill .glow { animation: none; }
}

/* =============================================================
   RESPONSIVE — tighter spacing on tablets and phones
   ============================================================= */

/* large tablets / small desktops — fit the hero heading in viewport */
@media (max-width: 1200px) {
  .hero h1 { font-size: clamp(72px, 13.5vw, 195px); }
  /* shrink whisk so it doesn't crowd the heading */
  .whisk-wrap {
    width: clamp(160px, 18vw, 260px);
    height: clamp(160px, 18vw, 260px);
    top: clamp(50px, 6vw, 100px);
  }
}

/* tablet portrait and below */
@media (max-width: 1000px) {
  .menu-grid { grid-template-columns: repeat(3, 1fr); }
  .dessert-grid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: clamp(68px, 13vw, 160px); }
}

/* tablets and large phones */
@media (max-width: 900px) {
  /* nav: brand left, hamburger right */
  .nav { grid-template-columns: auto 1fr auto; gap: 14px; }
  .nav ul { display: none; }
  .nav .brand { grid-column: 1; margin-left: 90px; }
  .nav-toggle { display: flex; margin-right: 32px; }

  /* hero heading fits on tablet portrait */
  .hero h1 { font-size: clamp(60px, 14vw, 130px); }

  /* hero meta stacks */
  .hero-meta { grid-template-columns: 1fr; gap: 18px; }
  .hero-tagline { grid-column: 1 / -1; }
  .hero-side {
    grid-column: 1 / -1;
    border-left: none;
    border-top: 1px solid var(--rule);
    padding-left: 0;
    padding-top: 14px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px 40px;
  }
  .hero-side .row { flex-direction: column; gap: 2px; }
  .hero-side .row .v { text-align: left; max-width: 100%; }

  /* place cards stack */
  .pc-1, .pc-2, .pc-3 { grid-column: 1 / -1; }
  .place-card { min-height: 0; }

  /* ritual stacks */
  #ritual .photo, #ritual .copy { grid-column: 1 / -1; }
  #ritual .photo { aspect-ratio: 5 / 4; }

  /* visit blocks stack */
  .visit-block.where, .visit-block.hours, .visit-block.reach { grid-column: 1 / -1; }
}

/* phones */
@media (max-width: 720px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .dessert-grid { grid-template-columns: repeat(2, 1fr); }

  /* whisk too busy on phone, hide */
  .whisk-wrap { display: none; }

  /* footer collapses */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* small phones */
@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .nav .brand { margin-left: 0; }

  /* HERO — more compact */
  .hero { padding: 18px 0 32px; }
  .hero h1 {
    font-size: clamp(40px, 13.5vw, 68px);
    letter-spacing: -0.06em;
  }
  .hero-tagline { font-size: 22px; max-width: 100%; }
  .hero-side .row .v { max-width: 60%; }

  /* SECTION — major spacing reduction */
  section { padding: 56px 0; }
  .section-head { margin-bottom: 28px; gap: 14px; }
  .section-head .lockup {
    font-size: clamp(40px, 12vw, 96px);
    letter-spacing: -0.05em;
  }
  .head-row { margin-bottom: 24px; }

  /* MARQUEE */
  .marquee { padding: 14px 0; }
  .marquee-track { gap: 32px; animation-duration: 28s; }

  /* PLACE */
  .place-card { padding: 22px 20px; }
  .place-card h3 { font-size: 26px; margin: 12px 0 10px; }
  .place-card p { font-size: 14px; }

  /* MENU */
  .grades { gap: 8px; margin-bottom: 22px; }
  .grade { font-size: 13px; padding: 8px 14px; gap: 8px; }
  .menu-cat { margin-bottom: 40px; }
  .cat-head {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 22px;
    padding-bottom: 12px;
  }
  .cat-head h3 { font-size: 24px; }
  .cat-head .cat-note { text-align: left; font-size: 14px; }
  .menu-foot { padding: 16px 18px; grid-template-columns: 1fr; gap: 10px; }
  .menu-foot .price { font-size: 13px; }
  .legend { gap: 18px; margin-top: 14px; font-size: 12.5px; }

  /* DRINK CARDS — smaller for 2-col on phone */
  .drink { padding: 16px 12px 14px; }
  .drink .glass { width: 60px; height: 96px; margin-bottom: 12px; }
  .drink.is-mug .glass { width: 76px; height: 64px; }
  .drink.is-mug .glass::after { right: -12px; top: 16px; width: 16px; height: 30px; border-width: 5px; }
  .drink .name { font-size: 13px; min-height: 32px; margin-bottom: 2px; }
  .drink .price { font-size: 11.5px; margin-bottom: 6px; }

  /* RITUAL */
  #ritual .photo { aspect-ratio: 4 / 3; }
  #ritual .copy h3 { font-size: 28px; }
  #ritual .copy p { font-size: 14.5px; }
  #ritual .copy .price-block { padding: 16px 18px; }
  #ritual .copy .price-block .pv { font-size: 28px; }

  /* VISIT */
  .where .addr { font-size: 28px; }
  .check-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px 16px;
    margin-top: 18px;
  }
  .check-row .v { font-size: 18px; }
  .reach-list { gap: 10px; }
  .hours-list { gap: 6px; }

  /* VOICES */
  #voices blockquote { font-size: 26px; margin: 16px auto 18px; }
  #voices .gscore { margin-top: 18px; }

  /* FOOTER */
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-grid .brand-block .lockup { font-size: 64px; }
  .fcredit {
    margin-top: 32px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* very small phones */
@media (max-width: 380px) {
  .menu-grid { grid-template-columns: 1fr; gap: 12px; }
  .drink .glass { width: 72px; height: 110px; }
  .drink.is-mug .glass { width: 88px; height: 76px; }
  .drink .name { font-size: 14px; min-height: 0; }
  .drink .price { font-size: 12.5px; }

  /* compact open-status pill so it doesn't clip */
  .open-pill { font-size: 10.5px; padding: 6px 10px 6px 9px; gap: 6px; }
  .open-pill .glow { width: 6px; height: 6px; }
  .nav { padding: 12px 0; }
  .nav .brand { font-size: 20px; }
}
