:root {
  color-scheme: light;
  --background: #f6f4ef;
  --surface: #fffefd;
  --ink: #182039;
  --muted: #646d80;
  --line: #dcdde5;
  --blue: #3557e8;
  --violet: #7148d8;
  --bar-track: #e9e9f2;
  --art-glow: #b7b1ef57;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --background: #101321;
    --surface: #191d2c;
    --ink: #f5f3fb;
    --muted: #b6bad0;
    --line: #36394e;
    --blue: #99abff;
    --violet: #b49aff;
    --bar-track: #33374c;
    --art-glow: #594ca461;
  }
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font:
    16px/1.5 'Avenir Next',
    Avenir,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}

.page-shell {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 clamp(24px, 6vw, 96px);
  display: flex;
  flex-direction: column;
  overflow: clip;
}

.page-shell::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -42vmax;
  right: -40vmax;
  width: 100vmax;
  height: 100vmax;
  border-radius: 50%;
  background: radial-gradient(circle, var(--art-glow), transparent 65%);
  pointer-events: none;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header {
  min-height: 104px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  display: block;
  width: 38px;
  height: 38px;
  flex: none;
}
.brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}
.brand-name {
  font-size: 25px;
  font-weight: 850;
  letter-spacing: -0.065em;
  white-space: nowrap;
}
.brand-dot {
  color: var(--blue);
}
.header-note,
.site-footer {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.main-content {
  position: relative;
  width: 100%;
  max-width: 1248px;
  margin: auto;
  padding: clamp(88px, 11vh, 160px) 0 clamp(64px, 8vh, 104px);
}

.intro {
  position: relative;
  z-index: 1;
  max-width: 780px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 30px;
  color: var(--violet);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}
.eyebrow-line {
  width: 32px;
  height: 1px;
  background: currentColor;
}

h1,
h2,
p {
  margin-top: 0;
}
h1 {
  margin-bottom: 24px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(68px, 8.6vw, 132px);
  font-weight: 400;
  letter-spacing: -0.077em;
  line-height: 0.95;
}
h1 em {
  font-weight: 400;
  color: var(--violet);
}
.intro-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.5;
}

.hero-art {
  position: absolute;
  top: clamp(22px, 4vh, 64px);
  right: clamp(-135px, -4vw, -40px);
  width: clamp(330px, 40vw, 580px);
  aspect-ratio: 1;
  pointer-events: none;
}
.art-scene {
  position: absolute;
  inset: 0;
  animation: float 8s ease-in-out infinite;
  animation-play-state: var(--motion-state, running);
}
.art-orbit,
.art-core {
  position: absolute;
  display: block;
  border-radius: 50%;
}
.art-orbit {
  --orbit-color: var(--violet);
  inset: 4%;
  border: 1px solid color-mix(in srgb, var(--orbit-color) 46%, transparent);
}
/* Split in the orbit's own plane, before tilt/rotation. The matching halves
   share a clock, with the sphere between them in the paint order. */
