/* Claudia Bucher Productions — Portfolio
   Design: Cinematic dark, editorial elegant
   Typography: Playfair Display + Inter
   Colors: Deep black, warm gold accent
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&display=swap');

:root {
  --bg: #0A0A0A;
  --bg-elevated: #121212;
  --bg-card: #161616;
  --fg: #F5F2EC;
  --fg-muted: #8A8580;
  --fg-dim: #5A5650;
  --accent: #D4A574;
  --accent-hover: #E0B585;
  --accent-glow: rgba(212, 165, 116, 0.15);
  --border: rgba(245, 242, 236, 0.08);
  --border-hover: rgba(212, 165, 116, 0.3);
  --radius: 6px;
  --transition: 250ms cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* Focus states — keyboard accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Film grain overlay — signature element */
.film-grain {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 8s steps(10) infinite;
}

@keyframes grain-shift {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -5%); }
  20% { transform: translate(-10%, 5%); }
  30% { transform: translate(5%, -10%); }
  40% { transform: translate(-5%, 15%); }
  50% { transform: translate(-10%, 5%); }
  60% { transform: translate(15%, 0); }
  70% { transform: translate(0, 10%); }
  80% { transform: translate(-15%, 0); }
  90% { transform: translate(10%, 5%); }
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 10, 0);
  transition: background var(--transition), padding var(--transition), backdrop-filter var(--transition);
}

nav.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--fg);
  text-decoration: none;
}

.nav-brand em {
  color: var(--accent);
  font-style: italic;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color var(--transition);
  cursor: pointer;
  padding: 8px 0;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--fg);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}

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

/* Ambient glow behind hero text */
.hero-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
  opacity: 0;
  animation: fade-up 800ms cubic-bezier(0.16, 1, 0.3, 1) 200ms forwards;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--fg);
  opacity: 0;
  animation: fade-up 1000ms cubic-bezier(0.16, 1, 0.3, 1) 400ms forwards;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.hero-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 400;
  font-style: italic;
  color: var(--fg-muted);
  margin-bottom: 40px;
  line-height: 1.5;
  opacity: 0;
  animation: fade-up 1000ms cubic-bezier(0.16, 1, 0.3, 1) 600ms forwards;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  opacity: 0;
  animation: fade-up 1000ms cubic-bezier(0.16, 1, 0.3, 1) 800ms forwards;
  min-height: 52px;
}

.hero-cta:hover, .hero-cta:focus-visible {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.hero-cta svg {
  transition: transform var(--transition);
}

.hero-cta:hover svg {
  transform: translateX(4px);
}

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

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--fg-dim);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0;
  animation: fade-in 1000ms ease 1200ms forwards;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-indicator .line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--fg-dim));
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0%, 100% { transform: scaleY(0.3); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
}

@keyframes fade-in {
  to { opacity: 1; }
}

/* ===== PORTFOLIO ===== */
#portfolio {
  padding: 120px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  margin-bottom: 64px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.section-title em {
  font-style: italic;
  color: var(--accent);
}

.section-meta {
  font-size: 14px;
  color: var(--fg-dim);
  letter-spacing: 0.5px;
}

/* Filter chips */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}

.filter-chip {
  padding: 8px 20px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  cursor: pointer;
  border-radius: 100px;
  transition: all var(--transition);
  min-height: 36px;
  font-family: inherit;
}

.filter-chip:hover {
  color: var(--fg);
  border-color: var(--fg-muted);
}

.filter-chip.active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* Portfolio grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 32px;
}

.video-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--border-hover);
}

/* Video thumbnail (facade) */
.video-facade {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1), filter var(--transition);
  filter: brightness(0.75);
}

.video-card:hover .video-facade img {
  transform: scale(1.05);
  filter: brightness(0.9);
}

