/* AIQ homepage: the design's inline CSS from html/aiq/site/index.html, unchanged. */
/* Concept B: AIQ's living frames, simplified (Danil, 13 Oct: "one intro section for Genesis", "simplify the design").
   19 Oct (Danil): Case Studies, Why AIQ, News and Our Story are out; Who We Are, the Genesis logo and a small AI Lab block are in.
   Six sections. The hero is the one thing that moves on its own; domains open when you choose one. Everything else is still: text, one picture, and the open coral grid. The full Genesis story (problem, eras,
   how it works, the seven capabilities, business value) lives on the Genesis page (genesis.html). */

/* ---------- page type: AIQ Brand Guidelines p.28 ---------- */
.h-xl{font-family:var(--display);font-weight:300;font-size:clamp(2.4rem,1.2rem + 3.6vw,4.6rem);line-height:1.1;letter-spacing:.03em;margin:0;text-wrap:balance}
.h-l{font-family:var(--display);font-weight:300;font-size:clamp(1.9rem,1.1rem + 2.3vw,3.3rem);line-height:1.1;letter-spacing:.03em;margin:0;text-wrap:balance}
.h-m{font-family:var(--display);font-weight:300;font-size:clamp(1.35rem,1rem + 1vw,2rem);line-height:1.1;letter-spacing:.03em;margin:0}
.h-s{font-family:var(--display);font-weight:300;font-size:clamp(1.1rem,.95rem + .45vw,1.4rem);line-height:1.1;letter-spacing:.03em;margin:0}
.k{font-family:var(--mono);font-weight:300;font-size:.72rem;line-height:1;letter-spacing:.01em;text-transform:uppercase;color:var(--graphite)}
.k.ink2{color:var(--ink-2)}
.copy{font-family:var(--mono);font-weight:300;font-size:.95rem;line-height:1.5;letter-spacing:.03em;color:var(--ink-2);max-width:46ch;margin:0}
.num{font-family:var(--display);font-weight:300;line-height:1;letter-spacing:.03em;font-variant-numeric:tabular-nums}

/* ---------- buttons: outline pill, coral hairline, ivory fill, graphite label (p.28, p.44, EX-01) ---------- */
.pill{display:inline-flex;align-items:center;gap:.6rem;white-space:nowrap;min-height:44px;padding:.7rem 1.25rem;border-radius:999px;border:1px solid var(--coral);background:var(--ivory);color:var(--graphite);font-family:var(--mono);font-weight:300;font-size:.74rem;letter-spacing:.01em;text-transform:uppercase;text-decoration:none;transition:background .3s var(--ease)}
.pill:hover,.pill:focus-visible{text-decoration:underline;text-decoration-color:var(--coral);text-underline-offset:4px}
.pill svg{width:12px;height:12px}
.tlink{display:inline-flex;align-items:center;min-height:44px;white-space:nowrap;background:none;border:0;padding:0;cursor:pointer;font-family:var(--mono);font-weight:300;font-size:.74rem;line-height:1;letter-spacing:.01em;text-transform:uppercase;color:var(--graphite);text-decoration:underline;text-decoration-color:var(--coral);text-underline-offset:5px}

/* ---------- shared section bits ---------- */
.sec{position:relative;padding-block:0}
.pad{padding:clamp(4.5rem,3rem + 6vw,8.5rem) var(--m)}
.head{display:grid;gap:1rem;max-width:62rem;margin-bottom:clamp(2rem,1.5rem + 2vw,3.5rem)}
.fw.ivory{background:rgba(249,249,244,.78)}
.fw .in{position:absolute;inset:0;padding:clamp(1rem,.7rem + 1vw,1.75rem);display:flex;flex-direction:column;justify-content:space-between;gap:1rem}
.fw .nx{transition:opacity .4s var(--ease)}
.fluid.gaps{gap:8px}
.mesh{background:radial-gradient(60% 70% at 6% 4%,var(--mint),transparent 70%),radial-gradient(55% 60% at 2% 100%,var(--peach),transparent 70%),radial-gradient(60% 65% at 100% 100%,var(--yellow),transparent 70%),var(--ivory)}
.vname{position:absolute;left:clamp(.8rem,1vw,1.2rem);bottom:clamp(1rem,1.4vw,1.6rem);writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap}
/* the focus control inside each frame: a real button; its area covers the frame */
.fbtn{all:unset;cursor:pointer;display:inline-flex;align-items:center;min-height:44px}
.fbtn::after{content:"";position:absolute;inset:0;z-index:1}
.fbtn:focus-visible{outline:1.5px solid var(--graphite);outline-offset:4px}
.fw .in .wide-only,.fw .copy,.fw a{position:relative;z-index:2}

