/* ============================================================
   松風 SONGFENG — "a drop of matcha in water"
   Visual thesis: the page is a sheet of watercolour paper. Matcha ink
   blooms where the visitor moves and fades from deep to pale, the same
   way the six grades run from pale A to deep 6A.

   Type     Lora / Songti (display) · Poppins / system sans (body)
   Colour   paper #F2EEDC · pine ink #1D2913 · grade scale from data.js
   Motion   one ink canvas (hero) · intro drops · word reveals · brush
            stroke draw · everything static under reduced motion
   Used by index.html, 404.html, privacy.html, terms.html.
   ============================================================ */

@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("../fonts/Poppins-Regular.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("../fonts/Poppins-Medium.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("../fonts/Poppins-Bold.woff") format("woff"); }
@font-face { font-family: "Lora"; font-weight: 500; font-display: swap; src: url("../fonts/Lora-500.woff") format("woff"); }
@font-face { font-family: "Lora"; font-weight: 600; font-display: swap; src: url("../fonts/Lora-600.woff") format("woff"); }

/* ---------------- Tokens ---------------- */
:root {
  --s-25: 2px; --s-50: 4px; --s-75: 8px; --s-100: 12px; --s-200: 16px;
  --s-300: 24px; --s-400: 32px; --s-500: 40px; --s-600: 48px;
  --s-700: 64px; --s-800: 80px; --s-900: 96px; --s-1200: 128px;

  --r-sm: 4px; --r-md: 6px; --r-lg: 8px; --r-xl: 12px; --r-2xl: 16px; --r-3xl: 24px; --r-full: 9999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-ink: cubic-bezier(0.16, 1, 0.3, 1);

  --sans: "Poppins", "PingFang SC", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --serif: "Lora", "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong", "SimSun", Georgia, serif;

  --paper: #F2EEDC;
  --paper-2: #EAE4CD;
  --paper-3: #E2DBC0;
  --sheet: #F8F5EA;
  --line: rgba(29, 41, 19, 0.14);
  --ink: #1D2913;
  --muted: #5A6249;
  --matcha: #4F6B2A;
  --matcha-deep: #2D4A1C;
  --matcha-pale: #B9CC8F;
  --on-ink: #F2EEDC;
  --btn: #2D4A1C;
  --btn-ink: #F2EEDC;
  --nav-bg: rgba(248, 245, 234, 0.72);
  --wash-opacity: 0.9;
  --grain-opacity: 0.35;
  --focus: #4F6B2A;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #12160D;
  --paper-2: #181D12;
  --paper-3: #1F2517;
  --sheet: #1A1F14;
  --line: rgba(232, 228, 207, 0.14);
  --ink: #ECE8D4;
  --muted: #A7AE95;
  --matcha: #A9C47F;
  --matcha-deep: #CFE0AE;
  --matcha-pale: #4C6630;
  --on-ink: #12160D;
  --btn: #B9CC8F;
  --btn-ink: #12160D;
  --nav-bg: rgba(26, 31, 20, 0.72);
  --wash-opacity: 0.22;
  --grain-opacity: 0.12;
  --focus: #B9CC8F;
  color-scheme: dark;
}
:lang(zh-Hant) {
  --sans: "Poppins", "PingFang TC", "Noto Sans CJK TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  --serif: "Lora", "Songti TC", "Noto Serif CJK TC", "Source Han Serif TC", "PMingLiU", Georgia, serif;
}
:lang(ar) {
  --sans: "Poppins", "Noto Sans Arabic", "Geeza Pro", "Segoe UI", Tahoma, system-ui, sans-serif;
  --serif: "Lora", "Noto Naskh Arabic", "Amiri", "Geeza Pro", "Times New Roman", serif;
}

/* ---------------- Base ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 24px;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* paper grain over everything: the page reads as one sheet */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: var(--grain-opacity); mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35  0 0 0 0 0.33  0 0 0 0 0.25  0 0 0 0.35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] body::after { mix-blend-mode: screen; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--r-md); }
::selection { background: var(--matcha-pale); color: var(--ink); }

