/* ==========================================================================
   XIANYU ALLOY — Precision Alloy Wire
   Design system
   Order: tokens → reset → utilities → components → blocks → pages → responsive
   No external fonts. All imagery is local WebP; all icons are inline SVG.
   ========================================================================== */

/* ===== 1. TOKENS ========================================================== */
:root {
  --ink:        #080d15;
  --ink-2:      #0e1622;
  --ink-3:      #16202f;
  --ink-4:      #1d2938;
  --ink-line:   #26313f;

  --navy:       #0b3c7a;
  --navy-soft:  #1b5fa8;
  --copper:     #b4551f;
  --copper-dk:  #93441a;
  --copper-lt:  #e0954a;

  --paper:      #ffffff;
  --paper-2:    #f5f7fa;
  --paper-3:    #eef1f5;
  --line:       #dce2ea;
  --line-soft:  #e8edf3;

  --head:       #0e1622;
  --body:       #4a5563;
  --steel:      #8a9099;
  --on-dark:    #e8edf3;
  --on-dark-2:  #9aa7b6;

  --ok:         #1f7a4d;

  --header-h:   72px;
  --radius:     4px;
  --radius-lg:  8px;

  --font-sans: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Cascadia Mono', Consolas, 'SFMono-Regular', Menlo, monospace;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --shadow-sm: 0 1px 2px rgba(14, 22, 34, .06), 0 2px 8px rgba(14, 22, 34, .05);
  --shadow-md: 0 2px 4px rgba(14, 22, 34, .06), 0 12px 32px rgba(14, 22, 34, .10);
  --shadow-lg: 0 24px 64px rgba(8, 13, 21, .22);
}

/* ===== 2. RESET =========================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
figure { margin: 0; }

:focus-visible { outline: 2px solid var(--copper-lt); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--copper); color: #fff; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius) 0;
  font-size: 14px;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* Available to screen readers, invisible on screen. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ===== 3. UTILITIES ======================================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 32px; }

.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-alt { background: var(--paper-2); }

section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header-left { text-align: left; }

.section-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 14px;
}
.section-dark .section-label { color: var(--copper-lt); }

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  font-weight: 700;
  color: var(--head);
  line-height: 1.18;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.section-dark .section-title { color: #fff; }

.section-intro {
  max-width: 740px;
  margin: 20px auto 0;
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--body);
}
.section-dark .section-intro { color: var(--on-dark-2); }
.section-header-left .section-intro { margin-left: 0; }

.rule { width: 48px; height: 2px; background: var(--copper); margin: 0 auto 20px; }
.section-header-left .rule { margin-left: 0; }

.mono { font-family: var(--font-mono); }

/* Standing notice used wherever published facts are still pending */
.placeholder {
  color: var(--copper);
  background: rgba(180, 85, 31, .08);
  border-bottom: 1px dashed var(--copper);
  padding: 0 2px;
  font-weight: 600;
  overflow-wrap: break-word;
}
.section-dark .placeholder,
.hero .placeholder,
.page-hero .placeholder {
  color: var(--copper-lt);
  background: rgba(224, 149, 74, .12);
  border-bottom-color: var(--copper-lt);
}

/* ===== 4. BUTTONS ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .03em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), transform .18s var(--ease),
              box-shadow .22s var(--ease);
}
.btn-large { padding: 16px 34px; font-size: 15px; }
.btn-full { width: 100%; }

.btn-primary { background: var(--copper); color: #fff; border-color: var(--copper); }
.btn-primary:hover {
  background: var(--copper-dk);
  border-color: var(--copper-dk);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(180, 85, 31, .32);
}

.btn-outline { background: transparent; color: var(--head); border-color: var(--line); }
.btn-outline:hover { border-color: var(--head); transform: translateY(-1px); }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; transform: translateY(-1px); }

.btn-ghost { background: var(--paper-2); color: var(--head); border-color: var(--paper-2); }
.btn-ghost:hover { background: var(--paper-3); border-color: var(--paper-3); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--copper);
  transition: gap .2s var(--ease);
}
.link-arrow:hover { gap: 12px; }
.link-arrow::after { content: "\2192"; }
.section-dark .link-arrow { color: var(--copper-lt); }

/* ===== 5. HEADER ========================================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease),
              box-shadow .3s var(--ease), backdrop-filter .3s var(--ease);
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.header.scrolled {
  background: rgba(8, 13, 21, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, .08);
}

.header.light {
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(14, 22, 34, .04), 0 6px 24px rgba(14, 22, 34, .06);
}

/* Brand lockup: real logo artwork, two colourways swapped by header state.
   The white wordmark reads on the dark hero; the charcoal one on the light bar
   once the header flips past the hero. Same artwork, same box — no reflow. */
