:root {
  --bg: #080b14;
  --bg-soft: #0f1424;
  --card: rgba(18, 24, 43, 0.72);
  --card-border: rgba(130, 156, 255, 0.24);
  --text: #eaf0ff;
  --muted: #9aa7cc;
  --accent: #7c8dff;
  --accent-2: #35e4ff;
  --accent-3: #b07cff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 10% -20%, #1f2f67 0%, transparent 50%),
              radial-gradient(1000px 900px at 100% 0%, #321a63 0%, transparent 45%),
              var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Ambient background elements */
.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(55px);
  pointer-events: none;
  z-index: -2;
  opacity: 0.65;
}

.orb-a {
  width: 360px;
  height: 360px;
  left: -80px;
  top: 12vh;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  animation: driftA 16s ease-in-out infinite alternate;
}

.orb-b {
  width: 300px;
  height: 300px;
  right: -60px;
  top: 52vh;
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  animation: driftB 18s ease-in-out infinite alternate;
}

@keyframes driftA {
  from { transform: translate(0, 0); }
  to   { transform: translate(40px, -30px); }
}

@keyframes driftB {
  from { transform: translate(0, 0); }
  to   { transform: translate(-35px, 25px); }
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(128, 150, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128, 150, 255, 0.16) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 90%);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 3.2vw, 44px);
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(8, 11, 20, 0.78), rgba(8, 11, 20, 0.25));
  border-bottom: 1px solid rgba(132, 153, 242, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 16px var(--accent-2);
}

.top-nav {
  display: inline-flex;
  gap: 18px;
}

.top-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.22s ease;
}

.top-nav a:hover {
  color: var(--text);
}

/* Hero */
main {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  padding: clamp(56px, 12vw, 130px) 0 50px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero h1 {
  margin: 0;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(2rem, 6vw, 4.35rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 500px;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--accent-2), #9fb3ff 45%, var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 62ch;
  color: var(--muted);
  margin: 20px 0 0;
  font-size: clamp(1rem, 1.2vw, 1.08rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #061022;
  background: linear-gradient(135deg, var(--accent-2), #90a5ff);
  box-shadow: 0 8px 20px rgba(75, 168, 255, 0.35);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--card-border);
  background: rgba(17, 23, 40, 0.5);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 28px;
  max-width: 620px;
}

.metric {
  border: 1px solid var(--card-border);
  background: rgba(14, 19, 34, 0.6);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.metric-value {
  font-weight: 700;
  font-size: 0.98rem;
  color: #dbe6ff;
}

.metric-label {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 2px;
}

/* Sections */
.section {
  padding: 36px 0 24px;
}

.section-head {
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.45rem, 3.2vw, 2.3rem);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

/* Project grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.project-card {
  grid-column: span 6;
  border: 1px solid var(--card-border);
  background: linear-gradient(180deg, rgba(25, 33, 61, 0.45), var(--card));
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(143, 167, 255, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.project-card.theme-alt {
  background: linear-gradient(180deg, rgba(36, 20, 61, 0.45), var(--card));
}

.project-card.coming-soon {
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, rgba(26, 40, 81, 0.5), rgba(31, 19, 56, 0.72));
}

.media-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 12px;
  border-bottom: 1px solid rgba(132, 153, 242, 0.16);
}

.media-strip::-webkit-scrollbar {
  height: 10px;
}
.media-strip::-webkit-scrollbar-thumb {
  background: rgba(130, 156, 255, 0.4);
  border-radius: 999px;
}
.media-strip::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}

.media-strip img {
  width: min(100%, 270px);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  flex: 0 0 auto;
  scroll-snap-align: start;
  border: 1px solid rgba(140, 162, 255, 0.2);
  background: #0b101d;
}

.project-content {
  padding: 16px;
}

.project-content h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.16rem;
  line-height: 1.25;
}

.project-content h3 a {
  color: #f0f4ff;
  text-decoration: none;
}

.project-content h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.subtitle {
  margin: 4px 0 10px;
  color: #b8c5ec;
  font-weight: 500;
  font-size: 0.94rem;
}

.project-content p {
  margin: 0;
  color: var(--muted);
}

.links {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.links a {
  color: #d5e3ff;
  text-decoration: none;
  font-size: 0.92rem;
  border: 1px solid rgba(135, 159, 255, 0.3);
  background: rgba(128, 151, 255, 0.08);
  border-radius: 999px;
  padding: 6px 10px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.links a:hover {
  background: rgba(128, 151, 255, 0.18);
  border-color: rgba(158, 180, 255, 0.6);
}

.about p {
  max-width: 68ch;
  color: var(--muted);
  margin: 0;
}

/* Footer */
.site-footer {
  margin-top: 22px;
  padding: 28px 0 42px;
  border-top: 1px solid rgba(132, 153, 242, 0.16);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer a {
  color: #dce7ff;
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 980px) {
  .project-card {
    grid-column: span 12;
  }

  .top-nav {
    gap: 12px;
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
