/* ---- base/fonts.css ---- */
/* Space Grotesk and Readex Pro, self-hosted (SIL Open Font License; licences in assets/fonts/OFL-*.txt).
   Variable fonts: one file per script subset covers every weight; the browser downloads only
   the subsets a page uses (unicode-range). Generated from the Google Fonts CSS. */

/* arabic */
@font-face {
  font-family: 'Readex Pro';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/readex-pro-arabic.woff2') format('woff2');
  unicode-range:
    U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011,
    U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E,
    U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22,
    U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49,
    U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F,
    U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E,
    U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

/* vietnamese */
@font-face {
  font-family: 'Readex Pro';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/readex-pro-vietnamese.woff2') format('woff2');
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301,
    U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* latin-ext */
@font-face {
  font-family: 'Readex Pro';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/readex-pro-latin-ext.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Readex Pro';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/readex-pro-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* vietnamese */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-vietnamese.woff2') format('woff2');
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301,
    U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- base/variables.css ---- */
/* Design tokens: colours, fonts, shadows, easing and spacing shared by every page. */

:root {
  --white: #fff;
  --black: #000;
  --blue: #003594;
  --blue-light: #0a4ab8;
  --royal: #33489b;
  --navy: #041e42;
  --cobalt: #00266b;
  --teal: #00c7b1;
  --orange: #ff8200;
  --orange-dark: #e57500;
  --gray: #c1c5c7;
  --gray-band: #eef0f1;
  --gray-line: rgb(var(--gray-rgb) / 55%);
  --ink: #0b1526;
  --ink-body: rgb(var(--ink-rgb) / 78%);
  --ink-muted: rgb(var(--ink-rgb) / 62%);
  --ink-70: rgb(var(--ink-rgb) / 70%); /* secondary text a step darker than muted */
  --ink-12: rgb(var(--ink-rgb) / 12%);
  --ink-06: rgb(var(--ink-rgb) / 6%);

  /* White at set opacities, for text, lines and fills on the brand colours. */
  --white-08: rgb(var(--white-rgb) / 8%);
  --white-14: rgb(var(--white-rgb) / 14%);
  --white-25: rgb(var(--white-rgb) / 25%);
  --white-40: rgb(var(--white-rgb) / 40%);
  --white-50: rgb(var(--white-rgb) / 50%);
  --white-60: rgb(var(--white-rgb) / 60%);
  --white-72: rgb(var(--white-rgb) / 72%);
  --white-85: rgb(var(--white-rgb) / 85%);
  --white-92: rgb(var(--white-rgb) / 92%);
  --paper: #fbfbf9;
  --card: var(--white);
  --disp: 'Space Grotesk', 'Readex Pro', sans-serif;
  --body: 'Readex Pro', 'Space Grotesk', sans-serif;
  --sh-card:
    0 1px 2px rgb(var(--navy-rgb) / 5%), 0 8px 24px rgb(var(--navy-rgb) / 8%),
    0 24px 64px rgb(var(--navy-rgb) / 7%);
  --sh-float: 0 2px 4px rgb(var(--navy-rgb) / 6%), 0 16px 48px rgb(var(--navy-rgb) / 14%);
  --sh-text: 0 1px 8px rgb(var(--navy-rgb) / 45%); /* light text over photos and video */
  --sh-text-lg: 0 2px 14px rgb(var(--navy-rgb) / 45%);
  --sh-lift: 0 16px 40px rgb(var(--navy-rgb) / 30%); /* a button rising on hover */
  --sh-header: 0 1px 0 var(--white-08), 0 12px 32px rgb(var(--navy-rgb) / 18%);
  --sh-logo: 0 2px 10px rgb(var(--navy-rgb) / 50%); /* drop-shadow() over photos */
  --sh-logo-lg: 0 10px 34px rgb(var(--black-rgb) / 35%);
  --sh-tick: 0 1px 5px rgb(var(--navy-rgb) / 50%);
  --e-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --e-out: cubic-bezier(0.16, 1, 0.3, 1);
  --e-wipe: cubic-bezier(0.83, 0, 0.17, 1);
  --pad-x: clamp(1.25rem, 4vw, 3.5rem);

  /* Breakpoints (custom properties can't be used in media queries, so these are the values to
     write): 640px (phone), 760px (small tablet), 1100.98px / 1101px (the menu button vs the
     inline links; max-width: 1100.98px pairs with min-width: 1101px). The interactive map's
     side-by-side layout starts at 64rem, an exception. */

  /* Focus ring: blue on light backgrounds; dark sections set --focus-color to teal (reset.css). */
  --focus-width: 3px;
  --focus-offset: 3px;
  --focus-offset-inside: calc(var(--focus-width) * -1);
  --focus-color: var(--blue);

  /* Corner radii, named by size in px. */
  --radius-4: 4px;
  --radius-6: 6px;
  --radius-8: 8px;
  --radius-10: 10px;
  --radius-12: 12px;
  --radius-14: 14px;
  --radius-16: 16px;
  --radius-18: 18px;
  --radius-pill: 999px;
  --radius-round: 50%;

  /* Stacking layers, lowest first. */
  --z-rail: 400;
  --z-header: 500;
  --z-overlay: 600;
  --z-loader: 9999;

  /* RGB channels, for brand colours with opacity: rgb(var(--ink-rgb) / 62%). */
  --white-rgb: 255 255 255;
  --black-rgb: 0 0 0;
  --ink-rgb: 11 21 38;
  --navy-rgb: 4 30 66;
  --blue-rgb: 0 53 148;
  --blue-dark-rgb: 0 45 125;
  --cobalt-rgb: 0 38 107;
  --teal-rgb: 0 199 177;
  --orange-rgb: 255 130 0;
  --gray-rgb: 193 197 199;
}

/* ---- base/reset.css ---- */
/* Base elements: box sizing, html and body, links, images, headings, the focus ring, and Lenis smooth-scroll styles. */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  font-size: 100%;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Lenis smooth scrolling: its recommended base styles. Lenis animates the scroll itself, so the
   native smooth behaviour is turned off while it runs. */
html.lenis,
html.lenis body {
  height: auto;
}

html.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-stopped {
  overflow: clip;
}

.lenis [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* The one focus ring. Components change only --focus-offset (negative: drawn inside). */
:focus-visible {
  outline: var(--focus-width) solid var(--focus-color);
  outline-offset: var(--focus-offset);
}

[data-dark],
.header,
.overlay-menu,
.footer,
.rail.is-dark {
  --focus-color: var(--teal);
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: var(--disp);
  line-height: 1.02;
  margin: 0;
}

/* An accent word in a heading: upright and teal. :where() lets any component restyle it. */
:where(h1, h2, h3) em {
  font-style: normal;
  color: var(--teal);
}

@media (prefers-reduced-motion: reduce) {
  /* stylelint-disable declaration-no-important -- reduced motion must beat every animation and transition */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  /* stylelint-enable declaration-no-important */

  html {
    scroll-behavior: auto;
  }
}

/* ---- base/motion.css ---- */
/* Scroll-reveal starting states (.reveal, with JavaScript) and the no-motion overrides that show
   everything in its final state. */

html.js .reveal {
  opacity: 0;
  transform: translateY(36px);
}

html.no-motion .reveal,
html.no-motion .giant-heading__char {
  opacity: 1;
  transform: none;
}

html.no-motion .split-word__text {
  transform: none;
}

/* ---- layout/header.css ---- */
/* Site header (.header, partials/header.njk): logo, link bar, menu button and contact link. */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-header);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.125rem var(--pad-x) 0;
  pointer-events: none;
  transition:
    transform 0.5s var(--e-spring),
    background 0.35s ease,
    padding 0.35s ease,
    box-shadow 0.35s ease;
}

.header > * {
  pointer-events: auto;
}

.header__logo {
  border-radius: var(--radius-14); /* shapes the focus ring */
  display: block;
  transition: transform 0.35s var(--e-spring);
}

.header__logo-img {
  height: 54px;
  width: auto;
  filter: drop-shadow(var(--sh-logo));
}

.header__logo:hover {
  transform: translateY(-2px);
}

/* The link bar (desktop) that also holds the menu button (tablet and phone). */
.header__nav {
  display: flex;
  align-items: stretch;
  background: transparent;
  border-radius: var(--radius-12);
  box-shadow: none;
  overflow: hidden;
  transition:
    background 0.35s var(--e-spring),
    box-shadow 0.35s var(--e-spring);
}

.header__link {
  display: flex;
  align-items: center;
  padding: 0 1.375rem;
  height: 56px;
  font-family: var(--disp);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: var(--sh-text);
  position: relative;
  transition: color 0.25s;
}

.header__link::after {
  content: '';
  position: absolute;
  inset-inline: 22px;
  inset-block-end: 14px;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--e-spring);
}

