/* ---------- Tokens ---------- */
:root {
  --ink: #0b1220;
  --ink-2: #121b2e;
  --ink-3: #1b2640;
  --paper: #f6f7f4;
  --white: #ffffff;
  --text: #0e1726;
  --muted: #5a6577;
  --line: #e3e6e1;
  --line-inv: rgba(255, 255, 255, 0.1);
  --yellow: #f7c51e;
  --green: #22a447;
  --green-dark: #17803a;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(11, 18, 32, 0.04), 0 8px 24px rgba(11, 18, 32, 0.06);
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.small { font-size: 0.875rem; }
.muted { color: var(--muted); }
.muted-inv { color: rgba(255, 255, 255, 0.62); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font: 600 0.95rem/1 var(--font-body);
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--yellow); color: var(--ink); }
.btn-accent:hover { background: #ffd43f; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.24); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-line { border-color: var(--line); color: var(--text); background: var(--white); }
.btn-line:hover { border-color: var(--text); }
.btn-sm { padding: 10px 16px; font-size: 0.875rem; }
.btn svg { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 32, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-inv);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  color: rgba(255, 255, 255, 0.72); text-decoration: none; font-weight: 500; font-size: 0.94rem;
  padding: 8px 14px; border-radius: 999px; transition: color 0.2s, background 0.2s;
}
.nav a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav a[aria-current="page"] { color: #fff; }
.nav-cta { margin-left: 10px; }
.menu-btn { display: none; }

@media (max-width: 1180px) {
  .menu-btn {
    display: grid; place-content: center; gap: 6px; width: 44px; height: 44px;
    background: transparent; border: 1px solid var(--line-inv); border-radius: 12px; cursor: pointer;
  }
  .menu-btn span:not(.sr-only) { display: block; width: 18px; height: 2px; background: #fff; transition: transform 0.2s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 16px; background: var(--ink); border-bottom: 1px solid var(--line-inv);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: 0.2s ease;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a:not(.btn) { padding: 14px 12px; font-size: 1.05rem; border-radius: 10px; }
  .nav-cta { margin: 10px 0 0; justify-content: center; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-tight { padding: clamp(48px, 7vw, 80px) 0; }
.section-dark { background: var(--ink); color: #fff; }
.section-white { background: var(--white); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 0.78rem/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green-dark); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; }
.section-dark .eyebrow { color: var(--yellow); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head p { font-size: 1.12rem; color: var(--muted); }
.section-dark .section-head p { color: rgba(255, 255, 255, 0.66); }
.split-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: 56px; }
.split-head .section-head { margin-bottom: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; background: var(--ink);
  padding: clamp(80px, 12vw, 150px) 0 0;
  margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + clamp(72px, 11vw, 140px));
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 80%);
}
.hero::after {
  content: ""; position: absolute; width: 760px; height: 760px; right: -220px; top: -260px;
  background: radial-gradient(circle, rgba(34,164,71,0.28), transparent 62%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-glow-y { position: absolute; width: 520px; height: 520px; left: -200px; bottom: -260px; background: radial-gradient(circle, rgba(247,197,30,0.16), transparent 65%); pointer-events: none; }
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--yellow), #8fd14f 55%, var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: rgba(255,255,255,0.72); max-width: 58ch; margin: 24px 0 36px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 10px;
  border: 1px solid var(--line-inv); border-radius: 999px; background: rgba(255,255,255,0.04);
  font-size: 0.82rem; color: rgba(255,255,255,0.82); font-weight: 500;
}
.badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(34,164,71,0.2); }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(64px, 9vw, 110px);
  border-top: 1px solid var(--line-inv);
}
.stat { padding: 30px 24px 36px 0; border-right: 1px solid var(--line-inv); }
.stat + .stat { padding-left: 24px; }
.stat:last-child { border-right: 0; }
.stat b { display: block; font: 600 clamp(2rem, 3.6vw, 2.8rem)/1 var(--font-head); letter-spacing: -0.03em; margin-bottom: 10px; }
.stat b sup { font-size: 0.5em; color: var(--yellow); vertical-align: top; margin-left: 2px; }
.stat span { color: rgba(255,255,255,0.6); font-size: 0.92rem; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 16px 26px 0; }
  .stat + .stat { padding-left: 16px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-inv); }
}

/* Page hero (inner pages) */
.page-hero { padding-bottom: clamp(56px, 8vw, 96px); }
.page-hero h1 { max-width: 18ch; font-size: clamp(2.2rem, 5vw, 3.8rem); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  text-decoration: none; display: flex; flex-direction: column;
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d2d7cf; }
.card p { color: var(--muted); margin-bottom: 0; }
.card .num { font: 500 0.8rem/1 var(--font-head); color: var(--muted); letter-spacing: 0.08em; margin-bottom: 36px; display: flex; justify-content: space-between; align-items: center; }
.icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: #eef7f0; color: var(--green-dark); margin-bottom: 22px;
}
.icon svg { width: 24px; height: 24px; }
.card .more { margin-top: auto; padding-top: 22px; font-weight: 600; font-size: 0.9rem; display: inline-flex; gap: 8px; align-items: center; color: var(--text); }
.card .more svg { width: 16px; height: 16px; transition: transform 0.2s; }
a.card:hover .more svg { transform: translateX(3px); }

