:root {
  --brand: #3d7ab8;        /* logo blue */
  --brand-dark: #255b91;
  --navy: #0f2742;
  --ink: #1b2533;
  --muted: #5d6b7c;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f3f7fb;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(15, 39, 66, 0.08);
  --header-h: 92px;
  --surface: #ffffff;
  --heading: #0f2742;
  --chip: #e3eef9;
  --chip-strong: #cfe0f1;
  --input-bg: #fbfdff;
  --row-alt: #f8fbfe;
  --glass-card: rgba(255,255,255,0.9);
  --glass-border: rgba(255,255,255,0.8);
  color-scheme: light;
}

/* ---------- Dark theme ---------- */
[data-theme="dark"] {
  --brand: #5b9ad8;
  --brand-dark: #8cc0f0;
  --ink: #dbe6f2;
  --muted: #94a9c0;
  --line: rgba(255,255,255,0.09);
  --bg: #08131f;
  --bg-alt: #0c1a2b;
  --surface: #112338;
  --heading: #f1f6fc;
  --chip: rgba(91,154,216,0.16);
  --chip-strong: rgba(91,154,216,0.35);
  --input-bg: #0c1a2b;
  --row-alt: rgba(255,255,255,0.025);
  --glass-card: rgba(17,35,56,0.82);
  --glass-border: rgba(255,255,255,0.1);
  --shadow: 0 12px 34px rgba(0,0,0,0.4);
  color-scheme: dark;
}
body { transition: background-color 0.4s ease, color 0.4s ease; }
[data-theme="dark"] .section-dark { background: #050d17; }
[data-theme="dark"] .footer { background: linear-gradient(180deg, #050d17, #030810); }
[data-theme="dark"] .product-img img, [data-theme="dark"] .svc-card img { filter: brightness(0.92) saturate(1.05); }
[data-theme="dark"] .pillar, [data-theme="dark"] .hero-stat { box-shadow: 0 16px 40px rgba(0,0,0,0.45); }
[data-theme="dark"] .badge.run { background: rgba(46,204,113,0.15); color: #6be29b; }
[data-theme="dark"] .badge.wait { background: rgba(245,176,65,0.15); color: #f5c06b; }
/* glass panels go dark */
[data-theme="dark"] .dropdown-menu, [data-theme="dark"] .to-top {
  background: rgba(14,28,46,0.95); border-color: rgba(255,255,255,0.1);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
[data-theme="dark"] .to-top { color: #fff; }
[data-theme="dark"] .map iframe { filter: invert(0.9) hue-rotate(180deg) saturate(0.8); }
[data-theme="dark"] .dropdown-col a.dropdown-head { color: #fff; }
[data-theme="dark"] .dropdown-col a { color: var(--muted); }
[data-theme="dark"] .dropdown-col a:hover { color: #fff; background: rgba(255,255,255,0.07); }

/* theme toggle (sun / moon) */
.theme-toggle {
  flex: none; position: relative; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: var(--heading); background: rgba(15,39,66,0.06);
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.theme-toggle:hover { transform: rotate(-12deg) scale(1.06); }
.on-dark .theme-toggle { color: #fff; background: rgba(255,255,255,0.12); }
.theme-toggle svg { position: absolute; width: 20px; height: 20px; transition: transform 0.5s cubic-bezier(.34,1.4,.64,1), opacity 0.3s; }
.theme-toggle .icon-moon { opacity: 0; transform: rotate(-90deg) scale(0.4); }
[data-theme="dark"] .theme-toggle .icon-sun { opacity: 0; transform: rotate(90deg) scale(0.4); }
[data-theme="dark"] .theme-toggle .icon-moon { opacity: 1; transform: none; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
/* No blinking text caret or I-beam on ordinary text: only form fields are for typing */
html { caret-color: transparent; cursor: default; }
input, textarea, select, [contenteditable="true"] { caret-color: auto; cursor: text; }
select { cursor: pointer; }
a, button, label, summary, [role="tab"], [data-close] { cursor: pointer; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

h1, h2, h3 { line-height: 1.2; color: var(--heading); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; margin-bottom: 1rem; }
h3 { font-size: 1.15rem; font-weight: 700; }
p + p { margin-top: 1rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.6rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, #4b90d4 0%, #2a64a0 100%);
  color: #fff;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(61,122,184,0.4);
  transition: box-shadow 0.25s, filter 0.25s, transform 0.25s;
}
.btn:hover { color: #fff; filter: brightness(1.08); box-shadow: 0 14px 34px rgba(61,122,184,0.55); }
.btn-glass {
  background: rgba(255,255,255,0.1); box-shadow: none;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.btn-glass:hover { background: rgba(255,255,255,0.18); box-shadow: none; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,0.7); }
.btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ---------- Glass ---------- */
.glass {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 200;
  background: linear-gradient(90deg, #5ec8ff, #3d7ab8);
  transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
}

/* ---------- Header: floating iOS-style glass bubble ---------- */
.header {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: center; padding: 0 16px;
  pointer-events: none; transition: transform 0.45s cubic-bezier(.2,.8,.2,1);
}
.nav-shell {
  pointer-events: auto; position: relative; isolation: isolate;
  display: flex; align-items: center; gap: 8px;
  width: min(1180px, 100%); height: 62px; padding: 0 8px 0 22px; border-radius: 999px;
}
/* the glass lives on pseudo-elements so the dropdown and mobile sheet can have their own blur */
.nav-shell::before, .nav-shell::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.nav-shell::before {
  z-index: -2;
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(15,39,66,0.14);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.nav-shell::after { display: none; }
.on-dark .nav-shell::before {
  background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 38px; width: auto; }
.logo-on-light { display: none; }
.header:not(.on-dark) .logo-on-light { display: block; }
.header:not(.on-dark) .logo-on-dark { display: none; }

.nav { position: relative; display: flex; align-items: center; gap: 8px; margin: 0 auto; padding: 4px; }
.nav-link {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 999px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 0.93rem; font-weight: 500; white-space: nowrap;
  color: var(--ink); transition: color 0.25s;
}
.nav-link:hover, .nav-link.active { color: var(--brand-dark); }
.on-dark .nav-link { color: rgba(255,255,255,0.82); }
.on-dark .nav-link:hover, .on-dark .nav-link.active { color: #fff; }
.nav-link-mobile { display: none; }
.nav-bubble {
  position: absolute; z-index: 0; left: 0; top: 4px; height: 0; width: 0; border-radius: 999px;
  background: #fff; opacity: 0;
  box-shadow: 0 2px 12px rgba(15,39,66,0.12);
  transition: transform 0.5s cubic-bezier(.34,1.4,.64,1), width 0.5s cubic-bezier(.34,1.4,.64,1), opacity 0.3s, background 0.4s;
}
.on-dark .nav-bubble { background: rgba(255,255,255,0.16); box-shadow: none; }

.nav-cta {
  flex: none; padding: 11px 20px; border-radius: 999px; color: #fff; font-weight: 600; font-size: 0.92rem;
  background: linear-gradient(135deg, #4b90d4, #2a64a0);
  box-shadow: 0 8px 22px rgba(61,122,184,0.45);
  transition: filter 0.25s, box-shadow 0.25s;
}
.nav-cta:hover { color: #fff; filter: brightness(1.1); }
.nav-toggle {
  display: none; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(15,39,66,0.06); position: relative;
}
.on-dark .nav-toggle { background: rgba(255,255,255,0.12); }
.nav-toggle span {
  position: absolute; left: 13px; width: 18px; height: 2px; border-radius: 2px; background: var(--navy);
  transition: transform 0.35s cubic-bezier(.34,1.4,.64,1), top 0.35s;
}
.on-dark .nav-toggle span { background: #fff; }
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* Equipment dropdown (glass panel) */
.dropdown { position: relative; }
.caret {
  width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform 0.3s;
}
.dropdown.open .caret { transform: translateY(1px) rotate(-135deg); }
.dropdown-menu {
  position: absolute; top: calc(100% + 18px); left: 50%;
  display: grid; grid-template-columns: repeat(4, minmax(170px, 1fr)); gap: 24px;
  width: max-content; max-width: min(880px, calc(100vw - 32px)); padding: 26px 28px;
  border-radius: 26px; border: 1px solid rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px rgba(15,39,66,0.22);
  opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(-8px) scale(0.97); transform-origin: 50% 0;
  transition: opacity 0.25s, transform 0.35s cubic-bezier(.34,1.4,.64,1), visibility 0.25s;
}
.dropdown-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; } /* hover bridge */
.dropdown-menu.cols-2 { grid-template-columns: repeat(2, minmax(190px, 1fr)); }
.dropdown-menu.cols-3 { grid-template-columns: repeat(3, minmax(190px, 1fr)); }
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0) scale(1); }
@media (hover: hover) and (min-width: 1081px) {
  .dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0) scale(1); }
  .dropdown:hover .caret { transform: translateY(1px) rotate(-135deg); }
}
.dropdown-col { display: grid; align-content: start; gap: 2px; }
.dropdown-col a { font-size: 0.9rem; color: var(--muted); padding: 6px 10px; margin: 0 -10px; border-radius: 10px; transition: background 0.2s, color 0.2s; }
.dropdown-col a:hover { color: var(--brand-dark); background: rgba(61,122,184,0.09); }
.dropdown-col a.dropdown-head {
  color: var(--heading); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
  padding-bottom: 10px; margin-bottom: 4px; border-radius: 0; border-bottom: 2px solid var(--brand);
}
.dropdown-col a.dropdown-head:hover { background: none; }

/* ---------- Hero (3D) ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; padding: 140px 0 140px;
  color: #fff; overflow: hidden; background: #0b1f36;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 74% 48%, rgba(61,122,184,0.55) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 8% 95%, rgba(42,100,160,0.5) 0%, transparent 60%),
    linear-gradient(160deg, #06152a 0%, #0f2742 55%, #163a63 100%);
}
.hero-bg::after {
  content: ""; 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: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 50%, #000 10%, transparent 70%);
          mask-image: radial-gradient(ellipse 70% 70% at 70% 50%, #000 10%, transparent 70%);
}
.hero-content { position: relative; z-index: 2; max-width: 1180px; pointer-events: none; }
.hero-content > * { max-width: 620px; }
.hero-content a, .hero-stat { pointer-events: auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 500; color: #d8e8f8; margin-bottom: 1.6rem;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #5ec8ff; box-shadow: 0 0 0 0 rgba(94,200,255,0.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(94,200,255,0); } 100% { box-shadow: 0 0 0 0 rgba(94,200,255,0); } }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.025em; margin-bottom: 1.4rem; }
.grad-text {
  background: linear-gradient(90deg, #9fe0ff 0%, #5ea8ff 45%, #d4ecff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: #c9dbee; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 2.2rem; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 3rem; }
.hero-stat { padding: 14px 18px; border-radius: 18px; transition: transform 0.3s, background 0.3s; }
.hero-stat:hover { transform: translateY(-4px); background: rgba(255,255,255,0.14); }
.hero-stat strong { display: block; font-size: 1.55rem; font-weight: 800; color: #fff; line-height: 1.1; }
.hero-stat span { font-size: 0.8rem; color: #a9c1da; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; z-index: 2; transform: translateX(-50%);
  width: 26px; height: 42px; border-radius: 14px; border: 2px solid rgba(255,255,255,0.45);
}
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Hero background video ---------- */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero.has-video .hero-video { opacity: 1; }
.hero-overlay {   /* keeps the headline readable over any footage */
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s ease;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(6,21,42,0.55), transparent 75%),
    linear-gradient(180deg, rgba(6,21,42,0.72) 0%, rgba(6,21,42,0.6) 50%, rgba(6,21,42,0.85) 100%);
}
.hero.has-video .hero-overlay { opacity: 1; }
.hero-video-toggle {
  position: absolute; right: 28px; bottom: 110px; z-index: 3; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: #fff;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s;
}
.hero-video-toggle[hidden] { display: none; }
.hero-video-toggle:hover { background: rgba(255,255,255,0.22); }
.hero-video-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.hero-video-toggle .i-play, .hero-video-toggle.is-paused .i-pause { display: none; }
.hero-video-toggle.is-paused .i-play { display: block; }
@media (max-width: 900px) {
  .hero-video-toggle { right: 14px; top: 84px; bottom: auto; width: 36px; height: 36px; }
  .scroll-cue { display: none; }
}

/* ---------- Centred, high-contrast hero text ---------- */
.hero-content { display: flex; flex-direction: column; align-items: center; text-align: center; margin-inline: auto; }
.hero-content > * { max-width: 760px; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); text-shadow: 0 2px 24px rgba(0,0,0,0.45); }
.hero h1 .hl { color: #8fd3ff; }
.hero .lead { color: #e6eef7; font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 640px; text-shadow: 0 1px 12px rgba(0,0,0,0.5); }
.hero-badge { background: rgba(6,21,42,0.45); }
.hero-actions { justify-content: center; }
.hero-stats { width: 100%; max-width: 640px; }
.hero-stat { text-align: center; background: rgba(6,21,42,0.45); }
.hero-stat:hover { transform: none; }
.hero-stat span { display: block; line-height: 1.35; margin-top: 2px; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.2rem; font-weight: 700; color: var(--navy);
  background: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.8);
  box-shadow: 0 10px 30px rgba(15,39,66,0.2);
  opacity: 0; transform: translateY(20px) scale(0.8); pointer-events: none;
  transition: opacity 0.3s, transform 0.4s cubic-bezier(.34,1.4,.64,1);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { color: var(--brand); }

/* ---------- Footer ---------- */
.footer { background: linear-gradient(180deg, #0f2742, #081a2e); color: #9fb3c8; padding: 72px 0 0; font-size: 0.93rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.footer-logo { height: 52px; width: auto; }
.tagline { letter-spacing: 0.22em; font-weight: 700; color: #fff; font-size: 0.72rem; margin: 14px 0 12px; }
.footer-brand p:not(.tagline) { max-width: 320px; }
.footer-col { display: grid; align-content: start; gap: 10px; }
.footer-col h4 { color: #fff; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px; }
.footer a { color: #9fb3c8; transition: color 0.2s; }
.footer a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 22px 0 28px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem;
}

/* ---------- Tighter nav between tablet and wide desktop (keeps the long CTA labels inside the bar) ---------- */
@media (min-width: 1081px) and (max-width: 1320px) {
  .nav-shell { padding-left: 18px; gap: 6px; }
  .brand img { height: 32px; }
  .nav { gap: 6px; }
  .nav-link { padding: 9px 15px; font-size: 0.92rem; gap: 6px; }
  .nav-cta { padding: 10px 14px; font-size: 0.84rem; gap: 6px; }
  .theme-toggle { width: 38px; height: 38px; }
}

/* ---------- Mobile navigation sheet ---------- */
@media (max-width: 1080px) {
  .nav-shell { height: 58px; padding: 0 7px 0 20px; justify-content: space-between; }
  .nav-toggle { display: block; }
  .nav-cta { margin-left: auto; padding: 10px 16px; }
  .nav {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    border-radius: 28px; border: 1px solid rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.86);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 24px 60px rgba(15,39,66,0.25);
    max-height: calc(100vh - 110px); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px) scale(0.97); transform-origin: 50% 0;
    transition: opacity 0.25s, transform 0.4s cubic-bezier(.34,1.4,.64,1), visibility 0.25s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  [data-theme="dark"] .nav { background: rgba(14,28,46,0.88); border-color: rgba(255,255,255,0.1); box-shadow: 0 24px 60px rgba(0,0,0,0.5); }
  [data-theme="dark"] .nav .nav-link, [data-theme="dark"] .on-dark .nav .nav-link { color: var(--ink); }
  [data-theme="dark"] .nav .nav-link.active { background: rgba(91,154,216,0.16); color: #fff; }
  .nav-bubble { display: none; }
  .nav .nav-link, .on-dark .nav .nav-link { color: var(--ink); width: 100%; justify-content: space-between; padding: 14px 16px; border-radius: 16px; font-size: 1rem; }
  .nav .nav-link.active, .on-dark .nav .nav-link.active { background: rgba(61,122,184,0.1); color: var(--brand-dark); }
  .nav-link-mobile { display: flex; }
  .dropdown-menu, .dropdown.open .dropdown-menu {
    position: static; transform: none; width: auto; max-width: none; box-shadow: none; border: 0;
    background: none; backdrop-filter: none; -webkit-backdrop-filter: none;
    padding: 4px 16px 0; grid-template-columns: 1fr 1fr; gap: 16px;
    opacity: 1; visibility: visible; display: none;
  }
  .dropdown-menu::before { display: none; }
  .dropdown.open .dropdown-menu { display: grid; padding-bottom: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero { padding: 130px 0 110px; }
}
@media (max-width: 600px) {
  .header { top: 10px; padding: 0 10px; }
  .dropdown-menu, .dropdown.open .dropdown-menu { grid-template-columns: 1fr; }
  .hero-stats { gap: 8px; }
  .hero-stat { padding: 10px 12px; }
  .hero-stat strong { font-size: 1.2rem; }
  .hero-stat span { font-size: 0.72rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .nav-cta { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head p:not(.eyebrow) { color: var(--muted); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.about-grid > div > p:not(.eyebrow) { color: var(--muted); }
.checklist { list-style: none; margin-top: 1.5rem; display: grid; gap: 0.6rem; }
.checklist li { padding-left: 2rem; position: relative; font-weight: 500; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 0.8rem;
  display: grid; place-items: center; margin-top: 0.15rem;
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat {
  background: var(--bg-alt); border-radius: var(--radius);
  padding: 32px 24px; text-align: center; border: 1px solid var(--line);
}
.stat-num, .stat-plus { font-size: 2rem; font-weight: 800; color: var(--brand); line-height: 1; }
.stat p { color: var(--muted); margin-top: 0.5rem; font-size: 0.95rem; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; position: relative; max-width: 900px; margin: 0 auto; }
.timeline::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 3px; background: linear-gradient(var(--brand), #b6d0ea); transform: translateX(-50%);
}
.timeline-item { position: relative; width: 50%; padding: 0 44px 40px; }
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-item::before {
  content: ""; position: absolute; top: 6px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--surface); border: 4px solid var(--brand);
}
.timeline-item:nth-child(odd)::before { right: -9px; }
.timeline-item:nth-child(even)::before { left: -9px; }
.timeline-year { font-weight: 800; color: var(--brand); font-size: 1.3rem; display: block; margin-bottom: 0.5rem; }
.timeline-card { background: var(--surface); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.timeline-card p { color: var(--muted); margin-top: 0.4rem; }

/* ---------- Product cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(15,39,66,0.14); }
.product-img {
  aspect-ratio: 4 / 3;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.55' stroke-width='3'%3E%3Ccircle cx='50' cy='50' r='34'/%3E%3Cpath d='M50 50c0-14 6-24 18-28M50 50c14 0 24 6 28 18M50 50c0 14-6 24-18 28M50 50c-14 0-24-6-28-18M50 50c0-14-6-24-18-28'/%3E%3C/g%3E%3C/svg%3E") center / 38% no-repeat,
    linear-gradient(135deg, var(--brand) 0%, var(--navy) 100%);
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 24px; }
.card-body p { color: var(--muted); margin-top: 0.5rem; font-size: 0.95rem; }

/* ---------- Industries ---------- */
.industries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.industry {
  border-radius: var(--radius); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.industry:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(15,39,66,0.14); }
.ind-img {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand) 0%, var(--navy) 100%);
}
.ind-img::before { content: attr(data-icon); font-size: 2.6rem; }   /* shown until a photo is added */
.ind-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.2,.8,.2,1); }
.industry:hover .ind-img img { transform: scale(1.06); }
.ind-body { padding: 18px 20px 22px; }
.ind-body h3 { font-size: 1.05rem; }
.ind-body p { color: var(--muted); font-size: 0.9rem; margin-top: 4px; line-height: 1.5; }

/* ---------- Team ---------- */
.team {
  list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); max-width: 980px; margin: 0 auto;
  border-top: 1px solid var(--line);
}
.member { padding: 22px 24px; border-bottom: 1px solid var(--line); position: relative; }
.member::before { content: ""; position: absolute; left: 0; top: 24px; width: 3px; height: 22px; border-radius: 3px; background: var(--brand); }
.member h3 { font-size: 1.08rem; }
.member p { color: var(--muted); font-size: 0.92rem; margin-top: 2px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-grid > div > p:not(.eyebrow) { color: var(--muted); }
.contact-list { list-style: none; margin: 1.8rem 0; display: grid; gap: 1.2rem; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.ci {
  flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--surface);
  display: grid; place-items: center; box-shadow: var(--shadow); font-size: 1.2rem;
}
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 240px; }
.map iframe { width: 100%; height: 100%; border: 0; }
.contact-grid > .map { height: 100%; min-height: 420px; align-self: stretch; }
@media (max-width: 760px) { .contact-grid > .map { min-height: 280px; } }

.form {
  background: var(--surface); border-radius: var(--radius); padding: 36px;
  box-shadow: var(--shadow); display: grid; gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.9rem; color: var(--heading); }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; color: var(--ink);
  padding: 0.8rem 1rem; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--input-bg); transition: border-color 0.2s, box-shadow 0.2s;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(61,122,184,0.15);
}
.form .invalid { border-color: #d64545; }
.form-status { font-size: 0.92rem; min-height: 1.4em; }
.form-status.ok { color: #1f8a4c; }
.form-status.err { color: #d64545; }

/* ---------- Pillars ---------- */
.pillars-wrap { position: relative; z-index: 2; margin-top: -70px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  position: relative; display: flex; flex-direction: column; gap: 10px; overflow: hidden;
  padding: 26px 26px 24px; border-radius: 24px; color: var(--ink);
  background: var(--glass-card); border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 44px rgba(15,39,66,0.16);
  transition: transform 0.3s, box-shadow 0.3s;
}
.pillar::before { /* brand accent along the top edge */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, #5ec8ff, #3d7ab8, #255b91);
}
.pillar::after { /* soft glow that brightens on hover */
  content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(94,200,255,0.22), transparent 70%); opacity: 0.6; transition: opacity 0.3s, transform 0.5s; pointer-events: none;
}
.pillar:hover { color: var(--ink); box-shadow: 0 26px 56px rgba(15,39,66,0.22); }
.pillar:hover::after { opacity: 1; transform: scale(1.2); }
.pillar-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.pillar-icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #4b90d4, #255b91);
  box-shadow: 0 10px 22px rgba(61,122,184,0.4);
  transition: transform 0.4s cubic-bezier(.34,1.56,.64,1);
}
.pillar:hover .pillar-icon { transform: rotate(-8deg) scale(1.08); }
.pillar-icon svg { width: 26px; height: 26px; }
.pillar-num { font-size: 2.2rem; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--chip-strong); }
.pillar h3 { font-size: 1.2rem; }
.pillar p { color: var(--muted); font-size: 0.93rem; line-height: 1.55; }
.pillar-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.pillar-tags span { font-size: 0.75rem; font-weight: 600; color: var(--brand-dark); background: var(--chip); padding: 4px 10px; border-radius: 999px; }
.pillar-more { margin-top: auto; padding-top: 8px; font-size: 0.88rem; font-weight: 700; color: var(--brand); display: inline-flex; gap: 6px; }
.pillar-more span { transition: transform 0.25s; }
.pillar:hover .pillar-more span { transform: translateX(4px); }

/* ---------- Equipment divisions ---------- */
.division + .division { margin-top: 64px; }
.division-title {
  display: flex; align-items: center; gap: 14px; font-size: 1.4rem; margin-bottom: 24px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.division-title span {
  font-size: 0.9rem; color: #fff; background: var(--brand); border-radius: 8px; padding: 4px 10px;
}
.division .cards { grid-template-columns: repeat(4, 1fr); gap: 22px; }
.division .card-body { padding: 20px; }
.division .card-body h3 { font-size: 1.02rem; }
.card:target { outline: 3px solid var(--brand); outline-offset: 3px; }

/* ---------- Control system ---------- */
.control-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.control-grid > div > p:not(.eyebrow) { color: var(--muted); }
.feature-box { background: var(--surface); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.feature-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-top: 1rem; }
.feature-list li { padding-left: 1.2rem; position: relative; color: var(--ink); font-size: 0.95rem; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 2px; background: var(--brand); }

/* ---------- Why AirKing ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why {
  background: var(--bg-alt); border-left: 4px solid var(--brand); border-radius: 10px;
  padding: 20px; font-weight: 600; color: var(--heading);
}
.reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.reason-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1rem; }
.tags li { background: var(--chip); color: var(--brand-dark); font-weight: 600; font-size: 0.88rem; padding: 7px 14px; border-radius: 999px; }

/* ---------- Results ---------- */
.section-dark .section-head p:not(.eyebrow) { color: #b8c6d6; }
.savings { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.saving-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius); padding: 32px; color: #dce8f5;
}
.saving-pct { font-size: 3.4rem; font-weight: 800; color: #7fc4ff; line-height: 1; }
.saving-label { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; margin: 0.4rem 0 1.4rem; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.mini-table th, .mini-table td { padding: 10px 8px; text-align: right; border-bottom: 1px solid rgba(255,255,255,0.12); }
.mini-table th:first-child, .mini-table td:first-child { text-align: left; }
.mini-table th { color: #8fa6bf; font-weight: 600; font-size: 0.82rem; text-transform: uppercase; }
.saving-foot { font-size: 0.88rem; margin-top: 1rem; color: #b8c6d6; }
.saving-foot strong { color: #fff; }

/* ---------- Clients ---------- */
.tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.tab {
  font: inherit; font-weight: 600; cursor: pointer; padding: 10px 22px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--muted);
}
.tab.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.table-wrap { overflow-x: auto; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); max-width: 980px; margin: 0 auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.data-table th { background: var(--navy); color: #fff; text-align: left; padding: 14px 18px; font-weight: 600; white-space: nowrap; }
.data-table td { padding: 12px 18px; border-bottom: 1px solid var(--line); }
.data-table tbody tr:nth-child(even) { background: var(--row-alt); }
.data-table td:first-child { font-weight: 600; color: var(--heading); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.badge.run { background: #dcf3e5; color: #1f8a4c; }
.badge.transit { background: var(--chip); color: var(--brand-dark); }
.badge.wait { background: #fdf0d5; color: #9a6400; }

/* ---------- Responsive (new sections) ---------- */
@media (max-width: 1080px) {
  .division .cards { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .control-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 860px) {
  .pillars, .savings, .reasons { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .industries { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .division .cards, .why-grid, .feature-list { grid-template-columns: 1fr; }
  .pillars-wrap { margin-top: -50px; }
  .saving-card { padding: 24px; }
}

/* ---------- Service image cards ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.svc-card {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface);
  box-shadow: var(--shadow); border: 1px solid var(--line);
  transition: transform 0.25s, box-shadow 0.25s;
}
.svc-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.5s ease; }
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(15,39,66,0.14); }
.svc-card:hover img, .card:hover .product-img img { transform: scale(1.05); }
.product-img { overflow: hidden; }
.product-img img { transition: transform 0.5s ease; }
.svc-body { padding: 22px 24px 26px; position: relative; }
.svc-num {
  position: absolute; top: -22px; right: 20px; width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(61,122,184,0.4);
}
.svc-body p { color: var(--muted); margin-top: 0.5rem; font-size: 0.95rem; }
@media (max-width: 1024px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } }

kbd {
  font: 600 0.72rem/1 "Inter", system-ui, sans-serif; padding: 5px 7px; border-radius: 7px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); color: inherit; white-space: nowrap;
}
.search-toggle svg { width: 19px; height: 19px; position: static; }

/* ---------- Dynamic CTA ---------- */
.nav-cta { display: inline-flex; align-items: center; gap: 8px; overflow: hidden; }
.cta-label, .cta-arrow { display: inline-block; transition: transform 0.18s ease, opacity 0.18s ease; }
.cta-swap .cta-label { transform: translateY(-120%); opacity: 0; }
.nav-cta:hover .cta-arrow, .float-cta:hover .cta-arrow { transform: translateX(3px); }
.float-cta {
  position: fixed; left: 50%; bottom: 20px; z-index: 95; display: none; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; color: #fff; font-weight: 700; white-space: nowrap;
  background: linear-gradient(135deg, #4b90d4, #2a64a0);
  box-shadow: 0 14px 34px rgba(42,100,160,0.5);
  transform: translate(-50%, 140%); transition: transform 0.45s cubic-bezier(.34,1.4,.64,1);
}
.float-cta:hover { color: #fff; }
.float-cta.show { transform: translate(-50%, 0); }
@media (max-width: 600px) {
  .float-cta { display: inline-flex; }
  .nav-shell .nav-cta { display: none; } /* phones use the floating CTA instead */
}

.card-cta {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer;
  color: var(--brand-dark); background: var(--chip); border: 1px solid transparent;
  position: relative; z-index: 4; transition: background 0.2s, color 0.2s, gap 0.2s;
}
.card-cta:hover { background: var(--brand); color: #fff; gap: 10px; }

/* highlight when search / CTA jumps to something */
.flash { animation: flash 1.5s ease; }
@keyframes flash {
  0%, 100% { box-shadow: var(--shadow); }
  25%, 60% { box-shadow: 0 0 0 4px rgba(94,200,255,0.6), 0 18px 40px rgba(61,122,184,0.3); }
}
tr.flash td { animation: rowflash 1.5s ease; }
@keyframes rowflash { 25%, 60% { background: rgba(94,200,255,0.22); } }

/* ---------- Search overlay (Spotlight) ---------- */
.search-open, .search-open body { overflow: hidden; }
.search-overlay[hidden] { display: none; }
.search-overlay { position: fixed; inset: 0; z-index: 300; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.search-backdrop {
  position: absolute; inset: 0; background: rgba(6,16,30,0.45);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.25s;
}
.search-panel {
  position: relative; width: min(680px, 100%); max-height: 72vh; display: flex; flex-direction: column;
  border-radius: 26px; overflow: hidden; color: var(--ink);
  background: rgba(255,255,255,0.84); border: 1px solid rgba(255,255,255,0.8);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 30px 80px rgba(6,16,30,0.35);
  opacity: 0; transform: translateY(-12px) scale(0.97);
  transition: opacity 0.25s, transform 0.35s cubic-bezier(.34,1.4,.64,1);
}
.search-overlay.open .search-backdrop { opacity: 1; }
.search-overlay.open .search-panel { opacity: 1; transform: none; }
.search-field { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.search-field svg { width: 22px; height: 22px; flex: none; color: var(--brand); }
.search-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 1.15rem; color: var(--heading); }
.search-field input::placeholder { color: var(--muted); }
.search-close {
  font: 600 0.75rem/1 "Inter", system-ui, sans-serif; padding: 7px 9px; border-radius: 8px; cursor: pointer;
  background: rgba(15,39,66,0.06); border: 1px solid var(--line); color: var(--muted);
}
.search-results { overflow-y: auto; padding: 6px 10px 10px; overscroll-behavior: contain; }
.search-group { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 12px 10px 6px; }
.search-item { display: flex; align-items: center; gap: 14px; padding: 9px 10px; border-radius: 14px; cursor: pointer; }
.search-item[aria-selected="true"] { background: rgba(61,122,184,0.12); }
.search-thumb { flex: none; width: 52px; height: 40px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: var(--chip); }
.search-thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-icon { font-size: 1rem; color: var(--brand-dark); }
.search-text { flex: 1; min-width: 0; display: grid; }
.search-title { font-weight: 600; color: var(--heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-desc { font-size: 0.84rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-cat { flex: none; font-size: 0.72rem; font-weight: 600; color: var(--muted); padding: 4px 9px; border-radius: 999px; background: rgba(15,39,66,0.05); }
.search-item mark { background: rgba(94,200,255,0.35); color: inherit; border-radius: 3px; padding: 0 1px; }
.search-empty { text-align: center; color: var(--muted); padding: 36px 16px; line-height: 2; }
.search-ask { font: inherit; font-weight: 600; color: var(--brand-dark); background: none; border: 0; cursor: pointer; }
.search-foot { display: flex; gap: 18px; justify-content: flex-end; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 0.75rem; color: var(--muted); }
.search-foot kbd { background: rgba(15,39,66,0.06); border-color: var(--line); margin-right: 3px; }
[data-theme="dark"] .search-panel { background: rgba(14,28,46,0.86); border-color: rgba(255,255,255,0.1); box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
[data-theme="dark"] .search-item[aria-selected="true"] { background: rgba(91,154,216,0.18); }
[data-theme="dark"] .search-close, [data-theme="dark"] .search-cat, [data-theme="dark"] .search-foot kbd { background: rgba(255,255,255,0.06); }
@media (max-width: 600px) {
  .search-overlay { padding: 10px; }
  .search-panel { max-height: calc(100vh - 20px); border-radius: 22px; }
  .search-foot, .search-cat { display: none; }
}
@media (max-width: 1080px) { .search-toggle { margin-left: auto; } .search-toggle ~ .nav-cta { margin-left: 0; } }

/* ---------- Service detail page ---------- */
.svc-hero { position: relative; overflow: hidden; color: #fff; background: #0b1f36; padding: 150px 0 90px; }
.svc-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.88rem; color: #9fb6cf; margin-bottom: 22px; }
.crumbs a { color: #cfe2f5; }
.crumbs a:hover { color: #fff; }
.svc-hero-num { display: inline-flex; gap: 6px; padding: 7px 14px; border-radius: 999px; font-size: 0.85rem; color: #cfe2f5; margin-bottom: 18px; }
.svc-hero-num strong { color: #9fe0ff; }
.svc-hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.06; margin-bottom: 1rem; }
.svc-hero .lead { color: #c9dbee; font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 540px; }
.svc-hero-media { border-radius: 28px; padding: 10px; transform: perspective(1200px) rotateY(-6deg) rotateX(2deg); transition: transform 0.6s cubic-bezier(.2,.8,.2,1); }
.svc-hero-media:hover { transform: none; }
.svc-hero-media img { border-radius: 20px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; }
.svc-intro p { font-size: 1.12rem; color: var(--ink); }
.svc-intro p + p { color: var(--muted); font-size: 1.02rem; }
.svc-h2 { font-size: 1.5rem; margin: 48px 0 18px; }
.svc-includes { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.svc-includes li {
  position: relative; padding: 16px 16px 16px 50px; border-radius: 16px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 500; line-height: 1.45;
}
.svc-includes li::before {
  content: "✓"; position: absolute; left: 16px; top: 15px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.75rem; color: #fff; background: linear-gradient(135deg, #4b90d4, #2a64a0);
}
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: step; position: relative; }
.step { position: relative; padding: 22px 18px; border-radius: 18px; background: var(--bg-alt); border: 1px solid var(--line); }
.step-num {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px;
  font-weight: 800; color: #fff; background: linear-gradient(135deg, #4b90d4, #2a64a0); box-shadow: 0 8px 18px rgba(61,122,184,0.35);
}
.step h3 { font-size: 1.02rem; }
.step p { color: var(--muted); font-size: 0.9rem; margin-top: 4px; line-height: 1.5; }

.svc-aside { position: sticky; top: 100px; display: grid; gap: 20px; }
.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: var(--shadow); }
.aside-card > p { color: var(--muted); font-size: 0.95rem; margin: 6px 0 18px; }
.aside-stats { display: grid; gap: 10px; margin-bottom: 20px; }
.aside-stat { display: flex; align-items: baseline; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--chip); }
.aside-stat strong { font-size: 1.25rem; font-weight: 800; color: var(--brand-dark); white-space: nowrap; }
.aside-stat span { font-size: 0.85rem; color: var(--muted); line-height: 1.35; }
.aside-contact { display: grid; gap: 8px; margin-top: 16px; font-size: 0.92rem; }
.svc-all h3 { margin-bottom: 10px; }
.svc-all #svcAll, .svc-all #dAll { display: grid; gap: 2px; }
.svc-all a { padding: 9px 12px; border-radius: 12px; color: var(--ink); font-weight: 500; transition: background 0.2s, color 0.2s; }
.svc-all a:hover { background: var(--chip); color: var(--brand-dark); }

.rel-grid { grid-template-columns: repeat(4, 1fr); }
.rel-card { display: block; color: inherit; }
.rel-card:hover { color: inherit; }
.rel-more { display: inline-block; margin-top: 8px; font-size: 0.88rem; font-weight: 600; color: var(--brand); }

.svc-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 56px 0 80px; }
.pager-link {
  display: grid; gap: 4px; padding: 22px 26px; border-radius: 22px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform 0.25s, border-color 0.25s;
}
.pager-link:hover { transform: translateY(-4px); border-color: var(--brand); }
.pager-link span { font-size: 0.85rem; color: var(--muted); }
.pager-link strong { font-size: 1.15rem; color: var(--heading); }
.pager-link.next { text-align: right; }

/* service cards on the home page open the detail page */
.svc-link { color: inherit; }
.svc-link:hover { color: var(--brand-dark); }
.svc-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.svc-actions .card-cta { margin-top: 0; }
.svc-more { position: relative; z-index: 4; font-size: 0.88rem; font-weight: 600; color: var(--brand); }
.svc-card { cursor: pointer; }

@media (max-width: 1080px) {
  .svc-layout { grid-template-columns: 1fr; }
  .svc-aside { position: static; grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .rel-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .svc-hero { padding: 120px 0 64px; }
  .svc-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .svc-hero-media { transform: none; }
  .svc-includes { grid-template-columns: 1fr; }
  .svc-aside { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .steps, .rel-grid, .svc-pager { grid-template-columns: 1fr; }
  .pager-link.next { text-align: left; }
}

/* ---------- Form sending states ---------- */
.form .btn[disabled] { opacity: 0.75; cursor: progress; }
.btn .spinner { display: inline-block; width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-success { text-align: center; padding: 28px 10px; display: grid; gap: 10px; justify-items: center; }
.form-success .tick { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; color: #fff; background: linear-gradient(135deg, #2ecc71, #1f8a4c); box-shadow: 0 12px 30px rgba(46,204,113,0.4); animation: pop 0.5s cubic-bezier(.34,1.56,.64,1); }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } }
.form-success h3 { font-size: 1.35rem; }
.form-success p { color: var(--muted); max-width: 380px; }
.form-intro { color: var(--muted); font-size: 0.92rem; margin-top: -4px; }
.form [hidden] { display: none !important; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- External links (China head office) ---------- */
.ext-link { display: inline-flex; align-items: center; gap: 6px; }
.ext-icon { width: 14px; height: 14px; flex: none; }
.btn .ext-icon { width: 16px; height: 16px; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 1.6rem;
  background: transparent; color: var(--brand-dark); box-shadow: inset 0 0 0 2px var(--brand);
}
.btn-outline:hover { background: var(--brand); color: #fff; box-shadow: 0 10px 28px rgba(61,122,184,0.35); }
.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; }

/* ---------- Photo gallery (Factory Setup) ---------- */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 250px; gap: 18px; }
.g-item { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.g-big { grid-row: span 2; }
.g-wide { grid-column: span 2; }
.g-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: zoom-in; background: none; }
.g-open img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.2,.8,.2,1); }
.g-item:hover .g-open img { transform: scale(1.06); }
.g-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; pointer-events: none;
  display: grid; gap: 2px; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(6,16,30,0.82));
}
.g-item figcaption strong { font-size: 1.02rem; }
.g-item figcaption span { font-size: 0.85rem; color: #c9dbee; }
.g-open:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }

.lightbox-open, .lightbox-open body { overflow: hidden; }
.lightbox[hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 320; display: grid; place-items: center; padding: 24px 80px; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(4,10,20,0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity 0.25s; }
.lightbox.open .lb-backdrop { opacity: 1; }
.lb-stage { position: relative; margin: 0; width: min(1100px, 100%); display: grid; gap: 14px; justify-items: center; }
.lb-img { width: min(980px, 100%); max-height: 74vh; object-fit: contain; border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); opacity: 0; transform: scale(0.97); }
.lb-in .lb-img { animation: lbin 0.35s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes lbin { to { opacity: 1; transform: none; } }
.lb-cap { display: grid; gap: 2px; text-align: center; color: #fff; }
.lb-count { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: #9fe0ff; }
.lb-title { font-size: 1.1rem; }
.lb-desc { font-size: 0.92rem; color: #b9cde3; }
.lb-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  font-size: 1.6rem; line-height: 1; color: #fff; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: background 0.2s, transform 0.2s;
}
.lb-btn:hover { background: rgba(255,255,255,0.22); transform: scale(1.06); }
.lb-btn[hidden] { display: none; }
.lb-prev { left: 20px; top: 50%; margin-top: -24px; }
.lb-next { right: 20px; top: 50%; margin-top: -24px; }
.lb-close { right: 20px; top: 20px; font-size: 1.1rem; }
@media (max-width: 860px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .g-big { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 600px) {
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .g-big, .g-wide { grid-column: auto; }
  .lightbox { padding: 16px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; margin: 0; }
}

.card:hover .product-img.has-photos img { transform: none; }

/* ---------- Equipment / industry detail page ---------- */
.d-hero-media { position: relative; display: block; border: 0; cursor: zoom-in; font: inherit; color: #fff; }
.d-hero-media img { background: #fff; }
.d-zoom {
  position: absolute; right: 22px; bottom: 22px; padding: 7px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
  background: rgba(10,24,42,0.5); border: 1px solid rgba(255,255,255,0.25); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.d-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.d-thumb { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--bg-alt); border: 1px solid var(--line); }
.d-thumb .g-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.d-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.d-thumb:hover img { transform: scale(1.07); }
.d-thumb figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 7px; font-size: 0.72rem; color: #fff; background: linear-gradient(180deg, transparent, rgba(6,16,30,0.75)); pointer-events: none; }
.d-thumb figcaption strong { display: none; }
.d-table { max-width: none; }
.chip-links { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-link { padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 0.9rem; color: var(--brand-dark); background: var(--chip); transition: background 0.2s, color 0.2s; }
.chip-link:hover { background: var(--brand); color: #fff; }
.svc-all a.all-link { color: var(--brand); font-weight: 600; margin-top: 6px; }

/* cards on the home page that open a detail page */
.card-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.card-actions .card-cta { margin-top: 0; }
.card-more { position: relative; z-index: 4; font-size: 0.88rem; font-weight: 600; color: var(--brand); }
.card.product, .industry { cursor: pointer; }
.ind-body .card-more { display: inline-block; margin-top: 10px; }

/* ---------- Sidebar (service & detail pages) in the site's glass / navy theme ---------- */
.aside-quote {
  position: relative; overflow: hidden; color: #dce8f5; border: 1px solid rgba(255,255,255,0.12);
  background:
    radial-gradient(circle at 100% 0%, rgba(94,200,255,0.28), transparent 55%),
    linear-gradient(160deg, #0f2742 0%, #163a63 60%, #255b91 100%);
  box-shadow: 0 22px 50px rgba(15,39,66,0.35);
}
.aside-quote::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  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: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.aside-quote > * { position: relative; z-index: 1; }
.aside-quote h3 { color: #fff; }
.aside-quote > p { color: #b9cde3; }
.aside-quote .aside-stat { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); }
.aside-quote .aside-stat strong { color: #9fe0ff; }
.aside-quote .aside-stat span { color: #c9dbee; }
.aside-quote .btn { text-align: center; background: #fff; color: #0f2742; box-shadow: 0 12px 28px rgba(0,0,0,0.25); }
.aside-quote .btn:hover { color: #0f2742; filter: none; background: #e3eef9; }
.aside-quote .aside-contact { padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.12); }
.aside-quote .aside-contact a { color: #cfe6ff; }
.aside-quote .aside-contact a:hover { color: #fff; }

.svc-all { background: var(--glass-card); border-color: var(--glass-border); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.svc-all h3 { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.svc-all #svcAll a, .svc-all #dAll a {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px 10px 16px; border-radius: 12px; color: var(--ink); background: none;
}
.svc-all #svcAll a::after, .svc-all #dAll a:not(.all-link)::after { content: "→"; opacity: 0; transform: translateX(-4px); transition: opacity 0.2s, transform 0.2s; color: var(--brand); }
.svc-all #svcAll a:hover, .svc-all #dAll a:hover { background: var(--chip); color: var(--brand-dark); }
.svc-all #svcAll a:hover::after, .svc-all #dAll a:hover::after { opacity: 1; transform: none; }
.svc-all #svcAll a.active, .svc-all #dAll a.active { background: var(--chip); color: var(--brand-dark); font-weight: 700; }
.svc-all #svcAll a.active::before, .svc-all #dAll a.active::before {
  content: ""; position: absolute; left: 4px; top: 9px; bottom: 9px; width: 4px; border-radius: 4px;
  background: linear-gradient(180deg, #5ec8ff, #3d7ab8);
}
.svc-all #dAll a.all-link { color: var(--brand); font-weight: 700; margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0; padding-top: 14px; }

/* ---------- Client logo marquee ---------- */
.logo-band { padding: 48px 0 52px; background: var(--bg-alt); border-top: 1px solid var(--line); }
.logo-marquee { margin: 0; }
#clients .logo-marquee { margin-top: 56px; }
.logo-marquee-title { text-align: center; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.logo-track {
  display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-row { list-style: none; display: flex; gap: 20px; padding-right: 20px; flex: none; animation: marquee 28s linear infinite; }
.logo-track:hover .logo-row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.logo-tile {
  flex: none; height: 96px; width: 220px; display: grid; place-items: center; padding: 16px 22px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;   /* stays white in dark mode so every logo reads */
  transition: transform 0.25s, box-shadow 0.25s;
}
.logo-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.logo-tile img { max-height: 60px; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: 0.75; transition: filter 0.3s, opacity 0.3s; }
.logo-tile:hover img { filter: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .logo-row { animation: none; } .logo-track { flex-wrap: wrap; justify-content: center; } .logo-row[aria-hidden] { display: none; } }
@media (max-width: 600px) { .logo-tile { height: 78px; width: 170px; padding: 12px 16px; } .logo-tile img { max-height: 48px; } }

/* ---------- Privacy policy page ---------- */
.policy-hero { padding: 150px 0 70px; }
.policy-hero h1 { margin-bottom: 0.8rem; }
.policy-hero .lead { max-width: 640px; }
.policy-date { margin-top: 18px; font-size: 0.85rem; color: #9fe0ff; font-weight: 600; letter-spacing: 0.04em; }
.policy-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 56px; align-items: start; }
.policy-toc { position: sticky; top: 100px; }
.policy-toc #dAll a span { font-size: 0.75rem; font-weight: 700; color: var(--brand); margin-right: 10px; }
.policy-toc #dAll a { justify-content: flex-start; font-size: 0.92rem; }
.policy { max-width: 760px; }
.policy-block { padding: 28px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.policy-block:first-child { padding-top: 0; }
.policy-block h2 { display: flex; align-items: center; gap: 14px; font-size: 1.35rem; margin-bottom: 12px; }
.policy-num { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 0.9rem; color: #fff; background: linear-gradient(135deg, #4b90d4, #255b91); }
.policy-block p { color: var(--muted); }
.policy-block ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.policy-block ul li { position: relative; padding-left: 22px; color: var(--ink); }
.policy-block ul li::before { content: ""; position: absolute; left: 4px; top: 0.65em; width: 7px; height: 7px; border-radius: 2px; background: var(--brand); }
.policy-contact { border-bottom: 0; }
.policy-contact-list li::before { display: none; }
.policy-contact-list li { padding-left: 0 !important; }
.footer-links { display: inline-flex; gap: 22px; }
.form-consent { font-size: 0.8rem; color: var(--muted); text-align: center; margin-top: -6px; }
@media (max-width: 860px) {
  .policy-layout { grid-template-columns: 1fr; gap: 28px; }
  .policy-toc { position: static; }
}

/* ---------- Compact products (home page) ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: start; }
.prod-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.prod-head { display: flex; align-items: center; gap: 10px; font-size: 1rem; margin: 2px 4px 12px; }
.prod-head span { font-size: 0.75rem; color: #fff; background: var(--brand); border-radius: 7px; padding: 3px 8px; }
.prod-link { display: flex; align-items: center; gap: 12px; padding: 8px; margin: 0 -4px; border-radius: 12px; color: var(--ink); font-weight: 500; font-size: 0.93rem; line-height: 1.3; transition: background 0.2s, color 0.2s; }
.prod-link:hover { background: var(--chip); color: var(--brand-dark); }
.prod-link img { flex: none; width: 56px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--bg-alt); }
.prod-link span:first-of-type { flex: 1; }
.prod-arrow { color: var(--brand); opacity: 0; transform: translateX(-4px); transition: opacity 0.2s, transform 0.2s; }
.prod-link:hover .prod-arrow { opacity: 1; transform: none; }
@media (max-width: 1080px) { .prod-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .prod-grid { grid-template-columns: 1fr; } }

/* ---------- History as a flow chart: year nodes joined by arrows ---------- */
.timeline { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0 14px; max-width: none; position: relative; }
.timeline::before { display: none; }
.timeline .timeline-item, .timeline .timeline-item:nth-child(odd), .timeline .timeline-item:nth-child(even) { position: relative; left: 0; width: auto; padding: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.timeline .timeline-item:nth-child(n)::before {             /* connector to the next year */
  content: ""; display: block; position: absolute; z-index: 0; top: 35px; left: 50%; right: auto;
  width: calc(100% + 14px); height: 3px; border: 0; border-radius: 0; background: linear-gradient(90deg, var(--brand), #9fd1ff);
}
.timeline .timeline-item:nth-child(n)::after {              /* arrow head halfway between the nodes */
  content: ""; position: absolute; z-index: 1; top: 31px; left: calc(100% + 2px);
  width: 9px; height: 9px; border-top: 3px solid var(--brand); border-right: 3px solid var(--brand); transform: rotate(45deg);
}
.timeline .timeline-item:last-child::before, .timeline .timeline-item:last-child::after { display: none; }
.timeline .timeline-year {
  position: relative; z-index: 2; flex: none; width: 72px; height: 72px; margin: 0 0 16px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.05rem; font-weight: 800; color: var(--brand-dark);
  background: var(--surface); border: 3px solid var(--brand); box-shadow: var(--shadow);
}
.timeline .timeline-item:last-child .timeline-year { background: linear-gradient(135deg, #4b90d4, #255b91); color: #fff; border-color: transparent; }
.timeline .timeline-card { flex: 1; width: 100%; padding: 16px 14px; border-top: 3px solid var(--brand); }
.timeline .timeline-card h3 { font-size: 0.95rem; }
.timeline .timeline-card p { font-size: 0.84rem; line-height: 1.5; margin-top: 6px; }
.timeline .timeline-item:last-child .timeline-card { background: linear-gradient(135deg, #3d7ab8, #255b91); }
.timeline .timeline-item:last-child .timeline-card h3, .timeline .timeline-item:last-child .timeline-card p { color: #fff; }
@media (max-width: 1080px) {                   /* top-to-bottom flow on tablets and phones */
  .timeline { grid-template-columns: 1fr; gap: 22px; max-width: 640px; margin: 0 auto; }
  .timeline .timeline-item, .timeline .timeline-item:nth-child(odd), .timeline .timeline-item:nth-child(even) { flex-direction: row; align-items: flex-start; text-align: left; gap: 16px; left: 0; width: auto; padding: 0; }
  .timeline .timeline-year { width: 62px; height: 62px; margin: 0; font-size: 0.95rem; }
  .timeline .timeline-item:nth-child(n)::before { top: 62px; left: 30px; width: 3px; height: calc(100% - 62px + 22px); background: linear-gradient(180deg, var(--brand), #9fd1ff); }
  .timeline .timeline-item:nth-child(n)::after { top: auto; bottom: -15px; left: 27px; transform: rotate(135deg); }
}
.why-more { text-align: center; margin-top: 28px; font-weight: 600; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1080px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .timeline::before { left: 9px; }
  .timeline-item, .timeline-item:nth-child(even) { width: 100%; left: 0; text-align: left; padding: 0 0 32px 44px; }
  .timeline-item:nth-child(odd)::before, .timeline-item:nth-child(even)::before { left: 0; right: auto; }
}
@media (max-width: 600px) {
  .section { padding: 72px 0; }
  .cards, .team { grid-template-columns: 1fr; }
  .industries { grid-template-columns: repeat(2, 1fr); }
  .form { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- Technical data tables on product pages ---------- */
.spec-table { width: 100%; border-collapse: collapse; margin: 0 0 2rem; font-size: 0.95rem; }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.spec-table th { width: 38%; font-weight: 600; color: var(--ink); }
.spec-table td { color: var(--muted); }
.spec-table tr:first-child th, .spec-table tr:first-child td { border-top: 1px solid var(--line); }
@media (max-width: 600px) { .spec-table th { width: 44%; } .spec-table th, .spec-table td { padding: 10px 8px; } }

/* long menus scroll on short desktop screens */
@media (min-width: 1081px) { .dropdown-menu { max-height: calc(100vh - 110px); overflow-y: auto; overscroll-behavior: contain; } }
