/* ══════════════════════════════════════════════════════════════════════════
   Casa del Mafia — noir "case file" design system
   Brief wins: black + blood + brass, wanted-poster world. 0px radius, hairlines.
   ══════════════════════════════════════════════════════════════════════════ */
:root {
  --bg:      #0a0a0b;
  --paper:   #101012;   /* alt bands */
  --panel:   #141417;   /* cards */
  --ink:     #ece7db;   /* bone */
  --muted:   #948d80;
  --blood:   #c1121f;
  --blood-hi:#e01e2b;
  --brass:   #c6a15b;
  --rule:    rgba(236,231,219,.14);
  --rule-2:  rgba(236,231,219,.28);

  --maxw: 1160px;
  --pad: clamp(20px, 5vw, 72px);
  --display: "Playfair Display", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, iframe, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.04; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

/* Film grain over the whole page (subject atmosphere, kept faint).
   On body::after so it sits in the root stacking context, above all content. */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .04; mix-blend-mode: screen;
}

/* ── Eyebrow (mono, case-file voice) ──────────────────────────────────────── */
.eyebrow {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 18px;
}
.eyebrow-tag { color: var(--bg); background: var(--blood); padding: 3px 8px; letter-spacing: .12em; font-weight: 700; }
.eyebrow-dot { color: var(--rule-2); }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 24px; cursor: pointer;
  font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: 0;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .06s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blood); color: #fff; }
