:root {
  --bg: #f3eee5;
  --bg-soft: #ece3d4;
  --panel: rgba(255, 252, 246, 0.84);
  --panel-strong: rgba(255, 249, 240, 0.96);
  --ink: #211b17;
  --text: #211b17;
  --muted: #6c645b;
  --accent: #8b6a42;
  --accent-soft: #b48a56;
  --accent-glow: rgba(215, 185, 137, 0.28);
  --agent-dark: #1f1813;
  --agent-dark-soft: #32241b;
  --success: #206343;
  --line: rgba(53, 41, 28, 0.09);
  --line-strong: rgba(139, 106, 66, 0.24);
  --shadow: 0 28px 80px rgba(38, 29, 21, 0.08);
  --shadow-soft: 0 18px 44px rgba(38, 29, 21, 0.05);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(180, 138, 86, 0.11), transparent 28%),
    radial-gradient(circle at right 12%, rgba(33, 27, 23, 0.06), transparent 22%),
    linear-gradient(180deg, #f7f3eb 0%, #f1eadf 52%, #ece2d4 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 220px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 252, 245, 0.72), rgba(255, 252, 245, 0));
}

.page-shell {
  position: relative;
  width: min(var(--max-width), calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.94), rgba(247, 241, 232, 0.82));
  box-shadow: var(--shadow);
}

.site-header,
.hero,
.founder,
.agent,
.services,
.references,
.closing {
  margin-bottom: 20px;
}

