/* ==========================================================================
   Ape-X gallery design system — THEME B: "After the Fall".
   Charred-earth dark gallery: rust, ember, moss, bone. Rustic-apocalyptic
   with modern touches (clean cards, generous space, amber glow).
   Gallery chrome only — artifacts inside .artifact-well and the platform
   frames keep their own styling (the fun stops at the artifact border).
   Mobile-first: single column, max-width container, no horizontal scroll.
   ========================================================================== */

:root {
  --paper: #16120e;        /* charred earth */
  --card: #221c15;         /* burnt timber */
  --ink: #ece3d1;          /* bone */
  --muted: #a4977f;        /* ash */
  --line: #3d3427;         /* scorched seam */
  --signage: #e0782f;      /* ember */
  --signage-dark: #b25419; /* cooling ember */
  --district-green: #8fb573; /* moss — the green that grows back */
  --apex: #d9a441;         /* amber — the apex highlight */
  --wa-green: #1faa55;
  --wa-green-dark: #128c43;
  --chip-bg: #2a2318;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", Georgia, "Times New Roman", serif;
  --display: "Avenir Next Condensed", "Arial Narrow", "Helvetica Neue", Impact, var(--sans);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(1100px 520px at 85% -8%, rgba(224, 120, 47, 0.07), transparent 60%),
    radial-gradient(900px 480px at -10% 30%, rgba(143, 181, 115, 0.04), transparent 55%),
    repeating-linear-gradient(115deg, rgba(236, 227, 209, 0.012) 0 2px, transparent 2px 7px);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; }
a { color: var(--signage); }

.wrap { max-width: 780px; margin: 0 auto; padding: 0 18px; }

/* --- Masthead ----------------------------------------------------------- */
.masthead {
  border-bottom: 3px solid var(--signage-dark);
  padding: 18px 0 14px;
  background: rgba(22, 18, 14, 0.92);
}
.masthead .wrap { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.masthead .brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 23px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.masthead .brand .x { color: var(--signage); }
.masthead .tagline { font-size: 13px; color: var(--muted); font-family: var(--sans); }
.crumb { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 14px 0 0; }
.crumb a { color: var(--muted); text-decoration: none; border-bottom: 1px dotted var(--muted); }

/* --- Chips (honesty labels) --------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.chip {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
  background: var(--chip-bg);
  border: 1px solid var(--line);
  color: var(--ink);
  white-space: normal; /* long chips must wrap on phone widths, not overflow */
}
.chip.fiction { border-color: var(--signage-dark); color: #f0a468; background: #2e1c10; }
.chip.layer { border-color: #4a6b3a; color: var(--district-green); background: #1d2617; }
.chip.outcome { border-color: #6b5c40; color: var(--ink); background: #2e281c; }

/* --- Hero (homepage) ----------------------------------------------------- */
.hero { padding: 44px 0 8px; }
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 40px;
  line-height: 1.06;
  margin: 0 0 16px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.hero h1 em { font-style: normal; color: var(--signage); }
.hero .lede { font-size: 18px; margin: 0 0 10px; max-width: 620px; }
.hero .honesty { font-size: 14.5px; color: var(--muted); max-width: 620px; margin: 0; }

/* --- Wings + exhibit cards ----------------------------------------------- */
.wing { margin: 48px 0 0; }
.wing-head { display: flex; align-items: baseline; gap: 10px; border-bottom: 2px solid var(--signage-dark); padding-bottom: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.wing-head .wing-no { font-family: var(--mono); font-size: 12px; color: var(--apex); letter-spacing: 0.15em; text-transform: uppercase; }
.wing-head h2 { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: 0.06em; text-transform: uppercase; margin: 0; }
.wing-head .status { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-left: auto; }
.wing-blurb { font-size: 14.5px; color: var(--muted); margin: 8px 0 18px; }

.exhibit-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 18px 14px;
  margin: 0 0 14px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
  transition: transform 0.08s ease, box-shadow 0.08s ease, border-color 0.08s ease;
}
.exhibit-card:hover { transform: translateY(-2px); border-color: var(--signage-dark); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(224, 120, 47, 0.15); }
.exhibit-card .kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--signage); margin: 0 0 6px; }
.exhibit-card h3 { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 6px; }
.exhibit-card .who { font-size: 14px; color: var(--muted); margin: 0 0 10px; font-family: var(--sans); }
.exhibit-card .teaser { font-size: 14.5px; margin: 0 0 12px; }
.exhibit-card .chips { margin: 0; }

.coming-row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 12px 4px; border-bottom: 1px dashed var(--line);
  color: var(--muted); font-size: 14px;
}
.coming-row .name { color: var(--ink); font-weight: 600; font-family: var(--sans); }
.coming-row .floor { font-family: var(--mono); font-size: 11px; margin-left: auto; white-space: nowrap; }

