@font-face {
  font-family: "IBM Plex Sans Condensed";
  src: url("../fonts/IBMPlexSansCondensed-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

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

body {
  background: #09191c url("../images/body_img.webp") center center / cover no-repeat;
  color: #fff;
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-weight: 400;
}

.splash {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: inherit;
}

/* Only the image determines this box's height; the link stays out of flow. */
.brand {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(796px, calc(100vw - 48px), 120vh);
  width: min(796px, calc(100vw - 48px), 120dvh);
  transform: translate(-50%, -50%);
}

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

.contact {
  position: absolute;
  top: calc(100% + clamp(16px, 5.333vh, 64px));
  top: calc(100% + clamp(16px, 5.333dvh, 64px));
  right: 0;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-left: 55px;
  color: #fff;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

/* The fixed 55px slot holds a 46px line plus its 9px gap. */
.contact::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(50% - 1.5px);
  width: 55px;
  height: 3px;
  background: currentColor;
  transform: scaleX(0.8363636364);
  transform-origin: left center;
}

.contact:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 6px;
}

@media (hover: hover) and (pointer: fine) {
  .contact::before {
    transition: transform 250ms cubic-bezier(0.25, 0.1, 0.25, 1);
  }

  .contact:hover::before {
    transform: scaleX(1);
  }
}

@media (max-width: 600px) {
  .contact {
    top: calc(100% + 32px);
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 600px) and (orientation: portrait) {
  .splash {
    /* Match the reference bird size and crop without altering the source. */
    background-size: auto 137.3%;
    background-position: 76% 42%;
  }

  .brand {
    top: 42.5%;
    width: calc(100% - 40px);
    transform: translateX(-50%);
  }
}

@media (max-height: 400px) {
  .contact {
    top: calc(100% + 12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact::before {
    transition: none;
  }
}
