/* =========================================================================
   IMD Logic Enterprise — Design System
   Deployment-ready, hand-authored CSS. No build step required.

   Contents
   01. Design tokens
   02. Reset & base
   03. Typography
   04. Layout primitives
   05. Buttons & links
   06. Header & navigation
   07. Hero
   08. Sections & eyebrows
   09. Cards
   10. Pillars, stats, lists
   11. Process / steps
   12. Industries
   13. Logo strip / technology lists
   14. CTA bands
   15. Footer
   16. Forms
   17. Jobs & careers
   18. Insights / posts
   19. Utilities & block editor bridges
   20. Motion & responsive
   ========================================================================= */

/* ---------- 01. Design tokens ------------------------------------------ */
:root {
  /* Brand — derived from the IMD Logic mark */
  --imd-brand:        #29ABE2; /* logo blue: graphic accent, or text on navy */
  --imd-blue:         #0A6FA8; /* interactive blue: 5.45:1 on white */
  --imd-blue-deep:    #075E8C; /* hover / pressed: 7.03:1 on white */
  --imd-blue-tint:    #E8F4FB;
  --imd-blue-tint-2:  #D3E9F7;

  --imd-navy:         #0B1A2D; /* 17.5:1 with white */
  --imd-navy-2:       #12263F;
  --imd-navy-3:       #1B3454;

  --imd-ink:          #141A22; /* body text: 17.49:1 on white */
  --imd-ink-2:        #2B3542;
  --imd-muted:        #5A6675; /* 5.85:1 on white, 5.84:1 on --imd-gray-50 */
  --imd-on-navy:      #FFFFFF;
  --imd-on-navy-mute: #A8BACD; /* 8.81:1 on navy */

  --imd-white:        #FFFFFF;
  --imd-gray-50:      #F5F7FA;
  --imd-gray-100:     #EDF1F6;
  --imd-gray-200:     #E2E8F0;
  --imd-border:       #DCE3EC;
  --imd-border-strong:#C6D0DC;

  --imd-danger:       #B32318; /* 6.62:1 on white */
  --imd-danger-bg:    #FEF3F2;
  --imd-success:      #096C4E; /* 6.43:1 on white */
  --imd-success-bg:   #ECFDF3;
  --imd-warning:      #8A5300;
  --imd-warning-bg:   #FFFAEB;

  /* Type */
  --imd-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Segoe UI Variable Text",
                   Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  --imd-font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
                   "Liberation Mono", monospace;

  --imd-fs-xs:   0.8125rem; /* 13 */
  --imd-fs-sm:   0.9375rem; /* 15 */
  --imd-fs-base: 1.0625rem; /* 17 */
  --imd-fs-lg:   1.1875rem; /* 19 */
  --imd-fs-xl:   1.375rem;  /* 22 */
  --imd-fs-h4:   clamp(1.125rem, 0.35vw + 1.05rem, 1.3125rem);
  --imd-fs-h3:   clamp(1.3125rem, 0.6vw + 1.19rem, 1.625rem);
  --imd-fs-h2:   clamp(1.75rem, 1.5vw + 1.4rem, 2.5rem);
  --imd-fs-h1:   clamp(2.125rem, 3.1vw + 1.4rem, 3.5rem);
  --imd-fs-hero: clamp(2.375rem, 3.9vw + 1.45rem, 4rem);

  --imd-lh-tight: 1.14;
  --imd-lh-snug:  1.28;
  --imd-lh-base:  1.65;

  /* Space */
  --imd-s-1: 0.25rem;  --imd-s-2: 0.5rem;   --imd-s-3: 0.75rem;
  --imd-s-4: 1rem;     --imd-s-5: 1.5rem;   --imd-s-6: 2rem;
  --imd-s-7: 2.5rem;   --imd-s-8: 3rem;     --imd-s-9: 4rem;
  --imd-s-10: 5rem;    --imd-s-11: 6.5rem;

  --imd-section-y: clamp(3.25rem, 6vw, 6rem);

  /* Shell */
  --imd-container: 1200px;
  --imd-container-wide: 1420px;
  --imd-container-narrow: 760px;
  --imd-gutter: clamp(1.125rem, 4vw, 2.5rem);

  /* Surface */
  --imd-radius-sm: 6px;
  --imd-radius:    10px;
  --imd-radius-lg: 16px;

  --imd-shadow-xs: 0 1px 2px rgba(11, 26, 45, 0.06);
  --imd-shadow-sm: 0 1px 3px rgba(11, 26, 45, 0.07), 0 1px 2px rgba(11, 26, 45, 0.04);
  --imd-shadow:    0 4px 14px rgba(11, 26, 45, 0.07), 0 1px 3px rgba(11, 26, 45, 0.05);
  --imd-shadow-lg: 0 18px 44px rgba(11, 26, 45, 0.11), 0 4px 12px rgba(11, 26, 45, 0.06);

  --imd-t-fast: 140ms cubic-bezier(0.4, 0, 0.2, 1);
  --imd-t:      220ms cubic-bezier(0.4, 0, 0.2, 1);

  --imd-header-h: 76px;
}

/* ---------- 02. Reset & base ------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--imd-header-h) + 1rem);
  /* The closed mobile drawer is parked off-canvas to the right. `clip` stops
     that from creating a sideways scroll without turning <html> into a scroll
     container, so the sticky header keeps working. `hidden` would do the
     latter, so it is only used where `clip` is unsupported (see the drawer's
     @supports fallback below, which avoids needing it at all). */
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--imd-white);
  color: var(--imd-ink);
  font-family: var(--imd-font-sans);
  font-size: var(--imd-fs-base);
  line-height: var(--imd-lh-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

body.imd-nav-open { overflow: hidden; }

img, svg, video, canvas, iframe { max-width: 100%; height: auto; display: block; }
svg { fill: currentColor; }

hr {
  border: 0;
  border-top: 1px solid var(--imd-border);
  margin: var(--imd-s-7) 0;
}

::selection { background: var(--imd-blue-tint-2); color: var(--imd-navy); }

/* Focus — always visible, never removed. */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--imd-blue);
  outline-offset: 2px;
  border-radius: 3px;
}
.imd-on-dark :focus-visible,
.imd-section--navy :focus-visible,
.imd-footer :focus-visible,
.imd-hero :focus-visible { outline-color: var(--imd-brand); }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: var(--imd-white); border-radius: var(--imd-radius-sm);
  box-shadow: var(--imd-shadow); clip: auto !important; clip-path: none;
  color: var(--imd-blue-deep); display: block; font-size: 0.9375rem; font-weight: 600;
  height: auto; left: 6px; line-height: normal; padding: 14px 22px; top: 6px;
  text-decoration: none; width: auto; z-index: 100000;
}

/* Skip link — the first focusable control in the document.
   It stays in the accessibility tree and in the tab order at all times
   (translated out of view rather than hidden), and it slides into view on
   focus. `top` is offset when the WordPress admin toolbar is present so the
   link is never covered by it. */
.imd-skip-link {
  position: fixed; left: 0; top: 0; z-index: 100001;
  background: var(--imd-navy); color: var(--imd-white);
  padding: 14px 22px; font-weight: 600; font-size: var(--imd-fs-sm);
  text-decoration: none; line-height: 1.2;
  border-radius: 0 0 var(--imd-radius-sm) 0;
  transform: translateY(-130%);
  transition: transform var(--imd-t-fast);
}
.imd-skip-link:focus,
.imd-skip-link:focus-visible {
  transform: translateY(0);
  color: var(--imd-white);
  outline: 3px solid var(--imd-brand);
  outline-offset: -3px;
}
.admin-bar .imd-skip-link { top: 32px; }
@media (max-width: 782px) { .admin-bar .imd-skip-link { top: 46px; } }
@media (prefers-reduced-motion: reduce) { .imd-skip-link { transition: none; } }

