:root {
  --bg: #08090c;
  --surface: #101116;
  --surface-2: #15161c;
  --text: #f4f4f0;
  --muted: #9b9ba3;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #c6ff00;
  --accent-rgb: 198, 255, 0;
  --mono: "DM Mono", monospace;
  --display: "Space Grotesk", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--display);
  overflow-x: hidden;
}

body.purple {
  --accent: #b493ff;
  --accent-rgb: 180, 147, 255;
}

body.red {
  --accent: #ff4e52;
  --accent-rgb: 255, 78, 82;
}

::selection {
  color: #000;
  background: var(--accent);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.035;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.13;
  filter: blur(60px);
  background: var(--accent);
  transform: translate(-50%, -50%);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  height: 76px;
  padding: 0 clamp(24px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 12, 0.8);
  backdrop-filter: blur(16px);
}

.logo {
  display: flex;
  align-items: start;
  gap: 2px;
  font-weight: 700;
  font-size: 28px;
}

.logo small {
  color: var(--accent);
  font: 9px var(--mono);
}

nav {
  display: flex;
  gap: 34px;
}

nav a,
.accent-switch {
  color: #c6c6ca;
  font: 11px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav a {
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
  transition: right 180ms ease;
}

nav a:hover::after {
  right: 0;
}

.accent-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  cursor: pointer;
}

.accent-switch span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.75);
}

.hero {
  min-height: 100vh;
  padding: 140px clamp(24px, 7vw, 110px) 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  align-items: center;
  gap: clamp(48px, 8vw, 130px);
}

.eyebrow {
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b4b4ba;
  font: 11px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 30px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  margin: 0;
  font-size: clamp(64px, 8.4vw, 142px);
  line-height: 0.82;
  letter-spacing: -0.075em;
  font-weight: 700;
}

.hero h1 em {
  display: block;
  color: transparent;
  font-style: normal;
  -webkit-text-stroke: 1px var(--accent);
}

.hero-intro {
  max-width: 590px;
  margin: 34px 0 0;
  color: #b8b8c0;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.55;
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.primary-button {
  padding: 15px 18px;
  display: inline-flex;
  align-items: center;
  gap: 42px;
  color: #0b0c0f;
  background: var(--accent);
  font: 600 12px var(--mono);
  text-transform: uppercase;
  transition: transform 180ms ease;
}

.primary-button:hover {
  transform: translateY(-3px);
}

.primary-button b {
  font-size: 18px;
}

.text-button {
  padding-bottom: 4px;
  border-bottom: 1px solid #5e5e64;
  color: #b8b8bd;
  font: 11px var(--mono);
  text-transform: uppercase;
}

.hero-visual {
  justify-self: center;
  width: min(100%, 460px);
}

.signal-card {
  aspect-ratio: 0.82;
  padding: 22px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(var(--accent-rgb), 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.035) 1px, transparent 1px),
    var(--surface);
  background-size: 32px 32px;
}

.signal-card::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  pointer-events: none;
}

.signal-top,
.signal-bottom {
  z-index: 2;
  display: flex;
  justify-content: space-between;
  color: #8f8f98;
  font: 9px var(--mono);
  letter-spacing: 0.12em;
}

.online {
  color: var(--accent);
}

.online::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 7px;
  display: inline-block;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.core {
  position: relative;
  align-self: center;
  justify-self: center;
  width: 230px;
  height: 230px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text);
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.12), transparent 62%);
  transition: filter 180ms ease, transform 180ms ease;
}

.core:hover {
  filter: brightness(1.3);
  transform: scale(1.025);
}

.core.active {
  animation: pulse 1.1s ease-in-out infinite;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), 0.55);
  animation: rotate 7s linear infinite;
}

.ring-a {
  inset: 13px;
  border-left-color: transparent;
  border-bottom-color: transparent;
}

