/* Gilroy ExtraBold (Radomir Tinkov free font, EULA permits web use via @font-face) */
@font-face {
  font-family: 'Gilroy';
  src: url('/fonts/gilroy-extrabold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0b1f33;
  --navy: #0f2d4f;
  --navy-hover: #0a2240;
  --blue: #145679;
  --sky: #bccdee;
  --muted: #6a7889;
  --line: #dde4ee;
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --title: 'Poppins', system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 88px);
  /* Content block: compact column, centred in the left part of the page */
  --col: 440px;
  --col-left: max(0px, calc(30vw - var(--col) / 2 - var(--gutter)));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--sky);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout (desktop first) ---------- */
.page {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  padding: clamp(24px, 5vh, 56px) var(--gutter);
  isolation: isolate;
}
.main { margin-left: var(--col-left); }

/* Background photo */
.media {
  position: fixed;
  inset: 0;
  margin: 0;
  z-index: -1;
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(188, 205, 238, .55) 0%,
    rgba(188, 205, 238, .35) 45%,
    rgba(188, 205, 238, 0) 62%);
}

.brand {
  display: block;
  width: fit-content;
  margin-bottom: 18px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 10px 30px -18px rgba(11, 31, 51, .45);
}
.logo { width: 210px; }

.main {
  width: min(var(--col), 100%);
}

/* ---------- Headline ---------- */
.headline {
  margin: 0 0 22px;
  font-family: 'Gilroy', var(--title);
  font-weight: 800;
  /* Longest sentence is ~10.2em wide in Gilroy ExtraBold; keep each on one line */
  font-size: min(2.6rem, var(--col) / 10.4);
  line-height: .98;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.headline span { display: block; white-space: nowrap; }
.line-1 { color: var(--navy); }
.line-2 { color: var(--blue); }

/* ---------- Form card ---------- */
.card {
  background: #fff;
  border-radius: 10px;
  padding: 26px 26px 22px;
  box-shadow: 0 24px 50px -24px rgba(11, 31, 51, .38), 0 2px 6px rgba(11, 31, 51, .05);
}
.card-title {
  margin: 0 0 16px;
  font-family: var(--title);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { margin-bottom: 12px; min-width: 0; }
label {
  display: block;
  margin-bottom: 5px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
}
input, textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem; /* 16px stops iOS zooming on focus */
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow: 0 1px 3px rgba(11, 31, 51, .06);
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { resize: vertical; min-height: 80px; display: block; }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(20, 86, 121, .14);
}
input[aria-invalid="true"] { border-color: #c0362c; }

.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.submit {
  width: 100%;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  font: inherit;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--navy);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color .15s ease;
}
.submit:hover { background: var(--navy-hover); }
.submit:disabled { opacity: .7; cursor: progress; }
.submit svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.status { margin: 12px 0 0; font-size: .88rem; font-weight: 600; }
.status:empty { margin: 0; }
.status.is-success { color: #11683a; }
.status.is-error { color: #b42318; }

/* ---------- Tagline ---------- */
.tagline {
  margin: 18px 0 0;
  text-align: center;
  font-family: var(--title);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .01em;
  color: var(--navy);
}

/* ---------- Footer: thin navy strip ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  background: #0F2D4F;
  padding: 20px var(--gutter);
}
.footer-line {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  row-gap: 2px;
  font-size: .78rem;
  line-height: 1.5;
  color: #f4f6f9;
}
.footer-line li { padding: 0 14px; }
.footer-line li + li { border-left: 1px solid rgba(244, 246, 249, .2); }
.footer-line span { color: rgba(244, 246, 249, .62); }
.footer-line a { color: #f4f6f9; font-weight: 600; text-decoration: none; }
.footer-line a:hover { color: var(--cyan); }
.footer-name {
  font-family: var(--title);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #f4f6f9;
}

/* ---------- Tablet / mobile ---------- */
@media (max-width: 860px) {
  :root { --col-left: 0px; }
  body { background: linear-gradient(180deg, var(--sky) 0%, #dfe7f6 60%, #eef2f9 100%); }
  .page { display: block; padding: 20px 16px 28px; }
  .main { width: 100%; }
  .headline, .card, .tagline { max-width: 520px; margin-inline: auto; }
  .logo { width: 234px; }
  .brand { margin-inline: auto; margin-bottom: 16px; }
  .site-footer { padding: 20px 12px; }
  .footer-line { column-gap: 18px; }
  .footer-line li { padding: 0; }
  .footer-line li + li { border-left: 0; }
  .footer-name { flex-basis: 100%; text-align: center; }

  .headline {
    position: relative; z-index: 1; margin-bottom: 0;
    top: 40px; /* sits 40px lower; the form below stays where it is */
    text-align: center;
    font-size: min(2.6rem, (min(100vw, 552px) - 32px) / 10.4);
  }

  /* Full-screen photo behind the logo and title; it scrolls slower than the
     content (parallax, driven by the script at the bottom of the page) */
  .media {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    height: 100lvh;
    margin: 0;
    z-index: -1;
    overflow: hidden;
  }
  .media img {
    height: calc(100% + var(--parallax-travel, 22vh));
    object-position: 72% 0;
    will-change: transform;
  }
  .media::after {
    background: linear-gradient(180deg,
      rgba(188, 205, 238, .75) 0%,
      rgba(188, 205, 238, .35) 26%,
      rgba(188, 205, 238, 0) 46%);
  }

  /* Leave the first screen to the photo, with the top of the form peeking in */
  .card { position: relative; margin-top: max(220px, calc(86svh - 190px)); }
  .tagline {
    background: rgba(255, 255, 255, .85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    width: fit-content;
    padding: 6px 16px;
    border-radius: 999px;
  }
}

/* Phones: zoom the photo out so the whole block pyramid and hand are visible,
   instead of cropping a full-height slice. The soft-blue top of the photo
   fades into a matching sky colour behind the logo and title. */
@media (max-width: 600px) {
  .media {
    background: linear-gradient(180deg, #bccdee 0%, #b8caeb 55%, #cdd5e3 100%);
  }
  .media img {
    position: absolute;
    top: 118px;
    right: -5vw;
    width: 205vw;          /* shows the photo from just left of the blocks to the hand */
    max-width: none;
    height: auto;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 86%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 86%, transparent 100%);
  }
  .media::after {
    background: linear-gradient(180deg, rgba(188, 205, 238, .55) 0%, rgba(188, 205, 238, 0) 22%);
  }
  /* Form starts just under the bottom row of blocks */
  .card { margin-top: calc(118px + 104vw - 141px); }
}

@media (max-width: 480px) {
  .row { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  input, textarea, .submit { transition: none; }
}