.logo { display: flex; align-items: center; flex-shrink: 0; margin-right: auto; }
.logo-img { display: block; height: 36px; width: auto; }
.logo-img-light { display: none; }
.header.light .logo-img-dark { display: none; }
.header.light .logo-img-light { display: block; }

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

.nav-link {
  position: relative;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, .86);
  padding: 9px 11px;
  border-radius: 3px;
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 11px; right: 11px; bottom: 3px;
  height: 2px;
  background: var(--copper-lt);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.header.light .nav-link { color: var(--body); }
.header.light .nav-link:hover, .header.light .nav-link.active { color: var(--head); }
.header.light .nav-link::after { background: var(--copper); }

.header-cta { flex-shrink: 0; padding: 11px 20px; font-size: 13.5px; }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  flex-shrink: 0;
  margin-left: 6px;
}
.mobile-menu-btn span {
  display: block;
  height: 2px; width: 22px;
  margin: 0 auto;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease), background .3s var(--ease);
}
.header.light .mobile-menu-btn span { background: var(--head); }
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== 6. HERO (home) ===================================================== */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  background: var(--ink);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 76px) 0 96px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 560px at 90% 8%, rgba(11, 60, 122, .5) 0%, transparent 64%),
              radial-gradient(700px 560px at 4% 98%, rgba(180, 85, 31, .24) 0%, transparent 66%),
              linear-gradient(168deg, #0e1622, #080d15 52%, #0a1220);
}
.hero-photo {
  position: absolute;
  inset: 0;
  background-image: url("assets/images/hero-workshop-hall.webp");
  background-size: cover;
  background-position: 50% 100%;
  opacity: .92;
  filter: saturate(1) contrast(1.06);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(96deg, rgba(8, 13, 21, .97) 0%, rgba(8, 13, 21, .9) 34%, rgba(8, 13, 21, .5) 62%, rgba(8, 13, 21, .24) 100%),
    linear-gradient(180deg, rgba(8, 13, 21, .58) 0%, rgba(8, 13, 21, .1) 30%, rgba(8, 13, 21, .12) 62%, rgba(8, 13, 21, .62) 100%);
}
.hero-hairlines {
  position: absolute;
  inset: 0;
  opacity: .4;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg,  rgba(255, 255, 255, .025) 0 1px, transparent 1px 96px);
  -webkit-mask-image: radial-gradient(120% 90% at 40% 45%, #000 18%, transparent 80%);
          mask-image: radial-gradient(120% 90% at 40% 45%, #000 18%, transparent 80%);
}

/* --- Hero caption: turns the background photo into a piece of evidence --- */
.hero-caption {
  position: absolute;
  right: 34px;
  bottom: 26px;
  max-width: 430px;
  text-align: right;
  font-size: 12.5px;
  line-height: 1.64;
  color: rgba(236, 241, 247, .8);
  z-index: 3;
}
.hero-caption-rule {
  display: block;
  width: 46px;
  height: 1px;
  margin: 0 0 9px auto;
  background: rgba(224, 149, 74, .85);
}
@media (max-width: 760px) { .hero-caption { display: none; } }

.hero-inner { position: relative; z-index: 3; width: 100%; }
.hero-copy { max-width: 700px; min-width: 0; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--copper-lt);
  margin-bottom: 22px;
}
.hero-eyebrow::before { content: ""; width: 34px; height: 2px; flex-shrink: 0; background: var(--copper); }

.hero-headline {
  font-size: clamp(2.05rem, 4.3vw, 3.45rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.025em;
  color: #fff;
  text-wrap: balance;
}
.hero-headline .accent { color: var(--copper-lt); }

.hero-subtitle {
  margin-top: 24px;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.7;
  color: var(--on-dark-2);
  max-width: 620px;
}

.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero-meta {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
}
.hero-meta-item { display: flex; flex-direction: column; gap: 4px; }
.hero-meta-value {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}
.hero-meta-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel);
}

