:root {
  --black: #07080a;
  --dark: #0c0e12;
  --panel: #111418;
  --orange: #FF6B1A;
  --orange-dim: #c4500f;
  --blue: #1E90FF;
  --blue-dim: #0d5a9e;
  --cyan: #00E5FF;
  --green: #00FF41;
  --green-dim: #1a7a35;
  --white: #e6e8ec;
  --grey: #3a4048;
  --grey-light: #8a929e;
  --scanline-opacity: 0.17;
  --nav-height: 56px;
  --ticker-height: 32px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Share Tech Mono', monospace;
  overflow-x: hidden;
  cursor: crosshair;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,var(--scanline-opacity)) 2px,
    rgba(0,0,0,var(--scanline-opacity)) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

@keyframes scanline-move {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.75; }
}

@keyframes flicker {
  0%,100% { opacity: 1; }
  93% { opacity: 0.45; }
  94% { opacity: 1; }
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.scan-move {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(
    transparent,
    rgba(255,107,26,0.035),
    rgba(30,144,255,0.035),
    transparent
  );
  pointer-events: none;
  z-index: 9998;
  animation: scanline-move 7s linear infinite;
}

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 40px);
  height: var(--nav-height);
  background: rgba(7,8,10,0.94);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
}

.nav-logo {
  display: block;
  line-height: 0;
  text-decoration: none;
}

.nav-logo img {
  height: 36px;
  width: auto;
  image-rendering: pixelated;
  display: block;
}

.nav-links {
  display: flex;
  gap: clamp(20px, 3vw, 36px);
  list-style: none;
}

.nav-links a {
  font-size: 11px;
  color: var(--grey-light);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--orange); }

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'VT323', monospace;
  font-size: 18px;
}

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse-dot 1.4s ease-in-out infinite;
  box-shadow: 0 0 8px var(--cyan);
}

.status-value {
  color: var(--cyan);
  letter-spacing: 1px;
}

/* TICKER */
.ticker-wrap {
  overflow: hidden;
  height: var(--ticker-height);
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, var(--orange), #e85a10 40%, var(--blue-dim) 60%, var(--blue));
  background-size: 200% 100%;
  animation: gradient-shift 8s ease infinite;
  border-bottom: 2px solid rgba(0,0,0,0.4);
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--black);
  letter-spacing: 1px;
}

.ticker-item { padding: 0 28px; }
.ticker-sep { padding: 0 8px; opacity: 0.45; }

/* HERO */
.hero {
  min-height: calc(100dvh - var(--nav-height) - var(--ticker-height));
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(32px, 5vh, 72px) clamp(24px, 5vw, 80px);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 50%, rgba(255,107,26,0.07), transparent),
    radial-gradient(ellipse 50% 45% at 85% 40%, rgba(30,144,255,0.08), transparent);
  pointer-events: none;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black, transparent);
  pointer-events: none;
}

.hero-left {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: 'VT323', monospace;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--grey-light);
  letter-spacing: 4px;
  margin-bottom: 16px;
}

.hero-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(22px, 4vw, 38px);
  line-height: 1.5;
  margin-bottom: 20px;
  animation: flicker 2s infinite;
}

.hero-title span.orange { color: var(--orange); }
.hero-title span.blue { color: var(--blue); }

.hero-tagline {
  font-family: 'VT323', monospace;
  font-size: clamp(22px, 2.8vw, 30px);
  color: var(--white);
  letter-spacing: 1px;
  margin-bottom: 28px;
  max-width: 480px;
  line-height: 1.3;
}

