.ask {font:inherit;cursor:pointer}
.mast img {height:auto}
.mast button {pointer-events:auto}
.media {overflow:hidden;background:#36352f}
.media video,.media-fallback {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}
.travel-film {opacity:0}
.travel-film.active-film {opacity:1}
.track {height:310svh}
.stage {height:100dvh;overflow:clip;background:var(--paper-hero);--caption-space:calc(var(--intro-height,230px)*var(--intro-shown,1) + var(--arrival-height,230px)*var(--arrival-shown,0))}
.stage .overlay {z-index:1}
.intro h1 {white-space:nowrap;line-height:.98}
.intro .eyeline {letter-spacing:.17em}
.film-controls {position:absolute;display:flex;align-items:center;color:#fffdf4}
.light-set button {font:550 12px/1.1 var(--sc-font-text);background:transparent;border:0;min-height:33px;cursor:pointer}
.rail-foot {justify-content:flex-end}
/* The caption has its own place in the page. The open middle of the shot fills the viewport. */
body{--paper-hero:#eeeae0;--column:clamp(285px,36vw,660px);--split:1;background:var(--paper-hero)}
#scene{position:absolute;inset:0;width:100%;height:100%;background:var(--paper-hero);overflow:hidden;clip-path:inset(0 0 0 calc(var(--column)*var(--split)))}
#scene .media{container-type:size;transform:translate3d(calc(var(--column)*var(--split)*.5),0,0)}
.camera-screen,.camera-print{position:absolute;pointer-events:none}
.camera-screen{inset:0;width:100%;height:100%;object-fit:cover;z-index:1}
.camera-print{top:50%;left:50%;width:max(100cqw,177.77778cqh);height:auto;max-width:none;transform:translate(-50%,-50%);z-index:2}
.kitchen-print{opacity:0}
@media(max-aspect-ratio:4/5){
 .camera-print{width:max(315.78947cqw,177.77778cqh)}
 .living-print{transform:translate(-32%,-50%)}
 .kitchen-print{transform:translate(-51%,-50%)}
}
.stage .overlay{left:0;top:0;bottom:0;width:var(--column);max-width:none;padding:0 clamp(18px,2.5vw,48px);display:flex;flex-direction:column;align-items:flex-start;justify-content:center;color:#282923;pointer-events:none}
.stage .overlay .eyeline{color:#595a4c;font-size:clamp(9px,.75vw,12px);margin:0 0 15px}
.stage .overlay h1,.stage .overlay h2{color:inherit;text-shadow:none;-webkit-text-stroke:0;font-size:clamp(28px,3.67vw,71px);letter-spacing:-.065em}
.stage .overlay h2{font-size:clamp(32px,3.95vw,76px);line-height:1.02}
.stage .overlay p:not(.eyeline){max-width:35ch;font-size:clamp(15px,1.14vw,20px);line-height:1.5;margin-top:20px}
.stage .actions{pointer-events:auto;gap:12px 16px}.stage .actions a{color:#34372e;text-shadow:none;background:transparent;padding:3px 0;border:0;text-decoration:underline;text-decoration-color:#757765}.stage .actions button{background:#30332a;color:#fffbed;border-radius:25px;padding:10px 16px}
.film-controls{top:auto;right:clamp(14px,2.3vw,38px);bottom:clamp(15px,3.5vh,38px);z-index:4;gap:6px}
.light-trigger{border:1px solid #ffffff56;min-height:42px;border-radius:24px;background:#242721ed;color:#fbf7eb;display:inline-flex;align-items:center;justify-content:center;gap:9px;font:550 13px/1.1 var(--sc-font-text);cursor:pointer}
.light-trigger{padding:7px 13px 7px 9px}.dial,.light-set i{display:inline-block;width:20px;height:20px;border-radius:50%;background:linear-gradient(148deg,#bed4dd,#f7e1ac);border:1px solid #faf6e366}
html:not([data-scene-light]) .dial,html[data-scene-light="dusk"] .dial,[data-light="dusk"] i{background:linear-gradient(140deg,#755d89,#fab775)}
html[data-scene-light="night"] .dial,[data-light="night"] i{background:linear-gradient(150deg,#111e35,#74839d)}
[data-light="auto"] i{background:conic-gradient(#f5e6be,#c59270,#253a50,#f5e6be)}
.light-set{position:absolute;right:0;bottom:calc(100% + 8px);display:grid;grid-template-columns:repeat(4,1fr);gap:4px;border-radius:12px;background:#282b25fa;padding:7px;border:1px solid #fff4;box-shadow:0 6px 18px #16171136}
.light-set[hidden],.film-loading[hidden],.retry-film[hidden]{display:none}
.light-set button{display:grid;justify-items:center;gap:5px;border-radius:6px;padding:8px;min-width:46px;font-size:11px;color:#fff}.light-set button[aria-pressed="true"]{background:#f1e7d5;color:#282b24}
body .film-loading{position:absolute;top:75px;right:16px;z-index:3;display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:4px;color:#fff;background:#282b25ef;font-size:13px}
.film-loading .retry-film{background:#fbf8ef;color:#262721;border:0;border-radius:16px;padding:7px 14px;cursor:pointer}
.film-loading .loading-mark,.film-loading .load-number{display:none}
@media(max-width:780px) and (orientation:portrait){
 #scene{clip-path:inset(0 0 var(--caption-space) 0)}
 #scene .media{transform:translate3d(0,calc(var(--caption-space)*-.5),0)}
 .stage .overlay{inset:auto 0 0;width:100%;height:auto;min-height:clamp(195px,27svh,250px);background:var(--paper-hero);padding:18px 5.4vw max(18px,env(safe-area-inset-bottom));justify-content:center}
 .stage .overlay h1,.stage .overlay h2{font-size:clamp(26px,8.4vw,53px)}
 .stage .overlay .eyeline{margin-bottom:6px}.stage .overlay p:not(.eyeline){font-size:clamp(15px,3.8vw,17px);line-height:1.4;max-width:48ch;margin-top:8px}.stage .actions{margin-top:10px;gap:10px}.stage .actions a,.stage .actions button{font-size:13px}.stage .actions button{padding:8px 12px}
 .film-controls{bottom:calc(var(--caption-space) + 10px);right:max(12px,env(safe-area-inset-right))}
}
@media(max-height:480px) and (orientation:landscape){.stage .overlay{padding-top:36px}.stage .overlay p:not(.eyeline){font-size:13px;line-height:1.3;margin-top:8px}.stage .overlay .eyeline{margin-bottom:6px}.stage .actions{margin-top:9px}.stage .actions button,.stage .actions a{font-size:12px}.stage .actions button{padding:6px 11px}}
@media(prefers-reduced-motion:reduce){.loading-mark{animation:none}}
/* The caption retreats by the same amount as the apartment widens. */
.stage .overlay{transform:translateX(calc((var(--shown,1) - 1)*100%));will-change:transform,opacity}
@media(max-width:780px) and (orientation:portrait){.stage .overlay{transform:translateY(calc((1 - var(--shown,1))*100%))}}
@media(prefers-reduced-motion:reduce){.stage .overlay{transform:none}}

/* A solid, floating navigation bar returns on an upward scroll or keyboard focus. */
#navigation{inset:max(12px,env(safe-area-inset-top)) auto auto 50%;width:max-content;max-width:calc(100vw - 20px);border:1px solid #bfb9a8;background:#f4f0e5;color:#26352b;border-radius:6px;padding:7px 8px 7px 15px;gap:clamp(15px,2.7vw,48px);box-shadow:0 3px 14px #28251c1c;pointer-events:auto;transform:translate(-50%,0);transition:transform .28s cubic-bezier(.2,.72,.2,1)}
#navigation.tucked:not(:has(:focus-visible)){transform:translate(-50%,calc(-100% - 30px));pointer-events:none}
#navigation img{width:clamp(64px,5.2vw,90px);filter:brightness(0);opacity:.88}
#navigation nav{gap:clamp(2px,1vw,15px)}
#navigation nav a,#navigation .brief-nav{display:inline-flex;align-items:center;justify-content:center;font-size:13px;line-height:1.2;min-height:37px;white-space:nowrap;text-shadow:none;padding:8px 10px;border:0;background:transparent;color:#29382d;border-radius:3px}
#navigation .brief-nav{background:#2b3c31;color:#fffbed;padding-inline:15px}
#navigation .brief-nav:hover{background:#425a48}
#navigation nav a:hover{text-decoration:underline}
@media(max-width:420px){#navigation{gap:8px;padding:4px 5px 4px 8px}#navigation img{width:54px}#navigation nav{gap:0}#navigation nav a,#navigation .brief-nav{font-size:12px;padding-inline:7px}}
/* Each film stays alongside its narrative on desktop; on touch it has its own viewing space. */
.material-story{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);background:#ebe8de}
.studio-note,.decisions{min-height:100vh;min-height:100dvh}
.material-story .studio-note,.material-story .decisions{grid-column:1;min-width:0;background:#ede9df;padding:clamp(52px,8vh,112px) clamp(24px,4.6vw,85px)}
.material-story .decisions{background:#e2dfd1}
.material-story .note-inner{max-width:100%}
.note-inner h2{font-size:clamp(38px,4.5vw,84px)}
.chapter-copy{display:contents}
.chapter-art{margin:0;min-width:0;grid-column:2;grid-row:1/3;align-self:stretch;background:#dad9cb}
.chapter-stage{position:sticky;top:0;height:100dvh;overflow:hidden;background:#d4cbbc}
.chapter-image{position:absolute;inset:0}
.chapter-still,.chapter-canvas{display:none}
.chapter-film{display:block;width:100%;height:100%;object-fit:cover}
.chapter-art figcaption{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.work{background:#23251f}
.work-stage{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;justify-content:center}
.contact{min-height:100vh;min-height:100dvh;background:#50372e;grid-template-columns:minmax(0,1.03fr) minmax(0,.97fr)}
.contact-copy{align-self:center;padding:clamp(55px,8.6vh,120px) var(--edge)}
.contact .contact-link{border-radius:3px;padding:14px 22px}
@media(max-width:900px), (pointer:coarse), (max-aspect-ratio:6/5){
  .material-story{--film-height:min(83.333vw,43svh);display:grid;grid-template-columns:minmax(0,1fr)}
  /* Both layers span the same grid cell. The clear part of the sticky figure
     leaves the text interactive and releases with the last panel. */
  .chapter-art{grid-area:1/1;align-self:start;position:sticky;top:0;height:100dvh;z-index:1;pointer-events:none;background:transparent}
  .chapter-stage{position:relative;height:var(--film-height);background:#d4cbbc}
  .construction-frames .chapter-film{display:none}
  .chapter-still img:not(.ready){visibility:hidden}
  .chapter-still,.chapter-still img,.chapter-canvas:not([hidden]){display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
  .chapter-copy{grid-area:1/1;display:block;position:relative;z-index:0;padding-top:var(--film-height)}
  .chapter-copy :is(a,button){scroll-margin-top:calc(var(--film-height) + 12px)}
  .material-story .studio-note,.material-story .decisions{display:grid;align-items:center;min-height:calc(100svh - var(--film-height));padding:clamp(36px,6svh,66px) var(--edge)}
  .note-inner h2,.studio-note h2{max-width:100%}
}
@media(max-width:900px), (pointer:coarse){
  .track{height:195svh}
  .stage{height:100svh}
  #navigation nav a,#navigation .brief-nav,#navigation>a,.light-trigger,.light-set button,.stage .actions a,.stage .actions button{min-height:44px}
  #navigation>a{display:inline-flex;align-items:center}
  .stage .actions{gap:4px 14px}
  .stage .overlay{background:var(--paper-hero)}
}
@media(max-width:650px){
  .contact{grid-template-columns:1fr;grid-template-rows:minmax(28svh,1fr) auto}
  .contact-image{height:auto;min-height:28svh}
  .contact-copy{padding:clamp(35px,6.8dvh,65px) var(--edge)}
}


/* Pair each term, definition and rule on a single scroll cue. */
.decision-row{position:relative;padding-block:clamp(14px,2.1svh,27px)}
.decision-row::before{content:"";position:absolute;inset:0 0 auto;height:1px;background:#898779;transform-origin:left;transform:scaleX(var(--reveal,1))}
.decision-row dt,.decision-row dd{border:0;padding:0;margin:0;opacity:var(--reveal,1);transform:translateY(calc((1 - var(--reveal,1))*18px))}
.decision-row dd{margin-top:4px}
@media(prefers-reduced-motion:reduce){
  .decision-row::before,.decision-row dt,.decision-row dd{transform:none;opacity:1}
}

/* The image sets the proportions of each card, from wide elevation to portrait. */
.rail{align-items:center;--photo-height:clamp(250px,52svh,700px)}
.project-card.wide{--image-ratio:1.77778}
.project-card.standard{--image-ratio:1.44291}
.project-card.portrait{--image-ratio:.8}
.project-card{width:min(82vw,calc(var(--photo-height) * var(--image-ratio)))}
.project-frame{height:auto;aspect-ratio:var(--image-ratio)}
.project-frame .cover{object-position:center}
@media(max-width:900px){.rail{--photo-height:clamp(230px,46svh,550px)}}

@media(max-width:350px){
 #navigation{gap:3px;padding-inline:5px}
 #navigation img{width:45px}
 #navigation nav a,#navigation .brief-nav{font-size:11.5px;padding-inline:5px}
}
@media(max-width:900px){
 .work-stage{padding-bottom:max(82px,10svh)}
 .project-card{position:relative}
 .project-card .card-arrow{position:absolute;right:8px;top:8px;width:30px;height:30px;border:0;background:#f6f1e5;color:#26332a;font-size:16px}
}
@media(max-width:400px) and (max-height:690px){
 .rail{--photo-height:clamp(185px,35svh,235px)}
 .work-stage{padding-top:25px}
 .card-copy{padding-top:8px}
 .card-copy h3{font-size:22px}
}
.stage .actions a.detail-link{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 16px;background:#30332a;border-radius:24px;color:#fffbed;text-decoration:none}
.stage .intro{container-type:inline-size}
.stage .intro h1{font-size:min(11.2cqw,71px);letter-spacing:-.058em}
body[data-role="Homeowner"] .stage .intro h1{font-size:min(8.4cqw,63px)}
body[data-role="Interior designer"] .stage .intro h1,body[data-role="Contractor"] .stage .intro h1{font-size:min(9.25cqw,67px)}
body[data-role="Interior designer"] .material-story .decisions{min-height:154svh}
@media(max-width:900px), (pointer:coarse), (max-aspect-ratio:6/5){
 body[data-role="Interior designer"] .material-story .decisions{min-height:calc(100svh - var(--film-height))}
}
@media(max-width:780px) and (orientation:portrait){
 .stage .actions a.detail-link{padding:8px 12px;min-height:44px}
}
.hero-panorama{position:absolute;inset:0;pointer-events:none;z-index:1}.hero-panorama canvas{display:block;width:100%;height:100%}
.pan-poster,.pan-poster img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}

.pan-poster{left:calc(var(--column)*var(--split)*.5);width:calc(100% - var(--column)*var(--split))}
@media(max-width:780px) and (orientation:portrait){.pan-poster{left:0;width:100%}}

@media(prefers-reduced-motion:reduce){
  .rail{align-items:start}
  .rail .project-card{width:100%}
}

@media (prefers-reduced-motion:reduce) and (max-width:900px), (prefers-reduced-motion:reduce) and (pointer:coarse), (prefers-reduced-motion:reduce) and (max-aspect-ratio:6/5){
  .material-story{display:block}
  .chapter-art{position:relative;height:auto}
  .chapter-copy{padding-top:0}
  .material-story .studio-note,.material-story .decisions,body[data-role="Interior designer"] .material-story .decisions{min-height:0}
}
