/* V03.1 — UI text is at least 12px; conveyor diagram annotations retain their scale. */
.motion-control {
  width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center;
  border: 1px solid #454545; color: #ff8355; font: 15px var(--mono);
  margin-left: auto; background: #141414;
}
.motion-control svg { display: block; width: 18px; height: 18px; }
.motion-control:hover { background: #29221f; border-color: var(--accent); }
.motion-control:disabled { opacity: .6; cursor: default; }
/* DEMO-003: temporarily hidden until its future purpose is decided. */
.site-header .motion-control { display: none; }
.nav-wrap { gap: 24px; }
.site-header #site-nav { margin-left: auto; }
.factory-hero .hero-layout { grid-template-columns: .92fr 1.18fr; gap: 0; min-height: 586px; }
.factory-hero .hero-copy { padding-top: 44px; padding-bottom: 40px; }
.factory-hero .hero-copy h1 { font-size: clamp(52px,5.7vw,82px); line-height: 1.02; letter-spacing: -.065em; }
.factory-hero .hero-description { max-width: 430px; font-size: 14px; line-height: 1.8; margin-top: 29px; }
.factory-hero .hero-copy .eyebrow { font-size: 12px; }
.factory-hero .hero-actions { gap: 22px; }
.factory-hero .hero-actions .button { gap: 12px; font-size: 12px; padding-inline: 18px; }
.factory-hero .hero-actions .text-button { padding-inline: 0; }
.factory-hero .hero-spec { font: 12px var(--mono); gap: 15px; margin-top: 37px; color: #a7a7a7; flex-wrap: wrap; }
.hero-spec b { color: var(--accent); font-weight: 400; }
.factory-stage { position: relative; min-height: 580px; margin-right: -14px; overflow: hidden; }
.factory-stage::before { content: ''; position: absolute; inset: 18% 8%; background: radial-gradient(ellipse,#ff5b240b,transparent 70%); }
.factory-stage canvas { display: block; position: absolute; top: 20px; left: 0; width: 100%; height: calc(100% - 80px); }
.factory-topline { position: absolute; top: 25px; left: 24px; right: 14px; display: flex; justify-content: space-between; font: 8px var(--mono); color: #909090; letter-spacing: .05em; z-index: 1; }
.line-state { color: #d7b6a9; display: flex; align-items: center; gap: 7px; }
.line-state>i,.running-square { height: 5px; width: 5px; background: var(--accent); display: inline-block; }
.line-state>i { animation: indicator 2.4s ease-in-out infinite; }
.factory-legend { position: absolute; bottom: 45px; left: 24px; right: 14px; display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; }
.factory-legend>span { border-top: 1px solid #414141; padding-top: 12px; color: #b1b1b1; font: 8px var(--mono); display: flex; gap: 8px; position: relative; }
.factory-legend b { color: var(--accent); font-weight: 400; }
.factory-legend>span::before { content: ''; position: absolute; height: 2px; background: var(--accent); left: 0; top: -1px; right: 0; transform: scaleX(0); transform-origin: left; }
.factory-legend>span.is-active::before { transform: scaleX(1); }
.factory-legend>span.is-active { color: #f3f3f3; }
.factory-caption { position: absolute; bottom: 13px; left: 24px; right: 14px; display: flex; justify-content: space-between; font: 6px var(--mono); color: #949494; letter-spacing: .04em; }
.hero-rail .running-square { margin-right: 8px; }
.production-ticker { overflow: hidden; background: var(--accent); color: #121212; border-block: 1px solid #ff926a; }
.ticker-track { display: flex; width: max-content; animation: ticker-travel 32s linear infinite; }
.ticker-copy { display: flex; gap: 35px; align-items: center; flex-shrink: 0; padding: 12px 32px; font: 700 12px var(--mono); letter-spacing: .06em; }
.ticker-copy>b { font-size: 23px; line-height: 1; font-weight: 400; }
.ticker-copy>i { display: block; width: 6px; height: 6px; background: #1e1714; }
.integrations-strip { position: relative; }
.integrations-strip::after { content: ''; height: 4px; position: absolute; bottom: -1px; left: 0; right: 0; background: repeating-linear-gradient(-45deg,#484848 0 2px,transparent 2px 9px); opacity: .4; }
.service-grid { position: relative; border-bottom: 3px solid #444; padding-bottom: 13px; overflow: hidden; }
.service-grid::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: repeating-linear-gradient(90deg,#3e3e3e 0 2px,#151515 2px 16px); animation: conveyor-belt 1s linear infinite; z-index: 1; }
.service-grid::after { content: ''; position: absolute; left: 0; bottom: 3px; height: 7px; width: 30px; background: var(--accent); box-shadow: 180px 0 #9b4c2e,360px 0 #ff5b24,540px 0 #9b4c2e,720px 0 #ff5b24,900px 0 #9b4c2e,1080px 0 #ff5b24,1260px 0 #9b4c2e; animation: service-cargo 4s linear infinite; z-index: 2; }
.service-card:nth-child(1) .icon-box svg { animation: gear-turn 12s linear infinite; }
.service-card:nth-child(2) .icon-box svg { stroke-dasharray: 9 4; animation: circuit-flow 3s linear infinite; }
.service-card:nth-child(3) .icon-box svg { animation: stack-shift 4s ease-in-out infinite; }
.service-card:nth-child(4) .icon-box svg { animation: gear-turn 18s linear infinite reverse; }
.case-visual::after { content: ''; position: absolute; top: 0; bottom: 0; width: 35%; left: -40%; background: linear-gradient(90deg,transparent,#ff8e4020,transparent); border-right: 1px solid #ff5b2444; transform: skewX(-15deg); pointer-events: none; animation: visual-scan 10s ease-in-out infinite; }
.tracking-line i { animation: signal-dot 3s ease-in-out infinite; }
.tracking-line i:nth-child(2) { animation-delay: .5s; }
.tracking-line i:nth-child(3) { animation-delay: 1s; }
.tracking-line i:nth-child(4) { animation-delay: 1.5s; }
.flow-node.accent { animation: process-node 5s ease-in-out infinite; }
.assembly-process { border: 1px solid #383838; background: #0f0f0f; position: relative; overflow: hidden; }
.assembly-process .process-grid { position: relative; z-index: 1; gap: 0; }
.assembly-process .process-step { padding: 23px 24px 30px; border-right: 1px solid #363636; min-width: 0; }
.assembly-process .process-step:last-child { border-right: 0; }
.station-header { display: flex; justify-content: space-between; gap: 6px; align-items: center; }
.station-header>span { font: 12px var(--mono); color: #b0b0b0; }
.station-header>i { width: 5px; height: 5px; display: block; background: var(--accent); animation: indicator 4s ease-in-out infinite; }
.process-step:nth-child(2) .station-header>i { animation-delay: 1s; }
.process-step:nth-child(3) .station-header>i { animation-delay: 2s; }
.process-step:nth-child(4) .station-header>i { animation-delay: 3s; }
.station-machine { width: 160px; max-width: 100%; height: 110px; margin: 25px auto 35px; fill: none; stroke: #696969; stroke-width: 1; overflow: visible; }
.machine-body { fill: #242424; stroke: #757575; }
.machine-base { fill: #222; stroke: #595959; }
.machine-support { stroke: #777; stroke-width: 7; fill: none; }
.machine-detail { stroke: #8b8b8b; stroke-width: 1; }
.machine-orange { fill: var(--accent); stroke: #ff9a6d; }
.machine-check { fill: none; stroke: var(--accent); stroke-width: 2; }
.feed-parts { fill: #e7632f; stroke: #ff9a6d; animation: parts-feed 3s ease-in-out infinite; }
.press-head { animation: assembly-press 3s ease-in-out infinite; }
.scan-beam { fill: #ff5b241a; stroke: #ff5b2460; animation: machine-scan 3s ease-in-out infinite; transform-origin: 80px 20px; }
.finished-parts { animation: part-exit 3s ease-in-out infinite; }
.assembly-transport { height: 9px; position: absolute; top: 190px; left: 0; right: 0; z-index: 2; overflow: hidden; background: repeating-linear-gradient(90deg,#414141 0 2px,#1c1c1c 2px 10px); border-block: 1px solid #545454; animation: conveyor-belt .65s linear infinite; }
.assembly-transport>span { position: absolute; left: -20px; top: 1px; width: 20px; height: 5px; background: var(--accent); animation: transport-cargo 12s linear infinite; }
.assembly-transport>span:nth-child(2) { animation-delay: -3s; }
.assembly-transport>span:nth-child(3) { animation-delay: -6s; }
.assembly-transport>span:nth-child(4) { animation-delay: -9s; }
.assembly-process h3 { max-width: 240px; font-size: 21px; line-height: 1.15; }
.assembly-process p { font-size: 12px; line-height: 1.8; margin-top: 15px; }
.process-readout { display: flex; justify-content: space-between; gap: 20px; font: 12px var(--mono); color: #a1a1a1; border-top: 1px solid #383838; padding: 16px 24px; }
.process-readout>span:last-child { color: #c78365; }
.kinetic-mark i { animation: tiles-assemble 6s ease-in-out infinite; }
.kinetic-mark i:nth-child(2) { animation-delay: -.8s; }
.kinetic-mark i:nth-child(3) { animation-delay: -1.6s; }
.kinetic-mark i:nth-child(4) { animation-delay: -2.4s; }
.cta-section::before { animation: caution-belt 1.2s linear infinite; }
.cta-section .circle-cta b { animation: dispatch-arrow 3s ease-in-out infinite; }

@keyframes ticker-travel { to { transform: translateX(-50%); } }
@keyframes indicator { 0%,100% { opacity: .45; } 50% { opacity: 1; box-shadow: 0 0 7px #ff5b2450; } }
@keyframes conveyor-belt { to { background-position-x: 16px; } }
@keyframes caution-belt { to { background-position-x: 14.142px; } }
@keyframes service-cargo { to { transform: translateX(180px); } }
@keyframes gear-turn { to { transform: rotate(360deg); } }
@keyframes circuit-flow { to { stroke-dashoffset: -52; } }
@keyframes stack-shift { 0%,100% { transform: translateY(0); } 40%,65% { transform: translateY(-3px); } }
@keyframes visual-scan { 0%,25% { left: -40%; } 75%,100% { left: 115%; } }
@keyframes signal-dot { 0%,100% { background: #8d8d8d; } 35% { background: #ff5b24; } }
@keyframes process-node { 0%,100% { transform: translateX(0); } 40%,60% { transform: translateX(5px); } }
@keyframes parts-feed { 0%,20% { transform: translateY(-8px); } 70%,100% { transform: translateY(9px); } }
@keyframes assembly-press { 0%,15%,85%,100% { transform: translateY(0); } 45%,60% { transform: translateY(17px); } }
@keyframes machine-scan { 0%,100% { transform: scaleY(.45); opacity: .3; } 45%,55% { transform: scaleY(1.1); opacity: .9; } }
@keyframes part-exit { 0%,15% { transform: translateX(0); opacity: 0; } 30% { opacity: 1; } 75% { transform: translateX(20px); opacity: 1; } 100% { transform: translateX(40px); opacity: 0; } }
@keyframes transport-cargo { from { left: -25px; } to { left: 100%; } }
@keyframes tiles-assemble { 0%,100% { transform: translate(0,0); } 35% { transform: translate(8px,-12px); } 65% { transform: translate(0,0); } }
@keyframes dispatch-arrow { 0%,100% { transform: translate(0,0); } 50% { transform: translate(3px,-3px); } }

/* Every motion region is paused until it is visible and the controller permits motion. */
[data-motion-region] *,[data-motion-region]::before,[data-motion-region]::after,[data-motion-region] *::before,[data-motion-region] *::after { animation-play-state: paused; }
html[data-motion="running"] [data-motion-region].in-view *,html[data-motion="running"] [data-motion-region].in-view::before,html[data-motion="running"] [data-motion-region].in-view::after,html[data-motion="running"] [data-motion-region].in-view *::before,html[data-motion="running"] [data-motion-region].in-view *::after { animation-play-state: running; }

@media(min-width:1550px) {
  .factory-hero .hero-layout { min-height: 640px; }
  .factory-stage { min-height: 630px; }
}
@media(max-width:1200px) {
  .nav-wrap { gap: 18px; }
  .site-header #site-nav { gap: 22px; }
  .factory-hero .hero-copy h1 { font-size: 5.9vw; }
  .factory-hero .hero-actions { flex-wrap: wrap; gap: 10px 22px; }
  .factory-hero .hero-layout { min-height: 550px; }
  .factory-stage { min-height: 550px; }
  .factory-hero .hero-copy .eyebrow { font-size: 12px; }
  .factory-topline { font-size: 7px; left: 8px; }
  .factory-legend { left: 8px; }
  .factory-legend>span { font-size: 6px; gap: 5px; }
  .factory-caption { left: 8px; font-size: 5px; }
  .assembly-process .process-step { padding-inline: 18px; }
  .assembly-process h3 { font-size: 18px; }
  .station-header>span { font-size: 12px; }
}
@media(max-width:850px) {
  .factory-hero .hero-layout { grid-template-columns: 1fr 1fr; min-height: 510px; }
  .factory-stage { min-height: 510px; }
  .factory-hero .hero-copy h1 { font-size: 5.9vw; }
  .factory-hero .hero-description { font-size: 13px; }
  .factory-hero .hero-description br { display: none; }
  .factory-hero .hero-copy .eyebrow { font-size: 12px; }
  .factory-hero .hero-spec { font-size: 12px; gap: 10px; }
  .factory-topline { flex-direction: column; gap: 9px; }
  .factory-legend { grid-template-columns: repeat(2,1fr); row-gap: 12px; bottom: 40px; }
  .factory-legend>span { font-size: 6px; padding-top: 6px; }
  .factory-stage canvas { height: calc(100% - 100px); top: 35px; }
  .factory-caption>span:last-child { display: none; }
  .factory-hero .hero-actions .button { min-height: 46px; font-size: 12px; }
  .assembly-process .process-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .assembly-process .process-step { padding: 24px; border-bottom: 1px solid #363636; }
  .assembly-process .process-step:nth-child(2) { border-right: 0; }
  .assembly-process .process-step:nth-child(n+3) { border-bottom: 0; }
  .assembly-process h3 { font-size: 21px; }
  .assembly-transport { display: none; }
  .station-machine { margin-bottom: 25px; }
  .process-readout { font-size: 12px; }
}
@media(max-width:650px) {
  .nav-wrap { gap: 12px; }
  .site-header #site-nav { margin: 0; }
  .motion-control { margin-left: auto; width: 40px; height: 44px; font-size: 14px; }
  .factory-hero .hero-layout { display: block; min-height: 0; }
  .factory-hero .hero-copy { padding: 35px 0 0; }
  .factory-hero .hero-copy h1 { font-size: clamp(39px,10.6vw,66px); }
  .factory-hero .hero-copy .eyebrow { font-size: 12px; }
  .factory-hero .hero-description { font-size: 13px; line-height: 1.75; margin-top: 24px; }
  .factory-hero .hero-actions { gap: 10px 18px; margin-top: 25px; }
  .factory-hero .hero-actions .button { font-size: 12px; padding: 13px 15px; }
  .factory-hero .hero-actions .text-button { font-size: 12px; padding: 12px 0; }
  .factory-hero .hero-spec { font-size: 12px; margin-top: 23px; gap: 13px; }
  .factory-stage { min-height: 0; height: 370px; margin: 22px -12px 0; }
  .factory-topline { top: 11px; left: 12px; right: 12px; flex-direction: row; font-size: 6px; }
  .line-state { gap: 5px; }
  .factory-stage canvas { top: 8px; height: calc(100% - 55px); }
  .factory-legend { grid-template-columns: repeat(4,minmax(0,1fr)); left: 12px; right: 12px; bottom: 35px; gap: 6px; }
  .factory-legend>span { font-size: 5px; gap: 4px; }
  .factory-caption { left: 12px; right: 12px; bottom: 12px; font-size: 5px; }
  .factory-caption>span:last-child { display: inline; }
  .ticker-copy { font-size: 12px; padding: 10px 22px; gap: 24px; }
  .ticker-copy>b { font-size: 19px; }
  .assembly-process .process-step { padding: 22px 15px; }
  .station-header>span { font-size: 12px; }
  .station-machine { margin: 20px auto; height: 90px; }
  .assembly-process h3 { font-size: 18px; }
  .assembly-process p { font-size: 12px; line-height: 1.75; }
  .process-readout { flex-direction: column; gap: 8px; padding: 15px; font-size: 12px; }
}
@media(max-width:370px) {
  .factory-hero .hero-copy h1 { font-size: 36px; }
  .factory-hero .hero-spec { column-gap: 9px; }
  .factory-hero .hero-actions { gap: 7px 15px; }
  .factory-hero .hero-actions .button { font-size: 12px; }
  .factory-hero .hero-actions .text-button { font-size: 12px; }
  .factory-stage { height: 330px; }
  .factory-topline { font-size: 5px; }
  .factory-caption>span:last-child { display: none; }
  .assembly-process h3 { font-size: 16px; }
  .station-header>span { font-size: 12px; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation: none!important; transition: none!important; }
  .finished-parts { opacity: 1; }
  .scan-beam { opacity: .6; }
}
