/* ---------- Custom properties ---------- */
:root {
  --bg: #0d0221;
  --surface: #1a0b2e;
  --neon-magenta: #ff2fd1;
  --neon-cyan: #7df9ff;
  --sun-top: #ffd23f;
  --sun-mid: #ff9f45;
  --sun-bottom: #e0339b;
  --text-body: #e8e3f5;

  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;

  --nav-height: 3.5rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

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

a {
  color: var(--neon-cyan);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  z-index: 200;
  background: var(--surface);
  color: var(--text-body);
  padding: 0.6rem 1rem;
  border: 1px solid var(--neon-cyan);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* Visible focus states throughout */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 2px;
}

/* ---------- CRT scanline overlay ---------- */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.035) 0px,
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.5;
}

/* ---------- Sticky nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding: 0 1.25rem;
  background: rgba(13, 2, 33, 0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(125, 249, 255, 0.2);
}

.site-nav__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--neon-cyan);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.site-nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 2.25rem;
  height: 2.25rem;
  background: transparent;
  border: 1px solid rgba(125, 249, 255, 0.4);
  border-radius: 4px;
  cursor: pointer;
}

.site-nav__toggle span {
  display: block;
  height: 2px;
  margin: 0 6px;
  background: var(--neon-cyan);
}

.site-nav__links {
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0.5rem 1.25rem 1rem;
  background: rgba(13, 2, 33, 0.97);
  border-bottom: 1px solid rgba(125, 249, 255, 0.2);
}

.site-nav__links.is-open {
  display: flex;
}

.site-nav__links a {
  display: block;
  padding: 0.6rem 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text-body);
}

.site-nav__links a:hover,
.site-nav__links a:focus-visible {
  color: var(--neon-magenta);
}

@media (min-width: 720px) {
  .site-nav__toggle {
    display: none;
  }

  .site-nav__links {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    background: none;
    border: none;
    padding: 0;
  }

  .site-nav__links a {
    padding: 0;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-height));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(to bottom, var(--bg) 0%, #200a3d 55%, var(--bg) 100%);
}

.hero__sky {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__sun {
  position: absolute;
  top: 18%;
  width: min(45vw, 320px);
  height: min(45vw, 320px);
  border-radius: 50%;
  background: linear-gradient(to bottom, var(--sun-top) 0%, var(--sun-mid) 50%, var(--sun-bottom) 100%);
  box-shadow: 0 0 60px 10px rgba(255, 47, 209, 0.35);
  overflow: hidden;
}

.hero__sun::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 8%,
    var(--bg) 8%,
    var(--bg) 11%
  );
  mask-image: linear-gradient(to bottom, transparent 55%, black 55%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 55%, black 55%);
}

.hero__grid {
  position: absolute;
  bottom: 0;
  left: -25%;
  width: 150%;
  height: 55%;
  background-image:
    linear-gradient(rgba(125, 249, 255, 0.6) 1px, transparent 1px),
    linear-gradient(to right, rgba(125, 249, 255, 0.6) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(300px) rotateX(65deg);
  transform-origin: bottom;
  animation: grid-scroll 3s linear infinite;
}

@keyframes grid-scroll {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 0 60px, 0 0;
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 1.25rem 3rem;
}

.hero__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 8vw, 4.5rem);
  letter-spacing: 0.03em;
  background: linear-gradient(to bottom, #ffffff 0%, var(--neon-cyan) 45%, var(--neon-magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 0 18px rgba(255, 47, 209, 0.45);
}

.hero__title {
  margin: 0.75rem 0 0;
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  color: var(--text-body);
}

.hero__company-link {
  color: var(--neon-cyan);
  text-decoration: none;
  border-bottom: 1px dotted var(--neon-cyan);
}

.hero__company-link:hover,
.hero__company-link:focus-visible {
  color: var(--neon-magenta);
  border-color: var(--neon-magenta);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__grid {
    animation: none;
  }
}

/* ---------- Sections ---------- */
.section {
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 1.25rem;
  border-top: 1px solid rgba(125, 249, 255, 0.12);
}

.section__header {
  margin: 0 0 1.5rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--neon-cyan);
  text-transform: uppercase;
}

.section__number {
  color: var(--neon-magenta);
}

.section__body {
  font-size: 1rem;
}

.placeholder-note {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--neon-magenta);
  border: 1px dashed rgba(255, 47, 209, 0.4);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  display: inline-block;
}

/* ---------- Timeline ---------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.25rem;
  border-left: 2px solid rgba(125, 249, 255, 0.3);
}

.timeline__item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: calc(-1.25rem - 5px);
  top: 0.4rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--neon-magenta);
  box-shadow: 0 0 8px 2px rgba(255, 47, 209, 0.6);
}

.timeline__dates {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--neon-cyan);
  margin-bottom: 0.25rem;
}

.timeline__role {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-body);
}

.timeline__org {
  margin: 0.25rem 0 0;
  color: rgba(232, 227, 245, 0.8);
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 600px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid rgba(125, 249, 255, 0.3);
  border-radius: 6px;
  padding: 1.25rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover,
.card:focus-within {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 16px rgba(125, 249, 255, 0.35);
}

.card__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--neon-cyan);
}

.card p {
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- Badge list ---------- */
.badge-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  padding: 0;
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--neon-cyan);
  border: 1px solid rgba(125, 249, 255, 0.4);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
}

/* ---------- Contact ---------- */
.contact-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-family: var(--font-mono);
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 2rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(232, 227, 245, 0.6);
  border-top: 1px solid rgba(125, 249, 255, 0.12);
}
