/* flywheel: one wheel in three places (flywheel.js): the pinned stage after the cap (#wheel), a turn after every chapter
   (.fwt), the close (#loop). Black, white and the greys between; the only pictures are the products' own icons. Only
   transform and opacity move (landing-kit rule 3): no blur, no backdrop-filter. Needs ../base/base.css. */

/* ---------- the wheel: a square; every size inside is in cqw of it ---------- */
.fwh{--ic:12.5cqw;position:relative;width:100%;aspect-ratio:1;container-type:inline-size;color:var(--ink)}
.fwh[data-size="close"]{--ic:8.6cqw}
.fwh-rl{position:absolute;inset:0;will-change:transform}
.fwh-rl svg{width:100%;height:100%;overflow:visible}
.fwh-ring{fill:none;stroke:oklch(100% 0 0/.2);stroke-width:1.5px;vector-effect:non-scaling-stroke}
.fwh-arrows path{fill:none;stroke:oklch(100% 0 0/.5);stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.fwh-spoke{stroke:oklch(100% 0 0/.32);stroke-width:1px;vector-effect:non-scaling-stroke;opacity:0;transition:opacity .5s var(--e-esce)}
.fwh-spoke.on{opacity:1}
.fwh-edge{opacity:0;transition:opacity .25s}
.fwh-edge path{fill:none;stroke:#fff;stroke-width:1.5px;stroke-linecap:round;vector-effect:non-scaling-stroke}
.fwh-edge .head{fill:#fff;stroke:none}
.fwh-edge.planned path:not(.head){stroke:oklch(100% 0 0/.7);stroke-dasharray:4 4}
.fwh-edge.planned .head{fill:oklch(100% 0 0/.7)}
.fwh.go .fwh-edge.on{opacity:1;transition:opacity .6s var(--e-esce) .55s}

/* the hub: a circle in the middle. Its ring lights up (.lit) and pulses out once (.pulse), and again at every push (.push) */
.fwh-hub{position:absolute;left:50%;top:50%;width:30cqw;height:30cqw;margin:-15cqw 0 0 -15cqw;border-radius:50%;background:oklch(7% 0 0);box-shadow:inset 0 0 0 1.5px oklch(100% 0 0/.18)}
.fwh[data-size="small"] .fwh-hub{width:14cqw;height:14cqw;margin:-7cqw 0 0 -7cqw}
.fwh-lit,.fwh-pulse{position:absolute;inset:0;border-radius:50%;pointer-events:none;opacity:0}
.fwh-lit{box-shadow:inset 0 0 0 1.5px #fff,0 0 4cqw -.5cqw oklch(100% 0 0/.55);transition:opacity .8s var(--e-esce)}
:is(.fwh,.fwl).lit .fwh-lit{opacity:1}
.fwh-pulse{box-shadow:inset 0 0 0 1px oklch(100% 0 0/.9)}
.fwl.pulse .fwh-pulse{animation:fwh-pulse 1.3s cubic-bezier(.16,1,.3,1) .1s}
.fwl.push .fwh-pulse{animation:fwh-pulse .8s cubic-bezier(.16,1,.3,1)}
@keyframes fwh-pulse{0%{opacity:.95;transform:scale(1)}100%{opacity:0;transform:scale(2.5)}}
.fwl.pulse .fwl-n.on .fwl-p{animation:fwl-lift .9s var(--e-molla) .4s}
@keyframes fwl-lift{0%,100%{transform:translate(-50%,-50%) scale(1)}40%{transform:translate(-50%,-50%) scale(1.14)}}

/* ---------- the loop of words: six nodes on a ring, an arrow from each to the next, the models in the hub ---------- */
.fwl{position:relative;width:100%;aspect-ratio:1;container-type:inline-size;color:#fff}
.fwl-base{fill:none;stroke:oklch(100% 0 0/.1);stroke-width:1.5px;vector-effect:non-scaling-stroke}
.fwl-arc{opacity:.28;transition:opacity .6s var(--e-esce)}
.fwl-arc.on{opacity:1}
.fwl-arc path{fill:none;stroke:#fff;stroke-width:1.5px;stroke-linecap:round;vector-effect:non-scaling-stroke}
.fwl-arc .head{fill:#fff;stroke:none}
.fwl-arc.chord{opacity:0;transition:opacity .7s var(--e-esce) .35s}
.fwl-arc.chord.on{opacity:1}
.fwl-arc.chord path:not(.head){stroke-dasharray:5 5}
.fwl-clab{position:absolute;left:50%;top:50%;z-index:3;padding:.3cqw 1.2cqw;border-radius:999px;background:#000;font-size:max(10.5px,1.95cqw);font-weight:500;letter-spacing:.01em;white-space:nowrap;color:var(--ink-2);opacity:0;transition:opacity .6s var(--e-esce) .6s;pointer-events:none}
.fwl-clab.on{opacity:1}
.fwl-hub{display:grid;place-items:center}
.fwl-hl{display:grid;justify-items:center;gap:1cqw;max-width:22cqw;text-align:center;opacity:.42;transition:opacity .8s var(--e-esce)}
.fwl.lit .fwl-hl{opacity:1}
.fwl-hl svg{width:4cqw;height:4cqw;fill:none;stroke:#fff;stroke-width:1.6;stroke-linejoin:round}
.fwl-hl b{font-weight:500;font-size:max(10.5px,2.3cqw);line-height:1.15;letter-spacing:-.01em}
/* a node: its place on the ring (moved by the script), a pill with a pictogram and a label; faint until it is said */
.fwl-n{position:absolute;left:50%;top:50%;width:0;height:0;z-index:2;will-change:transform}
.fwl-p{position:absolute;left:0;top:0;display:flex;align-items:center;gap:.9cqw;padding:1.05cqw 1.9cqw 1.05cqw 1.5cqw;border-radius:999px;background:oklch(8% 0 0);box-shadow:inset 0 0 0 1.5px oklch(100% 0 0/.5);font-size:max(11px,2.35cqw);line-height:1.15;white-space:nowrap;opacity:.34;transform:translate(-50%,-50%);transition:opacity .6s var(--e-esce),transform .8s var(--e-molla)}
.fwl-p::after{content:"";position:absolute;inset:-.7cqw;border-radius:inherit;box-shadow:0 0 0 1.5px #fff,0 0 3cqw -.4cqw oklch(100% 0 0/.6);opacity:0;transition:opacity .5s var(--e-esce)}
.fwl-p svg{flex:none;width:1.3em;height:1.3em;fill:none;stroke:#fff;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.fwl-p b{font-weight:500;letter-spacing:-.01em}
.fwl-n.on .fwl-p{opacity:1;box-shadow:inset 0 0 0 1.5px #fff}
.fwl-n.now .fwl-p{transform:translate(-50%,-50%) scale(1.12)}
.fwl-n.now .fwl-p::after{opacity:1}
/* the ring around the close: the same nodes, small, all said */
.fwl[data-size="ring"] .fwl-p{flex-direction:column;gap:.5cqw;padding:.9cqw 1.1cqw;border-radius:1.8cqw;font-size:max(10px,1.9cqw);line-height:1.1;text-align:center;white-space:normal}
.fwl[data-size="ring"] .fwl-p b{display:block;width:max-content;max-width:14cqw}
.fwl[data-size="ring"] .fwl-hub{width:28cqw;height:28cqw;margin:-14cqw 0 0 -14cqw}
.fwl[data-size="ring"] .fwl-hl b{font-size:max(10px,2cqw)}
/* the same node as a chip, in a chapter's turn */
.fwl-chip{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 10px 0 8px;border-radius:999px;box-shadow:inset 0 0 0 1px #fff;font-size:12px;font-weight:500;letter-spacing:0;text-transform:none;color:#fff;white-space:nowrap}
.fwl-chip svg{flex:none;width:14px;height:14px;fill:none;stroke:#fff;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

/* a product: its place on the ring (moved by the script), its icon (lands), a faint dot when not yet seen */
.fwh-p{position:absolute;left:50%;top:50%;width:var(--ic);height:var(--ic);margin:calc(var(--ic) / -2) 0 0 calc(var(--ic) / -2);z-index:2;will-change:transform}
.fwh-i{position:absolute;inset:0;border-radius:23%;opacity:0;transform:scale(1.7);transition:opacity .35s var(--e-esce),transform .75s var(--e-molla)}
.fwh-i img{width:100%;height:100%;border-radius:inherit;object-fit:cover;box-shadow:0 0 0 1px oklch(100% 0 0/.14)}
.fwh-p:is(.is-on,.is-hi) .fwh-i{opacity:1;transform:scale(1)}
.fwh-p.next .fwh-i{outline:1.5px dashed oklch(100% 0 0/.6);outline-offset:.8cqw}
.fwh-p.next .fwh-i img{opacity:.8}
.fwh-d{position:absolute;left:50%;top:50%;width:2.4cqw;height:2.4cqw;margin:-1.2cqw 0 0 -1.2cqw;border-radius:50%;background:oklch(100% 0 0/.28);opacity:0;transition:opacity .4s}
.fwh-p.is-dot .fwh-d{opacity:1}
.fwh-p.is-hi{z-index:3}
.fwh-p.is-hi .fwh-i{transform:scale(1.32);outline:2px solid #fff;outline-offset:.9cqw}
/* a link's word */
.fwh-lab{position:absolute;left:50%;top:50%;z-index:4;padding:2px 8px 3px;border-radius:999px;background:#000;box-shadow:inset 0 0 0 1px oklch(100% 0 0/.5);font-size:11.5px;font-weight:500;line-height:1.2;letter-spacing:.01em;white-space:nowrap;color:#fff;opacity:0;pointer-events:none;transition:opacity .25s}
.fwh-lab.planned{box-shadow:none;outline:1px dashed oklch(100% 0 0/.6);outline-offset:-1px;color:var(--ink-2)}
.fwh.go .fwh-lab.on{opacity:1;transition:opacity .6s var(--e-esce) .75s}

/* ---------- 1. the big section: the loop of words on a pinned stage in a scroll track; eight steps, ~75vh of scroll each ---------- */
.fw{position:relative}
.fw-track{position:relative;height:calc(8 * 75vh + 100vh);height:calc(8 * 75svh + 100svh)}
.fw-stage{position:sticky;top:0;height:100vh;height:100svh;width:min(var(--largo),100% - 2 * var(--gutter));margin-inline:auto;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);align-items:center;gap:clamp(24px,4vw,72px);padding-top:var(--barra-h)}
.fw-wheel{justify-self:center;width:min(100%,100vh - var(--barra-h) - 120px,640px);width:min(100%,100svh - var(--barra-h) - 120px,640px)}
.fw-words{display:grid;gap:18px;align-content:center}
.fw-n{margin:0;font-size:calc(13 * var(--px));font-weight:500;letter-spacing:.14em;color:var(--ink-3);font-variant-numeric:tabular-nums;opacity:0;transition:opacity .5s}
.fw-started .fw-n{opacity:1}
.fw-n b{font-weight:500;color:var(--ink)}
.fw-says{display:grid;margin:0;padding:0;list-style:none}
.fw-say{grid-area:1/1;max-width:15em;font-family:var(--serif);font-weight:300;font-size:calc(34 * var(--px));line-height:1.12;letter-spacing:-.03em;text-wrap:balance;opacity:0;transform:translateY(18px);transition:opacity .45s var(--e-esce),transform .7s var(--e-esce)}
.fw-say.past{transform:translateY(-18px)}
.fw-say.on{opacity:1;transform:none;transition-delay:.12s}
.fw-say em,.lp-t em{font-family:var(--accent);font-style:normal;font-weight:400;text-transform:uppercase;letter-spacing:.01em;font-size:1.04em;line-height:.9}
@media (max-width:899px){
  .fw-stage{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;align-content:center;gap:clamp(16px,3vh,32px);padding-top:calc(var(--barra-h) + 8px)}
  .fw-wheel{order:-1;width:min(100%,54vh);width:min(100%,54svh)}
  .fw-words{gap:10px;min-height:9.5em;align-content:start;justify-items:center;text-align:center}
  .fw-say{font-size:21px;max-width:18em;margin-inline:auto}
}
@media (prefers-reduced-motion:reduce){
  /* every sentence at once, as a list beside the finished wheel; nothing pinned, nothing moving */
  .fw-track{height:auto}
  .fw-stage{position:relative;height:auto;min-height:100vh;padding-block:calc(var(--barra-h) + 24px) 48px}
  .fw-n{display:none}
  .fw-says{gap:14px;list-style:decimal;padding-left:1.2em}
  .fw-say,.fw-say.past{grid-area:auto;opacity:1;transform:none;font-size:calc(24 * var(--px))}
  :is(.fwh,.fwl) *{transition:none!important;animation:none!important}
}

/* ---------- 2. a turn after every chapter: compact, quiet, the same shape every time ---------- */
.fwt{padding-block:clamp(56px,7vw,104px)}
.fwt-in{width:min(var(--largo),100% - 2 * var(--gutter));margin-inline:auto;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:clamp(28px,4vw,64px);padding-top:clamp(28px,3vw,44px);border-top:1px solid var(--riga)}
.fwt-wheel{width:clamp(240px,22vw,320px)}
.fwt-words{display:grid;gap:12px;max-width:44ch}
.fwt-eye{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:0;font-size:calc(13 * var(--px));font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-3)}
.fwt-levers{display:flex;flex-wrap:wrap;gap:6px}
.fwt-line{margin:0;font-family:var(--serif);font-weight:300;font-size:calc(26 * var(--px));line-height:1.18;letter-spacing:-.03em;text-wrap:pretty}
.fwt-line b,.fwt-sector b{font-weight:300;color:var(--ink-3)}
.fwt-line .tag{font-family:var(--font);font-size:calc(12 * var(--px));letter-spacing:0;transform:translateY(-.2em);margin-inline:.1em}
.fwt-sector{margin:6px 0 0;padding-top:14px;border-top:1px solid var(--riga);font-size:var(--t-nota);line-height:1.45;letter-spacing:-.01em;color:var(--ink-2);text-wrap:pretty}
@media (max-width:699px){
  .fwt-in{grid-template-columns:minmax(0,1fr);justify-items:center;gap:22px}
  .fwt-wheel{width:min(260px,100%)}
  .fwt-line{font-size:21px}
}

/* ---------- 3. the close (#loop): the full wheel turning, the title, one line, then the next turn ---------- */
.lp{padding-block:var(--sez)}   /* the copilot no longer closes the section (it has its own page since 2026-10-05): the close ends on its link */
.lp-in{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);align-items:center;gap:clamp(32px,5vw,80px)}
.lp-head{display:grid;gap:18px}
.lp-t{margin:0;font-family:var(--serif);font-weight:300;font-size:calc(46 * var(--px));line-height:1;letter-spacing:-.04em;text-wrap:balance}
.lp-sub{margin:0;max-width:30ch;font-size:var(--t-corpo);line-height:1.45;letter-spacing:-.01em;color:var(--ink-2);text-wrap:pretty}
.lp-wheel{position:relative;justify-self:center;width:min(100%,600px)}
.lp-wheel .fwl{position:absolute;inset:0}
.lp-next{grid-column:1/-1;margin-top:clamp(40px,5vw,80px);display:flex;align-items:center;gap:14px;font-size:calc(13 * var(--px));font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-3)}
.lp-next a{color:inherit;text-decoration:none;transition:color .2s var(--e-ui)}
@media (hover:hover){.lp-next a:hover{color:var(--ink)}}
.lp-next svg{flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media (max-width:899px){
  .lp-in{grid-template-columns:minmax(0,1fr)}
  .lp-wheel{order:-1;width:min(100%,420px)}
}
