/* ============================================================
   ATRIUM — Agent Reception v2
   Gold-standard warm theme: cream, gold, ink + motion
   ============================================================ */

:root {
  --cream: #F6F3ED;
  --cream-2: #FCFBF8;
  --paper: #FFFDF8;
  --ink: #2A2620;
  --ink-soft: #4A453D;
  --gold: #B08D57;
  --gold-deep: #8F6F3F;
  --gold-soft: #D8C49A;
  --green: #5E7B6A;
  --red: #A6554B;
  --line: rgba(42, 38, 32, 0.12);
  --shadow-sm: 0 2px 10px rgba(42, 38, 32, 0.06);
  --shadow-md: 0 10px 34px rgba(42, 38, 32, 0.12);
  --shadow-lg: 0 24px 70px rgba(42, 38, 32, 0.18);
  --radius: 18px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  background: rgba(246, 243, 237, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1.1; }
.brand .mark {
  font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: 0.14em;
}
.brand .mark em { font-style: italic; color: var(--gold-deep); }
.brand .mark em {
  animation: emGlow 3.8s ease-in-out infinite;
}
@keyframes emGlow {
  0%,100% { text-shadow: 0 0 0 rgba(176,141,87,0); }
  50% { text-shadow: 0 0 9px rgba(176,141,87,0.55); }
}
.brand .sub { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-soft); }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a {
  text-decoration: none; color: var(--ink-soft); font-size: 14px; font-weight: 500;
  transition: color 0.2s;
}
.nav a:hover, .nav a.active { color: var(--gold-deep); }
.nav .cta {
  background: var(--ink); color: var(--cream-2) !important;
  padding: 9px 18px; border-radius: 999px; font-weight: 600;
}
.nav .cta:hover { background: var(--gold-deep); color: #fff !important; }
#soundToggle {
  background: none; border: 1px solid var(--line); border-radius: 999px;
  width: 38px; height: 38px; font-size: 17px; cursor: pointer; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Hero with animated reception ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  text-align: center;
  padding: 40px 24px 48px;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 50% -10%, #EFE6D2 0%, rgba(246,243,237,0) 60%),
    radial-gradient(900px 500px at 85% 100%, #EFE6D2 0%, rgba(246,243,237,0) 55%),
    linear-gradient(180deg, #F6F3ED 0%, #F1ECE1 100%);
}
#receptionCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 860px; }
.eyebrow {
  font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 600; margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--serif); font-size: clamp(46px, 8vw, 92px);
  font-weight: 500; line-height: 1.02; letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.hero h1 em { font-style: italic; color: var(--gold-deep); }
.lead {
  font-size: clamp(16px, 2.2vw, 20px); color: var(--ink-soft);
  max-width: 620px; margin: 0 auto 34px; font-weight: 300;
}
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  padding: 13px 26px; border-radius: 999px; border: none; cursor: pointer;
  text-decoration: none; transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}
.btn:hover { transform: translateY(-2px); }
.btn-ink { background: var(--ink); color: var(--cream-2); }
.btn-ink:hover { background: #1C1915; box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-outline:hover { background: rgba(42,38,32,0.05); }
.btn-gold { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%); color: #fff; box-shadow: 0 8px 24px rgba(143,111,63,0.35); }
.btn-gold:hover { box-shadow: 0 12px 30px rgba(143,111,63,0.45); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

.hero-art {
  position: relative; z-index: 2;
  margin: 0 0 44px;
  animation: floatIn 1.2s ease both;
}
.hero-art svg { width: min(940px, 94vw); height: auto; filter: drop-shadow(0 22px 46px rgba(42,38,32,0.16)); border-radius: 4px; }
@keyframes floatIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* the U in ATRIUM — a slow, glowing gold sheen; two soft peaks per 13s cycle
   (aligned with the diagonal hits of the SVG gradient sweep) */
.hero-art .gold-u { animation: uGlow 13s ease-in-out infinite; }
@keyframes uGlow {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(176,141,87,0.25)); }
  25%, 75% { filter: drop-shadow(0 0 10px rgba(212,168,96,0.8)); }
  50% { filter: drop-shadow(0 0 4px rgba(212,168,96,0.45)); }
}

/* live badge */
#liveBadge {
  position: absolute; top: 110px; right: 30px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  padding: 8px 14px; border-radius: 999px; background: rgba(255,253,248,0.85);
  border: 1px solid var(--line); backdrop-filter: blur(8px);
}
#liveBadge.live { color: #3E6B4F; border-color: rgba(94,123,106,0.35); }
#liveBadge.off { color: var(--ink-soft); }

/* privacy pill — hero */
.privacy-pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-deep);
  background: rgba(255, 253, 248, 0.75);
  border: 1px solid rgba(176, 141, 87, 0.45);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 18px;
  backdrop-filter: blur(6px);
  transition: border-color 0.2s;
}
.privacy-pill::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.15);
}
.privacy-pill:hover { border-color: var(--gold); }

