@font-face {
  font-family: "Hayot Sans";
  src: url("assets/fonts/HayotSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
html { background: #444; }
body {
  margin: 0;
  color: #fff;
  font: 600 1rem/1.022 "Hayot Sans", Arial, sans-serif;
  letter-spacing: -.02em;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

.landing {
  --inset-top: clamp(24px, 6.8293vh, 80px);
  --inset-bottom: clamp(24px, 7.3985vh, 88px);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  border-radius: 42px;
  text-align: center;
}

.backdrop, .waves {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.backdrop {
  z-index: -1;
  overflow: hidden;
  background: #df8ecf url("assets/background.webp") center / cover no-repeat;
}

/* Feathered arcs drift independently across the original photographic gradient. */
.waves::before, .waves::after {
  content: "";
  position: absolute;
  inset: -16%;
  opacity: 0;
}
.waves::before {
  background: radial-gradient(ellipse 82% 70% at 24% 106%,
    transparent 54%, rgb(255 139 200 / 54%) 73%, transparent 93%);
  animation: rose-tide 92s ease-in-out infinite;
}
.waves::after {
  background: radial-gradient(ellipse 75% 65% at 87% 98%,
    transparent 49%, rgb(255 184 226 / 48%) 70%, transparent 94%);
  animation: blush-tide 124s ease-in-out infinite;
}
@keyframes rose-tide {
  0%, 100% { opacity: 0; transform: translate(-4%, 3%) rotate(-3deg); }
  48% { opacity: .54; transform: translate(6%, -7%) rotate(4deg); }
}
@keyframes blush-tide {
  0%, 100% { opacity: 0; transform: translate(3%, 2%); }
  56% { opacity: .48; transform: translate(-7%, -8%); }
}
@media (prefers-reduced-motion: reduce) {
  .waves::before, .waves::after { animation: none; }
}

.masthead {
  padding-top: max(var(--inset-top), env(safe-area-inset-top));
  padding-bottom: 24px;
}
.languages, .footer, .tagline { color: rgb(255 255 255 / 70%); }
.languages {
  display: inline-block;
  white-space: nowrap;
}
.languages a, .footer a {
  color: inherit;
  text-decoration: none;
}
.languages a {
  position: relative;
}
/* Give each word an independent tap target without moving the visible type. */
.languages a::before {
  content: "";
  position: absolute;
  inset: -14px -3px;
}
.languages a:hover, .footer a:hover, a:focus-visible { color: white; }
a:focus-visible {
  outline: 2px solid white;
  outline-offset: 5px;
  border-radius: 2px;
}

.hero {
  justify-self: center;
  width: min(668px, calc(100% - 48px));
  transform: translateY(-6.08px);
}
.emblem {
  display: block;
  width: 101px;
  height: 101px;
  margin: 0 auto 28px;
  transform: translateX(.5px);
}
h1, .tagline { margin: 0; }
h1 {
  font-size: 2.996875rem;
  font-weight: inherit;
  line-height: 1.022;
  letter-spacing: -.02em;
}
html:not([lang="ru"]) h1 { text-wrap: balance; }
.tagline {
  margin-top: 31.8px;
  font-size: 1.5rem;
  letter-spacing: -.02em;
  white-space: pre-wrap;
}

.footer {
  align-self: end;
  position: relative;
  padding-top: 24px;
  margin: 0 0 max(var(--inset-bottom), env(safe-area-inset-bottom));
}
.linkedin { position: relative; left: .5px; }
.credit {
  position: absolute;
  bottom: 0;
  left: 82.0486%;
  transform: translateX(-50%);
  white-space: nowrap;
}

@media (max-width: 700px) {
  .landing { border-radius: clamp(20px, 4.5vw, 32px); }
  .backdrop { background-position: 82% center; }
  .hero { width: min(100% - 40px, 580px); }
  .emblem { width: 80px; height: 80px; margin-bottom: 28px; }
  h1 { font-size: clamp(1.875rem, 6.85vw, 2.996875rem); }
  .tagline { margin-top: 25px; font-size: 1.25rem; }
  .footer { display: grid; justify-items: center; gap: 12px; }
  .linkedin, .credit { position: static; transform: none; }
}
@media (max-height: 520px) and (min-width: 701px) {
  .emblem { width: 56px; height: 56px; margin-bottom: 18px; }
  h1 { font-size: 2.5rem; }
  .tagline { margin-top: 18px; }
}
