:root {
  --ink: #080808;
  --white: #ffffff;
  --body: #363636;
  --body-mid: #5a5a5a;
  --mute: #898989;
  --hairline: #d8d8d8;
  --info: #146ef5;
  --purple: #7a3dff;
  --blue: #3b89ff;
  --orange: #ff6b00;
  --pink: #ed52cb;
  --green: #00d722;
  --yellow: #ffae13;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, "Noto Sans SC", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--ink); text-decoration: none; }

/* ---- layout wrapper: recreates the 48px inner padding of the 1280 canvas ---- */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
}

/* ---- accent dots ---- */
.dot { width: 8px; height: 8px; border-radius: 9999px; display: inline-block; flex-shrink: 0; }
.dot-lg { width: 10px; height: 10px; border-radius: 9999px; display: inline-block; }
.dot-purple { background: var(--purple); }
.dot-blue { background: var(--blue); }
.dot-orange { background: var(--orange); }
.dot-pink { background: var(--pink); }
.dot-green { background: var(--green); }
.dot-yellow { background: var(--yellow); }

/* ---- eyebrows ---- */
.eyebrow {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--body-mid);
}
.eyebrow-light { color: rgba(255, 255, 255, 0.6); }

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.btn-solid { background: var(--white); color: var(--ink); }
.btn-solid:hover { background: #f0f0f0; color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover { border-color: var(--white); color: var(--white); }

/* ============ NAV ============ */
.nav-band { background: var(--ink); color: var(--white); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo { font-size: 16px; font-weight: 600; color: var(--white); }
.logo-dot { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links > a:not(.btn) {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  transition: color .15s ease;
}
.nav-links > a:not(.btn):hover { color: var(--info); }
.nav .btn-solid { font-size: 14px; font-weight: 500; padding: 10px 20px; }

.lang-toggle {
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  padding: 6px 12px;
  font-family: inherit;
  transition: border-color .15s ease;
}
.lang-toggle:hover { border-color: var(--white); }

/* ============ HERO ============ */
.hero-band { background: var(--ink); color: var(--white); }
.hero {
  padding-top: 112px;
  padding-bottom: 104px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  text-align: center;
}
.eyebrow-row { display: flex; gap: 8px; align-items: center; }
.eyebrow-row .eyebrow { margin-left: 8px; opacity: 0.7; }
.hero-title {
  margin: 0;
  font-size: 76px;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.8px;
  max-width: 980px;
  text-wrap: balance;
}
.hero-sub {
  margin: 0;
  font-size: 20px;
  line-height: 1.6;
  opacity: 0.72;
  max-width: 720px;
  text-wrap: pretty;
}
.hero-ctas { display: flex; gap: 12px; }

/* ============ PORTFOLIO / WORK ============ */
.works-band { background: var(--white); }
.works {
  padding-top: 88px;
  padding-bottom: 88px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.section-head { display: flex; flex-direction: column; gap: 8px; }
.works-title { margin: 0; font-size: 44px; font-weight: 600; color: var(--ink); }
.work-rows { display: flex; flex-direction: column; }
.work-row {
  display: grid;
  grid-template-columns: 72px 320px 1fr 150px;
  gap: 32px;
  align-items: baseline;
  padding: 36px 0;
  border-top: 1px solid var(--hairline);
  transition: background .15s ease;
}
.work-row-last { border-bottom: 1px solid var(--hairline); }
.work-row:hover { background: #fafafa; }
.work-num { font-size: 15px; font-weight: 500; color: var(--mute); }
.work-name { display: flex; flex-direction: column; gap: 6px; }
.work-brand { font-size: 36px; font-weight: 600; color: var(--ink); line-height: 1.05; }
.work-tag { display: flex; align-items: center; gap: 8px; }
.work-tag span:last-child {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.6px;
  color: var(--body-mid);
}
.work-desc { font-size: 16px; line-height: 1.65; color: var(--body); text-wrap: pretty; }
.work-link { font-size: 14px; font-weight: 500; color: var(--ink); text-align: right; }

/* ============ EXPERTISE ============ */
.exp-band { background: var(--ink); color: var(--white); }
.exp {
  padding-top: 88px;
  padding-bottom: 88px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.exp-head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.exp-title { margin: 0; font-size: 44px; font-weight: 600; line-height: 1.08; text-wrap: balance; }
.exp-sub { margin: 0; font-size: 17px; line-height: 1.65; opacity: 0.7; text-wrap: pretty; }
.exp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  overflow: hidden;
}
.exp-cell {
  background: var(--ink);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.exp-cell-title { font-size: 19px; font-weight: 500; }
.exp-cell-desc { font-size: 14px; line-height: 1.6; opacity: 0.65; text-wrap: pretty; }

/* ============ SERVICES + ABOUT ============ */
.sa-band { background: var(--white); }
.sa {
  padding-top: 88px;
  padding-bottom: 88px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.services, .about { display: flex; flex-direction: column; gap: 24px; }
.sa-title {
  margin: 0;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;
}
.svc-rows { display: flex; flex-direction: column; }
.svc-row { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid var(--hairline); }
.svc-row-last { border-bottom: 1px solid var(--hairline); }
.svc-num { font-size: 14px; font-weight: 500; color: var(--mute); width: 32px; flex-shrink: 0; }
.svc-body { display: flex; flex-direction: column; gap: 4px; }
.svc-title { font-size: 18px; font-weight: 500; color: var(--ink); }
.svc-desc { font-size: 14px; line-height: 1.6; color: var(--body-mid); }

.about-body { margin: 0; font-size: 16px; line-height: 1.75; color: var(--body); text-wrap: pretty; }
.contact-card {
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}
.contact-field { display: flex; flex-direction: column; gap: 4px; }
.contact-label { font-size: 12px; font-weight: 500; letter-spacing: 1.5px; color: var(--mute); }
.contact-value { font-size: 15px; line-height: 1.55; color: var(--ink); }
.contact-email:hover { color: var(--info); }

/* ============ LEGAL PAGES ============ */
.legal-hero { background: var(--ink); color: var(--white); }
.legal-hero-inner { padding-top: 72px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 12px; }
.legal-title { margin: 0; font-size: 48px; font-weight: 600; letter-spacing: -0.5px; line-height: 1.08; }
.legal-updated { font-size: 14px; opacity: 0.6; }

.legal-band { background: var(--white); }
.legal { padding-top: 64px; padding-bottom: 88px; max-width: 880px; }
.legal h2 { font-size: 22px; font-weight: 600; color: var(--ink); margin: 40px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p { margin: 0 0 14px; font-size: 15.5px; line-height: 1.75; color: var(--body); text-wrap: pretty; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { font-size: 15.5px; line-height: 1.75; color: var(--body); margin-bottom: 6px; }
.legal a { color: var(--info); }

/* language-scoped blocks: default English; swap when <html lang="zh-CN"> */
.lang-zh { display: none; }
html[lang="zh-CN"] .lang-zh { display: revert; }
html[lang="zh-CN"] .lang-en { display: none; }

/* ============ FOOTER ============ */
.footer-band { background: var(--ink); color: rgba(255, 255, 255, 0.65); }
.footer {
  padding-top: 28px;
  padding-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-legal { font-size: 13px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: rgba(255, 255, 255, 0.65); }
.footer-links a:hover { color: var(--white); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .work-row { grid-template-columns: 56px 1fr; gap: 12px 24px; }
  .work-desc { grid-column: 2; }
  .work-link { grid-column: 2; text-align: left; }
}

@media (max-width: 900px) {
  .wrap { padding-left: 28px; padding-right: 28px; }
  .hero { padding-top: 80px; padding-bottom: 72px; }
  .hero-title { font-size: 52px; }
  .hero-sub { font-size: 18px; }
  .works-title, .exp-title { font-size: 34px; }
  .legal-title { font-size: 36px; }
  .exp-grid { grid-template-columns: 1fr 1fr; }
  .sa { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 640px) {
  .nav { flex-wrap: wrap; gap: 12px; }
  .nav-links { gap: 16px; flex-wrap: wrap; }
  .hero-title { font-size: 40px; letter-spacing: -0.4px; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; }
  .exp-grid { grid-template-columns: 1fr; }
  .work-brand { font-size: 28px; }
  .footer { flex-direction: column; gap: 12px; align-items: flex-start; }
}
