/* FLARES — hlavní nastavení vzhledu */
:root {
  --background: #080808;
  --text: #fff;
  --muted: #888;
  --line: #303030;
  --gutter: 32px;
  --body-font: Inter, Arial, sans-serif;
  --mono-font: 'IBM Plex Mono', monospace;
  --display-font: 'June Expt Curious Regular', Inter, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); font: 16px/1.28 var(--body-font); }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
button, input, textarea { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
a:hover { color: #c7c7c7; }
img, video { display: block; max-width: 100%; }
h1,h2,h3,h4,p,dl,dd { margin: 0; }
/* Jemná filmová textura nad černými plochami. */
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 10; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E"); }
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: grid; grid-template-columns: 1fr 1fr; padding: 28px var(--gutter); font: 500 14px/1.28 var(--mono-font); text-transform: uppercase; mix-blend-mode: difference; pointer-events: none; }
.site-header a, .site-header button { pointer-events: auto; }
.brand { font-size: 16px; align-self: start; width: max-content; }
.brand span { margin: 0 6px; }
#main-nav { display: grid; grid-template-columns: 1fr 2fr; }
.nav-pages,.nav-socials { display: flex; flex-direction: column; align-items: start; gap: 10px; }
.menu-toggle { display: none; }
.hero { position: relative; height: 100svh; min-height: 650px; isolation: isolate; }
.cover-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, #0003); z-index: -1; }
.hero-bottom { position: absolute; bottom: 32px; left: var(--gutter); right: var(--gutter); display: grid; grid-template-columns: 2fr 1fr; align-items: end; }
.hero-logo { padding-left: 50px; font-size: 0; mix-blend-mode: difference; }
.hero-logo img { width: 632px; height: auto; object-fit: contain; }
.hero-intro { padding: 0 0 0 2px; max-width: 260px; }
.hero-intro p { font-size: 21px; line-height: 1.28; text-transform: uppercase; }
.play-link { display: inline-flex; gap: 12px; align-items: center; font: 500 14px/1.28 var(--mono-font); text-transform: uppercase; }
.play-link::before { content: ''; width: 0; height: 0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 6px solid currentColor; }
.hero-intro .play-link { margin: 32px 0; }
.scroll-link { display: flex; align-items: center; justify-content: center; border: 1px solid #ffffff80; border-radius: 30px; width: 37px; height: 49px; font-size: 24px; font-weight: 300; }
.section { display: grid; grid-template-columns: 1fr 5fr; gap: 12px; padding: 120px var(--gutter); }
.section-label { color: var(--muted); font: 500 16px/1.28 var(--mono-font); text-transform: uppercase; font-weight: 500; }
.section-label::before { content: '\\'; margin-right: 10px; }
.section-content { min-width: 0; }
.about { padding-top: 240px; }
.about-copy { display: grid; grid-template-columns: 3fr 2fr; gap: 12px; }
.display-title { font: 400 56px/1.1 var(--display-font); text-transform: uppercase; }
.about-copy .display-title { max-width: 540px; padding-left: 48px; }
.body-copy { padding: 0 48px 0 0; text-transform: uppercase; font-size: 14px; line-height: 1.28; }
.body-copy p + p { margin-top: 22px; }
.body-copy .play-link { margin-top: 48px; }
.about-videos { display: grid; grid-template-columns: 3fr 2fr; gap: 12px; margin-top: 88px; }
.tall-video,.short-video { width: 100%; object-fit: cover; background: #141414; }
.tall-video { height: 936px; }
.short-video { height: 640px; }
.festival,.creative-zones { padding: 120px 0; }
.festival .section-label,.creative-zones .section-label { margin: 0 var(--gutter) 44px; }
.festival-player { width: min(80%, 1040px); margin-inline: auto; aspect-ratio: 16/9; }
.festival-cta { width: min(80%, 1040px); margin: 32px auto 0; text-align: center; }
.festival-player iframe { display: block; width: 100%; height: 100%; border: 0; }
.marquee { overflow: hidden; margin-top: 48px; }
.marquee-track { width: max-content; display: flex; gap: 40px; animation: marquee 32s linear infinite; }
.marquee p { font-size: 64px; line-height: 1.2; font-weight: 500; white-space: nowrap; }
.marquee span { color: #333; padding: 0 20px; }
@keyframes marquee { to { transform: translateX(calc(-50% - 20px)); } }
.works { padding: 120px 0; }
.works > .section-label { margin: 0 var(--gutter) 30px; }
.project-list { display: flex; flex-direction: column; gap: 72px; align-items: center; }
.project { position: relative; isolation: isolate; width: min(960px, calc(100% - 80px)); min-height: 700px; padding: 40px; gap: 64px; display: flex; flex-direction: column; justify-content: space-between; }
.project::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(#0005,transparent 28%,transparent 55%,#0007); }
.project-heading { display: grid; grid-template-columns: 3fr 2fr; gap: 12px; text-transform: uppercase; }
.project-heading h3 { font-size: 24px; line-height: .96; font-weight: 500; }
.project-heading dl { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-left: 12px; font: 500 14px/1.28 var(--mono-font); }
.project-heading dd { color: #bbb; font-size: 16px; margin-top: 6px; }
.project-description { max-width: 424px; font-size: 14px; line-height: 1.28; text-transform: uppercase; }
.project-description .play-link { margin-top: 32px; }
.contact { padding-top: 248px; padding-bottom: 120px; }
.contact-links { margin: 88px 0; }
.contact-links a { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 3px solid var(--line); padding: 24px 20px 18px 0; font-size: 64px; font-weight: 500; letter-spacing: -2px; }
.contact-links a span:last-child { font-size: 52px; font-weight: 300; }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.contact-grid[hidden] { display: none; }
.contact-grid > .short-video { height: 480px; }
.form-panel { background: #141414; }
.form-panel h4 { padding: 48px; font-size: 48px; line-height: .96; font-weight: 500; text-transform: uppercase; }
#contact-form { display: flex; flex-direction: column; margin-top: 16px; }
#contact-form input,#contact-form textarea { width: 100%; min-width: 0; background: transparent; border: 0; border-top: 1px solid #242424; color: white; border-radius: 0; padding: 28px 48px; font-size: 24px; line-height: 1.4; }
#contact-form textarea { min-height: 420px; resize: vertical; }
#contact-form button { display: flex; justify-content: space-between; border: 0; border-radius: 0; padding: 28px 48px; background: white; color: black; font-size: 24px; font-weight: 600; }
#contact-form button:hover { background: #d8d8d8; }
.form-note { padding: 16px 24px; color: #aaa; font-size: 14px; }
.site-footer { position: relative; min-height: 1200px; padding: 48px 32px; background: #080808; display: flex; flex-direction: column; justify-content: space-between; }
.footer-text { width: min(1064px,100%); align-self: center; display: flex; justify-content: space-between; gap: 36px; text-transform: uppercase; font-size: 14px; }
.footer-text p { max-width: 340px; }
.footer-bottom { width: min(1064px,100%); margin: 0 auto; text-align: center; }
.footer-bottom nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; font: 500 14px/1.28 var(--mono-font); text-transform: uppercase; }
.footer-bottom img { width: 100%; height: auto; max-width: 968px; object-fit: contain; margin: 0 auto; }
.footer-bottom > p { font: 500 14px/1.28 var(--mono-font); text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* Zkušební desktopové rozložení projektů 2 × 2. */
@media (min-width: 1024px) {
  .project-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(1320px, calc(100% - 80px)); margin-inline: auto; gap: 32px; align-items: stretch; }
  .project { width: 100%; min-width: 0; min-height: 620px; padding: 32px; gap: 64px; }
  .project-heading { grid-template-columns: 1fr; gap: 20px; }
  .project-heading h3 { line-height: 1.15; }
  .project-heading dl { max-width: 280px; padding-left: 0; }
  .project-description { max-width: 424px; line-height: 1.4; }
  .project-description .play-link { margin-top: 24px; }
}
@media (min-width: 1440px) { .about-copy .display-title { max-width: 620px; } .hero-logo img { width: 765px; } }
@media (max-width: 1279px) {
  .section { grid-template-columns: 1fr 4fr; }
  .about-copy .display-title { padding-left: 0; }
  .display-title { font-size: 48px; }
  .body-copy { padding-right: 0; }
  .hero-logo { padding-left: 0; }
  .hero-logo img { width: 100%; }
  .tall-video { height: 760px; }
  .short-video { height: 540px; }
  .form-panel h4 { padding: 32px; font-size: 38px; }
  #contact-form input,#contact-form textarea,#contact-form button { padding: 28px 32px; }
  .contact-links a { font-size: 52px; }
}
@media (max-width: 719px) {
  :root { --gutter: 20px; }
  .site-header { display: flex; justify-content: space-between; padding: 24px 20px; mix-blend-mode: normal; background: linear-gradient(#0006,transparent); }
  .brand { font-size: 14px; }
  .menu-toggle { display: flex; gap: 18px; align-items: center; border: 0; padding: 0; color: #fff; background: transparent; font: 500 14px var(--mono-font); }
  .menu-toggle span { font-size: 20px; }
  #main-nav { display: none; position: absolute; top: 65px; left: 0; right: 0; padding: 24px 20px 36px; background: #080808; grid-template-columns: 1fr 1fr; }
  #main-nav.is-open { display: grid; }
  .nav-pages,.nav-socials { gap: 20px; }
  .hero { min-height: 650px; }
  .hero-bottom { grid-template-columns: 1fr; bottom: 28px; gap: 8px; }
  .hero-logo { margin: 0 -20px; }
  .hero-logo img { width: 100%; height: auto; object-fit: contain; }
  .hero-intro { display: grid; grid-template-columns: 1fr auto; max-width: none; align-items: center; gap: 20px; }
  .hero-intro p { font-size: 18px; }
  .hero-intro .play-link { margin: 0; }
  .scroll-link { display: none; }
  .section { grid-template-columns: 1fr; padding: 80px 20px; gap: 36px; }
  .section-label { font-size: 14px; }
  .about { padding-top: 120px; }
  .about-copy { grid-template-columns: 1fr; gap: 36px; }
  .display-title { font-size: 42px; }
  .body-copy { font-size: 14px; }
  .body-copy .play-link { margin-top: 32px; }
  .about-videos { margin-top: 48px; grid-template-columns: 3fr 2fr; }
  .tall-video { height: 460px; }
  .short-video { height: 310px; }
  .festival,.creative-zones { padding: 60px 0; }
  .festival .section-label,.creative-zones .section-label { margin-bottom: 30px; }
  .festival-player { width: calc(100% - 40px); margin-inline: auto; }
  .marquee { margin-top: 32px; }
  .marquee p { font-size: 42px; }
  .marquee span { padding: 0 12px; }
  .works { padding: 60px 0; }
  .project-list { gap: 36px; }
  .project { width: calc(100% - 40px); min-height: 560px; padding: 24px; gap: 48px; }
  .project-heading { grid-template-columns: 1fr; gap: 24px; }
  .project-heading h3 { font-size: 24px; line-height: 1.1; }
  .project-heading dl { max-width: 280px; padding-left: 0; }
  .project-description { font-size: 14px; }
  .contact-links { margin: 48px 0; }
  .contact-links a { font-size: clamp(26px,8vw,48px); letter-spacing: -1px; padding-right: 0; }
  .contact-links a span:last-child { font-size: 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact-grid .short-video { height: 480px; }
  .form-panel h4 { font-size: 32px; padding: 28px 24px; }
  #contact-form { margin-top: 0; }
  #contact-form input,#contact-form textarea,#contact-form button { font-size: 20px; padding: 24px; }
  #contact-form textarea { min-height: 280px; }
  .site-footer { min-height: 750px; padding: 48px 20px 32px; }
  .footer-text { flex-direction: column; gap: 24px; }
  .footer-text p { max-width: 100%; }
  .footer-bottom img { margin: 24px auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .marquee-track { animation: none; } }

.site-footer.is-visible { background: linear-gradient(#0005,#0002),url('assets/footer.webp') center/cover; }
.home-film-play { width: 100%; height: 100%; position: relative; display: block; padding: 0; border: 0; color: white; background: #111; cursor: pointer; }
.home-film-play img { width: 100%; height: 100%; object-fit: cover; }
.home-film-play span { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); padding: 18px 24px; background: #080808c9; font: 500 14px var(--mono-font); text-transform: uppercase; white-space: nowrap; }

/* Projektová videa: statický náhled do najetí myší. */
.project .project-poster { pointer-events: none; }
.project.is-playing .project-poster { opacity: 0; }
