/* ============================================================
   CHAT SHELL — Path C redesign
   Two-column conversation + evidence-panel layout, scoped to
   the chat screen only so other surfaces keep their styling.
   ============================================================ */

.screen--chat {
  /* Surface tokens (--ink, --ink-2, --ink-3, --ink-line, --paper, --bone)
     are inherited from the canonical :root in main.css; they were
     previously re-declared here and have been removed (Task #488 Phase 4)
     so the chat shell can never drift from the canonical scale.
     Text/colour tokens are inherited from the global :root in main.css.
     The chat shell intentionally uses the same lifted --text-mute /
     --text-faint values as the rest of the dark surfaces (WCAG AA on
     --ink). No --c-* shadow vars here — keep the global names so the
     token graph stays single-sourced. */
  /* Typography is inherited from the canonical :root in main.css —
     --sans (DM Sans), --mono (DM Mono), --display (DM Sans 900). The
     chat shell historically used `--serif` as a body-sans alias;
     those references have been swept to `--sans` so this stylesheet
     no longer redefines any font-family tokens. See
     docs/DESIGN_SYSTEM.md §Drift Guard. */
  --c-ease:  cubic-bezier(.2,.7,.2,1);

  position: fixed;
  inset: var(--nav-h) 0 var(--footer-h) 0;
  background: var(--ink);
  color: var(--text);
  display: none;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.screen--chat.active { display: flex; }

/* SVG noise overlay — adds warmth to the dark surface */
.screen--chat::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .03 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.4;
  z-index: 1;
  mix-blend-mode: overlay;
}

/* ---- shell grid ----
   Path C April 2026 pass: 45 / 55 split on desktop and tablet with the
   conversation column centered to a 560px text width via .chat-convo-inner
   on >=1280px. Below 1280px the 45/55 ratio is preserved and only the
   inner-wrap 560px cap is dropped so messages can breathe full-width.
   Below 1024px (tablet portrait / mobile) the grid collapses to a single
   stacked column — see the @media (max-width: 1023px) rule further below. */
.chat-shell {
  flex: 1;
  display: grid;
  grid-template-columns: 45fr 55fr;
  overflow: hidden;
  position: relative;
  z-index: 2;
  transition: grid-template-columns .6s var(--c-ease);
}
.chat-shell.no-panel { grid-template-columns: 1fr 0fr; }

/* ---- conversation column ---- */
.chat-convo {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--ink-line);
  background: var(--ink);
  overflow: hidden;
  min-width: 0;
}
/* Inner wrap centres the conversation column to 560px on >=1280px so
   the agent thread reads as a deliberate column rather than spreading
   across the whole panel. Below 1280 the wrap is full-width. */
.chat-convo-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
@media (min-width: 1280px) {
  .chat-convo-inner {
    max-width: 560px;
    margin: 0 auto;
  }
  /* Task #756: the starting-chip row now lives INSIDE the 560px
     reading column (wrapping onto a second line when needed) so the
     greeting → chips → composer block shares one width. The former
     :has() breakout that let the chip band span wider than the
     column is retired. */
}

.chat-convo-header {
  padding: var(--sp-6) var(--sp-8) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.chat-convo-status {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}
.chat-convo-status .pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--be-yellow);
  animation: chat-pulse 2.4s var(--c-ease) infinite;
}
@keyframes chat-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,194,23,.55); }
  50%      { box-shadow: 0 0 0 8px rgba(255,194,23,0); }
}
.chat-convo-meta {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  gap: 18px;
}
.chat-convo-meta .chat-back-btn {
  font: inherit;
  color: var(--text-mute);
  background: none;
  border: 0;
  cursor: pointer;
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  transition: color .2s var(--c-ease);
}
.chat-convo-meta .chat-back-btn:hover { color: var(--be-yellow); }

/* ---- messages ---- */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-8) var(--sp-8) var(--sp-6);
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column;
}
.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--ink-line); border-radius: 3px; }
/* First-load only: when the seeded opener is the sole child in the
   messages column (no visitor turn / typing indicator / divider yet),
   push it to the bottom so it sits close to the chip strip + composer
   instead of being marooned at the top of a tall scroll column.
   As soon as a real exchange begins (a second .msg gets appended,
   or a typing indicator / context-shift divider is inserted), the
   :only-child selector stops matching and normal top-anchored scroll
   resumes. */
.chat-messages > .msg:only-child { margin-top: auto; }

/* Seeded-home centering ----
   Cold home opener (intro + chips + composer) sits vertically centered
   in the conversation column on tall viewports, so there isn't a big
   empty band between the "Listening" header and the first line of text.
   The header stays pinned at the top of the column. As soon as the
   visitor sends their first reply (addMessage('visitor', …) clears the
   class), the layout reverts to its default top-anchored, scroll-from-
   top behavior. On short viewports the column still scrolls normally.

   Implementation: under `.is-seeded-home`, drop the `flex: 1` stretch
   on `.chat-messages` and use `margin-top: auto` on the messages
   container plus `margin-bottom: auto` on the input row so the
   messages → chips → composer trio is centered between the header
   and the bottom of the column. */
.chat-convo-inner.is-seeded-home > .chat-messages {
  flex: 0 0 auto;
  margin-top: auto;
  overflow-y: visible;
}
.chat-convo-inner.is-seeded-home > .chat-messages > .msg:only-child {
  margin-top: 0;
}
.chat-convo-inner.is-seeded-home > .chat-input-row {
  margin-bottom: auto;
}
@media (max-height: 720px) {
  /* On short viewports fall back to top-anchored + scroll so the
     composer always stays reachable. */
  .chat-convo-inner.is-seeded-home > .chat-messages {
    flex: 1;
    margin-top: 0;
    overflow-y: auto;
  }
  .chat-convo-inner.is-seeded-home > .chat-messages > .msg:only-child {
    margin-top: auto;
  }
  .chat-convo-inner.is-seeded-home > .chat-input-row {
    margin-bottom: 0;
  }
}

.msg {
  margin-bottom: var(--sp-6);
  opacity: 0;
  transform: translateY(8px);
  animation: chat-msgIn .5s var(--c-ease) forwards;
  max-width: 100%;
}
@keyframes chat-msgIn {
  to { opacity: 1; transform: translateY(0); }
}

