/* ============================================================
   DRIMS ALLY — drimsally-lite v3
   Matches the Team Ops portal: deep cool navy, vivid purple accent,
   clean white cards, sans-serif only, modern SaaS/dashboard aesthetic.
   No external fonts. No framework. ~22 KB.
   ============================================================ */

/* ---------- design tokens (portal-matched) ---------- */
:root {
  /* Palette — straight from the /portal/ screenshot */
  --ink:         #0f1535;   /* deep navy — matches portal sidebar bg */
  --ink-2:       #262c4d;   /* lifted navy for secondary text + hovers */
  --ink-3:       #4b5168;   /* tertiary text */
  --mute:        #6b7280;   /* neutral gray */
  --paper:       #f6f7fb;   /* cool off-white — matches portal main area */
  --surface:     #ffffff;   /* pure white — card background */
  --rule:        #e5e7eb;   /* standard border */
  --rule-strong: #d1d5db;   /* hairlines that need to show */

  --accent:      #7c3aed;   /* vivid violet — portal's primary accent */
  --accent-ink:  #6d28d9;   /* darker purple for hover */
  --accent-soft: #ede9fe;   /* very light tint for backgrounds */

  --ok:          #10b981;
  --warn:        #f59e0b;
  --bad:         #dc2626;

  /* Type */
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Type scale */
  --f-xs:    12px;
  --f-sm:    14px;
  --f-body:  16px;
  --f-lg:    18px;
  --f-xl:    22px;
  --f-2xl:   28px;
  --f-3xl:   38px;
  --f-4xl:   52px;
  --f-5xl:   64px;

  /* Space scale */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px;

  /* Layout */
  --wrap: 1200px;
  --wrap-narrow: 720px;
  --wrap-reading: 760px;
  --gutter: 24px;
  --radius: 10px;       /* portal uses medium-rounded cards */
  --radius-sm: 6px;
  --radius-pill: 999px;

  /* Shadows — soft, dashboard-feel */
  --shadow-sm: 0 1px 2px rgba(15, 21, 53, 0.04), 0 1px 3px rgba(15, 21, 53, 0.06);
  --shadow:    0 2px 4px rgba(15, 21, 53, 0.04), 0 4px 12px rgba(15, 21, 53, 0.06);
  --shadow-lg: 0 4px 8px rgba(15, 21, 53, 0.05), 0 12px 24px rgba(15, 21, 53, 0.08);

  --focus: 2px solid var(--accent);
  --focus-offset: 2px;
}

/* Single palette for the whole site. The DRIMS ALLY logo PNG has a dark navy
   wordmark on a transparent background and is unreadable on a dark page, so
   we intentionally do NOT follow the OS dark-mode preference — the site always
   renders light. */
:root { color-scheme: light only; }
html { color-scheme: light only; background: #f6f7fb; }

/* ---------- reset + base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--f-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

:focus-visible { outline: var(--focus); outline-offset: var(--focus-offset); border-radius: var(--radius-sm); }

img, svg, video { max-width: 100%; height: auto; display: block; }

/* ---------- type ---------- */
h1, h2, h3, h4, h5 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: var(--f-4xl); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: var(--f-2xl); letter-spacing: -0.025em; }
h3 { font-size: var(--f-xl); font-weight: 600; }
h4 { font-size: var(--f-lg); font-weight: 600; }

p { margin: 0 0 var(--s-5); color: var(--ink-2); }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; transition: color .12s ease; }
a:hover { color: var(--accent-ink); }

::selection { background: var(--accent); color: var(--surface); }

