/*
Theme Name: radarxense
Theme URI: https://radarxense.com
Author: BlueCT Site Factory
Description: Klassiek PHP-thema voor Radarxense (XenseFlow). Lay-out in PHP-templates, inhoud in SCF-velden.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: radarxense
*/

/* Concept: Signaalrood, zwart en wit, met lichtgrijs als enige neutrale vlak: de bestaande huisstijl van Radarxense, één op één overgenomen. Een nuchtere technische B2B-site op wit met harde rechte hoeken, massieve rode en zwarte vierkanten als handtekening en pilvormige knoppen met een rode omlijning. De boodschap is eenvoud: een kastje dat zonder graafwerk aan een bestaande mast hangt, geen hightech-laboratorium. */

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
  /* Four colours, no more (design_direction.palette_note). */
  --c-red: #E52837;
  --c-black: #000000;
  --c-white: #FFFFFF;
  --c-grey: #F2F2F2;
  --color-dominant: var(--c-red);
  --surface: var(--c-grey);
  --ink: var(--c-black);
  --accent: var(--c-black);
  --accent-text: var(--c-black); /* small accent text is black, never a darkened red */

  /* Type: Google fallback pair here; functions.php prepends the self-hosted
     CP Company TT only when its files are present. */
  --font-display: "Saira", sans-serif;
  --font-body: "Exo 2", sans-serif;

  --step--1: clamp(0.9375rem, 0.9rem + 0.15vw, 1rem);
  --step-0: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);      /* body 18 > 21 */
  --step-1: clamp(1.1875rem, 1.1rem + 0.3vw, 1.3125rem);
  --step-2: clamp(1.25rem, 1.05rem + 0.9vw, 1.625rem);     /* H3 20 > 26 */
  --step-sub: clamp(1.5rem, 1.45rem + 0.2vw, 1.625rem);    /* red subtitle 24 > 26, never below 24 (contrast) */

  /* DISPLAY TIER: editorial scale. 40px at 320, 96px at 1440. */
  --step-d1: clamp(2.5rem, 1.5rem + 5vw, 6rem);          /* hero h1        */
  --step-d2: clamp(2rem, 1.3571rem + 3.214vw, 4.25rem);  /* page h1 / band */
  --step-d3: clamp(1.6875rem, 1.3125rem + 1.875vw, 3rem);/* section h2     */

  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: 7rem;

  --container: 1160px;
  --container-max: 1280px;
  --gutter: clamp(20px, 4vw, 40px);
  --measure: 760px;
  --section-pad: clamp(4.5rem, 3.4rem + 5.4vw, 7.8rem); /* ~72px mobile, ~125px desktop */

  --radius: 0;
  --pill: 100px;
  --square: 75px;
  --square-panel: 80px;
  --card-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.15);
  --mat-shadow: 3px 3px 12px 0 rgba(0, 0, 0, 0.25);

  --header-h: 96px;
  --header-h-scrolled: 78px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html, body { overflow-x: clip; max-width: 100%; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--c-white);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--step-0);
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }
a > svg, button > svg, p svg, li > a svg { display: inline-block; vertical-align: middle; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}
h1, h2, h3, .display {
  overflow-wrap: anywhere;
  hyphens: auto;
  min-width: 0;
}
h4 { font-size: var(--step-1); }

p, ul, ol, dl, figure, blockquote, address { margin: 0 0 var(--space-3); }
address { font-style: normal; }
strong, b { font-weight: 700; }
sub { font-size: 0.7em; line-height: 0; vertical-align: -0.25em; }

a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 0.18em; text-decoration-color: var(--c-red); }
a:hover { color: var(--c-red); }
p a, li a, address a { overflow-wrap: anywhere; }

a, button, input, select, textarea, summary, label { touch-action: manipulation; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--c-black); outline-offset: 3px; }
::selection { background: var(--c-red); color: var(--c-black); }

[id] { scroll-margin-top: calc(var(--header-h-scrolled) + 1rem); }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 2000;
  padding: 0.75rem 1.25rem;
  background: var(--c-black);
  color: var(--c-white);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--c-white); }