/* open coral lines (p.36-42): each follows a frame edge and runs out to the page edge; placed by script */
.xl{position:absolute;pointer-events:none;background:var(--link);z-index:1}
.xl-h{left:0;right:0;height:1px}.xl-v{top:0;bottom:0;width:1px}
/* lines sit above the pictures (on the frame edges) and below the controls */
@media (max-width:899px){.fluid > .fw > .nx{display:none}}
/* phones (mobile view, 14 Oct): every section keeps one corner. The open frame of a mosaic, the figures' photo, the finale's main frame */
.nx-ph{display:none}
@media (max-width:899px){.fluid > .fw.on > .nx,.nx-ph,.fin .fluid > .fw.f-main > .nx{display:block}}

/* ---------- copy that moves: headings rise line by line as they arrive; a frame's text rises in as it opens ---------- */
.wide-only{opacity:0;transition:opacity .5s var(--ease)}
.on .wide-only{opacity:1;transition-delay:.3s}
.wide-only > *{transform:translateY(14px);opacity:0;transition:transform .7s var(--ease),opacity .6s var(--ease)}
.on .wide-only > *{transform:none;opacity:1}
.on .wide-only > :nth-child(1){transition-delay:.35s}.on .wide-only > :nth-child(2){transition-delay:.43s}.on .wide-only > :nth-child(3){transition-delay:.51s}
.on .wide-only > :nth-child(4){transition-delay:.59s}.on .wide-only > :nth-child(5){transition-delay:.67s}.on .wide-only > :nth-child(6){transition-delay:.75s}
.narrow-only{transition:opacity .4s var(--ease)}
.on .narrow-only{opacity:0}
.motion [data-reveal]{filter:none;transform:translateY(12px)}
.motion [data-reveal].is-in:not(.rv-done){transition:opacity .8s var(--ease),transform .8s var(--ease);transition-delay:var(--rv-d,0s)}
.motion [data-lines]{visibility:hidden}
.motion [data-lines].split{visibility:visible}

/* ================= NAV: solid ivory, no blur (p.44); the logo and the tagline in their own cell, at its two ends (p.16; Danil 9 Oct, back 14 Oct) ================= */
.navtag{font-size:.72rem;white-space:nowrap;color:var(--ink-2)}
@media (min-width:900px) and (max-width:1099px),(max-width:359px){.navtag{display:none}}
.nav.solid{background:var(--ivory)}
.nav:not(.solid)::after{background:var(--link)}
.nav-brand{display:flex;align-items:center;justify-content:space-between;align-self:stretch;min-width:0;padding-right:1.25rem}
@media (max-width:899px){.nav-brand{flex:1}}
@media (min-width:900px){.nav-b .nav-brand{flex:none;width:calc(30.94vw - var(--m))}}
.nav-b .nav-right{display:flex;align-items:center;gap:clamp(1rem,2vw,2rem)}
.nav-b .navcta{display:none}
.navpause{display:none}
@media (min-width:900px){.navpause{display:inline-flex}}
@media (min-width:760px){.nav-b .navcta{display:inline-flex}}
@media (min-width:1366px){.nav-b{display:grid;grid-template-columns:auto minmax(0,1fr) auto;column-gap:0}.nav-b .nav-links{display:flex;align-self:stretch;align-items:center;padding:0 clamp(1.5rem,2.4vw,3rem)}.nav-b .nav-right{grid-column:3;align-self:stretch;padding-left:clamp(1.5rem,2.4vw,3rem)}.nav-b .nav-brand{justify-self:start;width:calc(30.94vw - var(--m))}}
/* no vertical lines in the nav (Shemoel, 14 Oct): from 1366px the tagline sits well inside its cell, clear of the links, so it never reads as the first link */
@media (min-width:1366px){.nav-b .nav-brand{padding-right:clamp(4rem,5vw,6rem)}}
@media (max-width:1365px){.nav-b .nav-links{display:none}}
/* below 1536px the pause control lives in the menu, so the link cell and the action cell stay apart */
@media (max-width:1535px){.nav-b .navpause{display:none}}

/* ================= 1 · HERO: the living mosaic (EX-03; AIQ's website animation) ================= */
.hero{position:relative;height:100svh;min-height:660px;overflow:hidden}
.mos{position:absolute;inset:0;z-index:var(--z-content);display:grid;
  grid-template-columns:1.619% 29.321% 3.2fr 3.6fr 2.6fr 3.1fr .3fr;grid-template-rows:var(--nav-h) 2.2fr 1.1fr 1.6fr 2fr .35fr;
  transition:grid-template-columns 1.35s cubic-bezier(.65,0,.35,1),grid-template-rows 1.35s cubic-bezier(.65,0,.35,1)}