/* ---------- layout primitives ---------- */
.wrap        { max-width: var(--wrap);        margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow{ max-width: var(--wrap-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--read  { max-width: var(--wrap-reading); margin: 0 auto; padding: 0 var(--gutter); }

main { min-height: 60vh; }

/* ---------- skip link ---------- */
.skip {
  position: absolute; top: -60px; left: 0; z-index: 1000;
  background: var(--ink); color: var(--surface);
  padding: 10px 16px; text-decoration: none;
  font-weight: 500; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { top: 0; }

/* ============================================================
   SITE HEADER — white sticky bar, matches portal top-bar feel
   ============================================================ */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: var(--s-4) var(--gutter);
  display: flex;
  align-items: center;
  gap: var(--s-6);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  color: var(--ink);
}
.site-logo__img {
  display: block;
  height: 32px;
  width: auto;
}
.site-logo__fallback {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-weight: 700;
  font-size: var(--f-lg);
  color: var(--ink);
  letter-spacing: 0.02em;
}
.site-logo__mark {
  width: 28px; height: 28px;
  background: var(--ink);
  color: var(--accent);
  border-radius: var(--radius-sm);
  display: inline-grid; place-items: center;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--s-5);
}
.site-nav a {
  color: var(--ink-2);
  font-size: var(--f-sm);
  font-weight: 500;
  padding: var(--s-2) 0;
  position: relative;
  transition: color .12s ease;
  text-decoration: none;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.site-nav__cta {
  margin-left: var(--s-3);
  padding: 9px 18px !important;
  background: var(--accent);
  color: var(--surface) !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  transition: background .12s ease;
}
.site-nav__cta:hover { background: var(--accent-ink); color: var(--surface) !important; }
.site-nav__cta[aria-current="page"]::after { display: none; }

/* Muted secondary link next to the CTA — used for "Sign out" when a user is
   signed in, so it reads as subordinate to the primary "Portal" button. */
.site-nav__muted {
  color: var(--mute) !important;
  font-size: var(--f-xs);
  font-weight: 500;
  padding: 0 !important;
  margin-left: var(--s-3);
}
.site-nav__muted:hover { color: var(--ink) !important; }
.site-nav__muted::after { display: none !important; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--rule);
  padding: 8px 12px; font: inherit; font-size: var(--f-sm);
  color: var(--ink); cursor: pointer; font-weight: 500;
  border-radius: var(--radius-sm);
  margin-left: auto;
}
@media (max-width: 820px) {
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--rule);
    padding: var(--s-3) var(--gutter) var(--s-5); margin: 0;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open a {
    padding: var(--s-4) 0;
    border-bottom: 1px solid var(--rule);
    font-size: var(--f-body);
  }
  .site-nav.is-open a[aria-current="page"]::after { display: none; }
  .site-nav__cta {
    margin-top: var(--s-4);
    margin-left: 0 !important;
    justify-content: center;
    text-align: center;
    border-bottom: none !important;
  }
}

/* ============================================================
   HERO — modern SaaS, left-aligned, with a KPI card on the right
   ============================================================ */
.hero {
  padding: var(--s-8) 0;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.hero__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--s-9);
  align-items: center;
}
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 6px 12px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-radius: var(--radius-pill);
  font-size: var(--f-xs);
  font-weight: 600;
  margin-bottom: var(--s-5);
}
.hero__kicker__dot {
  width: 6px; height: 6px; background: var(--accent);
  border-radius: 50%;
}
.hero__title {
  font-size: clamp(2.25rem, 5.5vw, var(--f-5xl));
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 0 0 var(--s-5);
  color: var(--ink);
  max-width: 14ch;
}
.hero__title em {
  color: var(--accent);
  font-style: normal;
}
.hero__lede {
  font-size: var(--f-lg);
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 50ch;
  margin: 0 0 var(--s-6);
}
.hero__cta-row { display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* hero data card */
.hero__card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--s-6);
  box-shadow: var(--shadow-sm);
}
.hero__card-title {
  font-size: var(--f-xs);
  font-weight: 600;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 var(--s-5);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center;
}
.hero__card-title span { color: var(--accent); }
.hero__card-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--s-3) 0;
}
.hero__card-row + .hero__card-row { border-top: 1px solid var(--rule); }
.hero__card-num {
  font-size: var(--f-xl);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.hero__card-lbl {
  font-size: var(--f-sm);
  color: var(--mute);
  text-align: right;
  max-width: 20ch;
}

@media (max-width: 820px) {
  .hero { padding: var(--s-7) 0; }
  .hero__inner { grid-template-columns: 1fr; gap: var(--s-7); }
  .hero__title { max-width: 100%; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: var(--s-8) 0;
}
.section--tight { padding: var(--s-7) 0; }
.section--alt { background: var(--surface); }
.section + .section { border-top: 1px solid var(--rule); }

.section__head {
  margin-bottom: var(--s-6);
  max-width: 60ch;
}

/* Two-column split used on homepage "Who we are": prose left, cards right.
   Collapses to single column below 920px. */
.split-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: var(--s-7);
  align-items: start;
}
@media (max-width: 920px) {
  .split-2 { grid-template-columns: 1fr; gap: var(--s-6); }
}

/* CTA strip — horizontal row with headline/text on the left, buttons on the right.
   Used in the homepage "Get in touch" footer-adjacent section. */
.cta-strip {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--s-6) var(--s-7);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-6);
  align-items: center;
}
.cta-strip__actions {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}
@media (max-width: 820px) {
  .cta-strip { grid-template-columns: 1fr; padding: var(--s-6); }
  .cta-strip__actions { width: 100%; }
  .cta-strip__actions .btn { flex: 1; }
}
.section__eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  color: var(--accent-ink);
  font-size: var(--f-sm);
  font-weight: 600;
  margin-bottom: var(--s-3);
}
.section__eyebrow::before {
  content: '';
  width: 16px; height: 2px; background: var(--accent); border-radius: 2px;
}
.section__head h2 {
  margin: 0 0 var(--s-3);
  font-size: var(--f-3xl);
  letter-spacing: -0.025em;
  font-weight: 700;
}
.section__head p {
  color: var(--ink-2);
  font-size: var(--f-lg);
  margin: 0;
  max-width: 55ch;
}
.section__head--center { text-align: center; margin: 0 auto var(--s-7); }

