/* ──────────────────────────────────────────────────────────────────────────
   Howard Kennedy Chatbot Prototype — Shared styles
   Visual cues taken from howardkennedy.com:
   - Bright YELLOW CTA panels (like the "Let's work together" section)
   - Deep AUBERGINE content/footer panels (like the values strip + footer)
   - Big editorial serif headlines on white or aubergine
   - Clean sans body
   ────────────────────────────────────────────────────────────────────────── */

:root {
  --primary: #2A1A4A;          /* deep aubergine — HK signature dark */
  --primary-deep: #1F1238;     /* slightly darker for footer/header */
  --primary-soft: #3E2A66;
  --primary-tint: #f3eef9;     /* very pale tint for hover states */
  --accent: #F5C518;           /* mustard yellow — HK CTA panels */
  --accent-hover: #E5B70F;
  --accent-tint: #fff8da;
  --text: #1c1530;
  --text-muted: #6b6680;
  --text-faint: #9c98ad;
  --bg: #ffffff;
  --bg-soft: #faf9fc;
  --bg-cream: #f6f1e8;         /* warm off-white — "Talk Straight" panel feel */
  --bg-user: #f3eef9;
  --border: #e9e6ef;
  --border-strong: #d2cee0;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow-soft: 0 1px 3px rgba(42, 26, 74, 0.08), 0 4px 16px rgba(42, 26, 74, 0.06);
  --shadow-lift: 0 6px 24px rgba(42, 26, 74, 0.12);
  --max-content: 720px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Georgia", "Times New Roman", "Source Serif Pro", serif;
}

* { box-sizing: border-box; }

/* Make sure the `hidden` attribute always wins over component display rules
   like `display: flex`. Without this, .rec-block / .ask-recs / .ask-answer
   etc. would stay visible when marked hidden. */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

button { font-family: inherit; cursor: pointer; }

/* ──────────────────────────────────────────────────────────────────────────
   Wordmark — circular HK monogram + stacked "Howard / Kennedy" serif wordmark
   (matches the live site banner)
   ────────────────────────────────────────────────────────────────────────── */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--primary);
}
.logo:hover { text-decoration: none; }

.logo-mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  color: var(--primary);
}
.logo-mono svg { display: block; }

.logo-stack {
  display: flex;
  flex-direction: column;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.005em;
  line-height: 1.05;
  color: var(--primary);
}
.logo-stack-line { display: block; }

/* Legacy single-line wordmark (kept for the chat page and footer) */
.logo-mark {
  display: inline-block;
  width: 11px;
  height: 11px;
  background: var(--accent);
  border-radius: 2px;
  flex: 0 0 auto;
}
.logo-word {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.005em;
  line-height: 1;
}
.logo-small .logo-word { font-size: 17px; }
.logo-small .logo-mark { width: 9px; height: 9px; }

/* "On dark" wordmark variant — used in the chat header + site footer */
.logo-dark { color: #ffffff; }
.logo-dark .logo-mark { background: var(--accent); }
.logo-dark .logo-mono,
.logo-dark .logo-stack { color: #ffffff; }

/* ──────────────────────────────────────────────────────────────────────────
   HOMEPAGE (index.html) — full-bleed sections inspired by howardkennedy.com
   ────────────────────────────────────────────────────────────────────────── */
.home-body { background: var(--bg); }

/* Sticky white header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 56px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
}
.site-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.005em;
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--primary); text-decoration: none; }
.site-nav .nav-cta {
  background: var(--accent);
  color: var(--primary);
  padding: 11px 20px;
  border-radius: 2px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.site-nav .nav-cta:hover { background: var(--accent-hover); color: var(--primary); }

/* HERO — Edge of Hospitality 2026 campaign banner
   Warm orange-to-amber gradient with magazine cover element on the right. */
.hero {
  background:
    radial-gradient(120% 120% at 100% 100%, rgba(245, 197, 24, 0.55) 0%, rgba(245, 197, 24, 0) 55%),
    linear-gradient(135deg, #b45a2a 0%, #c97333 25%, #d99240 55%, #e8b045 80%, #efc94a 100%);
  padding: 24px 40px 56px;
  position: relative;
  overflow: hidden;
  margin: 24px 56px 0;
  border-radius: 8px;
  color: #ffffff;
}
.hero-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
  min-height: 380px;
}
.hero-left { z-index: 2; padding: 24px 0; }
.hero-eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  margin: 0 0 18px 0;
}
.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.04;
  color: #ffffff;
  margin: 0 0 28px 0;
}
.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--primary);
  padding: 14px 22px;
  border-radius: 2px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
}
.hero-cta-btn:hover { background: var(--accent-hover); text-decoration: none; transform: translateY(-1px); }