.hero-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 3;
  width: 22px; height: 34px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 12px;
}
.hero-scroll-hint span {
  position: absolute;
  left: 50%; top: 7px;
  width: 3px; height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--copper-lt);
  animation: hintDrop 1.9s var(--ease) infinite;
}
@keyframes hintDrop {
  0%   { transform: translateY(0);    opacity: 0; }
  30%  { transform: translateY(0);    opacity: 1; }
  100% { transform: translateY(13px); opacity: 0; }
}

/* ===== 7. PAGE HERO (inner pages) ========================================= */
.page-hero {
  position: relative;
  background: var(--ink);
  padding: calc(var(--header-h) + 72px) 0 68px;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/images/hero-warehouse.webp");
  background-size: cover;
  background-position: 50% 42%;
  opacity: .2;
  filter: saturate(.6);
}
.page-hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(760px 440px at 86% 4%, rgba(11, 60, 122, .52) 0%, transparent 64%),
    linear-gradient(102deg, rgba(8, 13, 21, .97) 0%, rgba(8, 13, 21, .86) 46%, rgba(8, 13, 21, .74) 100%);
}
.page-hero-hairlines {
  position: absolute;
  inset: 0;
  opacity: .34;
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 88px);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
          mask-image: linear-gradient(180deg, #000, transparent);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero-inner { max-width: 860px; }

.page-hero h1 {
  font-size: clamp(1.9rem, 3.7vw, 2.85rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.025em;
  color: #fff;
  text-wrap: balance;
}
.page-hero p.lead {
  margin-top: 20px;
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--on-dark-2);
  max-width: 700px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 20px;
}
.breadcrumb a:hover { color: var(--copper-lt); }
.breadcrumb .sep { color: var(--ink-4); }
.breadcrumb .current { color: var(--copper-lt); }

/* ===== 8. TRUST STRIP ==================================================== */
.trust-strip {
  background: var(--ink-2);
  border-top: 1px solid rgba(255, 255, 255, .07);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  padding: 20px 0;
}
.trust-anchors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.trust-anchor {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  padding: 4px 28px;
  border-right: 1px solid var(--ink-line);
}
.trust-anchor:last-child { border-right: none; }
.trust-anchor strong { color: var(--copper-lt); }

/* Six anchors sit as a tidy 3 x 2 block rather than wrapping 4 + 1 */
@media (min-width: 961px) {
  .trust-anchors {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 12px; }
  .trust-anchor { padding: 5px 18px; text-align: center; }
  .trust-anchor:nth-child(3n) { border-right: none; }
}

/* ===== 9. STATS ========================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat { background: var(--paper); padding: 34px 24px; text-align: center; transition: background .25s var(--ease); }
.stat:hover { background: var(--paper-2); }
.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 3.1vw, 2.45rem);
  font-weight: 700;
  line-height: 1;
  color: var(--head);
  letter-spacing: -.02em;
}
.stat-value .unit { font-size: .44em; font-weight: 600; color: var(--copper); margin-left: 3px; letter-spacing: 0; }
.stat-label {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--steel);
}
.stat-note { margin-top: 8px; font-size: 12.5px; line-height: 1.5; color: var(--body); }

.section-dark .stats-grid { background: var(--ink-line); border-color: var(--ink-line); }
.section-dark .stat { background: var(--ink-2); }
.section-dark .stat:hover { background: var(--ink-3); }
.section-dark .stat-value { color: #fff; }
.section-dark .stat-value .unit { color: var(--copper-lt); }
.section-dark .stat-note { color: var(--on-dark-2); }

/* --- Five-cell stat grid (index): only applies when a 5th cell exists --- */
@media (min-width: 1100px) {
  .stats-grid.stats-5 { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 761px) and (max-width: 1099px) {
  .stats-grid.stats-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .stats-grid.stats-5 .stat:last-child { grid-column: 1 / -1; }
}

/* ===== 10. CARDS ========================================================= */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 22px; }
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-title { font-size: 1.0625rem; font-weight: 700; color: var(--head); letter-spacing: -.01em; margin-bottom: 10px; }
.card-body { font-size: 14.5px; line-height: 1.68; color: var(--body); }

.card-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--copper);
  margin-bottom: 14px;
}

