/* 媧石皇家 demo 2 — home page. Prefix hm- */

.hm-br-d { display: inline; }

/* ---------- 1. Hero ---------- */
.hm-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; background: var(--dark); overflow: hidden; isolation: isolate; }
.hm-hero__slides { position: absolute; inset: 0; z-index: -2; }
.hm-hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--ease-io), visibility 0s 1.6s; visibility: hidden; }
.hm-hero__slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.6s var(--ease-io), visibility 0s; }
.hm-hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transform-origin: 60% 50%; transition: transform 9s linear; }
.hm-hero__slide.is-active img { transform: scale(1); }
.hm-hero.is-paused .hm-hero__slide img { transition: none; }
.hm-hero__shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(20,15,13,.45) 0%, rgba(20,15,13,0) 24%),
  linear-gradient(0deg, rgba(20,15,13,.78) 0%, rgba(20,15,13,.32) 48%, rgba(20,15,13,.08) 80%),
  linear-gradient(90deg, rgba(20,15,13,.35) 0%, rgba(20,15,13,0) 60%); }
.hm-hero__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px 64px; padding-top: calc(var(--hd-h) + 48px); padding-bottom: clamp(88px, 10vh, 120px); }
.hm-hero__copy { max-width: 920px; }
.hm-hero__pos { display: inline-flex; align-items: center; gap: 14px; margin-bottom: clamp(20px, 2.4vw, 32px); font: 500 var(--fs-small)/1.5 var(--f-sans); letter-spacing: .28em; color: rgba(255,255,255,.88); }
.hm-hero__pos::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.hm-hero__title { font-family: var(--f-zh-serif); font-weight: 400; letter-spacing: .06em; line-height: 1.24; text-shadow: 0 2px 30px rgba(0,0,0,.18); }
.hm-hero__lead { margin-top: clamp(20px, 2.4vw, 32px); max-width: 34em; font-size: var(--fs-lead); line-height: 1.9; color: rgba(255,255,255,.86); }
.hm-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(28px, 3vw, 44px); }
.hm-hero__ctrl { display: grid; gap: 18px; justify-items: end; min-width: 300px; }
.hm-hero__count { font-size: 1.5rem; line-height: 1; letter-spacing: .04em; }
.hm-hero__cur { font-size: 2.75rem; }
.hm-hero__sep { margin-inline: 10px; opacity: .5; }
.hm-hero__bars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; }
.hm-hero__bar { display: grid; gap: 10px; min-height: 44px; align-content: center; text-align: left; font-size: var(--fs-label); letter-spacing: .14em; color: rgba(255,255,255,.62); transition: color .4s; }
.hm-hero__bar i { position: relative; display: block; height: 2px; background: rgba(255,255,255,.28); overflow: hidden; }
.hm-hero__bar i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hm-hero__bar.is-past i::after { transform: scaleX(1); }
.hm-hero__bar.is-active { color: #fff; }
.hm-hero__bar.is-active i::after { animation: hmBar var(--dur, 6500ms) linear forwards; }
.hm-hero.is-paused .hm-hero__bar.is-active i::after { animation-play-state: paused; }
.hm-hero__bar:hover { color: #fff; }
@keyframes hmBar { to { transform: scaleX(1); } }
.hm-hero__cue { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; min-height: 44px; font-size: var(--fs-label); letter-spacing: .3em; color: rgba(255,255,255,.8); }
.hm-hero__cue i { position: relative; width: 1px; height: 44px; background: rgba(255,255,255,.25); overflow: hidden; }
.hm-hero__cue i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: #fff; animation: hmCue 2.4s var(--ease-io) infinite; }
@keyframes hmCue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- 2. Philosophy ---------- */
.hm-phil__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px clamp(40px, 7vw, 120px); align-items: start; }
.hm-phil__side { display: grid; gap: 40px; }
.hm-phil__fig { max-width: 300px; }
.hm-phil__txt { font: 400 clamp(1.6rem, 3vw, 3rem)/1.62 var(--f-zh-serif); letter-spacing: .06em; color: var(--ink); text-wrap: pretty; }
.hm-phil__txt em { font-style: normal; color: var(--burgundy); }
.hm-phil__txt.is-lit .lc { color: #CFC3B3; transition: color .5s var(--ease); }
.hm-phil__txt.is-lit .lc.on { color: var(--ink); }
.hm-phil__txt.is-lit em .lc.on { color: var(--burgundy); }
.hm-phil__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: clamp(56px, 6vw, 96px); padding-top: 32px; border-top: 1px solid var(--line); }
.hm-phil__facts dt { font: 400 clamp(1.6rem, 2.4vw, 2.25rem)/1.2 var(--f-zh-serif); letter-spacing: .06em; color: var(--burgundy); }
.hm-phil__facts dt.num { font-family: var(--f-num); font-size: clamp(2.2rem, 3.4vw, 3.25rem); line-height: 1; }
.hm-phil__facts dt small { margin-left: 6px; font: 400 1rem/1 var(--f-zh-serif); }
.hm-phil__facts dd { margin-top: 12px; font-size: var(--fs-small); color: var(--muted); line-height: 1.8; }

/* ---------- 3. Pillars accordion ---------- */
.hm-pil__row { --hw: 112px; --gap: 12px; display: flex; gap: var(--gap); height: clamp(520px, 44vw, 640px); container-type: inline-size; }
.hm-pil__p { position: relative; flex: 1 1 0px; min-width: 0; display: flex; background: var(--paper); border-radius: var(--r-lg); overflow: hidden; transition: flex-grow .9s var(--ease), background-color .5s; }
.hm-pil__p.is-on { flex-grow: 6; }
.hm-pil__p:not(.is-on):hover { background: #FBF8F3; }
.hm-pil__h { flex: 0 0 var(--hw); font: inherit; }
.hm-pil__btn { display: flex; flex-direction: column; align-items: center; justify-content: space-between; width: var(--hw); height: 100%; padding: 32px 0; cursor: pointer; }
.hm-pil__no { font-size: 1rem; color: var(--burgundy); }
.hm-pil__t { writing-mode: vertical-rl; font: 400 clamp(1.5rem, 2vw, 1.9rem)/1 var(--f-zh-serif); letter-spacing: .36em; color: var(--ink); transition: color .4s; }
.hm-pil__ic { position: relative; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; transition: transform .6s var(--ease), border-color .4s; }
.hm-pil__ic::before, .hm-pil__ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1px; background: var(--ink); transform: translate(-50%, -50%); }
.hm-pil__ic::after { transform: translate(-50%, -50%) rotate(90deg); transition: opacity .4s; }
.hm-pil__p.is-on .hm-pil__ic { transform: rotate(180deg); border-color: var(--burgundy); }
.hm-pil__p.is-on .hm-pil__ic::after { opacity: 0; }
.hm-pil__body { position: relative; flex: 1 1 auto; min-width: 0; overflow: hidden; }
.hm-pil__inner { position: absolute; top: 0; bottom: 0; left: 0; width: calc((100cqw - 2 * var(--gap)) * .75 - var(--hw)); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 3vw, 48px); padding: 16px 16px 16px 0; }
.hm-pil__img { height: 100%; border-radius: 10px; }
.hm-pil__img img { transform: scale(1.12); transition: transform 1.4s var(--ease); }
.hm-pil__txt { display: flex; flex-direction: column; justify-content: flex-end; gap: 20px; padding: 24px clamp(16px, 2vw, 32px) 24px 0; opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .8s var(--ease); }
.hm-pil__txt p:not(.hm-pil__big) { color: var(--muted); line-height: 1.95; }
.hm-pil__big { font: 400 clamp(2rem, 3.4vw, 3.25rem)/1.2 var(--f-zh-serif); letter-spacing: .08em; color: var(--ink); }
.hm-pil__txt .link { align-self: flex-start; }
.hm-pil__p.is-on .hm-pil__txt { opacity: 1; transform: none; transition-delay: .3s; }
.hm-pil__p.is-on .hm-pil__img img { transform: scale(1); }

