/* ============================================================
   LEONARDO GENZON · CINEMATIC EDITORIAL · v4
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --bg-2: #101010;
  --surface: #161616;
  --surface-2: #1c1c1c;
  --border: #242424;
  --border-2: #2e2e2e;
  --text: #ece9e0;
  --text-soft: #c8c4ba;
  --text-2: #9a968d;
  --text-3: #6c6960;
  --accent: #d4a23c;
  --accent-2: #e8be5e;
  --max-w: 1400px;

  --font-display: 'Oswald', 'Impact', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

/* Subtle grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.03;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 24px 40px;
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  padding: 14px 40px;
  border-bottom: 1px solid var(--border);
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color 0.2s;
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover { color: var(--text); }

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 120px 40px 100px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(0.7) brightness(0.32) contrast(1.1);
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(212,162,60,0.06) 0%, transparent 50%),
    linear-gradient(180deg, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.2) 40%, rgba(10,10,10,0.95) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.hero-meta-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  font-family: var(--font-mono);
  font-size: 14px;             /* was 12 */
  color: var(--text-2);
  letter-spacing: 1.5px;
  font-weight: 500;
}

.hero-tc { color: var(--accent); font-weight: 500; }
.hero-divider { width: 32px; height: 1px; background: var(--border-2); }
.hero-loc { text-transform: uppercase; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(64px, 16vw, 240px);
  line-height: 0.92;
  letter-spacing: -0.015em;
  margin-bottom: 32px;
  color: var(--text);
}

.hero-title .line { display: block; }

.hero-title .line:nth-child(2) {
  padding-left: 0.5ch;
  color: var(--accent);
  font-weight: 400;
  font-style: italic;
}

.hero-sub {
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 400;
  color: var(--text-soft);
  max-width: 640px;
  margin-bottom: 56px;
  letter-spacing: 0;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.link-arrow {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text);
  position: relative;
  padding: 8px 0;
}

.link-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 1px;
}

.link-text {
  border-bottom: 1px solid var(--border-2);
  padding-bottom: 4px;
  transition: border-color 0.2s, color 0.2s;
}

.link-mark {
  display: inline-block;
  transition: transform 0.3s ease;
  color: var(--accent);
}

.link-arrow:hover .link-text {
  border-bottom-color: var(--accent);
  color: var(--accent);
}
.link-arrow:hover .link-mark { transform: translateX(8px); }

.hero-bottombar {
  position: absolute;
  bottom: 32px;
  left: 0; right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  padding: 0 40px;
  font-family: var(--font-mono);
  font-size: 14px;             /* network names: +30% from 11 */
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--text-2);
  font-weight: 500;
}

.hero-bottombar span { position: relative; }

.hero-bottombar span:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -18px;
  top: 50%;
  width: 4px;
  height: 4px;
  background: var(--text-3);
  border-radius: 50%;
  transform: translateY(-50%);
}

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */

section { padding: 140px 0; position: relative; z-index: 2; }

.section-header { margin-bottom: 80px; max-width: 900px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 14px;             /* was 12 */
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 24px;
}

.eyebrow-num {
  color: var(--accent);
  padding: 4px 10px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  font-size: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: var(--text);
  margin-bottom: 32px;          /* fixes overlap */
}

.section-lede {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-2);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

/* ============================================================
   WORK GRID. Clickable cards with contained posters and blurred backdrop.
   ============================================================ */

.work { background: var(--bg-2); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  overflow: hidden;
  transition: background 0.3s;
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
  padding: 0;
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;          /* portrait, fits posters */
  background: #050505;
  overflow: hidden;
}

.card-media-blur {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  filter: blur(36px) brightness(0.45) saturate(0.85);
  transform: scale(1.1);
  z-index: 0;
  transition: filter 0.5s, transform 0.7s;
}

.card-media-img {
  position: absolute;
  inset: 0;
  background-size: contain;     /* full image, no crop */
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  transition: transform 0.7s;
}

.card-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,10,10,0.6);
  border: 1px solid rgba(232,230,224,0.7);
  border-radius: 50%;
  font-size: 18px;
  color: var(--text);
  padding-left: 4px;
  opacity: 0;
  z-index: 2;
  transition: opacity 0.3s, transform 0.3s, background 0.3s, border-color 0.3s;
}

