.cellar-home {
  --ivory: #fff8e8;
  --gold: #e2c599;
  --room-edge: clamp(1rem, 4.2vw, 4.75rem);
}
.cellar-home .skip-nav { z-index: 5; }
.cellar-home .brand-head {
  position: relative; z-index: 2; flex-wrap: wrap; row-gap: .35rem;
  min-height: 78px; padding: .9rem var(--room-edge); column-gap: 1.5rem;
  background: #212218;
  border-bottom: 1px solid #d5bc8c63; color: var(--ivory);
}
.cellar-home .brand-name { font-size: clamp(1.65rem, 2.2vw, 2.25rem); }
.cellar-home .brand-head nav { margin-inline-start: auto; min-width: 0; max-width: 100%; }
.cellar-home .brand-name { max-width: 100%; white-space: normal; }
.cellar-home .brand-head a:focus-visible, .cellar a:focus-visible, .cellar button:focus-visible {
  outline: 3px solid #fff2bc; outline-offset: 4px; box-shadow: 0 0 0 6px #20160d;
}
.home-pieces { padding-block: clamp(2.5rem, 5vw, 5rem); }
.collection-title { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .7rem 1.3rem; margin-bottom: 1.5rem; }
.collection-title h2, .home-craft h2 { font-size: clamp(2.3rem, 4vw, 3.75rem); letter-spacing: -.04em; }
.collection-title .text-link { border-bottom: 1px solid #958b72; }
.piece-grid:not(.feature-lifts) { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,285px),1fr)); gap: 1rem 1.45rem; }
.home-pieces .piece-card { display: flex; align-items: center; gap: 1rem; padding-top: .65rem; border-top: 1px solid var(--line); text-decoration: none; }
.home-pieces .piece-card:hover strong { text-decoration: underline; }
.piece-photo { width: clamp(72px, 8vw, 105px); aspect-ratio: 1; flex-shrink: 0; overflow: hidden; background: #fff; }
.piece-photo img { width: 100%; height: 100%; object-fit: contain; }
.piece-copy { min-width: 0; overflow-wrap: anywhere; }
.lift-title { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.piece-copy strong { display: block; font: 600 clamp(1.35rem, 1.9vw, 1.8rem)/1.05 var(--display); }
.home-craft { background: #e9e4d8; padding-block: clamp(2.2rem,5vw,5rem); }
.craft-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2rem; align-items: center; }
.home-craft p { max-width: 63ch; color: #414638; line-height: 1.8; }
.cellar {
  --room-height: max(610px, calc(100svh - 78px));
  --room-width: 100vw;
  --art-height: max(var(--room-height), var(--room-width) * .62556);
  /* The backplate's floor lines converge at 45.5% of image height. Account for the cover crop. */
  --horizon: calc(var(--room-height) * .54 - var(--art-height) * .085);
  position: relative; isolation: isolate; min-height: var(--room-height);
  display: grid; background: #30291e; color: var(--ivory);
}
.cellar-home #pieces { scroll-margin-block-start: 7rem; }
.cellar-interior { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.cellar-intro { position: relative; z-index: 2; padding: clamp(1.3rem, 4.1vh, 3.5rem) var(--room-edge) 0;
  display: flex; align-items: flex-start; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; pointer-events: none; }
.cellar-intro > * { pointer-events: auto; }
.cellar-intro h1 { font-size: clamp(3.3rem, 6.1vw, 6.65rem); line-height: .97; letter-spacing: -.045em; text-shadow: 0 2px 16px #190f09a6; }
.cellar-intro p { margin-top: .5rem; font-size: clamp(.97rem, 1.15vw, 1.13rem); font-weight: 550; text-shadow: 0 1px 4px #180e09; }
.layout-switch { display: inline-flex; max-width: 100%; flex-wrap: wrap; padding: 3px; gap: 2px; border: 1px solid #dccfadc9; border-radius: 25px; background: #28261fec; }
.layout-switch button { min-height: 42px; min-width: 79px; padding: .33rem .85rem; border: 0; border-radius: 22px; background: transparent; color: var(--ivory); font-size: .85rem; font-weight: 650; }
.layout-switch [aria-pressed="true"] { color: #30261b; background: #f0e5cd; }
.layout-switch button:hover { text-decoration: underline; text-underline-offset: .2em; }
.cellar-products { position: absolute; inset: 0; isolation: isolate; }
.cellar-backdrop { position: absolute; z-index: -1; inset: 0; display: block; overflow: hidden; pointer-events: none; }
.cellar-backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 54%; }
.cellar-backdrop::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, #110d08b3, #18120923 27%, transparent 51%, #2d1b0c0d 88%, #21170e66),
    linear-gradient(120deg,#1c140c49,transparent 37%); }
.feature-lifts { list-style: none; margin: 0; padding: 0; }
.feature-lifts li {
  --x: 12%; --depth: .853; --proportion: 1.12; --limit: .34;
  /* Each physical height projects from the same horizon to its point of floor contact. */
  --subject: min(calc((var(--room-height) * var(--depth) - var(--horizon)) * var(--proportion)), calc(var(--room-width) * var(--limit)));
  --foot: calc(var(--horizon) + var(--subject) / var(--proportion));
  position: absolute; left: var(--x); top: calc(var(--foot) - var(--subject)); width: 18.3%; transform: translateX(-50%);
}
.feature-lifts li:nth-child(2) { --x: 31.1%; --depth: .762; --proportion: 1.06; --limit: .29; }
.feature-lifts li:nth-child(3) { --x: 50%; --depth: .728; --proportion: 1.13; --limit: .26; }
.feature-lifts li:nth-child(4) { --x: 68.9%; --depth: .762; --proportion: 1.09; --limit: .29; }
.feature-lifts li:nth-child(5) { --x: 88%; --proportion: 1.1; }
.cellar-choice { display: flex; align-items: center; flex-direction: column; color: var(--ivory); text-decoration: none; text-align: center; }
.floor-product { display: inline-block; height: var(--subject); position: relative; isolation: isolate; }
.floor-product img { position: relative; width: auto; max-width: none; height: 100%; }
.floor-product::before, .floor-product::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.floor-product::before { width: 150%; height: 9%; left: 15%; bottom: -1.9%; border-radius: 50%;
  background: radial-gradient(ellipse farthest-side,#3826137d,#4a321c47 46%,transparent 97%); transform: skewX(29deg) rotate(-3deg); }
.floor-product::after { width: 92%; height: 3.1%; bottom: -.45%; left: 5%; border-radius: 50%; background: radial-gradient(ellipse farthest-side,#21170bea,#3020119e 48%,transparent); }
.lift-portrait { display: none; }
.lift-title { display: grid; justify-items: center; gap: .1rem; max-width: 100%; margin-top: .45rem; }
.lift-title strong { padding: .34rem .7rem .42rem; border-radius: 2px; background: #302619ed; color: #fff9ed;
  font: 600 clamp(1.08rem,1.55vw,1.48rem)/1.05 var(--display); text-wrap: balance; }
.lift-title small { padding: .03rem .38rem; color: #2c2015; background: #f5e8cfed; font: 600 .68rem/1.4 var(--sans); border-radius: 2px; }
.choice-arrow { display: none; }
.cellar-choice:hover strong, .cellar-choice:focus-visible strong { text-decoration: underline; text-underline-offset: .16em; }
.more-furniture { position: relative; z-index: 1; align-self: center; display: inline-flex; gap: .5em; align-items: center; min-height: 44px;
  padding: .35rem 1rem; margin-block: .35rem; background: #322a1de8; border-radius: 2px; color: var(--ivory); font-size: .88rem; font-weight: 650; text-decoration: none; }
.more-furniture:hover { text-decoration: underline; }
.cellar[data-layout="list"] .cellar-products { position: static; padding: 1.2rem var(--room-edge); margin-bottom: auto; }
.cellar[data-layout="list"] .cellar-backdrop { z-index: -1; }
.cellar[data-layout="list"] .floor-product { display: none; }
.cellar[data-layout="list"] .feature-lifts { width: min(100%,29rem); }
.cellar[data-layout="list"] .feature-lifts li { position: static; transform: none; width: auto; }
.cellar[data-layout="list"] .cellar-choice { background: #f8f1e4f5; color: #2e2b20; border-bottom: 1px solid #c5b9a2; }
.cellar[data-layout="list"] .cellar-choice, .cellar[data-layout="list"] .lift-title { justify-items: start; text-align: left; }
.cellar[data-layout="list"] .cellar-choice { display: grid; align-items: center; grid-template-columns: 51px 1fr auto; width: 100%; gap: .85rem; padding-right: 1rem; }
.cellar[data-layout="list"] .lift-portrait { display: block; width: 51px; height: 61px; }
.lift-portrait img { height: 100%; width: 100%; object-fit: contain; background: #fff; }
.cellar[data-layout="list"] .lift-title { margin: 0; }
.cellar[data-layout="list"] .lift-title strong, .cellar[data-layout="list"] .lift-title small { padding: 0; color: inherit; background: none; }
.cellar[data-layout="list"] .choice-arrow { display: block; font-size: 1.2rem; }
@media (max-width:760px), (max-width:1024px) and (orientation:portrait) {
  .cellar-home .brand-head { min-height: 63px; padding: .65rem var(--room-edge); }
  .cellar-home .brand-head nav a:not(:last-child) { display: none; }
  .cellar-home .brand-head nav a:last-child { display: inline-flex; align-items: center; min-height: 44px; }
  .cellar-home .brand-name { font-size: 1.5rem; }
  .cellar { --room-height: clamp(215px, 61vw, 460px); min-height: calc(100svh - 64px); background: #f3edde; color: #312b21; }
  .cellar-intro { display: grid; gap: .64rem; padding: 1.05rem var(--room-edge) .8rem; }
  .cellar-intro h1 { font-size: clamp(2.55rem,9.1vw,4rem); color: #352d20; text-shadow: none; }
  .cellar-intro p { margin-top: .25rem; font-size: .9rem; line-height: 1.4; text-shadow: none; }
  .layout-switch { width: fit-content; }
  .layout-switch button { min-height: 40px; }
  .cellar-products { position: relative; inset: auto; flex: 1; }
  .cellar-backdrop { bottom: auto; height: var(--room-height); }
  .cellar-backdrop::after { background: linear-gradient(180deg, #39281726, transparent 43%,#341f0c0f); }
  .feature-lifts { padding: var(--room-height) var(--room-edge) 0; }
  .feature-lifts li { position: static; width: auto; transform: none; }
  .cellar-choice { display: grid; align-items: center; grid-template-columns: 42px 1fr auto; gap: .75rem;
    width: 100%; min-height: 49px; padding: .2rem .25rem .2rem 0; border-bottom: 1px solid #c8bca8; color: #312b21; text-align: left; }
  .floor-product { position: absolute; left: var(--x); top: var(--foot); transform: translate(-50%, -100%); }
  .lift-portrait { display: block; height: 44px; width: 38px; }
  .lift-title { justify-items: start; margin: 0; }
  .lift-title strong { font: 600 clamp(1.15rem,4.4vw,1.55rem)/1.04 var(--display); text-wrap: wrap; }
  .lift-title strong, .lift-title small { color: inherit; background: none; padding: 0; }
  .choice-arrow { display: block; font-size: 1.12rem; }
  .cellar[data-layout="list"] .cellar-products { padding: .25rem var(--room-edge); }
  .cellar[data-layout="list"] .cellar-backdrop { display: none; }
  .cellar[data-layout="list"] .feature-lifts { padding: 0; width: 100%; }
  .cellar[data-layout="list"] .cellar-choice { background: transparent; }
  .more-furniture { color: #33291c; background: transparent; }
  .craft-grid { grid-template-columns: 1fr; gap: 1rem; }
}
@media (forced-colors:active) {
  .cellar-choice, .layout-switch,.more-furniture { color: LinkText; border: 1px solid ButtonText; }
}
.cellar { overflow-x: clip; }
@media (max-width: 760px), (max-width:1024px) and (orientation:portrait) {
  .cellar:not([data-layout="list"]) {
    --room-height: max(46rem, calc(100svh - 64px));
    min-height: var(--room-height); color: var(--ivory); background: #393021;
  }
  .cellar:not([data-layout="list"]) .cellar-products {
    position: static; isolation: auto; display: flex; flex-direction: column; justify-content: flex-end; min-height: 0;
  }
  .cellar:not([data-layout="list"]) .cellar-backdrop { inset: 0; height: 100%; }
  .cellar:not([data-layout="list"]) .cellar-backdrop::after {
    background: linear-gradient(180deg,#18130ee8, #241c13aa 19%, transparent 40%, transparent 61%,#231a0ec9 89%,#21190fe6);
  }
  .cellar:not([data-layout="list"]) .cellar-intro h1, .cellar:not([data-layout="list"]) .cellar-intro p { color: var(--ivory); text-shadow: 0 1px 5px #1e170e; }
  .cellar:not([data-layout="list"]) .feature-lifts { padding: 0 var(--room-edge); margin-top: 11rem; }
  .cellar:not([data-layout="list"]) .cellar-choice { min-height: 46px; padding-block: .13rem; padding-right: .6rem;
    background: #2e271bed; border-bottom-color: #d6c8ac50; color: #fff9eb; }
  .cellar:not([data-layout="list"]) .lift-portrait { width: 34px; height: 39px; }
  .cellar:not([data-layout="list"]) .choice-arrow, .cellar:not([data-layout="list"]) .more-furniture { color: var(--ivory); }
}
/* The finished scene includes the floor, barrels and their shadows in one image.
   Map every link back to the subject, using the image's own cover crop. */
@media (min-width:761px) and (min-aspect-ratio:8/5) and (max-aspect-ratio:3/1) {
  .cellar:not([data-layout="list"]) {
    --frame-w: var(--room-width); --frame-h: var(--room-height);
    --photo-aspect: 1.750228; --photo-y: .85;
    --photo-h: max(var(--frame-h), var(--frame-w) / var(--photo-aspect)); --photo-w: calc(var(--photo-h) * var(--photo-aspect));
  }
  .cellar:not([data-layout="list"]) .cellar-backdrop img { object-position: 50% 85%; }
  .cellar:not([data-layout="list"]) .feature-lifts li {
    --center: .1205; --top: .402; --base: .849;
    --subject: calc(var(--photo-h) * (var(--base) - var(--top)));
    --foot: calc(var(--frame-h) * var(--photo-y) + var(--photo-h) * (var(--base) - var(--photo-y)));
    left: calc((var(--frame-w) - var(--photo-w)) / 2 + var(--photo-w) * var(--center));
  }
  .cellar:not([data-layout="list"]) .feature-lifts li:nth-child(2) { --center: .311; --top: .426; --base: .762; }
  .cellar:not([data-layout="list"]) .feature-lifts li:nth-child(3) { --center: .5005; --top: .411; --base: .727; }
  .cellar:not([data-layout="list"]) .feature-lifts li:nth-child(4) { --center: .69; --top: .422; --base: .762; }
  .cellar:not([data-layout="list"]) .feature-lifts li:nth-child(5) { --center: .8805; --top: .407; --base: .85; }
  .cellar:not([data-layout="list"]) .floor-product { opacity: 0; }
}
/* Keep the complete portrait composition in view and register the selectable
   silhouettes to its floor, just above the phone's product list. */
@media (max-width:760px), (max-width:1024px) and (orientation:portrait) {
  .cellar:not([data-layout="list"]) {
    --frame-w: var(--room-width); --frame-h: var(--room-height); --photo-h: calc(var(--frame-w) * 1672 / 941);
    --photo-top: calc(var(--menu-top, var(--frame-h) * .64) - var(--photo-h) * .62 - 14px);
  }
  .cellar:not([data-layout="list"]) .cellar-backdrop { background: linear-gradient(#79512f, #a17349 48%, #a9825c); }
  .cellar:not([data-layout="list"]) .cellar-backdrop img { position: absolute; left: 0; top: var(--photo-top); width: 100%; height: var(--photo-h); object-fit: cover;
    mask-image: linear-gradient(transparent,black 7%,black 94%,transparent); }
  .cellar:not([data-layout="list"]) .feature-lifts li { --center: .1325; --left-edge: .069; --right-edge: .196; --top: .437; --base: .620; }
  .cellar:not([data-layout="list"]) .feature-lifts li:nth-child(2) { --center: .319; --left-edge: .266; --right-edge: .372; --top: .465; --base: .595; }
  .cellar:not([data-layout="list"]) .feature-lifts li:nth-child(3) { --center: .5035; --left-edge: .457; --right-edge: .550; --top: .459; --base: .586; }
  .cellar:not([data-layout="list"]) .feature-lifts li:nth-child(4) { --center: .6925; --left-edge: .625; --right-edge: .760; --top: .465; --base: .596; }
  .cellar:not([data-layout="list"]) .feature-lifts li:nth-child(5) { --center: .872; --left-edge: .807; --right-edge: .937; --top: .461; --base: .620; }
  .cellar:not([data-layout="list"]) .floor-product {
    opacity: 0; left: calc(var(--frame-w) * var(--center)); top: calc(var(--photo-top) + var(--photo-h) * var(--base));
    height: calc(var(--photo-h) * (var(--base) - var(--top))); width: calc(var(--frame-w) * (var(--right-edge) - var(--left-edge)));
  }
}
