/* Homepage. Loaded after tokens, base, icons and home-theater.css. The hero
   product theater and stepper keep their lifted styles; everything else on
   the page is defined here, on the same rhythm: eyebrow, heading, one
   paragraph, then the thing itself. */

/* ---------- Section rhythm ---------- */
.home-section { padding: var(--section-padding) 0; }
.home-section--band { background: var(--color-bg-band); }
.section-label {
  display: inline-block; margin-bottom: var(--space-2);
  font-size: var(--type-eyebrow-size); font-weight: var(--type-eyebrow-weight);
  letter-spacing: var(--type-eyebrow-spacing); text-transform: uppercase; color: var(--color-primary);
}
.section-title-large, .home-section > .container > h2, .promise-title, .mega-title, .cta-title {
  font-family: var(--font-display); font-size: var(--type-h2-size); font-weight: var(--type-h2-weight);
  letter-spacing: var(--type-h2-spacing); line-height: var(--type-h2-leading); color: var(--color-text);
  max-width: 22ch; margin-bottom: var(--space-2); text-wrap: balance;
}
.section-subtitle { font-size: var(--type-lede-size); line-height: 1.5; color: var(--color-text); max-width: 60ch; margin-bottom: var(--space-4); }
.section-subtitle--mobile { display: none; }
.seo-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Hero ----------
   Centred headline, then the demo full width. The stage height follows the
   viewport so the whole card is on screen when the page opens, on laptops
   from 1280x720 up; below 1100px the card simply follows the copy. */
.hero.hero-redesign {
  position: relative; display: block; min-height: 0; height: auto; max-height: none;
  padding: calc(var(--nav-height) + var(--nav-offset) + var(--space-3)) 0 var(--space-5);
  background: var(--color-bg); color: var(--color-text); overflow: visible; text-align: center;
}
.hero-redesign-inner { display: block; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); }
.hero-redesign-top { margin: 0 auto 28px; max-width: 1040px; }
.hero.hero-redesign .hero-title {
  font-family: var(--font-display); font-size: clamp(2.2rem, 3.6vw, 3.3rem); font-weight: 600;
  line-height: 1.06; letter-spacing: -0.02em; color: var(--color-text); margin: 0 auto 14px;
  max-width: 36ch; text-wrap: balance; font-variation-settings: 'opsz' 72;
}
.hero.hero-redesign .hero-title .highlight { color: var(--color-primary); font-style: normal; font-weight: 600; }
.hero.hero-redesign .hero-description { font-size: clamp(16px, 1.2vw, 17.5px); line-height: 1.5; color: var(--color-text); max-width: 820px; margin: 0 auto 22px; }
.hero.hero-redesign .hero-description strong { font-weight: 600; }
.hero-mobile-category { display: none !important; }
.hero-actions.hero-actions--top { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-2); margin: 0; }
.hero-actions-cta-row { display: contents; }
.hero.hero-redesign .hero-cta-primary { padding: 14px 28px; font-size: 15.5px; }
.hero.hero-redesign .hero-quote-cta { background: transparent; color: var(--color-text); border: 1.5px solid var(--hairline-strong); padding: 14px 28px; font-size: 15.5px; font-weight: 600; border-radius: var(--radius-pill); text-decoration: none; }
.hero.hero-redesign .hero-quote-cta:hover { background: var(--color-text); color: var(--color-surface); border-color: var(--color-text); }

/* Demo stage: full width of the column, height tied to the viewport */
.hero.hero-redesign .hero-stage-wrap {
  position: relative; width: 100%; max-width: 1040px; margin: 0 auto; text-align: left;
  flex: none; min-height: 0; max-height: none;
  --stage-h: clamp(400px, calc(100svh - 404px), 560px);
}
.hero.hero-redesign .hero-stage-wrap .hero-product-theater,
.hero.hero-redesign .hero-stage-wrap .hpt-theater-stack,
.hero.hero-redesign .hero-stage-wrap .hpt-shell { min-height: var(--stage-h); height: var(--stage-h); max-height: none; }
.hero.hero-redesign .hero-stage-glow { opacity: 0.5; }
.hero-redesign-below-stage { margin-top: var(--space-3); }
.hero-redesign-foot { display: flex; justify-content: center; margin-bottom: var(--space-3); }
.hero-below-stage-spacer { display: none; }
.hero.hero-redesign .hero-stepper { margin: 0 auto; max-width: 880px; }
.hero-trusted-carousel { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--hairline); }
.hero-trusted-label { font-size: var(--type-eyebrow-size); font-weight: var(--type-eyebrow-weight); letter-spacing: var(--type-eyebrow-spacing); text-transform: uppercase; color: var(--color-text-soft); margin-bottom: var(--space-3); text-align: center; }
.scroll-indicator { display: none; }
@media (min-width: 1100px) and (max-height: 780px) {
  /* short laptop screens: tighter headline so the card still lands above the fold */
  .hero.hero-redesign { padding-top: calc(var(--nav-height) + var(--nav-offset) + 16px); }
  .hero.hero-redesign .hero-title { font-size: clamp(2rem, 3vw, 2.7rem); margin-bottom: 10px; }
  .hero.hero-redesign .hero-description { font-size: 15.5px; margin-bottom: 16px; }
  .hero-redesign-top { margin-bottom: 20px; }
  .hero.hero-redesign .hero-cta-primary, .hero.hero-redesign .hero-quote-cta { padding: 12px 24px; font-size: 15px; }
  .hero.hero-redesign .hero-stage-wrap { --stage-h: clamp(380px, calc(100svh - 318px), 560px); }
}
@media (max-width: 1099px) {
  .hero.hero-redesign .hero-stage-wrap { --stage-h: auto; }
  .hero.hero-redesign .hero-stage-wrap .hero-product-theater,
  .hero.hero-redesign .hero-stage-wrap .hpt-theater-stack,
  .hero.hero-redesign .hero-stage-wrap .hpt-shell { height: auto; min-height: 420px; }
}

