@font-face {
  font-family: "Atkinson Local";
  src: url("../fonts/atkinson-latin-400.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Atkinson Local";
  src: url("../fonts/atkinson-latin-700.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #030405;
  --ink: #f7fbff;
  --muted: rgba(247, 251, 255, 0.42);
  --accent: #8ee8ff;
  --font-body: "Atkinson Local", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --wheel-left: clamp(82px, 13vw, 186px);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  background: var(--bg);
}

body.coming-soon-page {
  margin: 0;
  min-height: 100dvh;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-body);
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wheel-stage {
  position: relative;
  display: grid;
  min-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 255, 255, 0.16), transparent 16rem),
    radial-gradient(circle at 82% 20%, rgba(142, 232, 255, 0.08), transparent 22rem),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03), transparent 34rem),
    linear-gradient(180deg, #060708 0%, #030405 54%, #010202 100%);
  isolation: isolate;
}

.wheel-stage::before,
.wheel-stage::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
}

.wheel-stage::before {
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 255, 255, 0.08), transparent 18rem),
    radial-gradient(circle at 78% 24%, rgba(142, 232, 255, 0.045), transparent 24rem);
  opacity: 0.42;
}

.wheel-stage::after {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.74' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.34'/%3E%3C/svg%3E"),
    radial-gradient(circle at center, transparent 24%, rgba(0, 0, 0, 0.78) 88%);
  mix-blend-mode: soft-light;
  opacity: 0.42;
}

.wheel {
  position: relative;
  min-height: 100dvh;
  width: 100vw;
  overflow: hidden;
}

.wheel-drum {
  position: absolute;
  inset: 0;
  transform: translate3d(0, 0, 0);
}

.wheel-skip {
  position: absolute;
  top: clamp(14px, 3vw, 34px);
  right: clamp(14px, 3vw, 42px);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 34px;
  padding: 0.48rem 0.72rem;
  border: 1px solid rgba(247, 251, 255, 0.16);
  border-radius: 999px;
  background: rgba(247, 251, 255, 0.055);
  color: rgba(247, 251, 255, 0.68);
  font: 700 0.72rem/1 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.72;
  backdrop-filter: blur(12px);
  transform: translate3d(0, 0, 0);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    opacity 320ms ease,
    transform 180ms ease;
}

.wheel-skip:hover {
  border-color: rgba(142, 232, 255, 0.38);
  background: rgba(142, 232, 255, 0.1);
  color: #ffffff;
  opacity: 1;
}

.wheel-skip:active {
  transform: translate3d(0, 1px, 0);
}

.wheel-skip:focus-visible {
  outline: 2px solid rgba(142, 232, 255, 0.78);
  outline-offset: 4px;
}

.wheel.is-complete .wheel-skip {
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, -6px, 0);
}

