/* 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}
  /* footer note: tag and email link on one line, the note full width under them */
  .layer-foot{flex-wrap:wrap;row-gap:10px}
  .layer-foot .text-link{order:2;margin-left:auto}
  .layer-foot p{order:3;flex:1 1 100%}
}

/* 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}



/* Durana Tech Park site row (AI infrastructure) and the Team section */

/* Phase 1 site: name, place and permit status, one row under the build-out */
.site-row{max-width:var(--max);margin:40px auto 0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px 40px;align-items:end;
  padding:28px 0;border-top:1px solid var(--line-strong)}
.site-row .eyebrow{color:var(--muted);font-size:12px}
.site-row h3{font-size:clamp(28px,3.2vw,44px);font-weight:400;letter-spacing:-.035em;line-height:1.05;margin-top:10px}
.site-row h3 span{color:var(--muted)}
.site-row h3 i{font-style:normal}
.site-row .site-status{display:grid;justify-items:end;gap:10px;text-align:right}
.site-row .site-status p{font-size:13px;color:var(--muted);max-width:300px}
.tag.is-permit{border-color:var(--orange);color:var(--orange-ink)}
.tag.is-permit::before{content:"";display:inline-block;width:6px;height:6px;margin-right:7px;border-radius:50%;background:var(--orange);vertical-align:1px;animation:pulse 2.6s ease-out infinite}

/* Team */
.team .people{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:40px 28px;list-style:none;padding:0}
@media (max-width:1000px) and (min-width:761px){ .team .people{grid-template-columns:repeat(2,minmax(0,1fr))} }
.person{display:flex;flex-direction:column}
.person .ph{aspect-ratio:4/5;background:var(--panel,#e9e8e1);border:1px solid var(--line);display:grid;place-items:center;overflow:hidden}
.person .role{margin-top:16px;font-size:12px;color:var(--orange-ink)}
.person h3{font-size:22px;font-weight:500;letter-spacing:-.02em;margin-top:6px}
.person p{font-size:14px;color:var(--muted);margin-top:8px;line-height:1.5}
.person .text-link{margin-top:14px;align-self:start;font-size:13px}
.person .text-link::after{content:" →";color:var(--orange)}

@media (max-width:760px){
  .site-row{grid-template-columns:1fr;align-items:start}
  .site-row .place{display:block;margin-top:4px;font-size:.62em}
  .site-row .place i{display:none}
  .site-row .site-status{justify-items:start;text-align:left}
  /* phones: one row per person, photo left */
  .team .people{grid-template-columns:1fr;gap:28px}
  .person{display:grid;grid-template-columns:112px minmax(0,1fr);column-gap:16px;align-items:start}
  .person .ph{grid-row:1 / span 4;aspect-ratio:4/5}
  .person .role{margin-top:0}
  .person h3{font-size:19px;margin-top:4px}
  .person p{font-size:13px;margin-top:6px}
  .person .text-link{margin-top:10px;justify-self:start}
}
.person .ph img{width:100%;height:100%;object-fit:cover;object-position:50% 30%;display:block}

/* Advisors: a separate row under the core team, photo beside the text */
.team .advisors{max-width:1200px;margin:56px auto 0;padding-top:24px;border-top:1px solid var(--line-strong)}
.team .advisors .eyebrow{color:var(--muted);margin-bottom:20px}
.team .people.people-adv{grid-template-columns:repeat(2,minmax(0,1fr))}
.people-adv .person{display:grid;grid-template-columns:150px minmax(0,1fr);column-gap:22px;align-items:start}
.people-adv .ph{grid-row:1 / span 4}
.people-adv .person .role{margin-top:0}
.people-adv .person .text-link{justify-self:start}
@media (max-width:760px){
  .team .advisors{margin-top:36px}
  .team .people.people-adv{grid-template-columns:1fr}
  .people-adv .person{grid-template-columns:112px minmax(0,1fr);column-gap:16px}
}