/* ---------- Promise ---------- */
.promise-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-5); align-items: center; }
.promise-copy { font-size: var(--type-lede-size); line-height: 1.55; color: var(--color-text); max-width: 56ch; }
.promise-contrast { list-style: none; display: grid; gap: var(--space-2); }
.promise-contrast-item { display: grid; gap: 6px; padding: var(--space-3); border-radius: var(--radius-card); border: 1px solid var(--color-border); background: var(--color-surface); }
.promise-contrast-item--new { border-color: var(--hairline-strong); background: var(--color-primary); color: var(--color-on-primary); }
.promise-contrast-tag { font-size: var(--type-eyebrow-size); font-weight: var(--type-eyebrow-weight); letter-spacing: var(--type-eyebrow-spacing); text-transform: uppercase; color: var(--color-text-soft); }
.promise-contrast-item--new .promise-contrast-tag { color: var(--color-accent); }
.promise-contrast-text { font-size: 17px; line-height: 1.5; }
.promise-contrast-item--old .promise-contrast-text { color: var(--color-text-muted); }

/* ---------- Science (proof intro + two panels) ---------- */
.proof-intro-section { padding-bottom: var(--space-4); }
.mega-section { padding: 0 0 var(--space-4); }
.mega-section:last-of-type { padding-bottom: var(--section-padding); }
.mega-grid {
  max-width: var(--container-max); margin: 0 auto; padding: clamp(28px, 4vw, 56px);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); align-items: center;
  border-radius: var(--radius-lg); border: 1px solid var(--color-border); background: var(--color-surface);
}
.mega-section .mega-grid { width: calc(100% - 2 * var(--gutter)); }
.mega-dark .mega-grid { background: var(--color-primary); border-color: transparent; color: var(--color-on-primary); }
.mega-dark .section-label { color: var(--color-accent); }
.mega-dark .mega-title, .mega-dark .mega-features, .mega-dark .mega-features a { color: var(--color-on-primary); }
.mega-dark .mega-description { color: var(--color-text-light); }
.mega-reverse .mega-content { order: 2; }
.mega-title { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.mega-description { font-size: 17px; line-height: 1.6; color: var(--color-text); margin-bottom: var(--space-3); }
.mega-features { list-style: none; display: grid; gap: 12px; }
.mega-features li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.5; }
.mega-features li .fas { flex-shrink: 0; margin-top: 4px; font-size: 14px; color: var(--color-primary); }
.mega-dark .mega-features li .fas { color: var(--color-accent); }
.mega-features a { color: var(--color-primary); }
.mega-visual { min-width: 0; }
.visual-card { border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--color-surface); }
.visual-card img { display: block; width: 100%; height: auto; }
.simulation-visual-stack { display: grid; gap: var(--space-2); }

/* ---------- Case studies ---------- */
.case-studies-home-head { margin-bottom: var(--space-4); }
.case-study-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.case-study-card {
  display: flex; flex-direction: column; overflow: hidden; cursor: pointer;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-card); box-shadow: var(--card-shadow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.case-study-card:hover, .case-study-card:focus-visible { transform: translateY(-2px); box-shadow: var(--card-shadow-hover); }
.case-study-card > img { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; display: block; }
.case-study-card-body { padding: var(--space-3); display: grid; gap: 12px; }
.case-study-eyebrow { font-size: var(--type-eyebrow-size); font-weight: var(--type-eyebrow-weight); letter-spacing: var(--type-eyebrow-spacing); text-transform: uppercase; color: var(--color-primary); }
.case-study-card h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; }
.case-study-metrics { list-style: none; display: grid; gap: 6px; font-size: 15px; color: var(--color-text-muted); }
.case-study-metrics li::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--color-primary); margin: 0 10px 2px 0; }
.case-study-metrics strong { color: var(--color-text); }
.case-study-expand summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--color-primary); }
.case-study-expand p { margin-top: 8px; font-size: 15px; color: var(--color-text-muted); }
.case-study-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14.5px; font-weight: 600; }
.case-studies-home-cta { margin-top: var(--space-4); }

