/* coldlabs-frontend / assets/app.css
   Brutalist B&W. Helvetica Neue. Period-ended headlines.
   Pure #000 / #fff with grayscale secondary. One red accent reserved
   for PROTECTED_PARTY top-rule (alarm, not decoration). */

:root {
  --black: #000;
  --white: #fff;
  --gray-1: #eee;
  --gray-2: #ccc;
  --gray-3: #888;
  --gray-4: #555;
  --gray-5: #222;
  --alarm: #b00020;
  --rule: 1px solid var(--black);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.4;
}

a { color: inherit; text-decoration: underline; }
a:hover { background: var(--black); color: var(--white); text-decoration: none; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border-radius: 0;
}

/* ---------- Slides (alternating black/white sections) ---------- */
.slide {
  padding: 80px 64px;
  border-bottom: var(--rule);
}
.slide-black {
  background: var(--black);
  color: var(--white);
  border-bottom-color: var(--white);
}
.slide-black a:hover { background: var(--white); color: var(--black); }
.slide-inner { max-width: 1200px; margin: 0 auto; }

/* ---------- Headlines ---------- */
.headline-xl { font-size: 120px; font-weight: 700; line-height: 0.95; letter-spacing: -0.04em; margin: 0; }
.headline-l  { font-size: 64px;  font-weight: 700; line-height: 1.0;  letter-spacing: -0.03em; margin: 0; }
.headline-m  { font-size: 44px;  font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 24px; }
.headline-s  { font-size: 24px;  font-weight: 700; line-height: 1.1;  letter-spacing: -0.01em; margin: 0 0 12px; }
.subtitle    { color: var(--gray-3); font-size: 22px; margin: 16px 0 0; font-weight: 400; }
.body-text   { font-size: 16px; color: var(--gray-4); margin: 0 0 12px; }
.slide-black .body-text { color: var(--gray-2); }
.body-large  { font-size: 18px; color: var(--gray-5); }
.slide-black .body-large { color: var(--gray-1); }

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: var(--rule);
  background: var(--white);
}
.topbar .wordmark { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; }
.topbar .wordmark:hover { background: transparent; color: var(--black); }
.topbar nav a { margin-left: 24px; font-size: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border: 2px solid var(--black);
  background: var(--white);
  color: var(--black);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.btn:hover { background: var(--black); color: var(--white); }
.btn-primary { background: var(--black); color: var(--white); }
.btn-primary:hover { background: var(--white); color: var(--black); }
.slide-black .btn { border-color: var(--white); background: transparent; color: var(--white); }
.slide-black .btn:hover { background: var(--white); color: var(--black); }
.slide-black .btn-primary { background: var(--white); color: var(--black); }
.slide-black .btn-primary:hover { background: transparent; color: var(--white); }
.btn-sm { padding: 8px 16px; font-size: 13px; border-width: 1px; }
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.4; cursor: not-allowed; pointer-events: none;
}

/* ---------- Layout helpers ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 40px 32px; }
.row { display: flex; align-items: center; gap: 24px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.cols-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.col-rule { padding-top: 24px; border-top: var(--rule); }
.slide-black .col-rule { border-top-color: var(--white); }
.spacer-l { height: 48px; }
.spacer-m { height: 24px; }
.spacer-s { height: 12px; }
.thin-rule { border: none; border-top: var(--rule); margin: 32px 0; }

/* ---------- Forms ---------- */
.input, .select, .textarea {
  width: 100%;
  padding: 12px 14px;
  border: var(--rule);
  background: var(--white);
  color: var(--black);
}
.textarea { min-height: 80px; resize: vertical; font-family: inherit; }
.label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--black); margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.help { font-size: 12px; color: var(--gray-4); margin-top: 4px; }
.error { color: var(--alarm); font-size: 13px; margin-top: 8px; font-weight: 700; }

/* radio inline */
.radio-row label { margin-right: 20px; font-size: 14px; }
.radio-row input { margin-right: 6px; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--white);
  border: 2px solid var(--black);
  width: 480px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
}
.modal-l { width: 720px; }
.modal h2 { margin: 0 0 16px; font-size: 24px; font-weight: 700; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; border: var(--rule); }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: var(--rule); }
.table th {
  background: var(--black); color: var(--white);
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
}
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td { background: var(--gray-1); }
.table tr:last-child td { border-bottom: none; }

