/* RFQ Compare — Scenario Evidence Gallery
   Aesthetic: "procurement control-room" — dark, technical, editorial.
   Type: Bricolage Grotesque (display) · IBM Plex Sans (body) · IBM Plex Mono (ids/codes) */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
  /* base */
  --bg:        #0b0d12;
  --bg-2:      #0f121a;
  --panel:     #14181f;
  --panel-2:   #191e27;
  --line:      #262d39;
  --line-2:    #313a49;
  --ink:       #e9edf3;
  --muted:     #8b94a4;
  --faint:     #5b6472;

  /* signal accent */
  --accent:    #ff7a45;
  --accent-2:  #ffb43a;

  /* persona accents */
  --p-admin:     #a78bfa;
  --p-requester: #38bdf8;
  --p-office:    #fbbf24;
  --p-logistic:  #34d399;
  --p-foreman:   #fb7185;
  --p-cross:     #c4b5fd;

  /* status */
  --pass: #34d399;
  --warn: #fbbf24;
  --fail: #fb7185;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 18px 40px -22px rgba(0,0,0,.9);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 600px at 78% -8%, rgba(255,122,69,.10), transparent 60%),
    radial-gradient(900px 500px at 8% 4%, rgba(56,189,248,.07), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: .1px;
}
/* faint grid texture */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 0%, #000, transparent 78%);
}

a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }

/* ───── top bar ───── */
.topbar {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(11,13,18,.72);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 22px; height: 62px; }
.brand { display: flex; align-items: baseline; gap: 10px; font-family: 'Bricolage Grotesque'; font-weight: 700; font-size: 18px; letter-spacing: -.2px; }
.brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); align-self: center; }
.brand small { font-family: 'IBM Plex Mono'; font-weight: 500; font-size: 11px; color: var(--faint); letter-spacing: .5px; text-transform: uppercase; }
.topnav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.topnav a {
  font-family: 'IBM Plex Mono'; font-size: 12px; font-weight: 500; color: var(--muted);
  padding: 7px 11px; border-radius: 8px; border: 1px solid transparent; transition: .18s;
}
.topnav a:hover { color: var(--ink); border-color: var(--line-2); background: var(--panel); }
.topnav a.active { color: var(--bg); background: var(--accent); }

/* ───── hero ───── */
.hero { padding: 76px 0 40px; }
.eyebrow {
  font-family: 'IBM Plex Mono'; font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent-2); display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent-2); }
h1.title {
  font-family: 'Bricolage Grotesque'; font-weight: 700; font-size: clamp(34px, 6vw, 64px);
  line-height: 1.02; letter-spacing: -1.4px; margin: 0 0 18px;
}
h1.title em { font-style: normal; color: var(--accent); }
.lede { color: var(--muted); font-size: 17px; max-width: 640px; margin: 0 0 34px; }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 36px 0 8px; }
.stat {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; box-shadow: var(--shadow);
}
.stat .n { font-family: 'Bricolage Grotesque'; font-weight: 700; font-size: 34px; line-height: 1; letter-spacing: -1px; }
.stat .l { font-family: 'IBM Plex Mono'; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--faint); margin-top: 8px; }
.stat.accent .n { color: var(--accent); }

/* ───── persona nav cards (index) ───── */
.grid-personas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 18px 0 80px; }
.pcard {
  --c: var(--accent);
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-height: 168px;
  display: flex; flex-direction: column; transition: .2s; box-shadow: var(--shadow);
}
.pcard:hover { transform: translateY(-3px); border-color: var(--c); }
.pcard::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); opacity: .85; }
.pcard .pid { font-family: 'IBM Plex Mono'; font-size: 12px; color: var(--c); letter-spacing: 1px; }
.pcard h3 { font-family: 'Bricolage Grotesque'; font-weight: 700; font-size: 23px; margin: 10px 0 6px; letter-spacing: -.4px; }
.pcard p { color: var(--muted); font-size: 13.5px; margin: 0; }
.pcard .meta { margin-top: auto; display: flex; gap: 14px; padding-top: 16px; font-family: 'IBM Plex Mono'; font-size: 11.5px; color: var(--faint); }
.pcard .meta b { color: var(--ink); font-weight: 600; }
.pcard .go { position: absolute; right: 20px; bottom: 18px; color: var(--c); font-size: 20px; transition: .2s; }
.pcard:hover .go { transform: translateX(4px); }

