:root {
  --bg: #070908;
  --surface: #101310;
  --ink: #f0f4ed;
  --muted: #8e978f;
  --line: rgba(240, 244, 237, 0.16);
  --acid: #95ff00;
  --orange: #ff4d00;
  --blue: #49a6ff;
  --field: var(--acid);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Space Grotesk", Arial, sans-serif;
}

body.is-loading {
  overflow: hidden;
}

a {
  color: inherit;
}

.mono {
  font-family: "DM Mono", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cursor-glow {
  position: fixed;
  z-index: 20;
  width: 380px;
  height: 380px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--field) 17%, transparent), transparent 66%);
  transform: translate(-50%, -50%);
  transition: background 400ms ease;
}

.scroll-rail {
  position: fixed;
  z-index: 60;
  top: 84px;
  right: 13px;
  bottom: 20px;
  width: 1px;
  background: var(--line);
}

.scroll-rail i {
  position: absolute;
  inset: 0 0 auto;
  height: 0;
  background: var(--acid);
  box-shadow: 0 0 10px var(--acid);
}

.scroll-rail span {
  position: absolute;
  right: 8px;
  bottom: 0;
  color: var(--acid);
  font-size: 0.48rem;
}

.loader {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  background: var(--acid);
  color: var(--bg);
  clip-path: inset(0);
  transition: clip-path 950ms cubic-bezier(.8,0,.15,1);
}

.loader.is-done {
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
}

.loader-top,
.loader-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.58rem;
}

.loader-center {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: end;
  gap: 30px;
}

.loader-count {
  font-size: clamp(7rem, 25vw, 25rem);
  font-weight: 600;
  line-height: 0.72;
  letter-spacing: -0.1em;
}

.loader-bar {
  height: 2px;
  background: rgba(7, 9, 8, 0.25);
}

.loader-bar i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--bg);
}

.topbar {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  width: 100%;
  height: 64px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 8, 0.78);
  backdrop-filter: blur(18px);
}

.wordmark {
  width: max-content;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.wordmark span {
  color: var(--acid);
}

nav {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms ease;
}

nav a:hover {
  color: var(--acid);
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100svh;
  padding: 94px 24px 24px;
  overflow: hidden;
  isolation: isolate;
}

#network {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.scanline {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(transparent 50%, rgba(149, 255, 0, 0.025) 50%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 100% 4px, 8vw 100%;
  mask-image: linear-gradient(to bottom, transparent, black 16%, black 84%, transparent);
}

.reticle {
  position: absolute;
  z-index: -1;
  top: 46%;
  right: 15%;
  width: clamp(220px, 31vw, 500px);
  aspect-ratio: 1;
  border: 1px solid rgba(149, 255, 0, 0.14);
  border-radius: 50%;
  animation: reticle-drift 12s ease-in-out infinite alternate;
}

.reticle::before,
.reticle::after,
.reticle i {
  content: "";
  position: absolute;
  inset: 14%;
  border: 1px solid rgba(149, 255, 0, 0.12);
  border-radius: 50%;
}

.reticle::after {
  inset: 32%;
}

.reticle i:nth-child(1) {
  inset: 50% -12%;
  height: 1px;
  border: 0;
  border-top: 1px solid rgba(149, 255, 0, 0.18);
  border-radius: 0;
}

.reticle i:nth-child(2) {
  inset: -12% 50%;
  width: 1px;
  border: 0;
  border-left: 1px solid rgba(149, 255, 0, 0.18);
  border-radius: 0;
}

.reticle i:nth-child(3) {
  inset: -4%;
  border-style: dashed;
  animation: orbit 18s linear infinite;
}

.reticle span {
  position: absolute;
  right: 0;
  bottom: 14%;
  padding: 4px 6px;
  background: var(--acid);
  color: var(--bg);
  font-size: 0.48rem;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.68rem;
}

.hero-title-wrap {
  margin-top: auto;
}

.hero-intro {
  margin: 0 0 6px 0.7vw;
  color: var(--acid);
  font-family: "DM Mono", monospace;
  font-size: clamp(0.65rem, 1vw, 0.82rem);
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(6.2rem, 18vw, 17rem);
  font-weight: 600;
  line-height: 0.72;
  letter-spacing: -0.09em;
}

.name-line {
  display: block;
  width: max-content;
  max-width: 100%;
  will-change: transform;
}

.name-line.outline {
  margin-left: 12vw;
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}

.hero-bottom {
  display: grid;
  grid-template-columns: minmax(260px, 520px) 1fr;
  align-items: end;
  gap: 40px;
  margin-top: 48px;
}