/* ---------- 03. Typography --------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--imd-s-4);
  color: var(--imd-navy);
  font-weight: 700;
  line-height: var(--imd-lh-snug);
  letter-spacing: -0.018em;
  text-wrap: balance;
}
h1 { font-size: var(--imd-fs-h1); line-height: var(--imd-lh-tight); letter-spacing: -0.026em; }
h2 { font-size: var(--imd-fs-h2); letter-spacing: -0.022em; }
h3 { font-size: var(--imd-fs-h3); }
h4 { font-size: var(--imd-fs-h4); }
h5 { font-size: var(--imd-fs-lg); }
h6 { font-size: var(--imd-fs-base); }

p { margin: 0 0 var(--imd-s-5); }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }

.imd-lead {
  font-size: clamp(1.0625rem, 0.45vw + 1rem, 1.3125rem);
  line-height: 1.6;
  color: var(--imd-ink-2);
  max-width: 62ch;
}
.imd-measure { max-width: 68ch; }
.imd-measure-narrow { max-width: 56ch; }

ul, ol { margin: 0 0 var(--imd-s-5); padding-left: 1.35em; }
li { margin-bottom: var(--imd-s-2); }
li:last-child { margin-bottom: 0; }

strong, b { font-weight: 650; color: var(--imd-navy); }
small { font-size: var(--imd-fs-sm); }

blockquote {
  margin: var(--imd-s-6) 0;
  padding: var(--imd-s-2) 0 var(--imd-s-2) var(--imd-s-5);
  border-left: 3px solid var(--imd-brand);
  color: var(--imd-ink-2);
  font-size: var(--imd-fs-lg);
}
blockquote p:last-child { margin-bottom: 0; }

code, kbd, pre, samp { font-family: var(--imd-font-mono); font-size: 0.9em; }
code {
  background: var(--imd-gray-100); padding: 0.15em 0.4em;
  border-radius: 4px; color: var(--imd-navy);
}
pre {
  background: var(--imd-navy); color: #E7EEF6; padding: var(--imd-s-5);
  border-radius: var(--imd-radius); overflow-x: auto; line-height: 1.6;
}
pre code { background: none; padding: 0; color: inherit; }

table {
  width: 100%; border-collapse: collapse; margin: 0 0 var(--imd-s-5);
  font-size: var(--imd-fs-sm);
}
th, td {
  padding: var(--imd-s-3) var(--imd-s-4);
  border-bottom: 1px solid var(--imd-border);
  text-align: left; vertical-align: top;
}
th { color: var(--imd-navy); font-weight: 650; background: var(--imd-gray-50); }
.imd-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- 04. Layout primitives -------------------------------------- */
.imd-container {
  width: 100%; max-width: var(--imd-container);
  margin-inline: auto; padding-inline: var(--imd-gutter);
}
.imd-container--wide   { max-width: var(--imd-container-wide); }
.imd-container--narrow { max-width: var(--imd-container-narrow); }

.imd-grid { display: grid; gap: var(--imd-s-5); }
.imd-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.imd-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 288px), 1fr)); }
.imd-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 232px), 1fr)); }
.imd-grid--gap-lg { gap: var(--imd-s-6); }

.imd-split {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .imd-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .imd-split--aside { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .imd-split--sticky > :last-child { position: sticky; top: calc(var(--imd-header-h) + 1.5rem); }
}

.imd-stack > * + * { margin-top: var(--imd-s-4); }
.imd-stack-lg > * + * { margin-top: var(--imd-s-6); }

/* ---------- 05. Buttons & links ---------------------------------------- */
a {
  color: var(--imd-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--imd-t-fast);
}
a:hover { color: var(--imd-blue-deep); text-decoration-thickness: 2px; }

.imd-btn {
  --btn-bg: var(--imd-blue);
  --btn-fg: var(--imd-white);
  --btn-bd: var(--imd-blue);
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.6em;
  padding: 0.9em 1.65em;
  min-height: 48px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd); border-radius: var(--imd-radius-sm);
  font: inherit; font-size: var(--imd-fs-sm); font-weight: 650;
  letter-spacing: 0.005em; line-height: 1.2;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: background var(--imd-t-fast), border-color var(--imd-t-fast),
              color var(--imd-t-fast), transform var(--imd-t-fast),
              box-shadow var(--imd-t-fast);
}
/* The button's text colour is stated for every link state, so a more specific
   context rule (for example the mobile drawer's `a { color: navy }`) can never
   leave dark text on the blue fill. White on --imd-blue is 5.45:1 and on
   --imd-blue-deep 7.03:1, both above the WCAG 2.2 AA 4.5:1 threshold. */
.imd-btn,
.imd-btn:link,
.imd-btn:visited,
.imd-btn:hover,
.imd-btn:focus,
.imd-btn:focus-visible,
.imd-btn:active { color: var(--btn-fg); text-decoration: none; }

.imd-btn:hover {
  --btn-bg: var(--imd-blue-deep); --btn-bd: var(--imd-blue-deep);
  transform: translateY(-1px); box-shadow: var(--imd-shadow);
}
.imd-btn:active {
  --btn-bg: var(--imd-blue-deep); --btn-bd: var(--imd-blue-deep);
  transform: translateY(0); box-shadow: none;
}
/* A blue outline on a blue button is invisible, so buttons get a dark ring
   separated from the fill by a white halo — legible on light and dark grounds. */
.imd-btn:focus-visible {
  outline: 3px solid var(--imd-navy);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--imd-white);
}
.imd-section--navy .imd-btn:focus-visible,
.imd-section--dark .imd-btn:focus-visible,
.imd-on-dark .imd-btn:focus-visible,
.imd-hero .imd-btn:focus-visible,
.imd-cta:not(.imd-cta--tint) .imd-btn:focus-visible,
.imd-pagehero .imd-btn:focus-visible,
.imd-footer .imd-btn:focus-visible {
  outline-color: var(--imd-white);
  box-shadow: 0 0 0 3px var(--imd-navy);
}

.imd-btn--secondary {
  --btn-bg: transparent; --btn-fg: var(--imd-blue-deep); --btn-bd: var(--imd-border-strong);
}
.imd-btn--secondary:hover,
.imd-btn--secondary:focus,
.imd-btn--secondary:active {
  --btn-bg: var(--imd-blue-tint); --btn-bd: var(--imd-blue); --btn-fg: var(--imd-blue-deep);
}
.imd-btn--ghost-light {
  --btn-bg: transparent; --btn-fg: var(--imd-white);
  --btn-bd: rgba(255, 255, 255, 0.42);
}
.imd-btn--ghost-light:hover {
  --btn-bg: rgba(255, 255, 255, 0.12); --btn-bd: var(--imd-white); --btn-fg: var(--imd-white);
}
.imd-btn--light { --btn-bg: var(--imd-white); --btn-fg: var(--imd-navy); --btn-bd: var(--imd-white); }
.imd-btn--light:hover,
.imd-btn--light:focus,
.imd-btn--light:active { --btn-bg: var(--imd-gray-100); --btn-bd: var(--imd-gray-100); --btn-fg: var(--imd-navy); }
.imd-btn--lg { padding: 1.05em 2.1em; font-size: var(--imd-fs-base); min-height: 54px; }
.imd-btn--block { width: 100%; }
.imd-btn[disabled], .imd-btn[aria-disabled="true"] {
  opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none;
}

.imd-btn-row {
  display: flex; flex-wrap: wrap; gap: var(--imd-s-3) var(--imd-s-4); align-items: center;
}

