/* =====================
   CSS VARIABLES
===================== */
:root {
  --black: #0a0a0a;
  --dark: #111111;
  --dark-2: #1a1a1a;
  --mid: #2a2a2a;
  --border: #2e2e2e;
  --white: #f5f3ef;
  --off-white: #d4d0c8;
  --accent: #c8a96e;
  --accent-dark: #a8883e;
  --text-muted: #888880;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 4px;
  --max-width: 1200px;
}

/* =====================
   RESET & BASE
===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =====================
   LAYOUT
===================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* =====================
   HEADER
===================== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background var(--transition), border-color var(--transition);
}

#header.scrolled {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  color: var(--white);
}
.logo span { color: var(--accent); }

nav ul {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--off-white);
  transition: color var(--transition);
}
nav a:hover { color: var(--accent); }

.nav-cta {
  background: var(--accent);
  color: var(--black) !important;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 500;
  transition: background var(--transition) !important;
}
.nav-cta:hover { background: var(--accent-dark) !important; color: var(--black) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

.mobile-nav {
  display: none;
  background: rgba(10,10,10,0.97);
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
}
.mobile-nav ul { flex-direction: column; gap: 1rem; display: flex; }
.mobile-nav a {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--off-white);
  font-weight: 400;
}
.mobile-nav.open { display: block; }

/* =====================
   HERO
===================== */
#hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--dark-2);
  transform: scale(1.05);
  transition: transform 8s ease-out;
}
.hero-bg.loaded { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.4) 50%,
    rgba(0,0,0,0.85) 100%
  );
}

.hero-content {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  padding-top: 80px;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 9rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.hero-title .line {
  display: block;
  opacity: 0;
  animation: fadeUp 0.8s forwards;
}
.hero-title .line:nth-child(1) { animation-delay: 0.4s; }
.hero-title .line:nth-child(2) { animation-delay: 0.6s; }
.hero-title .accent { color: var(--accent); }

.hero-sub {
  max-width: 480px;
  font-size: 1rem;
  color: var(--off-white);
  line-height: 1.7;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 1s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.8rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--black);
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-stat-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  padding: 1.4rem 2rem;
  opacity: 0;
  animation: fadeIn 0.8s 1.2s forwards;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 3rem;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.3rem;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* =====================
   SECTION HEADER
===================== */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.03em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.section-header p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}
.section-header.light h2 { color: var(--white); }

/* =====================
   SERVICES
===================== */
#services {
  padding: 7rem 0;
  background: var(--black);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-card {
  background: var(--dark);
  padding: 2.5rem 2rem;
  transition: background var(--transition);
  position: relative;
}
.service-card:hover { background: var(--dark-2); }

.service-icon {
  width: 44px;
  height: 44px;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.service-icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 0.6rem;
}
.service-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.service-link {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  transition: opacity var(--transition);
}
.service-link:hover { opacity: 0.7; }

/* =====================
   PROJECTS
===================== */
#projects {
  padding: 7rem 0;
  background: var(--dark);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--dark-2);
  transition: transform var(--transition);
}
.project-card:hover { transform: translateY(-4px); }
.project-card.large {
  grid-column: span 2;
  grid-row: span 2;
}

.project-img {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  transition: opacity var(--transition);
}
.project-card.large .project-img { height: 100%; min-height: 380px; }

.project-info {
  padding: 1.25rem 1.5rem;
}
.project-card.large .project-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  padding: 3rem 2rem 1.75rem;
}

.project-type {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.4rem;
}
.project-info h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}
.project-card:not(.large) .project-info h3 { font-size: 1rem; }
.project-info p {
  font-size: 0.8rem;
  color: var(--off-white);
  line-height: 1.6;
}

/* =====================
   TEAM
===================== */
#team {
  padding: 7rem 0;
  background: var(--black);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.team-card {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.team-card:hover { border-color: var(--accent); }

.team-photo {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: var(--mid);
  position: relative;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  filter: grayscale(20%);
  transition: transform var(--transition), filter var(--transition);
}
.team-card:hover .team-photo img { transform: scale(1.04); filter: grayscale(0%); }

.team-photo.no-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--mid) 0%, var(--dark-2) 100%);
}

.team-info {
  padding: 1.5rem;
}
.team-info h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}
.team-role {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}
.team-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =====================
   FOOTER
===================== */
#contact {
  background: var(--dark);
  border-top: 1px solid var(--border);
}

.footer-top { padding: 5rem 0 3rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.4fr 0.8fr 1.2fr;
  gap: 3rem;
}

.footer-brand .logo { margin-bottom: 1rem; display: inline-block; }
.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.social-links { display: flex; gap: 0.75rem; }
.social-links a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--off-white);
  transition: all var(--transition);
}
.social-links a:hover { border-color: var(--accent); color: var(--accent); }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-col p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--accent); }

.contact-list { display: flex; flex-direction: column; gap: 1rem; }
.contact-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.contact-list svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}
.contact-list span {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.map-container {
  border-top: 1px solid var(--border);
  filter: grayscale(80%) brightness(0.7) contrast(1.1);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* =====================
   ANIMATIONS
===================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card.large { grid-column: span 2; }
}

@media (max-width: 768px) {
  nav { display: none; }
  .hamburger { display: flex; }

  .hero-stat-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .stat { padding: 1rem; }
  .stat-divider { display: none; }

  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.large { grid-column: span 1; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  .stat-num { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { text-align: center; justify-content: center; }
}