.card-dark { background: var(--ink-2); border-color: var(--line-inv); color: #fff; }
.card-dark p { color: rgba(255,255,255,0.64); }
.card-dark .icon { background: rgba(247,197,30,0.1); color: var(--yellow); }

/* Feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.check-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; }
.check-list li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.check-list b { display: block; }
.check-list span { color: var(--muted); font-size: 0.95rem; }
.section-dark .check-list span { color: rgba(255,255,255,0.62); }

.spec-panel {
  background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px);
  position: relative; overflow: hidden;
}
.spec-panel::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(247,197,30,0.18), transparent 65%); }
.spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-inv); position: relative; z-index: 1; }
.spec-row:last-child { border-bottom: 0; }
.spec-row span { color: rgba(255,255,255,0.6); }
.spec-row b { font-family: var(--font-head); font-weight: 600; text-align: right; }

/* Industries */
.industry { border-radius: var(--radius-lg); overflow: hidden; position: relative; aspect-ratio: 4 / 4.3; background: var(--ink-2); }
.industry img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; filter: saturate(0.9); }
.industry:hover img { transform: scale(1.05); }
.industry::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(11,18,32,0.88)); }
.industry h3 { position: absolute; left: 22px; right: 22px; bottom: 18px; color: #fff; margin: 0; z-index: 1; font-size: 1.15rem; }
.industry h3 small { display: block; font: 500 0.82rem/1.4 var(--font-body); color: rgba(255,255,255,0.7); letter-spacing: 0; margin-top: 4px; }

/* Logos */
.logo-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logo-track { display: flex; gap: 20px; width: max-content; animation: marquee 40s linear infinite; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-tile {
  flex: none; width: 168px; height: 88px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line);
  display: grid; place-items: center; padding: 16px 22px;
}
.logo-tile img { max-height: 52px; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.75; transition: 0.3s; mix-blend-mode: multiply; }
.logo-tile:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(calc(-50% - 10px)); } }
@media (prefers-reduced-motion: reduce) { .logo-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } .logo-track [aria-hidden] { display: none; } }

/* Certifications */
.cert { display: flex; gap: 18px; align-items: center; padding: 22px; }
.cert .seal {
  flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--green); color: var(--green-dark); font: 700 0.72rem/1.1 var(--font-head); text-align: center;
}
.cert b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }
.cert span { color: var(--muted); font-size: 0.88rem; }

/* Case studies */
.case { padding: 0; overflow: hidden; }
.case-img { aspect-ratio: 16 / 10; background: #eef0ec; overflow: hidden; }
.case-img img { width: 100%; height: 100%; object-fit: cover; }
.case-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.tag { display: inline-block; font: 600 0.72rem/1 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-dark); background: #eef7f0; padding: 6px 10px; border-radius: 999px; margin-bottom: 16px; align-self: flex-start; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; border-radius: 28px; background: var(--ink); color: #fff;
  padding: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 100% 0%, rgba(34,164,71,0.35), transparent 50%), radial-gradient(circle at 0% 100%, rgba(247,197,30,0.18), transparent 45%); }
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.7); margin: 0; font-size: 1.08rem; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; } .cta-actions { justify-content: flex-start; } }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 0.9rem; font-weight: 500; }
.section-dark .chip { background: rgba(255,255,255,0.05); border-color: var(--line-inv); color: rgba(255,255,255,0.86); }

/* Service blocks */
.service { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 72px); padding: clamp(40px, 6vw, 64px) 0; border-top: 1px solid var(--line); }
.service:first-child { border-top: 0; padding-top: 0; }
.service .index { font: 500 0.85rem/1 var(--font-head); color: var(--muted); letter-spacing: 0.08em; margin-bottom: 16px; }
.service p { color: var(--muted); font-size: 1.05rem; }
.service ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.service li { padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); font-weight: 500; font-size: 0.95rem; }
@media (max-width: 820px) { .service { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .service ul { grid-template-columns: 1fr; } }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 30px 40px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 3px solid var(--green); }
.timeline time { font: 600 0.85rem/1 var(--font-head); color: var(--green-dark); letter-spacing: 0.04em; }
.timeline b { display: block; font-family: var(--font-head); font-size: 1.1rem; margin: 6px 0 2px; }
.timeline span { color: var(--muted); font-size: 0.95rem; }