/* Text link with a moving chevron */
.imd-link-arrow {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-weight: 650; font-size: var(--imd-fs-sm); text-decoration: none;
  color: var(--imd-blue);
}
.imd-link-arrow::after {
  content: ""; width: 0.6em; height: 0.6em;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); transition: transform var(--imd-t-fast);
}
.imd-link-arrow:hover { color: var(--imd-blue-deep); text-decoration: underline; text-underline-offset: 0.25em; }
.imd-link-arrow:hover::after { transform: rotate(-45deg) translate(2px, 2px); }
.imd-on-dark .imd-link-arrow { color: var(--imd-brand); }
.imd-on-dark .imd-link-arrow:hover { color: var(--imd-white); }

/* ---------- 06. Header & navigation ------------------------------------ */
.imd-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--imd-border);
  transition: box-shadow var(--imd-t);
}
.imd-header.is-stuck { box-shadow: var(--imd-shadow-sm); }
.admin-bar .imd-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .imd-header { top: 46px; } }

.imd-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--imd-s-5); min-height: var(--imd-header-h);
}

.imd-brand { display: inline-flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.imd-brand img, .imd-brand .custom-logo {
  height: 42px; width: auto; max-width: none;
}
.imd-brand__text {
  font-size: 1.25rem; font-weight: 700; color: var(--imd-navy); letter-spacing: -0.02em;
}
.imd-brand:hover { text-decoration: none; }

/* Desktop primary nav */
.imd-nav { display: none; }
.imd-nav__list { display: flex; align-items: center; gap: var(--imd-s-1); list-style: none; margin: 0; padding: 0; }
.imd-nav__list li { margin: 0; position: relative; }

.imd-nav a,
.imd-nav .imd-sub-toggle {
  display: inline-flex; align-items: center; gap: 0.35em;
  padding: 0.65rem 0.8rem;
  color: var(--imd-ink-2); font-size: var(--imd-fs-sm); font-weight: 550;
  text-decoration: none; border-radius: var(--imd-radius-sm);
  background: none; border: 0; font-family: inherit; cursor: pointer;
  white-space: nowrap; transition: color var(--imd-t-fast), background var(--imd-t-fast);
}
.imd-nav a:hover, .imd-nav .imd-sub-toggle:hover { color: var(--imd-blue-deep); background: var(--imd-gray-50); }

.imd-nav .current-menu-item > a,
.imd-nav .current_page_item > a,
.imd-nav .current-menu-ancestor > a,
.imd-nav .current-menu-ancestor > .imd-menu-item-wrap > .imd-sub-toggle,
.imd-nav .current_page_ancestor > a {
  color: var(--imd-navy); font-weight: 650;
}
.imd-nav .current-menu-item > a::after,
.imd-nav .current_page_item > a::after {
  content: ""; position: absolute; left: 0.8rem; right: 0.8rem; bottom: -1px;
  height: 2px; background: var(--imd-brand); border-radius: 2px;
}

.imd-menu-item-wrap { display: inline-flex; align-items: center; }
.imd-sub-toggle__icon {
  width: 0.5em; height: 0.5em; margin-top: -0.18em;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform var(--imd-t-fast);
}
[aria-expanded="true"] .imd-sub-toggle__icon { transform: rotate(-135deg); margin-top: 0.18em; }

.imd-nav .sub-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 40;
  min-width: 274px; margin: 0; padding: var(--imd-s-2);
  list-style: none; background: var(--imd-white);
  border: 1px solid var(--imd-border); border-radius: var(--imd-radius);
  box-shadow: var(--imd-shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--imd-t-fast), transform var(--imd-t-fast), visibility var(--imd-t-fast);
}
.imd-nav .sub-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.imd-nav .sub-menu a {
  display: block; width: 100%; padding: 0.6rem 0.8rem;
  font-weight: 500; white-space: normal; line-height: 1.4;
}
.imd-nav .sub-menu a:hover { background: var(--imd-blue-tint); color: var(--imd-blue-deep); }
.imd-nav .sub-menu .sub-menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 var(--imd-s-4); }

.imd-header__actions { display: none; align-items: center; gap: var(--imd-s-3); flex: 0 0 auto; }

/* Mobile toggle */
.imd-nav-toggle {
  display: inline-flex; align-items: center; gap: 0.55em;
  min-height: 44px; padding: 0.5rem 0.75rem;
  background: none; border: 1px solid var(--imd-border-strong);
  border-radius: var(--imd-radius-sm);
  color: var(--imd-navy); font: inherit; font-size: var(--imd-fs-sm); font-weight: 600;
  cursor: pointer;
}
.imd-nav-toggle:hover { background: var(--imd-gray-50); }
.imd-nav-toggle__bars { position: relative; width: 18px; height: 12px; }
.imd-nav-toggle__bars span {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform var(--imd-t), opacity var(--imd-t-fast);
}
.imd-nav-toggle__bars span:nth-child(1) { top: 0; }
.imd-nav-toggle__bars span:nth-child(2) { top: 5px; }
.imd-nav-toggle__bars span:nth-child(3) { top: 10px; }
.imd-nav-toggle[aria-expanded="true"] .imd-nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.imd-nav-toggle[aria-expanded="true"] .imd-nav-toggle__bars span:nth-child(2) { opacity: 0; }
.imd-nav-toggle[aria-expanded="true"] .imd-nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Mobile drawer */
.imd-mobile-nav {
  position: fixed; inset: var(--imd-header-h) 0 0; z-index: 890;
  background: var(--imd-white);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: var(--imd-s-5) 0 var(--imd-s-10);
  transform: translateX(100%); visibility: hidden;
  transition: transform var(--imd-t), visibility var(--imd-t);
}
.admin-bar .imd-mobile-nav { top: calc(var(--imd-header-h) + 46px); }
.imd-mobile-nav.is-open { transform: translateX(0); visibility: visible; }

/* Browsers without `overflow: clip` cannot rely on the rule on <html>, so the
   drawer fades in place instead of sliding. No off-canvas position, therefore
   no sideways scroll, in any browser. */
@supports not (overflow: clip) {
  .imd-mobile-nav {
    transform: none;
    opacity: 0;
    transition: opacity var(--imd-t), visibility var(--imd-t);
  }
  .imd-mobile-nav.is-open { opacity: 1; }
}
.imd-mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.imd-mobile-nav li { margin: 0; border-bottom: 1px solid var(--imd-gray-100); }
.imd-mobile-nav .sub-menu { border-top: 1px solid var(--imd-gray-100); background: var(--imd-gray-50); }
.imd-mobile-nav .sub-menu li:last-child { border-bottom: 0; }
.imd-mobile-nav a:not(.imd-btn) {
  display: block; padding: 0.95rem var(--imd-gutter);
  color: var(--imd-navy); font-size: var(--imd-fs-base); font-weight: 550; text-decoration: none;
}
.imd-mobile-nav .sub-menu a { padding-left: calc(var(--imd-gutter) + 1rem); font-weight: 450; font-size: var(--imd-fs-sm); }
.imd-mobile-nav a:not(.imd-btn):hover,
.imd-mobile-nav a:not(.imd-btn):focus-visible { background: var(--imd-blue-tint); }

/* The drawer's call to action is a button, not a navigation link: it keeps the
   button palette (white on blue) in every state, including :visited, which the
   drawer's generic link rule previously overrode with navy text (3.19:1). */
