/* ios.css — STRIKE · « Une infrastructure complète » (à la manière de wonderful.ai/ai-os) puis « Fait pour les directions
   financières » (17/10).
   1. Sur fond noir, à gauche le titre et la couche décrite ; à droite, une pile de couches sur un fond bleu : la couche
      décrite s'allume. Au défilement, la section se fige et les couches s'allument l'une après l'autre.
   2. Sur papier, un grand titre puis quatre lignes : celle qui passe au milieu de l'écran s'ouvre (bande plus foncée,
      dessin au trait en blanc sur noir).
   Sans JavaScript ou en mouvement réduit : tout est affiché, dans l'ordre. */

/* ---- 1 · the stack ---- */
.ios { position: relative; background: #0d0e0d; color: #fff; }
.ios__stick { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); column-gap: clamp(32px, 5vw, 96px); align-items: center;
  max-width: 1480px; margin: 0 auto; padding: clamp(88px, 13vh, 150px) clamp(20px, 5vw, 80px); }
.ios__t { margin: 0; max-width: 12em; color: #fff; font: 400 clamp(40px, 3.6vw, 64px)/.98 var(--display); letter-spacing: -.015em; word-spacing: .12em; }
.ios__t em { font-style: normal; color: rgba(255, 255, 255, .5); }
.ios__items { display: grid; gap: 28px; margin-top: clamp(40px, 8vh, 88px); }
.ios__h { margin: 0; color: #fff; font: 400 clamp(26px, 2.2vw, 36px)/1.05 var(--display); letter-spacing: -.01em; word-spacing: .12em; }
.ios__p { margin: 12px 0 0; max-width: 30em; color: rgba(255, 255, 255, .64); font: 400 clamp(15.5px, 1.12vw, 18px)/1.55 var(--sans); }
.ios__note { margin: clamp(28px, 5vh, 48px) 0 0; padding-top: 18px; max-width: 30em; border-top: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .56); font: 400 clamp(14px, 1vw, 16px)/1.55 var(--sans); }

.ios__fig { position: relative; display: grid; place-items: center; aspect-ratio: 1.34; border-radius: 16px; overflow: hidden; }
.ios__bg { position: absolute; inset: 0;
  background: radial-gradient(70% 55% at 20% 16%, rgba(170, 190, 228, .95), rgba(170, 190, 228, 0) 70%),
              radial-gradient(62% 50% at 80% 90%, rgba(200, 212, 238, .85), rgba(200, 212, 238, 0) 70%),
              radial-gradient(80% 60% at 72% 28%, rgba(86, 116, 176, .9), rgba(86, 116, 176, 0) 75%),
              linear-gradient(165deg, #3B5C94, #2B4A78 52%, #5677B4); }
.ios__bg::after { content: ""; position: absolute; inset: 0; opacity: .55;   /* soft streaks, like moving water */
  background: repeating-linear-gradient(174deg, rgba(255, 255, 255, .07) 0 2px, rgba(255, 255, 255, 0) 2px 11px); }
.ios__panel { position: relative; display: grid; gap: 12px; width: 76%; padding: 52px 7% 7%; border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px;
  background: rgba(13, 18, 30, .62); box-shadow: 0 30px 80px rgba(6, 10, 20, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ios__tab { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); padding: 9px 22px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 99px;
  background: #142036; color: rgba(255, 255, 255, .9); font: 500 clamp(13px, 1.02vw, 16px)/1 var(--sans); white-space: nowrap;
  transition: background .45s, color .45s, box-shadow .45s, border-color .45s; }
.ios__row { position: relative; display: grid; place-items: center; height: clamp(44px, 4.3vw, 62px); overflow: hidden; border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px; background: rgba(12, 17, 28, .55); color: rgba(255, 255, 255, .6); font: 400 clamp(14px, 1.2vw, 19px)/1 var(--sans);
  transition: background .45s, color .45s, box-shadow .45s, border-color .45s; }
.ios__base { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
/* lit: cold light through glass, and a thread of the spectrum under it — the Strike touch */
.ios__row.is-on, .ios__tab.is-on { border-color: rgba(255, 255, 255, .45); color: #fff;
  background: linear-gradient(100deg, rgba(64, 96, 156, .96), rgba(150, 174, 222, .92) 62%, rgba(214, 224, 246, .86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 30px rgba(8, 14, 30, .35); }
.ios__row::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 0; height: 2px; background: var(--spectrum); opacity: 0; transition: opacity .45s; }
.ios__row.is-on::after { opacity: .9; }

/* live: the section pins; one layer per half screen */
html.js .ios.is-live { height: calc(200svh + 3 * 60svh); margin-bottom: -100svh; }   /* 17/10: three comparisons (was seven layers) */   /* + one screen while the next page rises over it, as a sheet */
html.js .ios.is-live .ios__stick { position: sticky; top: 0; height: 100svh; padding-top: calc(var(--nav-h, 76px) + 5vh); padding-bottom: 5vh; }
html.js .ios.is-live .ios__items { position: relative; display: block; min-height: 220px; }
html.js .ios.is-live .ios__item { position: absolute; top: 0; left: 0; right: 0; opacity: 0; transform: translate3d(0, 14px, 0); pointer-events: none;
  transition: opacity .45s, transform .7s cubic-bezier(.16, 1, .3, 1); }
html.js .ios.is-live .ios__item.is-on { opacity: 1; transform: none; }

/* ---- 2 · made for finance teams ---- */
.ent { position: relative; z-index: 2; padding: clamp(96px, 14vh, 160px) 0 clamp(64px, 10vh, 120px); background: var(--paper); color: var(--ink); }
html.js .ios.is-live, html.js .ios.is-live + .ent { will-change: clip-path; }
.ent__t { margin: 0 0 clamp(56px, 10vh, 120px); max-width: 17em; color: var(--ink); font: 400 clamp(40px, 4.4vw, 76px)/1 var(--display); letter-spacing: -.015em; word-spacing: .12em; }
.ent__t span { color: var(--ink-h); }
.ent__rows { position: relative; z-index: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.ent__row { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start;
  min-height: clamp(210px, 27vh, 290px); padding: clamp(28px, 4vh, 44px) 0; border-bottom: 1px solid var(--line-2); }
.ent__row::before { content: ""; position: absolute; z-index: -1; top: -1px; bottom: -1px; left: 50%; width: 100vw; transform: translateX(-50%);
  background: #EFECDD; opacity: 0; transition: opacity .5s; }   /* the open line: a band across the whole width */
.ent__row.is-on::before { opacity: 1; }
.ent__h { display: flex; align-items: baseline; grid-column: 1 / span 5; margin: 0; color: var(--ink); font: 400 clamp(28px, 2.4vw, 42px)/1.05 var(--display);
  letter-spacing: -.01em; word-spacing: .12em; }
.ent__h::before { content: ""; flex: none; width: 0; height: 2px; margin-right: 0; background: var(--ink); transform: translateY(-.3em);
  transition: width .5s cubic-bezier(.16, 1, .3, 1), margin .5s cubic-bezier(.16, 1, .3, 1); }
.ent__row.is-on .ent__h::before { width: 1.1em; margin-right: .45em; }
.ent__fig { grid-column: 7 / span 3; overflow: hidden; border-radius: 6px; background: #111312; opacity: 0; transform: translate3d(0, 10px, 0);
  transition: opacity .5s, transform .7s cubic-bezier(.16, 1, .3, 1); }
.ent__fig .dessin { margin: 0; filter: invert(1) hue-rotate(180deg); }   /* the ink drawing in white on black; its orange stays orange */
.ent__row.is-on .ent__fig, html:not(.js) .ent__fig, .ent.is-static .ent__fig { opacity: 1; transform: none; }
.ent__note { margin: clamp(28px, 5vh, 44px) 0 0; max-width: 40em; color: var(--ink-2); font: 400 clamp(14px, 1vw, 16px)/1.55 var(--sans); }
.ent__p { grid-column: 10 / span 3; margin: 0; color: var(--ink-2); font: 400 clamp(15.5px, 1.12vw, 18px)/1.55 var(--sans); }

/* phones and narrow tablets */
@media (max-width: 860px) {
  .ios__stick { grid-template-columns: minmax(0, 1fr); row-gap: 26px; }
  .ios__copy { display: contents; }
  .ios__t { order: 1; font-size: clamp(32px, 9vw, 44px); }
  .ios__fig { order: 2; aspect-ratio: 1.15; }
  .ios__items { order: 3; margin-top: 0; }
  .ios__note { order: 4; margin-top: 0; }
  .ios__panel { width: 88%; gap: 8px; padding: 40px 6% 6%; }
  .ios__base { gap: 8px; }
  .ios__row { font-size: 13.5px; }
  html.js .ios.is-live .ios__stick { align-content: start; row-gap: 22px; padding-top: calc(var(--nav-h, 68px) + 24px); }
  html.js .ios.is-live .ios__items { min-height: 170px; }
  .ent__row { grid-template-columns: minmax(0, 1fr); row-gap: 14px; min-height: 0; }
  .ent__h, .ent__fig, .ent__p { grid-column: 1 / -1; }
  .ent__fig { max-width: 440px; opacity: 1; transform: none; }
}
@media print { .ios__fig, .ent__fig { display: none; } .ios { background: none; color: #000; } .ios__t, .ios__h, .ios__p { color: #000; } }
