/**
 * Homepage visual redesign — photography, contrast, composed sections.
 * Scoped to .home-page so other templates remain unchanged.
 */

.slug-home {
  --logo-size: 5.75rem;
  --header-h: 6.5rem;
}

@media (min-width: 48em) {
  .slug-home {
    --logo-size: 6.5rem;
    --header-h: 7.25rem;
  }
}

.slug-home .site-header {
  border-bottom-color: transparent;
  box-shadow: 0 1px 0 rgb(24 33 43 / 0.08);
}

.home-page {
  --home-hero-min: 32rem;
}

@media (min-width: 64em) {
  .home-page {
    --home-hero-min: 38rem;
  }
}

/* -------------------------------------------------------------------------- */
/* Hero                                                                        */
/* -------------------------------------------------------------------------- */

.home-hero {
  position: relative;
  isolation: isolate;
  min-height: var(--home-hero-min);
  color: var(--color-white);
  background: var(--color-ink);
}

.home-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  overflow: clip; /* contain object-fit paint; layout box is already full-bleed */
  pointer-events: none;
}

.home-hero__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.home-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  min-height: var(--home-hero-min);
  background:
    linear-gradient(90deg, rgb(0 0 0 / 0.82) 0%, rgb(0 0 0 / 0.55) 48%, rgb(0 0 0 / 0.28) 100%),
    linear-gradient(0deg, rgb(0 0 0 / 0.55) 0%, transparent 55%);
  padding-block: 3.5rem 3.75rem;
}

.home-hero__inner {
  width: min(100% - (var(--pad-inline) * 2), var(--width-content));
  margin-inline: auto;
  max-width: none;
}

.home-hero__eyebrow {
  margin: 0 0 0.85rem;
  color: rgb(255 255 255 / 0.82);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero h1 {
  margin: 0 0 1rem;
  color: var(--color-white);
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1.12;
  max-width: 16ch;
  text-wrap: balance;
}

.home-hero__lead {
  margin: 0 0 1.75rem;
  color: rgb(255 255 255 / 0.9);
  font-size: 1.125rem;
  line-height: 1.55;
  max-width: 38ch;
}

.home-hero__actions {
  margin: 0;
}

.button--hero,
.button--hero:visited {
  min-height: 3rem;
  padding-inline: 1.5rem;
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: var(--color-white);
  font-weight: 600;
}

.button--hero:hover,
.button--hero:visited:hover {
  background: var(--color-action-hover);
  border-color: var(--color-action-hover);
  color: var(--color-white);
}

.button--on-dark,
.button--on-dark:visited {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-ink);
}

.button--on-dark:hover,
.button--on-dark:visited:hover {
  background: var(--color-pale);
  border-color: var(--color-pale);
  color: var(--color-ink);
}

.button--ghost,
.button--ghost:visited {
  background: transparent;
  border-color: rgb(255 255 255 / 0.55);
  color: var(--color-white);
}

.button--ghost:hover,
.button--ghost:visited:hover {
  background: rgb(255 255 255 / 0.1);
  border-color: var(--color-white);
  color: var(--color-white);
}

/* -------------------------------------------------------------------------- */
/* Partners                                                                    */
/* -------------------------------------------------------------------------- */

.home-partners {
  background: var(--color-black);
  color: var(--color-white);
  padding-block: 2.75rem;
}

.home-partners__inner {
  display: grid;
  gap: 2rem;
}

@media (min-width: 64em) {
  .home-partners__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    gap: 3rem;
  }
}

.home-partners h2 {
  color: var(--color-white);
  max-width: none;
  margin: 0 0 0.75rem;
}

.home-partners p {
  margin: 0;
  color: rgb(255 255 255 / 0.78);
  max-width: 42rem;
}

.home-partners__more {
  margin-top: 0.65rem !important;
  color: rgb(255 255 255 / 0.62) !important;
  font-size: 0.95rem;
}

.section__kicker--on-dark {
  color: #7ec8e0;
}

.home-partners__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 0;
}

@media (min-width: 48em) {
  .home-partners__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

.home-partners__list li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5.5rem;
  padding: 1rem 1.1rem;
  border: 0;
  background: var(--color-white);
  text-align: center;
}

