/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
  --bg: #ffffff;
  --bg-alt: #f7f7f7;
  --bg-card: #f2f2f2;
  --text: #111111;
  --text-muted: #999999;
  --accent: #111111;
  --accent-hover: #333333;
  --border: #e8e8e8;
  --nav-bg: rgba(255,255,255,0.96);
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --radius: 4px;
  --font: 'Inter', sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --max-width: 1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===========================
   Navigation — Left Sidebar
   =========================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 180px;
  height: 100vh;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 48px 28px;
}

.nav-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
}

.nav-logo {
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 40px;
  line-height: 1.4;
}
.nav-logo:hover { color: var(--accent); }

.nav-tagline {
  display: block;
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
}

.mobile-tagline-bar {
  display: none;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text);
}

/* Push main content to the right of sidebar */
body > *:not(nav) {
  margin-left: 180px;
}

.hero { display: none !important; }

/* ===========================
   Hero
   =========================== */
.hero {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 32px;
  position: relative;
}

.hero-inner {
  max-width: 800px;
  position: relative;
}

.hero-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero h1 {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 20px;
  color: var(--text);
}

.hero p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.8;
  letter-spacing: 0.06em;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: #ffffff;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-2px); color: #ffffff; }

.btn-outline {
  background: transparent;
  border: 1px solid #333;
  color: var(--text-muted);
  margin-left: 12px;
}
.btn-outline:hover { border-color: var(--text-muted); color: var(--text); background: transparent; transform: translateY(-2px); }

/* ===========================
   Page Layout
   =========================== */
.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 32px;
}

.page-header {
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-family: 'Raleway', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ===========================
   Video Gallery
   =========================== */
.gallery-section {
  padding: 72px 32px;
}

.section-title {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2px;
}

.video-grid--films {
  grid-template-columns: repeat(2, 1fr);
}

.video-grid--vertical {
  grid-template-columns: repeat(3, 1fr);
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  gap: 0;
}

.video-grid--vertical .video-thumb {
  padding-top: 177.78%; /* 9:16 portrait ratio */
}

@media (max-width: 768px) {
  .video-grid--vertical {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }
}

.video-card {
  background: var(--bg-card);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}


.video-card:hover .video-info { opacity: 1; }
.video-card:hover .play-overlay { opacity: 1; }

.video-thumb {
  position: relative;
  padding-top: 56.25%;
  background: #0d0d0d;
  overflow: hidden;
}

.video-thumb video,
.video-thumb iframe,
.video-thumb img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border: none;
  transition: transform 0.4s ease;
  transform: scale(1.04);
}

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

.play-overlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 60px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

.play-overlay svg { margin-left: 5px; }

.video-info {
  padding: 16px 18px;
  opacity: 0;
  transition: opacity 0.25s;
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  padding: 40px 18px 18px;
}

.video-info h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: #ffffff;
}

.video-info p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
}

/* Video modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: #000;
  width: 100%;
  max-width: 920px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  opacity: 0.6;
  transition: opacity 0.15s;
}
.modal-close:hover { opacity: 1; }

.modal-video {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
}
.modal-video video,
.modal-video iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ===========================
   About Page
   =========================== */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}

.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  border: 1px solid var(--border);
}
.about-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.about-content h2 {
  font-family: 'Raleway', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: var(--text);
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.8;
  font-size: 1rem;
}
.about-content p:last-of-type { margin-bottom: 0; }

.skills { margin-top: 36px; }

.skills h3 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  display: inline-block;
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ===========================
   Contact Page
   =========================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 72px;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.75;
  font-size: 0.95rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.contact-detail svg { flex-shrink: 0; color: var(--accent); }
.contact-detail a { color: var(--text-muted); }
.contact-detail a:hover { color: var(--text); }

.contact-form .form-group { margin-bottom: 20px; }

.contact-form label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-alt);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.contact-form select option { background: var(--bg-alt); }

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,197,71,0.08);
}

.contact-form textarea { resize: vertical; min-height: 130px; }

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(150,150,150,0.5); }

.form-success {
  display: none;
  padding: 16px;
  background: rgba(232,197,71,0.08);
  border: 1px solid rgba(232,197,71,0.3);
  border-radius: 4px;
  color: var(--accent);
  font-size: 0.9rem;
  margin-top: 12px;
}

/* ===========================
   Footer
   =========================== */
footer {
  border-top: 1px solid var(--border);
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
  body { display: block; }

  nav {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0;
    flex-direction: row;
  }

  .nav-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 56px;
  }

  .nav-logo { margin-bottom: 0; }
  .nav-tagline { display: none; }

  .mobile-tagline-bar {
    display: block;
    text-align: center;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 10px 24px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 56px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px 24px;
    gap: 20px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  body > *:not(nav) { margin-left: 0; }
  .hero { display: flex; }

  .hero { min-height: 20vh; padding: 24px; }
  .hero h1 { font-size: 1.6rem; }

  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { max-width: 180px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .video-grid { grid-template-columns: 1fr; gap: 1px; }
  .video-info { opacity: 1; }
  .play-overlay { opacity: 1; }

  .btn-outline { margin-left: 0; margin-top: 12px; display: block; text-align: center; }

  .page { padding: 48px 24px; }
  .gallery-section { padding: 48px 24px; }
}
