/* Homepage layout: one name per layer, the approach as a table of contents, shared layer footers */


.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* 1. Dock bar: no layer names (the headline wheel says it), three progress lines and one link */
.stage-bar{grid-template-columns:96px minmax(0,1fr) auto}
.stage .tabs{flex-direction:row;gap:6px;align-self:center}
.stage .tabs button{flex:1;padding:10px 0}
.stage .tabs button i{position:relative;display:block;height:2px}
.stage .txt a{margin-top:0;font-size:14px;font-weight:500;color:var(--ink)}

/* 6. Key facts lead with what OmnyaAI is building; the NCP status comes after */
.facts{grid-template-columns:1fr 1fr 1.25fr 1fr}
.facts>.fact:nth-child(4){order:-2;padding-left:0;border-left:0}
.facts>.fact:nth-child(3){order:-1}
.facts>.fact-title{padding-left:32px;border-left:1px solid var(--line)}

/* 7. Software: centred heading like every other section, demo straight after */
.software .section-heading{margin-bottom:40px}
.software-after{display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap;
  max-width:min(100%,calc((100svh - 136px) * 1.5));margin:18px auto 0}
.software-after .software-status{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--ink)}

/* 8. Questions: centred heading on top, the list under it */
.questions{display:block}
.questions>.reveal:first-child{display:grid;justify-items:center;text-align:center;margin-bottom:40px}
.questions>.reveal:first-child .eyebrow{justify-self:start}
.questions .faq-list{max-width:860px;margin:0 auto}