/* ---------- 4. Discovery ---------- */
.hm-disc { position: relative; overflow: hidden; padding-block: var(--sec); --hp: 0; --nh: clamp(220px, calc(100vh - 500px), 440px); --lo: min(5vh, 48px); }
.hm-disc.is-pinned { height: 100vh; padding-block: 0; display: flex; align-items: center; }
.hm-disc.is-pinned .hm-disc__in { padding-top: 24px; }
.hm-disc.is-pinned .hm-need { gap: 14px; }
.hm-disc.is-pinned .hm-need__c { margin-top: 8px; }
.hm-disc__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 24px 64px; align-items: end; margin-bottom: clamp(28px, 4vh, 48px); }
.hm-disc__head .eyebrow { margin-bottom: 18px; }
.hm-disc__hint { color: var(--muted); font-size: var(--fs-small); line-height: 1.85; }
.hm-disc__swipe { display: none; }
.hm-disc__prog { position: relative; height: 1px; margin-top: 20px; background: var(--line); }
.hm-disc__prog i { position: absolute; inset: 0; background: var(--burgundy); transform-origin: left; transform: scaleX(max(.06, var(--hp))); }
.hm-disc__track { display: flex; gap: clamp(20px, 2.4vw, 36px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; padding-bottom: 8px; }
.hm-disc__track::-webkit-scrollbar { display: none; }
.hm-disc.is-pinned .hm-disc__track { overflow: visible; scroll-snap-type: none; }
.hm-need { flex: 0 0 auto; width: clamp(260px, 22vw, 340px); scroll-snap-align: start; display: grid; gap: 18px; align-content: start; }
.hm-need--low { padding-top: var(--lo); }
.hm-need__img { aspect-ratio: 4 / 5; height: auto; }
.hm-disc.is-pinned .hm-need__img { aspect-ratio: auto; height: var(--nh); }
.hm-disc.is-pinned .hm-need--low .hm-need__img { height: calc(var(--nh) - var(--lo)); }
.hm-need__img img { transition: transform 1.2s var(--ease); }
.hm-need:hover .hm-need__img img { transform: scale(1.05); }
.hm-need__seal { position: absolute; left: 16px; top: 16px; display: grid; place-items: center; width: 54px; height: 54px; border: 1.5px solid rgba(255,255,255,.9); border-radius: 4px; background: rgba(107,29,44,.86); color: #fff; font: 500 1.6rem/1 var(--f-zh-serif); }
.hm-need__no { font-size: .9375rem; color: var(--burgundy); }
.hm-need__no span { color: var(--muted); }
.hm-need__t { margin-top: 4px; font: 400 clamp(1.5rem, 1.9vw, 1.85rem)/1.3 var(--f-zh-serif); letter-spacing: .1em; }
.hm-need__d { margin-top: 6px; font-size: var(--fs-small); color: var(--muted); line-height: 1.8; }
.hm-need__c { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: var(--fs-label); letter-spacing: .14em; }
.hm-need__arr { width: 22px; height: 1px; background: currentColor; position: relative; transition: width .4s var(--ease); }
.hm-need__arr::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.hm-need:hover .hm-need__arr { width: 34px; }
.hm-need:hover .hm-need__t { color: var(--burgundy); }
.hm-need--end { align-content: center; justify-items: start; gap: 18px; padding: 32px; background: var(--burgundy-deep); color: var(--on-dark); border-radius: var(--r); aspect-ratio: 4 / 5; height: auto; }
.hm-disc.is-pinned .hm-need--end { aspect-ratio: auto; height: var(--nh); }
.hm-need__endk { font-size: var(--fs-label); letter-spacing: .2em; color: var(--on-dark-muted); }
.hm-need__endt { font: 400 clamp(1.6rem, 2.2vw, 2.1rem)/1.4 var(--f-zh-serif); letter-spacing: .1em; }
.hm-need__endc { width: 52px; height: 52px; border: 1px solid rgba(244,237,227,.5); border-radius: 50%; position: relative; transition: background .4s, border-color .4s; }
.hm-need__endc::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: translate(-70%, -50%) rotate(45deg); }
.hm-need--end:hover .hm-need__endc { background: var(--on-dark); color: var(--burgundy-deep); }
.hm-disc__colours { display: flex; align-items: center; gap: 16px 28px; margin-top: clamp(24px, 4vh, 44px); }
.hm-disc__clabel { flex: 0 0 auto; font-size: var(--fs-label); letter-spacing: .24em; color: var(--muted); }
.hm-disc__sw { display: flex; flex-wrap: wrap; gap: 8px; }
.hm-disc__chip { min-height: 44px; font-size: .875rem; }
.hm-disc__chip:hover { background: var(--paper); }

/* ---------- 5. Visit ---------- */
.hm-visit { position: relative; display: flex; align-items: center; min-height: max(100vh, 760px); padding-block: clamp(96px, 12vw, 160px); color: #fff; overflow: hidden; isolation: isolate; background: var(--dark); }
.hm-visit__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hm-visit__bg img { width: 100%; height: 100%; object-fit: cover; }
.hm-visit__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,15,13,.66) 0%, rgba(20,15,13,.3) 50%, rgba(20,15,13,.1) 100%), linear-gradient(0deg, rgba(20,15,13,.35), rgba(20,15,13,0) 40%); }
.hm-visit__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 48px clamp(40px, 6vw, 112px); align-items: center; }
.hm-visit__copy .eyebrow { margin-bottom: 22px; }
.hm-visit__copy h2 { font-family: var(--f-zh-serif); text-shadow: 0 2px 24px rgba(0,0,0,.2); }
.hm-visit__lead { margin-top: 24px; max-width: 30em; font-size: var(--fs-lead); line-height: 1.95; color: rgba(255,255,255,.86); }
.hm-visit__card { background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: clamp(22px, 2.6vw, 36px); box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.hm-visit__tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.hm-visit__tab { min-height: 52px; padding: 0 4px 2px; font: 500 var(--fs-small)/1.3 var(--f-sans); letter-spacing: .1em; color: var(--muted); transition: color .3s; }
.hm-visit__tab[aria-selected="true"] { color: var(--ink); }
.hm-visit__tab:hover { color: var(--burgundy); }
.hm-visit__ink { position: absolute; left: 0; bottom: -1px; height: 2px; width: 50%; background: var(--burgundy); transition: transform .6s var(--ease), width .6s var(--ease); }
.hm-visit__pic { aspect-ratio: 16 / 9; height: auto; margin-bottom: 20px; }
.hm-visit__dl { display: grid; gap: 10px; }
.hm-visit__dl > div { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; font-size: var(--fs-small); line-height: 1.7; }
.hm-visit__dl dt { color: var(--muted); letter-spacing: .14em; }
.hm-visit__dl a { border-bottom: 1px solid var(--line); }
.hm-visit__note { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--muted); line-height: 1.8; }
.hm-visit__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 22px; }

