/* ==========================================================================
   VARIANTE 06: FILM NOIR (StyleKit: film-noir)
   Tokens: #0A0A0A / #1A1A1A, #F5F5F0 ivory, #C41E3A crimson, #D4AF37 gold, #8B7355 sepia
   ========================================================================== */

@font-face { font-family: "Inter"; src: url("./fonts/inter-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Inter"; src: url("./fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("./fonts/jetbrains-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #0A0A0A;
  --surface: #141414;
  --line: rgba(245, 245, 240, 0.14);
  --ivory: #F5F5F0;
  --sepia: #8B7355;
  --gold: #D4AF37;
  --crimson: #C41E3A;
  --muted: #9E9B93;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-serif: "Didot", "Bodoni MT", "Palatino Linotype", Georgia, serif;
  --font-mono: "JetBrains Mono", monospace;
  --t: 600ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); color: var(--ivory); }
body { margin: 0; font-family: var(--font-sans); font-weight: 300; font-size: 15px; line-height: 1.75; background: var(--bg); color: var(--ivory); -webkit-font-smoothing: antialiased; padding-bottom: 64px; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.gold { color: var(--gold); }
.crimson { color: var(--crimson); }
.nr-wrap { width: min(100% - 4rem, 1180px); margin-inline: auto; }

.noir-grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 900; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 6-Variant Switcher */
.variant-switcher {
  position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 600;
  display: inline-flex; align-items: center; gap: 3px; padding: 5px;
  background: rgba(10, 10, 10, 0.95); border: 1px solid var(--sepia); border-radius: 3px;
  backdrop-filter: blur(12px); font-size: 10px; letter-spacing: 0.06em; max-width: 96vw; overflow-x: auto;
}
.vs-item { padding: 5px 10px; color: var(--muted); border-radius: 2px; white-space: nowrap; }
.vs-item:hover { color: var(--ivory); }
.vs-item.is-current { background: var(--crimson); color: var(--ivory); font-weight: 600; }

/* Header */
.nr-header { position: sticky; top: 0; z-index: 150; height: 70px; background: rgba(10,10,10,0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nr-header-row { height: 100%; display: flex; justify-content: space-between; align-items: center; }
.brand-logo { height: 16px; width: auto; fill: var(--ivory); }
.nr-nav { display: flex; gap: 26px; align-items: center; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.nr-nav a:hover { color: var(--ivory); }
.nr-cta { padding: 8px 16px; border: 1px solid var(--gold); color: var(--gold) !important; }
.nr-cta:hover { background: var(--gold); color: #0A0A0A !important; }

/* Chiaroscuro Hero */
.nr-hero { position: relative; padding: 48px 0 72px; overflow: hidden; border-bottom: 1px solid var(--line); }
.chiaroscuro {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(122deg, rgba(245,245,240,0.06) 0%, transparent 32%, rgba(212,175,55,0.04) 48%, transparent 65%),
    radial-gradient(60% 50% at 50% 0%, rgba(245,245,240,0.05), transparent 70%);
}
.nr-hero-inner { position: relative; z-index: 2; }
.nr-top-credit { display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: 0.16em; color: var(--sepia); padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.crimson-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--crimson); margin-right: 8px; box-shadow: 0 0 10px var(--crimson); }

.nr-title-card { text-align: center; padding: 56px 0 48px; display: flex; flex-direction: column; align-items: center; }
.nr-subtitle { margin: 0 0 20px; font-size: 11px; letter-spacing: 0.2em; color: var(--gold); }
.nr-title-card h1 { margin: 0; font-family: var(--font-sans); font-size: clamp(2.3rem, 5.2vw, 4.4rem); font-weight: 300; line-height: 1.08; letter-spacing: 0.08em; }
.nr-serif { display: block; font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: 0.01em; color: var(--ivory); margin-top: 8px; }
.gold-rule { width: 84px; height: 1px; background: var(--gold); margin: 28px 0; }
.nr-lead { margin: 0 0 32px; max-width: 58ch; color: var(--muted); font-size: 15px; }

.nr-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.nr-btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 28px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; border: 1px solid transparent; cursor: pointer; transition: background-color var(--t), color var(--t), border-color var(--t); }
.nr-btn-crimson { background: var(--crimson); color: var(--ivory); }
.nr-btn-crimson:hover { background: var(--ivory); color: #0A0A0A; }
.nr-btn-gold { background: transparent; border-color: var(--gold); color: var(--gold); }
.nr-btn-gold:hover { background: var(--gold); color: #0A0A0A; }

/* Letterbox Noir Reel (B&W -> Full Color on Hover) */
.nr-reel { position: relative; display: block; width: 100%; aspect-ratio: 21 / 9; padding: 0; border: 1px solid var(--sepia); background: #000; overflow: hidden; cursor: pointer; }
.nr-reel video { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.25) brightness(0.75); transition: filter 700ms ease; }
.nr-reel:hover video { filter: grayscale(0) contrast(1.05) brightness(0.95); }
.nr-reel-caption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: 12px 20px; background: rgba(10,10,10,0.88); border-top: 1px solid var(--line); font-size: 10px; letter-spacing: 0.16em; color: var(--sepia); }
.nr-play-tag { color: var(--gold); }

.nr-credits-strip { border-bottom: 1px solid var(--line); background: var(--surface); }
.nr-strip-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 16px 0; font-size: 10px; letter-spacing: 0.16em; color: var(--muted); }

/* Acts */
.nr-act { padding: 104px 0; border-bottom: 1px solid var(--line); }
.nr-act-alt { background: var(--surface); }
.act-head { margin-bottom: 48px; }
.act-head span { display: block; font-size: 11px; letter-spacing: 0.18em; margin-bottom: 10px; }
.act-head h2, .nr-split h2 { margin: 0 0 14px; font-family: var(--font-serif); font-size: clamp(1.9rem, 3.2vw, 2.8rem); font-weight: 400; }
.act-head p { margin: 0; color: var(--muted); max-width: 60ch; }

.nr-3 { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.nr-3 article { padding: 32px 28px 32px 0; border-right: 1px solid var(--line); }
.nr-3 article:not(:first-child) { padding-left: 28px; }
.nr-3 article:last-child { border-right: 0; padding-right: 0; }
.nr-3 span { font-size: 10px; letter-spacing: 0.16em; }
.nr-3 h3 { margin: 12px 0 8px; font-size: 19px; font-weight: 400; }
.nr-3 p { margin: 0; color: var(--muted); font-size: 14px; }

.nr-rows { border-top: 1px solid var(--line); }
.nr-rows > div { display: grid; grid-template-columns: 56px 280px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.nr-rows h3 { margin: 0; font-size: 18px; font-weight: 400; }
.nr-rows p { margin: 0; color: var(--muted); font-size: 14px; }

/* Filmography (B&W Stills -> Color on Hover) */
.nr-work-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 44px 36px; }
.nr-still { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 1px solid var(--line); background: #000; overflow: hidden; cursor: pointer; }
.nr-still img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.22) brightness(0.8); transition: filter 700ms ease; }
.nr-still:hover img { filter: grayscale(0) contrast(1.04) brightness(0.98); }
.nr-play { position: absolute; right: 14px; bottom: 14px; padding: 6px 12px; font-size: 10px; letter-spacing: 0.16em; background: rgba(10,10,10,0.88); border: 1px solid var(--gold); color: var(--gold); transition: background-color var(--t), color var(--t); }
.nr-still:hover .nr-play { background: var(--crimson); border-color: var(--crimson); color: var(--ivory); }
.nr-film-meta { padding-top: 18px; }
.nr-film-meta span { font-size: 10px; letter-spacing: 0.16em; }
.nr-film-meta h3 { margin: 6px 0 6px; font-family: var(--font-serif); font-size: 23px; font-weight: 400; }
.nr-film-meta p { margin: 0; color: var(--muted); font-size: 14px; }

/* Equipment & Contact */
.nr-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
.nr-dl { margin: 24px 0 0; border-top: 1px solid var(--line); }
.nr-dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.nr-dl dt { font-size: 10px; letter-spacing: 0.14em; color: var(--gold); }
.nr-dl dd { margin: 0; color: var(--ivory); }
.nr-copy { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.nr-copy a { color: var(--gold); }

.nr-form { display: flex; flex-direction: column; gap: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--bg); border: 1px solid var(--line); padding: 8px 13px; font-size: 12px; color: var(--muted); cursor: pointer; }
.chip.is-active { background: var(--crimson); border-color: var(--crimson); color: var(--ivory); }
.nf-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.nr-form input, .nr-form textarea { width: 100%; background: var(--bg); border: 1px solid var(--line); padding: 12px 14px; color: var(--ivory); }
.nr-form input:focus, .nr-form textarea:focus { outline: none; border-color: var(--gold); }
.form-status { padding: 12px 14px; border: 1px solid var(--gold); font-size: 12px; }

.nr-footer { padding: 28px 0; font-size: 10px; letter-spacing: 0.16em; color: var(--sepia); }
.nr-foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.nr-foot-row div { display: flex; gap: 20px; }

.modal { position: fixed; inset: 0; z-index: 700; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4,4,4,0.95); }
.modal-dialog { position: relative; width: min(100%, 1040px); background: var(--bg); border: 1px solid var(--sepia); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.modal-header h3 { margin: 0; font-family: var(--font-serif); font-size: 16px; font-weight: 400; }
.modal-meta { margin: 2px 0 0; font-size: 11px; color: var(--gold); }
.modal-close { background: transparent; border: 1px solid var(--sepia); padding: 6px 12px; font-size: 11px; cursor: pointer; }
.modal-player { background: #000; aspect-ratio: 16 / 9; }
.modal-player video { width: 100%; height: 100%; }

@media (max-width: 960px) {
  .nr-nav { display: none; }
  .nr-3, .nr-rows > div, .nr-work-2, .nr-split, .nf-2 { grid-template-columns: 1fr; }
  .nr-3 article { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 0 !important; }
}