.header__link:hover::after,
.header__link[aria-current='page']::after {
  transform: scaleX(1);
}

/* The bar clips its overflow, so focus rings in it are drawn inside, rounded like the bar so the
   rings on the end links follow its corners. */
.header__link:focus-visible {
  --focus-offset: var(--focus-offset-inside);

  border-radius: var(--radius-12);
}

/* is-tinted: the random brand colour on hover (modules/header-colors.js). */
.header__nav.is-tinted {
  box-shadow: var(--sh-card);
}

.header__nav.is-tinted .header__link {
  color: var(--white);
  text-shadow: none;
}

.is-tinted .header__link::after {
  background: var(--white);
}

.header__menu-button {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  border: 0;
  cursor: pointer;
  height: 56px;
  padding-block: 0;
  padding-inline: 1.625rem 0.375rem;
  background: transparent;
  color: var(--white);
  text-shadow: var(--sh-text);
  font-family: var(--disp);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.35s var(--e-spring);
}

.header__menu-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 56px;
  background: transparent;
  font-size: 1.15rem;
  font-weight: 500;
  transition:
    background 0.35s var(--e-spring),
    transform 0.3s var(--e-spring);
}

.header__menu-button:hover .header__menu-icon {
  transform: rotate(90deg);
}

.header__menu-button.is-tinted {
  text-shadow: none;
}