/* --- Cast strip ----------------------------------------------------------- */
.cast { margin: 52px 0 0; }
.cast-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 16px; }
.cast-card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.cast-card .name { font-weight: 700; font-size: 14px; margin: 10px 0 2px; font-family: var(--sans); }
.cast-card .role { font-size: 12.5px; color: var(--muted); line-height: 1.4; font-family: var(--sans); }

.avatar {
  width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #f5eede; font-weight: 700; font-size: 16px; letter-spacing: 0.02em;
  font-family: var(--sans); flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--line);
}
.avatar.rania  { background: linear-gradient(135deg, #4e3372, #7a4f96); }
.avatar.bilal  { background: linear-gradient(135deg, #a3520f, #cf7d22); }
.avatar.sana   { background: linear-gradient(135deg, #2c5e46, #4e8a63); }
.avatar.omar   { background: linear-gradient(135deg, #26394d, #3f5f7d); }
.avatar.big { width: 64px; height: 64px; font-size: 22px; }

/* --- Exhibit page: character scene --------------------------------------- */
.scene { display: flex; gap: 16px; margin: 26px 0 0; align-items: flex-start; }
.scene .story { flex: 1; }
.scene h1 { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.1; margin: 0 0 8px; }
.scene .who { font-size: 14px; color: var(--muted); margin: 0 0 12px; font-weight: 600; font-family: var(--sans); }
.scene p { font-size: 16px; margin: 0 0 10px; }

.before-after {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin: 20px 0 0;
}
.ba-cell { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.ba-cell .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 6px; }
.ba-cell.before .label { color: var(--signage); }
.ba-cell.after .label { color: var(--district-green); }
.ba-cell p { font-size: 14px; margin: 0; }
@media (max-width: 560px) { .before-after { grid-template-columns: 1fr; } }

/* --- Section headings on exhibit pages ------------------------------------ */
.exhibit-section { margin: 46px 0 0; }
.exhibit-section > h2 {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--apex);
  border-bottom: 2px solid var(--signage-dark); padding-bottom: 8px; margin: 0 0 18px;
}
.exhibit-section > .section-note { font-size: 14px; color: var(--muted); margin: -8px 0 18px; }

/* --- The artifact well (fun stops here) ------------------------------------ */
.artifact-well { margin: 18px 0 0; }
.artifact-well .well-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 10px;
}
.artifact-well .well-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--district-green); box-shadow: 0 0 6px rgba(143, 181, 115, 0.6); }
.artifact-well .well-bar a { margin-left: auto; text-transform: none; letter-spacing: 0; }

/* Browser/email chrome around full-HTML deliverables — a lit screen in a dark
   room; the artifact inside stays boardroom-white. */
.delivery-frame {
  border: 1px solid #4a4033; border-radius: 10px; overflow: hidden;
  background: #fff; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(236, 227, 209, 0.04);
}
.delivery-frame .bar {
  display: flex; align-items: center; gap: 8px;
  background: #2a241c; border-bottom: 1px solid #3d3427;
  padding: 9px 12px;
}
.delivery-frame .bar .dots { display: flex; gap: 5px; }
.delivery-frame .bar .dots span { width: 10px; height: 10px; border-radius: 50%; display: block; }
.delivery-frame .bar .dots span:nth-child(1) { background: #e0705f; }
.delivery-frame .bar .dots span:nth-child(2) { background: #e5bd54; }
.delivery-frame .bar .dots span:nth-child(3) { background: #6fbf73; }
.delivery-frame .bar .subject {
  flex: 1; font-size: 12px; color: #b8ac95;
  font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: #16120e; border: 1px solid #3d3427; border-radius: 6px; padding: 3px 10px;
}
iframe.artifact-frame { display: block; width: 100%; border: 0; height: 900px; background: #fff; }

.illustrative-note {
  font-size: 13px; color: var(--muted); background: var(--chip-bg);
  border-left: 3px solid var(--signage); padding: 10px 14px; border-radius: 0 8px 8px 0;
  margin: 0 0 14px;
}

/* --- How it runs (friendly diagram) ---------------------------------------- */
.flow { display: flex; gap: 0; align-items: stretch; flex-wrap: wrap; }
.flow .node {
  flex: 1 1 140px; background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 14px; margin: 0 0 10px; position: relative;
}
.flow .node + .node { margin-left: 26px; }
.flow .node + .node::before {
  content: "→"; position: absolute; left: -22px; top: 50%; transform: translateY(-50%);
  color: var(--signage); font-size: 18px; font-weight: 700;
}
.flow .node .ico { font-size: 20px; margin: 0 0 6px; display: block; }
.flow .node .t { font-weight: 700; font-size: 14px; margin: 0 0 4px; font-family: var(--sans); }
.flow .node p { font-size: 12.5px; color: var(--muted); margin: 0; font-family: var(--sans); }
@media (max-width: 620px) {
  .flow { flex-direction: column; }
  .flow .node + .node { margin-left: 0; margin-top: 16px; }
  .flow .node + .node::before { content: "↓"; left: 50%; top: -21px; transform: translateX(-50%); }
}

/* --- The plaque -------------------------------------------------------------- */
.plaque {
  background: var(--card); border: 1px solid var(--line); border-left: 5px solid #4a6b3a;
  border-radius: 8px; padding: 18px 20px;
}
.plaque .layer-line { font-size: 15px; margin: 0 0 14px; }
.plaque .layer-line strong { color: var(--district-green); }
.plaque dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.plaque dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); align-self: baseline; }
.plaque dd { margin: 0; }

/* --- Funnel block --------------------------------------------------------------- */
.funnel {
  margin: 52px 0 0;
  background: linear-gradient(150deg, #2c1709, #452009 70%, #3a1c0a);
  border: 1px solid rgba(224, 120, 47, 0.35);
  color: var(--ink);
  border-radius: 12px; padding: 28px 22px; text-align: center;
}
.funnel h2 { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: 0.05em; text-transform: uppercase; margin: 0 0 8px; }
.funnel p { font-size: 14.5px; color: #d3c3a8; margin: 0 auto 18px; max-width: 480px; }
.btn-wa {
  display: inline-block; background: var(--wa-green); color: #fff;
  font-weight: 700; font-size: 16px; text-decoration: none; font-family: var(--sans);
  padding: 14px 26px; border-radius: 999px;
  box-shadow: 0 4px 18px rgba(31, 170, 85, 0.3);
}
.btn-wa:hover { background: var(--wa-green-dark); }
.funnel .giveaway { display: block; margin-top: 16px; font-size: 14px; color: var(--ink); }
.funnel .giveaway a { color: var(--apex); }

/* --- Site footer --------------------------------------------------------------- */
.site-footer { margin: 44px 0 0; border-top: 1px solid var(--line); padding: 18px 0 40px; font-size: 12.5px; color: var(--muted); font-family: var(--sans); }
.site-footer .wrap { display: flex; gap: 14px; flex-wrap: wrap; }

/* ==========================================================================
   PLATFORM FRAMES — WhatsApp / LinkedIn / X / Instagram / assistant chat.
   Deliverable territory: these mimic the real platforms and are NOT themed.
   Deliverable text inside is verbatim artifact content.
   ========================================================================== */

.frame-label {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); margin: 26px 0 12px; font-family: var(--mono);
}

/* ---- WhatsApp ---- */
.wa-frame { border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 10px 28px rgba(0,0,0,0.5); background: #efeae2; }
.wa-header { background: #075e54; color: #fff; padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.wa-back { font-size: 18px; opacity: 0.85; }
.wa-av { width: 38px; height: 38px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.wa-title { font-size: 16px; font-weight: 500; line-height: 1.2; font-family: var(--sans); }
.wa-sub { font-size: 12px; opacity: 0.85; margin-top: 2px; font-family: var(--sans); }
.wa-body {
  background-color: #efeae2;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,0.45) 0, transparent 3%),
    radial-gradient(circle at 78% 32%, rgba(255,255,255,0.35) 0, transparent 4%),
    radial-gradient(circle at 38% 70%, rgba(255,255,255,0.3) 0, transparent 3%),
    radial-gradient(circle at 88% 84%, rgba(255,255,255,0.4) 0, transparent 4%);
  padding: 22px 14px; min-height: 120px;
}
.wa-bubble {
  background: #fff; border-radius: 8px; padding: 8px 12px 22px;
  max-width: 88%; position: relative; box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
  font-size: 14.5px; color: #111b21; line-height: 1.45; font-family: var(--sans);
  white-space: pre-wrap; word-wrap: break-word; margin: 0 0 10px;
}
.wa-bubble::before {
  content: ""; position: absolute; left: -8px; top: 0; width: 0; height: 0;
  border-style: solid; border-width: 0 10px 10px 0;
  border-color: transparent #fff transparent transparent;
}
.wa-bubble.out { background: #d9fdd3; margin-left: auto; }
.wa-bubble.out::before { left: auto; right: -8px; border-width: 10px 10px 0 0; border-color: #d9fdd3 transparent transparent transparent; }
.wa-bubble a { color: #027eb5; text-decoration: none; }
.wa-meta { position: absolute; right: 10px; bottom: 4px; font-size: 11px; color: #667781; white-space: nowrap; }
.wa-check { color: #53bdeb; letter-spacing: -2px; margin-left: 2px; }
.wa-day { text-align: center; margin: 4px 0 12px; }
.wa-day span { background: #fff; border-radius: 8px; padding: 4px 10px; font-size: 12px; color: #54656f; box-shadow: 0 1px 0.5px rgba(0,0,0,0.13); font-family: var(--sans); }
.wa-input { background: #f0f2f5; padding: 8px 12px; display: flex; gap: 10px; align-items: center; color: #54656f; font-size: 14px; border-top: 1px solid #d4d4d4; font-family: var(--sans); }
.wa-input .field { flex: 1; background: #fff; padding: 8px 14px; border-radius: 20px; color: #999; }

/* ---- LinkedIn ---- */
.li-bg { background: #f3f2ef; padding: 14px; border-radius: 8px; }
.li-card { background: #fff; border-radius: 8px; box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 1px 0 rgba(0,0,0,0.05); color: rgba(0,0,0,0.9); font-size: 14px; font-family: var(--sans); }
.li-head { padding: 12px 16px 0; display: flex; gap: 10px; }
.li-head-meta { flex: 1; }
.li-head .name { font-size: 14px; font-weight: 600; line-height: 1.2; }
.li-head .desc, .li-head .time { font-size: 12px; color: rgba(0,0,0,0.6); margin-top: 1px; }
.li-body { padding: 12px 16px 0; font-size: 14px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; color: rgba(0,0,0,0.9); }
.li-hashtag { color: #0a66c2; font-weight: 600; }
.li-body a { color: #0a66c2; text-decoration: none; }
.li-react { padding: 10px 16px 8px; display: flex; justify-content: space-between; font-size: 12px; color: rgba(0,0,0,0.55); flex-wrap: wrap; gap: 4px; }
.li-actions { border-top: 1px solid rgba(0,0,0,0.08); padding: 4px 6px; display: flex; gap: 2px; }
.li-btn { flex: 1; padding: 10px 4px; text-align: center; font-size: 13px; font-weight: 600; color: rgba(0,0,0,0.6); border-radius: 4px; line-height: 1.2; }

/* ---- X / Twitter ---- */
.x-card { background: #fff; border: 1px solid #eff3f4; border-radius: 16px; color: #0f1419; font-size: 15px; line-height: 1.3125; overflow: hidden; font-family: var(--sans); }
.x-tweet { padding: 12px 16px; display: flex; gap: 12px; border-bottom: 1px solid #eff3f4; }
.x-tweet:last-child { border-bottom: none; }
.x-tweet-left { display: flex; flex-direction: column; align-items: center; }
.x-thread-line { width: 2px; flex: 1; background: #cfd9de; margin-top: 4px; min-height: 0; }
.x-tweet:last-child .x-thread-line { display: none; }
.x-tweet-right { flex: 1; min-width: 0; }
.x-tweet-head { display: flex; align-items: center; gap: 4px; font-size: 15px; flex-wrap: wrap; }
.x-name { font-weight: 700; color: #0f1419; }
.x-verified { color: #1d9bf0; font-size: 14px; }
.x-handle, .x-sep, .x-time { color: #536471; font-weight: 400; }
.x-tweet-body { margin-top: 4px; font-size: 15px; color: #0f1419; white-space: pre-wrap; word-wrap: break-word; }
.x-tweet-body a { color: #1d9bf0; text-decoration: none; }
.x-tweet-footer { display: flex; justify-content: space-between; margin-top: 12px; max-width: 425px; color: #536471; font-size: 13px; }
.x-stat { display: flex; align-items: center; gap: 6px; }

/* ---- Instagram ---- */
.ig-card { background: #fff; border: 1px solid #dbdbdb; border-radius: 8px; max-width: 470px; margin: 0 auto; color: #262626; overflow: hidden; font-family: var(--sans); }
.ig-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #efefef; }
.ig-head .name-block { flex: 1; }
.ig-head .handle { font-size: 14px; font-weight: 600; }
.ig-head .loc { font-size: 12px; }
.ig-head .menu { font-size: 18px; letter-spacing: 3px; color: #262626; }
.ig-photo {
  width: 100%; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  color: #fff; text-align: center; padding: 28px 32px; position: relative;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,200,100,0.4) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(60,20,0,0.35) 0%, transparent 60%),
    linear-gradient(135deg, #c25e12 0%, #8f3417 55%, #4a1d0d 100%);
}
.ig-photo-hook { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 26px; line-height: 1.25; max-width: 360px; text-shadow: 0 2px 14px rgba(0,0,0,0.3); position: relative; }
.ig-actions { display: flex; padding: 8px 14px 4px; font-size: 22px; }
.ig-actions .left { display: flex; gap: 14px; flex: 1; }
.ig-likes { padding: 4px 14px 8px; font-size: 14px; font-weight: 600; }
.ig-caption { padding: 0 14px 6px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; color: #262626; }
.ig-caption .author { font-weight: 600; margin-right: 6px; }
.ig-caption .ig-hashtag { color: #00376b; }
.ig-time { padding: 4px 14px 14px; font-size: 10px; letter-spacing: 0.06em; color: #8e8e8e; text-transform: uppercase; }

/* ---- Assistant chat (playbook experience) — mimics the real assistant UI,
   so its interior stays light regardless of gallery theme. ---- */
.chat-frame { background: #fff; border: 1px solid #4a4033; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 28px rgba(0,0,0,0.5); }
.chat-header { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #eee7d8; background: #faf7f0; }
.chat-header .chat-ico { width: 30px; height: 30px; border-radius: 8px; background: #3f6f37; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.chat-header .chat-name { font-weight: 700; font-size: 14px; color: #23201a; font-family: var(--sans); }
.chat-header .chat-sub { font-size: 12px; color: #6f6a5e; font-family: var(--sans); }
.chat-body { padding: 18px 16px 8px; }
.chat-msg { margin: 0 0 16px; display: flex; }
.chat-msg .bubble {
  max-width: 92%; border-radius: 12px; padding: 12px 15px;
  font-size: 14.5px; line-height: 1.55; color: #1a1d21; font-family: var(--sans);
}
.chat-msg.user { justify-content: flex-end; }
.chat-msg.user .bubble { background: #eef0f4; color: #1a1d21; border-bottom-right-radius: 4px; }
.chat-msg.assistant .bubble { background: #f7f4ec; border: 1px solid #eee7d8; border-bottom-left-radius: 4px; width: 100%; }
.chat-msg .bubble p { margin: 0 0 10px; }
.chat-msg .bubble p:last-child { margin-bottom: 0; }
.chat-msg .bubble ul, .chat-msg .bubble ol { margin: 0 0 10px; padding-left: 20px; }
.chat-msg .bubble li { margin: 0 0 6px; }
.chat-msg .bubble h4 {
  margin: 0 0 8px; font-size: 12px; font-family: var(--mono);
  letter-spacing: 0.12em; text-transform: uppercase; color: #3f6f37;
}
.chat-msg .bubble .brief-block {
  background: #fff; border: 1px solid #e5decd; border-radius: 8px;
  padding: 14px 16px; margin: 10px 0 0;
  font-family: Georgia, "Times New Roman", serif; font-size: 14px;
}
.chat-msg .bubble .brief-block h5 { margin: 0 0 8px; font-size: 15px; }
.attachment {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid #d5d9e0; border-radius: 8px;
  padding: 8px 12px; font-size: 13px; font-family: var(--mono); color: #333;
  margin-bottom: 8px;
}
.attachment .paperclip { color: #6f6a5e; }
.chat-ellipsis { text-align: center; font-family: var(--mono); font-size: 12px; color: #8a8272; padding: 4px 0 16px; }

/* --- Cross-link strip between exhibits ------------------------------------ */
.next-exhibit { margin: 26px 0 0; font-size: 14px; }
.next-exhibit a { font-weight: 600; }

/* ==========================================================================
   Pitch pages — concepts, not working demos.
   ========================================================================== */

.chip.concept { border-color: #8a6d1f; color: var(--apex); background: #2a2210; }

.avatar.hina { background: linear-gradient(135deg, #7e2440, #a84a63); }

/* Thumbnail: a height-clamped mock with a fade-out and a corner tag */
.pitch-thumb { position: relative; max-height: 360px; overflow: hidden; border-radius: 12px; }
.pitch-thumb::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px;
  background: linear-gradient(to bottom, rgba(22, 18, 14, 0), var(--paper));
  pointer-events: none;
}
.thumb-tag {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--apex); color: #16120e; padding: 4px 9px; border-radius: 4px; opacity: 0.94;
}

/* Mini-document mock (brief-style thumbnails) — deliverable territory, stays
   boardroom-light against the dark gallery. */
.mini-doc { background: #fafaf7; padding: 20px 22px 26px; font-family: Georgia, "Times New Roman", serif; color: #1a1a1a; font-size: 13.5px; line-height: 1.5; border: 1px solid #4a4033; border-radius: 12px; }
.mini-doc .md-client { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: #666; margin: 0 0 4px; }
.mini-doc .md-title { font-size: 17px; color: #003a70; font-weight: bold; margin: 0 0 2px; line-height: 1.3; }
.mini-doc .md-meta { font-size: 11px; color: #666; margin: 0 0 14px; }
.mini-doc .md-item { margin: 0 0 12px; }
.mini-doc .md-item .h { font-weight: bold; font-size: 13.5px; margin: 0; }
.mini-doc .md-item .s { font-size: 12.5px; color: #333; margin: 2px 0 0; }

/* "What we'd build" bullets */
.build-list { list-style: none; padding: 0; margin: 0; }
.build-list li { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; margin: 0 0 10px; font-size: 14.5px; }
.build-list li strong { color: var(--district-green); }

/* Floor cross-links */
.floor-strip { margin: 22px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.7; }

/* --- Giveaway page: prompt blocks --------------------------------------- */
.step-list { counter-reset: step; list-style: none; padding: 0; margin: 0 0 8px; }
.step-list li { counter-increment: step; position: relative; padding: 0 0 14px 44px; font-size: 15px; }
.step-list li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 28px; height: 28px; border-radius: 50%;
  background: #4a6b3a; color: #f5eede;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; font-family: var(--sans);
}
.prompt-block { background: var(--card); border: 1px solid var(--line); border-radius: 8px; margin: 0 0 12px; overflow: hidden; }
.prompt-block summary {
  cursor: pointer; padding: 14px 16px; font-weight: 700; font-size: 14.5px;
  display: flex; align-items: baseline; gap: 10px; list-style: none; font-family: var(--sans);
}
.prompt-block summary::-webkit-details-marker { display: none; }
.prompt-block summary::before { content: "▸"; color: var(--signage); }
.prompt-block[open] summary::before { content: "▾"; }
.prompt-block summary .hint { font-weight: 400; font-size: 12.5px; color: var(--muted); }
.prompt-block .prompt-body { border-top: 1px solid var(--line); position: relative; }
.prompt-block pre {
  margin: 0; padding: 16px 16px 18px; overflow-x: auto;
  font-family: var(--mono); font-size: 12px; line-height: 1.55;
  background: #0f0c09; color: #d8cdb8; white-space: pre-wrap; word-wrap: break-word;
}
.copy-btn {
  position: absolute; top: 10px; right: 10px;
  font-family: var(--mono); font-size: 11px; padding: 5px 12px;
  background: var(--signage-dark); color: #fff; border: 0; border-radius: 999px; cursor: pointer;
}
.copy-btn:hover { background: var(--signage); }
.dl-btn {
  display: inline-block; background: #3f6f37; color: #fff;
  font-weight: 700; font-size: 15px; text-decoration: none; font-family: var(--sans);
  padding: 13px 24px; border-radius: 999px;
}
.dl-btn:hover { background: #335c2c; }

/* Homepage: linked concept rows + floor labels */
a.coming-row { text-decoration: none; }
a.coming-row:hover .name { color: var(--signage); }
.coming-row .mini-chip {
  font-family: var(--mono); font-size: 10px; border: 1px solid var(--line);
  border-radius: 999px; padding: 2px 8px; color: var(--muted);
  white-space: nowrap; margin-left: auto;
}
.floor-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--apex); margin: 22px 0 2px;
}
