* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: #000;
  color: #fff;
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  -webkit-text-size-adjust: 100%;
}
body {
  overscroll-behavior: none;
  touch-action: none;
}
.app {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: max(1rem, env(safe-area-inset-top)) max(1.5rem, env(safe-area-inset-right)) 1rem max(1.5rem, env(safe-area-inset-left));
  border-bottom: 1px solid #fff;
  position: relative;
  z-index: 3;
}
header img {
  display: block;
  width: min(9.5rem, 58vw);
  height: auto;
}
#client-login {
  font: inherit;
  font-size: 0.8125rem;
  color: #fff;
  background: transparent;
  border: 1px solid #fff;
  padding: 0.55rem 0.85rem;
  min-height: 2.5rem;
  cursor: pointer;
  touch-action: manipulation;
  white-space: nowrap;
}
#client-login:hover,
#client-login:focus-visible {
  background: #fff;
  color: #000;
  outline: none;
}
main {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 1.5rem;
  overflow: hidden;
  padding: 1.25rem max(1.5rem, env(safe-area-inset-right)) 1.25rem max(1.5rem, env(safe-area-inset-left));
}
.intro {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4.5rem;
  max-width: 28rem;
  justify-self: center;
  width: min(28rem, 100%);
}
.intro p {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.5;
}
#copy-email,
.sections button {
  font: inherit;
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
  position: relative;
}
#copy-email {
  font-size: clamp(0.95rem, 4.2vw, 1.9rem);
  padding: 0.35rem 0.85rem;
  width: fit-content;
  max-width: 100%;
  text-align: left;
  white-space: nowrap;
}
#copy-email span {
  white-space: nowrap;
}
#copy-email:focus-visible,
.sections button:focus-visible {
  outline: none;
}
#copy-email::before,
#copy-email::after,
.sections button::before,
.sections button::after {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  color: #fff;
  pointer-events: none;
}
#copy-email::before,
.sections button::before {
  content: "[";
  left: 0.15rem;
  transform: translate(-4px, -50%);
}
#copy-email::after,
.sections button::after {
  content: "]";
  right: 0.15rem;
  transform: translate(4px, -50%);
}
#copy-email:hover::before,
#copy-email:focus-visible::before,
#copy-email:hover::after,
#copy-email:focus-visible::after,
.sections button[aria-current="true"]::before,
.sections button[aria-current="true"]::after {
  opacity: 1;
  transform: translate(0, -50%);
}
@media (hover: hover) {
  .sections button:hover::before,
  .sections button:hover::after {
    opacity: 1;
    transform: translate(0, -50%);
  }
}
.stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}
.gear-block {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: min(50rem, 52vw, 88vh);
  height: 100%;
  min-height: 0;
  margin: 0;
}
.gear-block .sections {
  margin-bottom: 1.25rem;
}
.gear-stage {
  --plan-box: 400;
  --hub-r: 96;
  --hub-inset: calc((100% - (var(--hub-r) * 2 / var(--plan-box) * 100%)) / 2);
  position: relative;
  flex: 1 1 auto;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100% - 3.75rem);
  aspect-ratio: 1;
  min-height: 0;
}
.gear {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(0deg);
  transform-origin: 50% 50%;
  will-change: transform;
  pointer-events: none;
}
.gear svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.gear svg * {
  vector-effect: non-scaling-stroke;
  shape-rendering: geometricPrecision;
}
.hub {
  position: absolute;
  inset: var(--hub-inset, 22%);
  border-radius: 50%;
  overflow: hidden;
  background: #000;
  border: 0;
  z-index: 1;
}
.hub.is-wiping {
  animation: hub-pulse 1.8s ease;
}
.wipe-beam {
  position: absolute;
  top: -12%;
  bottom: -12%;
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  opacity: 0;
  z-index: 5;
  pointer-events: none;
}
.wipe-beam::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 100%;
  width: 22px;
  background: #fff;
  opacity: 0.22;
}
.hub.is-wiping.reverse .wipe-beam::before {
  right: auto;
  left: 100%;
}
.hub.is-wiping .wipe-beam {
  animation: beam-sweep 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hub.is-wiping.reverse .wipe-beam {
  animation-name: beam-sweep-rev;
}
@keyframes beam-sweep {
  0% { left: 0%; opacity: 0; }
  4% { opacity: 1; }
  96% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
@keyframes beam-sweep-rev {
  0% { left: 100%; opacity: 0; }
  4% { opacity: 1; }
  96% { opacity: 1; }
  100% { left: 0%; opacity: 0; }
}
@keyframes hub-pulse {
  0%, 100% { border-color: #fff; background: #000; }
  35% { border-color: #fff; background: #0a0a0a; }
  55% { border-color: rgba(255,255,255,0.5); }
}
.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-align: center;
  background: #000;
  border-radius: 50%;
  overflow: hidden;
}
.slide p {
  margin: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-size: 1rem;
  line-height: 1.3;
}
.slide .hub-line {
  display: block;
  white-space: nowrap;
  text-align: center;
  max-width: 100%;
}
.slide.is-active {
  clip-path: inset(0 0 0 0);
  z-index: 1;
}
.slide.is-exit {
  clip-path: inset(0 0 0 0);
  animation: wipe-out 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  z-index: 2;
}
.slide.is-enter {
  clip-path: inset(0 100% 0 0);
  animation: wipe-in 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  z-index: 3;
}
.slide.is-exit p {
  animation: text-exit 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.slide.is-enter p {
  animation: text-enter 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes wipe-out {
  to { clip-path: inset(0 0 0 100%); }
}
@keyframes wipe-in {
  to { clip-path: inset(0 0 0 0); }
}
@keyframes wipe-out-rev {
  to { clip-path: inset(0 100% 0 0); }
}
@keyframes wipe-in-rev {
  from { clip-path: inset(0 0 0 100%); }
  to { clip-path: inset(0 0 0 0); }
}
.hub.reverse .slide.is-exit {
  animation-name: wipe-out-rev;
}
.hub.reverse .slide.is-enter {
  animation-name: wipe-in-rev;
}
@keyframes text-exit {
  0% { opacity: 1; }
  45% { opacity: 0.45; }
  100% { opacity: 0; }
}
@keyframes text-enter {
  0% { opacity: 0; }
  35% { opacity: 0.35; }
  100% { opacity: 1; }
}
.scroll-cue {
  width: 0.65rem;
  height: 0.65rem;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
  transform: rotate(45deg);
  opacity: 0.85;
  animation: bounce 1.4s ease-in-out infinite;
  pointer-events: none;
}
.scroll-cue.is-settled {
  animation: none;
  opacity: 0.25;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0) rotate(45deg); opacity: 0.9; }
  50% { transform: translateY(0.4rem) rotate(45deg); opacity: 0.25; }
}
.sections {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
}
.sections button {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  padding: 0.4rem 1.1rem;
  opacity: 0.45;
}
.sections button[aria-current="true"] {
  opacity: 1;
}
@media (hover: hover) {
  .sections button:hover {
    opacity: 1;
  }
}
footer {
  flex: 0 0 auto;
  border-top: 1px solid #fff;
  padding: 0.85rem max(1.5rem, env(safe-area-inset-right)) max(0.85rem, env(safe-area-inset-bottom)) max(1.5rem, env(safe-area-inset-left));
  background: #000;
  position: relative;
  z-index: 3;
}
footer p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
}
@media (max-width: 800px) {
  main {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    grid-template-rows: none;
    align-content: stretch;
    justify-items: stretch;
    overflow: hidden;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    min-height: 0;
  }
  .intro {
    max-width: none;
    order: 1;
    gap: 1rem;
    align-items: center;
    flex: 0 0 auto;
    width: 100%;
  }
  .intro p {
    text-align: center;
    font-size: clamp(0.95rem, 3.6vw, 1.15rem);
  }
  #copy-email {
    align-self: center;
  }
  .stage {
    order: 2;
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    overflow: hidden;
    width: 100%;
    align-items: center;
    justify-content: center;
  }
  .gear-block {
    width: 100%;
    height: auto;
    max-height: none;
    margin: 0;
    min-height: 0;
    gap: 0.55rem;
    flex: 0 0 auto;
  }
  .gear-block .sections {
    margin-bottom: 1.75rem;
  }
  .gear-stage {
    position: relative;
    flex: none;
    width: min(92vw, 54vh);
    height: min(92vw, 54vh);
    max-width: min(92vw, 54vh);
    max-height: min(92vw, 54vh);
    min-width: 16rem;
    min-height: 16rem;
    aspect-ratio: 1;
  }
  .sections button {
    font-size: clamp(0.9rem, 3.5vw, 1.05rem);
    padding: 0.3rem 0.85rem;
  }
  footer p {
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue { animation: none; }
  .slide.is-exit,
  .slide.is-enter,
  .slide.is-enter p,
  .slide.is-exit p,
  .hub.is-wiping,
  .hub.is-wiping .wipe-beam { animation: none; transition: none; }
  .slide.is-enter { clip-path: inset(0 0 0 0); }
  .slide.is-exit { clip-path: inset(0 0 0 100%); }
  #client-login,
  #copy-email::before,
  #copy-email::after,
  .sections button::before,
  .sections button::after { transition: none; }
}
