:root {
  --navy: #082c60;
  --navy-deep: #051c3e;
  --red: #c81221;
  --red-dark: #a10e1a;
  --blue: #1a5ba5;
  --white: #ffffff;
  --charcoal: #263448;
  --steel: #f1f5f9;
  --line: #d5dde7;
  --muted: #4a5a70;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --max: 1180px;
  --header-h: 76px;
  --header-h-sm: 58px;
  --radius: 2px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--white);
}

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

a {
  color: var(--blue);
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.005em;
  color: var(--navy);
  text-wrap: balance;
  margin: 0;
}

h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.75rem);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  text-transform: uppercase;
}

h3 {
  font-size: 1.55rem;
}

p {
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 3px;
  background: var(--red);
  transform: skewX(-30deg);
}

.on-dark .eyebrow,
.section-navy .eyebrow {
  color: #ff9aa2;
}

.on-dark .eyebrow::before,
.section-navy .eyebrow::before {
  background: #ff9aa2;
}

.lede {
  margin-top: 1rem;
  max-width: 40rem;
  font-size: 1.15rem;
  color: var(--muted);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

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

.btn-red:hover {
  background: var(--red-dark);
}

.btn-line {
  border-color: currentColor;
  color: var(--navy);
  background: transparent;
}

.btn-line:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.on-dark .btn-line {
  color: var(--white);
}

.on-dark .btn-line:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}

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

