/* AIQ page templates: the same system as homepage concept B, on top of shared/aiq.css.
   Brand: AIQ Brand Guidelines v1.0 (brand/BRAND-SPEC.md). Grid: complete and sparse (p.36-42): every composition's
   top and bottom lines run edge to edge, verticals sit at the primary frame, one horizontal closes it, nothing dangles.
   Product communication uses corners only, no lines (p.47). Frames move, text stays still. */

/* ---------- type (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}
.copy.ink{color:var(--graphite)}
.num{font-family:var(--display);font-weight:300;line-height:1;letter-spacing:.03em;font-variant-numeric:tabular-nums}
.ph-note{font-family:var(--mono);font-size:.68rem;line-height:1;letter-spacing:.01em;text-transform:uppercase;color:var(--ink-2);border-bottom:1px dashed var(--link);padding-bottom:2px}

/* ---------- buttons and links (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;cursor:pointer;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;gap:.5rem;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}
.arrow{display:inline-block;width:14px;height:14px;flex:none}
.actions{display:flex;flex-wrap:wrap;gap:1rem 1.5rem;align-items:center}

/* ---------- sections and frames ---------- */
.sec{position:relative;padding:4.5rem var(--m)}
.sec.tight{padding-block:3rem}
.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)}
/* a mesh section fades in under the shared line above it, rather than starting with a hard edge */
.sec.mesh{background:linear-gradient(var(--ivory),transparent clamp(64px,8vw,120px)),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)}
.head{display:grid;gap:1rem;max-width:62rem;margin-bottom:clamp(2rem,1.5rem + 2vw,3.5rem)}
.split{display:grid;gap:0}
@media (min-width:900px){.split{grid-template-columns:minmax(0,5fr) minmax(0,7fr)}.split.r{grid-template-columns:minmax(0,7fr) minmax(0,5fr)}}
.cell{position:relative;min-width:0;padding:clamp(1.5rem,2vw,2.25rem) clamp(1rem,.7rem + 1vw,1.75rem)}
.fw{position:relative;min-width:0;min-height:0;overflow:hidden}
.fw > img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.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 .in .wide-only,.fw .copy,.fw a{position:relative;z-index:2}
.vname{position:absolute;left:clamp(.8rem,1vw,1.2rem);top:calc(clamp(1rem,.7rem + 1vw,1.75rem) + 1.4rem);writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap}
.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}
[data-state]{cursor:pointer}

/* open coral lines along frame edges (placed by tpl.js); above pictures, below controls */
.xl{position:absolute;display:block;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}
@media (max-width:899px){.fluid > .fw > .nx,.split > .cell > .nx,.split > .fw[aria-hidden="true"] > .nx{display:none}.split > .fw[aria-hidden="true"]{display:none}}
/* phones (mobile view, 14 Oct): a mosaic keeps the corner on its open frame */
@media (max-width:899px){.fluid > .fw.on > .nx{display:block}}
.fw .in:focus-visible{outline:1.5px solid var(--graphite);outline-offset:-6px}

/* ---------- motion: text arrives once; an opening frame's text rises in ---------- */
.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}
.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-done{visibility:visible}
@media (max-width:899px){.fluid[data-fluid]{display:flex!important;flex-direction:column;height:auto!important}.fluid[data-fluid] > .fw{min-height:0}.fluid[data-fluid] .fw .in{position:relative}.fluid[data-fluid] .wide-only,.fluid[data-fluid] .wide-only > *{opacity:1;transform:none}.fluid[data-fluid] .vname{display:none}}

/* ---------- nav: solid ivory; the logo cell ends on the 5/12 spine, the actions sit in their own cell (p.44) ---------- */
.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}
.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}}
/* the brand cell ends on the page's 5/12 line, where every hero and split puts its vertical */
@media (min-width:900px){.nav-b{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);column-gap:0}.nav-b > *{grid-row:1}.nav-b .nav-brand{grid-column:1}
  .nav-b .nav-links{grid-column:2;justify-self:start;align-self:center;padding-left:clamp(1rem,.7rem + 1vw,1.75rem)}.nav-b .nav-right{grid-column:2;justify-self:end;align-self:stretch;padding-left:clamp(1.5rem,2.4vw,3rem)}}
