/* Pavel Vítek – fotograf. Statický web, bez knihoven a bez externích požadavků. */

/* ---------- písma (lokálně, OFL) ---------- */
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter-tight-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter-tight-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: italic; font-weight: 100 900; font-display: swap; src: url(fonts/inter-tight-latin-wght-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: italic; font-weight: 100 900; font-display: swap; src: url(fonts/inter-tight-latin-ext-wght-italic.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 300; font-display: swap; src: url(fonts/newsreader-latin-300-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 300; font-display: swap; src: url(fonts/newsreader-latin-ext-300-italic.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/newsreader-latin-400-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/newsreader-latin-ext-400-italic.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #fff; --soft: #f4f3f0; --ink: #111; --ink2: #4a4a4a; --ink3: #8a8a87; --line: #e6e4df;
  --dark: #0d0d0d; --dark2: #1a1a1a; --on-dark: #ecebe8; --on-dark2: #9a9995;
  --accent: #00b978;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --pad: clamp(18px, 4vw, 56px);
  --hd: 76px;
  --edge: max(var(--pad), calc((100vw - 1320px) / 2 + var(--pad)));   /* okraj zarovnaný s obsahem (.wrap) */
  --ease: cubic-bezier(.2, .7, .1, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--hd); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); letter-spacing: -.003em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 6px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--pad); }
.wrap-wide { width: 100%; max-width: 1760px; margin-inline: auto; padding-inline: clamp(8px, 2vw, 28px); }

.eyebrow { font-size: .72rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ink3); }
.eyebrow--light { color: rgba(255, 255, 255, .78); }
.arrow { display: inline-flex; align-items: center; gap: .6em; font-size: .78rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.arrow::after { content: "→"; letter-spacing: 0; transition: transform .35s var(--ease); }
.arrow:hover::after { transform: translateX(5px); }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: clamp(28px, 4vw, 48px); }
.lead { font-size: clamp(1.1rem, 1.4vw, 1.3rem); line-height: 1.55; color: var(--ink2); max-width: 46em; }

/* ---------- texty z administrace ---------- */
.prose { max-width: 42em; }
.prose p, .prose ul { margin: 0 0 1.05em; }
.prose ul { padding-left: 1.1em; }
.prose li { margin-bottom: .3em; }
.prose h3 { margin: 2em 0 .7em; font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink3); }
.prose h3:first-child { margin-top: 0; }
.prose strong { font-weight: 600; }
.prose a { text-decoration-color: var(--accent); }
.prose a:hover { color: var(--accent); }
.prose > :last-child { margin-bottom: 0; }

/* ---------- hlavička ---------- */
.hd { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hd); display: flex; align-items: center; gap: 24px; padding-inline: var(--edge);
  background: rgba(255, 255, 255, .9); color: var(--ink); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  transition: background .4s, color .4s, border-color .4s; }
