/* ============================================================
   FOHOW AI Academy — Modern Eastern Wellness
   Written phone-first: the base rules are the phone layout, and
   the @media blocks widen it for tablets (720px) and desktops (1024px).
   ============================================================ */

:root {
  --rice: #F8F6F1;
  --paper: #FFFDF8;
  --ink: #3D3D3D;
  --ink-strong: #2F302E;
  --ink-soft: #66655F;
  --bamboo: #8DA98F;
  --bamboo-ink: #56755A;      /* darker bamboo: readable as text and behind white text */
  --bamboo-deep: #48644C;
  --sage: #C9D5C7;
  --sage-soft: #E9EFE7;
  --gold: #D8B979;
  --gold-deep: #9C7A36;
  --cream: #FBF6EA;
  --seal: #B5523B;
  --line: rgba(61, 61, 61, .11);

  --serif: "Cormorant Garamond", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --zh: "Noto Serif SC", "Songti SC", "SimSun", serif;

  --radius: 16px;
  --shadow: 0 1px 2px rgba(61, 61, 61, .04), 0 10px 28px -14px rgba(61, 61, 61, .18);
  --shadow-lift: 0 2px 4px rgba(61, 61, 61, .05), 0 22px 44px -18px rgba(61, 61, 61, .26);
  --header-h: 60px;
  --gutter: 16px;
  --tap: 48px;               /* smallest comfortable touch target */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--rice);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
body.no-scroll { overflow: hidden; }
main { flex: 1; outline: none; }
main.enter { animation: enter .5s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; color: var(--ink-strong); overflow-wrap: break-word; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[lang="zh"] { font-family: var(--zh); }
[hidden] { display: none !important; }
svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
svg .fill { fill: currentColor; stroke: none; }
:focus-visible { outline: 2px solid var(--bamboo-ink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap.narrow, .article { width: min(760px, 100% - 2 * var(--gutter)); }
.section { padding-block: 28px; }
.mt { margin-top: 16px; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  padding-top: env(safe-area-inset-top);
  background: linear-gradient(to bottom, rgba(248, 246, 241, .94), rgba(248, 246, 241, .7) 65%, rgba(248, 246, 241, 0));
  transition: background .3s, box-shadow .3s;
}
.site-header.scrolled, .site-header.menu-open {
  background: rgba(248, 246, 241, .94);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
.bar { height: var(--header-h); display: flex; align-items: center; gap: 8px; padding-inline: var(--gutter); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; min-width: 0; margin-right: auto; min-height: var(--tap); }
.brand img { width: 36px; height: 36px; flex-shrink: 0; }
.brand-text { font-family: var(--serif); font-size: 1.25rem; white-space: nowrap; color: var(--ink); font-weight: 500; }
.brand-text b { font-weight: 600; letter-spacing: .06em; color: var(--gold-deep); }

/* Menu: a drop-down sheet on phones, a row on desktops. */
.nav {
  position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top)) 0 auto 0;
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  display: flex; flex-direction: column; padding: 4px var(--gutter) 16px;
  background: rgba(248, 246, 241, .98);
  box-shadow: 0 24px 40px -24px rgba(47, 48, 46, .35);
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: transform .25s, opacity .25s, visibility .25s;
}
.nav.open { transform: none; opacity: 1; visibility: visible; }
.nav a {
  display: flex; align-items: center; min-height: 54px;
  text-decoration: none; font-size: 1.06rem; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.nav a:last-child { border-bottom: 0; }
.nav a.is-active { color: var(--bamboo-ink); font-weight: 600; }

.tools { display: flex; align-items: center; gap: 2px; }
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 5px; height: 40px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 253, 248, .8);
  font-size: .8rem; font-weight: 600; letter-spacing: .04em;
}
.lang-btn svg { width: 17px; height: 17px; color: var(--ink-soft); }
.lang-btn svg:last-child { width: 14px; height: 14px; transition: transform .2s; }
.lang-btn[aria-expanded="true"] svg:last-child { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; min-width: 190px; padding: 6px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lift);
}
.lang-menu button {
  width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 12px; border: 0; border-radius: 10px; background: none; text-align: left; font-size: 1rem;
}
.lang-menu button small { font-size: .72rem; font-weight: 600; letter-spacing: .06em; color: var(--ink-soft); }
.lang-menu button:hover { background: var(--sage-soft); }
.lang-menu button[aria-current="true"] { background: var(--sage-soft); color: var(--bamboo-deep); font-weight: 600; }

