/* The two CMS homepage modes share one catalogue, journal and trade desk. */
.showroom-home {
  --home-paper: #f6f5ee;
  --home-sage: #e7e9df;
  --home-ink: #202b23;
  --home-olive: #546054;
  --home-line: #c6cbbd;
  --home-clay: #a4482e;
  --home-space: clamp(2.9rem, 4.7vw, 5.35rem);
  color: var(--home-ink);
  background: var(--home-paper);
}
.home-width { width: min(90%, 98.75rem); margin-inline: auto; }
.showroom-home :is(#categories,#featured,#sample,#buying-guides,#enquire,#buying-tools) { scroll-margin-top: 4.5rem; }
.home-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: clamp(1.15rem,2.3vw,2.1rem); }
.home-title, .home-intro h1 { margin: 0; font-size: clamp(2.6rem,5.1vw,5.8rem); line-height: .97; letter-spacing: -.07em; font-weight: 580; text-wrap: balance; }
.showroom-home .home-title em, .home-intro h1 em { font: italic 400 1.075em/.95 "Showroom Serif", Georgia, serif; letter-spacing: -.055em; }
.home-link { display: inline-flex; align-items: center; gap: .7em; width: fit-content; min-height: 2.6rem; font-size: .89rem; font-weight: 650; text-decoration: underline; text-underline-offset: .27em; }
.home-link:hover { color: var(--home-clay); }
.home-button { display: inline-flex; align-items: center; justify-content: center; gap: 1.2em; width: fit-content; min-height: 2.75rem; padding: .6rem 1.15rem; border: 1px solid transparent; border-radius: 2rem; background: var(--home-ink); color: #fffef5; font-weight: 650; font-size: .89rem; }
.home-button:hover { background: #3c5343; }
.home-arrow { flex: none; display: inline-grid; place-content: center; width: 2.45rem; height: 2.45rem; border: 1px solid currentColor; border-radius: 50%; font: 500 1.1rem/1 "DM Sans", sans-serif; }
.family-label small, .edit-copy small, .sample-ref, #proof-index, .desk-style small {
  font: 500 .73rem/1.4 ui-monospace, Menlo, monospace; letter-spacing: .04em; font-variant-numeric: tabular-nums;
}

/* The scene needs scroll distance to switch to the design controls. Let the collection
   cover that distance from below so the buyer sees garments immediately after the stage. */
.has-motion .showroom-home .studio-scenes {
  --stage-height: clamp(32.8rem,78svh,47rem);
  --design-travel: clamp(5.5rem,12svh,8rem);
  margin-bottom: calc(0px - var(--design-travel));
}
.has-motion .showroom-home .story { height: calc(var(--stage-height) + var(--design-travel)); }
.has-motion .showroom-home .stage { height: var(--stage-height); min-height: 0; }
.has-motion .studio-scenes + .home-collections {
  position: relative;
  width: 100%;
  padding-inline: max(5%,calc((100% - 98.75rem) / 2));
  background: var(--home-paper);
}
@media (min-width:761px) {
  .has-motion .showroom-home .object { width: min(51vw,68svh,42rem); }
}
.showroom-home .home-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: 0; padding: 0; border-radius: 0; background: var(--home-sage); color: var(--home-ink); }
.home-intro::before,.home-intro::after { display: none; }
.home-intro>div { align-self: center; padding: var(--home-space) 7vw; }
.home-intro h1 { font-size: clamp(2.7rem,5.6vw,6.2rem); }
.home-intro p { max-width: 23rem; margin: 1.3rem 0; }
.home-intro>img { align-self: stretch; height: 100%; max-height: 34rem; width: 100%; object-fit: cover; }

