.projects-page{--project-nav-bg:rgba(248,248,246,.9);--project-nav-ink:#242424;--project-nav-strong:#111;--project-nav-shadow:0 16px 42px #0000001a}
html[data-theme="night"] .projects-page{--project-nav-bg:rgba(20,25,32,.8);--project-nav-ink:#eee;--project-nav-strong:#fff}
/* The project collection follows the saved day/night palette. */
html.projects-document,html[data-theme] body.projects-page{background:#f4f2eb;color:#202020;color-scheme:light}
html.projects-document[data-theme="night"],html[data-theme="night"] body.projects-page{background:#000;color:#f4f0e9;color-scheme:dark}
html[data-theme="night"] .projects-page[data-project-view=""] .sh-footer{--footer-bg:#000;--footer-text:#f4f0e9;--footer-muted:#c9c4bc;background:#000}
html[data-theme="night"] .projects-page[data-project-view=""] .sh-footer-panel{background:#000}
html[data-theme] .projects-page :is(.menu-pill,.theme-switch,.language-switch,.mobile-menu-toggle){background:var(--project-nav-bg);color:#242424;border-color:#28282833}
html[data-theme] .projects-page .menu-link{color:#242424}
html[data-theme] .projects-page .menu-link:is(.is-active,:hover){background:#28282812;color:#111}
html[data-theme] .projects-page .theme-switch button[aria-pressed=true]{background:#2828281c;box-shadow:inset 0 0 0 1px #28282814}
html[data-theme] .projects-page .language-switch__option{color:#555}
html[data-theme] .projects-page .language-switch__option.is-current{color:#111}
html[data-theme] .projects-page .brand-mark img{filter:brightness(0)}
.projects-main{padding-top:140px;min-height:85svh;font-family:var(--sh-font,"Helvetica Neue",Arial,sans-serif)}
.projects-main [hidden]{display:none!important}
.project-gallery{padding:20px clamp(20px,5vw,90px) 90px}
.projects-page-heading{max-width:1500px;margin:0 auto 18px;font:500 clamp(28px,3vw,42px)/1.1 var(--sh-font,"Helvetica Neue",Arial,sans-serif);letter-spacing:-.04em}
.project-stack{max-width:1500px;margin:auto;--card-height:clamp(400px,62svh,700px);--card-reveal:145px;position:relative;padding-top:15px}
.project-category-card{display:block;position:relative;height:var(--card-height);padding:38px clamp(26px,4vw,60px);border:0;border-radius:32px;background:#ececec;color:#202020;text-decoration:none;box-shadow:0 -5px 25px #00000008,0 16px 40px #0000000c;transition:transform .6s cubic-bezier(.22,1,.36,1),box-shadow .6s;isolation:isolate}
.project-category-card+.project-category-card{margin-top:calc(var(--card-reveal) - var(--card-height));background:#e5e5e5}
.project-category-card h2{font:500 clamp(30px,3.6vw,54px)/1.12 var(--sh-font,"Helvetica Neue",Arial,sans-serif);letter-spacing:-.045em;margin:0;padding-right:50px;max-width:1000px}
.category-arrow{position:absolute;right:clamp(26px,4vw,60px);top:40px;font-size:28px;font-weight:400;line-height:1}
@media(hover:hover) and (pointer:fine){.project-category-card:hover{transform:translateY(-20px);box-shadow:0 -8px 30px #0000000d,0 20px 45px #00000014}.project-category-card:hover .category-arrow{transform:translate(3px,-3px)}}
.category-arrow{transition:transform .35s}
.project-category-card:focus-visible{outline:3px solid #bb8541;outline-offset:5px;z-index:2}
.project-category-page{padding-bottom:60px}.project-category-surface{position:relative;background:#ececec;min-height:calc(100svh - 140px);padding:90px clamp(26px,6vw,90px) 60px}
.projects-main[data-project-category="contenu-de-marque"] .project-category-surface{background:#e5e5e5}
.project-category-surface h1{font:500 clamp(38px,6vw,86px)/1.08 var(--sh-font,"Helvetica Neue",Arial,sans-serif);letter-spacing:-.045em;max-width:1150px;margin:0;color:#202020;overflow-wrap:normal}
.project-return{display:inline-flex;align-items:center;gap:12px;min-height:44px;position:absolute;top:20px;left:clamp(26px,6vw,90px);color:#444;text-decoration:none;font-size:14px;border-radius:99px;padding:8px 15px;background:#ffffff80;border:1px solid #00000015}
.project-return:hover{background:#fff}.project-return:focus-visible{outline:2px solid #bb8541;outline-offset:4px}.project-category-surface h1:focus{outline:none}
.project-collection:empty{display:none}
.project-morph{position:fixed;z-index:9;pointer-events:none;border:0;box-sizing:border-box;overflow:hidden;will-change:left,top,width,height,border-radius}
.project-morph-title{position:fixed;z-index:10;pointer-events:none;margin:0;line-height:1.12;font-weight:500;letter-spacing:-.045em;color:#202020;font-family:var(--sh-font,"Helvetica Neue",Arial,sans-serif);will-change:left,top,font-size,width}
@media(max-width:1000px){.project-stack{--card-reveal:130px}.project-category-card{padding-top:32px}.category-arrow{top:34px}}
@media(max-width:760px){.projects-main{padding-top:100px}.project-gallery{padding:20px 20px 60px}.project-stack{--card-height:clamp(340px,58svh,540px);--card-reveal:135px}.project-category-card{border-radius:25px;padding:27px 24px}.project-category-card h2{font-size:32px;max-width:500px;padding-right:32px}.category-arrow{right:22px;top:29px;font-size:24px}.project-category-surface{min-height:calc(100svh - 100px);padding:92px 24px 50px}.project-return{left:24px}.project-category-surface h1{font-size:clamp(38px,8vw,60px)}}
@media(prefers-reduced-motion:reduce){.project-category-card,.category-arrow{transition:none!important}.project-category-card:hover{transform:none}}

/* Expanded category panels start at the viewport edge, beneath the floating menu. */
.projects-main:not([data-project-category=""]){padding-top:0}
.project-category-surface{min-height:100svh;padding-top:230px}
.project-return{top:155px}
.project-category-card h2{padding-right:0}
@media(max-width:760px){.project-category-surface{min-height:100svh;padding-top:185px}.project-return{top:115px}.project-category-card h2{padding-right:0}}

/* Only the Sites web detail becomes a photographic scroll scene. */
.project-web-background{display:none;position:absolute;inset:0;pointer-events:none;transform-origin:50% 42%;will-change:transform}
.project-web-background img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 42%;transition:opacity .4s ease}
.project-web-day{opacity:0}html[data-theme="light"] .project-web-day{opacity:1}
.projects-main[data-project-category="sites-web"] .project-category-page{min-height:150svh;padding-bottom:0;position:relative}
.projects-main[data-project-category="sites-web"] .project-category-surface{position:sticky;top:0;height:100svh;min-height:100svh;overflow:hidden;background:#16202a;padding:130px clamp(24px,5vw,80px) 30px;isolation:isolate}
.projects-main[data-project-category="sites-web"] .project-web-background,.project-morph .project-web-background{display:block}
.projects-main[data-project-category="sites-web"] .project-category-surface::after{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background:linear-gradient(180deg,#0003,transparent 30%,transparent 80%,#0003)}
.projects-main[data-project-category="sites-web"] .project-category-surface h1{position:relative;z-index:1;font-size:clamp(32px,3.5vw,54px);color:#fff;text-shadow:0 2px 16px #0005;max-width:75%}
.projects-main[data-project-category="sites-web"] .project-return{top:auto;bottom:32px;left:clamp(24px,5vw,80px);z-index:1;background:rgba(18,23,28,.74);color:#fff;border-color:#ffffff40;backdrop-filter:blur(18px)}
html[data-theme="light"] .projects-main[data-project-category="sites-web"] .project-category-surface h1{color:#fff;text-shadow:0 2px 16px #0005}
html[data-theme="light"] .projects-main[data-project-category="sites-web"] .project-return{background:rgba(247,245,238,.85);color:#222;border-color:#0003}
html[data-theme="night"] .projects-page :is(.menu-pill,.theme-switch,.language-switch,.mobile-menu-toggle){background:var(--project-nav-bg);color:#f4f0e9;border-color:#ffffff40}
html[data-theme="night"] .projects-page :is(.menu-link,.language-switch__option){color:#eee}
html[data-theme="night"] .projects-page .menu-link:is(.is-active,:hover){background:#ffffff20;color:#fff}
html[data-theme="night"] .projects-page .theme-switch button[aria-pressed=true]{background:#ffffff20}
html[data-theme="night"] .projects-page .brand-mark img{filter:none}
html[data-theme="night"] .projects-page .language-switch__option.is-current{color:#fff}
@media(max-width:760px){.projects-main[data-project-category="sites-web"] .project-category-surface{padding-top:115px}.projects-main[data-project-category="sites-web"] .project-return{bottom:80px}.projects-main[data-project-category="sites-web"] .project-category-surface h1{font-size:34px}}
@media(prefers-reduced-motion:reduce){.projects-main[data-project-category="sites-web"] .project-category-page{min-height:100svh}.project-web-background{will-change:auto;transform:none!important}.project-web-background img{transition:none}}

/* The first stacked card previews the same scene as its detail page. */
.project-category-card[data-category="sites-web"]{overflow:hidden}
.project-category-card[data-category="sites-web"] .project-web-background{display:block;border-radius:inherit}
.project-category-card[data-category="sites-web"] h2{position:relative;z-index:1;color:#fff;text-shadow:0 2px 15px #0005}
html[data-theme="light"] .project-category-card[data-category="sites-web"] h2{color:#fff;text-shadow:0 2px 15px #0005}

/* One photograph per theme: continuous optical framing, no image raccord. */
.projects-main[data-project-category="sites-web"] .project-category-page{min-height:300svh}
.projects-main[data-project-category="sites-web"] .project-category-surface h1{pointer-events:none}
@media(max-aspect-ratio:1.3){
 .projects-main[data-project-category="sites-web"] .project-category-page{min-height:240svh}
 .projects-main[data-project-category="sites-web"] .project-category-surface .project-web-background img{object-fit:contain;object-position:center}
 .projects-main[data-project-category="sites-web"] .project-category-surface .project-web-background{transform-origin:50% 50%}
}
@media(prefers-reduced-motion:reduce){.projects-main[data-project-category="sites-web"] .project-category-page{min-height:100svh}}

/* Keep the computer zoom independent from the collection below it. */
.projects-main[data-project-category="sites-web"] .project-category-page{min-height:0}
.projects-main[data-project-category="sites-web"] .project-hero-scene{height:300svh;position:relative}
.project-collection{display:none}
.projects-main[data-project-category="sites-web"] .project-collection{display:block;position:relative;padding:110px 24px 100px;overflow:hidden;background:#060605 url('/assets/project-cards-night.png') center/cover no-repeat}
html[data-theme="light"] .projects-main[data-project-category="sites-web"] .project-collection{background-image:url('/assets/project-cards-day.png');background-color:#fff}
.web-project-sheets{position:relative;max-width:960px;height:780px;margin:0 auto;perspective:1500px;--sheet-gap:110px;--sheet-height:440px}
.web-project-sheet{appearance:none;position:absolute;inset:0 0 auto;width:100%;height:var(--sheet-height);padding:28px;border-radius:32px;border:1px solid #ffffff36;background:linear-gradient(145deg,#30302ee8,#151513eb);box-shadow:0 -8px 25px #00000016,0 24px 60px #0004;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);cursor:pointer;transform-origin:50% 0;transform:translateY(calc(var(--sheet-index)*var(--sheet-gap))) rotateX(-7deg);transition:transform .85s cubic-bezier(.22,1,.36,1),opacity .55s,box-shadow .5s;z-index:calc(1 + var(--sheet-index));color:inherit}
.web-project-sheet__panel{display:block;height:100%;border:1px solid #ffffff0d;border-radius:22px;background:linear-gradient(135deg,#ffffff05,#00000012)}
html[data-theme="light"] .web-project-sheet{border-color:#ffffffc9;background:linear-gradient(145deg,#fffffff0,#eeece5ef);box-shadow:0 -6px 24px #5d461014,0 24px 60px #5d461024}
html[data-theme="light"] .web-project-sheet__panel{border-color:#00000008;background:linear-gradient(135deg,#ffffff70,#c5bbab10)}
.web-project-sheet.is-selected{transform:translateY(0) rotateX(0);z-index:6;box-shadow:0 30px 80px #0003}
.web-project-sheet.is-before{transform:translateY(-110%) scale(.94);opacity:0;pointer-events:none}
.web-project-sheet.is-after{transform:translateY(820px) rotateX(-7deg);opacity:0;pointer-events:none}
.web-project-sheet:focus-visible{outline:2px solid #e6ad48;outline-offset:5px}
@media(hover:hover){.web-project-sheet:not(.is-selected):not(.is-before):not(.is-after):hover{transform:translateY(calc(var(--sheet-index)*var(--sheet-gap) - 12px)) rotateX(-3deg)}}
@media(max-aspect-ratio:1.3){.projects-main[data-project-category="sites-web"] .project-hero-scene{height:240svh}}
@media(max-width:760px){.projects-main[data-project-category="sites-web"] .project-collection{padding:85px 20px 60px}.web-project-sheets{--sheet-gap:95px;--sheet-height:360px;height:660px}.web-project-sheet{border-radius:26px;padding:18px}.web-project-sheet__panel{border-radius:18px}}
@media(prefers-reduced-motion:reduce){.projects-main[data-project-category="sites-web"] .project-hero-scene{height:100svh}.web-project-sheet{transition:none;transform:translateY(calc(var(--sheet-index)*var(--sheet-gap)))}.web-project-sheet.is-selected{transform:none}.web-project-sheet.is-before,.web-project-sheet.is-after{visibility:hidden}}

/* Original screenshots are served byte-for-byte, with no crop or enlargement. */
.web-project-presentation{max-width:960px;margin:auto;color:#f8f6f0}
html[data-theme="light"] .web-project-presentation{color:#202020}
.web-project-client{min-height:40px;margin:0 0 24px;text-align:center;font:500 clamp(25px,3vw,36px)/1.12 var(--sh-font,"Helvetica Neue",Arial,sans-serif);letter-spacing:-.035em}
.web-project-sheets{--sheet-height:min(548px,calc((100vw - 48px)/1.75));height:calc(var(--sheet-height) + 340px);transition:height .85s cubic-bezier(.22,1,.36,1)}
.web-project-sheets[data-active]:not([data-active=""]){height:var(--sheet-height)}
.web-project-sheet{padding:0;overflow:hidden;background:#070707!important}
.web-project-sheet__panel{border:0;border-radius:inherit;height:100%;background:#070707!important;overflow:hidden}
.web-project-sheet__panel img{display:block;width:100%;height:100%;object-fit:contain;image-rendering:auto}
.web-project-caption{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:24px}
.web-project-sector{margin:0;font:400 16px/1.5 var(--sh-font,"Helvetica Neue",Arial,sans-serif)}
.web-project-discover{min-height:48px;text-decoration:none;flex-shrink:0}
html[data-theme] .web-project-discover::before{background:conic-gradient(from var(--gold-angle),transparent 0deg,transparent 235deg,#c17a21 270deg,#f39a35 300deg,#ffe0a0 326deg,#e78a25 340deg,transparent 360deg);padding:1.5px;opacity:1;animation:gold-border-orbit 5s linear infinite}
.web-project-discover:focus-visible{outline:2px solid #d49144;outline-offset:4px}
@media(max-width:760px){.web-project-sheets{--sheet-height:calc((100vw - 40px)/1.75);--sheet-gap:70px;height:calc(var(--sheet-height) + 220px)}.web-project-client{min-height:32px}.web-project-caption{gap:12px;flex-wrap:wrap}.web-project-discover{margin-left:auto}.web-project-sector{font-size:14px}}
@media(prefers-reduced-motion:reduce){.web-project-sheets{transition:none}html[data-theme] .web-project-discover::before{animation:none}}

/* Static themed photographs in the gallery and detail page. */
.projects-main[data-project-category="sites-web"] .project-hero-scene{height:auto}
.projects-main[data-project-category="sites-web"] .project-category-surface{position:relative;height:100svh;min-height:600px}
.projects-main[data-project-category="sites-web"] .project-category-surface .project-web-background{transform:none!important;will-change:auto}
.projects-main[data-project-category="sites-web"] .project-category-surface .project-web-background img{object-fit:cover;object-position:50% 50%}
.project-category-card[data-category="sites-web"]{background:#f7f7f4;isolation:isolate;overflow:hidden}
html[data-theme="night"] .project-category-card[data-category="sites-web"] h2{color:#fff;text-shadow:0 2px 15px #0005}
.project-category-card[data-category="sites-web"] .project-web-background{display:block;transform:none;will-change:auto}
.project-category-card[data-category="sites-web"] .project-web-background img{object-position:50% 80%}
@media(max-width:760px){.projects-main[data-project-category="sites-web"] .project-category-surface{height:85svh;min-height:500px}}

/* Production visuelle uses its own themed photograph in both the stack and hero. */
.project-visual-background{display:none;position:absolute;inset:0;pointer-events:none;border-radius:inherit}
.project-visual-background img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;transition:opacity .4s ease}
.project-visual-day{opacity:0}
html[data-theme="light"] .project-visual-day{opacity:1}
.project-category-card[data-category="contenu-de-marque"]{overflow:hidden;background:#372a1d}
.project-category-card[data-category="contenu-de-marque"] .project-visual-background,.projects-main[data-project-category="contenu-de-marque"] .project-visual-background,.project-morph .project-visual-background{display:block}
.project-category-card[data-category="contenu-de-marque"] h2{position:relative;z-index:1;color:#fff;text-shadow:0 2px 15px #0005}
html[data-theme="light"] .project-category-card[data-category="contenu-de-marque"] h2{color:#fff;text-shadow:0 2px 15px #0005}
.projects-main[data-project-category="contenu-de-marque"] .project-category-page{padding-bottom:0}
.projects-main[data-project-category="contenu-de-marque"] .project-hero-scene{height:auto}
.projects-main[data-project-category="contenu-de-marque"] .project-category-surface{position:relative;height:100svh;min-height:600px;overflow:hidden;background:#372a1d;padding:130px clamp(24px,5vw,80px) 30px;isolation:isolate}
.projects-main[data-project-category="contenu-de-marque"] .project-category-surface::after{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background:linear-gradient(180deg,#0003,transparent 30%,transparent 80%,#0003)}
.projects-main[data-project-category="contenu-de-marque"] .project-category-surface h1{position:relative;z-index:1;font-size:clamp(32px,3.5vw,54px);color:#fff;text-shadow:0 2px 16px #0005;max-width:75%;pointer-events:none}
.projects-main[data-project-category="contenu-de-marque"] .project-return{top:auto;bottom:32px;left:clamp(24px,5vw,80px);z-index:1;background:rgba(18,23,28,.74);color:#fff;border-color:#ffffff40;backdrop-filter:blur(18px)}
html[data-theme="light"] .projects-main[data-project-category="contenu-de-marque"] .project-category-surface h1{color:#fff;text-shadow:0 2px 16px #0005}
html[data-theme="light"] .projects-main[data-project-category="contenu-de-marque"] .project-return{background:rgba(247,245,238,.85);color:#222;border-color:#0003}
@media(max-width:760px){.projects-main[data-project-category="contenu-de-marque"] .project-category-surface{height:85svh;min-height:500px;padding-top:115px}.projects-main[data-project-category="contenu-de-marque"] .project-return{bottom:80px}.projects-main[data-project-category="contenu-de-marque"] .project-category-surface h1{font-size:34px}}
@media(prefers-reduced-motion:reduce){.project-visual-background img{transition:none}}

/* Fade the collection into the footer's day/night background. */
.projects-main[data-project-category="sites-web"] .project-collection::after{content:"";position:absolute;inset:auto 0 0;height:90px;background:linear-gradient(180deg,transparent,#000);pointer-events:none}
body.projects-page[data-project-view="sites-web"]>seven-house-footer{background:#000}
html[data-theme="light"] .projects-main[data-project-category="sites-web"] .project-collection::after{background:linear-gradient(180deg,transparent,#fff)}
html[data-theme="light"] body.projects-page[data-project-view="sites-web"]>seven-house-footer{background:#fff}

/* The showcase scrolls over the pinned hero, as the second home section does. */
html[data-theme] .projects-main[data-project-category="sites-web"] .project-collection{padding:0;background:#211b16;isolation:isolate;z-index:2}
html[data-theme] .projects-main[data-project-category="sites-web"] #project-showcase .projects-heading{color:#fff;text-shadow:0 2px 18px #0004}
@media(prefers-reduced-motion:no-preference){
 .projects-main[data-project-category="sites-web"] .project-hero-scene{position:sticky;top:0;z-index:0}
}
.projects-main[data-project-category="sites-web"] .project-collection::after{z-index:4;height:70px}
.project-description{color:var(--editor-ink);align-content:start}
.project-description h3{font:600 20px/1.25 var(--sh-font,"Helvetica Neue",Arial,sans-serif);margin:0 0 12px;overflow-wrap:anywhere}
.project-description p{font:400 14px/1.5 var(--sh-font,"Helvetica Neue",Arial,sans-serif);margin:0 0 8px;color:var(--editor-muted)}
.project-description .gold-pill{margin-top:18px;padding:12px 14px;font-size:12px;text-align:center;white-space:normal}
@media(max-width:600px),(max-width:900px) and (orientation:landscape){
 .studio-editor .editor-pages{display:block}
 .studio-editor .editor-body{display:flex;flex-direction:column;height:780px}
 .studio-editor .editor-pages .editor-tabs{display:none}
 .studio-editor .project-description{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;padding:12px;margin:0}
 .project-description h3{flex-basis:100%;margin:0;font-size:18px}
 .project-description p{margin:0;font-size:12px}
 .project-description .gold-pill{margin:0 0 0 auto;padding:8px 12px}
 .studio-editor .editor-canvas{flex:1;min-height:0}
}

/* The return link belongs directly beneath the title on both hero photographs. */
html[data-theme] .projects-main:is([data-project-category="sites-web"],[data-project-category="contenu-de-marque"]) .project-return{position:relative;inset:auto;display:inline-flex;min-height:44px;margin-top:8px;padding:8px 0;gap:0;z-index:1;border:0;border-radius:0;background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;color:#fff;font:400 14px/1.4 var(--sh-font,"Helvetica Neue",Arial,sans-serif);text-shadow:0 1px 8px #000a;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:5px;transition:text-decoration-color 180ms ease}
html[data-theme] .projects-main .project-return:hover{background:transparent;text-decoration-color:currentColor}
html[data-theme] .projects-main .project-return:focus-visible{outline:2px solid #fff;outline-offset:4px;text-decoration-color:currentColor}
@media(prefers-reduced-motion:reduce){.project-return{transition:none!important}}

/* Production visuelle: the supplied film keeps its original colours in both themes. */
.project-visual-hero-video{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center;opacity:0}
.project-visual-background.has-video-frame .project-visual-hero-video{opacity:1}