.cert-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cert-gallery figure { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; }
.cert-gallery img { border-radius: 10px; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.cert-gallery figcaption { padding: 14px 6px 4px; font-weight: 600; font-family: var(--font-head); }
.cert-gallery figcaption span { display: block; font: 400 0.88rem var(--font-body); color: var(--muted); }
@media (max-width: 760px) { .cert-gallery { grid-template-columns: 1fr 1fr; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 8px; }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--white);
  border: 1px solid #d6dad3; border-radius: 12px; padding: 13px 15px; transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(34,164,71,0.14); }
.hp { position: absolute; left: -5000px; }
.form-status { font-weight: 500; padding: 14px 16px; border-radius: 12px; display: none; }
.form-status.ok { display: block; background: #eaf6ee; color: #135c2a; }
.form-status.err { display: block; background: #fdeeee; color: #8a1f1f; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { display: grid; gap: 14px; }
.info-item { display: flex; gap: 16px; padding: 20px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); text-decoration: none; }
.info-item .icon { margin: 0; width: 44px; height: 44px; flex: none; }
.info-item b { display: block; font-family: var(--font-head); font-weight: 600; }
.info-item span { color: var(--muted); font-size: 0.94rem; }
a.info-item:hover { border-color: #cfd4cc; }
.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); margin-top: 14px; aspect-ratio: 16 / 11; background: #e9ece6; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Jobs ---------- */
.jobs { display: grid; gap: 14px; }
.job { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.job summary { list-style: none; cursor: pointer; padding: 24px 28px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.job summary::-webkit-details-marker { display: none; }
.job h3 { margin: 0 0 8px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 0.9rem; }
.job-meta span { display: inline-flex; gap: 6px; align-items: center; }
.job-meta svg { width: 15px; height: 15px; }
.job .toggle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: transform 0.25s, background 0.2s; }
.job .toggle svg { width: 18px; height: 18px; }
.job[open] .toggle { transform: rotate(45deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.job-body { padding: 0 28px 28px; border-top: 1px solid var(--line); }
.job-body h4 { font-size: 1rem; margin: 24px 0 10px; }
.job-body ul { margin: 0; padding-left: 20px; color: var(--muted); }
.job-body li { margin-bottom: 6px; }
.job-body .btn { margin-top: 26px; }
.empty { text-align: center; padding: 48px 24px; border: 1px dashed #cfd4cc; border-radius: var(--radius-lg); color: var(--muted); }

/* Dialog */
dialog.apply {
  width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 48px); border: 0; padding: 0;
  border-radius: var(--radius-lg); box-shadow: 0 30px 80px rgba(11,18,32,0.35);
}
dialog.apply::backdrop { background: rgba(11,18,32,0.6); backdrop-filter: blur(4px); }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding: 26px 28px 0; }
.dialog-head h3 { margin: 4px 0 0; }
.dialog-body { padding: 22px 28px 28px; }
.close-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); cursor: pointer; display: grid; place-items: center; flex: none; }
.close-btn svg { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding: 80px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line-inv); }
.footer-grid .logo img { height: 44px; margin-bottom: 20px; }
.footer-grid h4 { font: 600 0.78rem/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 18px; }
.footer-grid a { display: block; color: rgba(255,255,255,0.82); text-decoration: none; margin-bottom: 10px; font-size: 0.95rem; }
.footer-grid a:hover { color: var(--yellow); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.footer-bottom a { color: inherit; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

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

/* Prose (privacy) */
.prose { max-width: 720px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose p, .prose li { color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery-filter { margin-bottom: 48px; }
.gallery-filter .chip { cursor: pointer; font: inherit; font-size: 0.9rem; font-weight: 500; color: var(--text); }
.gallery-filter .chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.album { padding: 0 0 56px; margin-bottom: 56px; border-bottom: 1px solid var(--line); }
.album:last-child { border-bottom: 0; margin-bottom: 0; }
.album[hidden] { display: none; }
.album-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 24px; }
.album-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 6px; }
.album-head p { margin: 0; max-width: 60ch; }
.album-head time { color: var(--muted); font-size: 0.9rem; font-weight: 500; white-space: nowrap; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.photo { padding: 0; border: 0; background: #e9ece6; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.photo:hover img { transform: scale(1.04); }
.photo-grid .photo:first-child:nth-last-child(n+4) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 520px) { .photo-grid { grid-template-columns: 1fr 1fr; gap: 8px; } }

dialog.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 12, 22, 0.94); }
dialog.lightbox[open] { display: grid; place-items: center; }
dialog.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100vh - 120px); border-radius: 10px; }
.lb-btn { position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.06); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lb-btn svg { width: 22px; height: 22px; }
.lb-btn:hover { background: rgba(255,255,255,0.14); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; } .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); } }