.site-header {
  position: sticky;
  top: 10px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 16px 22px;
  background: rgba(255, 249, 241, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  border: 1px solid rgba(255, 240, 216, 0.14);
  background: linear-gradient(145deg, #221c17, #3a2d21);
  color: #f3e4ca;
  font-family: "Didot", "Bodoni 72", "Times New Roman", serif;
  font-size: 1.24rem;
  letter-spacing: 0.12em;
}

.brand h1,
.hero h2,
.hero-card h3,
.section-head h3,
.insight-card h4,
.closing blockquote {
  margin: 0;
  font-family: "Didot", "Bodoni 72", "Times New Roman", serif;
  font-weight: 600;
}

.brand h1 {
  font-size: 1.65rem;
  letter-spacing: -0.02em;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.68rem;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
}

.site-nav a,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: rgba(33, 27, 23, 0.74);
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.link-button:hover {
  color: var(--accent);
  transform: translateY(-1px);
  border-color: rgba(139, 106, 66, 0.14);
  background: rgba(255, 255, 255, 0.56);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mode-badge,
.chat-badge,
.hero-pills span,
.trust-strip span,
.trust-strip strong,
.tag-cloud span,
.prompt-chips button {
  border-radius: 999px;
}

.mode-badge,
.chat-badge {
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.62);
  color: var(--accent);
  font-size: 0.82rem;
}

.lang-switch {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(33, 27, 23, 0.08);
  background: rgba(255, 255, 255, 0.54);
}

.lang-button {
  min-width: 44px;
  min-height: 36px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
}

.lang-button.is-active {
  background: #221c17;
  color: #f7efe1;
}

.hero,
.closing {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 42px;
  padding: 56px;
}

.hero h2 {
  max-width: 10ch;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.lead,
.hero-card-copy,
.section-note,
.small-copy,
.brief-grid dd,
.summary-output,
.service-card p,
.reference-card p,
.closing-copy p,
.message-copy {
  color: var(--muted);
  line-height: 1.74;
}

.lead {
  max-width: 62ch;
  margin: 24px 0 0;
  font-size: 1.02rem;
}

.hero-pills,
.trust-strip,
.hero-actions,
.composer-actions,
.prompt-chips,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-pills,
.trust-strip {
  margin-top: 28px;
}

.hero-pills span,
.prompt-chips button,
.tag-cloud span {
  padding: 9px 14px;
  border: 1px solid rgba(139, 106, 66, 0.14);
  background: rgba(255, 255, 255, 0.58);
}

.trust-strip span,
.trust-strip strong {
  padding: 9px 14px;
  border: 1px solid rgba(33, 27, 23, 0.08);
  background: rgba(255, 255, 255, 0.48);
}

.trust-strip span {
  color: var(--accent);
}

.hero-actions {
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: #211b17;
  color: #f6efe3;
  border-color: #211b17;
}

#heroPrimaryCta {
  position: relative;
  background: linear-gradient(135deg, #1f1813, #8b6a42);
  box-shadow: 0 0 0 0 rgba(139, 106, 66, 0.22), 0 18px 36px rgba(37, 24, 14, 0.16);
  animation: ctaHalo 2.8s ease infinite;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.48);
  color: var(--text);
}

.hero-card,
.agent-mode-card,
.chat-panel,
.insight-card,
.service-card,
.reference-card {
  border: 1px solid rgba(33, 27, 23, 0.06);
  border-radius: var(--radius-lg);
}

.hero-card {
  padding: 28px;
  background: linear-gradient(160deg, #2a221c 0%, #1f1915 100%);
  color: #f7eee1;
  box-shadow: 0 24px 50px rgba(26, 20, 15, 0.18);
}

.hero-card .eyebrow,
.hero-card .metric-value {
  color: #d7b989;
}

.hero-card-copy,
.hero-card .metric-label {
  color: rgba(244, 235, 223, 0.72);
}

.metric-grid,
.card-grid {
  display: grid;
  gap: 16px;
}

.metric-grid {
  grid-template-columns: 1fr;
  margin-top: 24px;
}

.metric-card,
.service-card,
.reference-card {
  padding: 22px;
}

.metric-card {
  border: 1px solid rgba(255, 236, 204, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.metric-value,
.service-index {
  display: block;
  margin-bottom: 8px;
  font-family: "Didot", "Bodoni 72", "Times New Roman", serif;
}

.metric-value {
  font-size: 1.75rem;
}

.metric-label {
  line-height: 1.58;
}

.agent {
  position: relative;
  overflow: hidden;
  padding: 38px;
  scroll-margin-top: 108px;
  background:
    radial-gradient(circle at top right, rgba(215, 185, 137, 0.18), transparent 24%),
    radial-gradient(circle at 8% 84%, rgba(33, 27, 23, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(245, 236, 224, 0.92));
}

.agent::before,
.agent::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.agent::before {
  top: -120px;
  right: -90px;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
}

.agent::after {
  left: -80px;
  bottom: -120px;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(33, 27, 23, 0.08), transparent 72%);
}

.agent > * {
  position: relative;
  z-index: 1;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-end;
}

.section-head h3 {
  max-width: 17ch;
  font-size: clamp(2.15rem, 4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.section-note {
  max-width: 42ch;
  margin: 0;
}

.agent-spotlight {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-top: 24px;
  padding: 24px 26px;
  border: 1px solid rgba(233, 201, 145, 0.16);
  border-radius: 28px;
  background: linear-gradient(135deg, var(--agent-dark) 0%, var(--agent-dark-soft) 54%, #8b6a42 180%);
  color: #f7efe1;
  box-shadow: 0 28px 74px rgba(35, 25, 16, 0.2);
  overflow: hidden;
}

.agent-spotlight::after {
  content: "";
  position: absolute;
  top: -30%;
  left: -14%;
  width: 34%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255, 239, 210, 0.16), transparent);
  transform: rotate(18deg);
  animation: sweepGlow 6.4s linear infinite;
}

.agent-flash {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(238, 209, 157, 0.18);
  background: rgba(255, 249, 239, 0.06);
  color: #e7c387;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  white-space: nowrap;
}

.agent-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #efc56f;
  box-shadow: 0 0 0 0 rgba(239, 197, 111, 0.45);
  animation: beaconPulse 1.8s ease infinite;
}

.agent-spotlight-copy .eyebrow {
  margin-bottom: 10px;
  color: #d7b989;
}

.agent-spotlight-copy h4 {
  margin: 0;
  max-width: 18ch;
  font-family: "Didot", "Bodoni 72", "Times New Roman", serif;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.agent-spotlight-text {
  max-width: 60ch;
  margin-top: 12px;
  color: rgba(247, 239, 225, 0.76);
}

.agent-spotlight-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: 360px;
}

.agent-spotlight-metrics span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 240, 216, 0.15);
  background: rgba(255, 249, 239, 0.08);
  color: #fff2d6;
  font-size: 0.88rem;
}

.agent-mode-card {
  margin-top: 18px;
  padding: 18px 20px;
  border-color: rgba(139, 106, 66, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(249, 241, 231, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.agent-mode-card p:last-child {
  margin: 0;
  color: var(--muted);
}

.agent-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.84fr);
  gap: 20px;
  margin-top: 22px;
  align-items: start;
}

.agent-float-cta {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 233, 194, 0.18);
  background: linear-gradient(135deg, #1f1813, #8b6a42);
  color: #fff1d7;
  text-decoration: none;
  box-shadow: 0 22px 44px rgba(35, 23, 15, 0.26);
  animation: floatLift 2.8s ease-in-out infinite;
}

.agent-float-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #efc56f;
  box-shadow: 0 0 0 0 rgba(239, 197, 111, 0.45);
  animation: beaconPulse 1.8s ease infinite;
}

.chat-panel {
  position: relative;
  padding: 28px;
  border-color: rgba(139, 106, 66, 0.16);
  background: linear-gradient(180deg, rgba(255, 254, 251, 0.98), rgba(248, 242, 234, 0.9));
  box-shadow: 0 26px 64px rgba(39, 28, 18, 0.12), 0 0 0 1px rgba(255, 246, 231, 0.62) inset;
}

.chat-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at top right, rgba(215, 185, 137, 0.16), transparent 32%);
}

.chat-head,
.card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.chat-head {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(139, 106, 66, 0.12);
}

.chat-head strong,
.card-head-simple h4,
.card-head h4 {
  display: block;
  margin-bottom: 4px;
}

.chat-head strong {
  font-size: 1.15rem;
  color: var(--ink);
}

.chat-head span,
.card-head-simple p {
  color: var(--muted);
}

.chat-badge {
  border-color: rgba(255, 235, 198, 0.22);
  background: linear-gradient(135deg, #211b17, #3a2b1e);
  color: #f4e6cd;
  box-shadow: 0 0 0 0 rgba(139, 106, 66, 0.16);
  animation: glowPulse 2.6s ease infinite;
}

.prompt-chips {
  margin: 20px 0 24px;
}

.prompt-chips button {
  border: 1px solid rgba(139, 106, 66, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  box-shadow: 0 10px 22px rgba(36, 24, 15, 0.05);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.prompt-chips button:hover {
  transform: translateY(-1px);
  border-color: rgba(139, 106, 66, 0.28);
  background: rgba(255, 251, 246, 0.96);
}

.chat-messages {
  min-height: 440px;
  max-height: 560px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.message {
  max-width: min(88%, 680px);
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(33, 27, 23, 0.08);
  background: rgba(255, 255, 255, 0.76);
}

.message.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #2a221c, #1f1915);
}

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

.message.user .message-label,
.message.user .message-copy {
  color: #f5ebde;
}

.message-label {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.typing {
  display: inline-flex;
  gap: 6px;
}

.typing span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(139, 106, 66, 0.72);
  animation: pulse 900ms infinite;
}

.typing span:nth-child(2) {
  animation-delay: 120ms;
}

.typing span:nth-child(3) {
  animation-delay: 240ms;
}

.composer {
  margin-top: 18px;
}

.composer textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  border: 1px solid rgba(33, 27, 23, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  font: inherit;
  padding: 16px 18px;
  outline: none;
}

.composer textarea:focus {
  border-color: rgba(139, 106, 66, 0.32);
  box-shadow: 0 0 0 4px rgba(139, 106, 66, 0.08);
}

.composer-actions {
  justify-content: flex-end;
  margin-top: 14px;
}

.insights-panel {
  display: grid;
  gap: 16px;
}

.insight-card {
  padding: 20px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow-soft);
}

.card-head-simple {
  margin-bottom: 12px;
}

.score-ring {
  --score: 18;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(255, 251, 244, 1) 56%, transparent 58%),
    conic-gradient(var(--accent) calc(var(--score) * 1%), rgba(33, 27, 23, 0.08) 0);
  color: var(--accent);
  font-family: "Didot", "Bodoni 72", "Times New Roman", serif;
  font-size: 1.65rem;
}

.small-copy {
  margin: 12px 0 0;
}

.checklist,
.brief-grid,
.next-steps-list {
  margin: 0;
  padding: 0;
}

.checklist,
.next-steps-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.checklist li,
.next-steps-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  color: var(--muted);
}

.check-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(33, 27, 23, 0.12);
  font-size: 0.74rem;
}