/* ---------- Sections ---------- */
.section { padding: 84px 32px; max-width: 1180px; margin: 0 auto; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.section-head h2 {
  font-family: var(--serif); font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 500; line-height: 1.08; margin-bottom: 14px;
}
.section-head p { color: var(--ink-soft); font-weight: 300; font-size: 17px; }

/* ---------- Privacy strip ---------- */
.privacy-strip {
  max-width: 660px; margin: 0 auto;
  padding: 30px 24px 66px; text-align: center;
}
.privacy-strip .rule {
  width: 56px; height: 1px; margin: 0 auto 24px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.privacy-strip .eyebrow { margin-bottom: 12px; }
.privacy-strip h2 {
  font-family: var(--serif); font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 500; line-height: 1.15; margin-bottom: 12px;
}
.privacy-strip p {
  color: var(--ink-soft); font-weight: 300;
  font-size: 16px; line-height: 1.7; max-width: 540px; margin: 0 auto;
}

/* ---------- Agent floor ---------- */
.floor { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.agent-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px 24px; text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: cardIn 0.6s ease both;
  position: relative; overflow: hidden;
}
.agent-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold), var(--gold-soft));
  opacity: 0; transition: opacity 0.25s;
}
.agent-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.agent-card:hover::before { opacity: 1; }
@keyframes cardIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.avatar-wrap { position: relative; display: inline-block; }
/* gold gradient ring — gives the portrait "thickness" at any size */
.avatar-wrap::before {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  background: linear-gradient(160deg, rgba(176,141,87,0.8) 0%, rgba(176,141,87,0.15) 55%, rgba(176,141,87,0.55) 100%);
  z-index: 0; pointer-events: none;
}
.avatar-wrap.big {
  width: 150px;
  /* static 3D presentation: gentle tilt (no hover animation) */
  transform: perspective(700px) rotateX(2.5deg) rotateY(-3deg);
}
/* soft ground shadow under the large avatar only */
.avatar-wrap.big::after {
  content: ""; position: absolute; left: 6%; right: 6%; bottom: -12px; height: 20px;
  background: radial-gradient(ellipse at center, rgba(42,38,32,0.30) 0%, rgba(42,38,32,0) 70%);
  filter: blur(3px);
  z-index: 0; pointer-events: none;
}
.avatar-wrap svg { width: 100%; height: auto; border-radius: 50%; display: block; position: relative; z-index: 1; }
.avatar-wrap img.agent-face {
  width: 100%; height: auto; border-radius: 50%; display: block; position: relative; z-index: 1;
  animation: avatarFloat 6s ease-in-out infinite;
  transform-origin: 50% 80%;
  will-change: transform;
}
/* subtle professional motion — gentle lift + breath, slow and quiet */
@keyframes avatarFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-5px) scale(1.015); }
}
@media (prefers-reduced-motion: reduce) {
  .avatar-wrap img.agent-face { animation: none; }
}
.avatar-wrap .status-dot {
  position: absolute; bottom: 8px; right: 8px; width: 18px; height: 18px;
  background: #4C9A63; border: 3px solid var(--paper); border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(76,154,99,0.18);
  z-index: 2;
}