/* ---------- v2: split hero + video ---------- */
.hero-split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-split h1 { max-width: 14ch; font-size: clamp(2.3rem, 4.6vw, 3.9rem); }
.hero-kicker { font: 500 0.95rem/1.4 var(--font-body); color: rgba(255,255,255,0.7); margin-bottom: 20px; display: flex; gap: 10px; align-items: center; }
.hero-kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(34,164,71,0.22); }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 32px; color: rgba(255,255,255,0.6); font-size: 0.86rem; font-weight: 500; }
.trust-row span { display: inline-flex; gap: 8px; align-items: center; }
.trust-row svg { width: 16px; height: 16px; color: var(--green); }
.media-card { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3.3; background: var(--ink-2); border: 1px solid var(--line-inv); box-shadow: 0 30px 80px rgba(0,0,0,0.35); }
.media-card img, .media-card iframe, .media-card video { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.media-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(11,18,32,0.75)); pointer-events: none; }
.media-card.playing::after { display: none; }
.media-caption { position: absolute; left: 22px; right: 22px; bottom: 18px; z-index: 1; display: flex; align-items: center; gap: 14px; color: #fff; font-weight: 600; }
.media-caption small { display: block; font-weight: 400; color: rgba(255,255,255,0.7); font-size: 0.82rem; }
.play-btn { width: 56px; height: 56px; flex: none; border-radius: 50%; border: 0; background: var(--yellow); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: transform 0.2s; box-shadow: 0 0 0 8px rgba(247,197,30,0.18); }
.play-btn:hover { transform: scale(1.06); }
.play-btn svg { width: 22px; height: 22px; margin-left: 3px; }
.float-chip { position: absolute; top: 18px; left: 18px; z-index: 1; background: rgba(11,18,32,0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; border: 1px solid var(--line-inv); border-radius: 999px; padding: 8px 14px; font-size: 0.8rem; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.float-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
@media (max-width: 900px) { .hero-split { grid-template-columns: 1fr; } .media-card { aspect-ratio: 16 / 10; } }

/* Bento capabilities */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento > * { grid-column: span 2; }
.bento .wide { grid-column: span 3; }
.tile-photo { padding: 0; overflow: hidden; min-height: 420px; justify-content: flex-end; color: #fff; border: 0; background: var(--ink); }
.tile-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.tile-photo:hover img { transform: scale(1.04); }
.tile-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,18,32,0.05) 25%, rgba(11,18,32,0.92)); }
.tile-photo .tile-body { position: relative; z-index: 1; padding: 30px; }
.tile-photo p { color: rgba(255,255,255,0.75); }
.tile-photo .more { color: #fff; }
.tile-photo .tag { background: rgba(255,255,255,0.12); color: #fff; }
@media (max-width: 960px) { .bento > *, .bento .wide { grid-column: span 3; } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } .bento > *, .bento .wide { grid-column: auto; } .tile-photo { min-height: 340px; } }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 28px 26px 30px; border-radius: var(--radius-lg); background: var(--ink-2); border: 1px solid var(--line-inv); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font: 600 0.85rem/1 var(--font-head); color: var(--yellow); margin-bottom: 44px; letter-spacing: 0.06em; }
.step h3 { color: #fff; }
.step p { color: rgba(255,255,255,0.62); margin: 0; font-size: 0.95rem; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Parts grid */
.parts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.parts a { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: #d9dbdc; }
.parts img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.parts a:hover img { transform: scale(1.06); }
@media (max-width: 760px) { .parts { grid-template-columns: repeat(2, 1fr); } }

/* Certification band */
.cert-band { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 16px; align-items: stretch; }
.cert-big { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; }
.cert-big .seal { width: 64px; height: 64px; font-size: 0.8rem; margin-bottom: 24px; }
.cert-big b { font: 600 1.5rem/1.1 var(--font-head); letter-spacing: -0.02em; display: block; margin-bottom: 8px; }
.cert-big p { color: var(--muted); margin: 0; }
.cert-big .valid { margin-top: auto; padding-top: 22px; font-size: 0.85rem; font-weight: 600; color: var(--green-dark); }
@media (max-width: 900px) { .cert-band { grid-template-columns: 1fr; } }

/* Industries */
.industry-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.industry-list div { display: flex; gap: 16px; align-items: center; padding: 22px 8px; border-bottom: 1px solid var(--line); font: 600 1.1rem var(--font-head); }
.industry-list svg { width: 26px; height: 26px; color: var(--green-dark); flex: none; }
@media (max-width: 760px) { .industry-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .industry-list { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font: 600 1.05rem/1.35 var(--font-head); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--font-body); color: var(--muted); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; margin: 0; color: var(--muted); }
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 880px) { .faq-wrap { grid-template-columns: 1fr; } }

.photo-frame { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }

.media-caption[hidden] { display: none; }
.seal { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--green); color: var(--green-dark); font: 700 0.72rem/1.1 var(--font-head); text-align: center; flex: none; }
.tile-photo::after { background: linear-gradient(180deg, rgba(11,18,32,0.1) 15%, rgba(11,18,32,0.7) 45%, rgba(11,18,32,0.96) 80%); }
@media (max-width: 620px) { .tile-photo { min-height: 440px; } }
.media-card.playing { aspect-ratio: 16 / 9; }

/* =====================================================================
   Light theme (navy brand) + tighter spacing. Overrides the rules above.
   ===================================================================== */
:root {
  --paper: #f5f7fa;
  --text: #0f2440;
  --muted: #4f5d73;
  --line: #e1e6ed;
  --navy: #133d6e;
}
body { background: var(--paper); color: var(--text); }

/* Header */
.site-header { background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line); }
.logo img { height: 42px; }
.nav a:not(.btn) { color: #3d4c64; }
.nav a:not(.btn):hover { color: var(--text); background: #eef2f7; }
.nav a[aria-current="page"] { color: var(--navy); font-weight: 600; }
.menu-btn { border-color: var(--line); }
.menu-btn span:not(.sr-only) { background: var(--text); }
@media (max-width: 1180px) { .nav { background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 30px rgba(15, 36, 64, 0.08); } }

/* Hero (home + inner pages) */
.hero { background: linear-gradient(180deg, #eaf0f7 0%, var(--paper) 100%); color: var(--text); }
.hero::before { background-image: linear-gradient(rgba(19,61,110,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(19,61,110,0.06) 1px, transparent 1px); }
.hero::after { background: radial-gradient(circle, rgba(34,164,71,0.14), transparent 62%); }
.hero-glow-y { background: radial-gradient(circle, rgba(247,197,30,0.2), transparent 65%); }
.hero h1 em { background: linear-gradient(90deg, var(--navy), #1a8f44); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead, .hero-kicker, .trust-row { color: var(--muted); }
.hero .btn-ghost, .btn-ghost { border-color: #c5cfdc; color: var(--text); background: #fff; }
.hero .btn-ghost:hover, .btn-ghost:hover { border-color: var(--text); }
.badge { border-color: var(--line); background: #fff; color: var(--text); }
.stats { border-top-color: var(--line); }
.stat { border-right-color: var(--line); }
.stat b { color: var(--navy); }
.stat b sup { color: #1a8f44; }
.stat span { color: var(--muted); }
@media (max-width: 760px) { .stat:nth-child(n+3) { border-top-color: var(--line); } }
.media-card { border-color: var(--line); box-shadow: 0 24px 60px rgba(15, 36, 64, 0.16); }

/* Navy accent bands keep white text; buttons inside them stay readable */
.section-dark .btn-ghost, .cta-band .btn-ghost { background: transparent; border-color: rgba(255,255,255,0.35); color: #fff; }
.section-dark .btn-ghost:hover, .cta-band .btn-ghost:hover { border-color: #fff; }
.section-dark { background: var(--ink); }
.step { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); }
.step p, .section-dark .section-head p, .card-dark p { color: rgba(255,255,255,0.78); }

/* Body text contrast */
.card p, .service p, .section-head p, .check-list span, .industry-list div, .faq details p, .muted { color: var(--muted); }
.industry-list div { color: var(--text); }
.eyebrow { color: #17803a; }
.section-dark .eyebrow, .cta-band .eyebrow { color: var(--yellow); }
.chip { color: var(--text); }
.section-dark .chip { color: #fff; }

/* Tighter vertical rhythm */
.section { padding: clamp(48px, 6vw, 80px) 0; }
.section-tight { padding: clamp(32px, 4.5vw, 56px) 0; }
.section-head { margin-bottom: clamp(28px, 3.5vw, 40px); }
.split-head { margin-bottom: clamp(28px, 3.5vw, 40px); }
.hero { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 80px)); }
.page-hero { padding-bottom: clamp(36px, 5vw, 60px); }
.stats { margin-top: clamp(36px, 5vw, 60px); }
.stat { padding-top: 22px; padding-bottom: 26px; }
.service { padding: clamp(28px, 4vw, 44px) 0; }
.album { padding-bottom: 36px; margin-bottom: 36px; }
.cta-band { padding: clamp(28px, 4.5vw, 52px); }
.site-footer { padding-top: 56px; }
.footer-grid { padding-bottom: 40px; }
.timeline li { padding-bottom: 22px; }
.check-list { margin-top: 20px; }
/* Text on dark surfaces must stay light (these win over the body-text rules above) */
.card-dark p, .card.card-dark p { color: rgba(255,255,255,0.8); }
.tile-photo p, .card.tile-photo p { color: rgba(255,255,255,0.88); }
.tile-photo h3, .card-dark h3 { color: #fff; }
.stat b sup { color: #137a36; }
.eyebrow { color: #146f33; }
.section-dark .eyebrow, .cta-band .eyebrow { color: var(--yellow); }
/* Text is never hidden: sections slide in gently but stay fully visible */
.reveal { opacity: 1; transform: translateY(12px); transition: transform 0.6s ease; }
.reveal.in { transform: none; }
.card-dark { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); }

/* =====================================================================
   v3: industrial grey theme + new components
   ===================================================================== */
:root { --paper: #e8ebef; --line: #d2d8df; --muted: #4a576b; --surface: #f4f6f8; }
body { background: var(--paper); }
.section-white { background: var(--surface); }
.site-header { background: rgba(247, 248, 250, 0.97); border-bottom-color: var(--line); }
.hero { background: linear-gradient(180deg, #d6dce4 0%, var(--paper) 100%); }
.hero::before { background-image: linear-gradient(rgba(19,61,110,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(19,61,110,0.07) 1px, transparent 1px); }
.card, .cert-big, .form-card, .job, .faq details, .info-item, .logo-tile, .chip { border-color: var(--line); }
.logo-tile img { mix-blend-mode: normal; }

/* LinkedIn button */
.li-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: #0a66c2; font-weight: 600; font-size: 0.88rem; text-decoration: none; margin-left: 6px; }
.li-btn svg { width: 18px; height: 18px; }
.li-btn:hover { border-color: #0a66c2; }
@media (max-width: 1180px) { .li-btn { justify-content: center; margin: 8px 0 0; height: 46px; } }

/* Hero autoplay video */
.media-card.video { aspect-ratio: 16 / 9; background: #0b1220; }
.media-card.video::after { display: none; }
.media-card.video iframe { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); border: 0; pointer-events: none; }
.media-card.video.with-sound iframe { pointer-events: auto; }
.sound-btn { position: absolute; left: 14px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 0; background: rgba(11,18,32,0.78); color: #fff; font: 600 0.82rem var(--font-body); cursor: pointer; backdrop-filter: blur(6px); }
.sound-btn svg { width: 16px; height: 16px; }
.sound-btn:hover { background: rgba(11,18,32,0.92); }

/* Core focus cards */
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.focus-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform 0.25s, box-shadow 0.25s; }
.focus-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.focus-img { aspect-ratio: 16 / 10; background: #fff; border-bottom: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.focus-img img { width: 100%; height: 100%; object-fit: cover; }
.focus-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.focus-body h3 { margin-bottom: 8px; }
.focus-body p { color: var(--muted); margin: 0; }
.focus-body .more { margin-top: auto; padding-top: 18px; font-weight: 600; font-size: 0.9rem; color: var(--navy); }
@media (max-width: 900px) { .focus-grid { grid-template-columns: 1fr; } .focus-img { aspect-ratio: 16 / 8; } }

/* Industries bar chart (single series, one hue) */
.ind-wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .ind-wrap { grid-template-columns: 1fr; } }
.chart-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 28px 22px; }
.chart-card h3 { margin-bottom: 4px; }
.chart-card .sub { color: var(--muted); font-size: 0.88rem; margin-bottom: 22px; }
.bars { display: grid; gap: 14px; position: relative; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 46px; align-items: center; gap: 12px; position: relative; }
.bar-row .name { font-weight: 600; font-size: 0.92rem; color: var(--text); }
.bar-row .val { font: 600 0.92rem var(--font-head); color: var(--text); text-align: right; }
.bar-track { height: 26px; border-radius: 4px; background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), #e3e7ec calc(25% - 1px) 25%); position: relative; }
.bar { height: 100%; width: 0; background: var(--navy); border-radius: 0 4px 4px 0; transition: width 0.9s cubic-bezier(.2,.7,.2,1); }
.bars.in .bar, .no-js .bar { width: var(--w); }
.bar-row:hover .bar { background: #1b5fae; }
.bar-tip { position: absolute; left: 122px; top: -34px; background: var(--text); color: #fff; font-size: 0.8rem; padding: 5px 9px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.15s; z-index: 3; }
.bar-row:hover .bar-tip, .bar-row:focus-within .bar-tip { opacity: 1; }
.bar-axis { display: grid; grid-template-columns: 110px 1fr 46px; gap: 12px; margin-top: 8px; }
.bar-axis div { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.75rem; }
@media (max-width: 480px) { .bar-row, .bar-axis { grid-template-columns: 84px 1fr 40px; } .bar-tip { left: 96px; } }
.parts-card { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 26px 28px; display: flex; flex-direction: column; text-decoration: none; overflow: hidden; }
.parts-card h3 { color: #fff; }
.parts-card p { color: rgba(255,255,255,0.8); }
.parts-strip { background: #fff; border-radius: 12px; padding: 10px; margin: 12px 0 18px; display: grid; gap: 6px; }
.parts-strip img { width: 100%; height: auto; }
.parts-card .more { margin-top: auto; font-weight: 600; color: var(--yellow); }
.parts-card:hover .more { text-decoration: underline; }

/* Certificate previews */
.cert-docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cert-doc { display: grid; grid-template-columns: 150px 1fr; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; align-items: center; }
.cert-doc img { width: 150px; aspect-ratio: 3 / 4.2; object-fit: cover; object-position: top; border-radius: 8px; border: 1px solid var(--line); }
.cert-doc b { font: 600 1.3rem/1.15 var(--font-head); display: block; margin-bottom: 6px; }
.cert-doc p { color: var(--muted); margin: 0 0 14px; font-size: 0.94rem; }
.cert-doc .btns { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 760px) { .cert-docs { grid-template-columns: 1fr; } .cert-doc { grid-template-columns: 110px 1fr; } .cert-doc img { width: 110px; } }

/* Tabs */
.tabs { position: sticky; top: var(--header-h); z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.tab-list { display: flex; gap: 6px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.tab-list::-webkit-scrollbar { display: none; }
.tab-list button { flex: none; border: 1px solid var(--line); background: #fff; color: var(--text); font: 600 0.9rem var(--font-body); padding: 10px 16px; border-radius: 999px; cursor: pointer; }
.tab-list button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.tab-panel { padding: clamp(28px, 4vw, 44px) 0; }
.js .tab-panel[hidden] { display: none; }
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 880px) { .panel-grid { grid-template-columns: 1fr; } }
.panel-img { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.panel-img img { width: 100%; height: 100%; object-fit: contain; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 22px; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.fact b { display: block; font: 600 1.35rem/1.1 var(--font-head); color: var(--navy); }
.fact span { color: var(--muted); font-size: 0.85rem; }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr 1fr; } }
.panel-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.panel-list li { padding: 11px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-weight: 500; font-size: 0.93rem; }
@media (max-width: 480px) { .panel-list { grid-template-columns: 1fr; } }
.panel-h { font-size: 1rem; margin: 18px 0 10px; }
.parts-row { margin-top: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 20px; }
.parts-row h4 { font-size: 0.95rem; margin-bottom: 8px; }
.parts-row img { width: 100%; height: auto; }

/* Insights (case studies & blog) */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; }
.post-card .ph { aspect-ratio: 16 / 10; background: #e3e7ec; overflow: hidden; }
.post-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.post-card .bd { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-card p { color: var(--muted); margin: 0; }
.post-card time { color: var(--muted); font-size: 0.82rem; margin-top: 14px; }
.article { max-width: 760px; }
.article .lead-img { border-radius: var(--radius-lg); overflow: hidden; margin: 0 0 28px; }
.article-body p, .article-body li { color: #2c3a50; font-size: 1.05rem; }
.article-body h2 { font-size: 1.5rem; margin-top: 1.6em; }
.article-body img { border-radius: 12px; margin: 18px 0; }

/* Careers: compact perks */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.perk { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: 0.93rem; }
.perk .icon { width: 36px; height: 36px; margin: 0; border-radius: 10px; flex: none; }
.perk .icon svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .perks { grid-template-columns: 1fr 1fr; } }
.page-hero.compact { padding-bottom: clamp(24px, 3.5vw, 40px); padding-top: calc(var(--header-h) + clamp(28px, 4vw, 52px)); }
.page-hero.compact h1 { font-size: clamp(2rem, 4vw, 3rem); }
.stat b sup { color: #0f6b2e; }
.chart-card { overflow: hidden; }
.bar-tip { visibility: hidden; }
.bar-row:hover .bar-tip, .bar-row:focus-within .bar-tip { visibility: visible; }
.site-header { background: #fff; }

/* Home hero: video spans the headline + intro height */
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; column-gap: clamp(32px, 5vw, 64px); align-items: start; }
.hero-grid .hero-kicker { grid-column: 1; grid-row: 1; }
.hero-grid .hero-copy { grid-column: 1; grid-row: 2; }
.hero-grid .hero-copy h1 { margin-top: 0; }
.hero-grid .hero-copy .hero-lead { margin: 22px 0 0; }
.hero-grid .media-card { grid-column: 2; grid-row: 2; align-self: stretch; aspect-ratio: auto; min-height: 280px; }
.hero-grid .hero-cta { grid-column: 1; grid-row: 3; margin-top: 30px; }
.media-card.video { container-type: size; }
.hero-grid .media-card.video iframe { inset: auto; top: 50%; left: 50%; width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw); transform: translate(-50%, -50%); }
.hero-grid .media-card.video.with-sound iframe { width: 100%; height: 100%; top: 0; left: 0; transform: none; }
.hero-grid .media-card img { position: absolute; inset: 0; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid .media-card { grid-column: 1; grid-row: 4; aspect-ratio: 16 / 9; min-height: 0; margin-top: 28px; }
}

/* Capabilities tabs: clean segmented control that wraps (no sideways scroll) */
.tabs { position: static; background: transparent; border: 0; }
.tab-list { flex-wrap: wrap; overflow: visible; gap: 8px; padding: 4px 0 0; }
.tab-list button { flex: 1 1 auto; text-align: center; padding: 12px 18px; border-radius: 12px; border: 1px solid var(--line); background: #fff; transition: background 0.15s, border-color 0.15s; }
.tab-list button:hover { border-color: var(--navy); }
.tab-list button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 6px 16px rgba(19,61,110,0.22); }
@media (max-width: 760px) { .tab-list { display: grid; grid-template-columns: 1fr 1fr; } .tab-list button { padding: 11px 10px; font-size: 0.85rem; } }
.tab-panel { padding-top: clamp(24px, 3vw, 36px); }

/* Machine summary */
.machines { margin: 6px 0 18px; }
.machines-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.mbands { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.mband { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.mband b { display: block; font: 600 1rem var(--font-head); color: var(--navy); }
.mband span { color: var(--muted); font-size: 0.84rem; }
.shop-summary { display: grid; gap: 8px; margin-top: 4px; }
.shop-line { display: flex; justify-content: space-between; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; flex-wrap: wrap; }
.shop-line span { color: var(--muted); }

/* Raw materials table */
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.mat-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.mat-table th { text-align: left; background: var(--navy); color: #fff; font-weight: 600; padding: 12px 14px; font-size: 0.85rem; }
.mat-table td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; color: var(--text); }
.mat-table tbody tr:nth-child(even) td { background: #f6f8fa; }
.mat-table td:nth-child(4), .mat-table th:nth-child(4) { text-align: center; }
.mat-table tfoot td { background: #eef2f7; }
@media (max-width: 760px) {
  .mat-table thead { display: none; }
  .mat-table, .mat-table tbody, .mat-table tr, .mat-table td, .mat-table tfoot { display: block; width: 100%; }
  .mat-table tr { border-top: 1px solid var(--line); padding: 8px 0; }
  .mat-table td { border: 0; padding: 4px 14px; text-align: left !important; }
  .mat-table td[data-label]:not(:first-child)::before { content: attr(data-label) ": "; color: var(--muted); font-size: 0.82rem; }
  .mat-table tbody tr:nth-child(even) td { background: transparent; }
}

/* About: story timeline (alternating) */
.story { list-style: none; margin: 0; padding: 0; position: relative; }
.story::before { content: ""; position: absolute; left: 50%; top: 6px; bottom: 6px; width: 2px; background: rgba(255,255,255,0.25); transform: translateX(-1px); }
.story li { display: grid; grid-template-columns: 1fr 1fr; position: relative; margin-bottom: 8px; }
.story li::before { content: ""; position: absolute; left: 50%; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--yellow); transform: translateX(-7px); box-shadow: 0 0 0 4px rgba(247,197,30,0.2); }
.story li.l .story-card { grid-column: 1; text-align: right; margin-right: 32px; }
.story li.r .story-card { grid-column: 2; margin-left: 32px; }
.story-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 16px 18px; }
.story-card time { font: 700 1.15rem var(--font-head); color: var(--yellow); display: block; }
.story-card b { display: block; color: #fff; font-family: var(--font-head); font-weight: 600; margin: 2px 0 4px; }
.story-card p { color: rgba(255,255,255,0.8); margin: 0; font-size: 0.95rem; }
@media (max-width: 760px) {
  .story::before { left: 7px; }
  .story li { grid-template-columns: 1fr; }
  .story li::before { left: 7px; }
  .story li.l .story-card, .story li.r .story-card { grid-column: 1; text-align: left; margin: 0 0 0 30px; }
}

/* About: leadership */
.team { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 14px 18px; text-align: center; }
.person .ph { aspect-ratio: 1; border-radius: 12px; overflow: hidden; margin-bottom: 12px; background: #e3e7ec; }
.person img { width: 100%; height: 100%; object-fit: cover; }
.person b { display: block; font: 600 1.02rem var(--font-head); }
.person .role { display: block; color: var(--navy); font-weight: 600; font-size: 0.86rem; margin: 2px 0; }
.person span { color: var(--muted); font-size: 0.84rem; }
@media (max-width: 1000px) { .team { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .team { grid-template-columns: 1fr 1fr; } }

/* Home: core focus machine images fit the box */
.focus-img { background: #fff; padding: 12px; }
.focus-img img { object-fit: contain; }
.tab-list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.tab-list button { padding: 12px 8px; font-size: 0.86rem; line-height: 1.25; transition: none; }
@media (max-width: 1000px) { .tab-list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .tab-list { grid-template-columns: repeat(2, 1fr); } }
.tab-list { grid-template-columns: repeat(7, 1fr); }
@media (max-width: 1100px) { .tab-list { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .tab-list { grid-template-columns: repeat(2, 1fr); } }


/* =====================================================================
   Serpentine timeline: rows of 4, alternating direction.
   The row line runs through the dots; U-turns sit in side gutters,
   clear of the text. Phones get a simple vertical list.
   ===================================================================== */
.serp { --c: rgba(19,61,110,0.4); --dot: #1a8f44; --dot-bg: #fff; --yr: var(--navy); --tt: var(--text); --tx: var(--muted);
  --g: 44px; position: relative; padding: 0 var(--g); }
.serp-dark { --c: rgba(255,255,255,0.45); --dot: var(--yellow); --dot-bg: var(--ink); --yr: var(--yellow); --tt: #fff; --tx: rgba(255,255,255,0.8); }
.serp-row { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; padding-bottom: 44px; }
.serp-row:last-child { padding-bottom: 0; }
.serp-row.rev { direction: rtl; }
.serp-row.rev > * { direction: ltr; }
.serp-row::before { content: ""; position: absolute; top: 9px; height: 2px; left: 0; right: 0; background: var(--c); }
.serp-row:first-child::before { left: 12.5%; }
.serp-row:last-child::before { right: var(--gap); }
.serp-row.rev:last-child::before { left: var(--gap); right: 0; }
.serp-row:first-child:last-child::before { left: 12.5%; right: var(--gap); }
.serp-row:not(:last-child)::after { content: ""; position: absolute; top: 9px; height: calc(100% + 2px); width: var(--g);
  left: 100%; border: 2px solid var(--c); border-left: 0; border-radius: 0 var(--g) var(--g) 0; }
.serp-row.rev:not(:last-child)::after { left: auto; right: 100%; border-left: 2px solid var(--c); border-right: 0; border-radius: var(--g) 0 0 var(--g); }
.serp-item { position: relative; text-align: center; padding: 0 14px; }
.serp-item .dot { width: 20px; height: 20px; border-radius: 50%; background: var(--dot-bg); border: 4px solid var(--dot); margin: 0 auto 14px; position: relative; z-index: 1; }
.serp-item time { display: block; font: 700 1.15rem/1.2 var(--font-head); color: var(--yr); }
.serp-item b { display: block; font: 600 1rem/1.3 var(--font-head); color: var(--tt); margin: 4px 0 4px; }
.serp-item span { display: block; color: var(--tx); font-size: 0.88rem; line-height: 1.5; max-width: 26ch; margin: 0 auto; }
@media (max-width: 860px) {
  .serp { padding: 0 0 0 30px; }
  .serp::before { content: ""; position: absolute; left: 9px; top: 10px; bottom: 10px; width: 2px; background: var(--c); }
  .serp-row, .serp-row.rev { grid-template-columns: 1fr; direction: ltr; padding: 0; }
  .serp-row::before, .serp-row::after { display: none !important; }
  .serp-item { text-align: left; padding: 0 0 22px; }
  .serp-item .dot { position: absolute; left: -30px; top: 1px; margin: 0; }
  .serp-item span { margin: 0; max-width: none; }
}

/* Top menu: the page you're on is clearly highlighted */
.nav a:not(.btn) { position: relative; }
.nav a[aria-current="page"]:not(.btn) { color: var(--navy); background: #e3eaf3; font-weight: 600; }
.nav a[aria-current="page"]:not(.btn)::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--navy); }
.nav-cta[aria-current="page"] { box-shadow: 0 0 0 3px rgba(19,61,110,0.25); }
@media (max-width: 1180px) {
  .nav a[aria-current="page"]:not(.btn) { background: #e3eaf3; }
  .nav a[aria-current="page"]:not(.btn)::after { left: 0; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; }
}
