/* ==========================================================
   DOKUMENTACE – nabídka pro muzea a paměťové instituce (needituje se z CMS)
   Typo: Instrument Serif (nadpisy) · Geist (text) · Geist Mono (UI kamery)
   Motiv: archiv a kamera – katalogizační karta, kartotéka, střižna, klapka.
   Typografie je záměrně střídmější než u ostatních landing pages.
   Pozor: prvky, se kterými hýbe GSAP, nesmí mít CSS transform.
   ========================================================== */

:root {
    --paper: #efeae1;
    --paper-2: #e5ded1;
    --card: #fbf8f2;
    --ink: #15181b;
    --ink-2: #2b3035;
    --muted: #6d6a62;
    --line: rgba(21, 24, 27, .14);
    --dark: #121518;
    --dark-2: #1b1f23;
    --dark-line: rgba(239, 234, 225, .14);
    --rec: #e0412b;
    --teal: #2e5b5f;
    --gold: #b98a3c;

    --f-serif: "Instrument Serif", "Georgia", serif;
    --f-sans: "Geist", "Segoe UI", system-ui, sans-serif;
    --f-mono: "Geist Mono", ui-monospace, "Consolas", monospace;
    --gut: clamp(16px, 4vw, 64px);
    --max: 1320px;
    --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body.dk {
    margin: 0; background: var(--paper); color: var(--ink);
    font-family: var(--f-sans); font-size: clamp(16px, 1.05vw, 18px); line-height: 1.6;
    overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
:where(.dk) img { display: block; max-width: 100%; height: auto; }
.dk figure { margin: 0; }
.dk a { color: inherit; }
.dk button { font: inherit; color: inherit; }
.dk ::selection { background: var(--rec); color: #fff; }
.dk a:focus-visible, .dk button:focus-visible { outline: 2px solid var(--rec); outline-offset: 3px; }
.dk em { font-family: var(--f-serif); font-style: italic; font-weight: 400; }

/* ---------- Společné ---------- */
.dk-label {
    display: inline-flex; align-items: center; gap: .7em;
    font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.dk-label span { color: var(--rec); }
.dk-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rec); }
.dk-label--light { color: rgba(239, 234, 225, .6); }
.dk-mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }

.dk-h2 {
    margin: .35em 0 0; font-family: var(--f-serif); font-weight: 400;
    font-size: clamp(32px, 3.6vw, 54px); line-height: 1.05; letter-spacing: -.01em; max-width: 18ch;
}
.dk-h2 em { color: var(--teal); }
.dk-h3 {
    display: flex; align-items: baseline; justify-content: space-between; gap: 1em;
    margin: clamp(48px, 6vw, 88px) 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--dark-line);
    font-family: var(--f-serif); font-weight: 400; font-size: clamp(24px, 2.2vw, 32px);
}
.dk-h3 small { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; opacity: .55; }
.dk-p { margin: 0; max-width: 58ch; font-size: clamp(17px, 1.2vw, 20px); line-height: 1.55; color: var(--ink-2); }
.dk-note { margin: 18px 0 0; max-width: 60ch; font-size: 15px; color: var(--muted); }
.dk-note a { color: var(--ink); text-underline-offset: 3px; }
.dk-note--light { color: rgba(239, 234, 225, .6); }

