/* Platform page — connected-system diagram + tabbed portal showcase */
.diagram-wrap { position: relative; }
.diagram { width: 100%; height: auto; }
.diagram .node-box { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.5; }
.diagram .node-label { font-family: var(--font-sans); font-weight: 600; font-size: 16px; fill: var(--text); }
.diagram .link { stroke: var(--accent); stroke-width: 1.6; fill: none; opacity: .4; stroke-dasharray: 5 7; }
.diagram .hub { fill: var(--accent); }
.diagram .hub-t { font-family: var(--font-display); font-size: 20px; fill: #fff; font-weight: 600; }
html[data-theme="dark"] .diagram .hub-t { fill: #1a0f0a; }
.diagram .hub-s { font-family: var(--font-mono); font-size: 11px; fill: rgba(255,255,255,.85); }
html[data-theme="dark"] .diagram .hub-s { fill: rgba(20,12,8,.7); }
.diagram .dot { fill: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .diagram .link { animation: flow 2.4s linear infinite; }
}
@keyframes flow { to { stroke-dashoffset: -48; } }
.diagram-note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 1rem; }

/* tabbed showcase */
.showcase { display: grid; grid-template-columns: 260px 1fr; gap: clamp(1.4rem, 3vw, 2.6rem); align-items: start; }
.tabs { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 90px; }
.tab { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; text-align: left; color: var(--text-2); font-weight: 600; font-size: .95rem; transition: .2s; border: 1px solid transparent; }
.tab:hover { background: var(--surface-2); color: var(--text); }
.tab.on { background: var(--surface); border-color: var(--line); color: var(--text); box-shadow: var(--shadow-sm); }
.tab .ti { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); flex: none; transition: .2s; }
.tab.on .ti { background: var(--accent-tint); color: var(--accent); }
.tab .ti svg { width: 18px; height: 18px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.6rem); box-shadow: var(--shadow-md); min-height: 420px; }
.panel__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 2.6rem); align-items: center; }
.panel .num { font-family: var(--font-mono); color: var(--accent); font-size: .82rem; letter-spacing: .1em; }
.panel h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.1; margin: .5rem 0 .35rem; }
.panel .role-sub { display: block; color: var(--accent); font-style: italic; font-family: var(--font-display); font-size: 1.15rem; }
.panel p.desc { color: var(--text-2); margin: 1rem 0 1.2rem; }
.panel .talks { margin-top: 1.4rem; font-size: .82rem; color: var(--muted); }
.panel .talks b { color: var(--text-2); }

/* generic portal preview window */
.pv { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg-deep); box-shadow: var(--shadow-md); }
.pv__bar { display: flex; align-items: center; gap: 7px; padding: 9px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.pv__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.pv__bar span { margin-left: 8px; font-family: var(--font-mono); font-size: .7rem; color: var(--muted); }
.pv__body { padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 130px; }
.pv__body img {
  width: 100%;
  height: auto;
  display: block;
}
.pv-row { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; font-size: .82rem; }
.pv-row .lead { width: 30px; height: 30px; border-radius: 7px; background: var(--accent-tint); flex: none; }
.pv-row b { font-weight: 600; }
.pv-row .right { margin-left: auto; font-family: var(--font-mono); color: var(--muted); font-size: .74rem; }
.pv-chip { display: inline-flex; padding: 3px 9px; border-radius: 99px; font-size: .72rem; font-weight: 600; }

@media (max-width: 860px) {
  .showcase { grid-template-columns: 1fr; }
  .tabs { flex-direction: row; overflow-x: auto; position: static; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .tab { flex: none; }
  .tab span.tlabel { white-space: nowrap; }
  .panel__grid { grid-template-columns: 1fr; }
}
