:root {
  --bg: #f3f1ee;
  --surface-1: #e9e6e2;
  --surface-2: #d8d5d1;
  --ink: #292c2f;
  --ink-soft: #666a6e;
  --campaign: #25272a;
  --campaign-text: #f2f0ec;
  --accent: #5b6572;
  --accent-on-dark: #aeb8c4;
  --line: rgb(41 44 47 / 16%);
  --line-on-dark: rgb(242 240 236 / 28%);
  --nav-height: 72px;
  --serif: "Noto Serif TC", "Source Han Serif TC", "Songti TC", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-width: 320px; overflow-x: hidden; color: var(--ink); background: var(--bg); font-family: var(--sans); font-size: 17px; line-height: 1.8; letter-spacing: .01em; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, p { margin: 0; }
.shell { width: min(100% - 128px, 1312px); margin-inline: auto; }
.shell-wide { width: calc(100% - 128px); max-width: 1312px; margin-inline: auto; }

.site-header { height: var(--nav-height); border-bottom: 1px solid var(--line); background: var(--bg); position: relative; z-index: 50; }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand, .footer-brand { font-family: var(--serif); font-weight: 600; letter-spacing: .1em; }
.brand { font-size: 18px; }
.nav-links { display: flex; align-items: center; gap: 44px; font-size: 14px; font-weight: 500; line-height: 1; letter-spacing: .04em; }
.nav a, .footer-links a { position: relative; }
.nav a::after, .footer-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 1px; background: var(--accent); transition: right 180ms ease; }
.nav a:hover::after, .nav a:focus-visible::after, .footer-links a:hover::after, .footer-links a:focus-visible::after { right: 0; }
.nav a:active, .footer-links a:active, .text-link:active, .menu-toggle:active { transform: translateY(1px); }
.menu-toggle, .mobile-menu { display: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

.hero { position: relative; min-height: max(640px, calc(100svh - var(--nav-height))); overflow: hidden; isolation: isolate; }
.hero-photo { position: absolute; inset: 0; z-index: -3; opacity: 0; animation: hero-photo-in 900ms cubic-bezier(.22, 1, .36, 1) forwards; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0 25%, rgb(243 241 238 / 80%) 36%, transparent 63%); pointer-events: none; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 56% 48%; filter: saturate(.72) contrast(.90) brightness(1.04) blur(2px); transform: scale(1.015); -webkit-mask-image: linear-gradient(90deg, transparent 0 24%, #000 58% 100%); mask-image: linear-gradient(90deg, transparent 0 24%, #000 58% 100%); }
.hero-copy { position: absolute; z-index: 5; left: max(80px, calc((100vw - 1312px) / 2 + 16px)); top: 17.8%; width: 500px; opacity: 0; transform: translateY(14px); animation: hero-copy-in 620ms cubic-bezier(.22, 1, .36, 1) forwards; }
.eyebrow { font-size: 13px; font-weight: 500; line-height: 1.4; letter-spacing: .16em; }
.hero h1 { margin-top: 24px; font: 500 clamp(80px, 7.2vw, 106px)/.98 var(--serif); letter-spacing: .05em; white-space: nowrap; }
.latin-name { margin-top: 20px; font-size: 14px; font-weight: 500; line-height: 1.4; letter-spacing: .22em; }
.roles { margin-top: 32px; color: var(--ink-soft); font-size: 17px; line-height: 1.8; }
.roles p + p { margin-top: 6px; }
.text-link { display: inline-block; margin-top: 36px; color: var(--accent); font-size: 14px; font-weight: 500; letter-spacing: .08em; border-bottom: 1px solid currentColor; padding-bottom: 7px; transition: padding-right 180ms ease; }
.text-link:hover, .text-link:focus-visible { padding-right: 12px; }
.hero-doctor { position: absolute; z-index: 2; width: 365px; height: 814px; left: max(54.2vw, calc(50% + 60px)); bottom: 0; opacity: 0; transform: translateY(18px); animation: hero-doctor-in 700ms 90ms cubic-bezier(.22, 1, .36, 1) forwards; }
.doctor-slot svg { display: block; width: 100%; height: 100%; overflow: hidden; }
.hero-doctor > svg { position: relative; z-index: 2; }
.rim-light { position: absolute; inset: 0; z-index: 1; opacity: .30; transform: translate(8px, -3px); filter: brightness(0) invert(1) blur(7px); -webkit-mask-image: linear-gradient(90deg, transparent 0 53%, #000 72% 100%); mask-image: linear-gradient(90deg, transparent 0 53%, #000 72% 100%); }
.hero-floor { position: absolute; z-index: 1; width: 160px; height: 18px; left: calc(max(54.2vw, calc(50% + 60px)) + 100px); bottom: 2px; border-radius: 50%; background: rgb(41 44 47 / 10%); filter: blur(18px); }
@keyframes hero-photo-in { from { opacity: .86; transform: scale(1.015); } to { opacity: 1; transform: scale(1); } }
@keyframes hero-copy-in { to { opacity: 1; transform: translateY(0); } }
@keyframes hero-doctor-in { to { opacity: 1; transform: translateY(0); } }

.topics { position: relative; min-height: 1020px; padding-top: 216px; overflow: hidden; }
.topics-intro { position: relative; z-index: 5; padding-left: 32px; }
.topics h2, .articles h2, .locations h2 { font: 500 64px/1.1 var(--serif); letter-spacing: .015em; }
.topics-intro > p { max-width: 560px; margin-top: 32px; color: var(--ink-soft); }
.topic-stage { position: relative; height: 600px; margin-top: 48px; }
.topic-panel { position: absolute; border: 1px solid var(--line); border-radius: 2px; }
.topic-panel > div { position: absolute; }
.topic-panel h3 { font: 500 44px/1.12 var(--serif); letter-spacing: .01em; }
.topic-panel p { margin-top: 20px; color: var(--ink-soft); }
.topic-panel span { display: inline-block; margin-top: 36px; color: var(--accent); font-size: 13px; font-weight: 500; line-height: 1.5; letter-spacing: .08em; border-bottom: 1px solid currentColor; padding-bottom: 6px; }
.topic-panel-a { z-index: 1; left: 0; top: 70px; width: 48.5%; height: 430px; background: var(--surface-1); }
.topic-panel-a > div { left: 48px; bottom: 64px; width: 320px; }
.topic-panel-b { z-index: 1; right: 0; top: -10px; width: 41%; height: 490px; background: var(--surface-2); }
.topic-panel-b > div { right: 56px; top: 80px; width: 310px; }
.topic-doctor { position: absolute; z-index: 2; left: 38.2%; top: -40px; width: 390px; height: 540px; pointer-events: none; }
.topic-doctor::after { content: ""; position: absolute; z-index: 3; left: 15%; right: 15%; bottom: -2px; height: 70px; background: linear-gradient(0deg, var(--bg), transparent); }

.articles { padding: 144px 96px 132px; }
.article-inner { max-width: 1248px; margin-inline: auto; }
.article-list { margin-top: 72px; border-top: 1px solid var(--line); }
.article-row { min-height: 148px; display: grid; grid-template-columns: 180px minmax(0, 1fr) 32px; align-items: center; column-gap: 28px; border-bottom: 1px solid var(--line); }
.article-meta { display: flex; flex-direction: column; gap: 6px; color: var(--ink-soft); font-size: 13px; font-weight: 500; line-height: 1.5; letter-spacing: .08em; }
.article-copy h3 { font: 500 30px/1.35 var(--serif); letter-spacing: .005em; }
.article-copy p { max-width: 62ch; margin-top: 8px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.article-arrow { font-size: 22px; }
.mobile-arrow { display: none; }
.all-articles { margin-top: 48px; text-align: right; color: var(--accent); font-size: 13px; font-weight: 500; letter-spacing: .08em; }

.locations { position: relative; height: 820px; overflow: hidden; isolation: isolate; color: var(--campaign-text); background: var(--campaign); opacity: .94; transition: opacity 500ms ease; }
.locations.is-visible { opacity: 1; }
.locations-photo { position: absolute; z-index: -4; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; filter: saturate(.62) contrast(1.06) brightness(.72); }
.locations-scrim { position: absolute; z-index: -3; inset: 0; background: rgb(37 39 42 / 54%); }
.locations-doctor { position: absolute; z-index: -2; width: 900px; height: 820px; left: 50%; top: 0; transform: translateX(-50%); filter: saturate(.68) brightness(.74) contrast(1.04); }
.locations-veil { position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, transparent 34%, rgb(37 39 42 / 12%) 47%, rgb(37 39 42 / 38%) 100%), radial-gradient(ellipse 42% 38% at 50% 67%, rgb(37 39 42 / 34%), transparent 76%); }
.locations-copy { position: absolute; z-index: 2; inset: 0; text-align: center; }
.locations-en { position: absolute; top: 408px; width: 100%; color: var(--accent-on-dark); font-size: 13px; font-weight: 500; line-height: 1.5; letter-spacing: .18em; }
.locations h2 { position: absolute; top: 452px; width: 100%; color: var(--campaign-text); }
.clinic-list { position: absolute; top: 590px; left: 50%; width: min(760px, calc(100% - 80px)); transform: translateX(-50%); display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 68px; }
.clinic-list p { padding: 0 40px; font: 500 18px/1.6 var(--serif); letter-spacing: .03em; }
.clinic-list p + p { border-left: 1px solid var(--line-on-dark); }
.location-note { position: absolute; top: 672px; width: 100%; color: var(--accent-on-dark); font-size: 12px; font-weight: 500; letter-spacing: .08em; }
.schedule-label { position: absolute; top: 706px; left: 50%; width: 144px; height: 48px; transform: translateX(-50%); display: grid; place-items: center; border: 1px solid rgb(242 240 236 / 64%); border-radius: 2px; font-size: 13px; font-weight: 500; letter-spacing: .1em; }

.footer { height: 200px; border-top: 1px solid var(--line); background: var(--surface-1); }
.footer-inner { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.footer-brand { font-size: 20px; }
.footer-links { display: flex; align-items: center; gap: 36px; font-size: 13px; font-weight: 500; letter-spacing: .04em; }
.footer-links span { color: var(--ink-soft); }
.copyright { justify-self: end; color: var(--ink-soft); font-size: 12px; letter-spacing: .06em; }

@media (min-width: 768px) and (max-width: 1199px) {
  :root { --nav-height: 64px; }
  body { font-size: 16px; }
  .shell { width: calc(100% - 80px); }
  .shell-wide { width: calc(100% - 80px); }
  .hero-copy { left: 48px; top: 15.9%; width: 382px; }
  .eyebrow { font-size: 12px; }
  .hero h1 { font-size: 72px; }
  .latin-name { font-size: 13px; }
  .hero-photo img { object-position: 62% 48%; }
  .hero-doctor { width: 310px; height: 664px; left: 51.75vw; }
  .hero-floor { left: calc(51.75vw + 84px); width: 136px; }
  .topics { min-height: 920px; padding-top: 184px; }
  .topics-intro { padding-left: 8px; }
  .topics h2, .articles h2, .locations h2 { font-size: 52px; }
  .topic-stage { height: 540px; margin-top: 46px; }
  .topic-panel h3 { font-size: 38px; }
  .topic-panel-a { top: 60px; width: 47.7%; height: 390px; }
  .topic-panel-a > div { left: 32px; bottom: 52px; width: 228px; }
  .topic-panel-b { top: 0; width: 38.6%; height: 440px; }
  .topic-panel-b > div { right: 44px; top: 78px; width: 220px; }
  .topic-doctor { left: 36.3%; top: -40px; width: 320px; height: 500px; }
  .articles { padding: 112px 48px; }
  .article-row { min-height: 140px; grid-template-columns: 150px minmax(0, 1fr) 32px; }
  .article-copy h3 { font-size: 27px; }
  .locations { height: 720px; }
  .locations-photo { object-position: 55% 56%; }
  .locations-doctor { width: 690px; height: 720px; }
  .locations-en { top: 330px; }
  .locations h2 { top: 370px; }
  .clinic-list { top: 500px; }
  .location-note { top: 600px; }
  .schedule-label { top: 640px; }
  .footer { height: 180px; }
}

@media (max-width: 767px) {
  :root { --nav-height: 60px; }
  body { font-size: 16px; }
  .shell, .shell-wide { width: calc(100% - 40px); }
  .site-header { position: relative; }
  .nav-links { display: none; }
  .brand { font-size: 17px; }
  .menu-toggle { display: inline-grid; place-items: center; min-width: 52px; min-height: 44px; padding: 0; border: 0; color: var(--ink); background: transparent; font-size: 13px; font-weight: 500; letter-spacing: .08em; cursor: pointer; }
  .mobile-menu { position: absolute; z-index: 100; top: var(--nav-height); left: 0; right: 0; display: grid; padding: 8px 20px; border-block: 1px solid var(--line); background: var(--bg); opacity: 0; transform: translateY(-8px); transition: opacity 180ms ease, transform 180ms ease; }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu.is-open { opacity: 1; transform: translateY(0); }
  .mobile-menu a { min-height: 52px; display: flex; align-items: center; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 500; }
  .mobile-menu a:last-child { border: 0; }
  .hero { min-height: calc(100svh - var(--nav-height)); }
  .hero-copy { left: 20px; top: 45px; width: calc(100% - 40px); }
  .eyebrow { font-size: 12px; }
  .hero h1 { margin-top: 18px; font-size: 54px; }
  .latin-name { margin-top: 14px; font-size: 12px; }
  .roles { margin-top: 18px; font-size: 14px; line-height: 1.55; }
  .roles p + p { margin-top: 3px; }
  .text-link { margin-top: 18px; font-size: 13px; padding-bottom: 5px; }
  .hero-photo::after { background: linear-gradient(180deg, var(--bg) 0 35%, rgb(243 241 238 / 82%) 48%, transparent 69%); }
  .hero-photo img { object-position: 72% 46%; filter: saturate(.72) contrast(.90) brightness(1.04) blur(1px); -webkit-mask-image: linear-gradient(180deg, transparent 0 34%, #000 66% 100%); mask-image: linear-gradient(180deg, transparent 0 34%, #000 66% 100%); }
  .hero-doctor { width: min(350px, calc(100vw - 40px)); height: 603px; left: 50%; bottom: -4px; transform: translate(-50%, 18px); }
  .hero-doctor > svg, .hero-doctor .rim-light { transform: none; }
  .rim-light { opacity: .24; transform: translate(8px, -3px); }
  .hero-floor { width: 150px; left: 50%; bottom: 1px; transform: translateX(-50%); }
  @keyframes hero-doctor-in { to { opacity: 1; transform: translate(-50%, 0); } }
  .topics { min-height: 0; padding: 88px 20px; overflow: visible; }
  .topics-intro { width: 100%; padding: 0; }
  .topics h2, .articles h2, .locations h2 { font-size: 40px; }
  .topics h2 span { display: block; }
  .topics-intro > p { margin-top: 24px; }
  .topic-stage { width: 100%; height: auto; margin-top: 40px; display: flex; flex-direction: column; }
  .topic-doctor { position: relative; inset: auto; order: 1; align-self: center; width: min(330px, calc(100vw - 40px)); height: 462px; }
  .topic-panel { position: relative; inset: auto; width: 100%; height: 240px; }
  .topic-panel-a { order: 2; margin-top: 24px; }
  .topic-panel-b { order: 3; margin-top: 16px; }
  .topic-panel > div { position: static; width: auto; padding: 32px; }
  .topic-panel h3 { font-size: 32px; }
  .topic-panel p { margin-top: 14px; }
  .topic-panel span { margin-top: 22px; }
  .articles { padding: 96px 20px; }
  .article-list { margin-top: 48px; }
  .article-row { min-height: 0; display: block; padding: 28px 0; }
  .article-meta { flex-direction: row; justify-content: space-between; }
  .article-copy { margin-top: 12px; }
  .article-title-line { display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 16px; align-items: start; }
  .article-copy h3 { font-size: 25px; }
  .article-copy p { margin-top: 14px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .article-arrow { display: none; }
  .mobile-arrow { display: block; font-size: 20px; line-height: 1.4; }
  .all-articles { margin-top: 36px; }
  .locations { height: auto; min-height: 760px; }
  .locations-photo { object-position: 68% 50%; }
  .locations-doctor { width: 720px; height: 760px; }
  .locations-veil { background: linear-gradient(180deg, transparent 32%, rgb(37 39 42 / 20%) 45%, rgb(37 39 42 / 58%) 100%), radial-gradient(ellipse 72% 34% at 50% 67%, rgb(37 39 42 / 48%), transparent 78%); }
  .locations-en { top: 344px; font-size: 12px; }
  .locations h2 { top: 376px; }
  .clinic-list { top: 492px; width: calc(100% - 40px); display: flex; flex-direction: column; gap: 22px; min-height: 0; }
  .clinic-list p { padding: 0; font-size: 16px; }
  .clinic-list p + p { border-left: 0; }
  .desktop-break { display: none; }
  .location-note { top: 618px; font-size: 12px; }
  .schedule-label { top: 680px; }
  .footer { height: 240px; }
  .footer-inner { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px; }
  .footer-links { flex-wrap: wrap; gap: 14px 24px; }
  .copyright { margin-top: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0ms !important; transition-duration: 0ms !important; }
  .hero-photo, .hero-copy, .hero-doctor { opacity: 1; transform: none; }
  @media (max-width: 767px) { .hero-doctor { transform: translateX(-50%); } }
}

html[data-qa="true"] { scroll-behavior: auto; }
html[data-qa="true"] *, html[data-qa="true"] *::before, html[data-qa="true"] *::after { animation-duration: 0ms !important; transition-duration: 0ms !important; }
html[data-qa="true"] .hero-photo, html[data-qa="true"] .hero-copy, html[data-qa="true"] .hero-doctor { opacity: 1; transform: none; }
@media (max-width: 767px) { html[data-qa="true"] .hero-doctor { transform: translateX(-50%); } }
