/* DigLTBlue home sections, in artboard order:
   2 Hero · 3 Credential strip · 4 Intro split · 5 Capability index ·
   6 Project environments · 7 Safety band · 8 Leadership & trust · 9 Proof ·
   10 Careers band · 11 Closing CTA

   Desktop values are the 1440 artboard's literals; the <640px block at the end
   is the 400 artboard. Everything between is fluid. */

/* ══ 2 Hero ═══════════════════════════════════════════════════════════ */
/* The copy is in flow, bottom-aligned, and padded clear of the chrome (which
   is out of flow over the hero). A fixed `bottom` offset instead would push a
   headline that wraps on narrower screens straight up under the nav; this way
   the hero grows past --hero-h rather than let that happen. The bar is as tall
   as its logo when that exceeds --header-h, and a logo is never taller than it
   is wide, so the logo width is the safe bound. */
.lt-hero {
  position: relative;
  min-height: var(--hero-h);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--topnav-h) + max(var(--header-h), var(--nav-logo-w)) + 48px);
  padding-bottom: clamp(97px, 15.5vw, 14rem);
  background: var(--color-navy);
  overflow: hidden;
}

.lt-hero__media {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Lets .lt-hero__embed size itself off this box's own rendered dimensions
     (cqw/cqh) instead of the viewport — needed because .lt-hero's height is
     --hero-h, not 100vh, so a viewport-relative cover-crop would drift. */
  container-type: size;
}

.lt-hero__video,
.lt-hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* With a video present the still is only its poster frame — hidden until a
   media query below hands the hero back to it. */
.lt-hero__video ~ .lt-hero__poster {
  display: none;
}

/* A YouTube/Vimeo embed is an iframe, not a <video>: object-fit does not
   reliably crop it, so it is instead oversized off its own aspect ratio and
   centred, the standard cover-crop technique for embedded players. It also
   carries the .lt-hero__video class above, so the mobile/reduced-motion
   rules and the poster sibling toggle apply to it unchanged. */
.lt-hero__embed {
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  width: 100cqw;
  height: 56.25cqw; /* 16:9 */
  min-width: 177.78cqh; /* 16:9, the other way round */
  min-height: 100cqh;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}

.lt-hero__label {
  color: var(--color-on-navy-label);
}

.lt-hero__scrim {
  position: absolute;
  inset: 0;
  background: var(--hero-scrim);
}

.lt-hero__body {
  position: relative;
  width: min(100% - (var(--pad-x) * 2), var(--content-max));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.lt-hero__eyebrow {
  color: var(--color-orange);
  font-size: 18px;
  letter-spacing: var(--ls-kicker);
}

.lt-hero__title {
  max-width: 1160px;
  color: var(--color-white);
}

/* ══ 3 Credential strip ═══════════════════════════════════════════════ */
/* Pulled up over the bottom of the hero. */
.lt-credentials {
  position: relative;
  z-index: var(--z-lift);
  margin-top: -60px;
  padding: 0 var(--pad-x);
}

.lt-credentials__inner {
  max-width: var(--content-max);
  margin-inline: auto;
}

.lt-credentials__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 40px 36px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
}

.lt-credentials__item {
  padding: 0 28px;
  border-left: 1px solid var(--color-line);
  color: var(--color-navy);
}

/* Optional — a row with no heading starts at its sentence, so the space below
   the heading belongs to the heading rather than above the text. */
.lt-credentials__heading {
  margin-bottom: 10px;
}

.lt-credentials__text {
  margin: 0;
  font-size: var(--fs-meta);
  line-height: var(--lh-meta);
  text-wrap: pretty;
}

.lt-credentials__item:first-child {
  padding-left: 0;
  border-left: 0;
}
.lt-credentials__item:last-child {
  padding-right: 0;
}

/* ══ 4 Intro split ════════════════════════════════════════════════════ */
/* Full-bleed: the photo runs to the right edge. The copy's left inset lines up
   with every other section's content column on wide screens. */
.lt-intro {
  display: flex;
  align-items: stretch;
  background: var(--color-white);
  padding-left: max(var(--pad-x), calc((100% - var(--content-max)) / 2));
  margin: 24px 0;
}

