: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: 142px; }
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; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.w-100 { width:100% }
.text-nowrap { text-wrap: nowrap;}

/* 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 { width: min(calc(100% - 64px), 1380px); height: 100%; margin: auto; display: flex; align-items: center; gap: 36px; }
.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,.77) 61%,rgba(234,244,252,.08) 86%),linear-gradient(0deg,rgba(16,42,72,.14),transparent 48%); }
.hero::after { position: absolute; right: 8vw; bottom: -260px; width: 700px; height: 700px; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; box-shadow: 0 0 0 110px rgba(255,255,255,.08),0 0 0 220px rgba(255,255,255,.04); content: ""; }
.hero-inner { position: relative; z-index: 1; display: flex; align-items: center; min-height: calc(820px - var(--header-height)); padding: 86px 0 110px; }
.hero-copy { width: min(850px, 72%); }
.eyebrow { margin: 0; color: var(--cyan); font-size: 14px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.hero h1 { margin: 26px 0 43px; font-size: clamp(50px,5.1vw,78px); font-weight: 400; line-height: 1.12; letter-spacing: -.052em; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero-intro { display: grid; grid-template-columns: 175px minmax(0,470px); gap: 40px; max-width: 720px; padding-top: 27px; border-top: 1px solid rgba(16,42,72,.22); }
.hero-intro span { color: #8ca0b4; font-size: 14px; letter-spacing: .16em; }
.hero-intro p { margin: 0; color: var(--muted); font-size: 14px; line-height: 2; }
.scroll-cue { position: absolute; z-index: 2; 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; }

/* Section navigation */
.section-nav { position: sticky; z-index: 800; top: 74px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.95); backdrop-filter: blur(15px); }
.section-nav-inner { display: flex; overflow-x: auto; scrollbar-width: none; }
.section-nav-inner::-webkit-scrollbar { display: none; }
.section-nav a { position: relative; flex: 1 0 auto; min-width: 200px; padding: 19px 18px 17px; border-right: 1px solid var(--line); color: var(--muted); font-size: 14px; text-align: center; white-space: nowrap; transition: color .25s,background .25s; }
.section-nav a:first-child { border-left: 1px solid var(--line); }
.section-nav a span { margin-right: 9px; color: #94a7ba; font-size: 14px; }
.section-nav a::after { position: absolute; right: 50%; bottom: -1px; left: 50%; height: 2px; background: var(--blue); content: ""; transition: right .3s var(--ease),left .3s var(--ease); }
.section-nav a:hover, .section-nav a.active { color: var(--navy); background: var(--ice); }
.section-nav a.active::after { right: 18px; left: 18px; }

/* Company sections */
.company { position: relative; padding: 132px 0; overflow: hidden; }
.company::after { position: absolute; right: -35px; bottom: -155px; color: rgba(29,99,173,.035); font-size: clamp(260px,32vw,500px); font-weight: 500; line-height: .75; letter-spacing: -.09em; content: attr(data-number); pointer-events: none; }
.company-inova { background: var(--white); }
.company-miracle { background: #fbf8fa; }
.company-water { background: var(--ice); }
.company-dark { color: var(--white); background: var(--navy); }
.company-layout { position: relative; z-index: 1; display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(70px,9vw,140px); }
.company-identity { display: flex; align-items: flex-start; flex-direction: column; min-height: 590px; padding-right: 20px; }
.company-index { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; width: 100%; color: #8fa2b7; font-size: 14px; letter-spacing: .14em; }
.company-index i { height: 1px; background: var(--line); }
.company-index small { font-size: 14px; }
.logo-wrap { display: grid; width: 118px; height: 118px; margin: 82px 0 64px; place-items: center; }
.logo-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-wrap.logo-wide { width: 190px; }
.logo-light img { filter: brightness(0) invert(1); }
.company-en { margin: auto 0 16px; color: var(--blue); font-size: 14px; line-height: 1.45; text-transform: uppercase; }
.company h2 { margin: 0; font-size: clamp(42px,4vw,61px); font-weight: 400; line-height: 1.14; letter-spacing: -.045em; }
.company h2 em { color: var(--blue); font-style: normal; }
.company-dark .company-index { color: rgba(255,255,255,.45); }
.company-dark .company-index i { background: rgba(255,255,255,.2); }
.company-dark .company-en, .company-dark h2 em { color: #79cedd; }
.company-content { padding-top: 98px; }
.company-kicker { max-width: 640px; margin: 0 0 46px; font-size: clamp(27px,2.5vw,38px); font-weight: 400; line-height: 1.45; letter-spacing: -.025em; }
.company-description { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; padding: 35px 0 52px; border-top: 1px solid var(--line); }
.company-description p { margin: 0; color: var(--muted); font-size: 14px; line-height: 2; }
.company-bottom { display: grid; grid-template-columns: 1fr 180px; gap: 45px; align-items: end; }
.fields { padding-top: 30px; border-top: 1px solid var(--line); }
.fields h3 { margin: 0 0 23px; font-size: 14px; font-weight: 600; }
.fields h3 span { margin-left: 10px; color: #91a3b5; font-size: 14px; font-weight: 500; letter-spacing: .13em; }
.fields ul { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 30px; margin: 0; padding: 0; list-style: none; }
.fields li { position: relative; padding-left: 17px; color: var(--muted); font-size: 14px; }
.fields li::before { position: absolute; top: .85em; left: 0; width: 6px; height: 1px; background: var(--cyan); content: ""; }
.site-link { display: flex; align-items: center; justify-content: space-between; min-height: 92px; padding: 20px; color: var(--white); background: var(--blue); transition: background .25s,transform .25s; }
.site-link:hover { background: var(--cyan); transform: translateY(-4px); }
.site-link span { font-size: 14px; font-weight: 500; }
.site-link small { display: block; margin-bottom: 5px; color: rgba(255,255,255,.65); font-size: 14px; font-weight: 500; letter-spacing: .12em; }
.site-link i { font-size: 19px; font-style: normal; }
.company-dark .company-description,.company-dark .fields { border-color: rgba(255,255,255,.2); }
.company-dark .company-description p,.company-dark .fields li { color: rgba(255,255,255,.62); }
.company-dark .fields h3 span { color: rgba(255,255,255,.42); }
.company-dark .site-link { color: var(--navy); background: #86d5e2; }
.company-dark .site-link small { color: rgba(16,42,72,.57); }
.company-dark .site-link:hover { background: var(--white); }

/* Closing */
.closing { color: var(--white); background: linear-gradient(120deg,var(--navy-deep),var(--navy) 58%,var(--blue)); overflow: hidden; }
.closing-content { position: relative; min-height: 670px; padding: 125px 0; }
.closing-content::after { position: absolute; right: -180px; bottom: -370px; width: 700px; height: 700px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 100px rgba(255,255,255,.035),0 0 0 200px rgba(255,255,255,.02); content: ""; }
.closing .eyebrow { color: #8bd5e1; }
.closing h2 { max-width: 810px; margin: 27px 0 32px; font-size: clamp(53px,6vw,88px); font-weight: 400; line-height: 1.06; letter-spacing: -.055em; }
.closing h2 em { color: #8bd5e1; font-style: normal; }
.closing-content>p:not(.eyebrow) { max-width: 570px; margin: 0; color: rgba(255,255,255,.65); font-size: 14px; }
.closing-link { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; width: 280px; margin-top: 45px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.4); border-bottom: 1px solid rgba(255,255,255,.4); }
.closing-link span { font-size: 14px; font-weight: 500; }
.closing-link small { color: rgba(255,255,255,.55); font-size: 14px; font-weight: 400; }
.closing-link i { font-size: 19px; font-style: normal; transition: transform .25s; }
.closing-link: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; }
  .company-layout { gap: 70px; }
}

@media (max-width: 900px) {
  :root { --header-height: 76px; --shell: calc(100% - 48px); }
  html { scroll-padding-top: 122px; }
  .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-copy { width: min(730px,92%); }
  .hero h1 { font-size: clamp(48px,8vw,68px); }
  .section-nav { top: var(--header-height); }
  .section-nav a { min-width: 175px; }
  .company { padding: 100px 0; }
  .company-layout { grid-template-columns: 1fr; gap: 65px; }
  .company-identity { min-height: auto; }
  .logo-wrap { margin: 60px 0; }
  .company-en { margin-top: 15px; }
  .company-content { padding-top: 0; }
  .company-bottom { grid-template-columns: 1fr 180px; }
  .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: 90px 0 105px; }
  .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)); }
  .eyebrow { font-size: 14px; }
  .hero h1 { margin: 19px 0 28px; font-size: clamp(39px,11.5vw,49px); line-height: 1.17; }
  .hero-intro { grid-template-columns: 1fr; gap: 14px; padding-top: 20px; }
  .hero-intro p { font-size: 14px; line-height: 1.9; }
  .scroll-cue { display: none; }
  .section-nav a { min-width: 158px; padding: 15px 12px; font-size: 14px; }
  .company { padding: 76px 0; }
  .company-layout { gap: 46px; }
  .company-index { gap: 10px; }
  .logo-wrap,.logo-wrap.logo-wide { width: 145px; height: 90px; margin: 45px 0 40px; }
  .company-en { margin-top: 0; font-size: 14px; }
  .company h2 { font-size: 39px; }
  .company-kicker { margin-bottom: 30px; font-size: 26px; }
  .company-description { grid-template-columns: 1fr; gap: 16px; padding: 26px 0 36px; }
  .company-description p { font-size: 14px; line-height: 1.95; }
  .company-bottom { grid-template-columns: 1fr; gap: 34px; }
  .fields ul { grid-template-columns: 1fr; gap: 7px; }
  .site-link { min-height: 76px; }
  .closing-content { min-height: 600px; padding: 90px 0; }
  .closing h2 { font-size: 48px; }
  .closing-content>p:not(.eyebrow) { font-size: 14px; }
  .closing-link { width: 100%; }
  .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; }
}
