/* ============================================================
   Taoist Way — Stylesheet
   Palette drawn from the logo: ink green-black, warm beige, seal red
   ============================================================ */

:root {
  --ink: #16241f;          /* deep ink green-black */
  --ink-soft: #2f423a;
  --cream: #faf7f0;        /* warm paper background */
  --paper: #f2ece0;
  --sand: #e7ddc9;
  --tan: #b79b70;
  --seal: #a4443a;         /* seal red accent */
  --line: rgba(22, 36, 31, 0.12);
  --muted: #6f756d;
  --white: #fdfbf6;

  --font-en: "Cormorant Garamond", Georgia, serif;
  --font-zh: "Noto Serif TC", "Songti TC", serif;
  --font-ui: "Jost", "Helvetica Neue", sans-serif;

  --serif: var(--font-en);
  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[lang="zh"], html[lang="zh-Hant"] {
  --serif: var(--font-zh);
}

/* In Chinese mode, romanized/duplicate decorative labels are redundant */
html[lang="zh-Hant"] .mountain-cn,
html[lang="zh-Hant"] .ground-cn { display: none; }

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }

::selection { background: var(--tan); color: var(--ink); }

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

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

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-ui); font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 15px 30px; border: 1px solid transparent; border-radius: 2px;
  cursor: pointer; transition: all 0.4s var(--ease); white-space: nowrap;
}
.btn-arrow { font-size: 1.1em; transition: transform 0.3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--seal); box-shadow: 0 10px 30px rgba(164,68,58,0.25); }

.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(22,36,31,0.04); }

.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--sand); }

/* ---------------- Header ---------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
  padding: 18px 0;
}
.site-header.scrolled {
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding: 10px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand-logo { height: 46px; width: auto; object-fit: contain; transition: height 0.4s var(--ease); }
.site-header.scrolled .brand-logo { height: 38px; }

.main-nav { display: flex; align-items: center; gap: 34px; margin-left: auto; }
.main-nav a {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); position: relative; padding: 6px 0; transition: color 0.3s;
}
.main-nav a::after {
  content: ""; position: absolute; bottom: 0; left: 0; width: 0; height: 1px;
  background: var(--seal); transition: width 0.35s var(--ease);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  background: none; border: none; cursor: pointer; padding: 4px 2px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em;
  color: var(--muted); transition: color 0.3s;
  text-decoration: none; display: inline-flex; align-items: center;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.is-active { color: var(--seal); }
.lang-divider { width: 1px; height: 14px; background: var(--line); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-toggle span { width: 22px; height: 1.5px; background: var(--ink); transition: 0.3s; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 150px 0 90px; overflow: hidden;
  background:
    radial-gradient(ellipse at 75% 15%, rgba(231,221,201,0.55) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 85%, rgba(242,236,224,0.6) 0%, transparent 50%),
    var(--cream);
}
.hero-art { position: absolute; inset: 0; pointer-events: none; color: var(--tan); opacity: 0.5; }
.enso-ring {
  position: absolute; border-radius: 50%;
  top: 50%; right: -6%; transform: translateY(-50%);
  width: 680px; height: 680px;
  border: 1px solid rgba(22,36,31,0.10);
  box-shadow: inset 0 0 120px rgba(183,155,112,0.08);
}
.enso-ring::before {
  content: ""; position: absolute; inset: 40px; border-radius: 50%;
  border: 1px solid rgba(22,36,31,0.07);
}
.enso-ring--2 { right: 4%; width: 460px; height: 460px; border-style: dashed; opacity: 0.6; }
.hero-wave { position: absolute; bottom: 8%; right: -2%; width: 620px; opacity: 0.35; }

.hero-inner { position: relative; z-index: 2; display: flex; align-items: center; }
.hero-content { max-width: 720px; }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--seal); margin-bottom: 28px;
}
.eyebrow-line { width: 38px; height: 1px; background: var(--seal); }

.hero-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(3rem, 6.4vw, 6rem); line-height: 1.02; letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.hero-title em { font-style: italic; color: var(--ink-soft); font-weight: 400; }

.hero-lead {
  font-family: var(--serif); font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.65; color: var(--muted); max-width: 580px; margin-bottom: 40px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 44px; }

.hero-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.meta-item { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--tan); }

.hero-seal {
  position: absolute; right: 2%; top: 50%; transform: translateY(-50%);
  width: 190px; height: 190px; border: 2px solid var(--seal); border-radius: 8px;
  display: grid; place-items: center; opacity: 0.14; z-index: 1;
}
.seal-character { font-family: var(--font-zh); font-size: 120px; color: var(--seal); line-height: 1; }

.scroll-cue {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue-line { width: 1px; height: 42px; background: linear-gradient(var(--tan), transparent); animation: scrollPulse 2s infinite; }
@keyframes scrollPulse { 0%,100% { opacity: 0.3; transform: scaleY(0.7); } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------------- Section base ---------------- */
.section { padding: 120px 0; }
.section-kicker {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--seal); margin-bottom: 18px;
}
.section-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1.14; letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.section-sub { font-family: var(--serif); font-size: 1.25rem; color: var(--muted); font-style: italic; }
.section-head.centered { text-align: center; margin-bottom: 64px; }
.section-head.centered .section-sub { margin-top: -10px; }
.body-text { font-family: var(--serif); font-size: 1.15rem; line-height: 1.8; color: var(--muted); margin-bottom: 20px; }

