﻿/* Apex Healthcare Staffing: v2 design
   Fonts: Bricolage Grotesque (headings), Instrument Sans (body). Self-hosted. */

@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/bricolage-grotesque-700.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-style: normal; font-display: swap; src: url("/assets/fonts/bricolage-grotesque-800.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/instrument-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/instrument-sans-600.woff2") format("woff2"); }

:root {
  --navy: #1d2e86;
  --navy-900: #111a4f;
  --navy-700: #26399f;
  --navy-100: #c5cbec;
  --navy-50: #eef0fa;
  --orange: #fb8a10;
  --orange-text: #a85200;
  --orange-50: #fff1e0;
  --cream: #faf6f0;
  --ink: #1a1f36;
  --muted: #4a5170;
  --line: #e2e0ea;
  --white: #ffffff;
  --radius: 18px;
  --max: 1160px;
  --head: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --shadow: 0 1px 2px rgba(17,26,79,.06), 0 8px 24px rgba(17,26,79,.08);
  --shadow-lift: 0 2px 4px rgba(17,26,79,.08), 0 18px 40px rgba(17,26,79,.16);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.nav-open { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 800px) { body { font-size: 1.125rem; } }

img, svg { max-width: 100%; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--navy-700); }
strong { font-weight: 600; }

h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.1; margin: 0; color: var(--navy-900); letter-spacing: -0.015em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 3.75rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); line-height: 1.12; margin-bottom: 18px; }
h3 { font-size: 1.3rem; line-height: 1.2; margin-bottom: 8px; }

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

.skip { position: absolute; left: 8px; top: -64px; background: var(--navy); color: var(--white); padding: 10px 16px; z-index: 200; border-radius: 8px; }
.skip:focus { top: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.eyebrow { font-family: var(--body); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange-text); margin: 0 0 14px; }
.dark .eyebrow, .hero-dark .eyebrow { color: var(--orange); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 90; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .2s ease, border-color .2s ease; }
@media (max-width: 939px) { .site-header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; } }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(17,26,79,.07); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: var(--max); margin: 0 auto; padding: 10px 22px; }
.brand img { height: 46px; width: auto; display: block; }

.menu-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--navy); color: var(--white); border: 0; font: inherit; font-weight: 600; font-size: 0.95rem; padding: 11px 18px; border-radius: 999px; cursor: pointer; position: relative; z-index: 120; }
.menu-btn .bars { width: 16px; height: 10px; position: relative; display: inline-block; }
.menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease, top .2s ease; }
.menu-btn .bars::before { top: 0; }
.menu-btn .bars::after { top: 8px; }
.menu-btn[aria-expanded="true"] .bars::before { top: 4px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { top: 4px; transform: rotate(-45deg); }

.site-nav { display: none; position: fixed; inset: 0; z-index: 110; background: var(--navy-900); padding: 96px 28px 40px; overflow-y: auto; }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 16px 0; font-family: var(--head); font-weight: 700; font-size: 1.7rem; color: var(--white); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.14); }
.site-nav a[aria-current="page"] { color: var(--orange); }
.site-nav .nav-call { display: inline-block; margin-top: 28px; border: 0; padding: 16px 26px; border-radius: 999px; background: var(--orange); color: var(--navy-900); font-family: var(--body); font-size: 1.05rem; font-weight: 600; }
.site-nav .nav-cta { display: none; }

@media (min-width: 940px) {
  .menu-btn { display: none; }
  .site-nav { display: block; position: static; background: transparent; padding: 0; overflow: visible; }
  .site-nav ul { display: flex; align-items: center; gap: 2px; }
  .site-nav a { font-family: var(--body); font-weight: 600; font-size: 0.97rem; color: var(--ink); padding: 10px 13px; border: 0; border-radius: 999px; }
  .site-nav a:hover { background: var(--navy-50); color: var(--navy); }
  .site-nav a[aria-current="page"] { color: var(--navy); background: var(--navy-50); }
  .site-nav .nav-call { display: none; }
  .site-nav .nav-cta { display: block; background: var(--navy); color: var(--white); margin-left: 8px; padding: 11px 20px; }
  .site-nav .nav-cta:hover { background: var(--navy-700); color: var(--white); }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--navy); color: var(--white); font-family: var(--body); font-weight: 600; font-size: 1rem; text-decoration: none; padding: 15px 26px; border-radius: 999px; border: 2px solid var(--navy); line-height: 1.2; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; cursor: pointer; }
