:root {
  --night: #050d18;
  --night-2: #0a1a2e;
  --navy: #0b3d6e;
  --ink: #0d1726;
  --ink-2: #3b4a5e;
  --muted: #6c7b8f;
  --line: #e4e9f0;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --teal: #2ec4b6;
  --teal-d: #0e8f86;
  --blue: #3b82f6;
  --radius: 18px;
  --max: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "PingFang HK",
    "Microsoft JhengHei", "Noto Sans TC", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.7; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; color: #fff;
  transition: background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.site-header.scrolled {
  background: rgba(255, 255, 255, .86); color: var(--ink);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(13, 23, 38, .05);
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 34px; height: 34px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 16px; letter-spacing: .02em; }
.brand-text small { font-size: 10.5px; font-weight: 600; letter-spacing: .16em; opacity: .6; }
.nav { display: flex; align-items: center; gap: 30px; font-size: 14.5px; }
.nav > a { position: relative; opacity: .82; transition: opacity .2s; }
.nav > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav > a:hover { opacity: 1; }
.nav > a:hover::after { transform: scaleX(1); }
.lang {
  display: inline-flex; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 3px; font-size: 12.5px; font-weight: 600;
}
.scrolled .lang { border-color: var(--line); }
.lang a, .lang span { padding: 4px 12px; border-radius: 999px; opacity: .7; transition: opacity .2s, background .2s; }
.lang a:hover { opacity: 1; }
.lang span[aria-current] { opacity: 1; background: #fff; color: var(--night); }
.scrolled .lang span[aria-current] { background: var(--navy); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; background: var(--night);
  min-height: min(100vh, 920px); display: flex; align-items: center;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%;
  opacity: .92; transform: scale(1.06); animation: heroZoom 18s var(--ease) forwards;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5,13,24,.96) 0%, rgba(5,13,24,.82) 34%, rgba(5,13,24,.25) 66%, rgba(5,13,24,.05) 100%),
    linear-gradient(0deg, rgba(5,13,24,1) 0%, rgba(5,13,24,0) 26%);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 20%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; opacity: .5; }
.orb-a { width: 520px; height: 520px; left: -160px; top: -120px; background: rgba(46,196,182,.28); animation: drift 22s ease-in-out infinite alternate; }
.orb-b { width: 420px; height: 420px; left: 30%; bottom: -220px; background: rgba(59,130,246,.22); animation: drift 26s ease-in-out infinite alternate-reverse; }
.hero .wrap { position: relative; z-index: 2; padding-top: 140px; padding-bottom: 150px; width: 100%; }
.hero-copy { max-width: 640px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .08em;
  color: #bdf3ee; padding: 7px 14px 7px 12px; border-radius: 999px;
  background: rgba(46,196,182,.1); border: 1px solid rgba(46,196,182,.28);
}
.pulse { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.pulse::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--teal);
  animation: pulse 2.4s ease-out infinite;
}
.hero h1 { margin: 26px 0 20px; font-size: clamp(38px, 5.6vw, 66px); line-height: 1.12; letter-spacing: -.02em; font-weight: 750; }
.grad {
  background: linear-gradient(92deg, #ffffff 0%, #bff5ef 45%, var(--teal) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { font-size: clamp(16px, 1.5vw, 18.5px); color: rgba(226,236,248,.78); margin: 0 0 38px; max-width: 580px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 12px;
  font-weight: 600; font-size: 15px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
}
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: linear-gradient(135deg, var(--teal) 0%, #18a99c 100%); color: #04211e; box-shadow: 0 10px 30px rgba(46,196,182,.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(46,196,182,.38); }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.04); }
.btn-ghost:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.08); }

.stats {
  position: relative; z-index: 3; margin-top: -76px;
}
.stats-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(180deg, #0d2340 0%, #0a1a2e 100%); border: 1px solid rgba(255,255,255,.1); border-radius: 20px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); color: #fff;
  box-shadow: 0 30px 60px rgba(5,13,24,.28);
}
.stat { padding: 26px 30px; border-left: 1px solid rgba(255,255,255,.08); }
.stat:first-child { border-left: 0; }
.stat dt { font-size: 12.5px; letter-spacing: .1em; color: rgba(200,215,232,.62); margin-bottom: 6px; }
.stat dd { margin: 0; font-size: 19px; font-weight: 650; letter-spacing: .01em; }

/* ---------- Sections ---------- */
section.block { padding: 120px 0; position: relative; }
.sec-head { max-width: 700px; margin-bottom: 56px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .18em;
  color: var(--teal-d); text-transform: uppercase;
}
.kicker::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.sec-head h2 { margin: 12px 0 14px; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.25; letter-spacing: -.01em; }
.sec-head p { margin: 0; color: var(--ink-2); font-size: 16.5px; }