.imd-mobile-nav .imd-btn,
.imd-mobile-nav .imd-btn:link,
.imd-mobile-nav .imd-btn:visited,
.imd-mobile-nav .imd-btn:hover,
.imd-mobile-nav .imd-btn:focus,
.imd-mobile-nav .imd-btn:focus-visible,
.imd-mobile-nav .imd-btn:active {
  color: var(--imd-white);
  background: var(--btn-bg);
  text-decoration: none;
}
.imd-mobile-nav .imd-btn:focus-visible {
  outline: 3px solid var(--imd-navy);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--imd-white);
}
.imd-mobile-nav__row { display: flex; align-items: stretch; }
.imd-mobile-nav__row > a { flex: 1 1 auto; }
.imd-mobile-nav .imd-sub-toggle {
  flex: 0 0 auto; width: 56px; display: flex; align-items: center; justify-content: center;
  background: none; border: 0; border-left: 1px solid var(--imd-gray-100);
  color: var(--imd-navy); cursor: pointer;
}
.imd-mobile-nav .sub-menu { display: none; }
.imd-mobile-nav .sub-menu.is-open { display: block; }
.imd-mobile-nav__cta { padding: var(--imd-s-6) var(--imd-gutter) 0; }

@media (min-width: 1060px) {
  .imd-nav { display: block; }
  .imd-header__actions { display: flex; }
  .imd-nav-toggle { display: none; }
  .imd-mobile-nav { display: none; }
}

/* ---------- 07. Hero ---------------------------------------------------- */
.imd-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--imd-navy);
  color: var(--imd-on-navy);
  padding-block: clamp(3.5rem, 8vw, 7rem);
}
.imd-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(1100px 620px at 78% 12%, rgba(41, 171, 226, 0.20), transparent 62%),
    radial-gradient(760px 520px at 8% 96%, rgba(41, 171, 226, 0.10), transparent 60%),
    linear-gradient(168deg, #0B1A2D 0%, #0E2136 52%, #123055 100%);
}
.imd-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 88% 74% at 50% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 88% 74% at 50% 40%, #000 30%, transparent 78%);
}
.imd-hero h1, .imd-hero h2, .imd-hero h3 { color: var(--imd-white); }
.imd-hero p { color: #D5E0EC; }

.imd-hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 1000px) {
  .imd-hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
}
.imd-hero__title { font-size: var(--imd-fs-hero); margin-bottom: var(--imd-s-5); }
.imd-hero__lead {
  font-size: clamp(1.0625rem, 0.55vw + 1rem, 1.3125rem); line-height: 1.6;
  max-width: 56ch; margin-bottom: var(--imd-s-7);
}
.imd-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  margin-bottom: var(--imd-s-5); padding: 0.45em 0.95em;
  background: rgba(41, 171, 226, 0.14);
  border: 1px solid rgba(41, 171, 226, 0.36);
  border-radius: 100px;
  color: #9FD9F4; font-size: var(--imd-fs-xs); font-weight: 650;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.imd-hero__eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--imd-brand); box-shadow: 0 0 0 3px rgba(41, 171, 226, 0.25);
}
.imd-hero__meta {
  margin-top: var(--imd-s-8); padding-top: var(--imd-s-6);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex; flex-wrap: wrap; gap: var(--imd-s-3) var(--imd-s-6);
  color: var(--imd-on-navy-mute); font-size: var(--imd-fs-sm);
}
.imd-hero__meta span { display: inline-flex; align-items: center; gap: 0.5em; }
.imd-hero__meta span::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--imd-brand);
  flex: 0 0 auto;
}

/* Page hero (interior pages) */
.imd-pagehero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--imd-navy); color: var(--imd-on-navy);
  padding-block: clamp(2.75rem, 5.5vw, 4.75rem);
}
.imd-pagehero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 460px at 88% 0%, rgba(41, 171, 226, 0.17), transparent 62%),
    linear-gradient(160deg, #0B1A2D 0%, #10253C 100%);
}
.imd-pagehero h1 { color: var(--imd-white); margin-bottom: var(--imd-s-4); }
.imd-pagehero p { color: #CBD8E6; }
.imd-pagehero__lead { font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.25rem); max-width: 62ch; margin-bottom: 0; }
.imd-pagehero__eyebrow {
  display: block; margin-bottom: var(--imd-s-3);
  color: var(--imd-brand); font-size: var(--imd-fs-xs); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.imd-pagehero .imd-btn-row { margin-top: var(--imd-s-6); }

/* Breadcrumbs */
.imd-breadcrumbs { font-size: var(--imd-fs-sm); margin-bottom: var(--imd-s-5); }
.imd-breadcrumbs ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.55rem;
  list-style: none; margin: 0; padding: 0;
}
.imd-breadcrumbs li { margin: 0; display: inline-flex; align-items: center; gap: 0.55rem; }
.imd-breadcrumbs li + li::before {
  content: ""; width: 0.34em; height: 0.34em;
  border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
  transform: rotate(45deg); opacity: 0.6;
}
.imd-breadcrumbs a { color: inherit; text-decoration: none; opacity: 0.85; }
.imd-breadcrumbs a:hover { text-decoration: underline; opacity: 1; }
.imd-pagehero .imd-breadcrumbs { color: var(--imd-on-navy-mute); }
.imd-pagehero .imd-breadcrumbs [aria-current="page"] { color: var(--imd-white); }

/* Hero visual — pure CSS/SVG, no imagery licensing burden */
.imd-hero__visual { position: relative; }
.imd-viz {
  position: relative; width: 100%; aspect-ratio: 1 / 1; max-width: 520px;
  margin-inline: auto;
}
.imd-viz svg { width: 100%; height: 100%; overflow: visible; }
.imd-viz__ring { fill: none; stroke: rgba(41, 171, 226, 0.30); stroke-width: 1; }
.imd-viz__ring--dashed { stroke-dasharray: 3 9; stroke: rgba(255, 255, 255, 0.20); }
.imd-viz__arc { fill: none; stroke: var(--imd-brand); stroke-width: 2.5; stroke-linecap: round; }
.imd-viz__link { stroke: rgba(255, 255, 255, 0.18); stroke-width: 1; fill: none; }
.imd-viz__node { fill: var(--imd-brand); }
.imd-viz__node--dim { fill: rgba(255, 255, 255, 0.42); }
.imd-viz__core { fill: rgba(41, 171, 226, 0.09); stroke: rgba(41, 171, 226, 0.42); stroke-width: 1.25; }
.imd-viz__label {
  fill: #CFE6F5; font-family: var(--imd-font-sans); font-size: 11px;
  font-weight: 600; letter-spacing: 0.06em;
}
.imd-viz__spin { transform-origin: 50% 50%; animation: imd-spin 46s linear infinite; }
.imd-viz__spin--rev { animation-duration: 62s; animation-direction: reverse; }
.imd-viz__pulse { animation: imd-pulse 5.5s ease-in-out infinite; transform-origin: center; }
.imd-viz__pulse:nth-of-type(2n) { animation-delay: 1.4s; }
.imd-viz__pulse:nth-of-type(3n) { animation-delay: 2.8s; }
@keyframes imd-spin { to { transform: rotate(360deg); } }
@keyframes imd-pulse {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 1; }
}

/* ---------- 08. Sections & eyebrows ------------------------------------ */
.imd-section { padding-block: var(--imd-section-y); position: relative; }
.imd-section--tight { padding-block: clamp(2.25rem, 4vw, 3.5rem); }
.imd-section--gray  { background: var(--imd-gray-50); }
.imd-section--tint  { background: var(--imd-blue-tint); }
.imd-section--navy,
.imd-section--dark {
  background: var(--imd-navy); color: #D5E0EC;
}
.imd-section--navy h1, .imd-section--navy h2, .imd-section--navy h3,
.imd-section--navy h4, .imd-section--navy h5, .imd-section--navy h6,
.imd-section--dark h1, .imd-section--dark h2, .imd-section--dark h3,
.imd-section--dark h4, .imd-section--dark h5, .imd-section--dark h6 { color: var(--imd-white); }
.imd-section--navy strong, .imd-section--dark strong { color: var(--imd-white); }
.imd-section--bordered { border-top: 1px solid var(--imd-border); }

