/* ==========================================================================
   LMPD Jobs — 2026 site refresh
   Loaded AFTER lmpdjobsv2.webflow.css. Design tokens live in that file's
   :root (remapped to the refresh values); this file only adds components.

   Figma: 26-1006_LMPDJobs-Website-Refresh-Design → "Pages"
   Breakpoints match Webflow: 991 (tablet), 767 (mobile landscape), 479 (mobile)
   ========================================================================== */

:root {
  /* Section rhythm from the Figma variables (section-padding-lg/md/sm) */
  --section-pad-lg: var(--spacing--padding-section--large); /* 120 */
  --section-pad-md: var(--spacing--padding-section--main);  /* 80 */
  --section-pad-sm: var(--spacing--padding-section--small); /* 40 */
  --page-pad: var(--spacing--padding-global--main);         /* 40 */
  --content-width: 85rem;                                    /* 1360 */
  --text-inverse-secondary: #f3f7fe99;
  --border-inverse-secondary: #f3f7fe33;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

/* In-page links (hero buttons, back to top) glide to their section */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

.site-container {
  width: 100%;
  max-width: calc(var(--content-width) + (var(--page-pad) * 2));
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}

.uppercase { text-transform: uppercase; }

/* Screen-reader-only text (the Webflow .sr-only only zeroes font-size) */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* The Webflow stylesheet gives every <li> 4px vertical margins and an 8px
   indent. Reset that for the refresh's list components (zero-specificity
   :where so each component's own padding still applies). */
:where(.job-card-grid, .perk-grid, .benefit-list, .check-grid, .contact-list, .step-list, .event-grid, .value-list, .recruiter-grid, .video-grid) > li {
  margin: 0;
  padding-left: 0;
}

/* Two-tone section headings. Default: Rama Gothic M Heavy lead-in + Rama
   Gothic E Heavy accent. Modifiers swap the lead family/weight or the accent
   family to match each Figma heading. */
.heading-split {
  margin: 0;
  font-family: var(--font-family--heading-m);
  font-weight: 900; /* Rama Gothic Heavy */
  line-height: 1;
  text-transform: uppercase;
  font-size: var(--font-size--heading--h1);
}

.heading-split.is-display {
  font-size: var(--font-size--heading--display);
  line-height: .9;
}

.heading-split.is-condensed { font-family: var(--font-family--heading-c); }
.heading-split.is-lead-e { font-family: var(--font-family--heading); }
.heading-split.is-lead-bold { font-weight: 700; }

.heading-split__accent {
  font-family: var(--font-family--heading);
  font-weight: 900;
  color: var(--color--highlight--brand-base);
}

.heading-split__accent.is-m { font-family: var(--font-family--heading-m); }
.heading-split__accent.is-bold { font-weight: 700; }

.heading-split__accent.is-indigo { color: var(--color-brand--brand-base); }

/* "ONE METRO … ONE MISSION" corner labels — existing Webflow .decoration,
   tightened to the refresh spec (16px inset, bold mono, highlight). */
.decoration {
  z-index: 2;
  padding-left: 1rem;
  padding-right: 1rem;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  color: var(--color--highlight--brand-base);
  pointer-events: none;
}

.decoration.top { padding-top: 1rem; }
.decoration.bottom { padding-bottom: 1rem; }

/* --------------------------------------------------------------------------
   Buttons — extends the existing Webflow .button / .button.is-alternate
   -------------------------------------------------------------------------- */

/* Figma strokes sit inside the box, so padding gives up 1px to the border.
   Overpass Mono keeps room for descenders the uppercase labels never use, so
   the caps sat ~3px high; every button moves .1em of padding from the bottom
   to the top to center them (same overall height). */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: calc(.75rem - 1px + .1em) calc(1.5rem - 1px) calc(.75rem - 1px - .1em);
  border-radius: var(--border--radius--8);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.button.is-alternate,
.button.is-alternate:active {
  color: var(--color-neutral--neutral-darkest);
}

/* Yellow buttons: content turns zaffre on hover (BugHerd #19) */
.button.is-alternate:hover { color: var(--color-neutral--neutral-darker); }

.button.is-zaffre {
  background-color: var(--color-neutral--neutral-darker);
  border-color: var(--color-neutral--neutral-darker);
  color: var(--color-neutral--neutral-lightest);
}

.button.is-zaffre:hover {
  background-color: var(--color-brand--brand-base);
  border-color: var(--color-brand--brand-base);
  color: var(--color--highlight--brand-base); /* BugHerd #20 */
}

.button.is-outline {
  background-color: transparent;
  border-color: var(--color-neutral--neutral-darker);
  color: var(--color-neutral--neutral-darker);
}

.button.is-outline:hover {
  background-color: var(--color-neutral--neutral-darker);
  color: var(--color-neutral--neutral-lightest);
}

.button.is-outline-highlight {
  background-color: transparent;
  border-color: var(--color--highlight--brand-base);
  color: var(--color--highlight--brand-base);
}

.button.is-outline-highlight:hover {
  background-color: var(--color--highlight--brand-base);
  color: var(--color-neutral--neutral-darkest);
}

.button.is-small { padding: calc(.5rem - 1px + .1em) calc(1.25rem - 1px) calc(.5rem - 1px - .1em); }

.button.is-large {
  padding: calc(1.25rem - 1px + .1em) calc(2.5rem - 1px) calc(1.25rem - 1px - .1em);
  font-size: 1.25rem;
}

.button.is-full { width: 100%; }

.button-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
}

.button:focus-visible {
  outline: 2px solid var(--color-neutral--neutral-lightest);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Navbar — reuses the Webflow w-nav markup so the mobile toggle keeps working
   -------------------------------------------------------------------------- */

.navbar {
  padding: 0;
}

.navbar .flex {
  min-height: 72px;
}

.navbar .navigation-container {
  max-width: calc(var(--content-width) + (var(--page-pad) * 2));
}

.navbar .w-nav-brand svg {
  display: block;
  width: 175px;
  height: auto;
}

.nav-menu-list {
  gap: 2rem;
}

.nav-menu-list .nav-link {
  margin: 0;
  padding: 0;
  font-family: var(--font-family--text);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-neutral--neutral-lightest);
}

.nav-menu-list .nav-link.w--current {
  color: var(--color--highlight--brand-base);
}

.header-button-wrapper {
  margin-left: 0;
}

/* Sub navigation under Why LMPD? and Application Process (BugHerd #40, #41).
   Desktop: a dropdown that opens on hover or from the chevron button
   (js/site.js toggles .is-open + aria-expanded). Mobile menu: the sub links
   are always listed, indented under their parent, and the chevron is hidden. */
.nav-item__row {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.subnav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: none;
  color: var(--color-neutral--neutral-lightest);
  cursor: pointer;
}

.subnav-toggle svg { transition: transform .2s ease; }

.subnav-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.subnav-toggle:focus-visible {
  outline: 2px solid var(--color--highlight--brand-base);
  outline-offset: 2px;
}

.subnav {
  margin: 0;
  padding: 0;
  list-style: none;
}

.subnav > li {
  margin: 0;
  padding: 0;
}

.subnav__link {
  display: block;
  font-family: var(--font-family--text);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-neutral--neutral-lightest);
  text-decoration: none;
}

.subnav__link:hover,
.subnav__link.w--current { color: var(--color--highlight--brand-base); }

@media screen and (min-width: 992px) {
  .nav-item.has-subnav { position: relative; }

  /* Drops from the bottom edge of the 72px bar; the ::before strip bridges the
     gap so the pointer can travel from the link into the menu without it closing. */
  .subnav {
    position: absolute;
    top: calc(100% + 1.5rem);
    left: -1.25rem;
    z-index: 10;
    display: none;
    min-width: 13.5rem;
    padding: .75rem 0;
    background-color: var(--color--background--bg-alternate);
    border: 1px solid var(--border-inverse-secondary);
    border-top: 0;
    box-shadow: 0 12px 24px #0000004d;
  }

  .subnav::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 1.5rem;
  }

  .has-subnav:hover > .subnav,
  .has-subnav.is-open > .subnav { display: block; }

  .has-subnav:hover .subnav-toggle svg { transform: rotate(180deg); }

  .subnav__link {
    padding: .5rem 1.25rem;
    white-space: nowrap;
  }
}

