/* ==========================================================================
   TYANN — Shanghai Tianyang Building Engineering Co., Ltd.
   Global stylesheet
   Design language: architectural / structural engineering
   --------------------------------------------------------------------------
   TABLE OF CONTENTS
     01. Design tokens
     02. Reset & base
     03. Layout primitives
     04. Typography
     05. Engineering accents (grid, ticks, dimension lines, slashes)
     06. Buttons
     07. Header / navigation
     08. Hero
     09. Cards
     10. Sections & content blocks
     11. Stats & data
     12. Gallery & lightbox
     13. Forms
     14. Footer
     15. Utilities
     16. Responsive
   ========================================================================== */

/* ------------------------------------------------------------------ 01 */
:root {
  /* brand */
  --blue: #1763af;
  --blue-dk: #0f4b87;
  --blue-lt: #2e8fd4;
  --green: #9dcc53;
  --green-dk: #7cae33;

  /* neutrals */
  --ink: #0d1a26;
  --ink-2: #16283a;
  --navy: #0a1f33;
  --navy-2: #0e2a44;
  --muted: #5b6b7a;
  --muted-2: #8394a3;
  --concrete: #f4f6f8;
  --concrete-2: #e8edf1;
  --line: #d7dee5;
  --line-soft: #e6ebef;
  --line-dk: #b6c1cb;
  --white: #fff;

  /* type */
  --font-sans: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "SF Mono", "Cascadia Mono",
    "Roboto Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* metrics */
  --wrap: 1280px;
  --gutter: 28px;
  --radius: 2px;
  --header-h: 76px;

  /* motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ------------------------------------------------------------------ 02 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

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

::selection {
  background: var(--green);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--blue-lt);
  outline-offset: 3px;
}

/* ------------------------------------------------------------------ 03 */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* keep in-page anchors clear of the sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + 28px); }

.wrap--narrow {
  max-width: 940px;
}

.section {
  padding: clamp(56px, 7vw, 104px) 0;
  position: relative;
}

.section--concrete {
  background: var(--concrete);
}

.section--tight {
  padding-top: clamp(40px, 4vw, 60px);
}

.section--dark {
  background: var(--navy);
  color: #e8eef4;
}

.grid {
  display: grid;
  gap: 28px;
}

