﻿/* Wudang ink landscape. Palette and layout: docs/wudangshan-docs/UI参考.md. */
:root {
  --paper: #dce3df;
  --cloud: #eef2ef;
  --ink: #202c29;
  --muted: #52615b;
  --mountain: #60746e;
  --red: #8c3a2b;
  --gold: #aa8b52;
  --dark: #172a29;
  --moon: #f0f3ef;
  --light-gold: #d4bc86;
  --line: rgba(32, 44, 41, 0.18);
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  /* Ma Shan Zheng is SC calligraphy; prefer 当/见 over 當/見 to avoid serif fallback. */
  --calligraphy: "Ma Shan Zheng", "Kaiti SC", "STKaiti", "KaiTi", serif;
  --sans: "PingFang SC", "Microsoft YaHei", sans-serif;
  --pad: clamp(24px, 5.5vw, 88px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/2 var(--sans);
}
::selection {
  background: var(--red);
  color: var(--moon);
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
  color: inherit;
}
img {
  display: block;
  width: 100%;
  height: auto;
}
figure,
p {
  margin: 0;
}
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 6px;
}
button {
  touch-action: manipulation;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 100;
  background: var(--cloud);
  padding: 12px 20px;
}
.skip-link:focus {
  top: 10px;
}
#ink-world {
  position: fixed;
  inset: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0;
  transition: opacity 1s;
}
.world-ready #ink-world {
  opacity: 1;
}
#ink-world.bagua-canvas {
  position: absolute;
  transition: none;
}
.content-layer,
.section-top {
  position: relative;
  z-index: 3;
}
.nav {
  height: 96px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
  background: #dce3dfd9;
  backdrop-filter: blur(12px);
}
.nav.fixed {
  position: fixed;
  height: 78px;
  background: #eef2eff0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}
.brand-seal {
  font: 700 19px/1.12 var(--calligraphy);
  color: var(--cloud);
  background: var(--red);
  padding: 7px 6px 8px;
  outline: 1px solid #b07969;
  outline-offset: -4px;
  letter-spacing: 1px;
}
.brand-name {
  font: 700 26px/1.35 var(--calligraphy);
  letter-spacing: 0.18em;
  -webkit-text-stroke: 0.35px currentColor;
}
.brand-name small {
  display: block;
  font: 8px/2 var(--sans);
  font-weight: 400;
  letter-spacing: 0.16em;
  margin-top: 5px;
  color: var(--muted);
  -webkit-text-stroke: 0;
}
.nav-links {
  display: flex;
  gap: clamp(15px, 2vw, 30px);
}
.nav-links a {
  font-size: 12px;
  padding: 10px 0;
  letter-spacing: 0.08em;
  position: relative;
}
.nav-links a:hover,
.nav-links a[aria-current] {
  color: var(--red);
}
.nav-links a[aria-current]::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--red);
}
.nav-action {
  font-size: 12px;
  letter-spacing: 0.12em;
  border-left: 1px solid var(--line);
  padding: 4px 0 4px 26px;
  white-space: nowrap;
}
.nav-action span {
  margin-left: 25px;
  color: var(--red);
  font-size: 19px;
}
.burger {
  display: none;
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  padding: 12px;
}
.burger > span:not(.sr-only) {
  display: block;
  height: 1px;
  background: var(--ink);
  margin: 7px 0;
  transition: transform 0.2s;
}
.hero {
  height: min(100svh, 1100px);
  min-height: 760px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(
    ellipse at 65% 27%,
    #f2f5f1 0%,
    #e2e8e3 40%,
    #dce3df 75%
  );
}
.hero-stage {
  position: absolute;
  right: -3%;
  left: 31%;
  top: 108px;
  bottom: 60px;
}
.mountain-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 50%;
  opacity: 0.78;
  mask-image:
    linear-gradient(90deg, transparent, #000 25%, #000 85%, transparent),
    linear-gradient(0deg, transparent, #000 24%, #000 82%, transparent);
  mask-composite: intersect;
  transition: opacity 1.3s;
}
.world-ready .mountain-poster {
  opacity: 0.27;
}
.hero-bagua {
  position: absolute;
  width: 410px;
  right: 13%;
  top: 5%;
  opacity: 0.09;
  transform: rotate(-12deg);
}
.hero-copy {
  position: relative;
  padding-top: clamp(180px, 22vh, 260px);
  margin-left: var(--pad);
  width: 48%;
  max-width: 650px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 15px;
}
.red-line {
  width: 26px;
  height: 1px;
  background: var(--red);
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
}
h1 {
  font-size: clamp(82px, 8.2vw, 126px);
  line-height: 1.32;
  letter-spacing: 0.08em;
  margin: 25px 0 20px;
}
#hero-title {
  font-family: var(--calligraphy);
  font-weight: 700;
  letter-spacing: 0.06em;
  -webkit-text-stroke: 0.45px currentColor;
}
h1 em {
  font-style: normal;
  color: #466057;
}
.hero-slogan {
  font: 23px/1.8 var(--serif);
  letter-spacing: 0.2em;
}
.hero-intro {
  font-size: 13px;
  color: var(--muted);
  margin-top: 20px;
  line-height: 2.1;
}
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 55px;
  min-height: 48px;
  font-size: 13px;
  letter-spacing: 0.16em;
  border-bottom: 1px solid var(--red);
  color: var(--red);
  margin-top: 26px;
}
.text-link span {
  font-size: 22px;
}
.text-link:hover span {
  transform: translateY(3px);
}
.hero-margin {
  position: absolute;
  right: 29px;
  top: 34%;
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 30px;
  font: 13px var(--serif);
  letter-spacing: 0.3em;
  color: var(--mountain);
}
.hero-margin i {
  font: 9px var(--sans);
  letter-spacing: 0.24em;
}
.hero-bottom {
  position: absolute;
  bottom: 28px;
  left: var(--pad);
  right: var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
}
.hero-bottom p {
  font: 14px var(--serif);
  letter-spacing: 0.15em;
}
.hero-bottom p span {
  margin: 0 20px;
}
.scroll-label {
  display: flex;
  align-items: center;
  gap: 14px;
}
.scroll-label > span {
  font-size: 23px;
}
.hero-coordinates {
  font:
    10px Georgia,
    serif;
  letter-spacing: 0.12em;
}
.chapter {
  position: relative;
  padding: 76px var(--pad) 110px;
}
.section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-bottom: 65px;
  gap: 20px;
}
.chapter-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  display: flex;
  align-items: center;
  gap: 22px;
}
.chapter-label b {
  font:
    italic 22px Georgia,
    serif;
  color: var(--mountain);
}
.english-note {
  font: 9px/1.7 var(--sans);
  letter-spacing: 0.2em;
  color: var(--muted);
}
h2 {
  font-size: clamp(42px, 4.5vw, 68px);
  line-height: 1.5;
  letter-spacing: 0.08em;
}
h3 {
  font-size: 30px;
  line-height: 1.6;
  letter-spacing: 0.08em;
}
.kicker {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--mountain);
  margin-bottom: 18px;
}
.lead {
  font: 22px/1.8 var(--serif);
  letter-spacing: 0.05em;
  margin: 25px 0 18px;
}
.micro {
  font-size: 10px;
  line-height: 1.9;
  letter-spacing: 0.12em;
}
.fine-rule {
  display: block;
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 28px 0;
}
figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  letter-spacing: 0.08em;
  margin-top: 14px;
}
figcaption span {
  font: 9px/2 var(--sans);
  letter-spacing: 0.12em;
}
.origin {
  background: linear-gradient(180deg, #dce3df, var(--cloud) 50%, #e8ede8);
  padding-bottom: 105px;
}
.origin-layout {
  display: grid;
  grid-template-columns: 0.3fr 1fr 1.05fr;
  gap: 5%;
  align-items: center;
  max-width: 1360px;
  margin: auto;
}
.origin-caption {
  writing-mode: vertical-rl;
  justify-self: start;
  font: 23px/2 var(--serif);
  letter-spacing: 0.3em;
  display: flex;
  gap: 25px;
}
.origin-caption span {
  font-size: 11px;
  color: var(--mountain);
}
.origin-copy {
  max-width: 450px;
}
.origin-copy > p:not(.kicker):not(.lead) {
  font-size: 14px;
  color: var(--muted);
  margin: 15px 0;
  line-height: 2.15;
}
.small-seal {
  display: inline-block;
  writing-mode: vertical-rl;
  font: 17px/1.3 var(--serif);
  letter-spacing: 0.1em;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 7px 4px;
  margin-top: 20px;
}
.origin-photo {
  align-self: stretch;
  padding-top: 15px;
  position: relative;
}
.origin-photo img {
  height: 540px;
  object-fit: cover;
  mask-image: linear-gradient(
    180deg,
    transparent,
    #000 14%,
    #000 86%,
    transparent
  );
}
.origin-photo figcaption {
  margin-top: -12px;
  position: relative;
  z-index: 3;
  padding: 0 18px;
}
.landscape {
  background: #e8ede8;
  padding-bottom: 110px;
}
.landscape-heading {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: end;
  gap: 12%;
  max-width: 1190px;
  margin: 0 auto 55px;
}
.landscape-heading > div {
  max-width: 410px;
  padding-bottom: 10px;
}
.landscape-heading p:not(.lead) {
  font-size: 14px;
  color: var(--muted);
}
.landscape-heading .lead {
  margin: 0 0 18px;
}
.panorama {
  position: relative;
  max-width: 1180px;
  margin: auto;
}
.panorama img {
  aspect-ratio: 2.15;
  object-fit: cover;
  object-position: 50% 58%;
}
.photo-side-note {
  position: absolute;
  right: -35px;
  top: 0;
  writing-mode: vertical-rl;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--mountain);
}
.landscape-lower {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr 0.8fr;
  gap: 6%;
  align-items: start;
  max-width: 1180px;
  margin: 50px auto 0;
}
.gate-photo {
  margin-top: 35px;
}
.gate-photo img {
  aspect-ratio: 1.2;
  object-fit: cover;
}
.eaves-photo {
  margin-top: 110px;
}
.eaves-photo img {
  aspect-ratio: 0.75;
  object-fit: cover;
  filter: saturate(0.7);
}
.heritage-note {
  padding-top: 15px;
}
.heritage-year {
  font:
    65px/1.3 Georgia,
    serif;
  color: #577267;
  letter-spacing: -0.04em;
}
.heritage-note .kicker {
  color: var(--ink);
  margin: 5px 0 22px;
}
.heritage-note > p:not(.kicker):not(.micro) {
  font-size: 13px;
  line-height: 2.15;
  color: var(--muted);
}
.heritage-note .micro {
  color: var(--muted);
}
.ancestry {
  background: #d5dfd8;
  padding-bottom: 105px;
}
.ancestry-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  max-width: 1260px;
  margin: auto;
  align-items: center;
  gap: 0;
}
.temple-photo {
  position: relative;
}
.temple-photo img {
  height: 650px;
  object-fit: cover;
  object-position: 45% 50%;
}
.temple-photo figcaption {
  position: absolute;
  bottom: 20px;
  left: 25px;
  color: #f0f3ef;
  font: 12px var(--serif);
  letter-spacing: 0.15em;
}
.ancestry-copy {
  padding: 46px 15px 46px 65px;
  margin-left: -30px;
  background: #e8ede8;
  max-width: 590px;
}
.ancestry-copy > p:not(.kicker) {
  font-size: 14px;
  line-height: 2.1;
  color: var(--muted);
  margin-top: 22px;
}
.ancestry-copy h2 {
  font-size: clamp(40px, 4vw, 60px);
}
.festival-dates {
  display: flex;
  gap: 45px;
  margin-top: 36px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}
