/* =============================================================
   Vesali Editorial — homepage
   Portrait hero, service links, latest articles, press publications
   and the newsletter panel. Tokens and cards come from site.css.
   Sections: shared · hero · services · latest · press · newsletter
   · motion · tablet · phone
   ============================================================= */

.hm-nowrap { white-space: nowrap; }
.hm-h2 { margin: 0; font: 700 var(--s-h2)/1.08 var(--f-display); letter-spacing: -.02em; color: var(--c-head); }
.hm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.hm-head__note { margin: 0; font-size: var(--s-small); color: var(--c-muted); }

/* ---------- Hero ---------- */
.hm-hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 80px);
  align-items: center;
  min-height: min(calc(100svh - 80px - 120px), 720px);
  padding-block: clamp(32px, 5vw, 72px) clamp(32px, 4vw, 56px);
}
.hm-hero__title {
  margin: 0; max-width: 13ch;
  font: 700 var(--s-h1)/1.04 var(--f-display); letter-spacing: -.025em; color: var(--c-head);
  text-wrap: balance;
}
.hm-hero__lede { margin: 24px 0 0; max-width: 34rem; font-size: 1.0625rem; line-height: 1.65; color: var(--c-ink); }
.hm-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }

.hm-hero__portrait {
  position: relative; margin: 0; justify-self: end;
  width: min(100%, 520px); aspect-ratio: 1 / 1.05;
}
.hm-shape { position: absolute; display: block; }
.hm-shape--forest { top: 0; right: 14%; width: 46%; height: 58%; background: var(--c-forest); }
.hm-shape--stone { top: 14%; right: 0; width: 34%; height: 78%; background: var(--c-surface); border-radius: 999px 999px 0 0; }
.hm-shape--arch { bottom: 0; left: 0; width: 40%; height: 46%; background: var(--c-forest-2); border-radius: 999px 999px 0 0; }
.hm-hero__photo {
  position: absolute; z-index: 1; left: 12%; right: 8%; top: 9%; bottom: 0;
  overflow: hidden; border-radius: 999px 999px 0 0; background: #fff;
}
.hm-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; display: block; }
.hm-hero__photo .hm-ph { background: var(--c-surface); }
.hm-hero__signature {
  position: absolute; z-index: 2; right: 0; bottom: 18px;
  padding: 6px 12px; background: var(--c-bg);
  font: italic 400 1.125rem/1 var(--f-display); color: var(--c-head);
}

/* ---------- Services ---------- */
.hm-services { padding-bottom: clamp(48px, 6vw, 88px); }
.hm-services__list {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0; padding: 0; list-style: none;
  border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line);
}
.hm-services__list li + li { border-left: 1px solid var(--c-line); }
.hm-service {
  display: flex; align-items: center; gap: 16px; height: 100%;
  padding: 22px 20px; text-decoration: none; color: var(--c-ink);
  transition: background-color .2s var(--ease-out);
}
.hm-service:hover { background: var(--c-card); color: var(--c-ink); }
.hm-icon { flex: none; color: var(--c-head); transition: transform .25s var(--ease-out), color .2s; }
.hm-service:hover .hm-icon { color: var(--c-gold-text); transform: translateY(-2px); }
.hm-service__text { display: grid; gap: 2px; }
.hm-service__text strong { font: 600 var(--s-small)/1.3 var(--f-text); color: var(--c-head); }
.hm-service__text span { font-size: 13px; color: var(--c-muted); }

/* ---------- Latest articles ---------- */
.hm-latest { padding-bottom: var(--section); }
.hm-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }

/* ---------- Press ---------- */
.hm-press { padding-bottom: var(--section); }
.hm-press__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; align-items: start; }
.hm-outlet { padding: 24px 26px 18px; background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius); border-top: 3px solid var(--c-gold); }
.hm-outlet__name { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 8px; font: 700 var(--s-h3)/1.2 var(--f-display); color: var(--c-head); }
.hm-outlet__count {
  display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px;
  border-radius: 100px; background: var(--c-tag-gold); color: var(--c-on-tag-gold);
  font: 600 13px/1 var(--f-text);
}
.hm-outlet__items { margin: 0; padding: 0; list-style: none; }
.hm-outlet__items li { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--c-line); }
.hm-outlet__items li:first-child { border-top: 0; }
.hm-outlet__title { font-size: var(--s-body); line-height: 1.45; color: var(--c-ink); }
a.hm-outlet__title { color: var(--c-head); text-decoration: underline; text-decoration-color: var(--c-turq); text-decoration-thickness: 2px; text-underline-offset: .25em; }
.hm-outlet__date { font-size: 13px; color: var(--c-muted); font-variant-numeric: tabular-nums; }

