/* LINORA: the page is built like a piece of made-to-measure furniture.
   Motif: the reveal gap ("fuga"), the thin dark seam between fronts. Panels, plates and doors are separated by it. */
:root{
  --paper:#f3ece0;--paper-2:#ebe2d3;--sand:#e3d7c4;--ink:#2a211b;--soft:#4f443b;--muted:#6b5f55;--line:#d6c9b6;
  --clay:#a24c3b;--clay-soft:#d9a58f;--brass:#a98350;--brass-hi:#d1b07a;--night:#1d1916;--night-2:#2a2420;
  --serif:'Prata',Georgia,serif;--sans:'Hanken Grotesk',Arial,sans-serif;
  --gutter:clamp(22px,4.4vw,84px);--edge:clamp(10px,1.1vw,18px);--header:76px;--fuga:5px;
  --ease:cubic-bezier(.16,1,.3,1);--ease-io:cubic-bezier(.65,0,.15,1);
}
*{box-sizing:border-box}
html{scroll-behavior:auto;scrollbar-gutter:stable;background:var(--paper)}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);font-size:17px;line-height:1.65;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
body,main{min-width:0}
main{overflow:clip}
button,input,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;border:0;background:none;padding:0}
a{color:inherit;text-decoration:none}img{display:block;max-width:100%}figure,p,h1,h2,h3,ol,ul{margin:0}ul,ol{padding:0;list-style:none}
h1,h2,h3{font-weight:400}
h1,h2{font-family:var(--serif);letter-spacing:-.035em}
h1 em,h2 em,h3 em{font-style:normal;color:var(--clay)}
a,button{touch-action:manipulation}
:focus-visible{outline:2px solid var(--clay);outline-offset:5px;border-radius:2px}
[hidden]{display:none!important}
.icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.eyebrow{display:flex;align-items:center;gap:14px;font-size:11.5px;font-weight:600;letter-spacing:.17em;text-transform:uppercase;line-height:1.5;color:var(--soft)}
.eyebrow::before{content:'';width:26px;height:1px;background:var(--brass);flex:none}
.skip-link{position:fixed;left:16px;top:-90px;padding:12px 20px;background:var(--paper);z-index:100}.skip-link:focus{top:16px}
section[id]{scroll-margin-top:calc(var(--header) + 12px)}
.materials[id],.contact[id]{scroll-margin-top:0}
.js .hero h1:not(.words-ready){visibility:hidden;animation:h1-failsafe 0s 2.5s forwards}
@keyframes h1-failsafe{to{visibility:visible}}

/* ---------- header ---------- */
.site-header{height:var(--header);padding:0 var(--gutter);display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:clamp(18px,3vw,48px);position:sticky;top:0;z-index:30;background:var(--paper)}
.site-header::after{content:'';position:absolute;left:0;right:0;bottom:0;height:1px;background:var(--line)}
.brand{display:flex;gap:14px;align-items:center;white-space:nowrap}
.brand img{width:40px;height:40px;object-fit:contain;filter:brightness(0);opacity:.82}
.brand>span{font-family:var(--serif);font-size:23px;letter-spacing:.06em;line-height:1.1}
.brand small{display:block;font-family:var(--sans);font-size:9.5px;letter-spacing:.2em;text-transform:uppercase;margin-top:5px;color:var(--muted)}
.desktop-nav{display:flex;justify-content:center;gap:clamp(14px,2.1vw,38px);font-size:13px;letter-spacing:.02em}
.desktop-nav a{position:relative;padding:14px 0;color:var(--soft);transition:color .3s}
.desktop-nav a::after{content:'';position:absolute;left:0;right:0;bottom:9px;height:1px;background:var(--brass);transform:scaleX(0);transform-origin:left;transition:transform .5s var(--ease)}
.desktop-nav a:hover,.desktop-nav a[aria-current]{color:var(--ink)}
.desktop-nav a:hover::after,.desktop-nav a[aria-current]::after{transform:scaleX(1)}
.header-contact{display:inline-flex;align-items:center;gap:12px;min-height:44px;padding:0 4px;font-size:13px;font-weight:500;letter-spacing:.02em;position:relative}
.header-contact::before{content:'';width:22px;height:5px;border-radius:3px;background:linear-gradient(90deg,var(--brass-hi),var(--brass));transition:width .6s var(--ease)}
.header-contact:hover::before,.header-contact:focus-visible::before{width:40px}
.menu-toggle{display:none;width:44px;height:44px;position:relative}
.menu-toggle span{display:block;position:absolute;left:8px;right:8px;top:18px;height:1px;background:currentColor}.menu-toggle span+span{top:26px}
.header-progress{position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--brass);transform:scaleX(0);transform-origin:left;z-index:1}

