:root {
  --bg: #ececec;
  --text: #081215;
  --muted: #2b3232;
  --primary: #ffcc00;
  --radius-pill: 999px;
  --radius-card: 22px;
  --font-ui: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont,
    "Inter", "Avenir Next", "Segoe UI", Arial, sans-serif;
}

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

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

body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  line-height: 1.35;
  font-weight: 300;
  letter-spacing: 0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

.background {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 204, 0, 0.18) 0%, rgba(255, 204, 0, 0) 36%),
    radial-gradient(circle at 22% 18%, rgba(255, 204, 0, 0.11) 0%, rgba(255, 204, 0, 0) 28%),
    radial-gradient(circle at 80% 68%, rgba(255, 204, 0, 0.08) 0%, rgba(255, 204, 0, 0) 34%),
    linear-gradient(180deg, #ececec 0%, #ececec 100%);
}

.topbar {
  width: min(1280px, 92vw);
  margin: 0 auto;
  min-height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

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

.brand__text {
  font-size: 48px;
  font-size: clamp(1.7rem, 2.1vw, 2.1rem);
  letter-spacing: -0.02em;
  font-weight: 300;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.button--primary {
  background: var(--primary);
}

.button--primary:hover {
  transform: translateY(-1px);
  background: #ffd633;
}

.home-main {
  width: min(1280px, 92vw);
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 110px);
  display: grid;
  place-items: center;
  padding-bottom: 40px;
}

.swirl-stage {
  position: relative;
  width: min(84vw, 860px);
  aspect-ratio: 1.45 / 1;
  display: grid;
  place-items: center;
}

.swirl-wrap {
  width: min(68vw, 620px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.84);
  position: relative;
  z-index: 1;
}

.swirl-wrap::before {
  content: "";
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 230, 140, 0.52) 0%, rgba(255, 230, 140, 0.2) 42%, rgba(255, 230, 140, 0) 76%);
  filter: blur(26px);
  z-index: -1;
}

.swirl {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  filter: saturate(103%);
  opacity: 0.96;
}

.avatar {
  position: absolute;
  width: clamp(96px, 10.5vw, 162px);
  height: auto;
  border-radius: 50%;
  box-shadow: 0 10px 26px rgba(8, 18, 21, 0.14);
  z-index: 4;
  opacity: 0;
  transform: scale(0.72);
  transition: opacity 0.52s ease, transform 0.52s cubic-bezier(0.21, 0.77, 0.28, 1.06);
}

.avatar--one {
  left: 32%;
  top: 4%;
}

.avatar--two {
  right: 7%;
  top: 42%;
}

.avatar--three {
  left: 7%;
  top: 38%;
}

.avatar--four {
  right: 27%;
  top: 16%;
}

.avatar--five {
  right: 18%;
  bottom: 14%;
}

.avatar--six {
  left: 24%;
  bottom: 16%;
}

.hero-copy {
  position: absolute;
  inset: auto;
  text-align: center;
  max-width: 560px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  z-index: 2;
}

.hero-copy h1 {
  font-size: clamp(2rem, 3.7vw, 3.35rem);
  letter-spacing: -0.03em;
  line-height: 1.06;
  font-weight: 500;
  white-space: nowrap;
}

.hero-copy p {
  margin-top: 8px;
  font-size: clamp(1rem, 1.65vw, 1.7rem);
  line-height: 1.18;
  font-weight: 300;
  color: rgba(8, 18, 21, 0.9);
}

.page--home.stage-swirl .swirl-wrap {
  animation: swirl-enter 1.45s cubic-bezier(0.2, 0.76, 0.24, 0.99) forwards;
}

.page--home.stage-swirl .swirl {
  animation: swirl-spin 38s linear infinite;
}

.page--home.stage-avatars .avatar {
  opacity: 1;
  transform: scale(1);
}

.page--home.stage-avatars .avatar--one {
  transition-delay: 0.04s;
}

.page--home.stage-avatars .avatar--two {
  transition-delay: 0.18s;
}

.page--home.stage-avatars .avatar--three {
  transition-delay: 0.32s;
}

.page--home.stage-avatars .avatar--four {
  transition-delay: 0.46s;
}

.page--home.stage-avatars .avatar--five {
  transition-delay: 0.6s;
}

.page--home.stage-avatars .avatar--six {
  transition-delay: 0.74s;
}

.page--home.stage-copy .hero-copy {
  opacity: 1;
  transform: translateY(0);
}

.contact-main {
  width: min(960px, 92vw);
  margin: 20px auto 80px;
}

.contact-hero {
  margin: 56px 0 24px;
}

.contact-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
  font-weight: 500;
}

.contact-hero p {
  margin-top: 10px;
  font-size: clamp(1.05rem, 2.1vw, 1.7rem);
  color: rgba(8, 18, 21, 0.88);
}

.contact-shell {
  margin-top: 28px;
}

.contact-form {
  display: grid;
  gap: 14px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(8, 18, 21, 0.08);
  border-radius: var(--radius-card);
  padding: 24px;
  backdrop-filter: blur(3px);
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 400;
  font-size: 0.97rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(8, 18, 21, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  padding: 11px 12px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

@keyframes swirl-enter {
  0% {
    opacity: 0;
    transform: scale(0.84);
  }

  75% {
    opacity: 1;
    transform: scale(1.03);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes swirl-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .topbar {
    min-height: 88px;
  }

  .hero {
    min-height: calc(100vh - 96px);
  }

  .swirl-stage {
    width: min(95vw, 820px);
    aspect-ratio: 1.04 / 1;
  }

  .swirl-wrap {
    width: min(78vw, 560px);
  }

  .avatar--one {
    left: 26%;
    top: 6%;
  }

  .avatar--two {
    right: 5%;
    top: 44%;
  }

  .avatar--three {
    left: 5%;
    top: 38%;
  }

  .avatar--four {
    right: 22%;
    top: 16%;
  }

  .avatar--five {
    right: 15%;
    bottom: 15%;
  }

  .avatar--six {
    left: 20%;
    bottom: 18%;
  }
}

@media (max-width: 640px) {
  .topbar {
    width: min(96vw, 560px);
    min-height: 80px;
  }

  .brand__text {
    font-size: 1.9rem;
  }

  .button {
    padding: 10px 18px;
    font-size: 0.95rem;
  }

  .hero {
    padding-bottom: 0;
  }

  .swirl-stage {
    width: 100%;
    aspect-ratio: 1 / 1.08;
  }

  .swirl-wrap {
    width: 82vw;
  }

  .avatar {
    width: clamp(86px, 24vw, 122px);
  }

  .avatar--one {
    left: -2%;
    top: 8%;
  }

  .avatar--two {
    right: -3%;
    top: 62%;
  }

  .avatar--three {
    left: 5%;
    bottom: 3%;
  }

  .avatar--four,
  .avatar--five,
  .avatar--six {
    display: none;
  }

  .hero-copy h1 {
    font-size: clamp(1.65rem, 7vw, 2.1rem);
    white-space: normal;
  }

  .hero-copy p {
    font-size: clamp(0.95rem, 3.8vw, 1.15rem);
  }

  .contact-main {
    margin-top: 8px;
  }

  .contact-form {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .swirl-wrap,
  .hero-copy,
  .avatar {
    transition: none;
    animation: none;
  }

  .page--home .swirl-wrap,
  .page--home .avatar,
  .page--home .hero-copy {
    opacity: 1;
    transform: none;
  }
}
