/* Home-page enhancements; original team artwork remains untouched. */
.layerx-home { box-sizing: border-box; background: #f2f2ef; color: #242424; padding: clamp(18px, 3vw, 48px); max-width: 1520px; }
.layerx-home > section { margin: 0 0 54px; padding: 12px 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.layerx-home #abstract { background: transparent; border: 0; color: #777; padding: 12px 0 30px; }
.layerx-home #abstract p { font-size: 1rem; line-height: 1.7; }
.layerx-home h2 { font-size: 2rem; letter-spacing: -.035em; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.section-heading h2 { margin: 8px 0 24px; }
.eyebrow { font-size: .67rem; letter-spacing: .12em; text-transform: uppercase; color: #777; line-height: 1.5; }
.gallery-controls { display: flex; gap: 8px; }
[hidden] { display: none !important; }
.gallery-button { border: 1px solid #d8d8d1; border-radius: 999px; padding: 10px 15px; background: transparent; color: #333; cursor: pointer; font: inherit; font-size: .8rem; }
.gallery-button:hover { background: #efefeb; }
.layerx-home :focus-visible { outline: 2px solid #444; outline-offset: 4px; }
.partner-window { overflow-x: auto; -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent); scrollbar-width: none; -ms-overflow-style: none; cursor: grab; touch-action: pan-x pan-y; }
.partner-window.dragging { cursor: grabbing; user-select: none; }
.partner-track, .partner-sequence { display: flex; width: max-content; }
.partner-sequence { gap: 40px; padding-right: 40px; }
.partner-card { box-sizing: border-box; width: 430px; height: 220px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px; background: transparent; border: 0; padding: 20px; }
.partner-card img { width: 390px; height: 143px; object-fit: contain; filter: grayscale(1); mix-blend-mode: multiply; }
.partner-window::-webkit-scrollbar { display: none; width: 0; height: 0; }
.publication-gallery { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 20px; scrollbar-width: thin; scrollbar-color: #aaa transparent; }
.publication-card { flex: 0 0 390px; display: flex; flex-direction: column; color: inherit; border: 0; border-radius: 0; overflow: hidden; scroll-snap-align: start; transition: border-color .2s; }
.publication-card:hover { text-decoration: none; border-color: #888; }
.project-copy { padding: 22px 0; display: flex; flex: 1; flex-direction: column; }
.project-copy h3 { font-size: 1.3rem; letter-spacing: -.035em; margin: 8px 0; }
.project-copy > p:not(.eyebrow) { font-size: .9rem; line-height: 1.7; color: #666; margin-bottom: 24px; }
.layerx-home #info { border: 0; background: transparent; font-size: .75rem; color: #777; }
@media (max-width: 768px) {
 .layerx-home { padding: 12px; }
 .layerx-home > section { padding: 12px 0; margin-bottom: 38px; }
 .publication-card { flex-basis: min(310px, 78vw); }
 .partner-card { width: min(430px, 94vw); padding: 14px; }
 .section-heading { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .layerx-home * { transition: none !important; scroll-behavior: auto !important; } }

.layerx-home #abstract { margin-top: -30px; }
.layerx-home #abstract p { text-align: left; }
.layerx-home #services .image-container img { mix-blend-mode: multiply; }
.layerx-home #contact .card { background: transparent; box-shadow: none; }
.publication-preview { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 780; object-fit: cover; border-radius: 6px; }
/* Original Tech Stack presentation is inherited unchanged from styles.css. */
@media (max-width: 768px) {
 .layerx-home h2 { font-size: 1.75rem; }
 .layerx-home #abstract { margin-top: -18px; }
 .partner-sequence { gap: 20px; padding-right: 20px; }
}

/* Shared header: logo, two-line title and navigation stay in one row. */
.layerx-home > .site-header { --brand-height: clamp(64px, 6.2vw, 88px); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 12px 0 24px; }
.site-header .brand-link { display: block; line-height: 0; }
.layerx-home .site-header .brand-logo { display: block; width: auto; height: var(--brand-height) !important; }
.layerx-home .site-header h1 { min-width: 0; margin: 0; font-size: calc(var(--brand-height) * .43) !important; line-height: calc(var(--brand-height) / 2) !important; letter-spacing: -.025em; word-break: normal; }
.layerx-home .site-header h1 span { display: block; white-space: nowrap; }
.site-header .site-action { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 48px; height: 48px; border: 2px solid #333; border-radius: 50%; color: inherit; font-size: 25px; font-weight: bold; text-decoration: none; }
.site-header .site-action:hover { background: #e7e7e1; }

/* Fit every complete portrait into the same frame. The row count controls
   line spacing; the column count controls character size. Original art is kept. */
.layerx-home #team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.layerx-home #team > h2 { grid-column: 1 / -1; margin-bottom: 0; }
.layerx-home #team > .section-splitter { display: none; }
.layerx-home #team > .header-like { min-width: 0; margin: 0 !important; }
.layerx-home #team .header-name { font-size: clamp(1.25rem, 2vw, 1.75rem); margin-top: 0; }
.ascii-portrait { container-type: inline-size; width: 100%; max-width: 420px; aspect-ratio: 5 / 6; margin: 0 auto 18px; background: #000; }
.layerx-home #team pre { font-family: monospace; font-size: calc(162cqi / var(--portrait-columns)) !important; line-height: calc(120cqi / var(--portrait-rows)) !important; letter-spacing: 0; padding: 0 !important; margin: 0; min-height: 0; width: 100%; height: 120cqi; }
.layerx-home #team .header-profession { font-size: 1rem; line-height: 1.5; letter-spacing: normal; padding: 0; }

/* The imprint has its own full-width section and a compact, responsive artwork. */
.legal-page #impressum { width: 100%; }
.legal-art { container-type: inline-size; width: 100%; max-width: 560px; margin: 0 auto; }
.legal-page #impressum pre { box-sizing: border-box; font-family: monospace; font-size: 1.08cqi !important; line-height: 1.15 !important; letter-spacing: 0; width: 100%; min-height: 0; padding: 0 !important; margin: 0; text-align: center; }
.legal-page .legal-reference { font-size: .95rem; }
.legal-page .legal-reference a { color: inherit; text-decoration: underline; }

/* Larger Info pictograms, with equal columns and the existing reveal interaction. */
.layerx-home #contact .contact-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 0; }
.layerx-home #contact .card { margin: 0; height: 220px; min-width: 0; }
.layerx-home #contact .icon { width: 160px; height: 160px; object-fit: contain; margin: 0; }
@media (max-width: 768px) {
 .layerx-home > .site-header { --brand-height: clamp(30px, 8.5vw, 56px); gap: clamp(8px, 2vw, 16px); }
 .site-header .site-action { width: 44px; height: 44px; font-size: 23px; }
 .layerx-home #team { grid-template-columns: minmax(0, 1fr); gap: 30px; }
 .layerx-home #team .header-name { font-size: 1.5rem; }
 .layerx-home #contact .contact-info { gap: 8px; }
 .layerx-home #contact .card { height: 160px; }
 .layerx-home #contact .icon { width: 80px; height: 80px; }
}
@media (max-width: 480px) {
 .layerx-home #contact .icon { width: 68px; height: 68px; }
}
