/* Homepage composition. Shared controls, navigation and tokens live in styles.css. */
body[data-page="home"] {
  --home-section-space: 68px;
  background: var(--color-warm-white, #fbf9f5);
}

.home-container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: clamp(22px, 4.2vw, 64px);
}
.home-section { padding-block: var(--home-section-space); }
.home-anchor { display: block; position: relative; scroll-margin-top: 110px; }
body[data-page="home"] main section[id] { scroll-margin-top: 108px; }
body[data-page="home"] main h1,
body[data-page="home"] main h2,
body[data-page="home"] main h3 { font-weight: 400; }
body[data-page="home"] main h2 { font-size: clamp(2.25rem, 4.5vw, 4rem); line-height: 1.06; letter-spacing: -.025em; }
.home-eyebrow {
  margin: 0 0 16px;
  font-family: var(--font-sans);
  font-size: .6875rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-espresso, #2a2521);
}
.home-text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: fit-content;
  min-height: 44px;
  padding-block: 9px;
  border-bottom: 1px solid currentColor;
  color: var(--color-espresso, #2a2521);
  font-family: var(--font-sans);
  font-size: .6875rem;
  font-weight: 400;
  letter-spacing: .14em;
  line-height: 1.5;
  text-transform: uppercase;
  transition: opacity 220ms ease;
}
.home-text-link:hover { color: var(--color-espresso, #2a2521); opacity: .7; }

.home-header-search { display: flex; flex: 0 1 220px; align-items: stretch; min-width: 145px; border-bottom: 1px solid var(--color-espresso, #2a2521); }
.home-header-search input { flex: 1 1 auto; width: 100%; min-width: 0; min-height: 42px; padding: 8px 10px 8px 0; border: 0; border-radius: 0; background: transparent; color: var(--color-espresso, #2a2521); font-family: var(--font-sans); font-size: .8125rem; }
.home-header-search input::placeholder { color: var(--color-muted-text, #6f665e); opacity: 1; }
.home-header-search input:focus-visible { outline: 2px solid var(--color-espresso, #2a2521); outline-offset: 2px; }
.home-header-search button { display: grid; flex: 0 0 44px; place-items: center; min-height: 42px; padding: 8px; border: 0; border-radius: 0; background: transparent; color: var(--color-espresso, #2a2521); cursor: pointer; }
.home-header-search button:hover { background: var(--color-stone, #e9e1d6); }
.home-header-search button:focus-visible { outline: 2px solid var(--color-espresso, #2a2521); outline-offset: 2px; }
.home-header-search svg { width: 18px; height: 18px; }

.home-hero { position: relative; display: grid; min-height: 74svh; background: var(--color-ivory, #f7f3ec); }
.home-hero__carousel { position: relative; height: clamp(300px, calc(38svh + 60px), 480px); overflow: hidden; background: var(--color-stone, #e9e1d6); }
.home-hero__slide { position: absolute; inset: 0; display: flex; flex-direction: column; color: var(--color-espresso, #2a2521); opacity: 0; visibility: hidden; pointer-events: none; }
.home-hero__slide.is-active { z-index: 1; opacity: 1; visibility: visible; pointer-events: auto; }
.home-hero__slide:hover { color: var(--color-espresso, #2a2521); }
.home-hero__slide img { flex: 1 1 auto; width: 100%; min-height: 0; object-fit: cover; object-position: center; }
.home-hero__slide-caption { display: flex; flex: 0 0 60px; align-items: center; justify-content: space-between; gap: 20px; padding-inline: clamp(22px, 3vw, 40px); background: var(--color-warm-white, #fbf9f5); }
.home-hero__slide-name { font-family: var(--font-serif); font-size: 1.65rem; line-height: 1; }
.home-hero__slide-link { flex: 0 0 auto; font-family: var(--font-sans); font-size: .625rem; letter-spacing: .13em; text-transform: uppercase; }
.home-hero__controls { position: absolute; z-index: 2; top: 18px; right: 18px; display: flex; background: rgba(251, 249, 245, .9); }
.home-hero__controls[hidden] { display: none; }
.home-hero__controls button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-left: 1px solid var(--color-border, rgba(42, 37, 33, .16)); background: transparent; color: var(--color-espresso, #2a2521); font-size: 1.15rem; cursor: pointer; }
.home-hero__controls button:first-child { border-left: 0; }
.home-hero__controls button[hidden] { display: none; }
.home-hero__controls button:hover { background: var(--color-stone, #e9e1d6); }
.home-hero__controls button:focus-visible { outline: 2px solid var(--color-espresso, #2a2521); outline-offset: -3px; }
.home-hero__inner { display: flex; align-items: center; padding-block: 36px; }
.home-hero__copy { max-width: 560px; }
.home-hero .home-eyebrow { margin-bottom: 22px; }
.home-hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.75rem); letter-spacing: -.035em; line-height: .99; }
.home-hero__description { max-width: 330px; margin-top: 24px; font-size: .9375rem; line-height: 1.65; }
.home-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; margin-top: 30px; }
.home-hero__actions .btn { padding-inline: 25px; }

.home-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 36px; }
.home-section-heading--center { display: block; text-align: center; }
.home-section-heading > .home-text-link { flex: 0 0 auto; }
.home-section-heading .home-eyebrow { margin-bottom: 12px; }
body[data-page="home"] .home-product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 18px; align-items: start; }
.home-product-placeholder { aspect-ratio: 1 / 1.7; background: linear-gradient(var(--color-stone, #e9e1d6), var(--color-stone, #e9e1d6)) top / 100% 59% no-repeat; opacity: .42; }
.home-products-fallback { grid-column: 1 / -1; max-width: 620px; color: var(--text-secondary); font-size: .875rem; }
.home-products-fallback a { text-decoration: underline; text-underline-offset: 4px; }
.home-product-grid[data-home-products-state="empty"] .home-product-placeholder,
.home-product-grid[data-home-products-state="error"] .home-product-placeholder { display: none; }
.home-price-note { max-width: 620px; margin: 28px 0 0; color: var(--color-muted-text, #6f665e); font-size: .75rem; line-height: 1.6; }
body[data-page="home"] .product-card--editorial { border: 0; border-radius: 0; box-shadow: none; background: transparent; overflow: visible; transform: none; }
body[data-page="home"] .product-card--editorial:hover { border: 0; box-shadow: none; transform: none; }
body[data-page="home"] .product-card--editorial .product-card__media { position: relative; display: block; aspect-ratio: 1; border-radius: 0; overflow: hidden; background: var(--color-stone, #e9e1d6); }
body[data-page="home"] .product-card--editorial .product-card__img { width: 100%; height: 100%; object-fit: cover; transition: opacity 300ms ease, transform 300ms ease; }
body[data-page="home"] .product-card--editorial .product-card__img--alternate { position: absolute; inset: 0; opacity: 0; }
body[data-page="home"] .product-card--editorial[data-alternate-ready="true"]:hover .product-card__img--alternate,
body[data-page="home"] .product-card--editorial[data-alternate-ready="true"]:focus-within .product-card__img--alternate { opacity: 1; }
body[data-page="home"] .product-card--editorial .product-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 17px 0 0; text-align: left; }
body[data-page="home"] .product-card--editorial .product-card__name { margin: 0; font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.2; letter-spacing: 0; font-weight: 400; }
body[data-page="home"] .product-card--editorial .product-card__meta { margin: 8px 0 0; color: var(--color-muted-text, #6f665e); font-size: .75rem; font-weight: 400; line-height: 1.6; }
body[data-page="home"] .product-card--editorial .product-card__price { margin: 10px 0 0; padding: 0; border: 0; background: none; font-family: var(--font-sans); font-size: .75rem; font-weight: 400; line-height: 1.6; color: var(--color-espresso, #2a2521); }
body[data-page="home"] .product-card--editorial .product-card__cta { display: inline-flex; align-items: center; width: fit-content; min-height: 44px; margin: 12px 0 0; padding: 8px 0; border: 0; border-bottom: 1px solid var(--color-border, rgba(42, 37, 33, .25)); border-radius: 0; background: transparent; color: var(--color-espresso, #2a2521); font-size: .6875rem; font-weight: 400; line-height: 1.5; letter-spacing: .13em; text-transform: uppercase; }

.home-categories { padding-bottom: var(--home-section-space); }
.home-category-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.home-category { position: relative; display: flex; align-items: flex-end; aspect-ratio: 4 / 5; isolation: isolate; overflow: hidden; color: #fff; }
.home-category > img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.home-category::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, transparent 28%, rgba(30, 25, 20, .16) 50%, rgba(30, 25, 20, .72) 100%); }
.home-category__copy { width: 100%; padding: 27px; }
body[data-page="home"] .home-category h2 { color: #fff; font-size: clamp(2.15rem, 3vw, 2.9rem); letter-spacing: -.02em; }
.home-category__copy p { max-width: 280px; margin-top: 10px; font-size: .875rem; line-height: 1.55; }
.home-category__link { display: inline-flex; gap: 12px; align-items: center; min-height: 44px; margin-top: 14px; font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; }
.home-category:hover { color: #fff; }
.home-category:hover > img, .home-category:focus-visible > img { transform: scale(1.025); }
.home-category:focus-visible { outline-offset: 5px; }

.home-shapes { background: var(--color-ivory, #f7f3ec); }
.home-shape-list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(110px, 35%); gap: 18px; overflow-x: auto; padding: 5px 3px 16px; scrollbar-width: thin; scrollbar-color: var(--color-sand, #d8cabb) transparent; scroll-snap-type: x proximity; }
.home-shape { display: flex; flex-direction: column; align-items: center; min-width: 0; min-height: 44px; gap: 14px; text-align: center; scroll-snap-align: start; }
.home-shape__image { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; transition: transform 300ms ease; }
.home-shape:hover .home-shape__image { transform: scale(1.025); }
.home-shape__name { display: grid; place-items: center; min-height: 44px; font-size: .75rem; line-height: 1.5; }
.home-campaign { display: grid; background: var(--color-stone, #e9e1d6); }
.home-campaign__media { min-width: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.home-campaign__media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }
.home-campaign__copy { align-self: center; padding: 56px clamp(22px, 6vw, 88px) 62px; }
.home-campaign__copy > p:not(.home-eyebrow) { max-width: 385px; margin-top: 25px; font-size: .9375rem; line-height: 1.7; color: var(--color-muted-text, #6f665e); }
.home-campaign__copy .home-text-link { margin-top: 25px; }
.home-process-list { display: grid; gap: 28px; margin-top: 42px; }
.home-process-list li { display: grid; grid-template-columns: 50px 1fr; column-gap: 18px; border-top: 1px solid var(--color-border, rgba(42, 37, 33, .16)); padding-top: 25px; }
.home-process__number { grid-row: 1 / 3; font-family: var(--font-serif); font-size: 2.5rem; font-weight: 400; line-height: 1; color: var(--color-muted-text, #6f665e); }
.home-process-list h3 { align-self: center; font-family: var(--font-sans); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; }
.home-process-list p { margin-top: 12px; max-width: 310px; font-size: .875rem; line-height: 1.7; color: var(--color-muted-text, #6f665e); }
.home-section-action { margin-top: 36px; text-align: center; }
.home-products--new { background: var(--color-ivory, #f7f3ec); }
.home-journal-grid { display: grid; gap: 38px; }
.home-journal-card { display: flex; flex-direction: column; align-items: flex-start; color: var(--color-espresso, #2a2521); }
.home-journal-card:hover { color: var(--color-espresso, #2a2521); }
.home-journal-card__media { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-stone, #e9e1d6); }
.home-journal-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.home-journal-card:hover img, .home-journal-card:focus-visible img { transform: scale(1.025); }
.home-journal-card .home-eyebrow { margin: 24px 0 10px; font-size: .625rem; }
.home-journal-card h3 { font-size: clamp(1.6rem, 2.3vw, 2rem); line-height: 1.12; }
.home-journal-card > p:not(.home-eyebrow) { margin-top: 12px; font-size: .875rem; line-height: 1.65; color: var(--color-muted-text, #6f665e); }
.home-journal-card .home-text-link { margin-top: 14px; }
.home-consultation { background: var(--color-stone, #e9e1d6); text-align: center; }
.home-consultation__inner { display: flex; flex-direction: column; align-items: center; max-width: 940px; }
.home-consultation__inner > p:not(.home-eyebrow) { max-width: 470px; margin-top: 24px; font-size: .9375rem; line-height: 1.7; color: var(--color-muted-text, #6f665e); }
.home-consultation .btn { margin-top: 30px; }
.home-newsletter__inner { display: grid; gap: 32px; }
body[data-page="home"] .home-newsletter h2 { font-size: clamp(2.15rem, 3.3vw, 3rem); }
.home-newsletter__inner > div > p { margin-top: 15px; color: var(--color-muted-text, #6f665e); font-size: .875rem; line-height: 1.6; }
.home-newsletter-form.newsletter-form { display: block; width: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.home-newsletter-form label { display: block; margin-bottom: 9px; font-size: .75rem; }
.home-newsletter-form__fields { display: flex; align-items: stretch; border-bottom: 1px solid var(--color-espresso, #2a2521); }
.home-newsletter-form.newsletter-form input { width: 100%; min-width: 0; min-height: 48px; padding: 10px 10px 10px 0; border: 0; border-radius: 0; background: transparent; color: var(--color-espresso, #2a2521); font-size: 1rem; }
.home-newsletter-form.newsletter-form input::placeholder { color: var(--color-muted-text, #6f665e); }
.home-newsletter-form.newsletter-form input:focus-visible { outline: 2px solid var(--color-espresso, #2a2521); outline-offset: 3px; }
.home-newsletter-form .newsletter-submit { flex: 0 0 78px; position: static; width: auto; min-height: 48px; padding: 10px 12px; border: 0; border-radius: 0; background: none; color: var(--color-espresso, #2a2521); font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; cursor: pointer; }
.home-newsletter-form .newsletter-submit:hover { color: var(--color-espresso, #2a2521); background: var(--color-ivory, #f7f3ec); }
.home-newsletter-form__help, .home-newsletter-form .newsletter-msg { margin-top: 12px; color: var(--color-muted-text, #6f665e); font-size: .75rem; line-height: 1.6; }
.home-newsletter-form .newsletter-msg { position: static; }

@media (max-width: 1199px) {
  body[data-page="home"] .nav-wrap { flex-wrap: wrap; row-gap: 0; padding-block: 8px; }
  body[data-page="home"] .nav-toggle { order: 2; margin-left: auto; }
  .home-header-search { order: 3; flex: 0 0 100%; min-width: 0; }
}
@media (min-width: 1200px) {
  body[data-page="home"] .nav-wrap { gap: 12px; }
}
@media (max-width: 767px) {
  .home-section-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .home-section-heading--center { display: block; }
  .home-hero__inner { padding-block: 32px 36px; }
  .home-hero h1 { font-size: clamp(2.4rem, 11.5vw, 3.2rem); }
  .home-hero .home-eyebrow { margin-bottom: 16px; }
  .home-hero__description { margin-top: 18px; }
  .home-hero__actions { margin-top: 22px; }
  .home-hero__actions { align-items: flex-start; flex-direction: column; }
  .home-hero__copy { max-width: 350px; }
  .home-hero__description { max-width: 285px; }
  .home-shape-list { margin-right: -22px; padding-right: 22px; }
  .home-consultation .btn { width: 100%; max-width: 360px; padding-inline: 15px; font-size: .6875rem; }
}
@media (min-width: 768px) {
  body[data-page="home"] { --home-section-space: 88px; }
  .home-hero { grid-template-columns: 1fr 1.05fr; min-height: 78vh; min-height: 78svh; }
  .home-hero__carousel { grid-column: 2; grid-row: 1; height: 100%; min-height: 0; }
  .home-hero__inner { grid-column: 1; grid-row: 1; max-width: none; padding-block: 64px; padding-left: max(32px, calc((100vw - 1312px) / 2)); padding-right: 28px; }
  .home-hero__description { max-width: 360px; font-size: 1rem; }
  .home-hero__actions { margin-top: 35px; }
  .home-section-heading { margin-bottom: 44px; }
  body[data-page="home"] .home-product-grid { gap: 44px 28px; }
  .home-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .home-category { aspect-ratio: 3 / 4; }
  .home-category__copy { padding: 20px; }
  body[data-page="home"] .home-category h2 { font-size: clamp(1.75rem, 3vw, 2.8rem); }
  .home-category__copy p { font-size: .75rem; }
  .home-category__link { font-size: .625rem; letter-spacing: .1em; }
  .home-shape-list { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-flow: initial; grid-auto-columns: auto; gap: 20px; overflow-x: visible; }
  .home-campaign { grid-template-columns: 1.12fr 1fr; min-height: 65vh; min-height: 65svh; }
  .home-campaign__media { aspect-ratio: auto; min-height: 500px; }
  .home-campaign__copy { padding: 60px 7vw; }
  .home-process-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 35px; text-align: center; }
  .home-process-list li { display: flex; flex-direction: column; align-items: center; border: 0; padding: 0; }
  .home-process__number { margin-bottom: 22px; font-size: 3.5rem; }
  .home-process-list h3 { margin-bottom: 3px; }
  .home-section-action { margin-top: 44px; }
  .home-journal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
  .home-journal-card__media { aspect-ratio: 1; }
  .home-newsletter__inner { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 7vw; }
}
@media (min-width: 1200px) {
  body[data-page="home"] { --home-section-space: 120px; }
  .home-hero { min-height: 80vh; min-height: 80svh; }
  body[data-page="home"] .home-product-grid { grid-template-columns: repeat(var(--home-product-count, 4), minmax(0, 1fr)); gap: 30px; }
  .home-category-grid { gap: 24px; }
  .home-category { aspect-ratio: 4 / 5; }
  .home-category__copy { padding: 32px; }
  .home-category__copy p { font-size: .875rem; }
  .home-category__link { font-size: .6875rem; letter-spacing: .12em; }
  .home-shape-list { gap: 34px; }
  .home-process-list { gap: 80px; margin-top: 60px; }
  .home-journal-grid { gap: 32px; }
  .home-journal-card__media { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  .home-text-link,
  .home-hero__slide,
  .home-category > img,
  .home-shape__image,
  .home-journal-card__media img,
  body[data-page="home"] .product-card--editorial .product-card__img { transition: none; }
  .home-category:hover > img,
  .home-category:focus-visible > img,
  .home-shape:hover .home-shape__image,
  .home-journal-card:hover img,
  .home-journal-card:focus-visible img,
  body[data-page="home"] .product-card--editorial:hover .product-card__img,
  body[data-page="home"] .product-card--editorial:focus-within .product-card__img { transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .home-hero__slide { transition: opacity 420ms ease, visibility 420ms ease; }
}
