:root {
  --ink: #172c3a;
  --paper: #f4f0e8;
  --paper-deep: #e7e0d5;
  --warm: #ede7dc;
  --blue: #e7edf0;
  --red: #e88932;
  --red-dark: #b76520;
  --white: #fffdf8;
  --muted: rgba(21, 42, 53, 0.64);
  --light-muted: rgba(255, 253, 247, 0.68);
  --serif: "Iowan Old Style", "Songti SC", "Noto Serif CJK SC", Georgia, serif;
  --sans: "Avenir Next", "PingFang SC", "Helvetica Neue", sans-serif;
  --mono: "SFMono-Regular", "Menlo", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #d9d1c3; font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.shell { overflow: clip; background: var(--paper); }

.progress { position: fixed; z-index: 10; inset: 0 0 auto; display: flex; justify-content: space-between; padding: max(17px, env(safe-area-inset-top)) 21px 0; color: rgba(21, 42, 53, 0.62); font: 9px/1 var(--mono); letter-spacing: 0.11em; pointer-events: none; }
.progress__count { color: var(--red); }
.progress__brand { white-space: nowrap; }
.page-nav { position: fixed; z-index: 10; top: 50%; right: 15px; display: grid; gap: 8px; transform: translateY(-50%); }
.page-nav__dot { width: 6px; height: 6px; border: 1px solid rgba(21, 42, 53, 0.44); border-radius: 50%; transition: transform 180ms ease, background 180ms ease, border-color 180ms ease; }
.page-nav__dot.is-active { border-color: var(--red); background: var(--red); transform: scale(1.7); }

.screen { position: relative; min-height: 100svh; scroll-snap-align: start; isolation: isolate; overflow: hidden; }
.screen__inner { position: relative; z-index: 2; width: min(100%, 540px); min-height: 100svh; margin: 0 auto; padding: 75px 40px 38px 24px; display: flex; flex-direction: column; justify-content: center; }
.screen-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: absolute; top: max(27px, calc(env(safe-area-inset-top) + 12px)); left: 24px; right: 40px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--white); font-size: 12px; font-weight: 700; text-decoration: none; letter-spacing: 0.08em; }
.brand--dark { color: var(--ink); }
.brand__mark { display: block; width: 23px; height: 23px; flex: 0 0 23px; border: 1px solid rgba(232, 137, 50, 0.42); border-radius: 6px; background-color: var(--white); background-image: url("./assets/yuhai-family-office-logo.jpg"); background-position: left center; background-repeat: no-repeat; background-size: 425% auto; box-shadow: 0 2px 8px rgba(23, 44, 58, 0.1); }
.section-label { color: currentColor; opacity: 0.54; font: 9px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.eyebrow { margin: 0 0 23px; color: #f4b169; font: 9px/1.4 var(--mono); letter-spacing: 0.16em; }
.eyebrow--red { color: var(--red); }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.065em; }
h1 { margin-bottom: 21px; font-size: clamp(48px, 14vw, 79px); line-height: 0.98; }
h2 { margin-bottom: 16px; font-size: clamp(43px, 12.2vw, 70px); line-height: 0.98; }
h1 em, h2 em { color: var(--red); font-style: normal; }
.section-copy--light h2 em, .screen--ink h2 em { color: #f4b169; }
.body-copy { max-width: 330px; margin-bottom: 0; color: var(--muted); font-size: 15px; line-height: 1.62; }
.section-copy--light .body-copy { color: var(--light-muted); }

.screen--hero { color: var(--white); background: var(--ink); }
.screen--hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(circle at 85% 15%, rgba(232, 137, 50, 0.22), transparent 22%), linear-gradient(140deg, #172c3a 0%, #203b47 100%); }
.screen--hero::after { content: ""; position: absolute; z-index: -1; left: -18%; bottom: -13%; width: 150%; height: 49%; border: 1px solid rgba(255, 253, 247, 0.17); border-radius: 50% 50% 0 0; transform: rotate(-7deg); box-shadow: 0 -24px 0 rgba(255, 253, 247, 0.04), 0 -48px 0 rgba(255, 253, 247, 0.04); }
.city-grid { position: absolute; inset: 0; opacity: 0.26; background: linear-gradient(90deg, transparent 49.5%, rgba(255, 253, 247, 0.12) 49.6% 49.8%, transparent 49.9%), linear-gradient(0deg, transparent 49.5%, rgba(255, 253, 247, 0.12) 49.6% 49.8%, transparent 49.9%); background-size: 78px 78px; clip-path: polygon(0 0, 100% 0, 100% 63%, 0 91%); }
.hero-inner { justify-content: space-between; padding-top: 96px; padding-bottom: 24px; }
.hero-copy { margin-top: auto; margin-bottom: 19px; }
.screen--hero h1 { max-width: 310px; margin-bottom: 15px; font-size: 56px; line-height: 0.96; }
.hero-copy h1 em { color: var(--red); }
.hero-lede { max-width: 310px; margin-bottom: 15px; color: rgba(255, 253, 247, 0.8); font-size: 14px; line-height: 1.52; }
.hero-note { padding-left: 12px; border-left: 2px solid var(--red); color: #f4b169; font-family: var(--serif); font-size: 17px; line-height: 1.3; }
.hero-reference { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.hero-reference__rule { width: 24px; height: 1px; flex: 0 0 24px; margin-top: 8px; background: var(--red); }
.hero-reference p { margin: 0; color: rgba(255, 253, 247, 0.72); font-size: 12px; line-height: 1.6; }
.screen-foot { margin: 0; color: rgba(255, 253, 247, 0.47); font: 9px var(--mono); letter-spacing: 0.1em; }

.screen--paper { background: var(--paper); }
.screen--paper::after, .screen--contact::after { content: ""; position: absolute; z-index: -1; right: -22%; bottom: -8%; width: 65vw; height: 43vw; border: 1px solid rgba(21, 42, 53, 0.15); border-radius: 50%; box-shadow: 0 0 0 24px rgba(21, 42, 53, 0.035), 0 0 0 48px rgba(21, 42, 53, 0.025); }
.screen--paper .screen__inner, .screen--blue .screen__inner, .screen--warm .screen__inner, .screen--contact .screen__inner { justify-content: flex-start; padding-top: 105px; }
.entry-list { display: grid; margin-top: 34px; border-top: 1px solid rgba(21, 42, 53, 0.22); }
.entry-item { display: grid; grid-template-columns: 31px 1fr; gap: 13px; align-items: start; padding: 17px 0; border-bottom: 1px solid rgba(21, 42, 53, 0.22); }
.entry-item__num, .route-card__no { color: var(--red); font: 10px var(--mono); }
.entry-item strong { display: block; margin-bottom: 6px; font-size: 17px; font-weight: 650; }
.entry-item p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.entry-item__arrow { color: var(--red); font: 18px var(--serif); }
.callout { display: grid; grid-template-columns: 26px 1fr; gap: 12px; margin-top: auto; padding-top: 27px; }
.callout__line { width: 19px; height: 1px; margin-top: 9px; background: var(--red); }
.callout p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.screen--ink { color: var(--white); background: var(--ink); }
.screen--ink::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 82% 80%, rgba(232, 137, 50, 0.15), transparent 25%); }
.route-cards { display: grid; gap: 8px; margin: 25px 0 17px; }
.route-card { color: var(--white); border: 1px solid rgba(255, 253, 247, 0.22); background: rgba(255, 253, 247, 0.035); transition: background 180ms ease, border-color 180ms ease; }
.route-card:hover, .route-card[open] { background: rgba(255, 253, 247, 0.085); border-color: rgba(232, 137, 50, 0.66); }
.route-card summary { display: grid; grid-template-columns: 28px 1fr 18px; gap: 8px; align-items: center; padding: 12px 13px; cursor: pointer; list-style: none; }
.route-card summary::-webkit-details-marker { display: none; }
.route-card strong { display: block; font-size: 15px; font-weight: 650; line-height: 1.25; }
.route-card small { display: block; margin-top: 4px; color: var(--light-muted); font-size: 10px; line-height: 1.35; }
.route-card__toggle { color: var(--red); font: 20px/1 var(--serif); text-align: right; transition: transform 180ms ease; }
.route-card[open] .route-card__toggle { transform: rotate(45deg); }
.route-card__detail { padding: 0 15px 13px 49px; color: rgba(255, 253, 247, 0.75); font-size: 11px; line-height: 1.45; }
.route-card__detail p { margin: 7px 0 0; }
.route-card__detail b { color: #f4b169; font-weight: 650; }
.route-summary { margin: 0 0 17px; color: var(--light-muted); font-size: 11px; line-height: 1.5; }
.section-note { margin: 0; color: rgba(255, 253, 247, 0.5); font-size: 10px; line-height: 1.5; }

.screen--blue { background: var(--paper); }
.screen--blue::before { content: ""; position: absolute; right: -18%; bottom: 5%; width: 85vw; height: 56vw; border: 1px solid rgba(21, 42, 53, 0.16); border-radius: 50%; transform: rotate(-15deg); }
.timeline { position: relative; display: grid; gap: 0; margin-top: 31px; padding-left: 36px; }
.timeline__line { position: absolute; left: 11px; top: 13px; bottom: 13px; width: 1px; background: rgba(21, 42, 53, 0.28); }
.timeline__item { position: relative; display: grid; grid-template-columns: 55px 1fr; gap: 8px; padding: 0 0 20px; }
.timeline__item::before { content: ""; position: absolute; left: -29px; top: 4px; width: 7px; height: 7px; border: 2px solid var(--red); border-radius: 50%; background: var(--paper); }
.timeline__item b { color: var(--red); font: 10px var(--mono); }
.timeline__item span { font-size: 16px; font-weight: 650; }
.timeline__item small { grid-column: 2; color: var(--muted); font-size: 11px; }
.statement { margin-top: auto; padding-top: 24px; border-top: 1px solid rgba(21, 42, 53, 0.22); }
.statement span, .pull-quote span { display: block; margin-bottom: 8px; color: var(--muted); font: 10px var(--mono); letter-spacing: 0.1em; }
.statement strong { font-family: var(--serif); font-size: 23px; font-weight: 400; line-height: 1.2; letter-spacing: -0.04em; }

.scenario-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 30px; }
.scenario { min-height: 80px; padding: 13px 11px; border: 1px solid rgba(21, 42, 53, 0.18); font-size: 12px; line-height: 1.45; }
.scenario span { display: block; margin-bottom: 9px; color: var(--red); font: 9px var(--mono); }
.pull-quote { margin-top: auto; padding-top: 28px; }
.pull-quote strong { display: block; max-width: 310px; color: var(--red-dark); font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1.15; letter-spacing: -0.05em; }
.pull-quote small { display: block; margin-top: 13px; color: var(--muted); font-size: 11px; }

.screen--warm { background: var(--paper); }
.screen--warm::after { content: "YUHAI"; position: absolute; z-index: -1; right: -14%; bottom: 4%; color: rgba(21, 42, 53, 0.06); font: 27vw/1 var(--mono); letter-spacing: -0.08em; }
.trust-intro { display: grid; gap: 10px; margin: 27px 0; }
.trust-intro p { max-width: 330px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.ability-list { display: grid; gap: 0; border-top: 1px solid rgba(21, 42, 53, 0.23); }
.ability-list > div { display: grid; grid-template-columns: 28px 1fr; gap: 9px; padding: 15px 0; border-bottom: 1px solid rgba(21, 42, 53, 0.23); }
.ability-list b { color: var(--red); font: 10px var(--mono); }
.ability-list strong { font-size: 14px; font-weight: 650; }
.ability-list p { grid-column: 2; margin: -2px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }

.method-list { display: grid; gap: 0; margin: 29px 0 25px; border-top: 1px solid rgba(255, 253, 247, 0.22); }
.method-list > div { display: grid; grid-template-columns: 30px 1fr; gap: 7px; padding: 15px 0; border-bottom: 1px solid rgba(255, 253, 247, 0.22); }
.method-list span { color: #f1b35b; font: 10px var(--mono); }
.method-list strong { font-size: 15px; font-weight: 600; }
.method-list p { grid-column: 2; margin: -1px 0 0; color: var(--light-muted); font-size: 11px; line-height: 1.45; }

.screen--contact { background: var(--paper); }
.contact-shape { position: absolute; z-index: -1; right: -23%; top: 18%; width: 74vw; height: 56vw; border: 1px solid rgba(199, 91, 69, 0.3); border-radius: 50%; transform: rotate(27deg); box-shadow: 0 0 0 20px rgba(199, 91, 69, 0.035), 0 0 0 40px rgba(199, 91, 69, 0.025); }
.contact-box { margin: 28px 0 24px; padding: 17px 17px 19px; background: var(--ink); color: var(--white); }
.contact-box p { margin-bottom: 8px; color: var(--light-muted); font-size: 12px; }
.contact-box strong { font-family: var(--serif); font-size: 25px; font-weight: 400; line-height: 1.2; letter-spacing: -0.05em; }
.contact-box small { display: block; margin-top: 14px; color: var(--light-muted); font-size: 10px; line-height: 1.55; }
.contact-links { display: flex; justify-content: space-between; margin-top: 17px; font-size: 12px; }
.contact-links a { color: var(--red-dark); text-underline-offset: 4px; }
.legal-note { margin: auto 0 0; color: rgba(21, 42, 53, 0.52); font-size: 10px; line-height: 1.55; }

.button { display: inline-flex; align-items: center; justify-content: space-between; width: min(100%, 294px); padding: 15px 17px; border: 1px solid transparent; font-size: 12px; font-weight: 700; line-height: 1.2; text-decoration: none; letter-spacing: 0.035em; transition: transform 180ms ease, background 180ms ease, color 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button span { font: 18px var(--serif); }
.button--primary { color: var(--white); background: var(--red); }
.button--primary:hover { background: var(--red-dark); }
.button--outline { color: var(--white); border-color: rgba(255, 253, 247, 0.38); }
.button--outline:hover { background: rgba(255, 253, 247, 0.09); }
.button--wide { width: 100%; }
.text-link { width: fit-content; color: rgba(255, 253, 247, 0.82); font-size: 12px; text-underline-offset: 5px; }
.text-link span { color: #f4b169; font-size: 17px; }

@media (min-width: 720px) {
  .shell { width: 430px; margin: 0 auto; box-shadow: 0 0 80px rgba(21, 42, 53, 0.21); }
  .page-nav { right: calc(50% - 228px); }
}
@media (max-height: 700px) {
  .screen__inner { padding-top: 66px; padding-bottom: 24px; }
  .screen--paper .screen__inner, .screen--blue .screen__inner, .screen--warm .screen__inner, .screen--contact .screen__inner { padding-top: 86px; }
  h1 { font-size: 48px; }
  h2 { font-size: 41px; }
  .entry-list, .route-cards, .timeline, .scenario-grid, .method-list { margin-top: 18px; }
  .entry-item { padding: 11px 0; }
  .route-card summary { padding-top: 10px; padding-bottom: 10px; }
  .route-card__detail { padding-bottom: 10px; }
  .scenario { min-height: 68px; }
  .timeline__item { padding-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