/* ============================================================
   CARDS — portal-style: white, soft border, hover shadow
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--s-6);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.card--interactive {
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  display: block;
}
.card--interactive:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: var(--ink);
}
.card--interactive:hover .card__arrow { transform: translateX(4px); color: var(--accent); }

.card__meta {
  display: flex; gap: var(--s-3); align-items: center;
  color: var(--mute);
  font-size: var(--f-sm);
  margin-bottom: var(--s-4);
}
.card__pill {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-radius: var(--radius-pill);
  font-size: var(--f-xs);
  font-weight: 600;
}
.card h3 { margin: 0 0 var(--s-3); }
.card p { margin: 0; color: var(--ink-2); }
.card__arrow {
  display: inline-block;
  color: var(--mute);
  transition: transform .15s ease, color .15s ease;
  font-size: 20px;
  line-height: 1;
}

/* grid shells */
.grid { display: grid; gap: var(--s-5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 820px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}
@media (min-width: 821px) and (max-width: 1024px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

/* feature items — simple, portal-ish */
.feature { padding: var(--s-5) 0; }
.feature__num {
  display: inline-block;
  font-size: var(--f-xs);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: var(--s-3);
  font-variant-numeric: tabular-nums;
}
.feature h3 { font-size: var(--f-lg); margin-bottom: var(--s-2); }
.feature p { color: var(--ink-2); max-width: 50ch; }

/* Feature cards — the "Who we are" 4-up row. Each is a white card with a
   purple numeric kicker, a short heading and a one-line description. */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--s-6) var(--s-5);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.feature-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.feature-card__num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-radius: var(--radius-sm);
  font-size: var(--f-sm);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--s-4);
}
.feature-card h3 {
  font-size: var(--f-lg);
  font-weight: 600;
  margin: 0 0 var(--s-2);
  color: var(--ink);
}
.feature-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: var(--f-sm);
  line-height: 1.55;
}

