:root {
  color-scheme: light;
  --ink: #252b29;
  --paper: #fff;
  --muted: #707975;
  --line: #e6e9e6;
  --accent: #887661;
  --page-inset: clamp(28px, 5vw, 96px);
  --ease: cubic-bezier(.22,.68,.2,1);
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
body { height: calc(var(--viewport-height, 100vh) * 1); background: var(--paper); color: var(--ink); font-family: 'Microsoft YaHei','PingFang SC',Arial,sans-serif; font-size: 16px; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.masthead { position: fixed; inset: 0 0 auto; display: flex; align-items: flex-start; justify-content: space-between; padding: 28px clamp(24px,3vw,58px); background: none; pointer-events: none; z-index: 20; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; pointer-events: auto; }
.brand-logo { display: block; height: 38px; width: auto; filter: brightness(0); transition: filter .4s ease; }
.brand[data-ink='light'] .brand-logo { filter: brightness(0) invert(1); }
.navigation { position: relative; pointer-events: auto; height: 44px; }
.navigation.is-open::before { content: ''; position: absolute; right: 42px; top: 0; width: 25px; height: 44px; }
.menu-toggle { position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; color: #151a17; transition: color .4s ease,transform .35s var(--ease); }
.menu-toggle[data-ink='light'] { color: white; }
@media (hover: hover) and (pointer: fine) {
  .menu-toggle:hover { transform: rotate(4deg); }
}
.menu-toggle span { position: absolute; width: 28px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease),width .4s var(--ease),opacity .3s; }
.menu-toggle span:nth-child(1) { transform: translateY(-7px); }
.menu-toggle span:nth-child(2) { width: 20px; }
.menu-toggle span:nth-child(3) { transform: translateY(7px); }
.navigation.is-open .menu-toggle span:nth-child(1) { transform: rotate(45deg); }
.navigation.is-open .menu-toggle span:nth-child(2) { transform: scaleX(0); opacity: 0; }
.navigation.is-open .menu-toggle span:nth-child(3) { transform: rotate(-45deg); }
.menu-links { position: absolute; right: 62px; top: 0; height: auto; width: min(840px,calc(100vw - 300px)); display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px 26px; padding: 22px 26px; background: #fffffff5; backdrop-filter: blur(12px); border: 1px solid #ffffff90; box-shadow: 0 12px 40px #23312518; white-space: nowrap; opacity: 0; visibility: hidden; transform: translateX(20px); pointer-events: none; transition: opacity .4s var(--ease),transform .5s var(--ease),visibility .5s; }
.navigation.is-open .menu-links { opacity: 1; visibility: visible; transform: translateX(0); pointer-events: auto; }
.menu-links a { position: relative; padding: 9px 0; color: #151a17; font-size: 14px; letter-spacing: .04em; transition: color .4s ease; }
.menu-project-name { display: block; font-size: 15px; line-height: 1.5; }
.menu-project-location { display: block; font-size: 12px; margin-top: 5px; opacity: .75; }
.menu-links a[data-ink='light'] { color: white; }
.menu-links a::after { content: ''; position: absolute; bottom: 3px; left: 0; width: 0; height: 1px; background: currentColor; transition: width .3s; }
.menu-links a:hover::after, .menu-links a[aria-current='page']::after { width: 100%; }
.menu-links a[aria-disabled='true'] { opacity: .48; cursor: default; }
.stage { position: relative; min-height: 0; width: 100%; height: calc(var(--viewport-height, 100vh) * 1); margin: 0; overflow: hidden; isolation: isolate; background: #fff; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateY(22px); transition: opacity .54s ease,transform .63s cubic-bezier(.22,1,.36,1),visibility 0s linear .63s; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c6cdc7 transparent; }
.slide.active { z-index: 2; opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
.slide.exiting-up { z-index: 1; opacity: 0; visibility: visible; transform: translateY(-22px); }
.slide.exiting-down { z-index: 1; opacity: 0; visibility: visible; transform: translateY(22px); }
.slide.enter-from-above { opacity: 0; transform: translateY(-22px); transition: none; }
.slide.enter-from-below { opacity: 0; transform: translateY(22px); transition: none; }
.slide.no-page-motion { transition: none; }
.eyebrow { font-size: 12px; letter-spacing: .13em; line-height: 1.7; margin: 0 0 22px; color: var(--muted); }
.hero-gallery, .hero-photo, .hero-shade { position: absolute; inset: 0; }
.hero-gallery { overflow: hidden; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transition: opacity 1.6s ease; }
.hero-photo.is-current { opacity: 1; }
.hero-shade { background: linear-gradient(90deg,rgba(65,72,76,.32),rgba(65,72,76,.18) 72%); pointer-events: none; }
.home-slide { color: white; }
.hero-copy { position: absolute; left: var(--page-inset); top: 51%; width: min(800px,80%); transform: translateY(-50%); text-shadow: 0 2px 12px #0005; }
.hero-copy .eyebrow { color: #fff; font-size: 14px; margin-bottom: 24px; }
.hero-copy h1 { font-weight: 400; font-size: clamp(28px,2.2vw,42px); letter-spacing: .015em; line-height: 1.45; margin: 0; }
.hero-caption { position: absolute; left: var(--page-inset); bottom: 38px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; font-size: 13px; letter-spacing: .04em; color: white; text-shadow: 0 1px 8px #0006; transition: opacity .45s ease,transform .55s var(--ease); }
.hero-caption.is-changing { opacity: 0; transform: translateY(7px); }
.hero-location { font-size: 12px; opacity: .85; }
.text-link { display: inline-flex; align-items: center; gap: 24px; font-size: 14px; letter-spacing: .06em; padding: 8px 0; }
.link-line { display: block; width: 40px; height: 1px; background: currentColor; transition: width .3s; }
.text-link:hover .link-line { width: 58px; }
.index-slide { padding: 112px var(--page-inset) 62px; background: #fff; }
.index-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: clamp(22px,3vh,32px); }
.index-heading .eyebrow { margin: 0 0 12px; }
.index-heading h2 { font-size: clamp(26px,2vw,36px); font-weight: 400; letter-spacing: .04em; margin: 0; }
.index-range { font-family: Georgia,serif; font-size: clamp(22px,1.7vw,30px); text-align: right; margin: 0; color: #7e877f; }
.index-range span { display: block; font-family: 'Microsoft YaHei',sans-serif; font-size: 12px; margin-top: 9px; letter-spacing: .04em; }
.project-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(18px,2.6vh,28px) clamp(18px,1.8vw,32px); }
.project-card { min-width: 0; }
.project-image { position: relative; display: block; width: 100%; aspect-ratio: 1.9; overflow: hidden; background: #eef0ec; padding: 0; }
.project-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project-image:hover img { transform: scale(1.035); }
.project-image[aria-disabled='true'] { cursor: default; }
.project-info { padding-top: 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.project-info h3 { font-size: clamp(16px,1vw,19px); font-weight: 500; line-height: 1.6; margin: 0; }
.project-info>span { font-size: 12px; color: #969e96; }
.project-location { font-size: 12px; line-height: 1.6; color: #858d86; margin: 3px 0 0; }
.index-footnote { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 26px; font-size: 12px; letter-spacing: .045em; color: #92998f; }
.page-controls { position: fixed; left: 50%; bottom: 13px; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; height: 32px; background: none; color: #151a17; z-index: 15; transition: color .4s ease; }
.page-controls[data-ink='light'] { color: white; }
.page-dots { display: flex; gap: 7px; }
.page-dots button { display: grid; place-items: center; width: 28px; height: 32px; }
.page-dots button::after { content: ''; width: 5px; height: 5px; background: currentColor; opacity: .35; border-radius: 50%; transition: width .3s,opacity .3s; }
.page-dots button[aria-current='page']::after { width: 21px; opacity: 1; border-radius: 4px; }
.image-dialog { max-width: min(90vw,1400px); max-height: calc(var(--viewport-height, 100vh) * 0.9); padding: 0; border: 1px solid #e5e8e3; background: white; color: var(--ink); overflow: auto; box-shadow: 0 24px 100px #0004; }
.image-dialog::backdrop { background: #4b55487d; backdrop-filter: blur(5px); }
.image-dialog>img { display: block; max-width: 100%; max-height: calc(var(--viewport-height, 100vh) * 0.74); object-fit: contain; margin: auto; }
.dialog-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 42px; height: 42px; background: #fffffff0; z-index: 1; }
.preview-caption { padding: 20px 26px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.preview-caption h2 { margin: 0; font-weight: 400; font-size: 20px; }
.preview-caption p { margin: 0; font-size: 14px; color: #7a837b; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-height: 800px) and (min-width: 901px) {
  .project-image { aspect-ratio: 2.2; }
  .index-heading { margin-bottom: 22px; }
  .index-footnote { margin-top: 22px; padding-top: 15px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .menu-links { gap: 12px 16px; }
  .menu-project-name { font-size: 13px; }
  .menu-project-location { font-size: 11px; }
}
@media (max-width: 900px) {
  .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  :root { --page-inset: 26px; }
  .masthead { padding: 24px 22px; }
  .brand-logo { height: 31px; }
  .menu-links { right: 0; top: 61px; height: auto; width: calc(100vw - 44px); display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); align-items: stretch; gap: 12px 8px; max-height: calc(calc(var(--viewport-height, 100vh) * 1) - 122px); overflow-y: auto; overscroll-behavior: contain; padding: 16px 12px; background: #ffffffed; box-shadow: 0 12px 40px #23312514; transform: translateX(18px); }
  .menu-links a { color: #151a17; white-space: normal; }
  .menu-project-name { font-size: 12px; line-height: 1.6; }
  .menu-project-location { font-size: 10px; line-height: 1.6; }
  .hero-copy { width: auto; right: 22px; top: 51%; }
  .hero-copy .eyebrow { font-size: 14px; margin-bottom: 18px; }
  .hero-copy h1 { font-size: clamp(24px,6.6vw,31px); line-height: 1.45; letter-spacing: 0; }
  .hero-caption { bottom: 64px; gap: 7px 14px; font-size: 12px; }
  .index-slide { padding: 108px 26px 62px; }
  .index-heading { display: block; margin-bottom: 24px; }
  .index-heading h2 { font-size: 25px; line-height: 1.5; letter-spacing: .02em; }
  .index-heading .eyebrow { margin-bottom: 13px; }
  .index-range { display: flex; justify-content: space-between; align-items: center; text-align: left; font-size: 20px; margin-top: 15px; }
  .index-range span { margin: 0; font-size: 12px; }
  .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 16px; }
  .project-image { aspect-ratio: 1.55; }
  .project-info { padding-top: 9px; }
  .project-info h3 { font-size: 16px; }
  .project-info>span { font-size: 11px; flex-shrink: 0; }
  .project-location { font-size: 12px; margin-top: 2px; }
  .index-footnote { padding-top: 20px; margin-top: 25px; display: block; line-height: 1.9; }
  .index-footnote>span { display: block; }
  .preview-caption { display: block; padding: 18px; }
  .preview-caption h2 { font-size: 18px; line-height: 1.6; }
  .preview-caption p { font-size: 14px; margin-top: 8px; }
  .image-dialog { max-width: 94vw; max-height: calc(var(--viewport-height, 100vh) * 0.85); }
  .image-dialog>img { max-height: calc(var(--viewport-height, 100vh) * 0.65); }
  .dialog-close { top: 8px; right: 8px; }
}
@media (max-width: 350px) {
  .masthead { padding: 22px 18px; }
  .brand-logo { height: 29px; }
}
@media (max-height: 520px) {
  .brand-logo { height: 29px; }
  .hero-copy { top: 48%; }
  .hero-copy .eyebrow { margin-bottom: 12px; }
  .hero-copy h1 { font-size: 27px; line-height: 1.35; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto!important; transition-duration: .01ms!important; animation: none!important; }
  .hero-photo { transform: none!important; }
  .slide { transform: none!important; }
}

.project-cover { padding: 112px 0 66px; background: white; display: flex; flex-direction: column; gap: 28px; }
.cover-frame { position: relative; margin: 0; flex: 1; min-height: 280px; overflow: hidden; }
.project-view { display: block; width: 100%; height: 100%; padding: 0; overflow: hidden; cursor: zoom-in; }
.project-view img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.cover-shade { position: absolute; inset: 0; background: linear-gradient(270deg,#28302d70,#28302d15 75%); pointer-events: none; }
.cover-title { position: absolute; right: var(--page-inset); bottom: 9%; max-width: 320px; pointer-events: none; }
.cover-title p { margin: 0 0 15px; font-size: 11px; letter-spacing: .14em; }
.cover-title h2 { margin: 0; font-size: clamp(30px,3vw,52px); font-weight: 400; letter-spacing: .06em; }
.cover-title h2 span { display: block; font-size: .46em; margin-top: 14px; letter-spacing: .16em; }
.cover-intro { padding: 0 var(--page-inset); display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.cover-intro>p { font-size: 15px; line-height: 1.9; color: #707975; margin: 0; }
.cover-intro dl { display: flex; justify-content: space-between; gap: 25px; margin: 0; }
.cover-intro dt { font-size: 11px; color: #92998f; margin-bottom: 12px; }
.cover-intro dd { margin: 0; font-size: 14px; }
.project-plan { padding: 100px var(--page-inset) 62px; background: white; overflow: hidden; }
.plan-frame { position: relative; width: 100%; height: 100%; margin: 0; }
.plan-frame img { object-fit: contain; }
.full-image-slide { padding: 0; overflow: hidden; }
.full-image-frame { position: relative; margin: 0; width: 100%; height: 100%; }
.space-caption { position: absolute; left: var(--page-inset); bottom: 38px; pointer-events: none; font-size: 13px; letter-spacing: .04em; z-index: 3; }
[data-contrast] { color: #151a17; transition: color .4s ease,text-shadow .4s ease; }
[data-contrast][data-ink='light'] { color: white; text-shadow: 0 1px 8px #0004; }
.details-layout { height: 100%; width: 100%; display: grid; grid-template-columns: 1.5fr .7fr; grid-template-rows: 1fr 1fr; gap: 6px; background: white; }
.details-layout figure { position: relative; min-height: 0; margin: 0; overflow: hidden; }
.details-layout .detail-tall { grid-column: 2; grid-row: 1 / 3; }
.details-layout .space-caption { left: clamp(24px,3vw,58px); bottom: 30px; }
@media (max-width: 760px) {
  .project-cover { padding: 108px 0 66px; gap: 24px; }
  .cover-frame { flex: none; height: calc(var(--viewport-height, 100vh) * 0.52); min-height: 300px; }
  .cover-frame img { object-position: 53% center; }
  .cover-title { right: 26px; bottom: 9%; }
  .cover-title h2 { font-size: 30px; }
  .cover-title p { font-size: 9px; }
  .cover-intro { display: block; }
  .cover-intro>p { font-size: 13px; }
  .cover-intro dl { margin-top: 24px; gap: 15px; }
  .cover-intro dd { font-size: 12px; }
  .project-plan { padding: 98px 22px 62px; }
  .space-caption { bottom: 64px; font-size: 12px; }
  .plan-frame .space-caption { left: 4px; bottom: 10px; }
  .details-layout { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1.3fr; gap: 4px; }
  .details-layout figure:first-child { grid-column: 1 / 3; }
  .details-layout .detail-tall { grid-column: 2; grid-row: 2; }
  .details-layout .space-caption { left: 16px; bottom: 64px; font-size: 11px; }
  .details-layout figure:first-child .space-caption { bottom: 24px; }
}

/* Full-screen image viewer: wheel zoom, drag and touch pinch. */
.image-dialog { position: fixed; inset: 0; width: 100vw; height: calc(var(--viewport-height, 100vh) * 1); max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; background: #111714f5; color: white; box-shadow: none; }
.image-dialog::backdrop { background: #111714; }
.preview-viewport { position: absolute; inset: 0; overflow: hidden; touch-action: none; user-select: none; cursor: zoom-in; }
.preview-viewport img { position: absolute; top: 50%; left: 50%; width: auto; height: auto; max-width: calc(100vw - 64px); max-height: calc(calc(var(--viewport-height, 100vh) * 1) - 64px); object-fit: contain; transform-origin: center; will-change: transform; user-select: none; -webkit-user-drag: none; }
.preview-viewport.is-zoomed { cursor: grab; }
.preview-viewport.is-dragging { cursor: grabbing; }
.image-dialog .dialog-close { position: fixed; top: 24px; right: clamp(22px,3vw,58px); width: 44px; height: 44px; border-radius: 50%; background: #222a26d9; color: white; z-index: 5; }
.dialog-close:hover { background: #47544b; }
/* Restore only the earlier CAD page, leaving completed image pages intact. */
.plan-overview { display: flex; flex-direction: column; gap: 26px; padding: 112px var(--page-inset) 66px; overflow: auto; }
.project-heading { display: flex; justify-content: space-between; gap: 32px; align-items: flex-end; flex-shrink: 0; }
.project-heading .eyebrow { margin-bottom: 10px; font-size: 11px; }
.project-heading h2 { font-size: clamp(25px,1.8vw,34px); line-height: 1.5; font-weight: 400; margin: 0; letter-spacing: .04em; }
.project-heading>p { color: #858d86; font-size: 13px; line-height: 1.8; margin: 0 0 4px; }
.plan-layout { flex: 1; min-height: 0; display: grid; grid-template-columns: .85fr 1.15fr; gap: 7%; }
.plan-layout figure { margin: 0; min-height: 0; }
.plan-figure { display: flex; flex-direction: column; gap: 12px; }
.plan-figure .project-view { flex: 1; min-height: 0; }
.plan-figure img { object-fit: contain; }
.plan-figure figcaption { font-size: 11px; color: #90988f; letter-spacing: .06em; }
.flow-figure { display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.flow-figure .project-view { height: auto; aspect-ratio: 2.36; }
.flow-figure figcaption strong { display: block; font-size: 19px; font-weight: 400; margin-bottom: 12px; }
.flow-figure figcaption span { font-size: 13px; line-height: 1.8; color: #858d86; }
/* Second project: original PDF images in a new web composition. */
.excellence-cover .cover-frame img { object-position: 50% 50%; }
.excellence-layout { display: grid; height: 100%; width: 100%; gap: 6px; background: white; }
.excellence-layout figure { min-width: 0; min-height: 0; margin: 0; overflow: hidden; }
.arrival-layout { grid-template-columns: 1.6fr 1fr; }
.triptych-layout { grid-template-columns: repeat(3,minmax(0,1fr)); }
.triptych-layout figure:nth-child(2) img { object-position: 45% 50%; }
.flow-layout { grid-template-columns: 1fr 1.05fr 1fr; }
.care-layout { grid-template-columns: .85fr 1.2fr .85fr; }
.excellence-layout img { object-fit: cover; }
.page-dots { gap: clamp(2px,.5vw,7px); }
.page-dots button { width: clamp(14px,2vw,28px); }
.page-dots button[aria-current='page']::after { width: min(21px,100%); }
@media (max-width: 760px) {
  .preview-viewport img { max-width: calc(100vw - 24px); max-height: calc(calc(var(--viewport-height, 100vh) * 1) - 48px); }
  .image-dialog .dialog-close { top: 20px; right: 20px; }
  .plan-overview { padding: 106px 26px 70px; gap: 24px; }
  .project-heading { display: block; }
  .project-heading>p { margin-top: 12px; }
  .plan-layout { display: flex; flex-direction: column; gap: 30px; min-height: auto; flex: none; }
  .plan-figure .project-view { flex: none; height: auto; aspect-ratio: .98; }
  .flow-figure { gap: 20px; }
  .excellence-cover .cover-frame { height: calc(var(--viewport-height, 100vh) * 0.42); min-height: 260px; }
  .excellence-cover .cover-frame img { object-position: 65% 50%; }
  .excellence-cover .cover-title { right: 24px; }
  .excellence-layout { gap: 4px; }
  .arrival-layout { grid-template-columns: 1fr 1fr; grid-template-rows: 1.1fr 1fr; }
  .arrival-wide { grid-column: 1 / 3; }
  .arrival-layout figure:last-child { grid-column: 1 / 3; }
  .arrival-layout figure:last-child img { object-position: 50% 42%; }
  .triptych-layout, .flow-layout { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
  .triptych-layout figure:nth-child(2), .flow-layout figure:nth-child(2) { grid-row: 1 / 3; grid-column: 2; }
  .care-layout { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
  .care-layout figure:nth-child(2) { grid-column: 1 / 3; }
  .care-layout figure:nth-child(2) img { object-position: 50% 35%; }
}

/* Third project: LEFU apartment studio, 2022. */
.lefu-cover .cover-title { max-width: 430px; }
.lefu-cover .cover-intro { grid-template-columns: 1.15fr 1fr; }
.lefu-cover .cover-intro>p { max-width: 640px; font-size: 14px; }
.lefu-layout { display: grid; height: 100%; width: 100%; gap: 6px; background: white; }
.lefu-layout figure { min-width: 0; min-height: 0; margin: 0; overflow: hidden; }
.lefu-arrival-layout { grid-template-columns: .9fr 1.2fr .9fr; }
.lefu-lounge-layout { grid-template-columns: .85fr 1.15fr; }
.lefu-care-layout { grid-template-columns: 1.5fr .9fr; }
.lefu-layout img { object-fit: cover; }
.lefu-lounge-layout figure:last-child img { object-position: 45% center; }
/* Keep the growing page navigator within small screens. */
.page-dots { max-width: calc(100vw - 32px); gap: 2px; }
.page-dots button { width: clamp(13px,1.75vw,28px); min-width: 0; flex: 0 1 28px; padding: 0; }
.page-dots button[aria-current='page']::after { width: min(21px,80%); }
@media (max-width: 760px) {
  .lefu-cover .cover-frame { height: calc(var(--viewport-height, 100vh) * 0.48); min-height: 290px; }
  .lefu-cover .cover-frame img { object-position: 65% center; }
  .lefu-cover .cover-title { max-width: calc(100% - 52px); }
  .lefu-cover .cover-title h2 { font-size: 29px; }
  .lefu-cover .cover-intro>p { font-size: 13px; }
  .lefu-cover .cover-intro dl { gap: 12px; }
  .lefu-cover .cover-intro dd { font-size: 11px; }
  .lefu-layout { gap: 4px; }
  .lefu-arrival-layout { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
  .lefu-arrival-layout figure:nth-child(2) { grid-column: 2; grid-row: 1 / 3; }
  .lefu-lounge-layout { grid-template-columns: 1fr 1fr; }
  .lefu-lounge-layout figure:last-child img { object-position: 46% center; }
  .lefu-care-layout { grid-template-columns: 1fr 1fr; }
  .lefu-care-layout figure:first-child img { object-position: 56% center; }
}

/* Give the floating project menu a clear edge over the imagery. */
.menu-links { border-color: #d9dfd9b3; box-shadow: 0 20px 52px #18251e30, 0 5px 16px #18251e1f; }
/* Size the directory images to the viewport instead of overflowing by a few pixels. */
.index-slide { display: flex; flex-direction: column; }
.index-heading, .index-footnote { flex-shrink: 0; }
.index-slide .project-grid { flex: 1; min-height: 0; grid-template-rows: repeat(2,minmax(0,1fr)); }
.index-slide .project-card { display: flex; flex-direction: column; min-height: 0; }
.index-slide .project-image { flex: 1; min-height: 0; aspect-ratio: auto; }
.index-slide .project-info, .index-slide .project-location { flex-shrink: 0; }
.cloison-cover .cover-intro>p { max-width: 640px; font-size: 14px; }
.cloison-layout { display: grid; height: 100%; width: 100%; gap: 6px; background: white; }
.cloison-layout figure { min-width: 0; min-height: 0; margin: 0; overflow: hidden; }
.cloison-reception-layout { grid-template-columns: 1fr; }
.cloison-lounge-layout { grid-template-columns: 1fr 1fr 1fr; }
.cloison-flow-layout { grid-template-columns: 1.65fr .85fr; }
.cloison-care-layout { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.cloison-layout img { object-fit: cover; }
.cloison-care-layout figure:nth-child(2) img { object-position: center 58%; }
@media (max-width: 900px) {
  .index-slide .project-grid { grid-template-rows: repeat(4,minmax(0,1fr)); gap: 14px 16px; }
}
@media (max-width: 760px) {
  .index-slide { padding: 96px 26px 58px; }
  .index-heading { margin-bottom: 14px; }
  .index-heading .eyebrow { margin-bottom: 8px; font-size: 11px; }
  .index-heading h2 { font-size: 22px; }
  .index-range { font-size: 17px; margin-top: 10px; }
  .index-range span { font-size: 11px; }
  .index-slide .project-grid { gap: 12px 14px; }
  .index-slide .project-info { padding-top: 6px; }
  .index-slide .project-info h3 { font-size: 14px; }
  .index-slide .project-info>span { font-size: 10px; }
  .index-slide .project-location { font-size: 10px; margin-top: 1px; }
  .index-footnote { margin-top: 14px; padding-top: 10px; font-size: 10px; line-height: 1.5; }
  .cloison-cover .cover-frame { height: calc(var(--viewport-height, 100vh) * 0.48); min-height: 290px; }
  .cloison-cover .cover-title { right: 26px; }
  .cloison-cover .cover-intro>p { font-size: 13px; }
  .cloison-layout { gap: 4px; }
  .cloison-lounge-layout { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
  .cloison-lounge-layout figure:first-child { grid-column: 1; grid-row: 1 / 3; }
  .cloison-flow-layout { grid-template-columns: 1fr 1fr; }
  .cloison-flow-layout figure:first-child img { object-position: 43% center; }
}
/* Keep real scrolling available on unusually short mobile windows. */
@media (max-width: 900px) and (max-height: 650px) {
  .index-slide .project-grid { flex: none; grid-template-rows: auto; }
  .index-slide .project-image { flex: none; aspect-ratio: 1.9; }
}

/* Keep the preview close control below the navigation hit area. */
.image-dialog .dialog-close { top: 96px; }

/* Lés Pela: a brand-led introduction, then a single pinned evolution page. */
.lespela-cover { padding: 112px 0 66px; background: white; overflow: hidden; }
.lespela-cover-layout { display: grid; grid-template-columns: 64% 36%; height: 100%; min-height: 0; }
.lespela-cover-layout figure { margin: 0; min-height: 0; overflow: hidden; }
.lespela-cover-copy { display: flex; flex-direction: column; justify-content: space-between; min-height: 0; padding: 0 clamp(28px,3.5vw,68px); gap: 24px; }
.lespela-brand { width: clamp(175px,14vw,260px); height: auto; align-self: flex-start; }
.lespela-cover-copy .eyebrow { font-size: 10px; letter-spacing: .15em; margin-bottom: 10px; }
.lespela-cover-copy h2 { font-size: clamp(21px,1.6vw,30px); font-weight: 400; letter-spacing: .03em; margin: 0; }
.lespela-lead { font-size: 14px; line-height: 1.9; color: #74776f; margin: 20px 0 0; }
.lespela-facts { display: flex; justify-content: space-between; gap: 16px; margin: 0; }
.lespela-facts dt { font-size: 10px; color: #99998e; margin-bottom: 10px; }
.lespela-facts dd { margin: 0; font-size: 13px; line-height: 1.5; }
.lespela-cover-cad { flex: 1; min-height: 100px; max-height: 32%; display: flex; flex-direction: column; gap: 10px; }
.lespela-cover-cad figure { flex: 1; min-height: 0; }
.lespela-cover-cad img { object-fit: contain; }
.lespela-cover-cad>span { font-size: 10px; color: #9c9c90; letter-spacing: .05em; }
.lespela-video-slide { background: white; overflow: hidden; }
.lespela-video { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.video-replay { position: absolute; right: var(--page-inset); bottom: 64px; display: flex; gap: 10px; align-items: center; font-size: 12px; padding: 12px 18px; border: 1px solid #e7dfd1; border-radius: 30px; background: #ffffffde; color: #8f7d60; transition: background .2s; }
.video-replay:hover { background: #f6f2eb; }
.video-replay svg { width: 16px; height: 16px; }
.lespela-process-slide { background: #fff; scrollbar-width: none; --process-progress: 0; }
.lespela-process-slide::-webkit-scrollbar { display: none; }
.process-track { height: calc(var(--viewport-height, 100vh) * 9); position: relative; }
.process-pinned { position: sticky; top: 0; height: calc(var(--viewport-height, 100vh) * 1); padding: 112px var(--page-inset) 66px; display: flex; flex-direction: column; overflow: hidden; background: white; }
.process-heading { flex-shrink: 0; }
.process-heading .eyebrow { font-size: 11px; margin-bottom: 10px; color: #ab9572; }
.process-heading h2 { font-weight: 400; font-size: clamp(24px,2vw,34px); letter-spacing: .03em; margin: 0; }
.process-content { flex: 1; min-height: 0; display: grid; grid-template-columns: 28% 72%; gap: 20px; align-items: stretch; }
.process-copy { align-self: center; max-width: 320px; }
.process-count { color: #bfa77f; margin: 0 0 22px; font-family: Georgia,serif; font-size: 15px; }
.process-count span { font-size: 46px; }
.process-count i { font-size: 19px; margin: 0 12px; font-style: normal; color: #d5c9b9; }
.process-copy h3 { font-size: clamp(24px,2.2vw,40px); line-height: 1.5; font-weight: 400; margin: 0 0 16px; }
.process-description { font-size: 14px; line-height: 2; color: #85857c; margin: 0; }
.process-visual { position: relative; min-height: 0; margin: 24px 0; }
.process-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; pointer-events: none; will-change: opacity,transform; }
.process-frame.is-current { opacity: 1; }
.process-footer { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-shrink: 0; }
.process-steps { display: flex; justify-content: space-between; gap: 18px; width: min(530px,52%); position: relative; padding-top: 16px; }
.process-steps::before,.process-steps::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: #eee7dc; }
.process-steps::after { transform: scaleX(var(--process-progress)); transform-origin: left; background: #bba177; }
.process-steps button { padding: 6px 0; color: #b1b0a6; font-size: 11px; transition: color .2s; }
.process-steps button[aria-current='step'] { color: #9e7c45; }
.process-scroll-hint { margin: 0; font-size: 11px; letter-spacing: .04em; color: #9f9f94; white-space: nowrap; }
.process-scroll-hint span { margin-left: 12px; color: #b49d77; }
.lespela-plan-slide { padding: 112px var(--page-inset) 66px; display: flex; flex-direction: column; gap: 40px; background: white; }
.lespela-plan-layout { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.45fr 1fr; gap: 7%; align-items: center; }
.lespela-plan-drawing { min-height: 0; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.lespela-plan-drawing figure { min-height: 0; margin: 0; flex: 1; }
.lespela-plan-drawing img { object-fit: contain; }
.lespela-plan-drawing>p { display: flex; justify-content: space-between; font-size: 11px; color: #93978e; margin: 0; }
.lespela-plan-drawing>p span { color: #baa27c; }
.lespela-plan-copy { min-width: 0; padding-bottom: 30px; }
.lespela-plan-opening { font-size: clamp(23px,1.9vw,32px); line-height: 1.65; margin: 0 0 28px; }
.lespela-plan-copy>p:not(.lespela-plan-opening) { font-size: 14px; line-height: 2.1; color: #82877d; margin: 0 0 18px; }
.lespela-plan-copy .lespela-facts { border-top: 1px solid #eae8e0; margin-top: 32px; padding-top: 24px; }
.lespela-gallery-layout { display: grid; width: 100%; height: 100%; min-height: 0; gap: 6px; background: white; }
.lespela-gallery-layout figure { margin: 0; min-height: 0; min-width: 0; overflow: hidden; }
.lespela-single { grid-template-columns: 1fr; }
.lespela-panorama { grid-template-rows: 1fr 1fr; }
.lespela-panorama img { object-fit: cover; }
.lespela-built-pair { grid-template-columns: 1.45fr 1fr; }
.lespela-built-pair figure:first-child img { object-position: 48% center; }
@media (min-width: 761px) and (max-height: 740px) {
  .lespela-cover { padding-top: 100px; padding-bottom: 58px; }
  .lespela-cover-copy { gap: 16px; }
  .lespela-brand { width: 170px; }
  .lespela-lead { font-size: 12px; margin-top: 12px; }
  .lespela-cover-cad { min-height: 75px; }
  .lespela-plan-slide { gap: 22px; padding-top: 104px; }
  .lespela-plan-opening { font-size: 23px; margin-bottom: 18px; }
  .lespela-plan-copy>p:not(.lespela-plan-opening) { font-size: 12px; margin-bottom: 10px; }
  .lespela-plan-copy .lespela-facts { margin-top: 18px; padding-top: 16px; }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .lespela-cover-layout { grid-template-columns: 58% 42%; }
  .lespela-cover-copy { padding: 0 28px; }
  .lespela-facts { gap: 10px; }
  .lespela-facts dd { font-size: 11px; }
}
@media (max-width: 760px) {
  .image-dialog .dialog-close { top: 90px; }
  .lespela-cover { padding: 98px 0 58px; overflow: auto; }
  .lespela-cover-layout { display: flex; flex-direction: column; height: auto; min-height: 100%; gap: 24px; }
  .lespela-cover-layout .lespela-hero { flex: none; height: calc(var(--viewport-height, 100vh) * 0.33); min-height: 220px; }
  .lespela-cover-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; padding: 0 26px; }
  .lespela-brand { width: 170px; grid-column: 1 / 3; }
  .lespela-cover-copy>div:nth-child(2) { grid-column: 1 / 3; }
  .lespela-cover-copy .eyebrow { font-size: 9px; }
  .lespela-cover-copy h2 { font-size: 23px; }
  .lespela-lead { font-size: 12px; margin-top: 12px; }
  .lespela-cover-copy .lespela-facts { display: flex; flex-direction: column; gap: 12px; }
  .lespela-facts dt { margin-bottom: 5px; font-size: 9px; }
  .lespela-facts dd { font-size: 11px; }
  .lespela-cover-cad { max-height: none; min-height: 150px; gap: 6px; }
  .lespela-cover-cad>span { font-size: 8px; }
  .process-pinned { padding: 100px 26px 66px; }
  .process-heading .eyebrow { font-size: 9px; margin-bottom: 8px; }
  .process-heading h2 { font-size: 21px; white-space: nowrap; letter-spacing: 0; }
  .process-content { display: flex; flex-direction: column; gap: 0; }
  .process-copy { align-self: stretch; max-width: none; margin-top: 26px; }
  .process-count { display: inline-flex; align-items: baseline; float: right; font-size: 10px; margin: 0; }
  .process-count span { font-size: 27px; }
  .process-count i { font-size: 12px; margin: 0 7px; }
  .process-copy h3 { font-size: 23px; margin-bottom: 6px; }
  .process-description { font-size: 11px; line-height: 1.9; width: 80%; }
  .process-visual { flex: 1; min-height: 0; width: 100%; margin: 22px 0; }
  .process-footer { flex-direction: column; gap: 18px; }
  .process-steps { width: 100%; gap: 8px; padding-top: 12px; }
  .process-steps button { font-size: 9px; }
  .process-scroll-hint { font-size: 10px; }
  .lespela-plan-slide { padding: 100px 26px 66px; gap: 26px; }
  .lespela-plan-layout { display: flex; flex-direction: column; gap: 26px; }
  .lespela-plan-drawing { flex: none; height: calc(var(--viewport-height, 100vh) * 0.29); min-height: 200px; width: 100%; gap: 12px; }
  .lespela-plan-drawing>p { font-size: 9px; }
  .lespela-plan-opening { font-size: 23px; margin-bottom: 20px; }
  .lespela-plan-copy>p:not(.lespela-plan-opening) { font-size: 12px; line-height: 2; }
  .lespela-plan-copy .lespela-facts { margin-top: 22px; padding-top: 18px; }
  .lespela-gallery-layout { gap: 4px; }
  .lespela-panorama { padding: 100px 0 66px; gap: 20px; }
  .lespela-panorama img { object-fit: contain; }
  .lespela-built-pair { grid-template-columns: 1fr 1fr; }
  .lespela-built-pair figure:first-child img { object-position: 57% center; }
}

/* Latest project review: smaller cropped video and individual VIP views. */
.lespela-video-slide { padding: calc(var(--viewport-height, 100vh) * 0.055) 12vw calc(var(--viewport-height, 100vh) * 0.07); }
.lespela-contained { padding: calc(var(--viewport-height, 100vh) * 0.07) 0; }
.lespela-contained .project-view img { object-fit: contain; }
.process-track { height: calc(calc(var(--viewport-height, 100vh) * 1) + 1920px); }
.process-frame { transition: opacity .24s ease, transform .24s ease; }
.lespela-built-pair { grid-template-columns: 7fr 3fr; }
@media (max-width: 760px) {
  .lespela-video-slide { padding: 110px 22px 90px; }
  .lespela-built-pair { grid-template-columns: 7fr 3fr; }
}
@media (prefers-reduced-motion: reduce) { .process-frame { transition: none; } }

/* Shared gallery layout: edge-to-edge crops and one consistent seam. */
:root { --gallery-gap: 6px; }
.full-image-slide { padding: 0; }
.reflow-single, .reflow-gallery, .takeover-single-gallery, .ellehuis-portrait { padding: 0; background: #fff; }
.reflow-single > figure { margin: 0; width: 100%; height: 100%; min-width: 0; min-height: 0; overflow: hidden; }
.takeover-single-gallery .full-image-frame { padding: 0; }
.reflow-pair, .coashi-seven-three, .ellehuis-care-layout {
  display: grid; grid-template-columns: minmax(0,7fr) minmax(0,3fr);
  grid-template-rows: minmax(0,1fr); gap: var(--gallery-gap);
  width: 100%; height: 100%; padding: 0; background: white;
}
.reflow-pair figure, .coashi-seven-three figure, .ellehuis-care-layout figure {
  margin: 0; width: 100%; height: 100%; min-width: 0; min-height: 0; overflow: hidden;
}
.full-image-slide .project-view img { object-fit: cover; object-position: center; }
/* Only the two very wide VIP views keep their intentional white space. */
.lespela-contained { padding: calc(var(--viewport-height, 100vh) * 0.07) 0; }
.lespela-contained .project-view img { object-fit: contain; }
[data-page='coast-materials'] .reflow-pair { grid-template-columns: minmax(0,65fr) minmax(0,35fr); }
.lespela-built-pair { gap: var(--gallery-gap); grid-template-columns: minmax(0,7fr) minmax(0,3fr); }
/* Existing selected crops use the image subject as their focal point. */
[data-page='coast-materials'] figure:first-child img { object-position: 50% 50%; }
[data-page='coast-materials'] figure:last-child img { object-position: 50% 55%; }
.reflow-pair--portraits figure img { object-position: center; }
.shanghai-cover .cover-frame img { object-position: center 54%; }
.ellehuis-cover .cover-frame img { object-position: 50% 47%; }
/* Project seven uses the same full-width cover as the other projects. */
.coashi-cover .cover-frame .project-view { width: 100%; }
.lefu-cover .cover-frame img { object-position: 50% 90%; }
.coashi-cover .cover-frame img { object-fit: cover; object-position: 50% 75%; }
.lespela-standard-cover .cover-frame img { object-position: 50% 70%; }
.lespela-intro-brand { display: flex; align-items: center; gap: clamp(24px,3vw,58px); min-width: 0; }
.lespela-intro-brand p { margin: 0; font-size: 15px; line-height: 1.9; color: #707975; }
.lespela-cover-brand { display: block; width: clamp(130px,11vw,210px); height: auto; flex-shrink: 0; }
.video-replay { color: #111; border-color: #111; font-size: 11px; gap: 6px; padding: 8px 12px; }
.video-replay svg { width: 13px; height: 13px; }
@media (max-width: 760px) {
  .lespela-intro-brand { gap: 18px; justify-content: space-between; }
  .lespela-intro-brand p { font-size: 12px; }
  .lespela-cover-brand { width: 112px; }
  .cover-intro dl { flex-wrap: wrap; }
  .shanghai-cover .cover-intro dl, .coashi-cover .cover-intro dl { gap: 16px 24px; }
  .shanghai-cover .cover-intro dl>div, .coashi-cover .cover-intro dl>div { min-width: calc(50% - 24px); }
  .reflow-pair, .coashi-seven-three, .ellehuis-care-layout, .lespela-built-pair { gap: var(--gallery-gap); }
}
/* Keep focus and preview resizing from scrolling the animated outer stage. */
.stage { overflow: clip; }

/* Compact project navigation: fixed project markers, local page progress. */
.page-controls { gap: 14px; }
.page-dots { gap: 4px; max-width: none; }
.page-dots button { width: 28px; flex: 0 0 28px; }
.page-dots button[aria-current='page']::after { width: 21px; }
img { -webkit-user-drag: none; user-select: none; }
@media (max-width: 760px) {
  .page-controls { gap: 10px; }
  .page-dots { gap: 2px; }
  .page-dots button { width: 23px; flex-basis: 23px; }
  .page-dots button[aria-current='page']::after { width: 17px; }
}

/* Shenzhen cover now places all project information on the full-screen photo. */
.lespela-fullscreen-cover { padding: 0; gap: 0; overflow: hidden; }
.lespela-fullscreen-cover .cover-frame { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; }
.lespela-fullscreen-cover .cover-shade { background: linear-gradient(0deg,#0c1719cc,transparent 62%),linear-gradient(270deg,#12201c40,transparent 55%); }
.lespela-fullscreen-cover .cover-title { bottom: calc(var(--viewport-height, 100vh) * 0.24); }
.lespela-fullscreen-cover .cover-intro { position: absolute; left: var(--page-inset); right: var(--page-inset); bottom: 90px; padding: 0; z-index: 3; color: white; text-shadow: 0 1px 8px #0006; }
.lespela-fullscreen-cover .lespela-intro-brand p { color: white; }
.lespela-fullscreen-cover .cover-intro dt { color: #ffffffb8; }
.lespela-fullscreen-cover .cover-intro dd { color: white; }
body[data-active-page='project-lespela-shenzhen'] .page-controls { color: white; }

.screen-process-slide { padding: 112px var(--page-inset) 82px; background: white; display: flex; flex-direction: column; gap: 24px; overflow: hidden; }
.screen-process-heading .eyebrow { font-size: 11px; color: #ab9572; margin-bottom: 10px; }
.screen-process-heading h2 { font-size: clamp(24px,2vw,34px); font-weight: 400; letter-spacing: .03em; margin: 0; }
.screen-process-layout { display: grid; grid-template-columns: minmax(0,28fr) minmax(0,72fr); gap: 4vw; flex: 1; min-height: 0; }
.screen-process-copy { align-self: center; max-width: 360px; }
.screen-process-kicker { color: #ab9572; font-size: 12px; letter-spacing: .08em; margin: 0 0 24px; }
.screen-process-copy h3 { font-size: clamp(26px,2.1vw,38px); line-height: 1.6; font-weight: 400; margin: 0 0 24px; }
.screen-process-copy>p:not(.screen-process-kicker) { color: #85857c; font-size: 14px; line-height: 2; margin: 0 0 16px; }
.screen-process-visual { position: relative; min-width: 0; min-height: 0; height: 100%; padding-bottom: 42px; }
.screen-process-video { display: block; width: 100%; height: 100%; object-fit: contain; border: 0; pointer-events: none; }
.screen-process-visual .video-replay { right: 0; bottom: 0; }
@media (max-width: 760px) {
  .lespela-fullscreen-cover .cover-frame { height: 100%; min-height: 0; }
  .lespela-fullscreen-cover .cover-title { top: 22%; bottom: auto; }
  .lespela-fullscreen-cover .cover-intro { bottom: 72px; }
  .lespela-fullscreen-cover .cover-intro dl { margin-top: 24px; gap: 18px 12px; }
  .lespela-fullscreen-cover .cover-intro dl>div { min-width: calc(50% - 12px); }
  .lespela-fullscreen-cover .cover-intro dt { margin-bottom: 6px; }
  .screen-process-slide { padding: 102px 26px 68px; gap: 18px; overflow: auto; }
  .screen-process-heading .eyebrow { font-size: 9px; margin-bottom: 8px; }
  .screen-process-heading h2 { font-size: 21px; letter-spacing: 0; }
  .screen-process-layout { display: flex; flex-direction: column; gap: 18px; }
  .screen-process-copy { align-self: stretch; max-width: none; }
  .screen-process-kicker { margin-bottom: 12px; font-size: 10px; }
  .screen-process-copy h3 { font-size: 23px; line-height: 1.4; margin-bottom: 12px; }
  .screen-process-copy h3 br { display: none; }
  .screen-process-copy>p:not(.screen-process-kicker) { font-size: 11px; line-height: 1.8; margin-bottom: 8px; }
  .screen-process-visual { flex: 1; min-height: 180px; width: 100%; padding-bottom: 40px; }
}

/* Closed previews must also be hidden when dialog is an unknown HTML element. */
.image-dialog:not([open]) { display: none !important; }
.image-dialog[open] { display: block; }
.image-dialog.is-fallback-modal[open] { z-index: 50; }
body.legacy-preview-open .masthead, body.legacy-preview-open .page-controls { visibility: hidden; }
