/* ============================================================
   SHŌJI MATCHA — Design System (v2)
   "The circle" — clean whites + deep greens, one fresh matcha signal.
   Stone-milled, single-origin Uji. Soft rounded surfaces, editorial serif.
   ============================================================ */

:root {
  /* ---- Whites — clean, cool paper ---- */
  --paper:      #F6F2E8;   /* page background — warm washi white */
  --white:      #FFFFFF;   /* raised surfaces, cards */
  --tint:       #E3EDD4;   /* pale green wash / fills */

  /* ---- Greens — the brand ---- */
  --matcha:     #6E9A45;   /* fresh signal green — accent */
  --matcha-br:  #8FB85C;   /* brighter tint — on dark / highlights */
  --forest:     #1C4A2C;   /* deep green — primary brand */
  --pine:       #0E2114;   /* deepest green-black — text + dark surfaces */

  /* ---- Neutrals ---- */
  --stone:      #6E7468;   /* muted text / captions */
  --stone-soft: #A3A89C;   /* faint meta */

  /* ---- Lines / hairlines ---- */
  --line:         rgba(14, 33, 20, 0.12);
  --line-soft:    rgba(14, 33, 20, 0.07);
  --line-on-dark: rgba(244, 246, 240, 0.16);

  /* ---- Seal (traditional hanko vermilion — logo mark only) ---- */
  --seal:      #AF3E2B;
  --seal-deep: #8F3122;

  /* ---- Wood (shoji door frame & lattice) ---- */
  --wood:      #7A5A34;
  --wood-deep: #5A4126;

  /* ---- States ---- */
  --focus-ring: rgba(110, 154, 69, 0.16);
  --error:      #B4462F;
  --error-ring: rgba(180, 70, 47, 0.14);

  /* ---- Type ---- */
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body:    "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --font-jp:      "Zen Old Mincho", "Hiragino Mincho ProN", serif;
  --font-brush:   "Yuji Syuku", "Zen Old Mincho", "Hiragino Mincho ProN", serif;

  --display-xl: clamp(3.4rem, 9vw, 7.5rem);
  --display-lg: clamp(2.4rem, 5vw, 4rem);
  --display-md: clamp(1.8rem, 3.4vw, 2.8rem);
  --display-sm: clamp(1.4rem, 2.4vw, 1.9rem);
  --text-lede:  clamp(1.05rem, 1.5vw, 1.3rem);

  --tracking-display: -0.015em;
  --tracking-eyebrow:  0.24em;
  --tracking-jp:       0.3em;

  /* ---- Spacing (8px rhythm) ---- */
  --s-1: 0.5rem;  --s-2: 1rem;   --s-3: 1.5rem; --s-4: 2rem;
  --s-6: 3rem;    --s-8: 4rem;   --s-12: 6rem;  --s-16: 8rem;

  --section-pad:       clamp(3.5rem, 7vw, 6rem);
  --section-pad-tight: clamp(2.5rem, 5vw, 4rem);

  /* ---- Radii — soft & rounded (the circle, everywhere) ---- */
  --radius-sm:   12px;   /* inputs, small controls */
  --radius-md:   18px;   /* cards, panels */
  --radius-lg:   28px;   /* large bands / feature blocks */
  --radius-pill: 999px;  /* buttons, tags, chips */
  --radius-full: 50%;    /* the circle — marks, powder discs */

  /* ---- Shadows — soft, green-cast, only on hover ---- */
  --shadow-card: 0 30px 50px -30px rgba(14, 33, 20, 0.28);
  --shadow-soft: 0 12px 30px -18px rgba(14, 33, 20, 0.22);

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:  cubic-bezier(0.64, 0, 0.78, 0);
  --dur-fast: 180ms;
  --dur-med:  340ms;
  --dur-slow: 800ms;
  --dur-mill: 60s;

  /* ---- Z-index ---- */
  --z-nav: 100; --z-menu: 200; --z-transition: 1000;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--pine);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--forest); text-decoration: none; }
a:hover { color: var(--pine); }

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