.btn:hover { background: var(--navy-700); border-color: var(--navy-700); color: var(--white); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(29,46,134,.28); }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy-50); color: var(--navy); box-shadow: none; }
.btn-orange { background: var(--orange); border-color: var(--orange); color: var(--navy-900); }
.btn-orange:hover { background: #ffa23d; border-color: #ffa23d; color: var(--navy-900); box-shadow: 0 10px 22px rgba(251,138,16,.35); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: var(--white); border-color: var(--white); box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--cream); padding: 40px 0 56px; }
.hero::before { content: ""; position: absolute; right: -12%; top: -30%; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(closest-side, rgba(251,138,16,.14), rgba(251,138,16,0)); pointer-events: none; }
.hero-grid { position: relative; display: grid; gap: 36px; align-items: center; }
.hero h1 .mark { background-image: linear-gradient(var(--orange), var(--orange)); background-repeat: no-repeat; background-position: 0 92%; background-size: 100% .16em; padding-bottom: .02em; }
.hero .lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 52ch; margin: 22px 0 0; }
.trust { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.trust li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--navy-900); }
.trust .ico { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; color: var(--navy); }
.trust .ico svg { width: 18px; height: 18px; }
.hero-art { position: relative; justify-self: center; width: min(100%, 500px); aspect-ratio: 5 / 5.6; }
.hero-photo { position: absolute; inset: 0; z-index: 2; border-radius: 28px; overflow: hidden; clip-path: polygon(0 0, 76% 0, 100% 20%, 100% 100%, 0 100%); box-shadow: var(--shadow-lift); background: var(--navy-100); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 38%; display: block; }
.hero-art svg { position: absolute; display: block; height: auto; overflow: visible; }
.hero-art .t-line { width: 46%; right: -9%; top: -10%; z-index: 1; animation: drift-b 11s ease-in-out infinite alternate; }
.hero-art .t-orange { width: 34%; left: -8%; bottom: -7%; z-index: 3; animation: drift-a 9s ease-in-out infinite alternate; filter: drop-shadow(0 8px 14px rgba(17,26,79,.25)); }
@keyframes drift-a { from { transform: translate(0,0); } to { transform: translate(10px,-8px); } }
@keyframes drift-b { from { transform: translate(0,0); } to { transform: translate(-10px,8px); } }
@media (max-width: 899px) { .hero-art { width: min(92%, 420px); aspect-ratio: 5 / 4.4; margin-top: 8px; } .hero-photo img { object-position: 60% 35%; } }

/* photos */
.photo { margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow); background: var(--navy-100); }
.photo img { display: block; width: 100%; height: auto; }
.photo::after { content: ""; position: absolute; right: 0; bottom: 0; width: 56px; height: 50px; background: var(--orange); clip-path: polygon(100% 100%, 100% 0, 0 100%); }
.photo-wide img { aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 40%; }
.photo-tall { max-width: 360px; }
.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr .9fr; gap: 64px; } .split.flip > :first-child { order: 2; } }
.split .photo { margin: 0; }
@media (min-width: 900px) {
  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
}

.js .hero h1 .mark { animation: draw 0.9s .35s ease both; }
@keyframes draw { from { background-size: 0 .16em; } to { background-size: 100% .16em; } }

/* ---------- Sections ---------- */
section { padding: 64px 0; position: relative; }
@media (min-width: 800px) { section { padding: 96px 0; } }
.band { background: var(--cream); }
.dark { background: var(--navy-900); color: #e9ebfb; }
.dark h2, .dark h3 { color: var(--white); }
.dark a { color: var(--white); }
.section-head { max-width: 62ch; margin-bottom: 8px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.prose { max-width: 70ch; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }

/* angled edge into dark sections */
.dark::before, .cta::before { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: clamp(24px, 4.5vw, 56px); background: var(--white); clip-path: polygon(0 0, 100% 0, 0 100%); z-index: 1; }
.band + .dark::before, .band + .cta::before { background: var(--cream); }
.dark > .wrap, .cta > .wrap { position: relative; z-index: 2; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 36px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.four { grid-template-columns: repeat(4, 1fr); } }

.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; position: relative; overflow: hidden; }
a.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: var(--navy-100); color: var(--ink); }
.card::after { content: ""; position: absolute; right: -1px; top: -1px; width: 38px; height: 38px; background: var(--orange); clip-path: polygon(100% 0, 0 0, 100% 100%); opacity: 0; transition: opacity .2s ease; }
a.card:hover::after { opacity: 1; }
.chip { width: 52px; height: 52px; border-radius: 14px; background: var(--navy-50); color: var(--navy); display: grid; place-items: center; margin-bottom: 18px; }
.chip svg { width: 26px; height: 26px; }
.card h3 { color: var(--navy-900); }
.card p { margin: 0; color: var(--muted); font-size: 1rem; }
.card .more { margin-top: auto; padding-top: 16px; font-weight: 600; color: var(--navy); display: inline-flex; gap: 8px; align-items: center; }
.card .more .arrow { transition: transform .15s ease; }
a.card:hover .more .arrow { transform: translateX(5px); }

