/* NL Production — Nick Lepoutre cinematic site */
:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #161616;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.14);
  --fg: #f5f4f1;
  --fg-2: rgba(245,244,241,0.72);
  --fg-3: rgba(245,244,241,0.5);
  --fg-4: rgba(245,244,241,0.32);
  --accent: #f5e642;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--fg); }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}
.mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.serif { font-family: 'Instrument Serif', 'Times New Roman', serif; font-style: italic; }

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

.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 500;
}
.eyebrow .dot { display: inline-block; width: 6px; height: 6px; background: var(--accent); border-radius: 999px; margin-right: 10px; transform: translateY(-1px); }
.section-num { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--fg-4); letter-spacing: 0.1em; }
.h-display { font-family: 'Inter Tight', sans-serif; font-weight: 500; letter-spacing: -0.035em; line-height: 0.95; }
.divider { height: 1px; background: var(--line); width: 100%; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 200ms ease, background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--fg); }
.btn-accent { background: var(--accent); color: #0a0a0a; border-color: var(--accent); }
.arrow {
  display: inline-block; width: 16px; height: 9px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 9'><path fill='black' d='M11.5 0l-.7.7L13.6 3.5H0v1h13.6L10.8 7.3l.7.7L15.5 4z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 9'><path fill='black' d='M11.5 0l-.7.7L13.6 3.5H0v1h13.6L10.8 7.3l.7.7L15.5 4z'/></svg>") center/contain no-repeat;
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 900ms cubic-bezier(.2,.6,.2,1), transform 900ms cubic-bezier(.2,.6,.2,1); transition-delay: var(--rd, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Navbar */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(20px, 4vw, 56px);
  transition: background 300ms ease, border-color 300ms ease, backdrop-filter 300ms ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,10,10,0.7);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--fg); }
.nav-logo img { height: 56px; width: auto; }
.nav-logo .word { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-2); border-left: 1px solid var(--line-2); padding-left: 14px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--fg-2); text-decoration: none; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; transition: color 200ms; }
.nav-links a:hover, .nav-links a.active { color: var(--fg); }
.nav-links a .num { color: var(--fg-4); margin-right: 6px; }
.nav-cta { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; }
.nav-cta:hover { border-color: var(--fg); }
@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-logo .word { display: none; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 80px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
}
.hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.55) contrast(1.05) saturate(0.85);
}
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 70% 30%, rgba(255,91,44,0.18), transparent 70%),
    linear-gradient(180deg, rgba(10,10,10,0.45) 0%, rgba(10,10,10,0.2) 30%, rgba(10,10,10,0.85) 100%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 80%);
  pointer-events: none;
  z-index: 1;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-rows: auto 1fr auto;
  flex: 1; gap: 40px;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 56px) clamp(28px, 4vw, 44px);
  max-width: 1440px; width: 100%; margin: 0 auto;
}
.hero-top {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3);
}
.hero-top .right { text-align: right; }
.hero-top .live { display: inline-flex; align-items: center; gap: 8px; }
.hero-top .live::before { content: ''; width: 7px; height: 7px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 4px rgba(255,91,44,0.18); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-title {
  font-size: clamp(48px, 11vw, 184px);
  letter-spacing: -0.04em;
  line-height: 0.88;
  font-weight: 500;
}
.hero-title .line { display: block; }
.hero-title .accent-glyph { color: var(--accent); }
.hero-title em { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; color: var(--fg-2); }
.hero-sub {
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end;
  margin-top: 28px;
}
.hero-tagline { max-width: 560px; color: var(--fg-2); font-size: 17px; line-height: 1.55; }
.hero-tagline strong { color: var(--fg); font-weight: 500; }

.hero-bottom {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  border-top: 1px solid var(--line-2);
  padding-top: 24px;
}
.hero-stat { display: flex; flex-direction: column; gap: 6px; }
.hero-stat .label { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-4); }
.hero-stat .value { font-size: 22px; letter-spacing: -0.02em; }
.hero-stat .value em { font-family: 'Instrument Serif', serif; font-style: italic; color: var(--accent); font-weight: 400; }

