/* ==========================================================================
   Adjamée — styles
   1. Fonts & tokens   2. Base   3. Shell (sidebars / mobile nav / footer)
   4. Components       5. Pages  6. Overlays (preloader, menu, onboarding)
   ========================================================================== */

/* 1. Fonts & tokens ------------------------------------------------------- */
@font-face {
  font-family: "PP Editorial Old";
  src: url("../assets/fonts/PPEditorialOld-Ultrabold.woff2") format("woff2"),
       url("../assets/fonts/PPEditorialOld-Ultrabold.woff") format("woff");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "PP Editorial Old";
  src: url("../assets/fonts/PPEditorialOld-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  /* Colours (Figma variables) */
  --bg: #e9e7da;
  --rouge: #761816;
  --vert: #313421;
  --orange: #bc5118;
  --accent: var(--rouge);

  /* Type families */
  --serif: "PP Editorial Old", "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Motion */
  --expo: cubic-bezier(0.19, 1, 0.22, 1);
  --expo-io: cubic-bezier(0.87, 0, 0.13, 1);

  /* Layout — desktop: 13px margins, 340px sidebars, 6-column centre (104px cols / 15px gutters) */
  --margin: 13px;
  --pad-y: 15px;
  --side: clamp(188px, round(23.6vw, 1px), 340px); /* Figma ratio (340 / 1440) down to 820px; whole pixels → crisp column lines */
  --inner: 16px;
  --cols: 6;
  --gutter: 15px;

  /* Type scale — desktop */
  --h1: 90px;  --h1-lh: 1.078; --h1-ls: -0.033em;
  --h2: 76px;  --h2-lh: 1.026; --h2-ls: -0.026em;
  --h3: 62px;  --h3-lh: 1.032; --h3-ls: -0.016em;
  --h4: 54px;  --h4-lh: 1;     --h4-ls: -0.0185em;
  --h5: 40px;  --h5-lh: 1.225; --h5-ls: -0.025em;
  --h6: 25px;  --h6-lh: 1.16;  --h6-ls: 0;
  --pl: 20px;  --pl-lh: 22px;  --pl-ls: -0.5px;
  --pm: 16px;  --pm-lh: 18px;  --pm-ls: -0.5px;
  --ps: 14px;  --ps-lh: 20px;  --ps-ls: -0.5px;
  --pxs: 12px; --pxs-lh: 16px; --pxs-ls: -0.5px;
}

html[data-da="vert"] { --accent: var(--vert); }
html[data-da="orange"] { --accent: var(--orange); }

@media (max-width: 819px) {
  :root {
    /* Mobile: 4 columns, 8px margins, 10px gutters */
    --margin: 8px;
    --inner: 10px;
    --cols: 4;
    --gutter: 10px;
    --h1: 50px;  --h1-lh: 1.08;  --h1-ls: -0.02em;
    --h2: 48px;  --h2-lh: 1.166; --h2-ls: -0.02em;
    --h3: 40px;  --h3-lh: 1.1;   --h3-ls: -0.025em;
    --h4: 32px;  --h4-lh: 1.25;  --h4-ls: -0.03em;
    --h5: 28px;  --h5-lh: 1.2;   --h5-ls: -0.03em;
    --h6: 20px;  --h6-lh: 1.3;   --h6-ls: -0.05em;
    --pl: 18px;  --pl-lh: 20px;  --pl-ls: -1px;
    --pm: 16px;  --pm-lh: 20px;  --pm-ls: -1px;
    --ps: 14px;  --ps-lh: 16px;  --ps-ls: -1px;
  }
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body {
  background: var(--bg);
  color: var(--accent);
  font-family: var(--sans);
  font-weight: 700;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
::selection { background: var(--accent); color: var(--bg); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  padding: 10px 16px; background: var(--accent); color: var(--bg);
  transform: translateY(-200%); transition: transform 0.4s var(--expo);
}
.skip:focus { transform: none; }

/* Typography */
.h1, .h2, .h3, .h4, .h5, .h6 { font-family: var(--serif); }
.h1 { font-weight: 800; font-size: min(var(--h1), 12.7cqi); line-height: var(--h1-lh); letter-spacing: var(--h1-ls); }
.h2 { font-weight: 800; font-size: min(var(--h2), 11cqi); line-height: var(--h2-lh); letter-spacing: var(--h2-ls); }
.h3 { font-weight: 800; font-size: min(var(--h3), 9cqi); line-height: var(--h3-lh); letter-spacing: var(--h3-ls); }
.h4 { font-weight: 400; font-size: min(var(--h4), 7.8cqi); line-height: var(--h4-lh); letter-spacing: var(--h4-ls); }
.h5 { font-weight: 400; font-size: var(--h5); line-height: var(--h5-lh); letter-spacing: var(--h5-ls); }
.h6 { font-weight: 800; font-size: var(--h6); line-height: var(--h6-lh); letter-spacing: var(--h6-ls); }
.pl  { font-weight: 900; font-size: var(--pl);  line-height: var(--pl-lh);  letter-spacing: var(--pl-ls); }
.pm  { font-weight: 700; font-size: var(--pm);  line-height: var(--pm-lh);  letter-spacing: var(--pm-ls); }
.ps  { font-weight: 700; font-size: var(--ps);  line-height: var(--ps-lh);  letter-spacing: var(--ps-ls); }
.pxs { font-weight: 700; font-size: var(--pxs); line-height: var(--pxs-lh); letter-spacing: var(--pxs-ls); }
.center { text-align: center; }

/* Split-text lines (SplitText mask wrappers).
   The clip box is enlarged above and below (padding) without moving the layout (negative margins),
   so accents (à, é) and descenders (p, ç) are never cut — even on titles set with line-height: 1. */
.line-mask { overflow: clip; padding: 0.12em 0 0.16em; margin: -0.12em 0 -0.16em; }

/* Reveal fallbacks: hidden until JS animates, shown anyway after 4s if JS fails */
.js [data-reveal], .js [data-media], .js .pcard { visibility: hidden; animation: show-fallback 0s 4s forwards; }
@keyframes show-fallback { to { visibility: visible; } }

/* 3. Shell ----------------------------------------------------------------- */
.shell {
  display: grid;
  grid-template-columns: var(--side) minmax(0, 1fr) var(--side);
  padding: var(--pad-y) var(--margin);
  min-height: 100svh;
}
.main { grid-column: 2; min-width: 0; container-type: inline-size; padding: 0 var(--inner); }
/* fixed columns: the sidebars never move, even while <main> is swapped during a page transition */
.side--left { grid-column: 1; grid-row: 1; }
.side--right { grid-column: 3; grid-row: 1; }

.side {
  position: sticky;
  top: var(--pad-y);
  height: calc(100svh - 2 * var(--pad-y));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 5;
}
.side--right { padding-left: 13px; }

/* Drawn lines (animated in on load).
   Borders (not 1px-tall backgrounds) so every line snaps to the same device-pixel thickness,
   whatever the screen scaling (125 %, 150 %…) or the line's sub-pixel position. */
.vline, .hline { position: absolute; pointer-events: none; }
.vline { top: calc(-1 * var(--pad-y)); bottom: calc(-1 * var(--pad-y)); width: 0; border-left: 1px solid currentColor; transform-origin: top; }
.side--left .vline { right: 1px; }
.side--right .vline { left: 0; }
.hline { left: 0; right: 0; height: 0; border-top: 1px solid currentColor; transform-origin: left; }

/* Logo (SVG used as a mask so it follows the accent colour) */
.logo { display: block; background: currentColor; -webkit-mask: var(--m) no-repeat left center / contain; mask: var(--m) no-repeat left center / contain; }
.logo--side { --m: url("../assets/svg/logo-union.svg"); width: min(333px, 98%); aspect-ratio: 333 / 86.65; }
/* Same artwork as the sidebar logo so the preloader → header flight lands seamlessly */
.logo--pre  { --m: url("../assets/svg/logo-union.svg"); width: min(333px, 60vw); aspect-ratio: 333 / 86.65; }
.logo--m    { --m: url("../assets/svg/logo-mobile.svg"); width: 100%; aspect-ratio: 377 / 98; -webkit-mask-position: center; mask-position: center; }
.side__logo { display: block; height: 85px; padding-top: 1px; }

/* Left menu */
.menu { display: flex; flex-direction: column; }
.navlink { position: relative; display: flex; padding: 4px 0 5px; overflow: hidden; }
.navlink__label { position: relative; opacity: 0.9; transition: color 0.5s var(--expo); }
.navlink__bar { position: absolute; inset: 0 0 1px; background: var(--accent); transform: translateX(-101%); transition: transform 0.8s var(--expo); }
.navlink .hline { bottom: 1px; }
.navlink:hover .navlink__bar, .navlink:focus-visible .navlink__bar { transform: none; }
.navlink:hover .navlink__label, .navlink:focus-visible .navlink__label { color: var(--bg); }

.side__foot { display: flex; justify-content: space-between; padding: 4px 13px 4px 0; }
.side--right .side__foot { padding-right: 0; }

/* Right column */
.side__top { display: flex; justify-content: space-between; align-items: flex-start; }
.langs { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.lang { transition: opacity 0.5s var(--expo); }
.lang[aria-pressed="false"] { opacity: 0.37; }
.lang[aria-pressed="false"]:hover { opacity: 0.7; }
.contact { display: flex; flex-direction: column; align-items: flex-end; }

/* DA changer */
.da { display: flex; align-items: flex-start; gap: 3.3px; }
.da__sw { width: 15px; height: 15px; background: var(--c); transition: width 0.8s var(--expo), height 0.8s var(--expo); }
.da__sw[aria-pressed="true"] { width: 30px; height: 30px; }
.da__sw:hover:not([aria-pressed="true"]) { width: 19px; height: 19px; }

/* Socials */
.socials { display: flex; gap: 2px; }
.socials a { display: grid; place-items: center; width: 33px; height: 33px; }
.ico { display: block; width: 17px; height: 17px; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ico--li { --m: url("../assets/svg/linkedin.svg"); }
.ico--ig { --m: url("../assets/svg/instagram.svg"); }
.ico--pin { --m: url("../assets/svg/pinterest.svg"); width: 19px; height: 19px; }
.ico--arrow { --m: url("../assets/svg/arrow-right.svg"); width: 12.1px; height: 12.1px; }

/* Mobile navbar */
.mnav { display: none; }
.mfoot { display: none; }

@media (max-width: 819px) {
  .shell { display: block; padding: 0; }
  .side { display: none; }
  .main { padding: 10px 0 49px; }

  .mnav {
    display: block;
    position: sticky; top: 0; z-index: 40;
    padding: 8px 8px 7px;
    background: var(--bg);
  }
  .mnav .hline { bottom: 0; }
  /* On scroll the logo slides up and out through its mask (the div clips it) while the row closes;
     back at the top it slides down into place the same way */
  .mnav__logo { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.9s var(--expo); }
  .mnav__logo > div { overflow: hidden; min-height: 0; }
  .mnav__logo a { display: block; padding: 3px 0 20px; transition: transform 0.9s var(--expo); }
  .mnav.is-collapsed .mnav__logo { grid-template-rows: 0fr; }
  .mnav.is-collapsed .mnav__logo a { transform: translateY(-100%); }
  .mnav__bar { display: flex; justify-content: space-between; align-items: flex-start; padding-top: 6px; }
  .mnav .da { width: 50.8px; gap: 2.4px; }
  .mnav .da__sw { width: 11px; height: 11px; flex: none; }
  .mnav .da__sw[aria-pressed="true"] { width: 30px; height: 30px; }
  .mnav__menu { font-size: 13.7px; line-height: 15px; letter-spacing: -0.34px; font-weight: 900; }

  /* Mobile footer (acts as the closing menu of every page) */
  .mfoot {
    display: flex; flex-direction: column; align-items: center; gap: 86px;
    background: var(--accent); color: var(--bg); overflow: clip;
    padding-top: 8px;
  }
  .mfoot__top { display: flex; flex-direction: column; align-items: center; gap: 63px; width: calc(100% - 16px); }
  .mfoot__cta { padding: 17px 0; opacity: 0.9; }
  .mfoot__mid { display: flex; flex-direction: column; align-items: center; gap: 38px; width: 100%; }
  .mfoot__nav { position: relative; width: 100%; display: flex; justify-content: center; }
  .mfoot__nav ul { display: flex; flex-direction: column; gap: 9px; text-align: center; }
  .mfoot__nav a { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 40px; letter-spacing: -1px; opacity: 0.9; }
  .mfoot__langs { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); display: flex; justify-content: space-between; pointer-events: none; }
  .mfoot__langs .lang { pointer-events: auto; }
  .mfoot__legal { position: relative; width: 100%; height: 199px; display: grid; place-items: center; }
  .mfoot__shape { position: absolute; inset: 0 9px; background: var(--bg); -webkit-mask: url("../assets/svg/footer-subtract.svg") center / 100% 100% no-repeat; mask: url("../assets/svg/footer-subtract.svg") center / 100% 100% no-repeat; }
  .mfoot__legal ul { position: relative; text-align: center; }
  .mfoot__legal a { display: block; padding-top: 4px; opacity: 0.9; }
}

/* 4. Components ------------------------------------------------------------- */

/* Bracket label 【 text 】 — brackets are masks so they follow currentColor */
.bracket {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.25em 0.47em 0.15em;
  white-space: nowrap;
}
.bracket::before, .bracket::after {
  content: ""; position: absolute; top: 0; bottom: 0;
  background: currentColor;
  -webkit-mask: url("../assets/svg/bracket-l2.svg") 0 0 / 100% 100% no-repeat;
  mask: url("../assets/svg/bracket-l2.svg") 0 0 / 100% 100% no-repeat;
  transition: opacity 0.5s var(--expo), transform 0.7s var(--expo);
}
.bracket::before { left: 0; width: 0.53em; }
.bracket::after { right: -0.02em; width: 0.6em; transform: scaleX(-1); -webkit-mask-image: url("../assets/svg/bracket-r2.svg"); mask-image: url("../assets/svg/bracket-r2.svg"); }

/* Rolling text micro-interaction (chars injected by JS) */
.roll { display: inline-flex; overflow: hidden; vertical-align: top; }
.roll .ch { position: relative; display: inline-block; white-space: pre; transition: transform 0.7s var(--expo) calc(var(--i) * 14ms); }
.roll .ch::after { content: attr(data-c); position: absolute; left: 0; top: 100%; }
.is-hover .roll .ch { transform: translateY(-100%); }

/* Main button (Figma "Bouton principal") */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 3px;
  background: var(--accent); border: 2px solid var(--accent);
  color: var(--accent);
}
.btn__in { display: grid; place-items: center; height: 69.26px; padding: 0 1px; }
.btn__label {
  display: block; padding: 22px 36px; border-radius: 1000px;
  background: var(--bg);
  transform: rotate(1.38deg);
  transition: transform 0.8s var(--expo);
}
.btn.is-hover .btn__label { transform: rotate(-1.38deg); }
.btn .ps { display: block; }
@media (max-width: 819px) { .btn__in { height: 65px; } }

/* Underlined link (Figma "Link") — line slides in from the left */
/* Underlined link (Figma "Link") — line draws in from the left, leaves to the right.
   The line sits a few px below the text (outside the box) so it never touches descenders. */
.link { position: relative; display: inline-flex; padding-top: 2px; }
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 0; border-top: 1px solid currentColor;
  transform: scaleX(0); transform-origin: right center;
  transition: transform 0.7s var(--expo);
}
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); transform-origin: left center; }

