/* ============================================================
   MM25 — Cinematic Dark Theme
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0D0C0B;
  --bg-card:   #161412;
  --bg-mid:    #1A1714;
  --gold:      #E8C96A;
  --gold-dim:  #B89B45;
  --text:      #F5F0E8;
  --text-muted:#9A9089;
  --border:    #2A2420;
  --radius:    12px;
  --max-w:     1100px;
  --font:      'Manrope', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* --- Typography --- */
h1, h2, h3 { font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p  { font-size: clamp(0.95rem, 1.5vw, 1.05rem); color: var(--text-muted); }

a { color: inherit; text-decoration: none; }

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2.5rem;
  background: transparent;
  transition: background 0.4s, backdrop-filter 0.4s;
}

nav.scrolled {
  background: rgba(13,12,11,0.88);
  backdrop-filter: blur(12px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.nav-logo img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  border-radius: 6px;
}

.nav-logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--gold); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: #0D0C0B;
  border-color: var(--gold);
}

.btn-primary:hover {
  background: #f0d47e;
  border-color: #f0d47e;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(255,255,255,0.25);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

#grain-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* subtle vignette */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 0 2rem;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(232, 201, 106, 0.3);
  border-radius: 999px;
}

.hero-title {
  margin-bottom: 1.2rem;
  color: var(--text);
}

.hero-services {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: var(--gold-dim);
  font-weight: 600;
  letter-spacing: 0.14em;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: bounceY 2s ease-in-out infinite;
  z-index: 2;
}

@keyframes bounceY {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* ============================================================
   SECTION WRAPPER
   ============================================================ */
section {
  padding: 7rem 2.5rem;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.section-title {
  margin-bottom: 1rem;
  color: var(--text);
}

/* Fade-in on scroll */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   BIO SECTION
   ============================================================ */
#bio { background: var(--bg); }

.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.bio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.bio-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-4px);
}

.bio-card-img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  object-position: top;
  display: block;
  filter: grayscale(30%);
  transition: filter 0.4s;
}

.bio-card:hover .bio-card-img { filter: grayscale(0%); }

.bio-card-body { padding: 1.5rem 1.6rem; }

.bio-card-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.bio-card-role {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.bio-card-text {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.bio-philosophy {
  margin-top: 2rem;
  padding: 2.5rem 3rem;
  background: var(--bg-mid);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
}

.bio-philosophy blockquote {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  line-height: 1.55;
  color: var(--text);
  max-width: 720px;
}

.bio-philosophy blockquote::before { content: "\201C"; color: var(--gold); }
.bio-philosophy blockquote::after  { content: "\201D"; color: var(--gold); }

/* ============================================================
   WORK SECTION
   ============================================================ */
#work { background: var(--bg-mid); }

.work-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.carousel-nav {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.carousel-btn:hover { border-color: var(--gold); color: var(--gold); }
.carousel-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.carousel-btn svg { width: 16px; height: 16px; pointer-events: none; }

.carousel-track-wrap {
  overflow: hidden;
  border-radius: var(--radius);
}

.carousel-track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.carousel-track.dragging {
  transition: none;
  cursor: grabbing;
}

.video-card {
  flex: 0 0 calc((100% - 2.5rem) / 3);
  min-width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.3s, transform 0.3s;
}

.video-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-4px);
}

.video-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-color: var(--gold);
}

.video-card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.video-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.video-card:hover .video-card-thumb img { transform: scale(1.05); }

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13,12,11,0.4);
  transition: background 0.3s;
}

.video-card:hover .play-overlay { background: rgba(13,12,11,0.2); }

.play-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(232,201,106,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s;
}

.video-card:hover .play-icon { transform: scale(1.12); }

.play-icon svg {
  width: 18px;
  height: 18px;
  fill: #0D0C0B;
  margin-left: 3px;
}

.video-card-body { padding: 1.1rem 1.2rem 1.3rem; }

.video-card-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.video-card-desc {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.8rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}

.dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.93);
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

#lightbox.open { display: flex; }

.lightbox-inner {
  position: relative;
  width: 100%;
  max-width: 960px;
}

.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  font-size: 0.85rem;
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.6;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-video-wrap {
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}

.lightbox-video-wrap video {
  width: 100%;
  height: 100%;
  display: block;
}

.lightbox-meta { margin-top: 1rem; }
.lightbox-meta h3 { color: var(--text); margin-bottom: 0.3rem; font-size: 1.1rem; }
.lightbox-meta p  { font-size: 0.88rem; }

/* ============================================================
   CONTACT SECTION
   ============================================================ */
#contact { background: var(--bg); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
  margin-top: 3rem;
}

.contact-info p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-size: 0.95rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.contact-detail svg {
  width: 15px;
  height: 15px;
  color: var(--gold);
  flex-shrink: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s;
  outline: none;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #3A3430; }

.form-group input:focus,
.form-group textarea:focus { border-color: var(--gold-dim); }

.form-group textarea { min-height: 150px; }

.form-status {
  font-size: 0.88rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  display: none;
  line-height: 1.5;
}

.form-status.success {
  display: block;
  background: rgba(100,200,120,0.1);
  border: 1px solid rgba(100,200,120,0.3);
  color: #6DC87E;
}

.form-status.error {
  display: block;
  background: rgba(220,100,100,0.1);
  border: 1px solid rgba(220,100,100,0.3);
  color: #DC6464;
}

.honeypot { display: none !important; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: 2rem 2.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy { font-size: 0.82rem; color: var(--text-muted); }

.footer-email {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-email:hover { color: var(--gold); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  section { padding: 5rem 1.5rem; }

  .bio-grid { grid-template-columns: 1fr; }

  .video-card { flex: 0 0 80vw; }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .work-header { flex-direction: column; align-items: flex-start; }
  .bio-philosophy { padding: 1.8rem; }
  footer { flex-direction: column; align-items: flex-start; }
}
