:root {
  color-scheme: dark;
  --ink: #050706;
  --paper: #f2f5ef;
  --acid: #87ff65;
  --muted: #889087;
}

* {
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--paper);
  font-family: "Manrope", sans-serif;
}

.site-main {
  overflow: hidden;
}

button,
code {
  font: inherit;
}

.intro {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 52%, rgba(135, 255, 101, 0.025), transparent 33%),
    var(--ink);
}

.intro::after {
  position: absolute;
  z-index: 20;
  inset: 0;
  background: var(--acid);
  content: "";
  opacity: 0;
  pointer-events: none;
}

.intro.is-flashing::after {
  animation: green-flash 1250ms cubic-bezier(0.16, 0.72, 0.22, 1) both;
}

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

.glow {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: min(70vw, 850px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(135, 255, 101, 0.09);
  filter: blur(150px);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.3);
}

.is-revealed .glow {
  animation: glow-in 2.1s 100ms ease-out both;
}

.terminal {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 68px;
  padding: 0 clamp(22px, 4vw, 64px);
  border-bottom: 1px solid rgba(242, 245, 239, 0.12);
  background: rgba(5, 7, 6, 0.72);
  backdrop-filter: blur(12px);
  color: rgba(242, 245, 239, 0.86);
  font-family: "DM Mono", monospace;
  font-size: clamp(0.72rem, 1.4vw, 0.92rem);
  letter-spacing: -0.025em;
  opacity: 1;
  transform: translateY(0);
  transition:
    color 700ms ease,
    opacity 480ms ease,
    transform 650ms cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear 650ms;
}

.terminal__prompt {
  margin-right: 13px;
  color: var(--acid);
  font-weight: 500;
}

.terminal__line {
  white-space: pre-wrap;
}

.terminal__caret {
  width: 7px;
  height: 1.1em;
  margin-left: 4px;
  background: var(--acid);
  box-shadow: 0 0 10px rgba(135, 255, 101, 0.55);
  animation: caret 800ms steps(1, end) infinite;
}

.is-revealed .terminal {
  color: var(--muted);
}

.is-revealed .terminal__caret {
  opacity: 0;
  animation: none;
  transition: opacity 180ms ease;
}

.is-terminal-hidden .terminal {
  visibility: hidden;
  opacity: 0;
  transform: translateY(-100%);
}

.hero {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  width: min(92vw, 1100px);
  margin: auto;
  padding-top: 56px;
  text-align: center;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 25px;
  color: var(--acid);
  font-family: "DM Mono", monospace;
  font-size: clamp(0.58rem, 1.2vw, 0.7rem);
  letter-spacing: 0.15em;
  opacity: 0;
  text-transform: uppercase;
  transform: translateY(8px);
}

.hero__title {
  position: relative;
  display: grid;
  margin: 0;
  font-size: clamp(3.3rem, 11vw, 9.5rem);
  font-weight: 800;
  letter-spacing: -0.085em;
  line-height: 0.76;
  opacity: 0;
  text-wrap: balance;
  transform: scale(0.94);
}

.hero__title::before {
  position: absolute;
  z-index: 3;
  top: 48%;
  left: -4%;
  width: 108%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--acid) 18%, var(--acid) 82%, transparent);
  box-shadow: 0 0 14px rgba(135, 255, 101, 0.8);
  content: "";
  opacity: 0;
  pointer-events: none;
}

.hero__title-top,
.hero__title-bottom {
  position: relative;
  will-change: clip-path, filter, opacity, transform;
}

.hero__title span::before,
.hero__title span::after {
  position: absolute;
  inset: 0;
  content: attr(data-text);
  opacity: 0;
  pointer-events: none;
}

.hero__title span::before {
  z-index: -1;
  color: var(--acid);
  text-shadow: 0 0 18px rgba(135, 255, 101, 0.65);
}

.hero__title span::after {
  z-index: 1;
  color: #caffba;
  mix-blend-mode: screen;
}