/* ---------------- About ---------------- */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.about-visual { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.taiji {
  width: 300px; height: 300px; border-radius: 50%; position: relative; overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(22,36,31,0.08);
  background: linear-gradient(90deg, var(--ink) 50%, var(--sand) 50%);
}
.taiji-half { position: absolute; width: 150px; height: 150px; border-radius: 50%; left: 75px; }
.taiji-half--dark { top: 0; background: var(--ink); }
.taiji-half--light { bottom: 0; background: var(--sand); }
.taiji-dot { position: absolute; width: 30px; height: 30px; border-radius: 50%; left: 135px; }
.taiji-dot--dark { top: 60px; background: var(--sand); }
.taiji-dot--light { bottom: 60px; background: var(--ink); }
.visual-caption { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--muted); text-align: center; }

.about-stats { display: flex; gap: 36px; margin-top: 40px; padding-top: 34px; border-top: 1px solid var(--line); }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--ink); }
.stat-plus { color: var(--seal); }
.stat-label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

/* ---------------- Teachings ---------------- */
.teachings { background: var(--cream); }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.teach-card {
  background: var(--white); padding: 48px 38px; border: 1px solid var(--line);
  position: relative; overflow: hidden; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.teach-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 0; height: 3px;
  background: var(--seal); transition: width 0.5s var(--ease);
}
.teach-card:hover { transform: translateY(-8px); box-shadow: 0 24px 50px rgba(22,36,31,0.09); }
.teach-card:hover::before { width: 100%; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 34px; }
.card-glyph { font-family: var(--font-zh); font-size: 2rem; color: var(--ink); opacity: 0.85; line-height: 1; }
.card-index { font-family: var(--serif); font-size: 1.1rem; font-style: italic; color: var(--tan); }
.card-title { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; margin-bottom: 10px; }
.card-cn { font-family: var(--font-zh); font-size: 0.95rem; color: var(--seal); letter-spacing: 0.1em; margin-bottom: 18px; }
.card-text { font-family: var(--serif); font-size: 1.05rem; line-height: 1.7; color: var(--muted); }

/* ---------------- Sacred Mountains ---------------- */
.mountains { background: var(--white); }
.mountain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mountain-card {
  border: 1px solid var(--line); background: var(--cream);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  overflow: hidden;
}
.mountain-card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(22,36,31,0.09); }
.mountain-art { height: 170px; overflow: hidden; position: relative; background: var(--ink); }
.mountain-art img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(0.82) contrast(1.04) brightness(0.98);
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
}
.mountain-card:hover .mountain-art img { transform: scale(1.06); filter: saturate(1) contrast(1.03); }
.mountain-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(22,36,31,0) 55%, rgba(22,36,31,0.28) 100%);
}
.mountain-body { padding: 20px 24px 28px; }
.mountain-cn { font-family: var(--font-zh); font-size: 0.85rem; letter-spacing: 0.2em; color: var(--seal); }
.mountain-body h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin: 4px 0 6px; }
.mountain-meta { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tan); margin-bottom: 14px; }
.mountain-desc { font-family: var(--serif); font-size: 1rem; line-height: 1.62; color: var(--muted); }

