:root {
  --night: #06111a;
  --night-2: #0a1d28;
  --night-3: #102b38;
  --paper: #f5efe4;
  --paper-2: #dfd4c2;
  --gold: #cda75d;
  --gold-2: #f2dda2;
  --jade: #376f70;
  --wine: #552635;
  --line: rgba(205, 167, 93, .24);
  --muted: rgba(245, 239, 228, .62);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --shadow: 0 30px 90px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  background:
    radial-gradient(circle at 85% 0%, rgba(55,111,112,.19), transparent 34%),
    radial-gradient(circle at 0% 40%, rgba(85,38,53,.15), transparent 30%),
    var(--night);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
h1, h2, h3, h4, p, blockquote { margin-top: 0; }
::selection { background: var(--gold); color: var(--night); }

.skip-link { position: fixed; left: 18px; top: -70px; z-index: 200; padding: 10px 15px; color: #111; background: #fff; }
.skip-link:focus { top: 14px; }
.page-progress { position: fixed; z-index: 101; top: 0; left: 0; width: 0; height: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); box-shadow: 0 0 18px rgba(242,221,162,.6); }

.site-header {
  position: fixed;
  z-index: 100;
  inset: 2px 0 auto;
  height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(22px, 4vw, 72px);
  border-bottom: 1px solid transparent;
  transition: .3s ease;
}
.site-header.scrolled, .site-header.open { background: rgba(4,14,22,.91); border-color: var(--line); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 14px; width: max-content; }
.brand img { width: 92px; height: 34px; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; padding-left: 14px; border-left: 1px solid var(--line); }
.brand-copy strong { font: 400 15px var(--serif); letter-spacing: .18em; }
.brand-copy small { margin-top: 3px; color: rgba(245,239,228,.44); font-size: 8px; letter-spacing: .14em; }
.main-nav { display: flex; align-items: center; gap: clamp(19px, 2.4vw, 38px); }
.main-nav a { position: relative; padding: 29px 0; color: rgba(245,239,228,.55); font-size: 12px; letter-spacing: .12em; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 19px; height: 1px; background: var(--gold); transition: right .25s ease; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--gold-2); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { right: 0; }
.header-action { justify-self: end; display: inline-flex; align-items: center; gap: 10px; min-height: 39px; padding: 0 15px; border: 1px solid var(--line); color: var(--gold-2); font-size: 11px; letter-spacing: .1em; }
.menu-toggle { display: none; justify-self: end; width: 42px; height: 42px; border: 1px solid var(--line); background: transparent; }

.shell { width: min(1240px, calc(100% - 44px)); margin: 0 auto; }
.eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 19px; color: var(--gold); font-size: 10px; letter-spacing: .28em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--gold); }
.display { margin-bottom: 25px; font: 400 clamp(44px, 6vw, 88px)/1.18 var(--serif); letter-spacing: -.035em; }
.display em { color: var(--gold-2); font-style: normal; }
.lede { max-width: 680px; color: var(--muted); font-size: clamp(15px, 1.3vw, 19px); line-height: 2; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 47px; padding: 12px 21px; border: 1px solid transparent; font-size: 12px; letter-spacing: .08em; cursor: pointer; transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #07131b; background: linear-gradient(135deg, var(--gold-2), #b98739); }
.button-secondary { border-color: rgba(245,239,228,.22); background: rgba(255,255,255,.02); }
.button-secondary:hover { border-color: var(--gold); }
.button-block { width: 100%; }

.home-hero, .page-hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 122px 0 72px; overflow: hidden; }
.home-hero::before, .page-hero::before { content: ""; position: absolute; width: 66vw; height: 66vw; right: -34vw; top: -28vw; border: 1px solid rgba(205,167,93,.1); border-radius: 50%; box-shadow: inset 0 0 120px rgba(55,111,112,.09); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(390px, .72fr); gap: clamp(45px, 7vw, 100px); align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero-signature { margin-top: 34px; display: flex; align-items: center; gap: 14px; color: rgba(245,239,228,.42); font: 400 13px var(--serif); }
.hero-signature::before { content: ""; width: 54px; height: 1px; background: var(--line); }
.hero-media { position: relative; min-width: 0; }
.hero-media::before { content: ""; position: absolute; inset: -16px 16px 16px -16px; border: 1px solid var(--line); }
.hero-media img { position: relative; z-index: 1; width: 100%; max-height: 72vh; aspect-ratio: 4 / 5; object-fit: contain; background: #02070b; box-shadow: var(--shadow); }
.hero-media figcaption { position: absolute; z-index: 2; right: -20px; bottom: 28px; max-width: 220px; padding: 16px 18px; color: var(--paper); background: rgba(5,16,24,.9); border: 1px solid var(--line); font-size: 11px; line-height: 1.7; }
.hero-media figcaption strong { display: block; margin-bottom: 5px; color: var(--gold-2); font: 400 17px var(--serif); }
.scroll-mark { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); color: rgba(245,239,228,.35); font-size: 8px; letter-spacing: .24em; }
.scroll-mark::after { content: ""; display: block; width: 1px; height: 38px; margin: 9px auto 0; background: linear-gradient(var(--gold), transparent); }

.page-hero { min-height: 78vh; padding-bottom: 44px; }
.page-hero .hero-grid { grid-template-columns: minmax(0,.82fr) minmax(420px,1.18fr); }
.page-hero .hero-media img { aspect-ratio: 16 / 10; max-height: 58vh; }
.page-number { display: inline-flex; margin-bottom: 21px; color: rgba(205,167,93,.45); font: 400 56px/1 Georgia, serif; }
.crumbs { display: flex; gap: 10px; margin-bottom: 24px; color: rgba(245,239,228,.4); font-size: 10px; letter-spacing: .12em; }
.crumbs a:hover { color: var(--gold-2); }

.quote-band { padding: 80px 20px; color: #13242c; background: var(--paper); text-align: center; }
.quote-band blockquote { max-width: 940px; margin: 0 auto; font: 400 clamp(25px, 3.2vw, 48px)/1.72 var(--serif); }
.quote-band cite { display: block; margin-top: 22px; color: #8f692c; font-style: normal; font-size: 11px; letter-spacing: .18em; }

.section { padding: clamp(88px, 11vw, 150px) 0; }
.section-tight { padding: clamp(62px, 8vw, 105px) 0; }
.section-kicker { margin-bottom: 14px; color: var(--gold); font-size: 10px; letter-spacing: .28em; text-transform: uppercase; }
.section-title { margin-bottom: 24px; font: 400 clamp(34px, 4.4vw, 62px)/1.35 var(--serif); }
.section-copy { max-width: 720px; color: var(--muted); line-height: 2; font-size: 14px; }
.section-head { display: grid; grid-template-columns: .8fr 1.2fr; gap: 8vw; align-items: end; margin-bottom: 54px; }
.section-head .section-copy { justify-self: end; }
.paper-section { color: #13242c; background: var(--paper); }
.paper-section .section-kicker { color: #8f692c; }
.paper-section .section-copy { color: rgba(19,36,44,.67); }

.chapter-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.chapter-card { position: relative; min-height: 390px; padding: 26px 23px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); background: rgba(255,255,255,.02); transition: .3s ease; }
.chapter-card::before { content: ""; position: absolute; inset: 0; opacity: .23; background: linear-gradient(150deg, var(--card-tone, #376f70), transparent 62%); }
.chapter-card > * { position: relative; z-index: 1; }
.chapter-card:hover { transform: translateY(-7px); border-color: rgba(242,221,162,.6); }
.chapter-card span { color: rgba(205,167,93,.55); font: 400 13px Georgia, serif; }
.chapter-card small { margin-top: auto; color: var(--gold); font-size: 9px; letter-spacing: .18em; }
.chapter-card h3 { margin: 11px 0 15px; font: 400 25px/1.45 var(--serif); }
.chapter-card p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.chapter-card b { margin-top: 20px; color: var(--gold-2); font-size: 11px; font-weight: 400; }

.media-story { display: grid; grid-template-columns: 1.08fr .92fr; border: 1px solid var(--line); background: #071722; box-shadow: var(--shadow); }
.media-stage { position: relative; min-height: 520px; display: grid; place-items: center; overflow: hidden; background: #02070b; }
.media-stage img { width: 100%; height: 100%; max-height: 680px; object-fit: contain; }
.media-stage button { position: absolute; right: 16px; bottom: 16px; padding: 9px 12px; border: 1px solid var(--line); background: rgba(4,14,22,.82); font-size: 10px; cursor: pointer; }
.story-copy { align-self: center; padding: clamp(35px, 5vw, 72px); }
.story-copy h2, .story-copy h3 { margin: 15px 0 22px; font: 400 clamp(30px, 3.4vw, 49px)/1.48 var(--serif); }
.story-copy p { color: var(--muted); font-size: 13px; line-height: 2; }
.story-copy ul { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.story-copy li { position: relative; padding-left: 20px; color: rgba(245,239,228,.78); font-size: 12px; line-height: 1.7; }
.story-copy li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); }

.timeline { position: relative; display: grid; gap: 0; max-width: 980px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 114px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline article { display: grid; grid-template-columns: 88px 1fr; gap: 52px; padding: 28px 0; }
.timeline time { color: var(--gold-2); font: 400 19px Georgia, serif; }
.timeline .dot { position: absolute; left: 110px; margin-top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 20px rgba(205,167,93,.55); }
.timeline h3 { margin-bottom: 9px; font: 400 23px/1.45 var(--serif); }
.timeline p { margin: 0; color: var(--muted); line-height: 1.9; font-size: 13px; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.info-card { min-height: 260px; padding: 30px; border: 1px solid var(--line); background: linear-gradient(150deg, rgba(55,111,112,.12), rgba(255,255,255,.015)); }
.info-card .index { color: rgba(205,167,93,.45); font: 400 13px Georgia, serif; }
.info-card h3 { margin: 58px 0 13px; font: 400 24px/1.45 var(--serif); }
.info-card p { color: var(--muted); font-size: 12px; line-height: 1.9; }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.metric { min-height: 235px; padding: 29px; display: flex; flex-direction: column; background: #081a24; }
.metric strong { margin-bottom: auto; color: var(--gold-2); font: 400 clamp(40px, 5vw, 70px)/1 Georgia, serif; }
.metric h3 { margin: 28px 0 7px; font: 400 18px var(--serif); }
.metric p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }

.phase-grid { display: grid; gap: 15px; }
.phase-card { display: grid; grid-template-columns: 290px 1fr 1fr; min-height: 300px; border: 1px solid var(--line); background: rgba(255,255,255,.018); }
.phase-card img { width: 100%; height: 100%; max-height: 360px; object-fit: contain; background: #02070b; }
.phase-meta, .phase-copy { padding: 34px; }
.phase-meta { border-right: 1px solid var(--line); }
.phase-meta strong { display: block; color: var(--gold-2); font: 400 29px Georgia, serif; }
.phase-meta span { display: block; margin-top: 8px; color: var(--gold); font-size: 10px; letter-spacing: .2em; }
.phase-copy h3 { font: 400 27px/1.45 var(--serif); }
.phase-copy p { color: var(--muted); font-size: 13px; line-height: 1.9; }

.course-banner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; padding: clamp(36px, 6vw, 80px); border: 1px solid var(--line); background: linear-gradient(135deg, rgba(85,38,53,.45), rgba(16,43,56,.78)); }
.course-banner h2 { font: 400 clamp(35px, 4.7vw, 66px)/1.32 var(--serif); }
.schedule { display: grid; gap: 12px; }
.schedule article { display: grid; grid-template-columns: 105px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.schedule time { color: var(--gold-2); font: 400 18px Georgia, serif; }
.schedule h3 { margin-bottom: 6px; font: 400 18px var(--serif); }
.schedule p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }

.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.course-card { min-height: 455px; padding: 27px 24px; display: flex; flex-direction: column; border: 1px solid var(--line); background: linear-gradient(150deg, rgba(55,111,112,.15), rgba(255,255,255,.01)); }
.course-card.featured { border-color: rgba(242,221,162,.55); background: linear-gradient(150deg, rgba(116,84,32,.4), rgba(7,23,34,.94)); }
.course-card .price { color: var(--gold-2); font: 400 25px Georgia, serif; }
.course-card .tag { margin: auto 0 9px; color: var(--gold); font-size: 9px; letter-spacing: .18em; }
.course-card h3 { margin-bottom: 16px; font: 400 24px/1.45 var(--serif); }
.course-card p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.course-card ul { padding: 18px 0 0; margin: 10px 0 24px; border-top: 1px solid var(--line); list-style: none; display: grid; gap: 9px; }
.course-card li { color: rgba(245,239,228,.72); font-size: 11px; }
.course-card button { margin-top: auto; min-height: 42px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.course-card button:hover { color: var(--night); background: var(--gold); }

.consult-panel { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(45px, 7vw, 90px); padding: clamp(35px, 5vw, 70px); border: 1px solid var(--line); background: rgba(5,17,25,.84); box-shadow: var(--shadow); }
.consult-intro h2 { font: 400 clamp(31px, 4vw, 50px)/1.45 var(--serif); }
.consult-intro p { color: var(--muted); font-size: 13px; line-height: 2; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label, .goal-field legend { color: rgba(245,239,228,.76); font-size: 11px; letter-spacing: .05em; }
.field input, .field select, .field textarea { width: 100%; min-height: 45px; padding: 11px 13px; color: var(--paper); border: 1px solid rgba(205,167,93,.28); background: rgba(255,255,255,.035); outline: none; }
.field textarea { min-height: 105px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.goal-field { padding: 0; margin: 0 0 18px; border: 0; }
.goal-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 9px; }
.goal-options label { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 9px 11px; border: 1px solid rgba(205,167,93,.2); font-size: 11px; }
.result-box { padding: 24px; border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.result-box pre { white-space: pre-wrap; color: var(--paper); font: 12px/1.9 var(--sans); }
.result-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.status { min-height: 20px; margin: 12px 0 0; color: var(--gold-2); font-size: 11px; }

.next-chapter { padding: 72px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.next-link { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.next-link small { display: block; color: var(--gold); letter-spacing: .18em; }
.next-link strong { display: block; margin-top: 8px; font: 400 clamp(27px, 4vw, 50px) var(--serif); }
.next-link span { color: var(--gold-2); font: 400 44px Georgia, serif; transition: transform .25s ease; }
.next-link:hover span { transform: translateX(8px); }

.site-footer { padding: 55px 0 35px; background: #03090e; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 40px; align-items: end; }
.footer-brand img { width: 108px; }
.footer-brand p { margin: 13px 0 0; color: rgba(245,239,228,.42); font-size: 10px; line-height: 1.8; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; color: rgba(245,239,228,.58); font-size: 11px; }
.footer-actions { display: flex; gap: 9px; }
.footer-actions button, .footer-actions a { min-width: 90px; padding: 10px 12px; border: 1px solid var(--line); background: transparent; font-size: 10px; cursor: pointer; }
.copyright { margin: 36px 0 0; padding-top: 18px; border-top: 1px solid rgba(205,167,93,.12); color: rgba(245,239,228,.26); font-size: 9px; letter-spacing: .08em; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

.lightbox { width: min(94vw, 1400px); height: min(92vh, 900px); padding: 0; border: 1px solid rgba(242,221,162,.4); color: var(--paper); background: rgba(1,5,8,.97); }
.lightbox::backdrop { background: rgba(0,0,0,.88); backdrop-filter: blur(8px); }
.lightbox figure { width: 100%; height: 100%; margin: 0; display: grid; grid-template-rows: 1fr auto; }
.lightbox img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.lightbox figcaption { padding: 14px 20px; color: rgba(245,239,228,.65); border-top: 1px solid var(--line); font-size: 11px; }
.lightbox-close { position: absolute; top: 13px; right: 13px; z-index: 2; width: 42px; height: 42px; border: 1px solid var(--line); background: rgba(3,9,14,.82); cursor: pointer; }
.toast { position: fixed; z-index: 210; left: 50%; bottom: 28px; transform: translateX(-50%); max-width: min(90vw, 560px); padding: 13px 18px; color: #09151c; background: var(--gold-2); box-shadow: var(--shadow); font-size: 11px; }

@media (max-width: 1080px) {
  .main-nav { gap: 16px; }
  .brand-copy { display: none; }
  .chapter-grid { grid-template-columns: repeat(3, 1fr); }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .phase-card { grid-template-columns: 260px 1fr; }
  .phase-copy { grid-column: 1 / -1; border-top: 1px solid var(--line); }
}

@media (max-width: 820px) {
  .site-header { grid-template-columns: 1fr auto; }
  .header-action { display: none; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .main-nav { position: fixed; inset: 80px 0 auto; display: none; padding: 20px 22px 28px; background: rgba(4,14,22,.97); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; }
  .site-header.open .main-nav { display: flex; }
  .main-nav a { padding: 10px 0; }
  .main-nav a::after { bottom: 4px; }
  .home-hero, .page-hero { min-height: auto; padding-top: 118px; }
  .hero-grid, .page-hero .hero-grid, .section-head, .media-story, .course-banner, .consult-panel { grid-template-columns: 1fr; }
  .hero-media { width: min(560px, 100%); margin: 28px auto 0; }
  .hero-media img { max-height: none; }
  .hero-media figcaption { right: 0; }
  .scroll-mark { display: none; }
  .section-head .section-copy { justify-self: auto; }
  .chapter-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .course-grid { grid-template-columns: 1fr; }
  .media-stage { min-height: 360px; }
  .footer-grid { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 30px, 1240px); }
  .display { font-size: clamp(38px, 12vw, 56px); }
  .hero-media::before { display: none; }
  .hero-media figcaption { position: relative; bottom: auto; right: auto; max-width: none; }
  .chapter-grid, .metrics { grid-template-columns: 1fr; }
  .chapter-card { min-height: 300px; }
  .timeline::before { left: 25px; }
  .timeline article { grid-template-columns: 1fr; gap: 10px; padding-left: 50px; }
  .timeline .dot { left: 21px; }
  .phase-card { grid-template-columns: 1fr; }
  .phase-meta { border-right: 0; border-bottom: 1px solid var(--line); }
  .goal-options { grid-template-columns: 1fr; }
  .media-stage { min-height: 260px; }
  .footer-actions { flex-wrap: wrap; }
}

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