/* Xunlong Form School — shared styles
   Photography-led. Ink, stone, mist, one cinnabar. */

:root {
  --ink: #0F1413;
  --ink-2: #151B19;
  --ink-3: #1D2522;
  --ink-deep: #090D0C;
  --pine: #1B2622;
  --stone: #ECEBE6;
  --stone-3: #2A332F;
  --slate: #9AA19C;
  --seal: #B8372B;
  --seal-deep: #8F2A20;
  --gold: #C9A45C;
  --gold-2: #E2C98E;
  --on-dark: #ECEAE3;
  --on-dark-2: #A6ABA6;
  --line-dark: rgba(201,164,92,.22);

  --bg: var(--ink);
  --bg-alt: var(--ink-2);
  --fg: var(--on-dark);
  --fg-2: var(--on-dark-2);
  --line: rgba(201,164,92,.22);
  --field: rgba(236,234,227,.05);

  --display: 'Bodoni Moda', 'Noto Serif SC', Georgia, 'Times New Roman', serif;
  --body: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --cjk: 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;

  --wrap: 1280px;
  --gut: clamp(20px, 4.5vw, 64px);
  --sec: clamp(72px, 9vw, 136px);
  color-scheme: dark;
}
/* The site is ink-dark by design; both schemes share the palette. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: var(--ink); --bg-alt: var(--ink-2); --fg: var(--on-dark); --fg-2: var(--on-dark-2); }
}
:root[data-theme="dark"] { --bg: var(--ink); --bg-alt: var(--ink-2); --fg: var(--on-dark); --fg-2: var(--on-dark-2); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
.hero::after, .cover::after, .band::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--seal); outline-offset: 3px;
}
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.cjk { font-family: var(--cjk); }
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }

/* ----- type scale ----- */
.d1 { font-family: var(--display); font-size: clamp(44px, 7vw, 100px); line-height: .98; letter-spacing: -.015em; }
.d2 { font-family: var(--display); font-size: clamp(32px, 4vw, 56px); line-height: 1.06; letter-spacing: -.01em; }
.d3 { font-family: var(--display); font-size: clamp(26px, 2.6vw, 36px); line-height: 1.12; }
.d4 { font-family: var(--display); font-size: clamp(21px, 1.9vw, 26px); line-height: 1.2; }
.lede { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: var(--fg-2); max-width: 62ch; }
.small { font-size: 13.5px; line-height: 1.5; color: var(--fg-2); }
.prose p { max-width: 66ch; }
.prose h2 { margin: 1.6em 0 .5em; }
.prose h2:first-child { margin-top: 0; }

