/* Missions section of the homepage: the three areas of the policy work (rewritten 18 November 2026).
   Wide screens: the section pins. It opens as three strips side by side, each with its photo; one scroll gesture
   opens one strip to the width of the screen, and the other two stay as narrow tabs (missions.js sets data-on on the
   section: 0 is the three strips, 1 to 3 the open area). Phones: the areas stack, each with its photo as a band.
   The photos are bright and the text is white, so a navy filter lies over each photo. Every rule is scoped to
   #missions, and the colour variables are set on the section, not on :root. */
#missions {
  --navy: #021825; --turq: #24B6D1; --ice: #8ED6E8;
  --t-h: #ffffff; --t-s: rgba(255,255,255,.88); --t-b: rgba(255,255,255,.76); --t-m: rgba(255,255,255,.6); --t-r: rgba(255,255,255,.16);
  --ease: cubic-bezier(.2,.7,.2,1);
  --step: .9s;   /* the time of one step, the same in the layered model (si-c.css) */
  --gut: clamp(20px, 6.7vw, 96px);
  --nav: 76px;   /* the fixed site navigation: the text starts under it */
  --top: calc(var(--nav) + clamp(18px, 4.4vh, 44px));
  --tab: clamp(58px, 5.4vw, 86px);   /* the width of a closed strip */
  position: relative; padding: 0; background: var(--navy); color: var(--t-b);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; letter-spacing: -.006em; font-size: 16px; line-height: normal;
}
#missions, #missions * { box-sizing: border-box; }
#missions :focus-visible { outline: 2px solid var(--turq); outline-offset: 3px; border-radius: 2px; }
#missions ::selection { background: rgba(36,182,209,.28); }
#missions h2, #missions h3, #missions h4, #missions p, #missions ul { font-family: inherit; margin: 0; }

/* ---------- the stacked layout (phones), first ---------- */
.pr-pin { position: relative; background-color: var(--navy); }
.pr-intro { padding: 56px 20px 30px; }
.pr-intro h2 { font-size: clamp(34px, 4.6vw, 66px); line-height: 1.03; letter-spacing: -.04em; font-weight: 700; color: var(--t-h); max-width: 13em; text-wrap: balance; }
/* the title accent carries the gradient and no underline (Gianmarco, 23 October 2026) */
.pr-hl { color: var(--ice); background-image: linear-gradient(97deg,#24B6D1 0%,#8ED6E8 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pr-lede { margin-top: 20px !important; max-width: 34em; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: var(--t-s); text-wrap: pretty; }
@media (prefers-reduced-motion: no-preference) {
  #missions.pr-js .pr-intro h2, #missions.pr-js .pr-intro .pr-lede { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
  #missions.pr-js .pr-intro .pr-lede { transition-delay: .14s; }
  #missions.pr-js .pr-intro.is-in h2, #missions.pr-js .pr-intro.is-in .pr-lede { opacity: 1; transform: none; }
}
.pr-track { display: block; }
.pr-panel { position: relative; display: flex; flex-direction: column; padding: 0 20px 40px; border-top: 1px solid var(--t-r); }
.pr-strip { display: none; }
.pr-photo { position: relative; height: 230px; margin: 0 -20px 20px; overflow: hidden; background: var(--navy); }
.pr-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 62% 50%); }
.pr-learn .pr-photo { --pos: 70% 50%; }
.pr-provide .pr-photo { --pos: 76% 50%; }
.pr-connect .pr-photo { --pos: 60% 50%; }
.pr-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(2,24,37,.62) 0%, rgba(2,24,37,.12) 36%, rgba(2,24,37,.12) 58%, #021825 100%); }

.pr-name { font-size: clamp(48px, 13vw, 70px); line-height: .95; letter-spacing: -.045em; font-weight: 700; color: var(--t-h); }
.pr-area { margin-top: 14px !important; font-size: clamp(20px, 1.75vw, 25px); line-height: 1.24; letter-spacing: -.018em; font-weight: 600; color: var(--ice); text-wrap: balance; }
.pr-d { margin-top: 12px !important; max-width: 35em; font-size: 16.5px; line-height: 1.58; color: var(--t-s); text-wrap: pretty; }