/* ---------- Personas ---------- */
.personas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); }
.persona-card {
  display: flex; flex-direction: column; gap: 12px; padding: var(--space-3); text-decoration: none; color: inherit;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-card);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.persona-card:hover { transform: translateY(-2px); box-shadow: var(--card-shadow-hover); border-color: var(--hairline-strong); color: inherit; }
.persona-card-tick { display: none; }
.persona-card-img { width: 56px; height: 56px; object-fit: contain; }
.persona-card-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; }
.persona-card-copy { font-size: 15.5px; line-height: 1.55; color: var(--color-text); flex: 1; }
.persona-card-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--color-primary); }

/* ---------- Platform video ---------- */
.platform-video-container { max-width: 960px; }
.video-header { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: var(--space-2); }
.video-wrapper { margin-top: var(--space-3); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--color-bg-dark); aspect-ratio: 16 / 9; }
.video-wrapper iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Quote-ready + manufacturing network ---------- */
.quote-ready-card { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: var(--space-5); align-items: center; }
.quote-ready-copy h2 { font-family: var(--font-display); font-size: var(--type-h2-size); letter-spacing: var(--type-h2-spacing); line-height: var(--type-h2-leading); margin-bottom: var(--space-2); max-width: 20ch; }
.quote-ready-copy p { color: var(--color-text); font-size: 17px; max-width: 56ch; }
.quote-ready-actions { display: flex; flex-direction: column; gap: 12px; }
.cert-strip { padding-top: var(--space-4); }
.cert-strip .section-subtitle { margin-bottom: var(--space-3); }
.cert-strip-badges { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.cert-strip-badges img { height: 56px; width: auto; filter: grayscale(1) contrast(0.9); opacity: 0.7; transition: filter var(--transition-fast), opacity var(--transition-fast); }
.cert-strip-badges img:hover { filter: none; opacity: 1; }
.cert-strip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.cert-strip-item { font-size: 13px; font-weight: 600; color: var(--color-primary); background: var(--color-primary-tint); border: 1px solid var(--hairline); border-radius: var(--radius-pill); padding: 6px 12px; }
.cert-strip-foot { margin-top: var(--space-3); font-weight: 600; }

/* ---------- Partners ---------- */
.partner-logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--space-2); }
.partner-logo-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 120px; padding: var(--space-2);
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); text-decoration: none; text-align: center;
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.partner-logo-tile:hover { box-shadow: var(--card-shadow); border-color: var(--hairline-strong); }
.partner-logo-tile img { max-height: 40px; max-width: 120px; width: auto; height: auto; object-fit: contain; }
.partner-logo-name { font-size: 12.5px; color: var(--color-text-soft); line-height: 1.3; }
.partner-wall-foot { margin-top: var(--space-3); color: var(--color-text-muted); }

