:root {
  --cyan: #00a9d1;
  --cyan-deep: #008fb4;
  --ink: #142028;
  --muted: #4d5f68;
  --paper: #f3f7f8;
  --line: #d5e2e6;
  --white: #ffffff;
  --max: 1120px;
  --header: 76px;
  --shadow: 0 16px 40px rgba(20, 32, 40, 0.08);
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --en: "Outfit", "Noto Sans TC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--ink);
  color: var(--white);
  padding: 8px 12px;
  z-index: 50;
}
.skip:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--cyan);
  color: var(--ink);
}
.header-inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img {
  height: 40px;
  width: auto;
}
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--white); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  position: relative;
  margin: 0 auto;
}
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 56px;
  align-items: center;
  padding: 72px 0 36px;
}
.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 18px;
  height: 18px;
  background: var(--cyan);
  border-radius: 4px;
  flex: none;
}
.hero h1 {
  margin-top: 18px;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.16;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.lede {
  margin-top: 20px;
  max-width: 38em;
  color: var(--muted);
  font-size: 18px;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  border: 0;
  cursor: pointer;
}
.btn-cyan { background: var(--cyan); color: var(--white); }
.btn-cyan:hover { background: #008fb4; color: var(--white); }
.btn-line {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn-line:hover { background: var(--ink); color: var(--white); }
.btn-light {
  background: var(--white);
  color: var(--ink);
}
.btn-light:hover { background: var(--cyan); color: var(--white); }

.collage {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  grid-template-rows: 168px 210px;
  gap: 14px;
  min-height: 392px;
}
.shot {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot-a { grid-row: 1 / span 2; }
.shot-a img { object-position: center 18%; }
.shot-b img { object-position: center 42%; }
.shot-c img { object-position: center 30%; }
.shot img.cover-top,
.work-media img.cover-top { object-position: center top; }
.case-visual.stack { position: static; }
.case-visual.stack img + img { margin-top: 14px; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 28px;
}
.facts li {
  padding: 22px 20px 22px 0;
}
.facts li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.facts strong { display: block; font-size: 18px; font-weight: 700; }
.facts span { color: var(--muted); font-size: 14px; }

.section { padding: 88px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-bottom: 36px;
}
.section-head h2,
.page-intro h1,
.case-copy h1 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.section-head p,
.page-intro .lede { margin-top: 12px; }
.text-link {
  text-decoration: none;
  font-weight: 500;
  border-bottom: 2px solid var(--cyan);
  padding-bottom: 2px;
  white-space: nowrap;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.pillar {
  padding: 28px 28px 8px 0;
  text-decoration: none;
  border-right: 1px solid var(--line);
}
.pillar:last-child { border-right: 0; padding-right: 0; }
.pillar:not(:first-child) { padding-left: 28px; }
.pillar:hover h3 { box-shadow: inset 0 -8px 0 var(--cyan); }
.num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 32px;
  padding: 0 8px;
  background: var(--cyan);
  border-radius: 8px;
  font-family: var(--en);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.pillar h3, .scale h3, .person h3, .step h3 { margin: 16px 0 8px; font-size: 22px; }
.pillar p, .scale p, .step p, .person p, .prose p { color: var(--muted); }
.pillar .go { display: inline-block; margin-top: 18px; font-weight: 500; color: var(--ink); }

.band { background: var(--paper); }
.feature-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-auto-rows: auto;
  gap: 18px;
}
.feature-grid .work-card:first-child { grid-row: span 2; }
.feature-grid .work-card:first-child .work-media { height: 100%; min-height: 460px; }

.work-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  min-width: 0;
}
.work-media {
  height: 230px;
  border-radius: 16px;
  overflow: hidden;
  background: #e7eef1;
}
.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.work-card:hover .work-media img { transform: scale(1.04); }
.work-meta { padding: 14px 2px 6px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--cyan);
}
.work-meta h2, .work-meta h3 {
  margin-top: 4px;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.work-card[hidden] { display: none; }

.catalog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 18px;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  border: 0;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--line);
  border-radius: 999px;
  min-height: 40px;
  padding: 0 16px;
  cursor: pointer;
}
.filter.is-on { background: var(--cyan); color: var(--white); box-shadow: none; font-weight: 500; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.step { padding-top: 4px; }

.quote-band {
  background: var(--ink);
  color: var(--white);
}
.quote-band .wrap {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 40px;
  align-items: end;
  padding-top: 72px;
  padding-bottom: 72px;
}
.quote-band h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.25;
  letter-spacing: -0.03em;
}
.quote-band p { color: #c5d4da; margin-top: 16px; max-width: 40em; }
.quote-band .actions { margin-top: 0; justify-content: flex-end; }

.contact-strip {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  padding: 36px 0;
}
.contact-strip a { text-decoration: none; font-weight: 500; }
.contact-strip span, .fine { color: var(--muted); display: block; font-size: 14px; }

.page-intro { padding: 64px 0 12px; }
.page-intro .lede { font-size: 18px; }

.prose { max-width: 44em; }
.prose p + p { margin-top: 16px; }
.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}
.frame {
  background: var(--paper);
  border-radius: 20px;
  padding: 20px;
}
.frame img { width: 100%; height: auto; border-radius: 12px; }

.skill-grid, .scale-grid, .team-grid {
  display: grid;
  gap: 18px;
}
.skill-grid { grid-template-columns: 1fr 1fr; margin-top: 28px; }
.skill {
  background: var(--paper);
  border-radius: 16px;
  padding: 22px 22px 8px;
}
.skill h3 { font-size: 18px; margin-bottom: 8px; }
.skill li { color: var(--muted); padding: 4px 0 4px 14px; position: relative; }
.skill li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 2px;
  position: absolute;
  left: 0;
  top: 0.85em;
}