/* ----- buttons & links ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 17px 28px; border-radius: 2px; border: 1px solid var(--seal);
  background: var(--seal); color: #fff; font: 500 14px/1 var(--body); letter-spacing: .03em;
  cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--seal-deep); border-color: var(--seal-deep); }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.ghost:hover { background: rgba(127,127,127,.12); }
.lnk { font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: opacity .2s; }
.lnk:hover { opacity: .7; }

/* ----- nav ----- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--on-dark);
  transition: background .3s, backdrop-filter .3s;
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 84px; }
.nav.scrolled { background: rgba(9,13,12,.88); border-bottom: 1px solid var(--line-dark); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.nav.scrolled .wrap { height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
.brand .name { font-family: var(--display); font-size: 21px; letter-spacing: .01em; }
.seal {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 2px;
  background: var(--seal); color: #fff; font-family: var(--cjk); font-weight: 700; font-size: 13px; line-height: 1;
  writing-mode: vertical-rl; text-orientation: upright; letter-spacing: -.02em;
}
.menu { display: flex; align-items: center; gap: 28px; }
.menu a { font-size: 14px; letter-spacing: .02em; opacity: .85; padding: 6px 0; border-bottom: 1px solid transparent; transition: opacity .2s, border-color .2s; }
.menu a:hover, .menu a[aria-current="page"] { opacity: 1; border-bottom-color: currentColor; }
.menu a.btn { opacity: 1; border-bottom: 1px solid var(--seal); padding: 13px 20px; }
.menu a.lang { font-family: var(--cjk); }
.menu-toggle { display: none; background: none; border: 1px solid currentColor; color: inherit; border-radius: 2px; padding: 9px 14px; font: 500 13px var(--body); cursor: pointer; }
@media (max-width: 480px) { .brand .name { font-size: 17px; } .brand { gap: 9px; } }
@media (max-width: 900px) {
  .nav .wrap { height: 68px; }
  .menu-toggle { display: inline-block; }
  .menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0; min-height: calc(100svh - 68px); background: var(--ink);
    flex-direction: column; align-items: flex-start; padding: 28px var(--gut); gap: 6px; border-top: 1px solid var(--line-dark);
  }
  .menu.open { display: flex; }
  .menu a { font-family: var(--display); font-size: 32px; padding: 8px 0; border: 0; }
  .menu a.btn { margin-top: 18px; font-family: var(--body); font-size: 14px; padding: 16px 24px; }
  .menu a.lang { font-size: 26px; }
}

/* ----- hero (home) ----- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; color: var(--on-dark); background: var(--ink); overflow: hidden; }
.hero .bg, .cover .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .bg { transform: scale(1.06); animation: settle 2.4s cubic-bezier(.2,.6,.2,1) forwards; }
.hero .scrim, .cover .scrim { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(15,20,19,.55) 0%, rgba(15,20,19,0) 30%, rgba(15,20,19,0) 50%, rgba(15,20,19,.78) 100%); }
.cover .scrim { background: linear-gradient(180deg, rgba(15,20,19,.5) 0%, rgba(15,20,19,.18) 35%, rgba(15,20,19,.86) 100%); }
.hero .wrap { position: relative; z-index: 3; padding: 140px 0 clamp(36px, 6vh, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: center; }
.luopan-wrap { position: relative; width: min(100%, 520px); aspect-ratio: 1; justify-self: end; color: var(--gold); filter: drop-shadow(0 0 24px rgba(201,164,92,.18)); }
.luopan-tilt { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2,.6,.2,1); }
.luopan-plate { position: absolute; inset: 0; transform: rotate(var(--drag, 0deg)); will-change: transform; cursor: grab; touch-action: pan-y; }
.luopan-plate.held { cursor: grabbing; }
.lp { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lp-base circle { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s cubic-bezier(.2,.6,.2,1) forwards; }
.lp-base circle:nth-child(2n) { animation-delay: .25s; animation-direction: reverse; stroke-dashoffset: -1; }
.lp-base circle:nth-child(3n) { animation-delay: .5s; }
.lp-outer, .lp-mid, .lp-inner { opacity: 0; will-change: transform; }
.lp-outer { animation: fadein 1.6s 1.2s ease forwards, spin 240s linear infinite; }
.lp-mid { animation: fadein 1.6s 1.5s ease forwards, spin-rev 360s linear infinite; }
.lp-inner { animation: fadein 1.6s 1.8s ease forwards, spin 180s linear infinite; }
.lp-outer .hi { fill: #E2C98E; font-weight: 700; }
.lp-needle { pointer-events: none; filter: drop-shadow(0 0 6px rgba(184,55,43,.6)); }
.lp-needle .needle { transform-origin: 300px 300px; animation: settle 3.6s 1s cubic-bezier(.25,.7,.3,1) both; }
.lp-needle .tip-glow { animation: pulse-op 3s ease-in-out 5s infinite; }
.luopan-wrap .seal { position: absolute; right: 4%; bottom: 4%; width: 48px; height: 48px; font-size: 18px; pointer-events: none; box-shadow: 0 0 0 1px rgba(184,55,43,.5); }
.hero.ready2 .lp-base circle { animation: none; stroke-dashoffset: 0; }
.hero.ready2 .lp-outer { opacity: 1; animation: spin 240s linear infinite; }
.hero.ready2 .lp-mid { opacity: 1; animation: spin-rev 360s linear infinite; }
.hero.ready2 .lp-inner { opacity: 1; animation: spin 180s linear infinite; }
.hero.ready2 .lp-needle .needle { animation: none; transform: none; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }
@keyframes settle {
  0% { transform: rotate(-160deg); } 38% { transform: rotate(28deg); } 60% { transform: rotate(-12deg); }
  78% { transform: rotate(5deg); } 90% { transform: rotate(-2deg); } 100% { transform: rotate(0deg); } }
@keyframes pulse-op { 0%, 100% { opacity: .2; } 50% { opacity: .55; } }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
.mist { position: absolute; inset: 0; pointer-events: none; opacity: .5; background:
  radial-gradient(60% 40% at 20% 85%, rgba(236,234,227,.22), transparent 70%),
  radial-gradient(50% 35% at 75% 70%, rgba(236,234,227,.14), transparent 70%);
  animation: drift 40s ease-in-out infinite alternate; }
.stars { position: absolute; inset: 0 0 45% 0; pointer-events: none; opacity: .7; background-image:
  radial-gradient(1px 1px at 12% 22%, #fff 60%, transparent 61%), radial-gradient(1.5px 1.5px at 28% 8%, #fff 60%, transparent 61%),
  radial-gradient(1px 1px at 41% 31%, #fff 60%, transparent 61%), radial-gradient(1px 1px at 57% 12%, #fff 60%, transparent 61%),
  radial-gradient(1.5px 1.5px at 66% 26%, #fff 60%, transparent 61%), radial-gradient(1px 1px at 79% 6%, #fff 60%, transparent 61%),
  radial-gradient(1px 1px at 88% 34%, #fff 60%, transparent 61%), radial-gradient(1px 1px at 94% 18%, #fff 60%, transparent 61%),
  radial-gradient(1px 1px at 5% 40%, #fff 60%, transparent 61%), radial-gradient(1.5px 1.5px at 49% 44%, #fff 60%, transparent 61%);
  mask-image: linear-gradient(180deg, #000 20%, transparent 100%); -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 100%); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { from { transform: translateX(-3%); } to { transform: translateX(3%); } }
.hero h1 { max-width: 11ch; }
.hero .lede { color: var(--on-dark); margin: 28px 0 36px; max-width: 54ch; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.vert {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  writing-mode: vertical-rl; text-orientation: upright;
  font-family: var(--cjk); font-weight: 500; font-size: clamp(22px, 3vw, 44px); letter-spacing: .4em; line-height: 1;
  color: var(--on-dark);
}
.vert .seal { width: 44px; height: 44px; font-size: 17px; margin-top: 26px; letter-spacing: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 0; margin-top: clamp(40px, 7vh, 72px); padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: 13.5px; color: var(--on-dark-2); }
.facts li { padding-right: 28px; margin-right: 28px; border-right: 1px solid var(--line-dark); }
.facts li:last-child { border: 0; margin: 0; padding: 0; }
.facts b { color: var(--on-dark); font-weight: 500; }
/* Reveal: a keyframe for browsers that animate; site.js adds .ready after 2.6s so the text is never left hidden */
.hero .rv { animation: rise 1.3s cubic-bezier(.2,.6,.2,1) both; }
.hero h1.rv { animation-delay: .25s; }
.hero .lede.rv { animation-delay: .4s; }
.hero .ctas.rv { animation-delay: .55s; }
.hero .luopan-wrap.rv { animation-delay: .6s; animation-duration: 1.8s; }
.hero .facts.rv { animation-delay: .75s; }
.hero.ready .rv { animation: none; opacity: 1; transform: none; }
@keyframes settle { to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero .bg, .hero .rv, .mist { animation: none; transform: none; opacity: 1; }
  .lp, .lp-base circle, .lp-needle .needle, .lp-needle .tip-glow, .vein *, .bagua *, .luopan-tilt { animation: none !important; transition: none !important; opacity: 1; stroke-dashoffset: 0; transform: none; }
  .vert { transform: translateY(-50%); }
}
@media (max-width: 900px) {
  .hero { min-height: 92svh; }
  .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-top: 34px; }
  .facts li { border: 0; padding: 0; margin: 0; font-size: 13px; }
  .vert { display: none; }
  .hero h1 { max-width: 14ch; }
  .hero .wrap { padding-top: 92px; }
  .hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .luopan-wrap { order: -1; width: min(60vw, 280px); justify-self: center; filter: drop-shadow(0 0 18px rgba(201,164,92,.22)); }
  .luopan-wrap .seal { width: 36px; height: 36px; font-size: 14px; right: 0; bottom: 0; }
  .hero h1 { font-size: clamp(38px, 11vw, 48px); }
  .hero .lede { font-size: 16px; margin: 18px 0 24px; }
}