/* ---------- Sensitivity badges ---------- */
.badge {
  display: inline-block;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--black);
  background: var(--white);
  color: var(--black);
}
.badge-public      { background: var(--white); color: var(--black); }
.badge-internal    { background: var(--gray-1); color: var(--black); }
.badge-personal    { background: var(--gray-2); color: var(--black); }
.badge-regulated   { background: var(--gray-4); color: var(--white); border-color: var(--gray-4); }
.badge-protected   { background: var(--black); color: var(--white); border-color: var(--black); }
.badge-unknown     { background: var(--white); color: var(--gray-4); border-style: dashed; }
.badge-quarantined { background: var(--white); color: var(--alarm); border-color: var(--alarm); }
.badge-status      { background: var(--white); color: var(--black); }

/* ---------- Evidence grid ---------- */
.dropzone {
  border: 2px dashed var(--black);
  padding: 32px;
  text-align: center;
  background: var(--gray-1);
  cursor: pointer;
  margin-bottom: 24px;
}
.dropzone.drag { background: var(--black); color: var(--white); }
.dropzone .help { color: var(--gray-4); }
.dropzone.drag .help { color: var(--gray-2); }
.dropzone input[type="file"] { display: none; }

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.ev-card {
  border: var(--rule);
  padding: 16px;
  background: var(--white);
  position: relative;
  cursor: pointer;
}
.ev-card.protected-rule {
  border-top: 4px solid var(--alarm);
}
.ev-card .ev-format { font-size: 24px; margin-bottom: 8px; }
.ev-card .ev-title { font-weight: 700; margin: 0 0 6px; word-break: break-word; }
.ev-card .ev-meta { font-size: 11px; color: var(--gray-4); margin-top: 8px; word-break: break-all; }
.ev-card .ev-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.ev-card pre {
  background: var(--gray-1); padding: 12px; font-size: 11px;
  overflow-x: auto; white-space: pre-wrap; word-break: break-all;
  margin: 8px 0 0;
}
.ev-card .ev-detail { display: none; margin-top: 12px; border-top: var(--rule); padding-top: 12px; font-size: 13px; }
.ev-card.expanded .ev-detail { display: block; }
.ev-card.quarantined { background: var(--gray-1); }
.ev-card.quarantined::after {
  content: "QUARANTINED";
  position: absolute; top: 8px; right: 8px;
  background: var(--alarm); color: var(--white);
  padding: 2px 6px; font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
}

/* ---------- Map / Timeline / Entities ---------- */
.refusal {
  background: var(--black); color: var(--white);
  padding: 24px; margin-bottom: 24px;
  border: 2px solid var(--black);
}
.refusal h3 { margin: 0 0 12px; font-weight: 700; }
.refusal ul { margin: 0; padding-left: 20px; }
.refusal li { margin-bottom: 6px; }

#leaflet-map {
  height: 360px;
  border: var(--rule);
  background: var(--gray-1);
  margin-bottom: 24px;
}
.geo-empty {
  height: 120px; display: flex; align-items: center; justify-content: center;
  border: var(--rule); background: var(--gray-1);
  color: var(--gray-4); margin-bottom: 24px;
}

.timeline { list-style: none; padding: 0; margin: 0 0 24px; border: var(--rule); }
.timeline li {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: var(--rule);
  align-items: center;
}
.timeline li:last-child { border-bottom: none; }
.timeline .when { font-weight: 700; font-variant-numeric: tabular-nums; }
.timeline .what { font-size: 14px; }
.timeline .conf { color: var(--gray-4); font-size: 12px; }

.aggregate { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.stat { border: var(--rule); padding: 16px; }
.stat .stat-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-4); }
.stat .stat-value { font-size: 28px; font-weight: 700; margin-top: 6px; }

.edges-list { list-style: none; padding: 0; margin: 0 0 24px; }
.edges-list li {
  padding: 8px 12px; border-bottom: var(--rule);
  font-size: 14px; display: flex; justify-content: space-between;
}
.edges-list li:last-child { border-bottom: none; }

/* ---------- Section ---------- */
.section { margin-bottom: 48px; }
.section-head { margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; }

/* ---------- Loading / Empty ---------- */
.muted { color: var(--gray-4); }
.loading { padding: 32px; text-align: center; color: var(--gray-4); }
.empty { padding: 48px; text-align: center; color: var(--gray-4); border: 1px dashed var(--gray-3); }

/* ---------- Inline form rows ---------- */
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- Footer ---------- */
.footer { padding: 24px 32px; border-top: var(--rule); color: var(--gray-4); font-size: 12px; text-align: center; }

/* ---------- Code ---------- */
code, pre, .mono { font-family: "SFMono-Regular", Consolas, Menlo, monospace; }