.imd-section-head { margin-bottom: clamp(2rem, 3.5vw, 3.25rem); max-width: 68ch; }
.imd-section-head--center { margin-inline: auto; text-align: center; }
.imd-section-head--center .imd-lead { margin-inline: auto; }
.imd-section-head p:last-child { margin-bottom: 0; }

.imd-eyebrow {
  display: block; margin-bottom: var(--imd-s-3);
  color: var(--imd-blue); font-size: var(--imd-fs-xs); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.imd-section--navy .imd-eyebrow,
.imd-section--dark .imd-eyebrow,
.imd-on-dark .imd-eyebrow { color: var(--imd-brand); }

.imd-rule {
  width: 52px; height: 3px; border-radius: 3px;
  background: var(--imd-brand); margin: 0 0 var(--imd-s-5);
}
.imd-section-head--center .imd-rule { margin-inline: auto; }

/* ---------- 09. Cards --------------------------------------------------- */
.imd-card {
  position: relative; display: flex; flex-direction: column;
  padding: var(--imd-s-6);
  background: var(--imd-white);
  border: 1px solid var(--imd-border);
  border-radius: var(--imd-radius);
  box-shadow: var(--imd-shadow-xs);
  transition: transform var(--imd-t), box-shadow var(--imd-t), border-color var(--imd-t);
}
.imd-card > *:last-child { margin-bottom: 0; }
.imd-card h3, .imd-card h4 { margin-bottom: var(--imd-s-3); }
.imd-card p { color: var(--imd-muted); font-size: var(--imd-fs-sm); }
.imd-card__body { flex: 1 1 auto; }
.imd-card__foot { margin-top: var(--imd-s-5); }

.imd-card--link:hover, .imd-card--link:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--imd-shadow-lg);
  border-color: var(--imd-blue-tint-2);
}
/* Whole-card click target that keeps a single, real link for screen readers */
.imd-card--link .imd-card__link::after { content: ""; position: absolute; inset: 0; }
.imd-card--link .imd-card__link { text-decoration: none; }

.imd-card--flush { background: transparent; border: 0; box-shadow: none; padding: 0; }
.imd-card--gray { background: var(--imd-gray-50); }
.imd-card--outline { box-shadow: none; }
.imd-card--pad-lg { padding: clamp(1.75rem, 3vw, 2.75rem); }

.imd-section--navy .imd-card,
.imd-section--dark .imd-card,
.imd-on-dark .imd-card {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: none;
}
.imd-section--navy .imd-card p,
.imd-section--dark .imd-card p,
.imd-on-dark .imd-card p { color: var(--imd-on-navy-mute); }
.imd-section--navy .imd-card--link:hover,
.imd-section--dark .imd-card--link:hover {
  background: rgba(255, 255, 255, 0.075); border-color: rgba(41, 171, 226, 0.45);
}

/* Icon chip */
.imd-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-bottom: var(--imd-s-5);
  background: var(--imd-blue-tint); color: var(--imd-blue-deep);
  border-radius: var(--imd-radius-sm); flex: 0 0 auto;
}
.imd-icon svg { width: 24px; height: 24px; }
.imd-icon--lg { width: 60px; height: 60px; }
.imd-icon--lg svg { width: 30px; height: 30px; }
.imd-section--navy .imd-icon, .imd-section--dark .imd-icon, .imd-on-dark .imd-icon {
  background: rgba(41, 171, 226, 0.16); color: var(--imd-brand);
}
.imd-icon--solid { background: var(--imd-blue); color: var(--imd-white); }

/* ---------- 10. Pillars, stats, feature lists -------------------------- */
.imd-pillar {
  position: relative; overflow: hidden;
  padding: clamp(1.75rem, 2.6vw, 2.5rem);
  background: var(--imd-white); border: 1px solid var(--imd-border);
  border-radius: var(--imd-radius-lg); box-shadow: var(--imd-shadow-sm);
  display: flex; flex-direction: column;
  transition: transform var(--imd-t), box-shadow var(--imd-t), border-color var(--imd-t);
}
.imd-pillar::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--imd-brand), var(--imd-blue));
  opacity: 0; transition: opacity var(--imd-t);
}
.imd-pillar:hover, .imd-pillar:focus-within {
  transform: translateY(-4px); box-shadow: var(--imd-shadow-lg); border-color: var(--imd-blue-tint-2);
}
.imd-pillar:hover::before, .imd-pillar:focus-within::before { opacity: 1; }
.imd-pillar__num {
  display: block; margin-bottom: var(--imd-s-4);
  font-size: var(--imd-fs-xs); font-weight: 700; letter-spacing: 0.14em;
  color: var(--imd-blue); text-transform: uppercase;
}
.imd-pillar h3 { margin-bottom: var(--imd-s-3); font-size: var(--imd-fs-h3); }
.imd-pillar p { color: var(--imd-muted); font-size: var(--imd-fs-sm); }
.imd-pillar__body { flex: 1 1 auto; }
.imd-pillar__list {
  margin: var(--imd-s-5) 0 0; padding: var(--imd-s-5) 0 0;
  border-top: 1px solid var(--imd-gray-200);
  list-style: none; font-size: var(--imd-fs-sm);
}
.imd-pillar__list li { position: relative; padding-left: 1.35em; color: var(--imd-ink-2); }
.imd-pillar__list li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--imd-brand);
}
.imd-pillar__foot { margin-top: var(--imd-s-6); }

/* Checked feature list */
.imd-checklist { list-style: none; margin: 0; padding: 0; }
.imd-checklist li {
  position: relative; padding-left: 2rem; margin-bottom: var(--imd-s-3);
  font-size: var(--imd-fs-sm); color: var(--imd-ink-2);
}
.imd-checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.28em;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--imd-blue-tint);
}
.imd-checklist li::after {
  content: ""; position: absolute; left: 0.36rem; top: 0.52em;
  width: 0.28rem; height: 0.55rem;
  border-right: 2px solid var(--imd-blue-deep); border-bottom: 2px solid var(--imd-blue-deep);
  transform: rotate(42deg);
}
.imd-section--navy .imd-checklist li, .imd-on-dark .imd-checklist li { color: var(--imd-on-navy-mute); }
.imd-section--navy .imd-checklist li::before, .imd-on-dark .imd-checklist li::before { background: rgba(41, 171, 226, 0.20); }
.imd-section--navy .imd-checklist li::after, .imd-on-dark .imd-checklist li::after {
  border-color: var(--imd-brand);
}
.imd-checklist--2col { columns: 2; column-gap: var(--imd-s-6); }
.imd-checklist--2col li { break-inside: avoid; }
@media (max-width: 640px) { .imd-checklist--2col { columns: 1; } }

/* Capability facts (no numeric claims — descriptive only) */
.imd-facts {
  display: grid; gap: var(--imd-s-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  padding: var(--imd-s-6) 0 0; margin-top: var(--imd-s-6);
  border-top: 1px solid var(--imd-border);
  list-style: none;
}
.imd-facts li { margin: 0; }
.imd-facts dt, .imd-facts__k {
  display: block; font-size: var(--imd-fs-xs); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--imd-blue);
  margin-bottom: var(--imd-s-2);
}
.imd-facts dd, .imd-facts__v {
  margin: 0; font-size: var(--imd-fs-sm); color: var(--imd-ink-2); line-height: 1.5;
}
.imd-section--navy .imd-facts, .imd-on-dark .imd-facts { border-color: rgba(255,255,255,0.14); }
.imd-section--navy .imd-facts dt, .imd-on-dark .imd-facts__k { color: var(--imd-brand); }
.imd-section--navy .imd-facts dd, .imd-on-dark .imd-facts__v { color: var(--imd-on-navy-mute); }

