:root {
  --paper: #f4f2ec;
  --paper-bright: #fbfaf6;
  --ink: #171b19;
  --ink-soft: #555c58;
  --line: #d4d5cf;
  --teal: #147f72;
  --teal-dark: #0c5d54;
  --coral: #e56d4d;
  --lime: #dfee70;
  --white: #ffffff;
  --header-height: 78px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

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

h1,
h2,
h3 {
  font-family: "Songti TC", "Noto Serif TC", "PMingLiU", serif;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.08;
}

h2 {
  margin-bottom: 0;
  font-size: 54px;
}

.container {
  width: min(calc(100% - 64px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

.eyebrow {
  margin-bottom: 22px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section {
  padding-block: 124px;
}

.section-heading {
  max-width: 680px;
}

.section-heading > p:last-child:not(.eyebrow) {
  margin-top: 26px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled,
.site-header.menu-active {
  border-color: var(--line);
  background: rgba(244, 242, 236, 0.96);
  color: var(--ink);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 220px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
}

.site-nav a {
  position: relative;
  white-space: nowrap;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--coral);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 6px auto;
  background: currentColor;
  transition: transform 180ms ease;
}

.hero {
  position: relative;
  min-height: 720px;
  height: 94vh;
  max-height: 920px;
  overflow: hidden;
  background: #232927;
  color: var(--white);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
  object-position: center;
  transform: scale(1.015);
  animation: heroSettle 1200ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-shade {
  background: rgba(9, 15, 13, 0.68);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding-top: var(--header-height);
}

.hero-eyebrow {
  color: var(--lime);
  animation: riseIn 640ms 120ms both;
}

.hero h1 {
  max-width: 950px;
  margin-bottom: 34px;
  font-size: 96px;
  text-wrap: balance;
  animation: riseIn 720ms 180ms both;
}

.hero-copy {
  max-width: 610px;
  margin-bottom: 38px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 21px;
  animation: riseIn 720ms 260ms both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  animation: riseIn 720ms 340ms both;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 146px;
  min-height: 50px;
  padding: 10px 22px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button-primary {
  background: var(--lime);
  color: var(--ink);
}

.button-primary:hover {
  background: var(--white);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.52);
  color: var(--white);
}

.button-ghost:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
}

.hero-scroll {
  position: absolute;
  z-index: 2;
  right: 4vw;
  bottom: 30px;
  display: grid;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  color: var(--white);
  place-items: center;
}

.section-about {
  background: var(--paper);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.7fr);
  gap: 72px 100px;
  align-items: start;
}

.about-copy {
  padding-top: 50px;
  color: var(--ink-soft);
}

.about-copy .lead {
  color: var(--ink);
  font-family: "Songti TC", "Noto Serif TC", serif;
  font-size: 25px;
  line-height: 1.6;
}

.about-figure {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.about-figure img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.03);
}

.about-figure figcaption {
  max-width: 520px;
  margin: 18px 0 0 auto;
  color: var(--ink-soft);
  font-size: 14px;
}

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

.section-dark .eyebrow {
  color: var(--lime);
}

.section-heading-wide {
  max-width: 880px;
  margin-bottom: 76px;
}

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

.service-item {
  display: grid;
  grid-template-columns: 100px minmax(220px, 0.72fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
  padding-block: 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.service-number {
  color: var(--coral);
  font-family: Georgia, serif;
  font-size: 14px;
}

.service-item h3 {
  margin-bottom: 0;
  font-size: 29px;
}

.service-item p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.62);
}

.section-directions {
  background: var(--paper-bright);
}

.directions-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  gap: 80px;
  align-items: end;
  max-width: none;
  margin-bottom: 64px;
}

.directions-heading > p {
  margin-bottom: 8px;
  color: var(--ink-soft);
}

.direction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.direction-item {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.direction-featured {
  grid-row: span 2;
  min-height: 984px;
}

.direction-item::after {
  position: absolute;
  inset: 0;
  background: rgba(8, 13, 11, 0.38);
  content: "";
  transition: background-color 240ms ease;
}

.direction-item:hover::after {
  background: rgba(8, 13, 11, 0.22);
}

.direction-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.direction-item:hover img {
  transform: scale(1.035);
}

.direction-copy {
  position: absolute;
  z-index: 1;
  right: 38px;
  bottom: 36px;
  left: 38px;
}

.direction-copy span {
  color: var(--lime);
  font-size: 12px;
  font-weight: 700;
}

.direction-copy h3 {
  margin: 10px 0 12px;
  font-size: 38px;
}

.direction-copy p {
  max-width: 440px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
}

.section-compliance {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.compliance-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 120px;
  align-items: start;
}

.policy-list {
  border-top: 1px solid var(--ink);
}

.policy-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 76px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  text-align: left;
  cursor: pointer;
}

.policy-list a span:last-child {
  color: var(--teal);
  font-size: 20px;
  transition: transform 180ms ease;
}

.policy-list a:hover span:last-child {
  transform: translate(3px, -3px);
}

.section-contact {
  background: var(--teal-dark);
  color: var(--white);
}

.section-contact .eyebrow {
  color: var(--lime);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: 120px;
}

.company-details {
  margin-bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.38);
}

.company-details > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  padding-block: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.company-details dt {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.company-details dd {
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.site-footer {
  padding-block: 48px;
  background: #101311;
  color: var(--white);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}

.footer-brand {
  font-family: "Songti TC", "Noto Serif TC", serif;
  font-size: 22px;
}

.footer-inner p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 26px;
}

.footer-links a {
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.policy-page {
  min-height: 100vh;
  background: var(--paper);
}

.policy-main {
  padding: 150px 0 110px;
}

.policy-article {
  width: min(calc(100% - 64px), 860px);
  margin-inline: auto;
}

.policy-back {
  display: inline-flex;
  margin-bottom: 54px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 700;
}

.policy-article h1 {
  margin-bottom: 40px;
  color: var(--ink);
  font-size: 64px;
}

.policy-content {
  border-top: 1px solid var(--ink);
}

.policy-content h3 {
  margin: 30px 0 10px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
}

.policy-content p,
.policy-content li {
  color: var(--ink-soft);
  font-size: 15px;
}

.policy-content ul {
  padding-left: 20px;
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 620ms ease, transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

@keyframes heroSettle {
  to {
    transform: scale(1);
  }
}

@media (max-width: 1000px) {
  :root {
    --header-height: 70px;
  }

  h2 {
    font-size: 46px;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 20px 32px 30px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    transform: translateY(-120%);
    transition: transform 240ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
  }

  .site-nav a {
    padding-block: 15px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a::after {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .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);
  }

  .hero h1 {
    font-size: 72px;
  }

  .about-grid,
  .compliance-grid,
  .contact-grid {
    gap: 64px;
  }

  .service-item {
    grid-template-columns: 64px minmax(180px, 0.72fr) minmax(240px, 1fr);
  }

  .directions-heading {
    gap: 48px;
  }

  .direction-item {
    min-height: 390px;
  }

  .direction-featured {
    min-height: 804px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 36px), var(--container));
  }

  .section {
    padding-block: 84px;
  }

  h2 {
    font-size: 38px;
  }

  .brand {
    min-width: 0;
  }

  .brand-name {
    font-size: 15px;
  }

  .hero {
    min-height: 650px;
    height: 88vh;
    max-height: 780px;
  }

  .hero-media {
    object-position: 58% center;
  }

  .hero h1 {
    margin-bottom: 26px;
    font-size: 54px;
  }

  .hero-copy {
    font-size: 18px;
  }

  .hero-scroll {
    display: none;
  }

  .about-grid,
  .compliance-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .about-copy {
    padding-top: 0;
  }

  .about-copy .lead {
    font-size: 22px;
  }

  .about-figure img {
    aspect-ratio: 4 / 3;
  }

  .section-heading-wide {
    margin-bottom: 54px;
  }

  .service-item {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px 14px;
  }

  .service-item p {
    grid-column: 2;
  }

  .service-item h3 {
    font-size: 25px;
  }

  .directions-heading {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 42px;
  }

  .direction-grid {
    grid-template-columns: 1fr;
  }

  .direction-item,
  .direction-featured {
    grid-row: auto;
    min-height: 480px;
  }

  .direction-copy {
    right: 24px;
    bottom: 24px;
    left: 24px;
  }

  .direction-copy h3 {
    font-size: 32px;
  }

  .company-details > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .copyright {
    grid-column: 1;
  }

  .policy-article {
    width: min(calc(100% - 36px), 860px);
  }

  .policy-main {
    padding: 120px 0 84px;
  }

  .policy-article h1 {
    font-size: 42px;
  }
}

@media (max-width: 420px) {
  .brand-name {
    max-width: 150px;
    line-height: 1.25;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    width: min(100%, 280px);
  }

  .direction-item,
  .direction-featured {
    min-height: 420px;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

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

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