:root {
  --ink: #211b16;
  --ink-soft: #4e463d;
  --paper: #f3eee4;
  --paper-deep: #e8ddca;
  --cream: #d8c5a2;
  --cinnabar: #99372c;
  --cinnabar-dark: #70271f;
  --gold: #b68a4c;
  --line: rgba(33, 27, 22, 0.16);
  --white: #fffdf8;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --shell: min(1320px, calc(100vw - 80px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body.dialog-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
figure, blockquote, p, h1, h2, h3 { margin-top: 0; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 200; background: #fff; padding: 10px 16px; }
.skip-link:focus { top: 12px; }
.noscript-notice { position: fixed; inset: 0 0 auto; z-index: 160; padding: 12px 20px; background: #fff3d5; color: #5e2d23; text-align: center; font-size: 13px; }
.section-shell { width: var(--shell); margin: 0 auto; }
.section-kicker { margin: 0 0 22px; color: var(--cinnabar); font-size: 11px; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; }
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 750ms ease, transform 750ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Header */
.site-header { position: fixed; top: 18px; left: clamp(18px, 3vw, 54px); z-index: 50; display: flex; align-items: center; justify-content: flex-start; gap: clamp(10px, 1.35vw, 22px); width: max-content; max-width: calc(100vw - 36px); padding: 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; color: white; background: rgba(24,20,17,.48); box-shadow: 0 16px 50px rgba(0,0,0,.24); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.brand { display: flex; flex: 0 0 auto; align-items: center; gap: 13px; }
.brand-seal { display: grid; place-items: center; width: 58px; height: 58px; padding: 6px; border: 1px solid rgba(255,255,255,.55); background: rgba(142,47,38,.9); color: #fff; font-family: var(--serif); font-size: 15px; line-height: 1.05; letter-spacing: .1em; text-align: center; box-shadow: inset 0 0 0 4px rgba(255,255,255,.11); }
.brand-copy { display: grid; gap: 3px; }
.brand-copy strong { font-family: var(--serif); font-size: 18px; letter-spacing: .12em; }
.brand-copy small { font-size: 9px; letter-spacing: .21em; opacity: .68; }
.header-actions { display: flex; gap: 8px; }
.ghost-button, .menu-button { height: 42px; padding: 0 16px; border: 1px solid rgba(255,255,255,.28); color: #fff; background: rgba(17,16,14,.3); backdrop-filter: blur(14px); cursor: pointer; transition: background 200ms; }
.ghost-button:hover, .menu-button:hover { background: rgba(153,55,44,.82); }
.menu-button { display: flex; align-items: center; justify-content: center; }
.site-nav { position: absolute; top: calc(100% + 10px); left: 0; display: none; width: min(420px, calc(100vw - 36px)); max-height: calc(100svh - 110px); overflow: auto; overscroll-behavior: contain; padding: 24px; background: rgba(26,21,18,.97); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.42); backdrop-filter: blur(18px); }
.site-nav.is-open { display: grid; grid-template-columns: 1fr 1fr; animation: menu-in 220ms ease both; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
.nav-label { grid-column: 1 / -1; display: flex; justify-content: space-between; padding: 0 4px 16px; border-bottom: 1px solid rgba(255,255,255,.16); color: var(--cream); }
.nav-label small { font-size: 9px; letter-spacing: .2em; }
.site-nav a { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.08); font-family: var(--serif); }
.site-nav a span { display: inline-block; width: 28px; color: var(--gold); font: 10px var(--sans); }
.site-nav .nav-contact { grid-column: 1 / -1; margin-top: 12px; padding: 15px 16px; border: 0; background: var(--cinnabar); text-align: center; }

/* Hero */
.hero { position: relative; height: 100svh; min-height: 720px; background: #171411; color: white; overflow: hidden; touch-action: pan-y; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 900ms ease, visibility 900ms; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide picture, .hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide img { filter: saturate(.74) contrast(1.05); transform: scale(1.015); transition: transform 8s ease; }
.hero-slide.is-active img { transform: scale(1.055); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,15,12,.83) 0%, rgba(20,15,12,.4) 49%, rgba(20,15,12,.24) 100%), linear-gradient(0deg, rgba(15,12,10,.72), transparent 52%); }
.hero-content { position: absolute; left: clamp(24px, 9vw, 156px); top: 50%; transform: translateY(-45%); width: min(820px, 80vw); }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 25px; color: #ead6af; font-size: 12px; letter-spacing: .28em; }
.eyebrow:before { content: ""; width: 42px; height: 1px; background: var(--gold); }
.hero h1, .hero h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(62px, 8vw, 126px); line-height: .94; letter-spacing: -.045em; text-wrap: balance; }
.hero h1 em, .hero h2 em { color: #f0d7a7; font-style: normal; }
.hero-lead { max-width: 640px; margin: 30px 0 36px; color: rgba(255,255,255,.76); font-family: var(--serif); font-size: clamp(16px, 1.45vw, 21px); line-height: 1.9; }
.hero-cta { display: flex; align-items: center; gap: 30px; }
.primary-button { display: inline-grid; place-items: center; min-width: 160px; height: 52px; padding: 0 26px; background: var(--cinnabar); color: white; letter-spacing: .12em; transition: background 200ms, transform 200ms; }
.primary-button:hover { background: var(--cinnabar-dark); transform: translateY(-2px); }
.text-link { font-size: 14px; }
.text-link span { margin-left: 8px; color: var(--gold); }
.hero-controls { position: absolute; left: clamp(24px, 9vw, 156px); right: clamp(24px, 5vw, 86px); bottom: 34px; z-index: 4; display: flex; align-items: center; gap: 10px; }
.slide-tabs { display: flex; flex: 1; border-top: 1px solid rgba(255,255,255,.2); }
.slide-tabs button { padding: 18px 30px 0 0; border: 0; color: rgba(255,255,255,.46); background: none; font-size: 11px; letter-spacing: .1em; cursor: pointer; }
.slide-tabs button.is-active { color: white; }
.round-control { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; background: rgba(15,12,10,.25); color: white; cursor: pointer; }

/* Chapters */
.chapter-section { padding: 150px 0 160px; background: var(--paper); }
.section-intro { display: grid; grid-template-columns: .9fr 1.25fr 1fr; gap: 6vw; align-items: end; margin-bottom: 80px; }
.section-intro .section-kicker { align-self: start; }
.section-intro h2, .heritage-copy h2, .map-copy h2, .people-heading h2, .legacy-copy h2, .principles-heading h2, .services-heading h2, .contact-copy h2 { margin-bottom: 0; font: 400 clamp(44px, 5vw, 78px)/1.14 var(--serif); letter-spacing: -.035em; }
.section-intro > p:last-child, .people-heading > p:last-child, .principles-heading > p:last-child, .services-heading > p:last-child { margin: 0; color: var(--ink-soft); line-height: 1.95; }
.chapter-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.chapter-grid a { position: relative; min-height: 230px; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; transition: color 300ms, background 300ms; }
.chapter-grid a:after { content: ""; position: absolute; right: -50px; bottom: -50px; width: 130px; height: 130px; border: 1px solid currentColor; border-radius: 50%; opacity: .12; transition: transform 350ms; }
.chapter-grid a:hover { color: #fff; background: var(--cinnabar); }
.chapter-grid a:hover:after { transform: scale(1.5); }
.chapter-grid span { display: block; color: var(--cinnabar); font: 17px var(--serif); }
.chapter-grid a:hover span { color: #f0d7a7; }
.chapter-grid strong { display: block; margin: 55px 0 10px; font: 400 26px var(--serif); }
.chapter-grid small { color: var(--ink-soft); font-size: 12px; }
.chapter-grid a:hover small { color: rgba(255,255,255,.72); }

/* Concept */
.concept-screen { position: relative; height: 100svh; min-height: 720px; color: white; overflow: hidden; }
.concept-screen picture, .concept-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.concept-screen img { filter: saturate(.65) contrast(1.08); }
.concept-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,14,12,.82), rgba(18,14,12,.15)), linear-gradient(0deg, rgba(18,14,12,.48), transparent); }
.concept-content { position: absolute; left: clamp(24px, 9vw, 156px); right: clamp(24px, 7vw, 120px); top: 50%; transform: translateY(-46%); }
.concept-content > p { color: var(--cream); font-size: 11px; letter-spacing: .28em; }
.concept-content h2 { margin: 24px 0 70px; font: 400 clamp(72px, 10vw, 156px)/.88 var(--serif); letter-spacing: -.04em; }
.concept-stats { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 980px; border-top: 1px solid rgba(255,255,255,.3); }
.concept-stats span { padding: 22px 20px 0 0; color: rgba(255,255,255,.72); font-size: 13px; }
.concept-stats strong { display: block; margin-bottom: 5px; color: #fff; font: 42px var(--serif); }

/* Heritage */
.heritage-section { padding: 160px 0; }
.heritage-layout { display: grid; grid-template-columns: .9fr 1.18fr .55fr; gap: 5vw; align-items: start; }
.heritage-copy { position: sticky; top: 130px; }
.lead-copy { margin: 38px 0; color: var(--ink-soft); font-size: 16px; line-height: 2; }
.heritage-copy blockquote { margin: 38px 0; padding: 20px 0 20px 25px; border-left: 2px solid var(--cinnabar); font: 24px var(--serif); }
.ink-link { display: inline-flex; align-items: center; gap: 40px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); font-size: 13px; }
.heritage-photo { margin: 0; }
.heritage-photo img { width: 100%; aspect-ratio: 4 / 5.2; object-fit: cover; filter: saturate(.72); }
.heritage-photo figcaption, .legacy-scroll figcaption, .lineage-photo figcaption { display: flex; justify-content: space-between; gap: 15px; margin-top: 15px; color: var(--ink-soft); }
.heritage-photo figcaption span { color: var(--ink); font-family: var(--serif); }
.heritage-photo figcaption small { text-align: right; }
.heritage-facts { border-top: 1px solid var(--line); }
.heritage-facts article { padding: 24px 0; border-bottom: 1px solid var(--line); }
.heritage-facts span { color: var(--cinnabar); font: 28px var(--serif); }
.heritage-facts p { margin: 10px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.8; }

/* Map */
.map-section { padding: 140px 0; background: var(--paper-deep); }
.map-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 8vw; align-items: center; }
.map-figure { margin: 0; padding: 22px; background: rgba(255,255,255,.48); border: 1px solid rgba(33,27,22,.08); }
.map-figure img { width: 100%; }
.map-copy h2 { margin-bottom: 50px; }
.map-copy ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.map-copy li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.map-copy li > span { color: var(--cinnabar); font-size: 11px; }
.map-copy strong { font: 20px var(--serif); }
.map-copy li p { margin: 8px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.75; }

/* Academy */
.academy-section { padding: 160px 0; color: #fff; background: var(--ink); }
.section-intro.light .section-kicker { color: #d8b77b; }
.section-intro.light > p:last-child { color: rgba(255,255,255,.58); }
.academy-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.academy-card { position: relative; min-height: 620px; overflow: hidden; }
.academy-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.65) brightness(.72); transition: transform 700ms; }
.academy-card:hover img { transform: scale(1.035); }
.academy-card:after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,16,13,.9), transparent 65%); }
.academy-card div { position: absolute; left: 42px; right: 42px; bottom: 38px; z-index: 1; }
.academy-card div > span { color: #e6c993; font-size: 11px; letter-spacing: .22em; }
.academy-card h3 { margin: 12px 0; font: 34px var(--serif); }
.academy-card p { max-width: 500px; margin: 0; color: rgba(255,255,255,.68); line-height: 1.8; }

/* People */
.people-section { padding: 160px 0; }
.people-heading { display: grid; grid-template-columns: .65fr 1fr .8fr; gap: 6vw; align-items: end; margin-bottom: 80px; }
.people-heading .section-kicker { align-self: start; }
.people-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.person-card { display: grid; grid-template-columns: .88fr 1.12fr; min-height: 570px; background: #ebe2d3; }
.person-card figure { position: relative; margin: 0; overflow: hidden; }
.person-card figure:after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.person-card figure img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.13) saturate(.78); transition: transform 600ms; }
.person-card:hover figure img { transform: scale(1.035); }
.person-card figcaption { position: absolute; left: 16px; bottom: 16px; z-index: 1; padding: 7px 10px; color: white; background: rgba(31,25,21,.72); font-size: 10px; letter-spacing: .15em; }
.person-card > div { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px,4vw,60px); }
.person-card > div > p:first-child { color: var(--cinnabar); font-size: 11px; letter-spacing: .16em; }
.person-card h3 { margin: 14px 0 25px; font: 38px var(--serif); }
.person-card > div > p:not(:first-child) { color: var(--ink-soft); font-size: 14px; line-height: 1.9; }
.person-card a { align-self: flex-start; margin-top: 30px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); font-size: 12px; }