.check-mark.complete {
  border-color: rgba(32, 99, 67, 0.24);
  background: rgba(32, 99, 67, 0.08);
  color: var(--success);
}

.brief-grid {
  display: grid;
  grid-template-columns: minmax(108px, 128px) minmax(0, 1fr);
  gap: 10px 14px;
}

.brief-grid dt {
  color: var(--accent);
  font-size: 0.9rem;
}

.brief-grid dd {
  margin: 0;
}

.empty-value {
  color: rgba(108, 100, 91, 0.68);
}

.tag-cloud span {
  color: #234d40;
  border: 1px solid rgba(35, 77, 64, 0.12);
  background: rgba(35, 77, 64, 0.07);
}

.next-steps-list {
  margin-top: 12px;
}

.summary-output {
  min-height: 220px;
  max-height: 320px;
  overflow: auto;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(33, 27, 23, 0.07);
  background: rgba(251, 247, 239, 0.92);
  white-space: pre-wrap;
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 0.9rem;
}

.link-button {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.services,
.references,
.founder {
  padding: 34px;
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}

.service-card,
.reference-card {
  min-height: 210px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(246, 238, 227, 0.78));
}

.service-index {
  font-size: 1.55rem;
  color: var(--accent);
}

.reference-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.reference-card.featured {
  border-color: rgba(139, 106, 66, 0.22);
  background: linear-gradient(180deg, rgba(250, 242, 228, 0.96), rgba(244, 233, 215, 0.88));
}