.home-partners__list img {
  display: block;
  width: 8rem;
  height: 2.5rem;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

.home-partners__list li:nth-child(2) img {
  width: 3rem;
  height: 2.75rem;
}

/* -------------------------------------------------------------------------- */
/* Intro + section heads                                                       */
/* -------------------------------------------------------------------------- */

.home-section-head {
  margin-bottom: 2.5rem;
  max-width: 42rem;
}

.home-section-head h2 {
  max-width: none;
}

.home-intro {
  padding-block: var(--section-space);
}

.home-intro__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 64em) {
  .home-intro__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3.5rem;
  }
}

.home-intro__visual {
  margin: 0;
  overflow: hidden;
  background: var(--color-pale);
}

.home-intro__visual img,
.home-feature__visual img,
.home-service-summary__visual img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.home-intro__copy h2 {
  max-width: 16ch;
}

.home-checklist {
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  list-style: none;
}

.home-checklist li {
  position: relative;
  padding-block: 0.55rem;
  padding-inline: 1.35rem 0;
  border-top: 1px solid var(--color-border);
  color: var(--color-ink);
  font-weight: 500;
}

.home-checklist li:last-child {
  border-bottom: 1px solid var(--color-border);
}

.home-checklist li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 1.05rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--color-blue);
}

/* -------------------------------------------------------------------------- */
/* Services                                                                    */
/* -------------------------------------------------------------------------- */

.section--pale {
  background: var(--color-pale);
}

.home-services {
  padding-block: var(--section-space);
}

.home-feature {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  background: var(--color-white);
}

@media (min-width: 64em) {
  .home-feature {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 0;
    align-items: stretch;
    margin-bottom: 2rem;
  }

  .home-feature--reverse .home-feature__visual {
    order: 2;
  }

  .home-feature--reverse .home-feature__body {
    order: 1;
  }
}

.home-feature__visual {
  margin: 0;
  overflow: hidden;
  background: var(--color-ink);
}

.home-feature__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 1.25rem 1.75rem;
}

@media (min-width: 64em) {
  .home-feature__body {
    padding: 2.5rem 2.75rem;
  }
}

.home-feature__label {
  margin: 0 0 0.5rem;
  color: var(--color-blue);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home-feature__body h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  max-width: 18ch;
}

.home-feature__body > p {
  margin: 0 0 1.25rem;
  color: var(--color-slate);
  max-width: 42ch;
}

.home-feature__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 0;
  max-width: 24rem;
}

.home-feature__actions .button {
  width: 100%;
  min-height: 3rem;
  box-sizing: border-box;
  justify-content: center;
  text-align: center;
}

@media (min-width: 30em) {
  .home-feature__actions {
    grid-template-columns: 1fr 1fr;
    max-width: 34rem;
  }
}

.home-service-row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 64em) {
  .home-service-row {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.home-service-summary {
  display: grid;
  gap: 1rem;
  background: var(--color-white);
}

@media (min-width: 40em) {
  .home-service-summary {
    grid-template-columns: 11rem minmax(0, 1fr);
    gap: 1.25rem;
    align-items: center;
    padding-inline-end: 1.25rem;
  }
}

.home-service-summary__visual {
  margin: 0;
  overflow: hidden;
  background: var(--color-ink);
}

.home-service-summary__visual img {
  aspect-ratio: 1 / 1;
}

.home-service-summary h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
}

.home-service-summary p {
  margin: 0 0 0.65rem;
  color: var(--color-slate);
}

.home-service-summary > div {
  padding: 0 1.1rem 1.1rem;
}

@media (min-width: 40em) {
  .home-service-summary > div {
    padding: 1rem 0;
  }
}

/* -------------------------------------------------------------------------- */
/* Genuine HP band                                                             */
/* -------------------------------------------------------------------------- */

.home-print-band {
  background: var(--color-ink);
  color: var(--color-white);
  padding-block: 3.5rem;
}

.home-print-band h2 {
  color: var(--color-white);
  max-width: 18ch;
  margin: 0 0 0.85rem;
}

.home-print-band p {
  color: rgb(255 255 255 / 0.82);
  max-width: 48rem;
}

.home-print-band .home-feature__actions {
  margin-top: 1.5rem;
  max-width: 36rem;
}

.home-print-band .home-feature__actions .button--hero,
.home-print-band .home-feature__actions .button--hero:visited {
  color: var(--color-white);
}

.home-print-band .home-feature__actions .button--ghost,
.home-print-band .home-feature__actions .button--ghost:visited {
  color: var(--color-white);
}

.home-print-band__inner {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 64em) {
  .home-print-band__inner {
    grid-template-columns: minmax(16rem, 0.9fr) minmax(0, 1.1fr);
    gap: 3rem;
  }
}

.home-print-band__visual {
  margin: 0;
  overflow: hidden;
  background: rgb(255 255 255 / 0.06);
}

.home-print-band__visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 58%;
}


