/* Illustrated architecture: measured state, predictions, and authorized actions. */
.twin-architecture { --observe: #53dcff; --predict: #f0ba78; --execute: #78e8be; border: 1px solid #203646; background: #060d15; overflow: hidden; }
.architecture-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 32px 34px 20px; }
.architecture-overline { display: block; font: .7rem/1.5 var(--mono); letter-spacing: .19em; color: var(--observe); margin-bottom: 12px; }
.architecture-heading h3 { color: #e5f2fb; font-size: clamp(1.15rem, 1.8vw, 1.65rem); font-weight: 600; letter-spacing: -.035em; }
.architecture-concept { color: #7f99aa; font: .59rem/1.6 var(--mono); letter-spacing: .04em; padding-top: 4px; text-align: right; flex-shrink: 0; }
.architecture-legend { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px 24px; padding: 0 34px 32px; font-size: .72rem; color: #aac0ce; }
.architecture-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.architecture-legend > span::before { content: ''; display: inline-block; width: 25px; border-top: 2px solid var(--observe); }
.architecture-legend .legend-predict::before { border-color: var(--predict); border-top-style: dashed; }
.architecture-legend .legend-execute::before { border-color: var(--execute); }
.architecture-stage { position: relative; height: 625px; background: radial-gradient(ellipse at 40% 36%, #14303c38, transparent 60%); }
.architecture-routes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.route-observe, .route-predict, .route-execute { fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.route-observe { stroke: #53dcff; }
.route-predict { stroke: #f0ba78; stroke-dasharray: 5 6; }
.route-execute { stroke: #78e8be; }
.route-bypass { stroke-opacity: .5; }
.route-junctions { fill: #060d15; stroke: #53dcff; stroke-width: 1.5; }
.route-label { position: absolute; z-index: 2; font-size: .72rem; color: #a6d4e2; padding: 4px 10px; line-height: 1.5; background: #060d15; text-align: center; transform: translateX(-50%); }
.route-label-bypass { top: 1px; left: 62.5%; font-size: .7rem; color: #8fbbc9; }
.route-label-sync { top: 321px; left: 25%; }
.route-label-context { top: 321px; left: 50%; }
.route-label-recommend { top: 321px; left: 75%; color: #e1bc8e; }
.architecture-scenes { position: absolute; top: 65px; left: 0; right: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.scene-node { position: relative; display: block; min-width: 0; width: 100%; height: 435px; padding: 0 14px; border: 0; background: none; color: #dcebf4; text-align: center; cursor: pointer; font-family: inherit; }
.scene-index { position: absolute; top: 0; left: 14px; right: 14px; display: flex; justify-content: center; align-items: center; gap: 9px; font: .61rem/22px var(--mono); letter-spacing: .07em; color: #8ea6b7; }
.scene-index b { font: .7rem/1.5 var(--mono); color: var(--observe); }
.scene-art { display: block; width: 100%; aspect-ratio: 3 / 2; background-image: url('../images/digital-twin/architecture-scenes.webp'); background-size: 200% 200%; background-repeat: no-repeat; mask-image: linear-gradient(transparent, #000 8%, #000 90%, transparent); }
.art-physical { background-position: 0 0; }
.art-world { background-position: 100% 0; }
.art-ax { background-position: 0 100%; }
.art-operations { background-position: 100% 100%; }
.scene-node > .scene-art { position: absolute; top: 47px; left: 3%; width: 94%; transition: filter .2s ease, transform .2s ease; }
.scene-node:hover > .scene-art { filter: brightness(1.14); transform: translateY(-3px); }
.scene-copy { position: absolute; top: 292px; left: 14px; right: 14px; display: flex; align-items: center; flex-direction: column; }
.scene-copy > strong { font-size: clamp(1.04rem, 1.6vw, 1.35rem); font-weight: 600; line-height: 1.5; letter-spacing: -.035em; color: #e9f4fb; }
.scene-description { display: block; color: #a5bac8; font-size: .82rem; line-height: 1.7; margin-top: 8px; min-height: 2.8em; word-break: keep-all; }
.scene-tags { display: block; color: #768fa2; font-size: .67rem; line-height: 1.7; margin-top: 8px; }
.scene-open { display: flex; align-items: center; justify-content: center; gap: 13px; color: #92b4c5; font-size: .69rem; line-height: 1.8; margin-top: 13px; }
.scene-open > span[aria-hidden] { font-size: 1.2rem; line-height: 1; }
.scene-node[aria-pressed="true"] .scene-open { color: var(--observe); }
.scene-node[aria-pressed="true"] .scene-index { color: #d9f6ff; }
.scene-node[aria-pressed="true"]::before { content: ''; position: absolute; top: 27px; left: 25%; right: 25%; height: 1px; background: var(--observe); box-shadow: 0 0 14px #53dcff66; }
.scene-ax .scene-index b, .scene-ax[aria-pressed="true"] .scene-open { color: var(--predict); }
.scene-ax[aria-pressed="true"]::before { background: var(--predict); }
.scene-operations .scene-index b { color: var(--execute); }
.architecture-return { position: absolute; top: 552px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 15px; padding: 10px 25px; color: #a7c9bd; font-size: .71rem; line-height: 1.7; text-align: left; background: #091b20; border: 1px solid #245747; min-width: 340px; }
.architecture-return strong { display: block; color: #bcebd7; font-weight: 500; font-size: .9rem; }
.return-symbol { font: 1.8rem/1 var(--mono); color: var(--execute); }
.architecture-mobile-bypass { display: none; }
.architecture-detail-heading { display: flex; justify-content: space-between; gap: 20px; padding: 18px 32px; border-top: 1px solid #203b4a; background: #0a1823; font-size: .74rem; color: #809fb3; }
.architecture-detail-heading > span:first-child { color: #c8e0ef; }
.twin-architecture .twin-layer-details { background: #0a1520; border-top-color: #1b3443; }
.twin-architecture .twin-layer-detail { padding: 28px 32px 32px; }
.twin-architecture .twin-layer-details[data-enhanced] .twin-layer-detail { min-height: 235px; }

/* A second diagram explains one use case and the approval/review branch. */
.twin-operating-flow { margin-top: 52px; border-top: 1px solid #294658; padding-top: 38px; }
.operating-flow-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.operating-flow-heading .twin-kicker { color: #91b6ca; margin-bottom: 12px; }
.operating-flow-heading h3 { color: #e1edf6; font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.5; }
.flow-scenario-tag { margin-top: 5px; border: 1px solid #34505f; padding: 5px 9px; color: #8fa6b4; font: .58rem/1.6 var(--mono); white-space: nowrap; }
.operating-flow-lead { color: #95afc0; font-size: .89rem; line-height: 1.85; margin-top: 15px; max-width: 810px; }
.operating-flow-diagram { position: relative; height: 325px; margin-top: 36px; background: linear-gradient(#09152280, transparent); }
.operating-flow-routes { position: absolute; width: 100%; height: 100%; pointer-events: none; }
.flow-feedback-route { stroke-opacity: .4; }
.operating-flow-steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); list-style: none; }
.flow-step { display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center; }
.flow-step-index { font: .66rem/16px var(--mono); color: #809fb3; }
.flow-step-index > span { font-family: var(--sans); }
.flow-step-icon { display: grid; place-items: center; width: 72px; height: 72px; margin-top: 23px; color: #75d5ee; background: #0b1c29; border: 1px solid #294d60; border-radius: 50%; }
.flow-step-icon svg { width: 32px; height: 32px; }
.flow-step strong { display: block; color: #d1e3f0; font-size: .84rem; font-weight: 500; line-height: 1.6; max-width: 165px; padding: 0 8px; margin-top: 16px; }
.flow-step-detail { display: block; color: #819aac; font-size: .66rem; line-height: 1.7; margin-top: 8px; padding: 0 7px; }
.flow-step-gate .flow-step-icon { border-radius: 15px; transform: rotate(45deg); background: #22221e; border-color: #7a684a; width: 58px; height: 58px; margin: 30px 0 7px; color: #e9bb81; }
.flow-step-gate .flow-step-icon svg { transform: rotate(-45deg); }
.flow-step-execute .flow-step-icon, .flow-step-feedback .flow-step-icon { color: #83d7b5; border-color: #2d5e51; background: #0a211f; }
.flow-branch-yes, .flow-branch-no, .flow-feedback-label { position: absolute; z-index: 2; background: #080f1b; padding: 3px 10px; font-size: .67rem; line-height: 1.5; transform: translateX(-50%); }
.flow-branch-yes { top: 48px; left: 66.7%; color: #99ddbf; }
.flow-branch-no { top: 223px; left: 50%; color: #d6b385; }
.flow-feedback-label { top: 284px; left: 50%; color: #85baa9; }
.flow-gate-mobile-note, .flow-mobile-approval { display: none; }
.operating-flow-note { color: #7894a8; font-size: .78rem; line-height: 1.8; margin-top: 5px; }

/* The opening visual uses the same real/virtual vocabulary. */
.twin-hero-pair { position: relative; aspect-ratio: 560 / 430; overflow: hidden; background: radial-gradient(ellipse at 55% 55%, #0d2c3980, transparent 65%); }
.hero-pair-scene { position: absolute; width: 75%; }
.hero-pair-scene > .scene-art { opacity: .95; }
.hero-pair-physical { left: -1%; top: 1%; }
.hero-pair-world { right: -1%; bottom: 1%; }
.hero-pair-scene > span:last-child { position: absolute; top: 9%; font: .55rem/1.5 var(--mono); letter-spacing: .16em; color: #a3c1d4; }
.hero-pair-physical > span:last-child { left: 9%; }
.hero-pair-world > span:last-child { right: 9%; color: #7cdef2; }
.hero-pair-link { position: absolute; left: 11%; bottom: 18%; color: #83dfb8; font: .58rem/1.5 var(--mono); letter-spacing: .1em; }
.hero-pair-orbit { position: absolute; inset: 13% 12%; border: 1px solid #245265; border-radius: 50%; transform: rotate(-26deg); }

@media (max-width: 1100px) and (min-width: 1001px) {
 .scene-copy { left: 8px; right: 8px; }
 .scene-description { font-size: .76rem; }
 .scene-tags { font-size: .62rem; }
 .route-label { font-size: .65rem; }
 .flow-step strong { font-size: .77rem; }
 .flow-step-detail { font-size: .6rem; }
}
@media (max-width: 1000px) {
 .architecture-heading { padding: 28px 26px 20px; }
 .architecture-concept { max-width: 170px; }
 .architecture-legend { padding: 0 26px 24px; justify-content: flex-start; gap: 10px 18px; }
 .architecture-stage { height: auto; padding: 0 22px 26px; }
 .architecture-routes, .route-label { display: none; }
 .architecture-scenes { position: static; display: flex; flex-direction: column; gap: 30px; }
 .scene-node { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: 'index index' 'art copy'; align-items: center; height: auto; text-align: left; padding: 18px 10px 25px; border-bottom: 1px solid #1c3442; }
 .scene-index { position: static; grid-area: index; justify-content: flex-start; margin-bottom: 10px; font-size: .66rem; }
 .scene-node > .scene-art { grid-area: art; position: static; width: 100%; max-width: 330px; }
 .scene-copy { grid-area: copy; position: static; align-items: flex-start; padding-left: 22px; }
 .scene-copy > strong { font-size: 1.25rem; }
 .scene-description { font-size: .85rem; min-height: 0; }
 .scene-tags { font-size: .72rem; }
 .scene-open { font-size: .73rem; }
 .scene-node[aria-pressed="true"]::before { top: 0; left: 10px; right: 10px; }
 .scene-node + .scene-node::after { content: '↓'; position: absolute; left: 48%; top: -28px; color: #53dcff; font-size: 1.2rem; }
 .scene-operations::after { color: #f0ba78 !important; }
 .architecture-return { position: relative; top: auto; left: auto; transform: none; min-width: 0; justify-content: center; margin: 28px 10px 0; }
 .architecture-return::before { content: ''; position: absolute; right: -20px; bottom: 50%; width: 12px; height: 40px; border-right: 1px solid #3f8f73; border-bottom: 1px solid #3f8f73; }
 .architecture-mobile-bypass { display: block; margin: 0 32px 26px; padding: 15px 0 0; border-top: 1px dashed #325669; color: #86acbf; font-size: .76rem; line-height: 1.9; }
 .architecture-detail-heading { padding: 18px 26px; }
 .twin-architecture .twin-layer-detail { padding: 25px; }
 .twin-architecture .twin-layer-details[data-enhanced] .twin-layer-detail { min-height: 0; }
 .operating-flow-heading { flex-direction: column; gap: 10px; }
 .operating-flow-diagram { height: auto; margin-top: 28px; }
 .operating-flow-routes { display: none; }
 .operating-flow-steps { display: flex; flex-direction: column; gap: 30px; padding: 0 10px; }
 .flow-step { position: relative; display: grid; grid-template-columns: 70px 1fr; grid-template-areas: 'icon index' 'icon title' 'icon detail'; text-align: left; align-items: start; gap: 0 20px; min-height: 80px; }
 .flow-step-index { grid-area: index; padding-top: 5px; }
 .flow-step .flow-step-icon { grid-area: icon; width: 60px; height: 60px; margin: 5px; }
 .flow-step-gate .flow-step-icon { width: 48px; height: 48px; margin: 11px; }
 .flow-step strong { grid-area: title; margin-top: 7px; max-width: none; padding: 0; font-size: .92rem; }
 .flow-step-detail { grid-area: detail; padding: 0; margin-top: 5px; font-size: .78rem; }
 .flow-step + .flow-step::before { content: '↓'; position: absolute; top: -29px; left: 28px; color: #528ea8; }
 .flow-step-execute::before { color: #83d7b5 !important; }
 .flow-gate-mobile-note { display: block; grid-column: 2; padding: 8px 10px; margin-top: 10px; border-left: 2px solid #a88652; background: #24221c; color: #ddba88; font-size: .74rem; line-height: 1.6; }
 .flow-mobile-approval { display: block; position: absolute; left: 88px; top: -27px; color: #83d7b5; font-size: .72rem; }
 .flow-branch-yes { position: static; display: none; }
 .flow-branch-no, .flow-feedback-label { position: static; transform: none; display: block; margin: 22px 0 0; padding: 12px 17px; border-left: 2px solid #91754f; background: #1b1d1b; font-size: .78rem; }
 .flow-feedback-label { border-color: #427965; background: #0b1c1e; margin-top: 12px; }
 .flow-branch-no { display: none; }
 .operating-flow-note { margin-top: 20px; }
}
@media (max-width: 600px) {
 .architecture-heading { padding: 24px 20px 20px; flex-direction: column; gap: 12px; }
 .architecture-heading h3 { font-size: 1.23rem; }
 .architecture-overline { font-size: .67rem; }
 .architecture-concept { text-align: left; max-width: none; }
 .architecture-legend { padding: 0 20px 22px; font-size: .67rem; gap: 12px; }
 .architecture-legend > span::before { width: 16px; }
 .architecture-stage { padding: 0 18px 22px; }
 .architecture-scenes { gap: 36px; }
 .scene-node { grid-template-columns: 1fr; grid-template-areas: 'index' 'art' 'copy'; padding: 14px 0 26px; }
 .scene-index { justify-content: center; font-size: .62rem; }
 .scene-node > .scene-art { max-width: 360px; justify-self: center; }
 .scene-copy { align-items: center; text-align: center; padding: 14px 8px 0; }
 .scene-copy > strong { font-size: 1.3rem; }
 .scene-description { font-size: .9rem; margin-top: 8px; }
 .scene-tags { font-size: .75rem; }
 .scene-open { margin-top: 14px; font-size: .76rem; }
 .scene-node[aria-pressed="true"]::before { left: 20%; right: 20%; }
 .scene-node + .scene-node::after { top: -32px; }
 .architecture-return { margin: 30px 0 0; padding: 16px; align-items: flex-start; font-size: .72rem; }
 .architecture-return strong { font-size: .89rem; }
 .architecture-return::before { right: -12px; width: 8px; }
 .architecture-mobile-bypass { margin: 0 22px 25px; font-size: .73rem; }
 .architecture-detail-heading { flex-direction: column; gap: 5px; padding: 17px 20px; }
 .architecture-detail-heading > span:last-child { font-size: .7rem; }
 .twin-architecture .twin-layer-detail { padding: 22px 20px; }
 .twin-operating-flow { margin-top: 38px; padding-top: 30px; }
 .operating-flow-heading h3 { font-size: 1.25rem; }
 .operating-flow-lead { font-size: .87rem; }
 .flow-scenario-tag { white-space: normal; font-size: .57rem; }
 .operating-flow-steps { padding: 0; }
 .flow-step { gap: 0 12px; }
 .flow-step strong { font-size: .88rem; }
 .flow-step-detail { font-size: .74rem; }
 .flow-step-index { font-size: .64rem; }
 .hero-pair-link { font-size: .47rem; }
 .hero-pair-scene > span:last-child { font-size: .48rem; }
}
@media (prefers-reduced-motion: reduce) {
 .scene-node > .scene-art { transition: none; }
 .scene-node:hover > .scene-art { transform: none; }
}
