/* Katchi Technologies
   Poppins via Google Fonts.
   Primary palette: Cream #E2E0D7, Steel #809EAC, Navy #2F4D5D.
   Light neutrals: paper, white, and a soft steel tint.
*/

:root {
  --cream: #e2e0d7;
  --steel: #809eac;
  --navy: #2f4d5d;
  --navy-deep: #243c4a;
  --paper: #f7f6f2;
  --white: #ffffff;
  --steel-soft: #e7eef1;
  --line: #d8d5cc;
  --muted: #4a6270;
  --mist: #b7b3a8;
  --max: 1120px;
  --pad: 24px;
  --font: "Poppins", sans-serif;
  --header-h: 88px;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(47, 77, 93, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--navy);
  background-color: var(--paper);
  /* AC-4 composite, bottom to top:
     1. site-bg-haul-in.jpg (fallback) / .webp
        Source PNG 630×446, fully opaque.
        Lanczos resize to 1920×1359.
        Pillow ImageEnhance.Brightness factor 0.85
        (each RGB channel multiplied by 0.85; no black overlay baked in).
        Then Pillow ImageFilter.GaussianBlur radius 8
        (radius is the Gaussian standard deviation, in pixels).
        JPEG quality 82, progressive, 4:2:0. WebP quality 80, method 6.
     2. One CSS wash over the whole viewport:
        linear-gradient(rgba(247, 246, 242, 0.4), rgba(247, 246, 242, 0.4))
        — paper #f7f6f2 at 40% opacity. No other overlay.
     Frosted .text-panel blur is separate (backdrop-filter) and is off
     for the AC-2 contrast check. */
  background-image:
    linear-gradient(rgba(247, 246, 242, 0.4), rgba(247, 246, 242, 0.4)),
    url("/assets/site-bg-haul-in.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  min-width: 320px;
}

@supports (background-image: image-set(url("/assets/site-bg-haul-in.webp") type("image/webp"))) {
  body {
    background-image:
      linear-gradient(rgba(247, 246, 242, 0.4), rgba(247, 246, 242, 0.4)),
      image-set(
        url("/assets/site-bg-haul-in.webp") type("image/webp"),
        url("/assets/site-bg-haul-in.jpg") type("image/jpeg")
      );
  }
}

@keyframes page-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

body.is-leaving {
  animation: page-out 0.22s ease forwards;
}

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

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--navy-deep);
}

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

::selection {
  background: #c5d5dc;
  color: var(--navy);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--navy);
  color: var(--cream);
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 100;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

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

.wrap {
  width: min(var(--max), calc(100% - (var(--pad) * 2)));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
}

.site-header::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--navy) 0 42%, var(--steel) 42% 70%, var(--cream) 70%);
}

.header-inner {
  height: calc(var(--header-h) - 4px);
  width: min(var(--max), calc(100% - (var(--pad) * 2)));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
  overflow: visible;
  line-height: 0;
}

.logo-link img {
  height: 64px;
  width: auto;
  max-height: calc(var(--header-h) - 18px);
  object-fit: contain;
  object-position: left center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.search-toggle,
.nav-toggle {
  font-family: inherit;
  cursor: pointer;
}

.search-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
}

.search-toggle:hover,
.search-toggle[aria-expanded="true"] {
  border-color: var(--steel);
  background: var(--cream);
  color: var(--navy);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 999px;
}

.site-nav a[aria-current="page"]:not(.btn) {
  background: var(--cream);
}

.site-nav a:not(.btn):hover {
  background: var(--cream);
}

.site-search {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 16px 0 20px;
  z-index: 40;
}

.site-search[hidden] {
  display: none !important;
}

.search-form label,
.search-page-form label {
  margin-bottom: 8px;
}

.search-row,
.search-page-form .search-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-row input,
.search-page-form input {
  flex: 1 1 auto;
}

.search-row .btn,
.search-page-form .btn {
  flex: 0 0 auto;
}

.search-results {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  max-height: min(50vh, 420px);
  overflow: auto;
}

#search-page-results {
  max-height: none;
  overflow: visible;
}

.search-results a {
  display: block;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid transparent;
}

.search-results a:hover {
  background: var(--steel-soft);
  border-color: var(--steel);
  color: var(--navy);
}

.search-results strong {
  display: block;
  font-size: 16px;
  line-height: 1.3;
}