/* ---------------- Sacred Grounds / Daochang ---------------- */
.grounds { background: var(--cream); }
.grounds-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 90px; }
.grounds-intro { position: sticky; top: 120px; align-self: start; }
.grounds-list { border-top: 1px solid var(--line); }
.ground-row {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 20px; align-items: center;
  padding: 26px 8px; border-bottom: 1px solid var(--line);
  transition: padding 0.4s var(--ease), background 0.4s var(--ease);
}
.ground-row:hover { padding-left: 18px; background: var(--white); }
.ground-num { font-family: var(--serif); font-size: 1.05rem; font-style: italic; color: var(--tan); }
.ground-row h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; margin-bottom: 4px; }
.ground-row p { font-family: var(--serif); font-size: 0.98rem; color: var(--muted); }
.ground-cn { font-family: var(--font-zh); font-size: 1.05rem; letter-spacing: 0.12em; color: var(--seal); }

/* ---------------- Pantheon ---------------- */
.pantheon { background: var(--paper); }
.tier { padding: 34px 0 38px; border-top: 1px solid var(--line); }
.tier:first-of-type { border-top: none; padding-top: 0; }
.tier-label { display: flex; align-items: center; gap: 20px; margin-bottom: 26px; }
.tier-num {
  font-family: var(--serif); font-size: 1.1rem; font-style: italic; color: var(--seal);
  width: 42px; height: 42px; border: 1px solid var(--tan); border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
}
.tier-label h3 { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; }
.tier-label p { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.deity-grid { display: grid; gap: 18px; }
.deity-grid--3 { grid-template-columns: repeat(3, 1fr); }
.deity-grid--4 { grid-template-columns: repeat(4, 1fr); }
.deity {
  background: var(--white); border: 1px solid var(--line); padding: 28px 24px;
  text-align: center; transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.deity:hover { transform: translateY(-5px); border-color: var(--tan); }
.deity-glyph {
  display: block; font-family: var(--font-zh); font-size: 2.4rem; color: var(--ink);
  line-height: 1; margin-bottom: 14px; opacity: 0.88;
}
.deity-glyph--sm { font-size: 1.9rem; margin-bottom: 10px; }
.deity h4 { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; margin-bottom: 5px; }
.deity p { font-family: var(--serif); font-size: 0.95rem; color: var(--muted); line-height: 1.45; }
.deity--sm { padding: 22px 18px; }
.deity--sm h4 { font-size: 1.18rem; }

/* ---------------- Talismans ---------------- */
.talismans { background: var(--white); }
.talismans-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 90px; align-items: center; }
.talisman-visual { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.fu-paper {
  width: 100%; max-width: 260px; padding: 18px; background: var(--cream);
  border: 1px solid var(--line); color: var(--ink);
  box-shadow: 0 20px 50px rgba(22,36,31,0.08);
}
.fu-paper svg, .fu-paper img { width: 100%; height: auto; display: block; object-fit: cover; }
.fu-list { border-top: 1px solid var(--line); margin-top: 8px; }
.fu-row {
  display: flex; align-items: center; gap: 20px; padding: 20px 6px;
  border-bottom: 1px solid var(--line);
}
.fu-cn {
  font-family: var(--font-zh); font-size: 1.4rem; color: var(--seal);
  width: 44px; height: 44px; border: 1px solid var(--line);
  display: grid; place-items: center; flex-shrink: 0;
}
.fu-row h3 { font-family: var(--serif); font-size: 1.28rem; font-weight: 600; margin-bottom: 3px; }
.fu-row p { font-family: var(--serif); font-size: 0.98rem; color: var(--muted); line-height: 1.5; }
.fu-note {
  font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--muted);
  margin-top: 22px; padding-left: 16px; border-left: 2px solid var(--tan);
}

/* ---------------- Wisdom / Quote ---------------- */
.wisdom {
  position: relative; text-align: center; color: var(--white);
  background: linear-gradient(135deg, #16241f 0%, #22362e 100%);
  padding: 130px 0;
}
.wisdom-overlay {
  position: absolute; inset: 0; opacity: 0.5;
  background:
    radial-gradient(circle at 20% 30%, rgba(183,155,112,0.18) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(183,155,112,0.12) 0%, transparent 45%);
}
.wisdom-inner { position: relative; z-index: 2; max-width: 860px; }
.quote-mark { display: block; font-family: var(--serif); font-size: 7rem; line-height: 0.5; color: var(--tan); opacity: 0.5; margin-bottom: 20px; }
.wisdom-quote {
  font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 3rem); font-weight: 400;
  line-height: 1.4; font-style: italic; margin-bottom: 28px;
}
.wisdom-attr { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--tan); margin-bottom: 40px; }

