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

:root {
  --bg: #eceef2;
  --fg: #111114;
  --muted: #5d6068;
  --accent: #ff2e7e;
  --accent-soft: rgba(255, 46, 126, 0.12);
  --pulse: rgba(255, 46, 126, 0.45);
  --line: rgba(255, 46, 126, 0.55);
  --btn-bg: #111114;
  --btn-bg-hover: #000;
  --btn-fg: #f5f5f7;
  --btn-sub: rgba(245, 245, 247, 0.55);
  --btn-icon-bg: rgba(245, 245, 247, 0.1);
  --btn-border: #2a2a31;
  --comet: #ff2e7e;
  --comet-head: #ffd6e7;
  --ping: rgba(255, 46, 126, 0.42);
  --sheen: rgba(255, 255, 255, 0.14);
  --icon-bg: var(--accent);
  --icon-on-accent: #fff;
  --lift-shadow: 0 14px 30px -18px rgba(17, 17, 20, 0.6);
  --gutter: 16px;
  --col: 560px;
  --overlap: 48px;
  --hero-ratio: 4 / 5;
  --hero-pos: 46% 50%;
  --hero-ratio-wide: 16 / 10;
  --hero-pos-wide: 50% 30%;
  --hero-width-wide: 1080px;
  --fade-x: 26%;
  --fade-top: 8%;
  --fade-bottom: 54%;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-bottom: calc(48px + env(safe-area-inset-bottom));
}

.hero {
  position: relative;
  width: 100%;
  aspect-ratio: var(--hero-ratio);
  max-height: 60svh;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 48%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 48%, transparent 100%);
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-pos);
  animation: hero-in 1.4s var(--ease) both;
}

.content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100% - var(--gutter) * 2, var(--col));
  margin-top: calc(var(--overlap) * -1);
  text-align: center;
}

.content > * {
  animation: rise 0.8s var(--delay, 0s) var(--ease) both;
}

.content > :nth-child(1) { --delay: 0.15s; }
.content > :nth-child(2) { --delay: 0.22s; }
.content > :nth-child(3) { --delay: 0.29s; }
.content > :nth-child(4) { --delay: 0.36s; }
.content > :nth-child(5) { --delay: 0.43s; }
.content > :nth-child(6) { --delay: 0.5s; }
.content > :nth-child(7) { --delay: 0.57s; }
.content > :nth-child(8) { --delay: 0.64s; }

.title {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(38px, 11vw, 66px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--fg);
}

.title span {
  display: block;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--accent);
}

.lead {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-wrap: balance;
}

.hint {
  margin-top: 22px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
  text-wrap: balance;
}

.hint strong {
  font-weight: 800;
  color: var(--accent);
}

.dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 9px;
  margin: 0 2px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 1px;
  line-height: 1;
  vertical-align: 1px;
}

.is-inapp .dots {
  animation: pulse 1.8s ease-out infinite;
}

.link {
  --fill: var(--btn-bg);
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 76px;
  margin-top: 18px;
  padding: 9px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(var(--fill), var(--fill)) padding-box,
    conic-gradient(from var(--angle), var(--btn-border) 0deg 230deg, var(--comet) 320deg, var(--comet-head) 348deg, var(--btn-border) 360deg) border-box;
  color: var(--btn-fg);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--lift-shadow);
  animation: pop-in 0.9s var(--delay) var(--spring) backwards, orbit 3.6s linear infinite;
  transition: transform 0.25s var(--ease);
}

.link--primary {
  animation:
    pop-in 0.9s var(--delay) var(--spring) backwards,
    orbit 2.4s linear infinite,
    breathe 2.8s 1.4s ease-in-out infinite,
    ping 2.8s 1.4s ease-out infinite;
}

.link--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, var(--sheen) 50%, transparent 70%);
  transform: translateX(-110%);
  animation: sheen 3.6s 1.8s ease-in-out infinite;
}

.link:active {
  transform: scale(0.98);
}