.pr-uc { margin-top: 24px; }
.pr-h { margin-bottom: 10px !important; font-size: 13.5px; line-height: 1.3; font-weight: 600; color: var(--t-m); }
.pr-uc-list { list-style: none; padding: 0; border-top: 1px solid var(--t-r); }
.pr-uc-list li { border-bottom: 1px solid var(--t-r); }
.pr-uc-card { display: block; padding: 14px 0 15px; text-decoration: none; }
.pr-uc-name { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 17px; line-height: 1.3; font-weight: 600; letter-spacing: -.012em; color: var(--t-h); transition: color .2s; }
.pr-uc-name .arr { flex: none; color: var(--ice); }
.pr-uc-text { display: block; margin-top: 5px; font-size: 15px; line-height: 1.5; color: var(--t-b); text-wrap: pretty; }
.pr-uc-card:hover .pr-uc-name, .pr-uc-card:focus-visible .pr-uc-name { color: var(--ice); }

/* phones: while an area is on screen, a bar under the site navigation names the three areas, marks the one in view
   and fills as the reader scrolls through it; a tap jumps to an area */
.pr-rail { display: none; }
.pr-rail button { appearance: none; border: 0; background: none; padding: 2px 0 0; margin: 0; text-align: left; cursor: pointer; font: inherit;
  font-size: 14px; font-weight: 600; color: var(--t-m); transition: color .25s; }
.pr-rail button:hover, .pr-rail button[aria-current="true"] { color: var(--t-h); }
.pr-rail .bar { display: block; height: 2px; margin-top: 8px; background: rgba(255,255,255,.16); overflow: hidden; }
.pr-rail .fill { display: block; height: 100%; background: var(--turq); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
@media (max-width: 899px) {
  .pr-rail.pr-rail-m { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; position: fixed; z-index: 90; left: 0; right: 0; top: 0;
    padding: 70px 20px 10px; background: rgba(2, 24, 37, .96); border-bottom: 1px solid var(--t-r);
    opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .25s ease, transform .3s var(--ease), visibility 0s linear .3s; }
  .pr-rail.pr-rail-m.is-shown { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .3s var(--ease), visibility 0s; }
}

/* ---------- wide screens: the pinned stage, three strips, one opens at a time ---------- */
.pr--wide .pr-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; overflow: clip; }
/* 19 November 2026 (Gianmarco Mazzocchi: "the section below is still weird with the animation"): each panel shows
   its part of the stage, from --l to the next panel, which lies over it. A step moves the left edge of each panel with
   a transform, and moves its content (.pr-in) back by the same amount: the photo stands still, nothing scales, and
   the browser moves both on the graphics card. The text stands where it ends. Before, each panel changed its width,
   so its photo slid and its text crossed the screen while it faded in. */
.pr--wide .pr-track { --W: var(--stage-w, 100vw); position: relative; height: 100%; }
.pr--wide .pr-panel { position: absolute; top: 0; bottom: 0; left: 0; width: var(--W); padding: 0; border-top: 0; overflow: hidden; overflow: clip;
  transform: translateX(var(--l)); transition: transform var(--step) var(--ease); will-change: transform; }
