/* 514web, test 2: reference-led build (blueprint: awakeagency.dev teardown, techniques only).
   One face (Bricolage Grotesque). Orange hero panel, paper middle, black footer.
   Panels sit in a 12 px frame with an 8 px radius; buttons are 4 px. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("../assets/fonts/bricolage-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --orange: #FF4A1C;
  --orange-deep: #D93A10;
  --ink: #0B0B0A;
  --ink-2: #1D1D1B;
  --paper: #F2F2EE;
  --tone: #E5E5DF;
  --slot: #E2E2DB;
  --stone: #CFCFC7;
  --soft: #4A4A45;
  --soft-on-ink: #B4B4AD;

  --frame: 12px;
  --radius: 8px;
  --btn-radius: 4px;
  --gutter: clamp(16px, 2.8vw, 40px);
  --nav-h: 76px; /* frame + compact bar: what the always-visible nav covers */

  --e-out: cubic-bezier(.16, 1, .3, 1);
  --e-inout: cubic-bezier(.87, 0, .13, 1);
  --e-land: cubic-bezier(.34, 1.56, .64, 1);
  --e-curtain: cubic-bezier(.45, 0, .2, 1);

  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
}
/* phones: the coloured panels go edge to edge, square (Ismael 2026-10-18: the 8 px paper frame read as a white line down both sides) */
@media (max-width: 699px) {
  :root { --frame: 0px; }
  html :is(.nav, .hero, .statement-pin, .cta, .foot, .page-foot, .e404) { border-radius: 0; } /* (html: outranks the panels' own rules further down) */
}
@media (max-width: 899px) { :root { --nav-h: 68px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.45;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
main { overflow-x: clip; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--orange); color: var(--ink); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: 16px; z-index: 200; padding: 12px 16px; border-radius: var(--btn-radius);
  background: var(--ink); color: var(--paper); text-decoration: none; transform: translateY(-200%);
}
.skip:focus { transform: none; }

.arrow-svg { width: .9em; height: .9em; flex: none; }

/* ---------- buttons (4 px, never pills) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--btn-radius);
  font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--e-out), background-color .25s, color .25s;
}
.btn:active { transform: scale(.97); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-big { min-height: 64px; padding: 0 28px; font-size: clamp(19px, 1.9vw, 30px); gap: .6em; }
@media (min-width: 900px) { .btn-big { min-height: 76px; padding: 0 34px; } }
@media (hover: hover) {
  .btn-ink:hover { background: var(--paper); color: var(--ink); }
  .btn-ink:hover .arrow-svg { transform: translateX(4px); }
}
.arrow-svg { transition: transform .3s var(--e-out); }

/* ---------- nav: wordmark, four links, one action, the menu ---------- */
.nav {
  position: fixed; z-index: 50; top: var(--frame); left: var(--frame); right: var(--frame);
  height: 84px; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  color: var(--ink); border-radius: var(--radius);
  transition: transform .5s var(--e-out), background-color .3s, color .3s, height .3s var(--e-out);
}
.nav.is-bar { background: var(--ink); color: var(--paper); height: 64px; }
.nav.is-bar.is-light { background: var(--paper); color: var(--ink); }
.nav.is-light .logo { --logo-type: var(--ink); --logo-slash: var(--orange-deep); }
.nav.is-light .btn-menu { background: var(--ink); color: var(--paper); }
html:not(.js) .nav { position: absolute; }
html:not(.js) .btn-menu, html:not(.js) .menu { display: none; }
.wordmark { display: inline-flex; align-items: center; text-decoration: none; line-height: 1; }
.logo .lg-type { fill: var(--logo-type); }
.logo .lg-slash { fill: var(--logo-slash); }
/* the brand: 514/web, the slash always orange. On dark: paper type + #FF4A1C; on light: ink + #D93A10 */
.logo { display: block; height: 26px; width: auto; aspect-ratio: 4135 / 800; --logo-type: var(--paper); --logo-slash: var(--orange); }
.logo-on-light .logo { --logo-type: var(--ink); --logo-slash: var(--orange-deep); }
/* on the orange hero an orange slash would vanish: the on-dark logo sits on a small black tile, like the favicon */
.logo-tile { padding: 10px 13px; border-radius: var(--radius); background: var(--ink); transition: background-color .3s, padding .3s; }
.nav.is-bar .logo-tile, .nav.is-menu .logo-tile { background: transparent; padding-left: 0; padding-right: 0; }
.nav-links { display: flex; gap: clamp(16px, 2.4vw, 34px); list-style: none; margin: 0; padding: 0; font-size: clamp(16px, 1.5vw, 18px); font-weight: 500; }
.nav-links a, .foot-links a, .foot-contact a, .menu-mail {
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .25em;
  text-decoration-color: transparent; transition: text-decoration-color .25s, color .25s;
}
@media (hover: hover) {
  .nav-links a:hover, .foot-links a:hover, .foot-contact a:hover, .menu-mail:hover { text-decoration-color: currentColor; }
}
.nav-links a { text-decoration-line: underline; padding: 10px 0; display: inline-block; }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.btn-action { background: var(--ink); color: var(--paper); }
.nav.is-bar .btn-action, .nav.is-menu .btn-action { background: var(--orange); color: var(--ink); }
.btn-menu { background: var(--paper); color: var(--ink); gap: 12px; padding: 0 16px; }
.btn-menu-word { display: grid; overflow: clip; height: 1.15em; line-height: 1.15; }
.btn-menu-label { grid-area: 1 / 1; transition: transform .45s var(--e-out); }
.btn-menu-label + .btn-menu-label { transform: translateY(110%); }
.btn-menu[aria-expanded="true"] .btn-menu-label:first-child { transform: translateY(-110%); }
.btn-menu[aria-expanded="true"] .btn-menu-label + .btn-menu-label { transform: none; }
.btn-menu-icon { display: grid; gap: 5px; width: 18px; }
.btn-menu-icon i { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .45s var(--e-out); }
.btn-menu-icon i:last-child { width: 12px; justify-self: end; }
.btn-menu[aria-expanded="true"] .btn-menu-icon i:first-child { transform: translateY(3.5px) rotate(45deg); }
.btn-menu[aria-expanded="true"] .btn-menu-icon i:last-child { width: 18px; transform: translateY(-3.5px) rotate(-45deg); }
.nav.is-menu { color: var(--paper); background: transparent; }
@media (max-width: 899px) {
  .nav-main { display: none; }
  .nav { height: 68px; }
  .nav.is-bar { height: 60px; }
}
@media (max-width: 420px) { .btn-action { display: none; } }

/* ---------- menu: a black curtain that drops into the frame ---------- */
.menu { position: fixed; inset: var(--frame); z-index: 40; visibility: hidden; pointer-events: none; }
.menu.is-open, .menu.is-closing { visibility: visible; }
.menu.is-open { pointer-events: auto; }
.menu-panel {
  position: absolute; inset: 0; overflow: hidden;
  background: var(--ink); color: var(--paper); border-radius: var(--radius);
  padding: clamp(104px, 15svh, 150px) var(--gutter) clamp(24px, 4svh, 40px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  clip-path: inset(0 0 100% 0 round var(--radius));
  transition: clip-path .5s var(--e-curtain);
}
.menu.is-open .menu-panel { clip-path: inset(0 0 0 0 round var(--radius)); transition-duration: .72s; }
.menu-route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.menu-pin { position: absolute; left: 0; top: 0; width: 44px; height: auto; pointer-events: none; opacity: 0; transform-origin: 50% 100%; }
.menu-nav { position: relative; z-index: 1; }
.menu-links { list-style: none; margin: 0; padding: 0; }
.menu-links a { display: inline-block; text-decoration: none; color: inherit; }
.menu-mask { display: block; overflow: clip; padding: .04em 0 .06em; }
.menu-label {
  display: block; font-size: clamp(54px, min(10vw, 12svh), 156px); line-height: .9; font-weight: 700;
  font-stretch: 80%; text-transform: uppercase; letter-spacing: -.02em;
  transform: translateY(112%);
  transition: transform .34s cubic-bezier(.5, 0, .75, 0), color .25s;
}
.menu.is-open .menu-label { transform: none; transition: transform .9s var(--e-land) calc(var(--i, 0) * 70ms + 200ms), color .25s; }
@media (hover: hover) {
  .menu.is-open .menu-links a:hover .menu-label { color: var(--orange); transform: translateX(.08em); transition: transform .45s var(--e-out), color .2s; }
}
.menu-foot { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: clamp(18px, 1.45vw, 23px); }
.menu-foot .menu-mask > * { display: block; transform: translateY(112%); transition: transform .3s; }
.menu.is-open .menu-foot .menu-mask > * { transform: none; transition: transform .8s var(--e-out) .5s; }
.menu-place { color: var(--soft-on-ink); }

/* ---------- loader: counts to 514, then the panel folds into the hero frame ---------- */
.loader { display: none; }
html.intro .loader {
  display: block; position: fixed; inset: 0; z-index: 100; background: var(--orange);
}
.loader-logo { position: absolute; left: calc(var(--frame) + var(--gutter)); top: calc(var(--frame) + 19px); }
@media (max-width: 899px) { .loader-logo { top: calc(var(--frame) + 11px); } }
/* centred on the screen: it is a statement (« On donne 514 % »), not a corner progress bar */
.loader-mask { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: calc(100vw - 2 * var(--gutter)); overflow: clip; padding-top: .06em; }
/* « 514 % »: a departure board (the statement's split flaps) and, once it has passed 100, one line */
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: clamp(12px, 2svh, 24px); }
.loader-line-mask { display: block; overflow: clip; }
.loader-line { display: block; min-height: 1.1em; font-size: clamp(28px, 3.8vw, 64px); line-height: 1.1; font-weight: 700; font-stretch: 80%; letter-spacing: -.01em; color: var(--ink); text-align: center; transform: translateY(110%); }
.loader-flaps { --cw: clamp(64px, 13.5vw, 184px); --gap: clamp(3px, .45vw, 7px); display: flex; align-items: center; gap: var(--gap); padding: calc(var(--cw) * .12); border-radius: var(--radius); background: #1a1a19; }
.loader-flaps .flap-pct { margin-left: calc(var(--cw) * .3); font-size: calc(var(--cw) * 1.08); } /* FR: « 514 % », a space before the sign */
html[lang^="en"] .loader-flaps .flap-pct { margin-left: 0; } /* EN: « 514% » */

/* ---------- hero: the orange panel ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  margin: var(--frame); border-radius: var(--radius);
  height: calc(100svh - 2 * var(--frame)); min-height: 600px; max-height: 1180px;
  background: var(--orange); color: var(--ink);
  padding: clamp(128px, 17.5svh, 192px) var(--gutter) 0;
}
.hero-title {
  position: relative; z-index: 3; margin: 0;
  font-size: clamp(44px, min(9.2vw, 17svh), 200px);
  line-height: .9; font-weight: 700; font-stretch: 78%; letter-spacing: -.012em; text-transform: uppercase;
}
.hl { display: block; }
/* one statement: line two flush left, tight under line one */
.hl-2 { margin-top: .06em; }
/* the promise word (« fiers » / "proud") in white: pure white keeps 3.4:1 on the orange (cream would fall under 3:1).
   It is a neon sign: dark like an unlit tube until the headline has landed after the intro (html.acc-on, core.js),
   then it flickers on and keeps a soft glow; a coin landing on it makes it flare (core.js, on physics.js's acc-hit).
   Without script or with reduced motion it is simply lit. The glow is a filter on the whole word (on desktop each
   letter sits in its own clipping mask for the hover swap, which would cut a text-shadow at every letter). */
.hero-title { --neon: drop-shadow(0 0 .05em rgb(255 255 255 / .7)) drop-shadow(0 0 .24em rgb(255 236 216 / .5)); }
.hl-acc { display: inline-block; color: #fff; filter: var(--neon); }
html.js:not(.calm):not(.acc-on) .hl-acc { color: var(--ink); filter: none; }
html.acc-on:not(.calm) .hl-acc { animation: neon-on 1.7s steps(1, end) both; }
@keyframes neon-on {
  0% { color: var(--ink); filter: none; }
  5% { color: #fff; filter: var(--neon); }
  8% { color: var(--ink); filter: none; }
  18% { color: #ffcdbb; filter: none; }
  22% { color: var(--ink); filter: none; }
  31% { color: #fff; filter: var(--neon); }
  34% { color: #ffcdbb; filter: none; }
  39% { color: #fff; filter: var(--neon); }
  78% { color: #ffcdbb; filter: none; } /* the last buzz, once it looks settled */
  81%, 100% { color: #fff; filter: var(--neon); }
}
.hero-kicker {
  position: relative; z-index: 3; margin-top: clamp(22px, 3.6svh, 40px);
  max-width: 24ch; font-size: clamp(18px, 1.45vw, 23px); line-height: 1.3; font-weight: 500;
}
/* the promise and its two buttons: from 900 px the buttons' feet sit on the kicker's last line (the row aligns them, no script); under it,
   wrapping, below. They are solid for the physics (js/physics.js: a coin lands on their top like on the headline).
   One block as wide as the headline's longest line: the kicker starts on its left edge, the buttons end on its right edge (where « fiers. »
   ends). The lead adds nothing to that width (width 0, stretched to 100 %); when kicker + buttons don't fit in it, the buttons wrap under
   the kicker, on the same left edge */
.hero-copy { width: fit-content; max-width: 100%; }
.hero-lead { --kfs: clamp(18px, 1.45vw, 23px); position: relative; z-index: 3; width: 0; min-width: 100%; margin-top: clamp(22px, 3.6svh, 40px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 26px 24px; }
.hero-lead .hero-kicker { margin-top: 0; font-size: var(--kfs); }
.hero-ctas { display: flex; gap: 12px; flex: none; margin-bottom: calc(var(--kfs) * .08); } /* (the last line's half-leading: the feet meet the text's own foot) */
.btn-hero { min-height: 58px; padding: 0 26px; font-size: 19px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
@media (hover: hover) {
  .btn-ghost:hover { background: var(--ink); color: var(--paper); }
  .btn-ghost:hover .arrow-svg { transform: translateX(4px); }
}
@media (max-width: 899px) {
  .hero-lead { display: block; }
  .hero-ctas { flex-wrap: wrap; margin: 26px 0 0; }
  .btn-hero { min-height: 50px; padding: 0 18px; font-size: 16px; }
}
/* phones: a little tighter, and the outline button is filled with the sky's orange so it reads whatever it meets (the city's dark roofs
   reach it on a short screen) */
@media (max-width: 699px) {
  .hero-ctas { gap: 10px; }
  .btn-hero { padding: 0 14px; font-size: 15px; }
  .btn-ghost { background: var(--orange); }
}
/* the city (skyline v2, 3840 x 768): the bottom 35.6 % of a 16:9 frame (3840 x 2160, skyline at full width) laid
   over the panel like object-fit: cover, bottom-anchored and biased right by --sky-x so the Olympic stadium stays
   in view. The skyline, its lights (lights.webp, same pixel grid), the colliders, the beacon and the bridge train
   all use this one box. « La ville s'allume »: objects that land on the city light the windows around them. */
.hero { --sky-x: .7; }
.hero-city { position: absolute; z-index: 0; inset: 0; overflow: clip; container-type: size; pointer-events: none; }
/* the sky, behind the skyline: nine flat clouds in three depths (three tones of the orange, near to far, all quieter than the headline), two
   shapes, some mirrored. They drift left to right in a seamless loop, transform only: a hero width in 3 min for the near ones, 4 for the mid,
   5 for the far. Each starts where the approved layout puts it (a negative delay) and re-enters on the left as it leaves on the right. A jet
   crosses it every 85 s: 45 s of flight, climbing a little to the right, then 40 s waiting off screen; its two contrails grow behind it and
   fade at their far end. Phones: clouds 1.6 times bigger (they were lost at 390), six of them, a bigger jet. All of it stops while the hero
   is off screen (.is-off, core.js) and stands still for reduced motion: the layout as approved. */
.hero-sky-fx { position: absolute; inset: 0; pointer-events: none; }
.sky-defs { position: absolute; width: 0; height: 0; }
.c-near { --c: #FF6B3C; --t: 180; }
.c-mid { --c: #FF6233; --t: 240; }
.c-far { --c: #FF5829; --t: 300; }
.cloud {
  --k: 1; --wk: calc(var(--w) * var(--k)); --dur: calc(var(--t) * 1s * (100 + var(--wk)) / 100); /* width in % of the hero; seconds for the whole way across */
  position: absolute; left: 0; top: var(--y); width: calc(var(--wk) * 1%); height: auto; fill: var(--c);
  transform: translateX(calc(var(--x) * 1cqw)); will-change: transform;
  animation: cloud-drift var(--dur) linear infinite; animation-delay: calc(var(--dur) * -1 * (var(--x) + var(--wk)) / (100 + var(--wk)));
}
@keyframes cloud-drift { from { transform: translateX(calc(var(--wk) * -1cqw)); } to { transform: translateX(100cqw); } }
/* the jet: its box is 30 % of the hero wide (a 420 x 60 drawing: the contrails to the left, the plane at the right end), turned 8 degrees
   nose up; it flies along that heading, so the trail stays behind it. --jl: where it stands in the still layout (left edge, % of the hero) */
.jet {
  --jw: 30; --jl: 50; --jt: 9%;
  position: absolute; left: 0; top: var(--jt); width: calc(var(--jw) * 1cqw); aspect-ratio: 420 / 60; will-change: transform;
  transform: translate(calc(var(--jl) * 1cqw), 0) rotate(-8deg);
  animation: jet-fly 85s linear 3s infinite backwards;
}
.jet-trail { position: absolute; left: 0; top: 0; width: 93.8095%; height: 100%; transform-origin: 100% 50%; will-change: transform; animation: jet-grow 85s linear 3s infinite backwards; }
.jet-plane { position: absolute; left: 89.0476%; top: 0; width: 10.9524%; height: 100%; overflow: visible; }
@keyframes jet-fly { /* 45 s of the 85 s: from just off the left edge to just off the right one, rising .1405 per unit across (tan 8 degrees) */
  0% { transform: translate(calc(var(--jw) * -1cqw), calc((var(--jl) + var(--jw)) * .1405cqw)) rotate(-8deg); }
  52.94%, 100% { transform: translate(100cqw, calc((var(--jl) - 100) * .1405cqw)) rotate(-8deg); }
}
@keyframes jet-grow { 0% { transform: scaleX(0); } 13%, 100% { transform: scaleX(1); } }
.hero.is-off :is(.cloud, .jet, .jet-trail) { animation-play-state: paused; }
html.calm :is(.cloud, .jet, .jet-trail) { animation: none !important; }
html.calm .jet-trail { transform: none; }
@media (prefers-reduced-motion: reduce) {
  :is(.cloud, .jet, .jet-trail) { animation: none !important; }
  .jet-trail { transform: none; }
}
@media (max-width: 699px) {
  .cloud { --k: 1.6; top: var(--yp, var(--y)); }
  .c-sm { display: none; }
  .jet { --jw: 52; --jl: 40; --jt: 8%; }
}
.hero-sky, .hero-glow, .hero-lights {
  --fw: max(100cqw, 177.778cqh); /* width of the covering 16:9 frame = width of the skyline */
  position: absolute; bottom: 0; left: calc((100cqw - var(--fw)) * var(--sky-x));
  width: var(--fw); height: calc(var(--fw) / 5); pointer-events: none;
}
.hero-sky { background: var(--ink); opacity: 0; transition: opacity .9s var(--e-out); }
/* the poster: about 30 % of the windows lit, fixed. It stays for reduced motion (and without script); otherwise
   it fades out at the first landing, when the real lights come on (html.physics-on) */
.hero-glow {
  display: none; opacity: 1; transition: opacity 1.4s var(--e-out);
  background: url("../assets/obj/lights.webp") 0 0 / 100% 100% no-repeat;
  --g: #000 40%, transparent 100%;
  -webkit-mask: radial-gradient(ellipse 4.2% 21% at 35.5% 60%, var(--g)), radial-gradient(ellipse 3.8% 19% at 41.5% 50%, var(--g)), radial-gradient(ellipse 3.2% 16% at 48% 62%, var(--g)), radial-gradient(ellipse 3.8% 19% at 57% 55%, var(--g)), radial-gradient(ellipse 3.2% 16% at 66% 62%, var(--g)), radial-gradient(ellipse 3% 15% at 75% 62%, var(--g));
  mask: radial-gradient(ellipse 4.2% 21% at 35.5% 60%, var(--g)), radial-gradient(ellipse 3.8% 19% at 41.5% 50%, var(--g)), radial-gradient(ellipse 3.2% 16% at 48% 62%, var(--g)), radial-gradient(ellipse 3.8% 19% at 57% 55%, var(--g)), radial-gradient(ellipse 3.2% 16% at 66% 62%, var(--g)), radial-gradient(ellipse 3% 15% at 75% 62%, var(--g));
}
/* with script it is drawn once into this canvas (core.js), so the picture never counts as the page's main paint */
html.js .hero-glow { background: none; -webkit-mask: none; mask: none; }
html:not(.js) .hero-glow, html.sky-on .hero-glow { display: block; }
@starting-style { html.sky-on .hero-glow { opacity: 0; } }
html.physics-on .hero-glow { opacity: 0; }
/* the city arrives once the page has loaded (it is decoration, it never delays the headline) */
html:not(.js) .hero-sky, html.sky-on .hero-sky {
  -webkit-mask: url("../assets/obj/skyline.webp") 0 0 / 100% 100% no-repeat;
  mask: url("../assets/obj/skyline.webp") 0 0 / 100% 100% no-repeat;
}
html:not(.js) .foot-sky, html.sky-on .foot-sky {
  -webkit-mask: url("../assets/obj/skyline.webp") 70% 100% / cover no-repeat;
  mask: url("../assets/obj/skyline.webp") 70% 100% / cover no-repeat;
}
html:not(.js) .hero-sky, html.sky-on .hero-sky { opacity: .86; }
.hero-beacon { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
.hero-canvas { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero.is-grab { cursor: grab; }
.hero.is-grabbing { cursor: grabbing; }
.hero-poster { position: absolute; inset: 0; z-index: 2; pointer-events: none; --pd: clamp(56px, 7.2vw, 118px); --ps: calc(var(--pd) * 1.06); --py-top: calc(clamp(118px, 16.5svh, 176px) - var(--pd) + .1 * clamp(44px, min(9.2vw, 17svh), 200px)); --py-pin: calc(var(--py-top) - var(--pd) * .25); --py-floor: calc(100% - 22px - var(--pd)); }
.hero-poster img { position: absolute; left: var(--x); top: var(--y); width: calc(var(--s, 1) * var(--pd)); height: auto; transform: rotate(var(--r)); }
html.js:not(.calm) .hero-poster { display: none; }
html.js.physics-off .hero-poster { display: block; }
.hl-chars .w { display: inline-block; white-space: nowrap; }
.hl-chars .c { display: inline-block; overflow-x: clip; overflow-y: visible; vertical-align: top; }
.hl-chars .ci { display: inline-block; }
@media (max-width: 699px) {
  .hero { padding-top: 116px; min-height: 600px; }
  .hero-title { font-size: clamp(40px, 14.2vw, 72px); line-height: .92; }
  /* one tight statement like desktop (line two keeps the base .06em under line one); each line breaks into even rows:
     ON BÂTIT / DES SITES / DONT VOUS / ÊTES FIERS. (the physics colliders read whatever rows are rendered) */
  .hl { text-wrap: balance; }
  .hero { --sky-x: .52; } /* phones: Place Ville-Marie (beacon), downtown and the cross on the mountain */
  .hero-poster { --pd: 52px; --py-top: calc(116px - 52px + 6px); --py-floor: calc(100% - 20px - 52px); }
  .hero-poster .poster-far { display: none; }
  .hero-poster img[src$="pin-black.webp"] { left: 70% !important; } /* clear of the 5-1-4 coins */
}

/* ---------- statement: a four-row split-flap board that fills in as you scroll, hung as the departures sign of a Montréal
   métro platform. Raw concrete all around (the wall is this panel's background: formwork joints, tie holes, grain, lit from
   the ceiling strip and darker lower down); the sign hangs from the ceiling on two steel rods. Under it: the platform edge with
   its yellow tactile strip, the rubber-tyre track (the orange line runs in it) and our own train ---------- */
.statement-pin {
  --car-h: min(14svh, 9.6vw, 150px); /* the train, wheels to roof */
  --rail: clamp(84px, 14svh, 140px); /* the track's centre line above the panel's foot (room for the stone floor and the correspondance below) */
  --lw: 14px; /* the métro line's width (js/metro.js) */
  --ceil: calc(var(--nav-h) + clamp(34px, 5svh, 52px)); /* the concrete ceiling: the always-visible nav, then a strip of ceiling under it */
  --rod: clamp(40px, 8svh, 84px); /* the length of the two rods the board hangs by */
  --tile: calc(var(--car-h) * 1.5); /* a formwork panel, about 2.4 m wide (the train's cars are 3.6 m high) */
  position: relative; display: grid; grid-template: 1fr auto / minmax(0, 1fr); min-height: clamp(560px, 88svh, 920px);
  padding: 0 var(--gutter); border: var(--frame) solid var(--paper); border-radius: calc(var(--radius) + var(--frame));
  background-color: var(--ink); background-clip: padding-box; color: var(--paper);
  background-image:
    radial-gradient(ellipse 60% 50% at 50% var(--ceil), rgb(255 240 214 / .19), rgb(255 240 214 / 0) 74%), /* the strip light's glow on the wall */
    linear-gradient(180deg, rgb(0 0 0 / 0) 34%, rgb(0 0 0 / .26) 70%, rgb(0 0 0 / .4)), /* darker towards the platform */
    linear-gradient(180deg, rgb(0 0 0 / .2), rgb(0 0 0 / 0)), /* stains where rain water runs down the concrete */
    linear-gradient(180deg, rgb(255 255 255 / .05), rgb(255 255 255 / 0)),
    linear-gradient(180deg, rgb(0 0 0 / .22), rgb(0 0 0 / 0)),
    linear-gradient(180deg, rgb(0 0 0 / .16), rgb(0 0 0 / 0)),
    linear-gradient(180deg, rgb(255 255 255 / .045), rgb(255 255 255 / 0)),
    linear-gradient(180deg, rgb(0 0 0 / .2), rgb(0 0 0 / 0)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.011' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .08 0 0 0 0 .07 0 0 0 0 .06 1.5 0 0 0 -.62'/%3E%3C/filter%3E%3Crect width='420' height='420' filter='url(%23m)'/%3E%3C/svg%3E"), /* mottling */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .78 0 0 0 0 .74 0 0 0 0 .68 .5 0 0 0 -.17'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"), /* grain */
    radial-gradient(circle at 16% 30%, rgb(0 0 0 / .55) 0 1.6px, rgb(255 255 255 / .07) 2.2px 3px, transparent 3.4px), /* tie holes (two per panel) */
    radial-gradient(circle at 84% 30%, rgb(0 0 0 / .55) 0 1.6px, rgb(255 255 255 / .07) 2.2px 3px, transparent 3.4px),
    radial-gradient(circle at 16% 80%, rgb(0 0 0 / .55) 0 1.6px, rgb(255 255 255 / .07) 2.2px 3px, transparent 3.4px),
    radial-gradient(circle at 84% 80%, rgb(0 0 0 / .55) 0 1.6px, rgb(255 255 255 / .07) 2.2px 3px, transparent 3.4px),
    linear-gradient(90deg, rgb(0 0 0 / .34) 0 1px, rgb(255 255 255 / .05) 1px 2px, transparent 2px), /* the panels' joints */
    linear-gradient(180deg, rgb(0 0 0 / .3) 0 1px, rgb(255 255 255 / .045) 1px 2px, transparent 2px),
    linear-gradient(180deg, #46413b 0, #373330 45%, #2a2724 100%);
  background-position: 0 0, 0 0, 7% 0, 23% 0, 41.5% 0, 63% 0, 79% 0, 91% 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
  background-size: auto, auto, 3.4% 62%, 1.6% 46%, 2.4% 70%, 4.2% 58%, 1.8% 50%, 2.8% 66%, 420px 420px, 180px 180px, var(--tile) calc(var(--tile) * .5), var(--tile) calc(var(--tile) * .5), var(--tile) calc(var(--tile) * .5), var(--tile) calc(var(--tile) * .5), var(--tile) 100%, 100% calc(var(--tile) * .5), auto;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat-x, repeat-y, no-repeat;
}
.sign-area { position: relative; display: grid; place-items: start center; min-height: 0; padding: calc(var(--ceil) + var(--rod)) 0 clamp(14px, 2.4svh, 28px); overflow: visible clip; } /* clips the rods at the ceiling; the phone board may reach the panel's edge */
/* the ceiling: a band of concrete under the nav, with two shallow ribs and a dark lip where it meets the wall; its strip light
   (a long housing with a tube, the soft glow it throws) hangs in the lower part */
.sign-area::before {
  content: ""; position: absolute; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); top: 0; height: calc(var(--ceil) + 40px); pointer-events: none;
  background:
    linear-gradient(180deg, rgb(0 0 0 / .5), rgb(0 0 0 / 0)) 0 var(--ceil) / 100% 40px no-repeat, /* the shadow under the lip */
    linear-gradient(180deg, #5a554d 0 1px, #151311 1px 100%) 0 calc(var(--ceil) - 7px) / 100% 7px no-repeat, /* the lip */
    linear-gradient(180deg, rgb(0 0 0 / .38) 0 2px, rgb(255 255 255 / .07) 2px 3px, transparent 3px) 0 calc(var(--ceil) * .62) / 100% 3px no-repeat, /* ribs */
    linear-gradient(180deg, rgb(0 0 0 / .38) 0 2px, rgb(255 255 255 / .07) 2px 3px, transparent 3px) 0 calc(var(--ceil) * .3) / 100% 3px no-repeat,
    linear-gradient(180deg, #1c1a18 0, #2a2723 70%, #38342e 100%) 0 0 / 100% var(--ceil) no-repeat;
}
.sign-area::after {
  content: ""; position: absolute; left: 50%; top: calc(var(--ceil) - 24px); width: min(72%, 1000px); height: 14px; transform: translateX(-50%); pointer-events: none;
  border-radius: 4px 4px 3px 3px;
  background: linear-gradient(180deg, #100f0e 0 3px, #fffaf0 3px 10px, #cdbfa3 10px 11px, #1a1917 11px);
  box-shadow: 0 5px 16px 3px rgb(255 240 210 / .34), 0 16px 56px 10px rgb(255 240 210 / .13);
}
.sortie { position: absolute; z-index: 1; left: 5%; top: var(--ceil); width: clamp(64px, 7.4vw, 108px); height: auto; filter: drop-shadow(0 4px 4px rgb(0 0 0 / .5)); pointer-events: none; }
.board { width: min(100%, 1500px); }
.board-line { font-size: clamp(30px, 4.6vw, 76px); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
/* no flaps (reduced motion, no script): the four lines on a plain sign */
.board:not(.is-built) { width: auto; max-width: min(100%, 1100px); padding: clamp(14px, 2vw, 28px) clamp(18px, 2.6vw, 36px); border-radius: var(--radius); background: #1a1a19; }
.board:not(.is-built) .board-line { font-size: clamp(22px, 3.2vw, 52px); }
/* the sign hangs from the ceiling on two steel rods: each is a plate bolted to the ceiling (four bolts, two seen), the rod with
   a highlight down its middle, a collar and a clamp plate bolted to the board's frame */
.board-face, .board:not(.is-built) { position: relative; box-shadow: 0 26px 44px -16px rgb(0 0 0 / .75), inset 0 1px 0 rgb(255 255 255 / .09), 0 0 0 1px rgb(0 0 0 / .45); }
.board-face::before, .board-face::after, .board:not(.is-built)::before, .board:not(.is-built)::after {
  content: ""; position: absolute; bottom: calc(100% - 2px); left: 17%; width: 46px; height: calc(var(--rod) + 2px); margin-left: -23px; pointer-events: none;
  background:
    radial-gradient(circle at 8px 4.5px, #E3E6E8 0 1.1px, #4D5157 1.5px 2.3px, transparent 2.6px) 0 0 / 46px 9px no-repeat,
    radial-gradient(circle at 38px 4.5px, #E3E6E8 0 1.1px, #4D5157 1.5px 2.3px, transparent 2.6px) 0 0 / 46px 9px no-repeat,
    linear-gradient(180deg, #CDD1D4, #959BA1 50%, #62676D 90%, #2E3135) 0 0 / 46px 9px no-repeat,
    linear-gradient(90deg, #1D1F22 0, #686E74 24%, #E2E5E7 44%, #A0A6AB 58%, #50555A 82%, #25282B) 50% 9px / 7px calc(100% - 25px) no-repeat,
    linear-gradient(90deg, #35383C, #C5CACE 38%, #62676C) 50% calc(100% - 9px) / 15px 6px no-repeat,
    radial-gradient(circle at 7px 4.5px, #E3E6E8 0 1.1px, #4D5157 1.5px 2.3px, transparent 2.6px) 50% 100% / 34px 9px no-repeat,
    radial-gradient(circle at 27px 4.5px, #E3E6E8 0 1.1px, #4D5157 1.5px 2.3px, transparent 2.6px) 50% 100% / 34px 9px no-repeat,
    linear-gradient(180deg, #B1B6BA, #787D83) 50% 100% / 34px 9px no-repeat;
  filter: drop-shadow(3px 5px 3px rgb(0 0 0 / .6));
}
.board-face::after, .board:not(.is-built)::after { left: auto; right: 17%; margin-left: 0; margin-right: -23px; }
/* the platform: full width, at the panel's foot. Back to front: the track pit (two roll ways for the tyres, a guide bar on
   insulator posts on each side, a thin far platform edge), the métro line (js/metro.js, z 1), the train (z 2); in front of
   them the platform edge: a yellow tactile strip, then the grey stone floor. The track's centre line is data-track's centre */
.platform { position: relative; height: calc(var(--rail) + var(--car-h) + 16px); margin: 0 calc(-1 * var(--gutter)); border-radius: 0 0 var(--radius) var(--radius); overflow: clip; }
/* how far the pit's floor lies under the track's centre line: as drawn (a quarter of a car's height). From 700 px up the métro line
   runs lower than the centre, in the pit under the wheels (see .platform-line), and the pit gets as deep as that needs on small screens */
.platform { --pit-low: calc(var(--car-h) * .24); }
@media (min-width: 700px) { .platform { --pit-low: max(calc(var(--car-h) * .24), calc(var(--car-h) * .1 + 17px)); } }
.platform-floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--rail) - var(--pit-low));
  background:
    linear-gradient(90deg, rgb(0 0 0 / .4) 0 1px, rgb(255 255 255 / .06) 1px 2px, transparent 2px) 0 0 / calc(var(--car-h) * 2.3) 100% repeat-x, /* slab joints */
    linear-gradient(180deg, rgb(255 255 255 / .12), rgb(255 255 255 / 0) 24%, rgb(0 0 0 / .32)),
    radial-gradient(circle at 30% 40%, rgb(255 255 255 / .06) 0 2px, transparent 3px) 0 0 / 23px 17px,
    radial-gradient(circle at 70% 70%, rgb(0 0 0 / .1) 0 2px, transparent 3px) 0 0 / 31px 21px,
    #6d6c6a;
}
.platform-floor::before { /* the tactile strip along the edge: studded yellow tiles */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(var(--car-h) * .15);
  background:
    radial-gradient(circle at 50% 50%, rgb(110 70 0 / .6) 0 calc(var(--car-h) * .011), rgb(255 232 140 / .55) calc(var(--car-h) * .013) calc(var(--car-h) * .018), transparent calc(var(--car-h) * .02)) 0 0 / calc(var(--car-h) * .056) calc(var(--car-h) * .05),
    linear-gradient(180deg, #2b2415 0 2px, #FFD84A 2px 30%, #F5B700 30% 80%, #B98200 80%);
}
.platform-track {
  --p: calc(var(--car-h) * .48); /* the pit's drawn height (the roll ways, guide bars and posts are placed in it from the top) */
  position: absolute; left: 0; right: 0; bottom: calc(var(--rail) - var(--pit-low)); height: calc(var(--car-h) * .24 + var(--pit-low));
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(var(--car-h) * .5), #8D9298 calc(var(--car-h) * .5) calc(var(--car-h) * .56)) 0 calc(var(--p) * .8) / 100% 2px no-repeat, /* insulators: caps */
    repeating-linear-gradient(90deg, transparent 0 calc(var(--car-h) * .515), #3B3F44 calc(var(--car-h) * .515) calc(var(--car-h) * .545)) 0 calc(var(--p) * .84) / 100% calc(var(--p) * .13) no-repeat, /* ... and posts */
    linear-gradient(180deg, #D5DADE 0 1px, #8E949A 1px 2.5px, #2A2C2F 2.5px 3.5px) 0 calc(var(--p) * .8) / 100% 3.5px no-repeat, /* the near guide bar */
    repeating-linear-gradient(90deg, transparent 0 calc(var(--car-h) * 2.3), rgb(0 0 0 / .45) calc(var(--car-h) * 2.3) calc(var(--car-h) * 2.3 + 2px)) 0 calc(var(--p) * .6) / 100% calc(var(--p) * .16) no-repeat,
    linear-gradient(180deg, #9A958C 0 1px, #6A665F 1px calc(100% - 1.5px), #24221F calc(100% - 1.5px)) 0 calc(var(--p) * .6) / 100% calc(var(--p) * .17) no-repeat, /* the near roll way (a flat pad for the tyres) */
    linear-gradient(180deg, #8C877F 0 1px, #5F5B55 1px calc(100% - 1.5px), #1E1C1A calc(100% - 1.5px)) 0 calc(var(--p) * .23) / 100% calc(var(--p) * .17) no-repeat, /* the far one */
    linear-gradient(180deg, #A3A8AD 0 1px, #686D73 1px 2.5px, #232528 2.5px 3.5px) 0 calc(var(--p) * .13) / 100% 3.5px no-repeat, /* the far guide bar */
    linear-gradient(180deg, #9A9DA0 0 2px, #D9A400 2px 4px, #25221E 4px) 0 0 / 100% 5px no-repeat, /* the far platform's edge, thin */
    linear-gradient(180deg, #0A0908, #171513 52%, #0E0D0C);
}
/* the row the métro line runs along (js/metro.js reads this element's centre): the track's centre line; from 700 px up, 5 px under the
   train's tyres (which end at the near roll way: 15 units of the 150 under the car's foot), in the pit above the yellow strip */
.platform-line { position: absolute; left: 0; right: 0; bottom: calc(var(--rail) - 1px); height: 2px; pointer-events: none; }
@media (min-width: 700px) { .platform-line { bottom: calc(var(--rail) - var(--car-h) * .1 - 6px); } }
.train { position: absolute; left: 50%; bottom: calc(var(--rail) + var(--lw) / 2); z-index: 2; display: flex; gap: calc(var(--car-h) * .035); transform: translateX(-50%); } /* three coupled cars, a small gap (and the couplers) between them */
.car { display: block; flex: none; height: var(--car-h); width: auto; aspect-ratio: 410 / 150; overflow: visible; }
.train-parts { position: absolute; width: 0; height: 0; overflow: hidden; }
@media (max-width: 699px) {
  .statement-pin { --car-h: 17vw; --rail: clamp(52px, 8svh, 80px); --lw: 9px; --rod: clamp(36px, 5.5svh, 52px); min-height: clamp(480px, 72svh, 760px); }
  .car-mid { display: none; } /* a short train on phones */
  .sortie { display: none; }
}
/* with the scroll layer on: the statement waits under the hero (full screen) and is pinned */
html.curtain .statement { position: relative; z-index: 0; margin-top: -100svh; }
html.curtain .hero { z-index: 2; }
html.curtain .statement-pin { min-height: 100svh; }
.board.is-built { position: relative; display: grid; place-items: center; }
.board-face {
  --gap: clamp(3px, .35vw, 6px);
  --bw: 60vw; /* compact: about 60 % of the screen width on desktop */
  --cw: min(calc((var(--bw) - 2 * var(--pad) - (var(--cols) - 1) * var(--gap)) / var(--cols)), 56px);
  --pad: clamp(10px, 1.2vw, 18px);
  display: grid; grid-template-columns: repeat(var(--cols), var(--cw)); gap: calc(var(--gap) * 1.4) var(--gap); justify-content: center;
  padding: var(--pad); border-radius: var(--radius); background: #1a1a19; /* the matte black housing */
}
.flap {
  position: relative; width: var(--cw); height: calc(var(--cw) * 1.45);
  font-size: calc(var(--cw) * 1.34); font-weight: 700; font-stretch: 80%; line-height: calc(var(--cw) * 1.45); text-align: center; color: var(--paper);
  perspective: calc(var(--cw) * 7);
}
.flap .half { position: absolute; left: 0; right: 0; height: calc(50% - 1px); overflow: hidden; background: #262624; }
.flap .half.top { top: 0; border-radius: 3px 3px 0 0; background: #2b2b29; }
.flap .half.bot { bottom: 0; border-radius: 0 0 3px 3px; }
.flap .half b { position: absolute; left: 0; right: 0; height: calc(var(--cw) * 1.45); font-weight: inherit; }
.flap .half.top b { top: 0; }
.flap .half.bot b { bottom: 0; }
/* the hinge: the 2 px gap between the halves shows the housing; little pins at each end */
.flap::before, .flap::after { content: ""; position: absolute; top: calc(50% - 2px); width: 3px; height: 4px; background: #4a4a46; border-radius: 1px; z-index: 3; }
.flap::before { left: -1px; } .flap::after { right: -1px; }
.flap .leaf { position: absolute; left: 0; right: 0; top: 0; height: calc(50% - 1px); transform-origin: 50% calc(100% + 1px); transform-style: preserve-3d; z-index: 2; pointer-events: none; }
.flap .leaf .half { height: 100%; backface-visibility: hidden; }
.flap .leaf .face-back { top: 0; bottom: auto; transform: rotateX(180deg); border-radius: 0 0 3px 3px; }
.flap .leaf .face-back b { top: auto; bottom: 0; }
.flap:not(.is-flipping) .leaf { visibility: hidden; }
/* while the leaf falls, a soft shadow crosses the lower half */
.flap .half.bot::after { content: ""; position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity .09s; }
.flap.is-flipping > .half.bot::after { opacity: .32; }
@media (max-width: 1099px) { .board-face { --bw: 84vw; } }
@media (max-width: 699px) {
  .board-face { --cw: calc((100vw - 2 * var(--gutter) - 2 * var(--pad) - 13 * var(--gap)) / 14); }
}

/* ---------- projects: a staggered grid on a route ---------- */
.projects { position: relative; padding: clamp(24px, 3svh, 40px) 0 clamp(16px, 2svh, 28px); }
.projects-head {
  display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px 40px;
  padding: 0 var(--gutter); margin-bottom: clamp(24px, 2.6vw, 44px);
}
.projects-title {
  margin: 0; font-size: clamp(72px, 14vw, 236px); line-height: .8; font-weight: 700; font-stretch: 78%;
  text-transform: uppercase; letter-spacing: -.025em;
}
.projects-lede { max-width: 31ch; font-size: clamp(18px, 1.45vw, 22px); line-height: 1.35; padding-bottom: .4em; }
/* the lede's second sentence has two versions: hover devices point, touch screens (the same test as the cards' own
   touch behaviour in core.js: no fine hovering pointer) tap; a tap on the card or its button flips avant / après */
.lede-touch { display: none; }
@media not all and (hover: hover) and (pointer: fine) { .lede-hover { display: none; } .lede-touch { display: inline; } }

.route-field { position: relative; padding: 0 var(--gutter); display: grid; gap: 40px; }
.route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.route-case, .menu-route .route-case { fill: none; stroke: var(--orange-deep); stroke-width: 15; stroke-linecap: round; stroke-linejoin: round; }
.route-line, .menu-route .route-line { fill: none; stroke: var(--orange); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.menu-route .route-case { stroke-width: 12; }
.menu-route .route-line { stroke-width: 7; }
.route-start { fill: var(--paper); stroke: var(--ink); stroke-width: 5; }
.route-car {
  position: absolute; left: 0; top: 0; z-index: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: 50%; background: var(--ink); opacity: 0; pointer-events: none;
}
.route-car::after {
  content: ""; position: absolute; inset: 9px 8px 8px 10px; background: var(--orange);
  clip-path: polygon(0 0, 100% 50%, 0 100%, 22% 50%);
}
.route-pin { position: absolute; left: 0; top: 0; width: 52px; height: auto; z-index: 0; opacity: 0; transform-origin: 50% 100%; pointer-events: none; }
html:not(.js) .route-pin, html.calm .route-pin { display: none; }

.work { position: relative; z-index: 1; }
.work-media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--tone); }
.work-media img { display: block; width: 100%; height: auto; }
.work-avant { filter: grayscale(1) contrast(.94) brightness(1.03); }
/* the après sits over the avant, clipped away until the métro line's head goes by (core.js: --hide is the clip it comes from, on the side
   the line comes from; a hover or a tap puts it away again, onto the pointer). Without script it simply shows, the hover shows the avant */
.work-apres { position: absolute; inset: 0; height: 100% !important; object-fit: cover; object-position: top left; clip-path: var(--hide, inset(0 100% 0 0)); transition: clip-path .7s cubic-bezier(.65, 0, .2, 1); }
.work.is-after .work-apres { clip-path: inset(0 0 0 0); }
html:not(.js) .work-apres { clip-path: inset(0 0 0 0); }
html:not(.js) .work-media:hover .work-apres { clip-path: inset(0 0 0 100%); }
html:not(.js) .work-tag > span:first-child { transform: translateY(-130%); }
html:not(.js) .work-tag > span + span { transform: none; }
html:not(.js) .work-media:hover .work-tag > span:first-child { transform: none; }
html:not(.js) .work-media:hover .work-tag > span + span { transform: translateY(130%); }
.work-media-single .work-apres { position: static; clip-path: none; transition: transform .8s var(--e-out); }
@media (hover: hover) { .work-media-single:hover .work-apres { transform: scale(1.03); } }
.work-tag {
  position: absolute; left: 12px; top: 12px; z-index: 2; display: grid; overflow: clip;
  padding: 7px 11px; border-radius: var(--btn-radius); background: var(--paper); color: var(--ink);
  font-size: 16px; font-weight: 600; line-height: 1.1;
}
.work-tag > span { grid-area: 1 / 1; transition: transform .45s var(--e-out); }
.work-tag > span + span { transform: translateY(130%); }
.work.is-after .work-tag > span:first-child { transform: translateY(-130%); }
.work.is-after .work-tag > span + span { transform: none; }
.work-tag-live { background: var(--ink); color: var(--paper); }
.work-switch {
  position: absolute; right: 12px; bottom: 12px; z-index: 2; min-height: 44px; padding: 0 14px;
  border: 0; border-radius: var(--btn-radius); background: var(--ink); color: var(--paper);
  font: 600 16px/1 var(--font); cursor: pointer;
}
@media (hover: hover) and (pointer: fine) { .work-switch { opacity: 0; } .work-switch:focus-visible { opacity: 1; } }
/* captions read like map labels: the route passes under them */
.work-name, .work-meta { width: fit-content; background: var(--paper); padding-right: .35em; }
.work-name { margin: 14px 0 0; padding-top: 4px; padding-bottom: 4px; font-size: clamp(24px, 2.1vw, 34px); line-height: 1.05; font-weight: 700; letter-spacing: -.02em; }
.work-meta { padding-bottom: 4px; font-size: 18px; color: var(--soft); }
/* the Abris card's three results: a big number (the sign in orange) with a short orange tick above it, what it counts, and when. On a
   phone they stack as rows; in a card wide enough, three columns */
.work-4 { container: work / inline-size; }
.work-stats { display: grid; gap: 20px 24px; margin: 18px 0 0; padding: 0; }
.stat { display: grid; grid-template-columns: minmax(64px, auto) 1fr; column-gap: 16px; align-content: start; margin: 0; }
.stat::before { content: ""; grid-column: 1 / -1; width: 34px; height: 3px; margin-bottom: 8px; background: var(--orange); }
.stat-n { grid-row: 2 / 4; margin: 0; font-size: 42px; line-height: .9; font-weight: 700; font-stretch: 78%; letter-spacing: -.02em; }
.stat-sign { color: var(--orange-deep); }
.stat-l { grid-column: 2; margin: 0; font-size: 16px; line-height: 1.25; font-weight: 500; }
.stat-note { grid-column: 2; margin: 3px 0 0; font-size: 14px; line-height: 1.2; color: var(--soft); }
@container work (min-width: 400px) {
  .work-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat { grid-template-columns: 1fr; }
  .stat-n { grid-row: auto; margin-bottom: 8px; font-size: clamp(38px, 3.4vw, 54px); }
  .stat-l, .stat-note { grid-column: 1; }
}

@media (min-width: 1024px) {
  .route-field { display: block; height: calc(91vw + clamp(150px, 232px - 5vw, 195px)); padding: 0; } /* (the Abris card's results add their own height: more in a narrower card) */
  .work { position: absolute; left: var(--x); top: var(--y); width: var(--w); }
  .work-1 { --x: 6vw;  --y: 0;    --w: 46vw; }
  .work-2 { --x: 59vw; --y: 13vw; --w: 35vw; }
  .work-3 { --x: 12vw; --y: 44vw; --w: 37vw; }
  .work-4 { --x: 54vw; --y: 66vw; --w: 41vw; }
}
@media (max-width: 1023px) {
  .work { width: 88%; }
  .work:nth-of-type(even) { justify-self: end; }
}

.others {
  position: relative; margin: clamp(16px, 2vw, 32px) var(--frame) 0; padding: clamp(24px, 3vw, 44px) var(--gutter);
  background: var(--tone); border-radius: var(--radius);
}
.others-title { margin: 0 0 clamp(12px, 2vw, 24px); font-size: clamp(24px, 2.7vw, 46px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.others-list { list-style: none; margin: 0; padding: 0; }
.other {
  position: relative; display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; gap: 8px 32px;
  padding: 14px 0;
}
.other > * { transition: color .3s, transform .45s var(--e-out); }
.other-name { justify-self: start; font-size: clamp(24px, 2.7vw, 46px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.other-what { font-size: 18px; color: var(--soft); }
.other-when { font-size: 18px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.other-when::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--orange-deep); }
.others-list.is-hovering .other > * { color: #8E8E87; }
.others-list.is-hovering .other.is-on > * { color: var(--ink); }
.others-list.is-hovering .other.is-on .other-what { color: var(--soft); }
.others-pin { position: absolute; left: calc((var(--gutter) - var(--pin-w, 28px)) / 2); top: 0; width: var(--pin-w, 28px); height: auto; opacity: 0; pointer-events: none; transition: opacity .25s, transform .45s var(--e-land); }
@media (hover: hover) and (min-width: 1024px) {
  .others { --gutter: 64px; --pin-w: 28px; }
}
@media (hover: none), (max-width: 1023px) { .others-pin { display: none; } .others-list.is-hovering .other > * { color: inherit; transform: none; } }
@media (max-width: 699px) {
  .other { grid-template-columns: 1fr auto; }
  .other-what { grid-column: 1; grid-row: 2; }
  .other-when { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}

/* ---------- services: pinned, the puzzle fills in ---------- */
.services-pin {
  overflow: clip; min-height: calc(100svh - var(--nav-h)); display: flex; flex-direction: column; justify-content: flex-start;
  gap: clamp(14px, 2.4svh, 28px); padding: clamp(12px, 2svh, 24px) var(--gutter) clamp(12px, 2svh, 24px);
}
.services-title { position: relative; z-index: 3; margin: 0; font-size: clamp(34px, 4.7vw, 78px); line-height: 1; font-weight: 700; letter-spacing: -.025em; }
.puzzle { position: relative; width: 100%; max-width: 1360px; margin: 0 auto; }
.pieces { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.piece { border-radius: var(--radius); min-height: 200px; }
.piece-site { grid-column: span 2; background: var(--ink); color: var(--paper); }
.piece-seo, .piece-ads { background: var(--orange); color: var(--ink); }
.piece-social { background: var(--stone); color: var(--ink); }
.piece-ia { background: var(--ink); color: var(--paper); }
.piece { position: relative; overflow: hidden; }
.piece-in { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(22px, 2.4vw, 38px); }
/* each piece carries its whole object top-right, inside the piece; the words stay bottom-left on the colour */
.piece-img { position: absolute; z-index: 0; right: 7%; top: 9%; width: 42%; height: 60%; object-fit: contain; object-position: 100% 0; pointer-events: none; }
.piece-site .piece-img { right: 6%; top: 10%; width: 40%; height: 80%; }
.piece-name, .piece-line { max-width: 64%; }
.piece-site .piece-name, .piece-site .piece-line { max-width: 52%; }
.piece-name { margin: 0; font-size: clamp(24px, 2.7vw, 46px); line-height: 1; font-weight: 700; letter-spacing: -.025em; }
.piece-site .piece-name { font-size: clamp(34px, 4.7vw, 78px); }
.piece-line { margin-top: 10px; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.35; max-width: 24ch; }
.puzzle-board { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; display: none; }
.puzzle.is-built .puzzle-board { display: block; }
.puzzle-board path { fill: var(--slot); stroke: var(--paper); stroke-width: 3; }
.puzzle.is-built { height: var(--ph); }
.puzzle.is-built .pieces { display: block; position: absolute; inset: 0; }
.puzzle.is-built .piece { position: absolute; border-radius: 0; min-height: 0; overflow: visible; }
.puzzle.is-built .piece-in { position: absolute; height: auto; }
@media (max-width: 699px) {
  .pieces { grid-template-columns: 1fr 1fr; }
  .piece-in { padding: 16px; }
  .piece-name { font-size: clamp(20px, 6vw, 24px); } /* « Google Maps » stays on one line at 360 px: shorter words block, room for a tab above them */
  .piece-line { font-size: 15px; }
  .piece-img { width: 40%; height: 30%; top: 7%; right: 7%; }
  .piece-site .piece-img { width: 36%; height: 70%; top: 10%; right: 5%; }
  .piece-name, .piece-line { max-width: 100%; }
  .piece-site .piece-name, .piece-site .piece-line { max-width: 62%; }
}

/* ---------- plans: three monthly plans, then the websites ----------
   The sides keep 56 px (24 on phones) for the métro line, which runs down that margin around the cards (js/metro.js). */
.pricing { position: relative; padding: clamp(56px, 7vw, 104px) calc(var(--frame) + var(--gutter)); }
@media (min-width: 700px) { .pricing { padding-inline: max(56px, calc((100% - 1400px) / 2)); } }
.pricing-title { margin: 0 0 8px; font-size: clamp(36px, 4.6vw, 72px); line-height: .95; font-weight: 700; font-stretch: 80%; text-transform: uppercase; letter-spacing: -.01em; }
.pricing-lede { margin: 0 0 34px; max-width: 52ch; font-size: clamp(17px, 1.3vw, 21px); line-height: 1.4; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: var(--radius); background: #fff; border: 1.5px solid rgb(11 11 10 / .12); }
.plan.is-pop { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.plan-tag { position: absolute; top: -13px; left: 26px; padding: 5px 10px; border-radius: var(--btn-radius); background: var(--orange); color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.2; }
/* no prices for now (Ismael 2026-10-17): the plan's name is the card's big title */
.plan-name { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.2; }
.plan-name-big { font-size: clamp(38px, 3.3vw, 52px); line-height: .95; font-stretch: 78%; letter-spacing: -.015em; text-transform: uppercase; }
.plan-for { margin: 0; font-size: 15px; line-height: 1.4; opacity: .75; }
.plan-list { margin: 4px 0 14px; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 15.5px; line-height: 1.35; }
.plan-list li::before { content: "→ "; color: var(--orange); font-weight: 700; }
.plan-btn { margin-top: auto; min-height: 50px; }
@media (hover: hover) { .plan-btn.btn-ink:hover { background: var(--orange); } }
.plan.is-pop :focus-visible { outline-color: var(--orange); }
.web { margin-top: 14px; display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 14px; align-items: stretch; }
.web > * { padding: 22px 24px; border-radius: var(--radius); }
.web-head { background: var(--orange); display: flex; flex-direction: column; justify-content: center; }
.web-title { margin: 0; font-size: 28px; font-weight: 700; font-stretch: 80%; text-transform: uppercase; line-height: 1; }
.web-note { margin: 6px 0 0; font-size: 15px; }
.web-opt { display: flex; flex-direction: column; background: #fff; border: 1.5px solid rgb(11 11 10 / .12); }
.web-t { margin: 0; font-size: 17px; font-weight: 700; }
.web-d { margin: 6px 0 0; font-size: 14.5px; line-height: 1.35; opacity: .75; }
.web-link { margin-top: auto; padding-top: 14px; align-self: flex-start; font-size: 15.5px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 4px; }
@media (hover: hover) { .web-link:hover { text-decoration-color: var(--orange); } }
@media (max-width: 1023px) { .web { grid-template-columns: 1fr 1fr; } }
@media (max-width: 899px) {
  .plan { padding: 20px; }
  .plan-tag { left: 20px; }
  .plan-list { font-size: 15px; }
}
@media (max-width: 699px) {
  .plans, .web { grid-template-columns: 1fr; }
  .plan { padding: 24px; }
  .plan-tag { left: 24px; }
}

/* ---------- CTA: « J'ai besoin [ … ] » ---------- */
.cta {
  position: relative; overflow: hidden; margin: var(--frame); border-radius: var(--radius);
  background: var(--orange); color: var(--ink);
  min-height: min(680px, 84svh);
  display: grid; place-items: center; padding: clamp(40px, 5vw, 80px) var(--gutter);
}
.ask { width: 100%; max-width: 1600px; --fs: clamp(30px, 5.2vw, 88px); --ih: calc(var(--fs) * 1.3); }
.ask-step-1 { display: grid; grid-template-columns: max-content var(--reel-w, max-content) max-content; justify-content: space-between; align-items: center; column-gap: clamp(14px, 1.7vw, 40px); }
.ask.is-stacked .ask-step-1 { grid-template-columns: minmax(0, 1fr); justify-content: stretch; justify-items: start; row-gap: 16px; }
.ask.is-stacked .reel.is-live { width: 100%; height: calc(var(--ih) * 3); overflow: hidden; }
.ask-lead { font-size: clamp(46px, 7.8vw, 132px); font-weight: 700; line-height: 1; letter-spacing: -.035em; white-space: nowrap; }
.reel { position: relative; width: var(--reel-w, auto); }
.reel-track { display: grid; }
.reel-item { position: relative; display: flex; align-items: center; height: var(--ih); font-size: var(--fs); font-weight: 700; letter-spacing: -.025em; cursor: pointer; white-space: nowrap; }
.reel-item input { position: absolute; left: 0; top: 50%; width: 1px; height: 1px; opacity: 0; margin: 0; }
.reel-item span { display: inline-block; padding: .06em .28em .12em; border-radius: var(--btn-radius); transition: background-color .25s, color .25s; line-height: 1.05; }
.reel-item input:checked + span { background: var(--ink); color: var(--orange); }
.reel.is-live .reel-item input:checked + span { background: none; color: inherit; }
.reel.is-live .reel-item.is-on span, .reel.is-live .reel-item.is-on input:checked + span { background: var(--ink); color: var(--orange); }
.reel-item input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 5px; }
.reel.is-live { height: calc(var(--ih) * 5); overflow: hidden; touch-action: pan-x; cursor: grab; user-select: none; -webkit-user-select: none; }
.reel.is-live.is-dragging { cursor: grabbing; }
.reel.is-live .reel-track { position: absolute; inset: 0; display: block; }
.reel.is-live .reel-item { position: absolute; left: 0; top: 0; transform-origin: 0 50%; }
.btn-next { align-self: center; }
.ask-step-2 { display: grid; gap: clamp(24px, 4svh, 40px); }
.ask.is-live .ask-step-2 { display: none; }
.ask.is-live.on-2 .ask-step-1 { display: none; }
.ask.is-live.on-2 .ask-step-2 { display: grid; }
.ask-recap { font-size: clamp(34px, 5vw, 84px); font-weight: 700; line-height: 1.05; letter-spacing: -.03em; }
.ask-recap strong { background: var(--ink); color: var(--orange); padding: 0 .18em .04em; border-radius: var(--btn-radius); font-weight: inherit; }
.ask-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; }
.field-label { display: block; margin-bottom: 6px; font-size: 18px; font-weight: 600; }
.field input {
  width: 100%; padding: 10px 0 12px; border: 0; border-bottom: 3px solid var(--ink); border-radius: 0;
  background: transparent; color: var(--ink); font: 600 clamp(22px, 2.3vw, 36px)/1.2 var(--font);
}
.field input:focus { outline: none; border-bottom-color: var(--paper); }
.field input:focus-visible { outline: none; }
.field.is-bad input { border-bottom-color: var(--paper); }
.field.is-bad { animation: shake .42s; }
@keyframes shake { 20% { transform: translateX(-10px); } 40% { transform: translateX(9px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(3px); } }
.ask-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.ask-back { min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; font-size: 18px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .25em; }
.ask-note { margin-top: 20px; font-size: 18px; font-weight: 600; min-height: 1.4em; }
.ask-note a { font-weight: 700; }
@media (max-width: 899px) {
  .ask-fields { grid-template-columns: 1fr; }
  .ask { --fs: clamp(26px, 7.4vw, 48px); }
}

/* ---------- footer: the last line, the contact, and the 514 rising out of the bottom with the city ---------- */
.foot {
  position: relative; overflow: hidden; isolation: isolate; margin: var(--frame); border-radius: var(--radius);
  background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; padding: clamp(32px, 4vw, 64px) var(--gutter) 0;
}
.foot-cta { position: relative; z-index: 3; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; }
.foot-line { margin: 0; max-width: 16.5ch; font-size: clamp(40px, 6.4vw, 112px); line-height: .92; font-weight: 700; font-stretch: 80%; letter-spacing: -.02em; text-transform: uppercase; }
/* the button stands on the headline's last baseline (not on its line box, .135em lower) */
.foot-cta > .btn { margin-bottom: calc(clamp(40px, 6.4vw, 112px) * .135); }
.btn-orange { background: var(--orange); color: var(--ink); }
@media (hover: hover) { .btn-orange:hover { background: var(--paper); } .btn-orange:hover .arrow-svg { transform: translateX(4px); } }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: clamp(17px, 1.3vw, 21px); font-weight: 500; }
.foot-links li + li::before { content: "·"; margin: 0 .5em; color: var(--soft-on-ink); }
.foot-links a { display: inline-block; padding: 8px 0; }
/* the footer's info sits on the two sides of the giant 514 (no second logo row: the header slides away here) */
.foot-side { position: absolute; z-index: 3; bottom: calc(20vw + clamp(20px, 2.4vw, 40px)); display: flex; flex-direction: column; gap: 6px; font-size: clamp(17px, 1.3vw, 21px); }
.foot-side-l { left: var(--gutter); align-items: flex-start; }
.foot-side-r { right: var(--gutter); align-items: flex-end; }
.foot-side span { color: var(--soft-on-ink); }
.foot-side a:not(.foot-up) { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 4px; }
.foot-side-r .foot-up { margin-top: 8px; }
.foot-up { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--btn-radius); background: var(--paper); color: var(--ink); font-weight: 600; font-size: 16px; text-decoration: none; }
.foot-up span { transition: transform .3s var(--e-out); }
@media (hover: hover) { .foot-up:hover span { transform: translateY(-4px); } }
.foot-rise { --f: clamp(200px, 43vw, 780px); --b: 4.6vw; position: relative; height: calc(var(--b) + var(--f) * .78 + 12px); margin: clamp(8px, 1vw, 16px) calc(-1 * var(--gutter)) 0; }
.foot-514 {
  /* centred without a transform: the scroll layer animates only its rise */
  position: absolute; left: 0; right: 0; bottom: var(--b); z-index: 1; width: max-content; margin: 0 auto;
  font-size: var(--f); line-height: .74; font-weight: 800; font-stretch: 80%; letter-spacing: -.05em;
  color: var(--paper); white-space: nowrap;
}
.foot-sky {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 20vw; /* 5:1: the whole city at full width */
  background: var(--orange); pointer-events: none;
}
.foot-legal { font-size: 16px; font-weight: 500; color: var(--soft-on-ink); }
/* below 1100 px the 514 leaves too little room on its sides: the two sides become two short rows above it */
@media (max-width: 1099px) {
  .foot-rise { height: auto; padding: clamp(20px, 3vw, 32px) var(--gutter) calc(var(--b) + var(--f) * .78 + 12px); display: flex; flex-direction: column; gap: 14px; }
  .foot-side { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
  .foot-side-r { justify-content: space-between; }
  .foot-side-r .foot-up { margin-top: 0; }
}
@media (max-width: 899px) {
  .foot-line { max-width: none; }
  .foot-rise { --f: 60vw; --b: 9vw; }
  .foot-sky { height: 32vw; }
}
/* the header leaves while the footer is on screen (its own row would double the footer's) */
.nav.is-away { transform: translateY(calc(-100% - var(--frame) - 12px)); }

/* ---------- reduced motion: everything already in place ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* ---------- below the fold and not pinned: rendered only near the screen (their height is remembered once seen) ---------- */
.projects { content-visibility: auto; contain-intrinsic-height: auto 136vw; }
.cta { content-visibility: auto; contain-intrinsic-height: auto 680px; }
.foot { content-visibility: auto; contain-intrinsic-height: auto 68vw; }
@media (max-width: 1023px) { .projects { contain-intrinsic-height: auto 290vw; } .foot { contain-intrinsic-height: auto 103vw; } }
@media (max-width: 699px) { .projects { contain-intrinsic-height: auto 448vw; } .foot { contain-intrinsic-height: auto 166vw; } }

/* ---------- « la ligne orange », a métro map (js/metro.js). Switch: data-metro on <html> ---------- */
html[data-metro] .route-field > .route, html[data-metro] .route-car, html[data-metro] .route-pin { display: none !important; }
html[data-metro] .statement-pin { position: relative; }
html[data-metro] .services-pin { position: relative; overflow-x: clip; overflow-y: visible; }
.metro { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; opacity: 0; transition: opacity .6s var(--e-out); }
html.metro-on .metro { opacity: 1; }
.hero > .metro, .statement-pin > .metro { z-index: 1; } /* the statement's: over the track, under the train */
.metro .m-run { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.metro .m-orange { stroke: #FF4A1C; }
.metro .m-green { stroke: #12934A; }
.metro .m-yellow { stroke: #F6C21A; }
.metro .m-blue { stroke: #0E3A8A; }
/* yellow alone is under 3:1 on paper: a thin dark edge */
.metro .m-edge { fill: none; stroke: #0B0B0A; stroke-linecap: round; stroke-linejoin: round; }
/* stations: white dots inside the line; correspondances, start and terminus: big white circles with a black ring */
.metro .m-dot { fill: #fff; opacity: 0; transform: scale(.4); transform-box: fill-box; transform-origin: center; transition: opacity .3s var(--e-out), transform .4s var(--e-out); }
.metro .m-dot.on { opacity: 1; transform: none; }
.metro .m-big { fill: #fff; stroke: #0B0B0A; opacity: 0; transform: scale(.5); transform-box: fill-box; transform-origin: center; transition: opacity .35s var(--e-out), transform .5s var(--e-out); }
.metro .m-big.on { opacity: 1; transform: none; }
.metro .m-train-body { filter: drop-shadow(0 0 3px rgba(255, 255, 255, .95)) drop-shadow(0 0 6px rgba(255, 255, 255, .6)); }
html.calm .metro, html.calm .metro .m-dot, html.calm .metro .m-big { transition: none; }
/* phones: the line zigzags down the side margins (js/metro.js, phoneRoute). It needs a little room there: the departure board
   is 16 px narrower (its letters 5 % smaller) so the margins beside it hold the line, the grey « autres projets » box lines
   up with the cards (16 px in from the screen edge), and the gaps around the projects' title and foot are a few px taller for the
   crossings */
@media (max-width: 699px) {
  html[data-metro] .board-face { --cw: calc((100vw - 2 * var(--gutter) - 16px - 2 * var(--pad) - 13 * var(--gap)) / 14); }
  html[data-metro] .others { margin-left: 16px; margin-right: 16px; }
  html[data-metro] .projects { padding-top: 32px; padding-bottom: 38px; }
  html[data-metro] .projects-head { margin-bottom: 60px; }
  html[data-metro] .services-title { margin-bottom: 20px; }
  .cta:has(.ask.on-2) > .metro { opacity: 0; } /* the contact form's second step: the line leaves it alone */
}

/* ---------- language switch (FR | EN), in the nav and on the simple pages: the current one underlined ---------- */
.nav-lang { display: flex; align-items: center; gap: 6px; margin: 0 8px 0 0; font-size: 16px; font-weight: 600; letter-spacing: .02em; }
.nav-lang a { padding: 10px 2px; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em; text-decoration-color: transparent; transition: text-decoration-color .25s; }
.nav-lang a[aria-current] { text-decoration-color: currentColor; }
.nav-lang span { font-weight: 400; }
@media (hover: hover) { .nav-lang a:hover { text-decoration-color: currentColor; } }

/* ---------- simple pages: privacy policy, 404 (no scripts) ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: calc(var(--frame) + 14px) calc(var(--frame) + var(--gutter)); }
.page-main { max-width: 780px; margin: 0 auto; padding: clamp(24px, 6svh, 64px) var(--gutter) clamp(48px, 10svh, 112px); }
.page-title { margin: 0 0 14px; font-size: clamp(44px, 7.4vw, 104px); line-height: .9; font-weight: 700; font-stretch: 78%; letter-spacing: -.012em; text-transform: uppercase; }
.page-date { color: var(--soft); font-size: 16px; }
.page-main h2 { margin: 44px 0 10px; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; font-weight: 700; }
.page-main p, .page-main li { max-width: 64ch; }
.page-main p + p { margin-top: 12px; }
.page-main ul { margin: 10px 0 0; padding-left: 1.2em; }
.page-main li + li { margin-top: 6px; }
.page-main a { text-decoration-thickness: 2px; text-underline-offset: .2em; }
.page-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin: var(--frame); padding: 28px var(--gutter); border-radius: var(--radius); background: var(--ink); color: var(--soft-on-ink); font-size: 16px; }
.page-foot a { color: var(--paper); text-underline-offset: 4px; }
/* 404: the orange panel, a big number, the way back; the city along the foot */
.e404 { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(18px, 3svh, 28px); min-height: calc(100svh - 2 * var(--frame)); margin: var(--frame); padding: calc(var(--nav-h) + 24px) var(--gutter) 30vw; border-radius: var(--radius); background: var(--orange); color: var(--ink); }
.e404 .page-head { position: absolute; top: 0; left: 0; right: 0; padding: 14px var(--gutter); }
.e404-num { margin: 0; font-size: clamp(120px, 26vw, 360px); line-height: .8; font-weight: 800; font-stretch: 80%; letter-spacing: -.05em; }
.e404-line { max-width: 22ch; font-size: clamp(24px, 3vw, 40px); line-height: 1.1; font-weight: 700; }
.e404-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.e404-alt { font-weight: 600; text-underline-offset: .25em; }
.e404-sky { position: absolute; left: 0; right: 0; bottom: 0; height: 26vw; background: #2B1A14; -webkit-mask: url("../assets/obj/skyline.webp") 70% 100% / cover no-repeat; mask: url("../assets/obj/skyline.webp") 70% 100% / cover no-repeat; pointer-events: none; }
/* without scripts the deferred pictures come from their <noscript> copies */
html:not(.js) img[data-src] { display: none; }
/* phones: the bar keeps its logo and Menu only; the switch sits in the menu's foot */
.menu-lang .nav-lang { margin: 0; font-size: inherit; }
@media (max-width: 559px) { .nav > .nav-actions > .nav-lang { display: none; } }

/* ---------- the contact on phones and tablets (2026-11-07, Ismael: "too much empty orange space" at the end): the panel
   hugs the chooser, the chooser is set bigger, the buttons go full width. The top keeps room for the blue line. ---------- */
@media (max-width: 699px) {
  .cta { min-height: 0; place-items: stretch; padding: 128px var(--gutter) 48px; contain-intrinsic-height: auto 560px; }
  .cta:has(.ask.on-2) { padding-top: 56px; } /* the second step: the line has left, so has its room */
  .ask { --fs: clamp(30px, 9.6vw, 44px); }
  .ask-lead { font-size: clamp(54px, 16.5vw, 76px); }
  .ask.is-stacked .ask-step-1 { row-gap: 18px; }
  .ask .btn-next { width: 100%; justify-content: center; margin-top: 10px; }
  .ask-actions .btn { width: 100%; justify-content: center; }
  .ask-step-2 { gap: 22px; }
  .ask-note:empty { margin: 0; min-height: 0; }
  main + .foot { margin-top: -1px; } /* the contact ends on a fraction of a px: no paper hairline before the footer */
}
/* tablets: the chooser is stacked there too, so the panel hugs it instead of holding 680 px */
@media (min-width: 700px) and (max-width: 1099px) {
  .cta { min-height: 0; place-items: stretch; padding: 132px var(--gutter) 72px; contain-intrinsic-height: auto 600px; }
  .cta:has(.ask.on-2) { padding-top: 72px; }
  .cta:has(.ask.on-2) > .metro { opacity: 0; } /* as on phones: the form step has the panel to itself */
  .ask-note:empty { margin: 0; min-height: 0; }
}

/* ---------- the loader's city (2026-11-07, Ismael: « everything is orange, nothing else ») — the hero's skyline rises
   behind the board and is the progress bar: its windows come on left to right with the count (0 → 100 %), the whole
   city flares in the overdrive (→ 514 %), then dims to the hero's own lights as the panel folds into the hero, where the
   same city sits at the same place (core.js sets this box on the hero's rectangle and copies the hero's clouds + jet). ---------- */
.loader-city { position: absolute; inset: var(--frame); overflow: clip; container-type: size; pointer-events: none; --sky-x: .7; }
.loader-city .lc-sky, .loader-city .lc-lights {
  --fw: max(100cqw, 177.778cqh);
  position: absolute; bottom: 0; left: calc((100cqw - var(--fw)) * var(--sky-x));
  width: var(--fw); height: calc(var(--fw) / 5);
  animation: lc-rise .9s cubic-bezier(.16, 1, .3, 1) both;
}
.loader-city .lc-sky { background: var(--ink); opacity: .86; -webkit-mask: url("../assets/obj/skyline.webp") 0 0 / 100% 100% no-repeat; mask: url("../assets/obj/skyline.webp") 0 0 / 100% 100% no-repeat; }
.loader-city .lc-wipe { position: absolute; inset: 0; --p: 0; -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--p) * 1.1% - 10%), transparent calc(var(--p) * 1.1%)); mask-image: linear-gradient(90deg, #000 calc(var(--p) * 1.1% - 10%), transparent calc(var(--p) * 1.1%)); }
.loader-city .lc-lights { background: url("../assets/obj/lights.webp") 0 0 / 100% 100% no-repeat; transition: filter .25s; }
.loader.lc-over .lc-lights { filter: brightness(1.7) saturate(1.25); }
@keyframes lc-rise { from { transform: translateY(42%); opacity: 0; } }
.loader-city .hero-sky-fx { opacity: 0; animation: lc-fade .8s .1s ease-out forwards; }
@keyframes lc-fade { to { opacity: 1; } }
.loader-mask { top: 44%; }
@media (max-width: 699px) { .loader-city { --sky-x: .52; } .loader-mask { top: 40%; } }
