@font-face { font-family: "WISE Serif"; src: url("assets/fonts/noto-serif-sc-wise.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 32px 20px 20px; color: #0b2f6b; background: radial-gradient(ellipse at 50% 0, #c9defa, transparent 65%), linear-gradient(145deg, #edf5ff, #f9fbff); font: 16px/1.6 Arial, sans-serif; }
.entry-shell { width: min(680px, 100%); margin: auto; overflow: hidden; border: 1px solid #d2e1f5; border-radius: 30px; background: #fff; box-shadow: 0 24px 70px rgba(11,47,107,.12); text-align: center; }
.entry-brand { padding: 38px 32px 28px; background: radial-gradient(ellipse at 50% 0, #e5f0ff, transparent 75%); }
.entry-identity { width: min(420px, 100%); aspect-ratio: 1.5; margin: 0 auto; padding: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px solid #a8c5eb; border-radius: 16px; }
.entry-logo { width: 236px; margin: 0 auto -12px; }
/* Blend the original white-backed artwork into the page without redrawing the logo. */
.entry-logo img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
h1 { margin: 0; font-size: 2rem; line-height: 1.3; letter-spacing: .045em; }
h1 span { display: block; margin-top: 1px; font: 800 1.7rem/1.4 "WISE Serif", serif; letter-spacing: 0; }
.entry-tagline { margin: 28px 0 0; color: #0b2f6b; font: 900 1.35rem/1.8 "WISE Serif", serif; white-space: nowrap; letter-spacing: -.025em; }
.entry-tagline-en { margin: 10px 0 0; color: #5b6f89; font-size: .93rem; line-height: 1.6; }
.entry-choice { max-width: 540px; margin: 0 auto; padding: 22px 30px 36px; }
h2 { margin: 0 0 20px; font: 800 1.35rem/1.5 "WISE Serif", serif; }
h2 span, h2 small { display: block; }
h2 small { margin-top: 4px; color: #657993; font: 400 .9rem/1.5 Arial, sans-serif; }
.entry-languages { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.entry-language { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 112px; padding: 20px 12px; border: 1px solid #b5cfee; border-radius: 18px; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.entry-language:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(11,47,107,.15); }
.entry-language:focus-visible { outline: 3px solid #c99a3c; outline-offset: 4px; }
.entry-language-zh, .entry-language-en { color: #0b2f6b; border-color: #a4c6ee; }
.entry-language-zh { background: linear-gradient(180deg, #a9cef7, #edf7ff); }
.entry-language-en { background: linear-gradient(180deg, #edf7ff, #a9cef7); }
.entry-language-name { font-size: 1.6rem; font-weight: 800; line-height: 1.3; }
.entry-language-zh .entry-language-name { font-family: "WISE Serif", serif; }
.entry-footer { margin: 18px 0 0; color: #6b7e9b; text-align: center; font-size: .75rem; }
@media (max-width: 700px) {
  body { padding: 20px 16px 16px; }
  .entry-shell { border-radius: 24px; }
  .entry-brand { padding: 30px 16px 22px; }
  .entry-identity { width: min(290px, 100%); aspect-ratio: 1.4; padding: 14px; border-radius: 14px; }
  .entry-logo { width: 184px; margin-bottom: -10px; }
  h1 { font-size: clamp(1.3rem, 5.3vw, 1.65rem); }
  h1 span { margin-top: 0; font-size: 1.3rem; }
  .entry-tagline { margin-top: 24px; font-size: clamp(.75rem, 3.9vw, 1.35rem); }
  .entry-tagline-en { font-size: .875rem; }
  .entry-choice { padding: 16px 20px 28px; }
  h2 { margin-bottom: 18px; font-size: 1.2rem; }
  .entry-languages { gap: 12px; }
  .entry-language { min-height: 100px; padding: 18px 8px; border-radius: 15px; }
  .entry-language-name { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) { .entry-language { transition: none; } .entry-language:hover { transform: none; } }

/* Responsive progressive welcome; hidden markup leaves the chooser usable without JS. */
.welcome-intro[hidden] { display: none; }
.welcome-active, .welcome-active body { overflow: hidden; }
.welcome-intro { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; overflow: hidden; isolation: isolate; color: #fff; text-align: center; perspective: 1200px; }
.welcome-door { position: absolute; z-index: 0; top: 0; bottom: 0; width: 50.15%; background: radial-gradient(ellipse at 100% 45%, rgba(61,111,176,.3), transparent 70%), linear-gradient(150deg, #173e74, #071c3b 75%); transition: transform 2.2s cubic-bezier(.65,0,.25,1); will-change: transform; }
.welcome-door::before { position: absolute; inset: 22px 14px; content: ""; border: 1px solid rgba(211,224,247,.14); border-radius: 20px; }
.welcome-door-left { left: 0; border-right: 1px solid rgba(232,199,143,.5); transform-origin: left center; }
.welcome-door-right { right: 0; border-left: 1px solid rgba(232,199,143,.5); background: radial-gradient(ellipse at 0 45%, rgba(61,111,176,.3), transparent 70%), linear-gradient(210deg, #173e74, #071c3b 75%); transform-origin: right center; }
.welcome-content { position: relative; z-index: 1; width: min(560px, 100%); padding: 30px 24px 70px; transition: opacity .55s ease .1s, transform .8s ease; }
.welcome-logo { animation: welcome-arrive .9s ease backwards; display: block; width: min(158px, 42vw); height: auto; margin: 0 auto 28px; padding: 10px; background: #fff; border-radius: 20px; box-shadow: 0 14px 40px rgba(0,0,0,.18); }
.welcome-overline { animation: welcome-arrive 1.15s ease 1.05s backwards; margin: 0 0 15px; color: #f0cf94; font: 800 1.1rem/1.6 "WISE Serif", serif; letter-spacing: .12em; }
.welcome-overline span { display: block; margin-top: 2px; font: 700 .68rem/1.5 Arial, sans-serif; letter-spacing: .25em; }
.welcome-content h2 { animation: welcome-arrive 1.2s ease 2.45s backwards; margin: 0; color: #fff; font: 800 clamp(1.45rem, 6vw, 2rem)/1.35 Arial, sans-serif; letter-spacing: .04em; }
.welcome-content h2 span { display: block; margin-top: 12px; font: 800 clamp(1.1rem, 4.8vw, 1.4rem)/1.5 "WISE Serif", serif; letter-spacing: .04em; }
.welcome-skip { position: absolute; z-index: 2; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); left: 50%; min-height: 44px; padding: 10px 20px; color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(218,231,255,.4); border-radius: 999px; font: 500 .8rem/1.4 Arial, sans-serif; transform: translateX(-50%); cursor: pointer; }
.welcome-skip:hover { background: rgba(255,255,255,.14); }
.welcome-skip:focus-visible { outline: 2px solid #f0cf94; outline-offset: 5px; }
.welcome-intro.is-opening .welcome-door-left { transform: translateX(-100%) rotateY(-8deg); }
.welcome-intro.is-opening .welcome-door-right { transform: translateX(100%) rotateY(8deg); }
.welcome-intro.is-opening .welcome-content { opacity: 0; transform: translateY(-8px) scale(.98); }
@keyframes welcome-arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-height: 560px) { .welcome-logo { width: 100px; margin-bottom: 14px; } .welcome-overline { margin-bottom: 8px; } .welcome-content { padding-bottom: 58px; } .welcome-content h2 span { margin-top: 6px; } .welcome-skip { bottom: 12px; } }
@media (prefers-reduced-motion: reduce) { .welcome-door, .welcome-content, .welcome-logo, .welcome-overline, .welcome-content h2 { animation: none; transition: none; } }
.welcome-intro.is-opening .welcome-skip { opacity: 0; transition: opacity .3s ease; }

#languageTitle:focus { outline: none; }

@media (min-width: 761px) {
 .welcome-logo { width: 200px; margin-bottom: 32px; }
 .welcome-content h2 { font-size: 2.2rem; }
 .welcome-content h2 span { font-size: 1.5rem; }
}

@media (max-width: 760px) {
 .welcome-content { position: absolute; inset: 0; width: 100%; padding: 0; }
 .welcome-logo { position: absolute; top: calc(50% - 190px); left: 50%; margin: 0; transform: translateX(-50%); animation-name: welcome-logo-arrive; }
 .welcome-overline { position: absolute; top: 50%; left: 0; width: 100%; margin: 0; transform: translateY(-50%); animation-name: welcome-mid-arrive; }
 .welcome-content h2 { position: absolute; top: calc(50% + 56px); left: 0; width: 100%; padding: 0 20px; }
}
@media (max-width: 760px) and (max-height: 560px) {
 .welcome-logo { top: calc(50% - 150px); }
 .welcome-content h2 { top: calc(50% + 40px); font-size: 1.3rem; }
 .welcome-content h2 span { font-size: 1rem; }
}
@keyframes welcome-logo-arrive { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes welcome-mid-arrive { from { opacity: 0; transform: translateY(calc(-50% + 12px)); } to { opacity: 1; transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) { .welcome-logo, .welcome-overline { animation: none; } }

/* Keep the requested desktop entrance visible in both system motion modes. */
.welcome-desktop-pace .welcome-logo { animation: welcome-arrive .8s ease backwards; }
.welcome-desktop-pace .welcome-overline { animation: welcome-arrive .9s ease .85s backwards; }
.welcome-desktop-pace .welcome-content h2 { animation: welcome-arrive 1s ease 1.8s backwards; }
.welcome-desktop-pace .welcome-door { transition: transform 2.4s cubic-bezier(.65,0,.25,1); }
.welcome-desktop-pace .welcome-content { transition: opacity .55s ease .1s, transform .8s ease; }

/* Preserve the welcome sequence without movement when reduced motion is requested. */
.welcome-static-sequence .welcome-overline,
.welcome-static-sequence .welcome-content h2 { opacity: 0; }
.welcome-static-sequence.welcome-words-visible .welcome-overline,
.welcome-static-sequence.welcome-brand-visible .welcome-content h2 { opacity: 1; }

.welcome-pending .welcome-logo, .welcome-pending .welcome-overline, .welcome-pending .welcome-content h2 { animation: none; visibility: hidden; }

.welcome-desktop-pace .welcome-overline { font-size: 1.55rem; }
.welcome-desktop-pace .welcome-overline span { font-size: .95rem; }
.welcome-brand-button { display: block; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; line-height: inherit; text-align: inherit; cursor: pointer; pointer-events: none; }
.welcome-brand-ready .welcome-brand-button { pointer-events: auto; }
.welcome-brand-button:focus-visible { outline: 2px solid #f0cf94; outline-offset: 10px; border-radius: 8px; }

.welcome-desktop-pace .welcome-logo { position: relative; top: -28px; }

.welcome-desktop-pace .welcome-overline span { margin-top: 6px; font-size: 1.8rem; font-weight: 800; letter-spacing: .16em; }
.welcome-desktop-pace .welcome-content h2 { position: relative; top: 24px; }

@media (min-width: 761px) and (max-width: 1366px) {
 .welcome-logo { position: relative; top: -48px; }
 .welcome-overline { position: relative; top: -20px; font-size: 1.8rem; }
 .welcome-overline span { font-size: 1.15rem; }
}

@media (min-width: 761px) and (max-width: 1366px) {
 .welcome-content h2 { text-indent: 24px; }
 .welcome-content h2 span { text-indent: 0; }
}