.orbit-back {
  z-index: 0;
  clip-path: inset(-12px -12px 50% -12px);
}
.orbit-front {
  z-index: 2;
  clip-path: inset(50% -12px -12px -12px);
  border-color: color-mix(in srgb, var(--orbit-color) 78%, var(--ink));
}
.orbit-track {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  animation: satellite-turn 12s linear infinite;
  animation-play-state: var(--motion-state, running);
}
.orbit-track::after {
  content: '';
  position: absolute;
  top: -4px;
  left: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orbit-color);
}
.orbit-outer {
  transform: rotateZ(-27deg) scaleY(0.34);
  animation: orbit-outer-turn 24s linear infinite;
  animation-play-state: var(--motion-state, running);
}
.orbit-inner {
  --orbit-color: var(--blue);
  inset: 14%;
  transform: rotateZ(35deg) scaleY(0.43);
  animation: orbit-inner-turn 18s linear infinite;
  animation-play-state: var(--motion-state, running);
}
.orbit-inner .orbit-track {
  animation-duration: 9s;
  animation-direction: reverse;
}
.orbit-inner .orbit-track::after {
  width: 6px;
  height: 6px;
  top: -3px;
  left: calc(50% - 3px);
}
.art-core {
  z-index: 1;
  inset: 27%;
  overflow: hidden;
  background: #6848d4;
  box-shadow: 0 30px 100px #7148d83c;
}
.art-core::before,
.art-core::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.art-core::before {
  background: conic-gradient(
    from 40deg,
    #845bdf,
    #3557e8 30%,
    #a08aee 57%,
    #7148d8 75%,
    #845bdf
  );
  animation: sphere-turn 20s linear infinite;
  animation-play-state: var(--motion-state, running);
}
.art-core::after {
  background:
    radial-gradient(circle at 30% 24%, #ffffff9c, transparent 48%),
    radial-gradient(circle at 32% 28%, transparent 32%, #172369b8 100%);
}
.core-surface {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #e4ddff;
  stroke-width: 0.6;
  opacity: 0.32;
  animation: meridian-turn 12s linear infinite;
  animation-play-state: var(--motion-state, running);
}
.motion-control {
  position: absolute;
  top: 20px;
  right: 60px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--background);
  color: var(--muted);
  pointer-events: auto;
  cursor: pointer;
}
.motion-toggle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.motion-control svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.motion-control .play-symbol {
  display: none;
}
.motion-control:has(:focus-visible) {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}
.motion-control:hover {
  color: var(--ink);
  border-color: var(--violet);
}
.hero-art:has(.motion-toggle:checked),
.hero-art[data-motion-suspended] {
  --motion-state: paused;
}
.motion-toggle:checked ~ .pause-symbol {
  display: none;
}
.motion-toggle:checked ~ .play-symbol {
  display: block;
}

.progress-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 790px);
  margin-top: clamp(76px, 12vh, 152px);
  padding: 28px 32px 24px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 22px 65px #1723450d;
  backdrop-filter: blur(14px);
}
.progress-topline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}
.panel-kicker {
  margin-bottom: 7px;
  color: var(--violet);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
h2 {
  margin-bottom: 23px;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 650;
  letter-spacing: -0.025em;
}
.progress-value {
  margin-bottom: 19px;
  color: var(--ink);
  font-size: 46px;
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 1;
  white-space: nowrap;
}
.progress-value span {
  font-size: 0.55em;
}
progress {
  appearance: none;
  display: block;
  width: 100%;
  height: 9px;
  border: 0;
  border-radius: 99px;
  overflow: hidden;
  background: var(--bar-track);
  color: var(--blue);
}
progress::-webkit-progress-bar {
  background: var(--bar-track);
  border-radius: 99px;
}
progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--violet), var(--blue));
  border-radius: 99px;
}
progress::-moz-progress-bar {
  background: linear-gradient(90deg, var(--violet), var(--blue));
  border-radius: 99px;
}
.progress-caption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  min-height: 86px;
  border-top: 1px solid var(--line);
}
.footer-period {
  color: var(--violet);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes sphere-turn {
  to {
    transform: rotate(360deg);
  }
}
@keyframes meridian-turn {
  to {
    transform: rotateY(360deg);
  }
}
@keyframes satellite-turn {
  to {
    transform: rotate(360deg);
  }
}
@keyframes orbit-outer-turn {
  from {
    transform: rotateZ(-27deg) scaleY(0.34);
  }
  to {
    transform: rotateZ(333deg) scaleY(0.34);
  }
}
@keyframes orbit-inner-turn {
  from {
    transform: rotateZ(35deg) scaleY(0.43);
  }
  to {
    transform: rotateZ(-325deg) scaleY(0.43);
  }
}

@media (max-width: 700px) {
  .site-header {
    min-height: 82px;
  }
  .header-note {
    display: none;
  }
  .main-content {
    padding-top: 90px;
  }
  .hero-art {
    width: 360px;
    top: 0;
    right: -170px;
  }
  .art-scene {
    opacity: 0.28;
  }
  .motion-control {
    right: 180px;
  }
  .intro {
    max-width: 100%;
  }
  h1 {
    font-size: clamp(61px, 13vw, 88px);
  }
  .progress-panel {
    margin-top: 105px;
    padding: 23px 22px;
  }
  .site-footer {
    min-height: 74px;
  }
}

@media (max-width: 390px) {
  .page-shell {
    padding-inline: 20px;
  }
  h1 {
    font-size: 58px;
  }
  .progress-topline {
    align-items: start;
  }
  .progress-value {
    font-size: 36px;
  }
  .progress-caption {
    flex-direction: column;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-control {
    display: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
