/*
=================================================================
  site.css: visual system of the site (proposal C, "Relato en scroll")
-----------------------------------------------------------------
  Loaded on every page. On the case studies (body.is-legacy) only the
  chrome applies (header, footer, language hint), in a dark variant;
  the case content keeps style.css untouched.

   1. Tokens
   2. Base (new pages only)
   3. Page transitions
   4. Header, menu and FR / EN
   5. Footer, email copy
   6. Shared pieces (headings, buttons, lit words, reveal)
   7. Home (hero, scene, offers, rail, contact)
   8. Offer rows (home + /services/)
   9. Services
  10. Projects page and locked projects
  11. About and timeline
  12. Contact form
  13. Legal page, 404, redirects
  14. Case-study includes (_includes/case/)
  15. Small screens
  16. Reduced motion
=================================================================
*/

/* 1. Tokens ---------------------------------------------------- */
:root {
  --bg: #f2f0ea;
  --bg-2: #e7e4db;
  --ink: #151514;
  --mute: #5f5c54;        /* 6.1:1 on --bg */
  --dim: #c3bfb3;         /* unlit words only (decorative state, JS) */
  --line: rgba(21, 21, 20, .16);
  --line-strong: #151514;
  --y: #FFEE00;
  --on-y: #151514;
  --font: 'Bricolage Grotesque', 'Bricolage Fallback', system-ui, sans-serif;
  /* ONE container system for the whole site: content at most --maxw wide
     (gutters included), centred, with a fluid gutter. Every section, the header,
     the footer and the case pages use padding-inline: var(--pad); nothing else
     sets its own max-width + auto margins on top of it. */
  --maxw: 1440px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --pad: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  --header-h: 64px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
body.is-legacy {
  --bg: #111111;
  --bg-2: #1c1c1c;
  --ink: #fafafa;
  --mute: #b0b0b0;
  --line: rgba(250, 250, 250, .14);
  --line-strong: #fafafa;
}

/* 2. Base (new pages only, low specificity) -------------------- */
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body:not(.is-legacy) {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 18px/1.5 var(--font);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
:where(body:not(.is-legacy)) *, :where(body:not(.is-legacy)) *::before, :where(body:not(.is-legacy)) *::after { box-sizing: border-box; }
:where(body:not(.is-legacy)) :is(h1, h2, h3, h4, p, ul, ol, figure, dl, dd, blockquote) { margin: 0; }
:where(body:not(.is-legacy)) :is(ul, ol) { padding: 0; }
:where(body:not(.is-legacy)) img { max-width: 100%; height: auto; display: block; }
:where(body:not(.is-legacy)) a { color: inherit; }
:where(body:not(.is-legacy)) button { font: inherit; color: inherit; }
body.is-legacy { scroll-behavior: auto; }
html:has(body.is-legacy) { scroll-behavior: auto; }
#main-content:focus { outline: none; }
:where(body:not(.is-legacy)) :focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--y); border-radius: 2px; }
.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; }
.wrap { padding-inline: var(--pad); }

.skip-link {
  position: absolute; left: 12px; top: -200px; z-index: 1000;
  background: var(--y); color: var(--on-y); padding: 12px 16px; font: 600 16px/1 var(--font); text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--on-y); }

/* 3. Page transitions: CSS only, progressive (no JS, no loader) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 200ms; animation-timing-function: ease; }

/* 4. Header, menu and FR / EN ---------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 0; margin: 0;
  font-family: var(--font);
}
.site-header-inner {
  display: flex; align-items: center; gap: 32px;
  min-height: var(--header-h); padding-inline: var(--pad);
}
.site-header a, .site-header a:hover { color: var(--ink); }
.site-logo { font-weight: 800; font-size: 17px; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-nav a { font-size: 16px; font-weight: 500; text-decoration: none; padding: 6px 0; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.site-nav a:is(:hover, :focus-visible) { --mk-u: var(--mk-mute); background-size: 100% var(--mk-h); }
.site-nav a[aria-current="page"] { --mk-u: var(--mk-ink); background-size: 100% var(--mk-h); }

.lang-pick { position: relative; display: inline-flex; align-items: baseline; gap: 6px; font-size: 15px; font-weight: 600; padding: 6px 0; }
.lang-opt { text-decoration: none; padding: 2px 1px; color: var(--mute); }
a.lang-opt { color: var(--ink); }
a.lang-opt:is(:hover, :focus-visible) { color: var(--ink); --mk-u: var(--mk-mute); background-size: 100% var(--mk-h); }
.lang-opt.is-active { color: var(--ink); --mk-u: var(--mk-ink); background-size: 100% var(--mk-h); }
.lang-sep { color: var(--mute); font-weight: 400; }
button.lang-opt { font: inherit; background: none; border: 0; cursor: pointer; color: var(--ink); }
button.lang-opt:is(:hover, :focus-visible) { --mk-u: var(--mk-mute); background-size: 100% var(--mk-h); }
button.lang-opt[aria-pressed="true"] { --mk-u: var(--mk-ink); background-size: 100% var(--mk-h); }
.lang-pick[hidden] { display: none; }
.ctx-en .only-fr { display: none; }
.c-lang-note { margin: 0 0 12px; font-size: 15px; color: var(--mute); }

/* Language hint (only when no choice is saved and the browser language differs) */
.lang-hint { display: none; background: var(--ink); color: var(--bg); font: 500 15px/1.4 var(--font); }
html.lang-hint-on .lang-hint { display: block; }
.lang-hint-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 10px var(--pad); }
.lang-hint p { margin: 0; }
.lang-hint a, .lang-hint a:hover { color: var(--bg); font-weight: 700; }
.lang-hint button { background: none; border: 1px solid currentColor; color: inherit; border-radius: 999px; padding: 4px 12px; cursor: pointer; font: inherit; }

/* 5. Footer, email copy ---------------------------------------- */
.site-footer {
  margin: 0; border-top: 1px solid var(--line);
  padding: 72px var(--pad) 28px;
  font-family: var(--font); color: var(--ink); background: var(--bg);
}
.site-footer a, .site-footer a:hover { color: var(--ink); }
.footer-main { display: grid; gap: 14px; margin-bottom: 56px; grid-template-columns: minmax(0, 1fr) auto; }
.footer-main > :not(.footer-lottie) { grid-column: 1; }
/* Ale's signature (assets/img/signature.svg), right column, level with the title.
   Its box is fixed (width + aspect-ratio): no layout shift. Without JS or with reduced
   motion the <img> shows the whole signature; site.js swaps it for the inline SVG and
   draws it once per visit (.is-pending hides the <img> until then). */