/* Round arrows */
.arrows { display: flex; gap: 5.5px; }
.arrow { display: grid; place-items: center; width: 26.76px; height: 26.76px; border-radius: 50%; background: var(--accent); color: var(--bg); transition: opacity 0.5s var(--expo), transform 0.6s var(--expo); }
.arrow--prev .ico { transform: scaleX(-1); }
.arrow[aria-disabled="true"] { opacity: 0.39; cursor: default; }
.arrow:not([aria-disabled="true"]):hover { transform: scale(1.12); }

/* Media: clip/scale reveal + parallax wrapper */
[data-media] { position: relative; overflow: hidden; }
[data-media] .par { position: absolute; inset: -9% 0; will-change: transform; }
[data-media][data-no-parallax] .par { inset: 0; }
[data-media] img { width: 100%; height: 100%; object-fit: cover; }

/* Project card (grid & list variants share the same markup → Flip) */
.pcard { position: relative; display: block; height: 100%; background: var(--accent); color: var(--bg); overflow: hidden; }
.pcard__name { position: absolute; top: 9px; left: 0; right: 0; z-index: 1; text-align: center; }
.pcard__meta { position: absolute; left: 9px; right: 11px; bottom: 10px; z-index: 1; display: flex; justify-content: space-between; }
.pcard__meta span:last-child { text-align: right; }
.pcard__media { position: absolute; inset: 0; z-index: 2; clip-path: inset(0 0 0 0); transition: clip-path 1s var(--expo); }
@media (hover: hover) {
  .pcard:hover .pcard__media, .pcard:focus-visible .pcard__media { clip-path: inset(21% 2.65% 21% 2.65%); }
}

