/* Homepage 2.0.1 — shared nodes, connectors and motion states. */
.rdl-icon { display: block; width: 32px; height: 32px; flex: none; }
.diagram { position: relative; isolation: isolate; }
.diagram-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: -1; }
.diagram-lines path { fill: none; stroke: var(--teal-dark); stroke-width: 1.25; opacity: .52; vector-effect: non-scaling-stroke; }
.section--dark .diagram-lines path { stroke: var(--teal); opacity: .38; }
.diagram-lines .flow-line { stroke: var(--amber); stroke-width: 1.7; opacity: .9; }
.diagram-lines .signal { stroke: var(--teal); stroke-width: 3; opacity: 0; stroke-dasharray: 12 88; stroke-dashoffset: 100; }
.diagram-lines .signal.is-active { opacity: 1; }
.diagram-lines .port { fill: var(--teal-dark); stroke: var(--ivory); stroke-width: 2; }
.section--dark .diagram-lines .port { fill: var(--teal); stroke: var(--navy-deep); }
.diagram-node { position: relative; display: flex; gap: 11px; align-items: center; padding: 14px; color: var(--ink); background: var(--paper); border: 1px solid #bbd7da; border-radius: 13px; box-shadow: 0 5px 18px #07192308; }
.diagram-node__icon { display: grid; place-items: center; color: var(--teal-dark); flex: none; }
.diagram-node strong { display: block; font-size: .86rem; line-height: 1.25; font-weight: 780; }
.diagram-node small { display: block; margin-top: 7px; font-size: .76rem; line-height: 1.4; color: var(--muted); }
.diagram-hub { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; color: var(--white); background: var(--navy); border: 1px solid var(--amber); border-radius: 20px; }
.diagram-hub strong { display: block; font-size: 1rem; line-height: 1.2; }
.diagram-hub small { display: block; color: #dfebed; font-size: .78rem; line-height: 1.4; }
.hub-mark { color: var(--amber); }
.diagram-kicker { margin: 0 0 8px; font-size: .65rem; font-weight: 850; letter-spacing: .15em; color: var(--teal-dark); }
.diagram-caption { margin: 15px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.45; text-align: center; }
.motion-control { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 8px 13px; border: 1px solid currentColor; border-radius: 7px; background: transparent; color: var(--teal-dark); font-size: .75rem; font-weight: 750; cursor: pointer; }
.motion-control[hidden] { display: none !important; }
.motion-control:hover { background: #35c4d110; }
.section--dark .motion-control { color: #9bdae0; }
.hero__visual { position: absolute; inset: 0; }
.hero__inner { pointer-events: none; }
.hero__copy { pointer-events: auto; }
.hero-system { position: absolute; z-index: 2; right: max(24px, calc((100% - 1180px) / 2)); bottom: 24px; width: min(470px, 40%); }
.hero-map { height: 228px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 62px 1fr 62px; column-gap: 22px; }
.hero-node { justify-content: center; flex-direction: column; gap: 5px; padding: 8px 4px; background: #091f2ff5; color: var(--ivory); border-color: #41727f; border-radius: 12px; box-shadow: 0 8px 24px #0003; }
.hero-node .diagram-node__icon { color: #8cdee5; }
.hero-node .rdl-icon { width: 25px; height: 25px; }
.hero-node strong { font-size: .73rem; white-space: nowrap; }
.hero-node--4, .hero-node--5, .hero-node--6 { grid-row: 3; }
.hero-node--4 { grid-column: 1; }
.hero-node--5 { grid-column: 2; }
.hero-node--6 { grid-column: 3; }
.hero-hub { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 7px; padding: 9px 12px; color: var(--ivory); background: var(--navy-deep); border: 1px solid var(--amber); border-radius: 24px; white-space: nowrap; }
.hero-hub strong { font-size: .72rem; line-height: 1.3; }
.hero-hub .rdl-icon { width: 20px; height: 20px; color: var(--amber); }
.hero-map .diagram-lines path { stroke: #70c6d1; opacity: .75; }
.hero-map .diagram-lines .signal { stroke: #c3fbff; opacity: 0; filter: drop-shadow(0 0 4px #35c4d1); }
.hero-map .diagram-lines .signal.is-active { opacity: 1; }
.hero-map .diagram-lines .port { fill: var(--teal); stroke: var(--navy-deep); filter: drop-shadow(0 0 3px #35c4d1); }
.hero-map[data-motion-phase="0"] .port--0, .hero-map[data-motion-phase="1"] .port--1,
.hero-map[data-motion-phase="2"] .port--2, .hero-map[data-motion-phase="3"] .port--3,
.hero-map[data-motion-phase="4"] .port--4, .hero-map[data-motion-phase="5"] .port--5 { fill: #d7ffff; filter: drop-shadow(0 0 6px #35c4d1); }
.hero-map .hero-node.is-active { border-color: var(--teal); box-shadow: 0 0 0 1px #35c4d155, 0 0 22px #35c4d13d; }
.hero-system .motion-control { display: flex; margin: 14px auto 0; color: #b9e7eb; background: #071923ed; }
/* Keep control space stable when reduced-motion or JavaScript hides the button. */
.hero-system { padding-bottom: 58px; }
.hero-system .motion-control { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); white-space: nowrap; }
@media (max-width: 1100px) and (min-width: 821px) {
 .hero-map { column-gap: 16px; height: 208px; }
}
@media (max-width: 820px) {
 .hero__visual { position: relative; inset: auto; order: 2; width: 100%; }
 .hero__visual .hero__media { position: relative; display: block; height: auto; aspect-ratio: 1448 / 1086; }
 .hero__visual .hero__media img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
 .hero__visual .hero__shade { background: linear-gradient(180deg, #07192330, transparent 25%, #07192320); }
 .hero-system { top: 18%; left: 24px; right: auto; bottom: auto; width: 42%; }
 .hero-map { column-gap: 12px; height: 228px; }
 .hero-node strong { font-size: .66rem; }
 .hero-node .rdl-icon { width: 23px; height: 23px; }
}
@media (max-width: 640px) {
 .hero__visual .hero__media { aspect-ratio: 940 / 1672; }
 .hero-system { top: 22px; left: 24px; width: calc(100% - 48px); }
 .hero-map { height: 206px; }
 .hero-node strong { font-size: .72rem; }
}
.comparison { width: 100%; display: grid; gap: 18px; }
.comparison__panel { padding: 22px; background: #fffdf8; border: 1px solid var(--line); border-radius: var(--radius); }
.comparison__panel h3 { margin: 0; font-size: 1.05rem; letter-spacing: -.02em; line-height: 1.3; }
.comparison__panel--after { border-color: #8cbfc5; box-shadow: 0 12px 35px #0b22330a; }
.comparison__panel .motion-control { display: flex; margin: 12px auto 0; }
.comparison-map { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 22px; }
.comparison-node { justify-content: center; flex-direction: column; gap: 7px; padding: 12px 6px; text-align: center; }
.comparison-node strong { font-size: .76rem; }
.comparison-node[data-node="content"] .diagram-node__icon, .comparison-node[data-node="data"] .diagram-node__icon { color: var(--amber-dark); }
.comparison__panel--after .comparison-map { grid-template-columns: 1fr 1.3fr 1fr; grid-template-rows: repeat(3,76px); column-gap: 26px; row-gap: 12px; }
.comparison__panel--after .comparison-node { grid-column: 1; }
.comparison__panel--after .comparison-node--1 { grid-row: 1; }
.comparison__panel--after .comparison-node--2 { grid-row: 2; }
.comparison__panel--after .comparison-node--3 { grid-row: 3; }
.comparison__panel--after .comparison-node--4 { grid-column: 3; grid-row: 1; }
.comparison__panel--after .comparison-node--5 { grid-column: 3; grid-row: 2; }
.comparison__panel--after .comparison-node--6 { grid-column: 3; grid-row: 3; }
.comparison-map .diagram-hub { position: relative; grid-column: 2; grid-row: 2; margin: -7px -7px; border-radius: 14px; }
.comparison-map .diagram-hub strong { font-size: .72rem; }
.comparison-map .hub-mark .rdl-icon { width: 26px; height: 26px; }
.ecosystem .two-columns { grid-template-columns: minmax(0,.72fr) minmax(0,1.28fr); gap: 60px; }
.ecosystem-visual { min-width: 0; }
.ecosystem-diagram { width: 100%; height: 650px; }
.ecosystem-node { position: absolute; width: 30%; min-height: 108px; padding: 13px 11px; flex-direction: column; align-items: flex-start; gap: 8px; }
.ecosystem-node .rdl-icon { width: 28px; height: 28px; }
.ecosystem-node strong { font-size: .8rem; }
.ecosystem-node small { font-size: .71rem; }
.section--dark .ecosystem-node { color: var(--white); background: #0c2839; border-color: #326572; box-shadow: none; }
.section--dark .ecosystem-node__icon, .section--dark .diagram-node__icon { color: #7bd6dd; }
.section--dark .diagram-node small { color: #c0d0d8; }
.ecosystem-node--3 { left: 35%; top: 0; }
.ecosystem-node--1 { left: 0; top: 19%; }
.ecosystem-node--2 { left: 0; top: 47%; }
.ecosystem-node--5 { left: 0; bottom: 0; }
.ecosystem-node--7 { left: 35%; bottom: 0; }
.ecosystem-node--6 { right: 0; bottom: 0; }
.ecosystem-node--8 { right: 0; top: 47%; }
.ecosystem-node--4 { right: 0; top: 19%; }
.ecosystem-diagram .diagram-hub { left: 34%; top: 41%; width: 32%; height: 155px; padding: 12px 8px; background: #102e40; }
.orchestration-layer { position: absolute; left: 31%; top: 36%; width: 38%; height: 225px; border: 1px dashed #35c4d175; border-radius: 28px; }
.orchestration-layer > span { position: absolute; top: 12px; left: 0; right: 0; text-align: center; font-size: .58rem; letter-spacing: .1em; color: #97d9df; font-weight: 800; }
.example-flow { margin-top: 28px; padding: 18px 0; border-top: 1px solid #ffffff25; }
.example-flow .diagram-kicker { color: #9ddde2; }
.example-flow ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 7px; color: #ffdb9f; font-size: .84rem; font-weight: 750; }
.example-flow li:not(:last-child)::after { content: '→'; margin-left: 8px; color: #7bd6dd; }
.example-flow > p:last-child { margin: 0; color: #c0d0d8; font-size: .78rem; }
.intervention-grid::before { display: none; } /* Decorative line crossed the staggered cards. */
.intervention-card__icon { width: 56px; height: 56px; }
.method-path { padding-top: 8px; }
.method-list { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 22px; }
.method-list::before { display: none; }
.method-list li { padding: 0; min-width: 0; }
.method-marker { position: relative; display: flex; align-items: center; gap: 12px; width: fit-content; min-height: 56px; margin-bottom: 25px; background: var(--navy-deep); border-radius: 28px; }
.method-list__number { position: relative; margin: 0; width: 50px; height: 50px; border: 1px solid #55949c; background: #183e4c; color: #bcebf0; }
.method-list li:nth-child(even) .method-list__number { background: #183e4c; }
.method-marker > .rdl-icon { width: 26px; height: 26px; margin-right: 10px; color: #a2ced6; }
.method-list h3 { font-size: .76rem; letter-spacing: .015em; overflow-wrap: anywhere; }
.method-list p { min-height: 74px; color: #c0d0d8; }
.method-list small { font-size: .72rem; line-height: 1.4; }
.method-controls { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.profile__grid { grid-template-columns: 1fr 1.05fr; gap: 70px; }
.profile-visual { min-width: 0; }
.profile-map { width: 100%; max-width: 530px; height: 420px; margin: 0 auto 22px; }
.profile-petal { position: absolute; width: 65%; height: 65%; border-radius: 50%; border: 1px solid #87bec2; background: #35c4d115; }
.profile-petal--1 { left: 0; top: 0; }
.profile-petal--2 { right: 0; top: 0; background: #35c4d10d; }
.profile-petal--3 { left: 0; bottom: 0; background: #8499b215; }
.profile-petal--4 { right: 0; bottom: 0; background: #f2b85b20; border-color: #dbb478; }
.profile-node { position: absolute; width: 43%; flex-direction: column; padding: 13px 8px; text-align: center; gap: 9px; background: #fffdf8ed; box-shadow: none; }
.profile-node--1 { left: 0; top: 5%; }
.profile-node--2 { right: 0; top: 5%; }
.profile-node--3 { left: 0; bottom: 5%; }
.profile-node--4 { right: 0; bottom: 5%; }
.profile-map .diagram-hub { left: 50%; top: 50%; transform: translate(-50%,-50%); width: 186px; min-height: 115px; padding: 16px; }
.profile-quote { padding: 8px 0 8px 20px; font-size: 1.05rem; line-height: 1.5; }
.diagram [data-node].is-active { border-color: var(--amber); box-shadow: 0 0 0 3px #35c4d122,0 0 18px #35c4d129; }
.diagram [data-node].is-complete { border-color: #56a4ae; }
.method-list li.is-complete .method-list__number, .method-list li.is-active .method-list__number { background: var(--teal); color: var(--navy-deep); border-color: var(--teal); }
.method-list li.is-active .method-marker { box-shadow: 0 0 18px #35c4d126; }
.method-list li.is-active h3 { color: #ffdb9f; }
.profile-map.is-complete .diagram-hub { border-color: var(--amber); box-shadow: 0 0 24px #f2b85b1c; }
.profile-map.motion-enabled:not(.is-complete) .profile-node { opacity: .65; transition: opacity .6s ease; }
.profile-map.motion-enabled .profile-node.is-active, .profile-map.motion-enabled .profile-node.is-complete { opacity: 1; }
.profile-map.motion-enabled:not(.is-complete) .profile-petal { opacity: .45; transition: opacity .6s ease; }
.diagram-lines .flow-line { opacity: .55; }
.diagram[data-paused="true"] .signal { opacity: 0; }
/* Static fallback connections are replaced by measured SVG paths when JS runs. */
.method-path:not(.has-connectors) .method-list li:not(:last-child)::after { content: ''; position: absolute; z-index: -1; left: 45px; top: 28px; width: calc(100% + 22px); height: 1px; background: #35c4d160; }
.comparison-map:not([data-diagram])::before { display: none; }
@media (min-width: 1600px) { .ecosystem-diagram { height: 680px; } }
@media (max-width: 1100px) {
 .ecosystem .two-columns { grid-template-columns: 1fr; }
 .ecosystem-visual { width: min(680px,100%); margin-inline: auto; }
 .profile__grid { gap: 38px; }
 .method-list { gap: 15px; }
}
@media (max-width: 1024px) {
 .comparison { grid-template-columns: 1fr 1fr; align-items: start; }
 .comparison-map { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .comparison__panel:not(.comparison__panel--after) .comparison-map { min-height: 252px; }
 .comparison__panel--after .comparison-map { column-gap: 16px; grid-template-columns: 1fr 1.25fr 1fr; }
 .method-list { grid-template-columns: repeat(5,minmax(0,1fr)); row-gap: 0; }
 .method-marker { gap: 5px; }
 .method-marker > .rdl-icon { width: 22px; margin-right: 6px; }
 .profile__grid { grid-template-columns: 1fr; }
 .profile-visual { width: min(550px,100%); margin-inline: auto; }
}
@media (max-width: 820px) {
 /* Reserve the existing portrait's display box before its pixels arrive. */
 .hero__media { width: 100%; height: calc(100vw / 1.7); flex: none; }
}
@media (max-width: 640px) {
 .hero__media { height: calc(100vw / 1.35); }
}
@media (max-width: 720px) {
 .comparison { grid-template-columns: 1fr; }
 .comparison__panel { padding: 20px 18px; }
 .comparison-map { grid-template-columns: repeat(3,minmax(0,1fr)); }
 .comparison__panel:not(.comparison__panel--after) .comparison-map { min-height: auto; }
 .comparison__panel--after .comparison-map { column-gap: 20px; grid-template-columns: 1fr 1.3fr 1fr; }
 .ecosystem-diagram { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-left: 23px; }
 .orchestration-layer { left: 0; top: 8px; width: 100%; height: 106px; border-radius: 20px; }
 .orchestration-layer > span { top: 8px; }
 .ecosystem-diagram .diagram-hub { position: relative; left: auto; top: auto; grid-column: 1/-1; width: 100%; height: 82px; margin: 30px 0 12px; flex-direction: column; gap: 5px; }
 .ecosystem-diagram .hub-mark { display: none; }
 .ecosystem-node { position: relative; inset: auto !important; width: 100%; min-height: 145px; padding: 14px 11px; }
 .ecosystem-node strong { font-size: .82rem; }
 .ecosystem-node small { font-size: .75rem; }
 .ecosystem-diagram:not(.has-connectors)::before { left: 8px; top: 78px; bottom: 70px; }
 .ecosystem-diagram:not(.has-connectors) { grid-template-columns: 1fr; }
 .ecosystem-diagram:not(.has-connectors) .static-lines { display: none; }
 .ecosystem-diagram:not(.has-connectors)::before { content: ''; position: absolute; width: 1px; background: #35c4d160; }
 .ecosystem-diagram:not(.has-connectors) .ecosystem-node::before { content: ''; position: absolute; width: 16px; height: 1px; background: #35c4d160; left: -16px; top: 50%; }
 .method-list { grid-template-columns: 1fr; padding-left: 0; gap: 28px; }
 .method-list li { padding-left: 78px; min-height: 142px; }
 .method-marker { position: absolute; left: 0; top: 0; width: 52px; flex-direction: column; gap: 8px; background: var(--navy-deep); padding-bottom: 10px; margin: 0; }
 .method-list__number { position: relative; left: auto; top: auto; width: 48px; height: 48px; }
 .method-marker > .rdl-icon { margin: 0; width: 24px; height: 24px; }
 .method-list h3 { font-size: .85rem; }
 .method-list p { min-height: 0; }
 .method-list small { font-size: .75rem; }
 .method-path:not(.has-connectors) .method-list li:not(:last-child)::after { left: 25px; top: 30px; width: 1px; height: calc(100% + 28px); }
 .intervention-grid { padding-left: 0; }
 .intervention-card { grid-template-columns: 56px minmax(0,1fr); }
 .profile-map { height: 380px; }
 .profile-node strong { font-size: .79rem; }
 .profile-map .diagram-hub { width: 170px; min-height: 110px; }
}
@media (prefers-reduced-motion: reduce) {
 .diagram-lines .signal { display: none; }
 .motion-control { display: none !important; }
 .profile-map .profile-node, .profile-map .profile-petal { opacity: 1 !important; }
}
