/*
Theme Name: demosentech73f84
Theme URI: https://sentech.nl
Description: Op maat gebouwd klassiek PHP-thema voor Sentech, sensor integrator en R&D-partner. Layout in PHP, content in SCF.
Author: BlueCT Site Factory
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: demosentech73f84
*/

/*
Concept: "Signal & precision" B2B sensortech. Deep ink-navy canvas with an
electric teal signal accent; a technical grotesk display (Space Grotesk) over a
clean geometric body (Montserrat, client-chosen). Hairline rules, sharp small
radii, oversized index numerals and a thin animated link underline as the
signature details. Restrained, engineered, high-trust.
*/

/* ============================================================= TOKENS */
:root {
  /* palette */
  --ink: #0e1f2a;            /* primary text on light */
  --ink-soft: #35505d;       /* secondary text */
  --white: #ffffff;
  --cream: #f6f9fa;          /* page base */
  --surface: #eef3f5;        /* tinted section */
  --line: #d5e0e4;           /* hairlines */
  --navy: #0b1b24;           /* dark band */
  --navy-soft: #12303d;

  --accent: #0da3b8;         /* bright teal: fills / borders / icons (>=3:1) */
  --accent-text: #0a5a66;    /* darkened teal: small text on light (>=4.5:1) */
  --accent-fill-strong: #0a5a66; /* teal fill that carries white text >=4.5:1 */

  /* button tokens */
  --btn-fill: #0e1f2a;
  --btn-fill-hover: #0a5a66;
  --btn-label: #ffffff;

  /* fonts */
  --font-display: "Space Grotesk", "Montserrat", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* fluid type scale */
  --step--1: clamp(0.82rem, 0.78rem + 0.2vw, 0.9rem);
  --step-0:  clamp(1.0625rem, 1rem + 0.25vw, 1.125rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --step-2:  clamp(1.45rem, 1.3rem + 0.8vw, 1.85rem);
  --step-3:  clamp(1.7rem, 1.45rem + 1.3vw, 2.4rem);
  --step-4:  clamp(2rem, 1.6rem + 2vw, 3.2rem);
  --step-5:  clamp(2.15rem, 1.6rem + 3vw, 4.25rem);

  /* spacing */
  --space-1: .5rem;
  --space-2: .75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: 7rem;

  --radius: 8px;
  --radius-lg: 14px;
  --container: 1280px;
  --measure: 760px;
  --header-h: 76px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ============================================================= RESET */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100%; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
/* keep inline icons on the same line as their text */
a > svg, button > svg, p svg, li > a svg, span > svg {
  display: inline-block; vertical-align: middle;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 .6em;
  color: var(--ink);
  overflow-wrap: anywhere;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
p { margin: 0 0 1rem; }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 2px; }
ul, ol { margin: 0 0 1rem; padding-left: 1.15rem; }
::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ============================================================= LAYOUT */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2rem);
}
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--tint { background: var(--surface); }
.section--dark { background: var(--navy); color: #dfeaee; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section__head { max-width: 62ch; margin-bottom: var(--space-6); }
.section--center .section__head { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--accent); display: inline-block;
}
.section--dark .eyebrow { color: #6fd7e4; }
.section--dark .eyebrow::before { background: #6fd7e4; }

.lead { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.55; }
.section--dark .lead { color: #b7cdd4; }

/* long-form reading measure: centered column, left-aligned text */
.prose--longform {
  max-width: var(--measure);
  margin-inline: auto;
  text-align: left;
}
.prose--longform > * { overflow-wrap: anywhere; }

/* ============================================================= BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-0);
  line-height: 1;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .2s var(--ease), border-color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--btn-fill); color: var(--btn-label); }
.btn--primary:hover { background: var(--btn-fill-hover); color: #fff; }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--surface); color: var(--ink); }
.btn svg { width: 20px; height: 20px; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.microcopy { font-size: var(--step--1); color: var(--ink-soft); margin: 0; }
.section--dark .microcopy { color: #9fb8c0; }

/* text/arrow link */
.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-display); font-weight: 600;
  color: var(--accent-text); text-decoration: none;
}
.link-arrow::after {
  content: ""; width: 1.4em; height: 2px; background: currentColor;
  transition: width .25s var(--ease); display: inline-block;
}
.link-arrow:hover::after { width: 2.2em; }

/* animated underline for inline body links */
.prose a { color: var(--accent-text); }

/* ============================================================= SKIP LINK */
.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 2000;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 6px;
  transition: top .2s var(--ease); text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ============================================================= HEADER */
.site-header {
  position: sticky; top: 0; z-index: 990;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand__logo { height: clamp(34px, 4vw, 46px); width: auto; max-width: 220px; object-fit: contain; }
.brand__wordmark {
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  letter-spacing: -0.02em; color: var(--ink); line-height: 1;
}
.brand__wordmark .dot { color: var(--accent); }
.brand__slogan { display: block; font-size: .72rem; letter-spacing: .04em; color: var(--ink-soft); font-family: var(--font-body); font-weight: 500; margin-top: 2px; }

.header-nav { display: flex; align-items: center; gap: var(--space-5); }
.primary-nav .nav-menu {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem);
}
.primary-nav .nav-menu a:not(.btn) {
  font-family: var(--font-display); font-weight: 500;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  position: relative; padding: .4rem 0;
}
.primary-nav .nav-menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--accent); transition: width .28s var(--ease);
}
.primary-nav .nav-menu a:not(.btn):hover::after,
.primary-nav .nav-menu .current-menu-item > a::after,
.primary-nav .nav-menu a[aria-current="page"]::after { width: 100%; }

