/* Mensthetic remains the design target: white/blue, real photography, clear ink rules.
 * Superpower contributes compact image-led hierarchy; Spacelab contributes alignment.
 * These presentation-only rules do not change tabs, sliders, booking or gallery access.
 */
.menst-refined[data-page="home"] main > section + section[id],
.menst-refined[data-page="home"] main > section + section.consultation-intro {
  border-top: 1px solid var(--menst-ink);
  border-bottom: 0;
}
.menst-refined[data-page="home"] main > section:first-child { border-bottom: 0; }
/* A white canvas beside the statue continues into treatments without a seam.
 * White fades are decorative image treatment, never overlays on interactive content.
 */
.menst-refined[data-page="home"] .hero[data-living-marble] {
  min-height: 0;
  flex-direction: column;
  align-items: stretch;
  padding-bottom: 32px;
  background-color: #fff;
  background-image:
    linear-gradient(0deg, #fff 0%, rgba(255,255,255,0) 28%),
    linear-gradient(90deg, #fff 0%, #fff 40%, rgba(255,255,255,.9) 60%, rgba(255,255,255,.78) 100%),
    url('../images/optimized/hero-statue-1453.webp');
}
.menst-refined[data-page="home"] main > .hero + .performance-packs { border-top: 0; }
@media (max-width: 767px) {
  .menst-refined[data-page="home"] .hero[data-living-marble] {
    background-image:
      linear-gradient(0deg, #fff 0%, rgba(255,255,255,0) 28%),
      linear-gradient(90deg, #fff 0%, rgba(255,255,255,.94) 45%, rgba(255,255,255,.85) 100%),
      url('../images/optimized/hero-statue-800.webp');
  }
}
.menst-refined[data-page="home"] .footer { border-top: 1px solid var(--menst-ink); }
.menst-refined[data-page="home"] .hero :is(.hero-content,.hero-actions) {
  animation: none;
  transform: none;
  opacity: 1;
}
.menst-refined[data-page="home"] .hero-content .hero-location-card {
  margin-top: 24px;
  width: auto;
}
.menst-refined[data-page="home"] .hero-content .hero-location-value {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}
@media (min-width: 1024px) {
  .menst-refined[data-page="home"] .hero-content {
    margin-left: clamp(32px, 5vw, 72px);
    max-width: 610px;
  }
}
@media (max-width: 1023px) {
  .menst-refined[data-page="home"] .hero-content {
    width: 100%;
    margin-inline: auto;
    text-align: center;
  }
  .menst-refined[data-page="home"] .hero-content :is(h1,p) { margin-inline: auto; }
  .menst-refined[data-page="home"] .hero-location-card { justify-content: center; }
}
@media (min-width: 600px) and (max-width: 1023px) {
  .menst-refined[data-page="home"] .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .menst-refined[data-page="home"] .hero-actions > * { width: auto; flex: 0 0 auto; }
}

.menst-refined[data-page="home"] .philosophy.philosophy-teaser {
  padding-block: 48px;
  background: #fff;
  background-image: none;
  border-top: 1px solid var(--menst-ink);
  border-bottom: 0;
}
.menst-refined[data-page="home"] .philosophy-teaser > .container {
  grid-template-columns: minmax(0,1fr) 280px;
  grid-template-rows: auto auto;
  gap: 20px 72px;
  align-items: center;
}
.menst-refined[data-page="home"] .philosophy-teaser .section-header {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
}
.menst-refined[data-page="home"] .philosophy-teaser .section-header h2 {
  font-size: clamp(2rem,4vw,3rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.menst-refined[data-page="home"] .philosophy-teaser .philosophy-content {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
}
.menst-refined[data-page="home"] .philosophy-teaser .philosophy-article h3 {
  color: var(--menst-accent);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 12px;
}
.menst-refined[data-page="home"] .philosophy-teaser .philosophy-prose p { max-width: 60ch; }
.menst-refined[data-page="home"] .philosophy-teaser .philosophy-actions { margin-top: 12px; }
.menst-refined[data-page="home"] .philosophy-teaser .philosophy-portrait {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--menst-paper);
}
.menst-refined[data-page="home"] .philosophy-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 25%;
}
.menst-refined[data-page="home"] .philosophy-teaser .philosophy-photo-selected {
  object-position: 50% 12%;
  transform: scale(1.06);
  transform-origin: 50% 0%;
}
@media (min-width: 768px) and (max-width: 960px) {
  .menst-refined[data-page="home"] .philosophy-teaser > .container { grid-template-columns: minmax(0,1fr) 240px; gap: 20px 32px; }
}
@media (max-width: 767px) {
  .menst-refined[data-page="home"] .philosophy.philosophy-teaser { padding-block: 32px; }
  .menst-refined[data-page="home"] .philosophy-teaser > .container { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .menst-refined[data-page="home"] .philosophy-teaser .section-header { grid-column: 1; grid-row: 1; }
  .menst-refined[data-page="home"] .philosophy-teaser .philosophy-portrait { grid-column: 1; grid-row: 2; }
  .menst-refined[data-page="home"] .philosophy-teaser .philosophy-content { grid-column: 1; grid-row: 3; }
  .menst-refined[data-page="home"] .philosophy-portrait img { aspect-ratio: 4 / 3; object-position: 50% 25%; }
  .menst-refined[data-page="home"] .philosophy-teaser .philosophy-photo-selected { object-position: 50% 4%; }
}

/* Consistent image bounds; narrow desktop windows get a real intermediate layout. */
.menst-refined[data-page="home"] { --menst-home-portrait-width: 280px; }
.menst-refined[data-page="home"] .philosophy-teaser > .container {
  grid-template-columns: minmax(0,1fr) var(--menst-home-portrait-width);
}
.menst-refined[data-page="home"] .freddy-story-with-image {
  grid-template-columns: var(--menst-home-portrait-width) minmax(0,1fr);
}

@media (min-width: 600px) and (max-width: 960px) {
  .menst-refined[data-page="home"] { --menst-home-portrait-width: clamp(208px,30vw,240px); }
  .menst-refined[data-page="home"] .philosophy-teaser > .container {
    grid-template-columns: minmax(0,1fr) var(--menst-home-portrait-width);
    grid-template-rows: auto auto;
    gap: 20px 32px;
  }
  .menst-refined[data-page="home"] .philosophy-teaser .section-header { grid-column: 1; grid-row: 1; }
  .menst-refined[data-page="home"] .philosophy-teaser .philosophy-content { grid-column: 1; grid-row: 2; }
  .menst-refined[data-page="home"] .philosophy-teaser .philosophy-portrait { grid-column: 2; grid-row: 1 / span 2; }
  .menst-refined[data-page="home"] .philosophy-teaser .philosophy-portrait img { aspect-ratio: 4 / 5; }
  .menst-refined[data-page="home"] .philosophy-teaser .philosophy-photo-selected { object-position: 50% 12%; }
  .menst-refined[data-page="home"] .freddy-story-with-image {
    grid-template-columns: var(--menst-home-portrait-width) minmax(0,1fr);
    gap: 0 32px;
  }
  .menst-refined[data-page="home"] .freddy-story-with-image > :not(.freddy-main-image) { grid-column: 2; }
  .menst-refined[data-page="home"] .freddy-story-with-image .freddy-main-image {
    grid-column: 1;
    grid-row: 1 / span 5;
    margin-bottom: 0 !important;
  }
}

@media (min-width: 600px) and (max-width: 767px) {
  .menst-refined[data-page="home"] .performance-packs .pack-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
  .menst-refined[data-page="home"] .performance-packs .slider-container .pack-item { flex-basis: calc((100% - 20px) / 2); }
}

@media (min-width: 600px) and (max-width: 1024px) {
  .menst-refined[data-page="home"] .performance-packs .slider-container,
  .menst-refined[data-page="home"] .performance-packs .pack-grid { max-width: 740px; }
}

@media (max-width: 599px) {
  .menst-refined[data-page="home"] .philosophy-teaser > .container { grid-template-columns: minmax(0,1fr); }
  .menst-refined[data-page="home"] .philosophy-teaser .philosophy-portrait { max-width: var(--menst-home-portrait-width); }
  .menst-refined[data-page="home"] .freddy-story-with-image { grid-template-columns: minmax(0,1fr); }
  .menst-refined[data-page="home"] .freddy-story-with-image .freddy-main-image { max-width: var(--menst-home-portrait-width); }
  .menst-refined[data-page="home"] .freddy-main-image .freddy-photo { aspect-ratio: 4 / 3; }
  .menst-refined[data-page="home"] .performance-packs .pack-grid { grid-template-columns: minmax(0,320px); }
  .menst-refined[data-page="home"] .shop-home-preview .shop-preview-grid { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .menst-refined[data-page="home"] .shop-home-preview .shop-preview-card {
    display: grid;
    grid-template-columns: 96px minmax(0,1fr);
    gap: 16px;
    align-items: center;
  }
  .menst-refined[data-page="home"] .shop-home-preview .shop-preview-image { max-height: none; border-radius: 8px; }
  .menst-refined[data-page="home"] .shop-home-preview .shop-preview-meta { padding: 0; min-width: 0; }
  .menst-refined[data-page="home"] .shop-home-preview h3 { overflow-wrap: anywhere; }
}