main:focus { outline: none; box-shadow: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ==========================================================================
   3. Buttons and links
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 11px 32px;
  border: 2px solid var(--c-red);
  border-radius: var(--pill);
  background-color: transparent;
  color: var(--c-red);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1875rem; /* 19px bold: red label clears the large-text contrast bar */
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease-out, color 0.3s ease-out, border-color 0.3s ease-out;
}
.btn .icon { flex: 0 0 auto; }
.btn:hover,
.btn:focus-visible {
  background-color: var(--c-black);
  color: var(--c-white);
  border-color: var(--c-black);
}
.btn:focus-visible { outline: 3px solid var(--c-black); outline-offset: 3px; }

.link-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--c-black);
  font-weight: 700;
  text-decoration: none;
}
.link-secondary::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 2px;
  background: var(--c-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease-out;
}
.link-secondary:hover,
.link-secondary:focus-visible { color: var(--c-black); }
.link-secondary:hover::after,
.link-secondary:focus-visible::after { transform: scaleX(1); }

/* ==========================================================================
   4. Header and navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--c-white);
  transition: background-color 0.3s ease-out, box-shadow 0.3s ease-out;
}
.site-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}
.admin-bar .site-header { top: 32px; }

.site-header__inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
  padding-inline: clamp(20px, 2vw, 40px);
}
.site-header.is-scrolled .site-header__inner { min-height: var(--header-h-scrolled); }

.brand {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  text-decoration: none;
  color: var(--c-black);
}
.brand__logo {
  flex: 0 0 auto;
  height: 40px;
  width: auto;
  max-width: none;
  object-fit: contain;
}
.brand__wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.625rem;
  letter-spacing: -0.02em;
  color: var(--c-black);
}
.brand__wordmark--light { color: var(--c-white); }
.brand__slogan {
  max-width: 220px;
  font-size: var(--step--1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.primary-nav {
  flex: 0 1 auto;
  min-width: 0;
  margin-left: auto;
}
.primary-nav__head,
.drawer-cta,
.nav-close { display: none; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--c-black);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.3s ease-out;
}
.nav-link::before {
  content: "";
  position: absolute;
  left: -13px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  background: var(--c-red);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
.nav-link:hover { color: var(--c-red); }
.nav-link:hover::before,
.nav-link:focus-visible::before,
.nav-item.is-current > .nav-link::before { opacity: 1; transform: scale(1); }

.sub-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-height: 44px;
  margin-left: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--c-black);
  cursor: pointer;
}
.sub-toggle .icon { transition: transform 0.3s ease-out; }
.nav-item.is-open > .sub-toggle .icon { transform: rotate(180deg); }

.sub-wrap { display: none; }
.sub-menu { margin: 0; padding: 0; list-style: none; }
.sub-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1.25rem;
  color: var(--c-black);
  font-weight: 400;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
}
.sub-link:hover,
.sub-link:focus-visible { background-color: var(--c-grey); color: var(--c-black); }
.sub-item.is-current > .sub-link { font-weight: 700; box-shadow: inset 4px 0 0 var(--c-red); }

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--c-black);
  cursor: pointer;
}
.nav-overlay { display: none; }

.header-cta {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 9px 24px;
  min-height: 46px;
}
.cta-label-short { display: none; }

/* Desktop dropdown: hover and focus only above the drawer breakpoint. */
@media (min-width: 1280px) {
  .has-sub > .sub-wrap {
    position: absolute;
    top: 100%;
    left: -1.25rem;
    z-index: 20;
    padding-top: 14px;
    min-width: 260px;
  }
  .has-sub:hover > .sub-wrap,
  .has-sub:has(.sub-wrap :focus) > .sub-wrap,
  .has-sub.is-open > .sub-wrap { display: block; }
  .sub-menu {
    padding: 0.5rem 0;
    background: var(--c-white);
    box-shadow: var(--card-shadow);
    border-top: 3px solid var(--c-red);
  }
}
@media (min-width: 1280px) and (max-width: 1365px) {
  .header-cta .icon { display: none; }
  .header-cta { padding-inline: 22px; }
}