/* ============================================================
   BUTTONS — portal-matched: purple primary, soft hover
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  min-height: 42px;
  font: inherit;
  font-weight: 600;
  font-size: var(--f-sm);
  line-height: 1;
  text-decoration: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .12s ease, border-color .12s ease, color .12s ease, box-shadow .12s ease;
}
.btn--primary {
  background: var(--accent);
  color: var(--surface);
  box-shadow: 0 1px 2px rgba(124, 58, 237, 0.15);
}
.btn--primary:hover {
  background: var(--accent-ink);
  color: var(--surface);
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.25);
}
.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn--ghost:hover {
  background: var(--paper);
  border-color: var(--ink);
  color: var(--ink);
}
.btn--text {
  background: transparent;
  color: var(--accent);
  padding: 11px 0;
  font-weight: 600;
}
.btn--text:hover { color: var(--accent-ink); }
.btn--sm { padding: 8px 14px; min-height: 36px; font-size: var(--f-xs); }
.btn--lg { padding: 14px 24px; min-height: 48px; font-size: var(--f-body); }
.btn--block { width: 100%; }

/* ============================================================
   PERSON CARDS (Leadership)
   ============================================================ */
.person-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--s-6);
}
.person-card__name { font-size: var(--f-xl); font-weight: 700; margin-bottom: var(--s-1); }
.person-card__role {
  color: var(--accent-ink);
  font-size: var(--f-sm);
  font-weight: 600;
  margin-bottom: var(--s-4);
}
.person-card__bio {
  color: var(--ink-2);
  font-size: var(--f-sm);
  line-height: 1.6;
  margin-bottom: var(--s-5);
}

/* ============================================================
   FORMS — modern inputs, portal-matched
   ============================================================ */
.form { max-width: var(--wrap-narrow); margin: 0 auto; }

.form__group {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--s-6);
  margin-bottom: var(--s-5);
}
.form__group-title {
  font-size: var(--f-body);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 var(--s-5);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--rule);
}

.field { margin-bottom: var(--s-5); }
.field:last-child { margin-bottom: 0; }
.field--row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
@media (max-width: 640px) { .field--row { grid-template-columns: 1fr; } }

.field > label, .label {
  display: block;
  font-size: var(--f-sm);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--s-2);
}
.req { color: var(--bad); margin-left: 2px; }
.hint { color: var(--mute); font-size: var(--f-xs); margin-top: var(--s-2); }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="number"], input[type="url"], input[type="password"], select, textarea {
  width: 100%;
  padding: 10px 14px;
  min-height: 42px;
  font: inherit;
  font-size: var(--f-sm);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  transition: border-color .12s ease, box-shadow .12s ease;
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%),
                    linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
}
textarea { min-height: 100px; resize: vertical; padding: 12px 14px; }

/* radios / checkboxes as pill group */
.choices { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.choice {
  position: relative;
  padding: 10px 16px;
  cursor: pointer;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: var(--f-sm);
  font-weight: 500;
  transition: all .12s ease;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
}
.choice input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.choice:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.choice:hover { border-color: var(--rule-strong); }

.file-upload {
  padding: var(--s-6);
  border: 2px dashed var(--rule);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  background: var(--paper);
  transition: all .15s;
  position: relative;
}
.file-upload:hover { border-color: var(--accent); background: var(--accent-soft); }
.file-upload__text { font-weight: 600; color: var(--ink); margin-bottom: var(--s-1); }
.file-upload__hint { color: var(--mute); font-size: var(--f-xs); }
.file-upload input[type="file"] { position: absolute; left: -9999px; }

/* progress bar */
.progress {
  padding: var(--s-4) var(--s-5);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  display: flex; align-items: center; gap: var(--s-4);
  margin-bottom: var(--s-5);
}
.progress__bar { flex: 1; height: 4px; background: var(--rule); border-radius: var(--radius-pill); overflow: hidden; }
.progress__bar-fill { height: 100%; background: var(--accent); width: 0%; transition: width .3s ease; }
.progress__text { font-weight: 600; font-size: var(--f-sm); min-width: 110px; text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ============================================================
   PAGE HEADERS (inner pages) — compact, cardlike
   ============================================================ */
.page-head {
  padding: var(--s-7) 0 var(--s-6);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.page-head__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.page-head__crumbs {
  color: var(--mute); font-size: var(--f-sm); margin-bottom: var(--s-3);
  display: flex; gap: var(--s-2); align-items: center;
}
.page-head__crumbs a { color: var(--mute); }
.page-head__crumbs a:hover { color: var(--accent); }
.page-head h1 {
  font-size: clamp(1.75rem, 4vw, var(--f-3xl));
  letter-spacing: -0.025em;
  margin: 0 0 var(--s-3);
}
.page-head__lede {
  color: var(--ink-2);
  font-size: var(--f-lg);
  max-width: 60ch;
  margin: 0;
}
.page-head--center { text-align: center; }
.page-head--center .page-head__lede { margin: 0 auto; }

/* ============================================================
   EDITORIAL LIST — numbered steps for "How we work" / "How we hire"
   ============================================================ */
.editorial-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
}
.editorial-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-5);
  align-items: start;
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--rule);
}
.editorial-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.editorial-list__num {
  display: inline-block;
  min-width: 48px;
  font-size: var(--f-lg);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}