.section-dark .card { background: var(--ink-2); border-color: var(--ink-line); }
.section-dark .card:hover { background: var(--ink-3); box-shadow: none; }
.section-dark .card-title { color: #fff; }
.section-dark .card-body { color: var(--on-dark-2); }

.tick-list { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.tick-list li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.6; color: var(--body); }
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 10px; height: 5px;
  border-left: 2px solid var(--copper);
  border-bottom: 2px solid var(--copper);
  transform: rotate(-45deg);
}
.section-dark .tick-list li { color: var(--on-dark-2); }
.section-dark .tick-list li::before { border-color: var(--copper-lt); }

/* ===== 10B. SERVICE COMMITMENTS (index) ================================== */
/* Five "what you get" blocks that sit directly under the hero, in the slot
   where most manufacturer sites put a paragraph about themselves. */
.section-service {
  background: linear-gradient(180deg, rgba(180, 85, 31, .05), rgba(255, 255, 255, 0) 340px), var(--paper);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}
.service-card {
  position: relative;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 30px 28px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              border-color .25s var(--ease);
}
.service-card:nth-child(4),
.service-card:nth-child(5) { grid-column: span 3; }

.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 30px;
  width: 44px; height: 3px;
  background: var(--copper);
  border-radius: 0 0 2px 2px;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(180, 85, 31, .28);
}

.service-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--copper);
  margin-bottom: 15px;
}
.service-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -.01em;
  color: var(--head);
  margin-bottom: 12px;
  text-wrap: balance;
}
.service-body {
  flex: 1;
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--body);
}
.service-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--copper);
  text-decoration: none;
}
.service-more::after {
  content: "\2192";
  transition: transform .2s var(--ease);
}
.service-more:hover::after { transform: translateX(4px); }

@media (max-width: 1100px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card,
  .service-card:nth-child(4),
  .service-card:nth-child(5) { grid-column: span 1; }
  .service-card:nth-child(5) { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .service-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card:nth-child(5) { grid-column: auto; }
  .service-card { padding: 28px 24px 24px; }
  .service-card::before { left: 24px; }
}

/* ===== 11. PRODUCT FAMILIES ============================================== */
.family-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.family-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.family-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.family-media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--ink-2); }
.family-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.family-card:hover .family-media img { transform: scale(1.05); }
.family-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(178deg, rgba(8, 13, 21, .1) 40%, rgba(8, 13, 21, .78) 100%);
}
.family-badge {
  position: absolute;
  z-index: 2;
  left: 18px;
  top: 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: #fff;
  background: rgba(8, 13, 21, .72);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 3px;
  padding: 4px 9px;
  backdrop-filter: blur(4px);
}
.family-code {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--copper-lt);
  letter-spacing: .02em;
}

.family-body { padding: 24px 26px 26px; flex: 1; display: flex; flex-direction: column; }
.family-name { font-size: 1.05rem; font-weight: 700; color: var(--head); letter-spacing: -.01em; margin-bottom: 6px; }
.family-range { font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; color: var(--copper); margin-bottom: 14px; }
.family-desc { font-size: 14px; line-height: 1.65; color: var(--body); flex: 1; }

.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--steel);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 4px 9px;
}
.section-dark .tag { background: var(--ink-3); border-color: var(--ink-line); color: var(--on-dark-2); }

/* ===== 12. MEDIA / FIGURES / GALLERY ===================================== */
.figure {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
}
.figure img { width: 100%; height: auto; }
.figure figcaption {
  padding: 14px 18px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--steel);
  border-top: 1px solid var(--line-soft);
  background: var(--paper-2);
}
.figure-tall img { aspect-ratio: 4 / 5; object-fit: cover; }
.figure-wide img { aspect-ratio: 16 / 10; object-fit: cover; }
.figure-square img { aspect-ratio: 1 / 1; object-fit: cover; }

