/* ==========================================================
   UHERSKÝ BROD – samostatná landing page (needituje se z CMS)
   Typo: Anton (display) · Fraunces (serif, WONK/SOFT) · JetBrains Mono
   Pozor: prvky, se kterými hýbe GSAP, nesmí mít CSS transform
   (GSAP by ho přepsal) – centruje se přes inset/margin.
   ========================================================== */

:root {
    --night: #0e1a3a;
    --night-2: #16285a;
    --deep: #070d20;
    --paper: #f3eee4;
    --paper-2: #e8e1d3;
    --ink: #0c0f1a;
    --gold: #e8b04a;
    --wine: #4a1020;
    --red: #c8202f;

    --f-display: "Anton", "Impact", "Arial Narrow", sans-serif;
    --f-serif: "Fraunces", "Georgia", serif;
    --f-mono: "JetBrains Mono", ui-monospace, "Consolas", monospace;

    --gut: clamp(16px, 4vw, 64px);
    --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.ub {
    margin: 0; background: var(--paper); color: var(--ink);
    font-family: var(--f-serif); font-optical-sizing: auto;
    font-variation-settings: "SOFT" 50, "WONK" 0;
    font-size: clamp(17px, 1.15vw, 20px); line-height: 1.55;
    overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
/* nulová specificita – třídy komponent mají přednost */
:where(.ub) img { display: block; max-width: 100%; height: auto; }
.ub figure { margin: 0; }
.ub a { color: inherit; }
.ub ::selection { background: var(--gold); color: var(--ink); }
.ub a:focus-visible, .ub button:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.ub-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ub-serif-i {
    font-family: var(--f-serif); font-style: italic; font-weight: 300;
    font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
    text-transform: none; letter-spacing: -.02em;
}
.ub-mono, .ub-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.ub-label { display: inline-flex; align-items: center; gap: .9em; color: var(--ink); }
.ub-label span { display: inline-grid; place-items: center; min-width: 2.6em; height: 2.6em; padding: 0 .4em; border: 1px solid currentColor; border-radius: 99px; }
.ub-label--light { color: var(--paper); }

.ub-facts { margin: 22px 0 0; display: grid; gap: 0; border-top: 1px solid rgba(12, 15, 26, .2); }
.ub-facts div { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(12, 15, 26, .2); }
.ub-facts dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding-top: .3em; }
.ub-facts dd { margin: 0; }
.ub-facts--light { border-color: rgba(243, 238, 228, .25); }
.ub-facts--light div { border-color: rgba(243, 238, 228, .25); }

/* ---------- Grain, cursor, progress ---------- */
.ub-grain {
    position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .06; mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: ubGrain 1.2s steps(6) infinite;
}
@keyframes ubGrain {
    0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); }
    60% { transform: translate(-2%, 6%); } 80% { transform: translate(5%, 2%); } 100% { transform: translate(0, 0); }
}
.ub-progress { position: fixed; left: 0; top: 0; right: 0; height: 3px; z-index: 80; pointer-events: none; }
.ub-progress span { display: block; height: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); }
.ub-cursor {
    position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; width: 14px; height: 14px; margin: -7px 0 0 -7px;
    border-radius: 50%; background: var(--paper); mix-blend-mode: difference; display: grid; place-items: center; opacity: 0;
    transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease);
}
.ub-cursor.is-on { opacity: 1; }
.ub-cursor.is-big { width: 96px; height: 96px; margin: -48px 0 0 -48px; }
.ub-cursor__label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .3s; }
.ub-cursor.is-big .ub-cursor__label { opacity: 1; }
@media (pointer: coarse) { .ub-cursor { display: none; } }