.pr--wide .pr-in { position: absolute; inset: 0; transform: translateX(calc(-1 * var(--l))); transition: transform var(--step) var(--ease); will-change: transform; }
/* the parts of the stage: three equal strips, or one open area between narrow tabs */
#missions.pr--wide .pr-panel:nth-child(1) { --l: 0px; --r: calc(var(--W) / 3); --fl: 0px; }
#missions.pr--wide .pr-panel:nth-child(2) { --l: calc(var(--W) / 3); --r: calc(var(--W) * 2 / 3); --fl: var(--tab); }
#missions.pr--wide .pr-panel:nth-child(3) { --l: calc(var(--W) * 2 / 3); --r: var(--W); --fl: calc(var(--tab) * 2); }
#missions.pr--wide[data-on="1"] .pr-panel:nth-child(1) { --l: 0px; --r: calc(var(--W) - var(--tab) * 2); }
#missions.pr--wide[data-on="1"] .pr-panel:nth-child(2) { --l: calc(var(--W) - var(--tab) * 2); --r: calc(var(--W) - var(--tab)); }
#missions.pr--wide[data-on="1"] .pr-panel:nth-child(3) { --l: calc(var(--W) - var(--tab)); --r: var(--W); }
#missions.pr--wide[data-on="2"] .pr-panel:nth-child(1) { --l: 0px; --r: var(--tab); }
#missions.pr--wide[data-on="2"] .pr-panel:nth-child(2) { --l: var(--tab); --r: calc(var(--W) - var(--tab)); }
#missions.pr--wide[data-on="2"] .pr-panel:nth-child(3) { --l: calc(var(--W) - var(--tab)); --r: var(--W); }
#missions.pr--wide[data-on="3"] .pr-panel:nth-child(1) { --l: 0px; --r: var(--tab); }
#missions.pr--wide[data-on="3"] .pr-panel:nth-child(2) { --l: var(--tab); --r: calc(var(--tab) * 2); }
#missions.pr--wide[data-on="3"] .pr-panel:nth-child(3) { --l: calc(var(--tab) * 2); --r: var(--W); }
/* the line between two parts: at the left edge of each part but the first */
.pr--wide .pr-panel + .pr-panel::before { content: ""; position: absolute; z-index: 3; top: 0; bottom: 0; left: 0; width: 1px;
  background: rgba(255,255,255,.26); pointer-events: none; }

.pr--wide .pr-photo { position: absolute; inset: 0; height: auto; margin: 0; z-index: 0; }
.pr--wide .pr-photo img { transition: opacity var(--step) var(--ease); }
.pr--wide .pr-panel.is-tab .pr-photo img { opacity: .42; }
.pr--wide .pr-panel.is-tab:hover .pr-photo img, .pr--wide .pr-panel.is-tab:focus-within .pr-photo img { opacity: .7; }
/* two filters: ::before for a strip (dark at the top under the title, dark at the foot under the name), ::after for
   the open area (dark on the left under the text and at the foot under the use cases, light on the right) */
.pr--wide .pr-photo::before, .pr--wide .pr-photo::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; transition: opacity var(--step) var(--ease); }
.pr--wide .pr-photo::before { background:
  linear-gradient(180deg, rgba(2,24,37,.86) 0%, rgba(2,24,37,.74) 24%, rgba(2,24,37,.22) 50%, rgba(2,24,37,.30) 64%, rgba(2,24,37,.93) 100%); }
.pr--wide .pr-photo::after { opacity: 0; background:
  linear-gradient(180deg, rgba(2,24,37,.70) 0, rgba(2,24,37,0) 170px),
  linear-gradient(90deg, rgba(2,24,37,.92) 0%, rgba(2,24,37,.80) 28%, rgba(2,24,37,.34) 60%, rgba(2,24,37,.14) 100%),
  linear-gradient(0deg, rgba(2,24,37,.96) 0%, rgba(2,24,37,.78) 24%, rgba(2,24,37,0) 54%); }
.pr--wide .pr-panel.is-on .pr-photo::before { opacity: 0; }
.pr--wide .pr-panel.is-on .pr-photo::after { opacity: 1; }

/* a strip: the whole strip is one button. Closed among three: its name, its label and an arrow at the foot.
   Closed as a tab: its name, upright along the tab. */
.pr--wide .pr-strip { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; position: absolute; top: 0; bottom: 0; z-index: 2;
  left: var(--l); width: calc(var(--r) - var(--l)); overflow: hidden;
  margin: 0; padding: 0 clamp(20px, 2.6vw, 40px) clamp(34px, 7vh, 72px); border: 0; background: none; color: var(--t-h); font: inherit; text-align: left; cursor: pointer;
  transition: opacity .3s var(--ease), visibility 0s, left var(--step) var(--ease), width var(--step) var(--ease); }