@media (min-width:1366px){.nav-b .nav-links{display:flex;gap:clamp(1rem,1.2vw,1.75rem)}.nav-b .nav-right{gap:1.25rem}}
/* below 1760px the pause control lives in the menu, so the six section links fit (19 Oct) */
@media (max-width:1919px){.nav-b .navpause{display:none}}
@media (max-width:899px){.nav-brand{flex:1}}
/* phones: search moves into the menu so the tagline sits well clear of the logo (guardian, mobile view 14 Oct). No vertical lines in the nav (Shemoel, 14 Oct) */
@media (max-width:599px){.nav-b .navsearch{display:none}}
/* 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(3rem,3.6vw,5rem)}}
@media (max-width:1365px){.nav-b .nav-links{display:none}}

/* ---------- page hero ---------- */
.t-hero{position:relative;padding:calc(var(--nav-h) + clamp(2rem,3vw,3.5rem)) var(--m) 0;overflow:hidden}
.t-hero > .field{z-index:0}
.t-hero > *:not(.field):not(.xl){position:relative;z-index:1}
.crumbs{display:flex;flex-wrap:wrap;gap:.4rem .6rem;align-items:center;margin:0 0 clamp(1.5rem,2vw,2.25rem);padding:0;list-style:none}
.crumbs li{display:flex;align-items:center;gap:.6rem}
.crumbs li + li::before{content:"";width:14px;height:1px;background:var(--link)}
.crumbs a{text-decoration:none;display:inline-flex;align-items:center;min-height:44px}
.crumbs a:hover{text-decoration:underline;text-decoration-color:var(--coral);text-underline-offset:4px}
.t-hero .h-xl{max-width:14em}
.t-hero .h-xl.long{font-size:clamp(2rem,1.1rem + 2.6vw,3.6rem)}
.lede{font-family:var(--mono);font-weight:300;font-size:clamp(1rem,.95rem + .3vw,1.12rem);line-height:1.5;letter-spacing:.03em;color:var(--ink-2);max-width:48ch;margin:0}
.t-hero .split{min-height:clamp(380px,46vh,520px)}
.t-hero .cell.txt{display:flex;flex-direction:column;justify-content:space-between;gap:2rem;padding-left:0}
.t-hero .fw.pic{min-height:280px}
@media (min-width:900px){.t-hero .fw.pic{margin-top:calc(-1 * clamp(2rem,3vw,3.5rem))}}

/* ---------- stats: thin figures, coral dividers (p.44) ---------- */
.stats{display:grid;gap:2rem 0}
@media (min-width:900px){.stats{grid-template-columns:var(--stat-cols,minmax(0,3fr) minmax(0,2.4fr) minmax(0,2fr))}.stats > div + div{box-shadow:inset 1px 0 0 var(--link);padding-left:clamp(1rem,2vw,2rem)}}
.stats > div{display:grid;grid-template-rows:auto 3em;gap:.8rem;align-content:start}
.stats .n{font-family:var(--display);font-weight:300;font-size:clamp(2.8rem,1.6rem + 3.6vw,5.4rem);line-height:1;letter-spacing:.03em}
.stats .k{max-width:20ch}

/* ---------- rows: hairline lists (news, roles, benefits, people) ---------- */
.rows{list-style:none;margin:0;padding:0;border-top:1px solid var(--line-2)}
.tabs + .rows{border-top:0}
.rows > li{border-bottom:1px solid var(--line)}
.rows > li > a,.rows > li > .row{display:grid;gap:.6rem 2rem;padding:1.4rem 0;text-decoration:none;color:inherit;align-items:baseline}
@media (min-width:900px){.rows > li > a,.rows > li > .row{grid-template-columns:var(--row-cols,minmax(0,2fr) minmax(0,7fr) minmax(0,3fr))}}
.rows > li > a{transition:padding .5s var(--ease)}
.rows > li > a:hover,.rows > li > a:focus-visible{padding-left:.75rem}
.rows .go{justify-self:end;display:inline-flex;align-items:center;gap:.5rem}

