/* Two homepage compositions; the portfolio routes share one cover system. */
:root { --black: #000; --black-soft: #000; --white: #fff; }
body::before { content: none; }
.site-header { background: #000; backdrop-filter: none; }
[hidden] { display: none !important; }
.desktop-nav > a[href="/kontakt/"] { color: var(--orange); }
.header-inner, .homepage, .design-switch { max-width: 1440px; margin-inline: auto; }
.design-switch { display: flex; min-height: 3.1rem; padding: .65rem var(--side); align-items: center; gap: .35rem; font-size: .875rem; }
.design-switch > span { margin-right: auto; color: #aaa; }
.design-switch a { padding: .35rem .75rem; border: 1px solid transparent; }
.design-switch a[aria-current="page"] { border-color: var(--orange); color: var(--orange); }
.design-switch a:hover { color: var(--orange); }
.homepage { padding: .5rem var(--side) 2.25rem; }
.home-reel { min-width: 0; }
.reel-heading { display: flex; min-height: 2.7rem; align-items: start; justify-content: space-between; gap: 1rem; }
.reel-heading h2 { margin: 0; font-size: 1rem; font-weight: 400; }
.reel-heading > span { color: #aaa; font-size: .875rem; }
.homepage .showreel-tile { display: block; width: 100%; margin: 0; grid-column: auto; grid-row: auto; aspect-ratio: 16 / 9; background: #000; }
.home-grid-layout .showreel-tile { aspect-ratio: 2.8 / 1; }
.homepage .showreel-tile.is-playing { aspect-ratio: 16 / 9; }
.showreel-tile.is-playing::after { content: none; }
.cover-media { position: absolute; display: block; inset: 0; overflow: hidden; }
.cover-media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--cover-x, 50%) var(--cover-y, 50%); transform: scale(var(--cover-zoom, 1)); transition: filter .25s ease; }
.video-card:hover .cover-media img, .video-card:focus-visible .cover-media img { transform: scale(var(--cover-zoom, 1)); }
.reel-hint { position: absolute; z-index: 3; left: 1.25rem; bottom: 1.1rem; font-size: .875rem; color: #fff; pointer-events: none; }
.home-categories { display: grid; margin-top: 2.15rem; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem 1.15rem; }
.home-category { min-width: 0; }
.category-link { display: block; }
.category-link h2 { margin: 0 0 .65rem; font-size: clamp(1.125rem, 1.45vw, 1.375rem); font-weight: 400; text-align: center; letter-spacing: -.02em; }
.category-picture { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.category-enter { position: absolute; z-index: 2; right: .75rem; bottom: .75rem; display: grid; width: 2.3rem; height: 2.3rem; place-items: center; background: #000; color: #fff; font-size: 1.25rem; transition: background .2s, color .2s; }
.category-link:hover h2, .category-link:focus-visible h2 { color: var(--orange); }
.category-link:hover .category-enter, .category-link:focus-visible .category-enter, .index-preview:hover .category-enter { background: var(--orange); color: #000; }
.category-link:hover .cover-media img { filter: brightness(.88); }
.home-index-layout { display: grid; min-height: calc(100svh - 13rem); grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; gap: clamp(1.5rem, 3.6vw, 3.5rem); padding-top: 1.5rem; padding-bottom: 2.5rem; }
.home-index-layout .home-reel { position: sticky; top: calc(var(--header-height) + 1.5rem); }
.home-index { min-width: 0; }
.index-preview { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; }
.index-preview-layer { position: absolute; inset: 0; opacity: 0; transition: opacity .24s ease; }
.index-preview-layer.is-selected { opacity: 1; }
.index-list { margin-top: 1rem; }
.index-item { display: grid; min-height: 3.45rem; grid-template-columns: 2.1rem 1fr 1.25rem; gap: .25rem; align-items: center; border-bottom: 1px solid var(--line); }
.index-item:first-child { border-top: 1px solid var(--line); }
.index-item h2 { margin: 0; font-size: clamp(1.125rem, 1.7vw, 1.5rem); font-weight: 400; letter-spacing: -.02em; }
.index-number { color: #999; font-size: .875rem; }
.index-arrow { color: #999; font-size: 1.25rem; }
.index-item.is-selected h2, .index-item.is-selected .index-number, .index-item.is-selected .index-arrow, .index-item:hover h2 { color: var(--orange); }
.index-mobile-picture { display: none; }
.contact-form-title { margin: 0 0 .25rem; font-size: 1.5rem; font-weight: 400; }
.site-footer { font-size: .875rem; }

@media (min-width: 801px) and (max-width: 1050px) {
  .home-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-index-layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5rem; }
  .index-item { min-height: 3.25rem; }
}
@media (max-width: 800px) {
  .design-switch { min-height: 3rem; justify-content: flex-end; flex-wrap: wrap; font-size: .875rem; }
  .design-switch > span { font-size: .8125rem; }
  .design-switch a { padding: .3rem .45rem; }
  .homepage { padding-top: .4rem; padding-bottom: 1.75rem; }
  .reel-heading { min-height: 2.3rem; }
  .reel-heading > span { font-size: .875rem; }
  .home-grid-layout .showreel-tile, .home-index-layout .showreel-tile { aspect-ratio: 16 / 9; }
  .home-categories { grid-template-columns: 1fr; margin-top: 1.65rem; gap: 1.5rem; }
  .category-link h2 { font-size: 1.375rem; }
  .home-index-layout { display: block; min-height: 0; }
  .home-index-layout .home-reel { position: static; }
  .home-index { margin-top: 1.65rem; }
  .home-index > .reel-heading, .index-preview { display: none; }
  .index-list { display: grid; gap: 1.5rem; margin-top: 0; }
  .index-item, .index-item:first-child { display: block; border: 0; min-height: 0; }
  .index-number, .index-arrow { display: none; }
  .index-item h2 { margin-bottom: .65rem; font-size: 1.375rem; text-align: center; }
  .index-item.is-selected h2 { color: #fff; }
  .index-item:focus-visible h2 { color: var(--orange); }
  .index-mobile-picture { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .index-preview-layer, .cover-media img { transition: none; }
}

@media (max-width: 600px) {
  .design-switch { flex-wrap: nowrap; justify-content: start; overflow-x: auto; scrollbar-width: none; }
  .design-switch::-webkit-scrollbar { display: none; }
  .design-switch > span { position: sticky; left: 0; z-index: 1; flex: 0 0 auto; margin: 0 .35rem 0 0; padding-right: .35rem; background: #000; }
  .design-switch a { flex: 0 0 auto; padding-inline: .45rem; text-align: center; white-space: nowrap; font-size: .8125rem; }
}