.home-collections { padding-block: var(--home-space); }
.family-gallery { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(15rem,100%),1fr)); gap: clamp(.55rem,1.2vw,1.2rem); }
.family-tile { position: relative; isolation: isolate; min-width: 0; min-height: clamp(13rem,22vw,25rem); display: flex; align-items: end; overflow: hidden; background: #727b6d; color: white; }
.family-tile>img,.family-tile::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.family-tile>img { object-fit: cover; object-position: 50% 38%; transition: transform .36s ease-out; }
.family-tile::after { content: ""; background: linear-gradient(to top,#17201bdc, #1d261c63 28%,transparent 66%); }
.family-label { display: flex; align-items: end; justify-content: space-between; gap: .5rem; width: 100%; padding: clamp(.9rem,1.6vw,1.8rem); }
.family-label small { color: #f4f2e8; }
.family-label h3 { margin-top: .15rem; font-size: clamp(1.42rem,2vw,2.35rem); line-height: 1.06; letter-spacing: -.052em; font-weight: 570; overflow-wrap: anywhere; }
.family-label .home-arrow { border-color: #edeedf9e; }
.family-tile:is(:hover,:focus-visible)>img { transform: scale(1.035); }
.family-tile:is(:hover,:focus-visible) .home-arrow { background: #fffef0; color: var(--home-ink); }
@media (min-width: 761px) {
  /* The four-family edition has two full photographs and two garment labels.
     Newly added or unpublished families flow through the regular responsive grid. */
  .family-gallery--four {
    grid-template-columns: minmax(0,1.15fr) minmax(0,.96fr) minmax(0,1fr);
    grid-template-rows: repeat(2,clamp(8rem,10.6vw,12rem));
    grid-template-areas: "a b d" "a c d";
  }
  .family-gallery--four .family-tile { min-height: 0; }
  .family-gallery--four .family-tile:first-child { grid-area: a; }
  .family-gallery--four .family-tile:nth-child(2) { grid-area: b; }
  .family-gallery--four .family-tile:nth-child(3) { grid-area: c; }
  .family-gallery--four .family-tile:nth-child(4) { grid-area: d; }
  .family-gallery--four .family-tile:is(:nth-child(2),:nth-child(3)) { background: #e6e4d7; color: var(--home-ink); }
  .family-gallery--four .family-tile:nth-child(3) { background: #e1e6da; }
  .family-gallery--four .family-tile:is(:nth-child(2),:nth-child(3))>img { width: 53%; left: auto; object-position: 50% 40%; }
  .family-gallery--four .family-tile:is(:nth-child(2),:nth-child(3))::after { display: none; }
  .family-gallery--four .family-tile:is(:nth-child(2),:nth-child(3)) .family-label { align-self: stretch; flex-direction: column; align-items: flex-start; width: 48%; padding: clamp(.7rem,1.5vw,1.65rem); }
  .family-gallery--four .family-tile:is(:nth-child(2),:nth-child(3)) small { color: var(--home-olive); }
  .family-gallery--four .family-tile:is(:nth-child(2),:nth-child(3)) .home-arrow { width: 2rem; height: 2rem; border-color: #959e8e; }
}
.home-collections .garment-finder { display: grid; grid-template-columns: minmax(8rem,.65fr) minmax(0,2.1fr) auto; align-items: end; gap: clamp(.8rem,2vw,2rem); margin-top: 1rem; padding: 1.2rem clamp(1rem,2vw,1.8rem); border: 0; border-radius: 0; box-shadow: none; background: #e9eadf; }
.garment-finder #finder-title { align-self: center; font-size: clamp(1.25rem,1.65vw,1.8rem); line-height: 1.1; letter-spacing: -.045em; }
.home-collections .finder-fields { gap: .8rem; }
.home-collections .finder-fields select { margin-top: .22rem; min-height: 2.6rem; border-radius: 3px; border-color: #a6aea0; background: #f9f9f2; }
.home-collections .home-button { min-height: 2.6rem; }
.home-empty { grid-column: 1/-1; padding-block: 1rem; }

.home-edit { padding-block: var(--home-space); background: var(--home-sage); }
.edit-styles { display: grid; grid-template-columns: minmax(0,1.14fr) minmax(0,1fr); column-gap: clamp(1.25rem,3.4vw,4rem); }
.edit-style { position: relative; min-width: 0; display: grid; grid-template-columns: clamp(5.8rem,8vw,8rem) minmax(0,1fr); align-items: center; gap: clamp(.8rem,1.5vw,1.65rem); border-top: 1px solid #b4bdae; padding-block: .65rem; }
.edit-style:not(.edit-lead) { grid-column: 2; }
.edit-style:last-child { border-bottom: 1px solid #b4bdae; }
.edit-image { position: relative; background: #f0f0e9; }
.edit-image img { width: 100%; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.edit-copy { display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap: .6rem; align-items: center; }
.edit-copy small,.edit-copy h3,.edit-copy p { grid-column: 1; }
.edit-copy small { color: var(--home-olive); font-size: .69rem; }
.edit-copy h3 { font-size: clamp(1.04rem,1.45vw,1.6rem); padding-block: .2rem; letter-spacing: -.04em; font-weight: 600; line-height: 1.12; overflow-wrap: anywhere; }
.edit-copy p { font-size: .88rem; color: var(--home-olive); }
.edit-detail::after { content: ""; position: absolute; inset: 0; }
.edit-detail:hover,.edit-detail:focus-visible { text-decoration: underline; text-underline-offset: .15em; }
.edit-style .add-style { position: relative; z-index: 1; grid-column: 2; grid-row: 1/4; align-self: center; justify-self: start; width: fit-content; min-height: 2.55rem; margin: 0; padding: .4rem .8rem; border: 1px solid #9aa793; border-radius: 2rem; color: var(--home-ink); background: transparent; font-size: .8rem; white-space: normal; }
.edit-style .add-style:is(:hover,.selected) { background: #d5ddcd; border-color: #627461; }
.edit-style.edit-lead { grid-column: 1; grid-row: 1 / span 3; grid-template-columns: minmax(0,1.12fr) minmax(0,.88fr); gap: 0; padding: 0; border: 0; background: #f8f7ee; }
.edit-lead .edit-image { height: 100%; min-height: 15rem; background: #efeee5; }
.edit-lead .edit-image img { position: absolute; inset: 0; height: 100%; }
.edit-lead .edit-copy { display: block; padding: clamp(1rem,2vw,2rem); }
.edit-lead h3 { margin: .5rem 0 .2rem; font-size: clamp(1.65rem,2.75vw,3.6rem); line-height: 1; }
.edit-lead .add-style { margin-top: 1.25rem; }
.edit-lead:only-child { grid-column: 1/-1; grid-template-columns: minmax(0,1fr) minmax(0,1.3fr); }

.home-sample { padding-block: var(--home-space); background: #26382d; color: #f6f4e9; }
.sample-layout { display: grid; grid-template-columns: minmax(0,.83fr) minmax(0,1.17fr); grid-template-areas: "title photo" "details photo"; column-gap: clamp(2rem,6vw,6.8rem); row-gap: 1.3rem; }
.sample-heading { grid-area: title; align-self: end; }
.sample-ref { color: #dfc3a8; }
.sample-ref span { margin-inline: .35rem; }
.sample-heading .home-title { margin-top: .8rem; font-size: clamp(2.55rem,4.8vw,5.5rem); max-width: 12ch; }
.sample-copy { grid-area: details; align-self: start; }
.sample-description { max-width: 33rem; color: #e1e5d9; line-height: 1.55; }
.sample-specs { margin: 1.15rem 0; }
.sample-specs>div { display: grid; grid-template-columns: minmax(6.5rem,.75fr) minmax(0,1.25fr); gap: .7rem; padding: .55rem 0; border-top: 1px solid #5b6c5e; font-size: .88rem; }
.sample-specs dt { color: #c7d1c4; }
.sample-specs dd { font-weight: 550; }
.home-sample .sample-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem; }
.sample-actions .home-button { background: #f1eddd; color: #202c24; }
.sample-actions .home-button:hover { background: #fffef4; }
.home-sample .sample-actions .add-style { margin: 0; padding: .45rem 0; border: 0; border-radius: 0; background: transparent; color: #f1eddd; min-height: 2.7rem; }
.sample-gallery { grid-area: photo; min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; align-self: center; align-items: start; gap: .6rem; }
.sample-frame { position: relative; margin: 0; background: #eeede4; }
.sample-frame>img { display: block; width: 100%; height: clamp(17rem,30vw,28rem); object-fit: contain; }
.sample-frame figcaption { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .9rem; padding: .65rem 1rem; border-top: 1px solid #ced1c6; color: #28372d; font-size: .81rem; }
.sample-views { display: grid; gap: .5rem; }
.sample-views a { display: block; width: clamp(3rem,5.4vw,5.4rem); padding: 2px; border: 1px solid #647368; }
.sample-views a[aria-current],.sample-views a:hover { border-color: #ffc3a3; outline: 1px solid #ffc3a3; }
.sample-views img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.home-sample .home-link:hover { color: #ffc3a3; }

.home-journal { display: grid; grid-template-columns: minmax(0,.83fr) minmax(0,1.17fr); align-items: stretch; gap: clamp(1.5rem,4.5vw,5rem); padding-block: var(--home-space); }
.journal-cover { position: relative; isolation: isolate; display: flex; align-items: end; min-height: 18rem; padding: clamp(1.2rem,2.7vw,3rem); color: #fffdf2; background: #394239; }
.journal-cover img,.journal-cover::after { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.journal-cover::after { content: ""; background: linear-gradient(0deg,#18231de3, #242f2360 64%,#26332912); }
.journal-cover .home-link { margin-top: .6rem; }
.journal-cover .home-link:hover { color: #ffd4b5; }
.journal-entries { align-self: center; }
.journal-entry { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: clamp(1rem,1.55vw,1.65rem) 0; border-top: 1px solid var(--home-line); }
.journal-entry:last-child { border-bottom: 1px solid var(--home-line); }
.journal-entry small { color: #864129; font-size: .76rem; font-weight: 650; }
.journal-entry h3 { margin: .25rem 0; font-size: clamp(1.22rem,1.95vw,2.05rem); line-height: 1.1; letter-spacing: -.045em; font-weight: 570; }
.journal-entry p { max-width: 52ch; color: var(--home-olive); font-size: .9rem; }
.journal-entry .home-arrow { color: #566852; }
.journal-entry:hover .home-arrow { background: var(--home-ink); color: #fffdf0; }

.home-desk { background: #ebc0a9; padding-block: var(--home-space); }
.desk-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1fr); gap: clamp(1.25rem,2.8vw,3.2rem); }
.desk-intro .home-title { max-width: 8ch; }
.desk-intro p,.desk-codes p { max-width: 33ch; margin: .9rem 0 .55rem; color: #4b4133; }
.desk-email { display: block; width: fit-content; font-size: .86rem; text-decoration: underline; text-underline-offset: .22em; }
.home-desk :is(.desk-quote,.desk-codes) { min-width: 0; margin: 0; border: 0; border-left: 1px solid #ae8d74; padding: .3rem 0 .4rem clamp(1.25rem,2.8vw,3.2rem); }
.home-desk h3 { margin: 0; font-size: clamp(1.24rem,1.75vw,1.8rem); letter-spacing: -.045em; }
.desk-style { display: flex; align-items: center; gap: .75rem; margin-top: .95rem; }
.desk-style img { width: 3.6rem; height: 3.6rem; object-fit: cover; }
.desk-style small,.desk-style strong { display: block; }
.home-desk .brief fieldset { border: 0; padding: 0; margin: .8rem 0 .85rem; }
.home-desk .brief legend { color: #4b4133; font: 600 .76rem/1.5 "DM Sans",sans-serif; text-transform: none; letter-spacing: 0; }
.home-desk .brief label { display: inline-flex; align-items: center; min-height: 2.15rem; gap: .3rem; margin: 0 .55rem 0 0; font-size: .88rem; }
.home-desk .brief input { accent-color: var(--home-ink); }
.desk-codes .quick-form { margin: 1.15rem 0 .4rem; }
.desk-codes .quick-form input { height: 2.75rem; background: #fff7ed; border: 1px solid #a98770; border-radius: 3px 0 0 3px; }
.desk-codes .quick-form .button { min-height: 2.75rem; padding-inline: .9rem; border: 0; border-radius: 0 3px 3px 0; background: var(--home-ink); color: #fffef3; }
body:has(.showroom-home) .trade-footer { background: #1d2a22; }
body:has(.showroom-home) .trade-footer .footer-grid { width: min(90%,98.75rem); max-width: none; padding-inline: 0; }
@media (max-width: 980px) {
  .edit-copy { display: block; }
  .edit-style:not(.edit-lead) .add-style { margin-top: .45rem; }
  .desk-layout { grid-template-columns: 1fr 1fr; }
  .desk-intro { grid-column: 1/-1; }
  .desk-intro .home-title { max-width: none; }
  .desk-quote { grid-column: 1; }
  .home-desk .desk-quote { padding-left: 0; border-left: 0; }
}
@media (max-width: 760px) {
  .home-width { width: 90%; }
  .home-title { font-size: clamp(2.5rem,8vw,3.6rem); }
  .home-link { font-size: .8rem; min-height: 2.75rem; }
  .home-heading { align-items: center; }
  .home-heading .home-link { flex: none; gap: .3em; }
  .has-motion .showroom-home .studio-scenes { --stage-height: clamp(32.5rem,79svh,39rem); --design-travel: 5.5rem; }
  .showroom-home .home-intro { grid-template-columns: 1fr; }
  .home-intro>img { max-height: 15rem; }
  .family-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .family-tile { min-height: clamp(10rem,40vw,16rem); }
  .family-label { padding: .8rem; }
  .family-label small { font-size: .67rem; }
  .family-label h3 { font-size: clamp(1.24rem,4.8vw,1.7rem); }
  .family-label .home-arrow { width: 1.65rem; height: 1.65rem; font-size: .85rem; }
  .home-collections .garment-finder { display: flex; flex-direction: column; align-items: stretch; gap: .75rem; }
  .garment-finder #finder-title { align-self: start; }
  .home-collections .finder-fields { grid-template-columns: repeat(3,minmax(0,1fr)); gap: .45rem; }
  .home-collections .finder-fields label:first-child { grid-column: auto; }
  .home-collections .finder-fields select { padding-left: .4rem; font-size: .9rem; }
  .edit-styles { grid-template-columns: 1fr; row-gap: 0; }
  .edit-style.edit-lead { grid-column: auto; grid-row: auto; min-height: 14rem; margin-bottom: 1rem; }
  .edit-lead .edit-image { min-height: 14rem; }
  .edit-style:not(.edit-lead) { grid-column: auto; grid-template-columns: minmax(4.8rem,18%) minmax(0,1fr); }
  .edit-style:not(.edit-lead) .edit-copy { display: grid; }
  .edit-style:not(.edit-lead) .add-style { margin-top: 0; }
  .sample-layout { grid-template-columns: 1fr; grid-template-areas: "title" "photo" "details"; row-gap: 1.25rem; }
  .sample-heading .home-title { max-width: none; }
  .sample-frame>img { height: clamp(14rem,65vw,22rem); }
  .sample-views a { width: 2.85rem; }
  .sample-specs { margin-block: .9rem; }
  .home-journal { grid-template-columns: 1fr; gap: 1.15rem; }
  .journal-cover { min-height: 12rem; }
  .journal-entry .home-arrow { width: 2rem; height: 2rem; }
}
@media (max-width: 540px) {
  .home-heading { flex-wrap: wrap; gap: .25rem .65rem; }
  .home-heading .home-link { min-height: 2rem; }
  .home-collections .finder-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-collections .finder-fields label:first-child { grid-column: 1/-1; }
  .home-collections .home-button { width: 100%; }
  .edit-style:not(.edit-lead) .edit-copy { display: block; }
  .edit-style:not(.edit-lead) .add-style { margin-top: .38rem; padding: .26rem .65rem; }
  .edit-lead .edit-copy { padding: .85rem; }
  .edit-lead h3 { font-size: clamp(1.7rem,7vw,2.35rem); }
  .edit-lead .add-style { margin-top: .75rem; }
  .desk-layout { grid-template-columns: 1fr; gap: 1.3rem; }
  .desk-intro,.desk-quote { grid-column: auto; }
  .home-desk :is(.desk-quote,.desk-codes) { padding: 1.15rem 0 0; border: 0; border-top: 1px solid #ae8d74; }
  .desk-codes .quick-form { max-width: 24rem; }
  body:has(.showroom-home) .support-dock { width: 42px; height: 42px; justify-content: center; bottom: 1rem; padding: 0; border-radius: 50%; }
  body:has(.showroom-home) .support-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

.sample-quote { border-top: 1px solid #a5aca1; margin-top: 1.4rem; padding-top: 1.05rem; }
.sample-quote fieldset { padding: 0; margin: 0 0 .8rem; border: 0; }
.sample-quote legend { font-weight: 650; margin-bottom: .55rem; }
.sample-quote label { margin-right: .9rem; }
.sample-quote .home-link { border: 0; background: transparent; padding: 0; cursor: pointer; }

/* A dedicated media row keeps both purchasing links clickable at narrow widths
   and accommodates larger text without drawing the turntable underneath it. */
@media (max-width: 760px) {
  .has-motion .showroom-home .studio-scenes { --stage-height: clamp(30.5rem,68svh,36rem); }
  .has-motion .showroom-home .stage {
    display: grid; grid-template-rows: auto minmax(0,1fr) auto;
    padding: 1rem var(--gutter) .8rem; gap: .55rem; box-sizing: border-box;
  }
  .has-motion .showroom-home :is(.opening,.custom) {
    position: relative; inset: auto; grid-area: 1 / 1; width: 100%; transform: none; align-self: start;
  }
  .has-motion .showroom-home .object {
    position: relative; grid-area: 2 / 1; inset: auto; width: auto; height: 100%;
    max-width: 75vw; max-height: 17rem; justify-self: center; align-self: center; transform: none;
  }
  .has-motion .showroom-home .stage-tools { position: static; grid-area: 3 / 1; }
  .has-motion .showroom-home .garment-label { right: -9%; bottom: 0; }
}