/* ---------- Typography ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1;
  letter-spacing: var(--tracking-display);
  color: var(--pine);
}

.jp { font-family: var(--font-jp); }

.display-xl { font-family: var(--font-display); font-size: var(--display-xl); font-weight: 400; line-height: 1; letter-spacing: var(--tracking-display); }
.display-lg { font-family: var(--font-display); font-size: var(--display-lg); font-weight: 400; line-height: 1.02; letter-spacing: var(--tracking-display); }
.display-md { font-family: var(--font-display); font-size: var(--display-md); font-weight: 400; line-height: 1.05; }
.display-sm { font-family: var(--font-display); font-size: var(--display-sm); font-weight: 400; line-height: 1.08; }

.lede {
  font-size: var(--text-lede);
  line-height: 1.6;
  color: var(--stone);
  font-weight: 400;
}

.small { font-size: 0.85rem; color: var(--stone-soft); }

em.serif { font-family: var(--font-display); font-style: italic; color: var(--forest); }

/* ---------- Eyebrow (shared kicker) ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: var(--s-3);
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--matcha);
  flex-shrink: 0;
}
.eyebrow .jp-side {
  font-family: var(--font-jp);
  letter-spacing: var(--tracking-jp);
  color: var(--stone);
  font-weight: 500;
  text-transform: none;
}

/* ---------- Layout ---------- */
.container { width: min(1200px, 92vw); margin-inline: auto; }
.container--narrow { width: min(820px, 92vw); margin-inline: auto; }

.section { padding-block: var(--section-pad); position: relative; }
.section--tight { padding-block: var(--section-pad-tight); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }

.divider { border: none; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Buttons — rounded pills ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  min-height: 48px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid var(--forest);
  background: var(--forest);
  color: var(--white);
  border-radius: var(--radius-pill);
  transition: background var(--dur-med) var(--ease-out), color var(--dur-med) var(--ease-out),
    border-color var(--dur-med) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn:hover { background: var(--pine); border-color: var(--pine); color: var(--white); }
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus-ring); }

.btn--ghost {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}
.btn--ghost:hover { background: var(--forest); color: var(--white); }

.btn--light {
  background: var(--white);
  color: var(--pine);
  border-color: var(--white);
}
.btn--light:hover { background: var(--matcha-br); color: var(--pine); border-color: var(--matcha-br); }

.btn .arrow { transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* Text link with an underline that draws in on hover */
.link-line {
  position: relative;
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--forest);
  padding-bottom: 3px;
  transition: color var(--dur-fast) var(--ease-out);
}
.link-line:hover { color: var(--pine); }
.link-line::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-med) var(--ease-out);
}
.link-line:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Brand lockup — ring mark + serif wordmark ---------- */
.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand__mark { display: inline-flex; flex-shrink: 0; font-size: 1.6rem; }

/* Original brush mark — 障子 calligraphy + a vermilion 茶 hanko seal.
   Sized in em so a parent font-size scales the whole lockup. */
.logo-mark { display: inline-flex; align-items: flex-end; gap: 0.14em; line-height: 1; }
.logo-mark__kanji {
  font-family: var(--font-brush);
  font-weight: 400;
  font-size: 1em;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--pine);
}
.logo-mark__seal {
  font-family: var(--font-brush);
  font-size: 0.36em;
  line-height: 1;
  color: var(--paper);
  background: var(--seal);
  border-radius: 0.16em;
  padding: 0.18em 0.12em 0.1em;
  align-self: flex-end;
  transform: translateY(-0.12em);
}
.brand__word { display: flex; flex-direction: column; line-height: 1.05; }
.brand__word strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  color: var(--pine);
}
.brand__word span {
  font-family: var(--font-body);
  font-size: 0.58rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 2px;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
}
.nav.scrolled {
  background: rgba(246, 242, 232, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__inner {
  width: min(1280px, 94vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  list-style: none;
}
.nav__links a:not(.btn) {
  position: relative;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--stone);
  padding: 0.4rem 0;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav__links a:not(.btn):hover,
.nav__links a.active { color: var(--pine); }
.nav__links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1.5px;
  background: var(--matcha);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-med) var(--ease-out);
}
.nav__links a:not(.btn):hover::after,
.nav__links a.active::after { transform: scaleX(1); transform-origin: left; }

.nav__cta { padding: 0.6rem 1.3rem; min-height: 42px; font-size: 0.78rem; }
.nav__cta.active::after { display: none; }

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px; height: 48px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: calc(var(--z-menu) + 1);
}
.nav__toggle span {
  display: block;
  width: 26px; height: 2px;
  margin-inline: auto;
  background: var(--pine);
  border-radius: 2px;
  transition: transform var(--dur-med) var(--ease-out), opacity var(--dur-fast);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  background: var(--paper);
  display: flex;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-med) var(--ease-out), visibility var(--dur-med);
}
.menu.open { opacity: 1; visibility: visible; }
.menu ul { list-style: none; text-align: center; display: grid; gap: 1.15rem; margin: auto; padding: 5.5rem 1.5rem 3.5rem; }
.menu a {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 6.2vw, 2.5rem);
  color: var(--pine);
  transition: color var(--dur-fast);
}
.menu a:hover, .menu a.active { color: var(--forest); }
.menu .menu__jp {
  display: block;
  font-family: var(--font-jp);
  font-size: 0.8rem;
  letter-spacing: 0.5em;
  color: var(--stone-soft);
  margin-top: 0.2rem;
}