.card:hover { background: var(--surface-2); }
.card:hover .card-media-blur { filter: blur(28px) brightness(0.6) saturate(1); }
.card:hover .card-media-img { transform: scale(1.04); }
.card:hover .card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.card-meta {
  padding: 22px 26px 26px;
  position: relative;
}

.card-meta::before {
  content: '';
  position: absolute;
  top: 0; left: 26px;
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s, width 0.3s;
}
.card:hover .card-meta::before { opacity: 1; width: 48px; }

.card-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: 0.3px;
  line-height: 1.1;
  margin-bottom: 6px;
  color: var(--text);
}

.card-line {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--text-3);
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  font-weight: 400;
}

.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.card-foot span:first-child {
  color: var(--text-soft);
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 500;
}

.card-net {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;              /* was 11; +30% bumped, made display */
  letter-spacing: 0.5px;
  text-transform: none;
}

/* ============================================================
   CREDITS LIST
   ============================================================ */

.credits { background: var(--bg); }

.credits-list {
  list-style: none;
  border-top: 1px solid var(--border);
}

.credit {
  display: grid;
  grid-template-columns: 80px minmax(220px, 1.4fr) 2fr;
  gap: 32px;
  align-items: baseline;
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s, padding 0.2s;
}

.credit:hover {
  background: linear-gradient(to right, rgba(212,162,60,0.04), transparent 70%);
  padding-left: 16px;
}

.credit-num {
  font-family: var(--font-mono);
  font-size: 14px;              /* was 12 */
  color: var(--text-3);
  letter-spacing: 1px;
  font-weight: 500;
}

.credit-show {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: 0.3px;
  line-height: 1.1;
}

.credit-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  letter-spacing: 0.3px;
}

.credit-detail span:nth-child(1) {
  font-family: var(--font-mono);
  font-size: 13px;              /* was 11 */
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 1.5px;
  font-weight: 500;
}

.credit-detail span:nth-child(2) {
  color: var(--text-soft);
  font-weight: 500;
}

.credit-detail span:nth-child(3) {
  color: var(--text-2);
  font-size: 14px;              /* was 13 */
}

.credits-note {
  margin-top: 40px;
  font-size: 14px;              /* was 13 */
  font-family: var(--font-mono);
  color: var(--text-2);
  text-align: center;
  letter-spacing: 0.5px;
}
.credits-note a { color: var(--accent); border-bottom: 1px solid var(--accent); }

/* ============================================================
   ABOUT
   ============================================================ */

.about { background: var(--bg-2); }

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

.about-title { margin-bottom: 40px; }   /* extra breathing room before bio paras */

.about-text p {
  font-size: 17px;
  color: var(--text-soft);
  margin-bottom: 22px;
  line-height: 1.7;
  font-weight: 400;
  max-width: 60ch;
}

.about-text p:first-of-type {
  font-size: 21px;
  color: var(--text);
  font-weight: 400;
  line-height: 1.45;
}

.about-side {
  border-top: 1px solid var(--border);
  margin-top: 80px;
}

.side-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 28px 0;              /* was 22, more breathing room */
  border-bottom: 1px solid var(--border);
}

.side-label {
  font-family: var(--font-mono);
  font-size: 13px;              /* was 11 */
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-3);
  font-weight: 500;
}

.side-value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 31px;              /* was 22 ; +40% */
  letter-spacing: 0.5px;
  color: var(--text);
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact { background: var(--bg); }

.contact-list { border-top: 1px solid var(--border); }

.contact-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s, background 0.3s;
}

.contact-row:hover {
  padding-left: 16px;
  padding-right: 16px;
  background: linear-gradient(to right, rgba(212,162,60,0.05), transparent 70%);
}

.contact-key {
  font-family: var(--font-mono);
  font-size: 13px;              /* was 11 */
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-3);
  font-weight: 500;
}

.contact-val {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2.8vw, 34px);
  letter-spacing: 0.3px;
  color: var(--text);
}

.contact-arrow {
  font-size: 22px;
  color: var(--accent);
  transition: transform 0.3s;
}

.contact-row:hover .contact-arrow { transform: translateX(8px); }

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 36px 0;
  position: relative;
  z-index: 2;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-meta {
  display: flex;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;              /* was 11 */
  color: var(--text-3);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  flex-wrap: wrap;
  font-weight: 500;
}

