:root {
  color-scheme: dark;
  --bg: #050607;
  --panel: #101317;
  --panel-2: #15191f;
  --text: #f5f7f8;
  --muted: #a7afb8;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #70e8ff;
  --accent-2: #a67cff;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 70% 12%, rgba(91, 55, 173, 0.12), transparent 33rem),
    radial-gradient(circle at 12% 34%, rgba(45, 163, 193, 0.08), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 6, 7, 0.82);
  backdrop-filter: blur(18px);
}
.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand img { width: 152px; height: auto; }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a {
  padding: 9px 15px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  border-color: rgba(112, 232, 255, 0.38);
  color: var(--text);
}

.hero { padding: clamp(70px, 10vw, 140px) 0 80px; }
.hero-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 7vw, 90px);
  align-items: center;
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; line-height: 1.12; }
h1 { font-size: clamp(2.6rem, 7vw, 6.3rem); letter-spacing: -0.055em; }
h2 { font-size: clamp(2rem, 4.5vw, 4rem); letter-spacing: -0.04em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.65rem); }
.hero-copy > p:not(.eyebrow) { max-width: 42rem; color: var(--muted); }
.lede { font-size: clamp(1rem, 1.5vw, 1.25rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.button.primary { background: var(--text); color: #050607; }
.button:hover { border-color: var(--accent); }

.collage {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  grid-template-rows: repeat(2, minmax(130px, 1fr));
  gap: 9px;
  padding: 9px;
  background: #000;
  transform: rotate(-2deg);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage img:nth-child(2) { grid-row: span 2; }

.section { padding: clamp(70px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.section-heading {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 42px;
  align-items: end;
  margin-bottom: 44px;
}
.section-heading p { margin: 0; color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card, .project-card {
  background: linear-gradient(150deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
}
.service-card { padding: 28px; min-height: 250px; }
.service-card .number { color: var(--accent); font-size: 0.75rem; font-weight: 800; }
.service-card h3 { margin: 42px 0 12px; }
.service-card p { margin: 0; color: var(--muted); }

.feature-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.media-card { position: relative; overflow: hidden; border: 1px solid var(--line); background: #090b0d; }
.media-card img, .media-card video { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.media-card figcaption { padding: 14px 16px; color: var(--muted); font-size: 0.86rem; }

.client-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.client-grid div {
  min-height: 105px;
  display: grid;
  place-items: center;
  padding: 18px;
  background: white;
}
.client-grid img { max-height: 58px; width: auto; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-card { padding: 30px; border: 1px solid var(--line); background: var(--panel); }
.contact-card p { margin: 8px 0; color: var(--muted); }
.contact-card a { color: var(--accent); }

.page-hero { padding: 90px 0 50px; }
.page-hero p { max-width: 700px; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.gallery .media-card:first-child { grid-column: span 2; }
.gallery .media-card:first-child img { aspect-ratio: 21/9; }
.project-list { display: grid; gap: 24px; }
.project-card { display: grid; grid-template-columns: 1.05fr 0.95fr; overflow: hidden; }
.project-card:nth-child(even) .project-media { order: 2; }
.project-media img, .project-media video { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.project-copy { padding: clamp(28px, 5vw, 62px); display: flex; flex-direction: column; justify-content: center; }
.project-copy p { color: var(--muted); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag { padding: 5px 10px; border: 1px solid var(--line); color: var(--muted); font-size: 0.75rem; }

.site-footer { padding: 28px 0; border-top: 1px solid var(--line); color: #79818b; font-size: 0.78rem; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 820px) {
  .hero-grid, .section-heading, .contact-grid, .project-card { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .feature-strip { grid-template-columns: 1fr 1fr; }
  .client-grid { grid-template-columns: repeat(3, 1fr); }
  .project-card:nth-child(even) .project-media { order: 0; }
  .project-media img, .project-media video { min-height: 300px; }
}

@media (max-width: 560px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .nav { min-height: 66px; }
  .brand img { width: 118px; }
  .nav-links a { padding: 8px; font-size: 0.67rem; }
  .hero { padding-top: 52px; }
  .collage { grid-template-rows: repeat(2, 105px); }
  .feature-strip, .gallery { grid-template-columns: 1fr; }
  .gallery .media-card:first-child { grid-column: span 1; }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; }
}