/* ---------- Shōji sliding-door page transition ---------- */
/* Two paper-screen panels slide apart to reveal, slide shut to cover. */
.doors {
  position: fixed;
  inset: 0;
  z-index: var(--z-transition);
  display: flex;
  pointer-events: none;
}
.door {
  position: relative;
  width: 50%;
  height: 100%;
  background:
    repeating-linear-gradient(90deg, rgba(90, 66, 38, 0.24) 0 1.5px, transparent 1.5px clamp(52px, 9vw, 92px)),
    repeating-linear-gradient(0deg,  rgba(90, 66, 38, 0.24) 0 1.5px, transparent 1.5px clamp(60px, 10vw, 104px)),
    linear-gradient(135deg, #FBF8EF 0%, var(--paper) 55%, #EFE8D6 100%);
  box-shadow: inset 0 0 0 8px var(--wood), inset 0 0 60px rgba(60, 44, 26, 0.12);
  transition: transform 1100ms var(--ease-out);
  will-change: transform;
}
.door--left  { transform-origin: left;  border-right: 4px solid var(--wood); }
.door--right { transform-origin: right; border-left:  4px solid var(--wood); }

.doors.open .door--left  { transform: translateX(-101%); }
.doors.open .door--right { transform: translateX(101%); }

.doors.closing { pointer-events: all; }
.doors.closing .door { transition-duration: 520ms; transition-timing-function: var(--ease-in); }
.doors.closing .door--left  { transform: translateX(0); }
.doors.closing .door--right { transform: translateX(0); }

/* No centered mark on the doors — the sliding panels carry the transition. */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: clamp(7rem, 12vw, 9rem) 0 clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
}
.hero__inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-areas:
    "lead brush"
    "body brush";
  column-gap: clamp(2rem, 5vw, 4rem);
  row-gap: 0;
  align-items: center;
  width: min(1200px, 92vw);
  margin-inline: auto;
}
.hero__lead { grid-area: lead; align-self: end; }
.hero__body { grid-area: body; align-self: start; }
.hero__brush { grid-area: brush; align-self: center; }
.hero h1 { margin-block: var(--s-3) var(--s-4); }
.hero h1 .accent { font-family: var(--font-display); font-style: italic; color: var(--forest); }
.hero .lede { max-width: 30rem; margin-bottom: var(--s-6); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* Brush calligraphy art — a large vertical 障子 with a vermilion 茶 seal,
   the hero counterpart of the logo mark. */
.brush-art {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(16rem, 32vw, 28rem);
}
.brush-art__mark { position: relative; display: inline-block; }
.brush-art__kanji {
  display: block;
  font-family: var(--font-brush);
  font-weight: 400;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: clamp(6rem, 17vw, 12.5rem);
  line-height: 0.98;
  letter-spacing: 0.06em;
  color: var(--pine);
}
.brush-art__seal {
  position: absolute;
  right: -0.7em;
  bottom: 0.3em;
  font-family: var(--font-brush);
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  line-height: 1;
  color: var(--paper);
  background: var(--seal);
  border-radius: 0.16em;
  padding: 0.2em 0.16em 0.12em;
}

.scroll-hint {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--stone-soft);
}
.scroll-hint::after {
  content: "";
  width: 1px; height: 44px;
  background: linear-gradient(var(--stone-soft), transparent);
  animation: drip 2.2s var(--ease-out) infinite;
}
@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative;
  padding: clamp(7rem, 13vw, 10rem) 0 clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}
