/**
 * Home: proof and issue-led decision support.
 * Adds verifiable evidence and problem-based navigation without changing the
 * existing hero, service narrative, works, voice, or column modules.
 */

body.home .slide--proof,
body.home .slide--problem-guide {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 100svh;
  height: auto;
  padding: clamp(104px, 10vw, 160px) 0;
}

body.home .slide--proof {
  --proof-text: #f5f2ec;
  --proof-muted: rgba(245, 242, 236, 0.66);
  --proof-line: rgba(245, 242, 236, 0.2);
  --proof-surface-start: #202124;
  --proof-surface-mid: #2a2729;
  --proof-glow: rgba(233, 46, 60, 0.12);
  color: var(--proof-text);
  background:
    radial-gradient(circle at 84% 16%, var(--proof-glow), transparent 34%),
    linear-gradient(145deg, var(--proof-surface-start) 0%, var(--proof-surface-mid) 58%, var(--proof-surface-start) 100%);
}

body.home .slide--proof::before {
  content: "PROOF";
  position: absolute;
  right: 3vw;
  bottom: -0.12em;
  color: rgba(255, 255, 255, 0.025);
  font-family: var(--serif);
  font-size: clamp(110px, 21vw, 340px);
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.055em;
  pointer-events: none;
}

body.home .home-proof {
  position: relative;
  z-index: 1;
}

body.home .home-proof__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.68fr);
  gap: clamp(48px, 9vw, 144px);
  align-items: end;
  padding-top: 18px;
  border-top: 1px solid var(--proof-line);
}

body.home .slide--proof .overline,
body.home .slide--proof .section-title,
body.home .slide--proof .text-link {
  color: var(--proof-text);
}

body.home .slide--proof .section-title {
  max-width: 11em;
  margin-bottom: 0;
  font-size: clamp(38px, 4.4vw, 68px);
  line-height: 1.36;
}

body.home .slide--proof .section-title > span {
  display: block;
}

body.home .slide--proof .section-title::after {
  background: currentColor;
}

body.home .home-proof__lead {
  max-width: 36em;
  margin: 0 0 8px;
  color: var(--proof-muted);
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 2;
  text-wrap: pretty;
}

body.home .home-proof__body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.65fr);
  gap: clamp(44px, 8vw, 124px);
  margin-top: clamp(64px, 7vw, 104px);
}

body.home .home-proof__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--proof-line);
  border-bottom: 1px solid var(--proof-line);
}

body.home .home-proof__metrics > div {
  min-width: 0;
  padding: clamp(28px, 4vw, 52px) clamp(18px, 2.8vw, 38px);
}

body.home .home-proof__metrics > div + div {
  border-left: 1px solid var(--proof-line);
}

body.home .home-proof__metrics dt {
  min-height: 3.4em;
  color: var(--proof-muted);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.08em;
}

body.home .home-proof__metrics dd {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin: 24px 0 0;
}

body.home .home-proof__metrics strong {
  font-family: var(--serif);
  font-size: clamp(52px, 6.6vw, 100px);
  font-style: italic;
  font-weight: 400;
  line-height: 0.84;
  letter-spacing: -0.055em;
}