/* ───── persona page header ───── */
.phead { padding: 70px 0 26px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.crumb { font-family: 'IBM Plex Mono'; font-size: 12px; color: var(--faint); margin-bottom: 18px; }
.crumb a:hover { color: var(--accent); }
.phead h1 { font-family: 'Bricolage Grotesque'; font-weight: 700; font-size: clamp(30px,5vw,50px); letter-spacing: -1px; margin: 0 0 12px; }
.phead h1 .badge { font-size: .4em; vertical-align: middle; }
.phead p { color: var(--muted); max-width: 680px; margin: 0; }

.badge {
  display: inline-block; font-family: 'IBM Plex Mono'; font-size: 11px; font-weight: 600;
  padding: 4px 9px; border-radius: 999px; letter-spacing: .5px; border: 1px solid;
}
.badge.persona { color: var(--c, var(--accent)); border-color: color-mix(in srgb, var(--c, var(--accent)) 45%, transparent); background: color-mix(in srgb, var(--c, var(--accent)) 12%, transparent); }
.badge.pass { color: var(--pass); border-color: color-mix(in srgb, var(--pass) 40%, transparent); background: color-mix(in srgb, var(--pass) 12%, transparent); }
.badge.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn) 12%, transparent); }
.badge.fail { color: var(--fail); border-color: color-mix(in srgb, var(--fail) 40%, transparent); background: color-mix(in srgb, var(--fail) 12%, transparent); }

/* ───── scenario card ───── */
.scn { margin-bottom: 22px; }
.scn-card {
  --c: var(--accent);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.scn-head { display: flex; align-items: flex-start; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.scn-id {
  font-family: 'IBM Plex Mono'; font-weight: 600; font-size: 13px; color: var(--bg);
  background: var(--c); padding: 6px 10px; border-radius: 8px; white-space: nowrap; letter-spacing: .5px;
}
.scn-titles { flex: 1; min-width: 0; }
.scn-titles h2 { font-family: 'Bricolage Grotesque'; font-weight: 700; font-size: 19px; margin: 0 0 4px; letter-spacing: -.3px; }
.scn-titles .file { font-family: 'IBM Plex Mono'; font-size: 11.5px; color: var(--faint); word-break: break-all; }
.scn-body { padding: 18px 22px 22px; }

/* steps */
.steps { list-style: none; counter-reset: s; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.steps li {
  counter-increment: s; position: relative; padding: 8px 12px 8px 40px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 13.5px; color: var(--ink);
}
.steps li::before {
  content: counter(s); position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  font-family: 'IBM Plex Mono'; font-size: 11px; font-weight: 600; color: var(--c);
  width: 20px; height: 20px; display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); border-radius: 6px;
}
.tests { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 18px; }
.tchip { font-family: 'IBM Plex Mono'; font-size: 11px; color: var(--muted); padding: 4px 9px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--bg-2); }

/* shot grid */
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 12px; }
.shot { cursor: zoom-in; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); transition: .18s; }
.shot:hover { border-color: var(--c); transform: translateY(-2px); }
.shot img { width: 100%; height: 122px; object-fit: cover; object-position: top; display: block; }
.shot .cap { font-family: 'IBM Plex Mono'; font-size: 10.5px; color: var(--muted); padding: 7px 9px; border-top: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.note { font-size: 13px; color: var(--muted); background: var(--bg-2); border-left: 2px solid var(--accent-2); padding: 10px 14px; border-radius: 0 8px 8px 0; margin: 0 0 18px; }
.empty { color: var(--faint); font-family: 'IBM Plex Mono'; font-size: 12.5px; padding: 14px 0; }

/* ───── footer ───── */
footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 30px 0 60px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; color: var(--faint); font-family: 'IBM Plex Mono'; font-size: 12px; }

/* ───── lightbox ───── */
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(6,8,11,.94); display: none; align-items: center; justify-content: center; padding: 32px; backdrop-filter: blur(4px); }
.lb.open { display: flex; }
.lb img { max-width: 94vw; max-height: 84vh; border-radius: 10px; border: 1px solid var(--line-2); box-shadow: 0 30px 80px -20px #000; }
.lb .lb-cap { position: fixed; bottom: 22px; left: 0; right: 0; text-align: center; font-family: 'IBM Plex Mono'; font-size: 12.5px; color: var(--muted); }
.lb .lb-x { position: fixed; top: 20px; right: 26px; font-size: 30px; color: var(--muted); cursor: pointer; line-height: 1; }
.lb .lb-x:hover { color: var(--accent); }

/* ───── reveal animation ───── */
.reveal { opacity: 0; transform: translateY(14px); animation: rise .6s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2,1fr); }
  .grid-personas { grid-template-columns: 1fr; }
  .topnav { display: none; }
}