/* Header */

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

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--red);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
  transition: min-height 260ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.site-header {
  transition: box-shadow 260ms ease, margin-bottom 260ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* The margin keeps page content from jumping while the header shrinks */
.site-header.is-scrolled {
  margin-bottom: calc(var(--header-h) - var(--header-h-sm));
  box-shadow: 0 10px 28px rgba(8, 44, 96, 0.14);
}

.site-header.is-scrolled .header-inner {
  min-height: var(--header-h-sm);
}

.brand img,
.brand-name strong {
  transition: width 260ms cubic-bezier(0.2, 0.7, 0.2, 1), height 260ms cubic-bezier(0.2, 0.7, 0.2, 1), font-size 260ms ease;
}

.site-header.is-scrolled .brand img {
  width: 40px;
  height: 40px;
}

.site-header.is-scrolled .brand-name strong {
  font-size: 1.4rem;
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 1;
  height: 3px;
  background: var(--navy);
  transform-origin: left;
  scale: 0 1;
}

@supports (animation-timeline: scroll()) {
  .scroll-progress {
    animation: scroll-progress linear both;
    animation-timeline: scroll(root block);
  }
}

@keyframes scroll-progress {
  to { scale: 1 1; }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
  color: var(--navy);
  text-decoration: none;
}

.brand img {
  width: 54px;
  height: 54px;
}

.brand-name {
  display: grid;
  font-family: var(--display);
  line-height: 0.95;
  text-transform: uppercase;
}

.brand-name strong {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-name span {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--red);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav a {
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
}

.nav a:not(.btn):hover,
.nav a[aria-current="page"] {
  color: var(--red);
}

.nav .tel {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.nav .tel svg {
  width: 1rem;
  height: 1rem;
  fill: var(--red);
}

.nav .btn {
  min-height: 2.75rem;
  padding: 0.55rem 1.1rem;
  color: var(--white);
}

.menu-btn {
  display: none;
  min-height: 2.75rem;
  padding: 0.5rem 0.9rem;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

/* Hero */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100svh - var(--header-h));
  min-height: max(560px, calc(100svh - var(--header-h)));
  overflow: hidden;
  background: var(--navy-deep) url("/img/hero-poster.jpg") center / cover no-repeat;
  color: var(--white);
  isolation: isolate;
}

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

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 55% 60% at 50% 50%, rgba(5, 28, 62, 0.5), rgba(5, 28, 62, 0.15) 75%),
    linear-gradient(180deg, rgba(5, 28, 62, 0.45) 0%, rgba(5, 28, 62, 0.3) 45%, rgba(5, 28, 62, 0.8) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -6rem;
  bottom: 3.5rem;
  z-index: -1;
  width: 26rem;
  height: 6px;
  background: var(--red);
  transform: rotate(-28deg);
  box-shadow: 0 22px 0 -1px rgba(255, 255, 255, 0.85), 0 44px 0 0 var(--red);
  opacity: 0.9;
}

.hero-inner {
  display: grid;
  justify-items: center;
  gap: 0;
  width: min(100% - 2.5rem, 58rem);
  padding: 3rem 0 4.5rem;
  text-align: center;
}

.hero-logo {
  width: clamp(170px, 24vw, 280px);
  height: auto;
  margin-bottom: 1.6rem;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12), 0 24px 60px rgba(0, 0, 0, 0.55);
  animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero h1 {
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 4px 30px rgba(0, 0, 0, 0.55);
  animation: rise 700ms 120ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero .lede {
  margin-inline: auto;
  color: var(--white);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7), 0 2px 18px rgba(0, 0, 0, 0.5);
  animation: rise 700ms 200ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero .btn-row {
  justify-content: center;
  animation: rise 700ms 280ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.video-toggle {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  background: rgba(5, 28, 62, 0.6);
  color: var(--white);
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.video-toggle:hover {
  background: rgba(5, 28, 62, 0.85);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

/* Trust strip */

.trust {
  background: var(--navy);
  color: var(--white);
}

.trust ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust li {
  position: relative;
  padding: 1.15rem 1rem;
  text-align: center;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trust li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 1.6rem;
  background: var(--red);
  transform: translateY(-50%) skewX(-24deg);
}

.trust strong {
  color: #ff8a93;
  font-weight: 700;
}

/* Sections */

.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section-tight {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section-steel {
  background:
    repeating-linear-gradient(135deg, rgba(8, 44, 96, 0.035) 0 1px, transparent 1px 9px),
    var(--steel);
}

.section-navy {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 9px),
    var(--navy);
  color: rgba(255, 255, 255, 0.9);
}

.section-navy h2,
.section-navy h3 {
  color: var(--white);
}

.section-navy .lede {
  color: rgba(255, 255, 255, 0.82);
}

.section-head {
  max-width: 44rem;
  margin-bottom: 2.5rem;
}

.page-hero {
  position: relative;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 9px),
    var(--navy);
  color: var(--white);
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -4rem;
  top: 50%;
  width: 22rem;
  height: 5px;
  background: var(--red);
  transform: rotate(-28deg);
  box-shadow: 0 18px 0 0 rgba(255, 255, 255, 0.7);
}

.page-hero h1 {
  max-width: 18ch;
  color: var(--white);
}

.page-hero .lede {
  color: rgba(255, 255, 255, 0.86);
}

/* Tiles */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 13rem;
  padding: 1.6rem 1.4rem 1.4rem;
  background: var(--white);
  color: var(--charcoal);
  text-decoration: none;
  transition: background 160ms ease;
}

.tile::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 4px;
  background: var(--red);
  transition: width 220ms ease;
}

a.tile:hover {
  background: var(--steel);
}

a.tile:hover::before {
  width: 100%;
}

.tile-num {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red);
}

.tile h3 {
  font-size: 1.6rem;
  text-transform: uppercase;
}

.tile p {
  color: var(--muted);
  font-size: 1rem;
}

.tile .more {
  margin-top: auto;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

/* Featured project */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

.split.reverse > :first-child {
  order: 2;
}

.mosaic {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.6rem;
  aspect-ratio: 5 / 4;
}

.mosaic figure {
  margin: 0;
  overflow: hidden;
  background: var(--navy-deep);
}

.mosaic figure:first-child {
  grid-row: span 2;
}

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

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

.gallery figure {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery figcaption,
.photo figcaption {
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.gallery figcaption strong,
.photo figcaption strong {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}

.photo {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--white);
}

.photo img {
  width: 100%;
  object-fit: cover;
}

.photo.tall img {
  aspect-ratio: 4 / 5;
}

.photo.wide img {
  aspect-ratio: 16 / 9;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  border-top: 4px solid var(--red);
  background: rgba(255, 255, 255, 0.06);
}

.steps li::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: #ff8a93;
}

.steps h3 {
  margin-bottom: 0.4rem;
  font-size: 1.5rem;
  text-transform: uppercase;
}

/* Lists */

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

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

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.85rem;
  height: 3px;
  background: var(--red);
  transform: skewX(-30deg);
}

.facts {
  display: grid;
  gap: 0;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.facts li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.facts span {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

.note {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border-left: 4px solid var(--blue);
  background: var(--steel);
  font-size: 0.97rem;
  color: var(--charcoal);
}

.section-navy .note {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.88);
}

/* Capability groups */

.cap-group + .cap-group {
  margin-top: 3.5rem;
}

.cap-group > h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

/* CTA close */

.cta-close {
  position: relative;
  overflow: hidden;
  background: var(--red);
  color: var(--white);
}

.cta-close::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.06) 0 2px, transparent 2px 14px);
}

