/* 精拓电路 — engineering datasheet aesthetic */
:root {
  --ink: #0C1A14;
  --paper: #F2EFE6;
  --white: #FAF8F3;
  --mask: #0F5C3D;
  --mask-deep: #0A3D28;
  --mask-soft: #1B6B4A;
  --gold: #C4A35A;
  --gold-soft: #E0C97A;
  --copper: #C47B3A;
  --haze: #5C6B64;
  --haze-light: #8A9690;
  --line: #D4CFC0;
  --line-dark: #1A3D2E;
  --max: 1120px;
  --nav-h: 72px;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Menlo", Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(242, 239, 230, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header.is-dark {
  background: rgba(12, 26, 20, 0.94);
  border-bottom-color: var(--line-dark);
  color: var(--paper);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand img {
  height: 36px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  position: relative;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--haze);
  transition: color 0.2s ease;
}

.site-header.is-dark .nav a {
  color: #9BB0A6;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--mask);
  outline: none;
}

.site-header.is-dark .nav a:hover,
.site-header.is-dark .nav a:focus-visible {
  color: var(--gold-soft);
}

.nav a.is-active {
  color: var(--mask);
}

.site-header.is-dark .nav a.is-active {
  color: var(--gold);
}

.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  background: var(--mask);
}

.site-header.is-dark .nav a.is-active::after {
  background: var(--gold);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 8px 16px;
  border: 1px solid var(--mask);
  color: var(--mask) !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--mask);
  color: var(--white) !important;
}

.site-header.is-dark .nav-cta {
  border-color: var(--gold);
  color: var(--gold) !important;
}

.site-header.is-dark .nav-cta:hover,
.site-header.is-dark .nav-cta:focus-visible {
  background: var(--gold);
  color: var(--ink) !important;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  min-height: 620px;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  display: grid;
  align-items: end;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 26, 20, 0.55) 0%, rgba(12, 26, 20, 0.2) 40%, rgba(12, 26, 20, 0.92) 100%),
    linear-gradient(90deg, rgba(12, 26, 20, 0.75) 0%, transparent 55%);
}

.hero-traces {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.22;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0 72px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.02em;
  max-width: 14em;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-lead {
  max-width: 36em;
  font-size: 17px;
  color: #B7C4BC;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
}

.btn-ghost {
  border-color: rgba(242, 239, 230, 0.35);
  color: var(--paper);
}

.btn-ghost:hover {
  border-color: var(--paper);
  background: rgba(242, 239, 230, 0.08);
}

.btn-dark {
  background: var(--mask);
  color: var(--white);
  border-color: var(--mask);
}

.btn-dark:hover {
  background: var(--mask-deep);
  border-color: var(--mask-deep);
}

.btn-outline {
  border-color: var(--mask);
  color: var(--mask);
}

.btn-outline:hover {
  background: var(--mask);
  color: var(--white);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(196, 163, 90, 0.25);
  border: 1px solid rgba(196, 163, 90, 0.25);
  max-width: 720px;
}

.hero-stats li {
  background: rgba(12, 26, 20, 0.72);
  padding: 16px 18px;
}

.hero-stats strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1.2;
  margin-bottom: 4px;
}

.hero-stats span {
  font-size: 12px;
  color: #9BB0A6;
}

/* —— Page hero (inner pages) —— */
.page-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 85% 20%, rgba(15, 92, 61, 0.45), transparent 60%),
    radial-gradient(ellipse 40% 50% at 10% 90%, rgba(196, 163, 90, 0.12), transparent 50%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero .crumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 16px;
}

.page-hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 14px;
}

.page-hero p {
  max-width: 40em;
  color: #B7C4BC;
  font-size: 16px;
}

/* —— Sections —— */
.section {
  padding: 88px 0;
}

.section-tight {
  padding: 64px 0;
}

.section-dark {
  background: var(--ink);
  color: var(--paper);
}

.section-mask {
  background: var(--mask-deep);
  color: var(--paper);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.section-dark .section-head,
.section-mask .section-head {
  border-bottom-color: rgba(242, 239, 230, 0.12);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mask);
  margin-bottom: 10px;
}