.header__menu-button.is-tinted .header__menu-icon {
  background: var(--white-14);
}

.header__menu-button:focus-visible {
  --focus-offset: var(--focus-offset-inside);

  border-radius: var(--radius-12);
}

.header__contact {
  display: flex;
  align-items: center;
  background: transparent;
  border: 1px solid var(--white-40);
  border-radius: var(--radius-12);
  box-shadow: none;
  overflow: hidden;
  height: 56px;
  font-family: var(--disp);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  transition:
    background 0.35s var(--e-spring),
    box-shadow 0.35s var(--e-spring),
    transform 0.35s var(--e-spring),
    border-color 0.25s;
}

.header__contact-text {
  padding: 0 1.5rem;
  white-space: nowrap;
  text-shadow: var(--sh-text);
}

.header__contact:hover {
  transform: translateY(-2px);
}

.header__contact.is-tinted {
  box-shadow: var(--sh-card);
  border-color: transparent;
}

.header__contact.is-tinted .header__contact-text {
  text-shadow: none;
}

/* is-hidden while scrolling down, is-solid once scrolled (modules/header.js). */
.header.is-hidden {
  transform: translateY(-130%);
}

.header.is-hidden:focus-within {
  transform: none;
}

.header.is-solid {
  background: rgb(var(--blue-dark-rgb) / 88%);
  backdrop-filter: blur(14px);
  /* stylelint-disable-next-line property-no-vendor-prefix -- Safari before 18 needs the prefix */
  -webkit-backdrop-filter: blur(14px);
  padding-block: 0.625rem;
  box-shadow: var(--sh-header);
}

.header.is-solid .header__link,
.header.is-solid .header__menu-button,
.header.is-solid .header__contact-text {
  text-shadow: none;
}

@media (min-width: 1101px) {
  .header__menu-button {
    display: none;
  }
}

@media (max-width: 1100.98px) {
  .header__link {
    display: none;
  }
}

@media (max-width: 760px) {
  .header {
    padding-block-start: 0.875rem;
  }

  .header__logo-img {
    height: 34px;
  }

  .header__menu-button {
    padding-inline-start: 1.125rem;
  }

  .header__menu-icon {
    width: 38px;
  }

  .header__contact {
    height: 48px;
  }

  .header__contact-text {
    padding: 0 1rem;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }
}

/* Narrow phones: tighter padding so the menu and contact buttons fit down to 320px. */
@media (max-width: 640px) {
  .header__menu-button {
    gap: 0.5rem;
    padding-inline: 0.5rem 0;
  }

  .header__menu-icon {
    width: 1.5rem;
  }

  .header__contact-text {
    padding: 0 0.375rem;
    font-size: 0.68rem;
    letter-spacing: 0.02em;
  }
}

/* ---- layout/overlay-menu.css ---- */
/* Full-screen menu (.overlay-menu, partials/overlay-menu.njk). The --ov-* properties are set by
   modules/header-colors.js to match the menu button's hover colour. */

.overlay-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: var(--blue);
  background-image: radial-gradient(
    80% 100% at 90% 100%,
    rgb(var(--navy-rgb) / 55%),
    transparent 60%
  );
  color: var(--white);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition:
    clip-path 0.7s var(--e-spring),
    visibility 0s 0.7s,
    background 0.45s var(--e-spring);
}

.overlay-menu.is-open {
  visibility: visible;
  clip-path: inset(0 0 0% 0);
  transition: clip-path 0.7s var(--e-spring);
}

.overlay-menu__links {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.125rem;
  padding: 0 var(--pad-x);
}

.overlay-menu__link {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(1.8rem, 4.6vw, 3.4rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--white);
  opacity: 0;
  transform: translateY(28px);
  transition: color 0.25s;
}

.overlay-menu__link:hover {
  color: var(--ov-accent, var(--teal));
}

.overlay-menu.is-open .overlay-menu__link {
  animation: overlay-menu-rise 0.7s var(--e-spring) forwards;
}

.overlay-menu__number {
  color: var(--ov-accent, var(--teal));
  font-size: 0.9rem;
  vertical-align: super;
  margin-inline-end: 0.875rem;
  letter-spacing: 0.1em;
}

/* Without JavaScript the menu button links to #ovmenu, so the menu opens as the URL's target. */
:where(html:not(.js)) .overlay-menu:target {
  visibility: visible;
  clip-path: inset(0 0 0% 0);
  transition: none;
}

:where(html:not(.js)) .overlay-menu:target .overlay-menu__link {
  opacity: 1;
  transform: none;
}

/* The current page. */
.overlay-menu__link[aria-current='page'] {
  color: var(--ov-accent, var(--teal));
}

@keyframes overlay-menu-rise {
  to {
    opacity: 1;
    transform: none;
  }
}

.overlay-menu__side {
  border-inline-start: 1px solid var(--white-14);
  padding: 7.5rem var(--pad-x) 3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1.125rem;
}