.page-hero .watermark {
  position: absolute;
  top: 50%;
  right: -1%;
  transform: translateY(-50%);
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: clamp(7rem, 20vw, 16rem);
  line-height: 1;
  color: rgba(28, 74, 44, 0.05);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.page-hero h1 { max-width: 16ch; }
.page-hero .lede { max-width: 44rem; margin-top: var(--s-3); }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

.reveal-line {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s var(--ease-out);
}
.reveal-line.in { transform: scaleX(1); }

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}
.card .jp-num {
  font-family: var(--font-jp);
  font-size: 0.9rem;
  color: var(--matcha);
  letter-spacing: 0.2em;
}
.card h3 { margin-block: var(--s-1) var(--s-1); }
.card p { color: var(--stone); font-size: 0.92rem; }

/* ---------- Stats band (deep-green rounded panel) ---------- */
.stats { position: relative; }
.stats .stats__grid {
  position: relative;
  overflow: hidden;
  background: var(--pine);
  border-radius: var(--radius-lg);
  padding: clamp(2.4rem, 5vw, 3.6rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: left;
}
/* Shōji-lattice motif echoing the mark */
.stats .stats__grid::before {
  content: "";
  position: absolute;
  top: -1px; right: -1px;
  width: 240px; height: 200px;
  background:
    repeating-linear-gradient(90deg, rgba(143, 184, 92, 0.12) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(0deg,  rgba(143, 184, 92, 0.12) 0 1px, transparent 1px 34px);
  -webkit-mask-image: linear-gradient(215deg, #000, transparent 70%);
  mask-image: linear-gradient(215deg, #000, transparent 70%);
  pointer-events: none;
}
.stat { position: relative; }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1;
}
.stat .num sup { font-size: 0.36em; color: var(--matcha-br); vertical-align: super; margin-left: 2px; }
.stat .label {
  margin-top: 0.7rem;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 246, 240, 0.6);
}

/* ---------- Process timeline (Craft page) ---------- */
.timeline { position: relative; }
.timeline__track {
  position: absolute;
  left: clamp(20px, 5vw, 52px);
  top: 0; bottom: 0;
  width: 1px;
  background: var(--line);
}
.timeline__progress {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 0%;
  background: var(--matcha);
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: clamp(44px, 11vw, 110px) 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(2.2rem, 5vw, 4rem);
}
.step + .step { border-top: 1px solid var(--line); }
.step__marker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}
.step__dot {
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--matcha);
  transition: background var(--dur-med), transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med);
}
.step.in .step__dot { background: var(--matcha); transform: scale(1.15); box-shadow: 0 0 0 6px rgba(110, 154, 69, 0.14); }
.step__num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--stone-soft);
  line-height: 1;
}
.step__kanji {
  writing-mode: vertical-rl;
  font-family: var(--font-jp);
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--forest);
}
.step__body h2 { margin-bottom: var(--s-2); }
.step__body .fact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--s-3);
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--white);
  font-size: 0.8rem;
  color: var(--stone);
}
.step__body .fact strong { color: var(--forest); font-weight: 600; }

