/* The same sculptural project list on the home page and complete work index. */
body.works-index { --composition-gutter: clamp(24px, 4.8vw, 80px); background: #D6D4ED; color: #0A1628; }
body.works-index .navbar { background: #D6D4ED; border-color: rgb(10 22 40 / 20%); }
body.works-index .project-index-intro { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 40px; padding: clamp(48px, 8vw, 120px) var(--composition-gutter) 64px; }
/* The title breaks only at its authored <br>: each language is sized so its
   longest word fits the title column (about 47% of the viewport from 600px,
   the full gutter width below) at every width from 320 to 1920. "Selected" is
   3.65em wide at this tracking, "Válogatott" 4.44em, "Ausgewählte" 5.66em.
   overflow-wrap: anywhere never fires at these sizes (display-titles.spec
   sweeps 13 widths); it stays as the 200% enlarged-text guard, where a word
   that cannot fit the column must break rather than be clipped (portfolio.spec
   "320 Works ... reflow at 200%"). The HU/DE sources carry a soft hyphen so
   such a break lands at a hyphen. */
.project-index-intro h1 { margin: 0; color: #0A1628; font-family: "Funnel Display", "Funnel Display Fallback", sans-serif; font-weight: 700; font-size: clamp(4.5rem, 11vw, 10.25rem); line-height: .88; letter-spacing: -.065em; overflow-wrap: anywhere; hyphens: manual; }
html[lang="hu"] .project-index-intro h1 { font-size: clamp(3.5rem, 10vw, 10.25rem); }
html[lang="de"] .project-index-intro h1 { font-size: clamp(2.75rem, 7.9vw, 9.5rem); }
.project-index-intro p { max-width: 30ch; margin: 0 0 4px; font-size: clamp(1.125rem, 2vw, 1.75rem); line-height: 1.3; letter-spacing: -.025em; }
.project-index-intro p a { color: inherit; text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }
body.works-index .work-section { margin: 0; padding: 0 var(--composition-gutter) 100px; background: #D6D4ED; }
body.works-index .work-list { display: flex; flex-direction: column; width: 100%; margin: 0; border-top: 1px solid rgb(10 22 40 / 30%); }
body.works-index .work-row { position: relative; display: grid; grid-template-columns: minmax(0, 35fr) 20px minmax(0, 46fr) minmax(80px, 13fr); gap: clamp(16px, 2vw, 32px); align-items: center; width: 100%; padding: 26px 0; border-bottom: 1px solid rgb(10 22 40 / 30%); }
body.works-index .work-row-visual { grid-column: 1; grid-row: 1; overflow: hidden; aspect-ratio: 2.4; background: #D6D4ED; }
body.works-index .work-row-thumb { display: block; width: 100%; height: 100%; border-radius: 0; object-fit: cover; }
body.home .work-row-thumb { object-fit: cover; }
body.home .work-row-visual { background: #D6D4ED; }
body.home #works .about-section-title { width: auto; text-align: left; }
body.works-index .work-row-number { grid-column: 2; grid-row: 1; align-self: start; padding-top: 6px; font-size: .6875rem; }
body.works-index .work-row-copy { grid-column: 3; grid-row: 1; min-width: 0; }
body.works-index .work-title-heading { margin: 0; }
body.works-index .work-row .work-title { display: inline; color: #0A1628; font-family: Inter, "Inter Fallback", sans-serif; font-weight: 700; font-size: clamp(2rem, 4.2vw, 4.125rem); letter-spacing: -.065em; line-height: 1.06; text-decoration: none; overflow-wrap: anywhere; }
body.works-index .work-row .work-card-summary { max-width: 44ch; margin: 10px 0 0; color: #0A1628; font-size: clamp(.875rem, 1.15vw, 1.125rem); letter-spacing: -.015em; line-height: 1.3; }
body.works-index .work-row-action { display: inline-flex; align-items: center; gap: 12px; margin-top: 14px; color: #0A1628; font-size: .75rem; text-decoration: underline; text-underline-offset: 3px; }
body.works-index .work-row-arrow { color: #0A1628; font-size: 1rem; opacity: 1; }
body.works-index .work-row-meta { grid-column: 4; grid-row: 1; justify-self: end; margin: 0; color: #485272; font-size: .75rem; line-height: 1.6; letter-spacing: .1em; text-transform: uppercase; }
body.works-index .work-row:hover .work-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
body.works-index .work-title:focus-visible { outline: 3px solid var(--site-focus); outline-offset: 5px; }
body.works-index .work-row:focus-within { border-radius: 0; }
@media (max-width: 991px) {
 body.works-index .project-index-intro { gap: 24px; padding-top: 56px; padding-bottom: 48px; }
 body.works-index .work-row { grid-template-columns: minmax(0, 40fr) 16px minmax(0, 54fr); gap: 16px; }
 body.works-index .work-row-meta { display: none; }
 body.works-index .work-row .work-title { font-size: clamp(1.75rem, 4.8vw, 3rem); }
}
@media (max-width: 599px) {
 body.works-index { --composition-gutter: 20px; }
 body.works-index .project-index-intro { display: block; padding-top: 42px; padding-bottom: 36px; }
 .project-index-intro h1 { font-size: clamp(4.125rem, 20vw, 7.25rem); }
 html[lang="hu"] .project-index-intro h1 { font-size: clamp(3.5rem, 18.5vw, 6.25rem); }
 html[lang="de"] .project-index-intro h1 { font-size: clamp(2.75rem, 14.6vw, 4.5rem); }
 .project-index-intro p { margin-top: 24px; max-width: 31ch; font-size: 1.125rem; }
 body.works-index .work-section { padding-bottom: 60px; }
 body.works-index .work-row { grid-template-columns: 20px minmax(0, 1fr); gap: 16px 10px; padding: 22px 0; }
 body.works-index .work-row-visual { grid-column: 1 / -1; grid-row: 1; aspect-ratio: 2.25; }
 body.works-index .work-row-number { grid-column: 1; grid-row: 2; }
 body.works-index .work-row-copy { grid-column: 2; grid-row: 2; }
 body.works-index .work-row .work-title { font-size: clamp(1.875rem, 9vw, 3rem); }
 body.works-index .work-row .work-card-summary { font-size: .9375rem; }
}
