/* /home-engine/: additions to the current homepage styles. Typography and thin rules instead of icons. */
/* Desktop only: hero and both logo strips fit above the fold. Smaller screens use the natural height,
   a layout that depends on the screen height moves content while the page loads. */
.he .home-hero { min-height:0; }
@media (min-width:1024px) {
  .he-fold { display:flex; flex-direction:column; min-height:calc(100svh - 5rem); }
  .he .home-hero { flex:1; }
}
.he .home-hero__content { padding-block:1.5rem; }
.he .home-hero__works-with { margin-bottom:1rem; }
.he .home-hero__title { margin-bottom:1rem; }
.he .home-hero__lead { margin-bottom:1.25rem; }
.he .home-trust__inner { padding-block:.75rem; }
.he .home-trust__logos img { max-height:2.25rem; }
@media (min-width:1024px) and (max-height:800px) {
  .he .home-hero__content { padding-block:.75rem; }
  .he .home-hero__title { font-size:2.25rem; margin-bottom:.5rem; }
  .he .home-hero__lead { font-size:1rem; margin-bottom:.75rem; }
  .he .home-hero__works-with { margin-bottom:.5rem; }
  .he .home-hero__cta { padding-block:.6rem; }
  .he-loop { max-height:calc(100svh - 17rem); }
  .he .home-trust__inner { padding-block:.5rem; }
  .he .home-trust__logos img { max-height:1.75rem; }
}
.he .home-hero[hidden] { display:none; }
.he .home-trust__inner + .home-trust__inner { border-top:1px solid #e2e8f0; }
.he-loop { display:block; width:100%; aspect-ratio:50 / 27; background:#111c33; border-radius:1rem; box-shadow:0 24px 60px -20px rgba(2,6,23,.7); }

.he-eyebrow { font-size:.6875rem; letter-spacing:.3em; text-transform:uppercase; font-weight:700; color:#0284c7; margin-bottom:1rem; }
.he-title { font:700 clamp(1.875rem,2.6vw,2.5rem)/1.15 'Space Grotesk',sans-serif; color:#0f172a; margin-bottom:1rem; max-width:30ch; text-wrap:balance; }
.he-title--large { font-size:clamp(2.5rem,4.5vw,4rem); }
.he-subtitle { font:700 1.5rem/1.25 'Space Grotesk',sans-serif; color:#0f172a; margin-top:2rem; margin-bottom:.75rem; }
.he-lead { font-size:1.125rem; line-height:1.65; color:#475569; max-width:68ch; margin-bottom:1rem; }
.he-note { font-size:.8125rem; color:#64748b; margin-top:.5rem; }
/* One stage after the other, so the visitor scrolls through the cycle. */
.he-stage { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:2rem; align-content:center; min-height:44svh; border-top:1px solid #cbd5e1; padding-block:2.5rem; }
.he-stage:last-child { border-bottom:1px solid #cbd5e1; }
.he-stage__name { font:700 3rem/1 'Space Grotesk',sans-serif; color:#0f172a; }
.he-stage__line { font-size:1.125rem; font-weight:600; margin-top:.75rem; }
.he-stage__line--bad { color:#be123c; }
.he-stage__line--good { color:#047857; }
.he-list li { border-left:2px solid #0ea5e9; padding:.35rem 0 .35rem 1rem; margin-bottom:.75rem; color:#334155; font-size:1.0625rem; }
/* Spell checker underline, as in a word processor. */
.he-list--bad li { border-left:0; padding-left:0; }
.he-list--bad span { text-decoration:underline wavy #dc2626; text-decoration-thickness:.09em; text-underline-offset:.3em; text-decoration-skip-ink:none; }
.he-list--good li { border-color:#047857; }
.he-steps { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin-block:2.5rem; counter-reset:step; }
.he-steps li { counter-increment:step; border-top:3px solid #0ea5e9; padding:1rem 1rem 0 0; font-weight:600; color:#0f172a; }
.he-steps li::before { content:counter(step) ". "; color:#0284c7; }
.he-figures { display:flex; flex-wrap:wrap; gap:2.5rem; margin-block:1.5rem; }
.he-figures div { flex:1 1 11rem; }
.he-figures dt { font:700 2.25rem/1.1 'Space Grotesk',sans-serif; color:#0f172a; }
.he-figures dd { color:#475569; font-size:.9375rem; margin-top:.35rem; }
.he-columns { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:2rem; margin-block:2rem; }
.he-columns > div { border-top:1px solid #cbd5e1; padding-top:1rem; color:#475569; }
.he-columns h3 { font-weight:700; color:#0f172a; margin-bottom:.5rem; }
.he-statement { font:700 1.875rem/1.25 'Space Grotesk',sans-serif; color:#0f172a; border-left:4px solid #0ea5e9; padding-left:1.25rem; max-width:30ch; }
.he-case { background:#fff; border:1px solid #e2e8f0; border-radius:1rem; padding:2rem; margin-bottom:1.5rem; color:#334155; }
.he-badges { display:flex; flex-wrap:wrap; gap:.5rem; margin-top:1rem; }
.he-badges li { border:1px solid #cbd5e1; background:#f8fafc; border-radius:.25rem; padding:.2rem .65rem; font-size:.8125rem; font-weight:600; color:#0f172a; }
.he-quote { background:#fff; border:1px solid #e2e8f0; border-radius:1rem; padding:1.5rem; display:flex; flex-direction:column; gap:1.25rem; color:#334155; }
.he-quote figcaption { margin-top:auto; display:flex; gap:.75rem; align-items:center; font-size:.875rem; color:#475569; }
.he-quote figcaption img { width:3.5rem; height:3.5rem; border-radius:50%; object-fit:cover; }
.he-quote a { color:#0369a1; font-weight:600; }
.he [id] { scroll-margin-top:6rem; }
.he-switch { position:fixed; top:5.5rem; right:.75rem; z-index:60; display:flex; gap:.25rem; background:#020617; border:1px solid #475569; border-radius:2rem; padding:.3rem; font-size:.75rem; white-space:nowrap; }
.he-switch[hidden] { display:none; }
.he-switch button { color:#e2e8f0; padding:.3rem .8rem; border-radius:2rem; cursor:pointer; }
.he-switch button[aria-pressed="true"] { background:#0369a1; color:#fff; }

.he-abstract { width:6rem; height:6rem; margin-bottom:1rem; fill:none; stroke:#be123c; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }
.he-abstract .he-abstract__soft { stroke:#fda4af; }
.he-abstract .he-abstract__solid { fill:#be123c; stroke:none; }
.he-star { width:7rem; height:7rem; margin-bottom:1.5rem; filter:drop-shadow(0 0 1.5rem rgba(251,191,36,.7)); }
.he-imagine { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:2rem; margin-block:2rem 3rem; }
.he-imagine > div { display:flex; align-items:center; gap:1rem; }
.he-imagine h3 { margin-bottom:0; }
.he-imagine .he-abstract--gold { flex:none; width:4.5rem; height:4.5rem; margin:0; stroke:#d97706; }
.he-imagine .he-abstract--gold .he-abstract__soft { stroke:#fbbf24; }
.he-imagine .he-abstract--gold .he-abstract__solid { fill:#d97706; }
.he-imagine h3 { font:700 1.875rem/1.15 'Space Grotesk',sans-serif; color:#0f172a; }

@media (max-width:1023px) {
  .he-imagine { grid-template-columns:minmax(0,1fr); }
  .he-stage, .he-columns { grid-template-columns:minmax(0,1fr); }
  .he-stage { min-height:0; }
  .he-steps { grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
}

@media (max-width:639px) { .he-switch { flex-direction:column; align-items:stretch; border-radius:1rem; } }

/* Larger customer stories with technology icons. */
.he-case { padding:2.75rem; font-size:1.125rem; line-height:1.7; margin-bottom:2rem; }
.he-case > img { height:3rem; }
.he-case .he-subtitle { font-size:1.875rem; margin-top:1.75rem; }
.he-case .he-badges { gap:.75rem; margin-top:1.5rem; }
.he-case .he-badges li { display:flex; align-items:center; gap:.5rem; font-size:.9375rem; padding:.4rem .9rem; }
.he-case .he-badges svg { width:1.25rem; height:1.25rem; color:#e76f00; }
.he-case .he-badges img { width:1.25rem; height:1.25rem; }
.he-case .he-figures dt { font-size:3rem; }
.he-case .he-note { margin-top:1rem; line-height:1.5; }
.he-list--topics { display:flex; flex-wrap:wrap; column-gap:1.5rem; margin-top:1.5rem; }
@media (max-width:639px) { .he-case { padding:1.5rem; } }

.he-statement code { font-family:'JetBrains Mono',monospace; font-size:.88em; background:#e2e8f0; border-radius:.3rem; padding:.05em .3em; white-space:nowrap; }
.he-statement__detail { display:block; font:400 1.125rem/1.6 'Inter',sans-serif; color:#475569; margin-top:.5rem; }

/* The hero button forces white text, the badge keeps the navbar colour. */
.he .home-hero .home-hero__cta .he-cta-badge { color:var(--color-yellow-900, #713f12) !important; line-height:1rem; }

/* Books, centered as on the live homepage. */
.he-books { margin-top:3.5rem; padding-top:2.5rem; border-top:1px solid #e2e8f0; text-align:center; }
.he-books .he-subtitle { margin:0 0 2.5rem; }
.he-books__grid { display:flex; flex-wrap:wrap; justify-content:center; gap:2.5rem; }
.he-books__book { display:flex; flex-direction:column; align-items:center; width:16rem; text-align:center; }
.he-books__book img { height:16rem; width:auto; margin-bottom:1.25rem; filter:drop-shadow(0 14px 18px rgba(15,23,42,.25)); transition:transform .3s; }
.he-books__book:hover img { transform:translateY(-.375rem); }
.he-books__book h4 { font-weight:700; line-height:1.35; color:#0f172a; }
.he-books__book p { font-size:.75rem; line-height:1.6; color:#64748b; margin-top:.375rem; }

/* Logo strips: centered when they wrap. */
.he .home-trust__logos { justify-content:center; }
.he .home-trust__label { text-align:center; }

/* The shared styles make the content column light only from 1280px (side menu). */
.he .home-layout { background-color:#f8fafc; }
@media (max-width:1279px) {
  .he .home-layout__main > section { padding-block:3rem; border-top:1px solid #e2e8f0; }
}
@media (max-width:639px) {
  .he-title--large { font-size:2.125rem; overflow-wrap:break-word; }
}

.he-books__book--course img { height:auto; width:100%; }
.he-value { margin-top:.75rem; font-size:.875rem; color:#94a3b8 !important; }

.home-rail__cta-button.he-rail-button { display:flex; align-items:center; justify-content:center; gap:.5rem; }

.home-rail__cta-button .he-cta-badge { color:#713f12; line-height:1rem; }
