:root {
  --bg: #080b10;
  --bg-soft: #101722;
  --panel: rgba(18, 27, 39, 0.78);
  --panel-strong: rgba(23, 34, 49, 0.94);
  --text: #f4f7fb;
  --muted: #98a8ba;
  --line: rgba(255, 255, 255, 0.12);
  --blue: #24d7ff;
  --orange: #ff7a2f;
  --red: #ff3f57;
  --green: #76ffbd;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(36, 215, 255, 0.22), transparent 30rem),
    radial-gradient(circle at 90% 20%, rgba(255, 122, 47, 0.18), transparent 28rem),
    linear-gradient(135deg, #06080d 0%, #0d121b 42%, #080b10 100%);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  width: min(1120px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 11, 16, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.24);
  transform: translateX(-50%);
}

.logo {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--orange));
  color: #071018;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.site-nav {
  display: flex;
  gap: 4px;
}

.site-nav a {
  padding: 11px 15px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  transition: 180ms ease;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.nav-toggle {
  display: none;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 42px;
  min-height: 100vh;
  align-items: center;
  padding-top: 150px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.card-kicker {
  margin: 0 0 14px;
  color: var(--blue);
  font-family: "Source Code Pro", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(4.2rem, 12vw, 9.5rem);
  line-height: 0.84;
  letter-spacing: -0.09em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.hero-claim {
  max-width: 820px;
  margin-bottom: 18px;
  color: var(--text);
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero-text,
.section-heading p,
.project-card p,
.discipline-card p,
.about-card p,
.contact-card p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.65;
}

.hero-text {
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  transition: 180ms ease;
}

.button.primary {
  border-color: transparent;
  background: var(--text);
  color: #071018;
}

.button.secondary {
  border-color: rgba(36, 215, 255, 0.44);
  background: rgba(36, 215, 255, 0.1);
  color: var(--blue);
}

.button.ghost {
  color: var(--muted);
}

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

.hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(36, 215, 255, 0.13), transparent 32%),
    linear-gradient(330deg, rgba(255, 122, 47, 0.14), transparent 38%),
    var(--panel);
  box-shadow: var(--shadow);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
}

.signal-card {
  position: relative;
  z-index: 2;
  max-width: 300px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.24);
}

.signal-card strong,
.signal-card span {
  display: block;
}

.signal-card strong {
  margin-bottom: 10px;
  font-size: 1.45rem;
}

.signal-card span {
  color: var(--muted);
  line-height: 1.55;
}

.meter {
  position: absolute;
  right: 34px;
  bottom: 96px;
  left: 34px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  height: 220px;
  gap: 14px;
}

.meter span {
  display: block;
  width: 100%;
  height: var(--height);
  border-radius: 999px 999px 12px 12px;
  background: linear-gradient(to top, var(--orange), var(--blue));
  animation: pulse 2.6s ease-in-out infinite alternate;
  animation-delay: calc(var(--height) * -0.02);
}

.hero-tags {
  position: absolute;
  right: 28px;
  bottom: 26px;
  left: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.chips span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-family: "Source Code Pro", monospace;
  font-size: 0.76rem;
}

.hero-orbit {
  position: absolute;
  inset: 10% -10% auto auto;
  width: 520px;
  height: 520px;
  pointer-events: none;
  opacity: 0.42;
}

.hero-orbit span {
  position: absolute;
  inset: calc(var(--i, 0) * 58px);
  border: 1px solid rgba(36, 215, 255, 0.26);
  border-radius: 48% 52% 44% 56%;
  animation: rotate 18s linear infinite;
}

.hero-orbit span:nth-child(2) {
  --i: 1;
  border-color: rgba(255, 122, 47, 0.22);
  animation-duration: 24s;
  animation-direction: reverse;
}

.hero-orbit span:nth-child(3) {
  --i: 2;
  border-color: rgba(255, 255, 255, 0.16);
  animation-duration: 30s;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 0;
}

.stat,
.project-card,
.discipline-card,
.about-card,
.contact-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.stat {
  padding: 26px;
  border-radius: 24px;
}

.stat strong,
.stat span {
  display: block;
}

.stat strong {
  margin-bottom: 6px;
  font-size: 2rem;
}

.stat span {
  color: var(--muted);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
}

