/* getdicon.com */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
  /* Brand colours, taken from the logo */
  --navy: #214685;
  --lime: #c9cd1d;

  --navy-900: #0f2247;
  --navy-800: #16305f;
  --navy-600: #2f5aa6;
  --ink: #14213d;
  --body: #3d4a66;
  --muted: #64708a;
  --line: #dfe5ef;
  --line-strong: #c5cedd;
  --tint: #f3f6fb;
  --tint-strong: #e6ecf7;
  --white: #fff;
  --danger: #b3261e;
  --danger-tint: #fdecea;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1180px;
  --prose: 46rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --header-height: 72px;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgb(15 34 71 / 0.06), 0 4px 12px rgb(15 34 71 / 0.05);
  --shadow-lg: 0 24px 60px -20px rgb(15 34 71 / 0.28);
  --focus-ring: 0 0 0 4px rgb(33 70 133 / 0.16);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 10h13M11.5 5l5 5-5 5'/%3E%3C/svg%3E");
  --icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7.5l5 5 5-5'/%3E%3C/svg%3E");
  --icon-chevron-navy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23214685' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7.5l5 5 5-5'/%3E%3C/svg%3E");
  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Column layout keeps the footer at the bottom of the window on short pages. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

p,
ul,
ol,
dl {
  margin-top: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   Layout and utilities
   ========================================================================== */

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--prose {
  max-width: calc(var(--prose) + 2 * var(--gutter));
}

.section {
  padding-block: var(--section);
}

.section--tint {
  background: var(--tint);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  font-weight: 700;
  color: var(--navy-900);
  background: var(--lime);
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

.eyebrow {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--navy);
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.75rem;
  height: 3px;
  content: "";
  background: var(--lime);
  border-radius: 2px;
}

.section-title {
  max-width: 22em;
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.625rem);
  font-weight: 800;
}

/* ==========================================================================
   Button
   ========================================================================== */

/* Hover fills the button from the left by animating background-size, so the
   label never shifts. */
.btn {
  --btn-bg: var(--navy);
  --btn-fill: var(--navy-900);
  --btn-fg: var(--white);
  --btn-fg-hover: var(--white);
  --btn-ring: transparent;

  display: inline-flex;
  gap: 0.7rem;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.6rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--btn-fg);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  background:
    linear-gradient(var(--btn-fill), var(--btn-fill)) left / 0% 100% no-repeat,
    var(--btn-bg);
  border: 0;
  border-radius: var(--radius-pill);
  box-shadow: inset 0 0 0 1px var(--btn-ring);
  transition:
    background-size 0.28s var(--ease),
    color 0.18s ease,
    box-shadow 0.28s ease,
    transform 0.15s ease;
}

.btn:hover {
  color: var(--btn-fg-hover);
  background-size: 100% 100%, auto;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  cursor: progress;
  opacity: 0.6;
}

.btn--primary {
  --btn-bg: var(--lime);
  --btn-fill: var(--white);
  --btn-fg: var(--navy-900);
  --btn-fg-hover: var(--navy-900);

  box-shadow: 0 10px 30px -12px rgb(201 205 29 / 0.55);
}

.btn--primary:hover {
  box-shadow: 0 14px 36px -12px rgb(255 255 255 / 0.45);
}

.btn--ghost {
  --btn-bg: rgb(255 255 255 / 0.06);
  --btn-fill: var(--white);
  --btn-fg-hover: var(--navy-900);
  --btn-ring: rgb(255 255 255 / 0.38);

  backdrop-filter: blur(6px);
}

.btn--navy:hover {
  box-shadow: 0 14px 30px -14px rgb(15 34 71 / 0.65);
}