.section-dark .figure { border-color: var(--ink-line); background: var(--ink-2); }
.section-dark .figure figcaption { color: var(--on-dark-2); background: var(--ink-3); border-top-color: var(--ink-line); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Photo band: full-bleed strip between sections */
.photo-band {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.photo-band-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 58%;
}
.photo-band-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 13, 21, .95) 0%, rgba(8, 13, 21, .34) 42%, rgba(8, 13, 21, .92) 100%);
}
.photo-band .container { position: relative; z-index: 2; padding-top: 96px; padding-bottom: 56px; }
.photo-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.022em;
  color: #fff;
  max-width: 720px;
  text-wrap: balance;
}
.photo-band p { margin-top: 16px; max-width: 620px; color: var(--on-dark-2); font-size: 1.02rem; }
.photo-band-caption {
  position: absolute;
  right: 32px;
  top: 24px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}

/* ===== 13. TABLES ======================================================== */
.table-wrap {
  overflow-x: auto;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  -webkit-overflow-scrolling: touch;
}
.table-wrap table { min-width: 680px; }
.table-wrap table.wide { min-width: 900px; }

/* Shown only where a table genuinely needs a sideways swipe. */
.table-scroll-hint {
  display: none;
  font-size: 12.5px;
  color: var(--steel);
  margin-top: 10px;
  text-align: center;
}

/* Narrow 3-column tables that sit inside a half-width split column: let them
   fit the column on desktop instead of forcing a horizontal scrollbar.
   Below 960px the split stacks full width and the scroll floor comes back. */
.table-wrap.table-fit table,
.table-wrap.table-fit table.wide { min-width: 0; }
@media (max-width: 960px) {
  .table-wrap.table-fit table { min-width: 560px; }
}

.spec-table thead th {
  background: var(--paper-2);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--steel);
  text-align: left;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.spec-table tbody td {
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.spec-table tbody tr:last-child td { border-bottom: none; }
.spec-table tbody tr:hover td { background: var(--paper-2); }
.spec-table td strong { color: var(--head); font-weight: 700; }
.spec-table td code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--head);
  background: var(--paper-2);
  border-radius: 3px;
  padding: 2px 6px;
  white-space: nowrap;
}
.spec-table .col-num { font-family: var(--font-mono); white-space: nowrap; }

.section-dark .table-wrap { background: var(--ink-2); border-color: var(--ink-line); }
.section-dark .spec-table thead th { background: var(--ink-3); color: var(--steel); border-bottom-color: var(--ink-line); }
.section-dark .spec-table tbody td { color: var(--on-dark-2); border-bottom-color: var(--ink-line); }
.section-dark .spec-table tbody tr:hover td { background: var(--ink-3); }
.section-dark .spec-table td strong { color: #fff; }
.section-dark .spec-table td code { background: var(--ink-3); color: var(--copper-lt); }

.table-note { margin-top: 16px; font-size: 13px; line-height: 1.7; color: var(--steel); }
.section-dark .table-note { color: var(--on-dark-2); }

/* ===== 14. PROCESS ======================================================= */
.process-steps { display: grid; grid-template-columns: repeat(5, 1fr); }
.process-step { position: relative; padding-right: 22px; }
.process-step::before {
  content: "";
  position: absolute;
  top: 15px; left: 38px; right: 0;
  height: 1px;
  background: var(--line);
}
.process-step:last-child::before { display: none; }
.process-step-num {
  position: relative;
  z-index: 2;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--copper);
  color: var(--copper);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.process-step-title { font-size: .98rem; font-weight: 700; color: var(--head); margin-bottom: 9px; }
.process-step-text { font-size: 13.5px; line-height: 1.65; color: var(--body); }

.section-dark .process-step::before { background: var(--ink-line); }
.section-dark .process-step-num { background: var(--ink); color: var(--copper-lt); }
.section-dark .process-step-title { color: #fff; }
.section-dark .process-step-text { color: var(--on-dark-2); }

/* ===== 15. SPLIT ========================================================= */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
/* Belt and braces: a grid item defaults to min-width:auto, which lets a wide
   table inside a column stretch the whole track and push the page sideways. */
.split > * { min-width: 0; }
.split-wide-left { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }
.split-wide-right { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); }
.split-top { align-items: start; }

.split-copy h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--head);
  text-wrap: balance;
}
.split-copy p { margin-top: 18px; font-size: 15.5px; line-height: 1.75; }
.split-copy p + p { margin-top: 14px; }
.split-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.section-dark .split-copy h2 { color: #fff; }
.section-dark .split-copy p { color: var(--on-dark-2); }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-2);
  padding: 32px;
}
.panel-dark {
  border: 1px solid var(--ink-line);
  background: linear-gradient(160deg, var(--ink-2), var(--ink));
  border-radius: var(--radius-lg);
  padding: 32px;
}
.panel-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--steel);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.panel-dark .panel-title { color: var(--on-dark-2); border-bottom-color: var(--ink-line); }

