:root {
  --ink: #111827;
  --muted: #5b6472;
  --line: #d9e1ea;
  --paper: #ffffff;
  --soft: #f5f7fa;
  --steel: #1f5f8b;
  --steel-dark: #17486a;
  --green: #2f7d5c;
  --gold: #b58a55;
  --charcoal: #0b1118;
  --radius: 8px;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: var(--charcoal);
  border-radius: var(--radius);
  font-size: 0.84rem;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--steel);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
  padding: clamp(58px, 8vw, 112px) clamp(20px, 5vw, 72px) clamp(44px, 7vw, 92px);
  background:
    linear-gradient(
      90deg,
      rgba(245, 247, 250, 0.94),
      rgba(255, 255, 255, 0.72)
    ),
    repeating-linear-gradient(
      0deg,
      rgba(31, 95, 139, 0.08) 0 1px,
      transparent 1px 42px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(31, 95, 139, 0.08) 0 1px,
      transparent 1px 42px
    );
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--steel);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 980px;
  font-size: clamp(2.75rem, 7vw, 6.8rem);
  font-weight: 780;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  font-size: 1.22rem;
}

.hero h1 span {
  display: block;
  color: var(--gold);
}

.hero-copy {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 750;
  text-decoration: none;
}

.button.primary {
  color: #fff;
  background: var(--steel);
  border-color: var(--steel);
}

.button.primary:hover {
  background: var(--steel-dark);
}

.button.secondary {
  color: var(--ink);
  background: #fff;
}

.button.secondary:hover {
  border-color: var(--steel);
}

.hero-visual-stack {
  display: grid;
  gap: 18px;
}

.hero-image,
.case-image,
.visual-tile img,
.profile-photo {
  display: block;
  width: 100%;
  object-fit: cover;
}