@media screen and (max-width: 991px) {
  .subnav-toggle { display: none; }

  /* webflow.css centers text in the open menu */
  .subnav {
    padding: 0 0 .5rem 1rem;
    text-align: left;
  }

  /* The sub links make the open menu taller than a short or landscape phone;
     let it scroll instead of running off the bottom of the sticky bar. */
  .w-nav-menu[data-nav-menu-open] {
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .subnav__link { padding: .5rem 0; }
}

/* Sticky nav: hides when scrolling down, comes back when scrolling up
   (BugHerd #18). js/site.js toggles html.nav-is-hidden. */
.navbar.w-nav {
  position: sticky;
  top: 0;
  transition: transform .3s ease;
}

html.nav-is-hidden { --nav-offset: 0px; }

html.nav-is-hidden .navbar.w-nav { transform: translateY(-100%); }

@media (prefers-reduced-motion: reduce) {
  .navbar.w-nav,
  .apply-faq__intro { transition: none; }
}

/* --------------------------------------------------------------------------
   Apply CTA band (shared above the footer)
   -------------------------------------------------------------------------- */

.cta-apply {
  background-color: var(--color--highlight--brand-base);
  padding-top: var(--section-pad-sm);
  padding-bottom: var(--section-pad-sm);
}

.cta-apply__row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.cta-apply__heading {
  margin: 0;
  font-family: var(--font-family--heading);
  font-weight: 700;
  font-size: var(--font-size--heading--h1);
  line-height: .9;
  color: var(--color-neutral--neutral-darkest);
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer__contact {
  background-color: var(--color-neutral--neutral-darker);
  color: var(--text-inverse-secondary);
  padding-top: var(--section-pad-sm);
  padding-bottom: var(--section-pad-sm);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem;
}

.site-footer__heading {
  margin: 0 0 1rem;
  font-family: var(--font-family--text);
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--color-neutral--neutral-lightest);
  text-transform: uppercase;
}

.site-footer__text {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.5;
}

.site-footer__text strong {
  font-weight: 400;
  color: var(--color-neutral--neutral-lightest);
}

.site-footer a {
  color: var(--color--highlight--brand-base);
  text-decoration: underline;
  overflow-wrap: break-word;
}

.site-footer__legal {
  background-color: var(--color-neutral--neutral-darkest);
  color: var(--color-neutral--neutral-lightest);
  padding-top: var(--section-pad-sm);
  padding-bottom: var(--section-pad-sm);
}

.site-footer__legal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-footer__legal-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.5rem;
  font-size: .875rem;
  line-height: 1.5;
}

.site-footer__social {
  display: flex;
  gap: .5rem;
}

.site-footer__social a {
  display: block;
  line-height: 0;
}

.site-footer__social img {
  width: 1rem;
  height: 1rem;
}

.site-footer__copyright { margin: 0; }

/* Accessibility links: not in the Figma legal row, kept for the site's
   public accessibility commitment. */
.site-footer__legal a.site-footer__a11y-link {
  color: var(--color-neutral--neutral-lightest);
}

.site-footer__powered {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.5;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Home — hero
   -------------------------------------------------------------------------- */

.home-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(59.5rem, calc(100svh - 72px));
  padding: var(--section-pad-lg) var(--page-pad);
  overflow: hidden;
  color: var(--color-neutral--neutral-lightest);
  isolation: isolate;
}

.home-hero .hero-vimeo-wrapper {
  position: absolute;
  inset: 0;
  z-index: -1;
}

/* The source video is letterboxed; scale it up to crop the black bars */
.home-hero .hero-vimeo-iframe {
  z-index: 0;
  transform: translate(-50%, -50%) scale(1.2);
}

.home-hero .overlay {
  z-index: 1;
}

.home-hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  width: 100%;
  max-width: var(--content-width);
  text-align: center;
}

.home-hero__title {
  display: block;
  width: 100%;
  max-width: 806px;
  height: auto;
}

.home-hero__heading {
  margin: 0;
  font-family: var(--font-family--heading);
  font-weight: 400;
  font-size: var(--font-size--heading--h3);
  line-height: 1.1;
  text-transform: uppercase;
}

.home-hero__heading strong {
  font-weight: 700;
  color: var(--color--highlight--brand-base);
}

.home-hero__actions { padding-top: 1rem; }

.home-hero__scroll-line {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 2px;
  height: var(--scroll-line-h, 150px);
  background-color: var(--color-neutral--neutral-lightest);
  transform: translateX(-50%);
  pointer-events: none;
}

.home-hero__scroll {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  font-family: var(--font-family--button);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-neutral--neutral-lightest);
  text-decoration: none;
  text-transform: uppercase;
}

.home-hero__scroll:hover { color: var(--color--highlight--brand-base); }

.home-hero .hero-vimeo-control {
  position: absolute;
  top: auto;
  right: auto;
  left: 1rem;
  bottom: 1rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Open positions ("Stand for change") — homepage + Explore Opportunities
   -------------------------------------------------------------------------- */

.open-positions {
  position: relative;
  background-color: var(--color-neutral--neutral-darker);
  color: var(--color-neutral--neutral-lightest);
  padding-top: var(--section-pad-lg);
  padding-bottom: var(--section-pad-lg);
}

.open-positions__intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.open-positions__intro p {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.job-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.job-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem;
  background-color: var(--color-neutral--neutral-darkest);
  border: 1px solid var(--border-inverse-secondary);
  border-radius: var(--border--radius--4);
}

.job-card__img {
  display: block;
  width: 100%;
  height: 10rem;
  object-fit: cover;
  border: 1px solid var(--border-inverse-secondary);
  border-radius: var(--border--radius--2);
}

.job-card__body {
  container-type: inline-size;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.job-card__title {
  margin: 0;
  font-family: var(--font-family--heading);
  font-weight: 700;
  font-size: var(--font-size--heading--h3);
  font-size: min(var(--font-size--heading--h3), 18cqi); /* "Opportunities" must fit narrow cards (same issue as BugHerd #10) */
  line-height: .9;
  text-transform: uppercase;
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   Home — perks of the badge
   -------------------------------------------------------------------------- */

.home-perks {
  position: relative;
  background-color: var(--color-neutral--neutral-darkest);
  padding-top: var(--section-pad-lg);
  padding-bottom: var(--section-pad-lg);
  color: var(--color-neutral--neutral-lightest);
}

.home-perks__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-perks__inner { position: relative; }

.home-perks__card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background-color: var(--color-neutral--neutral-darkest);
  border-radius: var(--border--radius--8);
  overflow: hidden;
}

/* The photo is portrait; keep it out of the row-height calculation so the
   card is sized by its content (632px at desktop, per Figma). */
.home-perks__media {
  position: relative;
  min-height: 20rem;
}

.home-perks__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
}

.home-perks__content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2.5rem;
  isolation: isolate;
}

.home-perks__fleur {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: 362px;
  height: auto;
  transform: translate(-50%, calc(-50% + 12px));
  pointer-events: none;
}

.home-perks__content .heading-split { text-align: center; }

.perk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--color-neutral--neutral-darker);
  border-left: 2px solid var(--color-neutral--neutral-darker);
  grid-auto-rows: minmax(7.5rem, auto); /* 120px cells per Figma, taller only if the text needs it (BugHerd #8) */
}

.perk-grid__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: .5rem .75rem;
  border-right: 2px solid var(--color-neutral--neutral-darker);
  border-bottom: 2px solid var(--color-neutral--neutral-darker);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

.perk-grid__icon {
  width: 2rem;
  height: 2rem;
}

.home-perks__badge {
  position: absolute;
  top: -60px;
  left: 50%;
  width: 120px;
  height: 120px;
  transform: translateX(-50%);
}

/* --------------------------------------------------------------------------
   Media split (homepage hiring, SkillBridge): centred copy beside a square photo
   -------------------------------------------------------------------------- */

.media-split {
  background-color: var(--color-neutral--neutral-lighter);
  color: var(--color-neutral--neutral-darkest);
  padding-top: var(--section-pad-md);
  padding-bottom: var(--section-pad-md);
}

.media-split__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.media-split__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
  isolation: isolate;
}

.media-split__fleur {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: 362px;
  height: auto;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.media-split__logo {
  width: 89px;
  height: 89px;
}

.media-split__text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.media-split__text p {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.media-split__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  padding-top: 1rem;
}

.media-split__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1; /* Figma: 660 × 660 */
  object-fit: cover;
  border-radius: var(--border--radius--8);
}

/* --------------------------------------------------------------------------
   Home — why LMPD
   -------------------------------------------------------------------------- */

.home-why {
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(180deg, var(--color-neutral--neutral-darkest), var(--color-neutral--neutral-base));
  color: var(--color-neutral--neutral-lightest);
  padding-top: var(--section-pad-md);
  padding-bottom: var(--section-pad-md);
  isolation: isolate;
}

