/* ==========================================================================
   Site stylesheet
   --------------------------------------------------------------------------
   1.  Design tokens
   2.  Base
   3.  Layout
   4.  Header and navigation
   5.  Buttons, links and badges
   6.  Cards, lists and media
   7.  Page sections
   8.  Forms
   9.  Job listings and job dialog
   10. Footer
   11. Motion
   12. Utilities and print
   ========================================================================== */


/* 1. Design tokens
   ========================================================================== */

:root {
  --navy-950: #071a33;
  --navy-900: #0b2240;
  --navy-800: #12305a;
  --navy-700: #1c406f;

  --teal-800: #085a56;
  --teal-700: #0b6e69;
  --teal-600: #0e857e;
  --teal-400: #3fbfb3;
  --teal-300: #74d6cb;
  --teal-100: #d6efec;
  --teal-50: #eef8f7;

  --gray-50: #f6f8fa;
  --gray-100: #eef2f5;
  --gray-200: #dfe6ec;
  --gray-300: #c9d3dc;
  --gray-400: #a3b1bf;
  --white: #fff;

  --ink: var(--navy-900);
  --text: #33465e;
  --muted: #586a80;
  --on-navy: #c9d6e5;
  --on-navy-muted: #9fb2c8;

  --danger: #b42318;
  --danger-bg: #fef3f2;
  --success-bg: #ecf8f5;

  /* Used to mark sample content and unfinished placeholders */
  --edit-bg: #fff6e0;
  --edit-border: #d9a441;
  --edit-text: #6b4100;

  /* Matches the light wall in the home hero photo */
  --hero-wall: linear-gradient(180deg, #dce3eb 0%, #e2ebf5 7%, #e4eef8 20%, #e6f0fa 40%, #e7f1fa 78%, #f1eff2 100%);

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgb(11 34 64 / 0.05), 0 2px 6px rgb(11 34 64 / 0.05);
  --shadow: 0 2px 6px rgb(11 34 64 / 0.05), 0 18px 40px -20px rgb(11 34 64 / 0.3);
  --shadow-lg: 0 30px 70px -24px rgb(11 34 64 / 0.45);

  --container: 1176px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --section-space: clamp(4rem, 2.75rem + 5vw, 7.5rem);
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --focus: var(--teal-700);
}


/* 2. Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
}

h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.022em;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.3;
}

p,
ul,
ol,
dl {
  margin: 0 0 1rem;
}

p {
  text-wrap: pretty;
}

:where(p, ul, ol, dl):last-child {
  margin-bottom: 0;
}

a {
  color: var(--teal-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--teal-800);
}

strong {
  color: var(--ink);
  font-weight: 650;
}

address {
  font-style: normal;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

main:focus {
  outline: none;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--teal-100);
  color: var(--navy-900);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* 3. Layout
   ========================================================================== */

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-space);
}

.section--tint {
  background: var(--gray-50);
}

.section--flush-top {
  padding-top: 0;
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.25rem, 1.75rem + 2vw, 3.5rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .eyebrow {
  justify-content: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-700);
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  flex: none;
  border-radius: 2px;
  background: currentColor;
}

.lead {
  font-size: clamp(1.125rem, 1.06rem + 0.3vw, 1.3125rem);
  line-height: 1.6;
  color: var(--text);
}

.split {
  display: grid;
  gap: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  align-items: center;
}

.split--top {
  align-items: start;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split--reverse > :last-child {
    order: -1;
  }
}

.grid {
  display: grid;
  gap: clamp(1.25rem, 0.9rem + 1.2vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}


/* 4. Header and navigation
   ========================================================================== */

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--navy-900);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
  color: var(--white);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--gray-200), 0 10px 30px -18px rgb(11 34 64 / 0.35);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.brand__logo {
  width: auto;
  height: 40px;
}