.msg__sender {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.msg--visitor .msg__sender,
.msg--user .msg__sender { color: var(--be-yellow); }

.msg--visitor,
.msg--user {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  padding-right: var(--sp-1);
}
.msg--visitor .msg__bubble,
.msg--user .msg__bubble { text-align: left; }

.msg__bubble {
  font-family: var(--sans);
  font-size: var(--fs-h3);
  line-height: var(--lh-base);
  font-weight: var(--fw-regular);
  color: var(--text);
  max-width: 56ch;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.msg--visitor .msg__bubble,
.msg--user .msg__bubble {
  color: var(--text);
  font-style: italic;
  font-weight: var(--fw-light);
}
.msg--visitor .msg__bubble::before,
.msg--user .msg__bubble::before { content: '\201C'; color: var(--be-yellow); margin-right: var(--sp-1); }
.msg--visitor .msg__bubble::after,
.msg--user .msg__bubble::after { content: '\201D'; color: var(--be-yellow); margin-left: 2px; }

.msg__body {
  font-family: var(--sans);
  font-size: var(--fs-h3);
  line-height: var(--lh-base);
  color: var(--text);
  max-width: 56ch;
}
/* Text link presentation is shared in links.css. */

.msg__bubble strong { font-weight: var(--fw-medium); color: var(--text); }
.msg__bubble em { font-style: italic; color: var(--be-yellow); }
.msg__bubble code { font-family: var(--mono); font-size: var(--fs-sm); background: var(--ink-2); padding: 2px 6px; border-radius: var(--r-xs); }
.msg__bubble ul { padding-left: 1.2em; margin: 0.4em 0; }
.msg__bubble li { margin-bottom: 0.2em; }

.msg--system .msg__system-line {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: var(--text-faint);
  padding: var(--sp-2) var(--sp-3);
  border: 1px dashed var(--ink-line);
  border-radius: var(--r-sm);
  display: inline-block;
}

/* Typing dots */
.typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  margin-top: var(--sp-1);
}
.typing-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--text-mute);
  animation: chat-dot 1.4s var(--c-ease) infinite;
}
.typing-dot:nth-child(2) { animation-delay: .2s; }
.typing-dot:nth-child(3) { animation-delay: .4s; }
@keyframes chat-dot {
  0%, 60%, 100% { opacity: .25; transform: translateY(0); }
  30%           { opacity: 1;   transform: translateY(-3px); }
}

/* Quick replies (chips) */
.chat-quick-replies {
  padding: 0 var(--sp-8) var(--sp-2);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.chat-quick-replies:empty { display: none; }
.quick-reply {
  /* Conversational chip — deliberately sentence-case DM Sans / --ls-body,
     not the uppercase mono metadata-pill register: quick replies are
     utterances the visitor sends, not labels
     (docs/TYPOGRAPHY.md §Tag pill exception, Task #702). */
  font: inherit;
  background: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-body);
  color: var(--text-mute);
  padding: var(--sp-2) 14px;
  border: 1px solid var(--ink-line);
  border-radius: var(--r-full);
  transition: all .2s var(--c-ease);
}
.quick-reply:hover {
  border-color: var(--be-yellow);
  color: var(--be-yellow);
  transform: translateY(-1px);
}
.quick-reply--case { color: var(--be-yellow); border-color: var(--be-yellow-dim); }
.quick-reply.is-active {
  color: var(--be-yellow);
  border-color: var(--be-yellow);
  background: rgba(255, 194, 23, 0.08);
}

/* ---- composer ---- */
.chat-input-row {
  border-top: 1px solid var(--ink-line);
  padding: 18px var(--sp-8) var(--sp-5);
  background: var(--ink);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.chat-composer {
  cursor: text;
  display: flex;
  align-items: flex-end;
  gap: var(--sp-3);
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-md);
  padding: var(--sp-3) 14px;
  transition: border-color .2s var(--c-ease), box-shadow .3s var(--c-ease);
}
.chat-composer:focus-within { border-color: var(--be-yellow); }
.chat-composer.brief-flash {
  animation: chat-briefFlash 1.8s var(--c-ease);
}
@keyframes chat-briefFlash {
  0%   { border-color: var(--ink-line); box-shadow: 0 0 0 0 rgba(255,194,23,0); }
  20%  { border-color: var(--be-yellow); box-shadow: 0 0 0 6px rgba(255,194,23,.18); }
  100% { border-color: var(--ink-line); box-shadow: 0 0 0 0 rgba(255,194,23,0); }
}

.chat-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  outline: none;
  min-height: 22px;
}
.chat-input::placeholder { color: var(--text-faint); font-style: italic; }

.chat-send-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--be-yellow);
  color: var(--ink);
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .2s var(--c-ease);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
}
.chat-send-btn:hover { transform: rotate(-12deg) scale(1.05); }
.chat-composer-hint {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-nav);
  color: var(--text-faint);
  text-transform: uppercase;
}

/* =============================================================
   RIGHT-HAND EVIDENCE PANEL
   ============================================================= */
.chat-panel-col {
  overflow-y: auto;
  background: var(--ink);
  position: relative;
  min-width: 0;
}
.chat-panel-col::-webkit-scrollbar { width: 6px; }
.chat-panel-col::-webkit-scrollbar-track { background: transparent; }
.chat-panel-col::-webkit-scrollbar-thumb { background: var(--ink-line); border-radius: 3px; }

.chat-panel-empty {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--sp-6);
  color: var(--text-faint);
  padding: var(--sp-12);
  text-align: center;
}
.chat-panel-empty__glyph {
  width: 80px; height: 80px;
  opacity: 0.2;
}
.chat-panel-empty__hint {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  max-width: 28ch;
  line-height: var(--lh-base);
}

.panel-content {
  animation: chat-panelIn .55s var(--c-ease);
}
@keyframes chat-panelIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Ask-mode proof reveal: JS updates one multiplier per case-study text
   block as it rises through the evidence-panel viewport. `filter` is
   deliberate here rather than `opacity`: it preserves each atom's
   existing authored opacity while keeping controls and media untouched. */
body.mode-agentic .chat-panel-col .panel-case .case-scroll-reveal-target {
  filter: opacity(var(--case-scroll-reveal-opacity, 1));
  transition: filter 90ms linear;
}
@media (prefers-reduced-motion: reduce) {
  body.mode-agentic .chat-panel-col .panel-case .case-scroll-reveal-target {
    filter: none;
    transition: none;
  }
}

/* Legacy .case-typo / .case-rich case-panel styles removed in task #459.
   Every chat-shell case panel now renders through BE.caseRenderer
   (see caseRenderer.css) so these markup classes are no longer
   produced anywhere in the app. */

/* ---- INSIGHT panel ---- */
.insight-panel {
  padding: var(--sp-12) var(--sp-14) var(--sp-14);
  background: var(--ink);
  color: var(--text);
}
.insight-panel__meta {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--sp-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.insight-panel__deck {
  font-family: var(--sans);
  font-style: italic;
  font-size: var(--fs-h3);
  line-height: var(--lh-base);
  color: var(--text-mute);
  margin-bottom: var(--sp-6);
  max-width: 48ch;
}
.insight-panel__bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.insight-panel__bullets li {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  padding-left: 18px;
  position: relative;
}
.insight-panel__bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--be-yellow);
}

/* Long-form body rendered when the visitor opens "Read the full
   insight". Mirrors the typography of the standalone /insights/:slug
   article (h3 headings, italic blockquote accent, generous paragraph
   spacing) so the panel reads as a real long-form article instead of
   a wall of unformatted copy. */
.insight-panel__body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
}
.insight-panel__body > * + * { margin-top: 18px; }
.insight-panel__body p {
  margin: 0 0 18px;
}
.insight-panel__body p:last-child { margin-bottom: 0; }
.insight-panel__body h2,
.insight-panel__body h3,
.insight-panel__h2 {
  font-family: var(--sans);
  font-weight: var(--fw-medium);
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-body);
  margin: var(--sp-8) 0 var(--sp-3);
  color: var(--text);
}
.insight-panel__body blockquote,
.insight-panel__quote {
  margin: var(--sp-6) 0;
  padding: var(--sp-4) var(--sp-5);
  border-left: 3px solid var(--be-yellow);
  font-style: italic;
  font-size: var(--fs-h3);
  line-height: var(--lh-base);
  color: var(--text-mute);
}
.insight-panel__body ul,
.insight-panel__body ol {
  margin: 0 0 18px;
  padding-left: var(--sp-5);
}
.insight-panel__body li + li { margin-top: 6px; }