.overlay-menu__text {
  margin: 0;
  color: var(--ov-fg-dim, var(--white-60));
  font-size: 0.92rem;
}

.overlay-menu__contact-link {
  color: var(--ov-fg, var(--white));
}

.overlay-menu__contact-link:hover {
  color: var(--ov-accent, var(--teal));
}

.overlay-menu__close {
  position: absolute;
  inset-block-start: 24px;
  inset-inline-end: var(--pad-x);
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-12);
  border: 1px solid var(--white-25);
  background: transparent;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  transition:
    background 0.25s,
    transform 0.3s var(--e-spring);
}

.overlay-menu__close:hover {
  background: var(--navy);
  transform: rotate(90deg);
}

@media (max-width: 760px) {
  .overlay-menu {
    grid-template-columns: 1fr;
  }

  .overlay-menu__side {
    display: none;
  }
}

/* ---- layout/footer.css ---- */
/* Site footer (.footer, partials/footer.njk). */

.footer {
  background: var(--navy);
  border-block-start: 1px solid var(--white-14);
  color: var(--white);
  padding: 1.625rem var(--pad-x) 1rem;
}

.footer__main {
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
  align-items: center;
  gap: clamp(0.875rem, 2vw, 2rem);
  padding-block-end: 1.25rem;
  border-block-end: 1px solid var(--white-14);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  justify-self: start;
}

.footer__brand-top {
  display: flex;
  align-items: center;
  gap: clamp(0.875rem, 1.6vw, 1.625rem);
}

.footer__home {
  flex: 0 0 auto;
  line-height: 0;
  color: var(--white-85);
  transition: color 0.25s;
}

.footer__home:hover {
  color: var(--teal);
}

.footer__logo {
  width: 150px;
  height: auto;
  display: block;
}

.footer__social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.625rem;
}

.footer__social-list {
  display: flex;
  gap: 0.5rem;
  margin: 0;
  flex: 0 0 auto;
}

.footer__social-link {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-round);
  border: 1px solid var(--white-25);
  color: var(--white-85);
  transition:
    background 0.3s,
    border-color 0.3s,
    transform 0.3s var(--e-spring);
}

.footer__social-link:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--navy);
  transform: translateY(-2px);
}

.footer__social-icon {
  width: 14px;
  height: 14px;
}

.footer__address {
  min-width: 0;
  max-width: 52ch;
  margin: 0;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.6;
  font-weight: 300;
  font-style: normal;
  color: var(--white-60);
}

.footer__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: start;
  gap: 0.4375rem;
}

.footer__contact-link {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--white);
  white-space: nowrap;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: start;
  gap: 0.625rem;
  justify-self: end;
}

.footer__nav-link {
  font-size: 0.92rem;
  color: var(--white-85);
  transition: color 0.25s;
}

.footer__nav-link:hover {
  color: var(--orange);
}

.footer__base {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.75rem 1.875rem;
  flex-wrap: wrap;
  padding-block-start: 0.875rem;
}

.footer__legal {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--white-50);
}

.footer__legal-link {
  color: var(--white-72);
}

/* The footer keeps its finer, rounded focus ring. */
.footer a:focus-visible {
  --focus-width: 2px;

  border-radius: var(--radius-4);
}

@media (max-width: 1100.98px) {
  .footer__main {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
  }

  .footer__brand {
    align-items: center;
  }

  .footer__brand-top {
    justify-content: center;
  }

  .footer__social {
    align-items: center;
  }

  .footer__address {
    flex: 0 0 100%;
  }

  .footer__contact {
    margin: 0 auto;
    align-items: center;
    text-align: center;
  }

  .footer__nav {
    margin: 0 auto;
    align-items: center;
    text-align: center;
  }
}

/* ---- layout/rail.css ---- */
/* Scroll rail (.rail, partials/rail.njk): section ticks on the page edge. modules/rail.js sets
   is-active on the current section's link and is-dark over dark sections. */

.rail {
  position: fixed;
  inset-inline-end: clamp(14px, 1.6vw, 26px);
  inset-block-start: 50%;
  transform: translateY(-50%);
  z-index: var(--z-rail);
  display: flex;
  flex-direction: column;
  gap: 0.9375rem;
  color: var(--navy);
}

.rail.is-dark {
  color: var(--white);
}

.rail__link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  min-height: 14px;
}

.rail__tick {
  flex: 0 0 auto;
  width: 20px;
  height: 2px;
  background: currentcolor;
  opacity: 0.32;
  transition:
    width 0.35s var(--e-spring),
    opacity 0.3s,
    background 0.3s;
}

/* Same specificity from here on: hover beats the dark style, and the active tick beats both. */
.rail.is-dark .rail__tick {
  opacity: 0.55;
  filter: drop-shadow(var(--sh-tick));
}

.rail__link:hover .rail__tick,
.rail__link:focus-visible .rail__tick {
  opacity: 0.75;
}

.rail__link.is-active .rail__tick {
  width: 34px;
  opacity: 1;
  background: var(--teal);
}

