/* Korix Studio · Accueil · page layout.
   One document for two boards: the Main board from 760 px up (sections A and B, the board's own CSS),
   the Mobile-Accueil board below 760 px (section C, the phone board's CSS mapped onto the same markup).
   Tokens and components come from korix.css and are never redefined here. */
body{margin:0}

/* ==========================================================================
   A. MAIN BOARD (desktop), as on the board. Its rules for widths under
      760 px are replaced by section C (the phone board), see the notes in place.
   ========================================================================== */

/* Accueil (Main board). Page layout only, prefix mg-. Tokens and components come from korix.css. */

/* screen-reader text, section opener */
.mg-sh{display:inline-flex;align-items:baseline;gap:16px}
h2.kx-section-head{font-weight:400}
/* mono lists: the separator lives in each item's left padding and is clipped at the start of every line,
   so a wrapped line never starts or ends on a dot (padding = the width of " · " in the mono label) */
.mg-list{display:block;overflow:hidden}
.mg-list-in{display:flex;flex-wrap:wrap;margin-left:calc(var(--mg-sep) * -1)}
.mg-list-in > span{position:relative;padding-left:var(--mg-sep);white-space:nowrap}
.mg-list-in > span::before{content:"·";position:absolute;left:0;width:var(--mg-sep);text-align:center}

/* 1. HERO ------------------------------------------------------------------ */
.mg-hero{padding-top:clamp(40px,6.1vw,88px)}
.mg-hero-grid{align-items:start}
.mg-hero-text{display:flex;flex-direction:column;align-items:flex-start;gap:40px}
.mg-hero-head{display:flex;flex-direction:column;align-items:flex-start;gap:32px}
.mg-h1 .kx-mark.kx-draw-ticks{animation-duration:900ms}
/* the dial track is drawn clockwise just ahead of its ticks (arc length 76 x 150 deg = 199 units) */
.mg-hero .kx-dial-arc{animation:mg-arc 1000ms var(--kx-e-index) 160ms both}
@keyframes mg-arc{from{stroke-dasharray:0 200}to{stroke-dasharray:200 0}}
/* the ruby pops on the pivot (without a fill-box origin kx-pop scales it from the viewBox origin) */
.mg-hero .kx-ruby{transform-box:fill-box;transform-origin:50% 50%}
.mg-hero-lead{display:flex;flex-direction:column;gap:2px;align-self:stretch}
.mg-roll-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:4px 40px}
.mg-roll{white-space:nowrap}
.mg-slot{position:relative;display:inline-grid;clip-path:inset(0 -30em 0 -.3em)}
.mg-word{grid-area:1 / 1;display:block;white-space:nowrap}
.mg-sizer{visibility:hidden}
.mg-word.is-a{animation:mg-roll-in-a 760ms var(--kx-e-out) both}
.mg-word.is-b{animation:mg-roll-in-b 760ms var(--kx-e-out) both}
.mg-word-out{position:absolute;left:0;top:0;transform:translateY(-112%)}
.mg-word-out.is-a{animation:mg-roll-out-a 760ms var(--kx-e-out) both}
.mg-word-out.is-b{animation:mg-roll-out-b 760ms var(--kx-e-out) both}
@keyframes mg-roll-in-a{from{transform:translateY(112%)}}
@keyframes mg-roll-in-b{from{transform:translateY(112%)}}
@keyframes mg-roll-out-a{from{transform:none}}
@keyframes mg-roll-out-b{from{transform:none}}
.mg-roll-static{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.mg-roll-ctl{display:inline-flex;align-items:center;gap:20px}
.mg-ctl{display:inline-flex;align-items:center;gap:10px;min-height:44px;font-family:var(--kx-mono);font-size:var(--kx-t-label);line-height:1.4;letter-spacing:.12em;text-transform:uppercase;color:var(--kx-fg)}
.mg-ctl .kx-icon{width:14px;height:14px}
.mg-ctl-txt{background:linear-gradient(currentColor,currentColor) 0 100% / 0 1px no-repeat;padding-block:3px;transition:background-size var(--kx-d-m) var(--kx-e-out)}
.mg-ctl:hover .mg-ctl-txt{background-size:100% 1px}
.mg-replay .kx-icon{transition:transform var(--kx-d-l) var(--kx-e-bezel)}
.mg-replay:hover .kx-icon{transform:rotate(-360deg)}
.mg-hero-act{display:flex;flex-direction:column;align-items:flex-start;gap:24px}
.mg-hero-inst{display:flex;justify-content:flex-end;color:var(--kx-fg)}
.mg-hero-base{display:grid;gap:16px;padding-top:clamp(48px,6.7vw,96px);padding-bottom:16px}
.mg-hero-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 24px}
@media (min-width:1100px){
  .mg-hero-inst{margin-top:-4px}
}
/* board: max-width 1099.98px. Under 760 px the phone stage (section C) places the instrument. */
@media (min-width:760px) and (max-width:1099.98px){
  .mg-hero-inst{justify-content:flex-start}
  .mg-hero-inst .kx-mono-anim{transform:translateX(-4%)}
}
/* board: under 520 px the H1 shrank and the trust line split in two. Phones use section C instead. */