/* ---------- Duo avatar (Sipho & Lerato) — two discs, slight overlap ---------- */
.avatar-duo { position: relative; display: inline-flex; align-items: center; justify-content: center; z-index: 1; }
.avatar-duo::after {
  content: "+"; position: absolute; z-index: 3; width: 22px; height: 22px;
  background: var(--gold, #B08D57); color: #fff; font-weight: 700; font-size: 14px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--paper, #F6F3ED); box-shadow: 0 2px 8px rgba(42,38,32,0.25);
}
.avatar-duo img.agent-face {
  width: 56%; aspect-ratio: 1 / 1; border-radius: 50%; object-fit: cover;
  display: block; position: relative; z-index: 1;
  animation: avatarFloat 6s ease-in-out infinite;
  transform-origin: 50% 80%; will-change: transform;
}
.avatar-duo img.agent-face:first-child { margin-right: -8%; z-index: 2; }
.avatar-duo img.agent-face:last-child  { z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  .avatar-duo img.agent-face { animation: none; }
}
.avatar-wrap.big .avatar-duo { width: 150px; height: 150px; }
.avatar-wrap .avatar-duo { width: 100%; height: auto; }

.agent-card h3 { font-family: var(--serif); font-size: 26px; font-weight: 600; margin-top: 14px; }
.agent-card .role { color: var(--gold-deep); font-size: 13.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin: 2px 0 10px; }
.agent-card .bio { font-size: 14px; color: var(--ink-soft); font-weight: 300; margin-bottom: 14px; min-height: 44px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-bottom: 16px; }
.chip {
  font-size: 11.5px; font-weight: 500; color: var(--ink-soft);
  background: var(--cream); border: 1px solid var(--line);
  padding: 5px 11px; border-radius: 999px;
}
.rate-row { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.rate { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--ink); }
.rate-old { font-size: 13px; color: var(--red); text-decoration: line-through; opacity: 0.8; }
.setup { font-size: 12px; color: var(--ink-soft); }
.card-ctas { display: flex; gap: 10px; justify-content: center; }
.card-ctas .btn { flex: 1; justify-content: center; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.step {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}
.step:hover { transform: translateY(-4px); }
.step h3 { font-family: var(--serif); font-size: 24px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.step h3 .n {
  width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--cream-2);
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.step p { color: var(--ink-soft); font-weight: 300; font-size: 14.5px; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: stretch; }
.price-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; position: relative; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s;
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.price-card.hot { border: 1.5px solid var(--gold); box-shadow: 0 14px 44px rgba(143,111,63,0.18); }
.price-card .tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 16px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.price-card h3 { font-family: var(--serif); font-size: 27px; font-weight: 600; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 6px; }
.price .amount { font-family: var(--serif); font-size: 46px; font-weight: 700; color: var(--ink); }
.price .per { color: var(--ink-soft); font-size: 15px; }
.price-card .blurb { color: var(--ink-soft); font-size: 14px; font-weight: 300; margin-bottom: 16px; }
.price-card ul { list-style: none; margin-bottom: 22px; flex: 1; }
.price-card li { font-size: 14px; color: var(--ink-soft); padding: 6px 0 6px 26px; position: relative; border-bottom: 1px dashed var(--line); }
.price-card li:last-child { border-bottom: none; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-deep); font-weight: 700; }
.pricing-note { text-align: center; color: var(--ink-soft); font-size: 13px; margin-top: 22px; font-weight: 300; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  margin: 40px auto 0; max-width: 1180px;
  border-radius: 26px; padding: 70px 40px; text-align: center;
  background: linear-gradient(135deg, #2A2620 0%, #3A322A 100%);
  color: var(--cream-2);
}
.cta-band::before {
  content: ""; position: absolute; inset: -40% -20%;
  background: radial-gradient(500px 300px at 30% 20%, rgba(176,141,87,0.35), transparent 60%),
              radial-gradient(500px 300px at 75% 80%, rgba(176,141,87,0.22), transparent 60%);
  animation: drift 9s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translateX(-2%) translateY(-1%); } to { transform: translateX(2%) translateY(1%); } }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-family: var(--serif); font-size: clamp(30px, 4.4vw, 48px); font-weight: 500; margin-bottom: 12px; }
.cta-band p { color: rgba(246,243,237,0.75); font-weight: 300; margin-bottom: 28px; font-size: 17px; }
.cta-band .btn-outline { border-color: var(--cream-2); color: var(--cream-2); }
.cta-band .btn-outline:hover { background: rgba(246,243,237,0.1); }
/* dashboard variant: align the CTA band with the .dash container width */
.cta-band.dash-cta { max-width: 1100px; }

/* ---------- Footer ---------- */
footer {
  text-align: center; padding: 46px 24px 56px; color: var(--ink-soft);
  font-size: 13.5px; border-top: 1px solid var(--line); margin-top: 60px;
}
footer .small { letter-spacing: 0.24em; text-transform: uppercase; font-size: 11.5px; margin-bottom: 6px; color: var(--gold-deep); }

/* ---------- FAB ---------- */
.fab {
  position: fixed; bottom: 26px; right: 26px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #fff; font-family: var(--serif); font-size: 26px; font-weight: 700;
  box-shadow: 0 12px 34px rgba(143,111,63,0.45);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s;
  animation: fabIn 0.8s ease 0.6s both;
}
.fab:hover { transform: scale(1.08); }
@keyframes fabIn { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: scale(1); } }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(30, 26, 21, 0.55);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
  padding: 20px;
}
.modal-overlay.show { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--paper); border-radius: 22px; max-width: 900px; width: 100%;
  max-height: 88vh; overflow-x: hidden; overflow-y: auto;
  display: grid; grid-template-columns: 320px 1fr;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(0.98); transition: transform 0.25s;
}
.modal-overlay.show .modal { transform: none; }
/* Chat modals: give the grid a definite height so the row cannot exceed the
   box — the profile column scrolls internally and the chat footer (quick
   chips + input row) always stays visible instead of being clipped. */
.modal.modal-chat {
  height: min(88vh, 760px);
  grid-template-rows: minmax(0, 1fr);
}
.modal.modal-chat .profile-col { min-height: 0; overflow-y: auto; }
.modal.modal-chat .chat-col { min-height: 0; }
/* Reception chat: single wide column must span the whole grid, not sit in
   column 1 (320px) of the 2-col layout with dead space to its right. */
.modal.modal-chat > .chat-col.wide { grid-column: 1 / -1; }
/* Offer/hire flow: single centered column — the form must not sit in the
   left grid column of the 2-col chat layout with dead space to its right. */