.mos > i{box-shadow:inset -1px -1px 0 var(--link);pointer-events:none}
.mos > i:nth-child(-n+7){box-shadow:none}     /* the header row stays clear: no lines through the nav (Danil, 9 Oct) */
/* the headline window keeps its own edges only: no track line crosses the copy (rows 2-4 of the gutter and text columns) */
.mos > i[data-x="1"][data-y="2"],.mos > i[data-x="1"][data-y="3"],.mos > i[data-x="1"][data-y="4"]{box-shadow:inset -1px 0 0 var(--link)}
.mos > i[data-x="2"][data-y="2"],.mos > i[data-x="2"][data-y="3"],.mos > i[data-x="2"][data-y="4"],.mos > i[data-x="2"][data-y="5"]{box-shadow:none}
.mw{position:relative;overflow:hidden;min-width:0;min-height:0;background:var(--ivory)}
.mw img,.mw video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:opacity .9s var(--ease)}
.mw img.out{opacity:0}
.mw.empty{background:rgba(249,249,244,.72)}
.m-txt{grid-area:2/2/6/3;background:rgba(249,249,244,.66);box-shadow:inset -1px -1px 0 var(--link);display:flex;flex-direction:column;justify-content:space-between;gap:1.25rem;padding:clamp(2.5rem,1.4rem + 3vw,5rem) clamp(1.1rem,.7rem + 1.2vw,2rem) clamp(1.1rem,.7rem + 1.2vw,2rem);container-type:inline-size;overflow:visible}
.m-txt h1{font-family:var(--display);font-weight:300;font-size:clamp(2rem,1rem + 2.6vw,4.4rem);line-height:1.1;letter-spacing:.03em;margin:0}
.m-txt .row{display:flex;justify-content:space-between;align-items:flex-end;gap:1rem;flex-wrap:wrap}
.m-a{grid-area:2/3/3/4}.m-b{grid-area:3/3/5/4}.m-p{grid-area:2/4/4/6}.m-c{grid-area:4/4/6/5}
.m-d{grid-area:4/5/5/6}.m-e{grid-area:5/5/6/6}.m-f{grid-area:2/6/4/7}.m-g{grid-area:4/6/6/7}
.mw .plate{position:absolute;inset:0;z-index:2;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.1rem;opacity:0;transition:opacity .7s var(--ease);pointer-events:none}
.mw.zoom .plate{opacity:1;transition-delay:.35s}
.mw .plate img{position:relative;inset:auto;width:min(46%,320px);height:auto;object-fit:contain}
.mw .plate .pcap{font-family:var(--display);font-weight:300;font-size:clamp(1rem,.7rem + .8vw,1.5rem);line-height:1.1;letter-spacing:.03em;color:var(--ink-2)}
.m-d .cap{position:absolute;left:clamp(.9rem,1.2vw,1.4rem);top:50%;transform:translateY(-50%);font-family:var(--display);font-weight:300;font-size:clamp(1.05rem,.7rem + 1vw,1.75rem);line-height:1.1;letter-spacing:.03em;color:var(--ink-2);opacity:0;transition:opacity .6s var(--ease)}
.m-d.show .cap{opacity:1;transition-delay:.55s}
.mos .nx{z-index:3}
@media (max-width:899px){
  .hero{height:auto;min-height:0;padding-top:var(--nav-h)}
  .mos{position:relative;inset:auto;grid-template-columns:7fr 5fr!important;grid-template-rows:none!important;grid-auto-rows:auto;gap:1px;background:var(--link);transition:none}
  .mos > i{display:none}
  .m-txt{grid-area:auto;grid-column:1 / -1;background:var(--ivory);box-shadow:none}
  .m-p{grid-area:auto;grid-column:1 / -1;aspect-ratio:16/10}
  .m-a{grid-area:auto;aspect-ratio:7/6}.m-b{grid-area:auto;aspect-ratio:5/6}.m-f{grid-area:auto;aspect-ratio:7/5}.m-g{grid-area:auto;aspect-ratio:1}
  .m-e{grid-area:auto;grid-column:1 / -1;aspect-ratio:16/9}
  .m-c,.m-d{display:none}
}

