/* ==========================================================================
   Unicorn Staffing — public site styles (also loaded by the admin panel).
   Plain CSS, no build step. Palette comes from the logo SVGs:
   navy #15325F, blue #2563B0, light blue #7FB0E0.
   ========================================================================== */

:root {
  /* Brand */
  --navy: #15325F;
  --navy-deep: #0C1F3F;
  --blue: #2563B0;
  --blue-bright: #3478C6;
  --sky: #7FB0E0;
  --sky-200: #C7DBF0;
  --sky-100: #E3EDF8;
  --sky-50: #F2F7FC;

  /* Neutrals */
  --paper: #FBF9F5;
  --surface: #FFFFFF;
  --tint: #F1F5F9;
  --ink: #0F2346;
  --body: #3D4B61;
  --muted: #5F6C82;
  --faint: #97A3B6;
  --border: #E1E6EE;
  --border-strong: #C9D3E0;

  /* Status */
  --emerald: #1E6B47;
  --red: #A8322C;
  --amber: #8A5A00;

  /* Legacy names still used by admin.css */
  --subtle: var(--tint);
  --blue-50: var(--sky-50);
  --blue-100: #D6E4F3;
  --blue-300: var(--sky);
  --blue-500: var(--blue);
  --blue-600: #1F4C8F;
  --blue-700: var(--navy);
  --blue-900: #11284C;
  --blue-950: var(--navy-deep);

  /* Type */
  --font-serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: var(--font-sans);

  /* Shape & depth */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(15, 35, 70, .06), 0 2px 8px rgba(15, 35, 70, .04);
  --shadow-md: 0 2px 4px rgba(15, 35, 70, .04), 0 12px 32px -8px rgba(15, 35, 70, .14);
  --shadow-lg: 0 4px 8px rgba(15, 35, 70, .04), 0 28px 60px -16px rgba(15, 35, 70, .24);

  /* Gradients — used sparingly: hero glow, primary button, dark panels */
  --grad-brand: linear-gradient(135deg, #15325F 0%, #1F4C8F 50%, #2563B0 100%);
  --grad-deep:
    radial-gradient(90% 120% at 100% 0%, rgba(127, 176, 224, .38) 0%, rgba(127, 176, 224, 0) 55%),
    radial-gradient(70% 90% at 0% 100%, rgba(37, 99, 176, .55) 0%, rgba(37, 99, 176, 0) 60%),
    linear-gradient(160deg, #15325F 0%, #0F2750 100%);

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .28s;

  --container-max: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font: 400 16.5px/1.7 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--navy); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--sky-200); color: var(--ink); }
:focus-visible { outline: 3px solid rgba(37, 99, 176, .5); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-variation-settings: 'SOFT' 50;
  color: var(--ink);
  font-weight: 400;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 1.55rem + 3.7vw, 4.4rem); line-height: 1.04; letter-spacing: -.025em; }
h2 { font-size: clamp(2rem, 1.45rem + 2.1vw, 3.05rem); line-height: 1.1; letter-spacing: -.02em; }
h3 { font-size: clamp(1.25rem, 1.12rem + .5vw, 1.45rem); line-height: 1.25; font-weight: 500; letter-spacing: -.01em; }
h4 { font-size: 1.1rem; font-weight: 500; }
h1 em, h2 em, h3 em {
  font-style: italic;
  font-variation-settings: 'SOFT' 100;
  color: var(--blue);
}
p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 700; }

