/* Aperintelligence AI Academy, homepage only. Loaded after site.css, whose tokens
   it uses. The hero is ported from aperintelligence.com
   (aperintel/static/assets/home.css). The card stack and its controls are in
   card-stack.css and the sphere is in project-sphere.css, which this page also
   loads. */

/* ---------- hero ---------- */
/* Pulled up by the nav height so the photograph runs behind the sticky nav.
   Stacking, bottom to top: photograph, darkening wash, content. */
.hero{
  position:relative;overflow:hidden;
  margin-top:calc(var(--nav-h) * -1);
  min-height:min(100vh, 980px);
  display:flex;flex-direction:column;justify-content:center;
  padding:calc(var(--nav-h) + 56px) 0 var(--hero-fade-room);
  background:var(--ground-deep);border-bottom:1px solid var(--page-fade-edge);
}
/* The fade into the page is a fixed band at the foot of the hero, and the hero's bottom
   padding is that band plus a gap, so no text or control ever sits on the fade. In
   the light theme the fade turns cream, and light text over it would disappear. */
.hero{--hero-fade:120px;--hero-fade-room:calc(var(--hero-fade) + 24px);}
.hero .hero-bg img{object-position:62% 45%;animation:slow-zoom 30s ease-in-out infinite alternate;}
/* Heaviest on the left, where the headline sits over the photograph. */
.hero .hero-bg::after{
  content:"";position:absolute;inset:0;
  /* The fade into the page is listed first, so it is the top layer and reaches the page colour exactly. */
  background:
    linear-gradient(0deg, var(--page-fade) 0, transparent var(--hero-fade)),
    linear-gradient(270deg, rgba(16,13,11,.6) 0%, rgba(16,13,11,.48) 34%, rgba(16,13,11,.76) 58%, rgba(16,13,11,.88) 100%),
    linear-gradient(180deg, rgba(16,13,11,.8) 0%, rgba(16,13,11,0) 26%);
}
@keyframes slow-zoom{from{transform:scale(1);}to{transform:scale(1.06);}}
/* The hero is a column flexbox, so without a width its auto-margined wrap shrinks to its content and centres. */
.hero > .wrap{position:relative;z-index:2;width:100%;}
/* The copy comes first in the markup so phones and screen readers get the
   headline first; on desktop it sits on the left with the card stack on the right. */
.hero-grid{
  display:grid;grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr);grid-template-areas:"copy stream";
  gap:clamp(40px, 5.5vw, 96px);align-items:center;
}
.hero-copy{grid-area:copy;}
/* Sky blue (Julius, 2026-10-10). The hero keeps its dark wash in both themes, so one blue serves both: 5.7:1 at the brightest point of the photograph behind it. */
/* Larger than the rest of the type scale by request (Julius, 2026-10-10): the one line the 20 percent cut does not apply to. */
.hero h1{font-size:clamp(40px, 3vw + 18px, 68px);line-height:1.06;max-width:19ch;color:#7FB2FF;}
/* The lead is long by decision (it carries the apprenticeship line as written), so it gets a wider measure than a one-line lead would. */
.hero .lead{margin:28px 0 0;font-size:clamp(13px, 0.24vw + 11px, 14.5px);line-height:1.6;color:var(--text-soft);max-width:50ch;text-shadow:0 1px 12px rgba(16,13,11,.5);}

/* Entrance: the copy rises in sequence. The card stack beside it does not: its
   front card is there the moment the page opens (Julius, 2026-10-11). */
.hero-copy > *{animation:rise .8s var(--ease-out) both;}
.hero .lead{animation-delay:.08s;}
.hero .hero-actions{animation-delay:.14s;}

/* ---------- the stack of example cards beside the headline (card-stack.css) ---------- */
.hero .stream{grid-area:stream;min-width:0;}

/* ---------- the discipline: the opening paragraph beside a small sphere of project pictures (project-sphere.css) ---------- */
.discipline-teaser{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:clamp(32px, 5vw, 80px);align-items:center;}
.discipline-teaser h2{font-size:var(--fs-h2);}
.discipline-teaser p{margin-top:24px;max-width:58ch;font-size:var(--fs-intro);line-height:1.65;color:var(--text-muted);}
.discipline-teaser .sphere-stage{--sphere-max:380px;--sphere-label-size:14px;}

/* ---------- what you leave with: a reel of example projects and a photograph, over the artefacts (a .spec-list) ---------- */
.artefact-photos{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:clamp(40px, 5vw, 64px);}
.artefact-photos figure{margin:0;}
.artefact-photos img{width:100%;aspect-ratio:16 / 10;object-fit:cover;border-radius:var(--r-lg);}
.artefact-photos figcaption{margin-top:12px;font-size:var(--fs-meta);color:var(--text-muted);}
/* The reel (home.js): the example projects are stacked in one 16:10 box and take turns. */
.portfolio-reel{position:relative;aspect-ratio:16 / 10;}
.reel-slide{position:absolute;inset:0;opacity:0;transform:translateY(10px) scale(.985);transition:opacity .6s ease, transform .6s var(--ease-out);}
.reel-slide.is-current{opacity:1;transform:none;}
/* The evidence arrives half a second after its project, so the eye lands on the picture first. */
.evidence-chip{opacity:0;transform:translateY(6px);transition:opacity .4s ease .5s, transform .4s var(--ease-out) .5s;}
.is-current .evidence-chip{opacity:1;transform:none;}

/* ---------- Aperintelligence: a photograph under the market figures ---------- */
/* A .photo-section (site.css), on a photograph of the City of London at dusk. */
.market-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(40px, 6vw, 96px);align-items:end;}
.market h2{font-size:var(--fs-h2);}
.market-lead{margin-top:24px;max-width:52ch;font-size:var(--fs-intro);line-height:1.65;color:var(--text-soft);}
.market-lead a{color:var(--text);text-decoration:underline;text-underline-offset:3px;}
.figures{margin:0;display:grid;gap:32px;}
.figures > div{padding-top:18px;border-top:1px solid var(--line-strong);}
.figures dt{color:var(--text-soft);}
.figures dd{margin:0;}
.figure-value{margin-top:6px;font-family:var(--sans);font-weight:200;font-size:clamp(41.5px, 2.08vw + 24px, 61px);line-height:1;}
.figure-source{margin-top:10px;max-width:46ch;font-size:12px;color:var(--text-muted);}

@media (max-width:900px){
  .market-grid,.discipline-teaser{grid-template-columns:1fr;}
  .hero{--hero-fade:96px;min-height:0;padding-top:calc(var(--nav-h) + 48px);}
  .hero-grid{grid-template-columns:1fr;grid-template-areas:"copy" "stream";gap:48px;}
  /* Dark behind the text at the top, lighter lower down so the photograph reads as a lit room. */
  .hero .hero-bg::after{background:
    linear-gradient(0deg, var(--page-fade) 0, transparent var(--hero-fade)),
    linear-gradient(180deg, rgba(16,13,11,.86) 0%, rgba(16,13,11,.74) 40%, rgba(16,13,11,.66) 100%);}
}
@media (max-width:640px){
  .artefact-photos{grid-template-columns:1fr;}
}