.hero__title-bottom {
  margin-top: 0.19em;
  color: transparent;
  font-weight: 500;
  -webkit-text-stroke: 1px rgba(242, 245, 239, 0.72);
}

.hero__title-bottom::before,
.hero__title-bottom::after {
  color: transparent !important;
  -webkit-text-stroke: 1px var(--acid);
}

.hero__tagline {
  margin: clamp(28px, 4vw, 44px) 0 0;
  color: rgba(242, 245, 239, 0.56);
  font-family: "DM Mono", monospace;
  font-size: clamp(0.72rem, 1.7vw, 0.9rem);
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(12px);
}

.socials {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  width: min(88vw, 860px);
  margin-top: clamp(24px, 3.5vw, 36px);
  opacity: 0;
  transform: translateY(12px);
}

.social-link {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 46px;
  padding: 0 13px;
  overflow: hidden;
  border: 1px solid rgba(242, 245, 239, 0.15);
  border-radius: 2px;
  background: rgba(242, 245, 239, 0.025);
  color: rgba(242, 245, 239, 0.66);
  cursor: pointer;
  font-family: "DM Mono", monospace;
  font-size: clamp(0.62rem, 1vw, 0.72rem);
  letter-spacing: 0.025em;
  text-align: left;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.social-link::before {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--acid);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  border-color: rgba(135, 255, 101, 0.5);
  background: rgba(135, 255, 101, 0.055);
  color: var(--paper);
  outline: none;
  transform: translateY(-2px);
}

.social-link:hover::before,
.social-link:focus-visible::before {
  transform: scaleX(1);
}

.social-link__number {
  color: rgba(135, 255, 101, 0.45);
  font-size: 0.52rem;
}

.social-link__arrow {
  color: var(--acid);
  font-size: 0.72rem;
}

.is-revealed .hero__eyebrow {
  animation: reveal-up 620ms 300ms ease-out both;
}