/* ---------------- Text styles ---------------- */
.display-1, .display-2, .display-3, .display-num, .heading-2, .heading-4 { font-family: var(--serif); font-weight: 600; }
.display-1 { font-size: 72px; line-height: 76px; letter-spacing: -0.02em; }
.display-2 { font-size: 48px; line-height: 60px; letter-spacing: -0.01em; font-weight: 500; }
.display-3 { font-size: 44px; line-height: 52px; letter-spacing: -0.01em; }
.display-num { font-size: 30px; line-height: 36px; font-variant-numeric: lining-nums tabular-nums; }
.heading-2 { font-size: 48px; line-height: 56px; }
.heading-4 { font-size: 30px; line-height: 36px; }
.heading-6 { font-size: 20px; line-height: 28px; font-weight: 600; }
.title-1 { font-size: 20px; line-height: 28px; font-weight: 500; }
.title-2 { font-size: 18px; line-height: 28px; font-weight: 500; }
.title-3 { font-size: 16px; line-height: 24px; font-weight: 500; }
.title-4 { font-size: 14px; line-height: 20px; font-weight: 500; }
.body-3 { font-size: 16px; line-height: 26px; }
.body-5 { font-size: 14px; line-height: 20px; font-weight: 500; }
.body-6 { font-size: 14px; line-height: 22px; }
.body-7 { font-size: 18px; line-height: 30px; }
.button-md { font-size: 16px; line-height: 24px; font-weight: 500; }
.button-sm { font-size: 14px; line-height: 20px; font-weight: 500; }
.caption-1 { font-size: 14px; line-height: 20px; font-weight: 500; }
.caption-2 { font-size: 14px; line-height: 20px; }
.caption-3 { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.caption-4 { font-size: 12px; line-height: 16px; font-weight: 500; }
.caption-5 { font-size: 12px; line-height: 16px; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
:lang(zh-Hans) :is(.display-1, .display-2, .display-3, .heading-2),
:lang(zh-Hant) :is(.display-1, .display-2, .display-3, .heading-2) { letter-spacing: 0.02em; line-height: 1.3; }
:lang(zh-Hans) .caption-3, :lang(zh-Hant) .caption-3 { letter-spacing: 0.24em; }
:lang(ar) :is(.display-1, .display-2, .display-3) { letter-spacing: 0; line-height: 1.45; }
:lang(ar) .caption-3 { letter-spacing: 0; }
:lang(ar) :is(body, .body-3, .body-7) { line-height: 1.8; }

/* ---------------- Layout ---------------- */
.shell { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--s-400); }
.section { position: relative; padding-block: var(--s-1200); }
.section--wash { background: var(--paper-2); }
/* The plant tour sits between two cream sections (grades above, the
   problem/answer block below). A wash there would have merged with the
   block underneath, so it gets the lighter sheet tone instead and reads as
   a brighter gallery band. */
.section--sheet { background: var(--sheet); }
.section__head { max-width: 720px; margin-block-end: var(--s-700); display: grid; gap: var(--s-200); }
.eyebrow { color: var(--matcha); display: inline-flex; align-items: center; gap: var(--s-100); }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.skip-link {
  position: absolute; inset-inline-start: var(--s-200); top: var(--s-200); z-index: 100;
  padding: var(--s-75) var(--s-100); border-radius: var(--r-lg); background: var(--btn); color: var(--btn-ink);
  transform: translateY(-200%); transition: transform 300ms var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------------- Buttons & links ---------------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--s-75);
  padding: var(--s-75) var(--s-200); border-radius: var(--r-full); border: 1px solid transparent; white-space: nowrap;
  overflow: hidden; isolation: isolate;
  transition: transform 300ms var(--ease), background-color 300ms var(--ease), color 300ms var(--ease), border-color 300ms var(--ease);
}
.btn--lg { padding: var(--s-100) var(--s-400); }
.btn--primary { background: var(--btn); color: var(--btn-ink); }
/* hover: ink spreads inside the button from the left */
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--matcha); transform: scaleX(0); transform-origin: left center;
  transition: transform 500ms var(--ease-ink);
}
[dir="rtl"] .btn--primary::before { transform-origin: right center; }
.btn--primary:hover::before { transform: scaleX(1); }
:root[data-theme="dark"] .btn--primary::before { background: var(--matcha-deep); }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: var(--sheet); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn:active { transform: scale(0.98); }
.btn svg { width: 16px; height: 16px; flex: none; }
.link-arrow { display: inline-flex; align-items: center; gap: var(--s-75); color: var(--matcha); background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; padding-block-end: var(--s-25); transition: background-size 500ms var(--ease-ink); }
.link-arrow:hover { background-size: 100% 1px; }
[dir="rtl"] .link-arrow { background-position: 100% 100%; }
.link-arrow svg { width: 16px; height: 16px; transition: transform 300ms var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
[dir="rtl"] .flip { transform: scaleX(-1); }
[dir="rtl"] .link-arrow:hover svg { transform: scaleX(-1) translateX(4px); }

/* ---------------- Navigation ----------------
   The pill used to size itself to its content, so it sat in the middle of
   the window at ~780px while the inner pages ran a 1240px bar — the two
   navs visibly disagreed about where the page edges are. The wrapper now
   pads by the same gutter the inner pages use, and the pill fills up to
   the same 1240px, so both navs start and end on the same x. */
.nav-wrap { position: fixed; inset-inline: 0; top: var(--s-200); z-index: 50; display: flex; justify-content: center; padding-inline: clamp(1.15rem, 4vw, 3.75rem); pointer-events: none; }
.nav {
  pointer-events: auto; display: flex; align-items: center; gap: var(--s-300);
  width: min(100%, 1240px);
  padding: var(--s-75) var(--s-75) var(--s-75) var(--s-200);
  border: 1px solid var(--line); border-radius: var(--r-full); background: var(--nav-bg);
  -webkit-backdrop-filter: blur(14px) saturate(130%); backdrop-filter: blur(14px) saturate(130%);
}
[dir="rtl"] .nav { padding: var(--s-75) var(--s-200) var(--s-75) var(--s-75); }
.brand { display: inline-flex; align-items: center; gap: var(--s-75); }
.brand__mark { width: auto; height: 44px; }
.brand__name { display: grid; justify-items: start; gap: var(--s-25); }
.brand__word { width: auto; height: 24px; }
.brand__en { font-size: 11px; line-height: 12px; font-weight: 500; letter-spacing: 0.28em; color: var(--muted); }
.brand__lockup { width: auto; height: 96px; }
.logo-d { display: none; }
:root[data-theme="dark"] .logo-l { display: none; }
:root[data-theme="dark"] .logo-d { display: block; }
.nav__links { display: flex; gap: var(--s-50); margin-inline-start: auto; }
.nav__links a { padding: var(--s-75) var(--s-100); border-radius: var(--r-full); color: var(--muted); transition: color 300ms var(--ease), background-color 300ms var(--ease); }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); background: rgba(79, 107, 42, 0.1); }
.nav__actions { display: flex; align-items: center; gap: var(--s-50); }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: var(--r-full); color: var(--muted); transition: color 300ms var(--ease), background-color 300ms var(--ease); }
.icon-btn:hover { color: var(--ink); background: rgba(79, 107, 42, 0.1); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.lang { position: relative; }
.lang__btn { display: inline-flex; align-items: center; gap: var(--s-50); height: 40px; padding-inline: var(--s-100); border-radius: var(--r-full); color: var(--muted); transition: color 300ms var(--ease), background-color 300ms var(--ease); }
.lang__btn:hover, .lang__btn[aria-expanded="true"] { color: var(--ink); background: rgba(79, 107, 42, 0.1); }
.lang__btn svg { width: 20px; height: 20px; }
.lang__menu {
  position: absolute; top: calc(100% + var(--s-75)); inset-inline-end: 0; min-width: 176px;
  padding: var(--s-75); border: 1px solid var(--line); border-radius: var(--r-2xl); background: var(--sheet);
  box-shadow: 0 18px 50px rgba(29, 41, 19, 0.14);
  opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity 300ms var(--ease), transform 500ms var(--ease);
}
.lang__menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
.lang__menu a { display: flex; justify-content: space-between; align-items: center; gap: var(--s-200); padding: var(--s-75) var(--s-100); border-radius: var(--r-lg); transition: background-color 300ms var(--ease); }
.lang__menu a:hover { background: var(--paper-2); }
.lang__menu a[aria-current="true"] { color: var(--matcha); }
.lang__menu a[aria-current="true"]::after { content: ""; width: 8px; height: 8px; border-radius: var(--r-full); background: var(--matcha); }
.nav .btn--primary { padding: var(--s-75) var(--s-200); }
.burger { display: none; }
.burger span { position: relative; width: 18px; height: 12px; display: block; }
.burger i { position: absolute; inset-inline: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform 500ms var(--ease), opacity 300ms var(--ease); }
.burger i:nth-child(1) { top: 0; } .burger i:nth-child(2) { top: 5px; } .burger i:nth-child(3) { top: 10px; }
.is-menu-open .burger i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.is-menu-open .burger i:nth-child(2) { opacity: 0; }
.is-menu-open .burger i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; gap: var(--s-75);
  padding: var(--s-1200) var(--s-300) var(--s-400);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  opacity: 0; pointer-events: none; transition: opacity 300ms var(--ease);
}
.is-menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
.mobile-menu > * { opacity: 0; transform: translateY(24px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.is-menu-open .mobile-menu > * { opacity: 1; transform: none; }
.is-menu-open .mobile-menu > *:nth-child(2) { transition-delay: 60ms; }
.is-menu-open .mobile-menu > *:nth-child(3) { transition-delay: 120ms; }
.is-menu-open .mobile-menu > *:nth-child(4) { transition-delay: 180ms; }
.is-menu-open .mobile-menu > *:nth-child(5) { transition-delay: 240ms; }
.mobile-menu a.heading-4 { padding-block: var(--s-75); }
.mobile-menu .btn { margin-block-start: var(--s-300); }
.mobile-menu__langs { display: flex; flex-wrap: wrap; gap: var(--s-75); margin-block-start: var(--s-300); }
.mobile-menu__langs a { padding: var(--s-75) var(--s-100); border: 1px solid var(--line); border-radius: var(--r-full); }
.mobile-menu__langs a[aria-current="true"] { border-color: var(--matcha); color: var(--matcha); }

/* ---------------- Hero ---------------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding-block: calc(var(--s-1200) + var(--s-200)) var(--s-1200); }
.hero__paper { position: absolute; inset: 0; pointer-events: none; }
.wash { position: absolute; opacity: var(--wash-opacity); user-select: none; }
.wash--tr { top: 0; inset-inline-end: 0; width: min(52vw, 760px); }
.wash--bl { bottom: 0; inset-inline-start: 0; width: min(48vw, 700px); }
[dir="rtl"] .wash--tr, [dir="rtl"] .wash--bl { transform: scaleX(-1); }
.ink-field { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ink-field canvas { opacity: 0; transition: opacity 1200ms var(--ease); }
.ink-field.is-live canvas { opacity: 1; }
.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--s-700); align-items: center; }
.hero__copy { display: grid; gap: var(--s-300); }
.hero__title .line { display: block; }
/* a soft paper halo keeps the headline legible when ink drifts behind it */
.hero__title, .hero__sub { text-shadow: 0 0 24px var(--paper), 0 0 2px var(--paper); max-width: 680px; }
.hero__title .line + .line { color: var(--matcha); }
.hero__sample { margin: 0; color: var(--ink); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-300); margin-block-start: var(--s-75); }
.hero__proof { display: flex; flex-wrap: wrap; gap: var(--s-300) var(--s-600); padding-block-start: var(--s-300); margin-block-start: var(--s-200); border-block-start: 1px solid var(--line); }
.hero__proof div { display: flex; flex-direction: column; gap: var(--s-25); }
.hero__proof dd { order: -1; }
.hero__emblem { position: relative; justify-self: center; width: min(100%, 440px); }
.hero__emblem img { width: 100%; filter: drop-shadow(0 30px 40px rgba(45, 74, 28, 0.08)); }
.hero__hint {
  position: absolute; z-index: 2; inset-inline-start: 50%; bottom: var(--s-400); transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: var(--s-75); padding: var(--s-75) var(--s-200);
  border: 1px solid var(--line); border-radius: var(--r-full); background: var(--nav-bg);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--muted);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
[dir="rtl"] .hero__hint { transform: translateX(50%); }
.hero__hint svg { width: 16px; height: 16px; color: var(--matcha); animation: drip 2.4s var(--ease) infinite; }
.hero__hint.is-done { opacity: 0; transform: translate(-50%, 8px); pointer-events: none; }
@keyframes drip { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(3px); } }