.hd--over:not(.is-solid) { background: transparent; color: #fff; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
body:not(.p-home):not(.p-cat):not(.p-project) main { padding-top: var(--hd); }
.hd__brand { display: grid; gap: 3px; text-decoration: none; line-height: 1; margin-right: auto; }
.hd__name { font-size: .92rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; white-space: nowrap; }
.hd__role { font-size: .6rem; font-weight: 500; letter-spacing: .34em; text-transform: uppercase; opacity: .62; }
.hd__nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
.hd__link { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 8px 0; font-size: .74rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; }
.hd__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.hd__link:hover::after, .hd__link[aria-current]::after, .hd__drop[aria-expanded="true"]::after { transform: scaleX(1); }
.hd__chev { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s; }
.hd__drop[aria-expanded="true"] .hd__chev { transform: translateY(1px) rotate(225deg); }
.hd__burger { display: none; width: 44px; height: 44px; margin-right: -10px; position: relative; }
.hd__burger-l, .hd__burger-l::before { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
.hd__burger-l { top: 18px; }
.hd__burger-l::before { content: ""; left: 0; right: 0; top: 7px; }
.hd__burger[aria-expanded="true"] .hd__burger-l { transform: translateY(3.5px) rotate(45deg); }
.hd__burger[aria-expanded="true"] .hd__burger-l::before { transform: translateY(-7px) rotate(-90deg); }

/* rozbalené portfolio (počítač) */
.mega { position: absolute; top: 100%; left: 0; right: 0; background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); padding: 26px var(--edge) 30px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .25); animation: drop .35s var(--ease); }
.mega__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 16px; }
.mega__item { display: grid; gap: 10px; text-decoration: none; }
.mega__img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--soft); }
.mega__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .4s; }
.mega__item:hover .mega__img img, .mega__item:focus-visible .mega__img img { transform: scale(1.06); }
.mega__name { font-size: .7rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.mega__item[aria-current] .mega__name { color: var(--accent); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* menu na mobilu */
.menu { position: fixed; inset: 0; z-index: 45; background: var(--dark); color: var(--on-dark); overflow-y: auto; animation: fade .3s ease; }
.menu__in { padding: calc(var(--hd) + 20px) var(--pad) 48px; display: grid; gap: 28px; }
.menu__h { font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--on-dark2); }
.menu__cats, .menu__pages { list-style: none; margin: 0; padding: 0; }
.menu__cats a { display: block; padding: 4px 0; font-size: clamp(1.7rem, 7.4vw, 2.6rem); font-weight: 300; letter-spacing: -.02em; line-height: 1.15; text-decoration: none; }
.menu__pages { display: flex; flex-wrap: wrap; gap: 8px 26px; padding-top: 22px; border-top: 1px solid #2c2c2c; }
.menu__pages a { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; }
.menu a[aria-current] { color: var(--accent); }
.menu__mail { color: var(--on-dark2); }
body.menu-open { overflow: hidden; }
body.menu-open .hd { background: var(--dark); color: #fff; border-color: transparent; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 900px) {
  :root { --hd: 64px; }
  .hd__nav, .mega { display: none !important; }
  .hd__burger { display: block; }
}

/* ---------- úvod: prolínačka ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; background: var(--dark); color: #fff; overflow: hidden; }
.hero__slides, .hero__slide { position: absolute; inset: 0; margin: 0; }
.hero__slide { opacity: 0; transition: opacity 1.6s ease; }
.hero__slide.is-on { opacity: 1; z-index: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.07); transition: transform 9s linear; }
.hero__slide.is-on img { transform: scale(1); }
.hero__shade { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .42) 0, rgba(0, 0, 0, 0) 24%, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, .62) 100%); }
.hero__txt { position: absolute; z-index: 3; left: var(--edge); right: var(--edge); bottom: clamp(92px, 15vh, 150px); }
.hero__name { display: grid; font-size: clamp(3.4rem, 11.2vw, 11.5rem); font-weight: 300; letter-spacing: -.045em; line-height: .86; }
.hero__name span:last-child { padding-left: .55em; }
.hero__tag { margin-top: clamp(16px, 2.4vw, 30px); max-width: 34em; font-size: clamp(.95rem, 1.25vw, 1.12rem); color: rgba(255, 255, 255, .82); }
.hero__bar { position: absolute; z-index: 3; left: var(--edge); right: var(--edge); bottom: 30px; display: flex; align-items: center; gap: 24px; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; }
.hero__cap { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(255, 255, 255, .86); transition: opacity .5s; }
.hero__cap.is-out { opacity: 0; }
.hero__dots { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.hero__dots li { width: 26px; height: 2px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.hero__dots i { display: block; height: 100%; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero__dots li.is-done i { transform: scaleX(1); }
.hero__dots li.is-on i { animation: prog var(--slide, 6s) linear forwards; }
.hero__count { font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .86); }
.hero__down { display: none; }
@keyframes prog { to { transform: scaleX(1); } }
@media (max-width: 640px) { .hero__dots { display: none; } .hero__name span:last-child { padding-left: .3em; } }

/* výrok */
.stmt { padding-block: clamp(84px, 12vw, 190px); display: grid; gap: 36px; justify-items: start; }
.stmt__q { margin: 0; max-width: 24em; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.75rem, 3.6vw, 3.4rem); line-height: 1.2; letter-spacing: -.012em; }

/* rejstřík oborů */
.idx { background: var(--dark); color: var(--on-dark); padding-block: clamp(70px, 9vw, 140px); }
.idx .eyebrow { color: var(--on-dark2); margin-bottom: clamp(26px, 4vw, 52px); }
.idx__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(30px, 5vw, 90px); align-items: start; }
.idx__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #2a2a2a; }
.idx__item { border-bottom: 1px solid #2a2a2a; }
.idx__a { display: grid; grid-template-columns: 3.2em 1fr auto; align-items: baseline; gap: 12px; padding: clamp(12px, 1.4vw, 20px) 0; text-decoration: none; transition: opacity .35s, color .35s; }
.idx__no { font-size: .72rem; letter-spacing: .14em; color: var(--on-dark2); font-variant-numeric: tabular-nums; }
.idx__name { font-size: clamp(1.9rem, 4.4vw, 4.2rem); font-weight: 300; letter-spacing: -.035em; line-height: 1.02; transition: transform .5s var(--ease); }
.idx__n { font-size: .72rem; letter-spacing: .12em; color: var(--on-dark2); font-variant-numeric: tabular-nums; }
.idx__thumb { display: none; }
.idx__list:hover .idx__a, .idx__list:focus-within .idx__a { opacity: .32; }
.idx__list .idx__a:hover, .idx__list .idx__a:focus-visible, .idx__list .idx__a.is-on { opacity: 1; }
.idx__a:hover .idx__name, .idx__a:focus-visible .idx__name { transform: translateX(14px); }
.idx__prev { position: sticky; top: calc(var(--hd) + 28px); aspect-ratio: 4 / 5; overflow: hidden; background: var(--dark2); }
.idx__pimg { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease, transform 1.2s var(--ease); transform: scale(1.04); }
.idx__pimg.is-on { opacity: 1; transform: none; }
.idx__pimg img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .idx__grid { grid-template-columns: 1fr; }
  .idx__prev { display: none; }
  .idx__list { border: 0; display: grid; gap: 34px; }
  .idx__item { border: 0; }
  .idx__a { grid-template-columns: 2.2em 1fr auto; padding: 0; opacity: 1 !important; }
  .idx__thumb { display: block; order: -1; grid-column: 1 / -1; aspect-ratio: 3 / 2; overflow: hidden; margin-bottom: 6px; }
  .idx__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .idx__name { font-size: 1.9rem; }
}