.rail__link:focus-visible {
  border-radius: var(--radius-6);
}

/* Shown from 1300px: below that, the ticks overlap full-width photos and buttons. */
@media (max-width: 1299.98px) {
  .rail {
    display: none;
  }
}

/* ---- components/giant-heading.css ---- */
/* Giant section heading (.giant-heading, an h2), split into characters by
   modules/split-headings.js. Modifiers: --center centres it; --compact is the smaller ink heading
   (careers, supplier portal); --plain drops the capitals; --statement is the large centred
   paragraph on the home page. Margins come from the context (the h2 reset sets none). */

.giant-heading {
  font-family: var(--disp);
  font-weight: 700;
  letter-spacing: -0.035em;
  word-spacing: 0.12em;
  text-transform: uppercase;
  text-align: start;
  font-size: clamp(1.87rem, 6.13vw, 6.33rem);
  line-height: 0.95;
  color: var(--navy);
  padding: 0;
}

[data-dark] .giant-heading {
  color: var(--white);
}

.giant-heading--center {
  text-align: center;
}

.giant-heading--compact {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.giant-heading--plain {
  text-transform: none;
}

.giant-heading--statement {
  margin: 0;
  text-align: center;
  font-size: clamp(1.9rem, 4.4vw, 4.4rem);
  line-height: 0.98;
  padding: 0 var(--pad-x);
}

.giant-heading__word {
  display: inline-block;
  white-space: nowrap;
}

/* Characters start faint; scroll-motion.js fills them in as the heading scrolls into view. */
.giant-heading__char {
  opacity: 0.07;
  display: inline-block;
}

/* ---- components/split-word.css ---- */
/* A hero title word (.split-word), wrapped by modules/split-headings.js so the hero intro can
   slide it up from below its own line. --split-word-from sets where the text starts. */

.split-word {
  display: inline-block;
  overflow: clip;
  vertical-align: bottom;
}

.split-word__text {
  display: inline-block;
  font-style: normal;
  transform: translateY(var(--split-word-from, 112%));
}

/* ---- components/stats.css ---- */
/* Stats band (.stats): counters on a blue background. */

.stats {
  background: var(--blue);
  color: var(--white);
  position: relative;
  overflow: clip;
}

.stats__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.0625rem;
  background: var(--white-14);
}

.stats__cell {
  background: var(--blue);
  padding: clamp(3.75rem, 8vw, 6.75rem) clamp(2rem, 4vw, 4rem);
}

.stats__number {
  font-family: var(--disp);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(3.5rem, 6.2vw, 5.9rem);
  color: var(--white);
}

/* The "+" after each number: teal, orange on every second cell. */
.stats__suffix {
  font-style: normal;
  color: var(--teal);
}

.stats__cell:nth-child(even) .stats__suffix {
  color: var(--orange);
}

.stats__label {
  margin-block-start: 0.6875rem;
  color: var(--gray);
  font-size: 1.2rem;
  font-weight: 300;
}

@media (max-width: 1100.98px) {
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .stats__cell {
    padding: 2.75rem 1.5rem;
  }

  .stats__number {
    font-size: clamp(1.8rem, 9vw, 3.4rem);
  }

  .stats__label {
    font-size: 1.05rem;
  }
}

/* ---- components/news.css ---- */
/* News section (.news): heading row and list wrapper. */

.news {
  background: var(--white);
  border-block-start: 1px solid var(--gray-line);
  padding: clamp(4.375rem, 10vh, 7.5rem) 0;
}

.news__head {
  padding: 0 var(--pad-x);
  margin-block-end: 1.25rem;
}

/* The news list follows the spotlight directly, without the top border it has on the home page. */
.news--flush {
  border-block-start: 0;
}

/* ---- components/button.css ---- */
/* Pill button (.button) with an orange sweep on hover. Variants: --ghost (navy outline on light),
   --outline-light (white outline on dark), --navy, --orange (navy sweep) and --small. */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  background: var(--white);
  color: var(--navy);
  font-family: var(--disp);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1.25rem 2.125rem;
  border-radius: var(--radius-pill);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.35s var(--e-spring),
    box-shadow 0.35s;
}

.button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--orange);
  transform: translateX(-101%);
  transition: transform 0.45s var(--e-spring);
  z-index: 0;
}

.button__label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}

.button:hover::before {
  transform: translateX(0);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-lift);
}

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

.button--ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid rgb(var(--navy-rgb) / 35%);
}

.button--ghost:hover {
  box-shadow: var(--sh-card);
}

.button--ghost:hover .button__label {
  color: var(--white);
}

/* Navy buttons: the journey's "Write to us" links and the map link. */
.button--navy {
  background: var(--navy);
  color: var(--white);
}

/* White outline on a dark section or photo (careers call to action, supplier login). */
.button--outline-light {
  background: var(--white-14);
  color: var(--white);
  border: 1px solid var(--white-60);
  backdrop-filter: blur(6px);
  /* stylelint-disable-next-line property-no-vendor-prefix -- Safari before 18 needs the prefix */
  -webkit-backdrop-filter: blur(6px);
}

