/* =========================================================================
   Allied Intelligence — main stylesheet
   Tokens → base → layout → components → page sections → responsive
   ========================================================================= */

/* ---- Fonts (self-hosted, latin subset) -------------------------------- */
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 500; font-display: swap; src: url("../fonts/manrope-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-display: swap; src: url("../fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 500; font-display: swap; src: url("../fonts/source-serif-4-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-display: swap; src: url("../fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }

/* ---- Tokens ------------------------------------------------------------ */
:root {
  --navy-950: #070E1E;
  --navy-900: #0A1428;
  --navy-800: #0F1D38;
  --navy-700: #1E3A66;
  --accent:   #3D6595;
  --silver:   #B4BCC8;
  --light:    #C9D0DA;
  --muted:    #8E98A6;
  --paper:    #F4F5F7;
  --white:    #FFFFFF;
  --ink:      #141B26;
  --ink-2:    #4E5A68;
  --line:     #E3E7EC;
  --line-2:   #EEF1F4;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1296px;
  --gutter: clamp(20px, 5vw, 72px);
  --section: clamp(64px, 8vw, 112px);
}

/* ---- Base -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--navy-700); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.icon { flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--white); color: var(--ink); padding: 8px 12px; }
/* reCAPTCHA v3 badge (fixed, bottom-right): keep it above the hero overlays, below the header/menu. */
.grecaptcha-badge { z-index: 10; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }

/* ---- Type helpers ------------------------------------------------------ */
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--silver); }
.eyebrow--accent { color: var(--accent); }
.eyebrow--sm { font-size: 11px; letter-spacing: 0.18em; }
.eyebrow--line { display: flex; align-items: center; gap: 16px; }
.eyebrow--line::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy-800); }

/* ---- Buttons ----------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 17px 28px; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1; border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.btn--primary { background: var(--white); color: var(--navy-800); }
.btn--primary:hover { background: var(--light); color: var(--navy-900); }
.btn--dark { background: var(--navy-800); color: var(--white); }
.btn--dark:hover { background: var(--navy-700); color: var(--white); }
.btn--outline { padding: 13px 22px; font-size: 12.5px; border-color: rgba(180,188,200,.55); color: var(--white); }
.btn--outline:hover { border-color: var(--white); color: var(--white); }
.btn--ghost { padding: 17px 8px; color: var(--white); }
.btn--ghost:hover { color: var(--light); }

/* ---- Image tint: any photo → navy monochrome (matches the mockup) ------ */
.img-tint { position: relative; background: var(--navy-800); overflow: hidden; }
.img-tint img { width: 100%; height: 100%; object-fit: cover; }
/* Photos are pre-graded to the navy duotone in Photoshop (tools: level-photos.jsx), so no CSS tint is applied. */

/* ---- Utility bar ------------------------------------------------------- */
.utility { background: var(--navy-950); color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.utility__in { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 40px; }
.utility__contact { display: flex; gap: 28px; }
.utility a { color: var(--silver); }
.utility a:hover { color: var(--white); }

/* ---- Header + nav ------------------------------------------------------ */
.site-header { position: relative; z-index: 20; background: var(--navy-800); border-bottom: 1px solid rgba(255,255,255,.08); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 92px; }
.logo img, .custom-logo { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 40px; }
.nav__list { display: flex; align-items: center; gap: 36px; }
.nav__list > li > a, .nav__link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; color: #DCE1E8; padding: 8px 0; border-bottom: 1px solid transparent; }
.nav__list > li > a:hover, .nav__link:hover, .nav__list > li.current-menu-item > a, .nav__item--services.is-open .nav__link, .single-service .nav__link, .post-type-archive-service .nav__link { color: var(--white); border-bottom-color: var(--silver); }
.nav__link .icon { color: var(--silver); transition: transform .15s; }
.nav__item--services.is-open .nav__link .icon { transform: rotate(180deg); }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--white); }