/* ---------------- Practices ---------------- */
.practices { background: var(--paper); }
.practices-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 90px; }
.practices-intro { position: sticky; top: 120px; align-self: start; }
.text-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 10px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--seal); border-bottom: 1px solid var(--seal); padding-bottom: 4px;
  transition: gap 0.3s var(--ease);
}
.text-link:hover { gap: 16px; }
.practice-list { border-top: 1px solid var(--line); }
.practice-row {
  display: grid; grid-template-columns: 50px 1fr 30px; gap: 20px; align-items: center;
  padding: 32px 8px; border-bottom: 1px solid var(--line);
  transition: padding 0.4s var(--ease), background 0.4s var(--ease);
}
.practice-row:hover { padding-left: 20px; background: rgba(255,255,255,0.4); }
.practice-num { font-family: var(--serif); font-size: 1.1rem; font-style: italic; color: var(--tan); }
.practice-row h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin-bottom: 6px; }
.practice-row p { font-family: var(--serif); font-size: 1rem; color: var(--muted); line-height: 1.6; }
.practice-icon { color: var(--tan); font-size: 1.1rem; text-align: right; transition: transform 0.4s var(--ease), color 0.4s; }
.practice-row:hover .practice-icon { transform: rotate(90deg); color: var(--seal); }

/* ---------------- Connect ---------------- */
.connect { background: var(--cream); text-align: center; position: relative; overflow: hidden; }
.connect-art { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); font-family: var(--font-zh); font-size: 34rem; color: var(--ink); opacity: 0.025; pointer-events: none; line-height: 1; }
.connect-inner { position: relative; z-index: 2; max-width: 640px; }
.connect-sub { font-family: var(--serif); font-size: 1.2rem; color: var(--muted); margin-bottom: 36px; }
.subscribe-form { display: flex; gap: 10px; max-width: 500px; margin: 0 auto 16px; }
.subscribe-form input {
  flex: 1; padding: 15px 20px; border: 1px solid var(--line); background: var(--white);
  font-size: 0.95rem; color: var(--ink); border-radius: 2px; outline: none;
  transition: border-color 0.3s;
}
.subscribe-form input:focus { border-color: var(--ink); }
.form-note { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.04em; }
.form-note.success { color: var(--seal); font-weight: 500; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--ink); color: rgba(253,251,246,0.75); padding: 80px 0 28px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-logo {
  height: 42px; width: auto; margin-bottom: 22px;
  /* Light logo sits on the dark footer; invert to keep ink text readable */
  filter: grayscale(1) brightness(0) invert(1); opacity: 0.85;
}
.footer-brand p { font-family: var(--serif); font-size: 1.05rem; font-style: italic; max-width: 280px; line-height: 1.6; }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col h4 { font-family: var(--font-ui); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--white); margin-bottom: 6px; }
.footer-col a { font-family: var(--serif); font-size: 1rem; color: rgba(253,251,246,0.7); transition: color 0.3s; }
.footer-col a:hover { color: var(--tan); }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,0.15); border-radius: 50%; display: grid; place-items: center; font-size: 1rem; color: var(--white); transition: background 0.3s; }
.footer-social a:hover { background: var(--seal); border-color: var(--seal); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 26px; font-size: 0.78rem; }
.footer-verse { font-family: var(--serif); font-style: italic; font-size: 0.95rem; color: var(--tan); }

/* ============================================================
   SUBPAGES — shared detail-page components
   ============================================================ */

/* Breadcrumb */
.breadcrumb { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.breadcrumb a { transition: color 0.3s; }
.breadcrumb a:hover { color: var(--seal); }
.breadcrumb span.sep { margin: 0 10px; opacity: 0.5; }
.breadcrumb b { font-weight: 600; color: var(--ink); }

/* Page hero */
.page-hero {
  position: relative; overflow: hidden; padding: 180px 0 90px;
  background:
    radial-gradient(ellipse at 82% 20%, rgba(231,221,201,0.55) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(242,236,224,0.6) 0%, transparent 50%),
    var(--cream);
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: ""; position: absolute; top: 50%; right: -4%; transform: translateY(-50%);
  width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(22,36,31,0.09);
  box-shadow: inset 0 0 90px rgba(183,155,112,0.08);
}
.page-hero::after {
  content: ""; position: absolute; top: 50%; right: 6%; transform: translateY(-50%);
  width: 330px; height: 330px; border-radius: 50%; border: 1px dashed rgba(22,36,31,0.07);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .breadcrumb { margin-bottom: 34px; }
.page-hero-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.8rem, 5.4vw, 5rem); line-height: 1.08; letter-spacing: -0.01em;
  max-width: 860px; margin-bottom: 24px;
}
.page-hero-lead {
  font-family: var(--serif); font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.7; color: var(--muted); max-width: 720px;
}
.page-hero-glyph {
  position: absolute; right: 8%; top: 50%; transform: translateY(-50%); z-index: 2;
  font-family: var(--font-zh); font-size: 10rem; line-height: 1; color: var(--seal); opacity: 0.08;
  pointer-events: none;
}