.pr-strip-name { font-size: clamp(36px, 4.2vw, 66px); line-height: 1; letter-spacing: -.042em; font-weight: 700; white-space: nowrap; transition: opacity .3s var(--ease), color .2s; }
.pr-strip-label { margin-top: 12px; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.25; font-weight: 600; color: var(--ice); white-space: nowrap; transition: opacity .3s var(--ease); }
.pr-strip-go { margin-top: 18px; font-size: 22px; line-height: 1; color: var(--t-h); transition: opacity .3s var(--ease), color .2s; }
.pr-strip:hover .pr-strip-name, .pr-strip:focus-visible .pr-strip-name, .pr-strip:hover .pr-strip-go, .pr-strip:focus-visible .pr-strip-go { color: var(--ice); }
.pr-strip-tab { position: absolute; left: 50%; bottom: clamp(34px, 7vh, 72px); writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg);
  font-size: 18px; line-height: 1; letter-spacing: -.01em; font-weight: 650; white-space: nowrap; opacity: 0; transition: opacity .3s var(--ease), color .2s; }
.pr--wide .is-tab .pr-strip-name, .pr--wide .is-tab .pr-strip-label, .pr--wide .is-tab .pr-strip-go { opacity: 0; }
.pr--wide .is-tab .pr-strip-tab { opacity: 1; transition-delay: calc(var(--step) * .5); }
.pr--wide .is-tab .pr-strip:hover .pr-strip-tab, .pr--wide .is-tab .pr-strip:focus-visible .pr-strip-tab { color: var(--ice); }
.pr--wide .is-on .pr-strip { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s var(--ease), visibility 0s linear .3s; }

/* the open area: its text keeps the width of the open strip, so nothing moves while the strip opens */
.pr--wide .pr-full { position: absolute; z-index: 2; left: var(--fl); top: 0; height: 100%; width: calc(var(--stage-w, 100vw) - 2 * var(--tab) - 2px);
  padding: var(--top) var(--gut) clamp(34px, 6.4vh, 68px); display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s linear .3s; }
/* the text of the open area comes in once its part is nearly open */
.pr--wide .is-on .pr-full { opacity: 1; visibility: visible; transition: opacity calc(var(--step) * .55) var(--ease) calc(var(--step) * .6), visibility 0s; }
.pr--wide .pr-name { font-size: clamp(44px, min(4.9vw, 8.6vh), 72px); }
.pr--wide .pr-area { margin-top: clamp(10px, 1.7vh, 16px) !important; font-size: clamp(18px, min(1.7vw, 3.05vh), 25px); }
.pr--wide .pr-d { margin-top: clamp(8px, 1.4vh, 12px) !important; font-size: clamp(14.5px, min(1.15vw, 2.1vh), 17px); line-height: 1.55; }
.pr--wide .pr-uc { margin-top: 0; padding-top: clamp(14px, 2.4vh, 22px); border-top: 1px solid var(--t-r); }
.pr--wide .pr-uc-list { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: clamp(10px, 1.1vw, 16px); border-top: 0; }
.pr--wide .pr-uc-list li { border-bottom: 0; }
.pr--wide .pr-uc-card { height: 100%; padding: clamp(14px, 2.2vh, 20px) clamp(14px, 1.4vw, 20px) clamp(15px, 2.4vh, 22px); border: 1px solid rgba(255,255,255,.2); border-radius: 12px; background: rgba(2, 24, 37, .82); transition: border-color .2s; }
.pr--wide .pr-uc-card:hover, .pr--wide .pr-uc-card:focus-visible { border-color: rgba(142, 214, 232, .6); }
.pr--wide .pr-uc-name { font-size: clamp(15px, min(1.25vw, 2.3vh), 18.5px); }
.pr--wide .pr-uc-text { margin-top: clamp(4px, .9vh, 8px); font-size: clamp(13px, min(1.03vw, 1.9vh), 15.5px); }