/* ================= 2 · STORY: still. Text on the 5/12 line, one picture beside it ================= */
.pair-g{position:relative;display:grid;gap:0}
.pair-g > *{position:relative;min-width:0}
.pair-g .nx{z-index:3}
@media (min-width:900px){.pair-g{grid-template-columns:minmax(0,5fr) minmax(0,7fr)}}
.pair-g .txt{padding:clamp(1.5rem,2vw,2.25rem) clamp(1.5rem,3vw,3rem) clamp(1.5rem,2vw,2.25rem) clamp(1rem,.7rem + 1vw,1.75rem);display:grid;gap:1rem;align-content:start}
.pair-g .pic{position:relative;overflow:hidden;min-height:clamp(320px,40vw,560px)}
.pair-g .pic > img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.story .txt{align-content:space-between;gap:2.5rem}
.story .lines{display:grid;gap:.9rem;max-width:34ch}
.story .lines p{margin:0}
@media (max-width:899px){.pair-g .txt{padding:1.5rem 1rem 2rem}.pair-g .pic{min-height:0;aspect-ratio:4/3}}

/* ================= 3 · GENESIS: one intro, then the Genesis page ================= */
@media (min-width:900px){.gen .pair-g{grid-template-rows:minmax(0,1fr) auto}.gen .txt{grid-row:1 / 3}}
@media (min-width:900px){.gen .pic{min-height:clamp(280px,30vw,440px)}}
.steps{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,4fr) minmax(0,3fr)}
.steps > div{padding:clamp(1.25rem,1.6vw,1.75rem) clamp(1rem,.7rem + 1vw,1.75rem);display:grid;gap:.8rem;align-content:start}
.steps > div + div{box-shadow:inset 1px 0 0 var(--link)}
.steps .copy{font-size:.85rem}
@media (max-width:899px){.steps{grid-template-columns:1fr}.steps > div + div{box-shadow:inset 0 1px 0 var(--link)}}

/* ================= 4 · DOMAINS: choose one and it opens (no scroll-driven steps) ================= */
.dom .fluid{height:max(min(80svh,720px),600px)}
.dw{cursor:pointer}
.dbtn::after{display:none}
.dbtn{min-width:44px}
.dw .in{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:1rem;padding-top:2.6rem}
@media (min-width:900px){.dw .in.wide-only{position:absolute;inset:0;right:auto;width:calc((100vw - 2 * var(--m)) * .62)}}
.dw .ph{position:relative;min-height:0;overflow:hidden}
.dw .ph img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.dw .body{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:1.5rem;align-content:start}
.prods{list-style:none;margin:0;padding:0;display:grid}
.prods li{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:1rem;padding:.7rem 0;border-top:1px solid var(--line)}
.prods .lab{height:26px;width:auto}
.prods .lab[src*="chainx"]{height:36px}
.prods .name{font-family:var(--mono);font-weight:300;font-size:.8rem;line-height:1;letter-spacing:.01em;text-transform:none}
.prods .copy{font-size:.8rem;line-height:1.45}
@media (min-width:900px) and (max-height:720px){.prods li{padding:.4rem 0}.prods .copy{line-height:1.3}}
.dw .vname{font-size:clamp(1.1rem,.8rem + .8vw,1.6rem)}
@media (max-width:899px){
  .dom .fluid{height:auto;display:flex;flex-direction:column}
  .dw .in{position:relative}.dw .wide-only,.dw .wide-only > *{opacity:1;transform:none}.dw .vname{display:none}
  .dw .ph{aspect-ratio:4/3}.dw .body{grid-template-columns:1fr}
}

/* ================= 4 · AI LAB: a small strip straight after Genesis (Danil, 19 Oct) ================= */
.ailab{padding:clamp(1.5rem,1rem + 1.5vw,2.5rem) var(--m)}
.ailab .txt{align-content:center}
@media (min-width:900px){.ailab .t2{display:flex;justify-content:space-between;align-items:center;gap:2rem}}
.ailab .t2 .copy{max-width:52ch}