/* Prose section */
.prose-section { background: var(--white); }
.prose-grid { display: grid; grid-template-columns: 0.42fr 1fr; gap: 80px; }
.prose-side { position: sticky; top: 120px; align-self: start; }
.prose-side .section-kicker { margin-bottom: 14px; }
.prose-side h2 { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.7rem); font-weight: 500; line-height: 1.18; }
.prose-body p {
  font-family: var(--serif); font-size: 1.18rem; line-height: 1.85; color: var(--muted);
  margin-bottom: 22px;
}
.prose-body p:first-child { color: var(--ink-soft); }
.prose-verse {
  font-family: var(--serif); font-size: 1.5rem; font-style: italic; line-height: 1.5;
  color: var(--ink); padding: 26px 0 26px 30px; border-left: 2px solid var(--seal);
  margin: 30px 0 8px;
}
.prose-attr { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tan); margin-left: 32px; }

/* Alternating tinted section */
.tint-section { background: var(--paper); }
.plain-section { background: var(--cream); }

/* Verse band (dark) */
.verse-band {
  position: relative; text-align: center; color: var(--white); padding: 110px 0;
  background: linear-gradient(135deg, #16241f 0%, #22362e 100%); overflow: hidden;
}
.verse-band::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background: radial-gradient(circle at 25% 25%, rgba(183,155,112,0.16) 0%, transparent 42%),
              radial-gradient(circle at 78% 72%, rgba(183,155,112,0.12) 0%, transparent 45%);
}
.verse-band-inner { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; }
.verse-band .quote-mark { display: block; font-family: var(--serif); font-size: 6rem; line-height: 0.5; color: var(--tan); opacity: 0.5; margin-bottom: 18px; }
.verse-band blockquote { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.6rem); font-style: italic; line-height: 1.45; margin-bottom: 22px; }
.verse-band .attr { font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--tan); }

/* Feature card grid (value cards) */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-grid--4 { grid-template-columns: repeat(4, 1fr); }
.feature-card {
  background: var(--white); border: 1px solid var(--line); padding: 42px 34px;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 20px 46px rgba(22,36,31,0.08); }
.feature-num { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--tan); display: block; margin-bottom: 22px; }
.feature-card h3 { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; margin-bottom: 12px; }
.feature-card p { font-family: var(--serif); font-size: 1.02rem; line-height: 1.7; color: var(--muted); }

/* Deity detail list (Three Pure Ones) */
.detail-list { border-top: 1px solid var(--line); }
.detail-row {
  display: grid; grid-template-columns: 72px 1fr; gap: 28px; align-items: start;
  padding: 32px 0; border-bottom: 1px solid var(--line);
}
.detail-glyph {
  width: 72px; height: 72px; display: grid; place-items: center;
  border: 1px solid var(--tan); border-radius: 50%;
  font-family: var(--font-zh); font-size: 2rem; color: var(--ink);
}
.detail-row h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; margin-bottom: 8px; }
.detail-row p { font-family: var(--serif); font-size: 1.08rem; line-height: 1.72; color: var(--muted); }

/* Immortals grid (eight) */
.immortal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.immortal {
  background: var(--white); border: 1px solid var(--line); padding: 28px 22px; text-align: center;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.immortal:hover { transform: translateY(-5px); border-color: var(--tan); }
.immortal-glyph { font-family: var(--font-zh); font-size: 2rem; color: var(--seal); line-height: 1; display: block; margin-bottom: 14px; }
.immortal h4 { font-family: var(--serif); font-size: 1.28rem; font-weight: 600; margin-bottom: 6px; }
.immortal p { font-family: var(--serif); font-size: 0.94rem; line-height: 1.55; color: var(--muted); }

/* Mountain chapter (alternating image) */
.chapter { padding: 90px 0; border-bottom: 1px solid var(--line); }
.chapter:last-of-type { border-bottom: none; }
.chapter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.chapter:nth-child(even) .chapter-art { order: 2; }
.chapter-art {
  background: var(--white); border: 1px solid var(--line); padding: 18px 18px 22px; color: var(--ink);
  display: flex; flex-direction: column; gap: 16px; align-items: center;
}
.chapter-art img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block;
  filter: saturate(0.82) contrast(1.04);
}
.chapter-art .cap { font-family: var(--font-zh); font-size: 1.6rem; letter-spacing: 0.3em; color: var(--seal); }
.chapter-cn { font-family: var(--font-zh); font-size: 0.85rem; letter-spacing: 0.2em; color: var(--seal); }
.chapter-body h3 { font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 500; margin: 6px 0 14px; }
.chapter-meta { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tan); margin-bottom: 24px; }
.chapter-body p { font-family: var(--serif); font-size: 1.12rem; line-height: 1.8; color: var(--muted); margin-bottom: 18px; }