/* ---------- Loader ---------- */
.ub-loader { display: none; }
.js .ub-loader {
    position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
    background: var(--night); color: var(--paper); animation: ubLoaderFailsafe 0s 7s forwards;
}
@keyframes ubLoaderFailsafe { to { visibility: hidden; } }
.ub-loader__word { display: flex; overflow: hidden; font-family: var(--f-display); font-size: clamp(90px, 22vw, 340px); line-height: .9; }
.ub-loader__word span { display: block; }
.ub-loader__count {
    position: absolute; right: var(--gut); bottom: var(--gut); font-family: var(--f-display);
    font-size: clamp(48px, 8vw, 120px); line-height: .8; font-variant-numeric: tabular-nums; color: var(--gold);
}
.ub-loader__note { position: absolute; left: var(--gut); bottom: var(--gut); font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- Nav ---------- */
.ub-nav {
    position: fixed; left: 0; right: 0; top: 0; z-index: 70;
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 18px var(--gut);
    color: #fff; mix-blend-mode: difference;
    font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
}
.ub-nav a { text-decoration: none; }
.ub-nav__links { grid-column: 2; display: flex; gap: 28px; }
.ub-nav__cta { grid-column: 3; justify-self: end; }
.ub-nav__links a, .ub-nav__cta { position: relative; padding: 4px 0; }
.ub-nav__links a::after, .ub-nav__cta::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
    transform: scaleX(0); transform-origin: 100% 50%; transition: transform .5s var(--ease);
}
.ub-nav__links a:hover::after, .ub-nav__cta:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
@media (max-width: 860px) { .ub-nav__links { display: none; } }

/* ==========================================================
   HERO
   ========================================================== */
.ub-hero {
    position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; isolation: isolate;
    color: var(--paper);
    background: radial-gradient(120% 90% at 70% 20%, var(--night-2), var(--night) 55%, var(--deep));
}
.ub-hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; z-index: 3; pointer-events: none;
    background: linear-gradient(to top, rgba(7, 13, 32, .85), transparent);
}
.ub-hero__title { margin: 0; font-weight: 400; }
.ub-hero__word {
    position: absolute; inset: 0 0 -4% 0; margin: auto; width: max-content; height: max-content;
    display: flex; white-space: nowrap; z-index: 1;
    font-family: var(--f-display); font-weight: 400; font-size: 44vw; line-height: .78; letter-spacing: -.01em;
    color: var(--paper);
}
.ub-hero__word .ch { display: block; will-change: transform; }
.ub-hero__word--outline { z-index: 3; color: transparent; -webkit-text-stroke: 2px var(--paper); pointer-events: none; }
.ub-hero__figure {
    position: absolute; z-index: 2; left: 34vw; right: 0; bottom: 0; margin: 0 auto;
    width: auto; height: 94%; max-width: none;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .55));
}
.ub-hero__spire {
    position: absolute; z-index: 0; left: 2vw; bottom: 0; width: auto; height: 62%; max-width: none;
    opacity: .5; filter: grayscale(.4) brightness(.8);
}
.ub-snow { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; pointer-events: none; }
.ub-hero__kicker {
    position: absolute; z-index: 5; left: var(--gut); top: clamp(70px, 13vh, 140px); margin: 0;
    font-family: var(--f-serif); font-style: italic; font-weight: 300; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
    font-size: clamp(54px, 10vw, 180px); line-height: .9; letter-spacing: -.04em; color: var(--gold);
}
.ub-hero__badge { position: absolute; z-index: 5; right: var(--gut); top: clamp(80px, 14vh, 150px); width: clamp(110px, 12vw, 180px); color: var(--paper); }
.ub-hero__meta {
    position: absolute; z-index: 5; left: var(--gut); right: var(--gut); bottom: 22px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 16px 0 0; list-style: none;
    border-top: 1px solid rgba(243, 238, 228, .35);
    font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
}
.ub-hero__meta li { display: flex; flex-direction: column; gap: 2px; }
.ub-hero__scroll { align-items: flex-end; text-align: right; }
.ub-hero__arrow { display: inline-block; animation: ubBob 1.8s var(--ease) infinite; }
@keyframes ubBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (max-width: 700px) {
    .ub-hero__word { inset: 0 0 20% 0; }
    .ub-hero__figure { height: 70%; left: 40vw; }
    .ub-hero__spire { height: 40%; }
    .ub-hero__meta { grid-template-columns: repeat(2, 1fr); row-gap: 10px; }
    .ub-hero__scroll { display: none !important; }
    .ub-hero__badge { top: auto; bottom: 120px; right: 12px; width: 92px; }
}

/* Rotující odznak */
.ub-badge { overflow: visible; }
.ub-badge text { font-family: var(--f-mono); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; fill: currentColor; }
.ub-badge > text { transform-origin: 100px 100px; animation: ubSpin 22s linear infinite; }
.ub-badge__bg { fill: var(--deep); }
.ub-badge__star { color: var(--gold); }
@keyframes ubSpin { to { transform: rotate(360deg); } }

