/* ===========================================================================
   Components: logo, header, buttons, cards, and the per-section furniture
   =========================================================================== */

/* --- Logo lockup ----------------------------------------------------------
   Drawn in CSS rather than shipped as an image: it stays crisp at any size,
   recolours for light/dark surfaces, and the intro sting animates the very
   same parts (frame, letters, rule, wordmark).
   ------------------------------------------------------------------------- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  color: inherit;
}

.logo__mark {
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  padding: 7px 11px;
  transition: border-color var(--dur-fast) ease, transform var(--dur-mid) var(--ease-out);
}

.logo__mark span {
  display: block;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 2px;
  /* Cancels the trailing letter-space so BSI sits optically centred in the
     frame rather than 2px left of it. */
  margin-right: -2px;
  color: var(--white);
  line-height: 1;
}

.logo__word {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.logo__name {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--white);
  text-transform: uppercase;
}

.logo__sub {
  font-family: var(--font-head);
  font-size: 0.53rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--blue-light);
  text-transform: uppercase;
  margin-top: 2px;
}

.logo:hover .logo__mark {
  border-color: var(--blue-light);
  transform: translateY(-1px);
}

/* Footer variant sits a size up. */
.logo--lg .logo__mark { padding: 8px 12px; }
.logo--lg .logo__mark span { font-size: 1.375rem; }
.logo--lg .logo__name { font-size: 0.8125rem; }
.logo--lg .logo__sub { font-size: 0.5625rem; }

@media (max-width: 1239px) {
  .site-header .logo__word { display: none; }
}

@media (max-width: 859px) {
  .site-header .logo__mark { padding: 5px 9px; }
  .site-header .logo__mark span { font-size: 1rem; }
}

/* --- Header ---------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding-inline: var(--gutter);
  background: linear-gradient(to bottom, rgba(10, 18, 32, 0.72), rgba(10, 18, 32, 0));
  transition: background-color var(--dur-mid) ease, box-shadow var(--dur-mid) ease,
              transform var(--dur-mid) var(--ease-out);
}

/* Past the hero the gradient has nothing to sit on, so it becomes a solid bar. */
.site-header.is-stuck {
  background: rgba(13, 22, 38, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.8);
}

/* Scrolling down gets out of the way; scrolling up brings the nav back. */
.site-header.is-hidden { transform: translateY(-100%); }

.site-header__inner {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 34px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.site-nav a {
  position: relative;
  white-space: nowrap;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--white);
  text-transform: uppercase;
  padding-bottom: 4px;
}

/* Underline grows from the left on hover and stays put on the current page. */
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-fast) var(--ease-out);
}

.site-nav a:hover,
.site-nav a:focus-visible { color: var(--blue-light); }
.site-nav a:hover::after,
.site-nav a:focus-visible::after { transform: scaleX(1); }

.site-nav a[aria-current="page"],
.site-nav a.is-active { color: var(--blue-light); }
.site-nav a[aria-current="page"]::after,
.site-nav a.is-active::after { transform: scaleX(1); }

.site-header__end {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
  margin-left: auto;
}

/* Scoped to the header so it outranks .btn's own display, which is defined
   later in this file and would otherwise win on equal specificity. */
.site-header .site-header__cta { display: none; }

@media (min-width: 860px) {
  .site-nav { display: flex; }
  .site-header .site-header__cta { display: inline-flex; }
}

@media (min-width: 860px) and (max-width: 1239px) {
  .site-nav { gap: 20px; }
}

/* --- Burger + mobile menu -------------------------------------------------- */

.burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  z-index: 2;
}

.burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) ease;
}

.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 860px) {
  .burger { display: none; }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  background: var(--navy-deep);
  /* Hidden but still laid out, so the links can be staggered in on open. */
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-mid) ease, visibility var(--dur-mid) ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--white);
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-mid) var(--ease-out), transform var(--dur-mid) var(--ease-out),
              color var(--dur-fast) ease;
  transition-delay: calc(var(--i, 0) * 55ms);
}

.mobile-menu.is-open a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu a:hover { color: var(--blue-light); }
.mobile-menu a[aria-current="page"] { color: var(--blue-light); }

/* --- Buttons --------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-align: center;
  padding: 16px 34px;
  border: 2px solid transparent;
  isolation: isolate;
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease,
              transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) ease;
}

/* Layer 1: the fill that wipes up from the bottom on hover. */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--white);
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform var(--dur-mid) var(--ease-out);
}

