/* Scroll is the timeline. Content remains readable without JavaScript. */
.hero { padding-bottom: 0; }
.story-track { background: #fafbfc; position: relative; }
.story-stage { position: relative; padding: 88px 0; }
.story-topline { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.story-steps { display: none; gap: 28px; list-style: none; margin: 0; padding: 0; }
.story-steps button { position: relative; background: none; border: 0; padding: 12px 0; color: #8b95a1; font-size: 14px; font-weight: 500; }
.story-steps button[aria-current="step"] { color: #3182f6; }
.story-steps button::after,.story-steps button span { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: #e5e8eb; }
.story-steps button span { z-index: 1; background: #3182f6; transform: scaleX(var(--step-fill,0)); transform-origin: left; }
.story-panel { display: grid; grid-template-columns: .9fr 1.35fr; align-items: center; gap: 36px; padding-block: 72px; }
.story-copy { position: relative; z-index: 2; }
.story-copy h2 { font-size: clamp(34px,3.55vw,48px); font-weight: 650; letter-spacing: -.035em; line-height: 1.4; }
.story-copy p { color: #6b7684; font-size: 18px; line-height: 1.85; letter-spacing: -.015em; margin-top: 26px; }
.story-copy .inline-action { margin-top: 24px; }
.story-visual { position: relative; min-width: 0; height: 480px; display: flex; align-items: center; justify-content: center; }
.screen-plane { position: relative; width: 100%; border: 1px solid #dfe5ee; border-radius: 17px; background: white; box-shadow: 0 32px 64px -24px #28477640,0 3px 8px #28477609; overflow: hidden; transform: perspective(1400px) rotateY(var(--screen-y,0deg)) rotateX(var(--screen-x,0deg)) translateY(var(--screen-lift,0px)) scale(var(--screen-scale,1)); transform-origin: 55% 50%; }
.story-home .screen-plane,.story-report .screen-plane { margin-bottom: 28px; }
.screen-plane img { width: 100%; height: auto; }
.screen-aura { position: absolute; inset: 0 -20px; background: radial-gradient(ellipse at 60% 50%,#c7ddff9c,transparent 65%); filter: blur(24px); }
.alarm-focus { position: absolute; top: 11.5%; left: 18.8%; right: 2%; height: 5.5%; border: 1.5px solid #3182f6; border-radius: 5px; background: #3182f60a; box-shadow: 0 0 0 5px #3182f609; opacity: var(--alarm-focus,1); }
.screen-caption { position: absolute; bottom: 0; left: 0; right: 0; color: #8b95a1; font-size: 12px; text-align: center; line-height: 1.7; }
.report-plane { width: 94%; max-width: 620px; }
.report-image-window { width: 100%; aspect-ratio: 4/3; overflow: hidden; }
.report-image-window img { width: 120%; max-width: none; transform: translateX(-16.6667%); }
.connection-visual { isolation: isolate; }
.connection-halo { position: absolute; inset: 12% 8%; border-radius: 50%; background: radial-gradient(ellipse,#c6deff80,transparent 68%); transform: scale(var(--core-scale,1)); }
.connection-lines { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; }
.connection-lines .connection-base { stroke: #e1e8f3; stroke-width: 1.5; }
.connection-lines .connection-flow { stroke: #5599fa; stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--link-progress,1)); }
.connection-card { position: absolute; display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 6px 12px; width: 216px; padding: 20px; border: 1px solid #e4eaf2; border-radius: 17px; background: #fff; box-shadow: 0 16px 40px -20px #31568933; transform: translate(var(--card-x,0px),var(--card-y,0px)) rotate(var(--card-rotate,0deg)); }
.connection-icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; color: #4d94f4; background: #eef5ff; }
.connection-icon svg { width: 20px; height: 20px; }
.connection-card h3 { font-size: 16px; font-weight: 600; color: #333d4b; }
.connection-card p { font-size: 12px; color: #8b95a1; margin-top: 3px; }
.card-drawing { top: 8%; left: 0; }
.card-signal { top: 21%; right: 0; }
.card-history { bottom: 10%; left: 5%; }
.connection-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%) scale(var(--core-scale,1)); padding: 12px; background: #ffffffd9; border-radius: 28px; box-shadow: 0 12px 44px #3182f61a,0 0 0 1px #fff; }
.connection-core img { width: 68px; height: 68px; }
.drawing-mini,.signal-mini,.history-mini { grid-column: 1/-1; margin-top: 12px; height: 28px; width: 100%; }
.drawing-mini { display: flex; align-items: center; padding-inline: 10px; }
.drawing-mini i { height: 2px; width: 38%; background: #a6b9d2; }
.drawing-mini b { display: block; border: 1.5px solid #a6b9d2; width: 28px; height: 18px; border-radius: 3px; }
.signal-mini path { fill: none; stroke: #5599fa; stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--wave-progress,1)); }
.history-mini { display: flex; flex-direction: column; gap: 6px; padding-inline: 4px; }
.history-mini i { display: block; background: #e2e9f2; height: 3px; width: 88%; border-radius: 5px; }
.history-mini i:nth-child(2) { width: 68%; }
.history-mini i:nth-child(3) { width: 77%; }
.experience-section { padding: 112px 0 128px; background: #fff; }
.experience-section .experience { margin-top: 0; }
/* Only pin after the motion controller is ready. No scroll-jacking. */
@media (prefers-reduced-motion: no-preference) {
  .motion-ready .story-steps { display: flex; }
  .motion-ready .journey-track { height: 290svh; min-height: 1700px; }
  .motion-ready .journey-stage { position: sticky; top: 72px; height: calc(100svh - 72px); min-height: 540px; max-height: 1000px; overflow: clip; padding: 40px 0 30px; }
  .motion-ready .story-inner { height: 100%; display: flex; flex-direction: column; }
  .motion-ready .story-panels { position: relative; flex: 1; min-height: 0; }
  .motion-ready .story-panel { position: absolute; inset: 0; padding: 32px 0 40px; opacity: var(--scene-opacity,0); pointer-events: none; }
  .motion-ready .story-panel[data-story-step="0"] { --scene-opacity: 1; }
  .motion-ready .story-panel.is-current { pointer-events: auto; }
  .motion-ready .story-copy { transform: translateY(var(--copy-y,0px)); }
  .motion-ready .connection-card { will-change: transform; }
  .motion-ready .story-visual { height: min(480px,calc(100svh - 220px)); min-height: 340px; }
  .motion-ready [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .9s cubic-bezier(.16,1,.3,1),transform 1.05s cubic-bezier(.16,1,.3,1); }
  .motion-ready [data-reveal="screen"] { transform: perspective(1500px) translateY(56px) rotateX(6deg) scale(.97); transform-origin: center 30%; }
  .motion-ready [data-reveal].is-revealed { opacity: 1; transform: translateY(0); }
  .motion-ready [data-reveal="screen"].is-revealed { transform: perspective(1500px) translateY(0) rotateX(0) scale(1); }
  .setup-grid article:nth-child(2) { transition-delay: .09s; }
  .setup-grid article:nth-child(3) { transition-delay: .18s; }
}
@media (max-width:1050px) {
  .story-panel { grid-template-columns: .9fr 1.2fr; gap: 22px; }
  .story-copy h2 { font-size: 36px; }
  .story-copy p { font-size: 16px; }
  .connection-card { width: 188px; padding: 17px; gap: 5px 9px; }
  .connection-card p { font-size: 11px; }
  .connection-core img { width: 56px; height: 56px; }
  .connection-core { padding: 10px; border-radius: 24px; }
}
@media (max-width:760px) {
  .story-stage { padding-block: 64px; }
  .story-topline { align-items: flex-start; }
  .story-topline > .eyebrow { font-size: 14px; padding-top: 9px; }
  .story-steps { gap: 16px; }
  .story-steps button { font-size: 12px; padding: 9px 0; }
  .story-panel { display: flex; flex-direction: column; align-items: stretch; gap: 28px; padding-block: 48px; }
  .story-copy h2 { font-size: 34px; line-height: 1.4; }
  .story-copy p { font-size: 16px; margin-top: 18px; }
  .story-copy p br { display: none; }
  .story-copy .inline-action { margin-top: 12px; }
  .story-visual { height: 350px; width: 100%; max-width: 600px; margin: auto; }
  .connection-card { width: 185px; }
  .screen-caption { font-size: 11px; }
  .connection-core { padding: 8px; border-radius: 22px; }
  .connection-core img { width: 52px; height: 52px; }
  .experience-section { padding-block: 80px; }
}
@media (max-width:760px) and (prefers-reduced-motion:no-preference) {
  .motion-ready .journey-track { height: 270svh; min-height: 1800px; }
  .motion-ready .journey-stage { top: 64px; height: calc(100svh - 64px); min-height: 650px; padding: 20px 0 24px; }
  .motion-ready .story-panel { padding: 34px 0 24px; gap: 20px; }
  .motion-ready .story-visual { height: auto; min-height: 290px; flex: 1; max-height: 400px; }
  .motion-ready .story-copy { flex: none; }
}
@media (max-width:560px) {
  .story-topline { gap: 12px; }
  .story-topline > .eyebrow { font-size: 12px; white-space: nowrap; }
  .story-steps { gap: 8px; }
  .story-steps button { font-size: 14px; }
  .story-copy h2 { font-size: 31px; }
  .story-copy p { font-size: 15px; max-width: 330px; }
  .story-visual { min-height: 300px; }
  .connection-card { width: 154px; padding: 13px; border-radius: 13px; grid-template-columns: 28px 1fr; gap: 5px 8px; }
  .connection-icon { width: 28px; height: 28px; padding: 6px; border-radius: 8px; }
  .connection-icon svg { width: 16px; height: 16px; }
  .connection-card h3 { font-size: 14px; }
  .connection-card p { font-size: 10px; white-space: nowrap; }
  .card-drawing { top: 0; }
  .card-signal { top: 24%; }
  .card-history { left: 0; bottom: 10%; }
  .connection-core { left: 48%; top: 48%; padding: 7px; border-radius: 18px; }
  .connection-core img { width: 42px; height: 42px; }
  .connection-lines { width: 106%; left: -3%; }
  .drawing-mini,.signal-mini,.history-mini { height: 20px; margin-top: 6px; }
  .screen-plane { border-radius: 11px; }
  .screen-caption { bottom: -4px; font-size: 10px; }
  .report-plane { width: 96%; }
  .experience-section { padding: 72px 0 80px; }
}
@media (prefers-reduced-motion:reduce) {
  .story-steps { display: none; }
  .story-panel { opacity: 1 !important; }
  .story-panel[aria-hidden] { visibility: visible; }
  [data-reveal] { opacity: 1; transform: none; }
  .screen-plane,.connection-card,.connection-core { --screen-x:0deg !important;--screen-y:0deg !important;--screen-lift:0px !important;--screen-scale:1 !important;--card-x:0px !important;--card-y:0px !important;--card-rotate:0deg !important; }
  .connection-lines { --link-progress:1 !important; }
  .signal-mini { --wave-progress:1 !important; }
  .connection-core { --core-scale:1 !important; }
}

@media (max-width:760px) and (max-height:740px) and (prefers-reduced-motion:no-preference) {
  .motion-ready .journey-stage { min-height: 0; padding-top: 16px; }
  .motion-ready .story-panel { padding-top: 22px; gap: 12px; }
  .story-copy h2 { font-size: 28px; }
  .story-copy p { font-size: 14px; margin-top: 12px; }
  .motion-ready .story-visual { min-height: 230px; }
  .connection-card { padding: 10px; }
  .screen-caption { bottom: 0; }
}

/* One continuous stage: the camera enters the monitor before the product story. */
.journey-track { background: #fafbfc; position: relative; }
.journey-stage { position: relative; }
.journey-details { padding-block: 96px; }
.film-story { position: absolute; left: 0; right: 0; bottom: 83px; height: 48px; z-index: 2; pointer-events: none; }
.film-story p { position: absolute; bottom: 0; left: 0; opacity: 0; transform: translateY(10px); color: #fff; font-size: 23px; font-weight: 500; letter-spacing: -.025em; line-height: 1.5; transition: opacity .28s,transform .4s; }
.film-story p.is-active { opacity: 1; transform: none; }
.hero-copy h1 { font-size: clamp(48px,4.5vw,66px); font-weight: 620; line-height: 1.25; letter-spacing: -.03em; }
.hero-copy .lead { font-size: 19px; color: #e0e6ef; line-height: 1.75; }
.story-copy h2 { font-size: clamp(34px,3.3vw,46px); line-height: 1.38; font-weight: 620; letter-spacing: -.03em; }
.story-copy p { color: #626e7e; line-height: 1.8; }
.experience-section { padding-block: 120px; }
.section-heading h2,.contact h2 { font-weight: 620; letter-spacing: -.03em; }
.setup-grid { margin-top: 64px; }
.setup-grid p { line-height: 1.8; }
.story-home .screen-plane { transform: none !important; }
@media (prefers-reduced-motion:no-preference) {
  .motion-ready .journey-track { height: 410svh; min-height: 2300px; }
  .motion-ready .journey-stage { position: sticky; top: 72px; height: calc(100svh - 72px); min-height: 0; max-height: none; padding: 0; overflow: clip; isolation: isolate; }
  .motion-ready .hero-film { position: absolute; inset: 12px; z-index: 3; height: auto; min-height: 0; margin: 0; border-radius: 24px; background: transparent; opacity: var(--cinema-alpha,1); }
  .motion-ready .hero-video { z-index: 0; transform-origin: 0 0; will-change: transform; }
  .motion-ready .hero-shade { z-index: 1; opacity: calc(var(--shade-alpha,1) * var(--film-shade-alpha,1)); }
  .motion-ready .hero-copy { position: relative; z-index: 2; opacity: calc(var(--intro-alpha,1) * var(--film-copy-alpha,1)); transform: translateY(var(--intro-y,0px)); padding-block: 60px 150px; }
  .motion-ready .hero-film-footer { z-index: 2; opacity: var(--intro-alpha,1); }
  .motion-ready .film-story { opacity: var(--beat-alpha,1); }
  .motion-ready .journey-details { position: absolute; inset: 0; padding: 36px 0 32px; z-index: 2; opacity: var(--details-alpha,0); }
  .motion-ready .story-inner { display: flex; flex-direction: column; height: 100%; }
  .motion-ready .story-panel { grid-template-columns: .82fr 1.45fr; gap: 40px; padding-block: 32px 36px; }
  .motion-ready .story-visual { height: min(520px,calc(100svh - 215px)); min-height: 300px; }
}
@media (max-width:1050px) {
  .hero-copy h1 { font-size: 52px; }
  .story-copy h2 { font-size: 36px; }
  .motion-ready .story-panel { gap: 28px; }
}
@media (max-width:760px) {
  .hero-copy h1 { font-size: 44px; }
  .film-story p { font-size: 20px; }
  .journey-details { padding-block: 72px; }
  .story-copy h2 { font-size: 34px; }
  .experience-section { padding-block: 80px; }
}
@media (max-width:760px) and (prefers-reduced-motion:no-preference) {
  .motion-ready .journey-track { height: 400svh; min-height: 2300px; }
  .motion-ready .journey-stage { top: 64px; height: calc(100svh - 64px); min-height: 0; }
  .motion-ready .hero-film { inset: 8px; border-radius: 18px; }
  .motion-ready .hero-copy { padding-block: 48px 120px; }
  .motion-ready .journey-details { padding: 20px 0 24px; }
  .motion-ready .story-panel { gap: 20px; padding: 34px 0 24px; }
  .motion-ready .story-visual { height: auto; min-height: 280px; max-height: 430px; }
}
@media (max-width:560px) {
  .hero-copy h1 { font-size: clamp(33px,9.5vw,40px); font-weight: 620; line-height: 1.3; }
  .hero-copy .eyebrow { margin-bottom: 22px; font-size: 14px; }
  .hero-copy .lead { margin-top: 22px; font-size: 16px; line-height: 1.8; }
  .hero-actions { margin-top: 26px; }
  .film-story { bottom: 78px; height: 55px; }
  .film-story p { font-size: 18px; line-height: 1.5; max-width: 290px; }
  .story-copy h2 { font-size: 32px; }
  .story-copy p { font-size: 16px; }
  .section-heading h2 { font-size: 30px; }
}
@media (max-width:760px) and (max-height:740px) and (prefers-reduced-motion:no-preference) {
  .motion-ready .hero-copy { padding-top: 30px; }
  .hero-copy h1 { font-size: 34px; }
  .hero-copy .eyebrow { margin-bottom: 16px; }
  .hero-copy .lead { margin-top: 16px; }
  .hero-actions { margin-top: 20px; }
  .film-story { bottom: 62px; }
  .film-story p { font-size: 17px; }
  .motion-ready .story-panel { padding-top: 22px; gap: 12px; }
  .motion-ready .story-visual { min-height: 220px; }
  .story-copy h2 { font-size: 28px; }
  .story-copy p { font-size: 14px; margin-top: 12px; }
}

.product-portal { display: none; }
@media (prefers-reduced-motion:no-preference) {
  .motion-ready .product-portal { display: block; position: absolute; top: 0; left: 0; width: 1440px; height: 900px; z-index: 4; opacity: 0; transform-origin: 0 0; overflow: hidden; pointer-events: none; }
  .product-portal img { width: 1440px; height: 900px; max-width: none; }
}
@media (max-width:760px) {
  .story-home,.story-report { align-items: flex-start; }
  .story-home .screen-plane,.story-report .screen-plane { margin-top: 24px; margin-bottom: 0; }
}

.motion-ready .product-portal { filter: drop-shadow(0 20px 30px #28477622); }
.is-product-film .film-story { visibility: hidden; }
.is-product-film .hero-copy { visibility: hidden; pointer-events: none; }
.is-product-film .hero-video { object-fit: contain; background: #f5f7fb; }
.is-product-film .hero-film-footer { color: #6b7684; }
.is-product-film .hero-film-footer > span { visibility: hidden; }
.is-product-film #film-toggle { color: #4e5968; background: #ffffffd9; border-color: #d7e1ee; }
@media (min-width:761px) and (prefers-reduced-motion:no-preference) {
  .motion-ready .field-film .hero-copy { transform: translateY(calc(var(--intro-y,0px) - clamp(0px,46svh - 285px,46px))); }
}
