:root {
  --bg: #08090d;
  --panel: #10131a;
  --panel-2: #121720;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f3f4f6;
  --muted: #a8b0bf;
  --soft: #d7dbe3;
  --accent: #9b87f5;
  --accent-2: #6d5ef3;
  --lime: #c4ff4d;
  --card: rgba(255, 255, 255, 0.03);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(109, 94, 243, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(155, 135, 245, 0.10), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}


/* =========================================================
   NAV
========================================================= */

.project-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(8, 9, 13, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}


/* =========================================================
   HERO
========================================================= */

.hero {
  padding: 72px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 42px;
  align-items: center;
}

.hero-kicker,
.section-kicker {
  display: inline-block;
  color: var(--lime);
  font-family: "DM Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 8px;
  font-family: "Fraunces", serif;
  font-size: clamp(3.8rem, 8vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 700;
}

.hero h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.22;
  color: var(--soft);
  font-weight: 600;
}

.hero-description {
  max-width: 690px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-meta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--soft);
  font-size: 0.84rem;
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 600;
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: white;
  border: 1px solid transparent;
  box-shadow: 0 16px 32px rgba(109, 94, 243, 0.25);
}

.button-secondary {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.hero-visual {
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* =========================================================
   ARTICLE STRIP
========================================================= */

.article-strip {
  padding: 16px 0 10px;
}

.article-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.article-chip {
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
}

.article-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.article-chip strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text);
}


/* =========================================================
   SECTIONS
========================================================= */

.content-section,
.metrics-section,
.gallery-section,
.project-cta {
  padding: 86px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head h2 {
  margin: 12px 0 0;
  font-family: "Fraunces", serif;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 600;
}


/* =========================================================
   OVERVIEW
========================================================= */

.overview-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 18px;
}

.overview-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
}

.overview-card-large {
  background:
    linear-gradient(180deg, rgba(155, 135, 245, 0.08), rgba(255,255,255,0.02));
}

.overview-card h3 {
  margin: 0 0 12px;
  font-size: 1.18rem;
}

.overview-card p {
  margin: 0 0 12px;
  color: var(--muted);
}


/* =========================================================
   METRICS
========================================================= */

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.metric-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.025));
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.65rem, 4vw, 2.7rem);
  line-height: 1;
  color: var(--accent);
}

.metric-card p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}


/* =========================================================
   ARCHITECTURE
========================================================= */

.architecture-flow {
  margin-bottom: 26px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 14px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
}

.flow-step {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,0.02);
}

.flow-step span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  font-family: "DM Mono", monospace;
  font-size: 0.8rem;
}

.flow-step h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.flow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.flow-arrow {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 1.4rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.feature-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}


/* =========================================================
   ROLE
========================================================= */

.role-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.role-copy {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(155,135,245,0.06), rgba(255,255,255,0.02));
}

.role-copy h2 {
  margin: 14px 0 16px;
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.role-copy p {
  color: var(--muted);
}

.role-tags {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.role-tags span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
  color: var(--soft);
  font-size: 0.84rem;
}

.role-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.role-item {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
}

.role-item strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1rem;
}

.role-item p {
  margin: 0;
  color: var(--muted);
}


/* =========================================================
   GALLERY
========================================================= */

.gallery-block + .gallery-block {
  margin-top: 40px;
}

.gallery-copy {
  margin-bottom: 18px;
}

.gallery-copy h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

.gallery-copy p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.image-grid {
  display: grid;
  gap: 16px;
}

.image-grid img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #0b0f16;
  box-shadow: var(--shadow);
}

.image-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.image-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}


/* =========================================================
   HIGHLIGHTS
========================================================= */

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.highlight-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
}

.highlight-card h3 {
  margin: 0 0 12px;
  font-size: 1.08rem;
}

.highlight-card p {
  margin: 0;
  color: var(--muted);
}


/* =========================================================
   CTA
========================================================= */

.cta-box {
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(109, 94, 243, 0.24), rgba(155, 135, 245, 0.08)),
    rgba(255,255,255,0.02);
  text-align: center;
}

.cta-box h2 {
  margin: 14px 0 14px;
  font-family: "Fraunces", serif;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 0.98;
}

.cta-box p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--soft);
}


/* =========================================================
   FOOTER
========================================================= */

.project-footer {
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {
  .hero-grid,
  .role-grid,
  .overview-grid,
  .article-strip-grid,
  .metrics-grid,
  .feature-grid,
  .highlights-grid {
    grid-template-columns: 1fr 1fr;
  }

  .architecture-flow {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    transform: rotate(90deg);
    min-height: 10px;
  }
}

@media (max-width: 780px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .nav-inner {
    min-height: 68px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-grid,
  .role-grid,
  .overview-grid,
  .article-strip-grid,
  .metrics-grid,
  .feature-grid,
  .highlights-grid,
  .role-list,
  .image-grid-2,
  .image-grid-3 {
    grid-template-columns: 1fr;
  }

  .cta-box {
    padding: 28px 22px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .content-section,
  .metrics-section,
  .gallery-section,
  .project-cta {
    padding: 64px 0;
  }
}