/* ==========================================================================
   斯笃恩智能科技有限公司 / Stune Intelligent Technology Co., Ltd.
   Global Stylesheet
   ========================================================================== */

:root {
  --primary: #0b5cd5;
  --primary-dark: #074099;
  --primary-light: #e8f1fe;
  --accent: #ff7a18;
  --accent-dark: #e06200;
  --text: #1b2733;
  --text-soft: #4a5b6d;
  --muted: #7c8b9a;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --bg-deep: #0a2540;
  --border: #e2e9f1;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(16, 42, 74, 0.06);
  --shadow: 0 8px 26px rgba(16, 42, 74, 0.09);
  --shadow-lg: 0 18px 48px rgba(16, 42, 74, 0.14);
  --maxw: 1200px;
  --nav-h: 80px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 4.4vw, 50px); }
h2 { font-size: clamp(24px, 3vw, 36px); }
h3 { font-size: clamp(19px, 2vw, 23px); }
h4 { font-size: 17px; }
p { color: var(--text-soft); }

.section { padding: 84px 0; position: relative; }
.section:not(.section--deep)::before {
  content: ""; position: absolute; inset: 0;
  background: url('../img/tech/tech-bg.png');
  background-size: cover; background-position: center; background-repeat: no-repeat;
  opacity: .55; pointer-events: none; z-index: 0;
}
.section .container { position: relative; z-index: 1; }
.section--soft { background: var(--bg-soft); }
.section--deep { background: var(--bg-deep); color: #fff; }
.section--deep p { color: rgba(255,255,255,.78); }
.section--deep h2, .section--deep h3 { color: #fff; }

.section-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.section-head .eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; margin-bottom: 14px;
  background: linear-gradient(90deg, var(--primary), #2e8bff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  position: relative; padding-bottom: 8px;
}
.section-head .eyebrow::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 0; width: 34px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
.section-head--left .eyebrow::after { left: 0; transform: none; }
.section-head p { margin-top: 16px; font-size: 17px; }
.section-head--left { margin-left: 0; text-align: left; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 30px; border-radius: 999px;
  font-size: 15px; font-weight: 600; border: 1.5px solid transparent;
  cursor: pointer; transition: all .22s ease; white-space: nowrap;
}
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(11, 92, 213, .28); }
.btn--primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--outline { border-color: var(--primary); color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.logo { display: flex; align-items: center; gap: 13px; font-weight: 800; font-size: 22px; color: var(--text); letter-spacing: .01em; }
.logo:hover { color: var(--text); }
.logo-mark {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  object-fit: contain;
}
.logo-sub { display: block; font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: .04em; line-height: 1.25; }

.nav-menu { display: flex; align-items: center; gap: 12px; }
.nav-link {
  font-size: 15px; font-weight: 600; color: var(--text-soft); position: relative;
  padding: 9px 14px; border-radius: 999px;
  background: rgba(0, 102, 204, 0.08);
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.nav-link:hover {
  background: var(--primary); color: #fff;
  box-shadow: 0 6px 18px rgba(0, 102, 204, 0.28);
}
.nav-link.is-active {
  background: var(--primary); color: #fff; font-weight: 700;
  box-shadow: 0 6px 18px rgba(0, 102, 204, 0.28);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -3px; width: 0; height: 2px;
  background: var(--primary); transition: width .25s ease;
}
.nav-link:hover::after, .nav-link.is-active::after { width: 100%; }
@media (min-width: 781px) {
  .nav-link::after { display: none; }
  .nav-link:hover::after, .nav-link.is-active::after { width: 0; }
}

.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 15px; border-radius: 999px; border: 1px solid transparent;
  font-size: 13px; font-weight: 700; color: var(--primary);
  background: rgba(0, 102, 204, 0.10);
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.lang-switch:hover {
  background: var(--primary); border-color: var(--primary); color: #fff;
  box-shadow: 0 6px 18px rgba(0, 102, 204, 0.28);
}
.lang-switch svg { width: 15px; height: 15px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background-image:
    url('../img/tech/hero-glow.png'),
    radial-gradient(circle at 18% 28%, rgba(255, 60, 90, .28), transparent 34%),
    radial-gradient(circle at 86% 74%, rgba(0, 168, 255, .26), transparent 36%),
    radial-gradient(circle at 72% 18%, rgba(0, 200, 255, .16), transparent 28%),
    linear-gradient(110deg, rgba(10,37,64,.92) 0%, rgba(10,37,64,.72) 45%, rgba(10,37,64,.42) 100%),
    url('../img/company/building-2.jpg');
  background-size: cover; background-position: center; background-repeat: no-repeat;
  color: #fff; padding: 96px 0 108px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    linear-gradient(135deg, rgba(255, 50, 80, .10) 0%, transparent 40%),
    linear-gradient(315deg, rgba(0, 168, 255, .10) 0%, transparent 40%);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px; pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 26px;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.24);
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }
.hero h1 { color: #fff; margin: 0 0 22px; }
.hero h1 .hl { color: #ffb066; }
.hero-lead { font-size: 18px; color: rgba(255,255,255,.85); max-width: 600px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero .hero-brand {
  font-size: clamp(30px, 5.2vw, 64px);
  font-weight: 800; line-height: 1.15; letter-spacing: .04em;
  color: #fff; margin: 0 0 8px; text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.hero-brand-en {
  display: inline-block; font-size: clamp(12px, 1.35vw, 16px);
  font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  background: linear-gradient(90deg, #7fb6ff 0%, #fff 50%, #ffb066 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 20px;
}
.hero-tagline {
  font-size: clamp(22px, 3.2vw, 38px);
  font-weight: 700; line-height: 1.3; color: #fff;
  margin: 0 0 18px;
}
.hero-tagline .hl { color: #ffb066; }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow:
    0 24px 70px rgba(0,0,0,.35),
    0 0 0 1px rgba(255,255,255,.18),
    0 0 0 5px rgba(0, 168, 255, .12),
    0 0 28px rgba(0, 168, 255, .18),
    0 0 48px rgba(255, 60, 90, .10);
  background: rgba(255,255,255,.06);
  aspect-ratio: 4 / 3;
}
.hero-visual::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, rgba(0, 200, 255, .55), rgba(255, 60, 90, .45)) border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.hero-visual::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(to right, rgba(0, 200, 255, .85) 2px, transparent 2px) 14px 14px / 22px 2px no-repeat,
    linear-gradient(to bottom, rgba(0, 200, 255, .85) 2px, transparent 2px) 14px 14px / 2px 22px no-repeat,
    linear-gradient(to left, rgba(255, 60, 90, .85) 2px, transparent 2px) calc(100% - 14px) 14px / 22px 2px no-repeat,
    linear-gradient(to bottom, rgba(255, 60, 90, .85) 2px, transparent 2px) calc(100% - 14px) 14px / 2px 22px no-repeat,
    linear-gradient(to right, rgba(255, 60, 90, .85) 2px, transparent 2px) 14px calc(100% - 14px) / 22px 2px no-repeat,
    linear-gradient(to top, rgba(255, 60, 90, .85) 2px, transparent 2px) 14px calc(100% - 14px) / 2px 22px no-repeat,
    linear-gradient(to left, rgba(0, 200, 255, .85) 2px, transparent 2px) calc(100% - 14px) calc(100% - 14px) / 22px 2px no-repeat,
    linear-gradient(to top, rgba(0, 200, 255, .85) 2px, transparent 2px) calc(100% - 14px) calc(100% - 14px) / 2px 22px no-repeat;
}
.hero-visual .scanline {
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, transparent, rgba(0, 230, 255, .85), transparent);
  box-shadow: 0 0 14px rgba(0, 230, 255, .7);
  animation: scanline 4s linear infinite;
  z-index: 4; pointer-events: none;
}
@keyframes scanline {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(calc(var(--visual-h, 360px))); opacity: 0; }
}
.hero-visual svg, .hero-visual img {
  width: 100%; height: 100%; display: block; object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: -46px; position: relative; z-index: 5; }
.stat-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; text-align: center; box-shadow: var(--shadow-sm);
}
.stat-num { font-size: 34px; font-weight: 800; color: var(--primary); line-height: 1.1; }
.stat-num span { font-size: 20px; }
.stat-label { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; transition: all .26s ease; height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--primary-light); }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 20px;
  background: var(--primary-light); display: flex; align-items: center; justify-content: center;
}
.card-icon svg { width: 26px; height: 26px; stroke: var(--primary); fill: none; stroke-width: 1.8; }
.card h3 { margin-bottom: 12px; font-size: 19px; }
.card p { font-size: 15px; }
.card-list { margin-top: 16px; }
.card-list li {
  font-size: 14px; color: var(--text-soft); padding-left: 20px; position: relative; margin-top: 9px;
}
.card-list li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent);
}