/* ---- TEAM MEMBER panel ---- */
.team-panel {
  padding: var(--sp-12) var(--sp-14) var(--sp-14);
  min-height: 100%;
  background: var(--ink);
  color: var(--text);
}
.team-panel__meta {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--sp-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.team-panel__portrait {
  width: 180px;
  height: 220px;
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  margin-bottom: var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.team-panel__portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.team-panel__portrait .monogram {
  font-family: var(--display);
  font-weight: var(--fw-display);
  font-size: var(--fs-display);
  color: var(--be-yellow);
  letter-spacing: var(--ls-tight);
}
.team-panel__portrait[data-no-photo="true"]::after {
  content: 'AWAITING PORTRAIT';
  position: absolute;
  bottom: 10px; left: 12px;
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-nav);
  color: var(--text-faint);
}
.team-panel__role {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: var(--be-yellow);
  margin-bottom: var(--sp-6);
}
.team-panel__quote {
  font-family: var(--sans);
  font-style: italic;
  font-weight: var(--fw-light);
  font-size: var(--fs-h3);
  line-height: var(--lh-base);
  color: var(--text);
  border-left: 2px solid var(--be-yellow);
  padding-left: 18px;
  margin: 0 0 var(--sp-8);
  max-width: 48ch;
}
.team-panel__section {
  margin-top: var(--sp-6);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--ink-line);
}
.team-panel__section h4 {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--sp-3);
}
.team-panel__section p,
.team-panel__section li {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
}
.team-panel__section ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.team-panel__section li::before { content: '— '; color: var(--text-faint); }
.team-panel__actions {
  margin-top: var(--sp-6);
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

/* ---- ROLE panel ---- */
.role-panel {
  padding: var(--sp-12) var(--sp-14) var(--sp-14);
  min-height: 100%;
  background: var(--ink);
  color: var(--text);
}
.role-panel__meta {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--sp-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
}
.role-panel__sub {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: var(--be-yellow);
  margin-bottom: var(--sp-6);
}
.role-panel__deck {
  font-family: var(--sans);
  font-style: italic;
  font-weight: var(--fw-light);
  font-size: var(--fs-h3);
  line-height: var(--lh-base);
  color: var(--text);
  border-left: 2px solid var(--be-yellow);
  padding-left: 18px;
  margin: 0 0 var(--sp-6);
  max-width: var(--measure-lede);
}
.role-panel__section {
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--ink-line);
}
.role-panel__section h4 {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--sp-3);
}
.role-panel__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.role-panel__list li {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
}
.role-panel__list li::before { content: '— '; color: var(--text-faint); }
.role-panel__list-more {
  color: var(--text-mute);
  font-style: italic;
}
.role-panel__contact {
  margin-top: var(--sp-6);
  padding: 14px var(--sp-4);
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  display: flex;
  align-items: center;
  gap: 14px;
}
.role-panel__contact .monogram {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink-3);
  color: var(--be-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-body);
  flex-shrink: 0;
}
.role-panel__contact-name {
  font-family: var(--sans);
  font-size: var(--fs-body);
  color: var(--text);
}
.role-panel__contact-role {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 2px;
}
.role-panel__actions {
  margin-top: var(--sp-6);
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.panel-stacked__row--role {
  display: block;
}

/* ---- ARCHITECTURE panel ---- */
.arch-panel {
  padding: var(--sp-12) var(--sp-14) var(--sp-14);
  background: var(--ink);
  color: var(--text);
}
.arch-panel__meta {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--sp-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.arch-panel__subtitle {
  font-family: var(--sans);
  font-style: italic;
  font-size: var(--fs-body);
  color: var(--text-mute);
  margin-bottom: var(--sp-8);
  max-width: 48ch;
}
.arch-panel__diagram {
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  padding: var(--sp-6);
  margin-bottom: var(--sp-8);
}
.arch-panel__flow {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.arch-panel__node {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: start;
  padding: 14px 18px;
  border: 1px solid var(--ink-line);
  background: var(--ink);
  position: relative;
}
.arch-panel__node.is-active {
  border-color: var(--be-yellow);
  background: var(--ink-3);
}
.arch-panel__node.is-active::before {
  content: '';
  position: absolute;
  left: -1px; top: -1px; bottom: -1px;
  width: 3px;
  background: var(--be-yellow);
}
.arch-panel__num {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-nav);
  color: var(--text-faint);
}
.arch-panel__node-title {
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  margin-bottom: var(--sp-1);
}
.arch-panel__node-desc {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  line-height: var(--lh-base);
  color: var(--text-mute);
}
.arch-panel__connector {
  height: 12px;
  margin-left: var(--sp-8);
  width: 1px;
  background: var(--ink-line);
}
.arch-panel__notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
}
.arch-panel__notes h5 {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.arch-panel__notes p {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  line-height: var(--lh-base);
  color: var(--text);
}

/* ---- COMPANY ("About Base Element") panel ---- */
.company-panel {
  padding: var(--sp-12) var(--sp-14) var(--sp-14);
  background: var(--ink);
  color: var(--text);
}
.company-panel__meta {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--sp-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* ---- About panel: single-scroll layout (task #502) ----
   The five-tab Company panel was replaced with a continuous scroll
   that stacks Who-we-are (summary + stats), Who-leads-your-engagement
   (founders), Point-of-view (featured insights), and the bottom
   invitation. The tab strip selectors below are intentionally gone;
   `.company-about` scopes the new section styles. */
.company-about__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.company-about__section { margin: 0; }
.company-about__intro { display: flex; flex-direction: column; gap: var(--sp-5); }
/* Visitor-tailored summary: 3-line shimmer placeholder, then the
   patched paragraph fades in via `.is-loaded`. */
.company-about__summary {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  color: var(--text-mute);
  margin: 0;
  max-width: 56ch;
  min-height: calc(1.5em * 3);
  transition: opacity .35s var(--c-ease);
}
.company-about__summary em { font-style: italic; }
.company-about__summary.is-loaded { animation: company-about-fade .35s var(--c-ease); }
@keyframes company-about-fade {
  from { opacity: 0; transform: translateY(2px); }
  to   { opacity: 1; transform: none; }
}
.summary-shimmer {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.summary-shimmer__line {
  display: block;
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.10) 50%,
    rgba(255, 255, 255, 0.04) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
.summary-shimmer__line:nth-child(2) { width: 92%; }
.summary-shimmer__line:nth-child(3) { width: 70%; }
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
/* Panel-scale stats variant. The shared .stats-band primitive is
   sized for the /about full-bleed band (56px DM Sans 900); inside the
   chat panel we override to the spec-mandated ~28px DM Sans 900
   yellow numbers and 9px DM Mono labels. */
.company-about__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-4);
  padding: 18px 0 var(--sp-1);
  border-top: 1px solid var(--ink-line);
}
.company-about__stats .stats-band__stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.company-about__stats .stats-band__num {
  font-family: var(--display);
  font-weight: var(--fw-display);
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-body);
  color: var(--be-yellow);
}
.company-about__stats .stats-band__label {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: var(--text-faint);
}
/* Founders section: two compact cards. */
.company-about__founders-section { padding-top: var(--sp-1); }
.company-about__founders {
  list-style: none;
  margin: var(--sp-4) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.company-about__founder {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--sp-3);
  align-items: start;
}
.company-about__monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink-2);
  color: var(--be-yellow);
  font-family: var(--display);
  font-weight: var(--fw-display);
  font-size: var(--fs-h3);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-body);
}
.company-about__photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.company-about__founder-body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  min-width: 0;
}
.company-about__founder-name {
  font-family: var(--sans);
  font-weight: var(--fw-medium);
  font-size: var(--fs-body);
  line-height: var(--lh-snug);
  color: var(--text);
}
.company-about__founder-role {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: var(--be-yellow);
}
.company-about__founder-quote {
  margin: var(--sp-1) 0 0;
  padding: 0;
  border: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: var(--fw-light);
  font-size: var(--fs-sm);
  line-height: var(--lh-base);
  color: var(--text-mute);
}
/* POV: 2–3 featured insight cards using shared panel-card chrome. */
.company-about__pov-section { padding-top: var(--sp-1); }
.company-about__pov {
  list-style: none;
  margin: var(--sp-4) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.company-about__pov-card { padding: 0; }
.company-about__pov-button {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  padding: 14px var(--sp-4);
  cursor: pointer;
  transition: background .2s var(--c-ease);
}
.company-about__pov-button:hover { background: rgba(255, 255, 255, 0.02); }
.company-about__pov-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}
.company-about__pov-pillar {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: var(--text-faint);
}
.company-about__pov-pillar[data-sector="hospitality"]   { color: var(--sec-hospitality); }
.company-about__pov-pillar[data-sector="retail"]        { color: var(--sec-retail-light); }
.company-about__pov-pillar[data-sector="finance"]       { color: var(--sec-finance-light, var(--sec-finance)); }
.company-about__pov-pillar[data-sector="technology"]    { color: var(--sec-technology-light); }
.company-about__pov-pillar[data-sector="public-sector"] { color: var(--sec-public-sector-light, var(--be-yellow)); }
.company-about__pov-pillar[data-sector="media"]         { color: var(--sec-media-light, var(--be-yellow)); }
.company-about__pov-pillar[data-sector="professional-services"] { color: var(--sec-professional-services-light, var(--be-yellow)); }
.company-about__pov-pillar[data-sector="energy-utilities"]      { color: var(--sec-energy-utilities-light, var(--be-yellow)); }
.company-about__pov-pillar[data-sector="industrial"]            { color: var(--sec-industrial-light, var(--be-yellow)); }
.company-about__pov-pillar[data-sector="education-research"]    { color: var(--sec-education-research-light); }
.company-about__pov-arrow {
  font-family: var(--mono);
  font-size: var(--fs-sm);
  color: var(--text-faint);
  transition: color .2s var(--c-ease), transform .2s var(--c-ease);
}
.company-about__pov-button:hover .company-about__pov-arrow {
  color: var(--be-yellow);
  transform: translateX(2px);
}
.company-about__pov-title {
  font-family: var(--sans);
  font-weight: var(--fw-medium);
  font-size: var(--fs-body);
  line-height: var(--lh-snug);
  color: var(--text);
}
.company-about__pov-deck {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-family: var(--sans);
  font-size: var(--fs-xs);
  line-height: var(--lh-base);
  color: var(--text-mute);
}
.company-about__pov-cta { margin-top: 14px; }
/* Invitation: full-width primary CTA + a faint mono line beneath. */
.company-about__invite { display: flex; flex-direction: column; gap: 10px; padding-top: var(--sp-1); }
.company-about__invite-cta { align-self: flex-start; }
.company-about__invite-hint {
  margin: 0;
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: var(--text-faint);
}
/* Mobile (<768px): stats wrap to 2×2, founder cards stack full-width,
   the bottom invitation reachable without excessive scroll. */
