/* ─────────────────────────────────────────────
   EZRA DAVE PRODUCTIONS — Design System
   ───────────────────────────────────────────── */

:root {
  --bg:          #0C0B09;
  --bg-2:        #141210;
  --bg-3:        #1C1A16;
  --gold:        #B8892A;
  --gold-light:  #D4A84B;
  --gold-dim:    rgba(184,137,42,0.15);
  --text:        #E8DCC8;
  --text-muted:  #7A6E60;
  --text-faint:  #3A3530;
  --border:      #2A2520;

  --nav-h:       72px;
  --section-gap: 140px;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul { list-style: none; }

::selection { background: var(--gold-dim); color: var(--gold-light); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

/* ── Container ── */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ─────────────────────────────────────────────
   REVEAL ANIMATIONS
   ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.22s; }
.reveal-delay-3 { transition-delay: 0.34s; }
.reveal-delay-4 { transition-delay: 0.46s; }

/* ─────────────────────────────────────────────
   NAVIGATION
   ───────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}

#nav.scrolled {
  background: rgba(12, 11, 9, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--border);
}

.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.8; }

.logo-icon {
  width: 40px;
  height: auto;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gold);
}
.logo-sub {
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Nav links */
.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}
.nav-link {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { transform: scaleX(1); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }

/* ─────────────────────────────────────────────
   HERO
   ───────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(184,137,42,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(184,137,42,0.04) 0%, transparent 60%),
    var(--bg);
}

/* Subtle grain overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
}

.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05em;
  margin-bottom: 56px;
}
.hero-title span {
  color: var(--text);
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 300;
}

.hero-cta {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 14px 36px;
  position: relative;
  overflow: hidden;
  transition: color 0.3s, border-color 0.3s;
}
.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
  z-index: -1;
}
.hero-cta:hover { color: var(--bg); border-color: var(--gold); }
.hero-cta:hover::before { transform: scaleX(1); }

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  z-index: 1;
  animation: scrollPulse 2.4s ease-in-out infinite;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(6px); }
}

/* ─────────────────────────────────────────────
   SECTION COMMON
   ───────────────────────────────────────────── */
.section-label {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text);
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}
.section-header .section-title { margin: 0; }

/* ─────────────────────────────────────────────
   WORK SECTION
   ───────────────────────────────────────────── */
#work {
  padding: var(--section-gap) 0;
}