/* ---------- Grades (Products page) ---------- */
.grade {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--s-3);
}
.grade__swatch {
  aspect-ratio: 1.6;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.grade__swatch .powder {
  width: 96px; height: 96px;
  border-radius: 50%;
  transition: transform var(--dur-slow) var(--ease-out);
}
.grade:hover .powder { transform: scale(1.08); }
.grade--ceremonial .grade__swatch { background: linear-gradient(150deg, #EAF1DE, #D6E4C2); }
.grade--ceremonial .powder { background: radial-gradient(circle at 35% 30%, #8FB85C, #3E6B32 72%); box-shadow: 0 16px 34px -12px rgba(30, 60, 30, 0.5); }
.grade--premium .grade__swatch { background: linear-gradient(150deg, #EDF1DF, #DCE7C6); }
.grade--premium .powder { background: radial-gradient(circle at 35% 30%, #9DC066, #4E7A3C 72%); box-shadow: 0 16px 34px -12px rgba(30, 60, 30, 0.5); }
.grade--culinary .grade__swatch { background: linear-gradient(150deg, #EFF1DD, #E4E9C4); }
.grade--culinary .powder { background: radial-gradient(circle at 35% 30%, #AEBF6A, #5F7A40 72%); box-shadow: 0 16px 34px -12px rgba(30, 60, 30, 0.5); }

.grade__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: var(--s-2); }
.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  padding: 0.32rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--stone);
  background: transparent;
}

/* Spec table */
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.spec-table th, .spec-table td {
  text-align: left;
  padding: 1.1rem 1.2rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec-table thead th {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
}
.spec-table tbody th {
  font-weight: 400;
  color: var(--pine);
  font-family: var(--font-display);
  font-size: 1.3rem;
  white-space: nowrap;
}
.spec-table td { color: var(--stone); }
.spec-table tbody tr { transition: background var(--dur-fast); }
.spec-table tbody tr:hover { background: rgba(110, 154, 69, 0.08); }

/* ---------- CTA band (forest rounded panel) ---------- */
.cta-band { position: relative; }
.cta-band .container {
  position: relative;
  overflow: hidden;
  background: var(--forest);
  color: var(--paper);
  text-align: center;
  border-radius: var(--radius-lg);
  padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 4vw, 3rem);
}
.cta-band .container::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 300px; height: 300px;
  background:
    repeating-linear-gradient(90deg, rgba(143, 184, 92, 0.13) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(0deg,  rgba(143, 184, 92, 0.13) 0 1px, transparent 1px 38px);
  -webkit-mask-image: radial-gradient(circle at top right, #000, transparent 72%);
  mask-image: radial-gradient(circle at top right, #000, transparent 72%);
  pointer-events: none;
}
.cta-band h2 { color: var(--white); margin-bottom: var(--s-2); position: relative; }
.cta-band p { color: rgba(244, 246, 240, 0.78); max-width: 38rem; margin: 0 auto var(--s-6); position: relative; }
.cta-band .btn { position: relative; }
.cta-band .eyebrow { color: var(--matcha-br); }
.cta-band .eyebrow::before { background: var(--matcha-br); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  min-height: 58vh;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}
.contact-info {
  background: var(--pine);
  color: var(--paper);
  padding: clamp(2.2rem, 4.5vw, 3.4rem);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  position: relative;
  overflow: hidden;
}
.contact-info::after {
  content: "";
  position: absolute;
  bottom: 0; right: 0;
  width: 300px; height: 300px;
  background:
    repeating-linear-gradient(90deg, rgba(143, 184, 92, 0.12) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(0deg,  rgba(143, 184, 92, 0.12) 0 1px, transparent 1px 38px);
  -webkit-mask-image: radial-gradient(circle at bottom right, #000, transparent 72%);
  mask-image: radial-gradient(circle at bottom right, #000, transparent 72%);
  pointer-events: none;
}
.contact-info h2 { color: var(--white); }
.contact-info .info-block h3 {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--matcha-br);
  margin-bottom: 0.4rem;
}
.contact-info .info-block p, .contact-info .info-block a {
  color: rgba(244, 246, 240, 0.82);
  font-size: 0.95rem;
  font-weight: 400;
}
.contact-info .info-block a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }

.contact-form { padding: clamp(2.2rem, 4.5vw, 3.4rem); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.field { margin-bottom: var(--s-3); position: relative; }
.field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.4rem;
}
.field label .req { color: var(--matcha); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--pine);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
  appearance: none;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236E7468' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.4rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--matcha);
  box-shadow: 0 0 0 3px var(--focus-ring);
  background: var(--white);
}
.field.error input, .field.error select, .field.error textarea {
  border-color: var(--error);
  box-shadow: 0 0 0 3px var(--error-ring);
}
.field .msg {
  display: none;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--error);
}
.field.error .msg { display: flex; align-items: center; gap: 0.4rem; }
.field .hint { margin-top: 0.4rem; font-size: 0.8rem; color: var(--stone); }

.form-success {
  display: none;
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem);
}
.form-success.show { display: block; }
.form-success .success-mark {
  display: inline-flex;
  margin: 0 auto var(--s-3);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  animation: stamp 600ms var(--ease-out);
}
@keyframes stamp {
  0% { transform: scale(1.6); opacity: 0; }
  60% { transform: scale(0.96); opacity: 1; }
  100% { transform: scale(1); }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--pine);
  color: rgba(244, 246, 240, 0.7);
  padding: clamp(3rem, 6vw, 5rem) 0 2.5rem;
  position: relative;
  overflow: hidden;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--s-6);
  margin-bottom: var(--s-8);
}
.footer h4 {
  font-family: var(--font-body);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--matcha-br);
  margin-bottom: 1rem;
}
.footer ul { list-style: none; display: grid; gap: 0.5rem; }
.footer a { font-size: 0.92rem; font-weight: 400; color: rgba(244, 246, 240, 0.66); transition: color var(--dur-fast); }
.footer a:hover { color: var(--white); }
.footer .logo-mark__kanji { color: var(--paper); }
.footer .brand__word strong { color: var(--paper); }
.footer .brand__word span { color: var(--matcha-br); }
.footer__tagline { margin-top: 1.2rem; font-size: 0.92rem; font-weight: 400; max-width: 26rem; line-height: 1.7; color: rgba(244, 246, 240, 0.66); }
.footer__bottom {
  border-top: 1px solid var(--line-on-dark);
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(244, 246, 240, 0.45);
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 1rem;
  background: var(--white);
}
.marquee__track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: scroll-x 32s linear infinite;
}
.marquee span {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--stone);
  display: flex;
  align-items: center;
  gap: 3.5rem;
  white-space: nowrap;
}
.marquee span::after { content: "●"; color: var(--matcha); font-style: normal; font-size: 0.5rem; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- Story page extras ---------- */
.pillars { counter-reset: pillar; }
.pillar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: var(--s-6);
  align-items: start;
}
.pillar + .pillar { border-top: 1px solid var(--line); }
.pillar__kanji {
  font-family: var(--font-jp);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 500;
  color: var(--forest);
  line-height: 1;
  min-width: 1.4em;
}
.pillar h3 { margin-bottom: 0.6rem; }
.pillar p { color: var(--stone); max-width: 52rem; }

.quote-block {
  text-align: center;
  padding-block: clamp(4rem, 8vw, 7rem);
}
.quote-block blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.25;
  max-width: 24ch;
  margin: 0 auto var(--s-3);
  color: var(--pine);
}
.quote-block cite {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ---------- Recipes ---------- */
.recipe-cat + .recipe-cat { margin-top: var(--s-12); }
.recipe-cat__head { margin-bottom: var(--s-6); padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); }
.recipe-cat__head h2 { margin-top: 0.7rem; }
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.8rem; }
.recipe {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.recipe:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.recipe__top {
  position: relative;
  height: 150px;
  display: flex;
  align-items: flex-end;
  padding: 1.1rem 1.3rem;
  overflow: hidden;
}
.recipe__top--drink   { background: linear-gradient(150deg, #EAF1DE, #D6E4C2); }
.recipe__top--dessert { background: linear-gradient(150deg, #EDF1DF, #DCE7C6); }
.recipe__top--bake    { background: linear-gradient(150deg, #EFF1DD, #E4E9C4); }
.recipe__ghost {
  position: absolute;
  top: -0.4rem;
  right: 0.7rem;
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 6rem;
  line-height: 1;
  color: rgba(28, 74, 44, 0.12);
  pointer-events: none;
  user-select: none;
}
.recipe__tag {
  position: relative;
  font-family: var(--font-body);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.36rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--forest);
  border: 1px solid var(--line);
}
.recipe__body { padding: 1.9rem 2rem 2.1rem; display: flex; flex-direction: column; }
.recipe__body .jp-num { font-family: var(--font-jp); font-size: 0.9rem; color: var(--matcha); letter-spacing: 0.14em; }
.recipe__body h3 { font-size: clamp(1.6rem, 2.2vw, 2rem); margin: 0.6rem 0 0.8rem; }
.recipe__meta { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone-soft); margin-bottom: 1.3rem; }
.recipe__desc { color: var(--stone); font-size: 0.98rem; line-height: 1.65; margin-bottom: 0.4rem; }
.recipe__sub {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest);
  margin: 1.7rem 0 0.9rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
}
.recipe__list, .recipe__steps { margin: 0; list-style: none; padding-left: 0; }
.recipe__list li, .recipe__steps li { color: var(--stone); font-size: 0.98rem; line-height: 1.65; }
.recipe__list li { position: relative; padding-left: 1.3rem; margin-bottom: 0.55rem; }
.recipe__list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--matcha); }
.recipe__steps { counter-reset: step; }
.recipe__steps li { position: relative; padding-left: 2.1rem; margin-bottom: 0.75rem; }
.recipe__steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.02em;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--tint);
  color: var(--forest);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  display: grid;
  place-items: center;
}

/* ---------- Journal / blog ---------- */
.post { display: flex; flex-direction: column; padding: 1.9rem 2rem; }
.post__cat { display: inline-block; font-family: var(--font-body); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--forest); }
.post__meta { font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone-soft); margin: 0.55rem 0 0.9rem; }
.post h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); margin: 0.4rem 0 0.7rem; }
.post p { color: var(--stone); font-size: 0.97rem; line-height: 1.6; margin-bottom: 1.3rem; }
.post .link-line { margin-top: auto; }