/* Play button overlay */
.play-button {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(10, 10, 10, 0.6);
  border: 2px solid rgba(245, 242, 236, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.video-card:hover .play-button {
  background: var(--accent);
  border-color: var(--accent);
  transform: translate(-50%, -50%) scale(1.1);
}

.play-button svg {
  width: 24px;
  height: 24px;
  fill: var(--fg);
  margin-left: 4px;
  transition: fill var(--transition);
}

.video-card:hover .play-button svg {
  fill: var(--bg);
}

/* Video info */
.video-info {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.video-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.video-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--fg);
  margin-bottom: 8px;
}

.video-description {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.video-date {
  font-size: 12px;
  color: var(--fg-dim);
  letter-spacing: 0.3px;
}

/* ===== ABOUT ===== */
#about {
  padding: 120px 32px;
  max-width: 800px;
  margin: 0 auto;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.about-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--fg);
  font-style: italic;
}

.about-text em {
  color: var(--accent);
  font-style: normal;
  font-weight: 500;
}

.about-bio {
  font-size: 17px;
  line-height: 1.8;
  color: var(--fg-muted);
}

.about-bio p {
  margin-bottom: 20px;
}

.about-stats {
  display: flex;
  gap: 48px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 600;
  color: var(--accent);
}

.stat-label {
  font-size: 13px;
  color: var(--fg-dim);
  letter-spacing: 0.5px;
}

/* ===== CONTACT ===== */
#contact {
  padding: 120px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-intro {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 400;
  line-height: 1.3;
  color: var(--fg);
}

.contact-intro em {
  font-style: italic;
  color: var(--accent);
}

.contact-channels {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 16px;
  transition: color var(--transition);
  padding: 8px 0;
  min-height: 44px;
}

.contact-channel:hover, .contact-channel:focus-visible {
  color: var(--accent);
}

.contact-channel svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--bg-elevated);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--fg-muted);
}

.form-group input,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 14px 16px;
  color: var(--fg);
  font-size: 15px;
  font-family: inherit;
  transition: border-color var(--transition);
  min-height: 48px;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  padding: 16px 32px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  min-height: 52px;
  font-family: inherit;
}

.form-submit:hover, .form-submit:focus-visible {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.form-submit:active {
  transform: translateY(0);
}

/* ===== FOOTER ===== */
footer {
  padding: 48px 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--fg-muted);
  margin-bottom: 8px;
}

.footer-brand em {
  color: var(--accent);
  font-style: italic;
}

.footer-copy {
  font-size: 13px;
  color: var(--fg-dim);
  letter-spacing: 0.3px;
}

/* ===== VIDEO MODAL ===== */
.video-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  transition: opacity var(--transition);
}

.video-modal.open {
  display: flex;
  opacity: 1;
}

.video-modal-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
}

.video-modal iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius);
}

.video-modal-close {
  position: absolute;
  top: -48px;
  right: 0;
  background: none;
  border: none;
  color: var(--fg);
  font-size: 28px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  transition: color var(--transition);
  min-width: 44px;
  min-height: 44px;
}

.video-modal-close:hover {
  color: var(--accent);
}

/* ===== EMPTY STATE ===== */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--fg-dim);
  font-style: italic;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  body { font-size: 16px; }

  nav { padding: 16px 20px; }
  nav.scrolled { padding: 12px 20px; }

  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-elevated);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transform: translateX(100%);
    transition: transform var(--transition);
    padding-top: 60px;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 18px;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #hero { padding: 100px 20px 60px; }
  .hero-glow { width: 400px; height: 300px; }

  #portfolio, #about, #contact {
    padding: 80px 20px;
  }

  .section-header { margin-bottom: 40px; }

  .video-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form { padding: 28px; }

  .about-stats { gap: 32px; }
}

@media (max-width: 375px) {
  #hero { padding: 80px 16px 40px; }
  #portfolio, #about, #contact { padding: 60px 16px; }
  .contact-form { padding: 20px; }
  .video-info { padding: 18px; }
  .video-title { font-size: 18px; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .film-grain { animation: none; }
  .scroll-indicator .line { animation: none; }
  .hero-eyebrow, .hero-title, .hero-subtitle, .hero-cta, .scroll-indicator {
    opacity: 1;
    animation: none;
  }
  .video-card:hover { transform: none; }
  .video-card:hover .video-facade img { transform: none; }
}