/* Drawer: closed = display:none (no scroll-width contribution). */
@media (max-width: 1279px) {
  .site-header__inner { gap: 12px; }
  .nav-toggle { display: inline-flex; order: 3; }
  .header-cta { order: 2; margin-left: auto; }
  .primary-nav {
    display: none;
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 1001;
    width: min(420px, 88vw);
    height: 100dvh;
    margin: 0;
    padding: 0 0 calc(var(--space-5) + env(safe-area-inset-bottom));
    flex-direction: column;
    background: var(--c-white);
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.18);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .primary-nav.is-open {
    display: flex;
    animation: rx-drawer-in 0.28s ease-out;
  }
  .primary-nav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 0 12px 0 24px;
    border-bottom: 1px solid var(--c-grey);
  }
  .primary-nav__title { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
  .nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--c-black);
    cursor: pointer;
  }
  .nav-menu { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--c-grey); }
  .nav-link {
    flex: 1 1 0;
    min-height: 56px;
    padding: 0.5rem 0 0.5rem 24px;
    font-size: 1.125rem;
    white-space: normal;
    overflow-wrap: break-word;
  }
  .nav-link::before { left: 6px; }
  .sub-toggle { width: 56px; min-height: 56px; }
  .nav-item.is-open > .sub-wrap { display: block; flex: 0 0 100%; }
  .sub-menu { padding: 0 0 0.5rem; }
  .sub-link { padding-left: 40px; white-space: normal; font-size: 1.0625rem; }
  .drawer-cta { display: block; padding: var(--space-4) 24px 0; }
  .drawer-cta .btn { width: 100%; white-space: normal; }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-header { z-index: 1000; }
  .nav-overlay:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 990;
    background: rgba(0, 0, 0, 0.45);
  }
}
@keyframes rx-drawer-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
@media (max-width: 599px) {
  :root { --header-h: 72px; --header-h-scrolled: 64px; }
  .brand__logo { height: 30px; }
  .brand__slogan { display: none; }
  .header-cta { padding: 8px 16px; min-height: 44px; font-size: 1.1875rem; }
  .header-cta .icon { display: none; }
  .cta-label-full { display: none; }
  .cta-label-short { display: inline; }
}
@media (max-width: 479px) {
  .header-cta { display: none; }
  .nav-toggle { margin-left: auto; }
}
@media (max-width: 1199px) {
  .brand__slogan { display: none; }
}

/* ==========================================================================
   5. Sections, headings, signature squares
   ========================================================================== */
.section { padding-block: var(--section-pad); }
.section--tight { padding-block: var(--space-6); }
.section--grey { background: var(--c-grey); }
.section--white { background: var(--c-white); }
.section--flush { padding-top: 0; }

.section-title {
  position: relative;
  min-height: var(--square);
  padding-left: calc(var(--square) + 20px);
  margin-bottom: var(--space-5);
  color: var(--c-black);
  font-size: calc(var(--step-d3) * 1.125); /* 30 > 54px, the client's measured H2 */
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: var(--square);
  height: var(--square);
  background: var(--c-red);
}
.section-title--black::before { background: var(--c-black); }
.section-title--small {
  --square: 45px;
  min-height: 45px;
  font-size: var(--step-2);
  padding-left: 62px;
  padding-top: 6px;
}
.section-title--on-dark { color: var(--c-white); margin-bottom: 0; }

.section-head { max-width: 900px; margin-bottom: var(--space-6); }
.lead { font-size: var(--step-0); max-width: 70ch; }
.lead--wide { max-width: 900px; margin-bottom: var(--space-5); }
.lead--strong { font-weight: 400; }
.text-block { max-width: 900px; }
.text-block p { max-width: 75ch; }

/* square-bullet list */
.sq-list { list-style: none; margin: var(--space-4) 0; padding: 0; }
.sq-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 0.6rem;
}
.sq-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  background: var(--c-red);
}

/* split text / media */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: var(--space-6);
  align-items: center;
}
.split > * { min-width: 0; max-width: 100%; }
.split--single { grid-template-columns: minmax(0, 1fr); }
.split--reverse .split__media { order: -1; }
.split__media { justify-self: center; margin: 0; }
.photo { margin: 0; }
.photo__img { width: auto; max-width: 100%; height: auto; }

/* product/logo mat */
.mat {
  position: relative;
  z-index: 0;
  isolation: isolate;
  display: inline-block;
  max-width: 100%;
  padding: 24px;
  background: var(--c-grey);
  box-shadow: var(--mat-shadow);
}
.mat::before {
  content: "";
  position: absolute;
  left: -22px;
  bottom: -22px;
  z-index: -1;
  width: var(--square);
  height: var(--square);
  background: var(--c-red);
}
.mat__img { width: auto; max-width: 100%; height: auto; margin-inline: auto; }
.mat--badge { padding: 28px 32px; }

