/* Sifleks — corporate visual layer. Content is original. */
:root {
  --canvas: #ffffff;
  --soft: #f7f8fa;
  --tint: #f0f2f5;
  --ink: #16181d;
  --text: #2c3038;
  --muted: #5c6370;
  --line: #e5e7eb;
  --navy: #0b2a5b;
  --navy-hover: #081d40;
  --accent: #0b2a5b;
  --white: #ffffff;
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255,255,255,.78);
  --radius: 6px;
  --max: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 76px;
  --shadow: 0 1px 2px rgba(11, 42, 91, .04), 0 8px 24px rgba(11, 42, 91, .06);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--navy); color: #fff; padding: .6rem 1rem; font-weight: 600; text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { top: 0; }

.wrap { width: min(var(--max), calc(100% - 4rem)); margin-inline: auto; }
.wrap-wide { width: min(1200px, calc(100% - 4rem)); margin-inline: auto; }

/* Header — light, corporate */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; height: 100%; min-height: 0;
}
.site-header .wrap { width: min(1380px, calc(100% - 2.5rem)); }
.logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo img { height: 36px; width: auto; }
.site-nav { display: flex; align-items: center; gap: .7rem; }
.site-nav a {
  color: var(--text); text-decoration: none; font-size: .86rem; font-weight: 500;
  white-space: nowrap;
}
.header-cta { white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--navy); }
.site-nav .nav-extra { display: none; }
.header-tools { display: flex; align-items: center; gap: .75rem; }
.lang-switch { display: flex; align-items: center; gap: .1rem; font-size: .75rem; font-weight: 600; letter-spacing: .04em; }
.lang-switch a, .lang-switch span { color: var(--muted); text-decoration: none; padding: .25rem .35rem; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch [aria-current="true"] { color: var(--ink); }
.header-link {
  color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 500;
  white-space: nowrap;
}
.header-link:hover { color: var(--navy); }

.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  background: transparent; color: var(--ink); cursor: pointer; padding: 0; border-radius: var(--radius);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 1.5px; background: var(--ink); margin: 0 auto; position: relative; content: "";
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
body.nav-open { overflow: hidden; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .7rem 1.2rem; text-decoration: none; font-family: var(--font);
  font-weight: 600; font-size: .925rem; border: 1px solid transparent; cursor: pointer;
  border-radius: var(--radius);
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn-dark { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-dark:hover { background: var(--navy-hover); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy); background: var(--soft); color: var(--navy); }
.btn-outline-inv { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-outline-inv:hover { background: var(--navy-hover); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--soft); }
.btn-small { padding: .5rem 1rem; font-size: .875rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.text-link { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; color: var(--navy); }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Icons */
.icon { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-lg { width: 28px; height: 28px; }

/* Hero — understated, typographic, light */
.hero {
  position: relative; color: var(--ink);
  background: var(--canvas);
  padding: 0;
}
.hero-copy { padding: 5.5rem 0 3.5rem; max-width: 46rem; }
.eyebrow {
  font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; font-weight: 600; margin: 0 0 1.1rem; color: var(--muted);
}
.hero h1, .heading-xl {
  font-family: var(--font); font-weight: 600; letter-spacing: -.025em;
  font-size: clamp(2.15rem, 4.4vw, 3.15rem); line-height: 1.15;
  margin: 0 0 1.25rem; color: var(--ink);
  text-transform: none;
}
.hero h1::after, .page-hero h1::after {
  content: ""; display: block; width: 40px; height: 3px;
  background: var(--navy); margin-top: 1.35rem; border-radius: 1px;
}
.hero .lead { max-width: 38rem; color: var(--muted); margin: 0; font-size: 1.125rem; line-height: 1.65; }

/* Stats under the hero */
.stat-band { border-top: 1px solid var(--line); background: var(--soft); }
.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.stat-grid > div { padding: 2rem 1.5rem 2rem 0; }
.stat-grid > div + div { border-left: 1px solid var(--line); padding-left: 1.75rem; }
.stat-grid .num {
  font-weight: 600; font-size: 1.65rem; line-height: 1.1; margin: 0 0 .4rem; color: var(--navy); letter-spacing: -.02em;
}
.stat-grid h3 { font-size: .95rem; font-weight: 600; margin: 0 0 .25rem; color: var(--ink); }
.stat-grid p { margin: 0; color: var(--muted); font-size: .875rem; }

/* Sections */
.section { padding: 5.5rem 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--navy); color: #fff; }
.section-cta { background: var(--soft); text-align: center; padding: 5.5rem 0; }
.section-head { text-align: left; max-width: 40rem; margin: 0 0 2.75rem; }
.section-head.center, .section-cta .section-head { text-align: center; margin-left: auto; margin-right: auto; }
.section-head h2, .h2, h2 {
  font-family: var(--font); font-weight: 600; letter-spacing: -.02em;
  font-size: clamp(1.6rem, 2.6vw, 2.15rem); line-height: 1.2;
  text-transform: none; margin: 0 0 .7rem; color: var(--ink);
}
.section-dark h2, .section-dark .h2 { color: #fff; }
.section-head p, .lede { margin: 0; color: var(--muted); }
.section-dark .lede, .section-dark p { color: var(--on-dark-muted); }
.section-dark .eyebrow { color: rgba(255,255,255,.55); }

/* Horizontal underline tabs */
.tabs { display: block; }
.tab-list { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 1.75rem; }
.tab-btn {
  text-align: left; background: transparent; border: 0; border-bottom: 2px solid transparent;
  padding: .95rem 1.2rem .9rem 0; margin-right: 1.5rem;
  font: inherit; font-weight: 600; font-size: 1rem;
  color: var(--muted); cursor: pointer;
}
.tab-btn[aria-selected="true"], .tab-btn.is-active {
  color: var(--navy); border-bottom-color: var(--navy); background: transparent;
}
.tab-panels { max-width: 44rem; }
.tab-panels ul { margin: 0 0 1.2rem; padding-left: 1.15rem; }
.tab-panels li { margin: .45rem 0; }
.tab-photo { margin-top: 2rem; border-radius: var(--radius); overflow: hidden; max-width: 720px; }
.tab-photo img { width: 100%; height: 280px; object-fit: cover; }
.tabs-simple .tab-photo { display: none; }

/* Process steps */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 1.5rem;
  counter-reset: step; margin-top: 2.25rem;
}
.step { text-align: left; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 36px; height: 36px; margin: 0 0 1rem;
  border-radius: 50%; background: var(--navy); color: #fff;
  font-weight: 600; font-size: .9rem;
}
.step h3 { font-family: var(--font); font-size: 1.05rem; font-weight: 650; text-transform: none; margin: 0 0 .4rem; color: var(--ink); }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Benefit / service cards */
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.benefit {
  background: #fff; border: 1px solid var(--line); padding: 1.75rem 1.5rem 1.5rem;
  border-radius: var(--radius); min-height: 9rem;
}
.benefit h3 { font-family: var(--font); font-size: 1.05rem; font-weight: 650; text-transform: none; margin: 0 0 .5rem; }
.benefit p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Certificate badges */
.badge-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.section-head.center + .badge-row, .badge-row.center { justify-content: flex-start; }
.cert-badge {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: .15rem;
  background: #fff; border: 1px solid var(--line); padding: .85rem 1.15rem .8rem;
  text-decoration: none; min-width: 7.4rem;
  font-weight: 650; font-size: .95rem; border-radius: var(--radius);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.cert-badge:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.cert-badge span { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; display: block; }
.cert-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.cert-card {
  background: #fff; border: 1px solid var(--line); padding: 1.5rem 1.3rem 1.3rem;
  display: flex; flex-direction: column; min-height: 100%; border-radius: var(--radius);
}
.cert-card .tag {
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--navy);
}
.cert-card h3 { font-family: var(--font); font-size: 1.1rem; font-weight: 650; text-transform: none; margin: .35rem 0 .5rem; }
.cert-card p { margin: 0 0 1rem; color: var(--muted); font-size: .92rem; }
.cert-card p:not(.tag) { flex: 1; }
.cert-card .tag { margin: 0; flex: none; }
.cert-card .text-link { margin-top: auto; }
.cert-card .cert-mark {
  height: 3.1rem;
  margin: 0 0 .85rem;
  display: flex;
  align-items: center;
}
.cert-card .cert-mark img {
  max-height: 3.1rem;
  max-width: 8.5rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Registration / relation logo row (static, separate from the client marquee) */
.trust-logos { margin: 0 0 1.75rem; }
.trust-logos-caption {
  font-family: var(--font);
  font-size: .8rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin: 0 0 1.1rem;
}
.trust-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 2.1rem;
}
.trust-row li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 4.25rem;
}
.trust-row img {
  max-height: 48px;
  max-width: 9.5rem;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .78;
  transition: filter .2s ease, opacity .2s ease;
}
.trust-row li:hover img,
.trust-row li:focus-within img { filter: none; opacity: 1; }


/* Industries as icon cards (replaces dark pills) */
.icon-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.icon-grid li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: .7rem;
}
.icon-grid .icon { color: var(--navy); }
.icon-grid h3 { font-size: .95rem; font-weight: 650; margin: 0; text-transform: none; }
.industry-split { display: grid; grid-template-columns: 1fr; gap: 2rem; }

/* Logo wall — infinite left-to-right marquee (logos enter from the left) */
.logo-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 4.5rem, #000 calc(100% - 4.5rem), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 4.5rem, #000 calc(100% - 4.5rem), transparent 100%);
}
.logo-marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: logo-marquee-ltr 55s linear infinite;
}
.logo-marquee-set {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.logo-marquee-set li {
  flex: 0 0 11.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 6.5rem;
  padding: 1rem 1.25rem;
}
.logo-marquee-set img {
  max-width: 9.5rem;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .75;
  transition: filter .2s ease, opacity .2s ease;
}
.logo-marquee-set li:hover img,
.logo-marquee-set li:focus-within img { filter: none; opacity: 1; }
.logo-marquee:hover .logo-marquee-track,
.logo-marquee:focus-within .logo-marquee-track { animation-play-state: paused; }

@keyframes logo-marquee-ltr {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .logo-marquee-track {
    animation: none !important;
    transform: none !important;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }
  .logo-marquee-set[aria-hidden="true"] { display: none; }
  .logo-marquee-set { flex-wrap: wrap; justify-content: center; }
}

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 3rem; align-items: start; }
.faq-item { border-bottom: 1px solid var(--line); background: transparent; }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item button {
  width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
  padding: 1.15rem 0; font: inherit; font-weight: 600; display: flex; justify-content: space-between; gap: 1rem;
  color: var(--ink);
}
.faq-item button::after { content: "+"; font-weight: 400; font-size: 1.25rem; color: var(--muted); }
.faq-item[open] button::after { content: "–"; }
.faq-item:not([open]) .faq-body { display: none; }
.faq-item .faq-body { padding: 0 0 1.15rem; color: var(--muted); }
.faq-item .faq-body p { margin: 0; }