.editorial-list__body h3 {
  margin: 0 0 var(--s-2);
  font-size: var(--f-xl);
  font-weight: 600;
}
.editorial-list__body p {
  margin: 0;
  color: var(--ink-2);
  max-width: 60ch;
  font-size: var(--f-body);
  line-height: 1.55;
}

/* ============================================================
   CAREERS LANDING — role cards grid
   ============================================================ */
.role-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--s-6);
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s, transform .15s;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.role-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: var(--ink);
}
.role-card__pills {
  display: flex; gap: var(--s-2); flex-wrap: wrap;
}
.role-card__pill {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  background: var(--paper);
  color: var(--ink-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  font-size: var(--f-xs);
  font-weight: 500;
}
.role-card__pill--accent {
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-color: transparent;
  font-weight: 600;
}
.role-card h3 {
  font-size: var(--f-xl);
  margin: 0;
  letter-spacing: -0.015em;
}
.role-card__sum {
  color: var(--ink-2);
  font-size: var(--f-sm);
  margin: 0;
  flex-grow: 1;
  line-height: 1.5;
}
.role-card__foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
  font-size: var(--f-sm);
}
.role-card__salary {
  color: var(--ink); font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.role-card__cta {
  color: var(--accent); font-weight: 600;
}
.role-card:hover .role-card__cta { color: var(--accent-ink); }

/* ============================================================
   ROLE PAGE SPLIT — content left, sticky apply card right
   ============================================================ */
.role-split {
  display: grid;
  /* 60 / 40 split — form column gets more room so CF7 fields are comfortable */
  grid-template-columns: minmax(0, 1.5fr) minmax(360px, 1fr);
  gap: var(--s-6);
  align-items: start;
}
.role-split__content { min-width: 0; }
.role-split__form {
  position: sticky;
  top: 88px;              /* clears the sticky site-header */
  align-self: start;
}
@media (max-width: 920px) {
  .role-split { grid-template-columns: 1fr; gap: var(--s-5); }
  .role-split__form { position: static; }
}

/* Apply card — the right-side sticky block holding the CF7 form */
.apply-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--s-6);
  box-shadow: var(--shadow-sm);
}
.apply-card__kicker {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 4px 10px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-radius: var(--radius-pill);
  font-size: var(--f-xs);
  font-weight: 600;
  margin-bottom: var(--s-3);
}
.apply-card__title {
  font-size: var(--f-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-2);
  color: var(--ink);
}
.apply-card__salary {
  font-size: var(--f-sm);
  color: var(--mute);
  font-variant-numeric: tabular-nums;
  margin: 0;
}
.apply-card__divider {
  height: 1px;
  background: var(--rule);
  margin: var(--s-5) 0;
}

/* ============================================================
   CONTACT FORM 7 — brand styling inside .apply-card and anywhere
   else CF7 renders. These selectors target CF7's own class names.
   ============================================================ */
