/* Coming soon: temporary page served from the domain root (design/).
   Same tokens as the main site, no JavaScript. */

@font-face {
  font-family: 'Switzer';
  src: url('fonts/Switzer-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Switzer';
  src: url('fonts/Switzer-VariableItalic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f5f8fa;
  --glacier: #e7eef4;
  --line: #d5dee6;
  --ink: #0d1624;
  --ink-soft: #46546a;
  --ink-mute: #647286;
  --cobalt: #1e4fd6;
  --cobalt-press: #143a9e;
  --margin: clamp(1.25rem, 5vw, 6rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  margin: 0;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Switzer', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 4px;
}

.wrap {
  width: 100%;
  max-width: 105rem;
  margin-inline: auto;
  padding-inline: var(--margin);
}

.top {
  padding-top: calc(1.5rem + env(safe-area-inset-top));
}

.brand {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
}

main {
  display: grid;
  align-content: center;
  padding-block: clamp(3rem, 10vh, 7rem);
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 1rem + 8.4vw, 9.5rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.line--2 {
  padding-left: clamp(0rem, 12vw, 14rem);
}

.line > span {
  display: inline-block;
}

h1 em {
  font-style: italic;
  color: var(--cobalt);
}

/* Inline image capsule, same device as the main hero. */
.pill {
  position: relative;
  display: inline-block;
  width: 2.1em;
  height: 0.72em;
  margin-right: 0.18em;
  border-radius: 999px;
  overflow: hidden;
  vertical-align: -0.02em;
  background: var(--glacier);
  isolation: isolate;
}

.pill img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.12) brightness(0.96);
}

.pill::before,
.pill::after {
  content: '';
  position: absolute;
  inset: 0;
}

.pill::before {
  z-index: 1;
  background: linear-gradient(165deg, #a9c8f2 0%, #7ea6ea 60%, #5f8ee4 100%);
  mix-blend-mode: multiply;
}

.pill::after {
  z-index: 2;
  background: #10245e;
  mix-blend-mode: screen;
}

.aside {
  justify-self: end;
  display: grid;
  gap: 1.5rem;
  margin-top: clamp(2rem, 5vh, 3.5rem);
}

.lead {
  margin: 0;
  max-width: 30ch;
  color: var(--ink-soft);
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.625rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.mail {
  margin: 0;
}

.mail a {
  display: inline-block;
  padding-block: 0.4rem;
  color: var(--cobalt);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.875rem);
  letter-spacing: -0.02em;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  overflow-wrap: anywhere;
  transition: color 0.25s var(--ease);
}

.mail a:hover {
  color: var(--cobalt-press);
}

.foot {
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--ink-mute);
  font-size: 0.8125rem;
}

.foot p {
  margin: 0;
}

.foot .wrap {
  align-items: center;
}

.foot nav {
  display: flex;
  gap: 2rem;
}

.foot nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding-block: 0.25rem;
}

.foot nav a:hover {
  color: var(--cobalt);
}

/* Legal pages */
.legal {
  align-content: start;
}

.legal h1 {
  font-size: clamp(2.5rem, 1.3rem + 4.4vw, 5.5rem);
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.legal .body {
  max-width: 62ch;
  color: var(--ink-soft);
}

.legal h2 {
  margin: 2.5rem 0 0.75rem;
  color: var(--ink);
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.legal p,
.legal address,
.legal ul {
  margin: 0 0 1rem;
  font-style: normal;
}

.legal a {
  color: var(--cobalt);
  text-underline-offset: 3px;
}

.back {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  text-decoration: none;
}

.back:hover {
  color: var(--cobalt);
}

/* Entrance: CSS only, skipped when motion is reduced. */
@media (prefers-reduced-motion: no-preference) {
  .line > span {
    animation: rise 1.2s var(--ease) both;
  }

  .line--2 > span {
    animation-delay: 0.12s;
  }

  .pill {
    animation: open 1.1s cubic-bezier(0.76, 0, 0.24, 1) 0.6s both;
  }

  .aside {
    animation: fade 1s var(--ease) 1.1s both;
  }
}

@keyframes rise {
  from {
    transform: translateY(110%);
  }
}

@keyframes open {
  from {
    clip-path: inset(0 100% 0 0 round 999px);
  }
  to {
    clip-path: inset(0 0 0 0 round 999px);
  }
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

@media (max-width: 767px) {
  .line--2 {
    padding-left: 0;
  }

  .aside {
    justify-self: start;
  }
}
