/* Le Bel Étage — a conceptual Parisian residence · Aya Muse Atelier
   Direction: magazine masthead, Aman restraint, Ritz-Carlton collage. */

:root {
  /* Taken from the photographs */
  --ivoire: #F4EFE9;
  --pierre: #E2C9AE;
  --ardoise: #3D4D56;
  --bouteille: #353D2A;
  --bordeaux: #4E241B;
  --lie: #613129;
  --rose: #BC8475;
  --laiton: #D6B477;
  --noyer: #6A4128;

  /* Interface */
  --white: #FFFFFF;
  --paper: #F4F0EA;
  --ink: #1C1C1C;
  --text: #3A3A3A;
  --muted: #77716A;
  --line: rgba(28, 28, 28, .14);

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(20px, 5vw, 80px);
  --max: 1360px;
  --pad: clamp(64px, 7vw, 96px);
  --room-gap: clamp(100px, 9vw, 132px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
em { font-style: italic; }
h1, h2, h3 { margin: 0; font-weight: 400; color: var(--ink); }
.masthead, .backcover-mast, .rooms-title, .invitation-title, .signature-title, .offer-title, .offer-sum, .title--xl { font-variation-settings: "opsz" 34; }
p { margin: 0; }
figure { margin: 0; }
::selection { background: var(--ink); color: var(--white); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--white); }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

/* ---------- Shared type ---------- */
.kicker, .label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink);
}
.title {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 3.6vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -.005em;
  margin-top: 22px;
}
.title--xl { font-size: clamp(2.4rem, 4.6vw, 4.4rem); max-width: 16ch; }
.standfirst { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 1.6vw, 1.45rem); line-height: 1.5; color: var(--ink); margin-top: 24px; max-width: 34em; }
.body { color: var(--text); }
.section-head { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Opening curtain ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-content: center;
  background: var(--white);
  transition: opacity 1s var(--ease) .2s, visibility 0s linear 1.2s;
}
.curtain-mark { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); color: var(--ink); animation: rise-in 1s var(--ease-out) .1s both; }
body:not(.is-loading) .curtain { opacity: 0; visibility: hidden; }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: 72px; padding: 0 var(--gutter);
  color: var(--ink);
  background: rgba(255, 255, 255, 0);
  transition: background-color .5s var(--ease), border-color .5s var(--ease), height .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.topbar.is-solid { background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--line); height: 62px; }
.monogram { font-family: var(--serif); font-size: 21px; text-decoration: none; letter-spacing: .04em; }
.monogram i { font-style: normal; margin: 0 2px; }
.topbar-note, .topbar-link { font-size: 11px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; }
.topbar-link {
  text-decoration: none; padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size .4s var(--ease), opacity .4s var(--ease);
}
.topbar-link:hover { background-size: 100% 1px; }

/* Where you are in the flat */
.topbar-centre { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; }
.topbar-centre > * { grid-area: 1 / 1; white-space: nowrap; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.whereabouts { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); opacity: 0; transform: translateY(8px); pointer-events: none; }
.topbar.is-solid .whereabouts { opacity: 1; transform: none; }
.topbar.is-solid .topbar-note { opacity: 0; transform: translateY(-8px); }
.whereabouts-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tone, var(--pierre)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); transition: background-color .8s var(--ease); }
.whereabouts-room { font-family: var(--serif); font-style: italic; font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--ink); transition: opacity .3s var(--ease); }
.whereabouts-room.is-swapping { opacity: 0; }