.wheel-item {
  --wheel-x: 0px;
  --wheel-y: 0px;
  --fit-scale: 1;
  --scale: 1;
  --angle: 0deg;
  position: absolute;
  top: 50%;
  left: var(--wheel-left);
  z-index: var(--z, 1);
  display: block;
  width: max-content;
  margin: 0;
  padding: 0.04em 0 0.18em;
  color: #f7fbff;
  font-size: clamp(2.85rem, 8.1vw, 8.35rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.04;
  opacity: 0;
  overflow-wrap: normal;
  pointer-events: none;
  white-space: nowrap;
  transform:
    translate3d(var(--wheel-x), calc(-50% + var(--wheel-y)), 0)
    rotate(var(--angle))
    scale(calc(var(--scale) * var(--fit-scale)));
  transform-origin: left center;
  text-shadow: 0 12px 40px rgba(255, 255, 255, 0.035);
  transition:
    color 900ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 900ms cubic-bezier(0.16, 1, 0.3, 1);
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.wheel-item::after {
  display: none;
  content: none;
}

.wheel-item.is-active {
  color: #ffffff;
  opacity: 1;
  text-shadow: 0 12px 40px rgba(255, 255, 255, 0.08);
}

.wheel.is-complete .wheel-item:not(.is-active) {
  opacity: 0 !important;
}

.wheel.is-reveal-settled .wheel-item:not(.is-active) {
  color: rgba(247, 251, 255, 0);
  opacity: 0;
  transition: none;
}

.project-reveal {
  --project-detail-height: 8.5rem;
  --project-label-x: 0px;
  position: absolute;
  right: clamp(18px, 5vw, 84px);
  bottom: clamp(22px, 8vh, 92px);
  left: var(--wheel-left);
  z-index: 40;
  display: grid;
  max-width: min(1020px, calc(100vw - var(--wheel-left) - clamp(18px, 5vw, 84px)));
  gap: clamp(28px, 4.2vh, 48px);
  opacity: 0;
  pointer-events: none;
  filter: blur(8px);
  transform: translate3d(0, 24px, 0);
  transition:
    opacity 1100ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 1100ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 1100ms cubic-bezier(0.16, 1, 0.3, 1);
}

.wheel.is-complete .project-reveal {
  filter: blur(0);
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

.wheel.is-reveal-settled .project-reveal {
  filter: blur(0);
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: none;
}

.project-reveal-label {
  margin: 0;
  color: rgba(142, 232, 255, 0.78);
  font-size: clamp(0.72rem, 1vw, 0.86rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  transform: translate3d(var(--project-label-x), 0, 0);
  transition:
    color 180ms ease,
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
  width: max-content;
}

.project-reveal.is-project-hovering .project-reveal-label {
  color: #ffb15f;
}

.project-list {
  display: grid;
  align-items: end;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
  overflow: visible;
}

.project-item {
  position: relative;
  min-width: 0;
  margin: 0;
  padding-top: clamp(9px, 1.2vw, 13px);
  border-top: 1px solid rgba(142, 232, 255, 0.28);
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    opacity 760ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 760ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-item::after {
  position: absolute;
  inset: -10px -8px -58px;
  content: "";
}

.project-item:focus-visible {
  outline: 2px solid rgba(255, 177, 95, 0.72);
  outline-offset: 8px;
}

.wheel.is-complete .project-item {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.wheel.is-reveal-settled .project-item {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0ms;
}

.wheel.is-complete:not(.is-reveal-settled) .project-item:nth-child(2) {
  transition-delay: 90ms;
}

.wheel.is-complete:not(.is-reveal-settled) .project-item:nth-child(3) {
  transition-delay: 180ms;
}

.wheel.is-complete:not(.is-reveal-settled) .project-item:nth-child(4) {
  transition-delay: 270ms;
}

.project-name,
.project-line {
  display: block;
  overflow: hidden;
  letter-spacing: 0;
  text-overflow: ellipsis;
  transition: color 180ms ease;
  white-space: nowrap;
}

.project-name {
  color: #ffffff;
  font-size: clamp(1rem, 1.5vw, 1.32rem);
  font-weight: 700;
  line-height: 1.08;
}

.project-line {
  margin-top: 0.28rem;
  color: rgba(247, 251, 255, 0.52);
  font-size: clamp(0.78rem, 1vw, 0.96rem);
  font-weight: 400;
  line-height: 1.25;
}

.project-detail {
  height: 0;
  margin: 0;
  overflow: hidden;
  visibility: hidden;
  color: rgba(247, 251, 255, 0.66);
  font-size: clamp(0.78rem, 0.94vw, 0.9rem);
  font-weight: 400;
  line-height: 1.42;
  opacity: 0;
  transform: translate3d(0, 7px, 0);
  transition:
    color 180ms ease,
    height 320ms cubic-bezier(0.23, 1, 0.32, 1),
    margin-top 320ms cubic-bezier(0.23, 1, 0.32, 1),
    opacity 220ms ease-out,
    transform 300ms cubic-bezier(0.23, 1, 0.32, 1);
  will-change: height, opacity, transform;
}

@media (hover: hover) and (pointer: fine) {
  .wheel.is-complete .project-item:hover,
  .wheel.is-complete .project-item.is-project-open {
    border-top-color: rgba(255, 177, 95, 0.72);
    transform: translate3d(0, -18px, 0);
  }

  .wheel.is-complete .project-item:hover .project-name,
  .wheel.is-complete .project-item.is-project-open .project-name {
    color: #ffb15f;
  }

  .wheel.is-complete .project-item:hover .project-line,
  .wheel.is-complete .project-item.is-project-open .project-line {
    color: rgba(255, 177, 95, 0.74);
  }

  .wheel.is-complete .project-item:hover .project-detail,
  .wheel.is-complete .project-item.is-project-open .project-detail {
    height: var(--project-detail-height);
    margin-top: 0.72rem;
    color: rgba(255, 222, 188, 0.82);
    opacity: 1;
    transform: translate3d(0, 0, 0);
    visibility: visible;
  }
}

.wheel.is-complete .project-item.is-project-active,
.wheel.is-complete .project-item:focus-visible {
  border-top-color: rgba(255, 177, 95, 0.72);
  transform: translate3d(0, -18px, 0);
}

.wheel.is-complete .project-item.is-project-active .project-name,
.wheel.is-complete .project-item:focus-visible .project-name {
  color: #ffb15f;
}

.wheel.is-complete .project-item.is-project-active .project-line,
.wheel.is-complete .project-item:focus-visible .project-line {
  color: rgba(255, 177, 95, 0.74);
}

.wheel.is-complete .project-item.is-project-active .project-detail,
.wheel.is-complete .project-item:focus-visible .project-detail {
  height: var(--project-detail-height);
  margin-top: 0.72rem;
  color: rgba(255, 222, 188, 0.82);
  opacity: 1;
  transform: translate3d(0, 0, 0);
  visibility: visible;
}

.wheel-noscript {
  position: absolute;
  top: 50%;
  left: var(--wheel-left);
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 10vw, 9rem);
  font-weight: 700;
  line-height: 0.9;
  transform: translateY(-50%);
}

@media (max-width: 680px) {
  :root {
    --wheel-left: clamp(66px, 19vw, 98px);
  }

  .wheel-item {
    font-size: clamp(1.95rem, 10.8vw, 4.35rem);
    line-height: 0.94;
  }

  .wheel.is-complete .wheel-item.is-active {
    color: rgba(247, 251, 255, 0.56);
    font-size: clamp(1.05rem, 6.2vw, 1.7rem);
    line-height: 1.18;
    padding-bottom: 0.14em;
    transform:
      translate3d(var(--wheel-x), calc(-50% + var(--wheel-y) - 30dvh), 0)
      rotate(var(--angle))
      scale(calc(0.62 * var(--fit-scale)));
  }

  .wheel-skip {
    top: 12px;
    right: 12px;
    min-height: 32px;
    padding: 0.44rem 0.62rem;
    font-size: 0.66rem;
  }

  .project-reveal {
    top: clamp(14.5rem, 43dvh, 23rem);
    right: 14px;
    bottom: auto;
    gap: 10px;
    max-width: calc(100vw - var(--wheel-left) - 14px);
  }

  .project-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .project-item {
    padding-top: 7px;
  }

  .wheel.is-complete .project-item.is-project-active,
  .wheel.is-complete .project-item:focus-visible {
    transform: translate3d(0, 0, 0);
  }

  .project-name {
    font-size: clamp(0.94rem, 4.2vw, 1.08rem);
  }

  .project-line {
    margin-top: 0.14rem;
    font-size: clamp(0.74rem, 3.4vw, 0.88rem);
  }

  .project-detail {
    transform: translate3d(0, 7px, 0);
  }
}

@media (max-width: 380px) {
  :root {
    --wheel-left: clamp(56px, 18vw, 72px);
  }

  .wheel-item {
    font-size: clamp(1.75rem, 10vw, 3.85rem);
  }

  .wheel.is-complete .wheel-item.is-active {
    font-size: clamp(0.96rem, 5.7vw, 1.42rem);
    line-height: 1.2;
    padding-bottom: 0.16em;
    transform:
      translate3d(var(--wheel-x), calc(-50% + var(--wheel-y) - 29dvh), 0)
      rotate(var(--angle))
      scale(calc(0.6 * var(--fit-scale)));
  }

  .project-reveal {
    top: clamp(13rem, 42dvh, 20rem);
    right: 10px;
    bottom: auto;
    max-width: calc(100vw - var(--wheel-left) - 10px);
  }

  .project-list {
    gap: 10px;
  }

  .project-reveal-label {
    font-size: 0.66rem;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  :root {
    --wheel-left: clamp(58px, 10vw, 112px);
  }

  .wheel-stage {
    background:
      radial-gradient(circle at 8% 12%, rgba(255, 255, 255, 0.1), transparent 12rem),
      radial-gradient(circle at 82% 20%, rgba(142, 232, 255, 0.055), transparent 16rem),
      linear-gradient(180deg, #060708 0%, #030405 58%, #010202 100%);
  }

  .wheel-item {
    font-size: clamp(1.9rem, 7vw, 4.8rem);
    line-height: 0.86;
  }

  .wheel-skip {
    top: 10px;
    right: 10px;
    min-height: 30px;
    padding: 0.4rem 0.58rem;
    font-size: 0.62rem;
  }

  .project-reveal {
    right: clamp(14px, 3vw, 34px);
    bottom: clamp(12px, 4vh, 22px);
    left: var(--wheel-left);
    gap: 8px;
    max-width: calc(100vw - var(--wheel-left) - clamp(14px, 3vw, 34px));
  }

  .project-reveal-label {
    font-size: 0.66rem;
  }

  .project-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .project-item {
    padding-top: 6px;
  }

  .project-name {
    font-size: clamp(0.78rem, 2vw, 0.96rem);
  }

  .project-line {
    margin-top: 0.1rem;
    font-size: clamp(0.64rem, 1.6vw, 0.76rem);
  }
}

@media (min-width: 1600px) {
  .wheel-item {
    font-size: clamp(4rem, 7.2vw, 9rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wheel-item {
    display: none;
    transform: translate3d(0, -50%, 0);
    filter: none;
  }

  .wheel-item.is-reduced {
    display: block;
    color: #ffffff;
    opacity: 1;
  }

  .project-reveal {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }

  .wheel-skip {
    display: none;
  }

  .project-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