.closing {
  align-items: center;
}

.closing blockquote {
  max-width: 15ch;
  font-size: clamp(2.35rem, 4.6vw, 4.2rem);
  line-height: 1.04;
  color: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes pulse {
  0%,
  80%,
  100% {
    transform: scale(0.7);
    opacity: 0.5;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes beaconPulse {
  0% {
    transform: scale(0.92);
    box-shadow: 0 0 0 0 rgba(239, 197, 111, 0.42);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 12px rgba(239, 197, 111, 0);
  }

  100% {
    transform: scale(0.92);
    box-shadow: 0 0 0 0 rgba(239, 197, 111, 0);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(139, 106, 66, 0.1);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(139, 106, 66, 0);
  }
}

@keyframes ctaHalo {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(139, 106, 66, 0.18);
  }

  50% {
    box-shadow: 0 0 0 12px rgba(139, 106, 66, 0);
  }
}

@keyframes floatLift {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes sweepGlow {
  from {
    transform: translateX(-10%) rotate(18deg);
  }

  to {
    transform: translateX(360%) rotate(18deg);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero,
  .founder,
  .agent,
  .services,
  .references,
  .closing {
    animation: riseIn 640ms ease both;
  }
}

@media (prefers-reduced-motion: reduce) {
  #heroPrimaryCta,
  .agent-live-dot,
  .chat-badge,
  .agent-spotlight::after,
  .agent-float-cta,
  .agent-float-dot,
  #navAgent {
    animation: none;
  }
}

@media (max-width: 1080px) {
  .site-header,
  .hero,
  .agent-grid,
  .closing {
    grid-template-columns: 1fr;
  }

  .site-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .agent-spotlight {
    grid-template-columns: 1fr;
    justify-items: flex-start;
  }

  .agent-spotlight-metrics {
    justify-content: flex-start;
    max-width: none;
  }
}

@media (max-width: 880px) {
  .metric-grid,
  .card-grid.three,
  .card-grid.two {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 16px, 100%);
    padding-top: 14px;
    padding-bottom: 28px;
  }

  .site-header,
  .hero,
  .founder,
  .agent,
  .services,
  .references,
  .closing {
    padding: 22px;
  }

  .site-header {
    gap: 14px;
  }

  .header-controls,
  .hero-actions,
  .composer-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .chat-messages {
    min-height: 340px;
  }

  .brief-grid {
    grid-template-columns: 1fr;
  }

  .reference-meta {
    flex-direction: column;
  }

  .agent-flash,
  .agent-spotlight-metrics span {
    width: 100%;
    justify-content: center;
  }

  .agent-spotlight-copy h4 {
    max-width: none;
  }

  .agent-float-cta {
    right: 14px;
    left: 14px;
    bottom: 14px;
    justify-content: center;
  }
}