.dk-head { max-width: var(--max); margin: 0 auto clamp(32px, 4vw, 56px); }
.dk-head__p { margin-top: 18px; }
.dk-head--light .dk-h2 em { color: #e9a77d; }

.dk-btn {
    display: inline-flex; align-items: center; gap: .6em; padding: 14px 22px; border-radius: 999px;
    background: var(--ink); color: var(--paper) !important; text-decoration: none; font-weight: 500; font-size: 15px;
    border: 1px solid var(--ink); transition: background .3s var(--ease), color .3s var(--ease);
}
.dk-btn::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rec); }
.dk-btn:hover { background: var(--rec); border-color: var(--rec); }
.dk-btn:hover::before { background: #fff; }
.dk-btn--ghost { background: transparent; color: var(--ink) !important; }
.dk-btn--ghost::before { display: none; }
.dk-btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper) !important; }
.dk-btn--light { background: var(--paper); color: var(--ink) !important; border-color: var(--paper); }
.dk-btn--light:hover { color: #fff !important; }
.dk-btn--ghost-light { background: transparent; color: var(--paper) !important; border-color: rgba(239, 234, 225, .4); }
.dk-btn--ghost-light::before { display: none; }
.dk-btn--ghost-light:hover { background: var(--paper); color: var(--ink) !important; border-color: var(--paper); }

.dk-link { font-family: var(--f-mono); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.dk-link:hover { color: var(--rec); }

/* REC tečka */
.dk-rec { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--rec); animation: dk-blink 1.6s steps(2, start) infinite; }
@keyframes dk-blink { to { opacity: .25; } }

/* Zrno a průběh */
.dk-grain {
    position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05; mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.dk-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 101; pointer-events: none; }
.dk-progress span { display: block; height: 100%; background: var(--rec); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Leader 3·2·1 ---------- */
.dk-leader {
    position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
    background: #1d1f20; color: var(--paper); pointer-events: none;
}
.dk-leader svg { position: absolute; width: min(56vmin, 420px); height: auto; overflow: visible; }
.dk-leader line { stroke: rgba(239, 234, 225, .25); stroke-width: 1; }
.dk-leader__ring { fill: none; stroke: rgba(239, 234, 225, .5); stroke-width: 1.5; }
.dk-leader__sweep { fill: none; stroke: rgba(239, 234, 225, .12); stroke-width: 160; stroke-dasharray: 0 100; transform: rotate(-90deg); transform-origin: 100px 100px; }
.dk-leader__num { position: relative; font-family: var(--f-serif); font-size: min(26vmin, 200px); line-height: 1; }
html:not(.js) .dk-leader, .dk-nojs .dk-leader { display: none; }
/* Pojistka, kdyby JS selhal */
.dk-leader { animation: dk-leader-out .4s 3s forwards; }
@keyframes dk-leader-out { to { opacity: 0; visibility: hidden; } }

/* ---------- Nav ---------- */
.dk-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 14px var(--gut);
    transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.dk-nav.is-solid { background: rgba(239, 234, 225, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.dk-nav.is-dark { background: rgba(18, 21, 24, .85); color: var(--paper); box-shadow: 0 1px 0 var(--dark-line); }
.dk-nav__brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; font-size: 17px; }
.dk-nav__brand span:last-child { opacity: .5; font-weight: 400; }
.dk-nav__links { display: flex; gap: clamp(14px, 2.2vw, 32px); font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.dk-nav__links a { text-decoration: none; opacity: .7; transition: opacity .2s; }
.dk-nav__links a:hover { opacity: 1; }
.dk-nav__cta { font-size: 14px; font-weight: 500; text-decoration: none; padding: 9px 16px; border-radius: 999px; border: 1px solid currentColor; transition: background .3s, color .3s; }
.dk-nav__cta:hover { background: var(--rec); border-color: var(--rec); color: #fff; }
@media (max-width: 860px) { .dk-nav__links { display: none; } }

/* ---------- Hero ---------- */
.dk-hero {
    max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto;
    min-height: 100svh; padding: 110px var(--gut) 64px;
    display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center;
}
.dk-kicker { margin: 0 0 22px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dk-kicker span { color: var(--paper); background: var(--ink); padding: 3px 7px; margin-right: 6px; }
.dk-hero__title {
    margin: 0; font-family: var(--f-serif); font-weight: 400;
    font-size: clamp(40px, 4.8vw, 74px); line-height: 1.02; letter-spacing: -.015em;
}
.dk-hero__title em { color: var(--rec); }
.dk-hero__lead { margin: 24px 0 0; max-width: 44ch; font-size: clamp(17px, 1.25vw, 20px); color: var(--ink-2); }
.dk-hero__cta, .dk-end__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.dk-hero__facts { list-style: none; margin: 44px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dk-hero__facts li { display: flex; flex-direction: column; gap: 2px; }
.dk-hero__facts strong { font-family: var(--f-serif); font-weight: 400; font-size: 24px; line-height: 1.1; }
.dk-hero__facts span { font-size: 13px; color: var(--muted); }

/* Hledáček */
.dk-vf { position: relative; }
.dk-vf__img { position: relative; overflow: hidden; border-radius: 6px; aspect-ratio: 3 / 2; background: var(--dark); }
.dk-vf__img img { width: 100%; height: 100%; object-fit: cover; }
.dk-vf__ui { position: absolute; inset: 0; pointer-events: none; color: #fff; font-family: var(--f-mono); font-size: clamp(10px, .8vw, 12px); letter-spacing: .06em; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.dk-vf__c { position: absolute; width: 28px; height: 28px; border: 2px solid rgba(255, 255, 255, .9); }
.dk-vf__c--tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; }
.dk-vf__c--tr { top: 16px; right: 16px; border-left: 0; border-bottom: 0; }
.dk-vf__c--bl { bottom: 16px; left: 16px; border-right: 0; border-top: 0; }
.dk-vf__c--br { bottom: 16px; right: 16px; border-left: 0; border-top: 0; }
.dk-vf__thirds {
    position: absolute; inset: 0; opacity: .22;
    background:
        linear-gradient(90deg, transparent calc(33.33% - .5px), #fff calc(33.33% - .5px), #fff calc(33.33% + .5px), transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), #fff calc(66.66% - .5px), #fff calc(66.66% + .5px), transparent calc(66.66% + .5px)),
        linear-gradient(180deg, transparent calc(33.33% - .5px), #fff calc(33.33% - .5px), #fff calc(33.33% + .5px), transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), #fff calc(66.66% - .5px), #fff calc(66.66% + .5px), transparent calc(66.66% + .5px));
}
.dk-vf__focus {
    position: absolute; left: 0; top: 0; width: 13%; aspect-ratio: 1; border: 1.5px solid #ffd54a;
    translate: var(--fx, 290%) var(--fy, 90%); transition: translate .9s var(--ease), border-color .3s;
}
.dk-vf__focus::before, .dk-vf__focus::after { content: ""; position: absolute; background: #ffd54a; }
.dk-vf__focus::before { left: 50%; top: 40%; width: 1.5px; height: 20%; translate: -50% 0; }
.dk-vf__focus::after { top: 50%; left: 40%; height: 1.5px; width: 20%; translate: 0 -50%; }
.dk-vf__focus.is-hunting { border-color: #fff; }
.dk-vf__top, .dk-vf__bottom { position: absolute; left: 56px; right: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dk-vf__top { top: 22px; }
.dk-vf__bottom { bottom: 22px; justify-content: flex-start; gap: clamp(10px, 1.5vw, 22px); }
.dk-vf__rec { display: inline-flex; align-items: center; gap: 6px; }
.dk-vf__rec i { width: 9px; height: 9px; border-radius: 50%; background: var(--rec); animation: dk-blink 1.2s steps(2, start) infinite; }
.dk-vf__tc { font-variant-numeric: tabular-nums; }
.dk-vf__meter { margin-left: auto; display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.dk-vf__meter i { width: 3px; height: 100%; background: #7be08e; transform-origin: 50% 100%; animation: dk-meter .9s ease-in-out infinite alternate; }
.dk-vf__meter i:nth-child(n+6) { background: #ffd54a; }
.dk-vf__meter i:nth-child(n+8) { background: var(--rec); }
.dk-vf__meter i:nth-child(2n) { animation-duration: .7s; animation-delay: -.3s; }
.dk-vf__meter i:nth-child(3n) { animation-duration: 1.1s; animation-delay: -.5s; }
@keyframes dk-meter { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.dk-vf__cap { margin-top: 12px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.dk-vf__cap span { color: var(--rec); margin-right: 8px; }

@media (max-width: 900px) {
    .dk-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 96px; }
    .dk-vf { order: -1; }
    .dk-vf__top, .dk-vf__bottom { left: 44px; right: 44px; }
    .dk-vf__bottom span:nth-child(n+3):not(.dk-vf__meter) { display: none; }
}

/* ---------- 01 Katalogizační karta ---------- */
.dk-record { padding: clamp(64px, 9vw, 140px) var(--gut); max-width: calc(980px + 2 * var(--gut)); margin: 0 auto; }
.dk-card {
    position: relative; margin-top: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 4px;
    box-shadow: 0 1px 0 var(--line), 0 30px 60px -30px rgba(21, 24, 27, .25);
    background-image: repeating-linear-gradient(180deg, transparent 0 39px, rgba(46, 91, 95, .09) 39px 40px);
}
.dk-card::before { /* děrování kartotéčního lístku */
    content: ""; position: absolute; left: 50%; bottom: -1px; width: 22px; height: 14px; translate: -50% 0;
    background: var(--paper); border: 1px solid var(--line); border-bottom: 0; border-radius: 11px 11px 0 0;
}
.dk-card__head, .dk-card__foot {
    display: flex; justify-content: space-between; gap: 16px; padding: 14px clamp(18px, 3vw, 36px);
    font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.dk-card__head { border-bottom: 2px solid var(--rec); }
.dk-card__head b { color: var(--ink); font-weight: 500; }
.dk-card__rows { margin: 0; padding: 8px clamp(18px, 3vw, 36px); }
.dk-card__rows > div { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.dk-card__rows > div:last-child { border-bottom: 0; }
.dk-card__rows dt { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.dk-card__rows dd { margin: 0; color: var(--ink-2); }
.dk-card__title { font-family: var(--f-serif); font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; color: var(--ink) !important; }
.dk-card__rows em { color: var(--teal); font-size: 1.12em; }
.dk-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dk-tags span { font-family: var(--f-mono); font-size: 12px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); }
.dk-card__foot { align-items: center; border-top: 1px solid var(--line); }
.dk-stamp {
    display: inline-block; padding: 8px 14px; border: 2px solid var(--rec); border-radius: 4px; color: var(--rec);
    font-size: 10px; line-height: 1.25; text-align: center; rotate: -8deg; opacity: .85;
}
.dk-stamp b { font-size: 13px; font-weight: 500; }
@media (max-width: 640px) {
    .dk-card__rows > div { grid-template-columns: 1fr; gap: 4px; }
    .dk-card__head { flex-direction: column; gap: 4px; }
}

/* ---------- 02 Služby – kartotéka ---------- */
.dk-services { padding: 0 var(--gut) clamp(80px, 10vw, 160px); }
.dk-drawer { max-width: var(--max); margin: 0 auto; }
.dk-drawer__tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 6px; }
.dk-drawer__tabs::-webkit-scrollbar { display: none; }
.dk-drawer__tabs button {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
    padding: 14px 22px 16px; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0;
    background: var(--paper-2); font-size: 15px; font-weight: 500; color: var(--muted);
    transition: background .3s, color .3s, translate .3s var(--ease);
}
.dk-drawer__tabs button span { font-family: var(--f-mono); font-size: 11px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; border: 1px solid currentColor; }
.dk-drawer__tabs button:hover { color: var(--ink); translate: 0 -3px; }
.dk-drawer__tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); translate: 0 0; }
.dk-drawer__tabs button[aria-selected="true"] span { background: var(--rec); border-color: var(--rec); color: #fff; }
.dk-drawer__panel {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 64px); align-items: center;
    padding: clamp(24px, 4vw, 56px); background: var(--card); border: 1px solid var(--line); border-radius: 0 10px 10px 10px;
    box-shadow: 0 30px 60px -40px rgba(21, 24, 27, .35);
}
.dk-drawer__panel[hidden] { display: none; }
.dk-drawer__panel.is-in > * { animation: dk-panel-in .6s var(--ease) both; }
.dk-drawer__panel.is-in > *:nth-child(2) { animation-delay: .08s; }
@keyframes dk-panel-in { from { opacity: 0; transform: translateY(12px); } }
.dk-list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.dk-list li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: clamp(16px, 1.15vw, 19px); line-height: 1.45; }
.dk-list li:first-child { border-top: 1px solid var(--line); }
.dk-list__n { font-family: var(--f-mono); font-size: 12px; color: var(--rec); padding-top: 4px; }
.dk-drawer__media { display: grid; gap: 12px; }
.dk-drawer__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.dk-drawer__media figure { overflow: hidden; border-radius: 4px; }
.dk-drawer__media--film { grid-template-columns: 1.3fr 1fr; align-items: end; }
.dk-drawer__media--film figure:first-child { aspect-ratio: 4 / 5; }
.dk-drawer__media--film figure:last-child { aspect-ratio: 3 / 4; margin-bottom: 15%; }
.dk-drawer__media--foto { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
.dk-drawer__media--foto figure:first-child { grid-row: span 2; aspect-ratio: 3 / 4; }
.dk-drawer__media--foto figure:not(:first-child) { aspect-ratio: 4 / 3; }
.dk-drawer__web .dk-p { font-size: clamp(18px, 1.4vw, 22px); }
.dk-drawer__web .dk-p em { color: var(--teal); }
@media (max-width: 860px) {
    .dk-drawer__panel { grid-template-columns: 1fr; border-radius: 0 0 10px 10px; }
    .dk-drawer__tabs button { padding: 12px 16px 14px; font-size: 14px; }
}

/* Okno prohlížeče (weby) */
.dk-browser { display: block; text-decoration: none; border-radius: 8px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .45); transition: translate .5s var(--ease), box-shadow .5s var(--ease); }
.dk-browser:hover { translate: 0 -6px; box-shadow: 0 34px 60px -28px rgba(0, 0, 0, .5); }
.dk-browser__bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #e9e5de; border-bottom: 1px solid var(--line); }
.dk-browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #cfc8bc; }
.dk-browser__bar i:first-child { background: var(--rec); }
.dk-browser__bar span { margin-left: 10px; flex: 1; padding: 3px 10px; border-radius: 4px; background: #fff; font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.dk-browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.dk-browser__cap { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 16px; background: var(--dark-2); color: var(--paper); }
.dk-browser__cap b { font-family: var(--f-serif); font-weight: 400; font-size: 22px; }
.dk-browser__cap span { font-size: 14px; opacity: .65; }

/* ---------- 03 Tři kamery – střižna ---------- */
.dk-multicam { background: var(--dark); color: var(--paper); padding: clamp(80px, 10vw, 150px) var(--gut); }
.dk-mc {
    max-width: var(--max); margin: 0 auto;
    display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px clamp(24px, 3vw, 48px);
    grid-template-areas: "program txt" "cams plan";
}
.dk-mc__program { grid-area: program; }
.dk-mc__txt { grid-area: txt; align-self: start; }
.dk-mc__cams { grid-area: cams; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dk-mc__plan { grid-area: plan; width: 100%; max-width: 340px; height: auto; align-self: center; }
.dk-mc__screen { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 6px; background: #000; outline: 3px solid var(--rec); outline-offset: -3px; }
.dk-mc__live { width: 100%; height: 100%; object-fit: cover; }
.dk-mc__screen.is-cut .dk-mc__live { animation: dk-cut .45s ease-out; }
@keyframes dk-cut { 0% { filter: brightness(1.6) contrast(1.2); } 100% { filter: none; } }
.dk-mc__osd { position: absolute; inset: 14px 16px auto; display: flex; gap: 12px; align-items: center; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.dk-mc__pgm { background: var(--rec); color: #fff; padding: 2px 7px; border-radius: 2px; text-shadow: none; }
.dk-mc__tc { margin-left: auto; font-variant-numeric: tabular-nums; }
.dk-mc__scenes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 14px; color: rgba(239, 234, 225, .55); }
.dk-mc__scenes button { cursor: pointer; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--dark-line); background: transparent; font-size: 13px; color: rgba(239, 234, 225, .75); transition: background .3s, color .3s; }
.dk-mc__scenes button:hover { color: var(--paper); border-color: rgba(239, 234, 225, .4); }
.dk-mc__scenes button.is-on { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.dk-mc__cam { position: relative; cursor: pointer; padding: 0; border: 0; background: #000; border-radius: 4px; overflow: hidden; aspect-ratio: 3 / 2; text-align: left; }
.dk-mc__cam img { width: 100%; height: 100%; object-fit: cover; opacity: .7; transition: opacity .3s, transform .6s var(--ease); }
.dk-mc__cam:hover img { opacity: 1; transform: scale(1.04); }
.dk-mc__cam::after { content: ""; position: absolute; inset: 0; border: 2px solid transparent; border-radius: 4px; transition: border-color .2s; }
.dk-mc__cam.is-live::after { border-color: var(--rec); }
.dk-mc__cam.is-live img { opacity: 1; }
.dk-mc__tally { position: absolute; top: 8px; left: 8px; font-family: var(--f-mono); font-size: 11px; padding: 2px 6px; border-radius: 2px; background: rgba(0, 0, 0, .55); color: #fff; }
.dk-mc__cam.is-live .dk-mc__tally { background: var(--rec); }
.dk-mc__role { position: absolute; left: 8px; right: 8px; bottom: 8px; font-size: 12px; line-height: 1.25; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
.dk-mc__txt p { margin: 0 0 16px; color: rgba(239, 234, 225, .82); font-size: clamp(16px, 1.1vw, 18px); }
.dk-mc__txt em { color: #e9a77d; font-size: 1.1em; }
.dk-mc__stage { fill: rgba(239, 234, 225, .06); stroke: rgba(239, 234, 225, .35); stroke-dasharray: 3 3; }
.dk-mc__plan text { fill: rgba(239, 234, 225, .55); font-family: var(--f-mono); font-size: 10px; }
.dk-mc__cone { fill: rgba(239, 234, 225, .05); stroke: rgba(239, 234, 225, .12); transition: fill .4s, stroke .4s; }
.dk-mc__cone.is-live { fill: rgba(224, 65, 43, .28); stroke: rgba(224, 65, 43, .8); }
.dk-mc__pos circle { fill: var(--dark-2); stroke: rgba(239, 234, 225, .5); transition: fill .3s, stroke .3s; }
.dk-mc__pos.is-live circle { fill: var(--rec); stroke: var(--rec); }
@media (max-width: 960px) {
    .dk-mc { grid-template-columns: 1fr; grid-template-areas: "program" "cams" "txt" "plan"; }
    .dk-mc__plan { justify-self: center; }
}
@media (max-width: 520px) { .dk-mc__role { display: none; } }

/* ---------- 04 Detail jako exponát ---------- */
.dk-specimens { padding: clamp(80px, 10vw, 150px) var(--gut); }
.dk-spec { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(12px, 1.6vw, 24px); align-items: start; }
.dk-spec__item:nth-child(even) { margin-top: clamp(24px, 5vw, 72px); }
.dk-spec__item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 3px; cursor: zoom-in; transition: filter .5s; filter: saturate(.9); }
.dk-spec__item:hover img { filter: saturate(1.1); }
.dk-spec__item figcaption {
    position: relative; margin: 14px 6px 0; padding: 10px 12px 12px; background: var(--card); border: 1px solid var(--line);
    display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.35;
}
.dk-spec__item figcaption::before { /* špendlík muzejní cedulky */
    content: ""; position: absolute; top: -5px; left: 50%; width: 8px; height: 8px; border-radius: 50%; translate: -50% 0;
    background: var(--rec); box-shadow: 0 2px 3px rgba(0, 0, 0, .25);
}
.dk-spec__item b { font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--rec); }
.dk-spec__item i { font-style: normal; font-size: 12px; color: var(--muted); }
@media (max-width: 960px) {
    .dk-spec { grid-template-columns: repeat(6, 1fr); }
    .dk-spec__item { grid-column: span 2; }
    .dk-spec__item:nth-child(4), .dk-spec__item:nth-child(5) { grid-column: span 3; }
    .dk-spec__item:nth-child(4) img, .dk-spec__item:nth-child(5) img { aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
    .dk-spec { grid-template-columns: 1fr 1fr; }
    .dk-spec__item, .dk-spec__item:nth-child(4), .dk-spec__item:nth-child(5) { grid-column: auto; }
    .dk-spec__item:nth-child(5) { grid-column: span 2; }
    .dk-spec__item:nth-child(even) { margin-top: 28px; }
}

/* ---------- 05 Ocenění ---------- */
.dk-awards { padding: clamp(80px, 10vw, 150px) var(--gut); background: var(--paper-2); }
.dk-laurels { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.dk-laurel { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: clamp(24px, 3vw, 40px) clamp(20px, 2.4vw, 32px); }
.dk-laurel__mark { position: relative; width: 168px; height: 168px; margin: 0 auto 24px; display: grid; place-items: center; color: var(--gold); }
.dk-laurel__mark svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dk-laurel__name { position: relative; font-family: var(--f-serif); font-size: 26px; line-height: 1; text-align: center; color: var(--ink); }
.dk-laurel__name small { display: block; margin-top: 6px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dk-laurel ul { list-style: none; margin: 0; padding: 0; }
.dk-laurel li { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.dk-laurel li b { font-weight: 500; }
.dk-laurel li span { font-size: 14px; color: var(--muted); }
.dk-awards__more { max-width: var(--max); margin: 32px auto 0; }
@media (max-width: 900px) { .dk-laurels { grid-template-columns: 1fr; max-width: 560px; } }

/* ---------- 06 Výstupy – časová osa ---------- */
.dk-outputs { padding: clamp(80px, 10vw, 150px) var(--gut); }
.dk-tl { max-width: var(--max); margin: 0 auto; }
.dk-tl__ruler { display: flex; justify-content: space-between; margin-left: 64px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: 10px; color: var(--muted); }
.dk-tl__ruler span:nth-child(odd) { visibility: visible; }
.dk-tl__ruler span:nth-child(even) { visibility: hidden; }
.dk-tl__tracks { position: relative; padding: 10px 0; }
.dk-tl__track { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; margin-bottom: 10px; }
.dk-tl__id { font-family: var(--f-mono); font-size: 11px; text-align: center; padding: 6px 0; border-radius: 3px; background: var(--ink); color: var(--paper); }
.dk-tl__lane { position: relative; height: 76px; border-radius: 4px; background: repeating-linear-gradient(90deg, rgba(21, 24, 27, .04) 0 1px, transparent 1px 10%); }
.dk-tl__clip {
    position: absolute; top: 0; bottom: 0; left: calc(var(--s) * 1%); width: calc(var(--w) * 1%);
    padding: 10px 12px; border-radius: 4px; overflow: hidden;
    display: flex; flex-direction: column; justify-content: center; gap: 2px; line-height: 1.25;
}
.dk-tl__clip b { font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-tl__clip span { font-size: 13px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-tl__clip b, .dk-tl__clip span { position: relative; }
.dk-tl__clip--a { background: var(--teal); color: #fff; }
.dk-tl__clip--a::before { /* průběh vlny */
    content: ""; position: absolute; inset: 0; opacity: .18;
    background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 5px);
    -webkit-mask: linear-gradient(180deg, transparent 30%, #000 50%, transparent 70%); mask: linear-gradient(180deg, transparent 30%, #000 50%, transparent 70%);
}
.dk-tl__clip--b { background: #c9b48e; color: var(--ink); }
.dk-tl__clip--b:not(:has(b)) { opacity: .7; }
.dk-tl__clip--b:has(b) { overflow: visible; }
.dk-tl__clip--c { background: var(--rec); color: #fff; overflow: visible; }
.dk-tl__clip--b:has(b) b, .dk-tl__clip--b:has(b) span, .dk-tl__clip--c b, .dk-tl__clip--c span { overflow: visible; }
.dk-tl__still { position: absolute; top: 14px; bottom: 34px; left: calc(var(--s) * 1%); width: 30px; border-radius: 2px; background: var(--ink-2); box-shadow: inset 0 0 0 2px var(--paper), 0 0 0 1px var(--ink-2); }
.dk-tl__label { position: absolute; left: 0; bottom: 4px; display: flex; gap: 10px; align-items: baseline; font-size: 13px; white-space: nowrap; }
.dk-tl__label b { font-weight: 500; font-size: 15px; }
.dk-tl__label span { color: var(--muted); }
.dk-tl__head {
    position: absolute; top: -8px; bottom: 0; left: calc(64px + (100% - 64px) * var(--p, .12)); width: 2px; background: var(--rec); pointer-events: none;
}
.dk-tl__head::before { content: ""; position: absolute; top: -6px; left: 50%; translate: -50% 0; border: 7px solid transparent; border-top: 9px solid var(--rec); }
@media (max-width: 760px) {
    .dk-tl__ruler { margin-left: 52px; }
    .dk-tl__ruler span:not(:nth-child(5n+1)) { display: none; }
    .dk-tl__track { grid-template-columns: 42px 1fr; gap: 10px; }
    .dk-tl__lane { height: 92px; }
    .dk-tl__clip b { font-size: 14px; white-space: normal; }
    .dk-tl__clip span { white-space: normal; }
    .dk-tl__clip--b:has(b), .dk-tl__clip--c { left: 0; width: 100%; }
    .dk-tl__clip--b:not(:has(b)) { display: none; }
    .dk-tl__still { width: 16px; bottom: 44px; }
    .dk-tl__label { flex-direction: column; gap: 0; white-space: normal; }
    .dk-tl__head { left: calc(52px + (100% - 52px) * var(--p, .12)); }
}

/* ---------- 07 Archiv ---------- */
.dk-archive { background: var(--dark); color: var(--paper); padding: clamp(80px, 10vw, 150px) var(--gut); }
.dk-archive > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.dk-archive .dk-head { margin-bottom: 0; }

/* Filmový pás */
.dk-reel { position: relative; }
.dk-reel__track {
    display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 26vw, 340px); gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 22px 0 26px;
    background:
        radial-gradient(circle at 50% 50%, var(--dark) 3px, transparent 3.5px) 0 4px / 18px 12px repeat-x,
        radial-gradient(circle at 50% 50%, var(--dark) 3px, transparent 3.5px) 0 calc(100% - 4px) / 18px 12px repeat-x,
        linear-gradient(var(--dark-2), var(--dark-2)) 0 0 / 100% 18px no-repeat,
        linear-gradient(var(--dark-2), var(--dark-2)) 0 100% / 100% 18px no-repeat;
    background-attachment: local;
}
.dk-reel__track::-webkit-scrollbar { display: none; }
.dk-film { scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--paper); }
.dk-film__img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 3px; background: var(--dark-2); margin-bottom: 10px; }
.dk-film__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .4s; filter: saturate(.85); }
.dk-film:hover .dk-film__img img { transform: scale(1.05); filter: none; }
.dk-film__play { position: absolute; left: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--rec); color: #fff; transition: transform .4s var(--ease); }
.dk-film__play svg { width: 18px; height: 18px; margin-left: 2px; }
.dk-film:hover .dk-film__play { transform: scale(1.12); }
.dk-film__img--blank {
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; padding: 16px; text-align: center;
    background: repeating-linear-gradient(135deg, #1e2327 0 12px, #1a1e22 12px 24px); border: 1px dashed var(--dark-line);
}
.dk-film__img--blank span { font-family: var(--f-serif); font-size: 26px; line-height: 1.05; }
.dk-film__img--blank small { font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; opacity: .5; }
.dk-film__kind { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(239, 234, 225, .5); }
.dk-film__title { font-family: var(--f-serif); font-size: 23px; line-height: 1.15; }
.dk-film__award { font-size: 13px; color: #e2be7a; }
.dk-reel__nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.dk-reel__btn { width: 44px; height: 44px; border-radius: 50%; cursor: pointer; background: transparent; border: 1px solid var(--dark-line); color: var(--paper); font-size: 18px; transition: background .3s, color .3s; }
.dk-reel__btn:hover { background: var(--paper); color: var(--ink); }

/* Rejstřík fotografií */
.dk-index { list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.dk-index a {
    position: relative; display: grid; grid-template-columns: 48px 1fr auto 32px; gap: 16px; align-items: baseline;
    padding: 18px 0; border-bottom: 1px solid var(--dark-line); text-decoration: none;
    transition: padding .5s var(--ease), color .3s;
}
.dk-index a:hover { padding-left: 14px; color: #fff; }
.dk-index__n { font-family: var(--f-mono); font-size: 12px; color: var(--rec); }
.dk-index__t { font-family: var(--f-serif); font-size: clamp(22px, 2vw, 30px); line-height: 1.15; }
.dk-index__k { font-size: 14px; color: rgba(239, 234, 225, .5); }
.dk-index__go { text-align: right; transition: transform .4s var(--ease); }
.dk-index a:hover .dk-index__go { transform: translate(3px, -3px); color: var(--rec); }
.dk-index__thumb { display: none !important; }
.dk-preview {
    position: fixed; left: 0; top: 0; z-index: 80; width: 260px; aspect-ratio: 3 / 2; pointer-events: none;
    border-radius: 4px; overflow: hidden; opacity: 0; transition: opacity .3s; max-width: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .45);
}
.dk-preview.is-on { opacity: 1; }
.dk-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (max-width: 760px) {
    .dk-preview { display: none; }
    .dk-index a { grid-template-columns: 76px 1fr 24px; align-items: center; }
    .dk-index__n, .dk-index__k { display: none; }
    .dk-index__thumb { display: block !important; grid-column: 1; grid-row: 1; width: 76px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 3px; }
    .dk-index__t { grid-column: 2; font-size: 20px; }
}

.dk-webs { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.dk-archive .dk-browser { border-color: var(--dark-line); }
@media (max-width: 760px) { .dk-webs { grid-template-columns: 1fr; } }

/* ---------- 08 Kontakt – klapka ---------- */
.dk-end {
    background: var(--dark-2); color: var(--paper); padding: clamp(80px, 10vw, 150px) var(--gut) 0;
    display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 100px); align-items: center;
}
.dk-end > :not(.dk-foot) { max-width: 620px; }
.dk-end .dk-p { color: rgba(239, 234, 225, .78); margin-top: 18px; }
.dk-end .dk-h2 em { color: #e9a77d; }
.dk-slate { justify-self: end; width: min(100%, 460px); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
.dk-slate__clap {
    height: 44px; display: flex; overflow: hidden; border-radius: 4px 4px 0 0; background: #f4f1ea;
    transform-origin: 0 100%; rotate: -14deg; translate: 0 -6px; transition: rotate .25s cubic-bezier(.6, 0, .4, 1);
}
.dk-slate__clap i { flex: 1; background: var(--ink); transform: skewX(-30deg); margin: 0 7%; }
.dk-slate:hover .dk-slate__clap, .dk-slate.is-clap .dk-slate__clap { rotate: 0deg; translate: 0 0; }
.dk-slate__body { margin-top: 4px; background: #1c1d1f; border: 2px solid #f4f1ea; border-radius: 0 0 6px 6px; font-family: var(--f-mono); }
.dk-slate__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 18px; border-bottom: 2px solid #f4f1ea; }
.dk-slate__row:last-child { border-bottom: 0; }
.dk-slate span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .6; }
.dk-slate b { font-family: var(--f-serif); font-weight: 400; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.1; }
.dk-slate__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; border-bottom: 2px solid #f4f1ea; }
.dk-slate__grid > div { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border-right: 2px solid #f4f1ea; }
.dk-slate__grid > div:last-child { border-right: 0; }
.dk-slate__blank { letter-spacing: .08em; opacity: .55; }
.dk-foot {
    grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
    margin-top: clamp(64px, 8vw, 120px); padding: 24px 0 28px; border-top: 1px solid var(--dark-line);
    font-size: 13px; color: rgba(239, 234, 225, .55);
}
.dk-foot a { text-decoration: none; }
.dk-foot a:hover { color: var(--paper); }
@media (max-width: 860px) {
    .dk-end { grid-template-columns: 1fr; }
    .dk-slate { justify-self: start; }
}

/* ---------- Video modal ---------- */
.dk-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; background: rgba(10, 12, 14, .92); }
.dk-modal[hidden] { display: none; }
.dk-modal__frame { width: min(1200px, 100%); aspect-ratio: 16 / 9; background: #000; }
.dk-modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.dk-modal__close { position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: #fff !important; font-size: 26px; line-height: 1; cursor: pointer; }
.dk-modal__close:hover { background: var(--rec); border-color: var(--rec); }

@media (prefers-reduced-motion: reduce) {
    .dk *, .dk *::before, .dk *::after { animation: none !important; transition: none !important; }
    .dk-leader { display: none; }
}