/* Card texts: letters clip in from their mask, short stagger (letters injected by js/main.js) */
.pcard .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.pcard .c { display: inline-block; transform: translateY(110%); transition: transform 0.45s var(--expo); }
@media (hover: hover) {
  /* appear while the picture shrinks: a short beat, then letter by letter */
  .pcard:hover .c, .pcard:focus-visible .c { transform: none; transition: transform 0.9s var(--expo) calc(0.18s + var(--i) * 0.018s); }
}
/* List view: texts always visible (the entrance is played by js/projects.js) */
.pgrid--list .pcard .c { transform: none; transition: none; }

/* 5. Pages ------------------------------------------------------------------ */

/* Home */
.home { --sh: clamp(260px, calc(100svh - 390px), 516px); padding: 0; height: calc(100svh - 2 * var(--pad-y)); display: flex; flex-direction: column; justify-content: space-between; }
/* The frame keeps the reserved height; the slider inside shrinks a little while scrolling (--k, set by js/home.js)
   and the cards follow, since their size is derived from the slider height */
.slider-frame { height: var(--sh); display: flex; align-items: center; }
.slider { --shk: calc(var(--sh) * var(--k, 1)); display: flex; flex: 1; min-width: 0; height: var(--shk); padding: 0 8px; overflow: hidden; cursor: grab; user-select: none; touch-action: pan-y; }
.slider:active { cursor: grabbing; }
.slide { flex-shrink: 0; height: 100%; width: calc(var(--shk) * 340.5 / 373 + 16px); padding: 0 8px; }
.slide .pcard__media .par { inset: 0 -10%; }
.slide img { -webkit-user-drag: none; pointer-events: none; }
.hero__content { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.hero__heading { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 0 37px; text-align: center; }

@media (max-width: 819px) {
  .home { --sh: 356px; height: auto; gap: 49px; justify-content: flex-start; }
  .slider { padding: 0 calc(var(--margin) - 5px); } /* first card on the 8px margin */
  .slide { width: 350.5px; padding: 0 5px; }
  .hero__heading { padding: 0 8px; }
  .slide .pcard__name, .slide .pcard__meta { display: none; }
}

/* Projects */
.projects__head { position: sticky; top: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 21px; padding: var(--pad-y) 0 12px; margin-top: calc(-1 * var(--pad-y)); background: var(--bg); }
.filters { position: relative; display: flex; align-items: stretch; font-size: 15.25px; }
.filter { font-weight: 800; font-size: 15.25px; line-height: 19px; letter-spacing: -0.44px; padding: 2px 7.6px 0; }
/* Travelling brackets (positioned by js/projects.js) */
.filters__br {
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 0.57em;
  background: currentColor;
  -webkit-mask: url("../assets/svg/bracket-l2.svg") 0 0 / 100% 100% no-repeat;
  mask: url("../assets/svg/bracket-l2.svg") 0 0 / 100% 100% no-repeat;
  pointer-events: none;
  will-change: transform;
  visibility: hidden; /* shown once JS has placed them */
}
.filters__br--r { width: 0.61em; -webkit-mask-image: url("../assets/svg/bracket-r2.svg"); mask-image: url("../assets/svg/bracket-r2.svg"); }

.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; padding-bottom: 19px; }
.pgrid > li { aspect-ratio: 341 / 373; }
.pgrid--list { display: flex; flex-direction: column; gap: 0; }
.pgrid--list > li { aspect-ratio: auto; height: 130px; }
.pgrid--list .pcard { display: flex; align-items: center; gap: 51px; padding: 7px 8px; background: transparent; color: var(--accent); overflow: hidden; }
.pgrid--list .pcard::before { content: ""; position: absolute; inset: 0; background: var(--accent); transform: translateY(101%); transition: transform 0.8s var(--expo); }
.pgrid--list .pcard:hover::before, .pgrid--list .pcard:focus-visible::before { transform: none; }
.pgrid--list .pcard:hover, .pgrid--list .pcard:focus-visible { color: var(--bg); }
.pgrid--list .pcard { transition: color 0.5s var(--expo); }
.pgrid--list .pcard__name { position: relative; flex: 1; text-align: left; }
.pgrid--list .pcard__media { position: relative; inset: auto; flex: 1; height: 100%; clip-path: none !important; }
.pgrid--list .pcard__meta { position: relative; inset: auto; flex: 1; }
.pgrid .hline { top: 0; display: none; }
.pgrid--list .hline { display: block; }