.hero-body {
  margin: 36px 0 0 0;
  max-width: 460px;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}
.hero-body strong { color: #ffffff; font-weight: 600; }

/* Magazine cover element on the right side of the hero */
.hero-cover {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  background:
    radial-gradient(140% 100% at 0% 0%, rgba(245, 197, 24, 0.18) 0%, rgba(245, 197, 24, 0) 60%),
    linear-gradient(160deg, #2a1a4a 0%, #2a1a4a 40%, #6b3a2c 80%, #b45a2a 100%);
  padding: 32px 28px 28px;
  border-radius: 4px;
  aspect-ratio: 3 / 4;
  max-width: 380px;
  justify-self: end;
  width: 100%;
  box-shadow: 0 20px 40px rgba(42, 26, 74, 0.35);
  overflow: hidden;
  font-family: var(--font-serif);
  color: #ffffff;
}
.hero-cover::before {
  /* faint paper texture / vignette */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.18) 100%);
  pointer-events: none;
}
.hero-cover-eyebrow {
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
  position: relative;
  z-index: 1;
}
.hero-cover-stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  margin: -8px 0 0 -4px;
}
.hero-cover-word {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(72px, 9vw, 130px);
  line-height: 0.78;
  letter-spacing: -0.05em;
  color: #ffffff;
  display: block;
}
.hero-cover-word-1 { color: rgba(255, 255, 255, 0.95); }
.hero-cover-word-2 {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.6);
  margin-top: -2px;
  margin-left: 2px;
}
.hero-cover-word-3 {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.3);
  margin-top: -2px;
  margin-left: 4px;
}
.hero-cover-pillars {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.02em;
}
.hero-cover-foot {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 14px;
  font-weight: 400;
}

/* ASK — "Our team are here to help" white band with chatbot input + partner card */
.ask {
  background: var(--bg);
  padding: 96px 56px;
}
.ask-inner { max-width: 1280px; margin: 0 auto; }

.ask-header {
  max-width: 880px;
  margin: 0 0 48px 0;
}
.ask-headline {
  font-family: var(--font-serif);
  font-size: clamp(32px, 3.6vw, 50px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--primary);
  line-height: 1.05;
  margin: 0 0 16px 0;
}
.ask-sub {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  max-width: 640px;
}

.ask-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
  transition: grid-template-columns 0.3s ease;
}
.ask-grid.has-recs {
  grid-template-columns: 1.6fr 1fr;
  gap: 56px;
}
.ask-left {
  display: flex;
  flex-direction: column;
  max-width: 760px;
  width: 100%;
}
.ask-grid.has-recs .ask-left { max-width: none; }

/* Substantial chatbot input — taller, with a small floating label, big yellow send button */
.ask-form {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 2px solid var(--primary);
  border-radius: 6px;
  padding: 8px 8px 8px 24px;
  transition: box-shadow 0.15s ease;
}
.ask-form:focus-within {
  box-shadow: 0 0 0 4px rgba(245, 197, 24, 0.35);
}
.ask-form-label {
  position: absolute;
  top: -10px;
  left: 16px;
  background: var(--bg);
  padding: 0 8px;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
}
.ask-input {
  flex: 1;
  border: 0;
  outline: none;
  font-size: 17px;
  padding: 18px 8px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
}
.ask-input::placeholder { color: var(--text-faint); }
.ask-button {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 4px;
  border: 0;
  background: var(--accent);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
}
.ask-button:hover { background: var(--accent-hover); }
.ask-button:active { transform: scale(0.97); }