@media (max-width: 860px) {
  .hero-sub { grid-template-columns: 1fr; }
  .hero-bottom { grid-template-columns: 1fr 1fr; }
}

/* Section */
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.section-head {
  display: grid; grid-template-columns: 200px 1fr; gap: 40px;
  margin-bottom: clamp(48px, 6vw, 88px);
  align-items: end;
}
.section-head .meta { display: flex; flex-direction: column; gap: 8px; }
.section-head h2 {
  font-size: clamp(40px, 6vw, 84px);
  letter-spacing: -0.03em;
  line-height: 1;
  font-weight: 500;
  max-width: 18ch;
}
.section-head h2 em { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; color: var(--fg-2); }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; gap: 16px; } }

/* About */
.about { background: var(--bg); border-top: 1px solid var(--line); }
.about-grid {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: start;
}
.about-photo {
  position: sticky; top: 100px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  aspect-ratio: 1/1;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center center; transition: transform 800ms cubic-bezier(.2,.6,.2,1); filter: grayscale(0.15) contrast(1.05); }
.about-photo:hover img { transform: scale(1.02); }
.about-photo .tag {
  position: absolute; left: 16px; bottom: 16px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg);
  background: rgba(0,0,0,0.5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 6px 10px; border: 1px solid var(--line-2);
}
.about-photo .corners > span {
  position: absolute; width: 12px; height: 12px; border: 1px solid rgba(255,255,255,0.5);
}
.about-photo .corners span:nth-child(1) { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.about-photo .corners span:nth-child(2) { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.about-photo .corners span:nth-child(3) { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.about-photo .corners span:nth-child(4) { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }

.about-body { display: flex; flex-direction: column; gap: 36px; }
.about-lede {
  font-size: clamp(22px, 2.4vw, 32px); line-height: 1.25; letter-spacing: -0.02em; color: var(--fg);
}
.about-lede strong { color: var(--accent); font-weight: 500; }
.about-body p { color: var(--fg-2); font-size: 17px; line-height: 1.65; max-width: 60ch; }
.about-body p strong { color: var(--fg); font-weight: 500; }

.about-stats {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.about-stats .stat {
  padding: 24px 20px 22px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
}
.about-stats .stat:last-child { border-right: 0; }
.about-stats .lab { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-4); }
.about-stats .val { font-size: 28px; letter-spacing: -0.02em; }
.about-stats .val em { font-family: 'Instrument Serif', serif; font-style: italic; color: var(--accent); font-weight: 400; }

@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { position: relative; top: 0; max-width: 360px; }
  .about-stats { grid-template-columns: 1fr; }
  .about-stats .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .about-stats .stat:last-child { border-bottom: 0; }
}

/* Skills / Capabilities */
.skills-list {
  border-top: 1px solid var(--line);
}
.skill-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  position: relative;
  transition: padding 250ms ease;
}
.skill-row::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--accent); transition: width 300ms cubic-bezier(.2,.6,.2,1); }
.skill-row:hover { padding-left: 16px; }
.skill-row:hover::before { width: 2px; }
.skill-row .num { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--fg-4); letter-spacing: 0.1em; }
.skill-row .name { font-size: 18px; letter-spacing: -0.01em; font-weight: 500; }
.skill-row .cat { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.14em; color: var(--fg-3); text-transform: uppercase; }

