/* =========================================================================
   McAllister Painting LLC — site styles
   White page, navy type, red for the one action that matters in each section.
   Square and 3:2 photo frames, rules instead of boxes, nothing floats.
   ========================================================================= */

:root {
  /* Brand */
  --navy: #01102B;
  --navy-2: #0B1E45;        /* lighter navy for panels inside dark bands */
  --blue: #01267E;
  --red-bright: #FB0C24;   /* brand red: decorative bars, borders and accents */
  --red: #E00B21;          /* UI red: buttons, tags and red text (4.9:1 on white for WCAG AA) */
  --red-dark: #D30A1F;
  --white: #FFFFFF;

  /* Neutrals (navy-leaning) */
  --text: #1E2A44;
  --muted: #56617A;
  --line: #E3E7EE;
  --line-strong: #C7CFDC;
  --tint: #F3F5F9;
  --tint-2: #E9EDF4;

  /* Type */
  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-h1: clamp(2.5rem, 1.6rem + 3.2vw, 4.4rem);
  --fs-h2: clamp(1.9rem, 1.4rem + 1.7vw, 2.9rem);
  --fs-h3: clamp(1.15rem, 1.08rem + 0.25vw, 1.3rem);
  --fs-lede: clamp(1.08rem, 1.02rem + 0.22vw, 1.2rem);
  --fs-body: 1.0625rem;

  /* Space */
  --container: 1280px;
  --gutter: clamp(20px, 4.5vw, 56px);
  --section: clamp(72px, 8vw, 128px);
  --gap: clamp(22px, 2.6vw, 36px);
  --radius: 4px;
  --header-h: 92px;

  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --ease-soft: cubic-bezier(.2, .7, .2, 1);
}

/* ---------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); background: var(--white); color-scheme: light; }
body { margin: 0; font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.65; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
[hidden] { display: none !important; }
a, button, summary, .btn { transition: color .2s var(--ease-out), background-color .2s var(--ease-out), border-color .2s var(--ease-out); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }
.band :focus-visible { outline-color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(48px, 5vw, 80px); }
.section--rule { border-top: 1px solid var(--line); }
.section--tint { background: var(--tint); }
.band { background: var(--navy); color: #fff; }
.band .kicker { color: #FF6B7A; }
.band .kicker::before { background: var(--red-bright); }
.band .section-title, .band h2, .band h3 { color: #fff; }
.band .section-lede, .band p { color: rgba(255,255,255,.78); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 300; background: var(--navy); color: #fff; padding: 12px 18px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 16px; }

/* ---------------------------------------------------------------- Type */
.kicker { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); margin-bottom: 18px; }
.kicker::before { content: ""; width: 28px; height: 3px; background: var(--red-bright); flex: none; }
.section-title, .hero__title, .page-hero__title, .modal__title { font-family: var(--font-head); font-weight: 800; color: var(--navy); letter-spacing: -0.02em; text-wrap: balance; }
.section-title { font-size: var(--fs-h2); line-height: 1.1; }
.section-lede { font-size: var(--fs-lede); color: var(--muted); line-height: 1.65; max-width: 60ch; margin-top: 18px; text-wrap: pretty; }
.section-head { max-width: 800px; margin-bottom: clamp(40px, 4.5vw, 64px); }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; max-width: none; }
.section-head--row > div { max-width: 760px; }
.section-head--row .btn, .section-head--row .link { flex: none; margin-bottom: 6px; }
.mini-title { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--navy); margin: 32px 0 14px; }
.note { margin-top: 22px; color: var(--muted); font-size: 0.98rem; }
.caption { margin-top: 12px; font-size: 0.88rem; color: var(--muted); }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; line-height: 1.3; color: var(--navy); margin-top: 48px; }
.prose h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; color: var(--navy); margin-top: 32px; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--blue); font-weight: 600; }
.prose a.btn { color: #fff; }

/* ---------------------------------------------------------------- Buttons & links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-align: center; min-height: 54px; padding: 0 26px; background: var(--red); color: #fff; border: 2px solid var(--red); border-radius: var(--radius); font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn--navy { background: var(--navy); border-color: var(--navy); }
.btn--navy:hover { background: var(--blue); border-color: var(--blue); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn--outline:hover { background: var(--tint); border-color: var(--navy); }
.band .btn--outline { color: #fff; border-color: rgba(255,255,255,.4); }
.band .btn--outline:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.btn--white { background: #fff; color: var(--navy); border-color: #fff; }
.btn--white:hover { background: var(--tint); border-color: var(--tint); }
.btn--lg { min-height: 60px; padding: 0 32px; font-size: 1.05rem; }
.btn--sm { min-height: 46px; padding: 0 18px; font-size: 0.95rem; }
.btn--block { display: flex; width: 100%; white-space: normal; }
.btn svg { width: 16px; height: 16px; fill: currentColor; }

.link { color: var(--blue); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.link:hover { color: var(--red); }
.band .link { color: #fff; }
.band .link:hover { color: #FF6B7A; }
.link--arrow { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.link--arrow::after { content: ""; width: 18px; height: 2px; background: currentColor; transition: width .25s var(--ease-out); }
.link--arrow:hover::after { width: 28px; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 36px; }
.cta-row .link { margin-left: 8px; }
.cta-row--spaced { margin-top: clamp(40px, 4.5vw, 56px); }

.checks { display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; line-height: 1.5; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 18px; height: 18px; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.5 9.3l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.band .checks li::before { background-color: var(--red); }
.checks--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
.checks--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 32px; }

/* Photo frames */
.sq { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--tint-2); }
.wide { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--tint-2); }
.frame-43 { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint-2); }
.sq img, .wide img, .frame-43 img { width: 100%; height: 100%; object-fit: cover; }

/* Tag */
.tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; background: var(--red); color: #fff; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.tag--navy { background: var(--navy); }
.tag--outline { background: transparent; color: var(--navy); border: 1px solid var(--line-strong); }

