/* Iéna 40: white surfaces, precise type, generous image fields. */
:root {
  --ink: #191b19;
  --paper: #ffffff;
  --line: #c9cbc3;
  --muted: #62665e;
  --night: #151715;
  --light: #f6f6ef;
  --gutter: clamp(22px, 5.5vw, 92px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { padding: 0; border: 0; border-radius: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
img { display: block; max-width: 100%; }
figure, p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-weight: 400; }
::selection { color: var(--paper); background: var(--ink); }
.skip { position: fixed; z-index: 100; left: 20px; top: -100px; padding: 12px; background: var(--paper); }
.skip:focus { top: 12px; }
.line-arrow { display: inline-block; width: 26px; height: 26px; flex-shrink: 0; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.line-arrow path { vector-effect: non-scaling-stroke; }
.eyebrow { font-size: 12px; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; }
.title-accent { font: inherit; color: var(--muted); }

/* Navigation stays light, with the original mark and numbered text. */
header { --nav-muted: #a7ada2; position: fixed; z-index: 20; inset: 0 0 auto; height: 88px; padding: 14px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 28px; color: var(--light); background: #151715f0; border-bottom: 1px solid #ffffff21; transition: color .25s ease, background-color .25s ease, border-color .25s ease; }
.brand { position: relative; z-index: 2; flex: none; }
.brand img { width: 102px; height: auto; filter: invert(1); transition: filter .25s ease; }
header.is-light { --nav-muted: var(--muted); color: var(--ink); background: #fffffff5; border-bottom-color: #191b191a; }
header.is-light .brand img { filter: none; }
body.menu-open header { --nav-muted: #a7ada2; color: var(--light); background: var(--night); border-bottom-color: #ffffff21; }
body.menu-open .brand img { filter: invert(1); }
#main-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
#main-nav a { display: flex; align-items: baseline; gap: 8px; min-height: 44px; padding: 11px 0; font-size: 14px; }
.nav-number { font-size: 12px; color: var(--nav-muted); font-variant-numeric: tabular-nums; }
.nav-label { position: relative; min-width: 0; }
.nav-label::after { content: ''; position: absolute; inset: auto 0 -6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
#main-nav a:hover .nav-label::after, #main-nav a[aria-current="location"] .nav-label::after { transform: scaleX(1); }
.contact-nav { display: flex; align-items: center; gap: 22px; min-height: 44px; font-size: 14px; }
.contact-nav .line-arrow { width: 22px; height: 22px; }
.menu { display: none; }
.burger-lines { position: relative; display: block; width: 26px; height: 22px; }
.burger-lines i { position: absolute; left: 0; width: 26px; height: 1px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.burger-lines i:first-child { top: 7px; }
.burger-lines i:last-child { top: 15px; }
.menu-open .burger-lines i:first-child { top: 11px; transform: rotate(45deg); }
.menu-open .burger-lines i:last-child { top: 11px; transform: rotate(-45deg); }

/* The hero retains independent photo and foreground motion. */
.hero { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1.04fr 1fr; align-items: center; gap: 5%; min-height: 780px; height: 100svh; max-height: 1080px; padding: 148px var(--gutter) 76px; color: var(--light); background: var(--night); }
.hero-copy { position: relative; z-index: 2; min-width: 0; transform: translate3d(0, var(--hero-copy-y, 0px), 0); will-change: transform; }
.hero-signature { width: clamp(300px, 31vw, 460px); max-width: 100%; margin-bottom: 34px; line-height: 1; transform: translate3d(0, var(--signature-y, 0px), 0); }
.hero-signature img { width: 100%; height: auto; filter: invert(1); }
.hero .eyebrow { color: #c2c8bc; margin-bottom: 22px; }
.hero-statement { font-size: clamp(27px, 2.7vw, 42px); line-height: 1.16; letter-spacing: -.04em; }
.hero-statement .title-accent { color: #c5cbbf; }
.hero .intro { margin: 24px 0 18px; color: #c2c6bd; font-size: 16px; line-height: 1.6; }
.text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 40px; min-height: 48px; min-width: 230px; padding: 12px 0; font-size: 14px; border-bottom: 1px solid currentColor; }
.text-link .line-arrow, .contact-nav .line-arrow, .doc-link .line-arrow, .contact-details .line-arrow { transition: transform .4s var(--ease); }
.text-link:hover .line-arrow, .contact-nav:hover .line-arrow, .doc-link:hover .line-arrow, .contact-details a:hover .line-arrow { transform: translate(3px, -3px); }
.hero .text-link:hover .line-arrow { transform: translateY(4px); }
.hero-grid { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent calc(50% - .5px), #ffffff09 50%, transparent calc(50% + .5px)); }
.hero-background { --hero-parallax-y: -12.8571%; position: absolute; inset: -20% 0; z-index: -1; overflow: hidden; pointer-events: none; transform: translate3d(0, var(--hero-parallax-y), 0); will-change: transform; }
.hero-background-photo { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 45%; transform-origin: 55% 45%; animation: hero-photo-approach 16s ease-in-out infinite alternate; animation-play-state: paused; will-change: transform; }
.hero-background::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #0e100ee8 0%, #0e100ed4 100%); }
.hero-background.is-moving .hero-background-photo { animation-play-state: running; }
@keyframes hero-photo-approach { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-art { position: relative; width: 100%; height: auto; aspect-ratio: 1000 / 1071; transform: translate3d(0, var(--drawing-y, 0px), 0); transition: none; }
.hero-art > img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1) invert(1); opacity: .84; }
.pencil-ready .hero-art > img { opacity: .07; }
.hero-art > .facade-pencil { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: none; opacity: .82; pointer-events: none; }
.hero-art.pencil-playing > .facade-source { opacity: .07; transition: opacity 1.7s ease; }
.hero-art.pencil-playing > .facade-pencil { opacity: .82; transition: opacity 1.7s ease; }
.hero-art.pencil-settling > .facade-source { opacity: .84; }
.hero-art.pencil-settling > .facade-pencil { opacity: 0; }
.pencil-entry { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: hidden; fill: none; stroke: #e7e6df; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; animation: entry-fade .8s ease 2.1s both; }
.pencil-entry path { opacity: 0; stroke-dasharray: 1; stroke-dashoffset: 1; animation: entry-draw 1.7s cubic-bezier(.33, 0, .24, 1) .1s both; }
.pencil-entry { transform: translate3d(0, var(--drawing-y, 0px), 0); }
@keyframes entry-draw { 0% { stroke-dashoffset: 1; opacity: 0; } 6% { opacity: .55; } 100% { stroke-dashoffset: 0; opacity: .55; } }
@keyframes entry-fade { from { opacity: 1; } to { opacity: 0; } }

/* A consistent grid and type scale carry the six sections. */
.section { padding: clamp(56px, 7vw, 112px) var(--gutter); }
.section-top { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding-top: 20px; margin-bottom: clamp(38px, 5vw, 72px); border-top: 1px solid var(--line); }
.section-top > span { font-size: 12px; color: var(--muted); }
.section-top.reveal { position: relative; opacity: 1; transform: none; border-top-color: transparent; }
.section-top.reveal::before { content: ''; position: absolute; inset: -1px 0 auto; height: 1px; background: var(--line); transform: scaleX(0); transform-origin: left; transition: transform 1.15s var(--ease); }
.section-top.reveal.reveal-from-top::before { transform-origin: right; }
.section-top.reveal.is-visible::before { transform: scaleX(1); }
.section-top.reveal > * { opacity: 0; transform: translateY(var(--reveal-shift, 14px)); transition: opacity .6s ease .15s, transform .8s var(--ease) .15s; }
.section-top.reveal.is-visible > * { opacity: 1; transform: none; }
h2 { max-width: 22ch; font-size: clamp(40px, 4.65vw, 76px); font-weight: 500; line-height: 1.06; letter-spacing: -.045em; text-wrap: balance; overflow-wrap: break-word; }
.title-line { display: block; overflow: hidden; padding-bottom: .13em; margin-bottom: -.13em; }
.title-line-inner { display: block; transition: transform 1s var(--ease), opacity .7s ease; transition-delay: calc(var(--line-index, 0) * 90ms); }
.title-line:nth-child(2) { --line-index: 1; }
.title-line:nth-child(3) { --line-index: 2; }
.title-motion:not(.is-visible) .title-line-inner { opacity: 0; transform: translate3d(0, var(--title-shift, 115%), 0); }
.reveal-from-top { --reveal-shift: -16px; --title-shift: -115%; --image-clip: 12% 0 0; }
.split-heading { display: grid; grid-template-columns: 1.7fr 1fr; align-items: end; gap: 7%; margin-bottom: clamp(38px, 5vw, 72px); }
.split-heading > p { max-width: 38ch; font-size: 16px; color: var(--muted); }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 28px 0; border-block: 1px solid var(--line); margin-bottom: 48px; }
.metrics strong { display: block; font-size: clamp(25px, 3.25vw, 48px); line-height: 1.15; letter-spacing: -.045em; font-weight: 400; font-variant-numeric: tabular-nums; }
.metrics small { font-size: .55em; }
.metrics span { display: block; margin-top: 12px; max-width: 26ch; font-size: 12px; line-height: 1.55; color: var(--muted); }
.metrics.reveal { opacity: 1; transform: none; }
.metrics.reveal > div { opacity: 0; transform: translateY(var(--reveal-shift, 28px)); transition: opacity .7s ease, transform 1s var(--ease); transition-delay: calc(var(--metric-order, 0) * 85ms); }
.metrics.reveal > div:nth-child(2) { --metric-order: 1; }
.metrics.reveal > div:nth-child(3) { --metric-order: 2; }
.metrics.reveal > div:nth-child(4) { --metric-order: 3; }
.metrics.reveal.is-visible > div { opacity: 1; transform: none; }
.project-picture { margin-inline: calc(-1 * var(--gutter)); }
.project-frame { position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 1844 / 853; background: var(--paper); }
.scroll-aperture { clip-path: inset(calc(var(--frame-inset, 0px) * .25) var(--frame-inset, 0px)); }
.scroll-aperture:focus-within, .zoom:focus-visible .scroll-aperture { clip-path: none; }
.project-frame img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.project-picture figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 24px; padding: 16px var(--gutter) 0; font-size: 12px; color: var(--muted); }
.parallax-media { transform: translate3d(0, var(--parallax-y, 0px), 0) scale(var(--parallax-scale, 1.2)); }
.parallax-media.is-parallax-active { will-change: transform; }
.reveal { opacity: 0; transform: translateY(var(--reveal-shift, 16px)); transition: opacity .75s ease, transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Image-led layouts with a clear white surface through the carnet. */
.spaces { padding-top: 36px; }
.gallery-feature { display: grid; grid-template-columns: 1.45fr 1fr; align-items: start; gap: 32px; margin-bottom: clamp(64px, 8vw, 120px); }
.gallery-feature figure:nth-child(2) { margin-top: 96px; }
.gallery-feature figure.reveal { transform: none; }
.zoom { display: block; width: 100%; text-align: left; min-width: 0; }
.image-window { display: block; overflow: hidden; isolation: isolate; background: var(--paper); }
.zoom img { width: 100%; height: auto; object-fit: cover; }
.gallery-feature figure:first-child img { aspect-ratio: 4 / 3; }
.gallery-feature figure:nth-child(2) img { aspect-ratio: 4 / 5; }
.gallery-feature .image-window { position: relative; aspect-ratio: 4 / 3; }
.gallery-feature figure:nth-child(2) .image-window { aspect-ratio: 4 / 5; }
.gallery-feature .image-window img { position: absolute; inset: 0; width: 100%; height: 100%; }
.zoom > span:not(.image-window) { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.zoom b { font-weight: 400; flex: none; }
.zoom .line-arrow { width: 22px; height: 22px; transition: transform .35s var(--ease); }
.zoom:hover .line-arrow { transform: translate(2px, -2px); }
.project-carnet { background: var(--paper); isolation: isolate; }
.gallery-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 24px 0 32px; border-top: 1px solid var(--line); }
.gallery-toolbar > p { font-size: clamp(24px, 2.6vw, 36px); letter-spacing: -.035em; }
.gallery-toolbar > div { display: flex; gap: 28px; }
.filter { position: relative; display: flex; align-items: baseline; gap: 10px; min-height: 44px; padding: 10px 0; font-size: 14px; color: var(--muted); transition: color .25s ease; }
.filter small { font-size: 12px; font-variant-numeric: tabular-nums; }
.filter::after { content: ''; position: absolute; inset: auto 0 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.filter.active { color: var(--ink); }
.filter.active::after, .filter:hover::after { transform: scaleX(1); }
html.gallery-changing { overflow-anchor: none; }
.gallery-stage { position: relative; display: flow-root; min-width: 0; overflow-anchor: none; }
.gallery-stage.is-switching { overflow: hidden; }
.gallery-stage.is-switching .gallery { will-change: opacity; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 48px 32px; }
.gallery .image-window { position: relative; aspect-ratio: var(--photo-ratio, 4 / 3); }
.gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery.chantier-gallery img { object-fit: contain; mix-blend-mode: normal; }
.gallery-snapshot { position: absolute; inset: 0 0 auto; z-index: 1; pointer-events: none; }
.gallery-snapshot .parallax-media { will-change: auto; }
.image-index { flex: none; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.gallery .image-caption { display: flex; flex: 1; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; font-weight: 400; }
.more { display: flex; justify-content: space-between; align-items: center; gap: 48px; width: min(100%, 420px); margin: 48px auto 0; padding: 18px 0; border-bottom: 1px solid var(--ink); min-height: 48px; font-size: 14px; }
.more > span { font-size: 22px; }
.caption { margin-top: 28px; max-width: 70ch; font-size: 12px; line-height: 1.65; color: var(--muted); }

/* Address captions remain outside the moving photograph. */
.address-layout { display: grid; grid-template-columns: 1fr 1.35fr; gap: 9%; align-items: center; }
.address h2 { font-size: clamp(42px, 5.3vw, 82px); }
.address-layout p { margin: 28px 0 20px; }
.address-image { min-width: 0; }
.address-photo { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.address-photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.address-image figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; margin-top: 16px; font-size: 12px; color: var(--muted); }
.map-block { display: grid; grid-template-columns: 1fr 2fr; gap: 16px 40px; margin-top: 80px; padding-top: 24px; border-top: 1px solid var(--line); }
.map-heading { display: flex; align-items: flex-start; flex-direction: column; gap: 24px; }
.map-heading > span { max-width: 12ch; font-size: 28px; line-height: 1.15; letter-spacing: -.035em; }
.map-heading button { min-height: 44px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
#location-map { height: 440px; background: var(--paper); z-index: 0; border: 1px solid var(--line); }
.map-help { grid-column: 2; font-size: 12px; color: var(--muted); }
.leaflet-container { font-family: var(--sans); }
.leaflet-bar { border: 1px solid var(--line) !important; border-radius: 0 !important; box-shadow: none !important; }
.leaflet-bar a, .leaflet-touch .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; border-radius: 0 !important; background: var(--paper); color: var(--ink); font-weight: 400; }
.leaflet-control-attribution { background: #ffffffeb !important; font-size: 10px !important; }
.leaflet-control-attribution a { color: #4c5347; }
.leaflet-tooltip { border: 0; box-shadow: none; background: #ffffffe8; color: #4c5347; font: 12px/1.5 var(--sans); padding: 4px 6px; }
.leaflet-tooltip::before { display: none; }
.iena-pin { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--light); border: 1px solid var(--paper); font-size: 18px; box-shadow: 0 0 0 7px #191b1914; }
.iena-label { color: var(--ink); border: 1px solid var(--line); letter-spacing: .06em; padding: 5px 8px; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--paper); border-radius: 0; }
.leaflet-popup-content { font: 14px/1.6 var(--sans); }
.leaflet-popup-content a { color: var(--ink); text-decoration: underline; }
.map-street-label { font: 12px/1.5 var(--sans); color: #6a7164; white-space: nowrap; pointer-events: none; text-align: center; }

/* Partners are credited once, in an aligned set of rows. */
.actors { --line: #ffffff29; --muted: #b6bcb0; background: var(--night); color: var(--light); }
.actors h2 { margin-bottom: 64px; }
.actor { display: grid; grid-template-columns: 42px minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 36px 0; border-top: 1px solid var(--line); }
.actor:last-child { border-bottom: 1px solid var(--line); }
.actor-num { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; align-self: start; padding-top: 3px; }
.actor .eyebrow { color: var(--muted); margin-bottom: 22px; }
.partner-logo { width: 250px; max-width: 100%; }
.partner-logo img { width: 100%; max-height: 104px; height: auto; object-fit: contain; object-position: left; filter: grayscale(1) brightness(0) invert(1); }
.estate-logo { width: 158px; }
.das-logo { width: 180px; }
.actor > p, .actor > a { max-width: 36ch; font-size: 16px; line-height: 1.65; color: #d1d5cb; }
.actor > a { display: inline-flex; align-items: center; gap: 24px; min-height: 44px; }

/* Plans use the same quiet controls as the image index. */
.plan-explorer { border-top: 1px solid var(--line); }
.plan-controls, .plan-title, .plan-meta { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; }
.building-options { display: flex; gap: 24px; }
.building-options button { min-height: 44px; padding: 10px 0; font-size: 14px; color: var(--muted); border-bottom: 1px solid transparent; }
.building-options button[aria-pressed=true] { color: var(--ink); border-bottom-color: currentColor; }
.plan-controls label { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.plan-controls select { min-height: 44px; max-width: 100%; padding: 10px 30px 10px 12px; border: 1px solid var(--line); border-radius: 0; background: transparent; }
.plan-title { border-top: 1px solid var(--line); }
.plan-title h3 { font-size: 24px; letter-spacing: -.025em; }
.plan-title button { min-height: 44px; font-size: 14px; border-bottom: 1px solid var(--line); }
#plan-map { height: 620px; background: #fff; border: 1px solid var(--line); z-index: 0; }
.plan-meta { font-size: 14px; }
.plan-meta p { color: var(--muted); }
.plan-meta a { display: flex; align-items: center; gap: 18px; min-height: 44px; border-bottom: 1px solid var(--line); }
.plan-explorer .caption { margin-top: 0; }
.plans-downloads { margin-top: 48px; }
.doc-link { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: 28px 0; border-top: 1px solid var(--line); }
.doc-link:last-child { border-bottom: 1px solid var(--line); }
.doc-link strong { font-size: 22px; font-weight: 400; letter-spacing: -.025em; }
.doc-link small { display: block; margin-top: 7px; font-size: 12px; color: var(--muted); }

/* One closing signature and a compact footer. */
.contact, .site-footer { --line: #ffffff29; --muted: #b6bcb0; color: var(--light); background: var(--night); }
.contact { padding-bottom: 56px; }
.contact .section-top { margin-bottom: 40px; }
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; align-items: start; gap: 10%; }
.contact-logo-reveal { display: block; width: 210px; max-width: 100%; }
.contact-logo-reveal img { width: 100%; height: auto; filter: invert(1); }
.contact-address { margin-top: 24px; font-size: 16px; line-height: 1.6; color: #c6cdc0; }
.contact-details { display: flex; flex-direction: column; min-width: 0; }
.contact-details a { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 22px; line-height: 1.4; letter-spacing: -.015em; overflow-wrap: anywhere; }
.contact-details a:first-child { padding-top: 0; }
.contact-channel { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.contact-label { font-size: 12px; line-height: 1.5; letter-spacing: .04em; color: var(--muted); }
.contact-details .line-arrow { width: 22px; height: 22px; }
.contact-details.reveal { transition-delay: .12s; }
.site-footer { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 24px; padding: 24px var(--gutter); border-top: 1px solid var(--line); font-size: 12px; line-height: 1.6; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); }
.footer-credit { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.footer-credit span:last-child { white-space: nowrap; }
.footer-credit span:first-child { color: var(--muted); }
.footer-top { display: flex; align-items: center; gap: 10px; min-height: 44px; white-space: nowrap; }
.footer-top .line-arrow { width: 18px; height: 18px; }

/* Original construction photographs on a white full-screen surface. */
#viewer { inset: 0; margin: 0; max-width: none; max-height: none; width: 100%; height: 100dvh; padding: 72px 80px 28px; border: 0; overflow: hidden; overscroll-behavior: contain; background: var(--night); color: var(--light); }
#viewer::backdrop { background: var(--night); }
#viewer[open] { display: flex; align-items: center; justify-content: center; }
#viewer figure { display: flex; flex-direction: column; align-items: center; width: 100%; height: 100%; min-height: 0; min-width: 0; gap: 18px; }
#viewer .photo-stage { flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; touch-action: pan-y pinch-zoom; overflow: hidden; isolation: isolate; }
#viewer img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
#viewer figcaption { flex: none; max-width: 90%; font-size: 14px; line-height: 1.5; text-align: center; }
#viewer .close { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 24px; z-index: 2; min-height: 44px; font-size: 14px; }
#viewer .prev, #viewer .next { position: absolute; z-index: 2; top: 50%; min-width: 48px; min-height: 48px; }
#viewer .prev { left: 12px; }
#viewer .next { right: 12px; }
#viewer.viewer-chantier, #viewer.viewer-chantier .photo-stage { background: var(--paper); color: var(--ink); }
#viewer.viewer-chantier img { mix-blend-mode: normal; }

@media (min-width: 1700px) {
  :root { --gutter: max(92px, calc((100vw - 1516px) / 2)); }
}
@media (max-width: 1100px) {
  .contact-nav { display: none; }
  #main-nav { gap: 20px; }
  .hero { min-height: 760px; }
  .hero-signature { width: 310px; }
  .split-heading { grid-template-columns: 1.5fr 1fr; gap: 5%; }
  .actor { gap: 20px; }
  .site-footer { grid-template-columns: 1fr auto; gap: 16px 28px; }
  .footer-legal { grid-column: 1 / -1; }
}
@media (min-width: 601px) and (max-width: 800px) {
  header { gap: 16px; padding-inline: 24px; }
  #main-nav { gap: 15px; }
  .brand img { width: 80px; }
  #main-nav a { gap: 5px; font-size: 13px; }
  .hero { gap: 3%; min-height: 730px; padding-inline: 32px; }
  .hero-statement { font-size: 26px; }
  .split-heading { grid-template-columns: 1fr; gap: 24px; }
  .split-heading > p { max-width: 55ch; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .metrics strong { font-size: 36px; }
  .contact-layout { gap: 6%; }
  .contact-details a:first-child { font-size: 23px; gap: 12px; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 90px; }
  header { height: 80px; }
  .brand img { width: 86px; }
  .menu { display: flex; align-items: center; gap: 16px; position: relative; z-index: 2; min-height: 44px; font-size: 14px; }
  #main-nav { position: fixed; inset: 80px 0 auto; height: calc(100dvh - 80px); display: flex; align-items: stretch; flex-direction: column; gap: 0; overflow-y: auto; padding: 48px var(--gutter) max(40px, env(safe-area-inset-bottom)); color: var(--light); background: var(--night); visibility: hidden; opacity: 0; transform: translateY(-12px); pointer-events: none; transition: opacity .4s ease, transform .55s var(--ease), visibility .55s; }
  #main-nav a { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: baseline; gap: 22px; padding: 24px 0; border-bottom: 1px solid #ffffff26; font-size: clamp(28px, 8vw, 40px); line-height: 1.2; letter-spacing: -.03em; opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .6s var(--ease); }
  .nav-number { font-size: 12px; letter-spacing: .02em; }
  .nav-label::after { display: none; }
  .menu-open { overflow: hidden; }
  .menu-open #main-nav { visibility: visible; opacity: 1; transform: none; pointer-events: auto; }
  .menu-open #main-nav a { opacity: 1; transform: none; transition-delay: .08s; }
  .menu-open #main-nav a:nth-child(2) { transition-delay: .12s; }
  .menu-open #main-nav a:nth-child(3) { transition-delay: .16s; }
  .menu-open #main-nav a:nth-child(4) { transition-delay: .2s; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 24px; min-height: 0; height: auto; max-height: none; padding: 116px var(--gutter) 32px; }
  .hero-signature { width: min(77vw, 320px); margin-bottom: 26px; }
  .hero .eyebrow { font-size: 12px; letter-spacing: .1em; margin-bottom: 20px; }
  .hero-statement { font-size: clamp(26px, 6.8vw, 34px); }
  .hero .intro { margin: 20px 0 16px; }
  .hero-art { align-self: flex-end; width: min(78%, 330px); }
  .hero-background { inset: 0; --hero-parallax-y: 0px; }
  .hero-background-photo { position: absolute; top: 80px; left: -12.5%; width: 125%; height: auto; object-fit: contain; object-position: center; transform-origin: center; animation-name: hero-photo-mobile-approach; animation-duration: 20s; -webkit-mask-image: linear-gradient(180deg, transparent, #000 8%, #000 90%, transparent); mask-image: linear-gradient(180deg, transparent, #000 8%, #000 90%, transparent); }
  .hero-background::after { background: linear-gradient(180deg, #0e100ed9, #0e100ed4 48%, #0e100ee3); }
  .section { padding: 54px var(--gutter) 66px; }
  .section-top { margin-bottom: 36px; padding-top: 16px; }
  .section-top > span { display: none; }
  h2 { font-size: clamp(36px, 9.6vw, 54px); line-height: 1.08; letter-spacing: -.045em; }
  .split-heading { grid-template-columns: 1fr; gap: 24px; margin-bottom: 36px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 24px 0; gap: 28px 20px; margin-bottom: 36px; }
  .metrics strong { font-size: clamp(24px, 7.1vw, 36px); }
  .metrics span { margin-top: 10px; }
  .project-picture figcaption { padding-top: 14px; }
  .spaces { padding-top: 20px; }
  .gallery-feature { grid-template-columns: 1fr; gap: 32px; margin-bottom: 56px; }
  .gallery-feature figure:nth-child(2) { width: 100%; margin: 0; }
  .gallery-feature figure:nth-child(2) img { aspect-ratio: 1 / 1; }
  .gallery-feature figure:nth-child(2) .image-window { aspect-ratio: 1 / 1; }
  .gallery-toolbar { align-items: flex-start; gap: 18px; padding: 24px 0; }
  .gallery-toolbar > div { width: 100%; gap: 32px; }
  .gallery { grid-template-columns: 1fr; gap: 34px; }
  .zoom > span:not(.image-window) { padding: 14px 0; }
  .more { margin-top: 34px; width: 100%; }
  .caption { margin-top: 22px; }
  .address-layout { grid-template-columns: 1fr; gap: 36px; }
  .address h2 { font-size: clamp(42px, 12vw, 66px); }
  .address-image figcaption { flex-direction: column; }
  .map-block { grid-template-columns: 1fr; gap: 20px; margin-top: 48px; }
  .map-heading { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
  .map-heading > span { font-size: 22px; }
  .map-heading button { max-width: 145px; }
  #location-map { height: 370px; }
  .map-help { grid-column: 1; }
  .actors h2 { margin-bottom: 40px; }
  .actor { grid-template-columns: 24px minmax(0, 1fr); gap: 20px; padding: 30px 0; }
  .actor > p, .actor > a { grid-column: 2; font-size: 16px; }
  .partner-logo { width: 220px; }
  .estate-logo { width: 145px; }
  .das-logo { width: 165px; }
  .plan-controls { flex-direction: column; align-items: stretch; gap: 20px; }
  .building-options { gap: 32px; }
  .plan-controls label { justify-content: space-between; }
  .plan-controls select { flex: 1; min-width: 0; }
  .plan-title { gap: 16px; }
  .plan-title h3 { font-size: 20px; }
  #plan-map { height: 65svh; min-height: 380px; max-height: 600px; }
  .plan-meta { flex-direction: column; align-items: flex-start; gap: 10px; }
  .doc-link strong { font-size: 20px; }
  .contact { padding-bottom: 36px; }
  .contact .section-top { margin-bottom: 28px; }
  .contact-layout { grid-template-columns: 1fr; gap: 28px; }
  .contact-logo-reveal { width: 175px; }
  .contact-address { margin-top: 20px; }
  .contact-details a { font-size: 18px; padding: 16px 0; }
  .contact-details a:first-child { padding-top: 0; }
  .site-footer { padding: 20px var(--gutter); grid-template-columns: minmax(0,1fr) auto; gap: 12px 16px; }
  .footer-legal { grid-column: 1 / -1; }
  .footer-credit { flex-direction: column; gap: 2px; }
  #viewer { padding: 64px 16px max(86px, calc(env(safe-area-inset-bottom) + 72px)); }
  #viewer .prev, #viewer .next { top: auto; bottom: max(12px, env(safe-area-inset-bottom)); padding: 8px 20px; }
  #viewer .prev { left: 20px; }
  #viewer .next { right: 20px; }
  #viewer figcaption { max-width: 100%; }
}
@keyframes hero-photo-mobile-approach { from { transform: scale(1); } to { transform: scale(1.025); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .title-motion:not(.is-visible) .title-line-inner { opacity: 1; transform: none; }
  .scroll-aperture { clip-path: none; }
  .section-top.reveal::before { transform: none; }
  .section-top.reveal > *, .metrics.reveal > div { opacity: 1; transform: none; }
  .hero-copy, .hero-signature, .hero-art, .hero-background, .parallax-media { transform: none; will-change: auto; }
  .hero-background-photo { animation: none; transform: none; will-change: auto; }
  .pencil-entry, .hero-art > .facade-pencil { display: none; }
  .pencil-ready .hero-art > img, .hero-art.pencil-playing > .facade-source { opacity: .84; }
}

/* Keep the three gallery tabs readable on narrow screens. */
.gallery-toolbar > div { flex-wrap: wrap; gap: 12px 24px; }
