:root {
  --bg: #0d0f12;
  --panel: #151922;
  --panel-2: #1c2230;
  --text: #eef2f8;
  --muted: #aab3c2;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #8bd3ff;
  --accent-2: #d6ff8b;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(139, 211, 255, 0.15), transparent 32rem),
    radial-gradient(circle at 95% 10%, rgba(214, 255, 139, 0.09), transparent 26rem),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header,
.site-footer {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 1.1rem 0;
  backdrop-filter: blur(14px);
}

.brand {
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
}

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

main {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  padding: 6rem 0 3rem;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero h1 {
  max-width: 980px;
  margin: 0.5rem 0 1rem;
  font-size: clamp(2.4rem, 8vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.075em;
}

.hero-copy {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 0 2rem;
}

.filter-pill {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}

.filter-pill:hover,
.filter-pill.active {
  border-color: rgba(139, 211, 255, 0.7);
  background: rgba(139, 211, 255, 0.12);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.project-card {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.project-card.featured {
  grid-column: span 4;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 211, 255, 0.5);
  background: linear-gradient(180deg, rgba(139,211,255,0.12), rgba(255,255,255,0.03));
}

.media-frame {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--panel-2);
}

.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Use this for placeholder cards before you add real images/GIFs. */
.placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.55);
  background:
    linear-gradient(135deg, rgba(139,211,255,0.18), transparent),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 14px);
  font-weight: 700;
}

.project-info {
  padding: 1rem;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.project-title {
  margin: 0.4rem 0;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

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

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.about {
  border-top: 1px solid var(--line);
  margin-top: 4rem;
  padding: 3rem 0;
  max-width: 780px;
}

.about h2 {
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.project-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 0;
}

.project-hero-media {
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  margin: 2rem 0;
  background: var(--panel);
}

.project-hero-media img,
.project-hero-media video {
  width: 100%;
  display: block;
}

.project-page h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
  margin: 0.75rem 0;
}

.project-page .summary {
  color: var(--muted);
  font-size: 1.2rem;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.button-link {
  display: inline-block;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(139, 211, 255, 0.55);
  background: rgba(139, 211, 255, 0.10);
  text-decoration: none;
}

.project-section {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.project-section h2 {
  letter-spacing: -0.04em;
}

.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 900px) {
  .project-card,
  .project-card.featured {
    grid-column: span 6;
  }
}

@media (max-width: 640px) {
  .site-header,
  .site-footer {
    flex-direction: column;
  }

  .hero {
    padding-top: 3rem;
  }

  .project-card,
  .project-card.featured {
    grid-column: span 12;
  }
}