.cta-close .wrap {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-close h2 {
  max-width: 22ch;
  color: var(--white);
}

.cta-close .btn-row {
  margin-top: 0;
}

.cta-close .btn-white {
  background: var(--white);
  color: var(--red);
}

.cta-close .btn-white:hover {
  background: var(--navy);
  color: var(--white);
}

.cta-close .btn-line {
  color: var(--white);
}

.cta-close .btn-line:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--red);
}

/* Forms */

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.form-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-top: 5px solid var(--navy);
  background: var(--white);
  box-shadow: 0 18px 40px rgba(8, 44, 96, 0.08);
}

.form-card h2 {
  margin-bottom: 0.4rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

form {
  display: grid;
  gap: 1.15rem;
}

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

.form-grid .full {
  grid-column: 1 / -1;
}

fieldset {
  margin: 0;
  padding: 1.25rem 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}

fieldset[hidden] {
  display: none;
}

legend {
  padding: 0;
  margin-bottom: 0.9rem;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}

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

.field > label,
.field > .label {
  font-weight: 600;
  color: var(--navy);
}

.req {
  color: var(--red);
}

.hint {
  font-size: 0.92rem;
  color: var(--muted);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid #9aa9bc;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--charcoal);
  font: inherit;
}

textarea {
  min-height: 7.5rem;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(26, 91, 165, 0.25);
  outline-offset: 0;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--red);
}

.error-msg {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--red);
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  cursor: pointer;
}

.choice input {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: var(--navy);
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  font-size: 0.97rem;
}

.consent input {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.2rem;
  accent-color: var(--navy);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-summary {
  padding: 0.9rem 1rem;
  border-left: 4px solid var(--red);
  background: #fdeced;
  font-weight: 600;
  color: var(--red-dark);
}

.form-summary:empty {
  display: none;
}

.aside-card {
  padding: 1.6rem;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.9);
}

.aside-card h2,
.aside-card h3 {
  color: var(--white);
}