.is-revealed .hero__title {
  animation: title-in 760ms 70ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.is-revealed .hero__title::before {
  animation: logo-scan 720ms 90ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.is-revealed .hero__title-top {
  animation: assemble-top 820ms 75ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.is-revealed .hero__title-bottom {
  animation: assemble-bottom 860ms 115ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.is-revealed .hero__title span::before {
  animation: glitch-green 5.2s 1.55s steps(1, end) infinite;
}

.is-revealed .hero__title span::after {
  animation: glitch-green-alt 5.2s 1.58s steps(1, end) infinite;
}

.is-revealed .hero__tagline {
  animation: reveal-up 750ms 530ms ease-out both;
}

.is-revealed .socials {
  animation: reveal-up 750ms 680ms ease-out both;
}

.discord-dialog {
  width: min(calc(100vw - 38px), 430px);
  padding: 0;
  border: 1px solid rgba(135, 255, 101, 0.32);
  border-radius: 3px;
  background: rgba(7, 11, 8, 0.96);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.72),
    0 0 45px rgba(135, 255, 101, 0.06);
  color: var(--paper);
  opacity: 0;
  transform: scale(0.96) translateY(8px);
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
    overlay 220ms allow-discrete,
    display 220ms allow-discrete;
}

.discord-dialog[open] {
  opacity: 1;
  transform: scale(1) translateY(0);
}

@starting-style {
  .discord-dialog[open] {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
}

.discord-dialog::backdrop {
  background: rgba(0, 4, 1, 0.76);
  backdrop-filter: blur(9px);
}

.discord-dialog__panel {
  padding: 18px;
}

.discord-dialog__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(242, 245, 239, 0.11);
  color: var(--acid);
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.discord-dialog__close {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(242, 245, 239, 0.14);
  background: transparent;
  color: rgba(242, 245, 239, 0.6);
  cursor: pointer;
  line-height: 1;
}

.discord-dialog__close:hover,
.discord-dialog__close:focus-visible {
  border-color: var(--acid);
  color: var(--acid);
  outline: none;
}

.discord-dialog__hint {
  margin: 30px 0 8px;
  color: rgba(242, 245, 239, 0.38);
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
}

.discord-dialog__username {
  margin: 0 0 28px;
  font-size: clamp(2rem, 9vw, 3.1rem);
  letter-spacing: -0.055em;
}

.discord-dialog__copy {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(135, 255, 101, 0.42);
  background: rgba(135, 255, 101, 0.07);
  color: var(--acid);
  cursor: pointer;
  font-family: "DM Mono", monospace;
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.discord-dialog__copy:hover,
.discord-dialog__copy:focus-visible {
  background: var(--acid);
  color: var(--ink);
  outline: none;
}

.status {
  position: absolute;
  bottom: clamp(22px, 4vw, 46px);
  left: clamp(22px, 4vw, 64px);
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(242, 245, 239, 0.33);
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  opacity: 0;
  text-transform: uppercase;
}

.status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 10px rgba(135, 255, 101, 0.7);
}

.is-revealed .status {
  animation: reveal-up 600ms 760ms ease-out both;
}

.replay {
  position: absolute;
  right: clamp(22px, 4vw, 64px);
  bottom: clamp(22px, 4vw, 46px);
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid rgba(242, 245, 239, 0.2);
  background: transparent;
  color: rgba(242, 245, 239, 0.42);
  cursor: pointer;
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  opacity: 0;
  text-transform: uppercase;
  transition: border-color 180ms ease, color 180ms ease;
}

.is-revealed .replay {
  animation: reveal-up 600ms 900ms ease-out both;
}

.scroll-cue {
  position: absolute;
  z-index: 4;
  bottom: clamp(22px, 4vw, 42px);
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(242, 245, 239, 0.34);
  font-family: "DM Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  opacity: 0;
  text-decoration: none;
  text-transform: uppercase;
  transform: translate(-50%, 8px);
  transition: color 180ms ease;
}

.scroll-cue span:last-child {
  color: var(--acid);
  font-size: 0.9rem;
}

.scroll-cue:hover,
.scroll-cue:focus-visible {
  color: var(--acid);
  outline: none;
}

.is-revealed .scroll-cue {
  animation: reveal-scroll-cue 600ms 1050ms ease-out both;
}

.projects {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  padding: clamp(80px, 10vw, 150px) clamp(18px, 4vw, 64px) clamp(54px, 8vw, 110px);
  border-top: 1px solid rgba(242, 245, 239, 0.1);
  background:
    radial-gradient(circle at 18% 12%, rgba(135, 255, 101, 0.055), transparent 25%),
    linear-gradient(180deg, #050706 0%, #070a08 42%, #040604 100%);
}

.projects::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  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='.92' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  content: "";
  opacity: 0.16;
  pointer-events: none;
}

.projects__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  width: min(100%, 1380px);
  margin: 0 auto clamp(40px, 6vw, 72px);
}

.projects__label {
  grid-column: 1 / -1;
  margin: 0 0 18px;
  color: var(--acid);
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.projects__label span {
  color: rgba(242, 245, 239, 0.32);
}

.projects__title {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.5rem, 6.5vw, 6.2rem);
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.projects__description {
  max-width: 330px;
  margin: 0 0 6px clamp(30px, 7vw, 120px);
  color: rgba(242, 245, 239, 0.42);
  font-family: "DM Mono", monospace;
  font-size: clamp(0.67rem, 1vw, 0.78rem);
  line-height: 1.7;
}

.projects__stage {
  position: relative;
  width: min(100%, 1380px);
  height: clamp(730px, 67vw, 900px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(242, 245, 239, 0.12);
  background: rgba(1, 4, 2, 0.52);
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.42);
}

.projects__stage::before {
  position: absolute;
  z-index: 1;
  top: 16px;
  right: 18px;
  color: rgba(135, 255, 101, 0.28);
  content: "ACTIVE FIELD / COLLISION ON";
  font-family: "DM Mono", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  pointer-events: none;
}

.projects__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(135, 255, 101, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(135, 255, 101, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent, black 16%, black 84%, transparent);
  pointer-events: none;
}

.project-window {
  --window-accent: var(--acid);
  --window-accent-rgb: 135, 255, 101;
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: clamp(250px, 27vw, 360px);
  height: clamp(174px, 16vw, 214px);
  contain: layout style;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  will-change: transform;
}

.project-window:focus-visible {
  outline: 1px solid var(--window-accent);
  outline-offset: 6px;
}

.project-window:focus-visible .project-window__shell {
  border-color: var(--window-accent);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.55),
    0 0 36px rgba(var(--window-accent-rgb), 0.16);
}

.project-window--orange {
  --window-accent: #ff9d4d;
  --window-accent-rgb: 255, 157, 77;
}

.project-window--pink {
  --window-accent: #ff72c6;
  --window-accent-rgb: 255, 114, 198;
}

.project-window__shell {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(var(--window-accent-rgb), 0.36);
  border-radius: 3px;
  background:
    linear-gradient(135deg, rgba(var(--window-accent-rgb), 0.045), transparent 46%),
    rgba(8, 12, 9, 0.94);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.48),
    0 0 28px rgba(var(--window-accent-rgb), 0.035);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.project-window:hover .project-window__shell {
  border-color: rgba(var(--window-accent-rgb), 0.72);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.55),
    0 0 32px rgba(var(--window-accent-rgb), 0.09);
}

.project-window:hover .project-window__art {
  opacity: 0.25;
}

.project-window__shell.is-startled {
  animation: window-startle 360ms steps(1, end);
}

.project-window__bar {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 34px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(242, 245, 239, 0.1);
  background: rgba(var(--window-accent-rgb), 0.045);
  color: rgba(242, 245, 239, 0.38);
  font-family: "DM Mono", monospace;
  font-size: 0.52rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-window__bar > span:nth-child(2) {
  color: rgba(var(--window-accent-rgb), 0.5);
}

.project-window__bar > span:last-child {
  justify-self: end;
  letter-spacing: 0.13em;
}

.project-window__lights {
  display: flex;
  gap: 4px;
}

.project-window__lights i {
  width: 5px;
  height: 5px;
  border: 1px solid rgba(var(--window-accent-rgb), 0.44);
  border-radius: 50%;
}

.project-window__lights i:first-child {
  background: var(--window-accent);
  box-shadow: 0 0 7px rgba(var(--window-accent-rgb), 0.7);
}

.project-window__art {
  position: absolute;
  z-index: 0;
  inset: 34px 0 0;
  overflow: hidden;
  opacity: 0.18;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.project-window__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.5) brightness(0.58);
  transform: scale(1.04);
}

.project-window__art img:nth-child(2) {
  opacity: 0;
  filter: grayscale(1) contrast(1.9) brightness(0.82);
  mix-blend-mode: screen;
  animation: project-art-glitch 5.8s steps(1, end) infinite;
}

.project-window:nth-of-type(2) .project-window__art img:nth-child(2) {
  animation-delay: -1.35s;
}

.project-window:nth-of-type(3) .project-window__art img:nth-child(2) {
  animation-delay: -2.8s;
}

.project-window:nth-of-type(4) .project-window__art img:nth-child(2) {
  animation-delay: -4.1s;
}

.project-window__art::before,
.project-window__art::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  pointer-events: none;
}

.project-window__art::before {
  background: rgba(var(--window-accent-rgb), 0.72);
  mix-blend-mode: color;
}

.project-window__art::after {
  height: 34%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(var(--window-accent-rgb), 0.25) 46%,
    rgba(var(--window-accent-rgb), 0.55) 50%,
    transparent 54%
  );
  opacity: 0.6;
  mix-blend-mode: screen;
  animation: project-art-scan 4.6s linear infinite;
}