/* Layer 2: a light sweep that crosses the button once per hover. */
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.28) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-260%) skewX(-18deg);
}

.btn:hover::before,
.btn:focus-visible::before { transform: scaleY(1); }

.btn:hover::after,
.btn:focus-visible::after { animation: btn-sweep 0.9s var(--ease-sweep); }

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px -18px rgba(13, 22, 38, 0.65);
}

.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--blue);
  color: var(--white);
}

.btn--primary:hover,
.btn--primary:focus-visible { color: var(--navy); }

/* On white sections the wipe should land on navy, not on white-on-white. */
.btn--primary.btn--onlight::before { background: var(--navy); }
.btn--primary.btn--onlight:hover,
.btn--primary.btn--onlight:focus-visible { color: var(--white); }

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
  padding: 14px 34px;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--navy);
  border-color: var(--white);
}

.btn--sm {
  font-size: 0.8125rem;
  letter-spacing: 2px;
  padding: 12px 22px;
}

.btn--ghost.btn--sm { padding: 10px 22px; }
.btn--block { width: 100%; }

@keyframes btn-sweep {
  from { transform: translateX(-260%) skewX(-18deg); }
  to   { transform: translateX(360%) skewX(-18deg); }
}

/* --- Chips / pills --------------------------------------------------------- */

.pill {
  font-family: var(--font-head);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--mist);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 12px 8px;
  text-align: center;
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) ease,
              color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}

.pill:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
  color: var(--blue-ink);
  background: var(--white);
}

.pill--wide {
  background: var(--white);
  padding: 10px 18px;
}

/* --- Tag ------------------------------------------------------------------- */

.tag {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 12px;
}

/* --- Hero ------------------------------------------------------------------ */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(88vh, 760px);
  padding: calc(var(--header-h) + 40px) var(--gutter) 80px;
  background: var(--navy);
  overflow: hidden;
  text-align: center;
}

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

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13, 22, 38, 0.78), rgba(50, 81, 132, 0.5) 55%, rgba(13, 22, 38, 0.88));
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__eyebrow {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--blue-light);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: var(--step-hero);
  letter-spacing: 2px;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.1;
  max-width: 18ch;
}

.hero__sub {
  font-size: var(--step-lead);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
  margin: 20px 0 0;
  max-width: 620px;
  line-height: 1.8;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 34px;
  width: 100%;
}

@media (min-width: 560px) {
  .hero__cta {
    flex-direction: row;
    justify-content: center;
    width: auto;
  }
}

@media (max-width: 859px) {
  .hero { min-height: 560px; }
}

/* Scroll hint at the foot of the hero. */
.hero__scroll {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26px;
  z-index: 2;
  /* Centred with margins rather than a translate, because the entrance
     animation owns the transform property on this element. */
  width: fit-content;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.hero__scroll span:last-child {
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, var(--blue-light), rgba(157, 195, 234, 0));
}

.hero__scroll:hover { color: var(--white); }

@media (max-width: 859px) {
  .hero__scroll { display: none; }
}

/* --- Page banner (portfolio + 404) ----------------------------------------- */

.page-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 420px;
  padding: calc(var(--header-h) + 20px) var(--gutter) 0;
  background: var(--navy);
  overflow: hidden;
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13, 22, 38, 0.75), rgba(50, 81, 132, 0.55) 60%, rgba(13, 22, 38, 0.85));
}

.page-hero__inner { position: relative; z-index: 2; }

.page-hero h1 {
  font-size: clamp(2.5rem, 1.9rem + 2.6vw, 3.5rem);
  letter-spacing: 2px;
  color: var(--white);
  text-transform: uppercase;
}

.page-hero p {
  font-size: var(--step-body);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  margin: 16px auto 0;
  max-width: 560px;
  line-height: 1.7;
}

@media (max-width: 859px) {
  .page-hero { height: 340px; }
}

/* --- Stats ----------------------------------------------------------------- */

.stats {
  background: var(--mist);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.5rem, 1.7rem + 3vw, 3.25rem) var(--gutter);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 16px;
  text-align: center;
}

@media (min-width: 860px) {
  .stats__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
  }
}