.hero-cta {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  padding: 14px 24px;
  background: transparent;
  border: 2px solid var(--orange);
  color: var(--orange);
  text-decoration: none;
  letter-spacing: 1px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.hero-cta:hover {
  background: var(--orange);
  color: var(--black);
  box-shadow: 0 0 24px rgba(255,107,26,0.4);
}

.hero-right {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.hero-logo {
  width: min(320px, 80%);
  height: auto;
  image-rendering: pixelated;
  display: block;
}

/* PROJECTS */
.projects {
  padding: clamp(48px, 8vh, 96px) clamp(24px, 5vw, 80px);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.section-label {
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: var(--grey-light);
  letter-spacing: 4px;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(14px, 2.5vw, 20px);
  line-height: 1.6;
  margin-bottom: clamp(32px, 5vh, 56px);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--white);
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  min-height: 320px;
}

.project-card:hover {
  transform: translateY(-4px);
}

.project-card--orange:hover {
  border-color: rgba(255,107,26,0.5);
  box-shadow: 0 8px 32px rgba(255,107,26,0.12);
}

.project-card--blue:hover {
  border-color: rgba(30,144,255,0.5);
  box-shadow: 0 8px 32px rgba(30,144,255,0.12);
}

.project-card--green:hover {
  border-color: rgba(0,255,65,0.5);
  box-shadow: 0 8px 32px rgba(0,255,65,0.12);
}

.project-card--soon {
  cursor: default;
  opacity: 0.55;
}

.project-card--soon:hover {
  transform: none;
  border-color: rgba(255,255,255,0.06);
  box-shadow: none;
}

.project-thumb {
  flex: 1;
  min-height: 180px;
  overflow: hidden;
  position: relative;
  background: var(--dark);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.project-card:not(.project-card--soon):hover .project-thumb img {
  transform: scale(1.04);
}

.project-thumb--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.project-thumb--logo img {
  max-width: 80%;
  max-height: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  image-rendering: pixelated;
}

.project-accent {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
}

.project-accent--orange { background: var(--orange); }
.project-accent--blue { background: var(--blue); }
.project-accent--green { background: var(--green); }
.project-accent--muted { background: var(--grey); }

.project-body {
  padding: 20px 22px 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.project-type {
  font-family: 'VT323', monospace;
  font-size: 14px;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.project-type--orange { color: var(--orange); }
.project-type--blue { color: var(--blue); }
.project-type--green { color: var(--green); }
.project-type--muted { color: var(--grey-light); }

.project-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  line-height: 1.7;
  margin-bottom: 10px;
}

.project-desc {
  font-size: 12px;
  color: var(--grey-light);
  line-height: 1.6;
}

.project-arrow {
  position: absolute;
  bottom: 22px;
  right: 22px;
  font-family: 'VT323', monospace;
  font-size: 20px;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}

.project-card:not(.project-card--soon):hover .project-arrow {
  opacity: 1;
  transform: translateX(4px);
}

.project-card--orange .project-arrow { color: var(--orange); }
.project-card--blue .project-arrow { color: var(--blue); }
.project-card--green .project-arrow { color: var(--green); }

/* ABOUT */
.about {
  padding: clamp(48px, 8vh, 80px) clamp(24px, 5vw, 80px);
  border-top: 1px solid rgba(255,255,255,0.05);
  background: var(--dark);
}

.facts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(32px, 5vh, 48px);
  max-width: 900px;
}

.fact {
  font-family: 'VT323', monospace;
  font-size: 17px;
  letter-spacing: 1px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  color: var(--grey-light);
  transition: border-color 0.2s, color 0.2s;
}

.fact:hover {
  border-color: rgba(255,255,255,0.15);
  color: var(--white);
}

.life-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 20px);
}

.life-cell {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  background: var(--panel);
}

.life-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s, filter 0.35s;
  filter: saturate(0.85);
}

.life-cell:hover img {
  transform: scale(1.03);
  filter: saturate(1);
}

.life-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 14px;
  font-family: 'VT323', monospace;
  font-size: 15px;
  letter-spacing: 2px;
  background: linear-gradient(transparent, rgba(7,8,10,0.85));
  color: var(--white);
}

/* FOOTER */
footer {
  padding: 32px clamp(24px, 5vw, 80px);
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--grey-light);
  letter-spacing: 1px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 11px;
  color: var(--grey-light);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--orange); }

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .hero-right { order: -1; }

  .hero-logo {
    width: min(200px, 55%);
  }

  .project-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .life-grid {
    grid-template-columns: 1fr 1fr;
  }

  .life-cell:last-child {
    grid-column: span 2;
    max-width: 50%;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .nav-links { display: none; }

  .life-grid { grid-template-columns: 1fr; }

  .life-cell:last-child {
    grid-column: auto;
    max-width: none;
  }

  footer {
    flex-direction: column;
    text-align: center;
  }
}