/* Page hero (inner pages) */
.page-hero { background: var(--soft); color: var(--ink); padding: 4.25rem 0 3.5rem; }
.page-hero h1 {
  font-family: var(--font); font-weight: 600; text-transform: none;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.18; letter-spacing: -.02em; margin: 0 0 .85rem;
}
.page-hero p { margin: 0; max-width: 38rem; color: var(--muted); font-size: 1.05rem; }

/* Prose / split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.split img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); }
.prose { max-width: 44rem; }
.prose h2 { margin-top: 2rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--font); font-size: 1.15rem; font-weight: 650; text-transform: none; margin: 1.4rem 0 .4rem; }
.prose p { margin: 0 0 1rem; }
.prose ul { margin: 0 0 1rem; padding-left: 1.15rem; }
.prose .note {
  background: var(--soft); border-left: 3px solid var(--navy); padding: 1rem 1.1rem; margin: 1.2rem 0; font-size: .95rem;
}
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.75rem; margin: 1.5rem 0 0; }
.fact dt { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.fact dd { margin: .2rem 0 0; font-weight: 600; color: var(--ink); }

.aside-facts {
  background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}
.aside-facts .facts { margin: 0; grid-template-columns: 1fr; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.contact-card { border: 1px solid var(--line); padding: 1.85rem 1.6rem; background: #fff; border-radius: var(--radius); }
.contact-card h2 { text-transform: none; font-family: var(--font); font-weight: 650; font-size: 1.15rem; margin: 0 0 .3rem; }
.contact-card .big {
  display: block; font-size: 1.15rem; font-weight: 650; text-decoration: none; margin: .5rem 0 .1rem; word-break: break-word; color: var(--navy);
}
.contact-card .big:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Footer — restrained dark band */
.site-footer { background: var(--navy); color: rgba(255,255,255,.78); padding: 3.5rem 0 1.5rem; font-size: .925rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem 1.5rem; }
.footer-brand img { height: 36px; width: auto; margin-bottom: 1rem; }
.site-footer h2 {
  font-family: var(--font); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.5); margin: 0 0 .9rem; font-weight: 650;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .35rem 0; }