/* Anatomy / figure with caption */
.figure-split { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 80px; align-items: center; }
.figure-box { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.figure-box .fu-paper { max-width: 240px; }
.fig-caption { font-family: var(--serif); font-style: italic; font-size: 0.98rem; color: var(--muted); text-align: center; }

/* Daily rhythm */
.rhythm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rhythm {
  background: var(--white); border-top: 3px solid var(--seal); padding: 34px 30px;
}
.rhythm-time { font-family: var(--font-zh); font-size: 1.5rem; color: var(--seal); display: block; margin-bottom: 12px; }
.rhythm h4 { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; margin-bottom: 10px; }
.rhythm p { font-family: var(--serif); font-size: 1rem; line-height: 1.7; color: var(--muted); }

/* FAQ */
.faq-list { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 26px 40px 26px 0; position: relative;
  font-family: var(--serif); font-size: 1.35rem; font-weight: 600;
  transition: color 0.3s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 4px; top: 22px; font-family: var(--font-ui);
  font-size: 1.5rem; font-weight: 300; color: var(--seal); transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--seal); }
.faq-item p { font-family: var(--serif); font-size: 1.1rem; line-height: 1.78; color: var(--muted); padding: 0 40px 28px 0; }

/* Next-page navigation */
.next-section { background: var(--paper); padding: 70px 0; }
.next-heading { text-align: center; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.next-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; }
.next-card {
  display: inline-flex; align-items: center; gap: 18px; background: var(--white);
  border: 1px solid var(--line); padding: 22px 30px; min-width: 240px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.next-card:hover { transform: translateY(-4px); border-color: var(--tan); }
.next-card .arrow { font-family: var(--serif); font-size: 1.4rem; color: var(--seal); }
.next-card .label { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.next-card .sub { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* Current nav item */
.main-nav a.is-current { color: var(--seal); }
.main-nav a.is-current::after { width: 100%; }

/* Reveal animation ---------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--cream); padding: 10px 24px 24px; box-shadow: 0 12px 30px rgba(22,36,31,0.1); align-items: stretch; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
  .main-nav a::after { display: none; }
  .menu-toggle { display: flex; }
  .about-grid, .practices-grid, .grounds-grid, .talismans-grid, .prose-grid, .chapter-grid, .figure-split { grid-template-columns: 1fr; gap: 56px; }
  .practices-intro, .grounds-intro, .prose-side { position: static; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .mountain-grid { grid-template-columns: repeat(2, 1fr); }
  .deity-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .hero-seal { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 36px, var(--container)); }
  .section { padding: 84px 0; }
  .hero { padding: 130px 0 80px; }
  .brand-logo { height: 38px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .about-stats { gap: 20px; }
  .stat-num { font-size: 2.1rem; }
  .subscribe-form { flex-direction: column; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .enso-ring { width: 420px; height: 420px; }
  .enso-ring--2 { display: none; }
  .mountain-grid, .cards-grid, .deity-grid--3, .deity-grid--4 { grid-template-columns: 1fr; }
  .ground-row { grid-template-columns: 36px 1fr; }
  .ground-cn { display: none; }
  .tier-label h3 { font-size: 1.4rem; }
  .page-hero { padding: 140px 0 70px; }
  .page-hero-glyph { display: none; }
  .prose-grid, .chapter-grid, .figure-split { grid-template-columns: 1fr; gap: 40px; }
  .chapter:nth-child(even) .chapter-art { order: 0; }
  .feature-grid, .feature-grid--4, .rhythm-grid { grid-template-columns: 1fr; }
  .immortal-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-row { grid-template-columns: 54px 1fr; gap: 18px; }
  .detail-glyph { width: 54px; height: 54px; font-size: 1.5rem; }
  .faq-item summary { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