.hero-image {
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.bridge-panel {
  padding: clamp(22px, 4vw, 34px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.flow {
  display: grid;
  gap: 14px;
}

.flow-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.flow-item strong {
  display: block;
  margin-bottom: 4px;
}

.flow-arrow {
  justify-self: center;
  color: var(--steel);
  font-weight: 900;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  padding: 24px clamp(14px, 3vw, 28px);
  background: #fff;
}

.metric strong {
  display: block;
  color: var(--charcoal);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.section,
.page-hero,
.split-section,
.cta-band,
.article-body,
.blog-grid {
  padding: clamp(54px, 7vw, 92px) clamp(20px, 5vw, 72px);
}

.page-hero {
  background: var(--soft);
}

.page-hero.compact {
  padding-bottom: clamp(36px, 5vw, 58px);
}

.about-hero {
  padding-top: clamp(44px, 5vw, 72px);
}

.about-hero h1 {
  max-width: 960px;
  font-size: clamp(2.35rem, 4.8vw, 5rem);
}

.page-hero p,
.section-lead {
  max-width: 800px;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 32px;
}

.section-heading p {
  max-width: 640px;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card,
.post-card,
.case-card,
.service-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.04);
}

.card,
.post-card,
.case-card {
  padding: 24px;
}

.card p,
.case-card p,
.post-card p,
.service-row p {
  color: var(--muted);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.audience-card {
  min-height: 320px;
  padding: 30px;
  color: #fff;
  background: var(--charcoal);
  background-position: center;
  background-size: cover;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.audience-card-startup {
  background-image:
    linear-gradient(90deg, rgba(11, 17, 24, 0.88), rgba(11, 17, 24, 0.38)),
    url("/res/img/startup-product-planning.webp");
}

.audience-card-manufacturing {
  background-image:
    linear-gradient(90deg, rgba(11, 17, 24, 0.88), rgba(22, 50, 71, 0.42)),
    url("/res/img/manufacturing-analytics.webp");
}

.audience-card::after {
  content: "";
  position: absolute;
  inset: auto -25% -42% 30%;
  height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: rotate(-8deg);
}

.audience-card-startup::after,
.audience-card-manufacturing::after {
  display: none;
}

.audience-card h3,
.audience-card p {
  position: relative;
  z-index: 1;
  color: #fff;
}

.audience-card p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.78);
}

.visual-section {
  padding-top: clamp(28px, 4vw, 48px);
  padding-bottom: 0;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.visual-tile {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.04);
}

.visual-tile img {
  aspect-ratio: 4 / 3;
}

.visual-tile figcaption {
  padding: 12px 14px 14px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 800;
}

.service-list {
  display: grid;
  gap: 16px;
}

.service-row {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 22px;
  padding: 24px;
}

.recommended-reading {
  padding-top: clamp(28px, 4vw, 48px);
  background: var(--soft);
}

.recommended-reading h2 {
  max-width: 720px;
}

.reading-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.reading-list a {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 18px;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.reading-list span {
  font-weight: 850;
}

.reading-list small {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: start;
}

.profile-intro {
  display: grid;
  gap: 22px;
}

.profile-photo {
  max-width: 420px;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-profile {
  align-items: center;
}

.about-copy {
  max-width: 820px;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.credential-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.credential-item {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.credential-item p {
  margin: 0;
  color: var(--muted);
}

.about-faq {
  background: var(--soft);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.faq-item {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.04);
}

.faq-item h3 {
  font-size: 1.04rem;
  line-height: 1.3;
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--muted);
}

.case-card {
  overflow: hidden;
}

.case-image {
  aspect-ratio: 16 / 10;
  margin: -24px -24px 22px;
  width: calc(100% + 48px);
}

.check-list {
  padding-left: 20px;
  color: var(--muted);
}

.check-list li {
  margin-bottom: 10px;
}

.cta-band {
  color: #fff;
  background: var(--charcoal);
}

.cta-band h2,
.cta-band p {
  color: #fff;
}

.cta-band p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
}

.cta-band a:not(.button) {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.medium-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  background:
    linear-gradient(90deg, rgba(11, 17, 24, 0.94), rgba(31, 95, 139, 0.86)),
    url("/res/img/ai-workflow-architecture.webp") center / cover;
  color: #fff;
}

.medium-panel h2,
.medium-panel p {
  color: #fff;
}

.medium-panel p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
}

.external-writing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.medium-panel .button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}

.medium-panel .button.secondary:hover {
  border-color: rgba(255, 255, 255, 0.56);
}

.medium-articles {
  display: grid;
  gap: 12px;
}

.medium-articles a {
  padding: 16px 18px;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
}

.medium-articles span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.medium-articles a:hover {
  background: rgba(255, 255, 255, 0.16);
}

.post-card h2 {
  font-size: 1.35rem;
}

.post-card h2 a {
  text-decoration: none;
}

.post-card time,
.post-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.post-meta span {
  padding: 4px 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.article-body {
  max-width: 860px;
  margin: 0 auto;
}

.article-body h2 {
  margin-top: 38px;
  font-size: 2rem;
}

.article-body p,
.article-body li {
  color: #374151;
  font-size: 1.05rem;
}

.article-body blockquote {
  position: relative;
  margin: 42px 0;
  padding: 28px 0 28px 52px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.article-body blockquote::before {
  position: absolute;
  top: 20px;
  left: 0;
  color: var(--gold);
  content: "\201C";
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.7rem;
  line-height: 0.8;
}

.article-body blockquote p {
  margin: 0;
  color: #243142;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.5vw, 1.72rem);
  font-weight: 500;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .article-body blockquote {
    padding-left: 38px;
  }

  .article-body blockquote::before {
    font-size: 3.8rem;
  }
}

.article-figure {
  margin: 36px 0;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(28px, 6vw, 72px);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: #52616f;
  font-size: 0.95rem;
}

.form-status[data-state="success"] {
  color: #0f7a4f;
}

.form-status[data-state="error"] {
  color: #b42318;
}

.form-status[data-state="pending"] {
  color: #5b6170;
}

.contact-form button:disabled {
  cursor: progress;
  opacity: 0.68;
}

.calendly-followup {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: var(--soft);
  border: 1px solid #cfe2f0;
  border-radius: var(--radius);
}

.calendly-followup h2 {
  font-size: 1.05rem;
}

.calendly-followup p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.calendly-embed-target {
  width: 100%;
  min-height: 680px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.calendly-embed-target.is-unavailable {
  display: grid;
  min-height: 160px;
  place-items: center;
  padding: 20px;
  color: var(--muted);
  text-align: center;
}

.calendly-followup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.calendly-followup-actions .button {
  min-height: 44px;
}

body.has-calendly-modal {
  overflow: hidden;
}

.calendly-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 34px);
  background: rgba(11, 17, 24, 0.62);
}

.calendly-modal-card {
  display: grid;
  gap: 14px;
  width: min(1040px, 100%);
  max-height: min(900px, calc(100vh - 34px));
  overflow: auto;
  padding: clamp(18px, 3vw, 28px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 28px 90px rgba(11, 17, 24, 0.32);
}

.calendly-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.calendly-modal-header h2 {
  font-size: 1.45rem;
}

.calendly-modal-card p {
  color: var(--muted);
}

.calendly-modal-card .calendly-embed-target {
  min-height: min(700px, calc(100vh - 250px));
}

.calendly-modal-close {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--ink);
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.calendly-modal-card .button {
  justify-self: start;
}

.site-footer {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 28px;
  padding: 34px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.76);
  background: var(--charcoal);
}

.site-footer strong {
  color: #fff;
}

.site-footer p {
  max-width: 560px;
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
}

.chatbot-shell {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 40;
  display: grid;
  justify-items: end;
  gap: 12px;
}

.chatbot-launcher {
  min-height: 48px;
  padding: 0 18px;
  color: #fff;
  font: inherit;
  font-weight: 800;
  background: var(--charcoal);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.chatbot-panel {
  display: grid;
  width: min(420px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 96px));
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(11, 17, 24, 0.22);
}

.chatbot-panel.is-expanded {
  width: min(720px, calc(100vw - 32px));
  max-height: min(85vh, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
}

.chatbot-panel.is-expanded .chatbot-messages {
  flex: 1;
  max-height: none;
}

.chatbot-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.chatbot-header-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.chatbot-header h2 {
  font-size: 1.25rem;
}

.chatbot-expand {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.chatbot-close {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--ink);
  font: inherit;
  font-size: 1.4rem;
  line-height: 1;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.chatbot-topics {
  display: flex;
  gap: 8px;
  padding: 14px 18px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.chatbot-qualifiers {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.chatbot-qualifiers p {
  margin: 0;
  color: var(--steel);
  font-size: 0.94rem;
  font-weight: 800;
}

.chatbot-qualifiers button {
  width: 100%;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  text-align: left;
  background: #eef6fb;
  border: 1px solid #cfe2f0;
  border-radius: var(--radius);
  cursor: pointer;
}

.chatbot-topics button {
  flex: 0 0 auto;
  padding: 8px 10px;
  color: var(--steel);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  background: #eef6fb;
  border: 1px solid #cfe2f0;
  border-radius: var(--radius);
  cursor: pointer;
}

.chatbot-identity {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.chatbot-identity label {
  font-size: 0.88rem;
}

.chatbot-identity .button {
  width: 100%;
}

.chatbot-turnstile {
  min-height: 65px;
  overflow: hidden;
}

.chatbot-error {
  margin: 0;
  color: #9c2f24;
  font-size: 0.88rem;
  font-weight: 700;
}

.chatbot-note {
  margin: 0;
  color: #667085;
  font-size: 0.82rem;
  font-weight: 500;
}

.chatbot-messages {
  display: grid;
  gap: 12px;
  min-height: 190px;
  max-height: 300px;
  overflow-y: auto;
  padding: 18px;
  background: var(--soft);
}

.chatbot-message {
  max-width: 86%;
  padding: 12px 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.chatbot-message.user {
  justify-self: end;
  color: #fff;
  background: var(--steel);
  border-color: var(--steel);
}

.chatbot-message p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.chatbot-message a {
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-word;
}

.chatbot-message .button {
  width: 100%;
  margin-top: 10px;
}

.chatbot-message .button.secondary {
  color: var(--steel);
  background: #fff;
}

.chatbot-message.rich {
  padding: 14px 14px 10px;
}

.chatbot-rich-intro {
  margin: 0 0 10px 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

.chatbot-rich-closing {
  margin: 10px 0 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

.chatbot-cards {
  display: grid;
  gap: 6px;
}

.chatbot-card {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 7px 10px;
}

.chatbot-card-label {
  flex-shrink: 0;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 20px;
  margin-top: 2px;
}

.chatbot-card-label[data-color="0"] {
  background: #e8f0fe;
  color: #1a56db;
}

.chatbot-card-label[data-color="1"] {
  background: #e6f4ea;
  color: #1a7a34;
}

.chatbot-card-label[data-color="2"] {
  background: #fef3e2;
  color: #a05c07;
}

.chatbot-card-label[data-color="3"] {
  background: #f3e8ff;
  color: #6b21a8;
}

.chatbot-card-label[data-color="4"] {
  background: #fce7f3;
  color: #9d174d;
}

.chatbot-card-label[data-color="5"] {
  background: #e0f2fe;
  color: #075985;
}

.chatbot-card-text {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink);
}

.chatbot-calendly {
  display: grid;
  gap: 10px;
  width: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
}

.chatbot-calendly .calendly-embed-target {
  min-height: 520px;
  border: 0;
}

.chatbot-calendly .button {
  width: 100%;
}

.chatbot-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: end;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
}

.chatbot-form label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.chatbot-form textarea {
  min-height: 46px;
  max-height: 110px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
  resize: vertical;
}

.chatbot-form textarea::placeholder {
  color: #9aa4b2;
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 1;
}

.chatbot-shortcut-hint {
  margin: 6px 0 0;
  color: #87909d;
  font-size: 0.72rem;
  font-weight: 450;
  line-height: 1.35;
}

.chatbot-form .button {
  min-height: 46px;
  width: 100%;
}

.chatbot-form .button:disabled,
.chatbot-identity .button:disabled,
.chatbot-topics button:disabled,
.chatbot-qualifiers button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

@media (max-width: 980px) {
  .hero,
  .split-section,
  .contact-layout,
  .medium-panel,
  .service-row {
    grid-template-columns: 1fr;
  }

  .metrics,
  .card-grid,
  .blog-grid,
  .visual-grid,
  .reading-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: center;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  h1 {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  h2 {
    font-size: 1.35rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  p,
  li,
  a {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .metric strong {
    font-size: 1.8rem;
  }

  .hero-image,
  .case-image {
    max-height: 220px;
    object-position: center;
  }

  .visual-tile img {
    max-height: 200px;
  }

  img:not([class*="logo"]):not([class*="icon"]):not([class*="avatar"]) {
    max-height: 200px;
    width: 100%;
    object-fit: cover;
  }

  .card img,
  [class*="card"] img {
    max-height: 160px;
    object-fit: cover;
  }

  .metrics,
  .card-grid,
  .audience-grid,
  .blog-grid,
  .visual-grid,
  .credential-grid,
  .faq-grid,
  .reading-list,
  .form-row {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .site-footer {
    display: block;
  }

  .footer-links {
    margin-top: 20px;
  }

  .chatbot-shell {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .chatbot-panel,
  .chatbot-launcher {
    width: 100%;
  }

  .chatbot-panel.is-expanded {
    width: 100%;
  }

  .chatbot-expand {
    display: none;
  }

  .chatbot-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.2rem;
  }
  p,
  li {
    font-size: 0.85rem;
  }

  img:not([class*="logo"]):not([class*="icon"]) {
    max-height: 160px;
  }
}