/* ---------- FAQ ---------- */
.faq-section .container { max-width: 820px; }
.faq-section > .container > h2 { margin-bottom: var(--space-4); }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--space-2);
  padding: 20px 0; background: none; border: 0; text-align: left; cursor: pointer;
  font-family: var(--font-body); font-size: 17px; font-weight: 600; color: var(--color-text);
}
.faq-question .fas { flex-shrink: 0; font-size: 12px; color: var(--color-text-soft); transition: transform var(--transition-fast); }
.faq-item.open .faq-question .fas { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.open .faq-answer { max-height: 900px; }
.faq-answer p { padding: 0 0 20px; color: var(--color-text-muted); line-height: 1.65; max-width: none; }
.faq-answer a { color: var(--color-primary) !important; font-weight: 600; }

/* ---------- Closing CTA ---------- */
.cta-section { background: var(--color-primary); color: var(--color-on-primary); text-align: center; }
.cta-content { max-width: 720px; margin: 0 auto; }
.cta-title { color: var(--color-on-primary); margin: 0 auto var(--space-2); }
.cta-description { font-size: var(--type-lede-size); color: var(--color-text-light); margin: 0 auto var(--space-4); max-width: 48ch; }
.cta-actions { display: flex; justify-content: center; gap: var(--space-2); margin-bottom: var(--space-4); }
.cta-contact-info { font-size: 14px; color: var(--color-text-light-muted); line-height: 1.7; }
.cta-contact-info p { max-width: none; }
.cta-contact-info strong { color: var(--color-on-primary); }
.cta-contact-info a { color: var(--color-text-light); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .personas-grid { grid-template-columns: repeat(2, 1fr); }
  .mega-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .mega-reverse .mega-content { order: 0; }
}
@media (max-width: 768px) {
  .hero.hero-redesign { padding-top: calc(var(--nav-height) + var(--nav-offset) + var(--space-4)); }
  .hero-redesign-top { margin-bottom: var(--space-4); }
  .hero-actions.hero-actions--top { flex-direction: column; }
  .hero-actions.hero-actions--top .btn, .hero.hero-redesign .hero-quote-cta { width: 100%; justify-content: center; }
  .promise-inner, .quote-ready-card, .case-study-card-grid { grid-template-columns: 1fr; gap: var(--space-3); }
  .section-subtitle--desktop { display: none; }
  .section-subtitle--mobile { display: block; margin-top: var(--space-3); }
  .cta-actions { flex-direction: column; align-items: stretch; }
}
@media (max-width: 520px) {
  .personas-grid { grid-template-columns: 1fr; }
  .cert-strip-badges img { height: 44px; }
}

/* ---------- Hero: keep the stepper, badges and logo rail inside the page column ---------- */
.hero.hero-redesign .hero-redesign-below-stage {
  width: 100%; max-width: 1120px; margin: var(--space-4) auto 0; padding: 0;
  display: flex; flex-direction: column; align-items: center; gap: var(--space-3);
}
.hero.hero-redesign .hero-redesign-below-stage .hero-stepper { order: 1; width: 100%; max-width: 880px; margin: 0; }
.hero.hero-redesign .hero-redesign-below-stage .hero-redesign-foot { order: 2; width: 100%; max-width: none; margin: 0; justify-content: center; }
.hero.hero-redesign .hero-cred-flip-viewport { margin: 0 auto; }
.hero.hero-redesign .hero-trusted-carousel, .hero.hero-redesign .hero-trusted-rail {
  width: 100%; max-width: 1120px; margin-left: auto; margin-right: auto; padding-left: 0; padding-right: 0;
}
.hero.hero-redesign .hero-trusted-track-wrap { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }

/* ---------- Section rhythm: one gap between neighbours, not two ---------- */
.home-section { padding: clamp(56px, 7vw, 104px) 0; }
.home-section:not(.home-section--band) + .home-section:not(.home-section--band) { padding-top: 0; }
.home-section--band + .home-section, .home-section + .home-section--band { padding-top: clamp(48px, 6vw, 88px); }
.quote-ready-section.home-section { padding-bottom: var(--space-4); }
.cert-strip { padding: var(--space-3) 0 clamp(56px, 7vw, 104px); }
.proof-intro-section.home-section { padding-bottom: var(--space-4); }
@media (max-width: 768px) {
  /* the lifted theater sheet hides the hero paragraph on phones; keep it */
  .hero.hero-redesign .hero-description { display: block; font-size: 17px; }
}

/* ---------- Why simulation: beyond the published literature ---------- */
.beyond-section.home-section { padding-bottom: var(--space-4); }
.beyond-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-top: var(--space-2); }
.beyond-card { padding: var(--space-4); border-radius: var(--radius-card); border: 1px solid var(--color-border); background: var(--color-surface); }
.beyond-card--sim { background: var(--color-primary); border-color: transparent; color: var(--color-on-primary); }
.beyond-tag { display: inline-block; margin-bottom: var(--space-2); font-size: var(--type-eyebrow-size); font-weight: var(--type-eyebrow-weight); letter-spacing: var(--type-eyebrow-spacing); text-transform: uppercase; color: var(--color-text-soft); }
.beyond-card--sim .beyond-tag { color: var(--color-accent); }
.beyond-list { list-style: none; display: grid; gap: 12px; }
.beyond-list li { position: relative; padding-left: 22px; font-size: 16.5px; line-height: 1.5; }
.beyond-list li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 10px; height: 2px; background: currentColor; opacity: 0.5; }
.beyond-card--sim .beyond-list li::before { background: var(--color-accent); opacity: 1; }
.beyond-card--llm .beyond-list li { color: var(--color-text-muted); }
@media (max-width: 768px) { .beyond-grid { grid-template-columns: 1fr; } }

/* The hero centres its headline; the product theater and its tables must not inherit that. */
.hero.hero-redesign .hero-stage-wrap { text-align: left; }

.hero.hero-redesign .hero-stepper { flex-direction: column; align-items: center; }
.hero.hero-redesign .hero-stepper-rail { justify-content: center; margin: 0 auto; }
.hero.hero-redesign .hero-credibility-badges, .hero.hero-redesign .hero-cred-flip-viewport { margin-left: auto; margin-right: auto; justify-content: center; }
/* The partner rail scrolls inside its own box; it must never widen the page. */
.hero.hero-redesign .hero-trusted-track-wrap, .hero.hero-redesign .partner-logos-carousel { overflow: hidden !important; max-width: 100%; }
.seo-visually-hidden { clip-path: inset(50%); left: 0; top: 0; }