@media (max-width: 479.98px) {
  .site-header .brand__logo {
    height: 34px;
  }
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  position: relative;
  display: block;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav__link:hover {
  color: var(--teal-700);
  background: var(--teal-50);
}

.site-nav__link[aria-current="page"] {
  color: var(--teal-700);
}

.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 0.875rem;
  bottom: 0.2rem;
  left: 0.875rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.site-nav__cta[aria-current="page"] {
  box-shadow: 0 0 0 3px var(--teal-100);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--teal-700);
  color: var(--teal-700);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__open,
.nav-toggle[aria-expanded="false"] .nav-toggle__close {
  display: none;
}

@media (max-width: 959.98px) {
  .js .nav-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 1rem var(--gutter) 1.5rem;
    border-top: 1px solid var(--gray-200);
    background: var(--white);
    box-shadow: 0 24px 40px -24px rgb(11 34 64 / 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transition: opacity 0.25s ease, transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }

  .js .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s ease, transform 0.25s var(--ease), visibility 0s;
  }

  .js .site-nav__list {
    flex-direction: column;
  }

  .js .site-nav__link {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 1.0625rem;
  }

  .js .site-nav__link[aria-current="page"] {
    background: var(--teal-50);
  }

  .js .site-nav__link[aria-current="page"]::after {
    top: 0.75rem;
    right: auto;
    bottom: 0.75rem;
    left: 0;
    width: 3px;
    height: auto;
  }

  .js .site-nav__cta {
    width: 100%;
  }
}


/* 5. Buttons, links and badges
   ========================================================================== */

.btn {
  --btn-bg: var(--teal-700);
  --btn-fg: var(--white);
  --btn-border: var(--btn-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border: 2px solid var(--btn-border);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.25s ease, transform 0.25s var(--ease);
}

.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -12px rgb(11 34 64 / 0.55);
}

.btn:active {
  transform: none;
  box-shadow: none;
}

.btn:disabled {
  cursor: progress;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

.btn--primary:hover {
  --btn-bg: var(--teal-800);
}

.btn--secondary {
  --btn-bg: transparent;
  --btn-fg: var(--navy-900);
  --btn-border: var(--navy-900);
}

.btn--secondary:hover {
  --btn-bg: var(--navy-900);
  --btn-fg: var(--white);
  --btn-border: var(--navy-900);
}

.btn--light {
  --btn-bg: var(--white);
  --btn-fg: var(--navy-900);
}

.btn--light:hover {
  --btn-bg: var(--teal-100);
  --btn-border: var(--teal-100);
}

.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  --btn-border: rgb(255 255 255 / 0.55);
}

.btn--outline-light:hover {
  --btn-bg: rgb(255 255 255 / 0.1);
  --btn-border: var(--white);
}

.btn--sm {
  min-height: 42px;
  padding: 0.5rem 1.15rem;
  font-size: 0.95rem;
}

.btn .icon {
  width: 1.1em;
  height: 1.1em;
  transition: transform 0.25s var(--ease);
}

.btn:hover .icon--arrow {
  transform: translateX(3px);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--teal-700);
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.text-link .icon {
  width: 1.05em;
  height: 1.05em;
  transition: transform 0.25s var(--ease);
}