/* ---------- 6. Consultation ---------- */
.hm-cons__top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px clamp(40px, 7vw, 120px); align-items: end; }
.hm-cons__intro { display: grid; gap: 24px; justify-items: start; }
.hm-cons__intro h2 { font-family: var(--f-zh-serif); }
.hm-cons__facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(244,237,227,.2); }
.hm-cons__facts li { display: grid; gap: 8px; padding: 24px 20px 24px 0; border-bottom: 1px solid rgba(244,237,227,.2); }
.hm-cons__facts li:nth-child(odd) { border-right: 1px solid rgba(244,237,227,.2); }
.hm-cons__facts li:nth-child(even) { padding-left: 28px; }
.hm-cons__facts b { font: 400 clamp(1.7rem, 2.6vw, 2.5rem)/1.15 var(--f-zh-serif); letter-spacing: .08em; color: #fff; }
.hm-cons__facts b.num { font-family: var(--f-num); }
.hm-cons__facts b small { margin-left: 6px; font: 400 1rem/1 var(--f-zh-serif); }
.hm-cons__facts span { font-size: var(--fs-small); color: var(--on-dark-muted); }
.hm-cons__steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: clamp(72px, 8vw, 120px); padding-top: 44px; }
.hm-cons__line { position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: rgba(244,237,227,.18); }
.hm-cons__line i { position: absolute; inset: 0; background: #E9C9C3; transform-origin: left; }
.hm-cons__step { position: relative; display: grid; gap: 10px; align-content: start; padding-right: 12px; }
.hm-cons__dot { position: absolute; left: 0; top: -44px; width: 15px; height: 15px; border-radius: 50%; border: 1px solid rgba(244,237,227,.5); background: var(--burgundy-deep); transition: background .5s, border-color .5s, transform .5s var(--ease); }
.hm-cons__step.is-on .hm-cons__dot { background: #E9C9C3; border-color: #E9C9C3; transform: scale(1.2); }
.hm-cons__step .num { font-size: .9375rem; color: #E9C9C3; }
.hm-cons__step h3 { font-family: var(--f-zh-serif); letter-spacing: .1em; color: #fff; }
.hm-cons__step p:last-child { font-size: var(--fs-small); line-height: 1.85; color: var(--on-dark-muted); }
.hm-cons__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(56px, 6vw, 88px); }

/* ---------- 7. Stories ---------- */
.hm-story { overflow: hidden; }
.hm-story__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(40px, 5vw, 72px); }
.hm-story__head .eyebrow { margin-bottom: 18px; }
.hm-story__note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; font-size: var(--fs-label); color: var(--muted); letter-spacing: .06em; }
.hm-story__ctrl { display: flex; align-items: center; gap: 28px; }
.hm-story__count { font-size: 1.125rem; color: var(--muted); }
.hm-story__count span:first-child { color: var(--ink); font-size: 1.75rem; }
.hm-story__btns { display: flex; gap: 10px; }
.hm-story__btn { display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid var(--line); border-radius: 50%; transition: background .35s, color .35s, border-color .35s, opacity .35s; }
.hm-story__btn svg { width: 20px; height: 20px; }
.hm-story__btn:hover:not(:disabled) { background: var(--burgundy); border-color: var(--burgundy); color: #fff; }
.hm-story__btn:disabled { opacity: .35; cursor: default; }
.hm-story__track { display: flex; gap: clamp(20px, 3vw, 48px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
.hm-story__track::-webkit-scrollbar { display: none; }
.hm-story__track.is-drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.hm-story__track:focus-visible { outline-offset: 6px; }
.hm-q { flex: 0 0 auto; width: min(760px, 62vw); scroll-snap-align: start; display: grid; align-content: space-between; gap: 40px; min-height: 360px; padding: clamp(28px, 3.4vw, 56px); background: var(--sand); border-radius: var(--r-lg); transition: background .6s var(--ease), color .6s; }
.hm-q.is-cur { background: var(--burgundy-tint); }
.hm-q__mark { display: block; height: .7em; font: 400 4.5rem/1 var(--f-zh-serif); color: var(--burgundy); }
.hm-q__txt { margin: 0; font: 400 clamp(1.3rem, 2vw, 1.85rem)/1.75 var(--f-zh-serif); letter-spacing: .06em; text-wrap: pretty; }
.hm-q__by { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.hm-q__name { font-size: var(--fs-body); letter-spacing: .1em; }
.hm-q__name small { margin-left: 12px; font-size: var(--fs-label); color: var(--muted); }
.hm-q__topic { padding: 4px 14px; border: 1px solid var(--burgundy); border-radius: 99px; font-size: var(--fs-label); letter-spacing: .12em; color: var(--burgundy); }
.hm-story__prog { position: relative; height: 1px; margin-top: 40px; background: var(--line); }
.hm-story__prog i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(.2); transition: transform .5s var(--ease); }

/* ---------- 8. Academy ---------- */
.hm-acad__intro { display: grid; gap: 20px; justify-items: start; }
.hm-acad__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px clamp(40px, 5vw, 88px); align-items: start; }
.hm-acad__feat a { display: grid; gap: 18px; }
.hm-acad__fimg { aspect-ratio: 7 / 5; height: auto; }
.hm-acad__fimg img { transition: transform 1.2s var(--ease); }
.hm-acad__feat a:hover .hm-acad__fimg img { transform: scale(1.04); }
.hm-acad__fmeta, .hm-acad__rmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: var(--fs-label); letter-spacing: .1em; color: var(--muted); }
.hm-acad__cat { color: var(--burgundy); letter-spacing: .16em; }
.hm-acad__ft { font: 400 clamp(1.5rem, 2.4vw, 2.25rem)/1.45 var(--f-zh-serif); letter-spacing: .05em; transition: color .3s; }
.hm-acad__feat a:hover .hm-acad__ft { color: var(--burgundy); }
.hm-acad__fx { color: var(--muted); max-width: 36em; }
.hm-acad__list { border-top: 1px solid var(--line); }
.hm-acad__row { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 24px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.hm-acad__rt { margin-top: 8px; font: 400 1.2rem/1.6 var(--f-zh-serif); letter-spacing: .04em; transition: color .3s; }
.hm-acad__row:hover .hm-acad__rt { color: var(--burgundy); }
.hm-acad__rimg { aspect-ratio: 1; height: auto; border-radius: 50%; }
.hm-acad__rimg img { transition: transform .9s var(--ease); }
.hm-acad__row:hover .hm-acad__rimg img { transform: scale(1.1); }
.hm-acad__all { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 28px; }

/* ---------- 9. Closing ---------- */
.hm-close__head { display: grid; gap: 24px; justify-items: center; text-align: center; margin-bottom: clamp(48px, 6vw, 88px); }
.hm-close__head h2 { font-family: var(--f-zh-serif); }
.hm-close__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(16px, 2vw, 28px); }
.hm-close__route { position: relative; display: block; min-height: clamp(420px, 38vw, 560px); border-radius: var(--r-lg); overflow: hidden; isolation: isolate; }
.hm-close__img { position: absolute; inset: 0; z-index: -2; }
.hm-close__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.hm-close__route--visit { color: #fff; }
.hm-close__route--visit::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(20,15,13,.72), rgba(20,15,13,.05) 65%); }
.hm-close__route--visit:hover .hm-close__img img { transform: scale(1.05); }
.hm-close__route--line { background: var(--dark); color: var(--on-dark); }
.hm-close__route--line::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #06C755; transform: translateY(101%); transition: transform .8s var(--ease); }
.hm-close__route--line:hover::before { transform: none; }
.hm-close__txt { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 10px; padding: clamp(24px, 3vw, 48px); padding-right: 120px; }
.hm-close__k { font-size: var(--fs-label); letter-spacing: .26em; opacity: .85; }
.hm-close__t { font: 400 clamp(1.8rem, 3vw, 2.9rem)/1.25 var(--f-zh-serif); letter-spacing: .06em; }
.hm-close__d { font-size: var(--fs-small); line-height: 1.85; opacity: .85; }
.hm-close__go { position: absolute; right: clamp(24px, 3vw, 48px); bottom: clamp(24px, 3vw, 48px); width: 64px; height: 64px; border: 1px solid currentColor; border-radius: 50%; transition: background .4s, color .4s, transform .6s var(--ease); }
.hm-close__go::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: translate(-70%, -50%) rotate(45deg); }
.hm-close__route:hover .hm-close__go { transform: rotate(-45deg); background: #fff; color: var(--ink); }
.hm-close__mark { position: absolute; right: clamp(24px, 3vw, 48px); top: clamp(24px, 3vw, 48px); width: 56px; height: 56px; color: #06C755; transition: color .5s; }
.hm-close__route--line:hover .hm-close__mark { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hm-hero__in { grid-template-columns: minmax(0, 1fr); }
  .hm-hero__ctrl { justify-items: start; min-width: 0; width: min(100%, 420px); }
}
@media (max-width: 991px) {
  .hm-phil__grid { grid-template-columns: minmax(0, 1fr); }
  .hm-phil__side { grid-template-columns: minmax(0, 1fr) minmax(0, 200px); align-items: end; }
  .hm-phil__fig { justify-self: end; width: 100%; }

  /* accordion becomes a vertical disclosure list */
  .hm-pil__row { flex-direction: column; height: auto; gap: 10px; }
  .hm-pil__p { flex: none; display: block; }
  .hm-pil__h { display: block; }
  .hm-pil__btn { flex-direction: row; justify-content: flex-start; gap: 20px; width: 100%; height: auto; min-height: 76px; padding: 18px 22px; }
  .hm-pil__t { writing-mode: horizontal-tb; letter-spacing: .14em; font-size: 1.45rem; flex: 1; text-align: left; }
  .hm-pil__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
  .hm-pil__p.is-on .hm-pil__body { grid-template-rows: 1fr; }
  .hm-pil__inner { position: static; width: auto; min-height: 0; overflow: hidden; grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 0 16px; }
  .hm-pil__p.is-on .hm-pil__inner { padding-bottom: 22px; }
  .hm-pil__img { height: auto; aspect-ratio: 3 / 2; }
  .hm-pil__txt { padding: 0 6px; gap: 14px; }
  .hm-pil__big { display: none; }

  .hm-disc__head { grid-template-columns: minmax(0, 1fr); }
  .hm-disc__swipe { display: inline; margin-left: 8px; color: var(--burgundy); }
  .hm-disc__track { margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); scroll-padding-left: 0; }
  .hm-need--low { padding-top: 0; }
  .hm-disc__colours { flex-direction: column; align-items: flex-start; }
  .hm-disc__sw { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: calc(100% + var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .hm-disc__sw::-webkit-scrollbar { display: none; }
  .hm-disc__sw li { flex: 0 0 auto; }

  .hm-visit { min-height: 0; align-items: flex-end; }
  .hm-visit__in { grid-template-columns: minmax(0, 1fr); }
  .hm-visit__card { max-width: 560px; }

  .hm-cons__top { grid-template-columns: minmax(0, 1fr); }
  .hm-cons__steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 48px; }
  .hm-cons__line { display: none; }

  .hm-q { width: min(640px, 80vw); }
  .hm-acad__grid { grid-template-columns: minmax(0, 1fr); }
  .hm-close__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .hm-br-d { display: none; }
  .hm-hero__in { padding-bottom: 96px; gap: 32px; }
  .hm-hero__pos { font-size: var(--fs-label); letter-spacing: .2em; gap: 10px; }
  .hm-hero__pos::before { width: 22px; }
  .hm-hero__title { letter-spacing: .04em; }
  .hm-hero__cta .btn { flex: 1 1 auto; }
  .hm-hero__ctrl { width: 100%; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 20px; }
  .hm-hero__cur { font-size: 1.75rem; }
  .hm-hero__count { font-size: 1rem; }
  .hm-hero__bar span { display: none; }
  .hm-hero__cue { display: none; }

  .hm-phil__side { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hm-phil__fig { justify-self: start; max-width: 220px; }
  .hm-phil__txt { font-size: 1.45rem; line-height: 1.75; letter-spacing: .04em; }
  .hm-phil__facts { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 0; }
  .hm-phil__facts > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
  .hm-phil__facts dt { font-size: 1.4rem; }
  .hm-phil__facts dt.num { font-size: 2rem; }
  .hm-phil__facts dd { margin-top: 0; }

  .hm-pil__btn { padding: 16px 18px; gap: 16px; }
  .hm-pil__inner { padding-inline: 10px; }

  .hm-need { width: 76vw; }
  .hm-need--end { width: 64vw; }

  .hm-visit__card { padding: 20px; }
  .hm-visit__tab { font-size: .875rem; letter-spacing: .04em; }
  .hm-visit__acts .btn { flex: 1 1 100%; }

  .hm-cons__facts li { padding: 20px 12px 20px 0; }
  .hm-cons__facts li:nth-child(even) { padding-left: 16px; }
  .hm-cons__facts b { font-size: 1.6rem; }
  .hm-cons__steps { grid-template-columns: minmax(0, 1fr); row-gap: 0; padding-top: 0; padding-left: 36px; }
  .hm-cons__line { display: block; left: 7px; right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; }
  .hm-cons__line i { transform-origin: top; }
  .hm-cons__step { padding: 0 0 36px; }
  .hm-cons__dot { left: -36px; top: 4px; }
  .hm-cons__cta .btn { flex: 1 1 100%; }

  .hm-story__ctrl { width: 100%; justify-content: space-between; }
  .hm-q { width: 84vw; min-height: 0; gap: 28px; }
  .hm-q__mark { font-size: 3.5rem; }
  .hm-q__txt { font-size: 1.2rem; }

  .hm-acad__row { grid-template-columns: minmax(0, 1fr) 76px; gap: 16px; }
  .hm-acad__rt { font-size: 1.08rem; }

  .hm-close__route { min-height: 380px; }
  .hm-close__txt { padding: 24px; padding-right: 96px; }
  .hm-close__go { width: 56px; height: 56px; right: 24px; bottom: 24px; }
  .hm-close__mark { width: 44px; height: 44px; right: 24px; top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-hero__slide img { transform: none !important; }
  .hm-hero__cue i::after { animation: none; }
}

/* CJK line-break hygiene: avoid one-character last lines */
#main p, #main dd, #main blockquote, #main h3 { text-wrap: pretty; }
.hm-phil__facts dd, .hm-close__d, .hm-need__d, .hm-visit__note { text-wrap: balance; }
@media (min-width: 992px) and (max-width: 1279px) {
  .hm-disc { --nh: clamp(200px, calc(100vh - 540px), 400px); }
  .hm-visit__in { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 40px; }
}
