/* Photographs and paper edges on the studio home page */
.atelier-home {
    --home-ink: #243333;
    --home-gold: #efd19a;
    --home-pad: clamp(46px, 6.4vw, 94px);
}
.atelier-home h2 {font-size:clamp(36px,4vw,64px);line-height:1.02}
.atelier-home .atelier-link {display:inline-flex;gap:12px;align-items:baseline}
.atelier-home .atelier-link span {margin:0}
.home-hero {position:relative;isolation:isolate;background:var(--home-ink);color:#fbf3e3}
.home-hero-art {position:absolute;inset:0 0 0 39%;z-index:-1;overflow:hidden}
.home-hero-art img {display:block;width:100%;height:100%;object-fit:cover;object-position:52% 48%}
.home-hero-art::after {content:"";position:absolute;inset:0;background:linear-gradient(90deg,var(--home-ink),rgba(36,51,51,.68) 8%,transparent 28%)}
.home-hero-inner {display:flex;align-items:center;min-height:clamp(500px,39vw,640px);padding-block:clamp(60px,6vw,100px) clamp(90px,8vw,140px)}
.home-hero-copy {width:43%;max-width:580px}
.home-hero-copy .atelier-byline {color:var(--home-gold)}
.home-hero-copy .atelier-byline::before {background:var(--home-gold)}
.home-hero h1 {font-size:clamp(64px,7vw,106px);line-height:.91;letter-spacing:-.05em;margin:22px 0 24px}
.home-hero-copy>p:not(.atelier-byline) {font-size:clamp(16px,1.27vw,20px);line-height:1.55;max-width:39ch;color:#eee7d9}
.home-hero .atelier-cta {margin-top:22px;background:#efddba;color:#2d302a;border:1px solid transparent}
.home-hero .atelier-cta:hover {background:#fff1d6}
.home-rip {--edge-color:var(--paper);--edge-position:50%;--edge-width:max(840px,100%);position:absolute;z-index:2;bottom:-1px;inset-inline:0;height:clamp(43px,5.25vw,100px);pointer-events:none;overflow:hidden}
.home-rip::before,.home-rip::after {content:"";position:absolute;inset:0}
.home-rip::before {background:var(--atelier-tear) var(--edge-position) bottom / var(--edge-width) 100% no-repeat;opacity:.8}
.home-rip::after {background:var(--edge-color);mask:var(--atelier-tear) var(--edge-position) bottom / var(--edge-width) 100% no-repeat;transform:translateY(3px)}
.home-rip {background:linear-gradient(var(--edge-color),var(--edge-color)) center bottom / 100% 6px no-repeat}
.home-rip-top {top:-1px;bottom:auto;transform:rotate(180deg);--edge-position:26%}
.home-rip-reverse {transform:scaleX(-1);--edge-position:76%;height:clamp(38px,4.3vw,82px)}
.home-rip-fine {height:clamp(18px,2.5vw,42px);--edge-width:max(790px,116%)}
.home-rip-fine::before {opacity:.38}
.home-pair {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:clamp(32px,6.6vw,108px)}
.home-prose {max-width:57ch}
.home-prose p {font-size:clamp(16px,1.21vw,19px);line-height:1.72;color:var(--sub);margin-top:15px}
.home-prose .atelier-link {margin-top:20px}
.home-author {padding-block:clamp(30px,4vw,62px) var(--home-pad)}
.home-author-picture {position:relative;margin-right:clamp(6px,1.8vw,26px)}
.home-author-picture>img:first-child {display:block;width:100%;height:auto;box-shadow:10px 10px 0 #e8dfcc}
.home-author-picture>.atelier-ornament {position:absolute;z-index:1;right:-20px;bottom:-18px;width:clamp(48px,5vw,72px);height:auto;margin:0;filter:drop-shadow(0 2px 2px #47321e26)}
.home-fresco {position:relative;isolation:isolate;background-color:var(--home-ink);background-image:linear-gradient(90deg,rgba(25,36,35,.72),rgba(26,36,35,.27) 55%,rgba(26,36,35,.08)),var(--home-fresco);background-size:cover;background-position:center 42%;color:#fff8e9}
.home-fresco>.atelier-shell {padding-block:clamp(95px,10vw,160px);display:flex;flex-direction:column;align-items:flex-start;gap:18px}
.home-fresco h2 {font-size:clamp(48px,5.3vw,84px);max-width:16ch}
.home-fresco .atelier-link {color:inherit;border-color:#dfbd84}
.home-process {padding-block:clamp(38px,5.5vw,80px) var(--home-pad)}
.home-process-pictures {position:relative;min-width:0;padding:0 0 clamp(18px,3vw,45px) 9%}
.home-process-pictures>img {width:100%;height:clamp(260px,28vw,430px);display:block;object-fit:cover;object-position:50% 44%}
.home-process-pictures figure {position:absolute;width:39%;left:0;bottom:0;border:clamp(4px,.55vw,8px) solid var(--paper)}
.home-process-pictures figure img {display:block;width:100%;height:auto}
.home-section-heading {display:flex;align-items:baseline;justify-content:space-between;gap:18px;margin-bottom:clamp(20px,2.3vw,36px)}
.home-section-heading .atelier-link {flex-shrink:0}
.home-works {position:relative;background:#eee7d9;padding-block:clamp(56px,6vw,92px)}
.home-works .woocommerce ul.products {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(18px,2.2vw,34px)}
.home-works .woocommerce ul.products::before,.home-works .woocommerce ul.products::after {display:none}
.home-works .woocommerce ul.products li.product.atelier-entry {display:block;padding:0;border:0;width:auto;float:none;margin:0}
.home-works .atelier-entry-photo {height:clamp(265px,25.5vw,390px);padding:clamp(12px,1.25vw,20px);background:var(--paper)}
.home-works .woocommerce ul.products li.product.atelier-entry .atelier-entry-photo img {max-height:100%;width:auto;height:auto;max-width:100%;object-fit:contain}
.home-works .atelier-entry-details {margin-top:16px}
.home-works .woocommerce ul.products li.product.atelier-entry .woocommerce-loop-product__title {font-size:clamp(23px,2vw,31px);margin:7px 0}
.home-works .woocommerce ul.products li.product.atelier-entry .price {font-size:14px;margin:0}
.home-works .price .amount {white-space:nowrap}
.home-galleries {padding-block:var(--home-pad)}
.home-galleries .home-section-heading {align-items:center}
.home-galleries .atelier-ornament {margin:0;width:44px;height:auto}
.home-gallery-pair {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(22px,3vw,48px);align-items:start}
.home-gallery-link {display:block;color:var(--ink);text-decoration:none}
.home-gallery-link>div {height:clamp(216px,30vw,450px);background:#e8dfcf;padding:clamp(12px,1.8vw,28px);display:flex;align-items:center;justify-content:center}
.home-gallery-link:nth-child(2)>div {background:#dedfd6}
.home-gallery-link img {display:block;width:100%;height:100%;object-fit:contain}
.home-gallery-link h3 {display:flex;align-items:center;justify-content:space-between;font-size:clamp(27px,2.4vw,37px);padding:14px 0;border-bottom:1px solid var(--line)}
.home-gallery-link h3 span {font:400 21px/1 var(--body);color:var(--clay)}
.home-room {position:relative;background:#e8dfcd}
.home-room>.home-pair {padding-block:clamp(48px,6vw,90px) clamp(82px,8vw,126px)}
.home-room-picture img {display:block;width:100%;height:auto}
.home-room>.home-rip:not(.home-rip-top) {--edge-color:var(--blue);--edge-position:29%}
@media(min-width:960px) {
    .home-hero-inner {min-height:clamp(600px,39vw,640px)}
    .home-fresco>.atelier-shell {min-height:600px;justify-content:center}
    .home-room>.home-pair {min-height:600px}
}
@media(min-width:621px) and (max-width:959px) {
    .home-works .woocommerce ul.products {grid-template-columns:repeat(2,minmax(0,1fr))}
    .home-works .atelier-entry-photo {height:clamp(270px,39vw,370px)}
}
@media(min-width:960px) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
    .home-fresco {background-attachment:fixed}
}
@media(prefers-reduced-motion:no-preference) {
    .home-hero-copy {animation:atelier-arrive .55s ease-out both}
}
@media(max-width:720px) {
    .home-hero {display:flex;flex-direction:column}
    .home-hero-inner {order:-1;min-height:0;padding-block:32px 24px}
    .home-hero-copy {width:100%;max-width:42ch}
    .home-hero h1 {font-size:clamp(54px,10vw,72px);margin:13px 0 14px}
    .home-hero h1 br {display:none}
    .home-hero-art {position:relative;inset:auto;height:clamp(235px,64vw,320px)}
    .home-hero-art img {object-position:50% 48%}
    .home-hero-art::after {background:linear-gradient(180deg,rgba(36,51,51,.25),transparent 18%)}
    .home-hero .atelier-cta {margin-top:17px}
    .home-rip {--edge-width:790px;--edge-position:35%}
    .home-rip-top {--edge-position:75%}
    .home-pair {grid-template-columns:minmax(0,1fr);gap:25px}
    .home-author-picture {margin:0 12px 10px 0}
    .home-author-picture>.atelier-ornament {right:-12px;bottom:-14px}
    .home-prose .atelier-link {margin-top:15px}
    .home-fresco>.atelier-shell {padding-block:85px}
    .home-process-pictures>img {height:clamp(215px,53vw,310px)}
    .home-room>.home-pair {gap:22px}
    .home-section-heading {align-items:start;flex-wrap:wrap;gap:10px}
    .home-gallery-pair {gap:16px}
    .home-gallery-link>div {padding:10px}
    .home-gallery-link h3 {padding:9px 0}
}
@media(max-width:620px) {
    .home-works .woocommerce ul.products {grid-template-columns:minmax(0,1fr);gap:14px}
    .home-works .woocommerce ul.products li.product.atelier-entry {display:grid;grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr);gap:16px;align-items:center;padding-bottom:14px;border-bottom:1px solid var(--line)}
    .home-works .atelier-entry-photo {height:clamp(135px,33vw,177px);padding:8px}
    .home-works .atelier-entry-details {margin-top:0}
    .home-works .woocommerce ul.products li.product.atelier-entry .woocommerce-loop-product__title {font-size:clamp(21px,5.1vw,27px)}
    .home-works .zi-stock {font-size:11px}
    .home-works .woocommerce ul.products li.product.atelier-entry .price {font-size:13px}
}
@media(max-width:470px) {
    .home-gallery-pair {grid-template-columns:minmax(0,1fr);gap:22px}
    .home-gallery-link>div {height:clamp(224px,71vw,290px)}
}