/* ---------- 11. Process / steps ---------------------------------------- */
.imd-steps { counter-reset: imd-step; display: grid; gap: var(--imd-s-6); }
@media (min-width: 760px)  { .imd-steps--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .imd-steps--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 760px)  { .imd-steps--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 760px)  { .imd-steps--5 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .imd-steps--5 { grid-template-columns: repeat(5, 1fr); } }

.imd-step { position: relative; counter-increment: imd-step; padding-top: var(--imd-s-6); }
.imd-step::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--imd-gray-200);
}
.imd-step::after {
  content: counter(imd-step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  transform: translateY(-50%);
  padding-right: 0.75rem; background: inherit;
  color: var(--imd-blue); font-size: var(--imd-fs-xs); font-weight: 700; letter-spacing: 0.1em;
}
.imd-section--gray .imd-step::after { background: var(--imd-gray-50); }
.imd-section--navy .imd-step::after, .imd-on-dark .imd-step::after {
  background: var(--imd-navy); color: var(--imd-brand);
}
.imd-section--navy .imd-step::before, .imd-on-dark .imd-step::before { background: rgba(255,255,255,0.16); }
.imd-step h3 { font-size: var(--imd-fs-h4); margin-bottom: var(--imd-s-3); }
.imd-step p { font-size: var(--imd-fs-sm); color: var(--imd-muted); margin-bottom: 0; }
.imd-section--navy .imd-step p, .imd-on-dark .imd-step p { color: var(--imd-on-navy-mute); }

/* ---------- 12. Industries --------------------------------------------- */
.imd-industry {
  display: flex; gap: var(--imd-s-5); align-items: flex-start;
  padding: var(--imd-s-6) 0; border-bottom: 1px solid var(--imd-border);
}
.imd-industry:last-child { border-bottom: 0; }
.imd-industry__icon { flex: 0 0 auto; margin-bottom: 0; }
.imd-industry__body { flex: 1 1 auto; min-width: 0; }
.imd-industry h3 { font-size: var(--imd-fs-h4); margin-bottom: var(--imd-s-2); }
.imd-industry p { color: var(--imd-muted); font-size: var(--imd-fs-sm); margin-bottom: 0; }

/* ---------- 13. Technology lists ---------------------------------------- */
.imd-taglist { display: flex; flex-wrap: wrap; gap: var(--imd-s-2) var(--imd-s-3); list-style: none; margin: 0; padding: 0; }
.imd-taglist li { margin: 0; }
.imd-tag {
  display: inline-block; padding: 0.42em 0.9em;
  background: var(--imd-white); border: 1px solid var(--imd-border);
  border-radius: 100px; color: var(--imd-ink-2);
  font-size: var(--imd-fs-sm); font-weight: 550; white-space: nowrap;
}
.imd-section--gray .imd-tag { background: var(--imd-white); }
.imd-section--navy .imd-tag, .imd-on-dark .imd-tag {
  background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16);
  color: #D5E0EC;
}
.imd-techgroup { margin-bottom: var(--imd-s-6); }
.imd-techgroup:last-child { margin-bottom: 0; }
.imd-techgroup h3 {
  font-size: var(--imd-fs-xs); font-weight: 700; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--imd-muted); margin-bottom: var(--imd-s-4);
}
.imd-section--navy .imd-techgroup h3, .imd-on-dark .imd-techgroup h3 { color: var(--imd-on-navy-mute); }

/* ---------- 14. CTA bands ----------------------------------------------- */
.imd-cta {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--imd-navy); color: #D5E0EC;
  padding-block: clamp(3rem, 6vw, 5rem);
}
.imd-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(760px 400px at 82% 8%, rgba(41, 171, 226, 0.22), transparent 62%),
    linear-gradient(150deg, #0B1A2D 0%, #12293F 100%);
}
.imd-cta h2 { color: var(--imd-white); margin-bottom: var(--imd-s-4); }
.imd-cta p { color: #CBD8E6; }
.imd-cta__inner {
  display: grid; gap: var(--imd-s-7); align-items: center;
}
@media (min-width: 900px) {
  .imd-cta__inner { grid-template-columns: minmax(0, 1.35fr) auto; }
  .imd-cta__inner .imd-btn-row { justify-content: flex-end; }
}
.imd-cta--tint { background: var(--imd-blue-tint); color: var(--imd-ink); }
.imd-cta--tint::before { display: none; }
.imd-cta--tint h2 { color: var(--imd-navy); }
.imd-cta--tint p { color: var(--imd-ink-2); }

/* ---------- 15. Footer --------------------------------------------------- */
.imd-footer {
  background: var(--imd-navy); color: var(--imd-on-navy-mute);
  padding-block: clamp(3rem, 5vw, 4.5rem) 0;
  font-size: var(--imd-fs-sm);
}
.imd-footer a { color: #C9D8E7; text-decoration: none; }
.imd-footer a:hover { color: var(--imd-white); text-decoration: underline; text-underline-offset: 0.2em; }
.imd-footer h2, .imd-footer h3 { color: var(--imd-white); }

.imd-footer__top { display: grid; gap: var(--imd-s-8); }
@media (min-width: 860px) {
  .imd-footer__top { grid-template-columns: minmax(0, 1.25fr) minmax(0, 2.4fr); }
}
.imd-footer__brand img { height: 40px; width: auto; margin-bottom: var(--imd-s-5); }
.imd-footer__blurb { max-width: 40ch; line-height: 1.6; margin-bottom: var(--imd-s-5); }
.imd-footer__contact { list-style: none; margin: 0; padding: 0; }
.imd-footer__contact li { margin-bottom: var(--imd-s-2); }
.imd-footer__contact a { font-weight: 600; color: var(--imd-brand); }
.imd-footer__contact a:hover { color: var(--imd-white); }

.imd-footer__cols {
  display: grid; gap: var(--imd-s-7);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 158px), 1fr));
}
.imd-footer__col h3 {
  font-size: var(--imd-fs-xs); font-weight: 700; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--imd-white); margin-bottom: var(--imd-s-4);
}
.imd-footer__col ul { list-style: none; margin: 0; padding: 0; }
.imd-footer__col li { margin-bottom: var(--imd-s-3); line-height: 1.45; }

.imd-footer__bottom {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding-block: var(--imd-s-5);
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  display: flex; flex-wrap: wrap; gap: var(--imd-s-3) var(--imd-s-6);
  align-items: center; justify-content: space-between;
  font-size: var(--imd-fs-xs);
}
.imd-footer__legal { display: flex; flex-wrap: wrap; gap: var(--imd-s-2) var(--imd-s-5); list-style: none; margin: 0; padding: 0; }
.imd-footer__legal li { margin: 0; }
.imd-footer__copy { margin: 0; }

/* ---------- 16. Forms ---------------------------------------------------- */
.imd-form { max-width: 720px; }
.imd-form__grid { display: grid; gap: var(--imd-s-5); }
@media (min-width: 680px) { .imd-form__grid--2 { grid-template-columns: 1fr 1fr; } }
.imd-field { display: flex; flex-direction: column; gap: var(--imd-s-2); min-width: 0; }
.imd-field--full { grid-column: 1 / -1; }

.imd-label { font-size: var(--imd-fs-sm); font-weight: 650; color: var(--imd-navy); }
.imd-label .imd-req { color: var(--imd-danger); margin-left: 0.15em; }
.imd-label .imd-optional { color: var(--imd-muted); font-weight: 450; }
.imd-hint { font-size: var(--imd-fs-xs); color: var(--imd-muted); line-height: 1.5; }

