/* ==========================================================================
   Formos Consulting — design system
   Bootstrap 5 CSS is loaded first (reboot, grid, utilities) so hand-authored
   HTML content pages can use its classes. Components here use their own
   class names to avoid clashing with Bootstrap's.
   ========================================================================== */

/* ---------- Fonts (self-hosted, variable, OFL licensed) ---------- */
@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-var-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/montserrat-var-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* Metric-matched local fallbacks so text doesn't reflow (layout shift) when the web fonts arrive. */
@font-face {
    font-family: "Inter Fallback";
    src: local("Arial");
    ascent-override: 90.2%;
    descent-override: 22.48%;
    line-gap-override: 0%;
    size-adjust: 107.4%;
}

@font-face {
    font-family: "Montserrat Fallback";
    src: local("Arial");
    ascent-override: 85.79%;
    descent-override: 22.25%;
    line-gap-override: 0%;
    size-adjust: 112.83%;
}

/* ---------- Tokens ---------- */
:root {
    /* Brand (from the logo) */
    --navy-950: #011424;
    --navy-900: #02223d;
    --navy-800: #023e6f;
    --navy-700: #0a4f88;
    --blue-500: #1b98f2;
    --blue-300: #7cc6ff;
    --blue-100: #e6f3fe;
    --cta: #0b74c4;          /* 4.9:1 with white */
    --cta-hover: #085c9c;

    /* Neutrals */
    --ink: #0f1b2a;
    --text: #2b3a4b;
    --muted: #526274;        /* 6.3:1 on white */
    --line: #dce3eb;
    --surface: #f5f8fb;
    --surface-2: #eaf0f6;
    --white: #fff;

    --font-sans: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-display: "Montserrat", "Montserrat Fallback", system-ui, sans-serif;

    --radius: 14px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(1, 20, 36, .06), 0 1px 3px rgba(1, 20, 36, .08);
    --shadow: 0 10px 30px -12px rgba(1, 20, 36, .22);
    --shadow-lg: 0 24px 60px -20px rgba(1, 20, 36, .35);
    --header-h: 76px;
    --wrap: 1240px;
    --ease: cubic-bezier(.2, .7, .2, 1);

    --bs-body-font-family: var(--font-sans);
    --bs-body-font-size: 1.0625rem;
    --bs-body-line-height: 1.65;
    --bs-body-color: var(--text);
    --bs-link-color-rgb: 11, 116, 196;
    --bs-link-hover-color-rgb: 8, 92, 156;
    --bs-border-color: var(--line);
}

/* ---------- Base ---------- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    font-feature-settings: "cv11", "ss01";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.15;
}

h1 { font-size: clamp(2.25rem, 1.4rem + 3.2vw, 3.75rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

a {
    color: var(--cta);
    text-underline-offset: .2em;
    text-decoration-thickness: 1px;
}

a:hover { color: var(--cta-hover); }

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

img, svg { vertical-align: middle; }
img { max-width: 100%; height: auto; }

.icon {
    width: 1.25em;
    height: 1.25em;
    flex-shrink: 0;
}

::selection { background: var(--blue-100); color: var(--ink); }

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: clamp(20px, 4vw, 32px);
}

.wrap-narrow { max-width: 860px; }

.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: 12px;
    z-index: 2000;
    background: var(--white);
    color: var(--navy-800);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    font-weight: 600;
}

/* Review markers ({{TODO: ...}}) — Development only */
mark.todo {
    background: #fff3a3;
    color: #5c4300;
    border: 1px dashed #c9a400;
    border-radius: 4px;
    padding: 0 .3em;
    font-size: .85em;
    font-weight: 600;
    font-family: var(--font-sans);
    letter-spacing: 0;
    text-transform: none;
}

.draft-badge {
    display: inline-block;
    background: #fff3a3;
    color: #5c4300;
    border: 1px dashed #c9a400;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    padding: 2px 10px;
    letter-spacing: .04em;
    text-transform: uppercase;
    vertical-align: middle;
}

/* ---------- Buttons & links ---------- */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    min-height: 48px;
    padding: .75rem 1.4rem;
    border-radius: 999px;
    border: 2px solid transparent;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}