/* intro choreography: lines settle like ink into paper */
.js-intro [data-intro] { opacity: 0; transform: translateY(24px); filter: blur(6px); }
.js-intro.is-ready [data-intro] { opacity: 1; transform: none; filter: none; transition: opacity 1000ms var(--ease-ink), transform 1000ms var(--ease-ink), filter 1000ms var(--ease-ink); }
.js-intro.is-ready [data-intro]:nth-child(1) { transition-delay: 100ms; }
.js-intro.is-ready .hero__title .line:nth-child(1) { transition-delay: 220ms; }
.js-intro.is-ready .hero__title .line:nth-child(2) { transition-delay: 360ms; }
.js-intro.is-ready .hero__sub { transition-delay: 520ms; }
.js-intro.is-ready .hero__cta { transition-delay: 640ms; }
.js-intro.is-ready .hero__proof { transition-delay: 760ms; }
.js-intro.is-ready .hero__emblem { transition-delay: 300ms; transition-duration: 1600ms; }

/* ---------------- Story (tagline reveal) ---------------- */
/* The name section now sits between the grade grid (paper) and the
   problem/answer block (wash). On its old wash background it merged with
   the block below, so it takes the lighter sheet tone, the same band the
   plant tour uses. */
.story { position: relative; padding-block: var(--s-1200); background: var(--sheet); }
.story__inner { max-width: 880px; display: grid; gap: var(--s-300); }
.story__text .w { color: color-mix(in srgb, var(--ink) 22%, transparent); transition: color 700ms var(--ease-ink); }
.story__text .w.is-on { color: var(--ink); }
.story__note { max-width: 560px; }