@media (max-width: 767px) {
  .company-about__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .company-about__founders { grid-template-columns: 1fr; gap: var(--sp-4); }
  .company-about__pov-button { padding: var(--sp-3) 14px; }
  .company-about__invite-cta { align-self: stretch; text-align: center; }
}

/* Company-panel building blocks still rendered by evidencePanel.js
   (work-index / team-index views). The rest of the legacy
   .company-panel__* family (summary, stats, chips, disciplines,
   industries, pov, …) was removed in the Aug 2026 dead-CSS sweep —
   evidencePanel now composes panel-title / company-about markup. */
.company-panel__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.company-panel__link {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  color: var(--text);
  cursor: pointer;
  transition: color .2s var(--c-ease);
}
.company-panel__link:hover { color: var(--be-yellow); }
.company-panel__link span {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: var(--text-faint);
}
.company-panel__founders {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.company-panel__founders li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: start;
}
.company-panel__founders img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid var(--ink-line);
}
.company-panel__founders .monogram {
  display: flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  font-family: var(--display);
  font-weight: var(--fw-medium);
  font-size: var(--fs-sublede);
  color: var(--be-yellow);
}
.company-panel__founders strong {
  display: block;
  font-family: var(--sans);
  font-weight: var(--fw-medium);
  font-size: var(--fs-body);
  color: var(--text);
}
.company-panel__founders span {
  display: block;
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}
.company-panel__founders p {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  line-height: var(--lh-base);
  color: var(--text-mute);
  margin: 0;
}

/* Shared close button + action chips */
.panel-close {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid currentColor;
  background: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity .2s var(--c-ease);
}
.panel-close:hover { opacity: 1; }

.panel-action {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-nav);
  color: var(--text);
  padding: 10px var(--sp-4);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-full);
  text-transform: uppercase;
  cursor: pointer;
  background: none;
  transition: all .2s var(--c-ease);
}
.panel-action:hover {
  border-color: var(--be-yellow);
  color: var(--be-yellow);
  transform: translateY(-1px);
}
.panel-action.is-primary {
  background: var(--be-yellow);
  color: var(--ink);
  border-color: var(--be-yellow);
}
.panel-action.is-primary:hover { background: transparent; color: var(--be-yellow); }

/* Tablet (≤1023px) — keep the 45/55 two-column shell intact (the spec
   only collapses to a single stacked column on mobile, <768px). At
   tablet widths we just relax inner paddings and let auxiliary panels
   (case typo / insight / team / arch) drop their max width so they
   read comfortably. */
@media (max-width: 1023px) {
  .chat-convo-header,
  .chat-messages,
  .chat-input-row { padding-left: var(--sp-5); padding-right: var(--sp-5); }
  .insight-panel,
  .team-panel,
  .arch-panel,
  .company-panel { padding: var(--sp-8); }
  .arch-panel__notes { grid-template-columns: 1fr; }
}

/* ============================================================
   MOBILE PASS (<768px) — single col conversation, sticky composer,
   bottom-sheet evidence panel with swipe-down dismiss on home.
   On /work, the evidence panel slides in as a translateY overlay
   covering the conversation when a case study is opened.
   ============================================================ */