/* ==========================================================
   01 NA BRODĚ
   ========================================================== */
.ub-intro { padding: clamp(80px, 14vw, 200px) var(--gut) clamp(60px, 8vw, 120px); }
.ub-intro__lead {
    margin: 36px 0 0; max-width: 17ch;
    font-family: var(--f-serif); font-weight: 400; font-variation-settings: "SOFT" 30, "WONK" 0, "opsz" 144;
    font-size: clamp(36px, 5.8vw, 108px); line-height: 1; letter-spacing: -.035em;
}
.ub-intro__lead .w { display: inline-block; }
.ub-intro__big { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: clamp(20px, 4vw, 70px); margin-top: clamp(70px, 10vw, 160px); }
.ub-photo-text {
    /* background-clip:text kreslí jen do boxu prvku – line-height musí pojmout celé glyfy */
    font-family: var(--f-display); font-size: clamp(150px, 30vw, 560px); line-height: 1.2; margin: -.1em 0;
    letter-spacing: -.02em; background-image: var(--img); background-size: cover; background-position: 50% 50%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ub-intro__bigcap { margin: 0 0 1.4vw; max-width: 24ch; font-size: clamp(22px, 2.1vw, 36px); line-height: 1.15; letter-spacing: -.02em; }
.ub-intro__bigcap .ub-serif-i { display: block; color: var(--night-2); font-size: 1.5em; line-height: 1; margin-bottom: .2em; }
.ub-intro__bigcap strong { font-weight: 600; }
.ub-stats { list-style: none; margin: clamp(60px, 9vw, 140px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.ub-stats li { padding: 28px 28px 10px 0; border-right: 1px solid rgba(12, 15, 26, .2); }
.ub-stats li + li { padding-left: 28px; }
.ub-stats li:last-child { border-right: 0; }
.ub-stats__n { display: block; font-family: var(--f-display); font-size: clamp(80px, 10vw, 170px); line-height: .85; color: var(--night-2); }
.ub-stats__t { display: block; margin-top: 14px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.ub-stats p { margin: 12px 0 0; max-width: 34ch; font-size: .95em; color: #33384a; }
@media (max-width: 800px) {
    .ub-intro__big { grid-template-columns: 1fr; }
    .ub-stats { grid-template-columns: 1fr; }
    .ub-stats li, .ub-stats li + li { padding: 26px 0; border-right: 0; border-bottom: 1px solid rgba(12, 15, 26, .2); }
}
.ub-wide { position: relative; margin-top: clamp(70px, 10vw, 150px); overflow: hidden; aspect-ratio: 21 / 10; border-radius: 4px; }
.ub-wide img { position: absolute; top: -10%; left: 0; width: 100%; height: 120%; object-fit: cover; }
.ub-wide figcaption {
    position: absolute; left: 20px; right: 20px; bottom: 16px; display: flex; justify-content: space-between; gap: 20px;
    font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .6);
}
@media (max-width: 700px) { .ub-wide { aspect-ratio: 4 / 5; } .ub-wide figcaption { flex-direction: column; gap: 4px; } }

/* ==========================================================
   02 HISTORIE – horizontální osa
   ========================================================== */
.ub-hist { position: relative; overflow: hidden; background: var(--night); color: var(--paper); }
.ub-hist__track { display: flex; flex-direction: column; gap: 80px; padding: 110px var(--gut); }
.ub-hist__intro { display: flex; flex-direction: column; justify-content: center; }
.ub-hist__title {
    margin: 26px 0 0; white-space: nowrap; font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
    font-size: clamp(76px, 17vw, 340px); line-height: .82; letter-spacing: -.01em;
}
.ub-hist__sub { margin: 26px 0 0; font-size: clamp(22px, 2.4vw, 40px); line-height: 1.1; }
.ub-hist__sub .ub-serif-i { color: var(--gold); font-size: 1.3em; }
.ub-hist__hint { display: none; margin-top: 40px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }

.ub-panel { position: relative; display: grid; gap: 24px; }
.ub-panel__img { position: relative; overflow: hidden; border-radius: 4px; background: var(--night-2); }
.ub-panel__img img { width: 100%; height: 100%; object-fit: cover; }
.ub-panel__img--wide { aspect-ratio: 3 / 2; }
.ub-panel__img--tall { aspect-ratio: 2 / 3; }
.ub-panel__img--arch { aspect-ratio: 2 / 3; border-radius: 999px 999px 4px 4px; }
@media (max-width: 899px) { .ub-panel__img--arch, .ub-panel__img--tall { width: 82%; } }
.ub-panel__txt { max-width: 40ch; }
.ub-panel__year { display: block; font-family: var(--f-display); font-size: clamp(64px, 7vw, 130px); line-height: .9; color: var(--gold); }
.ub-panel__year--xl { font-size: clamp(110px, 16vw, 300px); color: transparent; -webkit-text-stroke: 1.5px var(--gold); line-height: .85; }
.ub-panel h3 { margin: 14px 0 12px; font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(36px, 3.6vw, 66px); line-height: .95; }
.ub-panel p { margin: 0; color: rgba(243, 238, 228, .82); }
.ub-hist__bar { display: none; }

.ub-hist.is-h .ub-hist__track { flex-direction: row; align-items: stretch; gap: 0; padding: 0; height: 100vh; width: max-content; will-change: transform; }
.ub-hist.is-h .ub-hist__intro { width: auto; min-width: 58vw; padding: 110px 6vw 80px var(--gut); }
.ub-hist.is-h .ub-hist__hint { display: block; }
.ub-hist.is-h .ub-panel { display: flex; align-items: center; gap: 3.2vw; padding: 0 4.5vw; height: 100vh; }
.ub-hist.is-h .ub-panel__img { flex: none; }
.ub-hist.is-h .ub-panel__img--wide { height: 58vh; width: 87vh; }
.ub-hist.is-h .ub-panel__img--tall, .ub-hist.is-h .ub-panel__img--arch { height: 68vh; width: calc(68vh * 2 / 3); }
.ub-hist.is-h .ub-panel__img img { position: absolute; inset: 0 auto 0 -10%; width: 120%; max-width: none; }
.ub-hist.is-h .ub-panel__txt { flex: none; width: 26vw; max-width: 400px; }
.ub-hist.is-h .ub-panel--rev .ub-panel__txt { order: -1; }
.ub-hist.is-h .ub-panel--type .ub-panel__txt { width: 34vw; max-width: 560px; }
.ub-hist.is-h .ub-panel:last-child { padding-right: 10vw; }
.ub-hist.is-h .ub-hist__bar { display: block; position: absolute; left: var(--gut); right: var(--gut); bottom: 28px; height: 2px; background: rgba(243, 238, 228, .15); }
.ub-hist.is-h .ub-hist__bar span { display: block; height: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); }

/* ==========================================================
   03 NÁMĚSTÍ
   ========================================================== */
.ub-square { padding: clamp(90px, 12vw, 180px) var(--gut); background: var(--paper); }
.ub-square__title {
    margin: 30px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 2vw;
    font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(80px, 15vw, 300px); line-height: .82;
}
.ub-square__x {
    font-family: var(--f-serif); font-style: italic; font-weight: 200; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
    color: var(--gold); font-size: .9em; line-height: .6;
}
.ub-square__quote {
    margin: 40px 0 0; max-width: 30ch; font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
    font-size: clamp(22px, 2.2vw, 38px); line-height: 1.2; color: var(--night-2);
}
.ub-square__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 90px); margin-top: clamp(50px, 7vw, 100px); }
.ub-square__col { border-top: 1px solid var(--ink); padding-top: 24px; }
.ub-square__dates { display: block; font-family: var(--f-display); font-size: clamp(60px, 7vw, 130px); line-height: .9; color: var(--night-2); }
.ub-square__col h3 { margin: 16px 0 14px; font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 2.8vw, 52px); line-height: 1; }
.ub-square__col p { margin: 0; max-width: 48ch; }
.ub-wide--night { margin-top: clamp(60px, 8vw, 120px); }
.ub-sights { margin-top: clamp(70px, 10vw, 150px); }
.ub-sights__lab { margin: 0 0 18px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.ub-sights__list { list-style: none; margin: 0; padding: 0; counter-reset: s; border-top: 1px solid var(--ink); }
.ub-sights__list li {
    counter-increment: s; display: grid; grid-template-columns: 4ch minmax(0, 1.3fr) minmax(0, .7fr) minmax(0, 1.4fr); gap: 2vw; align-items: baseline;
    padding: 18px 0; border-bottom: 1px solid rgba(12, 15, 26, .2); transition: background .4s, padding .4s var(--ease);
}
.ub-sights__list li::before { content: counter(s, decimal-leading-zero); font-family: var(--f-mono); font-size: 12px; color: var(--night-2); }
.ub-sights__list li:hover { background: var(--paper-2); padding-left: 12px; }
.ub-sights__name { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(24px, 2.4vw, 42px); line-height: 1; }
.ub-sights__meta { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: var(--night-2); }
.ub-sights__desc { font-size: .95em; color: #33384a; }
@media (max-width: 800px) {
    .ub-square__cols { grid-template-columns: 1fr; }
    .ub-sights__list li { grid-template-columns: 4ch 1fr; row-gap: 6px; }
    .ub-sights__meta, .ub-sights__desc { grid-column: 2; }
}

/* ==========================================================
   04 KOMENSKÝ
   ========================================================== */
.ub-jak { background: var(--night-2); color: var(--paper); padding: clamp(90px, 12vw, 180px) var(--gut); }
.ub-jak__quotes { position: relative; display: grid; margin-top: 40px; }
.ub-jak__q {
    grid-area: 1 / 1; margin: 0; max-width: 20ch;
    font-family: var(--f-serif); font-weight: 300; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
    font-size: clamp(40px, 6.4vw, 120px); line-height: .98; letter-spacing: -.04em;
    /* střídání postupně: starý citát zmizí, teprve pak se objeví nový (nepřekrývají se) */
    opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s;
}
.ub-jak__q.is-on { opacity: 1; visibility: visible; transition: opacity .8s ease .55s, visibility 0s linear .5s; }
.ub-jak__q em { color: var(--gold); }
.ub-jak__src { margin: 22px 0 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(243, 238, 228, .6); }
.ub-jak__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 5vw, 90px); margin-top: clamp(60px, 8vw, 130px); align-items: end; }
.ub-jak__img { overflow: hidden; border-radius: 999px 999px 4px 4px; aspect-ratio: 2 / 3; }
.ub-jak__img img { width: 100%; height: 100%; object-fit: cover; }
.ub-jak__title { margin: 0 0 24px; font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(64px, 8vw, 150px); line-height: .88; }
.ub-jak__title .ub-serif-i { color: var(--gold); display: block; }
.ub-jak__txt p { margin: 0 0 16px; max-width: 52ch; color: rgba(243, 238, 228, .86); }
@media (max-width: 800px) { .ub-jak__grid { grid-template-columns: 1fr; } .ub-jak__img { width: 80%; } }