/* ==========================================================================
   6. Hero (Home) and openers
   ========================================================================== */
.hero {
  position: relative;
  padding-bottom: var(--space-7);
}
.hero__sq {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: var(--square-panel);
  height: var(--square-panel);
  color: var(--c-red);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: stretch;
}
.hero__grid > * { min-width: 0; }
.hero__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 4vw, 64px) clamp(24px, 3.5vw, 56px) 45px 0;
  background: var(--c-grey);
  /* bleeds to the left screen edge without adding scroll width */
  box-shadow: 0 0 0 100vmax var(--c-grey);
  clip-path: inset(0 0 0 -100vmax);
}
.hero__label {
  margin-bottom: var(--space-3);
  color: var(--c-black);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1875rem;
}
.hero__title {
  color: var(--c-red);
  font-size: min(var(--step-d1), 4rem); /* tier minimum at 320, capped at the brand's 64px */
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
}
.hero__lead { max-width: 60ch; margin-bottom: var(--space-5); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); }
.hero__visual { display: flex; align-items: center; justify-content: center; padding-top: var(--space-5); }
.crossing { width: 100%; height: auto; max-height: 520px; }

.opener { position: relative; }
.opener__media {
  height: min(clamp(200px, 36vw, 520px), calc(100vw * var(--ratio, 1)));
  overflow: hidden;
  background: var(--c-grey);
}
.opener__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.opener__body { position: relative; z-index: 1; margin-top: -90px; }
.opener--plain .opener__body { margin-top: calc(var(--square-panel) + var(--space-4)); }
.opener__sq {
  position: absolute;
  left: 0;
  top: calc(-1 * var(--square-panel));
  width: var(--square-panel);
  height: var(--square-panel);
  color: var(--c-red);
}
.title-panel {
  position: relative;
  width: 75%;
  padding: 30px 40px 45px 0;
  background: var(--c-grey);
  box-shadow: 0 0 0 100vmax var(--c-grey);
  clip-path: inset(0 0 0 -100vmax);
}
.opener--mirror .opener__sq { left: auto; right: 0; }
.opener--mirror .title-panel {
  margin-left: auto;
  padding: 30px 0 45px 40px;
  clip-path: inset(0 -100vmax 0 0);
}
.page-title {
  margin-bottom: var(--space-2);
  color: var(--c-red);
  font-size: min(var(--step-d2), 4rem); /* 32 > 64px */
  line-height: 1;
  letter-spacing: -0.03em;
}
.page-subtitle {
  margin: 0;
  color: var(--c-red);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-sub);
  line-height: 1.25;
}

/* ==========================================================================
   7. Home blocks
   ========================================================================== */
.recognition {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin: 0 0 var(--space-7);
  padding: 0;
  list-style: none;
}
.recognition > * { min-width: 0; }
.recognition__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--c-white);
  box-shadow: var(--card-shadow);
  overflow-wrap: anywhere;
}
.recognition__card p { margin: 0; }
.recognition__logo { display: flex; align-items: center; height: 56px; }
.recognition__img { width: auto; height: auto; max-height: 56px; max-width: 220px; object-fit: contain; }

.logo-wall {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-5) var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.logo-wall > * { min-width: 0; max-width: 100%; }
.logo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
}
.logo-tile__img {
  width: 100%;
  height: 70px;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(1);
}
.logo-tile__name { font-weight: 700; text-align: center; overflow-wrap: anywhere; }
.logo-wall--archive { margin-top: var(--space-5); }

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}
.solution-grid > * { min-width: 0; }
.solution-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  background: var(--c-white);
  box-shadow: var(--card-shadow);
  overflow-wrap: anywhere;
}
.solution-card--featured::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 55px;
  height: 55px;
  background: var(--c-red);
}
.solution-card--featured { padding-top: calc(55px + var(--space-4)); }
.solution-card__name { font-size: var(--step-2); letter-spacing: -0.02em; margin-bottom: var(--space-1); }
.solution-card__sub { font-weight: 700; margin-bottom: var(--space-3); }
.solution-card__more { margin: auto 0 0; padding-top: var(--space-3); }
.sq-list--compact li { margin-bottom: 0.45rem; }

.pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5) var(--space-6);
  margin: var(--space-7) 0 0;
  padding: 0;
  list-style: none;
}
.pillars > * { min-width: 0; }
.pillar { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.pillar p { margin: 0; overflow-wrap: anywhere; }

.framed-icon {
  position: relative;
  z-index: 0;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 9px 0 0 9px;
  border: 3px solid var(--c-red);
  background: var(--c-white);
  color: var(--c-black);
}
.framed-icon::before {
  content: "";
  position: absolute;
  left: -12px;
  top: -12px;
  z-index: -1;
  width: 22px;
  height: 22px;
  background: var(--c-black);
}
.pillar .framed-icon { margin: 9px 0 0 9px; width: 55px; height: 55px; }

.arch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: var(--space-6);
  align-items: center;
}
.arch > * { min-width: 0; }
.option-list { list-style: none; margin: 0; padding: 0; }
.option-list li { padding: var(--space-3) 0; border-bottom: 1px solid var(--c-grey); }
.option-list li:first-child { border-top: 1px solid var(--c-grey); }
.arch__schema {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
}
.arch__schema > * { min-width: 0; }
.arch__sensor { position: relative; z-index: 1; }
.arch__sensor .mat { padding: 18px; }
.arch__lines { width: 100%; height: auto; margin-left: -2px; }
.mat__drawn { display: block; width: 100%; height: auto; }

/* comparison and data tables */
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.data-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: var(--step--1);
  line-height: 1.4;
}
.data-table th,
.data-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.data-table thead th {
  background: var(--c-black);
  color: var(--c-white);
  font-family: var(--font-body);
  font-weight: 700;
}
.data-table thead th.is-brand { background: var(--c-red); color: var(--c-black); }
.data-table tbody tr:nth-child(odd) { background: var(--c-white); }
.data-table tbody tr:nth-child(even) { background: var(--c-grey); }
.section--grey .data-table tbody tr:nth-child(odd) { background: var(--c-white); }
.section--grey .data-table tbody tr:nth-child(even) { background: var(--c-grey); }
.data-table tbody th { font-weight: 700; }
.data-table td.is-brand { font-weight: 700; }
.data-table--keyvalue { font-size: var(--step-0); }
.data-table--keyvalue th { width: 30%; }
.data-table--spec { min-width: 720px; }
.data-table--spec th:first-child { width: 24%; }
.data-table__section th {
  background: var(--c-red);
  color: var(--c-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem; /* white on red only at 24px+ (large text) */
}
.data-table--overview { min-width: 860px; }
.data-table--compare { min-width: 640px; }

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-7);
}
.case-grid > * { min-width: 0; }
.case-card {
  padding: var(--space-5);
  background: var(--c-white);
  box-shadow: var(--card-shadow);
  overflow-wrap: anywhere;
}
.case-card__title { font-size: var(--step-2); letter-spacing: -0.02em; }
.case-card p { margin: 0; }

.quote {
  position: relative;
  margin: var(--space-6) 0 var(--space-5) 37px;
  padding: 30px 80px;
  background: var(--c-black);
  color: var(--c-white);
}
.quote__sq {
  position: absolute;
  left: -37px;
  top: -37px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--square);
  height: var(--square);
  background: var(--c-red);
  color: var(--c-black);
}
.quote__text { margin: 0 0 var(--space-4); }
.quote__text p { margin: 0; font-weight: 300; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem); }
.quote__by { line-height: 1.3; }
.quote__name { color: var(--c-red); font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); }
.quote__role { color: var(--c-white); font-size: 1.125rem; }

.practice { max-width: 900px; }
.practice p { margin-bottom: var(--space-2); }

/* closing band: right aligned, as on the current site */
.closing__inner { max-width: 760px; margin-left: auto; }
.closing__lead { margin-bottom: var(--space-5); }
.closing__action { margin-bottom: var(--space-5); }
.closing__label { margin-bottom: var(--space-1); }
.contact-lines { list-style: none; margin: 0; padding: 0; }
.contact-lines li { display: flex; flex-wrap: wrap; align-items: center; min-height: 44px; gap: 0 0.3em; }
.contact-lines a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 400; }

/* ==========================================================================
   8. Technology and about blocks
   ========================================================================== */
.benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.benefits > * { min-width: 0; }
.benefit { overflow-wrap: anywhere; }
.benefit .framed-icon { margin-bottom: var(--space-4); }
.benefit__title { font-size: var(--step-2); letter-spacing: -0.02em; margin-bottom: var(--space-2); }
.benefit p { margin: 0; }

.components {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--space-6);
  margin: 0;
}
.components > * { min-width: 0; }
.component { padding: var(--space-4) 0; border-top: 1px solid var(--c-black); overflow-wrap: anywhere; }
.component dt { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); letter-spacing: -0.02em; margin-bottom: var(--space-1); }
.component dd { margin: 0; }

.tech-compare {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}
.tech-compare > * { min-width: 0; }
.tech-compare__item { padding: var(--space-5); background: var(--c-white); box-shadow: var(--card-shadow); overflow-wrap: anywhere; }
.tech-compare__item h3 { font-size: var(--step-2); letter-spacing: -0.02em; }
.tech-compare__item p { margin: 0; }

.band--red { background: var(--c-red); color: var(--c-black); }
.band--red .section-title { color: var(--c-black); }
.band--red :focus-visible { outline-color: var(--c-black); }
.link-secondary--on-red { color: var(--c-black); text-decoration: underline; text-decoration-color: var(--c-black); }
.link-secondary--on-red::after { background: var(--c-black); }
.link-secondary--on-red:hover,
.link-secondary--on-red:focus-visible { color: var(--c-black); }

.band--black { background: var(--c-black); color: var(--c-white); padding-block: var(--space-6); margin-bottom: var(--space-6); }
.band--black :focus-visible { outline-color: var(--c-white); }
.culture__title { font-size: var(--step-2); }

.stat-tiles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.stat-tiles > * { min-width: 0; }
.stat-tile {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-4);
  background: var(--c-grey);
  overflow-wrap: anywhere;
}
.stat-tile__num {
  color: var(--c-red);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem); /* red only at 32px+ */
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-tile__cap { color: var(--c-black); }

/* ==========================================================================
   9. Contact, forms
   ========================================================================== */
.form-card { max-width: 760px; }
.form-placeholder { padding: var(--space-5); background: var(--c-grey); }
.office__address { display: flex; flex-direction: column; margin-bottom: var(--space-5); }

.forminator-custom-form { font-family: var(--font-body); color: var(--ink); }
.forminator-custom-form .forminator-label,
.forminator-custom-form label { display: block; margin-bottom: 0.35rem; font-weight: 700; color: var(--ink); font-size: 1.0625rem; }
.forminator-custom-form input[type="text"],
.forminator-custom-form input[type="email"],
.forminator-custom-form input[type="tel"],
.forminator-custom-form input[type="url"],
.forminator-custom-form input[type="number"],
.forminator-custom-form textarea,
.forminator-custom-form select {
  width: 100%;
  min-height: 48px;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--c-black);
  border-radius: var(--radius);
  background: var(--c-white);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
}
.forminator-custom-form textarea { min-height: 160px; }
.forminator-custom-form input:focus,
.forminator-custom-form textarea:focus,
.forminator-custom-form select:focus {
  outline: none;
  border-color: var(--c-red);
  box-shadow: 0 0 0 3px rgba(229, 40, 55, 0.25);
}
.forminator-custom-form .forminator-row { margin-bottom: var(--space-4); }
.forminator-custom-form .forminator-button,
.forminator-custom-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 32px;
  border: 2px solid var(--c-red);
  border-radius: var(--pill);
  background-color: transparent;
  color: var(--c-red);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1875rem;
  cursor: pointer;
  transition: background-color 0.3s ease-out, color 0.3s ease-out, border-color 0.3s ease-out;
}
.forminator-custom-form .forminator-button:hover,
.forminator-custom-form .forminator-button:focus-visible,
.forminator-custom-form button[type="submit"]:hover,
.forminator-custom-form button[type="submit"]:focus-visible {
  background-color: var(--c-black);
  color: var(--c-white);
  border-color: var(--c-black);
}
.forminator-custom-form .forminator-error-message,
.forminator-custom-form .forminator-response-message { color: var(--c-black); font-weight: 700; }
.forminator-custom-form .forminator-error-message::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; background: var(--c-red); }

/* ==========================================================================
   10. Long-form prose (legal pages, editor content)
   ========================================================================== */