/* ---------- Reveal system ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="mask"] { opacity: 1; transform: none; overflow: hidden; clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease-out); transition-delay: var(--d, 0s); }
[data-reveal="mask"] img { transform: scale(1.08); transition: transform 1.9s var(--ease-out); transition-delay: var(--d, 0s); }
[data-reveal="mask"].is-in { clip-path: inset(0 0 0 0); }
[data-reveal="mask"].is-in img { transform: scale(1); }
[data-reveal="bar"] .formula-bar span, .house-bar span { transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease-out); }
[data-reveal="bar"].is-in .formula-bar span, .house-bar.is-in span { transform: scaleX(1); }
.house-bar[data-reveal] { opacity: 1; transform: none; }

/* ---------- 00 · Cover ---------- */
.cover { padding-top: 84px; background: var(--white); display: flex; flex-direction: column; min-height: calc(100vh + 90px); min-height: calc(100svh + 90px); }
.cover-head { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.masthead {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 8.6vw, 9.4rem);
  line-height: .86; letter-spacing: -.012em; text-align: center; white-space: nowrap;
  padding-bottom: .16em;
  color: var(--ink);
}
.masthead em { font-style: italic; }
.mast-line { display: inline-block; opacity: 0; transform: translateY(.18em); transition: opacity 1.4s var(--ease-out), transform 1.4s var(--ease-out); transition-delay: calc(.35s + var(--i, 0) * .16s); }
body:not(.is-loading) .mast-line { opacity: 1; transform: none; }
.cover-meta {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  margin-top: clamp(6px, 1vw, 14px); padding: 14px 0;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line);
  font-size: 10.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--ink);
  opacity: 0; transition: opacity 1.2s var(--ease) .8s;
}
.cover-meta p:last-child { text-align: right; }
.cover-lede { font-family: var(--serif); font-size: clamp(1rem, 1.3vw, 1.2rem); letter-spacing: 0; text-transform: none; font-weight: 400; }
body:not(.is-loading) .cover-meta { opacity: 1; }
.cover-photo { flex: 1 1 0; display: flex; margin-top: clamp(18px, 2.4vw, 32px); }
.cover-photo picture {
  display: block; position: relative; overflow: hidden;
  flex: 1 1 0; width: 100%; min-height: 58vh;
  clip-path: inset(0 0 100% 0); transition: clip-path 1.6s var(--ease-out) .55s;
}
body:not(.is-loading) .cover-photo picture { clip-path: inset(0 0 0 0); }
.cover-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 92%; transform: scale(1.08); transition: transform 2.6s var(--ease-out) .55s; }
body:not(.is-loading) .cover-photo img { transform: scale(1); }
.cover-enter {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  margin: 22px auto 0; width: max-content; text-decoration: none;
  font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--ink);
}
.cover-enter i { position: relative; width: 1px; height: 40px; background: var(--line); overflow: hidden; }
.cover-enter i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--ink); animation: drip 2.4s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

/* ---------- 01 · Invitation ---------- */
.invitation { padding: clamp(40px, 4vw, 56px) var(--gutter) var(--pad); text-align: center; background: var(--white); }
.invitation-title { font-family: var(--serif); font-size: clamp(2.6rem, 5.6vw, 5.2rem); line-height: 1.04; letter-spacing: -.01em; margin: 26px auto 48px; }
.invitation-text { max-width: 560px; margin: 0 auto; display: grid; gap: 10px; font-family: var(--serif); font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.6; color: var(--ink); }
.invitation-last { margin-top: 44px; font-size: 11px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--ink); }

