/* The homepage's full-screen cosmic scene; service-page heroes stay independent. */
body.home { position:relative; background:#020711; --cosmos-header:80px; --cosmos-admin:0px; }
body.home.admin-bar { --cosmos-admin:32px; }
.cosmos-hero {
  position:relative; isolation:isolate; display:flex; flex-direction:column;
  min-height:calc(100vh - var(--cosmos-admin));
  min-height:calc(100svh - var(--cosmos-admin));
  padding-top:var(--cosmos-header); background:#020711; overflow:hidden;
}
.cosmos-backdrop, .cosmos-backdrop picture, .cosmos-backdrop img {
  position:absolute; inset:0; width:100%; height:100%; pointer-events:none;
}
.cosmos-backdrop { z-index:-1; }
.cosmos-backdrop img { display:block; object-fit:cover; object-position:66% 54%; }
.cosmos-backdrop::after {
  content:""; position:absolute; inset:0;
  background:linear-gradient(90deg,#02071172 0%,#02071130 42%,transparent 73%),
    linear-gradient(180deg,#02071135,transparent 28%,transparent 78%,#020711b8);
}
.cosmos-hero > .hero {
  flex:1; grid-template-columns:1.04fr 1.1fr; gap:2vw;
  padding-block:clamp(28px,4svh,60px); align-items:center;
}
.cosmos-hero .intro { z-index:1; padding-bottom:1.5vh; }
.cosmos-hero h1 {
  font-size:clamp(60px,6vw,100px); margin-block:30px 25px; color:#f1f8ff;
  text-shadow:0 6px 35px #01050f55;
}
.cosmos-hero h1 em { color:#b6d9ed; }
.cosmos-hero .intro p { color:#b9cbd9; max-width:45ch; line-height:1.65; }
.cosmos-hero .eyebrow { color:#91b7d0; }
.cosmos-hero .primary { background:#9aebff; border-color:#c6f5ff; box-shadow:0 8px 36px #1e99d826; }
.cosmos-hero .primary:hover { background:#c4f5ff; box-shadow:0 8px 38px #1e99d83d; }
.cosmos-hero .visual { width:100%; transform:translateY(-2%); }
.cosmos-hero .field { background:none; }
.cosmos-hero .field > svg { display:none; }
.cosmos-hero .vector-canvas { filter:drop-shadow(0 28px 30px #0009136b); }
.cosmos-hero [data-hologram]:not([data-hologram="idle"]) .vector-canvas { cursor:default; }
@media(prefers-reduced-motion:no-preference) {
  html.creatos-hologram .cosmos-hero .blade-poster {
    opacity:0; animation:cosmos-poster-recovery .2s 4s forwards;
  }
  html.creatos-hologram .cosmos-hero .mesh-ready > .blade-poster { animation:none; }
}
/* A delayed static fallback also recovers if the scene script cannot load. */
@keyframes cosmos-poster-recovery { to { opacity:1; } }
.cosmos-hero > .rail {
  position:relative; flex-shrink:0; min-height:56px;
  border-color:#b8dfff26; color:#96b5c9; background:transparent;
}
.cosmos-hero > .rail span:first-child { border-color:#b8dfff26; }
@media(max-width:900px) {
  body.home { --cosmos-header:65px; }
  .home > header.wrap { gap:18px; }
  .cosmos-hero > .hero {
    grid-template-columns:1fr; gap:12px; padding-block:38px 10px;
    align-content:center;
  }
  .cosmos-hero .intro { padding-bottom:0; }
  .cosmos-hero h1 { font-size:clamp(50px,7.8vw,72px); margin-block:24px 18px; }
  .cosmos-hero .intro p { max-width:48ch; }
  .cosmos-hero .visual { width:min(100%,440px); margin-inline:auto; transform:none; }
  .cosmos-backdrop img { object-position:70% 65%; }
  .cosmos-backdrop::after {
    background:linear-gradient(180deg,#020711e0 0%,#0207119c 32%,#02071112 67%,#02071155 88%,#020711d9);
  }
}
@media(max-width:600px) {
  .home > header.wrap { flex-wrap:nowrap; gap:12px; padding-block:0; }
  .home > header .brand { width:112px; flex-shrink:0; }
  .home > header nav { gap:10px; font-size:12px; }
  .home > header .tools { margin-left:0; flex-shrink:0; }
  .home > header .langs a { font-size:11px; }
  .cosmos-hero > .hero { gap:6px; padding-block:32px 4px; }
  .cosmos-hero h1 { font-size:clamp(46px,11.5vw,68px); margin-block:23px 18px; }
  .cosmos-hero .intro p { font-size:16px; line-height:1.6; }
  .cosmos-hero .intro .btn { margin-top:24px; }
  .cosmos-hero .visual { width:min(100%,350px); }
  .cosmos-hero > .rail { min-height:60px; font-size:9px; gap:14px; }
}
@media(max-width:360px) {
  .home > header.wrap { gap:8px; }
  .home > header .brand { width:88px; }
  .home > header nav { gap:8px; font-size:11px; }
}
@media(max-width:782px) { body.home.admin-bar { --cosmos-admin:46px; } }
@media(min-width:901px) and (max-height:700px) {
  .cosmos-hero > .hero { padding-block:20px; }
  .cosmos-hero h1 { font-size:clamp(60px,6vw,90px); margin-block:20px 16px; }
  .cosmos-hero .visual { width:min(100%,440px); margin-inline:auto; }
}

.cosmos-hero .intro h1{margin-top:0}