@media (max-width: 819px) {
  .projects { padding: 10px var(--margin) 49px; }
  .projects__head { flex-direction: row; justify-content: space-between; align-items: center; top: 49px; padding: 8px 0 14px; }
  .pgrid { gap: 10px; }
  .pgrid > li { aspect-ratio: 183 / 160; }
  .pgrid:not(.pgrid--list) .pcard__name, .pgrid:not(.pgrid--list) .pcard__meta { display: none; }
  .pgrid--list > li { height: 130px; }
  .pgrid--list .pcard { gap: 16px; }
  .pgrid--list .pcard__meta { flex-direction: column; align-items: flex-end; gap: 18px; }
}

/* Project (CMS) */
.cms { display: flex; flex-direction: column; gap: 49px; padding-bottom: 21px; }
.cms__hero { display: flex; flex-direction: column; gap: 21px; }
.cms__preview { height: 547px; }
.cms__infos { display: flex; justify-content: space-between; width: min(692px, 100%); margin: 0 auto; }
.cms__lead { max-width: 517px; margin: 0 auto; text-align: center; opacity: 0.9; }
.cms__info { display: flex; flex-direction: column; gap: 49px; }
.cms__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cms__row .h6.right { text-align: right; }
.gallery { display: flex; flex-direction: column; gap: 15px; }
.gallery .wide { aspect-ratio: 1500 / 998; }
.gallery .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.gallery .pair figure { aspect-ratio: 696 / 1042; }
.credits { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 40px var(--gutter); }
.credits > div { display: flex; flex-direction: column; gap: 8px; }
.credits h3 { font-weight: 900; }
.credits ul { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.c1 { grid-column: 1 / span 2; } .c2 { grid-column: 2 / span 2; } .c3 { grid-column: 3 / span 2; }
.c4 { grid-column: 4 / span 2; } .c5 { grid-column: 5 / span 2; } .c6 { grid-column: 6 / span 1; }
.cta { display: flex; flex-direction: column; gap: 10px; }
.cta__btn { align-self: flex-end; text-align: right; }

@media (max-width: 819px) {
  .cms { padding: 10px var(--margin) 49px; gap: 32px; }
  .cms__preview { height: 260px; }
  .cms__row { grid-template-columns: 1fr 1.6fr; }
  .cms__row .h6.right { text-align: left; }
  .gallery, .gallery .pair { gap: 10px; }
  .credits > div { grid-column: span 2; }
  .cta__btn { align-self: center; text-align: center; }
}

/* Studio */
.studio { display: flex; flex-direction: column; align-items: center; gap: 181px; padding-bottom: 21px; }
.studio > section { width: 100%; }
.s-hero { display: flex; flex-direction: column; gap: 23px; }
.s-hero__imgs { display: grid; grid-template-columns: 224fr 478fr; gap: 15px; align-items: start; }
.s-hero__imgs figure:first-child { height: 235px; }
.s-hero__imgs figure:last-child { height: 448px; }
.s-hero__text { display: flex; flex-direction: column; gap: 15px; }
.s-about, .s-team, .s-strat, .s-process { max-width: 700px; }
.s-about { display: flex; flex-direction: column; gap: 15px; }
.s-about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.s-about__col { display: flex; flex-direction: column; gap: 15px; }
.s-about__col figure { height: 512px; }
.s-team { display: flex; flex-direction: column; gap: 30px; }
.member { display: grid; grid-template-columns: 223px 1fr; gap: 15px; align-items: start; }
.member__body { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.member__body figure { height: 222px; }
.member__name { padding-top: 0.35em; }
.s-video { display: flex; flex-direction: column; gap: 15px; }
.s-video__head { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
/* The frame takes the film's own proportion (portrait 480×854) over the full column width → nothing cropped */
.s-video__box { position: relative; aspect-ratio: 480 / 854; background: var(--accent); overflow: hidden; display: grid; place-items: center; }
.s-video__box video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.s-video__play { position: relative; z-index: 1; color: var(--bg); font-size: var(--pm); line-height: var(--pm-lh); padding: 7px 12.2px 6px; transition: opacity 0.6s var(--expo); }
/* label swaps Regarder ⇄ Pause; while playing the button fades out and comes back on hover / focus */
.s-video__label { display: inline-flex; }
.s-video__label--pause, .s-video__box.is-playing .s-video__label--play { display: none; }
.s-video__box.is-playing .s-video__label--pause { display: inline-flex; }
.s-video__box.is-playing .s-video__play { opacity: 0; }
.s-video__box.is-playing:hover .s-video__play, .s-video__box.is-playing .s-video__play:focus-visible { opacity: 1; }
@media (hover: none) { .s-video__box.is-playing .s-video__play { opacity: 0.85; } }
.s-video__desc { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.s-video__desc p { max-width: 342px; }
.s-strat { display: flex; flex-direction: column; gap: 52px; }
.strat { display: grid; grid-template-columns: 1fr 338px; gap: 32px; }
.strat__steps { display: flex; flex-direction: column; }
.strat__step { min-height: 62svh; display: flex; flex-direction: column; justify-content: center; gap: 26px; }
.strat__step:first-child { min-height: 40svh; justify-content: flex-start; padding-top: 60px; }
.strat__step .h6 { max-width: 228px; }
.strat__step .pm { max-width: 222px; }
.strat__3d { position: sticky; top: calc(50svh - 180px); height: 360px; }
.strat__3d canvas { width: 100% !important; height: 100% !important; display: block; }
.strat__3d img { position: absolute; inset: 0; margin: auto; width: 100%; height: auto; }
.s-process { display: flex; flex-direction: column; align-items: center; gap: 37px; }
.steps { display: flex; flex-direction: column; gap: 21px; width: 100%; }
/* Figma proportions (103 / 341 / 226 on a 700px column) kept on narrower desktops so titles never overflow */
.step { position: relative; display: grid; grid-template-columns: minmax(0, 103fr) minmax(0, 341fr) minmax(0, 226fr); gap: 15px; padding-top: 12px; }
.step .hline { top: 0; }
.step__body { display: flex; flex-direction: column; gap: 11px; }
.step__img { height: 355px; isolation: isolate; }
.step__img::after { content: ""; position: absolute; inset: 0; background: var(--accent); mix-blend-mode: color; pointer-events: none; }

@media (max-width: 819px) {
  .studio { padding: 10px var(--margin) 49px; gap: 96px; }
  .s-hero__imgs { grid-template-columns: 1fr 1.6fr; gap: 10px; }
  .s-hero__imgs figure:first-child { height: 150px; }
  .s-hero__imgs figure:last-child { height: 280px; }
  .s-about__grid { grid-template-columns: 1fr; }
  .s-about__col figure { height: 400px; }
  .member { grid-template-columns: 1fr; gap: 10px; }
  .member__body { gap: 10px; }
  .member__body figure { height: 200px; }
  .s-video__head, .s-video__desc { grid-template-columns: 1fr; }
  .s-video__head > div:last-child, .s-video__desc > div:first-child { display: none; }
  /* Tablet / phone: the frame takes the film's own ratio (portrait 480×854) so nothing is cropped,
     capped to the screen height and centred so the whole film is always visible */
  .s-video__box { height: auto; aspect-ratio: 480 / 854; width: min(100%, calc(85svh * 480 / 854)); margin-inline: auto; }
  .strat { grid-template-columns: 1fr; gap: 0; }
  .strat__3d { grid-row: 1; top: 60px; height: 240px; z-index: 1; pointer-events: none; } /* shrinks to the corner on scroll (js/studio.js) */
  .strat__3d canvas { will-change: transform; }
  .strat__step, .strat__step:first-child { min-height: 50svh; padding-top: 0; justify-content: center; }
  .step { grid-template-columns: 1fr; gap: 10px; }
  .step__img { height: 300px; }
}

/* Reviews */
.reviews { display: flex; flex-direction: column; gap: clamp(40px, 9svh, 110px); padding-bottom: 21px; }
.tst { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.tst__left { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; width: 224px; }
.tst__avatar { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; width: 100%; }
.tst__photo { width: 100%; height: 221px; background: var(--accent); }
.tst__name { padding: 6px 10.26px 3px; }
.tst__name .line-mask { margin-bottom: 0; }
.tst__right { position: relative; padding-bottom: 60px; }
.tst__quotes { display: grid; }
.tst__quote { grid-area: 1 / 1; visibility: hidden; }
.tst__quote.is-active { visibility: visible; }
.tst__quote p + p { margin-top: var(--pl-lh); }
.tst__right .arrows { position: absolute; left: -0.5px; bottom: 0; }

@media (max-width: 819px) {
  .reviews { padding: 10px var(--margin) 49px; gap: 32px; }
  .tst { grid-template-columns: 1fr; gap: 24px; }
  .tst__left { width: 100%; flex-direction: row; align-items: flex-end; gap: 10px; }
  .tst__avatar { width: 50%; }
  .tst__photo { height: 160px; }
}

/* 6. Overlays --------------------------------------------------------------- */

/* Custom cursor (Figma "Cursor"): 23px ring (0.5px stroke) + 5px square, accent colour */
.cursor { position: fixed; inset: 0; z-index: 300; pointer-events: none; opacity: 0; transition: opacity 0.4s var(--expo); }
.cursor.is-visible { opacity: 1; }
.cursor__ring, .cursor__dot { position: absolute; top: 0; left: 0; will-change: transform; }
.cursor__ring { width: 23px; height: 23px; border: 0.5px solid var(--accent); border-radius: 1000px; }
.cursor__ring::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--accent); opacity: 0; transform: scale(0.3); transition: opacity 0.5s var(--expo), transform 0.6s var(--expo); }
.cursor__dot { width: 5px; height: 5px; background: var(--accent); }
.cursor.is-hover .cursor__ring::after { opacity: 0.12; transform: scale(1); }
.cursor__ring { transition: width 0.6s var(--expo), height 0.6s var(--expo); }
.cursor.is-hover .cursor__ring { width: 38px; height: 38px; }
.cursor.is-down .cursor__ring { width: 17px; height: 17px; }

/* Page transition stage (js/router.js): covers only the centre column, accent colour behind the pages */
.pt { position: fixed; z-index: 35; overflow: hidden; background: var(--accent); }
.pt__page { position: absolute; inset: 0; overflow: hidden; background: var(--bg); transform-origin: 50% 50%; will-change: transform; }

/* Preloader */
.preloader { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; background: var(--bg); color: var(--accent); }
.preloader__row { position: absolute; left: 23px; right: 23px; top: 50%; transform: translateY(-50%); display: flex; justify-content: space-between; align-items: center; }
.preloader__imgs { position: relative; width: 259px; height: 259px; overflow: hidden; }
.preloader__mask { display: inline-flex; overflow: hidden; }
.preloader__tag { display: inline-flex; }
.preloader__imgs div { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0 0 0 100%); }
.preloader__imgs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 819px) {
  .preloader__row { top: 12%; bottom: 12%; transform: none; flex-direction: column; justify-content: space-between; }
  .preloader__imgs { width: 200px; height: 200px; }
}

/* Mobile menu */
.mmenu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  padding: 18px 16px 32px;
  background: var(--accent); color: var(--bg);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
}
.mmenu.is-open { visibility: visible; }
.mmenu__close { align-self: flex-end; font-weight: 900; font-size: 13.7px; }
.mmenu nav ul { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mmenu nav a { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1.15; letter-spacing: -1px; }
.mmenu__foot { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.mmenu .langs { flex-direction: row; gap: 16px; }

/* Onboarding overlay */
.onb {
  position: fixed; inset: 0; z-index: 120;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 15px;
  background: var(--bg); color: var(--accent);
  visibility: hidden;
  overflow: hidden;
}
.onb.is-open { visibility: visible; }
.onb__head { justify-self: start; }
.onb__form { display: contents; }
.onb__center { display: flex; flex-direction: column; align-items: center; gap: 25px; }
.onb__stage { position: absolute; left: 50%; top: 50%; width: 504px; height: 709px; transform: translate(-50%, -50%) scale(var(--s, 1)); }
.onb__stage-wrap { position: relative; width: calc(504px * var(--s, 1)); height: calc(709px * var(--s, 1)); }
.onb__card {
  position: absolute; left: 81.6px; top: 39.6px;
  width: 341px; height: 630px;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  padding: 21px 29px;
  background: var(--c); color: var(--bg);
  border: 0; overflow: hidden;
  will-change: transform;
}
.onb__card-head { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; width: 100%; }
.onb__card .h5 { width: 100%; }
.onb__fields { width: 100%; display: flex; flex-direction: column; }
.onb__field input {
  width: 100%; padding: 30px 8px; text-align: center;
  border-bottom: 1px solid var(--bg);
  font-size: var(--pm); line-height: var(--pm-lh); letter-spacing: var(--pm-ls); font-weight: 700;
}
.onb__field input::placeholder, .onb__card textarea::placeholder { color: var(--bg); opacity: 1; }
.onb__field input:focus::placeholder { opacity: 0.4; }
.onb__field input:focus-visible, .onb__card textarea:focus-visible { outline: none; background: rgba(233, 231, 218, 0.08); }
.onb__choices { display: flex; flex-direction: column; align-items: center; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: block; padding: 31px 37px 30px; border: 1px solid var(--bg); border-radius: 1000px;
  font-size: var(--pm); line-height: var(--pm-lh); letter-spacing: var(--pm-ls);
  transition: background 0.5s var(--expo), color 0.5s var(--expo);
}
.choice input:checked + span, .choice:hover span { background: var(--bg); color: var(--c); }
.choice input:focus-visible + span { outline: 2px solid var(--bg); outline-offset: 3px; }
.onb__card textarea {
  width: 100%; height: 329px; padding: 10px 7px; resize: none;
  border: 1px solid var(--bg);
  font-size: var(--pm); line-height: var(--pm-lh); letter-spacing: var(--pm-ls); font-weight: 700;
}
.onb__card textarea::placeholder { opacity: 0.28; }
.onb__err { min-height: 18px; font-size: 12px; text-align: center; }
.onb__submit { justify-self: end; }
.onb__close { position: absolute; top: 18px; right: 15px; font-weight: 900; font-size: var(--pl); }
/* Desktop: the sidebar "Votre projet" button morphs into the overlay's "Fermer" (js/main.js) */
.onb.has-morph .onb__close { display: none; }
.onb-morph { position: fixed; z-index: 125; color: var(--accent); justify-content: center; overflow: visible; }
/* one column exactly as wide as the button (not as wide as the longest label),
   so each label is centred between the brackets; only the vertical slide is clipped */
.onb-morph__track { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; justify-items: center; clip-path: inset(0 -0.2em); }
.onb-morph__track > span { grid-area: 1 / 1; white-space: nowrap; will-change: transform; }
.onb__status { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; }
.onb__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.onb__submit[aria-busy="true"] { opacity: 0.6; pointer-events: none; }

/* Below 1100px there is no room for title | cards | button side by side: they stack (cards stay big) */
@media (max-width: 1099px) {
  .onb { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; justify-items: center; padding: 26px 15px 24px; }
  .onb__head { justify-self: center; }
  .onb__head .h3 { font-size: 40px; }
  .onb__center { gap: 18px; }
  .onb__submit { justify-self: center; }
  .onb__status { bottom: 6px; }
}
@media (max-width: 819px) {
  .onb__close { top: 10px; right: 10px; font-size: 14px; }
}

/* 7. Tablet (600–819px) — from 820px up the desktop layout (sidebars) is used ---
   Same chrome as the phone (navbar, footer, menu) but an 8-column grid: 16px margins, 16px gutters.
   Every block is placed on those columns and mirrors its desktop composition, instead of
   stretching the phone's single column. Spans: 4 cols = calc(50% - var(--gutter) / 2). */
@media (min-width: 600px) and (max-width: 819px) {
  :root {
    --margin: 16px; --inner: 16px; --gutter: 16px; --cols: 8;
    --h1: 66px;  --h1-lh: 1.06;  --h1-ls: -0.025em;
    --h2: 60px;  --h2-lh: 1.08;  --h2-ls: -0.022em;
    --h3: 52px;  --h3-lh: 1.06;  --h3-ls: -0.02em;
    --h4: 40px;  --h4-lh: 1.12;  --h4-ls: -0.025em;
    --h5: 34px;  --h5-lh: 1.2;   --h5-ls: -0.025em;
    --h6: 22px;  --h6-lh: 1.25;  --h6-ls: -0.02em;
    --pl: 19px;  --pl-lh: 22px;  --pl-ls: -0.6px;
    --pm: 16px;  --pm-lh: 19px;  --pm-ls: -0.6px;
  }
  /* titles break into even lines (no lone word on the last line) */
  .h1, .h2, .h3, .center { text-wrap: balance; } /* titles only: text paragraphs fill their container */

  /* Navbar: the logo spans the whole top, edge to edge (scaled like on the phone) */
  .mnav { padding-inline: var(--margin); }

  /* Home: each card is exactly 4 columns wide with the desktop ratio,
     and a snapped card always starts on a column line; hero centred in the screen */
  .home {
    --col: calc((100vw - 2 * var(--margin) - 7 * var(--gutter)) / 8);
    --cw: calc(4 * var(--col) + 3 * var(--gutter));
    --sh: calc(var(--cw) * 373 / 340.5);
    min-height: calc(100svh - 220px); justify-content: center; gap: 56px;
  }
  .slider { padding: 0 calc(var(--margin) - var(--gutter) / 2); }
  .slide { width: calc(var(--shk) * 340.5 / 373 + var(--gutter)); padding: 0 calc(var(--gutter) / 2); }
  .hero__heading { padding: 0 var(--margin); }

  /* Projects: 2 × 4 columns, desktop card ratio */
  .projects { padding: 16px var(--margin) 64px; }
  .pgrid { gap: var(--gutter); }
  .pgrid > li { aspect-ratio: 341 / 373; }
  .pgrid--list .pcard { gap: var(--gutter); }

  /* Project page */
  .cms { padding: 16px var(--margin) 64px; gap: 48px; }
  .cms__preview { height: auto; aspect-ratio: 16 / 9; }
  .cms__lead { max-width: calc(75% - var(--gutter) / 4); } /* 6 centre columns */
  .cms__row { grid-template-columns: 1fr 1fr; gap: var(--gutter); }
  .cms__row .h6.right { text-align: right; }
  .gallery, .gallery .pair { gap: var(--gutter); }
  .credits { gap: 32px var(--gutter); }

  /* Studio */
  .studio { padding: 16px var(--margin) 64px; gap: 120px; }
  .s-about, .s-team, .s-strat, .s-process { max-width: none; }
  .s-hero__imgs { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--gutter); }
  .s-hero__imgs figure:first-child { grid-column: 1 / span 3; height: auto; aspect-ratio: 224 / 235; }
  .s-hero__imgs figure:last-child { grid-column: 4 / -1; height: auto; aspect-ratio: 478 / 448; }
  .s-about { gap: var(--gutter); }
  .s-about__grid { grid-template-columns: 1fr 1fr; gap: var(--gutter); }
  .s-about__col figure { height: auto; aspect-ratio: 342 / 512; }
  /* associates: name on its own row, portrait on cols 1–4, text on cols 5–8 */
  .member { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px var(--gutter); }
  .member__name { grid-column: 1 / -1; padding-top: 0; }
  .member__body { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
  .member__body figure { height: auto; aspect-ratio: 1; }
  /* film: title on 6 columns, frame on the 4 centre columns, text on cols 5–8 (as on desktop) */
  .s-video__head, .s-video__desc { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--gutter); }
  .s-video__head > h2 { grid-column: 1 / span 6; }
  .s-video__box { width: calc(50% - var(--gutter) / 2); }
  .s-video__desc p { grid-column: 5 / -1; max-width: none; }
  /* strategy: steps on cols 1–4, sticky 3D logo on cols 5–8 */
  .strat { grid-template-columns: 1fr 1fr; gap: var(--gutter); }
  .strat__steps { grid-column: 1; grid-row: 1; }
  .strat__3d { grid-column: 2; grid-row: 1; top: calc(50svh - 160px); height: 320px; }
  .strat__step, .strat__step:first-child { min-height: 55svh; justify-content: center; }
  .strat__step:first-child { min-height: 40svh; justify-content: flex-start; padding-top: 40px; }
  .strat__step .h6, .strat__step .pm { max-width: none; }
  /* method: number col 1 · picture + text cols 2–5 · title cols 6–8 */
  .step { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--gutter); padding-top: 12px; }
  .step > .pl { grid-column: 1; }
  .step__body { grid-column: 2 / span 4; }
  .step > h3 { grid-column: 6 / -1; }
  .step__img { height: auto; aspect-ratio: 341 / 355; }

  /* Reviews: avatar on cols 1–3, quote on cols 4–8 */
  .reviews { padding: 16px var(--margin) 64px; gap: 48px; }
  .tst { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--gutter); }
  .tst__left { grid-column: 1 / span 3; width: auto; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 32px; }
  .tst__avatar { width: 100%; }
  .tst__photo { height: auto; aspect-ratio: 224 / 221; }
  .tst__right { grid-column: 4 / -1; }
}