.footer-tc {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 1.5px;
  font-weight: 500;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5,5,5,0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  width: 44px;
  height: 44px;
  font-size: 28px;
  color: var(--text);
  background: rgba(20,20,20,0.6);
  border: 1px solid var(--border-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  transition: all 0.2s;
}

.lightbox-close:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.lightbox-frame {
  position: relative;
  width: 100%;
  max-width: 1280px;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 30px 100px rgba(0,0,0,0.7);
}

.lightbox-frame iframe { width: 100%; height: 100%; border: 0; }

.lightbox-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  color: var(--text-soft);
}

.lightbox-show {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 6vw, 72px);
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}

.lightbox-placeholder p {
  font-size: 15px;
  font-family: var(--font-mono);
  color: var(--text-2);
  max-width: 480px;
  letter-spacing: 0.3px;
}

.lightbox-placeholder a { color: var(--accent); border-bottom: 1px solid var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1000px) {
  .container { padding: 0 24px; }
  .nav { padding: 18px 24px; }
  .nav.scrolled { padding: 12px 24px; }
  .nav-links { gap: 22px; }
  .nav-links a { font-size: 12px; letter-spacing: 1px; }
  section { padding: 90px 0; }
  .section-header { margin-bottom: 56px; }

  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-side { margin-top: 0; }

  .credit { grid-template-columns: 60px 1fr; gap: 16px; }
  .credit-detail { grid-column: 1 / -1; margin-left: 76px; margin-top: 8px; }

  .contact-row { grid-template-columns: 100px 1fr auto; gap: 16px; }
  .hero-actions { gap: 32px; }
}

@media (max-width: 600px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 11px; letter-spacing: 0.8px; }

  .hero { padding: 100px 24px 110px; }
  .hero-bottombar { gap: 18px; padding: 0 24px; font-size: 11px; letter-spacing: 1.5px; }
  .hero-bottombar span:not(:last-child)::after { right: -10px; }

  .credit-show { font-size: 20px; }
  .contact-val { font-size: 18px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .side-value { font-size: 26px; }

  .lightbox { padding: 16px; }
  .lightbox-close { top: 12px; right: 12px; width: 38px; height: 38px; font-size: 24px; }

  /* mobile hero meta + sub */
  .hero-meta-top { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 0; }
  .hero-divider { display: none; }
  .hero-loc { text-align: right; font-size: 11px; letter-spacing: 1px; }
  .hero-loc-item { display: block; }
  .hero-loc-sep { display: none; }
  .hero-sub-line { display: block; }
  .hero-sub { font-size: 15px; line-height: 1.6; }
}

/* Typographic poster cards (clip-on-request) */
.card-media-typo {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px 24px;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.card-media-typo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,0.025) 0 1px,
      transparent 1px 14px
    );
  pointer-events: none;
}
.card-typo-1 { background: linear-gradient(150deg, #2a1a1f 0%, #0f0f12 70%); }
.card-typo-2 { background: linear-gradient(150deg, #1c2230 0%, #0c0f14 70%); }
.card-typo-3 { background: linear-gradient(150deg, #2b2418 0%, #14110a 70%); }
.card-typo-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  z-index: 1;
}
.card-typo-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4.6vw, 52px);
  line-height: 0.95;
  color: var(--text);
  letter-spacing: -0.01em;
  z-index: 1;
}
.card-typo-foot {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  z-index: 1;
}
.card:hover .card-media-typo { filter: brightness(1.08); }

/* Lightbox stage: frame on top, caption below */
.lightbox-stage {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 1280px;
  gap: 18px;
}
.lightbox-stage .lightbox-frame {
  width: 100%;
  max-width: none;
}
.lightbox-info {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text);
}
.lightbox-info-show {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: 0.005em;
  color: var(--text);
}
.lightbox-info-sep {
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
}
.lightbox-info-role {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

@media (max-width: 640px) {
  .lightbox-stage { gap: 12px; }
  .lightbox-info-show { font-size: 18px; }
  .lightbox-info-role { font-size: 10px; }
}

/* Mobile lightbox swipe navigation */
.lightbox-mobile-nav { display: none; }
@media (max-width: 600px) {
  .lightbox-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: fixed;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1010;
    pointer-events: auto;
  }
  .lightbox-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
}
