@font-face {
  font-family: "Google Sans Flex";
  src: url("assets/Google_Sans_Flex/GoogleSansFlex-page.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-stretch: 25% 151%;
  font-display: block;
}

:root {
  --page-bg: #f7f7ef;
  --text-color: #121212;
  --accent-yellow: #efd52f;
  --glow-radius: 64vmax;
  --glow-radius-orange: 64vmax;
  --glow-center-x: 14%;
  --glow-center-y: 84%;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Google Sans Flex", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--page-bg);
  color: var(--text-color);
}

.page {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  isolation: isolate;
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(
      circle var(--glow-radius) at var(--glow-center-x) var(--glow-center-y),
      rgba(243, 218, 33, 1) 0%,
      rgba(243, 218, 33, 1) 14%,
      rgba(243, 218, 33, 0.56) 40%,
      rgba(243, 218, 33, 0.24) 62%,
      rgba(243, 218, 33, 0.1) 76%,
      rgba(243, 218, 33, 0.04) 86%,
      rgba(243, 218, 33, 0.012) 94%,
      rgba(243, 218, 33, 0) 100%
    );
  background-repeat: no-repeat;
  z-index: -1;
}

/* Portrait orientation: add orange gradient */
@media (orientation: portrait) {
  .page::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
      radial-gradient(
        circle var(--glow-radius-orange) at 100% 0%,
        rgba(239, 71, 38, 0.85) 0%,
        rgba(239, 71, 38, 0.56) 25%,
        rgba(239, 71, 38, 0.24) 50%,
        rgba(239, 71, 38, 0.08) 70%,
        rgba(239, 71, 38, 0) 100%
      );
    background-repeat: no-repeat;
    z-index: -1;
  }
}

.logo-wrap {
  margin-top: clamp(2.2rem, 6vh, 4rem);
}

.logo {
  width: clamp(6.1rem, 11vw, 7rem);
  height: auto;
  display: block;
}

.hero {
  flex: 1;
  width: min(92vw, 78rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: -2vh;
}

.headline {
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 0.17em;
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-size: clamp(2.1rem, 6.6vw, 4.9rem);
}

.headline-rest,
.headline-light,
.headline-dot {
  display: inline-block;
  white-space: nowrap;
}

.headline-rest {
  font-variation-settings: "wght" 400, "wdth" 100, "ROND" 0, "GRAD" 0, "opsz" 72;
}

.headline-light {
  color: var(--accent-yellow);
  font-variation-settings: "wght" 360, "wdth" 100, "slnt" 0, "GRAD" 0, "opsz" 72;
}

.headline-dot {
  color: var(--text-color);
  margin-left: -0.08em;
  font-variation-settings: "wght" 400, "wdth" 100, "ROND" 0, "GRAD" 0, "opsz" 72;
}

@media (orientation: portrait) {
  .headline-dot {
    display: none;
  }
}

.services {
  margin-top: clamp(0.9rem, 2.1vh, 1.6rem);
  margin-bottom: 0;
  font-size: clamp(0.625rem, 1.25vw, 0.98rem);
  line-height: 1.25;
  padding-inline: 1rem;
  text-wrap: balance;
  display: inline-block;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  font-variation-settings: "wght" 480, "wdth" 100, "ROND" 0, "GRAD" 0, "opsz" 24;
}

.social {
  margin-bottom: clamp(1.45rem, 4.1vh, 2.4rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.58rem, 1.4vw, 0.9rem);
}

.social-link {
  width: 1.75rem;
  height: 1.75rem;
  border: 0;
  border-radius: 999px;
  color: transparent;
  background: transparent;
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: transform 180ms ease;
}

.social-link:hover {
  transform: translateY(-1px);
}

.social-link:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.social-link img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

@media (max-width: 760px) {
  :root {
    --glow-center-x: 10%;
    --glow-center-y: 86%;
  }

  .hero {
    margin-top: -1vh;
  }

  .headline {
    gap: 0.12em;
    font-size: clamp(1.78rem, 9.8vw, 3rem);
  }
}

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

.js .logo-wrap,
.js .hero,
.js .social {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.js .logo-wrap.revealed { opacity: 1; transition-delay: 0s; }
.js .hero.revealed      { opacity: 1; transition-delay: 0.15s; }
.js .social.revealed    { opacity: 1; transition-delay: 0.3s; }