.wpcf7 { font: inherit; }
.wpcf7-form p {
  margin: 0 0 var(--s-4);
  color: var(--ink);
  font-size: var(--f-sm);
  font-weight: 500;
}
.wpcf7-form label {
  display: block;
  font-size: var(--f-sm);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--s-2);
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="date"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: 10px 14px;
  min-height: 42px;
  font: inherit;
  font-size: var(--f-sm);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  margin-top: var(--s-1);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
.wpcf7-form textarea { min-height: 110px; resize: vertical; padding: 12px 14px; }
.wpcf7-form input[type="file"] {
  display: block;
  width: 100%;
  padding: 10px;
  font-size: var(--f-sm);
  background: var(--paper);
  border: 1px dashed var(--rule-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* The submit button — the thing you called out */
.wpcf7-form input[type="submit"],
.wpcf7-form button[type="submit"],
.wpcf7-submit {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 100%;
  padding: 13px 20px;
  min-height: 46px;
  margin-top: var(--s-2);
  font: inherit;
  font-weight: 600;
  font-size: var(--f-sm);
  line-height: 1;
  color: #fff !important;
  background: var(--accent) !important;
  border: 0 !important;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(124, 58, 237, 0.2), 0 2px 6px rgba(124, 58, 237, 0.12);
  transition: background .12s ease, box-shadow .12s ease, transform .05s ease;
  letter-spacing: -0.005em;
}
.wpcf7-form input[type="submit"]:hover,
.wpcf7-form button[type="submit"]:hover,
.wpcf7-submit:hover {
  background: var(--accent-ink) !important;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.3), 0 4px 12px rgba(124, 58, 237, 0.18);
}
.wpcf7-form input[type="submit"]:active,
.wpcf7-form button[type="submit"]:active {
  transform: translateY(1px);
}

/* CF7 ajax spinner — tuck it next to the button, not sprawled */
.wpcf7-spinner {
  display: inline-block !important;
  vertical-align: middle;
  margin-left: var(--s-3);
}

/* CF7 validation messages */
.wpcf7-not-valid-tip { color: var(--bad); font-size: var(--f-xs); margin-top: var(--s-1); }
.wpcf7-response-output {
  margin: var(--s-4) 0 0 !important;
  padding: var(--s-4) !important;
  border-radius: var(--radius-sm) !important;
  font-size: var(--f-sm);
  border: 1px solid var(--rule) !important;
}
.wpcf7-mail-sent-ok {
  border-color: var(--ok) !important;
  background: #ecfdf5;
  color: #065f46;
}
.wpcf7-validation-errors,
.wpcf7-acceptance-missing {
  border-color: var(--bad) !important;
  background: #fef2f2;
  color: var(--bad);
}
.wpcf7-radio .wpcf7-list-item,
.wpcf7-checkbox .wpcf7-list-item { display: inline-block; margin: var(--s-2) var(--s-3) 0 0; }

/* ============================================================
   JOB BODY (legacy — used inside role-split content column)
   ============================================================ */
.job-body {
  max-width: var(--wrap-reading);
  margin: 0 auto;
  padding: var(--s-7) var(--gutter);
}
.job-body h2,
.role-split__content h2 {
  font-size: var(--f-xl);
  font-weight: 600;
  margin: var(--s-7) 0 var(--s-4);
  color: var(--ink);
}
.job-body h2:first-child,
.role-split__content h2:first-child { margin-top: 0; }
.job-body ul,
.role-split__content ul {
  margin: 0 0 var(--s-6);
  padding: 0;
  list-style: none;
}
.job-body ul li,
.role-split__content ul li {
  position: relative;
  padding: var(--s-3) 0 var(--s-3) var(--s-5);
  color: var(--ink-2);
  border-bottom: 1px solid var(--rule);
  font-size: var(--f-sm);
  line-height: 1.55;
}
.job-body ul li:last-child,
.role-split__content ul li:last-child { border-bottom: 0; }
.job-body ul li::before,
.role-split__content ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 18px;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.job-body p,
.role-split__content p { color: var(--ink-2); max-width: 60ch; }

.job-warn {
  margin: var(--s-6) 0 0;
  padding: var(--s-5);
  border: 1px solid var(--bad);
  background: #fef2f2;
  border-radius: var(--radius);
  color: var(--ink);
}
.job-warn strong {
  color: var(--bad); display: block; margin-bottom: var(--s-2);
  font-size: var(--f-sm); font-weight: 700;
}

/* ============================================================
   TOOL PAGES — portal-matching chrome, deep reskin
   ============================================================ */
.tool-head {
  padding: var(--s-6) 0;
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}
.tool-head__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
}
.tool-head__kicker {
  color: var(--mute); font-size: var(--f-xs); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: var(--s-2);
}
.tool-head__title {
  font-size: var(--f-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 var(--s-2);
}
.tool-head__sum {
  color: var(--ink-2);
  font-size: var(--f-body);
  max-width: 60ch;
  margin: 0;
}
.tool-body { padding: var(--s-6) 0; background: var(--paper); min-height: 60vh; }

/* ============================================================
   AUTH / LOGIN — card, portal-styled
   ============================================================ */
.auth-wrap {
  min-height: calc(100vh - 220px);
  display: grid; place-items: center;
  padding: var(--s-7) var(--gutter);
}
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--s-7);
  box-shadow: var(--shadow);
}
.auth-card h1 {
  font-size: var(--f-2xl);
  margin: 0 0 var(--s-2);
  text-align: center;
}
.auth-card__sub {
  color: var(--mute);
  font-size: var(--f-sm);
  text-align: center;
  margin-bottom: var(--s-6);
}
.auth-card form .field { margin-bottom: var(--s-5); }
.auth-card__meta {
  margin-top: var(--s-5);
  font-size: var(--f-xs);
  color: var(--mute);
  text-align: center;
}

