/* ==========================================================================
   Kumo — Matcha & Tea House
   Rice paper, ink, matcha. Kyoto-meets-Copenhagen minimalism.
   ========================================================================== */

:root {
  --paper: #f4f1e8;
  --paper-2: #ebe6d8;
  --paper-3: #e2dccb;
  --ink: #1e1f1c;
  --ink-soft: #4d4f47;      /* 7.6:1 on paper */
  --matcha: #7a9a3a;        /* decorative / large only */
  --matcha-deep: #3f5a24;   /* 7.3:1 on paper */
  --matcha-night: #2f4419;
  --clay: #b5735a;          /* decorative / large only */
  --clay-deep: #8f4f38;     /* 5.6:1 on paper */
  --line: rgba(30, 31, 28, 0.14);
  --line-strong: rgba(30, 31, 28, 0.28);

  --f-display: "Shippori Mincho", "Noto Serif JP", "Hiragino Mincho ProN", Georgia, serif;
  --f-text: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1360px;
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 18px;
}

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

html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }

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

:focus-visible {
  outline: 2px solid var(--clay-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: 999px; text-decoration: none;
  transition: top .3s var(--ease);
}
.skip-link:focus { top: 16px; }

.jp { font-family: var(--f-display); font-feature-settings: "palt"; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
  position: relative;
}

/* ---------- Type ---------- */
.display, .h2, .footer__mark {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-wrap: balance;
}
.hero__title {
  font-size: clamp(3.3rem, 9.2vw, 9rem);
  line-height: 0.98;
  margin: 18px 0 26px;
}
.h2 {
  font-size: clamp(2.35rem, 5.2vw, 4.9rem);
  margin: 14px 0 26px;
}
.lead {
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 34ch;
}
.body {
  color: var(--ink-soft);
  max-width: 54ch;
}
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--matcha-deep);
  display: flex; align-items: center; gap: 12px;
}
.eyebrow .num {
  font-family: var(--f-display);
  letter-spacing: 0;
  font-size: 14px;
  color: var(--clay-deep);
  padding-right: 12px;
  border-right: 1px solid var(--line-strong);
}
.eyebrow--light { color: #d6e2b8; }
.eyebrow--light .num { color: #e9b9a5; border-color: rgba(244,241,232,.3); }
.mini {
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--matcha-deep); margin-bottom: 10px;
}

/* SplitText masks */
.split-line { padding-bottom: 0.06em; margin-bottom: -0.06em; }

/* ---------- Buttons ---------- */
.btn {
  --bh: 56px;
  position: relative;
  display: inline-flex; align-items: center; gap: 14px;
  min-height: var(--bh);
  padding: 0 26px 0 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600; font-size: 15px; letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease);
  will-change: transform;
}
.btn--sm { --bh: 44px; padding: 0 20px; font-size: 14px; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--matcha-deep); }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: #fff; }
.btn__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--clay);
  transition: transform .45s var(--ease);
}
.btn:hover .btn__dot { transform: scale(1.5); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  font-weight: 600; font-size: 15px;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 0 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow span { transition: transform .45s var(--ease); }
.link-arrow:hover span { transform: translateX(5px); }

/* ---------- Canvas / atmosphere ---------- */
#scene {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100lvh;
  z-index: 0;
  display: block;
  pointer-events: none;
}
html.has-motion #scene { opacity: 0; }
html.no-webgl #scene { display: none; }

