:root {
  color-scheme: dark;
  --bg: #080a0f;
  --surface: #0e1118;
  --text: #f4f7f8;
  --muted: #98a1ad;
  --line: rgba(255, 255, 255, 0.12);
  --lime: #baff63;
  --cyan: #70e5ff;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 77% 12%, rgba(112, 229, 255, 0.1), transparent 27rem),
    radial-gradient(circle at 15% 38%, rgba(186, 255, 99, 0.07), transparent 30rem), var(--bg);
  color: var(--text);
  font-family: 'Segoe UI Variable', 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  transform: translateY(-180%);
  background: var(--lime);
  color: #071007;
  font-weight: 800;
}
.skip-link:focus {
  transform: translateY(0);
}

.page-grid {
  position: fixed;
  z-index: -1;
  inset: 0;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.site-header,
main,
footer {
  width: min(calc(100% - 3rem), var(--max));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: Consolas, 'SFMono-Regular', monospace;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.wordmark-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid var(--lime);
  color: var(--lime);
  font-size: 0.9rem;
}
.wordmark .muted {
  color: var(--muted);
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.92rem;
  font-weight: 650;
}
nav a:not(.nav-cta) {
  color: var(--muted);
}
nav a:hover,
nav a:focus-visible {
  color: var(--lime);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.62fr);
  gap: clamp(3rem, 8vw, 7.5rem);
  align-items: center;
  min-height: calc(100vh - 86px);
  padding: 5.5rem 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.5rem;
  color: var(--lime);
  font-family: Consolas, 'SFMono-Regular', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-dot,
.live-badge span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--lime);
  box-shadow:
    0 0 0 5px rgba(186, 255, 99, 0.1),
    0 0 18px var(--lime);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3.15rem, 7.2vw, 6.8rem);
  font-weight: 780;
  letter-spacing: -0.072em;
  line-height: 0.94;
}
h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 247, 248, 0.58);
}

.intro {
  max-width: 680px;
  margin: 2.1rem 0 0;
  color: #b9c0c8;
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  line-height: 1.72;
}
.intro strong {
  color: var(--text);
}

.hero-actions,
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 0.75rem 1.15rem;
  border: 1px solid var(--line);
  font-weight: 750;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}
.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
  border-color: var(--lime);
}
.button-primary {
  border-color: var(--lime);
  background: var(--lime);
  color: #091008;
}
.button-primary:hover,
.button-primary:focus-visible {
  background: #ccff8f;
}
.button-ghost {
  background: rgba(255, 255, 255, 0.025);
}

.profile-card {
  position: relative;
  overflow: hidden;
  padding: 1.35rem;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(20, 24, 34, 0.92), rgba(9, 11, 16, 0.88));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
}
.profile-card::after {
  position: absolute;
  right: -15%;
  bottom: -45%;
  width: 16rem;
  height: 16rem;
  border: 1px solid rgba(112, 229, 255, 0.22);
  border-radius: 50%;
  content: '';
}
.profile-top {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.profile-top img {
  width: 76px;
  height: 76px;
  border: 1px solid rgba(186, 255, 99, 0.45);
  filter: saturate(0.72) contrast(1.05);
}
.profile-label {
  margin: 0;
  color: var(--muted);
  font-family: Consolas, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.profile-value {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  font-weight: 700;
}
.profile-value span {
  color: var(--cyan);
}

.experience {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  margin: 2.3rem 0 1.7rem;
}
.experience-number {
  font-size: clamp(4.8rem, 9vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.73;
}
.experience-number span {
  color: var(--lime);
  font-size: 0.45em;
  vertical-align: top;
}
.experience-copy {
  color: var(--muted);
  font-family: Consolas, monospace;
  font-size: 0.84rem;
  line-height: 1.4;
  text-transform: uppercase;
}

.signal {
  display: flex;
  height: 38px;
  align-items: flex-end;
  gap: 6px;
  margin-bottom: 1.7rem;
}
.signal span {
  width: 5px;
  background: var(--cyan);
  animation: signal 1.65s ease-in-out infinite alternate;
}
.signal span:nth-child(1),
.signal span:nth-child(7) {
  height: 22%;
}
.signal span:nth-child(2),
.signal span:nth-child(6) {
  height: 48%;
  animation-delay: -0.5s;
}
.signal span:nth-child(3),
.signal span:nth-child(5) {
  height: 76%;
  animation-delay: -0.9s;
}
.signal span:nth-child(4) {
  height: 100%;
  animation-delay: -1.25s;
}

.focus-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.focus-list li {
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--line);
  color: #c5cbd1;
  font-family: Consolas, monospace;
  font-size: 0.72rem;
}

.projects {
  padding: clamp(6rem, 12vw, 10rem) 0;
  border-top: 1px solid var(--line);
}
.section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 4rem;
  align-items: end;
  margin-bottom: 4rem;
}
.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  letter-spacing: -0.06em;
  line-height: 0.98;
}
.section-heading > p:last-child {
  max-width: 430px;
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 1.08rem;
}
.project-list {
  display: grid;
  gap: 1rem;
}

