/* Readability, natural mobile flow, interior tour and construction sequence. */
:root { scroll-padding-top: 100px; }
body { font-size: 16px; }
section { scroll-margin-top: 18px; }
h2 { line-height: 1.12; }
em { color: #737f69; }
.header { position: fixed; height: 84px; transition: background .25s, border-color .25s; }
.header-scrolled { background: #192218f5; border-color: #ffffff25; backdrop-filter: blur(18px); }
.desktop-nav { font-size: 15px; gap: 26px; }
.header-cta { font-size: 14px; min-height: 46px; align-items: center; }
.brand span { font-size: 16px; }
.eyebrow,.section-label { font-size: 12px; letter-spacing: .1em; }
.hero-bottom p { font-size: 17px; line-height: 1.6; }
.round-link { font-size: 17px; }
.scene { height: 175svh; }
.scene-sticky { min-height: 680px; }
.hero-intro { top: 19%; }
.house-menu,.scene-topic { top: max(100px,14%); width: 440px; right: 6%; padding: 26px 30px; }
.house-menu h2 { font-size: 34px; margin: 16px 0; }
.menu-topline { font-size: 11px; }
.scene-menu-list button,.scene-menu-list a { font-size: 16px; min-height: 48px; padding: 11px 0; gap: 16px; }
.scene-menu-list small { font-size: 11px; }
.scene-menu-list b { font-size: 20px; }
.scene-menu-list .interior-entry { color: #e8d6a5; }
.scene-topic { min-height: 450px; }
.scene-topic h2 { font-size: 34px; }
.scene-topic p { font-size: 16px; line-height: 1.6; }
.scene-topic .text-link,.back-to-menu { font-size: 14px; min-height: 40px; }
.guide { left: 8%; width: 39%; height: 76%; }
.scene-footer { bottom: 35px; font-size: 12px; }
.scene-hint { margin: 0 20px; text-align: center; }
.motion-toggle { font-size: 12px; min-height: 38px; }
.scene-actions { position: absolute; z-index: 5; bottom: 95px; right: 6%; width: 440px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.scene-actions a,.scene-actions button { font-size: 14px; background: #182218e8; color: #ecf0e3; border: 1px solid #ffffff45; min-height: 44px; padding: 10px 15px; }
.scene-actions:not(.is-open) { right: 7%; bottom: 110px; width: auto; }
.scene-actions:not(.is-open) a { border-color: #ffffff70; }
.section-heading > p,.section-heading > div > p { font-size: 16px; color: #606b55; max-width: 350px; }
.intro-copy,.layer-description,.benefit-grid p,.compare-item p,.process-grid > div > p,.process-steps p { font-size: 17px; line-height: 1.7; }
.intro-copy { color: #56624a; }
.large-copy { font-size: 21px; color: #59654e; }
.text-link { font-size: 16px; min-height: 46px; }
.guide-story { height: 580px; }
.guide-story img { object-position: center 30%; }
.wall-info h3 { font-size: 34px; }
.layer-tabs button { width: 48px; height: 48px; font-size: 14px; }
.wall-axis { font-size: 12px; }
.layer-detail > span,.compare-item > span { font-size: 13px; }
.layer-detail p { font-size: 16px; }
.model-note,.source-link,.fineprint,.gallery-attribution { font-size: 13px; line-height: 1.65; }
.slab span { font-size: 14px; }
.benefits .section-heading > p { color: #c0cbb6; }
.benefit-grid h3 { font-size: 26px; max-width: none; }
.benefit-grid p { color: #c6d0be; }
.evidence summary,.evidence p { font-size: 16px; }
.evidence a { font-size: 14px; line-height: 1.5; }
.compare-tabs button { font-size: 15px; min-height: 48px; padding: 12px 18px; }
.compare-content h3 { font-size: 29px; }
.gallery-filters { gap: 12px; }
.gallery-filters button { font-size: 14px; min-height: 44px; padding: 10px 3px; }
.project-tag { font-size: 11px; }
.project-meta h3 { font-size: 23px; line-height: 1.3; }
.project-meta > span { font-size: 14px; line-height: 1.55; }
.project-card:nth-child(even) { padding-top: 0; }
.project-card:nth-child(even) .project-image,.project-image { height: 330px; }
.gallery-grid { grid-template-columns: 1fr 1fr; gap: 44px 32px; }
.project-card[data-project="partner53"] .project-image img { object-position: center 42%; }
.process-photo { height: 660px; }
.process-steps summary span { font-size: 21px; }
.process-steps summary small { font-size: 13px; }
.process-steps summary { min-height: 70px; }
.process-steps p { padding-right: 0; }
.contact-grid > div > p { font-size: 17px; }
form > label,legend { font-size: 15px; }
input,textarea { font-size: 17px; min-height: 48px; }
.stage-options span { font-size: 14px; min-height: 46px; display: flex; align-items: center; }
.submit-button { font-size: 17px; min-height: 58px; }
.form-note { font-size: 13px; line-height: 1.6; }
#form-result { padding: 24px; font-size: 15px; }
#form-result h3 { font-size: 24px; margin-bottom: 12px; }
#brief-preview { font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; padding-top: 18px; border-top: 1px solid #ffffff30; }
#download-brief { font-size: 16px; min-height: 48px; display: inline-flex; align-items: center; }
#form-error { color: #ffe0ae; font-size: 14px; margin-top: 12px; }
footer > div { font-size: 13px; line-height: 1.6; }
.dialog-close,.room-dialog-close { width: 46px; height: 46px; }
.dialog-copy p { font-size: 16px; }
.dialog-copy > a { font-size: 14px; }
.dialog-nav { font-size: 14px; }
.dialog-nav button { width: 48px; height: 48px; }
dialog { scrollbar-gutter: stable; }
dialog h2 { line-height: 1.2; }
body.modal-open { overflow: hidden; }
.mobile-nav { position: fixed; top: 84px; max-height: calc(100svh - 84px); overflow-y: auto; }

/* Interior explorer — buttons only; scrolling never controls room changes. */
.interior-section { background: #1b241b; color: #f0f0e5; }
.interior-section .section-label i { background: #ffffff2a; }
.interior-section em { color: #b3c0a2; }
.interior-section .section-heading > p { color: #c2cbbb; }
.room-stage { position: relative; overflow: hidden; background: #2d362a; aspect-ratio: 16/9; }
#room-image { width: 100%; height: 100%; object-fit: cover; }
.room-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(transparent 48%,#101b16b8); }
#expand-room { position: absolute; right: 28px; top: 24px; background: #f1f0e9e8; color: #202b1d; border: 1px solid #e6e8d4; padding: 12px 17px; min-height: 48px; font-size: 15px; }
#expand-room span { margin-left: 25px; }
.room-caption { position: absolute; left: 4%; bottom: 7%; }
.room-caption > span { font-size: 13px; color: #e4ddc9; }
.room-caption h3 { font-size: clamp(38px,4.5vw,64px); letter-spacing: -.04em; margin-top: 10px; }
.room-caption p { font-size: 17px; margin-top: 5px; }
.room-controls { display: flex; justify-content: space-between; align-items: stretch; gap: 25px; border-bottom: 1px solid #ffffff35; }
.room-tabs { display: flex; flex: 1; }
.room-tabs button { flex: 1; min-height: 78px; color: #c0cbb6; background: transparent; border-bottom: 2px solid transparent; padding: 20px 14px; font-size: 18px; text-align: left; }
.room-tabs button > span { font-size: 12px; margin-right: 18px; color: #9eae8e; }
.room-tabs button[aria-selected="true"] { color: #fff; border-color: #d7c69b; }
.room-arrows { display: flex; align-items: center; gap: 10px; }
.room-arrows button { width: 48px; height: 48px; color: inherit; border: 1px solid #ffffff55; background: transparent; font-size: 24px; }
.room-detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; padding: 25px 0; }
.room-detail p { font-size: 17px; color: #d1d8c8; }
.room-detail .room-materials { text-align: right; font-size: 14px; color: #d5c7a4; }
.interior-note { max-width: 850px; font-size: 13px; color: #aebda2; margin-top: 12px; }
.interior-section .text-link { margin-top: 15px; }
.room-enter { animation: roomEnter .75s cubic-bezier(.2,.7,.2,1) both; }
@keyframes roomEnter { from { opacity: .15; transform: scale(1.035); clip-path: inset(0 8% 0 0); } to { opacity: 1; transform: scale(1); clip-path: inset(0 0 0 0); } }
#room-dialog { max-width: 1400px; width: 94vw; background: #182117; color: #eff2e5; }
#room-dialog-image { height: auto; max-height: 72svh; object-fit: contain; width: 100%; }
.room-dialog-close { position: sticky; top: 15px; float: right; margin: 15px 15px -61px 0; z-index: 2; border-radius: 50%; font-size: 29px; color: #1e2b18; background: #eff1e6; }
.room-dialog-bar { padding: 25px 30px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.room-dialog-bar h2 { font-size: 30px; margin-top: 8px; }

/* A separate, explicitly started construction visualisation. */
.build-section { background: #e8e7de; }
.build-stage { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #293328; isolation: isolate; }
.build-frame { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; }
.build-stage:after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(transparent 52%,#152015b8); pointer-events: none; }
.build-frame.revealing { z-index: 1; animation: buildReveal 1.65s cubic-bezier(.16,.6,.22,1) both; }
@keyframes buildReveal { 0% { clip-path: polygon(0 100%,100% 100%,100% 100%,0 100%); } 58% { clip-path: polygon(0 22%,100% 46%,100% 100%,0 100%); } 100% { clip-path: polygon(0 0,100% 0,100% 100%,0 100%); } }
.build-caption { position: absolute; left: 4%; bottom: 7%; z-index: 3; color: #fff; max-width: 70%; }
.build-caption span { font-size: 12px; letter-spacing: .08em; color: #e1d5b8; }
.build-caption h3 { font-size: clamp(30px,3.7vw,54px); line-height: 1.13; margin-top: 14px; letter-spacing: -.035em; }
.build-controls { margin-top: 24px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.build-controls button { font-size: 16px; min-height: 50px; padding: 13px 23px; background: transparent; border: 1px solid #6d7e5e; }
#build-play { color: #fff; background: #34472c; border-color: #34472c; min-width: 220px; }
#build-play:hover { background: #465b3c; }
#build-pause:disabled { opacity: .45; }
.build-controls > p { font-size: 14px; color: #526447; margin-left: auto; }
.build-steps { display: grid; grid-template-columns: repeat(5,1fr); margin-top: 32px; border-top: 1px solid #a7b29c; }
.build-steps button { padding: 19px 12px 14px 0; font-size: 16px; line-height: 1.3; color: #58694d; text-align: left; background: none; border-top: 3px solid transparent; min-height: 75px; }
.build-steps button span { display: block; color: #77856d; font-size: 12px; margin-bottom: 9px; }
.build-steps button[aria-pressed="true"] { border-color: #354a2c; color: #25381d; }
.build-description { font-size: 17px; color: #46563c; max-width: 820px; margin-top: 17px; min-height: 57px; }
.build-note { font-size: 13px; color: #647159; margin-top: 20px; max-width: 920px; }
.build-section > .text-link { margin-top: 18px; }
#room-status { font-size: 15px; color: #e9d19d; }
/* Shade is limited to supporting the text; daylight and facade detail remain visible. */
.scene-shade { background: linear-gradient(180deg,#1220179c 0%,#13201736 25%,transparent 60%,#14221885 100%); }
.hero-intro { text-shadow: 0 2px 18px #102013a6; }
.hero-intro .eyebrow,.hero-bottom p { text-shadow: 0 1px 5px #0b180deb; }

/* Static mode has no scroll runway: the open scene stays in normal page flow. */
.static-scene .scene { height: auto; }
.static-scene .scene-sticky { position: relative; height: 100svh; min-height: 720px; }
.static-scene .scene-camera { transform: none; }
.static-scene .hero-intro { display: block; }
.static-scene:not(.scene-open-state) .hero-intro { opacity: 1; transform: none; }
.static-scene .guide,.static-scene .house-menu,.static-scene .scene-topic { transform: none; }
.static-scene .scene-hint { display: block; }
.static-scene .scene-camera,.static-scene .cutaway,.static-scene .scene-open { transition: opacity .65s, clip-path .85s; }
.motion-reduced *, .motion-reduced *:before, .motion-reduced *:after { animation: none !important; transition: none !important; }
html:has(.motion-reduced) { scroll-behavior: auto; }

@media (max-width: 1100px) {
  .header { padding: 0 4%; }
  .desktop-nav { gap: 17px; font-size: 14px; }
  .header-cta { gap: 16px; }
  .house-menu,.scene-topic,.scene-actions { right: 4%; width: 410px; }
  .guide { left: 3%; width: 43%; }
  .benefit-grid { gap: 28px; }
  .benefit-grid h3 { font-size: 24px; }
  .process-grid { gap: 6%; }
}
@media (max-width: 900px) {
  .facade-piece { background-image: url('assets/web/house-exterior.webp'); }
  :root { scroll-padding-top: 88px; }
  section { scroll-margin-top: 12px; }
  .header { height: 76px; padding: 0 5%; }
  .brand span { font-size: 14px; }
  .desktop-nav { display: none; }
  .menu-toggle { display: block; width: 44px; height: 44px; }
  .header-cta { font-size: 13px; min-height: 44px; padding: 9px 12px; }
  .mobile-nav { top: 76px; max-height: calc(100svh - 76px); }
  .mobile-nav a { font-size: 18px; padding: 17px 4px; }
  .section-pad { padding: 66px 6%; }
  .section-label { font-size: 11px; margin-bottom: 34px; line-height: 1.6; }
  .section-heading { display: block; }
  .section-heading > p,.section-heading > div > p { font-size: 17px; margin-top: 21px; max-width: none; }
  h2 { font-size: clamp(34px,7.3vw,49px); }
  .static-scene .scene-sticky { min-height: 760px; height: 100svh; overflow: clip; }
  .hero-intro { top: 155px; left: 6%; right: 6%; }
  .hero-intro .eyebrow { font-size: 11px; line-height: 1.7; max-width: 310px; letter-spacing: .065em; }
  .hero-intro h1 { font-size: clamp(37px,7.8vw,58px); line-height: 1.08; margin-top: 20px; }
  .hero-bottom { display: block; margin-top: 24px; }
  .hero-bottom p { font-size: 17px; max-width: 380px; }
  .round-link { font-size: 17px; gap: 18px; margin-top: 25px; }
  .round-link b { width: 50px; height: 50px; }
  .scene-actions:not(.is-open) { bottom: 88px; right: 6%; left: 6%; width: auto; }
  .scene-actions:not(.is-open) a { font-size: 15px; }
  .scene-footer { left: 6%; right: 6%; bottom: 27px; font-size: 11px; }
  .scene-count { display: none; }
  .scene-hint { display: none !important; }
  .motion-toggle { font-size: 13px; min-height: 44px; }
  .scene-open-state .scene-sticky { height: auto; min-height: 0; padding-bottom: 0; }
  .scene-open-state .scene-camera,.scene-open-state .scene-shade { height: 650px; }
  .scene-open-state .hero-intro { display: none; }
  .scene-open-state .scene-open { position: relative; inset: auto; display: flex; flex-direction: column; padding: 110px 0 0; }
  .scene-open-state .guide { position: relative; width: min(100%,550px); height: 390px; left: auto; bottom: auto; margin: 0 auto; }
  .scene-open-state .guide img { width: 100%; height: 100%; object-position: center top; mask-image: linear-gradient(#000 77%,transparent); }
  .scene-open-state .house-menu,.scene-open-state .scene-topic { position: relative; inset: auto; width: calc(100% - 12%); margin: -12px 6% 0; padding: 25px; background: #1b251bf2; min-height: 0; }
  .house-menu h2 { font-size: 32px; margin: 18px 0; }
  .menu-topline { font-size: 11px; }
  .menu-topline span:last-child { display: block; }
  .scene-menu-list button,.scene-menu-list a { min-height: 57px; font-size: 17px; padding: 14px 0; gap: 15px; line-height: 1.35; }
  .scene-menu-list small { font-size: 12px; }
  .scene-menu-list b { font-size: 23px; }
  .scene-topic h2 { font-size: 31px; }
  .scene-topic p { font-size: 17px; }
  .scene-topic .eyebrow { font-size: 11px; }
  .scene-topic .text-link,.back-to-menu { font-size: 16px; min-height: 46px; }
  .mini-wall { height: 90px; }
  .mini-wall i { height: 70px; width: 45px; }
  .scene-open-state .scene-actions { position: relative; inset: auto; display: flex; width: calc(100% - 12%); margin: 22px 6% 15px; align-items: stretch; }
  .scene-actions a,.scene-actions button { font-size: 15px; padding: 13px 15px; min-height: 49px; }
  .scene-open-state .scene-footer { position: relative; inset: auto; padding: 0 6% 12px; }
  .intro-grid { display: block; }
  .intro-copy { margin-top: 28px; }
  .guide-story { height: 550px; }
  .guide-story img { object-position: 27% center; }
  .wall-grid { display: flex; flex-direction: column; gap: 35px; align-items: stretch; }
  .wall-model { height: 280px; gap: 18px; }
  .layer-description { min-height: 0; }
  .wall-info h3 { font-size: 31px; }
  .wall-axis { margin-bottom: 12px; }
  .model-note { font-size: 13px; }
  .benefit-grid { display: block; }
  .benefit-grid article { margin-top: 32px; }
  .benefit-icon { float: right; }
  .benefit-grid h3 { padding-right: 55px; font-size: 27px; }
  .evidence summary,.evidence p { font-size: 17px; }
  .compare-tabs button { font-size: 15px; min-height: 48px; }
  .compare-content #compare-items { grid-template-columns: 1fr; gap: 27px; }
  .compare-item > span { font-size: 13px; }
  .fineprint { font-size: 13px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 35px; }
  .gallery-filters button { font-size: 14px; padding: 10px 0; }
  .project-image,.project-card:nth-child(even) .project-image { height: 320px; }
  .project-meta h3 { font-size: 23px; }
  .project-meta > span { font-size: 15px; }
  .gallery-attribution { font-size: 13px; }
  .process-grid { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 35px; }
  .process-photo { height: 510px; }
  .process-steps summary { gap: 13px; }
  .process-steps summary span { font-size: 20px; }
  .process-steps p { font-size: 17px; padding-left: 28px; }
  .contact-grid { display: block; }
  .contact form { margin-top: 36px; }
  .contact h2 { font-size: 53px; }
  .contact-mark { display: none; }
  .stage-options { gap: 8px; }
  .stage-options span { font-size: 14px; }
  .contact-grid > div > p { font-size: 17px; }
  footer > div { font-size: 13px; }
  .dialog-copy { padding: 24px; }
  .dialog-copy h2 { font-size: 28px; }
  .dialog-copy p { font-size: 16px; }
  .room-stage { aspect-ratio: 4/5; }
  #room-image { object-position: center; }
  #expand-room { top: auto; bottom: 22px; right: 20px; font-size: 14px; padding: 12px; }
  #expand-room span { margin-left: 9px; }
  .room-caption { left: 6%; bottom: 100px; }
  .room-caption h3 { font-size: 44px; }
  .room-caption p { font-size: 17px; max-width: 260px; }
  .room-controls { display: block; }
  .room-tabs button { font-size: 16px; padding: 17px 6px; min-height: 77px; text-align: center; }
  .room-tabs button > span { display: block; font-size: 11px; margin: 0 0 7px; }
  .room-controls > .room-arrows { justify-content: flex-end; padding: 15px 0; }
  .room-detail { grid-template-columns: 1fr; gap: 14px; padding-top: 20px; }
  .room-detail .room-materials { text-align: left; font-size: 14px; }
  .interior-note { font-size: 13px; }
  #room-dialog-image { min-height: 0; max-height: 68svh; height: auto; }
  .room-dialog-bar { padding: 24px 20px; }
  .room-dialog-bar .eyebrow { font-size: 10px; }
  .room-dialog-bar h2 { font-size: 27px; }
  .build-stage { aspect-ratio: 4/3; }
  .build-frame { object-position: center; }
  .build-caption { left: 6%; bottom: 8%; max-width: 85%; }
  .build-caption h3 { font-size: 29px; }
  .build-caption span { font-size: 11px; }
  .build-controls { gap: 10px; }
  .build-controls button { font-size: 16px; padding: 12px 16px; }
  #build-play { min-width: 0; flex: 1; }
  .build-controls > p { width: 100%; margin: 7px 0 0; font-size: 14px; }
  .build-steps { grid-template-columns: repeat(3,1fr); gap: 4px 12px; margin-top: 25px; }
  .build-steps button { font-size: 14px; min-height: 77px; }
  .build-description { font-size: 17px; }
}
@media (max-width: 380px) {
  .header-cta { display: none; }
  .hero-intro { top: 135px; }
  .hero-intro h1 { font-size: 35px; }
  .hero-bottom p { font-size: 16px; }
  .scene-open-state .house-menu,.scene-open-state .scene-topic { padding: 20px; }
  .scene-actions a,.scene-actions button { padding: 11px; font-size: 14px; }
  .scene-open-state .guide { height: 345px; }
  .scene-menu-list button,.scene-menu-list a { font-size: 16px; }
  .section-pad { padding: 58px 6%; }
  h2 { font-size: 34px; }
  .wall-model { gap: 12px; }
  .room-caption h3 { font-size: 38px; }
  .project-image,.project-card:nth-child(even) .project-image { height: 270px; }
  .process-photo { height: 450px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*:before,*:after { animation: none !important; transition: none !important; }
}

/* Each partner object can contain its own complete, captioned photo series. */
.gallery-summary { font-size: 14px; color: #66735b; margin: -18px 0 28px; }
#project-dialog { max-width: 1180px; }
.project-main-image { position: relative; background: #1b241a; }
#dialog-image { display: block; width: 100%; height: min(59svh,620px); min-height: 280px; object-fit: contain; transition: opacity .2s; }
.project-main-image.is-loading #dialog-image { opacity: .4; }
.photo-controls { position: absolute; right: 20px; bottom: 18px; display: flex; gap: 10px; align-items: center; padding: 5px; color: white; background: #172216e8; }
.photo-controls button { width: 48px; height: 44px; font-size: 23px; background: transparent; color: white; }
.photo-controls button:disabled { opacity: .3; }
.photo-controls span { min-width: 87px; text-align: center; font-size: 14px; }
#photo-load-status { position: absolute; top: 20px; left: 20px; color: white; font-size: 14px; background: #172216e8; }
#photo-load-status:not(:empty) { padding: 9px 14px; }
.photo-thumbs { display: flex; gap: 10px; padding: 4px 30px 18px; overflow-x: auto; scrollbar-width: thin; }
.photo-thumbs button { flex: 0 0 96px; padding: 3px; background: transparent; border: 2px solid transparent; min-height: 70px; }
.photo-thumbs img { width: 86px; height: 58px; object-fit: cover; }
.photo-thumbs button[aria-pressed="true"] { border-color: #455d34; }
#project-dialog .dialog-copy { padding-top: 15px; border-top: 1px solid #a7b39855; }
.dialog-nav { justify-content: space-between; }
.dialog-nav button { width: auto; min-width: 112px; padding: 10px 14px; font-size: 15px; }
.dialog-nav button:disabled { opacity: .4; }
@media (max-width: 700px) {
  #project-dialog { width: 95vw; max-height: 94svh; }
  #dialog-image { height: 35svh; min-height: 240px; }
  .photo-controls { right: 10px; bottom: 10px; }
  .photo-controls button { width: 44px; height: 44px; }
  .photo-thumbs { padding: 5px 20px 15px; gap: 7px; }
  .photo-thumbs button { flex-basis: 75px; min-height: 57px; }
  .photo-thumbs img { height: 46px; width: 65px; }
  .dialog-nav { gap: 8px; flex-wrap: wrap; }
  .dialog-nav span { order: -1; width: 100%; }
  .dialog-nav button { min-width: 110px; font-size: 15px; }
  .gallery-summary { font-size: 14px; margin-top: -10px; }
}