.legal {
  margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem;
  color: rgba(255,255,255,.45); font-size: .82rem;
}

@media (max-width: 980px) {
  .stat-grid, .faq-grid, .split, .footer-grid, .contact-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid > div + div { border-left: 0; padding-left: 0; }
  .stat-grid > div { padding: 1.4rem 1rem 1.4rem 0; border-bottom: 1px solid var(--line); }
  .cert-cards, .icon-grid, .industry-cards, .icon-grid-6 { grid-template-columns: 1fr 1fr; }
  .steps, .benefit-grid { grid-template-columns: 1fr 1fr; }
  .tab-photo img { height: 220px; }
}
/* Wider wordmark (boxed SIFLEKS + 3 stars) needs the compact header sooner. */
@media (max-width: 1280px) {
  .nav-toggle { display: grid; place-items: center; }
  .header-cta, .header-link { display: none; }
  .site-nav {
    display: none; position: fixed; inset: var(--header-h) 0 0 0; background: #fff;
    flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 2rem; overflow: auto; gap: 0;
    border-top: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .95rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .site-nav .nav-extra { display: block; }
  .header-inner { gap: 1rem; }
}
@media (max-width: 400px) {
  .logo img, .footer-brand img { height: 30px; }
  .header-inner { gap: .55rem; }
}
@media (max-width: 760px) {
  .wrap, .wrap-wide { width: min(var(--max), calc(100% - 1.75rem)); }
  .steps, .benefit-grid, .cert-cards, .facts, .icon-grid, .industry-cards, .stat-grid, .faq-grid, .split, .footer-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .icon-grid, .icon-grid-6, .industry-cards, .stat-grid, .contact-grid, .cert-cards { grid-template-columns: 1fr 1fr; }
  .hero-copy { padding: 3rem 0 2.4rem; }
  .section { padding: 3.6rem 0; }
  .logo-marquee {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 2rem, #000 calc(100% - 2rem), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 2rem, #000 calc(100% - 2rem), transparent 100%);
  }
  .logo-marquee-set li { flex-basis: 9.25rem; height: 5.75rem; padding: .85rem .7rem; }
  .logo-marquee-set img { max-width: 7.5rem; max-height: 44px; }
}

/* Hero service shortcuts (BouwPro-like structure, Sifleks styling) */
.hero-services {
  display: flex; flex-wrap: wrap; gap: .65rem 1.75rem;
  margin-top: 2.1rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  max-width: 38rem;
}
.hero-services a {
  font-weight: 600; font-size: .95rem; color: var(--navy); text-decoration: none;
}
.hero-services a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Industry cards with short role lists */
.industry-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
  list-style: none; margin: 0; padding: 0;
}
.industry-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem;
}
.industry-card .icon { color: var(--navy); margin-bottom: .7rem; }
.industry-card h3 { font-size: 1.05rem; font-weight: 650; margin: 0 0 .7rem; text-transform: none; }
.industry-card ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.industry-card li { margin: .28rem 0; font-size: .95rem; }