.kv-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}
.kv-row:last-child { border-bottom: none; }
.kv-key { font-size: 13.5px; color: var(--body); }
.kv-val { font-family: var(--font-mono); font-size: 13.5px; font-weight: 700; color: var(--head); text-align: right; }
.panel-dark .kv-row { border-bottom-color: var(--ink-line); }
.panel-dark .kv-key { color: var(--on-dark-2); }
.panel-dark .kv-val { color: #fff; }

/* --- Stacked key/value rows: for values too long to sit on the right --- */
.kv-row.stack { display: block; }
.kv-row.stack .kv-key { display: block; margin-bottom: 6px; }
.kv-row.stack .kv-val {
  display: block;
  text-align: left;
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.6; }

/* --- Certificate document display --- */
.figure-doc a { display: block; }
.figure-doc a img { transition: opacity .25s var(--ease); }
.figure-doc a:hover img { opacity: .92; }
.figure-doc a:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
.cert-note {
  margin-top: 22px;
  padding: 15px 18px;
  border-left: 3px solid var(--copper);
  background: var(--paper-2);
  font-size: 13.5px;
  line-height: 1.68;
  color: var(--body); }
.cert-note strong { color: var(--head); }
.cert-note a { color: var(--copper); font-weight: 600; }

/* ===== 16. TIMELINE ====================================================== */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px; top: 6px; bottom: 6px;
  width: 1px;
  background: var(--line);
}
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px; top: 6px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--copper);
}
.timeline-era {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--copper);
  margin-bottom: 6px;
}
.timeline-title { font-size: 1.05rem; font-weight: 700; color: var(--head); margin-bottom: 7px; }
.timeline-text { font-size: 14.5px; line-height: 1.68; color: var(--body); }

/* ===== 17. COMPARE TABLE ================================================= */
.compare { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.compare table { min-width: 640px; }
.compare th, .compare td { padding: 16px 20px; font-size: 14px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.compare thead th {
  background: var(--paper-2);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--steel);
  border-bottom: 1px solid var(--line);
}
.compare thead th.hl { color: var(--copper); background: rgba(180, 85, 31, .07); }
.compare td.hl { background: rgba(180, 85, 31, .045); font-weight: 600; color: var(--head); }
.compare tbody tr:last-child td { border-bottom: none; }
.compare td:first-child { color: var(--head); font-weight: 600; }

/* ===== 18. FAQ =========================================================== */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--head);
  transition: color .2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--copper); }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  color: var(--copper);
  transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 0 24px; font-size: 14.5px; line-height: 1.75; color: var(--body); max-width: 860px; }
.faq-answer p + p { margin-top: 12px; }

/* ===== 19. EMAIL CONTACT ================================================= */
/* The published addresses replace the old enquiry form: nothing to submit,
   nothing to lose. The address itself is the call to action. */
.mail-lead {
  font-size: 15px;
  line-height: 1.72;
  color: var(--body);
  margin-bottom: 22px;
}

.mail-cta {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  padding: 22px;
}
.mail-cta-addr {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(15px, 1.85vw, 19px);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.3;
  color: var(--head);
  overflow-wrap: anywhere;   /* only breaks the address if it truly cannot fit */
  transition: color .2s var(--ease);
}
.mail-cta-addr:hover { color: var(--copper); }
.mail-cta-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.mail-cta-actions .btn { flex: 1 1 160px; }

.mail-flash {
  display: none;
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ok);
}
.mail-flash.show { display: block; }
.mail-flash.warn { color: var(--copper-dk); }

.mail-alt {
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--body);
}
.mail-alt a { color: var(--copper); font-weight: 600; border-bottom: 1px solid rgba(180, 85, 31, .4); }
.mail-alt a:hover { color: var(--copper-dk); }

.mail-checklist {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.mail-checklist-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--steel);
}
.mail-checklist .tick-list { margin-top: 14px; }