/* ---------- prose (articles, policies) ---------- */
.prose{max-width:64ch}
.prose > * + *{margin-top:1.1rem}
.prose p:not([class]),.prose li{font-family:var(--mono);font-weight:300;font-size:1rem;line-height:1.6;letter-spacing:.03em;color:var(--ink-2)}
.prose h2{font-family:var(--display);font-weight:300;font-size:clamp(1.35rem,1rem + 1vw,2rem);line-height:1.1;letter-spacing:.03em;color:var(--graphite);margin-top:2.5rem}
.prose ul{padding-left:1.1rem}
.prose li + li{margin-top:.5rem}
.quote{position:relative;padding:clamp(1.5rem,2vw,2.5rem) clamp(1.25rem,2vw,2.5rem)}
.quote blockquote{margin:0;font-family:var(--display);font-weight:300;font-size:clamp(1.35rem,1rem + 1.1vw,2.1rem);line-height:1.1;letter-spacing:.03em;color:var(--graphite)}
.quote figcaption{margin-top:1.25rem;display:grid;gap:.4rem}

/* ---------- forms: underlined fields, uppercase labels (p.44) ---------- */
.form{display:grid;gap:1.5rem 2rem}
@media (min-width:700px){.form{grid-template-columns:1fr 1fr}.form .wide{grid-column:1 / -1}}
.field-row{display:grid;gap:.55rem}
.field-row label{font-family:var(--mono);font-weight:300;font-size:.72rem;line-height:1;letter-spacing:.01em;text-transform:uppercase;color:var(--ink-2)}
.field-row input,.field-row select,.field-row textarea{font:inherit;font-family:var(--mono);font-weight:300;font-size:1rem;letter-spacing:.03em;color:var(--graphite);background:transparent;border:0;border-bottom:1px solid rgba(39,45,45,.62);border-radius:0;padding:.7rem 0;min-height:44px}
.field-row textarea{min-height:7rem;resize:vertical}
.field-row input:focus-visible,.field-row select:focus-visible,.field-row textarea:focus-visible{outline:1.5px solid var(--graphite);outline-offset:4px;border-bottom-color:var(--coral)}
.form .note{font-size:.8rem}

/* ---------- product labels ---------- */
.label-img{height:clamp(34px,3vw,48px);width:auto;display:block}
.label-sm{height:26px;width:auto;display:block}
.stamp-f{position:absolute;pointer-events:none;z-index:2}

/* ---------- footer ---------- */
.foot .wordmark .logo{width:96px}
.cell > .pill,.cell > .tlink{justify-self:start}
.spot-f{position:relative;display:grid;gap:1.1rem;justify-items:start;width:min(40rem,100%);padding:clamp(1.5rem,2vw,2.25rem)}

/* text measures that stay fixed while frames move (desktop only) */
.fixw{width:auto}
@media (min-width:900px){.fixw{width:var(--fw)}}

/* figures: a static, asymmetric frame grid (Danil, 9 Oct): the heading, all figures in one frame, open frames */
.figs{display:grid;gap:0}
@media (min-width:900px){.figs{grid-template-columns:minmax(0,5fr) minmax(0,4fr) minmax(0,3fr);grid-template-rows:auto}
  .figs .f-head{grid-area:1/1/2/2}.figs .f-nums{grid-area:1/2/2/4}.figs .f-e1{grid-area:2/1/3/2}.figs .f-e2{grid-area:2/2/3/3}.figs .f-e3{grid-area:2/3/3/4}}
.figs .f-head{display:grid;gap:1rem;align-content:start;padding:clamp(1.5rem,2vw,2.25rem) clamp(1.5rem,3vw,3rem) clamp(1.5rem,2vw,2.25rem) 0}
.figs .f-nums{display:grid;gap:2rem;padding:clamp(1.5rem,2vw,2.25rem) clamp(1rem,.7rem + 1vw,1.75rem) clamp(1.5rem,2vw,2.25rem) clamp(1.5rem,3vw,3rem)}
@media (min-width:900px){.figs .f-nums{grid-template-columns:var(--fig-cols,minmax(0,3fr) minmax(0,2.4fr))}.figs .f-nums > div + div{padding-left:clamp(1rem,2vw,2rem)}}
.figs .f-nums > div{display:grid;grid-template-rows:auto 3em;gap:.8rem;align-content:start}
.figs .n{font-family:var(--display);font-weight:300;font-size:clamp(2.8rem,1.6rem + 3.6vw,5.4rem);line-height:1;letter-spacing:.03em}
.figs .f-nums .k{max-width:22ch}
@media (max-width:899px){.figs .f-e1,.figs .f-e2,.figs .f-e3{display:none}}
/* product figures (p.47): two corners frame the figures, no lines, no dividers */
.figs.one-row .f-nums > div + div{box-shadow:none}
.figs.one-row .f-nums{position:relative}
.figs.one-row .f-nums > .nx{position:absolute}
@media (min-width:900px){.figs.one-row{grid-template-rows:auto}}