.card--dark { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.13); }
.card--dark:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.3); }
.card--dark .card-icon { background: rgba(255,255,255,.12); }
.card--dark .card-icon svg { stroke: #7fb6ff; }
.card--dark h3, .card--dark h4 { color: #fff; }
.card--dark p, .card--dark li { color: rgba(255,255,255,.75); }

/* ---------- Industry chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip {
  padding: 11px 22px; border-radius: 999px; background: #fff;
  border: 1px solid var(--border); font-size: 15px; font-weight: 500; color: var(--text-soft);
  transition: all .22s ease;
}
.chip:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-sm); }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.process-step { position: relative; text-align: center; }
.process-num {
  width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--primary); color: #fff; font-weight: 800; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(11,92,213,.26);
}
.process-step h4 { font-size: 15px; margin-bottom: 7px; }
.process-step p { font-size: 13px; line-height: 1.6; }
.process-step:not(:last-child)::after {
  content: ""; position: absolute; top: 23px; left: calc(50% + 32px);
  width: calc(100% - 46px); height: 1px; background: repeating-linear-gradient(90deg, var(--border) 0 6px, transparent 6px 12px);
}

/* ---------- Page header ---------- */
.page-head {
  background: linear-gradient(120deg, #0a2540, #0b3a6e);
  color: #fff; padding: 62px 0 58px;
}
.page-head h1 { color: #fff; font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 14px; }
.page-head p { color: rgba(255,255,255,.8); font-size: 17px; max-width: 720px; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.62); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,.82); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 8px; }

/* ---------- Feature rows ---------- */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 56px 0; border-bottom: 1px solid var(--border);
}
.feature-row:last-child { border-bottom: none; }
.feature-row--reverse .feature-visual { order: -1; }
.feature-row h2 { margin-bottom: 16px; }
.feature-row p { margin-bottom: 18px; }
.feature-visual {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--border); background: var(--bg-soft);
}
.feature-visual svg { width: 100%; height: auto; }