/* Portfolio */
.portfolio { background: var(--bg); border-top: 1px solid var(--line); }
.shows {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.show-card {
  position: relative;
  border: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 300ms ease, transform 400ms cubic-bezier(.2,.6,.2,1);
}
.show-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.show-card .frame {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background: #060606;
}
.show-card .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(.2,.6,.2,1); filter: brightness(0.92) contrast(1.04); }
.show-card:hover .frame img { transform: scale(1.04); }
.show-card .frame .label {
  position: absolute; left: 16px; top: 16px; z-index: 2;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg);
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,0.5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 5px 9px; border: 1px solid var(--line-2);
}
.show-card .frame .label::before { content: ''; width: 6px; height: 6px; background: var(--accent); }
.show-card .frame .timestamp {
  position: absolute; right: 16px; top: 16px; z-index: 3;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.14em; color: var(--fg);
  background: rgba(0,0,0,0.5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 5px 9px; border: 1px solid var(--line-2);
  white-space: nowrap;
}
.show-card .frame .corners > span {
  position: absolute; width: 12px; height: 12px; border: 1px solid rgba(255,255,255,0.7); z-index: 2;
}
.show-card .frame .corners span:nth-child(1) { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.show-card .frame .corners span:nth-child(2) { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.show-card .frame .corners span:nth-child(3) { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.show-card .frame .corners span:nth-child(4) { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }

.show-card .body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.show-card .body h3 { font-size: 22px; letter-spacing: -0.02em; font-weight: 500; line-height: 1.15; min-width: 0; }
.show-card .body .role { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.14em; color: var(--accent); text-transform: uppercase; }
.show-card .body .meta { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.06em; color: var(--fg-3); text-transform: uppercase; display: flex; flex-wrap: wrap; gap: 6px 12px; }
.show-card .body .meta span { white-space: nowrap; }
.show-card .body .meta .sep { color: var(--fg-4); }
.show-card .body .desc { color: var(--fg-3); font-size: 14px; line-height: 1.55; max-width: 56ch; }

.show-card.span-7 { grid-column: span 7; }
.show-card.span-5 { grid-column: span 5; }
.show-card.span-6 { grid-column: span 6; }
.show-card.span-4 { grid-column: span 4; }
.show-card.span-8 { grid-column: span 8; }
@media (max-width: 900px) { .show-card { grid-column: span 12 !important; } }

/* Marquee */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 28px 0; background: var(--bg);
  position: relative;
}
.marquee-track {
  display: inline-flex; gap: 64px; white-space: nowrap;
  animation: scroll 50s linear infinite;
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(28px, 4vw, 56px);
  letter-spacing: -0.025em;
  font-weight: 500;
}
.marquee-track .star { color: var(--accent); margin: 0 16px; font-family: 'Instrument Serif', serif; font-style: normal; }
.marquee-track .alt { color: var(--fg-3); font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* Contact */
.contact {
  padding: clamp(100px, 14vw, 200px) 0;
  position: relative;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg) 0%, #050505 100%);
}
.contact-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 96px);
}
.contact h2 {
  font-size: clamp(48px, 8vw, 128px);
  letter-spacing: -0.04em;
  line-height: 0.92;
  font-weight: 500;
}
.contact h2 em { font-family: 'Instrument Serif', serif; font-style: italic; color: var(--accent); font-weight: 400; }
.contact-side { display: flex; flex-direction: column; gap: 28px; padding-top: clamp(20px, 3vw, 60px); }
.contact-block { display: flex; flex-direction: column; gap: 6px; }
.contact-block .lab { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-4); }
.contact-block a, .contact-block .val { color: var(--fg); font-size: 18px; text-decoration: none; letter-spacing: -0.01em; }
.contact-block a:hover { color: var(--accent); }
.social-links { display: flex; gap: 16px; flex-wrap: wrap; }
.social-links a { color: var(--fg); font-size: 18px; text-decoration: none; letter-spacing: -0.01em; }
.social-links a:hover { color: var(--accent); }
.contact-cta { margin-top: 12px; display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
.footer { padding: 32px 0 48px; border-top: 1px solid var(--line); background: #050505; }
.footer-row {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3);
}
.footer-row a { color: var(--fg-3); text-decoration: none; }
.footer-row a:hover { color: var(--fg); }

/* Density */
.density-compact .section { padding: clamp(60px, 8vw, 100px) 0; }
.density-compact .hero { min-height: 90vh; }
.density-compact .skill-row { padding: 14px 0; }

/* Hero variant */
.hero-type-only .hero-media img { display: none; }
.hero-type-only .hero-media::after {
  background: linear-gradient(180deg, #050505 0%, #0a0a0a 60%, #0a0a0a 100%);
}