.ask-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.ask-foot {
  margin: 24px 0 0 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 640px;
}
.ask-foot a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  font-weight: 500;
}
.ask-foot a:hover { color: var(--primary-deep); }

/* Inline answer area — appears under the input after a question */
.ask-answer {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: fadeIn 0.3s ease;
}
.ask-answer-q {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 18px;
  background: var(--bg-cream);
  border-radius: 6px;
  border-left: 3px solid var(--accent);
}
.ask-answer-q-label {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}
.ask-answer-q-text {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
  line-height: 1.35;
}
.ask-answer-bubble {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px 22px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text);
  min-height: 60px;
}
.ask-answer-bubble p { margin: 0 0 10px 0; }
.ask-answer-bubble p:last-child { margin-bottom: 0; }
.ask-answer-bubble a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  font-weight: 500;
}
.ask-answer-bubble strong { color: var(--primary); font-weight: 700; }
.ask-answer-bubble ul, .ask-answer-bubble ol { margin: 6px 0 10px; padding-left: 22px; }
.ask-answer-bubble li { margin-bottom: 4px; }
.ask-answer-error { color: #7a2d12; }

.ask-answer-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.ask-another-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 9px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ask-another-btn:hover { background: var(--primary); color: #ffffff; }
.ask-continue-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
  text-decoration: none;
}
.ask-continue-link:hover { color: var(--primary-deep); text-decoration: none; }

/* Right panel — live recommendations after a query */
.ask-recs {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeIn 0.4s ease;
}

/* Person card — shown at the top of the recs panel */
.rec-person {
  background: var(--bg-cream);
  border-radius: 6px;
  border: 1px solid var(--border);
  padding: 28px 24px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.rec-person-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 110px;
  min-height: 88px;
}
.rec-person-eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0;
  background: var(--primary);
  padding: 4px 10px;
  border-radius: 2px;
  align-self: flex-start;
}
.rec-person-name {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.012em;
  margin: 6px 0 0 0;
  line-height: 1.05;
}
.rec-person-role {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
}
.rec-person-portrait {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--accent);
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rec-person-portrait::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.4;
}
.rec-person-initials {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--primary-soft) 0%, var(--primary) 70%);
  color: #ffffff;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rec-person-desc {
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
  margin: 18px 0 14px 0;
}
.rec-person-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
  text-decoration: none;
  align-self: flex-start;
}
.rec-person-link:hover { color: var(--primary-deep); text-decoration: none; }

/* Recommendation blocks (experience, articles, pages) */
.rec-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rec-block-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary);
  margin: 0 0 4px 0;
  padding-bottom: 6px;
  position: relative;
  display: inline-block;
  align-self: flex-start;
}
.rec-block-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.rec-block-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rec-block-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  text-decoration: none;
  color: var(--text);
  animation: cardIn 0.3s ease;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.rec-block-item:hover {
  text-decoration: none;
  border-color: var(--primary);
  transform: translateY(-1px);
}
.rec-block-item-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}
.rec-block-item-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Loading shimmer */
.rec-loading {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rec-loading-shimmer {
  height: 60px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--bg-cream) 0%, var(--border) 50%, var(--bg-cream) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
.rec-loading-shimmer:nth-child(1) { height: 110px; }
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Streaming caret + typing dots (used inside ask-answer-bubble) */
.ask-answer-bubble .streaming-caret {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--accent);
  vertical-align: -2px;
  margin-left: 2px;
  animation: caretBlink 1s step-end infinite;
}
.ask-answer-bubble .typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ask-answer-bubble .typing-dots span {
  width: 6px;
  height: 6px;
  background: var(--text-faint);
  border-radius: 50%;
  animation: typingBounce 1.2s infinite ease-in-out;
}
.ask-answer-bubble .typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.ask-answer-bubble .typing-dots span:nth-child(3) { animation-delay: 0.3s; }


/* Partner card on the right — top row (info + portrait), then 2 yellow banners */
.ask-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ask-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--bg-cream);
  padding: 24px;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.ask-card-info { flex: 1; min-width: 0; }