body.home .home-proof__metrics dd span {
  margin-bottom: 5px;
  color: var(--proof-muted);
  font-family: var(--serif);
  font-size: 10px;
  font-style: italic;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.home .home-proof__evidence {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

body.home .home-proof__quote {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 0 30px;
  border-top: 1px solid var(--proof-line);
  border-bottom: 1px solid var(--proof-line);
  color: inherit;
}

body.home .home-proof__quote-label,
body.home .home-proof__quote-source,
body.home .home-proof__quote-link {
  color: var(--proof-muted);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

body.home .home-proof__quote blockquote {
  margin: 30px 0 34px;
  font-family: var(--serif);
  font-size: clamp(21px, 2.25vw, 34px);
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0.02em;
  text-wrap: pretty;
}

body.home .home-proof__quote-source {
  margin-top: auto;
  text-transform: none;
}

body.home .home-proof__quote-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  color: var(--proof-text);
}

body.home .home-proof__quote-link::after {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  transition: width 280ms ease;
}

body.home .home-proof__quote:hover .home-proof__quote-link::after,
body.home .home-proof__quote:focus-visible .home-proof__quote-link::after {
  width: 56px;
}

body.home .home-proof__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 26px;
}

body.home .slide--proof .text-link {
  border-bottom-color: var(--proof-line);
}

body.home .home-proof__note {
  margin: 28px 0 0;
  color: rgba(245, 242, 236, 0.46);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.05em;
}

body.home .slide--problem-guide {
  background:
    linear-gradient(90deg, rgba(233, 46, 60, 0.045), transparent 38%),
    #f3f0ea;
}

body.home .home-problems {
  display: grid;
  grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(56px, 10vw, 160px);
  align-items: start;
}

body.home .home-problems__head {
  position: sticky;
  top: calc(var(--header-h) + 40px);
  padding-top: 18px;
  border-top: 1px solid rgba(16, 17, 19, 0.18);
}

body.home .home-problems__head .section-title {
  max-width: 10em;
  margin-bottom: 28px;
  font-size: clamp(36px, 3.4vw, 50px);
  line-height: 1.4;
}

body.home .home-problems__head .section-title > span {
  display: block;
  white-space: nowrap;
}

body.home .home-problems__head .section-lead {
  max-width: 30em;
  margin: 0;
  color: rgba(16, 17, 19, 0.64);
  font-size: 14px;
  line-height: 1.95;
  text-wrap: pretty;
}

body.home .home-problems__list {
  border-top: 1px solid rgba(16, 17, 19, 0.18);
}

body.home .home-problems__list > a {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 34px;
  gap: clamp(18px, 3vw, 42px);
  align-items: center;
  min-height: clamp(124px, 11vw, 166px);
  padding: 26px 4px;
  border-bottom: 1px solid rgba(16, 17, 19, 0.18);
  color: inherit;
  transition: color 220ms ease, padding 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.home .home-problems__list > a::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.home .home-problems__number {
  color: rgba(16, 17, 19, 0.45);
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 52px);
  font-style: italic;
  line-height: 1;
}

body.home .home-problems__copy {
  display: grid;
  gap: 12px;
}

body.home .home-problems__copy strong {
  max-width: 26em;
  font-size: clamp(18px, 1.8vw, 27px);
  line-height: 1.6;
  text-wrap: pretty;
}

body.home .home-problems__copy small {
  color: rgba(16, 17, 19, 0.54);
  font-size: 11px;
  letter-spacing: 0.07em;
}

body.home .home-problems__arrow {
  justify-self: end;
  font-family: var(--serif);
  font-size: 22px;
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.home .home-problems__list > a:hover,
body.home .home-problems__list > a:focus-visible {
  color: var(--accent);
  padding-left: 14px;
  padding-right: 14px;
}

body.home .home-problems__list > a:hover::before,
body.home .home-problems__list > a:focus-visible::before {
  transform: scaleX(1);
}

body.home .home-problems__list > a:hover .home-problems__arrow,
body.home .home-problems__list > a:focus-visible .home-problems__arrow {
  transform: translate3d(4px, -4px, 0);
}

@media (max-width: 960px) {
  body.home .slide--proof,
  body.home .slide--problem-guide {
    min-height: 0;
    padding: 86px 0;
  }

  body.home .home-proof__head,
  body.home .home-proof__body,
  body.home .home-problems {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  body.home .home-proof__body {
    margin-top: 16px;
  }

  body.home .home-proof__evidence {
    max-width: 48em;
  }

  body.home .home-problems__head {
    position: static;
  }

  body.home .home-problems__head .section-title {
    max-width: 13em;
  }
}

@media (max-width: 700px) {
  body.home .slide--proof,
  body.home .slide--problem-guide {
    padding: 72px 0;
  }

  body.home .slide--proof .section-title,
  body.home .home-problems__head .section-title {
    font-size: clamp(30px, 8.8vw, 42px);
  }

  body.home .slide--proof .section-title > span,
  body.home .home-problems__head .section-title > span {
    display: inline;
  }

  body.home .slide--proof .section-title > span::before,
  body.home .home-problems__head .section-title > span::before {
    content: " ";
  }

  body.home .slide--proof .home-proof__title > span {
    display: block;
  }

  body.home .slide--proof .home-proof__title > span::before {
    content: "";
  }

  body.home .home-problems__head .section-title > span::before {
    content: "";
  }

  body.home .home-proof__metrics {
    grid-template-columns: 1fr;
  }

  body.home .home-proof__metrics > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 20px;
    padding: 24px 0;
  }

  body.home .home-proof__metrics > div + div {
    border-top: 1px solid var(--proof-line);
    border-left: 0;
  }

  body.home .home-proof__metrics dt {
    min-height: 0;
  }

  body.home .home-proof__metrics dd {
    margin: 0;
  }

  body.home .home-proof__metrics strong {
    font-size: 56px;
  }

  body.home .home-problems__list > a {
    grid-template-columns: 44px minmax(0, 1fr) 22px;
    gap: 14px;
    min-height: 116px;
  }

  body.home .home-problems__number {
    font-size: 28px;
  }

  body.home .home-problems__copy strong {
    font-size: 16px;
  }

  body.home .home-problems__copy small {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home .home-proof__quote-link::after,
  body.home .home-problems__list > a,
  body.home .home-problems__list > a::before,
  body.home .home-problems__arrow {
    transition: none !important;
  }
}