.menu-btn { width: var(--tap); height: var(--tap); margin-right: -10px; border: 0; background: none; padding: 13px; }
.menu-btn span { display: block; height: 1.6px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* ============================================================
   Buttons, tags, links
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 10px 22px; border: 1px solid var(--bamboo-ink); border-radius: 999px;
  background: var(--bamboo-ink); color: #fff; font-weight: 500; text-decoration: none; text-align: center;
  transition: background .2s, transform .15s;
}
.btn:hover { background: var(--bamboo-deep); }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; }
.btn-quiet { background: rgba(255, 253, 248, .8); color: var(--bamboo-deep); border-color: var(--sage); }
.btn-quiet:hover { background: var(--sage-soft); }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; }

.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--bamboo-deep); font-weight: 500; text-decoration: none; }
.text-link svg { width: 16px; height: 16px; transition: transform .25s; }
.text-link:hover svg { transform: translateX(3px); }

.round-arrow {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--ink); transition: background .25s, color .25s, border-color .25s;
}
.round-arrow svg { width: 16px; height: 16px; }
a:hover > .round-arrow, a:hover .tcard-foot .round-arrow, a:hover .pcard-foot .round-arrow { background: var(--bamboo-ink); border-color: var(--bamboo-ink); color: #fff; }

.tag {
  display: inline-flex; align-items: center; min-height: 24px; padding: 2px 10px; border-radius: 999px;
  background: var(--sage-soft); color: var(--bamboo-deep); font-size: .74rem; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
}
.tag-gold { background: rgba(216, 185, 121, .2); color: var(--gold-deep); }
.tag-quiet { background: rgba(61, 61, 61, .06); color: var(--ink-soft); }

.chips { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.chips.left { justify-content: flex-start; }
.chips-label { font-size: .84rem; color: var(--ink-soft); flex-shrink: 0; }
.chip {
  min-height: 40px; padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 253, 248, .86); font-size: .88rem; text-align: left;
  transition: background .2s, border-color .2s;
}
.chip:hover { background: var(--sage-soft); border-color: var(--sage); }
/* On phones a row of suggestions scrolls sideways instead of stacking. */
.chips-scroll {
  flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none;
  margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
}
.chips-scroll::-webkit-scrollbar { display: none; }
.chips-scroll .chip { white-space: nowrap; flex-shrink: 0; }

/* ============================================================
   Home: hero
   ============================================================ */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--header-h) + env(safe-area-inset-top) + 28px) var(--gutter) 36px;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 80%; animation: drift 40s ease-in-out infinite alternate; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 42% at 50% 30%, rgba(248, 246, 241, .86), rgba(248, 246, 241, 0) 72%),
    linear-gradient(to bottom, rgba(248, 246, 241, .6) 0%, rgba(248, 246, 241, .1) 30%, rgba(248, 246, 241, 0) 70%, var(--rice) 100%);
}
.hero-mist {
  position: absolute; inset: 45% -20% 8% -20%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, .6), transparent 65%);
  filter: blur(18px); animation: mist 22s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: scale(1.04) translateX(-.6%); } to { transform: scale(1.08) translateX(.6%); } }
@keyframes mist { from { transform: translateX(-6%); opacity: .7; } to { transform: translateX(6%); opacity: 1; } }