.button .icon { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
.button:hover .icon { transform: translateX(3px); }

.button-primary { background: var(--cta); color: var(--white); }
.button-primary:hover { background: var(--cta-hover); color: var(--white); box-shadow: 0 8px 20px -8px rgba(11, 116, 196, .6); }

.button-light { background: var(--white); color: var(--navy-800); }
.button-light:hover { background: var(--blue-100); color: var(--navy-900); }

.button-outline { border-color: currentColor; color: var(--navy-800); background: transparent; }
.button-outline:hover { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }

.on-dark .button-outline { color: var(--white); }
.on-dark .button-outline:hover { background: var(--white); border-color: var(--white); color: var(--navy-900); }

.button-sm { min-height: 40px; padding: .5rem 1.1rem; font-size: .9375rem; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    font-weight: 600;
    text-decoration: none;
    color: var(--cta);
}

.link-arrow .icon { width: 1em; height: 1em; transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid transparent;
    transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}

@supports (backdrop-filter: blur(8px)) {
    .site-header { background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(12px); }
}

.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -14px rgba(1, 20, 36, .35); }

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--header-h);
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 50px; width: auto; }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav > ul > li { position: static; }

.nav-link-top {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: none;
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: .975rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s, color .15s;
}

.nav-link-top .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.nav-link-top:hover, .nav-item.is-open > .nav-link-top { background: var(--surface-2); color: var(--navy-800); }
.nav-item.is-open > .nav-link-top .icon { transform: rotate(180deg); }
.nav-link-top.is-current { color: var(--navy-800); font-weight: 600; }
.nav-link-top.is-current::after {
    content: "";
    position: absolute;
    width: 0;
}

.header-cta { margin-left: 8px; }

/* Mega menu panels */
.mega {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s linear .18s;
}

.nav-item.is-open > .mega {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s;
}

.mega-inner { padding-block: 32px 36px; }

/* Each column spans two shared rows (title, links) via subgrid, so every title row is
   the height of the tallest title and the rules under them line up across the menu. */
.mega-grid-services {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: auto 1fr;
    column-gap: 28px;
}

.mega-col { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; }

.mega-col-title {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    align-content: end;
    column-gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.25;
    color: var(--ink);
    text-decoration: none;
    padding-bottom: 12px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.mega-col-title > span { text-wrap: balance; }
.mega-col-title .icon { width: 22px; height: 22px; color: var(--cta); }
.mega-col-title:hover { color: var(--cta); }

.mega ul { list-style: none; padding: 0; margin: 0; }
.mega li a {
    display: block;
    padding: 5px 0;
    color: var(--text);
    font-size: .925rem;
    text-decoration: none;
    line-height: 1.35;
}

.mega li a:hover { color: var(--cta); }

.mega-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: .95rem;
    color: var(--muted);
}

.mega-grid-industries { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.industry-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }

.industry-link {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text);
    transition: background-color .15s;
}

.industry-link:hover { background: var(--surface); color: var(--text); }
.industry-link .icon-badge.sm { width: 44px; height: 44px; border-radius: 12px; }
.industry-link .icon-badge.sm .icon { width: 22px; height: 22px; }
.industry-link strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: .975rem; }
.industry-link-text > span { display: block; font-size: .875rem; color: var(--muted); line-height: 1.45; }

.mega-promo {
    background: linear-gradient(140deg, var(--navy-900), var(--navy-800));
    color: rgba(255, 255, 255, .85);
    border-radius: var(--radius);
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.mega-promo h3 { color: var(--white); font-size: 1.2rem; }
.mega-promo p { font-size: .95rem; }

.dropdown-panel {
    position: absolute;
    top: calc(100% - 8px);
    min-width: 240px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s linear .18s;
}

.nav-item.has-dropdown { position: relative; }
.nav-item.is-open > .dropdown-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s; }
.dropdown-panel a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.dropdown-panel a span { display: block; font-weight: 400; font-size: .85rem; color: var(--muted); }
.dropdown-panel a:hover { background: var(--surface); }

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--ink);
    align-items: center;
    justify-content: center;
}

.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
body.nav-open .nav-toggle .icon-open { display: none; }
body.nav-open .nav-toggle .icon-close { display: block; }