.footer-sig { grid-column: 2; grid-row: 1 / span 3; align-self: start; margin-top: -10px; width: clamp(150px, 15vw + 60px, 320px); aspect-ratio: 595.041 / 280.562; color: var(--ink); pointer-events: none; }
.footer-sig img, .footer-sig svg { display: block; width: 100%; height: 100%; }
.footer-sig.is-pending img { visibility: hidden; }
/* Phones: the signature only sits next to the title; the email and the links get the full width */
@media (max-width: 600px) {
  .footer-main > :not(.footer-sig, .footer-title) { grid-column: 1 / -1; }
  .footer-sig { grid-row: 1; }
}
.footer-title { font-size: clamp(28px, 3.6vw, 48px); font-weight: 800; letter-spacing: -.035em; line-height: 1; margin: 0; }
.footer-mail { font-size: clamp(18px, 2vw, 24px); font-weight: 600; letter-spacing: -.01em; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; color: var(--mute); border-top: 1px solid var(--line); padding-top: 18px; }
.footer-bottom p { margin: 0; }
.site-footer .footer-bottom a { color: var(--mute); }
.site-footer .footer-bottom a:hover { color: var(--ink); }
.site-footer p { margin: 0; }

.copy-email { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; }
.copy-email a { overflow-wrap: anywhere; text-underline-offset: 4px; }
.copy-btn {
  font: 600 14px/1 var(--font); color: var(--ink); background: transparent;
  border: 1.5px solid var(--ink); border-radius: 999px; padding: 7px 13px; cursor: pointer;
}
.copy-btn:hover, .copy-btn.is-done { background: var(--y); border-color: var(--y); color: var(--on-y); }
.copy-out { font-size: 14px; font-weight: 500; color: var(--mute); }
.copy-out.is-error { color: #a1260d; }
.is-legacy .copy-out.is-error { color: #ff8a73; }

.link-arrow { font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
/* Hover underlines: a hand-drawn marker line (assets/img/strokes/marker-line-*.svg).
   Painted as a background, so it always sits BEHIND the letters and behind the
   link's own black underline (text-decoration is painted over the background):
   the underline stays visible on the yellow. Drawn left to right on hover and on
   keyboard focus, one stroke per line when a title wraps. */
:root { --mk-ink: url("/assets/img/strokes/marker-line-ink.svg"); --mk-mute: url("/assets/img/strokes/marker-line-mute.svg"); --mk-y: url("/assets/img/strokes/marker-line-y.svg"); }
body.is-legacy { --mk-ink: url("/assets/img/strokes/marker-line-ink-legacy.svg"); --mk-mute: url("/assets/img/strokes/marker-line-mute-legacy.svg"); }
.site-nav a, .lang-opt, .rail-title, .prow-title a {
  --mk-u: var(--mk-mute); --mk-h: .26em;
  background: var(--mk-u) no-repeat 0 100% / 0 var(--mk-h);
  padding-bottom: .22em;                       /* inline padding: lowers the stroke, line height unchanged */
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size .35s var(--ease);
}
/* Text links with an arrow ("Voir tous les projets →"): on hover / focus the whole
   label gets marked with the yellow highlighter swipe of the ghost buttons, drawn
   left to right, behind the letters and behind the link's black underline. */
.link-arrow {
  background: url("/assets/img/strokes/swipe-y-1.svg") no-repeat 0 50% / 0 100%;
  padding: .1em .15em; margin: 0 -.15em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size .4s cubic-bezier(.45, .05, .35, 1);
}
.link-arrow:is(:hover, :focus-visible) { background-size: 100% 100%; color: var(--on-y); }


/* 6. Shared pieces --------------------------------------------- */
.page-head { padding: 72px var(--pad) 40px; }
.chap { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--mute); margin: 0 0 20px; }
.display { font-size: clamp(44px, 7.4vw, 120px); font-weight: 800; letter-spacing: -.045em; line-height: .95; }
.h2 { font-size: clamp(36px, 5.2vw, 76px); font-weight: 800; letter-spacing: -.04em; line-height: .95; margin: 0 0 32px; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--mute); max-width: 52ch; }
.big { font-size: clamp(32px, 5vw, 76px); line-height: 1.05; letter-spacing: -.035em; font-weight: 600; max-width: 21ch; }
.section { padding: 112px var(--pad); border-top: 1px solid var(--line); }

/* Buttons: hand-drawn marker strokes (assets/img/strokes/, original SVGs).
   ::before = the black stroke (primary: thick marker; .btn-ghost: double underline)
   ::after  = the yellow highlighter, drawn left to right on hover / focus.
   Three stroke variants (--mk, --hl) picked by position, so one button always keeps the same one.
   Text stays real text; contrast: --bg on --ink and --on-y on --y, both > 4.5:1. */
.btn {
  --mk: url("/assets/img/strokes/marker-1.svg");
  --hl: url("/assets/img/strokes/highlight-1.svg");
  --stroke: var(--ink); --glow: var(--y); --fg: var(--bg); --fg-on: var(--on-y);
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 14px 28px; border: 0; border-radius: 0; background: transparent;
  color: var(--fg); text-decoration: none; font-weight: 600; font-size: 17px; line-height: 1.25; cursor: pointer;
  transition: color .18s .12s;
}
.btn::before, .btn::after {
  content: ""; position: absolute; inset: -3px -6px; z-index: -1; pointer-events: none;
  -webkit-mask: var(--mk) center / 100% 100% no-repeat; mask: var(--mk) center / 100% 100% no-repeat;
  background: var(--stroke);
}
.btn::after {
  -webkit-mask-image: var(--hl); mask-image: var(--hl);
  background: var(--glow);
  clip-path: inset(0 100% 0 0); opacity: 0;
  /* leaving: fade out, then reset the sweep */
  transition: opacity .16s ease, clip-path 0s linear .16s;
}
.btn.btn-ghost {
  --mk: url("/assets/img/strokes/underline-1.svg");
  --hl: url("/assets/img/strokes/swipe-1.svg");
  --fg: var(--ink); color: var(--fg);
}
/* Line strokes (.btn-ghost): the yellow sits behind the black lines, so the
   underline stays visible on hover / focus (text above both). The filled primary
   stroke keeps the yellow on top: under the black fill it would not show. */
.btn.btn-ghost::after { z-index: -2; }
.btn:is(:focus-visible, :active)::after { clip-path: inset(0 0 0 0); opacity: 1; transition: clip-path .4s cubic-bezier(.45, .05, .35, 1), opacity 0s; }
.btn:is(:focus-visible, :active) { color: var(--fg-on); }
@media (hover: hover) {
  .btn:hover::after { clip-path: inset(0 0 0 0); opacity: 1; transition: clip-path .4s cubic-bezier(.45, .05, .35, 1), opacity 0s; }
  .btn:hover { color: var(--fg-on); }
}
/* Keyboard focus: a 2 px outline on top of the yellow stroke (distinct from hover) */
:where(body:not(.is-legacy)) .btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; box-shadow: none; border-radius: 2px; }
/* Variants by position (deterministic: the same button always gets the same stroke) */
.btn-row > .btn:nth-child(2), .c-cta > .btn:nth-child(2), .contact-form .btn,
.olist > li:nth-child(3n+2) .btn { --mk: url("/assets/img/strokes/marker-2.svg"); --hl: url("/assets/img/strokes/highlight-2.svg"); }
.btn-row > .btn:nth-child(3), .c-cta > .btn:nth-child(3), .page-about .btn,
.olist > li:nth-child(3n) .btn { --mk: url("/assets/img/strokes/marker-3.svg"); --hl: url("/assets/img/strokes/highlight-3.svg"); }
:is(.btn-row, .c-cta) > .btn.btn-ghost:nth-child(2) { --mk: url("/assets/img/strokes/underline-2.svg"); --hl: url("/assets/img/strokes/swipe-2.svg"); }
:is(.btn-row, .c-cta) > .btn.btn-ghost:nth-child(3) { --mk: url("/assets/img/strokes/underline-3.svg"); --hl: url("/assets/img/strokes/swipe-3.svg"); }
@media (prefers-reduced-motion: reduce) {
  .btn, .btn::after, .btn:hover::after, .btn:is(:focus-visible, :active)::after { transition: none !important; }
}
@media (forced-colors: active) {
  .btn::before, .btn::after { display: none; }
  .btn { border: 2px solid ButtonText; color: ButtonText; background: ButtonFace; forced-color-adjust: none; }
  .btn:is(:hover, :focus-visible) { border-color: Highlight; color: Highlight; }
}
.btn-row { display: flex; flex-wrap: wrap; gap: 14px 22px; }

