*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-dark: #0e0e0e;
  --bg-panel: #161616;
  --bg-card: #1c1c1c;
  --steel: #2a2a2a;
  --steel-light: #3a3a3a;
  --silver: #a8a8a8;
  --text: #e0ddd8;
  --text-muted: #7a7672;
  --amber: #e8731a;
  --amber-glow: #ff8c2a;
  --amber-deep: #c45a0a;
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Barlow', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-dark);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ─── GRAIN OVERLAY ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

/* ─── NAV ─── */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 3rem; background: rgba(14,14,14,0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--steel); transition: background 0.3s; }
.nav-brand { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text); }
.nav-brand span { color: var(--amber); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { font-family: var(--font-body); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); text-decoration: none; transition: color 0.3s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--amber); transition: width 0.3s; }
.nav-links a:hover { color: var(--amber); }
.nav-links a:hover::after { width: 100%; }

/* ─── HERO ─── */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 8rem 3rem 4rem; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; opacity: 0.04; background-image: repeating-linear-gradient(45deg, var(--silver) 0, var(--silver) 1px, transparent 1px, transparent 20px), repeating-linear-gradient(-45deg, var(--silver) 0, var(--silver) 1px, transparent 1px, transparent 20px); }
.hero::after { content: ''; position: absolute; top: 20%; right: -10%; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(232,115,26,0.12) 0%, transparent 70%); pointer-events: none; }
.hero-eyebrow { font-family: var(--font-body); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--amber); margin-bottom: 1.5rem; display: flex; align-items: center; gap: 1rem; opacity: 0; animation: slideUp 0.8s ease-out 0.3s forwards; }
.hero-eyebrow::before { content: ''; width: 40px; height: 2px; background: var(--amber); }
.hero-title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; line-height: 0.92; letter-spacing: -0.02em; position: relative; z-index: 1; }
.hero-title .line { display: block; opacity: 0; animation: slideUp 0.8s ease-out forwards; }
.hero-title .line:nth-child(1) { font-size: clamp(3rem,8vw,7rem); animation-delay: 0.5s; color: var(--text); }
.hero-title .line:nth-child(2) { font-size: clamp(3rem,8vw,7rem); animation-delay: 0.7s; color: var(--amber); }
.hero-title .line:nth-child(3) { font-size: clamp(1.5rem,3.5vw,3rem); animation-delay: 0.9s; color: var(--text-muted); font-weight: 400; letter-spacing: 0.05em; margin-top: 0.5rem; }
.hero-stats { display: flex; gap: 3rem; margin-top: 3.5rem; position: relative; z-index: 1; opacity: 0; animation: slideUp 0.8s ease-out 1.2s forwards; }
.hero-stat { border-left: 2px solid var(--steel-light); padding-left: 1.2rem; }
.hero-stat-number { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--amber); line-height: 1; }
.hero-stat-label { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-top: 0.3rem; }
.hero-cta { margin-top: 3rem; display: flex; gap: 1.5rem; opacity: 0; animation: slideUp 0.8s ease-out 1.4s forwards; position: relative; z-index: 1; }

/* ─── BUTTONS ─── */
.btn { font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; padding: 1rem 2.5rem; border: none; cursor: pointer; text-decoration: none; transition: all 0.3s; display: inline-flex; align-items: center; gap: 0.6rem; }
.btn-primary { background: var(--amber); color: var(--bg-dark); }
.btn-primary:hover { background: var(--amber-glow); box-shadow: 0 0 30px rgba(232,115,26,0.3); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--steel-light); }
.btn-outline:hover { border-color: var(--amber); color: var(--amber); }

/* ─── SECTION COMMONS ─── */
.section-tag { font-family: var(--font-body); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--amber); display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.section-tag::before { content: ''; width: 30px; height: 1px; background: var(--amber); }
.section-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.1; margin-bottom: 1.5rem; }