/* Services dropdown */
.dropdown { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 24px 48px rgba(7,14,30,.18); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .15s, transform .15s, visibility 0s .15s; }
.nav__item--services.is-open .dropdown, .nav__item--services:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (hover: hover) { .nav__item--services:hover .dropdown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; } }
.dropdown__in { display: grid; grid-template-columns: 1.1fr repeat(3, 1fr); gap: 56px; padding-block: 44px 48px; }
.dropdown__intro { display: flex; flex-direction: column; gap: 14px; padding-right: 40px; border-right: 1px solid var(--line); }
.dropdown__title { font-family: var(--serif); font-size: 26px; line-height: 1.2; font-weight: 500; color: var(--ink); }
.dropdown__text { font-size: 14.5px; color: var(--ink-2); }
.dropdown__col .eyebrow { margin-bottom: 14px; color: var(--accent); font-size: 11px; letter-spacing: .18em; }
.dropdown__col li + li { margin-top: 12px; }
.dropdown__col a { font-size: 15px; font-weight: 500; line-height: 1.35; color: var(--ink); }
.dropdown__col a:hover { color: var(--accent); }

/* ---- Hero (front page) ------------------------------------------------- */
.hero { position: relative; isolation: isolate; min-height: 680px; display: flex; align-items: center; background: var(--navy-900); color: var(--white); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { opacity: .62; }
/* Video hero: graded monochrome loop over a matching poster (frame 1). The layer carries the .62
   dimming so the video can cross-fade over the poster at full opacity without ghosting. The video
   only loads on desktop (see nav.js); below 901px or with reduced motion the poster stays. */
.hero__layer { position: absolute; inset: 0; opacity: .62; }
.hero__media .hero__layer img { opacity: 1; filter: none; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; pointer-events: none; }
.hero__video.is-playing { opacity: 1; }
.hero__media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10,20,40,.94) 0%, rgba(10,20,40,.72) 45%, rgba(10,20,40,.15) 100%), linear-gradient(180deg, rgba(10,20,40,0) 70%, rgba(10,20,40,.85) 100%); }
.hero__in { position: relative; z-index: 2; width: 100%; padding-block: 96px; display: flex; flex-direction: column; gap: 28px; }
.hero__title { max-width: 820px; font-size: clamp(38px, 4.6vw, 60px); line-height: 1.08; color: var(--white); }
.hero__text { max-width: 620px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.65; color: var(--light); text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }

/* ---- Credentials strip ------------------------------------------------- */
.creds { position: relative; background: var(--navy-800); color: var(--white); border-top: 1px solid rgba(255,255,255,.08); overflow: hidden; }
/* Dotted world map (inline SVG, see alli_world_map) with slowly blinking city lights. */
.creds__map { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.creds__dots { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; opacity: .13; }
.creds__lights .core { fill: #fff; }
.creds__lights .glow { fill: url(#alli-glow); }
.creds__lights .l { opacity: .3; animation: alli-blink 5s ease-in-out infinite; }
.creds__lights .l--hub { opacity: .45; }
@keyframes alli-blink { 0%, 100% { opacity: .1; } 50% { opacity: .6; } }
/* Keep the copy readable over the map: a soft navy halo behind the text. */
.cred__title, .cred__text { text-shadow: 0 0 14px rgba(15,29,56,.95), 0 1px 3px rgba(15,29,56,.9); }
.creds__grid { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px; padding-block: 60px; }
.cred { border-left: 1px solid rgba(180,188,200,.35); padding-left: 24px; display: flex; flex-direction: column; gap: 10px; }
.cred__title { font-family: var(--serif); font-size: clamp(26px, 2.5vw, 36px); line-height: 1; font-weight: 500; }
.cred__text { font-size: 14px; line-height: 1.5; color: var(--silver); }

/* ---- Section heads + grids --------------------------------------------- */
.services { padding-block: var(--section) calc(var(--section) - 8px); }
.section-head { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; align-items: end; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head__title, .approach__title, .cta-band__title { font-size: clamp(32px, 3.4vw, 46px); }
.section-head__text { max-width: 560px; font-size: 17px; line-height: 1.65; color: var(--ink-2); padding-bottom: 6px; text-wrap: pretty; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.group-head { display: flex; align-items: baseline; gap: 24px; margin-bottom: 32px; }
.group-head__title { font-size: 30px; }
.group-head__text { color: var(--ink-2); }
.section--group + .section--group { padding-top: 0; }

/* ---- Service card ------------------------------------------------------ */
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); color: var(--ink); transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--silver); color: var(--ink); transform: translateY(-2px); }
.card__media { aspect-ratio: 800 / 520; }
.card__body { padding: 28px 28px 30px; display: flex; flex-direction: column; gap: 10px; }
.card__body .eyebrow { color: var(--accent); }
.card__title { font-size: 24px; line-height: 1.2; }
.card__text { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy-800); }
.card:hover .card__more .icon { transform: translateX(3px); }
.card__more .icon { transition: transform .15s; }

/* ---- Approach ---------------------------------------------------------- */
.approach { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--white); border-top: 1px solid var(--line); }
.approach__media { min-height: 520px; }
.approach__body { padding: clamp(48px, 7vw, 104px) clamp(24px, 6.6vw, 96px); display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.approach__text { font-size: 17px; line-height: 1.7; color: var(--ink-2); text-wrap: pretty; }
.feature-list { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; padding-top: 28px; border-top: 1px solid var(--line); }
.feature-list li { display: flex; align-items: flex-start; gap: 16px; font-weight: 600; line-height: 1.5; }
.feature-list .icon { color: var(--accent); stroke-width: 1.8; margin-top: 1px; }

/* ---- Contact band ------------------------------------------------------ */
.cta-band { background: var(--navy-900); color: var(--white); }
.cta-band__in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; padding-block: clamp(64px, 7vw, 104px); }
.cta-band__title { max-width: 760px; color: var(--white); }
.cta-band__text { max-width: 560px; font-size: 17px; line-height: 1.65; color: var(--light); text-wrap: pretty; }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 32px; margin-top: 12px; }
.cta-band__phone { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--white); }
.cta-band__phone .icon { color: var(--silver); stroke-width: 1.8; }

