/* "See exactly what you get" — AEGIS OPTICS 2029 Interactive Briefing Console (site/proof.js) */
.proof { padding-top: clamp(70px, 11vh, 120px); }
.proof .section-head .lead { font-size: 18px; max-width: 40em; margin-inline: auto; }
.pf-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 20px auto 0; max-width: 820px; }
.pf-fact {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  background: rgba(18, 26, 42, 0.78); border: 1px solid var(--hair);
  font-size: 13.5px; font-weight: 650; color: var(--text-2);
}
.pf-fact.real { background: var(--gold-tint); border-color: rgba(255, 198, 41, 0.45); color: var(--signal); font-weight: 750; }
.pf-fact.real svg { width: 15px; height: 15px; }

.pf-grid { display: grid; gap: 22px; margin-top: 36px; }
.pf-grid > * { min-width: 0; }
@media (min-width: 980px) {
  .pf-grid { grid-template-columns: 300px minmax(0, 1fr); gap: 38px; align-items: start; }
  .pf-rail { position: sticky; top: 96px; }
}

/* Chapter Rail */
.pf-rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pf-rail button {
  position: relative; width: 100%; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px;
  align-items: start; text-align: left; padding: 11px 14px 12px; border: 1px solid transparent; border-radius: 16px;
  background: transparent; color: var(--text-2); font: inherit; cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s;
}
.pf-rail li.on button { background: var(--surface); border-color: rgba(255, 198, 41, 0.35); color: var(--text); box-shadow: var(--shadow); }
.pf-rail button:hover { color: var(--text); }
.pf-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--fill); font: 900 13.5px var(--display); color: var(--text-3); transition: background 0.3s, color 0.3s; }
.pf-rail li.on .pf-n { background: var(--signal); color: var(--obsidian); }
.pf-tx { display: grid; gap: 3px; min-width: 0; }
.pf-t { font-weight: 750; font-size: 15.5px; letter-spacing: -0.005em; }
.pf-s { font-size: 13.5px; line-height: 1.35; color: var(--text-3); }
.pf-bar { grid-column: 2; height: 3px; margin-top: 8px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.pf-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--signal)); }
.pf-rail li.on .pf-bar i { animation: pf-fill 5.6s linear forwards; }
.pf-rail.paused li.on .pf-bar i { animation-play-state: paused; }
@keyframes pf-fill { from { width: 0; } to { width: 100%; } }
@media (max-width: 979px) {
  .pf-fact { font-size: 13px; padding: 6px 11px; }
  .pf-rail ol { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .pf-rail ol::-webkit-scrollbar { display: none; }
  .pf-rail li { flex: none; scroll-snap-align: start; }
  .pf-rail button { grid-template-columns: 26px auto; column-gap: 9px; align-items: center; padding: 9px 14px 9px 9px; border-radius: 999px; background: var(--surface); border: 1px solid var(--hair); white-space: nowrap; }
  .pf-rail li.on button { border-color: var(--signal); }
  .pf-n { width: 24px; height: 24px; font-size: 13px; }
  .pf-s { display: none; }
  .pf-bar { position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; margin: 0; background: transparent; }
}

/* Titanium Briefing Viewport */
.pf-device {
  max-width: 100%;
  background: linear-gradient(160deg, #24314a 0%, #0d1320 45%, #070b13 100%);
  border-radius: 30px; padding: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 50px 100px -42px rgba(0, 0, 0, 0.92), 0 0 60px -24px rgba(20, 219, 203, 0.2);
}
.pf-chrome { display: flex; align-items: center; gap: 12px; padding: 6px 10px 12px; color: var(--text-2); font-size: 13px; font-weight: 600; }
.pf-dots { display: inline-flex; gap: 6px; }
.pf-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.pf-url {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 0;
  padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text); font-family: var(--mono); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pf-url svg { width: 14px; height: 14px; color: var(--cyan); flex: none; }
.pf-live { white-space: nowrap; color: var(--signal); font-family: var(--mono); font-size: 12px; }
@media (max-width: 560px) { .pf-live { display: none; } }

.pf-screen {
  position: relative; background: #070a12; border-radius: 22px; height: clamp(540px, 74vh, 760px);
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 18px 16px 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.18) transparent; outline-offset: 4px;
}
.pf-screen .brief { max-width: none; padding-top: 0; gap: 14px; }
.pf-screen .brief-head { position: static; padding: 2px 4px 4px; }
.pf-screen .brief-head .h2 { font-size: clamp(38px, 6vw, 56px); }
.pf-screen .brief .card { padding: 20px; }
.pf-screen .brief > .map-hero { margin: 0; border-radius: var(--radius-l); }
.pf-screen .actions .btn { pointer-events: none; }

/* Interactive Day/Night Vector Map of Central Rome */
.pf-map {
  height: clamp(320px, 46vh, 430px); position: relative;
  --m-bg: #121c2e; --m-road: #283a5c; --m-minor: #1b2842; --m-park: #112a2b; --m-rail: #233350; --m-text: #eef4ff; --m-metro: rgba(20, 219, 203, 0.5);
  transition: background 0.8s;
}
.pf-map.pf-night {
  --m-bg: #070b14; --m-road: #1b263d; --m-minor: #111929; --m-park: #0a1b1d; --m-rail: #162033; --m-text: rgba(242, 245, 251, 0.9); --m-metro: rgba(255, 198, 41, 0.45);
}
.pf-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pf-map .map-tools { position: absolute; top: 12px; left: 12px; right: auto; }
.pf-svg path { fill: none; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.8s, fill 0.8s; }
.pf-bg { fill: var(--m-bg); transition: fill 0.8s; }
.pf-parks { fill: var(--m-park); stroke: none; }
.pf-track { stroke: var(--m-rail); stroke-width: 3px; }
.pf-minor { stroke: var(--m-minor); stroke-width: 4px; }
.pf-major { stroke: var(--m-road); stroke-width: 9px; }
.pf-metro { stroke: var(--m-metro); stroke-width: 4px; stroke-dasharray: 2 10; }

.pf-zone { --c: var(--alert); --edge: #ffc629; }
.pf-map:not(.night) .pf-zone[data-day='unsafe'], .pf-map.pf-night .pf-zone[data-night='unsafe'] { --c: var(--unsafe); --edge: #ff6e24; }
.pf-map:not(.night) .pf-zone[data-day='safe'], .pf-map.pf-night .pf-zone[data-night='safe'] { --c: var(--safe-bright); --edge: var(--safe-bright); }
.pf-map:not(.night) .pf-zone[data-day='dangerous'], .pf-map.pf-night .pf-zone[data-night='dangerous'] { --c: #ff3859; --edge: #ff3859; }
.pf-zone circle { transform-box: fill-box; transform-origin: center; transition: fill 0.8s, stroke 0.8s; }
.pf-zone .core { fill: var(--c); fill-opacity: 0.24; stroke: var(--c); stroke-width: 2.5px; }
.pf-zone .ring { fill: none; stroke: var(--c); stroke-width: 2px; opacity: 0; }
.pf-map.pf-night .pf-zone[data-night='unsafe'] .ring { animation: pf-ring 2.6s cubic-bezier(.2, .7, .3, 1) infinite; }
@keyframes pf-ring { 0% { transform: scale(0.8); opacity: 0.85; } 100% { transform: scale(1.7); opacity: 0; } }
.pf-zone text { font: 800 14.5px Inter, sans-serif; fill: var(--m-text); text-anchor: middle; paint-order: stroke; stroke: var(--m-bg); stroke-width: 4px; stroke-linejoin: round; transition: fill 0.8s, stroke 0.8s; }
.pf-stay circle { fill: #0a0f1a; stroke: var(--signal); stroke-width: 3px; }
.pf-stay text { font: 900 15px var(--display); fill: var(--signal); text-anchor: middle; }
.pf-sp circle { stroke: #fff; stroke-width: 2px; }
.pf-sp.police circle { fill: #1d4ed8; }
.pf-sp.pharmacy circle { fill: #0f766e; }
.pf-sp svg { color: #fff; }
.pf-safe { opacity: 0; transition: opacity 0.6s; }
.pf-map.pf-night .pf-safe, .pf-map.show-safe .pf-safe { opacity: 1; }
.pf-map .seg svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 5px; }

.pf-foot { position: absolute; left: 12px; right: 12px; bottom: 56px; display: grid; gap: 8px; }
.pf-cap {
  position: static; width: auto; max-width: none; white-space: normal; margin: 0; padding: 10px 14px;
  border-radius: 14px; background: rgba(9, 13, 22, 0.90); border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text); font-size: 14px; font-weight: 650; line-height: 1.35;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); animation: in 0.5s var(--ease) both;
}
.pf-map .map-legend {
  position: static; border: 1px solid rgba(255, 255, 255, 0.12); padding: 8px 12px; border-radius: 12px;
  background: rgba(9, 13, 22, 0.88); color: var(--text-2); font-size: 12.5px; gap: 6px 12px; display: flex; flex-wrap: wrap;
}
.pf-map .map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pf-map .map-legend .dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; display: inline-block; }

@media (prefers-reduced-motion: no-preference) {
  .pf-screen [data-ch]:not(.on) .meter i { transform: scaleX(0); animation: none; }
  .pf-screen [data-ch]:not(.on) :is(.says > li, .list > .item, .bul > li, .places > .place, .checks > .check, .sos > a, .card > .plan, .headline, .band > p, .band .lvl.big) { opacity: 0; }
  .pf-screen [data-ch].on :is(.says > li, .list > .item, .bul > li, .places > .place, .checks > .check, .sos > a, .card > .plan) { animation: in 0.55s var(--ease) both; animation-delay: calc(120ms + var(--i, 0) * 90ms); }
  .pf-screen [data-ch].on .band .lvl.big { animation: pf-stamp 0.6s cubic-bezier(.2, .9, .3, 1.2) 0.35s both; }
  .pf-screen [data-ch].on :is(.headline, .band > p) { animation: in 0.5s var(--ease) 0.55s both; }
  @keyframes pf-stamp { from { opacity: 0; transform: scale(0.8) rotate(-3deg); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .pf-rail li.on .pf-bar i { animation: none; width: 100%; } .pf-zone .ring { animation: none; } .pf-cap { animation: none; } }

.pf-screen .brief.has-map { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: none; }
.pf-screen .brief.has-map > *, .pf-screen .brief.has-map > .brief-head { grid-column: 1; }
.pf-screen .brief.has-map > .map-hero { grid-column: 1; grid-row: auto; position: relative; top: auto; margin: 0; border-radius: var(--radius-l); overflow: hidden; }
.pf-screen .brief.has-map > .map-hero + .band { margin-top: -42px; position: relative; z-index: 2; border-radius: 24px 24px var(--radius-l) var(--radius-l); }
.pf-screen .brief-head .meta { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 979px) { .pf-map .map-legend { font-size: 12px; gap: 4px 10px; padding: 7px 10px; white-space: nowrap; } .pf-map .map-legend > span:last-child { display: none; } .pf-cap { font-size: 13.5px; } }
