/* Loaded after WordPress Additional CSS so saved layout settings remain usable. */
@media (min-width: 1025px) {
  body.home .hero {
    padding-top: clamp(100px, 9vw, 180px) !important;
  }
  body.home .hero h1 {
    position: relative;
    left: var(--alignment-x, 0px) !important;
  }
  body.home .about {
    translate: 0 var(--alignment-y, 0px) !important;
  }
  body.home .about-heading,
  body.home .about-copy {
    position: relative !important;
    left: var(--copy-shift, 0px) !important;
  }
  body.home .about-heading {
    top: auto !important;
    transform: none !important;
  }
  body.home .about::after {
    left: calc(-1 * clamp(22px, 3.5vw, 60px)) !important;
    right: auto !important;
  }
  body.home main#content {
    padding-bottom: max(400px, 30vw) !important;
  }
}
/* Mobile and tablet use their own document flow beneath the heading. */
@media (max-width: 1024px) {
  body.home .site {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }
  body.home main#content {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding-bottom: 64px !important;
  }
  body.home main#content::before {
    display: none !important;
  }
  body.home .hero {
    width: auto !important;
    margin: 0 !important;
    transform: none !important;
  }
  body.home .hero h1 {
    left: auto !important;
  }
  body.home .works {
    transform: none !important;
    translate: none !important;
    min-width: 0 !important;
    padding: 0 !important;
  }
  body.home .about {
    display: flex !important;
    flex-direction: column !important;
    width: 88% !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: clamp(48px, 7vw, 80px) auto 0 !important;
    padding: 0 0 0 2ch !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    translate: none !important;
    border: 0 !important;
  }
  body.home .about-heading {
    position: static !important;
    transform: none !important;
    align-self: flex-start !important;
    order: 0 !important;
    margin: 0 0 20px !important;
    padding: 0 !important;
  }
  body.home .about-copy {
    align-self: stretch !important;
    order: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: left !important;
  }
  body.home .about-copy p {
    max-width: 44ch !important;
  }
  body.home .about-copy p:first-child {
    margin-top: 0 !important;
  }
  body.home .about-space {
    display: none !important;
  }
  body.home .about-media:empty {
    display: none !important;
  }
  body.home .about-media:not(:empty) {
    order: 2 !important;
    margin: 24px 0 0 !important;
    width: min(100%, 320px) !important;
  }
  body.home .about::after {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    right: auto !important;
    top: -12px !important;
    bottom: -12px !important;
    width: 1px !important;
    height: auto !important;
    background: var(--muted);
    opacity: .4;
    pointer-events: none;
  }
}
/* Phones: equally sized individual cards in a single column. */
@media (max-width: 1024px) {
  body.home .works {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: none !important;
    grid-auto-rows: auto !important;
    width: 88% !important;
    margin: 32px auto 0 !important;
    gap: 22px !important;
    aspect-ratio: auto !important;
    height: auto !important;
  }
  body.home .works .work-card:nth-child(n) {
    grid-area: auto !important;
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-width: none !important;
    aspect-ratio: 1 / 1 !important;
    transform: none !important;
    margin: 0 !important;
  }
}
/* Six positions from the supplied reference, with less elongated crops. */
@media (min-width: 1025px) {
  body.home .works {
    display: grid !important;
    grid-template-columns: 1fr .72fr .24fr .72fr 1fr !important;
    grid-template-rows: repeat(16, minmax(0, 1fr)) !important;
    grid-auto-rows: auto !important;
    font-family: 'Montserrat', Arial, sans-serif !important;
    font-size: clamp(11px, .85vw, 14px) !important;
    gap: 2ch !important;
    height: auto !important;
    aspect-ratio: 2 / 1 !important;
    align-items: stretch !important;
  }
  body.home .works .work-card:nth-child(n) {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    aspect-ratio: auto !important;
    align-self: stretch !important;
    transform: none !important;
  }
  body.home .works .work-card:nth-child(1) {
    grid-area: 5 / 1 / 13 / 2 !important;
  }
  body.home .works .work-card:nth-child(2) {
    grid-area: 1 / 2 / 9 / 4 !important;
  }
  body.home .works .work-card:nth-child(3) {
    grid-area: 3 / 4 / 9 / 5 !important;
  }
  body.home .works .work-card:nth-child(4) {
    grid-area: 9 / 2 / 15 / 3 !important;
  }
  body.home .works .work-card:nth-child(5) {
    grid-area: 9 / 3 / 17 / 5 !important;
  }
  body.home .works .work-card:nth-child(6) {
    grid-area: 5 / 5 / 13 / 6 !important;
  }
}
/* Quiet tile captions, without a strip in any color mode or interaction state. */
body.home .works .work-card:nth-child(n) .label {
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  color: #fff !important;
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-weight: 400 !important;
  font-size: clamp(11px, .85vw, 14px) !important;
  line-height: 1.35 !important;
  letter-spacing: .025em !important;
  text-transform: lowercase !important;
  padding: 10px 12px !important;
  text-shadow: 0 1px 3px rgba(0,0,0,.8), 0 0 8px rgba(0,0,0,.4);
  box-shadow: none !important;
  border: 0 !important;
}
@media (max-width: 1024px) {
  body.home .works .work-card:nth-child(n) .label {
    font-size: 24px !important;
  }
}
/* Match the caption's letter-based spacing on phones as well. */
@media (max-width: 1024px) {
  body.home .works {
    font: 12px 'Montserrat', Arial, sans-serif;
    gap: 2ch !important;
  }
}
/* Mobile: edge-to-edge width, retaining the previous 88vw tile height. */
@media (max-width: 1024px) {
  body.home .works {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  body.home .works .work-card:nth-child(n) {
    width: 100% !important;
    height: 88vw !important;
    aspect-ratio: auto !important;
  }
}
/* Larger desktop canvas without changing the reference tile arrangement. */
@media (min-width: 1025px) {
  body.home main#content {
    display: grid !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    grid-template-columns: 5% minmax(180px, .8fr) clamp(24px, 3vw, 48px) minmax(0, 3.2fr) 5% !important;
  }
  body.home .hero {
    grid-area: 1 / 1 / 2 / -1 !important;
  }
  body.home .works {
    grid-area: 2 / 4 !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    transform: none !important;
    translate: none !important;
  }
  body.home .about {
    grid-area: 2 / 2 !important;
  }
}
@media (min-width: 1600px) {
  body.home main#content {
    width: min(94%, 2800px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    grid-template-columns: 0 clamp(210px, 12vw, 300px) clamp(44px, 4vw, 100px) minmax(0, 1fr) 0 !important;
  }
  body.home .hero {
    width: 100% !important;
    max-width: none !important;
  }
}
/* Montserrat semibold captions at every viewport size. */
body.home .works .work-card:nth-child(n) .label {
  font-weight: 600 !important;
}
/* Narrow desktop: move the shared headline/divider edge away from the left rim. */
@media (min-width: 1025px) and (max-width: 1599px) {
  body.home main#content {
    grid-template-columns: 9% minmax(180px, .8fr) clamp(24px, 3vw, 48px) minmax(0, 3.2fr) 3% !important;
  }
}
/* Wide desktop: remove the previous 94%/2800px cap and reserve more width for art. */
@media (min-width: 1600px) {
  body.home .site {
    width: 100% !important;
    max-width: none !important;
  }
  body.home main#content {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    grid-template-columns: 2.5% clamp(180px, 9vw, 240px) clamp(24px, 1.5vw, 48px) minmax(0, 1fr) 2.5% !important;
  }
  body.home .works {
    width: 100% !important;
    max-width: none !important;
  }
}
/* Genuine Montserrat weights, including Semibold 600, served locally. */
@font-face {
  font-family: 'Montserrat';
  src: url('fonts/Montserrat-Variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
body.home .site,
body.home .site :is(h1,h2,h3,h4,h5,h6,p,a,span,li,button,input,textarea,select,label),
body.home .works .work-card:nth-child(n) .label {
  font-family: 'Montserrat', Arial, sans-serif !important;
}
body.home .works .work-card:nth-child(n) .label {
  font-weight: 600 !important;
  font-synthesis: none;
}
/* Wide desktop proportions measured from the user's red and blue rectangles. */
@media (min-width: 1600px) {
  body.home main#content {
    width: 100% !important;
    max-width: none !important;
    grid-template-columns: 6.6% 18.6% 5.3% 67% 2.5% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  body.home .about {
    width: 100% !important;
    max-width: none !important;
  }
  body.home .about::after {
    left: 0 !important;
    right: auto !important;
  }
  body.home .works {
    width: 100% !important;
    max-width: none !important;
  }
}
/* Narrow desktop: dimensions taken from the pink and blue screenshot markings. */
@media (min-width: 1025px) and (max-width: 1599px) {
  body.home main#content {
    grid-template-columns: 5% 15.5% 3.25% 73% 3.25% !important;
  }
  body.home .hero h1 {
    font-size: 6vw !important;
    line-height: .88 !important;
    width: 60.5vw !important;
    max-width: 60.5vw !important;
    margin: 0 !important;
  }
  body.home .about {
    width: 100% !important;
    max-width: none !important;
  }
  body.home .about::after {
    left: 0 !important;
    right: auto !important;
  }
  body.home .works {
    width: 100% !important;
    max-width: none !important;
  }
}
/* Restore the display face independently of the Montserrat reading styles. */
body.home .site .hero h1 {
  font-family: 'Clash Display Variable', 'Clash Display', Arial, sans-serif !important;
}
/* Mirror the arrangement, never the artwork or the lettering. */
body.home .works {
  direction: rtl;
}
body.home .works .work-card {
  direction: ltr;
}
/* Desktop headline and raster share the first viewport with breathing room. */
@media (min-width: 1025px) {
  body.home .hero {
    padding-top: clamp(24px, 4svh, 48px) !important;
    padding-bottom: clamp(24px, 4svh, 48px) !important;
    min-height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  body.home .hero h1 {
    font-size: clamp(44px, min(6.2vw, 9.2svh), 118px) !important;
    line-height: .9 !important;
  }
  body.home .works {
    margin-top: clamp(20px, 2.5svh, 32px) !important;
    margin-bottom: 0 !important;
    max-width: var(--viewport-raster-width, 100%) !important;
    justify-self: center !important;
  }
}
/* About occupies a real row below the complete raster on desktop. */
@media (min-width: 1025px) {
  body.home .about {
    grid-area: 3 / 2 / 4 / 5 !important;
    align-self: start !important;
    justify-self: start !important;
    width: min(100%, 480px) !important;
    max-width: 480px !important;
    min-height: 0 !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    margin: clamp(48px, 6svh, 80px) 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    transform: none !important;
    translate: none !important;
  }
  body.home .about::after {
    left: 0 !important;
    right: auto !important;
  }
}
/* Narrow desktop: enlarge only the envelope; keep tile positions and gaps. */
@media (min-width: 1025px) and (max-width: 1599px) {
  body.home .works {
    width: 59.5vw !important;
    max-width: 100% !important;
    aspect-ratio: 1.85 / 1 !important;
    justify-self: start !important;
    margin-left: 5.8vw !important;
  }
}
/* Slightly narrower About reading measure outside the mobile layout. */
@media (min-width: 1025px) {
  body.home .about-copy {
    width: 100% !important;
    max-width: 400px !important;
  }
  body.home .about-copy p {
    max-width: 100% !important;
  }
}
/* An explicit line break, including when an older stylesheet hides br tags. */
body.home .about-copy br.about-detail-break {
  display: block !important;
  content: '' !important;
  margin: 0 !important;
}
/* A clearly narrower About column; mobile retains its current measure. */
@media (min-width: 1025px) {
  body.home #ueber-mich .about-copy {
    width: 280px !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 0 1 auto !important;
  }
  body.home #ueber-mich .about-copy p {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
  }
}
/* Tablet: one-third taller tiles, twice the original 2ch spacing, and captions
proportional to the tile width rather than fixed viewport/point sizes. */
@media (min-width: 701px) and (max-width: 1024px) {
  body.home .works {
    gap: 4ch !important;
  }
  body.home .works .work-card:nth-child(n) {
    height: 40vh !important;
    height: 40svh !important;
    max-height: 40vh !important;
    max-height: 40svh !important;
    aspect-ratio: auto !important;
    container-type: inline-size;
  }
  body.home .works .work-card:nth-child(n) .label {
    font-size: 5.5vw !important;
    font-size: 5.5cqw !important;
    padding: .65em 1em .35em !important;
  }
}
/* Give the mobile/tablet About box more height and vertical breathing space. */
@media (max-width: 1024px) {
  body.home #ueber-mich.about {
    min-height: 380px !important;
    padding-top: 30px !important;
    padding-bottom: 46px !important;
  }
}
@media (min-width: 701px) and (max-width: 1024px) {
  body.home #ueber-mich.about {
    min-height: 440px !important;
  }
  body.home #ueber-mich .about-heading {
    font-size: 26px !important;
  }
  body.home #ueber-mich .about-copy p {
    font-size: 34px !important;
  }
}
/* Narrow desktop: the marked whitespace is about one tenth of the viewport
width. Use the same separation above About and below its complete box. */
@media (min-width: 1025px) and (max-width: 1599px) {
  body.home main#content {
    --skn-about-space: 10vw;
    padding-bottom: var(--skn-about-space) !important;
  }
  body.home #ueber-mich.about {
    margin-top: var(--skn-about-space) !important;
    margin-bottom: 0 !important;
  }
}
/* Remove the marked 170px strip at a 2048px viewport, below About only. */
@media (min-width: 1600px) {
  body.home main#content {
    padding-bottom: calc(max(400px, 30vw) - 8.3vw) !important;
  }
}
/* Slightly larger desktop captions without changing the raster's dimensions. */
@media (min-width: 1025px) {
  body.home .works .work-card:nth-child(n) .label {
    font-size: clamp(13px, 1vw, 16px) !important;
  }
}