/* ---- Footer ------------------------------------------------------------ */
.site-footer { background: var(--navy-950); color: var(--muted); font-size: 14px; }
.footer__grid { display: flex; flex-wrap: wrap; gap: 40px; padding-block: 64px 48px; }
.footer__brand { flex: 1.4 1 220px; display: flex; flex-direction: column; gap: 20px; }
.footer__brand .logo img, .footer__brand .custom-logo { height: 28px; }
.footer__brand p { max-width: 320px; line-height: 1.6; }
.footer__col { flex: 1 1 140px; }
.footer__heading { margin-bottom: 18px; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #DCE1E8; }
.footer__col li + li { margin-top: 12px; }
.footer__col a { color: var(--muted); line-height: 1.4; }
.footer__col a:hover, .footer__contact a { color: #DCE1E8; }
.footer__contact a:hover { color: var(--white); }
.footer__links { margin-top: 20px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px 36px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12.5px; }
.footer__bottom a { color: var(--muted); }
.footer__bottom a:hover { color: var(--white); }

/* ---- Page hero (services, single service, pages) ----------------------- */
.page-hero { position: relative; isolation: isolate; background: var(--navy-900); color: var(--white); overflow: hidden; }
.page-hero__media { position: absolute; inset: 0; }
.page-hero__media img { opacity: .55; }
.page-hero__media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10,20,40,.94) 0%, rgba(10,20,40,.7) 50%, rgba(10,20,40,.25) 100%); }
.page-hero__in { position: relative; z-index: 2; padding-block: 72px 64px; display: flex; flex-direction: column; gap: 22px; }
.page-hero__in > * { max-width: 860px; }
.page-hero--image .page-hero__in { padding-block: 88px 80px; }
.page-hero__title { font-size: clamp(36px, 4.2vw, 58px); color: var(--white); }
.page-hero__text { max-width: 640px; font-size: 19px; line-height: 1.6; color: var(--light); text-wrap: pretty; }
.crumbs { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--silver); }
.crumbs a { color: var(--silver); }
.crumbs a:hover { color: var(--white); }
.crumbs .icon { color: #6F7B8B; stroke-width: 2.5; }

/* ---- About page: prose + "Global reach" card ---------------------------- */
.about-layout { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 80px; align-items: start; padding-block: 72px 96px; }
.about-aside { position: sticky; top: 24px; }
.reach { background: var(--navy-900); color: var(--white); padding: 28px 28px 26px; }
.reach .eyebrow { margin-bottom: 10px; }
.reach__map { margin: 0 -10px 18px; }
.world-map { display: block; width: 100%; height: auto; overflow: visible; }
.reach__map .creds__dots { opacity: .42; stroke-width: 3.2; }
.reach__map .creds__lights .core { r: 3px; }
.reach__map .creds__lights .glow { r: 9px; }
.reach__map .creds__lights .l { animation-name: alli-blink-bright; }
@keyframes alli-blink-bright { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.reach__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
.reach__stats strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1; }
.reach__stats span { display: block; margin-top: 6px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--silver); }
.reach__caption { margin-top: 22px; font-size: 13px; line-height: 1.5; color: var(--silver); }
.reach__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.reach__badges li { font-family: var(--serif); font-size: 15px; font-weight: 500; letter-spacing: .01em; padding: 9px 14px; border: 1px solid rgba(255,255,255,.24); }
.reach__badges .reach__logo { padding: 0; border: 0; display: flex; align-items: center; }
.reach__badges .reach__logo img { display: block; height: 34px; width: auto; }