.aside-card h3 {
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.aside-card + .aside-card {
  margin-top: 1rem;
}

.aside-card .btn {
  margin-top: 1rem;
  width: 100%;
}

.aside-card a:not(.btn) {
  color: var(--white);
}

.summary-list {
  display: grid;
  gap: 0;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.summary-list li {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.summary-list span {
  font-weight: 600;
  color: var(--navy);
}

/* Landing pages */

.landing-hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  background: var(--steel);
}

.landing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.landing-grid .photo {
  margin-top: 1.75rem;
}

.prose {
  max-width: 46rem;
}

.prose h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.9rem;
}

.prose p + p {
  margin-top: 1rem;
}

/* Footer */

.site-footer {
  padding: 3.5rem 0 2rem;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.footer-brand img {
  width: 76px;
  height: 76px;
  flex: none;
}

.site-footer h2 {
  margin-bottom: 0.7rem;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  color: var(--white);
}

.site-footer strong {
  color: var(--white);
}

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

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

.footer-base {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-base {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 2rem;
}

.footer-base p + p {
  margin-top: 0.35rem;
}

.footer-base .credit {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  margin-top: 0;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-base .credit a {
  text-decoration-color: var(--red);
  text-underline-offset: 3px;
}

.footer-base .credit a:hover {
  color: #ff9aa2;
}

@media (max-width: 640px) {
  .footer-base {
    grid-template-columns: 1fr;
  }

  .footer-base .credit {
    grid-column: 1;
    grid-row: auto;
    margin-top: 0.85rem;
  }
}

/* Mobile call/quote bar */

.mobile-cta {
  display: none;
}

@media (max-width: 640px) {
  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
    background: var(--navy-deep);
    border-top: 3px solid var(--red);
    box-shadow: 0 -10px 28px rgba(5, 28, 62, 0.25);
    translate: 0 110%;
    transition: translate 320ms cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .site-header.is-scrolled ~ .mobile-cta {
    translate: 0 0;
  }

  body.is-typing .site-header ~ .mobile-cta {
    translate: 0 110%;
  }

  .mobile-cta .btn {
    flex: 1;
    min-height: 3rem;
  }

  .mobile-cta svg {
    width: 1.05rem;
    height: 1.05rem;
    fill: currentColor;
  }

  .mobile-cta .btn-white {
    background: var(--white);
    color: var(--navy);
  }

  body:has(.mobile-cta) .site-footer {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }
}

/* Responsive */

@media (max-width: 1060px) {
  .nav .tel span {
    display: none;
  }
}

@media (max-width: 940px) {
  :root {
    --header-h: 68px;
    --header-h-sm: 56px;
  }

  .menu-btn {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    background: var(--white);
    border-bottom: 3px solid var(--red);
    box-shadow: 0 18px 30px rgba(8, 44, 96, 0.15);
  }

  .nav.open {
    display: flex;
  }

  .nav a:not(.btn) {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav .tel span {
    display: inline;
  }

  .nav .btn {
    margin-top: 1rem;
  }

  .split,
  .split.reverse,
  .form-layout,
  .landing-grid {
    grid-template-columns: 1fr;
  }

  .split.reverse > :first-child {
    order: 0;
  }

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

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

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .brand-name strong {
    font-size: 1.35rem;
  }

  .site-header.is-scrolled .brand img {
    width: 36px;
    height: 36px;
  }

  .site-header.is-scrolled .brand-name strong {
    font-size: 1.2rem;
  }

  .brand-name span {
    font-size: 0.72rem;
  }

  .trust ul {
    grid-template-columns: 1fr;
  }

  .trust li {
    padding: 0.75rem 1rem;
  }

  .trust li + li::before {
    display: none;
  }

  .trust li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .hero::after {
    display: none;
  }

  .hero .btn-row .btn,
  .cta-close .btn {
    width: 100%;
  }

  .video-toggle {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .gallery,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .mosaic {
    aspect-ratio: 1 / 1;
  }

  .facts li,
  .summary-list li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

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

/* Area map: drawn base map with a radar sweep and HTML labels on top */
.area-layout {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1060px) {
  .area-layout {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 3.5rem;
  }
}

.area-map {
  margin: 0;
}

.map-stage {
  position: relative;
  overflow: hidden;
  background: var(--steel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(8, 44, 96, 0.14), inset 0 3px 0 var(--red);
  container-type: inline-size;
}

.map-stage img {
  width: 100%;
}

.map-fx,
.map-marks,
.map-glows,
.map-text,
.map-corners {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.map-fx {
  overflow: hidden;
}

.map-marks {
  width: 100%;
  height: 100%;
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 91, 165, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 91, 165, 0.09) 1px, transparent 1px);
  background-size: clamp(26px, 4.2cqi, 46px) clamp(26px, 4.2cqi, 46px);
  mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 90%);
}

.map-radar {
  position: absolute;
  width: 230cqi;
  aspect-ratio: 1;
  translate: -50% -50%;
  background: conic-gradient(from 0deg,
    transparent 0 72%,
    rgba(26, 91, 165, 0.04) 82%,
    rgba(26, 91, 165, 0.13) 95%,
    rgba(26, 91, 165, 0.28) 99.3%,
    rgba(255, 255, 255, 0.95) 99.6%,
    transparent 99.8%);
  opacity: 0;
}

.map-ring {
  fill: none;
  stroke: var(--navy);
  stroke-width: 3;
  stroke-dasharray: 14 12;
  opacity: 0.45;
}

.map-dot {
  fill: var(--red);
  stroke: var(--white);
  stroke-width: 5;
}

.map-shop {
  fill: var(--navy);
  stroke: var(--white);
  stroke-width: 7;
}

.map-shop-pulse {
  fill: none;
  stroke: var(--red);
  stroke-width: 5;
  opacity: 0;
}

.map-glow {
  position: absolute;
  width: clamp(18px, 3.2cqi, 34px);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(200, 18, 33, 0.5) 18%, rgba(200, 18, 33, 0.2) 46%, transparent 70%);
}

.map-label,
.map-county,
.map-river,
.map-ring-label,
.map-shop-label {
  position: absolute;
  margin: 0;
  line-height: 1;
  white-space: nowrap;
}

.map-label {
  color: var(--charcoal);
  font-weight: 700;
  font-size: clamp(10px, 1.6cqi, 17px);
  text-shadow: 0 0 6px var(--white), 0 0 2px var(--white), 0 1px 0 var(--white);
  transform: translate(clamp(8px, 1.1cqi, 14px), -50%);
}

.map-label.is-l { transform: translate(calc(-100% - clamp(8px, 1.1cqi, 14px)), -50%); }
.map-label.is-t { transform: translate(-50%, calc(-100% - clamp(7px, 1cqi, 12px))); }
.map-label.is-b { transform: translate(-50%, clamp(7px, 1cqi, 12px)); }

.map-shop-label {
  display: grid;
  gap: 0.2em;
  padding: 0.45em 0.6em;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(11px, 2cqi, 20px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--navy);
  text-align: center;
  border-bottom: 3px solid var(--red);
  transform: translate(-50%, calc(-100% - clamp(12px, 2cqi, 22px)));
}

.map-shop-label span {
  font-family: var(--body);
  font-size: 0.68em;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  opacity: 0.85;
}

.map-county {
  transform: translate(-50%, -50%);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(11px, 2.1cqi, 24px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  opacity: 0.7;
}

.map-county span {
  font-weight: 600;
  letter-spacing: 0.12em;
}

.map-river {
  transform: translate(-50%, -50%);
  font-family: var(--body);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(10px, 1.6cqi, 17px);
  letter-spacing: 0.06em;
  color: #4f7fb5;
}

.map-ring-label {
  transform: translate(-50%, -50%);
  padding: 0.25em 0.45em;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(9px, 1.25cqi, 13px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(8, 44, 96, 0.35);
}

.map-shield {
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: clamp(18px, 2.3cqi, 28px);
  height: clamp(21px, 2.7cqi, 33px);
  padding-top: 0.35em;
  font-family: var(--body);
  font-weight: 800;
  font-size: clamp(8px, 0.95cqi, 12px);
  line-height: 1;
  color: var(--white);
  background: linear-gradient(var(--red), var(--red)) top / 100% 28% no-repeat, var(--navy);
  border-radius: 2px 2px 45% 45% / 2px 2px 30% 30%;
  box-shadow: 0 0 0 1.5px var(--white), 0 1px 3px rgba(8, 44, 96, 0.3);
}

.map-corners span {
  position: absolute;
  width: clamp(14px, 2.2cqi, 26px);
  aspect-ratio: 1;
  border: 0 solid var(--red);
}

.map-corners span:nth-child(1) { top: 12px; left: 12px; border-width: 2px 0 0 2px; }
.map-corners span:nth-child(2) { top: 12px; right: 12px; border-width: 2px 2px 0 0; }
.map-corners span:nth-child(3) { bottom: 12px; left: 12px; border-width: 0 0 2px 2px; }
.map-corners span:nth-child(4) { bottom: 12px; right: 12px; border-width: 0 2px 2px 0; }

.map-chip {
  position: absolute;
  top: clamp(18px, 2.6cqi, 28px);
  left: clamp(30px, 4.4cqi, 48px);
  padding: 0.4em 0.7em;
  font-family: var(--display);
  font-size: clamp(10px, 1.3cqi, 14px);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--red);
}

.area-map figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  margin-top: 14px;
  font-size: 0.94rem;
  color: var(--muted);
}

.map-key {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--charcoal);
}

.map-key-dot,
.map-key-shop {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 2px var(--white), 0 0 0 3px var(--line);
}

.map-key-shop {
  width: 14px;
  height: 14px;
  background: var(--navy);
}

.map-key-ring {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px dashed rgba(8, 44, 96, 0.6);
}

.map-pause {
  margin-left: auto;
  min-height: 32px;
  padding: 0.55em 0.9em;
  font: 700 0.8rem/1 var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.map-pause:hover {
  border-color: var(--navy);
}

@media (max-width: 599px) {
  .map-shield,
  .map-chip,
  .map-river { display: none; }
  .map-label { font-size: 8.5px; }
  .map-label.m-r { transform: translate(6px, -50%); }
  .map-label.m-l { transform: translate(calc(-100% - 6px), -50%); }
  .map-label.m-t { transform: translate(-50%, calc(-100% - 5px)); }
  .map-label.m-b { transform: translate(-50%, 5px); }
  .map-county { font-size: 8.5px; letter-spacing: 0.12em; }
  .map-county span { display: none; }
  .map-ring-label { font-size: 8px; }
  .map-shop-label { font-size: 9px; padding: 0.4em 0.5em; }
  .map-shop-label span { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .motion .map-radar { opacity: 1; animation: map-radar 6s linear infinite; }
  .motion .map-glow { animation: map-halo var(--bt, 2.8s) ease-in-out var(--bd, 0ms) infinite both; }
  .motion .map-dot {
    transform-box: fill-box;
    transform-origin: center;
    animation:
      map-drop 0.5s cubic-bezier(.2, .9, .3, 1.4) var(--gd, 0ms) both,
      map-blink var(--bt, 2.8s) ease-in-out var(--bd, 0ms) infinite;
  }
  .motion .map-shop-pulse {
    transform-box: fill-box;
    transform-origin: center;
    animation: map-ping 2.4s ease-out infinite;
  }
  .map-stage.is-paused .map-radar,
  .map-stage.is-paused .map-glow,
  .map-stage.is-paused .map-dot,
  .map-stage.is-paused .map-shop-pulse,
  .map-stage.is-offscreen .map-radar,
  .map-stage.is-offscreen .map-glow,
  .map-stage.is-offscreen .map-dot,
  .map-stage.is-offscreen .map-shop-pulse { animation-play-state: paused; }
}

@keyframes map-radar { to { rotate: 360deg; } }

@keyframes map-halo {
  0%, 100% { opacity: 0.25; transform: translate(-50%, -50%) scale(0.85); }
  46% { opacity: 1; transform: translate(-50%, -50%) scale(1.35); }
  62% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes map-blink {
  0%, 100% { opacity: 0.6; }
  46% { opacity: 1; }
  62% { opacity: 0.7; }
}

@keyframes map-drop { from { opacity: 0; transform: translateY(-40px) scale(0.4); } }

@keyframes map-ping {
  0% { opacity: 0.9; transform: scale(1); }
  100% { opacity: 0; transform: scale(3.2); }
}

/* Scroll reveal: js/site.js adds .reveal only when motion is allowed */
[data-count] {
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: no-preference) {
  .motion .reveal {
    opacity: 0;
    translate: 0 28px;
    transition:
      opacity 650ms cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--i, 0) * 90ms),
      translate 650ms cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--i, 0) * 90ms);
  }

  .motion .reveal.is-in {
    opacity: 1;
    translate: 0 0;
  }

  /* The tile grid draws its borders with a grey background, so tiles stay opaque and their content moves */
  .motion .tiles > .reveal {
    opacity: 1;
    translate: none;
  }

  .motion .tiles > .reveal > * {
    opacity: 0;
    translate: 0 18px;
    transition:
      opacity 550ms cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--i, 0) * 90ms),
      translate 550ms cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--i, 0) * 90ms);
  }

  .motion .tiles > .reveal.is-in > * {
    opacity: 1;
    translate: 0 0;
  }

  .motion .section-head.reveal .eyebrow::before {
    transform-origin: left;
    scale: 0 1;
    transition: scale 500ms cubic-bezier(0.2, 0.7, 0.2, 1) 250ms;
  }

  .motion .section-head.reveal.is-in .eyebrow::before {
    scale: 1 1;
  }
}

/* Page transitions: browsers without cross-document view transitions navigate normally */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }

  .site-header {
    view-transition-name: site-header;
  }

  ::view-transition-group(site-header) {
    animation-duration: 0s;
  }

  ::view-transition-old(root) {
    animation: page-out 220ms cubic-bezier(0.4, 0, 1, 1) both;
  }

  ::view-transition-new(root) {
    animation: page-in 380ms cubic-bezier(0.2, 0.7, 0.2, 1) 80ms both;
  }
}

@keyframes page-out {
  to { opacity: 0; translate: 0 -14px; }
}

@keyframes page-in {
  from { opacity: 0; translate: 0 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