/* ---------- 02 · Façade ---------- */
.facade {
  background: var(--paper);
  padding: var(--pad) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 120px); align-items: center;
}
.facade > * { max-width: 100%; }
@media (min-width: 1520px) { .facade { padding-inline: calc((100vw - var(--max)) / 2 + var(--gutter)); } }
.facade-figure { position: relative; aspect-ratio: 3 / 4; }
.facade-figure img { width: 100%; height: 100%; object-fit: cover; }
.facade-mark {
  position: absolute; left: 28%; top: 43%; width: 54%; height: 16%;
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 0 0 9999px rgba(20, 16, 10, 0);
  opacity: 0; transition: box-shadow 1.6s var(--ease) 1.3s, opacity 1.2s var(--ease) 1.1s;
}
.facade-mark span { position: absolute; left: -1px; top: -30px; font-family: var(--serif); font-style: italic; font-size: 17px; color: #fff; text-shadow: 0 1px 14px rgba(0, 0, 0, .55); }
.facade-figure.is-in .facade-mark { opacity: 1; box-shadow: 0 0 0 9999px rgba(20, 16, 10, .3); }
.facade-copy { display: grid; gap: 0; max-width: 500px; }
.facade-copy .title { margin-top: 20px; }
.facade-copy .body { margin-top: 22px; }
.passport { margin: 36px 0 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.passport div { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.passport div:nth-child(odd) { padding-right: 18px; }
.passport div:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
.passport dt { font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.passport dd { margin: 0; font-family: var(--serif); font-size: 16px; color: var(--ink); }

/* ---------- 02b · Address map ---------- */
.address {
  background: var(--white);
  max-width: var(--max); margin: 0 auto; padding: var(--pad) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 100px); align-items: center;
}
.address .title sup { font-size: .5em; vertical-align: .9em; }
.address .body { margin-top: 22px; max-width: 34em; }
.address .body sup { font-size: .7em; }
.map-places { list-style: none; margin: 34px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.map-places li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.map-places span { font-family: var(--serif); font-size: 17px; color: var(--ink); }
.map-places em { font-style: normal; font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.map { background: var(--paper); padding: clamp(16px, 2.4vw, 36px); }
.map svg { display: block; width: 100%; height: auto; overflow: hidden; }
.map figcaption { margin-top: 14px; font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.map-limit { fill: none; stroke: var(--line); stroke-width: 1.2; stroke-dasharray: 2 6; }
.map-street { fill: none; stroke: rgba(28, 28, 28, .28); stroke-width: 1.4; }
.map-street--home { stroke: var(--lie); stroke-width: 2; stroke-dasharray: 3 5; }
.map-street-name { font-family: var(--serif); font-style: italic; font-size: 17px; fill: var(--muted); }
.map-park { fill: rgba(53, 61, 42, .14); }
.map-arr text { font-family: var(--serif); font-size: 30px; fill: rgba(28, 28, 28, .1); }
.map-arr tspan { font-size: 16px; baseline-shift: super; }
.map-seine { fill: none; stroke: var(--ardoise); stroke-width: 7; stroke-linecap: round; opacity: .85; stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 2.6s var(--ease-out) .3s; }
.map.is-in .map-seine { stroke-dashoffset: 0; }
.map-island { fill: var(--paper); stroke: var(--ardoise); stroke-width: 1.5; }
.map-river { font-family: var(--serif); font-style: italic; font-size: 26px; fill: var(--ardoise); }
.map-landmark circle { fill: var(--ink); }
.map-landmark text { font-family: var(--sans); font-size: 16px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; fill: var(--ink); }
.map-landmark, .map-river, .map-compass, .map-street-name { opacity: 0; transition: opacity 1s var(--ease) 1.6s; }
.map.is-in .map-landmark, .map.is-in .map-river, .map.is-in .map-compass, .map.is-in .map-street-name { opacity: 1; }
.map-home text { font-family: var(--serif); font-size: 32px; fill: var(--lie); }
.map-home .map-home-sub { font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; fill: var(--muted); }
.map-home-dot { fill: var(--lie); }
.map-home-ring { fill: none; stroke: var(--lie); stroke-width: 1.4; transform-box: fill-box; transform-origin: center; animation: ping 2.8s var(--ease-out) infinite; }
.map-home { opacity: 0; transition: opacity 1s var(--ease) 2.2s; }
.map.is-in .map-home { opacity: 1; }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 80%, 100% { transform: scale(2.2); opacity: 0; } }
.map-compass path { fill: var(--ink); }
.map-compass text { font-family: var(--serif); font-size: 18px; text-anchor: middle; fill: var(--ink); }

/* ---------- 03 · Nuancier ---------- */
.nuancier { background: var(--white); padding: var(--pad) 0; }
.house-bar { display: flex; height: 10px; max-width: calc(var(--max) - var(--gutter) * 2); margin: 64px auto 0; width: calc(100% - var(--gutter) * 2); }
.house-bar span { flex: var(--w) 0 0; background: var(--c); }
.house-bar span:first-child { box-shadow: inset 0 0 0 1px var(--line); }
.house-bar-caption { max-width: var(--max); margin: 14px auto 0; padding: 0 var(--gutter); font-size: 10.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }

.swatches {
  list-style: none; max-width: var(--max); margin: 80px auto 0; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(56px, 6vw, 88px) clamp(20px, 2.6vw, 40px);
}
.swatch-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper); }
.swatch-photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transition: transform 1.4s var(--ease-out); }
.swatch:hover .swatch-photo img { transform: scale(1.04); }
.swatch-chip {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 20px 22px 22px; background: var(--c); color: var(--t);
}
.swatch-chip h3 { font-family: var(--serif); font-size: clamp(1.35rem, 1.8vw, 1.7rem); line-height: 1.1; color: inherit; flex: 1; }
.swatch-chip span { font-size: 10.5px; font-weight: 600; letter-spacing: .18em; font-variant-numeric: tabular-nums; }
.swatch[style*="#F4EFE9"] .swatch-chip { box-shadow: inset 0 0 0 1px var(--line); }
.swatch-where { margin-top: 20px; font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); }
.swatch-why { margin-top: 10px; font-family: var(--serif); font-style: italic; font-size: 1.1rem; line-height: 1.55; color: var(--text); max-width: 30em; }
.nuancier-note { max-width: var(--max); margin: clamp(56px, 5vw, 80px) auto 0; padding: 0 var(--gutter); text-align: center; font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.9rem); color: var(--ink); }

