.category-hub{max-width:1560px;margin:56px auto 100px;padding:0 clamp(20px,6vw,96px);color:#34392f;scroll-margin-top:32px}
.category-hub *{box-sizing:border-box}
.category-hub-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:36px;margin-bottom:38px}
.category-hub-heading .eyebrow{font-size:10px;letter-spacing:.22em;margin:0 0 16px}
.category-hub-heading h2{font-size:clamp(30px,3.6vw,52px);line-height:1.12;letter-spacing:-.035em;font-weight:400;margin:0}
.category-hub-heading>p{max-width:32ch;font-size:14px;line-height:1.7;color:#777a6e;margin:0 0 4px}
.category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:52px 30px}
.category-card{display:block;min-width:0;color:inherit;text-decoration:none!important;position:relative;border-bottom:1px solid #d9dacd;padding-bottom:20px}
.category-card-image{position:relative;overflow:hidden;aspect-ratio:1/1;background:#f8f5ed;border:1px solid #e5e3d9;border-radius:3px}
.category-card-image img{display:block;width:100%;height:100%;object-fit:contain;transition:transform .7s cubic-bezier(.2,.7,.2,1)}
a.category-card:hover .category-card-image img{transform:scale(1.025)}
.category-card-image--flat{background:#f8f5ed url('/atelier/product-pages-v1/flat/tabletop.svg') center/cover no-repeat}
.category-card-image--flat img{object-fit:cover;transform:rotate(var(--flat-angle,0deg)) scale(var(--flat-size,.94));filter:drop-shadow(2px 5px 4px #53452f15)}
.category-card[data-category=tshirts]{--flat-angle:-4deg;--flat-size:.94}
.category-card[data-category=pullovers]{--flat-angle:3deg;--flat-size:.82}
.category-card[data-category=bodysuits]{--flat-angle:2deg;--flat-size:.94}
.category-card[data-category=hoodies]{--flat-angle:-3deg;--flat-size:.82}
a.category-card:hover .category-card-image--flat img{transform:rotate(var(--flat-angle,0deg)) scale(calc(var(--flat-size,.94) * 1.025))}
.category-card-status{position:absolute;top:20px;left:20px;background:#f8f5edee;padding:6px 10px;border:1px solid #dfdfd2;border-radius:20px;color:#686f5d;font-size:10px;letter-spacing:.045em}
.category-card-copy{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-top:23px}
.category-card-copy h3{font-size:clamp(24px,2.8vw,36px);font-weight:400;line-height:1.2;letter-spacing:-.025em;margin:0 0 7px}
.category-card-copy p{font-size:13px;line-height:1.55;color:#75796d;margin:0}
.category-card-action{display:block;margin-top:21px;font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:#656f56}
.category-card--soon .category-card-action{color:#898d80}
.category-card:focus-visible,.collection-navigation a:focus-visible{outline:2px solid #647453;outline-offset:6px}
.collection-navigation{display:flex;gap:24px;justify-content:space-between;align-items:center;padding:26px clamp(24px,6vw,96px) 8px;color:#777a6e;font-size:12px}
.collection-navigation a{text-decoration:none;color:inherit}
.collection-navigation>div{display:flex;gap:28px}
.collection-navigation a[aria-current=page]{color:#34392f;border-bottom:1px solid #647453;padding-bottom:5px}
.collection-navigation + .atelier--collection{padding-top:42px}
.collection-navigation + .atelier--collection .atelier-copy:before{display:none}
.collection-next{padding:20px 24px 64px;text-align:center;color:#68715c;font-size:13px}
.collection-next a{color:inherit;text-underline-offset:6px}
@media(max-width:700px){.category-hub{margin-top:40px;margin-bottom:64px}.category-hub-heading{display:block;margin-bottom:26px}.category-hub-heading>p{margin-top:18px;max-width:36ch;font-size:13px}.category-grid{gap:36px 16px}.category-card-copy{padding-top:18px;gap:10px}.category-card-copy h3{font-size:25px}.category-card-status{top:12px;left:12px;font-size:9px}.collection-navigation{align-items:flex-start;flex-direction:column;gap:22px}.collection-navigation>div{gap:24px;flex-wrap:wrap}.collection-navigation + .atelier--collection{padding-top:28px}}
@media(max-width:560px){.category-grid{grid-template-columns:1fr}.category-card-copy h3{font-size:30px}.category-card-action{margin-top:16px}}
@media(prefers-reduced-motion:reduce){.category-card-image img,.category-card-symbol{transition:none}a.category-card:hover .category-card-image img{transform:none}}
@media(prefers-reduced-motion:reduce){a.category-card:hover .category-card-image--flat img{transform:rotate(var(--flat-angle,0deg)) scale(var(--flat-size,.94))}}

/* One continuous-height rail across each pair of collection windows. */
.category-grid{column-gap:0;row-gap:52px}
.category-card:nth-child(odd){padding-right:15px}
.category-card:nth-child(even){padding-left:15px}
.category-card-image--hanging{overflow:hidden;isolation:isolate;border-radius:4px;background:#f8f5ed;aspect-ratio:1}
/* Keep each illustrated room visible through the full height of its box. */
.category-card-image--hanging::before{content:"";position:absolute;inset:0;z-index:0;background:var(--category-scene) var(--category-scene-position,center) top/auto 106% no-repeat;opacity:.32;filter:grayscale(1) brightness(1.035);mix-blend-mode:multiply;pointer-events:none}
/* Match the main rail's centre hook: its visible crest is 5px above the bar.
   Each square cutout has a different transparent top margin (10/17/11/29px
   in 1254px). At 78% image size: top = 12% - 78% * hookTop - 5px.
   Both photographic layers must use exactly the same placement. */
.category-card[data-category=tshirts]{--category-scene:url('/atelier/section-rooms-v2/drawing-corner.webp');--category-scene-position:right;--hanger-top:calc(11.377990% - 5px)}
.category-card[data-category=pullovers]{--category-scene:url('/atelier/section-rooms-v2/reading-corner.webp');--category-scene-position:left;--hanger-top:calc(10.942584% - 5px)}
.category-card[data-category=bodysuits]{--category-scene:url('/atelier/bodysuit-rail-v1/nursery-corner.webp');--category-scene-position:right;--hanger-top:calc(11.315789% - 5px)}
.category-card[data-category=hoodies]{--category-scene:url('/atelier/section-rooms-v2/atelier.webp');--category-scene-position:left;--hanger-top:calc(10.196172% - 5px)}
.category-card-image--hanging img{position:absolute;top:var(--hanger-top);left:11%;width:78%;height:78%;object-fit:contain;z-index:1;transform:none;transition:none;filter:drop-shadow(0 8px 5px #50432a16)}
a.category-card:hover .category-card-image--hanging img{transform:none}
/* Same 50–60% x / 0–20% y front-hook slice as rail.js. The returning tip
   stays behind the wood; only the descending right-hand metal sits in front. */
.category-card-image--hanging .category-hook-front{z-index:3;clip-path:inset(0 40% 80% 50%);filter:none;pointer-events:none}
.category-wooden-bar{position:absolute;top:12%;left:-1px;right:-1px;height:clamp(9px,2.1%,12px);z-index:2;background:url('/atelier/category-hub-v1/wooden-bar-sketch.svg') center/100% 100% no-repeat;pointer-events:none}
.category-card:nth-child(odd) .category-wooden-bar{right:-1px}
.category-card-status{z-index:4;top:auto;bottom:16px;left:16px}
@media(max-width:560px){.category-grid{row-gap:36px}.category-card:nth-child(n){padding-left:0;padding-right:0}.category-card:nth-child(odd) .category-wooden-bar{right:-1px}}

/* Collection copy shares the header's responsive container and left edge. */
.collection-navigation,
.collection-navigation + .atelier--collection .atelier-intro{
 width:92%;max-width:var(--site-container);margin-left:auto;margin-right:auto;
 padding-left:0;padding-right:0;box-sizing:border-box;
}
.collection-navigation + .atelier--collection .atelier-intro{text-align:left}
.collection-navigation + .atelier--collection .atelier-intro p{margin-left:0;margin-right:auto}
@media(max-width:700px){
 .collection-navigation,.collection-navigation + .atelier--collection .atelier-intro{width:88%}
}

/* Pencil studies become photographs without moving the hanger or rail. */
.category-card .category-card-image--hanging{border-color:#b9b6a7}
.category-card{border-bottom-color:#babdaf}
.category-sketch-filter{position:absolute;pointer-events:none;overflow:hidden}
.category-card-image--hanging img{transition:opacity 900ms cubic-bezier(.22,.61,.36,1);opacity:0;will-change:auto}
.category-card-image--hanging img.category-pencil-layer{opacity:1;filter:url(#category-pencil);pointer-events:none}
.category-card:is(:hover,:focus-visible,:focus-within) .category-card-image--hanging img{opacity:1}
.category-card:is(:hover,:focus-visible,:focus-within) .category-card-image--hanging img.category-pencil-layer{opacity:0}
@media(hover:none){.category-card-image--hanging img{opacity:1}.category-card-image--hanging img.category-pencil-layer{display:none}}
@media(prefers-reduced-motion:reduce){.category-card-image--hanging img{transition:none}}

/* A small atelier hanger in a hand-drawn seal, replacing the generic arrow. */
.category-card-symbol{display:block;width:48px;height:48px;flex:0 0 48px;color:#626f56;transition:transform .25s ease}
.category-card-symbol svg{display:block;width:100%;height:100%}
.category-symbol-outline{stroke:#c8cdbb;stroke-width:.9;fill:#f4f3e9;transition:fill .25s,stroke .25s}
.category-symbol-hanger{stroke:currentColor;stroke-width:1.35}
a.category-card:hover .category-card-symbol,a.category-card:focus-visible .category-card-symbol{transform:rotate(-5deg)}
a.category-card:hover .category-symbol-outline,a.category-card:focus-visible .category-symbol-outline{fill:#e9edde;stroke:#9daa8f}
@media(prefers-reduced-motion:reduce){.category-card-symbol,.category-symbol-outline{transition:none}a.category-card:hover .category-card-symbol,a.category-card:focus-visible .category-card-symbol{transform:none}}

/* Defined outer contours for the three lighter garment studies. */
.category-card:is([data-category="tshirts"],[data-category="onesies"],[data-category="shortsleeve-bodysuits"]) .category-card-image--hanging img.category-pencil-layer{filter:url(#category-pencil-defined)}
