:root {
  --black: #000;
  --panel: rgba(0, 12, 4, 0.82);
  --green: #00ff41;
  --green-bright: #b6ffc8;
  --green-mid: #00c035;
  --green-dim: #00702a;
  --green-faint: #00360f;
  --font: Consolas, "Liberation Mono", "Courier New", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--black);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--black);
  color: var(--green-bright);
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s, border-color 0.2s, box-shadow 0.2s;
}

a:hover,
a:focus-visible {
  color: var(--green-bright);
  text-shadow: 0 0 8px var(--green);
}

#matrix {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

main,
.footer {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.85);
  border-bottom: 1px solid var(--green-faint);
  backdrop-filter: blur(4px);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  color: var(--green);
  text-shadow: 0 0 8px var(--green);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-mid);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
}

.prompt {
  margin: 0 0 1rem;
  color: var(--green-mid);
}

.cursor::after {
  content: "_";
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}

.glitch {
  position: relative;
  display: inline-block;
  margin: 0 0 1rem;
  font-size: clamp(3rem, 13vw, 8.5rem);
  font-weight: normal;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--green);
  text-shadow: 0 0 6px var(--green), 0 0 28px rgba(0, 255, 65, 0.45);
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--black);
  clip-path: inset(0 0 100% 0);
  transition: opacity 0.18s ease;
}

.glitch::before {
  color: var(--green-bright);
  animation: glitch-top 2.8s infinite steps(2, end);
}

.glitch::after {
  color: var(--green-mid);
  animation: glitch-bottom 3.4s infinite steps(2, end);
}

@keyframes glitch-top {
  0%,
  70%,
  100% {
    clip-path: inset(100% 0 0 0);
    transform: translate(0, 0);
  }
  72% {
    clip-path: inset(10% 0 70% 0);
    transform: translate(-4px, 0);
  }
  74% {
    clip-path: inset(60% 0 15% 0);
    transform: translate(3px, 0);
  }
  76% {
    clip-path: inset(30% 0 45% 0);
    transform: translate(-2px, 0);
  }
  78% {
    clip-path: inset(85% 0 2% 0);
    transform: translate(4px, 0);
  }
  80% {
    clip-path: inset(40% 0 35% 0);
    transform: translate(-3px, 0);
  }
  82% {
    clip-path: inset(100% 0 0 0);
    transform: translate(0, 0);
  }
}

@keyframes glitch-bottom {
  0%,
  60%,
  100% {
    clip-path: inset(100% 0 0 0);
    transform: translate(0, 0);
  }
  62% {
    clip-path: inset(70% 0 5% 0);
    transform: translate(3px, 0);
  }
  66% {
    clip-path: inset(20% 0 60% 0);
    transform: translate(-4px, 0);
  }
  70% {
    clip-path: inset(50% 0 25% 0);
    transform: translate(2px, 0);
  }
  74% {
    clip-path: inset(5% 0 80% 0);
    transform: translate(-2px, 0);
  }
  78% {
    clip-path: inset(100% 0 0 0);
    transform: translate(0, 0);
  }
}

.tagline {
  margin: 0 0 2rem;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green-mid);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--green);
  background: rgba(0, 20, 8, 0.6);
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 0 0 12px rgba(0, 255, 65, 0.35), inset 0 0 12px rgba(0, 255, 65, 0.15);
}

.btn:hover,
.btn:focus-visible {
  background: var(--green);
  color: var(--black);
  text-shadow: none;
}

section[id] {
  scroll-margin-top: 4.5rem;
}

.section {
  padding: 5rem 0;
}

h2 {
  margin: 0 0 2rem;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.6);
}

h2::before {
  content: "> ";
  color: var(--green-mid);
}

.grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.5rem;
}

.panel {
  padding: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--green-dim);
  box-shadow: 0 0 18px rgba(0, 255, 65, 0.12), inset 0 0 18px rgba(0, 255, 65, 0.06);
}

.panel p {
  margin: 0 0 1rem;
}

.panel p:last-child {
  margin-bottom: 0;
}

.profile dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem 1rem;
  margin: 0;
}

.profile dt {
  color: var(--green-mid);
}

.profile dt::before {
  content: "> ";
}

.profile dd {
  margin: 0;
  color: var(--green-bright);
  overflow-wrap: anywhere;
}

.timeline {
  margin: 0;
  padding: 0 0 0 1.5rem;
  list-style: none;
  border-left: 1px dashed var(--green-dim);
}

.timeline li {
  position: relative;
  margin-bottom: 2rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 0.45rem;
  left: calc(-1.5rem - 6px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.year {
  display: block;
  letter-spacing: 0.1em;
  color: var(--green-mid);
}

.timeline h3 {
  margin: 0.2rem 0;
  font-size: 1.25rem;
  font-weight: normal;
  color: var(--green);
}

.timeline p {
  margin: 0;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.links a {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--green-dim);
  background: var(--panel);
}

.links a:hover,
.links a:focus-visible {
  border-color: var(--green);
  box-shadow: 0 0 14px rgba(0, 255, 65, 0.45);
}

.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--green-faint);
  text-align: center;
  font-size: 0.9rem;
  color: var(--green-mid);
}

.footer p {
  margin: 0;
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.intro-scan {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 2px;
  pointer-events: none;
  background: var(--green);
  box-shadow: 0 0 16px 4px rgba(0, 255, 65, 0.5);
}

.intro .glitch::before,
.intro .glitch::after {
  display: none;
}

.void-half {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 15;
  height: 50%;
  background: var(--black);
  pointer-events: none;
}

.void-top {
  top: 0;
  animation: void-open-top 1.05s cubic-bezier(0.76, 0, 0.24, 1) 0.45s forwards;
}

.void-bottom {
  bottom: 0;
  animation: void-open-bottom 1.05s cubic-bezier(0.76, 0, 0.24, 1) 0.45s forwards;
}

.void-seam {
  position: fixed;
  top: 50%;
  left: 0;
  right: 0;
  z-index: 16;
  height: 2px;
  margin-top: -1px;
  background: var(--green-bright);
  box-shadow: 0 0 12px var(--green), 0 0 48px var(--green);
  pointer-events: none;
  transform: scaleX(0);
  animation: seam-flash 1.1s ease-out forwards;
}

main,
.footer {
  animation: void-emerge 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.45s backwards;
}

@keyframes void-open-top {
  to {
    transform: translateY(-100%);
    visibility: hidden;
  }
}

@keyframes void-open-bottom {
  to {
    transform: translateY(100%);
    visibility: hidden;
  }
}

@keyframes seam-flash {
  0% {
    transform: scaleX(0);
    opacity: 1;
  }
  40% {
    transform: scaleX(1);
    opacity: 1;
  }
  100% {
    transform: scaleX(1);
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes void-emerge {
  from {
    transform: scale(1.08);
    filter: blur(12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .void-half,
  .void-seam {
    display: none;
  }

  main,
  .footer {
    animation: none;
  }
}

.glitch .char {
  display: inline-block;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.glitch.scatter::before,
.glitch.scatter::after {
  opacity: 0;
}

@media (max-width: 760px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 0.95rem;
  }

  .hero {
    padding-top: 7rem;
  }

  .section {
    padding: 3.5rem 0;
  }
}
