/* Vitruve V4 — editorial layer on top of style.css and design.css.
   Light stone and ink first; the dark theme only swaps tokens. */

:root{
  --header-h:80px;
  --clay:#9b4a33;
  --clay-soft:#e3cdc2;
  --stone:#e2e3dd;
  --night:#141713;
  --on-night:#eeefe9;
  --ease-expo:cubic-bezier(.16,1,.3,1);
  --ease-io:cubic-bezier(.65,0,.35,1);
  --logo-filter:none;
  --logo-blend:multiply;
  --gap:clamp(14px,1.6vw,26px);
}
:root[data-theme=dark]{--clay:#d98a6d;--clay-soft:#4a3128;--stone:#262b25;--night:#0e110d;--logo-filter:invert(1);--logo-blend:screen}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--clay:#d98a6d;--clay-soft:#4a3128;--stone:#262b25;--night:#0e110d;--logo-filter:invert(1);--logo-blend:screen}}

/* Smooth scrolling (Lenis) */
html.lenis,html.lenis body{height:auto}
.lenis:not(.lenis-autoToggle).lenis-stopped{overflow:clip}
.lenis [data-lenis-prevent]{overscroll-behavior:contain}
.lenis.lenis-smooth iframe{pointer-events:none}

/* Page transitions between documents; shared photos morph from card to hero. */
@view-transition{navigation:auto}
::view-transition-old(root){animation:vt-leave .35s ease both}
::view-transition-new(root){animation:vt-enter .45s ease both}
::view-transition-group(*){animation-duration:.8s;animation-timing-function:var(--ease-expo)}
::view-transition-old(*),::view-transition-new(*){height:100%;object-fit:cover;overflow:clip}
@keyframes vt-leave{to{opacity:0}}
@keyframes vt-enter{from{opacity:0}}

/* Header: fixed, hides on the way down, returns on the way up. */
.site-header{position:fixed!important;inset:0 0 auto!important;height:var(--header-h);z-index:60;border-bottom:1px solid transparent;transition:transform .7s var(--ease-expo),background-color .4s,color .4s,border-color .4s}
.site-header.is-hidden{transform:translateY(-102%)}
body:not(.has-overlay) main{padding-top:var(--header-h)}
.site-header:not(.header-overlay){background:color-mix(in srgb,var(--paper) 92%,transparent);backdrop-filter:blur(14px)}
.site-header.is-solid,.home .header-overlay.is-solid{background:color-mix(in srgb,var(--paper) 90%,transparent);backdrop-filter:blur(16px) saturate(1.15);color:var(--ink);border-bottom-color:var(--line)}
.site-header.is-solid .brand-logo,.home .header-overlay.is-solid .brand-logo{filter:var(--logo-filter);mix-blend-mode:var(--logo-blend)}
.header-overlay:not(.is-solid){color:#fff;background:linear-gradient(180deg,#0a0d09a6 0%,#0a0d0933 65%,transparent 100%)}
.header-overlay:not(.is-solid) .brand-logo{filter:brightness(0) invert(1);mix-blend-mode:normal}
.header-overlay:not(.is-solid) a:focus-visible,.header-overlay:not(.is-solid) button:focus-visible{outline-color:#fff}
.menu-open .site-header{transform:none;background:#202420;color:#eeefec}
.nav-contact{white-space:nowrap}

/* Split text: words brighten as the reader moves through the section. */
[data-split] .w{display:inline-block;white-space:pre}
.js-split [data-split] .w{opacity:.16}

.eyebrow{color:var(--muted)}
.display{text-wrap:balance}

/* ---------- Home ---------- */

.manifesto{padding-top:clamp(110px,14vw,210px);padding-bottom:clamp(90px,11vw,170px)}
.manifesto-label{margin-bottom:clamp(30px,4vw,56px)}
.manifesto-title{font-size:clamp(46px,8.2vw,150px);font-weight:500;line-height:.94;letter-spacing:-.065em;max-width:12.5ch;text-wrap:balance}
.manifesto-cols{display:grid;grid-template-columns:repeat(12,1fr);gap:var(--gap);margin-top:clamp(50px,7vw,110px);align-items:start}
.manifesto-cols p{font-size:clamp(17px,1.3vw,20px);line-height:1.5;color:var(--muted);max-width:44ch}
.manifesto-cols p:first-child{grid-column:5/9;color:var(--ink)}
.manifesto-cols p:nth-child(2){grid-column:9/13}
.manifesto-cols .text-link{grid-column:5/8;margin-top:10px}

.atlas{background:var(--paper);padding-top:clamp(90px,11vw,170px)}
.atlas-inner{display:grid;grid-template-columns:minmax(300px,.8fr) 1.2fr;gap:clamp(30px,5vw,90px);align-items:start}
.atlas-copy>p:not(.eyebrow){color:var(--muted);max-width:40ch;margin-top:26px}
.atlas-copy .eyebrow{margin-bottom:22px}
.atlas-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:clamp(34px,4vw,56px) 0;border-top:1px solid var(--line);padding-top:22px}
.atlas-stats div{display:flex;flex-direction:column-reverse;gap:6px}
.atlas-stats dd{margin:0;font-size:clamp(40px,4.2vw,72px);font-weight:500;letter-spacing:-.06em;line-height:.9;font-variant-numeric:tabular-nums}
.atlas-stats dt{font-size:12px;color:var(--muted)}
.atlas-lists{display:grid;grid-template-columns:1fr 1fr;gap:26px}
.atlas-lists>div:last-child{--where:10.5em}
.atlas-lists h3{font-size:12px;font-weight:400;color:var(--muted);margin-bottom:10px}
.atlas-list{list-style:none;margin:0;padding:0}
.atlas-list a{display:grid;grid-template-columns:var(--where,5.2em) 1fr;gap:10px;padding:9px 0;border-top:1px solid var(--line);font-size:14px;transition:color .25s,padding .5s var(--ease-expo)}
.atlas-where{color:var(--muted);font-variant-numeric:tabular-nums}
.atlas-list li.is-hot a,.atlas-list a:hover{color:var(--clay);padding-left:6px}
.atlas-maps{position:sticky;top:calc(var(--header-h) + 20px);display:grid}
.atlas-paris{margin:0}
.atlas-idf{margin:clamp(10px,2vw,30px) 0 0 auto;width:44%;position:relative}
.atlas-idf figcaption{font-size:12px;color:var(--muted);margin-top:6px;text-align:right}

/* Shared map styling (content comes from scripts/map.mjs). */
.map{display:block;width:100%;height:auto;overflow:visible}
.map-shape{fill:var(--stone);stroke:var(--paper);stroke-width:1.4;stroke-linejoin:round;transition:fill .6s}
.map-shape.is-active,.map-shape.is-lit{fill:color-mix(in srgb,var(--clay) 26%,var(--stone))}
.map-shape.is-hot{fill:var(--clay-soft)}
.case-map .map-shape.is-active{fill:var(--clay)}
.map-seine{pointer-events:none}
.map-seine-area{fill:color-mix(in srgb,var(--paper) 55%,#9fb3bd);stroke:none}
.map-seine-line{fill:none;stroke:color-mix(in srgb,var(--paper) 45%,#9fb3bd);stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
.map-label{font-family:var(--sans);font-size:17px;fill:var(--muted);text-anchor:middle;dominant-baseline:middle;pointer-events:none;letter-spacing:-.02em}
.map-dot-core{fill:var(--ink)}
.map-dot-halo{fill:var(--clay);opacity:.22}
.map-dot{transition:opacity .5s,transform .6s var(--ease-expo)}
.js-atlas .atlas .map-dot{opacity:0}
.js-atlas .atlas .map-dot.is-lit{opacity:1}
.map-dot.is-hot .map-dot-core{fill:var(--clay)}
.map-dot.is-hot .map-dot-halo{opacity:.5}
.atlas-idf .map-shape{stroke-width:2.5}

/* ---------- Portfolio ---------- */
.works-intro{padding-top:clamp(70px,9vw,140px);padding-bottom:clamp(40px,5vw,70px)}
.works-intro .eyebrow{margin-bottom:28px}
.works-title{font-size:clamp(56px,10vw,184px);font-weight:500;line-height:.9;letter-spacing:-.07em}
.works-intro-foot{display:grid;grid-template-columns:repeat(12,1fr);gap:var(--gap);margin-top:clamp(40px,5vw,70px);align-items:end}
.works-intro-foot p:first-child{grid-column:1/6;color:var(--muted);max-width:40ch}
.works-intro-count{grid-column:9/13;text-align:right;font-size:13px;color:var(--muted)}
.works-intro-count span{display:block;font-size:clamp(46px,5vw,86px);color:var(--ink);letter-spacing:-.06em;line-height:.9;font-weight:500}
.works{padding-top:0}
.works-bar{position:sticky;top:0;z-index:30;display:flex;gap:28px;align-items:center;justify-content:space-between;padding:18px 0;margin-bottom:clamp(30px,4vw,60px);background:color-mix(in srgb,var(--paper) 92%,transparent);backdrop-filter:blur(12px);border-bottom:1px solid var(--line);transition:top .7s var(--ease-expo)}
body:has(.site-header:not(.is-hidden)) .works-bar{top:var(--header-h)}
.works-filters,.works-views{display:flex;gap:26px;flex-wrap:wrap}
.works-filters button,.works-views button{background:none;border:0;padding:4px 0;font-size:14px;color:var(--muted);position:relative;cursor:pointer}
.works-filters button sup{font-size:10px;margin-left:3px}
.works-filters button::after,.works-views button::after{content:'';position:absolute;left:0;right:0;bottom:-2px;height:1px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform .5s var(--ease-expo)}
.works-filters button[aria-pressed=true],.works-views button[aria-pressed=true]{color:var(--ink)}
.works-filters button[aria-pressed=true]::after,.works-views button[aria-pressed=true]::after{transform:scaleX(1)}
.works-views{margin-left:auto}
.works-count{font-size:13px;color:var(--muted);min-width:80px;text-align:right}
.works-grid{display:grid;grid-template-columns:repeat(12,1fr);column-gap:var(--gap);row-gap:clamp(60px,8vw,130px)}
.works-grid .work-card[hidden]{display:none}
.works-grid .work-card{grid-column:1/8}
.works-grid .work-card[data-slot="1"]{grid-column:9/13;margin-top:clamp(80px,16vw,260px)}
.works-grid .work-card[data-slot="2"]{grid-column:2/7}
.works-grid .work-card[data-slot="3"]{grid-column:8/13;margin-top:clamp(40px,8vw,140px)}
.works-grid .work-card[data-slot="0"] .work-media,.works-grid .work-card[data-slot="3"] .work-media{aspect-ratio:4/3}
.works-grid .work-card[data-slot="1"] .work-media,.works-grid .work-card[data-slot="2"] .work-media{aspect-ratio:4/5}

.work-card a{display:block}
.work-media{position:relative;overflow:hidden;aspect-ratio:4/5;background:var(--stone)}
.work-media img{width:100%;height:100%;object-fit:cover;transform:scale(1.015);transition:transform 1.4s var(--ease-expo)}
.work-media::after{content:'';position:absolute;inset:0;background:#0b0e0a;opacity:0;transition:opacity .6s}
.work-meta{display:grid;grid-template-columns:auto 1fr auto;gap:18px;align-items:start;padding-top:16px}
.work-num{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums;padding-top:6px}
.work-name{font-size:clamp(21px,1.8vw,30px);font-weight:500;letter-spacing:-.045em;line-height:1.08}
.work-text p{font-size:13px;color:var(--muted);margin-top:5px}
.work-go{width:26px;opacity:.5;transition:transform .6s var(--ease-expo),opacity .3s}
.work-go svg{width:100%;height:auto}
@media(hover:hover){
  .work-card a:hover .work-media img{transform:scale(1.06)}
  .work-card a:hover .work-media::after{opacity:.12}
  .work-card a:hover .work-go{opacity:1;transform:translate(4px,-4px)}
}
.project-grid .work-card{min-width:0}

.works-index{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.works-index li[hidden]{display:none}
.works-index a{display:grid;grid-template-columns:56px 1.6fr 1fr 1fr 1fr;gap:20px;align-items:baseline;padding:22px 0;border-bottom:1px solid var(--line);transition:padding .6s var(--ease-expo),color .3s,opacity .3s}
.wi-num,.wi-place,.wi-type,.wi-cat{font-size:13px;color:var(--muted)}
.wi-title{font-size:clamp(24px,2.6vw,44px);font-weight:500;letter-spacing:-.05em;line-height:1}
@media(hover:hover){
  .works-index:hover a{opacity:.35}
  .works-index a:hover{opacity:1;padding-left:14px}
}
.works-preview{position:fixed;left:0;top:0;width:clamp(200px,20vw,320px);aspect-ratio:4/5;pointer-events:none;z-index:40;opacity:0;overflow:hidden;transition:opacity .35s;will-change:transform}
.works-preview.is-on{opacity:1}
.works-preview img{width:100%;height:100%;object-fit:cover}

/* ---------- Case study ---------- */
.page-case .case-hero{position:relative;height:100svh;min-height:620px;max-height:1300px;overflow:hidden;background:#1a1d19;color:#f4f4f0;isolation:isolate}
.case-hero-media{position:absolute;inset:0;z-index:-2;overflow:hidden}
.case-hero-img{width:100%;height:100%;object-fit:cover;transform-origin:50% 60%}
.case-hero-shade{position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#0a0d0966 0%,#0a0d0900 28%,#0a0d0900 45%,#0a0d09c7 100%)}
.case-hero-inner{height:100%;display:flex;flex-direction:column;padding:calc(var(--header-h) + 22px) var(--gutter) 26px}
.case-back{display:inline-flex;align-items:center;gap:12px;font-size:13px;align-self:flex-start;opacity:.85}
.case-back .ui-icon{width:16px}
.case-hero-text{margin-top:auto}
.case-kicker{display:flex;gap:14px;font-size:13px;margin-bottom:18px;opacity:.9}
.case-kicker span+span::before{content:'·';margin-right:14px}
.case-title{font-size:clamp(56px,10.4vw,188px);font-weight:500;line-height:.88;letter-spacing:-.072em;max-width:14ch;text-wrap:balance}
.case-subtitle{font-size:clamp(18px,1.6vw,26px);letter-spacing:-.03em;margin-top:20px;max-width:34ch;opacity:.92}
.case-hero-foot{display:flex;justify-content:space-between;align-items:center;margin-top:clamp(26px,4vw,50px);padding-top:14px;border-top:1px solid #ffffff38;font-size:12px}
.case-scroll{display:inline-flex;gap:10px;align-items:center}
.case-scroll .ui-icon{width:14px;animation:nudge 2.2s var(--ease-io) infinite}
@keyframes nudge{50%{transform:translateY(4px)}}
.case-hero-text-only{padding-top:clamp(60px,8vw,120px)}
.case-hero-text-only .case-back{margin-bottom:clamp(50px,7vw,100px)}
.case-hero-text-only .case-kicker{color:var(--muted)}
.case-hero-text-only .case-subtitle{color:var(--muted)}

.case-intro{display:grid;grid-template-columns:repeat(12,1fr);gap:var(--gap);padding-top:clamp(90px,10vw,160px);align-items:start}
.case-lead{grid-column:1/9}
.case-lead-text{font-size:clamp(28px,3.4vw,58px);line-height:1.1;letter-spacing:-.045em;font-weight:400;max-width:22ch;text-wrap:pretty}
.case-pending{margin-top:24px;color:var(--muted)}
.case-facts{grid-column:9/13;position:sticky;top:calc(var(--header-h) + 24px);font-size:14px}
.case-facts dl{margin:0}
.case-facts dl div{display:grid;grid-template-columns:110px 1fr;gap:12px;padding:12px 0;border-top:1px solid var(--line)}
.case-facts dt{color:var(--muted)}
.case-facts dd{margin:0}
.case-services{border-top:1px solid var(--line);padding-top:12px;margin-top:0}
.case-services h2{font-size:14px;font-weight:400;color:var(--muted);margin-bottom:10px}
.case-services ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:5px}
.case-map{margin:26px 0 0;padding-top:18px;border-top:1px solid var(--line)}
.case-map .map{max-width:320px}
.case-map figcaption{font-size:12px;color:var(--muted);margin-top:8px}

.case-chapters{display:grid;grid-template-columns:repeat(12,1fr);gap:var(--gap);padding-top:clamp(40px,5vw,80px)}
.case-chapter{grid-column:span 5;border-top:1px solid var(--line);padding-top:22px}
.case-chapter:nth-child(odd){grid-column:1/6}
.case-chapter:nth-child(even){grid-column:7/12}
.case-chapter-num{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.case-chapter h2{font-size:clamp(22px,1.9vw,30px);font-weight:500;letter-spacing:-.04em;line-height:1.1;margin:14px 0 14px}
.case-chapter p{color:var(--muted);max-width:52ch}

.case-gallery{padding-top:clamp(100px,12vw,190px)}
.case-gallery-head{display:grid;grid-template-columns:repeat(12,1fr);gap:var(--gap);align-items:end}
.case-gallery-head .eyebrow{grid-column:1/-1;margin-bottom:-4px}
.case-gallery-head .display{grid-column:1/9;font-size:clamp(46px,6.4vw,110px)}
.case-gallery-count{grid-column:10/13;text-align:right;font-size:13px;color:var(--muted)}
.cg-row{display:grid;grid-template-columns:repeat(12,1fr);gap:var(--gap);margin-top:clamp(50px,8vw,130px);align-items:start}
.cg-fig{margin:0;min-width:0}
.cg-open{display:block;width:100%;padding:0;border:0;background:none;cursor:zoom-in;position:relative;text-align:left}
.cg-frame{display:block;overflow:hidden;background:var(--stone)}
.cg-img{display:block;width:100%;height:auto;transition:transform 1.4s var(--ease-expo)}
.cg-zoom{position:absolute;right:14px;top:14px;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:#f4f4f0e6;color:#1a1d19;font-size:20px;opacity:0;transform:scale(.8);transition:opacity .35s,transform .5s var(--ease-expo)}
.cg-fig figcaption{display:flex;gap:14px;font-size:13px;color:var(--muted);padding-top:12px}
.cg-fig figcaption span{font-variant-numeric:tabular-nums;color:var(--ink)}
@media(hover:hover){
  .cg-open:hover .cg-img{transform:scale(1.035)}
  .cg-open:hover .cg-zoom,.cg-open:focus-visible .cg-zoom{opacity:1;transform:none}
}
.cg-wide .cg-fig{grid-column:1/-1}
.cg-inset .cg-fig{grid-column:4/-1}
.cg-pair .cg-fig:first-child{grid-column:1/7}
.cg-pair .cg-fig:last-child{grid-column:7/13}
.cg-pair-shift .cg-fig:first-child{grid-column:2/7}
.cg-pair-shift .cg-fig:last-child{grid-column:8/13;margin-top:clamp(60px,12vw,200px)}
.cg-trio .cg-fig:nth-child(1){grid-column:1/5}
.cg-trio .cg-fig:nth-child(2){grid-column:5/9;margin-top:clamp(40px,8vw,120px)}
.cg-trio .cg-fig:nth-child(3){grid-column:9/13}
.cg-solo-right .cg-fig{grid-column:7/12}
.cg-solo-left .cg-fig{grid-column:2/7}
.cg-solo-right>*,.cg-solo-left>*{grid-row:1}
.cg-note{align-self:end;padding-bottom:40px}
.cg-solo-right .cg-note{grid-column:2/6}
.cg-solo-left .cg-note{grid-column:8/12}
.cg-note span{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.cg-note p{font-size:clamp(22px,2.1vw,36px);letter-spacing:-.045em;line-height:1.08;max-width:13ch;margin-top:14px}
.cg-fig.is-noted figcaption{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}

.case-site{background:var(--night);color:var(--on-night);margin-top:clamp(100px,12vw,190px)}
.case-site-head{display:grid;grid-template-columns:repeat(12,1fr);gap:var(--gap);padding:0 var(--gutter);align-items:end;margin-bottom:clamp(36px,4vw,60px)}
.case-site-head .eyebrow{grid-column:1/-1;color:#aeb3a8}
.case-site-head .display{grid-column:1/8;font-size:clamp(46px,6.4vw,110px)}
.case-site-head>p:last-child{grid-column:9/13;text-align:right;color:#aeb3a8;font-size:13px}

.page-case .transformation{margin-top:clamp(60px,8vw,120px)}
.case-next{margin-top:clamp(100px,12vw,190px)}
.case-next-link{position:relative;display:flex;align-items:flex-end;justify-content:space-between;gap:30px;height:clamp(460px,82svh,900px);padding:clamp(28px,4vw,60px) var(--gutter);color:#f4f4f0;overflow:hidden;isolation:isolate}
.case-next-media{position:absolute;inset:0;z-index:-2}
.case-next-img{width:100%;height:100%;object-fit:cover;transform:scale(1.04);transition:transform 1.6s var(--ease-expo)}
.case-next-link::before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#0a0d0955,#0a0d09b8);transition:opacity .6s}
.case-next-text{display:flex;flex-direction:column;gap:12px}
.case-next-label{font-size:13px;opacity:.85}
.case-next-text strong{font-size:clamp(48px,8.6vw,160px);font-weight:500;letter-spacing:-.07em;line-height:.9;max-width:12ch}
.case-next-text span:last-child{font-size:14px;opacity:.8}
.case-next-arrow{width:clamp(56px,6vw,96px);flex-shrink:0;transition:transform .8s var(--ease-expo)}
.case-next-arrow svg{width:100%;height:auto}
@media(hover:hover){
  .case-next-link:hover .case-next-img{transform:scale(1)}
  .case-next-link:hover .case-next-arrow{transform:translate(10px,-10px)}
}

/* Viewer */
.viewer{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#0c0e0b;color:#eeefe9;overflow:hidden}
.viewer[open]{display:grid;grid-template-rows:auto 1fr;animation:viewer-in .5s var(--ease-expo)}
.viewer::backdrop{background:#0c0e0b}
@keyframes viewer-in{from{opacity:0}}
.viewer-top{display:flex;justify-content:space-between;align-items:center;padding:18px var(--gutter);font-size:13px}
.viewer-close{background:none;border:0;color:inherit;display:inline-flex;gap:10px;align-items:center;font-size:13px;padding:10px 0;cursor:pointer}
.viewer-close .ui-icon{width:18px}
.viewer-stage{margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:0 clamp(70px,8vw,130px) 34px;min-height:0}
.viewer-stage img{max-width:100%;max-height:calc(100dvh - 150px);width:auto;height:auto;object-fit:contain;transition:opacity .35s}
.viewer-stage img.is-loading{opacity:0}
.viewer-stage figcaption{font-size:13px;color:#b9beb3;text-align:center}
.viewer-nav{position:absolute;top:50%;width:54px;height:54px;border-radius:50%;border:1px solid #ffffff38;background:#0c0e0b99;color:#fff;display:grid;place-items:center;cursor:pointer;transition:background .3s}
.viewer-nav:hover{background:#ffffff1f}
.viewer-nav .ui-icon{width:20px}
.viewer-prev{left:clamp(10px,2vw,30px)}
.viewer-next{right:clamp(10px,2vw,30px)}
.viewer-next .ui-icon{transform:rotate(180deg)}
.viewer :focus-visible{outline:2px solid #fff;outline-offset:4px}

/* ---------- About ---------- */
.field-strip{overflow:hidden}
.field-head{margin-bottom:clamp(30px,4vw,56px)}
.field-head .eyebrow{margin-bottom:22px}
.field-track{list-style:none;margin:0 calc(var(--gutter) * -1);padding:0 var(--gutter);display:flex;gap:var(--gap);overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;cursor:grab}
.field-track::-webkit-scrollbar{display:none}
.field-track li{flex:0 0 clamp(240px,24vw,400px);scroll-snap-align:start}
.field-track figure{margin:0}
.field-track img{width:100%;aspect-ratio:3/4;object-fit:cover;display:block;pointer-events:none}
.field-track figcaption{font-size:13px;color:var(--muted);padding-top:10px}
.field-track.is-dragging{cursor:grabbing;scroll-snap-type:none}

/* ---------- Contact ---------- */
.contact-hero{padding-top:clamp(60px,8vw,130px);padding-bottom:clamp(30px,4vw,60px)}
.contact-hero .eyebrow{margin-bottom:26px}
.contact-hero .display{font-size:clamp(50px,8vw,146px);line-height:.92}
.contact-lead{max-width:52ch;color:var(--muted);margin-top:clamp(26px,3vw,40px);font-size:clamp(17px,1.3vw,20px)}
.contact-cta{margin-top:34px}
.page-contact .contact-layout{padding-top:clamp(40px,5vw,80px)}
.page-contact .contact-aside{position:sticky;top:calc(var(--header-h) + 30px);align-self:start}
.contact-direct h2{font-size:clamp(26px,2.4vw,38px);font-weight:500;letter-spacing:-.045em;line-height:1.08;max-width:16ch}
.contact-direct>p{color:var(--muted);margin:18px 0 26px;max-width:36ch}
.page-contact .contact-photo{margin-top:clamp(40px,5vw,70px);width:100%;aspect-ratio:4/5;object-fit:cover}
.form-head{margin-bottom:34px}
.form-head h2{font-size:clamp(32px,3.2vw,54px);font-weight:500;letter-spacing:-.055em;line-height:1}
.form-head p{color:var(--muted);margin:16px 0 8px;max-width:48ch}
.form-head span{font-size:13px;color:var(--muted)}

.footer-credits{font-size:11px;color:#9da294;margin-top:18px;max-width:80ch}

/* ---------- Responsive ---------- */
@media(max-width:1100px){
  .atlas-inner{grid-template-columns:1fr}
  .atlas-maps{position:relative;top:0;order:-1}
}
@media(max-width:900px){
  :root{--header-h:72px}
  .manifesto-cols{display:flex;flex-direction:column;gap:20px}
  .works-intro-foot{display:flex;flex-direction:column;align-items:flex-start;gap:26px}
  .works-intro-count{text-align:left}
  .works-bar{flex-wrap:wrap;gap:14px}
  .works-views{margin-left:0}
  .works-grid{display:flex;flex-direction:column;gap:56px}
  .works-grid .work-card{margin-top:0!important}
  .works-grid .work-card .work-media{aspect-ratio:4/5!important}
  .works-index a{grid-template-columns:40px 1fr;row-gap:4px}
  .wi-type,.wi-cat{display:none}
  .wi-place{grid-column:2}
  .case-intro{display:flex;flex-direction:column;gap:50px}
  .case-facts{position:static;width:100%}
  .case-chapters{display:flex;flex-direction:column;gap:34px}
  .case-gallery-head{display:flex;flex-direction:column;align-items:flex-start;gap:14px}
  .case-gallery-count{text-align:left}
  .cg-row{display:flex;flex-direction:column;gap:34px;margin-top:34px}
  .cg-fig{margin-top:0!important}
  .cg-note{display:none}
  .cg-fig.is-noted figcaption{position:static;width:auto;height:auto;overflow:visible;clip-path:none}
  .case-site-head{display:flex;flex-direction:column;align-items:flex-start;gap:12px}
  .case-site-head>p:last-child{text-align:left}
          .case-next-link{flex-direction:column;align-items:flex-start;justify-content:flex-end}
  .page-contact .contact-aside{position:static}
  .viewer-stage{padding:0 16px 90px}
  .viewer-nav{top:auto;bottom:22px}
  .viewer-prev{left:calc(50% - 64px)}
  .viewer-next{right:calc(50% - 64px)}
}
@media(max-width:700px){
  .atlas-stats dd{font-size:40px}
  .atlas-lists{grid-template-columns:1fr}
  .atlas-idf{width:62%}
  .case-title{font-size:clamp(46px,14vw,80px)}
  .case-hero-foot span:first-child{display:none}
}

/* ---------- Reduced motion ---------- */
@media(prefers-reduced-motion:reduce){
  ::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}
  .site-header{transition:none}
  .case-scroll .ui-icon{animation:none}
  .js-split [data-split] .w{opacity:1}
  .js-atlas .atlas .map-dot{opacity:1}
}

/* ---------- Scene states added by scenes.js ---------- */
.read-progress{position:fixed;left:0;right:0;top:0;height:2px;z-index:70;background:var(--clay);transform-origin:left;transform:scaleX(0);pointer-events:none}
.cg-img{transition:filter .6s}
@media(hover:hover){.cg-open:hover .cg-img{transform:none;filter:brightness(.9)}}
@media(min-width:901px){
    }

/* ---------- V4.1: compact header, shorter film, arrival ---------- */
:root{--header-h:64px}
.site-header{height:var(--header-h)!important;padding:0 var(--gutter)}
.brand-logo,.home .header-overlay .brand-logo{width:112px}
.desktop-nav{gap:34px;font-size:13px;letter-spacing:-.01em}
.nav-contact{margin-left:26px}
.nav-contact span{margin-left:14px}


.arrival{display:none}
.logo-arriving .arrival{display:grid;place-items:center;position:fixed;inset:0;z-index:90;background:var(--paper);pointer-events:none}
.arrival .vmark{width:min(26vmin,210px);height:auto;color:var(--ink);transform-origin:0 0;overflow:visible}
.arrival .vmark *{stroke-dasharray:1;stroke-dashoffset:1}
.logo-arriving .site-header,.logo-arriving main>section:not(.hero){opacity:0}
.logo-arriving .home .header-overlay .brand-logo{opacity:1}

/* ---------- V4.1: home selection ---------- */
.selection{padding-top:clamp(40px,5vw,80px)}
.selection-head{display:flex;justify-content:space-between;align-items:flex-end;gap:30px;margin-bottom:clamp(36px,4vw,64px)}
.selection-head .eyebrow{margin-bottom:22px}
.selection-grid{display:grid;grid-template-columns:repeat(12,1fr);column-gap:var(--gap);row-gap:clamp(40px,5vw,80px)}
.selection-card a{display:flex;flex-direction:column;height:100%}
.selection-media{position:relative;overflow:hidden;background:var(--stone);flex:1;min-height:0}
.selection-media img{width:100%;height:100%;object-fit:cover;transform:scale(1.015);transition:transform 1.4s var(--ease-expo)}
.selection-media::after{content:'';position:absolute;inset:0;background:#0b0e0a;opacity:0;transition:opacity .6s}
.sel-1{grid-column:1/7;grid-row:1/3}
.sel-1 .selection-media{aspect-ratio:auto;min-height:clamp(420px,58vw,980px)}
.sel-2{grid-column:7/13;grid-row:1}
.sel-2 .selection-media{aspect-ratio:3/2}
.sel-3{grid-column:8/13;grid-row:2;align-self:end}
.sel-3 .selection-media{aspect-ratio:4/3}
.sel-4{grid-column:1/13;grid-row:3}
.sel-4 .selection-media{aspect-ratio:21/9}
@media(hover:hover){
  .selection-card a:hover .selection-media img{transform:scale(1.05)}
  .selection-card a:hover .selection-media::after{opacity:.1}
  .selection-card a:hover .work-go{opacity:1;transform:translate(4px,-4px)}
}

/* ---------- V4.1: La maison Vitruve ---------- */
.about-intro{position:relative;overflow:hidden;isolation:isolate}
.about-mark{position:absolute;z-index:-1;right:calc(var(--gutter) * -1);top:50%;width:min(46vw,640px);height:auto;transform:translateY(-50%);color:var(--ink);opacity:.14}
/* A still drawing that simply fades in: tracing it would repaint the whole SVG on every frame of the first scroll. */
.about-mark *{stroke-width:2.2}
.about-mark{animation:mark-in 1.4s ease both .2s}
@keyframes mark-in{from{opacity:0}}

.team-media{margin:0}
.team-media .team-video{display:block;width:100%;max-height:78svh;aspect-ratio:9/16;object-fit:cover;background:var(--stone)}
.team-media figcaption{font-size:12px;color:var(--muted);margin-top:10px}


@media(max-width:900px){
  :root{--header-h:58px}
  .brand-logo,.home .header-overlay .brand-logo{width:104px}
  .selection-head{flex-direction:column;align-items:flex-start}
  .selection-grid{display:flex;flex-direction:column;gap:48px}
  .sel-1 .selection-media{min-height:0;aspect-ratio:4/5}
  .sel-4 .selection-media{aspect-ratio:4/3}
  .about-mark{width:90vw;top:auto;bottom:-20%;transform:none;opacity:.1}
}
@media(prefers-reduced-motion:reduce){
}

/* ---------- La maison Vitruve: the plan drawn trade by trade ---------- */
.trade-plan{padding-top:clamp(100px,11vw,170px)}
.tp-head{display:grid;grid-template-columns:1.2fr 1fr;gap:6vw;align-items:end;margin-bottom:clamp(30px,4vw,60px)}
.tp-head .eyebrow{margin-bottom:22px}
.tp-head>p{color:var(--muted);max-width:44ch}
.tp-body{display:grid;grid-template-columns:repeat(12,1fr);column-gap:var(--gap);align-items:start}
.tp-steps{grid-column:1/6;grid-row:1;list-style:none;margin:0;padding:0}
.tp-stage{grid-column:6/13;grid-row:1;position:sticky;top:0;height:100svh;display:flex;flex-direction:column;justify-content:center;gap:18px}
.tp-canvas{overflow:hidden}
.plan{display:block;width:100%;height:auto;max-height:78svh;font-family:var(--sans);transform-origin:var(--fx,50%) var(--fy,50%);transform:scale(var(--fz,1));transition:transform 1.5s var(--ease-expo),transform-origin 1.5s var(--ease-expo)}
.tp-hud{display:flex;gap:14px;align-items:baseline;font-size:13px;color:var(--muted)}
.tp-hud-num{font-variant-numeric:tabular-nums;color:var(--clay)}
.tp-hud-name{font-size:clamp(20px,1.8vw,28px);letter-spacing:-.04em;color:var(--ink)}
.js-plan .tp-hud{display:flex}
.tp-hud{display:none}
.tp-step{padding:clamp(30px,4vw,56px) 0;border-top:1px solid var(--line)}
.js-plan .tp-step{min-height:62svh;display:flex;flex-direction:column;justify-content:center;opacity:.22;transition:opacity .6s var(--ease-expo)}
.js-plan .tp-step.is-active{opacity:1}
.tp-num{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.tp-step h3{font-size:clamp(30px,3vw,52px);font-weight:500;letter-spacing:-.055em;line-height:1;margin:14px 0 18px}
.tp-step p{color:var(--muted);max-width:46ch}
.tp-step figure{margin:24px 0 0;width:min(100%,380px);overflow:hidden}
.tp-step img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;transform:scale(1.04);transition:transform 1.2s var(--ease-expo)}
.tp-step.is-active img{transform:none}
.tp-step .text-link{margin-top:18px}

/* The drawing: ink lines, poché walls, hatched partitions, coloured trades. */
.pl-draw{fill:none;stroke:var(--ink);stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;stroke-dasharray:1;stroke-dashoffset:0}
.pl-fill{fill:none;stroke:none}
.pl-wall.pl-fill{fill:var(--ink)}
.pl-partition.pl-fill{fill:url(#pl-hatch)}
.pl-pattern-hatch{stroke:var(--muted);stroke-width:1}
.pl-grid{stroke:var(--muted);stroke-width:.6;opacity:.5}
.pl-axis circle{fill:var(--paper);stroke:var(--muted);stroke-width:.8;vector-effect:non-scaling-stroke}
.pl-axis text{font-size:11px;fill:var(--muted);text-anchor:middle;dominant-baseline:central}
.pl-dim{stroke:var(--muted);stroke-width:.8}
.pl-text{font-size:12px;fill:var(--muted)}
.pl-dim-text{text-anchor:middle}
.pl-room{font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;text-anchor:middle}
.pl-door{stroke-width:.9}
.pl-panel.pl-fill{fill:var(--clay)}
.pl-panel.pl-draw{stroke:var(--clay)}
.pl-tag{font-size:9px;fill:var(--clay);text-anchor:end;dominant-baseline:central;letter-spacing:.08em}
.pl-elec{stroke:var(--clay);stroke-width:1.1}
.pl-light,.pl-switch,.pl-socket{fill:var(--paper);stroke:var(--clay);stroke-width:1.2;vector-effect:non-scaling-stroke}
.pl-riser{fill:#6f8ea3}
.pl-cold{stroke:#6f8ea3;stroke-width:1.8}
.pl-hot{stroke:#b8743f;stroke-width:1.8}
.pl-fixture.pl-fill{fill:var(--paper)}
.pl-fixture-in{stroke-width:.9}
.pl-wood.pl-fill,.pl-wood-tall.pl-fill{fill:#6c4a33}
.pl-wood.pl-draw,.pl-wood-tall.pl-draw{stroke:#4d3322}
.pl-wood-line,.pl-rod{stroke:#e9e2d4;stroke-width:.8}
.pl-window{stroke-width:.9}
.pl-glass{stroke:#6f8ea3;stroke-width:1.6}
.pl-pattern-wood{fill:none;stroke:#c2a27c;stroke-width:.9;opacity:.6}
.pl-pattern-tile{fill:none;stroke:#b3aea4;stroke-width:.9;opacity:.7}
.pl-paint{stroke-width:7;stroke-linecap:butt;stroke-linejoin:miter}
.pl-paint.pl-sage{stroke:#9aa68f}
.pl-paint.pl-clay{stroke:#c98f74}
.pl-paint.pl-lime{stroke:#ddd6c6}
.pl-swatch.pl-sage{fill:#9aa68f}
.pl-swatch.pl-clay{fill:#c98f74}
.pl-swatch.pl-lime{fill:#ddd6c6;stroke:var(--line)}
.pl-legend{font-size:11px;fill:var(--muted);dominant-baseline:central}
.pl-rug{stroke:var(--muted);stroke-width:.8}
.pl-furniture.pl-fill,circle.pl-furniture{fill:var(--paper)}
circle.pl-furniture{stroke:var(--ink);stroke-width:1;vector-effect:non-scaling-stroke}
.pl-furniture-soft.pl-fill{fill:var(--stone)}
.pl-furniture-line{stroke:var(--muted);stroke-width:.8}
.pl-plant{fill:color-mix(in srgb,#7f8f6e 25%,transparent);stroke:#7f8f6e;stroke-width:1;vector-effect:non-scaling-stroke}
.pl-marble.pl-fill{fill:#efece6}
.pl-hearth.pl-fill{fill:#d9d4ca}
.pl-vein{stroke:#b9b3a8;stroke-width:.8}
.pl-moulding{stroke:var(--clay);stroke-width:.7;opacity:.75}
.pl-rosette{fill:none;stroke:var(--clay);stroke-width:1;stroke-dasharray:3 3;vector-effect:non-scaling-stroke}
.pl-north circle{fill:none;stroke:var(--ink);stroke-width:1;vector-effect:non-scaling-stroke}
.pl-north path{fill:var(--ink)}
.pl-north text,.pl-scale text,.pl-cartouche text{font-size:10px;fill:var(--muted);text-anchor:middle}
.pl-scale path{stroke:var(--ink);stroke-width:1;vector-effect:non-scaling-stroke}
.pl-scale rect{fill:var(--ink)}
.pl-cartouche rect{fill:var(--paper);stroke:var(--ink);stroke-width:1;vector-effect:non-scaling-stroke}
.pl-cartouche text{text-anchor:start}
.pl-cartouche .pl-cartouche-brand{font-size:13px;fill:var(--ink);letter-spacing:.24em;font-weight:600}

/* Drawing states: each layer appears when its trade is read, in order, and undraws on the way back. */
.pl-layer{transition:opacity .8s var(--ease-expo)}
.js-plan .pl-draw{stroke-dashoffset:1;transition:stroke-dashoffset 1.1s var(--ease-io) calc(min(var(--i,0),28) * 40ms)}
.js-plan .pl-fill{opacity:0;transition:opacity .9s ease calc(min(var(--i,0),28) * 40ms + 380ms)}
.js-plan .pl-text,.js-plan .pl-pop{opacity:0;transform:scale(.4);transform-box:fill-box;transform-origin:center;transition:opacity .5s ease calc(min(var(--i,0),28) * 40ms + 250ms),transform .9s var(--ease-expo) calc(min(var(--i,0),28) * 40ms + 250ms)}
.js-plan .pl-floor{clip-path:inset(0 100% 0 0);transition:clip-path 1.6s var(--ease-io) calc(var(--i,0) * 180ms)}
.js-plan .pl-layer.is-drawn .pl-draw{stroke-dashoffset:0}
.js-plan .pl-layer.is-drawn .pl-fill{opacity:1}
.js-plan .pl-layer.is-drawn .pl-text,.js-plan .pl-layer.is-drawn .pl-pop{opacity:1;transform:none}
.js-plan .pl-layer.is-drawn .pl-floor{clip-path:inset(0 0 0 0)}
.js-plan .pl-layer.is-drawn:not(.is-current):not([data-layer=masonry]):not([data-layer=partitions]):not([data-layer=floors]){opacity:.5}

@media(max-width:900px){
  .tp-head{grid-template-columns:1fr;gap:20px}
  .tp-body{display:block}
  .tp-stage{position:sticky;top:0;height:auto;z-index:2;background:var(--paper);margin:0 calc(var(--gutter) * -1);padding:14px var(--gutter) 12px;border-bottom:1px solid var(--line)}
  .plan{max-height:40svh}
  .js-plan .tp-step{min-height:70svh}
}
@media(prefers-reduced-motion:reduce){
  .plan{transition:none;transform:none}
}

/* ---------- Theme switch ---------- */
.site-header{justify-content:flex-start}
.site-header .desktop-nav{margin-left:auto}
.theme-switch{margin-left:26px;display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;background:none;color:inherit;cursor:pointer}
.ts-track{position:relative;display:block;width:30px;height:16px;border:1px solid currentColor;border-radius:999px;opacity:.85;transition:opacity .3s}
.ts-knob{position:absolute;top:2px;left:2px;width:10px;height:10px;border-radius:50%;background:currentColor;transition:transform .5s var(--ease-expo)}
.theme-switch[aria-pressed=true] .ts-knob{transform:translateX(14px)}
.theme-switch:hover .ts-track{opacity:1}
.theme-switch:focus-visible{outline:2px solid currentColor;outline-offset:2px;border-radius:6px}
.menu-open .theme-switch{visibility:hidden}
.theme-changing::view-transition-old(root){animation:none}
.theme-changing::view-transition-new(root){animation:theme-reveal .75s var(--ease-io) both}
@keyframes theme-reveal{from{clip-path:circle(0 at var(--tx,100%) var(--ty,0))}to{clip-path:circle(150vmax at var(--tx,100%) var(--ty,0))}}
@media(max-width:900px){
  .theme-switch{margin-left:auto;margin-right:6px}
}

/* ---------- Home opening: a film in a frame, the title set beneath it ---------- */
.hero.hero-cine{position:relative;height:calc(100svh - var(--header-h));min-height:600px;max-height:none;padding:clamp(10px,1.8vh,22px) var(--gutter) clamp(22px,3.4vh,42px);display:grid;grid-template-rows:minmax(0,1fr) auto;gap:clamp(20px,3.6vh,44px);background:var(--paper);color:var(--ink);overflow:visible}
.hero-cine .hero-frame{position:relative;min-height:0;overflow:hidden;clip-path:inset(0 0 0 0);background:#2a2f28}
.hero-cine .hero-media{position:absolute;inset:0;min-height:0;height:auto;aspect-ratio:auto;flex:none;background:none}
.hero-cine .hero-film-surface{position:absolute;inset:-5% 0;will-change:transform}
.hero-cine .hero-photo,.hero-cine .hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 48%;animation:none}
.hero-cine .hero-frame::after{content:'';position:absolute;inset:auto 0 0;height:32%;background:linear-gradient(180deg,#0a0d0900,#0a0d0938 55%,#0a0d09a6);pointer-events:none;z-index:1}
.hero-film-meta{position:absolute;z-index:2;left:clamp(14px,1.6vw,26px);right:clamp(14px,1.6vw,26px);bottom:clamp(12px,1.5vw,22px);display:flex;align-items:center;gap:16px;color:#f4f4f0;font-size:11px;letter-spacing:.06em;font-variant-numeric:tabular-nums}
.hero-reel{white-space:nowrap;opacity:.85}
.hero-progress{flex:1;height:1px;background:#ffffff40;overflow:hidden}
.hero-progress span{display:block;height:100%;background:#f4f4f0;transform-origin:left;transform:scaleX(0)}
.hero-timecode{min-width:3.2em;text-align:right}
.hero-cine .hero-caption{display:grid;grid-template-columns:repeat(12,1fr);column-gap:var(--gap);align-items:end;height:auto;min-height:0;padding:0;border:0}
.hero-kicker{grid-column:1/-1;font-size:12px;color:var(--muted);margin-bottom:clamp(10px,1.6vh,18px)}
.hero-cine .hero-title{grid-column:1/10;margin:0;max-width:none;font-size:clamp(38px,5vw,92px);font-weight:500;letter-spacing:-.062em;line-height:.95;animation:none}
.hero-title .hl{display:block;overflow:hidden;padding-bottom:.07em;margin-bottom:-.07em}
.hero-title .hl>span{display:block}
.hero-title .hl+.hl{color:color-mix(in srgb,var(--ink) 52%,var(--paper))}
.hero-side{grid-column:10/13;display:flex;flex-direction:column;align-items:flex-start;gap:16px;padding-bottom:.35em}
.hero-cine .hero-subline{font-size:clamp(15px,1.15vw,18px);line-height:1.35;color:var(--muted);max-width:24ch;letter-spacing:-.02em}
.hero-cine .hero-discover{display:inline-flex;align-items:center;gap:16px;font-size:13px;padding:10px 0;border-bottom:1px solid var(--line);min-height:0}
.hero-cine .hero-discover .ui-icon{width:16px;transition:transform .5s var(--ease-expo)}
@media(hover:hover){.hero-cine .hero-discover:hover .ui-icon{transform:translateY(4px)}}
/* Before the reveal: title lines wait under their mask, the frame waits slightly inset. */
.hero-intro .hero-title .hl>span{transform:translateY(106%)}
.hero-intro .hero-kicker,.hero-intro .hero-side,.hero-intro .hero-film-meta{opacity:0}
.hero-intro:not(.logo-arriving) .hero-frame{clip-path:inset(5% 3% 5% 3%)}
@media(max-width:900px){
  .hero.hero-cine{height:auto;min-height:0;grid-template-rows:auto auto;padding-bottom:30px}
  .hero-cine .hero-frame{height:56svh;min-height:320px}
  .hero-cine .hero-caption{display:flex;flex-direction:column;align-items:flex-start;gap:14px}
  .hero-kicker{margin-bottom:0}
  .hero-cine .hero-title{font-size:clamp(34px,10vw,54px)}
  .hero-reel{display:none}
}

/* ---------- Home: from the mark to the plan to the room ---------- */
.genesis{position:relative;background:var(--paper)}
.genesis-pin{min-height:100svh;display:grid;grid-template-columns:repeat(12,1fr);column-gap:var(--gap);align-items:center;padding:calc(var(--header-h) + 10px) var(--gutter) 40px}
.genesis-copy{grid-column:1/5}
.genesis-copy .eyebrow{margin-bottom:clamp(22px,4vh,40px)}
.genesis-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:clamp(16px,3vh,32px)}
.genesis-steps li{display:grid;grid-template-columns:34px 1fr;column-gap:10px;opacity:.26;transition:opacity .6s var(--ease-expo)}
.genesis-steps li.is-active{opacity:1}
.genesis-steps span{font-size:12px;color:var(--clay);font-variant-numeric:tabular-nums;padding-top:.8em}
.genesis-steps strong{font-size:clamp(30px,3.4vw,58px);font-weight:500;letter-spacing:-.055em;line-height:1}
.genesis-steps p{grid-column:2;color:var(--muted);max-width:32ch;font-size:15px;line-height:1.45;margin-top:10px}
.js-genesis .genesis-steps p{max-height:0;margin-top:0;overflow:hidden;opacity:0;transition:max-height .7s var(--ease-expo),opacity .5s,margin .7s var(--ease-expo)}
.js-genesis .genesis-steps li.is-active p{max-height:6em;margin-top:10px;opacity:1}
.genesis-stage{grid-column:5/13;margin:0}
.genesis-svg{display:block;width:100%;height:auto;max-height:80svh;overflow:visible}
.g-lines{color:var(--ink)}
.g-draw,.g-detail{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round}
.g-outline{stroke-width:10}
.g-circle{stroke-width:1.6;stroke-dasharray:4 5;stroke:var(--clay)}
.g-v{stroke-width:5}
.g-detail{stroke-width:1.1}
.g-window{stroke-width:1.2}
.g-furniture{stroke-width:.9}
.g-sofa{fill:#aab39f}
.g-bed{fill:#dcc1b2}
.g-bath{fill:#f7f6f2}
.g-wood-base{fill:#e6d6bf}
.g-wood{fill:none;stroke:#c9a67a;stroke-width:1}
.g-tile-base{fill:#ebe8e1}
.g-tile{fill:none;stroke:#c9c4b9;stroke-width:1}
.g-label{font-family:var(--sans);font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;fill:currentColor;text-anchor:middle;opacity:.85}
.g-dim{stroke:var(--muted);stroke-width:1}
.g-dim-text{font-family:var(--sans);font-size:12px;fill:var(--muted);text-anchor:middle}
@media(max-width:900px){
  .genesis-pin{display:flex;flex-direction:column;justify-content:center;gap:22px}
  .genesis-stage{order:-1;width:100%}
  .genesis-steps strong{font-size:30px}
  .js-genesis .genesis-steps li:not(.is-active){display:none}
}

/* Phones: no blur behind the fixed header and no zoom on the plan, both repaint on every frame. */
@media(max-width:900px){
  .site-header:not(.header-overlay),.site-header.is-solid,.home .header-overlay.is-solid{backdrop-filter:none;-webkit-backdrop-filter:none;background:var(--paper)}
  .works-bar{backdrop-filter:none;-webkit-backdrop-filter:none;background:var(--paper)}
  .plan{transform:none!important;transition:none}
}

/* The atelier story opens into a framed window rather than the full screen. */
@media(min-width:901px){
  .is-cinematic .atelier-copy{left:calc(3% + var(--gutter))}
  .is-cinematic .atelier-navigation{bottom:calc(6% + 24px);left:calc(3% + var(--gutter))}
}
/* Solid header everywhere: a blur behind a fixed bar costs a repaint on every scrolled frame. */
.site-header:not(.header-overlay),.site-header.is-solid,.home .header-overlay.is-solid,.works-bar{backdrop-filter:none;-webkit-backdrop-filter:none;background:color-mix(in srgb,var(--paper) 97%,transparent)}
@media(prefers-reduced-motion:reduce){.about-mark{animation:none}}

/* Low Power Mode fallback: the page decodes the film itself and draws it on a canvas in place of the video. */
video[hidden]{display:none!important}
.video-decoded{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover}
.hero-video.video-decoded{opacity:1}
.team-media .video-decoded{position:static;max-height:78svh;aspect-ratio:9/16;height:auto}

/* V4.4: the client's texts in full. */
.manifesto-cols p:nth-child(3){grid-column:9/13}
.manifesto-cols .text-link{grid-row:2}
.case-lead-text.is-long{font-size:clamp(21px,1.75vw,28px);line-height:1.38;letter-spacing:-.02em;max-width:46ch}
.case-lead-more{margin:1.1em 0 0;color:var(--muted);max-width:62ch;font-size:clamp(16px,1.1vw,18px);line-height:1.65}
.case-chapter p{margin:0}
.case-chapter p+p,.case-chapter p+.case-list,.case-chapter .case-list+p{margin-top:1em}
.case-list{margin:0;padding-left:1.1em;color:var(--muted);max-width:52ch}
.case-list li{margin:.45em 0;padding-left:.2em}
.case-list li::marker{color:var(--clay)}
.case-chapter:only-child{grid-column:1/9}
.about-projects-lead{margin-top:22px;max-width:52ch;color:var(--muted);font-size:clamp(16px,1.15vw,18px);line-height:1.6}
.about-cta{border-top:1px solid var(--line);align-items:start}
.about-cta .button{margin-top:8px}
.contact-next{max-width:52ch;color:var(--muted);margin-top:18px;font-size:clamp(16px,1.15vw,18px);line-height:1.6}
.footer-top-plain{padding-bottom:clamp(40px,5vw,70px)}
.nowrap{white-space:nowrap}

/* V4.5: home after Paul's review (November 2026). */
/* A partner without its logo yet shows its name, set like a wordmark. */
.partner-wordmark{font-size:11px;line-height:1.15;letter-spacing:.08em;text-transform:uppercase;text-align:center;color:#1e2420;font-weight:500}
/* Two finished rooms between the opening text and the drawing. */
.home-pair{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:var(--gap);align-items:end;padding-top:clamp(30px,5vw,80px);padding-bottom:clamp(60px,8vw,130px)}
.pair-item{display:block;color:inherit;text-decoration:none}
.pair-item figure{margin:0}
.pair-1{grid-column:1/8}
.pair-2{grid-column:9/13;margin-bottom:clamp(50px,9vw,150px)}
.pair-media{overflow:hidden;aspect-ratio:3/2;background:var(--stone)}
.pair-img{width:100%;height:100%;object-fit:cover;display:block;transition:transform 1.2s var(--ease-out)}
.pair-item figcaption{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding-top:10px;border-top:1px solid var(--line);font-size:13px;color:var(--muted);transition:color .3s}
.pair-item figcaption svg{width:14px;height:14px;flex-shrink:0}
@media(hover:hover){.pair-item:hover .pair-img{transform:scale(1.03)}.pair-item:hover figcaption{color:var(--ink)}}
@media(max-width:900px){.home-pair{display:flex;flex-direction:column;gap:36px}.pair-2{width:78%;margin:0 0 0 auto}}
/* Project pages: each part of the story is followed by its photographs. */
.case-story{display:flex;flex-direction:column;gap:clamp(48px,6vw,100px);padding-top:clamp(70px,8vw,130px)}
.case-story .case-chapter{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:var(--gap)}
.case-story .case-chapter-num{grid-column:1/3}
.case-story .case-chapter-text{grid-column:3/10}
.case-story .case-chapter h2{margin-top:0}
.case-story .case-chapter p{max-width:62ch}
.case-story-photos .cg-row{margin-top:0;margin-bottom:0}
@media(max-width:900px){.case-story .case-chapter{display:block}.case-story .case-chapter-text{margin-top:12px}}
/* Site photographs: a mosaic that scrolls with the page. */
.case-site-inner{padding:clamp(80px,9vw,130px) var(--gutter) clamp(70px,8vw,120px)}
.case-site-head{padding:0}
.case-site-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:clamp(220px,24vw,420px);grid-auto-flow:dense;gap:clamp(12px,1.4vw,22px)}
.case-site-grid .cg-fig{margin:0;min-width:0;display:flex;flex-direction:column}
.case-site-grid .cg-fig.is-wide{grid-column:span 2}
.case-site-grid .cg-open{flex:1;min-height:0;display:block;width:100%}
.case-site-grid .cg-frame{display:block;height:100%;background:#262b25;overflow:hidden}
.case-site-grid .cg-img{width:100%;height:100%;object-fit:cover}
.case-site-grid figcaption{color:#aeb3a8;font-size:12px;margin-top:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.case-site-grid figcaption span{color:var(--on-night)}
@media(max-width:900px){.case-site-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:clamp(200px,58vw,340px)}}
/* A project's site film, above its photographs. */
.case-film{margin:0 0 clamp(28px,3vw,48px)}
.case-film-frame{position:relative;aspect-ratio:53/30;background:#262b25;overflow:hidden}
.case-film-video{display:block;width:100%;height:100%;object-fit:cover}
.case-film figcaption{color:#aeb3a8;font-size:12px;margin-top:10px}
/* La maison Vitruve: a photograph under the opening sections. */
.split-photo{margin:clamp(30px,3.5vw,50px) 0 0;max-width:520px}
.split-photo img{display:block;width:100%;height:auto}
.split-photo figcaption{margin-top:10px;font-size:12px;color:var(--muted)}
/* Quote form: a field only robots fill, and the confirmation once the request is sent. */
.form-trap{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.form-sent{border-top:1px solid var(--line);margin-top:35px;padding-top:25px}
.form-sent h2{font-size:23px}
.form-sent p{margin:15px 0;font-size:14px;color:var(--muted)}
#project-form button[aria-busy="true"]{opacity:.6;cursor:progress}
/* A paragraph that continues its part after a row of photographs. */
.case-story .case-chapter.is-continued{border-top:0;padding-top:0}
/* Le geste juste on large screens: the text leaves the photograph and sits on the page, beside its frame, one step at a time. */
.atelier-captions{display:none}
@media(min-width:901px){
  .is-cinematic .atelier-scene{background:transparent}
  .is-cinematic .atelier-shade,.is-cinematic .atelier-copy{display:none}
  .is-cinematic .atelier-captions{display:block;position:absolute;top:6%;bottom:calc(6% + 70px);left:calc(3% + var(--gutter));width:calc(35% - var(--gutter) * 2);z-index:3}
  .is-cinematic .atelier-caption{position:absolute;left:0;right:0;top:50%;opacity:0;visibility:hidden;transform:translateY(-44%);transition:opacity .4s ease,transform .7s var(--ease-out),visibility 0s linear .4s}
  .is-cinematic .atelier-caption.is-active{opacity:1;visibility:visible;transform:translateY(-50%);transition:opacity .4s ease,transform .7s var(--ease-out),visibility 0s}
  .atelier-caption-num{display:block;font-size:12px;color:var(--muted);margin-bottom:18px;font-variant-numeric:tabular-nums}
  .atelier-caption h3{font-size:clamp(48px,5.2vw,88px);font-weight:500;letter-spacing:-.055em;line-height:1;margin:0 0 24px;color:var(--ink)}
  .atelier-caption p{font-size:clamp(17px,1.25vw,19px);line-height:1.55;color:var(--ink);max-width:34ch;margin:0}
  .atelier-caption .text-link{margin-top:24px}
  .is-cinematic .atelier-navigation{color:var(--ink)}
}
/* Home pair: the second photograph is a portrait. */
.pair-2 .pair-media{aspect-ratio:4/5}
/* Home: the site film, last before the footer. */
.home-film{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:var(--gap);align-items:end;padding-top:clamp(60px,8vw,130px)}
.home-film-head{grid-column:1/5}
.home-film-head .display{font-size:clamp(40px,4.4vw,72px);margin:18px 0 26px}
.home-film-figure{grid-column:5/13;margin:0}
.home-film .case-film figcaption{color:var(--muted)}
@media(max-width:900px){.home-film{display:flex;flex-direction:column;align-items:stretch;gap:28px}}
/* Le geste juste: words measured to place the first photograph under « Le », clear of « juste. ». */
.atelier-story .atelier-opening h2 span.atelier-word,.atelier-story.is-cinematic .atelier-opening h2 span.atelier-word{display:inline;padding:0;margin:0}
/* Legal notice. */
.legal{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(36px,5vw,80px) var(--gap);padding-top:0}
.legal-block h2{font-size:clamp(20px,1.6vw,26px);font-weight:500;letter-spacing:-.03em;margin:0 0 16px;padding-top:20px;border-top:1px solid var(--line)}
.legal-block p{color:var(--muted);max-width:60ch;margin:0 0 14px;line-height:1.6}
.legal-block strong{color:var(--ink);font-weight:500}
.legal-block a,.form-note a{text-decoration:underline;text-underline-offset:3px}
.legal-block dl{margin:18px 0 0}
.legal-block dl div{display:grid;grid-template-columns:minmax(0,11em) 1fr;gap:16px;padding:9px 0;border-top:1px solid var(--line);font-size:14px}
.legal-block dt{color:var(--muted)}
.legal-block dd{margin:0}
@media(max-width:900px){.legal{grid-template-columns:1fr}}
