/* ============================================================
   ON THE FLY PRODUCTIONS — shared stylesheet
   Design tokens:
   Ink        #0B0B0C  (near-black — nav/footer/dark sections)
   Paper      #F6F5F1  (warm off-white — main background)
   Fog        #C7C5BE  (hairlines, borders)
   Slate      #55575C  (secondary text)
   Horizon    #B8874B  (golden-hour accent)
   White      #FFFFFF
   Type: Fraunces (display) / Inter (body) / IBM Plex Mono (telemetry labels)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;1,9..144,400&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  --ink: #0B0B0C;
  --paper: #F6F5F1;
  --fog: #C7C5BE;
  --slate: #55575C;
  --horizon: #B8874B;
  --white: #FFFFFF;
  --max: 1120px;
  --gap: clamp(1.5rem, 4vw, 3rem);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3{
  font-family: 'Fraunces', serif;
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1{ font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 400; }
h2{ font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3{ font-size: 1.25rem; font-weight: 600; }

p{ margin: 0 0 1em; color: var(--slate); max-width: 62ch; }

a{ color: inherit; }

.mono{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
}

section{ padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
section + section{ border-top: 1px solid var(--fog); }

img{ max-width: 100%; display: block; }

/* ---------- REC indicator ---------- */
.rec{
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
}
.rec::before{
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #C0453A;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse{
  0%, 100%{ opacity: 1; }
  50%{ opacity: 0.25; }
}

.eyebrow{
  display: block;
  color: var(--horizon);
  margin-bottom: 0.9em;
}

/* ---------- Nav ---------- */
.nav{
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--fog);
}
.nav .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.brand img{ height: 62px; width: auto; }

