/* ===========================================================
   Jonah Markowitz — Production Design
   Clean, modern, editorial portfolio
   =========================================================== */

:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --accent: #111111;
  --max: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 15px;
  text-transform: uppercase;
  line-height: 1.25;
  display: block;
}
.brand span { font-weight: 300; }
.brand em {
  display: block;
  font-style: normal;
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.34em;
  color: var(--muted);
  margin-top: 3px;
}
.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links a {
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  font-size: 22px; line-height: 1;
}

/* ---------- Hero (trailer) ---------- */
.hero {
  position: relative;
  height: min(88vh, 820px);
  overflow: hidden;
  background: #000;
}
/* poster sits behind the video while it loads */
.hero > img.hero-poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; opacity: 0.9;
}

/* Cross-fade slideshow with slow, continuous drift */
.hero-slideshow { position: absolute; inset: 0; overflow: hidden; background: #000; }
.hero-slideshow .slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  will-change: opacity;
}
.hero-slideshow .slide.is-active {
  opacity: 0.92;
}
@media (prefers-reduced-motion: reduce) {
  .hero-slideshow .slide { transition: opacity .4s linear; }
}
.hero-video {
  position: absolute; inset: 0; overflow: hidden;
}
.hero-video iframe {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw; height: 56.25vw;
  min-height: 100%; min-width: 177.78vh;
  border: 0; pointer-events: none;
}
.hero-video video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
a.hero-cta { text-decoration: none; }
/* subtle vignette so the button stays legible */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,0) 45%);
}
.hero-cta {
  position: absolute; z-index: 3;
  left: var(--gutter); bottom: clamp(26px, 5vw, 52px);
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(0,0,0,.42); color: #fff;
  border: 1px solid rgba(255,255,255,.5);
  padding: 13px 24px; cursor: pointer;
  font-family: var(--sans); font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase;
  backdrop-filter: blur(6px);
  transition: background .25s, color .25s, border-color .25s;
}
.hero-cta:hover { background: #fff; color: #111; border-color: #fff; }

/* Hero credit label — sits with the image rather than floating on it */
.hero-label {
  position: absolute; z-index: 3;
  left: var(--gutter); bottom: clamp(26px, 5vw, 52px);
  color: #fff; text-decoration: none;
  padding-left: 14px; border-left: 2px solid rgba(255,255,255,.85);
}
.hero-label .hl-show {
  display: block; font-family: var(--serif);
  font-size: clamp(17px, 1.9vw, 24px); font-weight: 500; line-height: 1.2;
  text-shadow: 0 1px 14px rgba(0,0,0,.5);
}
.hero-label .hl-status {
  display: block; margin-top: 6px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  opacity: .82; transition: opacity .25s;
}
.hero-label:hover .hl-status { opacity: 1; text-decoration: underline; }

/* Trailer modal (with sound) */
.trailer-modal {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(6,6,6,.95);
  display: none; align-items: center; justify-content: center;
}
.trailer-modal.open { display: flex; }
.trailer-modal .frame {
  width: min(92vw, 1280px); aspect-ratio: 16 / 9;
  box-shadow: 0 24px 70px rgba(0,0,0,.6);
}
.trailer-modal iframe { width: 100%; height: 100%; border: 0; }
.trailer-close {
  position: absolute; top: 20px; right: 26px;
  background: none; border: 0; color: #fff;
  font-size: 40px; line-height: 1; cursor: pointer; opacity: .85;
}
.trailer-close:hover { opacity: 1; }

/* ---------- Sections ---------- */
section { padding: clamp(56px, 9vw, 120px) 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; margin-bottom: clamp(28px, 4vw, 52px);
  border-bottom: 1px solid var(--line); padding-bottom: 18px;
}
.section-head h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(24px, 3.4vw, 40px); letter-spacing: -0.01em;
}
.section-head a { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.section-head a:hover { color: var(--ink); }

.lead {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.4; font-weight: 500; max-width: 900px;
  letter-spacing: -0.01em;
}

/* ---------- Project grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 28px);
}
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card { position: relative; overflow: hidden; background: #f2f2f2; }
.card .thumb {
  aspect-ratio: 4 / 3; width: 100%; height: 100%;
  object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.card:hover .thumb { transform: scale(1.045); }
.card .meta {
  position: absolute; inset: auto 0 0 0;
  padding: 20px 18px 16px;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0));
  color: #fff;
}
.card .meta h3 {
  font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
}
.card .meta span { font-size: 12px; opacity: 0.8; letter-spacing: 0.08em; }

/* Tall variant for project detail rows */
.filmstrip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr);
  gap: 14px; overflow-x: auto; padding-bottom: 8px;
}
.filmstrip img { aspect-ratio: 3/4; object-fit: cover; width: 100%; cursor: zoom-in; transition: opacity .2s; }
.filmstrip img:hover { opacity: 0.88; }