/* Legacy */
.legacy-section { padding: 150px 0; background: #e6d5b8; }
.legacy-layout { display: grid; grid-template-columns: .62fr 1.2fr .58fr; gap: 5vw; align-items: center; }
.legacy-scroll, .lineage-photo { margin: 0; }
.legacy-scroll img { width: 100%; border: 12px solid rgba(255,255,255,.5); box-shadow: 0 20px 50px rgba(47,34,22,.15); }
.legacy-scroll figcaption, .lineage-photo figcaption { font-size: 11px; }
.legacy-copy > p:not(.section-kicker) { margin: 30px 0; color: var(--ink-soft); line-height: 1.95; }
.three-yuan { display: grid; grid-template-columns: repeat(3, 1fr); margin: 42px 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.three-yuan article { padding: 25px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.three-yuan span, .three-yuan strong, .three-yuan small { display: block; }
.three-yuan span { color: var(--cinnabar); font-size: 10px; }
.three-yuan strong { margin: 18px 0 7px; font: 27px var(--serif); }
.three-yuan small { color: var(--ink-soft); }
.legacy-copy blockquote { margin: 0; padding: 24px; color: #fff; background: var(--cinnabar); font: 23px/1.7 var(--serif); }
.legacy-copy blockquote small { font: 11px var(--sans); letter-spacing: .12em; }
.lineage-photo img { width: 100%; aspect-ratio: 3 / 4.5; object-fit: cover; }

/* Principles */
.principles-section { padding: 160px 0; color: white; background: #191714; }
.principles-heading { display: grid; grid-template-columns: .6fr 1fr .8fr; gap: 6vw; align-items: end; margin-bottom: 80px; }
.principles-heading .section-kicker { align-self: start; color: #d8b77b; }
.principles-heading > p:last-child { color: rgba(255,255,255,.56); }
.principles-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid rgba(255,255,255,.15); border-left: 1px solid rgba(255,255,255,.15); }
.principles-grid article { min-height: 290px; padding: 28px; border-right: 1px solid rgba(255,255,255,.15); border-bottom: 1px solid rgba(255,255,255,.15); transition: background 250ms; }
.principles-grid article:hover { background: var(--cinnabar); }
.principles-grid span { color: #d8b77b; font-size: 11px; }
.principles-grid h3 { margin: 75px 0 16px; font: 25px var(--serif); }
.principles-grid p { margin: 0; color: rgba(255,255,255,.56); font-size: 13px; line-height: 1.8; }
.principles-grid article:hover p { color: rgba(255,255,255,.78); }
.principles-quote { display: grid; grid-template-columns: repeat(3, 130px) 1fr; align-items: center; gap: 18px; margin-top: 80px; }
.principles-quote > span { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: #e8cb94; font: 46px var(--serif); }
.principles-quote p { justify-self: end; margin: 0; color: rgba(255,255,255,.7); font: 22px/1.8 var(--serif); text-align: right; }

/* Services */
.services-section { padding: 160px 0; }
.services-heading { display: grid; grid-template-columns: .7fr 1fr .8fr; gap: 6vw; align-items: end; margin-bottom: 80px; }
.services-heading .section-kicker { align-self: start; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.services-grid article { min-height: 270px; padding: 34px; background: var(--paper); }
.services-grid span { color: var(--cinnabar); font-size: 10px; }
.services-grid h3 { margin: 54px 0 16px; font: 25px var(--serif); }
.services-grid p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.8; }

/* Contact */
.contact-section { padding: 150px 0; color: #fff; background: var(--cinnabar-dark); }
.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 10vw; }
.contact-copy .section-kicker { color: #e2bd7b; }
.contact-copy > p:not(.section-kicker) { max-width: 540px; margin: 30px 0; color: rgba(255,255,255,.68); line-height: 1.9; }
.contact-copy address { display: grid; gap: 8px; margin: 50px 0 35px; font-style: normal; }
.contact-copy address span { color: #e2bd7b; font-size: 11px; letter-spacing: .18em; }
.contact-copy address strong { font: 20px/1.7 var(--serif); }
.outline-button { min-width: 150px; height: 48px; border: 1px solid rgba(255,255,255,.42); background: transparent; color: #fff; cursor: pointer; }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: clamp(28px,5vw,64px); color: var(--ink); background: var(--white); }
.form-heading { grid-column: 1 / -1; display: flex; align-items: end; justify-content: space-between; margin-bottom: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.form-heading span { font: 32px var(--serif); }
.form-heading small { color: var(--cinnabar); font-size: 9px; letter-spacing: .2em; }
.lead-form label, .member-form label, .language-dialog label { display: grid; gap: 9px; }
.lead-form label > span, .member-form label > span, .language-dialog label > span { color: var(--ink-soft); font-size: 12px; }
.lead-form input, .lead-form textarea, .lead-form select, .member-form input, .language-dialog select { width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; outline: 0; background: transparent; padding: 12px 0; color: var(--ink); }
.lead-form input:focus, .lead-form textarea:focus, .lead-form select:focus, .member-form input:focus, .language-dialog select:focus { border-color: var(--cinnabar); box-shadow: 0 1px 0 var(--cinnabar); }
.lead-form .wide { grid-column: 1 / -1; }
.lead-form textarea { resize: vertical; }
.honeypot { position: absolute !important; left: -9999px !important; }
.submit-button { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 20px; border: 0; background: var(--ink); color: #fff; cursor: pointer; }
.submit-button:disabled { opacity: .55; cursor: wait; }
.form-status { grid-column: 1 / -1; min-height: 20px; margin: 0; color: var(--cinnabar); font-size: 12px; }

/* Footer + floating */
.site-footer { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 60px; padding: 48px clamp(24px,5vw,84px); color: #fff; background: #151310; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand .brand-seal { width: 48px; height: 48px; font-size: 12px; }
.footer-brand strong { font-family: var(--serif); letter-spacing: .1em; }
.footer-brand p { margin: 5px 0 0; color: rgba(255,255,255,.46); font-size: 10px; }
.site-footer nav { display: flex; gap: 25px; color: rgba(255,255,255,.68); font-size: 12px; }
.footer-meta { display: grid; justify-items: end; gap: 7px; color: rgba(255,255,255,.42); font-size: 10px; }
.footer-meta button { padding: 0; border: 0; color: rgba(255,255,255,.68); background: none; cursor: pointer; }

/* Dialogs */
.dialog-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow: auto; overscroll-behavior: contain; padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); background: rgba(19,16,13,.78); backdrop-filter: blur(12px); }
.dialog-backdrop[hidden] { display: none; }
.site-dialog { width: min(620px, 100%); max-height: min(780px, calc(100svh - 40px)); overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: clamp(28px,5vw,52px); border: 1px solid rgba(67,49,36,.14); border-radius: 18px; background: var(--white); box-shadow: 0 30px 100px rgba(0,0,0,.38); animation: dialog-in 260ms ease both; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(.985); } }
.site-dialog > header { display: flex; justify-content: space-between; gap: 30px; margin-bottom: 30px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.site-dialog > header small { color: var(--cinnabar); font-size: 9px; letter-spacing: .2em; }
.site-dialog > header h2 { margin: 7px 0 0; font: 36px var(--serif); }
.site-dialog > header button { align-self: start; display: grid; place-items: center; width: 44px; height: 44px; margin: -8px -8px 0 0; border: 0; border-radius: 50%; background: rgba(33,27,22,.05); font-size: 32px; font-weight: 200; line-height: 1; cursor: pointer; }
.dialog-status { min-height: 20px; color: var(--cinnabar); font-size: 12px; }
.language-dialog { width: min(1080px, 100%); padding: clamp(28px, 4vw, 46px); background: #111a15; color: #ece5d5; border: 1px solid rgba(218,193,146,.28); border-radius: 18px; }
.language-dialog > header { align-items: flex-start; border-color: rgba(218,193,146,.2); }
.language-dialog > header small { color: #d8b77e; }
.language-dialog > header h2 { color: #f4eddd; font-size: clamp(30px, 4vw, 46px); }
.language-dialog > header button { color: #f4eddd; }
.language-count { margin-left: auto; color: #d9b77d; font: italic 700 clamp(48px, 6vw, 76px)/.8 var(--serif); }
.language-regions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding-bottom: 22px; border-bottom: 1px solid rgba(218,193,146,.2); }
.language-region { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; min-height: 48px; padding: 9px 11px; border: 1px solid rgba(235,225,205,.16); border-radius: 7px; background: rgba(255,255,255,.025); color: #e6dfd0; text-align: left; cursor: pointer; transition: background 180ms, border-color 180ms, color 180ms; }
.language-region small { display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid rgba(217,183,125,.6); color: #d9b77d; font-size: 9px; }
.language-region span { font-size: 12px; }
.language-region em { color: rgba(235,225,205,.5); font-size: 10px; font-style: normal; }
.language-region:hover, .language-region.is-active { border-color: #d9b77d; background: #d8bc8b; color: #211a13; }
.language-region:hover small, .language-region.is-active small { border-color: #8b552c; color: #78451f; }
.language-region:hover em, .language-region.is-active em { color: rgba(33,26,19,.55); }
.language-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding-top: 18px; }
.language-option { display: flex; align-items: center; min-height: 48px; padding: 10px 14px; border: 1px solid rgba(235,225,205,.16); border-radius: 7px; background: rgba(255,255,255,.035); color: #e6dfd0; text-align: left; cursor: pointer; transition: border-color 180ms, background 180ms; }
.language-option small { flex: 0 0 42px; margin-right: 12px; padding-right: 10px; border-right: 1px solid rgba(217,183,125,.26); color: #d9b77d; font: 9px var(--serif); }
.language-option span { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.language-option:hover, .language-option.is-selected { border-color: #d9b77d; background: rgba(217,183,125,.13); }
.language-option.is-selected { box-shadow: inset 3px 0 #d9b77d; }
.language-dialog .dialog-status { margin: 18px 0 0; color: rgba(235,225,205,.62); line-height: 1.6; }
.member-tabs { display: flex; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.member-tabs button { flex: 1; min-height: 46px; padding: 12px 8px; border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer; }
.member-tabs button.is-active { border-color: var(--cinnabar); color: var(--cinnabar); }
.member-form { display: grid; gap: 22px; }
.member-form [hidden] { display: none !important; }
.member-form .submit-button { margin-top: 10px; }
.member-form input { min-height: 46px; }
.form-hint { color: rgba(78,70,61,.68); font-size: 10px; line-height: 1.55; }

@media (max-width: 1100px) {
  :root { --shell: min(100% - 48px, 940px); }
  .chapter-grid { grid-template-columns: repeat(2,1fr); }
  .heritage-layout { grid-template-columns: .9fr 1.1fr; }
  .heritage-facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3,1fr); }
  .heritage-facts article { padding-right: 30px; }
  .people-heading, .principles-heading, .services-heading { grid-template-columns: .45fr 1fr; }
  .people-heading > p:last-child, .principles-heading > p:last-child, .services-heading > p:last-child { grid-column: 2; }
  .person-card { grid-template-columns: 1fr; }
  .person-card figure { min-height: 420px; }
  .principles-grid { grid-template-columns: repeat(3,1fr); }
  .legacy-layout { grid-template-columns: .55fr 1fr; }
  .lineage-photo { display: none; }
  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer nav { display: none; }
}

@media (max-width: 760px) {
  :root { --shell: calc(100% - 36px); }
  .site-header { top: max(10px, env(safe-area-inset-top)); left: 10px; max-width: calc(100vw - 20px); gap: 8px; padding: 7px; border-radius: 12px; }
  .brand-copy { display: none; }
  .brand-seal { width: 50px; height: 50px; font-size: 13px; }
  .header-actions { gap: 6px; }
  .member-button { display: inline-flex; align-items: center; }
  .ghost-button, .menu-button { height: 40px; padding: 0 9px; font-size: 11px; white-space: nowrap; }
  .site-nav { top: calc(100% + 8px); left: 0; right: auto; width: min(380px, calc(100vw - 20px)); max-height: calc(100svh - 94px); padding: 18px; border-radius: 12px; }
  .hero { min-height: 660px; }
  .hero-shade { background: linear-gradient(0deg, rgba(14,11,9,.85) 0%, rgba(14,11,9,.26) 70%), linear-gradient(90deg, rgba(14,11,9,.35), transparent); }
  .hero-content { left: 22px; top: auto; bottom: 125px; transform: none; width: calc(100% - 44px); }
  .eyebrow { margin-bottom: 16px; font-size: 10px; }
  .hero h1, .hero h2 { font-size: clamp(47px, 15vw, 70px); line-height: .98; }
  .hero-lead { margin: 20px 0 24px; font-size: 14px; line-height: 1.72; }
  .hero-cta { gap: 16px; }
  .primary-button { min-width: 136px; height: 46px; font-size: 13px; }
  .text-link { font-size: 12px; }
  .hero-controls { left: 22px; right: 22px; bottom: 23px; }
  .slide-tabs button { padding-right: 8px; font-size: 0; }
  .slide-tabs button:after { content: ""; display: block; width: 34px; height: 2px; background: currentColor; }
  .round-control { display: none; }
  .chapter-section, .heritage-section, .academy-section, .people-section, .legacy-section, .principles-section, .services-section, .contact-section { padding: 95px 0; }
  .section-intro, .people-heading, .principles-heading, .services-heading { display: block; margin-bottom: 50px; }
  .section-intro h2, .heritage-copy h2, .map-copy h2, .people-heading h2, .legacy-copy h2, .principles-heading h2, .services-heading h2, .contact-copy h2 { font-size: 43px; }
  .section-intro > p:last-child, .people-heading > p:last-child, .principles-heading > p:last-child, .services-heading > p:last-child { margin-top: 25px; }
  .chapter-grid { grid-template-columns: 1fr 1fr; }
  .chapter-grid a { min-height: 170px; padding: 20px; }
  .chapter-grid strong { margin-top: 35px; font-size: 21px; }
  .chapter-grid small { display: none; }
  .concept-screen { min-height: 680px; }
  .concept-shade { background: linear-gradient(0deg, rgba(18,14,12,.84), rgba(18,14,12,.2)); }
  .concept-content { left: 22px; right: 22px; top: auto; bottom: 60px; transform: none; }
  .concept-content h2 { margin: 20px 0 45px; font-size: 68px; }
  .concept-stats { grid-template-columns: 1fr 1fr; }
  .concept-stats span { padding-top: 14px; font-size: 11px; }
  .concept-stats strong { font-size: 30px; }
  .heritage-layout, .map-layout, .contact-layout { display: block; }
  .heritage-copy { position: static; }
  .heritage-photo { margin-top: 55px; }
  .heritage-photo img { aspect-ratio: 4 / 5; }
  .heritage-facts { display: block; margin-top: 45px; }
  .map-section { padding: 90px 0; }
  .map-copy { margin-top: 55px; }
  .map-copy h2 { margin-bottom: 35px; }
  .academy-cards, .people-grid { grid-template-columns: 1fr; }
  .academy-card { min-height: 520px; }
  .academy-card div { left: 25px; right: 25px; bottom: 25px; }
  .academy-card h3 { font-size: 29px; }
  .person-card { min-height: auto; }
  .person-card figure { min-height: 470px; }
  .person-card > div { padding: 30px; }
  .legacy-layout { display: flex; flex-direction: column; }
  .legacy-scroll { width: 72%; }
  .legacy-copy { margin-top: 45px; }
  .three-yuan article { padding: 18px 12px; }
  .three-yuan strong { font-size: 22px; }
  .principles-grid { grid-template-columns: 1fr; }
  .principles-grid article { min-height: auto; }
  .principles-grid h3 { margin-top: 28px; }
  .principles-quote { grid-template-columns: repeat(3,1fr); margin-top: 55px; }
  .principles-quote > span { font-size: 34px; }
  .principles-quote p { grid-column: 1 / -1; justify-self: start; margin-top: 18px; text-align: left; }
  .services-grid { grid-template-columns: 1fr; }
  .services-grid article { min-height: 210px; }
  .services-grid h3 { margin-top: 38px; }
  .lead-form { grid-template-columns: 1fr; margin-top: 55px; padding: 28px 22px; }
  .lead-form label, .lead-form .wide, .lead-form .submit-button, .lead-form .form-status { grid-column: 1; }
  .site-footer { grid-template-columns: 1fr; gap: 30px; padding: 40px 24px; }
  .footer-meta { justify-items: start; }
  .dialog-backdrop { place-items: start center; padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); }
  .site-dialog { width: 100%; max-height: calc(100svh - 24px); padding: 24px 20px; border-radius: 14px; }
  .site-dialog > header { gap: 14px; margin-bottom: 22px; padding-bottom: 18px; }
  .site-dialog > header h2 { font-size: 31px; }
  .member-dialog { margin: auto 0; }
  .member-tabs { margin-bottom: 22px; overflow-x: auto; }
  .member-tabs button { min-width: 88px; white-space: nowrap; }
  .member-form { gap: 17px; }
  .member-form input { min-height: 44px; font-size: 16px; }
  .language-dialog { padding: 24px 18px; border-radius: 12px; }
  .language-dialog > header { gap: 14px; margin-bottom: 20px; }
  .language-count { font-size: 44px; }
  .language-regions, .language-options { grid-template-columns: 1fr 1fr; }
  .language-region { min-height: 45px; padding: 7px; gap: 7px; }
  .language-region span, .language-option span { font-size: 11px; }
  .language-option { min-height: 45px; padding: 8px 10px; }
  .language-option small { flex-basis: 36px; margin-right: 8px; padding-right: 7px; }
}

@media (max-width: 390px) {
  .brand-seal { width: 46px; height: 46px; }
  .header-actions { gap: 4px; }
  .ghost-button, .menu-button { height: 38px; padding: 0 7px; font-size: 10px; }
  .hero-content { bottom: 118px; }
  .hero-lead { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}

@media (max-height: 700px) and (max-width: 760px) {
  .hero { min-height: 620px; }
  .hero-content { bottom: 102px; }
  .eyebrow { margin-bottom: 11px; }
  .hero h1, .hero h2 { font-size: clamp(44px, 13vw, 58px); }
  .hero-lead { margin: 13px 0 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide, .hero-slide img, .reveal { transition: none; }
  .reveal { opacity: 1; transform: none; }
}