.ring-b {
  inset: 34px;
  border-right-color: transparent;
  border-top-color: var(--accent);
  animation-direction: reverse;
  animation-duration: 4.5s;
}

.core-center {
  position: absolute;
  inset: 62px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  border-radius: 50%;
  color: var(--accent);
  background: #0b0d11;
  box-shadow: inset 0 0 32px rgba(var(--accent-rgb), 0.12), 0 0 36px rgba(var(--accent-rgb), 0.14);
  font-size: 62px;
  font-weight: 500;
}

.visual-note {
  margin: 13px 0 0;
  text-align: right;
  color: #75757c;
  font: 9px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ticker {
  padding: 18px 0;
  overflow: hidden;
  border-block: 1px solid var(--line);
  color: #0b0c0d;
  background: var(--accent);
}

.ticker div {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 26px;
  animation: marquee 26s linear infinite;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.ticker i {
  font-style: normal;
  font-size: 8px;
}

.section {
  padding: 120px clamp(24px, 7vw, 110px);
}

.section-label {
  margin-bottom: 60px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: #8f8f96;
  font: 10px var(--mono);
  letter-spacing: 0.12em;
}

.section-label span {
  color: var(--accent);
}

.section-label p {
  margin: 0;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(50px, 9vw, 150px);
}

.about-heading h2,
.projects-intro h2,
.now-card h2 {
  margin: 0;
  font-size: clamp(42px, 5.8vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.about-copy > p {
  margin: 0 0 22px;
  color: #b5b5bd;
  font-size: 17px;
  line-height: 1.7;
}

.principles {
  margin-top: 42px;
  border-top: 1px solid var(--line);
}

.principles div {
  padding: 17px 0;
  display: flex;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid var(--line);
}

.principles span {
  color: var(--accent);
  font: 9px var(--mono);
}

.principles strong {
  font-size: 14px;
  font-weight: 500;
}

.projects {
  background: #0d0e12;
}

.projects-intro {
  margin-bottom: 50px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.projects-intro p {
  max-width: 380px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.project-card {
  min-height: 570px;
  padding: 22px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface);
  transition: border-color 220ms ease, transform 220ms ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--accent-rgb), 0.48);
}

.project-card.featured {
  grid-row: span 2;
  min-height: 900px;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  color: #85858d;
  font: 9px var(--mono);
}

.project-graphic {
  position: relative;
  min-height: 270px;
  margin: 22px 0;
  overflow: hidden;
  background: #0a0b0e;
}

.featured .project-graphic {
  min-height: 500px;
}

.jarvis-graphic {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, rgba(var(--accent-rgb), 0.16), transparent 36%),
    linear-gradient(rgba(var(--accent-rgb), 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.045) 1px, transparent 1px),
    #090a0d;
  background-size: auto, 30px 30px, 30px 30px, auto;
}

.mini-core {
  width: 210px;
  height: 210px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 45px rgba(var(--accent-rgb), 0.17);
}

.mini-core::before,
.mini-core::after {
  content: "";
  position: absolute;
  width: 165px;
  height: 165px;
  border: 1px dashed rgba(var(--accent-rgb), 0.5);
  border-radius: 50%;
  animation: rotate 8s linear infinite;
}

.mini-core::after {
  width: 120px;
  height: 120px;
  animation-direction: reverse;
  animation-duration: 5s;
}

.mini-core span {
  color: var(--accent);
  font-size: 70px;
  font-weight: 400;
}

.command-lines {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  gap: 7px;
}

.command-lines i {
  height: 3px;
  flex: 1;
  background: rgba(var(--accent-rgb), 0.18);
}

.command-lines i:nth-child(2) {
  flex: 2;
  background: var(--accent);
}

.lab-graphic {
  display: grid;
  place-items: center;
}

.lab-graphic > span {
  z-index: 2;
  color: transparent;
  font-size: 110px;
  font-weight: 700;
  letter-spacing: -0.08em;
  -webkit-text-stroke: 1px var(--accent);
}

.grid-lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 32px, rgba(var(--accent-rgb), 0.07) 33px 34px);
  transform: skew(-12deg);
}

