:root {
  --ink: #101010;
  --muted: #595959;
  --line: #d8d8d8;
  --brand: #003c6f;
  --brand-dark: #003b66;
  --brand-deep: #0a2742;
  --paper: #ffffff;
  --soft: #f7f7f7;
  --soft-blue: #eaf7fb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Helvetica, Arial, "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 15px;
  line-height: 1.62;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
  padding: 18px clamp(22px, 6vw, 86px);
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
  transition: min-height 220ms ease, padding 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.site-header.is-scrolled {
  min-height: 74px;
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(10, 39, 66, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--brand);
  font-weight: 400;
  text-decoration: none;
}

.brand-logo {
  width: 37px;
  height: 36px;
  object-fit: contain;
  transition: transform 220ms ease;
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand:hover .brand-logo {
  transform: translateY(-1px);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3.5vw, 38px);
  font-size: 12px;
  font-weight: 400;
}

.main-nav a {
  position: relative;
  color: var(--ink);
  transition: color 180ms ease, opacity 180ms ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: var(--brand);
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 180ms ease, transform 180ms ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--brand);
  text-decoration: none;
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.hero {
  position: relative;
  min-height: min(650px, 76vh);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #16283b;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: saturate(0.92) brightness(1.04) contrast(0.96);
  animation: heroImageIn 1600ms ease both;
  transform-origin: 62% center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 31, 54, 0.8) 0%, rgba(10, 39, 66, 0.66) 34%, rgba(45, 83, 114, 0.34) 68%, rgba(205, 223, 235, 0.08) 100%),
    linear-gradient(180deg, rgba(13, 28, 45, 0.08) 0%, rgba(13, 28, 45, 0.34) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(700px, calc(100% - 40px));
  margin-left: clamp(24px, 8vw, 104px);
  color: #fff;
}

.hero h1 {
  margin: 0 0 22px;
  max-width: 700px;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(34px, 5.2vw, 64px);
  line-height: 1.12;
  letter-spacing: 0;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(10, 30, 52, 0.38);
  animation: textFadeUp 900ms 160ms ease both;
}

.hero p {
  max-width: 590px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(16px, 1.7vw, 21px);
  font-weight: 400;
  text-shadow: 0 1px 6px rgba(10, 30, 52, 0.36);
  animation: textFadeUp 900ms 360ms ease both;
}

.section {
  padding: clamp(70px, 9vw, 108px) clamp(22px, 6vw, 86px);
}

.section-inner {
  max-width: 980px;
  margin: 0 auto;
}

.section-kicker {
  margin: 0 0 8px;
  color: #777;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.16;
  font-weight: 400;
}

.section-subtitle {
  margin: 0 0 36px;
  color: var(--muted);
  font-weight: 400;
}

.services-layout,
.vision-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: clamp(34px, 5vw, 58px);
  align-items: center;
}

.services-section {
  background:
    linear-gradient(90deg, var(--soft-blue) 0%, var(--soft-blue) 50%, #fff 50%, #fff 100%);
}

.service-list {
  display: grid;
  gap: 18px;
}

.service-list article {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  transition: border-color 180ms ease, transform 180ms ease;
}

.service-list article:hover {
  border-bottom-color: rgba(0, 60, 111, 0.42);
  transform: translateX(4px);
}

.service-list h3,
.contact-section h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 400;
}

.service-list p,
.vision-section p,
.contact-section p {
  margin: 0 0 16px;
  color: var(--muted);
}

.section-image {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: none;
  transition: transform 420ms ease, filter 420ms ease;
}

.section-image:hover {
  transform: scale(1.015);
  filter: contrast(1.02) saturate(1.04);
}

.vision-section,
.contact-section {
  background: var(--soft);
}

.vision-section {
  position: relative;
  overflow: hidden;
}

.vision-section::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(10, 39, 66, 0.06) 100%);
  pointer-events: none;
}

.vision-layout {
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1fr);
}

.contact-layout {
  align-items: start;
}

.contact-form {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(10, 39, 66, 0.08);
}

.contact-form label {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #c9d2da;
  padding: 11px 12px;
  color: var(--ink);
  font: inherit;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 60, 111, 0.12);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  width: 100%;
  border: 0;
  padding: 13px 18px;
  color: #fff;
  background: var(--brand-dark);
  font: inherit;
  font-weight: 400;
  cursor: pointer;
  transition: background 180ms ease, opacity 180ms ease;
}