/* ---------- 04 · Rooms ---------- */
.rooms { background: var(--white); padding: var(--pad) 0 0; border-top: 1px solid var(--line); }
.rooms-head { text-align: center; padding: 0 var(--gutter); margin-bottom: clamp(56px, 6vw, 88px); }
.rooms-head .standfirst { margin-inline: auto; }
.rooms-title { font-family: var(--serif); font-size: clamp(2.8rem, 7vw, 6.6rem); line-height: 1; letter-spacing: -.02em; margin-top: 22px; }

.room { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) var(--room-gap); }
.room-head { margin-bottom: 34px; }
.room-head--center { text-align: center; margin-bottom: clamp(40px, 5vw, 64px); }
.room-no { font-size: 11px; font-weight: 600; letter-spacing: .3em; color: var(--muted); }
.room-title {
  font-family: var(--serif); text-transform: uppercase;
  font-size: clamp(2rem, 3.6vw, 3.3rem); line-height: 1.04; letter-spacing: .05em;
  margin-top: 14px;
}
.room-sub { font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 1.4vw, 1.3rem); color: var(--text); margin-top: 8px; }
.room-lede { font-family: var(--serif); font-size: clamp(1.2rem, 1.55vw, 1.42rem); line-height: 1.55; color: var(--ink); }

/* Spread: portrait photo + copy column, Ritz-style asymmetry */
.room--spread { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6.5vw, 112px); align-items: start; }
.room--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.room--flip .room-main { order: 2; }
.room-main { aspect-ratio: 5 / 6; }
.room-main img { width: 100%; height: 100%; object-fit: cover; }
.room-copy { display: grid; gap: 30px; padding-top: clamp(10px, 4vw, 70px); }
.room-copy .room-head { margin-bottom: 0; }
.room-detail { width: 72%; aspect-ratio: 4 / 5; margin-top: 18px; justify-self: end; }
.room-detail img { width: 100%; height: 100%; object-fit: cover; }