.search-results span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.search-empty {
  margin: 0;
  padding: 12px 4px;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  max-width: 100%;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

/* Anchor buttons must beat contextual link colors such as .site-footer a
   (cream), which otherwise hides the cream pill label until hover. */
a.btn.btn-primary,
a.btn.btn-primary:visited,
a.btn.btn-primary:focus-visible,
button.btn.btn-primary,
button.btn.btn-primary:focus-visible {
  background: var(--navy);
  color: var(--cream);
}

a.btn.btn-primary:hover,
a.btn.btn-primary:visited:hover,
button.btn.btn-primary:hover {
  background: var(--navy-deep);
  color: var(--cream);
}

a.btn.btn-secondary,
a.btn.btn-secondary:visited,
a.btn.btn-secondary:focus-visible,
button.btn.btn-secondary,
button.btn.btn-secondary:focus-visible {
  background: var(--white);
  color: var(--navy);
  border-color: var(--navy);
}

a.btn.btn-secondary:hover,
a.btn.btn-secondary:visited:hover,
button.btn.btn-secondary:hover {
  background: var(--cream);
  color: var(--navy);
  border-color: var(--navy);
}

a.btn.btn-light,
a.btn.btn-light:visited,
a.btn.btn-light:focus-visible,
button.btn.btn-light,
button.btn.btn-light:focus-visible {
  background: var(--cream);
  color: var(--navy);
}

a.btn.btn-light:hover,
a.btn.btn-light:visited:hover,
button.btn.btn-light:hover {
  background: var(--white);
  color: var(--navy);
}

.hero {
  background: transparent;
  padding: 64px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 40px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 3px;
  margin-right: 8px;
  border-radius: 2px;
  background: var(--steel);
  vertical-align: middle;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin-bottom: 16px;
  text-wrap: balance;
}

.lede {
  font-size: 1.125rem;
  line-height: 1.55;
  margin-bottom: 28px;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions .btn {
  flex: 0 1 auto;
}

.hero-panel {
  background: var(--white);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(216, 213, 204, 0.9);
}

.hero-panel h2 {
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.tow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.tow-list a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  padding: 12px;
  border-radius: 12px;
  background: var(--paper);
  transition: background 0.2s ease, transform 0.2s ease;
}

.tow-list a:hover {
  background: var(--steel-soft);
  transform: translateX(3px);
}

.step-num {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--cream);
  font-weight: 600;
  font-size: 14px;
}

.tow-list strong {
  display: block;
  font-size: 16px;
  line-height: 1.3;
}

.tow-copy {
  min-width: 0;
}

.tow-copy span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.section {
  padding: 72px 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 32px;
}

.section-head h2,
.page-hero h1 {
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 10px;
}

.section-head p:last-child,
.page-hero .lede {
  margin-bottom: 0;
}

.section-action {
  margin: 28px 0 0;
}

.pillar-grid,
.card-grid,
.point-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* Five benefits: one column until tablet, then one spanning card plus four,
   then five across. No last-row orphan at ≥1024 or around 768. */
.pillar-grid {
  grid-template-columns: 1fr;
}

.card,
.point,
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  min-width: 0;
  overflow-wrap: break-word;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Copy on the haul-in photo. Opaque white unless backdrop-filter is supported,
   then ~90% white with an 8px frost. Solid cards (.card, .point, .step,
   .hero-panel, .contact-card) stay opaque. .adopt is solid white (AC-3). */
.text-panel {
  background-color: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  min-width: 0;
  overflow-wrap: break-word;
}

@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .text-panel {
    background-color: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
}

.text-panel > :last-child,
.text-panel .stack > :last-child {
  margin-bottom: 0;
}

.text-panel .lede:not(:last-child) {
  margin-bottom: 28px;
}

.card:hover,
.point:hover,
.step:hover {
  transform: translateY(-3px);
  border-color: var(--steel);
  box-shadow: var(--shadow);
}

.card-grid .card,
.steps .step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card-grid .card .btn,
.card-grid .card .text-link,
.steps .step .text-link {
  margin-top: auto;
}

.product-card {
  padding: 0 0 22px;
  overflow: hidden;
}

.product-shot {
  position: relative;
  width: 100%;
  flex: 0 0 auto;
  aspect-ratio: 16 / 10;
  margin: 0 0 16px;
  overflow: hidden;
  background: linear-gradient(165deg, #3e6476 0%, #2f4d5d 55%, #243c4a 100%);
  border-bottom: 1px solid var(--line);
}

.product-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Cut-out on the same navy panel as the other cards. The view box keeps the
   meter, contain does not crop it, and the filter drops the white canvas. */
.product-shot img.shot-cablecount {
  object-fit: contain;
  object-position: center;
  object-view-box: inset(2% 0% 48% 0%);
  filter: url("#white-knockout");
}

.svg-filters {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.product-card .kicker,
.product-card h3,
.product-card p,
.product-card .btn,
.product-card .text-link {
  margin-left: 22px;
  margin-right: 22px;
}

.section-concrete {
  background: transparent;
}

.section-concrete .card,
.section-concrete .step {
  background: var(--white);
}

.kicker {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}

.card h3,
.point h3,
.step h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  line-height: 1.3;
}

.card p:last-child,
.point p:last-child,
.step p:last-child {
  margin-bottom: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step-index {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
}

.step-index::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 3px;
  margin-right: 8px;
  border-radius: 2px;
  background: var(--steel);
  vertical-align: middle;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}

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

.adopt {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
  gap: 28px;
  align-items: center;
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow);
}

.adopt h2,
.adopt p {
  color: var(--navy);
}

.adopt h2 {
  margin-bottom: 8px;
}

.adopt p:last-child {
  margin-bottom: 0;
}

.page-hero {
  background: transparent;
  padding: 56px 0 48px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--muted);
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.crumbs a:hover {
  color: var(--navy);
}

.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--mist);
}