.modal.modal-offer { grid-template-columns: 1fr; max-width: 640px; }
@media (max-width: 760px) {
  .topbar { padding: 10px 14px; gap: 10px; }
  .brand .sub { display: none; }
  .brand .mark { font-size: 22px; letter-spacing: 0.1em; white-space: nowrap; }
  .nav { gap: 12px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a, .nav .cta { white-space: nowrap; }
  .nav .cta { padding: 8px 13px; font-size: 13px; }
  /* live badge: pull out of absolute overlay, flow above the wooden panel */
  #liveBadge {
    position: relative; top: auto; right: auto;
    margin: 0 auto 22px;
    font-size: 11px; padding: 7px 13px;
  }
  .modal { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; }
  .modal.modal-chat { height: 92vh; grid-template-rows: minmax(0, 42%) minmax(0, 58%); }
  .modal.modal-chat > .chat-col.wide { grid-row: 1 / -1; }
}

.profile-col {
  background: var(--cream); padding: 30px 26px; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 16px;
}
.profile-col h3 { font-family: var(--serif); font-size: 28px; }
.profile-col .role { color: var(--gold-deep); font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.personality { font-style: italic; color: var(--ink-soft); font-size: 14.5px; font-family: var(--serif); }
.contract-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.contract-card h4 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 10px; }
.contract-card .row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.contract-card .row:last-child { border-bottom: none; }
.contract-card .row.locked { color: #3E6B4F; font-weight: 600; }
.compliance-note { font-size: 12.5px; color: var(--ink-soft); background: rgba(94,123,106,0.08); border-left: 3px solid var(--green); padding: 10px 12px; border-radius: 8px; }

.chat-col { display: flex; flex-direction: column; min-height: 560px; }
.chat-col.wide { min-height: 560px; }
.chat-head {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.chat-head .avatar-wrap { width: 46px; }
.chat-head .name { font-weight: 700; font-size: 16px; }
.chat-head .state { font-size: 12px; color: #3E6B4F; }
.chat-head .state:not(.live) { color: var(--ink-soft); }
.chat-head .close { margin-left: auto; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--ink-soft); }

.chat-body { flex: 1; min-height: 0; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; background: var(--cream-2); }
.msg { max-width: 82%; padding: 11px 15px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; animation: msgIn 0.25s ease; }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg.bot { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg.user { align-self: flex-end; background: var(--ink); color: var(--cream-2); border-bottom-right-radius: 5px; }
.msg.typing { display: flex; gap: 5px; align-items: center; padding: 14px 18px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-deep); animation: dot 1.2s infinite; }
.msg.typing i:nth-child(2) { animation-delay: 0.15s; }
.msg.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%,60%,100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-5px); opacity: 1; } }

.quick-row { display: flex; gap: 8px; padding: 10px 16px; flex-wrap: wrap; }
.quick {
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  font-size: 12.5px; font-weight: 500; color: var(--ink-soft);
  padding: 7px 14px; cursor: pointer; transition: all 0.15s;
}
.quick:hover { border-color: var(--gold); color: var(--gold-deep); background: var(--cream); }
.quick.offer-chip { border-color: var(--gold); color: var(--gold-deep); font-weight: 700; background: rgba(176,141,87,0.08); }

.chat-input-row { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--paper); }
.chat-input-row input {
  flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 11px 18px;
  font-family: var(--sans); font-size: 14.5px; background: var(--cream-2); outline: none;
  transition: border-color 0.2s;
}
.chat-input-row input:focus { border-color: var(--gold); }
.chat-input-row button {
  background: var(--ink); color: var(--cream-2); border: none; border-radius: 999px;
  padding: 0 24px; font-weight: 600; cursor: pointer; font-family: var(--sans);
  transition: background 0.2s;
}
.chat-input-row button:hover { background: var(--gold-deep); }

/* ---------- Voice input (mic + hands-free) ---------- */
.mic-btn {
  position: relative;
  flex: 0 0 auto; width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; cursor: pointer;
  background: var(--cream-2); border: 1.5px solid var(--gold);
  color: var(--gold-deep); transition: all 0.15s;
}
.mic-btn svg { width: 18px; height: 18px; }
.mic-btn:hover { background: var(--gold-soft); transform: translateY(-1px); }
.mic-btn.rec {
  background: var(--red); border-color: var(--red); color: #fff;
  animation: micPulse 1.1s ease-in-out infinite;
}
.mic-btn.rec::after {
  content: ""; position: absolute; top: 5px; right: 5px;
  width: 8px; height: 8px; border-radius: 50%; background: #fff;
  animation: dotPing 1s ease-out infinite;
}
.mic-btn.busy { opacity: 0.6; pointer-events: none; }
@keyframes micPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(166,85,75,0.45); } 50% { box-shadow: 0 0 0 9px rgba(166,85,75,0); } }
@keyframes dotPing { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.65); } 100% { box-shadow: 0 0 0 7px rgba(255,255,255,0); } }