.home-why__bg {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: -1;
  width: 100%;
  height: calc(100% - 2.5rem);
  object-fit: cover;
  opacity: .6;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.home-why__intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: baseline;
  margin-bottom: 5rem;
}

.home-why__intro p {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.feature-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2.5rem;
  background-color: var(--color-neutral--neutral-darkest);
  border-radius: var(--border--radius--8);
}

.feature-card__title {
  margin: 0;
  font-family: var(--font-family--heading);
  font-weight: 700;
  font-size: var(--font-size--heading--h3);
  line-height: 1.1;
  text-transform: uppercase;
}

.feature-card__img {
  display: block;
  width: 100%;
  height: 12.5rem;
  object-fit: cover;
  border: 1px solid var(--border-inverse-secondary);
  border-radius: var(--border--radius--2);
}

.feature-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.feature-card__body p {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.5;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Talk to a recruiter CTA (shared)
   -------------------------------------------------------------------------- */

.cta-recruiter {
  position: relative;
  padding-top: var(--section-pad-lg);
  padding-bottom: var(--section-pad-lg);
  color: var(--color-neutral--neutral-lightest);
  isolation: isolate;
}

.cta-recruiter__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.cta-recruiter::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: #021b4333;
}

.cta-recruiter__card {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 30rem;
  background-color: var(--color-neutral--neutral-darker);
  border-radius: var(--border--radius--8);
  overflow: hidden;
  isolation: isolate;
}

.cta-recruiter__lettermark {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: 1880px;
  max-width: none;
  height: 360px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-recruiter__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  padding: 3rem;
}

/* Talk to a Recruiter card: the contact list was removed (BugHerd #48), so the
   heading, copy and button sit in the middle of the card instead of the top */
.cta-recruiter__content.is-centered { justify-content: center; }

.cta-recruiter__top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cta-recruiter__top .heading-split,
.cta-recruiter__text .heading-split { line-height: .9; }

/* Copy-led variant (PAT card on Hiring Process): heading + paragraph, button pinned to the bottom */
.cta-recruiter__text {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.cta-recruiter__text p {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.cta-recruiter__lede {
  margin: .5rem 0 0;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.3;
  text-wrap: pretty;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.25rem;
  line-height: 1.5;
}

.contact-list__item {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.contact-list__item img {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
}

.contact-list a {
  color: inherit;
  text-decoration: underline;
  overflow-wrap: break-word;
}

.cta-recruiter__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Plain navy variant (Why LMPD): no background photo, and stacked cards
   share one section's worth of padding between them */
.cta-recruiter.is-plain { background-color: var(--color-neutral--neutral-darkest); }
.cta-recruiter.is-plain::before { display: none; }
.cta-recruiter.is-tight-top { padding-top: var(--section-pad-sm); }
.cta-recruiter.is-tight-bottom { padding-bottom: var(--section-pad-sm); }

.cta-recruiter__text p.is-large { font-size: 1.5rem; }
.cta-recruiter__text p.is-xl { font-size: 1.75rem; }

.cta-recruiter__points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-top: .25rem;
}

.cta-recruiter__points h3 {
  margin: 0 0 .25rem;
  font-family: var(--font-family--button);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  text-transform: uppercase;
}

.cta-recruiter__points p {
  margin: 0;
  color: var(--text-inverse-secondary);
  font-size: .875rem;
}

/* Photo with a centred play icon, linking to the video page */
.cta-recruiter__media {
  position: relative;
  display: block;
  min-height: 100%;
}

.cta-recruiter__media .cta-recruiter__img {
  position: absolute;
  inset: 0;
}

.cta-recruiter__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6rem;
  height: 6rem;
  transform: translate(-50%, -50%);
  transition: transform .2s;
}

.cta-recruiter__media:hover .cta-recruiter__play,
.cta-recruiter__media:focus-visible .cta-recruiter__play { transform: translate(-50%, -50%) scale(1.08); }

.cta-recruiter__media:focus-visible {
  outline: 2px solid var(--color--highlight--brand-base);
  outline-offset: -4px;
}

/* --------------------------------------------------------------------------
   Page hero (inner pages): photo + overlay, left-aligned copy
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 32rem;
  padding-top: var(--section-pad-lg);
  padding-bottom: var(--section-pad-lg);
  color: var(--color-neutral--neutral-lightest);
  isolation: isolate;
  overflow: hidden;
}

.page-hero__media,
.page-hero__media img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Keep the subject in frame when the crop narrows */
.page-hero__media.is-focus-right img { object-position: 70% 50%; }

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: #021b4340;
}

.page-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  max-width: 64rem;
}

.page-hero__content p {
  max-width: 35rem;
  margin: 0;
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.page-hero__actions { padding-top: 1rem; }

/* --------------------------------------------------------------------------
   Benefits — overview ("More than a paycheck")
   -------------------------------------------------------------------------- */

.benefits-overview {
  position: relative;
  background-color: var(--color-neutral--neutral-darker);
  color: var(--color-neutral--neutral-lightest);
  padding-top: var(--section-pad-lg);
  padding-bottom: var(--section-pad-lg);
}

.benefits-overview__intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.benefits-overview__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.benefits-overview__text p {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.5;
  text-wrap: pretty;
}

/* Perk grid on a navy panel, three across */
.perk-panel {
  padding: 1rem;
  background-color: var(--color-neutral--neutral-darkest);
  border-radius: var(--border--radius--8);
}

.perk-grid.is-3col { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* --------------------------------------------------------------------------
   Benefits — support ("Built to support you")
   -------------------------------------------------------------------------- */

.benefits-support {
  background-color: var(--color-neutral--neutral-lighter);
  color: var(--color-neutral--neutral-darkest);
  padding-top: var(--section-pad-md);
  padding-bottom: var(--section-pad-md);
}

.benefits-support__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4rem;
  align-items: stretch;
}

.benefits-support__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
}

.benefits-support__text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.benefits-support__text p {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.benefit-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefit-list li {
  padding: 1rem;
  background-color: var(--color-neutral--neutral-lightest);
  border-radius: var(--border--radius--4);
  font-size: 1.125rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.benefit-list strong { font-weight: 700; }

.benefits-support__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1; /* Figma: 660 × 660 */
  object-fit: cover;
  border-radius: var(--border--radius--8);
}

/* --------------------------------------------------------------------------
   Split hero (Hiring Process): framed photo beside centred copy on zaffre
   -------------------------------------------------------------------------- */

.split-hero {
  position: relative;
  background-color: var(--color-neutral--neutral-darker);
  color: var(--color-neutral--neutral-lightest);
  padding-top: var(--section-pad-md);
  padding-bottom: var(--section-pad-md);
  isolation: isolate;
}

.split-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .6;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.split-hero__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
}

.split-hero__media {
  display: block;
  width: 100%;
  height: 36.25rem; /* 580 */
  object-fit: cover;
  border: 1px solid var(--border-inverse-secondary);
  border-radius: var(--border--radius--8);
}

.split-hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  text-align: center;
}

.split-hero__content p {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.split-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding-top: 1rem;
}

/* --------------------------------------------------------------------------
   Process steps: sticky heading beside a numbered timeline
   -------------------------------------------------------------------------- */

.process-steps {
  background-color: var(--color-neutral--neutral-lighter);
  color: var(--color-neutral--neutral-darkest);
  padding-top: var(--section-pad-md);
  padding-bottom: var(--section-pad-md);
}