.prose {
  max-width: 42rem;
}

.prose p,
.stack p {
  margin-bottom: 16px;
}

.note {
  margin-top: 28px;
  max-width: 42rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.contact-card,
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}

.contact-facts {
  margin: 0;
}

.contact-facts div + div {
  margin-top: 18px;
}

.contact-facts dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 4px;
}

.contact-facts dd {
  margin: 0;
  font-size: 1.05rem;
}

.contact-facts a {
  font-weight: 600;
  overflow-wrap: anywhere;
}

address {
  font-style: normal;
}

.form-card h2 {
  font-size: 1.4rem;
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  min-height: 48px;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--navy);
  background: var(--steel-soft);
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  font-size: 15px;
}

.check input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin-top: 3px;
  flex: 0 0 auto;
}

.form-actions .btn {
  width: 100%;
}

#form-status {
  min-height: 1.4em;
  margin: 0;
  font-size: 15px;
}

.figure,
.shot-grid figure {
  margin: 0;
}

.figure img,
.shot-grid img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--white);
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.shot-follow {
  margin-top: 16px;
}

.visual-band {
  display: grid;
}

.visual-hero img,
.visual-split img {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: var(--navy);
}

.visual-hero img {
  height: auto;
  display: block;
}

.visual-split img {
  height: 100%;
  object-fit: cover;
}

.visual-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}

.visual-split figure {
  position: relative;
  margin: 0;
  min-height: 420px;
}

.visual-split img {
  position: absolute;
  inset: 0;
}

.step-photo {
  width: 100%;
  flex: 0 0 auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  margin: 0 0 14px;
  background: linear-gradient(165deg, #3e6476 0%, #2f4d5d 55%, #243c4a 100%);
}

.frame-limit {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  object-position: center;
  background: var(--white);
}

.lead-shot {
  margin-top: 8px;
}

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

.team-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--cream);
}

.team-card .text-panel {
  margin-top: 12px;
}

.team-card h3 {
  margin: 12px 0 2px;
  font-size: 1.05rem;
}

.team-card .text-panel h3 {
  margin: 0 0 2px;
}

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

.site-footer {
  background: var(--navy);
  color: var(--cream);
  padding: 40px 0 28px;
}

.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(226, 224, 215, 0.28);
}

.footer-cta h2 {
  color: var(--cream);
  margin-bottom: 8px;
}

.footer-cta p {
  margin: 0;
  max-width: 36rem;
  color: var(--cream);
}

.footer-cta p + p {
  margin-top: 8px;
}

/* Cream partner strip. Fourteen logos, max-height 56px.
   7 / 4 / 2 columns: 7 from 1024px (two rows of 7), 4 from 768px
   through 1023px (4+4+4+2, last pair centred), and 2 below that
   (seven rows of 2). No single-logo row.
   logo-soft rasters (Scotia Harvest, Allswater, ACOA, DSA Ocean) were upscaled;
   the 56px cap downscales them with the browser's smooth scaler. */
.partner-band {
  background: var(--cream);
  padding: 36px 0 40px;
}

.partner-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 16px;
  align-items: center;
  justify-items: center;
}

.partner-strip li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
  margin: 0;
}

.partner-strip img {
  display: block;
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.partner-strip img.logo-soft {
  image-rendering: auto;
}

.crew-steps {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--navy);
}

.crew-steps li + li {
  margin-top: 10px;
}

.footer-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 32px 48px;
  align-items: start;
}

.footer-logo {
  height: 56px;
  width: auto;
}

