/* AI Economics page (v2.0, night of 22 October 2026). Loads after v2.css and changes nothing outside .aie.
   Seven bands: the hero with the live graphic from satellite pixel to policy decision, what AI Economics does
   (measure, foresee, decide), the four steps with a worked example, the sovereign platform, the applications in
   production with the research behind them, and the closing contact. The live graphics are canvases that
   assets/v2/aie/aie.js puts in each figure with data-aie; their labels are HTML, placed by the same script.
   Built to the removing-ai-ui-signs rule: one accent phrase per title in the brand gradient (the .v2-hl phrase of v2.css, 23 October 2026),
   neutral rules and borders, numbers in place of icons, no card stripe, no glow on an interface part, no hover
   lift, no pill, one call to action at the close. */

.aie [hidden] { display:none !important; }
/* the accent phrase of a title stays on one line, so a title breaks before it and never inside it */
.aie .v2-hl { white-space:nowrap; }

/* ---------- the live graphics and their labels ---------- */
.aie-fig { position:relative; margin:0; }
.aie-fig > canvas { position:absolute; left:0; top:0; width:100%; height:100%; display:block; }
.aie-lab { position:absolute; left:0; top:0; z-index:1; transform:translate(-50%, -100%); font-size:12.5px; font-weight:600; line-height:1.2;
  letter-spacing:0; white-space:nowrap; color:var(--t-h); opacity:0; transition:opacity .6s var(--v-ease); pointer-events:none; }