.icon-grid-6 { grid-template-columns: repeat(3, 1fr); }
.icon-grid-6 li { min-height: 7rem; }

.industries-follow { margin-top: 3.5rem; }
.industries-follow .section-head { margin-bottom: 1.75rem; }

.prose .note {
  background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.15rem; margin: 1.25rem 0; color: var(--text); font-size: .95rem;
}

/* Homepage video slider */
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--soft); color: var(--navy); border-color: var(--soft); }
.btn-outline-light {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.7);
}
.btn-outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; }

.hero-slider {
  position: relative;
  display: flex;
  flex-direction: column;
  /* Header + hero = one viewport. Fallbacks: vh, then svh, then dvh. */
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  min-height: 0;
  background: #081224;
  color: #fff;
  overflow: hidden;
}
.hero-slides { position: relative; flex: 1 1 auto; min-height: 0; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease, visibility .8s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 0;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}
.hero-media {
  position: absolute; left: 0; right: 0; top: 0;
  /* Stretch behind the in-flow controls so the video covers the whole hero. */
  bottom: -7rem; z-index: 0;
}
.hero-media .hero-poster,
.hero-media .hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero-media .hero-poster { z-index: 0; }
.hero-media .hero-video { z-index: 1; opacity: 0; transition: opacity .6s ease; }
.hero-media .hero-video.is-ready { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(90deg, rgba(8,18,40,.72) 0%, rgba(8,18,40,.5) 48%, rgba(8,18,40,.32) 100%),
    linear-gradient(180deg, rgba(8,18,40,.12) 0%, rgba(8,18,40,.5) 100%);
}
.hero-slider .hero-copy {
  position: relative; z-index: 3;
  padding: clamp(1.1rem, 5.5vh, 3.75rem) 0 clamp(.85rem, 3vh, 2rem);
  max-width: 46rem;
}
.hero-slider .eyebrow {
  color: rgba(255,255,255,.72);
  margin: 0 0 clamp(.35rem, 1.2vh, 1.1rem);
  font-size: clamp(.62rem, .5rem + .45vh, .72rem);
}
.hero-slider h1 {
  color: #fff;
  font-size: clamp(1.5rem, 1.05rem + 2vw + 1.5vh, 3.15rem);
  margin: 0 0 clamp(.35rem, 1vh, 1.15rem);
  line-height: 1.15;
}
.hero-slider h1::after {
  background: #fff;
  margin-top: clamp(.45rem, 1.3vh, 1.35rem);
  width: clamp(28px, 4vh, 40px);
}
.hero-slider .lead {
  color: rgba(255,255,255,.88);
  font-size: clamp(.9rem, .75rem + .55vh, 1.125rem);
  line-height: 1.5;
}
.hero-slider .btn-row {
  margin-top: clamp(.7rem, 2.2vh, 1.75rem);
  gap: clamp(.45rem, 1.2vh, .75rem);
}
.hero-slider .btn {
  padding: clamp(.48rem, .3rem + .7vh, .7rem) clamp(.9rem, .65rem + 1vh, 1.2rem);
  font-size: clamp(.82rem, .74rem + .3vh, .925rem);
}