.contact-form button:hover {
  background: #071f35;
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.form-note {
  margin-top: 14px;
  color: var(--brand-dark);
  font-weight: 700;
}

.form-note.is-error {
  color: #9d2525;
}

.site-footer {
  padding: 36px 20px 48px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.map-hero {
  display: grid;
  align-items: end;
  min-height: 340px;
  padding: 110px clamp(22px, 6vw, 86px) 72px;
  background:
    linear-gradient(90deg, rgba(10, 39, 66, 0.9) 0%, rgba(10, 39, 66, 0.68) 58%, rgba(10, 39, 66, 0.36) 100%),
    url("assets/hero-city-sharp.jpg") center/cover no-repeat;
  color: #fff;
}

.map-hero .section-kicker {
  color: rgba(255, 255, 255, 0.78);
}

.map-hero h1 {
  margin: 0;
  max-width: 720px;
  color: #fff;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 400;
  text-transform: uppercase;
}

.map-section {
  background: var(--soft);
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(360px, 1.3fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: stretch;
}

.map-contact-card {
  padding: 34px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(10, 39, 66, 0.08);
}

.map-contact-card h2 {
  margin-bottom: 24px;
  font-size: clamp(24px, 2.8vw, 36px);
}

.map-contact-card p {
  margin: 0 0 16px;
  color: var(--muted);
}

.address-block {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.address-label {
  color: var(--brand) !important;
  font-weight: 700;
}

.map-frame {
  min-height: 520px;
  border: 1px solid var(--line);
  background: #dfe7ec;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(10, 39, 66, 0.08);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 0;
}

.back-to-top {
  display: inline-grid;
  gap: 8px;
  justify-items: center;
  margin-bottom: 22px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 400;
}

.back-to-top img {
  width: 32px;
  height: 16px;
  filter: none;
  transition: transform 180ms ease;
}

.back-to-top:hover img {
  transform: translateY(-3px);
}

html.animations-ready .reveal-section .reveal-item,
html.animations-ready .reveal-section .section-kicker,
html.animations-ready .reveal-section h2,
html.animations-ready .reveal-section .section-subtitle {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 760ms ease, transform 760ms ease;
  will-change: opacity, transform;
}

html.animations-ready .reveal-section.is-visible .section-kicker,
html.animations-ready .reveal-section.is-visible h2,
html.animations-ready .reveal-section.is-visible .section-subtitle,
html.animations-ready .reveal-section.is-visible .reveal-item,
html.animations-ready .reveal-section:target .section-kicker,
html.animations-ready .reveal-section:target h2,
html.animations-ready .reveal-section:target .section-subtitle,
html.animations-ready .reveal-section:target .reveal-item {
  opacity: 1;
  transform: translateY(0);
}

html.animations-ready .reveal-section.is-visible .section-kicker {
  transition-delay: 60ms;
}

html.animations-ready .reveal-section.is-visible h2 {
  transition-delay: 140ms;
}

html.animations-ready .reveal-section.is-visible .section-subtitle {
  transition-delay: 220ms;
}

html.animations-ready .reveal-section.is-visible .reveal-item:nth-child(1) {
  transition-delay: 180ms;
}

html.animations-ready .reveal-section.is-visible .reveal-item:nth-child(2) {
  transition-delay: 260ms;
}

html.animations-ready .reveal-section.is-visible .reveal-item:nth-child(3) {
  transition-delay: 340ms;
}

html.animations-ready .reveal-section.is-visible .reveal-item:nth-child(4) {
  transition-delay: 420ms;
}

html.animations-ready .reveal-section.is-visible .reveal-item:nth-child(5) {
  transition-delay: 500ms;
}

html.animations-ready .reveal-section.is-visible .reveal-item:nth-child(6) {
  transition-delay: 580ms;
}

@keyframes textFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroImageIn {
  from {
    opacity: 0.78;
    transform: scale(1.025);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 840px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
  }

  .brand-name {
    white-space: normal;
  }

  .main-nav {
    flex-wrap: wrap;
    row-gap: 16px;
  }

  .hero {
    min-height: 560px;
  }

  .hero-copy {
    margin: 0 auto;
  }

  .services-section {
    background: #fff;
  }

  .services-layout,
  .vision-layout,
  .contact-layout,
  .map-layout {
    grid-template-columns: 1fr;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 420px;
  }

  .vision-layout .section-image {
    order: 2;
  }
}