.nav-links{
  display: flex;
  gap: clamp(1rem, 3vw, 2.2rem);
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a{
  color: var(--ink);
  text-decoration: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4em 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.nav-links a:hover,
.nav-links a:focus-visible{
  border-color: var(--horizon);
  color: var(--horizon);
}
.nav-links a[aria-current="page"]{
  color: var(--horizon);
  border-color: var(--horizon);
}
.nav-toggle{
  display: none;
  background: none;
  border: 1px solid var(--fog);
  color: var(--ink);
  width: 40px; height: 40px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.1rem;
}

@media (max-width: 760px){
  .nav-toggle{ display: block; }
  .nav-links{
    position: absolute;
    top: 96px; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 1rem clamp(1.25rem, 5vw, 2.5rem) 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--fog);
    display: none;
  }
  .nav-links.open{ display: flex; }
}

/* ---------- Viewfinder frame (signature element) ---------- */
.viewfinder{
  position: relative;
  padding: 22px;
}
.viewfinder::before,
.viewfinder::after,
.viewfinder .vf-tr,
.viewfinder .vf-br{
  content: "";
  position: absolute;
  width: 26px; height: 26px;
  border: 2px solid var(--horizon);
}
.viewfinder::before{ top: 0; left: 0; border-right: none; border-bottom: none; }
.viewfinder::after{ bottom: 0; left: 0; border-right: none; border-top: none; }
.viewfinder .vf-tr{ top: 0; right: 0; border-left: none; border-bottom: none; }
.viewfinder .vf-br{ bottom: 0; right: 0; border-left: none; border-top: none; }
.viewfinder .vf-tag{
  position: absolute;
  top: 8px; left: 44px;
  color: var(--horizon);
}
.viewfinder-media{
  overflow: hidden;
}

/* ---------- Hero ---------- */
.hero{
  background: var(--paper);
  color: var(--ink);
  padding: clamp(3.5rem, 10vw, 6rem) 0 clamp(3.5rem, 9vw, 6rem);
  text-align: center;
}
.hero .wrap{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}
.hero-logo{
  width: clamp(220px, 34vw, 320px);
  margin: 0 auto 0.5rem;
}
.hero-logo img{ width: 100%; height: auto; }
.hero p.lede{
  color: var(--slate);
  font-size: 1.1rem;
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
}
.hero h1{ max-width: 34ch; margin-left: auto; margin-right: auto; font-size: clamp(2.1rem, 4.6vw, 3.4rem); }

/* ---------- Portrait (about-us headshot) ---------- */
.portrait-inner{
  margin: 0 auto;
  width: fit-content;
  max-width: 100%;
  text-align: center;
}
.portrait-frame{
  width: clamp(130px, 16vw, 170px);
  margin: 0 auto 0.75rem;
}
.portrait-frame img{ width: 100%; height: auto; display: block; }
.portrait-caption{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95em 1.6em;
  border: 1px solid currentColor;
  border-radius: 2px;
  cursor: pointer;
  background: none;
  transition: background 0.2s, color 0.2s;
}
.btn-primary{
  background: var(--horizon);
  border-color: var(--horizon);
  color: var(--ink);
}
.btn-primary:hover, .btn-primary:focus-visible{
  background: #A67840;
  border-color: #A67840;
}
.btn-outline{
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover, .btn-outline:focus-visible{
  border-color: var(--horizon);
  color: var(--horizon);
}
.btn:focus-visible{ outline: 2px solid var(--horizon); outline-offset: 3px; }

/* ---------- Grids / cards ---------- */
.grid-2{ display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.grid-3{ display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2rem); }
@media (max-width: 760px){
  .grid-2, .grid-3{ grid-template-columns: 1fr; }
}

.card{
  border: 1px solid var(--fog);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  background: var(--white);
}

.service{
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.5rem;
  padding: clamp(1.75rem, 3vw, 2.5rem) 0;
  border-top: 1px solid var(--fog);
}
.service:last-child{ border-bottom: 1px solid var(--fog); }
.service .tag{ color: var(--horizon); }
@media (max-width: 600px){
  .service{ grid-template-columns: 1fr; gap: 0.6rem; }
}

hr.rule{
  border: none;
  border-top: 1px solid var(--fog);
  margin: 0;
}

/* ---------- Portfolio placeholder tiles ---------- */
.reel{
  aspect-ratio: 4/3;
  background:
    repeating-linear-gradient(135deg, #17171A, #17171A 2px, #0B0B0C 2px, #0B0B0C 14px);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.1rem;
  position: relative;
}
.reel .corner{ color: var(--horizon); }
.reel .label{ font-family: 'Fraunces', serif; font-size: 1.15rem; }

.reel-video{
  aspect-ratio: 9/16;
  padding: 0;
  overflow: hidden;
  position: relative;
  background: #000;
}
.reel-video video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.reel-video::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 26%, rgba(0,0,0,0) 62%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
  z-index: 1;
}
.reel-video .corner,
.reel-video .label{
  position: absolute;
  left: 1.1rem;
  z-index: 2;
  color: var(--white);
}
.reel-video .corner{ top: 1.1rem; color: var(--horizon); }
.reel-video .label{ bottom: 1.1rem; right: 1.1rem; left: 1.1rem; }

/* ---------- Inquiry form ---------- */
.inquiry{
  background: var(--ink);
  color: var(--white);
  border-top: none;
}
.inquiry.inquiry-light{
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid var(--fog);
}
.inquiry-light .inquiry-intro p{ color: var(--slate); }
.inquiry-light .inquiry-intro .contact-line{ color: var(--slate); }
.inquiry-light .inquiry-intro .contact-line a{ color: var(--ink); }
.inquiry-light .inquiry-intro .contact-line a:hover{ color: var(--horizon); }
.inquiry-light .field label{ color: var(--slate); }
.inquiry-light .field small{ color: #8B8985; }
.inquiry-light .field input,
.inquiry-light .field select,
.inquiry-light .field textarea{
  background: var(--white);
  border: 1px solid var(--fog);
  color: var(--ink);
}
.inquiry-light .form-note{ color: #8B8985; }
.inquiry .wrap{
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: var(--gap);
}
@media (max-width: 860px){
  .inquiry .wrap{ grid-template-columns: 1fr; }
}
.inquiry-intro p{ color: #C9C7C2; }
.inquiry-intro .contact-line{
  margin-top: 1.5rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  color: #C9C7C2;
}
.inquiry-intro .contact-line a{ color: var(--horizon); text-decoration: none; }

form.inquiry-form{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.25rem;
}
form.inquiry-form .full{ grid-column: 1 / -1; }
@media (max-width: 560px){
  form.inquiry-form{ grid-template-columns: 1fr; }
}

.field label{
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #A6A4A0;
  margin-bottom: 0.5em;
}
.field small{
  display: block;
  color: #8B8985;
  font-size: 0.75rem;
  margin-top: 0.35em;
}
.field input,
.field select,
.field textarea{
  width: 100%;
  background: #17171A;
  border: 1px solid #333235;
  color: var(--white);
  padding: 0.75em 0.85em;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  border-radius: 2px;
}
.field textarea{ resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus{
  outline: none;
  border-color: var(--horizon);
}
.honeypot{ position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note{
  grid-column: 1 / -1;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: #8B8985;
  letter-spacing: 0.04em;
}

.form-status{
  grid-column: 1 / -1;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  padding: 0.85em 1em;
  border: 1px solid var(--horizon);
  color: var(--horizon);
  display: none;
}
.form-status.visible{ display: block; }

/* ---------- Footer ---------- */
footer{
  background: var(--paper);
  color: var(--slate);
  border-top: 1px solid var(--fog);
  padding: 2.2rem 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}
footer .wrap{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
footer a{ color: var(--ink); text-decoration: none; }
footer a:hover{ color: var(--horizon); }

/* ---------- Scroll reveal ---------- */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in{ opacity: 1; transform: translateY(0); }

/* ---------- Page hero (non-home pages) ---------- */
.page-head{
  background: var(--paper);
  color: var(--ink);
  padding: clamp(2.8rem, 7vw, 4.5rem) 0 clamp(2.2rem, 6vw, 3rem);
}
.page-head p{ color: var(--slate); max-width: 56ch; }