.text-link:hover .icon {
  transform: translateX(3px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--teal-50);
  color: var(--teal-800);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge--sample {
  border: 1px dashed var(--edit-border);
  background: var(--edit-bg);
  color: var(--edit-text);
}

.section-badge {
  margin: -0.25rem 0 1.25rem;
}

/* Placeholders that still need real company information */
main .is-placeholder,
.job-dialog .is-placeholder {
  border-radius: 4px;
  background: var(--edit-bg);
  box-shadow: inset 0 -1px 0 var(--edit-border);
  color: var(--edit-text);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

main :is(p, div).is-placeholder {
  padding: 0.85rem 1rem;
  border: 1px dashed var(--edit-border);
  box-shadow: none;
  font-size: 0.975rem;
}


/* 6. Cards, lists and media
   ========================================================================== */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.35s ease;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card--link:hover,
.card--link:focus-within {
  transform: translateY(-4px);
  border-color: var(--teal-100);
  box-shadow: var(--shadow);
}

.card__link {
  color: inherit;
  text-decoration: none;
}

.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.card__link:hover {
  color: inherit;
}

.card__link:focus-visible {
  outline: none;
}

.card__link:focus-visible::after {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1.25rem;
  color: var(--teal-700);
  font-weight: 600;
}

.card__more .icon {
  width: 1.05em;
  height: 1.05em;
  transition: transform 0.25s var(--ease);
}

.card--link:hover .card__more .icon {
  transform: translateX(3px);
}

.icon-badge {
  display: grid;
  width: 52px;
  height: 52px;
  flex: none;
  place-items: center;
  margin-bottom: 1.25rem;
  border-radius: 14px;
  background: var(--teal-50);
  color: var(--teal-700);
}

.icon-badge .icon {
  width: 26px;
  height: 26px;
}

.icon-badge--sm {
  width: 44px;
  height: 44px;
  margin-bottom: 0;
  border-radius: 12px;
}

.icon-badge--sm .icon {
  width: 22px;
  height: 22px;
}

.check-list {
  display: grid;
  gap: 0.9rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.check-list:last-child {
  margin-bottom: 0;
}

.check-list li {
  position: relative;
  padding-left: 2.1rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.15em;
  left: 0;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--teal-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b6e69' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 0.85rem no-repeat;
}

@media (min-width: 700px) {
  .check-list--2col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
  }
}

.bullet-list {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding-left: 1.25rem;
}

.bullet-list li::marker {
  color: var(--teal-700);
}

.steps {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps > li {
  position: relative;
  padding: 1.4rem 1.5rem 1.4rem 4.75rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  counter-increment: step;
}

.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 1.35rem;
  left: 1.5rem;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
}

.lead + .steps {
  margin-top: 2rem;
}

.steps h3 {
  margin-bottom: 0.3rem;
  font-size: 1.125rem;
}

.steps p {
  font-size: 1rem;
}

@media (min-width: 1000px) {
  .steps--grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .steps--grid > li {
    padding: 1.75rem 1.5rem;
  }

  .steps--grid > li::before {
    position: static;
    margin-bottom: 1.25rem;
  }
}

.media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--gray-100);
  box-shadow: var(--shadow);
}

.media img {
  width: 100%;
  height: auto;
}

/* Crop to 4:3 only for single-person photos; --pos keeps the person in frame */
.media--4x3 img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
}

.media--accent {
  box-shadow: 14px 14px 0 0 var(--teal-100), var(--shadow);
}

.split--reverse .media--accent {
  box-shadow: -14px 14px 0 0 var(--teal-100), var(--shadow);
}


/* 7. Page sections
   ========================================================================== */

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

.home-hero {
  position: relative;
  overflow: hidden;
  background: var(--hero-wall);
}

.home-hero__layout {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4rem) clamp(2rem, 1rem + 4vw, 3.5rem);
}

.home-hero__content {
  max-width: 36rem;
}

.home-hero h1 {
  margin-bottom: 1.25rem;
}

.home-hero .lead {
  margin-bottom: 2rem;
}

/* Solid fill keeps the outline button readable over the photo's softened edge */
.home-hero .btn--secondary:not(:hover) {
  --btn-bg: var(--white);
}

.home-hero__media {
  margin: clamp(2rem, 1.5rem + 2vw, 3rem) 0 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.home-hero__media img {
  width: 100%;
}

/* Phones: crop only the empty wall on the left so both people stay in frame */
@media (max-width: 639.98px) {
  .home-hero__media img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: 100% 50%;
  }
}

/* Large screens: headline sits in the empty light area to the left of the people.
   The photo keeps its full proportions, so nobody is cropped, and its height is
   capped so the 30rem text column stays left of the point where the empty wall
   ends (about 25% across the current photo). If a new photo has a wider or
   narrower empty area, adjust the two vw formulas below. */