/* the Genesis logo in place of the graphic (Danil, 19 Oct): the label on its white plate, as in the hero */
.gen .pic.glogo{background:#fff;display:grid;place-items:center}
/* the label is sized from the corner unit, so its own corner sits within 1.3x of the stamp corners around it (p.42, p.47) */
.gen .pic.glogo > img{position:relative;inset:auto;width:calc(var(--nx) * 14.5);height:auto;object-fit:contain}
.ph-note{font-family:var(--mono);font-size:.68rem;line-height:1.3;letter-spacing:.01em;text-transform:uppercase;color:var(--ink-2);border-bottom:1px dashed var(--link);padding-bottom:2px;max-width:30ch;text-align:center}
.dw .mods{line-height:1.6;max-width:46ch}
.stamp-f{position:absolute;pointer-events:none;z-index:2}
/* the Genesis viewfinder is sized from the corner unit too, so it frames the label with even air at every width */
/* 21 Oct (Danil): no four-corner stamp around a label that carries its own corner */
/* pictures at the right margin run to the page edge, like the lines (one grid) */
@media (min-width:900px){.pair-g .pic{margin-right:calc(-1 * var(--m))}}
/* the AI Lab strip shares the Genesis closing line: no second line with an empty band between */
@media (min-width:900px){.gen.pad{padding-bottom:0}.ailab{padding-top:0}}

/* ================= 8 · FINALE: the Teams-background composition (p.71) ================= */
.fin{position:relative;overflow:hidden;padding-top:var(--nav-h)}
.fin .fluid{position:relative;z-index:var(--z-content);min-height:calc(100svh - var(--nav-h))}
.f-main{grid-area:2/2/3/3}.f-tag{grid-area:3/3/4/4}
.f-main .in{position:relative;inset:auto;justify-content:center;gap:1.75rem;padding:clamp(2rem,1.5rem + 3vw,4.5rem)}
.fin .ln-v{position:absolute;top:calc(-1 * var(--nav-h));bottom:0;width:1px;background:var(--link)}
.fin .ln-h{position:absolute;left:0;right:0;height:1px;background:var(--link)}
@media (max-width:899px){.fin{padding-top:0}.fin .fluid{min-height:0;display:flex;flex-direction:column;padding:4rem var(--m)}.fin .fw .in{position:relative}.fin .ln-v,.fin .ln-h{display:none}.fin .f-main,.fin .f-tag{box-shadow:inset 1px 1px 0 var(--link)}}

/* ================= FOOTER ================= */
.foot .wordmark .logo{width:96px}

/* 21 Oct (Shemoel, design pack d8fcee0): the homepage video block and the AI Lab logo, copied from homepage-b. */
/* ================= 3 · VIDEOS: two films in a still grid like the hero mosaic (Danil, 21 Oct): windows of different sizes,
   coral hairlines along every edge, the corner on Our Story. On phones the two films stack */
.vids{padding:clamp(3rem,2rem + 3vw,5rem) 0}
.vg{display:grid;gap:1px;background:var(--link);border-block:1px solid var(--link)}
.vg > *{position:relative;min-width:0;overflow:hidden;background:var(--ivory)}
.vw > img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.vw > .nx{z-index:3}
.v-head{display:grid;gap:1rem;align-content:end;padding:clamp(1.5rem,2vw,2.25rem) clamp(1rem,.7rem + 1vw,1.75rem) clamp(1.5rem,2vw,2.25rem) var(--m)}
@media (min-width:900px){.vg{grid-template-columns:minmax(0,3fr) minmax(0,4fr) minmax(0,2fr) minmax(0,3fr);grid-template-rows:minmax(clamp(240px,22vw,380px),auto) clamp(200px,18vw,320px)}
  .v-head{grid-area:1/1/2/2}.v-a{grid-area:1/2/2/4}.v-p1{grid-area:1/4/3/5}.v-p2{grid-area:2/1/3/2}.v-b{grid-area:2/2/3/3}.v-p3{grid-area:2/3/3/4}}
/* in WordPress the video block can be switched off: Who we are and Genesis only lose their padding when it is there */
@media (min-width:900px){.story.pad:has(+ .vids){padding-bottom:0}.vids{padding:0}.vg{border-block:0}.vids + .gen.pad{padding-top:0}}
@media (max-width:899px){.v-p1,.v-p2,.v-p3{display:none}.vw{aspect-ratio:16/9}.v-head{padding:1.5rem var(--m)}}
.vplay{position:absolute;left:clamp(1rem,2vw,2rem);bottom:clamp(1rem,2vw,2rem);z-index:2;display:inline-flex;align-items:center;gap:.9rem;min-height:44px;padding:.5rem 1.1rem .5rem .5rem;border:0;border-radius:0;background:var(--ivory);color:var(--graphite);cursor:pointer;text-align:left}
.vplay .vpl{display:grid;place-items:center;width:40px;height:40px;border:1px solid var(--link);border-radius:50%}
.vplay:hover .vpl{border-color:var(--coral)}
.vplay:focus-visible{outline:1.5px solid var(--graphite);outline-offset:3px}
/* the AI Lab logo in its strip (AIQ's file, 21 Oct) */
.ailab .lablogo{height:clamp(52px,4.6vw,72px);width:auto;display:block}
