/* Diagrams occupy their own layout cells; animations never move over body copy. */
.return-to-work { display: inline-flex; align-items: center; gap: 12px; padding-block: 10px; font-size: .9375rem; color: #c8e2e7; text-decoration: none; }
.return-to-work:hover { color: #fff; }
.return-to-work:focus-visible,.diagram-replay:focus-visible { outline: 2px solid #b5e9ec; outline-offset: 5px; }
.detail-origin { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.detail-origin .return-to-work { font-weight: 650; padding-block: 4px; white-space: nowrap; }
.detail-owner { color: #9db3c1; font-size: .75rem; line-height: 1.3; padding-left: 27px; }
.detail-site .story-controls { justify-content: flex-end; }
@media (min-width:651px) and (max-width:1050px) {
 .home.detail-site .site-header .wrap { grid-template-columns: auto minmax(0,1fr) auto; gap: 18px; }
 .home.detail-site .nav { gap: 16px; flex-wrap: wrap; }
 .home.detail-site .nav a { font-size: .875rem; }
}
.visual-story .story-controls { position: relative; }
.feature-icon { width: 36px; height: 36px; flex-shrink: 0; fill: none; stroke: #addadd; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.visual-story .feature-item { position: relative; padding: 14px 0 0 50px; }
.visual-story .feature-item > .feature-icon { position: absolute; left: 0; top: 18px; }
.visual-story .feature-item h3 { margin-top: 0; }
.visual-story .story-panel.is-current .feature-item > .feature-icon { animation: icon-arrive .7s ease both; }
.visual-story .feature-item:nth-child(2) > .feature-icon { animation-delay: .1s; }
.visual-story .feature-item:nth-child(3) > .feature-icon { animation-delay: .2s; }
.visual-story .feature-item:nth-child(4) > .feature-icon { animation-delay: .3s; }
.visual-story .feature-item:nth-child(5) > .feature-icon { animation-delay: .4s; }
.visual-story .feature-item:nth-child(6) > .feature-icon { animation-delay: .5s; }
.integration-composition { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; margin-top: 18px; }
.integration-composition .integration-network { display: grid; grid-template-columns: 1fr; margin: 0; gap: 16px; }
.integration-composition .integration-module { padding: 0 0 0 36px; border: 0; }
.integration-composition .integration-module::before { display: none; }
.integration-composition .integration-number { position: absolute; left: 0; top: 4px; }
.integration-composition .integration-module h3 { font-size: 1.0625rem; margin: 0 0 5px; }
.integration-composition .integration-module p { font-size: 1rem; line-height: 1.65; }
.visual-story .collaboration-credit { margin-top: 40px; font-size: .875rem; }
.system-map { margin: 0; min-width: 0; background: radial-gradient(ellipse,#34556450,transparent 70%); }
.system-map figcaption,.design-visual figcaption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .875rem; color: #c0d9e2; line-height: 1.5; }
.diagram-replay { border: 0; background: none; padding: 5px 0; color: #b2cbd3; font: inherit; font-size: .875rem; cursor: pointer; white-space: nowrap; }
.diagram-replay:hover { color: #fff; }
.system-map-canvas { position: relative; height: 270px; }
.system-wires { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #709ca966; stroke-width: 1.4; }
.system-wires .signal-wire { stroke: #b6e9e9; stroke-width: 2.2; stroke-dasharray: 18 620; stroke-dashoffset: 0; opacity: 0; }
.system-node { position: absolute; width: 28%; min-height: 84px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 10px 5px; transform: translate(-50%,-50%); border: 1px solid #9ccad16b; background: #142637; color: #d9edf0; font-size: .9375rem; text-align: center; line-height: 1.35; }
.system-node .feature-icon { width: 27px; height: 27px; }
.map-app { left: 16.67%; top: 20%; }
.map-web { left: 16.67%; top: 80%; }
.map-api { left: 50%; top: 50%; border-color: #b5dddd; background: #27434f; border-radius: 50%; aspect-ratio: 1; min-height: 0; }
.api-label { font-size: 1.625rem; letter-spacing: .08em; color: #e3f9f7; }
.map-rag { left: 83.33%; top: 20%; }
.map-motion { left: 83.33%; top: 80%; }
.is-playing .signal-wire { animation: signal-travel 3.8s linear infinite; }
.is-playing .map-api { animation: hub-light 3.8s ease infinite; }
.visual-story .sharing-motion { position: relative; margin-top: 20px; }
.flow-actions { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.visual-story .sharing-steps { position: relative; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 28px; margin: 0; padding: 0; }
.visual-story .sharing-steps::before,.visual-story .sharing-steps::after { content: ''; position: absolute; top: 36px; left: 12.5%; width: 75%; height: 1px; background: #7598a26b; }
.visual-story .sharing-steps::after { height: 2px; background: #b2dce0; transform-origin: left; opacity: .7; }
.visual-story .sharing-steps li { position: relative; display: block; padding: 0; border: 0; min-width: 0; }
.sharing-stage { position: relative; z-index: 1; display: grid; place-items: center; width: 72px; height: 72px; border: 1px solid #86b6c18a; border-radius: 50%; background: #1d3445; margin: 0 auto 24px; }
.visual-story .sharing-step-number { display: block; margin-bottom: 8px; color: #a2c7d2; font-size: .875rem; }
.visual-story .sharing-steps h3 { font-size: 1.125rem; }
.visual-story .sharing-steps p { font-size: 1rem; line-height: 1.7; }
.is-playing .sharing-steps::after { animation: rail-travel 3.2s ease both; }
.is-playing .sharing-stage { animation: stage-light .8s ease; }
.is-playing li:nth-child(2) .sharing-stage { animation-delay: .8s; }
.is-playing li:nth-child(3) .sharing-stage { animation-delay: 1.6s; }
.is-playing li:nth-child(4) .sharing-stage { animation-delay: 2.4s; }
.design-story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; width: 100%; align-items: center; }
.home.visual-story .design-story-grid .about-columns { display: grid; grid-template-columns: 1fr; padding: 0; gap: 22px; }
.home.visual-story .design-story-grid .about-columns > div { margin: 0; }
.home.visual-story .design-story-grid .about-columns p { font-size: 1rem; line-height: 1.75; }
.home.visual-story .design-story-grid .detail-label { margin: 0 0 8px; color: #c1e0e3; }
.design-visual,.outcome-visual { margin: 0; min-width: 0; }
.design-visual > img,.outcome-visual > img { display: block; width: 100%; height: auto; border: 1px solid #97b9c050; }
.design-visual > img { max-height: min(28dvh,280px); object-fit: contain; background: #0c1420; }
.design-visual figcaption { margin-top: 16px; }
.design-cycle { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; padding: 0; margin: 16px 0 0; list-style: none; }
.design-cycle li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding-top: 13px; border-top: 1px solid #99c4ca75; font-size: .875rem; color: #c7e0e6; line-height: 1.45; }
.is-playing .design-cycle li { animation: stage-light .9s ease; }
.is-playing .design-cycle li:nth-child(2) { animation-delay: .9s; }
.is-playing .design-cycle li:nth-child(3) { animation-delay: 1.8s; }
.outcome-split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; width: 100%; }
.home.visual-story .outcome-split h2 { font-size: clamp(2.2rem,3.6vw,3.4rem); }
.home.visual-story .outcome-split p:not(.panel-kicker) { font-size: 1rem; line-height: 1.8; }
.outcome-facts { display: flex; justify-content: space-between; gap: 16px; margin-top: 20px; color: #c0dfe2; font-size: .9375rem; line-height: 1.5; }
.visual-story .story-panel.is-current .outcome-visual,.visual-story .story-panel.is-current .portfolio-preview,.visual-story .story-panel.is-current .platform-screen { animation: image-arrive .8s ease both; }
@keyframes icon-arrive { from { opacity: .3; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes image-arrive { from { opacity: .25; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes signal-travel { 0% { opacity: 0; stroke-dashoffset: 640; } 15%,85% { opacity: 1; } 100% { opacity: 0; stroke-dashoffset: -640; } }
@keyframes hub-light { 0%,100% { box-shadow: 0 0 0 0 #a9dfe000; } 45% { box-shadow: 0 0 40px 8px #a9dfe038; } }
@keyframes rail-travel { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes stage-light { 0%,100% { box-shadow: none; } 45% { box-shadow: 0 0 24px #abdce83a; border-color: #d1f0ee; } }
@media (min-width:651px) and (max-height:760px) {
 .home.visual-story .panel-inner { padding-block: 26px; }
 .visual-story .robot-role-heading h2 { font-size: 2.25rem; margin-block: 12px 18px; }
 .system-map-canvas { height: 235px; }
 .integration-composition { gap: 36px; }
 .home.visual-story .about-layout h2 { font-size: 2.5rem; margin-block: 16px 22px; }
 .home.visual-story .design-story-grid .about-columns p { line-height: 1.65; }
 .home.visual-story .design-story-grid .about-columns { gap: 16px; }
 .visual-story .collaboration-credit { margin-top: 32px; }
}
@media (min-width:651px) and (max-width:950px) {
 .integration-composition,.design-story-grid,.outcome-split { gap: 28px; }
 .system-map-canvas { height: 300px; }
 .system-node { font-size: .875rem; }
 .visual-story .sharing-steps { gap: 20px; }
}
@media (min-width:951px) and (max-height:680px) {
 html[lang="en"] .system-map-canvas { height:220px; }
 .home.visual-story #role .panel-inner { padding-bottom:16px; }
}
@media (max-width:650px) {
 .return-to-work { gap: 9px; font-size: .875rem; }
 .integration-composition,.design-story-grid,.outcome-split { grid-template-columns: 1fr; gap: 30px; }
 .integration-composition { margin-top: 24px; }
 .system-map-canvas { height: 255px; }
 .system-node { font-size: .875rem; min-height: 78px; }
 .map-api { min-height: 0; }
 .system-map figcaption,.design-visual figcaption { font-size: .875rem; }
 .visual-story .sharing-steps { grid-template-columns: 1fr; gap: 30px; }
 .visual-story .sharing-steps::before,.visual-story .sharing-steps::after { display: none; }
 .visual-story .sharing-steps li { padding-left: 82px; min-height: 95px; }
 .sharing-stage { position: absolute; left: 0; top: 0; width: 58px; height: 58px; margin: 0; }
 .sharing-stage .feature-icon { width: 28px; height: 28px; }
 .visual-story .sharing-steps li:not(:last-child)::after { content: ''; position: absolute; left: 29px; top: 58px; bottom: -30px; border-left: 1px solid #91b9c25e; }
 .design-visual { margin-top: 6px; }
 .outcome-facts { flex-wrap: wrap; font-size: .875rem; }
 .home.visual-story .outcome-split h2 { font-size: 2.25rem; }
}
/* Continuous flows only play while their panel is in view. */
/* Balance each complete section within the available content area. */
@media (min-width:651px) {
 .home.document-detail :is(#features,#flow) .robot-page { display:flex; flex-direction:column; justify-content:center; padding-block:clamp(28px,5dvh,48px); }
 .home.document-detail :is(#features,#flow) .robot-page > * { flex-shrink:0; }
}
/* The care overview uses each column's full width for its short description. */
.home.robot-detail :is(.care-features,.document-features) .function-heading { gap: 64px; }
.home.robot-detail .care-features .function-heading { align-items: first baseline; }
.home.robot-detail :is(.care-features,.document-features) .function-heading h2 { margin: 20px 0 16px; font-size: clamp(2rem,2.8vw,2.8rem); }
.home.robot-detail :is(.care-features,.document-features) .feature-grid { margin-top: 34px; column-gap: 44px; row-gap: 44px; }
.home.robot-detail :is(.care-features,.document-features) .feature-item { display: grid; grid-template-columns: 32px minmax(0,1fr); align-content: start; align-items: center; column-gap: 15px; row-gap: 14px; padding: 22px 0 0; }
.home.robot-detail :is(.care-features,.document-features) .feature-item > .feature-icon { position: static; width: 32px; height: 32px; }
.home.robot-detail :is(.care-features,.document-features) .feature-item h3 { margin: 0; }
.home.robot-detail :is(.care-features,.document-features) .feature-item p { grid-column: 1 / -1; line-height: 1.8; text-wrap: balance; }
@media (min-width:651px) and (max-height:680px) {
 .home.robot-detail :is(.care-features,.document-features) .feature-grid { row-gap: 30px; margin-top: 24px; }
 .home.robot-detail :is(.care-features,.document-features) .feature-item { padding-top: 18px; }
}
@media (max-width:950px) {
 .home.robot-detail :is(.care-features,.document-features) .function-heading { gap: 28px; }
 .home.robot-detail :is(.care-features,.document-features) .feature-grid { column-gap: 36px; row-gap: 36px; }
}
@media (max-width:650px) {
 .home.robot-detail :is(.care-features,.document-features) .function-heading { gap: 4px; }
 .home.robot-detail :is(.care-features,.document-features) .function-heading h2 { font-size: 2rem; }
 .home.robot-detail :is(.care-features,.document-features) .feature-grid { margin-top: 28px; row-gap: 32px; }
}
.is-playing[data-loop] .sharing-stage { animation: sharing-loop 6.4s ease-in-out infinite; }
.is-playing[data-loop] li:nth-child(2) .sharing-stage { animation-delay: 1.6s; }
.is-playing[data-loop] li:nth-child(3) .sharing-stage { animation-delay: 3.2s; }
.is-playing[data-loop] li:nth-child(4) .sharing-stage { animation-delay: 4.8s; }
.is-playing[data-loop] .sharing-steps::after { animation: rail-loop 6.4s ease-in-out infinite; }
@keyframes sharing-loop { 0%,24%,100% { box-shadow: none; border-color: #86b6c18a; } 5%,18% { box-shadow: 0 0 24px #abdce83a; border-color: #d1f0ee; } }
@keyframes rail-loop { 0% { transform: scaleX(0); opacity: 0; } 5% { opacity: .8; } 80%,92% { transform: scaleX(1); opacity: .8; } 100% { transform: scaleX(1); opacity: 0; } }
.home.website-case .website-process,.home.website-case .website-reading { display: flex; flex-direction: column; justify-content: center; }
.home.website-case h2 { font-size: clamp(2.2rem,3.6vw,3.3rem); line-height: 1.22; margin: 18px 0 22px; }
.home.website-case .detail-cover h1 { font-size: clamp(2.4rem,4.4vw,4.1rem); }
.home.website-case .detail-case-grid { min-height: min(50dvh,470px); }
.website-process > .profile-intro { max-width: 48em; }
.design-flow { margin-top: 40px; width: 100%; }
.design-stages { position: relative; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 42px; list-style: none; padding: 0; margin: 0; }
.design-stages::before { content: ''; position: absolute; left: 0; right: 0; top: 80px; height: 1px; background: #86abb466; }
.design-stages li { min-width: 0; position: relative; }
.design-stage-art { display: flex; align-items: center; justify-content: space-between; height: 80px; border-bottom: 2px solid #8abac370; padding: 0 0 18px; }
.design-stage-art .feature-icon { width: 44px; height: 44px; }
.design-stage-art span { font-size: 1.6rem; color: #91b5c2; font-weight: 500; }
.design-stages h3 { font-size: 1.25rem; margin: 22px 0 12px; line-height: 1.4; }
.design-stages p { margin: 0; max-width: 24em; font-size: 1rem; line-height: 1.75; color: #bfd2dc; }
.is-playing .design-stage-art { animation: design-loop 4.8s ease-in-out infinite; }
.is-playing li:nth-child(2) .design-stage-art { animation-delay: 1.6s; }
.is-playing li:nth-child(3) .design-stage-art { animation-delay: 3.2s; }
@keyframes design-loop { 0%,33%,100% { border-color: #8abac370; background: transparent; } 8%,25% { border-color: #dcf6f2; background: linear-gradient(0deg,#78b8c21f,transparent); } }
.reading-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.reading-features { padding: 0; margin: 28px 0 0; list-style: none; display: grid; gap: 20px; }
.reading-features li { padding-left: 19px; border-left: 2px solid #8abac36b; }
.reading-features h3 { font-size: 1.0625rem; margin: 0 0 5px; line-height: 1.4; }
.reading-features p { font-size: 1rem; line-height: 1.65; color: #b8ced9; margin: 0; }
.responsive-visual { margin: 0; min-width: 0; }
.responsive-visual figcaption { color: #b7ccd6; font-size: .8125rem; line-height: 1.7; margin-top: 22px; }
.device-composition { position: relative; height: 300px; padding: 16px 48px 38px 0; }
.device-desktop { position: relative; height: 100%; border: 1px solid #a8c5cd94; border-radius: 9px; background: #142434; padding: 0 20px 20px; box-shadow: 0 24px 60px #040c192e; }
.device-toolbar { height: 30px; border-bottom: 1px solid #748e9c66; display: flex; align-items: center; gap: 5px; }
.device-toolbar i { height: 4px; width: 4px; background: #9fbfc8; border-radius: 50%; }
.device-page { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; height: 70%; }
.device-copy { display: grid; gap: 7px; }
.device-copy span { display: block; width: 33%; height: 4px; background: #b7d2d6; margin-bottom: 6px; }
.device-copy b { display: block; width: 86%; height: 8px; border-radius: 1px; background: #cfdddd; }
.device-copy b:nth-of-type(2) { width: 68%; margin-bottom: 9px; }
.device-copy i { display: block; width: 95%; height: 3px; background: #6f899c; }
.device-orbit { display: grid; place-items: center; aspect-ratio: 1; width: 90%; border: 1px dashed #91bfc590; border-radius: 50%; background: radial-gradient(circle,#648b9566,transparent 70%); }
.device-orbit span { color: #d7efed; font-size: 2.1rem; }
.device-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.device-cards i { display: block; height: 25px; border-top: 1px solid #9bbaca80; background: linear-gradient(135deg,#4a758a60,#3a446e50); }
.device-mobile { position: absolute; width: 27%; right: 0; bottom: 0; height: 230px; border: 1px solid #bacbd59e; border-radius: 14px; padding: 12px 13px; background: #122233; box-shadow: -12px 10px 36px #08111c50; }
.device-speaker { width: 22px; height: 3px; background: #93b4c0; border-radius: 4px; margin: 0 auto 18px; }
.device-mobile .device-copy { gap: 5px; }
.device-mobile .device-copy b { height: 5px; }
.device-mobile .device-copy b:nth-of-type(2) { margin-bottom: 4px; }
.device-mobile .device-orbit { width: min(70px,100%); margin: 14px auto; }
.device-mobile .device-orbit span { font-size: 1.5rem; }
.mobile-lines { display: grid; gap: 5px; }
.mobile-lines i { height: 3px; background: #829bab; }
.website-case .story-panel.is-current .device-orbit { animation: device-glow 8s ease-in-out infinite; }
@keyframes device-glow { 0%,100% { opacity: .65; } 50% { opacity: 1; } }
@media (min-width:651px) and (max-height:760px) {
 .home.website-case h2 { font-size: 2.4rem; }
 .design-flow { margin-top: 26px; }
 .reading-features { gap: 16px; }
}
@media (max-width:950px) { .reading-grid { gap: 36px; } .design-stages { gap: 26px; } }
@media (max-width:650px) {
 .home.website-case .website-process,.home.website-case .website-reading { justify-content: flex-start; }
 .home.website-case h2 { font-size: 2rem; margin-block: 18px 22px; }
 .home.website-case .detail-case-grid { min-height: 0; }
 .design-stages { grid-template-columns: 1fr; gap: 28px; }
 .design-stages::before { display: none; }
 .design-stage-art { height: 58px; padding-bottom: 12px; }
 .design-stage-art .feature-icon { width: 32px; height: 32px; }
 .design-stage-art span { font-size: 1.25rem; }
 .design-stages h3 { margin-top: 16px; }
 .design-flow { margin-top: 28px; }
 .reading-grid { grid-template-columns: 1fr; gap: 32px; }
 .device-composition { height: 270px; padding-right: 35px; }
 .device-mobile { width: 29%; height: 218px; }
 .device-mobile .device-orbit { width: min(56px,100%); }
 .responsive-visual figcaption { margin-top: 14px; }
}
@media (prefers-reduced-motion:reduce) {
 .visual-story *,.visual-story *::before,.visual-story *::after { animation: none !important; }
 .diagram-replay { display: none; }
}
