@charset "utf-8";
/* ==========================================================================
   ChiangS — 东莞市坚世精密机械自动化有限公司
   Corporate website stylesheet
   Brand colours sampled from the company profile deck
   ========================================================================== */

:root {
  --blue: #0071c1;
  --blue-d: #004f8a;
  --blue-l: #2f9ade;
  --navy: #0b1b2b;
  --navy-2: #12263a;
  --navy-3: #1b3348;
  --red: #da251c;
  --green: #00923f;
  --ink: #101820;
  --body: #3d4c5c;
  --muted: #6c7c8c;
  --paper: #f4f6f9;
  --paper-2: #eef2f7;
  --line: #e2e8ef;
  --line-2: #cfd8e3;
  --white: #fff;
  --radius: 3px;
  --shadow-s: 0 2px 10px rgba(11, 27, 43, 0.06);
  --shadow-m: 0 18px 40px -22px rgba(11, 27, 43, 0.35);
  --shadow-l: 0 30px 70px -35px rgba(11, 27, 43, 0.45);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --sans: "Inter", "Segoe UI", "Helvetica Neue", Arial, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --maxw: 1220px;
  --gutter: clamp(18px, 4vw, 40px);
  --header-h: 80px;
}

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

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

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

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

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

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

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

ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: rgba(0, 113, 193, 0.16); }

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

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

.section { padding-block: clamp(46px, 5.6vw, 82px); position: relative; }
.section--tight { padding-block: clamp(34px, 4.2vw, 58px); }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy); color: rgba(255, 255, 255, 0.74); }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--line { border-top: 1px solid var(--line); }

.grid { display: grid; gap: clamp(14px, 1.8vw, 22px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ------------------------------------------------------------- headings */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--red);
}
.section--navy .eyebrow { color: var(--blue-l); }