.imd-input, .imd-select, .imd-textarea, .imd-file {
  width: 100%; padding: 0.8rem 0.95rem;
  background: var(--imd-white); color: var(--imd-ink);
  border: 1px solid var(--imd-border-strong); border-radius: var(--imd-radius-sm);
  font: inherit; font-size: var(--imd-fs-base); line-height: 1.5;
  transition: border-color var(--imd-t-fast), box-shadow var(--imd-t-fast);
  min-height: 48px;
}
.imd-textarea { min-height: 148px; resize: vertical; }
.imd-input:hover, .imd-select:hover, .imd-textarea:hover { border-color: var(--imd-muted); }
.imd-input:focus, .imd-select:focus, .imd-textarea:focus, .imd-file:focus {
  border-color: var(--imd-blue); box-shadow: 0 0 0 3px rgba(10, 111, 168, 0.16); outline: none;
}
.imd-input:focus-visible, .imd-select:focus-visible,
.imd-textarea:focus-visible, .imd-file:focus-visible { outline: 3px solid var(--imd-blue); outline-offset: 1px; }
.imd-input[aria-invalid="true"], .imd-select[aria-invalid="true"], .imd-textarea[aria-invalid="true"],
.imd-file[aria-invalid="true"] { border-color: var(--imd-danger); }
.imd-input[aria-invalid="true"]:focus, .imd-textarea[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(179, 35, 24, 0.16);
}
.imd-select {
  appearance: none; -webkit-appearance: none;
  padding-right: 2.6rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%235A6675' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.imd-file { padding: 0.6rem 0.7rem; cursor: pointer; }
.imd-file::file-selector-button {
  margin-right: 0.85rem; padding: 0.55rem 1rem;
  background: var(--imd-gray-100); color: var(--imd-navy);
  border: 1px solid var(--imd-border-strong); border-radius: var(--imd-radius-sm);
  font: inherit; font-size: var(--imd-fs-sm); font-weight: 600; cursor: pointer;
}
.imd-file::file-selector-button:hover { background: var(--imd-gray-200); }

.imd-checkbox {
  display: grid; grid-template-columns: auto 1fr; gap: 0.75rem;
  align-items: start; font-size: var(--imd-fs-sm); line-height: 1.55; color: var(--imd-ink-2);
  cursor: pointer;
}
.imd-checkbox input[type="checkbox"] {
  width: 1.15rem; height: 1.15rem; margin: 0.22em 0 0;
  accent-color: var(--imd-blue); cursor: pointer; flex: 0 0 auto;
}
.imd-checkbox a { font-weight: 600; }

.imd-field-error {
  display: block; font-size: var(--imd-fs-sm); font-weight: 600; color: var(--imd-danger);
}
.imd-field-error:empty { display: none; }

.imd-notice {
  display: flex; gap: var(--imd-s-4); align-items: flex-start;
  padding: var(--imd-s-5); margin-bottom: var(--imd-s-6);
  border: 1px solid; border-radius: var(--imd-radius); font-size: var(--imd-fs-sm);
}
.imd-notice p:last-child { margin-bottom: 0; }
.imd-notice__icon { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 0.15em; }
.imd-notice--success { background: var(--imd-success-bg); border-color: #A6E5C8; color: #05402F; }
.imd-notice--success strong { color: var(--imd-success); }
.imd-notice--error   { background: var(--imd-danger-bg); border-color: #F3B7B2; color: #71160F; }
.imd-notice--error strong { color: var(--imd-danger); }
.imd-notice--info    { background: var(--imd-blue-tint); border-color: var(--imd-blue-tint-2); color: #08415F; }
.imd-notice--warn    { background: var(--imd-warning-bg); border-color: #F0D69B; color: #6A4000; }
.imd-notice ul { margin: var(--imd-s-2) 0 0; padding-left: 1.25em; }
/* A notice's own heading is a real heading element, so the block has a
   programmatic label instead of bold paragraph text imitating one. It keeps
   the appearance of the body text it replaced. */
.imd-notice__title {
  margin: 0 0 var(--imd-s-2);
  font-size: inherit; font-weight: 700; line-height: 1.4;
  color: inherit; letter-spacing: normal;
}
.imd-notice--success .imd-notice__title { color: var(--imd-success); }
.imd-notice--error .imd-notice__title { color: var(--imd-danger); }

.imd-privacy-note {
  font-size: var(--imd-fs-xs); color: var(--imd-muted); line-height: 1.6;
  padding-top: var(--imd-s-4); border-top: 1px solid var(--imd-border);
}

/* Honeypot — hidden from sight but reachable by nothing that matters */
.imd-hp {
  position: absolute !important; left: -9999px !important; top: auto !important;
  width: 1px !important; height: 1px !important; overflow: hidden !important;
}

.imd-form__submit { display: flex; flex-wrap: wrap; gap: var(--imd-s-4); align-items: center; }
.imd-form.is-submitting .imd-btn { opacity: 0.65; pointer-events: none; }

/* Sidebar contact panel */
.imd-panel {
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--imd-gray-50); border: 1px solid var(--imd-border);
  border-radius: var(--imd-radius);
}
.imd-panel h2, .imd-panel h3 { font-size: var(--imd-fs-h4); margin-bottom: var(--imd-s-3); }
.imd-panel p { font-size: var(--imd-fs-sm); color: var(--imd-muted); }
.imd-panel + .imd-panel { margin-top: var(--imd-s-5); }

/* ---------- 17. Jobs & careers ------------------------------------------ */
.imd-jobs-filter {
  display: grid; gap: var(--imd-s-4); align-items: end;
  padding: var(--imd-s-5); margin-bottom: var(--imd-s-7);
  background: var(--imd-gray-50); border: 1px solid var(--imd-border);
  border-radius: var(--imd-radius);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
}
.imd-jobs-filter__actions { display: flex; gap: var(--imd-s-3); }
.imd-jobs-count { font-size: var(--imd-fs-sm); color: var(--imd-muted); margin-bottom: var(--imd-s-5); }

.imd-job-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--imd-s-4); }
.imd-job-list li { margin: 0; }
.imd-job-card {
  position: relative; display: block; padding: var(--imd-s-6);
  background: var(--imd-white); border: 1px solid var(--imd-border);
  border-radius: var(--imd-radius); box-shadow: var(--imd-shadow-xs);
  transition: transform var(--imd-t), box-shadow var(--imd-t), border-color var(--imd-t);
}
.imd-job-card:hover, .imd-job-card:focus-within {
  transform: translateY(-2px); box-shadow: var(--imd-shadow); border-color: var(--imd-blue-tint-2);
}
.imd-job-card__title { font-size: var(--imd-fs-h4); margin-bottom: var(--imd-s-3); }
.imd-job-card__title a { color: var(--imd-navy); text-decoration: none; }
.imd-job-card__title a::after { content: ""; position: absolute; inset: 0; }
.imd-job-card__title a:hover { color: var(--imd-blue-deep); }
.imd-job-card__excerpt { font-size: var(--imd-fs-sm); color: var(--imd-muted); margin: var(--imd-s-4) 0 0; }

.imd-job-meta {
  display: flex; flex-wrap: wrap; gap: var(--imd-s-2) var(--imd-s-3);
  list-style: none; margin: 0; padding: 0;
}
.imd-job-meta li { margin: 0; }
.imd-chip {
  display: inline-flex; align-items: center; gap: 0.4em;
  padding: 0.3em 0.75em; border-radius: 100px;
  background: var(--imd-gray-100); color: var(--imd-ink-2);
  font-size: var(--imd-fs-xs); font-weight: 600; white-space: nowrap;
}
.imd-chip svg { width: 13px; height: 13px; opacity: 0.75; }
.imd-chip--brand { background: var(--imd-blue-tint); color: #08415F; }
.imd-chip--featured { background: #FFF4E0; color: #6A4000; }
.imd-chip--closing { background: var(--imd-danger-bg); color: #71160F; }

.imd-job-header__meta { margin-top: var(--imd-s-5); }
.imd-job-body h2 { font-size: var(--imd-fs-h3); margin-top: var(--imd-s-8); }
.imd-job-body h2:first-child { margin-top: 0; }
.imd-job-body h3 { font-size: var(--imd-fs-h4); margin-top: var(--imd-s-6); }

.imd-job-aside { position: sticky; top: calc(var(--imd-header-h) + 1.5rem); }
.imd-job-facts { margin: 0; }
.imd-job-facts > div {
  display: grid; grid-template-columns: 1fr; gap: 0.15rem;
  padding: var(--imd-s-3) 0; border-bottom: 1px solid var(--imd-border);
}
.imd-job-facts > div:last-child { border-bottom: 0; }
.imd-job-facts dt {
  font-size: var(--imd-fs-xs); font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--imd-muted);
}
.imd-job-facts dd { margin: 0; font-size: var(--imd-fs-sm); font-weight: 600; color: var(--imd-navy); }

.imd-empty {
  padding: clamp(2.5rem, 5vw, 4rem) var(--imd-s-6); text-align: center;
  background: var(--imd-gray-50); border: 1px dashed var(--imd-border-strong);
  border-radius: var(--imd-radius);
}
.imd-empty h2, .imd-empty h3 { font-size: var(--imd-fs-h3); margin-bottom: var(--imd-s-3); }
.imd-empty p { color: var(--imd-muted); max-width: 52ch; margin-inline: auto; }

.imd-apply-anchor { scroll-margin-top: calc(var(--imd-header-h) + 2rem); }

/* ---------- 18. Insights / posts ---------------------------------------- */
.imd-post-list { display: grid; gap: var(--imd-s-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.imd-post-card { position: relative; display: flex; flex-direction: column; }
.imd-post-card__thumb {
  aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--imd-radius);
  background: var(--imd-gray-100); margin-bottom: var(--imd-s-5);
}
.imd-post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.imd-post-card h3 { font-size: var(--imd-fs-h4); margin-bottom: var(--imd-s-3); }
.imd-post-card h3 a { color: var(--imd-navy); text-decoration: none; }
.imd-post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.imd-post-card h3 a:hover { color: var(--imd-blue-deep); }
.imd-post-card p { font-size: var(--imd-fs-sm); color: var(--imd-muted); }

.imd-post-meta {
  display: flex; flex-wrap: wrap; gap: var(--imd-s-2) var(--imd-s-4);
  font-size: var(--imd-fs-xs); color: var(--imd-muted);
  margin-bottom: var(--imd-s-3); letter-spacing: 0.02em;
}
.imd-entry-content > * { margin-bottom: var(--imd-s-5); }
.imd-entry-content > h2 { margin-top: var(--imd-s-8); }
.imd-entry-content > h3 { margin-top: var(--imd-s-7); }
.imd-entry-content > :first-child { margin-top: 0; }
.imd-entry-content > :last-child { margin-bottom: 0; }
.imd-entry-content img { border-radius: var(--imd-radius); }

.imd-pagination { margin-top: clamp(2.5rem, 4vw, 3.5rem); }
.imd-pagination .nav-links { display: flex; flex-wrap: wrap; gap: var(--imd-s-2); align-items: center; }
.imd-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 0.75rem;
  border: 1px solid var(--imd-border); border-radius: var(--imd-radius-sm);
  color: var(--imd-ink-2); text-decoration: none; font-size: var(--imd-fs-sm); font-weight: 600;
}
.imd-pagination .page-numbers:hover { background: var(--imd-gray-50); border-color: var(--imd-border-strong); }
.imd-pagination .page-numbers.current {
  background: var(--imd-blue); border-color: var(--imd-blue); color: var(--imd-white);
}
.imd-pagination .page-numbers.dots { border-color: transparent; }

/* Search results */
.imd-result { padding: var(--imd-s-6) 0; border-bottom: 1px solid var(--imd-border); }
.imd-result:first-child { padding-top: 0; }
.imd-result h2 { font-size: var(--imd-fs-h4); margin-bottom: var(--imd-s-2); }
.imd-result__url { font-size: var(--imd-fs-xs); color: var(--imd-muted); margin-bottom: var(--imd-s-3); }

.imd-searchform { display: flex; gap: var(--imd-s-3); max-width: 520px; }
.imd-searchform .imd-input { flex: 1 1 auto; }

/* 404 */
.imd-404 { text-align: center; padding-block: clamp(3.5rem, 8vw, 7rem); }
.imd-404__code {
  display: block; font-size: clamp(4rem, 13vw, 8.5rem); font-weight: 800;
  line-height: 0.95; letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--imd-brand), var(--imd-blue-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: var(--imd-s-5);
}
.imd-404__links {
  display: grid; gap: var(--imd-s-4); margin-top: var(--imd-s-9);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  text-align: left;
}

/* ---------- 19. Utilities & block editor bridges ------------------------ */
.imd-text-center { text-align: center; }
.imd-mt-0 { margin-top: 0 !important; }
.imd-mb-0 { margin-bottom: 0 !important; }
.imd-mt-6 { margin-top: var(--imd-s-6) !important; }
.imd-mt-7 { margin-top: var(--imd-s-7) !important; }
.imd-mt-8 { margin-top: var(--imd-s-8) !important; }
.imd-hide { display: none !important; }
.imd-muted { color: var(--imd-muted); }
.imd-small { font-size: var(--imd-fs-sm); }
[hidden] { display: none !important; }

/* Core block alignment inside constrained content */
.imd-entry-content .alignwide  { max-width: var(--imd-container-wide); }
.imd-entry-content .alignfull  { max-width: none; }
.imd-entry-content .alignleft  { float: left; margin: 0.35rem var(--imd-s-5) var(--imd-s-4) 0; }
.imd-entry-content .alignright { float: right; margin: 0.35rem 0 var(--imd-s-4) var(--imd-s-5); }
.imd-entry-content .aligncenter { margin-inline: auto; }
.wp-block-image figcaption, .wp-caption-text {
  font-size: var(--imd-fs-xs); color: var(--imd-muted); text-align: center; margin-top: var(--imd-s-3);
}
.wp-block-buttons { gap: var(--imd-s-4); }
.wp-block-button__link { border-radius: var(--imd-radius-sm); font-weight: 650; padding: 0.9em 1.65em; }
.wp-block-separator { border-top: 1px solid var(--imd-border); border-bottom: 0; opacity: 1; }
.wp-block-group.has-background { padding: var(--imd-s-6); border-radius: var(--imd-radius); }

/* Editor-visible section wrappers keep their look in the block editor too */
.imd-section > .imd-container > .wp-block-group__inner-container > *:last-child { margin-bottom: 0; }

/* ---------- 20. Motion & responsive ------------------------------------- */
.imd-reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.imd-reveal.is-visible { opacity: 1; transform: none; }
.no-js .imd-reveal { opacity: 1; transform: none; }

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

@media (prefers-contrast: more) {
  :root { --imd-border: #8B98A8; --imd-border-strong: #5A6675; --imd-muted: #414B58; }
  .imd-card, .imd-pillar, .imd-job-card { border-width: 2px; }
}

@media (max-width: 599px) {
  :root { --imd-header-h: 66px; }
  .imd-card { padding: var(--imd-s-5); }
  .imd-cta__inner .imd-btn-row .imd-btn { width: 100%; }
}

@media (max-width: 359px) {
  :root { --imd-gutter: 1rem; }
  .imd-btn { padding: 0.85em 1.15em; font-size: var(--imd-fs-xs); }
  .imd-brand img, .imd-brand .custom-logo { height: 34px; }
}