/* =====================================================================
   Conversation thread (case.html refactor)
   Replaces the dense form/grid/map layout with a Claude-style thread.
   ===================================================================== */
.case-header {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 32px 0;
}
.case-header .row-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
  font-size: 13px;
  color: var(--gray-4);
}

.thread {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 32px 240px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.thread-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--gray-4);
  border: 1px dashed var(--gray-3);
  font-size: 14px;
}

.turn {
  border: var(--rule);
  padding: 14px 18px;
  background: var(--white);
  font-size: 15px;
  line-height: 1.5;
}
.turn-user {
  background: var(--gray-1);
  border-color: var(--gray-2);
}
.turn-system {
  background: var(--white);
}
.turn-prefix {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-4);
  margin-bottom: 6px;
}
.turn-user .turn-prefix { color: var(--gray-5); }

.turn-evidence {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.turn-evidence-icon {
  font-size: 22px;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}
.turn-evidence-body { flex: 1; min-width: 0; }
.turn-evidence-title {
  font-weight: 700;
  word-break: break-word;
  margin: 0 0 4px;
}
.turn-evidence-text {
  font-size: 14px;
  color: var(--gray-5);
  margin: 4px 0 0;
  word-break: break-word;
  white-space: pre-wrap;
}
.turn-evidence-meta {
  font-size: 12px;
  color: var(--gray-4);
  margin-top: 6px;
}
.turn-evidence-badges {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.turn-quarantined {
  border: 2px solid var(--alarm);
  background: #fff5f5;
}
.turn-quarantined .turn-prefix { color: var(--alarm); }

.turn-refusal {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.turn-refusal .turn-prefix { color: var(--white); }
.turn-refusal ul { margin: 8px 0 0; padding-left: 20px; }

.turn-finalized {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.turn-finalized h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; }
.turn-finalized p { margin: 4px 0; color: var(--gray-2); font-size: 14px; }
.turn-finalized .turn-prefix { color: var(--white); }
.turn-finalized .btn {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.turn-finalized .btn:hover { background: transparent; color: var(--white); }

.expand-trigger {
  display: inline-block;
  margin-top: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--gray-4);
  text-decoration: underline;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
}
.expand-trigger:hover { color: var(--black); }
.expand-content { display: none; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--gray-2); }
.turn.expanded > .expand-content { display: block; }
.turn.expanded > .expand-trigger::after { content: " · hide"; }

.provenance-edit {
  margin-top: 10px;
  padding: 12px;
  background: var(--gray-1);
  border: 1px dashed var(--gray-3);
  font-size: 13px;
  display: none;
}
.turn.editing .provenance-edit { display: block; }
.provenance-edit .row-2 { gap: 8px; }
.provenance-edit .field { margin-bottom: 8px; }
.provenance-edit .label { font-size: 10px; }
.provenance-edit .input,
.provenance-edit .select { font-size: 13px; padding: 8px 10px; }

.turn-map-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
}
.turn-map-stat {
  border: 1px solid var(--gray-2);
  padding: 10px;
}
.turn-map-stat .label {
  color: var(--gray-4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10px;
}
.turn-map-stat .value {
  font-size: 20px;
  font-weight: 700;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.turn-map h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 16px 0 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-4);
}
.turn-map .map-canvas {
  height: 240px;
  border: var(--rule);
  background: var(--gray-1);
  margin: 8px 0 4px;
}
.turn-map .map-empty {
  font-size: 13px;
  color: var(--gray-4);
  font-style: italic;
}
.turn-map .timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid var(--gray-2);
}
.turn-map .timeline-list li {
  display: grid;
  grid-template-columns: 140px 1fr 60px;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--gray-2);
  font-size: 14px;
  align-items: baseline;
}
.turn-map .timeline-list li:last-child { border-bottom: none; }
.turn-map .timeline-list .when { font-weight: 700; font-variant-numeric: tabular-nums; }
.turn-map .timeline-list .conf { color: var(--gray-4); font-size: 12px; text-align: right; }
.turn-map .entity-list,
.turn-map .edge-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.turn-map .entity-list li,
.turn-map .edge-list li {
  padding: 6px 12px;
  border-bottom: 1px solid var(--gray-2);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.turn-map .entity-list li:last-child,
.turn-map .edge-list li:last-child { border-bottom: none; }
.turn-map .muted { color: var(--gray-4); font-size: 13px; }

.suggest-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.suggest-pill {
  font-size: 13px;
  padding: 8px 14px;
  border: 1px solid var(--gray-3);
  cursor: pointer;
  background: var(--white);
  color: var(--black);
  font-family: inherit;
}
.suggest-pill:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.suggest-pill[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Sticky composer at bottom of case page */
.composer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  border-top: var(--rule);
  padding: 14px 24px;
  z-index: 50;
}
.composer.drag {
  background: var(--gray-1);
  box-shadow: inset 0 0 0 2px var(--black);
}
.composer-inner {
  max-width: 800px;
  margin: 0 auto;
}
.composer-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.composer-textarea {
  flex: 1;
  min-height: 52px;
  max-height: 180px;
  resize: none;
  padding: 12px 14px;
  border: var(--rule);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  background: var(--white);
}
.composer-textarea:focus { outline: 2px solid var(--black); outline-offset: -2px; }
.composer-actions { display: flex; gap: 6px; align-items: stretch; }
.composer-actions .btn { padding: 0 16px; font-size: 14px; min-height: 52px; }
.composer-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--gray-4);
  margin-top: 8px;
  align-items: center;
  justify-content: space-between;
}
.composer-meta .meta-left { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.composer-meta .meta-right { display: flex; gap: 10px; align-items: center; }
.composer-meta a, .composer-meta button {
  color: var(--gray-4);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: 12px;
}
.composer-meta a:hover, .composer-meta button:hover { color: var(--black); background: none; }
.composer input[type="file"] { display: none; }

.error-banner {
  margin: 12px 0;
  padding: 10px 14px;
  border: 2px solid var(--alarm);
  color: var(--alarm);
  background: #fff5f5;
  font-size: 14px;
}
.muted-line {
  font-size: 13px;
  color: var(--gray-4);
  margin: 4px 0;
}

@media (max-width: 720px) {
  .turn-map-stats { grid-template-columns: 1fr 1fr; }
  .turn-map .timeline-list li { grid-template-columns: 1fr; }
}

/* =====================================================================
   Conversation polish — entrance animations, pulse, image previews,
   better empty state, smoother composer.
   ===================================================================== */
@keyframes turn-enter {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.turn { animation: turn-enter 0.22s ease-out; }

@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}
.badge-pulse { animation: pulse-soft 1.4s ease-in-out infinite; }

.turn-evidence-thumb {
  display: block;
  margin: 8px 0 4px;
  max-width: 320px;
  max-height: 180px;
  width: auto;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--gray-3);
  background: var(--gray-1);
}