.h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.h2 .en {
  display: block;
  margin-top: 10px;
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.section--navy .h2 .en { color: rgba(255, 255, 255, 0.45); }

.lead {
  font-size: clamp(15px, 1.15vw, 17px);
  color: var(--body);
  max-width: 62ch;
}
.section--navy .lead { color: rgba(255, 255, 255, 0.7); }

.section-head { max-width: 720px; margin-bottom: clamp(24px, 2.6vw, 38px); }
.section-head--split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.section-head--split .section-head__text { max-width: 660px; }

/* ------------------------------------------- bilingual secondary text */
/* inline English counterpart, e.g. inside buttons, links and chips */
.t-en {
  font-size: 0.86em;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #8492a0;
}
/* block English counterpart under a Chinese paragraph */
.en-line {
  display: block;
  margin-top: 0.5em;
  font-size: 0.88em;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.005em;
  color: #8492a0;
}
.btn .t-en { font-size: 0.8em; font-weight: 500; color: inherit; opacity: 0.82; }
.btn--outline .t-en { color: inherit; }
.link-arrow .t-en { font-weight: 500; color: var(--muted); }
.section--navy .t-en,
.section--navy .en-line { color: rgba(255, 255, 255, 0.5); }
.cta-band .t-en { color: rgba(255, 255, 255, 0.6); }
.cta-band .en-line { color: rgba(255, 255, 255, 0.5); }
.cta-band h2 .en-line {
  margin-top: 10px;
  font-size: clamp(13px, 1.15vw, 16px);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.6;
  max-width: 46ch;
}
.hero__tags .t-en { color: rgba(255, 255, 255, 0.42); }
.page-hero .t-en { color: rgba(255, 255, 255, 0.45); }
.value .en-line { color: rgba(255, 255, 255, 0.55); }
.case .en-line { color: #8492a0; }
.tab .t-en { display: block; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; }

/* -------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--blue);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.btn:hover { background: var(--blue-d); transform: translateY(-2px); box-shadow: 0 12px 24px -14px rgba(0, 80, 140, 0.7); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; flex: none; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.34);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; box-shadow: none; }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-2);
}
.btn--outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: none; }

.btn--sm { padding: 11px 20px; font-size: 14px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--blue);
  letter-spacing: 0.02em;
}
.link-arrow svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }
.section--navy .link-arrow { color: var(--blue-l); }

/* --------------------------------------------------------------- header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: height 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease);
}
.site-header.is-stuck {
  height: 66px;
  box-shadow: 0 10px 30px -22px rgba(11, 27, 43, 0.55);
  background: rgba(255, 255, 255, 0.97);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.brand { display: flex; align-items: center; gap: 14px; flex: none; }
.brand img { height: 46px; width: auto; transition: height 0.3s var(--ease); }
.is-stuck .brand img { height: 40px; }
.brand__text {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line-2);
  padding-left: 14px;
  line-height: 1.3;
}
.brand__cn { font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: 0.02em; }
.brand__en {
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  position: relative;
  display: block;
  padding: 10px 15px;
  font-size: 15px;
  font-weight: 600;
  color: #2b3a49;
  letter-spacing: 0.02em;
  transition: color 0.2s var(--ease);
}
.nav a small {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9aa8b6;
  transition: color 0.2s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 2px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav a:hover { color: var(--blue); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--blue); }
.nav a.is-active small { color: var(--blue); }

.header__cta { margin-left: 18px; flex: none; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* mobile drawer */
.drawer {
  position: fixed;
  inset: var(--header-h) 0 auto;
  z-index: 89;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-m);
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
}
.drawer.is-open { opacity: 1; transform: none; visibility: visible; }
.drawer nav { display: flex; flex-direction: column; padding: 10px var(--gutter) 26px; }
.drawer nav a {
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.drawer nav a small { font-size: 11px; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; }
.drawer nav a.btn {
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-bottom: 0;
  color: #fff;
  font-size: 15px;
}
.drawer nav a.btn small { display: none; }
.drawer .btn { margin-top: 20px; width: 100%; }

/* ----------------------------------------------------------------- hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(480px, 74vh, 690px);
  padding-top: var(--header-h);
  color: rgba(255, 255, 255, 0.78);
  background: var(--navy);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/hero-impeller.jpg");
  background-size: cover;
  background-position: 62% 45%;
  transform: scale(1.04);
  animation: heroZoom 18s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(6, 17, 29, 0.95) 0%, rgba(6, 17, 29, 0.86) 38%, rgba(6, 17, 29, 0.4) 72%, rgba(6, 17, 29, 0.55) 100%),
    radial-gradient(120% 90% at 88% 8%, rgba(0, 113, 193, 0.3), transparent 60%);
}
.hero__grid {
  position: absolute;
  inset: 0;
  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(180deg, #000 0%, rgba(0, 0, 0, 0.25) 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.25) 70%, transparent 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(40px, 5.4vw, 72px) var(--gutter) clamp(26px, 3.4vw, 42px);
}
.hero__eye {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 7px 16px 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
}
.hero__eye i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(218, 37, 28, 0.22);
}
.hero h1 {
  max-width: 15ch;
  margin-bottom: 18px;
  font-size: clamp(38px, 5.4vw, 66px);
  line-height: 1.1;
  letter-spacing: 0.005em;
  color: #fff;
  font-weight: 800;
}
.hero h1 em {
  font-style: normal;
  color: #fff;
  position: relative;
  display: inline-block;
}
.hero__lead {
  max-width: 60ch;
  font-size: clamp(15px, 1.18vw, 17.5px);
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.74);
}
.hero__h1-en {
  margin: -8px 0 18px;
  font-size: clamp(14px, 1.5vw, 19px);
  font-weight: 500;
  letter-spacing: 0.045em;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.52);
  max-width: 48ch;
}
.hero__en {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.45);
  max-width: 62ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.hero__tags span {
  padding: 6px 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 100px;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
}

/* hero stat bar */
.stats {
  position: relative;
  z-index: 2;
  background: #06111d;
}
.stats__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.stat {
  padding: 20px 20px 20px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.stat:last-child { border-right: 0; }
.stat__num {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.stat__num small { font-size: 0.5em; font-weight: 700; color: var(--blue-l); letter-spacing: 0.02em; }
.stat__label {
  margin-top: 6px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
}
.stat__label b { display: block; font-weight: 600; color: rgba(255, 255, 255, 0.78); font-size: 13px; letter-spacing: 0.04em; }

/* ---------------------------------------------------------- capability */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.cap {
  position: relative;
  padding: 28px 26px 26px;
  background: #fff;
  transition: background 0.3s var(--ease);
}
.cap::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.cap:hover { background: #fbfcfe; }
.cap:hover::before { transform: scaleX(1); }
.cap__idx {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--line-2);
  font-variant-numeric: tabular-nums;
}
.cap__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--blue);
  background: linear-gradient(160deg, #fff, var(--paper));
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.cap:hover .cap__icon { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-2px); }
.cap__icon svg { width: 26px; height: 26px; }
.cap h3 { font-size: 19px; margin-bottom: 6px; letter-spacing: 0.02em; }
.cap__en {
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.cap p { font-size: 14.5px; line-height: 1.78; color: var(--body); }

/* ------------------------------------------------------------- split / about */
.split {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: clamp(26px, 3.6vw, 56px);
}
.split--rev .split__media { order: 2; }
.split__media { position: relative; }

.media-stack { position: relative; padding-bottom: 38px; padding-right: 38px; }
.media-stack__main {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: var(--shadow-m);
}
.media-stack__main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.media-stack__sub {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  overflow: hidden;
  border: 6px solid #fff;
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: var(--shadow-m);
}
.media-stack__sub img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.media-stack__badge {
  position: absolute;
  top: 22px;
  left: -14px;
  padding: 14px 20px;
  background: var(--red);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: 0 14px 30px -16px rgba(218, 37, 28, 0.8);
  line-height: 1.25;
}
.media-stack__badge b { display: block; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.media-stack__badge span { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.86; }

.about-body p { margin-bottom: 1.1em; }
.about-en {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.about-en p {
  font-size: 14px;
  line-height: 1.85;
  color: #7f8d9b;
  margin-bottom: 0.85em;
}
.about-en p:last-child { margin-bottom: 0; }
/* full-width English profile under the split block: balanced two-column text */
.about-en--wide {
  columns: 2;
  column-gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(26px, 3vw, 38px);
}
.about-en--wide p { break-inside: avoid; }
@media (max-width: 860px) { .about-en--wide { columns: 1; } }
.about-list { display: grid; gap: 12px; margin: 20px 0 24px; }
.about-list li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  color: var(--ink);
}
.about-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 14px; height: 2px;
  background: var(--blue);
}
.about-list li b { font-weight: 700; }
.about-list li span { color: var(--muted); font-size: 13px; display: block; letter-spacing: 0.02em; }

/* values */
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); }
.value { padding: 26px 22px; background: var(--navy); transition: background .3s var(--ease); }
.value:hover { background: var(--navy-2); }
.value__cn { font-size: 22px; font-weight: 700; color: #fff; letter-spacing: 0.08em; }
.value__en { margin-top: 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue-l); }
.value p { margin-top: 14px; font-size: 14px; line-height: 1.8; color: rgba(255,255,255,.62); }

/* ------------------------------------------------------------- process */
.process { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.step { position: relative; padding: 0 clamp(12px, 1.6vw, 26px) 0 0; }
.step::after {
  content: "";
  position: absolute;
  top: 21px; left: 42px; right: 6px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px);
}
.step:last-child::after { display: none; }
.step__dot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  margin-bottom: 16px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: #fff;
  font-size: 14px;
  font-weight: 800;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.step:hover .step__dot { background: var(--blue); border-color: var(--blue); color: #fff; }
.step h3 { font-size: 16.5px; margin-bottom: 6px; }
.step__en { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.step p { font-size: 13.5px; line-height: 1.75; color: var(--body); }

/* --------------------------------------------------------------- cards */
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 22px); }
.case {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.case:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); border-color: transparent; }
.case__media { position: relative; overflow: hidden; background: var(--paper-2); }
.case__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.7s var(--ease); }
.case:hover .case__media img { transform: scale(1.05); }
.case__tag {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 11px;
  background: rgba(11, 27, 43, 0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}
.case__body { padding: 18px 20px 20px; }
.case__body h3 { font-size: 18px; margin-bottom: 8px; }
.case__body p { font-size: 14px; color: var(--body); margin-bottom: 12px; }
.case__en { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 10px; }

/* ----------------------------------------------------------- page hero */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(270px, 30vh, 350px);
  padding-top: var(--header-h);
  background:
    radial-gradient(80% 130% at 88% -10%, rgba(0, 113, 193, 0.42), transparent 58%),
    radial-gradient(60% 100% at 5% 110%, rgba(218, 37, 28, 0.14), transparent 60%),
    linear-gradient(155deg, #071322 0%, #0c2035 52%, #08182a 100%);
  color: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.42;
  filter: saturate(0.85);
}
.page-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 16, 27, 0.35) 100%);
}
.page-hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(120deg, #000 0%, rgba(0,0,0,.55) 45%, transparent 85%);
  -webkit-mask-image: linear-gradient(120deg, #000 0%, rgba(0,0,0,.55) 45%, transparent 85%);
}
.page-hero__ghost {
  position: absolute;
  right: -1%;
  bottom: -0.42em;
  font-size: clamp(110px, 17vw, 250px);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.028);
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.page-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(24px, 3.2vw, 38px);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255, 255, 255, 0.28); }
.page-hero h1 {
  font-size: clamp(30px, 4vw, 52px);
  color: #fff;
  letter-spacing: 0.01em;
  font-weight: 800;
}
.page-hero h1 small {
  display: block;
  margin-top: 10px;
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-l);
}
.page-hero__lead { margin-top: 14px; max-width: 62ch; font-size: 15px; color: rgba(255, 255, 255, 0.62); }