.ask-card-eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin: 0 0 6px 0;
}
.ask-card-name {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.012em;
  margin: 0 0 10px 0;
  line-height: 1.05;
}
.ask-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
  text-decoration: none;
}
.ask-card-link:hover { color: var(--primary-deep); text-decoration: none; }

.ask-portrait {
  flex: 0 0 auto;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--accent);
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.ask-portrait-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Yellow callout banners — full-width, prominent, clickable */
.ask-callout-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--accent);
  color: var(--primary);
  text-decoration: none;
  border-radius: 6px;
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  transition: background 0.15s ease, transform 0.1s ease;
}
.ask-callout-banner:hover {
  background: var(--accent-hover);
  text-decoration: none;
  transform: translateX(2px);
}
.ask-callout-text {
  flex: 1;
  min-width: 0;
}

/* Suggestion chips — used in ask section */
.suggestion-chip {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  transition: all 0.15s ease;
  font-family: inherit;
}
.suggestion-chip:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* STATS section — image left, headline + 3 stats right */
.stats { padding: 88px 56px; background: var(--bg); }
.stats-inner { max-width: 1280px; margin: 0 auto; }
.section-headline {
  font-family: var(--font-serif);
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.012em;
  color: var(--primary);
  margin: 0 0 40px 0;
  line-height: 1.05;
}
.section-headline-light { color: #ffffff; }
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.stats-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  background-image: url('https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?w=700&h=900&fit=crop');
  background-size: cover;
  background-position: center;
  background-color: var(--primary-soft);
  border-radius: 4px;
}
.stats-content { display: flex; flex-direction: column; }
.stats-list { display: flex; flex-direction: column; gap: 24px; }
.stat {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.stat-figure {
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.025em;
  flex: 0 0 auto;
}
.stat-label {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 8px 0 0 0;
}

/* VALUES strip — cream with big serif words */
.values { background: var(--bg-cream); padding: 88px 56px; }
.values-inner { max-width: 1280px; margin: 0 auto; }
.section-eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
  margin: 0 0 36px 0;
  opacity: 0.7;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.value-item {
  font-family: var(--font-serif);
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1;
  border-left: 3px solid var(--accent);
  padding-left: 24px;
}
.value-prefix {
  font-size: clamp(22px, 1.8vw, 28px);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: -0.005em;
}
.value-emphasis {
  font-size: clamp(40px, 4vw, 60px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--primary);
}

/* SECTORS — aubergine panel with image tiles */
.sectors {
  background: var(--primary);
  color: #ffffff;
  padding: 88px 56px;
}
.sectors-inner { max-width: 1280px; margin: 0 auto; }
.sectors-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}
.sectors-header .section-headline { margin: 0; }
.sectors-sub {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  max-width: 360px;
}
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.sector-tile {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sector-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}
.sector-tile-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--primary-soft);
  transition: transform 0.4s ease;
}
.sector-tile:hover .sector-tile-img { transform: scale(1.05); }
.sector-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(42,26,74,0.05) 30%, rgba(31,18,56,0.85) 100%);
}
.sector-tile-label {
  position: absolute;
  bottom: 22px;
  left: 22px;
  right: 22px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  z-index: 2;
  letter-spacing: -0.005em;
}
.sector-tile-img[data-img="hotels"]      { background-image: url('https://images.unsplash.com/photo-1582719508461-905c673771fd?w=600&h=800&fit=crop'); }
.sector-tile-img[data-img="sport"]       { background-image: url('https://images.unsplash.com/photo-1574629810360-7efbbe195018?w=600&h=800&fit=crop'); }
.sector-tile-img[data-img="realestate"]  { background-image: url('https://images.unsplash.com/photo-1486325212027-8081e485255e?w=600&h=800&fit=crop'); }
.sector-tile-img[data-img="wealth"]      { background-image: url('https://images.unsplash.com/photo-1554224155-6726b3ff858f?w=600&h=800&fit=crop'); }