@media (max-width: 767px) {
  /* Stack to single column; the panel becomes a bottom-sheet overlay
     instead of a second grid row. */
  .chat-shell {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }
  .chat-shell.no-panel { grid-template-rows: 1fr; }
  .chat-convo {
    border-right: 0;
    border-bottom: 0;
  }
  .chat-convo-header { padding: var(--sp-4) var(--sp-4) 0; }
  .chat-messages {
    padding: var(--sp-5) var(--sp-4) var(--sp-3);
    /* Body text settles to 16px on mobile per the spec. */
    font-size: var(--fs-body);
  }
  .msg__bubble,
  .msg__body { font-size: var(--fs-body); line-height: var(--lh-base); }
  /* Headlines clamp(32px, 8vw, 48px) for the mobile typographic register. */
  .work-index-title { font-size: var(--fs-display); }
  /* Composer sticks to the bottom of the viewport with safe-area inset. */
  .chat-input-row {
    position: sticky;
    bottom: 0;
    background: var(--ink);
    border-top: 1px solid var(--ink-line);
    padding: var(--sp-3) var(--sp-4) calc(var(--sp-3) + env(safe-area-inset-bottom, 0px));
    z-index: 4;
  }
  /* Full-width chips stacked — applies to follow-up / consent / scripted
     chip rows (default styling). Starting chips (--start modifier) opt
     out via the override in the starting-chips section below so they
     stay a single horizontally-scrollable strip. */
  .chat-quick-replies .quick-reply { width: 100%; text-align: left; }

  /* Evidence panel becomes an 88vh bottom sheet on the dark ink ground.
     Hidden by default; revealed when the panel has content. */
  .chat-panel-col {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 88vh;
    background: var(--ink-2);
    border-top: 1px solid var(--ink-line);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -12px 40px rgba(0,0,0,0.5);
    transform: translateY(100%);
    transition: transform .3s var(--c-ease);
    z-index: 50;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }
  .chat-shell:not(.no-panel) .chat-panel-col {
    transform: translateY(0);
  }
  /* Swipe handle pill at the top of the sheet — visible only on mobile. */
  .chat-panel-col::before {
    content: '';
    position: sticky;
    top: 8px;
    display: block;
    width: 40px;
    height: 4px;
    margin: var(--sp-2) auto 0;
    background: var(--ink-line);
    border-radius: 2px;
    z-index: 5;
  }
  /* /work mobile case-study swap: translateY overlay covers the
     conversation when work-case-active is set on the shell. */
  .chat-shell.work-case-active .chat-panel-col {
    height: 100vh;
    border-radius: 0;
  }
}

/* ============================================================
   MOBILE PASS — /work-specific overrides (<768px)
   Per spec: on /work mobile, the work LIST is full-width
   content (NOT a bottom sheet — that pattern is reserved for
   home), and only the case-study itself opens as a translateY
   overlay sliding up from the bottom.
   ============================================================ */
@media (max-width: 767px) {
  /* Work list is the primary content state — fill the viewport
     in-place (no fixed positioning, no bottom-sheet chrome). */
  body.route-work .chat-panel-col {
    position: static;
    height: auto;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    background: var(--ink);
    border-top: 0;
  }
  /* Drop the swipe-handle pill — there's no sheet to dismiss. */
  body.route-work .chat-panel-col::before { display: none; }
  /* Stack work list above the conversation column on /work mobile
     so the visitor lands directly on the portfolio when they open
     /work — the conversation is below and reachable by scroll. */
  body.route-work .chat-shell {
    grid-template-rows: auto 1fr;
  }
  body.route-work .chat-shell .chat-panel-col { order: -1; }

  /* Case-study open: slide up from the bottom as a fixed overlay
     covering the conversation + work list. The closed state pre-
     stages the panel at translateY(100%) (off-screen below the
     viewport), and .work-case-active animates it to translateY(0)
     for a true bottom-up slide per spec line 72-73. */
  body.route-work .chat-shell .chat-panel-col.work-overlay-prepped,
  body.route-work .chat-shell.work-case-active .chat-panel-col {
    position: fixed;
    inset: 0;
    height: 100vh;
    min-height: 100vh;
    z-index: 60;
    transition: transform .3s var(--c-ease);
    background: var(--ink-2);
    overflow-y: auto;
  }
  body.route-work .chat-shell .chat-panel-col.work-overlay-prepped {
    transform: translateY(100%);
  }
  body.route-work .chat-shell.work-case-active .chat-panel-col {
    transform: translateY(0);
  }
}

/* ============================================================
   WORK CASE-STUDY SWAP (right column on /work)
   Inline fade-out / fade-in inside the chat-panel-content node.
   200ms fade-out, 300ms fade-in. CSS classes toggled by chat.js
   when the swap (work-index ⇄ case-study) is triggered.
   ============================================================ */
.chat-panel-col.work-fading-out .chat-panel-content,
.chat-panel-col.work-fading-out .panel-content {
  opacity: 0;
  transition: opacity .2s var(--c-ease);
}
.chat-panel-col.work-fading-in .chat-panel-content,
.chat-panel-col.work-fading-in .panel-content {
  opacity: 0;
  animation: workSwapIn .3s var(--c-ease) forwards;
}
@keyframes workSwapIn {
  to { opacity: 1; }
}

/* ============================================================
   WORK INDEX PANEL — default content of evidence panel on /work
   ============================================================ */
.work-index-panel {
  padding: var(--sp-6) var(--sp-6) var(--sp-8);
  height: 100%;
  overflow-y: auto;
  color: var(--text);
  background: var(--ink);
}
.work-index-head { margin-bottom: var(--sp-5); }
.work-index-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--sp-4);
}
.work-index-title {
  font-family: var(--display);
  font-weight: var(--fw-display);
  font-size: var(--fs-h1);
  letter-spacing: var(--ls-headline);
  line-height: var(--lh-tight);
  margin: 0 0 var(--sp-5);
  color: var(--white, #fff);
}
.work-index-title em {
  font-style: normal;
  font-weight: var(--fw-display);
  color: var(--be-yellow, #FFC217);
}
.work-index-filters {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--ink-line);
}
.work-index-chip {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: var(--text-mute);
  padding: 7px var(--sp-3);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-full);
  background: transparent;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.work-index-chip:hover { color: var(--text); border-color: rgba(255,255,255,0.22); }
.work-index-chip.is-active {
  color: var(--ink);
  background: var(--be-yellow);
  border-color: var(--be-yellow);
}
.work-index-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.work-index-row {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--ink-line);
  cursor: pointer;
  transition: padding-left .2s var(--ease);
}
.work-index-row:hover { padding-left: 6px; }
.work-index-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-faint);
}
.work-index-dot[data-sector="hospitality"] { background: var(--sec-hospitality); }
.work-index-dot[data-sector="retail"]      { background: var(--sec-retail-light); }
.work-index-dot[data-sector="finance"]     { background: var(--sec-finance); }
.work-index-dot[data-sector="technology"] { background: var(--sec-technology-light); }
/* Task #685: brand colours for the formerly-neutral sectors — the
   -light variants keep the small dots legible on --ink. */
.work-index-dot[data-sector="public-sector"] { background: var(--sec-public-sector-light); }
.work-index-dot[data-sector="media"]         { background: var(--sec-media-light); }
.work-index-dot[data-sector="professional-services"] { background: var(--sec-professional-services-light); }
.work-index-dot[data-sector="energy-utilities"]      { background: var(--sec-energy-utilities-light); }
.work-index-dot[data-sector="industrial"]            { background: var(--sec-industrial-light); }
.work-index-dot[data-sector="education-research"]    { background: var(--sec-education-research-light); }
.work-index-row-client {
  font-family: var(--sans);
  font-size: var(--fs-h3);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-body);
  color: var(--text);
  line-height: var(--lh-snug);
}
.work-index-row-meta {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-nav);
  color: var(--text-faint);
  margin-top: var(--sp-1);
}
.work-index-arrow {
  color: var(--text-faint);
  font-family: var(--mono);
  transition: color .2s ease, transform .2s var(--ease);
}
.work-index-row:hover .work-index-arrow {
  color: var(--be-yellow);
  transform: translateX(4px);
}

