/* ============================================================
   ACS HERO
   ============================================================ */

.hero-offset {
  padding-top: calc(60px + env(safe-area-inset-top, 0px));
}

.hero {
  background: var(--color-page);
  padding-top: var(--space-lg);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--color-rule);
}

/* Editorial layout: text column + right column (empty on subpages) */
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  column-gap: clamp(var(--space-lg), 5vw, var(--space-2xl));
  align-items: start;
}

.hero:not(.hero--home) .container > * {
  grid-column: 1;
}

/* Home: headline + image only — stats live in .hero-stats so they sit below the first screen */
.hero--home {
  padding-bottom: var(--space-xl);
  border-bottom: none; /* separator is the stats band’s top rule, not a double line */
}

@media (min-width: 769px) {
  .hero--home {
    /* Tall hero band so the metrics row starts below the initial viewport */
    min-height: calc(100svh - 60px - env(safe-area-inset-top, 0px));
    box-sizing: border-box;
    /* Vertically center headline + image in the first screen (no dead gap at the bottom) */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    padding-block: var(--space-lg);
  }
}

.hero--home .container {
  grid-template-columns: 1fr;
  column-gap: 0;
}

.hero--home .hero__top {
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  grid-template-rows: minmax(0, auto);
  column-gap: clamp(var(--space-lg), 5vw, var(--space-2xl));
  align-items: stretch;
}

.hero--home .hero__content {
  align-self: start;
  min-width: 0;
}

/* Image column matches row height (left column); crop with object-fit */
.hero--home .hero__visual {
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Home stats band (section.hero-stats — below the hero, full-bleed rule) */
.hero-stats {
  padding-block: 0;
}

.hero-stats .hero__stats-band {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-top: 1px solid var(--color-rule);
  padding-top: var(--space-lg);
  padding-bottom: var(--space-xl);
  box-sizing: border-box;
}

.hero-stats .hero__stats.stat-row {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
  justify-content: center;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  gap: var(--space-xl);
}

.hero-stats .hero__stats .stat-item {
  text-align: center;
}

.hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--color-rule);
}

.hero--home .hero__visual img {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-md);
}
.hero__eyebrow-text {
  font-family: var(--font-sans);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-orange);
  white-space: nowrap;
}
.hero__eyebrow-line {
  /* Removed for editorial restraint — clay text alone carries the eyebrow.
     Two clay elements 8px apart cancelled each other out. */
  display: none;
}

.hero__h1 {
  font-family: var(--font-serif);
  font-size: var(--text-4xl);
  font-weight: 400;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
  max-width: 760px;
  margin-bottom: var(--space-md);
  text-align: left;
}

/* Home: tighter measure so the first line breaks more deliberately (≈2 lines before <br>) */
.hero--home .hero__h1 {
  max-width: min(32rem, 100%);
}
.hero__h1 em {
  font-style: italic;
  color: var(--color-text-body);
}

.hero__sub {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-body);
  max-width: 480px;
  margin-bottom: var(--space-lg);
  text-align: left;
}

.hero--home .hero__sub {
  max-width: min(38rem, 100%);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

/* Stats (subpages / default; home stats use .hero-stats section) */
.hero__stats {
  margin-top: var(--space-xl);
}

.hero-stats .hero__stats {
  margin-top: 0;
}

.hero--subpage {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}
.hero--subpage .hero__h1 {
  font-size: var(--text-3xl);
  max-width: 600px;
}

@media (max-width: 768px) {
  .hero {
    padding-top: var(--space-md);
    padding-bottom: var(--space-xl);
  }

  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero--home .hero__top {
    grid-template-columns: 1fr;
    row-gap: var(--space-md);
  }

  /* Full-width image band: fixed aspect, cropped — reads as one row on small screens */
  .hero--home .hero__visual {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-top: var(--space-lg);
    margin-inline: 0;
    aspect-ratio: 16 / 10;
    min-height: 168px;
    max-height: min(48vw, 280px);
    overflow: hidden;
  }

  .hero--home .hero__visual img {
    flex: none;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center 32%;
  }

  .hero__eyebrow {
    flex-wrap: wrap;
    row-gap: var(--space-xs);
  }

  .hero__eyebrow-text {
    white-space: normal;
    line-height: 1.35;
  }

  .hero--home {
    min-height: 0;
  }

  .hero-stats .hero__stats-band {
    padding-top: var(--space-md);
    padding-bottom: var(--space-lg);
  }

  /* Stack stats; hide dividers; comfortable tap targets */
  .hero-stats .hero__stats.stat-row {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--space-lg);
    padding-inline: var(--container-pad-mobile);
  }

  .hero-stats .hero__stats .stat-divider {
    display: none;
  }

  .hero__h1 {
    font-size: 36px;
  }

  .hero--home .hero__h1 {
    max-width: 100%;
  }

  .hero--subpage .hero__h1 {
    font-size: var(--text-3xl);
  }

  .hero__sub {
    font-size: var(--text-base);
    max-width: 100%;
  }

  .hero--home .hero__sub {
    max-width: 100%;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: var(--space-md);
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  .hero__stats {
    margin-top: var(--space-lg);
  }

  .stat-row {
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
  }

  .stat-divider {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: var(--space-sm);
    padding-bottom: var(--space-lg);
  }

  .hero__h1 {
    font-size: var(--text-4xl);
  }

  .hero--subpage .hero__h1 {
    font-size: var(--text-3xl);
  }

  .hero--home .hero__visual {
    max-height: min(52vw, 220px);
    min-height: 140px;
  }

  .hero-stats .hero__stats.stat-row {
    gap: var(--space-md);
  }
}