.footer-name {
  font-weight: 600;
  margin-bottom: 6px;
}

.site-footer a {
  color: var(--cream);
}

.site-footer address,
.site-footer p {
  margin: 0 0 6px;
  color: var(--cream);
}

.footer-nav {
  display: grid;
  gap: 6px;
}

.footer-nav a {
  text-decoration: none;
  font-weight: 500;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 22px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid rgba(226, 224, 215, 0.55);
  border-radius: 999px;
  color: var(--cream);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  background: rgba(226, 224, 215, 0.12);
  text-decoration: underline;
}

.footer-social svg {
  display: block;
  flex: 0 0 auto;
}

.footer-copy {
  margin: 28px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(226, 224, 215, 0.28);
  color: var(--cream);
  font-size: 14px;
}

.related {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.news-list {
  display: grid;
  gap: 16px;
}

.news-card h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.45rem;
}

.news-card p,
.news-card a {
  color: var(--navy);
}

.spec-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.spec-list div {
  display: grid;
  grid-template-columns: minmax(7.5rem, 12rem) minmax(0, 1fr);
  gap: 4px 16px;
  align-items: baseline;
}

.spec-list dt,
.spec-list dd {
  margin: 0;
  color: var(--navy);
}

.spec-list dt {
  font-weight: 600;
}

.spec-list a {
  color: var(--navy);
  font-weight: 600;
}

.req-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--navy);
}

.req-list li + li {
  margin-top: 8px;
}

.team-card .bio {
  margin-top: 8px;
  color: var(--navy);
}

/* .will-reveal is added by JS only, and never when reduced motion matches.
   It does not set opacity, so a capture, print, or no-JS load cannot
   find an empty box. The motion is a short rise. */
.will-reveal {
  transform: translateY(12px);
}

.will-reveal.is-in,
html.reveal-settled .will-reveal {
  transform: none;
  transition: transform 0.45s ease;
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .adopt,
  .steps,
  .card-grid,
  .point-grid,
  .footer-grid,
  .footer-cta,
  .shot-grid,
  .shot-grid-2,
  .visual-split {
    grid-template-columns: 1fr;
  }

  .footer-cta,
  .footer-grid {
    display: grid;
  }

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

@media (max-width: 860px) {
  :root {
    --header-h: 76px;
    --pad: 20px;
  }

  .logo-link img {
    height: 50px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 18px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .site-header {
    z-index: 1100;
  }

  .site-nav.is-open {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--white);
    padding: calc(var(--header-h) + 8px) 20px 24px;
    overflow: auto;
    box-shadow: none;
  }

  .site-nav a {
    padding: 12px 8px;
  }

  .site-nav a:not(.btn) {
    background: var(--white);
  }

  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(47, 77, 93, 0.28);
    z-index: 25;
  }

  .site-nav .btn {
    width: 100%;
    margin-top: 6px;
  }

  .hero-actions .btn,
  .search-row,
  .search-page-form .search-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .search-row .btn,
  .search-page-form .btn {
    width: 100%;
  }

  .hero {
    padding: 36px 0 48px;
  }

  .visual-split figure {
    min-height: 240px;
  }

  .section {
    padding: 48px 0;
  }

  .adopt {
    padding: 24px;
  }

  .page-hero {
    padding: 36px 0 32px;
  }
}

@media (max-width: 640px) {
  .spec-list div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .team-strip {
    grid-template-columns: 1fr;
  }

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

  .search-toggle {
    padding: 8px 12px;
  }
}

@media (min-width: 1280px) {
  .hero {
    padding: 80px 0 88px;
  }
}

@media (min-width: 768px) {
  .partner-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 20px;
  }
}

/* Four-column band: the last row is two logos, centred in the middle columns. */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .partner-strip li:nth-child(13) {
    grid-column: 2;
  }

  .partner-strip li:nth-child(14) {
    grid-column: 3;
  }
}

@media (min-width: 1024px) {
  .partner-strip {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
  .pillar-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pillar-grid article:first-child {
    grid-column: 1 / -1;
  }

  .pillar-grid .card {
    padding: 16px;
  }
}

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

  .pillar-grid article:first-child {
    grid-column: auto;
  }

  .pillar-grid .card {
    padding: 18px 16px;
  }
}

@media print {
  .will-reveal,
  .will-reveal.is-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  body,
  body.is-leaving,
  .will-reveal,
  .will-reveal.is-in {
    opacity: 1 !important;
    transform: none !important;
  }

  .card:hover,
  .point:hover,
  .step:hover,
  .tow-list a:hover {
    transform: none;
  }
}