.tile { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%); color: #e9ebfb; border: 0; }
.tile h3, .tile p { color: var(--white); }
.tile p { color: #d4d8f3; }
.tile .chip { background: rgba(255,255,255,.12); color: var(--orange); }
.tile .more { color: var(--white); }
a.tile:hover { color: #e9ebfb; border-color: transparent; }

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 40px 0 0; display: grid; gap: 22px; position: relative; }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 24px; position: relative; box-shadow: var(--shadow); }
.steps li::before { content: counter(step); position: absolute; top: -22px; left: 22px; width: 52px; height: 48px; background: var(--navy); color: var(--white); clip-path: polygon(50% 0, 100% 100%, 0 100%); display: grid; place-items: end center; padding-bottom: 6px; font-family: var(--head); font-weight: 800; font-size: 1.1rem; box-sizing: border-box; }
.steps li:nth-child(odd)::after { content: ""; position: absolute; top: -14px; left: 62px; width: 14px; height: 12px; background: var(--orange); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.steps h3 { margin-top: 16px; }
.steps p { margin: 0; color: var(--muted); font-size: 1rem; }
@media (min-width: 900px) { .steps.row { grid-template-columns: repeat(3, 1fr); } .steps:not(.row) { grid-template-columns: repeat(2, 1fr); } }
.band .steps li { background: var(--white); }

/* ---------- Quote ---------- */
blockquote.quote { margin: 0; padding: 28px 26px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); position: relative; font-size: 1.15rem; line-height: 1.6; }
blockquote.quote p { margin: 0; }
blockquote.quote footer { margin-top: 16px; font-weight: 600; color: var(--muted); font-size: .95rem; }
blockquote.quote::before { content: ""; position: absolute; top: 0; left: 26px; width: 34px; height: 30px; background: var(--orange); clip-path: polygon(50% 100%, 0 0, 100% 0); transform: translateY(-50%); }

.quote-band { text-align: left; }
.quote-band .wrap { max-width: 980px; }
.quote-band .qmark { width: 56px; height: 50px; background: var(--orange); clip-path: polygon(50% 100%, 0 0, 100% 0); margin-bottom: 26px; }
.quote-band blockquote { margin: 0; padding: 0; }
.quote-band blockquote p { font-family: var(--head); font-weight: 700; font-size: clamp(1.35rem, 3.1vw, 2.15rem); line-height: 1.28; letter-spacing: -0.01em; color: var(--white); margin: 0; }
.quote-band footer { margin-top: 26px; color: #c9cdee; font-weight: 600; display: flex; align-items: center; gap: 12px; }
.quote-band footer::before { content: ""; width: 36px; height: 2px; background: var(--orange); }

/* ---------- Story band ---------- */
.story-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .story-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.story-grid h2 { margin: 0; }
.story-grid p { margin: 0 0 1em; }
.text-link { font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.text-link .arrow { transition: transform .15s ease; }
.text-link:hover .arrow { transform: translateX(5px); }

/* ---------- CTA ---------- */
.cta { background: var(--orange); color: var(--navy-900); text-align: left; overflow: hidden; }
.cta h2 { color: var(--navy-900); max-width: 18ch; }
.cta p { max-width: 54ch; margin: 0 0 6px; font-size: 1.15rem; color: var(--navy-900); }
.cta .btn-row { justify-content: flex-start; }
.cta .btn { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.cta .btn:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.cta .btn-ghost { background: transparent; color: var(--navy-900); border-color: var(--navy-900); }
.cta .btn-ghost:hover { background: rgba(17,26,79,.1); color: var(--navy-900); }
.cta a:not(.btn) { color: var(--navy-900); }
.cta::after { content: ""; position: absolute; right: -4%; bottom: -30%; width: min(60vw, 560px); aspect-ratio: 1 / .9; background: rgba(255,255,255,.16); clip-path: polygon(50% 0, 100% 100%, 0 100%); z-index: 0; }
.cta .wrap { z-index: 2; }

/* ---------- Page header (interior) ---------- */
.page-head { position: relative; overflow: hidden; background: var(--cream); padding: 52px 0 44px; }
.page-head::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: min(46vw, 420px); aspect-ratio: 1 / .9; background: var(--navy); opacity: .06; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.page-head::before { content: ""; position: absolute; right: min(8vw, 90px); bottom: 24px; width: 56px; height: 50px; background: var(--orange); clip-path: polygon(50% 0, 100% 100%, 0 100%); opacity: .9; }
.page-head .wrap { position: relative; z-index: 2; }
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); max-width: 20ch; }
.page-head p { margin: 16px 0 0; max-width: 60ch; color: var(--muted); font-size: 1.15rem; }
.crumbs { font-size: .9rem; margin: 0 0 14px !important; color: var(--muted); }
.crumbs a { color: var(--muted); }
@media (min-width: 800px) { .page-head { padding: 84px 0 68px; } }

.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li { padding-left: 34px; position: relative; margin-bottom: 12px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 14px; height: 12px; background: var(--orange); clip-path: polygon(50% 0, 100% 100%, 0 100%); }

.note { background: var(--navy-50); border-left: 5px solid var(--navy); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; margin: 32px 0 0; max-width: 70ch; }
.note p { margin: 0; }

.contact-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-top: 28px; max-width: 560px; box-shadow: var(--shadow); }
.contact-box p { margin: 0 0 10px; }
.contact-box .big { font-family: var(--head); font-size: 1.5rem; font-weight: 700; overflow-wrap: anywhere; }
.contact-box .big a { text-decoration: none; }