.form-note { margin-top: 22px; font-size: 12.5px; line-height: 1.65; color: var(--steel); }
.form-note a { color: var(--copper); font-weight: 600; }

/* Contact info list */
.contact-list { display: flex; flex-direction: column; gap: 0; }
.contact-item { padding: 20px 0; border-bottom: 1px solid var(--line-soft); }
.contact-item:last-child { border-bottom: none; }
.contact-key {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 7px;
}
.contact-val { font-size: 15.5px; font-weight: 600; color: var(--head); line-height: 1.5; }
.contact-val a:hover { color: var(--copper); }
.contact-sub { margin-top: 5px; font-size: 13px; color: var(--steel); }
/* 邮箱链接：正文里也要看得出可以点 */
.contact-val a {
  border-bottom: 1px solid rgba(180, 85, 31, .4);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

/* ===== 20. CTA BAND ====================================================== */
.cta-band { position: relative; overflow: hidden; background: var(--ink); }
.cta-band-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 62%;
  opacity: .26;
  filter: saturate(.7);
}
.cta-band-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 420px at 78% 10%, rgba(11, 60, 122, .5) 0%, transparent 62%),
    linear-gradient(100deg, rgba(8, 13, 21, .97), rgba(8, 13, 21, .82));
}
.cta-band .container { position: relative; z-index: 2; }
.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 48px;
  align-items: center;
}
.cta-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.022em;
  color: #fff;
  text-wrap: balance;
}
.cta-inner p { margin-top: 18px; font-size: 1.02rem; line-height: 1.72; color: var(--on-dark-2); max-width: 620px; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }
.cta-actions .btn { width: 100%; }

/* ===== 21. FOOTER ======================================================== */
.footer {
  background: var(--ink);
  color: var(--on-dark-2);
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding: 72px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.35fr .85fr .95fr .85fr;
  gap: 44px;
  padding-bottom: 56px;
}
.footer-brand-lockup { margin-bottom: 20px; }
.footer-logo { display: block; height: 40px; width: auto; }
.footer-tagline { font-size: 14px; line-height: 1.7; color: var(--on-dark-2); max-width: 320px; }

.footer-col-heading {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--copper-lt);
  margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { font-size: 14px; color: var(--on-dark-2); transition: color .2s var(--ease); }
.footer-links a:hover { color: #fff; }

.footer-entries { display: flex; flex-direction: column; gap: 20px; }
.footer-entry-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 5px;
}
.footer-entry-text { font-size: 13.5px; line-height: 1.65; color: var(--on-dark-2); }
.footer-entry-text a {
  border-bottom: 1px solid rgba(224, 149, 74, .35);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.footer-entry-text a:hover { color: var(--copper-lt); border-color: var(--copper-lt); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 24px 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 12.5px; color: var(--steel); }
.footer-bottom-links { display: flex; gap: 22px; }
.footer-bottom-links a { font-size: 12.5px; color: var(--steel); }
.footer-bottom-links a:hover { color: #fff; }

/* ===== 22. 404 =========================================================== */
.error-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--ink);
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 60px) 0 80px;
}
.error-wrap .hero-bg { position: absolute; inset: 0; }
/* NOTE: must out-specify `.error-wrap p` below, which otherwise repaints the
   numeral as 1.05rem grey body copy. */
.error-wrap .error-code {
  margin-top: 0;
  font-family: var(--font-mono);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 700;
  line-height: 1;
  color: var(--copper-lt);
  letter-spacing: -.03em;
}
.error-wrap h1 { margin-top: 18px; font-size: clamp(1.6rem, 3.2vw, 2.4rem); color: #fff; letter-spacing: -.02em; }
.error-wrap p { margin-top: 18px; font-size: 1.05rem; color: var(--on-dark-2); max-width: 560px; }
.error-wrap .hero-actions { margin-top: 34px; }

/* ===== 23. ANIMATION ===================================================== */
/* The hidden state is scoped to html.js so that a browser with JavaScript
   disabled (or a blocked/failed script.js) still shows the full page. */
html.js .fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
html.js .fade-up.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .fade-up { opacity: 1; transform: none; transition: none; }
  .hero-scroll-hint span { animation: none; }
  .family-card:hover .family-media img { transform: none; }
}

