/* noir.css — shared styles for all TCBB Film Noir sub-pages */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; min-height: 100%; background: #04040a; }

:root {
  --noir-bg:   #04040a;
  --noir-wall: #0f0e1c;
  --neon-red:  #ff3a1a;
  --amber:     #c8901e;
  --amber-lt:  #e8b840;
  --paper:     #d4c9a0;
  --cream:     #e8dfc8;
  --dim:       #6a6050;
  --dim2:      #4a4438;
  --cork:      #1e1408;
  --wood:      #1a1510;
  --border:    #1e1c2a;
}

/* ── GRAIN ─────────────────────────────────────── */
#grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 999;
  opacity: 0.07; mix-blend-mode: overlay;
  animation: grain-shift 0.12s steps(7) infinite;
}
#grain svg { width: 100%; height: 100%; }
@keyframes grain-shift {
  0%  {transform:translate(0,0)}   14%{transform:translate(-2%,-3%)}
  28% {transform:translate(3%,1%)} 42%{transform:translate(-1%,4%)}
  57% {transform:translate(2%,-2%)}71%{transform:translate(-3%,3%)}
  85% {transform:translate(4%,-1%)}100%{transform:translate(-1%,2%)}
}

/* ── LETTERBOX ──────────────────────────────────── */
#lb-top, #lb-bot {
  position: fixed; left: 0; right: 0; z-index: 100;
  background: #000; height: 7vh;
}
#lb-top { top: 0; }
#lb-bot { bottom: 0; display: flex; align-items: center; padding: 0 24px; }

/* ── NAV BAR (inside top letterbox) ────────────── */
.noir-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 7vh; display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; pointer-events: none;
}
.noir-nav a, .noir-nav button {
  pointer-events: all;
  font-family: 'Oswald', sans-serif; font-size: 11px; font-weight: 300;
  letter-spacing: 0.14em; color: var(--dim); text-transform: uppercase;
  cursor: pointer; border: none; background: none; text-decoration: none;
  transition: color 0.3s;
}
.noir-nav a:hover, .noir-nav button:hover { color: var(--cream); }
.noir-nav .nav-center {
  font-family: 'Special Elite', serif; font-size: 13px;
  color: rgba(255,58,26,0.4); letter-spacing: 0.18em;
  animation: neon-flicker 6s ease-in-out infinite;
}
@keyframes neon-flicker {
  0%,17%,19%,21%,100%{opacity:1} 18%{opacity:0.15} 20%{opacity:0.8}
  74%,76%{opacity:1} 75%{opacity:0.3} 88%,90%{opacity:1} 89%{opacity:0.6}
}

/* ── STATUS BAR (inside bottom letterbox) ──────── */
.noir-status {
  display: flex; align-items: center; gap: 12px; width: 100%;
}
.status-portrait {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: radial-gradient(circle at 40% 35%, #2a2428, #0e0c14);
  border: 1px solid #303038;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.status-text {
  font-family: 'Courier Prime', monospace; font-style: italic;
  font-size: clamp(10px,1.2vw,13px); color: var(--dim); letter-spacing: 0.03em;
}

/* ── PAGE SHELL ─────────────────────────────────── */
.noir-shell {
  padding: 7vh 0;
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--noir-wall);
  position: relative;
}
/* Venetian blind overlay */
.noir-shell::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 5;
  background: repeating-linear-gradient(
    180deg, rgba(0,0,0,0) 0px, rgba(0,0,0,0) 18px,
    rgba(0,0,0,0.22) 18px, rgba(0,0,0,0.22) 22px
  );
  transform: skewY(-3deg);
  transform-origin: top left;
}
/* Lamp glow from left */
.noir-shell::after {
  content: ''; position: fixed; bottom: 7vh; left: 0; width: 50%; height: 50%;
  background: radial-gradient(ellipse at 0% 100%, rgba(200,145,30,0.08) 0%, transparent 60%);
  pointer-events: none; z-index: 4;
}

/* ── CONTENT WRAPPER ────────────────────────────── */
.noir-content {
  position: relative; z-index: 10;
  max-width: 900px; margin: 0 auto;
  padding: 40px 32px 60px;
  width: 100%;
}

/* ── PAGE HEADER ────────────────────────────────── */
.page-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px; margin-bottom: 36px;
}
.page-eyebrow {
  font-family: 'Oswald', sans-serif; font-weight: 300;
  font-size: 10px; letter-spacing: 0.3em; color: var(--dim2); text-transform: uppercase;
  margin-bottom: 8px;
}
.page-title {
  font-family: 'Special Elite', serif;
  font-size: clamp(24px, 4vw, 42px);
  color: var(--cream); letter-spacing: 0.04em; line-height: 1.15;
}
.page-sub {
  font-family: 'Courier Prime', monospace; font-style: italic;
  font-size: clamp(13px, 1.5vw, 16px);
  color: var(--dim); margin-top: 10px; line-height: 1.6;
}
.page-sub::before { content: '— '; color: var(--amber); font-style: normal; }

/* ── DIVIDER ────────────────────────────────────── */
.noir-divider {
  border: none; border-top: 1px solid var(--border);
  margin: 32px 0;
}

/* ── TYPOGRAPHY ─────────────────────────────────── */
.noir-body {
  font-family: 'Courier Prime', monospace;
  font-size: clamp(13px, 1.4vw, 15px);
  color: var(--dim); line-height: 1.8; letter-spacing: 0.02em;
}
.noir-em {
  font-family: 'Special Elite', serif;
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--cream); letter-spacing: 0.04em;
}

/* ── MOBILE ─────────────────────────────────────── */
@media (max-width: 640px) {
  .noir-content { padding: 28px 18px 48px; }
  .page-title { font-size: 28px; }
}