/* -------------------------------------------------------------- gallery */
.gallery { display: grid; gap: 10px; }
.gallery--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shot {
  position: relative;
  display: block;
  padding: 0;
  border: 1px solid var(--line);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-2);
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), filter 0.4s var(--ease); }
.shot::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 18, 30, 0.5));
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.shot:hover img { transform: scale(1.06); }
.shot:hover::after { opacity: 1; }
.shot__cap {
  position: absolute;
  left: 16px; right: 16px; bottom: 14px;
  z-index: 2;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.shot:hover .shot__cap, .shot:focus-visible .shot__cap { opacity: 1; transform: none; }
.shot--wide { aspect-ratio: 16 / 9; }

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(4, 10, 17, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; max-width: 1100px; width: 100%; }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: var(--radius); }
.lightbox figcaption {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  letter-spacing: 0.02em;
}
.lightbox__close {
  position: absolute;
  top: 20px; right: 22px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.12); transform: rotate(90deg); }
.lightbox__nav {
  position: absolute;
  top: 50%;
  width: 48px; height: 48px;
  margin-top: -24px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
  transition: background 0.25s var(--ease);
}
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.16); }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }

/* ---------------------------------------------------------------- tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  width: fit-content;
  max-width: 100%;
}
.tab {
  padding: 12px 22px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: #4a5a6a;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.tab small { display: block; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; opacity: 0.62; }
.tab:hover { color: var(--blue); }
.tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-s); }
.tab[aria-selected="true"] small { color: var(--blue); opacity: 1; }

.tabpanel { display: none; }
.tabpanel.is-active { display: block; animation: fadeUp 0.5s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* -------------------------------------------------------------- vision */
.vision {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.vision li {
  display: flex;
  gap: 18px;
  padding: 24px 22px;
  background: #fff;
  transition: background 0.3s var(--ease);
}
.vision li:last-child { grid-column: 1 / -1; }
.vision li:hover { background: #fbfcfe; }
.vision__num {
  flex: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--blue);
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
}
.vision h3 { font-size: 17.5px; margin-bottom: 6px; }
.vision h3 span {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}
.vision p { font-size: 14px; line-height: 1.75; color: var(--body); }

/* --------------------------------------------------------------- qc grid */
.qc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.qc {
  position: relative;
  padding: 26px 22px 24px;
  background: #fff;
  transition: background 0.3s var(--ease);
}
.qc:hover { background: #fbfcfe; }
.qc__num {
  display: block;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.qc h3 { font-size: 17px; margin-bottom: 5px; }
.qc__en {
  margin-bottom: 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.qc p { font-size: 13.5px; line-height: 1.75; }

/* ------------------------------------------------------------ skip link */
.skip-link {
  position: fixed;
  top: 10px; left: 50%;
  z-index: 300;
  transform: translate(-50%, -160%);
  padding: 12px 22px;
  border-radius: 2px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* --------------------------------------------------------------- table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.equip { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 14.5px; }
table.equip thead th {
  padding: 9px 16px;
  text-align: left;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
table.equip tbody td { padding: 7px 16px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.35; }
table.equip tbody tr:last-child td { border-bottom: 0; }
table.equip tbody tr:hover { background: #f8fafc; }
table.equip td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
table.equip td:nth-child(2) { color: var(--ink); }
table.equip td.flow { color: var(--blue); font-weight: 600; font-size: 13px; letter-spacing: 0.06em; }
table.equip td .t-en { margin-left: 6px; font-size: 0.8em; }
table.equip td .en-line {
  margin-top: 0.1em;
  font-size: 0.82em;
  line-height: 1.35;
  color: #8492a0;
}

/* ----------------------------------------------------------- org chart */
.org { display: grid; gap: 14px; justify-items: center; max-width: 1040px; margin-inline: auto; }
.org__top {
  padding: 16px 30px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-align: center;
}
.org__top small { display: block; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,.5); font-weight: 600; margin-top: 2px; }
.org__top--gm { background: var(--blue); }
.org__wire { width: 1px; height: 26px; background: #c6d1de; }
.org__depts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  padding-top: 28px;
  position: relative;
}
.org__depts::before {
  content: "";
  position: absolute;
  top: 0; left: 12.5%; right: 12.5%;
  height: 1px;
  background: #c6d1de;
}
.dept {
  position: relative;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
}
.dept::before {
  content: "";
  position: absolute;
  top: -28px; left: 50%;
  width: 1px; height: 28px;
  background: #c6d1de;
}
.dept h3 { font-size: 16px; }
.dept__en { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.dept ul { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.dept li {
  padding: 5px 11px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 12.5px;
  color: #4a5a6a;
}
.dept li b { font-weight: 600; color: var(--ink); }
.dept li i { font-style: normal; color: var(--muted); font-size: 10px; letter-spacing: 0.06em; }
.org__note { margin-top: 22px; font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(22px, 3vw, 46px); align-items: stretch; }
/* let the map card absorb leftover height so both columns end level */
.contact-grid > .reveal:first-child { display: flex; flex-direction: column; }
.contact-grid .info-list { flex: none; }
.contact-grid .map-card { flex: 1 1 auto; }

.info-list { display: grid; gap: 2px; }
.info {
  display: flex;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.info:first-child { padding-top: 0; }
.info__icon {
  flex: none;
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--blue);
  background: var(--paper);
}
.info__icon svg { width: 19px; height: 19px; }
.info dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.info dd { margin: 0; font-size: 15.5px; color: var(--ink); font-weight: 500; line-height: 1.7; }
.info dd span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; letter-spacing: 0.01em; }
.info dd a:hover { color: var(--blue); }

.form-card {
  padding: clamp(20px, 2.2vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-s);
}
.form-card h3 { font-size: 20px; margin-bottom: 6px; }
.form-card h3 .t-en {
  display: block;
  margin-top: 5px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-card > p { font-size: 13.5px; color: var(--muted); margin-bottom: 26px; }
.field { margin-bottom: 14px; }
.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #56657a;
}
.field label i { color: var(--red); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: #fcfdfe;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.field textarea { min-height: 118px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 193, 0.13);
}
.field--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field--2 .field { margin-bottom: 0; }
.form-note { margin-top: 16px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.form-status { margin-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--green); display: none; }
.form-status.is-on { display: block; }

.map-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(0, 113, 193, 0.05) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(0, 113, 193, 0.05) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--paper);
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
}
.map-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed var(--line-2);
  border-radius: 2px;
  pointer-events: none;
}
.map-card__pin {
  position: relative;
  z-index: 1;
  width: 52px; height: 52px;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 0 10px rgba(0, 113, 193, 0.12), 0 0 0 20px rgba(0, 113, 193, 0.06);
}
.map-card b { display: block; font-size: 15px; color: var(--ink); position: relative; z-index: 1; }
.map-card span { display: block; font-size: 12.5px; color: var(--muted); margin: 4px 0 16px; position: relative; z-index: 1; }

/* ----------------------------------------------------------------- cta */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 120% at 90% 10%, rgba(0, 113, 193, 0.35), transparent 60%),
    linear-gradient(90deg, rgba(218, 37, 28, 0.14), transparent 40%);
}
.cta-band__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-block: clamp(34px, 3.8vw, 52px);
}
.cta-band h2 {
  font-size: clamp(24px, 2.8vw, 36px);
  color: #fff;
  max-width: 26ch;
  text-wrap: balance;
}
.cta-band p { margin-top: 10px; font-size: 15px; color: rgba(255, 255, 255, 0.55); max-width: 52ch; }
.cta-band .btn--ghost { border-color: rgba(255,255,255,.3); }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* -------------------------------------------------------------- footer */
.site-footer { background: #071322; color: rgba(255, 255, 255, 0.6); padding-top: clamp(16px, 1.8vw, 24px); }
.footer__top {
  display: grid;
  grid-template-columns: 1fr 0.46fr 0.86fr 1.9fr;
  gap: clamp(14px, 1.8vw, 26px);
  padding-bottom: 10px;
}
/* equal-height columns: lists spread so all four columns end on the same line */
.footer__top { align-items: stretch; }
.footer__brand { display: flex; flex-direction: column; }
.footer__brand > * { flex: 0 0 auto; }
.footer__brand img { align-self: flex-start; }
.footer__brand .footer__vals { margin-top: auto; margin-bottom: 3px; }
.footer__top > .footer { display: flex; flex-direction: column; }
.footer__top > .footer > ul {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
}
.footer__top > .footer > ul > li { margin-bottom: 0; }
.footer__brand img { height: 34px; width: auto; margin-bottom: 7px; }
.footer__brand p { font-size: 12.5px; line-height: 1.45; max-width: 40ch; margin-bottom: 0; }
.footer__brand p.footer__en {
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.4);
  max-width: 38ch;
}
.footer h4 .t-en {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.32);
  font-weight: 600;
}
.footer__vals {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-items: stretch;
  gap: 4px 6px;
  margin-top: 6px;
}
.footer__vals span {
  width: 100%;
  padding: 1px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 100px;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.62);
  text-align: center;
  white-space: nowrap;
}
.footer h4 {
  margin-bottom: 6px;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.footer ul li { margin-bottom: 3px; font-size: 12.5px; line-height: 1.45; }
/* keep the Chinese label and its English on one line */
.footer ul li a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.footer ul li a .t-en {
  font-size: 0.78em;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.38);
}
.footer ul li a:hover { color: var(--blue-l); }
.footer__contact li {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  column-gap: 8px;
  align-items: baseline;
  font-size: 12.5px;
  line-height: 1.45;
  margin-bottom: 4px;
}
.footer__contact li > span { min-width: 0; }
.footer__contact .addr-en {
  font-size: 10px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.5);
  overflow-wrap: break-word;
}
.footer__contact b { display: block; color: rgba(255,255,255,.42); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; margin-bottom: 0; white-space: nowrap; }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-block: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.38);
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0;
}
.footer__legal span { opacity: 0.4; }
.footer__legal a { white-space: nowrap; }
.footer__bottom a:hover { color: #fff; }

/* --------------------------------------------------------- back to top */
.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 80;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s, background 0.25s var(--ease);
  box-shadow: 0 12px 26px -14px rgba(11, 27, 43, 0.8);
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--blue); }