/* ============================================================
   Context-shift divider — appears in the message thread when
   the visitor switches surface (e.g. → AI Ops) mid-conversation
   so the change of register feels designed, not accidental.
   ============================================================ */
.context-shift-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: var(--sp-6) var(--sp-1) var(--sp-5);
  opacity: 0.55;
}
.context-shift-line {
  flex: 1;
  height: 1px;
  background: var(--ink-line);
}
.context-shift-label {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}

/* ============================================================
   HOME CHIP LABELS (task #246, rotation removed in task #757)
   Layout + below-input position live under .chat-quick-replies--start
   so home + work share a single visual treatment.
   ============================================================ */
.chip-label-inner {
  display: inline-block;
  transition: opacity .3s var(--c-ease);
}

/* ============================================================
   STARTING CHIPS — shared treatment for / and /work (task #246,
   repositioned in task #756)
   The starting chips render in their natural DOM position — between
   the seeded greeting and the chat-input-row — directly above the
   composer, so greeting → chips → input reads as one contiguous
   block (the ChatGPT/Claude convention). The pills keep the
   low-opacity ink fill so labels read clearly on the dark
   background. Only applied to the *starting* chip rows; follow-up
   renders drop the modifier and chips return to default styling.
   ============================================================ */
.chat-quick-replies--start {
  display: flex;
  /* The four curated chips wrap within the reading column instead of
     overflowing to a horizontal scroll strip — the row belongs to the
     same 560px column as the greeting and composer. */
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  /* Bottom padding is the tight gap to the composer's border-top —
     the chips visually attach to the input rather than floating. */
  padding: var(--sp-2) var(--sp-8) var(--sp-3);
}
.chat-quick-replies--start .quick-reply {
  /* Sized to content; equal height; locked to a single line. Chip
     widths can vary by label, but each row stays one tidy line so
     long labels never wrap to 2 or 3 lines. */
  flex: 0 0 auto;
  width: auto;
  height: 36px;
  min-height: 36px;
  padding: 0 var(--sp-4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  /* Legibility pass — low-opacity bone fill + slightly stronger
     border + lifted text colour. The hover state keeps the existing
     yellow border + yellow text + 1px lift as the interactive
     accent so the chip still reads as a button. */
  background: rgba(244, 241, 234, 0.06);
  border: 1px solid rgba(244, 241, 234, 0.22);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-body);
  line-height: var(--lh-tight);
  border-radius: var(--r-full);
  transition: background .2s var(--c-ease),
              border-color .2s var(--c-ease),
              color .2s var(--c-ease),
              transform .2s var(--c-ease);
}
.chat-quick-replies--start .quick-reply:hover {
  background: rgba(255, 194, 23, 0.10);
  border-color: var(--be-yellow);
  color: var(--be-yellow);
  transform: translateY(-1px);
}
.chat-quick-replies--start .quick-reply.is-active {
  background: rgba(255, 194, 23, 0.14);
  border-color: var(--be-yellow);
  color: var(--be-yellow);
}
/* Mobile pass for the starting strip — Task #711: the horizontal
   scroll strip hid most chip labels off-screen, so on mobile the
   chips stack vertically instead, one full-width row per chip, each
   label fully readable. Uses the same 767px breakpoint as the rest
   of the mobile chat pass. */
@media (max-width: 767px) {
  .chat-quick-replies--start {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow-x: hidden;
    /* Task #756: the stack sits above the composer (no longer the
       bottom-of-screen band), so no safe-area inset is needed. */
    padding: 10px var(--sp-4) 10px;
    gap: var(--sp-2);
  }
  .chat-quick-replies--start .quick-reply {
    width: 100%;
    text-align: center;
    height: auto;
    min-height: 40px;
    padding: var(--sp-2) 14px;
    /* Long labels wrap to a second line instead of clipping. */
    white-space: normal;
    overflow: visible;
  }
}

/* ============================================================
   AGENCY REEL PANEL (right column)
   Opened via the company-panel "open-reel" CTA. Stage = 16:9 video
   or placeholder; below it, a 4-stat row, an italic bridge line,
   and a 2x2 grid of sector tiles that open anchor case studies.
   ============================================================ */
.panel-reel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: var(--sp-6);
}
.panel-reel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--text-faint);
}
/* Eyebrow removed (task #520) — keep the header row but push the
   close button to the top-right so the stage sits flush below it. */
.panel-reel-head--close-only {
  justify-content: flex-end;
}
.panel-reel-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--ink-line);
  border-radius: 8px;
  overflow: hidden;
}
.panel-reel-stage > .panel-reel-video,
.panel-reel-stage > .panel-reel-iframe,
.panel-reel-stage > .panel-reel-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
}
.panel-reel-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at center,
      rgba(255, 194, 23, 0.06) 0%,
      transparent 60%),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.02) 0 8px,
      transparent 8px 16px);
}
.panel-reel-placeholder__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  color: var(--text-mute);
}
.panel-reel-placeholder__play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--ink-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-h3);
  color: var(--be-yellow);
}
.panel-reel-placeholder__label {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}
.panel-reel-sound {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 2;
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.55);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--r-full);
  padding: 6px var(--sp-3);
  cursor: pointer;
  transition: background .2s var(--c-ease), border-color .2s var(--c-ease);
}
.panel-reel-sound:hover {
  background: rgba(0, 0, 0, 0.75);
  border-color: var(--be-yellow);
  color: var(--be-yellow);
}


/* ---- STACKED EVIDENCE PANEL (task #371 co-emission) ----------------
   Used when one assistant turn surfaces multiple distinct kinds of
   evidence at once (e.g. case + insight, case + insight + team). Each
   group is a section with a small heading and a stack of compact
   preview rows; subtle dividers separate sections. Clicking any row
   drills into the full detail (handled by openOnTop with the stacked
   layout registered as the backdrop). Pager is hidden in this mode —
   the panel itself scrolls. */
.panel-stacked {
  padding: var(--sp-6) var(--sp-8) var(--sp-10);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}
.panel-stacked__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-1);
}
.panel-stacked__eyebrow {
  font-family: var(--mono);
  font-weight: var(--fw-regular);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--text-faint);
}
.panel-stacked__head .panel-close {
  background: transparent;
  border: 1px solid var(--ink-line);
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: var(--fs-h3);
  line-height: var(--lh-tight);
  cursor: pointer;
  transition: border-color .2s var(--c-ease), color .2s var(--c-ease);
}
.panel-stacked__head .panel-close:hover {
  border-color: var(--be-yellow);
  color: var(--be-yellow);
}
.panel-stacked__divider {
  height: 1px;
  width: 100%;
  background: var(--ink-line);
  margin: var(--sp-1) 0;
}
.panel-stacked__section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.panel-stacked__heading {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 var(--sp-1);
  font-weight: var(--fw-medium);
}
.panel-stacked__row {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-xs);
  padding: var(--sp-4) 18px;
  cursor: pointer;
  transition: border-color .2s var(--c-ease), transform .2s var(--c-ease), background .2s var(--c-ease);
  font: inherit;
  color: var(--text);
  position: relative;
}
.panel-stacked__row:hover {
  border-color: var(--be-yellow);
  background: var(--ink-3);
  transform: translateY(-1px);
}
.panel-stacked__row:focus-visible {
  outline: 2px solid var(--be-yellow);
  outline-offset: 2px;
}
.panel-stacked__row-meta {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}
.panel-stacked__row-title {
  font-family: var(--serif);
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
  color: var(--text);
  margin-bottom: var(--sp-1);
}
.panel-stacked__row-body {
  font-size: var(--fs-xs);
  line-height: var(--lh-base);
  color: var(--text-mute);
  margin-top: var(--sp-1);
}
.panel-stacked__row-arrow {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: var(--text-faint);
  transition: color .2s var(--c-ease);
}
.panel-stacked__row:hover .panel-stacked__row-arrow {
  color: var(--be-yellow);
}
.panel-stacked__row--team {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
}
.panel-stacked__row-team-portrait {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--ink-3);
  border: 1px solid var(--ink-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--be-yellow);
  font-family: var(--mono);
  font-size: var(--fs-sm);
  letter-spacing: var(--ls-body);
}
.panel-stacked__missing {
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-xs);
  padding: var(--sp-4) 18px;
  color: var(--text-mute);
  font-size: var(--fs-xs);
  line-height: var(--lh-base);
  margin: var(--sp-3) 0;
}
.panel-stacked__row-team-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.panel-stacked__row-team-body {
  min-width: 0;
}
.panel-stacked__row-team-body .panel-stacked__row-title {
  font-size: var(--fs-body);
  margin-bottom: 2px;
}
@media (max-width: 767px) {
  .panel-stacked { padding: var(--sp-5) var(--sp-5) var(--sp-8); }
  .panel-stacked__row-title { font-size: var(--fs-h3); }
}