.grain {
  position: fixed; inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2  0 0 0 0 .18  0 0 0 0 .12  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, .footer { position: relative; z-index: 1; }

/* ---------- Preloader ---------- */
.preloader { display: none; }
html.js .preloader {
  display: grid;
  position: fixed; inset: 0; z-index: 300;
  place-items: center;
  background: var(--paper);
  color: var(--ink);
}
html.boot-failed .preloader, html.is-loaded .preloader { display: none; }
.preloader__inner { display: grid; justify-items: center; gap: 10px; text-align: center; }
.preloader__enso { width: 116px; height: 116px; margin-bottom: 6px; }
.enso-path {
  fill: none; stroke: var(--ink); stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 340; stroke-dashoffset: 340;
}
.preloader__word { font-family: var(--f-display); font-size: 28px; letter-spacing: -0.01em; }
.preloader__word .jp { color: var(--matcha-deep); margin-right: 4px; }
.preloader__count {
  font-variant-numeric: tabular-nums;
  font-size: 13px; letter-spacing: .2em; color: var(--ink-soft);
}
.preloader__note { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Cursor ---------- */
.cursor { display: none; }
@media (pointer: fine) {
  html.has-motion .cursor {
    display: grid;
    place-items: center;
    position: fixed; left: 0; top: 0;
    z-index: 250;
    width: 14px; height: 14px;
    margin: -7px 0 0 -7px;
    pointer-events: none;
    opacity: 0;
  }
  .cursor__ring {
    position: absolute; inset: 0;
    border-radius: 50%;
    background: var(--ink);
    transition: transform .45s var(--ease), background-color .45s var(--ease);
  }
  .cursor__label {
    position: relative;
    font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--paper);
    opacity: 0; transform: scale(.6);
    transition: opacity .3s var(--ease), transform .45s var(--ease);
    white-space: nowrap;
  }
  .cursor.is-label .cursor__ring { transform: scale(5.4); background: var(--matcha-deep); }
  .cursor.is-label .cursor__label { opacity: 1; transform: scale(1); }
  .cursor.is-link .cursor__ring { transform: scale(2.4); background: var(--clay); }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: transform .6s var(--ease), background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(244, 241, 232, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-color: var(--line);
}
.nav.is-hidden { transform: translateY(-105%); }
.nav.on-dark { color: var(--paper); }
.nav.on-dark.is-scrolled { background: rgba(30, 31, 28, 0.6); border-color: rgba(244,241,232,.12); }
.nav.on-dark .btn--ink { background: var(--paper); color: var(--ink); }
.nav__inner {
  height: 100%;
  max-width: var(--maxw); margin: 0 auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: inline-flex; align-items: baseline; gap: 8px;
  text-decoration: none;
  min-height: 44px; align-items: center;
}
.brand__jp { font-family: var(--f-display); font-size: 26px; color: var(--matcha-deep); line-height: 1; }
.nav.on-dark .brand__jp { color: #c6d79a; }
.brand__name { font-family: var(--f-display); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.nav__links { display: flex; gap: clamp(16px, 2.2vw, 34px); }
.nav__links a {
  font-size: 14px; font-weight: 500; text-decoration: none;
  padding: 10px 0;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 6px) / 0 1px no-repeat;
  transition: background-size .45s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { background-size: 100% 1px; }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.bag {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 4px;
  font-size: 14px; font-weight: 500; text-decoration: none;
}
.bag__count {
  display: inline-grid; place-items: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; border: 1px solid currentColor;
  font-size: 12px; font-variant-numeric: tabular-nums;
}
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: transparent; cursor: pointer;
  position: relative;
}
.nav.on-dark .menu-toggle { border-color: rgba(244,241,232,.4); }
.menu-toggle__bar {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor;
  transition: transform .5s var(--ease);
}
.menu-toggle__bar:nth-of-type(1) { top: 18px; }
.menu-toggle__bar:nth-of-type(2) { top: 24px; }
html.menu-open .menu-toggle__bar:nth-of-type(1) { transform: translateY(3px) rotate(45deg); }
html.menu-open .menu-toggle__bar:nth-of-type(2) { transform: translateY(-3px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--paper);
  padding: calc(var(--nav-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: grid; gap: 4px; }
.mobile-menu a {
  font-family: var(--f-display); font-size: clamp(2rem, 9vw, 3rem);
  text-decoration: none; line-height: 1.25;
  display: flex; align-items: baseline; gap: 14px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a span { font-family: var(--f-text); font-size: 12px; letter-spacing: .2em; color: var(--clay-deep); }
.mobile-menu__foot { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
html.menu-open .nav { color: var(--ink); background: transparent; border-color: transparent; transform: none; }
html.menu-open .nav .brand__jp { color: var(--matcha-deep); }

/* ---------- Sections ---------- */
.sec { position: relative; }
.sec--scene { min-height: 100vh; min-height: 100svh; }
.sec--solid { z-index: 2; }

.copy { position: relative; max-width: 520px; }
.copy--wide { max-width: 600px; }
.copy--right { margin-left: auto; }

/* HERO */
.hero { display: flex; align-items: center; padding-top: var(--nav-h); }
.hero__wrap { padding-bottom: 12vh; }
.hero__copy { max-width: 640px; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 36px; }
.hero__vertical {
  position: absolute; right: var(--gutter); top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-size: 15px; letter-spacing: .5em;
  color: var(--ink-soft);
  opacity: .8;
}
.hero__meta {
  position: absolute; left: 0; right: 0; bottom: 28px;
  max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter);
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft);
}
.hero__scroll { display: inline-flex; align-items: center; gap: 12px; }
.hero__scroll-line {
  width: 48px; height: 1px; background: var(--line-strong); position: relative; overflow: hidden;
}
.hero__scroll-line::after {
  content: ""; position: absolute; inset: 0; background: var(--ink);
  transform: translateX(-100%);
  animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* OUR TEA */
.tea { padding: 22vh 0 18vh; }
.stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 28px; margin: 40px 0 36px;
  padding-top: 28px; border-top: 1px solid var(--line);
}
.stat dt {
  font-family: var(--f-display); font-size: clamp(2.4rem, 3.6vw, 3.3rem); line-height: 1;
  color: var(--matcha-deep); font-variant-numeric: tabular-nums;
  display: flex; align-items: baseline; gap: 6px;
}
.stat dt small { font-family: var(--f-text); font-size: 13px; letter-spacing: .08em; color: var(--ink-soft); }
.stat dd { font-size: 14px; color: var(--ink-soft); margin-top: 6px; }

.grades { border-top: 1px solid var(--line); }
.grade {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.grade h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.35rem; line-height: 1.2; }
.grade p { font-size: 14px; color: var(--ink-soft); }
.umami { display: inline-flex; gap: 5px; flex-shrink: 0; }
.umami i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--matcha-deep); }
.umami i.on { background: var(--matcha-deep); }

.garden {
  margin-top: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e2e3cc;
}
.garden figcaption {
  background: var(--paper-2);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
  padding: 12px 16px;
}

/* CEREMONY */
.ceremony { min-height: 0; }
.ceremony__pin {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 20px) 0 40px;
}
.ceremony__copy { max-width: 480px; }
.steps-meta { display: flex; align-items: center; gap: 18px; margin: 4px 0 24px; }
.steps-meta__count { font-size: 13px; letter-spacing: .14em; color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.steps-meta__count b { font-family: var(--f-display); font-size: 22px; color: var(--ink); font-weight: 500; letter-spacing: 0; }
.steps-meta__track { flex: 1; height: 1px; background: var(--line-strong); position: relative; overflow: hidden; }
.steps-meta__bar { position: absolute; inset: 0; background: var(--matcha-deep); transform-origin: 0 50%; transform: scaleX(0.25); }
.steps { display: grid; }
.step { grid-area: 1 / 1; }
.step__jp { color: var(--clay-deep); font-size: 15px; letter-spacing: .08em; }
.step__title { font-family: var(--f-display); font-weight: 500; font-size: clamp(2rem, 3.2vw, 2.8rem); line-height: 1.1; margin: 6px 0 12px; }
.step__text { color: var(--ink-soft); max-width: 42ch; }
html.has-motion .step:not(.is-active) { opacity: 0; visibility: hidden; }

/* MENU */
.menu { padding: 20vh 0 18vh; }
.menu-groups { display: grid; gap: 34px; margin-top: 40px; }
.menu-group__title {
  font-family: var(--f-display); font-weight: 500; font-size: 1.5rem;
  display: flex; align-items: baseline; gap: 12px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line-strong); margin-bottom: 6px;
}
.menu-group__title .jp { font-size: 14px; color: var(--clay-deep); }
.menu-list li {
  display: flex; align-items: baseline; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.mi__name { font-weight: 600; font-size: 16px; display: flex; flex-direction: column; }
.mi__name em { font-style: normal; font-weight: 400; font-size: 14px; color: var(--ink-soft); }
.mi__dots { flex: 1; border-bottom: 1px dotted var(--line-strong); transform: translateY(-6px); min-width: 20px; }
.mi__price { font-family: var(--f-display); font-size: 1.25rem; font-variant-numeric: tabular-nums; color: var(--matcha-deep); }

/* WAGASHI */
.wagashi { min-height: 160vh; padding: 18vh 0 12vh; }
.wagashi__wrap { min-height: calc(160vh - 30vh); display: flex; flex-direction: column; justify-content: space-between; gap: 40vh; }
.wagashi__head { text-align: center; max-width: 760px; margin: 0 auto; }
.wagashi__head .eyebrow { justify-content: center; }
.wagashi__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.wcard {
  padding: 22px 22px 24px;
  border-radius: var(--radius);
  background: rgba(244, 241, 232, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
}
.wcard__jp { color: var(--clay-deep); font-size: 14px; letter-spacing: .1em; }
.wcard h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.45rem; display: flex; justify-content: space-between; gap: 10px; margin: 4px 0 8px; }
.wcard__price { color: var(--matcha-deep); font-variant-numeric: tabular-nums; }
.wcard p:last-child { font-size: 15px; color: var(--ink-soft); }

/* WORKSHOPS */
.workshops {
  background: var(--matcha-deep);
  color: var(--paper);
  padding: 0 0 18vh;
  overflow: hidden;
}
.workshops .body { color: rgba(244, 241, 232, 0.86); }
.marquee { position: relative; overflow: hidden; }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee--band {
  border-bottom: 1px solid rgba(244,241,232,.16);
  padding: 26px 0;
  margin-bottom: 14vh;
}
.marquee--band .marquee__track span {
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 7vw, 6.2rem);
  line-height: 1;
  padding-right: 0.6em;
  white-space: nowrap;
  color: #e6d9c3;
}
.marquee--band .marquee__track span.o {
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 241, 232, 0.7);
  font-style: italic;
}
.workshops__wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.tatami { margin-top: 44px; border-radius: var(--radius); overflow: hidden; background: #2f4419; }
.classes { display: grid; gap: 18px; }
.class {
  background: rgba(244, 241, 232, 0.06);
  border: 1px solid rgba(244, 241, 232, 0.16);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
  transition: background-color .5s var(--ease), border-color .5s var(--ease);
}
.class:hover { background: rgba(244, 241, 232, 0.1); border-color: rgba(244, 241, 232, 0.32); }
.class__top { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.class__jp { color: #e9b9a5; letter-spacing: .1em; }
.class__seats { letter-spacing: .12em; text-transform: uppercase; color: #d6e2b8; font-size: 12px; font-weight: 600; }
.class h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin: 8px 0 6px; }
.class > p { color: rgba(244, 241, 232, 0.86); font-size: 15px; }
.class__meta { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin: 18px 0; padding: 14px 0; border-block: 1px solid rgba(244,241,232,.14); }
.class__meta dt { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #d6e2b8; }
.class__meta dd { font-size: 14px; }
.class__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.class__price { font-family: var(--f-display); font-size: 2rem; }

/* SHOP */
.shop { background: var(--paper); padding: 18vh 0 16vh; }
.shop__head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 56px; flex-wrap: wrap; }
.shop__note { max-width: 40ch; }
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.product__media {
  aspect-ratio: 1 / 1;
  background: var(--bg, var(--paper-2));
  border-radius: var(--radius);
  overflow: hidden;
  display: grid; place-items: center;
}
.product__media svg { width: 86%; height: 86%; transition: transform .8s var(--ease); }
.product:hover .product__media svg { transform: scale(1.05) translateY(-4px); }
.product__body { padding: 16px 4px 0; }
.product__body h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.35rem; }
.product__body p { font-size: 14px; color: var(--ink-soft); }
.product__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 10px; }
.product__price { font-family: var(--f-display); font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.add {
  min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; cursor: pointer;
  font-size: 14px; font-weight: 600;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.add:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.add.is-added { background: var(--matcha-deep); color: var(--paper); border-color: var(--matcha-deep); }

/* REVIEWS */
.reviews { background: var(--paper-2); padding: 16vh 0 16vh; overflow: hidden; }
.reviews__head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: 56px; }
.rating { text-align: right; }
.rating__num { font-family: var(--f-display); font-size: clamp(3.2rem, 6vw, 5rem); line-height: 1; color: var(--matcha-deep); font-variant-numeric: tabular-nums; }
.rating__num small { font-size: .4em; color: var(--ink-soft); }
.rating__meta { font-size: 14px; color: var(--ink-soft); }
.marquee--reviews .marquee__track { gap: 22px; padding: 0 11px; }
.review {
  width: clamp(280px, 30vw, 420px);
  flex-shrink: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 26px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 26px;
}
.review blockquote { font-family: var(--f-display); font-size: clamp(1.2rem, 1.6vw, 1.45rem); line-height: 1.4; }
.review__by { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--clay-deep); font-weight: 600; }
.marquee__toggle {
  display: block;
  margin: 28px auto 0;
  min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; cursor: pointer; font-size: 13px; font-weight: 600; letter-spacing: .08em;
}
.marquee__toggle:hover { background: var(--ink); color: var(--paper); }

/* VISIT */
.visit { display: flex; align-items: center; padding: 18vh 0; }
.visit__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin: 36px 0; padding-top: 26px; border-top: 1px solid var(--line); }
.visit address { line-height: 1.7; }
.hours { border-collapse: collapse; font-size: 15px; width: 100%; }
.hours th { text-align: left; font-weight: 600; padding: 3px 14px 3px 0; white-space: nowrap; vertical-align: top; }
.hours td { color: var(--ink-soft); padding: 3px 0; font-variant-numeric: tabular-nums; }
.visit__ctas { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }

/* FOOTER */
.footer { background: var(--ink); color: var(--paper); padding: 14vh 0 36px; z-index: 2; }
.footer__mark { font-size: clamp(4.5rem, 16vw, 15rem); line-height: .9; letter-spacing: -0.04em; margin-bottom: 9vh; }
.footer__mark .jp { color: #a9c46a; }
.footer .mini { color: #c6d79a; }
.footer__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 32px; border-top: 1px solid rgba(244,241,232,.16); }
.footer__grid p, .footer__grid li { color: rgba(244, 241, 232, 0.82); font-size: 15px; }
.footer a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease); }
.footer a:hover { background-size: 100% 1px; }
.socials { display: grid; gap: 2px; }
.socials a { display: inline-block; padding: 4px 0; }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 10vh; font-size: 13px; color: rgba(244,241,232,.7); }
.footer__base a { color: var(--paper); }