/* Finished formula scene: let the card use the stage instead of sitting small in the middle */
@media (min-width: 1100px) {
  .hero.hero-redesign .hpt-formulate-body { justify-content: center; height: 100%; }
  .hero.hero-redesign .hpt-formulate-output.is-visible,
  .hero.hero-redesign .hpt-formulate-output.is-visible > *,
  .hero.hero-redesign .hpt-formulate-output.is-visible .hpt-lite-card,
  .hero.hero-redesign .hpt-formulate-output.is-visible .hpt-formula-table-wrap,
  .hero.hero-redesign .hpt-formulate-output.is-visible .hpt-ingredient-table { max-width: 820px !important; width: 100% !important; margin-left: auto; margin-right: auto; }
}
@media (min-width: 1100px) and (max-height: 780px) {
  .hero.hero-redesign { padding-top: calc(var(--nav-height) + var(--nav-offset) + 28px); }
  .hero.hero-redesign .hero-stage-wrap { --stage-h: clamp(380px, calc(100svh - 334px), 560px); }
}

/* ---------- Readability pass: centred section heads, narrower measure, balanced cards ---------- */
.home-section > .container > .section-label,
.home-section > .container > .section-title-large,
.home-section > .container > h2,
.home-section > .container > .section-subtitle,
.case-studies-home-head { display: block; text-align: center; margin-left: auto; margin-right: auto; }
.home-section > .container > .section-title-large, .home-section > .container > h2, .case-studies-home-head h2 { max-width: 24ch; margin-left: auto; margin-right: auto; }
.section-subtitle, .case-studies-home-head .section-subtitle { font-size: 17.5px; line-height: 1.6; max-width: 58ch; margin-bottom: var(--space-4); }
.case-studies-home-head .section-subtitle { margin-left: auto; margin-right: auto; }
.proof-intro-section.home-section { padding-bottom: var(--space-2); }
.proof-intro-section .section-subtitle { margin-bottom: 0; }
.beyond-grid { align-items: stretch; }
.beyond-card { padding: var(--space-3) var(--space-4); display: flex; flex-direction: column; justify-content: center; }
.beyond-list li { font-size: 16px; }
.mega-section:last-of-type { padding-bottom: var(--space-4); }

/* ---------- Hero: trusted-by rail directly under the demo, inside the first view ---------- */
@media (min-width: 1100px) {
  .hero-redesign-inner { display: flex; flex-direction: column; }
  .hero-redesign-top { order: 1; }
  .hero.hero-redesign .hero-stage-wrap { order: 2; --stage-h: clamp(380px, calc(100svh - 508px), 540px); }
  .hero.hero-redesign .hero-trusted-carousel { order: 3; margin-top: 14px; padding-top: 0; border-top: 0; }
  .hero.hero-redesign .hero-trusted-label { margin-bottom: 8px; font-size: 11px; }
  .hero.hero-redesign .partner-logos-track .partner-logo-link img { height: 26px; max-width: 96px; }
  .hero.hero-redesign .hero-redesign-below-stage { order: 4; margin-top: var(--space-4); }
}
@media (min-width: 1100px) and (max-height: 780px) {
  /* short laptop screens: the card keeps its full height; the logo rail may sit just under the fold */
  .hero.hero-redesign .hero-stage-wrap { --stage-h: clamp(400px, calc(100svh - 450px), 540px); }
}
@media (min-width: 1100px) and (max-height: 740px) {
  .hero.hero-redesign .hero-stage-wrap { --stage-h: clamp(340px, calc(100svh - 410px), 540px); }
  .hero.hero-redesign .hero-description { display: none; }
}

/* "Member of" and "Featured in" side by side instead of flipping in a fixed-height box */
.hero.hero-redesign .hero-cred-flip-viewport { height: auto !important; max-width: none !important; width: auto; overflow: visible; }
.hero.hero-redesign .hero-cred-flip-track { display: flex; flex-direction: row; align-items: center; gap: 12px 28px; flex-wrap: wrap; justify-content: center; animation: none !important; transform: none !important; }
.hero.hero-redesign .hero-cred-group { flex: 0 0 auto; height: auto; display: flex; align-items: center; gap: 10px; }
.hero.hero-redesign .hero-cred-divider--inline { display: block; width: 1px; height: 22px; background: var(--hairline-strong); }
.hero.hero-redesign .hero-redesign-foot { margin-bottom: 0; }

/* =====================================================================
   Colour architecture, after review: dark green is for the closing band
   and small accents only. Content lives in light cards with dark text,
   on alternating cream and band backgrounds. Section heads are centred.
   ===================================================================== */
.home-section:not(.home-section--band) + .home-section:not(.home-section--band) { padding-top: 0; }
.home-section--band + .home-section--band { padding-top: 0; }
.cta-section.home-section { padding: clamp(80px, 9vw, 128px) 0 !important; }
.cta-section .cta-description, .cta-section .cta-contact-info { font-weight: 500; }
.cta-section .cta-contact-info { color: var(--color-text-light); opacity: 0.85; }

