/* Homepage composition. Shared type, surfaces and actions live in ssg-system.css. */
.ssg-home { background: #fbfaf7; }
.ssg-home .ssg-brand > picture { display: block; width: 100%; }

.home-icons { position: absolute; width: 0!important; height: 0!important; overflow: hidden; }
#home-main:focus { outline: none; }

/* Page-specific photo, live text wash and continuous lower fade. */
.home-opening { position: relative; isolation: isolate; }
.home-landscape { position: absolute; z-index: -2; inset: 0; display: block; }
.home-landscape img { width: 100%; height: 100%; object-fit: cover; object-position: center 65%; }
.home-opening::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: linear-gradient(90deg, #fbfaf7 0%, #fbfaf7f2 28%, #fbfaf7bb 45%, #fbfaf722 70%, transparent 90%); }
.home-opening::after { content: ""; position: absolute; z-index: -1; inset: auto 0 0; height: 150px; pointer-events: none; background: linear-gradient(transparent, #fbfaf7); }
.home-hero { display: flex; align-items: center; min-height: 445px; padding-block: 56px 64px; }
.home-hero-copy { max-width: 565px; margin: 0; gap: 20px; }
.home-hero-copy .ssg-eyebrow { margin: 0; }
.home-hero h1 { max-width: 530px; }
.home-hero-copy > .ssg-lead { max-width: 510px; }
.home-actions { margin-top: 6px; gap: 12px 24px; align-items: center; }

/* Category need → identity → reason → action, with a page-owned image slot. */
.home-guides { padding-top: 36px; }
.home-category.ssg-route-card { display: grid; grid-template-columns: 44% 56%; gap: 0; padding: 0; overflow: hidden; }
.home-category-copy { align-self: center; align-items: flex-start; gap: 1rem; padding: 2rem; }
.home-category .ssg-route-card__title { max-width: 22ch; font-size: 1.75rem; line-height: 1.2; text-wrap: balance; }
.home-category .ssg-route-card__identity { padding-bottom: 0; }
.home-category .ssg-route-card__body { max-width: 40ch; font-size: 1rem; line-height: 1.55; }
.home-category-photo { position: relative; min-height: 340px; overflow: hidden; }
.home-category-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% center; mask-image: linear-gradient(to right,transparent,#000 16%); }

/* Expanded-library navigation uses the shared route and text-action anatomy. */
.home-trade-route { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.5rem; margin-top: 1rem; }
.home-product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 25rem), 1fr)); align-items: start; gap: 24px; }
.home-product-grid > article { min-width: 0; }
.home-vendor-links, .home-alternative-links { list-style: none; padding: 0; margin: 0; }
.home-vendor-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 0 1.25rem; }
.home-vendor-links li, .home-alternative-links li { min-width: 0; }
.home-product-grid .ssg-text-action { font-size: 1rem; }

/* Benchmark trust grouping: two contained bodies below the section heading. */
.home-trust-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.home-trust-grid > article { align-content: start; }
.home-trust-grid .ssg-actions { align-items: start; flex-direction: column; gap: 0; }

/* One contained planner route inside the shared full-width dark close. */
.home-planning > .ssg-container { display: grid; grid-template-columns: minmax(0, 420fr) minmax(0, 664fr); align-items: start; gap: 3rem; }
.home-planning .ssg-section-head { margin-bottom: 0; }
.home-planner-route { min-width: 0; }
.home-planner-route > .ssg-text-action { justify-self: start; }

@media (max-width: 1000px) {
  .home-opening::before { background: linear-gradient(90deg, #fbfaf7 0%, #fbfaf7ef 50%, #fbfaf7d9 70%, #fbfaf733 100%); }
}
@media (max-width: 960px) {
  .home-planning > .ssg-container { grid-template-columns: minmax(0, 1fr); gap: var(--ssg-space-6); }
}
@media (max-width: 860px) {
  .home-planning > .ssg-container { gap: var(--ssg-space-5); }
  .home-category.ssg-route-card { grid-template-columns: 1fr; }
  .home-category-copy { padding: 1.5rem; }
  .home-category .ssg-route-card__title { max-width: none; font-size: 1.5rem; }
  .home-category .ssg-route-card__body { max-width: 52ch; }
  .home-category-photo { min-height: 0; height: 260px; }
  .home-category-photo img { mask-image: linear-gradient(to bottom,transparent,#000 16%); }
}
@media (max-width: 700px) {
  .home-product-grid, .home-vendor-links { grid-template-columns: 1fr; }

  .home-opening { display: flex; flex-direction: column; }
  .home-opening::before, .home-opening::after { display: none; }
  .home-hero { order: 0; min-height: 0; padding-block: 32px 28px; }
  .home-hero-copy { gap: 20px; max-width: none; width: 100%; }
  .home-actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .home-landscape { order: 1; position: relative; z-index: 0; height: 180px; }
  .home-landscape img { object-position: 60% center; }
  .home-landscape::after { content: ""; position: absolute; inset: auto 0 0; height: 60px; background: linear-gradient(transparent, #fbfaf7); }
  .home-category.ssg-route-card, .home-trust-grid { grid-template-columns: 1fr; gap: 24px; }
  .home-category.ssg-route-card { gap: 0; }
  .home-category-copy { padding-bottom: 1rem; }
  .home-category-photo { min-height: 0; height: 220px; }
  .home-category-copy .ssg-button { width: 100%; }
}
@media print {
.home-landscape, .home-opening::before, .home-opening::after { display: none; }
  .home-hero { min-height: 0; padding-block: 1rem; }
}

/* Direct business routes keep the overview secondary. */
.ssg-home .home-business-actions { align-items: flex-start; flex-direction: column; gap: .25rem; }
.ssg-home .home-business .home-category-copy h2 { font-size: clamp(1.75rem, 2.7vw, 2.25rem); }
.ssg-home .home-business .ssg-caveat .ssg-text-action { display: inline-flex; }
