/* XIII: the product art, copy and controls share one quiet atelier canvas. */
#main-content[data-page="home"] .home-hero--overlay {
  --paper: #e9edf1;
  --paper-deep: #e5e9ee;
  --copy-ink: #232831;
  --copy-secondary: #404a55;
  --gutter-atlas: clamp(1rem, 5.2vw, 6.5rem);
  --atlas-accent: #ad232d;
}
#main-content[data-page="home"] .home-hero__title {
  color: var(--copy-ink);
  max-width: none !important;
  text-wrap: balance;
}
#main-content[data-page="home"] .home-hero__context {
  color: var(--copy-secondary);
  margin-top: clamp(.75rem, 1.65vw, 1.45rem);
  max-width: none;
  font-size: clamp(.98rem, 1.4vw, 1.25rem);
}
#main-content[data-page="home"] .home-hero__actions { margin-top: 0; }
#main-content[data-page="home"] .home-hero__actions .btn--primary {
  color: #fff; background: var(--atlas-accent); border-color: var(--atlas-accent);
}
#main-content[data-page="home"] .home-hero__actions .btn--primary:hover {
  color: #fff; background: #891b24; border-color: #891b24;
}
#main-content[data-page="home"] .home-hero--overlay .link-quiet { color: var(--copy-ink); }
#main-content[data-page="home"] .home-hero--overlay :is(button,a):focus-visible {
  outline-color: var(--atlas-accent);
}
#main-content[data-page="home"] .home-hero__media::after { display: none; }
#main-content[data-page="home"] .home-gallery { background: var(--paper-deep); }
#main-content[data-page="home"] .home-gallery__slide .media-caption {
  color: #505862 !important;
  background: #f3f5f6 !important;
  padding: .45rem var(--gutter-atlas) !important;
  font-size: .78rem;
}
#main-content[data-page="home"] .home-gallery__controls {
  background: #f3f5f6;
  padding: .5rem var(--gutter-atlas);
  border-block: 1px solid #d4d9df;
}
#main-content[data-page="home"] .home-gallery__choice { color: #353e49; min-height: 44px; }
#main-content[data-page="home"] .home-gallery__choice:is(:hover,[aria-pressed="true"]) {
  color: #991e27; border-color: #ad232d;
}
#main-content[data-page="home"] .home-gallery__pause { color: #313943; border-color: #a4afb9; }
#main-content[data-page="home"] .home-gallery__pause:hover { background: #e1e6eb; }
#main-content[data-page="home"] .home-gallery__controls :focus-visible { outline-color: var(--atlas-accent); }
@media (min-width: 1024px) {
  #main-content[data-page="home"] .home-hero--overlay {
    --canvas-h: clamp(410px, min(43vw, calc(100svh - 150px)), 40rem);
  }
  #main-content[data-page="home"] .home-hero__media .media {
    height: var(--canvas-h);
    max-height: none;
    aspect-ratio: auto !important;
    background: linear-gradient(100deg, #f0f2f4, var(--paper-deep));
  }
  #main-content[data-page="home"] .home-hero__media .media img {
    width: auto;
    height: 100%;
    position: absolute;
    inset: 0 0 0 auto;
    max-width: 100%;
    object-fit: contain;
    object-position: right center;
    mask-image: linear-gradient(90deg, transparent, #000 30%);
  }
  #main-content[data-page="home"] .home-hero__content {
    min-height: var(--canvas-h);
    width: min(50vw, 61rem);
    margin: 0;
    padding: 1.5rem 0 1.5rem var(--gutter-atlas);
    justify-content: center;
    gap: clamp(1rem, 2vw, 2rem);
  }
  #main-content[data-page="home"] .home-hero--overlay .home-hero__title {
    font-size: clamp(2.75rem, 4.25vw, 5.1rem) !important;
    line-height: 1.06 !important;
    letter-spacing: -.055em;
  }
}
@media (max-width: 1023px) {
  #main-content[data-page="home"] .home-hero__media .media {
    aspect-ratio: auto !important;
    height: auto;
    max-height: none;
    background: var(--paper-deep);
  }
  #main-content[data-page="home"] .home-hero__media .media img {
    position: static;
    inset: auto;
    width: 100%;
    height: auto;
    max-height: clamp(260px, 63vw, 480px);
    object-fit: contain;
    object-position: center;
  }
  #main-content[data-page="home"] .home-hero__content {
    padding: clamp(1.6rem, 4vw, 3rem) var(--gutter-atlas);
  }
  #main-content[data-page="home"] .home-gallery__choices { column-gap: clamp(.55rem, 2vw, 1.25rem); }
  #main-content[data-page="home"] .home-gallery__choice { font-size: clamp(.82rem, 2vw, .92rem); }
}
#main-content[data-division] > .hero.hero--division .atlas-hero-plate .media {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1182 / 941 !important;
  max-height: min(55vw, 540px);
  overflow: hidden;
  background: #e9edf1;
}
#main-content[data-division] > .hero.hero--division .atlas-hero-plate .media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center;
}
/* Keep product names comfortably legible beside the taller folio. */
#main-content.site-main[data-division] > .hero.hero--division h1 {
  font-size: clamp(2rem, 3.66vw, 4.25rem) !important;
  max-width: none !important;
  text-wrap: pretty;
  hyphens: auto;
  overflow-wrap: break-word;
}
@media (max-width: 980px) {
  #main-content.site-main[data-division] > .hero.hero--division h1 {
    font-size: clamp(2rem, 5.6vw, 3.75rem) !important;
  }
}
