:root {
  --bg: #f7f5f0;
  --bg-alt: #f0ede4;
  --text: #131311;
  --text-dim: #6f6c62;
  --accent: #6a3ff2;
  --border: #ddd8c9;
  --line: #131311;
  --radius: 4px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.nav-logo, .brand-word, .brand-tag {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--accent);
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(247,245,240,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: var(--text);
  color: var(--bg);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
}
.nav-cta:hover { background: var(--accent); color: #fff; }
.nav-burger { display: none; }

/* ---------- HERO ---------- */
.hero {
  padding: 150px 24px 90px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand-mark { text-align: center; margin-bottom: 36px; }
.brand-word {
  font-size: clamp(3.5rem, 12vw, 8rem);
  letter-spacing: 0.03em;
  line-height: 1;
}
.brand-tag {
  margin-top: 14px;
  font-size: clamp(0.85rem, 1.6vw, 1.1rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.brand-tag span { color: var(--accent); }

.hero-rule {
  width: 64px;
  height: 3px;
  background: var(--accent);
  margin: 0 auto 56px;
}

.hero-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 22px;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 40px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-full { width: 100%; text-align: center; border: none; cursor: pointer; }

/* ---------- SECTIONS ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 100px 24px;
}
.section-alt { background: var(--bg-alt); max-width: none; }
.section-alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 14px; }
.section-sub { color: var(--text-dim); font-size: 1.05rem; margin-top: 14px; }

/* ---------- PROJECTS ---------- */
.projects { display: flex; flex-direction: column; }
.project {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--border);
}
.project:first-child { border-top: none; }
.project:nth-child(even) { direction: rtl; }
.project:nth-child(even) > * { direction: ltr; }

.project-index {
  position: absolute;
  top: 56px;
  left: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.project-media {
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.project-video { width: 100%; display: block; aspect-ratio: 16/10; object-fit: cover; }

.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.project-gallery img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ---------- HOW IT WORKS ---------- */
.steps { display: flex; flex-direction: column; }
.step-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding: 36px 0;
  border-top: 1px solid var(--border);
}
.step-row:last-child { border-bottom: 1px solid var(--border); }
.step-index {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--border);
}
.step-body h3 { font-size: 1.3rem; margin-bottom: 10px; }
.step-body p { color: var(--text-dim); max-width: 520px; }

/* ---------- SECTORS ---------- */
.sectors {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
}
.sector-featured {
  border-top: 2px solid var(--line);
  padding-top: 24px;
}
.sector-featured h3 { font-size: 1.8rem; margin: 8px 0 14px; }
.sector-featured p:last-child { color: var(--text-dim); }
.sector-featured .sector-status { color: var(--accent); }

.sectors-list { display: flex; flex-direction: column; }
.sector-item {
  padding: 22px 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  align-items: start;
}
.sector-item:last-child { border-bottom: 1px solid var(--border); }
.sector-item h4 { font-size: 1.1rem; margin-bottom: 6px; }
.sector-item p:not(.sector-status) { color: var(--text-dim); font-size: 0.95rem; }

.sector-status {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---------- TEAM ---------- */
.team-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.team-entry {
  padding: 32px 40px 32px 0;
  border-top: 2px solid var(--line);
}
.team-entry:last-child { padding-left: 40px; padding-right: 0; border-left: 1px solid var(--border); }
.team-entry h3 { font-size: 1.8rem; }
.team-role { color: var(--accent); font-size: 0.9rem; font-weight: 600; margin-top: 8px; }

/* ---------- CONTACT ---------- */
.contact-section { max-width: 720px; }
.contact-email {
  display: inline-block;
  margin-top: 18px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
}
.contact-email:hover { text-decoration: underline; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-dim); }
.form-field input, .form-field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 8px 2px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-note { font-size: 0.8rem; color: var(--text-dim); text-align: center; }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--border); padding: 40px 24px; }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.footer-inner .nav-logo { font-size: 1.1rem; }
.footer-email:hover { color: var(--accent); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 62px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 18px;
    transform: translateY(-130%);
    transition: transform 0.25s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
  }
  .nav-burger span { width: 22px; height: 2px; background: var(--text); display: block; }

  .project, .project:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .project-index { position: static; display: block; margin-bottom: 16px; }
  .sectors { grid-template-columns: 1fr; }
  .team-list { grid-template-columns: 1fr; }
  .team-entry:last-child { padding-left: 0; border-left: none; margin-top: 8px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .project-gallery { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 72px 20px; }
  .sector-item { grid-template-columns: 1fr; gap: 6px; }
  .step-row { grid-template-columns: 60px 1fr; }
}
