/* ---------------------------------------------------------
   Jesse D. Goldstein — portfolio
   Editorial / cinematic system. Warm near-black, one ember
   accent. Adobe Fonts throughout: IvyPresto Headline (display),
   Neue Haas Grotesk Display regular (body), Neue Haas Grotesk
   Display 95 Black (nav, labels, timecodes, links — the accent
   weight that replaces what used to be a mono typeface).
   IvyPresto and the regular cut are weight 400 roman only, so
   headline hierarchy leans on size/color, not faux-bold/italic.
--------------------------------------------------------- */

:root{
  --bg: #0b0b0a;
  --bg-alt: #131211;
  --bg-raised: #171513;
  --fg: #f2ede4;
  --fg-dim: #a49c8f;
  --fg-faint: #6f685e;
  --line: rgba(242,237,228,0.12);
  --line-strong: rgba(242,237,228,0.22);
  --accent: #c96a3e;
  --accent-soft: rgba(201,106,62,0.35);

  --font-display: "ivypresto-headline", Georgia, serif;
  --font-body: "neue-haas-grotesk-display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;

  --wrap: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-pad: clamp(72px, 11vw, 168px);
}

*,*::before,*::after{ box-sizing: border-box; }
html{ background: var(--bg); color-scheme: dark; }

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

body{
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1,h2,h3{ font-family: var(--font-display); font-weight: 400; margin: 0; letter-spacing: -0.01em; }

.skip-link{
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--accent); color: #0b0b0a; padding: 12px 18px; font-family: var(--font-body); font-weight: 900;
}
.skip-link:focus{ left: 12px; top: 12px; }

