:root {
  color-scheme: light;
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #0a0a0a;
  background: #f1f0eb;
  font-synthesis: none;
  text-rendering: geometricPrecision;
  --ink: #0a0a0a;
  --paper: #f1f0eb;
  --line: rgba(10, 10, 10, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(10, 10, 10, 0.055) 50%, transparent calc(50% + 0.5px)),
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.72), transparent 48rem),
    var(--paper);
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.demo-page {
  display: grid;
  width: min(100%, 1800px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  grid-template-rows: auto 1fr auto;
  padding:
    max(22px, env(safe-area-inset-top))
    clamp(20px, 4vw, 72px)
    max(20px, env(safe-area-inset-bottom));
}

.demo-header,
.demo-footer {
  display: grid;
  align-items: center;
  border-color: var(--line);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

.demo-header {
  grid-template-columns: 1fr auto 1fr;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.demo-header__brand {
  width: max-content;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.065em;
  text-decoration: none;
}

.demo-header__brand span {
  position: relative;
  top: -0.55em;
  margin-left: 2px;
  font-size: 7px;
  letter-spacing: 0;
}

.demo-header__status {
  display: flex;
  align-items: center;
  margin: 0;
  gap: 9px;
}

.demo-header__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 0 rgba(10, 10, 10, 0.35);
  animation: status-pulse 2.4s ease-out infinite;
}

.demo-header__domain {
  justify-self: end;
  margin: 0;
}

.demo-main {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  align-items: center;
  gap: clamp(30px, 6vw, 110px);
  padding: clamp(54px, 7vh, 100px) 0;
}

.demo-copy {
  position: relative;
  z-index: 2;
}

.demo-copy__eyebrow {
  display: flex;
  align-items: center;
  margin: 0 0 clamp(25px, 4vh, 48px);
  gap: 14px;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.demo-copy__eyebrow::before {
  width: 42px;
  height: 1px;
  content: "";
  background: currentColor;
}

.demo-copy__title {
  max-width: 940px;
  margin: 0;
  font-size: clamp(58px, 8.6vw, 150px);
  font-weight: 900;
  letter-spacing: -0.085em;
  line-height: 0.76;
}

.demo-copy__title span {
  color: transparent;
  -webkit-text-stroke: clamp(1.5px, 0.13vw, 2.5px) var(--ink);
  text-stroke: clamp(1.5px, 0.13vw, 2.5px) var(--ink);
}

.demo-copy__lead {
  max-width: 650px;
  margin: clamp(34px, 6vh, 68px) 0 0;
  font-size: clamp(16px, 1.2vw, 21px);
  letter-spacing: -0.025em;
  line-height: 1.55;
}

.demo-copy__lead strong {
  font-weight: 820;
}

.demo-copy__actions {
  display: flex;
  align-items: center;
  margin-top: clamp(26px, 4vh, 44px);
  gap: 22px;
}

.demo-copy__cta {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 10px 0 24px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--paper);
  background: var(--ink);
  gap: 24px;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: color 220ms ease, background 220ms ease, transform 220ms ease;
}

.demo-copy__cta span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper);
  font-size: 18px;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.demo-copy__cta:hover {
  color: var(--ink);
  background: transparent;
  transform: translateY(-2px);
}

.demo-copy__cta:hover span {
  color: var(--paper);
  background: var(--ink);
  transform: rotate(45deg);
}

.demo-copy__cta:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.demo-copy__note,
.demo-copy__maintenance {
  margin: 0;
  font-size: 10px;
  font-weight: 690;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.demo-copy__note {
  max-width: 130px;
  color: rgba(10, 10, 10, 0.55);
  line-height: 1.4;
}

.demo-copy__maintenance {
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.kinetic {
  position: relative;
  width: min(100%, 570px);
  aspect-ratio: 1;
  justify-self: end;
  border-radius: 50%;
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.kinetic:hover {
  transform: rotate(-2deg) scale(1.025);
}

.kinetic__orbit,
.kinetic__field,
.kinetic__wave,
.kinetic__core {
  position: absolute;
  border-radius: 50%;
}

.kinetic__orbit {
  inset: 0;
  border: 1px solid var(--ink);
}

.kinetic__orbit--outer {
  animation: orbit-spin 24s linear infinite;
}

.kinetic__orbit--outer span {
  position: absolute;
  padding: 5px 8px;
  border: 1px solid var(--ink);
  background: var(--paper);
  font-size: 9px;
  font-weight: 820;
  letter-spacing: 0.12em;
  line-height: 1;
}

.kinetic__orbit--outer span:nth-child(1) {
  top: 5%;
  left: 18%;
  transform: rotate(-28deg);
}

.kinetic__orbit--outer span:nth-child(2) {
  top: 23%;
  right: -1%;
  transform: rotate(61deg);
}

.kinetic__orbit--outer span:nth-child(3) {
  right: 18%;
  bottom: 5%;
  transform: rotate(-28deg);
}

.kinetic__orbit--outer span:nth-child(4) {
  bottom: 23%;
  left: -1%;
  transform: rotate(61deg);
}

.kinetic__orbit--inner {
  inset: 6.5%;
  border-color: var(--line);
  border-style: dashed;
  animation: orbit-spin 32s linear infinite reverse;
}

.kinetic__field {
  inset: 12%;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 20px 60px rgba(10, 10, 10, 0.13);
  animation: field-breathe 7s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.kinetic__field::after {
  position: absolute;
  inset: 6%;
  border: 1px solid rgba(241, 240, 235, 0.42);
  border-radius: 50%;
  content: "";
}

.kinetic__wave {
  width: 130%;
  height: 62%;
  left: -15%;
  background: var(--paper);
}

.kinetic__wave--one {
  top: -25%;
  animation: wave-one 8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.kinetic__wave--two {
  bottom: -25%;
  animation: wave-two 8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.kinetic__core {
  z-index: 2;
  inset: 38%;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(241, 240, 235, 0.35), 0 0 0 14px var(--ink);
  animation: core-pulse 4s ease-in-out infinite;
}

.kinetic__core span {
  font-size: clamp(28px, 4vw, 58px);
  font-weight: 900;
  letter-spacing: -0.08em;
}

.kinetic__cross {
  position: absolute;
  width: 13px;
  height: 13px;
}

.kinetic__cross::before,
.kinetic__cross::after {
  position: absolute;
  background: var(--ink);
  content: "";
}

.kinetic__cross::before {
  top: 6px;
  left: 0;
  width: 13px;
  height: 1px;
}

.kinetic__cross::after {
  top: 0;
  left: 6px;
  width: 1px;
  height: 13px;
}

.kinetic__cross--one {
  top: 10%;
  right: 10%;
}

.kinetic__cross--two {
  bottom: 10%;
  left: 10%;
}

.demo-footer {
  grid-template-columns: 1fr 1fr;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.demo-footer p {
  margin: 0;
}

.demo-footer p:last-child {
  justify-self: end;
}

@keyframes status-pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(10, 10, 10, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(10, 10, 10, 0);
  }
}

@keyframes orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes field-breathe {
  0%,
  100% {
    border-radius: 50%;
    transform: rotate(0deg);
  }
  50% {
    border-radius: 43% 57% 51% 49% / 54% 46% 54% 46%;
    transform: rotate(12deg);
  }
}

@keyframes wave-one {
  0%,
  100% {
    transform: translate3d(-8%, 0, 0) rotate(-7deg);
  }
  50% {
    transform: translate3d(8%, 25%, 0) rotate(10deg);
  }
}

@keyframes wave-two {
  0%,
  100% {
    transform: translate3d(8%, 0, 0) rotate(-7deg);
  }
  50% {
    transform: translate3d(-8%, -25%, 0) rotate(10deg);
  }
}

@keyframes core-pulse {
  0%,
  100% {
    transform: scale(0.88) rotate(0deg);
  }
  50% {
    transform: scale(1.08) rotate(180deg);
  }
}

@media (max-width: 980px) {
  body {
    background:
      radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.8), transparent 38rem),
      var(--paper);
  }

  .demo-main {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .kinetic {
    width: min(82vw, 560px);
    justify-self: center;
  }

  .demo-copy__title {
    font-size: clamp(58px, 13.4vw, 126px);
  }
}

@media (max-width: 620px) {
  .demo-page {
    padding-right: 18px;
    padding-left: 18px;
  }

  .demo-header {
    grid-template-columns: 1fr auto;
  }

  .demo-header__status {
    display: none;
  }

  .demo-main {
    padding: 48px 0 54px;
  }

  .demo-copy__title {
    font-size: clamp(53px, 17vw, 86px);
    line-height: 0.82;
  }

  .demo-copy__lead {
    margin-top: 36px;
    font-size: 16px;
  }

  .demo-copy__actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .demo-copy__note {
    max-width: none;
    margin-left: 4px;
  }

  .kinetic {
    width: min(88vw, 440px);
  }

  .demo-footer {
    grid-template-columns: 1fr;
    gap: 10px;
    line-height: 1.4;
  }

  .demo-footer p:last-child {
    justify-self: start;
    color: rgba(10, 10, 10, 0.55);
  }
}

@media (max-height: 760px) and (min-width: 981px) {
  .demo-page {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .demo-main {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .demo-copy__eyebrow {
    margin-bottom: 22px;
  }

  .demo-copy__lead {
    margin-top: 32px;
  }

  .kinetic {
    width: min(64vh, 520px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