.festival-dates div {
  display: flex;
  flex-direction: column;
}
.festival-dates span {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.2em;
}
.festival-dates strong {
  font: 26px/1.9 var(--serif);
  letter-spacing: 0.1em;
}
.festival-dates small {
  font-size: 11px;
  color: var(--muted);
}
.taichi {
  background: radial-gradient(
    ellipse at 50% 46%,
    #f0f4ef,
    #e5ece5 52%,
    #dce5dd
  );
  padding-bottom: 90px;
}
.taichi .section-top {
  margin-bottom: 50px;
}
.taichi-heading {
  text-align: center;
}
.taichi-heading h2 {
  font-size: clamp(36px, 4vw, 60px);
}
.taichi-layout {
  display: grid;
  grid-template-columns: 1fr 2.4fr 1fr;
  align-items: center;
  max-width: 1250px;
  margin: 0 auto;
}
.bagua-stage {
  height: 530px;
  position: relative;
}
.bagua-poster {
  height: 100%;
  object-fit: contain;
  padding: 28px;
  opacity: 0.88;
  transition: opacity 1s;
}
.disc-ready .bagua-poster {
  opacity: 0;
}
.bagua-caption {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-top: -20px;
}
.bagua-caption span {
  font-size: 10px;
  letter-spacing: 0.08em;
  margin-left: 18px;
}
.taichi-aside {
  padding: 10px 0;
}
.taichi-aside.right {
  text-align: right;
}
.philosophy-number {
  font: 44px/1 var(--serif);
  color: var(--mountain);
  opacity: 0.6;
  display: block;
  margin-bottom: 24px;
}
.taichi-aside h3 {
  font-size: 25px;
  margin-bottom: 20px;
}
.taichi-aside p {
  font-size: 12px;
  color: var(--muted);
  line-height: 2.2;
}
.bagua-controls {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 650px;
  margin: 35px auto 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.bagua-controls button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  padding: 12px 6px 9px;
  border: 0;
  background: none;
  font: 21px/1.4 var(--serif);
  transition:
    background 0.2s,
    color 0.2s;
}
.bagua-controls small {
  font: 10px/1.8 var(--sans);
  margin-top: 3px;
  color: var(--muted);
}
.bagua-controls button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--moon);
}
.bagua-controls button[aria-pressed="true"] small {
  color: #dce3df;
}
.bagua-controls button:hover:not([aria-pressed="true"]) {
  background: #60746e18;
}
.gua-description {
  max-width: 650px;
  margin: 20px auto;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  min-height: 26px;
}
.gua-description strong {
  font-weight: 400;
  color: var(--ink);
  margin-right: 18px;
}
.taichi-end {
  max-width: 680px;
  text-align: center;
  margin: 30px auto 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 2.1;
}
.customs {
  background: var(--cloud);
  padding-bottom: 130px;
}
.customs-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  max-width: 1100px;
  margin: 0 auto 65px;
  gap: 30px;
}
.customs-intro > p {
  color: var(--muted);
  font-size: 14px;
  padding-bottom: 14px;
  line-height: 2.2;
}
.customs-stories {
  max-width: 1100px;
  margin: auto;
}
.custom-story {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 10%;
  margin-top: 60px;
}
.custom-story figure img {
  width: 100%;
  object-fit: cover;
}
.custom-story.first figure img {
  aspect-ratio: 1.7;
}
.custom-text > span {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--mountain);
}
.custom-text h3 {
  margin: 17px 0;
}
.custom-text > p {
  font-size: 13px;
  color: var(--muted);
  line-height: 2.15;
}
.custom-story.second {
  grid-template-columns: 1fr 0.8fr;
  margin: 50px 5% 0 15%;
  gap: 16%;
}
.custom-story.second figure img {
  aspect-ratio: 0.9;
  max-height: 420px;
}
.custom-story.third {
  margin: 45px 8% 0 0;
  grid-template-columns: 1.05fr 1fr;
}
.custom-story.third img {
  aspect-ratio: 1.6;
}
.custom-story.first .custom-text {
  padding-left: 15px;
}
.bracelet {
  background: var(--dark);
  color: var(--moon);
  padding-bottom: 65px;
}
.bracelet .section-top {
  border-color: #a8b7b03b;
}
.bracelet .chapter-label b {
  color: var(--light-gold);
}
.bracelet .english-note {
  color: #aebfb5;
}
.bracelet .kicker {
  color: var(--light-gold);
}
.bracelet-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10%;
  max-width: 1240px;
  margin: auto;
  align-items: center;
}
.bracelet-copy > p:not(.kicker):not(.lead) {
  font-size: 14px;
  line-height: 2.15;
  color: #c5d1c9;
  margin-top: 22px;
  max-width: 440px;
}
.bracelet-copy .lead {
  font-size: 21px;
  color: #e1e8e0;
}
.bracelet h2 {
  font-size: clamp(40px, 4.1vw, 62px);
}
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  min-height: 48px;
  border-radius: 2px;
  padding: 10px 23px;
  background: var(--red);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--moon);
  margin-top: 32px;
  transition: background 0.2s;
}
.button-primary:hover {
  background: #a04a3a;
}
.button-primary span {
  font-size: 20px;
}
.ritual-photo {
  position: relative;
}
.ritual-photo img {
  aspect-ratio: 1.3;
  object-fit: cover;
  filter: saturate(0.72);
}
.ritual-photo figcaption {
  font-size: 10px;
  color: #c5d1c9;
  position: absolute;
  bottom: 15px;
  right: 18px;
  letter-spacing: 0.15em;
}
.edition {
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 24px;
  margin: 25px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid #aa8b5280;
}
.edition-seal {
  display: grid;
  place-content: center;
  width: 52px;
  height: 68px;
  border: 1px solid var(--gold);
  outline: 1px solid var(--gold);
  outline-offset: -5px;
  color: var(--light-gold);
  font: 21px/1.2 var(--serif);
}
.edition .micro {
  color: #bccdc2;
  display: block;
}
.edition strong {
  display: block;
  font:
    clamp(23px, 2.7vw, 37px)/1.7 Consolas,
    monospace;
  color: var(--light-gold);
  font-weight: 400;
  white-space: nowrap;
}
.edition strong i {
  font-style: normal;
  font-size: 0.5em;
  color: #bccdc2;
}
.edition small {
  font-size: 11px;
  color: #c5d1c9;
}
.edition details {
  grid-column: 1/-1;
  border-top: 1px solid #a8b7b033;
  padding-top: 15px;
}
.edition summary {
  font-size: 11px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  min-height: 44px;
  align-items: center;
  list-style: none;
  color: #d7e0d8;
}
.edition summary::-webkit-details-marker {
  display: none;
}
.edition details[open] summary span {
  transform: rotate(45deg);
}
.edition details p {
  font-size: 12px;
  line-height: 2;
  color: #c5d1c9;
  padding: 5px 0 10px;
}
.craft-strip {
  border-top: 1px solid #a8b7b03b;
  max-width: 1240px;
  margin: 60px auto 0;
  padding-top: 30px;
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.7fr 0.9fr 1.4fr;
  gap: 25px;
  align-items: center;
}
.craft-strip > p:first-child {
  font: 21px/1.6 var(--serif);
  letter-spacing: 0.1em;
}
.craft-strip > p:first-child span {
  font: 10px/2 var(--sans);
  color: #adbbb0;
  letter-spacing: 0.1em;
}
.craft-strip > div {
  display: flex;
  flex-direction: column;
}
.craft-strip strong {
  font:
    39px/1.3 Georgia,
    serif;
  color: var(--light-gold);
  font-weight: 400;
}
.craft-strip > div span {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #c5d1c9;
  margin-top: 5px;
}
.material-note {
  font-size: 10px;
  line-height: 2.1;
  color: #bbc9be;
  text-align: right;
}
.closing {
  background: linear-gradient(180deg, #dce3df, #eef2ef 60%);
  padding-bottom: 25px;
}
.closing-message {
  position: relative;
  text-align: center;
  padding: 35px 0 80px;
}
.closing-message:before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/wudang/ink-mountains.webp") center 48% / cover;
  opacity: 0.1;
  mask-image: linear-gradient(
    0deg,
    transparent,
    #000 30%,
    #000 70%,
    transparent
  );
  pointer-events: none;
}
.closing-message > * {
  position: relative;
}
.closing-message h2 {
  font-size: clamp(45px, 4.6vw, 70px);
}
.closing-message > p:last-child {
  font-size: 13px;
  color: var(--muted);
  margin-top: 25px;
}
.channels {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.2fr;
  border-top: 1px solid var(--line);
  padding-top: 42px;
  gap: 40px;
}
.channel-brand {
  display: flex;
  align-items: start;
  gap: 20px;
}
.channel-brand .brand-seal {
  flex-shrink: 0;
}
.channel-brand p {
  font: 17px/1.8 var(--serif);
  padding-top: 4px;
}
.channel-brand small {
  display: block;
  font: 8px/2 var(--sans);
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: 10px;
}
.channels h3 {
  font-size: 17px;
  margin-bottom: 14px;
}
.channels > div > p:not(.channel-brand p) {
  font-size: 12px;
  line-height: 2.1;
}
.channels > div > small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 13px;
}
.foot-bottom {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 45px;
  padding-top: 20px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.reading-progress {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  z-index: 40;
  background: transparent;
}
.reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: top;
}
@media (min-width: 1600px) {
  .chapter {
    padding-left: max(var(--pad), calc((100vw - 1440px) / 2));
    padding-right: max(var(--pad), calc((100vw - 1440px) / 2));
  }
}
@media (max-width: 1150px) {
  .nav {
    gap: 18px;
  }
  .nav-links {
    gap: 17px;
  }
  .nav-links a {
    font-size: 11px;
  }
  .nav-action {
    padding-left: 16px;
  }
  .nav-action span {
    margin-left: 10px;
  }
  .brand-name {
    font-size: 21px;
  }
  .brand-name small {
    font-size: 7px;
  }
  .origin-layout {
    grid-template-columns: 0.16fr 1fr 1fr;
    gap: 4%;
  }
  .origin-photo img {
    height: 480px;
  }
  .taichi-layout {
    grid-template-columns: 1fr 2.5fr 1fr;
  }
  .bagua-stage {
    height: 440px;
  }
  .taichi-aside h3 {
    font-size: 22px;
  }
  .taichi-aside p {
    font-size: 11px;
  }
  .ancestry-copy {
    padding-left: 42px;
  }
  .craft-strip {
    gap: 16px;
  }
  .material-note {
    font-size: 9px;
  }
  .hero-margin {
    right: 18px;
  }
  .hero-bottom p {
    font-size: 12px;
  }
  .landscape-lower {
    gap: 5%;
  }
  .hero-intro {
    font-size: 12px;
  }
}
@media (max-width: 900px) {
  .nav-links {
    gap: 12px;
  }
  .nav-action {
    display: none;
  }
  .brand-name {
    font-size: 20px;
  }
  .nav {
    height: 84px;
  }
  .hero {
    min-height: 790px;
  }
  .hero-stage {
    left: 25%;
    right: -15%;
    top: 150px;
  }
  .hero-copy {
    padding-top: 200px;
    width: 60%;
  }
  h1 {
    font-size: 88px;
  }
  .hero-bottom p {
    display: none;
  }
  .hero-bagua {
    width: 330px;
    top: 10%;
    right: 22%;
  }
  .origin-layout {
    grid-template-columns: 1fr 1fr;
    gap: 6%;
  }
  .origin-caption {
    display: none;
  }
  .origin-copy h2 {
    font-size: 43px;
  }
  .origin-photo img {
    height: 480px;
  }
  .chapter {
    padding-top: 60px;
    padding-bottom: 80px;
  }
  .section-top {
    margin-bottom: 45px;
  }
  .landscape-heading {
    gap: 7%;
  }
  .landscape-heading p:not(.lead) {
    font-size: 12px;
  }
  .landscape-heading .lead {
    font-size: 20px;
  }
  .ancestry-copy {
    padding: 30px;
    margin-left: -40px;
  }
  .ancestry-copy h2 {
    font-size: 40px;
  }
  .ancestry-copy > p:not(.kicker) {
    font-size: 12px;
  }
  .temple-photo img {
    height: 580px;
  }
  .festival-dates {
    gap: 22px;
  }
  .festival-dates strong {
    font-size: 22px;
  }
  .taichi-layout {
    grid-template-columns: 1fr 2.6fr 1fr;
  }
  .bagua-stage {
    height: 340px;
  }
  .taichi-aside h3 {
    font-size: 18px;
  }
  .taichi-aside p {
    font-size: 10px;
  }
  .philosophy-number {
    font-size: 33px;
  }
  .taichi-heading h2 {
    font-size: 40px;
  }
  .bagua-poster {
    padding: 15px;
  }
  .taichi-end {
    font-size: 12px;
  }
  .bracelet-layout {
    gap: 7%;
  }
  .bracelet h2 {
    font-size: 40px;
  }
  .bracelet-copy > p:not(.kicker):not(.lead) {
    font-size: 12px;
  }
  .bracelet-copy .lead {
    font-size: 18px;
  }
  .edition {
    gap: 16px;
    grid-template-columns: 45px 1fr;
  }
  .edition-seal {
    width: 44px;
    height: 58px;
  }
  .edition strong {
    font-size: 25px;
  }
  .craft-strip {
    grid-template-columns: 1fr 0.7fr 0.7fr 0.9fr;
  }
  .material-note {
    grid-column: 1/-1;
    text-align: left;
    margin-top: 5px;
  }
  .channels {
    gap: 25px;
    grid-template-columns: 1fr 1fr;
  }
  .channel-brand {
    grid-column: 1/-1;
  }
  .customs-intro > p {
    font-size: 12px;
  }
  .custom-story {
    gap: 7%;
  }
  .custom-text h3 {
    font-size: 27px;
  }
  .custom-story.second {
    margin-left: 10%;
    gap: 12%;
  }
  .english-note {
    font-size: 8px;
  }
}
@media (max-width: 700px) {
  :root {
    --pad: 24px;
  }
  html {
    scroll-padding-top: 85px;
  }
  .nav,
  .nav.fixed {
    height: 76px;
    padding: 0 23px;
    position: absolute;
  }
  .nav.fixed {
    position: fixed;
  }
  .brand-seal {
    font-size: 16px;
    padding: 6px 5px 7px;
  }
  .brand-name {
    font-size: 21px;
  }
  .brand-name small {
    font-size: 7px;
    letter-spacing: 0.14em;
    margin-top: 3px;
  }
  .burger {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 75px;
    left: 0;
    right: 0;
    background: #eef2effa;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 25px;
  }
  .nav-links.open {
    display: grid;
  }
  .nav-links a {
    font-size: 13px;
    padding: 8px 0;
  }
  .nav-links a[aria-current]::after {
    width: 40px;
  }
  .hero {
    height: 850px;
    min-height: 0;
    max-height: none;
  }
  .hero-copy {
    margin-left: var(--pad);
    padding-top: 133px;
    width: calc(100% - 48px);
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 0.16em;
    gap: 11px;
  }
  h1 {
    font-size: 70px;
    margin: 20px 0 12px;
    line-height: 1.35;
    letter-spacing: 0.08em;
  }
  .hero-slogan {
    font-size: 18px;
    letter-spacing: 0.14em;
  }
  .hero-intro {
    font-size: 11px;
    line-height: 2;
    margin-top: 13px;
    max-width: 230px;
  }
  .text-link {
    font-size: 12px;
    gap: 38px;
    margin-top: 16px;
    min-height: 44px;
  }
  .hero-stage {
    left: -7%;
    right: -15%;
    top: 320px;
    bottom: 45px;
  }
  .mountain-poster {
    object-position: 50% 50%;
    opacity: 0.75;
  }
  .world-ready .mountain-poster {
    opacity: 0.25;
  }
  .hero-bagua {
    width: 235px;
    top: 45px;
    right: 22%;
    opacity: 0.08;
  }
  .hero-margin {
    display: none;
  }
  .hero-bottom {
    bottom: 20px;
    font-size: 9px;
    left: 24px;
    right: 24px;
  }
  .hero-coordinates {
    font-size: 8px;
  }
  .scroll-label {
    gap: 10px;
  }
  .scroll-label > span {
    font-size: 19px;
  }
  .chapter {
    padding: 45px var(--pad) 65px;
  }
  .section-top {
    padding-top: 16px;
    margin-bottom: 38px;
    gap: 15px;
  }
  .chapter-label {
    font-size: 11px;
    gap: 15px;
    white-space: nowrap;
  }
  .chapter-label b {
    font-size: 20px;
  }
  .english-note {
    font-size: 7px;
    letter-spacing: 0.09em;
    text-align: right;
    max-width: 145px;
  }
  h2 {
    font-size: 39px;
    line-height: 1.5;
  }
  .kicker {
    font-size: 10px;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
  }
  .lead {
    font-size: 20px;
    margin: 22px 0 15px;
  }
  .origin-layout {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .origin-copy {
    max-width: 500px;
  }
  .origin-copy h2 {
    font-size: 42px;
  }
  .origin-copy > p:not(.kicker):not(.lead) {
    font-size: 14px;
  }
  .small-seal {
    margin-top: 14px;
  }
  .origin-photo {
    width: 84%;
    justify-self: end;
    margin-top: 0;
  }
  .origin-photo img {
    height: 350px;
    object-position: center 45%;
  }
  .origin-photo figcaption {
    padding: 0;
    font-size: 10px;
  }
  .landscape-heading {
    display: block;
    margin-bottom: 32px;
  }
  .landscape-heading h2 {
    font-size: 40px;
  }
  .landscape-heading > div {
    margin-top: 25px;
    padding: 0;
  }
  .landscape-heading .lead {
    font-size: 20px;
    margin-bottom: 12px;
  }
  .landscape-heading p:not(.lead) {
    font-size: 13px;
  }
  .panorama img {
    aspect-ratio: 1.15;
    object-position: 56% center;
  }
  .photo-side-note {
    display: none;
  }
  figcaption {
    font-size: 10px;
    margin-top: 12px;
    letter-spacing: 0.03em;
  }
  figcaption span {
    font-size: 8px;
  }
  .landscape-lower {
    grid-template-columns: 1.15fr 1fr;
    gap: 24px;
    margin-top: 25px;
  }
  .gate-photo {
    margin-top: 15px;
  }
  .gate-photo img {
    aspect-ratio: 0.84;
  }
  .heritage-year {
    font-size: 48px;
  }
  .heritage-note .kicker {
    font-size: 10px;
  }
  .heritage-note > p:not(.kicker):not(.micro) {
    font-size: 11px;
  }
  .heritage-note .micro {
    font-size: 8px;
  }
  .fine-rule {
    margin: 22px 0;
  }
  .eaves-photo {
    grid-column: 1/-1;
    width: 65%;
    justify-self: end;
    margin-top: 5px;
  }
  .eaves-photo img {
    aspect-ratio: 1.2;
  }
  .ancestry-layout {
    display: flex;
    flex-direction: column;
  }
  .temple-photo {
    width: 100%;
  }
  .temple-photo img {
    height: 350px;
    object-position: 40% center;
  }
  .temple-photo figcaption {
    left: 18px;
    bottom: 18px;
    font-size: 11px;
  }
  .ancestry-copy {
    padding: 28px 23px 25px;
    margin: -45px 0 0 23px;
    max-width: none;
  }
  .ancestry-copy h2 {
    font-size: 36px;
  }
  .ancestry-copy > p:not(.kicker) {
    font-size: 13px;
    margin-top: 20px;
  }
  .festival-dates {
    gap: 35px;
    margin-top: 25px;
    padding-top: 20px;
  }
  .festival-dates strong {
    font-size: 22px;
  }
  .festival-dates small {
    font-size: 10px;
  }
  .taichi .section-top {
    margin-bottom: 35px;
  }
  .taichi-heading h2 {
    font-size: 30px;
    letter-spacing: 0.03em;
  }
  .taichi-heading .kicker {
    font-size: 9px;
  }
  .taichi-layout {
    grid-template-columns: 1fr 1fr;
    gap: 20px 15px;
    margin-top: 0;
  }
  .bagua-exhibit {
    grid-column: 1/-1;
    grid-row: 1;
  }
  .bagua-stage {
    height: 355px;
    margin: 0 -12px;
  }
  .bagua-poster {
    padding: 12px;
  }
  .bagua-caption {
    margin-top: -12px;
    font-size: 10px;
  }
  .bagua-caption span {
    font-size: 9px;
    margin-left: 12px;
  }
  .taichi-aside {
    padding: 20px 8px 10px;
  }
  .taichi-aside.right {
    text-align: left;
    padding-left: 22px;
    border-left: 1px solid var(--line);
  }
  .philosophy-number {
    font-size: 28px;
    margin-bottom: 14px;
  }
  .taichi-aside h3 {
    font-size: 21px;
    margin-bottom: 12px;
  }
  .taichi-aside p {
    font-size: 12px;
    line-height: 2;
  }
  .bagua-controls {
    margin-top: 20px;
  }
  .bagua-controls button {
    font-size: 19px;
    padding: 12px 2px 10px;
  }
  .bagua-controls small {
    font-size: 9px;
  }
  .gua-description {
    font-size: 11px;
    line-height: 2;
    min-height: 45px;
    text-align: left;
  }
  .gua-description strong {
    margin-right: 10px;
  }
  .taichi-end {
    font-size: 12px;
    text-align: left;
    margin-top: 22px;
  }
  .taichi-end br {
    display: none;
  }
  .customs-intro {
    display: block;
    margin-bottom: 35px;
  }
  .customs-intro h2 {
    font-size: 40px;
  }
  .customs-intro > p {
    font-size: 13px;
    margin-top: 24px;
    padding: 0;
  }
  .customs-stories {
    margin-top: 0;
  }
  .custom-story,
  .custom-story.second,
  .custom-story.third {
    grid-template-columns: 1fr;
    gap: 22px;
    margin: 35px 0 0;
  }
  .custom-story.first figure img {
    aspect-ratio: 1.5;
  }
  .custom-story.first .custom-text {
    padding-left: 0;
  }
  .custom-text > span {
    font-size: 10px;
  }
  .custom-text h3 {
    font-size: 28px;
    margin: 10px 0;
  }
  .custom-text > p {
    font-size: 13px;
  }
  .custom-story.second {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
    align-items: center;
  }
  .custom-story.second figure {
    grid-column: 2;
    grid-row: 1;
  }
  .custom-story.second .custom-text {
    grid-column: 1;
    grid-row: 1;
  }
  .custom-story.second figure img {
    aspect-ratio: 0.65;
    max-height: 320px;
  }
  .custom-story.second h3 {
    font-size: 24px;
    letter-spacing: 0;
  }
  .custom-story.second .custom-text > p {
    font-size: 11px;
  }
  .custom-story.second .custom-text > span {
    font-size: 9px;
  }
  .custom-story.third {
    margin-top: 40px;
  }
  .custom-story.third figure {
    width: 87%;
  }
  .custom-story.third img {
    aspect-ratio: 1.4;
  }
  .custom-story.third .custom-text {
    padding-left: 25px;
  }
  .bracelet .section-top {
    margin-bottom: 38px;
  }
  .bracelet-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .bracelet h2 {
    font-size: 39px;
  }
  .bracelet-copy .lead {
    font-size: 20px;
  }
  .bracelet-copy > p:not(.kicker):not(.lead) {
    font-size: 14px;
    line-height: 2.1;
    margin-top: 20px;
  }
  .button-primary {
    margin-top: 26px;
  }
  .ritual-photo img {
    aspect-ratio: 1.3;
  }
  .edition {
    gap: 18px;
    grid-template-columns: 48px 1fr;
  }
  .edition-seal {
    width: 48px;
    height: 64px;
  }
  .edition strong {
    font-size: 29px;
  }
  .edition .micro {
    font-size: 9px;
  }
  .edition small {
    font-size: 10px;
  }
  .craft-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px 18px;
    margin-top: 38px;
    padding-top: 25px;
  }
  .craft-strip > p:first-child {
    grid-column: 1/-1;
    font-size: 19px;
  }
  .craft-strip strong {
    font-size: 36px;
  }
  .craft-strip > div span {
    font-size: 10px;
  }
  .material-note {
    font-size: 10px;
  }
  .closing .section-top {
    margin-bottom: 20px;
  }
  .closing-message {
    padding: 30px 0 55px;
  }
  .closing-message h2 {
    font-size: 40px;
  }
  .closing-message > p:last-child {
    font-size: 12px;
  }
  .channels {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 32px;
  }
  .channel-brand {
    grid-column: auto;
    gap: 15px;
  }
  .channel-brand p {
    font-size: 17px;
  }
  .channels h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }
  .channels > div > p:not(.channel-brand p) {
    font-size: 12px;
  }
  .channels > div > small {
    font-size: 10px;
    margin-top: 8px;
  }
  .foot-bottom {
    font-size: 9px;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
    padding-top: 18px;
  }
  .foot-bottom > span:nth-child(2) {
    display: none;
  }
  .reading-progress {
    display: none;
  }
}
@media (max-width: 360px) {
  :root {
    --pad: 20px;
  }
  h1 {
    font-size: 64px;
  }
  .hero-copy {
    width: calc(100% - 40px);
  }
  .hero-intro {
    font-size: 10px;
  }
  .hero {
    height: 820px;
  }
  .hero-stage {
    top: 350px;
  }
  .bagua-stage {
    height: 310px;
  }
  .taichi-heading h2 {
    font-size: 27px;
  }
  .edition strong {
    font-size: 25px;
  }
  .festival-dates {
    gap: 20px;
  }
  .custom-story.second {
    gap: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  #ink-world {
    display: none;
  }
  .world-ready .mountain-poster {
    opacity: 0.78;
  }
  .disc-ready .bagua-poster {
    opacity: 0.88;
  }
}
@media print {
  .nav,
  .reading-progress,
  #ink-world,
  .burger {
    display: none;
  }
  .hero {
    height: auto;
    min-height: 0;
  }
  .hero-copy {
    padding-top: 30px;
  }
  .chapter {
    break-inside: avoid;
    padding: 30px;
  }
  .content-layer {
    color: #202c29;
  }
  .bracelet {
    background: #eef2ef;
    color: #202c29;
  }
}
/* Photographic ink wash remains the visual ground beneath the live mountain relief. */
.world-ready .mountain-poster {
  opacity: 0.65;
}
.hero-stage {
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 13%,
    #000 93%,
    transparent
  );
}
@media (max-width: 700px) {
  .hero-stage {
    top: 465px;
    left: -12%;
    right: -20%;
    bottom: 45px;
  }
  .hero-bagua {
    top: -30px;
    right: 22%;
    width: 220px;
  }
  .mountain-poster {
    object-position: 50% 46%;
  }
  .world-ready .mountain-poster {
    opacity: 0.7;
  }
}
.world-ready .mountain-poster {
  opacity: 0.92;
}
@media (max-width: 700px) {
  .world-ready .mountain-poster {
    opacity: 0.9;
  }
}
.media-unavailable {
  background: #c8d3cb;
  color: var(--ink);
  font-size: 12px;
  object-fit: contain;
}
.bagua-controls:has(button:focus-visible) {
  outline-offset: 4px;
}
.hero {
  isolation: auto;
}
/* Keep small text above 4.5:1 on the light landscape fields. */
.kicker,
.hero-margin,
.origin-caption span,
.custom-text > span {
  color: var(--muted);
}
.chapter-label b {
  color: var(--muted);
}
.bracelet .kicker,
.bracelet .chapter-label b {
  color: var(--light-gold);
}
@media (max-width: 700px) {
  .taichi-aside h3 {
    font-size: 20px;
    letter-spacing: 0.03em;
  }
}
@media (max-width: 360px) {
  .taichi-aside h3 {
    font-size: 17px;
    letter-spacing: 0;
  }
}
