/* Scene controls stay in screen space. The original IDs keep their listeners.
   Only the scene uses glass; discovery keeps its light, readable AR surface. */
:root{
  --scene-edge:44px;
  --scene-action-width:250px;
  --scene-config-bottom:120px;
  --scene-config-height:82px;
  --scene-ar-height:60px;
  --scene-glass:rgba(18,25,28,.64);
  --scene-glass-border:rgba(255,255,255,.32);
}
.site-header nav{gap:24px}
.scene-sections{
  position:absolute;z-index:5;right:var(--scene-edge);top:clamp(148px,24svh,280px);
  display:grid;gap:8px;width:184px;
}
.scene-section-link{
  display:flex;align-items:center;justify-content:space-between;gap:18px;
  min-width:0;min-height:44px;padding:11px 15px;border:1px solid var(--scene-glass-border);
  border-radius:14px;background:var(--scene-glass);color:#fbfcfc;
  text-decoration:none;text-align:left;font-size:12px;font-weight:400;line-height:1.4;
  box-shadow:inset 0 1px 0 #ffffff0d,0 4px 18px #00000010;
  transition:background .18s,border-color .18s;
}
.scene-section-link>span{font-size:17px;line-height:1;opacity:.78}
.button-caret{
  display:inline-flex;align-items:center;justify-content:center;
  width:14px;height:14px;flex:none;vertical-align:middle;pointer-events:none;
}
.button-caret::before{
  content:"";display:block;width:0;height:0;
  border-top:4px solid transparent;border-bottom:4px solid transparent;
  border-left:6px solid currentColor;opacity:.8;
}
#ar-access .button-caret{width:24px}
.scene-section-link:hover{background:var(--scene-glass);border-color:var(--scene-glass-border)}
.scene-section-link:focus-visible{outline:2px solid #fff;outline-offset:4px;box-shadow:0 0 0 7px #10191bcc}

/* The two actions share one edge and width, with a quieter AR treatment. */
body:not(.search-open) #configure,body:not(.search-open) #ar-access{
  right:var(--scene-edge);width:var(--scene-action-width);max-width:none;
  border:1px solid var(--scene-glass-border);border-radius:16px;
  color:#fbfcfc;background:var(--scene-glass);
  box-shadow:inset 0 1px 0 #ffffff12,0 5px 22px #00000014;
  text-shadow:0 1px 8px #00000012;
  transition:background .18s,border-color .18s;
}
body:not(.search-open) #configure{
  bottom:var(--scene-config-bottom);height:var(--scene-config-height);min-height:var(--scene-config-height);padding:14px 17px 14px 18px;gap:16px;
  justify-content:space-between;background:var(--scene-glass);font-size:14px;line-height:1.2;
}
body:not(.search-open) #configure small{font-size:10px;line-height:1.45;margin-top:5px;color:#ffffffe0}
body:not(.search-open) #configure .circle-arrow{width:24px;height:24px;font-size:23px;flex:none}
/* Reserve both subtitle lines, then derive AR from the actual configured height. */
body:not(.search-open) #ar-access{bottom:calc(var(--scene-config-bottom) + var(--scene-config-height) + 12px);height:var(--scene-ar-height);min-height:var(--scene-ar-height);padding:12px 17px 12px 18px;gap:4px}
body:not(.search-open) #ar-access .ar-access-label{font-size:12px}
body:not(.search-open) #ar-access small{font-size:10px;color:#ffffffe0}
body:not(.search-open) #configure:hover,body:not(.search-open) #ar-access:hover{
  transform:none;background:var(--scene-glass);border-color:var(--scene-glass-border);
}
body:not(.search-open) #configure:focus-visible,body:not(.search-open) #ar-access:focus-visible{
  outline:2px solid #fff;outline-offset:4px;box-shadow:0 0 0 7px #10191bcc;
}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  :root{--scene-glass:linear-gradient(135deg,rgba(255,255,255,.17),rgba(255,255,255,.055)),rgba(20,26,28,.18)}
  .audience-choice,.scene-section-link,body:not(.search-open) #configure,body:not(.search-open) #ar-access{
    -webkit-backdrop-filter:blur(26px) saturate(88%);backdrop-filter:blur(26px) saturate(88%);
  }
}
.audience-choice{background:var(--scene-glass);border-color:var(--scene-glass-border)}
.audience-choice:hover:not(:disabled){background:var(--scene-glass);border-color:var(--scene-glass-border)}
.audience-choice,.scene-section-link,body:not(.search-open) #configure,body:not(.search-open) #ar-access{text-shadow:0 1px 3px rgba(0,0,0,.48)}