.process-steps__row {
  display: grid;
  grid-template-columns: minmax(0, .5fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.process-steps__heading {
  position: sticky;
  top: 2.5rem;
  max-width: 27.5rem;
  font-size: 4rem;
  text-wrap: balance;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list__item {
  display: flex;
  gap: 2.5rem;
}

/* Number tile with a connector line running down to the next step */
.step-list__marker {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}

.step-list__number {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  background-color: var(--color-neutral--neutral-darker);
  color: var(--color--highlight--brand-base);
  font-family: var(--font-family--button);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
}

.step-list__marker::after {
  content: "";
  flex: 1;
  width: 2px;
  background-color: var(--color-neutral--neutral-darkest);
}

.step-list__item:last-child .step-list__marker::after { display: none; }

.step-list__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: .5rem;
  padding-bottom: 2.5rem;
}

.step-list__title {
  margin: 0;
  font-family: var(--font-family--text);
  font-weight: 800;
  font-size: var(--font-size--heading--h4);
  line-height: 1.5;
  letter-spacing: -.01em;
  text-transform: uppercase;
}

.step-list__content p {
  margin: 0;
  color: #021b43b3;
  font-size: 1.25rem;
  line-height: 1.5;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Documentation requirements checklist
   -------------------------------------------------------------------------- */

.doc-requirements {
  background-color: var(--color-neutral--neutral-lighter);
  color: var(--color-neutral--neutral-darkest);
  padding-top: var(--section-pad-md);
  padding-bottom: var(--section-pad-md);
}

.section-heading {
  margin: 0 0 2.5rem;
  font-family: var(--font-family--heading);
  font-weight: 700;
  font-size: var(--font-size--heading--h1);
  line-height: .9;
  text-transform: uppercase;
}

/* Heading + Forms link on one row (BugHerd #44) */
.doc-requirements__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 2.5rem;
}

.doc-requirements__header .section-heading { margin: 0; }

/* "Still have questions?" band between Documentation and the Apply CTA (BugHerd #43) */
.help-banner {
  background-color: var(--color--background--bg-alternate);
  color: var(--color-neutral--neutral-lightest);
  padding-top: var(--section-pad-sm);
  padding-bottom: var(--section-pad-sm);
}

.help-banner__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2.5rem;
}

.help-banner__text {
  margin: 0;
  max-width: 44rem;
  font-size: 1.25rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.help-banner__text strong { color: var(--color--highlight--brand-base); }

@media screen and (max-width: 767px) {
  .help-banner__text { font-size: 1.125rem; }
  .help-banner__row .button { width: 100%; }
}

.doc-requirements__intro {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-grid li {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--color-neutral--neutral-lightest);
  border: 1px solid #021b4333;
  border-radius: var(--border--radius--4);
  font-size: 1.125rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.check-grid img {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
}

/* --------------------------------------------------------------------------
   PAT — hero: two photos meeting in a darkened seam, title + sign-up, date badge
   -------------------------------------------------------------------------- */

.pat-hero {
  position: relative;
  padding-top: var(--section-pad-lg);
  padding-bottom: 1.25rem;
  background-color: var(--color-neutral--neutral-darkest);
  color: var(--color-neutral--neutral-lightest);
  isolation: isolate;
  overflow: hidden;
}

.pat-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pat-hero__panel {
  position: relative;
  overflow: hidden;
}

.pat-hero__panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fade each photo toward the centre seam (Figma: 75% black from the midpoint) */
.pat-hero__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .75;
  background-image: linear-gradient(90deg, transparent 50%, #000 100%);
}

.pat-hero__panel + .pat-hero__panel::after {
  background-image: linear-gradient(270deg, transparent 50%, #000 100%);
}

.pat-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #021b4340;
}

.pat-hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
}

.pat-hero__date {
  display: inline-block;
  margin: 2.5rem 0 0;
  padding: .75rem;
  background-color: var(--color-brand--brand-base);
  color: var(--color--highlight--brand-base);
  font-family: var(--font-family--heading);
  font-weight: 700;
  font-size: var(--font-size--heading--h4);
  line-height: 1.1;
  text-transform: uppercase;
}

/* Test location under the date chip (BugHerd #50) */
.pat-hero__location {
  margin: 1rem 0 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-neutral--neutral-lightest);
}

/* --------------------------------------------------------------------------
   PAT — scoring table
   -------------------------------------------------------------------------- */

.pat-scoring {
  background-color: var(--color-neutral--neutral-lighter);
  color: var(--color-neutral--neutral-darkest);
  padding-top: var(--section-pad-sm);
  padding-bottom: var(--section-pad-sm);
}

.pat-scoring__intro {
  max-width: 64rem;
  margin: 0 0 2.5rem;
  font-size: 1.25rem;
  line-height: 1.5;
  text-wrap: pretty;
}

/* Scrolls sideways on narrow screens instead of crushing the columns */
.score-table-wrap {
  overflow-x: auto;
  border: 1px solid #021b4333;
  border-radius: var(--border--radius--8);
}

.score-table-wrap:focus-visible {
  outline: 2px solid var(--color-brand--brand-base);
  outline-offset: 2px;
}

.score-table {
  width: 100%;
  min-width: 46rem;
  border-collapse: collapse;
  font-size: 1.125rem;
  line-height: 1.5;
}

/* Figma column widths: event, then the five point columns */
.score-table col:nth-child(1) { width: 30.8%; }
.score-table col:nth-child(2) { width: 13%; }
.score-table col:nth-child(3) { width: 14.2%; }
.score-table col:nth-child(4) { width: 13.5%; }
.score-table col:nth-child(5) { width: 15.4%; }
.score-table col:nth-child(6) { width: 13.1%; }

.score-table th,
.score-table td {
  height: 3.9375rem; /* 63 */
  padding: 0 .75rem;
  text-align: left;
  vertical-align: middle;
}

.score-table thead th {
  height: 4rem;
  background-color: var(--color-neutral--neutral-darkest);
  color: var(--color-neutral--neutral-lightest);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.score-table tbody th {
  font-weight: 400;
}

.score-table tbody tr:nth-child(odd) { background-color: var(--color-neutral--neutral-lightest); }
.score-table tbody tr:nth-child(even) { background-color: var(--color-neutral--neutral-lighter); }

.score-table td { font-family: var(--font-family--button); }

.pat-scoring__note {
  margin: 1rem 0 0;
  font-size: 1.125rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   PAT — the five events
   -------------------------------------------------------------------------- */

.pat-events {
  position: relative;
  background-color: var(--color-neutral--neutral-darker);
  color: var(--color-neutral--neutral-lightest);
  padding-top: var(--section-pad-md);
  padding-bottom: var(--section-pad-md);
}

.pat-events__heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 4px solid var(--color-neutral--neutral-darkest);
  font-family: var(--font-family--heading);
  font-weight: 700;
  font-size: var(--font-size--heading--display);
  line-height: .9;
  text-transform: uppercase;
}

.pat-events__heading > span { white-space: nowrap; }

.pat-events__heading .heading-split__accent { font-weight: 900; }

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.event-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem;
  background-color: var(--color-neutral--neutral-darkest);
  border-radius: var(--border--radius--8);
  text-align: center;
}

.event-card__icon {
  width: 2.5rem;
  height: 2.5rem;
}

/* Design sets these in Inter Bold; nothing else on the site uses Inter, so Overpass Bold */
.event-card__title {
  margin: 0;
  font-family: var(--font-family--text);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
  text-transform: uppercase;
}

/* Video tile: a poster frame with a play icon. The link opens the event's
   local MP4 in the shared video modal (js/site.js); without JS it goes
   straight to the file. */
.event-card__media {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 7.5rem;
  margin-top: auto; /* keep tiles aligned when a title wraps */
  background-color: var(--color-neutral--neutral-lighter);
  border-radius: var(--border--radius--8);
  overflow: hidden;
}

.event-card__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.event-card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: #021b4340;
  transition: background-color .2s ease;
}

.event-card__play {
  position: relative;
  z-index: 2;
  width: 4rem;
  height: 4rem;
  transition: transform .2s ease;
}

a.event-card__media:hover::before { background-color: #021b4320; }

a.event-card__media:hover .event-card__poster { transform: scale(1.04); }

a.event-card__media:hover .event-card__play { transform: scale(1.08); }

a.event-card__media:focus-visible {
  outline: 2px solid var(--color--highlight--brand-base);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .event-card__poster,
  .event-card__play { transition: none; }

  a.event-card__media:hover .event-card__poster,
  a.event-card__media:hover .event-card__play { transform: none; }
}

/* --------------------------------------------------------------------------
   Centred hero (Why LMPD): gradient + photo, badge, centred copy, scroll cue
   -------------------------------------------------------------------------- */

.center-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(59.5rem, calc(100svh - 72px));
  padding-top: var(--section-pad-lg);
  padding-bottom: var(--section-pad-lg);
  background-image: linear-gradient(180deg, var(--color-neutral--neutral-darkest), var(--color-neutral--neutral-base));
  color: var(--color-neutral--neutral-lightest);
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}

/* Heroes with the scroll cue line keep their content clear of it: at short
   window heights the centered buttons used to sit on the line (BugHerd #13/#14) */
.home-hero,
.center-hero {
  --scroll-line-h: 150px;
  padding-bottom: max(var(--section-pad-lg), calc(var(--scroll-line-h) + 1.5rem));
}

.center-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .5;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.center-hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  max-width: 62.5rem;
  margin: 0 auto;
}

