/* /ai (2026-11-29): five sections on the industry wireframe, as /education and /fintech.
   01 hero + the learning mosaic, 02 capabilities, 03 the "where it isn't sure" mosaic, 04 the product studies in a
   portal, 05 enquiry. Markup: native-ai.cjs. Script: native-ai.js. Laptop size (about 1512x860) only so far.
   Site tokens: ground #191a1c, paper #f5f1e7, ink #24251f, orange #fe5b2a, Hanken Grotesk, Nevka Mono. */
.an{--dark:#191a1c;--on:#f5f4ef;--on-2:#b7b7af;--on-3:#86857d;--hair:#ffffff1c;
  --paper:#f5f1e7;--ink:#24251f;--muted:#56594d;--line:#ccc8bb;--orange:#fe5b2a;
  --g:clamp(24px,5.8vw,88px);--max:1340px;
  --sans:"Inter",Arial,sans-serif;--mono:"Nevka Mono","JetBrains Mono",monospace;
  background:var(--paper);color:var(--ink);font-family:var(--sans);font-size:17px;line-height:1.5;overflow:clip;-webkit-font-smoothing:antialiased}
.an *,.an *::before,.an *::after{box-sizing:border-box}
.an :where(h1,h2,h3,p,figure,ul){margin:0;padding:0}
.an :where(ul){list-style:none}
.an :where(h1,h2,h3){font-weight:500;letter-spacing:-.04em;line-height:1.04}
.an :where(a){color:inherit}
.an :where(button){font:inherit;color:inherit;cursor:pointer}
.an-wrap{max-width:calc(var(--max) + 2*var(--g));margin:0 auto;padding:0 var(--g)}
.an h2{font-size:clamp(38px,3.7vw,58px)}
.an-sec{padding:clamp(88px,8.6vw,136px) 0}

/* the two mosaics: the site's glass tiles, drawn by assets/native-ai/tile-art.js into a canvas */
.an-stage{position:relative;isolation:isolate}
.an-stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.an-stage.is-off{display:none}