.hero-seal { display: none; }
.hero-inner { max-width: 760px; margin-inline: auto; text-align: center; }
.hero h1 { font-size: clamp(2.3rem, 6.4vw, 4.4rem); font-weight: 500; letter-spacing: -.01em; text-wrap: balance; }
.hero-sub { margin-top: 14px; font-size: 1rem; color: #4A4A47; text-wrap: balance; }

.ask-wrap { position: relative; margin: 26px auto 0; max-width: 620px; }
.ask-flow {
  position: absolute; z-index: -1; pointer-events: none; max-width: none;
  width: 230%; left: -65%; top: 28px; transform: translateY(-50%);
  opacity: .7; animation: flow 9s ease-in-out infinite alternate;
}
@keyframes flow { from { transform: translateY(-50%) translateX(-1.5%) rotate(-1deg); opacity: .55; } to { transform: translateY(-54%) translateX(1.5%) rotate(1deg); opacity: .8; } }

.ask {
  display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 5px 5px 5px 18px;
  background: rgba(255, 253, 248, .95); border: 1px solid rgba(216, 185, 121, .55); border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(255, 253, 248, .35), var(--shadow);
  transition: box-shadow .3s, border-color .3s;
}
.ask:focus-within { border-color: var(--gold); box-shadow: 0 0 0 5px rgba(216, 185, 121, .22), var(--shadow-lift); }
.ask-solid { box-shadow: var(--shadow); }
.ask-icon { display: none; color: var(--ink-soft); }
.ask input { flex: 1; min-width: 0; height: 44px; border: 0; background: none; outline: none; font-size: 1rem; } /* 1rem = no zoom-in on iPhone */
.ask input::placeholder { color: #8F8D87; }
.btn-ask, .btn-send {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 46px; height: 46px; padding: 0; border: 0; border-radius: 999px;
  background: var(--bamboo-ink); color: #fff; font-weight: 500; transition: background .2s, transform .15s;
}
.btn-ask:hover, .btn-send:hover { background: var(--bamboo-deep); }
.btn-ask:active, .btn-send:active { transform: scale(.96); }
.btn-ask span { display: none; }
.ask-wrap .chips { margin-top: 14px; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; }
.pillars li { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 2px 6px; text-align: center; font-size: .74rem; line-height: 1.3; color: #55544F; }
.pillars li + li { border-left: 1px solid rgba(61, 61, 61, .16); }
.pillars svg { width: 32px; height: 32px; color: var(--ink); stroke-width: 1.3; }
.pillars small { display: block; font-size: .84rem; color: var(--ink); letter-spacing: .1em; margin-bottom: 1px; }

/* ============================================================
   Section headings
   ============================================================ */
.section-head { margin-bottom: 18px; }
.section-head h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 500; }
.section-head p { margin-top: 6px; color: var(--ink-soft); }
.section-head.center { text-align: center; }
.section-head.row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 4px 20px; }
.ornament {
  display: inline-block; width: 64px; height: 10px; margin-bottom: 10px;
  background:
    radial-gradient(circle, var(--gold) 2.5px, transparent 3px) center / 10px 10px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left center / 24px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right center / 24px 1px no-repeat;
}
.group-title { font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--bamboo-deep); margin: 26px 0 10px; }
.section-head + .group-title { margin-top: 0; }
.empty { color: var(--ink-soft); padding: 18px; border: 1px dashed var(--sage); border-radius: var(--radius); text-align: center; }

/* ============================================================
   Cards
   ============================================================ */
.grid { display: grid; gap: 14px; }