/* ---------------- Split heading reveal ---------------- */
[data-split] .sw { display: inline-block; opacity: 0; transform: translateY(0.4em); filter: blur(4px); transition: opacity 800ms var(--ease-ink), transform 800ms var(--ease-ink), filter 800ms var(--ease-ink); }
[data-split].is-in .sw { opacity: 1; transform: none; filter: none; }

/* ---------------- Grades · light → deep ---------------- */
.scale { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s-200); }
.scale__bar { height: 10px; border-radius: var(--r-full); transform-origin: left center; }
[dir="rtl"] .scale__bar { transform-origin: right center; }
.scale.reveal .scale__bar { transform: scaleX(0); transition: transform 1400ms var(--ease-ink) 200ms; }
.scale.reveal.is-in .scale__bar { transform: none; }
.scale__note { margin-block: var(--s-100) var(--s-600); }
.grades { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-200); }
.grade {
  position: relative; display: flex; flex-direction: column; gap: var(--s-100);
  padding: var(--s-200) var(--s-200) var(--s-300); border-radius: var(--r-2xl);
  background: var(--sheet); border: 1px solid var(--line);
  transition: transform 500ms var(--ease), box-shadow 500ms var(--ease), border-color 300ms var(--ease);
}
.grade:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(29, 41, 19, 0.12); border-color: transparent; }
.grade__media { position: relative; aspect-ratio: 1; display: grid; place-items: center; margin: calc(-1 * var(--s-75)) calc(-1 * var(--s-75)) 0; border-radius: var(--r-xl); overflow: hidden; }
.grade__media::before { content: ""; position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(closest-side, var(--tone) 0%, transparent 100%); opacity: 0.32; transform: scale(0.6); transition: transform 900ms var(--ease-ink), opacity 900ms var(--ease-ink); }
.grade:hover .grade__media::before { transform: scale(1.35); opacity: 0.45; }
.grade__media img { position: relative; width: 92%; transform: translateY(6%); transition: transform 700ms var(--ease); }
.grade:hover .grade__media img { transform: translateY(2%) scale(1.04); }
/* The grade letter and its colour dot sit together as one unit, centred in
   the card. The letter keeps a fixed-width slot, so the unit is the same
   width on all six cards and the dots still line up in one column even
   though "A" is narrower than "6A". */