/* ============================================================
   FOOTER — dark, portal-adjacent
   ============================================================ */
.site-footer {
  /* Hardcoded navy — never driven by vars, so it can't flip. */
  background: #0f1535;
  color: #c5cae9;
  padding: var(--s-9) var(--gutter) var(--s-6);
}
.site-footer p { color: #c5cae9; }
.site-footer__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--s-7);
}
.site-footer__brand {
  color: var(--surface);
  font-weight: 700;
  font-size: var(--f-xl);
  margin-bottom: var(--s-3);
  display: flex; align-items: center; gap: var(--s-3);
}
.site-footer__brand img { height: 28px; width: auto; filter: brightness(0) invert(1); }
.site-footer__blurb {
  color: #9fa8d5;
  font-size: var(--f-sm);
  max-width: 36ch;
  margin: 0;
  line-height: 1.6;
}
.site-footer h4 {
  color: var(--surface);
  font-size: var(--f-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 var(--s-4);
}
.site-footer ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: var(--s-3);
}
.site-footer a {
  color: #c5cae9;
  text-decoration: none;
  font-size: var(--f-sm);
  transition: color .12s;
}
.site-footer a:hover { color: var(--accent); }
.site-footer__legal {
  grid-column: 1 / -1;
  padding-top: var(--s-6);
  margin-top: var(--s-5);
  border-top: 1px solid #262c4d;
  color: #7a84b8;
  font-size: var(--f-xs);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3);
}

@media (max-width: 820px) {
  .site-footer__inner { grid-template-columns: 1fr; gap: var(--s-6); }
  .site-footer__legal { flex-direction: column; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.muted { color: var(--mute); }
.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; }
.text-center { text-align: center; }
.max-read { max-width: 60ch; }

/* notice (preview-only) */
.notice {
  padding: var(--s-4) var(--s-5);
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
  margin: var(--s-5) 0;
  font-size: var(--f-sm);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* scroll-top */
.scroll-top {
  position: fixed; right: var(--s-5); bottom: var(--s-5); z-index: 50;
  width: 44px; height: 44px;
  background: var(--accent); color: var(--surface);
  border: 0; cursor: pointer;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 18px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, background .12s ease;
  box-shadow: var(--shadow);
}
.scroll-top.is-visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: var(--accent-ink); }

/* print */
@media print {
  .site-header, .site-footer, .scroll-top, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