.lt-intro__body {
  width: 55%;
  padding: var(--pad-y) 64px var(--pad-y) 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.lt-intro__media {
  flex: 1;
  min-height: 520px;
  align-self: stretch;
}

.lt-intro__lockup {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lt-intro__badge {
  width: 44px;
  height: 44px;
  flex: none;
  object-fit: contain;
}

.lt-intro__caption {
  font-size: var(--fs-small);
  letter-spacing: var(--ls-caption);
  color: var(--color-navy);
}

.lt-intro__cta {
  align-self: flex-start;
}

/* ══ 5 Capability index ═══════════════════════════════════════════════ */
/* A table, not cards: a hairline above every row and one below the last. */
.lt-capabilities__list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--color-line-strong);
}

.lt-capabilities__item {
  border-top: 1px solid var(--color-line-strong);
}

.lt-capabilities__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 28px 0;
}

/* 1.5x the original 280x175. The half-pixel height is deliberate: it is what
   holds the 8:5 ratio exactly (175 * 1.5 = 262.5), and .lt-slot__img covers the
   box, so nothing is distorted by it. */
.lt-capabilities__media {
  width: 420px;
  height: 262.5px;
  flex: none;
}

/* The capability index reuses .lt-closing__cta, which is only `margin-top: 8px`
   — the closing section's centring comes from .lt-closing__inner, not from the
   button. .lt-stack is a flex column at the default align-items: stretch, so
   without this the button would span the full content width. The <=639px
   `.lt-closing__cta { align-self: stretch }` rule still wins there, matching how
   every other button goes full-width on mobile. */
.lt-capabilities .lt-closing__cta {
  align-self: center;
}

.lt-capabilities__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.lt-capabilities__title {
  color: var(--color-navy);
}

/* The row is the click target; the link's own text stays the capability name. */
.lt-capabilities__link {
  color: inherit;
}

.lt-capabilities__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.lt-capabilities__desc {
  margin: 0;
  color: var(--color-navy);
  font-size: var(--fs-meta);
  line-height: 1.6;
  text-wrap: pretty;
}

.lt-capabilities__arrow {
  width: 24px;
  height: 24px;
  margin-left: auto;
  flex: none;
  color: var(--color-orange);
  transition: transform var(--t-med) var(--ease);
}

.lt-capabilities__row:hover .lt-capabilities__arrow {
  transform: translateX(6px);
}
.lt-capabilities__row:hover .lt-capabilities__link {
  color: var(--color-orange);
}

/* ══ 6 Project environments ═══════════════════════════════════════════ */
.lt-environments__grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  grid-auto-rows: 252px;
  gap: 16px 28px;
}

.lt-environments__tile {
  position: relative;
  overflow: hidden;
}

.lt-environments__tile--lead {
  grid-row: span 2;
}

.lt-environments__media {
  position: absolute;
  inset: 0;
}

.lt-environments__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 20px;
  background: var(--caption-scrim);
}

.lt-environments__tile--lead .lt-environments__caption {
  padding: 16px 20px;
}

.lt-environments__eyebrow {
  color: var(--color-orange);
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-caption);
}

.lt-environments__title {
  color: var(--color-white);
  font-size: var(--fs-title-xs);
}

.lt-environments__tile--lead .lt-environments__title {
  font-size: var(--fs-title-sm);
}

/* ══ 7 Safety band ════════════════════════════════════════════════════ */
.lt-safety__note {
  margin: 0;
  color: var(--color-white);
  font-size: var(--fs-meta);
  font-weight: var(--weight-label);
  letter-spacing: 0.06em;
}

.lt-safety__cta {
  align-self: flex-start;
}

/* ══ 8 Leadership & trust ═════════════════════════════════════════════ */
.lt-leadership__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.lt-leadership__col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ══ 9 Proof ══════════════════════════════════════════════════════════ */
.lt-proof__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.lt-proof__col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.lt-proof__clients {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lt-proof__client {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-line-strong);
}

.lt-proof__logo {
  width: auto;
  max-height: 32px;
  flex: none;
  object-fit: contain;
}

.lt-proof__name {
  font-size: 22px;
  color: var(--color-navy);
}

.lt-proof__panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 40px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
}

.lt-proof__counties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lt-proof__county {
  font-size: var(--fs-body-sm);
  color: var(--color-navy);
}

/* ══ 10 Careers band ══════════════════════════════════════════════════ */
.lt-careers {
  position: relative;
  display: flex;
  align-items: center;
  min-height: var(--band-h);
  overflow: hidden;
}