/* Text-only feature rows (no schematic visuals) */
.feature-row--text-only {
  grid-template-columns: minmax(0, 900px);
  justify-content: center;
  text-align: center;
  padding: 64px 0;
}
.feature-row--text-only .reveal {
  max-width: 820px;
  margin: 0 auto;
}
.feature-row--text-only .eyebrow,
.feature-row--text-only h2,
.feature-row--text-only p,
.feature-row--text-only .btn { margin-left: auto; margin-right: auto; }
.feature-row--text-only .card-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 22px;
  text-align: left;
  margin: 28px auto 32px;
  max-width: 760px;
}
.feature-row--text-only .card-list li {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 18px 38px;
  margin-top: 0;
  box-shadow: var(--shadow-sm);
}
.feature-row--text-only .card-list li::before {
  left: 18px;
  top: 25px;
  width: 7px;
  height: 7px;
  background: var(--primary);
}
.feature-row--text-only .card-list li strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
}

@media (max-width: 640px) {
  .feature-row--text-only .card-list {
    grid-template-columns: 1fr;
  }
}
.feature-visual img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

/* ---------- Timeline ---------- */
.timeline { border-left: 2px solid var(--border); padding-left: 32px; margin-left: 12px; }
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -41px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--primary);
}
.timeline-year { font-size: 13px; font-weight: 800; color: var(--primary); letter-spacing: .06em; }
.timeline-item h3 { font-size: 18px; margin: 5px 0 8px; }
.timeline-item p { font-size: 15px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; }
.contact-item { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.contact-item:last-of-type { border-bottom: none; }
.contact-ico {
  width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0;
  background: var(--primary-light); display: flex; align-items: center; justify-content: center;
}
.contact-ico svg { width: 21px; height: 21px; stroke: var(--primary); fill: none; stroke-width: 1.8; }
.contact-item h4 { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 4px; letter-spacing: .04em; }
.contact-item p, .contact-item a { font-size: 16px; color: var(--text); font-weight: 500; }

.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font-size: 15px; font-family: inherit;
  border: 1.5px solid var(--border); border-radius: 8px; background: #fff; color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11,92,213,.12);
}
.field textarea { min-height: 116px; resize: vertical; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.form-status { margin-top: 16px; padding: 13px 16px; border-radius: 8px; font-size: 14px; display: none; }
.form-status.ok { display: block; background: #e8f7ee; color: #1a7f42; border: 1px solid #b7e4c7; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--primary), #2e8bff);
  border-radius: var(--radius-lg); padding: 54px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  box-shadow: var(--shadow);
}
.cta-banner h2 { color: #fff; margin-bottom: 10px; }
.cta-banner p { color: rgba(255,255,255,.86); max-width: 560px; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-deep); color: rgba(255,255,255,.72); padding: 62px 0 0; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 18px; letter-spacing: .03em; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 44px; }
.footer .logo { color: #fff; margin-bottom: 16px; }
.footer .logo:hover { color: #fff; }
.footer-about { font-size: 14px; line-height: 1.8; max-width: 300px; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { color: rgba(255,255,255,.7); font-size: 14.5px; }
.footer-links a:hover { color: #fff; }
.footer-contact li { font-size: 14.5px; margin-bottom: 12px; display: flex; gap: 10px; line-height: 1.6; }
.footer-contact svg { width: 16px; height: 16px; stroke: var(--primary); flex-shrink: 0; margin-top: 4px; fill: none; stroke-width: 1.8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
  font-size: 13.5px; color: rgba(255,255,255,.55);
}
.footer-bottom a { color: rgba(255,255,255,.62); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--primary); color: #fff; font-size: 19px;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: all .3s ease;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.team-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--border); background: #fff;
}
.team-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.team-caption { padding: 22px 24px; }
.team-caption h3 { font-size: 18px; margin-bottom: 6px; }
.team-caption p { font-size: 14px; margin: 0; color: var(--muted); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(3, 1fr); gap: 30px 16px; }
  .process-step:not(:last-child)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .feature-row { gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 780px) {
  .nav-menu {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 24px 20px;
    box-shadow: var(--shadow); display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-link {
    padding: 13px 0; border-bottom: 1px solid var(--border);
    background: transparent; border-radius: 0; box-shadow: none;
    color: var(--text-soft);
  }
  .nav-link:hover, .nav-link.is-active {
    background: transparent; color: var(--primary); box-shadow: none;
  }
  .nav-toggle { display: block; }
  .nav-actions { display: flex; align-items: center; gap: 12px; }
  .hero { padding: 70px 0 64px; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: -30px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .feature-row, .feature-row--reverse .feature-visual { grid-template-columns: 1fr; order: 0; }
  .section { padding: 58px 0; }
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 36px 26px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Case gallery ---------- */
.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }

/* ---------- 3D gallery ---------- */
.gallery3d-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.gallery3d-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  cursor: pointer; transition: transform .25s ease, box-shadow .25s ease;
}
.gallery3d-card:hover, .gallery3d-card:focus-visible {
  transform: translateY(-5px); box-shadow: var(--shadow-lg); outline: none;
}
.gallery3d-card__thumb {
  width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: #f5f8fc;
  display: flex; align-items: center; justify-content: center; position: relative;
}
.gallery3d-card__thumb img {
  width: 100%; height: 100%; object-fit: contain; display: block; padding: 14px;
}
.gallery3d-card__zoom {
  position: absolute; right: 12px; bottom: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(11,92,213,.92); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; line-height: 1; opacity: 0; transition: opacity .25s ease;
}
.gallery3d-card:hover .gallery3d-card__zoom,
.gallery3d-card:focus-visible .gallery3d-card__zoom { opacity: 1; }
.gallery3d-card h3 { font-size: 17px; padding: 18px 18px 6px; margin: 0; color: var(--text); }
.gallery3d-card p { font-size: 13px; color: var(--text-soft); padding: 0 18px 20px; margin: 0; line-height: 1.6; }

/* ---------- Detail gallery ---------- */
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.detail-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.detail-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.detail-card img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  border-bottom: 1px solid var(--border);
}
.detail-card h3 { font-size: 16px; padding: 18px 18px 6px; margin: 0; color: var(--text); }
.detail-card p { font-size: 13px; color: var(--text-soft); padding: 0 18px 20px; margin: 0; line-height: 1.6; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(8,20,34,.9);
  display: none; align-items: center; justify-content: center;
  padding: 44px; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox__inner {
  max-width: 1100px; width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  cursor: default;
}
.lightbox__img {
  max-width: 100%; max-height: 76vh; object-fit: contain;
  background: #fff; border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow-lg);
}
.lightbox__caption { color: #fff; font-size: 17px; text-align: center; }
.lightbox__caption span {
  display: block; font-size: 13px; color: #9fc6f5; margin-top: 6px; line-height: 1.6;
}
.lightbox__close {
  position: absolute; top: 22px; right: 26px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  color: #fff; font-size: 24px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s ease;
}
.lightbox__close:hover { background: rgba(255,255,255,.24); }
@media (max-width: 600px) {
  .lightbox { padding: 20px; }
  .lightbox__img { max-height: 66vh; padding: 12px; }
}

/* ---------- Featured line ---------- */
.featured-line {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
}
.featured-line__visual {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border); background: #fff;
}
.featured-line__visual img { width: 100%; height: auto; display: block; }
.featured-line__content h3 {
  font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 14px; color: var(--text);
}
.featured-line__content .lead {
  font-size: 16px; color: var(--text-soft); line-height: 1.75; margin-bottom: 28px;
}
.featured-line__specs {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 30px;
}
.featured-line__spec {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px;
}
.featured-line__spec strong {
  display: block; font-size: 22px; color: var(--primary); margin-bottom: 4px;
}
.featured-line__spec span { font-size: 13px; color: var(--text-soft); }
@media (max-width: 900px) {
  .featured-line { grid-template-columns: 1fr; gap: 32px; }
}
.case-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: transform .25s ease, box-shadow .25s ease;
}
.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.case-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.case-card h3 { font-size: 18px; padding: 20px 20px 8px; margin: 0; color: var(--text); }
.case-card p { font-size: 14px; color: var(--text-soft); padding: 0 20px 22px; margin: 0; line-height: 1.6; }

/* ---------- Office / company gallery ---------- */
.office-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.office-gallery__item {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  background: #fff; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}
.office-gallery__item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.office-gallery__item img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
}
.office-gallery__item figcaption {
  padding: 16px 18px; background: #fff;
}
.office-gallery__item h3 {
  font-size: 17px; margin: 0 0 4px; color: var(--text);
}
.office-gallery__item p {
  font-size: 13px; color: var(--text-soft); margin: 0; line-height: 1.5;
}
@media (max-width: 900px) {
  .office-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .office-gallery { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
