/* Homepage composition; shared cards, typography, palettes and controls stay shared. */
.home-hero { display: grid; gap: clamp(32px, 6vw, 88px); align-items: center; padding-block: clamp(40px, 6vw, 72px); }
.home-hero--with-art { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.home-intro, .home-feature, .home-section-heading > *, .home-about > *, .home-process > * { min-width: 0; }
.home-wordmark { margin-block: 14px 24px; font: 500 clamp(56px, 6.7vw, 98px)/1 "Playfair Display", Georgia, serif; letter-spacing: -.065em; }
.home-positioning { font: 500 clamp(26px, 2.5vw, 34px)/1.25 "Playfair Display", Georgia, serif; letter-spacing: -.025em; }
.home-intro .page-copy { max-width: 44ch; font-size: 17px; }
.home-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
.home-actions .text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.home-catalog-counts { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 14px; color: var(--muted); font-size: 13px; }
.home-catalog-counts a { display: inline-flex; align-items: center; min-height: 44px; }
/* Desktop sizes the figure from real pixels; mobile gives the caption its own room. */
.home-feature { --home-photo-height: min(56vh, 520px); --home-photo-ratio: 1; width: min(100%, calc(var(--home-photo-height) * var(--home-photo-ratio))); justify-self: center; margin: 0; }
/* Landscape's height cap uses the stable small viewport, so browser toolbars
   do not resize it. Mobile portrait is width-driven below. */
@supports (height: 1svh) {
  @media (max-width: 980px) and (orientation: landscape) { .home-feature { --home-photo-height: min(56svh, 520px); } }
}
@supports (height: 1dvh) {
  @media (min-width: 981px) { .home-feature { --home-photo-height: min(56dvh, 520px); } }
}
.home-feature .artwork-image { background: transparent; }
.home-feature img { width: 100%; height: auto; }
.home-feature figcaption { margin-top: 16px; overflow-wrap: anywhere; }
.home-feature h2 { font: 500 clamp(21px, 2vw, 25px)/1.25 "Playfair Display", Georgia, serif; }
.home-feature .artwork-authors { margin-top: 8px; }
.home-section { padding-block: 48px; border-top: 1px solid var(--line); }
.home-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.home-section-heading > .text-link { flex-shrink: 0; min-height: 44px; display: inline-block; padding-block: 10px; line-height: 24px; text-decoration-skip-ink: none; font-size: 14px; }
.home-section .section-title, .home-process .section-title { font-size: clamp(36px, 4.2vw, 56px); overflow-wrap: anywhere; }
.home-section .artwork-grid, .home-section .artist-grid { padding-bottom: 0; }
.home-selected-artworks .artwork-card-media { background: var(--bg); }
.home-selected-artworks .artwork-image { background: transparent; border-radius: 0; }
.home-section .artwork-image img { width: auto; max-width: 100%; height: auto; max-height: 420px; margin-inline: auto; }
.home-section .artist-summary { padding-bottom: 14px; }
.home-section .artist-summary-text { -webkit-line-clamp: 3; line-clamp: 3; max-height: 4.95em; }
.home-section .artist-card-footer { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.home-section .artist-work-count { color: var(--muted); font-size: 13px; }
.home-acquisition { --process-bg: var(--ink); --process-ink: var(--bg); --process-muted: color-mix(in srgb, var(--process-ink) 76%, var(--process-bg)); padding-block: 72px; background: var(--process-bg); color: var(--process-ink); }
.home-process { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 70px); }
.home-process .eyebrow { color: var(--process-muted); }
.home-process .section-title { max-width: 12ch; }
.home-steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.home-steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 20px; padding: 24px; border: 1px solid color-mix(in srgb, var(--process-ink) 18%, var(--process-bg)); border-radius: 16px; }
.home-step-number { color: var(--process-muted); font: 500 28px/1.2 "Playfair Display", Georgia, serif; }
.home-steps h3 { font: 500 23px/1.25 "Playfair Display", Georgia, serif; }
.home-steps p { margin-top: 10px; color: var(--process-muted); font-size: 15px; line-height: 1.75; }
.home-inquiry-note { margin-top: 20px; color: var(--process-muted); font-size: 13px; line-height: 1.7; }
.home-about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-bottom: 72px; }
.home-about-copy { color: var(--muted); line-height: 1.8; }
.home-about-copy .btn { margin-top: 28px; }
@media (min-width: 981px) { .home-intro { align-self: start; padding-top: 48px; } }
@media (max-width: 980px) {
  .home-hero--with-art { gap: 32px; }
  .home-feature { width: 100%; }
}
@media (max-width: 980px) and (orientation: portrait) {
  .home-hero--with-art { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 980px) and (orientation: landscape) {
  .home-feature { --home-photo-width: min(100%, calc(var(--home-photo-height) * var(--home-photo-ratio))); }
  .home-feature > .artwork-image { width: var(--home-photo-width); margin-inline: auto; }
  /* Same painted left edge, with text continuing to the column's right edge. */
  .home-feature figcaption { margin-inline-start: calc((100% - var(--home-photo-width)) / 2); }
}
@media (max-width: 620px) {
  .home-hero--with-art, .home-about, .home-process { grid-template-columns: 1fr; }
  .home-actions { flex-direction: column; flex-wrap: nowrap; align-items: center; gap: 12px; }
  .home-catalog-counts { justify-content: center; }
  .home-section { padding-block: 36px; }
  .home-section-heading { align-items: start; flex-direction: column; gap: 16px; }
  .home-section-heading > .text-link { align-self: center; }
  .home-section .artwork-image img { max-height: 400px; }
  .home-acquisition { padding-block: 44px; }
  .home-steps li { padding: 20px; gap: 14px; grid-template-columns: 30px minmax(0, 1fr); }
  .home-about { gap: 24px; padding-bottom: 48px; }
  .home-about-copy .btn { display: flex; width: fit-content; margin-inline: auto; }
}
