:root{
  /* Colors */
  --canvas: #F5F7F8;
  --surface-1: #FFFFFF;
  --surface-2: #EEF2F4;
  --surface-hover: #E6ECEF;
  --border-subtle: #D7E0E5;
  --border-strong: #B9C7D0;

  --text-primary: #0F1417;
  --text-secondary: #33424A;
  --text-muted: #637680;

  --accent: #2F7EA6;
  --accent-hover: #276C8E;
  --accent-pressed: #205A76;
  --accent-subtle: rgba(47,126,166,0.12);
  --focus-ring: rgba(47,126,166,0.28);

  --signal-red: #F00000;
  --red-dark: #D60000;
  --red-fill: rgba(240,0,0,0.10);

  /* Radius */
  --r-btn: 10px;
  --r-card: 14px;
  --r-panel: 18px;

  /* Shadows */
  --shadow-1: 0 8px 24px rgba(15,20,23,0.08);
  --shadow-2: 0 18px 50px rgba(15,20,23,0.12);

  /* Layout */
  --max: 1120px;
  --pad: 16px;

  /* Type */
  --font-head: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;

  /* 8px grid */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 40px;
  --s-6: 48px;
  --s-7: 56px;
  --s-8: 64px;
  --s-9: 72px;
  --s-10: 80px;
  --s-12: 96px;
}

@media (min-width: 720px){
  :root{ --pad: 24px; }
}
@media (min-width: 1000px){
  :root{ --pad: 32px; }
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--canvas);
  font-size: 16px;
  line-height: 26px;
  font-weight: 450;
  font-variant-numeric: tabular-nums;
}

/* Prevent accidental horizontal scroll on small screens (e.g., long button rows / transforms) */
html, body{ overflow-x: hidden; }
@supports (overflow-x: clip){
  html, body{ overflow-x: clip; }
}

img{ max-width: 100%; height: auto; display: block; }
a{ color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover{ color: var(--accent-hover); }
a:active{ color: var(--accent-pressed); }

.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.skip-link{
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--surface-1);
  border: 1px solid var(--border-strong);
  padding: 10px 12px;
  border-radius: var(--r-btn);
  box-shadow: var(--shadow-1);
  z-index: 9999;
}
.skip-link:focus{
  left: 12px;
  outline: 3px solid var(--focus-ring);
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(15,20,23,0.06);
}

/* Accent line (gives the header more structure at a glance) */
.site-header::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, rgba(47,126,166,0.55), rgba(47,126,166,0.10) 55%, rgba(240,0,0,0.40));
  opacity: 0.85;
  pointer-events: none;
}

.site-header.is-scrolled{
  box-shadow: 0 10px 30px rgba(15,20,23,0.10);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  padding: 12px var(--pad);
}

.brand{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.brand__logo{
  width: auto;
  height: 34px;
  object-fit: contain;
  image-rendering: auto;
}

.nav{
  display: none;
  gap: 14px;
  align-items: center;
  flex: 1;
  justify-content: center;
  flex-wrap: nowrap;
  white-space: nowrap;

  /* Visual grouping (prevents the nav from looking like plain text links) */
  padding: 6px;
  border-radius: 999px;
  background: rgba(245,247,248,0.65);
  border: 1px solid rgba(15,20,23,0.06);
  box-shadow: 0 10px 24px rgba(15,20,23,0.06);
}
.nav__link{
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 9px 12px;
  border-radius: 999px;
}
.nav__link:hover{
  background: var(--surface-2);
  color: var(--text-primary);
}
.nav__link.is-active{
  background: var(--accent-subtle);
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px rgba(47,126,166,0.18);
}

.header-actions{
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Nav toggle: icon-only by default; label is enabled on small screens */
.nav-toggle__label{
  display: none;
}
.nav-toggle__icon{
  display: inline-grid;
}

/* Header CTA: keep it clean + readable (no gradient, no wrap) */
.site-header .btn--primary{
  background-image: none;
  background: var(--accent);
  border-color: rgba(15,20,23,0.10);
  white-space: nowrap;
}
.site-header .btn--primary:hover{
  background: var(--accent-hover);
  filter: none;
}


/* Desktop nav visibility guard (prevents wrap + prevents nav & burger showing simultaneously) */
@media (max-width: 1239px){
  .nav{ display: none !important; }
  .nav-toggle{ display: inline-flex !important; }
}
@media (min-width: 1240px){
  .nav{ display: flex !important; }
  .nav-toggle{ display: none !important; }
}


/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--r-btn);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  line-height: 22px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease, border-color 140ms ease, color 140ms ease;
  position: relative;
}

