/* Homepage — page-specific styles.
   Artwork hooks and composition tweaks only.
============================================================ */

.s-hero--home-system {
  --hero-media-desktop: url("../assets/images/home-hero-desktop.webp");
  --hero-media-mobile: url("../assets/images/home-hero-mobile.webp");
  --hero-min-height: min(920px, 100svh);
  --hero-title-measure: 16ch;
}
/* Hero image paths — one per breakpoint */
/* desktop (≥1025px) : home-hero-desktop.webp  → via --hero-media-desktop  */
/* tablet (768–1024) : home-hero-tablet.webp   → explicit background-image  */
/* mobile (≤767px)   : home-hero-mobile.webp   → explicit background-image  */

.s-hero--home-system .s-hero__inner {
  grid-template-columns: minmax(0, 0.95fr) minmax(min(360px, 100%), 0.82fr);
}

.s-hero--home-system .s-hero__title {
  letter-spacing: -0.02em;
}

.s-hero--home-system .s-hero__copy {
  max-width: 58ch;
}

/* Full-bleed image: covers the whole hero width, gradient overlay keeps copy readable. */
.s-hero--home-system .s-hero__media {
  inset: var(--header-height) 0 0 0;
  width: 100%;
  background-position: center center;
  -webkit-mask-image: none;
  mask-image: none;
}

.s-hero--home-system .s-hero__media::before {
  background:
    linear-gradient(
      90deg,
      #061022 0%,
      rgba(6, 16, 34, 0.90) 18%,
      rgba(6, 16, 34, 0.62) 38%,
      rgba(6, 16, 34, 0.20) 60%,
      transparent 76%
    ),
    linear-gradient(0deg, rgba(6, 16, 34, 0.44), transparent 36%);
}

/* Tablet image (768px – 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .s-hero--home-system .s-hero__media {
    background-image: url("../assets/images/home-hero-tablet.webp");
  }
}

/* Mobile (≤767px): full-bleed absolute background with mobile image and top-down overlay.
   Core.css repositions s-hero__media to a relative block at 760px — override it back. */
@media (max-width: 767px) {
  .s-hero--home-system .s-hero__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    background-image: url("../assets/images/home-hero-mobile.webp");
    background-size: cover;
    background-position: center center;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .s-hero--home-system .s-hero__media::before {
    background: linear-gradient(
      180deg,
      rgba(6, 16, 34, 0.82) 0%,
      rgba(6, 16, 34, 0.54) 45%,
      rgba(6, 16, 34, 0.72) 100%
    );
  }
}

.home-hidden-quote blockquote span,
.home-hidden-quote cite span {
  color: var(--section-accent);
}

.home-support-grid,
.home-rhythm-steps,
.home-area-grid,
.home-way-grid {
  margin-top: clamp(3rem, 5.5vw, 4.75rem);
}

.home-rhythm-steps {
  --step-min: 19rem;
}

.home-rhythm-steps .c-step {
  text-align: center;
}

.home-rhythm-steps .c-step h3,
.home-rhythm-steps .c-step p {
  margin-inline: auto;
}

.home-areas-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-5);
  align-items: center;
  max-width: 1060px;
}

.home-areas-cta p {
  margin: 0;
}

.home-methods-panel {
  margin-top: var(--space-7);
}

.home-methods-panel p + p {
  padding-top: var(--space-4);
  border-top: 1px solid var(--section-rule-soft);
  color: var(--section-accent);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1rem + 0.65vw, 1.5rem);
  font-style: italic;
  line-height: 1.35;
}

.home-about-split {
  align-items: center;
}

.home-about-credentials {
  margin-top: var(--space-6);
}

.home-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: var(--space-6);
  color: var(--section-heading);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  text-decoration: none;
}

.home-text-link:hover {
  color: var(--section-accent);
}

.home-cta-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin: var(--space-5) 0 0;
  padding: 0;
  color: var(--section-muted);
  font-size: var(--text-sm);
}

@media (max-width: 760px) {
  .home-areas-cta {
    grid-template-columns: 1fr;
  }

  .home-areas-cta .c-btn {
    width: 100%;
    justify-content: center;
  }

  .home-cta-meta {
    justify-content: center;
    text-align: center;
  }
}


/* Phase 2.3 fidelity refinements from original homepage */

/* Original homepage hero weighting: slightly wider left column. */
.s-hero--home-system .s-hero__inner {
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.82fr);
}

/* Restore the stronger hidden-load quote card rhythm. */
.home-hidden-quote {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.home-hidden-quote::before {
  margin-bottom: 0;
}

.home-hidden-quote blockquote {
  color: var(--section-heading);
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  font-style: normal;
  line-height: 1.2;
}

.home-hidden-quote blockquote::after {
  content: "";
  display: block;
  width: 9rem;
  height: 1px;
  margin: var(--space-5) auto;
  background: linear-gradient(90deg, transparent, var(--section-rule), transparent);
}

.home-hidden-quote cite {
  max-width: 17ch;
  color: var(--section-heading);
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.6vw, 2.4rem);
  font-style: normal;
  line-height: 1.12;
}

/* Match original dark support grid tone more closely. */
.home-support-grid .c-card h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.25;
}

.home-support-grid .c-card p {
  color: rgba(247, 239, 227, 0.88);
}

/* Keep dark section lead text warmer/brighter than muted metadata. */
.t-dark .c-heading-group__lead,
.t-dark .c-heading-group__copy p,
.t-dark-soft .c-heading-group__lead,
.t-dark-soft .c-heading-group__copy p {
  color: var(--section-copy);
}

/* The original area cards had icons commented out, so keep these text-led. */
.home-area-grid .c-link-card {
  grid-template-columns: 1fr;
}

/* CTA meta as plain reassurance text, not icon-led. */
.home-cta-meta {
  gap: 0.75rem 1.15rem;
}

.home-cta-meta li + li::before {
  content: "·";
  margin-right: 1.15rem;
  color: var(--section-accent);
}

@media (max-width: 760px) {
  .home-hidden-quote cite {
    max-width: none;
  }

  .home-cta-meta li + li::before {
    content: none;
    margin: 0;
  }
}