/* Photo variant (Apply): full photo under a 40% navy wash instead of the gradient */
.center-hero.is-photo { background-image: none; background-color: var(--color-neutral--neutral-darkest); }
/* z-index -2: the photo has to sit under the ::before overlay (both were -1, so
   the photo painted over it and the overlay never showed, BugHerd #23) */
.center-hero.is-photo .center-hero__bg { z-index: -2; opacity: 1; mix-blend-mode: normal; }
.center-hero.is-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Navy overlay, deepest behind the copy, so the text reads over any part of
     the photo (BugHerd #23; was a flat 40% wash) */
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, #021b43b3, #021b4366 100%),
    #021b4340;
}

.button.is-wide { padding-left: calc(5rem - 1px); padding-right: calc(5rem - 1px); padding-top: calc(1rem - 1px + .1em); padding-bottom: calc(1rem - 1px - .1em); }

.center-hero__logo {
  width: 89px;
  height: 89px;
}

.center-hero__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.center-hero__text p {
  max-width: 45rem;
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.5;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Core values
   -------------------------------------------------------------------------- */

.core-values {
  position: relative;
  background-color: var(--color-neutral--neutral-darker);
  color: var(--color-neutral--neutral-lightest);
  padding-top: var(--section-pad-md);
  padding-bottom: var(--section-pad-md);
  isolation: isolate;
  overflow: hidden;
}

.core-values__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.core-values__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  text-align: center;
}

.core-values__eyebrow {
  margin: 0;
  color: var(--color--highlight--brand-base);
  font-family: var(--font-family--button);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  text-transform: uppercase;
}

.core-values__heading {
  margin: 0;
  font-family: var(--font-family--heading);
  font-weight: 700;
  font-size: var(--font-size--heading--display);
  line-height: .9;
  text-transform: uppercase;
}

.core-values__intro p:last-child {
  max-width: 62.5rem;
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.value-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.value-list li {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem;
  background-color: var(--color-neutral--neutral-darkest);
  border-bottom: 1px solid var(--border-inverse-secondary);
  border-radius: var(--border--radius--8);
  font-family: var(--font-family--heading);
  font-weight: 400;
  font-size: var(--font-size--heading--h3);
  line-height: 1.1;
  text-transform: uppercase;
}

.value-list span { flex: 1; }

.value-list img {
  flex: none;
  width: 3rem;
  height: 3rem;
}

.core-values__actions {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

/* --------------------------------------------------------------------------
   Career tree ("Find your path")
   Desktop: a 6-column grid of rank/role cards per band; js/career-tree.js
   draws the connector lines into the SVG from the real card positions and
   lights the path through whichever card is hovered. Below 992px the bands
   stack and the connectors are hidden.
   -------------------------------------------------------------------------- */

.find-path {
  background-color: var(--color-neutral--neutral-lighter);
  color: var(--color-neutral--neutral-darkest);
  padding-top: var(--section-pad-md);
  padding-bottom: var(--section-pad-md);
}

.find-path .section-heading { margin-bottom: 1rem; }

.find-path__intro {
  margin: 0 0 2.5rem;
  font-size: 1.25rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.career-tree {
  position: relative;
  isolation: isolate;
}

.career-tree__lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.career-tree__lines path {
  fill: none;
  stroke: var(--color-neutral--neutral-darkest);
  stroke-width: 4;
  transition: stroke .15s;
}

.career-tree__lines path.is-lit { stroke: var(--color-neutral--neutral-base); }

.tree-band {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: 1rem;
  padding: 2.5rem 0;
  border-top: 1px solid #021b4326;
}

/* (the SVG is the tree's first child, so match by element type) */
.tree-band:first-of-type { padding-top: 0; border-top: 0; }
.tree-band:last-of-type { padding-bottom: 0; }

.tree-label {
  justify-self: start;
  align-self: end;
  margin: 0 0 1rem;
  background-color: var(--color-neutral--neutral-lighter);
  font-family: var(--font-family--button);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  text-transform: uppercase;
}

.tree-label.is-roles { margin-top: 3.5rem; }

/* Grid placement helpers (desktop) */
.at-c1 { grid-column: 1; }
.at-c2 { grid-column: 2; }
.at-c3 { grid-column: 3; }
.at-c4 { grid-column: 4; }
.at-c5 { grid-column: 5; }
.at-c6 { grid-column: 6; }
.at-c2-end { grid-column: 2 / -1; }
.at-full { grid-column: 1 / -1; }
.at-r1 { grid-row: 1; }
.at-r2 { grid-row: 2; }
.at-r3 { grid-row: 3; }
.at-r4 { grid-row: 4; }

.tree-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  min-height: var(--card-h, 9.8125rem); /* 157 */
  padding: .75rem;
  background-color: var(--color-neutral--neutral-darker);
  color: var(--color-neutral--neutral-lightest);
  border-radius: var(--border--radius--4);
  text-align: center;
  transition: background-color .15s, box-shadow .15s;
}

.tree-card.is-rank {
  gap: .3125rem;
  background-color: var(--color-neutral--neutral-darkest);
}

.tree-card h2,
.tree-card h3 {
  margin: 0;
  text-transform: none;
  font-family: var(--font-family--text);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.1;
  text-wrap: balance;
  overflow-wrap: break-word; /* last resort; the HTML has <wbr> after each slash (BugHerd #9) */
}

.tree-card.is-rank h2,
.tree-card.is-rank h3 {
  font-weight: 700;
  font-size: 1.5rem;
}

.tree-card p {
  margin: 0;
  font-size: .875rem;
  line-height: 1.2;
  text-wrap: pretty;
}

.tree-card .is-note { color: var(--text-inverse-secondary); }

.tree-card:hover {
  background-color: var(--color-brand--brand-base);
  color: var(--color--highlight--brand-base);
  box-shadow: 0 8px 24px #021b4380;
}

.tree-card:hover .is-note { color: #e9fb43cc; }

/* Card heights per band, from Figma */
.tree-band.is-officer { --card-h: 9.8125rem; }   /* 157 */
.tree-band .is-short { --card-h: 5.5625rem; }    /* 89  */
.tree-band.is-lieutenant .tree-card.is-role { --card-h: 10.875rem; } /* 174 */
.tree-band.is-command { --card-h: 6.125rem; }    /* 98  */

/* --------------------------------------------------------------------------
   Talk to a Recruiter — team grid
   -------------------------------------------------------------------------- */

.recruiter-team {
  position: relative;
  background-color: var(--color-neutral--neutral-darker);
  color: var(--color-neutral--neutral-lightest);
  padding-top: var(--section-pad-md);
  padding-bottom: var(--section-pad-md);
  isolation: isolate;
  overflow: hidden;
}

.recruiter-team__bg {
  position: absolute;
  top: 4.3125rem;     /* 69 */
  left: 0;
  z-index: -1;
  width: 100%;
  height: 55.125rem;  /* 882 */
  object-fit: cover;
  opacity: .6;
  mix-blend-mode: multiply;
  pointer-events: none;
  /* the photo's top edge is dark; fade it in so it doesn't read as a line */
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%);
  mask-image: linear-gradient(to bottom, transparent, #000 12%);
}

.recruiter-team__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 5rem;
  text-align: center;
}

.recruiter-team__intro p:not(.core-values__eyebrow) {
  max-width: 48rem;
  margin: .5rem 0 0;
  font-size: 1.125rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.recruiter-team__intro .core-values__eyebrow { color: var(--color-neutral--neutral-lightest); }

.recruiter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recruiter-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background-color: var(--color-neutral--neutral-darkest);
  border-radius: var(--border--radius--8);
}

.recruiter-card__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 362.67 / 360;
  object-fit: cover;
  border: 2px solid var(--border-inverse-secondary);
  border-radius: var(--border--radius--8);
}

.recruiter-card__name {
  margin: 0;
  font-family: var(--font-family--button);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.4;
  letter-spacing: -.01em;
  text-align: center;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Talk to a Recruiter — contact + Cognito form (light background)
   -------------------------------------------------------------------------- */

.recruiter-contact {
  background-color: var(--color-neutral--neutral-lighter);
  color: var(--color-neutral--neutral-darkest);
  padding-top: var(--section-pad-md);
  padding-bottom: var(--section-pad-md);
}

.recruiter-contact__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  align-items: start;
}

.recruiter-contact__heading {
  margin: 0 0 .5rem;
  font-family: var(--font-family--heading);
  font-weight: 700;
  font-size: 4rem;
  line-height: 1;
  text-transform: uppercase;
}

.recruiter-contact__lede {
  margin: 0 0 2.5rem;
  font-size: 1.25rem;
  line-height: 1.5;
  text-wrap: pretty;
}

/* Recruiter contact form (Netlify Forms) on talk-to-a-recruiter.html.
   Same input spec the Cognito embed was restyled to. Submit/confirmation in js/site.js. */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* display:flex above would otherwise beat the hidden attribute */
.contact-form[hidden],
.contact-form-wrap [hidden] { display: none; }

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.contact-form label {
  margin: 0;
  color: var(--color-neutral--neutral-darkest);
  font-family: var(--font-family--text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.contact-form__req { color: var(--color-status--error); }

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  height: auto;
  margin: 0;
  padding: .75rem;
  background-color: var(--color-neutral--neutral-lightest);
  border: 1px solid #021b431a;
  border-radius: var(--border--radius--8);
  color: var(--color-neutral--neutral-darkest);
  font-family: var(--font-family--text);
  font-size: 1rem;
  line-height: 1.5;
}

.contact-form select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 3rem;
  background-image: url("../images/icon-chevron-down.svg");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 1.5rem;
  cursor: pointer;
}

.contact-form textarea {
  min-height: 10rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--color-neutral--neutral-darker);
  outline: 2px solid var(--color-neutral--neutral-darker);
  outline-offset: 0;
}