/* ----- page cover (inner pages) ----- */
.cover { position: relative; min-height: clamp(420px, 62vh, 640px); display: grid; align-items: end; color: var(--on-dark); background: var(--ink); overflow: hidden; }
.cover .wrap { position: relative; z-index: 3; padding: 140px 0 clamp(32px, 5vh, 56px); }
.cover .crumb { font-size: 13.5px; color: var(--on-dark-2); margin-bottom: 18px; }
.cover .crumb a:hover { color: var(--on-dark); }
.cover h1 { max-width: 16ch; }
.cover h1 .cjk { display: block; font-size: .36em; letter-spacing: .3em; margin-top: 18px; font-weight: 500; opacity: .85; }
.cover .lede { color: var(--on-dark); opacity: .86; margin-top: 22px; }

/* ----- sections ----- */
.s { padding: var(--sec) 0; }
.s.tight { padding: clamp(44px, 5vw, 72px) 0; }
.s.alt { background: var(--bg-alt); position: relative; overflow: hidden; }
.s.dark { background: var(--ink-deep); color: var(--on-dark); --fg-2: var(--on-dark-2); --line: var(--line-dark); --field: rgba(236,234,227,.06); position: relative; overflow: hidden; }
.s.pine { background: var(--pine); color: var(--on-dark); --fg-2: #BFC6C0; --line: var(--line-dark); --field: rgba(236,234,227,.06); }
.head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 64px; align-items: start; margin-bottom: clamp(36px, 5vw, 64px); }
.head .lede { margin: 0; }
.head.single { grid-template-columns: 1fr; max-width: 760px; }
.head.single .lede { margin-top: 18px; }
@media (max-width: 900px) { .head { grid-template-columns: 1fr; } }

/* ----- three ways ----- */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.way { border-top: 1px solid var(--line); padding-top: 28px; }
.way .glyph { font-family: var(--cjk); font-size: 56px; line-height: 1; display: block; margin-bottom: 22px; font-weight: 500; }
.way h3 { margin-bottom: 12px; }
.way p { color: var(--fg-2); }
.way ul { margin: 14px 0 22px; }
.way li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
@media (max-width: 900px) { .ways { grid-template-columns: 1fr; gap: 28px; } }

/* ----- photos ----- */
.ph { position: relative; overflow: hidden; background: var(--ink-3); }
.ph::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(201,164,92,.18); pointer-events: none; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.6,.2,1); }
a:hover .ph img { transform: scale(1.035); }
.ph .play {
  position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 8px; border-radius: 999px; background: rgba(15,20,19,.72); color: var(--on-dark); font-size: 12.5px; letter-spacing: .03em;
}
.ph .play i { width: 22px; height: 22px; border-radius: 50%; background: #fff; position: relative; }
.ph .play i::after { content: ''; position: absolute; left: 8px; top: 6px; border-left: 8px solid var(--ink); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.ph .cap { position: absolute; right: 14px; bottom: 12px; font-size: 12px; color: var(--on-dark); opacity: .85; text-shadow: 0 1px 8px rgba(0,0,0,.6); }

/* ----- films (home) ----- */
.films { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px 56px; align-items: start; }
.film-main .ph { aspect-ratio: 16 / 10; }
.film-main h3 { margin-top: 22px; max-width: 24ch; }
.film-main .small { margin-top: 10px; }
.film-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.film { display: grid; grid-template-columns: 148px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.film .ph { aspect-ratio: 4 / 3; }
.film h4 { font-family: var(--display); font-size: 19px; line-height: 1.25; font-weight: 400; }
.film .small { margin-top: 6px; }
.film .ph .play { left: 8px; bottom: 8px; padding: 5px 9px 5px 5px; font-size: 11px; }
.film .ph .play i { width: 16px; height: 16px; }
.film .ph .play i::after { left: 6px; top: 4px; border-left-width: 6px; border-top-width: 4px; border-bottom-width: 4px; }
.films-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 44px; }
@media (max-width: 900px) { .films { grid-template-columns: 1fr; } .film { grid-template-columns: 112px 1fr; } }

/* ----- case grid (library) ----- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 32px; }
.case .ph { aspect-ratio: 16 / 10; }
.case h3 { font-family: var(--display); font-size: 22px; line-height: 1.22; margin-top: 16px; }
.case .small { margin-top: 8px; }
.case[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 500 13px var(--body); padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: inherit; cursor: pointer; transition: background .2s, border-color .2s; }
.chip[aria-pressed="true"] { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.count { font-size: 13.5px; color: var(--fg-2); margin: 16px 0 36px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; gap: 32px; } }

/* ----- master ----- */
.master { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px clamp(40px, 6vw, 96px); align-items: center; }
.master .ph { aspect-ratio: 4 / 5; }
.master .lede { margin: 18px 0 22px; }
.master dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 28px 0 32px; font-size: 15px; border-top: 1px solid var(--line); padding-top: 20px; }
.master dt { color: var(--fg-2); }
.master dd { margin: 0; }
.master .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .master { grid-template-columns: 1fr; } .master .ph { aspect-ratio: 4 / 3; } }