/* 2. FRAMED VEILED SCREEN ---------------------------------------------------- */
.mg-glimpse{padding-top:clamp(24px,3.4vw,48px)}
.mg-frame{align-items:end;row-gap:24px}
.mg-frame-veil{--kx-ratio:16 / 9}
.mg-glow{position:absolute;inset:-6%;z-index:1;pointer-events:none;mix-blend-mode:screen;opacity:.6;
  background:radial-gradient(52% 64% at 52% 58%, rgba(234,234,230,.34), rgba(234,234,230,0) 72%);
  animation:mg-glow 9s ease-in-out 1.6s infinite alternate both}
@keyframes mg-glow{from{opacity:.25;transform:translateX(-3%)}to{opacity:1;transform:translateX(3%)}}
.mg-label{display:flex;flex-direction:column;gap:16px;padding-bottom:4px}
.mg-label-rule{display:block;height:1px;background:var(--kx-line)}
.mg-policy{font-family:var(--kx-serif);font-weight:300;font-size:var(--kx-t-h3);line-height:1.2;letter-spacing:-.01em;color:var(--kx-fg)}
@supports (animation-timeline: view()){
  .mg-frame-in{transform-origin:50% 100%;animation:mg-frame-in linear both;animation-timeline:view();animation-range:entry 0% entry 100%}
  @keyframes mg-frame-in{from{transform:scale(.94);filter:brightness(.72)}to{transform:none;filter:none}}
}
/* board: under 760 px the frame went 4 / 3. Phones use the phone board's 4 / 5 frame (section C). */

/* 3. MANIFESTO (01) ------------------------------------------------------------ */
.mg-manifesto-text{max-width:calc(100% - (100% + var(--kx-gutter)) / 12);font-family:var(--kx-serif);font-weight:300;font-size:clamp(28px,15.5px + 3.55vw,66px);line-height:1.12;letter-spacing:-.018em;color:var(--kx-fg);text-indent:calc((100% + var(--kx-gutter)) / 12 * 3);text-wrap:pretty}
/* each word gets its own view timeline only as an atomic box (Chrome shares one timeline across inline spans) */
.mg-manifesto .kx-w{display:inline-block;text-indent:0}
@supports (animation-timeline: view()){
  .mg-manifesto .kx-sv-read .kx-w{animation-range:cover calc(10% + var(--i, 0) * .24%) cover calc(30% + var(--i, 0) * .24%)}
}
/* board: under 760 px no indent and no max-width. Phones use the phone board's manifesto (section C). */
/* from 860 px the statement is set in sense lines (one phrase per line, the longest still fits);
   without the max-width the indent lands on a grid line: column 4 of 12, or column 3 of 8 */
@media (min-width:860px){
  .mg-manifesto-text{max-width:none}
  .mg-eol::after{content:"\A";white-space:pre}
}

/* 4. POUR QUI (02) ------------------------------------------------------------- */
.mg-who .kx-rows{border-top:0}
.mg-who .kx-row-link{grid-template-columns:2.4em minmax(0,1fr);align-items:start;column-gap:16px;row-gap:16px;padding-block:clamp(24px,3.4vw,48px)}
.mg-who .kx-row:first-child .kx-row-link{padding-top:16px}
.mg-who .kx-row-link > .kx-idx{padding-top:.9em}
.mg-who-word{display:block;font-size:clamp(44px,18.5px + 6.6vw,114px);line-height:.94;letter-spacing:-.028em;transition:transform var(--kx-d-l) var(--kx-e-out)}
.mg-who-desc{grid-column:2;display:flex;flex-direction:column;align-items:flex-start;gap:12px;max-width:38em}
.mg-who-line{font-size:var(--kx-t-body);line-height:1.5;color:var(--kx-fg);text-wrap:balance}
.mg-who-meta{align-self:stretch;font-size:10.5px;letter-spacing:.1em;--mg-sep:2.4em}
.mg-who-go{display:inline-flex;align-items:center;gap:12px;min-height:32px;font-family:var(--kx-mono);font-size:var(--kx-t-label);letter-spacing:.12em;text-transform:uppercase;color:var(--kx-fg)}
.mg-who .kx-row-link:hover .mg-who-word,.mg-who .kx-row-link:focus-visible .mg-who-word{transform:translateX(.12em)}
@media (min-width:760px){
  .mg-who .kx-row-link{grid-template-columns:repeat(8,minmax(0,1fr));column-gap:var(--kx-gutter)}
  .mg-who .kx-row-link > .kx-idx{grid-column:1}
  .mg-who-word{grid-column:2 / span 7}
  .mg-who-desc{grid-column:2 / span 6}
}
@media (min-width:1100px){
  .mg-who .kx-row-link{grid-template-columns:repeat(12,minmax(0,1fr));row-gap:0}
  .mg-who-word{grid-column:2 / span 5}
  .mg-who-desc{grid-column:7 / span 6;padding-top:.6em}
}