/* Only flag a field after the visitor has interacted with it */
.contact-form input:user-invalid {
  border-color: var(--color-status--error);
  outline-color: var(--color-status--error);
}

/* Honeypot: hidden from people, left in the DOM for bots */
.contact-form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__submit {
  width: 100%;
  padding: calc(.75rem - 1px + .1em) 1.5rem calc(.75rem - 1px - .1em); /* caps centered, see .button */
  background: var(--color-neutral--neutral-darker);
  border: 1px solid var(--color-neutral--neutral-darker);
  border-radius: var(--border--radius--8);
  color: var(--color-neutral--neutral-lightest);
  font-family: var(--font-family--button);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}

.contact-form__submit:hover { background: var(--color-brand--brand-base); border-color: var(--color-brand--brand-base); }

.contact-form__submit:focus-visible {
  outline: 2px solid var(--color-neutral--neutral-darker);
  outline-offset: 2px;
}

.contact-form__submit[disabled] { opacity: .6; cursor: progress; }

.contact-form__error {
  margin: 0;
  padding: .75rem 1rem;
  background: var(--color-status--error-light);
  border: 1px solid var(--color-status--error);
  border-radius: var(--border--radius--8);
  color: var(--color-status--error);
  font-size: 1rem;
  line-height: 1.5;
}

.contact-form__error a { color: inherit; }

.contact-form__success {
  padding: 2rem;
  background: var(--color-neutral--neutral-lightest);
  border: 1px solid #021b4333;
  border-radius: var(--border--radius--8);
}

.contact-form__success:focus { outline: none; }