.btn:focus-visible{
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.btn--primary{
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-1);
}
.btn--primary:hover{
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.btn--primary:active{
  background: var(--accent-pressed);
  transform: translateY(0);
}

/* Gradient variant (used for the contact form primary action) */
.btn--primary.btn--gradient{
  background-image: linear-gradient(90deg, var(--accent), rgba(240,0,0,0.62));
  background-color: var(--accent);
  border-color: transparent;
}
.btn--primary.btn--gradient:hover{
  background-image: linear-gradient(90deg, var(--accent-hover), rgba(214,0,0,0.60));
  background-color: var(--accent-hover);
}
.btn--primary.btn--gradient:active{
  background-image: linear-gradient(90deg, var(--accent-pressed), rgba(214,0,0,0.66));
  background-color: var(--accent-pressed);
}


.btn--secondary{
  background: var(--surface-1);
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn--secondary:hover{
  background: var(--surface-2);
  transform: translateY(-1px);
}
.btn--secondary:active{
  background: var(--surface-hover);
  transform: translateY(0);
}

.btn--block{ width: 100%; }

.text-link{
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-link:hover{ color: var(--text-primary); }


/* Icon button */
.icon-btn{
  background: var(--surface-1);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 140ms ease, transform 140ms ease;
}
.icon-btn:hover{ background: var(--surface-2); transform: translateY(-1px); }
.icon-btn:active{ background: var(--surface-hover); transform: translateY(0); }
.icon-btn:focus-visible{ outline: 3px solid var(--focus-ring); outline-offset: 2px; }

.icon-btn__bar{
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  margin: 2px 0;
}

.icon-btn__x{
  width: 16px;
  height: 16px;
  position: relative;
}
.icon-btn__x::before,
.icon-btn__x::after{
  content:"";
  position:absolute;
  left: 7px;
  top: 1px;
  width: 2px;
  height: 14px;
  background: var(--text-primary);
  border-radius: 2px;
}
.icon-btn__x::before{ transform: rotate(45deg); }
.icon-btn__x::after{ transform: rotate(-45deg); }

/* Drawer */
.drawer[hidden]{ display: none; }
.drawer{
  position: fixed;
  inset: 0;
  z-index: 100;
}
.drawer__overlay{
  position: absolute;
  inset: 0;
  background: rgba(15,20,23,0.32);
}
.drawer__panel{
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(420px, 92vw);
  background: var(--surface-1);
  border-left: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-2);
  padding: var(--s-3);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding-bottom: calc(var(--s-3) + env(safe-area-inset-bottom));
  padding-top: calc(var(--s-3) + env(safe-area-inset-top));
  overflow: hidden;
}
.drawer__header{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: var(--s-2);
}
.drawer__title{
  font-family: var(--font-head);
  font-weight: 650;
  letter-spacing: -0.01em;
}
.drawer__content{
  display:flex;
  flex-direction: column;
  gap: 10px;
  padding-top: var(--s-2);
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.drawer__link{
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  padding: 14px 14px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  width: 100%;
  background: rgba(245,247,248,0.85);
  border: 1px solid rgba(15,20,23,0.10);
  box-shadow: 0 10px 22px rgba(15,20,23,0.05);
}
.drawer__link:hover{ background: var(--surface-2); box-shadow: 0 12px 26px rgba(15,20,23,0.07); }
.drawer__link.is-active{ background: var(--accent-subtle); box-shadow: inset 0 0 0 1px rgba(47,126,166,0.18); }
.drawer__cta{ margin-top: var(--s-2); }

/* Hero */
.hero{
  padding: var(--s-9) 0 var(--s-7);
  position: relative;
}
.hero--3d .hero-inner{
  display: grid;
  gap: var(--s-5);
  align-items: center;
}
@media (min-width: 960px){
  .hero--3d .hero-inner{
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-copy h1{
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 42px;
  line-height: 50px;
  margin: 0 0 var(--s-2);
}
@media (min-width: 960px){
  .hero-copy h1{ font-size: 52px; line-height: 60px; }
}
.lead{
  font-size: 18px;
  line-height: 30px;
  color: var(--text-primary);
  font-weight: 500;
  margin: 0 0 var(--s-3);
  max-width: 58ch;
}

.hero-actions{
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 12px;
}

.hero-visual{
  position: relative;
  min-height: 320px;
}
.hero-poster,
.hero-canvas{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, #F5F7F8, #EAF0F3);
  box-shadow: var(--shadow-1);
  object-fit: cover;
}
.hero-canvas{ display: none; }

/*
  Headline color gradient (keeps contrast).
  NOTE: The previous hero overlay faded the entire section and reduced text readability.
*/
.hero-copy h1,
.section-head h2,
.split h2{
  background-image: linear-gradient(
    90deg,
    var(--text-primary) 0%,
    var(--text-primary) 55%,
    var(--accent) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Ensure nested spans don't override the gradient */
.hero-copy h1 *,
.section-head h2 *,
.split h2 *{
  color: inherit;
  -webkit-text-fill-color: inherit;
}

/* Fallback (older browsers) */
@supports not ((-webkit-background-clip: text) or (background-clip: text)){
  .hero-copy h1,
  .section-head h2,
  .split h2{
    color: var(--text-primary);
    background: none;
    -webkit-text-fill-color: initial;
  }
}

/* Move the subtle wash effect to the visual only (so text stays crisp) */
.hero-visual::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius: 18px;
  pointer-events:none;
  /* Depth without bleaching the poster / logo */
  background:
    radial-gradient(560px 380px at 10% 12%, rgba(47,126,166,0.10), rgba(255,255,255,0) 62%),
    radial-gradient(640px 420px at 92% 92%, rgba(240,0,0,0.06), rgba(255,255,255,0) 58%);
  z-index: 2;
}

.hero-visual::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius: 18px;
  pointer-events:none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  opacity: 0.025;
  mix-blend-mode: normal;
  z-index: 3;
}

/* Simple hero variant */
.hero-inner--split{
  display: grid;
  gap: var(--s-5);
  align-items: center;
}
@media (min-width: 960px){
  .hero-inner--split{ grid-template-columns: 1.05fr 0.95fr; }
}
.hero-media .media-plate{
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--shadow-1);
}
.hero-media img{ border-radius: 12px; object-fit: cover; }
.hero-media img.hero-logo{ object-fit: contain; }

/* Sections */
.section{
  padding: var(--s-10) 0;
}
.section--tight{ padding-top: 0; }
.section--alt{
  background: var(--surface-2);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section--ops{
  background:
    radial-gradient(900px 520px at 12% 0%, rgba(47,126,166,0.10), rgba(255,255,255,0) 62%),
    radial-gradient(900px 560px at 92% 105%, rgba(214,0,0,0.06), rgba(255,255,255,0) 58%),
    linear-gradient(180deg, var(--surface-2), var(--surface-1));
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

#operatives-system .section-head{
  max-width: 780px;
}


.section-head{
  margin-bottom: var(--s-5);
}
.section-head h2{
  margin: 0 0 var(--s-2);
  font-family: var(--font-head);
  font-weight: 650;
  letter-spacing: -0.015em;
  font-size: 34px;
  line-height: 42px;
}
@media (min-width: 960px){
  .section-head h2{ font-size: 40px; line-height: 48px; }
}
.section-head p{ margin: 0; }

.proof{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
@media (min-width: 720px){
  .proof{ grid-template-columns: repeat(3, 1fr); }
}
.proof li{
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-card);
  padding: 12px 14px;
  box-shadow: 0 1px 0 rgba(15,20,23,0.02);
  position: relative;
}
.proof li::before{
  content:"";
  position:absolute;
  left: 14px;
  top: 12px;
  width: 26px;
  height: 2px;
  background: var(--signal-red);
  transform: skew(-12deg);
  opacity: 0.65;
}
.proof li{ padding-top: 22px; }

.grid{
  display: grid;
  gap: var(--s-3);
}
.grid--3{
  grid-template-columns: 1fr;
}
@media (min-width: 960px){
  .grid--3{
    grid-template-columns: repeat(3, minmax(0, 340px));
    justify-content: center;
  }
}
.grid--2{
  grid-template-columns: 1fr;
}
@media (min-width: 960px){
  .grid--2{ grid-template-columns: repeat(2, 1fr); }
}

.card{
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-card);
  box-shadow: 0 1px 0 rgba(15,20,23,0.02);
  padding: var(--s-3);
  transition: box-shadow 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.card:hover{
  border-color: var(--border-strong);
  box-shadow: var(--shadow-1);
  transform: translateY(-1px);
}
.card h3{
  margin: 0 0 var(--s-1);
  font-family: var(--font-head);
  font-weight: 650;
  font-size: 22px;
  line-height: 30px;
}
.card p{ margin: 0; color: var(--text-secondary); }

.logo-plate{
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-2);
  width: 100%;
}

.logo-plate img{
  display: block;
  height: 58px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.logo-plate--aqua .logo-aqua{
  filter: none;
  box-shadow: none;
  border-radius: 0;
}


.brand-card__top{ margin-bottom: var(--s-1); }
.card-actions{
  margin-top: var(--s-3);
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 12px;
  align-items: center;
}

.muted{ color: #42555F; }
.small{ font-size: 14px; line-height: 22px; }
.note{
  color: var(--text-secondary);
  background: rgba(47,126,166,0.08);
  border: 1px solid rgba(47,126,166,0.18);
  padding: 12px 14px;
  border-radius: 14px;
  margin-top: var(--s-3);
}

.bullets{
  margin: var(--s-2) 0 0;
  padding-left: 18px;
  color: var(--text-secondary);
}
.bullets li{ margin: 6px 0; }

.split{
  display: grid;
  gap: var(--s-4);
  align-items: start;
}
@media (min-width: 960px){
  .split{ grid-template-columns: 1fr 1fr; }
}

.panel{
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-1);
  padding: var(--s-3);
}
.panel--image{ padding: 0; overflow: hidden; }
.panel--spaced{ margin-bottom: var(--s-3); }
.panel-media img{ width: 100%; height: 100%; object-fit: cover; }

.section-actions{
  margin-top: var(--s-3);
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 12px;
  align-items: center;
}

.section-gap{ margin-top: var(--s-5); }

.steps{
  display: grid;
  gap: var(--s-3);
}
@media (min-width: 960px){
  .steps{ grid-template-columns: repeat(3, 1fr); }
}
.step-num{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-subtle);
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: var(--s-2);
}

/* Process steps (clean cards instead of plain... */
.step-card{
  padding: var(--s-4);
  position: relative;
  overflow: hidden;
}
.step-card::before{
  content:"";
  position:absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(240,0,0,0.65), rgba(47,126,166,0.55));
  opacity: 0.85;
}
.step-card p{ max-width: 46ch; }

/* Operatives System */
.os-grid{ margin-top: var(--s-4); }
.os-card{
  padding: var(--s-4);
  position: relative;
  overflow: hidden;
}
.os-card::before{
  content:"";
  position:absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(47,126,166,0.70), rgba(240,0,0,0.35));
  opacity: 0.75;
}

.cta-band{
  margin-top: var(--s-6);
  display: flex;
  gap: var(--s-3);
  align-items: center;
  justify-content: space-between;
  padding: var(--s-3);
  border-radius: var(--r-panel);
  border: 1px solid var(--border-subtle);
  background: var(--surface-1);
  box-shadow: var(--shadow-1);
  flex-wrap: nowrap;
  white-space: nowrap;
}
.cta-band--subtle{
  background: var(--surface-2);
}
.cta-band__copy h3{
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-weight: 650;
}
.cta-band__copy p{ margin: 0; }
.cta-band__actions{ display: flex; gap: 12px; }

.cta-final{
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-1);
  padding: var(--s-5);
}
.cta-final h2, .cta-final h1{
  margin: 0 0 var(--s-2);
  font-family: var(--font-head);
  font-weight: 650;
  letter-spacing: -0.015em;
}
.cta-final p{ margin: 0 0 var(--s-3); color: var(--text-secondary); }

/* FAQ */
.faq{ display: grid; gap: 12px; margin-top: var(--s-2); }
.faq-item{
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px 14px;
}
.faq-item summary{
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  list-style: none;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item p{ margin: 10px 0 0; color: var(--text-secondary); }

/* Forms */
.form-wrap{
  display: grid;
  gap: var(--s-3);
}
@media (min-width: 960px){
  .form-wrap{ grid-template-columns: 1.2fr 0.8fr; align-items: start; }
}
.form-card{ padding: var(--s-4); }
.form-card{
  position: relative;
  overflow: hidden;
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-1);
}
.form-card.card:hover{
  transform: none;
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-1);
}
.form-card::before{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--signal-red));
}
.form-grid{
  display: grid;
  gap: var(--s-3);
}
@media (min-width: 860px){
  .form-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}