/* ==========================================================
   05 HRADBY
   ========================================================== */
.ub-wall {
    position: relative; padding: clamp(90px, 12vw, 180px) var(--gut); background-color: var(--paper-2);
    /* jemný vzor kvádrového zdiva */
    background-image:
        linear-gradient(rgba(12, 15, 26, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(12, 15, 26, .05) 1px, transparent 1px);
    background-size: 120px 48px, 240px 96px;
}
.ub-wall__big { margin-top: 30px; display: flex; align-items: baseline; gap: .1em; font-family: var(--f-display); font-size: clamp(130px, 28vw, 540px); line-height: .82; color: var(--night); }
.ub-wall__big small { font-size: .3em; color: var(--gold); }
.ub-wall__cap { margin: 20px 0 0; max-width: 28ch; font-size: clamp(22px, 2.2vw, 38px); line-height: 1.15; }
.ub-wall__facts { list-style: none; margin: clamp(50px, 7vw, 100px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.ub-wall__facts li { padding: 22px 20px 0 0; display: flex; flex-direction: column; gap: 8px; }
.ub-wall__facts strong { font-family: var(--f-display); font-weight: 400; font-size: clamp(44px, 5vw, 90px); line-height: .9; }
.ub-wall__facts span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.ub-wall__quote {
    margin: clamp(60px, 9vw, 140px) 0 0; max-width: 24ch;
    font-family: var(--f-serif); font-weight: 300; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
    font-size: clamp(34px, 4.6vw, 86px); line-height: 1.02; letter-spacing: -.035em;
}
.ub-wall__quote em { color: var(--night-2); }
.ub-wall__txt { margin: 30px 0 0 auto; max-width: 46ch; }
@media (max-width: 800px) { .ub-wall__facts { grid-template-columns: 1fr 1fr; row-gap: 24px; } }

/* ==========================================================
   06 ŽIDOVSKÉ MĚSTO
   ========================================================== */
.ub-jew { background: var(--deep); color: var(--paper); padding: clamp(90px, 12vw, 180px) var(--gut); }
.ub-jew__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(30px, 5vw, 90px); align-items: center; }
.ub-jew__title { margin: 30px 0 24px; font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(54px, 6.4vw, 120px); line-height: .9; }
.ub-jew__title .ub-serif-i { display: block; color: var(--gold); text-transform: none; }
.ub-jew__txt p { margin: 0 0 16px; max-width: 50ch; color: rgba(243, 238, 228, .84); }
.ub-video { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 16 / 9; background: #000; cursor: pointer; }
.ub-video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .5s, transform 1.2s var(--ease); }
.ub-video:hover img { opacity: 1; transform: scale(1.03); }
.ub-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ub-video__play {
    position: absolute; left: 0; right: 0; top: 0; bottom: 0; margin: auto; width: 96px; height: 96px; border-radius: 50%;
    display: grid; place-items: center; background: var(--gold); color: var(--ink); text-decoration: none;
}
.ub-video__play svg { width: 28px; height: 28px; }
.ub-video__cap {
    position: absolute; left: 16px; bottom: 12px; margin: 0;
    font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .7);
}
.ub-video.is-playing .ub-video__play, .ub-video.is-playing .ub-video__cap { display: none; }
@media (max-width: 800px) { .ub-jew__grid { grid-template-columns: 1fr; } .ub-video__play { width: 72px; height: 72px; } }

/* ==========================================================
   07 RŮŽENCOVÁ POUŤ
   ========================================================== */
.ub-pout { position: relative; overflow: hidden; background: var(--wine); color: var(--paper); padding: clamp(90px, 12vw, 180px) var(--gut) clamp(60px, 8vw, 120px); }
.ub-pout__title { margin: 30px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 2.4vw; font-weight: 400; }
.ub-pout__title > span:first-child { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(76px, 15vw, 290px); line-height: .82; }
.ub-pout__title .ub-serif-i { font-size: clamp(76px, 13vw, 250px); line-height: .9; color: var(--gold); }
.ub-pout__when { margin: 18px 0 0; font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(243, 238, 228, .75); }
.ub-pout__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2vw; margin-top: clamp(50px, 7vw, 110px); }
.ub-pout__grid figure { overflow: hidden; border-radius: 4px; }
.ub-pout__grid img { width: 100%; height: 100%; object-fit: cover; }
.ub-pout__icon { grid-column: 1 / 5; grid-row: 1 / 3; aspect-ratio: 2 / 3; border-radius: 999px 999px 4px 4px !important; }
.ub-pout__txt { grid-column: 6 / 12; align-self: start; }
.ub-pout__lead { margin: 0 0 20px; font-size: clamp(26px, 2.6vw, 46px); line-height: 1.1; letter-spacing: -.02em; font-variation-settings: "SOFT" 60, "opsz" 144; }
.ub-pout__txt p:not(.ub-pout__lead) { margin: 0; max-width: 52ch; color: rgba(243, 238, 228, .84); }
.ub-pout__p1 { grid-column: 6 / 9; aspect-ratio: 3 / 2; align-self: end; }
.ub-pout__p2 { grid-column: 9 / 13; aspect-ratio: 3 / 2; align-self: end; }
@media (max-width: 800px) {
    .ub-pout__icon { grid-column: 1 / 10; grid-row: auto; }
    .ub-pout__txt { grid-column: 1 / 13; }
    .ub-pout__p1 { grid-column: 1 / 8; }
    .ub-pout__p2 { grid-column: 4 / 13; }
}