/* Words that light up with the scroll. Fully readable without JS / reduced motion. */
.lit .w { transition: color .25s; }
.js-motion .lit .w { color: var(--dim); }
.js-motion .lit .w.on { color: var(--ink); }

/* 7. Home ------------------------------------------------------ */
.home-hero {
  min-height: calc(100svh - var(--header-h) - 40px);
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
  padding: 56px var(--pad) 64px;
}
.home-hero .eyebrow { font-size: 15px; font-weight: 600; color: var(--mute); }
.hero-h1 { max-width: 13.5ch; }
.h1-swap { white-space: nowrap; }
/* The yellow bar under the swap word: an irregular marker line (same place and
   thickness as the straight bar it replaces) */
.h1-word { background: url("/assets/img/strokes/marker-line-y.svg") 0 90% / 100% .14em no-repeat; padding-bottom: .02em; }
.js .h1-swap { cursor: pointer; }
.h1-word.is-in { animation: h1-in .45s var(--ease) both; }
/* When the longest word has to start a new line, every word starts it (site.js):
   a short word never jumps up to the line above */
.h1-break .h1-swap::before { content: "\A"; white-space: pre; }
@keyframes h1-in { from { opacity: .01; transform: translateY(.18em); } }
.h1-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 15px; color: var(--mute); }
.home-hero .value { max-width: 48ch; color: var(--mute); font-size: 19px; }
.hero-in { animation: hero-in .8s var(--ease) both; }
.hero-in:nth-child(2) { animation-delay: .08s; }
.hero-in:nth-child(3) { animation-delay: .16s; }
.hero-in:nth-child(4) { animation-delay: .24s; }
@keyframes hero-in { from { opacity: .01; transform: translateY(14px); } }

.scene { min-height: 150vh; padding: 14vh var(--pad); border-top: 1px solid var(--line); }
.scene-pin { position: sticky; top: calc(30vh - 44px); }

.home-offers { padding: 104px var(--pad) 88px; border-top: 1px solid var(--line); }
.home-offers .after { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; font-size: 15px; color: var(--mute); }

/* Projects rail. Default: native horizontal scroller with scroll-snap.
   Wide screens with motion allowed: pinned + translateX (site.js), with a short
   vertical distance per card. Never hijacks the wheel. */