.article-hero .container--narrow { max-width: 44rem; }
.article-hero .article-meta { font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone-soft); margin-top: var(--s-3); }
.prose { max-width: 44rem; margin-inline: auto; padding-block: var(--section-pad) var(--section-pad); }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.6rem; color: var(--stone); font-size: 1.1rem; line-height: 1.85; }
.prose h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 3.2vw, 2.5rem); line-height: 1.12; color: var(--pine); letter-spacing: var(--tracking-display); margin: 3.4rem 0 1.2rem; }
.prose h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.45rem, 2.4vw, 1.9rem); color: var(--pine); margin: 2.6rem 0 0.9rem; }
.prose ul { margin: 0 0 1.7rem; padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 1.5rem; margin-bottom: 0.75rem; color: var(--stone); font-size: 1.08rem; line-height: 1.75; }
.prose li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 6px; height: 6px; border-radius: 50%; background: var(--matcha); }
.prose a { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--pine); }
.prose strong { color: var(--pine); font-weight: 600; }
.prose blockquote { margin: 2.8rem 0; padding-left: 1.6rem; border-left: 3px solid var(--matcha); font-family: var(--font-display); font-style: italic; font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.4; color: var(--pine); }
.prose em.serif { font-family: var(--font-display); font-style: italic; color: var(--forest); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .stats .stats__grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }
}

@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__inner { padding-block: 0.85rem; }
  .brand__mark { font-size: 1.45rem; }
  .brand__word strong { font-size: 1.2rem; }
  .brand__word span { font-size: 0.55rem; letter-spacing: 0.28em; }
  .scroll-hint { display: none; }
  .hero { min-height: auto; }
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) 4.4rem;
    grid-template-areas:
      "lead brush"
      "body body";
    column-gap: 0.8rem;
  }
  .hero__lead { align-self: center; min-width: 0; }
  .hero h1 { font-size: clamp(2rem, 8.5vw, 2.9rem); }
  .hero__brush { align-self: center; min-width: 0; overflow: hidden; }
  .brush-art { min-height: auto; width: 100%; }
  .brush-art__mark { margin: 0 auto; }
  .brush-art__kanji { font-size: 2.5rem; }
  .brush-art__seal { right: 0; bottom: 0; font-size: 0.95rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .step { grid-template-columns: 44px 1fr; gap: 1.2rem; }
  .step__kanji { display: none; }
  .spec-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .spec-table { min-width: 640px; }
}

@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; gap: var(--s-4); }
  .stats .stats__grid { grid-template-columns: 1fr 1fr; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .doors { display: none; }
}