/* =================== v2 components (rebuilt against the live aiq.ae) =================== */
/* filters: search, tabs and selects sit on one hairline row */
.filters{display:flex;flex-wrap:wrap;align-items:center;gap:1rem 2rem;margin:0 0 2rem}
.tabs{display:flex;flex-wrap:wrap;gap:0 1.5rem}
.tab{border:0;background:none;padding:0;min-height:44px;min-width:44px;text-align:center;cursor:pointer;font-family:var(--mono);font-weight:300;font-size:.72rem;letter-spacing:.01em;text-transform:uppercase;color:var(--ink-2)}
.tab[aria-pressed="true"]{color:var(--graphite);text-decoration:underline;text-decoration-color:var(--coral);text-underline-offset:6px}
.tab:focus-visible{outline:1.5px solid var(--graphite);outline-offset:4px}
.fsearch,.fsel select,.sform input{font:inherit;font-family:var(--mono);font-weight:300;font-size:1rem;letter-spacing:.03em;color:var(--graphite);background:transparent;border:0;border-bottom:1px solid rgba(39,45,45,.62);border-radius:0;padding:.55rem 0;min-height:44px}
.fsearch{flex:1 1 16rem;max-width:26rem}
.fsel{display:inline-flex;align-items:center;gap:.75rem}
.fsel select{min-width:9rem;cursor:pointer}
.fsearch:focus-visible,.fsel select:focus-visible,.sform input:focus-visible{outline:1.5px solid var(--graphite);outline-offset:4px;border-bottom-color:var(--coral)}
.more{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-top:1.25rem}
.count{margin:1.25rem 0 0}.more .count{margin:0}
.empty{margin-top:1.25rem}
[data-list] > li[hidden]{display:none}

/* list beside one frame: the frame shows the picture of the item in focus (one image at a time) */
.rows > li > button.vrow{all:unset;box-sizing:border-box;display:grid;gap:.6rem 2rem;width:100%;padding:1.4rem 0;cursor:pointer;align-items:baseline;transition:padding .5s var(--ease)}
@media (min-width:900px){.rows > li > button.vrow{grid-template-columns:var(--row-cols,minmax(0,2fr) minmax(0,7fr) minmax(0,3fr))}}
.rows > li > button.vrow:hover,.rows > li > button.vrow:focus-visible{padding-left:.75rem}
.rows > li > .vrow:focus-visible{outline:1.5px solid var(--graphite);outline-offset:-2px}
.rows > li > .vrow.on .h-s{text-decoration:underline;text-decoration-color:var(--coral);text-underline-offset:5px;text-decoration-thickness:1px}
.viewer .vl{min-width:0}
.vframe{overflow:visible}
.vstick{position:sticky;top:calc(var(--nav-h) + 2rem);margin:clamp(1rem,2vw,2rem) 0;aspect-ratio:4/3;overflow:hidden}
.vstick.r32{aspect-ratio:3/2}.vstick.r34{aspect-ratio:3/4;max-height:calc(100svh - var(--nav-h) - 6rem);margin-left:auto;margin-right:auto}
.vstick > .nx{z-index:2}
.vimg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .6s var(--ease)}
.vimg.on{opacity:1}
@media (max-width:899px){.vframe{display:none}}

/* a media frame: its picture shows only while it is the open frame */
.mf .mimg{position:absolute;inset:0;overflow:hidden;opacity:0;transition:opacity .7s var(--ease)}
.mf .mimg img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.mf.on .mimg{opacity:1}
.mf .in{justify-content:space-between}
.mf.on .fbtn .k,.mf.on .mcap{background:var(--ivory);padding:.35rem .6rem}
.mf.on .fbtn{min-height:0;align-self:start}
.mf .mcap{max-width:34ch;align-self:start}
@media (max-width:899px){.mf .mimg{position:relative;display:block;aspect-ratio:16/10;opacity:1}.mf .mimg img{position:absolute}}