/* ---------------------------------------------------------------- Header */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { flex: none; display: block; }
.brand__logo { height: 66px; width: auto; }

.primary-nav { margin-left: auto; }
.primary-nav__list { display: flex; align-items: center; gap: 2px; }
.primary-nav__link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border: 0; background: none; font-weight: 600; font-size: 0.97rem; color: var(--navy); text-decoration: none; white-space: nowrap; }
.primary-nav__link:hover { color: var(--red); }
.chev { width: 11px; height: 8px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.has-menu { position: relative; }
.menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 300px; padding: 10px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red); box-shadow: 0 20px 40px -24px rgba(1, 16, 43, .4); }
.menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.has-menu.is-open .menu { display: block; }
html.no-js .has-menu:hover .menu, html.no-js .has-menu:focus-within .menu { display: block; }
.menu a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--navy); }
.menu a:hover { background: var(--tint); color: var(--red); }
.menu a.menu__all { border-bottom: 1px solid var(--line); margin-bottom: 6px; padding-bottom: 12px; font-weight: 700; }
.menu a.menu__featured .tag { font-size: 0.64rem; min-height: 20px; }

.site-header__actions { display: flex; align-items: center; gap: 18px; flex: none; }
.call-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; color: var(--navy); text-decoration: none; padding: 10px 4px; }
.call-link svg { width: 18px; height: 18px; fill: var(--red); }
.call-link:hover { color: var(--red); }

