:root {
  --navy: #0f2a47;
  --navy-deep: #081c31;
  --violet: #7263a8;
  --gold: #f2b35b;
  --orange: #f27c38;
  --cream: #fffdf8;
  --blush: #ffe8ee;
  --sky: #8ecff5;
  --ink: #172636;
  --muted: #607080;
  --line: rgba(15, 42, 71, 0.14);
  --serif: "Iowan Old Style", "Songti TC", "Noto Serif TC", serif;
  --sans: "Avenir Next", "PingFang TC", "Noto Sans TC", sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: var(--sans); line-height: 1.7; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .75rem 1rem; background: white; color: var(--navy); }
.skip-link:focus { top: 1rem; }

.site-header { position: fixed; z-index: 50; inset: 0 0 auto; height: 78px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; padding: 0 clamp(1.2rem, 4vw, 4.5rem); color: white; background: rgba(8, 28, 49, .9); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,.1); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; line-height: 1.1; }
.brand-logo { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; object-fit: contain; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: var(--serif); letter-spacing: .06em; }
.brand small { margin-top: .28rem; color: rgba(255,255,255,.6); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; }
nav { display: flex; justify-content: center; gap: clamp(1rem, 2.5vw, 2.5rem); }
nav a { position: relative; color: rgba(255,255,255,.8); font-size: .86rem; text-decoration: none; }
nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.4rem; height: 1px; background: var(--gold); transition: right .25s ease; }
nav a:hover::after, nav a:focus-visible::after { right: 0; }
.language-switch { display: flex; gap: .35rem; align-items: center; color: rgba(255,255,255,.45); }
.language-switch button { padding: .3rem; border: 0; background: transparent; color: rgba(255,255,255,.55); cursor: pointer; }
.language-switch button[aria-pressed="true"] { color: var(--gold); }
.menu-button { display: none; }