.button--orange {
  background: var(--orange);
  color: var(--white);
}

.button--orange::before {
  background: var(--navy);
}

/* Smaller, for actions inside cards (downloads). */
.button--small {
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.8rem;
}

/* ---- components/sub-hero.css ---- */
/* Page hero (.sub-hero) with a background image or video, and the centred variant. */

.sub-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: clip;
  background: var(--blue);
  display: flex;
  align-items: flex-end;
}

.sub-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
}

.sub-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgb(var(--cobalt-rgb) / 88%),
    rgb(var(--blue-rgb) / 30%) 55%,
    rgb(var(--navy-rgb) / 42%)
  );
  z-index: 1;
}

.sub-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--pad-x) clamp(2.75rem, 7vh, 5.625rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.25rem;
}

.sub-hero__kicker {
  margin: 0 0 1.25rem;
}

.sub-hero__title {
  color: var(--white);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  font-size: clamp(2.6rem, 7vw, 6.4rem);
  line-height: 0.98;
}

/* Centred variant (careers, supplier portal). */
.sub-hero--centered {
  align-items: center;
}

.sub-hero--centered .sub-hero__inner {
  justify-content: center;
  padding-block-end: 0;
}

.sub-hero--centered .sub-hero__text {
  text-align: center;
}

.sub-hero--centered .sub-hero__title {
  margin: 0 auto;
}

@media (max-width: 760px) {
  .sub-hero__title {
    font-size: clamp(1.9rem, 8.4vw, 2.6rem);
  }
}

/* ---- components/section-heading.css ---- */
/* Section heading row (.section-heading). */

.section-heading {
  padding: clamp(3.75rem, 9vh, 6.25rem) var(--pad-x) 2.125rem;
}

/* ---- components/heading-row.css ---- */
/* Heading row (.heading-row): a section title with an aside (count, button) on one line.
   --center centres the title; --stack puts the aside under it, centred. */

.heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
}

.heading-row--center {
  justify-content: center;
}

.heading-row--stack {
  flex-direction: column;
  align-items: center;
  gap: 1.125rem;
}

/* ---- components/kicker.css ---- */
/* Kicker (.kicker): the small teal label above a hero title. Spacing comes from the hero. */

.kicker {
  font-family: var(--disp);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--teal);
}

/* ---- components/blue-glow.css ---- */
/* Navy and teal glow over a blue section (.blue-glow), drawn behind its content: the stats band
   and the legal hero. The section needs position: relative. */

.blue-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 100% at 85% 0%, rgb(var(--navy-rgb) / 50%), transparent 60%),
    radial-gradient(50% 80% at 10% 100%, rgb(var(--teal-rgb) / 14%), transparent 60%);
}

/* ---- components/dash-list.css ---- */
/* List with a short teal dash before each item (.dash-list; legal text, residency packages).
   Text styles come from the context. */

.dash-list {
  padding: 0;
  list-style: none;
}

.dash-list > li {
  position: relative;
  padding-block: 0 0.75rem;
  padding-inline: 1.5rem 0;
}

.dash-list > li:last-child {
  padding-block-end: 0;
}

/* The dash sits on the middle of the first line, whatever the line height. */
.dash-list > li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: calc(0.5lh - 1px);
  width: 12px;
  height: 2px;
  background: var(--teal);
  transition: background 0.35s;
}

/* ---- components/split.css ---- */
/* Two-column text section (.split): a sticky title column and the text. */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6.25rem);
  padding: clamp(5rem, 12vh, 9.375rem) var(--pad-x);
  align-items: start;
}

.split__aside {
  position: sticky;
  inset-block-start: 120px;
}

.split__text {
  font-weight: 300;
  color: var(--ink-body);
  margin: 0 0 1.125rem;
}

.split__lede {
  font-size: 1.12rem;
  font-weight: 300;
  margin: 0 0 1.375rem;
}

@media (max-width: 1100.98px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split__aside {
    position: static;
  }
}

/* The "About the map" section, with less space before the map. */
.split--tight-end {
  padding-block-end: clamp(1.875rem, 5vh, 3.75rem);
}

/* ---- components/quote-band.css ---- */
/* Centred quote band (.quote-band). */

.quote-band {
  background: var(--gray-band);
  border-block-start: 1px solid var(--gray-line);
  padding: clamp(5rem, 11vh, 8.125rem) var(--pad-x);
  text-align: center;
}

.quote-band__quote {
  margin: 0 auto;
  max-width: 26ch;
  font-family: var(--disp);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(1.6rem, 3.4vw, 3rem);
  line-height: 1.15;
  color: var(--navy);
}

.quote-band__quote em {
  font-style: normal;
  color: var(--teal);
}

/* The paragraph under "Become a partner." */
.quote-band__text {
  max-width: 62ch;
  margin-block: 1.625rem 0;
  margin-inline: auto;
  font-weight: 300;
  color: var(--ink-70);
}