/* ============================================================
   EXPANDABLE — single shared "Read more / Read less" affordance
   used by the team longBio, role panel deck, and any other
   truncated card body that lives behind a 140–157 char clip.
   The component lives in BE.expandable; this CSS owns the
   visual treatment for the toggle button + collapsed/expanded
   state. The wrapper inlines into prose, so the button sits in
   line with the trailing ellipsis.
   ============================================================ */
.expandable {
  display: inline;
}
.expandable--inline { display: inline; }
.expandable__short,
.expandable__full {
  display: inline;
}
.expandable.is-expanded .expandable__full,
.expandable .expandable__full {
  /* The hidden attribute is the source of truth; this rule just
     keeps the rendered block flowing as inline prose when shown. */
  display: inline;
}
/* Honour the `hidden` attribute on either half. The earlier
   `display: inline` rules outranked the user-agent default for
   `[hidden]` (display: none), which left the Read more / Read
   less toggle visually inert — both halves stayed visible. The
   selectors below explicitly hide whichever half carries the
   hidden attribute, regardless of the wrapper's expanded state.
   The `.role-panel__deck` variants are specificity-boosted copies
   for the role panel deck container, where the paragraphs-format
   shape of the expandable was previously not honouring the toggle
   (task #465). */
.expandable__short[hidden],
.expandable__full[hidden],
.role-panel__deck .expandable__short[hidden],
.role-panel__deck .expandable__full[hidden] {
  display: none !important;
}
.expandable__full p {
  margin: 0 0 0.85em 0;
}
.expandable__full p:last-child {
  margin-bottom: 0;
}
.expandable.is-expanded .expandable__full p,
.team-panel__section .expandable .expandable__full p,
.panel-body--prose .expandable__full p,
.role-panel__deck .expandable__full p {
  display: block;
}
.expandable__toggle {
  display: inline;
  margin-left: var(--sp-1);
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--be-yellow, #FFC217);
  font: inherit;
  font-weight: var(--fw-medium);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.expandable.is-expanded .expandable__toggle {
  display: block;
  margin-top: var(--sp-2);
  margin-left: 0;
}

/* Prose container used by the team longBio: when the full state
   is expanded, the inner <p> blocks need block layout so the
   paragraph breaks read correctly. */
.panel-body--prose {
  display: block;
}
.panel-body--prose .expandable.is-expanded .expandable__full,
.role-panel__deck .expandable.is-expanded .expandable__full {
  display: block;
}

/* ============================================================
   AGENT INTRO OVERLAY (Task #480)
   One-shot animated intro shown on `/` before the chat shell
   becomes interactive. Sits inside #screen-chat as a sibling
   overlay and tears itself down after the visitor hands off
   to a chip / composer / browse link. See agentIntro.js.
   ============================================================ */
.screen--chat .chat-shell.is-intro-hidden { visibility: hidden; }

.agent-intro {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Trimmed from 24px → 12px so the card has more vertical room on
     a 15" laptop (~720–800px usable viewport). */
  padding: var(--sp-3);
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  overflow-y: auto;
  opacity: 0;
  transform: translateY(8px);
  animation: agent-intro-in .42s var(--ease) forwards;
}
@keyframes agent-intro-in {
  to { opacity: 1; transform: translateY(0); }
}
.agent-intro--out {
  animation: agent-intro-out .34s var(--ease-in) forwards;
  pointer-events: none;
}
@keyframes agent-intro-out {
  to { opacity: 0; transform: translateY(-12px); }
}

/* Card layout — orb on top, typed body below — mirrors the reference. */
.agent-intro__shell {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  margin: auto;
}
.agent-intro__canvas-wrap {
  position: relative;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  background: var(--ink);
  width: 100%;
  /* Task #525: the panel height is driven by JS (see
     agentIntro._measureLayout) so the orb fills the leftover vertical
     space after the typed copy, composer, pills row, and browse link
     have been laid out. The values below are a fallback for the very
     first paint before JS has measured; JS overrides them via inline
     `style.height` on every relevant change. The `min-height` is the
     hard floor so the orb never collapses on very short viewports. */
  height: 320px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .5s var(--ease), height .5s var(--ease),
              margin .5s var(--ease), border-width .5s var(--ease);
}
/* Task #483: orb fades out the moment intro typing completes, then
   collapses out of the flow so the text + menu re-center cleanly.
   Task #525: height transition is now driven by an inline height
   reset in `_fadeOutOrb()` (the inline `style.height` set by
   `_measureLayout()` outranks any class rule, so animating via
   max-height no longer works). The class still handles opacity,
   margin, and pointer-events. */
.agent-intro__canvas-wrap.is-fading-out {
  opacity: 0;
  min-height: 0;
  margin: 0;
  pointer-events: none;
}
.agent-intro__shell.is-orb-gone .agent-intro__body {
  border-radius: var(--r-lg);
  border-top: 0;
}
.agent-intro__canvas {
  display: block;
  width: 100%;
  height: 100%;
  /* Task #526: the canvas backing buffer is now sized in JS to match
     the wrap's actual on-screen dimensions (DPR-scaled), so contain is
     effectively a no-op against the matching aspect ratio. We keep it
     as a safety net for the very first frame before JS measures, where
     the buffer is still the markup default of 800x800. */
  object-fit: contain;
}
.agent-intro__body {
  background: var(--ink);
  border-radius: 0 0 16px 16px;
  /* Task #518: tightened vertical padding so the taller orb above
     plus the typed copy, composer, pills and browse link still fit
     in a 15" laptop viewport without page scroll. The horizontal
     padding is the shared gutter for the typed copy, the pills row
     and the composer (task #756 — no breakout). */
  padding: var(--sp-4) var(--sp-10) var(--sp-5);
  border-top: 1px solid rgba(255, 194, 23, 0.06);
}

.agent-intro__typed {
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-body);
  /* Task #486 follow-up: ALL intro text renders as one font, one weight,
     one size, upright. The previous build used display-900 for
     numerals and italic for the "pick a thread" segment — both have
     been removed per direct instruction. The .agent-intro__num and
     .agent-intro__em classes are kept so the JS keeps working but
     they are now visual no-ops; the :not(.agent-intro__cursor)
     descendant rule below pins every span to the same family /
     weight / style / size regardless of which class JS attaches. */
  font-weight: var(--fw-regular);
  font-style: normal;
  /* Tightened line-height (was 1.75) and min-height (was 140px) to
     compress the typed block for the 15" laptop fit. The reserved
     min-height still prevents layout shift as characters type in. */
  line-height: var(--lh-base);
  letter-spacing: var(--ls-body);
  min-height: 72px;
  word-break: break-word;
  overflow-wrap: break-word;
}
.agent-intro__typed > span:not(.agent-intro__cursor) {
  font-family: var(--sans);
  font-weight: var(--fw-regular);
  font-style: normal;
  font-size: inherit;
  letter-spacing: inherit;
  color: var(--text);
}
.agent-intro__num,
.agent-intro__em {
  font-family: var(--sans);
  font-weight: var(--fw-regular);
  font-style: normal;
  font-size: inherit;
  letter-spacing: inherit;
  color: var(--text);
}
.agent-intro__cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 2px;
  background: var(--text);
  vertical-align: text-bottom;
  animation: agent-intro-blink .8s step-end infinite;
}
@keyframes agent-intro-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.agent-intro__chips,
.agent-intro__composer,
.agent-intro__browse-row {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.agent-intro__chips {
  /* Task #756: the pills row stays INSIDE the 720px card, matching
     the composer width, and sits between the typed greeting and the
     composer (chips render before the form in the DOM). The four
     curated labels wrap onto a second line when they don't fit —
     no more breakout wider than the card. */
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  overflow: visible;
  /* Neutralise the shared --start row padding — the intro body's own
     horizontal padding is the gutter here, and the tight 14px
     margin-top provides the gap to the typed greeting above. */
  padding: 0;
}
/* Slightly trim the chip horizontal padding inside the intro so the
   four curated labels fit on one row at desktop widths with
   comfortable breathing room. The default .chat-quick-replies--start
   padding (0 16px) stays in effect everywhere else. */
.agent-intro__chips .quick-reply {
  padding: 0 var(--sp-3);
}
.agent-intro__chips.is-revealed,
.agent-intro__composer.is-revealed,
.agent-intro__browse-row.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.agent-intro__composer {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-md);
  padding: 10px 14px;
  transition-property: opacity, transform, border-color;
}
.agent-intro__composer:focus-within { border-color: var(--be-yellow); }
.agent-intro__input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-style: italic;
  line-height: var(--lh-base);
}
.agent-intro__input::placeholder {
  color: var(--text);
  opacity: 0.55;
  font-style: italic;
}