/* Mobile navigation */
.mobile-nav {
    display: none;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--white);
    overflow-y: auto;
    padding: 8px 0 40px;
    z-index: 999;
}

body.nav-open { overflow: hidden; }
body.nav-open .mobile-nav { display: block; }

.mobile-nav details { border-bottom: 1px solid var(--line); }
.mobile-nav summary, .mobile-nav .m-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--ink);
    text-decoration: none;
    list-style: none;
    cursor: pointer;
}

.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary .icon { transition: transform .2s; }
.mobile-nav details[open] summary .icon { transform: rotate(180deg); }
.mobile-nav .m-link { border-bottom: 1px solid var(--line); }
.mobile-nav .m-group { padding: 0 0 16px; }
.mobile-nav .m-group h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 14px 0 6px; }
.mobile-nav .m-group a { display: block; padding: 7px 0; color: var(--text); text-decoration: none; }
.mobile-nav .m-cta { margin-top: 24px; display: grid; gap: 12px; }

@media (max-width: 1139.98px) {
    .main-nav, .header-cta { display: none; }
    .nav-toggle { display: inline-flex; }
}

@media (min-width: 1140px) {
    .mobile-nav { display: none !important; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 8vw, 112px); }
.section-tight { padding-block: clamp(48px, 6vw, 72px); }
.section-alt { background: var(--surface); }
.section + .section-alt, .section-alt + .section:not(.section-alt):not(.section-dark) { border-top: 0; }

.section-dark {
    background: var(--navy-950);
    color: rgba(255, 255, 255, .78);
    position: relative;
    overflow: hidden;
}

.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p.lead { font-size: 1.15rem; color: var(--muted); margin: 0; }
.section-dark .section-head p.lead { color: rgba(255, 255, 255, .72); }

.section-head-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: clamp(32px, 4vw, 48px);
}

.section-head-row .section-head { margin-bottom: 0; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--cta);
    margin-bottom: 14px;
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.on-dark .eyebrow, .section-dark .eyebrow { color: var(--blue-300); }

.lead { font-size: 1.2rem; line-height: 1.6; }

/* Grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 991.98px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 639.98px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Heroes ---------- */
.hero {
    position: relative;
    background: var(--navy-950);
    color: rgba(255, 255, 255, .82);
    overflow: hidden;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1200px 600px at 85% -10%, rgba(27, 152, 242, .28), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(10, 79, 136, .55), transparent 60%),
        linear-gradient(180deg, var(--navy-900), var(--navy-950));
    z-index: -2;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../images/patterns/contours.svg") center / cover no-repeat;
    z-index: -1;
    opacity: .9;
}

.hero h1 { color: var(--white); }
.hero .lead { color: rgba(255, 255, 255, .8); }

/* Home hero with photo */
.hero-home { min-height: min(760px, 92vh); display: flex; align-items: center; }
.hero-home .hero-photo {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-home .hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% 50%;
    opacity: .42;
    mix-blend-mode: luminosity;
}

.hero-home .hero-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--navy-950) 0%, rgba(1, 20, 36, .88) 38%, rgba(1, 20, 36, .35) 75%, rgba(1, 20, 36, .55) 100%);
}

.hero-home::after { opacity: .5; }
.hero-home .hero-content { max-width: 760px; padding-block: 96px 120px; }
.hero-home h1 { font-size: clamp(2.5rem, 1.5rem + 4vw, 4.4rem); margin-bottom: 24px; }
.hero-home h1 em { font-style: normal; color: var(--blue-300); }
.hero-home .lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); max-width: 620px; margin-bottom: 36px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, .15);
    font-size: .925rem;
    color: rgba(255, 255, 255, .78);
}

.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .icon { color: var(--blue-300); }

/* Interior page hero */
.page-hero { padding-block: clamp(48px, 6vw, 88px) clamp(56px, 7vw, 96px); }
.page-hero .hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: end; }
.page-hero h1 { margin-bottom: 20px; max-width: 900px; }
.page-hero .lead { max-width: 760px; margin-bottom: 0; }
.page-hero .hero-actions { margin-top: 32px; }

.page-hero-icon {
    width: 128px;
    height: 128px;
    border-radius: 32px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, rgba(27, 152, 242, .25), rgba(27, 152, 242, .05));
    border: 1px solid rgba(124, 198, 255, .25);
    color: var(--blue-300);
}

