@font-face {
  font-family: 'Apercu Light';
  src: url('../fonts/Apercu-Light.woff') format('woff');
  font-display: swap;
  font-weight: 200;
  font-style: normal;
}

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

:root {
  --content-width: 60vw;
  --circle-size: 66svh;
  --color-text: #ffffff;
  --color-link: #EEF8C2;
  --color-link-muted: rgba(238, 248, 194, 0.45);
  --color-gradient-start: #16171f;
  --color-circle: rgba(255, 255, 255, 0.24);
  --color-circle-marker: rgba(255, 255, 255, 0.52);
  --font: 'Apercu Light', sans-serif;
  --ease-smooth: cubic-bezier(0.075, 0.82, 0.165, 1);
}

body {
  font-family: var(--font);
  color: var(--color-text);
  background: #000000;
  overflow: hidden;
  height: 100dvh;
}

::selection {
  background: #232323;
  color: #fff;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

.background {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to bottom right, var(--color-gradient-start) 0%, #000000 100%);
}

@keyframes rotate {
  from { transform: rotate(-360deg); }
  to { transform: rotate(0deg); }
}

@keyframes rotateInverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

.circles {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  height: 100dvh;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.72;
  transition: opacity 0.5s ease;
}

.circles.is-link-active,
.circles:has(.circle--1:hover),
.circles:has(.circle--2:hover) {
  opacity: 1;
}

.circles .circle {
  position: absolute;
  top: 50dvh;
  left: var(--content-width);
  width: var(--circle-size);
  height: var(--circle-size);
  margin-left: calc(var(--circle-size) / -2);
  margin-top: calc(var(--circle-size) / -2);
  opacity: 0;
  pointer-events: auto;
}

.circles .circle--3 {
  pointer-events: none;
}

.circles .circle_inner {
  position: absolute;
  inset: 0;
  will-change: transform;
  transition: transform 1.4s var(--ease-smooth);
}

.circles .circle_border {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--color-circle);
  transition: border-color 0.8s ease;
}

.circles .circle--1 .circle_border {
  animation: rotate 90s linear infinite;
}

.circles .circle--2 .circle_border {
  animation: rotateInverse 120s linear infinite;
}

.circles .circle--1:hover .circle_border,
.circles .circle--2:hover .circle_border,
.circles.is-link-active .circle--1 .circle_border,
.circles.is-link-active .circle--2 .circle_border {
  animation-play-state: paused;
}

.circles .circle--1:hover .circle_border,
.circles .circle--2:hover .circle_border {
  border-color: rgba(255, 255, 255, 0.5);
}

.circles.is-link-active .circle--1 .circle_border,
.circles.is-link-active .circle--2 .circle_border {
  border-color: var(--color-link-muted);
}

.circles.is-link-active .circle--1 .circle_inner {
  transform: rotate(-48deg);
}

.circles.is-link-active .circle--2 .circle_inner {
  transform: rotate(48deg);
}

.circles.is-link-active.is-link-forward .circle--1 .circle_inner {
  transform: rotate(48deg);
}

.circles.is-link-active.is-link-forward .circle--2 .circle_inner {
  transform: rotate(-48deg);
}

.circles.is-link-active .circle_plus::before,
.circles.is-link-active .circle_plus::after {
  background-color: var(--color-link);
}

.circles .circle_plus {
  position: absolute;
  width: 11px;
  height: 11px;
}

.circles .circle_plus::before,
.circles .circle_plus::after {
  content: '';
  position: absolute;
  background-color: var(--color-circle-marker);
  transform-origin: center;
  transition: transform 0.8s var(--ease-smooth), background-color 0.8s ease;
}

.circles .circle:hover .circle_plus::before,
.circles .circle:hover .circle_plus::after {
  transform: scale(1.5);
}

.circles .circle_plus::before {
  top: 5px;
  left: 0;
  width: 100%;
  height: 1px;
}

.circles .circle_plus::after {
  top: 0;
  left: 5px;
  width: 1px;
  height: 100%;
}

.circles .circle_plus:nth-child(1) {
  bottom: calc(100% - 5px);
  left: 50%;
  margin-left: -5px;
}

.circles .circle_plus:nth-child(1) .circle_value {
  transform: rotate(180deg);
}

.circles .circle_plus:nth-child(2) {
  top: calc(100% - 5px);
  left: 50%;
  margin-left: -5px;
}

.circles .circle_plus:nth-child(2) .circle_value,
.circles .circle_plus:nth-child(3) .circle_value,
.circles .circle_plus:nth-child(4) .circle_value {
  top: 11px;
}

.circles .circle_plus:nth-child(3) {
  top: 50%;
  left: calc(100% - 5px);
  margin-left: -5px;
  transform: rotate(-90deg);
  transform-origin: top center;
}

.circles .circle_plus:nth-child(4) {
  top: 50%;
  right: calc(100% - 5px);
  margin-right: -5px;
  transform: rotate(90deg);
  transform-origin: top center;
}

.circles .circle_value {
  position: absolute;
  top: 0;
  left: 50%;
  width: 80px;
  margin-left: -40px;
  padding-top: 15px;
  transform-origin: top center;
  text-align: center;
  font-size: 0.857rem;
  line-height: 1.14;
  font-variant-numeric: tabular-nums;
  opacity: 0.72;
}

@media (prefers-reduced-motion: reduce) {
  .circles .circle_border,
  .circles .circle_plus::before,
  .circles .circle_plus::after {
    transition-duration: 0.01ms;
  }
}

.left-panel {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  width: var(--content-width);
  height: 100dvh;
  padding: max(8vh, 2rem) 6vw;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.left-panel::-webkit-scrollbar {
  display: none;
}

.left-panel__content {
  width: 100%;
  margin-block: auto;
  flex-shrink: 0;
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
}

.intro {
  font-size: 1em;
  font-weight: 300;
  line-height: 1.5;
}

.intro-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75em;
  padding: 0.7em 1.4em;
  font-family: var(--font);
  font-size: clamp(0.9375rem, 1.75vw, 1.125rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 6px;
  background-color: var(--color-link);
  color: var(--color-gradient-start);
  -webkit-text-fill-color: var(--color-gradient-start);
  transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s ease, background-color 0.4s ease, border-color 0.4s ease;
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(238, 248, 194, 0.12);
}

.cta:active {
  transform: translateY(0);
  box-shadow: none;
}

.cta--secondary {
  background-color: transparent;
  border-color: var(--color-link);
  color: var(--color-link);
  -webkit-text-fill-color: var(--color-link);
}

.cta--secondary:hover {
  box-shadow: none;
}

@media (max-width: 767px) {
  :root {
    --content-width: 100vw;
    --circle-size: 80svw;
  }

  .left-panel {
    padding: max(10vh, 2rem) 8vw;
  }

  .left-panel__content {
    font-size: clamp(1.25rem, 4.2vw, 1.9rem);
  }

  .intro-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-top: 2.25rem;
  }

  .cta {
    width: 100%;
  }
}
