@font-face {
  font-family: "DM Sans";
  src: url("../assets/fonts/dm-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../assets/fonts/dm-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Albert Sans";
  src: url("../assets/fonts/albert-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --navy: #072b49;
  --maple: #c32d29;
  --button-white: #fff;
  --paper: #fcf9f3;
  --entrance-colour: var(--navy);
  --gutter: 32px;
  font: 400 16px/1.5 "Albert Sans", Arial, sans-serif;
  color: var(--paper);
  background: var(--navy);
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { color: inherit; font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.skip-link { position: fixed; z-index: 10; left: 8px; top: 6px; padding: 8px 12px; background: var(--paper); color: var(--navy); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.masthead { position: fixed; inset: 0 0 auto; z-index: 5; background: var(--navy); }
.contact-bar, .main-bar { display: flex; align-items: center; justify-content: space-between; padding-inline: var(--gutter); }
.contact-bar { min-height: 34px; padding-block: 8px; background: var(--maple); font-size: 12px; line-height: 18px; }
.contact-details { display: flex; align-items: center; gap: 32px; }
.contact-details a { text-underline-offset: 2px; }
.main-bar { min-height: 87px; position: relative; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; text-decoration: none; }
.brand-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--paper); }
.brand-icon img { display: block; width: 34px; height: auto; }
.brand-type { display: grid; }
.brand-type strong { font: 600 20px/1.25 "DM Sans", Arial, sans-serif; letter-spacing: -.03em; }
.brand-type small { font: 500 9px/1.5 "DM Sans", Arial, sans-serif; letter-spacing: .025em; text-transform: uppercase; color: #f4efe9d4; }
.site-nav { display: flex; align-items: center; }
.site-nav > a:not(.button) { padding: 32px clamp(10px,1.12vw,16px); font: 600 14px/23px "DM Sans", Arial, sans-serif; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.site-nav > a:not(.button):hover { text-decoration: underline; text-underline-offset: 5px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-width: 160px; min-height: 44px; padding: 8px 26px; border: 0; border-radius: 0; font: 600 14px/1.5 "DM Sans", Arial, sans-serif; text-align: center; text-decoration: none; text-transform: uppercase; }
.primary, .contact-action { color: var(--button-white); background: var(--maple); }
.service-action { color: var(--navy); background: var(--button-white); }
:is(.primary, .contact-action):where(:not(.button-fill)):is(:hover, :focus-visible) {
  color: var(--navy); background: var(--button-white); box-shadow: inset 0 0 0 1px var(--navy);
}
.service-action:where(:not(.button-fill)):is(:hover, :focus-visible) { color: var(--button-white); background: var(--navy); }
.nav-contact { margin-left: 32px; }
.menu-toggle { display: none; }
.button > span { display: inline-block; }
.button:not(.button-fill):active { filter: brightness(.93); }
.hero-actions .button:focus-visible, .masthead .button:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--navy);
}
.contact-dialog .button:focus-visible { outline-color: var(--navy); }

.button-fill {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--maple);
  color: var(--button-white);
  --fill-colour: var(--button-white);
  --fill-ink: var(--navy);
  --fill-edge: rgb(7 43 73 / 65%);
}
.button-fill-light {
  background-color: var(--button-white);
  color: var(--navy);
  --fill-colour: var(--navy);
  --fill-ink: var(--button-white);
  --fill-edge: rgb(255 255 255 / 60%);
}
/* The fill and its label share one clip so each part of a letter stays readable during the wipe. */
.button-fill > .button-fill-face {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: inherit;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--fill-colour);
  color: var(--fill-ink);
  box-shadow: inset 0 0 0 1px var(--fill-edge);
  clip-path: ellipse(85% 145% at 50% var(--fill-origin, 246%));
  pointer-events: none;
}
.button-fill:focus-visible { --fill-origin: 100%; }
@media (hover: hover) and (pointer: fine) {
  .button-fill:hover { --fill-origin: 100%; }
}
@media (hover: none) {
  .button-fill:active { --fill-origin: 100%; }
  .button-fill:active > .button-fill-face { transition-duration: 0s; }
}
@media (prefers-reduced-motion: no-preference) {
  .button-fill-face { transition: clip-path 240ms cubic-bezier(.22,.68,.19,1); }
}
@media (forced-colors: active) {
  .button-fill > .button-fill-face { display: none; }
}

.hero {
  position: relative; isolation: isolate; display: grid; place-items: center;
  min-height: 100vh; min-height: 100svh; padding: 136px var(--gutter);
  overflow: hidden; text-align: center; background: var(--navy);
}
.hero-media, .hero-media::after { position: absolute; inset: 0; pointer-events: none; }
.hero-media { z-index: 0; }
.hero-media video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero-media::after {
  content: "";
  background: radial-gradient(ellipse at center, rgb(5 22 34 / .4) 0%, rgb(5 22 34 / .29) 47%, transparent 85%),
              linear-gradient(180deg, rgb(4 23 40 / .28), rgb(3 18 29 / .33) 55%, rgb(3 18 29 / .39));
}
.hero-inner { position: relative; z-index: 2; display: grid; justify-items: center; align-content: center; row-gap: 32px; width: min(100%, 960px); }
.entrance-mask { max-width: 100%; }
#hero-heading { font: 500 clamp(56px, 6.12vw, 88px)/1.25 "DM Sans", Arial, sans-serif; letter-spacing: -.018em; text-transform: uppercase; }
.hero-description { max-width: 820px; font-size: clamp(20px, 1.67vw, 24px); line-height: 1.5; text-wrap: pretty; color: var(--paper); }
.hero-actions { display: flex; justify-content: center; gap: 16px; }
.hero-inner > :last-child { margin-top: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .button { transition: background-color .16s; }
  :is(.button, .search-submit) span:not(.button-fill-face) { transition: translate 145ms cubic-bezier(.2,.8,.2,1); }
  :is(.button, .search-submit):active span:not(.button-fill-face) {
    translate: 0 1.5px;
    transition-duration: 55ms;
  }
}

.contact-dialog { width: min(460px, calc(100% - 32px)); border: 0; padding: clamp(24px,4vw,36px); background: var(--paper); color: var(--navy); box-shadow: 0 16px 56px #03192d42; }
.contact-dialog::backdrop { background: #03192db8; }
.contact-dialog h2 { font: 600 28px/1.2 "DM Sans", Arial, sans-serif; }
.contact-dialog p { margin-top: 8px; font-size: .94rem; color: #414e54; }
.contact-dialog dl, .service-summary { margin: 24px 0; }
.contact-dialog dl > div { display: flex; justify-content: space-between; gap: 12px; }
.contact-dialog dd { margin: 0; overflow-wrap: anywhere; }
.contact-dialog .button { min-width: 0; }
.service-summary h3 { font: 600 1rem/1.35 "DM Sans", sans-serif; }
.service-summary p { margin-top: 3px; }
.service-summary p + h3 { margin-top: 16px; }
.preview-notice { position: fixed; bottom: 18px; right: var(--gutter); z-index: 6; width: max-content; max-width: calc(100% - 2 * var(--gutter)); background: var(--paper); color: var(--navy); font: 500 14px/1.4 "DM Sans", sans-serif; }
.preview-notice:not(:empty) { padding: 12px 16px; }

@media (min-width: 992px) and (max-width: 1055px) {
  .site-nav > a:not(.button) { padding-inline: 8px; }
  .nav-contact { margin-left: 12px; }
}
@media (max-width: 991px) {
  .contact-details { flex-direction: column; align-items: flex-end; gap: 0; }
  .main-bar { min-height: 76px; }
  .menu-toggle { display: grid; place-items: center; border: 0; color: var(--paper); background: transparent; width: 44px; height: 44px; border-radius: 50%; }
  .menu-toggle[aria-expanded="true"] { background: var(--button-white); color: var(--navy); }
  .menu-toggle[aria-expanded="true"]:is(:focus-visible, :active) {
    background: var(--navy); color: var(--button-white);
    box-shadow: inset 0 0 0 1px var(--button-white);
  }
  @media (hover: hover) and (pointer: fine) {
    .menu-toggle[aria-expanded="true"]:hover {
      background: var(--navy); color: var(--button-white);
      box-shadow: inset 0 0 0 1px var(--button-white);
    }
  }
  .menu-icon { display: block; width: 16px; height: 12px; position: relative; }
  .menu-icon::before, .menu-icon::after, .menu-icon > span {
    position: absolute; inset: 5px 0 auto; height: 2px; background: currentColor; border-radius: 1px;
  }
  .menu-icon::before { content: ""; transform: translateY(-5px); }
  .menu-icon::after { content: ""; transform: translateY(5px); }
  .menu-toggle[aria-expanded="true"] .menu-icon::before { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon::after { transform: rotate(-45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon > span { transform: scaleX(0); opacity: 0; }
  .site-nav { display: none; position: absolute; inset: 100% 0 auto; background: var(--navy); max-height: calc(100svh - 128px); overflow-y: auto; }
  .menu-open .site-nav { display: grid; }
  .site-nav > a:not(.button) { padding: 16px; text-align: center; line-height: 21px; border-top: 1px solid #ffffff15; }
  .nav-contact { margin: 16px var(--gutter); }
  #hero-heading { font-size: 44px; }
  .hero-description { font-size: 20px; }
}
@media (max-width: 991px) and (prefers-reduced-motion: no-preference) {
  .menu-toggle { transition: color .14s, background-color .14s; }
  .menu-icon::before, .menu-icon::after, .menu-icon > span {
    transition: transform .17s cubic-bezier(.2,.8,.2,1), opacity .12s;
  }
  @supports (transition-behavior: allow-discrete) {
    .site-nav {
      opacity: 0;
      translate: 0 -5px;
      transition: opacity .14s ease, translate .16s ease-out, display .16s allow-discrete;
    }
    .menu-open .site-nav { opacity: 1; translate: none; }
    @starting-style {
      .menu-open .site-nav { opacity: 0; translate: 0 -5px; }
    }
  }
}
@media (max-width: 767px) {
  .contact-bar { display: none; }
  .site-nav { max-height: calc(100svh - 76px); }
  .hero { padding-block: 96px; }
  #hero-heading { font-size: 40px; }
}
@media (max-width: 479px) {
  :root { --gutter: 16px; }
  #hero-heading { font-size: clamp(29px,9vw,40px); }
  .hero-inner > :last-child { width: 100%; }
  .hero-actions { flex-direction: column; }
}
@media (max-height: 520px) and (min-width: 480px) {
  .hero { padding-top: 140px; padding-bottom: 32px; }
  .hero-inner { row-gap: 16px; }
  #hero-heading { font-size: 42px; }
  .hero-description { font-size: 18px; }
  .hero-inner > :last-child { margin-top: 0; }
}