/* vybrané projekty */
.feat { padding-block: clamp(80px, 10vw, 160px); }
.feat__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 90px) clamp(20px, 4vw, 70px); }
.feat__grid .card:nth-child(even) { margin-top: clamp(40px, 9vw, 150px); }
.feat__grid .card .card__img { aspect-ratio: 4 / 3; }
.feat__grid .card:nth-child(4n+1) .card__img, .feat__grid .card:nth-child(4n) .card__img { aspect-ratio: 4 / 5; }
@media (max-width: 760px) { .feat__grid { grid-template-columns: 1fr; } .feat__grid .card:nth-child(even) { margin-top: 0; } .feat__grid .card .card__img { aspect-ratio: 3 / 2 !important; } }

/* karta projektu */
.card__a { display: grid; gap: 10px; text-decoration: none; }
.card__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--soft); margin-bottom: 8px; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .5s; }
.card__a:hover .card__img img, .card__a:focus-visible .card__img img { transform: scale(1.045); }
.card__meta { font-size: .68rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink3); }
.card__title { font-size: clamp(1.3rem, 1.9vw, 1.75rem); font-weight: 400; letter-spacing: -.02em; line-height: 1.15; }
.card__a:hover .card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 4vw, 64px) clamp(16px, 2.2vw, 32px); padding-bottom: clamp(60px, 8vw, 120px); }
.pgrid .card.is-hidden { display: none; }
@media (max-width: 1100px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pgrid { grid-template-columns: 1fr; } }