/* ---- components/card.css ---- */
/* Card (.card) in a card grid: number, title, logo or photo, and a description that shows on
   hover or focus. modules/card-hues.js tints it on hover (is-hued, colour in --hue). */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 52svh;
  padding: 1.625rem clamp(1.125rem, 2vw, 2.125rem) clamp(1.75rem, 4.5vh, 2.75rem);
  color: var(--navy);
  background: transparent;
  border-inline-end: 1px solid var(--ink-12);
  transition: background-color 0.45s var(--e-spring);
}

.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.card__num {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  transition: color 0.35s;
  transform-origin: left top;
}

.card__title {
  font-family: var(--disp);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  font-size: clamp(1.7rem, 2.3vw, 2.5rem);
  line-height: 1.08;
  margin: 0.375rem 0 0;
  color: var(--navy);
  transform-origin: left top;
  transition:
    transform 0.45s var(--e-spring),
    color 0.35s;
}

.card:hover .card__title {
  transform: scale(1.06);
}

.card__logo {
  height: 76px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  align-self: flex-start;
  margin: 0.875rem 0 0;
  transition: filter 0.35s;
}

.card__photo {
  width: 100%;
  height: clamp(160px, 24vh, 230px);
  object-fit: cover;
  margin-block-start: 0.875rem;
}

.card__desc {
  display: block;
  margin-block-start: auto;
  transition:
    opacity 0.4s ease,
    transform 0.45s var(--e-spring),
    color 0.35s;
}

/* With a mouse, the description waits for hover or focus (without JS it always shows). */
@media (hover: hover) {
  :where(html.js) .card__desc {
    opacity: 0;
    transform: translateY(14px);
  }
}

.card:hover .card__desc,
.card:focus-within .card__desc {
  opacity: 1;
  transform: none;
}

.card__text {
  font-weight: 300;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ink-70);
  margin: 0 0 1.125rem;
  transition: color 0.35s;
}

.card__text:last-child {
  margin-block-end: 0;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--disp);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  transition: color 0.35s;
}

.card__arrow {
  transition: transform 0.3s var(--e-spring);
}

.card .chip {
  transition:
    color 0.35s,
    border-color 0.35s,
    background-color 0.35s;
}

.card.is-hued {
  background: var(--hue, var(--navy));
}

.card.is-hued .card__num,
.card.is-hued .card__title,
.card.is-hued .card__link {
  color: var(--white);
}

.card.is-hued .card__desc {
  opacity: 1;
  transform: none;
}

.card.is-hued .card__text {
  color: var(--white-85);
}

.card.is-hued .card__logo {
  filter: brightness(0) invert(1);
}

.card.is-hued .chip {
  color: var(--white);
  border-color: var(--white-50);
  background: var(--white-14);
}

.card.is-hued .card__arrow {
  transform: translateX(5px);
}