.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.split--wide-right { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.split--wide-left  { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }

/* ------------------------------------------------------------------ 04 */
h1, h2, h3, h4, h5 {
  margin: 0;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(34px, 4.6vw, 62px); }
h2 { font-size: clamp(26px, 2.9vw, 42px); }
h3 { font-size: clamp(19px, 1.6vw, 23px); letter-spacing: -0.01em; }
h4 { font-size: 17px; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.7;
  color: var(--muted);
  max-width: 62ch;
}

.section--dark .lead { color: #a9bcca; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--green);
  flex: none;
}

.eyebrow .idx {
  color: var(--muted-2);
  font-weight: 500;
}

.section--dark .eyebrow { color: #7fb4e3; }

.text-accent { color: var(--blue); }

/* ------------------------------------------------------------------ 05 */
/* Blueprint grid overlay */
.blueprint {
  background-image:
    linear-gradient(rgba(23, 99, 175, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 99, 175, 0.055) 1px, transparent 1px);
  background-size: 32px 32px;
}

.blueprint--dark {
  background-image:
    linear-gradient(rgba(157, 204, 83, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* corner ticks */
.ticks {
  position: relative;
}

.ticks::before,
.ticks::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  pointer-events: none;
  transition: border-color 0.3s var(--ease);
}

.ticks::before {
  top: 9px;
  left: 9px;
  border-top: 2px solid var(--blue);
  border-left: 2px solid var(--blue);
}

.ticks::after {
  bottom: 9px;
  right: 9px;
  border-bottom: 2px solid var(--blue);
  border-right: 2px solid var(--blue);
}

/* dimension line */
.dim {
  position: relative;
  height: 1px;
  background: var(--line);
  margin: 0;
  border: 0;
}

.dim::before,
.dim::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 1px;
  height: 11px;
  background: var(--line-dk);
}

.dim::before { left: 0; }
.dim::after { right: 0; }

.dim--gap { margin: clamp(32px, 4vw, 56px) 0; }

/* diagonal slash motif (brand signature) */
.slash {
  position: absolute;
  pointer-events: none;
  background: var(--green);
}

/* ------------------------------------------------------------------ 06 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--blue);
  color: #fff;
}

.btn--primary:hover { background: var(--blue-dk); }

.btn--green {
  background: var(--green);
  color: var(--ink);
}

.btn--green:hover { background: var(--green-dk); }

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn--ghost:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

.btn--outline {
  border-color: var(--line-dk);
  color: var(--ink);
}

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

.btn .arw {
  width: 14px;
  height: 14px;
  flex: none;
  transition: transform 0.25s var(--ease);
}

.btn:hover .arw { transform: translateX(4px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.25s var(--ease), gap 0.25s var(--ease);
}

.link-arrow::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}

.link-arrow:hover {
  border-bottom-color: var(--blue);
}

.link-arrow:hover::after { transform: translateX(4px); }

/* ------------------------------------------------------------------ 07 */
.topbar {
  background: var(--navy);
  color: #9fb4c6;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 40px;
  flex-wrap: wrap;
}

.topbar-list {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.topbar a:hover { color: var(--green); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  overflow: hidden;
}

.lang-switch button {
  padding: 4px 11px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #9fb4c6;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.lang-switch button:hover { color: #fff; }

.lang-switch button[aria-pressed="true"] {
  background: var(--green);
  color: var(--ink);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 0.3s var(--ease);
}

.site-header.is-stuck {
  box-shadow: 0 10px 30px -18px rgba(13, 26, 38, 0.35);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
}

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

.brand__div {
  width: 1px;
  height: 30px;
  background: var(--line);
}

.brand__txt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.35;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 190px;
}

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

.nav a {
  position: relative;
  padding: 10px 15px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
  border-radius: var(--radius);
  transition: color 0.2s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 4px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav a:hover { color: var(--blue); }
.nav a:hover::after { transform: scaleX(1); }

.nav a[aria-current="page"] { color: var(--blue); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.header-actions .btn { padding: 12px 20px; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
  flex: none;
}

.burger span {
  display: block;
  width: 19px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: background 0.2s var(--ease);
}

.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 19px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}

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

.is-open .burger span { background: transparent; }
.is-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.is-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  border-bottom: 1px solid var(--line);
  background: #fff;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.mobile-nav.is-open { max-height: 520px; }

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 8px 0 20px;
}

.mobile-nav a {
  display: block;
  padding: 13px 0;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid var(--line-soft);
}

.mobile-nav a[aria-current="page"] { color: var(--blue); }

/* ------------------------------------------------------------------ 08 */
.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      100deg,
      rgba(8, 26, 43, 0.94) 0%,
      rgba(8, 26, 43, 0.82) 42%,
      rgba(8, 26, 43, 0.46) 78%,
      rgba(8, 26, 43, 0.32) 100%
    ),
    linear-gradient(0deg, rgba(8, 26, 43, 0.72) 0%, rgba(8, 26, 43, 0) 46%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(105deg, #000 0%, transparent 62%);
}

.hero .wrap {
  position: relative;
  padding-top: clamp(64px, 8vw, 118px);
  padding-bottom: clamp(56px, 7vw, 96px);
}

.hero__inner { max-width: 820px; }

.hero h1 { margin-bottom: 22px; }

/* Chinese headline: 13 CJK glyphs need ~13em on one line.
   Cap the size so "为现代农业而生的钢结构建筑" stays on a single line
   inside the 820px column instead of wrapping. */
html[lang="zh-CN"] .hero h1 {
  white-space: nowrap;
  font-size: clamp(34px, 3.9vw, 58px);
  line-height: 1.18;
}

.hero h1 .hl {
  color: var(--green);
}

.hero .lead {
  color: #bdd0de;
  font-size: clamp(16px, 1.3vw, 19px);
}

/* page hero (inner pages) */
.phero {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(52px, 6vw, 86px) 0 clamp(46px, 5vw, 70px);
}

.phero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

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

.phero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(8, 26, 43, 0.95) 0%,
    rgba(8, 26, 43, 0.86) 46%,
    rgba(8, 26, 43, 0.6) 100%
  );
}

.phero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(100deg, #000 0%, transparent 70%);
}

.phero h1 { font-size: clamp(30px, 3.8vw, 50px); }
.phero .lead { color: #b3c8d8; margin-top: 18px; }

.crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 22px;
}

.crumb a:hover { color: var(--green); }
.crumb .sep { color: rgba(255, 255, 255, 0.28); }

/* ------------------------------------------------------------------ 09 */
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -26px rgba(13, 26, 38, 0.45);
}

.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--concrete-2);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.card:hover .card__media img { transform: scale(1.05); }

.card__num {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 6px 12px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.card__body {
  padding: 24px 24px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card__body h3 { transition: color 0.25s var(--ease); }
.card:hover .card__body h3 { color: var(--blue); }

.card__body p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.68;
}

.card__meta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.card--flat { border: 0; background: transparent; }
.card--flat:hover { transform: none; box-shadow: none; }

.card--flat .card__media { border: 1px solid var(--line); }

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(23, 99, 175, 0.08);
  border: 1px solid rgba(23, 99, 175, 0.18);
  padding: 4px 9px;
  border-radius: var(--radius);
}