/* Wide: landscape photo, three columns below */
.room--wide .room-main, .room--wide .room-main img { aspect-ratio: 16 / 9; }
.room-columns { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); margin-top: 44px; align-items: start; }
.room-notes { display: grid; gap: 28px; }

.formula .label, .note .label, .clue .label { margin-bottom: 12px; display: block; }
.formula-bar { display: flex; height: 12px; }
.formula-bar span { flex: var(--w) 0 0; background: var(--c); }
.formula-bar span[style*="#F4EFE9"], .formula-bar span[style*="#E9E1DA"] { box-shadow: inset 0 0 0 1px var(--line); }
.formula-bar span:nth-child(2) { transition-delay: .1s; } .formula-bar span:nth-child(3) { transition-delay: .2s; }
.formula-bar span:nth-child(4) { transition-delay: .3s; } .formula-bar span:nth-child(5) { transition-delay: .4s; }
.formula-legend { margin-top: 12px; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); line-height: 1.9; }
.note p:last-child { color: var(--text); }
.clue { padding-top: 24px; border-top: 1px solid var(--line); }
.clue p:last-child { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 1.5vw, 1.35rem); line-height: 1.5; color: var(--ink); }

/* Balcony: full bleed */
.room--balcon { max-width: none; padding-inline: 0; padding-bottom: var(--pad); }
.room--balcon .room-head, .room--balcon .room-columns, .balcon-clue { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.balcon-figure { max-width: min(1200px, calc(100% - var(--gutter) * 2)); margin: 0 auto; aspect-ratio: 1402 / 1122; }
.balcon-figure img { width: 100%; height: 100%; object-fit: contain; }
.room--balcon .room-columns { margin-top: 56px; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); }
.balcon-clue { margin-top: clamp(48px, 5vw, 72px); text-align: center; display: grid; gap: 16px; }
.balcon-clue em { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.3; color: var(--ink); }

/* ---------- 05 · Details ---------- */
.details { background: var(--paper); padding: var(--pad) 0; }
.details-pair { max-width: var(--max); margin: 70px auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 48px); align-items: end; }
.details-pair figure { aspect-ratio: 4 / 5; position: relative; }
.details-pair figure:last-child { aspect-ratio: 4 / 5; margin-bottom: 12%; }
.details-pair img { width: 100%; height: 100%; object-fit: cover; }
.details-pair figcaption { position: absolute; left: 0; bottom: -30px; font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.materials { list-style: none; max-width: var(--max); margin: clamp(60px, 8vh, 90px) auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 64px); }
.materials li { padding: 26px 0 34px; border-top: 1px solid var(--ink); }
.materials li:nth-child(n+4) { border-top-color: var(--line); }
.materials span { font-size: 10.5px; font-weight: 600; letter-spacing: .2em; color: var(--muted); }
.materials h3 { font-family: var(--serif); font-size: clamp(1.5rem, 2vw, 1.9rem); margin-top: 10px; }
.materials p { margin-top: 8px; color: var(--text); max-width: 32ch; }