.page-hero-icon .icon { width: 60px; height: 60px; stroke-width: 1.25; }

@media (max-width: 767.98px) {
    .page-hero .hero-grid { grid-template-columns: 1fr; }
    .page-hero-icon { display: none; }
}

.breadcrumbs { margin-bottom: 28px; font-size: .875rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .6); }
.breadcrumbs li + li::before { content: "/"; color: rgba(255, 255, 255, .35); }
.breadcrumbs a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.breadcrumbs a:hover { color: var(--white); text-decoration: underline; }
.breadcrumbs [aria-current] { color: rgba(255, 255, 255, .6); }

/* ---------- Cards / tiles ---------- */
.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    color: var(--text);
    text-decoration: none;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}

a.tile:hover, .tile:has(a.stretched:hover) {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(11, 116, 196, .35);
    color: var(--text);
}

.tile h3 { font-size: 1.2rem; margin-bottom: 10px; }
.tile p { color: var(--muted); font-size: .975rem; margin-bottom: 0; }
.tile .link-arrow { margin-top: auto; padding-top: 20px; }
.tile a.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.tile a.stretched { color: inherit; text-decoration: none; }

.icon-badge {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--blue-100);
    color: var(--cta);
    margin-bottom: 20px;
    flex-shrink: 0;
}

.icon-badge .icon { width: 26px; height: 26px; }
.icon-badge.sm { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 0; }
.icon-badge.sm .icon { width: 20px; height: 20px; }

/* Practice tiles (home + services hub) */
.practice-tile { padding: 32px; }
.practice-tile ul { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.practice-tile li {
    font-size: .8125rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px 10px;
    color: var(--muted);
}

/* Problem cards ("Where do you need help?") */
.need-tile {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
}

.need-tile .icon-badge { margin: 0; width: 44px; height: 44px; border-radius: 12px; }
.need-tile .icon-badge .icon { width: 22px; height: 22px; }
.need-tile strong { display: block; font-family: var(--font-display); color: var(--ink); font-size: 1rem; line-height: 1.3; }
.need-tile span:not(.icon-badge) { display: block; font-size: .875rem; color: var(--muted); margin-top: 2px; }
.need-tile > .icon { margin-left: auto; color: var(--cta); width: 18px; height: 18px; transition: transform .2s var(--ease); }
.need-tile:hover > .icon { transform: translateX(4px); }

/* Credential strip */
.credentials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.credential { display: flex; gap: 16px; align-items: flex-start; padding: 26px 28px; }
.credential + .credential { border-left: 1px solid var(--line); }
.credential .icon-badge { margin: 0; }
.credential strong { display: block; font-family: var(--font-display); color: var(--ink); font-size: 1.02rem; margin-bottom: 4px; }
.credential span:not(.icon-badge) { display: block; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.credential img.badge-img { height: 56px; width: auto; }

.credentials-overlap { margin-top: -56px; position: relative; z-index: 2; }

@media (max-width: 899.98px) {
    .credentials { grid-template-columns: 1fr; }
    .credential + .credential { border-left: 0; border-top: 1px solid var(--line); }
    .credentials-overlap { margin-top: -40px; }
}

/* Stats band */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.stat { border-left: 2px solid rgba(124, 198, 255, .35); padding-left: 22px; }
.stat strong {
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.25rem, 1.6rem + 2vw, 3.25rem);
    line-height: 1;
    letter-spacing: -.03em;
    color: var(--white);
    margin-bottom: 10px;
}

.stat span { font-size: .975rem; color: rgba(255, 255, 255, .72); }

@media (max-width: 899.98px) {
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Why Formos */
.why-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.why-list { display: grid; gap: 20px; }
.why-item { display: flex; gap: 18px; }
.why-item .icon-badge { margin: 0; }
.why-item h3 { font-size: 1.1rem; margin-bottom: 6px; }
.why-item p { margin: 0; color: var(--muted); font-size: .975rem; }

.quote-panel {
    position: relative;
    background: linear-gradient(150deg, var(--navy-900), var(--navy-800));
    border-radius: 20px;
    padding: clamp(32px, 4vw, 48px);
    color: rgba(255, 255, 255, .85);
    overflow: hidden;
    isolation: isolate;
}

.quote-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../images/patterns/contours.svg") center / cover;
    opacity: .6;
    z-index: -1;
}

.quote-panel .icon { width: 40px; height: 40px; color: var(--blue-300); margin-bottom: 20px; }
.quote-panel p { font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + .8vw, 1.6rem); font-weight: 600; line-height: 1.4; color: var(--white); letter-spacing: -.01em; }
.quote-panel footer { font-size: .95rem; color: rgba(255, 255, 255, .7); }