.hero { position: relative; min-height: 100svh; overflow: hidden; display: grid; place-items: center; padding: 130px max(5vw, calc((100vw - var(--max))/2)) 80px; color: white; background: radial-gradient(circle at 50% 46%, rgba(242,179,91,.2), transparent 32%), linear-gradient(125deg, var(--navy-deep) 0%, var(--navy) 68%, #183d60 100%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to right, black, transparent 85%); }
.sun-orbit { position: absolute; width: min(58vw, 760px); aspect-ratio: 1; left: 50%; top: 50%; border: 1px solid rgba(242,179,91,.28); border-radius: 50%; box-shadow: 0 0 0 70px rgba(242,179,91,.035), 0 0 0 140px rgba(242,179,91,.025); transform: translate(-50%, -50%); }
.hero-copy { position: relative; z-index: 2; }
.hero-copy { animation: reveal .9s ease both; }
.hero-copy-centered { width: 100%; max-width: 1120px; text-align: center; }
.visually-hidden { position: absolute !important; overflow: hidden; width: 1px; height: 1px; padding: 0; margin: -1px; border: 0; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { margin: 0 0 1.1rem; color: var(--violet); font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.hero .eyebrow { color: var(--gold); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.18; }
.hero-slogan-image { max-width: 520px; margin: 0 auto; }
.hero-slogan-image img { width: 100%; height: auto; filter: drop-shadow(0 12px 28px rgba(0,0,0,.2)); }
.hero-english-slogan { margin: 1.5rem 0 0; color: rgba(255,255,255,.5); font: 500 clamp(.95rem, 1.6vw, 1.3rem) var(--serif); letter-spacing: .08em; }
html[lang="zh-Hant"] .hero-english-slogan { display: none; }
.hero-actions { display: flex; justify-content: center; gap: .9rem; margin-top: 2.8rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: .75rem 1.55rem; border: 1px solid transparent; border-radius: 999px; font-weight: 700; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--orange); color: white; box-shadow: 0 12px 35px rgba(242,124,56,.25); }
.button-ghost { border-color: rgba(255,255,255,.35); color: white; }
.scroll-cue { position: absolute; z-index: 3; left: max(5vw, calc((100vw - var(--max))/2)); bottom: 2rem; display: flex; gap: .7rem; align-items: center; color: rgba(255,255,255,.5); font-size: .68rem; letter-spacing: .15em; text-decoration: none; }
.scroll-cue i { display: block; width: 44px; height: 1px; background: var(--gold); }

.section { padding: clamp(5rem, 9vw, 8.5rem) max(5vw, calc((100vw - var(--max))/2)); }
.section-heading { max-width: 760px; margin-bottom: 3.4rem; }
h2 { margin: 0; color: var(--navy); font-size: clamp(2.25rem, 4vw, 4.4rem); font-weight: 600; letter-spacing: -.025em; text-wrap: balance; }
.about-grid { display: grid; grid-template-columns: 1fr .85fr; gap: clamp(3rem, 8vw, 7rem); align-items: center; }
.about-story .lead { margin-top: 0; color: var(--navy); font: 500 clamp(1.35rem, 2.2vw, 2rem) / 1.55 var(--serif); }
.about-story > p:not(.lead) { color: var(--muted); }
.identity-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 2.6rem; background: var(--line); border-block: 1px solid var(--line); }
.identity-strip span { padding: 1.15rem .7rem; background: var(--cream); }
.identity-strip b, .identity-strip small { display: block; }
.identity-strip b { color: var(--orange); font: 600 1.65rem var(--serif); }
.identity-strip small { color: var(--muted); font-size: .7rem; }
.photo-frame { position: relative; margin: 0; }
.photo-frame::before { content: ""; position: absolute; inset: -18px 30px 20px -18px; border: 1px solid var(--gold); border-radius: 48% 48% 6px 6px; }
.photo-frame img { position: relative; aspect-ratio: 4/5; object-fit: cover; border-radius: 48% 48% 6px 6px; filter: saturate(.88) contrast(.96); }
.photo-frame figcaption { position: relative; margin-top: 1rem; color: var(--muted); font-size: .78rem; }

.work { background: #f3f0e8; }
.split-heading { max-width: none; display: grid; grid-template-columns: 1.2fr .8fr; gap: 5rem; align-items: end; }
.split-heading > p { margin: 0 0 .5rem; color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 470px; gap: 1rem; }
.service-card { position: relative; overflow: hidden; min-width: 0; color: white; background: var(--navy); }
.service-card-wide { grid-column: span 2; }
.service-card img, .service-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.service-card img { object-fit: cover; transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.service-overlay { background: linear-gradient(to top, rgba(8,28,49,.96), rgba(8,28,49,.06) 70%); }
.service-content { position: absolute; inset: auto 0 0; padding: 1.6rem; }
.service-number { position: absolute; right: 1.5rem; bottom: 1.1rem; color: rgba(255,255,255,.1); font: 600 4.7rem var(--serif); }
.service-card time { display: inline-block; padding: .28rem .65rem; color: var(--navy-deep); background: var(--gold); border-radius: 999px; font-size: .68rem; font-weight: 700; }
.service-card h3 { position: relative; margin: .8rem 0 .45rem; font-size: 1.55rem; }
.service-card p { position: relative; max-width: 540px; margin: 0; color: rgba(255,255,255,.78); font-size: .86rem; opacity: 1; }
.service-card:hover img, .service-card:focus-within img { transform: scale(1.05); }

.legal { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(3rem, 8vw, 7rem); align-items: center; background: var(--navy); color: white; }
.legal h2 { color: white; }
.legal-intro > p:not(.eyebrow) { color: rgba(255,255,255,.66); }
.legal dl { margin-top: 2.4rem; border-top: 1px solid rgba(255,255,255,.14); }
.legal dl div { padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.legal dt { color: var(--gold); font-size: .72rem; }
.legal dd { margin: .22rem 0 0; font-family: var(--serif); }
.documents { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; width: min(100%, 460px); margin: 0 auto; align-items: start; }
.document-card { position: relative; display: block; background: white; box-shadow: 0 22px 50px rgba(0,0,0,.25); text-decoration: none; transition: transform .25s ease; }
.document-card:hover { transform: translateY(-6px) rotate(-1deg); }
.document-card.offset { transform: none; }
.document-card.offset:hover { transform: translateY(-6px) rotate(1deg); }
.document-card img { width: 100%; height: 260px; aspect-ratio: auto; object-fit: contain; }
.document-card span { display: block; padding: .8rem; color: var(--navy); font-size: .72rem; text-align: center; }

.news { position: relative; overflow: hidden; text-align: center; background: var(--blush); }
.news h2 { margin-inline: auto; max-width: 780px; }
.news > p:not(.eyebrow) { max-width: 600px; margin: 1.25rem auto; color: var(--muted); }
.news-symbol { position: absolute; left: 5%; top: -25%; color: rgba(242,124,56,.09); font: 300 28rem/1 var(--serif); transform: rotate(15deg); }
.text-link { display: inline-flex; gap: .5rem; align-items: center; padding-bottom: .2rem; border-bottom: 1px solid currentColor; color: var(--orange); font-weight: 700; text-decoration: none; }

.support { display: grid; grid-template-columns: 1fr 1fr; padding-block: 0; }
.donation-panel, .contact-panel { padding: clamp(3.5rem, 6vw, 6rem); }
.donation-panel { margin-left: min(-5vw, calc((var(--max) - 100vw)/2)); padding-left: max(5vw, calc((100vw - var(--max))/2)); color: white; background: var(--orange); }
.donation-panel h2 { color: white; }
.donation-panel .eyebrow { color: var(--navy-deep); }
.donation-panel > p:not(.eyebrow) { color: rgba(255,255,255,.8); }
.donation-details { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0; }
.donation-details div { padding: 1rem; border: 1px solid rgba(255,255,255,.28); }
.donation-details span, .donation-details strong, .donation-details small { display: block; }
.donation-details span, .donation-details small { font-size: .7rem; }
.donation-details strong { margin: .25rem 0; font: 600 1.8rem var(--serif); }
.button-light { color: var(--orange); background: white; }
.contact-panel { margin-right: min(-5vw, calc((var(--max) - 100vw)/2)); padding-right: max(5vw, calc((100vw - var(--max))/2)); background: white; }
.contact-panel address { margin: 1.4rem 0 2rem; font-style: normal; }
.contact-panel address a { display: grid; grid-template-columns: 5rem 1fr; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.contact-panel address span { color: var(--violet); font-size: .73rem; font-weight: 700; }
.contact-panel address strong { font-size: .86rem; overflow-wrap: anywhere; }
.map-wrap { overflow: hidden; height: 220px; border-radius: 2px; background: #eee; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

footer { display: grid; grid-template-columns: 1fr auto auto; gap: 2rem; align-items: center; padding: 2rem max(5vw, calc((100vw - var(--max))/2)); color: rgba(255,255,255,.58); background: var(--navy-deep); font-size: .72rem; }
.footer-brand { display: flex; align-items: center; gap: .8rem; color: white; }
.footer-brand .brand-logo { width: 52px; height: 52px; }
.footer-brand p, footer > p { margin: 0; }
.footer-brand strong, .footer-brand small { display: block; }
.footer-brand small { color: rgba(255,255,255,.45); }
html[lang="en"] .footer-brand small { display: none; }

@keyframes reveal { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto auto; height: 68px; padding-inline: 1rem; }
  .brand strong { font-size: .82rem; }
  .menu-button { display: block; padding: .4rem .7rem; border: 1px solid rgba(255,255,255,.3); color: white; background: transparent; }
  nav { position: fixed; inset: 68px 0 auto; display: none; flex-direction: column; gap: 0; padding: 1rem; background: var(--navy-deep); }
  nav.is-open { display: flex; }
  nav a { padding: .8rem; }
  .hero { min-height: 760px; padding: 120px 7vw 100px; }
  .hero-slogan-image { max-width: 430px; }
  .hero-copy { max-width: 680px; }
  .about-grid, .legal { grid-template-columns: 1fr; }
  .split-heading { grid-template-columns: 1fr; gap: 1.2rem; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-card-wide { grid-column: span 1; }
  .support { grid-template-columns: 1fr; padding-inline: 0; }
  .donation-panel, .contact-panel { margin: 0; padding-inline: 7vw; }
  footer { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .brand small { display: none; }
  .brand-logo { width: 40px; height: 40px; }
  .language-switch span { display: none; }
  .language-switch button { font-size: .72rem; }
  .section { padding-inline: 6vw; }
  .hero-actions { align-items: stretch; flex-direction: column; max-width: 280px; }
  .identity-strip { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; grid-auto-rows: 460px; }
  .documents { gap: .65rem; }
  .document-card img { height: 190px; }
  .donation-details { grid-template-columns: 1fr; }
  .contact-panel address a { grid-template-columns: 1fr; gap: .15rem; }
}