/* ---- Service layout + prose -------------------------------------------- */
.service-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 96px; align-items: start; padding-block: 88px 96px; }
.page-layout { padding-block: 72px 96px; }
.page-layout .prose { max-width: 760px; }
.prose { max-width: 760px; font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.prose > * + * { margin-top: 28px; }
.prose h2, .prose h3 { color: var(--ink); }
.prose h2 { font-size: 30px; }
.prose h3 { font-size: 24px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose ul { list-style: disc; }
.prose li + li { margin-top: 8px; }
.prose--lead > p:first-child { font-family: var(--serif); font-size: 24px; line-height: 1.5; color: var(--ink); }
.service-list { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.service-list h2 { margin-bottom: 22px; }
.check-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.check-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 16px; font-weight: 500; color: var(--ink); }
.check-list .icon { color: var(--accent); stroke-width: 2.4; }

.service-aside { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 24px; }
.aside-card { border: 1px solid var(--line); background: var(--white); padding: 28px 32px; }
.aside-card--dark { background: var(--navy-800); color: var(--white); border-color: var(--navy-800); padding: 36px 32px; display: flex; flex-direction: column; gap: 18px; }
.aside-card__title { font-family: var(--serif); font-size: 26px; line-height: 1.2; font-weight: 500; }
.aside-card__text { font-size: 15px; line-height: 1.6; color: var(--silver); }
.aside-card--dark .btn { margin-top: 8px; }
.contact-list { display: flex; flex-direction: column; gap: 10px; font-size: 15px; font-weight: 600; }
.contact-list a { display: inline-flex; align-items: center; gap: 10px; color: var(--white); }
.contact-list .icon { color: var(--silver); stroke-width: 1.8; }
.aside-card .eyebrow { margin-bottom: 8px; }
.link-list li { border-bottom: 1px solid var(--line-2); }
.link-list li:last-child { border-bottom: 0; }
.link-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.link-list a:hover { color: var(--accent); }
.link-list .icon { color: var(--muted); stroke-width: 2.4; }
.post-list li + li { margin-top: 12px; }

/* ---- Forms (Gravity Forms + core) -------------------------------------- */
/* Orbital theme tokens (GF 2.7+) — square controls, navy primary, site fonts. */
.gform_wrapper.gform-theme.gform-theme--foundation.gform-theme--framework.gform-theme--orbital, .gform_wrapper.gravity-theme, .gform_wrapper.gform-theme {
  --gf-color-primary: var(--navy-800);
  --gf-ctrl-btn-bg-color-primary: var(--navy-800);
  --gf-ctrl-btn-bg-color-hover-primary: var(--navy-700);
  --gf-ctrl-btn-color-primary: var(--white);
  --gf-ctrl-btn-border-color-primary: var(--navy-800);
  --gf-ctrl-btn-border-color-hover-primary: var(--navy-700);
  --gf-color-primary-contrast: var(--white);
  --gf-color-primary-darker: var(--navy-700);
  --gf-color-primary-lighter: var(--accent);
  --gf-color-in-ctrl-primary: var(--navy-800);
  --gf-ctrl-border-color: var(--line);
  --gf-ctrl-radius: 0;
  --gf-ctrl-btn-radius: 0;
  --gf-ctrl-btn-font-weight: 700;
  --gf-font-size-primary: 16px;
  --gf-font-size-secondary: 14px;
  --gf-label-font-weight-primary: 600;
  --gf-label-color-primary: var(--ink);
  --gf-label-color-secondary: var(--ink-2);
  --gf-form-gap-y: 24px;
  font-family: var(--sans);
}
.gform_wrapper .gform_fields { row-gap: 24px; }
.gform_wrapper .gfield_label, .gform_wrapper .gform-field-label { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.gform_wrapper .gform-field-label--type-sub { font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: none; color: var(--ink-2); margin-top: 6px; }
.gform_wrapper .gfield_required { color: var(--accent); }
.gform_wrapper .gfield_description { font-size: 14px; color: var(--ink-2); }
.gform_wrapper .gfield input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.gform_wrapper .gfield select,
.gform_wrapper .gfield textarea {
  width: 100%; padding: 14px 16px; font: 400 16px/1.5 var(--sans); color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 0; box-shadow: none; transition: border-color .15s;
}
.gform_wrapper .gfield input:focus, .gform_wrapper .gfield select:focus, .gform_wrapper .gfield textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.gform_wrapper .gfield textarea { min-height: 160px; }
.gform_wrapper .gform_footer, .gform_wrapper .gform-footer { margin-top: 8px; padding: 0; }
.gform_wrapper.gform-theme .gform_button, .gform_wrapper.gform-theme .gform-footer button, .gform_wrapper.gform-theme .gform_footer input[type="submit"], .gform_wrapper .gform_button, .gform_wrapper input[type="submit"] {
  /* !important only here: Orbital sizes its button through its own variable set, which outranks plain selectors. */
  display: inline-flex !important; align-items: center; justify-content: center; height: auto !important; min-height: 0 !important; padding: 17px 28px !important; font: 700 13px/1 var(--sans) !important; letter-spacing: .1em !important; text-transform: uppercase !important; color: var(--white) !important; background: var(--navy-800); border: 0 !important; border-radius: 0 !important; cursor: pointer; transition: background .15s;
}
.gform_wrapper.gform-theme .gform_button:hover, .gform_wrapper.gform-theme .gform-footer button:hover, .gform_wrapper.gform-theme .gform_footer input[type="submit"]:hover, .gform_wrapper .gform_button:hover { background: var(--navy-700); }
.gform_wrapper .gform_validation_errors { border: 1px solid #B42318; border-left-width: 4px; border-radius: 0; background: #FFF5F4; box-shadow: none; padding: 14px 18px; }
.gform_wrapper .gform_validation_errors h2 { font: 600 15px/1.4 var(--sans); color: #B42318; }
.gform_wrapper .gfield_error .gfield_label { color: #B42318; }
.gform_wrapper .gfield_error input, .gform_wrapper .gfield_error textarea { border-color: #B42318; }
.gform_wrapper .gfield_validation_message, .gform_wrapper .validation_message { background: transparent; border: 0; padding: 6px 0 0; font-size: 13px; color: #B42318; }
.gform_confirmation_message { font-family: var(--serif); font-size: 24px; line-height: 1.5; color: var(--ink); }

/* Core / other forms inside page content */
.prose input[type="text"], .prose input[type="email"], .prose input[type="tel"], .prose textarea { width: 100%; padding: 14px 16px; font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 0; }
.prose input:focus, .prose textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.prose input[type="submit"], .prose button[type="submit"] { display: inline-flex; padding: 17px 28px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--white); background: var(--navy-800); border: 0; cursor: pointer; }
.prose input[type="submit"]:hover, .prose button[type="submit"]:hover { background: var(--navy-700); }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 1100px) {
  .dropdown__in { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .dropdown__intro { display: none; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; }
  .about-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; }
}

@media (max-width: 900px) {
  .utility__tagline { display: none; }
  .utility__in { justify-content: center; }
  .site-header__in { min-height: 68px; }
  .logo img, .custom-logo { height: 26px; }
  .nav-toggle { display: inline-flex; }

  /* Collapsed nav → full-width panel */
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy-800); border-top: 1px solid rgba(255,255,255,.08); padding: 8px var(--gutter) 24px; display: none; }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav__list > li > a, .nav__link { width: 100%; justify-content: space-between; padding: 16px 0; font-size: 16px; border-bottom: 0; }
  .nav .btn--outline { margin-top: 20px; justify-content: center; }
  .dropdown { position: static; box-shadow: none; border: 0; background: transparent; opacity: 1; visibility: visible; transform: none; display: none; }
  .nav__item--services.is-open .dropdown { display: block; }
  .dropdown__in { display: flex; flex-direction: column; gap: 20px; padding: 0 0 20px; }
  .dropdown__col .eyebrow { margin-bottom: 10px; }
  .dropdown__col a { color: #DCE1E8; }

  .hero { min-height: 0; }
  .hero__video { display: none; }
  .hero__in { padding-block: 72px 56px; }
  .creds__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding-block: 40px; }
  .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 36px; }
  .approach { grid-template-columns: 1fr; }
  .approach__media { min-height: 0; aspect-ratio: 16 / 10; }
  .service-layout { grid-template-columns: 1fr; gap: 40px; padding-block: 56px 72px; }
  .service-aside { position: static; }
  .about-layout { grid-template-columns: 1fr; gap: 48px; padding-block: 56px 72px; }
  .about-aside { position: static; }
  .check-list { grid-template-columns: 1fr; }
  .page-hero__in { padding-block: 56px 48px; }
  .page-hero--image .page-hero__in { padding-block: 64px 56px; }
}

@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; gap: 12px; }
  .card { flex-direction: row; align-items: center; gap: 4px; }
  .card__media { flex: 0 0 96px; aspect-ratio: 4 / 3; margin: 12px 0 12px 12px; }
  .card__body { padding: 12px 16px; gap: 3px; }
  .card__title { font-size: 18px; }
  .card__text { display: none; }
  .card__more { display: none; }
  .hero__actions .btn, .cta-band__actions .btn { width: 100%; }
  .cta-band__in { align-items: flex-start; text-align: left; }
  .cta-band__actions { justify-content: flex-start; width: 100%; }
  .prose--lead > p:first-child { font-size: 21px; }
  .footer__grid { gap: 32px; padding-block: 44px 28px; }
  .footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
  .creds__lights .l { animation: none; opacity: .4; }
}