.btn-primary:hover { background: var(--blood-hi); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn-line:hover { border-color: var(--brass); color: var(--brass); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 12px; }
.btn-block { width: 100%; }
.btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

/* ── Header ───────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 20px;
  padding: 14px var(--pad);
  background: rgba(10,10,11,.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand-mark { width: 22px; height: 22px; color: var(--blood); }
.brand-word { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: .01em; white-space: nowrap; }
.brand-word b { color: var(--blood); }
.nav { display: none; gap: 28px; }
.nav a { font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle { display: inline-flex; border: 1px solid var(--rule-2); }
.lang-toggle button {
  background: transparent; color: var(--muted); border: 0; cursor: pointer;
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .06em; padding: 8px 11px;
}
.lang-toggle button.is-active { background: var(--blood); color: #fff; }
.lang-toggle button:focus-visible { outline: 2px solid var(--brass); outline-offset: -2px; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero { padding: clamp(48px, 9vw, 104px) var(--pad) clamp(44px, 8vw, 88px); }
.hero-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.hero-title {
  font-size: clamp(52px, 13vw, 132px); font-weight: 900; line-height: .92; letter-spacing: -.01em;
  text-transform: uppercase; margin: 6px 0 0;
}
.hero-title em { font-style: italic; color: var(--blood); font-weight: 800; }
.hero-tagline {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .28em;
  color: var(--brass); font-size: clamp(12px, 2.6vw, 15px); margin: 22px 0 0;
}
.hero-sub { color: var(--muted); font-size: clamp(16px, 2.3vw, 19px); max-width: 52ch; margin: 20px 0 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }
.dossier {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(14px, 4vw, 56px);
  margin: 40px 0 0; padding-top: 22px; border-top: 1px solid var(--rule); max-width: 520px;
}
.dossier dd { overflow-wrap: anywhere; }
.dossier dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; color: var(--muted); margin: 0 0 4px; }
.dossier dd { font-family: var(--display); font-weight: 800; font-size: clamp(18px, 4vw, 26px); margin: 0; }

/* Wanted poster */
.wanted { display: flex; justify-content: center; }
.wanted-poster {
  position: relative; width: min(340px, 82vw); padding: 22px 22px 26px;
  background: linear-gradient(155deg, #16130e, #0d0b09);
  border: 2px solid var(--rule-2); text-align: center;
  box-shadow: 0 30px 70px rgba(0,0,0,.55);
}
.wanted-head { display: block; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 30px; color: var(--ink); }
.mugshot {
  position: relative; margin: 16px 0 14px; aspect-ratio: 4 / 5;
  border: 1px solid var(--rule-2); background: repeating-linear-gradient(90deg, #111 0 2px, #0c0c0d 2px 4px);
  display: grid; place-items: center; overflow: hidden;
}
.mugshot-mark { width: 46%; height: 46%; color: rgba(198,161,91,.42); }
.mugshot-scale {
  position: absolute; right: 0; top: 0; bottom: 0; width: 22px;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  padding: 8px 0; background: rgba(0,0,0,.35); border-left: 1px solid var(--rule);
  font-family: var(--mono); font-size: 9px; color: var(--muted);
}
.wanted-sub { display: block; font-family: var(--mono); text-transform: uppercase; letter-spacing: .22em; font-size: 11px; color: var(--muted); }
.stamp {
  position: absolute; top: 14px; right: -12px; transform: rotate(9deg);
  font-family: var(--mono); font-weight: 700; font-size: 15px; letter-spacing: .04em;
  color: var(--blood); border: 2px solid var(--blood); padding: 6px 10px; background: rgba(10,10,11,.6);
}

/* ── Sections ─────────────────────────────────────────────────────────────── */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(56px, 9vw, 108px) var(--pad); }
.band { max-width: none; background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.band > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.sec-head { max-width: 62ch; }
.sec-title { font-size: clamp(30px, 5.4vw, 52px); font-weight: 800; letter-spacing: -.01em; }
.sec-lead { color: var(--muted); font-size: clamp(16px, 2.2vw, 18px); margin: 16px 0 0; }

/* ── Facts ────────────────────────────────────────────────────────────────── */
.facts { display: grid; grid-template-columns: 1fr; gap: 0; margin: 40px 0 0; border-top: 1px solid var(--rule); }
.fact { padding: 26px 0; border-bottom: 1px solid var(--rule); }
.fact-icon { width: 26px; height: 26px; color: var(--brass); }
.fact h3 { font-size: 21px; font-weight: 800; margin: 14px 0 8px; }
.fact p { color: var(--muted); font-size: 15px; }

/* ── Suspects (signature) ─────────────────────────────────────────────────── */
.suspects { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 40px 0 0; }
.suspect {
  position: relative; padding: 24px 22px 22px; background: var(--panel);
  border: 1px solid var(--rule); border-left: 3px solid var(--rule-2);
  transition: transform .18s ease, border-color .18s ease;
}
.suspect:hover { transform: translateY(-3px); border-color: var(--rule-2); border-left-color: var(--brass); }
.suspect-red { border-left-color: var(--blood); }
.suspect-red:hover { border-left-color: var(--blood-hi); }
.suspect-code {
  position: absolute; top: 18px; right: 20px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--muted);
}
.suspect-red .suspect-code { color: var(--blood); }
.suspect-icon { width: 30px; height: 30px; color: var(--ink); }
.suspect h3 { font-size: 24px; font-weight: 800; margin: 14px 0 8px; }
.suspect p { color: var(--muted); font-size: 15px; max-width: 42ch; }

/* ── Timeline ─────────────────────────────────────────────────────────────── */
.timeline { list-style: none; padding: 0; margin: 40px 0 0; }
.tl { display: grid; grid-template-columns: auto 1fr; gap: 22px; padding: 24px 0; border-top: 1px solid var(--rule); }
.tl:last-child { border-bottom: 1px solid var(--rule); }
.tl-n { font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(34px, 7vw, 52px); color: var(--blood); line-height: 1; }
.tl h3 { font-size: 22px; font-weight: 800; margin: 4px 0 6px; }
.tl p { color: var(--muted); font-size: 15.5px; max-width: 56ch; }

/* ── Evidence wall ────────────────────────────────────────────────────────── */
.evidence { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 40px 0 0; }
.exhibit { margin: 0; background: #0d0d0f; border: 1px solid var(--rule); padding: 10px 10px 8px; }
.exhibit:nth-child(3n) { transform: rotate(-.6deg); }
.exhibit:nth-child(3n+2) { transform: rotate(.5deg); }
.exhibit-img {
  aspect-ratio: 1 / 1; display: grid; place-items: center;
  background: radial-gradient(130% 130% at 30% 10%, rgba(193,18,31,.16), transparent 55%), #121215;
  border: 1px solid var(--rule);
}
.exhibit-img svg { width: 34%; height: 34%; color: rgba(198,161,91,.4); }
.exhibit figcaption { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; color: var(--muted); margin-top: 8px; }

/* ── Reservation ──────────────────────────────────────────────────────────── */
.reserve-wrap { display: grid; grid-template-columns: 1fr; gap: 36px; }
.reserve-wrap > * { min-width: 0; }
.price-lead { font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--brass); margin: 22px 0 8px; font-size: 14px; }
.price-tag { display: flex; align-items: baseline; gap: 12px; margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--rule); }
.price-num { font-family: var(--display); font-weight: 900; font-size: clamp(44px, 9vw, 66px); color: var(--ink); line-height: 1; }
.price-unit { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.reserve-form { position: relative; background: var(--panel); border: 1px solid var(--rule); padding: clamp(24px, 4vw, 36px); padding-top: 40px; }
.form-tab {
  position: absolute; top: 0; left: clamp(24px,4vw,36px); transform: translateY(-50%);
  background: var(--blood); color: #fff; font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: .16em; padding: 6px 12px;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-2 > * { min-width: 0; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 15px; min-width: 0; }
.field input { min-width: 0; }
.field > span { font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; font-size: 11px; color: var(--muted); }
.field input {
  background: var(--bg); border: 1px solid var(--rule-2); border-radius: 0;
  color: var(--ink); font: 16px/1.2 var(--body); padding: 14px; width: 100%; min-height: 50px; color-scheme: dark;
}
.field input:focus { outline: 2px solid var(--blood); outline-offset: 1px; border-color: var(--blood); }
.hint { font-family: var(--mono); color: var(--muted); font-size: 11px; letter-spacing: .06em; }
.total-row {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--rule); margin-top: 6px; padding: 20px 0 22px;
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--muted);
}
.total-amount { color: var(--ink); font-family: var(--mono); font-size: 13px; }
.total-amount b { font-family: var(--display); color: var(--brass); font-size: 32px; font-weight: 900; }
.disclaimer { font-family: var(--mono); color: var(--muted); font-size: 11.5px; line-height: 1.6; margin-top: 14px; text-align: center; letter-spacing: .02em; }

.form-result { text-align: center; padding: 10px 0 4px; }
.result-stamp {
  display: inline-grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 16px;
  transform: rotate(-8deg); border: 3px solid var(--brass); color: var(--brass);
  font-family: var(--mono); font-weight: 700; font-size: 28px;
}
.result-stamp.err { border-color: var(--blood); color: var(--blood-hi); }
.form-result h3 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.form-result p { color: var(--muted); margin-bottom: 20px; }

/* ── Contact ──────────────────────────────────────────────────────────────── */
.contact-wrap { display: grid; grid-template-columns: 1fr; gap: 24px; margin: 40px 0 0; }
.contact-line { display: flex; gap: 13px; align-items: center; font-size: 17px; margin-bottom: 14px; }
.contact-icon { width: 20px; height: 20px; color: var(--brass); flex: none; }
.contact-coord { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--muted); margin: 6px 0 0; }
.contact-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.contact-map {
  position: relative; display: block; overflow: hidden; min-height: 300px;
  border: 1px solid var(--rule);
  background: radial-gradient(130% 130% at 70% 20%, rgba(193,18,31,.14), transparent 55%), #101013;
}
.map-fallback {
  position: absolute; inset: 0; z-index: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--muted); font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; text-align: center; padding: 20px;
}
.map-fallback-pin { width: 30px; height: 30px; color: var(--brass); }
.map-open { color: var(--brass); }
.contact-map iframe { position: relative; z-index: 1; display: block; width: 100%; height: 100%; min-height: 300px; border: 0; filter: grayscale(.35) contrast(1.05); }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer { text-align: center; padding: 56px var(--pad); border-top: 1px solid var(--rule); }
.footer-mark { width: 26px; height: 26px; color: var(--brass); margin-bottom: 12px; }
.site-footer .brand-word { display: block; font-size: 24px; }
.footer-tag { font-family: var(--mono); text-transform: uppercase; letter-spacing: .22em; color: var(--brass); font-size: 12px; margin-top: 10px; }
.footer-fine { font-family: var(--mono); color: var(--muted); font-size: 12px; letter-spacing: .04em; margin-top: 8px; }

/* ── Reveal on scroll (enhancement only: hidden state applies only when JS
   has marked the document, so no-JS and crawlers see everything) ──────────── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

.is-hidden { display: none !important; }

/* ── Desktop ──────────────────────────────────────────────────────────────── */
@media (min-width: 680px) {
  .facts { grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
  .fact { padding: 26px 0; }
  .suspects { grid-template-columns: repeat(2, 1fr); }
  .evidence { grid-template-columns: repeat(3, 1fr); }
  .reserve-wrap { grid-template-columns: 5fr 6fr; gap: 48px; align-items: start; }
  .reserve-intro { position: sticky; top: 96px; }
  .contact-wrap { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .nav { display: flex; }
  .hero-grid { grid-template-columns: 1.35fr 1fr; gap: 56px; }
  .facts { grid-template-columns: repeat(4, 1fr); column-gap: 32px; }
  .suspects { grid-template-columns: repeat(3, 1fr); }
}
/* Narrow screens: drop the redundant header CTA so the brand keeps one line. */
@media (max-width: 559px) {
  .header-actions .btn-sm { display: none; }
}

/* ── Reduced motion ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .exhibit { transform: none !important; }
  body::after, .grain { display: none; }
}