/* About */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; }
.about-media { position: relative; }
.about-media .frame {
  position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 4.4;
  box-shadow: 0 40px 80px rgba(13, 23, 38, .18);
}
.about-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about-media:hover img { transform: scale(1.03); }
.about-media .frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(5,13,24,.55)); }
.float-card {
  position: absolute; right: -28px; bottom: 36px; z-index: 2; min-width: 230px;
  padding: 18px 22px; border-radius: 16px; background: rgba(255,255,255,.9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.7); box-shadow: 0 20px 50px rgba(13,23,38,.16);
}
.float-card small { display: block; font-size: 12px; letter-spacing: .12em; color: var(--muted); }
.float-card b { display: block; font-size: 17px; margin-top: 2px; }
.float-card .tag { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12.5px; color: var(--teal-d); font-weight: 600; }
.about-text .sec-head { margin-bottom: 26px; }
.about-text p { margin: 0 0 18px; color: var(--ink-2); font-size: 16.5px; }
.facts { margin: 30px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.facts div { background: #fff; padding: 16px 20px; }
.facts dt { font-size: 12.5px; color: var(--muted); letter-spacing: .04em; }
.facts dd { margin: 2px 0 0; font-weight: 600; font-size: 15px; }

/* Services */
.services { background: var(--bg-soft); }
.services::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(11,61,110,.08) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000, transparent 60%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 60%);
}
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(13,23,38,.1); border-color: #d2dbe7; }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--night); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 26px 28px 30px; }
.card-num { font-size: 12.5px; font-weight: 700; letter-spacing: .16em; color: var(--teal-d); }
.card h3 { margin: 8px 0 10px; font-size: 21px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* Process */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; list-style: none; margin: 0; padding: 0; }
.timeline::before, .timeline::after {
  content: ""; position: absolute; top: 23px; left: 24px; right: 24px; height: 2px; border-radius: 2px;
}
.timeline::before { background: var(--line); }
.timeline::after {
  background: linear-gradient(90deg, var(--navy), var(--teal));
  transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .2s;
}
.timeline.in::after { transform: scaleX(1); }
.timeline li { position: relative; }
.node {
  position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 2px solid var(--line); color: var(--navy); font-weight: 700; font-size: 14px;
  transition: border-color .5s, background .5s, color .5s, box-shadow .5s;
}
.timeline.in .node { border-color: var(--teal); box-shadow: 0 0 0 6px rgba(46,196,182,.12); }
.timeline li:nth-child(1) .node { transition-delay: .2s; }
.timeline li:nth-child(2) .node { transition-delay: .6s; }
.timeline li:nth-child(3) .node { transition-delay: 1s; }
.timeline li:nth-child(4) .node { transition-delay: 1.4s; }
.timeline h3 { margin: 22px 0 8px; font-size: 18px; }
.timeline p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* Principles (dark band) */
.dark { background: var(--night); color: #fff; overflow: hidden; }
.dark::before {
  content: ""; position: absolute; width: 700px; height: 700px; right: -200px; top: -300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46,196,182,.18), transparent 65%);
}
.dark .kicker { color: var(--teal); }
.dark .sec-head p { color: rgba(220,230,242,.7); }
.principles { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.principle {
  padding: 32px 30px; border-radius: 20px; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.09); transition: border-color .4s, background .4s, transform .4s var(--ease);
}
.principle:hover { border-color: rgba(46,196,182,.45); transform: translateY(-4px); }
.p-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--teal); background: rgba(46,196,182,.12); margin-bottom: 22px; }
.p-icon svg { width: 22px; height: 22px; }
.principle h3 { margin: 0 0 10px; font-size: 19px; }
.principle p { margin: 0; color: rgba(220,230,242,.7); font-size: 15px; }

/* Contact */
.contact {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
  padding: 64px; border-radius: 28px; color: #fff;
  background: radial-gradient(600px 300px at 100% 0%, rgba(46,196,182,.35), transparent 60%), linear-gradient(135deg, #0a2a4c 0%, var(--navy) 55%, #0c5a6e 100%);
  box-shadow: 0 40px 80px rgba(11,61,110,.22);
}
.contact::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000);
}
.contact > * { position: relative; z-index: 1; }
.contact h2 { margin: 0 0 12px; font-size: clamp(28px, 3vw, 38px); letter-spacing: -.01em; }
.contact p { margin: 0; color: rgba(255,255,255,.78); font-size: 16.5px; }
.addr { padding: 28px 30px; border-radius: 18px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.addr .label { display: flex; align-items: center; gap: 10px; font-size: 12.5px; letter-spacing: .14em; color: rgba(255,255,255,.7); margin-bottom: 12px; }
.addr .label svg { width: 16px; height: 16px; color: var(--teal); }
.addr address { font-style: normal; font-size: 18px; line-height: 1.7; font-weight: 550; letter-spacing: .02em; }

/* Footer */
.site-footer { background: var(--night); color: rgba(220,230,242,.6); padding: 44px 0; font-size: 14px; margin-top: 120px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.site-footer .brand { color: #fff; }

/* ---------- Reveal motion ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }
.hero-copy > * { animation: rise 1s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .1s; } .hero-copy > :nth-child(3) { animation-delay: .2s; } .hero-copy > :nth-child(4) { animation-delay: .3s; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes heroZoom { to { transform: scale(1); } }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(60px, 40px); } }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .about { grid-template-columns: 1fr; gap: 56px; }
  .about-media .frame { aspect-ratio: 16 / 10; }
  .float-card { right: 20px; }
  .cards, .principles { grid-template-columns: 1fr; }
  .card { display: grid; grid-template-columns: 1fr 1.2fr; }
  .card-media { aspect-ratio: auto; min-height: 220px; }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .timeline::before, .timeline::after { display: none; }
  .contact { grid-template-columns: 1fr; padding: 48px 36px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.08); }
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .nav > a { display: none; }
  .brand-text small { display: none; }
  .hero { min-height: auto; }
  .hero .wrap { padding-top: 120px; padding-bottom: 130px; }
  .hero-bg img { object-position: 78% 50%; opacity: .6; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(5,13,24,.55) 0%, rgba(5,13,24,.9) 70%, rgba(5,13,24,1) 100%); }
  section.block { padding: 88px 0; }
  .card { display: block; }
  .card-media { aspect-ratio: 4 / 3; }
  .timeline { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .float-card { position: relative; right: auto; bottom: auto; margin: -40px 16px 0; }
  .stat { padding: 20px; }
  .stat dd { font-size: 16px; }
  .contact { padding: 40px 24px; }
  .site-footer { margin-top: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .timeline::after { transform: scaleX(1); }
}