.btn--sm {
  min-height: 44px;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn--arrow::after {
  width: 1.05em;
  height: 1.05em;
  content: "";
  background: currentColor;
  -webkit-mask: var(--icon-arrow) center / contain no-repeat;
  mask: var(--icon-arrow) center / contain no-repeat;
  transition: transform 0.25s var(--ease);
}

.btn--arrow:hover::after {
  transform: translateX(5px);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(12px);
  transition: box-shadow 0.5s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px -18px rgb(15 34 71 / 0.35);
}

.site-header__inner {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
}

.site-header__logo {
  display: inline-flex;
  flex-shrink: 0;
  padding-block: 0.5rem;
}

.site-header__logo img {
  width: 132px;
}

.site-nav {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: center;
}

.site-nav__link {
  display: none;
  padding-block: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

@media (min-width: 760px) {
  .site-nav__link {
    display: inline-block;
  }
}

/* Underline that grows from the left on hover; shared by header and footer links. */
.site-nav__link,
.site-footer__nav a {
  position: relative;
}

.site-nav__link::after,
.site-footer__nav a::after {
  position: absolute;
  right: 0;
  bottom: 0.45rem;
  left: 0;
  height: 2px;
  content: "";
  background: var(--lime);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.site-nav__link:hover::after,
.site-footer__nav a:hover::after {
  transform: scaleX(1);
}

/* ==========================================================================
   Background video
   ========================================================================== */

/* Sits behind a section's content and fades in once it plays. Until then, and
   for visitors who prefer reduced motion, the section's own poster image shows. */
.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.bg-video.is-playing {
  opacity: 1;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding-block: clamp(3.5rem, 9vw, 7rem) clamp(4rem, 10vw, 8rem);
  overflow: hidden;
  color: rgb(255 255 255 / 0.88);
  background: var(--navy-900) url("../img/hero-clouds-poster.webp") center / cover no-repeat;
}

/* Phones get a smaller still image, like the smaller video. */
@media (max-width: 720px) {
  .hero {
    background-image: url("../img/hero-clouds-poster-sm.webp");
  }
}

/* Navy veil that keeps the text readable on top of the footage. */
.hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    radial-gradient(50rem 26rem at 100% 0%, rgb(201 205 29 / 0.16), transparent 60%),
    linear-gradient(180deg, rgb(15 34 71 / 0.9) 0%, rgb(22 48 95 / 0.8) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

.hero__title {
  margin-bottom: 1.5rem;
  font-size: clamp(2.5rem, 1.4rem + 5.2vw, 4.75rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--white);
}

.hero__title em {
  font-style: normal;
  color: var(--lime);
}

.hero__lead {
  max-width: 34em;
  margin-bottom: 2.25rem;
  padding-left: 1.25rem;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  font-weight: 500;
  border-left: 4px solid var(--lime);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

/* Two columns at every width; the right-hand column sits one step lower and
   the list reserves that step as bottom padding. */
.benefits {
  --benefit-step: 1.25rem;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.875rem;
  margin: 0;
  padding: 0 0 var(--benefit-step);
  list-style: none;
}

.benefit {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  font-size: clamp(0.8125rem, 0.7rem + 0.5vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  text-transform: uppercase;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
}

.benefit:nth-child(even) {
  translate: 0 var(--benefit-step);
}

.benefit__sign {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--navy-900);
  background: var(--lime);
  border-radius: 50%;
}

.benefit--less .benefit__sign {
  color: var(--lime);
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--lime);
}

@media (min-width: 960px) {
  .hero::before {
    background:
      radial-gradient(50rem 26rem at 100% 0%, rgb(201 205 29 / 0.16), transparent 60%),
      linear-gradient(100deg, rgb(15 34 71 / 0.94) 0%, rgb(22 48 95 / 0.84) 42%, rgb(33 70 133 / 0.5) 100%);
  }

  .hero__inner {
    grid-template-columns: 1.25fr 1fr;
  }

  .benefits {
    --benefit-step: 1.75rem;
  }
}

/* ==========================================================================
   Services
   ========================================================================== */

/* One, two or four columns, so a row never ends with a single leftover card. */
.services__grid {
  display: grid;
  gap: 1.25rem;
  margin: clamp(2rem, 5vw, 3.5rem) 0 0;
  padding: 0;
  list-style: none;
}

.services__grid > li {
  display: flex;
}

@media (min-width: 600px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .services__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.75rem;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.6s var(--ease),
    box-shadow 0.6s var(--ease),
    border-color 0.6s var(--ease);
}

.service::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  content: "";
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease);
}

.service:hover {
  border-color: var(--line-strong);
  box-shadow: 0 28px 50px -28px rgb(15 34 71 / 0.35);
  transform: translateY(-6px);
}

.service:hover::before {
  transform: scaleX(1);
}

.service__icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.5rem;
  background: var(--tint);
  border-radius: 12px;
  transition: background-color 0.6s var(--ease);
}

.service:hover .service__icon {
  background: var(--tint-strong);
}

.service__icon img {
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
}

.service__topic {
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--navy-600);
  text-transform: uppercase;
}

