/* Homepage additions (hm-*). Reuses of-*, pf-*, about-* styles from the other pages. */
.hm-head { padding: 110px 52px 36px; max-width: 980px; }
.hm-head-text { margin-top: 18px; color: var(--muted); line-height: 1.75; max-width: 560px; }
.hm-work { padding-top: 40px; padding-bottom: 60px; }
.hm-work-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.hm-about { padding-top: 60px; }
.hm-about-title { margin-bottom: 18px; }
.hm-about-text { color: var(--muted); line-height: 1.75; max-width: 520px; margin-bottom: 28px; }
@media (max-width: 900px) {
  .hm-head { padding: 80px 24px 24px; }
}

/* Homepage ADN: portraits + floating cards (kf-* helpers come from agence-page.css) */
.hm-adn { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; padding: 110px 52px; align-items: center; }
.hm-adn-text { font-size: 1.12rem; line-height: 1.85; max-width: 560px; margin-top: 28px; }
.hm-adn-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 32px; }
.hm-adn-facts li { background: var(--surface); box-shadow: var(--shadow-sm); border-radius: 18px; padding: 16px 22px; display: flex; flex-direction: column; gap: 4px; min-width: 130px; }
.hm-adn-facts b { font-weight: 800; font-size: 1.9rem; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.hm-adn-facts span:not([data-count]) { font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hm-adn-stage { position: relative; height: 720px; }
.hm-adn-photo, .hm-adn-card {
  position: absolute; opacity: 0; transform: translateY(48px);
  transition: opacity .8s ease, transform .9s cubic-bezier(.16, 1, .3, 1), box-shadow .3s;
  transition-delay: calc(var(--i, 0) * .16s);
}
.hm-adn-stage.visible .hm-adn-photo, .hm-adn-stage.visible .hm-adn-card { opacity: 1; transform: none; }
.hm-adn-photo { width: 56%; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 34px 70px -30px rgba(7, 0, 53, .5); background: var(--surface); }
.hm-adn-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; transition: transform .9s cubic-bezier(.16, 1, .3, 1); }
.hm-adn-photo:hover img { transform: scale(1.05); }
.hm-adn-photo--a { left: 0; top: 0; rotate: -3deg; }
.hm-adn-photo--b { right: 0; top: 110px; rotate: 3deg; width: 52%; }
.hm-adn-photo figcaption {
  position: absolute; left: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 2px; padding: 10px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .94); box-shadow: var(--shadow-sm); font-weight: 800; font-size: .92rem;
}
.hm-adn-photo figcaption em { font-style: normal; font-weight: 500; font-size: .7rem; letter-spacing: .06em; color: var(--muted); }
.hm-adn-card { width: min(300px, 70%); padding: 20px 22px 22px; border-radius: 22px; background: var(--surface); box-shadow: 0 34px 70px -30px rgba(7, 0, 53, .5); }
.hm-adn-card .kf-head { margin-bottom: 12px; }
.hm-adn-card--dark { left: 3%; top: 440px; rotate: -2deg; background: #0B0638; color: #F4F1FF; }
.hm-adn-card--light { right: 0; top: 590px; rotate: 2.5deg; width: min(260px, 64%); }
.hm-adn-card--light .kf-timeline { margin-top: 4px; }
.hm-adn-stage.visible .kf-timeline i::after { transform: scaleX(1); }
@media (max-width: 1000px) {
  .hm-adn { grid-template-columns: 1fr; gap: 48px; padding: 70px 24px; }
  .hm-adn-stage { max-width: 560px; width: 100%; }
}
@media (max-width: 640px) {
  .hm-adn-stage { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .hm-adn-photo, .hm-adn-card { position: static; width: 100%; rotate: 0deg; }
  .hm-adn-photo--b { width: 100%; }
  .hm-adn-card { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-adn-photo, .hm-adn-card { opacity: 1; transform: none; transition: none; }
}