@media (max-width: 899.98px) {
    .why-grid { grid-template-columns: 1fr; }
}

/* ---------- Content blocks (service / industry pages) ---------- */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }

@media (max-width: 991.98px) {
    .content-grid { grid-template-columns: 1fr; }
}

.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }

.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.side-card h2, .side-card h3 { font-size: 1rem; margin-bottom: 14px; text-transform: none; }
.side-card ul { list-style: none; padding: 0; margin: 0; }
.side-card li + li { border-top: 1px solid var(--line); }
.side-card li a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; }
.side-card li a:hover { color: var(--cta); }
.side-card li a .icon { width: 16px; height: 16px; color: var(--muted); }
.side-card li a[aria-current] { color: var(--cta); font-weight: 600; }

.side-card.dark { background: linear-gradient(150deg, var(--navy-900), var(--navy-800)); border: 0; color: rgba(255, 255, 255, .8); }
.side-card.dark h2, .side-card.dark h3 { color: var(--white); font-size: 1.15rem; }
.side-card.dark p { font-size: .95rem; }

.capabilities .tile { padding: 26px; }
.capabilities .tile h3 { font-size: 1.08rem; }

.approach { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; }
.approach-step { position: relative; padding: 0 24px 0 0; counter-increment: step; }
.approach-step::before {
    content: counter(step, decimal-leading-zero);
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--cta);
    color: var(--cta);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: .95rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.approach-step::after {
    content: "";
    position: absolute;
    top: 24px;
    left: 48px;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cta), var(--line));
}

.approach-step:last-child::after { display: none; }
.approach-step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.approach-step p { color: var(--muted); font-size: .95rem; margin: 0; }

@media (max-width: 767.98px) {
    .approach { grid-template-columns: 1fr; gap: 28px; }
    .approach-step { padding: 0 0 0 68px; }
    .approach-step::before { position: absolute; left: 0; top: -4px; }
    .approach-step::after { display: none; }
}

.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { color: var(--cta); width: 22px; height: 22px; margin-top: 2px; }

@media (max-width: 639.98px) {
    .checklist { grid-template-columns: 1fr; }
}

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 22px 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary .faq-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    color: var(--cta);
    transform: rotate(45deg); /* the "x" icon rotated 45° reads as "+" */
    transition: transform .25s var(--ease), background-color .2s;
}

.faq summary .faq-icon .icon { width: 16px; height: 16px; }
.faq details[open] summary .faq-icon { transform: rotate(0deg); background: var(--blue-100); }
.faq summary:hover { color: var(--cta); }
.faq .faq-answer { padding: 0 56px 24px 0; color: var(--text); }
.faq .faq-answer p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band {
    position: relative;
    background: linear-gradient(120deg, var(--navy-900), var(--navy-800) 60%, #0b5d9e);
    color: rgba(255, 255, 255, .82);
    overflow: hidden;
    isolation: isolate;
}

.cta-band::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../images/patterns/contours.svg") center / cover;
    opacity: .7;
    z-index: -1;
}

.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin-bottom: 10px; }
.cta-band p { margin: 0; font-size: 1.1rem; max-width: 640px; }

/* ---------- Prose (Markdown bodies) ---------- */
.prose { font-size: 1.0625rem; line-height: 1.75; color: var(--text); max-width: 760px; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); margin: 2.2em 0 .7em; }
.prose h3 { font-size: 1.3rem; margin: 1.8em 0 .6em; }
.prose h4 { margin: 1.5em 0 .5em; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.15em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--cta); }
.prose a { text-decoration: underline; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose blockquote {
    margin: 1.8em 0;
    padding: 4px 0 4px 24px;
    border-left: 3px solid var(--cta);
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ink);
}