/* -------------------------------------------------------------------------- */
/* Evidence                                                                    */
/* -------------------------------------------------------------------------- */

.home-evidence {
  padding-block: var(--section-space);
}

.home-reviews {
  width: 100%;
  min-width: 0;
}

.home-reviews .ti-widget,
.home-reviews .ti-widget-container {
  max-width: 100%;
}

.home-quotes {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 64em) {
  .home-quotes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
  }
}

.home-quotes blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.home-quotes blockquote::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-bottom: 1rem;
  background: var(--color-blue);
}

.home-quotes p {
  margin: 0 0 1rem;
  color: var(--color-ink);
  font-size: 1.05rem;
  line-height: 1.55;
}

.home-quotes footer {
  color: var(--color-slate);
  font-size: 0.9rem;
  font-weight: 600;
}

/* -------------------------------------------------------------------------- */
/* Process                                                                     */
/* -------------------------------------------------------------------------- */

.home-process {
  padding-block: var(--section-space);
}

.home-steps {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

@media (min-width: 64em) {
  .home-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

.home-steps li {
  padding-top: 0.25rem;
  border-top: 3px solid var(--color-blue);
}

.home-steps__num {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--color-blue);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.home-steps h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.home-steps p {
  margin: 0;
  color: var(--color-slate);
}

/* -------------------------------------------------------------------------- */
/* Closing CTA                                                                 */
/* -------------------------------------------------------------------------- */

.home-cta {
  background: var(--color-black);
  color: var(--color-white);
  padding-block: 3.75rem;
}

.home-cta__inner {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 64em) {
  .home-cta__inner {
    grid-template-columns: minmax(0, 1.4fr) auto;
    gap: 2.5rem;
  }
}

.home-cta h2 {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: var(--lh-heading, 1.16);
  max-width: 16ch;
  margin: 0 0 0.75rem;
}

.home-cta p {
  margin: 0;
  color: rgb(255 255 255 / 0.78);
  max-width: 42rem;
}

.home-cta a:not(.button) {
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.home-cta a:not(.button):visited {
  color: var(--color-white);
}

.home-cta a:not(.button):hover,
.home-cta a:not(.button):visited:hover {
  color: rgb(255 255 255 / 0.86);
}

/* Global a:visited is ink. Keep text links readable on every dark band. */
.home-print-band a:not(.button),
.home-print-band a:not(.button):visited,
.home-partners a:not(.button),
.home-partners a:not(.button):visited,
.page-hero__content a:not(.button),
.page-hero__content a:not(.button):visited,
.insights-hero a:not(.button),
.insights-hero a:not(.button):visited,
.section--cta a:not(.button),
.section--cta a:not(.button):visited {
  color: var(--color-white);
}

.page-hero__content .breadcrumbs a,
.page-hero__content .breadcrumbs a:visited {
  color: rgb(255 255 255 / 0.78);
}

.home-print-band a:not(.button):hover,
.home-print-band a:not(.button):visited:hover,
.home-partners a:not(.button):hover,
.home-partners a:not(.button):visited:hover,
.page-hero__content a:not(.button):hover,
.page-hero__content a:not(.button):visited:hover,
.insights-hero a:not(.button):hover,
.insights-hero a:not(.button):visited:hover,
.section--cta a:not(.button):hover,
.section--cta a:not(.button):visited:hover {
  color: rgb(255 255 255 / 0.86);
}

.home-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 0;
}

/* -------------------------------------------------------------------------- */
/* Reduce motion                                                               */
/* -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .home-hero__media img {
    transform: scale(1.02);
  }
}
