/* AeroKastell: tokens, type system, header and shared controls. */
@font-face {
  font-family: "Archivo"; font-style: normal; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url("../fonts/archivo-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/outfit-variable.woff2") format("woff2");
}

:root {
  --blue-950: #071650;
  --blue-900: #0A1F6B;
  --blue-800: #0F2D91;
  --blue-700: #173DB8;
  --blue-500: #3F6BE8;
  --blue-300: #A9BEF8;
  --blue-100: #E7EDFD;
  --blue-50: #F4F7FE;
  --white: #FFFFFF;
  --ink: #0A1A52;
  --body: #3D4A78;
  --on-blue: #D5DFFB;
  --red: #E0383E;
  --red-deep: #C42F34;
  --red-press: #A8262B;
  --line: #D9E1F6;
  --header: 68px;
  --gutter: max(clamp(1.25rem, 4.5vw, 4.5rem), env(safe-area-inset-left), env(safe-area-inset-right));
  --bar: 0px; /* height of the collapsible browser toolbar */
  --section: clamp(5.5rem, 11vw, 11rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --z-scrim: 2;
  --z-marks: 3;
  --z-copy: 4;
  --z-header: 10;
  --z-skip: 11;
}

@supports (height: 100lvh) { :root { --bar: calc(100lvh - 100svh); } }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: var(--header); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--white); color: var(--ink);
  font-family: var(--text); font-size: 1.0625rem; line-height: 1.6; font-weight: 350;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, video, svg, canvas { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-stretch: 116%; font-weight: 640; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.3vw, 4rem); line-height: 1.04; letter-spacing: -.028em; }
h3 { letter-spacing: -.016em; }
p { text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(100%, 92rem); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: var(--z-skip);
  background: var(--white); color: var(--ink); padding: .7rem 1.1rem; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 1rem; }

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem;
  padding: .75rem 1.65rem; border-radius: 6px; border: 1.5px solid transparent; cursor: pointer;
  font-weight: 620; font-size: .98rem; line-height: 1.2; text-decoration: none; text-align: center;
  transition: background-color .25s, color .25s, border-color .25s, transform .35s var(--ease), box-shadow .35s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--small { min-height: 2.6rem; padding: .45rem 1.05rem; font-size: .88rem; white-space: nowrap; }
.btn--red { background: var(--red-deep); color: var(--white); }
.btn--red:hover { background: var(--red-press); box-shadow: 0 12px 30px rgba(196, 47, 52, .4); }
.btn--line { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn--line:hover { background: var(--white); border-color: var(--white); color: var(--blue-900); }
.btn--white { background: var(--white); color: var(--red-deep); overflow-wrap: anywhere; }
.btn--white:hover { background: var(--blue-950); color: var(--white); }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); }
.btn--white:focus-visible, .btn--red:focus-visible, .btn--line:focus-visible, .btn--ghost:focus-visible { outline-color: var(--white); }

.top {
  position: fixed; inset: 0 0 auto; z-index: var(--z-header); height: var(--header);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-inline: var(--gutter); background: var(--blue-950);
  border-bottom: 1px solid rgba(169, 190, 248, .14);
}
.top__brand { flex: 0 1 auto; min-width: 0; }
.top__brand img { width: auto; height: 28px; }
.top__nav { display: flex; gap: clamp(1.25rem, 2.6vw, 2.5rem); margin-inline: auto; }
.top__nav a {
  position: relative; color: var(--on-blue); font-size: .9rem; font-weight: 520;
  text-decoration: none; padding: .5rem 0; transition: color .2s;
}
.top__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .25rem; height: 1.5px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.top__nav a:hover { color: var(--white); }
.top__nav a:hover::after { transform: scaleX(1); }
.top :focus-visible { outline-color: var(--white); }
@media (max-width: 860px) {
  :root { --header: 58px; }
  .top__nav { display: none; }
  .top { gap: .75rem; }
  .top__brand img { height: 24px; max-width: 100%; }
  .top .btn { flex: none; }
}
@media (max-width: 374px) {
  .top__brand img { height: 20px; }
  .top .btn--small { padding-inline: .75rem; font-size: .82rem; }
}

/* type reveal: only hidden once JS has armed it */
.word { display: inline-block; overflow: clip; overflow-clip-margin: .12em; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.word > span { display: inline-block; }
.motion-armed [data-split]:not(.in) .word > span { transform: translateY(112%); }
.motion-armed [data-split] .word > span { transition: transform 1.05s var(--ease); transition-delay: calc(var(--i) * 42ms); }
.motion-armed [data-rise] { transition: opacity .9s ease, transform 1.05s var(--ease); }
.motion-armed [data-rise]:not(.in) { opacity: 0; transform: translateY(30px); }

.cta-short { display: none; }
@media (max-width: 520px) { .top .cta-long { display: none; } .top .cta-short { display: inline; } }