/* Dvojice výřezů */
.ub-pair { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1fr); align-items: end; gap: 2vw; margin-top: clamp(70px, 10vw, 160px); }
.ub-pair__bgword {
    position: absolute; left: calc(-1 * var(--gut)); top: 18%; white-space: nowrap; pointer-events: none;
    font-family: var(--f-display); font-size: 22vw; line-height: .8; color: rgba(243, 238, 228, .06);
}
.ub-pair__fig { position: relative; z-index: 1; }
.ub-pair__fig img { width: 100%; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .45)); }
.ub-pair__fig--r img { width: 112%; max-width: none; }
.ub-pair__txt { position: relative; z-index: 2; align-self: center; margin: 0; text-align: center; font-size: clamp(22px, 2.2vw, 38px); line-height: 1.15; letter-spacing: -.02em; }
.ub-pair__txt .ub-serif-i { display: block; margin-top: 10px; color: var(--gold); }
@media (max-width: 800px) {
    .ub-pair { grid-template-columns: 1fr 1fr; }
    .ub-pair__txt { grid-column: 1 / -1; grid-row: 1; }
    .ub-pair__fig--r img { width: 100%; }
}
.ub-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.2vw; margin-top: clamp(50px, 7vw, 110px); }
.ub-strip figure { overflow: hidden; border-radius: 3px; aspect-ratio: 3 / 4; }
.ub-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ub-strip figure:hover img { transform: scale(1.05); }
@media (max-width: 800px) { .ub-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ==========================================================
   08 FILM
   ========================================================== */
.ub-film { background: var(--deep); color: var(--paper); }
.ub-film__pin { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.ub-film__titles { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 9vh 0 7vh; pointer-events: none; z-index: 4; }
.ub-film__titles span { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(64px, 11vw, 210px); line-height: .82; text-shadow: 0 12px 50px rgba(0, 0, 0, .35); }
.ub-film__t1 { align-self: flex-start; padding-left: var(--gut); }
.ub-film__t2 { align-self: flex-end; padding-right: var(--gut); color: var(--gold); }
.ub-film.is-playing .ub-film__titles { display: none; }
.ub-film__frame { position: absolute; inset: 0; z-index: 2; overflow: hidden; background: #000; }
.ub-film__frame.is-playing { clip-path: none !important; }
.ub-film__poster { width: 100%; height: 100%; object-fit: cover; }
.ub-film__frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(7, 13, 32, .85), transparent 45%); }
.ub-film__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.ub-film__frame.is-playing::after, .ub-film__frame.is-playing .ub-film__play { display: none; }
.ub-film__play {
    position: absolute; z-index: 4; left: 0; right: 0; top: 0; bottom: 0; margin: auto;
    width: clamp(120px, 12vw, 180px); height: clamp(120px, 12vw, 180px); border-radius: 50%; text-decoration: none;
    background: var(--gold); color: var(--ink); display: grid; place-items: center; align-content: center; gap: 6px;
    font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; line-height: 1.3; text-align: center;
    transition: background .3s;
}
.ub-film__play:hover { background: var(--paper); }
.ub-film__play svg { width: 22px; height: 22px; }
.ub-film__cap { position: absolute; z-index: 3; left: var(--gut); right: var(--gut); bottom: 36px; display: grid; grid-template-columns: 1fr auto; gap: 8px 30px; align-items: end; pointer-events: none; }
.ub-film__cap .ub-label { grid-column: 1 / -1; }
.ub-film__cap h2 { margin: 0; font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 3.4vw, 60px); line-height: .9; }
.ub-film__cap a { pointer-events: auto; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.ub-film.is-playing .ub-film__cap { display: none; }
@media (max-width: 800px) { .ub-film__cap { grid-template-columns: 1fr; } }

/* ==========================================================
   09 KRAJINA
   ========================================================== */
.ub-land { position: relative; min-height: 110vh; overflow: hidden; color: var(--paper); display: flex; align-items: flex-end; background: var(--deep); }
.ub-land__bg { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; }
.ub-land::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(7, 13, 32, .8), transparent 55%); }
.ub-land__inner { position: relative; z-index: 2; padding: 0 var(--gut) clamp(60px, 9vw, 130px); }
.ub-land__title { margin: 24px 0 0; display: flex; flex-direction: column; font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(90px, 17vw, 330px); line-height: .82; }
.ub-land__title span:last-child { color: var(--gold); }
.ub-land__txt { margin: 30px 0 0; max-width: 46ch; color: rgba(243, 238, 228, .9); }
.ub-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.ub-fields figure { overflow: hidden; aspect-ratio: 3 / 2; }
.ub-fields img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .ub-fields { grid-template-columns: 1fr; } }