.hero-statement {
  margin: 0;
  font-size: clamp(1.25rem, 2.1vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.round-link {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 126px;
  height: 126px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 220ms ease, background 220ms ease, transform 220ms ease;
}

.round-link b {
  font-size: 1.4rem;
}

.round-link:hover {
  background: var(--acid);
  color: var(--bg);
  transform: rotate(-8deg);
}

.node-label {
  position: absolute;
  z-index: -1;
  padding: 6px 8px;
  border: 1px solid rgba(149, 255, 0, 0.42);
  background: rgba(7, 9, 8, 0.8);
  color: var(--acid);
  font-size: 0.56rem;
}

.node-a { top: 24%; left: 62%; }
.node-b { top: 42%; right: 9%; }
.node-c { top: 66%; left: 47%; }

.section-code {
  color: var(--acid);
  font-size: 0.66rem;
}

.manifesto {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 4fr 1fr;
  gap: 40px;
  padding: 11vw 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.manifesto-text {
  margin: 0;
  font-size: clamp(2.8rem, 6.3vw, 7.3rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.manifesto-text span {
  display: block;
  color: var(--muted);
}

.manifesto-text b {
  color: var(--ink);
  font-weight: inherit;
  background: linear-gradient(90deg, var(--acid) 0 50%, var(--ink) 50% 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: word-charge linear both;
  animation-timeline: view();
  animation-range: entry 10% cover 55%;
}

.manifesto-note {
  align-self: end;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.8;
}

.work {
  padding: 120px 24px 0;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 40px;
  align-items: end;
  padding-bottom: 70px;
}

h2 {
  margin: 0;
  font-size: clamp(3.5rem, 7vw, 8rem);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.075em;
}

.section-head > p {
  margin: 0;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  line-height: 1.6;
  text-transform: uppercase;
}

.work-list {
  border-top: 1px solid var(--line);
}

.work-row {
  display: grid;
  grid-template-columns: 0.55fr 2fr 1.3fr 0.55fr;
  align-items: center;
  gap: 28px;
  min-height: 176px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 260ms ease, color 260ms ease, background 260ms ease;
}

.work-row:hover {
  padding-right: 18px;
  padding-left: 18px;
  background: var(--field);
  color: var(--bg);
}

.work-index,
.work-year,
.work-row > div > p {
  font-size: 0.62rem;
}

.work-row > div > p {
  margin: 0 0 8px;
  color: var(--muted);
}

.work-row:hover > div > p,
.work-row:hover .work-detail {
  color: var(--bg);
}

.work-row h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.8rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.work-detail {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
  transition: color 260ms ease;
}

.work-year {
  justify-self: end;
}

.book {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  min-height: 100svh;
  margin-top: 120px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.book-stage {
  display: grid;
  place-items: center;
  min-height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(73, 166, 255, 0.22), transparent 48%),
    repeating-linear-gradient(135deg, transparent 0 20px, rgba(255, 255, 255, 0.025) 20px 21px);
  perspective: 1200px;
}

.book-object {
  width: min(44vw, 470px);
  aspect-ratio: 0.7;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: #050706;
  box-shadow: 26px 32px 0 rgba(73, 166, 255, 0.13), 0 50px 100px rgba(0, 0, 0, 0.55);
  transform: rotateY(11deg) rotateX(5deg) rotateZ(-3deg);
  transition: transform 180ms ease-out;
  will-change: transform;
}

.book-object img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-stage:hover .book-object {
  transform: rotateY(-5deg) rotateX(0) rotateZ(2deg) scale(1.02);
}

.book-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8vw;
  border-left: 1px solid var(--line);
}

.book-copy h2 {
  margin-top: 28px;
}

.book-copy > p {
  max-width: 480px;
  margin: 38px 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.text-link {
  width: max-content;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--acid);
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  text-decoration: none;
  text-transform: uppercase;
}

.path {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 7vw;
  padding: 120px 24px;
}

.path-sticky {
  position: sticky;
  top: 120px;
  align-self: start;
}

.path-sticky h2 {
  margin-top: 32px;
}

.path-sticky > p {
  color: var(--muted);
}

.path-list {
  border-top: 1px solid var(--line);
}

.path-list article {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 30px;
  padding: 54px 0;
  border-bottom: 1px solid var(--line);
}

.path-year {
  color: var(--acid);
  font-size: 0.7rem;
}

.path-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.path-list div > p:first-child {
  margin-bottom: 13px;
  font-size: 0.58rem;
}

.path-list h3 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.contact {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 100px 24px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  text-align: center;
}

.contact .section-code {
  position: absolute;
  top: 40px;
  left: 24px;
}

.contact h2 {
  position: relative;
  z-index: 2;
}

.contact h2 em {
  color: var(--acid);
  font-style: normal;
}

.contact-links {
  position: absolute;
  z-index: 2;
  bottom: 48px;
  display: flex;
  gap: 12px;
}

.contact-links a {
  padding: 15px 20px;
  border: 1px solid var(--line);
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.contact-links a:hover {
  background: var(--acid);
  color: var(--bg);
}

.contact-orbit {
  position: absolute;
  display: grid;
  place-items: center;
  width: min(74vw, 900px);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  animation: orbit 28s linear infinite;
}

.contact-orbit::before,
.contact-orbit::after {
  content: "";
  position: absolute;
  width: 72%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.contact-orbit::after {
  width: 42%;
}

.contact-orbit span {
  position: absolute;
  top: -8px;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  word-spacing: 20px;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.56rem;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 800ms ease, transform 800ms cubic-bezier(.2,.8,.2,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

@keyframes reticle-drift {
  from { transform: translate3d(-3%, -4%, 0) rotate(-8deg); }
  to { transform: translate3d(5%, 4%, 0) rotate(7deg); }
}

@keyframes word-charge {
  to { background-position: 0 0; }
}

@media (max-width: 900px) {
  .manifesto,
  .section-head,
  .book,
  .path {
    grid-template-columns: 1fr;
  }

  .manifesto-note {
    display: none;
  }

  .work-row {
    grid-template-columns: 50px 1fr auto;
  }

  .work-detail {
    display: none;
  }

  .book-stage {
    min-height: 80svh;
  }

  .book-object {
    width: min(68vw, 430px);
  }

  .book-copy {
    padding: 90px 24px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .path-sticky {
    position: static;
  }
}

@media (max-width: 620px) {
  .cursor-glow,
  .scroll-rail,
  .node-label {
    display: none;
  }

  .loader {
    padding: 14px;
  }

  .loader-center {
    grid-template-columns: 1fr;
  }

  .loader-bottom span:nth-child(2) {
    display: none;
  }

  .reticle {
    top: 34%;
    right: -30%;
    width: 82vw;
  }

  .topbar {
    height: 56px;
    padding: 0 14px;
  }

  nav {
    gap: 12px;
    font-size: 0.57rem;
  }

  .hero {
    min-height: 100svh;
    padding: 78px 14px 18px;
  }

  .hero-meta span:last-child {
    display: none;
  }

  h1 {
    font-size: clamp(5rem, 27vw, 7.1rem);
    line-height: 0.78;
  }

  .name-line.outline {
    margin-left: 0;
    -webkit-text-stroke-width: 1px;
  }

  .hero-bottom {
    grid-template-columns: 1fr auto;
    gap: 20px;
  }

  .hero-statement {
    font-size: 1.12rem;
  }

  .round-link {
    width: 76px;
    height: 76px;
    font-size: 0.55rem;
  }

  .manifesto {
    grid-template-columns: 1fr;
    padding: 90px 14px;
  }

  .manifesto-text {
    font-size: clamp(2.7rem, 14vw, 4.2rem);
  }

  .work {
    padding: 90px 14px 0;
  }

  .section-head {
    padding-bottom: 44px;
  }

  .section-head > p {
    display: none;
  }

  h2 {
    font-size: clamp(3.5rem, 17vw, 5.5rem);
  }

  .work-row {
    grid-template-columns: 36px 1fr;
    gap: 14px;
    min-height: 140px;
  }

  .work-year {
    display: none;
  }

  .work-row h3 {
    font-size: 2.25rem;
  }

  .book {
    margin-top: 90px;
  }

  .book-stage {
    min-height: 68svh;
  }

  .book-object {
    width: 72vw;
    transform: rotateY(8deg) rotateX(4deg) rotateZ(-3deg);
  }

  .path {
    gap: 70px;
    padding: 90px 14px;
  }

  .path-list article {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 38px 0;
  }

  .contact {
    min-height: 86svh;
    padding: 80px 14px;
  }

  .contact-orbit {
    width: 130vw;
  }

  .contact-links {
    bottom: 30px;
    flex-direction: column;
    width: calc(100% - 28px);
  }

  footer {
    padding: 16px 14px;
  }

  footer span:first-child {
    max-width: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .contact-orbit,
  .contact-orbit::before,
  .contact-orbit::after,
  .reticle,
  .reticle i {
    animation: none !important;
  }

  .manifesto-text b {
    animation: none !important;
    background-position: 0 0;
  }
}