.filter-button.active,
.filter-button:hover {
  border-color: rgba(36, 215, 255, 0.45);
  background: rgba(36, 215, 255, 0.12);
  color: var(--text);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project-card {
  overflow: hidden;
  border-radius: var(--radius);
  transition: 220ms ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(36, 215, 255, 0.36);
}

.project-card.is-hidden {
  display: none;
}

.project-visual {
  display: grid;
  min-height: 220px;
  place-items: end start;
  padding: 22px;
  color: #071018;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.visual-blue {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.58), transparent 0.35rem),
    linear-gradient(135deg, #24d7ff, #0f6185 70%);
}

.visual-orange {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.15) 1px, transparent 1px),
    linear-gradient(135deg, #ff7a2f, #ffc66d);
  background-size: 18px 18px, auto;
}

.visual-red {
  background: linear-gradient(135deg, #ff3f57, #191f2e 72%);
  color: var(--text);
}

.visual-green {
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.52), transparent 0.45rem),
    linear-gradient(135deg, #76ffbd, #184f59 72%);
  color: #071018;
}

.project-content {
  padding: 24px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.disciplines {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.discipline-card {
  min-height: 340px;
  padding: 26px;
  border-radius: var(--radius);
}

.number {
  display: inline-flex;
  margin-bottom: 86px;
  color: var(--orange);
  font-family: "Source Code Pro", monospace;
}

.spotify-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.embed-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 10% 20%, rgba(118, 255, 189, 0.14), transparent 15rem),
    var(--panel);
  box-shadow: var(--shadow);
}

.spotify-embed {
  display: block;
  margin-top: 18px;
  border: 0;
  border-radius: 14px;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.link-card {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.045);
  transition: 180ms ease;
}

.link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(36, 215, 255, 0.42);
  background: rgba(36, 215, 255, 0.08);
}

.link-card span {
  color: var(--blue);
  font-family: "Source Code Pro", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.link-card strong {
  font-size: 1.25rem;
  letter-spacing: -0.04em;
}

.masonry {
  display: grid;
  grid-auto-flow: dense;
  grid-auto-rows: 160px;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gallery-item {
  display: grid;
  place-items: end start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(36, 215, 255, 0.26), transparent 12rem),
    radial-gradient(circle at 70% 80%, rgba(255, 122, 47, 0.28), transparent 11rem),
    var(--panel-strong);
  color: var(--text);
  cursor: pointer;
  transition: 200ms ease;
}

.gallery-item:hover {
  transform: scale(0.985);
  border-color: rgba(255, 255, 255, 0.28);
}

.gallery-item span {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

.about-card,
.contact-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 6vw, 68px);
  border-radius: var(--radius);
}

.about-card::after,
.contact-card::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36, 215, 255, 0.32), transparent 68%);
}

.contact-card {
  background:
    linear-gradient(135deg, rgba(36, 215, 255, 0.16), transparent 35%),
    linear-gradient(330deg, rgba(255, 63, 87, 0.14), transparent 44%),
    var(--panel);
}

.contact-links {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.contact-links a {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  transition: 180ms ease;
}

.contact-links a:hover {
  background: var(--text);
  color: #071018;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 26px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(16px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-art {
  width: min(760px, 92vw);
  height: min(520px, 60vh);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 24% 20%, rgba(36, 215, 255, 0.44), transparent 13rem),
    radial-gradient(circle at 82% 74%, rgba(255, 122, 47, 0.42), transparent 15rem),
    #101722;
  box-shadow: var(--shadow);
}

.lightbox p {
  max-width: 720px;
  margin: 18px auto 0;
  color: var(--muted);
  text-align: center;
}

.lightbox-close {
  position: fixed;
  top: 22px;
  right: 24px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  font-size: 2rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
  color: var(--muted);
}

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

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

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

@keyframes pulse {
  to {
    transform: scaleY(0.78);
    filter: hue-rotate(18deg);
  }
}

@media (max-width: 900px) {
  .site-nav {
    position: fixed;
    inset: 76px 16px auto;
    display: none;
    flex-direction: column;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(8, 11, 16, 0.96);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .nav-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
  }

  .hero,
  .project-grid,
  .disciplines {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 128px;
  }

  .hero-panel {
    min-height: 420px;
  }

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

  .spotify-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .masonry {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .section {
    width: min(100% - 24px, 1120px);
    padding: 64px 0;
  }

  .site-header {
    width: calc(100% - 24px);
  }

  h1 {
    font-size: clamp(4rem, 24vw, 6.4rem);
  }

  .hero-actions,
  .contact-links {
    flex-direction: column;
  }

  .button,
  .contact-links a {
    width: 100%;
  }

  .masonry {
    grid-auto-rows: 140px;
    grid-template-columns: 1fr;
  }

  .gallery-item.wide {
    grid-column: span 1;
  }

  .site-footer {
    flex-direction: column;
    gap: 12px;
  }
}

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