.stat__value {
  font-family: var(--font-head);
  font-size: var(--step-stat);
  font-weight: 900;
  color: var(--blue);
  letter-spacing: -1px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  font-family: var(--font-head);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--slate-mid);
  text-transform: uppercase;
  margin-top: 12px;
  line-height: 1.6;
  white-space: pre-line;
}

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

/* Two-column split used by the About story, and by the interior pages for any
   image-beside-copy block. `.duo--even` splits down the middle instead. */
.about__grid,
.duo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

@media (min-width: 960px) {
  .about__grid,
  .duo {
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
  }

  .duo--even { grid-template-columns: 1fr 1fr; }
  .duo--top { align-items: start; }
}

/* Photo with the same treatment the design gives the About image. */
.figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow-md);
}

.figure--tall img { aspect-ratio: 3 / 4; }

.about__values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 28px;
}

@media (min-width: 560px) {
  .about__values { grid-template-columns: repeat(5, 1fr); }
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
}

@media (min-width: 860px) {
  .mv-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

.mv-card {
  color: var(--white);
  padding: clamp(2rem, 1.4rem + 2vw, 2.75rem) clamp(1.625rem, 1.1rem + 2vw, 2.5rem);
  transition: transform var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid) ease;
}

.mv-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.mv-card--mission {
  background: var(--navy-deep);
  border-radius: 16px 56px 16px 16px;
}

.mv-card--vision {
  background: var(--blue);
  border-radius: 16px 16px 16px 56px;
}

.mv-card__label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.mv-card--mission .mv-card__label { color: var(--blue-light); }
.mv-card--vision .mv-card__label { color: rgba(255, 255, 255, 0.75); }

.mv-card p {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}

/* --- Team ------------------------------------------------------------------ */

.team {
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 16px;
}

@media (min-width: 960px) {
  .team__grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
  }
}

.person {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 18px 38px -28px rgba(13, 22, 38, 0.45);
  transition: transform var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid) ease;
}

.person:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.person__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--mist);
}

.person__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.person:hover .person__frame img { transform: scale(1.06); }

/* Stand-in for a headshot that has not been supplied yet. */
.person__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
  background: repeating-linear-gradient(45deg, #f0f4fa 0 14px, #e6edf6 14px 28px);
}

.person__initials {
  border: 1.5px solid var(--navy);
  padding: 9px 14px;
  font-family: var(--font-head);
  font-size: 1.375rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--navy);
  line-height: 1;
}

.person__note {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.6875rem;
  color: var(--slate-mid);
  letter-spacing: 0.5px;
}

.person__meta {
  padding: 18px 14px 22px;
  text-align: center;
  border-top: 2px solid var(--blue);
}

.person__name {
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--navy);
}

.person__title {
  font-family: var(--font-head);
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--slate-soft);
  margin-top: 6px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

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

.services__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 64px;
  max-width: 920px;
  margin-inline: auto;
}

@media (min-width: 860px) {
  .services__list { grid-template-columns: 1fr 1fr; }
}

.service {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 18px;
  border-bottom: 1px solid var(--line-strong);
  padding: 20px 4px;
  transition: padding-left var(--dur-mid) var(--ease-out);
}

/* A blue rule wipes in under the row on hover. */
.service::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-mid) var(--ease-out);
}

.service:hover { padding-left: 12px; }
.service:hover::after { transform: scaleX(1); }

.service__num {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--blue-ink);
  flex: none;
  transition: color var(--dur-fast) ease;
}

.service__name {
  font-family: var(--font-head);
  font-size: clamp(0.9375rem, 0.87rem + 0.3vw, 1.125rem);
  font-weight: 800;
  color: var(--navy);
}

.sectors {
  margin-top: clamp(2.5rem, 1.6rem + 3vw, 3.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.75rem, 1.2rem + 2vw, 2.375rem) clamp(1.375rem, 0.9rem + 2vw, 2.5rem);
}

.sectors__label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--blue-ink);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 22px;
}

.sectors__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* --- Project cards --------------------------------------------------------- */

.feature-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  margin-bottom: clamp(1.125rem, 0.8rem + 1.2vw, 1.75rem);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

@media (max-width: 859px) {
  .feature-card img { aspect-ratio: 4 / 3; }
}

.feature-card:hover img { transform: scale(1.04); }