/* flyout (dropdown) */
.has-flyout { position: relative; }
.submenu-wrap {
  position: absolute; left: 0; top: 100%; padding-top: .6rem;
  min-width: 240px; display: none; z-index: 50;
}
.has-flyout.is-open > .submenu-wrap { display: block; }
.submenu {
  list-style: none; margin: 0; padding: .5rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 40px -20px rgba(14,31,42,.4);
}
.submenu a { display: block; padding: .6rem .8rem; border-radius: 6px; text-decoration: none; color: var(--ink); }
.submenu a:hover { background: var(--surface); }
.flyout-toggle { display: none; }

.header-cta { display: inline-flex; }
.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--ink);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(4px); }
.drawer-close { display: none; }
.nav-overlay { display: none; }

/* ============================================================= HERO */
.hero { position: relative; overflow: hidden; }
.hero--image { color: #fff; background: var(--navy); }
.hero--image .hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero--image .hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero--image .hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(11,27,36,.94) 0%, rgba(11,27,36,.78) 45%, rgba(11,27,36,.35) 100%);
}
.hero__inner { position: relative; z-index: 2; padding-block: clamp(3.5rem, 8vw, 6.5rem); min-height: 70vh; display: flex; flex-direction: column; justify-content: center; }
.hero__grid { display: grid; gap: var(--space-6); grid-template-columns: minmax(0, 1fr); max-width: 60ch; }
.hero h1 { color: #fff; }
.hero--image .eyebrow { color: #7fe0ec; }
.hero--image .eyebrow::before { background: #7fe0ec; }
.hero__intro { font-size: var(--step-1); color: #cfe0e6; line-height: 1.55; margin-bottom: var(--space-2); }
.hero .btn-row { margin-top: var(--space-4); }
.hero .microcopy { color: #a9c4cd; }

.hero__usps { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.hero__usps li { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; color: #e6f1f4; }
.hero__usps svg { width: 20px; height: 20px; color: #6fd7e4; flex: none; }

/* outline button legibility on the dark image hero */
.hero--image .btn--outline { color: #fff; border-color: rgba(255,255,255,.55); }
.hero--image .btn--outline:hover { background: #fff; color: var(--ink); }

.area-chip {
  display: inline-flex; align-items: flex-start; gap: .5rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #e6f1f4; padding: .5rem .85rem; border-radius: 999px;
  font-size: var(--step--1); white-space: normal; max-width: 100%;
}
.area-chip svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: #7fe0ec; }

/* type-led hero (interior pages) */
.hero--plain { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero--plain .hero__inner { min-height: auto; padding-block: clamp(3rem, 7vw, 5.5rem); }
.hero--plain h1 { color: var(--ink); }
.hero--plain .hero__intro { color: var(--ink-soft); }

/* ============================================================= CARDS / GRIDS */
.grid { display: grid; gap: var(--space-4); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--space-5); display: flex; flex-direction: column; gap: .75rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(14,31,42,.5); border-color: var(--accent); }
.card h3 { margin: 0; font-size: var(--step-1); }
.card p { margin: 0; color: var(--ink-soft); }
.card__icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--accent-text); border: 1px solid var(--line);
}
.card__icon svg { width: 26px; height: 26px; }
.card .link-arrow { margin-top: auto; }

/* numbered process steps (signature: oversized index numerals) */
.steps { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
.step { position: relative; padding-top: 1rem; border-top: 2px solid var(--line); }
.step__num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1;
  color: var(--accent); opacity: .9; letter-spacing: -0.03em; display: block; margin-bottom: .5rem;
}
.step h3 { font-size: var(--step-1); margin: 0 0 .35rem; }
.step p { margin: 0; color: var(--ink-soft); }
.section--dark .step { border-color: rgba(255,255,255,.18); }
.section--dark .step p { color: #b7cdd4; }
.section--dark .step__num { color: #6fd7e4; }

/* split layout */
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: 1fr 1fr; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img { border-radius: var(--radius-lg); width: 100%; }
.media-frame { position: relative; }
.media-frame::before {
  content: ""; position: absolute; inset: 0; transform: translate(18px, 18px);
  border: 2px solid var(--accent); border-radius: var(--radius-lg); z-index: -1;
}

/* USP / value list */
.checklist { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: .85rem; }
.checklist li { display: flex; align-items: flex-start; gap: .7rem; }
.checklist svg { width: 22px; height: 22px; color: var(--accent-text); flex: none; margin-top: 2px; }
.section--dark .checklist svg { color: #6fd7e4; }

/* stat strip */
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: var(--space-4); }
.stat { padding: var(--space-4); border-left: 3px solid var(--accent); }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: var(--step-3); color: var(--ink); display: block; }
.section--dark .stat__num { color: #fff; }
.stat__label { color: var(--ink-soft); font-size: var(--step--1); }
.section--dark .stat__label { color: #b7cdd4; }

/* ============================================================= FAQ */
.faq { display: grid; gap: .75rem; max-width: 820px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 1.25rem;
}
.faq summary {
  list-style: none; cursor: pointer; font-family: var(--font-display); font-weight: 600;
  font-size: var(--step-1); padding: 1.15rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 14px; height: 14px; flex: none;
  border-right: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text);
  transform: rotate(45deg); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details > p { padding: 0 0 1.2rem; margin: 0; color: var(--ink-soft); }

/* ============================================================= CTA BAND */
.cta-band { background: var(--navy); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.cta-band p { color: #bcd2d9; max-width: 52ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn--outline { color: #fff; border-color: rgba(255,255,255,.55); }
.cta-band .btn--outline:hover { background: #fff; color: var(--ink); }

/* ============================================================= CONTACT */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1.1fr .9fr; align-items: start; }
.contact-info { display: grid; gap: 1.25rem; }
.contact-row { display: flex; align-items: flex-start; gap: .9rem; }
.contact-row svg { width: 24px; height: 24px; color: var(--accent-text); flex: none; margin-top: 2px; }
.contact-row a { color: var(--ink); text-decoration: none; font-weight: 500; }
.contact-row a:hover { color: var(--accent-text); }
.contact-row .label { display: block; font-size: var(--step--1); color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }
.form-promise {
  background: var(--surface); border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 1.5rem; font-weight: 500;
}
.form-placeholder {
  border: 1px dashed var(--line); border-radius: var(--radius); padding: 2rem; color: var(--ink-soft); text-align: center;
}

/* ============================================================= FORMINATOR */
.forminator-custom-form .forminator-label,
.forminator-custom-form label { font-family: var(--font-body); font-weight: 600; color: var(--ink); }
.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%; font-family: var(--font-body); font-size: var(--step-0);
  color: var(--ink); background: #fff; border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: .8rem 1rem; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.forminator-custom-form input:focus,
.forminator-custom-form textarea:focus,
.forminator-custom-form select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(13,163,184,.18);
}
.forminator-custom-form .forminator-button,
.forminator-custom-form button[type="submit"] {
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-0);
  background: var(--btn-fill); color: var(--btn-label);
  border: none; border-radius: 999px; padding: .95rem 1.7rem; cursor: pointer;
  transition: background-color .25s var(--ease);
}
.forminator-custom-form .forminator-button:hover,
.forminator-custom-form button[type="submit"]:hover { background: var(--btn-fill-hover); color: #fff; }

/* ============================================================= FOOTER */
.site-footer { background: var(--navy); color: #cddee3; padding-block: clamp(3.5rem, 7vw, 5rem) var(--space-5); }
.footer-grid { display: grid; gap: var(--space-6); grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
.site-footer h3 { color: #fff; font-size: var(--step-0); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1.1rem; font-family: var(--font-display); }
.site-footer a { color: #cddee3; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-brand__mark { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: #fff; letter-spacing: -0.02em; }
.footer-brand__mark .dot { color: var(--accent); }
.footer-brand img { height: 40px; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-nap { font-style: normal; line-height: 1.7; }
.footer-nap a { color: #cddee3; }
.footer-hours { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.footer-hours li { display: flex; justify-content: space-between; gap: 1rem; }
.footer-social { display: flex; gap: .6rem; margin-top: 1rem; }
.footer-social a {
  width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.2); border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; color: #cddee3;
}
.footer-social a:hover { background: rgba(255,255,255,.1); color: #fff; }
.footer-social svg { width: 20px; height: 20px; }
/* re-assert button label over footer link colour */
.site-footer .btn--light { color: var(--ink); }
.site-footer .btn--light:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14); margin-top: var(--space-6); padding-top: var(--space-4);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: var(--step--1); color: #96b0b8;
}
.footer-bottom a { color: #96b0b8; }

/* ============================================================= 404 */
.notfound { text-align: center; padding-block: clamp(4rem, 12vw, 8rem); }
.notfound .code { font-family: var(--font-display); font-weight: 700; font-size: clamp(4rem, 14vw, 9rem); color: var(--accent); line-height: 1; }

/* ============================================================= REVEAL / MOTION */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================= RESPONSIVE */
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .header-nav { gap: var(--space-3); }

  .primary-nav {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 86vw);
    height: 100dvh; background: #fff; z-index: 1001;
    transform: translateX(100%); transition: transform .3s var(--ease);
    overflow-y: auto; overscroll-behavior: contain;
    padding: calc(var(--header-h) + 1rem) 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
    box-shadow: -20px 0 50px -30px rgba(0,0,0,.5);
  }
  body.nav-open .primary-nav { transform: translateX(0); }
  body.nav-open .site-header { z-index: 1000; }

  .primary-nav .nav-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav .nav-menu > li { border-bottom: 1px solid var(--line); }
  .primary-nav .nav-menu a:not(.btn) { display: block; padding: .95rem 0; }
  .primary-nav .nav-menu a:not(.btn)::after { display: none; }
  .primary-nav .btn { margin-top: 1.25rem; width: 100%; }
  .nav-cta-mobile { display: block; }
  .nav-cta-mobile > a { padding: .95rem 1.6rem; }

  /* mobile accordion submenu */
  .submenu-wrap { position: static; display: none; padding-top: 0; min-width: 0; }
  .has-flyout.is-open > .submenu-wrap { display: block; }
  .submenu { border: none; box-shadow: none; padding: 0 0 .5rem 1rem; }
  .flyout-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    background: none; border: none; cursor: pointer; padding: .5rem; color: var(--ink);
    float: right;
  }

  .drawer-close {
    display: inline-flex; align-items: center; justify-content: center;
    position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px;
    border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; color: var(--ink);
  }
  .drawer-close svg { width: 22px; height: 22px; }

  body.nav-open .nav-overlay {
    display: block; position: fixed; inset: 0; z-index: 989;
    background: rgba(11,27,36,.5);
  }
  body.nav-open { overflow: hidden; }

  .nav-toggle { position: relative; z-index: 1002; }
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .media-frame::before { transform: translate(12px, 12px); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 599px) {
  .grid, .steps { align-items: stretch; }
  .hero__inner { min-height: 60vh; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  h1 { font-size: clamp(2rem, 8vw, 2.4rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