/* The three module cards on the home page. */
.modules { display: grid; gap: 12px; }
.module {
  display: flex; align-items: center; gap: 0; min-height: 112px; overflow: hidden; text-decoration: none;
  background: var(--paper); border: 1px solid rgba(255, 255, 255, .9); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.module-img { align-self: stretch; width: 104px; flex-shrink: 0; overflow: hidden; }
.module-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.module-body { flex: 1; min-width: 0; padding: 14px 10px 14px 14px; }
.module-title { display: block; font-family: var(--serif); font-size: 1.28rem; font-weight: 600; line-height: 1.18; color: var(--ink-strong); }
.module-text { display: block; margin-top: 4px; font-size: .88rem; line-height: 1.45; color: var(--ink-soft); }
.module .round-arrow { margin-right: 12px; }

/* A training date. */
.sessions { display: grid; gap: 10px; }
.session {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 12px; text-decoration: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
a.session { transition: border-color .2s, box-shadow .3s; }
a.session:hover { border-color: var(--sage); box-shadow: var(--shadow); }
.date {
  flex-shrink: 0; width: 60px; padding: 8px 4px; border-radius: 12px; text-align: center; line-height: 1.1;
  background: var(--sage-soft); color: var(--bamboo-deep);
}
.date b { display: block; font-family: var(--serif); font-size: 1.7rem; font-weight: 600; }
.date span { display: block; font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.date small { display: block; margin-top: 2px; font-size: .66rem; opacity: .8; }
.session-body { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.session-title { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; line-height: 1.2; color: var(--ink-strong); }
.session-title::first-letter { text-transform: uppercase; }
.session-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: .86rem; color: var(--ink-soft); }
.session-meta svg { width: 15px; height: 15px; }

/* A training. */
.tcard {
  display: flex; flex-direction: column; gap: 8px; padding: 16px; text-decoration: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .3s, transform .4s var(--ease);
}
.tcard:hover { border-color: var(--sage); box-shadow: var(--shadow); }
.tcard-top { display: flex; flex-wrap: wrap; gap: 6px; }
.tcard-title { font-family: var(--serif); font-size: 1.32rem; font-weight: 600; line-height: 1.2; color: var(--ink-strong); }
.tcard-text { font-size: .9rem; color: var(--ink-soft); }
.tcard-foot, .pcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }
.tcard-date { font-size: .84rem; color: var(--ink-soft); }
.tcard-date.has-date { color: var(--bamboo-deep); font-weight: 600; }

/* A product. */
.pcard {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none;
  background: var(--paper); border: 1px solid rgba(255, 255, 255, .9); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: box-shadow .4s, transform .4s var(--ease);
}
.pcard-art { display: grid; place-items: center; height: 150px; background: linear-gradient(160deg, var(--sage-soft), var(--cream)); overflow: hidden; }
.pcard-art img { height: 170px; width: auto; max-width: none; object-fit: contain; transition: transform 1.2s var(--ease); }
.pcard-body { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.pcard-zh { font-size: .82rem; letter-spacing: .2em; color: var(--gold-deep); }
.pcard-name { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; line-height: 1.15; color: var(--ink-strong); }
.pcard-text { font-size: .9rem; color: var(--ink-soft); }
.pcard-meta { font-size: .84rem; color: var(--bamboo-deep); font-weight: 600; }
.pcard-art.is-photo img { width: 100%; height: 100%; object-fit: cover; }
.pcard-body .tag { align-self: flex-start; }
.pcard.is-pending { box-shadow: none; border-color: var(--line); }
.pcard.is-pending .pcard-art img { opacity: .35; }

/* "Why" icons on the home page. */
.why { display: grid; gap: 20px; }
.why li { display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; align-items: center; }
.why-icon { grid-row: span 2; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--sage-soft); color: var(--bamboo-deep); box-shadow: inset 0 0 0 1px rgba(141, 169, 143, .35); }
.why-icon svg { width: 30px; height: 30px; stroke-width: 1.4; }
.why h3 { font-size: 1.3rem; align-self: end; }
.why p { font-size: .92rem; color: var(--ink-soft); align-self: start; }

/* ============================================================
   Inner pages
   ============================================================ */
.page-head {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--header-h) + env(safe-area-inset-top) + 22px) 0 26px;
  background: linear-gradient(to bottom, #F3F0E8, var(--rice));
}
.page-head-bamboo { position: absolute; z-index: -1; top: -30px; right: -70px; width: 240px; max-width: none; transform: scaleX(-1); opacity: .3; pointer-events: none; }
.page-head-art { display: none; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 500; text-wrap: balance; }
.lead { margin-top: 10px; font-size: 1.04rem; color: #504F4A; max-width: 38em; }
.kicker { margin-bottom: 6px; font-size: .8rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--gold-deep); }
.kicker[lang="zh"] { font-size: .95rem; letter-spacing: .28em; font-weight: 500; }
.crumb { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: -8px 0 4px; font-size: .9rem; color: var(--bamboo-deep); text-decoration: none; font-weight: 500; }
.crumb svg { width: 16px; height: 16px; }
.head-actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }

.article { margin-inline: auto; padding-bottom: 28px; }
.block { margin-top: 30px; }
.block > h2 { font-size: 1.6rem; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.block > h3 { font-family: var(--sans); font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 18px 0 8px; color: var(--gold-deep); }
.block p + p { margin-top: 10px; }
.prose .block p { color: #4A4945; }

.ticks { display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.numbered { counter-reset: n; display: grid; gap: 8px; margin-top: 12px; }
.numbered li { counter-increment: n; position: relative; padding-left: 34px; }
.numbered li::before { content: counter(n); position: absolute; left: 0; top: .1em; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .76rem; font-weight: 600; background: rgba(216, 185, 121, .3); color: var(--gold-deep); }

.parts { margin: 0; display: grid; gap: 10px; }
.parts > div { padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.parts dt { font-weight: 600; color: var(--ink-strong); }
.parts dd { margin: 4px 0 0; font-size: .94rem; color: var(--ink-soft); }

.callout { padding: 18px 16px; background: var(--cream); border: 1px solid rgba(216, 185, 121, .5); border-radius: var(--radius); }
.callout > h2 svg { width: 24px; height: 24px; color: var(--gold-deep); }

.notice { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(216, 185, 121, .14); color: #6B5A33; font-size: .88rem; }
.notice svg { width: 18px; height: 18px; margin-top: 2px; }
.article > .notice:first-child { margin-top: 24px; }

.strip {
  position: relative; isolation: isolate; overflow: hidden; margin-top: 30px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px 18px;
  background: var(--sage-soft); border: 1px solid var(--sage); border-radius: var(--radius);
}
.section > .strip { margin-top: 0; }
.strip h2 { font-size: 1.5rem; }
.strip p { margin-top: 4px; color: #55544F; font-size: .95rem; }
.strip-art { position: absolute; z-index: -1; right: -60px; bottom: -70px; width: 210px; max-width: none; opacity: .1; }
.after { margin-top: 18px; }

/* Business Assistant: list of questions */
.questions { display: grid; gap: 8px; }
.question {
  width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px 12px 16px; text-align: left; line-height: 1.35;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  transition: border-color .2s, background .2s;
}
.question:hover { border-color: var(--sage); background: #fff; }
.question svg { width: 18px; height: 18px; color: var(--bamboo-ink); }

/* Education: accordion */
.accordion { display: grid; gap: 8px; }
.accordion details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.accordion summary {
  list-style: none; cursor: pointer; min-height: 56px; padding: 12px 14px 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--ink-strong);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary svg { color: var(--bamboo-ink); transition: transform .25s; }
.accordion details[open] summary svg { transform: rotate(180deg); }
.details-body { padding: 0 16px 16px; color: #4A4945; }
.pairs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pairs li { padding: 5px 12px; border-radius: 999px; background: var(--sage-soft); font-size: .86rem; color: var(--bamboo-deep); font-weight: 500; }
.pairs.ordered { counter-reset: n; }
.pairs.ordered li { counter-increment: n; }
.pairs.ordered li::before { content: counter(n) "  "; opacity: .6; font-weight: 600; white-space: pre; }
.ask-more { margin-top: 22px; }
.ask-more p { margin-bottom: 10px; color: var(--ink-soft); }

.paths { display: grid; gap: 10px; }
.path { padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.path h3 { font-size: 1.3rem; margin-bottom: 6px; }
.path a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; text-decoration: none; border-top: 1px solid var(--line); color: var(--bamboo-deep); font-weight: 500; }
.path a svg { width: 16px; height: 16px; }

/* Contact form */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: .9rem; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font-size: 1rem;
  background: var(--paper); border: 1px solid rgba(61, 61, 61, .22); border-radius: 12px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--bamboo-ink); box-shadow: 0 0 0 4px rgba(141, 169, 143, .25); }
[aria-invalid="true"] { border-color: var(--seal) !important; }
.field-error { color: var(--seal); font-size: .84rem; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 4px 12px; align-items: start; font-size: .92rem; cursor: pointer; }
.check input { width: 24px; height: 24px; margin: 0; accent-color: var(--bamboo-ink); }
.check .field-error { grid-column: 2; }
.check a { color: var(--bamboo-deep); }
.form-status { padding: 12px 14px; border-radius: 12px; font-size: .94rem; }
.form-status.ok { background: var(--sage-soft); color: var(--bamboo-deep); }
.form-status.err { background: #F8E9E4; color: #8C3A27; }
.form-status.info { background: rgba(61, 61, 61, .06); }
.social-block { margin-top: 36px; }
.social-block h2 { font-size: 1.4rem; margin-bottom: 12px; }
.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social a { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); text-decoration: none; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  position: relative; isolation: isolate; overflow: hidden; margin-top: 28px;
  padding: 36px 0 calc(88px + env(safe-area-inset-bottom));      /* room for the Ask AI button */
  background: linear-gradient(to bottom, var(--rice), #F0EDE4); border-top: 1px solid var(--line);
}
.footer-herbs { position: absolute; z-index: -1; right: -70px; bottom: -30px; width: 260px; max-width: none; opacity: .22; pointer-events: none; }
.footer-grid { display: grid; gap: 22px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-name { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; }
.footer-name b { font-weight: 600; letter-spacing: .05em; color: var(--gold-deep); }
.footer-tag { font-size: .84rem; color: var(--ink-soft); }
.site-footer nav h2 { font-family: var(--sans); font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 2px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.footer-social a { padding: 0; width: var(--tap); justify-content: center; }
.footer-note { font-size: .8rem; color: var(--ink-soft); padding-top: 18px; border-top: 1px solid var(--line); max-width: 46em; }
.footer-copy { font-size: .8rem; color: #85837D; }

/* ============================================================
   AI assistant
   ============================================================ */
.fab {
  position: fixed; z-index: 25; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 56px; height: 56px; padding: 0;
  border: 0; border-radius: 999px; background: var(--bamboo-ink); color: #fff; font-weight: 500;
  box-shadow: 0 10px 28px -8px rgba(47, 72, 51, .6), 0 0 0 4px rgba(248, 246, 241, .6);
  transition: transform .2s, background .2s;
}
.fab svg { width: 24px; height: 24px; }
.fab span { display: none; }
.fab:hover { background: var(--bamboo-deep); }
.fab:active { transform: scale(.96); }
body.no-scroll .fab { visibility: hidden; }

.chat-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(47, 48, 46, .3); opacity: 0; transition: opacity .3s; }
.chat-backdrop.open { opacity: 1; }
.chat {
  position: fixed; z-index: 50; inset: 0; height: 100vh; height: 100dvh;       /* full screen on phones */
  display: flex; flex-direction: column; background: var(--rice); isolation: isolate;
  transform: translateY(100%); transition: transform .4s var(--ease);
}
.chat.open { transform: none; }
.chat::before { content: ""; position: absolute; z-index: -1; right: -90px; bottom: 40px; width: 320px; height: 320px; background: url("../assets/yinyang.webp") center / contain no-repeat; opacity: .05; }
.chat-head { display: flex; align-items: center; gap: 8px; padding: calc(10px + env(safe-area-inset-top)) 8px 10px 14px; border-bottom: 1px solid var(--line); background: rgba(255, 253, 248, .8); }
.avatar { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); box-shadow: inset 0 0 0 1px rgba(216, 185, 121, .5); }
.avatar img { width: 30px; height: 30px; }
.chat-title { display: flex; flex-direction: column; line-height: 1.2; margin-right: auto; min-width: 0; }
.chat-title strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.chat-title span { font-size: .78rem; color: var(--bamboo-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { flex-shrink: 0; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; display: grid; place-items: center; color: var(--ink-soft); }
.icon-btn:hover { background: var(--sage-soft); color: var(--ink); }

.chat-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 18px 14px 10px; display: flex; flex-direction: column; gap: 16px; }
.msg { display: flex; gap: 10px; animation: enter .4s var(--ease) both; }
.msg .avatar { width: 32px; height: 32px; }
.msg .avatar img { width: 24px; height: 24px; }
.msg-user { justify-content: flex-end; }
.bubble { max-width: 84%; padding: 10px 16px; border-radius: 18px 18px 4px 18px; background: var(--bamboo-ink); color: #fff; overflow-wrap: anywhere; }
.msg-ai .content { flex: 1; min-width: 0; }
.lead-none { display: none; }
.msg-ai .lead { margin: 4px 0 0; font-size: 1rem; line-height: 1.6; color: var(--ink); max-width: none; }
.msg-ai .lead.typing::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 4px; border-radius: 50%; background: var(--gold); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.mini-tag { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--gold-deep); }
.thinking { display: flex; align-items: center; gap: 10px; min-height: 32px; color: var(--ink-soft); font-size: .9rem; font-style: italic; }
.thinking img { width: 26px; height: 26px; animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.sections { display: grid; gap: 8px; margin-top: 12px; }
.sec { padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; animation: enter .4s var(--ease) both; }
.sec h4 { margin: 0 0 6px; display: flex; align-items: center; gap: 8px; font: 600 .74rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--bamboo-deep); }
.sec h4::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.sec ul { list-style: disc; padding-left: 18px; font-size: .93rem; }
.sec li + li { margin-top: 4px; }
.sec p { font-size: .93rem; }
.sec.note { background: var(--cream); border-color: rgba(216, 185, 121, .45); }
.sec.note h4 { color: var(--gold-deep); }
.answer-art { margin: 12px auto 0; max-height: 220px; width: auto; }

.deeper { margin-top: 8px; }
.btn-deeper { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--bamboo-deep); font-weight: 500; }
.btn-deeper svg { width: 16px; height: 16px; transition: transform .25s; }
.btn-deeper[aria-expanded="true"] svg { transform: rotate(180deg); }
.resources { display: flex; flex-wrap: wrap; gap: 8px; }
.resources a, .resources button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; text-decoration: none; font-size: .9rem;
  border: 1px solid var(--sage); border-radius: 12px; background: var(--sage-soft); animation: enter .3s both;
}
.resources a:hover, .resources button:hover { background: var(--sage); }
.resources svg { width: 16px; height: 16px; color: var(--bamboo-deep); }
.disclaimer-line { display: flex; gap: 6px; align-items: flex-start; margin-top: 10px; font-size: .76rem; color: #85837D; }
.disclaimer-line svg { width: 14px; height: 14px; margin-top: 2px; }

.chat-foot { padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255, 253, 248, .8); }
.chat-foot .chips { margin: 0 -12px 10px; padding-inline: 12px; }
.chat-foot .chips:empty { display: none; }
.ask-small { min-height: 52px; padding-left: 16px; box-shadow: none; }

/* ============================================================
   Toast
   ============================================================ */
.toast {
  position: fixed; z-index: 60; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); transform: translate(-50%, 16px);
  width: max-content; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px; text-align: center;
  background: var(--ink-strong); color: var(--rice); font-size: .9rem; box-shadow: var(--shadow-lift);
  opacity: 0; transition: opacity .3s, transform .3s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   Very small phones
   ============================================================ */
@media (max-width: 429px) {
  .brand-text span { display: none; }
}
@media (max-width: 359px) {
  .hero h1 { font-size: 2.05rem; }
  .module-img { width: 84px; }
  .date { width: 54px; }
}

/* ============================================================
   Tablets and up
   ============================================================ */
@media (min-width: 720px) {
  :root { --gutter: 32px; --header-h: 68px; }
  .section { padding-block: 44px; }
  .section-head { margin-bottom: 24px; }
  .brand img { width: 40px; height: 40px; }
  .brand-text { font-size: 1.4rem; }
  .nav { left: auto; width: 340px; border-radius: 0 0 0 16px; }

  .hero { padding-bottom: 56px; }
  .hero-bg img { object-position: center 70%; }
  .hero-sub { font-size: 1.1rem; }
  .ask-wrap { margin-top: 34px; }
  .ask-flow { width: 160%; left: -30%; }
  .ask { padding-left: 22px; }
  .ask-icon { display: block; }
  .btn-ask { width: auto; padding: 0 22px; }
  .btn-ask span { display: inline; }
  .chips-scroll { flex-wrap: wrap; justify-content: center; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .chips-scroll.left { justify-content: flex-start; }
  .pillars { display: flex; justify-content: center; margin-top: 64px; }
  .pillars li { flex-direction: row; text-align: left; gap: 12px; padding: 4px 28px; font-size: .82rem; }
  .pillars svg { width: 38px; height: 38px; }

  .grid.cols-2, .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .modules { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .module { flex-direction: column; align-items: stretch; position: relative; }
  .module:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
  .module:hover .module-img img, .pcard:hover .pcard-art img { transform: scale(1.06); }
  .module-img { width: auto; aspect-ratio: 16 / 10; align-self: auto; }
  .module-body { padding: 18px 60px 22px 20px; }
  .module-title { font-size: 1.45rem; }
  .module .round-arrow { position: absolute; right: 16px; bottom: 20px; margin: 0; }
  .pcard:hover, .tcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
  .sessions { grid-template-columns: repeat(2, 1fr); }
  .article .sessions { grid-template-columns: 1fr; }

  .why { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .why li { display: block; text-align: center; padding: 6px 24px; }
  .why li + li { border-left: 1px solid var(--line); }
  .why-icon { display: inline-grid; width: 64px; height: 64px; margin-bottom: 12px; }

  .page-head { padding-bottom: 36px; }
  .page-head-bamboo { width: 340px; right: -60px; opacity: .34; }
  .page-head.has-art .page-head-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; }
  .page-head-art { display: block; height: 220px; width: auto; margin: -8px 24px -8px 0; }
  .page-head-art.is-photo { width: 300px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); margin-block: 0; }
  .page-head.has-art .page-head-bamboo { display: none; }
  .block { margin-top: 40px; }
  .block > h2 { font-size: 1.85rem; }
  .parts { grid-template-columns: repeat(2, 1fr); }
  .callout { padding: 26px 28px; }
  .strip { flex-direction: row; align-items: center; justify-content: space-between; padding: 26px 28px; gap: 24px; }
  .strip .btn { flex-shrink: 0; }
  .paths { grid-template-columns: repeat(3, 1fr); }
  .btn-wide { width: auto; justify-self: start; }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; align-items: start; }
  .footer-social, .footer-note, .footer-copy { grid-column: 1 / -1; }
  .footer-herbs { width: 360px; }
  .site-footer nav a { min-height: 34px; }

  /* The assistant becomes a side panel. */
  .chat { inset: 0 0 0 auto; width: 460px; box-shadow: -20px 0 60px -20px rgba(47, 48, 46, .35); transform: translateX(100%); }
  .chat-backdrop { backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
  .chat-log { padding-inline: 18px; }
  .fab { right: 24px; bottom: 24px; width: auto; height: 52px; padding: 0 20px 0 16px; }
  .fab svg { width: 20px; height: 20px; }
  .fab span { display: inline; }
  .toast { bottom: 96px; }
}

/* ============================================================
   Desktops
   ============================================================ */
@media (min-width: 1024px) {
  :root { --gutter: 48px; --header-h: 72px; }
  .section { padding-block: 56px; }
  .hero { min-height: min(100svh, 900px); padding-top: calc(var(--header-h) + clamp(40px, 8vh, 88px)); }
  .hero-seal {
    position: absolute; right: calc(var(--gutter) + 8px); top: calc(var(--header-h) + 36px);
    display: flex; flex-direction: row-reverse; align-items: flex-start; gap: 6px;
    font-size: 1.12rem; letter-spacing: .3em; color: rgba(61, 61, 61, .78);
  }
  .hero-seal span { writing-mode: vertical-rl; }
  .hero-seal i { order: 3; align-self: flex-end; margin-top: 8px; width: 26px; height: 26px; display: grid; place-items: center; font-style: normal; font-size: .8rem; letter-spacing: 0; color: var(--seal); border: 1.5px solid var(--seal); border-radius: 4px; opacity: .8; }
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .page-head-art { height: 280px; margin-right: 56px; }
}

/* ============================================================
   Wide screens: the menu becomes a row. The switch is this late
   so that longer languages still fit on one line.
   ============================================================ */
@media (min-width: 1200px) {
  .menu-btn { display: none; }
  .bar { gap: 24px; }
  .brand { margin-right: 0; flex-shrink: 0; }
  .nav {
    position: static; flex-direction: row; gap: 26px; width: auto; margin-left: auto; padding: 0; max-height: none; overflow: visible; border-radius: 0;
    background: none; box-shadow: none; transform: none; opacity: 1; visibility: visible;
  }
  .nav a { position: relative; min-height: 40px; font-size: .92rem; border: 0; color: var(--ink-soft); white-space: nowrap; }
  .nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1.5px; background: var(--gold); transform: scaleX(0); transition: transform .3s; }
  .nav a:hover, .nav a.is-active { color: var(--ink-strong); font-weight: 400; }
  .nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