.feature-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 22, 38, 0.85) 0%, rgba(13, 22, 38, 0.12) 55%);
  transition: background var(--dur-mid) ease;
}

.feature-card:hover .feature-card__scrim {
  background: linear-gradient(to top, rgba(13, 22, 38, 0.9) 0%, rgba(50, 81, 132, 0.3) 70%);
}

.feature-card__body {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  padding: clamp(1.25rem, 0.9rem + 1.4vw, 2.125rem);
  transition: transform var(--dur-mid) var(--ease-out);
}

/* The card is an <a>, so everything inside it is a <span>. These need to
   behave like blocks to stack the tag, title and location. */
.feature-card__body > span,
.feature-card__title,
.feature-card__loc,
.feature-card__flag,
.project-card__meta,
.project-card__name { display: block; }

.feature-card:hover .feature-card__body { transform: translateY(-4px); }

.feature-card__title {
  font-family: var(--font-head);
  font-size: clamp(1.375rem, 1rem + 1.6vw, 2.125rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-top: 12px;
}

.feature-card__loc {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 6px;
}

.feature-card__flag {
  font-family: var(--font-head);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--blue-light);
  text-transform: uppercase;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.125rem, 0.8rem + 1.2vw, 1.75rem);
}

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

.project-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.project-card:hover img { transform: scale(1.06); }

.project-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 22, 38, 0.82) 0%, rgba(13, 22, 38, 0.05) 50%);
}

.project-card__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 20px;
  transition: transform var(--dur-mid) var(--ease-out);
}

.project-card:hover .project-card__body { transform: translateY(-4px); }

.project-card__meta {
  font-family: var(--font-head);
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--blue-light);
  text-transform: uppercase;
}

.project-card__name {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--white);
  margin-top: 6px;
}

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

/* Backdrop photo for any dark band: the careers section and every closing
   CTA band. Not scoped to .band--dark: the CTA bands use it too. */
.band__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
}

.band--dark .shell { position: relative; z-index: 2; }

.careers__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: start;
}

@media (min-width: 960px) {
  .careers__grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 64px;
  }
}

.careers h2 { color: var(--white); font-size: var(--step-h2); margin: 14px 0 20px; }

.careers__copy {
  font-size: var(--step-body);
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 28px;
  max-width: 46ch;
}

.careers__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 560px) {
  .careers__actions { flex-direction: row; flex-wrap: wrap; }
}

.video-frame {
  position: relative;
  margin-top: 30px;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.6);
}

.video-frame iframe,
.video-frame button {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Click-to-load facade: no YouTube request until the visitor asks for one. */
.video-frame__poster {
  display: grid;
  place-items: center;
  padding: 0;
  background-size: cover;
  background-position: center;
}

.video-frame__poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 22, 38, 0.85), rgba(13, 22, 38, 0.35));
  transition: background var(--dur-mid) ease;
}

.video-frame__poster:hover::before { background: rgba(13, 22, 38, 0.45); }

.video-frame__play {
  position: relative;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(61, 116, 180, 0.92);
  transition: transform var(--dur-mid) var(--ease-out), background var(--dur-fast) ease;
}

.video-frame__poster:hover .video-frame__play {
  transform: scale(1.1);
  background: var(--blue);
}

.video-frame__play::after {
  content: "";
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--white);
  margin-left: 5px;
}

.video-frame__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  font-family: var(--font-head);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

/* --- Accordion ------------------------------------------------------------- */

.job { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }

.job__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  text-align: left;
  transition: padding-left var(--dur-mid) var(--ease-out);
}

.job__toggle:hover { padding-left: 8px; }

.job__title {
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--white);
  transition: color var(--dur-fast) ease;
}

.job__toggle:hover .job__title { color: var(--blue-light); }

/* Plus that rotates into a minus. */
.job__icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: none;
}

.job__icon::before,
.job__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--blue-light);
  transition: transform var(--dur-mid) var(--ease-out), opacity var(--dur-fast) ease;
}

.job__icon::before {
  width: 16px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.job__icon::after {
  width: 2px;
  height: 16px;
  transform: translate(-50%, -50%);
}

.job__toggle[aria-expanded="true"] .job__icon::before { transform: translate(-50%, -50%) rotate(180deg); }
.job__toggle[aria-expanded="true"] .job__icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.job__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-mid) var(--ease-out);
}

.job__panel > div {
  overflow: hidden;
  min-height: 0;
}

