/* BuildPrompt styles — version: NAV-FIX-4 (2026-07-02) */
/* BuildPrompt website shared styles */

:root {
  /* Surface */
  --paper: #FFFFFF;
  --paper-warm: #F7F5F1;
  --paper-2: #EFEDE7;
  --ink: #0A0A0A;
  --ink-2: #1F2937;
  --ink-3: #4B5563;
  --mute: #6B7280;
  --mute-2: #9CA3AF;
  --rule: #E7E5E0;
  --rule-2: #DCDAD3;

  /* Brand */
  --brand: #4FB7CC;
  --brand-deep: #2A95B7;
  --brand-soft: #DCEEF3;
  --brand-tint: #F0F8FA;

  /* Engine */
  --indigo: #4F46E5;
  --indigo-deep: #3730A3;
  --indigo-soft: #EEF2FF;

  /* Accent + status */
  --orange: #F97316;
  --orange-soft: #FFEDD5;
  --green: #10B981;
  --green-soft: #D1FAE5;
  --yellow: #F5C842;
  --yellow-soft: #FEF3C7;
  --red: #EF4444;
  --red-soft: #FEE2E2;
  --purple: #8B5CF6;
  --purple-soft: #EDE9FE;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.05);
  --shadow-lg: 0 14px 40px rgba(0,0,0,0.08);

  /* Type */
  --sans: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: 'Source Serif 4', 'Lora', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  font-feature-settings: 'cv02','cv03','cv04','cv11','ss01';
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); }

.container { max-width: 1240px; margin: 0 auto; padding: 0 48px; }
.container-narrow { max-width: 920px; margin: 0 auto; padding: 0 48px; }

