/* ========================================
   BURNIN MEDIA — Main Stylesheet
   ======================================== */

:root {
  --bg: #0d0d0d;
  --bg-2: #141414;
  --bg-3: #1a1a1a;
  --surface: #1f1f1f;
  --border: #2a2a2a;
  --border-light: #333;
  --text: #e8e4dd;
  --text-muted: #888;
  --text-dim: #555;
  --ember: #f06a00;
  --ember-bright: #ff8c2a;
  --ember-dim: #7a3300;
  --ember-glow: rgba(240, 106, 0, 0.12);
  --ember-glow-sm: rgba(240, 106, 0, 0.06);
  --gold: #c8a86b;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-ui: 'Syne', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --radius: 4px;
  --radius-lg: 12px;
  --max-w: 1100px;
  --nav-h: 64px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
svg { display: block; }

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; }
h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
em { font-style: italic; color: var(--ember); }
.label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember);
  display: block;
  margin-bottom: 1rem;
}

/* ========================================
   LAYOUT
   ======================================== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}
.section {
  padding: 7rem 0;
  position: relative;
}
.section-header {
  margin-bottom: 4rem;
  max-width: 520px;
}
.section-header p {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}
.nav.scrolled {
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.logo em { font-style: normal; font-weight: 400; color: var(--ember); }
.logo-mark {
  color: var(--ember);
  font-size: 0.65rem;
  line-height: 1;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta {
  color: var(--ember);
  border: 1px solid var(--ember-dim);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.nav-links .nav-cta:hover {
  background: var(--ember);
  color: #000;
  border-color: var(--ember);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
}

/* ========================================
   HERO
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.ember-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.ember {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: ember-drift 12s ease-in-out infinite alternate;
}
.e1 { width: 420px; height: 420px; background: var(--ember); top: -80px; right: -60px; animation-delay: 0s; }
.e2 { width: 280px; height: 280px; background: #ff4500; bottom: 10%; left: 10%; animation-delay: -4s; opacity: 0.1; }
.e3 { width: 200px; height: 200px; background: var(--ember-bright); top: 40%; right: 20%; animation-delay: -8s; opacity: 0.08; }
.e4 { width: 150px; height: 150px; background: var(--gold); top: 20%; left: 40%; animation-delay: -6s; opacity: 0.06; }

@keyframes ember-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -40px) scale(1.08); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  padding-bottom: 4rem;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fade-up 0.8s 0.2s forwards;
}
.hero-headline {
  opacity: 0;
  animation: fade-up 0.9s 0.4s forwards;
  margin-bottom: 1.5rem;
}
.hero-sub {
  max-width: 560px;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.75;
  opacity: 0;
  animation: fade-up 0.9s 0.6s forwards;
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 0.9s 0.8s forwards;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 2rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  z-index: 1;
  opacity: 0;
  animation: fade-in 1s 1.4s forwards;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  to { opacity: 1; }
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ember);
  color: #000;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover {
  background: var(--ember-bright);
  transform: translateY(-1px);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.75rem 1.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
}
.btn-ghost:hover {
  border-color: var(--ember);
  color: var(--ember);
  transform: translateY(-1px);
}
.btn-sm {
  font-size: 0.8rem;
  padding: 0.5rem 1.1rem;
}

/* ========================================
   PROJECTS
   ======================================== */
.work { background: var(--bg); }
.work::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.project-card {
  background: var(--bg-2);
  padding: 2.5rem;
  position: relative;
  transition: background var(--transition);
}
.project-card:hover { background: var(--bg-3); }
.project-card.featured {
  grid-column: 1 / -1;
}
.project-card.slim { grid-column: 1 / -1; }

.project-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #000;
  background: var(--ember);
  padding: 0.25rem 0.65rem;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 1.5rem;
}
.project-badge.coming-soon {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.project-content {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}
.project-card.featured .project-content {
  gap: 3rem;
}
.project-card.slim .project-content {
  align-items: center;
}

.project-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
}
.project-icon svg { width: 100%; height: 100%; }

.project-text h3 {
  margin-bottom: 0.35rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.ext-link-icon { font-style: normal; font-size: 0.9rem; color: var(--text-dim); }
.project-tagline {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ember);
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
}
.project-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 1.2rem;
}
.project-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.project-features li {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.25rem 0.65rem;
  border-radius: 2px;
}
.project-status {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  font-style: italic;
}
.project-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ========================================
   SERVICES
   ======================================== */
.services {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.service-item {
  padding: 2.5rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-3);
  transition: background var(--transition);
  position: relative;
}
.service-item:hover { background: var(--surface); }
.service-item:nth-child(2n) { border-right: none; }
.service-item:nth-last-child(-n+2) { border-bottom: none; }

.service-number {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ember);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.service-item h3 {
  margin-bottom: 0.85rem;
  font-size: 1.25rem;
}
.service-item p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.75;
}

/* ========================================
   ABOUT
   ======================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 6rem;
  align-items: start;
}
.about-left h2 {
  margin-top: 1rem;
  font-size: clamp(2.5rem, 5vw, 4rem);
}
.about-right .about-lead {
  font-size: 1.15rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
  color: var(--text);
}
.about-right p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.about-links {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}
.link-underline {
  font-weight: 500;
  color: var(--ember);
  border-bottom: 1px solid var(--ember-dim);
  padding-bottom: 2px;
  transition: border-color var(--transition);
}
.link-underline:hover { border-color: var(--ember); }

/* ========================================
   CONTACT
   ======================================== */
.contact {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.contact-inner {
  max-width: 720px;
}
.contact-inner h2 { margin: 1rem 0 0.75rem; }
.contact-inner > p { color: var(--text-muted); margin-bottom: 2rem; font-size: 1rem; }
.contact-email {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 2vw, 1.25rem);
  color: var(--ember);
  border-bottom: 1px solid var(--ember-dim);
  padding-bottom: 2px;
  margin-bottom: 3rem;
  transition: border-color var(--transition);
}
.contact-email:hover { border-color: var(--ember); }
.contact-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.contact-option {
  background: var(--bg-3);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-option span {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.footer-logo .logo-mark { color: var(--ember); font-size: 0.6rem; }
.footer-copy {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
.footer-nav {
  display: flex;
  gap: 1.5rem;
}
.footer-nav a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--ember); }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-item:nth-child(2n) { border-right: 1px solid var(--border); }
  .service-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .service-item:last-child { border-bottom: none; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-options { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: 1; }
  .project-card.slim { grid-column: 1; }
  .project-content { flex-direction: column; gap: 1.5rem; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem 2rem;
    gap: 1.5rem;
  }
  .nav-toggle { display: block; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

@media (max-width: 480px) {
  .section { padding: 4rem 0; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
}
