body:has(.spatial-stage) .site-header { background:#080f16; color:#f2f7fa; }
body:has(.spatial-stage) #site-nav { --nav-ink:#d4e1e9; --nav-active:#b0f1df; --nav-hover:#b0f1df12; --nav-action:#b0f1df; --nav-action-ink:#10262a; }
body:has(.spatial-stage) .wordmark:focus-visible {outline:3px solid #b0f1df;outline-offset:5px;}
body:has(.spatial-stage) #main, body:has(.spatial-stage) .site-footer { transition:opacity .18s var(--ease); }
body:has(.spatial-stage).menu-departure #main,body:has(.spatial-stage).menu-departure .site-footer {opacity:0;}
html.menu-arrival body:has(.spatial-stage) #main, html.menu-arrival body:has(.spatial-stage) .site-footer {animation:menu-page-arrival .38s var(--ease) backwards;}
@keyframes menu-page-arrival {from{opacity:0}to{opacity:1}}
.spatial-hero { position: relative; isolation: isolate; background: #080f16; color: #f3f8fc; overflow: clip; min-height: 610px; }
.spatial-world,.spatial-atmosphere { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.spatial-atmosphere { background: linear-gradient(180deg,transparent 65%,#080f16 100%); }
.spatial-fallback { position: absolute; inset: 0; pointer-events: none; background: #030509; }
.spatial-fallback i { position: absolute; left: 52%; top: 27%; width: 34px; height: 80px; background: #fff6dc; box-shadow: 0 4px 24px #fff3c8a0,0 30px 70px #dfb77750; }
[data-renderer="webgl"] .spatial-fallback { visibility: hidden; }
[data-renderer="fallback"] .spatial-world { visibility: hidden; }
.spatial-content { position: relative; z-index: 1; padding-top: 35px; padding-bottom: 28px; }
.spatial-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; margin-bottom: 120px; }
.spatial-heading h1 { font-size: clamp(38px,4.3vw,62px); line-height: 1.16; letter-spacing: -.04em; font-weight: 600; }
.spatial-intro { max-width: 450px; padding-bottom: 3px; }
.spatial-intro p { color: #c0ced9; font-size: 16px; line-height: 1.8; }
.spatial-intro strong { color: #f3f8fc; font-weight: 550; }
.spatial-intro a { display: inline-flex; align-items: center; gap: 18px; margin-top: 18px; font-size: 14px; color: #bcebdc; min-height: 34px; }
.spatial-intro svg,.portal-arrow svg { width: 22px; height: 22px; }
.spatial-portals { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; perspective: 1300px; padding: 8px 0 14px; }
.spatial-portal { position: relative; display: block; min-width: 0; height: 300px; border: 1px solid #a6c7d450; border-radius: 28px; background: #14232e; overflow: hidden; isolation: isolate; transform: rotateX(3deg) rotateY(var(--portal-ry,0deg)) translateY(var(--portal-y,0px)); box-shadow: 0 22px 36px #0006,inset 0 1px 0 #e5ffff4a; transition: transform .55s cubic-bezier(.16,1,.3,1),border-color .4s,box-shadow .4s; }
.spatial-interaction { --portal-ry: 7deg; --portal-y: 7px; }
.spatial-experience { --portal-y: -5px; }
.spatial-service { --portal-ry: -7deg; --portal-y: 7px; }
.portal-image { position: absolute; inset: 0; overflow: hidden; }
.portal-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.16,1,.3,1); }
.spatial-interaction img { object-position: 50% 20%; }
.spatial-experience img { object-position: 50% 65%; }
.spatial-service img { object-position: 75% 50%; }
.portal-glass { position: absolute; inset: 0; background: linear-gradient(180deg,#07131a05 0%,#08121c28 28%,#07111bea 77%); box-shadow: inset 0 1px 0 #ffffff4d,inset 1px 0 0 #ffffff1a; border-radius: inherit; }
.portal-copy { position: absolute; left: 25px; right: 22px; bottom: 25px; }
.portal-copy h2 { font-size: clamp(27px,2.6vw,36px); font-weight: 600; line-height: 1.3; letter-spacing: -.035em; }
.portal-copy p { margin-top: 8px; color: #d5e0e9; font-size: 14px; line-height: 1.6; }
.portal-copy > span { display: block; margin-top: 14px; padding-right: 35px; font-size: 13px; color: #b9d7d1; }
.portal-arrow { position: absolute; bottom: 22px; right: 22px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #a2c7cf70; border-radius: 50%; background: #bde6df14; }
.spatial-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 27px; font-size: 13px; color: #a9bfcd; }
.spatial-motion { min-height: 44px; padding: 8px 16px; color: #d6e7ef; background: #1c2b34; border: 1px solid #627989; border-radius: 25px; font-size: 13px; }
.spatial-hero a:focus-visible,.spatial-motion:focus-visible { outline: 3px solid #b0f1df; outline-offset: 5px; }
.spatial-hero + .portfolio-section { padding-top: 76px; }
@media(hover:hover) { .spatial-portal:hover { transform: rotateX(0) rotateY(0) translateY(-10px); border-color: #baf5e6; box-shadow: 0 30px 45px #0009,inset 0 1px 0 #fff8; } .spatial-portal:hover img { transform: scale(1.08); } }
@media(max-width:980px) { .spatial-heading { gap: 25px; } .spatial-heading h1 { font-size: 43px; } .spatial-intro { max-width: 290px; } .spatial-desktop-break { display:none; } .spatial-portals { gap: 14px; } .spatial-portal { height: 285px; border-radius: 22px; } .portal-copy { left: 17px; right: 15px; } .portal-copy p { min-height: 44px; } .portal-copy h2 { font-size: 27px; } .portal-copy > span { max-width: 165px; } }
@media(max-width:700px) { .spatial-hero { min-height: 0; } .spatial-content { padding-top: 22px; padding-bottom: 22px; } .spatial-heading { display: block; margin-bottom: 24px; } .spatial-heading h1 { font-size: clamp(32px,8vw,44px); } .spatial-intro { max-width: 100%; margin-top: 18px; } .spatial-intro p { font-size: 14px; } .spatial-intro a { margin-top: 8px; } .spatial-portals { grid-template-columns: 1fr; gap: 14px; perspective: none; padding: 0; } .spatial-portal { height: 132px; transform: none; border-radius: 21px; } .portal-image { left: 48%; } .portal-glass { background: linear-gradient(90deg,#101f2c 12%,#101f2cf5 43%,#101f2c25 100%); } .portal-copy { top: 17px; bottom: 15px; left: 20px; right: 50px; } .portal-copy h2 { font-size: 27px; } .portal-copy p { font-size: 13px; margin-top: 5px; min-height: 0; } .portal-copy > span { font-size: 13px; margin-top: 7px; max-width: none; } .portal-arrow { right: 15px; bottom: 16px; width: 30px; height: 30px; } .spatial-bottom { margin-top: 18px; align-items: flex-start; gap: 12px; } .spatial-bottom p { max-width: 170px; line-height: 1.7; } .spatial-motion { white-space: nowrap; padding: 8px 12px; } .spatial-hero + .portfolio-section { padding-top: 48px; } }
@media(prefers-reduced-motion:reduce) { .spatial-portal,.portal-image img { transition: none; transform: none!important; } }

.portal-product { display: inline-block; white-space: nowrap; }
.portal-copy { word-break: keep-all; }

@media(max-width:700px) { .spatial-heading { margin-bottom:120px; } .spatial-portal { height:112px; } .spatial-fallback i { top:28%; left:63%; width:23px; height:55px; } }

/* The reference is an architectural light corridor, not a doorway vignette. */
.spatial-hero { min-height:690px; }
.spatial-atmosphere { background:linear-gradient(90deg,#02070d96 0%,transparent 48%),linear-gradient(180deg,#03080c65 0%,transparent 34%,#080f16dd 100%); }
.spatial-heading { margin-bottom:185px; }
.spatial-portal { height:195px; background:#091724; }
.portal-image { left:42%; opacity:.8; }
.portal-glass { background:linear-gradient(90deg,#0b1b29 7%,#0b1b29df 45%,#0b1b294a 100%); }
.portal-copy { left:24px; bottom:23px; }
.portal-copy h2 { font-size:32px; }
.portal-copy p { max-width:240px; }
.spatial-fallback { perspective:600px; overflow:hidden; background:radial-gradient(ellipse at 50% 40%,#07394a 0%,#03080d 55%); }
.spatial-fallback i,.spatial-fallback::before,.spatial-fallback::after { content:'';position:absolute;left:15%;top:4%;width:70%;height:85%;background:none;border:2px solid #37cde57a;box-shadow:0 0 16px #21bad53a,inset 0 0 16px #21bad53a; }
.spatial-fallback::before { transform:translateZ(-160px); }
.spatial-fallback::after { transform:translateZ(-400px); }
@media(max-width:980px) and (min-width:701px) { .spatial-portal { height:205px; } .portal-copy { left:17px; } .portal-copy h2 { font-size:27px; } .portal-image { left:25%;opacity:.6; } }
@media(max-width:700px) { .spatial-hero { min-height:0; } .spatial-heading { margin-bottom:130px; } .spatial-portal { height:112px; } .portal-image { left:48%;opacity:.8; } .portal-copy { left:20px;top:17px;bottom:15px; } .portal-copy h2 { font-size:27px; } .portal-copy p { max-width:none; } .spatial-fallback i { left:15%;top:4%;width:70%;height:85%; } }
.spatial-atmosphere { background:linear-gradient(90deg,#02070d66 0%,transparent 48%),linear-gradient(180deg,#03080de0 0%,#03080d55 31%,transparent 55%,#080f16dd 100%); }

/* Quiet fixed world: content owns the foreground; the corridor only guides. */
body:has(.spatial-stage) { background:#04090f; }
.spatial-stage { position:fixed; inset:0; z-index:0; pointer-events:none; overflow:hidden; }
body:has(.spatial-stage) #main,body:has(.spatial-stage) .site-footer { position:relative;z-index:1; }
.spatial-hero { background:transparent;min-height:650px; }
.spatial-atmosphere { background:linear-gradient(180deg,#02070d88,transparent 45%,#03080d55); }
.spatial-heading { margin-bottom:70px; }
.spatial-portal { height:275px;background:#14212b;border:1px solid #d2e6ed59;box-shadow:0 22px 45px #0009,inset 0 1px 0 #ffffff3b; }
.portal-image { inset:0;opacity:1; }
.portal-glass { background:linear-gradient(180deg,#07121a05 5%,#08131d22 30%,#08131de6 70%,#08131d 100%); }
.portal-copy { bottom:24px;left:24px;right:24px; }
.portal-copy h2 { font-size:34px;color:#fff; }
.portal-copy p { color:#e1ebf2;max-width:100%; }
.portal-copy>span { color:#c6ded8; }
.portal-arrow { background:#e6f6f2; color:#10241f; border-color:#f1fffb; }
body:has(.spatial-stage) #main>section:not(.spatial-hero) { width:calc(100% - 96px); max-width:1440px; margin:48px auto; border-radius:30px; overflow:hidden;box-shadow:0 20px 50px #0005; }
body:has(.spatial-stage) .portfolio-section { padding-top:48px;padding-bottom:48px;background:#f7f9fa; }
body:has(.spatial-stage) .site-footer { background:#080f16;color:#c9d9e2; }
body:has(.spatial-stage) .site-footer a { color:#e1edf5; }
.spatial-fallback i,.spatial-fallback::before,.spatial-fallback::after { border-width:1px;border-color:#31859a38;box-shadow:none; }
@media(max-width:980px) and (min-width:701px) { .spatial-portal { height:275px; } .portal-image { inset:0;opacity:1; } .portal-copy { left:17px;right:17px; } .portal-copy h2 { font-size:28px; } body:has(.spatial-stage) #main>section:not(.spatial-hero) { width:calc(100% - 48px); } }
@media(max-width:700px) { .spatial-hero { min-height:0; } .spatial-heading { margin-bottom:45px; } .spatial-portal { height:132px; } .portal-image { left:48%;opacity:1; } .portal-glass { background:linear-gradient(90deg,#101e2b 10%,#101e2bf0 47%,#101e2b22 100%); } .portal-copy { top:17px;bottom:15px;left:20px;right:45px; } .portal-copy h2 { font-size:27px; } body:has(.spatial-stage) #main>section:not(.spatial-hero) { width:calc(100% - 28px); margin:28px auto;border-radius:22px; } body:has(.spatial-stage) .portfolio-section { padding:28px 18px; } }

body:has(.spatial-stage) .site-footer .footer-details { color:#adc1ce; }
body:has(.spatial-stage) .portfolio-section { padding-inline:48px; }
@media(max-width:980px) and (min-width:701px) { body:has(.spatial-stage) .portfolio-section { padding-inline:32px; } .capabilities-section .section-heading { grid-template-columns:1fr;gap:18px; } }
@media(max-width:700px) { body:has(.spatial-stage) .portfolio-section { padding-inline:18px; } }

@media(max-width:980px) and (min-width:701px) { .capabilities-section .section-heading { display:grid;grid-template-columns:1fr;gap:18px; } }

/* Complete entrance viewport; following sections remain in natural document flow. */
.spatial-hero { min-height:max(650px,calc(100svh - 112px));display:flex;align-items:center; }
.spatial-fallback { background:#03080d; }
.spatial-fallback i,.spatial-fallback::before,.spatial-fallback::after { box-shadow:0 0 18px #2c9fb721,inset 0 0 18px #2c9fb721; }
@media(max-width:700px) { .spatial-hero { min-height:calc(100svh - 86px); } }

/* User-requested full-screen section paging, with native scrolling for long panels. */
html:has(.spatial-hero) {
  --page-header:112px;
  scroll-snap-type:y mandatory;
  scroll-padding-top:calc(var(--page-header) + 24px);
  scroll-padding-bottom:24px;
}
body:has(.spatial-hero) #main>section { scroll-snap-align:start;scroll-snap-stop:always; }
/* Match both 24px snap-port insets so the full-height hero has no internal scroll range. */
.spatial-hero { scroll-margin-top:-24px;scroll-margin-bottom:-24px; }
body:has(.spatial-hero) #main>section:not(.spatial-hero) {
  min-height:calc(100svh - var(--page-header) - 48px);
  margin-block:24px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
body:has(.spatial-hero) .site-footer { scroll-snap-align:end; }
@media(max-width:700px) { html:has(.spatial-hero) { --page-header:86px; } }
@media(prefers-reduced-motion:reduce) { html:has(.spatial-hero) { scroll-behavior:auto;scroll-snap-type:y proximity; } }

/* A shared three-column grid aligns the introduction with the product cards. */
.spatial-hero { align-items:stretch;min-height:calc(100svh - 112px); }
.spatial-content {
  min-height:inherit;
  display:grid;
  grid-template-rows:auto auto 1fr;
  row-gap:clamp(60px,6svh,96px);
  padding-top:clamp(32px,7svh,112px);
  padding-bottom:clamp(24px,4svh,64px);
}
.spatial-heading { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:start;margin-bottom:0; }
.spatial-heading h1 { grid-column:1 / 3; }
.spatial-intro { grid-column:3;max-width:none;padding-top:8px; }
.spatial-portals { align-self:start; }
.spatial-portal { height:clamp(250px,34svh,360px);--portal-y:0px;transform:none; }
.spatial-bottom { margin-top:0;align-self:end; }
@media(hover:hover) { .spatial-portal:hover { transform:translateY(-6px); } }
@media(min-width:701px) and (max-height:760px) {
  .spatial-content { row-gap:24px;padding-block:24px; }
  .spatial-portal { height:230px; }
}
@media(max-width:980px) and (min-width:701px) {
  .spatial-heading { grid-template-columns:1.25fr 1fr;gap:32px; }
  .spatial-heading h1 { grid-column:1; }
  .spatial-intro { grid-column:2; }
  .spatial-portal { height:clamp(260px,32svh,330px); }
}
@media(max-width:700px) {
  .spatial-hero { min-height:calc(100svh - 86px); }
  .spatial-content { padding-top:28px;padding-bottom:28px;row-gap:28px; }
  .spatial-heading { grid-template-columns:1fr;gap:16px; }
  .spatial-heading h1,.spatial-intro { grid-column:1; }
  .spatial-intro { margin-top:0;padding-top:0; }
  .spatial-portal { height:132px; }
  .spatial-bottom p { max-width:none; }
}

/* Keep the entrance a single balanced composition instead of a bottom-anchored footer. */
.spatial-content { grid-template-rows:auto auto auto;align-content:center;row-gap:0; }
.spatial-heading { margin-bottom:clamp(36px,5svh,80px); }
.spatial-portals { margin-bottom:24px; }
.spatial-bottom { align-self:start; }
@media(min-width:981px) and (min-height:1100px) {
  .spatial-portal { height:clamp(360px,32svh,480px); }
  .spatial-heading h1 { font-size:clamp(62px,4.3vw,76px); }
}
@media(min-width:701px) and (max-height:760px) { .spatial-heading { margin-bottom:24px; } }
@media(max-width:700px) { .spatial-heading { margin-bottom:28px; } }

/* The same dark spatial material continues through the remaining home sections. */
body:has(.spatial-hero) #main>section:not(.spatial-hero) {
  --showcase-ink:#edf5fb;
  --showcase-muted:#c6d5e1;
  --showcase-border:rgba(156,195,216,.25);
  --secondary:#c6d5e1;
  color:#edf5fb;
  background:linear-gradient(135deg,rgba(23,42,57,.88),rgba(6,15,24,.94));
  border:1px solid rgba(156,195,216,.23);
  box-shadow:0 24px 64px #0009,inset 0 1px 0 #d8f2ff1c;
  backdrop-filter:blur(10px);
}
body:has(.spatial-hero) .showcase-card {
  background:#101f2c;
  color:#edf5fb;
  border-color:#86aac444;
  box-shadow:0 16px 32px #0005,inset 0 1px 0 #e5f6ff17;
}
body:has(.spatial-hero) .showcase-description,
body:has(.spatial-hero) .showcase-meta { color:#c6d5e1; }
body:has(.spatial-hero) .showcase-soulmaps { background:#18273c; }
body:has(.spatial-hero) .business-secondary,
body:has(.spatial-hero) .business-jump a { color:#eaf4fb;background:#1d3445b3;border:1px solid #89afc52e; }
body:has(.spatial-hero) .business-secondary:hover { background:#29485c; }
body:has(.spatial-hero) .business-secondary>p,
body:has(.spatial-hero) .business-jump span,
body:has(.spatial-hero) .section-heading>p,
body:has(.spatial-hero) .capability-item>p,
body:has(.spatial-hero) .company-preview .prose,
body:has(.spatial-hero) .cta-band p { color:#c6d5e1; }
body:has(.spatial-hero) .capability-item .text-link,
body:has(.spatial-hero) .company-preview .text-link { color:#bcebdc; }
body:has(.spatial-hero) .preview-control { color:#e5f7f4;background:#1e3b47;border-color:#91b6bd66; }
body:has(.spatial-hero) .preview-control:hover { background:#305968; }
body:has(.spatial-hero) .showcase-card:focus-within { outline-color:#b0f1df; }
body:has(.spatial-hero) .cta-band .button { background:#e6f6f2;color:#102b26;border-color:#d4f4ea; }

/* Product details inherit the same fixed space, with opaque-enough reading surfaces. */
.product-detail { --secondary:#c6d5e1;--ink:#edf5fb;--surface:#07141e;color:#edf5fb;padding:24px 0 56px; }
.product-detail>.container { width:calc(100% - 96px);max-width:1440px; }
.product-detail>.container:first-child,
.product-note,
.product-detail .soulmaps-directions,
.product-detail .product-closing,
.product-related>div>a {
  background:linear-gradient(135deg,rgba(23,42,57,.94),rgba(6,15,24,.97));
  border:1px solid #9cc3d83b;
  border-radius:26px;
  box-shadow:0 20px 44px #0007,inset 0 1px 0 #d8f2ff1c;
}
.product-detail>.container:first-child { padding:30px 36px 36px; }
.product-back { margin-top:0;color:#c6d5e1; }
.product-intro { gap:48px;padding:32px 0 0; }
.product-category { color:#bad4d7; }
.product-intro-copy>p+p,.product-note>p,.product-points ul { color:#c6d5e1; }
.product-actions .text-link,.product-closing .text-link,.direction-engine .text-link { color:#bcebdc; }
.product-detail .product-visual { margin:28px auto; }
.product-figure { background:#101f2c;border:1px solid #9cc3d83b;border-radius:26px;overflow:hidden;box-shadow:0 20px 44px #0006; }
.product-figure .image-zoom { border-radius:0;background:#07141e; }
.product-figure .zoom-hint { color:#19303e;background:#fff; }
.product-figure figcaption { padding:16px 22px;color:#c6d5e1;font-size:14px; }
.product-detail .product-notes { display:grid;gap:20px;padding:0;margin:28px auto; }
.product-note { padding:30px 32px;gap:48px; }
.product-note+.product-note { margin-top:0; }
.product-detail .product-closing { padding:36px;margin:28px auto;gap:48px; }
.product-related { margin:28px auto 0;padding-bottom:0; }
.product-related>div { gap:18px; }
.product-related>div>a { padding:22px 24px;border-radius:22px; }
.product-related a span>span { color:#c6d5e1; }
.product-related>div>a:hover { border-color:#b0f1df; }
.product-detail .soulmaps-directions { padding:32px;margin:28px auto; }
.product-detail .direction-grid { gap:32px; }
.product-detail a:focus-visible,.product-detail button:focus-visible { outline:3px solid #b0f1df;outline-offset:5px; }
@media(max-width:980px) {
  .product-detail>.container { width:calc(100% - 48px); }
  .product-intro,.product-note,.product-detail .product-closing { gap:28px; }
}
@media(max-width:700px) {
  .product-detail { padding-top:18px; }
  .product-detail>.container { width:calc(100% - 28px); }
  .product-detail>.container:first-child,.product-note,.product-detail .product-closing,.product-detail .soulmaps-directions { padding:24px 22px;border-radius:22px; }
  .product-intro { padding-top:24px;gap:20px; }
  .product-note,.product-detail .product-closing { grid-template-columns:1fr;gap:18px; }
  .product-related>div { grid-template-columns:1fr;gap:12px; }
  .product-related>div>a { padding:20px 22px; }
  .product-figure figcaption { padding:14px 18px; }
}

/* Company and inquiry flow share the spatial material without changing form behavior. */
.spatial-information #main {
  --ink:#edf5fb;--secondary:#c6d5e1;--surface:#10212f;--error:#ffb0bd;--accent:#b0f1df;
  color:#edf5fb;padding-bottom:28px;color-scheme:dark;
}
.spatial-information #main>section {
  width:calc(100% - 96px);max-width:1440px;margin:24px auto;padding:36px;
  background:linear-gradient(135deg,rgba(23,42,57,.94),rgba(6,15,24,.97));
  border:1px solid #9cc3d83b;border-radius:26px;
  box-shadow:0 20px 44px #0007,inset 0 1px 0 #d8f2ff1c;
}
.spatial-information #main>.page-intro { padding:40px 36px; }
.spatial-information .page-intro h1 { font-size:clamp(28px,3.8vw,54px); }
.spatial-information .page-intro .lead { color:#c6d5e1;font-size:clamp(18px,2vw,24px); }
.spatial-information .feature-item { background:transparent;border:0;padding:24px 0; }
.spatial-information dl .feature-item { border-bottom:1px solid #8faec233; }
.spatial-information .prose p { max-width:60ch; }
.spatial-information .feature-list { gap:20px 40px; }
.spatial-information dl.feature-list { gap:0; }
.spatial-information dd { margin:0;overflow-wrap:anywhere; }
.spatial-information .product-links { display:grid;grid-template-columns:1fr 1fr;gap:16px; }
.spatial-information .product-link {
  display:grid;grid-template-columns:1fr auto;gap:6px 20px;
  padding:20px 22px;background:#122a3a;border:1px solid #91b5ce38;border-radius:20px;
}
.spatial-information .product-link>span,.spatial-information .product-link>strong { grid-column:1; }
.spatial-information .product-link>strong { font-size:23px;font-weight:550; }
.spatial-information .product-link>svg { grid-column:2;grid-row:1 / 3;align-self:center; }
.spatial-information .product-link:hover { border-color:#b0f1df; }
.spatial-information .product-link span { color:#c6d5e1; }
.spatial-information .form-layout { gap:clamp(28px,5vw,72px); }
.spatial-information .contact-context p,:is(.spatial-information,.home-inquiry) .form-note { color:#c6d5e1; }
.spatial-information .contact-context a,:is(.spatial-information,.home-inquiry) .form-note a { color:#bcebdc;text-decoration:underline; }
:is(.spatial-information,.home-inquiry) .field input,:is(.spatial-information,.home-inquiry) .field select,
:is(.spatial-information,.home-inquiry) .field textarea,:is(.spatial-information,.home-inquiry) textarea[data-inquiry-output] {
  color:#edf5fb;background:#081a28;border:1px solid #829eb2;border-radius:12px;caret-color:#b0f1df;
}
:is(.spatial-information,.home-inquiry) .field input::placeholder,:is(.spatial-information,.home-inquiry) .field textarea::placeholder { color:#b5c8d6;opacity:1; }
:is(.spatial-information,.home-inquiry) .field select option { color:#edf5fb;background:#10212f; }
:is(.spatial-information,.home-inquiry) .field input:hover,:is(.spatial-information,.home-inquiry) .field select:hover,:is(.spatial-information,.home-inquiry) .field textarea:hover { border-color:#b6d2e3; }
:is(.spatial-information,.home-inquiry) .field [aria-invalid=true] { border-color:#ffb0bd; }
.spatial-information #main :focus-visible { outline:3px solid #b0f1df;outline-offset:4px; }
:is(.spatial-information,.home-inquiry) .button { color:#102b26;background:#e6f6f2;border-color:#d4f4ea; }
:is(.spatial-information,.home-inquiry) .button:hover { background:#cceee2; }
:is(.spatial-information,.home-inquiry) .button-secondary { color:#e5f7f4;background:#1e3b47;border-color:#91b6bd; }
:is(.spatial-information,.home-inquiry) .button-secondary:hover { background:#305968; }
.spatial-information .cta-band p { color:#c6d5e1; }
@media(max-width:980px) {
  .spatial-information #main>section { width:calc(100% - 48px);padding:30px; }
  .spatial-information #main>.page-intro { padding:34px 30px; }
}
@media(max-width:700px) {
  .spatial-information #main>section { width:calc(100% - 28px);padding:24px 22px;margin-block:18px;border-radius:22px; }
  .spatial-information #main>.page-intro { padding:28px 22px; }
  .spatial-information .product-links { grid-template-columns:1fr;gap:12px; }
  .spatial-information .product-link { padding:18px; }
  .spatial-information .feature-list { gap:12px; }
  .spatial-information .form-layout { grid-template-columns:1fr;gap:32px; }
}

/* Category catalogues keep their original media and content inside clear spatial cards. */
:is(.spatial-category,.spatial-catalogue) .category-page {
  --ink:#edf5fb;--secondary:#c6d5e1;--surface:#10212f;
  width:calc(100% - 96px);max-width:1440px;padding:24px 0 56px;color:#edf5fb;
}
:is(.spatial-category,.spatial-catalogue) .product-back { color:#c6d5e1;margin-bottom:20px; }
:is(.spatial-category,.spatial-catalogue) .product-intro,:is(.spatial-category,.spatial-catalogue) .project {
  background:linear-gradient(135deg,rgba(23,42,57,.94),rgba(6,15,24,.97));
  border:1px solid #9cc3d83b;border-radius:26px;
  box-shadow:0 20px 44px #0007,inset 0 1px 0 #d8f2ff1c;
}
:is(.spatial-category,.spatial-catalogue) .product-intro { padding:32px 36px;gap:48px; }
:is(.spatial-category,.spatial-catalogue) .product-intro-copy { max-width:60ch; }
:is(.spatial-category,.spatial-catalogue) .category-gallery { margin-top:28px;gap:28px;align-items:stretch; }
:is(.spatial-category,.spatial-catalogue) .project { overflow:hidden;display:flex;flex-direction:column;transition:border-color .25s; }
:is(.spatial-category,.spatial-catalogue) .project:hover { border-color:#a9dace; }
:is(.spatial-category,.spatial-catalogue) .project-media { height:clamp(260px,28vw,420px);aspect-ratio:auto;border-radius:0;flex-shrink:0; }
:is(.spatial-category,.spatial-catalogue) .project-media-soulmaps { color:#19303e; }
:is(.spatial-category,.spatial-catalogue) .service-wordmark>span { color:#46586b; }
:is(.spatial-category,.spatial-catalogue) .project-media-type { background:#102a3a;color:#edf5fb; }
:is(.spatial-category,.spatial-catalogue) .project-caption { padding:26px 28px;margin:0;flex:1;display:flex;flex-direction:column; }
:is(.spatial-category,.spatial-catalogue) .project-description { flex:1;display:flex;flex-direction:column;align-items:flex-start; }
:is(.spatial-category,.spatial-catalogue) .project-description>p { margin-bottom:16px; }
:is(.spatial-category,.spatial-catalogue) .project-description .text-link { color:#bcebdc;margin-top:auto; }
:is(.spatial-category,.spatial-catalogue) #main a:focus-visible { outline:3px solid #b0f1df;outline-offset:5px; }
:is(.spatial-category,.spatial-catalogue) .project-media:focus-visible { outline-offset:-6px!important; }
@media(max-width:980px) {
  :is(.spatial-category,.spatial-catalogue) .category-page { width:calc(100% - 48px); }
  :is(.spatial-category,.spatial-catalogue) .product-intro { padding:28px;gap:28px; }
  :is(.spatial-category,.spatial-catalogue) .project-caption { padding:24px; }
}
@media(max-width:700px) {
  :is(.spatial-category,.spatial-catalogue) .category-page { width:calc(100% - 28px);padding-top:18px; }
  :is(.spatial-category,.spatial-catalogue) .product-intro { grid-template-columns:1fr;padding:24px 22px;gap:18px;border-radius:22px; }
  :is(.spatial-category,.spatial-catalogue) .category-gallery { grid-template-columns:1fr;gap:20px;margin-top:20px; }
  :is(.spatial-category,.spatial-catalogue) .project { border-radius:22px; }
  :is(.spatial-category,.spatial-catalogue) .project-media { height:260px; }
  :is(.spatial-category,.spatial-catalogue) .project-caption { padding:22px; }
}

/* The home now presents each business area as its own full-height catalogue. */
body.spatial-catalogue:has(.spatial-hero) #main>section.catalogue-section {
  position:relative;background:none;border:0;box-shadow:none;padding:0;overflow:visible;
}
.spatial-catalogue .catalogue-section .category-page { width:100%;padding:0; }
.spatial-catalogue .catalogue-anchor { position:absolute;top:0;left:0; }
.spatial-catalogue .catalogue-section .product-intro { padding:24px 28px;gap:36px; }
.spatial-catalogue .catalogue-section .product-intro>h2 { font-size:clamp(28px,3vw,42px); }
.spatial-catalogue .catalogue-section .product-back { margin-bottom:12px; }
.spatial-catalogue .catalogue-section .category-gallery { margin-top:20px;gap:24px; }
.spatial-catalogue .catalogue-section .project-media { height:clamp(160px,27svh,340px); }
.spatial-catalogue .project-heading h3 { font-size:29px;font-weight:550;line-height:1.3; }
.spatial-catalogue .catalogue-section .project-caption { padding:22px 26px; }
.spatial-catalogue .catalogue-section .project-description { margin-top:14px; }
.spatial-catalogue .catalogue-education .category-gallery { grid-template-columns:1fr; }
.spatial-catalogue .catalogue-education .project { display:grid;grid-template-columns:1.2fr 1fr;align-items:stretch; }
.spatial-catalogue .catalogue-education .project-media { height:clamp(280px,38svh,440px); }
.spatial-catalogue .catalogue-education .project-caption { justify-content:center; }
.spatial-catalogue .catalogue-education .project-description { flex:0; }
.spatial-catalogue #capabilities { padding-block:clamp(32px,6svh,72px); }
@media(max-width:700px) {
  .spatial-catalogue .catalogue-section .product-intro { padding:24px 22px;gap:18px; }
  .spatial-catalogue .catalogue-section .project-media { height:240px; }
  .spatial-catalogue .catalogue-section .project-caption { padding:22px; }
  .spatial-catalogue .catalogue-education .project { display:flex; }
  .spatial-catalogue .catalogue-education .project-media { height:320px; }
}

/* Real company information and the shared inquiry form live in the scroll sequence. */
.spatial-catalogue .company-full { display:grid;grid-template-columns:1fr 1fr;gap:clamp(32px,6vw,88px);align-items:start; }
.spatial-catalogue .company-story h2 { font-size:clamp(28px,3vw,42px); }
.spatial-catalogue .company-story p { margin-top:24px;max-width:60ch;color:#c6d5e1;line-height:1.85; }
.spatial-catalogue .company-story .company-lead { color:#edf5fb;font-size:20px;line-height:1.7; }
.spatial-catalogue .company-facts h3 { font-size:24px; }
.spatial-catalogue .company-facts .feature-list { grid-template-columns:1fr;gap:0;margin-top:18px; }
.spatial-catalogue .company-facts .feature-item { display:grid;grid-template-columns:110px 1fr;gap:18px;background:transparent;border-bottom:1px solid #8faec233;padding:16px 0; }
.spatial-catalogue .company-facts dt { color:#bad0dd;font-size:14px; }
.spatial-catalogue .company-facts dd { margin:0;overflow-wrap:anywhere; }
.spatial-catalogue .company-email { margin-top:20px;color:#c6d5e1; }
.spatial-catalogue .company-email a,.home-inquiry .contact-context a { color:#bcebdc;text-decoration:underline; }
body.spatial-catalogue #main>#company,body.spatial-catalogue #main>#contact { padding-block:40px; }
.spatial-catalogue .company-full,.home-inquiry>.container { width:calc(100% - 72px); }
.home-inquiry { --ink:#edf5fb;--secondary:#c6d5e1;--error:#ffb0bd;--accent:#b0f1df;color-scheme:dark; }
.home-inquiry .form-layout { gap:clamp(28px,5vw,72px); }
.home-inquiry .contact-context p { color:#c6d5e1; }
.home-inquiry :focus-visible { outline:3px solid #b0f1df;outline-offset:4px; }
html:has(.home-inquiry form:focus-within) { scroll-snap-type:y proximity; }
@media(min-width:701px) {
  body.spatial-catalogue #main>#contact { padding-block:28px; }
  .home-inquiry .inquiry-form>.form-note:first-child { margin-bottom:16px; }
  .home-inquiry .field { margin-bottom:14px; }
  .home-inquiry .field label { margin-bottom:8px; }
  .home-inquiry .field textarea { height:150px;min-height:150px; }
}
@media(max-width:980px) { .spatial-catalogue .company-full { gap:32px; } }
@media(max-width:700px) {
  .spatial-catalogue .company-full { grid-template-columns:1fr;gap:36px; }
  .spatial-catalogue .company-full,.home-inquiry>.container { width:calc(100% - 44px); }
  .spatial-catalogue .company-facts .feature-item { grid-template-columns:1fr;gap:6px; }
  .home-inquiry .form-layout { grid-template-columns:1fr;gap:32px; }
  body.spatial-catalogue #main>#company,body.spatial-catalogue #main>#contact { padding-block:28px; }
}

@media(max-width:700px) {
 html:has(.spatial-hero) {--page-header:132px;}
 .spatial-hero {min-height:calc(100svh - 132px);}
}

/* Fit the entrance composition within the viewport beneath the fixed header. */
.spatial-hero {min-height:calc(100svh - var(--page-header,112px));}
.spatial-content {padding-block:clamp(16px,4svh,48px);}
@media(max-width:700px) {
 .spatial-content {padding-block:20px;}
 .spatial-heading {margin-bottom:24px;}
 .spatial-portals {padding-block:0;margin-bottom:16px;}
}
@media(max-width:700px) and (max-height:760px) {
 .spatial-content {padding-block:11px;}
 .spatial-heading {gap:10px;margin-bottom:16px;}
 .spatial-heading h1 {font-size:32px;}
 .spatial-intro p {font-size:14px;line-height:1.65;}
 .spatial-portals {gap:8px;margin-bottom:12px;}
 .spatial-portal {height:clamp(104px,calc((100svh - 370px)/3),132px);}
 .portal-copy {top:10px;bottom:10px;left:18px;}
 .portal-copy h2 {font-size:24px;}
 .portal-copy p {margin-top:4px;font-size:13px;line-height:1.5;}
 .portal-copy>span {margin-top:6px;font-size:13px;line-height:1.4;}
 .portal-arrow {bottom:14px;right:14px;}
}

/* VR mirroring: original captures, contextual features and field evidence. */
.mirroring-detail {margin-block:28px;}
.mirroring-detail>section+section {margin-top:64px;}
.mirroring-section-heading {display:grid;grid-template-columns:1fr 1fr;align-items:start;gap:48px;margin-bottom:28px;}
.mirroring-detail p,.mirroring-detail dd,.mirroring-detail li {color:#c6d5e1;}
.mirroring-detail h2 {font-size:clamp(28px,3vw,40px);}
.mirroring-detail h3 {font-size:clamp(22px,2vw,28px);}
.mirroring-section-heading>p,.mirroring-feature p {max-width:60ch;}
.mirroring-detail .image-zoom {height:auto;background:#07141e;}
.mirroring-detail .image-zoom img {width:100%;height:auto;max-height:none;object-fit:contain;}
.mirroring-features>h2 {margin-bottom:28px;}
.mirroring-feature {display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);gap:40px;align-items:center;}
.mirroring-feature+.mirroring-feature {margin-top:36px;}
.mirroring-feature p {margin-top:18px;}
.mirroring-feature:nth-of-type(2) {grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr);}
.mirroring-feature:nth-of-type(2)>div:first-child {order:2;}
.mirroring-field-grid {display:grid;grid-template-columns:1fr 1fr;gap:24px;}
.mirroring-operation,.mirroring-resources {padding:32px;border-radius:26px;background:linear-gradient(135deg,rgba(23,42,57,.94),rgba(6,15,24,.97));border:1px solid #9cc3d83b;}
.mirroring-operation {display:grid;grid-template-columns:1.1fr 1fr;gap:48px;}
.mirroring-operation dl {margin-top:24px;}
.mirroring-operation dl>div {display:grid;grid-template-columns:96px 1fr;gap:16px;padding-block:12px;}
.mirroring-operation dt {font-weight:600;color:#edf5fb;}
.mirroring-checklist ul {padding-left:20px;margin-block:18px;}
.mirroring-checklist p {font-size:14px;}
.mirroring-resources {display:flex;align-items:center;justify-content:space-between;gap:36px;}
.mirroring-resources p {max-width:60ch;margin-top:16px;}
.mirroring-resources .mirroring-source {font-size:13px;color:#adc1ce;}
.mirroring-resources .actions {flex-shrink:0;flex-direction:column;align-items:flex-start;margin:0;gap:16px;}
.mirroring-resources .text-link {color:#bcebdc;}
:is(.spatial-catalogue,.spatial-category) .project-media-mirroring {background:#07141e;}
:is(.spatial-catalogue,.spatial-category) .project-media-mirroring img {object-fit:contain;}
@media(max-width:980px) {
 .mirroring-section-heading,.mirroring-operation {gap:28px;}
 .mirroring-feature,.mirroring-feature:nth-of-type(2) {grid-template-columns:1fr 1.2fr;gap:24px;}
 .mirroring-feature:nth-of-type(2)>div:first-child {order:0;}
 .mirroring-resources {align-items:flex-start;flex-direction:column;gap:24px;}
}
@media(max-width:700px) {
 .mirroring-detail>section+section {margin-top:40px;}
 .mirroring-section-heading,.mirroring-feature,.mirroring-feature:nth-of-type(2),.mirroring-field-grid,.mirroring-operation {grid-template-columns:1fr;gap:20px;}
 .mirroring-feature p {margin-top:12px;}
 .mirroring-operation,.mirroring-resources {padding:24px 22px;border-radius:22px;}
 .mirroring-operation dl>div {grid-template-columns:1fr;gap:4px;}
}
@media(max-width:700px) {
 .mirroring-section-heading,.mirroring-features>h2,.mirroring-feature>div:first-child {margin-inline:8px;}
}
.mirroring-resources .button {background:#b0f1df;color:#10262a;border-color:#b0f1df;}
.mirroring-resources .button:hover {background:#caf9eb;color:#10262a;border-color:#caf9eb;}
.mirroring-resources .button:focus-visible {outline:3px solid #b0f1df;outline-offset:5px;}

/* Client work is deliberately separate from our own product catalogue. */
body.spatial-catalogue #main>#portfolio {padding-block:32px;}
.client-portfolio-heading {display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:start;}
.client-portfolio-heading h2 {font-size:clamp(30px,3vw,42px);}
.client-portfolio-heading p {color:#c6d5e1;max-width:58ch;}
.client-portfolio-heading .client-portfolio-source {font-size:13px;margin-top:10px;color:#adc1ce;}
.client-portfolio-toolbar {display:flex;gap:20px;align-items:center;justify-content:space-between;margin-block:24px;}
.client-portfolio-filters {display:flex;flex-wrap:wrap;gap:4px;}
.client-portfolio-filters button {min-height:44px;min-width:52px;padding:8px 14px;border:0;border-radius:8px;background:transparent;color:#c6d5e1;font-size:14px;font-weight:550;transition:background .2s,color .2s;}
.client-portfolio-filters button:hover {background:#b0f1df15;color:#e5fff7;}
.client-portfolio-filters button[aria-pressed=true] {background:#b0f1df;color:#10262a;}
.client-portfolio-filters button:focus-visible,.client-project:focus-visible {outline:3px solid #b0f1df;outline-offset:4px;}
.client-portfolio-toolbar [role=status] {font-size:13px;color:#adc1ce;white-space:nowrap;}
.client-portfolio-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-items:stretch;}
.client-project {display:flex;flex-direction:column;overflow:hidden;border-radius:22px;border:1px solid #9cc3d83b;background:#101f2c;color:#edf5fb;transition:transform .3s var(--ease),border-color .2s;}
.client-project:hover {transform:translateY(-4px);border-color:#b0f1df;}
.client-project-media {aspect-ratio:16/9;background:#07121b;overflow:hidden;}
.client-project-media img {width:100%;height:100%;object-fit:cover;transition:transform .5s var(--ease);}
.client-project:hover img {transform:scale(1.035);}
.client-project-copy {padding:20px;display:flex;flex-direction:column;flex:1;}
.client-project-meta {display:flex;gap:12px;justify-content:space-between;align-items:center;font-size:13px;color:#adc1ce;margin-bottom:12px;}
.client-project-meta>span:first-child {color:#b0f1df;font-weight:600;}
.client-project h3 {font-size:clamp(20px,1.7vw,25px);line-height:1.35;overflow-wrap:anywhere;}
.client-project-copy>p {font-size:14px;color:#c6d5e1;line-height:1.65;margin-top:12px;}
.client-project-open {display:flex;align-items:center;justify-content:space-between;color:#bcebdc;font-size:13px;padding-top:20px;margin-top:auto;}
.client-project-open svg {width:18px;height:18px;}
.client-project-text {min-height:280px;}
.client-project-text .client-project-copy {justify-content:center;}
.client-portfolio-bottom {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:18px;margin-top:24px;}
.client-portfolio-bottom .button {color:#edf5fb;border-color:#829eb2;background:#19313f;border-radius:24px;}
.client-portfolio-bottom .button:hover {background:#294b59;}
.client-portfolio-bottom .text-link {color:#bcebdc;font-size:14px;}
@media(max-width:1100px) {
 .client-portfolio-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
 .client-portfolio-heading {gap:28px;}
 .client-portfolio-toolbar {align-items:flex-start;flex-direction:column;gap:10px;}
}
@media(max-width:700px) {
 .client-portfolio-heading,.client-portfolio-grid {grid-template-columns:1fr;gap:20px;}
 .client-portfolio-heading h2 br {display:none;}
 .client-portfolio-filters {gap:2px;}
 .client-portfolio-filters button {padding-inline:9px;min-width:44px;}
 .client-project-copy {padding:20px;}
 .client-project h3 {font-size:23px;}
 body.spatial-catalogue #main>#portfolio {padding-block:24px;}
 .client-portfolio>.container {width:calc(100% - 44px);}
 .spatial-heading h1 {font-size:clamp(28px,7.2vw,34px);}
}
@media(prefers-reduced-motion:reduce) {.client-project:hover,.client-project:hover img {transform:none;}}
/* Keep the longer approved headline readable without adding a third tablet line. */
@media(min-width:701px) and (max-width:980px) {
 .spatial-heading h1 {font-size:clamp(30px,4.7vw,43px);}
}
.client-project-media {aspect-ratio:auto;height:clamp(140px,20svh,200px);}
@media(max-width:700px) and (max-height:760px) {
 .spatial-content {padding-block:8px;}
 .spatial-heading {margin-bottom:12px;}
 .spatial-portals {margin-bottom:8px;}
}

/* A category with one product uses the same wide presentation as Handform. */
:is(.spatial-category,.spatial-catalogue) .category-gallery-single {grid-template-columns:1fr;}
:is(.spatial-category,.spatial-catalogue) .category-gallery-single>.project {display:grid;grid-template-columns:1.2fr 1fr;align-items:stretch;}
:is(.spatial-category,.spatial-catalogue) .category-gallery-single .project-media {height:clamp(280px,38svh,440px);}
:is(.spatial-category,.spatial-catalogue) .category-gallery-single .project-caption {justify-content:center;}
:is(.spatial-category,.spatial-catalogue) .category-gallery-single .project-description {flex:0;}
@media(max-width:700px) {
 :is(.spatial-category,.spatial-catalogue) .category-gallery-single>.project {display:flex;flex-direction:column;}
 :is(.spatial-category,.spatial-catalogue) .category-gallery-single .project-media {height:320px;}
}

/* Compact image gallery; all expansion stays within this website. */
.client-portfolio-grid {grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;}
.client-project-thumbnail {display:block;position:relative;aspect-ratio:16/10;min-height:0;width:100%;padding:0;border-radius:16px;text-align:left;background:#07121b;}
.client-project-thumbnail>img {display:block;width:100%;height:100%;object-fit:cover;}
.client-thumb-caption {position:absolute;inset:auto 0 0;padding:24px 12px 12px;background:linear-gradient(transparent,#030b12ef);color:#edf5fb;opacity:0;transition:opacity .2s;}
.client-thumb-caption>span {display:block;font-size:13px;color:#b0f1df;}
.client-thumb-caption strong {display:block;font-size:14px;line-height:1.4;margin-top:4px;}
.client-project-thumbnail:hover .client-thumb-caption,.client-project-thumbnail:focus-visible .client-thumb-caption {opacity:1;}
.client-project-no-image {padding:18px;border-radius:16px;background:#101f2c;border:1px solid #9cc3d83b;color:#edf5fb;}
.client-project-no-image h3 {font-size:18px;line-height:1.4;margin-block:10px;overflow-wrap:anywhere;}
.client-project-no-image p {font-size:13px;color:#b8d2d7;}
.client-portfolio-bottom {justify-content:center;}
body.spatial-portfolio {background:#03080d;color:#edf5fb;}
.spatial-portfolio .client-portfolio-full {width:calc(100% - 96px);max-width:1440px;margin:24px auto 48px;padding:32px 0;border-radius:26px;background:linear-gradient(135deg,rgba(23,42,57,.94),rgba(6,15,24,.97));border:1px solid #9cc3d83b;}
.client-portfolio-full>.container {width:calc(100% - 64px);}
.client-portfolio-full .client-portfolio-heading h1 {font-size:clamp(30px,3vw,42px);}
.client-portfolio-back {color:#bcebdc;margin-bottom:28px;font-size:14px;}
@media(max-width:1100px) {.client-portfolio-grid {grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:700px) {
 .client-portfolio-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
 .client-project-thumbnail {border-radius:12px;}
 .spatial-portfolio .client-portfolio-full {width:calc(100% - 28px);padding-block:24px;border-radius:22px;}
 .client-portfolio-full>.container {width:calc(100% - 40px);}
 .client-thumb-caption {padding:20px 8px 8px;}
}
.spatial-portfolio .skip-link {color:#10262a;}
@media(prefers-reduced-motion:reduce) {.client-thumb-caption {opacity:1;}}
/* Three distinct service directions, with shared engine technology below. */
:is(.spatial-category,.spatial-catalogue) .category-services {grid-template-columns:repeat(3,minmax(0,1fr));}
:is(.spatial-category,.spatial-catalogue) .category-services .project-common-engine {grid-column:1/-1;display:grid;grid-template-columns:220px 1fr;}
:is(.spatial-category,.spatial-catalogue) .category-services .project-common-engine .project-media {height:220px;}
:is(.spatial-category,.spatial-catalogue) .category-services .project-common-engine .project-caption {justify-content:center;}
:is(.spatial-category,.spatial-catalogue) .category-services .project-common-engine .project-description {flex:0;}
.project-media-illustration {position:relative;}
.concept-preview-label {position:absolute;left:12px;bottom:12px;padding:6px 10px;background:#07121bea;color:#d9e8ee;border-radius:8px;font-size:13px;line-height:1.5;}
@media(max-width:700px) {
 :is(.spatial-category,.spatial-catalogue) .category-services {grid-template-columns:1fr;}
 :is(.spatial-category,.spatial-catalogue) .category-services .project-common-engine {display:flex;flex-direction:column;}
}
.service-engine-connection {display:flex;gap:18px;flex-wrap:wrap;align-items:center;justify-content:center;margin-top:24px;color:#c6d5e1;}
.service-engine-connection .text-link {color:#bcebdc;}

/* English title proportions preserve the existing panels and mobile touch targets. */
:is(h1,h2,h3,h4,h5,h6)[lang=en] {word-break:normal;overflow-wrap:break-word;text-wrap:balance;}
.spatial-heading h1[lang=en] {font-size:clamp(32px,4.1vw,60px);line-height:1.13;letter-spacing:-.035em;}
.portal-copy h2[lang=en] {font-size:clamp(22px,2.3vw,34px);letter-spacing:-.025em;}
@media(max-width:980px) and (min-width:701px) {
 .portal-copy h2[lang=en] {font-size:clamp(19px,2.6vw,25px);}
}
@media(max-width:700px) {
 .spatial-heading h1[lang=en] {font-size:clamp(24px,6.3vw,32px);}
 .portal-copy h2[lang=en] {font-size:clamp(21px,5.4vw,26px);}
 #site-nav>a[lang=en] {font-size:13px;padding-inline:2px;white-space:normal;text-align:center;line-height:1.15;}
}

/* Curated portfolio: readable three-column cards with permanent captions. */
.client-portfolio-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:stretch;}
.client-project-thumbnail {display:flex;flex-direction:column;aspect-ratio:auto;overflow:hidden;border-radius:20px;background:#101f2c;}
.client-project-thumbnail>img {width:100%;height:auto;aspect-ratio:16/10;object-fit:contain;background:#08131d;}
.client-thumb-caption {position:static;inset:auto;display:block;flex:1;width:100%;padding:20px 22px 22px;opacity:1;background:none;}
.client-thumb-caption strong {margin-top:9px;font-size:20px;line-height:1.3;word-break:normal;overflow-wrap:break-word;}
.client-thumb-caption .client-project-original-title {margin-top:8px;color:#c6d5e1;font-size:14px;line-height:1.5;}
@media(max-width:1100px) {.client-portfolio-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;}}
@media(max-width:700px) {
 .client-portfolio-grid {grid-template-columns:1fr;gap:20px;}
 .client-project-thumbnail {border-radius:18px;}
 .client-thumb-caption {padding:18px 20px 20px;}
 .client-thumb-caption strong {font-size:20px;}
}
/* Distinct category accents retain the shared dark material and neutral typography. */
.spatial-interaction{--portal-accent:#78cfff;--portal-edge:#78cfff4d;--portal-button:#d9f1ff}
.spatial-experience{--portal-accent:#edbb78;--portal-edge:#edbb784d;--portal-button:#f7e5cc}
.spatial-service{--portal-accent:#a9e5cf;--portal-edge:#a9e5cf4d;--portal-button:#e0f5ec}
.spatial-portal{border-color:var(--portal-edge,#9cc3d83b)}
.spatial-portal .portal-arrow{background:var(--portal-button,#e0f5ec);border-color:var(--portal-button,#e0f5ec);color:#10232b;transition:background .25s,border-color .25s,transform .25s}
.spatial-portal:focus-visible{outline-color:var(--portal-accent,#a9e5cf);border-color:var(--portal-accent,#a9e5cf)}
@media(hover:hover){.spatial-portal:hover{border-color:var(--portal-accent,#a9e5cf)}.spatial-portal:hover .portal-arrow{background:var(--portal-accent,#a9e5cf);border-color:var(--portal-accent,#a9e5cf);transform:translateX(2px)}}
/* Filtering must not vertically recenter a shorter portfolio. */
body:has(.spatial-hero) #main>section#portfolio{justify-content:flex-start}
.client-portfolio-grid{align-content:start}

/* Slow category artwork loops; the card, type and camera remain stationary. */
.portal-motion{position:absolute;inset:-4%;animation:portal-float 12s ease-in-out infinite;animation-play-state:paused;transform-origin:60% 40%}
.portal-motion:after{content:'';position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 65% 28%,var(--portal-accent,#a9e5cf),transparent 65%);mix-blend-mode:screen;opacity:.04;animation:portal-breathe 12s ease-in-out infinite;animation-play-state:paused}
.spatial-experience .portal-motion{animation-name:portal-touch;animation-duration:14s}.spatial-experience .portal-motion:after{animation-duration:14s}
.spatial-service .portal-motion{animation-name:portal-flow;animation-duration:16s}.spatial-service .portal-motion:after{animation-duration:16s}
.spatial-portal[data-loop-active=true] .portal-motion,.spatial-portal[data-loop-active=true] .portal-motion:after{animation-play-state:running}
@keyframes portal-float{0%,100%{transform:translate3d(0,1%,0) scale(1)}50%{transform:translate3d(.5%,-1.1%,0) scale(1.018)}}
@keyframes portal-touch{0%,100%{transform:translate3d(-.6%,.6%,0) scale(1)}50%{transform:translate3d(.6%,-.5%,0) scale(1.026)}}
@keyframes portal-flow{0%,100%{transform:translate3d(-.9%,0,0) scale(1.01)}50%{transform:translate3d(.9%,-.5%,0) scale(1.028)}}
@keyframes portal-breathe{0%,100%{opacity:.025}50%{opacity:.13}}
@media(prefers-reduced-motion:reduce){.portal-motion,.portal-motion:after{animation:none!important;transform:none!important}.portal-motion:after{opacity:0}}

/* Actual captures keep their pixels; only the surrounding thumbnail backplate changes. */
:is(.spatial-catalogue,.spatial-category) :is(.project-media-handform,.project-media-soulmaps,.project-media-illustration){background:#07141e}
:is(.spatial-catalogue,.spatial-category) .project-media-soulmaps{color:#edf5fb}
:is(.spatial-catalogue,.spatial-category) .project-media-soulmaps .service-wordmark>span{color:#b5c8d6}

/* Hero cards: one heading/description group; product names belong in the next sections. */
.spatial-hero .portal-copy{top:auto;bottom:28px;left:28px;right:28px;display:grid;gap:8px}
.spatial-hero .portal-copy h2{margin:0}
.spatial-hero .portal-copy p{margin:0;padding-right:48px}
.spatial-hero .portal-arrow{bottom:26px;right:26px}
@media(min-width:701px) and (max-width:980px){.spatial-hero .portal-copy{left:22px;right:22px;bottom:24px}.spatial-hero .portal-arrow{bottom:22px;right:22px}}
@media(max-width:700px){.spatial-hero .portal-copy{top:50%;bottom:auto;left:20px;right:58px;transform:translateY(-50%);gap:6px}.spatial-hero .portal-copy p{padding-right:0}.spatial-hero .portal-arrow{right:16px;bottom:calc(50% - 15px)}}