/* ==========================================================
   10 MĚSTO DNES
   ========================================================== */
.ub-city { padding: clamp(90px, 12vw, 180px) var(--gut); background: var(--paper); }
.ub-city__title { margin: 30px 0 0; font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(90px, 17vw, 330px); line-height: .82; }
.ub-city__title .ub-serif-i { color: var(--night-2); }
.ub-city__stats { list-style: none; margin: clamp(50px, 7vw, 100px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.ub-city__stats li { padding: 22px 20px 0 0; display: flex; flex-direction: column; gap: 8px; }
.ub-city__stats strong { font-family: var(--f-display); font-weight: 400; font-size: clamp(48px, 6vw, 110px); line-height: .9; color: var(--night-2); }
.ub-city__stats span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.ub-city__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2vw; margin-top: clamp(60px, 8vw, 130px); }
.ub-city__grid figure { overflow: hidden; border-radius: 4px; }
.ub-city__grid img { width: 100%; height: 100%; object-fit: cover; }
.ub-city__a { grid-column: 1 / 6; aspect-ratio: 4 / 5; }
.ub-city__b { grid-column: 6 / 13; aspect-ratio: 3 / 2; align-self: start; }
.ub-city__c { grid-column: 6 / 9; aspect-ratio: 1; margin-top: -6vw; position: relative; z-index: 1; border: 6px solid var(--paper); }
.ub-city__txt { grid-column: 9 / 13; align-self: start; }
.ub-city__txt p { margin: 0; }
.ub-city__film { margin-top: clamp(80px, 10vw, 160px); }
.ub-city__film-title { margin: 0 0 clamp(20px, 2.5vw, 40px); font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(54px, 8vw, 150px); line-height: .85; }
.ub-city__film-title .ub-serif-i { color: var(--night-2); text-transform: none; }
@media (max-width: 800px) {
    .ub-city__stats { grid-template-columns: 1fr 1fr; row-gap: 24px; }
    .ub-city__a { grid-column: 1 / 9; }
    .ub-city__b { grid-column: 1 / 13; }
    .ub-city__c { grid-column: 7 / 13; margin-top: -14vw; }
    .ub-city__txt { grid-column: 1 / 13; }
}

/* ==========================================================
   11 FINÁLE
   ========================================================== */
.ub-end { position: relative; min-height: 100vh; background: var(--deep); color: var(--paper); overflow: hidden; display: flex; flex-direction: column; }
.ub-end__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.ub-end::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, var(--deep), transparent 40%, rgba(7, 13, 32, .92)); }
.ub-end__inner { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 120px var(--gut) 40px; }
.ub-end__inner > .ub-mono { color: var(--gold); }
.ub-end__title { margin: 20px 0 0; display: flex; flex-direction: column; font-weight: 400; }
.ub-end__title span:first-child { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(90px, 18vw, 360px); line-height: .8; }
.ub-end__title .ub-serif-i { font-size: clamp(90px, 17vw, 330px); line-height: .9; color: var(--gold); padding-left: 10vw; }
.ub-end__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 50px; }
.ub-btn {
    display: inline-flex; align-items: center; padding: 22px 34px; border-radius: 99px; text-decoration: none;
    background: var(--paper); color: var(--ink) !important; border: 1px solid var(--paper);
    font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; transition: background .3s, color .3s;
}
.ub-btn:hover { background: var(--gold); border-color: var(--gold); }
.ub-btn--ghost { background: transparent; color: var(--paper) !important; }
.ub-btn--ghost:hover { color: var(--ink) !important; }
.ub-btn span { display: inline-block; pointer-events: none; }
.ub-foot {
    position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 10px 30px; justify-content: space-between;
    padding: 22px var(--gut); border-top: 1px solid rgba(243, 238, 228, .2);
    font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(243, 238, 228, .7);
}
.ub-foot a { color: var(--paper); }

/* ==========================================================
   Omezený pohyb / bez JS
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
    .ub-grain, .ub-badge > text, .ub-hero__arrow { animation: none; }
    .js .ub-loader { display: none; }
    .ub-snow, .ub-film__titles { display: none; }
}
:is(.ub-nojs, html:not(.js)) .ub-snow,
:is(.ub-nojs, html:not(.js)) .ub-film__titles { display: none; }