/* Placeholder for images not yet added */
.img-placeholder {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: #ececec; color: #9a9a9a; font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; padding: 16px;
}
.filmstrip .img-placeholder { aspect-ratio: 3/4; width: 100%; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8,8,8,0.94);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lb-img {
  max-width: 92vw; max-height: 88vh; object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lb-caption {
  position: absolute; bottom: 22px; left: 0; right: 0; text-align: center;
  color: #ddd; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer;
  opacity: .8; transition: opacity .2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { opacity: 1; }
.lb-close { top: 20px; right: 26px; font-size: 40px; line-height: 1; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 64px; padding: 0 22px; }
.lb-prev { left: 4px; }
.lb-next { right: 4px; }
@media (max-width: 600px) {
  .lb-prev, .lb-next { font-size: 44px; padding: 0 10px; }
}

/* Gallery grid (large photo sets) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(8px, 1vw, 14px);
}
.gallery-grid img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  cursor: zoom-in; background: #ececec; transition: opacity .2s;
}
.gallery-grid img:hover { opacity: 0.86; }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Project blocks (Projects page) ---------- */
.project { margin-bottom: clamp(48px, 8vw, 96px); }
.project-title {
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
  margin-bottom: 22px; border-bottom: 1px solid var(--line); padding-bottom: 14px;
}
.project-title h3 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 3vw, 34px);
}
.project-title .role { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ---------- About ---------- */
.about-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(30px, 6vw, 80px);
  align-items: start;
}
.about-grid .bio p { margin-bottom: 20px; font-size: clamp(16px, 1.5vw, 19px); color: #2a2a2a; }
.about-side h4 { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 26px 0 10px; }
.about-side ul { list-style: none; }
.about-side li {
  padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 15px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
}
.about-side .cr-note {
  flex: none; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); text-align: right;
}
.about-portrait img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