/* ===== 24. RESPONSIVE ==================================================== */
@media (max-width: 1180px) {
  .process-steps { grid-template-columns: repeat(3, 1fr); gap: 34px 0; }
  .process-step:nth-child(3)::before { display: none; }
  .process-step:nth-child(4),
  .process-step:nth-child(5) { padding-top: 4px; }
}

@media (max-width: 1080px) {
  .nav-link { font-size: 13px; padding: 9px 8px; }
  .nav-link::after { left: 8px; right: 8px; }
  .header-cta { padding: 10px 16px; }
  .logo-img { height: 33px; }
  .hero-inner { grid-template-columns: 1fr; }
  .split { gap: 44px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 960px) {
  .container, .container-narrow { padding: 0 24px; }
  .section { padding: 76px 0; }
  .section-tight { padding: 54px 0; }
  .section-header { margin-bottom: 48px; }

  /* Nav collapses into a panel */
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(8, 13, 21, .98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, .08);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding: 10px 24px 22px;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s var(--ease), transform .24s var(--ease);
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-link {
    font-size: 15px;
    padding: 15px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    color: rgba(255, 255, 255, .9);
  }
  .nav-link:last-child { border-bottom: none; }
  .nav-link::after { display: none; }
  .header.light .nav-link { color: var(--body); border-bottom-color: var(--line-soft); }
  .header.light .nav { background: rgba(255, 255, 255, .99); border-color: var(--line); }

  .header-cta { display: none; }
  .mobile-menu-btn { display: flex; }

  .hero { min-height: auto; padding: calc(var(--header-h) + 54px) 0 76px; }
  .hero-photo { opacity: .68; background-position: 46% 94%; }
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(8, 13, 21, .95) 0%, rgba(8, 13, 21, .78) 46%, rgba(8, 13, 21, .96) 100%);
  }
  .hero-meta { gap: 16px 28px; }
  .hero-scroll-hint { display: none; }

  .family-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .split-wide-left, .split-wide-right { grid-template-columns: minmax(0, 1fr); }
  .cta-inner { grid-template-columns: 1fr; gap: 32px; }
  .cta-actions { flex-direction: row; }
  .cta-actions .btn { width: auto; }
}

@media (max-width: 760px) {
  body { line-height: 1.62; }
  .page-hero { padding: calc(var(--header-h) + 52px) 0 52px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 30px 0; }
  .process-step::before { display: none; }
  .process-step { padding-right: 18px; }
  .family-grid { grid-template-columns: 1fr; }
  .card-grid, .card-grid-2, .card-grid-3 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .trust-anchor { border-right: none; padding: 4px 20px; }
  .photo-band { min-height: 360px; }
  .photo-band .container { padding-top: 72px; padding-bottom: 44px; }
  .photo-band-caption { display: none; }
  .table-wrap table { min-width: 620px; }
  .table-scroll-hint { display: block; }
}

@media (max-width: 560px) {
  .container, .container-narrow { padding: 0 20px; }
  .header-inner { padding: 0 20px; gap: 12px; }
  .logo-img { height: 30px; }
  .footer-logo { height: 36px; }

  .section { padding: 62px 0; }
  .btn { padding: 12px 22px; }
  .btn-large { padding: 14px 26px; font-size: 14.5px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-meta { gap: 14px 22px; }
  .stats-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .gallery-grid, .gallery-grid-2 { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; }
  .footer-bottom-links { flex-wrap: wrap; gap: 14px; }
}

/* ===== 25. PRINT ========================================================= */
@media print {
  .header, .mobile-menu-btn, .hero-scroll-hint, .cta-band, .footer { display: none !important; }
  body { color: #000; }
  .section, .section-tight { padding: 18px 0; }
  .section-dark, .page-hero, .hero { background: #fff !important; color: #000 !important; }
  .page-hero h1, .hero-headline, .section-dark .section-title, .photo-band h2 { color: #000 !important; }
  .page-hero p.lead, .hero-subtitle, .section-dark .section-intro, .photo-band p, .section-dark .card-body { color: #222 !important; }
  .card, .family-card, .panel, .figure, .table-wrap { break-inside: avoid; }
  .fade-up { opacity: 1 !important; transform: none !important; }
}