.grade__head { display: flex; align-items: center; justify-content: center; gap: var(--s-75); }
.grade__letter { font-family: var(--serif); font-size: 36px; line-height: 40px; font-weight: 600; min-inline-size: 1.3em; text-align: center; }
.grade__swatch { width: 14px; height: 14px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 3px var(--sheet), 0 0 0 4px var(--line); flex: none; }
/* Two lines are reserved for the use label and for the dosage line: the
   copy wraps at different points depending on language and font, and
   without this the divider and the "View grade" link drifted a line or
   two apart from card to card. */
.grade .title-3 { min-block-size: 3em; }
.grade__dose {
  display: flex; align-items: flex-start; gap: var(--s-75);
  margin-block-start: auto;
  min-block-size: calc(var(--s-100) + 2.95em);
  padding-block-start: var(--s-100); border-block-start: 1px solid var(--line);
}
.grade__dose svg { width: 14px; height: 14px; color: var(--matcha); flex: none; margin-block-start: 0.2em; }
.grade .link-arrow { margin-block-start: var(--s-50); }
.grades__foot { margin-block-start: var(--s-500); display: flex; justify-content: center; }

/* ---------------- Problem / solution ---------------- */
.ps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-700); }
.ps__col { display: grid; gap: var(--s-300); align-content: start; }
.ps__list { display: grid; gap: var(--s-300); counter-reset: ps; }
.ps__list li { position: relative; padding-inline-start: var(--s-500); counter-increment: ps; }
.ps__list li::before { position: absolute; inset-inline-start: 0; top: 0; font-family: var(--serif); font-weight: 600; font-size: 14px; content: "0" counter(ps); }
.ps__col--bad li { color: var(--muted); }
.ps__col--bad li::before { color: var(--muted); }
/* The "answer" column breaks out of the text column as a tinted panel: equal
   padding and negative margin push the box outward while keeping its contents
   on the same baseline as the column beside it.
   The inline bleed is --s-400 (32px), not --s-500 (40px), because .shell only
   has 32px of padding between 961 and 1255 — a 40px bleed hung 8px past the
   right edge of the page and put a horizontal scrollbar on the home page for
   that whole band. Padding is reduced with it so the text inside stays aligned
   with the left column. Below 960 the layout is single-column and this resets
   to margin 0 anyway. */
