:root {
  --bg: #f7f5f0;
  --ink: #17171a;
  --muted: #6a675f;
  --line: #e2ddd2;
  --gold: #a88a55;
  --gold-ink: #7d6436;
  --dark: #17171a;
  --max: 1160px;
  --pad: clamp(20px, 5vw, 48px);
  font-family: "Inter", "Noto Sans TC", system-ui, -apple-system, "PingFang TC", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, dl, dd, ol { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
section { scroll-margin-top: 72px; }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--pad);
  background: rgba(247, 245, 240, .9); backdrop-filter: blur(10px);
}
.logo { height: 30px; width: auto; }
.logo--sm { height: 22px; }
.top nav { display: flex; gap: clamp(18px, 4vw, 36px); font-size: 15px; font-weight: 700; }
.top nav a:hover { color: var(--gold-ink); }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 30px; border-radius: 999px; border: 1.5px solid var(--ink);
  background: var(--ink); color: #fff; font-weight: 700; letter-spacing: .06em;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--gold-ink); border-color: var(--gold-ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px); align-items: center;
  min-height: calc(100svh - 60px); padding-top: 4vh; padding-bottom: 8vh;
}
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .3em; color: var(--gold-ink); }
h1 { margin-top: 18px; font-size: clamp(34px, 5.6vw, 64px); font-weight: 900; line-height: 1.25; letter-spacing: -.01em; }
.nw { white-space: nowrap; }
.hl { background: linear-gradient(transparent 62%, rgba(168, 138, 85, .35) 62%); }
.lead { margin-top: 24px; font-size: clamp(16px, 2vw, 19px); color: var(--muted); }
.hero__video { justify-self: end; width: 100%; max-width: 380px; }
.hero__video video {
  width: 100%; aspect-ratio: 9 / 16; object-fit: cover;
  border-radius: 20px; background: #ddd; box-shadow: 0 30px 60px -30px rgba(0,0,0,.45);
}

/* ---------- section heads ---------- */
#works, #services, #process, #faq { padding-top: clamp(72px, 12vh, 140px); }
.head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; padding-bottom: 18px; border-bottom: 1px solid var(--ink); }
h2 { font-size: clamp(26px, 3.8vw, 40px); font-weight: 900; line-height: 1.3; }
.head p { color: var(--muted); }
h3 { font-size: 20px; font-weight: 800; line-height: 1.4; }
.no { font-family: "Inter", sans-serif; font-weight: 800; color: var(--gold); letter-spacing: .05em; }

/* ---------- works grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 20px); }
.tile { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 14px; background: #2a2a2e; color: #fff; }
.tile img, .tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile video { opacity: 0; transition: opacity .3s; }
.tile.is-playing video { opacity: 1; }
.tile:hover img { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,.85)); }
.tile__info { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: clamp(14px, 2vw, 22px); }
.tile__tags { font-size: 13px; opacity: .85; }
.tile__name { font-size: clamp(17px, 2vw, 22px); font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.tile__count { margin-top: 6px; font-size: 13px; color: #e8d7b4; font-weight: 700; }
.more { margin-top: 28px; text-align: right; font-weight: 700; }
.more a { border-bottom: 2px solid var(--gold); padding-bottom: 2px; }

/* ---------- service map ---------- */
.map {
  position: relative; display: grid; gap: 20px 32px;
  grid-template-columns: 1fr minmax(0, 1.15fr) 1fr;
  grid-template-areas: "a core b" "c core d"; align-items: center;
}
.map__lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.map__lines line { stroke: var(--gold); stroke-width: 1.2; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }
.core, .sat { position: relative; z-index: 1; }
.core {
  grid-area: core; align-self: center; justify-self: center;
  width: min(100%, 360px); aspect-ratio: 1; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 36px; background: var(--dark); color: #fff;
  box-shadow: 0 0 0 14px var(--bg), 0 0 0 15px var(--gold), 0 30px 60px -30px rgba(0,0,0,.5);
}
.core__tag { font-size: 13px; font-weight: 700; letter-spacing: .3em; color: #e8d7b4; }
.core h3 { margin-top: 6px; font-size: clamp(24px, 2.6vw, 30px); font-weight: 900; }
.core ul { margin: 14px 0 0; padding: 0; list-style: none; font-size: 15px; color: rgba(255,255,255,.8); line-height: 1.9; }
.sat { padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.sat--a { grid-area: a; } .sat--b { grid-area: b; } .sat--c { grid-area: c; } .sat--d { grid-area: d; }
.sat h3 { font-size: 15px; letter-spacing: .12em; color: var(--gold-ink); }
.sat ul { margin: 10px 0 0; padding: 0; list-style: none; }
.sat li { font-weight: 800; font-size: 17px; line-height: 1.5; padding: 4px 0; }
.sat small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }

/* ---------- dark blocks ---------- */
.dark { background: var(--dark); color: #fff; padding: clamp(72px, 14vh, 140px) 0; }
#secure { margin-top: clamp(80px, 14vh, 160px); }
.dark .eyebrow { color: #e8d7b4; margin-bottom: 18px; }
.dark h2 { font-size: clamp(34px, 6vw, 64px); }
.dark__lead { margin-top: 20px; color: rgba(255,255,255,.75); font-size: clamp(16px, 2vw, 18px); }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.steps li { padding: 24px; background: #fff; border-radius: 14px; }
.steps .no { display: block; margin-bottom: 10px; }
.steps p { margin-top: 6px; color: var(--muted); font-size: 15px; }

/* ---------- faq ---------- */
.faq > div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.faq > div:first-child { padding-top: 4px; }
.faq dt { font-weight: 800; font-size: 18px; }
.faq dd { margin-top: 6px; color: var(--muted); }

/* ---------- contact ---------- */
.contact { margin-top: clamp(80px, 14vh, 160px); }

/* ---------- footer ---------- */
.foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 40px; }
.foot p { font-size: 13px; color: var(--muted); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 6vh; }
  .hero__video { justify-self: center; max-width: 300px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "core core" "a b" "c d"; gap: 12px; align-items: stretch; }
  .map__lines { display: none; }
  .core { width: 100%; aspect-ratio: auto; border-radius: 20px; padding: 28px 24px; margin-bottom: 8px; box-shadow: none; }
}

@media (max-width: 480px) {
  :root { --pad: 16px; }
  .top nav { font-size: 14px; }
  .logo { height: 26px; }
  .actions .btn { flex: 1 1 auto; }
  .hero__video { max-width: 240px; }
  .sat { padding: 16px; }
  .sat h3 { font-size: 13px; letter-spacing: .06em; }
  .sat li { font-size: 15px; }
  .steps li { padding: 18px; }
  .tile__tags { font-size: 12px; }
}

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