.job.is-open .job__panel { grid-template-rows: 1fr; }

.job__body {
  padding: 0 0 22px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity var(--dur-mid) ease var(--dur-fast), transform var(--dur-mid) var(--ease-out) var(--dur-fast);
}

.job.is-open .job__body {
  opacity: 1;
  transform: translateY(0);
}

.job__desc {
  font-size: 0.8125rem;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 12px;
}

.job__meta {
  font-family: var(--font-head);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--blue-light);
  text-transform: uppercase;
}

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

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

@media (min-width: 960px) {
  .contact__grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.contact__list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact__label {
  font-family: var(--font-head);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--slate-soft);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.contact__value {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
  transition: color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}

.contact__value:hover {
  color: var(--blue-ink);
  transform: translateX(4px);
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.75rem, 1.2rem + 2vw, 2.375rem) clamp(1.375rem, 0.9rem + 2vw, 2.5rem);
  box-shadow: 0 20px 44px -30px rgba(13, 22, 38, 0.45);
}

.panel__label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--blue-ink);
  text-transform: uppercase;
  margin-bottom: 18px;
}

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

.site-footer {
  background: var(--navy-deep);
  padding: clamp(3rem, 2rem + 3vw, 4rem) var(--gutter) clamp(2rem, 1.6rem + 1.6vw, 2.5rem);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

@media (min-width: 860px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 56px;
  }
}

.site-footer__blurb {
  font-size: 0.8125rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
  max-width: 360px;
  margin-top: 18px;
}

.site-footer__hash {
  font-family: var(--font-head);
  font-size: 0.6875rem;
  letter-spacing: 2.5px;
  color: var(--blue-soft);
  text-transform: uppercase;
  margin-top: 20px;
  font-weight: 800;
}

.site-footer__head {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer__links a,
.site-footer__contact a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
  width: fit-content;
  transition: color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}

.site-footer__links a:hover,
.site-footer__contact a:hover {
  color: var(--blue-light);
  transform: translateX(4px);
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
}

.site-footer__contact a { color: var(--blue-light); }

.site-footer__base {
  max-width: var(--shell);
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* --- Back to top ----------------------------------------------------------- */

.to-top {
  position: fixed;
  right: clamp(1rem, 0.6rem + 1.4vw, 1.75rem);
  bottom: clamp(1rem, 0.6rem + 1.4vw, 1.75rem);
  z-index: 40;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--dur-mid) ease, transform var(--dur-mid) var(--ease-out),
              visibility var(--dur-mid) ease, background-color var(--dur-fast) ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-3px);
}

.to-top svg { width: 16px; height: 16px; }

/* --- Closing CTA band ------------------------------------------------------
   Sits at the foot of every interior page: one line, one action.
   ------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  background: var(--navy-deep);
  overflow: hidden;
  padding: clamp(3rem, 2rem + 4vw, 4.5rem) var(--gutter);
}

.cta-band__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

@media (min-width: 860px) {
  .cta-band__inner {
    flex-direction: row;
    align-items: center;
  }
}

.cta-band h2 {
  color: var(--white);
  margin: 12px 0 0;
  max-width: 20ch;
}

.cta-band p {
  font-size: var(--step-body);
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.7);
  margin: 14px 0 0;
  max-width: 48ch;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  flex: none;
}

@media (max-width: 559px) {
  .cta-band__actions { width: 100%; }
  .cta-band__actions .btn { width: 100%; }
}

/* --- Numbered copy block ---------------------------------------------------
   Used for the careers "how to apply" steps and anywhere a short ordered
   explanation reads better than prose.
   ------------------------------------------------------------------------- */

.notes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 28px;
}

@media (min-width: 720px) {
  .notes { grid-template-columns: repeat(2, 1fr); }
}

.note {
  border-top: 2px solid var(--blue);
  padding-top: 16px;
}

.note__label {
  font-family: var(--font-head);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue-ink);
  margin-bottom: 8px;
}

.note p {
  font-size: 0.8125rem;
  line-height: 1.85;
  color: var(--slate);
  margin: 0;
}

/* Reversed variant, for the dark careers band. */
.note--light { border-top-color: var(--blue-light); }
.note--light .note__label { color: var(--blue-light); }
.note--light p { color: rgba(255, 255, 255, 0.7); }