.service__title {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.service__text {
  margin-bottom: 0;
  font-size: 0.9688rem;
}

/* ==========================================================================
   Vision
   ========================================================================== */

.vision__inner {
  display: grid;
  gap: clamp(1.5rem, 5vw, 5rem);
}

.vision__text p {
  max-width: 38em;
  margin-bottom: 1.25rem;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

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

@media (min-width: 900px) {
  .vision__inner {
    grid-template-columns: 1fr 1.1fr;
  }

  .vision__head {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
    align-self: start;
  }
}

/* ==========================================================================
   Experience
   ========================================================================== */

.experience {
  position: relative;
  overflow: hidden;
  color: rgb(255 255 255 / 0.84);
  background: var(--navy-900);
}

.experience::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    radial-gradient(50rem 24rem at 0% 110%, rgb(201 205 29 / 0.16), transparent 60%),
    linear-gradient(180deg, rgb(33 70 133 / 0.9) 0%, rgb(15 34 71 / 0.94) 100%);
}

.experience .bg-video {
  filter: grayscale(1) contrast(1.1);
}

.experience .bg-video.is-playing {
  opacity: 0.55;
}

.experience > .container {
  position: relative;
  z-index: 2;
}

.experience .eyebrow,
.experience .section-title {
  color: var(--white);
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1.25rem;
  margin: clamp(2rem, 5vw, 3.5rem) 0 0;
  padding: 0;
  list-style: none;
}

.fact {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: rgb(15 34 71 / 0.45);
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}

.fact__figure {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.875rem;
  align-items: baseline;
  margin-bottom: 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
}

.fact__figure strong {
  font-size: clamp(3.25rem, 2rem + 6vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--lime);
}

.fact__text {
  max-width: 34em;
  margin-bottom: 0;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact__card {
  display: grid;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 900px) {
  .contact__card {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

.contact__intro {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 15rem;
  padding: clamp(1.5rem, 5vw, 3rem);
  color: rgb(255 255 255 / 0.86);
  background:
    linear-gradient(180deg, rgb(15 34 71 / 0.35) 0%, rgb(15 34 71 / 0.92) 78%),
    url("../img/contact-bg.webp") center / cover no-repeat,
    var(--navy);
}

.contact__title {
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem);
  font-weight: 800;
  color: var(--white);
}

.contact__mail {
  margin-bottom: 0;
}

.contact__mail a {
  font-weight: 700;
  color: var(--lime);
  text-underline-offset: 0.2em;
}

/* ==========================================================================
   Form
   ========================================================================== */

.form {
  position: relative;
  display: grid;
  gap: 1.15rem;
  padding: clamp(1.5rem, 5vw, 3rem);
}

.form__row {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 560px) {
  .form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.form__field {
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

.form__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.form__required {
  margin-left: 0.15em;
  color: var(--danger);
}

.form__control {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background-color: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form__control:hover {
  border-color: var(--navy-600);
}

.form__control:focus {
  border-color: var(--navy);
  outline: none;
  box-shadow: var(--focus-ring);
}

.form__control[aria-invalid="true"] {
  border-color: var(--danger);
}

.form__control[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 4px rgb(179 38 30 / 0.14);
}

textarea.form__control {
  min-height: 8.5rem;
  resize: vertical;
}

/* Native select: what visitors without JavaScript get. */
select.form__control {
  padding-right: 2.5rem;
  cursor: pointer;
  background-image: var(--icon-chevron-navy);
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 1.1rem;
  appearance: none;
}

.form__error {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--danger);
}

.form__error:empty,
.form__status:empty {
  display: none;
}

.form__check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.875rem;
  cursor: pointer;
}

.form__check input {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.1rem 0 0;
  cursor: pointer;
  accent-color: var(--navy);
}

.form__check a {
  font-weight: 600;
  color: var(--navy);
  text-underline-offset: 0.2em;
}

/* Spam trap: off-screen for people, still filled in by bots. */
.form__honeypot {
  position: absolute;
  left: -9999px;
}

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

.form__hint {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.form__footer .btn {
  width: 100%;
  padding-inline: 2.25rem;
  letter-spacing: 0.06em;
}

@media (min-width: 560px) {
  .form__footer .btn {
    width: auto;
  }
}

.form__status {
  margin: 0;
  padding: 0.8rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--danger);
  background: var(--danger-tint);
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   Dropdown (replaces the native select once JavaScript runs)
   -------------------------------------------------------------------------- */

.select {
  position: relative;
}

.select__button {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
}

.select__button::after {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  content: "";
  background: var(--navy);
  -webkit-mask: var(--icon-chevron) center / contain no-repeat;
  mask: var(--icon-chevron) center / contain no-repeat;
  transition: transform 0.25s var(--ease);
}

.select.is-open .select__button {
  border-color: var(--navy);
  box-shadow: var(--focus-ring);
}

.select.is-open .select__button::after {
  transform: rotate(180deg);
}

.select__value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.select__list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 20;
  max-height: 19rem;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
  visibility: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.18s ease,
    transform 0.18s var(--ease),
    visibility 0s 0.18s;
}

.select.is-open .select__list {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}

.select__option {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.35;
  color: var(--ink);
  cursor: pointer;
  border-radius: 8px;
}

.select__option.is-active {
  background: var(--tint);
}

.select__option[aria-selected="true"] {
  font-weight: 600;
  color: var(--navy);
}

.select__option[aria-selected="true"]::after {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  content: "";
  background: var(--navy);
  -webkit-mask: var(--icon-check) center / contain no-repeat;
  mask: var(--icon-check) center / contain no-repeat;
}

/* --------------------------------------------------------------------------
   Success state: a plane takes off with the message
   -------------------------------------------------------------------------- */

.form__success {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 2rem;
  overflow: hidden;
  text-align: center;
  visibility: hidden;
  background: var(--white);
  opacity: 0;
  transition: opacity 0.5s ease, visibility 0s 0.5s;
}

.form__success:focus {
  outline: none;
}

.form.is-sent .form__success {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.form__success-title {
  margin-bottom: 0.5rem;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem);
  font-weight: 800;
}

.form__success-text {
  max-width: 24em;
  margin: 0;
}

.form__success-title,
.form__success-text {
  opacity: 0;
  transform: translateY(0.75rem);
}

.form.is-sent .form__success-title,
.form.is-sent .form__success-text {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease) 1.5s, transform 0.9s var(--ease) 1.5s;
}

.form.is-sent .form__success-text {
  transition-delay: 1.65s;
}

.flight {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.flight__trail {
  fill: none;
  stroke: var(--lime);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 2 9;
  opacity: 0;
}

/* Same curve as the trail's `d` attribute in the markup. */
.flight__plane {
  fill: var(--navy);
  opacity: 0;
  offset-path: path("M -40 300 C 120 300, 250 250, 340 170 S 520 20, 660 -40");
  offset-rotate: auto;
}

.form.is-sent .flight__plane {
  animation: takeoff 2.4s cubic-bezier(0.45, 0, 0.3, 1) 0.15s both;
}

.form.is-sent .flight__trail {
  animation: trail 2.9s ease 0.15s both;
}

@keyframes takeoff {
  0% {
    opacity: 0;
    offset-distance: 0%;
  }

  12%,
  88% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    offset-distance: 100%;
  }
}

@keyframes trail {
  0% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }

  15% {
    opacity: 0.9;
  }

  80% {
    clip-path: inset(0);
    opacity: 0.9;
  }

  100% {
    clip-path: inset(0);
    opacity: 0;
  }
}

/* ==========================================================================
   Text pages (legal, 404)
   ========================================================================== */

.page-head {
  padding-block: clamp(2.5rem, 7vw, 4.5rem);
  background: var(--tint);
  border-bottom: 1px solid var(--line);
}

.page-head__title {
  font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem);
  font-weight: 800;
}

.prose {
  padding-block: clamp(3rem, 7vw, 5rem) clamp(5rem, 12vw, 9rem);
  overflow-wrap: break-word;
}

.prose h2 {
  margin: 2.75rem 0 1rem;
  font-size: 1.375rem;
  font-weight: 700;
}

.prose h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0;
}