.ps__col--good { padding: var(--s-500) var(--s-400); margin: calc(-1 * var(--s-500)) calc(-1 * var(--s-400)); border-radius: var(--r-3xl); background: var(--sheet); }
.ps__col--good li::before { color: var(--matcha); }

/* The .chain photo grid lived here. The whole "garden to powder" band was
   removed on request, and with it .chain / .chain__img / .chain__item, plus the
   .proof / .stats / .certs rules that had already gone earlier. Nothing on the
   home page uses those names now; .chain__no elsewhere is a different component
   that lives in styles.css and is untouched. */

/* ---------------- Plant tour (real photos) ----------------
   Moved here from the value-chain page and placed before the grade system, so a
   buyer sees a working plant before choosing a grade. The four photographs ran
   with a blur filter for a while; that is gone and they now sit at native
   sharpness, so there is no longer a `scale()` holding the blur back from the
   card corners either. */
#plant .section__head { max-width: none; }
/* The lead keeps the wider measure the heading now uses, but stays ragged-right:
   it was set flush on both edges when the block lived on the value-chain page,
   and in Chinese that spreads the characters of whichever line breaks early —
   here the first line of the lead came out with visible gaps around 「每一批」.
   Justified CJK needs inter-character justification control the browser does not
   give us, so the block goes back to natural alignment. */
#plant .section__head .body-7 {
  max-width: 700px;
  hyphens: none;
}
/* Longest heading on the page — 56 characters in English, 22 in Chinese. Inside
   the usual 720px head the Chinese column broke right through 「您的」, and no
   line-break property can move that break: the reveal animation wraps every
   character in its own inline-block span, and each inline block is its own
   break opportunity. Letting the heading use the full column puts both languages
   on one line at 1440 without changing the type size. */
.fac { display: grid; gap: var(--s-500); }
.fac figure { margin: 0; display: grid; gap: var(--s-200); }
.fac__media { overflow: hidden; border-radius: var(--r-2xl); background: var(--paper-2); }
.fac__media img {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
.fac__hero .fac__media img { aspect-ratio: 21 / 9; }
.fac__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-500); }
.fac__row .fac__media img { aspect-ratio: 4 / 3; }
.fac figcaption { display: flex; gap: var(--s-75); align-items: baseline; }
.fac figcaption b { font-family: var(--serif); color: var(--matcha); font-weight: 600; }

/* ---------------- Benefits ---------------- */
.benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-500); }
.benefit { display: grid; gap: var(--s-100); align-content: start; padding-block-start: var(--s-300); border-block-start: 1px solid var(--ink); }
.benefit__n { font-family: var(--serif); font-size: 14px; font-weight: 600; color: var(--matcha); }

