@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;550;600;650&family=Space+Grotesk:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  color-scheme: dark;
  font-size: clamp(16px, calc(13.5px + .24vw), 24px);
  --bg: #070d0e;
  --surface: #0c1517;
  --ink: #e2eeeb;
  --muted: #a2b8b8;
  --faint: #93aaad;
  --line: #294043;
  --line-soft: #1c2d30;
  --mint: #b0edcf;
  --cyan: #70d3d2;
  --orange: #eab68a;
  --sans: 'Inter', 'Segoe UI', sans-serif;
  --display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', Consolas, monospace;
}
:root.larger-type { font-size: clamp(18.4px, calc(15.525px + .276vw), 27.6px); }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 400 1rem/1.6 var(--sans); }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--mint); outline-offset: 5px; }
button:disabled { cursor: default; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 1rem; top: -6rem; z-index: 100; padding: .8rem 1rem; background: var(--surface); border: 1px solid var(--mint); }
.skip:focus { top: 1rem; }
.micro { color: var(--muted); font: max(12px,.65rem)/1.6 var(--mono); letter-spacing: .065em; }
.signal { color: var(--orange); }
.status-dot, .tiny-dot { display: inline-block; width: 5px; height: 5px; background: var(--mint); border-radius: 50%; box-shadow: 0 0 10px #b0edcf60; }
.app { display: grid; grid-template-columns: clamp(17rem,20vw,22rem) minmax(0,1fr); min-height: 100dvh; }

/* Uma coluna editorial enquadra o universo, sem virar uma landing sobre ele. */
.rail { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 1.8rem 1.5rem 1.15rem; border-right: 1px solid var(--line); background: linear-gradient(145deg,#10212166,transparent 55%); }
.rail:before { content: ''; position: absolute; left: -1px; top: 22%; width: 2px; height: 9%; background: linear-gradient(transparent,var(--mint),transparent); }
.brand { display: flex; align-items: center; gap: .8rem; font: 500 1.05rem/1.25 var(--display); letter-spacing: -.035em; }
.brand-mark { position: relative; width: 2.45rem; height: 2.45rem; flex-shrink: 0; display: grid; place-items: center; border: 1px solid #6d9b8b; border-radius: 50%; color: var(--mint); font: 400 2rem/1 var(--display); }
.brand-mark > span { position: absolute; right: -.2rem; top: -.15rem; background: var(--bg); font: .8rem/1 var(--sans); padding: .1rem; }
.brand small { display: block; color: var(--muted); font: max(11px,.58rem)/1.65 var(--mono); margin-top: .35rem; letter-spacing: .04em; }
.rail-intro { margin-top: clamp(2.5rem,6.2vh,5rem); }
.rail-intro .status-dot { margin-right: .5rem; vertical-align: middle; width: 4px; height: 4px; }
.rail-intro > .micro { font-size: max(11px,.6rem); letter-spacing: .045em; }
.rail-intro h1 { margin: 1.15rem 0; font: 400 clamp(2rem,2.65vw,3.15rem)/1.08 var(--display); letter-spacing: -.065em; }
.rail-intro h1 em { color: var(--mint); font-style: normal; }
.rail-intro > p:last-of-type { max-width: 22rem; color: var(--muted); font-size: .9rem; line-height: 1.85; }
.entry-paths { display: none; }
.mode-nav { display: flex; flex-direction: column; gap: .3rem; margin-top: 2.2rem; }
.mode-nav button { position: relative; display: flex; align-items: center; gap: .75rem; width: 100%; padding: .9rem .7rem; background: transparent; border: 1px solid transparent; color: var(--muted); font-size: .95rem; text-align: left; transition: background .18s,border-color .18s,color .18s; }
.mode-nav button:hover { color: var(--ink); background: #b0edcf06; }
.mode-nav button[aria-pressed=true] { color: var(--mint); background: linear-gradient(90deg,#9ddac510,transparent); border-color: #598a763c; }
.mode-nav button[aria-pressed=true]:before { content: ''; position: absolute; left: -1px; top: 24%; height: 52%; width: 2px; background: var(--mint); }
.nav-number { font: .7rem var(--mono); color: var(--faint); }
.mode-nav button[aria-pressed=true] .nav-number { color: var(--mint); }
.nav-glyph { margin-left: auto; font-size: 1rem; }
.rail-bottom { margin-top: auto; padding-top: 2.25rem; }
.proof-note { margin-bottom: 1.4rem; }
.proof-note > .micro { font-size: max(11px,.6rem); letter-spacing: .04em; }
.proof-note > a { display: block; padding: .6rem 0; font-size: .8rem; }
.proof-note > a > span { color: var(--mint); float: right; }
.proof-note small { display: block; color: var(--muted); font-size: max(12px,.65rem); margin-top: .15rem; }
.proof-note > a:hover { color: var(--mint); }
.contact { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .15rem .7rem; border-top: 1px solid var(--line); padding: 1.05rem 0 .7rem; color: var(--mint); font-size: .95rem; }
.contact small { flex-basis: 100%; color: var(--muted); font-size: max(12px,.65rem); }
.contact:hover { color: #d3ffe5; }
.social-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; margin-top: .7rem; color: var(--faint); font: max(11px,.58rem)/1.6 var(--mono); }
.social-links a { color: var(--muted); }
.social-links a:hover { color: var(--mint); }

/* Campo espacial contínuo: o núcleo recebe o maior espaço da tela. */
.workspace { display: flex; flex-direction: column; min-width: 0; padding: 0 1.8rem; background: radial-gradient(ellipse at 47% 48%,#17353320,transparent 57%); }
.topbar { min-height: 4.7rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-bottom: 1px solid var(--line-soft); }
.cortex-wordmark { color: #d2e4df; font: 500 1.35rem/1.1 var(--display); letter-spacing: .27em; }
.cortex-wordmark > span { display: block; margin-top: .35rem; color: var(--faint); font: max(11px,.55rem)/1.5 var(--mono); letter-spacing: .08em; }
.top-actions { display: flex; align-items: center; gap: 1rem; }
.top-actions button { padding: .5rem 0; background: none; border: 0; color: var(--muted); font: .7rem/1.5 var(--sans); white-space: nowrap; }
.top-actions button > span { margin-left: .25rem; }
.top-actions button:hover { color: var(--mint); }
.universe { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 20rem; grid-template-rows: 1fr auto; grid-template-areas: 'scene inspector' 'footer footer'; min-height: calc(100dvh - 7.5rem); flex: 1; isolation: isolate; column-gap: .8rem; }
.universe:before { content: ''; position: absolute; inset: 0; z-index: -2; background-image: radial-gradient(#a3dfc917 .7px,transparent .7px); background-size: 24px 24px; mask-image: radial-gradient(ellipse at 45% 50%,#000,transparent 72%); }
.universe-heading { position: absolute; top: 1.45rem; left: 0; width: min(24rem,calc(100% - 20rem)); z-index: 3; pointer-events: none; }
.universe-heading > .micro { font-size: max(11px,.6rem); }
.universe-heading .signal { font-size: .45rem; margin-right: .35rem; vertical-align: middle; }
.universe-heading h2 { margin-top: .7rem; font: 400 1.75rem/1.15 var(--display); letter-spacing: -.045em; }
.universe-heading h2 > span { color: var(--muted); }
.universe-heading > p:last-child { color: var(--muted); font-size: .75rem; line-height: 1.65; margin-top: .65rem; max-width: 24rem; }
.scene { grid-area: scene; position: relative; min-width: 0; height: 100%; min-height: 40rem; touch-action: pan-y; }
.scene:before { content: ''; position: absolute; inset: 9% -3% 6%; z-index: -1; background: radial-gradient(ellipse,#2c77632b 0,#153e3620 30%,transparent 63%); }
.scene:after { content: 'CORTEX'; position: absolute; left: 50%; top: 52%; transform: translate(-50%,-50%); z-index: -1; font: 500 clamp(4rem,10vw,12rem)/1 var(--display); letter-spacing: -.07em; color: #93d3c006; pointer-events: none; }
.scene canvas { display: block; width: 100%; height: 100%; min-height: inherit; cursor: grab; touch-action: pan-y; mask-image: linear-gradient(transparent,#000 7%,#000 91%,transparent); }
.scene canvas:active { cursor: grabbing; }
.scene-coordinate,.scene-axis { position: absolute; font: max(11px,.58rem)/1.5 var(--mono); color: #91aba889; letter-spacing: .04em; pointer-events: none; }
.coordinate-north { top: 22%; left: 45%; font-size: max(10px,.5rem); color: #92baad77; }
.axis-top { top: 14%; left: 60%; }
.axis-side { top: 57%; left: 1%; writing-mode: vertical-rl; }
.axis-bottom { bottom: 9%; left: 46%; }
.scene-orbit { position: absolute; width: 76%; height: 54%; left: 12%; top: 27%; border: 1px solid #5a9e8720; border-radius: 50%; transform: rotate(-19deg); pointer-events: none; }
.scene-orbit:after { content: ''; position: absolute; inset: 12% -5%; border: 1px solid #5a9e8715; border-radius: 50%; transform: rotate(36deg); }
.scan-line { position: absolute; left: 10%; right: 6%; top: 49%; height: 1px; background: linear-gradient(90deg,transparent,#91d5b91b,transparent); pointer-events: none; }
.reticle { position: absolute; width: 1rem; height: 1rem; border-style: solid; border-color: #8dccb957; pointer-events: none; }
.reticle-tl { left: 7%; top: 25%; border-width: 1px 0 0 1px; }
.reticle-br { right: 6%; bottom: 12%; border-width: 0 1px 1px 0; }
.core-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); display: flex; align-items: center; gap: .5rem; padding: .3rem .55rem; color: #d9fff1; font: max(11px,.62rem)/1.5 var(--mono); letter-spacing: .08em; white-space: nowrap; pointer-events: none; text-shadow: 0 0 15px #a6e9d1; background: radial-gradient(ellipse,#0b201c77,transparent); }
.core-label > span { width: 3px; height: 3px; border: 1px solid #b0edcf80; transform: rotate(45deg); }
.nodes { position: absolute; inset: 0; pointer-events: none; }
.node { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%,-50%); display: flex; align-items: center; gap: .65rem; width: max-content; max-width: 43%; min-height: 3.25rem; padding: .7rem .85rem; pointer-events: auto; background: linear-gradient(120deg,#142522f2,#0c1619f5); border: 1px solid #3e615b; border-radius: 2px; color: #c6dcd5; text-align: left; box-shadow: 0 8px 30px #0005,inset 0 1px #d1ffe609; transition: border-color .18s,background .18s,box-shadow .18s; }
.node:before { content: ''; width: 5px; height: 5px; flex-shrink: 0; border: 1px solid #91c6b3; border-radius: 50%; }
.node .node-name { font: 500 .85rem/1.4 var(--sans); overflow-wrap: anywhere; }
.node small { display: block; font: max(11px,.58rem)/1.6 var(--mono); letter-spacing: .035em; margin-top: .2rem; color: var(--muted); }
.node-arrow { color: var(--muted); font-size: .9rem; margin-left: .3rem; }
.node:hover { border-color: #9ad8bf; box-shadow: 0 6px 35px #7fdeb412; }
.node[aria-current=true] { border-color: #c9aa81; color: #e4f8ed; background: linear-gradient(120deg,#203a2cf2,#14231cf5); box-shadow: 0 0 30px #dfb88012,inset 0 1px #f2dfb314; }
.node[aria-current=true]:before { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 12px #eab68a77; }
.node[aria-current=true] .node-arrow { color: var(--orange); }
.scene-hint { position: absolute; left: 50%; bottom: 1.7rem; transform: translateX(-50%); width: 100%; padding: 0 .8rem; text-align: center; color: var(--muted); font: max(11px,.6rem)/1.7 var(--mono); }
.scene-hint > span { color: var(--mint); font-size: 1rem; margin-right: .4rem; }

/* Um único painel contextual, com uma ação principal. */
.inspector { grid-area: inspector; position: relative; align-self: center; min-width: 0; margin: 8rem 0 3.5rem; border: 1px solid #34544b; background: linear-gradient(140deg,#182d2899,#0d191bf2 48%); box-shadow: 0 20px 70px #0003,inset 0 1px #bcebd30b; }
.inspector:before { content: ''; position: absolute; width: 2rem; height: 2px; top: -1px; left: 1.3rem; background: var(--mint); box-shadow: 0 0 20px #b0edcf30; }
.inspector-header { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .9rem 1.2rem; border-bottom: 1px solid #34544b66; }
.inspector-header .micro { font-size: max(11px,.6rem); letter-spacing: .035em; }
.live-square { width: 4px; height: 4px; background: var(--orange); flex-shrink: 0; }
.inspector-body { display: flex; flex-direction: column; padding: 1.3rem; }
.detail-icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border: 1px solid #69917e88; color: var(--mint); font: 1.5rem var(--display); margin-bottom: 1.25rem; }
.inspector h3 { font: 400 1.85rem/1.12 var(--display); letter-spacing: -.045em; margin-bottom: 1rem; }
.inspector #detail-description { font-size: .9rem; line-height: 1.85; color: #b4c9c4; }
.detail-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.detail-tags span { padding: .25rem .45rem; border: 1px solid #44635780; color: #c1d4c9; font-size: max(12px,.65rem); line-height: 1.5; }
.case-role { border-left: 2px solid var(--mint); padding-left: .7rem; color: var(--mint); font-size: .8rem; line-height: 1.75; margin-top: 1rem; }
.detail-rule,.detail-context-label,.detail-context { display: none; }
.detail-button { align-self: flex-start; background: none; border: 0; border-bottom: 1px solid #719b874d; color: #d1e6dc; padding: .35rem 0; font-size: .85rem; margin-top: 1.3rem; text-align: left; }
.detail-button:hover { color: var(--mint); border-color: var(--mint); }
.inspector-contact { display: block; order: 1; margin-top: 1.1rem; padding: .85rem .9rem; border: 1px solid #b0edcf; color: #0c2318; background: var(--mint); font-size: .85rem; font-weight: 600; line-height: 1.45; }
.inspector-contact:hover { background: #cdf7df; }
.inspector-contact small { display: block; margin-top: .2rem; font-size: max(11px,.6rem); font-weight: 400; color: #234b3b; }
.permalink { align-self: flex-start; order: 2; margin-top: .8rem; font-size: max(12px,.65rem); line-height: 1.5; color: var(--muted); text-decoration: underline; text-underline-offset: .2rem; }
.inspector-foot { border-top: 1px solid #34544b66; padding: .8rem 1.2rem; color: var(--faint); font: max(11px,.56rem)/1.6 var(--mono); letter-spacing: .025em; }
.inspector-foot .tiny-dot { width: 3px; height: 3px; margin-right: .4rem; }
.universe-footer { grid-area: footer; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem; padding: .9rem 0; border-top: 1px solid var(--line-soft); color: var(--faint); font: max(11px,.58rem)/1.5 var(--mono); }
.universe-footer > span:first-child { display: inline-flex; gap: .5rem; align-items: center; }
.universe-footer b { color: var(--mint); font-weight: 400; }
.universe-footer button { border: 0; background: none; color: var(--muted); padding: .3rem 0; font: max(12px,.65rem)/1.5 var(--sans); }
.universe-footer button:hover { color: var(--mint); }
.bottom-bar { min-height: 2.8rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; color: var(--faint); font: max(11px,.56rem)/1.6 var(--mono); }
.bottom-bar .muted { color: #829994; }
.immersive-summary { display: none; }
.immersive .immersive-summary { display: block; color: var(--muted); font-size: .85rem; padding: .75rem 0; border-bottom: 1px solid var(--line-soft); }
.immersive .app { grid-template-columns: 1fr; }
.immersive .rail { display: none; }
.immersive .universe { grid-template-columns: minmax(0,1fr) 22rem; }
.immersive .scene { min-height: 44rem; }
.motion-paused .scan-line { display: none; }

dialog { width: min(52rem,calc(100% - 2rem)); max-height: 86dvh; overflow: auto; padding: 2rem; color: var(--ink); background: linear-gradient(140deg,#172a25,#0c1719 65%); border: 1px solid #67927c; border-radius: 3px; box-shadow: 0 30px 130px #0007; }
dialog::backdrop { background: #020909d9; backdrop-filter: blur(12px); }
.dossier-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1.2rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.dossier-top button { border: 1px solid var(--line); background: none; color: var(--muted); padding: .5rem .8rem; font-size: .8rem; }
dialog h2 { margin: .7rem 0 1.1rem; font: 400 2.4rem/1.1 var(--display); letter-spacing: -.045em; }
.dossier-lead { color: #c8ddd5; font-size: 1.15rem; line-height: 1.8; }
.dossier-grid,.case-evidence { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; margin-top: 1.8rem; }
dialog[data-kind=case] .dossier-grid { display: none; }
.case-evidence { border-block: 1px solid var(--line); padding-block: 1.5rem; }
.dossier-grid h3,.case-evidence h3 { color: var(--mint); font-size: .85rem; font-weight: 500; margin-bottom: .65rem; }
.dossier-grid p,.case-evidence p { color: var(--muted); font-size: .95rem; line-height: 1.85; }
.commercial-entry { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1rem; color: #0c2318; background: var(--mint); border: 1px solid var(--mint); font-size: .9rem; line-height: 1.5; font-weight: 600; }
.dossier-cta { margin-top: 1.8rem; }
.commercial-entry:hover { background: #cdf7df; }
.dossier-bottom { padding-top: 1.2rem; margin-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.dossier-bottom a { text-decoration: underline; text-underline-offset: .2rem; }
.noscript { padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); }
.noscript a { color: var(--mint); text-decoration: underline; }

@media (min-width: 2400px) {
  .rail { padding: 2rem; }
  .workspace { padding-inline: 2.5rem; }
  .universe { grid-template-columns: minmax(0,1fr) 23rem; }
  .universe-heading { width: 29rem; }
  .universe-heading h2 { font-size: 2.1rem; }
  .node .node-name { font-size: 1rem; }
  .node small { font-size: .7rem; }
  .inspector #detail-description { font-size: 1rem; }
  .inspector h3 { font-size: 2.15rem; }
  .inspector-contact,.detail-button { font-size: .95rem; }
}
@media (max-width: 1450px) {
  .app { grid-template-columns: 17rem minmax(0,1fr); }
  .rail { padding-inline: 1.1rem; }
  .workspace { padding-inline: 1.25rem; }
  .universe { grid-template-columns: minmax(0,1fr) 17rem; }
  .universe-heading { width: min(22rem,calc(100% - 17rem)); }
  .universe-heading h2 { font-size: 1.6rem; }
  .top-actions button > span { display: none; }
  .top-actions button { font-size: 1rem; }
  .scene { min-height: 39rem; }
  .node { padding: .65rem .6rem; gap: .4rem; }
  .node .node-name { font-size: .8rem; }
  .node small { font-size: 11px; }
  .inspector-body { padding: 1rem; }
  .inspector h3 { font-size: 1.7rem; }
  .footer-signature { display: none; }
}
@media (max-width: 1100px) {
  .app { grid-template-columns: 1fr; }
  .rail { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 1rem; padding: 1.2rem 1.5rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .rail:before,.proof-note,.social-links { display: none; }
  .brand { align-self: start; }
  .rail-intro { grid-column: 1/-1; grid-row: 2; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 2rem; align-items: center; }
  .rail-intro > .micro { display: none; }
  .rail-intro h1 { margin: .25rem 0; font-size: 2.2rem; }
  .rail-intro h1 br { display: none; }
  .rail-intro > p:last-of-type { max-width: none; font-size: .9rem; }
  .mode-nav { grid-column: 1/-1; grid-row: 3; flex-direction: row; margin-top: .4rem; gap: .4rem; }
  .mode-nav button { flex: 1; width: auto; padding: .65rem .8rem; }
  .rail-bottom { grid-column: 2; grid-row: 1; padding: 0; margin: 0; }
  .contact { border-top: 0; padding: 0; gap: .25rem .75rem; }
  .contact small { font-size: 11px; }
  .workspace { padding-inline: 1.5rem; }
  .universe { min-height: 43rem; grid-template-columns: minmax(0,1fr) 19rem; }
  .scene { min-height: 40rem; }
  .universe-heading { width: min(22rem,calc(100% - 19rem)); }
}
@media (max-width: 760px) {
  :root { font-size: 16px; }
  :root.larger-type { font-size: 18.4px; }
  .rail { padding: 1.1rem 1rem; gap: 1rem; }
  .brand { font-size: 1.05rem; gap: .65rem; }
  .brand small { font-size: 10px; }
  .brand-mark { width: 2.2rem; height: 2.2rem; font-size: 1.8rem; }
  .rail-bottom { align-self: center; }
  .contact { font-size: .8rem; }
  .contact small { font-size: 10px; }
  .rail-intro { display: block; }
  .rail-intro h1 { font-size: 2rem; max-width: 21rem; margin: .2rem 0 .65rem; }
  .rail-intro h1 br { display: initial; }
  .rail-intro > p:last-of-type { font-size: .95rem; line-height: 1.75; }
  .entry-paths { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
  .entry-paths button { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex: 1 1 45%; min-width: 0; padding: .65rem; background: #b0edcf07; border: 1px solid #4c7563; color: var(--mint); text-align: left; font-size: .85rem; }
  .entry-paths button[aria-pressed=true] { border-color: var(--mint); background: #b0edcf12; }
  .path-label small { display: none; }
  .mode-nav { margin-top: 0; gap: .25rem; }
  .mode-nav button { font-size: .9rem; padding: .65rem .5rem; gap: .55rem; }
  .nav-glyph { display: none; }
  .workspace { padding-inline: 1rem; }
  .topbar { min-height: 4.3rem; }
  .cortex-wordmark { font-size: 1.1rem; letter-spacing: .21em; }
  .cortex-wordmark > span { font-size: 9px; max-width: 12rem; }
  .top-actions { gap: .9rem; }
  .top-actions button { min-height: 44px; }
  .universe,.immersive .universe { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; grid-template-areas: 'heading' 'scene' 'inspector' 'footer'; min-height: 0; }
  .universe-heading { grid-area: heading; position: relative; width: 100%; top: auto; left: auto; padding-top: 1.2rem; }
  .universe-heading > .micro { font-size: 11px; }
  .universe-heading h2 { font-size: 1.45rem; margin-top: .6rem; }
  .universe-heading h2 br { display: none; }
  .universe-heading h2 > span:before { content: ' '; }
  .universe-heading > p:last-child { font-size: .8rem; margin-top: .5rem; }
  .scene,.immersive .scene { height: 25rem; min-height: 25rem; }
  .scene canvas { height: 100%; min-height: 0; }
  .scene-coordinate,.scene-axis,.scene-orbit,.reticle { display: none; }
  .core-label { font-size: 10px; letter-spacing: .035em; gap: .2rem; }
  .node { max-width: 45%; padding: .6rem .5rem; gap: .4rem; min-height: 3.25rem; }
  .node .node-name { font-size: .85rem; line-height: 1.4; }
  .node small { font-size: 12px; letter-spacing: 0; line-height: 1.5; }
  .node-arrow { display: none; }
  .scene-hint { bottom: .4rem; font-size: 10px; }
  .inspector { margin: .7rem 0 1.25rem; }
  .inspector-header { padding: .8rem 1rem; }
  .inspector-header .micro { font-size: 11px; }
  .inspector-body { padding: 1.1rem; }
  .detail-icon { display: none; }
  .inspector h3 { font-size: 1.8rem; margin-bottom: .8rem; }
  .inspector #detail-description { font-size: 1rem; }
  .detail-tags span { font-size: 12px; }
  .detail-button { font-size: .95rem; padding-block: .5rem; }
  .inspector-contact { font-size: 1rem; padding: 1rem; }
  .inspector-contact small { font-size: 12px; }
  .permalink { font-size: 12px; }
  .inspector-foot { font-size: 10px; }
  .universe-footer { font-size: 10px; }
  .bottom-bar { font-size: 9px; min-height: 3rem; }
  .bottom-bar .muted { display: none; }
  dialog { padding: 1.25rem; }
  dialog h2 { font-size: 2rem; }
  .dossier-top .micro { font-size: 10px; }
  .dossier-grid,.case-evidence { grid-template-columns: 1fr; gap: 1.3rem; }
  .dossier-lead { font-size: 1.05rem; }
  .dossier-grid p,.case-evidence p { font-size: 1rem; }
}
@media (max-width: 480px) {
  .brand { grid-column: 1/-1; }
  .rail-bottom { grid-column: 1/-1; grid-row: 4; }
  .contact { font-size: .9rem; }
  .contact small { flex-basis: auto; margin-left: auto; font-size: 11px; }
  .entry-paths button { flex-basis: 100%; min-height: 44px; }
  .mode-nav button { font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) { *,*:before,*:after { animation: none !important; transition: none !important; } }

/* Cada legenda é um link sobre uma região da malha, não um cartão em órbita. */
.node { padding: .35rem .5rem; min-height: 2.4rem; max-width: 30%; gap: .3rem; background: #071713b8; border-color: #78ac9655; box-shadow: 0 2px 14px #0004; }
.node .node-name { font-size: .8rem; }
.node small { font-size: max(11px,.56rem); }
.node[aria-current=true] { background: #222c1ee8; border-color: var(--orange); }
.core-label { font-size: max(10px,.55rem); top: 50%; }
.permalink { display: none; }
.site-pages { position: relative; margin-top: .6rem; color: var(--muted); font-size: .75rem; }
.site-pages summary { cursor: pointer; padding: .4rem 0; }
.site-pages nav { position: absolute; z-index: 15; bottom: 2.5rem; left: 0; width: min(23rem,85vw); max-height: 60dvh; overflow: auto; padding: .8rem; border: 1px solid var(--line); background: #0d1d1c; box-shadow: 0 8px 30px #0008; }
.site-pages a { display: block; padding: .5rem; font-size: .85rem; }
.site-pages a:hover { color: var(--mint); }
/* Altura real da janela, sem mínimos fixos que forcem a rolagem da home. */
@media (min-width: 1101px) and (min-height: 640px) {
  html, body { height: 100%; }
  .app { height: 100dvh; min-height: 0; overflow: clip; }
  .rail { height: 100%; min-height: 0; overflow-y: auto; }
  .rail-intro { margin-top: clamp(1rem,3vh,2.5rem); }
  .rail-intro h1 { font-size: clamp(1.8rem,2.3vw,2.9rem); margin-block: .8rem; }
  .mode-nav { margin-top: 1.25rem; }
  .rail-bottom { padding-top: 1rem; }
  .workspace { display: grid; grid-template-rows: 4rem minmax(0,1fr) 2rem; height: 100dvh; min-height: 0; }
  .topbar { min-height: 0; grid-row: 1; }
  .universe { grid-row: 2; min-height: 0; grid-template-rows: minmax(0,1fr) 2.5rem; overflow: clip; }
  .scene, .immersive .scene { height: 100%; min-height: 0; }
  .scene canvas { height: 100%; min-height: 0; }
  .bottom-bar { grid-row: 3; min-height: 0; font-size: max(11px,.56rem); }
  .inspector { margin: 4.5rem 0 .75rem; max-height: calc(100% - 5.25rem); overflow-y: auto; }
  .inspector-body { padding: 1rem; }
  .detail-icon { margin-bottom: .7rem; }
  .inspector h3 { font-size: 1.65rem; }
  .universe-heading { top: 1rem; }
  .universe-heading h2 { font-size: 1.5rem; }
  .universe-heading > p:last-child { display: none; }
  .immersive .workspace { grid-template-rows: 4rem auto minmax(0,1fr) 2rem; }
  .immersive .immersive-summary { grid-row: 2; }
  .immersive .universe { grid-row: 3; }
  .immersive .bottom-bar { grid-row: 4; }
}
@media (min-width: 1101px) and (max-height: 850px) {
  .proof-note { display: none; }
  .rail-intro > .micro { display: none; }
  .rail-intro > p:last-of-type { font-size: .85rem; line-height: 1.65; }
  .mode-nav button { padding-block: .65rem; }
  .inspector-foot { display: none; }
  .detail-icon { display: none; }
  .detail-tags { margin-top: .5rem; }
}
@media (max-width: 760px) {
  .node { max-width: 33%; padding: .4rem; }
  .node .node-name { font-size: 12px; }
  .node small { display: none; }
  .site-pages { grid-column: 1/-1; }
  .scene-hint { font-size: 11px; padding-inline: 1rem; }
}

/* Lateral compacta: links de cases já estão em Projetos e Páginas do site. */
@media (min-width: 1101px) {
  .rail { padding-block: clamp(.75rem,1.6vh,1.35rem); }
  .proof-note { display: none; }
  .rail-intro { margin-top: clamp(.8rem,2.5vh,1.8rem); }
  .rail-intro h1 { font-size: clamp(1.75rem,4.4vh,2.55rem); margin-block: .65rem; }
  .rail-intro > p:last-of-type { line-height: 1.65; }
  .mode-nav { margin-top: clamp(.75rem,2vh,1.25rem); gap: .15rem; }
  .mode-nav button { padding-block: .65rem; min-height: 44px; }
  .rail-bottom { padding-top: .65rem; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .3rem .75rem; align-items: start; }
  .contact { margin: 0; padding: .65rem 0 .3rem; border: 0; font-size: .85rem; }
  .contact small { font-size: max(11px,.6rem); }
  .site-pages { margin-top: .45rem; font-size: max(11px,.65rem); }
  .site-pages nav { left: auto; right: 0; bottom: 100%; }
  .social-links { grid-column: 1/-1; margin-top: .35rem; padding-top: .6rem; border-top: 1px solid var(--line-soft); }
}
@media (min-width: 1101px) and (max-height: 740px) {
  .rail-intro { margin-top: .65rem; }
  .rail-intro > .micro { display: none; }
  .rail-intro h1 { font-size: 1.7rem; margin-block: .45rem; }
  .rail-intro > p:last-of-type { font-size: .85rem; line-height: 1.55; }
  .mode-nav { margin-top: .65rem; }
  .mode-nav button { padding-block: .4rem; }
  .rail-bottom { padding-top: .3rem; }
}
/* Rodada pós-publicação: painel direito ancorado no topo, sem saltar conforme o conteúdo. */
@media (min-width: 1101px) { .inspector { align-self: start; } }
/* Captura real do projeto no inspetor (docs/equipe-screenshots.md). */
.detail-shot { display: block; margin: -.25rem 0 1rem; border: 1px solid #34544b; background: #0b1416; }
.detail-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: min(18dvh, 11rem); object-fit: cover; object-position: top; }
.detail-shot:hover { border-color: var(--mint); }
.contact-alt { display: block; margin-top: .45rem; color: var(--muted); font-size: .78rem; text-decoration: underline; text-decoration-color: #93aaad55; text-underline-offset: 3px; }
.contact-alt:hover { color: var(--mint); }
.inspector .contact-alt { order: 1; align-self: flex-start; }
.rail-bottom .contact-alt { grid-column: 1 / -1; order: 1; margin: 0 0 .2rem; }
.rail-bottom .social-links { order: 2; }
@media (max-width: 1100px) { .rail .contact-alt { display: none; } }