/* video: a poster frame; the film opens in a dialog */
.vid{position:relative;min-height:clamp(260px,32vw,440px)}
.vid > img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.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}

/* dialogs: search, bios, films */
.dlg{border:0;padding:0;margin:auto;width:min(960px,calc(100vw - 2 * var(--m)));max-height:calc(100svh - 4rem);background:var(--ivory);color:var(--graphite);border-top:1px solid var(--link)}
.dlg::backdrop{background:rgba(249,249,244,.85)}
.dlg-in{position:relative;padding:clamp(1.25rem,2.5vw,2.5rem)}
.dlg-top{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1.5rem}
.dlg-search{margin-top:calc(var(--nav-h) + 1rem)}
.sform{display:flex;flex-wrap:wrap;gap:1rem 1.5rem;align-items:end}
.sform input{flex:1 1 18rem;font-size:clamp(1.1rem,1rem + .6vw,1.5rem)}
.bio{display:grid;gap:clamp(1.25rem,3vw,2.5rem)}
.bio > img{width:min(260px,60%);aspect-ratio:3/4;object-fit:cover;object-position:50% 18%}
@media (min-width:760px){.bio{grid-template-columns:minmax(0,4fr) minmax(0,8fr)}.bio > img{width:100%}}
.vbox{min-height:clamp(220px,40vw,420px);display:grid;place-items:center;border:1px solid var(--line-2)}
.navsearch{display:inline-grid;place-items:center;width:44px;height:44px;border:0;background:none;color:var(--graphite);cursor:pointer}
.navsearch:focus-visible{outline:1.5px solid var(--graphite);outline-offset:2px}

/* forms: phone with country code, the "other" field, required marks */
.tel{display:grid;grid-template-columns:auto minmax(0,1fr);gap:1rem}
.field-row label .req{text-transform:none}
.field-row input[readonly]{color:var(--ink-2)}

/* footer newsletter; cookie bar */
.news-f{display:grid;gap:.6rem;max-width:26rem}
.news-row{display:flex;gap:1rem;align-items:center;border-bottom:1px solid rgba(39,45,45,.62)}
.news-row input{flex:1;min-width:0;font:inherit;font-family:var(--mono);font-weight:300;font-size:.95rem;letter-spacing:.03em;color:var(--graphite);background:transparent;border:0;padding:.6rem 0;min-height:44px}
.news-row input:focus-visible{outline:1.5px solid var(--graphite);outline-offset:4px}
.review-note{opacity:.8}
.cookie{position:fixed;left:var(--m);right:var(--m);bottom:1rem;z-index:60;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem 2rem;padding:1rem clamp(1rem,2vw,1.5rem);background:var(--ivory);border-top:1px solid var(--link)}
.cookie[hidden]{display:none}
.cookie .copy{margin:0}
.quote blockquote.long{font-size:clamp(1.15rem,.95rem + .6vw,1.6rem);line-height:1.1}
.swelcome{margin-top:2.5rem;display:grid;gap:.75rem}

/* review round 1 */
.logos .logo-c{height:44px;width:auto;max-width:180px;object-fit:contain;object-position:left center}
.split.pair{position:relative}
p .tlink,.note .tlink,.cookie .tlink{display:inline;min-height:0}
.review-note{margin:1rem 0 0}
.foot-base .k:last-child{color:var(--graphite)}
@media (max-width:899px){.mf:not(:first-child) .mimg{display:none}}
/* form errors: graphite message, the field's underline turns coral (no coral text, EX-01) */
.field-row.err input,.field-row.err select,.field-row.err textarea{border-bottom-color:var(--coral)}
.field-row .msg{font-family:var(--mono);font-weight:300;font-size:.8rem;letter-spacing:.03em;color:var(--graphite)}
.field-row .msg::before{content:"";display:inline-block;width:10px;height:1px;background:var(--coral);vertical-align:middle;margin-right:.5rem}

/* =================== window compositions (Danil, 13 Oct: no symmetrical grid; windows of different sizes, connected) ===================
   Windows sit on unequal twelfths and tile their composition; tpl.js draws the coral lines along their shared edges and puts
   the corner on the highlighted window, where two lines meet. One picture and one gradient panel at most; the rest is open. */
