@font-face {
  font-family: "PP Editorial New";
  src: url("fonts/PPEditorialNew-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Neue Web";
  src: url("fonts/HelveticaNeue-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #213453;
  --ivory: #f9efe1;
  --ivory-muted: rgba(249, 239, 225, 0.72);
  --page-pad-x: clamp(22px, 4vw, 64px);
  --page-pad-y: clamp(22px, 4vh, 44px);
  --display: "PP Editorial New", Georgia, serif;
  --sans: "Helvetica Neue Web", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --arrival: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  min-width: 320px;
  background: var(--navy);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 500;
  line-height: 1.45;
}

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

a:focus-visible {
  outline: 1px solid var(--ivory);
  outline-offset: 6px;
}

.validation-page {
  width: 100%;
  height: 100vh;
  height: 100svh;
  padding: var(--page-pad-y) var(--page-pad-x);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.locations,
.contact-link {
  position: relative;
  z-index: 1;
  font-size: 10px;
  letter-spacing: 0.17em;
  line-height: 1.3;
  text-transform: uppercase;
  opacity: 0;
  animation: detail-arrive 700ms ease-out 1450ms forwards;
}

.locations {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.positioning {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.wordmark {
  display: block;
  width: min(68vw, 980px);
  height: auto;
  opacity: 0;
  transform: translateY(24px) scale(0.64);
  animation: wordmark-arrive 1500ms var(--arrival) 120ms forwards;
  will-change: opacity, transform;
}

.positioning-copy {
  width: min(700px, 84vw);
  margin-top: clamp(36px, 6.5vh, 72px);
  opacity: 0;
  transform: translateY(18px);
  animation: copy-arrive 800ms var(--arrival) 1120ms forwards;
}

.positioning h1 {
  font-family: var(--display);
  font-size: clamp(30px, 3.35vw, 54px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.positioning p {
  max-width: 650px;
  margin: clamp(20px, 3vh, 30px) auto 0;
  color: var(--ivory-muted);
  font-size: clamp(13px, 1.05vw, 16px);
  line-height: 1.65;
}

.positioning .practice-line {
  max-width: none;
  margin-top: clamp(18px, 2.5vh, 24px);
  color: var(--ivory);
  font-size: clamp(9px, 0.75vw, 11px);
  letter-spacing: 0.14em;
  line-height: 1.6;
  text-transform: uppercase;
}

.contact-link {
  justify-self: center;
  padding-bottom: 4px;
}

.contact-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms ease;
}

.contact-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

@keyframes wordmark-arrive {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.64);
  }
  44% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes copy-arrive {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes detail-arrive {
  to {
    opacity: 1;
  }
}

@media (max-width: 640px) {
  :root {
    --page-pad-y: clamp(18px, 3.5vh, 28px);
  }

  .locations {
    font-size: 8px;
    letter-spacing: 0.12em;
  }

  .wordmark {
    width: min(88vw, 520px);
  }

  .positioning-copy {
    width: 90vw;
    margin-top: clamp(30px, 5.5vh, 46px);
  }

  .positioning h1 {
    font-size: clamp(31px, 9.2vw, 42px);
  }

  .positioning p {
    max-width: 36ch;
    margin-top: 18px;
    font-size: 12px;
    line-height: 1.55;
  }

  .positioning .practice-line {
    max-width: 32ch;
    margin-top: 18px;
    font-size: 9px;
    letter-spacing: 0.12em;
    line-height: 1.75;
  }

  .contact-link {
    font-size: 9px;
  }
}

@media (max-height: 620px) {
  :root {
    --page-pad-y: 16px;
  }

  .wordmark {
    width: min(60vw, 720px);
  }

  .positioning-copy {
    margin-top: 24px;
  }

  .positioning h1 {
    font-size: clamp(27px, 4.5vw, 42px);
  }

  .positioning p {
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.45;
  }

  .positioning .practice-line {
    margin-top: 12px;
    font-size: 8px;
  }
}

@media (max-width: 640px) and (max-height: 620px) {
  .wordmark {
    width: min(78vw, 420px);
  }

  .positioning-copy {
    margin-top: 20px;
  }

  .positioning h1 {
    font-size: clamp(27px, 8vw, 36px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wordmark,
  .positioning-copy,
  .locations,
  .contact-link {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