/* ---------- záhlaví stránek ---------- */
.ph { padding-top: clamp(48px, 8vw, 110px); padding-bottom: clamp(30px, 4vw, 56px); }
.ph__h { font-size: clamp(2.8rem, 8.4vw, 8.4rem); font-weight: 300; letter-spacing: -.045em; line-height: .92; }
.ph .eyebrow { margin-bottom: 18px; }
.ph--img { position: relative; height: 80vh; height: 80svh; min-height: 500px; padding: 0; background: var(--dark); color: #fff; overflow: hidden; display: flex; align-items: flex-end; }
.ph--project { height: 88vh; height: 88svh; }
.ph__bg { position: absolute; inset: 0; }
.ph__bg img { width: 100%; height: 100%; object-fit: cover; animation: settle 2.4s var(--ease) both; }
.ph--img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .38) 0, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .66) 100%); pointer-events: none; }
.ph__txt { position: relative; z-index: 2; padding-bottom: clamp(34px, 6vw, 80px); }
.ph__meta { margin-top: 20px; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.ph__h--dark { color: var(--ink); }
@keyframes settle { from { transform: scale(1.06); opacity: .5; } to { transform: none; opacity: 1; } }
.lead-wrap { padding-top: clamp(50px, 6vw, 90px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(30px, 4vw, 48px); }
.chip { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: .74rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; transition: background .25s, color .25s, border-color .25s; }
.chip span { margin-left: 4px; color: var(--ink3); font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[aria-pressed="true"] span { color: rgba(255, 255, 255, .6); }

/* ---------- zarovnaná galerie ---------- */
.gal-sec { padding-block: clamp(36px, 5vw, 80px); }
.jg { --rowh: 330px; --gap: 8px; display: flex; flex-wrap: wrap; gap: var(--gap); }
.jg::after { content: ""; flex-grow: 1000000000; }
.jg__i { position: relative; flex: calc(var(--r) * 100) 1 calc(var(--r) * var(--rowh)); display: block; overflow: hidden; background: var(--soft); cursor: zoom-in; }
.jg__i img { width: 100%; height: auto; aspect-ratio: var(--r); object-fit: cover; transition: transform 1s var(--ease), opacity .6s; }
.jg__i:hover img { transform: scale(1.03); }
.jg__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; color: #fff; font-size: .82rem; line-height: 1.35; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.jg__i:hover .jg__cap, .jg__i:focus-visible .jg__cap { opacity: 1; transform: none; }
@media (min-width: 1600px) { .jg { --rowh: 380px; } }
@media (max-width: 1000px) { .jg { --rowh: 240px; --gap: 6px; } }
@media (max-width: 600px) { .jg { --rowh: 150px; --gap: 4px; } }

/* projekty v oboru, další obor */
.cat-proj { padding-top: clamp(50px, 7vw, 110px); }
.nextb__a { position: relative; display: flex; align-items: flex-end; height: 62vh; min-height: 380px; overflow: hidden; background: var(--dark); color: #fff; text-decoration: none; }
.nextb__img { position: absolute; inset: 0; }
.nextb__img img { width: 100%; height: 100%; object-fit: cover; opacity: .62; transition: transform 1.4s var(--ease), opacity .6s; }
.nextb__a:hover .nextb__img img { transform: scale(1.04); opacity: .8; }
.nextb__txt { position: relative; display: grid; gap: 12px; padding-bottom: clamp(34px, 5vw, 70px); }
.nextb__name { font-size: clamp(2.6rem, 8vw, 7.6rem); font-weight: 300; letter-spacing: -.045em; line-height: .95; }
.nextb__name::after { content: " →"; font-weight: 200; }

/* ---------- detail projektu ---------- */
.pintro { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 3fr); gap: clamp(30px, 6vw, 110px); padding-top: clamp(56px, 8vw, 120px); }
.pintro__perex { margin-bottom: 1.2em; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.5rem, 2.5vw, 2.25rem); line-height: 1.3; letter-spacing: -.01em; max-width: 26em; }
.pintro__main .prose { font-size: 1.08rem; color: var(--ink2); }
.pintro__meta { margin: 0; display: grid; gap: 20px; align-content: start; border-top: 1px solid var(--ink); padding-top: 18px; }
.pintro__meta dt { font-size: .68rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink3); margin-bottom: 3px; }
.pintro__meta dd { margin: 0; }
.pintro__meta a { text-decoration: none; }
.pintro__meta a:hover { text-decoration: underline; }
@media (max-width: 860px) { .pintro { grid-template-columns: 1fr; } .pintro__meta { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); } }

