/* ============================================================
   NOIR DETAILING — design tokens & global styles
   ============================================================ */

:root {
  /* Surfaces — warm-tinted noir blacks */
  --bg:        #0a0a0b;
  --bg-2:      #0d0d0f;
  --panel:     #131316;
  --panel-2:   #19191d;
  --panel-3:   #202026;

  /* Lines */
  --line:      rgba(255,255,255,0.08);
  --line-2:    rgba(255,255,255,0.14);
  --line-3:    rgba(255,255,255,0.22);

  /* Text */
  --text:      #f1f1f3;
  --muted:     #9a9aa2;
  --faint:     #62626b;

  /* Accent (tweakable) — deep blood red */
  --accent:        #d11423;
  --accent-press:  #aa0f1b;
  --accent-soft:   rgba(209,20,35,0.14);
  --accent-glow:   rgba(209,20,35,0.42);

  /* Type */
  --font-display: "Saira Condensed", "Arial Narrow", sans-serif;
  --font-body:    "Manrope", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* Spacing rhythm */
  --maxw: 1280px;
  --pad: clamp(20px, 5vw, 80px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #fff; }

/* ---------- Custom scrollbar ---------- */
html { scrollbar-width: thin; scrollbar-color: #2c2c33 var(--bg); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: #2c2c33;
  border-radius: 99px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* film-grain / vignette overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background:
    radial-gradient(120% 90% at 50% 0%, transparent 55%, rgba(0,0,0,0.55) 100%);
  mix-blend-mode: multiply;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { position: relative; padding: clamp(72px, 11vw, 150px) 0; }
.section--alt { background: var(--bg-2); }

/* ---------- Type utilities ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow--muted { color: var(--muted); }
.eyebrow--muted::before { background: var(--line-3); }

.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.section-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(40px, 7vw, 92px);
  line-height: 0.9;
  letter-spacing: -0.01em;
  margin: 18px 0 0;
}
.lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); max-width: 56ch; }

.accent { color: var(--accent); }
.outline-text {
  color: transparent;
  -webkit-text-stroke: 1.4px var(--line-3);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--ease), background .3s, box-shadow .4s;
  border-radius: 2px;
}
.btn:hover { background: var(--accent-press); transform: translateY(-2px); box-shadow: 0 14px 40px -12px var(--accent-glow); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--ghost {
  background: transparent;
  border-color: var(--line-2);
  color: var(--text);
}
.btn--ghost:hover { background: rgba(255,255,255,0.04); border-color: var(--line-3); box-shadow: none; }

.btn--block { width: 100%; justify-content: center; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .hero__main, .hero__meta, .hero__side { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Striped image placeholder ---------- */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 13px),
    var(--panel);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ph__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: 99px;
  background: rgba(0,0,0,0.3);
}

/* utility */
.mono { font-family: var(--font-mono); }
.nowrap { white-space: nowrap; }