.scale-grid { grid-template-columns: repeat(3, 1fr); }
.scale {
  border-top: 4px solid var(--cyan);
  padding-top: 18px;
}
.scale .when {
  font-family: var(--en);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.team-grid { grid-template-columns: 1.3fr repeat(3, 0.7fr); }
.person {
  background: var(--paper);
  border-radius: 16px;
  padding: 22px;
  min-height: 180px;
}
.person.lead { background: var(--ink); color: var(--white); }
.person.lead p { color: #c5d4da; }
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--cyan);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--en);
  font-weight: 600;
}
.role { color: var(--muted); font-size: 14px; }
.person.lead .role { color: #9fb4bc; }

.case-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 24px;
}
.case-visual {
  background: var(--paper);
  border-radius: 20px;
  padding: 18px;
  position: sticky;
  top: 96px;
}
.case-visual img { width: 100%; border-radius: 12px; }
.meta-list { margin-top: 28px; border-top: 1px solid var(--line); }
.meta-list div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.meta-list dt { color: var(--muted); }
.pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 22px 0 0;
  margin-top: 12px;
}
.pager a { text-decoration: none; font-weight: 500; }
.pager span { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.contact-card {
  background: var(--ink);
  color: var(--white);
  border-radius: 20px;
  padding: 28px;
}
.contact-card a { color: var(--white); text-decoration: none; }
.contact-card p + p, .contact-card a { display: block; }
.contact-card .label { color: #9fb4bc; font-size: 13px; margin-top: 18px; }
.contact-card a:hover { color: var(--cyan); }
.form {
  display: grid;
  gap: 14px;
}
.field { display: grid; gap: 6px; }
.field span { font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 169, 209, 0.18);
}
.form-error { color: #9d2c2c; font-size: 14px; }
.form-note { color: var(--muted); font-size: 14px; }

.site-footer {
  background: #0e181d;
  color: #d5e2e7;
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.1fr;
  gap: 28px;
}
.footer-logo { height: 36px; width: auto; margin-bottom: 12px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--cyan); }
.footer-label {
  font-family: var(--en);
  letter-spacing: 0.14em;
  font-size: 12px;
  color: #8ea4ad;
  margin-bottom: 8px;
}
.site-footer nav { display: grid; gap: 6px; }
.footer-base {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #8ea4ad;
  font-size: 13px;
}

@media (max-width: 900px) {
  .hero, .split, .quote-band .wrap, .case-layout, .contact-grid, .team-grid {
    grid-template-columns: 1fr;
  }
  .pillars, .steps, .facts, .catalog, .scale-grid, .feature-grid, .footer-grid, .contact-strip, .skill-grid {
    grid-template-columns: 1fr;
  }
  .feature-grid .work-card:first-child { grid-row: auto; }
  .feature-grid .work-card:first-child .work-media { min-height: 0; height: 240px; }
  .pillar, .pillar:not(:first-child), .facts li, .facts li + li {
    border: 0;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
  }
  .collage {
    grid-template-columns: 1fr;
    grid-template-rows: 240px;
    min-height: 0;
  }
  .shot-b, .shot-c { display: none; }
  .shot-a { grid-row: auto; }
  .quote-band .actions { justify-content: flex-start; }
  .case-visual { position: static; }
  .section { padding: 64px 0; }
  .nav-toggle { display: grid; place-items: center; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    padding: 8px 24px 18px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  body.nav-open .site-nav { display: flex; }
  .site-nav a {
    color: var(--ink);
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--ink); }
  .header-inner { position: static; }
  .site-header { position: sticky; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .work-media img { transition: none; }
}