.comp{position:relative;display:grid;gap:0}
@media (min-width:900px){.comp{grid-template-columns:repeat(12,minmax(0,1fr))}}
.comp > .w{position:relative;min-width:0;padding:clamp(1.5rem,2vw,2.25rem) clamp(1rem,.7rem + 1vw,1.75rem)}
.comp > .w.edge{padding-left:0}
.comp > .w.txt{display:grid;gap:1.25rem;align-content:start}
.comp > .w.txt.end{align-content:end}
.comp > .w.pic,.comp > .w.grad,.comp > .w.open{padding:0;min-height:var(--wh,clamp(130px,12vw,210px))}
.comp > .w.pic > img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.comp > .w > .nx{z-index:3}
/* the gradient panel: the brand mesh held in one window (p.36: one image, one gradient panel, plenty of ivory) */
.comp > .w.grad{background:radial-gradient(90% 110% at 0% 0%,var(--mint),transparent 70%),radial-gradient(80% 100% at 100% 100%,var(--peach),transparent 70%),radial-gradient(70% 90% at 100% 0%,var(--yellow),transparent 70%),var(--ivory)}
.comp > .w.grad.g2{background:radial-gradient(90% 110% at 100% 0%,var(--yellow),transparent 70%),radial-gradient(90% 110% at 0% 100%,var(--mint),transparent 70%),var(--ivory)}
.comp > .w.grad.g3{background:radial-gradient(100% 120% at 0% 100%,var(--peach),transparent 70%),radial-gradient(80% 100% at 100% 0%,var(--mint),transparent 70%),var(--ivory)}
/* layouts: a = text column beside a window over a strip of two; b = a narrow side column and one cross line;
   c = a staircase, a big and a small window meeting on the diagonal; d = a text column over a cross line, beside one tall window */
@media (min-width:900px){
  .comp.la{grid-template-rows:auto var(--strip,clamp(220px,21vw,360px))}
  .comp.lb{grid-template-rows:auto minmax(var(--side,clamp(200px,19vw,320px)),1fr)}
  .comp.lc{grid-template-rows:auto auto}
  .comp.ld{grid-template-rows:auto minmax(var(--side,clamp(160px,15vw,260px)),1fr)}
  .comp.lc > .w.pic,.comp.lc > .w.open{min-height:clamp(180px,17vw,300px)}
  .comp.ld > .w.pic.tall{min-height:clamp(340px,34vw,560px)}
}
@media (max-width:899px){
  .comp > .w{padding-left:0;padding-right:0}
  .comp > .w.grad,.comp > .w.open{display:none}
  .comp > .w.pic{min-height:0;aspect-ratio:16/10}
  .comp > .w.pic.m-hide{display:none}
}
/* the hero as windows: copy, the picture meeting the nav line, a strip of two open windows under it */
.t-hero .comp{min-height:clamp(380px,46vh,520px)}
@media (min-width:900px){.t-hero .comp{grid-template-rows:minmax(0,1fr)}
  .t-hero .comp > .w.pic.top{margin-top:calc(-1 * clamp(2rem,3vw,3.5rem))}}
.t-hero .comp > .w.txt{display:flex;flex-direction:column;justify-content:space-between;gap:2rem}
.t-hero .comp > .w.pic{min-height:280px}
@media (max-width:899px){.t-hero .comp > .w.pic{aspect-ratio:auto;min-height:260px}}
/* a list beside one frame, as windows: the head over a cross line, the list under it, the frame beside both */
/* (14 Oct) the picture fills its own window beside the head, so it meets the lines and its corner sits on the junction;
   an open window under it, beside the list. No floating or sticky picture */