@media (min-width: 1200px) {
  .home-hero {
    --hero-h: min(720px, calc(37.5vw + 60px), calc(75vw - 410px));
    display: flex;
    align-items: center;
    min-height: var(--hero-h);
  }

  .home-hero__layout {
    padding-block: 3rem;
  }

  .home-hero__content {
    position: relative;
    z-index: 1;
    max-width: 30rem;
  }

  .home-hero h1 {
    font-size: clamp(2.75rem, 0.5rem + 3.2vw, 3.5rem);
  }

  .home-hero__media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    aspect-ratio: 1672 / 941;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    /* Soft edge over the empty wall only, so the photo blends into the background */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%);
    mask-image: linear-gradient(90deg, transparent 0, #000 16%);
  }

  .home-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* Inner page heroes -------------------------------------------------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(3rem, 2rem + 3.5vw, 5rem);
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.page-hero--plain::before {
  content: "";
  position: absolute;
  top: -12rem;
  right: -10rem;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--teal-50) 0%, rgb(238 248 247 / 0) 70%);
  pointer-events: none;
}

.page-hero > .container {
  position: relative;
}

.page-hero h1 {
  max-width: 22ch;
}

.page-hero .lead {
  max-width: 44rem;
}

.page-hero .lead + p {
  max-width: 44rem;
  margin-top: 1rem;
}

.page-hero .btn-row {
  margin-top: 2rem;
}

.jump-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}

.jump-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 1.05rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.jump-nav a:hover {
  border-color: var(--teal-700);
  background: var(--teal-50);
  color: var(--teal-800);
}

.jump-nav .icon {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--teal-700);
}

/* Home ---------------------------------------------------------------------- */

.intro {
  row-gap: 1.25rem;
  margin-bottom: clamp(3rem, 2rem + 3vw, 4.5rem);
}

.intro h2 {
  max-width: 18ch;
}

.principle {
  padding-top: 1.75rem;
  border-top: 2px solid var(--gray-200);
}

.principle h3 {
  margin-bottom: 0.5rem;
}

.principle p {
  font-size: 1rem;
}

.careers-teaser {
  display: grid;
  gap: 2rem;
  padding: clamp(2rem, 1.25rem + 3vw, 3.5rem);
  border: 1px solid var(--teal-100);
  border-radius: var(--radius-lg);
  background: var(--teal-50);
}

.careers-teaser h2 {
  margin-bottom: 0.75rem;
}

.careers-teaser p {
  max-width: 40rem;
}