.rail { border-top: 1px solid var(--line); overflow-x: clip; }
.rail-sticky { padding: 40px 0 44px; }
.rail-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 var(--pad); margin-bottom: 24px; }
.rail-head .h2 { margin: 0; }
.rail-note { margin: 0; font-size: 15px; color: var(--mute); flex-basis: 100%; order: 3; }
.rail-track { list-style: none; margin: 0; padding: 0 var(--pad) 8px; display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.rail-item { position: relative; flex: 0 0 min(80vw, 820px); scroll-snap-align: start; }
.rail-card { display: block; text-decoration: none; color: inherit; }
.rail-media { position: relative; aspect-ratio: 16 / 10; background: var(--bg-2); overflow: hidden; }
.rail-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.rail-card:hover .rail-media img { transform: scale(1.025); }
.rail-cap { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 4px 16px; padding-top: 14px; align-items: baseline; }
.rail-num { color: var(--mute); font-weight: 600; font-size: 14px; }
.rail-title { font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.rail-meta { grid-column: 2; color: var(--mute); font-size: 15px; }
.rail-go { grid-column: 3; grid-row: 1; font-weight: 600; font-size: 15px; white-space: nowrap; }
/* Key words in the case studies' "Le détail": marked with the yellow
   highlighter (decorative emphasis, the text is unchanged). Ink on yellow 15:1. */
.case-detail-body mark {
  color: var(--on-y); background: url("/assets/img/strokes/swipe-y-2.svg") no-repeat 0 50% / 100% 100%;
  padding: 0 .12em; margin: 0 -.04em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.case-detail-body mark:nth-of-type(3n+2) { background-image: url("/assets/img/strokes/swipe-y-3.svg"); }
.case-detail-body mark:nth-of-type(3n) { background-image: url("/assets/img/strokes/swipe-y-1.svg"); }
@media (forced-colors: active) { .case-detail-body mark { background: Mark; color: MarkText; forced-color-adjust: none; } }
.rail-title { justify-self: start; }   /* the stroke spans the title, not the whole cell */
.rail-card:is(:hover, :focus-visible) .rail-title { --mk-u: var(--mk-y); --mk-h: .3em; background-size: 100% var(--mk-h); }
.rail-item--all { flex-basis: min(60vw, 520px); }
.rail-all {
  display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 16 / 10;
  padding: 28px; background: var(--ink); color: var(--bg); text-decoration: none;
  font-size: clamp(28px, 3vw, 44px); font-weight: 800; letter-spacing: -.035em; line-height: 1;
}
.rail-all .arrow { font-size: 1.4em; transition: transform .3s var(--ease); }
.rail-all:hover { background: var(--y); color: var(--on-y); }
.rail-all:hover .arrow { transform: translateX(10px); }
.rail.is-pinned .rail-sticky { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow: clip; display: flex; flex-direction: column; justify-content: safe center; }
/* Pinned: cards are sized by the screen height too, so the heading never gets
   clipped under the header on short screens (16:10 image + ~200 px of text). */
.rail.is-pinned .rail-track { overflow: visible; scroll-snap-type: none; will-change: transform; }
.rail.is-pinned .rail-item { flex-basis: min(62vw, 980px, calc((100vh - var(--header-h) - 250px) * 1.6)); }
.rail.is-pinned .rail-item--all { flex-basis: min(60vw, 520px, calc((100vh - var(--header-h) - 250px) * 1.6)); }

.home-contact { padding: 112px var(--pad); border-top: 1px solid var(--line); }
.home-contact .display { margin-bottom: 20px; }
.home-contact .lead { margin-bottom: 28px; }

/* 8. Offer rows ------------------------------------------------ */
.olist { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--line-strong); }
.orow { position: relative; border-bottom: 1.5px solid var(--line-strong); }
.orow-head {
  display: grid; grid-template-columns: 56px minmax(0, 1.25fr) minmax(0, 1.35fr) minmax(0, .8fr) 28px;
  gap: 20px; align-items: baseline; padding: 22px 12px;
  transition: padding .3s var(--ease), background .2s;
}
.o-num { color: var(--mute); font-size: 14px; font-weight: 600; }
.o-title { font-size: clamp(20px, 1.9vw, 27px); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.o-badge { display: block; font-size: 14px; font-weight: 700; margin-top: 4px; letter-spacing: 0; }
.o-short { color: var(--mute); font-size: 16px; }
.o-price { text-align: right; font-weight: 700; white-space: nowrap; font-size: 18px; }
.o-price small { display: block; font-weight: 400; font-size: 13px; color: var(--mute); }
.o-arrow { text-align: right; font-size: 20px; transition: transform .3s var(--ease); }
a.orow-head { text-decoration: none; color: inherit; }
a.orow-head:hover, summary.orow-head:hover { padding-left: 24px; }
a.orow-head:hover .o-arrow { transform: translateX(6px); }
.orow.is-featured { background: var(--y); }
.orow.is-featured :is(.o-num, .o-short, .o-price small) { color: #3d3a00; }
.orow.is-featured .o-title, .orow.is-featured .o-price { color: var(--on-y); }

/* /services/: <details> rows, "Inclus" opens below */
details.orow > summary { list-style: none; cursor: pointer; }
details.orow > summary::-webkit-details-marker { display: none; }
details.orow .o-arrow::before { content: "+"; display: inline-block; transition: transform .25s var(--ease); }
details.orow[open] .o-arrow::before { transform: rotate(45deg); }
.orow-body { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 20px; padding: 4px 12px 28px; }
.orow-body dl { grid-column: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 32px; }
.orow-body dt { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.orow-body dd { margin: 0; font-size: 16px; }
.orow-body ul { list-style: none; display: grid; gap: 4px; }
.orow-body li::before { content: "· "; color: var(--mute); }
.orow.is-featured .orow-body li::before { color: #3d3a00; }
.orow-cta { grid-column: 3; align-self: end; }
/* On the yellow card a yellow highlight would be invisible: the stroke is dark and the highlight cream */
.orow.is-featured .btn { --stroke: var(--on-y); --fg: var(--y); --glow: var(--bg); --fg-on: var(--ink); }

/* 9. Services -------------------------------------------------- */
.svc-block { padding: 72px var(--pad) 24px; }
.svc-block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.svc-block-head h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -.03em; }
.svc-block-head p { color: var(--mute); }
.process { list-style: none; margin: 0; padding: 0; }
.process li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; align-items: baseline; padding: 32px 0; border-top: 1px solid var(--line); }
.process li:last-child { border-bottom: 1px solid var(--line); }
.process-n { font-size: clamp(36px, 4vw, 56px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.process p { font-size: clamp(20px, 2vw, 28px); line-height: 1.3; letter-spacing: -.01em; max-width: 36ch; }
.svc-end { padding: 96px var(--pad); border-top: 1px solid var(--line); }
.svc-end p { margin: 0 0 28px; }
.vat-note { padding: 0 var(--pad) 48px; color: var(--mute); font-size: 14px; }

/* 10. Projects page and locked projects ------------------------ */
.plist { list-style: none; margin: 0; padding: 0 var(--pad) 96px; }
.prow { position: relative; display: grid; grid-template-columns: clamp(240px, 22vw, 340px) minmax(0, 1fr) minmax(0, 1.4fr) 64px; gap: 28px; align-items: center; padding: 24px 0; border-top: 1px solid var(--line-strong); }
.plist .prow:last-child { border-bottom: 1px solid var(--line-strong); }
.prow-media { aspect-ratio: 16 / 10; background: var(--bg-2); overflow: hidden; }
.prow-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.prow-title { font-size: clamp(24px, 2.6vw, 36px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.prow-title a { text-decoration: none; }
.prow-title a::after { content: ""; position: absolute; inset: 0; }
.prow-meta { display: block; margin-top: 6px; font-size: 15px; color: var(--mute); }
.prow-desc { color: var(--mute); font-size: 16px; }
.prow-year { text-align: right; font-weight: 600; color: var(--mute); }
.prow:hover .prow-media img { transform: scale(1.03); }
.prow:is(:hover, :focus-within) .prow-title a { --mk-u: var(--mk-y); --mk-h: .3em; background-size: 100% var(--mk-h); }
.prow:focus-within { outline: 3px solid var(--ink); outline-offset: 4px; }
.prow:focus-within a:focus-visible { outline: none; box-shadow: none; }

.lock-media { display: grid; place-items: center; aspect-ratio: 16 / 10; background: repeating-linear-gradient(135deg, var(--bg-2) 0 14px, var(--bg) 14px 28px); color: var(--ink); }
.lock-media svg { width: 44px; height: 44px; }
/* "Bientôt / Coming soon" cards: neutral block, no link, no hover */
.soon-media { display: grid; place-items: end start; aspect-ratio: 16 / 10; background: var(--bg-2); padding: clamp(12px, 3%, 32px); overflow: hidden; container-type: inline-size; }
.soon-word { font-size: clamp(20px, 13cqi, 140px); font-weight: 800; line-height: .9; letter-spacing: -.04em; color: var(--mute); overflow-wrap: anywhere; }
.rail-card.is-soon { cursor: default; }
.rail-card.is-soon .rail-title, .prow.is-soon .prow-title { color: var(--mute); text-decoration: none; background-size: 0 0; }
.soon-tag { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.prow.is-soon:hover .prow-title { text-decoration: none; }
/* /projets/ below 1024 px: cards with the image on top, full width
   (two columns on tablets, one on phones) */
@media (max-width: 1023px) {
  .plist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
  .prow { grid-template-columns: minmax(0, 1fr); gap: 10px; align-items: start; align-content: start; padding: 0; border-top: 0; }
  .plist .prow:last-child { border-bottom: 0; }
  .prow-media { margin-bottom: 6px; }
  .prow-desc { font-size: 15px; }
  .prow-year { text-align: left; font-size: 14px; }
}
@media (max-width: 600px) {
  .plist { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
.lock-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.lock-label svg { width: 16px; height: 16px; flex: none; }

/* 11. About and timeline --------------------------------------- */
.about-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 56px; align-items: start; padding: 32px var(--pad) 96px; }
.about-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-story { display: grid; gap: 16px; max-width: 60ch; color: var(--mute); margin-top: 40px; }
.about-story strong { color: var(--ink); }
.about-story a { color: var(--ink); text-underline-offset: 3px; }
.about-ai { max-width: 60ch; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }

.tl { position: relative; padding: 0 0 0 56px; }
.tl-list { list-style: none; margin: 0; padding: 0; }
.tl::before, .tl-progress { content: ""; position: absolute; left: 11px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.tl-progress { background: var(--ink); transform-origin: top; transform: scaleY(1); }
.js-motion .tl-progress { transform: scaleY(var(--tl-p, 0)); }
.tl-item { position: relative; display: grid; grid-template-columns: minmax(180px, .9fr) minmax(0, 2fr); gap: 8px 40px; padding: 32px 0; transition: opacity .4s; }
.tl-item::before { content: ""; position: absolute; left: -51px; top: 52px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--ink); transition: background .3s; }
.tl-year { font-size: clamp(40px, 5.6vw, 84px); font-weight: 800; letter-spacing: -.05em; line-height: .95; }
.tl-title { font-size: clamp(20px, 1.9vw, 26px); font-weight: 600; letter-spacing: -.015em; line-height: 1.2; margin-bottom: 6px; }
.tl-text { color: var(--mute); }
.js-motion .tl-item { opacity: .32; }
.js-motion .tl-item.is-lit { opacity: 1; }
.tl-item.is-lit::before { background: var(--y); }
.facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px 56px; }
.facts h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.skills { display: grid; gap: 14px; }
.skills p { color: var(--mute); }
.skills strong { color: var(--ink); display: block; font-size: 15px; }

/* 12. Contact form --------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 56px; padding: 16px var(--pad) 112px; }
.contact-info { display: grid; gap: 20px; align-content: start; }
.contact-info .copy-email { font-size: clamp(20px, 2.2vw, 28px); font-weight: 600; letter-spacing: -.015em; }
.contact-grid.is-mail-only .contact-info .copy-email { font-size: clamp(24px, 3.4vw, 44px); }
.contact-grid.is-mail-only { grid-template-columns: minmax(0, 1fr); }
.contact-grid.is-mail-only .form-privacy { max-width: 60ch; color: var(--mute); font-size: 15px; }
.contact-form { display: grid; gap: 22px; }
.form-note { font-size: 14px; color: var(--mute); }
.form-group { display: grid; gap: 6px; }
.form-group label { font-size: 15px; font-weight: 600; }
.form-group :is(input, select, textarea) {
  width: 100%; font: 400 17px/1.4 var(--font); color: var(--ink); background: transparent;
  border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0; padding: 10px 0;
}
.form-group select { appearance: auto; }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group :is(input, select, textarea):focus-visible { outline: none; box-shadow: 0 3px 0 0 var(--y); border-bottom-color: var(--ink); }
.form-group [aria-invalid="true"] { border-bottom-color: #a1260d; }
.form-error { color: #a1260d; font-size: 15px; font-weight: 500; }
.form-status { font-size: 16px; }
.form-status:empty { display: none; }
.form-status--success, .form-status--error { padding: 14px 16px; border: 1.5px solid var(--ink); }
.form-status--success { background: var(--y); }
.form-status a { text-underline-offset: 3px; }
.form-privacy { font-size: 14px; color: var(--mute); }
.contact-form .btn { justify-self: start; }

/* 13. Legal page, 404, redirects ------------------------------- */
.legal { padding: 24px var(--pad) 96px; max-width: calc(760px + 2 * var(--pad)); }
.legal h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 40px 0 12px; }
.legal p { margin: 0 0 14px; }
.legal a { text-underline-offset: 3px; }
.e404 { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 64px var(--pad); }
.e404 .num { font-size: clamp(96px, 22vw, 260px); font-weight: 800; letter-spacing: -.06em; line-height: .8; }

/* 14. Case-study includes (_includes/case/), for future projects */
.case-fig { margin: 0 0 48px; }
.case-fig img, .case-fig video { width: 100%; height: auto; display: block; }
.case-fig > figcaption { font-size: 15px; color: var(--mute); padding-top: 10px; max-width: 60ch; }
.case-fig.is-bleed { margin-inline: calc(50% - 50vw); }
.case-fig.is-bleed figcaption { padding-inline: var(--pad); }
.case-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 0 0 48px; }
.case-pair .case-fig { margin: 0; }
.case-pair.is-contain .case-fig img { aspect-ratio: var(--pair-ratio, 3 / 2); height: auto; object-fit: contain; object-position: center; }
/* Two equal blocks side by side (e.g. palette + type), each centred in its half; stacked on phones */
.case-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); align-items: center; }
.case-duo > div { min-width: 0; display: grid; justify-items: center; }
.case-duo > div > * { width: 100%; margin: 0; }
.case-duo .case-palette { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
.case-duo .case-typescale-row { grid-template-columns: 1fr; }
.case-duo .case-typescale-row.is-title .case-typescale-sample { font-size: clamp(36px, 4.4vw, 64px); }
@media (max-width: 767px) { .case-duo { grid-template-columns: 1fr; } }
/* figure.float: cut-outs on a transparent background. No frame or background;
   drop-shadow follows the shape of the object, so it seems to float. */
.case-fig.float, .case-fig.float .zoom-trigger { background: none; border: 0; }
.case-fig.float img { width: auto; max-width: min(100%, 900px); margin: 0 auto; filter: drop-shadow(0 22px 28px rgba(21, 21, 20, .18)) drop-shadow(0 4px 8px rgba(21, 21, 20, .10)); }
.case-fig.float > figcaption { text-align: center; margin-inline: auto; }
.case-video { position: relative; }
.case-video-box { position: relative; margin: 0 auto; max-height: 80vh; }
.case-video video { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--bg-2); }
.case-palette { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 220px)); justify-content: center; gap: clamp(12px, 2vw, 32px); margin: 0 0 48px; list-style: none; padding: 0; max-width: none; }
/* Separate squares, name and hex underneath */
.case-swatch { min-width: 0; }
.case-swatch-color { aspect-ratio: 1 / 1; box-shadow: inset 0 0 0 1px var(--line); }
.case-swatch p { padding: 10px 0 0; font-size: 14px; display: grid; gap: 2px; }
.case-swatch code { font-family: ui-monospace, monospace; font-size: 13px; color: var(--mute); }
.case-type { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; margin: 0 0 48px; }
.case-type > p.case-type-sample { margin: 0; font-size: clamp(48px, 8vw, 120px); line-height: 1; letter-spacing: -.02em; overflow-wrap: anywhere; }
.case-type-meta { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 15px; color: var(--mute); margin-top: 16px; }
.case-logos { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 320px)); justify-content: center; gap: clamp(12px, 2vw, 24px); margin: 0 0 48px; list-style: none; padding: 0; }
.case-logo { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; aspect-ratio: 1 / 1; padding: 14%; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.case-logo.on-dark { background: #151514; }
.case-logo.on-accent { background: var(--y); }
.case-logo img { width: calc(100% * var(--s, 1)); height: calc(100% * var(--s, 1)); object-fit: contain; }
.case-logos > li { min-width: 0; }
.case-logo.is-full { padding: 0; overflow: hidden; }
.case-logo.is-full img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.case-logo-cap { font-size: 14px; color: var(--mute); margin-top: 8px; }
/* Palette as full-width stripes, typography as a live hierarchy (BEDiZEN) */
.case-stripes { list-style: none; padding: 0; margin: 0; display: grid; }
.case-stripes li { box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; padding: clamp(22px, 3.5vw, 40px) clamp(16px, 3vw, 32px); font-size: 15px; }
.case-stripes li strong { font-size: clamp(18px, 2vw, 22px); }
.case-stripes code { font-family: ui-monospace, monospace; font-size: 14px; }
.case-stripes span { margin-left: auto; }
.case-typescale { border-top: 1px solid var(--line); }
.case-typescale-row { display: grid; grid-template-columns: minmax(150px, 240px) 1fr; gap: 8px 32px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--line); }
.case-typescale-meta { margin: 0; display: grid; gap: 2px; font-size: 13px; color: var(--mute); }
.case-typescale-sample { margin: 0; line-height: 1.1; overflow-wrap: anywhere; }
.case-typescale-row.is-title .case-typescale-sample { font-size: clamp(40px, 6vw, 80px); letter-spacing: -.01em; }
.case-typescale-row.is-subtitle .case-typescale-sample { font-size: clamp(26px, 3.2vw, 40px); }
.case-typescale-row.is-text .case-typescale-sample { font-size: 18px; line-height: 1.6; }
@media (max-width: 600px) { .case-typescale-row { grid-template-columns: 1fr; } .case-stripes span { margin-left: 0; flex-basis: 100%; } }
.case-row-items { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: clamp(8px, 2vw, 24px); }
.case-row-items .case-shot { aspect-ratio: var(--ar, 9 / 16); overflow: hidden; background: var(--bg-2); }
.case-row-items .zoom-trigger { height: 100%; }
.case-row-items img, .case-row-items video { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-row-title { margin: 0 0 12px; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.case-row .row-tag { display: inline-block; margin: 0 0 10px; font-size: 13px; font-weight: 700; line-height: 1; padding: 6px 9px; background: var(--ink); color: var(--bg); }

/* Lightbox (zoom.js) on layout C pages */
body:not(.is-legacy) .lightbox { display: none; position: fixed; inset: 0; z-index: 10000; background: rgba(12, 12, 11, .96); justify-content: center; align-items: center; flex-direction: column; }
body:not(.is-legacy) .lightbox.active { display: flex; }
body:not(.is-legacy) .lightbox[hidden], body:not(.is-legacy) .lightbox [hidden] { display: none; }
body:not(.is-legacy) .lightbox-content { max-width: 90vw; max-height: 80vh; object-fit: contain; }
body:not(.is-legacy) .lightbox button { position: absolute; background: none; border: 0; color: #f2f0ea; font: 400 32px/1 var(--font); min-width: 44px; min-height: 44px; cursor: pointer; }
body:not(.is-legacy) .lightbox button:hover, body:not(.is-legacy) .lightbox button:focus-visible { color: var(--y); }
body:not(.is-legacy) .lightbox-close { top: 16px; right: 20px; font-size: 40px; }
body:not(.is-legacy) .lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
body:not(.is-legacy) .lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }
body:not(.is-legacy) .lightbox-caption { margin-top: 14px; color: #c3bfb3; font-size: 15px; padding: 0 60px; text-align: center; }
.case-c .zoom-trigger { display: block; cursor: zoom-in; }
.case-row-items .zoom-trigger { min-width: 0; }
/* Before / after label in a corner of a screenshot (row.html, figure.html tag=) */
.case-shot { position: relative; min-width: 0; }
.shot-tag { position: absolute; top: 8px; left: 8px; z-index: 1; font-size: 13px; font-weight: 700; line-height: 1; padding: 6px 9px; background: var(--bg); color: var(--ink); border: 1px solid var(--ink); pointer-events: none; }
.case-shot.is-figma .shot-tag, .case-shot.is-kbfigma .shot-tag { background: var(--ink); color: var(--bg); }
@media (max-width: 767px) {
  .case-row-items .shot-tag { top: 4px; left: 4px; font-size: 10px; padding: 4px 5px; }
  .case-row.n-4 .case-row-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-palette { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.case-shot.is-after .shot-tag { background: var(--ink); color: var(--y); } /* 15:1, same as .case-tag.is-new */

/* Layout C "Gallery with captions" (front matter case_layout: c) */
.case-c { overflow-x: clip; padding-bottom: 0; }
.case-c-wrap { padding-inline: var(--pad); }  /* no max-width here: --pad already centres (the old max-width + margin doubled the margin) */
.case-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 28px 0 0; margin: 0; font-size: 14px; color: var(--mute); }
.case-crumbs li + li::before { content: "/"; margin-right: 6px; }
.case-crumbs a { color: var(--ink); }
.c-title { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: end; padding: clamp(32px, 6vw, 72px) 0 32px; }
.c-summary { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.25; font-weight: 600; letter-spacing: -.01em; max-width: 30ch; }
.c-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.c-meta div { padding: 14px 16px 18px 0; font-size: 15px; }
.c-meta dt { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }
.c-meta dd { margin: 0; }
.c-hero { margin-top: clamp(32px, 5vw, 56px); background: var(--bg-2); }
/* The hero may be wider than the container (up to 1920 px) and is never cropped:
   the whole image shows, centred, at most 86vh tall. */
.c-hero img { display: block; width: auto; max-width: min(100%, 1920px); height: auto; max-height: 86vh; margin: 0 auto; }
.c-hero.is-art { padding: clamp(48px, 9vw, 120px) var(--pad); }
.c-hero.is-art img { width: min(100%, var(--art-w), var(--art-max, 720px)); max-height: none; margin: 0 auto; object-fit: contain; }
.c-hero-video { display: block; width: 100%; max-width: 1920px; height: auto; max-height: 80vh; margin: 0 auto; object-fit: contain; }
.c-hero-note, .c-body > .c-note { font-size: 14px; color: var(--mute); }
.c-hero-note { margin: 0; padding: 10px var(--pad); text-align: center; background: var(--bg); }
.c-body > .c-note { margin: calc(-1 * clamp(40px, 6vw, 84px)) 0 clamp(56px, 8vw, 100px); }
.c-hero-tagline { margin: 0 auto clamp(16px, 2.5vw, 28px); text-align: center; font-size: clamp(18px, 2.4vw, 30px); font-weight: 400; letter-spacing: .01em; color: #000; }
/* Document carousel (zoom.js) on layout C */
.case-c .document-carousel-container { display: flex; align-items: center; gap: 16px; margin: 0 0 clamp(56px, 8vw, 100px); position: relative; }
.case-c .document-carousel { flex: 1; min-width: 0; }
.case-c .carousel-slide { display: none; width: 100%; height: auto; }
.case-c .carousel-slide.active-slide { display: block; }
.case-c .carousel-btn { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 600 18px/1 var(--font); cursor: pointer; }
.case-c .carousel-btn:hover, .case-c .carousel-btn:focus-visible { background: var(--y); border-color: var(--y); }
.case-c .carousel-counter { position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%); font-size: 14px; color: var(--mute); }
.case-c .carousel-slide[role="button"] { cursor: zoom-in; }
html.no-js .case-c .carousel-slide { display: block; margin-bottom: 12px; }
html.no-js .case-c .carousel-btn, html.no-js .case-c .carousel-counter { display: none; }
.case-c .video-duo { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(16px, 3vw, 32px); align-items: start; margin: 0 0 clamp(56px, 8vw, 100px); }
.case-c .video-duo-item h3 { font-size: 16px; font-weight: 700; margin: 0 0 10px; }
.case-c .video-frame { position: relative; z-index: 0; isolation: isolate; background: #151514; }  /* own stacking context: the iframe never paints over the sticky header */
.case-c .video-frame.ratio-16-9 { aspect-ratio: 16 / 9; }
.case-c .video-frame.ratio-9-16 { aspect-ratio: 9 / 16; max-width: 360px; }
.case-c .video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vimeo-facade { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 24px; background: #151514; color: #F2F1F0; text-decoration: none; }
.vimeo-logo { width: min(60%, 240px); height: auto; }
.vimeo-play { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid #F2F1F0; font-weight: 700; font-size: 15px; }
.vimeo-icon { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent currentColor; }
.vimeo-facade:hover .vimeo-play, .vimeo-facade:focus-visible .vimeo-play { background: #F2F1F0; color: #151514; }
.vimeo-facade:focus-visible { outline: 3px solid var(--y, #FFD400); outline-offset: -3px; }
.c-body > .c-hero-cap { font-size: 16px; margin: calc(-1 * clamp(40px, 6vw, 90px)) 0 clamp(56px, 8vw, 100px); }
.c-body { padding-top: clamp(56px, 8vw, 110px); }
.c-body > .case-fig, .c-body > .case-compare-wrap, .c-body > .case-pair, .c-body > .case-palette, .c-body > .case-type, .c-body > .case-logos, .c-body > .case-stripes, .c-body > .case-typescale, .c-body > .case-duo { margin-bottom: clamp(56px, 8vw, 100px); }
.c-body .case-fig > figcaption { font-size: 16px; color: var(--ink); max-width: 52ch; }
.c-body > h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.1; font-weight: 750; letter-spacing: -.02em; margin: 0 0 24px; }
.c-body > h2:not(:first-child) { margin-top: clamp(40px, 6vw, 80px); }
.c-body > h3 { font-size: 20px; font-weight: 700; margin: 0 0 12px; }
.c-body > p { max-width: 68ch; margin: 0 0 20px; }
.c-body .case-detail-body { max-width: none; gap: 18px; }
.c-body .case-detail-body > p, .c-body .case-detail-body > ul { max-width: 64ch; }
.c-body .case-detail-body h3 { font-size: 20px; font-weight: 700; margin-top: 18px; }
.c-body .case-detail-body h4 { font-size: 16px; font-weight: 700; margin-top: 8px; }
.c-body .case-detail-body .case-fig, .c-body .case-detail-body .case-pair { margin-bottom: 8px; }
.c-body .case-detail-body .case-fig > figcaption { font-size: 14px; color: var(--mute); }
.c-narrow { max-width: 320px; }
.case-fig.is-narrow { max-width: 560px; margin-inline: auto; }
.c-poster { max-width: 640px; margin-inline: auto; }
.c-poster img { width: 100%; height: auto; }
.c-body > .c-cta { margin: 0 0 clamp(56px, 8vw, 100px); }
.c-cta { display: flex; flex-wrap: wrap; gap: 14px 22px; }
/* Bento gallery (case/bento.html) */
.case-bento { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(80px, 13vw, 200px); grid-auto-flow: dense; gap: 8px; }
.c-body > .case-bento { margin: 0 0 clamp(56px, 8vw, 100px); }
.case-bento > li { grid-column: span var(--c, 2); grid-row: span var(--r, 3); min-width: 0; }
.case-bento figure { height: 100%; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.case-bento .zoom-trigger { flex: 1; min-height: 0; overflow: hidden; }
.case-bento img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-bento figcaption { font-size: 14px; color: var(--mute); }
@media (max-width: 767px) { .case-bento { grid-template-columns: 1fr; grid-auto-rows: auto; } .case-bento > li { grid-column: auto; grid-row: auto; } .case-bento img { height: auto; } }
.c-refs { list-style: none; padding: 0; display: grid; gap: 16px; max-width: 75ch; }
.c-body > .c-refs { margin: 0 0 clamp(56px, 8vw, 100px); }
.c-refs li { padding-left: 18px; border-left: 3px solid var(--ink); }
/* Cinéville process (replaces the 19-slide carousel): numbered steps */
.c-body > .cv-flow-wrap { margin: 0 0 clamp(56px, 8vw, 100px); }
.cv-flow { list-style: none; padding: 0; margin: 24px 0 0; counter-reset: cv; display: grid; }
.cv-step { counter-increment: cv; display: grid; grid-template-columns: minmax(160px, 280px) minmax(0, 1fr); gap: 12px clamp(20px, 4vw, 56px); padding: clamp(24px, 3.5vw, 40px) 0; border-top: 1px solid var(--line-strong); }
.cv-step > h3 { grid-column: 1; grid-row: 1 / span 3; margin: 0; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.15; font-weight: 750; }
.cv-step > h3::before { content: counter(cv, decimal-leading-zero); display: block; font-size: 14px; font-weight: 600; color: var(--mute); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.cv-step > :not(h3) { grid-column: 2; min-width: 0; margin: 0; }
.cv-step-body p { max-width: 68ch; }
.cv-step-body p + p { margin-top: 12px; }
.cv-step .case-palette, .cv-step .case-fig, .cv-step .c-refs { margin: 0; }
.cv-codes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.cv-codes li { padding: 14px 16px; background: var(--bg-2); font-size: 15px; }
.cv-codes strong { display: block; margin-bottom: 4px; }
.cv-type { display: grid; gap: 0; margin: 0; }
.cv-type > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 24px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cv-type dt { font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; letter-spacing: -.01em; }
.cv-type dd { margin: 0; color: var(--mute); font-size: 15px; }
.cv-step > .cv-full { grid-column: 1 / -1; display: grid; gap: 16px; }
.cv-step > .cv-full .case-fig, .cv-step > .cv-full .case-pair { margin: 0; }
.cv-step > .c-poster.cv-full { display: block; width: 100%; max-width: 640px; justify-self: center; }
.cv-step-body h4 { margin: 0 0 8px; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }
.cv-step-body ul:not(.case-palette) { margin: 0; padding-left: 1.2em; max-width: 68ch; }
.cv-type-text dd { color: var(--ink); max-width: 52ch; }
.cv-refcards { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.cv-refcards > li { display: grid; grid-template-columns: minmax(120px, 220px) minmax(0, 1fr); gap: 16px clamp(16px, 3vw, 32px); align-items: center; padding: 16px; background: var(--bg-2); }
.cv-refcards img { width: 100%; height: auto; max-height: 260px; object-fit: contain; display: block; }
.cv-refcards p { margin: 0; max-width: 62ch; }
.cv-refcards p + p { margin-top: 10px; }
.cv-ref-title { font-weight: 700; }
@media (max-width: 767px) { .cv-refcards > li { grid-template-columns: 1fr; } .cv-step > .cv-full { grid-column: 1; } }
@media (max-width: 767px) { .cv-step { grid-template-columns: 1fr; } .cv-step > h3, .cv-step > :not(h3) { grid-column: 1; grid-row: auto; } }
.c-closing { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; line-height: 1.2; border-left: 4px solid var(--y); padding-left: 18px; }
.c-next { display: block; text-decoration: none; background: var(--ink); color: var(--bg); padding: clamp(48px, 8vw, 96px) var(--pad); margin-top: clamp(40px, 6vw, 72px); }
.c-next-label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #c3bfb3; }
.c-next-title { display: block; font-size: clamp(40px, 7vw, 96px); font-weight: 800; letter-spacing: -.04em; line-height: 1; margin-top: 8px; }
.c-next-title span { display: inline-block; transition: transform .25s var(--ease); }
.c-next:hover .c-next-title span, .c-next:focus-visible .c-next-title span { transform: translateX(10px); }
.c-back { padding-block: 28px 0; font-size: 15px; }
.case-quote { margin: 0 0 48px; padding-left: 24px; border-left: 4px solid var(--y); }
.case-quote > p { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.25; letter-spacing: -.015em; font-weight: 600; }
.case-quote footer { font-size: 15px; color: var(--mute); margin-top: 10px; }
.case-compare-wrap { margin: 0 0 48px; }
.case-compare-title { font-size: clamp(26px, 3vw, 38px); line-height: 1.1; font-weight: 750; letter-spacing: -.02em; margin: 0 0 20px; }
.case-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.case-compare > div { border-top: 2px solid var(--line-strong); padding-top: 14px; }
.case-compare h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.case-compare p, .case-compare li { max-width: 52ch; }
.case-compare ul { padding-left: 18px; margin: 8px 0 0; }
.case-tag { font-size: 13px; font-weight: 600; padding: 2px 8px; border: 1px solid var(--line-strong); }
.case-tag.is-new { background: var(--ink); color: var(--y); border-color: var(--ink); } /* 15:1 */
.case-detail { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 0 48px; }
.case-detail > summary { cursor: pointer; padding: 18px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
.case-detail > summary::-webkit-details-marker { display: none; }
.case-detail > summary::after { content: "+"; font-size: 22px; line-height: 1; transition: transform .25s var(--ease); }
.case-detail[open] > summary::after { transform: rotate(45deg); }
.case-detail-body { padding: 0 0 24px; display: grid; gap: 14px; max-width: 64ch; }

/* 15. Small screens -------------------------------------------- */
@media (max-width: 860px) {
  :root { --header-h: 96px; }
  .site-header-inner { display: grid; grid-template-columns: 1fr auto; gap: 0 16px; padding-block: 10px 0; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; margin: 0; }
  .site-nav ul { gap: 4px 20px; flex-wrap: wrap; padding: 8px 0 10px; }
  .site-nav a { font-size: 15px; }
  .lang-pick { grid-column: 2; grid-row: 1; }
  body.is-legacy .site-header-inner { padding-block: 10px 0; }

  .home-hero { min-height: 0; padding-top: 48px; }
  /* Phones and tablets: no word reveal, no sticky (the sentence is simply shown) */
  .scene { min-height: 0; padding-block: 64px; }
  .scene-pin { position: static; }
  .js-motion .lit .w { color: var(--ink); transition: none; }
  .orow-head { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 6px 14px; padding-inline: 8px; }
  .o-short { grid-column: 2 / -1; grid-row: 2; }
  .o-arrow { grid-column: 3; grid-row: 1; display: none; }
  details.orow .o-arrow { display: block; grid-column: 3; grid-row: 2; align-self: end; }
  .orow-body { grid-template-columns: 1fr; padding-inline: 8px 8px; padding-left: 54px; }
  .orow-body dl { grid-column: 1; grid-template-columns: 1fr; }
  .orow-cta { grid-column: 1; justify-self: start; }
  .rail-item { flex-basis: 84vw; }
  .rail-item--all { flex-basis: 64vw; }
  .rail-cap { grid-template-columns: 32px minmax(0, 1fr); }
  .rail-go { display: none; }
  .about-top { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { max-width: 300px; }
  .tl { padding-left: 40px; }
  .tl-item { grid-template-columns: 1fr; gap: 6px; }
  .tl-item::before { left: -35px; top: 44px; }
  .facts { grid-template-columns: 1fr; gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .process li { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; }
  .case-pair, .case-compare, .c-title { grid-template-columns: 1fr; }
  .c-meta { grid-template-columns: 1fr 1fr; }
  .case-c .video-duo { grid-template-columns: 1fr; }
  .case-c .document-carousel-container { flex-wrap: wrap; }
  .case-c .document-carousel { order: 1; flex-basis: 100%; }
  .case-c .carousel-counter { order: 2; position: static; transform: none; width: 100%; text-align: center; }
  .case-c .prev-btn { order: 3; margin-right: auto; }
  .case-c .next-btn { order: 4; margin-left: auto; }
  .section, .home-offers, .home-contact, .svc-end { padding-block: 80px; }
}
@media (max-width: 380px) {
  .site-logo { font-size: 15px; }
  .site-nav ul { gap: 4px 14px; }
}

/* 16. Reduced motion ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .hero-in, .h1-word.is-in { animation: none; }
  .site-nav a, .lang-opt, .rail-title, .prow-title a, .link-arrow { transition: none; }
  .rail-media img, .prow-media img, .orow-head, .o-arrow, .tl-item { transition: none; }
}

/* Services FAQ (visible, plain text) */
.faq-list { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 860px; }
.faq-item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: clamp(19px, 2vw, 23px); line-height: 1.3; margin: 0 0 10px; }
.faq-item p, .faq-item li { color: var(--mute); max-width: 62ch; }
.faq-item ul { margin: 10px 0; padding-left: 1.2em; display: grid; gap: 4px; }
.faq-item p + p { margin-top: 8px; }
.faq-item a { color: var(--ink); text-underline-offset: 3px; }

/* Image carousel (_includes/case/carousel.html) */
.case-carousel { width: min(100%, 480px); margin: 0 auto; }
.cv-step > .case-carousel { margin: 0; justify-self: center; }
.cc-track { display: flex; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.js .cc-track { scrollbar-width: none; }
.js .cc-track::-webkit-scrollbar { display: none; }
.cc-track:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.cc-slide { flex: 0 0 100%; aspect-ratio: var(--ratio, 2 / 3); scroll-snap-align: start; background: var(--bg-2); display: grid; place-items: center; }
.cc-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cc-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.cc-ctrl[hidden] { display: none; }
.cc-btn { width: 44px; height: 44px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: inherit; font-size: 20px; cursor: pointer; }
.cc-btn:hover { background: var(--ink); color: var(--bg); }
.cc-dots { display: flex; gap: 4px; }
.cc-dot { width: 24px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; padding: 0; }
.cc-dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; border: 1.5px solid var(--ink); }
.cc-dot[aria-current]::before { background: var(--ink); }
.cc-btn:focus-visible, .cc-dot:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.case-credit { margin: 10px 0 0; font-size: 14px; color: var(--mute); text-align: center; }
/* Pair of an image and a video on white: same height (the video cell stretches, video centred) */
.case-pair.is-match { align-items: stretch; }
.case-pair.is-match > .case-video { display: grid; align-items: center; background: #fff; margin: 0; }
.case-pair.is-match .case-video-box { width: 100% !important; }
.case-pair.is-match .case-video video { background: #fff; }