.prose hr { margin: 2.5em 0; border-color: var(--line); opacity: 1; }
.prose code { background: var(--surface-2); padding: .1em .35em; border-radius: 4px; font-size: .9em; color: var(--navy-800); }
.prose .table-wrap { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 0; }
.prose th { background: var(--surface); color: var(--ink); font-weight: 650; text-align: left; }
.prose th, .prose td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose img { border-radius: var(--radius-sm); }

.prose .callout {
    background: var(--blue-100);
    border-left: 4px solid var(--cta);
    border-radius: var(--radius-sm);
    padding: 18px 22px;
    margin: 1.6em 0;
}

.prose .callout > :last-child { margin-bottom: 0; }

/* ---------- Insights ---------- */
.insight-card { padding: 0; overflow: hidden; }
.insight-card .insight-art {
    position: relative;
    aspect-ratio: 16 / 7;
    background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
    display: grid;
    place-items: center;
    color: var(--blue-300);
    overflow: hidden;
    isolation: isolate;
}

.insight-card .insight-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../images/patterns/contours.svg") center / cover;
    opacity: .7;
    z-index: -1;
}

.insight-card .insight-art .icon { width: 44px; height: 44px; stroke-width: 1.4; }
.insight-card .insight-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.insight-card h3 { font-size: 1.15rem; line-height: 1.3; }
.insight-card p { font-size: .95rem; }

.insight-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .85rem; color: var(--muted); margin-top: auto; padding-top: 18px; }
.insight-meta span { display: inline-flex; align-items: center; gap: 6px; }
.insight-meta .icon { width: 15px; height: 15px; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--navy-800);
    background: var(--blue-100);
    border-radius: 999px;
    padding: 4px 12px;
    text-decoration: none;
    margin-bottom: 12px;
    width: fit-content;
}

a.chip:hover { background: var(--navy-800); color: var(--white); }
.chip.is-active { background: var(--navy-800); color: var(--white); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-row .chip { margin: 0; }

.featured-insight { display: grid; grid-template-columns: 1.1fr 1fr; padding: 0; overflow: hidden; }
.featured-insight .insight-art { aspect-ratio: auto; min-height: 320px; }
.featured-insight .insight-body { padding: clamp(28px, 4vw, 48px); justify-content: center; }
.featured-insight h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }

@media (max-width: 899.98px) {
    .featured-insight { grid-template-columns: 1fr; }
    .featured-insight .insight-art { min-height: 200px; }
}

.article-hero .article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 28px; font-size: .95rem; color: rgba(255, 255, 255, .75); }
.article-hero .article-meta span { display: inline-flex; align-items: center; gap: 8px; }
.article-hero .article-meta .icon { color: var(--blue-300); width: 18px; height: 18px; }
.article-hero .article-meta a { color: var(--white); }
.article-hero .chip { background: rgba(124, 198, 255, .15); color: var(--blue-300); }

.takeaways {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 30px;
    margin-bottom: 40px;
}

.takeaways h2 { font-size: 1.1rem; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.takeaways h2 .icon { color: var(--cta); }
.takeaways ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.takeaways li { display: flex; gap: 12px; }
.takeaways li .icon { color: var(--cta); width: 20px; height: 20px; margin-top: 3px; }

.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc li a { display: flex; gap: 10px; padding: 7px 0; color: var(--text); text-decoration: none; font-size: .92rem; line-height: 1.4; }
.toc li a::before { content: counter(toc, decimal-leading-zero); color: var(--muted); font-weight: 600; font-size: .8rem; padding-top: 2px; }
.toc li a:hover, .toc li a.is-active { color: var(--cta); }

.author-card { display: flex; gap: 14px; align-items: center; }
.author-card .avatar { width: 56px; height: 56px; }
.author-card strong { display: block; color: var(--ink); font-family: var(--font-display); }
.author-card span { display: block; font-size: .875rem; color: var(--muted); }

.sources ol { padding-left: 1.2em; font-size: .95rem; }
.sources li { margin-bottom: 6px; }

/* People */
.avatar {
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--navy-800), var(--blue-500));
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 700;
    overflow: hidden;
    flex-shrink: 0;
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }

