@font-face {
  font-family: "Inter";
  src: url("fonts/inter-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/*
 * All sizes below are taken from the PSD (3456px artboard, 2960px content
 * column) and expressed as a fraction of the content width, so the page
 * scales exactly like the artwork.
 */
:root {
  --dark-blue: #004f9f;
  --light-blue: #52c9f5;
  --white: #fff;

  /* Artwork margins are 238px left, 258px right */
  --content: min(85.648%, 1600px);
}

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

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

body {
  margin: 0;
  background: var(--dark-blue);
  color: var(--white);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover,
a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout ---------- */

.page {
  display: grid;
  /* Spacer rows keep the artwork's 391 : 550 split of free vertical space */
  grid-template-rows: auto minmax(2.5rem, 391fr) auto minmax(2.5rem, 550fr) auto;
  container-type: inline-size;
  width: var(--content);
  min-height: 100vh;
  min-height: 100svh;
  margin-left: calc((100% - var(--content)) * 0.48);
}

.page > * {
  --u: calc(100cqi / 2960); /* one PSD pixel */
}

.top {
  grid-row: 1;
  display: flex;
  justify-content: flex-end;
  padding-top: max(1.5rem, calc(var(--u) * 310));
}

.contact-link {
  font-size: max(0.8125rem, calc(var(--u) * 35.4));
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.hero {
  grid-row: 3;
  display: flex;
  flex-direction: column;
}

.logo {
  margin: 0;
  line-height: 0;
}

.logo-mark {
  display: block;
  width: 100%;
  height: auto;
}

.tagline {
  align-self: flex-end;
  /* Cap top sits 0.883em below the wordmark; 0.136em is Inter's cap offset at line-height 1 */
  margin: 0.7466em -0.0846em 0 0;
  font-size: max(0.625rem, calc(var(--u) * 83.1));
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: calc(var(--u) * 200) 0 0;
  padding: 0;
  list-style: none;
  font-size: max(1rem, calc(var(--u) * 58.03));
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.details .caps {
  text-transform: uppercase;
}

.details .divider {
  color: var(--light-blue);
}

.legal {
  grid-row: 5;
  padding-bottom: max(1.5rem, calc(var(--u) * 265));
  color: var(--light-blue);
  font-size: max(0.6875rem, calc(var(--u) * 24));
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.legal p {
  margin: 0;
}

@media (max-width: 800px) {
  .details {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    margin-top: 2.5rem;
  }

  .details .divider {
    display: none;
  }

  .details li {
    padding-left: 0.9rem;
    border-left: 3px solid var(--light-blue);
  }
}

/* ---------- Modal ---------- */

.modal {
  width: min(100% - 2rem, 36rem);
  max-height: calc(100% - 2rem);
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: var(--white);
  color: #10213a;
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.35);
}

.modal::backdrop {
  background: rgb(0 25 60 / 0.7);
}

.modal[open] {
  animation: modal-in 0.2s ease-out;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .modal[open] {
    animation: none;
  }
}

.modal-inner {
  position: relative;
  padding: clamp(1.5rem, 5vw, 2.75rem);
}

.modal h2 {
  margin: 0 0 1.5rem;
  color: var(--dark-blue);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--dark-blue);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: #eef3fa;
}

.modal :focus-visible {
  outline-color: var(--dark-blue);
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.req {
  color: var(--dark-blue);
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid #b9c7da;
  border-radius: 4px;
  background: var(--white);
  color: inherit;
  font: inherit;
  font-size: 1rem;
}

.field textarea {
  resize: vertical;
  min-height: 7rem;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--dark-blue);
  outline: 2px solid rgb(0 79 159 / 0.2);
  outline-offset: 0;
}

.field [aria-invalid="true"] {
  border-color: #c62828;
}

.field-error {
  display: block;
  margin-top: 0.3rem;
  color: #c62828;
  font-size: 0.8125rem;
}

.field-error:empty {
  display: none;
}

.form-status {
  margin: 0.5rem 0 1rem;
  font-size: 0.9375rem;
}

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

.form-status.is-error {
  color: #c62828;
}

.form-status.is-success {
  color: var(--dark-blue);
  font-weight: 600;
}

.submit {
  padding: 0.85rem 2.25rem;
  border: 0;
  border-radius: 4px;
  background: var(--dark-blue);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s;
}

.submit:hover {
  background: #003d7c;
}

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