/* 5. LE METIER (03) ------------------------------------------------------------ */
.mg-craft-head{display:flex;flex-direction:column;align-items:flex-start;gap:20px}
.mg-spec{display:grid;border-bottom:1px solid var(--kx-line)}
.mg-spec-row{position:relative;display:grid;grid-template-columns:2.4em minmax(0,1fr);column-gap:16px;row-gap:8px;align-items:baseline;padding-block:24px 28px}
.mg-spec-hair{position:absolute;left:0;right:0;top:0}
.mg-spec-name{font-family:var(--kx-serif);font-size:var(--kx-t-h3);font-weight:400;line-height:1.16;letter-spacing:-.006em}
.mg-spec-line{grid-column:2;max-width:30em;text-wrap:balance}
@media (min-width:760px){
  .mg-spec-row{grid-template-columns:48px minmax(0,3.4fr) minmax(0,5.6fr);column-gap:var(--kx-gutter)}
  .mg-spec-line{grid-column:3}
}
/* align-self:start, or the stretched grid item fills the row and has no room to stick */
@media (min-width:1100px){ .mg-craft-head{position:sticky;top:48px;align-self:start} }

/* 6. APPLICATIONS DU STUDIO (04) ----------------------------------------------- */
.mg-apps-top{align-items:end;row-gap:20px;padding-bottom:clamp(40px,5vw,72px)}
.mg-apps-grid{row-gap:56px}
.mg-app{display:grid;row-gap:20px;align-content:start}
.mg-app-cap{display:grid;gap:10px;justify-items:start;align-content:start}
.mg-app-name{display:flex;align-items:center;gap:14px}
.mg-app-icon{width:32px;height:32px;border-radius:22.4%;object-fit:cover}
.mg-app-line{max-width:30em;text-wrap:balance}
.mg-app-facts{justify-self:stretch;--mg-sep:2.46em}
.mg-apps-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 24px;padding-top:clamp(40px,5vw,64px)}
@media (min-width:760px){
  .mg-apps-grid{row-gap:0}
  .mg-app{grid-row:span 2;grid-template-rows:subgrid}
  .mg-app > .kx-veil{align-self:end}
}

/* 7. METHODE (05) --------------------------------------------------------------- */
.mg-method-top{align-items:end;row-gap:24px}
.mg-method-intro{display:flex;flex-direction:column;align-items:flex-start;gap:20px}
.mg-method-go{display:flex;justify-content:flex-start}
.mg-scale{position:relative;margin-top:clamp(56px,6.7vw,96px)}
.mg-steps-line{position:absolute;left:0;right:0;top:0}
.mg-steps{display:grid;grid-template-columns:minmax(0,1fr)}
.mg-step{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:24px 16px 32px 24px}
.mg-step-axis{position:absolute;left:0;top:0;bottom:0;width:1px;background:var(--kx-line);transform-origin:50% 0}
.mg-step::before{content:"";position:absolute;z-index:1;left:-.5px;top:-5px;width:2px;height:11px;background:var(--kx-accent)}
.mg-step-name{font-family:var(--kx-serif);font-weight:300;font-size:clamp(28px,22px + 1.05vw,38px);line-height:1.08;letter-spacing:-.014em;padding-top:4px}
.mg-step-line{font-size:15px;line-height:1.5;color:var(--kx-fg-2)}
.mg-fix{order:-1}
@media (min-width:1100px){
  .mg-method-go{justify-content:flex-end}
  .mg-steps{grid-template-columns:repeat(5,minmax(0,1fr))}
  .mg-step{padding:28px 16px 8px 24px}
  .mg-fix{position:absolute;left:12px;top:-34px;order:0}
  .mg-step-fix::before{top:-19px;height:25px}
}
@media (max-width:1099.98px){ .mg-steps-line{display:none} }
@supports (animation-timeline: view()){
  .mg-step-axis{animation:mg-drop linear both;animation-timeline:view();animation-range:entry calc(var(--i, 0) * 8%) cover calc(30% + var(--i, 0) * 4%)}
  @keyframes mg-drop{from{transform:scaleY(0)}to{transform:none}}
}

/* 8. LETTRE (06) -------------------------------------------------------------- */
.mg-letter-body{display:flex;flex-direction:column;gap:22px;max-width:33em;font-family:var(--kx-serif);font-weight:400;font-size:clamp(19px,16.6px + .45vw,22px);line-height:1.52;letter-spacing:-.003em;color:var(--kx-fg)}
.mg-balance{text-wrap:balance}
.mg-nb{white-space:nowrap}
.mg-sign{align-self:flex-start;display:grid;justify-items:start;gap:16px;padding-top:24px}
.mg-sign-name{display:block;font-family:var(--kx-serif);font-style:italic;font-weight:300;font-size:clamp(44px,28px + 3.6vw,80px);line-height:1;letter-spacing:-.02em;padding-right:.06em}
.mg-sign-rule{display:block;justify-self:stretch;height:1.5px;background:var(--kx-fg)}

