:root {
  --ink: #15171b;
  --muted: #61666f;
  --paper: #f5f6f7;
  --white: #ffffff;
  --line: #dfe2e6;
  --blue: #1e5ed8;
  --amber: #e6ad3f;
  --teal: #55ada4;
  --dark-teal: #176f69;
  --header-height: 74px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.7;
  letter-spacing: 0;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin-top: 0; line-height: 1.18; letter-spacing: 0; }

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(28px, calc((100% - 1180px) / 2));
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.22);
}
.site-header.solid {
  position: relative;
  color: var(--ink);
  background: var(--white);
  border-bottom-color: var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.brand img { width: 36px; height: 36px; border-radius: 6px; }
.brand-on-dark img { width: 176px; height: auto; border-radius: 0; }
nav { display: flex; gap: 26px; }
nav a, .back-link { text-decoration: none; font-size: 14px; }
nav a:hover, .back-link:hover, .footer-links a:hover, .legal-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

.hero {
  position: relative;
  min-height: 680px;
  height: min(82vh, 790px);
  display: flex;
  align-items: center;
  background: #23252a url("assets/hero-studio-web.jpg") center center / cover no-repeat;
  color: var(--white);
}
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,9,12,.82) 0%, rgba(7,9,12,.58) 48%, rgba(7,9,12,.24) 100%); }
.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 56px));
  margin: 24px auto 0;
}
.eyebrow { margin: 0 0 10px; color: #dfe7f9; font-size: 14px; font-weight: 700; }
.eyebrow.dark { color: var(--blue); }
.hero h1 { max-width: 760px; margin-bottom: 12px; font-size: 68px; }
.hero-lead { margin: 0 0 18px; color: var(--white); font-size: 25px; font-weight: 700; }
.hero-copy { max-width: 690px; margin: 0 0 30px; color: #eef0f3; font-size: 18px; }
.primary-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  color: var(--white);
  background: var(--blue);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
}
.primary-action:hover { background: #174bb2; }
.hero-spectrum {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 max(28px, calc((100% - 1180px) / 2));
  background: rgba(12,14,18,.74);
  border-top: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
}
.hero-spectrum span { min-width: 0; padding: 18px 18px 18px 0; color: #e7e9ed; font-size: 14px; }
.hero-spectrum span + span { padding-left: 18px; border-left: 1px solid rgba(255,255,255,.2); }

.section { width: min(1180px, calc(100% - 56px)); margin: 0 auto; padding: 88px 0; }
.section-heading { max-width: 760px; margin-bottom: 44px; }
.section-heading h2 { margin-bottom: 14px; font-size: 38px; }
.section-heading p:last-child { color: var(--muted); }
.split-heading { max-width: none; display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: end; }
.split-heading > p { margin: 0 0 6px; }

.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.work-card { position: relative; min-width: 0; overflow: hidden; aspect-ratio: 16 / 9; background: #1b1d21; border-radius: 6px; }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.work-card:hover img { transform: scale(1.025); }
.work-card::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(5,7,10,.9)); }
.work-copy { position: absolute; z-index: 1; inset: auto 24px 22px; color: var(--white); }
.work-copy span { color: #d9dde4; font-size: 13px; }
.work-copy h3 { margin: 5px 0 0; font-size: 23px; }
.archive-note { margin: 20px 0 0; color: var(--muted); font-size: 12px; }

.service-band { color: var(--white); background: #1d2228; }
.inverse-heading > p { color: #c9ced5; }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.18); }
.service-grid article { min-width: 0; padding: 30px 24px 8px 0; border-right: 1px solid rgba(255,255,255,.18); }
.service-grid article + article { padding-left: 24px; }
.service-grid article:last-child { border-right: 0; }
.service-grid span { color: var(--amber); font-weight: 700; }
.service-grid h3 { margin: 18px 0 10px; font-size: 21px; }
.service-grid p { margin: 0; color: #bdc3cb; font-size: 14px; }

.system-section { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: 78px; align-items: start; }
.system-brand { min-width: 0; background: var(--teal); }
.system-brand img { width: 100%; height: auto; }
.system-copy h2 { margin-bottom: 20px; font-size: 38px; }
.system-copy > p { color: var(--muted); }
.system-flow { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.system-flow li { display: grid; grid-template-columns: 108px 1fr; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.system-flow span { color: var(--muted); font-size: 14px; }
.test-note { font-size: 13px; }
.dark-note { margin-top: 22px; color: var(--dark-teal) !important; font-weight: 700; }

.compliance-band { background: var(--paper); border-block: 1px solid var(--line); }
.compliance { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 80px; }
.compliance-copy { padding-top: 28px; border-top: 1px solid var(--line); }
.compliance-copy p { margin-top: 0; color: var(--muted); }
.legal-links { display: flex; gap: 24px; margin-top: 24px; }
.legal-links a { color: var(--blue); font-weight: 700; text-decoration: none; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 34px max(28px, calc((100% - 1180px) / 2));
  color: #d9dde5;
  background: var(--ink);
  font-size: 13px;
}
footer strong, footer span { display: block; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 22px; }
.footer-links a { color: inherit; text-decoration: none; }

.legal-page { background: var(--paper); }
.legal-content { width: min(860px, calc(100% - 48px)); margin: 0 auto; padding: 72px 0 92px; }
.legal-content h1 { margin-bottom: 8px; font-size: 44px; }
.legal-meta { margin: 0 0 48px; color: var(--muted); }
.legal-content h2 { margin: 38px 0 10px; font-size: 21px; }
.legal-content p { color: #424750; }

@media (max-width: 900px) {
  .site-header { padding-inline: 22px; }
  .brand-on-dark img { width: 154px; }
  nav { gap: 15px; }
  .hero { height: 720px; background-position: 58% center; }
  .hero-content { width: calc(100% - 44px); }
  .hero h1 { font-size: 54px; }
  .hero-spectrum { padding-inline: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-spectrum span:nth-child(3) { border-left: 0; }
  .section { width: calc(100% - 44px); padding: 70px 0; }
  .split-heading { grid-template-columns: 1fr; gap: 4px; align-items: start; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid article:nth-child(2) { border-right: 0; }
  .service-grid article:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.18); }
  .system-section { grid-template-columns: 1fr; gap: 44px; }
  .system-brand { max-width: 620px; }
  .compliance { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 620px) {
  .site-header { height: 62px; }
  .brand-on-dark img { width: 132px; }
  nav a:not(:last-child) { display: none; }
  .hero { height: 670px; min-height: 670px; background-position: 62% center; }
  .hero-shade { background: rgba(7,9,12,.66); }
  .hero h1 { font-size: 46px; }
  .hero-lead { font-size: 21px; }
  .hero-copy { font-size: 16px; }
  .hero-spectrum span { padding-block: 12px; font-size: 12px; }
  .section-heading h2, .system-copy h2 { font-size: 30px; }
  .work-grid, .service-grid { grid-template-columns: 1fr; }
  .service-grid article, .service-grid article + article { padding: 24px 0; border-right: 0; border-top: 1px solid rgba(255,255,255,.18); }
  .work-copy { inset: auto 18px 16px; }
  .work-copy h3 { font-size: 18px; }
  .system-flow li { grid-template-columns: 90px 1fr; }
  footer { flex-direction: column; }
  .footer-links { justify-content: flex-start; }
  .legal-content h1 { font-size: 36px; }
}

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