/* Brand-led storefront with comfortable space at normal browser zoom. */
html:not(.visual-reference-capture) .site-header__inner { width: min(calc(100% - 3rem), 88rem); height: auto; min-height: 7rem; grid-template-columns: 11rem minmax(0, 1fr) auto auto; gap: 1.5rem; }
html:not(.visual-reference-capture) .site-header__logo { width: 9rem; height: 6.25rem; }
html:not(.visual-reference-capture) .site-footer__logo { width: 12rem; height: auto; max-width: 100%; max-height: none; margin-bottom: 1.5rem; }
.brand-carousel, .collection-editorial { color: #403b38; width: min(calc(100% - 3rem), 88rem); margin: 1.5rem auto 0; }
.brand-carousel { position: relative; }
.brand-slide { display: grid; grid-template-columns: .9fr 1.1fr; background: #f7ede1; border-radius: 1rem; overflow: hidden; min-height: 32rem; animation: brand-reveal .65s ease-out; }
.brand-slide[hidden] { display: none; }
.brand-slide__copy { padding: clamp(2rem, 4vw, 4.5rem); align-self: center; }
.brand-slide h1, .brand-slide h2, .collection-intro h2, .collection-editorial h1 { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(2.5rem, 4.5vw, 4.5rem); line-height: 1.04; font-weight: 500; letter-spacing: -.025em; margin: 1rem 0 1.5rem; }
.brand-slide__copy > p:not(.brand-kicker), .collection-intro > p:not(.brand-kicker) { font-size: 1.125rem; line-height: 1.75; max-width: 40rem; }
.brand-slide__actions { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; margin-top: 2rem; }
.brand-text-link { color: #654638; font-weight: 600; text-decoration: underline; text-underline-offset: .3em; }
.brand-slide__visual { position: relative; margin: 0; min-width: 0; overflow: hidden; }
.brand-slide__visual > img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.brand-slide__visual figcaption { position: absolute; bottom: .75rem; left: .75rem; right: .75rem; width: fit-content; background: #fffaf2ed; padding: .4rem .65rem; font-size: .75rem; border-radius: .25rem; z-index: 2; }
.brand-slide__visual > .brand-slide__finish { opacity: 0; animation: embroidery-finish 8s ease-in-out infinite; animation-play-state: paused; }
.is-playing .brand-slide__finish { animation-play-state: running; }
.brand-carousel:not(.is-playing) .brand-slide__finish { animation: none; opacity: 1; }
/* Blends the text panel's cream background into its photo at the seam,
   instead of a hard vertical edge between the two halves. */
.brand-slide__blend { position: absolute; inset: 0 auto 0 0; width: 18%; background: linear-gradient(to right, #f7ede1, transparent); pointer-events: none; z-index: 1; }

/* Minimal edge-overlaid prev/next controls, replacing the old numbered dot
   bar. Hidden until the carousel is hovered/focused, then pan in from the
   side they sit on. */
.brand-carousel__edge { position: absolute; top: 50%; z-index: 3; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid #bbaca2; background: #fffaf5ee; color: #403b38; font-size: 1.1rem; opacity: 0; transition: opacity .25s ease, transform .25s ease; pointer-events: none; }
.brand-carousel__edge--prev { left: 1rem; transform: translate(-.75rem, -50%); }
.brand-carousel__edge--next { right: 1rem; transform: translate(.75rem, -50%); }
.brand-carousel:hover .brand-carousel__edge, .brand-carousel:focus-within .brand-carousel__edge { opacity: 1; pointer-events: auto; }
.brand-carousel:hover .brand-carousel__edge--prev, .brand-carousel:focus-within .brand-carousel__edge--prev { transform: translate(0, -50%); }
.brand-carousel:hover .brand-carousel__edge--next, .brand-carousel:focus-within .brand-carousel__edge--next { transform: translate(0, -50%); }

/* Center play/pause: invisible until the visitor hovers or focuses the
   slide, so the carousel otherwise runs with no persistent visible chrome. */
.brand-carousel__playpause { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(.85); z-index: 3; width: 3.25rem; height: 3.25rem; border-radius: 50%; border: 1px solid #bbaca2; background: #fffaf5ee; color: #403b38; opacity: 0; transition: opacity .2s ease, transform .2s ease; pointer-events: none; display: flex; align-items: center; justify-content: center; }
.brand-carousel:hover .brand-carousel__playpause, .brand-carousel:focus-within .brand-carousel__playpause { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.brand-carousel__playpause svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }
.brand-carousel__playpause .icon-play { display: none; }
.brand-carousel__playpause.is-paused .icon-pause { display: none; }
.brand-carousel__playpause.is-paused .icon-play { display: block; }
/* A visitor who has already paused sees the control without needing to
   hover first -- otherwise there'd be no way to notice it's paused. */
.brand-carousel__playpause.is-paused { opacity: 1; pointer-events: auto; }

/* Slide copy "completes itself" as each slide becomes active: kicker,
   heading, body, and actions fade/slide up in a short stagger. */
[data-reveal-text] { opacity: 0; transform: translateY(.6rem); }
[data-reveal-text].is-revealed { animation: reveal-text .5s ease-out forwards; animation-delay: var(--reveal-delay, 0ms); }
@keyframes reveal-text { to { opacity: 1; transform: translateY(0); } }

.brand-carousel :focus-visible, .collection-editorial :focus-visible { outline: 3px solid #755138; outline-offset: 4px; }

/* Reusable scroll-reveal for every section below the carousel: pans up and
   fades in as it enters the viewport. The carousel itself never uses this. */
[data-pan-reveal] { opacity: 0; transform: translateY(2rem); transition: opacity .7s ease-out, transform .7s ease-out; }
[data-pan-reveal].is-revealed { opacity: 1; transform: translateY(0); }
.collection-intro { text-align: center; padding: 3rem 1.5rem; }
.collection-intro > p { margin-inline: auto; }
.collection-intro__family { max-width: 24rem; margin: 1.5rem auto; }
.collection-intro__family img { display: block; width: 100%; height: auto; border-radius: .75rem; }
.collection-intro__family figcaption { margin-top: .75rem; font-size: .875rem; line-height: 1.5; }
.collection-intro__strip { max-width: 32rem; margin: 1.5rem auto 0; }
.collection-intro__strip img { display: block; width: 100%; height: auto; border-radius: .75rem; aspect-ratio: 3 / 2; object-fit: cover; }
.collection-intro__strip figcaption { margin-top: .5rem; font-size: .75rem; color: #7a6f68; line-height: 1.5; }
.product-showcase__photo { max-width: 20rem; margin: 1.5rem auto 0; }
.product-showcase__photo img { display: block; width: 100%; height: auto; border-radius: .75rem; }
.trust-section__reviews-note { margin-top: 1.5rem; font-size: .875rem; color: #7a6f68; }

.collection-intro h2 { font-size: clamp(2.5rem, 4vw, 3.5rem); }
.collection-editorial { padding-bottom: 4rem; }
.collection-editorial__heading { max-width: 48rem; padding: 3rem 0; }
.collection-editorial__heading > p:last-child { font-size: 1.125rem; line-height: 1.7; }
.story-collection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.story-collection { border: 1px solid #e0d3c7; border-radius: .75rem; overflow: hidden; background: #fffcf8; scroll-margin-top: 9rem; }
.story-collection__visual { position: relative; margin: 0; }
.story-collection img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.story-collection figcaption { position: absolute; bottom: .75rem; left: .75rem; padding: .35rem .65rem; font-size: .75rem; background: #fffaf2ed; border-radius: .25rem; }
.story-collection__body { padding: clamp(1.5rem, 3vw, 2.5rem); }
.story-collection h2 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 2.25rem; font-weight: 500; line-height: 1.12; margin: .5rem 0 1rem; }
.story-collection p { line-height: 1.7; margin-bottom: 1.5rem; }
.story-collection--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; background: #f7ede1; }
.story-collection--featured img { height: 100%; min-height: 30rem; }
.story-collection--featured .story-collection__body { align-self: center; padding: clamp(2rem, 4vw, 4rem); }
.story-collection--featured h2 { font-size: clamp(2.5rem, 4vw, 3.5rem); }
.collection-catalog { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid #e0d3c7; }
.collection-catalog h2 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 2.5rem; margin-bottom: 1rem; }
.collection-catalog nav { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1.5rem 0 2rem; }
@keyframes brand-reveal { from { opacity: .3; } to { opacity: 1; } }
@keyframes embroidery-finish { 0%, 30% { opacity: 0; } 55%, 100% { opacity: 1; } }
@media (max-width: 79.999rem) {
  html:not(.visual-reference-capture) .site-header__inner { gap: 1rem; grid-template-columns: 9rem minmax(0, 1fr) auto; }
  html:not(.visual-reference-capture) .site-header__accent { display: none; }
}
@media (max-width: 47.999rem) {
  html:not(.visual-reference-capture) .site-header__inner { width: calc(100% - 2rem); min-height: 6rem; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; }
  html:not(.visual-reference-capture) .site-header__logo { width: 7rem; height: 5rem; }
  .brand-carousel, .collection-editorial { width: calc(100% - 2rem); margin-top: 1rem; }
  .brand-slide { grid-template-columns: 1fr; min-height: 0; }
  .brand-slide__copy { padding: 2rem 1.5rem; min-height: 24rem; }
  .brand-slide h1, .brand-slide h2 { font-size: clamp(2.25rem, 8vw, 3.25rem); }
  .brand-slide__visual { aspect-ratio: 3 / 2; }
  .brand-slide__actions { gap: 1.25rem; }
  .story-collection-grid, .story-collection--featured { grid-template-columns: 1fr; }
  .story-collection--featured img { min-height: 0; height: auto; }
  .collection-editorial__heading { padding: 2rem 0; }
  .brand-slide__blend { display: none; }
  .brand-carousel__edge { width: 2.25rem; height: 2.25rem; }
}
/* Devices without real hover (touch) can't discover the edge/center controls
   through :hover -- show them at rest so tapping isn't the only affordance
   (swipe still works too, see collection-carousel.js). */
@media (hover: none) {
  .brand-carousel__edge, .brand-carousel__playpause { opacity: .85; pointer-events: auto; transform: translate(0, -50%); }
  .brand-carousel__playpause { transform: translate(-50%, -50%) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-slide, .brand-slide__visual > .brand-slide__finish { animation: none; }
  .brand-slide__visual > .brand-slide__finish { opacity: 1; }
  [data-reveal-text] { opacity: 1; transform: none; }
  [data-reveal-text].is-revealed { animation: none; }
  [data-pan-reveal] { opacity: 1; transform: none; transition: none; }
  .brand-carousel__edge, .brand-carousel__playpause { transition: none; }
}