/* 9. CONTACT (07) ------------------------------------------------------------- */
.mg-close-line{font-size:clamp(36px,18px + 4.9vw,88px);line-height:1.2;letter-spacing:-.02em}
.mg-close-pill{min-height:clamp(48px,40px + 1.6vw,64px);padding:0 clamp(18px,14px + 1.1vw,30px);margin-inline:.12em .16em;font-size:clamp(15px,13.5px + .32vw,18px);gap:12px;vertical-align:middle}
.mg-close-meta{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:12px 32px;padding-top:clamp(32px,4.4vw,64px)}

/* footer: korix.css gives .kx-footer overflow:hidden, which makes it a scroll container and freezes
   the view() timeline of .kx-sv-letters. clip keeps the clipping without capturing the timeline. */
.kx .kx-footer{overflow:clip}

/* reduced motion: no roll, the full sentence is shown */
@media (prefers-reduced-motion: reduce){
  .mg-roll-anim,.mg-roll-ctl,.mg-replay{display:none}
  .mg-roll-static{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto;white-space:normal}
}

/* ==========================================================================
   B. LIVE PAGE: states the board drew with sc-if, the two layouts, no JavaScript
   ========================================================================== */
/* every state is in the HTML: the leaving word and the paused icon wait with the hidden attribute
   (the classes above set display, so hidden needs its own rule; SVG ignores the HTML hidden style) */
.mg-word[hidden],.mg-ctl svg[hidden]{display:none}
/* mono lists: the board keeps every item on one line. From 760 to 813 px "En ligne depuis novembre 2026"
   is wider than the Act Two column and the board cuts it at the column edge (by up to 18 px). Here an
   item that cannot fit a line on its own wraps inside itself ("novembre 2026" kept together); items
   that fit are laid out exactly as before, since the flex lines still break between items. */
.mg-list-in > span{white-space:normal}
/* the glimpse caption row exists for phones only; on desktop its label is a direct item of the caption */
.mg-cap{display:contents}
/* layout switches: .mg-lg is desktop only, .mg-sm phone only (the phone board's own copy of a few strings
   it set differently: kicker, H1 lines, subline, the EgoLift line, the mono lists, first letter
   paragraph). .mg-nbm makes a pair of manifesto words one box on phones, as on the phone board. In
   running text the phone board's no-break spaces are real characters where they leave every desktop
   width unchanged (line breaks compared with the Main board at every width from 760 to 1920 px): a space
   and a no-break space have the same advance in Newsreader and Archivo, while an extra span inside a
   line moves the desktop glyphs by a sub-pixel or changes how balance and pretty break it. */
@media (min-width:760px){
  .mg-sm{display:none !important}
}
/* without JavaScript the roll cannot turn: the full sentence is shown, as under reduced motion
   (the pause, dial and replay controls carry .kx-js-only) */
html:not(.js) .mg-roll-anim,html:not(.js) .m-roll-anim{display:none}
html:not(.js) .mg-roll-static{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto;white-space:normal}
/* the intro plays once, as on the boards. Each layout animates some pieces under its own keyframes or
   shows its own copy, so a switch between them (a phone turned to landscape, a resized window) would
   start every intro again. When the layout switches after the intro has played, accueil.js sets
   .is-played and an intro animation that starts again is already over (its end state is the resting
   style). Until a switch, the finished animations are left as they are. "Rejouer" lifts it for the
   replay; an idle word slot does the same (.is-still) until the next turn of the roll. The dial, the
   glow and the scroll-linked effects keep running. */
.mg-hero.is-played :is(.kx-rise,.kx-line > span,.kx-draw-ticks,.kx-sweep *,.kx-index,.kx-dial-arc,.mg-hero-avail),
.mg-slot.is-still .mg-word{animation-delay:-10s}
@media (min-width:760px){
  .mg-glimpse.is-played :is(.kx-voile,.kx-voile img){animation-delay:-10s}
}
/* without JavaScript the hero cannot be replayed (its control is hidden) and nothing can hold the intro
   on a layout switch: the hero, and the desktop frame's veil, simply show at rest */
html:not(.js) .mg-hero :is(.kx-rise,.kx-line > span,.kx-draw-ticks,.kx-sweep *,.kx-index,.kx-dial-arc,.mg-hero-avail){animation:none}
@media (min-width:760px){
  html:not(.js) .mg-glimpse :is(.kx-voile,.kx-voile img){animation:none}
}

/* ==========================================================================
   C. MOBILE-ACCUEIL BOARD (phone), below 760 px
   ========================================================================== */