.menu-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line-strong); background: #fff; align-items: center; justify-content: center; }
.menu-toggle__bars { position: relative; width: 20px; height: 12px; }
.menu-toggle__bars span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--navy); }
.menu-toggle__bars span:first-child { top: 1px; }
.menu-toggle__bars span:last-child { top: 9px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:first-child { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:last-child { top: 5px; transform: rotate(-45deg); }

.mobile-menu { position: absolute; left: 0; right: 0; top: 100%; height: calc(100dvh - var(--header-h)); overflow-y: auto; background: #fff; border-top: 1px solid var(--line); padding: 8px 0 140px; }
.mobile-menu__links a { display: block; padding: 15px 0; border-bottom: 1px solid var(--line); font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--navy); text-decoration: none; }
.mobile-menu__links .sub a { padding: 11px 0 11px 18px; font-family: var(--font-body); font-weight: 600; font-size: 1rem; border-bottom-color: var(--tint-2); }
.mobile-menu__links .sub a .tag { margin-left: 10px; font-size: 0.62rem; min-height: 20px; vertical-align: middle; }
.mobile-menu__ctas { display: grid; gap: 12px; margin-top: 28px; }
.mobile-menu__meta { margin-top: 24px; color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

.primary-nav__link[aria-current="page"], .menu a[aria-current="page"], .mobile-menu__links a[aria-current="page"] { color: var(--red); }
.primary-nav__link[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--red); }

/* ---------------------------------------------------------------- Breadcrumbs */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 0.9rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current="page"] { color: var(--navy); font-weight: 600; }
.band .crumbs, .band .crumbs a { color: rgba(255,255,255,.7); }
.band .crumbs [aria-current="page"] { color: #fff; }

/* ---------------------------------------------------------------- Hero (home) */
.hero { padding-block: clamp(32px, 4vw, 64px) clamp(56px, 6vw, 96px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.hero__title { font-size: var(--fs-h1); line-height: 1.02; max-width: 13ch; }
.hero__lede { font-size: var(--fs-lede); color: var(--muted); margin-top: 26px; max-width: 54ch; }
.hero__call { margin-top: 22px; color: var(--muted); }
.hero__checks { grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: 36px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.hero__media { position: relative; }
.hero__media .wide { aspect-ratio: 4 / 3; }
.since { position: absolute; left: 0; bottom: 0; display: grid; gap: 4px; padding: 18px 26px 16px; background: var(--navy); color: #fff; border-top: 4px solid var(--red); }
.since b { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.9rem, 1.4rem + 1.5vw, 2.6rem); line-height: 1; letter-spacing: -0.02em; }
.since span { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,.72); }

/* ---------------------------------------------------------------- Trust strip */
.trust { background: var(--navy); color: #fff; }
.trust__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trust__item { display: grid; gap: 4px; padding: 30px 28px; border-left: 1px solid rgba(255,255,255,.12); }
.trust__item:first-child { border-left: 0; padding-left: 0; }
.trust__item b { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); line-height: 1.05; letter-spacing: -0.02em; }
.trust__item b small { font-size: 0.55em; font-weight: 700; color: var(--red); margin-left: 6px; letter-spacing: 0; }
.trust__item span { font-size: 0.92rem; color: rgba(255,255,255,.72); line-height: 1.45; }
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.stars svg { width: 15px; height: 15px; fill: #F5B50A; }

/* ---------------------------------------------------------------- Tiles / service cards */
.tiles { --cols: 1; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap); }
.tiles--4 { --cols: 4; }
.tiles--3 { --cols: 3; }
.tiles--2 { --cols: 2; }
.tiles > li { min-width: 0; }

.svc { position: relative; display: flex; flex-direction: column; }
.svc .frame-43 { border-bottom: 3px solid var(--navy); }
.svc--featured .frame-43 { border-bottom-color: var(--red-bright); }
.svc__tag { position: absolute; left: 0; top: 0; z-index: 1; }
.svc__title { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-h3); color: var(--navy); margin-top: 20px; line-height: 1.25; }
.svc__title a { text-decoration: none; }
.svc__title a::after { content: ""; position: absolute; inset: 0; }
.svc__text { margin-top: 10px; color: var(--muted); font-size: 0.98rem; flex: 1; }
.svc__more { margin-top: 16px; font-weight: 700; color: var(--blue); font-size: 0.95rem; }
.svc:hover .svc__title { color: var(--red); }
.svc:hover .svc__more { color: var(--red); }

/* Services page: wide rows */
.svc-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding-block: clamp(36px, 4vw, 56px); border-top: 1px solid var(--line); }
.svc-row:first-child { border-top: 0; padding-top: 0; }
.svc-row:nth-child(even) .svc-row__media { order: 2; }
.svc-row__num { font-family: var(--font-head); font-weight: 800; font-size: 0.9rem; letter-spacing: 0.1em; color: var(--red); margin-bottom: 12px; }
.svc-row h3 { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.4rem, 1.2rem + 0.7vw, 1.9rem); line-height: 1.15; color: var(--navy); letter-spacing: -0.015em; }
.svc-row h3 a { text-decoration: none; }
.svc-row h3 a:hover { color: var(--red); }
.svc-row p { margin-top: 14px; color: var(--muted); }
.svc-row .checks { margin-top: 18px; }
.svc-row .cta-row { margin-top: 24px; }

/* ---------------------------------------------------------------- Split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 104px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { width: 100%; }
.split__copy > p:not(.kicker):not(.section-lede):not(.note) { margin-top: 18px; }
.split__copy .checks { margin-top: 28px; }
.split__copy .stack { margin-top: 28px; }

/* Photo collage: one wide over two squares */
.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.collage > :first-child { grid-column: 1 / -1; }

/* ---------------------------------------------------------------- Feature band (floor coatings) */
.feature { padding-block: var(--section); }
.feature__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.warranty { display: flex; align-items: center; gap: 18px; margin-top: 32px; padding: 18px 22px; border: 1px solid rgba(255,255,255,.18); border-left: 4px solid var(--red); }
.warranty__mark { flex: none; width: 52px; height: 52px; }
.warranty__mark svg { width: 100%; height: 100%; fill: none; stroke: #fff; stroke-width: 1.6; }
.warranty b { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: #fff; }
.warranty span { font-size: 0.95rem; color: rgba(255,255,255,.72); }

/* ---------------------------------------------------------------- Rule lists (reasons, values) */
.rule-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap); }
.rule-list--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rule-list--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rule-list li { padding: 22px 0 26px; border-top: 1px solid var(--line-strong); }
.rule-list h3, .rule-list h4 { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; line-height: 1.3; color: var(--navy); }
.rule-list p { margin-top: 10px; color: var(--muted); font-size: 0.98rem; }
.rule-list .num { display: block; font-family: var(--font-head); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.1em; color: var(--red); margin-bottom: 12px; }
.band .rule-list li { border-top-color: rgba(255,255,255,.16); }
.band .rule-list p { color: rgba(255,255,255,.72); }
.band .rule-list .num { color: #FF6B7A; }

/* ---------------------------------------------------------------- Process steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); counter-reset: step; }
.steps li { position: relative; padding-top: 22px; border-top: 3px solid var(--navy); }
.steps li:first-child { border-top-color: var(--red-bright); }
.steps__num { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 1.5rem + 1.5vw, 2.8rem); line-height: 1; letter-spacing: -0.03em; color: #7F8BA0; margin-bottom: 18px; }
.steps h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--navy); }
.steps p { margin-top: 10px; color: var(--muted); font-size: 0.98rem; }
.band .steps li { border-top-color: rgba(255,255,255,.3); }
.band .steps li:first-child { border-top-color: var(--red-bright); }
.band .steps__num { color: rgba(255,255,255,.45); }

/* ---------------------------------------------------------------- Projects */
.proj { position: relative; display: flex; flex-direction: column; background: #fff; }
.proj__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.proj__title { font-family: var(--font-head); font-weight: 700; font-size: 1.18rem; color: var(--navy); margin-top: 12px; line-height: 1.25; }
.proj__title button, .proj__title a { all: unset; cursor: pointer; }
.proj__title button::after, .proj__title a::after { content: ""; position: absolute; inset: 0; }
.proj__text { margin-top: 8px; color: var(--muted); font-size: 0.97rem; }
.proj__more { margin-top: 14px; font-weight: 700; font-size: 0.93rem; color: var(--blue); }
.proj:hover .proj__title, .proj:hover .proj__more { color: var(--red); }
.proj.is-hidden { display: none; }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: clamp(32px, 3.5vw, 48px); }
.filters__label { font-weight: 700; font-size: 0.9rem; color: var(--navy); margin-right: 6px; }
.chip { min-height: 40px; padding: 0 16px; border: 1px solid var(--line-strong); background: #fff; color: var(--navy); font-weight: 600; font-size: 0.92rem; }
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.filters select { min-height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); background: #fff; color: var(--navy); font: inherit; font-weight: 600; font-size: 0.92rem; }
.filters__count { margin-left: auto; color: var(--muted); font-size: 0.92rem; }
.empty-note { padding: 32px 0; color: var(--muted); }

/* Project detail dialog */
.modal { padding: 0; border: 0; background: #fff; color: var(--text); width: min(1040px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; box-shadow: 0 30px 80px -30px rgba(1, 16, 43, .5); }
.modal::backdrop { background: rgba(1, 16, 43, .7); }
.modal__close { position: absolute; right: 14px; top: 14px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); background: #fff; color: var(--navy); }
.modal__close:hover { border-color: var(--navy); background: var(--tint); }
.modal__close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.modal__title { font-size: clamp(1.45rem, 1.3rem + 0.6vw, 1.9rem); line-height: 1.2; }
.modal__title:focus { outline: none; }
.pd { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.pd__media { display: grid; gap: 10px; padding: 10px; background: var(--tint); align-content: start; }
.pd__media > :first-child { grid-column: 1 / -1; }
.pd__media.has-gallery { grid-template-columns: 1fr 1fr; }
.pd__copy { padding: clamp(28px, 3.5vw, 44px); }
.pd__copy .proj__meta { margin: 0 0 16px; }
.pd__copy p { margin-top: 16px; color: var(--muted); }
.pd__copy .checks { margin-top: 20px; }
.pd__copy .cta-row { margin-top: 28px; }

/* ---------------------------------------------------------------- Industries */
.industries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.ind { position: relative; display: block; text-decoration: none; color: inherit; }
.ind .frame-43 { border-left: 4px solid var(--navy); }
.ind__name { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; color: var(--navy); margin-top: 16px; }
.ind__text { margin-top: 6px; color: var(--muted); font-size: 0.95rem; }
.ind:hover .ind__name { color: var(--red); }

/* ---------------------------------------------------------------- Rating */
.rating { display: grid; grid-template-columns: auto 1fr; gap: 24px 40px; align-items: center; padding: clamp(28px, 3.5vw, 44px); border: 1px solid var(--line-strong); border-top: 4px solid var(--red); }
.rating__score { font-family: var(--font-head); font-weight: 800; font-size: clamp(3.2rem, 2.4rem + 3vw, 5rem); line-height: 1; letter-spacing: -0.03em; color: var(--navy); }
.rating__score small { display: block; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); margin-top: 8px; }
.rating__body .stars svg { width: 22px; height: 22px; }
.rating__body p { margin-top: 10px; color: var(--muted); }
.rating__body .cta-row { margin-top: 20px; }
.review { display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line-strong); }
.review blockquote p { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; line-height: 1.4; color: var(--navy); }
.review__name { color: var(--muted); font-size: 0.95rem; }
.review__name b { color: var(--navy); margin-right: 8px; }

/* ---------------------------------------------------------------- Areas */
.areas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.area { padding: 28px 26px 30px; background: var(--navy); color: #fff; border-top: 4px solid rgba(255,255,255,.2); }
.area--home { border-top-color: var(--red-bright); }
.area b { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); line-height: 1; letter-spacing: -0.03em; }
.area h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; margin-top: 14px; }
.area p { margin-top: 10px; font-size: 0.93rem; color: rgba(255,255,255,.72); line-height: 1.55; }
.area .tag { margin-top: 14px; }
.areas--light .area { background: var(--tint); color: var(--navy); border-top-color: var(--navy); }
.areas--light .area--home { border-top-color: var(--red-bright); }
.areas--light .area p { color: var(--muted); }

/* ---------------------------------------------------------------- FAQ */
.faq > *, .split > *, .contact__grid > *, .feature__grid > *, .hero__grid > *, .page-hero__grid > * { min-width: 0; }
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 104px); align-items: start; }
.faq__list { border-top: 1px solid var(--line-strong); }
.faq__list details { border-bottom: 1px solid var(--line-strong); }
.faq__list summary { position: relative; list-style: none; cursor: pointer; padding: 22px 56px 22px 0; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; line-height: 1.4; color: var(--navy); }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; position: absolute; right: 0; top: 50%; margin-top: -18px; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line-strong); font-family: var(--font-body); font-weight: 500; font-size: 1.3rem; line-height: 1; color: var(--navy); }
.faq__list details[open] summary::after { content: "\2212"; }
.faq__list summary:hover { color: var(--red); }
.faq__list details p { padding: 0 56px 24px 0; color: var(--muted); }

