:root {
  --ink: #071b15;
  --forest: #0c3b2e;
  --leaf: #22b56d;
  --lime: #baf36c;
  --orange: #ff6b2c;
  --cream: #f4f0e7;
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; }
html { background: var(--ink); }
body { margin: 0; overflow: hidden; font-family: 'Manrope', sans-serif; }
[x-cloak] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--lime);
  color: var(--ink);
  transition: opacity .65s ease, visibility .65s ease;
}
.preloader::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0, transparent calc(11.111% - 1px), rgba(7,27,21,.12) calc(11.111% - 1px), rgba(7,27,21,.12) 11.111%);
  pointer-events: none;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__word {
  position: relative;
  z-index: 1;
  display: flex;
  overflow: hidden;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3.8rem, 13vw, 10rem);
  font-weight: 700;
  line-height: .8;
  letter-spacing: -.09em;
}
.preloader__word span { display: inline-block; transform: translateY(115%); }
.preloader__footer {
  position: absolute;
  z-index: 2;
  right: clamp(20px, 4vw, 64px);
  bottom: clamp(20px, 4vw, 48px);
  left: clamp(20px, 4vw, 64px);
  display: flex;
  justify-content: space-between;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .2em;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: clamp(18px, 3.2vw, 42px);
  right: clamp(18px, 4vw, 64px);
  left: clamp(18px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
}
.brand-mark { display: flex; align-items: center; gap: 12px; }
.brand-mark > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 50%;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -.04em;
  transition: color .35s ease, background .35s ease, transform .35s ease;
}
.brand-mark:hover > span { color: var(--ink); background: var(--lime); transform: rotate(10deg); }
.brand-mark small {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: rgba(255,255,255,.54);
}
.profile-nav { display: flex; align-items: center; gap: 8px; }
.profile-nav a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 11px 15px;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255,255,255,.72);
  backdrop-filter: blur(12px);
  transition: border-color .3s ease, background .3s ease, color .3s ease, transform .3s ease;
}
.profile-nav a:hover { border-color: var(--lime); color: var(--ink); background: var(--lime); transform: translateY(-2px); }
.profile-nav svg { width: 13px; height: 13px; }

.hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(12,59,46,.55), transparent 52%),
    var(--ink);
  isolation: isolate;
}
.hero__noise {
  position: absolute;
  z-index: 8;
  inset: 0;
  opacity: .075;
  pointer-events: none;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}
.hero__grid {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .21;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: clamp(52px, 6vw, 86px) clamp(52px, 6vw, 86px);
  mask-image: radial-gradient(ellipse at center, #000 18%, transparent 75%);
}
.hero__glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(38px);
  opacity: .28;
  will-change: transform;
}
.hero__glow--lime { width: min(46vw, 680px); aspect-ratio: 1; top: -20%; right: -10%; background: var(--leaf); }
.hero__glow--orange { width: min(38vw, 560px); aspect-ratio: 1; bottom: -24%; left: -8%; background: var(--orange); opacity: .2; }

.orbit {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.orbit--outer { width: min(72vw, 920px); aspect-ratio: 1; animation: orbitSpin 24s linear infinite; }
.orbit--inner { width: min(48vw, 620px); aspect-ratio: 1; border-style: dashed; animation: orbitSpin 30s linear infinite reverse; }
.orbit__dot {
  position: absolute;
  top: 9%;
  left: 18%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 24px rgba(186,243,108,.9);
}
@keyframes orbitSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.hero__meta {
  position: absolute;
  z-index: 5;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: rgba(255,255,255,.4);
  opacity: 0;
}
.hero__meta--left { left: clamp(20px, 4vw, 64px); transform: rotate(-90deg) translateX(-50%); transform-origin: left top; }
.hero__meta--right { right: clamp(20px, 4vw, 64px); transform: rotate(90deg) translateX(50%); transform-origin: right top; }
.live-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .22; } }

.hero__center {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: min(94vw, 1500px);
  text-align: center;
  transform: translate(-50%, -50%);
}
.hero__eyebrow,
.hero__caption {
  margin: 0;
  font-family: 'DM Mono', monospace;
  font-size: clamp(8px, .72vw, 11px);
  text-transform: uppercase;
  letter-spacing: .26em;
  color: rgba(255,255,255,.48);
  opacity: 0;
}
.hero__eyebrow { margin-bottom: clamp(24px, 3.2vw, 48px); }
.hero__caption { margin-top: clamp(28px, 3.2vw, 50px); color: rgba(255,255,255,.42); }

.title-stage { position: relative; perspective: 1000px; }
.team-title {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(4.4rem, 15vw, 14rem);
  font-weight: 700;
  line-height: .72;
  letter-spacing: -.095em;
  white-space: nowrap;
  transform-style: preserve-3d;
  will-change: transform;
}
.word { display: inline-flex; }
.char {
  position: relative;
  display: inline-block;
  color: var(--cream);
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}
.char::after {
  content: attr(data-char);
  position: absolute;
  inset: 0;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.14);
  transform: translate(6px, 8px);
  z-index: -1;
}
.char--accent { color: var(--lime); }
.title-stage:hover .char:nth-child(odd) { color: var(--lime); }
.title-stage:hover .char--accent { color: var(--orange); }
.title-stage .char { transition: color .35s ease; }