.prose--longform,
.prose-narrow {
  max-width: var(--measure);
  margin-inline: auto;
  text-align: left;
}
.prose h2 {
  margin-top: var(--space-6);
  font-size: var(--step-2);
  letter-spacing: -0.02em;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--space-5); font-size: var(--step-1); }
.prose h4, .prose h5, .prose h6 { margin-top: var(--space-4); font-family: var(--font-display); font-size: var(--step-0); }
.prose ul { list-style: none; padding: 0; }
.prose ul li { position: relative; padding-left: 26px; margin-bottom: 0.55rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 9px; height: 9px; background: var(--c-red); }
.prose ul ul { margin-top: 0.5rem; }
.prose ul ul li::before { background: transparent; box-shadow: inset 0 0 0 2px var(--c-red); }
.prose ol { padding-left: 1.5em; }
.prose ol li::marker { font-family: var(--font-display); font-weight: 700; color: var(--c-black); }
.prose ol ol { list-style: lower-alpha; }
.prose ol ol ol { list-style: lower-roman; }
.prose blockquote { margin: var(--space-5) 0; padding: var(--space-4) var(--space-5); background: var(--c-black); color: var(--c-white); }
.prose a { color: var(--c-black); text-decoration: underline; text-decoration-color: var(--c-red); }
.prose img { height: auto; }
.prose figure { margin: var(--space-5) 0; }
.prose figcaption { font-size: var(--step--1); margin-top: var(--space-1); }
.prose hr { border: 0; border-top: 1px solid var(--c-black); margin: var(--space-6) 0; }
.prose code { font-size: 0.9em; background: var(--c-grey); padding: 0.1em 0.3em; }
.prose table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: var(--step--1); }
.prose th, .prose td { padding: 0.6rem 0.8rem; border-bottom: 1px solid #D0D0D0; text-align: left; overflow-wrap: anywhere; }
.prose thead th { font-family: var(--font-display); border-bottom: 2px solid var(--c-black); }
.post-meta { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.post-meta__cat { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* post cards (fallback templates) */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.post-grid > * { min-width: 0; }
.post-card { position: relative; background: var(--c-white); box-shadow: var(--card-shadow); overflow-wrap: anywhere; }
.post-card__body { padding: var(--space-5); }
.post-card__img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card__title { font-size: var(--step-2); }
.post-card__title a { text-decoration: none; }
.stretched::after { content: ""; position: absolute; inset: 0; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 0.75rem; border: 2px solid var(--c-black); text-decoration: none; }
.pagination .page-numbers.current { background: var(--c-black); color: var(--c-white); }

/* framework hooks (cpt-*) styled to the palette */
.cpt-empty { padding: var(--space-5); background: var(--c-grey); }
.cpt-card__meta { list-style: none; margin: var(--space-2) 0 0; padding: 0; font-size: var(--step--1); }
.cpt-filters { margin-bottom: var(--space-5); }

/* ==========================================================================
   11. Footer
   ========================================================================== */
.site-footer {
  margin-top: 30px;
  background: var(--c-red);
  color: var(--c-black);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
}
.site-footer__grid > * { min-width: 0; }
.footer-black {
  position: relative;
  margin-top: -30px;
  padding: var(--space-6) var(--space-5) var(--space-6) 0;
  background: var(--c-black);
  color: var(--c-white);
  box-shadow: 0 0 0 100vmax var(--c-black);
  clip-path: inset(0 0 0 -100vmax);
}
.footer-brand { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: var(--space-5); }
.footer-brand__logo { height: 44px; width: auto; max-width: 100%; }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.footer-cols > * { min-width: 0; }
.footer-title {
  margin-bottom: var(--space-2);
  color: var(--c-red);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.footer-title--dark { color: var(--c-black); }
.footer-address { display: flex; flex-direction: column; }
.footer-address span { display: flex; align-items: center; min-height: 44px; }
.footer-links,
.footer-plain { list-style: none; margin: 0; padding: 0; }
.footer-plain li { display: flex; align-items: center; min-height: 44px; }
.footer-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--c-white);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.footer-links a:hover { text-decoration: underline; text-decoration-color: var(--c-red); color: var(--c-white); }
.footer-black :focus-visible { outline-color: var(--c-white); }
.footer-red {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6) 0 var(--space-6) var(--space-6);
}
.footer-links--dark a { color: var(--c-black); font-weight: 400; }
.footer-links--dark a:hover { color: var(--c-black); text-decoration-color: var(--c-black); }
.footer-copy { margin: 0; font-size: var(--step--1); }

/* ==========================================================================
   12. Entrance animations (ENGINE_C pattern, verbatim)
   ========================================================================== */
/* entrance-animations: .anim-in is visible by default; only JS may dim it */
.anim-in { opacity: 1; transform: none; }
.anim-pending {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .45s ease-out, transform .45s ease-out;
}
.anim-pending.anim-done { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .anim-pending { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   13. Responsive
   ========================================================================== */
@media (max-width: 1099px) {
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 959px) {
  .solution-grid,
  .tech-compare,
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .recognition { grid-template-columns: minmax(0, 1fr); }
  .logo-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .arch { grid-template-columns: minmax(0, 1fr); }
  .arch__schema { max-width: 560px; }
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .hero__visual { padding-top: 0; }
  .crossing { max-height: 260px; }
  .split,
  .split--reverse { grid-template-columns: minmax(0, 1fr); }
  .split--reverse .split__media { order: 0; }
  .split__media { justify-self: start; }
  .components { grid-template-columns: minmax(0, 1fr); }
  .case-grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .footer-black {
    margin-top: 0;
    padding: var(--space-6) 0;
    clip-path: inset(0 -100vmax);
  }
  .footer-red {
    padding: var(--space-6) 0;
    box-shadow: 0 0 0 100vmax var(--c-red);
    clip-path: inset(0 -100vmax);
  }
  .site-footer { margin-top: 0; }
  .title-panel { width: 100%; }
  .opener--mirror .title-panel { padding-right: 0; }
}
@media (max-width: 599px) {
  :root { --square: 45px; --square-panel: 48px; }
  .section-title { padding-left: 60px; min-height: 45px; }
  .section-title--small { padding-left: 58px; }
  .hero__panel { padding: 64px 0 30px; }
  .hero__sq { width: 48px; height: 48px; }
  .opener__body { margin-top: -40px; }
  .opener--plain .opener__body { margin-top: calc(var(--square-panel) + var(--space-3)); }
  .title-panel { padding: 24px 0 32px; }
  .opener--mirror .title-panel { padding: 24px 0 32px; }
  .logo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-3); }
  .logo-tile__img { max-width: 150px; }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .benefits { grid-template-columns: minmax(0, 1fr); }
  .stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .btn { padding: 11px 20px; white-space: normal; }
  .quote { margin-left: 22px; padding: 44px 24px 24px; }
  .quote__sq { left: -22px; top: -22px; width: 56px; height: 56px; }
  .quote__sq .icon { width: 26px; height: 26px; }
  .mat { padding: 16px; }
  .mat::before { left: -14px; bottom: -14px; width: 45px; height: 45px; }
  .recognition__card,
  .solution-card,
  .case-card,
  .tech-compare__item { padding: var(--space-4); }
  .solution-card--featured { padding-top: calc(45px + var(--space-3)); }
  .solution-card--featured::before { width: 45px; height: 45px; }
  .arch__schema { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  h1, h2, h3 { hyphens: auto; }
  .data-table--keyvalue,
  .data-table--keyvalue tbody,
  .data-table--keyvalue tr,
  .data-table--keyvalue th,
  .data-table--keyvalue td { display: block; width: 100%; }
  .data-table--keyvalue th { padding-bottom: 0.2rem; }
  .data-table--keyvalue td { padding-top: 0; }
}
@media (max-width: 379px) {
  .stat-tiles { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   14. Post-build afwerking (2026-11-02)
   Vanaf 1280px geen automatische afbreking in koppen: elk woord past in zijn
   vak (gemeten met de huisletter). Daarvoor krijgt de hero-tekstkolom meer
   breedte en staan de vier voordelen in twee kolommen, zoals op de huidige site.
   Onder 1280px blijft afbreken aan, omdat lange Nederlandse woorden daar niet passen.
   ========================================================================== */
@media (min-width: 1280px) {
  h1, h2, h3, .display { hyphens: manual; }
  .hero__grid { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 3rem; }
  .hero__panel { padding-right: 32px; }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