/* ---------- action: a drawer pull ---------- */
.pull-action{display:inline-flex;align-items:center;gap:18px;min-height:56px;padding:6px 0;font-family:var(--serif);font-size:clamp(18px,1.55vw,23px);letter-spacing:-.02em;text-align:left;color:inherit}
.pull-bar{flex:none;width:46px;height:7px;border-radius:4px;background:linear-gradient(180deg,var(--brass-hi),var(--brass) 55%,#86693c);box-shadow:0 2px 7px rgba(60,38,12,.28),inset 0 1px 0 rgba(255,255,255,.42);transition:width .7s var(--ease),transform .5s var(--ease)}
.pull-label{padding-bottom:3px;background:linear-gradient(currentColor,currentColor) 0 100%/0 1px no-repeat;transition:background-size .7s var(--ease)}
.pull-action:hover .pull-bar,.pull-action:focus-visible .pull-bar{width:82px}
.pull-action:hover .pull-label,.pull-action:focus-visible .pull-label{background-size:100% 1px}
.pull-action:active .pull-bar{transform:translateX(7px)}

/* ---------- hero: a cabinet front ---------- */
.hero{padding:var(--edge) var(--edge) 0}
.hero-front{display:grid;grid-template-columns:minmax(0,1.14fr) minmax(0,1fr);grid-template-rows:minmax(0,1.85fr) minmax(0,1fr);gap:var(--fuga);height:clamp(620px,calc(100svh - var(--header) - var(--edge) - 52px),900px);padding:var(--fuga);background:var(--night)}
.panel{position:relative;overflow:hidden;background:var(--paper-2)}
.panel-title{grid-row:1/3;display:flex;flex-direction:column;padding:clamp(26px,3.5vw,66px);background:var(--paper)}
.panel-title .eyebrow{margin-bottom:auto}
.hero h1{font-size:clamp(46px,6vw,104px);line-height:1.02;margin-top:clamp(28px,5vh,64px)}
.hero-line{display:block}
.hero-intro{display:grid;grid-template-columns:1.15fr 1fr;gap:clamp(18px,2.4vw,40px);margin-top:clamp(26px,4.2vh,52px);padding-top:clamp(20px,3vh,32px);border-top:1px solid var(--line)}
.hero-intro>p:first-child{font-size:clamp(17px,1.5vw,23px);line-height:1.5;letter-spacing:-.015em;color:var(--ink)}
.hero-intro>p:nth-child(2){font-size:15px;line-height:1.7;color:var(--muted)}
.hero-actions{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:clamp(14px,2.6vh,30px)}
.scroll-link{display:inline-flex;align-items:center;gap:12px;font-size:13px;color:var(--soft);min-height:44px;transition:color .3s}
.scroll-link .icon{width:18px;height:18px;transition:transform .5s var(--ease)}
.scroll-link:hover{color:var(--ink)}.scroll-link:hover .icon{transform:translateY(4px)}
.panel-media{position:absolute;inset:0;transform-origin:50% 50%;transform:scale(1.1)}
.panel-media img{width:100%;height:100%;object-fit:cover}
.panel-photo{margin:0;background:#cdbfa9}
.panel-photo img{object-position:56% 55%}
.photo-label{position:absolute;left:0;bottom:0;padding:14px 22px 13px 0;background:var(--night);color:var(--paper);font-size:12px;letter-spacing:.04em;z-index:2;padding-left:clamp(18px,2vw,28px)}
.panel-swatches{grid-column:2;grid-row:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--fuga);position:relative}
.swatch-tab{position:absolute;right:0;top:0;transform:translateY(-100%);z-index:3;padding:13px 22px 11px 24px;background:var(--night);color:var(--paper);font-family:var(--serif);font-size:15px;line-height:1.3;letter-spacing:-.01em;pointer-events:none;border-top-left-radius:2px}
.panel-swatch{margin:0}
.demo-caption{font-size:10.5px;color:var(--muted);padding:16px var(--edge) 6px;letter-spacing:.02em}

/* ---------- materials: plates that slide over one another ---------- */
.materials{background:var(--night);color:var(--paper);position:relative}
.mat-stage{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);column-gap:clamp(28px,4.4vw,84px);align-items:center;padding:clamp(60px,7vw,120px) var(--gutter)}
.mat-copy{display:flex;flex-direction:column;justify-content:center;min-width:0}
.mat-copy .eyebrow{color:#cdbfae;margin-bottom:clamp(18px,2.6vh,30px)}
.materials h2{font-size:clamp(40px,4.5vw,80px);line-height:1.06}
.materials h2 em{color:var(--clay-soft)}
.mat-lead{font-size:15px;line-height:1.75;color:#c6b9a8;margin-top:clamp(18px,2.6vh,30px);max-width:420px}
.mat-index{margin-top:clamp(22px,4vh,44px);display:grid;gap:0;border-top:1px solid #4a4038}
.mat-index li{border-bottom:1px solid #4a4038}
.mat-pick{display:grid;grid-template-columns:52px 1fr auto;align-items:center;column-gap:18px;width:100%;min-height:68px;padding:10px 0;text-align:left;position:relative;color:#9d8f80;transition:color .5s}
.mat-pick::before{content:'';position:absolute;left:0;bottom:-1px;height:1px;width:100%;background:var(--brass-hi);transform:scaleX(0);transform-origin:left;transition:transform .8s var(--ease)}
.mat-chip{display:block;width:52px;height:52px;overflow:hidden;border-radius:1px;opacity:.55;transition:opacity .5s,transform .6s var(--ease)}
.mat-chip img{width:100%;height:100%;object-fit:cover}
.mat-name{font-family:var(--serif);font-size:clamp(20px,1.9vw,28px);letter-spacing:-.025em;line-height:1.2}
.mat-pick small{font-size:12px;letter-spacing:.04em;text-align:right}
.mat-pick.is-active{color:var(--paper)}
.mat-pick.is-active::before{transform:scaleX(1)}
.mat-pick.is-active .mat-chip{opacity:1;transform:scale(1.06)}
.mat-pick:hover{color:var(--paper)}
.mat-foot{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-top:clamp(22px,4vh,46px)}
.mat-foot p{font-family:var(--serif);font-size:clamp(17px,1.5vw,22px);line-height:1.4;letter-spacing:-.025em}
.mat-foot strong{font-weight:400;color:var(--clay-soft)}
.mat-foot span{font-size:10.5px;color:#9d8f80;max-width:190px;text-align:right;line-height:1.55}
.mat-plates{display:none;overflow:hidden}
.materials.motion-ready{height:420svh}
.materials.motion-ready .mat-stage{position:sticky;top:0;height:100svh;min-height:600px;max-height:1000px;padding-top:calc(var(--header) + 12px);padding-bottom:36px;overflow:hidden}
.materials.motion-ready .mat-plates{display:block;position:relative;height:100%;max-height:min(100%,780px);align-self:center}
.mat-plate{position:absolute;inset:0;margin:0;overflow:hidden;background:#0f0d0b}
.mat-plate img{position:absolute;left:0;top:0;width:100%;height:100%;object-fit:cover;transform-origin:50% 50%}
.mat-plate[data-plate="stone"] img{width:auto;height:auto;max-width:none}
.mat-marker{position:absolute;left:0;top:0;width:0;height:0;z-index:4;pointer-events:none}
.mat-marker i{position:absolute;left:-9px;top:-9px;width:18px;height:18px;border-radius:50%;border:1px solid var(--paper);box-shadow:0 0 0 5px rgba(243,236,224,.18)}
.mat-marker i::after{content:'';position:absolute;left:5px;top:5px;width:6px;height:6px;border-radius:50%;background:var(--paper)}
.mat-leader{position:absolute;left:0;top:0;height:1px;width:1px;background:var(--paper);transform-origin:0 0;z-index:3;pointer-events:none;opacity:.8}
.mat-sample{position:absolute;left:clamp(14px,1.6vw,26px);bottom:clamp(14px,1.6vw,26px);z-index:5;width:clamp(110px,11vw,180px);aspect-ratio:4/5;pointer-events:none}
.mat-sample-face{display:block;position:relative;width:100%;height:100%;overflow:hidden;border:6px solid var(--paper);background:var(--paper);box-shadow:0 22px 50px rgba(0,0,0,.5)}
.mat-sample-face img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.materials:not(.motion-ready) .mat-stage{display:block}
.materials:not(.motion-ready) .mat-index{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;border-top:0;margin-top:40px}
.materials:not(.motion-ready) .mat-index li{border-bottom:0}
.materials:not(.motion-ready) .mat-pick{grid-template-columns:1fr;row-gap:10px;color:var(--paper)}
.materials:not(.motion-ready) .mat-chip{width:100%;height:auto;aspect-ratio:1;opacity:1}
.materials:not(.motion-ready) .mat-pick small{text-align:left}

/* ---------- rooms: a floor plan that picks the photograph ---------- */
.section-space{padding:clamp(72px,8.4vw,140px) var(--gutter)}
.section-heading{display:grid;grid-template-columns:1.4fr 1fr;column-gap:10%;row-gap:24px;align-items:end;margin-bottom:clamp(36px,4.6vw,76px)}
.section-heading .eyebrow{grid-column:1/-1}
.section-heading h2,h2{font-size:clamp(40px,4.7vw,84px);line-height:1.07}
.section-heading .section-intro{justify-self:end;font-size:16px;color:var(--muted);padding-bottom:6px;line-height:1.7;max-width:360px}
.rooms{background:var(--paper)}
.room-layout{display:grid;grid-template-columns:minmax(0,5.6fr) minmax(0,6.4fr);grid-template-rows:auto 1fr;column-gap:clamp(28px,5vw,96px);row-gap:clamp(28px,3.4vw,52px)}
.room-plan{grid-column:1;grid-row:1;position:relative;aspect-ratio:600/440;background:var(--paper-2);border:1px solid var(--line)}
.plan-svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.plan-svg path,.plan-svg rect{fill:none;stroke:var(--ink);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.plan-fills rect{stroke:none;fill:var(--clay);opacity:0;transition:opacity .6s var(--ease)}
.plan-fills rect.is-active{opacity:.16}
.plan-lines path{stroke-width:2.6}
.plan-lines .is-dash{stroke-dasharray:6 6;stroke-width:1.4}
.plan-doors path,.plan-windows path{stroke-width:1.3;opacity:.7}
.plan-windows path{stroke:var(--brass);stroke-width:4;opacity:1}
.plan-furniture path{stroke-width:1.1;opacity:.5}
.plan-cone{fill:var(--clay)!important;stroke:var(--clay)!important;stroke-width:1!important;fill-opacity:.2;transition:transform .9s var(--ease)}
.room-tabs{position:absolute;inset:0}
.room-tab{position:absolute;left:var(--l);top:var(--t);width:var(--w);height:var(--h);padding:11px 12px;display:flex;align-items:flex-start;justify-content:flex-start;text-align:left;font-size:10.5px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;line-height:1.35;color:var(--muted);transition:color .4s;z-index:2}
.room-tab span{display:inline-flex;align-items:center;gap:8px}
.room-tab span::before{content:'';width:7px;height:7px;border-radius:50%;border:1px solid currentColor;flex:none;transition:background .4s,transform .5s var(--ease)}
.room-tab[aria-selected=true]{color:var(--clay)}
.room-tab[aria-selected=true] span::before{background:var(--clay);transform:scale(1.25)}
.room-tab:hover{color:var(--ink)}.room-tab[aria-selected=true]:hover{color:var(--clay)}
.room-tab:focus-visible{outline-offset:-4px}
.room-visual{grid-column:2;grid-row:1/3;position:relative;overflow:hidden;background:#c9bba5;align-self:start;aspect-ratio:1.16}
.room-preview{position:absolute;inset:0}
.room-preview img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;visibility:hidden}
.room-preview img.is-active{opacity:1;visibility:visible;z-index:2}
.room-picture-note{position:absolute;bottom:0;left:0;z-index:3;padding:11px 18px 10px;background:var(--night);color:var(--paper);font-size:11px;letter-spacing:.06em}
.room-info{grid-column:1;grid-row:2;padding-top:6px}
.room-kicker{display:block;font-size:11.5px;font-weight:600;letter-spacing:.17em;text-transform:uppercase;color:var(--clay);margin-bottom:26px}
.room-description{min-height:230px}
.room-description h3{font-family:var(--serif);font-size:clamp(34px,3.4vw,58px);line-height:1.08;letter-spacing:-.035em;margin-bottom:22px}
.room-description p{font-size:16px;color:var(--muted);max-width:440px;line-height:1.8}
.room-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px 36px;margin-top:20px}
.small-action{display:inline-flex;gap:16px;align-items:center;font-size:14px;font-weight:500;min-height:44px}
.small-action .icon{width:20px;height:20px;transition:transform .5s var(--ease)}
.small-action:hover .icon{transform:translateX(6px)}
.room-consult{min-height:44px;font-size:14px;font-weight:500;color:var(--clay);background:linear-gradient(currentColor,currentColor) 0 calc(100% - 9px)/100% 1px no-repeat;transition:color .3s}
.room-consult:hover{color:var(--ink)}

/* ---------- gallery: a catalogue laid out on a frame ---------- */
.portfolio{background:var(--sand)}
.portfolio-toolbar{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:clamp(30px,3.6vw,56px);padding-bottom:0;border-bottom:1px solid #c7b79f}
.filters{display:flex;gap:clamp(14px,2.2vw,34px);flex-wrap:wrap}
.filters button{position:relative;min-height:48px;padding:12px 0;font-size:14px;color:var(--muted);transition:color .3s}
.filters button::after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--clay);transform:scaleX(0);transform-origin:left;transition:transform .6s var(--ease)}
.filters button:hover{color:var(--ink)}
.filters button[aria-pressed=true]{color:var(--ink)}
.filters button[aria-pressed=true]::after{transform:scaleX(1)}
.gallery-count{font-size:12px;color:var(--muted);white-space:nowrap;padding-bottom:14px;letter-spacing:.04em}
.project-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:clamp(16px,2.4vw,40px);row-gap:clamp(34px,4.4vw,72px);align-items:start}
.project{min-width:0}
.project:nth-child(6n+1){grid-column:1/8}
.project:nth-child(6n+2){grid-column:9/13;margin-top:clamp(40px,9vw,150px)}
.project:nth-child(6n+3){grid-column:2/7}
.project:nth-child(6n+4){grid-column:7/13;margin-top:clamp(30px,6vw,100px)}
.project:nth-child(6n+5){grid-column:1/6}
.project:nth-child(6n+6){grid-column:7/12;margin-top:clamp(30px,5vw,80px)}
.project-image{display:block;width:100%;aspect-ratio:1.36;overflow:hidden;position:relative;background:#bba98f}
.project:nth-child(6n+2) .project-image{aspect-ratio:.86}
.project:nth-child(6n+3) .project-image{aspect-ratio:1.18}
.project:nth-child(6n+4) .project-image{aspect-ratio:1.5}
.project:nth-child(6n+5) .project-image{aspect-ratio:1.08}
.project:nth-child(6n+6) .project-image{aspect-ratio:1.28}
.project-image img{width:100%;height:100%;object-fit:cover;object-position:center}
.project-image::before{content:'';position:absolute;inset:12px;border:1px solid rgba(243,236,224,.85);z-index:2;pointer-events:none;opacity:0;transform:scale(1.03);transition:opacity .5s var(--ease),transform .7s var(--ease)}
.image-open{position:absolute;right:0;bottom:0;width:48px;height:48px;background:var(--night);color:var(--paper);display:grid;place-items:center;z-index:3;transition:transform .5s var(--ease)}
.image-open .icon{width:20px;height:20px}
.project-caption{display:flex;align-items:baseline;justify-content:space-between;gap:18px;padding-top:18px}
.project-caption h3{font-family:var(--serif);font-size:clamp(18px,1.75vw,27px);line-height:1.3;letter-spacing:-.03em;max-width:78%}
.project-caption>span{font-size:11px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);white-space:nowrap}
.project-grid.filtered{grid-template-columns:repeat(2,minmax(0,1fr))}
.project-grid.filtered .project{grid-column:auto;margin-top:0}
.project-grid.filtered .project-image{aspect-ratio:1.32}
.portfolio-bottom{display:flex;justify-content:space-between;align-items:center;gap:32px;margin-top:clamp(40px,5vw,80px);padding-top:26px;border-top:1px solid #c7b79f}
.portfolio-bottom p{font-size:12px;line-height:1.7;color:var(--muted)}
.load-more{display:inline-flex;align-items:center;gap:22px;white-space:nowrap;font-family:var(--serif);font-size:clamp(18px,1.6vw,24px);letter-spacing:-.02em;min-height:52px}
.load-more .icon{width:20px;transition:transform .5s var(--ease)}
.load-more:hover .icon{transform:translateY(5px)}

/* ---------- about ---------- */
.about{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);column-gap:clamp(36px,8vw,150px);align-items:start;background:var(--paper)}
.about-picture{position:sticky;top:calc(var(--header) + 28px);margin:0}
.about-media{position:relative;overflow:hidden;aspect-ratio:.84;background:#cdbda5}
.about-media img{position:absolute;left:0;top:0;width:auto;height:100%;max-width:none;object-fit:cover;object-position:left center}
.about-picture figcaption{padding-top:16px;font-size:12px;color:var(--muted);letter-spacing:.03em}
.about-copy{padding-top:clamp(0px,4vw,70px)}
.about-copy .eyebrow{margin-bottom:28px}
.about-copy h2{font-size:clamp(40px,4.4vw,78px);margin-bottom:clamp(30px,4vw,60px)}
.about-lead{font-family:var(--serif);font-size:clamp(23px,2.35vw,38px);line-height:1.38;letter-spacing:-.025em;color:var(--ink)}
.about-second{font-size:16px;color:var(--muted);line-height:1.85;margin-top:clamp(26px,3vw,44px);max-width:470px}
.about-signature{display:block;font-family:var(--serif);font-size:30px;letter-spacing:.06em;margin-top:clamp(34px,4vw,60px)}
.about-signature>span{display:block;margin-top:8px;font-family:var(--sans);font-size:10.5px;color:var(--muted);letter-spacing:.14em;text-transform:uppercase}

/* ---------- process: a dimension line with three marks ---------- */
.process{background:var(--paper-2)}
.process-track{--pgap:5%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:var(--pgap);position:relative;padding-top:clamp(50px,5vw,80px)}
.process-rail{position:absolute;top:0;left:0;right:0;height:18px}
.process-rail::before{content:'';position:absolute;left:0;right:0;top:8px;height:1px;background:#bcab92}
.process-rail span{position:absolute;left:0;right:0;top:8px;height:2px;margin-top:-.5px;background:var(--clay);transform:scaleX(0);transform-origin:left}
.process-rail i{position:absolute;top:0;width:1px;height:18px;background:#8d7b64;left:calc(var(--k)*((100% - 2*var(--pgap))/3 + var(--pgap)))}
.process-rail i:nth-of-type(1){--k:0}.process-rail i:nth-of-type(2){--k:1}.process-rail i:nth-of-type(3){--k:2}
.step-number{display:block;font-family:var(--serif);font-size:clamp(84px,10.5vw,176px);line-height:.88;letter-spacing:-.04em;color:transparent;-webkit-text-stroke:1px #8d7b64;margin-bottom:clamp(12px,2vw,28px);transition:color .9s var(--ease),-webkit-text-stroke-color .9s}
.process-step.is-on .step-number{color:var(--clay);-webkit-text-stroke-color:var(--clay)}
.process-step h3{font-family:var(--serif);font-size:clamp(24px,2.6vw,40px);line-height:1.2;letter-spacing:-.035em;margin-bottom:16px}
.process-step p{font-size:15px;line-height:1.85;color:var(--muted);max-width:350px}

/* ---------- contact: wardrobe doors ---------- */
.contact{background:var(--night);color:var(--paper);position:relative}
.doors-stage{position:relative;overflow:hidden;display:grid;align-items:center;padding:clamp(80px,9vw,150px) var(--gutter);min-height:min(100svh,880px);isolation:isolate}
.doors-inside{position:absolute;inset:0;z-index:0}
.doors-inside img{position:absolute;left:0;top:0;width:100%;height:100%;object-fit:cover;transform-origin:50% 50%}
.doors-inside::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(24,19,16,.86) 0%,rgba(24,19,16,.6) 42%,rgba(24,19,16,.08) 100%)}
.door{display:none}
.contact-text{position:relative;z-index:4;max-width:min(820px,100%)}
.contact .eyebrow{color:#d6c7b4;margin-bottom:26px}
.contact h2{font-size:clamp(54px,7vw,128px);line-height:1.02;letter-spacing:-.04em}
.contact h2 em{color:#e0b394}
.contact-text>p:not(.eyebrow){max-width:460px;font-size:16.5px;line-height:1.8;color:#d6c9ba;margin-top:clamp(20px,3vw,36px)}
.contact-action{margin-top:clamp(18px,2.4vw,30px);color:var(--paper)}
.contact-demo-note{display:block;font-size:11px;color:#bdad9b;margin-top:18px;letter-spacing:.02em}
.contact.motion-ready{height:300svh}
.contact.motion-ready .doors-stage{position:sticky;top:0;height:100svh;min-height:560px;padding-top:calc(var(--header) + 20px)}
.contact.motion-ready .door{display:block;position:absolute;top:0;bottom:0;width:50%;z-index:3;overflow:hidden;background:#3a2c26;will-change:transform}
.door-a{left:0;box-shadow:12px 0 40px rgba(0,0,0,.45)}.door-b{right:0;box-shadow:-12px 0 40px rgba(0,0,0,.45)}
.door img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.door::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(20,14,10,.34),rgba(20,14,10,.5))}
.door-handle{position:absolute;top:34%;width:7px;height:22%;min-height:90px;border-radius:4px;z-index:2;background:linear-gradient(90deg,var(--brass-hi),var(--brass) 60%,#86693c);box-shadow:0 4px 14px rgba(0,0,0,.4)}
.door-a .door-handle{right:clamp(14px,1.8vw,30px)}.door-b .door-handle{left:clamp(14px,1.8vw,30px)}

/* ---------- footer ---------- */
footer{padding:clamp(28px,3vw,44px) var(--gutter);display:flex;justify-content:space-between;align-items:center;gap:26px;background:var(--night);color:#c4b7a7;border-top:1px solid #3a322c;font-size:12px}
.footer-brand{font-family:var(--serif);font-size:26px;letter-spacing:.06em;color:var(--paper)}
footer p{font-size:11px;line-height:1.7}
footer>a:not(.footer-brand){padding:10px 0}
.portfolio-return{display:inline-flex;gap:14px;align-items:center}
.portfolio-return .icon{width:16px;height:16px}
footer a:hover{color:var(--paper)}

/* ---------- dialogs ---------- */
html.dialog-open{overflow:hidden}
dialog{border:0;background:var(--paper);color:var(--ink);padding:32px;margin:auto;max-height:calc(100dvh - 40px);overscroll-behavior:contain;box-shadow:0 40px 100px rgba(0,0,0,.45)}
dialog::backdrop{background:rgba(24,19,16,.78)}
.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:30px;font-size:12px}
.close-button{display:grid;place-items:center;width:46px;height:46px;border:1px solid var(--line);border-radius:50%;flex-shrink:0;transition:background .3s,color .3s,transform .5s var(--ease)}
.close-button:hover{background:var(--ink);color:var(--paper);transform:rotate(90deg)}
.close-button .icon{width:22px;height:22px}
.mobile-menu{width:min(560px,calc(100vw - 32px));padding:24px}
.mobile-menu .dialog-head>span{font-family:var(--serif);font-size:24px;letter-spacing:.06em}
.mobile-menu nav{display:grid;margin-bottom:26px}
.mobile-menu nav a{font-family:var(--serif);font-size:30px;letter-spacing:-.03em;padding:11px 0;border-bottom:1px solid var(--line)}
.lightbox{width:min(1240px,calc(100vw - 40px));padding:20px 24px;background:var(--night);color:var(--paper)}
.lightbox .dialog-head{margin-bottom:14px;color:#cdbfae}
.lightbox .close-button{border-color:#4a4038}.lightbox .close-button:hover{background:var(--paper);color:var(--ink)}
.lightbox-image{height:min(68dvh,780px);position:relative}
.lightbox-image>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.image-status{position:absolute;bottom:12px;left:12px;right:12px;font-size:12px;background:var(--paper);color:var(--ink);padding:8px 12px;text-align:center}
.image-status:empty{display:none}
.lightbox-bottom{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-top:22px}
.lightbox-bottom .eyebrow{color:#cdbfae}
.lightbox-bottom h2{font-size:clamp(22px,2.2vw,32px);line-height:1.3;margin-top:7px;letter-spacing:-.025em}
.lightbox-controls{display:flex;align-items:center;gap:22px;flex-shrink:0;font-size:12px;color:#cdbfae}
.lightbox-controls button{width:46px;height:46px;border:1px solid #4a4038;border-radius:50%;display:grid;place-items:center;color:var(--paper);transition:background .3s,color .3s}
.lightbox-controls button:hover{background:var(--paper);color:var(--ink)}
.contact-dialog{width:min(650px,calc(100vw - 32px));padding:34px}
.contact-dialog h2{font-size:clamp(36px,4.2vw,52px);margin-bottom:24px;line-height:1.1}
.contact-dialog>p{font-size:15px;color:var(--muted)}
.brief-card{margin-top:28px;padding:24px;background:var(--paper-2);border-left:3px solid var(--brass);font-size:14px}
.brief-card>span{font-family:var(--serif);font-size:19px}
.brief-card ul{margin-top:10px}
.brief-card li{margin-top:8px;color:var(--muted);padding-left:18px;position:relative}
.brief-card li::before{content:'';position:absolute;left:0;top:.7em;width:8px;height:1px;background:var(--brass)}
.brief-copy{display:flex;justify-content:space-between;gap:16px;align-items:center;width:100%;min-height:56px;border-bottom:1px solid #b59a7f;font-size:14px;margin-top:16px;text-align:left}
.copy-status{min-height:24px;font-size:12px!important;margin-top:12px}
.panel-note{font-size:11.5px!important;line-height:1.7;margin-top:20px}
.panel-note a{text-decoration:underline;text-underline-offset:3px}
.mobile-menu .pull-action{color:var(--ink)}
.noscript-note{padding:24px var(--gutter);font-size:14px}

/* ---------- breakpoints ---------- */
@media(min-width:1800px){.mat-stage,.section-space{padding-left:max(var(--gutter),calc((100vw - 1680px)/2));padding-right:max(var(--gutter),calc((100vw - 1680px)/2))}}
@media(max-width:1100px){
  :root{--header:70px}
  .site-header{grid-template-columns:auto 1fr auto auto}
  .desktop-nav a[href="#o-firmie"]{display:none}
  .desktop-nav{gap:16px;font-size:12px}
  .hero-intro{grid-template-columns:1fr}
  .hero-intro>p:nth-child(2){max-width:400px}
  .room-layout{column-gap:32px}
  .mat-pick small{display:none}
  .mat-pick{grid-template-columns:52px 1fr}
}
@media(max-width:900px){
  .header-contact{display:none}
  .site-header{grid-template-columns:auto 1fr auto}
  .desktop-nav{display:none}
  .menu-toggle{display:block;justify-self:end}
  .section-heading{display:block}
  .section-heading .section-intro{margin-top:22px;max-width:none}
  .room-layout{display:flex;flex-direction:column;gap:30px}
  .room-plan{order:1}.room-visual{order:2;width:100%;aspect-ratio:1.2}.room-info{order:3}
  .about{display:flex;flex-direction:column;align-items:stretch;gap:40px}
  .about-picture{position:relative;top:auto;width:100%}
  .about-media{aspect-ratio:1.1}
  .about-media img{width:100%;height:100%;object-position:center}
  /* stacked material scene: copy on top, plates below (phones and portrait tablets) */
  .mat-stage{display:block;padding:56px var(--gutter)}
  .materials.motion-ready{height:300svh}
  .materials.motion-ready .mat-stage{display:flex;flex-direction:column;gap:14px;padding:calc(var(--header) + 14px) var(--gutter) 18px;min-height:0;max-height:none}
  .materials.motion-ready .mat-copy{flex:none}
  .materials h2{font-size:clamp(32px,9.2vw,44px)}
  .mat-copy .eyebrow{margin-bottom:14px;font-size:10px}
  .mat-lead{font-size:13px;line-height:1.55;margin-top:12px}
  .mat-lead br{display:none}
  .materials.motion-ready .mat-index{margin-top:14px;grid-template-columns:repeat(3,1fr)}
  .materials.motion-ready .mat-index li{border-bottom:0;border-top:0}
  .materials.motion-ready .mat-pick{grid-template-columns:1fr;grid-template-rows:auto auto;row-gap:6px;min-height:0;padding:0 0 8px;text-align:left;align-items:start}
  .materials.motion-ready .mat-chip{width:100%;height:34px}
  .materials.motion-ready .mat-name{font-size:14px;line-height:1.2}
  .materials.motion-ready .mat-foot{display:none}
  .materials.motion-ready .mat-plates{flex:1;min-height:0;max-height:none;width:100%}
  .materials.motion-ready .mat-sample{width:84px;left:auto;right:10px;bottom:10px}
  .mat-sample-face{border-width:4px}
  .mat-foot{flex-direction:column;align-items:flex-start;gap:10px}
  .mat-foot span{text-align:left;max-width:none}
  .materials:not(.motion-ready) .mat-index{grid-template-columns:repeat(3,1fr);gap:10px}
  .materials:not(.motion-ready) .mat-name{font-size:14px}
}
@media(max-width:700px){
  :root{--header:64px;--gutter:20px;--edge:8px;--fuga:4px}
  body{font-size:16px}
  .brand img{width:36px;height:36px}.brand>span{font-size:21px}.brand small{font-size:8.5px}
  .hero-front{display:flex;flex-direction:column;height:auto}
  .panel-title{padding:28px 22px 26px}
  .panel-title .eyebrow{margin-bottom:34px;font-size:10.5px;letter-spacing:.13em}
  .hero h1{font-size:clamp(40px,11.2vw,64px);margin-top:0}
  .hero-intro{margin-top:30px}
  .hero-actions{flex-direction:column;align-items:flex-start;gap:6px}
  .panel-photo{aspect-ratio:1.04;flex:none}
  .panel-swatches{aspect-ratio:3/1.15;flex:none}
  .swatch-tab{font-size:13px;padding:11px 16px 9px 18px}
  .photo-label{font-size:11px;padding:11px 16px 10px 16px}

  .section-space{padding:68px var(--gutter)}
  h2,.section-heading h2{font-size:clamp(34px,10vw,50px)}
  .section-heading{margin-bottom:30px}
  .section-heading .eyebrow{margin-bottom:20px;font-size:10px}
  .section-heading .section-intro{font-size:14px;line-height:1.65}
  .room-plan{margin-left:calc(-1*var(--gutter));margin-right:calc(-1*var(--gutter));border-left:0;border-right:0}
  .room-visual{margin-left:calc(-1*var(--gutter));margin-right:calc(-1*var(--gutter));width:auto}
  .room-tab{font-size:9.5px;padding:8px 8px;letter-spacing:.09em}
  .room-tab span::before{width:6px;height:6px}
  .room-description{min-height:210px}
  .room-description h3{font-size:34px}
  .room-description p{font-size:14.5px;line-height:1.75}
  .portfolio-toolbar{display:block;margin-bottom:26px}
  .filters{gap:2px 16px}
  .filters button{font-size:13px;min-height:44px}
  .gallery-count{display:block;padding:10px 0 12px;font-size:11px}
  .project-grid,.project-grid.filtered{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 14px}
  .project:nth-child(n),.project-grid.filtered .project{grid-column:span 1;margin-top:0}
  .project:nth-child(3n+1){grid-column:1/-1}
  .project:nth-child(n) .project-image{aspect-ratio:1}
  .project:nth-child(3n+1) .project-image{aspect-ratio:1.28}
  .project-grid.filtered .project{grid-column:1/-1}
  .project-grid.filtered .project-image{aspect-ratio:1.3}
  .project-caption{display:block;padding-top:13px}
  .project-caption h3{font-size:16px;line-height:1.35;max-width:100%}
  .project-caption>span{display:block;margin-top:6px;font-size:9.5px;white-space:normal;letter-spacing:.1em}
  .project:nth-child(3n+1) .project-caption{display:flex}
  .project:nth-child(3n+1) .project-caption h3{font-size:21px;max-width:75%}
  .image-open{width:38px;height:38px}.image-open .icon{width:17px;height:17px}
  .portfolio-bottom{flex-direction:column;align-items:flex-start;gap:20px;margin-top:32px}
  .about-copy h2{font-size:clamp(34px,10vw,48px)}
  .about-lead{font-size:22px;line-height:1.42}
  .about-second{font-size:14.5px}
  .process-track{display:block;padding-top:0;padding-left:30px}
  .process-rail{top:0;bottom:0;left:0;right:auto;width:18px;height:auto}
  .process-rail::before{left:8px;right:auto;top:0;bottom:0;width:1px;height:auto}
  .process-rail span{left:8px;right:auto;top:0;bottom:0;width:2px;height:auto;margin:0 0 0 -.5px;transform-origin:top}
  .process-rail i{display:none}
  .process-step{padding:6px 0 38px}
  .step-number{font-size:84px;margin-bottom:8px}
  .process-step h3{font-size:26px}
  .process-step p{font-size:14px;line-height:1.8}
  .contact.motion-ready{height:260svh}
  .doors-stage{padding:92px var(--gutter) 64px;align-items:end}
  .contact.motion-ready .doors-stage{align-items:end;padding-bottom:56px}
  .contact h2{font-size:clamp(56px,16.5vw,92px)}
  .contact .eyebrow{font-size:10px}
  .contact-text>p:not(.eyebrow){font-size:14.5px;margin-top:20px}
  .doors-inside::after{background:linear-gradient(180deg,rgba(24,19,16,.45),rgba(24,19,16,.86))}
  .door-handle{min-height:70px}
  footer{display:grid;grid-template-columns:1fr 1fr;gap:18px;font-size:11px}
  footer p{grid-row:2;grid-column:1/-1;font-size:10px}
  .portfolio-return{justify-self:end;gap:8px}
  footer>a[href$=".json"],footer>.portfolio-return{grid-row:3}
  dialog{padding:22px;max-height:calc(100dvh - 26px)}
  .dialog-head{margin-bottom:22px;gap:14px;font-size:11px}
  .close-button{width:44px;height:44px}
  .mobile-menu nav a{font-size:27px;padding:9px 0}
  .lightbox{padding:14px;width:calc(100vw - 20px)}
  .lightbox-image{height:54dvh}
  .lightbox-bottom{display:block;margin-top:18px}
  .lightbox-bottom h2{font-size:21px}
  .lightbox-controls{justify-content:space-between;margin-top:20px}
  .contact-dialog{padding:22px;width:calc(100vw - 28px)}
  .contact-dialog .dialog-head .eyebrow{font-size:9.5px;max-width:200px}
  .contact-dialog h2{font-size:36px}
  .contact-dialog>p{font-size:13.5px}
  .brief-card{font-size:12.5px;padding:18px}
  .brief-card>span{font-size:17px}
  .brief-copy{font-size:13px}
}
@media(max-width:360px){:root{--gutter:18px}.hero h1{font-size:41px}.room-tab{font-size:8px;letter-spacing:.05em;padding:6px 5px}.room-tab span::before{display:none}.project-caption h3{font-size:14.5px}.contact h2{font-size:52px}}
@media(max-height:720px) and (min-width:701px){
  .materials.motion-ready .mat-stage{min-height:0}
  .mat-lead{display:none}
  .mat-pick{min-height:56px}
}