.section-dark .section-label,
.section-mask .section-label {
  color: var(--gold);
}

.section-head h2,
.section-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.section-head p {
  max-width: 28em;
  color: var(--haze);
  font-size: 15px;
}

.section-dark .section-head p,
.section-mask .section-head p {
  color: #9BB0A6;
}

/* —— Capability strip —— */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.cap-grid article {
  background: var(--white);
  padding: 28px 24px;
  transition: background 0.2s ease;
}

.cap-grid article:hover {
  background: #EDE8DC;
}

.cap-grid .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mask);
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.cap-grid h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}

.cap-grid p {
  font-size: 14px;
  color: var(--haze);
  line-height: 1.65;
}

/* —— Product / feature cards —— */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--mask);
  transform: translateY(-2px);
}

.card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-media img {
  transform: scale(1.04);
}

.card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mask);
  margin-bottom: 10px;
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.card p {
  font-size: 14px;
  color: var(--haze);
  line-height: 1.65;
  flex: 1;
}

.card-meta {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--haze);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* —— Split feature —— */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.split.reverse .split-media {
  order: 2;
}

.split-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink);
  aspect-ratio: 4 / 3;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-media .badge {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--mask);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  padding: 10px 16px;
}

.split-content .section-label {
  margin-bottom: 12px;
}

.split-content h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 16px;
}

.split-content > p {
  color: var(--haze);
  margin-bottom: 24px;
}

.checklist {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.checklist li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 15px;
  color: var(--ink);
}

.checklist li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 7px;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 163, 90, 0.25);
}

/* —— Spec table —— */
.spec-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--white);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.spec-table th,
.spec-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  vertical-align: top;
}

.spec-table th {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--mask);
  background: #EAE6DA;
  white-space: nowrap;
}

.spec-table tr:last-child td {
  border-bottom: 0;
}

.spec-table td:first-child {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.spec-table td {
  color: var(--haze);
}

/* —— Process steps —— */
.process-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.process-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.process-item .idx {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 500;
  color: var(--mask);
  line-height: 1;
  letter-spacing: -0.02em;
}

.process-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.process-item p {
  font-size: 14px;
  color: var(--haze);
  max-width: 48em;
}

.process-item .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--haze-light);
  padding-top: 6px;
  white-space: nowrap;
}

/* —— News list —— */
.news-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.news-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}

.news-item:hover {
  background: rgba(15, 92, 61, 0.04);
}

.news-item time {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--haze);
}

.news-item h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.news-item p {
  font-size: 14px;
  color: var(--haze);
  max-width: 48em;
}

.news-item .more {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--mask);
  white-space: nowrap;
}

/* —— Cert / logo strip —— */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.cert-item {
  border: 1px solid rgba(242, 239, 230, 0.14);
  background: rgba(242, 239, 230, 0.04);
  padding: 24px 16px;
  text-align: center;
}

.cert-item strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 8px;
}

.cert-item span {
  font-size: 13px;
  color: #9BB0A6;
}

/* —— Contact info —— */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
}

.info-panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 36px 32px;
}

.info-panel h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

.info-panel > p {
  color: var(--haze);
  font-size: 14px;
  margin-bottom: 28px;
}

.info-list {
  display: grid;
  gap: 0;
}

.info-list li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.info-list .label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--mask);
  padding-top: 3px;
}

.info-list .value {
  color: var(--ink);
}

.info-list .value small {
  display: block;
  margin-top: 4px;
  color: var(--haze);
  font-size: 13px;
}

.map-panel {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  min-height: 420px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
}

.map-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(12, 26, 20, 0.2), rgba(12, 26, 20, 0.85)),
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(196, 163, 90, 0.06) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(196, 163, 90, 0.06) 40px);
  pointer-events: none;
}

.map-panel::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  top: 42%;
  left: 48%;
  box-shadow: 0 0 0 8px rgba(196, 163, 90, 0.18), 0 0 0 20px rgba(196, 163, 90, 0.08);
}

.map-panel .map-copy {
  position: relative;
  z-index: 1;
}