.project-window__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  height: calc(100% - 34px);
  padding: clamp(16px, 2vw, 23px);
  background: linear-gradient(
    90deg,
    rgba(4, 7, 5, 0.82),
    rgba(4, 7, 5, 0.57) 58%,
    rgba(var(--window-accent-rgb), 0.025)
  );
}

.project-window__content::after {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 3px,
    rgba(var(--window-accent-rgb), 0.018) 4px
  );
  content: "";
  pointer-events: none;
}

.project-window__index {
  color: rgba(var(--window-accent-rgb), 0.58);
  font-family: "DM Mono", monospace;
  font-size: 0.54rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.project-window h3 {
  margin: auto 0;
  font-size: clamp(1.25rem, 2.35vw, 2rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.92);
}

.project-window h3 small {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-left: 0.45em;
  padding: 0 7px;
  border: 1px solid rgba(var(--window-accent-rgb), 0.38);
  border-radius: 999px;
  color: var(--window-accent);
  font-family: "DM Mono", monospace;
  font-size: 0.5rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  vertical-align: middle;
}

.project-window footer {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(var(--window-accent-rgb), 0.48);
  font-family: "DM Mono", monospace;
  font-size: 0.53rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-window footer::after {
  margin-left: auto;
  color: rgba(var(--window-accent-rgb), 0.72);
  content: "Open page ↗";
}

.project-window__pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--window-accent);
  box-shadow: 0 0 8px rgba(var(--window-accent-rgb), 0.7);
  animation: project-pulse 1.8s ease-in-out infinite;
}

