/* Homepage-only scroll scene. All other site templates keep the shared shell. */
.home-motion {
  --mh-ink: #0e1b26;
  --mh-blue: #075ce8;
  --mh-red: #b62c38;
  --mh-panel-offset: 0%;
  --mh-scene-scale: 1;
  --mh-intro-opacity: 1;
  --mh-intro-shift: 0px;
  --mh-brand-opacity: 0;
  --mh-brand-y: 22px;
  --mh-choices-opacity: 0;
  --mh-choices-y: 28px;
  --mh-routes-opacity: 1;
  position: relative;
  height: 240svh;
  color: var(--mh-ink);
}
.home-motion, .home-motion * { box-sizing: border-box; }
.home-motion__stage {
  position: sticky;
  top: 0;
  height: calc(100svh - 76px);
  min-height: 600px;
  overflow: hidden;
  isolation: isolate;
  background: #e8eff4;
}
.home-motion__scene {
  position: absolute;
  inset: 0;
  background: url('/assets/company/dual-world-scene.jpg') center / cover no-repeat;
  transform: scale(var(--mh-scene-scale));
  transform-origin: 50% 52%;
  will-change: transform;
}
.home-motion__scene::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5,14,24,.2), transparent 52%);
}
.home-motion__intro {
  position: absolute;
  z-index: 4;
  inset: 0 auto 0 0;
  width: 47%;
  overflow: hidden;
  background: #fff;
  transform: translate3d(var(--mh-panel-offset),0,0);
  will-change: transform;
}
.home-motion__intro-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  width: min(610px,80vw);
  padding: 56px clamp(30px,4vw,76px) 115px;
  opacity: var(--mh-intro-opacity);
  transform: translateY(var(--mh-intro-shift));
}
.corporate .home-motion h1 {
  margin: 0;
  max-width: 630px;
  color: var(--mh-ink);
  font-size: clamp(3.1rem,5.4vw,6.5rem);
  line-height: .98;
  letter-spacing: -.064em;
  font-weight: 590;
}
.home-motion__intro p {
  max-width: 440px;
  margin: 29px 0 0;
  color: #526372;
  font-size: clamp(1.02rem,1.3vw,1.22rem);
  line-height: 1.5;
}
.home-motion__intro .scene-actions { margin-top: 30px; gap: 16px; }
.home-motion__intro .scene-primary { min-width: 0; padding: 14px 18px; }
.home-motion__intro .scene-secondary { color: var(--mh-ink); }
.home-motion__caption {
  position: absolute;
  z-index: 8;
  top: 24px;
  right: clamp(22px,4vw,70px);
  color: rgba(15,35,49,.72);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.home-motion__routes {
  position: absolute;
  z-index: 10;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 82px;
  background: #fff;
  border-top: 1px solid #d6dce1;
  opacity: var(--mh-routes-opacity);
}
.home-motion__routes a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 15px clamp(22px,4vw,72px);
  color: var(--mh-ink);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .84rem;
  font-weight: 750;
}
.home-motion__routes a + a { border-left: 1px solid #d6dce1; }
.home-motion__routes a:first-child span { color: var(--mh-blue); }
.home-motion__routes a:last-child span { color: var(--mh-red); }
.home-motion__routes a:hover { background: #f4f7fa; }
.home-motion__word {
  position: absolute;
  z-index: 5;
  top: 39%;
  left: 50%;
  width: 100%;
  transform: translate3d(-50%,calc(-50% + var(--mh-brand-y)),0);
  opacity: var(--mh-brand-opacity);
  color: #132435;
  text-align: center;
  font-size: clamp(5.2rem,14.5vw,16rem);
  font-weight: 900;
  letter-spacing: -.075em;
  text-indent: -.075em;
  line-height: .85;
  text-shadow: 0 1px 26px rgba(255,255,255,.5);
  pointer-events: none;
  will-change: transform,opacity;
}
.home-motion__sub {
  position: absolute;
  z-index: 6;
  top: 58%;
  left: 50%;
  width: min(90%,800px);
  transform: translate3d(-50%,var(--mh-brand-y),0);
  opacity: var(--mh-brand-opacity);
  color: #132435;
  text-align: center;
  font-size: clamp(.9rem,1.25vw,1.2rem);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-shadow: 0 1px 14px rgba(255,255,255,.7);
  will-change: transform,opacity;
}
.home-motion__choices {
  position: absolute;
  z-index: 9;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(40vh,340px);
  opacity: var(--mh-choices-opacity);
  transform: translate3d(0,var(--mh-choices-y),0);
  pointer-events: none;
  will-change: transform,opacity;
}
.home-motion__choices.is-active { pointer-events: auto; }
.home-motion__choice {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(26px,3.5vw,58px) clamp(25px,4.5vw,82px);
  background: rgba(9,25,40,.92);
  color: #fff;
  text-decoration: none;
  border-top: 5px solid var(--mh-blue);
  transition: background .25s ease,transform .25s ease;
}
.home-motion__choice + .home-motion__choice { border-left: 1px solid rgba(255,255,255,.22); border-top-color: var(--mh-red); }
.home-motion__choice:hover { background: rgba(4,47,97,.97); transform: translateY(-5px); }
.home-motion__choice + .home-motion__choice:hover { background: rgba(100,20,31,.97); }
.home-motion__number { color: #bacddc; font-size: .72rem; font-weight: 800; letter-spacing: .18em; }
.corporate .home-motion__choice h2 {
  margin: 8px 0;
  color: #fff;
  font-size: clamp(2rem,3.5vw,4.2rem);
  line-height: 1.02;
  letter-spacing: -.055em;
  font-weight: 600;
}
.home-motion__choice h2 span { display: none; }
.home-motion__choice p { max-width: 430px; margin: 0; color: #c6d4dd; font-size: .96rem; line-height: 1.4; }
.home-motion__arrow { align-self: flex-end; font-size: 2rem; line-height: 1; }
.home-motion a:focus-visible { outline: 3px solid #5ba8ff; outline-offset: -5px; }
@media (max-width: 900px) {
  .home-motion__intro { width: 53%; }
  .home-motion__intro-inner { padding-inline: 30px; }
}
@media (max-width: 680px) {
  .home-motion { height: 210svh; }
  .home-motion__stage { min-height: 0; height: calc(100svh - 70px); }
  .home-motion__scene { background-position: 16% center; }
  .home-motion__intro { inset: 0 0 auto; width: 100%; height: 58%; transform: translate3d(0,var(--mh-panel-offset),0); }
  .home-motion__intro-inner { width: 100%; padding: 35px 24px 85px; }
  .corporate .home-motion h1 { font-size: clamp(2.9rem,10.6vw,5rem); }
  .home-motion__intro p { margin-top: 20px; font-size: .99rem; }
  .home-motion__intro .scene-actions { margin-top: 22px; }
  .home-motion__caption { display: none; }
  .home-motion__routes { min-height: 70px; }
  .home-motion__routes a { min-height: 70px; padding: 14px 18px; font-size: .68rem; line-height: 1.3; }
  .home-motion__word { top: 42%; font-size: 23vw; }
  .home-motion__sub { top: 55%; font-size: .7rem; line-height: 1.5; }
  .home-motion__choices { min-height: 48svh; grid-template-columns: 1fr; }
  .home-motion__choice { min-height: 24svh; padding: 18px 24px; }
  .home-motion__choice + .home-motion__choice { border-left: 0; border-top-width: 3px; }
  .corporate .home-motion__choice h2 { font-size: clamp(1.8rem,6.8vw,2.8rem); }
  .home-motion__choice p { font-size: .8rem; }
  .home-motion__arrow { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .home-motion { height: auto; }
  .home-motion__stage { position: relative; min-height: 750px; height: 100svh; }
  .home-motion__scene { transform: none; }
  .home-motion__word,.home-motion__sub,.home-motion__choices { display: none; }
  .home-motion__choice { transition: none; }
}
