:root {
  --ink: #0c1b22;
  --ink-soft: #3d5560;
  --muted: #6a808a;
  --line: rgba(12, 27, 34, 0.12);
  --bg: #f3f7f6;
  --bg-elevated: #ffffff;
  --ocean: #0b4f6c;
  --teal: #0f766e;
  --teal-bright: #14a39a;
  --sand: #d9c4a0;
  --hero-ink: #f4faf8;
  --shadow: 0 24px 60px rgba(11, 79, 108, 0.12);
  --radius: 4px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Sora", "Noto Sans TC", sans-serif;
  --font-body: "Noto Sans TC", "Sora", sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(20, 163, 154, 0.12), transparent 55%),
    radial-gradient(900px 500px at 90% 20%, rgba(11, 79, 108, 0.08), transparent 50%),
    linear-gradient(180deg, #eef5f4 0%, var(--bg) 40%, #e8f0ef 100%);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  color: #f4faf8;
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease), backdrop-filter 0.25s, color 0.25s;
}

.site-header .logo-mark,
.site-header .logo-zh {
  color: #f4faf8;
}

.site-header .logo-en {
  color: rgba(244, 250, 248, 0.7);
}

.site-header .site-nav a {
  color: rgba(244, 250, 248, 0.88);
}

.site-header .nav-toggle span {
  background: #f4faf8;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(243, 247, 246, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.site-header.is-scrolled .logo-mark {
  color: var(--teal);
}

.site-header.is-scrolled .logo-zh {
  color: var(--ink);
}

.site-header.is-scrolled .logo-en {
  color: var(--muted);
}

.site-header.is-scrolled .site-nav a {
  color: var(--ink-soft);
}

.site-header.is-scrolled .nav-toggle span {
  background: var(--ink);
}

.header-inner {
  width: min(100% - 2.5rem, var(--max));
  margin: 0.85rem auto 0;
  min-height: calc(var(--header-h) - 12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.site-header.is-scrolled .header-inner {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.55);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
}

.logo-mark {
  width: 2rem;
  height: 2rem;
  color: var(--teal);
  display: grid;
  place-items: center;
}

.logo-mark svg {
  width: 100%;
  height: 100%;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-zh {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.logo-en {
  font-family: var(--font-display);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.site-nav a {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.site-header:not(.is-scrolled) .site-nav a:hover,
.site-header:not(.is-scrolled) .site-nav a:focus-visible {
  color: #fff;
}

.site-header.is-scrolled .site-nav a:hover,
.site-header.is-scrolled .site-nav a:focus-visible {
  color: var(--ocean);
}

.nav-cta {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--ocean);
  color: #fff !important;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--teal) !important;
  color: #fff !important;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin: 0.28rem auto;
  background: var(--ink);
  transition: transform 0.2s var(--ease), opacity 0.2s;
}

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

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

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--hero-ink);
}

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

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

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 28, 36, 0.45) 0%, rgba(8, 28, 36, 0.38) 45%, rgba(8, 28, 36, 0.55) 100%),
    linear-gradient(90deg, rgba(8, 28, 36, 0.62) 0%, rgba(8, 28, 36, 0.28) 48%, transparent 72%);
}

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

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
  color: #fff;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}

.hero h1 {
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 500;
  margin-bottom: 0.85rem;
  color: rgba(244, 250, 248, 0.92);
}

.hero-lead {
  font-size: 1.05rem;
  color: rgba(244, 250, 248, 0.84);
  max-width: 32rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

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

.btn:focus-visible {
  outline: 2px solid var(--teal-bright);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--teal-bright);
  color: #042826;
}

.btn-primary:hover {
  background: #2bbfb4;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.75);
}

.btn-lg {
  padding: 1rem 1.6rem;
  font-size: 1rem;
}

/* Sections */
.section {
  padding: clamp(4.5rem, 9vw, 7rem) 0;
}

.section-intro {
  max-width: 38rem;
  margin-bottom: 2.75rem;
}

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

.section h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  color: var(--ink);
}

.section-lead {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: 0;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}

.about-block h3 {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ocean);
  margin-bottom: 0.6rem;
}

.about-block p {
  color: var(--ink-soft);
  margin: 0;
}

/* Services — editorial rows, not card decks */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.service-item {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.service-item.reverse {
  direction: rtl;
}

.service-item.reverse > * {
  direction: ltr;
}

.service-visual {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1;
  background: #dfeceb;
}

.service-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.service-item:hover .service-visual img {
  transform: scale(1.03);
}

.service-tag {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.service-body h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  margin-bottom: 0.75rem;
}

.service-body > p {
  color: var(--ink-soft);
}

.service-body ul {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.55rem;
}

.service-body li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--ink);
  font-size: 0.95rem;
}

.service-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.45rem;
  height: 1px;
  background: var(--teal);
}

/* Approach */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: none;
}

.steps li {
  padding-top: 1.25rem;
  border-top: 2px solid var(--teal);
}

.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.steps h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.steps p {
  color: var(--ink-soft);
  margin: 0;
}

/* Contact */
.contact-panel {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: end;
  padding: clamp(2rem, 4vw, 3rem);
  background:
    linear-gradient(135deg, rgba(11, 79, 108, 0.06), rgba(15, 118, 110, 0.1)),
    var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.contact .section-lead {
  max-width: 28rem;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

.contact-note {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Footer */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.footer-en {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-meta {
  display: grid;
  gap: 0.4rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.footer-meta a {
  color: var(--ocean);
  cursor: pointer;
  transition: color 0.2s;
}

.footer-meta a:hover {
  color: var(--teal);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
}

.footer-nav a {
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--ocean);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.2%, -0.8%, 0);
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-media img,
  .service-visual img,
  .btn {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .about-grid,
  .steps,
  .footer-grid,
  .contact-panel,
  .service-item,
  .service-item.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .service-visual {
    max-width: 420px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 1.25rem;
    right: 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .site-nav a,
  .site-header:not(.is-scrolled) .site-nav a,
  .site-header.is-scrolled .site-nav a {
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    color: var(--ink-soft);
  }

  .site-nav a:hover,
  .site-header:not(.is-scrolled) .site-nav a:hover {
    color: var(--ocean);
  }

  .nav-cta {
    text-align: center;
  }

  .header-inner {
    position: relative;
    margin-top: 0.65rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
  }

  .site-header .logo-mark {
    color: var(--teal);
  }

  .site-header .logo-zh {
    color: var(--ink);
  }

  .site-header .logo-en {
    color: var(--muted);
  }

  .site-header .nav-toggle span {
    background: var(--ink);
  }

  .hero-content {
    padding-bottom: 2rem;
  }

  .hero-brand {
    font-size: clamp(1.15rem, 5.2vw, 1.55rem);
    white-space: normal;
    line-height: 1.35;
  }

  .contact-actions {
    align-items: stretch;
  }

  .btn-lg {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .wrap,
  .hero-content,
  .header-inner {
    width: min(100% - 1.5rem, var(--max));
  }

  .hero-brand {
    font-size: 1.05rem;
    letter-spacing: 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