/* film-grain overlay */
.grain{
  position: fixed; inset: 0; z-index: 500; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ---------------- reveal-on-scroll ---------------- */
[data-reveal]{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
}
[data-reveal].is-visible{ opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){
  [data-reveal]{ opacity: 1; transform: none; transition: none; }
}

/* ---------------- nav ---------------- */
.site-nav{
  position: fixed; top: 0; left: 0; right: 0; z-index: 400;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  font-family: var(--font-body); font-weight: 900; font-size: 13px; letter-spacing: 0.04em;
  color: var(--bg);
  background: transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color .3s ease, color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled{
  color: var(--fg);
  background: rgba(11,11,10,0.82);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.nav-mark{ text-decoration: none; font-weight: 900; letter-spacing: 0.12em; }
.nav-links{ display: flex; gap: 28px; }
.nav-links a{ text-decoration: none; color: currentColor; opacity: 0.62; transition: opacity .2s ease; }
.nav-links a:hover{ opacity: 1; }
.nav-cta{
  text-decoration: none; color: currentColor;
  border: 1px solid; border-color: rgba(11,11,10,0.32);
  padding: 7px 14px; border-radius: 999px;
  transition: border-color .2s ease, color .2s ease;
}
.site-nav.scrolled .nav-cta{ border-color: var(--line-strong); }
.nav-cta:hover{ border-color: var(--accent); color: var(--accent); }
@media (max-width: 720px){ .nav-links{ display: none; } }

/* ---------------- hero ---------------- */
.hero{
  --ink: var(--bg);
  --ink-dim: rgba(11,11,10,0.62);
  --ink-line: rgba(11,11,10,0.18);
  max-width: none; width: 100%; margin: 0;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 148px var(--gutter) 72px;
  background: var(--fg);
  color: var(--ink);
}
.eyebrow{
  font-family: var(--font-body); font-weight: 900; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 20px;
  max-width: var(--wrap); width: 100%; margin-inline: auto;
}
.hero-name{
  max-width: var(--wrap); width: 100%; margin: 0 auto;
  line-height: 0.84;
}
.hero-name .ln{ display: block; }
.hero-name .ln-1{
  text-align: left;
  font-size: clamp(56px, 10.4vw, 168px);
}
.hero-name .ln-2{
  text-align: right;
  font-size: clamp(64px, 12.2vw, 196px);
  margin-top: -0.03em;
}
.hero-name .mid{ color: var(--accent); font-size: 0.56em; vertical-align: 0.16em; }

.hero-foot{
  max-width: var(--wrap); width: 100%; margin: 56px auto 0;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 64px);
  align-items: end;
  padding-top: 28px; border-top: 1px solid var(--ink-line);
}
.hero-sub{
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6; color: var(--ink-dim);
  max-width: 46ch; margin: 0;
}
.hero-aside{ display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
@media (min-width: 701px){ .hero-aside{ align-items: flex-end; text-align: right; } }
.hero-meta{
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  font-family: var(--font-body); font-weight: 900; font-size: 12.5px; color: var(--ink-dim);
}
.hero-links{ display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.hero-links a{
  text-decoration: none; color: var(--ink); font-family: var(--font-body); font-weight: 900; font-size: 13.5px;
  padding-bottom: 3px; border-bottom: 1px solid var(--ink-line);
  transition: border-color .2s ease, color .2s ease;
}
.hero-links a:hover{ color: var(--accent); border-color: var(--accent); }

@media (max-width: 700px){
  .hero{ padding-top: 112px; }
  .hero-name .ln-1, .hero-name .ln-2{ text-align: left; font-size: clamp(44px, 15vw, 88px); }
  .hero-foot{ grid-template-columns: 1fr; }
  .hero-aside{ align-items: flex-start; text-align: left; }
}

/* ---------------- marquee ---------------- */
.marquee{
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
  overflow: hidden; white-space: nowrap;
  padding: 18px 0;
}
.marquee-track{
  display: inline-flex; gap: 48px;
  animation: scroll-left 42s linear infinite;
}
.marquee:hover .marquee-track{ animation-play-state: paused; }
.marquee-track span{
  font-family: var(--font-body); font-weight: 900; font-size: 13px; letter-spacing: 0.05em;
  color: var(--fg-faint); text-transform: uppercase;
}
@keyframes scroll-left{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .marquee{ overflow-x: auto; }
  .marquee-track{ animation: none; }
}

/* ---------------- section shared ---------------- */
section{ padding: var(--section-pad) var(--gutter); max-width: var(--wrap); margin: 0 auto; }
.section-head{ margin-bottom: clamp(40px, 6vw, 80px); }
.section-head h2{ font-size: clamp(32px, 4.5vw, 52px); }

/* ---------------- work ---------------- */
.work-list{ list-style: none; margin: 0; padding: 0; }
.work-row{
  display: grid; grid-template-columns: 56px minmax(0,1.1fr) minmax(0,1fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px) 0;
  border-top: 1px solid var(--line);
}
.work-row:last-child{ border-bottom: 1px solid var(--line); }
.work-index{
  font-family: var(--font-body); font-weight: 900; font-size: 14px; color: var(--fg-faint); padding-top: 4px;
}
.work-media{ overflow: hidden; border-radius: 2px; background: var(--bg-alt); }
.work-media img{
  width: 100%; aspect-ratio: 16/10; object-fit: cover;
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1), filter .6s ease;
  filter: saturate(0.92);
}
.work-row:hover .work-media img{ transform: scale(1.045); }
.work-detail h3{ font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 10px; }
.work-meta{
  font-family: var(--font-body); font-weight: 900; font-size: 12.5px; letter-spacing: 0.03em;
  color: var(--accent); margin: 0 0 14px; text-transform: uppercase;
}
.work-note{ color: var(--fg-dim); font-size: 15px; line-height: 1.65; margin: 0; max-width: 52ch; }

.work-links{ display: flex; gap: 22px; flex-wrap: wrap; margin: 18px 0 0; }
.work-links a, .work-links button{
  appearance: none; background: none; border: 0; margin: 0; padding: 0 0 3px; cursor: pointer;
  text-decoration: none; font-family: var(--font-body); font-weight: 900; font-size: 13px;
  color: var(--fg); border-bottom: 1px solid var(--line-strong);
  transition: color .2s ease, border-color .2s ease;
}
.work-links a:hover, .work-links button:hover{ color: var(--accent); border-color: var(--accent); }

@media (max-width: 860px){
  .work-row{ grid-template-columns: 1fr; }
  .work-index{ order: -1; padding-top: 0; }
}

/* ---------------- lightbox ---------------- */
.lightbox{
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  padding: 56px 24px;
}
.lightbox.is-open{ display: flex; }
.lightbox-backdrop{
  position: absolute; inset: 0;
  background: rgba(11,11,10,0.94);
  backdrop-filter: blur(6px);
}
.lightbox-panel{ position: relative; width: 100%; max-width: 1120px; }
.lightbox-frame{
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: #000; border: 1px solid var(--line-strong);
}
.lightbox-frame iframe{ position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox-close{
  position: absolute; top: -46px; right: 0;
  width: 36px; height: 36px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-strong); color: var(--fg);
  font-size: 22px; line-height: 1; cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.lightbox-close:hover{ border-color: var(--accent); color: var(--accent); }
body.lightbox-open{ overflow: hidden; }
@media (max-width: 600px){
  .lightbox{ padding: 0; }
  .lightbox-panel{ max-width: 100%; }
  .lightbox-frame{ border: 0; }
  .lightbox-close{ top: 12px; right: 12px; background: rgba(11,11,10,0.6); }
}

/* ---------------- about ---------------- */
.about-grid{
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.about-portrait{ margin: 0; position: sticky; top: 110px; }
.about-portrait img{
  width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 18%;
  filter: grayscale(1) contrast(1.08) brightness(0.95);
  border-radius: 2px;
}
.about-copy p{ color: var(--fg-dim); font-size: 17px; line-height: 1.75; margin: 0 0 24px; max-width: 62ch; }
.about-copy em{ color: var(--fg); font-style: normal; font-family: var(--font-display); }
.about-copy a{ color: var(--fg); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.about-copy blockquote{
  margin: 40px 0; padding: 0 0 0 24px; border-left: 2px solid var(--accent);
  font-family: var(--font-display); font-style: normal; font-size: clamp(20px,2.2vw,26px);
  color: var(--fg); line-height: 1.4; letter-spacing: 0;
}
@media (max-width: 860px){
  .about-grid{ grid-template-columns: 1fr; }
  .about-portrait{ position: static; max-width: 280px; }
}

/* ---------------- recognition ---------------- */
.recognition-grid{ display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); }
.awards{ display: flex; flex-direction: column; gap: 28px; }
.award{ display: flex; gap: 18px; align-items: flex-start; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.award:last-child{ border-bottom: none; }
.award-badge{ width: 48px; height: auto; flex: none; filter: saturate(0.85); }
.award-mark{ width: 48px; flex: none; font-size: 28px; color: var(--accent); line-height: 1; text-align: center; }
.award-title{ margin: 0 0 6px; font-family: var(--font-display); font-size: 19px; }
.award-sub{ margin: 0; color: var(--fg-dim); font-size: 14.5px; line-height: 1.55; }
.award-sub em{ color: var(--fg); font-style: normal; font-family: var(--font-display); }

.festivals-label{
  font-family: var(--font-body); font-weight: 900; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--fg-faint); margin: 0 0 18px;
}
.festivals ul{ list-style: none; margin: 0; padding: 0; column-count: 2; column-gap: 32px; }
.festivals li{
  break-inside: avoid; padding: 12px 0; border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 3px;
}
.festivals li span{ font-size: 14.5px; }
.festivals li small{ font-family: var(--font-body); font-weight: 900; font-size: 11.5px; color: var(--accent); }
@media (max-width: 700px){ .recognition-grid{ grid-template-columns: 1fr; } .festivals ul{ column-count: 1; } }

/* ---------------- contact ---------------- */
.contact{ text-align: center; padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
.contact h2{
  font-size: clamp(32px, 5.4vw, 60px); line-height: 1.1; letter-spacing: -0.01em; margin: 18px 0 44px;
}
.contact-email{
  display: inline-block; font-family: var(--font-display); font-style: normal;
  font-size: clamp(22px, 4vw, 34px); text-decoration: none; color: var(--fg);
  border-bottom: 1px solid var(--line-strong); padding-bottom: 8px;
  transition: color .2s ease, border-color .2s ease;
}
.contact-email:hover{ color: var(--accent); border-color: var(--accent); }
.contact-foot{
  display: flex; justify-content: center; gap: 28px; margin-top: 40px;
  font-family: var(--font-body); font-weight: 900; font-size: 13px; color: var(--fg-dim);
}
.contact-foot a{ text-decoration: none; color: var(--fg-dim); }
.contact-foot a:hover{ color: var(--accent); }

/* ---------------- footer ---------------- */
.site-footer{
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 28px var(--gutter) 40px; max-width: var(--wrap); margin: 0 auto;
  font-family: var(--font-body); font-weight: 900; font-size: 12px; color: var(--fg-faint);
  border-top: 1px solid var(--line);
}
