/* La Casa: a photographic scene, with a line that guides the eye. */
html:has(.house-page){overflow-anchor:none;scroll-behavior:auto;-webkit-text-size-adjust:100%;text-size-adjust:100%}
.house-scroll{text-decoration:none;padding:8px 16px;min-height:44px}
.house-scroll:hover{color:var(--paper)}
.house-scroll:focus-visible,.house-editorial a:focus-visible{outline:none;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:6px}
.house-correspondence.house-editorial{position:relative;min-height:100svh;padding:70px var(--gutter) 100px;scroll-margin:0}
.house-editorial:focus{outline:none}
.house-editorial-inner{max-width:1200px;margin-inline:auto}
.house-editorial h2,.house-editorial h3{font-family:MolardOptima,Optima,serif;font-weight:400;text-wrap:balance}
.house-editorial p{font-size:clamp(18px,1.4vw,21px);line-height:1.55;margin:0;color:var(--paper);text-wrap:pretty;overflow-wrap:break-word}
.house-editorial-intro{min-height:24svh;display:flex;justify-content:center;align-items:center;text-align:center}
.house-editorial-intro h2{font-size:clamp(42px,5vw,76px);line-height:1.1;margin:0}
.house-study{position:relative;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);column-gap:clamp(70px,9vw,140px);align-items:center;min-height:90svh;padding:90px 0 70px;margin-bottom:60px}
.house-whole{margin:0;width:100%;max-width:560px;justify-self:center;min-width:0}
.house-photo img{width:100%;height:auto;aspect-ratio:4/5;display:block}
.house-whole figcaption{font-size:13px;line-height:1.5;margin-top:14px;color:var(--soft)}
.house-study-copy{max-width:350px;position:relative;z-index:2}
.house-study-copy h3{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.house-editorial.is-film .house-sequence{height:400svh;position:relative}
.house-editorial.is-film .house-film{position:sticky;top:0;height:100svh}
.house-editorial.is-film .house-study{position:absolute;inset:0;min-height:0;height:100%;margin:0;padding:90px 0 58px;opacity:0;visibility:hidden;transition:opacity 420ms ease-out,visibility 0s 420ms;pointer-events:none}
.house-editorial.is-film .house-study.is-active{opacity:1;visibility:visible;transition:opacity 600ms cubic-bezier(.22,1,.36,1),visibility 0s;pointer-events:auto}
.house-editorial.is-film .house-whole{width:min(100%,calc(64svh * .8));max-width:560px}
.house-editorial.is-film .house-study-copy{opacity:0;transform:translateY(8px);transition:opacity 180ms ease-out,transform 180ms ease-out}
.house-editorial.is-film .is-active .house-study-copy{opacity:1;transform:none;transition:opacity 650ms 200ms ease-out,transform 900ms 200ms cubic-bezier(.16,1,.3,1)}
.house-editorial-close{max-width:650px;margin:60px auto 110px;text-align:center}
.house-editorial-close p{font-size:19px;color:var(--soft);max-width:48ch;margin:0 auto 54px}
.house-editorial-close h2{font-size:clamp(31px,3.2vw,45px);line-height:1.2;margin:0 0 25px}
.house-editorial-close a{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:44px;padding:8px 0;color:var(--paper);font-size:18px;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:7px}
.house-editorial-close a:hover{text-decoration-thickness:2px}
.house-editorial-close svg{width:21px;height:21px;flex:none}
/* The header remains type on green, never a panel or a backdrop. */
.house-page .house-masthead::before{content:none}
@media(max-width:760px){
 .house-correspondence.house-editorial{padding-top:48px;padding-bottom:90px}
 .house-editorial-intro{min-height:24svh}
 .house-editorial-intro h2{font-size:48px}
 .house-study{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:54px;min-height:0;padding:70px 0;margin-bottom:70px}
 .house-whole{width:100%;max-width:440px}
 .house-study-copy{width:100%;max-width:440px}
 .house-editorial p{font-size:16.5px;line-height:1.55}
 .house-editorial.is-film .house-study{padding:74px 0 30px;gap:36px;justify-content:center}
 .house-editorial.is-film .house-whole{width:calc(38svh * .8);max-width:100%;flex:none}
 .house-editorial.is-film .house-study-copy{max-width:370px;flex:none}
 .house-whole figcaption{font-size:12px;margin-top:10px}
 .house-editorial-close{margin:30px auto 50px;text-align:left}
 .house-editorial-close p{font-size:18px;margin-bottom:36px}
 .house-editorial-close h2{font-size:32px}
}
@media(max-width:360px){
 .house-editorial.is-film .house-whole{width:calc(36svh * .8)}
 .house-editorial.is-film .house-study{gap:42px;padding-top:70px}
 .house-editorial p{font-size:16px}
}
@media(prefers-reduced-motion:reduce){
}


/* An independent antique moulding frames the original photograph. */
.house-photo{border:26px solid transparent;border-image:url('/assets/house-museum-frame.webp') 180 164 180 164 round;filter:drop-shadow(0 12px 12px rgba(0,0,0,.32))}
.house-photo img{position:relative}
.house-whole figcaption{margin-top:20px;font-size:12px;color:var(--soft)}
.house-editorial-close{min-height:calc(100svh - 220px);display:flex;flex-direction:column;justify-content:center;align-items:center}
.house-editorial-close p{font-size:17px;line-height:1.6;margin:0 0 20px;max-width:30ch}
.house-editorial-close a{font-family:MolardOptima,Optima,serif;font-size:clamp(40px,4.3vw,66px);line-height:1.15;text-decoration:none;padding:6px 0;gap:20px}
.house-editorial-close a span{border-bottom:1px solid transparent;transition:border-color 180ms ease}
.house-editorial-close a:hover span{border-bottom-color:transparent}
.house-editorial-close a svg{width:30px;height:30px}
.house-editorial.is-reflowing .house-study,.house-editorial.is-reflowing .house-study-copy{transition:none!important}
@media(max-width:760px){
 .house-photo{border-width:18px;filter:drop-shadow(0 8px 8px rgba(0,0,0,.32))}
 .house-whole figcaption{margin-top:16px}
 .house-editorial-close{text-align:center;min-height:calc(100svh - 180px)}
 .house-editorial-close p{font-size:16px;margin-bottom:18px}
 .house-editorial-close a{font-size:46px;gap:16px}
}
@media(prefers-reduced-motion:reduce){.house-editorial.is-film .house-study,.house-editorial.is-film .house-study-copy{transition:none!important;transform:none}}

/* Quiet, centred museum caption. */
.house-whole figcaption{text-align:center;font-style:italic;font-size:11px;line-height:1.4;letter-spacing:.015em;color:#aebbb2;margin-top:15px}
@media(max-width:760px){.house-whole figcaption{font-size:10px;margin-top:12px}}

/* Sculpted outer silhouette. The photograph stays complete inside the inner lip. */
.house-photo{position:relative;border:0;border-image:none;padding:19.4% 19% 23.2%;isolation:isolate}
.house-photo::after{content:"";position:absolute;inset:0;z-index:1;background:url('/assets/house-museum-frame-ornate.webp') center/100% 100% no-repeat;pointer-events:none}
.house-photo img{width:100%;height:auto;aspect-ratio:4/5;object-fit:contain}
.house-editorial.is-film .house-whole{width:min(100%,calc(68svh * .8))}
/* One ending: the final photograph makes room for a conversation. */
.house-editorial-close{grid-column:1/-1;min-height:0;width:100%;max-width:650px;margin:38px auto 0;text-align:center}
.house-editorial-close p{font-size:17px;line-height:1.5;margin-bottom:14px}
.house-editorial-close a{font-size:clamp(40px,4.3vw,62px)}
.house-editorial.is-film .house-study-final .house-study-copy{transform:none;transition:none}
.house-editorial.is-film .house-editorial-close{position:absolute;left:50%;margin:0;pointer-events:none}
.house-editorial.is-film .house-study.is-closing .house-editorial-close{pointer-events:auto}
@media(max-width:760px){
 .house-editorial.is-film .house-whole{width:min(84vw,40svh)}
 .house-editorial.is-film .house-study{gap:30px}
 .house-editorial-close{margin-top:0}
 .house-editorial-close p{font-size:16px;max-width:28ch}
 .house-editorial-close a{font-size:44px;gap:14px}
 .house-editorial-close a svg{width:26px;height:26px}
}
@media(max-width:360px){.house-editorial.is-film .house-whole{width:min(84vw,38svh)}}
@media(prefers-reduced-motion:reduce){
 .house-study-final .house-whole{transform:none}
}

/* The three frames gather into a single, self-contained closing showcase. */
.house-showcase{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(8px,2vw,30px);align-items:start;width:100%;margin:0 auto 34px}
.house-mini{min-width:0;margin:0}
.house-mini figcaption{text-align:center;font-family:MolardOptima,Optima,serif;font-style:italic;font-size:clamp(9px,.85vw,11px);line-height:1.4;color:#aebbb2;margin-top:12px;min-height:2.8em;text-wrap:balance}
.house-contact{width:100%;text-align:center}
.house-editorial-close{max-width:780px}
.house-editorial.is-film{padding-bottom:0}
.house-editorial.is-film .house-sequence{height:460svh}
.house-editorial.is-film .house-editorial-close{top:50%;width:min(100%,780px,90svh);max-width:none;opacity:1;transform:translate(-50%,-50%)}
.house-editorial.is-film .house-showcase{margin-bottom:34px}
.house-page .house-editorial.is-film .page-footer{position:absolute;bottom:0;left:calc((100% - 100vw) / 2);right:calc((100% - 100vw) / 2);opacity:0;visibility:hidden;pointer-events:none;transition:opacity 420ms ease-out,visibility 0s 420ms}
.house-page .house-editorial.is-film.is-finale .page-footer{opacity:1;visibility:visible;pointer-events:auto;transition:opacity 420ms ease-out,visibility 0s}
@media(max-width:760px){
 .house-showcase,.house-editorial.is-film .house-showcase{gap:8px;margin-bottom:30px}
 .house-mini figcaption{margin-top:9px;font-size:9px}
 .house-editorial-close p{max-width:28ch}
}
@media(prefers-reduced-motion:reduce){.house-page .house-editorial .page-footer{transition:none}}

.house-contact p{margin:0 auto 14px}

/* A short/reduced-motion viewport gets the same complete ending in normal flow. */
.house-correspondence.house-editorial:not(.is-film){padding-bottom:76px}
.house-editorial:not(.is-film) .house-study-final{margin-bottom:0;padding-bottom:0}
.house-editorial:not(.is-film) .house-editorial-close{min-height:calc(100svh - 76px);margin-top:0;justify-content:center}

/* The closing display is just three framed photographs, with breathing room. */
.house-showcase,.house-editorial.is-film .house-showcase{gap:clamp(14px,3vw,42px);margin-bottom:clamp(42px,6svh,60px)}
.house-editorial.is-film .house-editorial-close{top:calc(50% - 8px)}
@media(max-width:760px){
 .house-showcase,.house-editorial.is-film .house-showcase{gap:14px;margin-bottom:44px}
 .house-editorial.is-film .house-editorial-close{width:calc(100% - 8px)}
}

/* Keep the same Nautilus pixels all the way to the third slot: no duplicate crossfade. */
.house-editorial.is-film .house-mini:last-child{opacity:0;transform:none}
.house-editorial.is-film .house-study-final .house-whole{opacity:1}
.house-editorial.is-film .house-study-final .house-whole{transform-origin:50% 0}

/* An invitation to observe, subordinate to the welcome rather than a second display title. */
.house-correspondence.house-editorial{padding-top:clamp(80px,11svh,112px)}
.house-editorial-intro{min-height:18svh}
.house-editorial-intro h2{font-size:30px;line-height:1.25;letter-spacing:.01em}
@media(max-width:760px){.house-editorial-intro h2{font-size:26px}}

/* The print sits behind the inner lip; illumination comes from the upper left.
   Figure-relative units keep the same depth as the Nautilus scales into its slot. */
.house-whole,.house-mini{container-type:inline-size}
.house-photo{filter:drop-shadow(.4cqw .7cqw .45cqw rgba(0,0,0,.58)) drop-shadow(1.1cqw 2.1cqw 1.8cqw rgba(0,0,0,.38))}
.house-print{position:relative;aspect-ratio:4/5;overflow:hidden;background:#1a1a14}
.house-print img{width:100%;height:100%;object-fit:cover}
.house-print::after{content:"";position:absolute;inset:0;pointer-events:none;box-shadow:inset .55cqw .8cqw 1.3cqw rgba(26,15,5,.56),inset -.12cqw -.16cqw .35cqw rgba(28,17,6,.2)}

/* A native modal keeps inspection separate from the reading sequence. */
.house-open{display:block;width:100%;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:inherit;cursor:zoom-in;-webkit-tap-highlight-color:transparent}
.house-open:focus{outline:none}
.house-keyboard-focus .house-open:focus-visible{outline:none;filter:drop-shadow(0 0 5px #bda571)}
.house-editorial.is-film .house-mini:last-child{opacity:1}
.house-editorial.is-film .house-mini:last-child .house-photo{visibility:hidden}
.house-editorial.is-film .house-study-final.is-closing .house-whole{pointer-events:none}
.house-viewer{position:fixed;inset:0;width:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;color:#f7f4ec;overflow:hidden;font-family:MolardOptima,Optima,serif}
.house-viewer::backdrop{background:transparent}
.house-viewer-veil{position:absolute;inset:0;background:#17231e;pointer-events:none}
.house-viewer-source-hidden{visibility:hidden!important}
.house-viewer-tools{position:absolute;z-index:2;top:max(12px,env(safe-area-inset-top));left:clamp(22px,4.5vw,72px);right:clamp(22px,4.5vw,72px);display:flex;justify-content:space-between;gap:24px}
.house-viewer-tools button{font:inherit;font-size:16px;color:inherit;min-height:44px;padding:0;border:0;background:transparent;cursor:pointer}
.house-viewer-tools button:focus{outline:none}
.house-keyboard-focus .house-viewer-tools button:focus-visible{outline:none;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:6px}
.house-viewer-stage{position:absolute;inset:64px 20px max(24px,env(safe-area-inset-bottom));display:grid;place-items:center}
.house-viewer-frame{width:min(100%,calc((100dvh - 112px) / 1.2015));container-type:inline-size;transform-origin:0 0}
.house-viewer .house-print{touch-action:pinch-zoom}
.house-viewer .house-print img{transform-origin:center;user-select:none;-webkit-user-drag:none}
@media(max-width:600px){.house-viewer-stage{left:12px;right:12px}}


@media(prefers-reduced-motion:reduce){.house-viewer .house-print img{transition:none}}

/* A departing photograph may dissolve; its caption must not overlap the next label. */
.house-editorial.is-film .house-study:not(.is-active) > .house-whole figcaption{visibility:hidden}

/* The closing invitation is carried by the lettering alone. */
.house-contact a{color:var(--paper);text-decoration:none;letter-spacing:0;opacity:1;transition:opacity 220ms ease}
.house-contact a span{border:0;transition:none}
@media(hover:hover) and (pointer:fine){.house-contact a:hover{color:var(--paper);opacity:.76;text-decoration:none}}
.house-contact a:active{color:var(--paper);opacity:.65;text-decoration:none}.house-contact a:focus-visible{color:var(--paper);text-decoration:none}
@media(prefers-reduced-motion:reduce){.house-contact a,.house-contact a:hover{transition:none;letter-spacing:0}}

/* Garamond carries reading; Optima keeps headings and actions. */
.house-editorial p{font-family:var(--font-reading);font-size:clamp(20px,1.6vw,24px);line-height:1.48}
.house-editorial-close p{font-size:19px}
.house-whole figcaption,.house-mini figcaption{font-family:var(--font-reading);font-style:italic;font-size:13px;line-height:1.4}
@media(max-width:760px){.house-editorial p{font-size:19px}.house-editorial-close p{font-size:18px}.house-whole figcaption,.house-mini figcaption{font-size:12px}}
@media(max-width:360px){.house-editorial p{font-size:18px}}

/* Preserve the photographic journey on small phones without shrinking the reading. */
@media(max-width:760px) and (max-height:699px) and (orientation:portrait){
 .house-editorial.is-film .house-study{padding:84px 0 24px;gap:18px}
 .house-editorial.is-film .house-whole{width:min(84vw,32svh)}
}
/* A rotated phone uses the desktop arrangement within its shorter stage. */
@media(max-height:699px) and (orientation:landscape){
 .house-editorial.is-film .house-study{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:clamp(24px,5vw,60px);padding:66px 0 28px;align-items:center}
 .house-editorial.is-film .house-whole{width:min(100%,46svh)}
 .house-editorial.is-film .house-study-copy{max-width:370px}
 .house-editorial.is-film .house-editorial-close{width:min(100%,72svh);top:50%}
 .house-editorial.is-film .house-showcase{gap:14px;margin-bottom:8px}
 .house-editorial.is-film .house-contact p{font-size:17px;margin-bottom:4px}
 .house-editorial.is-film .house-contact a{font-size:36px}
}
@media(max-height:360px) and (orientation:landscape){
 .house-editorial.is-film .house-editorial-close{top:calc(50% - 2px)}
 .house-editorial.is-film .house-showcase{margin-bottom:4px}
 .house-editorial.is-film .house-contact p{margin-bottom:0}
 .house-editorial.is-film .house-contact a{font-size:28px}
}