.lede { font-size: clamp(1.08rem, 1rem + .3vw, 1.22rem); line-height: 1.65; color: var(--body); max-width: 60ch; }
.lede.center, .center { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  margin: 0 0 1.1rem;
  font: 700 .74rem/1.4 var(--font-sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before { content: ''; width: 22px; height: 1.5px; background: currentColor; opacity: .55; }
.eyebrow .icon { width: 15px; height: 15px; }
.eyebrow:has(.icon)::before { display: none; }
.eyebrow--light { color: var(--sky); }

.icon { width: 22px; height: 22px; flex-shrink: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container-max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.narrow-container { max-width: calc(820px + var(--gutter) * 2); }
.section { padding: clamp(72px, 9vw, 120px) 0; position: relative; }
.section--tint { background: var(--tint); }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head h2 { margin-bottom: 0; max-width: 18ch; }
.section-head > p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.section-head--center { display: block; text-align: center; max-width: 780px; margin-left: auto; margin-right: auto; }
.section-head--center h2 { max-width: none; }
.section-head--center .lede { margin: 1.2rem auto 0; }
.section-head--center .eyebrow::after { content: ''; width: 22px; height: 1.5px; background: currentColor; opacity: .55; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: grid; gap: 12px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 1rem !important; }
.mt-2 { margin-top: 2rem !important; }
.mt-3 { margin-top: 3rem !important; }
.mb-0 { margin-bottom: 0 !important; }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: fixed; top: 10px; left: 12px; z-index: 200;
  padding: 12px 20px; border-radius: var(--radius-pill);
  background: var(--navy); color: #fff; font-weight: 700;
  transform: translateY(-160%); transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: none; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hp-field { position: absolute !important; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  --btn-shadow: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .85rem 1.45rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font: 700 .95rem/1.2 var(--font-sans);
  letter-spacing: .005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--btn-shadow);
  transition:
    background-color var(--dur) var(--ease),
    background-position .5s var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform .12s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn:focus-visible { outline: 3px solid rgba(37, 99, 176, .45); outline-offset: 3px; border-radius: var(--radius-pill); }
.btn[disabled], .btn[aria-disabled='true'] { opacity: .55; cursor: not-allowed; transform: none; }
.btn .icon { width: 18px; height: 18px; }
.btn-arrow { display: inline-block; transition: transform var(--dur) var(--ease); }
.btn:hover .btn-arrow, .btn:focus-visible .btn-arrow { transform: translateX(4px); }

.btn-primary {
  color: #fff;
  background-color: var(--navy);
  background-image: linear-gradient(120deg, #15325F 0%, #1F4C8F 45%, #2563B0 70%, #3478C6 100%);
  background-size: 220% 100%;
  background-position: 0% 50%;
  --btn-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 6px 16px -6px rgba(21, 50, 95, .55);
}
.btn-primary:hover, .btn-primary:focus-visible {
  color: #fff;
  background-position: 100% 50%;
  --btn-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 12px 26px -8px rgba(37, 99, 176, .6);
}
.btn-primary:active { --btn-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 3px 8px -4px rgba(21, 50, 95, .6); }

.btn-secondary { color: var(--navy); background: var(--surface); border-color: var(--border-strong); }
.btn-secondary:hover, .btn-secondary:focus-visible { color: var(--blue); border-color: var(--blue); background: var(--sky-50); --btn-shadow: 0 6px 18px -8px rgba(37, 99, 176, .35); }

.btn-ghost { color: var(--navy); background: transparent; border-color: transparent; }
.btn-ghost:hover, .btn-ghost:focus-visible { color: var(--blue); background: var(--sky-50); border-color: var(--sky-100); }

.btn-light { color: var(--navy); background: #fff; --btn-shadow: 0 8px 22px -10px rgba(0, 0, 0, .45); }
.btn-light:hover, .btn-light:focus-visible { color: var(--blue); background: var(--sky-50); --btn-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5); }

.btn-outline-light { color: #fff; background: transparent; border-color: rgba(255, 255, 255, .38); }
.btn-outline-light:hover, .btn-outline-light:focus-visible { color: #fff; background: rgba(255, 255, 255, .1); border-color: #fff; }

.btn-sm { padding: .62rem 1.1rem; font-size: .87rem; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1rem; }
.btn-block { width: 100%; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-weight: 700;
  color: var(--blue);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  padding-bottom: 2px;
  transition: background-size .35s var(--ease), color var(--dur) var(--ease);
}
.text-link:hover, .text-link:focus-visible { color: var(--navy); background-size: 100% 1.5px; }
.text-link span { transition: transform var(--dur) var(--ease); }
.text-link:hover span, .text-link:focus-visible span { transform: translateX(4px); }

/* ---------- Badges & alerts ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: var(--sky-50);
  border: 1px solid var(--sky-100);
  color: var(--navy);
  font: 700 .7rem/1.6 var(--font-sans);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.badge-open { background: #E7F4EC; border-color: #C3E0CE; color: var(--emerald); }
.badge-closed { background: #F2F2EE; border-color: #E2E2DA; color: var(--muted); }
.badge-draft { background: #FFF4E0; border-color: #F2DDB4; color: var(--amber); }

.alert {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-weight: 600;
  border: 1px solid transparent;
  line-height: 1.55;
}
.alert-success { background: #EAF6EF; color: #145236; border-color: #BFE0CC; }
.alert-error { background: #FCEEEC; color: var(--red); border-color: #F2C9C3; }
.flash-wrap { padding-top: 24px; }
.flash-wrap .alert { margin: 0; }

/* ---------- Generic card (also used by admin) ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.card-sm { padding: 24px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; flex-shrink: 0; font: 500 1.35rem var(--font-serif); color: var(--navy); }
.logo:hover { text-decoration: none; }
.logo span { color: var(--blue); }
.logo img { width: 176px; height: auto; }

/* ---------- Utility bar & header ---------- */
.utility-bar { background: var(--navy-deep); color: rgba(255, 255, 255, .72); font-size: .82rem; }
.utility-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.utility-bar p { margin: 0; letter-spacing: .02em; }
.utility-sep { margin: 0 .4em; color: var(--sky); }
.utility-links { display: flex; align-items: center; gap: 24px; }
.utility-links a { color: rgba(255, 255, 255, .85); display: inline-flex; align-items: center; gap: 7px; font-weight: 600; white-space: nowrap; }
.utility-links a:hover { color: #fff; }
.utility-phone svg { color: var(--sky); }

/* The frosted glass lives on ::before so the header itself never becomes
   the containing block for the fixed-position mobile drawer. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(251, 249, 245, .82);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  transition: background-color var(--dur) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 10px 30px -18px rgba(15, 35, 70, .35); }
.site-header.is-scrolled::before, .nav-open .site-header::before { background: rgba(251, 249, 245, .95); }
.site-header > .container { display: flex; align-items: center; gap: 32px; min-height: var(--header-h); }
.main-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.main-nav > a {
  position: relative;
  padding: 6px 0;
  color: var(--ink);
  font-weight: 600;
  font-size: .95rem;
}
.main-nav > a::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.main-nav > a:hover { color: var(--blue); }
.main-nav > a:hover::after, .main-nav > a.is-active::after { transform: scaleX(1); transform-origin: left; }
.main-nav > a.is-active { color: var(--blue); }
.nav-drawer-ctas { display: none; }
.header-ctas { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  position: relative;
  width: 46px; height: 46px;
  border: 1.5px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav-toggle:hover { border-color: var(--blue); background: var(--sky-50); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 50%; width: 18px; height: 1.8px; margin-left: -9px;
  background: var(--navy); border-radius: 2px;
  transition: transform .35s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before, .nav-toggle span::after { content: ''; left: 0; margin-left: 0; }
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(6px); }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: rotate(45deg); background: var(--navy); }
.nav-open .nav-toggle span::after { transform: rotate(-45deg); background: var(--navy); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); overflow: hidden; }
.hero-glow, .page-hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(42rem 32rem at 88% -8%, rgba(127, 176, 224, .38), rgba(127, 176, 224, 0) 70%),
    radial-gradient(30rem 26rem at -6% 40%, rgba(37, 99, 176, .08), rgba(37, 99, 176, 0) 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero-copy h1 { max-width: 13ch; margin-bottom: .45em; }
.hero-copy .lede { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-call { margin-top: 1.5rem; color: var(--muted); font-size: .95rem; }
.hero-visual { position: relative; padding: 0 0 36px 28px; }
.hero-photo {
  position: relative;
  aspect-ratio: 5 / 4.4;
  border-radius: 180px 28px 28px 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--sky-100);
}
.hero-photo::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(21, 50, 95, 0) 55%, rgba(21, 50, 95, .28) 100%);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; }
.hero-note {
  position: absolute; left: 0; bottom: 0;
  display: flex; align-items: center; gap: 14px;
  max-width: 330px;
  padding: 16px 20px 16px 16px;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}
.hero-note p { margin: 0; display: grid; line-height: 1.4; }
.hero-note strong { font-size: .95rem; }
.hero-note span { font-size: .86rem; color: var(--muted); }
.hero-note-icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--grad-brand); color: #fff;
}
.hero-note-icon .icon { width: 20px; height: 20px; }
.hero-roles {
  position: absolute; top: 22px; right: -14px;
  display: grid; gap: 8px;
  margin: 0; padding: 0; list-style: none;
}
.hero-roles li {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-sm);
  color: var(--navy);
  font: 800 .75rem/1.3 var(--font-sans);
  letter-spacing: .14em;
  text-align: center;
}
.settings-strip {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 28px;
  margin: clamp(48px, 6vw, 80px) 0 0; padding: 28px 0 0;
  list-style: none;
  border-top: 1px solid var(--border);
}
.settings-strip li { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: .95rem; }
.settings-strip .icon { color: var(--blue); width: 20px; height: 20px; }

/* ---------- Two paths ---------- */
.paths-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.path-card {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(32px, 4vw, 52px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  isolation: isolate;
  transition: box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.path-card h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); line-height: 1.15; margin-bottom: .6em; }
.path-card > p:not(.path-label) { margin-bottom: 1.5rem; }
.path-card .btn { margin-top: auto; }
.path-label { font: 700 .74rem/1.4 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1rem; }
.path-card--hire { background: var(--grad-deep); background-size: 140% 140%; background-position: 0 0; color: rgba(255, 255, 255, .8); box-shadow: var(--shadow-md); transition: box-shadow .4s var(--ease), background-position 1.2s var(--ease); }
.path-card--hire h3, .path-card--hire strong { color: #fff; }
.path-card--hire .path-label { color: var(--sky); }
.path-card--hire .check-list .icon { color: var(--sky); }
.path-card--hire:hover { box-shadow: var(--shadow-lg); background-position: 100% 100%; }
.path-card--work { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.path-card--work .path-label { color: var(--blue); }
.path-card--work:hover { border-color: var(--sky-200); box-shadow: var(--shadow-md); }
.path-card--work::before {
  content: ''; position: absolute; z-index: -1; right: -120px; top: -120px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 176, 224, .26), rgba(127, 176, 224, 0) 70%);
  transition: transform .8s var(--ease);
}
.path-card--work:hover::before { transform: translate(-30px, 30px); }
.check-list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.check-list .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--blue); }

/* ---------- Icon badge ---------- */
.icon-badge {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 16px;
  background: var(--sky-50);
  border: 1px solid var(--sky-100);
  color: var(--blue);
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.icon-badge .icon { width: 24px; height: 24px; }

/* ---------- Role / feature cards ---------- */
.role-card, .feature {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.role-card::before, .feature::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--blue), var(--sky));
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.role-card:hover, .feature:hover { border-color: var(--sky-200); box-shadow: var(--shadow-md); }
.role-card:hover::before, .feature:hover::before { transform: scaleX(1); }
.role-card:hover .icon-badge, .feature:hover .icon-badge { background: var(--navy); border-color: var(--navy); color: #fff; }
.role-card-top { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-bottom: 28px; }
.role-abbr {
  font: italic 400 2.2rem/1 var(--font-serif);
  font-variation-settings: 'SOFT' 100;
  color: var(--sky-200);
  transition: color .35s var(--ease);
}
.role-card:hover .role-abbr { color: var(--sky); }
.role-card h3 { margin-bottom: .55em; }
.role-card > p { color: var(--body); }
.role-fit { margin: 0 0 1.5rem !important; padding-top: 16px; border-top: 1px dashed var(--border-strong); width: 100%; font-size: .92rem; color: var(--muted) !important; }
.role-fit strong { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 2px; }
.role-card .text-link { margin-top: auto; }
.feature .icon-badge { margin-bottom: 24px; }
.feature h3 { margin-bottom: .5em; }
.feature p { color: var(--body); }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.step { position: relative; padding-top: 36px; }
.step::before, .step::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1.5px; }
.step::before { background: var(--border); }
.step::after {
  background: linear-gradient(90deg, var(--blue), var(--sky));
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.1s var(--ease-out) .25s;
}
.step.is-visible::after, html:not(.js) .step::after { transform: scaleX(1); }
.step-num {
  display: block;
  margin-bottom: 18px;
  font: italic 400 3.2rem/1 var(--font-serif);
  font-variation-settings: 'SOFT' 100;
  background: linear-gradient(135deg, var(--navy) 10%, var(--sky) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.step h3 { margin-bottom: .5em; }
.step p { color: var(--body); }
.step a { font-weight: 700; }

/* ---------- Team & slideshow ---------- */
.team-layout { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.team-copy h2 { max-width: 12ch; }
.team-copy p { color: var(--body); margin-bottom: 1.6rem; max-width: 44ch; }
.slideshow { position: relative; }
.slideshow::before {
  content: ''; position: absolute; z-index: -1;
  inset: 28px -18px -18px 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--sky-100), rgba(127, 176, 224, .45));
}
.slideshow-viewport {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--navy-deep);
  box-shadow: var(--shadow-lg);
}
.slide { margin: 0; height: 100%; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
/* Without JS: a swipeable strip. With JS: stacked crossfade. */
html:not(.js) .slideshow-viewport { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
html:not(.js) .slide { flex: 0 0 100%; scroll-snap-align: start; }
.js .slide {
  position: absolute; inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s var(--ease), visibility 0s linear 1.1s;
}
.js .slide img { transform: scale(1.07); transition: transform 7.5s linear; }
.js .slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.1s var(--ease), visibility 0s; }
.js .slide.is-active img { transform: scale(1); }
.slideshow-viewport:focus-visible { outline-offset: 4px; border-radius: var(--radius-xl); }
.slideshow-controls { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.slideshow-controls[hidden] { display: none; }
.slideshow-btn {
  display: grid; place-items: center;
  width: 46px; height: 46px; padding: 0;
  border: 1.5px solid var(--border-strong); border-radius: 50%;
  background: var(--surface); color: var(--navy);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform .12s var(--ease);
}
.slideshow-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.slideshow-btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.slideshow-btn:active { transform: scale(.94); }
.slideshow-pause { margin-left: auto; }
.slideshow-pause .i-play { display: none; fill: currentColor; stroke: none; }
.slideshow.is-paused .slideshow-pause .i-play { display: block; }
.slideshow.is-paused .slideshow-pause .i-pause { display: none; }
.slideshow-dots { display: flex; gap: 6px; }
.slideshow-dot {
  position: relative;
  width: 34px; height: 24px; padding: 0;
  border: 0; background: none; cursor: pointer;
}
.slideshow-dot::before, .slideshow-dot span {
  content: ''; position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px;
}
.slideshow-dot::before { right: 0; background: var(--border-strong); transition: background-color var(--dur) var(--ease); }
.slideshow-dot:hover::before { background: var(--faint); }
.slideshow-dot span { width: 0; background: var(--blue); }
.slideshow-dot.is-done span { width: 100%; background: var(--navy); }
.slideshow-dot.is-active span { animation: slide-progress var(--slide-interval, 6000ms) linear forwards; }
.slideshow.is-paused .slideshow-dot.is-active span,
.slideshow.is-hovered .slideshow-dot.is-active span { animation-play-state: paused; }
@keyframes slide-progress { from { width: 0; } to { width: 100%; } }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 clamp(72px, 9vw, 120px); }
.section--tint + .cta-band { background: var(--tint); }
.cta-panel {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px 64px; align-items: center;
  padding: clamp(40px, 6vw, 80px);
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, #15325F 0%, #0F2750 100%);
  color: rgba(255, 255, 255, .78);
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-lg);
}
.cta-glow {
  position: absolute; inset: -20%; z-index: -1;
  background:
    radial-gradient(40% 50% at 80% 20%, rgba(127, 176, 224, .45), rgba(127, 176, 224, 0) 70%),
    radial-gradient(45% 55% at 10% 90%, rgba(37, 99, 176, .6), rgba(37, 99, 176, 0) 70%);
  animation: glow-drift 18s var(--ease) infinite alternate;
}
@keyframes glow-drift { from { transform: translate3d(-3%, 2%, 0); } to { transform: translate3d(4%, -3%, 0); } }
.cta-panel h2 { color: #fff; max-width: 15ch; }
.cta-panel h2 em { color: var(--sky); }
.cta-copy > p:not(.eyebrow) { font-size: 1.1rem; max-width: 46ch; }
.cta-actions { display: grid; gap: 12px; justify-items: stretch; }
.cta-actions .btn { width: 100%; }
.cta-phone { display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; color: #fff; font: 400 1.5rem/1.2 var(--font-serif); }
.cta-phone .icon { color: var(--sky); width: 20px; height: 20px; }
.cta-phone:hover { color: var(--sky-200); }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; padding: clamp(56px, 7vw, 104px) 0 clamp(48px, 6vw, 80px); overflow: hidden; }
.page-hero .container { position: relative; }
.page-hero h1 { max-width: 16ch; margin-bottom: .45em; }
.page-hero .lede { margin-bottom: 0; }
.page-hero .hero-actions { margin-top: 2rem; }
.page-hero--compact { padding-bottom: clamp(24px, 3vw, 40px); }
.page-hero--compact h1 { max-width: 20ch; font-size: clamp(2.2rem, 1.5rem + 2.8vw, 3.7rem); }
.section--form { padding-top: clamp(24px, 3vw, 40px); }
.section--tight + .section--form { padding-top: 0; }
.h3-size { font-size: clamp(1.25rem, 1.12rem + .5vw, 1.45rem); font-weight: 500; }
.page-hero-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.page-hero--center { text-align: center; }
.page-hero--center h1 { margin-left: auto; margin-right: auto; }
.page-hero--center .eyebrow::after { content: ''; width: 22px; height: 1.5px; background: currentColor; opacity: .55; }

.quote-panel {
  position: relative;
  padding: clamp(32px, 4vw, 48px);
  border-radius: 28px 28px 28px 140px;
  background: var(--grad-deep);
  color: rgba(255, 255, 255, .8);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.quote-panel blockquote { margin: 0 0 1.25rem; font: italic 400 clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem)/1.15 var(--font-serif); font-variation-settings: 'SOFT' 100; color: #fff; }
.quote-panel p { margin: 0; font-size: .95rem; }
.quote-panel .icon-badge { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); color: var(--sky); margin-bottom: 28px; }

.aside-card {
  padding: clamp(28px, 3vw, 36px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.aside-card h2, .aside-card h3 { font-size: 1.35rem; margin-bottom: .7em; }
.aside-card .check-list { margin-bottom: 0; }
.aside-card .check-list li { font-weight: 500; }
.aside-card--dark { background: var(--grad-deep); border-color: transparent; color: rgba(255, 255, 255, .8); }
.aside-card--dark h2, .aside-card--dark h3, .aside-card--dark strong { color: #fff; }
.aside-card--dark a:not(.btn) { color: #fff; }
.aside-card--dark .check-list .icon { color: var(--sky); }
.aside-card--dark .icon-badge { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); color: var(--sky); }
.aside-card > .btn { margin-top: 4px; }
.aside-icon { margin-bottom: 18px; }
.aside-note { margin-top: 1.25rem !important; padding-top: 1.25rem; border-top: 1px solid var(--border); font-size: .92rem; color: var(--muted); }
.aside-card--dark .aside-note { border-top-color: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .72); }

/* ---------- About ---------- */
.story-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); }
.story-grid h2 { position: sticky; top: calc(var(--header-h) + 32px); }
.story-body p { font-size: 1.08rem; }
.story-body p:first-child::first-letter {
  float: left;
  margin: .08em .12em 0 0;
  font: 400 4.2em/.8 var(--font-serif);
  color: var(--blue);
}
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.principle { position: relative; padding: clamp(32px, 4vw, 48px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); transition: box-shadow .35s var(--ease), border-color .35s var(--ease); }
.principle:hover { box-shadow: var(--shadow-md); border-color: var(--sky-200); }
.principle-num {
  display: block; margin-bottom: 20px;
  font: italic 400 3rem/1 var(--font-serif); font-variation-settings: 'SOFT' 100;
  background: linear-gradient(135deg, var(--navy), var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.principle h3 { font-size: clamp(1.4rem, 1.2rem + .7vw, 1.75rem); }

.leaders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.leader-card {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.leader-card:hover { box-shadow: var(--shadow-md); border-color: var(--sky-200); }
.leader-photo { position: relative; min-height: 100%; background: var(--sky-100); }
.leader-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.leader-info { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; }
.leader-info h3 { font-size: 1.6rem; margin-bottom: .15em; }
.leader-title { margin-bottom: 1rem !important; font: 700 .74rem/1.4 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.leader-info > p:not(.leader-title) { font-size: .96rem; }
.leader-email { margin-top: auto; padding-top: 1rem; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; word-break: break-all; }
.leader-email .icon { width: 18px; height: 18px; }

.values-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 2rem; padding: 0; list-style: none; }
.actions-center { justify-content: center; margin-top: 2.5rem; }
.values-row li { padding: 10px 20px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border); color: var(--ink); font-weight: 700; font-size: .92rem; }

/* ---------- Services ---------- */
.role-detail { display: flex; flex-direction: column; }
.role-detail ul { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 8px; width: 100%; }
.role-detail li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.role-detail li .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--blue); }
.settings-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.setting {
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.setting:hover { border-color: var(--sky-200); box-shadow: var(--shadow-md); }
.setting:hover .icon-badge { background: var(--navy); border-color: var(--navy); color: #fff; }
.setting strong { font-family: var(--font-serif); font-weight: 500; font-size: 1.15rem; line-height: 1.25; }
.setting span { font-size: .9rem; color: var(--muted); line-height: 1.5; }
.benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; list-style: none; margin: 0; padding: 0; counter-reset: benefit; }
.benefit { display: grid; grid-template-columns: auto 1fr; gap: 4px 24px; padding: 32px 0; border-top: 1px solid var(--border); }
.benefit-num { grid-row: span 2; font: italic 400 1.6rem/1 var(--font-serif); color: var(--sky); padding-top: 4px; }
.benefit h3 { margin: 0; }
.benefit p { margin: 0; color: var(--body); }

/* ---------- Careers ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 16px;
  margin: 0 0 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.filter-bar select { width: auto; min-width: 220px; }
.filter-label { display: inline-flex; align-items: center; gap: 8px; margin-right: 8px; font-weight: 700; color: var(--ink); font-size: .92rem; }
.filter-label .icon { width: 18px; height: 18px; color: var(--blue); }
.jobs-count { margin-left: auto; color: var(--muted); font-size: .9rem; font-weight: 600; }
.job-card {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.job-card:hover { border-color: var(--sky-200); box-shadow: var(--shadow-md); }
.job-card h3 { margin: 16px 0 8px; }
.job-card > p { font-size: .95rem; color: var(--body); margin-bottom: 1.5rem; }
.job-card .btn { margin-top: auto; }
.job-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-bottom: 1rem; color: var(--muted); font-size: .9rem; font-weight: 600; }
.job-meta span { display: inline-flex; align-items: center; gap: 6px; }
.job-meta .icon { width: 16px; height: 16px; color: var(--blue); }
.empty-state {
  display: grid; justify-items: center; gap: 8px;
  padding: clamp(40px, 6vw, 64px) 24px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-xl);
}
.empty-state .icon-badge { margin-bottom: 12px; }
.empty-state h3 { margin: 0; }
.empty-state p { max-width: 52ch; color: var(--muted); }
.empty-state .hero-actions { justify-content: center; margin-top: 12px; }

/* ---------- Forms ---------- */
.form-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .85fr); gap: clamp(32px, 4vw, 56px); align-items: start; }
.form-aside { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 24px); }
.form-panel {
  padding: clamp(24px, 4vw, 44px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.form-grid { display: grid; gap: 22px; }
.form-row { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
.form-row > * { min-width: 0; }
.form-section { display: grid; gap: 20px; }
.form-section + .form-section { padding-top: 28px; border-top: 1px solid var(--border); }
.form-section-title { margin: 0; font: 500 1.3rem/1.3 var(--font-serif); color: var(--ink); }
.form-section-title small { display: block; margin-top: 4px; font: 500 .9rem/1.5 var(--font-sans); color: var(--muted); }
label, legend { display: block; margin-bottom: 8px; font-weight: 700; font-size: .9rem; color: var(--ink); }
.field-hint { font-weight: 500; font-size: .8rem; color: var(--muted); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
input[type='text'], input[type='email'], input[type='tel'], input[type='password'], input[type='number'], input[type='date'], input[type='url'], input[type='search'], select, textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
  -webkit-appearance: none; appearance: none;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover, select:hover, textarea:hover { border-color: #A9B8CC; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 176, .14); }
textarea { min-height: 150px; resize: vertical; }
select {
  padding-right: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563B0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}
input[type='checkbox'], input[type='radio'] { accent-color: var(--blue); width: 18px; height: 18px; margin: 0; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 10px; }
.checkbox-group label {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0;
  padding: 10px 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-weight: 600; font-size: .92rem;
  cursor: pointer; user-select: none;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.checkbox-group label:hover { border-color: var(--blue); }
.checkbox-group label:has(input:checked) { border-color: var(--blue); background: var(--sky-50); color: var(--navy); }
.checkbox-group label:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(37, 99, 176, .2); }
.type-toggle { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--tint); border: 1px solid var(--border); border-radius: var(--radius-pill); }
.type-toggle label { position: relative; margin: 0; cursor: pointer; }
.type-toggle input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.type-toggle span {
  display: block;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  text-align: center;
  font-weight: 700; font-size: .92rem;
  color: var(--muted);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.type-toggle label:hover span { color: var(--navy); }
.type-toggle input:checked + span { background: var(--surface); color: var(--navy); box-shadow: var(--shadow-sm); }
.type-toggle input:focus-visible + span { box-shadow: 0 0 0 3px rgba(37, 99, 176, .35); }
.form-footnote { margin: 0; font-size: .86rem; color: var(--muted); text-align: center; }
.job-summary .badge { margin-bottom: 14px; }
.job-summary h2 { font-size: 1.45rem; margin-bottom: .4em; }
.job-summary .job-meta { margin-bottom: 0; }
.success-panel { text-align: center; display: grid; justify-items: center; gap: 12px; }
.success-panel .icon-badge { background: #EAF6EF; border-color: #BFE0CC; color: var(--emerald); width: 64px; height: 64px; border-radius: 50%; }
.success-panel h2 { margin: 8px 0 0; font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); }
.success-panel p { max-width: 46ch; color: var(--body); }
.success-panel .hero-actions { justify-content: center; margin-top: 8px; }

/* Numbered mini steps (request/aside) */
.mini-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: mini; }
.mini-steps li { position: relative; padding-left: 44px; counter-increment: mini; font-size: .95rem; }
.mini-steps li::before {
  content: counter(mini);
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--sky-50); border: 1px solid var(--sky-100);
  color: var(--blue); font: italic 500 1rem/1 var(--font-serif);
}
.mini-steps strong { display: block; }
.aside-card--dark .mini-steps li::before { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: var(--sky); }

/* ---------- Contact ---------- */
.channels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.channel {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--body);
  box-shadow: var(--shadow-sm);
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease);
}
a.channel:hover { border-color: var(--sky-200); box-shadow: var(--shadow-md); color: var(--body); }
a.channel:hover .icon-badge { background: var(--navy); border-color: var(--navy); color: #fff; }
.channel .icon-badge { margin-bottom: 14px; }
.channel strong { font-family: var(--font-serif); font-weight: 500; font-size: 1.15rem; }
.channel span { font-size: .9rem; color: var(--muted); }
.channel-value { margin-top: 6px; font-weight: 700; color: var(--blue); font-size: .95rem; word-break: break-word; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-nav { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 20px; }
.faq-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.faq-nav ul a { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-radius: 12px; color: var(--ink); font-weight: 700; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.faq-nav ul a:hover { background: var(--surface); color: var(--blue); }
.faq-group + .faq-group { margin-top: clamp(48px, 6vw, 80px); }
.faq-group h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin-bottom: 1rem; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0;
  list-style: none;
  cursor: pointer;
  font: 500 1.18rem/1.4 var(--font-serif);
  color: var(--ink);
  transition: color var(--dur) var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue); }
.faq-item summary:focus-visible { outline-offset: 4px; }
.faq-toggle { position: relative; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--border-strong); transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform .4s var(--ease); }
.faq-toggle::before, .faq-toggle::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.8px; margin: -.9px 0 0 -6px; background: var(--navy); border-radius: 2px; transition: transform .4s var(--ease), background-color var(--dur) var(--ease); }
.faq-toggle::after { transform: rotate(90deg); }
.faq-item summary:hover .faq-toggle { border-color: var(--blue); }
.faq-item[open] .faq-toggle { background: var(--navy); border-color: var(--navy); transform: rotate(180deg); }
.faq-item[open] .faq-toggle::before, .faq-item[open] .faq-toggle::after { background: #fff; }
.faq-item[open] .faq-toggle::after { transform: rotate(0deg); }
.faq-answer { padding: 0 56px 24px 0; color: var(--body); }
.faq-item[open] .faq-answer { animation: faq-in .45s var(--ease) both; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--navy); /* matches the background box built into the reversed logo SVG */
  color: rgba(255, 255, 255, .72);
  font-size: .95rem;
  isolation: isolate;
}
.footer-glow {
  position: absolute; z-index: -1; right: -10%; top: -40%;
  width: 60%; height: 120%;
  background: radial-gradient(closest-side, rgba(127, 176, 224, .18), rgba(127, 176, 224, 0));
  pointer-events: none;
}
.site-footer a { color: rgba(255, 255, 255, .78); }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px 80px; padding: clamp(64px, 8vw, 96px) 0 clamp(40px, 5vw, 56px); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.site-footer .logo img { width: 190px; }
.footer-tagline { margin: 24px 0 8px; font: italic 400 1.55rem/1.25 var(--font-serif); font-variation-settings: 'SOFT' 100; color: #fff; }
.footer-about { max-width: 46ch; }
.footer-heading { margin: 0 0 16px; font: 700 .74rem/1.4 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--sky); }
.footer-newsletter .footer-heading { font: 400 1.9rem/1.1 var(--font-serif); letter-spacing: -.01em; text-transform: none; color: #fff; margin-bottom: 10px; }
.newsletter-form {
  display: flex; gap: 6px; margin-top: 20px;
  padding: 6px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-pill);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.newsletter-form:focus-within { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(127, 176, 224, .18); }
.newsletter-form input[type='email'] { min-height: 44px; padding: 8px 16px; border: 0; background: transparent; color: #fff; }
.newsletter-form input[type='email']:focus { box-shadow: none; }
.newsletter-form input::placeholder { color: rgba(255, 255, 255, .45); }
.newsletter-form .btn { flex-shrink: 0; }
.social-links { display: flex; gap: 10px; margin-top: 24px; }
.social-links a {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .85);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.social-links a:hover { background: #fff; border-color: #fff; color: var(--navy); }
.social-links svg { width: 17px; height: 17px; fill: currentColor; }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 48px 0; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease), color var(--dur) var(--ease); }
.footer-grid a:hover { background-size: 100% 1px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding: 24px 0 32px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; color: rgba(255, 255, 255, .55); }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { --reveal-delay: .1s; }
.reveal-delay-2 { --reveal-delay: .2s; }
.reveal-delay-3 { --reveal-delay: .3s; }

/* Gentle float for the hero note */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.hero-note { animation: float 7s ease-in-out infinite; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  :root { --header-h: 70px; }
  .nav-toggle { display: block; }
  .header-join { display: none; }
  .header-ctas { margin-left: auto; }
  .main-nav {
    position: fixed;
    left: 0; right: 0; top: var(--nav-top, 108px); bottom: 0;
    z-index: 40;
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    margin: 0;
    padding: 16px var(--gutter) 32px;
    background: var(--paper);
    border-top: 1px solid var(--border);
    overflow-y: auto;
    opacity: 0; visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .35s var(--ease), visibility 0s linear .35s;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .35s var(--ease), visibility 0s; }
  .nav-open { overflow: hidden; }
  .main-nav > a { padding: 16px 0; border-bottom: 1px solid var(--border); font: 400 1.5rem/1.2 var(--font-serif); }
  .main-nav > a::after { display: none; }
  .main-nav > a.is-active { color: var(--blue); font-style: italic; }
  .nav-drawer-ctas { display: grid; gap: 10px; margin-top: 28px; }
  .nav-drawer-phone { text-align: center; padding: 10px; font-weight: 700; }
}
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leaders { grid-template-columns: 1fr; }
  .form-layout { grid-template-columns: 1fr; }
  .form-aside { position: static; }
}
@media (max-width: 900px) {
  .hero-grid, .page-hero-split, .team-layout, .story-grid, .faq-layout, .cta-panel { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .grid-2, .paths-grid, .principles, .benefits { grid-template-columns: 1fr; }
  .steps { gap: 32px; }
  .story-grid h2, .faq-nav { position: static; }
  .footer-top { grid-template-columns: 1fr; }
  .team-copy h2 { max-width: none; }
  .slideshow::before { inset: 20px -10px -10px 20px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .utility-links .utility-email, .utility-roles, .utility-sep { display: none; }
  .utility-bar .container { justify-content: space-between; }
  .logo img { width: 142px; }
  .header-ctas .btn-sm { padding: .55rem .95rem; font-size: .84rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { padding: 0 0 44px 0; }
  .hero-photo { border-radius: 110px 22px 22px 22px; }
  .hero-note { left: 12px; right: 12px; max-width: none; }
  .hero-roles { right: 10px; top: 14px; }
  .settings-strip { justify-content: flex-start; }
  .settings-strip li { flex: 1 1 42%; }
  .grid-4, .settings-grid, .channels { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .leader-card { grid-template-columns: 1fr; }
  .leader-photo { aspect-ratio: 4 / 3.4; min-height: 0; }
  .filter-bar select { width: 100%; min-width: 0; }
  .jobs-count { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div { grid-column: 1 / -1; }
  .newsletter-form { flex-direction: column; border-radius: var(--radius-lg); }
  .newsletter-form .btn { width: 100%; }
  .faq-answer { padding-right: 0; }
  .slideshow-controls { gap: 8px; }
  .slideshow-dot { width: 22px; }
  .type-toggle { display: grid; width: 100%; }
  .cta-phone { font-size: 1.3rem; }
}
@media (max-width: 380px) {
  .header-ctas .btn-sm { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .slide img { transform: none; }
  .hero-note, .cta-glow { animation: none; }
}

/* ---------- Print ---------- */
@media print {
  .utility-bar, .site-header, .site-footer, .cta-band, .slideshow-controls { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