/* Why Formulaite: centred head, two equal cards */
.promise-inner { display: block; }
.promise-lead { text-align: center; max-width: 760px; margin: 0 auto var(--space-4); }
.promise-lead .section-label { display: block; }
.promise-lead .promise-title { margin-left: auto; margin-right: auto; max-width: 22ch; }
.promise-lead .promise-copy { margin: 0 auto; max-width: 58ch; font-size: 17.5px; line-height: 1.6; color: var(--color-text); }
.promise-contrast { grid-template-columns: 1fr 1fr; gap: var(--space-3); max-width: 1040px; margin: 0 auto; }
.promise-contrast-item { padding: var(--space-4); gap: 10px; background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: var(--card-shadow); }
.promise-contrast-item--new { background: var(--color-surface); color: var(--color-text); border: 2px solid var(--color-primary); }
.promise-contrast-item--new .promise-contrast-tag { color: var(--color-primary); }
.promise-contrast-text { font-size: 18px; line-height: 1.5; }
.promise-contrast-item--old .promise-contrast-text { color: var(--color-text-muted); }

/* Science stretch: one band, light panels */
.proof-intro-section.home-section--band { padding-bottom: var(--space-3); }
.mega-section.home-section--band { padding: 0 0 var(--space-3); }
.mega-dark .mega-grid { background: var(--color-surface); border-color: var(--color-border); color: var(--color-text); box-shadow: var(--card-shadow); }
.mega-light .mega-grid { box-shadow: var(--card-shadow); }
.mega-dark .section-label { color: var(--color-primary); }
.mega-dark .mega-title, .mega-dark .mega-features, .mega-dark .mega-features a { color: var(--color-text); }
.mega-dark .mega-description { color: var(--color-text); }
.mega-dark .mega-features li .fas { color: var(--color-primary); }
.mega-features a { color: var(--color-primary); }
.mega-description { max-width: 52ch; }
.beyond-section.home-section--band { padding-top: var(--space-4); padding-bottom: var(--section-padding); }
.beyond-card { background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: var(--card-shadow); color: var(--color-text); }
.beyond-card--sim { background: var(--color-surface); border: 2px solid var(--color-primary); color: var(--color-text); }
.beyond-card--sim .beyond-tag { color: var(--color-primary); }
.beyond-card--sim .beyond-list li::before { background: var(--color-primary); opacity: 1; }
.beyond-card--llm .beyond-list li { color: var(--color-text-muted); }
.beyond-list li { font-size: 17px; }

/* Heads centred everywhere a section has a single column head */
.quote-ready-copy h2, .quote-ready-copy p { margin-left: 0; }
.cert-strip .section-label, .cert-strip h2, .cert-strip .section-subtitle { text-align: center; margin-left: auto; margin-right: auto; }
.cert-strip-badges, .cert-strip-row { justify-content: center; }
.cert-strip-foot { text-align: center; }
.partner-wall-foot { text-align: center; }
.faq-section > .container > h2 { text-align: center; max-width: none; }
.case-studies-home-cta { text-align: center; }
.platform-video-container { margin: 0 auto; }
.video-header { justify-content: center; }
/* Quote-ready and manufacturing network: centred like every other section */
.quote-ready-card { display: block; text-align: center; max-width: 760px; margin: 0 auto; }
.quote-ready-copy h2 { margin-left: auto; margin-right: auto; max-width: 22ch; }
.quote-ready-copy p { margin: 0 auto var(--space-3); }
.quote-ready-actions { flex-direction: row; justify-content: center; flex-wrap: wrap; }
.cert-strip .section-label { display: block; text-align: center; }
.cert-strip h2 { max-width: 22ch; }
@media (max-width: 768px) { .quote-ready-actions { flex-direction: column; } }