/* ---------- Newsletter ---------- */
.hm-news {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-bottom: var(--section); border-radius: var(--radius); overflow: hidden;
  background: var(--c-forest);
}
.hm-news--solo { grid-template-columns: 1fr; }
.hm-news__panel { padding: clamp(36px, 5vw, 64px); color: var(--c-on-forest); }
.hm-news .hm-h2 { color: var(--c-on-forest); }
.hm-news__text { margin: 14px 0 0; max-width: 30rem; font-size: var(--s-small); color: var(--c-on-forest-muted); }
.hm-news__form { margin-top: 28px; max-width: 32rem; }
.hm-news .newsletter-fields { display: flex; }
.hm-news input[type="email"] {
  flex: 1; min-width: 0; min-height: 50px; padding: 0 16px;
  border: 0; border-radius: var(--radius) 0 0 var(--radius);
  background: #fff; color: #1c2a22; font: 400 var(--s-small) var(--f-text);
}
.hm-news input[type="email"]::placeholder { color: #6b746d; }
.hm-news .btn { min-height: 50px; border-radius: 0 var(--radius) var(--radius) 0; }
.hm-news .vn-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 13px; line-height: 1.45; color: var(--c-on-forest-muted); }
.hm-news .vn-consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--c-gold); flex: none; }
.hm-news .vn-consent a { color: var(--c-turq); }
.hm-news .newsletter-note { margin: 10px 0 0; font-size: 13px; color: var(--c-on-forest-muted); }
.hm-news .newsletter-status { color: var(--c-on-forest); }
.hm-news__picture { position: relative; margin: 0; min-height: 320px; background: var(--c-forest-2); }
.hm-news__picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-news__picture .hm-ph { position: absolute; inset: 0; background: var(--c-forest-2); color: var(--c-gold); }
.hm-news__picture figcaption {
  position: absolute; right: 24px; top: 24px; max-width: 16rem; text-align: right;
  font: italic 400 1.25rem/1.3 var(--f-display); color: #fff;
}

/* ---------- Motion ---------- */
.hm-js [data-reveal] > * {
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: calc(var(--hm-i, 0) * 90ms);
}
.hm-js [data-reveal].is-in > * { opacity: 1; transform: none; }
.hm-hero__copy > * { animation: hm-rise .8s var(--ease-out) both; }
.hm-hero__copy > :nth-child(2) { animation-delay: .08s; }
.hm-hero__copy > :nth-child(3) { animation-delay: .16s; }
.hm-hero__copy > :nth-child(4) { animation-delay: .24s; }
.hm-shape, .hm-hero__photo { animation: hm-rise 1s var(--ease-out) both; }
.hm-shape--forest { animation-delay: .1s; }
.hm-shape--stone { animation-delay: .2s; }
.hm-shape--arch { animation-delay: .3s; }
.hm-hero__photo { animation-delay: .15s; }
.hm-services__list li { animation: hm-rise .7s var(--ease-out) both; }
.hm-services__list li:nth-child(2) { animation-delay: .08s; }
.hm-services__list li:nth-child(3) { animation-delay: .16s; }
.hm-services__list li:nth-child(4) { animation-delay: .24s; }
@keyframes hm-rise { from { opacity: 0; transform: translateY(18px); } }

@media (prefers-reduced-motion: reduce) {
  .hm-hero__copy > *, .hm-shape, .hm-hero__photo, .hm-services__list li { animation: none; }
  .hm-js [data-reveal] > * { opacity: 1; transform: none; transition: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  .hm-hero__title { font-size: clamp(2.4rem, 1.2rem + 3vw, 3.25rem); }
  .hm-services__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-services__list li:nth-child(3) { border-left: 0; }
  .hm-services__list li:nth-child(n+3) { border-top: 1px solid var(--c-line); }
  .hm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-cards > :nth-child(3) { display: none; }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  .hm-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 24px; }
  .hm-hero__portrait { justify-self: center; width: min(100%, 420px); }
  .hm-hero__actions .hm-btn { width: 100%; }
  .hm-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hm-services__list { grid-template-columns: 1fr; }
  .hm-services__list li + li { border-left: 0; border-top: 1px solid var(--c-line); }
  .hm-service { padding: 18px 4px; }
  .hm-cards { grid-template-columns: 1fr; gap: 20px; }
  .hm-cards > :nth-child(3) { display: flex; }
  .hm-news { grid-template-columns: 1fr; margin-inline: 0; width: 100%; border-radius: 0; }
  .hm-news__picture { min-height: 240px; }
  .hm-news .newsletter-fields { flex-direction: column; gap: 8px; }
  .hm-news input[type="email"], .hm-news .btn { border-radius: var(--radius); width: 100%; }
}