/* 8. Compact desktop (820–1199px): same desktop layout (sidebars + centre column),
   the sidebars keep the Figma ratio and the centre blocks reflow inside a narrower column */
@media (min-width: 820px) and (max-width: 1199px) {
  :root {
    --inner: 12px;
    --h5: 32px; --h5-lh: 1.2;
    --h6: 21px; --h6-lh: 1.2;
    --pl: 18px; --pl-lh: 21px;
  }
  .h1, .h2, .h3, .center { text-wrap: balance; } /* titles only: text paragraphs fill their container */

  /* sidebars: when there's no room for the colour swatches and "Votre projet" side by side,
     the button drops under them, still right-aligned */
  .side__top { flex-wrap: wrap; row-gap: 12px; }
  .side__top [data-onboard] { margin-left: auto; }
  .contact .pl { font-size: clamp(15px, 1.6vw, var(--pl)); } /* the e-mail always fits the column */

  /* Project page */
  .cms__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .credits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .credits > div { grid-column: auto; }

  /* Studio */
  .s-about__grid, .s-video__head, .s-video__desc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .member__body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member__name { padding-top: 0; }
  .strat { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
  .strat__3d { top: calc(50svh - 140px); height: 280px; }
  .strat__step .h6, .strat__step .pm { max-width: none; }
  /* method: number | title, then picture + text under the title */
  .step { grid-template-columns: minmax(0, 1fr) minmax(0, 4fr); row-gap: 12px; }
  .step > .pl { grid-column: 1; grid-row: 1 / span 2; }
  .step > h3 { grid-column: 2; grid-row: 1; }
  .step__body { grid-column: 2; grid-row: 2; }
  .step__img { height: auto; aspect-ratio: 341 / 355; }

  /* Reviews */
  .tst { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tst__left { width: 100%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js [data-reveal], .js [data-media], .js .pcard { visibility: visible; animation: none; }
}