/* ---------- Full-page review fixes ---------- */
/* portraits and artwork keep their top edge instead of losing heads to a centre crop */
.case-study-card > img { object-position: center top; }
.case-study-card--formucore > img, .case-study-card--itshemp > img { object-position: center center; }
.case-study-card--hempstreet > img { object-position: center 42%; }
/* the mobile copy of the platform line never shows on desktop */
.section-subtitle--mobile { display: none !important; }
@media (max-width: 768px) { .section-subtitle--mobile { display: block !important; } }
/* one primary action under the video */
.video-header .btn-primary + .btn-primary { background: transparent; color: var(--color-text); border-color: var(--hairline-strong); }
.video-header .btn-primary + .btn-primary:hover { background: var(--color-text); color: var(--color-surface); border-color: var(--color-text); }
/* persona illustrations at a size where they read */
.persona-card-img { width: 80px; height: 80px; }
.persona-card { gap: 14px; }
/* partner wall: fixed tiles, centred, so a short last row sits in the middle */
.partner-logo-wall { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
.partner-logo-tile { flex: 0 0 172px; }
/* tighter run from the hero badges into the first section */
.hero.hero-redesign { padding-bottom: var(--space-4); }
.promise-section.home-section { padding-top: var(--space-5); }

/* Centred paragraphs: centre the box too, and balance the lines so a two-line
   sentence breaks evenly instead of a long line over a short one */
.section-subtitle, .promise-copy, .partner-wall-foot, .cert-strip-foot, .cta-description,
.quote-ready-copy p, .hero.hero-redesign .hero-description, .case-studies-home-head .section-subtitle {
  margin-left: auto; margin-right: auto; text-wrap: balance;
}
.partner-wall-foot { max-width: 56ch; }
.cert-strip .section-subtitle, .personas-section .section-subtitle, .clients-section .section-subtitle, .platform-section .section-subtitle { max-width: 52ch; }
.faq-answer p { text-wrap: pretty; }

/* ---------- Team strip ---------- */
.team-strip-section.home-section { padding-top: 0; }
.team-strip { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); max-width: 1040px; margin: 0 auto; }
.team-strip-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: var(--space-3) var(--space-2);
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-card); text-decoration: none; color: var(--color-text); text-align: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.team-strip-card:hover { transform: translateY(-2px); box-shadow: var(--card-shadow-hover); color: var(--color-text); }
.team-strip-card img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; border: 3px solid var(--color-bg-band); }
.team-strip-name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; line-height: 1.2; }
.team-strip-role { font-size: var(--type-eyebrow-size); font-weight: var(--type-eyebrow-weight); letter-spacing: var(--type-eyebrow-spacing); text-transform: uppercase; color: var(--color-primary); }
.team-strip-foot { text-align: center; margin-top: var(--space-3); font-weight: 600; }
@media (max-width: 900px) { .team-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .team-strip { grid-template-columns: 1fr; } }

/* Simulaite scene: the activity bars arrive with the result, not before the population */
.hpt-scene--simulaite .hpt-activity-block { opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s ease; }
.hpt-scene--simulaite.is-complete .hpt-activity-block { opacity: 1; transform: none; }

/* ---------- Hero: step tabs on the box, one credibility strip under it ---------- */
.hero.hero-redesign .hero-stepper {
  position: relative; z-index: 3; display: flex; justify-content: flex-end; align-items: center;
  width: 100%; max-width: 1040px; margin: 0 auto -14px; padding: 0 14px;
  flex-direction: row; background: none; border: 0; box-shadow: none;
}
.hero.hero-redesign .hero-stepper-rail {
  display: inline-flex; gap: 3px; padding: 3px; margin: 0;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-pill); box-shadow: var(--shadow-sm);
}
.hero.hero-redesign .hero-workflow-chip { padding: 5px 11px; font-size: 11.5px; gap: 5px; background: transparent; border: 0; color: var(--color-text-muted); border-radius: var(--radius-pill); }
.hero.hero-redesign .hero-workflow-chip .hw-num { font-size: 10px; opacity: 0.7; }
.hero.hero-redesign .hero-workflow-chip.is-active { background: var(--color-primary); color: var(--color-on-primary); }
.hero.hero-redesign .hero-workflow-chip.is-active .hw-num { opacity: 0.8; }
.hero.hero-redesign .hero-redesign-below-stage { display: none; }

@media (max-width: 1099px) {
  .hero.hero-redesign .hero-stepper { justify-content: center; margin-bottom: 10px; padding: 0; }
}
@media (min-width: 1100px) {
  .hero.hero-redesign .hero-stepper { order: 2; }
  .hero.hero-redesign .hero-stage-wrap { --stage-h: clamp(365px, calc(100svh - 520px), 540px); }
}
@media (max-width: 1099px) {
  .hero.hero-redesign .hero-stepper { margin: 0 auto 10px; padding: 0; width: auto; max-width: 100%; }
  .hero.hero-redesign .hero-stepper-rail { max-width: 100%; }
}
@media (max-width: 1099px) {
  .hero.hero-redesign .hero-stepper { justify-content: center; }
  .hero.hero-redesign .hero-stepper-rail { width: auto !important; display: inline-flex; }
}
@media (min-width: 1100px) and (max-height: 780px) {
  /* short laptop screens: the card keeps its full height; the logo rail may sit just under the fold */
  .hero.hero-redesign .hero-stage-wrap { --stage-h: clamp(400px, calc(100svh - 450px), 540px); }
}