/* Scene dots sit below the actions, away from the section menu and footer. */
.scene-nav{top:auto;right:var(--scene-edge);bottom:76px;display:flex;gap:8px;align-items:center}
.scene-nav button{font-size:0;width:28px;height:28px;padding:0;text-align:center}
.scene-nav button::before{width:5px;height:5px;right:11px;top:11px;border-color:#ffffff9c}
.scene-nav button[aria-current=true]::before{width:6px;height:6px;right:10px;top:10px}
.scene-nav button:focus-visible{outline:1px solid #fff;outline-offset:2px;border-radius:50%}
.config-open .scene-sections,.config-open .scene-nav{display:none}
body.config-open:not(.search-open) #ar-access{
  right:calc(var(--panel-width) + 28px);bottom:28px;width:var(--scene-action-width);
}
.config-open .gallery-footer .materials-footer,.config-open .gallery-footer .scene-counter{visibility:hidden}

/* Keep all four sections visible in one compact row on phones. The work area
   starts below this row; no horizontal scrolling or duplicated controls. */
@media(max-width:1000px) and (min-width:701px){
  :root{--scene-edge:28px;--scene-action-width:230px}
  .scene-sections{width:172px}
  body.config-open:not(.search-open) #ar-access{right:calc(var(--panel-width) + 20px);width:210px}
}
@media(max-height:700px) and (min-width:701px){
  :root{--scene-config-bottom:90px;--scene-config-height:74px;--scene-ar-height:56px}
  .scene-sections{top:114px;gap:6px}
  .scene-section-link{min-height:40px;padding-top:9px;padding-bottom:9px}
  body:not(.search-open) #configure{padding-top:10px;padding-bottom:10px}
  .scene-nav{bottom:53px}
}
@media(max-height:560px) and (min-width:701px){
  :root{--scene-config-bottom:68px;--scene-config-height:70px;--scene-ar-height:50px}
  .scene-sections{top:90px;grid-template-columns:repeat(2,minmax(0,1fr));width:330px;gap:6px}
  .scene-section-link{min-height:40px;padding:9px 12px;font-size:11px;gap:10px}
  body:not(.search-open) #configure{padding-top:8px;padding-bottom:8px}
  body:not(.search-open) #ar-access{padding-top:9px;padding-bottom:9px}
  .scene-nav{bottom:28px;right:calc(var(--scene-edge) + 115px)}
}
@media(max-height:420px) and (min-width:701px){
  :root{--scene-config-bottom:60px}
  .scene-sections{top:76px;grid-template-columns:repeat(4,minmax(0,1fr));width:min(620px,calc(100% - var(--scene-edge)*2))}
}
@media(max-width:700px){
  :root{--scene-edge:20px}
  .site-header{padding:18px 20px;align-items:flex-start;gap:12px}
  .site-header nav{flex-wrap:nowrap;gap:12px;max-width:none;align-items:flex-start}
  .site-header .text-link{min-height:32px;align-items:center;font-size:10px;gap:4px;padding:4px 0}
  .site-header #audience-switch-label,.site-header [data-cart-count]{display:inline}
  .site-header #audience-switch>span[aria-hidden]{display:inline}
  .site-header .info-button{margin-top:3px}
  .scene-sections{left:20px;right:20px;top:85px;width:auto;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
  .scene-section-link{min-height:44px;justify-content:center;padding:8px 7px;text-align:center;font-size:11px;line-height:1.25;border-radius:12px;gap:0}
  .scene-section-link>span{display:none}
  .scene-location{top:150px;left:22px;max-width:calc(100% - 44px)}
  .scene-return{top:142px;left:22px}
  body:not(.search-open) #configure,body:not(.search-open) #ar-access{left:20px;right:20px;width:auto;height:auto;border-radius:14px}
  body:not(.search-open) #configure{bottom:140px;min-height:60px;padding:12px 16px;font-size:13px}
  body:not(.search-open) #ar-access{bottom:74px;min-height:54px;padding:10px 16px}
  body:not(.search-open) #configure small{font-size:9px;margin-top:4px}
  body:not(.search-open) #ar-access small{font-size:9px}
  .scene-caption{bottom:222px;left:22px;right:22px}
  .scene-nav{bottom:22px;right:20px;gap:6px}
  .scene-nav button{width:22px;height:28px}
  .scene-nav button::before{right:8px}
  .scene-nav button[aria-current=true]::before{right:7px}
  .gallery-footer .scene-counter{display:none}
  .gallery-footer{left:22px;right:108px;gap:12px}
  .gallery-footer .materials-footer{font-size:8px;max-width:90px}
  body.config-open:not(.search-open) #ar-access{left:20px;right:20px;bottom:calc(57svh + 12px);width:auto;min-height:48px;padding:9px 14px}
}
@media(max-width:359px){
  .site-header{left:0;right:0;padding-left:16px;padding-right:16px;gap:8px}
  .site-header .wordmark{font-size:14px}
  .site-header nav{gap:9px}
  .scene-sections{left:16px;right:16px;gap:4px}
  .scene-section-link{padding-left:5px;padding-right:5px;font-size:10px}
}
@media(prefers-reduced-motion:reduce){
  .scene-section-link,body:not(.search-open) #configure,body:not(.search-open) #ar-access{transition:none}
}


/* Paper and image are separate planes: white appears only when selected. */
.print-sheet{position:relative;width:100%;height:100%;background:#fff;overflow:hidden}
.print-image-area{position:absolute;inset:var(--print-inset-y,0%) var(--print-inset-x,0%);overflow:hidden}
/* A museum thumbnail can differ from its master: retain its natural proportions. */
.mount .print-image-area img{width:100%;height:100%;max-width:none;object-fit:cover;object-position:center}
.custom-size-controls,.border-field .custom-size-heading{clear:both}
#border-number{width:80px;min-height:44px;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);font-size:18px;text-align:right;padding:5px;font-variant-numeric:tabular-nums}
#border-range{display:block;width:100%;height:34px;margin:3px 0 0;accent-color:var(--ink);cursor:pointer}
#border-range:focus-visible,#border-number:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.image-dimensions{font-size:13px;font-variant-numeric:tabular-nums;color:var(--muted);margin:7px 0 0;line-height:1.5}
.border-dimensions{font-size:12px;line-height:1.6;font-variant-numeric:tabular-nums;color:var(--ink);margin:0 0 10px}

/* A quiet product view comes before the two adjustments. This is the sheet
   itself: no decorative frame, rails or fixed mat around the selected image. */
.config-panel .panel-art{display:block;margin:16px 0 18px}
.config-panel #panel-thumb{display:none}
.config-panel .panel-art h2{font-size:24px;line-height:1.12;letter-spacing:-.04em;margin:5px 0 7px}
.config-panel .panel-art #panel-artist{font-size:11px;line-height:1.45;margin:0;color:var(--muted)}
.config-panel .panel-collection{font-size:8px;line-height:1.4;margin:0 0 5px}
.configured-print{margin:0 0 16px}
.configured-print-preview{
  display:flex;align-items:center;justify-content:center;height:clamp(240px,32vh,330px);
  padding:12px;box-sizing:border-box;overflow:hidden;background:rgba(33,41,44,.035);border-radius:8px;
}
#configured-print-sheet{
  flex:none;width:min(100%,256px);height:100%;max-width:100%;max-height:100%;
  box-shadow:0 2px 9px #18202520;outline:0;border:0;padding:0;
}
#configured-print-image{display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center}
#configured-print-image:not([src]){visibility:hidden}
.configured-print-dimensions{text-align:center;padding-top:12px}
.configured-print-dimensions .custom-dimensions{font-size:28px;line-height:1.25;letter-spacing:-.035em;color:var(--ink)}
.print-dimensions-label{display:block;font-size:10px;letter-spacing:.04em;color:var(--muted);margin:0 0 5px}
.print-dimensions-order{display:block;font-size:10px;line-height:1.5;color:var(--muted);margin-top:4px}
.configured-print-dimensions .image-dimensions{font-size:11px;line-height:1.5;margin:2px 0 0}
.config-panel .config-fields .print-size-field,.config-panel .config-fields .border-field{margin:0;padding:10px 0 12px}
.config-panel .config-fields .print-size-field{border-top:0}
.config-panel .custom-size-heading{margin:0;gap:12px}
.config-panel .custom-size-heading label{font-size:13px;line-height:1.45}
.config-panel .custom-size-heading label small{font-size:10px;font-weight:400;color:var(--muted);margin-left:5px}
.config-panel #custom-short-number,.config-panel #custom-long-number,.config-panel #border-number{width:66px;min-height:40px;font-size:17px;padding:4px}
.config-panel #custom-short-range,.config-panel #custom-long-range,.config-panel #border-range{height:30px;margin:2px 0 0}
.config-panel .custom-size-limits{font-size:9px;line-height:1.4;margin:0}
.config-panel .workshop-paper{padding:12px 0 2px}
.config-panel .workshop-paper h3{font-size:11px;font-weight:500;line-height:1.5;margin:0}
.config-panel .workshop-paper .material-description{font-size:10px;line-height:1.5;margin:0}
.config-panel .paper-only-note{border:0;padding:0;margin:3px 0 12px;font-size:10px;line-height:1.5}
.config-panel .paper-only-note a{font-size:10px;margin-left:5px;text-underline-offset:3px}
.config-panel #room-field{border:0;min-width:0;margin:0;padding:0 0 12px}
.config-panel #room-field legend{font-size:11px;margin-bottom:7px}
.config-panel #room-field .room-current{font-size:10px;line-height:1.45;margin:0 0 9px}
.config-panel #room-field .room-navigation{gap:6px}
.config-panel #room-field .room-navigation button{min-height:40px;padding:8px 12px;font-size:11px;border-radius:5px}
.config-panel #room-field #previous-room{width:40px;padding:8px}
.config-panel #room-field .preview-frame-note{font-size:9px;line-height:1.4;margin:8px 0 0;color:var(--muted)}
.config-panel .source-details,.config-panel .config-ambience{margin:0;padding:0;border-top:1px solid var(--line)}
.config-panel .source-details summary,.config-panel .config-ambience summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:9px 0;cursor:pointer;font-size:11px;list-style:none}
.config-panel .source-details summary::-webkit-details-marker,.config-panel .config-ambience summary::-webkit-details-marker{display:none}
.config-panel .source-details summary::after,.config-panel .config-ambience summary::after{content:'+';font-size:16px;font-weight:300;color:var(--muted)}
.config-panel .source-details[open] summary::after,.config-panel .config-ambience[open] summary::after{content:'−'}
.config-panel .source-details summary:focus-visible,.config-panel .config-ambience summary:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.config-panel .config-ambience summary small{margin-left:auto;color:var(--muted);font-size:9px;font-variant-numeric:tabular-nums}
.config-panel #room-scale-note{font-size:9px;line-height:1.5;margin:7px 0 0}
.config-panel .source-details>div{padding:0 0 14px}
.config-panel .source-details p,.config-panel .source-details a,.config-panel #print-quality{font-size:10px;line-height:1.55}
.config-panel .configuration-bottom{padding-top:12px}
.config-panel .destination-choice{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:5px 12px;margin-bottom:14px}
.config-panel .destination-choice label{font-size:11px;font-weight:400}
.config-panel .destination-choice select{min-height:38px;padding:7px 24px 7px 9px;font-size:11px;border-radius:4px}
.config-panel .destination-choice p{grid-column:1/-1;font-size:10px;line-height:1.45}
.config-panel .print-price-block{margin-bottom:12px;gap:5px}
.config-panel .print-price-block small{font-size:10px;line-height:1.45}
.config-panel .no-purchase{font-size:10px;line-height:1.5;margin:8px 0 12px}
.config-panel #space-preview-button{padding:11px 13px;gap:4px;margin:0;font-size:11px}
.config-panel #space-preview-button small{font-size:9px}
.config-panel #review-button{font-size:10px;padding:12px 0}
@media(max-width:700px){
  .config-panel .panel-art{margin:10px 0 15px}
  .config-panel .panel-art h2{font-size:22px}
  .configured-print-preview{height:240px;padding:10px}
  .configured-print{margin-bottom:12px}
  .configured-print-dimensions{padding-top:9px}
}
@media(max-height:650px) and (min-width:701px){
  .configured-print-preview{height:220px}
  .config-panel .panel-art{margin:12px 0 14px}
}

/* Frosted translucent glass keeps the blurred room visible, including on hover. */
:root{--glass-warm-glow:0 0 22px 2px rgba(248,222,171,.22),0 6px 30px rgba(248,222,171,.14)}
.audience-choice,.scene-section-link,body:not(.search-open) #configure,body:not(.search-open) #ar-access{
  transition:box-shadow .28s ease,background .18s ease,border-color .18s ease;
}
@media(hover:hover){
  .scene-section-link:hover:not(:disabled),body:not(.search-open) #ar-access:hover:not(:disabled){
    background:var(--scene-glass);border-color:var(--scene-glass-border);transform:none;
    box-shadow:inset 0 1px 0 #ffffff12,0 5px 22px #00000014,var(--glass-warm-glow);
  }
  body:not(.search-open) #configure:hover:not(:disabled){
    background:var(--scene-glass);border-color:var(--scene-glass-border);transform:none;
    box-shadow:inset 0 1px 0 #ffffff12,0 5px 22px #00000014,var(--glass-warm-glow);
  }
  .audience-choice:hover:not(:disabled){
    background:var(--scene-glass);border-color:var(--scene-glass-border);
    box-shadow:inset 0 1px 0 #ffffff24,0 8px 24px #00000014,var(--glass-warm-glow);
  }
}
.audience-choice:focus-visible,.scene-section-link:focus-visible,body:not(.search-open) #configure:focus-visible,body:not(.search-open) #ar-access:focus-visible{
  outline:2px solid #fff;outline-offset:4px;
  box-shadow:inset 0 1px 0 #ffffff12,0 5px 22px #00000014,var(--glass-warm-glow);
}
.audience-choice:active:not(:disabled),.scene-section-link:active:not(:disabled),body:not(.search-open) #configure:active:not(:disabled),body:not(.search-open) #ar-access:active:not(:disabled){
  box-shadow:inset 0 1px 0 #ffffff12,0 0 12px 1px rgba(248,222,171,.18);
}
@media(prefers-reduced-motion:reduce){
  .audience-choice,.scene-section-link,body:not(.search-open) #configure,body:not(.search-open) #ar-access{transition:none}
}