@media (min-width: 900px) {
  .careers-teaser {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

.cta-band {
  position: relative;
  display: grid;
  gap: 2rem;
  overflow: hidden;
  padding: clamp(2.25rem, 1.5rem + 3.5vw, 4.5rem);
  border-radius: var(--radius-lg);
  background: var(--navy-900);
  color: var(--on-navy);
}

.cta-band::after {
  content: "";
  position: absolute;
  top: -7rem;
  right: -6rem;
  width: 20rem;
  height: 20rem;
  border: 3rem solid rgb(63 191 179 / 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  margin-bottom: 0.75rem;
  color: var(--white);
}

.cta-band p {
  max-width: 38rem;
}

.cta-band a:not(.btn) {
  color: var(--white);
}

.cta-band .is-placeholder {
  background: rgb(255 246 224 / 0.14);
  box-shadow: inset 0 -1px 0 var(--edit-border);
  color: var(--white);
}

@media (min-width: 900px) {
  .cta-band {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

/* About --------------------------------------------------------------------- */

.mission {
  max-width: 54rem;
  margin-inline: auto;
  text-align: center;
}

.mission .eyebrow {
  justify-content: center;
}

.mission__statement {
  margin-bottom: 1.5rem;
  color: var(--ink);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.mission__text {
  max-width: 40rem;
  margin-inline: auto;
}

.expect {
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  padding: clamp(1.75rem, 1.25rem + 2vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--teal-50);
}

.expect h3 {
  margin-bottom: 1.25rem;
}

.next-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding: clamp(2rem, 1.5rem + 2vw, 3rem);
  border-radius: var(--radius-lg);
}

.next-card h3 {
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
}

.next-card .btn {
  margin-top: auto;
}

.next-card p {
  margin-bottom: 1.75rem;
}

.next-card--navy {
  background: var(--navy-900);
  color: var(--on-navy);
}

.next-card--navy h3 {
  color: var(--white);
}

.next-card--teal {
  border: 1px solid var(--teal-100);
  background: var(--teal-50);
}

/* Services ------------------------------------------------------------------ */

.service__label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.service__label .icon-badge {
  margin-bottom: 0;
}

.service__number {
  color: var(--teal-700);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.service h2 {
  margin-bottom: 1rem;
}

.service .lead {
  margin-bottom: 1.75rem;
}

.service__subhead {
  margin: 0 0 1rem;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.service__subhead + .check-list {
  margin-bottom: 1.75rem;
}

.service__note {
  padding-top: 1.25rem;
  border-top: 1px solid var(--gray-200);
  font-size: 1rem;
}

.service__note + .service__note {
  padding-top: 0;
  border-top: 0;
}

.service__cta {
  margin-top: 1.75rem;
}

.service-columns {
  display: grid;
  gap: 0.5rem 2rem;
}

/* Careers ------------------------------------------------------------------- */

.careers-hero__intro {
  display: grid;
  gap: 1.5rem 4rem;
  margin-bottom: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
}

.careers-hero__intro h1 {
  margin-bottom: 0;
}

.careers-hero__intro .btn-row {
  margin-top: 1.75rem;
}

@media (min-width: 900px) {
  .careers-hero__intro {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
  }
}

.feature-list {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-list h3 {
  margin-bottom: 0.2rem;
  font-size: 1.0625rem;
}

.feature-list p {
  font-size: 1rem;
}

.benefit {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  height: 100%;
  padding: 1.35rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
}

.benefit h3 {
  margin-bottom: 0.25rem;
  font-size: 1.0625rem;
}

.benefit p {
  font-size: 0.975rem;
}

.sample-note {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  max-width: 46rem;
  margin: 0 0 2rem;
  padding: 0.9rem 1.1rem;
  border: 1px dashed var(--edit-border);
  border-radius: var(--radius);
  background: var(--edit-bg);
  color: var(--edit-text);
  font-size: 0.95rem;
}

.sample-note strong {
  color: inherit;
}

.sample-note .icon {
  margin-top: 0.15rem;
}

@media (min-width: 900px) {
  .sticky-media {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

.openings-footnote {
  margin-top: 2rem;
  color: var(--muted);
}

.apply-layout {
  display: grid;
  gap: clamp(2rem, 1.5rem + 3vw, 4rem);
  align-items: start;
}

@media (min-width: 960px) {
  .apply-layout {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  }
}

.apply-intro .check-list {
  margin-top: 1.75rem;
  font-size: 1rem;
}

/* Contact ------------------------------------------------------------------- */

.contact-layout {
  display: grid;
  gap: clamp(2rem, 1.5rem + 3vw, 4rem);
  align-items: start;
}

@media (min-width: 960px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }
}

.contact-details h2 {
  font-size: 1.5rem;
}

.contact-list {
  display: grid;
  gap: 1.5rem;
  margin: 0 0 2.25rem;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-list h3 {
  margin-bottom: 0.15rem;
  font-size: 1rem;
}

.contact-list address span {
  display: block;
}

.contact-box {
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--gray-50);
}

.contact-box + .contact-box {
  margin-top: 1.25rem;
}

.contact-box h3 {
  margin-bottom: 0.5rem;
  font-size: 1.0625rem;
}

.contact-box p,
.contact-box ol {
  font-size: 1rem;
}

.contact-box ol {
  display: grid;
  gap: 0.4rem;
  padding-left: 1.25rem;
}

.contact-box li::marker {
  color: var(--teal-700);
  font-weight: 700;
}


/* 8. Forms
   ========================================================================== */

.form-card {
  padding: clamp(1.5rem, 1rem + 2.5vw, 2.75rem);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-card > h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
}

.notice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 1.25rem 0 1.75rem;
  padding: 1rem 1.15rem;
  border: 1px dashed var(--edit-border);
  border-radius: var(--radius);
  background: var(--edit-bg);
  color: var(--edit-text);
  font-size: 0.95rem;
  line-height: 1.55;
}

.notice:first-child {
  margin-top: 0;
}

.notice strong {
  color: inherit;
}

.notice .icon {
  margin-top: 0.1rem;
}

.form {
  display: grid;
  gap: 1.4rem;
}

.form__intro {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.form__row {
  display: grid;
  gap: 1.4rem;
}

@media (min-width: 640px) {
  .form__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field {
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

.field__label {
  color: var(--ink);
  font-size: 0.975rem;
  font-weight: 600;
}

.field__optional {
  color: var(--muted);
  font-weight: 400;
}

.field__hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 0.95rem;
  border: 1.5px solid var(--gray-300);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input::placeholder,
.textarea::placeholder {
  color: #7a8899;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--gray-400);
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--teal-700);
  outline: 3px solid rgb(11 110 105 / 0.35);
  outline-offset: 1px;
}

.textarea {
  min-height: 9.5rem;
  resize: vertical;
}

.select {
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b2240' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 0.95rem center;
  background-repeat: no-repeat;
  background-size: 1.1rem;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

[aria-invalid="true"].input,
[aria-invalid="true"].select,
[aria-invalid="true"].textarea {
  border-color: var(--danger);
}

.field__error {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  margin: 0;
  color: var(--danger);
  font-size: 0.925rem;
  font-weight: 600;
  line-height: 1.45;
}

.field__error::before {
  content: "!";
  display: grid;
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  place-items: center;
  margin-top: 0.08rem;
  border-radius: 50%;
  background: var(--danger);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
}

.field__counter {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: right;
}

.checkbox {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--text);
  font-size: 0.975rem;
  cursor: pointer;
}

.checkbox input {
  width: 1.3rem;
  height: 1.3rem;
  flex: none;
  margin: 0.15rem 0 0;
  accent-color: var(--teal-700);
  cursor: pointer;
}

.checkbox input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Visually hidden spam trap; real visitors never see or reach it */
.form__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status:not(:empty) {
  padding: 1rem 1.15rem;
  border: 1px solid;
  border-radius: var(--radius);
  font-size: 0.975rem;
  line-height: 1.55;
}

.form-status:focus {
  outline: none;
}

.form-status:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.form-status p + p {
  margin-top: 0.4rem;
}

.form-status--demo {
  border-color: var(--edit-border);
  background: var(--edit-bg);
  color: var(--edit-text);
}

.form-status--demo strong {
  color: inherit;
}

.form-status--error {
  border-color: #f1b5ae;
  background: var(--danger-bg);
  color: var(--danger);
}

.form-status--error strong {
  color: inherit;
}

.form-status--success {
  border-color: var(--teal-300);
  background: var(--success-bg);
  color: var(--teal-800);
}

.form-status--success strong {
  color: inherit;
}


/* 9. Job listings and job dialog
   ========================================================================== */

.job-list {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 760px) {
  .job-list {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

.job-card {
  gap: 0.9rem;
}

.job-card:hover {
  border-color: var(--teal-100);
  box-shadow: var(--shadow);
}

.job-card__top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
}

.job-card__team {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.job-card__title {
  margin: 0.25rem 0 0;
  font-size: 1.375rem;
}

.job-card__summary {
  font-size: 1rem;
}

.job-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

.job-card__actions .btn {
  flex: 1 1 auto;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.95rem;
  list-style: none;
}

.job-meta li {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
}

.job-meta .icon {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--teal-700);
}

.job-meta .is-placeholder {
  padding: 0 0.2em;
}

.job-dialog {
  width: min(100% - 2rem, 780px);
  max-width: none;
  max-height: min(100% - 3rem, 920px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}

.job-dialog[open] {
  display: flex;
  flex-direction: column;
}

.job-dialog::backdrop {
  background: rgb(7 26 51 / 0.5);
}

.job-dialog__header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.5rem clamp(1.25rem, 1rem + 1.5vw, 2rem) 1.25rem;
  border-bottom: 1px solid var(--gray-200);
}

.job-dialog__header h2 {
  margin: 0.6rem 0 0.6rem;
  font-size: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
}

.job-dialog__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 1.5rem clamp(1.25rem, 1rem + 1.5vw, 2rem) 2rem;
  overscroll-behavior: contain;
}

.job-dialog__section + .job-dialog__section {
  margin-top: 1.75rem;
}

.job-dialog__section h3 {
  margin-bottom: 0.75rem;
  font-size: 1.0625rem;
}

.job-dialog__intro {
  font-size: 1.0625rem;
}

.job-dialog__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  padding: 1rem clamp(1.25rem, 1rem + 1.5vw, 2rem);
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.icon-btn {
  display: grid;
  width: 44px;
  height: 44px;
  flex: none;
  place-items: center;
  padding: 0;
  border: 1px solid var(--gray-300);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--ink);
  background: var(--gray-100);
}

.icon-btn .icon {
  width: 20px;
  height: 20px;
}

@media (max-width: 599.98px) {
  .job-dialog {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
  }

  .job-dialog__footer .btn {
    flex: 1 1 100%;
  }
}

html:has(.job-dialog[open]) {
  overflow: hidden;
}


/* 10. Footer
   ========================================================================== */

.site-footer {
  padding-top: clamp(3.5rem, 2.75rem + 3vw, 5rem);
  background: var(--navy-950);
  color: var(--on-navy-muted);
  font-size: 0.975rem;
  --focus: var(--teal-300);
}

.site-footer a {
  color: #e4ecf5;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--teal-300);
  text-decoration: underline;
}

.site-footer__grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  }
}

.brand--footer {
  margin-bottom: 1.25rem;
}

.brand--footer .brand__logo {
  height: 36px;
}

.site-footer__about p {
  max-width: 22rem;
}

.site-footer__title {
  margin-bottom: 1rem;
  color: var(--white);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer ul {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer address span,
.site-footer address a {
  display: block;
}

.site-footer address a {
  margin-bottom: 0.6rem;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  padding-block: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  font-size: 0.875rem;
}

.site-footer__bottom p {
  margin: 0;
}


/* 11. Motion
   ========================================================================== */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* Hero entrance */
  .home-hero__content > *,
  .page-hero .container > * {
    animation: fade-up 0.8s var(--ease) both;
  }

  .home-hero__content > :nth-child(2),
  .page-hero .container > :nth-child(2) {
    animation-delay: 0.08s;
  }

  .home-hero__content > :nth-child(3),
  .page-hero .container > :nth-child(3) {
    animation-delay: 0.16s;
  }

  .home-hero__content > :nth-child(n + 4),
  .page-hero .container > :nth-child(n + 4) {
    animation-delay: 0.24s;
  }

  .home-hero__media {
    animation: fade-in 1.1s ease 0.1s both;
  }

  /* Scroll reveal. Applies only once JavaScript has loaded. Uses a backwards-only
     animation so hover effects on cards keep working after the reveal. */
  .js :where([data-reveal], [data-reveal-stagger] > *) {
    opacity: 0;
  }

  .js :where([data-reveal].is-visible, [data-reveal-stagger].is-visible > *) {
    opacity: 1;
    animation: fade-up 0.8s var(--ease) backwards;
    animation-delay: var(--reveal-delay, 0s);
  }

  .js [data-reveal-stagger] > :nth-child(2) { --reveal-delay: 0.08s; }
  .js [data-reveal-stagger] > :nth-child(3) { --reveal-delay: 0.16s; }
  .js [data-reveal-stagger] > :nth-child(4) { --reveal-delay: 0.24s; }
  .js [data-reveal-stagger] > :nth-child(5) { --reveal-delay: 0.32s; }
  .js [data-reveal-stagger] > :nth-child(n + 6) { --reveal-delay: 0.4s; }

  .job-dialog[open] {
    animation: dialog-in 0.3s var(--ease);
  }
}


/* 12. Utilities and print
   ========================================================================== */

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.text-muted {
  color: var(--muted);
}

.mt-lg {
  margin-top: 2rem;
}

@media print {
  .site-header,
  .skip-link,
  .home-hero__media,
  .form-card,
  .job-card__actions {
    display: none !important;
  }

  [data-reveal],
  [data-reveal-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
  }

  .site-footer {
    background: none;
    color: #000;
  }
}