/* ----- readings list ----- */
.svcs { border-top: 1px solid var(--line); }
.svc { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 20px 64px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.svc h3 .cjk { font-size: .6em; color: var(--fg-2); margin-left: 12px; letter-spacing: .15em; font-weight: 500; }
.svc p { color: var(--fg-2); margin-top: 12px; max-width: 54ch; }
.prices { display: grid; }
.price { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.price:first-child { border-top: 0; padding-top: 0; }
.price b { font-family: var(--display); font-weight: 400; font-size: 20px; white-space: nowrap; }
.svc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 36px; }
@media (max-width: 900px) { .svc { grid-template-columns: 1fr; } }

/* ----- band (photo with content) ----- */
.band { position: relative; color: var(--on-dark); background: var(--ink); overflow: hidden; }
.band .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band .scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,20,19,.86) 0%, rgba(15,20,19,.72) 45%, rgba(15,20,19,.25) 100%); }
.band .wrap { position: relative; z-index: 3; padding: var(--sec) 0; }
.band .box { max-width: 620px; }
.band .lede { color: var(--on-dark); opacity: .86; }
.band .meta { display: flex; flex-wrap: wrap; gap: 8px 0; margin: 28px 0; font-size: 14px; color: var(--on-dark-2); }
.band .meta li { padding-right: 20px; margin-right: 20px; border-right: 1px solid var(--line-dark); }
.band .meta li:last-child { border: 0; }
.band .meta b { color: var(--on-dark); font-weight: 500; }
.days { border-top: 1px solid var(--line-dark); margin: 0 0 32px; }
.days li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line-dark); font-size: 15px; }
.days .d { color: var(--on-dark-2); }
.days b { font-weight: 500; }
.days span { display: block; color: var(--on-dark-2); }
.band .ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.band .ctas .small { color: var(--on-dark-2); }
@media (max-width: 900px) { .band .scrim { background: rgba(15,20,19,.76); } }

/* ----- online course block ----- */
.two { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px clamp(40px, 6vw, 96px); align-items: start; }
.two.even { grid-template-columns: 1fr 1fr; }
.list { border-top: 1px solid var(--line); }
.list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.list li b { font-weight: 500; }
.list li span { display: block; color: var(--fg-2); }
.list.n { counter-reset: n; }
.list.n li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; counter-increment: n; }
.list.n li span { grid-column: 2; }
.list.n li::before { content: counter(n); font-family: var(--display); font-size: 22px; line-height: 1; color: var(--fg-2); padding-top: 2px; }
.pricebox { border: 1px solid var(--line); padding: 28px 28px 30px; }
.pricebox .big { font-family: var(--display); font-size: 48px; line-height: 1; }
.pricebox .big small { display: block; font-family: var(--body); font-size: 13.5px; color: var(--fg-2); margin-top: 8px; }
.pricebox ul { margin: 22px 0 24px; }
.pricebox li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.pricebox .small { display: block; margin-top: 14px; }
@media (max-width: 900px) { .two, .two.even { grid-template-columns: 1fr; } }

/* ----- products ----- */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.product .ph { aspect-ratio: 4 / 5; }
.product h3 { font-family: var(--display); font-size: 22px; line-height: 1.2; margin-top: 18px; }
.product h3 .cjk { display: block; font-size: 13px; letter-spacing: .25em; color: var(--fg-2); margin-top: 8px; font-weight: 500; }
.product .pr { display: block; margin-top: 10px; font-size: 15px; }
.shop-note { margin-top: 40px; max-width: 70ch; color: var(--fg-2); font-size: 14px; }
@media (max-width: 900px) { .products { grid-template-columns: 1fr; gap: 36px; } .product .ph { aspect-ratio: 16 / 10; } }

/* ----- forms ----- */
.form { display: grid; gap: 22px; max-width: 640px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form label { display: grid; gap: 8px; font-size: 13.5px; color: var(--fg-2); }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--fg);
  font: 400 16px var(--body); border-radius: 0; transition: border-color .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom-color: var(--fg); }
.form textarea { min-height: 96px; resize: vertical; }
.form .btn { justify-self: start; margin-top: 6px; }
.form small { color: var(--fg-2); font-size: 13px; }
.form .done { padding: 14px 16px; border-left: 2px solid var(--seal); background: var(--field); font-size: 14.5px; }
.form .done[hidden] { display: none; }
@media (max-width: 620px) { .form .row { grid-template-columns: 1fr; } }