/* Filters */
.work-filters {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.filter-btn {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 20px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.filter-btn:hover { color: var(--text); border-color: var(--text-faint); }
.filter-btn.active {
  color: var(--bg);
  background: var(--gold);
  border-color: var(--gold);
}

/* Grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
}

/* Cards */
.work-card {
  overflow: hidden;
  position: relative;
}
.work-card.hidden {
  display: none;
}

.card-link {
  display: block;
  position: relative;
  overflow: hidden;
}

/* Thumbnail */
.card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

/* Cinematic gradient placeholders */
.thumb-1  { background: linear-gradient(135deg, #0f0c05 0%, #2a1f08 40%, #1a1208 100%); }
.thumb-2  { background: linear-gradient(135deg, #050f12 0%, #0a2533 40%, #061820 100%); }
.thumb-3  { background: linear-gradient(135deg, #120808 0%, #2e1010 40%, #1a0808 100%); }
.thumb-4  { background: linear-gradient(135deg, #050508 0%, #12102a 40%, #080814 100%); }
.thumb-5  { background: linear-gradient(135deg, #080c05 0%, #1a2810 40%, #0f1a08 100%); }
.thumb-6  { background: linear-gradient(135deg, #0a0508 0%, #22101a 40%, #120810 100%); }
.thumb-7  { background: linear-gradient(135deg, #100c05 0%, #2e2008 40%, #1e1408 100%); }
.thumb-8  { background: linear-gradient(135deg, #06050f 0%, #14103a 40%, #080514 100%); }
.thumb-9  { background: linear-gradient(135deg, #050a0c 0%, #0e2028 40%, #081418 100%); }
.thumb-10 { background: linear-gradient(135deg, #0c0808 0%, #281818 40%, #180e0e 100%); }

/* Cinematic light streak on each thumb */
.card-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 70% 30%, rgba(184,137,42,0.12) 0%, transparent 70%);
  transition: opacity 0.4s ease;
}

/* Hover overlay */
.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 11, 9, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.card-link:hover .card-overlay { opacity: 1; }
.card-link:hover .card-thumb::before { opacity: 1.5; }

/* Gold border reveal on hover */
.card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.card-link:hover .card-thumb::after { opacity: 0.6; }

.play-icon, .expand-icon {
  width: 48px;
  height: 48px;
  color: var(--gold);
  filter: drop-shadow(0 0 20px rgba(184,137,42,0.4));
  transform: scale(0.8);
  transition: transform 0.4s var(--ease-out);
}
.card-link:hover .play-icon,
.card-link:hover .expand-icon {
  transform: scale(1);
}

/* Card info */
.card-info {
  padding: 18px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--border);
  transition: border-color 0.3s;
}
.card-link:hover .card-info { border-color: var(--gold); }

.card-cat {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text);
  transition: color 0.2s;
}
.card-link:hover .card-title { color: var(--gold-light); }

/* ─────────────────────────────────────────────
   ABOUT
   ───────────────────────────────────────────── */
#about {
  padding: var(--section-gap) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.about-image {
  position: relative;
}
.about-img-placeholder {
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, #1e1a10 0%, #2a220e 30%, #1a1408 100%);
  position: relative;
  overflow: hidden;
}
/* Film-look light leak */
.about-img-placeholder::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 60%;
  height: 40%;
  background: radial-gradient(ellipse at top right, rgba(184,137,42,0.18) 0%, transparent 70%);
}
.about-img-placeholder::after {
  content: 'Your Photo Here';
  position: absolute;
  bottom: 24px; left: 24px;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(184,137,42,0.4);
}
/* Offset decorative frame */
.about-img-frame {
  position: absolute;
  top: 20px; left: 20px; right: -20px; bottom: -20px;
  border: 1px solid var(--gold);
  opacity: 0.25;
  pointer-events: none;
  z-index: -1;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.about-text .section-title { margin-bottom: 28px; }
.about-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}
.about-services {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 28px 0 36px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}
.about-services li {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}
.about-services li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 8px;
  height: 1px;
  background: var(--gold);
  transform: translateY(-50%);
}

.btn-outline {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 14px 32px;
  position: relative;
  overflow: hidden;
  transition: color 0.3s;
}
.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
  z-index: -1;
}
.btn-outline:hover { color: var(--bg); }
.btn-outline:hover::before { transform: scaleX(1); }

/* ─────────────────────────────────────────────
   CONTACT
   ───────────────────────────────────────────── */
#contact {
  padding: var(--section-gap) 0;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 100px;
  align-items: start;
}

.contact-left .section-title { margin-bottom: 20px; }
.contact-body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}
.contact-details { margin-bottom: 32px; }
.contact-link {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  border-bottom: 1px solid rgba(184,137,42,0.3);
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.contact-link:hover { color: var(--gold-light); border-color: var(--gold-light); }

.social-links {
  display: flex;
  gap: 20px;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s;
}
.social-link svg { width: 18px; height: 18px; }
.social-link:hover { color: var(--gold); border-color: var(--gold); }

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 300;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-faint); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%237A6E60' stroke-width='1.5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}
.form-group select option { background: var(--bg-2); }

.btn-submit {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 16px 40px;
  background: var(--gold);
  color: var(--bg);
  font-weight: 500;
  align-self: flex-start;
  transition: background 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.btn-submit:hover { background: var(--gold-light); }
.btn-submit:active { transform: scale(0.98); }
.btn-submit.sending { opacity: 0.7; pointer-events: none; }

/* ─────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────── */
#footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-logo { color: var(--gold); transition: opacity 0.2s; }
.footer-logo:hover { opacity: 0.7; }
.footer-logo .logo-icon { width: 36px; }
.footer-copy {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}
.footer-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.footer-back svg { width: 18px; height: 18px; }
.footer-back:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-2px); }

/* ─────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --section-gap: 100px; }
  .container { padding: 0 28px; }
  .about-inner { gap: 60px; }
  .contact-inner { gap: 60px; }
}

@media (max-width: 768px) {
  :root { --section-gap: 80px; }
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }

  /* Mobile nav */
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: rgba(12,11,9,0.97);
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.35s ease, transform 0.35s var(--ease-out);
  }
  .nav-links.open {
    pointer-events: auto;
    opacity: 1;
    transform: none;
  }
  .nav-link { font-size: 1.2rem; letter-spacing: 0.2em; }

  /* Hero */
  .hero-title { font-size: clamp(3rem, 16vw, 5rem); }

  /* Work grid: single column */
  .work-grid { grid-template-columns: repeat(2, 1fr); gap: 3px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 24px; }

  /* About */
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-img-frame { display: none; }

  /* Contact */
  .contact-inner { grid-template-columns: 1fr; gap: 56px; }

  /* Footer */
  .footer-inner { flex-direction: column; text-align: center; gap: 16px; }
}

@media (max-width: 480px) {
  .logo-text { display: none; }
  .hero-title { gap: 0.02em; }
}