.link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.link__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.link__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.link__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.link__sub {
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  color: var(--btn-sub);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.link__icon {
  display: grid;
  place-items: center;
  justify-self: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--btn-icon-bg);
  color: var(--btn-fg);
  transition: transform 0.3s var(--ease), background-color 0.3s;
}

.link__icon svg {
  animation: nudge 1.4s ease-in-out infinite;
}

.link--primary .link__icon {
  background: var(--icon-bg);
  color: var(--icon-on-accent);
}

.point {
  display: inline-block;
  animation: point 1.2s ease-in-out infinite;
}

.divider {
  width: 46%;
  max-width: 260px;
  height: 1px;
  margin: 34px 0 30px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.divider--end {
  margin-bottom: 0;
}

.note {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  text-wrap: balance;
}

@media (hover: hover) {
  .link:hover {
    --fill: var(--btn-bg-hover);
    transform: translateY(-2px);
  }

  .link:hover .link__icon {
    background: var(--icon-bg);
    color: var(--icon-on-accent);
    transform: rotate(45deg);
  }
}

@media (max-width: 359px) {
  :root {
    --gutter: 12px;
  }

  .link {
    grid-template-columns: 46px 1fr 36px;
    gap: 8px;
    min-height: 66px;
    padding: 8px;
  }

  .link__avatar {
    width: 46px;
    height: 46px;
  }

  .link__icon {
    width: 34px;
    height: 34px;
  }

  .link__title {
    font-size: 15px;
  }

  .hint {
    font-size: 14px;
  }

  .note {
    font-size: 16px;
  }
}

@media (min-width: 600px) {
  :root {
    --col: 540px;
    --overlap: 64px;
  }

  .hero {
    aspect-ratio: 4 / 3;
  }

  .lead {
    font-size: 16px;
  }

  .hint {
    font-size: 16px;
  }

  .note {
    font-size: 18px;
  }
}

@media (min-width: 900px) {
  :root {
    --col: 580px;
    --overlap: 84px;
  }

  .hero {
    width: min(100% - 64px, var(--hero-width-wide));
    aspect-ratio: var(--hero-ratio-wide);
    max-height: 64svh;
    -webkit-mask-image: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.55) calc(var(--fade-x) / 2), #000 var(--fade-x), #000 calc(100% - var(--fade-x)), rgba(0, 0, 0, 0.55) calc(100% - var(--fade-x) / 2), transparent);
    mask-image: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.55) calc(var(--fade-x) / 2), #000 var(--fade-x), #000 calc(100% - var(--fade-x)), rgba(0, 0, 0, 0.55) calc(100% - var(--fade-x) / 2), transparent);
  }

  .hero img {
    object-position: var(--hero-pos-wide);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 var(--fade-top), #000 var(--fade-bottom), transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 var(--fade-top), #000 var(--fade-bottom), transparent);
  }
}

@media (orientation: landscape) and (max-height: 540px) {
  :root {
    --overlap: 56px;
  }

  .hero {
    width: 100%;
    height: 72svh;
    max-height: none;
    aspect-ratio: auto;
    -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
  }

  .hero img {
    object-position: var(--hero-pos-wide);
    -webkit-mask-image: none;
    mask-image: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: scale(1.06);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes pop-in {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.9);
  }

  60% {
    opacity: 1;
    transform: translateY(-4px) scale(1.02);
  }

  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes orbit {
  to {
    --angle: 360deg;
  }
}

@keyframes breathe {
  0%,
  100% {
    scale: 1;
  }

  50% {
    scale: 1.035;
  }
}

@keyframes ping {
  0% {
    box-shadow: var(--lift-shadow), 0 0 0 0 var(--ping);
  }

  75%,
  100% {
    box-shadow: var(--lift-shadow), 0 0 0 18px transparent;
  }
}

@keyframes sheen {
  0% {
    transform: translateX(-110%);
  }

  40%,
  100% {
    transform: translateX(110%);
  }
}

@keyframes nudge {
  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(2px, -2px);
  }
}

@keyframes point {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(4px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--pulse);
  }

  70%,
  100% {
    box-shadow: 0 0 0 8px transparent;
  }
}