/* ---------------- Steps on a brush stroke ---------------- */
.steps { position: relative; }
.steps__brush { position: absolute; inset-inline: 0; top: 4px; width: 100%; height: 48px; overflow: visible; }
.steps__brush path { fill: none; stroke: var(--matcha); stroke-width: 7; stroke-linecap: round; opacity: 0.55; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1800ms var(--ease-ink); vector-effect: non-scaling-stroke; }
.steps.is-in .steps__brush path { stroke-dashoffset: 0; }
[dir="rtl"] .steps__brush { transform: scaleX(-1); }
.steps__list { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-600); }
.step { display: grid; gap: var(--s-100); align-content: start; opacity: 0; transform: translateY(16px); transition: opacity 800ms var(--ease-ink), transform 800ms var(--ease-ink); }
.steps.is-in .step { opacity: 1; transform: none; }
.steps.is-in .step:nth-child(2) { transition-delay: 400ms; }
.steps.is-in .step:nth-child(3) { transition-delay: 800ms; }
.step__n { width: 56px; height: 56px; display: grid; place-items: center; margin-block-end: var(--s-200); border-radius: 50%; background: var(--paper); border: 1px solid var(--matcha); color: var(--matcha); font-family: var(--serif); font-size: 24px; font-weight: 600; }
.no-js .step { opacity: 1; transform: none; }