.replay:hover,
.replay:focus-visible {
  border-color: var(--acid);
  color: var(--acid);
  outline: none;
}

@keyframes caret {
  50% { opacity: 0; }
}

@keyframes green-flash {
  0% { opacity: 0; }
  4% { opacity: 0.95; }
  18% { opacity: 0.62; }
  42% { opacity: 0.25; }
  100% { opacity: 0; }
}

@keyframes title-in {
  0% { opacity: 0; transform: scale(0.96); filter: blur(5px); }
  30% { opacity: 1; }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

@keyframes assemble-top {
  0% {
    clip-path: inset(0 54% 0 0);
    opacity: 0.18;
    filter: blur(5px);
    transform: translateX(-0.07em) skewX(-3deg);
  }
  44% {
    clip-path: inset(0 4% 0 0);
    opacity: 1;
    filter: blur(0);
    transform: translateX(0.014em) skewX(0.7deg);
  }
  68% {
    clip-path: inset(0);
    transform: translateX(-0.006em) skewX(0);
  }
  100% {
    clip-path: inset(0);
    opacity: 1;
    filter: blur(0);
    transform: translateX(0) skewX(0);
  }
}

@keyframes assemble-bottom {
  0% {
    clip-path: inset(0 0 0 56%);
    opacity: 0.18;
    filter: blur(5px);
    transform: translateX(0.07em) skewX(3deg);
  }
  46% {
    clip-path: inset(0 0 0 5%);
    opacity: 1;
    filter: blur(0);
    transform: translateX(-0.014em) skewX(-0.7deg);
  }
  70% {
    clip-path: inset(0);
    transform: translateX(0.006em) skewX(0);
  }
  100% {
    clip-path: inset(0);
    opacity: 1;
    filter: blur(0);
    transform: translateX(0) skewX(0);
  }
}

@keyframes logo-scan {
  0% {
    opacity: 0;
    transform: translateY(-2.1em) scaleX(0.12);
  }
  24% {
    opacity: 0.9;
    transform: translateY(-1.15em) scaleX(0.72);
  }
  68% {
    opacity: 0.55;
    transform: translateY(1em) scaleX(0.92);
  }
  100% {
    opacity: 0;
    transform: translateY(2.2em) scaleX(0.18);
  }
}

@keyframes reveal-up {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes reveal-scroll-cue {
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes project-pulse {
  50% { opacity: 0.3; }
}

@keyframes window-startle {
  0%, 100% { transform: translate(0) rotate(0); }
  18% { transform: translate(-4px, 1px) rotate(-0.35deg); }
  36% { transform: translate(4px, -2px) rotate(0.35deg); }
  54% { transform: translate(-2px, 2px) rotate(-0.2deg); }
  72% { transform: translate(2px, -1px) rotate(0.15deg); }
}

@keyframes project-art-glitch {
  0%, 76%, 83%, 88%, 100% {
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    transform: scale(1.04) translate(0);
  }
  77% {
    clip-path: inset(8% 0 67% 0);
    opacity: 0.75;
    transform: scale(1.06) translate(-7px, 1px);
  }
  79% {
    clip-path: inset(62% 0 14% 0);
    opacity: 0.62;
    transform: scale(1.04) translate(9px, -1px);
  }
  81% {
    clip-path: inset(35% 0 45% 0);
    opacity: 0.78;
    transform: scale(1.05) translate(-4px, 0);
  }
  85% {
    clip-path: inset(74% 0 5% 0);
    opacity: 0.55;
    transform: scale(1.04) translate(5px, 1px);
  }
  87% {
    clip-path: inset(16% 0 70% 0);
    opacity: 0.68;
    transform: scale(1.05) translate(-3px, -1px);
  }
}

@keyframes project-art-scan {
  from { transform: translateY(-110%); }
  to { transform: translateY(390%); }
}

@keyframes glow-in {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
  50% { opacity: 0.7; }
  100% { opacity: 0.25; transform: translate(-50%, -50%) scale(1); }
}

@keyframes glitch-green {
  0%, 78%, 82%, 86%, 100% {
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    transform: translate(0);
  }
  79% {
    clip-path: inset(12% 0 62% 0);
    opacity: 0.9;
    transform: translate(-0.035em, 0.012em);
  }
  80% {
    clip-path: inset(68% 0 9% 0);
    opacity: 0.6;
    transform: translate(0.025em, -0.008em);
  }
  81% {
    clip-path: inset(42% 0 42% 0);
    opacity: 0.8;
    transform: translate(-0.015em, 0);
  }
  84% {
    clip-path: inset(4% 0 78% 0);
    opacity: 0.55;
    transform: translate(0.018em, 0);
  }
  85% {
    clip-path: inset(72% 0 5% 0);
    opacity: 0.8;
    transform: translate(-0.025em, 0.01em);
  }
}

@keyframes glitch-green-alt {
  0%, 79%, 83%, 100% {
    clip-path: inset(100% 0 0 0);
    opacity: 0;
    transform: translate(0);
  }
  80% {
    clip-path: inset(54% 0 25% 0);
    opacity: 0.45;
    transform: translate(0.045em, 0);
  }
  81% {
    clip-path: inset(18% 0 63% 0);
    opacity: 0.75;
    transform: translate(-0.022em, -0.01em);
  }
  82% {
    clip-path: inset(82% 0 3% 0);
    opacity: 0.55;
    transform: translate(0.03em, 0);
  }
}

.about {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 92svh;
  padding: clamp(80px, 12vw, 170px) clamp(18px, 5vw, 78px) clamp(46px, 7vw, 92px);
  overflow: hidden;
  border-top: 1px solid rgba(135, 255, 101, 0.14);
  background:
    radial-gradient(circle at 78% 40%, rgba(135, 255, 101, 0.075), transparent 31%),
    linear-gradient(155deg, #050706, #071008 52%, #030504);
}

.about::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(135, 255, 101, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(135, 255, 101, 0.022) 1px, transparent 1px);
  background-size: 58px 58px;
  content: "";
  mask-image: linear-gradient(120deg, transparent 3%, black 46%, transparent 92%);
  pointer-events: none;
}

.about::after {
  position: absolute;
  z-index: -1;
  right: -0.08em;
  bottom: -0.22em;
  color: rgba(135, 255, 101, 0.018);
  content: "HELLO";
  font-size: clamp(9rem, 29vw, 31rem);
  font-weight: 800;
  letter-spacing: -0.1em;
  line-height: 0.8;
  pointer-events: none;
}

.about__frame {
  position: relative;
  width: min(100%, 1320px);
  margin: auto;
  padding: clamp(25px, 4vw, 54px) 0 0;
  border-top: 1px solid rgba(135, 255, 101, 0.36);
}

.about__frame::before,
.about__frame::after {
  position: absolute;
  top: -4px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--acid);
  background: var(--ink);
  content: "";
}

.about__frame::before {
  left: 0;
}

.about__frame::after {
  right: 0;
}

.about__meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(48px, 7vw, 90px);
  color: rgba(135, 255, 101, 0.52);
  font-family: "DM Mono", monospace;
  font-size: 0.61rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.about__copy {
  max-width: 1140px;
}

.about__lead {
  max-width: 1080px;
  margin: 0;
  color: rgba(222, 242, 217, 0.88);
  font-size: clamp(2.5rem, 6.4vw, 6.4rem);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.96;
  text-wrap: balance;
}

.about__lead strong {
  position: relative;
  color: var(--acid);
  font-weight: 700;
  text-shadow: 0 0 34px rgba(135, 255, 101, 0.14);
}

.about__body {
  max-width: 940px;
  margin: clamp(48px, 7vw, 84px) 0 0;
  color: rgba(188, 222, 181, 0.62);
  font-size: clamp(1rem, 1.6vw, 1.32rem);
  font-weight: 400;
  line-height: 1.75;
}

.about__contact {
  display: grid;
  gap: 12px;
  margin: clamp(38px, 5vw, 62px) 0 0;
  padding-left: clamp(18px, 3vw, 34px);
  border-left: 1px solid var(--acid);
  color: rgba(188, 222, 181, 0.5);
  font-family: "DM Mono", monospace;
  font-size: clamp(0.75rem, 1.15vw, 0.9rem);
  line-height: 1.55;
}

.about__contact a {
  width: fit-content;
  color: var(--acid);
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.35rem, 3.2vw, 2.65rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  text-decoration-color: rgba(135, 255, 101, 0.3);
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
  overflow-wrap: anywhere;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.about__contact a:hover,
.about__contact a:focus-visible {
  color: var(--paper);
  text-decoration-color: var(--acid);
  outline: none;
}

.about__footer {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: clamp(70px, 10vw, 130px);
  color: rgba(188, 222, 181, 0.27);
  font-family: "DM Mono", monospace;
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about__footer-line {
  flex: 1;
  height: 1px;
  background: rgba(135, 255, 101, 0.12);
}

@media (max-width: 560px) {
  .terminal {
    min-height: 60px;
    overflow: hidden;
  }

  .terminal__line {
    max-width: calc(100vw - 70px);
  }

  .hero__title {
    font-size: clamp(3.5rem, 20vw, 6rem);
    line-height: 0.82;
  }

  .socials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    width: min(88vw, 360px);
    margin-top: 22px;
  }

  .social-link {
    min-height: 40px;
    padding: 0 11px;
  }

  .social-link:last-child:nth-child(odd) {
    grid-column: span 2;
  }

  .status {
    display: none;
  }

  .scroll-cue {
    bottom: 22px;
  }

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

  .projects__description {
    margin: 24px 0 0;
  }

  .projects__stage {
    height: 1080px;
  }

  .project-window {
    width: min(82vw, 330px);
    height: 184px;
  }

  .about {
    min-height: 100svh;
    padding-top: 90px;
  }

  .about__meta {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 54px;
  }

  .about__lead {
    font-size: clamp(2.55rem, 13vw, 4rem);
    line-height: 0.98;
  }

  .about__body {
    margin-top: 46px;
    line-height: 1.68;
  }

  .about__contact {
    padding-left: 17px;
  }

  .about__contact a {
    font-size: clamp(1.2rem, 6vw, 1.7rem);
  }

  .about__footer {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 76px;
  }

  .about__footer-line {
    width: 100%;
  }
}

@media (max-height: 700px) {
  .hero {
    padding-top: 30px;
  }

  .hero__eyebrow {
    margin-bottom: 17px;
  }

  .hero__tagline {
    margin-top: 24px;
  }

  .socials {
    margin-top: 18px;
  }
}

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