/* ----- quotes ----- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.quote p { font-family: var(--display); font-size: 22px; line-height: 1.35; }
.quote cite { font-style: normal; font-size: 13.5px; color: var(--fg-2); display: block; padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* ----- misc blocks ----- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: s; }
.step { border-top: 1px solid var(--line); padding-top: 20px; counter-increment: s; }
.step::before { content: counter(s, decimal-leading-zero); font-family: var(--display); font-size: 30px; line-height: 1; display: block; margin-bottom: 14px; color: var(--fg-2); }
.step b { display: block; font-weight: 500; margin-bottom: 6px; }
.step span { color: var(--fg-2); font-size: 15px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative; font-family: var(--display); font-size: 22px; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 2px; top: 16px; font-size: 26px; font-weight: 300; color: var(--fg-2); }
.faq details[open] summary::after { content: '−'; }
.faq .a { padding: 0 0 22px; color: var(--fg-2); max-width: 66ch; }

.anchors { display: flex; flex-wrap: wrap; gap: 6px 26px; font-size: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.anchors a { color: var(--fg-2); padding: 6px 0; border-bottom: 1px solid transparent; }
.anchors a:hover { color: var(--fg); border-bottom-color: currentColor; }

.cta { text-align: left; }
.cta .wrap { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: center; gap: 28px; }
.cta h2 { max-width: 18ch; }
.cta .btn { justify-self: start; }
@media (max-width: 900px) { .cta .wrap { grid-template-columns: 1fr; } }
@media (min-width: 901px) { .cta .btn { justify-self: end; } }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px clamp(40px, 6vw, 96px); }
.cols h3 { margin-bottom: 14px; }
.cols ul { border-top: 1px solid var(--line); }
.cols li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }

.table-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px 18px 14px 0; border-top: 1px solid var(--line); }
.compare th { font-weight: 500; }
.compare thead th { border-top: 0; font-family: var(--display); font-size: 20px; }
.compare td:first-child { color: var(--fg-2); width: 18%; }
.compare .us { color: var(--fg); }
.compare tbody .us { font-weight: 500; }

.chain { counter-reset: c; max-width: 760px; }
.chain li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); counter-increment: c; }
.chain li::before { content: counter(c); font-family: var(--display); font-size: 28px; line-height: 1; color: var(--fg-2); }
.chain b { display: block; font-family: var(--display); font-weight: 400; font-size: 24px; margin-bottom: 6px; }
.chain span { color: var(--fg-2); font-size: 15px; }
.ph-text { color: var(--seal); }

.terms { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; }
.term { border-top: 1px solid var(--line); padding-top: 18px; }
.term .g { font-family: var(--cjk); font-size: 64px; line-height: 1; display: block; margin-bottom: 14px; font-weight: 500; }
.term b { display: block; font-family: var(--display); font-weight: 400; font-size: 22px; margin-bottom: 6px; }
.term span { font-size: 14.5px; color: var(--fg-2); }
@media (max-width: 900px) { .terms { grid-template-columns: repeat(2, 1fr); } }

.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 260px; gap: 12px; }
.gallery .ph:first-child { grid-row: span 2; }
@media (max-width: 900px) { .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; } .gallery .ph:first-child { grid-column: span 2; } }

.factsheet { display: grid; gap: 0; border-top: 1px solid var(--line); }
.factsheet div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.factsheet dt { color: var(--fg-2); }
.factsheet dd { margin: 0; }
.case-hero { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 40px 56px; align-items: start; }
.case-hero .poster { aspect-ratio: 16 / 9; }
.case-hero .poster a { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.big-play { display: inline-flex; align-items: center; gap: 14px; padding: 12px 22px 12px 12px; border-radius: 999px; background: rgba(15,20,19,.7); font-size: 14px; }
.big-play i { width: 40px; height: 40px; border-radius: 50%; background: #fff; position: relative; }
.big-play i::after { content: ''; position: absolute; left: 15px; top: 12px; border-left: 13px solid var(--ink); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
@media (max-width: 900px) { .case-hero { grid-template-columns: 1fr; } }
.diagram { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px 64px; align-items: center; }
.diagram svg { width: 100%; height: auto; }
.legend p { font-size: 15px; color: var(--fg-2); padding: 10px 0; border-top: 1px solid var(--line); margin: 0; }
.legend b { color: var(--fg); font-weight: 500; }
@media (max-width: 900px) { .diagram { grid-template-columns: 1fr; } }
.lesson { max-width: 760px; }
.lesson p { font-family: var(--display); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.3; }
.lesson .small { font-family: var(--body); }

.dates { border-top: 1px solid var(--line); }
.date { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.date b { font-family: var(--display); font-weight: 400; font-size: 24px; grid-column: 1; }
.date span { color: var(--fg-2); font-size: 14px; }
.date .st { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 13px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg); }

.team { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.person { display: grid; grid-template-columns: 140px 1fr; gap: 24px; align-items: start; }
.person .ph { aspect-ratio: 4 / 5; }
.person h4 { font-family: var(--display); font-weight: 400; font-size: 24px; margin-bottom: 8px; }
.person p { color: var(--fg-2); font-size: 15px; }
@media (max-width: 900px) { .team { grid-template-columns: 1fr; } }

.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.strip .ph { aspect-ratio: 4 / 3; }
@media (max-width: 900px) { .strip { grid-template-columns: 1fr 1fr; } }

/* ----- footer ----- */
footer { background: var(--ink-deep); color: var(--on-dark); padding: 72px 0 36px; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.foot h4 { font-size: 13px; letter-spacing: .04em; color: var(--on-dark-2); margin-bottom: 14px; font-weight: 500; }
.foot li { padding: 4px 0; font-size: 15px; }
.foot li a:hover { text-decoration: underline; }
.foot .brand .name { font-size: 24px; }
.contact { display: grid; gap: 6px; margin-top: 18px; font-size: 14px; color: var(--on-dark-2); }
.contact code { font-family: var(--body); color: var(--on-dark); }
.legal { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: 12.5px; color: var(--on-dark-2); max-width: 90ch; }
@media (max-width: 900px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot { grid-template-columns: 1fr; } }

/* ----- readings page: full service blocks ----- */
.svc-full { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 36px clamp(40px, 6vw, 80px); padding: clamp(44px, 5vw, 72px) 0; border-top: 1px solid var(--line); }
.svc-full:first-child { border-top: 0; padding-top: 0; }
.svc-full h2 .cjk { font-size: .5em; color: var(--fg-2); margin-left: 14px; letter-spacing: .15em; font-weight: 500; }
.svc-full .intro > p { color: var(--fg-2); max-width: 62ch; margin-top: 16px; }
.svc-full .cols { margin-top: 28px; gap: 28px 40px; }
.svc-full .cols h4 { font-size: 13.5px; font-weight: 500; color: var(--fg-2); margin-bottom: 10px; }
.svc-full .cols li { font-size: 14.5px; }
.side .prices { border: 1px solid var(--line); padding: 22px 22px 24px; }
.side .prices h4 { font-family: var(--display); font-weight: 400; font-size: 22px; margin-bottom: 14px; }
.side .prices .btn { margin-top: 18px; width: 100%; }
.related { margin-top: 28px; }
.related h4 { font-size: 13.5px; font-weight: 500; color: var(--fg-2); margin-bottom: 4px; }
.mini { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.4; }
.mini .ph { aspect-ratio: 4 / 3; }
@media (max-width: 900px) { .svc-full { grid-template-columns: 1fr; } }

/* ----- course page: full itinerary ----- */
.itin { border-top: 1px solid var(--line); }
.itin li { display: grid; grid-template-columns: 80px 200px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.itin .d { font-family: var(--display); font-size: 20px; line-height: 1.2; }
.itin .where { font-weight: 500; }
.itin .where small { display: block; font-weight: 400; color: var(--fg-2); font-size: 13.5px; }
.itin .what { color: var(--fg-2); }
@media (max-width: 900px) { .itin li { grid-template-columns: 70px 1fr; } .itin .what { grid-column: 2; } }


/* ----- five things that shape a life ----- */
.band.five .scrim { background: linear-gradient(180deg, rgba(9,13,12,.82) 0%, rgba(9,13,12,.7) 60%, rgba(9,13,12,.92) 100%); }
.band.five .box { max-width: none; }
.band.five .head.single { max-width: 820px; }
.fives { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px 28px; border-top: 1px solid var(--line-dark); padding-top: 30px; }
.fives li { position: relative; }
.fives .n { font-family: var(--cjk); font-size: 54px; line-height: 1; display: block; margin-bottom: 16px; color: var(--gold); font-weight: 500; }
.fives b { display: block; font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.15; margin-bottom: 8px; }
.fives b .cjk { font-size: .62em; color: var(--on-dark-2); margin-left: 8px; letter-spacing: .1em; font-weight: 500; }
.fives .t { font-size: 14.5px; color: var(--on-dark-2); }
.fives .hi::before { content: ''; position: absolute; left: 0; right: 0; top: -31px; height: 2px; background: var(--gold); }
.fives .hi b { color: var(--gold-2); }
.fives .hi .t { color: var(--on-dark); }
@media (max-width: 1000px) { .fives { grid-template-columns: repeat(3, 1fr); } .fives .hi::before { display: none; } }
@media (max-width: 620px) { .fives { grid-template-columns: 1fr 1fr; } }

/* ----- watermark glyph ----- */
.wm { position: absolute; right: -2%; top: 50%; transform: translateY(-50%); font-family: var(--cjk); font-weight: 700; font-size: clamp(220px, 32vw, 460px); line-height: 1; color: var(--gold); opacity: .06; pointer-events: none; user-select: none; }
.cta { position: relative; overflow: hidden; }
.cta .wrap { position: relative; }
.s.alt .wm { opacity: .045; }
.s.alt > .wrap { position: relative; }

/* ----- quotes as stories ----- */
.quote { position: relative; padding-top: 22px; border-top: 1px solid var(--line); }
.quote p { font-family: var(--display); font-size: 20px; line-height: 1.4; }
.quote cite { border-top: 0; padding-top: 6px; }
.quote .outcome { font-family: var(--body); font-size: 14.5px; color: var(--gold-2); margin-top: -4px; }

/* dark-first adjustments */
.pricebox { border-color: var(--line); background: rgba(236,234,227,.025); }
.side .prices { background: rgba(236,234,227,.025); }
.form input, .form select, .form textarea { color-scheme: dark; }
.form .done { border-left-color: var(--gold); }
.lnk { border-bottom-color: var(--gold); }
.lnk:hover { color: var(--gold-2); opacity: 1; }
.menu a:hover, .menu a[aria-current="page"] { border-bottom-color: var(--gold); }
.way .glyph, .term .g { color: var(--gold-2); }
.step::before, .chain li::before, .list.n li::before { color: var(--gold); }
.itin .d, .date b, .pricebox .big, .price b { color: var(--on-dark); }
.compare thead th.us { color: var(--gold-2); }


/* ----- dragon vein: draws itself when scrolled into view ----- */
.vein { margin: -8px 0 40px; color: var(--gold); }
.vein svg { display: block; width: 100%; height: auto; overflow: visible; }
.vein .line, .vein .water { stroke-dasharray: 1; stroke-dashoffset: 1; }
.vein.in .line { animation: draw 2.6s cubic-bezier(.45,0,.2,1) forwards; }
.vein.in .water { animation: draw 1.4s 2.5s ease-out forwards; }
.vein .node, .vein .xue, .vein .lbl text { opacity: 0; }
.vein.in .node:nth-child(1) { animation: fadein .5s .1s forwards; }
.vein.in .node:nth-child(2) { animation: fadein .5s 1s forwards; }
.vein.in .node:nth-child(3) { animation: fadein .5s 1.7s forwards; }
.vein.in .xue { animation: fadein .8s 2.4s forwards; }
.vein.in .lbl text { animation: fadein .8s forwards; }
.vein.in .lbl text:nth-child(1) { animation-delay: .3s; } .vein.in .lbl text:nth-child(2) { animation-delay: 1.1s; }
.vein.in .lbl text:nth-child(3) { animation-delay: 1.8s; } .vein.in .lbl text:nth-child(4) { animation-delay: 2.6s; } .vein.in .lbl text:nth-child(5) { animation-delay: 3.6s; }
.vein .pulse { transform-box: fill-box; transform-origin: center; opacity: 0; }
.vein.in .pulse { animation: pulse 2.4s ease-out 2.8s infinite; }
@media (max-width: 620px) { .vein .lbl { display: none; } .vein { margin-bottom: 28px; } }

/* ----- bagua mirror ----- */
.shop-head { align-items: center; }
.bagua-wrap { justify-self: end; width: min(100%, 250px); color: var(--gold); filter: drop-shadow(0 0 16px rgba(201,164,92,.16)); }
.bagua { display: block; width: 100%; height: auto; overflow: visible; }
.bagua .oct { stroke-dasharray: 1; stroke-dashoffset: 1; }
.bagua.in .oct { animation: draw 1.8s cubic-bezier(.4,0,.2,1) forwards; }
.bagua.in .oct2 { animation-delay: .3s; }
.bagua .ring { transform-origin: 150px 150px; animation: spin 150s linear infinite; }
.bagua rect { transform-box: fill-box; transform-origin: center; transform: scaleX(0); }
.bagua.in rect { animation: barin .5s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(.5s + var(--i, 0) * .06s); }
.bagua .sweep { transform-origin: 150px 150px; animation: sweep 7s ease-in-out infinite; }
@keyframes barin { to { transform: scaleX(1); } }
@keyframes sweep { 0%, 55% { transform: translate(-110px, -110px) rotate(0deg); } 100% { transform: translate(110px, 110px) rotate(0deg); } }
@media (max-width: 900px) { .bagua-wrap { justify-self: center; width: 200px; margin-top: 8px; } }

/* ----- coin oracle ----- */
.cast { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(28px, 4vw, 56px); border: 1px solid var(--line); padding: clamp(22px, 3vw, 36px); background: rgba(236,234,227,.025); }
.cast .q { display: grid; gap: 8px; font-size: 13.5px; color: var(--fg-2); margin: 16px 0 20px; }
.cast input { width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--fg); font: 400 16px var(--body); border-radius: 0; }
.cast input:focus { outline: none; border-bottom-color: var(--gold); }
.coins { display: flex; gap: 16px; margin-top: 26px; perspective: 400px; }
.coin { width: 42px; height: 42px; border-radius: 50%; background: var(--gold); position: relative; box-shadow: inset 0 0 0 2px rgba(15,20,19,.4), 0 2px 8px rgba(0,0,0,.4); }
.coin::after { content: ''; position: absolute; inset: 15px; background: var(--ink); }
.coin.tails { background: transparent; box-shadow: inset 0 0 0 2px var(--gold); }
.coin.tails::after { background: transparent; box-shadow: inset 0 0 0 1.5px var(--gold); }
.coin.flip { animation: flip .5s ease-out; }
@keyframes flip { 0% { transform: rotateY(0) translateY(0); } 50% { transform: rotateY(360deg) translateY(-16px); } 100% { transform: rotateY(720deg) translateY(0); } }
.hex { display: grid; grid-template-columns: 110px 1fr; gap: 28px; align-items: start; }
.lines { display: flex; flex-direction: column-reverse; gap: 11px; min-height: 116px; padding-top: 4px; }
.yao { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; height: 10px; position: relative; animation: fadein .4s both; }
.yao i { display: block; height: 10px; background: var(--gold); }
.yao.yang { grid-template-columns: 1fr; }
.yao.yang i:last-of-type { display: none; }
.yao b { position: absolute; right: -24px; top: -7px; font-size: 16px; line-height: 1; color: var(--seal); font-weight: 400; }
.hex-info p { font-size: 15px; }
.hex-name { font-family: var(--display); font-size: 24px; line-height: 1.2; margin-bottom: 8px; }
.hex-name .cjk { font-size: 30px; margin-right: 6px; color: var(--gold-2); }
@media (max-width: 900px) { .cast { grid-template-columns: 1fr; } .hex { grid-template-columns: 84px 1fr; gap: 20px; } }

.arts-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.art { border-top: 1px solid var(--line); padding-top: 16px; }
.art b { display: block; font-family: var(--display); font-weight: 400; font-size: 22px; margin-bottom: 6px; }
.art span { font-size: 14px; color: var(--fg-2); }
.art:hover b { color: var(--gold-2); }
@media (max-width: 700px) { .arts-links { grid-template-columns: 1fr; gap: 14px; } }

/* ----- clickable maps (face, palm) ----- */
.map { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px clamp(32px, 5vw, 72px); align-items: start; }
.map svg { display: block; width: 100%; height: auto; color: var(--gold); max-width: 440px; }
.map .draw { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.spot { cursor: pointer; outline: none; }
.spot > * { fill: rgba(201,164,92,0); stroke: rgba(201,164,92,0); transition: fill .2s, stroke .2s, stroke-width .2s; }
.spot:hover > :not(.hit), .spot.active > :not(.hit), .spot:focus-visible > :not(.hit) { fill: rgba(201,164,92,.22); stroke: var(--gold-2); stroke-width: 1.2; }
.spot.line > path { fill: none; stroke: var(--gold); stroke-width: 1.7; opacity: .75; stroke-linecap: round; }
.spot.line > .hit { stroke: transparent; stroke-width: 18; opacity: 1; fill: none; pointer-events: stroke; }
.spot.line:hover > :not(.hit), .spot.line.active > :not(.hit), .spot.line:focus-visible > :not(.hit) { fill: none; stroke: var(--gold-2); stroke-width: 3.2; opacity: 1; }
.spot.line:hover > .hit, .spot.line.active > .hit { stroke: transparent; }
.panel { border: 1px solid var(--line); padding: clamp(20px, 3vw, 30px); min-height: 250px; background: rgba(236,234,227,.025); position: sticky; top: 92px; }
.panel .where { font-size: 13.5px; color: var(--fg-2); margin-bottom: 6px; }
.panel h3 { margin-bottom: 14px; }
.panel h3 .cjk { font-size: .72em; color: var(--gold-2); margin-left: 8px; letter-spacing: .12em; font-weight: 500; }
.panel p { font-size: 15px; color: var(--fg-2); }
.panel p b { color: var(--fg); font-weight: 500; }
@media (max-width: 900px) { .map { grid-template-columns: 1fr; } .map svg { max-width: 360px; margin: 0 auto; } .panel { position: static; min-height: 0; } }

/* ----- 中文版排版 ----- */
html[lang="zh-Hant"] {
  --display: 'Noto Serif TC', 'Noto Serif SC', 'Songti TC', 'PMingLiU', serif;
  --body: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', system-ui, sans-serif;
  --cjk: 'Noto Serif TC', 'Songti TC', 'PMingLiU', serif;
}
html[lang="zh-Hant"] body { line-height: 1.8; }
html[lang="zh-Hant"] .d1 { font-size: clamp(34px, 5.4vw, 74px); line-height: 1.2; letter-spacing: .04em; font-weight: 500; }
html[lang="zh-Hant"] .d2 { font-size: clamp(26px, 3.3vw, 44px); line-height: 1.3; letter-spacing: .03em; font-weight: 500; }
html[lang="zh-Hant"] .d3 { font-size: clamp(21px, 2.1vw, 28px); line-height: 1.35; letter-spacing: .02em; font-weight: 500; }
html[lang="zh-Hant"] .d4 { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.4; font-weight: 500; }
html[lang="zh-Hant"] .lede { line-height: 1.8; }
html[lang="zh-Hant"] .hero h1 { max-width: 12em; }
html[lang="zh-Hant"] .cover h1 { max-width: 14em; }
html[lang="zh-Hant"] .brand .name { font-family: var(--cjk); font-size: 20px; letter-spacing: .14em; font-weight: 500; }
html[lang="zh-Hant"] .foot .brand .name { font-size: 22px; }
html[lang="zh-Hant"] .menu a { font-size: 14.5px; letter-spacing: .08em; }
html[lang="zh-Hant"] .menu a.lang { font-family: var(--body); letter-spacing: .02em; }
html[lang="zh-Hant"] .btn { letter-spacing: .1em; }
html[lang="zh-Hant"] .sub { display: block; font-family: 'Bodoni Moda', Georgia, serif; font-size: .4em; letter-spacing: .04em; margin-top: 14px; font-weight: 400; opacity: .78; }
html[lang="zh-Hant"] .way h3, html[lang="zh-Hant"] .svc h3 { letter-spacing: .04em; }
html[lang="zh-Hant"] .film h4, html[lang="zh-Hant"] .case h3, html[lang="zh-Hant"] .product h3, html[lang="zh-Hant"] .art b, html[lang="zh-Hant"] .quote p, html[lang="zh-Hant"] .faq summary, html[lang="zh-Hant"] .chain b, html[lang="zh-Hant"] .term b, html[lang="zh-Hant"] .person h4, html[lang="zh-Hant"] .date b, html[lang="zh-Hant"] .hex-name, html[lang="zh-Hant"] .lesson p { font-weight: 500; letter-spacing: .02em; }
html[lang="zh-Hant"] .quote p { font-size: 18px; line-height: 1.7; }
html[lang="zh-Hant"] .faq summary { font-size: 19px; }
html[lang="zh-Hant"] .fives b, html[lang="zh-Hant"] .term b { font-size: 24px; }
html[lang="zh-Hant"] .product h3 .cjk { font-family: 'Bodoni Moda', Georgia, serif; letter-spacing: .02em; font-size: 14px; }
html[lang="zh-Hant"] .price b, html[lang="zh-Hant"] .pricebox .big { font-family: 'Bodoni Moda', Georgia, serif; }
html[lang="zh-Hant"] .itin .d, html[lang="zh-Hant"] .step::before, html[lang="zh-Hant"] .chain li::before, html[lang="zh-Hant"] .list.n li::before { font-family: 'Bodoni Moda', Georgia, serif; }
html[lang="zh-Hant"] .panel h3 .cjk { font-family: 'Bodoni Moda', Georgia, serif; font-size: 15px; letter-spacing: .02em; }

/* ----- the twenty-four stars ----- */
.lp-outer .star { font-size: 11.5px; opacity: .85; }
.lp-outer .star.hi { fill: #E2C98E; font-weight: 700; opacity: 1; }
.lp-outer, .lp-mid, .lp-inner { animation-name: fadein, spin; }
.lp-mid { animation: fadein 1.6s 1.5s ease forwards, spin 240s linear infinite; }
.lp-inner { animation: fadein 1.6s 1.8s ease forwards, spin 240s linear infinite; }
.hero.ready2 .lp-mid { opacity: 1; animation: spin 240s linear infinite; }
.hero.ready2 .lp-inner { opacity: 1; animation: spin 240s linear infinite; }
.skymap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 32px; border-top: 1px solid var(--line); }
.sky { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.sky .cjk:first-child { color: var(--fg-2); }
.sky b { font-weight: 500; font-size: 17px; }
.sky .g { color: var(--fg-2); font-size: 12.5px; }
.sky.noble b { color: var(--gold-2); }
.sky.noble::after { content: '貴'; font-family: var(--cjk); font-size: 11px; color: var(--gold); border: 1px solid var(--line); border-radius: 999px; padding: 1px 6px; justify-self: end; }
html[lang="zh-Hant"] .sky { grid-template-columns: 44px 1fr; }
@media (max-width: 1000px) { .skymap { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .skymap { grid-template-columns: 1fr 1fr; gap: 0 20px; } .sky .g { display: none; } }

/* ----- bazi pillars ----- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0 14px; }
.pillar { border: 1px solid var(--line); padding: 12px 10px; text-align: center; }
.pillar.dm { border-color: var(--gold); background: rgba(201,164,92,.08); }
.pillar .pl { display: block; font-size: 12px; color: var(--fg-2); margin-bottom: 6px; }
.pillar b { display: block; font-size: 28px; font-weight: 500; line-height: 1.1; }
.pillar .pe { display: block; font-size: 12px; color: var(--fg-2); margin-top: 6px; }
.dm-line { font-size: 15px; margin: 0 0 8px; }
.dm-line b { color: var(--gold-2); font-weight: 500; }
.form .done p { margin: 0 0 6px; }
@media (max-width: 480px) { .pillars { grid-template-columns: repeat(2, 1fr); } }

/* ----- floating contact ----- */
.float { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.float a { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 999px; background: var(--ink-deep); color: var(--on-dark); font-size: 13.5px; border: 1px solid var(--line-dark); box-shadow: 0 6px 24px rgba(0,0,0,.45); transition: transform .2s, border-color .2s; }
.float a:hover { transform: translateY(-2px); border-color: var(--gold); }
.float a i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; }
.float a.wx i { background: #2dc100; }
.float .wxid { display: none; font-size: 12px; color: var(--on-dark-2); }
.float a.wx:hover + .wxid, .float a.wx:focus + .wxid { display: block; }
@media (max-width: 620px) { .float { right: 12px; bottom: 12px; } .float a { padding: 10px 14px; font-size: 13px; } }

/* ----- booking + newsletter ----- */
.book .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(40px, 6vw, 96px); align-items: start; }
.book .lede { margin-top: 16px; }
.book ul.small { margin-top: 22px; display: grid; gap: 8px; }
@media (max-width: 900px) { .book .wrap { grid-template-columns: 1fr; } }
.news { margin-top: 18px; display: grid; grid-template-columns: 1fr auto; gap: 8px; max-width: 360px; }
.news input { padding: 10px 0; border: 0; border-bottom: 1px solid var(--line-dark); background: transparent; color: var(--on-dark); font: 400 14px var(--body); border-radius: 0; }
.news input:focus { outline: none; border-bottom-color: var(--gold); }
.news .btn { padding: 11px 16px; font-size: 13px; }
.news .done { grid-column: 1 / -1; font-size: 13px; color: var(--gold-2); padding: 6px 0 0; border: 0; background: none; }
.news .done[hidden] { display: none; }

/* ----- notes from the field ----- */
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.note { border-top: 1px solid var(--line); padding-top: 18px; }
.note .ph { aspect-ratio: 16 / 10; margin-bottom: 16px; }
.note h3 { font-family: var(--display); font-size: 22px; line-height: 1.25; font-weight: 400; }
.note p { color: var(--fg-2); font-size: 14.5px; margin-top: 8px; }
.note .small { margin-top: 10px; }
@media (max-width: 900px) { .notes { grid-template-columns: 1fr; } }
.article { max-width: 72ch; padding-top: clamp(44px, 5vw, 72px); border-top: 1px solid var(--line); }
.article:first-child { border-top: 0; padding-top: 0; }
.article h2 { margin-bottom: 10px; }
.article .meta { font-size: 13.5px; color: var(--fg-2); margin-bottom: 22px; }
.article h3 { font-family: var(--display); font-weight: 400; font-size: 22px; margin: 28px 0 8px; }
.article p { font-size: 16.5px; line-height: 1.7; }
.article ol, .article ul { margin: 0 0 1em 1.2em; list-style: decimal; }
.article ul { list-style: disc; }
.article li { margin-bottom: 6px; }
html[lang="zh-Hant"] .article p { line-height: 1.9; }