.title-ghost {
  position: absolute;
  z-index: 1;
  left: 50%;
  width: max-content;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(4.4rem, 15vw, 14rem);
  font-weight: 700;
  line-height: .72;
  letter-spacing: -.095em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.09);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
}
.title-ghost--top { top: -54%; transform: translateX(-50%); }
.title-ghost--bottom { bottom: -54%; transform: translateX(-50%); }

.hero__bottom {
  position: absolute;
  z-index: 5;
  right: clamp(20px, 4vw, 64px);
  bottom: clamp(24px, 4vw, 50px);
  left: clamp(20px, 4vw, 64px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: rgba(255,255,255,.42);
  opacity: 0;
}
.hero__bottom p { margin: 0; }
.hero__line { height: 1px; overflow: hidden; background: rgba(255,255,255,.12); }
.hero__line span { display: block; width: 20%; height: 100%; background: var(--orange); animation: lineTravel 4s ease-in-out infinite; }
@keyframes lineTravel { 50% { transform: translateX(400%); } }
.hero__index { display: flex; gap: 9px; }

.sound-toggle {
  position: absolute;
  z-index: 10;
  bottom: clamp(55px, 7.5vw, 95px);
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  padding: 6px;
  background: transparent;
  color: rgba(255,255,255,.42);
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .16em;
  cursor: pointer;
  transform: translateX(-50%);
  opacity: 0;
}
.sound-toggle__bars { display: flex; height: 12px; align-items: flex-end; gap: 2px; }
.sound-toggle__bars i { display: block; width: 2px; height: 100%; background: var(--lime); animation: equalize .8s ease-in-out infinite alternate; }
.sound-toggle__bars i:nth-child(2) { animation-delay: -.3s; }
.sound-toggle__bars i:nth-child(3) { animation-delay: -.55s; }
.sound-toggle__bars i:nth-child(4) { animation-delay: -.15s; }
.sound-toggle__bars.is-paused i { animation-play-state: paused; height: 2px; }
@keyframes equalize { from { height: 2px; } to { height: 12px; } }

.cursor-dot,
.cursor-ring {
  position: fixed;
  z-index: 90;
  top: 0;
  left: 0;
  pointer-events: none;
  border-radius: 999px;
}
.cursor-dot { width: 5px; height: 5px; background: var(--orange); }
.cursor-ring {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255,107,44,.68);
  transition: width .24s ease, height .24s ease, background .24s ease, border-color .24s ease;
}
.cursor-ring span { opacity: 0; font-family: 'DM Mono', monospace; font-size: 7px; text-transform: uppercase; letter-spacing: .12em; transition: opacity .2s ease; }
.cursor-active .cursor-ring { width: 66px; height: 66px; border-color: var(--lime); background: rgba(186,243,108,.12); }
.cursor-profile .cursor-ring { width: 76px; height: 76px; border-color: var(--lime); background: var(--lime); color: var(--ink); }
.cursor-profile .cursor-ring span { opacity: 1; }

.page-transition {
  position: fixed;
  z-index: 95;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--lime);
  color: var(--ink);
  transform: translateY(101%);
  pointer-events: none;
}
.page-transition span { font-family: 'Space Grotesk', sans-serif; font-size: clamp(4rem, 14vw, 12rem); font-weight: 700; letter-spacing: -.09em; }
.page-transition.is-active { animation: pageWipe .68s cubic-bezier(.76,0,.24,1) forwards; }
@keyframes pageWipe { to { transform: translateY(0); } }

body.motion-paused *,
body.motion-paused *::before,
body.motion-paused *::after { animation-play-state: paused !important; }

@media (max-width: 760px) {
  .brand-mark small { display: none; }
  .profile-nav a { padding: 10px 12px; }
  .profile-nav svg { display: none; }
  .hero__meta { display: none; }
  .orbit--outer { width: 92vw; }
  .orbit--inner { width: 66vw; }
  .team-title { flex-direction: column; align-items: center; font-size: clamp(5rem, 24vw, 8rem); line-height: .69; white-space: normal; }
  .word--zehan { margin-left: -.04em; }
  .title-ghost { font-size: clamp(5rem, 24vw, 8rem); }
  .title-ghost--top { top: -27%; }
  .title-ghost--bottom { bottom: -27%; }
  .hero__eyebrow { margin-bottom: 26px; }
  .hero__caption { margin-top: 32px; }
  .hero__bottom { grid-template-columns: auto 1fr; }
  .hero__index { display: none; }
  .sound-toggle { bottom: 78px; }
}

@media (max-width: 430px) {
  .site-header { top: 16px; right: 14px; left: 14px; }
  .brand-mark > span { width: 38px; height: 38px; }
  .profile-nav { gap: 5px; }
  .profile-nav a { padding: 9px 10px; font-size: 8px; }
  .hero__bottom { right: 16px; bottom: 20px; left: 16px; gap: 12px; }
  .hero__bottom p { max-width: 100px; line-height: 1.5; }
  .sound-toggle { bottom: 68px; }
}

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