/* Homepage service index and client reviews (EN and IT).
   Loaded before brand.css so the approved palette and type keep the last word.
   Copy is readable without script; motion is a brief, optional entrance. */

/* ---- Service index: five routes into the studio ---- */
.home-editorial .home-service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(var(--hui-ink-rgb, 38, 23, 31), .28);
}
/* The row wrapper keeps the link out of brand.css's underlined `li > a` rule. */
.home-editorial .home-service-row { display: block; }
.home-editorial .home-service-list > li {
  border-bottom: 1px solid rgba(var(--hui-ink-rgb, 38, 23, 31), .18);
}
.home-editorial .home-service {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, min(24rem, 38%)) minmax(0, 1fr) 1.5rem;
  align-items: baseline;
  column-gap: clamp(1rem, 3vw, 2.5rem);
  min-height: 44px;
  padding-block: clamp(1.25rem, 2.3vw, 1.75rem);
  color: var(--hui-ink, #26171F);
  text-decoration: none;
}
.home-editorial .home-service-number {
  color: var(--hui-brass-text, #67565E);
  font: 500 .75rem/1.6 var(--hui-font-body, "Jost", Arial, sans-serif);
  letter-spacing: .13em;
}
.home-editorial .home-service-title {
  /* brand.css colours every link Brass; the title is set in Ink on the span itself. */
  color: var(--hui-ink, #26171F);
  font: 400 clamp(1.375rem, 2.2vw, 1.75rem)/1.2 var(--hui-font-heading, "Playfair Display", Georgia, serif);
  letter-spacing: -.01em;
}
.home-editorial .home-service-text {
  max-width: 54ch;
  color: var(--hui-stone, #67565E);
  font-size: var(--home-body-size, 1rem);
  line-height: 1.6;
}
.home-editorial .home-service .home-arrow {
  align-self: center;
  justify-self: end;
  color: var(--hui-ink, #26171F);
}
.home-editorial .home-main a.home-service:focus-visible {
  outline: 2px solid var(--hui-ink, #26171F);
  outline-offset: 2px;
}
@media (hover: hover) and (pointer: fine) {
  .home-editorial .home-service { transition: background-color .2s ease; }
  .home-editorial .home-service .home-service-title { transition: color .2s ease; }
  .home-editorial .home-service .home-arrow { transition: transform .2s ease; }
  .home-editorial .home-service:hover { background-color: rgba(var(--hui-ink-rgb, 38, 23, 31), .035); }
  .home-editorial .home-service:hover .home-service-title { color: var(--hui-brass-text, #67565E); }
  .home-editorial .home-service:hover .home-arrow { transform: translateX(4px); }
}
@media (max-width: 899px) {
  .home-editorial .home-service {
    grid-template-columns: 2.25rem minmax(0, 1fr) 1.25rem;
    row-gap: .375rem;
    padding-block: 1.125rem;
  }
  .home-editorial .home-service-title { grid-column: 2; }
  .home-editorial .home-service-text { grid-column: 2; grid-row: 2; }
  .home-editorial .home-service .home-arrow { grid-column: 3; grid-row: 1 / span 2; }
}

/* ---- Reviews: three Google reviews, quoted word for word ---- */
.home-editorial .home-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: start;
}
.home-editorial .home-review {
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(var(--hui-ink-rgb, 38, 23, 31), .28);
}
.home-editorial .home-review p {
  margin: 0 0 1rem;
  color: var(--hui-ink, #26171F);
  font: italic 400 clamp(1.0625rem, 1.5vw, 1.25rem)/1.55 var(--hui-font-heading, "Playfair Display", Georgia, serif);
  letter-spacing: -.005em;
}
.home-editorial .home-review cite {
  display: block;
  color: var(--hui-stone, #67565E);
  font: normal 500 .75rem/1.7 var(--hui-font-body, "Jost", Arial, sans-serif);
  letter-spacing: .04em;
}
.home-editorial .home-review cite span[aria-hidden] { margin-inline: 5px; }
.home-editorial .home-review-context { display: block; font-weight: 400; letter-spacing: .01em; }
@media (max-width: 899px) {
  .home-editorial .home-review-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .home-editorial .home-service,
  .home-editorial .home-service .home-service-title,
  .home-editorial .home-service .home-arrow { transition: none; }
  .home-editorial .home-service:hover .home-arrow { transform: none; }
}

/* ---- Hero: eyebrow and the quiet second action ---- */
.index-page .hero-content .home-hero-eyebrow { margin: 0 0 1.25rem; }
/* brand.css colours every link in a cascade layer, so the ivory is set on the inner span. */
body.index-page .hero-content a.home-hero-link {
  display: inline-flex; align-items: center; min-height: 44px; margin-left: 1.75rem; text-decoration: none;
}
body.index-page .hero-content a.home-hero-link > span {
  color: #FBF7EF; font: 500 .9375rem/1.4 var(--hui-font-body, "Jost", Arial, sans-serif);
  text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px;
}
body.index-page .hero-content a.home-hero-link:is(:hover,:focus-visible) > span { text-decoration-thickness: 2px; }
@media (max-width: 699px) {
  body.index-page .hero-content a.home-hero-link { display: flex; justify-content: center; margin: .5rem 0 0; }
}

/* ---- Vision: who Hui is, what the studio offers, one painting that follows the list ---- */
.home-editorial .home-vision {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}
.home-editorial .home-vision-copy { min-width: 0; }
.home-editorial .home-vision-eyebrow {
  display: flex; align-items: center; gap: .875rem; margin: 0 0 1.25rem;
  color: var(--hui-stone, #67565E);
  font: 600 .75rem/1.6 var(--hui-font-body, "Jost", Arial, sans-serif);
  letter-spacing: .16em; text-transform: uppercase;
}
.home-editorial .home-vision-eyebrow::before { content: ""; width: 3.5rem; height: 1px; background: currentColor; }
.home-editorial .home-vision-bio { display: flex; align-items: center; gap: 1.125rem; margin: 1.5rem 0 1.75rem; }
.home-editorial .home-vision-bio img {
  width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%;
  object-fit: cover; object-position: 50% 18%;
}
.home-editorial .home-vision-bio .home-body-copy { margin: 0; max-width: 52ch; }
.home-editorial .home-vision .home-service-list { margin-bottom: 1.5rem; }
/* In this narrower column the row always uses the stacked form. */
.home-editorial .home-vision .home-service {
  grid-template-columns: 2.5rem minmax(0, 1fr) 1.25rem;
  row-gap: .25rem; padding-block: 1rem;
}
.home-editorial .home-vision .home-service-title { grid-column: 2; }
.home-editorial .home-vision .home-service-text { grid-column: 2; grid-row: 2; font-size: .9375rem; }
.home-editorial .home-vision .home-service .home-arrow { grid-column: 3; grid-row: 1 / span 2; }
.home-editorial .home-vision .home-service.is-current .home-service-title,
.home-editorial .home-vision .home-service.is-current .home-service-number { color: var(--hui-burgundy, #66023C); }

/* The services stand alone on the ivory page (the entrance above is the only wall). On a wide
   screen the introduction sits to the left and the list of services to the right. */
@media (min-width: 900px) {
  .home-editorial .home-vision { display: block; }
  .home-editorial .home-vision-copy { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); column-gap: clamp(3rem, 7vw, 7rem); align-items: start; }
  .home-editorial .home-vision-copy > * { grid-column: 1; }
  .home-editorial .home-vision-copy > .home-service-list { grid-column: 2; grid-row: 1 / span 6; margin: 0; }
  .home-editorial .home-vision-copy > .home-text-link { margin-top: 1.5rem; }
}
@media (max-width: 899px) {
  .home-editorial .home-vision { display: block; }
}
