/* ===================================================================
   Phixo · Editor Home — page-specific layout.
   Tokens only (var(--…)); no hardcoded colour. Classes are prefixed
   phixo-home__ to avoid collisions; shared house classes (.band,
   .container, .eyebrow, .btn, .section-title, .text-link, .actions)
   are reused as-is and styled by phixo.css.
   The before/after widget itself is styled by the BA agent's
   phixo-series-compare.css; only the home-page fallback frame and the
   full-bleed wrapper live here.
=================================================================== */

/* ---- 1 · Hero -------------------------------------------------- */
.phixo-home__hero {
  text-align: center;
}
.phixo-home__hero-copy {
  max-width: 640px;
  margin: 0 auto;
}
.phixo-home__hero-h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  margin: 18px 0 20px;
}
.phixo-home__hero-lede {
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
}
.phixo-home__hero-actions {
  justify-content: center;
  margin-top: 28px;
}

/* Signature before/after sits full-bleed under the hero copy. */
.phixo-home__signature {
  margin-top: clamp(36px, 5vw, 64px);
}
.phixo-home__signature .container {
  max-width: var(--max);
}

/* Static fallback frame (only rendered when the BA subsystem is absent). */
.phixo-home__ba-fallback {
  margin: 0;
}
.phixo-home__ba-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border: 1px solid var(--line);
  background: var(--line);
}
.phixo-home__ba-cell {
  position: relative;
  background: var(--stone-softer);
}
.phixo-home__ba-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  padding: 4px 9px;
}
.phixo-home__ba-caption {
  margin-top: 14px;
  text-align: center;
  font-family: var(--sans);
  font-size: var(--fs-caption);
  color: var(--mute);
}

/* ---- 2 · Selected series (3-up) -------------------------------- */
.phixo-home__series-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}
.phixo-home__series-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  margin: 8px 0 0;
}
.phixo-home__series-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.5vw, 30px);
}
.phixo-home__series-card {
  min-width: 0;
}
.phixo-home__series-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.phixo-home__series-media {
  margin-bottom: 14px;
  overflow: hidden;
}
.phixo-home__series-media .img-slot,
.phixo-home__series-media .phixo-img {
  transition: transform 0.5s ease;
}
.phixo-home__series-link:hover .phixo-img {
  transform: scale(1.03);
}
.phixo-home__series-meta {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: var(--fs-meta);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 8px;
}
.phixo-home__series-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--fs-h3);
  line-height: var(--lh-tight);
  color: var(--ink);
  margin: 0;
}
.phixo-home__series-link:hover .phixo-home__series-name {
  color: var(--ink-soft);
}

/* ---- 3 · Process band — RAW → COLOUR → RETOUCH → FINAL --------- */
.phixo-home__stages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 24px);
}
.phixo-home__stage {
  position: relative;
  padding: 26px 22px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.phixo-home__stage--final {
  border-color: var(--brass);
}
.phixo-home__stage-n {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1;
  color: var(--mute);
  margin-bottom: 14px;
}
.phixo-home__stage--final .phixo-home__stage-n {
  color: var(--brass);
}
.phixo-home__stage-label {
  font-family: var(--sans);
  font-weight: 600;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 10px;
}
.phixo-home__stage--final .phixo-home__stage-label {
  color: var(--brass);
}
.phixo-home__stage-body {
  font-family: var(--sans);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body);
  color: var(--ink-soft);
  margin: 0;
}

/* ---- 4 · About teaser ------------------------------------------ */
.phixo-home__about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
.phixo-home__about-media .img-slot--portrait {
  aspect-ratio: 4 / 5;
}
.phixo-home__about-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--fs-h1);
  line-height: var(--lh-heading);
  margin: 14px 0 18px;
}
.phixo-home__about-copy p {
  max-width: var(--measure);
  margin-bottom: 20px;
}

/* ---- 5 · Closing CTA (dark band) ------------------------------- */
.phixo-home__cta-inner {
  text-align: center;
}
.phixo-home__cta-h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--fs-h1);
  line-height: var(--lh-heading);
  margin: 16px auto 18px;
  max-width: 18ch;
}
.phixo-home__cta-lede {
  max-width: 52ch;
  margin: 0 auto 30px;
}
.phixo-home__cta-actions {
  justify-content: center;
}

/* ---- Responsive ------------------------------------------------ */
@media (max-width: 900px) {
  .phixo-home__series-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .phixo-home__stages {
    grid-template-columns: repeat(2, 1fr);
  }
  .phixo-home__about {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .phixo-home__series-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .phixo-home__series-grid {
    grid-template-columns: 1fr;
  }
  .phixo-home__stages {
    grid-template-columns: 1fr;
  }
  .phixo-home__ba-pair {
    grid-template-columns: 1fr;
  }
}