.contact-form__success h3 {
  margin: 0 0 .5rem;
  font-family: var(--font-family--heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

.contact-form__success p {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Behind the Badge — video cards (Webflow lightbox opens the Vimeo video)
   -------------------------------------------------------------------------- */

.btb-videos {
  background-color: var(--color-neutral--neutral-darkest);
  color: var(--color-neutral--neutral-lightest);
  padding-top: var(--section-pad-md);
  padding-bottom: var(--section-pad-md);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.video-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem;
  background-color: var(--color-neutral--neutral-darker);
  border: 1px solid var(--border-inverse-secondary);
  border-radius: var(--border--radius--4);
}

.video-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1; /* Figma: 296 x 296 */
  overflow: hidden;
  border: 1px solid var(--border-inverse-secondary);
  border-radius: var(--border--radius--2);
}

.video-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4rem;
  height: 4rem;
  transform: translate(-50%, -50%);
}

.video-card__media:hover .video-card__img { transform: scale(1.04); }

.video-card__body {
  container-type: inline-size;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.video-card__name {
  margin: 0;
  font-family: var(--font-family--heading);
  font-weight: 700;
  font-size: var(--font-size--heading--h3);
  font-size: min(var(--font-size--heading--h3), 20cqi); /* shrink to fit narrow cards (BugHerd #10) */
  line-height: .9;
  text-transform: uppercase;
  text-wrap: balance;
}

@media (prefers-reduced-motion: reduce) {
  .video-card__img { transition: none; }
  .video-card__media:hover .video-card__img { transform: none; }
}

/* --------------------------------------------------------------------------
   Apply — FAQ accordion (native <details>, no script)
   -------------------------------------------------------------------------- */

.apply-faq {
  background-color: var(--color-neutral--neutral-lighter);
  color: var(--color-neutral--neutral-darkest);
  padding-top: var(--section-pad-md);
}

.apply-faq__row {
  display: grid;
  grid-template-columns: 26.25rem minmax(0, 1fr); /* 420 + fluid, per Figma */
  gap: 2.5rem;
  align-items: start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #021b4366;
}

/* FAQ heading + intro stay in view while the questions scroll (BugHerd #24).
   The offset follows the sticky nav: it slides up when the nav hides. */
@media screen and (min-width: 992px) {
  .apply-faq__intro {
    position: sticky;
    top: calc(var(--nav-offset, 72px) + 2rem);
    align-self: start;
    transition: top .3s ease;
  }
}

.apply-faq__intro p {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.faq-item {
  background-color: var(--color-neutral--neutral-lightest);
  border: 1px solid #021b4333;
  border-radius: var(--border--radius--4);
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.5;
  text-wrap: pretty;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary span { flex: 1; }

.faq-item summary img {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}

/* .is-closing is set by js/site.js while the close animation runs (the item
   stays [open] until it finishes), so the chevron turns back right away. */
.faq-item[open]:not(.is-closing) summary img { transform: rotate(180deg); }

.faq-item summary:focus-visible {
  outline: 2px solid var(--color-neutral--neutral-darker);
  outline-offset: 2px;
}

.faq-item__answer {
  margin: 0;
  padding: 0 1.5rem 1.5rem;
  font-size: 1.125rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.faq-item__answer a { color: var(--color-neutral--neutral-darker); }

@media (prefers-reduced-motion: reduce) {
  .faq-item summary img { transition: none; }
}

/* --------------------------------------------------------------------------
   Barbells to Badges (barbells-to-badges.html). Builds on the shared page
   hero, media split, perk panel, home-why and recruiter contact components;
   this page's breakpoints live here rather than in the blocks below.
   -------------------------------------------------------------------------- */

/* Navy behind the photo while it loads, so the white and yellow copy never
   sits on the page's light background */
.page-hero.is-end { background-color: var(--color-neutral--neutral-darkest); }

/* Hero: copy sits on the right half (Figma: 660px column, right-aligned) */
.page-hero.is-end .page-hero__content {
  max-width: 41.25rem;
  margin-left: auto;
}

.page-hero__content .page-hero__eyebrow {
  font-family: var(--font-family--button);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
}

.page-hero.is-end .page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Media split with the photo on the left and left-aligned copy */
.media-split__content.is-start {
  align-items: flex-start;
  text-align: left;
}

.media-split.is-reverse .reveal--side { transform: translateX(-2rem); }

/* Stacked, the copy is shorter than the 518px fleur, so it runs past the
   copy; the hero above and the photo below sit on top of it (BugHerd #60) */
.page-hero.is-end { z-index: 1; }

.media-split.is-reverse .media-split__img {
  position: relative;
  z-index: 1;
}

/* Links to the How to Join form; hover follows the zaffre buttons */
.media-split__callout {
  margin: 0;
  padding: .5rem 1rem;
  background-color: var(--color-brand--brand-base);
  color: var(--color-neutral--neutral-lightest);
  font-family: var(--font-family--heading);
  font-weight: 700;
  font-size: var(--font-size--heading--h4);
  line-height: 1.1;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .2s, color .2s;
}

.media-split__callout:hover {
  background-color: var(--color-neutral--neutral-darker);
  color: var(--color--highlight--brand-base);
}

.media-split__callout:focus-visible {
  outline: 2px solid var(--color-neutral--neutral-darker);
  outline-offset: 2px;
}

/* What we offer: heading beside the perk panel */
.b2b-offer {
  position: relative;
  background-color: var(--color-neutral--neutral-darker);
  color: var(--color-neutral--neutral-lightest);
  padding-top: var(--section-pad-lg);
  padding-bottom: var(--section-pad-lg);
}

.b2b-offer__row {
  display: grid;
  grid-template-columns: fit-content(100%) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

/* Perk cells with a title and a sentence, left-aligned (Figma: 24px inset
   inside the 2px cell border plus 1px) */
.perk-grid.is-detailed .perk-grid__item {
  align-items: flex-start;
  justify-content: flex-start;
  padding: 1.5625rem;
  text-align: left;
}

.perk-grid__title {
  margin: 0;
  font: inherit;
  overflow-wrap: break-word;
}

/* Beside the heading, three columns only fit once "Encouragement" does
   (~1320px); below that the panel drops to two */
@media screen and (max-width: 1319px) {
  .perk-grid.is-3col.is-detailed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.perk-grid__text {
  margin: 0;
  font-weight: 400;
  font-size: .875rem;
  line-height: 1.5;
  text-transform: none;
  text-wrap: pretty;
}

/* Who can participate: home-why's gradient and skyline, centred intro */
.b2b-who {
  padding-top: var(--section-pad-lg);
  padding-bottom: var(--section-pad-lg);
}

.b2b-who .home-why__bg { height: auto; aspect-ratio: 1440 / 628; }

.b2b-who__intro {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 5rem;
  text-align: center;
}

.b2b-who__intro p {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.b2b-who__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.b2b-who__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  margin: 0;
  padding: 2.5rem;
  background-color: var(--color-neutral--neutral-darkest);
  border-radius: var(--border--radius--8);
  text-align: center;
}

.b2b-who__card img { width: 3rem; height: 3rem; }

.b2b-who__card p {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.5;
  text-wrap: pretty;
}

/* Mission: full-bleed photo, copy anchored to the bottom */
.b2b-mission {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 51.25rem;
  padding-top: var(--section-pad-md);
  padding-bottom: var(--section-pad-md);
  background-color: var(--color-neutral--neutral-darkest); /* behind the photo while it loads */
  color: var(--color-neutral--neutral-lightest);
  isolation: isolate;
  overflow: hidden;
}

.b2b-mission__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.b2b-mission::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(180deg, #021b431a, var(--color-neutral--neutral-darkest));
  opacity: .8;
}

.b2b-mission__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 80rem;
  margin: 0 auto;
  text-align: center;
}

.b2b-mission__content .heading-split { line-height: .9; }

.b2b-mission__content p {
  max-width: 48rem;
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.5;
  text-wrap: pretty;
}

/* How to join: contact block under a rule, form heading */
.b2b-join__contact {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-neutral--neutral-darkest);
}

.b2b-join__subheading {
  margin: 0;
  font-family: var(--font-family--heading);
  font-weight: 700;
  font-size: var(--font-size--heading--h4);
  line-height: 1.1;
  text-transform: uppercase;
}

.b2b-join__subheading.is-form { margin-bottom: 1.25rem; }

/* Compact form spec (Figma: 14px labels, 4px to the field, 20px between) */
.contact-form.is-compact { gap: 1.25rem; }

.contact-form.is-compact .contact-form__field { gap: .25rem; }

.contact-form.is-compact label {
  font-size: .875rem;
  font-weight: 400;
}

.contact-form.is-compact .contact-form__req { color: inherit; }

.contact-form.is-compact ::placeholder {
  color: #021b4380;
  opacity: 1;
}

.contact-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

@media screen and (max-width: 991px) {
  .page-hero.is-end .page-hero__content { margin-left: 0; }

  /* The copy wraps down over the officers' faces; a deeper wash behind it
     keeps the white text legible (BugHerd #61). Desktop keeps Figma's. */
  .b2b-mission::before {
    background-image: linear-gradient(180deg, #021b431a 0%, #021b4366 35%, #021b43d9 65%, var(--color-neutral--neutral-darkest) 100%);
    opacity: 1;
  }

  .b2b-offer__row { grid-template-columns: 1fr; }

  .b2b-who__intro { margin-bottom: 3rem; }

  .b2b-who__grid { gap: 1.5rem; }

  .b2b-who__card { padding: 2rem; }

  .b2b-who__card p { font-size: 1.5rem; }

  .b2b-mission { min-height: 40rem; }
}

@media screen and (max-width: 767px) {
  .media-split__callout { font-size: 1.5rem; }

  .b2b-who__intro p { font-size: 1.25rem; }

  .b2b-who__grid { grid-template-columns: 1fr; }

  .b2b-who__card p { font-size: 1.25rem; }

  .b2b-mission { min-height: 34rem; }

  .b2b-join__subheading { font-size: 1.75rem; }
}

@media screen and (max-width: 479px) {
  .page-hero.is-end .page-hero__actions .button { width: 100%; }

  .perk-grid.is-3col.is-detailed { grid-template-columns: 1fr; }

  .perk-grid.is-detailed .perk-grid__item {
    padding: 1.25rem;
    font-size: 1.25rem;
  }

  .b2b-who__card { padding: 1.5rem; }

  .contact-form__row { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Legal pages (accessibility statement, report an issue): original Webflow
   content inside the refreshed nav and footer
   -------------------------------------------------------------------------- */

/* .section.hero (Webflow) zeroes the padding, so match its specificity */
.section.hero.legal-page {
  padding-top: var(--section-pad-sm);
  padding-bottom: var(--section-pad-md);
}

.legal-page > .w-container {
  box-sizing: border-box;
  max-width: calc(940px + (var(--page-pad) * 2));
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}

/* Report an issue: a narrower column so the form isn't stretched (BugHerd #12) */
.legal-page.is-narrow > .w-container {
  max-width: calc(720px + (var(--page-pad) * 2));
}

/* Webflow's 20px phone inset on the form doubled up with the page gutter */
.legal-page .mobile-ui {
  padding-left: 0;
  padding-right: 0;
}

/* --------------------------------------------------------------------------
   Small desktop / tablet landscape (992-1199px)
   -------------------------------------------------------------------------- */

/* The desktop nav never wraps; between 992 and 1199 it tightens so the links
   and Apply Now fit on one line above the hamburger breakpoint (BugHerd #7). */
@media screen and (min-width: 992px) {
  .nav-menu-list .nav-link,
  .header-button-wrapper .button { white-space: nowrap; }
}

@media screen and (min-width: 992px) and (max-width: 1199px) {
  .nav-menu-list { gap: 1.25rem; }
  .nav-menu-list .nav-link { font-size: .9375rem; }
  .navbar .w-nav-brand svg { width: 140px; }
  .header-button-wrapper .button { padding-left: 1rem; padding-right: 1rem; }

  /* Narrow perks card: smaller labels so cells stay near 120px (BugHerd #8) */
  .home-perks__content { padding: 2rem; }
  .perk-grid__item { font-size: 1.25rem; }
}

@media screen and (max-width: 991px) {
  :root {
    --font-size--heading--display: 5rem;
    --font-size--heading--h1: 4rem;
    --font-size--heading--h3: 2.5rem;
    --spacing--padding-section--large: 5rem;
    --spacing--padding-section--main: 4rem;
  }

  /* Mobile menu (Webflow overlay) */
  .nav-menu-list {
    gap: 0;
    padding: 1.5rem var(--page-pad) 2rem;
  }

  .nav-menu-list .nav-link {
    padding: .75rem 0;
    font-size: 1.125rem;
  }

  .header-button-wrapper {
    width: 100%;
    margin-top: 1rem;
  }

  .header-button-wrapper .button { width: 100%; }

  .open-positions__intro,
  .home-why__intro {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .home-why__intro { margin-bottom: 3rem; }

  .job-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .home-perks__card { grid-template-columns: 1fr; }

  .home-perks__media { height: 26rem; }

  /* Stacked card: crop from the top so the faces sit below the badge (BugHerd #25/#28) */
  .home-perks__img { object-position: 50% 0%; }

  .home-perks__badge { top: -60px; }

  .media-split__row { grid-template-columns: 1fr; }

  .page-hero { min-height: 28rem; }

  /* Text sits over the photo's subjects at narrower widths; darken the text
     side so the copy stays readable (desktop keeps Figma's flat 25%). */
  .page-hero::before {
    background-image: linear-gradient(90deg, #021b43b3 0%, #021b4366 60%, #021b4326 100%);
    background-color: transparent;
  }

  .benefits-overview__intro {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .perk-grid.is-3col { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .benefits-support__row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .split-hero__row { grid-template-columns: 1fr; }

  .split-hero__content { order: -1; }

  .split-hero__media { height: 24rem; }

  .process-steps__row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .process-steps__heading {
    position: static;
    max-width: none;
    font-size: 3.5rem;
  }

  .check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .recruiter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .recruiter-team__intro { margin-bottom: 3rem; }

  .recruiter-contact__row { grid-template-columns: 1fr; }

  .apply-faq__row { grid-template-columns: 1fr; gap: 2rem; }

  .career-tree__lines { display: none; }

  .tree-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .tree-band > * { grid-column: auto; grid-row: auto; }

  .tree-band .tree-label { grid-column: 1 / -1; margin: 0; }

  .tree-band .tree-label.is-roles { margin-top: 1rem; }

  .tree-band .tree-card.is-rank { grid-column: 1 / -1; }

  .tree-card { min-height: 0; padding: 1rem .75rem; }

  .pat-hero { padding-top: 4rem; }

  .benefits-support__img {
    aspect-ratio: 16 / 10;
    object-position: 50% 25%;
  }

  .media-split__img {
    aspect-ratio: 16 / 10;
    order: 2;
  }

  .feature-card-grid { gap: 1.5rem; }

  .feature-card { padding: 2rem; }

  .cta-recruiter__card { grid-template-columns: 1fr; }

  .cta-recruiter__img { height: 22rem; }

  .cta-recruiter__media { min-height: 22rem; }

  .center-hero__content { gap: 2rem; }

  .cta-apply__row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }
}

@media screen and (max-width: 767px) {
  :root {
    --font-size--heading--display: 4rem;
    --font-size--heading--h1: 3.25rem;
    --font-size--heading--h3: 2.25rem;
    --spacing--padding-global--main: 1.5rem;
    --spacing--padding-section--large: 4.5rem;
    --spacing--padding-section--main: 3.5rem;
  }

  .decoration { font-size: .75rem; }

  .home-hero__content { gap: 2rem; }

  .home-hero,
  .center-hero { --scroll-line-h: 80px; }

  /* Smaller perks badge on phones so it stays clear of the officers (BugHerd #25/#28) */
  .home-perks__badge { top: -48px; width: 96px; height: 96px; }

  .feature-card-grid { grid-template-columns: 1fr; }

  .home-perks__content { padding: 2rem 1.5rem; }

  .perk-grid { grid-auto-rows: minmax(6.5rem, auto); }

  .perk-grid__item { font-size: 1.125rem; }

  .page-hero { min-height: 34rem; }

  .page-hero__content p { font-size: 1.125rem; }

  .benefit-list li { font-size: 1rem; }

  .split-hero__content p { font-size: 1.125rem; }

  .split-hero__media { height: 18rem; }

  .process-steps__heading { font-size: 3rem; }

  .step-list__item { gap: 1.25rem; }

  .step-list__title { font-size: 1.5rem; line-height: 1.25; }

  .step-list__content { padding-bottom: 2rem; }

  .step-list__content p,
  .doc-requirements__intro { font-size: 1.125rem; }

  .check-grid { grid-template-columns: 1fr; }

  .check-grid li { font-size: 1rem; }

  .recruiter-card { padding: 1rem; gap: 1rem; }

  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .video-card { gap: 1rem; padding: .75rem; }

  .recruiter-card__name { font-size: 1.125rem; }

  .recruiter-contact__heading { font-size: 3rem; }

  .recruiter-contact__lede { font-size: 1.125rem; }

  .faq-item summary { padding: 1rem 1.25rem; gap: 1rem; font-size: 1.125rem; }

  .faq-item__answer { padding: 0 1.25rem 1.25rem; font-size: 1rem; }

  .apply-faq__intro p { font-size: 1.125rem; }

  .cta-recruiter__text p.is-xl { font-size: 1.25rem; }

  .find-path__intro { font-size: 1.125rem; }

  .pat-hero__row .button { width: 100%; }

  .pat-hero__date { font-size: 1.5rem; }

  .pat-scoring__intro { font-size: 1.125rem; }

  .score-table { font-size: 1rem; }

  .score-table thead th { font-size: 1rem; }

  .cta-recruiter__content {
    padding: 2rem 1.5rem;
    gap: 2rem;
  }

  .cta-recruiter__lede { font-size: 1.25rem; }

  .contact-list { font-size: 1.125rem; }

  .site-footer__grid { grid-template-columns: 1fr; }

  .site-footer__text { font-size: 1.125rem; }

  .site-footer__legal-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__powered { font-size: 1.125rem; }

  /* Keep "The Five Events" together and centered on phones (BugHerd #11) */
  .pat-events__heading { justify-content: center; gap: .25em; }
}

@media screen and (max-width: 479px) {
  :root {
    --font-size--heading--display: 3.5rem;
    --font-size--heading--h1: 2.75rem;
    --font-size--heading--h3: 2rem;
    --spacing--padding-global--main: 1rem;
  }

  .button { padding-left: 1rem; padding-right: 1rem; }

  .button.is-large {
    padding: calc(1rem + .1em) 1.5rem calc(1rem - .1em);
    font-size: 1.125rem;
  }

  .decoration { display: none; }

  .home-hero__scroll { display: none; }

  .job-card-grid { grid-template-columns: 1fr; }

  .job-card__img { height: 12rem; }

  .home-perks__media { height: 20rem; }

  .perk-panel { padding: .5rem; }

  .tree-band { grid-template-columns: 1fr; }

  .recruiter-grid { grid-template-columns: 1fr; }

  .video-grid { grid-template-columns: 1fr; }

  .pat-events__heading { font-size: 3rem; }

  .cta-recruiter__points { grid-template-columns: 1fr; gap: 1rem; }

  .cta-recruiter__text p.is-large { font-size: 1.25rem; }

  .value-list li { gap: 1rem; padding: 1rem; }

  .value-list img { width: 2.5rem; height: 2.5rem; }

  .center-hero__text p { font-size: 1.125rem; }

  .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }

  .event-card { gap: 1rem; padding: 1rem .75rem; }

  .event-card__title { font-size: 1.125rem; }

  .event-card__media { height: 6rem; }

  .event-card__play { width: 3rem; height: 3rem; }

  .split-hero__actions .button { width: 100%; }

  .button.is-wide { padding-left: 1.5rem; padding-right: 1.5rem; }

  .perk-grid__item {
    padding: .75rem .5rem;
    font-size: 1rem;
  }

  .feature-card { padding: 1.5rem; }

  .cta-recruiter__img { height: 16rem; }

  .cta-recruiter__media { min-height: 16rem; }
}

/* Back-to-top: js/site.js reveals it once the visitor scrolls past the hero */
/* The icon is a round black ring; Webflow's yellow fill was a rounded square
   (radius 20px on 50px), so yellow corners poked out past the ring. Clip the
   fill to a circle just inside the ring so the black border is the edge. */
.back-to-top {
  border-radius: 50%;
  background: url("../images/back-top-button.png") center / 100% 100% no-repeat,
    radial-gradient(circle closest-side, #e9fb43 calc(100% - 2px), transparent calc(100% - 1px));
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

/* --------------------------------------------------------------------------
   Video modal (behind-the-badge.html) — replaces the Webflow lightbox.
   Built and opened by js/site.js.
   -------------------------------------------------------------------------- */

.video-modal {
  width: min(940px, calc(100vw - 2rem));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.video-modal::backdrop {
  background: rgba(2, 27, 67, .9);
}

html.video-modal-open { overflow: hidden; }

.video-modal__frame {
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-modal__frame iframe,
.video-modal__frame video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-modal__close {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: .5rem;
  padding: .25rem;
  background: none;
  border: 0;
  color: var(--color-neutral--neutral-lightest);
  line-height: 0;
  cursor: pointer;
}

.video-modal__close:hover { color: var(--color--highlight--brand-base); }

.video-modal__close:focus-visible {
  outline: 2px solid var(--color--highlight--brand-base);
  outline-offset: 2px;
}

.video-modal[open] { animation: video-modal-in .2s ease-out; }

/* Scale only, no fade: if a throttled tab pauses the animation, the video still shows */
@keyframes video-modal-in {
  from { transform: scale(.97); }
  to { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .video-modal[open] { animation: none; }
}

/* --------------------------------------------------------------------------
   Scroll-in animations (classes added by js/site.js to below-the-fold
   content only, and removed again once the element has arrived)
   -------------------------------------------------------------------------- */

/* Hidden state applies instantly (no transition here, or adding .reveal would
   animate the content out on load); only the arrival is transitioned. */
.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
}

.reveal--side { transform: translateX(2rem); }

/* The side slide starts 2rem to the right; clip it so the page never widens */
.media-split { overflow-x: clip; }

.reveal.is-revealed {
  opacity: 1;
  transform: none;
  transition: opacity .6s ease-out, transform .6s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

@media print {
  .reveal { opacity: 1; transform: none; }
}