.hero-ui {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
  padding: clamp(.45rem, 1.3vh, 1.1rem) 0 clamp(.6rem, 1.6vh, 1.25rem);
  pointer-events: none;
}
.hero-ui-inner {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem;
}
.hero-slider .hero-services {
  margin: 0; padding: 0; border: 0; max-width: none;
  pointer-events: auto;
}
.hero-slider .hero-services a { color: #fff; }
.hero-slider .hero-services a:hover { color: #fff; }

.hero-controls {
  display: flex; align-items: center; gap: .7rem;
  pointer-events: auto;
  flex-shrink: 0;
}
.hero-arrow {
  width: 42px; height: 42px; padding: 0;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(8,18,40,.25);
  color: #fff; border-radius: 50%;
  cursor: pointer; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.hero-arrow:hover { background: #fff; color: var(--navy); border-color: #fff; }
.hero-arrow svg { display: block; margin: 0 auto; }
.hero-dots { display: flex; align-items: center; gap: .45rem; }
.hero-dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.4); cursor: pointer;
}
.hero-dot.is-active { background: #fff; width: 22px; border-radius: 4px; }

/* Reduced motion: posters only, instant slide change (global rule already kills transitions). */
@media (prefers-reduced-motion: reduce) {
  .hero-slider .hero-video { display: none; }
}
/* Small screens: posters only, so four videos are not downloaded on a phone. */
@media (max-width: 700px) {
  .hero-slider .hero-video { display: none; }
  .hero-slider .hero-copy { padding: clamp(.9rem, 3.5vh, 2rem) 0 clamp(.5rem, 1.6vh, 1rem); }
  .hero-ui-inner { flex-wrap: wrap; gap: .65rem 1rem; }
  .hero-slider .hero-services { width: 100%; }
  .hero-arrow { width: 36px; height: 36px; }
}

@media (max-width: 760px) {
  .hero-slider h1 { font-size: clamp(1.45rem, 1rem + 4.6vw + 1.2vh, 2.3rem); }
}


/* Full-page screenshots use a ~6000px-tall window. Cap the 100dvh hero so the rest of the page remains visible. */
@media (min-height: 5500px) {
  .hero-slider {
    height: 824px !important;
    min-height: 824px !important;
    max-height: 824px !important;
  }
}

.header-link { font-size: .82rem; }
.header-cta.btn-small { padding: .45rem .85rem; font-size: .82rem; }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, .85fr);
  gap: 2.5rem;
  align-items: start;
}
.contact-layout-single { grid-template-columns: minmax(0, 36rem); }
.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.75rem 1.6rem 1.9rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.contact-form h2 { margin: 0; font-size: 1.45rem; }
.contact-form .form-lede { margin: 0; color: var(--muted); font-size: .95rem; }
.contact-form label {
  display: flex; flex-direction: column; gap: .35rem;
  font-size: .85rem; font-weight: 600; color: var(--ink);
}
.contact-form input,
.contact-form textarea {
  font: inherit; font-weight: 400; color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px;
  padding: .7rem .8rem; background: #fff;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--navy); outline-offset: 1px;
}
.contact-form textarea { resize: vertical; min-height: 8rem; }
.contact-form button { align-self: flex-start; margin-top: .3rem; }
@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
}