.aie-fig.aie-ready .aie-lab { opacity:1; }
.aie-fig .aie-lab.aie-off { display:none; }
/* on navy, a navy halo keeps a label clear of the lines behind it */
.v2-dark .aie-lab { text-shadow:0 0 3px #021825, 0 0 6px #021825, 0 0 10px #021825; }

/* ---------- background line art of the light bands ---------- */
.aie-art { position:absolute; inset:0; z-index:-1; width:100%; height:100%; pointer-events:none; fill:none; stroke:#216393; stroke-width:1; }
.aie-art * { vector-effect:non-scaling-stroke; }
.aie-art-rings { opacity:.13; }
.aie-art-contours { opacity:.14; }
.aie-art-ice { stroke:#8ED6E8; opacity:.1; }
.aie-how::before { content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:radial-gradient(rgba(33,99,147,.08) 1px, transparent 1.3px) 0 0 / 24px 24px; }

/* ---------- hero ---------- */
.aie-hero { display:flex; flex-direction:column; min-height:min(100vh, 980px); min-height:min(100svh, 980px);
  padding:clamp(112px,15vh,168px) 0 clamp(18px,3.6vh,40px); }
.aie-hero-in { width:100%; flex:none; }
.aie-hero .v2-h1 { max-width:18ch; }
.aie-hero .v2-l { max-width:58ch; }
.aie-go { margin-top:22px; }
.aie-fig-pixel { flex:1 1 auto; width:100%; min-height:clamp(250px, 34vh, 420px); margin-top:clamp(10px, 2.4vh, 32px); }

/* ---------- what AI Economics does: measure, foresee, decide ---------- */
.aie-moves { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:clamp(28px,4vw,64px); margin-top:clamp(36px,5vh,60px); }
.aie-fig-glyph { height:132px; margin-bottom:22px; border-bottom:1px solid var(--t-r); }
.aie-move-name, .aie-mission-name { font-size:clamp(26px,2.2vw,32px); line-height:1.1; letter-spacing:-.03em; font-weight:700; color:var(--t-h); }
.aie-move-lead { margin-top:10px; font-size:18px; line-height:1.4; letter-spacing:-.012em; font-weight:600; color:var(--t-h); }
.aie-move .v2-p, .aie-mission .v2-p { margin-top:10px; font-size:16px; }
.aie-ex { margin-top:20px; border-top:1px solid var(--t-r); }
.aie-ex li { position:relative; padding:11px 0 11px 22px; border-bottom:1px solid var(--t-r); font-size:15px; line-height:1.5; color:var(--t-b); }
.aie-ex li::before { content:""; position:absolute; left:0; top:21px; width:12px; border-top:1px solid var(--t-acc); }
/* the strip that joins the three moves into one process; a phone stacks the moves, so it has no strip */
.aie-fig-flow { height:56px; margin-top:clamp(26px,4vh,44px); }

/* ---------- the four steps, with a worked example ---------- */
.aie-how-head { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:24px 48px; }
.aie-switch-label { margin-bottom:10px; font-size:14px; font-weight:600; color:var(--t-m); }
.aie-switch { display:inline-flex; flex-wrap:wrap; gap:4px; padding:4px; border-radius:10px; background:rgba(255,255,255,.72); border:1px solid #D3E4EC; }
.aie-switch button { appearance:none; -webkit-appearance:none; margin:0; border:0; background:transparent; font:inherit; font-size:15px; font-weight:600;
  line-height:1.2; color:var(--t-b); padding:9px 14px; border-radius:7px; cursor:pointer; transition:background-color .2s, color .2s; }
.aie-switch button:hover { color:var(--t-h); }
.aie-switch button[aria-pressed="true"] { background:#0E2433; color:#ffffff; }
.aie-switch-box { display:none; }
.aie-js .aie-switch-box { display:block; }

.aie-steps-wrap { position:relative; margin-top:clamp(36px,5vh,56px); }
.aie-fig-rail { position:absolute; inset:0; z-index:0; pointer-events:none; }
.aie-steps { position:relative; z-index:1; display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:clamp(20px,2.6vw,40px); }
.aie-step { position:relative; padding-top:40px; }
.aie-node { position:absolute; left:7px; top:7px; width:2px; height:2px; }   /* the rail scene draws the node of the step here */
.aie-num { display:block; font-size:14px; font-weight:700; color:var(--t-k); font-variant-numeric:tabular-nums; }
.aie-step-name { margin-top:8px; font-size:19px; line-height:1.25; letter-spacing:-.014em; font-weight:650; color:var(--t-h); transition:color .5s var(--v-ease); }
.aie-step.is-on .aie-step-name { color:var(--t-k); }
.aie-step-text { margin-top:8px; font-size:15.5px; line-height:1.55; color:var(--t-b); }
.aie-case { margin-top:16px; padding-top:14px; border-top:1px solid #D0E2EA; }
.aie-case p { font-size:15.5px; line-height:1.55; color:var(--t-h); }
.aie-case-foot { margin-top:30px; font-size:16px; line-height:1.55; color:var(--t-b); }
.aie-case-foot b { font-weight:650; color:var(--t-h); }
.aie-case-foot .v2-link { margin-left:6px; font-size:16px; }
@media (prefers-reduced-motion:no-preference) {
  .aie-case p, .aie-case-foot p { animation:aieShow .55s var(--v-ease) both; }
}
@keyframes aieShow { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }

/* ---------- the sovereign platform ---------- */
/* the head and the points on the left, the map on the right; on a phone the map sits between the lede and the points */
.aie-plat-grid { display:grid; grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr); grid-template-areas:"head art" "body art";
  grid-template-rows:auto 1fr; column-gap:clamp(32px,5vw,80px); align-items:start; }
.aie-plat-head { grid-area:head; }
.aie-plat-art { grid-area:art; align-self:center; }
.aie-plat-body { grid-area:body; }
.aie-points { margin-top:28px; border-top:1px solid var(--t-r); }
.aie-points li { padding:16px 0; border-bottom:1px solid var(--t-r); }
.aie-point-t { font-size:17px; line-height:1.3; letter-spacing:-.01em; font-weight:650; color:var(--t-h); }
.aie-points p { margin-top:5px; font-size:15.5px; line-height:1.55; color:var(--t-b); }
.aie-fig-map { width:100%; aspect-ratio:1 / .9; min-height:360px; max-height:640px; }
.aie-note { margin-top:6px; font-size:12px; line-height:1.4; color:var(--t-m); text-align:right; }

/* ---------- applications in production, and the research behind them ---------- */
.aie-missions { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:clamp(28px,4vw,64px); margin-top:clamp(36px,5vh,56px); }
.aie-mission .aie-fig-glyph { height:150px; }
.aie-mission-label { margin-top:6px; font-size:15px; font-weight:600; color:var(--t-k); }
.aie-prod .v2-actions { margin-top:clamp(28px,4vh,40px); }
.aie-research { display:grid; grid-template-columns:150px minmax(0,1fr); gap:clamp(24px,3.4vw,48px); align-items:start;
  margin-top:clamp(48px,7vh,80px); padding-top:clamp(32px,5vh,48px); border-top:1px solid var(--t-r); }
.aie-cover { display:block; width:150px; height:auto; border-radius:3px; box-shadow:0 12px 28px rgba(14,36,51,.18); }
.aie-research-t { font-size:clamp(20px,1.7vw,24px); line-height:1.2; letter-spacing:-.02em; font-weight:650; color:var(--t-h); }
.aie-rows { margin-top:16px; }
.aie-rows a > span { font-size:17px; color:var(--t-b); }
.aie-rows a > span b { display:block; margin-bottom:2px; font-weight:650; color:var(--t-h); }

/* ---------- the closing contact ---------- */
.aie-close { padding:clamp(96px,14vh,150px) 0; }
.aie-fig-close { position:absolute; inset:0; z-index:0; pointer-events:none; }
.aie-close-in { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr); gap:clamp(28px,5vw,80px); align-items:end; }
.aie-person { display:grid; grid-template-columns:64px minmax(0,1fr); gap:16px 16px; align-items:center; justify-self:end; min-width:min(100%, 340px); }
.aie-person img { width:64px; height:64px; border-radius:50%; object-fit:cover; }
.aie-person-id b { display:block; font-size:18px; line-height:1.3; font-weight:650; color:var(--t-h); }
.aie-person-id span { display:block; margin-top:2px; font-size:14.5px; color:var(--t-m); }
.aie-person .v2-btn { grid-column:1 / -1; justify-self:start; margin-top:6px; }

/* ---------- smaller screens ---------- */
@media (max-width:1100px) {
  .aie-steps { gap:22px; }
  .aie-step-name { font-size:18px; }
}
@media (max-width:960px) {
  .aie-plat-grid { grid-template-columns:1fr; grid-template-areas:"head" "art" "body"; grid-template-rows:auto; }
  .aie-plat-art { margin-top:28px; }
  .aie-close-in { grid-template-columns:1fr; }
  .aie-how-head { grid-template-columns:1fr; align-items:start; }
  .aie-person { justify-self:start; }
  .aie-note { text-align:left; }
}
/* the steps stack under one rail on the left from tablet width down */
@media (max-width:900px) {
  .aie-steps { grid-template-columns:1fr; gap:30px; }
  .aie-step { padding-top:0; padding-left:40px; }
  .aie-node { left:12px; top:9px; }
}
@media (max-width:760px) {
  .aie-moves, .aie-missions { grid-template-columns:1fr; gap:48px; }
  .aie-fig-flow { display:none; }
  .aie-hero .v2-h1 { max-width:12ch; }
  .aie-fig-pixel { flex:none; height:min(540px, 138vw); min-height:0; margin-top:28px; }
  .aie-fig-map { min-height:0; aspect-ratio:1 / 1; }
  .aie-research { grid-template-columns:96px minmax(0,1fr); gap:20px; }
  .aie-cover { width:96px; }
  .aie-rows a > span { font-size:16px; }
  .aie-switch button { font-size:14.5px; padding:9px 12px; }
}
@media (prefers-reduced-motion:reduce) {
  .aie-lab, .aie-step-name { transition:none !important; }
  .aie-case p, .aie-case-foot p { animation:none !important; }
}
