@font-face {
  font-family: 'DejaVu Sans Mono';
  src: local('DejaVu Sans Mono'), url('./assets/dejavu-sans-mono.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Aspekta;
  src: url('./assets/aspekta-400.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Aspekta;
  src: url('./assets/aspekta-600.ttf') format('truetype');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --accent: #fff;
  --link: #4fb9ff;
  --link-hover: #a9e6ff;
  --body-size: clamp(14px, 1.111111vw, 20px);
}

* { box-sizing: border-box; }

html {
  min-width: 280px;
  background: #454c56;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  color: #fff;
  font-family: Menlo, 'DejaVu Sans Mono', Consolas, 'Liberation Mono', monospace;
  font-size: var(--body-size);
  font-weight: 400;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

.hero {
  min-height: calc(100svh + 32px);
}

.atmosphere {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  background: #b4b6c6;
  pointer-events: none;
}

.clouds {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: max(109.444444vw, 100%);
  object-fit: cover;
  object-position: 50% 0;
  opacity: .59;
}

.atmosphere::after {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(to top, rgb(0 0 0 / .6), rgb(0 0 0 / .2));
}

main, .footer-inner {
  width: 73.888889%;
  max-width: 1463px;
  margin-inline: auto;
}

main {
  padding-top: min(26.805556vw, 515px);
  padding-bottom: clamp(48px, 3.888889vw, 75px);
}

h1 {
  margin: 0 0 .722727em;
  font-family: Helvetica, Arial, sans-serif;
  font-size: clamp(56px, 6.111111vw, 121px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.0454545em;
  text-transform: none;
}

.title-line { display: block; }
.accent { color: var(--accent); }

.copy { width: 42.293233%; }
p { margin: 0; }

.mission, .invitation { margin-top: 1lh; }
.copy p + p { margin-top: 1lh; }

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  transition: color 160ms ease;
}

a:hover { color: var(--link-hover); }
a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
  border-radius: 1px;
}

.site-nav {
  position: absolute;
  top: 24px;
  right: 32px;
  z-index: 1;
}

.site-nav a {
  display: inline-block;
  padding: 8px 0;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
}

.site-nav a:hover { color: #fff; text-decoration: underline; }
.site-footer {
  padding-block: 35px 38px;
  border-top: 1px solid rgb(255 255 255 / .16);
  color: #fff;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 549px) max-content;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer-statement {
  color: rgb(255 255 255 / .6);
  font-size: 14px;
  line-height: 1.4;
}

.footer-company {
  justify-self: end;
  color: #fff;
  font-family: Aspekta, Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.footer-company .accent { color: var(--link-hover); }

@media (min-width: 1101px) {
  /* Desktop scales the 1440x1024 frame to fit the viewport, so the page never scrolls. */
  html { overflow: hidden; }

  body {
    --s: min(100vw / 1440, 100svh / 1024);
    display: flex;
    flex-direction: column;
    height: 100svh;
    overflow: hidden;
    font-size: calc(16 * var(--s));
  }

  .hero {
    flex: 1;
    min-height: 0;
  }

  .clouds {
    top: 50%;
    left: calc(50% + 7.708333vw);
    width: 118.194444vw;
    height: 207.714844svh;
    object-position: 50% 50%;
    transform: translate(-50%, -50%);
  }

  main, .footer-inner {
    max-width: none;
    margin-left: calc(50% - 634 * var(--s));
  }

  main {
    width: calc(1258 * var(--s));
    padding: calc(338 * var(--s)) 0 0;
  }

  h1 {
    margin-bottom: calc(62 * var(--s));
    font-size: calc(104 * var(--s));
    line-height: .84;
    letter-spacing: -.0384615em;
  }

  .copy {
    display: grid;
    grid-template-columns: calc(620 * var(--s)) calc(588 * var(--s));
    column-gap: calc(50 * var(--s));
    width: auto;
  }

  .invitation { margin-top: 0; }

  .site-footer {
    flex: none;
    height: calc(101 * var(--s));
    padding-block: calc(29 * var(--s)) 0;
  }

  .footer-inner {
    width: calc(1245 * var(--s));
    grid-template-columns: calc(549 * var(--s)) max-content;
  }

  .footer-statement { font-size: calc(14 * var(--s)); }
  .footer-company { font-size: calc(16 * var(--s)); }
}

@media (max-width: 1100px) {
  main, .footer-inner { width: 82%; }
  main { padding-top: 21.736111vw; }
  h1 { font-size: 6.7vw; margin-bottom: 1em; }
  .copy { width: min(100%, 450px); }
}

@media (max-width: 800px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .footer-statement { max-width: 549px; }
  .footer-company { justify-self: start; }
}

@media (max-width: 600px) {
  .site-nav {
    top: calc(12px + env(safe-area-inset-top, 0px));
    right: max(24px, env(safe-area-inset-right, 0px));
  }
  .hero { min-height: 0; }
  .atmosphere { position: fixed; }
  :root { --body-size: 14px; }
  main, .footer-inner {
    width: auto;
    margin-left: max(24px, env(safe-area-inset-left, 0px));
    margin-right: max(24px, env(safe-area-inset-right, 0px));
  }
  main {
    padding-top: calc(96px + env(safe-area-inset-top, 0px));
    padding-bottom: 32px;
  }
  h1 {
    font-size: clamp(34px, 10.2vw, 60px);
    letter-spacing: -.0454545em;
    line-height: 1.02;
    margin-bottom: 32px;
  }
  .copy { width: 100%; }
  .copy { line-height: 1.5; }
  .clouds {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-position: 50% 0;
  }
  .atmosphere::after {
    background: linear-gradient(to bottom, rgb(22 30 42 / .22), rgb(22 30 42 / .52));
  }
  .site-footer {
    padding: 24px 0 calc(28px + env(safe-area-inset-bottom, 0px));
    background: #454c56;
  }
  .footer-inner { gap: 16px; }
  .footer-statement {
    color: rgb(255 255 255 / .82);
    font-size: 12px;
    line-height: 1.5;
  }
  .footer-company { font-size: 14px; }
  a { padding-block: 8px; }
}

@media (max-width: 359px) {
  main, .footer-inner { margin-inline: 18px; }
  h1 { font-size: 9.4vw; }
}

@media (prefers-reduced-motion: reduce) {
  a { transition: none; }
}
