/* Later additions: small type fixes, the gold and palladium comparison, the phone order bar. */
h1.page{line-height:1.04}
h1.page,h2{text-wrap:balance}
.floor .captions.three{font-size:clamp(.8rem,2.2vw,1.6rem)}

/* Comparison: two photographs stacked, the top one cut at --pos */
.cmp-row{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(1.5rem,4vw,3.5rem);align-items:center}
@media (max-width:760px){.cmp-row{grid-template-columns:1fr}}
.compare{position:relative;margin:0;width:100%;max-width:38rem;aspect-ratio:1;overflow:hidden;touch-action:pan-y;cursor:ew-resize;--pos:50%}
.compare img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;user-select:none;-webkit-user-drag:none}
.compare .over{clip-path:inset(0 0 0 var(--pos))}
.compare::after{content:"";position:absolute;top:0;bottom:0;left:var(--pos);width:1px;background:var(--gold);pointer-events:none}
.compare input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;pointer-events:none}
.compare:focus-within{outline:2px solid var(--gold);outline-offset:3px}
.compare .knob{position:absolute;top:50%;left:var(--pos);width:2.75rem;height:2.75rem;margin:-1.375rem 0 0 -1.375rem;border-radius:50%;border:1px solid var(--gold);background:rgba(11,11,11,.72);color:var(--ivory);display:grid;place-items:center;font-size:1.35rem;line-height:1;letter-spacing:.25em;text-indent:.25em;padding-bottom:.12em;pointer-events:none;z-index:1}
.compare .tag{position:absolute;bottom:.8rem;font-size:.85rem;color:#fff;background:rgba(11,11,11,.62);padding:.25rem .6rem;pointer-events:none}
.compare .tag.l{left:.8rem}
.compare .tag.r{right:.8rem}

/* Phone: the current finish and its price stay within reach */
.buybar{display:none}
@media (max-width:760px){
  .buybar{position:fixed;left:0;right:0;bottom:0;z-index:20;display:flex;align-items:center;gap:.8rem;padding:.7rem 1.1rem calc(.7rem + env(safe-area-inset-bottom));background:rgba(11,11,11,.95);border-top:1px solid var(--gold);color:var(--ivory);transform:translateY(105%);visibility:hidden;transition:transform .35s cubic-bezier(.2,.7,.2,1),visibility 0s .35s}
  .buybar.on{transform:none;visibility:visible;transition-delay:0s}
  .buybar .what{flex:1;font-family:var(--display);font-size:1.1rem;line-height:1.15}
  .buybar .what span{display:block;font-family:var(--text);font-size:.9rem;color:var(--leaf-bright)}
  .buybar .btn{padding:.65rem 1.1rem;background:var(--gold);color:var(--noir)}
  body:has(.buybar) footer{padding-bottom:6rem}
}

/* Order page: photograph of the chosen finish beside the form */
.order-grid{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:clamp(1.5rem,4vw,3.5rem);align-items:start}
.order-photo{position:sticky;top:5.5rem;margin-top:2.5rem}
.order-photo img{display:block;width:100%;height:auto}
.order-photo img.swap{animation:swap .55s cubic-bezier(.2,.7,.2,1)}
.order-photo p{font-family:var(--display);font-size:1.3rem;margin:.9rem 0 0}
@media (max-width:900px){.order-grid{grid-template-columns:1fr}.order-photo{display:none}}