.lt-careers__media {
  position: absolute;
  inset: 0;
}

.lt-careers__scrim {
  position: absolute;
  inset: 0;
  background: var(--band-scrim);
}

.lt-careers__body {
  position: relative;
  z-index: 1;
  width: min(100% - (var(--pad-x) * 2), var(--content-max));
  margin-inline: auto;
  padding-block: 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* The rule tracks the heading's width, not the band's. */
.lt-careers__head {
  align-self: flex-start;
}

.lt-careers__head .lt-heading {
  color: var(--color-white);
}

.lt-careers__text {
  margin: 0;
  color: var(--color-white);
  font-size: var(--fs-body);
}

.lt-careers__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* ══ 11 Closing CTA ═══════════════════════════════════════════════════ */
.lt-closing__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.lt-closing__heading {
  color: var(--color-navy);
}

.lt-closing__cta {
  margin-top: 8px;
}

.lt-closing__phone {
  color: var(--color-navy);
  font-size: var(--fs-body);
  font-weight: var(--weight-label);
}

.lt-closing__phone:hover {
  color: var(--color-orange);
}

/* ══ ≤1023px ══════════════════════════════════════════════════════════ */
@media (max-width: 1023px) {
  .lt-credentials__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .lt-credentials__item:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
  .lt-credentials__item:nth-child(even) {
    padding-right: 0;
  }

  .lt-intro {
    flex-direction: column;
    padding-left: 0;
  }

  .lt-intro__body {
    width: auto;
    padding: var(--pad-y) var(--pad-x);
  }

  .lt-intro__media {
    min-height: 360px;
  }

  .lt-environments__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .lt-environments__tile--lead {
    grid-row: span 1;
  }

  .lt-leadership__grid,
  .lt-proof__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ══ ≤639px — the 400 artboard ════════════════════════════════════════ */
@media (max-width: 639px) {
  /* Mobile gets the still, never the video: it is the mock's "POSTER IMAGE"
     slot, and it spares a metered connection a background loop. */
  .lt-hero__video {
    display: none;
  }
  .lt-hero__video ~ .lt-hero__poster {
    display: block;
  }

  .lt-hero {
    padding-bottom: 40px;
  }

  .lt-hero__body {
    gap: 16px;
  }

  .lt-hero__eyebrow {
    font-size: 14px;
  }

  /* The strip sits in the flow on mobile — no overlap, full borders. */
  .lt-credentials {
    margin-top: 0;
    padding: 0;
  }

  .lt-credentials__grid {
    padding: 0 24px;
    gap: 0;
    border: 0;
    border-bottom: 1px solid var(--color-line);
  }

  .lt-credentials__item {
    padding: 20px var(--pad-x);
    border-left: 0;
    border-bottom: 1px solid var(--color-line);
  }

  .lt-credentials__item:nth-child(odd) {
    border-right: 1px solid var(--color-line);
  }
  .lt-credentials__item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .lt-intro__body {
    gap: 24px;
  }
  .lt-intro__media {
    min-height: 230px;
  }
  .lt-intro__cta {
    align-self: stretch;
  }

  .lt-intro__badge {
    width: 36px;
    height: 36px;
  }
  .lt-intro__caption {
    font-size: var(--fs-nano);
    letter-spacing: var(--ls-plate);
  }

  .lt-capabilities__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 0;
  }

  .lt-capabilities__media {
    width: 100%;
    height: 200px;
  }

  .lt-capabilities__arrow {
    margin-left: 0;
  }

  .lt-environments__grid {
    grid-auto-rows: 240px;
    gap: 16px;
  }

  .lt-safety__cta {
    align-self: stretch;
  }

  .lt-proof__panel {
    padding: 24px;
  }
  .lt-proof__counties {
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
  }
  .lt-proof__name {
    font-size: var(--fs-title-xs);
  }

  .lt-careers__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .lt-careers__actions .lt-btn {
    display: block;
    width: 100%;
  }

  .lt-closing__cta {
    align-self: stretch;
  }
}

/* Reduced motion: hand the hero to the still. A looping background video is
   exactly what this preference asks not to receive. */
@media (prefers-reduced-motion: reduce) {
  .lt-hero__video {
    display: none;
  }
  .lt-hero__video ~ .lt-hero__poster {
    display: block;
  }
}
