:root {
  --ink: #071018;
  --ink-soft: #0f1c28;
  --harbor: #163447;
  --mist: #d7e0e8;
  --paper: #f3f6f8;
  --brass: #c4a06a;
  --brass-bright: #d9b87a;
  --text: #14202c;
  --muted: #5d6d7c;
  --line: rgba(20, 32, 44, 0.12);
  --white: #ffffff;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-ui: "Outfit", "Noto Sans TC", system-ui, sans-serif;
  --font-zh: "Noto Sans TC", "Outfit", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: var(--font-ui);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.is-zh {
  font-family: var(--font-zh);
}

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

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

address {
  font-style: normal;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1.5rem;
  color: var(--white);
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease), color 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(7, 16, 24, 0.88);
  backdrop-filter: blur(14px);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  z-index: 2;
}

.brand-mark {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--brass-bright), var(--brass));
  box-shadow: 0 0 0 3px rgba(196, 160, 106, 0.18);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav {
  display: none;
  gap: 1.6rem;
  margin-left: 1rem;
}

.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0.82;
  transition: opacity 0.2s ease;
}

.nav a:hover {
  opacity: 1;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: inline-flex;
  padding: 0.2rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0.7;
}

.lang-btn.is-active {
  background: rgba(255, 255, 255, 0.14);
  opacity: 1;
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.4rem;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  transition: transform 0.25s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto;
  z-index: 49;
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.5rem 1.5rem;
  background: rgba(7, 16, 24, 0.96);
  backdrop-filter: blur(12px);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  color: var(--white);
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  background: var(--brass);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s ease, color 0.25s ease;
}

.btn:hover {
  background: var(--brass-bright);
  transform: translateY(-1px);
}

.btn-sm {
  display: none;
  min-height: 2.4rem;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: hero-drift 18s var(--ease) infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 16, 24, 0.45) 0%, rgba(7, 16, 24, 0.28) 35%, rgba(7, 16, 24, 0.78) 100%),
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(22, 52, 71, 0.35), transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 2.5rem));
  margin: 0 auto 5.5rem;
  padding-top: calc(var(--header-h) + 4rem);
}

.hero-brand {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--brass-bright);
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.15s forwards;
}

.hero h1 {
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6.5vw, 4.4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.3s forwards;
}

.hero-lead {
  margin: 1.35rem 0 0;
  max-width: 36rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.86);
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.45s forwards;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.6s forwards;
}

.hero-scroll {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1;
  writing-mode: vertical-rl;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
}

.section {
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
}

.section-head {
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}

.section h2 {
  margin: 0;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-desc {
  margin: 1rem 0 0;
  max-width: 36rem;
  color: var(--muted);
}

.about {
  background:
    linear-gradient(180deg, #eef3f7 0%, var(--paper) 100%);
}

.about-grid {
  display: grid;
  gap: 2.5rem;
}

.about-lead {
  margin: 0;
  max-width: 42rem;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

.about-points {
  display: grid;
  gap: 1.5rem;
}

.about-points article {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.about-points h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.about-points p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.services {
  background: var(--ink);
  color: var(--white);
}

.services .eyebrow {
  color: var(--brass-bright);
}

.services .section-desc {
  color: rgba(255, 255, 255, 0.65);
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.service-item {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: padding-left 0.35s var(--ease);
}

.service-item:hover {
  padding-left: 0.5rem;
}

.service-index {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--brass);
  padding-top: 0.35rem;
}

.service-item h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 600;
}

.service-item p {
  margin: 0;
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.68);
}

.company {
  background: var(--paper);
}

.corp-facts {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.corp-facts > div {
  display: grid;
  gap: 0.35rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.corp-facts dt {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.corp-facts dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
}

.contact {
  background:
    linear-gradient(160deg, var(--harbor) 0%, var(--ink) 55%, #0a1520 100%);
  color: var(--white);
}

.contact .eyebrow {
  color: var(--brass-bright);
}

.contact .section-desc {
  color: rgba(255, 255, 255, 0.65);
}

.contact-block {
  display: grid;
  gap: 2.5rem;
  padding-top: 0.5rem;
}

.contact-main h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brass-bright);
}

.contact-main address {
  font-size: 1.05rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

.contact-zh {
  margin: 1.25rem 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.98rem;
}

.contact-channels {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.contact-channels li {
  display: grid;
  gap: 0.2rem;
}

.contact-channels span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-bright);
}

.contact-channels a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  width: fit-content;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contact-channels a:hover {
  color: var(--brass-bright);
  border-color: var(--brass-bright);
}

.contact-note {
  margin: 1.35rem 0 0;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
}

.page-legal .site-header {
  background: rgba(7, 16, 24, 0.92);
}

.legal-main {
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  background: var(--paper);
  min-height: 70svh;
}

.legal-wrap h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.legal-updated {
  margin: 0.75rem 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-article {
  display: grid;
  gap: 1.75rem;
  max-width: 44rem;
}

.legal-article h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.legal-article p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.footer-meta {
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-links a:hover {
  color: var(--brass-bright);
  border-color: var(--brass-bright);
}

.site-footer {
  background: #050b11;
  color: rgba(255, 255, 255, 0.7);
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-brand strong {
  display: block;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
}

.footer-brand p {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-1.5%, -1%, 0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .btn-sm {
    display: inline-flex;
  }

  .menu-toggle {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: start;
  }

  .about-points {
    gap: 1.75rem;
  }

  .corp-facts {
    grid-template-columns: 1fr 1fr;
  }

  .corp-facts > div:nth-child(odd) {
    padding-right: 1.5rem;
  }

  .corp-facts > div:nth-child(even) {
    padding-left: 1.5rem;
    border-left: 1px solid var(--line);
  }

  .contact-block {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .footer-meta {
    text-align: right;
    justify-items: end;
  }

  .service-item {
    grid-template-columns: 5rem 1fr;
    gap: 1.5rem;
    padding: 1.85rem 0;
  }
}

@media (min-width: 1024px) {
  .site-header {
    padding: 0 2rem;
  }

  .container {
    width: min(1120px, calc(100% - 4rem));
  }

  .hero-content {
    margin-bottom: 6.5rem;
  }
}

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

  .hero-media img,
  .hero-brand,
  .hero h1,
  .hero-lead,
  .hero-cta,
  .reveal {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}