@keyframes m-line{from{transform:translateY(132%)}}
@keyframes m-line-deep{from{transform:translateY(165%)}}
@keyframes m-arc-a{from{stroke-dashoffset:91.11}}
@keyframes m-arc-b{from{stroke-dashoffset:91.11}}
@keyframes m-glow{0%{transform:translate(-16%,14%) scale(.86);opacity:.5}100%{transform:translate(12%,-10%) scale(1.06);opacity:1}}
@keyframes m-frame{from{transform:scale(.94)}to{transform:none}}
@keyframes m-rail{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@keyframes m-head{from{transform:scaleX(0)}to{transform:none}}
@keyframes m-sign{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}

@media (max-width:759.98px){
  .mg-lg{display:none !important}
  .mg-nbm{white-space:nowrap}

  /* page frame: keyboard focus never lands under the thumb bar; the bar's resting place below the
     footer stays nuit (the board painted it on its page shell) */
  html{scroll-padding-bottom:96px}
  /* clip in both directions, like the board's page shell: the waiting thumb bar sits translated below
     its dock and must not lengthen the page */
  .kx{--m-dock:80px;overflow:clip}
  html.js .kx{background-image:linear-gradient(to top,var(--kx-nuit) 0 var(--m-dock),transparent var(--m-dock))}
  /* the veil keeps its depth at any width: 9 px at 390, deeper when the frame grows past phone size */
  .kx .kx-veil{--kx-blur:max(9px,2.3vw);--kx-blur-near:max(7px,1.8vw)}
  .kx-menu{overscroll-behavior:contain}

  /* section openers: index and name set as one mono line (balanced like the phone board's h2 when it
     wraps), the hairline drawn by a pseudo-element */
  .mg-sh{display:inline;text-wrap:balance}
  .kx .kx-section-head{position:relative;border-top-color:transparent}
  .kx .kx-section-head::before{content:"";position:absolute;left:0;right:0;top:-1px;height:1px;background:var(--kx-line);transform-origin:left center}
  /* mono lists: the phone board sets each one as running text with its own separators. Phones get that
     text as one run (the .mg-sm copy) so it wraps exactly like the board; the desktop list (.mg-lg),
     one span per item, adds up rounded item widths and broke a line earlier than the board at some
     widths (340 and 487 px). */
  .mg-who-meta.mg-sm{display:block;text-wrap:pretty}
  .mg-app-spec{display:grid;gap:2px;text-wrap:pretty}
  .mg-app-spec > span{display:block}

  /* 1. hero: stage (kicker, replay, instrument), copy, actions, track. The desktop wrappers step
     aside (display: contents) so every piece sits on one grid, in the phone board's order. */
  .mg-hero{--m-ih:clamp(264px,78vw,352px);--m-s:calc(var(--m-ih) / 164);padding-top:0}
  .mg-hero > .kx-wrap{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;padding-top:24px}
  .mg-hero .mg-hero-grid,.mg-hero-text,.mg-hero-head,.mg-hero-base,.mg-hero-meta{display:contents}
  .m-kick{grid-area:1 / 1;justify-self:start;margin-top:calc(var(--m-s) * 36.96);display:grid;justify-items:start;
    font-family:var(--kx-mono);font-size:var(--kx-t-label);line-height:1.4;letter-spacing:.12em;text-transform:uppercase;color:var(--kx-fg-2)}
  .m-kick::before{content:"";width:20px;height:1px;margin-bottom:12px;background:var(--kx-accent)}
  .m-kick > span{display:block}
  .m-replay{grid-area:1 / 1;align-self:end;justify-self:start;margin-bottom:calc(var(--m-s) * 27.04 - 18px);
    display:inline-flex;align-items:center;gap:8px;min-height:44px;margin-left:-2px;
    font-family:var(--kx-mono);font-size:var(--kx-t-label);letter-spacing:.12em;text-transform:uppercase;color:var(--kx-fg-2);
    transition:color var(--kx-d-s) var(--kx-e-out)}
  .m-replay .kx-icon{width:14px;height:14px;transition:transform 1300ms var(--kx-e-sweep)}
  .m-replay:active .kx-icon{transform:rotate(-120deg)}
  .mg-hero-inst{grid-area:1 / 2;display:block;margin-top:0}
  .mg-hero-inst .kx-mono-anim{height:var(--m-ih) !important;margin-right:calc(var(--m-s) * -10)}
  .mg-hero .kx-dial-arc{animation:none}

  .mg-h1{grid-column:1 / -1;grid-row:2;margin-top:32px}
  /* line masks start lower than korix.css: at line-height .98 the tops of l, t, i and accents would peek out of the mask at t=0 */
  .mg-h1 .kx-line > span{animation-name:m-line}
  .mg-h1 .mg-l3 > span{animation-name:m-line-deep}
  .mg-h1 .mg-l3 .kx-mark.kx-draw-ticks{animation-duration:1100ms}
  .mg-hero-lead{grid-column:1 / -1;grid-row:3;margin-top:24px;display:grid;gap:0}
  .mg-roll-row{flex-wrap:nowrap;justify-content:space-between;gap:16px;min-height:44px;margin-top:-6px}
  .mg-roll{white-space:normal}
  .m-roll{display:inline-grid;vertical-align:baseline;clip-path:inset(0 -1px);transition:width 640ms var(--kx-e-out)}
  .m-roll-w{grid-area:1 / 1;justify-self:start;white-space:nowrap;transform:translateY(105%);opacity:0;
    transition:transform 760ms var(--kx-e-out),opacity 380ms linear}
  .m-roll-w.is-on{transform:none;opacity:1;transition:transform 760ms var(--kx-e-out) 90ms,opacity 380ms linear 90ms}
  .m-roll-w.is-out{transform:translateY(-105%);opacity:0}
  .m-dial{position:relative;flex:none;display:inline-grid;place-items:center;width:44px;height:44px;margin-right:-7px;
    border-radius:50%;color:var(--kx-fg);transition:transform var(--kx-d-s) var(--kx-e-out)}
  .m-dial:active{transform:scale(.94)}
  .m-dial svg{width:30px;height:30px;overflow:visible}
  .m-dial-ring{fill:none;stroke:var(--kx-line);stroke-width:1}
  .m-dial-arc{fill:none;stroke:var(--kx-accent);stroke-width:1.5;stroke-dasharray:91.11;stroke-dashoffset:0;
    transform:rotate(-90deg);transform-origin:16px 16px}
  .m-dial.is-a .m-dial-arc{animation:m-arc-a 2800ms linear both}
  .m-dial.is-b .m-dial-arc{animation:m-arc-b 2800ms linear both}
  .m-dial.is-paused .m-dial-arc{animation-play-state:paused}
  .m-dial-glyph{fill:none;stroke:currentColor;stroke-width:1.25;stroke-linecap:square;stroke-linejoin:miter}
  .m-dial-play{display:none}
  .m-dial.is-paused .m-dial-pause{display:none}
  .m-dial.is-paused .m-dial-play{display:inline}

  .mg-hero-act{grid-column:1 / -1;grid-row:4;margin-top:32px;align-items:stretch}
  .mg-hero-act .kx-cluster{gap:8px 24px}
  /* the availability joins the reply time (the phone board's meta block rises at 680 ms); its line
     break is a newline in the text, kept only here (white-space: pre-line), so desktop text is untouched */
  .mg-hero-avail{grid-column:1 / -1;grid-row:5;margin-top:4px;animation:kx-rise 900ms var(--kx-e-out) 680ms both}
  .mg-hero-avail,.mg-close-avail{white-space:pre-line}
  .mg-hero-base > .kx-track{grid-column:1 / -1;grid-row:6;margin-top:56px;animation-delay:680ms}

  /* 2. framed veiled screen */
  .mg-glimpse{padding-top:64px}
  .mg-frame{column-gap:24px;row-gap:0;align-items:stretch}
  .mg-frame-veil{--kx-ratio:4 / 5;--kx-o:50% 60% !important;--kx-s:1.32 !important;animation:none}
  .mg-frame-veil img{animation:none}
  .mg-glow{inset:-30%;z-index:2;opacity:.8;background:radial-gradient(closest-side,rgba(255,255,255,.17),rgba(255,255,255,0));
    animation:m-glow 16s ease-in-out infinite alternate}
  .mg-label{display:contents}
  .mg-cap{grid-column:1 / -1;display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 16px;margin-top:12px}
  .mg-policy{grid-column:2 / -1;margin-top:24px;letter-spacing:-.008em;text-wrap:balance}

  /* 3. manifesto (01) */
  /* the phone board asks for pretty wrapping, but its runtime wraps every word and space in its own span
     and Chrome then breaks the lines greedily: plain wrapping gives the board's lines at every width
     from 320 to 759 px (pretty moved a word at 565-595 and 668-700 px) */
  .mg-manifesto-text{max-width:none;font-size:30px;line-height:1.2;letter-spacing:-.014em;text-indent:calc((100% - 48px) / 4 + 16px);text-wrap:wrap}
  .mg-manifesto-text .mg-nb{white-space:normal}
  /* the phone board sets these pairs as one word box (a no-break space inside): one atomic box here
     too, its words inline inside it, read by scroll as a unit (see the scroll-linked block below) */
  .mg-manifesto-text .mg-nbm{display:inline-block;text-indent:0;white-space:nowrap}
  .mg-manifesto-text .mg-nbm > .kx-w{display:inline}

  /* 4. pour qui (02) */
  .mg-who{padding-top:0}
  .mg-who .kx-section-head{margin-bottom:0}
  .mg-who .kx-row-link{grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;column-gap:16px;row-gap:16px;padding-block:32px}
  .mg-who .kx-row:first-child .kx-row-link{padding-top:32px}
  .mg-who .kx-row:last-child{border-bottom:0}
  .mg-who .kx-row:last-child .kx-row-link{padding-bottom:0}
  .mg-who .kx-row-link > .kx-idx{grid-column:1;grid-row:2;align-self:baseline;padding-top:0}
  .mg-who-word{grid-column:1 / -1;grid-row:1;font-size:var(--kx-t-display-xl);line-height:.96;letter-spacing:-.026em}
  .mg-who .kx-row-link:hover .mg-who-word,.mg-who .kx-row-link:focus-visible .mg-who-word{transform:none}
  .mg-who .kx-row-link:focus-visible{outline-offset:-1px}
  .mg-who-desc{grid-column:2 / -1;grid-row:2;align-self:baseline;display:grid;gap:12px;justify-items:start;max-width:none;padding-top:0}
  .mg-who-line{text-wrap:pretty}
  .mg-who-meta{font-size:var(--kx-t-label);letter-spacing:.12em}
  .mg-who-go{gap:10px;font-family:var(--kx-sans);font-size:15px;font-weight:500;letter-spacing:normal;text-transform:none}
  .mg-who-go-t{background:linear-gradient(currentColor,currentColor) 100% 100% / 100% 1px no-repeat;padding-bottom:3px}
  .mg-who .kx-row-link:active .kx-arrow{transform:translateX(4px)}

  /* 5. le metier (03): not on the phone board; set like its other sections (label, lead, rows on the
     four-column grid, the heading kept for assistive technology) */
  .mg-craft{padding-top:0}
  .mg-craft-head > .kx-h2,.mg-apps-top > .kx-h2,.mg-method-intro > .kx-h2{position:absolute !important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
  .mg-craft-head > .kx-lead{text-wrap:balance}
  .mg-spec-row{grid-template-columns:repeat(4,minmax(0,1fr))}
  .mg-spec-name,.mg-spec-line{grid-column:2 / -1}

  /* 6. applications du studio (04) */
  .mg-apps{padding-top:0}
  .mg-apps > .kx-wrap{display:grid;gap:32px}
  .mg-apps .kx-section-head{margin-bottom:0}
  .mg-apps .kx-section-head > :last-child{white-space:nowrap}
  .mg-apps-top{row-gap:0;padding-bottom:0}
  .mg-apps-top > .kx-lead{text-wrap:balance}
  .mg-apps-grid{row-gap:0;border-top:1px solid var(--kx-line)}
  .mg-app{row-gap:16px;padding-block:32px;border-bottom:1px solid var(--kx-line)}
  .mg-app-1 .kx-veil{--kx-ratio:3 / 1 !important;--kx-o:50% 45% !important;--kx-s:1.15 !important}
  .mg-app-2 .kx-veil{--kx-ratio:3 / 1 !important;--kx-o:50% 70% !important;--kx-s:1.15 !important}
  .mg-app-cap{display:contents}
  .mg-app-name{order:-1;align-items:baseline;justify-content:space-between;gap:16px;padding-bottom:4px}
  .mg-app-name > .kx-h3{font-weight:300;font-size:var(--kx-t-h1);line-height:1;letter-spacing:-.018em}
  .mg-app-line{max-width:none;text-wrap:pretty;margin-top:-4px}
  .mg-apps-foot{display:grid;gap:8px;justify-items:start;padding-top:0}
  .mg-apps-foot > .kx-label{text-wrap:balance}

  /* 7. methode (05) */
  .mg-method{padding-top:0}
  .mg-method > .kx-wrap{display:grid;gap:32px}
  .mg-method .kx-section-head{margin-bottom:0}
  .mg-method-intro > .kx-lead{text-wrap:balance}
  .mg-scale{margin-top:0}
  .mg-steps{--m-rail:calc((100% - 48px) / 4 - 6px);position:relative}
  .mg-steps::before{content:"";position:absolute;top:0;bottom:0;left:var(--m-rail);width:9px;opacity:.8;
    background:
      linear-gradient(var(--kx-line-strong),var(--kx-line-strong)) 0 0 / 1px 100% no-repeat,
      repeating-linear-gradient(180deg,var(--kx-line-strong) 0 1px,transparent 1px 8px) 0 0 / 4px 100% no-repeat,
      repeating-linear-gradient(180deg,var(--kx-fg) 0 1px,transparent 1px 40px) 0 0 / 9px 100% no-repeat}
  .mg-steps::after{content:"";position:absolute;top:0;bottom:0;left:calc(var(--m-rail) - .25px);width:1.5px;background:var(--kx-accent);transform-origin:50% 0}
  .mg-step{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;column-gap:16px;row-gap:8px;padding:16px 0 24px}
  .mg-step::before{left:var(--m-rail);top:35px;z-index:auto;width:9px;height:1.5px}
  .mg-step-axis{display:none}
  .mg-step > .kx-idx{grid-column:1;grid-row:1;align-self:baseline}
  .mg-step-name{grid-column:2 / -1;grid-row:1;align-self:baseline;font-size:var(--kx-t-h2);line-height:1.06;padding-top:0}
  .mg-step-line{grid-column:2 / -1;grid-row:2;font-size:inherit;line-height:inherit}

  /* 8. lettre (06) */
  .mg-letter{padding-top:0}
  .mg-letter .kx-grid{column-gap:16px}
  .mg-letter .kx-grid > .mg-letter-body{grid-column:2 / -1;display:grid;gap:16px;max-width:none;font-size:var(--kx-t-lead);line-height:1.5;letter-spacing:normal}
  .mg-letter-body > p{text-wrap:balance}
  /* the two paragraphs the phone board left out run past the six lines balance handles: they keep
     korix.css's pretty wrapping (no split "vous-/même.", no last word alone) */
  .mg-letter-body > .mg-letter-add{text-wrap:pretty}
  .mg-sign{gap:4px;padding-top:16px}
  .mg-sign-name{font-size:44px;line-height:1.1;letter-spacing:-.01em;padding-right:0}
  .m-sign-line{display:block;width:172px;height:10px;overflow:visible}
  .m-sign-line path{fill:none;stroke:var(--kx-fg);stroke-width:1.25;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:0}

  /* 9. contact (07) */
  .mg-close{padding-top:0}
  .mg-close > .kx-wrap{display:grid;gap:32px}
  .mg-close .kx-section-head{margin-bottom:0}
  .mg-close-line{font-size:var(--kx-t-h1);line-height:1.25;letter-spacing:-.018em}
  .mg-close-pill{min-height:44px;padding:0 18px;margin-inline:.12em;font-size:15px;gap:10px}
  .mg-close-meta{display:grid;gap:8px;padding-top:0}
  .mg-close-meta > .kx-lead{font-family:var(--kx-sans);font-size:var(--kx-t-body);font-weight:400;line-height:1.6;letter-spacing:normal;text-wrap:pretty}

  /* thumb bar (sticky, never fixed): it takes over from the hero actions and steps aside while
     the closing pill or the footer action is on screen (accueil.js sets .is-shown) */
  .m-dock{position:sticky;bottom:0;z-index:30;height:var(--m-dock);padding:8px var(--kx-margin) 16px;pointer-events:none}
  .m-bar{pointer-events:auto;display:flex;align-items:center;justify-content:space-between;gap:8px;height:56px;max-width:560px;margin-inline:auto;
    padding:0 5px 0 20px;border:1px solid var(--kx-ligne-nuit);border-radius:999px}
  .m-bar-menu{display:inline-flex;align-items:center;gap:12px;min-height:44px;min-width:44px;padding-right:8px;
    font-family:var(--kx-mono);font-size:var(--kx-t-label);letter-spacing:.12em;text-transform:uppercase;color:var(--kx-fg)}
  .m-bar-cta{flex:none}
  .m-bar{transform:translateY(calc(100% + 24px));opacity:0;visibility:hidden;
    transition:transform 640ms var(--kx-e-out),opacity 320ms linear,visibility 0s linear 640ms}
  .m-dock.is-shown .m-bar{transform:none;opacity:1;visibility:visible;
    transition:transform 640ms var(--kx-e-out),opacity 320ms linear,visibility 0s}

  /* scroll-linked, only where supported (without support everything simply shows) */
  @supports (animation-timeline: view()){
    /* .kx-veil clips, so it is the image's nearest box: a named timeline on the frame ties the
       korix blur settle (kx-sv-veil) to the page scroll */
    .mg-frame-veil,.mg-app .kx-veil{view-timeline:--m-veil block}
    .mg-frame-veil img,.mg-app .kx-veil img{animation:kx-sv-veil linear backwards;animation-timeline:--m-veil;animation-range:entry 0% cover 45%}
    .mg-frame-in{animation:none}
    .mg-frame-veil{animation:m-frame linear both;animation-timeline:view();animation-range:entry 0% entry 100%}
    .mg-manifesto .kx-sv-read .kx-w{animation-range:cover 15% cover 45%}
    .mg-manifesto .kx-sv-read .mg-nbm{animation:kx-sv-read linear both;animation-timeline:view();animation-range:cover 15% cover 45%}
    .mg-manifesto .kx-sv-read .mg-nbm > .kx-w{animation:none}
    .mg-steps::after{animation:m-rail linear both;animation-timeline:view();animation-range:entry 10% cover 70%}
    .m-sign-line path{animation:m-sign linear both;animation-timeline:view();animation-range:entry 0% entry 100%}
    .kx .kx-section-head{view-timeline:--m-head block}
    .kx .kx-section-head::before{animation:m-head linear both;animation-timeline:--m-head;animation-range:entry 0% cover 35%}
  }
}
@media (max-width:759.98px) and (max-width:359.98px){ .mg-h1{font-size:42px} }
@media (max-width:759.98px) and (hover:hover){
  .m-replay:hover{color:var(--kx-fg)}
  .m-replay:hover .kx-icon{transform:rotate(-120deg)}
  .mg-who .kx-row-link:hover .mg-who-go-t{animation:kx-redraw 760ms var(--kx-e-out)}
}
/* phones, reduced motion or no JavaScript: the static sentence replaces the roll line and its dial */
@media (max-width:759.98px) and (prefers-reduced-motion: reduce){
  .m-roll-anim,.m-dial{display:none}
  .mg-roll-row{display:block;min-height:0;margin-top:0}
}
@media (max-width:759.98px){
  html:not(.js) .mg-roll-row{display:block;min-height:0;margin-top:0}
}
