:root {
  --navy: #102a48;
  --navy-deep: #081d34;
  --blue: #1d63ad;
  --cyan: #079db8;
  --ice: #f5f9fd;
  --pale: #eaf4fc;
  --white: #fff;
  --muted: #5e6f82;
  --line: #cfdae8;
  --shell: min(1240px, calc(100% - 96px));
  --header-height: 92px;
  --ease: cubic-bezier(.22,1,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; color: var(--navy); background: var(--white); font-family: "DM Sans","Noto Sans TC",sans-serif; line-height: 1.8; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
small, sub, sup { font-size: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.container { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; z-index: 2000; top: 10px; left: 10px; padding: 9px 16px; color: var(--white); background: var(--navy); transform: translateY(-160%); transition: transform .2s; }
.skip-link:focus { transform: none; }
.eyebrow { margin: 0; color: var(--cyan); font-size: 14px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease,transform .75s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Header */
.site-header { position: fixed; z-index: 1000; inset: 0 0 auto; height: var(--header-height); border-bottom: 1px solid rgba(16,42,72,.14); background: rgba(255,255,255,.78); backdrop-filter: blur(16px); transition: height .3s,background .3s,box-shadow .3s; }
.site-header.is-scrolled { height: 74px; background: rgba(255,255,255,.95); box-shadow: 0 8px 30px rgba(16,42,72,.08); }
.header-inner { display: flex; align-items: center; gap: 36px; width: min(calc(100% - 64px),1380px); height: 100%; margin: auto; }
.brand { width: 176px; flex: 0 0 auto; }
.main-nav { display: flex; align-items: center; gap: clamp(20px,2.15vw,34px); margin-left: auto; }
.main-nav a { position: relative; display: flex; align-items: baseline; gap: 5px; padding: 27px 0; white-space: nowrap; }
.main-nav a::after { position: absolute; right: 100%; bottom: 19px; left: 0; height: 1px; background: var(--blue); content: ""; transition: right .3s var(--ease); }
.main-nav a:hover::after,.main-nav a.active::after { right: 0; }
.main-nav b { font-size: 14px; font-weight: 600; letter-spacing: .03em; }
.main-nav span { color: var(--muted); font-size: 14px; }
.header-tools { display: flex; align-items: center; gap: 16px; padding-left: 22px; border-left: 1px solid var(--line); white-space: nowrap; }
.language { display: flex; gap: 7px; padding: 0; border: 0; background: none; font-size: 14px; cursor: pointer; }
.language span { color: #8a98a7; }
.group-link { display: inline-flex; align-items: center; gap: 15px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--line); font-size: 14px; }
.group-link i { font-style: normal; }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.menu-toggle i,.menu-toggle i::before,.menu-toggle i::after { display: block; width: 24px; height: 1px; background: currentColor; transition: transform .25s,opacity .25s; }
.menu-toggle i { position: relative; margin: auto; }
.menu-toggle i::before,.menu-toggle i::after { position: absolute; left: 0; content: ""; }
.menu-toggle i::before { top: -7px; }
.menu-toggle i::after { top: 7px; }
.menu-open .menu-toggle i { background: transparent; }
.menu-open .menu-toggle i::before { top: 0; transform: rotate(45deg); }
.menu-open .menu-toggle i::after { top: 0; transform: rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: 820px; padding-top: var(--header-height); overflow: hidden; background: var(--pale); }
.hero-media,.hero-wash { position: absolute; inset: var(--header-height) 0 0; }
.hero-media { background: url("../images/banner.png") center / cover no-repeat; transform: scale(1.015); animation: heroScale 14s ease-out forwards; }
.hero-wash { background: linear-gradient(90deg,#fff 0%,rgba(255,255,255,.97) 32%,rgba(234,244,252,.75) 60%,rgba(234,244,252,.08) 86%),linear-gradient(0deg,rgba(16,42,72,.15),transparent 50%); }
.hero-rings { position: absolute; z-index: 1; right: 7vw; bottom: -280px; width: 720px; height: 720px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; box-shadow: 0 0 0 110px rgba(255,255,255,.08),0 0 0 220px rgba(255,255,255,.04); }
.hero-inner { position: relative; z-index: 2; display: flex; align-items: center; min-height: calc(820px - var(--header-height)); padding: 80px 0 110px; }
.hero-copy { width: min(900px,76%); }
.hero h1 { margin: 23px 0 42px; font-size: clamp(60px,6.4vw,96px); font-weight: 400; line-height: .99; letter-spacing: -.06em; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero-intro { display: grid; grid-template-columns: 490px minmax(0,500px); gap: 50px; max-width: 780px; padding-top: 28px; border-top: 1px solid rgba(16,42,72,.22); }
.hero-intro strong { font-size: 17px; font-weight: 500; line-height: 1.55; }
.hero-intro strong span { color: var(--blue); font-size: 14px; }
.hero-intro p { margin: 0; color: var(--muted); font-size: 14px; line-height: 2; }
.scroll-cue { position: absolute; z-index: 3; bottom: 0; left: 50%; display: flex; align-items: center; flex-direction: column; color: rgba(16,42,72,.62); font-size: 14px; letter-spacing: .2em; transform: translateX(-50%); }
.scroll-cue i { width: 1px; height: 48px; margin-top: 12px; background: currentColor; animation: scrollLine 1.8s ease-in-out infinite; transform-origin: top; }

/* Contact options */
.contact-section { padding: 132px 0; background: var(--ice); }
.section-heading { display: grid; grid-template-columns: 150px minmax(0,610px) 1fr; gap: 40px; align-items: end; margin-bottom: 76px; }
.section-index { display: grid; grid-template-columns: auto 1fr; gap: 13px; align-items: center; color: #91a4b7; font-size: 14px; letter-spacing: .14em; }
.section-index i { height: 1px; background: var(--line); }
.section-index small { grid-column: 1 / -1; font-size: 14px; }
.section-heading h2 { margin: 19px 0 0; font-size: clamp(42px,4.2vw,63px); font-weight: 400; line-height: 1.17; letter-spacing: -.045em; }
.section-heading h2 em { color: var(--blue); font-style: normal; }
.section-heading>p { max-width: 350px; margin: 0 0 6px auto; color: var(--muted); font-size: 14px; line-height: 2; }
.contact-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.contact-card { display: flex; flex-direction: column; min-height: 600px; padding: 30px; background: var(--white); transition: color .3s,background .3s,transform .3s; }
.contact-card:hover { z-index: 1; transform: translateY(-7px); }
.contact-card-primary { color: var(--white); background: var(--blue); }
.card-number { color: #91a4b7; font-size: 14px; }
.contact-card-primary .card-number { color: rgba(255,255,255,.5); }
.card-title { margin-top: 70px; }
.card-title p { margin: 0 0 4px; color: var(--cyan); font-size: 14px; text-transform: uppercase; }
.contact-card-primary .card-title p { color: #9fe2eb; }
.card-title h3 { margin: 0; font-size: 29px; font-weight: 500; }
.card-copy { min-height: 90px; margin: 25px 0 0; padding-top: 25px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.9; }
.contact-card-primary .card-copy { border-color: rgba(255,255,255,.25); color: rgba(255,255,255,.72); }
.card-meta { margin-top: auto; padding: 27px 0 29px; border-top: 1px solid var(--line); }
.contact-card-primary .card-meta { border-color: rgba(255,255,255,.25); }
.card-meta span { display: block; margin-bottom: 9px; color: #91a4b7; font-size: 14px; letter-spacing: .13em; }
.contact-card-primary .card-meta span { color: rgba(255,255,255,.5); }
.card-meta strong { display: block; font-size: 20px; font-weight: 500; line-height: 1.5; }
.card-meta small { display: block; margin-top: 9px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.contact-card-primary .card-meta small { color: rgba(255,255,255,.57); }
.contact-link { display: flex; align-items: center; justify-content: space-between; min-height: 74px; padding: 15px 17px; color: var(--white); background: var(--navy); transition: background .25s,transform .25s; }
.contact-card-primary .contact-link { color: var(--navy); background: var(--white); }
.contact-link:hover { background: var(--cyan); transform: translateY(-3px); }
.contact-card-primary .contact-link:hover { background: #a6e2eb; }
.contact-link span { font-size: 14px; font-weight: 500; }
.contact-link small { display: block; margin-bottom: 2px; color: rgba(255,255,255,.55); font-size: 14px; letter-spacing: .12em; }
.contact-card-primary .contact-link small { color: rgba(16,42,72,.5); }
.contact-link i { font-size: 18px; font-style: normal; }

/* Closing note */
.contact-note { color: var(--white); background: linear-gradient(120deg,var(--navy-deep),var(--navy) 60%,var(--blue)); }
.note-layout { display: grid; grid-template-columns: 1fr 1.4fr .8fr; gap: 60px; align-items: center; min-height: 360px; padding: 80px 0; }
.note-layout>div { display: grid; grid-template-columns: auto 1fr; gap: 13px; align-items: center; color: rgba(255,255,255,.48); font-size: 14px; letter-spacing: .14em; }
.note-layout>div i { height: 1px; background: rgba(255,255,255,.22); }
.note-layout>div small { grid-column: 1 / -1; font-size: 14px; }
.note-layout>p { margin: 0; font-size: clamp(28px,3vw,42px); font-weight: 400; line-height: 1.45; letter-spacing: -.025em; }
.note-layout>a { display: flex; justify-content: space-between; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.35); border-bottom: 1px solid rgba(255,255,255,.35); font-size: 14px; }
.note-layout>a i { font-size: 17px; font-style: normal; transition: transform .25s; }
.note-layout>a:hover i { transform: translate(3px,-3px); }

/* Footer */
.site-footer { padding: 78px 0 22px; background: var(--white); }
.footer-main { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 60px; padding-bottom: 68px; }
.footer-brand img { width: 170px; }
.footer-brand p { margin: 30px 0 0; color: var(--blue); font-size: 18px; line-height: 1.3; }
.footer-column h3 { margin: 0 0 18px; color: #8292a3; font-size: 14px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.footer-column a { display: block; margin-bottom: 8px; color: var(--muted); font-size: 14px; }
.footer-column a:hover { color: var(--blue); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 19px; border-top: 1px solid var(--line); color: #8292a3; font-size: 14px; letter-spacing: .08em; }
.footer-bottom p { margin: 0; }

@keyframes heroScale { to { transform: scale(1.08); } }
@keyframes scrollLine { 0%,100% { opacity: .35; transform: scaleY(.55); } 50% { opacity: 1; transform: scaleY(1); } }

@media (max-width: 1180px) {
  :root { --shell: min(100% - 52px,1240px); }
  .header-inner { width: min(calc(100% - 44px),1380px); gap: 22px; }
  .brand { width: 150px; }
  .main-nav { gap: 20px; }
  .main-nav span { display: none; }
  .language { display: none; }
  .section-heading { grid-template-columns: 115px minmax(0,580px) 1fr; }
}

@media (max-width: 900px) {
  :root { --header-height: 76px; --shell: calc(100% - 48px); }
  .site-header,.site-header.is-scrolled { height: var(--header-height); }
  .brand { width: 155px; }
  .header-tools { margin-left: auto; padding: 0; border: 0; }
  .group-link { display: none; }
  .menu-toggle { display: block; }
  .main-nav { position: fixed; inset: var(--header-height) 0 0; display: flex; align-items: stretch; flex-direction: column; gap: 0; margin: 0; padding: 38px 24px; background: rgba(255,255,255,.98); visibility: hidden; opacity: 0; transform: translateY(-10px); transition: opacity .25s,transform .25s,visibility .25s; }
  .menu-open .main-nav { visibility: visible; opacity: 1; transform: none; height: 100vh; }
  .main-nav a { justify-content: space-between; width: 100%; padding: 18px 4px; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .main-nav b { font-size: 21px; font-weight: 400; }
  .main-nav span { display: inline; margin-left: auto; font-size: 14px; }
  .hero { min-height: 770px; }
  .hero-media,.hero-wash { top: var(--header-height); }
  .hero-inner { min-height: calc(770px - var(--header-height)); }
  .hero h1 { font-size: clamp(58px,9vw,82px); }
  .section-heading { grid-template-columns: 90px 1fr; }
  .section-heading>p { grid-column: 2; margin: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { min-height: 520px; }
  .note-layout { grid-template-columns: .7fr 1.3fr; }
  .note-layout>a { grid-column: 2; }
  .footer-main { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-column:last-child { display: none; }
}

@media (max-width: 600px) {
  :root { --shell: calc(100% - 36px); }
  .header-inner { width: calc(100% - 32px); }
  .brand { width: 140px; }
  .hero { min-height: 760px; }
  .hero-inner { align-items: flex-end; min-height: calc(760px - var(--header-height)); padding: 80px 0 100px; }
  .hero-copy { width: 100%; }
  .hero-media { background-position: 62% center; }
  .hero-wash { background: linear-gradient(90deg,rgba(255,255,255,.98),rgba(234,244,252,.86)); }
  .hero-rings { opacity: .5; }
  .eyebrow { font-size: 14px; }
  .hero h1 { margin: 18px 0 27px; font-size: clamp(48px,13.5vw,58px); line-height: 1.03; }
  .hero-intro { grid-template-columns: 1fr; gap: 13px; padding-top: 20px; }
  .hero-intro strong { font-size: 14px; }
  .hero-intro p { font-size: 14px; line-height: 1.9; }
  .scroll-cue { display: none; }
  .contact-section { padding: 78px 0; }
  .section-heading { display: block; margin-bottom: 48px; }
  .section-index { margin-bottom: 42px; }
  .section-heading h2 { font-size: 39px; }
  .section-heading>p { margin-top: 23px; }
  .contact-card { min-height: 510px; padding: 26px 23px; }
  .card-title { margin-top: 52px; }
  .card-title h3 { font-size: 27px; }
  .note-layout { display: block; min-height: 390px; padding: 75px 0; }
  .note-layout>p { margin: 55px 0 38px; font-size: 31px; }
  .footer-main { grid-template-columns: 1fr; gap: 35px; padding: 60px 0 48px; }
  .footer-brand { padding-bottom: 10px; }
  .footer-column { padding-top: 22px; border-top: 1px solid var(--line); }
  .footer-column:last-child { display: block; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 10px; }
}

@media (max-width: 560px) {
  .hero { height: auto; min-height: 700px; max-height: none; }
  .hero-inner { min-height: calc(700px - var(--header-height)); }
}

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