/* INSIGHTS */
.insights { padding: 88px 56px; background: var(--bg); }
.insights-inner { max-width: 1280px; margin: 0 auto; }
.insights-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}
.insights-header .section-headline { margin: 0; }
.link-arrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}
.link-arrow:hover { text-decoration: none; color: var(--primary-deep); }
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.insight-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.insight-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  text-decoration: none;
}
.insight-card-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-cream);
}
.insight-card-img[data-img="living"]      { background-image: url('https://images.unsplash.com/photo-1486325212027-8081e485255e?w=600&h=400&fit=crop'); }
.insight-card-img[data-img="immigration"] { background-image: url('https://images.unsplash.com/photo-1521295121783-8a321d551ad2?w=600&h=400&fit=crop'); }
.insight-card-img[data-img="court"]       { background-image: url('https://images.unsplash.com/photo-1589994965851-a8f479c573a9?w=600&h=400&fit=crop'); }

.insight-card-tag {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
  background: var(--accent);
  padding: 5px 11px;
  border-radius: 2px;
  margin: 20px 24px 0;
}
.insight-card-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.005em;
  line-height: 1.25;
  margin: 14px 24px 8px;
}
.insight-card-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 24px 24px;
}

/* CTA — bright yellow panel with dark serif headline + dark CTA */
.cta { background: var(--accent); padding: 88px 56px; }
.cta-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-headline {
  font-family: var(--font-serif);
  font-size: clamp(32px, 3.4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--primary);
  margin: 0;
  line-height: 1.1;
  max-width: 760px;
}
.cta-button {
  background: var(--primary);
  color: #ffffff;
  padding: 18px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.15s ease, transform 0.1s ease;
  flex: 0 0 auto;
}
.cta-button:hover { background: var(--primary-deep); text-decoration: none; transform: translateY(-1px); }

/* FOOTER — aubergine with yellow social pills + wordmark */
.site-footer {
  background: var(--primary-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 56px 36px;
}
.site-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.site-footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
}
.social-pill {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
}
.social-pill:hover {
  background: var(--accent-hover);
  text-decoration: none;
  transform: translateY(-2px);
}
.site-footer-logo { display: inline-flex; }
.site-footer-meta {
  font-size: 13px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.005em;
}
.site-footer-tiny {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
  letter-spacing: 0.04em;
}

/* ──────────────────────────────────────────────────────────────────────────
   CHAT PAGE — aubergine header band, white interior
   ────────────────────────────────────────────────────────────────────────── */
.chat-body {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}

.chat-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: var(--primary);
  color: #ffffff;
  border-bottom: 4px solid var(--accent);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: background 0.15s ease, color 0.15s ease;
  font-weight: 500;
}
.back-link:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.chat-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
}

/* ── Left pane: chat ─────────────────────────────────────────────────────── */
.chat-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--border);
  background: var(--bg);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 32px 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scroll-behavior: smooth;
}

.message {
  display: flex;
  flex-direction: column;
  max-width: 85%;
  animation: messageIn 0.3s ease;
}
@keyframes messageIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.message-user {
  align-self: flex-end;
  align-items: flex-end;
}
.message-assistant {
  align-self: flex-start;
  align-items: flex-start;
}

.message-bubble {
  padding: 13px 17px;
  border-radius: var(--radius-lg);
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.message-user .message-bubble {
  background: var(--bg-user);
  color: var(--text);
  border-bottom-right-radius: 4px;
}
.message-assistant .message-bubble {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.message-bubble p { margin: 0 0 10px 0; }
.message-bubble p:last-child { margin-bottom: 0; }
.message-bubble a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  font-weight: 500;
}
.message-bubble ul, .message-bubble ol { margin: 6px 0 10px; padding-left: 22px; }
.message-bubble li { margin-bottom: 4px; }
.message-bubble strong { font-weight: 700; color: var(--primary); }
.message-bubble code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  background: var(--bg-soft);
  padding: 1px 6px;
  border-radius: 4px;
}

/* Streaming caret */
.streaming-caret {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--accent);
  vertical-align: -2px;
  margin-left: 2px;
  animation: caretBlink 1s step-end infinite;
}
@keyframes caretBlink {
  50% { opacity: 0; }
}