.comp.viewer > .w.vframe{padding:0;min-height:clamp(300px,28vw,460px)}
.comp.viewer > .w.vframe.r34{min-height:clamp(420px,40vw,640px)}
@media (min-width:900px){.comp.viewer{grid-template-rows:auto 1fr}}
/* long text in a window: the window fills its tracks (its edges carry the lines); the measure is set on the text */
.comp > .w.prose{display:block;max-width:none}
.comp > .w.prose > *{max-width:64ch}
.comp > .w.quote{display:grid;gap:1.25rem;align-content:start}
.comp.gal > .w.txt{align-content:end}
/* windows in a fixed strip fill their row exactly, so nothing hangs below the closing line */
@media (min-width:900px){.comp.la > .w.pic,.comp.la > .w.grad,.comp.la > .w.open,.t-hero .comp > .w.open:not(.top){min-height:0}}
/* phones: the windows stack in reading order (their twelfths are set inline for wide screens only) */
@media (max-width:899px){.comp > .w{grid-column:1 / -1!important;grid-row:auto!important}}
/* guardian 14 Oct: a corner never inherits the text flow's margins; a gradient panel at the margin bleeds to the page edge */
.comp > .w > .nx{z-index:3;margin:0}
@media (min-width:900px){.comp > .w.grad.edge{margin-left:calc(-1 * var(--m))}}
/* the tagline in the nav logo cell, at the cell's far end (p.16; Danil 9 Oct; back 14 Oct). Graphite (EX-01) */
.navtag{font-size:.72rem;white-space:nowrap}
.nav-brand{gap:1rem}.nav-brand .wordmark{flex-shrink:0}
@media (max-width:359px){.navtag{display:none}}
/* guardian round 2: gradient panels at the right margin bleed too; the tagline is quieter than the nav links */
@media (min-width:900px){.comp > .w.grad.edge-r{margin-right:calc(-1 * var(--m))}}
.navtag{color:var(--ink-2)}
/* pre-send pass, 14 Oct
   - a picture window at the margin runs to the page edge, like the lines and the gradient panels */
@media (min-width:900px){.comp > .w.pic.edge-r{margin-right:calc(-1 * var(--m))}.comp > .w.pic.edge{margin-left:calc(-1 * var(--m))}}
/* - a mosaic shows every window's copy at once; choosing a window only gives it more room (no empty-looking windows) */
@media (min-width:900px){.fluid[data-fluid] .wide-only,.fluid[data-fluid] .wide-only > *{opacity:1;transform:none;transition:none}}
/* - figures sit on a clear grid: a line between the figures, from the top line to the bottom one, and the corner on its frame */
.figs .f-nums{padding-top:0;padding-bottom:0;align-items:stretch}
.figs .f-nums > div{padding-top:clamp(1.5rem,2vw,2.25rem);padding-bottom:clamp(1.5rem,2vw,2.25rem)}
@media (min-width:900px){.figs:not(.one-row) .f-nums > div + div{box-shadow:inset 1px 0 0 var(--link)}}
@media (max-width:899px){.figs .f-nums{padding-left:0;padding-right:0}.figs .f-nums > div + div{padding-top:0}}
/* - mosaics are still on desktop too (Mubeena, 13 Oct: keep it simple, copy stays still): every window shows its copy and is
     sized to it; the big window spans both rows. Choosing a window only moves the highlight (and its picture), nothing zooms */
@media (min-width:900px){
  .fluid.mos2[data-fluid]{height:auto!important;grid-template-columns:minmax(0,7fr) minmax(0,5fr)!important;grid-template-rows:auto auto!important}
  .fluid.mos2.team-f[data-fluid]{grid-template-columns:minmax(0,5fr) minmax(0,7fr)!important}
  .fluid.mos2 > .fw{min-height:clamp(200px,18vw,300px)}
  .fluid.mos2 > .fw .in{position:relative;inset:auto;height:100%}
}
/* - figures (not product): the frames reach the shared line above, and the figures sit on the open row's columns, so the
     line between them runs on into the row below (one grid, Danil 9 Oct; Mubeena 13 Oct: stats on a clear, light, static grid) */
@media (min-width:900px){
  .figs:not(.one-row) .f-nums{grid-template-columns:subgrid;padding-left:0;padding-right:0;gap:0}
  .figs:not(.one-row) .f-nums > div{padding-left:clamp(1.5rem,3vw,3rem);padding-right:clamp(1rem,.7rem + 1vw,1.75rem)}
}

/* 15 Oct (Danil: desktop still too complicated, long empty breaks between blocks): no empty filler windows, tighter sections.
   A picture that now sits in one row beside its caption keeps a picture-sized height */