@media (max-width: 1100.98px) {
  .card {
    min-height: 0;
  }

  .card__desc {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  .card {
    padding: 1.375rem 1.125rem 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .card__title,
  .card__desc,
  .card__logo {
    transition: none;
  }

  .card:hover .card__title {
    transform: none;
  }
}

/* The focus ring is drawn inside, in teal: focus fills the card with a dark brand colour. */
.card:focus-visible {
  --focus-offset: var(--focus-offset-inside);
  --focus-color: var(--teal);
}

/* ---- components/card-grid.css ---- */
/* Card grid (.card-grid) of .card items: 4 columns, --3 or --2 for fewer; --show-desc keeps the
   descriptions visible. The rules below draw the lines between cards. */

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block-start: 1px solid var(--ink-12);
  border-block-end: 1px solid var(--ink-12);
}

.card-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

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

.card-grid > .card:last-child {
  border-inline-end: 0;
}

.card-grid--show-desc .card__desc {
  opacity: 1;
  transform: none;
}

@media (min-width: 1101px) {
  .card-grid > .card:nth-child(4n) {
    border-inline-end: 0;
  }

  .card-grid > .card:nth-child(n + 5) {
    border-block-start: 1px solid var(--ink-12);
  }

  .card-grid--3 > .card:nth-child(4n) {
    border-inline-end: 1px solid var(--ink-12);
  }

  .card-grid--3 > .card:nth-child(3n) {
    border-inline-end: 0;
  }

  .card-grid--3 > .card:nth-child(n + 4) {
    border-block-start: 1px solid var(--ink-12);
  }

  .card-grid--2 > .card:nth-child(3n) {
    border-inline-end: 1px solid var(--ink-12);
  }

  .card-grid--2 > .card:nth-child(2n) {
    border-inline-end: 0;
  }

  .card-grid--2 > .card:nth-child(n + 3) {
    border-block-start: 1px solid var(--ink-12);
  }

  .card-grid > .card:last-child {
    border-inline-end: 0;
  }
}

@media (max-width: 1100.98px) {
  .card-grid,
  .card-grid--3 {
    grid-template-columns: 1fr 1fr;
  }

  .card-grid > .card {
    border-block-start: 1px solid var(--ink-12);
  }

  .card-grid > .card:nth-child(-n + 2) {
    border-block-start: 0;
  }

  .card-grid > .card:nth-child(even) {
    border-inline-end: 0;
  }

  .card-grid > .card:nth-child(odd) {
    border-inline-end: 1px solid var(--ink-12);
  }

  .card-grid > .card:last-child {
    border-inline-end: 0;
  }
}

@media (max-width: 640px) {
  .card-grid,
  .card-grid--3,
  .card-grid--2 {
    grid-template-columns: 1fr;
  }

  .card-grid > .card,
  .card-grid > .card:nth-child(odd) {
    border-inline-end: 0;
  }

  .card-grid > .card:nth-child(n + 2) {
    border-block-start: 1px solid var(--ink-12);
  }
}

/* ---- components/chip.css ---- */
/* Status chip (.chip, partials/program-status-chip.njk); --open for programs taking applications. */

.chip {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.4375rem 0.875rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ink-12);
  color: var(--ink-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.chip--open {
  color: var(--teal);
  border-color: rgb(var(--teal-rgb) / 40%);
  background: rgb(var(--teal-rgb) / 7%);
}

/* ---- components/loader.css ---- */
/* Page loader (.loader) and the exit wipe (.page-wipe), both added by loader.js. While loading,
   <html> has is-loading, then is-revealing as the page appears, and is-leaving when an internal
   link is followed. */

html.is-loading {
  overflow: hidden;
}

html.is-loading main,
html.is-loading footer {
  opacity: 0;
  transform: scale(1.04) translateY(20px);
}

html.is-loading .header {
  opacity: 0;
}

html.is-revealing main,
html.is-revealing footer {
  opacity: 1;
  transform: none;
  transition:
    opacity 1.1s var(--e-spring),
    transform 1.5s var(--e-spring);
}

html.is-revealing .header {
  opacity: 1;
  transition: opacity 1s ease 0.25s;
}

html.is-leaving main,
html.is-leaving footer {
  opacity: 0;
  transform: scale(1.02) translateY(-14px);
  transition:
    opacity 0.85s ease,
    transform 0.95s ease;
}

html.is-leaving .header {
  opacity: 0;
  transition: opacity 0.6s ease;
}

@media (prefers-reduced-motion: reduce) {
  html.is-loading main,
  html.is-loading footer,
  html.is-loading .header {
    opacity: 1;
    transform: none;
  }
}

.loader {
  position: fixed;
  inset: 0;
  z-index: var(--z-loader);
  overflow: hidden;
  pointer-events: none;
  contain: layout paint;
}

.loader__wipe {
  position: absolute;
  inset: -12% 0;
  will-change: transform;
  transform: translateZ(0);
  clip-path: polygon(0 6%, 45% 0, 100% 5%, 100% 100%, 0 100%);
}

.loader__wipe--blue {
  background: var(--blue);
}

.loader__wipe--navy {
  background: var(--navy);
}

.loader__logo {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  will-change: transform, opacity;
  animation: loader-logo-in 0.7s var(--e-spring) 0.28s both;
}

.loader__logo-img {
  width: min(170px, 36vw);
  height: auto;
  filter: drop-shadow(var(--sh-logo-lg));
}

/* is-done: the page is revealing; the logo fades and the wipes slide away. */
.loader.is-done .loader__wipe {
  animation: loader-wipe-out 1.05s var(--e-wipe) 0.22s both;
}

.loader.is-done .loader__wipe--navy {
  animation-delay: 0.34s;
}

.loader.is-done .loader__logo {
  opacity: 1;
  animation: loader-logo-out 0.4s ease both;
}

@keyframes loader-logo-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes loader-logo-out {
  to {
    opacity: 0;
    transform: translateY(-16px) scale(0.95);
  }
}

/* loader.js waits for this animation to end on the navy wipe before removing the loader. */
@keyframes loader-wipe-out {
  to {
    transform: translateY(108%);
  }
}

.page-wipe {
  position: fixed;
  inset: 0;
  z-index: var(--z-loader);
  overflow: hidden;
  pointer-events: none;
  display: none;
}

.page-wipe__panel {
  position: absolute;
  inset: -12% 0;
  will-change: transform;
  transform: translateY(112%) translateZ(0);
  clip-path: polygon(0 6%, 45% 0, 100% 5%, 100% 100%, 0 100%);
}

.page-wipe__panel--blue {
  background: var(--blue);
}

.page-wipe__panel--navy {
  background: var(--navy);
}

.page-wipe.is-active {
  display: block;
}

.page-wipe.is-active .page-wipe__panel {
  animation: page-wipe-in 0.7s var(--e-wipe) both;
}

.page-wipe.is-active .page-wipe__panel--navy {
  animation-delay: 0.12s;
}

@keyframes page-wipe-in {
  to {
    transform: translateY(0) translateZ(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .loader__logo {
    animation: none;
    opacity: 1;
  }

  .loader.is-done {
    display: none;
  }

  .page-wipe,
  .page-wipe.is-active {
    display: none;
  }
}
