/* Homepage layout only. Typography, colour, header, footer, and controls
   intentionally inherit the shared LMI system from v14.css. */

html,
body.home-editorial {
  background: var(--ink);
}

/* Preserve the established LMI hero and button treatment. */
.home-editorial .v8-hero {
  min-height: 0;
  display: block;
  padding: 104px 0 88px !important;
  text-align: center;
  background: var(--ink);
}

.home-editorial .v8-hero .wrap {
  position: relative;
  z-index: 2;
}

.home-editorial .v8-hero h1 {
  max-width: 34ch !important;
  margin: 0 auto !important;
  font-family: var(--serif) !important;
  font-size: clamp(21px, 2.6vw, 31px) !important;
  font-weight: 300 !important;
  font-style: normal !important;
  line-height: 1.3 !important;
  letter-spacing: -0.015em !important;
  text-align: center;
  text-wrap: balance;
}

.home-editorial .v8-hero .actions {
  justify-content: center;
  margin-top: 30px !important;
}

/* Ndea-inspired editorial rhythm without borrowing its type or artwork. */
.editorial-flow {
  width: min(100% - 56px, var(--w));
  margin: 0 auto;
  padding-top: 28px;
}

.editorial-section {
  min-height: clamp(440px, 64vh, 700px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  padding: clamp(72px, 8vw, 118px) 0;
}

.editorial-section .copy {
  grid-column: 1 / span 6;
  max-width: 610px;
  padding-top: 22px;
  border-top: 1px solid var(--ln-d);
}

/* Ndea's motion is a quiet reveal, not a decorative animation system. */
.editorial-motion .editorial-section .copy,
.editorial-motion .editorial-end {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 800ms ease, transform 800ms ease;
}

.editorial-motion .editorial-section .copy {
  border-top-color: transparent;
}

.editorial-motion .editorial-section .copy.is-visible,
.editorial-motion .editorial-end.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.editorial-motion .editorial-section .copy::before {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  margin: -23px 0 22px;
  background: var(--on-ink-3);
  transition: width 1100ms cubic-bezier(.2, .7, .2, 1);
}

.editorial-motion .editorial-section .copy.is-visible::before {
  width: 100%;
}

.editorial-section.right .copy {
  grid-column: 7 / -1;
}

.editorial-section.compact {
  min-height: clamp(400px, 56vh, 620px);
}

.editorial-kicker {
  margin: 0 0 34px;
  color: var(--on-ink-3);
  font-family: var(--mono);
  font-size: var(--f12);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.editorial-section h2,
.editorial-end h2 {
  color: var(--on-ink);
  font-family: var(--serif);
  font-weight: 300;
  font-style: normal;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.editorial-section h2 {
  max-width: 21ch;
  margin: 0 0 25px;
  font-size: clamp(1.8rem, 3.1vw, 2.8rem);
}

.editorial-section p {
  max-width: 58ch;
  margin: 0 0 1.15em;
  color: var(--on-ink-2);
  font-family: var(--text);
  font-size: var(--f16);
  line-height: 1.65;
}

.editorial-section p:not(.quiet) {
  color: var(--on-ink);
}

.editorial-link {
  display: inline-block;
  margin-top: 16px;
  padding-bottom: 2px;
  color: var(--on-ink-2);
  border-bottom: 1px solid var(--ln-d);
  font-family: var(--sans);
  font-size: var(--f13);
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}

.editorial-link:hover,
.editorial-link:focus-visible {
  color: var(--on-ink);
  border-color: var(--on-ink-3);
}

.editorial-end {
  width: min(100% - 56px, var(--w));
  margin: 0 auto;
  padding: clamp(82px, 10vw, 140px) 0 clamp(76px, 9vw, 124px);
  border-top: 1px solid var(--ln-d);
}

.editorial-end h2 {
  max-width: 25ch;
  margin: 0 0 26px;
  font-size: clamp(2rem, 4vw, 3.7rem);
}

.editorial-end > p:not(.editorial-kicker) {
  max-width: 610px;
  margin: 0 0 26px;
  color: var(--on-ink-2);
  font-family: var(--serif);
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  font-weight: 300;
  line-height: 1.55;
}

@media (max-width: 880px) {
  .editorial-flow,
  .editorial-end {
    width: calc(100% - 40px);
  }

  .editorial-section,
  .editorial-section.compact {
    min-height: 0;
    display: block;
    padding: 68px 0 92px;
  }

  .editorial-section .copy,
  .editorial-section.right .copy {
    max-width: 640px;
  }

  .editorial-kicker {
    margin-bottom: 26px;
  }
}

@media (max-width: 560px) {
  .home-editorial .v8-hero {
    padding: 84px 0 72px !important;
  }

  .home-editorial .v8-hero h1 {
    max-width: 31ch !important;
    font-size: clamp(21px, 7.2vw, 29px) !important;
  }

  .home-editorial .v8-hero .actions {
    margin-top: 28px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .editorial-motion .editorial-section .copy,
  .editorial-motion .editorial-end {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .editorial-motion .editorial-section .copy::before {
    width: 100%;
    transition: none;
  }
}
