@font-face {
  font-family: "SF Pro";
  src: url("SF-Pro.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #9a9a9a;
  --border: #111111;
  --page-padding-x: clamp(20px, 4vw, 64px);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
}

.page {
  width: 100%;
  min-height: 100svh;
  padding: clamp(24px, 4vh, 56px) var(--page-padding-x);
}

.hero {
  width: min(100%, 1440px);
  min-height: calc(100svh - clamp(48px, 8vh, 112px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.logo {
  display: block;
  width: clamp(410px, 56vw, 900px);
  max-width: 100%;
  height: auto;
  margin: 0 0 clamp(54px, 7vh, 92px);
  animation: logo-in 900ms cubic-bezier(.2, .75, .25, 1) both;
}

.intro {
  margin-bottom: clamp(54px, 7vh, 84px);
  animation: content-in 800ms 120ms ease both;
}

.intro__title {
  margin: 0;
  font-size: clamp(17px, 1.35vw, 22px);
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.links-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: content-in 800ms 220ms ease both;
}

.links-group--contact {
  margin-top: clamp(58px, 7vh, 84px);
  animation-delay: 320ms;
}

.links-group__label {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.2;
}

.pill-link {
  min-width: clamp(188px, 14.5vw, 236px);
  width: fit-content;
  padding: 11px 28px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  text-decoration: none;
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1;
  transition:
    color 220ms ease,
    background-color 220ms ease,
    transform 220ms ease,
    box-shadow 220ms ease;
}

.pill-link:hover,
.pill-link:focus-visible {
  color: #ffffff;
  background: #111111;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.pill-link:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.09);
}

.pill-link:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 4px;
}

.pill-link--mail {
  min-width: 340px;
}

@keyframes logo-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes content-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-height: 860px) and (min-width: 701px) {
  .page {
    padding-top: 24px;
    padding-bottom: 24px;
  }

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

  .logo {
    width: clamp(400px, 51vw, 760px);
    margin-bottom: 40px;
  }

  .intro {
    margin-bottom: 38px;
  }

  .links-group--contact {
    margin-top: 40px;
  }
}

@media (max-width: 700px) {
  .page {
    padding: 28px 20px 42px;
  }

  .hero {
    min-height: auto;
    justify-content: flex-start;
    padding-top: clamp(42px, 9vh, 84px);
  }

  .logo {
    width: min(112vw, 560px);
    max-width: none;
    margin-bottom: 58px;
  }

  .intro {
    margin-bottom: 54px;
  }

  .intro__title {
    font-size: 17px;
  }

  .links-group {
    width: 100%;
  }

  .pill-link {
    width: min(100%, 238px);
    min-width: 0;
    font-size: 18px;
    padding: 12px 22px 13px;
  }

  .links-group--contact {
    margin-top: 58px;
  }
}

@media (max-width: 420px) {
  .hero {
    padding-top: 38px;
  }

  .logo {
    width: 118vw;
    margin-bottom: 48px;
  }

  .intro {
    margin-bottom: 48px;
  }

  .links-group--contact {
    margin-top: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