.person-card { text-align: left; }
.person-card .person-photo {
    aspect-ratio: 4 / 4.2;
    border-radius: 12px;
    margin: -8px -8px 22px;
    background: linear-gradient(160deg, var(--surface-2), var(--blue-100));
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--navy-700);
}

.person-card .person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-card .person-photo .icon { width: 72px; height: 72px; stroke-width: 1; opacity: .5; }
.person-card .role { color: var(--cta); font-weight: 600; font-size: .925rem; margin-bottom: 8px; }
.creds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.creds span { font-size: .75rem; font-weight: 700; letter-spacing: .04em; color: var(--navy-800); background: var(--surface-2); border-radius: 6px; padding: 3px 8px; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }

@media (max-width: 639.98px) {
    .form-grid { grid-template-columns: 1fr; }
}

.field label { display: block; font-weight: 600; font-size: .925rem; color: var(--ink); margin-bottom: 6px; }
.field label .optional { font-weight: 400; color: var(--muted); }

.field input, .field select, .field textarea {
    width: 100%;
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: var(--white);
    border: 1.5px solid #c5d0dc;
    border-radius: 10px;
    padding: 12px 14px;
    transition: border-color .15s, box-shadow .15s;
}

.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cta); box-shadow: 0 0 0 4px rgba(11, 116, 196, .15); }
.field .input-validation-error { border-color: #c62828; }
.field .field-validation-error { display: block; color: #b3261e; font-size: .875rem; margin-top: 6px; }
.validation-summary-errors { color: #b3261e; background: #fdecea; border-radius: 10px; padding: 14px 18px; margin-bottom: 20px; }
.validation-summary-errors ul { margin: 0; padding-left: 1.2em; }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }

/* Honeypot: hidden from people, visible to naive bots */
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.success-panel { text-align: center; padding: 24px 8px; }
.success-panel .icon-badge { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 20px; }
.success-panel .icon-badge .icon { width: 36px; height: 36px; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .icon-badge { margin: 0; }
.contact-list strong { display: block; color: var(--ink); font-family: var(--font-display); }
.contact-list a { font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy-950);
    color: rgba(255, 255, 255, .7);
    font-size: .95rem;
    padding-top: clamp(56px, 7vw, 88px);
}

.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); gap: 40px; }
.footer-brand img { height: 46px; width: auto; filter: brightness(0) invert(1); opacity: .95; margin-bottom: 20px; }
.footer-brand p { max-width: 320px; }
.site-footer h2 { font-family: var(--font-sans); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: var(--blue-300); width: 18px; height: 18px; margin-top: 3px; }

.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.social a:hover { background: var(--cta); text-decoration: none; }
.social .icon { width: 18px; height: 18px; color: var(--white); }

.footer-bottom {
    margin-top: clamp(48px, 6vw, 72px);
    padding-block: 24px 32px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px 32px;
    font-size: .85rem;
    color: rgba(255, 255, 255, .55);
}