.thread-empty {
  text-align: center;
  padding: 64px 32px;
  border: 2px dashed var(--gray-3);
  background: var(--gray-1);
  color: var(--gray-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.thread-empty .empty-glyph {
  font-size: 40px;
  line-height: 1;
  color: var(--black);
  margin-bottom: 8px;
  letter-spacing: -0.04em;
}
.thread-empty .empty-headline {
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
}
.thread-empty .empty-hint { font-size: 14px; line-height: 1.5; max-width: 460px; }
.thread-empty kbd {
  font-family: "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
  padding: 1px 6px;
  background: var(--white);
  border: 1px solid var(--gray-3);
  border-bottom-width: 2px;
  border-radius: 2px;
}

/* Map skeleton */
.map-skeleton {
  border: var(--rule);
  padding: 20px 18px;
  background: var(--white);
}
.map-skeleton-row {
  height: 14px;
  background: linear-gradient(90deg, var(--gray-1) 0%, var(--gray-2) 50%, var(--gray-1) 100%);
  background-size: 200% 100%;
  margin: 8px 0;
  animation: shimmer 1.4s ease-in-out infinite;
}
.map-skeleton-row.short { width: 40%; }
.map-skeleton-row.med { width: 70%; }
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Action-bar buttons (in composer footer) — make tappable + visible */
.composer-meta .meta-right button {
  font-size: 13px;
  padding: 6px 12px;
  border: 1px solid var(--gray-3);
  text-decoration: none;
  color: var(--black);
  background: var(--white);
  font-weight: 600;
  cursor: pointer;
}
.composer-meta .meta-right button[disabled] {
  color: var(--gray-3);
  border-color: var(--gray-2);
  cursor: not-allowed;
  background: var(--gray-1);
}
.composer-meta .meta-right button:not([disabled]):hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
  text-decoration: none;
}

/* Auto-grow textarea — let it expand instead of scrolling internally */
.composer-textarea {
  overflow: hidden;
  transition: min-height 0.12s ease-out;
}

/* Provenance read-only display */
.provenance-display {
  margin-top: 10px;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 12px;
  font-size: 12px;
  background: var(--white);
  padding: 10px 12px;
  border: 1px solid var(--gray-2);
}
.provenance-display dt {
  color: var(--gray-4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10px;
  padding-top: 2px;
}
.provenance-display dd { margin: 0; word-break: break-all; }

/* =====================================================================
   Landing page animated scene
   Brutalist B&W — pure SVG + CSS keyframes, ~10s loop.
   ===================================================================== */
.scene-wrap {
  max-width: 1100px;
  margin: 0 auto;
}
.scene-headline {
  margin-bottom: 24px;
}
.scene {
  position: relative;
  border: 2px solid var(--white);
  background: var(--black);
  padding: 32px 28px 28px;
  overflow: hidden;
}
.slide:not(.slide-black) .scene {
  border-color: var(--black);
  background: var(--white);
}
.scene-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1000 / 280;
  min-height: 200px;
  margin-bottom: 32px;
}
.scene-stage svg {
  width: 100%;
  height: 100%;
  display: block;
}
.scene-taglines {
  position: relative;
  height: 32px;
  margin-bottom: 12px;
}
.scene-tagline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
  opacity: 0;
}
.slide:not(.slide-black) .scene-tagline { color: var(--black); }
.scene-frame-list { font-size: 13px; color: var(--gray-2); margin: 18px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.slide:not(.slide-black) .scene-frame-list { color: var(--gray-4); }
.scene-frame-list li {
  border-top: 1px solid var(--gray-4);
  padding-top: 10px;
  font-weight: 600;
}
.scene-frame-list li.active { border-top-color: var(--white); color: var(--white); }
.slide:not(.slide-black) .scene-frame-list li.active { border-top-color: var(--black); color: var(--black); }

/* Phase keyframes (10s loop, 4 phases × 2.5s each) */
@keyframes phase-1 {
  0%, 25% { opacity: 1; }
  26%, 100% { opacity: 0; }
}
@keyframes phase-2 {
  0%, 25% { opacity: 0; }
  26%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
@keyframes phase-3 {
  0%, 50% { opacity: 0; }
  51%, 75% { opacity: 1; }
  76%, 100% { opacity: 0; }
}
@keyframes phase-4 {
  0%, 75% { opacity: 0; }
  76%, 100% { opacity: 1; }
}
.scene .phase-1 { animation: phase-1 10s ease-in-out infinite; }
.scene .phase-2 { animation: phase-2 10s ease-in-out infinite; }
.scene .phase-3 { animation: phase-3 10s ease-in-out infinite; }
.scene .phase-4 { animation: phase-4 10s ease-in-out infinite; }
.scene .tag-1 { animation: phase-1 10s ease-in-out infinite; }
.scene .tag-2 { animation: phase-2 10s ease-in-out infinite; }
.scene .tag-3 { animation: phase-3 10s ease-in-out infinite; }
.scene .tag-4 { animation: phase-4 10s ease-in-out infinite; }

/* Per-icon stagger inside phase-1 */
@keyframes drop-in {
  0%   { opacity: 0; transform: translateY(-12px); }
  100% { opacity: 1; transform: translateY(0); }
}
.scene .drop-1 { animation: drop-in 0.4s ease-out 0.2s both; }
.scene .drop-2 { animation: drop-in 0.4s ease-out 0.5s both; }
.scene .drop-3 { animation: drop-in 0.4s ease-out 0.8s both; }
.scene .drop-4 { animation: drop-in 0.4s ease-out 1.1s both; }

/* Phase 2 — line draw */
@keyframes line-draw {
  0%   { stroke-dashoffset: 200; }
  100% { stroke-dashoffset: 0; }
}
.scene .line-grow {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: line-draw 1.4s ease-out 0.2s forwards;
}

/* Phase 3 — refused block grow */
@keyframes box-grow {
  0%   { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.scene .box-grow { transform-origin: 50% 50%; animation: box-grow 0.4s ease-out 0.2s both; }

/* Phase 4 — sealed pdf slide-up */
@keyframes seal-up {
  0%   { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.scene .seal-up { animation: seal-up 0.5s ease-out 0.2s both; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .turn { animation: none; }
  .badge-pulse { animation: none; }
  .scene .phase-1, .scene .phase-2, .scene .phase-3, .scene .phase-4 { animation: none; opacity: 1; }
  .scene .tag-1, .scene .tag-2, .scene .tag-3, .scene .tag-4 { animation: none; opacity: 1; position: relative; bottom: auto; }
  .scene .drop-1, .scene .drop-2, .scene .drop-3, .scene .drop-4,
  .scene .line-grow, .scene .box-grow, .scene .seal-up { animation: none; opacity: 1; transform: none; stroke-dashoffset: 0; }
}