.pnav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: clamp(16px, 3vw, 48px); padding-block: clamp(50px, 7vw, 110px); border-top: 1px solid var(--line); margin-top: clamp(30px, 4vw, 60px); }
.pnav__a { display: grid; gap: 6px; text-decoration: none; }
.pnav__a--next { text-align: right; }
.pnav__img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--soft); margin-bottom: 10px; }
.pnav__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.pnav__a:hover .pnav__img img { transform: scale(1.05); }
.pnav__l { font-size: .68rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink3); }
.pnav__t { font-size: clamp(1.15rem, 1.8vw, 1.6rem); letter-spacing: -.02em; line-height: 1.2; }
.pnav__all { align-self: center; padding: 12px 20px; border: 1px solid var(--ink); border-radius: 999px; font-size: .7rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background .25s, color .25s; }
.pnav__all:hover { background: var(--ink); color: #fff; }
@media (max-width: 760px) { .pnav { grid-template-columns: 1fr 1fr; } .pnav__all { grid-column: 1 / -1; grid-row: 2; justify-self: center; } }

/* ---------- O mně ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(30px, 6vw, 110px); padding-block: clamp(48px, 7vw, 110px); }
.about__img { position: sticky; top: calc(var(--hd) + 30px); margin: 0; }
.about__img img { width: 100%; }
.about__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(30px, 4vw, 54px); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { padding: 7px 14px; border-radius: 999px; font-size: .72rem; font-weight: 600; letter-spacing: .14em; color: var(--ink3); }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.about__q { margin: 0 0 clamp(40px, 5vw, 64px); font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1.45; }
.about__q p { margin-bottom: .9em; }
.about__q em { font-style: normal; }
.about__q footer { font-size: 1.1em; text-align: right; }
.prose--bio { font-size: 1.02rem; }
.prose--bio h3 { margin-top: 2.6em; padding-top: 1.4em; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about__img { position: static; max-width: 520px; } }

/* ---------- Kontakt ---------- */
.contact { padding-block: clamp(48px, 7vw, 110px); }
.contact__head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 70px); }
.contact__mail { display: inline-flex; align-items: baseline; gap: .3em; max-width: 100%; font-size: clamp(1.7rem, 6.2vw, 6rem); font-weight: 300; letter-spacing: -.04em; line-height: 1; text-decoration: none; overflow-wrap: anywhere; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); padding-bottom: .08em; }
.contact__mail span { font-weight: 200; transition: transform .4s var(--ease); }
.contact__mail:hover { background-size: 100% 1px; }
.contact__mail:hover span { transform: translateX(.15em); }
.contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px clamp(24px, 4vw, 64px); margin-top: clamp(50px, 7vw, 100px); padding-top: 28px; border-top: 1px solid var(--ink); }
.contact__grid .eyebrow { margin-bottom: 12px; }
.contact__big { font-size: 1.15rem; line-height: 1.5; }
.contact__big a { text-decoration: none; }
.contact__soc { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 1.15rem; }
.contact__soc a { text-decoration: none; }
.contact__soc a:hover, .contact__big a:hover { text-decoration: underline; }
.map { margin-top: clamp(50px, 7vw, 100px); aspect-ratio: 1200 / 420; background: var(--soft); position: relative; overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__btn { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; }
.map__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__label { position: relative; padding: 13px 22px; background: var(--ink); color: #fff; border-radius: 999px; font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; margin-top: 120px; }
@media (max-width: 600px) { .map { aspect-ratio: 4 / 3; } .map__label { margin-top: 90px; } }

/* ---------- 404 ---------- */
.nf { padding-block: clamp(80px, 12vw, 180px); display: grid; gap: 22px; }
.nf__cats { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.nf__cats a { display: inline-block; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.nf__cats a:hover { border-color: var(--ink); }

/* ---------- patička ---------- */
.ft { background: var(--dark); color: var(--on-dark); padding: clamp(70px, 9vw, 140px) var(--pad) 34px; }
.ft a { text-decoration: none; }
.ft a:hover { color: #fff; text-decoration: underline; }
.ft--short { padding-top: 40px; }
.ft__cta { max-width: 1320px; margin: 0 auto clamp(60px, 8vw, 120px); display: grid; gap: 18px; }
.ft__q { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.5rem, 3vw, 2.6rem); color: var(--on-dark2); }
.ft__mail { display: inline-flex; gap: .3em; align-items: baseline; font-size: clamp(1.8rem, 5.6vw, 5.2rem); font-weight: 300; letter-spacing: -.04em; line-height: 1; overflow-wrap: anywhere; }
.ft__mail span { font-weight: 200; transition: transform .4s var(--ease); }
.ft__mail:hover { text-decoration: none !important; }
.ft__mail:hover span { transform: translateX(.15em); }
.ft__cols { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1.6fr 1fr 1fr; gap: 34px clamp(24px, 4vw, 60px); padding-top: 34px; border-top: 1px solid #2a2a2a; font-size: .92rem; }
.ft__brand { font-size: .9rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: #fff; margin-bottom: 6px; }
.ft__h { font-size: .68rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark2); margin-bottom: 12px; }
.ft__muted { color: var(--on-dark2); line-height: 1.6; }
.ft__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ft__list--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.ft__copy { max-width: 1320px; margin: clamp(50px, 6vw, 80px) auto 0; font-size: .74rem; color: #6d6c69; }
@media (max-width: 900px) { .ft__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ft__cols { grid-template-columns: 1fr; } }

/* ---------- prohlížeč fotek ---------- */
.lb { position: fixed; inset: 0; z-index: 100; background: #0a0a0a; color: #fff; display: grid; grid-template-rows: auto 1fr auto; animation: fade .25s ease; touch-action: pan-y; }
.lb__top { display: flex; justify-content: space-between; align-items: center; padding: 14px var(--pad); font-size: .72rem; letter-spacing: .18em; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .7); }
.lb__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(8px, 6vw, 96px); }
.lb__img { max-width: 100%; max-height: calc(100vh - 128px); max-height: calc(100svh - 128px); width: auto; height: auto; object-fit: contain; opacity: 0; transition: opacity .35s ease; user-select: none; -webkit-user-drag: none; }
.lb__img.is-in { opacity: 1; }
.lb__cap { min-height: 52px; padding: 12px var(--pad) 22px; text-align: center; font-size: .9rem; color: rgba(255, 255, 255, .82); }
.lb__btn { position: absolute; top: 0; bottom: 0; width: clamp(48px, 9vw, 120px); display: grid; place-items: center; color: rgba(255, 255, 255, .7); transition: color .2s; }
.lb__btn:hover { color: #fff; }
.lb__btn svg { width: 34px; height: 34px; }
.lb__prev { left: 0; }
.lb__next { right: 0; }
.lb__close { width: 44px; height: 44px; margin: -10px -10px -10px 0; display: grid; place-items: center; color: #fff; }
.lb__close svg { width: 22px; height: 22px; }
.lb__spin { position: absolute; width: 28px; height: 28px; border: 2px solid rgba(255, 255, 255, .2); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) { .lb__btn { display: none; } .lb__stage { padding: 0; } }
body.lb-open { overflow: hidden; }

/* ---------- objevování při posunu ---------- */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform 1.1s var(--ease); }
.js .rv.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero__slide img, .hero__slide.is-on img { transform: none; }
  .js .rv { opacity: 1; transform: none; }
}
@media print { .hd, .menu, .ft__cta, .hero__bar, .pnav, .nextb { display: none !important; } }
/* Podpis WD&D v patičce */
.wdd-credit:hover,.wdd-credit:focus-visible{opacity:1!important}