/* ---------- Motion guards ---------- */
html.has-motion [data-split],
html.has-motion [data-reveal],
html.has-motion [data-reveal-item],
html.has-motion [data-image-reveal],
html.has-motion [data-hero-title],
html.has-motion [data-hero-item] { visibility: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workshops__wrap { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .menu-toggle { display: inline-block; }
}

@media (max-width: 767px) {
  :root { --nav-h: 64px; }
  body { font-size: 16px; }
  .nav__cta { display: none; }
  .bag__label { display: none; }

  /* scene sits in the top of the viewport; copy floats on paper cards */
  .card-sm {
    background: rgba(244, 241, 232, 0.88);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 20px;
  }
  .copy, .copy--wide { max-width: none; }
  .hero { align-items: flex-end; }
  .hero__wrap { padding-bottom: 96px; }
  .hero__copy {
    background: linear-gradient(to bottom, rgba(244,241,232,0) 0%, rgba(244,241,232,.9) 22%);
    padding-top: 48px;
  }
  .hero__title { font-size: clamp(3rem, 15vw, 4.4rem); margin: 12px 0 18px; }
  .hero__vertical { display: none; }
  .hero__meta { bottom: 22px; font-size: 11px; }
  .hero__meta > span:first-child { display: none; }

  .tea { padding: 46vh 0 14vh; }
  .stats { gap: 18px; }
  .ceremony__pin { align-items: flex-end; padding-bottom: 28px; }
  .ceremony__copy { padding-top: 22px; }
  .ceremony .h2 { font-size: 2rem; margin-bottom: 14px; }
  .step__title { font-size: 1.8rem; }
  .step__text { font-size: 15px; }
  .menu { padding: 50vh 0 12vh; }
  .menu-list li { gap: 8px; }
  .wagashi { min-height: auto; padding: 14vh 0 10vh; }
  .wagashi__wrap { min-height: 0; gap: 48vh; }
  .wagashi__list { grid-template-columns: 1fr; gap: 14px; }
  .workshops__wrap { gap: 40px; }
  .class { padding: 22px 18px 18px; }
  .class__meta { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .class__foot { flex-wrap: wrap; }
  .products { gap: 14px; }
  .product__body h3 { font-size: 1.15rem; }
  .product__foot { flex-direction: column; align-items: flex-start; }
  .rating { text-align: left; }
  .visit { align-items: flex-end; padding: 48vh 0 10vh; }
  .visit__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .products { grid-template-columns: 1fr 1fr; }
  .product__media svg { width: 92%; height: 92%; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* Reduced motion: no pin, no marquee drift, everything visible */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .steps { gap: 26px; }
  .step { grid-area: auto; }
  .steps-meta { display: none; }
  .marquee__track { flex-wrap: wrap; width: auto; }
  .marquee--band .marquee__track span:nth-child(n+7) { display: none; }
  .marquee--reviews .marquee__track { justify-content: center; row-gap: 22px; }
  .marquee--reviews .review[aria-hidden="true"] { display: none; }
  .marquee__toggle { display: none; }
  .card-sm, .wcard {
    background: rgba(244, 241, 232, 0.9);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 22px;
  }
}

@media (max-width: 767px) {
  .wagashi__head {
    background: rgba(244, 241, 232, 0.88);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 18px;
  }
}