/* ---------- 06 · Offer ---------- */
.offer { background: var(--white); padding: var(--pad) var(--gutter); text-align: center; display: flex; flex-direction: column; align-items: center; }
.offer-lines { margin-top: 36px; display: grid; gap: 6px; font-family: var(--serif); font-size: clamp(1.2rem, 1.8vw, 1.5rem); color: var(--ink); }
.offer-note { margin-top: 28px; font-family: var(--script); font-size: clamp(2.4rem, 4.6vw, 3.8rem); line-height: 1.2; color: var(--lie); }
.offer-form { margin-top: 70px; width: min(560px, 100%); display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 28px; }
.offer-form[hidden], .offer-result[hidden] { display: none; }
.offer-title { font-family: var(--serif); font-size: clamp(2.3rem, 5vw, 4.2rem); line-height: 1.02; letter-spacing: -.01em; }
.offer-field { display: flex; align-items: baseline; gap: 14px; width: 100%; border-bottom: 1px solid var(--ink); padding: 6px 2px; }
.offer-currency { font-family: var(--sans); font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.1rem); color: var(--muted); }
.offer-field input { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; outline: none; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.offer-field input::placeholder { color: rgba(28, 28, 28, .22); }
.offer-field.is-error { border-color: var(--lie); animation: nudge .4s var(--ease); }
@keyframes nudge { 30% { transform: translateX(-4px); } 60% { transform: translateX(3px); } }
.offer-fine { font-size: 12.5px; color: var(--muted); max-width: 380px; }

.btn {
  appearance: none; cursor: pointer; text-decoration: none; display: inline-block;
  font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  padding: 19px 40px; border: 1px solid var(--ink); background: var(--ink); color: var(--white);
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--light { background: transparent; border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn--light:hover { background: var(--white); color: var(--ink); }

.offer-result { margin-top: 70px; display: grid; justify-items: center; gap: 18px; }
.offer-result > * { animation: rise-in 1.1s var(--ease-out) both; }
.offer-result > :nth-child(2) { animation-delay: .15s; } .offer-result > :nth-child(3) { animation-delay: .9s; } .offer-result > :nth-child(4) { animation-delay: 1.4s; }
.offer-sum { font-family: var(--serif); font-size: clamp(3rem, 8.5vw, 7rem); line-height: 1; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: lining-nums; }
.offer-reply { font-family: var(--script); font-size: clamp(2rem, 4vw, 3rem); color: var(--lie); }
.text-btn { appearance: none; border: 0; background: none; cursor: pointer; font: inherit; font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); padding: 6px 0; border-bottom: 1px solid var(--line); }
.text-btn:hover { color: var(--ink); }

/* ---------- 07 · Signature: the back cover ---------- */
.signature { background: var(--paper); color: var(--text); padding: var(--pad) 0 0; text-align: center; }
.signature-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-direction: column; align-items: center; }
.signature-title { font-family: var(--serif); font-size: clamp(2.2rem, 4.2vw, 3.8rem); line-height: 1.08; letter-spacing: -.005em; margin-top: 24px; max-width: 18ch; }
.signature-text { max-width: 540px; margin-top: 28px; font-size: 16.5px; }
.signature-disc { margin: 28px 0 44px; font-size: 11px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.backcover { max-width: var(--max); margin: var(--pad) auto 0; padding: 0 var(--gutter); }
.backcover-meta { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--ink); font-size: 10.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--ink); }
.backcover-meta p:first-child { text-align: left; } .backcover-meta p:last-child { text-align: right; }
.backcover-meta a { text-decoration: none; }
.backcover-meta a:hover { text-decoration: underline; text-underline-offset: 4px; }
.backcover-mast { font-family: var(--serif); font-size: clamp(2.4rem, 4.4vw, 4.4rem); line-height: 1; letter-spacing: -.005em; color: var(--ink); white-space: nowrap; text-align: center; padding: clamp(32px, 4vw, 52px) 0 clamp(36px, 4.5vw, 56px); }
.backcover-mast em { font-style: italic; }
.colophon { background: var(--ink); color: rgba(255, 255, 255, .62); }
.colophon p { max-width: var(--max); margin: 0 auto; padding: 16px var(--gutter); font-size: 11px; letter-spacing: .12em; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room-columns, .room--balcon .room-columns { grid-template-columns: 1fr 1fr; }
  .room-columns .room-lede { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .facade, .address { grid-template-columns: minmax(0, 1fr); }
  .facade-figure { max-width: 560px; }
  .room--spread, .room--flip { grid-template-columns: 1fr; gap: 36px; }
  .room--flip .room-main { order: 0; }
  .room-copy { padding-top: 0; }
  /* On one column the room name comes before its photo. */
  .room--spread .room-copy { display: contents; }
  .room--spread .room-head { order: -1; margin-bottom: -8px; }
  .room--spread .room-copy > :not(.room-head) { order: 1; }
  .details-pair { grid-template-columns: 1fr 1fr; }
  .materials { grid-template-columns: 1fr 1fr; }
  .materials li:nth-child(n+3) { border-top-color: var(--line); }
}
@media (max-width: 760px) {
  :root { --pad: 56px; --room-gap: 80px; }
  body { font-size: 15.5px; }
  .topbar { padding: 0 16px; height: 60px; }
  .topbar-note, .whereabouts-label { display: none; }
  .topbar.is-solid .topbar-link { opacity: 0; pointer-events: none; }
  .cover { padding-top: 78px; }
  .cover-head { padding-inline: 16px; }
  .masthead { white-space: normal; font-size: clamp(4.2rem, 25vw, 8rem); line-height: .84; }
  .mast-line { display: block; }
  .cover-meta { grid-template-columns: 1fr; gap: 6px; text-align: center; font-size: 9.5px; }
  .cover-meta p:last-child { text-align: center; }
  .cover-meta p:first-child { order: 0; }
  .cover-lede { order: -1; font-size: 1.05rem; margin-bottom: 4px; }
  .cover-photo picture { min-height: 66vh; }
  .cover-photo img { object-position: 50% 88%; }
  .invitation, .offer { padding-inline: 16px; }
  .facade, .address { padding-inline: 16px; }
  .map { padding: 10px; margin-inline: -6px; }
  .map-scroll { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .map-scroll::-webkit-scrollbar { display: none; }
  .map-scroll svg { width: 760px; max-width: none; }
  .map figcaption::after { content: " · Swipe to explore"; }
  .section-head, .swatches, .room, .details-pair, .materials, .house-bar-caption, .nuancier-note { padding-inline: 16px; }
  .house-bar { width: calc(100% - 32px); }
  .swatches {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%;
    gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none;
  }
  .swatches::-webkit-scrollbar { display: none; }
  .swatch { scroll-snap-align: start; }
  .room-columns, .room--balcon .room-columns { grid-template-columns: 1fr; }
  .room--wide .room-main, .room--wide .room-main img { aspect-ratio: 4 / 3; }
  .rooms-title em { display: block; }
  .offer-title { font-size: clamp(2rem, 9.6vw, 2.6rem); text-wrap: balance; }
  .offer-lines { font-size: 1.1rem; }
  .room--spread { gap: 28px; }
  .room-detail { width: 64%; }
  .room--balcon .room-head, .room--balcon .room-columns, .balcon-clue { padding-inline: 16px; }
  .balcon-figure { max-width: calc(100% - 32px); }
  .passport { grid-template-columns: 1fr; }
  .passport div:nth-child(n) { padding-inline: 0; border-left: 0; }
  .details-pair { grid-template-columns: 1fr; gap: 60px; }
  .details-pair figure:last-child { width: 72%; justify-self: end; margin-bottom: 30px; }
  .materials { grid-template-columns: 1fr; }
  .materials li:nth-child(n+2) { border-top-color: var(--line); }
  .btn { padding: 17px 30px; }
  .backcover-meta { grid-template-columns: 1fr; gap: 6px; text-align: center; font-size: 9.5px; }
  .backcover-meta p:first-child, .backcover-meta p:last-child { text-align: center; }
  .backcover-mast { font-size: clamp(2.2rem, 11vw, 3rem); }
  .signature-inner, .backcover { padding-inline: 16px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  [data-reveal], [data-reveal="mask"], [data-reveal="mask"] img, .map-landmark, .map-river, .map-compass, .map-home, .mast-line, .cover-meta, .cover-photo picture, .cover-photo img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .map-seine { stroke-dashoffset: 0 !important; }
  .map-home-ring { animation: none !important; }
}