.tag--green {
  color: #5d8616;
  background: rgba(157, 204, 83, 0.16);
  border-color: rgba(157, 204, 83, 0.42);
}

/* feature / system block */
.feature {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 22px;
  padding: 26px 0;
  border-top: 1px solid var(--line-soft);
}

.feature:last-child { border-bottom: 1px solid var(--line-soft); }

.feature__ico {
  width: 60px;
  height: 60px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--blue);
  background: #fff;
}

.feature__ico svg { width: 28px; height: 28px; }

.feature h3 { margin-bottom: 7px; }

.feature p {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
}

/* spec list */
.specs {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.specs li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14.5px;
  color: var(--ink-2);
}

.specs li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 8px;
  background: var(--green);
  flex: none;
}

.section--dark .specs,
.section--dark .specs li { border-color: rgba(255, 255, 255, 0.14); }
.section--dark .specs li { color: #cfdde8; }

/* timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}

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

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

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 15px;
  height: 15px;
  border: 2px solid var(--blue);
  background: #fff;
  border-radius: 50%;
}

.timeline .yr {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--blue);
  display: block;
  margin-bottom: 4px;
}

.timeline h4 { margin-bottom: 5px; }
.timeline p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ------------------------------------------------------------------ 10 */
.sec-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.sec-head--center {
  margin-inline: auto;
  text-align: center;
}

.sec-head--center .eyebrow { justify-content: center; }
.sec-head--center .lead { margin-inline: auto; }

.sec-head h2 { margin-bottom: 16px; }

.sec-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 32px 60px;
  align-items: end;
}

.quote {
  margin: 0;
  border-left: 3px solid var(--green);
  padding: 6px 0 6px 24px;
  font-size: clamp(18px, 1.9vw, 26px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.quote p { margin: 0; font-size: inherit; font-weight: inherit; }

.quote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-style: normal;
}

.section--dark .quote { color: #fff; }

/* figure with caption */
.fig {
  margin: 0;
  border: 1px solid var(--line);
  background: #fff;
}

.fig img { width: 100%; }

/* technical drawings: show in full, never crop */
.fig--contain,
.fig--profile {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  overflow: hidden;
}

.fig--contain { aspect-ratio: 4 / 3; padding: 14px; }
.fig--profile { aspect-ratio: 16 / 8; padding: 10px 14px; }

.fig--contain img,
.fig--profile img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.fig figcaption {
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* figure placed on a dark section */
.fig--onDark {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
}

.fig--onDark figcaption {
  border-color: rgba(255, 255, 255, 0.16);
  color: #9db2c2;
}

/* "drawing plate" — a light technical sheet shown inside a dark section */
.fig--plate {
  background: #fff;
  padding: 16px 16px 0;
  border-color: rgba(255, 255, 255, 0.22);
}

.fig--plate figcaption {
  margin: 16px -16px 0;
  padding: 12px 16px;
  border-top-color: var(--line-soft);
  color: var(--muted);
}

/* process steps */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.steps > div {
  background: #fff;
  padding: 26px 22px 30px;
  position: relative;
}

.steps > div::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--concrete-2);
  display: block;
  margin-bottom: 12px;
  line-height: 1;
}

.steps h4 { margin-bottom: 8px; font-size: 15.5px; }
.steps p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* CTA band */
.cta-band {
  position: relative;
  background: var(--blue-dk);
  color: #fff;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

.cta-band .wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding-block: clamp(38px, 4.4vw, 62px);
  flex-wrap: wrap;
}

.cta-band h2 { font-size: clamp(23px, 2.4vw, 34px); margin-bottom: 8px; }
.cta-band p { color: #c6dcf0; margin: 0; font-size: 15.5px; max-width: 56ch; }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ 11 */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.stats > div {
  background: #fff;
  padding: 30px 26px;
}

.stats b {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(28px, 3.1vw, 42px);
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stats span {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.section--dark .stats,
.section--dark .stats > div { background: transparent; border-color: rgba(255, 255, 255, 0.14); }
.section--dark .stats > div { background: rgba(255, 255, 255, 0.02); }
.section--dark .stats b { color: var(--green); }
.section--dark .stats span { color: #9db2c2; }

/* ------------------------------------------------------------------ 12 */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--concrete-2);
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.4s var(--ease);
}

.gallery figure:hover img { transform: scale(1.06); }

.gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px 16px 14px;
  background: linear-gradient(0deg, rgba(8, 26, 43, 0.9), transparent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.gallery figure:hover figcaption { opacity: 1; transform: none; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 18, 30, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

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

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox__close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 22px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
}

.lightbox__close:hover { background: rgba(255, 255, 255, 0.12); }

.lightbox__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  text-align: center;
  color: #b9cbd8;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* certificate cards */
.certs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.cert {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.cert:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -26px rgba(13, 26, 38, 0.4);
}

.cert__img {
  position: relative;
  background: var(--concrete);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  cursor: zoom-in;
  display: grid;
  place-items: center;
  padding: 14px;
}

.cert__img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 4px 16px -6px rgba(13, 26, 38, 0.35);
}

.cert__body {
  padding: 18px 20px 20px;
  border-top: 1px solid var(--line-soft);
  flex: 1;
}

.cert__body h3 { font-size: 16px; margin-bottom: 6px; }
.cert__body p { font-size: 13.5px; color: var(--muted); margin: 0; }

.cert__no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  margin-top: 10px;
  display: block;
}

/* ------------------------------------------------------------------ 13 */
.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-dk);
  border-radius: var(--radius);
  padding: 13px 14px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  width: 100%;
}

