:root {
  --navy-990: #010814;
  --navy-970: #03101f;
  --navy-930: #081b2e;
  --steel: #35485a;
  --paper: #e3e8ee;
  --paper-soft: #eef2f6;
  --ink: #151923;
  --muted: #606875;
  --line: #d3dae1;
  --gold: #d6a66a;
  --gold-soft: #e2bd86;
  --max: 1320px;
  --header-height: 112px;
  --gutter: max(28px, calc((100vw - var(--max)) / 2 + 28px));
}

* {
  box-sizing: border-box;
}

html {
  background: var(--navy-990);
  color: var(--ink);
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "PingFang TC",
    "Noto Sans TC",
    "Helvetica Neue",
    Arial,
    sans-serif;
}

body {
  margin: 0;
  overscroll-behavior-y: contain;
}

.slide {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

address {
  font-style: normal;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.display {
  font-family: "Songti TC", "Noto Serif TC", "PMingLiU", "MingLiU", serif;
  font-weight: 560;
  letter-spacing: 0;
}

html[lang="en"] .display {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.rule {
  width: 74px;
  height: 2px;
  margin: 26px 0 0;
  background: var(--gold);
}

/* Header ------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: var(--header-height);
  padding: 26px clamp(22px, 4.1vw, 72px);
  border-bottom: 1px solid rgba(226, 205, 171, 0.18);
  color: #fff;
  background:
    linear-gradient(180deg, rgba(1, 8, 20, 0.92), rgba(1, 8, 20, 0.66)),
    rgba(1, 8, 20, 0.72);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: clamp(200px, 20vw, 348px);
  flex: 0 1 auto;
  color: var(--gold);
}

.brand__logo {
  width: 100%;
  height: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 22px);
  flex: 0 0 auto;
}

.header-cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid rgba(214, 166, 106, 0.78);
  border-radius: 2px;
  padding: 0 18px;
  color: var(--navy-990);
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  font-size: 16px;
  font-weight: 700;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.header-cta:hover {
  border-color: var(--gold-soft);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
  transform: translateY(-1px);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 4px;
  color: rgba(255, 255, 255, 0.82);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-bottom: 1px solid transparent;
  transition:
    color 160ms ease,
    border-color 160ms ease;
}

.lang-switch:hover {
  color: #fff;
  border-bottom-color: var(--gold);
}

/* Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 100svh;
  padding: calc(var(--header-height) + 40px) var(--gutter) 96px;
  overflow: hidden;
  color: #fff;
  background:
    url("../images/hero-data-landscape.webp") right center / cover no-repeat,
    var(--navy-990);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__media video {
  width: 100%;
  height: 100%;
  filter: saturate(1.14) contrast(1.04) brightness(1.04);
  object-fit: cover;
  object-position: center center;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 80% 58%, rgba(35, 114, 196, 0.14), transparent 40%),
    linear-gradient(90deg, rgba(1, 8, 20, 0.86) 0%, rgba(3, 15, 28, 0.62) 34%, rgba(5, 19, 34, 0.12) 68%, rgba(2, 11, 21, 0.04) 100%),
    linear-gradient(180deg, rgba(1, 8, 20, 0.18), rgba(1, 8, 20, 0.04) 50%, rgba(1, 8, 20, 0.36));
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero__content::before {
  position: absolute;
  inset: -80px auto -78px -44px;
  z-index: -1;
  width: min(800px, 72vw);
  content: "";
  pointer-events: none;
  background: radial-gradient(ellipse at left center, rgba(1, 8, 20, 0.54), rgba(1, 8, 20, 0.24) 54%, transparent 78%);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--gold);
  font-size: clamp(50px, 5.55vw, 96px);
  font-weight: 650;
  line-height: 1.22;
}

html[lang="en"] .hero h1 {
  max-width: 19ch;
  font-size: clamp(44px, 4.9vw, 84px);
  font-weight: 500;
  line-height: 1.1;
  text-wrap: balance;
}

.hero__lead {
  max-width: 680px;
  margin: 32px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.95;
}

html[lang="en"] .hero__lead {
  max-width: 56ch;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.75;
}

.scroll-cue {
  position: absolute;
  bottom: 42px;
  left: var(--gutter);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.62);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  transition: color 160ms ease;
}

.scroll-cue::after {
  width: 54px;
  height: 1px;
  content: "";
  background: var(--gold);
}

.scroll-cue:hover {
  color: #fff;
}

/* Contact ------------------------------------------------------------ */

.contact {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100svh;
  padding: calc(var(--header-height) + 52px) var(--gutter) 44px;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 16%, rgba(214, 166, 106, 0.12), transparent 30%),
    radial-gradient(circle at 10% 84%, rgba(16, 43, 68, 0.08), transparent 34%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-soft) 100%);
}

.contact::before {
  position: absolute;
  top: 24%;
  right: max(-80px, calc((100vw - var(--max)) / 2 - 40px));
  width: min(520px, 46vw);
  aspect-ratio: 1;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  background-image: radial-gradient(rgba(16, 43, 68, 0.16) 1px, transparent 1.8px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(circle, #000 0 58%, transparent 76%);
  mask-image: radial-gradient(circle, #000 0 58%, transparent 76%);
  opacity: 0.42;
}

.contact__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.86fr);
  align-self: center;
  align-items: center;
  gap: clamp(48px, 6vw, 96px);
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.contact h2 {
  max-width: 640px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(38px, 4.1vw, 58px);
  line-height: 1.14;
}

.contact__lead {
  max-width: 560px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.95;
}

.contact__note {
  max-width: 560px;
  margin: 24px 0 0;
  border-left: 1px solid var(--gold);
  padding-left: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.contact-card {
  border-top: 1px solid var(--line);
  padding-top: 34px;
}

.contact-card__name {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.35;
}

.contact-details {
  display: grid;
  gap: 0;
  margin: 28px 0 0;
}

.contact-details__row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.contact-details__label {
  color: #9a7444;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.contact-details__value {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.72;
}

.contact-details__value--phone {
  display: inline-flex;
  align-items: center;
  font-size: clamp(20px, 1.9vw, 25px);
  font-weight: 700;
  letter-spacing: 0.02em;
  border-bottom: 1px solid transparent;
  transition:
    color 160ms ease,
    border-color 160ms ease;
}

.contact-details__value--phone:hover {
  color: #8f672f;
  border-bottom-color: var(--gold);
}

/* Footer ------------------------------------------------------------- */

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 26px 0 env(safe-area-inset-bottom, 0px);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* Responsive --------------------------------------------------------- */

@media (max-width: 980px) {
  :root {
    --header-height: 88px;
  }

  .site-header {
    min-height: var(--header-height);
    padding: 16px 22px;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    align-self: start;
    gap: 44px;
  }

  .contact {
    padding-top: calc(var(--header-height) + 64px);
  }
}

@media (max-width: 700px) {
  .brand {
    width: min(180px, 46vw);
  }

  .header-actions {
    gap: 10px;
  }

  .header-cta {
    min-height: 38px;
    padding: 0 13px;
    font-size: 14px;
  }

  .lang-switch {
    min-height: 38px;
    font-size: 13px;
  }

  .hero {
    padding: calc(var(--header-height) + 34px) 22px 104px;
  }

  .hero h1,
  html[lang="en"] .hero h1 {
    font-size: 42px;
    line-height: 1.28;
  }

  .hero__lead {
    margin-top: 26px;
    font-size: 17px;
    line-height: 1.86;
  }

  .scroll-cue {
    left: 22px;
    bottom: 34px;
  }

  .contact {
    padding: calc(var(--header-height) + 52px) 22px 30px;
  }

  .contact h2 {
    font-size: 32px;
  }

  .contact__lead {
    margin-top: 24px;
    font-size: 16px;
    line-height: 1.86;
  }

  .contact-card {
    padding-top: 28px;
  }

  .contact-details__row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 0;
  }

  .site-footer {
    padding-top: 22px;
  }
}

@media (max-width: 380px) {
  .header-cta {
    padding: 0 10px;
    font-size: 13px;
  }
}

@media (min-width: 981px) and (max-height: 760px) {
  :root {
    --header-height: 94px;
  }

  .hero {
    padding-top: calc(var(--header-height) + 26px);
    padding-bottom: 76px;
  }

  .contact {
    padding-top: calc(var(--header-height) + 34px);
    padding-bottom: 32px;
  }
}

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

  .hero__media {
    display: none;
  }
}
