@font-face {
  font-family: "F37 Blanka";
  src: url("f37-thin.otf") format("opentype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "F37 Blanka";
  src: url("f37-regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --design-width: 1366;
  --design-height: 768;
  --pad-x: calc(30 / var(--design-width) * 100vw);
  --label-size: calc(39 / var(--design-width) * 100vw);
  --tagline-size: calc(34 / var(--design-width) * 100vw);
  --link-size: calc(20 / var(--design-width) * 100vw);
  --tagline-leading: calc(45 / var(--design-height) * 100vh);
  --logo-width: calc(68.335 / var(--design-width) * 100vw);
  --logo-to-tagline: calc(47.3 / var(--design-height) * 100vh);
}

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

html {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #0f20b0;
  color: #fff;
  font-family: "F37 Blanka", system-ui, sans-serif;
  font-weight: 200;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (hover: hover) and (pointer: fine) {
  body {
    cursor: none;
  }

  body a,
  body button {
    cursor: none;
  }
}

.cursor-fx {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .cursor-fx {
    display: block;
  }

  .cursor-fx__layer {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    will-change: transform;
  }

  .cursor-fx__layer--glow {
    z-index: 9997;
    width: 360px;
    height: 360px;
    margin: -180px 0 0 -180px;
    border-radius: 50%;
    background:
      radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 28%, transparent 68%);
    filter: blur(28px);
    mix-blend-mode: soft-light;
    opacity: 0.75;
    transition:
      opacity 0.45s ease,
      filter 0.45s ease,
      width 0.5s cubic-bezier(0.22, 1, 0.36, 1),
      height 0.5s cubic-bezier(0.22, 1, 0.36, 1),
      margin 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .cursor-fx__layer--trail {
    z-index: 9998;
    width: 52px;
    height: 52px;
    margin: -26px 0 0 -26px;
    border: 1px solid rgba(245, 245, 245, 0.28);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.025);
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.06);
    transition:
      width 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      margin 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      border-color 0.35s ease,
      background 0.35s ease,
      box-shadow 0.35s ease,
      opacity 0.3s ease;
  }

  .cursor-fx__layer--core {
    z-index: 9999;
    width: 7px;
    height: 7px;
    margin: -3.5px 0 0 -3.5px;
    border-radius: 50%;
    background: rgba(245, 245, 245, 0.95);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
    transition:
      width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
      height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
      margin 0.35s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.3s ease,
      box-shadow 0.35s ease;
  }

  .cursor-fx.is-hidden .cursor-fx__layer {
    opacity: 0;
  }

  .cursor-fx.is-active .cursor-fx__layer--glow {
    width: 440px;
    height: 440px;
    margin: -220px 0 0 -220px;
    opacity: 0.95;
    filter: blur(34px);
  }

  .cursor-fx.is-active .cursor-fx__layer--trail {
    width: 76px;
    height: 76px;
    margin: -38px 0 0 -38px;
    border-color: rgba(245, 245, 245, 0.55);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 32px rgba(255, 255, 255, 0.12);
  }

  .cursor-fx.is-active .cursor-fx__layer--core {
    width: 4px;
    height: 4px;
    margin: -2px 0 0 -2px;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.65);
  }
}

@media (prefers-reduced-motion: reduce) and (hover: hover) and (pointer: fine) {
  .cursor-fx__layer--glow,
  .cursor-fx__layer--trail {
    display: none;
  }
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

a:hover {
  opacity: 1;
}

.page {
  position: relative;
  width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

.page__header,
.page__footer {
  position: absolute;
  left: var(--pad-x);
  right: var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.page__header {
  top: calc(71 / var(--design-height) * 100vh);
}

.page__footer {
  bottom: calc(56 / var(--design-height) * 100vh);
}

.page__label {
  margin: 0;
  color: #f5f5f5;
  font-size: var(--label-size);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}

.page__label--right {
  margin-left: auto;
}

.page__hero {
  position: absolute;
  top: calc(273.644 / var(--design-height) * 100vh);
  left: var(--pad-x);
  right: var(--pad-x);
}

.page__logo {
  display: block;
  width: var(--logo-width);
  margin-bottom: var(--logo-to-tagline);
  text-decoration: none;
}

.page__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.page__hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: end;
  column-gap: calc(40 / var(--design-width) * 100vw);
  width: 100%;
}

.page__tagline {
  margin: 0;
  font-size: var(--tagline-size);
  line-height: var(--tagline-leading);
}

.page__tagline--first {
  grid-column: 1;
  grid-row: 1;
}

.page__tagline--second {
  grid-column: 1;
  grid-row: 2;
}

.page__links {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: calc(48 / var(--design-width) * 100vw);
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  padding: 0;
  font-size: var(--link-size);
  line-height: 1;
  white-space: nowrap;
  transform: translateY(calc(-26 / var(--design-height) * 100vh));
}

.page__links a {
  text-decoration: underline;
}

@media (min-width: 1366px) and (min-height: 768px) {
  :root {
    --pad-x: 30px;
    --label-size: 39px;
    --tagline-size: 34px;
    --link-size: 20px;
    --tagline-leading: 45px;
    --logo-width: 68.335px;
    --logo-to-tagline: 47.3px;
  }

  .page__header {
    top: 71px;
  }

  .page__footer {
    bottom: 56px;
  }

  .page__hero {
    top: 273.644px;
  }

  .page__hero-main {
    column-gap: 40px;
  }

  .page__links {
    gap: 48px;
    transform: translateY(-26px);
  }
}

@media (max-width: 900px), (max-height: 700px) {
  :root {
    --pad-x: 24px;
    --label-size: clamp(18px, 4.8vw, 30px);
    --tagline-size: clamp(20px, 5.2vw, 30px);
    --link-size: clamp(14px, 3.6vw, 18px);
    --tagline-leading: 1.35;
    --logo-width: clamp(88px, 24vw, 120px);
    --logo-to-tagline: clamp(1.75rem, 5vh, 2.75rem);
  }

  html,
  body {
    overflow: auto;
  }

  .page {
    height: auto;
    min-height: 100dvh;
    max-height: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(20px, 5vh, 32px) clamp(20px, 6vw, 28px);
    overflow: visible;
    gap: clamp(2rem, 8vh, 4rem);
  }

  .page__header,
  .page__footer,
  .page__hero {
    position: static;
  }

  .page__header,
  .page__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(0.35rem, 1.2vh, 0.65rem);
  }

  .page__label--right {
    margin-left: 0;
    align-self: flex-start;
  }

  .page__hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
  }

  .page__hero-main {
    grid-template-columns: 1fr;
    row-gap: clamp(1rem, 3vh, 1.5rem);
  }

  .page__tagline--first,
  .page__tagline--second,
  .page__links {
    grid-column: 1;
  }

  .page__tagline--first {
    grid-row: 1;
  }

  .page__tagline--second {
    grid-row: 2;
  }

  .page__links {
    grid-row: 3;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    white-space: normal;
    transform: none;
    margin-top: clamp(0.25rem, 1vh, 0.5rem);
  }
}