.field textarea { resize: vertical; min-height: 132px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 99, 175, 0.13);
}

.form__note {
  font-size: 13px;
  color: var(--muted);
  grid-column: 1 / -1;
}

.form__msg {
  grid-column: 1 / -1;
  display: none;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 14.5px;
  border: 1px solid rgba(157, 204, 83, 0.5);
  background: rgba(157, 204, 83, 0.14);
  color: #4d7211;
}

.form__msg.is-on { display: block; }

/* contact tiles */
.contact-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.contact-tile {
  background: #fff;
  padding: 26px 24px;
}

.contact-tile .k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: block;
  margin-bottom: 10px;
}

.contact-tile .v {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  word-break: break-word;
}

.contact-tile a:hover { color: var(--blue); }

.qr-card {
  border: 1px solid var(--line);
  background: #fff;
  padding: 16px;
  text-align: center;
}

.qr-card img { width: 100%; max-width: 190px; margin: 0 auto; }
.qr-card p {
  margin: 12px 0 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------------------------ 14 */
.site-footer {
  background: var(--navy);
  color: #a9bcca;
  padding: clamp(52px, 6vw, 78px) 0 0;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 38px 38px;
}

.site-footer .wrap { position: relative; }

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 52px;
}

.foot-brand img { width: 150px; margin-bottom: 20px; }

.foot-brand p {
  font-size: 14px;
  line-height: 1.72;
  color: #8fa6b8;
  max-width: 34ch;
}

.foot-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}

.foot-col ul { list-style: none; margin: 0; padding: 0; }

.foot-col li { margin-bottom: 11px; }

.foot-col a,
.foot-col span {
  font-size: 14px;
  color: #9db2c2;
  transition: color 0.2s var(--ease);
}

.foot-col a:hover { color: var(--green); }

.foot-col .k {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5f7789;
  margin-bottom: 3px;
}

.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: #708a9d;
}

.foot-bottom .links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-bottom a:hover { color: var(--green); }

/* ------------------------------------------------------------------ 15 */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal.is-in { opacity: 1; transform: none; }

.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;
}

.mt-s { margin-top: 18px; }
.mt-m { margin-top: 32px; }
.mt-l { margin-top: 52px; }
.center { text-align: center; }

/* ------------------------------------------------------------------ 16 */
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .mobile-nav { display: block; }
  .header-actions .btn { display: none; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --gutter: 20px; }
  .split,
  .split--wide-right,
  .split--wide-left,
  .sec-head--split { grid-template-columns: minmax(0, 1fr); }
  .g-2,
  .g-3 { grid-template-columns: minmax(0, 1fr); }
  .gallery,
  .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form { grid-template-columns: minmax(0, 1fr); }
  .contact-tiles { grid-template-columns: minmax(0, 1fr); }
  .brand__div,
  .brand__txt { display: none; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
  .steps { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .gallery,
  .certs,
  .g-4,
  .stats { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .topbar-list { gap: 14px; font-size: 11px; }
  .brand img { width: 112px; }
  .feature { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; }
  .feature__ico { width: 48px; height: 48px; }
  .feature__ico svg { width: 22px; height: 22px; }
  /* too narrow for a 13-glyph line — allow wrapping again */
  html[lang="zh-CN"] .hero h1 { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .topbar, .mobile-nav, .site-footer, .lightbox, .cta-band { display: none; }
  .hero, .phero { color: #000; background: #fff; }
  .hero__bg, .phero__bg { display: none; }
}
