:root {
  --bg: #070910;
  --txt: #f6f8ff;
  --muted: #b8c2e8;
  --line: rgba(255, 255, 255, 0.22);
  --n1: #7a8dff;
  --n2: #2de6ff;
  --n3: #ff4dc0;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--txt);
  font-family: "Outfit", system-ui, sans-serif;
  background: radial-gradient(1200px 800px at 10% 0%, #1a2140 0%, transparent 45%),
    radial-gradient(900px 700px at 100% 10%, #2a1736 0%, transparent 45%), var(--bg);
}

#bgCanvas,
.aurora,
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.aurora {
  filter: blur(60px);
  opacity: 0.32;
}

.aurora-1 {
  background: radial-gradient(circle at 20% 20%, var(--n2), transparent 55%);
  animation: drift 18s ease-in-out infinite;
}

.aurora-2 {
  background: radial-gradient(circle at 80% 20%, var(--n3), transparent 55%);
  animation: drift 24s ease-in-out infinite reverse;
}

.aurora-3 {
  background: radial-gradient(circle at 50% 75%, var(--n1), transparent 60%);
  animation: drift 30s ease-in-out infinite;
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -18px, 0) scale(1.04);
  }
}

.grain {
  opacity: 0.03;
  background-image: radial-gradient(#ffffff 0.8px, transparent 0.8px);
  background-size: 3px 3px;
}

.shell {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 18px;
}

.hero-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding-top: 34px;
}

.kicker {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--n2);
}

h1 {
  margin: 8px 0 9px;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1;
  text-shadow: 0 0 28px rgba(122, 141, 255, 0.45);
}

.subtitle {
  margin: 0;
  color: var(--muted);
}

.state-pill {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  padding: 7px 12px;
  font-size: 0.78rem;
  backdrop-filter: blur(8px);
}

.featured-wrap {
  margin-bottom: 16px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tile {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--txt);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  overflow: hidden;
  min-height: 260px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.36);
  transform: translateY(0) scale(1);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  isolation: isolate;
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(6, 13, 30, 0.18) 22%, rgba(5, 10, 24, 0.76) 78%);
  z-index: 1;
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  background: linear-gradient(120deg, rgba(45, 230, 255, 0.22), rgba(255, 77, 192, 0.2));
  transition: opacity 0.3s ease;
}

.tile:hover {
  transform: translateY(-8px) scale(1.012);
  border-color: rgba(45, 230, 255, 0.72);
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.5), 0 0 34px rgba(45, 230, 255, 0.24);
}

.tile:hover::after {
  opacity: 1;
}

.tile-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(1.01);
  transition: transform 0.5s ease;
}

.tile:hover .tile-image {
  transform: scale(1.07);
}

.tile-content {
  position: absolute;
  z-index: 3;
  inset: auto 16px 16px 16px;
}

.tile-title {
  margin: 0;
  font-size: clamp(1.2rem, 1.8vw, 1.7rem);
  font-weight: 700;
  text-shadow: 0 7px 18px rgba(0, 0, 0, 0.45);
}

.tile-sub {
  margin: 6px 0 0;
  color: rgba(239, 244, 255, 0.9);
  font-size: 0.94rem;
}

.tile-topline {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.chip {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(8, 17, 35, 0.48);
  backdrop-filter: blur(8px);
  color: #eff4ff;
}

.coming-soon {
  border-color: rgba(255, 209, 102, 0.82);
  color: #ffe7af;
  background: rgba(70, 42, 0, 0.42);
}

.featured {
  min-height: 360px;
}

.featured .tile-title {
  font-size: clamp(1.8rem, 3vw, 2.9rem);
}

@media (max-width: 920px) {
  .hero-header {
    flex-direction: column;
  }

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

  .featured {
    min-height: 300px;
  }
}