/* ---------- Under the box: bold trust line, full-width logo rail, badges on their own line ---------- */
.hero.hero-redesign .hero-trusted-carousel { display: block; margin-top: 16px; padding-top: 0; border-top: 0; text-align: center; }
.hero.hero-redesign .hero-trusted-label {
  display: block; margin: 0 0 10px; text-align: center; white-space: normal;
  font-family: var(--font-body); font-size: 15px; font-weight: 700; letter-spacing: 0.02em; text-transform: none; color: var(--color-text);
}
.hero.hero-redesign .hero-trusted-figure { font: inherit; color: var(--color-primary); }
.hero.hero-redesign .hero-trusted-label span { font: inherit; color: inherit; margin: 0; }
.hero.hero-redesign .hero-trusted-rail { width: 100%; max-width: 1040px; margin: 0 auto; }
.hero.hero-redesign .partner-logos-track .partner-logo-link img { height: 30px; max-width: 110px; }
.hero.hero-redesign .hero-redesign-foot { display: flex; justify-content: center; width: 100%; margin: 14px auto 0; }
.hero.hero-redesign .hero-cred-flip-track { flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.hero.hero-redesign .hero-cred-context-label { font-size: 10.5px; color: var(--color-text-soft); }
.hero.hero-redesign .hero-cred-badge { height: 28px !important; width: auto; }
.hero.hero-redesign .hero-cred-badge-press { height: 20px !important; }

/* ---------- Rendering cost: no live blur over an animating hero ---------- */
.nav-container { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: rgba(255, 253, 248, 0.96); }
.navbar--scrolled .nav-container { background: var(--color-surface); }
.hero.hero-redesign .hpt-theater-stack { animation: none !important; }
/* the shell's blurred halo re-rasterises on every animation frame; a soft shadow reads the same */
.hero.hero-redesign .hpt-shell::before { filter: none !important; opacity: 0.2; }

/* Launch scene: packshot sized to the stage so the caption is never clipped */
@media (min-width: 1100px) {
  .hero.hero-redesign .hpt-own-packshot img { width: auto; height: auto; max-height: 150px; max-width: 150px; aspect-ratio: 1; }
  .hero.hero-redesign .hpt-own-packshot { gap: 6px; }
}
@media (min-width: 1100px) and (max-height: 780px) {
  .hero.hero-redesign .hpt-own-packshot img { max-height: 110px; max-width: 110px; }
}
/* Validate scene: the curve chart fills its panel's width (no text inside the SVG, so stretching is safe) */
.hero.hero-redesign .hpt-sim-pk-svg { width: 100%; }

/* ---------- Step tabs inside the box, top-right, replacing the scene badges ---------- */
.hero.hero-redesign .hero-stage-wrap { position: relative; }
.hero.hero-redesign .hero-stage-wrap .hero-stepper { position: absolute; top: 10px; right: 12px; z-index: 6; margin: 0; padding: 0; width: auto; max-width: none; justify-content: flex-end; }
.hero.hero-redesign .hero-stage-wrap .hero-stepper-rail { box-shadow: none; background: var(--color-bg-band); border-color: transparent; }
.hero.hero-redesign .hpt-sim-case-badge, .hero.hero-redesign .hpt-own-ready-badge { display: none !important; }
@media (max-width: 1099px) {
  .hero.hero-redesign .hero-stage-wrap .hero-stepper { position: static; margin: 0 auto 10px; justify-content: center; }
}
/* ---------- Arrival budget on typical laptop viewports (browser chrome taken off a 900px screen) ---------- */
@media (min-width: 1100px) {
  .hero.hero-redesign { padding-top: calc(var(--nav-height) + var(--nav-offset) + 18px); }
  .hero-redesign-top { margin-bottom: 20px; }
  .hero.hero-redesign .hero-title { margin-bottom: 10px; }
  .hero.hero-redesign .hero-description { margin-bottom: 16px; }
  .hero.hero-redesign .hero-stage-wrap { --stage-h: clamp(365px, calc(100svh - 470px), 540px); }
}
@media (min-width: 1100px) and (max-height: 880px) {
  .hero.hero-redesign .hero-title { font-size: clamp(2rem, 3.1vw, 2.8rem); }
  .hero.hero-redesign .hero-description { font-size: 15.5px; }
  .hero.hero-redesign .hero-cta-primary, .hero.hero-redesign .hero-quote-cta { padding: 12px 24px; font-size: 15px; }
  .hero.hero-redesign .hero-stage-wrap { --stage-h: clamp(365px, calc(100svh - 440px), 540px); }
}
@media (min-width: 1100px) and (max-height: 780px) {
  .hero.hero-redesign .hero-stage-wrap { --stage-h: clamp(400px, calc(100svh - 420px), 540px); }
}
/* keep scene header text clear of the tab row */
@media (min-width: 1100px) { .hero.hero-redesign .hpt-pane-header, .hero.hero-redesign .hpt-sim-panel-head, .hero.hero-redesign .hpt-own-head { padding-right: 380px; } }

/* centred one-liners must centre their own box (p carries a 72ch max-width from base.css) */
.team-strip-foot, .hero.hero-redesign .hero-trusted-label, .cert-strip-foot, .partner-wall-foot, .case-studies-home-cta, .hero-trusted-label { max-width: none; width: 100%; margin-left: auto; margin-right: auto; text-align: center; }
.hero.hero-redesign .hero-trusted-label { font-size: 16px; }
