/* Frame supplied logo artwork without changing its proportions or lettering. */
.supplied-logo{position:relative;display:block;overflow:hidden;flex:none;width:100%;line-height:0;isolation:isolate}
.supplied-logo>img{position:absolute;display:block;max-width:none!important;height:auto!important;object-fit:initial!important;transform:none!important}
.wordmark:has(.logo-thebuy){width:174px;min-width:0;font-size:0;letter-spacing:normal}
.logo-thebuy{width:100%}
.site-footer .wordmark:has(.logo-thebuy){width:224px;min-width:0}
.site-footer .logo-thebuy{filter:invert(1);mix-blend-mode:screen}
.brand-name:has(.supplied-logo){line-height:1;max-width:100%}
.brand-name .supplied-logo{width:clamp(180px,23vw,300px);max-width:100%;mix-blend-mode:multiply}
.brand-detail-title .brand-name .supplied-logo{width:clamp(240px,32vw,420px)}
.brand-caption .brand-name .supplied-logo{width:clamp(160px,20vw,235px);margin-block:16px 8px}
.brand-name.rania{font-family:Inter,Arial,sans-serif;font-weight:500;letter-spacing:.065em}

/* NOVS keeps its original proportions at 75% of the shared logo scale. */
.brand-name .supplied-logo.logo-novs{width:clamp(135px,17.25vw,225px)}
.brand-caption .brand-name .supplied-logo.logo-novs{width:clamp(120px,15vw,176.25px)}
.detail-brand-mark.brand-name .supplied-logo.logo-novs{width:clamp(120px,13.5vw,183.75px)}
@media(max-width:760px){
 .brand-name .supplied-logo.logo-novs{width:180px}
 .brand-caption .brand-name .supplied-logo.logo-novs{width:135px}
}
@media(max-width:699px){
 .detail-brand-mark.brand-name .supplied-logo.logo-novs{width:116.25px}
}