/* forms */
.apply { max-width: 580px; }
.apply .field { margin-bottom: 20px; }
.apply label { display: block; font-weight: 600; margin-bottom: 6px; }
.apply input[type="text"], .apply input[type="email"], .apply input[type="tel"], .apply textarea, .apply input[type="file"] { width: 100%; font: inherit; padding: 13px 14px; border: 2px solid #8a90b4; border-radius: 12px; background: var(--white); color: var(--ink); }
.apply input:focus, .apply textarea:focus { border-color: var(--navy); outline: 3px solid var(--orange); outline-offset: 2px; }
.apply .check { display: grid; grid-template-columns: 28px 1fr; column-gap: 8px; align-items: start; }
.apply .check input { width: 22px; height: 22px; margin-top: 3px; }
.apply .check label { margin: 0; }
.apply .consent { grid-column: 1 / -1; font-size: .9rem; color: var(--muted); margin: 8px 0 0; }
.apply .hp { position: absolute; left: -9999px; }
.legal h2, .legal h3 { margin-top: 1.5em; }
.legal ul, .legal ol { padding-left: 1.3em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #cfd3f0; padding: 64px 0 36px; position: relative; overflow: hidden; font-size: 1rem; }
.site-footer::before { content: ""; position: absolute; right: -60px; top: -80px; width: 420px; aspect-ratio: 1 / .9; background: rgba(255,255,255,.04); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.site-footer .wrap { position: relative; }
.footer-grid { display: grid; gap: 34px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.site-footer h2 { font-size: .85rem; font-family: var(--body); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer p { margin: 0 0 10px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.foot-brand { font-family: var(--head); font-weight: 800; font-size: 1.5rem; color: var(--white); margin: 0 0 10px; }
.foot-tag { color: var(--orange); font-weight: 600; }
.fine { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); color: #aab0e0; font-size: .9rem; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .js .hero h1 .mark { animation: none; }
}

/* ================= v3: interior pages ================= */
.mark { background-image: linear-gradient(var(--orange), var(--orange)); background-repeat: no-repeat; background-position: 0 92%; background-size: 100% .16em; padding-bottom: .02em; }
.js .page-hero .mark { animation: draw 1s .55s cubic-bezier(.6,0,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.1); } }

.page-hero { position: relative; overflow: hidden; background: var(--navy-900); color: #fff; padding: 64px 0 104px; isolation: isolate; }
.page-hero .ph-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; animation: kenburns 24s ease-in-out infinite alternate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(100deg, rgba(17,26,79,.97) 0%, rgba(17,26,79,.86) 46%, rgba(29,46,134,.5) 100%); }
.page-hero.plain::before { background: radial-gradient(circle at 85% 20%, rgba(38,57,159,.9), rgba(17,26,79,1) 60%); }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(34px, 6vw, 84px); background: #fff; clip-path: polygon(0 100%, 100% 0, 100% 100%); z-index: 2; }
.page-hero .wrap { position: relative; z-index: 3; }
.page-hero .ph-inner > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.page-hero .ph-inner > :nth-child(2) { animation-delay: .08s; }
.page-hero .ph-inner > :nth-child(3) { animation-delay: .18s; }
.page-hero h1 { color: #fff; font-size: clamp(2.3rem, 5.6vw, 4rem); max-width: 19ch; }
.page-hero p { margin: 20px 0 0; max-width: 56ch; color: #dfe2f8; font-size: clamp(1.1rem, 2.1vw, 1.3rem); }
.page-hero .crumbs { font-size: .9rem; margin: 0 0 18px; color: #c9cdee; }
.page-hero .crumbs a { color: #fff; }
.ph-tri { position: absolute; z-index: 1; pointer-events: none; }
.ph-tri.a { right: 7%; bottom: 17%; width: clamp(54px, 8vw, 110px); animation: drift-a 9s ease-in-out infinite alternate; filter: drop-shadow(0 10px 18px rgba(0,0,0,.3)); }
.ph-tri.b { right: 15%; top: 12%; width: clamp(90px, 15vw, 220px); animation: drift-b 12s ease-in-out infinite alternate; opacity: .55; }
@media (max-width: 700px) { .ph-tri.b { right: -8%; top: 4%; } .page-hero { padding: 46px 0 92px; } }

.split.about { align-items: start; }
.glance { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%); color: #e9ebfb; border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow-lift); position: relative; overflow: hidden; }
.glance::after { content: ""; position: absolute; right: -1px; top: -1px; width: 56px; height: 56px; background: var(--orange); clip-path: polygon(100% 0, 0 0, 100% 100%); }
.glance h3 { color: #fff; font-size: 1.5rem; margin-bottom: 18px; }
.glance ul { list-style: none; margin: 0 0 24px; padding: 0; }
.glance li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.14); font-weight: 600; color: #fff; }
.glance li svg { flex: 0 0 auto; width: 24px; height: 24px; color: var(--orange); margin-top: 1px; }
.glance .btn { background: var(--orange); border-color: var(--orange); color: var(--navy-900); }
.glance .btn:hover { background: #ffa240; border-color: #ffa240; color: var(--navy-900); }

.look-grid { list-style: none; counter-reset: l; margin: 36px 0 0; padding: 0; display: grid; gap: 18px; }
@media (min-width: 760px) { .look-grid { grid-template-columns: repeat(2, 1fr); } }
.look-grid li { counter-increment: l; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px 26px 26px; box-shadow: var(--shadow); font-weight: 600; font-size: 1.1rem; color: var(--navy-900); line-height: 1.4; position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.look-grid li:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.look-grid li::before { content: counter(l, decimal-leading-zero); display: block; font-family: var(--head); font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--orange); margin-bottom: 12px; letter-spacing: -.02em; }
.look-grid li::after { content: ""; position: absolute; right: -14px; bottom: -14px; width: 74px; height: 66px; background: var(--navy-50); clip-path: polygon(50% 0, 100% 100%, 0 100%); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.chips li, .chips a { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--navy-50); color: var(--navy); font-weight: 600; font-size: .95rem; text-decoration: none; border: 1px solid transparent; }
.chips a:hover { background: var(--navy); color: #fff; }
.band .chips li, .band .chips a { background: #fff; border-color: var(--line); }
.band .chips a:hover { background: var(--navy); color: #fff; }

.art-panel { border-radius: var(--radius); background: linear-gradient(150deg, var(--navy) 0%, var(--navy-900) 100%); aspect-ratio: 16 / 11; position: relative; overflow: hidden; box-shadow: var(--shadow-lift); display: grid; place-items: center; color: var(--orange); }
.art-panel svg.big { width: 28%; height: auto; position: relative; z-index: 2; stroke-width: 1.3; }
.art-panel::before { content: ""; position: absolute; right: -6%; top: -12%; width: 52%; aspect-ratio: 1 / .9; border: 3px solid rgba(255,255,255,.22); clip-path: none; transform: rotate(0deg); background: rgba(255,255,255,.05); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.art-panel::after { content: ""; position: absolute; left: 8%; bottom: -10%; width: 30%; aspect-ratio: 1 / .9; background: var(--orange); opacity: .9; clip-path: polygon(50% 0, 100% 100%, 0 100%); animation: drift-a 9s ease-in-out infinite alternate; }
.serve-photo img { aspect-ratio: 4 / 3; object-fit: cover; }

.timeline { list-style: none; counter-reset: t; margin: 44px 0 0; padding: 0; position: relative; max-width: 860px; }
.timeline::before { content: ""; position: absolute; left: 25px; top: 20px; bottom: 30px; width: 2px; background: linear-gradient(var(--orange), var(--navy-100)); }
.timeline li { counter-increment: t; position: relative; padding: 0 0 40px 82px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: counter(t); position: absolute; left: 0; top: 0; width: 52px; height: 48px; background: var(--navy); color: #fff; clip-path: polygon(50% 0, 100% 100%, 0 100%); display: grid; place-items: end center; padding-bottom: 6px; font-family: var(--head); font-weight: 800; font-size: 1.1rem; box-sizing: border-box; }
.timeline.dated li::before { content: ""; background: var(--orange); }
.timeline h3 { font-size: 1.55rem; margin: 2px 0 8px; }
.timeline p { margin: 0; color: var(--muted); max-width: 60ch; }
.when { display: block; font-weight: 600; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-text); margin-bottom: 2px; }

.contact-card { text-decoration: none; }
.contact-card .big { font-family: var(--head); font-weight: 800; font-size: clamp(1.25rem, 3.3vw, 1.7rem); color: var(--navy-900); overflow-wrap: anywhere; line-height: 1.2; }
.contact-card .label { font-weight: 600; color: var(--muted); font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.grid.two { margin-top: 36px; }
@media (min-width: 960px) { .grid.two { grid-template-columns: repeat(2, 1fr); } }
.card .chip { transition: background .2s ease, color .2s ease, transform .2s ease; }
a.card:hover .chip { background: var(--navy); color: #fff; transform: rotate(-6deg) scale(1.05); }
.pull { font-family: var(--head); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.25; color: var(--navy-900); border-left: 6px solid var(--orange); padding: 4px 0 4px 24px; margin: 8px 0 0; max-width: 24ch; }
.fine-cards { margin-top: 36px; }
.prose-wide { max-width: 78ch; }
@media (prefers-reduced-motion: reduce) { .page-hero .ph-inner > * { animation: none !important; } .js .page-hero .mark { animation: none; } }
.chips li a { background: none !important; border: 0 !important; padding: 0 !important; color: inherit; display: inline; }
.chips li:has(a) { transition: background .15s ease, color .15s ease; }
.chips li:has(a):hover { background: var(--navy); color: #fff; }
.chips li:has(a):focus-within { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ================= v4: centered titles, calmer banners ================= */
h2 { font-weight: 800; letter-spacing: -0.02em; }
.section-head { max-width: none; text-align: center; margin: 0 auto 8px; }
.section-head h2 { margin-bottom: 0; max-width: 24ch; margin-left: auto; margin-right: auto; }
.section-head h2::after { content: ""; display: block; width: 26px; height: 22px; margin: 22px auto 0; background: var(--orange); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.section-head p:not(.eyebrow) { max-width: 62ch; margin: 16px auto 0; }

.page-hero { padding: 76px 0 112px; }
.page-hero .ph-inner { text-align: center; }
.page-hero h1 { max-width: 22ch; margin: 0 auto; font-size: clamp(2.5rem, 6.2vw, 4.6rem); line-height: 1.02; text-shadow: 0 2px 28px rgba(8,12,48,.35); }
.page-hero p { margin-left: auto; margin-right: auto; }
.page-hero .crumbs { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; margin: 0 0 20px; }
.page-hero::before { background: linear-gradient(90deg, rgba(17,26,79,.55) 0%, rgba(17,26,79,.9) 28%, rgba(17,26,79,.9) 72%, rgba(17,26,79,.55) 100%); }
.page-hero.plain::before { background: radial-gradient(circle at 50% 0%, rgba(38,57,159,.9), rgba(17,26,79,1) 65%); }
.ph-tri.a { left: 5%; right: auto; bottom: 20%; width: clamp(48px, 6vw, 84px); }
.ph-tri.b { right: 4%; left: auto; top: 10%; width: clamp(90px, 13vw, 190px); opacity: 1; }
@media (max-width: 700px) { .ph-tri.b { display: none; } .ph-tri.a { left: 6%; bottom: 14%; width: 44px; } .page-hero { padding: 54px 0 100px; } }

.cta { text-align: center; }
.cta h2 { max-width: 20ch; margin-left: auto; margin-right: auto; }
.cta p { margin-left: auto; margin-right: auto; }
.cta .btn-row { justify-content: center; }
.quote-band .qmark { margin-left: auto; margin-right: auto; }
.quote-band blockquote p { text-align: center; }
.quote-band footer { justify-content: center; }
.more-strip { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; margin-top: 22px; padding: 26px 30px; border-radius: var(--radius); background: linear-gradient(120deg, var(--navy) 0%, var(--navy-900) 100%); color: #e9ebfb; text-decoration: none; position: relative; overflow: hidden; box-shadow: var(--shadow-lift); }
.more-strip::after { content: ""; position: absolute; right: -1px; top: -1px; width: 52px; height: 52px; background: var(--orange); clip-path: polygon(100% 0, 0 0, 100% 100%); }
.more-strip h3 { color: #fff; font-size: 1.5rem; margin-bottom: 6px; }
.more-strip p { margin: 0; max-width: 60ch; color: #d4d8f3; }
.more-strip .btn { background: var(--orange); border-color: var(--orange); color: var(--navy-900); }
.more-strip:hover .btn { background: #ffa240; }
.timeline { margin-left: auto; margin-right: auto; }
.pos-top img { object-position: 50% 28%; }
.page-hero::before { background: linear-gradient(90deg, rgba(17,26,79,.30) 0%, rgba(17,26,79,.68) 30%, rgba(17,26,79,.68) 70%, rgba(17,26,79,.30) 100%), linear-gradient(180deg, rgba(17,26,79,.15) 0%, rgba(17,26,79,.45) 100%); }
.page-hero { padding: 92px 0 128px; }
.page-hero h1 { text-shadow: 0 2px 6px rgba(8,12,48,.5), 0 4px 40px rgba(8,12,48,.55); }
.page-hero p { text-shadow: 0 1px 12px rgba(8,12,48,.6); color: #fff; }
@media (max-width: 700px) { .page-hero { padding: 60px 0 104px; } }

/* BGC acknowledgement form (native replacement for the Jotform) */
.apply.bgc { max-width: 760px; margin-left: auto; margin-right: auto; }
.bgc-legal { background: var(--navy-50); border-radius: var(--radius); padding: 24px 26px; margin-bottom: 28px; font-size: .98rem; }
.bgc-legal p { margin: 0 0 14px; }
.bgc-legal .bgc-lead { font-family: var(--font-display, inherit); font-size: 1.3rem; font-weight: 700; text-decoration: underline; color: var(--navy-900); }
.sig-pad { display: block; width: 100%; max-width: 620px; height: auto; aspect-ratio: 620 / 228; background: #fff; border: 2px solid #8a90b4; border-radius: 12px; touch-action: none; cursor: crosshair; }
.sig-pad:focus { border-color: var(--navy); outline: 3px solid var(--orange); outline-offset: 2px; }
.sig-clear { margin-top: 8px; background: none; border: 0; padding: 4px 0; font: inherit; font-weight: 600; color: var(--navy); text-decoration: underline; cursor: pointer; }
.sig-help { font-size: .9rem; color: var(--muted); margin: 4px 0 0; }
.sig-error { color: #b00020; font-weight: 600; margin: 8px 0 0; }
.apply input[readonly] { background: #f3f4fa; max-width: 220px; }

/* ================= v6: positions list (names only) ================= */
.pos-card h3 { margin-bottom: 10px; }
.pos-list { list-style: none; padding: 0; margin: 0; }
.pos-list li { position: relative; padding: 7px 0 7px 26px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.pos-list li:first-child { border-top: 0; }
.pos-list li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 11px; height: 9px; background: var(--orange); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
/* ================= v7: five-up tiles, action cards ================= */
@media (min-width: 640px) and (max-width: 1099px) { .grid.five { grid-template-columns: repeat(6, 1fr); } .grid.five > * { grid-column: span 2; } .grid.five > :nth-child(4) { grid-column: 2 / span 2; } }
@media (min-width: 640px) and (max-width: 959px) { .grid.five { grid-template-columns: repeat(2, 1fr); } .grid.five > *, .grid.five > :nth-child(4) { grid-column: auto; } .grid.five > :nth-child(5) { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .grid.five { grid-template-columns: repeat(5, 1fr); } .grid.five .card { padding: 24px 22px; } }
.action-card { padding: 30px 28px; }
.action-card h3 { font-size: 1.55rem; }
.action-card p { margin-bottom: 22px; }
.action-card .btn { margin-top: auto; align-self: flex-start; }
.action-card .btn svg:not(.arrow) { width: 18px; height: 18px; }

/* ================= v7: dark mode (follows the device setting) ================= */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0b1029;
    --surface: #151c40;
    --cream: #10173a;
    --ink: #e4e7f6;
    --muted: #aab1d6;
    --line: #29326a;
    --navy-50: #1c2556;
    --navy-100: #38448f;
    --orange-text: #ffab52;
    --link: #aebcff;
    --shadow: 0 1px 2px rgba(0,0,0,.35), 0 8px 24px rgba(0,0,0,.3);
    --shadow-lift: 0 2px 4px rgba(0,0,0,.4), 0 18px 40px rgba(0,0,0,.45);
  }
  body { background: var(--bg); }
  a, .card .more, .text-link { color: var(--link); }
  a:hover { color: #d3dbff; }
  h1, h2, h3, .card h3, .trust li, .pull, .contact-card .big, .bgc-legal .bgc-lead { color: #f3f4fc; }

  .site-header { background: rgba(11,16,41,.9); }
  @media (max-width: 939px) { .site-header { background: var(--bg); } }
  .site-header.scrolled { box-shadow: 0 6px 20px rgba(0,0,0,.35); }
  @media (min-width: 940px) {
    .site-nav a { color: var(--ink); }
    .site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--navy-50); color: #fff; }
    .site-nav .nav-cta { background: #3346b8; }
    .site-nav .nav-cta:hover { background: #4257d1; }
  }

  .card, .steps li, .band .steps li, blockquote.quote, .trust .ico, .band .chips li, .band .chips a { background: var(--surface); }
  .chip, .trust .ico, .chips li, .chips a { color: var(--link); }
  a.card:hover .chip, .chips li:has(a):hover { color: #fff; }
  .tile .chip { color: var(--orange); }
  .tile, .more-strip, .glance { background: linear-gradient(160deg, #24369c 0%, #16205e 100%); }

  .btn { background: #3346b8; border-color: #3346b8; }
  .btn:hover { background: #4257d1; border-color: #4257d1; box-shadow: 0 10px 22px rgba(0,0,0,.4); }
  .btn-outline { background: transparent; color: #d3dbff; border-color: var(--link); }
  .btn-outline:hover { background: rgba(174,188,255,.12); color: #fff; }
  .more-strip .btn, .glance .btn { background: var(--orange); border-color: var(--orange); color: var(--navy-900); }
  .menu-btn { background: #3346b8; }

  .dark { background: #16205e; }
  .dark::before, .cta::before { background: var(--bg); }
  .band + .dark::before, .band + .cta::before { background: var(--cream); }
  .page-hero::after { background: var(--bg); }
  .cta .btn { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
  .cta .btn-ghost { background: transparent; color: var(--navy-900); border-color: var(--navy-900); }
  .cta a:not(.btn) { color: var(--navy-900); }
  .site-footer { background: #070b1f; border-top: 1px solid var(--line); }

  .note { border-left-color: var(--link); }
  .apply input[type="text"], .apply input[type="email"], .apply input[type="tel"], .apply textarea, .apply input[type="file"] { background: var(--surface); border-color: #5b6399; color: var(--ink); }
  .apply input:focus, .apply textarea:focus { border-color: var(--link); }
  .apply input[readonly] { background: var(--navy-50); }
  .sig-clear { color: var(--link); }
  .sig-error { color: #ff8a9b; }
  .hero::before { background: radial-gradient(closest-side, rgba(251,138,16,.10), rgba(251,138,16,0)); }
  .hero-art .t-line polygon { stroke: #6f82f0; }
}
/* ================= v8: contact form ================= */
.contact-layout { display: grid; gap: 36px; align-items: start; }
@media (min-width: 960px) { .contact-layout { grid-template-columns: 1.6fr 1fr; gap: 48px; } .contact-side { position: sticky; top: 110px; } }
.contact-form { max-width: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px 30px; box-shadow: var(--shadow); }
.contact-form h2 { margin-bottom: 8px; }
.contact-form .form-intro { color: var(--muted); margin: 0 0 26px; }
.field-row { display: grid; gap: 0 18px; }
@media (min-width: 700px) { .field-row { grid-template-columns: 1fr 1fr; } }
.apply textarea::placeholder { color: var(--muted); opacity: .8; }
.contact-form .btn { margin-top: 4px; }
.side-note { color: var(--muted); margin: 18px 4px 0; font-size: 1rem; }
@media (prefers-color-scheme: dark) { .contact-form { background: var(--surface); } }