.game-graphic {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.crosshair {
  width: 84px;
  height: 84px;
  margin-bottom: 18px;
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  border-radius: 50%;
  position: relative;
}

.crosshair::before,
.crosshair::after {
  content: "";
  position: absolute;
  background: var(--accent);
}

.crosshair::before {
  width: 1px;
  height: 110px;
  left: 50%;
  top: -14px;
}

.crosshair::after {
  height: 1px;
  width: 110px;
  top: 50%;
  left: -14px;
}

.game-graphic b {
  color: var(--accent);
  font: 500 32px var(--mono);
}

.game-graphic small {
  margin-top: 6px;
  color: #66666f;
  font: 8px var(--mono);
  letter-spacing: 0.2em;
}

.project-index {
  margin: 0 0 8px;
  color: var(--accent);
  font: 9px var(--mono);
}

.project-copy h3 {
  margin: 0;
  font-size: clamp(38px, 4vw, 64px);
  letter-spacing: -0.04em;
}

.project-copy > p:not(.project-index) {
  max-width: 580px;
  color: #a6a6ae;
  line-height: 1.6;
}

.project-copy ul {
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  gap: 8px;
  list-style: none;
}

.project-copy li,
.tags span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  color: #8e8e96;
  font: 8px var(--mono);
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.interest-card {
  min-height: 350px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 180ms ease;
}

.interest-card:hover {
  background: rgba(var(--accent-rgb), 0.04);
}

.interest-number {
  color: var(--accent);
  font: 9px var(--mono);
}

.interest-card h3 {
  margin: auto 0 15px;
  font-size: 34px;
  letter-spacing: -0.035em;
}

.interest-card p {
  min-height: 66px;
  margin: 0 0 28px;
  color: #9999a1;
  line-height: 1.5;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.now {
  padding-top: 40px;
}

.now-card {
  padding: clamp(34px, 6vw, 90px);
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  background:
    radial-gradient(circle at 80% 30%, rgba(var(--accent-rgb), 0.13), transparent 32%),
    var(--surface);
}

.now-card h2 {
  max-width: 900px;
}

.now-list {
  margin-top: 60px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.now-list span {
  padding: 11px 13px;
  border: 1px solid var(--line);
  color: #a8a8b0;
  font: 9px var(--mono);
}

footer {
  padding: 50px clamp(24px, 7vw, 110px);
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 60px;
  border-top: 1px solid var(--line);
  color: #84848c;
  font: 9px var(--mono);
}

footer > div {
  display: flex;
  align-items: end;
  gap: 20px;
}

.footer-mark {
  color: var(--accent);
  font: 500 40px var(--display);
}

footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

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

@keyframes pulse {
  50% { filter: brightness(1.6); transform: scale(1.035); }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 150px;
  }

  .hero-visual {
    width: min(100%, 520px);
  }

  .signal-card {
    aspect-ratio: 1.05;
  }

  .about-layout,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    grid-row: auto;
    min-height: 740px;
  }

  .interest-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    height: 66px;
  }

  nav {
    display: none;
  }

  .accent-switch {
    font-size: 0;
  }

  .accent-switch span {
    width: 14px;
    height: 14px;
  }

  .hero {
    min-height: auto;
    padding-top: 125px;
  }

  .hero h1 {
    font-size: clamp(55px, 19vw, 88px);
  }

  .signal-card {
    aspect-ratio: 0.9;
  }

  .projects-intro {
    align-items: start;
    flex-direction: column;
  }

  .project-card,
  .project-card.featured {
    min-height: 620px;
  }

  .featured .project-graphic {
    min-height: 340px;
  }

  .interest-grid {
    grid-template-columns: 1fr;
  }

  .interest-card {
    min-height: 280px;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