.field{ display: grid; gap: 8px; }
.field--full{ grid-column: 1 / -1; }
.field label{
  font-weight: 600;
  color: var(--text-primary);
}
input, select, textarea{
  font: inherit;
  padding: 12px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-btn);
  background: var(--surface-1);
  color: var(--text-primary);
}
textarea{ resize: vertical; min-height: 160px; }
input:focus, select:focus, textarea:focus{
  outline: 3px solid var(--focus-ring);
  border-color: var(--border-strong);
}
.help{ margin: 0; }
.field--checkbox{ align-self: end; }
.check{
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--surface-2);
}
.check input{ width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }

/* Brand choices (checkbox grid) */
.fieldset{ border: 0; padding: 0; margin: 0; min-width: 0; }
.fieldset legend{
  font-weight: 600;
  color: var(--text-primary);
  padding: 0;
  margin-bottom: 8px;
}
.choice-grid{ display: grid; gap: 10px; }
@media (min-width: 720px){
  .choice-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.choice{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--surface-1);
  cursor: pointer;
}
.choice:hover{ background: var(--surface-2); }
.choice input{ width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.choice span{ color: var(--text-primary); font-weight: 500; }
.choice input:checked + span{ font-weight: 650; }

.field.is-error input,
.field.is-error select,
.field.is-error textarea{
  border-color: var(--red-dark);
  outline-color: rgba(214,0,0,0.28);
}
.field.is-error .choice{
  border-color: rgba(214,0,0,0.55);
  background: rgba(240,0,0,0.04);
}
.field.is-error legend{ color: var(--red-dark); }

.form-actions{ margin-top: var(--s-3); display: grid; gap: 12px; }
@media (min-width: 720px){
  .form-actions{
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 16px;
  }
  .form-actions p{ margin: 0; }
}
.msg{ margin: 12px 0 0; }
.msg--success{
  border: 1px solid rgba(47,126,166,0.24);
  background: rgba(47,126,166,0.10);
  padding: 10px 12px;
  border-radius: 14px;
}
.msg--error{
  border: 1px solid rgba(214,0,0,0.22);
  background: rgba(240,0,0,0.08);
  padding: 10px 12px;
  border-radius: 14px;
}

.direct-contact{ padding: var(--s-4); }
.direct-contact h2{
  margin: 0 0 var(--s-2);
  font-family: var(--font-head);
  font-weight: 650;
}

/* Footer */

.site-footer{
  position: relative;
  padding: var(--s-8) 0 var(--s-4);
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-1);
}
.site-footer::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height: 2px;
  background: linear-gradient(90deg, rgba(47,126,166,0.55), rgba(214,0,0,0.35));
  opacity: 0.85;
}

