/* ViaMax spatial layer: only the existing homepage surfaces, no simulated data. */
body[data-page="home"] .hero-grid { perspective: 1400px; }
body[data-page="home"] .hero-grid > .reveal:first-child { position: relative; z-index: 2; }
body[data-page="home"] .hero-grid > .reveal:first-child h1 { letter-spacing: -.035em; text-wrap: balance; }
body[data-page="home"] .hero-grid > .reveal:first-child .lede { max-width: 52ch; }
body[data-page="home"] .hero-diagram {
  isolation: isolate;
  border-radius: 18px;
  background: #ffffff;
  border-color: #E4DDD2;
  transform-style: preserve-3d;
}
body[data-page="home"] .hero-diagram svg { transform: perspective(1100px) rotateX(var(--spatial-x, 0deg)) rotateY(var(--spatial-y, 0deg)); transition: transform 320ms ease; }
body[data-page="home"] .hero-diagram::before { opacity: .65; }
body[data-page="home"] .hero-diagram:focus-within, body[data-page="home"] .hero-diagram:hover { border-color: rgba(205,203,202,.8); }
body[data-page="home"] .hero-diagram .node-box { transition: fill 220ms ease, stroke 220ms ease; }
body[data-page="home"] .hero-diagram:hover .node-box { fill: rgba(8,8,8,.72); }
body[data-page="home"] a.btn, body[data-page="home"] button.btn { transition: transform 200ms ease, border-color 200ms ease, background-color 200ms ease, color 200ms ease; }
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
 body[data-page="home"] a.btn:hover, body[data-page="home"] button.btn:hover { transform: translateY(-2px); }
}
@media (max-width: 760px) { body[data-page="home"] .hero-diagram { border-radius: 12px; } }
@media (prefers-reduced-motion: reduce) {
 body[data-page="home"] .hero-diagram svg { transform: none !important; transition: none; }
 body[data-page="home"] a.btn, body[data-page="home"] button.btn { transition: none; }
}
@media (prefers-reduced-transparency: reduce) { body[data-page="home"] .hero-diagram { background: #080808; backdrop-filter: none; } }
@media (forced-colors: active) { body[data-page="home"] .hero-diagram { background: Canvas; border-color: CanvasText; } }

body.spatial-motion-off .hero-diagram svg { transform:none !important; transition:none; }
body.spatial-motion-off a.btn, body.spatial-motion-off button.btn { transform:none !important; transition:none; }

/* A more legible spatial system, not a simulated product dashboard. */
body[data-page="home"] .hero { padding: clamp(62px,8vw,118px) 0 clamp(64px,8vw,112px); }
body[data-page="home"] .hero-grid { grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr); gap:clamp(32px,5vw,80px); align-items:center; }
body[data-page="home"] .hero-grid > .reveal:first-child h1 { font-size:clamp(2.7rem,4.8vw,4.35rem); line-height:1.05; max-width:14ch; margin-bottom:20px; text-transform:none; }
body[data-page="home"] .hero-grid > .reveal:first-child .lede { font-size:clamp(1.05rem,1.25vw,1.2rem); line-height:1.68; max-width:44ch; }
body[data-page="home"] .hero-diagram { padding:clamp(18px,3vw,42px); border-radius:30px; background:radial-gradient(ellipse at 50% 48%,rgba(14,107,79,.08),transparent 55%),#ffffff; border:1px solid #E4DDD2; box-shadow:0 24px 50px rgba(22,26,32,.08); }
body[data-page="home"] .hero-diagram svg { overflow:visible; }
body[data-page="home"] .hero-diagram .spatial-current { stroke-dasharray:15 26; }
body[data-page="home"] .home-doors { gap:1px; background:rgba(205,203,202,.2); border:1px solid rgba(205,203,202,.2); border-radius:24px; overflow:hidden; }
body[data-page="home"] .home-door { min-height:250px; border:0; border-radius:0; padding:32px; background:#ffffff; transition:background-color .2s ease,transform .25s ease,box-shadow .25s ease; }
body[data-page="home"] .home-door h3 { font-size:clamp(1.9rem,2.6vw,2.7rem); letter-spacing:-.01em; }
body[data-page="home"] .home-door:hover,body[data-page="home"] .home-door:focus-visible { background:#ffffff; }
@media(prefers-reduced-motion:no-preference) { body:not(.spatial-motion-off)[data-page="home"] .spatial-current { animation:spatial-current 5s linear infinite; } }
@keyframes spatial-current { to { stroke-dashoffset:-82; } }
@media(max-width:990px) { body[data-page="home"] .hero-grid { grid-template-columns:1fr; } body[data-page="home"] .hero-grid > .reveal:first-child h1 { max-width:unset; } body[data-page="home"] .hero-diagram { width:min(100%,720px); } }
@media(max-width:600px) { body[data-page="home"] .hero { padding:55px 0 64px; } body[data-page="home"] .hero-grid > .reveal:first-child h1 { font-size:clamp(2.3rem,10vw,3.2rem); } body[data-page="home"] .hero-diagram { padding:16px 8px; border-radius:20px; } body[data-page="home"] .home-door { min-height:210px; padding:26px; } }
@media(prefers-reduced-motion:reduce) { body[data-page="home"] .spatial-current,body[data-page="home"] .home-door { animation:none; transition:none; } }
@media(prefers-reduced-transparency:reduce) { body[data-page="home"] .hero-diagram,body[data-page="home"] .home-door { background:#ffffff; backdrop-filter:none; } }
@media(forced-colors:active) { body[data-page="home"] .hero-diagram,body[data-page="home"] .home-door { background:Canvas; border-color:CanvasText; box-shadow:none; } }
body[data-page="home"] .hero-diagram .hero-points { inset:clamp(18px,3vw,42px); }
@media(max-width:600px) { body[data-page="home"] .hero-diagram .hero-points { inset:16px 8px; } }

/* Independent navigation floats in front of the connected-system illustration. */
body[data-page="home"] .hero-diagram { overflow:visible; margin-bottom:34px; }
body[data-page="home"] .spatial-destinations { position:absolute; z-index:4; inset:auto 5% -28px; display:flex; justify-content:center; flex-wrap:wrap; gap:6px; padding:8px; border:1px solid #E4DDD2; border-radius:18px; background:#ffffff; box-shadow:0 16px 36px rgba(22,26,32,.08); }
body[data-page="home"] .spatial-destinations a { flex:1 1 auto; text-align:center; padding:12px 14px; border-radius:11px; color:#1C1915; text-decoration:none; font-weight:600; font-size:.88rem; white-space:nowrap; transition:background-color .2s ease,transform .2s ease; }
body[data-page="home"] .spatial-destinations a:hover,body[data-page="home"] .spatial-destinations a:focus-visible { background:rgba(205,203,202,.16); outline:2px solid #0A0A0A; outline-offset:-2px; }
body[data-page="home"] .home-doors { gap:20px; border:0; background:none; overflow:visible; perspective:1200px; }
body[data-page="home"] .home-door { position:relative; border:1px solid #E4DDD2; border-radius:20px; background:#ffffff; }
body[data-page="home"] .home-door span { margin-top:18px; border-top:1px solid rgba(205,203,202,.22); padding-top:16px; }
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) { body[data-page="home"] .home-door:hover { transform:translateY(-8px); } body[data-page="home"] .spatial-destinations a:hover { transform:translateY(-2px); } }
@media(max-width:600px) { body[data-page="home"] .spatial-destinations { inset:auto 2% -37px; gap:2px; padding:5px; } body[data-page="home"] .spatial-destinations a { font-size:.76rem; padding:10px 7px; } body[data-page="home"] .hero-diagram { margin-bottom:44px; } }
@media(prefers-reduced-motion:reduce) { body[data-page="home"] .spatial-destinations a { transition:none; } }
@media(prefers-reduced-transparency:reduce) { body[data-page="home"] .spatial-destinations,body[data-page="home"] .home-door { background:#ffffff; backdrop-filter:none; } }
@media(forced-colors:active) { body[data-page="home"] .spatial-destinations,body[data-page="home"] .home-door { background:Canvas; border-color:CanvasText; box-shadow:none; } body[data-page="home"] .spatial-destinations a { color:LinkText; } }
/* The illustration is explanatory, not a set of buttons; real links are in the foreground navigation. */
body[data-page="home"] .hero-diagram .hero-points { display:none; }
/* The selected destination is the foreground; the system remains context behind it. */
body[data-page="home"] .spatial-explorer { position:relative; z-index:4; width:min(100%,520px); margin:-18px auto -76px; border:1px solid #E4DDD2; border-radius:23px; background:#ffffff; box-shadow:0 18px 44px rgba(22,26,32,.1); overflow:hidden; }
body[data-page="home"] .spatial-explorer .spatial-destinations { position:static; display:flex; flex-wrap:wrap; gap:4px; padding:8px; border:0; border-radius:0; border-bottom:1px solid rgba(205,203,202,.22); box-shadow:none; background:none; }
body[data-page="home"] .spatial-destinations button { flex:1 1 auto; min-height:44px; border:1px solid transparent; border-radius:12px; padding:9px 12px; background:transparent; color:#1C1915; font:600 .85rem Barlow,sans-serif; cursor:pointer; }
body[data-page="home"] .spatial-destinations button[aria-pressed="true"] { background:rgba(14,107,79,.1); border-color:transparent; color:#000000; }
body[data-page="home"] .spatial-destinations button:hover,body[data-page="home"] .spatial-destinations button:focus-visible { outline:2px solid #0A0A0A; outline-offset:-2px; }
body[data-page="home"] .spatial-explorer-detail { display:grid; grid-template-columns:1fr auto; gap:8px 18px; align-items:center; padding:20px 22px; }
body[data-page="home"] .spatial-explorer-detail strong { font-size:1.25rem; }
body[data-page="home"] .spatial-explorer-detail p { grid-column:1; margin:0; font-size:.9rem; line-height:1.5; }
body[data-page="home"] .spatial-explorer-detail a { grid-column:2; grid-row:1 / span 2; color:#0A0A0A; text-underline-offset:4px; font-size:.85rem; font-weight:700; }
body[data-page="home"] .hero-diagram { margin-bottom:90px; }
@media(max-width:600px) { body[data-page="home"] .spatial-explorer { margin:-10px auto -78px; width:98%; } body[data-page="home"] .spatial-explorer-detail { grid-template-columns:1fr; padding:16px; } body[data-page="home"] .spatial-explorer-detail p,body[data-page="home"] .spatial-explorer-detail a { grid-column:auto; grid-row:auto; } body[data-page="home"] .hero-diagram { margin-bottom:88px; } }
@media(prefers-reduced-transparency:reduce) { body[data-page="home"] .spatial-explorer { background:#ffffff; backdrop-filter:none; } }
@media(forced-colors:active) { body[data-page="home"] .spatial-explorer { background:Canvas; border-color:CanvasText; box-shadow:none; } body[data-page="home"] .spatial-destinations button { color:ButtonText; } body[data-page="home"] .spatial-destinations button[aria-pressed="true"] { border-color:Highlight; } body[data-page="home"] .spatial-explorer-detail a { color:LinkText; } }