.footer-bottom p { margin: 0; max-width: 760px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-legal button { background: none; border: 0; padding: 0; color: rgba(255, 255, 255, .75); font: inherit; cursor: pointer; }
.footer-legal button:hover { color: var(--white); text-decoration: underline; }

@media (max-width: 991.98px) {
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 479.98px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Consent bar ---------- */
.consent-bar {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 1100;
    max-width: 880px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 12px 20px;
    flex-wrap: wrap;
    background: var(--navy-950);
    color: rgba(255, 255, 255, .85);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    padding: 14px 16px 14px 20px;
    font-size: .9rem;
    line-height: 1.45;
    transform: translateY(0);
    transition: transform .3s var(--ease), opacity .3s var(--ease);
}

.consent-bar[hidden] { display: none; }
.consent-bar p { margin: 0; flex: 1 1 320px; }
.consent-bar a { color: var(--blue-300); }
.consent-actions { display: flex; gap: 8px; }
.consent-actions button { min-height: 38px; padding: .4rem 1rem; font-size: .875rem; }
.consent-bar .button-outline { color: var(--white); border-width: 1.5px; border-color: rgba(255, 255, 255, .4); }
.consent-bar .button-outline:hover { background: rgba(255, 255, 255, .1); border-color: var(--white); color: var(--white); }

/* ---------- Motion ---------- */
/* site.js marks only below-the-fold .reveal elements as pending, so nothing visible on load ever flashes. */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-pending { opacity: 0; transform: translateY(18px); }

@media (prefers-reduced-motion: reduce) {
    .reveal.is-pending { opacity: 1; transform: none; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Print ---------- */
@media print {
    .site-header, .site-footer, .cta-band, .consent-bar, .sidebar, .mobile-nav { display: none !important; }
    .hero { background: none; color: #000; }
    .hero::before, .hero::after { display: none; }
    .hero h1, .hero .lead { color: #000; }
    .content-grid { grid-template-columns: 1fr; }
}

/* ---------- Small modifiers ---------- */
.checklist.single { grid-template-columns: 1fr; gap: 12px; }
.tile-muted { background: var(--surface); }
.content-figure { margin: 0 0 40px; }
.content-figure img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.partner-logo { display: block; max-width: 260px; max-height: 90px; width: auto; margin-bottom: 28px; }
.screenshot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 1.5em 0; }
.screenshot-grid img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
@media (max-width: 639.98px) { .screenshot-grid { grid-template-columns: 1fr; } }
.tile-photo { width: calc(100% + 56px); max-width: none; margin: -28px -28px 22px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.tile:has(.tile-photo) { overflow: hidden; }
.contact-steps { grid-template-columns: 1fr; gap: 20px; }
.contact-steps .approach-step { padding: 0 0 0 60px; }
.contact-steps .approach-step::before { position: absolute; left: 0; top: -2px; width: 40px; height: 40px; font-size: .85rem; margin: 0; }
.contact-steps .approach-step::after { display: none; }
.contact-steps h3 { font-size: 1rem; margin-bottom: 4px; }

/* Dark-section variants */
.section-dark .why-item p, .section-dark .lead { color: rgba(255, 255, 255, .74); }
.section-dark .icon-badge { background: rgba(124, 198, 255, .12); color: var(--blue-300); }
.why-grid .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }

/* Bootstrap heading utility classes should use the display font too */
.h1, .h2, .h3, .h4, .h5, .h6 { font-family: var(--font-display); font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.on-dark .h1, .on-dark .h2, .on-dark .h3, .section-dark .h3 { color: var(--white); }

.toc li a { justify-content: flex-start; }
.side-card .toc li + li, .toc li + li { border-top: 0; }
.contact-steps li + li { border-top: 0; }
.article-hero h1 { font-size: clamp(2rem, 1.3rem + 2.2vw, 3.1rem); }

/* ---------- Minimal utilities (subset of Bootstrap's, used by the templates) ---------- */
.row { --g: 1.5rem; --gy: 0px; display: flex; flex-wrap: wrap; margin-inline: calc(var(--g) * -.5); row-gap: var(--gy); }
.row > * { flex: 0 0 100%; max-width: 100%; padding-inline: calc(var(--g) * .5); }
.g-5 { --g: 3rem; --gy: 3rem; }
@media (min-width: 992px) {
    .col-lg-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
    .col-lg-5 { flex: 0 0 41.6667%; max-width: 41.6667%; }
    .col-lg-7 { flex: 0 0 58.3333%; max-width: 58.3333%; }
    .col-lg-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
}
.d-flex { display: flex !important; }
.flex-wrap { flex-wrap: wrap !important; }
.align-items-center { align-items: center !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.gap-2 { gap: .5rem !important; }
.gap-3 { gap: 1rem !important; }
.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: .5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mt-auto { margin-top: auto !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: .5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.ms-0 { margin-left: 0 !important; }
.pt-3 { padding-top: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.text-center { text-align: center !important; }
.text-secondary { color: var(--muted) !important; }
.text-success { color: #1b7f3b !important; }
.text-decoration-none { text-decoration: none !important; }
.list-unstyled { list-style: none; padding-left: 0; }
.mw-100 { max-width: 100% !important; }
.h3 { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); line-height: 1.2; }
.h5 { font-size: 1.05rem; line-height: 1.3; }

/* backdrop-filter makes the header a containing block for fixed children, which would clip the
   full-screen mobile menu to the header's height — so drop it while the menu is open. */
body.nav-open .site-header { backdrop-filter: none; background: var(--white); }
body.nav-open .consent-bar { display: none; }