/* ---------------------------------------------------------------- Contact / quote form */
.contact__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__grid--reverse { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.details { display: grid; gap: 18px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.details dt { font-weight: 700; color: var(--navy); font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; }
.details dd { color: var(--muted); margin-top: 2px; }
.details a { color: var(--navy); font-weight: 600; }
.band .details { border-top-color: rgba(255,255,255,.16); }
.band .details dt { color: #fff; }
.band .details dd, .band .details a { color: rgba(255,255,255,.78); }

.form { padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line-strong); border-top: 4px solid var(--red); background: #fff; color: var(--text); }
.form .form__title, .form legend, .form label, .form .lead-type b { color: var(--navy); }
.form__title { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; }
.form p, .form .form__hint, .form .lead-type span { color: var(--muted); }
.form__hint { margin-top: 6px; font-size: 0.95rem; }
.form fieldset { border: 0; padding: 0; margin: 28px 0 0; min-width: 0; }
.form legend { padding: 0; font-weight: 700; color: var(--navy); font-size: 0.95rem; margin-bottom: 12px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-top: 24px; }
.form__grid .field--full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; font-size: 0.92rem; color: var(--navy); margin-bottom: 8px; }
.field label .opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea { display: block; width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; color: var(--text); font: inherit; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--red); }
.form .field__error { display: none; margin-top: 6px; font-size: 0.88rem; color: var(--red-dark); font-weight: 600; }
.field.is-invalid .field__error { display: block; }
.lead-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lead-type { position: relative; display: block; padding: 14px 16px; border: 1px solid var(--line-strong); cursor: pointer; }
.lead-type input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lead-type b { display: block; font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 0.98rem; }
.lead-type span { display: block; margin-top: 4px; font-size: 0.85rem; color: var(--muted); line-height: 1.4; }
.lead-type:has(input:checked) { border-color: var(--navy); background: var(--tint); box-shadow: inset 0 0 0 1px var(--navy); }
.lead-type:has(input:focus-visible) { outline: 3px solid var(--red); outline-offset: 2px; }
.form__actions { margin-top: 28px; }
.form__status { margin-top: 16px; padding: 14px 16px; font-size: 0.95rem; line-height: 1.5; border: 1px solid var(--line-strong); }
.form__status--target { display: none; margin: 0 0 20px; }
.form__status--target:target, .form__status--target.is-shown { display: block; border-color: var(--red); background: #FFF3F4; color: var(--red-dark); }
.form__status--target a { color: var(--red-dark); font-weight: 700; }
.form .form__status[data-state="error"] { border-color: var(--red); background: #FFF3F4; color: var(--red-dark); }
.form .form__status[data-state="sending"] { border-color: var(--line-strong); color: var(--muted); }
.form .form__fine { margin-top: 14px; font-size: 0.86rem; color: var(--muted); }
.form .form__fine a, .form a { color: var(--navy); font-weight: 600; }
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

.map { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line-strong); background: var(--tint); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------------------------------------------------------------- CTA panel */
.cta-panel { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px clamp(40px, 6vw, 96px); align-items: center; padding: clamp(36px, 5vw, 64px); background: var(--navy); color: #fff; border-left: 6px solid var(--red); }
.cta-panel .section-title { color: #fff; }
.cta-panel .section-lede { color: rgba(255,255,255,.78); }
.cta-panel .cta-row { margin-top: 0; justify-content: flex-end; }
.cta-panel .btn--outline { color: #fff; border-color: rgba(255,255,255,.4); }
.cta-panel .btn--outline:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.cta-panel__meta { margin-top: 16px; color: rgba(255,255,255,.72); }
.cta-panel__meta a { color: #fff; font-weight: 700; }

/* ---------------------------------------------------------------- Inner page hero */
.page-hero { padding-block: clamp(20px, 2.4vw, 32px) clamp(56px, 6vw, 96px); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; margin-top: clamp(24px, 2.6vw, 40px); }
.page-hero__title { font-size: clamp(2.2rem, 1.45rem + 2.5vw, 3.6rem); line-height: 1.06; max-width: 18ch; }
.page-hero .hero__lede { max-width: 56ch; }
.page-hero__media { width: 100%; }
.page-hero--text .page-hero__grid { grid-template-columns: 1fr; }
.page-hero--text .page-hero__title { max-width: 24ch; }
.page-hero--text { padding-bottom: clamp(32px, 3.5vw, 48px); }
.page-hero--band { background: var(--navy); color: #fff; padding-bottom: 0; }
.page-hero--band .page-hero__title { color: #fff; }
.page-hero--band .hero__lede, .page-hero--band .hero__call { color: rgba(255,255,255,.78); }
.page-hero--band .kicker { color: #FF6B7A; }
.page-hero--band .hero__checks { border-top-color: rgba(255,255,255,.16); }
.page-hero--band .checks li::before { background-color: var(--red); }
.page-hero--band { padding-bottom: clamp(56px, 6vw, 96px); }
.page-hero--band .page-hero__grid { align-items: center; }
.page-hero--band .page-hero__media { position: relative; align-self: center; padding: 0 18px 18px 0; }
.page-hero--band .page-hero__media::before { content: ""; position: absolute; left: 18px; top: 18px; right: 0; bottom: 0; border: 1px solid rgba(255,255,255,.28); }
.page-hero--band .page-hero__media .wide { position: relative; aspect-ratio: 4 / 3; border-left: 6px solid var(--red-bright); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.page-hero__caption { position: absolute; left: 6px; bottom: 18px; margin: 0; padding: 10px 16px; background: var(--navy); color: #fff; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; max-width: calc(100% - 60px); }
.page-hero__caption b { display: block; font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; letter-spacing: 0; }
@media (max-width: 899px) { .page-hero--band .page-hero__media { padding: 0 12px 12px 0; } .page-hero--band .page-hero__media::before { left: 12px; top: 12px; } .page-hero__caption { bottom: 12px; } }

/* Stat strip under a page hero */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line-strong); }
.stats > div { padding: 24px 26px; border-left: 1px solid var(--line-strong); }
.stats > div:first-child { border-left: 0; }
.stats b { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: var(--navy); line-height: 1.2; }
.stats span { display: block; margin-top: 4px; font-size: 0.92rem; color: var(--muted); }

/* Gallery grid: wide + squares */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gallery > li:first-child { grid-column: span 2; grid-row: span 2; }
.gallery > li:first-child .sq { aspect-ratio: 1 / 1; height: 100%; }
.gallery--3 { grid-template-columns: 2fr 1fr; }
.gallery--3 > li:first-child { grid-column: 1; grid-row: span 2; }
.gallery--3 > li:first-child .wide { aspect-ratio: auto; height: 100%; min-height: 100%; }

/* Legal */
.legal { max-width: 780px; }
.legal__updated { color: var(--muted); }

/* ---------------------------------------------------------------- Dark band overrides (kept last so they win) */
.band .rule-list h3, .band .rule-list h4, .band .steps h3, .band .ind__name, .band .stats b, .band .proj__title { color: #fff; }
.band .rule-list p, .band .steps p, .band .ind__text, .band .stats span, .band .proj__text { color: rgba(255,255,255,.72); }
.band .link--arrow { color: #fff; }
.page-hero--band .crumbs, .page-hero--band .crumbs a { color: rgba(255,255,255,.7); }
.page-hero--band .crumbs [aria-current="page"] { color: #fff; }
.page-hero--band .crumbs li + li::before { color: rgba(255,255,255,.3); }
.page-hero--band .btn--outline { color: #fff; border-color: rgba(255,255,255,.4); }
.page-hero--band .btn--outline:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.page-hero--band .link { color: #fff; }
.page-hero--band :focus-visible { outline-color: #fff; }

/* ---------------------------------------------------------------- Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.78); }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.25fr; gap: 48px; padding-block: clamp(64px, 6vw, 96px) 56px; }
.site-footer__brand img { width: 220px; height: auto; }
.site-footer__brand p { margin: 22px 0 26px; max-width: 34ch; }
.site-footer h2 { font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.site-footer__col li a { display: inline-block; padding: 5px 0; color: rgba(255,255,255,.78); text-decoration: none; }
.site-footer__col li a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.site-footer__col address, .site-footer__col p { font-size: 0.98rem; line-height: 1.65; }
.site-footer__col p { margin-top: 12px; }
.site-footer__col a { color: #fff; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; padding: 0 !important; border: 1px solid rgba(255,255,255,.25); color: #fff; }
.social a:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 22px 30px; border-top: 1px solid rgba(255,255,255,.14); font-size: 0.9rem; color: rgba(255,255,255,.6); }
.site-footer__base ul { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer__base a { display: inline-block; padding: 4px 0; color: rgba(255,255,255,.7); }
.site-footer__base a:hover { color: #fff; }

.action-bar { display: none; }

/* ---------------------------------------------------------------- 404 */
.notfound { padding-block: clamp(72px, 10vw, 140px); }
.notfound__code { font-family: var(--font-head); font-weight: 800; font-size: clamp(5rem, 4rem + 6vw, 10rem); line-height: 1; letter-spacing: -0.04em; color: #8792A6; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1240px) {
  .call-link span { display: none; }
  .call-link { width: 48px; height: 48px; justify-content: center; padding: 0; border: 1px solid var(--line-strong); }
}
@media (max-width: 1100px) {
  :root { --header-h: 78px; }
  .primary-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header__actions { margin-left: auto; gap: 10px; }
  .brand__logo { height: 56px; }
  .tiles--4 { --cols: 2; row-gap: 48px; }
  .trust__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust__item:nth-child(3) { border-left: 0; padding-left: 0; }
  .trust__item:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
  .rule-list--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 979px) {
  .tiles--3 { --cols: 2; }
  .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rule-list--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery > li:first-child { grid-column: 1 / -1; grid-row: auto; }
  .gallery > li:first-child .sq { aspect-ratio: 3 / 2; }
  .gallery--3 { grid-template-columns: 1fr 1fr; }
  .gallery--3 > li:first-child { grid-column: 1 / -1; grid-row: auto; }
  .gallery--3 > li:first-child .wide { aspect-ratio: 3 / 2; height: auto; }
}
@media (max-width: 899px) {
  .hero__grid, .page-hero__grid, .split, .feature__grid, .faq, .contact__grid, .contact__grid--reverse { grid-template-columns: 1fr; }
  .hero__media, .page-hero__media, .split__media { max-width: 720px; }
  .split--reverse .split__media { order: 0; }
  .page-hero--band .page-hero__copy { padding-bottom: 0; }
  .page-hero--band { padding-bottom: 0; }
  .page-hero--band .page-hero__media { margin-top: 40px; max-width: none; }
  .svc-row { grid-template-columns: 1fr; }
  .svc-row:nth-child(even) .svc-row__media { order: 0; }
  .svc-row__media { max-width: 640px; }
  .cta-panel { grid-template-columns: 1fr; }
  .cta-panel .cta-row { justify-content: flex-start; }
  .pd { grid-template-columns: 1fr; }
  .section-head--row { flex-direction: column; align-items: flex-start; }
  .checks--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rating { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .stats { grid-template-columns: 1fr; }
  .stats > div { border-left: 0; border-top: 1px solid var(--line-strong); }
  .stats > div:first-child { border-top: 0; }
  .lead-types { grid-template-columns: 1fr; }
  .action-bar { position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line-strong); }
  .action-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; font-weight: 700; text-decoration: none; }
  .action-bar svg { width: 18px; height: 18px; fill: currentColor; }
  .action-bar__call { color: var(--navy); border: 1px solid var(--line-strong); }
  .action-bar__quote { color: #fff; background: var(--red); }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .menu-open .action-bar { display: none; }
}
@media (max-width: 599px) {
  .hero__checks, .checks--cols, .checks--3 { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; }
  .btn { white-space: normal; }
  .cta-row .link { align-self: flex-start; margin-left: 0; }
  .tiles--4, .tiles--3, .tiles--2 { --cols: 1; row-gap: 44px; }
  .industries { grid-template-columns: 1fr; }
  .rule-list, .rule-list--3, .rule-list--4 { grid-template-columns: 1fr; }
  .trust__list { grid-template-columns: 1fr; }
  .trust__item, .trust__item:first-child, .trust__item:nth-child(3) { padding: 20px 0; border-left: 0; }
  .trust__item + .trust__item { border-top: 1px solid rgba(255,255,255,.12); }
  .areas { grid-template-columns: 1fr; }
  .form__grid { grid-template-columns: 1fr; }
  .faq__list summary { font-size: 1.02rem; padding-right: 50px; }
  .faq__list details p { padding-right: 0; }
  .site-footer__grid { grid-column-gap: 24px; grid-template-columns: 1fr; }
  .site-footer__brand img { width: 180px; }
  .collage { gap: 10px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery > li:first-child { grid-column: 1 / -1; }
  .since { padding: 14px 18px 12px; }
  .hero__media .wide { aspect-ratio: 1 / 1; }
  .svc .frame-43, .ind .frame-43 { aspect-ratio: 16 / 9; }
}
@media (max-width: 479px) {
  .site-header__cta { display: none; }
  .site-header__inner { gap: 12px; }
}

html.modal-open { overflow: hidden; }

/* =========================================================================
   Motion: restrained. Hover and focus 0.2 to 0.3s, one-time reveals 0.6s.
   Only opacity and transform animate. Everything is off for reduced motion.
   ========================================================================= */
.site-header.is-scrolled { box-shadow: 0 10px 24px -20px rgba(1, 16, 43, .5); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @keyframes mp-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  @keyframes mp-settle { from { transform: scale(1.04); } to { transform: none; } }
  @keyframes mp-fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes mp-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
  @keyframes mp-pop { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
  @keyframes mp-bar { from { transform: translateY(100%); } to { transform: none; } }

  .site-header { transition: box-shadow .3s var(--ease-out); }
  .hero__copy > *, .page-hero__copy > *, .page-hero .crumbs { animation: mp-rise .6s var(--ease-soft) both; }
  .hero__copy > :nth-child(2), .page-hero__copy > :nth-child(2) { animation-delay: .06s; }
  .hero__copy > :nth-child(3), .page-hero__copy > :nth-child(3) { animation-delay: .12s; }
  .hero__copy > :nth-child(4), .page-hero__copy > :nth-child(4) { animation-delay: .18s; }
  .hero__copy > :nth-child(n+5), .page-hero__copy > :nth-child(n+5) { animation-delay: .24s; }
  .hero__media img, .page-hero__media img { animation: mp-settle 1.2s var(--ease-soft) both; }

  .reveal-ready .rv { opacity: 0; transform: translateY(22px); }
  .reveal-ready .rv.rv-in { opacity: 1; transform: none; transition: opacity .55s var(--ease-soft), transform .65s var(--ease-soft); transition-delay: var(--rv-delay, 0s); }

  .btn { transition: color .2s var(--ease-out), background-color .2s var(--ease-out), border-color .2s var(--ease-out), box-shadow .25s var(--ease-out), transform .25s var(--ease-out); }
  .btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgba(1, 16, 43, .5); }
  .btn:active { transform: none; box-shadow: none; transition-duration: .08s; }

  .primary-nav__link { position: relative; }
  .primary-nav__link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left center; transition: transform .25s var(--ease-out); }
  .primary-nav__link:hover::after, .primary-nav__toggle[aria-expanded="true"]::after { transform: scaleX(1); }
  .primary-nav__link[aria-current="page"]::after { display: none; }
  .chev { transition: transform .25s var(--ease-out); }
  .has-menu.is-open > .primary-nav__toggle .chev { transform: rotate(180deg); }
  .has-menu.is-open .menu { animation: mp-drop .22s var(--ease-out) both; }
  .mobile-menu:not([hidden]) { animation: mp-drop .28s var(--ease-out) both; }
  .menu-toggle__bars span { transition: transform .25s var(--ease-out), top .25s var(--ease-out); }

  .svc img, .proj img, .ind img, .collage img, .gallery img, .svc-row__media img { transition: transform .8s var(--ease-soft); }
  .svc:hover img, .proj:hover img, .ind:hover img, .gallery li:hover img, .svc-row:hover .svc-row__media img { transform: scale(1.04); }
  .svc__title, .proj__title, .ind__name { transition: color .2s var(--ease-out); }

  .faq__list summary::after { transition: transform .3s var(--ease-out), border-color .2s var(--ease-out), background-color .2s var(--ease-out); }
  .faq__list details[open] summary::after { transform: rotate(180deg); }
  .faq__list summary:hover::after { border-color: var(--navy); background: var(--tint); }
  .faq__list details[open] p { animation: mp-fade .35s var(--ease-out) both; }

  .modal[open] { animation: mp-pop .3s var(--ease-out) both; }
  .modal[open]::backdrop { animation: mp-fade .3s ease both; }
  .action-bar { animation: mp-bar .5s var(--ease-soft) .35s both; }
  .proj { transition: opacity .3s var(--ease-out); }
}

/* =========================================================================
   v2 additions: project mosaic hero, Who We Serve flyouts, mobile accordions,
   Our Story timeline, industry pages
   ========================================================================= */

/* ---------------------------------------------------------------- Hero mosaic */
.hero--mosaic .hero__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: stretch; }
.hero--mosaic .hero__copy { display: flex; flex-direction: column; justify-content: center; }
.mosaic { position: relative; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; height: 100%; min-height: 560px; }
.mosaic__item { position: relative; display: block; overflow: hidden; background: var(--tint-2); text-decoration: none; color: #fff; min-height: 0; }
.mosaic__item--main { grid-row: 1 / span 2; }
.mosaic__frame { height: 100%; }
.mosaic__frame img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.mosaic__item:hover .mosaic__frame img { transform: scale(1.03); }
.mosaic__label { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 2px; padding: 44px 16px 14px; background: linear-gradient(to top, rgba(1,16,43,.86) 0%, rgba(1,16,43,.55) 55%, rgba(1,16,43,0) 100%); pointer-events: none; }
.mosaic__label b { font-family: var(--font-head); font-weight: 700; font-size: 0.98rem; line-height: 1.25; }
.mosaic__label span { font-size: 0.8rem; color: rgba(255,255,255,.78); }
.mosaic__item--main .mosaic__label { padding: 64px 22px 20px; }
.mosaic__item--main .mosaic__label b { font-size: 1.2rem; }
.mosaic__item--main .mosaic__label span { font-size: 0.88rem; }
.mosaic .since { left: 0; right: auto; bottom: auto; top: 0; z-index: 2; }
.hero__strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 32px; margin-top: clamp(32px, 3.5vw, 48px); padding-top: 26px; border-top: 1px solid var(--line); }
@media (max-width: 1100px) {
  .hero__strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .hero--mosaic .hero__grid { grid-template-columns: 1fr; }
  .hero--mosaic .hero__copy { display: block; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; height: auto; min-height: 0; }
  .mosaic__item--main { grid-row: auto; grid-column: 1 / -1; }
  .mosaic__item--main .mosaic__frame { aspect-ratio: 16 / 10; }
  .mosaic__item:not(.mosaic__item--main) .mosaic__frame { aspect-ratio: 1 / 1; }
}
@media (max-width: 479px) {
  .mosaic__label { padding: 32px 12px 10px; }
  .mosaic__label span { display: none; }
  .hero__strip { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- Who We Serve nested flyouts */
.menu--serve { min-width: 260px; }
.menu .has-sub { position: relative; display: flex; align-items: stretch; }
.menu .has-sub > .sub-link { flex: 1; }
.menu .sub-toggle { flex: none; display: grid; place-items: center; width: 40px; border: 0; background: transparent; color: var(--navy); cursor: pointer; }
.menu .sub-toggle:hover, .menu .has-sub.is-open > .sub-toggle { color: var(--red); background: var(--tint); }
.chev--right { transform: none; }
.menu .has-sub.is-open > .sub-toggle .chev--right { transform: rotate(180deg); }
.menu .submenu { display: none; position: absolute; top: -10px; left: 100%; min-width: 280px; padding: 10px; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px -18px rgba(1, 16, 43, .35); z-index: 3; }
.menu .submenu .submenu { max-height: calc(100vh - var(--header-h) - 60px); overflow-y: auto; z-index: 4; }
.menu .has-sub.is-open > .submenu { display: block; }
.menu .has-sub.flip > .submenu { left: auto; right: 100%; }
.menu .submenu::before { content: ""; position: absolute; top: 0; bottom: 0; left: -12px; width: 12px; }
.menu .has-sub.flip > .submenu::before { left: auto; right: -12px; }
.menu .submenu a { white-space: nowrap; }
.menu .has-sub > .sub-link[aria-current="page"], .menu .has-sub.is-open > .sub-link { color: var(--red); }

/* ---------------------------------------------------------------- Mobile accordions */
.m-acc { border-bottom: 1px solid var(--line); }
.m-acc > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 15px 0; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--navy); }
.m-acc > summary::-webkit-details-marker { display: none; }
.m-acc > summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); margin-right: 6px; transition: transform .2s var(--ease-out); }
.m-acc[open] > summary::after { transform: rotate(-135deg); }
.m-acc > ul { padding-bottom: 8px; }
.m-acc > ul > li > a, .m-acc--2 > summary, .m-acc--3 > summary { border-bottom: 0; }
.m-acc--2 { border-bottom: 0; }
.m-acc--2 > summary { font-family: var(--font-body); font-weight: 600; font-size: 1rem; padding: 11px 0 11px 18px; }
.m-acc--2 > ul { padding-left: 18px; }
.m-acc--3 { border-bottom: 0; }
.m-acc--3 > summary { font-family: var(--font-body); font-weight: 600; font-size: 0.98rem; padding: 10px 0 10px 18px; color: var(--text); }
.m-acc--3 > ul { padding-left: 14px; }
.m-acc--3 > ul > li > a { font-size: 0.95rem; font-weight: 500; }
.mobile-menu__links .m-acc .sub a { border-bottom: 0; }

/* ---------------------------------------------------------------- Our Story */
.story__head { max-width: 760px; }
.story__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.timeline { position: relative; display: grid; gap: clamp(28px, 3vw, 40px); padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line-strong); }
.timeline__item { position: relative; }
.timeline__item::before { content: ""; position: absolute; left: -34px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--navy); }
.timeline__item:first-child::before { border-color: var(--red-bright); background: var(--red-bright); }
.timeline__year { display: block; font-family: var(--font-head); font-weight: 800; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.timeline__item h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.28rem; line-height: 1.3; color: var(--navy); }
.timeline__item p { margin-top: 10px; color: var(--muted); line-height: 1.65; }
.story__aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 14px; }
.story__photo { margin: 0; }
.story__photo .frame-43, .story__photo .sq { border-left: 4px solid var(--red-bright); }
.story__photo--sq { width: 62%; }
.story__photo figcaption { margin-top: 10px; font-size: 0.9rem; color: var(--muted); line-height: 1.45; }
.story__photo figcaption b { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--navy); }
.story__facts { display: grid; gap: 14px; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.story__facts dt { font-weight: 700; color: var(--navy); font-size: 0.86rem; letter-spacing: 0.04em; text-transform: uppercase; }
.story__facts dd { color: var(--muted); margin-top: 2px; }
.story__aside .cta-row { margin-top: 8px; }
@media (max-width: 899px) {
  .story__grid { grid-template-columns: 1fr; }
  .story__aside { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
  .story__aside .story__facts, .story__aside .cta-row { grid-column: 1 / -1; }
  .story__photo--sq { width: 100%; }
}

/* ---------------------------------------------------------------- Industries */
.ind-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.ind-group { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 20px; padding: 22px 0 28px; border-top: 1px solid var(--line-strong); min-width: 0; }
.ind-group__media { display: block; }
.ind-group--text { grid-template-columns: 1fr; }
.ind-group__media .frame-43 { border-left: 4px solid var(--navy); }
.ind-group__title { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--navy); }
.ind-group__title a { text-decoration: none; }
.ind-group__title a:hover { color: var(--red); }
.ind-group__text { margin-top: 8px; color: var(--muted); font-size: 0.97rem; }
.ind-group__list { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; }
.ind-group__list a { font-size: 0.9rem; font-weight: 600; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.ind-group__list a:hover { color: var(--red); }
.fac-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.fac { position: relative; display: flex; flex-direction: column; padding: 20px 0 24px; border-top: 3px solid var(--navy); min-width: 0; }
.fac__media { margin: 0 0 14px; }
.fac__title { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; color: var(--navy); }
.fac__title a { text-decoration: none; }
.fac__title a::after { content: ""; position: absolute; inset: 0; }
.fac__text { margin-top: 8px; color: var(--muted); font-size: 0.95rem; flex: 1; }
.fac__more { margin-top: 14px; font-weight: 700; font-size: 0.93rem; color: var(--blue); }
.fac:hover .fac__title, .fac:hover .fac__more { color: var(--red); }
.fac--all { border-top-color: var(--red-bright); }
@media (max-width: 1100px) { .fac-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 899px) { .ind-groups { grid-template-columns: 1fr; } }
@media (max-width: 599px) { .fac-list { grid-template-columns: 1fr; } .ind-group { grid-template-columns: 1fr; } }

/* Areas: five columns */
.areas { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .areas { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .areas { grid-template-columns: 1fr; } }
.rule-list--4 .num + h3 { margin-top: 4px; }
@media (max-width: 1240px) { .rule-list--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .rule-list--4 { grid-template-columns: 1fr; } }
@media (max-width: 599px) {
  .mosaic .since { padding: 10px 14px 8px; }
  .mosaic .since b { font-size: 1.5rem; }
  .mosaic .since span { font-size: 0.66rem; }
}