/* Product imagery lives inside the existing brand stories, not a second menu. */
.brand-previews{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:16px;width:100%;max-width:475px;margin-top:32px}
.brand-previews:has(>.brand-preview:nth-child(3)){grid-template-columns:repeat(3,minmax(0,1fr))}
.brand-preview{display:block;min-width:0;padding:0;border:0;background:#fff;text-align:left;color:#111;cursor:pointer}
/* A single portrait frame aligns TONER, SERUM and CREAM without cutting artwork. */
.preview-picture{display:block;overflow:hidden;background:#fff;aspect-ratio:4/5}
.preview-picture>img{display:block;width:100%;height:100%;padding:0;object-fit:contain}
.preview-label{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:12px 0;border-bottom:1px solid #ddd;font:500 10px/1.5 Inter,Arial,sans-serif;letter-spacing:.04em}
.preview-label .arrow{width:15px;height:15px;flex:none}
.brand-preview:focus-visible{outline:2px solid #111;outline-offset:5px}

.brand-collection{padding-block:25px 65px}
.rania-tools-section{padding-block:25px 72px;scroll-margin-top:110px}
.rania-tools-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px}
.rania-tool-card{margin:0;min-width:0}
.rania-tool-card button.gallery-item{aspect-ratio:4/5;background:#fff}
.rania-tool-card button.gallery-item>img{width:100%;height:100%;aspect-ratio:auto;object-fit:contain;background:#fff}
.rania-tool-card figcaption{padding-top:20px}
.rania-tool-card h3{font-size:24px;font-weight:500;margin:0 0 8px}
.rania-tool-card figcaption p{font-size:14px;line-height:1.7;color:#666;margin:0}
@media(max-width:640px){.rania-tools-grid{grid-template-columns:1fr;gap:36px}.rania-tools-section{padding-bottom:48px}.rania-tool-card h3{font-size:21px}}
.collection-heading{display:grid;grid-template-columns:1fr auto;align-items:end;gap:18px 30px;padding-bottom:32px;border-top:1px solid #111;padding-top:28px}
.collection-heading .eyebrow{grid-column:1/-1;margin:0}
.collection-heading h2{font:500 clamp(32px,4vw,52px)/1.12 Inter,Arial,sans-serif;letter-spacing:-.045em}
.collection-heading>p:last-child{font-size:12px;line-height:1.7;color:#777;margin:0}
.brand-collection .brand-gallery{gap:36px 24px;padding-bottom:0}
.collection-card{margin:0;min-width:0}
.collection-card button.gallery-item{aspect-ratio:4/5;background:#fff}
.collection-card button.gallery-item>img{width:100%;height:100%;aspect-ratio:auto;padding:0;object-fit:contain;background:#fff}
.collection-card figcaption{display:flex;gap:16px;padding-top:14px;font-size:12px;line-height:1.7;color:#666}
.collection-card figcaption>span{font:400 11px/1.8 Inter,Arial,sans-serif;color:#999;flex:none}

@media(max-width:760px){
 .wordmark:has(.logo-thebuy){width:155px}
 .site-footer .wordmark:has(.logo-thebuy){width:190px}
 .brand-name .supplied-logo{width:240px}
 .brand-detail-title .brand-name .supplied-logo{width:min(290px,78vw)}
 .brand-caption .brand-name .supplied-logo{width:180px}
 .brand-previews{gap:12px;margin-top:25px}
 .preview-label{font-size:9px}
 .collection-heading{grid-template-columns:1fr;gap:15px;padding-bottom:26px}
 .collection-heading .eyebrow{grid-column:auto}
 .brand-collection{padding-bottom:40px}
 .brand-collection .brand-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 14px}
 .collection-card figcaption{font-size:11px;gap:9px}
 .collection-card button.gallery-item>span:not(.visual-note){width:28px;height:28px;right:8px;bottom:8px}
}
@media(max-width:400px){
 .site-footer .wordmark:has(.logo-thebuy){width:165px}
 .brand-collection .brand-gallery{gap:22px 12px}
 .collection-card figcaption{display:block}
 .collection-card figcaption>span{display:block;margin-bottom:5px}
}
/* Campaign photos and posters retain the complete original, including during motion.
   This deliberately outranks legacy cover/zoom rules; logo frames are separate. */
img.brand-image{object-fit:contain!important;object-position:center!important;transform:none!important}
/* Only the original white cream packshot is 12% smaller. The image box stays
   fixed, so its sibling official logo keeps the same anchor and dimensions. */
img.brand-image[src*="/rania-cream-pdrn-gold-v133.png"],
img.dialog-image[src*="/rania-cream-pdrn-gold-v133.png"],
.dialog-thumbnail>img[src*="/rania-cream-pdrn-gold-v133.png"]{transform:scale(.88)!important;transform-origin:50% 50%}
.dialog-stage:has(>.dialog-image[src*="/rania-cream-pdrn-gold-v133.png"]),
.dialog-thumbnail:has(>img[src*="/rania-cream-pdrn-gold-v133.png"]){background:#fff}
.brand-name .logo-rania{filter:none;mix-blend-mode:multiply}
.brand-ribbon-group .ribbon-logo.logo-rania{mix-blend-mode:multiply}
.brand-ribbon-group .ribbon-logo.logo-rania>img{filter:none}
.brand-name .logo-craft{filter:invert(1) grayscale(1) contrast(1.5);mix-blend-mode:multiply}

/* Uniform brand tiles avoid a very wide first card that cropped portrait campaigns. */
.portfolio-grid .brand-tile.tile-wide{grid-column:auto}
.portfolio-grid .brand-tile figure,
.portfolio-grid.filter-grid.filtered .brand-tile figure{height:auto;aspect-ratio:4/5;background:#fff}
.portfolio-grid .brand-tile[data-category="beauty"] figure,
.portfolio-grid.filter-grid.filtered .brand-tile[data-category="beauty"] figure{aspect-ratio:3/2}
.brand-tile figure>img.brand-image{width:100%;height:100%;padding:0;aspect-ratio:auto;background:#fff}

/* Product galleries use equal portrait cells; wide campaign banners get a full row. */
.brand-collection .gallery-clatone{grid-template-columns:repeat(3,minmax(0,1fr));gap:30px 22px}
.collection-wide{grid-column:1/-1}
.collection-wide button.gallery-item{aspect-ratio:auto;max-width:100%}
.collection-wide button.gallery-item>img{height:auto;aspect-ratio:auto}

/* Single-image heroes and article images follow their original proportions. */
.brand-hero-image,.editorial-image,.company-image,.business-section>figure{background:#fff}
.brand-hero-image>img.brand-image,
.article-hero>img.brand-image,
.editorial-image>img.brand-image,
.reading-section .editorial-image>img.brand-image,
.business-section>figure>img.brand-image,
.company-image>img.brand-image{display:block;width:100%;height:auto;max-height:none;aspect-ratio:auto;padding:0;background:#fff}
.journal-entry figure,.story-card figure{background:#fff}
.journal-entry figure>img.brand-image,.story-card figure>img.brand-image{display:block;width:100%;height:100%;aspect-ratio:auto;padding:0;background:#fff}
/* Reading reveals may fade content in, but never mask the top or bottom of photos. */
.page-flow-ready .reading-visual,.page-flow-ready .reading-visual.is-visible{clip-path:none}

/* The brand-vision campaign is 40% smaller; the official artwork stays intact. */
.reading-section .editorial-image.brand-vision-figure{width:60%;max-width:100%}
.brand-vision-photo{position:relative;container-type:inline-size}
.reading-section .brand-vision-photo>img.brand-image{display:block;width:100%;height:auto;max-height:none;aspect-ratio:auto;padding:0}
.brand-vision-lockup{position:absolute;right:6.7%;top:40%;width:22.6%;color:#fff;text-align:center}
.brand-vision-lockup .supplied-logo{width:100%;filter:grayscale(1) invert(1) brightness(1.5);mix-blend-mode:screen}
.reading-section .brand-vision-lockup .supplied-logo>img{aspect-ratio:auto;max-height:none}
.brand-vision-model{display:block;margin-top:.7cqw;font:300 1.9cqw/1.2 Inter,sans-serif;letter-spacing:.45cqw;padding-left:.45cqw;white-space:nowrap}

/* Desktop brand images keep the caption and index outside the image area. */
.journey-frame{background:#fff}
.journey-frame>.journey-image{position:absolute;inset:0;display:grid;grid-template-rows:minmax(0,1fr) auto;width:100%;height:100%;padding-top:38px;background:#fff;transform:none;transition:opacity .65s ease}
.journey-frame>.journey-image>img{display:block;min-width:0;min-height:0;width:100%;height:100%;max-height:none;aspect-ratio:auto;padding:0;background:#fff}
.journey-frame>.journey-image>figcaption{position:static;inset:auto;margin:0;min-height:50px;padding:12px 0;border-top:1px solid #eee;background:#fff}
.journey-frame>.journey-index{top:5px;left:0;padding:5px 0;font-size:10px}
.journey-inline-visual{display:none}
/* Phones and unfolded Fold screens use each full image in its own story. */
@media(max-width:1100px){
 .journey-layout{display:block}
 .journey-visuals{display:none}
 .journey-story{min-height:0;padding:48px 0;justify-content:flex-start}
 .journey-story:first-child{padding-top:0}
 .journey-story,.journey-story a,.journey-story button{scroll-margin-top:16px}
 .journey-inline-visual{display:block;width:100%;margin:28px 0 0}
 .journey-inline-visual>img.brand-image{display:block;width:100%;height:auto;max-height:none;aspect-ratio:auto;padding:0}
 .journey-inline-visual>figcaption{display:flex;justify-content:space-between;gap:16px;padding:12px 0;font-size:11px;border-bottom:1px solid #ddd}
}
@media(max-width:760px){
 .brand-collection .gallery-clatone{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 14px}
}

/* Small, one-time card entrances; campaign artwork keeps its original framing. */
.motion-ready .card-reveal.will-reveal{opacity:0;transform:translateY(16px);transition:opacity .4s ease var(--card-delay,0ms),transform .4s cubic-bezier(.2,.7,.2,1) var(--card-delay,0ms)}
.motion-ready .card-reveal.will-reveal.is-visible{opacity:1;transform:none}
.motion-ready .card-reveal.will-reveal:focus-within,
.motion-ready .card-reveal.will-reveal.revealed-by-focus{opacity:1;transform:none;transition:none}
.brand-preview .preview-label{transition:background-color .15s,border-color .15s}
.brand-preview .preview-label .arrow,
.collection-card .gallery-item>span:not(.visual-note) .arrow{transition:transform .2s ease}
.collection-card .gallery-item>span:not(.visual-note){transition:background-color .15s,color .15s}
@media(hover:hover){
 .brand-preview:hover .preview-label .arrow,
 .collection-card .gallery-item:hover>span:not(.visual-note) .arrow{transform:translate(2px,-2px)}
}
.brand-preview:focus-visible .preview-label .arrow,
.collection-card .gallery-item:focus-visible>span:not(.visual-note) .arrow{transform:translate(2px,-2px)}
.brand-preview:active .preview-label{background:#f1f0ed;border-color:#111}
.collection-card .gallery-item:active>span:not(.visual-note){background:#111;color:#fff}
@media(prefers-reduced-motion:reduce){
 .motion-ready .card-reveal.will-reveal{opacity:1;transform:none;transition:none}
 .brand-preview .preview-label,
 .brand-preview .preview-label .arrow,
 .collection-card .gallery-item>span:not(.visual-note),
 .collection-card .gallery-item>span:not(.visual-note) .arrow{transition:none;transform:none!important}
}

/* Approved 2026-10-21: CLATONE, CRAFT and NOVS at 90% of original size. */
@media(min-width:1101px){
 .journey-frame>.journey-image.journey-footwear{
  left:5%;right:auto;top:calc((100% - 88px)*.05);bottom:auto;
  width:90%;height:calc((100% - 88px)*.9 + 88px);
 }
}
@media(max-width:1100px){
 #journey-clatone .journey-inline-visual,
 #journey-craft .journey-inline-visual,
 #journey-novs .journey-inline-visual{width:90%;margin-inline:auto}
}

/* RANIA: compact product images, keeping full artwork and click-to-enlarge. */
.rania-tools-grid,.gallery-rania{width:70%;margin-inline:auto}
@media(max-width:640px){.rania-tools-grid,.gallery-rania{width:86%}}

/* Each product summary includes one full, uncropped product image. */
.rania-products{padding-block:24px 64px}
.rania-product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:36px}
.rania-product-point{padding-top:22px;border-top:1px solid #111;min-width:0;font-weight:400;font-synthesis:none}
.rania-products .collection-heading h2{font-family:inherit;font-weight:400}
.rania-products .eyebrow{font-weight:500}
.rania-product-image{margin:0 0 28px;aspect-ratio:4/5;display:block;position:relative;background:#fff;overflow:hidden}
.rania-product-image>img.brand-image{position:absolute;inset:0;display:block;width:100%;height:100%;aspect-ratio:auto;max-height:none;padding:0;object-fit:contain;object-position:center;transform:none}
.rania-product-category{font-size:10px;letter-spacing:.12em;margin:0 0 20px;color:#777}
.rania-product-point h3{font-size:clamp(21px,2.1vw,28px);line-height:1.4;letter-spacing:-.045em;margin:0 0 12px;font-weight:400}
.rania-product-english{font-size:10px;letter-spacing:.055em;color:#777;min-height:30px;margin-bottom:20px}
.rania-product-point p{line-height:1.75}
.rania-product-point>p:not([class]){font-size:14px;color:#666;min-height:75px}
.rania-product-point .rania-product-lead{font-size:17px;color:#151515;letter-spacing:-.025em;font-weight:400;margin:0 0 12px}
.rania-product-point dl{margin:24px 0 0;border-top:1px solid #e3e3e3}
.rania-product-point dl>div{display:grid;grid-template-columns:70px 1fr;gap:10px;padding:13px 0;border-bottom:1px solid #e3e3e3;font-size:12px;line-height:1.7}
.rania-product-point dt{color:#888}.rania-product-point dd{margin:0;color:#444}
.rania-product-note{font-size:11px;color:#888;margin-top:20px}
@media(max-width:760px){.rania-product-grid{grid-template-columns:1fr;gap:36px}.rania-product-point h3 br{display:none}.rania-product-english{min-height:0;margin-bottom:16px}.rania-product-point>p:not([class]){min-height:0}.rania-products{padding-bottom:44px}}
