.home-page h2 {
  text-wrap: balance;
}
.home-page .hero-visual {
  transform: translateY(-7%) scale(1.25);
  transform-origin: 70% 70%;
}
.home-page .hero-visual img {
  object-position: 64% 40%;
  animation-duration: 5s;
}
.home-page .evolution-copy h2,
.home-page .scenario-content h2,
.home-page .demo-opening h2,
.home-page .approach h2,
.home-page .about h2,
.home-page .resource-preview h2 {
  font-size: clamp(32px, 3.2vw, 48px);
  line-height: 1.42;
  letter-spacing: -.025em;
}
.home-page .services { padding-block: 100px 88px; }
.home-page .evolution-feature { margin-bottom: 52px; }
.home-page .service { padding-top: 32px; }
.home-page .service-symbol { margin-bottom: 24px; }
.home-page .scenario-stage {
  height: clamp(620px, 46vw, 760px);
  min-height: 0;
  max-height: none;
  background: var(--night);
}
.home-page .scenario-image {
  width: 64%;
  max-width: 1450px;
  object-fit: cover;
  object-position: left center;
  -webkit-mask-image: linear-gradient(90deg, #000 75%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 75%, transparent 100%);
}
.home-page .scenario-shade {
  background: linear-gradient(90deg, #101a2000 24%, #101a2028 42%, #101a20cb 65%, #101a20 74%);
}
.home-page .scenario-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 60px;
}
.home-page .scenario-content > * {
  margin-left: 62%;
  width: 38%;
}
.home-page .scenario-content > .section-kicker { color: #bfdbe0; }
.home-page .scenario-copy { margin-top: 36px; max-width: none; }
.home-page .scenario-copy p { max-width: 390px; }
.home-page .scenario-tabs button { padding-block: 25px; }
.home-page .demonstration { padding-block: 96px; }
.home-page .demo-opening { margin-bottom: 44px; }
.home-page .demo-screen { border: 1px solid #ffffff16; }
.home-page .demo-switch { background: #ffffff04; }
.home-page .approach { padding-block: 96px 88px; }
.home-page .approach .section-opening { margin-bottom: 48px; }
.home-page .process-list li { padding-top: 28px; padding-right: 28px; }
.home-page .process-list .step-number { position: static; display: block; margin-bottom: 14px; }
.home-page .process-list h3 { margin: 0 0 13px; }
.home-page .about { padding-block: 80px; }
.home-page .about-inner { align-items: center; grid-template-columns: .9fr 1.1fr; gap: 72px; }
.home-page .about-copy { padding-top: 0; margin-top: 26px; }
.home-page .about-copy > p { max-width: 510px; }
.home-page .resource-preview { padding-block: 88px; }
.home-page .resource-preview .section-opening { margin-bottom: 44px; }
.home-page .resource-articles { grid-template-columns: 1.1fr 1fr; gap: 0 48px; border-top: 0; }
.home-page .resource-article,
.home-page .resource-article:last-child { padding: 26px 0; border-right: 0; border-top: 1px solid var(--line); }
.home-page .resource-featured:first-child {
  grid-row: span 2;
  padding: 30px 34px;
  background: #f0f5f6;
  border-top: 0;
}
.home-page .resource-featured h3 { font-size: 26px; }
.home-page .resource-featured p { margin-top: 0; }
.home-page .resource-featured .resource-read { padding-top: 24px; }
.home-page .resource-category { margin-bottom: 12px; }
.home-page .resource-article h3 { line-height: 1.5; }
.home-page .resource-article p { margin-top: 10px; }
.home-page .resource-read { padding-top: 20px; }
.home-page .resource-quicklinks { margin-top: 30px; padding-top: 23px; }
.home-page .contact-section { padding-block: 90px; }
.home-page .contact-shade { background: linear-gradient(90deg, #0a1d2ced, #0a1d2cda); }


.home-page .approach-visual { margin: 0 0 40px; }
.home-page .approach-visual picture { display: block; width: 100%; }
.home-page .approach-visual img { display: block; width: 100%; height: auto; object-fit: contain; }
.home-page .about-content { min-width: 0; }
.home-page .about-visual { margin: 0; }
.home-page .about-visual img { width: 100%; height: auto; }
.home-page .resource-cover { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 25px; }
.home-page .resource-secondary { display: grid; grid-template-columns: 144px minmax(0, 1fr); column-gap: 26px; align-content: center; }
.home-page .resource-secondary > :not(img) { grid-column: 2; }
.home-page .resource-thumbnail { grid-column: 1; grid-row: 1 / 5; width: 144px; height: 100%; min-height: 174px; object-fit: cover; object-position: center; }
.home-page .resource-secondary:last-child .resource-thumbnail { object-position: center; }
.home-page .resource-secondary .resource-category { margin-bottom: 8px; }
.home-page .resource-secondary h3 { font-size: 22px; }

@media (max-width: 1100px) {
  .home-page .scenario-image { width: 60%; }
  .home-page .scenario-content > * { margin-left: 60%; width: 40%; }
  .home-page .scenario-content h2 { font-size: 35px; }
  .home-page .scenario-copy { margin-top: 28px; }
  .home-page .resource-articles { gap: 0 28px; }
  .home-page .resource-featured:first-child { padding-inline: 26px; }
  .home-page .about-inner { gap: 45px; }
}
@media (max-width: 800px) {
  .home-page .hero-visual { transform: none; }
  .home-page .services { padding-block: 72px 52px; }
  .home-page .evolution-feature { margin-bottom: 28px; }
  .home-page .service,
  .home-page .service:first-child,
  .home-page .service:last-child { padding-block: 26px; }
  .home-page .service-symbol { margin-bottom: 0; }
  .home-page .scenario-stage { height: auto; color: var(--ink); background: var(--soft); }
  .home-page .scenario-image { position: relative; width: 100%; max-width: none; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 32% center; -webkit-mask-image: none; mask-image: none; z-index: 0; }
  .home-page .scenario-shade { display: none; }
  .home-page .scenario-content { height: auto; padding-block: 34px 40px; }
  .home-page .scenario-content > * { margin-left: 0; width: 100%; }
  .home-page .scenario-content > .section-kicker { color: #527982; margin-bottom: 17px; }
  .home-page .scenario-content h2 { font-size: 31px; }
  .home-page .scenario-copy { margin-top: 24px; }
  .home-page .scenario-copy h3 { margin-bottom: 12px; }
  .home-page .scenario-copy p { color: var(--muted); max-width: 520px; }
  .home-page .scenario-copy .text-link { margin-top: 20px; }
  .home-page .scenario-tabs button,
  .home-page .scenario-tabs button:first-child { padding-block: 20px; }
  .home-page .demonstration,
  .home-page .approach,
  .home-page .resource-preview { padding-block: 72px; }
  .home-page .demo-opening { gap: 24px; margin-bottom: 30px; }
  .home-page .about { padding-block: 60px; }
  .home-page .about-inner { grid-template-columns: 1fr; gap: 26px; }
  .home-page .about-copy .text-link { margin-top: 24px; }
  .home-page .resource-articles { grid-template-columns: 1fr; gap: 0; }
  .home-page .resource-featured:first-child { grid-row: auto; padding: 26px; margin-bottom: 24px; }
  .home-page .resource-article,
  .home-page .resource-article:last-child { padding-block: 24px; }
    .home-page .resource-featured h3 { font-size: 23px; }
  .home-page .contact-section { padding-block: 64px; }
}
@media (max-width: 520px) {
  .home-page .hero-content { padding-top: 108px; }
  .home-page .hero-intro { margin-bottom: 18px; }
  .home-page .hero h1 { font-size: clamp(33px, 9.2vw, 39px); line-height: 1.4; }
  .home-page .hero-description { font-size: 14px; line-height: 1.85; margin-top: 18px; }
  .home-page .hero-actions { flex-direction: row; gap: 18px; align-items: center; margin-top: 22px; }
  .home-page .hero-actions .button { font-size: 12px; padding: 12px 17px; gap: 20px; }
  .home-page .watch-button { font-size: 11px; gap: 8px; }
  .home-page .play-icon { width: 28px; height: 28px; }
  .home-page .hero-visual { inset: 345px 0 0; transform: translateY(-3%) scale(1.12); transform-origin: 65% 70%; -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%); mask-image: linear-gradient(180deg, transparent, #000 14%); }
  .home-page .hero-visual img { object-position: 65% center; }
  .home-page .hero-shade { background: linear-gradient(180deg, #101a20 0%, #101a20 37%, #101a2000 51%, #101a2000 84%, #101a20aa 100%); }
  .home-page .hero-bottom { bottom: 24px; }
  .home-page .evolution-copy h2,
  .home-page .demo-opening h2,
  .home-page .approach h2,
  .home-page .about h2,
  .home-page .resource-preview h2 { font-size: 30px; }
  .home-page .evolution-copy p { font-size: 14px; line-height: 1.9; margin-top: 20px; }
  .home-page .evolution-feature { gap: 22px; }
  .home-page .demo-screen { aspect-ratio: 16 / 9; }
  .home-page .demo-play > span:last-child { display: none; }
  .home-page .demo-play > span:first-child { width: 46px; height: 46px; }
  .home-page .demo-controls { inset: auto 12px 8px; }
  .home-page .demo-controls button { font-size: 10px; }
  .home-page .approach .section-opening { margin-bottom: 30px; }
  .home-page .process-list { grid-template-columns: 1fr; gap: 0; }
  .home-page .process-list li { display: grid; grid-template-columns: 46px 1fr; gap: 4px 18px; padding: 22px 0; }
  .home-page .process-list li::before { display: none; }
    .home-page .process-list .step-number { position: static; grid-column: 1; grid-row: 1 / 3; margin: 3px 0 0; font-size: 12px; }
  .home-page .process-list h3 { grid-column: 2; grid-row: 1; margin: 0 0 5px; font-size: 19px; }
  .home-page .process-list p { grid-column: 2; grid-row: 2; max-width: none; font-size: 13px; text-wrap: balance; }
  .home-page .about-copy { font-size: 14px; }
  .home-page .about-copy .about-team-link { margin-left: 20px; margin-top: 24px !important; }
  .home-page .resource-preview .section-opening { gap: 23px; margin-bottom: 30px; }
  .home-page .resource-quicklinks { column-gap: 24px; row-gap: 18px; }
}

@media (max-width: 1100px) {
  .home-page .resource-secondary { grid-template-columns: 112px minmax(0, 1fr); column-gap: 20px; }
  .home-page .resource-thumbnail { width: 112px; min-height: 170px; }
}
@media (max-width: 800px) {
  .home-page .approach-visual { margin-bottom: 28px; }
  .home-page .about-visual { margin-top: 8px; }
  .home-page .resource-cover { margin-bottom: 22px; }
  .home-page .resource-secondary { grid-template-columns: 128px minmax(0, 1fr); column-gap: 24px; }
  .home-page .resource-thumbnail { width: 128px; min-height: 156px; }
}
@media (max-width: 520px) {
  .home-page .about-inner { gap: 24px; }
  .home-page .resource-secondary { grid-template-columns: 94px minmax(0, 1fr); column-gap: 18px; }
  .home-page .resource-thumbnail { width: 94px; min-height: 150px; }
  .home-page .resource-secondary h3 { font-size: 20px; }
  .home-page .resource-secondary p { font-size: 13px; text-wrap: balance; }
}

/* Mirror the adjacent scenario's full-bleed artwork and soft transition. */
.home-page .evolution-feature {
  position: relative;
  display: flex;
  align-items: center;
  width: 100vw;
  margin-left: calc((100% - 100vw) / 2);
  height: clamp(620px, 46vw, 760px);
  gap: 0;
  isolation: isolate;
  overflow: hidden;
}
.home-page .evolution-copy {
  position: relative;
  z-index: 2;
  width: 38%;
  margin-left: max(var(--gutter), calc((100vw - 1600px) / 2));
}
.home-page .evolution-visual {
  position: absolute;
  inset: 0 0 0 auto;
  width: 64%;
  max-width: none;
  height: 100%;
  z-index: 0;
}
.home-page .evolution-visual::before {
  content: "";
  position: absolute;
  inset: -12px;
  background: url('../assets/robot-evolution-feedback-wide.jpg') center / cover;
  filter: blur(12px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 28%, transparent 48%);
  mask-image: linear-gradient(90deg, transparent, #000 28%, transparent 48%);
}
.home-page .evolution-visual img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 28%);
  mask-image: linear-gradient(90deg, transparent, #000 28%);
}
@media (max-width: 1100px) and (min-width: 801px) {
  .home-page .evolution-copy { width: 40%; }
  .home-page .evolution-copy h2 { font-size: 35px; }
  .home-page .evolution-visual { width: 60%; }
}
@media (max-width: 800px) {
  .home-page .evolution-feature { height: auto; flex-direction: column; align-items: stretch; }
  .home-page .evolution-visual { position: relative; inset: auto; order: -1; width: 100%; height: auto; }
  .home-page .evolution-visual img { height: auto; aspect-ratio: 4 / 3; object-fit: cover; -webkit-mask-image: none; mask-image: none; }
  .home-page .evolution-visual::before { display: none; }
  .home-page .evolution-copy { width: auto; margin: 0; padding: 34px var(--gutter) 40px; }
}

/* Keep the outgoing image visible while the next scene fades in. */
.home-page .scenario-incoming { position: absolute; top: 0; left: 0; opacity: 0; pointer-events: none; }