.footer-grid{
  display: grid;
  gap: var(--s-4);
}
@media (min-width: 960px){
  .footer-grid{ grid-template-columns: 1.4fr 1fr 1fr; }
}

.footer-title{
  margin: 0 0 var(--s-2);
  font-family: var(--font-head);
  font-weight: 650;
  letter-spacing: -0.01em;
  font-size: 16px;
  line-height: 22px;
  color: var(--text-primary);
}

.footer-tiles{
  display: grid;
  gap: 10px;
}

.footer-tile{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-card);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, #FFFFFF, #F5F7F8);
  box-shadow: 0 1px 0 rgba(15,20,23,0.02);
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, filter 160ms ease;
}
.footer-tile:hover{
  border-color: var(--border-strong);
  box-shadow: var(--shadow-1);
  transform: translateY(-1px);
  filter: saturate(1.02);
}
.footer-tile:focus-visible{
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.footer-tile__stack{
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.footer-tile__title{
  font-family: var(--font-head);
  font-weight: 650;
  font-size: 15px;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.footer-tile__meta{
  font-size: 13px;
  line-height: 18px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer-tile__icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(15,20,23,0.03);
  color: var(--text-secondary);
  flex: 0 0 auto;
}
.footer-tile__icon img{
  width: 16px;
  height: 16px;
  opacity: 0.75;
}


.footer-bottom{
  margin-top: var(--s-6);
  padding-top: var(--s-3);
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 14px;
  line-height: 22px;
}


/* Prose */
.prose h1{
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 40px;
  line-height: 48px;
  margin: 0 0 var(--s-3);
}
.prose h2{
  font-family: var(--font-head);
  font-weight: 650;
  margin: var(--s-4) 0 var(--s-2);
}
.prose p{ color: var(--text-secondary); }
.prose ul{ color: var(--text-secondary); }

/* Facts list */
.facts{
  list-style:none;
  padding:0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.facts li{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
}
.facts li span:first-child{ color: var(--text-muted); }

/* Brand motifs (subtle only, never behind text) */
.brand-motif{ position: relative; overflow: hidden; }
.brand-motif::before{
  content:"";
  position:absolute;
  inset: 0;
  pointer-events:none;
  opacity: 0.03;
  background-repeat: no-repeat;
  background-position: 92% 18%;
  background-size: 520px 520px;
  /* keep motifs away from primary text columns */
  clip-path: polygon(58% 0, 100% 0, 100% 100%, 46% 100%);
}
.brand-motif--aqua::before{
background-image:
  linear-gradient(90deg, rgba(15,20,23,0.03) 0%, rgba(15,20,23,0.00) 55%, rgba(var(--bg-grid-rgb),0.10) 100%),
  linear-gradient(to right, rgba(var(--bg-grid-rgb), var(--bg-grid-alpha-minor)) 1px, transparent 1px),
  linear-gradient(to bottom, rgba(var(--bg-grid-rgb), var(--bg-grid-alpha-minor)) 1px, transparent 1px),
  linear-gradient(to right, rgba(var(--bg-grid-rgb), var(--bg-grid-alpha-major)) 1px, transparent 1px),
  linear-gradient(to bottom, rgba(var(--bg-grid-rgb), var(--bg-grid-alpha-major)) 1px, transparent 1px),
  radial-gradient(1000px 700px at 40% 25%, rgba(var(--bg-grid-rgb), 0.14), transparent 60%),
  radial-gradient(900px 720px at 70% 70%, rgba(240, 0, 0, 0.06), transparent 65%);
background-size:
  auto,
  var(--bg-grid-minor) var(--bg-grid-minor),
  var(--bg-grid-minor) var(--bg-grid-minor),
  var(--bg-grid-major) var(--bg-grid-major),
  var(--bg-grid-major) var(--bg-grid-major),
  auto,
  auto;
  background-position: center, 0 0, 0 0, 0 0, 0 0, center, center;
  transform-origin:
    var(--bg-grid-minor) var(--bg-grid-minor),
    var(--bg-grid-minor) var(--bg-grid-minor),
    var(--bg-grid-major) var(--bg-grid-major),
    var(--bg-grid-major) var(--bg-grid-major),
    auto,
    auto;
  background-position: center, 0 0, 0 0, 0 0, 0 0, center, center;

  transform-origin: 50% 40%;
  transform: perspective(950px) rotateX(var(--bg-grid-tilt)) rotateZ(var(--bg-grid-rotate)) translate3d(0, 8%, 0) scale(1.16);
  filter: blur(0.2px);
  will-change: transform, background-position;

  /* Fade edges so it stays clean behind content */
  -webkit-mask-image: radial-gradient(circle at 50% 35%, rgba(0,0,0,0.90) 0%, rgba(0,0,0,0.70) 45%, rgba(0,0,0,0.0) 76%);
          mask-image: radial-gradient(circle at 50% 35%, rgba(0,0,0,0.90) 0%, rgba(0,0,0,0.70) 45%, rgba(0,0,0,0.0) 76%);

  animation: bg-grid-drift var(--bg-grid-drift) ease-in-out infinite;
}


/* 3D grid overlay (subtle, B2B-safe) */

/* ============================================================
   Global background: subtle 3D grid + brand gradient (CTA-safe)
   - Grid look similar to clean blueprint paper (minor + major lines)
   - Brand-tinted wash matches headline accent
   - Animation is slow and non-distracting
   - Does NOT affect UI elements (background sits behind content)
   ============================================================ */

/* Ensure the page has a consistent canvas color */
body{
  background: var(--canvas);
  position: relative;
  isolation: isolate; /* prevents blend/compositing surprises */
}

/* Background layer lives behind everything */
.site-bg{
  position: fixed;
  inset: 0;
  /* Keep the grid strictly behind UI layers (incl. sticky header & overlays). */
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: var(--canvas);
}


/* Tuneables */
:root{
  --bg-grid-minor: 26px;     /* small grid cell */
  --bg-grid-major: 130px;    /* major grid step */
  --bg-grid-opacity: 0.22;   /* overall grid visibility */
  --bg-grid-tilt: 58deg;     /* 3D perspective tilt */
  --bg-grid-rotate: -8deg;   /* slight rotation for dynamism */
  --bg-grid-drift: 34s;      /* animation duration (slow) */

  /* Mouse parallax (JS updates these; defaults keep it still) */
  --bg-tilt-x: 0deg;
  --bg-tilt-y: 0deg;

  /* Noise */
  --bg-noise-opacity: 0.035;
}

/* Grid itself */
.site-bg .bg-grid{
  position: absolute;
  inset: -25%;
  transform-origin: 50% 0%;
  opacity: var(--bg-grid-opacity);
  pointer-events: none;

  background-image:
    /* Brand wash (headline-like) */
    radial-gradient(1200px 820px at 72% 12%, rgba(47,126,166,0.20), transparent 60%),
    radial-gradient(960px 700px at 28% 72%, rgba(47,126,166,0.10), transparent 65%),

    /* Minor grid (like your reference image) */
    repeating-linear-gradient(to right, rgba(15,20,23,0.10) 0 1px, transparent 1px var(--bg-grid-minor)),
    repeating-linear-gradient(to bottom, rgba(15,20,23,0.10) 0 1px, transparent 1px var(--bg-grid-minor)),

    /* Major grid (slightly stronger) */
    repeating-linear-gradient(to right, rgba(15,20,23,0.16) 0 1px, transparent 1px var(--bg-grid-major)),
    repeating-linear-gradient(to bottom, rgba(15,20,23,0.16) 0 1px, transparent 1px var(--bg-grid-major));

  /* Fade out at edges to preserve readability */
  -webkit-mask-image: radial-gradient(circle at 50% 18%, rgba(0,0,0,0.86) 0%, rgba(0,0,0,0.60) 55%, rgba(0,0,0,0.0) 78%);
          mask-image: radial-gradient(circle at 50% 18%, rgba(0,0,0,0.86) 0%, rgba(0,0,0,0.60) 55%, rgba(0,0,0,0.0) 78%);

  transform:
    perspective(1000px)
    rotateX(calc(var(--bg-grid-tilt) + var(--bg-tilt-x)))
    rotateY(var(--bg-tilt-y))
    rotateZ(var(--bg-grid-rotate))
    translate3d(0, 10%, 0)
    scale(1.12);

  animation: bg-grid-float var(--bg-grid-drift) ease-in-out infinite;
}

/* Subtle noise (prevents banding; makes it feel more “physical”) */
.site-bg::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  background-size: 320px 320px;
  background-repeat: repeat;
  opacity: var(--bg-noise-opacity);
}

/* Slow movement: grid drifts; micro tilt keeps it alive */
@keyframes bg-grid-float{
  0%{
    background-position: center, center, 0 0, 0 0, 0 0, 0 0;
    transform:
      perspective(1000px)
      rotateX(calc(var(--bg-grid-tilt) + var(--bg-tilt-x)))
      rotateY(var(--bg-tilt-y))
      rotateZ(var(--bg-grid-rotate))
      translate3d(-1%, 10%, 0)
      scale(1.12);
  }
  50%{
    background-position: center, center, 120px 80px, 80px 120px, 240px 160px, 160px 240px;
    transform:
      perspective(1000px)
      rotateX(calc(var(--bg-grid-tilt) + var(--bg-tilt-x) - 1deg))
      rotateY(calc(var(--bg-tilt-y) + 0.35deg))
      rotateZ(calc(var(--bg-grid-rotate) + 0.8deg))
      translate3d(1%, 9%, 0)
      scale(1.14);
  }
  100%{
    background-position: center, center, 0 0, 0 0, 0 0, 0 0;
    transform:
      perspective(1000px)
      rotateX(calc(var(--bg-grid-tilt) + var(--bg-tilt-x)))
      rotateY(var(--bg-tilt-y))
      rotateZ(var(--bg-grid-rotate))
      translate3d(-1%, 10%, 0)
      scale(1.12);
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .site-bg .bg-grid{ animation: none; }
}

/* UI should not “inherit” the grid look through transparency */
.site-header{
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
}
.site-header.is-scrolled{
  background: rgba(255,255,255,0.98);
}


/* ============================================================
   Mobile optimization
   - Only affects small screens; desktop layout remains unchanged
   ============================================================ */

@media (max-width: 720px){
  /* Reduce vertical whitespace so pages feel snappy on phones */
  .hero{ padding: var(--s-7) 0 var(--s-6); }
  .section{ padding: var(--s-8) 0; }
  .cta-final{ padding: var(--s-4); }

  /* Prevent horizontal overflow caused by non-wrapping action rows */
  .hero-actions,
  .card-actions,
  .section-actions{
    flex-wrap: wrap;
    white-space: normal;
  }

  /* CTA band should stack gracefully */
  .cta-band{
    flex-wrap: wrap;
    white-space: normal;
    gap: var(--s-2);
  }
  .cta-band__actions{ flex-wrap: wrap; }

  /* Keep the hero visual from dominating the viewport */
  .hero-visual{ min-height: 260px; }

  /* Mobile menu button shows a label */
  .nav-toggle{
    width: auto;
    height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
  }
  .nav-toggle__label{
    display: inline;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: -0.01em;
  }
  .nav-toggle__icon{
    display: inline-grid;
    gap: 2px;
  }

  /* Type scale for smaller screens */
  .hero-copy h1{ font-size: 38px; line-height: 46px; }
  .lead{ font-size: 16px; line-height: 28px; }
  .section-head h2{ font-size: 32px; line-height: 40px; }
  .prose h1{ font-size: 34px; line-height: 42px; }
}

@media (max-width: 560px){
  /* Header: keep logo + CTA + menu on a single line */
  .header-inner{
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .brand{ grid-column: 1; }
  .brand__logo{ height: 30px; max-width: 140px; }
  .header-actions{
    grid-column: 3;
    width: auto;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: nowrap;
  }
  .site-header .btn--primary{
    padding: 9px 12px;
    font-size: 13px;
  }

  .drawer__panel{
    width: 100vw;
    max-width: none;
    border-left: none;
    border-radius: 0;
  }

}

@media (max-width: 480px){
  /* Tighter rhythm on very small devices */
  .hero{ padding: var(--s-6) 0 var(--s-5); }
  .section{ padding: var(--s-7) 0; }
  .cta-final{ padding: var(--s-3); }

  .hero-copy h1{ font-size: 34px; line-height: 40px; }
  .section-head h2{ font-size: 28px; line-height: 36px; }
  .prose h1{ font-size: 30px; line-height: 36px; }

  /* Stack primary actions full-width where it matters */
  .hero-actions .btn,
  .section-actions .btn,
  .cta-band__actions .btn{
    width: 100%;
    justify-content: center;
  }
  .cta-band{
    flex-direction: column;
    align-items: stretch;
  }
  .cta-band__actions{
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
}



