:root {
  --bg: #0c0a14;
  --bg-alt: #15111f;
  --surface: #1e1a2c;
  --surface-2: #262036;
  --text: #eef0f2;
  --muted: #9a93aa;
  --accent: #8b5cf6;
  --accent-deep: #6d28d9;
  --accent-soft: #a78bfa;
  --gold: #f0b429;
  --border: #2d2740;
  --radius: 4px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent-soft); }

h1, h2, h3 {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow, .section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-soft);
  margin: 0 0 1rem;
}

.accent { color: var(--accent-soft); }
.gold { color: var(--gold); }
.muted { color: var(--muted); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 10, 20, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}
.brand-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.primary-nav { display: flex; gap: 28px; }
.primary-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
}
.primary-nav a.active,
.primary-nav a:hover { color: var(--accent-soft); }
.primary-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px; height: 40px;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(120px, 18vw, 220px) 0 clamp(100px, 14vw, 180px);
  background-color: #0c0a14;
  background-image:
    linear-gradient(180deg, rgba(12,10,20,0.70) 0%, rgba(12,10,20,0.55) 45%, rgba(12,10,20,0.92) 100%),
    radial-gradient(1000px 500px at 80% 10%, rgba(139, 92, 246, 0.35), transparent 60%),
    url('/assets/images/cad-clean.jpg');
  background-size: cover, auto, cover;
  background-position: center center, top right, center 30%;
  background-repeat: no-repeat;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.02) 0 2px,
      transparent 2px 14px
    );
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 780px; }
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: #d6d2e2;
  max-width: 640px;
  margin-bottom: 2rem;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  box-shadow: 0 6px 24px -8px rgba(139, 92, 246, 0.6);
}
.btn-primary:hover { transform: translateY(-1px); color: #fff; box-shadow: 0 10px 30px -8px rgba(139, 92, 246, 0.8); }
.btn-ghost { border-color: rgba(167, 139, 250, 0.35); color: var(--text); background: rgba(139, 92, 246, 0.08); }
.btn-ghost:hover { border-color: var(--accent-soft); color: var(--accent-soft); }

/* About */
.about { padding: clamp(60px, 9vw, 110px) 0; background: var(--bg-alt); position: relative; }
.about-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.about-text { max-width: 560px; }
.about-body { font-size: 1.1rem; color: #d6d2e2; }
.about-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px -20px rgba(109, 40, 217, 0.35);
  aspect-ratio: 3 / 2;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-image::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(12,10,20,0.4));
  pointer-events: none;
}

/* Stages */
.stages { padding: clamp(60px, 9vw, 110px) 0; }
.stage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 2rem;
}
.stage {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.stage:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(139, 92, 246, 0.5);
}
.stage-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
}
.stage-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stage-body { padding: 24px 24px 28px; }
.stage-num {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--accent-soft), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.25rem;
}
.stage h3 { margin-bottom: 0.5em; }
.stage p { color: var(--muted); margin: 0; }

/* Team section */
.team-section {
  padding: clamp(60px, 9vw, 110px) 0;
  background: var(--bg);
  position: relative;
  border-top: 1px solid var(--border);
}
.team-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.team-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px -20px rgba(109, 40, 217, 0.4);
  aspect-ratio: 16 / 10;
}
.team-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-text { max-width: 540px; }
.team-text p { color: #d6d2e2; }

/* CTA band */
.cta-band {
  padding: clamp(60px, 9vw, 100px) 0;
  background:
    linear-gradient(135deg, rgba(109, 40, 217, 0.88) 0%, rgba(60, 20, 130, 0.88) 100%),
    url('/assets/images/team-b.jpg');
  background-size: cover, cover;
  background-position: center, center 35%;
  background-blend-mode: multiply, normal;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.92); max-width: 620px; margin: 0 auto 2rem; }
.cta-band .btn-primary {
  background: #0c0a14;
  box-shadow: 0 6px 24px -8px rgba(0,0,0,0.6);
}
.cta-band .btn-primary:hover { background: #000; }

/* Page head */
.page-head {
  padding: clamp(60px, 10vw, 120px) 0 clamp(40px, 6vw, 60px);
  background:
    linear-gradient(180deg, rgba(12,10,20,0.75) 0%, rgba(12,10,20,0.95) 100%),
    radial-gradient(800px 300px at 30% 0%, rgba(139, 92, 246, 0.28), transparent 65%);
  border-bottom: 1px solid var(--border);
}

/* Contact */
.contact { padding: clamp(60px, 9vw, 100px) 0; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.contact-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.contact-card h2 { font-size: 1.6rem; }
.contact-direct { text-align: center; margin-top: 3rem; }
.email-big {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.email-big a {
  background: linear-gradient(135deg, var(--accent-soft), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Gallery */
.gallery { padding: clamp(40px, 8vw, 80px) 0 clamp(80px, 10vw, 120px); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.gallery-tile {
  margin: 0;
  aspect-ratio: 4 / 3;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.gallery-tile:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px -20px rgba(139, 92, 246, 0.5);
}
.gallery-tile img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.gallery-tile:hover img { transform: scale(1.04); }
.gallery-tile.tall { aspect-ratio: 3 / 4; grid-row: span 2; }
.gallery-tile.wide { aspect-ratio: 16 / 9; grid-column: span 2; }
@media (max-width: 700px) {
  .gallery-tile.tall, .gallery-tile.wide { aspect-ratio: 4 / 3; grid-row: auto; grid-column: auto; }
}

/* Footer */
.site-footer {
  background: #08070d;
  border-top: 1px solid var(--border);
  padding: 48px 0 36px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-inner p { margin: 0 0 0.35em; font-size: 0.92rem; }

/* Mobile */
@media (max-width: 860px) {
  .about-inner { grid-template-columns: 1fr; gap: 32px; }
  .team-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .primary-nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 12px;
    display: none;
  }
  .primary-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .brand-text { font-size: 1rem; }
  .hero { padding-top: clamp(80px, 14vw, 140px); padding-bottom: clamp(80px, 12vw, 140px); }
}