/* 4. Contact: the two paths the copy offers */
.contact-action{gap:10px}
.button.ghost{background:transparent;color:var(--paper);border-color:rgba(243,241,230,.35)}
.button.ghost:hover{border-color:#f7c3a5;color:#f7c3a5}

@media (max-width:760px){
  .facts{grid-template-columns:1fr 1fr}
  .facts>.fact-title{grid-column:auto;border-bottom:0}
}

/* 9. Wheel words come from CSS, so copy-paste and search see only the real headline */
.wheel .wi>span::before{content:attr(data-t)}
.wheel .wi{user-select:none}


/* The hero's stack, reused: the chosen layer stays and lifts, the others step back (as in the hero) */
.stk{display:block;overflow:visible}
.stk .slab{transition:opacity .45s ease,translate .6s cubic-bezier(.16,1,.3,1),filter .45s}
.stk[data-focus] .slab{opacity:.38;filter:saturate(.6)}
.stk[data-focus="software"] .slab:nth-child(n+7),.stk[data-focus="platform"] .slab:nth-child(6),.stk[data-focus="apollyon"] .slab:nth-child(-n+5){opacity:1;filter:none}
.stk[data-focus="software"] .slab:nth-child(n+7){translate:0 -16px}
.stk[data-focus="platform"] .slab:nth-child(6){translate:22px 11px}
.stk[data-focus="apollyon"] .slab:nth-child(-n+5){translate:0 10px}
.eyebrow[data-layer]{display:flex;align-items:center;gap:10px}
.eyebrow .stk.mini{width:38px;height:40px;flex:none}
.eyebrow .stk.mini .slab,.eyebrow .stk.mini .slab-in{animation:none}

/* 5. Our approach: a table of contents for the three layers */
.approach .layer-scroller{display:none}
.toc{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:64px;align-items:center}
.toc-stack{display:grid;justify-items:center;gap:6px}
.toc-stack .stk.big{width:100%;max-width:520px;height:auto}
.toc-cap{font-size:13px;color:var(--ink);margin-top:-18px}
.toc-list{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.toc-row{position:relative;display:grid;grid-template-columns:44px minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:18px;row-gap:12px;
  padding:24px 20px;border-bottom:1px solid var(--line);color:var(--ink);text-decoration:none}
.toc-row::before{content:"";position:absolute;left:0;top:0;bottom:0;width:2px;background:var(--orange);transform:scaleY(0);transition:transform .3s var(--ease)}
.toc-row.on::before{transform:none}
.toc-n{font-size:13px;color:var(--muted);padding-top:6px}
.toc-row.on .toc-n{color:var(--orange-ink)}
.toc-t b{display:block;font-size:24px;font-weight:400;letter-spacing:-.02em}
.toc-t small{display:block;margin-top:6px;font-size:14px;color:var(--muted)}
.toc-row .tag{align-self:start;margin-top:4px}
.toc-go{grid-column:2;justify-self:start;color:var(--ink)}
.toc-row:hover .toc-go,.toc-row:focus-visible .toc-go{color:var(--orange-ink)}
.toc-row:hover .toc-go::after{transform:translateX(3px)}
.toc-row:focus-visible{outline:2px solid var(--orange);outline-offset:-2px}
.tag.is-live{border-color:var(--orange);color:var(--orange-ink)}

/* 4. One footer for every layer: status, the one caveat, one link */
.layer-foot{display:flex;align-items:center;gap:18px;max-width:var(--max);margin:32px auto 0;padding-top:18px;border-top:1px solid var(--line-strong)}
.layer-foot p{flex:1;font-size:12px;color:var(--muted)}
.layer-foot .text-link{white-space:nowrap}
.software .layer-foot{max-width:min(100%,calc((100svh - 136px) * 1.5))}

/* 3/4. Neocloud on the same paper as the other layers (the light theme of its preview) */
.platform.pf-light{background:var(--paper);color:var(--ink);border-top:1px solid var(--line)}
.pf-light .section-heading>div>p{color:var(--muted)}
.pf-light .eyebrow{color:var(--ink)}
.pf-light .pf .story .eyebrow-c{color:var(--orange-ink)}
.pf-light .pf .story h3{color:var(--ink)}
.pf-light .pf .story .say{color:var(--muted)}
.pf-light .pf .prods span{background:rgba(255,255,255,.6);border-color:var(--line-strong);color:var(--ink)}
.pf-light .pf .steps button{color:var(--muted)}
.pf-light .pf .steps button::before{background:rgba(27,35,38,.12)}
.pf-light .pf .steps button.on{color:var(--ink)}
.pf-light .pf .ps .side{fill:var(--muted)}
.pf-light .pf .ps .wire{stroke:rgba(236,88,44,.5)}
.pf-light .pf .pv-c .ly.dim{filter:grayscale(.5) brightness(1.55) contrast(.6)}

@media (max-width:860px){
  .toc{grid-template-columns:1fr;gap:28px}
  .toc-stack{display:none}
  .toc-row{grid-template-columns:34px minmax(0,1fr);padding:20px 12px}
  .toc-row .tag{grid-column:2;justify-self:start}
  .layer-foot{flex-wrap:wrap}
}

/* 1. The Neocloud drawing always fits the screen, so a link can show all of it */
#platform .pf .pv-c svg{max-height:calc(100svh - 112px)}

/* Neocloud stays on its dark section: the shared layer footer in dark colours */
.platform:not(.pf-light) .layer-foot{border-top-color:rgba(214,222,216,.18)}
.platform:not(.pf-light) .layer-foot p{color:var(--dark-muted)}
.platform:not(.pf-light) .layer-foot .tag{color:#d8dfda;border-color:rgba(214,222,216,.3)}
.platform:not(.pf-light) .layer-foot .text-link{color:var(--paper)}
.platform:not(.pf-light) .layer-foot .text-link:hover{color:#ffb79f}

/* Performance: sections out of view hold their animations (see home.js) */
.anim-off *,.anim-off *::before,.anim-off *::after{animation-play-state:paused!important}
/* While a layer's preview fills the hero, the stack behind it is only a small navigator: hold its breathing */
.hero-art.staged .slab{animation-play-state:paused}
@media (max-width:760px){
  /* the wide double glow on the docked layer is costly to repaint on phones; a smaller one reads the same at 64px */
  .hero-art.staged .slab.dock-on{filter:drop-shadow(0 0 10px rgba(236,88,44,.85))}
}

/* Phones: the headline, then the animation, whole on the first screen; the description and buttons follow it.
   home.js sets --art-h to the room left below the headline (300px to 470px), and the drawing scales into it. */
@media (max-width:760px){
  .hero{padding-top:16px;row-gap:0;overflow-x:clip}   /* the headline's scaled queue lines must not widen the page */
  .hero-copy{display:contents}
  .hero-copy>.eyebrow{order:1}
  .hero h1{order:2;margin-top:12px;font-size:min(10.2vw,46px)}
  .hero-art{order:3;height:var(--art-h,auto)}
  .hero-description{order:4;margin-top:22px}
  .hero-actions{order:5;margin-top:18px}
  .hero-art .foundation{width:100%;margin:0 auto;height:calc(var(--art-h,470px) - 27px);max-height:none}
}

/* AI infrastructure card: the project's name leads, large, as in the hero preview */
#apollyon .bo .top{align-items:baseline}
#apollyon .bo .top .bo-name{font-size:20px;font-weight:500;letter-spacing:-.01em;color:var(--ink)}
#apollyon .bo .top .live{font-size:14px}
@media (max-width:760px){ #apollyon .bo .top .bo-name{font-size:17px} #apollyon .bo .top .live{font-size:12px} }

/* Neocloud section: no description column. The stack is centred with one-word layer links on its left;
   the click hint, Pause and the note on illustrative products stay underneath. */
#platform .pf .pv-c{grid-template-columns:1fr;justify-items:center;gap:8px}
#platform .pf .pv-c svg{width:auto;max-width:100%}
#platform .pf .story{text-align:center;max-width:620px}
#platform .pf .story .eyebrow-c,#platform .pf .story h3,#platform .pf .story .say,#platform .pf .story .prods,#platform .pf .story .steps{display:none}
#platform .pf .story .hint-click{margin-top:0}
#platform .pf .story .ctrl{justify-content:center;margin-top:10px}

