/* ==========================================================
   JEFFREY T. BROWN — CINEMATOGRAPHER PORTFOLIO
   STYLE: FULL-BLEED CINEMA SHOWCASE (LITTLE MINX INSPIRED)
   ========================================================== */
:root{
  --bg:        #0c0b0a;
  --bg-panel:  #161410;
  --fg:        #f3efe6;
  --muted:     #9c9587;
  --accent:    #c9973f;   /* tungsten / amber */
  --line:      rgba(243,239,230,0.14);
  --line-soft: rgba(243,239,230,0.08);

  --serif: 'Cinzel', 'Fraunces', Georgia, serif;
  --sans:  'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --nav-h: 76px;
  --gutter: clamp(20px, 4vw, 56px);

  /* Dynamic Style Variables */
  --hero-title-size: clamp(52px, 8vw, 104px);
  --hero-text-opacity: 1;
  --hero-overlay: 0.35;
  --project-height: 80vh;
}

*{ box-sizing: border-box; margin: 0; padding: 0; }

html{
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body{
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

a{ color: inherit; text-decoration: none; }
h1, h2, h3{ font-family: var(--serif); font-weight: 450; }
p{ margin: 0 0 1em; color: var(--muted); }
ul{ list-style: none; }
img{ max-width: 100%; display: block; }

:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ==========================================================
   HEADER / NAVIGATION
   ========================================================== */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  z-index: 100;
  background: linear-gradient(to bottom, rgba(12,11,10,0.92) 0%, rgba(12,11,10,0) 100%);
  backdrop-filter: blur(8px);
}
.logo{
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.06em;
  color: #fff;
  text-transform: uppercase;
}
.site-nav{
  display: flex;
  gap: clamp(20px, 3.5vw, 44px);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-nav a{
  color: var(--fg);
  opacity: 0.8;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.site-nav a:hover{
  opacity: 1;
  color: var(--accent);
}
.nav-toggle{
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span{
  width: 22px;
  height: 1px;
  background: var(--fg);
  transition: transform 0.2s ease;
}

/* ==========================================================
   HERO (FULL-WIDTH, NAME OVERLAYED DIRECTLY ON IMAGE)
   ========================================================== */
.hero{
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding: var(--nav-h) var(--gutter) 40px;
}
.hero-media{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.hero-media img,
.hero-media video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.hero-media::after{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(12,11,10, var(--hero-overlay, 0.35)) 0%,
    rgba(12,11,10, calc(var(--hero-overlay, 0.35) + 0.35)) 100%
  );
  z-index: 2;
}
.hero-content{
  position: relative;
  z-index: 10;
  max-width: 960px;
  margin: auto;
  padding: 0 var(--gutter);
}
.hero-eyebrow{
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.9);
  opacity: var(--hero-text-opacity, 1);
}
.hero-title{
  font-family: var(--serif);
  font-size: var(--hero-title-size, clamp(52px, 8vw, 104px));
  line-height: 1.02;
  color: #fff;
  margin: 0 0 18px;
  text-shadow: 0 4px 32px rgba(0,0,0,0.95), 0 2px 10px rgba(0,0,0,0.95);
  opacity: var(--hero-text-opacity, 1);
  letter-spacing: 0.02em;
}
.hero-sub{
  font-size: clamp(16px, 2vw, 22px);
  color: var(--fg);
  margin: 0 auto;
  max-width: 52ch;
  text-shadow: 0 2px 18px rgba(0,0,0,0.95);
  opacity: calc(var(--hero-text-opacity, 1) * 0.9);
}
.scroll-cue{
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.scroll-cue:hover{
  color: #fff;
  border-color: #fff;
}

/* ==========================================================
   REEL & PROJECTS: FULL PAGE WIDTH (LITTLE MINX STYLE)
   ========================================================== */
.reel{
  width: 100%;
  margin: 0;
  padding: 0;
}

.project{
  position: relative;
  width: 100%;
  height: var(--project-height, 80vh);
  min-height: 480px;
  max-height: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
  border-bottom: 1px solid rgba(243,239,230,0.06);
}

.project-media{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.project-media video,
.project-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #000;
}

/* Ambient dark overlay over video so text is crystal clear */
.project-media::after{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12,11,10, 0.35);
  transition: background 0.4s ease;
  z-index: 2;
}
.project:hover .project-media::after{
  background: rgba(12,11,10, 0.2);
}

/* Floating Centered Project Title & Director Overlay */
.project-caption{
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 var(--gutter);
  max-width: 900px;
  margin: 0 auto;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.project-index{
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-shadow: 0 2px 10px rgba(0,0,0,0.9);
  margin-bottom: 10px;
  display: block;
}

.project-title{
  font-family: var(--serif);
  font-size: clamp(34px, 5.5vw, 76px);
  line-height: 1.05;
  color: #ffffff;
  text-shadow: 0 4px 30px rgba(0,0,0,0.95), 0 2px 10px rgba(0,0,0,0.95);
  margin: 0 0 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.project-meta{
  font-size: clamp(14px, 1.6vw, 18px);
  color: rgba(243, 239, 230, 0.9);
  letter-spacing: 0.05em;
  text-shadow: 0 2px 16px rgba(0,0,0,0.95);
  margin: 0;
}

/* Fallback placeholder */
.placeholder-media{
  background: repeating-linear-gradient(135deg, var(--bg-panel) 0 2px, #131108 2px 4px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.placeholder-label{
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 2px;
  background: rgba(14,13,11,0.6);
  pointer-events: none;
}

/* ==========================================================
   CONTENT CONTAINER FOR STILLS, ABOUT & CONTACT
   ========================================================== */
.content-container{
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  box-sizing: border-box;
}

/* ==========================================================
   STILLS
   ========================================================== */
.stills{
  padding: clamp(70px, 9vw, 130px) 0;
  border-top: 1px solid var(--line-soft);
}
.section-head{
  max-width: 60ch;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head h2{
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.stills-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 24px);
}
.still{
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.still img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.still:hover img{
  transform: scale(1.03);
}

/* ==========================================================
   ABOUT
   ========================================================== */
.about{
  padding: clamp(70px, 9vw, 130px) 0;
  border-top: 1px solid var(--line-soft);
}
.about-grid{
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.about-portrait{
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
}
.about-portrait img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-copy h2{
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pull-quote{
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--fg);
  line-height: 1.35;
  max-width: 36ch;
  margin-bottom: 28px;
  border-left: 2px solid var(--accent);
  padding-left: 18px;
}
.about-copy p:not(.pull-quote){
  max-width: 65ch;
  line-height: 1.65;
}
.credits{
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.credits h3{
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.credits li{
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
}
.credits li:first-child{ border-top: none; }
.credits li span:first-child{ color: var(--fg); font-weight: 500; }
.credits li span:last-child{ color: var(--muted); }

/* ==========================================================
   CONTACT
   ========================================================== */
.contact{
  padding: clamp(56px, 8vw, 100px) 0 40px;
  border-top: 1px solid var(--line-soft);
}
.contact-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 40px);
  margin-bottom: clamp(48px, 8vw, 88px);
}
.contact h2{
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.contact h3{
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  font-family: var(--sans);
  font-weight: 600;
}
.contact a:hover{
  color: var(--accent);
}
.fine-print{
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
  padding-top: 20px;
  margin: 0;
}

/* ==========================================================
   MOBILE & RESPONSIVE
   ========================================================== */
@media (max-width: 860px){
  .site-nav{
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(12,11,10,0.98);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .site-nav.is-open{ max-height: 320px; }
  .site-nav a{
    padding: 16px var(--gutter);
    border-top: 1px solid var(--line-soft);
  }
  .nav-toggle{ display: flex; }
  .about-grid{ grid-template-columns: 1fr; }
  .about-portrait{ position: static; max-width: 320px; }
  .stills-grid{ grid-template-columns: repeat(2, 1fr); }
  .contact-grid{ grid-template-columns: 1fr; }
  .project{ height: 60vh; min-height: 380px; }
}