/* ─── SERVICES ─── */
.services { padding: 6rem 3rem; position: relative; }
.services-header { max-width: 600px; margin-bottom: 4rem; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.service-card { background: var(--bg-panel); border: 1px solid var(--steel); padding: 2.5rem 2rem; position: relative; overflow: hidden; transition: all 0.4s; opacity: 0; transform: translateY(30px); }
.service-card.visible { opacity: 1; transform: translateY(0); }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--amber), transparent); transform: scaleX(0); transform-origin: left; transition: transform 0.4s; }
.service-card:hover { border-color: var(--steel-light); transform: translateY(-4px); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 48px; height: 48px; border: 1px solid var(--steel-light); display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; color: var(--amber); font-size: 1.3rem; }
.service-card h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.8rem; }
.service-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* ─── ABOUT ─── */
.about { padding: 6rem 3rem; background: var(--bg-panel); position: relative; overflow: hidden; }
.about::before { content: ''; position: absolute; bottom: -200px; left: -200px; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(232,115,26,0.06) 0%, transparent 70%); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; max-width: 1200px; }
.about-text p { font-size: 1rem; color: var(--silver); margin-bottom: 1.5rem; line-height: 1.8; }
.about-features { display: grid; gap: 1.5rem; }
.about-feature { display: flex; gap: 1.2rem; align-items: flex-start; opacity: 0; transform: translateX(30px); }
.about-feature.visible { opacity: 1; transform: translateX(0); transition: all 0.5s ease-out; }
.about-feature-icon { flex-shrink: 0; width: 40px; height: 40px; background: var(--bg-dark); border: 1px solid var(--steel); display: flex; align-items: center; justify-content: center; color: var(--amber); font-size: 1rem; }
.about-feature h4 { font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.3rem; }
.about-feature p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ─── PROJECTS ─── */
.projects { padding: 6rem 3rem; position: relative; overflow: hidden; }
.projects::before { content: ''; position: absolute; top: -150px; right: -150px; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(232,115,26,0.06) 0%, transparent 70%); pointer-events: none; }
.projects-header { max-width: 600px; margin-bottom: 4rem; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.project-card { background: var(--bg-panel); border: 1px solid var(--steel); overflow: hidden; transition: all 0.4s; opacity: 0; transform: translateY(30px); }
.project-card.visible { opacity: 1; transform: translateY(0); }
.project-card:hover { border-color: var(--steel-light); transform: translateY(-4px); }
.project-card-img { width: 100%; height: 200px; background: var(--bg-card); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.project-card-img img { width: 100%; height: 100%; object-fit: cover; }
.project-card-body { padding: 1.8rem 1.5rem; }
.project-card-tag { font-family: var(--font-body); font-size: 0.65rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--amber); margin-bottom: 0.6rem; display: inline-block; }
.project-card-body h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.7rem; line-height: 1.3; }
.project-card-body p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; }
.project-card-footer { padding: 0 1.5rem 1.5rem; display: flex; align-items: center; gap: 0.6rem; font-size: 0.72rem; color: var(--steel-light); letter-spacing: 0.08em; text-transform: uppercase; }
.project-card-footer::before { content: ''; width: 16px; height: 1px; background: var(--steel-light); }

/* ─── CONTACT ─── */
.contact { padding: 6rem 3rem; position: relative; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; max-width: 1200px; }
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item-icon { flex-shrink: 0; width: 44px; height: 44px; border: 1px solid var(--steel); display: flex; align-items: center; justify-content: center; color: var(--amber); font-size: 1.1rem; }
.contact-item h4 { font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.3rem; }
.contact-item p, .contact-item a { font-size: 0.9rem; color: var(--silver); text-decoration: none; line-height: 1.6; }
.contact-item a:hover { color: var(--amber); }
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-form input, .contact-form textarea { font-family: var(--font-body); font-size: 0.9rem; padding: 1rem 1.2rem; background: var(--bg-panel); border: 1px solid var(--steel); color: var(--text); outline: none; transition: border-color 0.3s; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--amber); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .btn-primary { align-self: flex-start; }

/* ─── FOOTER ─── */
footer { padding: 2.5rem 3rem; border-top: 1px solid var(--steel); display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; color: var(--text-muted); letter-spacing: 0.05em; }
footer a { color: var(--amber); text-decoration: none; }

/* ─── ANIMATIONS ─── */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .hero { padding: 7rem 1.5rem 3rem; }
  .hero-stats { flex-direction: column; gap: 1.5rem; }
  .services, .about, .contact, .projects { padding: 4rem 1.5rem; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .services-grid, .projects-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 0.8rem; text-align: center; }
}