/* ------------------------------------------------------------- reveal */
/* hidden state only when JS is available, so content stays visible without JS */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* design capability */
.video-block {
  max-width: 900px;
  margin: 30px auto 0;
}
.video-block video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: #000;
  box-shadow: var(--shadow-m);
}
.video-block__cap {
  margin: 12px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}
.video-block__cap .t-en { color: #9aa8b6; }

.design-flow { margin-top: 6px; }
.design-flow .step p { font-size: 13px; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .nav a { padding: 10px 11px; font-size: 14px; }
  .header__cta { margin-left: 10px; }
  .brand__text { display: none; }
}

@media (max-width: 960px) {
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .split { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vision { grid-template-columns: 1fr; }
  .qc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .step::after { display: none; }
  .org__depts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .org__depts::before, .dept::before { display: none; }
  .org__depts { padding-top: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .stats__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 20px 18px 20px 0; }
  .stat:nth-child(2n) { border-right: 0; }
  .cap-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .gallery--3, .gallery--2 { grid-template-columns: 1fr; }
  .media-stack { padding-right: 30px; padding-bottom: 30px; }
  .media-stack__sub { width: 42%; border-width: 4px; }
  .media-stack__badge { left: -6px; padding: 10px 15px; }
  .media-stack__badge b { font-size: 18px; }
  .field--2 { grid-template-columns: 1fr; gap: 18px; }
  .field--2 .field { margin-bottom: 0; }
  .hero { min-height: auto; }
  .hero__inner { padding-top: 48px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { justify-content: flex-start; }
  .tabs { width: 100%; }
  .tab { flex: 1 1 auto; text-align: center; padding: 11px 12px; }
  .values { grid-template-columns: 1fr; }
  .qc-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .org__depts { grid-template-columns: 1fr; }
  .lightbox__nav { display: none; }
}

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

@media print {
  .site-header, .to-top, .drawer, .lightbox, .cta-band { display: none !important; }
  body { color: #000; }
}