@media (min-width:900px){.comp > .w.pic.big{min-height:clamp(260px,24vw,400px)}.comp.gal > .w.txt{align-content:start}.comp.lq blockquote{max-width:60ch}.t-hero .comp.solo{min-height:clamp(300px,34vh,420px)}}
@media (min-width:900px){.fluid.mos2 > .fw:not(.mf) .in{justify-content:flex-start}.fluid.mos2 > .fw:not(.mf) .in > .wide-only{margin-top:.5rem}}
/* 15 Oct (guardian): one grid down the page. A section whose composition shares the line above sits close under it, the
   section before it closes close to its line, and the last section's windows run down to the footer line */
@media (min-width:900px){.sec:has(> [data-grid-notop],> [data-grid-join]){padding-top:clamp(1rem,1.6vw,1.75rem)}
  .sec:has(+ .sec > [data-grid-notop],+ .sec > [data-grid-join]){padding-bottom:clamp(1rem,1.6vw,1.75rem)}
  .sec:has(> .head){padding-top:clamp(1.5rem,2vw,2.25rem)}
  .sec:has(+ .sec > .head){padding-bottom:clamp(1rem,1.6vw,1.75rem)}
  main > .sec:last-of-type{padding-bottom:0}}
/* 15 Oct, second pass (Shemoel: still long empty areas). List pages: the frame beside the heading, the list full width
   under both. Mosaics on desktop: the three windows in one row at unequal widths, so no window spans an empty second row */
@media (min-width:900px){.comp.viewer.vtop > .w.vframe{min-height:clamp(260px,22vw,380px)}
  .fluid.mos2[data-fluid]{grid-template-columns:minmax(0,5fr) minmax(0,4fr) minmax(0,3fr)!important;grid-template-rows:auto!important}
  .fluid.mos2.team-f[data-fluid]{grid-template-columns:minmax(0,4fr) minmax(0,3fr) minmax(0,5fr)!important}
  .fluid.mos2 > .fw{grid-area:auto!important;min-height:0}}
@media (min-width:900px){.comp > .w.pic.side{min-height:clamp(260px,22vw,380px)}}
@media (min-width:900px){.spot-f{width:100%;grid-template-columns:minmax(0,2fr) minmax(0,2fr) minmax(0,6fr) minmax(0,2fr);column-gap:clamp(1.5rem,3vw,3rem);align-items:center}
  .spot-f > .tlink{justify-self:end}.spot-f > .note{grid-column:1 / -1}}

/* 19 Oct: figures, wide (Strategic Collaborations): the head over the figures, four to a row, a line between the rows */
@media (min-width:900px){.figs.wide{grid-template-columns:minmax(0,1fr)}
  .figs.wide .f-head{grid-area:1/1/2/2;max-width:62rem}
  .figs.wide .f-nums{grid-area:2/1/3/2;grid-template-columns:minmax(0,3fr) minmax(0,2.2fr) minmax(0,2.6fr) minmax(0,2fr)!important;row-gap:0}
  .figs.wide .f-nums > div:nth-of-type(4n+1){box-shadow:none;padding-left:0}
  .figs.wide .f-nums > div:nth-of-type(n+5){padding-top:0}}
@media (max-width:899px){.figs.wide .f-nums{grid-template-columns:minmax(0,7fr) minmax(0,5fr);column-gap:1.5rem}.figs.wide .f-nums > div + div{padding-top:clamp(1.5rem,2vw,2.25rem)}}
/* the ChainX label (19 Oct, Danil's master file) has more air around the name than the aiq.ae labels: a little taller, so
   the name reads at the same size */
.label-img[src*="chainx"]{height:clamp(48px,4.2vw,66px)}
.label-sm[src*="chainx"]{height:36px}
/* 19 Oct: six header links; from 1366 to 1535px Newsroom lives in the menu so the links stay clear of the actions */
@media (min-width:1366px) and (max-width:1679px){.nav-b .nav-links > a:last-child{display:none}}
/* 21 Oct: the AI Lab logo (AIQ's file) has the same extra air as ChainX, so it sits a little taller to match the other labels */
.label-img[src*="ailab"]{height:clamp(52px,4.6vw,72px)}
.label-sm[src*="ailab"]{height:38px}
/* 21 Oct (guardian): the newsletter placeholder in a Graphite tint, not the browser grey */
.news-row input::placeholder{color:var(--ink-2);opacity:1}