.project-card {
  position: relative;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 240px;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(13, 16, 23, 0.82);
  transition:
    transform 220ms ease,
    border-color 220ms ease;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(186, 255, 99, 0.45);
}
.project-index {
  padding: 1.55rem 0 0 1.55rem;
  color: var(--muted);
  font-family: Consolas, monospace;
  font-size: 0.8rem;
}
.project-body {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: 3rem 1rem 3rem 0;
}
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  color: var(--muted);
  font-family: Consolas, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
}
.live-badge span {
  width: 0.4rem;
  height: 0.4rem;
  box-shadow: 0 0 10px var(--lime);
}
.project-card h3 {
  margin: 0.55rem 0 0.8rem;
  font-size: clamp(2.25rem, 5vw, 4.4rem);
  letter-spacing: -0.065em;
  line-height: 1;
}
.project-card p {
  max-width: 660px;
  margin: 0;
  color: #aab2bc;
  font-size: 1.02rem;
}
.project-links a {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid var(--line);
  font-weight: 750;
}
.project-links a:hover,
.project-links a:focus-visible {
  border-color: var(--lime);
  color: var(--lime);
}

.project-orbit,
.tower-bars {
  position: relative;
  align-self: center;
  justify-self: center;
  width: 170px;
  height: 170px;
}
.project-orbit {
  border: 1px solid rgba(186, 255, 99, 0.32);
  border-radius: 50%;
  animation: orbit 14s linear infinite;
}
.project-orbit::before,
.project-orbit::after {
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(112, 229, 255, 0.26);
  border-radius: 50%;
  content: '';
}
.project-orbit::after {
  inset: 56px;
  background: var(--lime);
  box-shadow: 0 0 40px rgba(186, 255, 99, 0.45);
}
.project-orbit span,
.project-orbit i {
  position: absolute;
  z-index: 1;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 20px var(--cyan);
}
.project-orbit span {
  top: -6px;
  left: 79px;
}
.project-orbit i {
  right: 17px;
  bottom: 24px;
  width: 8px;
  height: 8px;
}

.tower-bars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.tower-bars::before,
.tower-bars::after {
  position: absolute;
  border: 1px solid rgba(112, 229, 255, 0.2);
  content: '';
}
.tower-bars::before {
  inset: 12px 0;
}
.tower-bars::after {
  inset: 0 17px;
}
.tower-bars i {
  z-index: 1;
  width: 8px;
  background: linear-gradient(to top, var(--cyan), var(--lime));
  box-shadow: 0 0 18px rgba(112, 229, 255, 0.25);
}
.tower-bars i:nth-child(1),
.tower-bars i:nth-child(5) {
  height: 26%;
}
.tower-bars i:nth-child(2),
.tower-bars i:nth-child(4) {
  height: 54%;
}
.tower-bars i:nth-child(3) {
  height: 82%;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  align-items: center;
  min-height: 130px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}
.footer-mark {
  color: var(--text);
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes signal {
  to {
    height: 22%;
    opacity: 0.45;
  }
}
@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 5rem 6rem;
  }
  .profile-card {
    width: min(100%, 500px);
  }
  .section-heading {
    grid-template-columns: 1fr;
  }
  .project-card {
    grid-template-columns: 65px 1fr;
  }
  .project-orbit,
  .tower-bars {
    position: absolute;
    right: -55px;
    bottom: -55px;
    opacity: 0.28;
  }
}

@media (max-width: 620px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 2rem), var(--max));
  }
  .site-header {
    min-height: 74px;
  }
  nav a:not(.nav-cta) {
    display: none;
  }
  h1 {
    font-size: clamp(2.85rem, 14vw, 4.5rem);
  }
  .hero-actions,
  .button {
    width: 100%;
  }
  .project-card {
    display: block;
    min-height: 0;
    padding: 1.4rem;
  }
  .project-index {
    padding: 0;
  }
  .project-body {
    padding: 2.2rem 0 1rem;
  }
  footer {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 2.5rem 0;
  }
  footer p {
    margin: 0;
  }
}

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