/* 19 November 2026 (Gianmarco Mazzocchi: "the pages are very empty, maybe we can have some framework in there"): the
   model of each area as a line of five steps, between the overview and the use cases. The line draws and the steps come
   in one after the other once the text has come in. Phones: the steps stand in a column. */
.pr-frame { margin-top: 26px; }
.pr-frame-t { font-size: 13.5px; line-height: 1.3; font-weight: 600; color: var(--ice); }
.pr-frame-s { list-style: none; margin: 12px 0 0; padding: 0 0 0 18px; position: relative; display: grid; gap: 10px; }
.pr-frame-s::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: rgba(142,214,232,.45); }
.pr-frame-s li { position: relative; font-size: 15px; line-height: 1.35; color: var(--t-s); }
.pr-frame-s .dot { position: absolute; left: -18px; top: .3em; width: 10px; height: 10px; border-radius: 50%; background: var(--navy); border: 1.5px solid var(--turq); }
.pr--wide .pr-full { justify-content: flex-start; }
.pr--wide .pr-frame { margin: auto 0; padding: clamp(18px, 3vh, 30px) 0; max-width: min(700px, 54%); }
.pr--wide .pr-frame-s { grid-template-columns: repeat(var(--k, 5), minmax(0, 1fr)); gap: 0 12px; padding: 22px 0 0; }
.pr--wide .pr-frame-s::before { left: 4px; right: 0; top: 4px; bottom: auto; width: auto; height: 1px; transform-origin: 0 50%; }
.pr--wide .pr-frame-s::after { content: ""; position: absolute; right: -2px; top: 0; width: 7px; height: 7px; border-top: 1px solid rgba(142,214,232,.7); border-right: 1px solid rgba(142,214,232,.7); transform: rotate(45deg); }
.pr--wide .pr-frame-s li { font-size: clamp(14px, min(1.1vw, 2vh), 16px); font-weight: 500; color: var(--t-h); padding-right: 6px; text-wrap: balance; }
.pr--wide .pr-frame-t { font-size: clamp(13.5px, min(1.05vw, 1.9vh), 15px); }
.pr--wide .pr-frame-s .dot { left: 0; top: -22px; }
@media (prefers-reduced-motion: no-preference) {
  .pr--wide .pr-frame-s::before { transform: scaleX(0); transition: transform calc(var(--step) * .9) var(--ease); }
  .pr--wide .pr-frame-s::after, .pr--wide .pr-frame-s li { opacity: 0; transition: opacity .4s var(--ease); }
  .pr--wide .pr-frame-s li { transform: translateY(6px); transition: opacity .4s var(--ease), transform .5s var(--ease); }
  .pr--wide .is-on .pr-frame-s::before { transform: none; transition-delay: calc(var(--step) * 1.05); }
  .pr--wide .is-on .pr-frame-s::after { opacity: 1; transition-delay: calc(var(--step) * 1.8); }
  .pr--wide .is-on .pr-frame-s li { opacity: 1; transform: none; transition-delay: calc(var(--step) * 1.05 + var(--j) * 110ms); }
}

/* the title of the section lies over the three strips, and leaves when a strip opens */
.pr--wide .pr-intro { position: absolute; z-index: 3; left: var(--gut); right: var(--gut); top: var(--top); padding: 0; pointer-events: none;
  transition: opacity .4s var(--ease), transform .6s var(--ease), visibility 0s; }
#missions.pr--wide[data-on="1"] .pr-intro, #missions.pr--wide[data-on="2"] .pr-intro, #missions.pr--wide[data-on="3"] .pr-intro {
  opacity: 0; visibility: hidden; transform: translateY(-14px); transition: opacity .3s var(--ease), transform .5s var(--ease), visibility 0s linear .3s; }

@media (prefers-reduced-motion: reduce) {
  #missions *, #missions *::before, #missions *::after { transition: none !important; }
}
