/* Full-width textile archive. Both renderers use this same flat resting rail. */
#textile-archive{
 --paper:var(--su-paper);--ink:var(--su-ink);--gutter:clamp(24px,3vw,60px);
 margin:0;padding:clamp(15px,2.1vw,34px) 0 clamp(30px,4.5vw,78px);
 color:var(--ink);background:var(--paper);isolation:isolate;scroll-margin-top:88px;
}
.archive-heading{padding:0 var(--gutter);margin:0 0 clamp(6px,1.2vw,20px)}
#archive-title{margin:0;font:400 clamp(43px,4.68vw,87px)/1.04 Didot,'Bodoni 72','Times New Roman',serif;letter-spacing:-.049em;text-wrap:balance}
.archive-stage{position:relative;width:100%;height:clamp(350px,min(69svh,49vw),820px);overflow:hidden;touch-action:pan-y pinch-zoom;user-select:none;-webkit-user-select:none;outline-offset:-3px;cursor:pointer}
.archive-stage.is-dragging{cursor:grabbing}
.archive-flat{position:absolute;inset:4.3% 0;display:flex;pointer-events:none;width:100%;margin:0;padding:0;background:#211d17}
.archive-flat img{flex:1 0 0%;width:0;min-width:0;max-width:none;height:100%;display:block;object-fit:cover;pointer-events:none;-webkit-user-drag:none}
.archive-flat img:first-child{object-position:45% 50%}.archive-flat img[data-title="Terrace sheers"]{object-position:46% 50%}
.archive-flat img{mask-image:linear-gradient(90deg,#000d,#000 20px,#000 calc(100% - 20px),#000e)}
.archive-flat img:first-child{mask-image:linear-gradient(90deg,#000,#000 calc(100% - 20px),#000e)}
.archive-flat img:last-child{mask-image:linear-gradient(90deg,#000d,#000 20px,#000)}
@media(min-width:800px){.is-flat-selected .archive-flat img.is-selected{flex-grow:3.5}}
.archive-render{position:absolute;inset:0;pointer-events:none}
.archive-flat-caption{position:absolute;bottom:10%;padding:0 clamp(20px,2.5vw,42px);box-sizing:border-box;text-align:left;color:#f6f5f1;pointer-events:none;opacity:0}
.archive-flat-caption>span{display:block;font:400 clamp(26px,3vw,46px)/1.02 Didot,'Bodoni 72',Georgia,serif;letter-spacing:-.025em}
.archive-flat-caption>span>span{display:block}
.archive-flat-caption>small{display:block;margin-top:15px;font:400 clamp(9px,.85vw,12px)/1.4 'The Future',Arial,sans-serif;letter-spacing:.31em;text-transform:uppercase}
.archive-flat-caption::before{content:'';position:absolute;z-index:-1;inset:-60px -15px -45px 0;background:linear-gradient(0deg,#1516116e,transparent);mask-image:linear-gradient(90deg,#000,#000c 50%,transparent);pointer-events:none}
.is-rendered .archive-flat-caption{display:none}
.is-rendered .archive-flat{opacity:0}
.archive-stage:focus-visible{outline:1px solid #615d4d;outline-offset:2px}
.archive-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(100%);white-space:nowrap;margin:0}
body:has(.archive-stage:hover) .delino-pointer.is-visible{display:grid;place-items:center;width:72px;height:72px;border-radius:50%;background:#e4d9c8;border:0;color:var(--su-ink,#26251e);font:400 14px/1 Chap,serif;white-space:nowrap;transition:width .18s,height .18s,opacity .18s}
body:has(.archive-stage:hover) .delino-pointer::after{content:none}
.archive-project-links{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(100%)}
.archive-project-links:focus-within{position:relative;display:flex;flex-wrap:wrap;gap:18px;width:auto;height:auto;overflow:visible;clip-path:none;padding:20px var(--gutter);font:400 14px/1.5 Chap,serif}
@media(max-width:799.98px){.archive-flat img{width:33.333333%;flex:0 0 33.333333%}.archive-stage{height:clamp(335px,55svh,550px)}}
@media(max-width:599.98px){#textile-archive{--gutter:18px;scroll-margin-top:72px;padding-top:18px}.archive-flat img{width:50%;flex-basis:50%}.archive-stage{height:clamp(310px,54svh,535px)}#archive-title{max-width:15em;font-size:clamp(38px,8.9vw,54px)}}
/* The site already offsets anchor jumps for its sticky header. */
#textile-archive{scroll-margin-top:0}
html:has(#textile-archive:target){scroll-padding-top:80px}
@media(max-width:599.98px){html:has(#textile-archive:target){scroll-padding-top:66px}}

/* The wall image is a fixed backdrop. Align its rail lip (26% down the
   image) with the stage origin, independently of the viewport aspect ratio. */
#textile-archive[data-curtain-track]{
 --archive-height:clamp(360px,min(72svh,51vw),850px);
 --archive-heading-height:clamp(92px,9vw,150px);
 --archive-clip-size:18px;
 position:relative;
 padding:0;
}
#textile-archive[data-curtain-track]::before{
 content:'';
 position:absolute;
 inset:0;
 z-index:-1;
 pointer-events:none;
 background:#eee3d4 url('/assets/selune-archive-wall.webp') no-repeat;
 background-size:100% calc(var(--archive-height) / .74);
 background-position:center calc(var(--archive-masthead, 0px) + var(--archive-heading-height) - var(--archive-height) * .35135);
}
[data-curtain-track] .archive-heading{
 display:grid;
 place-items:center;
 height:var(--archive-heading-height);
 margin:0;
 text-align:center;
}
[data-curtain-track] .archive-stage{height:var(--archive-height)}
[data-curtain-track] .archive-flat{
 top:calc(var(--archive-clip-top, -3px) + var(--archive-clip-size) * .79);
 box-shadow:0 8px 15px -5px rgb(55 37 24 / .38);
}
[data-curtain-track] .archive-render > canvas:first-child{
 filter:drop-shadow(0 6px 7px rgb(55 37 24 / .33));
}
@media(min-width:800px){
 [data-curtain-track] .archive-flat{inset-inline:1.35%;width:auto}
}
.archive-clips{position:absolute;inset:0;pointer-events:none;z-index:2}
.is-arrival-pending .archive-flat,.is-arrival-pending .archive-clips{visibility:hidden}
.archive-clips span{
 position:absolute;
 top:var(--archive-clip-top, -3px);
 left:0;
 width:var(--archive-clip-size);
 height:var(--archive-clip-size);
 translate:-50% 0;
 background:url('/assets/selune-archive-clip.webp') center / contain no-repeat;
}
@media(max-width:799.98px){
 #textile-archive[data-curtain-track]{--archive-height:clamp(335px,56svh,550px);--archive-clip-size:16px}
}
@media(max-width:599.98px){
 #textile-archive[data-curtain-track]{--archive-height:clamp(310px,55svh,535px);--archive-clip-size:15px}
}

:is([data-archive-home], [data-field-atlas]){
 --archive-header-height:clamp(64px,7vw,88px);
 --archive-header-logo-width:clamp(110px,14vw,180px);
}
:is([data-archive-home], [data-field-atlas]) .live-header{
 height:var(--archive-header-height);
 padding-block:0;
 color:var(--su-ink);
 pointer-events:none;
}
:is([data-archive-home], [data-field-atlas]) .live-compact-brand{
 position:absolute;
 left:50%;
 top:50%;
 width:var(--archive-header-logo-width);
 translate:-50% -50%;
 pointer-events:auto;
}
:is([data-archive-home], [data-field-atlas]) .live-header .sm-menu-trigger,
:is([data-archive-home], [data-field-atlas]) .live-header .live-menu{
 position:absolute;
 right:var(--sm-control-right, 3.3vw);
 top:50%;
 min-height:44px;
 padding:6px 15px;
 translate:0 -50%;
 pointer-events:auto;
}
:is([data-archive-home], [data-field-atlas]) .live-header .live-menu{display:block}
:is([data-archive-home], [data-field-atlas]) .live-header .live-nav{display:none}

[data-archive-home] .live-header :is(.sm-menu-trigger:not(.sm-woven-control), .live-menu)::after {
 content: "";
 display: inline-block;
 flex: none;
 width: 18px;
 height: 11px;
 margin-inline-start: 9px;
 vertical-align: middle;
 background:
  linear-gradient(currentColor, currentColor) 100% 1px / 18px 1px no-repeat,
  linear-gradient(currentColor, currentColor) 100% 5px / 14px 1px no-repeat,
  linear-gradient(currentColor, currentColor) 100% 9px / 10px 1px no-repeat;
}

#textile-archive[data-curtain-track][data-archive-hero]{
 --archive-heading-drop:1.55svh;
 --archive-bronze-track-depth:1.24svh;
 --archive-glider-top:calc(var(--archive-heading-drop) * .60);
 --archive-clip-top:calc(var(--archive-heading-drop) - var(--archive-clip-size) * .79);
 /* Coordinates are relative to the room plate, including its continuous floor. */
 --archive-opening:13.2% 6.9% 8.5%;
 --archive-room:url('/assets/selune-window-recess.webp');
 --archive-light-patch:url('/assets/selune-hero-desktop-light-patch.webp');
 height:100svh;
}
#textile-archive[data-curtain-track][data-archive-hero]::before{
 background:
  var(--archive-light-patch) center / 100% 100% no-repeat,
  var(--paper) var(--archive-room) center / 100% 100% no-repeat;
}
[data-archive-hero] .archive-stage{
 position:absolute;
 inset:var(--archive-opening);
 width:auto;
 height:auto;
}
/* Cover the rail in the room plate with a brushed bronze face and a recessed slot. */
[data-archive-hero] .archive-stage::before{
 content:'';
 position:absolute;
 inset:0 0 auto;
 height:var(--archive-bronze-track-depth);
 pointer-events:none;
 background:linear-gradient(to bottom,
  #71573b 0%,#977b57 12%,#7d6243 47%,#60472e 49%,
  #493525 61%,#6d553e 65%,#8d765a 100%);
 box-shadow:0 1px 1px rgb(49 33 22 / .22);
}
/* The existing cloth anchors move these runners along the fixed track. */
[data-archive-hero] .archive-clips span{
 top:var(--archive-glider-top);
 width:clamp(2px,.28vw,4px);
 height:calc(var(--archive-heading-drop) - var(--archive-glider-top) + 1px);
 background:
  linear-gradient(90deg,#503925,#8c6e49 38%,#5b422b) center top / 100% 1.3px no-repeat,
  linear-gradient(90deg,#59422b,#9a7b53 42%,#5b412a) center / max(1px,48%) 100% no-repeat;
}
[data-archive-hero] .archive-render > canvas:first-child{
 filter:drop-shadow(0 9px 8px rgb(49 33 22 / .53));
}
[data-archive-hero] .archive-flat{
 inset-inline:0;
 width:auto;
 background:transparent;
 box-shadow:0 10px 15px -6px rgb(49 33 22 / .53);
}
[data-archive-hero] .archive-flat img{
 flex:1 0 0%;
 width:0;
}
[data-archive-hero].is-flat-selected .archive-flat img.is-selected{flex-grow:3.5}
@media(aspect-ratio <= 1/1){
 #textile-archive[data-curtain-track][data-archive-hero]{
  --archive-heading-drop:.82svh;
  --archive-bronze-track-depth:1.04svh;
  --archive-opening:14.65% 11.8% 9%;
  --archive-room:url('/assets/selune-window-recess-portrait.webp');
  --archive-light-patch:url('/assets/selune-hero-mobile-light-patch.webp');
 }
}
/* The furnishings sit in front of the moving cloth, outside its hit area. */
.archive-room-foreground{
 position:absolute;
 inset:0;
 z-index:3;
 overflow:hidden;
 pointer-events:none;
}
.archive-room-foreground img{
 position:absolute;
 display:block;
 height:auto;
 max-width:none;
 user-select:none;
}
.archive-foreground-table{
 width:min(30vw,56svh);
 left:max(-10vw,-18svh);
 bottom:-7svh;
}
.archive-foreground-seat{
 width:min(26vw,46svh);
 right:max(-10vw,-18svh);
 bottom:-15svh;
}
@media(aspect-ratio <= 1/1){
 .archive-foreground-table{
  width:min(48vw,32svh);
  left:-19vw;
  bottom:-3svh;
 }
 .archive-foreground-seat{
  width:min(43vw,27svh);
  right:-18vw;
  bottom:-4svh;
 }
}
[data-archive-hero] .archive-flat-caption{isolation:isolate}
[data-archive-hero] .archive-flat-caption::before{
 right:0;
 background:linear-gradient(0deg,rgb(44 29 18 / .63),rgb(44 29 18 / .38) 50%,transparent);
 mask-image:linear-gradient(90deg,#000,#000d 45%,#0008);
}
html:has([data-archive-hero]#textile-archive:target){scroll-padding-top:0}