/* Linked paper dimensions: touch-sized controls with a quiet, tactile rail. */
.config-panel #custom-long-number{border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);text-align:right;font-variant-numeric:tabular-nums}
.config-panel .linked-size-note{display:flex;align-items:center;justify-content:center;gap:6px;font-size:9px;line-height:1.4;color:var(--muted);margin:10px 0 8px}
.config-panel .linked-size-note svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;overflow:visible}
.config-panel :is(#custom-short-range,#custom-long-range,#border-range){display:block;width:100%;height:38px;appearance:none;-webkit-appearance:none;background:transparent;cursor:ew-resize;--range-fill:100%}
.config-panel input[type=range]::-webkit-slider-runnable-track{height:3px;border-radius:3px;background:linear-gradient(to right,#68746a var(--range-fill),#dce1dc var(--range-fill))}
.config-panel input[type=range]::-moz-range-track{height:3px;border-radius:3px;background:linear-gradient(to right,#68746a var(--range-fill),#dce1dc var(--range-fill))}
.config-panel input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;margin-top:-7px;width:17px;height:17px;border-radius:50%;background:linear-gradient(145deg,#fff,#e4e9e4);border:1px solid #aab3ab;box-shadow:0 2px 5px #20322424,inset 0 1px 0 #fff}
.config-panel input[type=range]::-moz-range-thumb{width:17px;height:17px;border-radius:50%;background:linear-gradient(145deg,#fff,#e4e9e4);border:1px solid #aab3ab;box-shadow:0 2px 5px #20322424}
.config-panel input[type=range]:focus-visible,.config-panel #custom-long-number:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
@media(pointer:coarse){.config-panel :is(#custom-short-range,#custom-long-range,#border-range){height:44px}}

/* Home navigation belongs to the header. Only the two artwork actions remain
   beside the scene; Casa/Negocio is a transparent choice over this same home. */
.site-header{display:grid;grid-template-columns:minmax(170px,1fr) auto minmax(170px,1fr);align-items:center;gap:22px;padding:26px var(--scene-edge);}
.site-header .wordmark{justify-self:start}
.site-header .header-utilities{justify-self:end;display:flex;flex-wrap:nowrap;align-items:center;gap:21px;max-width:none}
.site-header .scene-sections{position:static;display:flex;align-items:center;justify-content:center;gap:22px;width:auto;min-width:0;transform:none;}
.site-header .scene-section-link{position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 0;border:0;border-radius:0;background:none;color:#fff;box-shadow:none;font-size:12px;line-height:1.4;white-space:nowrap;backdrop-filter:none;-webkit-backdrop-filter:none;text-shadow:0 1px 8px #0006;}
.site-header .scene-section-link>.button-caret{display:none}
.site-header .scene-section-link::after{content:'';position:absolute;bottom:5px;left:0;right:0;height:1px;background:#ffffffe0;transform:scaleX(0);transform-origin:left;transition:transform .2s ease}
.site-header .scene-section-link:hover:not(:disabled){background:none;box-shadow:none}
.site-header .scene-section-link:hover::after,.site-header .scene-section-link:focus-visible::after{transform:scaleX(1)}
.site-header .scene-section-link:focus-visible{outline:1px solid #fff;outline-offset:4px;box-shadow:none}
.config-open .site-header{grid-template-columns:1fr auto}
.config-open .site-header .scene-sections{display:none}
.audience-entry{background:transparent;}
.audience-entry-content{width:min(100%,390px)}
.audience-entry .audience-choices{gap:14px}
.audience-entry .audience-choice{justify-content:center;gap:16px}
@media(max-width:1150px){
  .site-header{grid-template-columns:1fr auto;gap:8px 20px;padding-top:20px;padding-bottom:10px}
  .site-header .scene-sections{grid-row:2;grid-column:1/-1;gap:30px}
  .site-header .header-utilities{grid-row:1;grid-column:2}
  .scene-location{top:142px}
}
@media(max-width:700px){
  .site-header{padding:18px 20px 8px;gap:7px 12px}
  .site-header .header-utilities{gap:12px;align-items:center}
  .site-header .scene-sections{gap:clamp(12px,4vw,26px);width:100%}
  .site-header .scene-section-link{min-height:42px;padding:8px 0;font-size:11px}
  .scene-location{top:132px}
  .scene-return{top:130px}
}
@media(max-width:359px){
  .site-header{padding-left:16px;padding-right:16px}
  .site-header .scene-sections{gap:13px}
  .site-header .scene-section-link{font-size:10px}
}
@media(prefers-reduced-motion:reduce){.site-header .scene-section-link::after{transition:none}}
/* In discovery the same chooser uses a quiet modal veil, never another room. */
.search-open .audience-entry{background:rgba(12,18,19,.9)}
