:root {
  --bg: #040913;
  --txt: #ebf8ff;
  --muted: #9ec2d9;
  --line: rgba(170, 220, 255, 0.28);
  --n1: #5f7cff;
  --n2: #19fad0;
  --n3: #27d7ff;
}

* {
  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 8% 0%, #0f3146 0%, transparent 45%),
    radial-gradient(920px 700px at 100% 8%, #13243e 0%, transparent 46%),
    radial-gradient(860px 600px at 50% 100%, #140f2f 0%, transparent 52%), 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: center;
  align-items: center;
  padding-top: 28px;
  padding-bottom: 8px;
}

.brand-title {
  margin: 0;
  position: relative;
  width: 100%;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.brand-title span {
  display: inline-block;
  position: relative;
  padding: 8px 28px;
  font-size: clamp(2.8rem, 7.8vw, 6rem);
  line-height: 1;
  font-weight: 800;
  background: linear-gradient(135deg, #effeff 0%, #5dffe2 36%, #57e7ff 66%, #91a0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 34px rgba(25, 250, 208, 0.34), 0 0 45px rgba(95, 124, 255, 0.24);
}

.brand-title span::before {
  content: "";
  position: absolute;
  inset: -8px -4px;
  border: 1px solid rgba(160, 194, 255, 0.3);
  border-radius: 999px;
  background: radial-gradient(circle at 20% 50%, rgba(25, 250, 208, 0.15), transparent 46%),
    radial-gradient(circle at 80% 50%, rgba(95, 124, 255, 0.13), transparent 44%);
  z-index: -1;
}

.brand-title::before,
.brand-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: clamp(42px, 12vw, 160px);
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(101, 255, 217, 0.72));
  transform: translateY(-50%);
}

.brand-title::before {
  left: calc(50% - clamp(180px, 20vw, 250px));
}

.brand-title::after {
  right: calc(50% - clamp(180px, 20vw, 250px));
  transform: translateY(-50%) scaleX(-1);
}

.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(160deg, rgba(7, 27, 41, 0.14) 20%, rgba(4, 14, 30, 0.8) 78%);
  z-index: 1;
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  background: linear-gradient(120deg, rgba(25, 250, 208, 0.24), rgba(95, 124, 255, 0.24));
  transition: opacity 0.3s ease;
}

.tile:hover {
  transform: translateY(-8px) scale(1.012);
  border-color: rgba(25, 250, 208, 0.72);
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.5), 0 0 34px rgba(25, 250, 208, 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) {
  .brand-title {
    letter-spacing: 0.12em;
  }

  .brand-title::before,
  .brand-title::after {
    display: none;
  }

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

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