/* Task #485 — intro chips render in solid white only.
   Override the canonical .quick-reply yellow color/hover so the intro
   chip labels stay neutral; the chip border + background (non-text)
   are inherited from .quick-reply unchanged. Hover/focus affordance
   is conveyed via opacity + border-color only. */
.agent-intro__chips .quick-reply,
.agent-intro__chips .quick-reply .chip-label-inner {
  color: var(--text);
}
.agent-intro__chips .quick-reply {
  opacity: 0.85;
  flex: 0 0 auto;
  white-space: nowrap;
  transition: opacity .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.agent-intro__chips .quick-reply:hover,
.agent-intro__chips .quick-reply:focus-visible {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
  opacity: 1;
}
.agent-intro__chips .quick-reply:hover .chip-label-inner,
.agent-intro__chips .quick-reply:focus-visible .chip-label-inner {
  color: var(--text);
}
.agent-intro__chips .quick-reply.is-active {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.12);
}
/* Task #711: intro starters carry both .agent-intro__chips and
   .chat-quick-replies--start. The nowrap rule above would otherwise
   beat the stacked-strip mobile pass (same specificity, later in
   source), so re-assert wrapping here — after it — for mobile. */
@media (max-width: 767px) {
  .agent-intro__chips .quick-reply {
    white-space: normal;
    overflow: visible;
    height: auto;
  }
}
.agent-intro__send {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--be-yellow);
  color: var(--ink);
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: var(--fs-sm);
  transition: transform .2s var(--ease);
}
.agent-intro__send:hover { transform: scale(1.1); }

.agent-intro__browse-row { margin-top: var(--sp-4); }
.agent-intro__browse {
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-body);
  text-transform: uppercase;
  color: var(--be-text-muted, rgba(255,255,255,0.6));
  padding: 0;
  text-decoration: none;
  transition: color .15s ease;
}
.agent-intro__browse:hover {
  color: var(--be-yellow);
}
.agent-intro__browse:focus-visible {
  outline: 2px solid var(--be-yellow);
  outline-offset: 4px;
}

@media (max-width: 639px) {
  .agent-intro { padding: var(--sp-4); }
  .agent-intro__body { padding: var(--sp-6) var(--sp-5) var(--sp-8); }
  .agent-intro__typed { font-size: var(--fs-body); min-height: 120px; }
  .agent-intro__chips {
    /* Mobile: chips wrap naturally over multiple lines (the desktop
       rule already keeps them inside the body padding — task #756
       removed the break-out); just left-align and tighten the gap. */
    margin-top: 14px;
    justify-content: flex-start;
    gap: 6px;
  }
}

/* ---- About panel: Browse /about parity (hero + shared agency reel +
   six disciplines). Same ink / paper / yellow register as /about,
   compacted for the sidebar column. Reel media comes from
   BE.agencyReel — no separate URL. */
.company-about__hero {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-bottom: var(--sp-5);
}
.company-about__headline {
  font-family: var(--serif);
  font-weight: var(--fw-light);
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-headline);
  color: var(--text);
  margin: 0;
}
.company-about__headline em {
  font-style: italic;
  font-weight: var(--fw-light);
  color: var(--be-yellow);
}
.company-about__sublede {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  color: var(--text-mute);
  margin: 0;
  max-width: 48ch;
}
.company-about__reel { margin: 0 0 var(--sp-6); }
.company-about__reel[hidden] { display: none; }
.company-about__reel-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  overflow: hidden;
}
.company-about__reel-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
}
.company-about__reel-sound {
  position: absolute;
  bottom: var(--sp-3);
  right: var(--sp-3);
  z-index: 2;
  min-height: 44px;
  padding: 0 var(--sp-4);
  font-family: var(--mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(14, 14, 16, 0.6);
  border: 1px solid rgba(244, 241, 234, 0.35);
  cursor: pointer;
  transition: border-color .2s var(--c-ease), color .2s var(--c-ease);
}
.company-about__reel-sound[hidden] { display: none; }
.company-about__reel-sound:hover,
.company-about__reel-sound:focus-visible {
  border-color: var(--be-yellow);
  color: var(--be-yellow);
  outline: none;
}
.company-about__disciplines-section[hidden] { display: none; }
.company-about__disciplines {
  list-style: none;
  margin: var(--sp-4) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--ink-line);
}
.company-about__discipline {
  display: flex;
  gap: var(--sp-3);
  align-items: baseline;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--ink-line);
}
.company-about__discipline-num {
  font-family: var(--mono);
  font-size: var(--fs-label);
  color: var(--be-yellow);
}
.company-about__discipline-name {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  color: var(--text);
}
@media (max-width: 767px) {
  .company-about__founders,
  .company-about__disciplines { grid-template-columns: minmax(0, 1fr); }
}