/* ---------------- FAQ ---------------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--s-700); align-items: start; }
.faq__grid .section__head { position: sticky; top: var(--s-1200); }
.faq { display: grid; }
.faq details { border-block-end: 1px solid var(--line); }
.faq details:first-child { border-block-start: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s-300); padding: var(--s-300) 0; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--matcha); }
.faq summary svg { width: 20px; height: 20px; flex: none; color: var(--matcha); transition: transform 500ms var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details > div { padding: 0 0 var(--s-300); color: var(--muted); max-width: 640px; }

/* ---------------- CTA ---------------- */
.cta { position: relative; overflow: hidden; border-radius: var(--r-3xl); background: var(--matcha-deep); color: #F2EEDC; padding: var(--s-900) var(--s-700); }
:root[data-theme="dark"] .cta { background: #1F2A15; }
.cta__wash { position: absolute; inset-inline-end: -8%; bottom: -20%; width: 60%; opacity: 0.35; mix-blend-mode: screen; filter: saturate(1.2) brightness(1.4); }
[dir="rtl"] .cta__wash { transform: scaleX(-1); }
.cta__body { position: relative; max-width: 640px; display: grid; gap: var(--s-300); justify-items: start; }
.cta__body p { opacity: 0.85; }
.cta .btn--paper { background: #F2EEDC; color: #1D2913; }
.risk { display: flex; flex-wrap: wrap; gap: var(--s-75) var(--s-300); opacity: 0.8; }
.risk li { display: inline-flex; align-items: center; gap: var(--s-75); }
.risk li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #B9CC8F; }

/* ---------------- Footer ---------------- */
.footer { padding-block: var(--s-800) var(--s-400); border-block-start: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--s-400); }
.footer__brand { display: grid; gap: var(--s-200); align-content: start; max-width: 320px; }
.footer h2 { margin-block-end: var(--s-200); }
.footer ul { display: grid; gap: var(--s-100); }
.footer ul li { color: var(--muted); }
.footer ul a { color: var(--muted); transition: color 300ms var(--ease); }
.footer ul a:hover { color: var(--ink); }
.footer__contact { display: grid; gap: var(--s-50); color: var(--muted); }
.footer__contact a { transition: color 300ms var(--ease); }
.footer__contact a:hover { color: var(--ink); }
.footer__bottom { margin-block-start: var(--s-600); padding-block-start: var(--s-300); border-block-start: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-200); color: var(--muted); }
.footer__legal { display: flex; gap: var(--s-300); }
.footer__legal a:hover { color: var(--ink); }
.placeholder { padding-inline: var(--s-50); border-radius: var(--r-md); background: var(--paper-2); font-variant-numeric: tabular-nums; }

/* ---------------- Simple pages (404 / legal) ---------------- */
.page { min-height: 70vh; padding-block: calc(var(--s-1200) + var(--s-400)) var(--s-900); }
.page__inner { max-width: 680px; display: grid; gap: var(--s-300); }
.page__inner--center { margin-inline: auto; text-align: center; justify-items: center; }
.page .hero__cta { justify-content: center; }

/* Legal pages — numbered sections under the page title. 680px is the right
   measure for these: long enough to read, short enough not to lose the line. */
.legal { display: grid; gap: var(--s-400); margin-block-start: var(--s-200); }
.legal__section { display: grid; gap: var(--s-100); }
.legal__section p { margin: 0; }

/* ---------------- Generic reveal ---------------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 900ms var(--ease-ink), transform 900ms var(--ease-ink); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal, .no-js [data-split] .sw { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .step, [data-split] .sw, .js-intro [data-intro] { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .scale.reveal .scale__bar { transform: none; transition: none; }
  .steps__brush path { stroke-dashoffset: 0; transition: none; }
  .story__text .w { color: var(--ink); transition: none; }
  .hero__hint, .hero__hint svg { animation: none; }
  .mobile-menu > * { transform: none; }
  .btn:hover, .grade:hover { transform: none; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1180px) {
  .grades { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .nav__links, .nav .btn { display: none; }
  .nav .lang__btn { width: 40px; padding: 0; justify-content: center; }
  .nav .lang__btn [data-lang-current] { display: none; }
  .burger { display: inline-grid; }
  .nav { gap: var(--s-200); }
  .shell { padding-inline: var(--s-300); }
  .hero { min-height: auto; padding-block: calc(var(--s-1200) + var(--s-75)) var(--s-900); }
  .hero__grid { grid-template-columns: 1fr; gap: var(--s-500); }
  .hero__emblem { order: -1; width: min(60vw, 260px); justify-self: start; }
  .display-1 { font-size: 44px; line-height: 52px; }
  .display-2 { font-size: 32px; line-height: 44px; }
  .display-3 { font-size: 32px; line-height: 40px; }
  .section, .story { padding-block: var(--s-900); }
  .section__head { margin-block-end: var(--s-500); }
  .ps, .faq__grid { grid-template-columns: 1fr; gap: var(--s-500); }
  .ps__col--good { margin: 0; padding: var(--s-400); }
  .faq__grid .section__head { position: static; }
  .fac__row { grid-template-columns: minmax(0, 1fr); }
  .fac__hero .fac__media img { aspect-ratio: 16 / 10; }
  .steps__brush { display: none; }
  .steps__list { grid-template-columns: 1fr; gap: var(--s-400); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
  .wash--tr { width: 80vw; } .wash--bl { width: 90vw; opacity: calc(var(--wash-opacity) * 0.6); }
  .cta { padding: var(--s-700) var(--s-400); }
}
@media (max-width: 600px) {
  .shell { padding-inline: var(--s-200); }
  .display-1 { font-size: 38px; line-height: 46px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__cta { gap: var(--s-200); }
  .hero__proof { gap: var(--s-200) var(--s-400); }
  .hero__proof .display-num { font-size: 24px; line-height: 30px; }
  .grades { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: var(--s-200); margin-inline: calc(-1 * var(--s-200)); padding: var(--s-75) var(--s-200) var(--s-300); scrollbar-width: none; }
  .grades::-webkit-scrollbar { display: none; }
  .grade { flex: 0 0 72%; scroll-snap-align: start; }
  /* One card at a time in the swipe row, so the equal-height reservations
     that line the desktop grid up would only add empty space here. */
  .grade .title-3 { min-block-size: 0; }
  .grade__dose { min-block-size: 0; }
  .benefits { grid-template-columns: 1fr; gap: var(--s-400); }
  .hero__hint { bottom: var(--s-200); max-width: calc(100% - var(--s-400)); white-space: normal; text-align: center; }
}
:lang(zh-Hans) .display-1, :lang(zh-Hant) .display-1 { font-size: 64px; }
@media (max-width: 960px) { :lang(zh-Hans) .display-1, :lang(zh-Hant) .display-1 { font-size: 40px; } }
/* hint is centred physically in both directions */
.hero__hint, [dir="rtl"] .hero__hint { inset-inline-start: auto; left: 50%; transform: translateX(-50%); }
.hero__hint.is-done, [dir="rtl"] .hero__hint.is-done { transform: translate(-50%, 8px); }
@media (max-width: 600px) {
  .hero { padding-block-start: calc(var(--s-900) + var(--s-200)); }
  .hero__emblem { width: min(42vw, 168px); }
  .hero__grid { gap: var(--s-300); }
  .hero__copy { gap: var(--s-200); }
}
