/* CFM Motion Home V1 · original, self-contained, scroll-driven design */
body.cfm-home {
  overflow-x: hidden;
  background: #05080d;
}
body.cfm-home #cfmMain.home-content {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 0;
  margin: 0;
  flex: 1 0 auto;
}
.cfm-motion {
  --motion-turn: 0deg;
  --motion-beam: .28;
  --motion-spread: .65;
  --motion-wheel-size: 1;
  --motion-white: 0;
  --motion-wheel-opacity: 1;
  --motion-progress: 0;
  position: relative;
  width: 100%;
  overflow: clip;
  isolation: isolate;
  background: #03060b;
  color: #edf5ff;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}
.cfm-motion * { box-sizing: border-box; }
.cfm-motion__stage {
  position: sticky;
  top: 78px;
  z-index: 0;
  height: calc(100vh - 78px);
  height: calc(100svh - 78px);
  margin-bottom: calc(-1 * (100svh - 78px));
  width: 100%;
  min-height: 350px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 68% 55% at 54% 60%, #101b2d 0%, rgba(6,12,24,.28) 48%, transparent 75%),
    #03060b;
  pointer-events: none;
}
.cfm-motion__ambient {
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(ellipse 28% 32% at 54% 40%, rgba(31,105,194,.22), transparent 75%),
    radial-gradient(ellipse 38% 32% at 54% 80%, rgba(11,50,116,.18), transparent 78%),
    linear-gradient(90deg, rgba(5,12,29,.9), transparent 27%, transparent 76%, rgba(4,10,20,.9));
}
.cfm-motion__light-wash {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: var(--motion-white);
  background: radial-gradient(ellipse at 54% 45%, #f4f9ff 0%, #c7e3fe 40%, #dceffa 80%);
  mix-blend-mode: screen;
  pointer-events: none;
}
.cfm-motion__beam {
  position: absolute;
  z-index: 1;
  left: 54%;
  bottom: 48%;
  height: 86%;
  width: min(125vw, 1550px);
  transform: translateX(-50%) scaleX(var(--motion-spread));
  transform-origin: 50% 100%;
  clip-path: polygon(50% 100%, 6% 0%, 94% 0%);
  opacity: var(--motion-beam);
  mix-blend-mode: screen;
}
.cfm-motion__beam--outer {
  filter: blur(26px);
  background: radial-gradient(ellipse 38% 92% at 50% 96%, rgba(52,147,255,.72), rgba(9,78,171,.31) 48%, rgba(9,27,62,.02) 88%);
}
.cfm-motion__beam--inner {
  width: min(78vw, 1020px);
  clip-path: polygon(50% 100%, 40% 0%, 60% 0%);
  opacity: calc(var(--motion-beam) * .9);
  background: linear-gradient(0deg, rgba(169,229,255,.68) 0%, rgba(31,127,250,.6) 15%, rgba(3,45,120,.16) 75%, transparent 100%);
  filter: blur(11px);
}
.cfm-motion__beams-lines {
  position: absolute;
  z-index: 1;
  top: 2%;
  left: 54%;
  width: min(74vw, 960px);
  height: 70%;
  transform: translateX(-50%) scaleX(var(--motion-spread));
  transform-origin: 50% 100%;
  opacity: calc(var(--motion-beam) * .53);
  background: repeating-conic-gradient(from 260deg at 50% 100%, transparent 0deg 4deg, rgba(74,160,255,.2) 4.2deg 4.6deg, transparent 4.9deg 9deg);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  filter: blur(3px);
}
.cfm-motion__wheel-wrap {
  position: absolute;
  z-index: 2;
  top: 56%;
  left: 54%;
  width: clamp(230px, 35vw, 455px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(var(--motion-wheel-size));
  opacity: var(--motion-wheel-opacity);
  filter: drop-shadow(0 34px 62px rgba(0,0,0,.8));
  will-change: transform, opacity;
}
.cfm-motion__wheel {
  display: block;
  width: 100%;
  height: 100%;
  transform: rotate(var(--motion-turn));
  transform-origin: center;
  filter: saturate(1.05);
  will-change: transform;
}
.cfm-motion__wheel-halo {
  position: absolute;
  inset: -26%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43,141,253,.27) 0%, rgba(6,44,123,.12) 40%, transparent 70%);
  filter: blur(17px);
}
.cfm-motion__wheel-shadow {
  position: absolute;
  left: 10%;
  top: 88%;
  width: 80%;
  height: 23%;
  border-radius: 50%;
  background: rgba(0,0,0,.88);
  filter: blur(22px);
}
.cfm-motion__spindle-glint {
  position: absolute;
  z-index: 4;
  left: 49%;
  top: 49%;
  width: 2%;
  height: 2%;
  border-radius: 50%;
  background: #e1f9ff;
  box-shadow: 0 0 8px 4px rgba(140,208,255,.45), 0 0 45px 18px rgba(42,135,255,.22);
}
.cfm-motion__story { position: relative; z-index: 4; }
.cfm-beat {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: 9vh max(6vw, 28px);
  background: transparent;
}
.cfm-beat--intro { min-height: 94svh; }
.cfm-beat--timing { justify-content: flex-end; }
.cfm-beat--routing { justify-content: flex-start; }
.cfm-beat--light { justify-content: flex-end; }
.cfm-beat__copy {
  position: relative;
  z-index: 5;
  width: min(100%, 420px);
  text-shadow: 0 2px 24px rgba(0,0,0,.3);
}
.cfm-beat__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 23px;
  color: #a4bfdb;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .17em;
  line-height: 1.6;
  text-transform: uppercase;
}
.cfm-beat__dash { display: block; width: 27px; height: 2px; background: #72b7ff; flex: 0 0 auto; }
.cfm-beat__copy h2 {
  margin: 0;
  color: #f5f9ff;
  font-size: clamp(35px, 4.1vw, 72px);
  font-weight: 710;
  line-height: 1.08;
  letter-spacing: -.06em;
}
.cfm-beat__copy h2 em {
  display: inline-block;
  color: #79beff;
  font-style: normal;
}
.cfm-beat__copy p {
  margin: 23px 0 0;
  max-width: 350px;
  color: #bbcadb;
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 400;
  line-height: 1.7;
}
.cfm-beat--intro .cfm-beat__copy { align-self: center; }
.cfm-motion__scroll-cue {
  position: absolute;
  bottom: 35px;
  left: max(6vw, 28px);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #8ba9cb;
}
.cfm-motion__scroll-cue i { color: #7cbcff; font-size: 19px; }
.cfm-motion__meter {
  position: fixed;
  z-index: 30;
  right: 19px;
  top: 42%;
  width: 2px;
  height: 96px;
  background: rgba(146,197,255,.17);
  pointer-events: none;
}
.cfm-motion.at-end .cfm-motion__meter { opacity: 0; }
.cfm-motion__meter span {
  display: block;
  width: 100%;
  height: 100%;
  background: #75baff;
  transform: scaleY(var(--motion-progress));
  transform-origin: top;
}
.cfm-motion.js-motion [data-motion-reveal] {
  opacity: .23;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.cfm-motion.js-motion [data-motion-reveal].is-visible { opacity: 1; transform: translateY(0); }
.cfm-beat--arrival {
  display: block;
  z-index: 10;
  min-height: 105svh;
  margin-top: 0;
  padding: clamp(100px, 16vh, 190px) max(6vw,28px) clamp(80px, 10vh, 130px);
  color: #101f32;
  background: linear-gradient(180deg, rgba(227,241,255,0) 0, rgba(227,241,255,.94) 15%, #e9f4ff 28%, #f4f8fd 65%, #f4f8fd 100%);
}
.cfm-arrival { max-width: 1100px; margin-inline: auto; }
.cfm-arrival__top { width: min(100%, 760px); }
.cfm-arrival .cfm-beat__eyebrow { color: #486e9c; }
.cfm-arrival .cfm-beat__dash { background: #256fbd; }
.cfm-arrival h2 {
  margin: 0;
  color: #12273c;
  font-size: clamp(39px, 6.1vw, 82px);
  font-weight: 720;
  line-height: 1.04;
  letter-spacing: -.06em;
}
.cfm-arrival h2 em { font-style: normal; color: #3179bb; }
.cfm-arrival__top p { color: #52677e; font-size: clamp(16px, 1.7vw, 19px); max-width: 560px; line-height: 1.6; margin: 23px 0 0; }
.cfm-arrival__lines { margin-top: clamp(62px, 11vh, 126px); }
.cfm-arrival__line {
  display: grid;
  grid-template-columns: 50px minmax(0,1fr) minmax(0, 1fr);
  align-items: center;
  gap: 25px;
  padding: 25px 0;
  border-top: 1px solid #b9cbdc;
}
.cfm-arrival__line:last-child { border-bottom: 1px solid #b9cbdc; }
.cfm-arrival__number { color: #67829c; font-size: 12px; font-variant-numeric: tabular-nums; }
.cfm-arrival__line strong { font-size: clamp(19px, 2.2vw, 26px); font-weight: 700; letter-spacing: -.028em; }
.cfm-arrival__line > span:last-child { color: #536d84; font-size: 14px; }
.cfm-arrival__shortcuts { margin-top: 50px; }
.cfm-motion .cfm-arrival__shortcuts .quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cfm-motion .cfm-arrival__shortcuts .quick-card {
  display: flex;
  align-items: center;
  min-height: 70px;
  gap: 12px;
  padding: 16px;
  border: 1px solid #b9d1e8;
  background: rgba(255,255,255,.7);
  color: #173652;
  border-radius: 11px;
  font-weight: 680;
  text-shadow: none;
  box-shadow: none;
}
.cfm-motion .cfm-arrival__shortcuts .quick-card i { color: #2c78bf; font-size: 21px; }
.cfm-motion .cfm-arrival__shortcuts .quick-card:hover, .cfm-motion .cfm-arrival__shortcuts .quick-card:focus-visible {
  border-color: #3d82c7;
  background: #fff;
  color: #123d63;
  outline-offset: 2px;
}
@media (max-width: 1000px) {
  .cfm-motion__wheel-wrap { width: clamp(235px, 43vw, 380px); left: 54%; }
  .cfm-beat__copy { width: 360px; }
  .cfm-beat__copy h2 { font-size: clamp(32px, 4vw, 47px); }
  .cfm-beat--timing .cfm-beat__copy, .cfm-beat--light .cfm-beat__copy { align-self: flex-end; margin-bottom: 17svh; }
}
@media (max-width: 680px) {
  .cfm-motion__stage { top: 65px; height: calc(100svh - 65px); margin-bottom: calc(-1 * (100svh - 65px)); }
  .cfm-motion__wheel-wrap { width: clamp(220px, 66vw, 315px); top: 59%; left: 50%; }
  .cfm-motion__beam { left: 50%; bottom: 45%; }
  .cfm-motion__beams-lines { left: 50%; }
  .cfm-beat { min-height: 100svh; padding: 10svh 24px 13svh; align-items: flex-start; }
  .cfm-beat--intro { min-height: 100svh; }
  .cfm-beat__copy { width: min(100%, 390px); }
  .cfm-beat__copy h2 { font-size: clamp(34px, 9vw, 47px); }
  .cfm-beat__copy p { margin-top: 14px; font-size: 14px; max-width: 300px; }
  .cfm-beat__eyebrow { font-size: 10px; margin-bottom: 12px; }
  .cfm-beat--intro .cfm-beat__copy { align-self: flex-start; }
  .cfm-beat--timing, .cfm-beat--routing, .cfm-beat--light { justify-content: flex-start; }
  .cfm-beat--timing .cfm-beat__copy, .cfm-beat--light .cfm-beat__copy { align-self: flex-start; margin-bottom: 0; }
  .cfm-motion__scroll-cue { left: 24px; bottom: 25px; }
  .cfm-motion__meter { right: 8px; }
  .cfm-beat--arrival { padding: 130px 24px 75px; }
  .cfm-arrival h2 { font-size: clamp(39px, 10vw, 55px); }
  .cfm-arrival__line { grid-template-columns: 32px 1fr; gap: 10px; padding: 18px 0; }
  .cfm-arrival__line > span:last-child { grid-column: 2; font-size: 13px; }
  .cfm-motion .cfm-arrival__shortcuts .quick-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .cfm-motion { --motion-turn: 0deg !important; --motion-beam: .52 !important; --motion-spread: 1 !important; --motion-wheel-size: 1 !important; }
  .cfm-motion__wheel { transform: none !important; will-change: auto; }
  .cfm-motion__wheel-wrap { transform: translate(-50%,-50%) !important; will-change: auto; }
  .cfm-motion.js-motion [data-motion-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .cfm-motion__meter { display: none; }
}