/* NAV */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.site-nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  max-width: 1240px;
  margin: 0 auto;
}
.brand-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -0.025em; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 30px; height: 30px;
  display: inline-block;
  flex-shrink: 0;
  color: var(--ink);
}
.brand-mark-sm { width: 22px; height: 22px; }
.brand-mark-lg { width: 64px; height: 64px; }
img.brand-mark { object-fit: contain; }
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 36px;
  font-size: 14px;
  font-weight: 500;
}
.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  transition: color .15s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a.active { color: var(--brand-deep); font-weight: 600; }
.site-nav a.btn-dark { color: #fff; padding: 10px 18px; }
.site-nav a.btn-dark:hover { color: #fff; }
.site-nav a.btn-light { color: var(--ink); padding: 10px 18px; }
.site-nav a.btn-ghost { color: var(--ink); padding: 10px 18px; }
.site-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 2px;
  background: var(--brand);
}

/* Trademark superscript styling */
sup.tm { font-size: 0.55em; vertical-align: super; line-height: 0; margin-left: 1px; font-weight: 500; opacity: 0.85; }

/* Nav dropdown */
.site-nav .has-dropdown { position: relative; }
.site-nav .has-dropdown > a { cursor: default; }
.site-nav .has-dropdown > a::after {
  content: " \25BE";
  font-size: 10px;
  opacity: 0.55;
  margin-left: 2px;
}
/* When Solutions parent is active, preserve the dropdown arrow AND show the underline */
.site-nav .has-dropdown > a.active::after {
  content: " \25BE";
  font-size: 10px;
  opacity: 0.55;
  margin-left: 2px;
  position: static;
  width: auto;
  height: auto;
  background: transparent;
}
.site-nav .has-dropdown > a.active {
  position: relative;
  box-shadow: inset 0 -2px 0 0 var(--brand);
  padding-bottom: 2px;
}
.site-nav .dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: -16px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 8px;
  min-width: 220px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
  list-style: none;
  display: block;
  margin: 0;
}
.site-nav .has-dropdown:hover .dropdown,
.site-nav .has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.site-nav .dropdown li { display: block; }
.site-nav .dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 14px;
  white-space: nowrap;
}
.site-nav .dropdown a:hover { background: var(--brand-tint); color: #0E92BF; }

/* Mega-menu variant for Solutions dropdown */
.site-nav .dropdown.dropdown-mega { display: grid; grid-template-columns: 1fr 1.25fr; gap: 6px 20px; min-width: 600px; padding: 18px; left: -16px; }
.site-nav .dropdown.dropdown-mega > li { display: block; }
.site-nav .dropdown.dropdown-mega > li > a { font-weight: 600; }
.site-nav .dropdown.dropdown-mega .mega-feat { grid-row: 1 / 4; grid-column: 2; }
.site-nav .dropdown.dropdown-mega .feat-card { display: flex; flex-direction: column; gap: 10px; background: var(--paper-warm); border: 1px solid var(--rule); border-radius: 12px; padding: 16px; color: var(--ink); white-space: normal; height: 100%; box-sizing: border-box; transition: border-color .15s ease, background .15s ease; }
.site-nav .dropdown.dropdown-mega .feat-card:hover { background: #fff; border-color: #0E92BF; color: var(--ink); }
.site-nav .dropdown.dropdown-mega .feat-card .feat-eb { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: #0E92BF; font-weight: 700; }
.site-nav .dropdown.dropdown-mega .feat-card h4 { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.3; margin: 0; }
.site-nav .dropdown.dropdown-mega .feat-card p { font-size: 12.5px; color: var(--mute); margin: 0; line-height: 1.45; }
.site-nav .dropdown.dropdown-mega .feat-card .feat-link { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #0E92BF; font-weight: 700; margin-top: auto; }
.site-nav .dropdown.dropdown-mega .feat-card .feat-thumb { width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; }
.site-nav .dropdown.dropdown-mega .feat-card .feat-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1024px) {
  .site-nav .dropdown.dropdown-mega { display: block; min-width: 0; padding: 0; }
  .site-nav .dropdown.dropdown-mega .mega-feat { grid-row: auto; grid-column: auto; margin-top: 10px; }
  .site-nav .dropdown.dropdown-mega .feat-card { padding: 12px; }
  .site-nav .dropdown.dropdown-mega .feat-card .feat-thumb { display: none; }
}

/* Buttons */
.btn {
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  font-family: var(--sans);
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-deep); }
.btn-block { width: 100%; justify-content: center; padding: 14px 24px; }

/* Eyebrow / labels */
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
}
.eyebrow.brand { color: var(--brand-deep); }
.eyebrow.indigo { color: var(--indigo); }

/* Type scale */
.h-display {
  font-size: 88px;
  font-weight: 800;
  line-height: 0.97;
  letter-spacing: -0.04em;
}
.h-1 {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.h-2 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.h-3 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.h-4 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.lede {
  font-size: 19px;
  color: var(--mute);
  line-height: 1.55;
  max-width: 720px;
}
.body-l { font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.body-m { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.body-s { font-size: 13px; line-height: 1.5; color: var(--mute); }

/* Sections */
section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-loose { padding: 128px 0; }

/* Highlight (brand blue) */
.hl {
  color: #0E92BF;
}
.hl-yellow { background: linear-gradient(180deg, transparent 60%, var(--yellow-soft) 60%); padding: 0 4px; }
.hl-blue { color: #0E92BF; }

/* Cards */
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card-flat { border: 1px solid var(--rule); border-radius: 16px; padding: 24px; }

/* Divider */
.divider {
  height: 1px;
  background: var(--rule);
  margin: 32px 0;
}

/* Feature list (used on home) */
.feat-list { list-style: none; padding: 0; margin: 0; }
.feat-list li {
  position: relative;
  padding: 12px 0 12px 22px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  border-bottom: 1px solid var(--rule);
}
.feat-list li:last-child { border-bottom: none; }
.feat-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

/* Solution / case study card with gradient bg */
.gradient-card {
  border-radius: 22px;
  background: linear-gradient(135deg, #6FCAD9 0%, #4FB7CC 50%, #C0E5ED 100%);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.gradient-card.orange {
  background: linear-gradient(135deg, #F97316 0%, #FED7AA 100%);
}
.gradient-card.indigo {
  background: linear-gradient(135deg, #6366F1 0%, #4F46E5 50%, #A5B4FC 100%);
}
.gradient-card .label {
  font-size: 56px;
  font-weight: 800;
  color: rgba(255,255,255,0.95);
  letter-spacing: -0.04em;
  text-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* Trusted by strip */
.trusted-by {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 32px 0;
  flex-wrap: wrap;
}
.trusted-by .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}
.trusted-by .logo {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink-2);
  opacity: 0.85;
  transition: opacity .2s ease;
}
.trusted-by .logo:hover { opacity: 1; }

/* CTA section */
.cta-section {
  padding: 112px 32px;
  text-align: center;
  background: var(--paper-warm);
  border-top: 1px solid var(--rule);
}
.cta-section h2 {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.cta-section p { font-size: 16px; color: var(--mute); margin: 0 auto 28px; max-width: 560px; }
.cta-section .btn { padding: 16px 36px; font-size: 15px; font-weight: 600; }

.cta-dark {
  background: #0E2A36;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 82%, rgba(14,146,191,0.30) 0%, transparent 55%),
    radial-gradient(circle at 82% 18%, rgba(14,146,191,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.cta-dark h2, .cta-dark p { position: relative; }
.cta-dark h2 em { color: #6FCAD9; }
.cta-dark p { color: rgba(255,255,255,0.78); }
.cta-dark .btn { background: #fff; color: var(--ink); position: relative; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 36px 0 28px;
  font-size: 13px;
  background: var(--paper);
}
.site-footer .inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer .footer-brand { display: flex; flex-direction: column; gap: 10px; max-width: 460px; align-items: flex-start; }
.site-footer .footer-brand .brand-logo { font-size: 16px; font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.site-footer .footer-meta { font-size: 12px; color: var(--mute); line-height: 1.5; margin: 0; }
.site-footer .footer-social { display: inline-flex; margin-top: 2px; opacity: 0.85; transition: opacity .15s ease; }
.site-footer .footer-social:hover { opacity: 1; }
.site-footer .footer-social img { display: block; width: 22px; height: 22px; }
.site-footer .footer-links {
  list-style: none;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 4px 0 0;
  padding: 0;
}
.site-footer ul { list-style: none; }
.site-footer a {
  color: var(--ink-2);
  text-decoration: none;
}
.site-footer a:hover { color: var(--ink); }
.site-footer .copy { color: var(--brand-deep); font-weight: 500; }
.site-footer .footer-bottom { width: 100%; display: flex; justify-content: flex-end; padding-top: 14px; border-top: 1px solid var(--rule); margin-top: 18px; }

@media (max-width: 720px) {
  .site-footer .inner { padding: 0 20px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .site-footer .footer-links { gap: 16px 20px; }
  .site-footer .footer-bottom { justify-content: flex-start; }
}

/* Hero patterns */
.page-hero {
  padding: 80px 0 56px;
  text-align: center;
}
.page-hero h1 { font-size: 64px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; }
.page-hero .lede { margin: 24px auto 0; max-width: 760px; font-size: 17px; }

/* Visual mockup wrapper (used to show product UI) */
.mock-wrap {
  background: linear-gradient(135deg, var(--brand-soft) 0%, #FFFFFF 50%, var(--brand-soft) 100%);
  border-radius: 24px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.mock-wrap.warm { background: linear-gradient(135deg, #FFEDD5 0%, #FFFFFF 50%, #FFEDD5 100%); }
.mock-wrap.cool { background: linear-gradient(135deg, var(--brand-soft) 0%, #FFFFFF 50%, var(--brand-soft) 100%); }

/* Two-column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.two-col.flip { grid-template-columns: 1.15fr 1fr; }
.two-col.flip .copy-col { order: 2; }
.two-col.equal { grid-template-columns: 1fr 1fr; }

/* Three-column features grid */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.four-col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* Mini feature card */
.mini-feat {
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}
.mini-feat .icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.mini-feat h4 { font-size: 17px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.015em; line-height: 1.2; }
.mini-feat h4 small { display: block; font-weight: 400; }
.mini-feat p { font-size: 13px; color: var(--mute); line-height: 1.5; }

/* Solution detail row (for Our Solution sections) */
.detail-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}
.detail-row:first-child { border-top: 1px solid var(--rule); }
.detail-row .label { font-size: 14px; font-weight: 600; color: var(--ink); }
.detail-row .body { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.detail-row .body ul { padding-left: 18px; }
.detail-row .body ul li { margin-bottom: 6px; }

/* SEO/A11y helpers */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Animation */
@keyframes pulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes draw { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
@keyframes float-y { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes glow { 0%,100% { box-shadow: 0 0 0 0 rgba(79,183,204,0); } 50% { box-shadow: 0 0 0 8px rgba(79,183,204,0.15); } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Reveal variants */
.reveal-left { opacity: 0; transform: translateX(-30px); transition: opacity .8s ease, transform .8s ease; }
.reveal-left.in { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal-right.in { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.96); transition: opacity .8s ease, transform .8s ease; }
.reveal-scale.in { opacity: 1; transform: scale(1); }

/* Typing cursor */
.type-cursor::after {
  content: "▋";
  color: var(--brand-deep);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}

/* Animated SVG path draws */
.path-draw { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw 2.4s ease-out forwards; }
.in .path-draw { animation: draw 2.4s ease-out forwards; }

/* Floating element */
.float { animation: float-y 4s ease-in-out infinite; }
.glow { animation: glow 3s ease-in-out infinite; }

/* Marquee track shared */
.marquee {
  overflow: hidden;
  position: relative;
}
.marquee .marquee-track {
  display: flex;
  gap: 64px;
  animation: scroll-x 32s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* Responsive */
@media (max-width: 1024px) {
  .container, .container-narrow, .site-nav .inner, .site-footer .inner { padding-left: 24px; padding-right: 24px; }
  .h-display { font-size: 52px; }
  .h-1 { font-size: 42px; }
  .h-2 { font-size: 32px; }
  .h-3 { font-size: 24px; }
  .page-hero h1 { font-size: 40px; }
  section { padding: 64px 0; }
  .two-col, .two-col.flip, .two-col.equal { grid-template-columns: 1fr; gap: 32px; }
  .two-col.flip .copy-col { order: 0; }
  .three-col { grid-template-columns: 1fr; gap: 16px; }
  .four-col { grid-template-columns: 1fr 1fr; gap: 14px; }
  .site-nav ul { gap: 18px; }
  .site-nav .inner { padding: 16px 24px; }
  .detail-row { grid-template-columns: 1fr; gap: 8px; }
  .cta-section h2 { font-size: 36px; }
  .trusted-by { gap: 24px; }
}

@media (max-width: 640px) {
  .site-nav ul { display: none; }
  .h-display { font-size: 40px; }
  .h-1 { font-size: 32px; }
  .four-col { grid-template-columns: 1fr; }
  .gradient-card .label { font-size: 36px; }
}

/* =========================================================
   MOBILE & TABLET RESPONSIVE OVERRIDES
   ========================================================= */

/* Global tweaks for any viewport up to iPad portrait */
@media (max-width: 1024px) {
  .container { padding: 0 24px; max-width: 100%; }
  .container-narrow { padding: 0 24px; }

  /* NAV: collapse desktop dropdown, stack items */
  .site-nav { position: relative; }
  .site-nav .inner { padding: 14px 20px; gap: 12px; flex-wrap: wrap; }
  .site-nav .inner > a.btn { font-size: 13px; padding: 8px 14px; }
  .site-nav ul { gap: 18px; font-size: 13px; flex-wrap: wrap; justify-content: center; width: 100%; order: 3; }
  .site-nav .has-dropdown .dropdown { position: static; box-shadow: none; border: none; padding: 0; margin-top: 6px; background: transparent; opacity: 1; visibility: visible; transform: none; pointer-events: auto; display: none; }
  .site-nav .has-dropdown:hover .dropdown,
  .site-nav .has-dropdown:focus-within .dropdown { display: block; }

  /* HOME hero */
  .home-hero { padding: 32px 0 48px; }
  .home-hero .container { grid-template-columns: 1fr !important; gap: 32px; }
  .home-hero h1 { font-size: 38px; }
  .home-hero .lede { font-size: 16px; max-width: 100%; }
  .home-hero .hero-stage { order: 2; }
  .home-hero .copy { order: 1; }
  .home-hero .product-layout { height: auto; min-height: 360px; }

  /* SOLUTION heros (digital-handover, compliance, portfolio) */
  .sol-hero .container { grid-template-columns: 1fr !important; gap: 28px; }
  .sol-hero h1 { font-size: 36px; line-height: 1.05; }
  .sol-hero .hero-mockup { padding: 14px; border-radius: 16px; }

  /* PLATFORM V2 hero & steps */
  .pv2-hero h1 { font-size: 36px; }
  .pv2-step .grid { grid-template-columns: 1fr !important; gap: 24px; }
  .pv2-step h2 { font-size: 28px; }
  .pv2-step.flip .grid > :first-child { order: 1 !important; }
  .pv2-step.flip .grid > :last-child { order: 2 !important; }
  .pv2-tiles { grid-template-columns: 1fr 1fr !important; }
  .pv2-diag { padding: 22px 18px; margin-top: 48px; }
  .pv2-diag .d-head { flex-direction: column; gap: 14px; }
  .pv2-diag .cols { grid-template-columns: 1fr 1fr; }
  .pv2-diag .card { min-height: auto; }
  .pv2-diag .legend { gap: 14px; }

  /* CASE study link panel (digital-handover/compliance/portfolio) */
  .case-link-section .case-link { grid-template-columns: 1fr !important; }
  .case-link-section .case-link .copy { padding: 28px; }
  .case-link-section .case-link h3 { font-size: 24px; }
  .case-link-section .case-link .img { min-height: 220px; }

  /* General grids: stack 2-column feat sections */
  .feat-section .grid { grid-template-columns: 1fr !important; gap: 28px; }
  .why-grid { grid-template-columns: 1fr !important; }
  .case-grid { grid-template-columns: 1fr !important; }
  .case-section .head { flex-direction: column; align-items: flex-start; gap: 14px; }

  /* Stat strips */
  .stats-strip { grid-template-columns: 1fr 1fr !important; }
  .stat-tile { border-right: none !important; border-bottom: 1px solid var(--rule); padding: 18px !important; }
  .stat-tile:nth-child(odd) { border-right: 1px solid var(--rule) !important; }
  .stat-tile:nth-last-child(-n+2) { border-bottom: none; }

  /* Pillars */
  .pillar-grid { grid-template-columns: 1fr !important; gap: 24px; }
  .tl-row { grid-template-columns: 1fr !important; gap: 8px; }

  /* Trusted by row */
  .trusted-section .container > div:last-child { gap: 40px !important; }

  /* Badges row */
  .badges { gap: 18px; padding: 0 16px; }
  .badges .divider { display: none; }
  .badge-card { min-height: 80px; }
  .badge-card img { max-height: 70px !important; }

  /* CTA dark section */
  .cta-section h2 { font-size: 36px; }
  .cta-section { padding: 64px 24px; }

  /* Footer */
  .site-footer .inner { flex-direction: column; gap: 12px; text-align: left; align-items: flex-start; }

  /* Tagline / about page tweaks */
  .tagline h2 { font-size: 28px !important; }
  .team-grid { grid-template-columns: 1fr 1fr !important; }
  .team-grid.smaller { grid-template-columns: 1fr 1fr !important; max-width: none; }
  .logo-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 22px !important; }

  /* Roi wedge / chart blocks: keep panel width tight */
  .roi-wedge { padding: 18px 16px !important; }
  .roi-wedge .callout-row { flex-direction: column; align-items: flex-start; gap: 14px; }

  /* Wide UI mockups: scale down on mobile (preserve aspect ratio instead of cropping or scrolling) */
  .hero-mockup { overflow: hidden; }
  .hero-mockup .browser { min-width: 0; }
  .dp { transform-origin: top left; }
  /* SVG mockups already scale via viewBox */
}

/* Phone breakpoint */
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .container-narrow { padding: 0 16px; }

  .site-nav .inner { padding: 12px 14px; }
  .site-nav ul { gap: 12px 16px; font-size: 12px; }
  .site-nav a.btn { font-size: 12px; padding: 7px 12px; }

  .home-hero h1 { font-size: 30px; }
  .home-hero .lede { font-size: 15px; }

  .sol-hero { padding: 32px 0 40px; }
  .sol-hero h1 { font-size: 28px; }
  .sol-hero .eb { font-size: 10px; }
  .sol-hero .hero-copy .lede { font-size: 15px; }

  .pv2-hero h1 { font-size: 30px; }
  .pv2-step { padding: 48px 0; }
  .pv2-step h2 { font-size: 24px; }
  .pv2-tiles { grid-template-columns: 1fr !important; }
  .pv2-diag .cols { grid-template-columns: 1fr; }
  .pv2-diag .d-head h2 { font-size: 22px; }
  .pv2-foot-cta h2 { font-size: 26px !important; }

  .stats-strip { grid-template-columns: 1fr !important; }
  .stat-tile { border-right: none !important; border-bottom: 1px solid var(--rule) !important; }

  .case-link-section .case-link h3 { font-size: 20px; }
  .case-link-section .case-link .copy { padding: 22px; }

  /* Tagline / about */
  .tagline h2 { font-size: 22px !important; }
  .team-grid,
  .team-grid.smaller { grid-template-columns: 1fr !important; }
  .logo-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Headings overall scale */
  h1 { font-size: 32px !important; }
  h2 { font-size: 26px !important; }
  h3 { font-size: 18px !important; }

  .cta-section h2 { font-size: 28px !important; }
  .cta-section p { font-size: 14px; }

  /* Large mockups: scale rather than scroll */
}

/* Smallest phones */
@media (max-width: 380px) {
  .home-hero h1 { font-size: 26px; }
  .sol-hero h1 { font-size: 24px; }
  .pv2-hero h1 { font-size: 26px; }
  .site-nav ul { gap: 10px; }
}

/* =========================================================
   MOBILE HAMBURGER NAV
   ========================================================= */
.nav-hamburger { display: none; }

@media (max-width: 1024px) {
  /* Hide desktop nav + contact button; show hamburger */
  .site-nav .inner > ul { display: none; }
  .site-nav .inner > a.btn { display: none; }
  .site-nav .inner { flex-wrap: nowrap; justify-content: space-between; padding: 14px 20px; }

  .nav-hamburger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0 9px;
    border: 1px solid var(--rule);
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    margin-left: auto;
  }
  .nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
  }

  /* Open menu overlay */
  body.nav-open { overflow: hidden; }
  body.nav-open .site-nav .inner > ul {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 70px; left: 0; right: 0; bottom: 0;
    height: calc(100vh - 70px);
    height: calc(100dvh - 70px);
    background: #fff;
    z-index: 99;
    padding: 28px 24px 120px;
    gap: 4px;
    align-items: stretch;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    width: 100%;
    margin: 0;
    list-style: none;
    box-sizing: border-box;
  }

  body.nav-open .site-nav ul li { width: 100%; }
  body.nav-open .site-nav ul li a {
    display: block;
    padding: 14px 4px;
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    border-bottom: 1px solid var(--rule);
  }
  body.nav-open .site-nav .has-dropdown > a { cursor: default; color: var(--mute); font-size: 12px; font-family: var(--mono); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; padding-bottom: 8px; border-bottom: none; }
  body.nav-open .site-nav .has-dropdown .dropdown {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 8px 0;
    margin: 0;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
  body.nav-open .site-nav .dropdown li a { padding: 12px 4px; font-size: 16px; font-weight: 500; }

  /* Contact us inside open menu — rendered in flow as the last menu item */
  body.nav-open .site-nav ul .nav-contact-item { border-bottom: none; padding-top: 20px; }
  body.nav-open .site-nav ul .nav-contact-item a.btn {
    display: flex !important;
    position: static;
    justify-content: center;
    padding: 14px 18px;
    font-size: 15px;
    background: var(--ink);
    color: #ffffff !important;
    border-bottom: none;
    pointer-events: auto !important;
    cursor: pointer;
  }

  /* Animate hamburger into X */
  body.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 1024px) {
  /* Disable backdrop-filter on mobile so position:fixed children render against viewport */
  .site-nav { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}

/* =========================================================
   SCALE WIDE UI MOCKUPS DOWN ON SMALL SCREENS
   (use zoom so the element's bounding box shrinks with the visual)
   ========================================================= */
@media (max-width: 720px) {
  .hero-mockup { padding: 12px; }
  .hero-mockup .browser { width: 100%; }
  .hero-mockup .dp { zoom: 0.62; min-width: 0; }
  .home-hero .product-layout { zoom: 0.55; min-width: 0; }
  .home-hero .hero-stage { padding: 12px; height: auto; overflow: visible; }
}
@media (max-width: 480px) {
  .hero-mockup .dp { zoom: 0.50; }
}

/* =========================================================
   PREVENT HORIZONTAL OVERFLOW + TIGHTEN MOCKUP SCALING ON MOBILE
   ========================================================= */
@media (max-width: 1024px) {
  html, body { overflow-x: clip; max-width: 100vw; }
  .container, .container-narrow { max-width: 100%; box-sizing: border-box; }
  img, svg { max-width: 100%; height: auto; }

  /* Make home-hero stage adapt: wrapper hides any internal overflow */
  .home-hero .hero-stage { max-width: 100%; overflow: hidden; box-sizing: border-box; }
  .home-hero .product-window, .home-hero .product-layout { max-width: 100%; }
}

@media (max-width: 720px) {
  /* Force the home hero mockup to fit available width */
  .home-hero .hero-stage { padding: 10px; }
}
@media (max-width: 480px) {
  .hero-mockup .dp { zoom: 0.55; }
}
@media (max-width: 380px) {
  .hero-mockup .dp { zoom: 0.50; }
}

/* Platform V2 end-to-end diagram: avoid being wider than viewport */
@media (max-width: 1024px) {
  .pv2-diag { max-width: 100%; }
  .pv2-diag .cols { overflow-x: auto; }
}

/* Tighten home-hero dark frame around scaled mockup on mobile */
@media (max-width: 720px) {
  .home-hero .hero-stage { padding: 10px; box-shadow: none; }
  .home-hero .product-window { width: 100%; }
  .home-hero .product-layout { width: 100%; }
}

/* =========================================================
   HOME HERO MOCKUP: hide on small phones, scale on iPad
   ========================================================= */
@media (max-width: 720px) and (min-width: 481px) {
  .home-hero .hero-stage { padding: 16px; }
  .home-hero .product-layout { zoom: 0.75; min-width: 0; }
  .home-hero .product-window { width: 100%; }
}

/* =========================================================
   v11 MOBILE AMENDS
   ========================================================= */
@media (max-width: 1024px) {
  /* Sticky nav across all mobile pages — solid white so the page doesn't show through */
  .site-nav { position: sticky; top: 0; z-index: 101; background: #ffffff; border-bottom: 1px solid var(--rule); }
  /* When menu is open: body.overflow:hidden breaks sticky, so switch to fixed
     so the BuildPrompt logo stays pinned at the top with a solid white background */
  body.nav-open .site-nav {
    position: fixed !important;
    top: 0; left: 0; right: 0;
    background: #ffffff;
    z-index: 102;
  }
  body.nav-open .site-nav .inner { background: #ffffff; }
  /* Reserve space below the now-fixed nav so the menu drawer aligns under the logo */
  body.nav-open { padding-top: 70px; }

  /* Solution pages: put the image BELOW the headline + copy */
  .sol-hero .container > div:first-child { order: 2; }
  .sol-hero .container > div:last-child { order: 1; }
  .sol-hero .hero-mockup { order: 2; margin-top: 16px; }
  .sol-hero .hero-copy { order: 1; }
  /* Ensure the right element ordering: hero-copy first, hero-mockup second */
  .sol-hero .container { display: flex; flex-direction: column; gap: 24px; }
  .sol-hero .hero-copy { order: 1 !important; }
  .sol-hero .hero-mockup { order: 2 !important; }

  /* how-canvas / how-canvas-ct workflow diagrams: scale to viewport (match portfolio) */
  .how-canvas, .how-canvas-ct, .how-canvas-po { padding: 16px 8px; overflow: hidden; }
  .how-canvas svg, .how-canvas-ct svg, .how-canvas-po svg { width: 100%; min-width: 0; height: auto; display: block; }
}

/* Platform V2: step circles smaller on mobile */
@media (max-width: 720px) {
  .pv2-overview .step { flex: 0 0 160px; width: 160px; padding: 16px; }
  .pv2-overview .step h3 { font-size: 18px; }
  .pv2-overview .step p { font-size: 11px; max-width: 130px; }
  .pv2-overview .step .num { font-size: 10px; margin-bottom: 8px; }

  /* Step 02 (and other flip steps): move SVG image BELOW text on mobile */
  .pv2-step .grid { display: flex !important; flex-direction: column; }
  .pv2-step .grid > :first-child { order: 1 !important; }
  .pv2-step .grid > :last-child { order: 2 !important; }
  /* For flipped steps the SVG was first child; force it after copy */
  .pv2-step.flip .grid > .pv2-visual { order: 2 !important; }
  .pv2-step.flip .grid > div:not(.pv2-visual) { order: 1 !important; }

  /* End-to-end diagram: shrink to fit on mobile */
  .pv2-diag { padding: 18px 14px; }
  .pv2-diag .d-head h2 { font-size: 22px; line-height: 1.15; word-break: keep-all; }
  .pv2-diag .d-head p { font-size: 12px; }
  .pv2-diag .iso-row { flex-wrap: wrap; gap: 6px; }
  .pv2-diag .iso { font-size: 9px; padding: 4px 8px; }
  .pv2-diag .cols { display: block; }
  .pv2-diag .col-label { margin-top: 18px; }
}

/* About: security logos onto two lines + smaller */
@media (max-width: 1024px) {
  .trust .cert-row { gap: 18px; padding: 0 16px; }
  .trust .cert-row .divider { display: none; }
  .trust .cert { min-height: 80px; }
  .trust .cert img { max-height: 70px !important; max-width: none !important; }
  .trust .cert.tall img { max-height: 80px !important; max-width: 72px !important; }
  .trust .divider { display: none; }
}

/* About: 'get in touch' CTA should not be italic */
.cta-section h2 em { font-style: normal !important; }

/* HS2 results list: wrap properly on mobile, never overflow */
@media (max-width: 720px) {
  .results-list .item { white-space: normal; word-break: break-word; font-size: 14px; }
}

/* Home page prompt overlay: hidden on mobile so it doesn't cover the hero image */
@media (max-width: 720px) {
  .home-hero .hero-prompt { display: none !important; }
}

/* Client logos row — keep on one line on mobile, scale logos to fit */
@media (max-width: 720px) {
  .client-logos-row { flex-wrap: nowrap !important; gap: 10px !important; justify-content: space-around !important; }
  .client-logos-row img { height: 18px !important; max-width: 18%; }
  .client-logos-row img[alt="Rubix"] { height: 22px !important; }
}
@media (max-width: 480px) {
  .client-logos-row { gap: 6px !important; }
  .client-logos-row img { height: 14px !important; }
  .client-logos-row img[alt="Rubix"] { height: 18px !important; }
}

/* Home page: Project Handover Documentation mockup — stack chat above table on mobile */
@media (max-width: 720px) {
  .feat-section.alt.flip .ui-mock [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  .feat-section.alt.flip .ui-mock [style*="grid-template-columns: 1fr 1fr"] > div:first-child {
    border-right: none !important;
    border-bottom: 1px solid var(--rule) !important;
  }
}

/* Home page: Better Insights mockup — show image below text on mobile and scale to show fully */
@media (max-width: 1024px) {
  section.feat-section .grid { display: flex !important; flex-direction: column; gap: 24px; }
  section.feat-section .grid .copy-col { order: 1 !important; }
  section.feat-section .grid .ui-mock { order: 2 !important; width: 100%; }
  section.feat-section .ui-mock svg { width: 100%; height: auto; display: block; }
}
/* Phones: keep dense home-page mockups readable by allowing horizontal scroll if needed */
@media (max-width: 720px) {
  section.feat-section .ui-mock { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  section.feat-section .ui-mock svg { min-width: 0; width: 100%; height: auto; }
}

/* === Mobile-only fixes (do not affect desktop) === */
@media (max-width: 1024px) {
  /* Mobile nav: platform featured card is hidden unless the hamburger menu is actually open */
  .site-nav .dropdown.dropdown-mega .mega-feat,
  .site-nav .dropdown.dropdown-mega .feat-card { display: none !important; }
  /* The legacy tablet rule '.site-nav ul { flex-wrap: wrap }' also hits the open menu:
     with the platform card making the column taller than the screen, items wrapped into
     a second column beside it. Force single column + scroll instead. */
  body.nav-open .site-nav .inner > ul { flex-wrap: nowrap !important; justify-content: flex-start !important; padding-bottom: 48px !important; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  body.nav-open .site-nav .dropdown.dropdown-mega { position: static !important; left: auto !important; right: auto !important; min-width: 0 !important; width: 100% !important; box-sizing: border-box; }
  body.nav-open .site-nav .dropdown.dropdown-mega .mega-feat { display: block !important; width: 100%; margin: 10px 0 4px; }
  body.nav-open .site-nav .dropdown.dropdown-mega .feat-card { display: block !important; width: 100%; max-width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 10px; height: auto; }
  body.nav-open .site-nav .dropdown.dropdown-mega .feat-card .feat-eb { font-size: 9px; }
  body.nav-open .site-nav .dropdown.dropdown-mega .feat-card h4 { font-size: 13px; margin: 4px 0; border-bottom: none; }
  body.nav-open .site-nav .dropdown.dropdown-mega .feat-card p { font-size: 11.5px; line-height: 1.4; }
  body.nav-open .site-nav .dropdown.dropdown-mega .feat-card .feat-link { display: inline-block; margin-top: 8px; font-size: 9px; }
}
@media (max-width: 720px) {
  /* Hero browser mockups on Quality / Health-Safety: let them scale, not stretch */
  .hero-mockup { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 12px !important; }
  .hero-mockup .browser { min-width: 0 !important; width: 100% !important; }
  .hero-mockup .browser svg,
  .hero-mockup .browser img { max-width: 100%; height: auto; }

  /* Why BuildPrompt (risk) diagram: scale to viewport, no horizontal clip */
  .why-venn { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .why-venn .venn-svg { min-width: 0 !important; width: 100% !important; max-width: 100% !important; height: auto !important; }

  /* "Get the whole picture" + other feat-section diagrams: scale to viewport */
  section.feat-section .ui-mock { padding: 16px !important; }
  section.feat-section .ui-mock svg { min-width: 0 !important; width: 100% !important; max-width: 100% !important; height: auto !important; }

  /* Case study body: reduce side padding so text reads comfortably on phones */
  .cs-body { padding: 0 16px !important; }
  /* Cross-link panel: tighter padding on phones */
  .cross-link .panel { padding: 22px 18px !important; }
}
@media (max-width: 480px) {
  /* Platform meta-row: 2 cols too cramped on small phones */
  .pv2-step .meta-row { grid-template-columns: 1fr !important; }
}

/* Evidence-by-default (Project Handover Documentation) mock: mobile polish.
   Keeps panels stacked but stops the window-chrome header wrapping. */
@media (max-width: 720px) {
  /* Tighter outer margins so the card uses the full width */
  .feat-section.alt.flip .ui-mock > div[style*="margin: 24px"] { margin: 12px !important; width: calc(100% - 24px) !important; }
  /* Window chrome: hide traffic lights, shrink title, keep it on one line */
  .feat-section.alt.flip .ui-mock div[style*="background:#0A0A0A"] { padding: 9px 12px !important; gap: 8px !important; }
  .feat-section.alt.flip .ui-mock div[style*="background:#0A0A0A"] > div:first-child { display: none !important; }
  .feat-section.alt.flip .ui-mock div[style*="background:#0A0A0A"] > span:first-of-type { font-size: 9px !important; letter-spacing: 0.02em !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
  .feat-section.alt.flip .ui-mock div[style*="background:#0A0A0A"] > span[style*="margin-left:auto"] { flex-shrink: 0; font-size: 8px !important; padding: 2px 7px !important; }
  /* Stacked panels: tighter padding */
  .feat-section.alt.flip .ui-mock [style*="grid-template-columns: 1fr 1fr"] > div { padding: 14px !important; }
}

/* Home: Trusted-by logos on one line on phones */
@media (max-width: 720px) {
  .trusted-section .container > div:last-child { flex-wrap: nowrap !important; gap: 22px !important; justify-content: center !important; padding: 0 16px; }
  .trusted-section .container > div:last-child img { height: 22px !important; }
}
@media (max-width: 400px) {
  .trusted-section .container > div:last-child img { height: 18px !important; }
}

/* Evidence-by-default mock: shorter + cleaner on phones */
@media (max-width: 720px) {
  /* Show header + first 4 table rows only (keeps the flagged B-12 row) */
  .feat-section.alt.flip .ui-mock div[style*="border-radius: 6px"][style*="font-size: 10px"] > div:nth-child(n+6) { display: none !important; }
  /* Hide the sheet pagination footer */
  .feat-section.alt.flip .ui-mock div[style*="justify-content:space-between"][style*="margin-top: 10px"] { display: none !important; }
}

/* Solution pages: left-align the "How it works" section header on phones */
@media (max-width: 720px) {
  .how-section-ct .head,
  .how-section-dh .head,
  .how-section-po .head,
  .copy-block { text-align: left !important; margin-left: 0 !important; }
}

/* Home: halve the gap between the hero image and the Why section on phones */
@media (max-width: 720px) {
  section.why { padding-top: 40px !important; }
  .home-hero-v2 .container { padding-bottom: 16px !important; }
}

/* Evidence-by-default section: halve the gap to the next section on phones */
@media (max-width: 720px) {
  section.feat-section.alt.flip:has(div[style*="background:#0A0A0A"]) { padding-bottom: 0 !important; }
}

/* Solution pages: second diagrams on phones — auto-pan across the artwork (like the animated arrows) */
@media (max-width: 720px) {
  .how-canvas, .how-canvas-po, .how-canvas-ct {
    overflow: hidden;
    padding: 12px !important;
    border-radius: 16px;
  }
  .how-canvas svg, .how-canvas-po svg, .how-canvas-ct svg {
    max-width: none !important;
    height: auto !important;
    display: block;
  }
  .how-canvas svg { width: 900px !important; min-width: 900px !important; animation: howPan900 13s ease-in-out infinite; }
  .how-canvas-po svg, .how-canvas-ct svg { width: 720px !important; min-width: 720px !important; animation: howPan720 11s ease-in-out infinite; }
}
/* Pan from left edge to right edge and back, pausing at each end.
   End offset = viewport minus container/canvas padding (~72px) minus artwork width. */
@keyframes howPan720 {
  0%, 14% { transform: translateX(0); }
  44%, 58% { transform: translateX(calc(100vw - 72px - 720px)); }
  88%, 100% { transform: translateX(0); }
}
@keyframes howPan900 {
  0%, 14% { transform: translateX(0); }
  44%, 58% { transform: translateX(calc(100vw - 72px - 900px)); }
  88%, 100% { transform: translateX(0); }
}

/* Case studies: results tiles fit phone screens (2x2 grid, tighter bars) */
@media (max-width: 720px) {
  .impact-strip { padding: 0 16px !important; }
  .impact-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .impact-tile { padding: 14px !important; }
  .impact-tile .num { font-size: 26px !important; }
  .bar-row { gap: 8px !important; }
  .bar-row .lab { width: 72px !important; font-size: 8.5px !important; }
  .bar-row .val { width: 74px !important; font-size: 12px !important; }
}
@media (max-width: 380px) {
  .impact-grid { grid-template-columns: 1fr !important; }
}