.prose p,
.prose ul,
.prose ol {
  margin-bottom: 1.1rem;
}

.prose ul,
.prose ol {
  padding-left: 1.4rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose li::marker {
  color: var(--navy-600);
}

.prose a:not(.btn) {
  font-weight: 600;
  color: var(--navy);
  text-underline-offset: 0.2em;
}

.details {
  margin: 2.5rem 0 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.details__row {
  display: grid;
  gap: 0.15rem 1.5rem;
  padding: 1.1rem 1.5rem;
}

.details__row + .details__row {
  border-top: 1px solid var(--line);
}

.details dt {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--navy-600);
  text-transform: uppercase;
}

.details dd {
  margin: 0;
  font-weight: 500;
  color: var(--ink);
}

@media (min-width: 640px) {
  .details__row {
    grid-template-columns: 14rem 1fr;
    align-items: baseline;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  flex-shrink: 0;
  font-size: 0.875rem;
  color: rgb(255 255 255 / 0.6);
  background: var(--navy-900);
}

.site-footer p {
  margin: 0;
}

.site-footer__top,
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer__top {
  padding-block: 1.75rem 1.5rem;
}

.site-footer__bottom {
  padding-block: 1.1rem 1.4rem;
  font-size: 0.8125rem;
  border-top: 1px solid rgb(255 255 255 / 0.1);
}

.site-footer__logo img {
  width: 104px;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__nav a {
  display: inline-block;
  padding-block: 0.7rem;
  font-weight: 500;
  color: rgb(255 255 255 / 0.86);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.site-footer__bottom a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__bottom a:hover {
  color: var(--lime);
}

/* Phones: spread the three links across one line instead of wrapping one. */
@media (max-width: 479px) {
  .site-footer__nav {
    gap: 0 0.5rem;
    justify-content: space-between;
    width: 100%;
    font-size: 0.8125rem;
  }
}

/* ==========================================================================
   Motion
   ========================================================================== */

/* Stagger: each child starts one step after the previous one. */
.stagger > :nth-child(2) { --step: 1; }
.stagger > :nth-child(3) { --step: 2; }
.stagger > :nth-child(4) { --step: 3; }

/* The benefit tiles follow the three blocks of hero copy. */
.benefit:nth-child(1) { --step: 3; }
.benefit:nth-child(2) { --step: 4; }
.benefit:nth-child(3) { --step: 5; }
.benefit:nth-child(4) { --step: 6; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.75rem);
  }
}

.hero__copy > *,
.benefit {
  animation: rise 1.2s var(--ease) backwards;
  animation-delay: calc(var(--step, 0) * 110ms + 150ms);
}

/* Scroll reveal. Content is only hidden where scripts run, because a script
   (main.js) is what makes it visible again. */
@media (scripting: enabled) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(1.75rem);
    transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
    transition-delay: calc(var(--step, 0) * 90ms);
  }

  [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    animation: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .bg-video {
    display: none;
  }
}