.hf-btn {
  margin-left: auto; /* pushes the pair to the far right… */
  background: none; border: 1.5px solid var(--line); border-radius: 999px;
  color: var(--ink-soft); font-family: var(--sans); font-size: 12px; font-weight: 600;
  padding: 7px 13px; cursor: pointer; transition: all 0.15s;
}
.chat-head .hf-btn + .close { margin-left: 0; } /* …so close sits right next to it */
.hf-btn:hover { border-color: var(--gold); color: var(--gold-deep); }
.hf-btn.on { background: var(--gold); border-color: var(--gold); color: #fff; box-shadow: 0 4px 14px rgba(176,141,87,0.4); }

.hf-hint {
  font-size: 12px; color: var(--gold-deep); font-weight: 500;
  background: rgba(176,141,87,0.08); border-top: 1px dashed rgba(176,141,87,0.35);
  padding: 7px 16px; text-align: center;
}

.atrium-toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--cream-2); z-index: 999;
  padding: 11px 20px; border-radius: 999px; font-size: 13.5px;
  box-shadow: var(--shadow-md); max-width: 90vw; text-align: center;
  animation: toastIn 0.2s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- Offer flow ---------- */
.offer-flow { padding: 40px 34px; text-align: center; max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.offer-flow h3 { font-family: var(--serif); font-size: 32px; }
.offer-sub { color: var(--ink-soft); font-weight: 300; }
.offer-terms { text-align: left; background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.offer-terms .row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.offer-terms .row:last-child { border-bottom: none; }
.field { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.field span { font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.field input { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14.5px; font-family: var(--sans); background: var(--cream-2); outline: none; }
.field input:focus { border-color: var(--gold); }
.offer-note { font-size: 12.5px; color: var(--ink-soft); font-weight: 300; }
.offer-error { font-size: 13px; color: var(--red); background: rgba(166,85,75,0.08); border: 1px solid rgba(166,85,75,0.25); padding: 9px 12px; border-radius: 10px; text-align: left; display: none; }
.offer-error.show { display: block; }
.check-field { display: flex; gap: 10px; align-items: flex-start; text-align: left; font-size: 13px; color: var(--ink-soft); }
.check-field input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--gold-deep); cursor: pointer; }
.pay-summary { background: linear-gradient(135deg, rgba(176,141,87,0.14), rgba(176,141,87,0.05)); border: 1px solid rgba(176,141,87,0.35); border-radius: 12px; padding: 10px 14px; font-size: 13px; text-align: left; display: flex; justify-content: space-between; gap: 10px; }
.pay-summary b { color: var(--ink); }
.offer-flow.done .seal {
  width: 72px; height: 72px; margin: 0 auto; border-radius: 50%;
  background: linear-gradient(135deg, #5E9C74, #3E7A54); color: #fff;
  font-size: 34px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(62,122,84,0.35);
  animation: sealPop 0.5s ease;
}
@keyframes sealPop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Dashboard ---------- */
.dash { max-width: 1100px; margin: 0 auto; padding: 46px 32px; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; flex-wrap: wrap; gap: 14px; }
.dash-head h1 { font-family: var(--serif); font-size: 44px; font-weight: 500; }
.stamp { font-size: 12.5px; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.kpi .num { font-family: var(--serif); font-size: 34px; font-weight: 700; }
.kpi .lab { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-top: 2px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.panel h3 { font-family: var(--serif); font-size: 22px; }
.panel .sub { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 14px; }
.chart-wrap { height: 180px; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); padding: 10px 8px; border-bottom: 2px solid var(--gold-soft); }
.table td { padding: 10px 8px; border-bottom: 1px solid var(--line); }
.table .ok { color: #3E6B4F; font-weight: 600; }
.demo-note { margin-top: 20px; font-size: 13px; color: var(--ink-soft); background: rgba(176,141,87,0.1); border-left: 3px solid var(--gold); padding: 12px 16px; border-radius: 8px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  #receptionCanvas { display: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   MOBILE HARDENING (phone support pass — additive only)
   ============================================================ */
/* Chat input row: let the text input shrink below its intrinsic min-width
   (default ~20ch) so mic + send always fit inside 360-390px screens. */
.chat-input-row input { min-width: 0; }

/* Hands-free button when the browser has no Web Speech API (iOS Safari):
   visibly disabled with an explanatory tooltip instead of a broken toggle. */
.hf-btn:disabled,
.hf-btn.unsupported {
  opacity: 0.45; cursor: not-allowed;
  border-color: var(--line); color: var(--ink-soft);
  background: var(--cream-2);
}
.hf-btn:disabled:hover { border-color: var(--line); color: var(--ink-soft); transform: none; }

/* Touch: kill double-tap-zoom / 300ms click delays on chat controls. */
.mic-btn, .hf-btn, .chat-input-row button, .quick, .btn { touch-action: manipulation; }
.mic-btn, .hf-btn, .chat-input-row button, .quick, .close { -webkit-tap-highlight-color: transparent; }

@media (max-width: 480px) {
  /* Chat header wraps instead of overflowing: avatar+name on line one,
     hands-free + close settle on line two when space runs out. */
  .chat-head { flex-wrap: wrap; gap: 8px 10px; padding: 12px 14px; }
  .chat-head .name { font-size: 15px; }
  .chat-head .state { font-size: 11px; }
  .hf-btn { font-size: 11px; padding: 8px 11px; min-height: 40px; }
  .chat-input-row { padding: 10px 12px; gap: 8px; }
  .chat-input-row input { padding: 10px 14px; min-width: 0; }
  .chat-input-row button[type="submit"] { padding: 0 18px; min-height: 44px; } /* tappable Send */
  .quick { padding: 9px 14px; min-height: 38px; }
  .chat-body { padding: 14px; }
  .msg { max-width: 90%; }
  /* Offer flow breathes on narrow screens; the modal already scrolls. */
  .offer-flow { padding: 28px 20px; }
  .offer-flow h3 { font-size: 26px; }
  .offer-flow .btn { min-height: 48px; } /* tappable Sign & pay */
}
@media (max-width: 380px) {
  .chat-head .hf-btn { font-size: 10.5px; padding: 7px 9px; }
  .chat-input-row button[type="submit"] { padding: 0 14px; }
}

/* iOS URL-bar safe heights: dvh tracks the visible area as the bar
   collapses/expands (mobile only — desktop vh == dvh and the numeric
   value is unchanged from the base 92vh rules). */
@media (max-width: 760px) {
  @supports (height: 1dvh) {
    .modal { max-height: 92dvh; }
    .modal.modal-chat { height: 92dvh; }
  }
}

/* Grid-track min-width fix: grid items default to min-width:auto, so the
   chat modal's profile/chat columns balloon to their content's min-content
   width (~371px — driven by the input's intrinsic size attribute) and
   overflow 360-390px viewports. Pin them to 0 so the 1fr track collapses
   to the modal width; the input already has min-width: 0 to shrink inside
   the row. */
.modal.modal-chat > .profile-col,
.modal.modal-chat > .chat-col { min-width: 0; }

/* The generic .chat-input-row button padding (0 24px) bleeds into the mic
   button and inflates it past its intended 44px circle — restore its box. */
.chat-input-row .mic-btn { padding: 0; }

/* ============================================================
   MOBILE ROUND 2 — 412px (Samsung A25) / 360px (iPhone SE)
   (additive only; measured Aug 2026)
   ============================================================ */

/* Hero: .hero-art svg sizes off vw (min(940px, 94vw)) which is wider than
   the hero's padded content box on phones (412-48=364, 360-48=312).
   Because .hero-inner is a flex item (min-width:auto), its min-content
   floors at the svg width and the whole text block overflows the hero —
   measured .hero sw 424 > cw 412 and sw 373 > cw 360, hero-inner poking
   11-12px past the left padding edge. Let the block shrink to the padded
   box and scale the vector art with it (viewBox scales cleanly). */
@media (max-width: 800px) {
  .hero > .hero-inner { min-width: 0; width: 100%; }
  .hero-inner > .hero-art { width: 100%; min-width: 0; }
  .hero-inner > .hero-art svg { width: 100%; }
}

/* Floor: repeat(auto-fill, minmax(300px, 1fr)) forces a 300px minimum
   track that exceeds the padded container at 360px (296px) — the grid
   balloons and overflows (.floor sw 300 > cw 296, .agent-card 298 > 296).
   One column on phones; cards shrink with the track instead of imposing
   their min-content. (At 412px this yields the same single column.) */
@media (max-width: 480px) {
  .floor { grid-template-columns: 1fr; }
  .agent-card { min-width: 0; }
}

/* ============================================================
   NEWS REEL — horizontal carousel under the hero
   (additive only; added Aug 2026)
   ============================================================ */
.reel {
  padding: 56px 24px 64px;
  max-width: 1240px;
  margin: 0 auto;
}
.reel-head { text-align: center; max-width: 640px; margin: 0 auto 34px; }
.reel-head h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 10px; }
.reel-head p { color: #4A453D; margin: 0; }
.reel-frame { position: relative; }
.reel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: smooth;
  padding: 10px 4px 18px;
  outline: none;
}
.reel-track::-webkit-scrollbar { display: none; }
.reel-card {
  flex: 0 0 min(520px, 86vw);
  scroll-snap-align: center;
  background: #FBF7EE;
  border: 1px solid #E7DCC6;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow: 0 10px 30px rgba(42, 38, 32, 0.07);
}
.reel-visual { padding: 16px 16px 0; }
.reel-visual svg { width: 100%; height: auto; display: block; border-radius: 10px; }
.reel-face {
  width: 132px; height: 132px; border-radius: 50%;
  border: 3px solid #B08D57; display: block;
  margin: 8px auto 10px; object-fit: cover;
}
.reel-lineup {
  display: flex; justify-content: center; gap: 8px;
  padding-bottom: 8px;
}
.reel-lineup img {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid #E7DCC6; object-fit: cover;
}
.reel-copy {
  padding: 18px 22px 20px;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1; min-width: 0;
}
.reel-eyebrow {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: #8F6F3F; font-weight: 700;
}
.reel-copy h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 26px; line-height: 1.15; margin: 0; color: #2A2620;
}
.reel-examples {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 7px;
  font-size: 14.5px; line-height: 1.45; color: #4A453D;
}
.reel-examples li { padding-left: 24px; position: relative; }
.reel-examples li::before {
  content: "✓"; position: absolute; left: 2px; top: 0;
  color: #B08D57; font-weight: 700;
}
.reel-win {
  background: #F3E9D4; border-left: 4px solid #B08D57;
  border-radius: 0 8px 8px 0; padding: 10px 14px;
  font-size: 14px; font-weight: 600; color: #2A2620;
}
.reel-cta-row {
  margin-top: auto; padding-top: 12px; border-top: 1px solid #E7DCC6;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
}
.reel-rate { font-size: 12.5px; color: #8A8478; font-weight: 600; }
.reel-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin-top: 6px;
}
.reel-arrow {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid #B08D57; background: #FBF7EE;
  color: #2A2620; font-size: 22px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s, border-color .2s;
  padding: 0 0 3px;
}
.reel-arrow:hover { background: #2A2620; color: #F6F3ED; border-color: #2A2620; }
.reel-dots { display: flex; gap: 7px; }
.reel-dot {
  width: 22px; height: 4px; border-radius: 2px; padding: 0;
  background: #D9D2C2; border: none; cursor: pointer;
  transition: background .25s, width .25s;
}
.reel-dot.active { background: #B08D57; width: 32px; }
.reel-count { font-size: 12px; color: #8A8478; font-weight: 600; letter-spacing: 1px; }

/* ============================================================
   GHOST-CURATOR GUIDED TOUR v1 (Aug 2026) — additive block
   Spectral curator overlay: scrim cutout spotlight, pulsing gold
   ring on click-targets, floating ghost portrait, ink caption
   bubble. z-order: scrim 90 < ring 91 < ghost 94 < caption 95 <
   skip 96 — all under the modal overlay (100) and toast (999).
   ============================================================ */
.tour-scrim {
  position: fixed; z-index: 90; border-radius: 16px; pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(26, 22, 18, 0.60);
  outline: 2px solid rgba(176, 141, 87, 0.85); outline-offset: 3px;
  transition: left .45s ease, top .45s ease, width .45s ease, height .45s ease, opacity .3s ease;
}
.tour-ring {
  position: fixed; z-index: 91; border-radius: 16px; pointer-events: none; opacity: 0;
  transition: left .45s ease, top .45s ease, width .45s ease, height .45s ease, opacity .3s ease;
}
.tour-ring.on { opacity: 1; animation: tourPulse 1.6s ease-in-out infinite; }
@keyframes tourPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(176,141,87,.55), inset 0 0 0 2px rgba(216,196,154,.95); }
  50%      { box-shadow: 0 0 0 11px rgba(176,141,87,0), inset 0 0 0 2px rgba(176,141,87,.85); }
}
.tour-ghost {
  position: fixed; z-index: 94; width: 92px; pointer-events: none;
  transition: left .5s ease, top .5s ease, opacity .35s ease;
  filter: drop-shadow(0 0 16px rgba(176,141,87,.55)) drop-shadow(0 8px 20px rgba(26,22,18,.28));
}
.tour-ghost img {
  width: 100%; display: block; opacity: .78;
  -webkit-mask-image: radial-gradient(ellipse 64% 62% at 50% 46%, #000 52%, transparent 76%);
  mask-image: radial-gradient(ellipse 64% 62% at 50% 46%, #000 52%, transparent 76%);
  animation: tourFloat 4.2s ease-in-out infinite;
}
@keyframes tourFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.tour-caption {
  position: fixed; z-index: 95; width: min(430px, calc(100vw - 24px));
  background: #2A2620; color: #F6F3ED;
  border: 1px solid rgba(176,141,87,.55); border-radius: 16px;
  padding: 15px 18px 13px;
  box-shadow: 0 18px 50px rgba(26,22,18,.45), 0 0 0 4px rgba(176,141,87,.08);
  transition: left .45s ease, top .45s ease, opacity .3s ease;
}
.tour-cap-kicker {
  font-size: 10.5px; letter-spacing: 2.5px; text-transform: uppercase;
  color: #D8C49A; font-weight: 700;
}
.tour-cap-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 19px; line-height: 1.4; margin: 7px 0 12px; color: #F3ECDC;
}
.tour-cap-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tour-cap-actions { display: flex; gap: 8px; align-items: center; }
.tour-cap-skip {
  background: none; border: none; color: #B9B1A2; cursor: pointer; padding: 8px 4px;
  font: 600 12.5px Inter, sans-serif; text-decoration: underline; text-underline-offset: 3px;
}
.tour-cap-skip:hover { color: #F6F3ED; }
.tour-cap-next, .tour-cap-meet {
  background: #B08D57; color: #1E1A17; border: none; border-radius: 999px;
  padding: 9px 18px; font: 700 13px Inter, sans-serif; cursor: pointer;
  transition: background .2s;
}
.tour-cap-next:hover, .tour-cap-meet:hover { background: #D8C49A; }
.tour-cap-finish {
  background: transparent; color: #D8C49A; border: 1px solid rgba(216,196,154,.6);
  border-radius: 999px; padding: 9px 16px; font: 700 13px Inter, sans-serif; cursor: pointer;
  transition: background .2s, color .2s;
}
.tour-cap-finish:hover { background: rgba(216,196,154,.14); color: #F6F3ED; }
.tour-skip-fixed {
  position: fixed; top: 74px; right: 20px; z-index: 96;
  background: rgba(42,38,32,.85); color: #D8C49A;
  border: 1px solid rgba(176,141,87,.5); border-radius: 999px;
  padding: 7px 14px; font: 600 12px Inter, sans-serif; cursor: pointer;
  backdrop-filter: blur(4px);
}
.tour-skip-fixed:hover { background: #2A2620; color: #F6F3ED; }
.tour-replay {
  background: none; border: none; cursor: pointer; color: #8A8478;
  font: 600 12.5px Inter, sans-serif; padding: 6px 0 0;
  text-decoration: underline; text-underline-offset: 3px;
}
.tour-replay:hover { color: #B08D57; }
.tour-off { opacity: 0 !important; }
@media (max-width: 760px) {
  .tour-ghost { width: 60px; }
  .tour-caption {
    left: 12px !important; right: 12px; width: auto;
    top: auto !important; bottom: 100px; /* clears the 86px fab zone + margin */
    padding: 13px 16px 12px;
  }
  .tour-cap-text { font-size: 17.5px; margin: 6px 0 10px; }
  .tour-skip-fixed { top: 70px; right: 10px; padding: 6px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .tour-ghost img { animation: none; }
  .tour-ring.on { animation: none; opacity: 1; box-shadow: inset 0 0 0 2px rgba(216,196,154,.95); }
  .tour-scrim, .tour-ring, .tour-caption, .tour-ghost { transition: none; }
}

/* ============================================================
   REAL-PHASE THINKING INDICATOR (chat UX, Aug 2026)
   Small status line under the typing dots in both chat modals.
   Montserrat 10.5px (falls back to Inter — site's sans), muted gold,
   gentle fade between phases. Additive block — pairs with
   startThinking() in app.js.
   ============================================================ */
.chat-thinking {
  font-family: "Montserrat", "Inter", sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #B08D57; /* muted gold (site palette) */
  opacity: 0.9;
  margin: -4px 0 2px 14px; /* tuck under the typing dots, bot-bubble aligned */
  align-self: flex-start;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.chat-thinking.fade { opacity: 0.25; }
@media (prefers-reduced-motion: reduce) {
  .chat-thinking { transition: none; }
}

/* ============================================================
   GHOST PROMINENCE v2 + PER-MESSAGE REPLAY (Aug 2026) — additive
   Vincent: the curator is bigger (~140px desktop / ~84px mobile),
   stands ADJACENT to each exhibit (anchoring logic in tourLayout),
   and the tour foreground stack floats ABOVE every page element —
   scrim 90 / ring 91 stay as the backdrop, while ghost/caption/skip
   rise past the toast (999) and modal overlay (100).
   ============================================================ */
.tour-ghost { z-index: 1001; width: 140px; }
.tour-caption { z-index: 1002; }
.tour-skip-fixed { z-index: 1003; }
@media (max-width: 760px) {
  .tour-ghost { width: 84px; }
}

/* Per-message voice replay — a quiet gold affordance tucked under bot
   bubbles (interview + reception). Revealed by pushBotVoice() once the
   message's audio ends (or immediately if sound was off / TTS failed —
   the click then retries the fetch; the relay's md5 cache makes a
   previously-heard line instant). Montserrat 9px, muted gold,
   unobtrusive. Persists on EVERY agent bubble for the life of the modal
   (Vincent, Aug 2026); playback is one-at-a-time. */
.msg-replay {
  display: block; margin: 7px 0 0; padding: 0;
  background: none; border: none; cursor: pointer;
  font-family: "Montserrat", "Inter", sans-serif;
  font-size: 9px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase;
  color: #B08D57; opacity: .68; transition: opacity .2s ease;
}
.msg-replay:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.msg-replay.playing { opacity: .45; cursor: default; text-decoration: none; }
.msg-replay[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .msg-replay { transition: none; }
}

/* ============================================================
   CHAT SCROLL GLITCH FIX (Aug 2026 — Vincent QA: after a few exchanges the
   chat landed scrolled mid-conversation with TWO competing scrollbars)
   1) Exactly ONE scroll container in a chat modal: the definite-height grid
      already constrains its children (profile-col + chat-body scroll
      internally), so the modal box itself must never grow a second,
      competing scrollbar -> overflow hidden on .modal.modal-chat.
      (.modal.modal-offer keeps overflow-y:auto — long forms must scroll.)
   2) Chrome's implicit scroll anchoring is disabled inside .chat-body:
      anchoring is managed explicitly by app.js (chatPinned / anchorChat) so
      replay-button reveals, quick-row wraps and thinking-line removal can
      no longer strand the view mid-conversation.
   ============================================================ */
.modal.modal-chat { overflow-x: hidden; overflow-y: hidden; }
.chat-body { overflow-anchor: none; }