.map-panel .map-copy .mono {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}

.map-panel .map-copy h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.map-panel .map-copy p {
  font-size: 14px;
  color: #9BB0A6;
  max-width: 28em;
}

/* —— About timeline —— */
.timeline {
  display: grid;
  gap: 0;
  border-left: 1px solid var(--line);
  padding-left: 28px;
}

.timeline li {
  position: relative;
  padding: 0 0 32px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 6px;
  width: 9px;
  height: 9px;
  background: var(--gold);
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--mask);
}

.timeline .year {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--mask);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.timeline h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.timeline p {
  font-size: 14px;
  color: var(--haze);
  max-width: 42em;
}

/* —— CTA band —— */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 48px 40px;
  background: var(--mask);
  color: var(--paper);
  border: 1px solid var(--mask-deep);
}

.cta-band h2 {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 600;
  margin-bottom: 8px;
}

.cta-band p {
  color: #B7C4BC;
  font-size: 15px;
  max-width: 36em;
}

.cta-band .btn-primary {
  flex-shrink: 0;
}

/* —— Footer —— */
.site-footer {
  background: var(--ink);
  color: #9BB0A6;
  padding: 64px 0 28px;
  border-top: 1px solid var(--line-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 40px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 28em;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  padding: 5px 0;
  color: #9BB0A6;
  transition: color 0.2s ease;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--paper);
  outline: none;
}

.footer-col li {
  font-size: 14px;
  padding: 5px 0;
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(242, 239, 230, 0.08);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #6B7C78;
}

/* —— Utility —— */
.lead {
  font-size: 17px;
  color: var(--haze);
  max-width: 40em;
}

.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.mt-40 { margin-top: 40px; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 40px;
}

.stat-row li {
  background: var(--white);
  padding: 24px 20px;
}

.stat-row strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
  color: var(--mask);
  line-height: 1.15;
  margin-bottom: 6px;
}

.stat-row span {
  font-size: 13px;
  color: var(--haze);
}

.prose {
  max-width: 42em;
}

.prose p + p {
  margin-top: 16px;
}

.prose p {
  color: var(--haze);
}

/* Trace divider */
.trace-divider {
  height: 24px;
  background:
    linear-gradient(90deg, transparent 0%, var(--gold) 8%, var(--gold) 12%, transparent 12%, transparent 30%, var(--mask) 30%, var(--mask) 34%, transparent 34%, transparent 60%, var(--copper) 60%, var(--copper) 64%, transparent 64%),
    radial-gradient(circle at 18% 50%, var(--gold) 2.5px, transparent 3px),
    radial-gradient(circle at 40% 50%, var(--mask) 2.5px, transparent 3px),
    radial-gradient(circle at 72% 50%, var(--copper) 2.5px, transparent 3px);
  background-size: 100% 1px, 12px 12px, 12px 12px, 12px 12px;
  background-position: center, 18% center, 40% center, 72% center;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  opacity: 0.55;
  margin: 8px 0 0;
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .nav {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px;
    max-height: calc(100vh - var(--nav-h));
    overflow: auto;
  }

  .site-header.is-dark .nav {
    background: var(--ink);
    border-bottom-color: var(--line-dark);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 14px 8px;
    border-bottom: 1px solid var(--line);
  }

  .site-header.is-dark .nav a {
    border-bottom-color: rgba(242, 239, 230, 0.08);
  }

  .nav-cta {
    margin: 12px 0 0;
    justify-content: center;
  }

  .nav-toggle {
    display: grid;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid,
  .card-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .split,
  .split.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .split.reverse .split-media {
    order: 0;
  }

  .process-item {
    grid-template-columns: 56px 1fr;
  }

  .process-item .tag {
    grid-column: 2;
    padding-top: 0;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cert-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-grid,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 56px 0 48px;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .cap-grid,
  .card-grid,
  .card-grid.cols-2,
  .card-grid.cols-4 {
    grid-template-columns: 1fr;
  }

  .cert-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cta-band {
    padding: 32px 24px;
  }

  .info-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .stat-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