/* ---------- Videos ---------- */
.video-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.2vw, 30px);
}
.vc { display: block; color: inherit; }
.vc-thumb { position: relative; overflow: hidden; background: #eee; }
.vc-thumb img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.7,.2,1), filter .3s;
}
.vc:hover .vc-thumb img { transform: scale(1.05); filter: brightness(.82); }
.vc-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(0,0,0,.42); border: 1.5px solid rgba(255,255,255,.9);
  backdrop-filter: blur(4px); transition: background .25s, transform .25s;
}
.vc-play::after {
  content: ""; position: absolute; top: 50%; left: 54%;
  transform: translate(-50%,-50%);
  border-left: 15px solid #fff;
  border-top: 9px solid transparent; border-bottom: 9px solid transparent;
}
.vc:hover .vc-play { background: rgba(0,0,0,.7); transform: translate(-50%,-50%) scale(1.08); }
.vc-body { padding: 16px 2px 0; }
.vc-body h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(17px, 1.5vw, 21px); line-height: 1.3;
}
.vc-meta {
  margin-top: 6px; font-size: 11.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
@media (max-width: 900px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .video-grid { grid-template-columns: 1fr; } }

/* ---------- Press: featured cards ---------- */
.press-featured {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.4vw, 34px);
  margin-bottom: clamp(48px, 7vw, 88px);
}
.pf {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); background: #fff;
  transition: transform .3s ease, box-shadow .3s ease;
}
.pf:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.09); }
.pf .pf-img { aspect-ratio: 16/10; width: 100%; object-fit: cover; background: #eee; }
.pf .pf-body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.pf .pf-outlet {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.pf h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(19px, 1.6vw, 23px); line-height: 1.28; letter-spacing: -.01em;
}
.pf blockquote {
  margin: 16px 0 0; padding-left: 15px;
  border-left: 2px solid var(--ink);
  font-size: 15px; line-height: 1.5; color: #333; font-style: italic;
}
.pf blockquote cite { display: block; margin-top: 8px; font-style: normal; font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.pf .pf-link {
  margin-top: auto; padding-top: 20px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
}
.pf .pf-link span { border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.press-note { color: var(--muted); font-size: 13.5px; line-height: 1.6; max-width: 760px; }
@media (max-width: 900px) { .press-featured { grid-template-columns: 1fr; } }

/* ---------- Press ---------- */
.press-list { border-top: 1px solid var(--line); }
.press-item {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 24px;
  align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--line);
  transition: padding-left .25s;
}
.press-item:hover { padding-left: 8px; }
.press-item .date { font-size: 13px; color: var(--muted); letter-spacing: 0.06em; }
.press-item .headline { font-family: var(--serif); font-size: clamp(18px, 2.2vw, 24px); font-weight: 500; }
.press-item .outlet { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 5vw, 56px); letter-spacing: -0.01em; }
.btn {
  display: inline-block; margin-top: 26px;
  border: 1px solid var(--ink); padding: 15px 34px;
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  transition: background .25s, color .25s;
}
.btn:hover { background: var(--ink); color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  font-size: 13px; letter-spacing: 0.08em; color: var(--muted);
}
.site-footer a:hover { color: var(--ink); }
.site-footer .foot-links { display: flex; gap: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid, .grid.two { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0;
    background: #fff; flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 400px; }
  .nav-links a { padding: 18px var(--gutter); width: 100%; border-top: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .press-item { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 520px) {
  .grid, .grid.two { grid-template-columns: 1fr; }
}

/* ===========================================================
   Tighter vertical rhythm — less dead space above/below content
   =========================================================== */
section { padding: clamp(30px, 4.5vw, 58px) 0; }
.section-head { margin-bottom: clamp(18px, 2.4vw, 30px); padding-bottom: 12px; }
.project { margin-bottom: clamp(34px, 5vw, 62px); }
.project-title { margin-bottom: 16px; padding-bottom: 11px; }
.about-photo { margin: clamp(18px, 2.6vw, 30px) 0; }
.press-note { margin-top: 0; }
.about-grid { gap: clamp(24px, 4vw, 56px); }

/* Visible intro / credit line — readable and indexable */
.page-intro { padding-top: clamp(26px, 3.5vw, 44px); }
.page-intro h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(24px, 3.4vw, 40px); line-height: 1.22;
  letter-spacing: -0.01em; max-width: 22ch; margin: 0 0 16px;
}
.page-intro p {
  max-width: 62ch; font-size: clamp(15px, 1.35vw, 17.5px);
  line-height: 1.65; color: #2f2f2f; margin: 0 0 12px;
}
.page-intro p:last-child { margin-bottom: 0; }
.page-intro .studios {
  margin-top: 20px; font-size: 11.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
}
.page-h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(24px, 3.4vw, 40px); letter-spacing: -0.01em; margin: 0;
}

/* Credit strip — small, restrained, still indexable */
.credit-strip { padding: clamp(22px, 3vw, 34px) 0 0; }
.credit-strip h1 {
  font-family: var(--sans); font-weight: 600;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 9px;
}
.credit-strip p {
  max-width: 68ch; margin: 0;
  font-size: 13.5px; line-height: 1.6; color: var(--muted);
}
.credit-strip em { font-style: normal; color: var(--ink); }
@media (max-width: 720px) { .credit-strip p { font-size: 12.5px; } }

/* Press items with thumbnails */
.press-item { grid-template-columns: 92px 110px 1fr auto; }
.press-item .pi-thumb {
  width: 92px; height: 62px; object-fit: cover;
  background: #f0efec; display: block; align-self: center;
}
@media (max-width: 860px) {
  .press-item { grid-template-columns: 92px 1fr; gap: 14px; }
  .press-item .date { grid-column: 2; }
  .press-item .pi-thumb { grid-row: span 3; align-self: start; }
  .press-item > span:last-child { grid-column: 2; }
}

/* Larger press thumbnails */
.press-item { grid-template-columns: 190px 110px 1fr auto; align-items: center; }
.press-item .pi-thumb { width: 190px; height: 126px; }
@media (max-width: 900px) {
  .press-item { grid-template-columns: 150px 1fr; gap: 16px; }
  .press-item .pi-thumb { width: 150px; height: 100px; grid-row: span 3; align-self: start; }
  .press-item .date { grid-column: 2; }
  .press-item > span:last-child { grid-column: 2; }
}
@media (max-width: 560px) {
  .press-item { grid-template-columns: 1fr; }
  .press-item .pi-thumb { width: 100%; height: auto; aspect-ratio: 3/2; grid-row: auto; }
  .press-item .date, .press-item > span:last-child { grid-column: 1; }
}

/* ---------- Press list: no thumbnails, outlet-led ---------- */
.press-item {
  display: grid; grid-template-columns: 116px 1fr auto; gap: 26px;
  align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line);
}
.press-item .pi-thumb { display: none; }
.press-item .pi-outlet {
  font-family: var(--sans); font-size: 11.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
  margin-bottom: 7px;
}
.press-item .headline {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(17px, 1.9vw, 21px); line-height: 1.35; color: var(--ink);
}
@media (max-width: 720px) {
  .press-item { grid-template-columns: 1fr; gap: 8px; }
  .press-item .date, .press-item > span:last-child { grid-column: 1; }
}