/* 01 hero: the mosaic stands in a lit case set into the dark */
.an-hero{background:var(--dark);color:var(--on);display:grid;align-items:center;min-height:calc(100svh - 82px);padding:clamp(40px,5.4vh,60px) 0}
.an-hero-grid{display:grid;grid-template-columns:minmax(0,.62fr) minmax(0,1fr);gap:clamp(40px,4.6vw,72px);align-items:center}
.an-hero h1{font-size:clamp(52px,5.15vw,80px);letter-spacing:-.05em;line-height:.98;text-wrap:balance}
.an-lead{margin-top:28px;font-size:clamp(17px,1.32vw,20px);line-height:1.5;color:var(--on-2);max-width:38ch}
.an-stage--learn{aspect-ratio:790/620;max-height:calc(100svh - 82px - 2*clamp(40px,5.4vh,60px));margin-left:auto;border-radius:14px;overflow:hidden;background:#eeede9;cursor:pointer}

/* 01 the surface: a pinned stage under the sticky 82px navbar, a long track to scroll through */
.an-sp{position:relative;height:1300vh;background:var(--paper)}
.an-sp-stage{position:sticky;top:82px;height:calc(100vh - 82px);overflow:hidden;background:var(--paper)}
.an-sp-photo,.an-sp-stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.an-sp-photo{object-fit:cover}
.an-sp-stage canvas{opacity:0;transition:opacity .4s}
.an-sp.is-live .an-sp-stage canvas{opacity:1}
.an-sp-copy{position:absolute;left:0;right:0;top:clamp(48px,9vh,96px);pointer-events:none}
.an-sp h1{max-width:15.5em;font-size:clamp(44px,4.1vw,64px);letter-spacing:-.045em;line-height:1.02;color:var(--ink);text-wrap:balance}
.an-sp.is-still{height:auto}
.an-sp.is-still .an-sp-stage{position:relative;top:0}
.an-sp.is-still canvas{display:none}

/* 02 capabilities: six tiles, a working drawing over each title; the tile inverts under the pointer */
.an-caps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:clamp(44px,4.4vw,68px)}
.an-caps li{--k:var(--ink);--bg:#ebe6d8;--acc:var(--ink);display:flex;flex-direction:column;border-radius:14px;background:var(--bg);color:var(--k);overflow:hidden;scroll-margin-top:110px;transition:background-color .45s,color .45s}
.an-caps li:hover{--k:#f5f4ef;--bg:#191a1c;--acc:var(--orange)}
.an-caps h3{padding:4px 28px 26px;font-size:clamp(22px,1.75vw,27px);letter-spacing:-.03em}
.an-cap-art{position:relative;aspect-ratio:400/190;margin:14px 14px 0}
.an-cap-art svg{display:block;width:100%;height:100%;overflow:visible}
.an-cap-art svg *{transition:stroke .45s,fill .45s,stroke-opacity .45s}
.an-caps .c-l{fill:none;stroke:var(--k);stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
.an-caps .c-f{opacity:.3}
.an-caps .c-a{stroke:var(--acc)}
.an-caps .c-a.c-f{opacity:.45}
.an-caps .c-s{fill:var(--k)}
.an-caps .c-pf{fill:var(--bg)}
.an-caps .c-inv{stroke:var(--bg)}
.an-caps .an-accf{fill:var(--acc)}
.an-caps .an-dot{fill:var(--acc)}
.an-caps .an-hl{fill:none;stroke:var(--acc);stroke-width:16;stroke-linecap:round;stroke-opacity:.13;stroke-dasharray:1}
.an-caps li:hover .an-hl{stroke-opacity:.95}
.an-caps .an-okc{fill:var(--acc);stroke:var(--bg);stroke-width:3}
.an-caps .an-okt{stroke-width:1.8}
.an-caps:not(.is-on) *{animation-play-state:paused!important}
/* knowledge search: the reader runs down the margin, stops, and the passage is marked */
.an-caps .x-read{animation:anRead 7s cubic-bezier(.5,0,.3,1) infinite}
.an-caps .x-hl{animation:anHl 7s cubic-bezier(.5,0,.3,1) infinite}
.an-caps .x-found{animation:anFound 7s linear infinite}
@keyframes anRead{0%,5%{transform:translateY(0);opacity:0}9%{transform:translateY(0);opacity:1}34%,86%{transform:translateY(60px);opacity:1}93%,100%{transform:translateY(60px);opacity:0}}
@keyframes anHl{0%,36%{stroke-dashoffset:1;opacity:1}52%,86%{stroke-dashoffset:0;opacity:1}93%,100%{stroke-dashoffset:0;opacity:0}}
@keyframes anFound{0%,40%{opacity:0}52%,86%{opacity:1}93%,100%{opacity:0}}
/* document processing: the scan passes down the page, then the fields fill */
.an-caps .x-scan{opacity:0;animation:anScan 7s linear infinite}
.an-caps .x-v1{animation:anS1 7s linear infinite}.an-caps .x-v2{animation:anS2 7s linear infinite}.an-caps .x-v3{animation:anS3 7s linear infinite}
.an-caps .x-k1,.an-caps .x-k2,.an-caps .x-k3{stroke-dasharray:1;stroke-width:1.8}
.an-caps .x-k1{animation:anK1 7s ease-out infinite}.an-caps .x-k2{animation:anK2 7s ease-out infinite}
@keyframes anScan{0%{transform:translateY(-56px);opacity:0}4%{opacity:1}34%{transform:translateY(56px);opacity:1}38%,100%{transform:translateY(56px);opacity:0}}
@keyframes anS1{0%,36%{opacity:0}40%,88%{opacity:1}94%,100%{opacity:0}}
@keyframes anS2{0%,46%{opacity:0}50%,88%{opacity:1}94%,100%{opacity:0}}
@keyframes anS3{0%,58%{opacity:0}62%,88%{opacity:1}94%,100%{opacity:0}}
@keyframes anK1{0%,40%{stroke-dashoffset:1;opacity:1}46%,88%{stroke-dashoffset:0;opacity:1}94%,100%{stroke-dashoffset:0;opacity:0}}
@keyframes anK2{0%,50%{stroke-dashoffset:1;opacity:1}56%,88%{stroke-dashoffset:0;opacity:1}94%,100%{stroke-dashoffset:0;opacity:0}}
/* support: the reply is written as a draft, a person approves it, it is sent */
.an-caps .x-ty1,.an-caps .x-ty2{stroke-dasharray:1}
.an-caps .x-ty1{animation:anTy1 7s linear infinite}.an-caps .x-ty2{animation:anTy2 7s linear infinite}
.an-caps .x-ok{transform-box:fill-box;transform-origin:center;animation:anOk 7s cubic-bezier(.3,1.4,.5,1) infinite}
.an-caps .x-sent{animation:anSent 7s linear infinite}
@keyframes anTy1{0%,8%{stroke-dashoffset:1;opacity:1}26%,88%{stroke-dashoffset:0;opacity:1}94%,100%{stroke-dashoffset:0;opacity:0}}
@keyframes anTy2{0%,26%{stroke-dashoffset:1;opacity:1}38%,88%{stroke-dashoffset:0;opacity:1}94%,100%{stroke-dashoffset:0;opacity:0}}
@keyframes anOk{0%,48%{transform:scale(0);opacity:0}54%,88%{transform:scale(1);opacity:1}94%,100%{transform:scale(1);opacity:0}}
@keyframes anSent{0%,58%{opacity:0}64%,88%{opacity:1}94%,100%{opacity:0}}
/* analytics: the question is typed, the bars answer it */
.an-caps .x-bar{transform-box:fill-box;transform-origin:50% 100%;animation:anBar 7s cubic-bezier(.3,.9,.3,1) infinite;animation-delay:calc(var(--i)*.09s)}
@keyframes anBar{0%,26%{transform:scaleY(0)}40%,86%{transform:scaleY(1)}94%,100%{transform:scaleY(0)}}
/* evaluation: the tests run column by column; the ones that fail stay open */
.an-caps .x-col{animation:anCol 7s linear infinite;animation-delay:calc(var(--i)*.34s)}
@keyframes anCol{0%,5%{opacity:0}6%,80%{opacity:1}86%,100%{opacity:0}}
/* review: the uncertain one is handed across, and decided */
.an-caps .x-pass{animation:anPass 7s cubic-bezier(.6,0,.2,1) infinite}
.an-caps .x-k3{animation:anK3 7s ease-out infinite}
@keyframes anPass{0%,10%{transform:translateX(0)}28%,76%{transform:translateX(58px)}92%,100%{transform:translateX(0)}}
@keyframes anK3{0%,34%{stroke-dashoffset:1;opacity:1}44%,76%{stroke-dashoffset:0;opacity:1}84%,100%{stroke-dashoffset:0;opacity:0}}

/* 03 demonstration: the mosaic lies on the paper itself; two kinds of example, and a way to start again */
.an-demo{padding-top:0}
.an-demo .an-figure{margin-top:clamp(8px,1vw,16px)}
.an-stage--sure{aspect-ratio:1340/540;margin:0 calc(-.5*var(--g))}
.an-stage--sure canvas{cursor:crosshair}
.an-teach{display:flex;align-items:center;justify-content:center;gap:26px;margin-top:6px}
.an-kinds{display:flex;gap:10px;padding:6px;border-radius:999px;background:#ebe6d8}
.an-kind{width:44px;height:44px;border:0;border-radius:50%;background:none;display:grid;place-items:center;transition:background-color .2s}
.an-kind::before{content:"";width:17px;height:17px;border-radius:4px;transform:rotate(45deg);transition:transform .25s cubic-bezier(.3,1.4,.5,1)}
.an-kind--o::before{background:linear-gradient(135deg,#ff8a5e,#fe5b2a 55%,#e2420f)}
.an-kind--d::before{background:linear-gradient(135deg,#6b6d66,#2c2d29 55%,#191a1c)}
.an-kind[aria-pressed="true"]{background:#fffdf7;box-shadow:0 1px 2px #24251f24}
.an-kind[aria-pressed="true"]::before{transform:rotate(45deg) scale(1.16)}
.an-kind:hover::before{transform:rotate(45deg) scale(1.16)}
.an-clear{height:44px;padding:0 20px;border:1px solid var(--line);border-radius:999px;background:none;font-size:15px;font-weight:500;transition:background-color .18s,border-color .18s,color .18s}
.an-clear:hover{background:var(--ink);border-color:var(--ink);color:var(--paper)}

/* 04 product */
.an-product{background:var(--dark);color:var(--on);scroll-margin-top:82px}
.an-product-grid{display:grid;grid-template-columns:minmax(0,.44fr) minmax(0,1fr);gap:clamp(40px,4.6vw,72px);align-items:stretch;margin-top:clamp(44px,4.4vw,68px)}
.an-product-copy{display:flex;flex-direction:column;padding:6px 0 4px}
.an-product-top{display:flex;align-items:center;justify-content:space-between;gap:16px}
.an-wordmark{font-size:23px;font-weight:500;letter-spacing:-.03em;line-height:1}
.an-status{font-size:14px;line-height:1;color:var(--on-3)}
.an-product-copy h3{font-size:clamp(30px,2.7vw,42px);margin-top:44px;text-wrap:balance;min-height:2.08em}
.an-product-copy>p{margin-top:16px;margin-bottom:40px;color:var(--on-2);font-size:17px;max-width:36ch;min-height:4.5em}
/* the three studies: a name each; the rule above the one playing fills as its time runs */
.an-studies{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:auto;border-top:1px solid var(--hair)}
.an-studies button{--an-run:0;display:flex;align-items:flex-start;padding:20px 0 2px;border:0;background:none;position:relative;font-size:19px;letter-spacing:-.02em;color:var(--on-3);transition:color .25s}
.an-studies button::before{content:"";position:absolute;left:0;right:14px;top:-1px;height:1px;background:var(--on);transform:scaleX(var(--an-run));transform-origin:0 50%;opacity:0}
.an-studies button[aria-pressed="true"]{color:var(--on)}
.an-studies button[aria-pressed="true"]::before{opacity:1}
.an-studies button:hover{color:var(--on)}
.an-ghost{display:inline-flex;align-self:flex-start;align-items:center;justify-content:center;min-height:50px;padding:0 26px;margin-top:28px;border:1px solid #ffffff38;border-radius:999px;font-size:16px;font-weight:500;text-decoration:none;transition:background-color .18s,border-color .18s,color .18s}
.an-ghost:hover{background:var(--on);border-color:var(--on);color:#151619}
/* the portal: each study's own site, live, playing its own preview */
.an-portal{position:relative;border-radius:14px;overflow:hidden;background:#e9e8e2;isolation:isolate;box-shadow:0 0 0 1px #ffffff17}
.an-portal-view{--an-fit:.6;position:relative;width:100%;aspect-ratio:1440/900;overflow:hidden}
.an-portal-poster{position:absolute;left:0;top:0;width:100%;height:100%;object-fit:cover;object-position:0 0;display:block}
.an-portal-view iframe{position:absolute;left:0;top:0;width:1440px;height:900px;border:0;transform-origin:0 0;transform:scale(var(--an-fit));pointer-events:none;opacity:0;transition:opacity .7s ease;background:#fff}
.an-portal-view iframe.is-ready.is-on{opacity:1;z-index:1}
.an-portal-link{position:absolute;inset:0;z-index:2;border-radius:inherit}
.an-portal-link:focus-visible{outline:2px solid var(--on);outline-offset:-4px}

/* 05 enquiry */
.an-enquiry-grid{display:flex;justify-content:space-between;gap:48px;align-items:flex-end}
.an-enquiry h2{font-size:clamp(44px,4.6vw,72px);letter-spacing:-.05em;text-wrap:balance}
.an-cta{display:inline-flex;align-items:center;min-height:54px;margin-bottom:10px;padding:0 28px;flex:none;border-radius:999px;background:var(--orange);color:#151619;font-size:16px;font-weight:600;text-decoration:none;transition:background-color .16s}
.an-cta:hover{background:#ff7a50}
.an :is(a,button):focus-visible{outline:2px solid currentColor;outline-offset:3px}
@media (prefers-reduced-motion:reduce){.an-caps *{animation:none!important}}
