@font-face {
  font-family: Arimo;
  src: url("/fonts/Arimo-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --blue: #09015f;
  --cyan: #55b3b1;
  --pink: #af0069;
  --yellow: #f6c065;
  --logo-size: 80px;
  --section-padding: 1rem;
  font: 100%/1.5 Arimo, sans-serif;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  :root { --logo-size: 160px; --section-padding: 2rem; }
}

@media (min-width: 1024px) {
  :root { --logo-size: 320px; --section-padding: 4rem; }
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2 { margin: 0; }
h1, h2 { font-weight: normal; }

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.wordmark, .logo {
  grid-area: 1 / 1;
  position: absolute;
}

.wordmark {
  font-size: var(--logo-size);
  animation: reveal-wordmark 1.6s ease-in-out 1.6s both;
}

.wordmark-mask {
  position: absolute;
  inset: 0 calc(50% + var(--logo-size)) 0 0;
  background: white;
}

.logo {
  width: var(--logo-size);
  height: var(--logo-size);
  animation: slide-logo 0.8s ease-in-out 1.4s both;
}

.logo-dots {
  position: relative;
  height: 100%;
  animation: shrink-logo 1.6s cubic-bezier(.79,.04,.66,.72) both;
}

.logo-dots i {
  position: absolute;
  width: 50%;
  height: 50%;
  top: 50%;
  left: 50%;
  border-radius: 50%;
}

.logo-dots i:nth-child(1) { background: var(--blue); transform: translate(-63%, -96%); }
.logo-dots i:nth-child(2) { background: var(--pink); transform: translate(-15%, -58%); }
.logo-dots i:nth-child(3) { background: var(--cyan); transform: translate(-37%, -4%); }
.logo-dots i:nth-child(4) { background: var(--yellow); transform: translate(-85%, -36%); }

@keyframes shrink-logo {
  from { transform: scale(15) rotate(90deg); }
  to { transform: scale(1) rotate(0); }
}

@keyframes slide-logo {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@keyframes reveal-wordmark {
  from { opacity: 0; transform: translateX(-100%); }
  to { opacity: 1; transform: translateX(30%); }
}

.scroll-arrow {
  position: absolute;
  bottom: 4rem;
  width: 5rem;
  height: 5rem;
  display: grid;
  place-items: center;
  color: black;
  animation: reveal-arrow 0.8s ease-in-out 2.4s both;
}

.scroll-arrow::after {
  content: "";
  width: 3rem;
  height: 3rem;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translateY(-25%) rotate(45deg);
}

@keyframes reveal-arrow {
  from { opacity: 0; transform: translateY(300px); }
  75% { opacity: 0; }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .wordmark, .logo, .logo-dots, .scroll-arrow { animation: none; }
  .wordmark { transform: translateX(30%); }
  .logo { transform: translateX(-100%); }
}

main { padding-top: 4rem; }
main > * { position: relative; }
main > * + * { margin-top: 4rem; }

.section-content {
  position: relative;
  margin: auto;
  padding: var(--section-padding);
  max-width: 768px;
  min-height: 30vh;
  font-size: 1.125rem;
  line-height: 1.75rem;
}

h2, .links { font-size: 1.25rem; }
p { margin: 1.5rem 0; }
.intro { background: var(--cyan); }
.contact { background: var(--yellow); }
nav { background: var(--blue); color: white; }
.links, .links > div { display: flex; justify-content: center; align-items: center; }
.links > div { width: 75%; flex-wrap: wrap; gap: 1.25rem; }
.links a { color: inherit; }

.intro::before, nav::before, .contact::before {
  content: "";
  position: absolute;
  background: var(--pink);
  width: 11rem;
  height: 4rem;
}

.intro::before { z-index: -1; right: 10%; transform: rotate(-45deg); }
nav::before { z-index: -1; top: -2.5rem; left: 10%; width: 7rem; height: 7rem; border-radius: 50%; }
.contact::before { top: 0; right: .5rem; transform: rotate(45deg); }