/* Typing indicator */
.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.typing-dots span {
  width: 6px;
  height: 6px;
  background: var(--text-faint);
  border-radius: 50%;
  animation: typingBounce 1.2s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* Error bubble */
.message-error .message-bubble {
  background: #fff4f1;
  border: 1px solid #f3c1b3;
  color: #7a2d12;
}

/* "Cached answer" badge */
.cache-badge {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 6px;
  padding: 2px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-soft);
  align-self: flex-start;
  cursor: help;
  font-weight: 600;
}

/* ── Chat input row ──────────────────────────────────────────────────────── */
.chat-input-row {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.chat-input {
  flex: 1;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 13px 18px;
  font-size: 15px;
  outline: none;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.chat-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(42, 26, 74, 0.1);
}
.chat-input::placeholder { color: var(--text-faint); }

/* Send button — yellow, matches HK CTA buttons */
.chat-send {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  border: 0;
  background: var(--accent);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
}
.chat-send:hover { background: var(--accent-hover); }
.chat-send:disabled {
  background: var(--border-strong);
  color: var(--text-faint);
  cursor: not-allowed;
}
.chat-send:active:not(:disabled) { transform: scale(0.95); }

/* ── Right pane: recommendations ─────────────────────────────────────────── */
.recs-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--bg-cream);
  padding: 32px 32px 28px;
  overflow-y: auto;
  border-left: 1px solid var(--border);
}

.recs-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--primary);
  margin: 0 0 22px 0;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--accent);
}

.recs-empty {
  font-size: 14px;
  color: var(--text-muted);
  padding: 18px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  text-align: center;
  background: var(--bg);
}

.recs-section {
  margin-bottom: 28px;
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.recs-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary);
  margin: 0 0 12px 0;
  display: inline-block;
  position: relative;
  padding-bottom: 6px;
}
.recs-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.recs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rec-card {
  display: block;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  animation: cardIn 0.35s ease;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rec-card:hover {
  text-decoration: none;
  border-color: var(--primary);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.rec-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 4px 0;
  line-height: 1.35;
}
.rec-card-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* People cards — editorial treatment matching HK lawyer profiles */
.rec-card-person {
  border-left: 3px solid var(--accent);
}
.rec-card-person .rec-card-meta {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 4px 0;
  opacity: 0.7;
}
.rec-card-person .rec-card-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 2px;
  letter-spacing: -0.005em;
}
.rec-card-person .rec-card-role {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0 0 8px 0;
  font-style: italic;
}

.recs-loading {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Responsive: collapse to single column under 1024px ──────────────────── */
@media (max-width: 1024px) {
  .chat-main {
    grid-template-columns: 1fr;
  }
  .chat-pane { border-right: 0; border-bottom: 1px solid var(--border); }
  .recs-pane { max-height: 40vh; border-left: 0; }

  /* Homepage tightens up */
  .site-header { padding: 14px 24px; }
  .site-nav { gap: 18px; }
  .site-nav a:not(.nav-cta) { display: none; }
  .hero { margin: 14px 14px 0; padding: 18px 24px 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; min-height: 0; }
  .hero-cover { aspect-ratio: auto; min-height: 320px; max-width: 100%; justify-self: stretch; }
  .hero-body { max-width: none; }
  .site-nav a:not(.nav-cta) { display: none; }
  .logo-stack { display: none; }
  .ask, .stats, .values, .sectors, .insights, .cta { padding: 56px 24px; }
  .ask-grid { grid-template-columns: 1fr; gap: 32px; }
  .ask-card-top { flex-direction: column-reverse; align-items: flex-start; text-align: left; gap: 16px; }
  .ask-portrait { width: 100px; height: 100px; }
  .stats-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats-image { aspect-ratio: 16 / 10; max-height: 320px; }
  .values-grid { grid-template-columns: 1fr; gap: 18px; }
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
  .insights-grid { grid-template-columns: 1fr; gap: 20px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .site-footer { padding: 40px 24px 28px; }
}

@media (max-width: 600px) {
  .sectors-grid { grid-template-columns: 1fr; }
  .stat { gap: 18px; }
  .stat-figure { font-size: 48px; }
}
