/* ============================================================
   Štefan Šraga — stefansraga.com
   Clean static rebuild (migrated off Wix)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --z: 1; /* page zoom factor set by main.js on wide screens (Wix-like scaling) */
  --bg: #030303;
  --bg-panel: #0a0a0a;
  --bg-card: #101010;
  --fg: #ffffff;
  --fg-muted: #cfcfcf;
  --fg-dim: #9a9a9a;
  --accent: #18C118;
  --accent-soft: #7CFC7C;
  --line: rgba(255, 255, 255, 0.16);
  --line-dim: rgba(255, 255, 255, 0.10);
  --radius-card: 26px;
  --radius-media: 18px;
  --font-display: 'Anton', Impact, 'Arial Narrow Bold', sans-serif;
  --font-body: 'Poppins', 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'Courier New', Courier, monospace;
  --header-h: 64px;
  --pagew: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* horizontal-scroll guard: `clip` (unlike hidden) creates no scroll container,
   so position:sticky keeps working and iOS touch-panning can't drag the page
   sideways while below-fold reveal elements sit translated off-canvas.
   `hidden` stays first as the fallback for older browsers. */
html, body {
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: #000; }

/* ---------- Type helpers ---------- */
.display { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.02em; }
.mono { font-family: var(--font-mono); }
.green { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
  padding: 0 22px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.92), rgba(0,0,0,0.75));
  backdrop-filter: blur(6px);
}

.site-header .logo img { height: 38px; width: auto; }

.site-nav { display: flex; gap: 26px; align-items: center; }

.site-nav a {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg);
  padding: 4px 2px;
  white-space: nowrap;
}

.site-nav a:hover { color: var(--accent); }
.site-nav a.active { text-decoration: underline; text-underline-offset: 5px; }

.header-right {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.since {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  color: var(--fg);
  white-space: nowrap;
}
.since::before { content: '\2E28 '; color: var(--accent); }

.socials { display: flex; align-items: center; gap: 12px; }
.linkedin-link { display: inline-flex; }
.linkedin-link svg { width: 18px; height: 18px; fill: #fff; transition: fill .2s ease; }
.linkedin-link:hover svg { fill: var(--accent); }
/* Šragi-Cards wordmark: black artwork recoloured to solid white so it sits with the icons */
.sragi-link { display: inline-flex; align-items: center; }
.sragi-link img {
  height: 19px; width: auto;
  opacity: 0.9;                 /* logo je už v naší zelené (sragi_logo_green.png) */
  transition: opacity .2s ease;
}
.sragi-link:hover img { opacity: 1; }
@media (max-width: 560px) { .sragi-link img { height: 16px; } }

/* mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 12px 11px;      /* ≥44px touch target — the main mobile control */
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0;
  transition: transform .25s ease, opacity .25s ease;
}
/* hamburger → X while the menu is open (visual state feedback) */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: #000;
    transform: translateY(-130%);
    /* visibility flips only AFTER the slide finishes — closed menu is then
       unreachable for tab-focus and screen readers, but the animation stays */
    visibility: hidden;
    transition: transform .3s ease, visibility 0s linear .3s;
    padding: 10px 0 18px;
  }
  .site-nav.open { transform: translateY(0); visibility: visible; transition: transform .3s ease; }
  .site-nav a { padding: 12px 24px; width: 100%; text-align: center; }
  .since { display: none; }
  /* social icons keep their 18px look but get comfortable 44px hitboxes */
  .socials { gap: 4px; }
  .socials a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: #000;
  padding: 56px 6vw 40px;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  gap: 20px 34px;
  align-items: start;
  max-width: var(--pagew);
  margin: 0 auto;
}

.footer-label {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  color: var(--accent);
  text-transform: uppercase;
  line-height: 1;
}

.footer-info {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
}
.footer-info a { text-decoration: underline; text-underline-offset: 3px; }
.footer-info a:hover { color: var(--accent); }

.footer-legal {
  max-width: var(--pagew);
  margin: 34px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
}
.footer-legal a:hover { color: var(--accent); }
.footer-copy { font-size: 12px; color: var(--fg); }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- Section title (crop-mark style) ---------- */
.section-title-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px 6vw 22px;
}

.section-title-bar .crop {
  position: absolute;
  left: 4vw;
  top: 50%;
  translate: 0 -50%;
  width: 42px; height: 42px;
  border: 1px solid var(--line-dim);
  -webkit-mask: linear-gradient(#000 0 0) top left/14px 14px no-repeat,
                linear-gradient(#000 0 0) top right/14px 14px no-repeat,
                linear-gradient(#000 0 0) bottom left/14px 14px no-repeat,
                linear-gradient(#000 0 0) bottom right/14px 14px no-repeat;
          mask: linear-gradient(#000 0 0) top left/14px 14px no-repeat,
                linear-gradient(#000 0 0) top right/14px 14px no-repeat,
                linear-gradient(#000 0 0) bottom left/14px 14px no-repeat,
                linear-gradient(#000 0 0) bottom right/14px 14px no-repeat;
}
.section-title-bar .crop::before,
.section-title-bar .crop::after {
  content: '';
  position: absolute;
  background: var(--fg-muted);
}
.section-title-bar .crop::before { left: 50%; top: 9px; bottom: 9px; width: 1px; translate: -50% 0; }
.section-title-bar .crop::after { top: 50%; left: 9px; right: 9px; height: 1px; translate: 0 -50%; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 46px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  margin: 0;
}

.section-title .glitch {
  display: inline-block;
  color: var(--accent);
  font-size: 0.5em;
  vertical-align: super;
  letter-spacing: 0;
  margin-left: 10px;
}

.section-title-bar .rgb-tag {
  position: absolute;
  right: 4vw;
  top: 50%;
  translate: 0 -50%;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fg);
}

@media (max-width: 700px) {
  .section-title-bar .crop, .section-title-bar .rgb-tag { display: none; }
}

/* ---------- Marquee bands ---------- */
.marquee {
  overflow: hidden;
  background: #fff;
  color: #000;
  padding: 10px 0;
  white-space: nowrap;
  user-select: none;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  padding-right: 34px;
  animation: marquee-scroll var(--marquee-speed, 18s) linear infinite;
  will-change: transform;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 34px);
  letter-spacing: 0.01em;
}

.marquee-item svg { width: 1em; height: 1em; flex: none; }

@keyframes marquee-scroll {
  to { transform: translateX(-50%); }
}

.marquee:hover .marquee-track { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- Cards (photos page / category cards) ---------- */
.card-row {
  position: relative;   /* anchors the stretched link — the whole card is clickable */
  border: 1.5px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(20px, 2.2vw, 40px);
  margin: clamp(22px, 3vh, 40px) auto;
  max-width: 1340px;
  min-height: 400px;
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: clamp(24px, 4vw, 70px);
  align-items: center;
  transition: border-color .3s ease;
  background: rgba(255, 255, 255, 0.015);
}

.card-row.reverse { direction: rtl; }
.card-row.reverse > * { direction: ltr; }

.card-row .media { overflow: hidden; border-radius: var(--radius-media); background: var(--bg-card); }
.card-row .media img,
.card-row .media video {
  width: 100%;
  height: 100%;
  min-height: 340px;
  max-height: 440px;
  object-fit: cover;
  border-radius: var(--radius-media);
  transition: transform .45s ease;
}
.card-row:hover .media img { transform: scale(1.045); }
/* one identical hover on every card: green frame + soft green glow */
.card-row:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 16px 48px rgba(24, 193, 24, 0.10); }
/* .reveal's transition shorthand would drop the border/shadow ease — restate it */
.card-row.reveal {
  transition: opacity .95s cubic-bezier(.16, 1, .3, 1), transform .95s cubic-bezier(.16, 1, .3, 1), border-color .3s ease, box-shadow .3s ease;
}
/* stretched link: the title's link covers the whole card (soon-cards have none) */
.card-row h2 a::after { content: ''; position: absolute; inset: 0; }

.card-row h2, .card-row h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(26px, 2.9vw, 42px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}

.card-row p { margin: 0 0 10px; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.7; color: var(--fg-muted); }

.card-row .cta {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 22px;
  transition: background .2s ease, color .2s ease;
}
.card-row .cta:hover,
.card-row:hover .cta { background: var(--accent); border-color: var(--accent); color: #000; }

@media (max-width: 820px) {
  .card-row { grid-template-columns: 1fr; }
  .card-row.reverse { direction: ltr; }
}

/* ---------- Photo grid + lightbox ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px 4vw 50px;
}

.photo-grid a { display: block; overflow: hidden; border-radius: 10px; background: var(--bg-card); }

.photo-grid img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .35s ease, opacity .35s ease;
}
.photo-grid a:hover img { transform: scale(1.04); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.94);
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: calc(94vw / var(--z, 1)); max-height: calc(92vh / var(--z, 1)); object-fit: contain; }
.lightbox .lb-close {
  position: absolute; top: 16px; right: 22px;
  font-family: var(--font-mono); font-size: 26px; color: #fff;
  background: none; border: 0; cursor: pointer;
}
.lightbox .lb-prev, .lightbox .lb-next {
  position: absolute; top: 50%; translate: 0 -50%;
  font-size: 34px; color: #fff; background: none; border: 0; cursor: pointer;
  padding: 20px; opacity: .7;
}
.lightbox .lb-prev:hover, .lightbox .lb-next:hover { opacity: 1; color: var(--accent); }
.lightbox .lb-prev { left: 6px; }
.lightbox .lb-next { right: 6px; }
/* touch: bigger close target, arrows tucked to the edges (swipe is primary) */
@media (max-width: 820px) {
  .lightbox .lb-close { top: 10px; right: 10px; font-size: 30px; padding: 12px; }
  .lightbox .lb-prev, .lightbox .lb-next { font-size: 30px; padding: 16px 10px; }
  .lightbox img { max-width: 96vw; max-height: 86vh; }
}

/* ---------- Generic page shell ---------- */
.page { padding-top: var(--header-h); min-height: 60vh; }

.prose {
  max-width: 780px;
  margin: 0 auto;
  padding: 30px 5vw 70px;
  font-size: 16.5px;
  color: var(--fg);
}
/* article prose: editorial measure + green Anton drop-cap lede (blog only) */
article .prose {
  max-width: 760px;
  padding: clamp(28px, 4vw, 56px) 5vw 72px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--fg-muted);
}
article .prose > p:first-of-type {
  font-size: clamp(18px, 1.5vw, 21px);
  color: var(--fg);
}
article .prose > p:first-of-type::first-letter {
  font-family: var(--font-display);
  float: left;
  font-size: 3.4em;
  line-height: 0.78;
  padding: 6px 14px 0 0;
  color: var(--accent);
}
/* article body images — orientation the owner picks in the editor:
   default = fits the text column, .wide = breaks out big, .tall = portrait */
article .prose img { display: block; width: 100%; height: auto; margin: 28px auto; border: 1px solid rgba(255,255,255,0.1); }
article .prose img.wide {
  width: min(1080px, 92vw);
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}
article .prose img.tall {
  width: auto;
  max-width: 100%;
  max-height: 84vh;
  margin: 28px auto;
}
.prose h1, .prose h2, .prose h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
  margin: 1.6em 0 0.5em;
}
.prose h1 { font-size: clamp(28px, 4vw, 42px); }
.prose h2 { font-size: clamp(22px, 3vw, 30px); }
.prose h3 { font-size: clamp(18px, 2.4vw, 24px); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: 12px; margin: 22px auto; }
.prose blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.4em 0; padding: 0.3em 0 0.3em 1.2em;
  color: var(--fg-muted);
}

/* ============================================================
   Blog — THE CONTACT SHEET
   The list reads as a film contact sheet: post[0] (admin sort) is a
   full-bleed poster frame, the rest are auto-numbered film frames.
   Everything is position + CSS (counters, nth-of-type) — no data fields,
   so any admin-added post inherits the design automatically.
   ============================================================ */
/* search + tag chips above the list (injected by blog.js when live) */
.blog-tools {
  max-width: 1360px;
  margin: 0 auto;
  padding: 4px 4vw 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.blog-search {
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  color: var(--fg);
  font: inherit;
  font-size: 16px;   /* <16px would trigger iOS auto-zoom on focus */
  padding: 11px 20px;
  min-width: min(340px, 78vw);
  outline: none;
  transition: border-color .25s ease;
}
.blog-search:focus { border-color: var(--accent); }
.blog-search::placeholder { color: var(--fg-dim); }
.blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 0 20px;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
/* draft preview banner (logged-in admin viewing an unpublished post) */
.draft-banner {
  position: sticky;
  top: var(--header-h);
  z-index: 5;
  background: var(--accent);
  color: #000;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 9px 4vw;
}

.post-list {
  max-width: 1360px;
  margin: 0 auto;
  padding: 8px 4vw 96px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(34px, 3.6vh, 56px) clamp(20px, 2vw, 30px);
  align-items: start;
  counter-reset: frame;
}
.post-card { counter-increment: frame; position: relative; }
.post-card.featured { counter-increment: none; }  /* frames below start at //01 */

/* --- standard card: a numbered film frame --- */
.post-card:not(.featured) {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
}
.post-card .cover {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-panel);
}
.post-card .cover:empty { aspect-ratio: 3 / 2; background: linear-gradient(120deg, #050505, #0c130c); }
.post-card .cover img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.16, 1, .3, 1), filter .5s ease;
  filter: brightness(.94) saturate(.98);
}
/* frame number //01 riding the cover corner (pure CSS counter) */
.post-card:not(.featured) .cover::before {
  content: '//' counter(frame, decimal-leading-zero);
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-shadow: 0 1px 6px #000;
}
/* crop bracket that snaps in on hover */
.post-card:not(.featured) .cover::after {
  content: '';
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 22px; height: 22px;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  opacity: 0;
  transform: translate(4px, -4px);
  transition: opacity .3s ease, transform .3s ease;
}
.post-card:hover .cover::after { opacity: 1; transform: none; }
.post-card:hover .cover img { transform: scale(1.045); filter: brightness(1) saturate(1.06); }

.post-card .body { padding: 14px 2px 0; display: flex; flex-direction: column; gap: 10px; }
.post-card .meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline;
}
.post-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
  align-self: flex-start;
  /* green sweep-underline (brand motif) */
  background: linear-gradient(var(--accent), var(--accent)) left 100% / 0 2px no-repeat;
  padding-bottom: 4px;
  transition: background-size .4s ease, color .25s ease;
}
.post-card:hover h2 { background-size: 100% 2px; color: var(--accent); }
.post-card:not(.featured) h2 {
  font-size: clamp(19px, 2vw, 28px);
  line-height: 1.08;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card .excerpt {
  margin: 0;
  color: var(--fg-muted);
  font-weight: 300;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card .excerpt:empty { display: none; }
.post-card .card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.post-card .card-foot .read { color: var(--accent); font-weight: 700; }
.post-card .card-foot .read::after { content: ' \2192'; display: inline-block; transition: transform .25s ease; }
.post-card:hover .card-foot .read::after { transform: translateX(4px); }
.post-card .card-foot .views { display: inline-flex; gap: 7px; align-items: center; }
.post-card .card-foot .heart { width: 16px; height: 16px; fill: none; stroke: var(--fg-dim); stroke-width: 1.8; }
.post-card:hover .card-foot .heart { stroke: var(--accent); }

/* --- featured poster frame (always the FIRST post = admin sort order) --- */
.post-card.featured {
  grid-column: 1 / -1;
  display: block;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-panel);
}
.post-card.featured .cover { border-radius: 0; }
.post-card.featured .cover:empty,
.post-card.featured .cover img {
  height: clamp(420px, 60vh, 660px);
  aspect-ratio: auto;
  filter: none;
  transition: transform .7s cubic-bezier(.16, 1, .3, 1);
}
.post-card.featured:hover .cover img { transform: scale(1.03); }
.post-card.featured .body {
  position: absolute; inset: auto 0 0 0;
  padding: clamp(28px, 5vw, 72px);
  gap: 14px;
  background: linear-gradient(transparent, rgba(3,3,3,0.55) 42%, rgba(3,3,3,0.94));
}
.post-card.featured .meta { color: var(--fg); }
.post-card.featured .meta::before {
  content: '\259A FEATURED';
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-right: 4px;
}
.post-card.featured .meta .tc { color: var(--accent); }
.post-card.featured h2 {
  font-size: clamp(34px, 6vw, 84px);
  line-height: 0.96;
  max-width: 16ch;
  text-wrap: balance;
  background: none;
  padding-bottom: 0;
}
.post-card.featured:hover h2 { color: var(--accent); }
.post-card.featured h2 .glitch {
  display: inline-block;
  color: var(--accent);
  font-size: 0.42em;
  vertical-align: super;
  letter-spacing: 0;
  margin-left: 12px;
}
.post-card.featured .excerpt { max-width: 62ch; }
.post-card.featured .card-foot { border-top-color: rgba(255,255,255,0.2); }
/* white viewfinder crop-brackets */
.post-card.featured::before,
.post-card.featured::after {
  content: '';
  position: absolute; z-index: 2;
  width: 30px; height: 30px;
  border: 2px solid rgba(255,255,255,0.75);
  pointer-events: none;
  transition: border-color .3s ease;
}
.post-card.featured::before { top: 16px; right: 16px; border-left: 0; border-bottom: 0; }
.post-card.featured::after { bottom: 16px; left: 16px; border-right: 0; border-top: 0; }
.post-card.featured:hover::before,
.post-card.featured:hover::after { border-color: var(--accent); }

/* blinking REC dot */
.rec { color: var(--accent); font-weight: 700; animation: rec-blink 1.2s steps(1) infinite; }
@keyframes rec-blink { 50% { opacity: 0.15; } }

/* owner-chosen WIDE (rectangular) card — full-row image-left / text-right split.
   Placed in DOM order (no grid-auto-flow:dense) so it never reshuffles on resize. */
.post-card.wide:not(.featured) {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
}
.post-card.wide:not(.featured) .cover img { aspect-ratio: 16 / 10; }
.post-card.wide:not(.featured) .body { padding: 0 2px; }
.post-card.wide:not(.featured) h2 { font-size: clamp(24px, 2.6vw, 40px); -webkit-line-clamp: 2; }

/* contact-sheet entrance stagger (static pages; hydrated cards render instantly) */
.post-list .post-card.reveal:nth-child(2) { transition-delay: .06s; }
.post-list .post-card.reveal:nth-child(3) { transition-delay: .12s; }
.post-list .post-card.reveal:nth-child(4) { transition-delay: .18s; }
.post-list .post-card.reveal:nth-child(5) { transition-delay: .24s; }
.post-list .post-card.reveal:nth-child(6) { transition-delay: .3s; }
.post-list .post-card.reveal:nth-child(n+7) { transition-delay: .36s; }

@media (max-width: 900px) {
  .post-card:not(.featured),
  .post-card.wide:not(.featured) { grid-column: span 12; display: flex; flex-direction: column; }
  .post-card.wide:not(.featured) .body { padding: 14px 2px 0; }
  .post-card.featured h2 { font-size: clamp(30px, 8vw, 52px); }
  .post-card.featured .cover:empty,
  .post-card.featured .cover img { height: clamp(320px, 52vh, 460px); }
  .post-card.featured .body { padding: 22px 18px; }
}

/* ---------- Post page — the poster, zoomed in ---------- */
.post-hero {
  position: relative;
  min-height: clamp(420px, 58vh, 620px);
  display: flex;
  align-items: flex-end;
  padding-top: var(--header-h);
  overflow: hidden;
}
.post-hero-media { position: absolute; inset: 0; z-index: 0; }
.post-hero-media img { width: 100%; height: 100%; object-fit: cover; }
/* the photo melts into #030303 exactly where the prose begins */
.post-hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(transparent 30%, rgba(3,3,3,0.55) 60%, var(--bg));
  pointer-events: none;
}
.post-hero-inner {
  position: relative; z-index: 2;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 5vw clamp(24px, 4vw, 56px);
}
.post-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: flex; gap: 14px; flex-wrap: wrap; align-items: baseline;
  margin-bottom: 14px;
}
.post-kicker .k-name { color: var(--accent); font-weight: 700; }
.post-kicker .tc { color: var(--accent); }
.post-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(30px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: 0.02em;
  max-width: 20ch;
  text-wrap: balance;
  overflow-wrap: anywhere;
  color: var(--fg);
}
.post-hero h1 .glitch {
  display: inline-block;
  color: var(--accent);
  font-size: 0.42em;
  vertical-align: super;
  letter-spacing: 0;
  margin-left: 12px;
}
/* white viewfinder brackets on the hero */
.post-hero .crop-tr, .post-hero .crop-bl {
  position: absolute; z-index: 3;
  width: 30px; height: 30px;
  border: 2px solid rgba(255,255,255,0.75);
  pointer-events: none;
}
.post-hero .crop-tr { top: calc(var(--header-h) + 18px); right: 18px; border-left: 0; border-bottom: 0; }
.post-hero .crop-bl { bottom: 18px; left: 18px; border-right: 0; border-top: 0; }
/* coverless post still gets a dramatic on-brand header */
.post-hero--nocover {
  min-height: clamp(300px, 44vh, 460px);
  background: linear-gradient(120deg, #050505, #0c130c);
}
.post-hero--nocover::after { content: none; }

/* mono EXIF slate under the hero */
.post-exif {
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 5vw;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline;
}
.post-exif b { color: var(--fg-muted); font-weight: 700; }
.views-dot { color: var(--accent); }

/* end-mark above the footer slate */
.frame-out {
  max-width: 760px;
  margin: 44px auto 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--fg-dim);
}

/* ---------- Reveal on scroll (Wix-like entrance: fade + slide up) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(56px);
  transition: opacity .95s cubic-bezier(.16, 1, .3, 1), transform .95s cubic-bezier(.16, 1, .3, 1);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: none; }

/* --- Directional entrances (match the Wix animations) --- */

/* photos-page cards: slide in from the right, reversed cards from the left */
.card-row.reveal { transform: translateX(110px); }
.card-row.reveal.reverse { transform: translateX(-110px); }
.card-row.reveal.visible { transform: none; }

/* home intro rows + video blocks: media and text cross-slide from opposite sides */
.intro-row.reveal, .video-block.reveal { opacity: 1; transform: none; }
.intro-row.reveal .intro-media, .intro-row.reveal .intro-text,
.video-block.reveal .media, .video-block.reveal .text {
  opacity: 0;
  transition: opacity 1s cubic-bezier(.16, 1, .3, 1), transform 1s cubic-bezier(.16, 1, .3, 1);
  will-change: opacity, transform;
}
.intro-row.reveal .intro-media, .video-block.reveal .media { transform: translateX(130px); }
.intro-row.reveal .intro-text, .video-block.reveal .text { transform: translateX(-130px); }
.intro-row.reverse.reveal .intro-media, .video-block.reverse.reveal .media { transform: translateX(-130px); }
.intro-row.reverse.reveal .intro-text, .video-block.reverse.reveal .text { transform: translateX(130px); }
/* mobile: horizontal entrances would push content past the viewport edge and
   feel jumpy on a narrow single column — enter from below instead */
@media (max-width: 820px) {
  /* entrance offset ONLY while not yet revealed. The `:not(.visible)` guard is
     critical: the plain `.card-row.reveal.reverse` selector has the SAME
     specificity as `.card-row.reveal.visible` and sits later in the source, so
     without it a revealed REVERSE card kept its translateY(40px) forever —
     leaving it shifted 40px down and overlapping the next card by ~16px. */
  .card-row.reveal:not(.visible), .card-row.reveal.reverse:not(.visible) { transform: translateY(40px); }
  .intro-row.reveal:not(.visible) .intro-media, .intro-row.reveal:not(.visible) .intro-text,
  .intro-row.reverse.reveal:not(.visible) .intro-media, .intro-row.reverse.reveal:not(.visible) .intro-text,
  .video-block.reveal:not(.visible) .media, .video-block.reveal:not(.visible) .text,
  .video-block.reverse.reveal:not(.visible) .media, .video-block.reverse.reveal:not(.visible) .text { transform: translateY(32px); }
}

.intro-row.reveal.visible .intro-media, .intro-row.reveal.visible .intro-text,
.video-block.reveal.visible .media, .video-block.reveal.visible .text {
  opacity: 1;
  transform: none;
}

/* (old .tl-row timeline entrances removed — replaced by the .tlx story line) */

/* gallery masonry: tiles fade in with a stagger */
.masonry.reveal { opacity: 1; transform: none; }
.masonry.reveal a {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s ease, transform .8s ease;
}
.masonry.reveal.visible a { opacity: 1; transform: none; }
.masonry.reveal.visible a:nth-child(2) { transition-delay: .08s; }
.masonry.reveal.visible a:nth-child(3) { transition-delay: .16s; }
.masonry.reveal.visible a:nth-child(4) { transition-delay: .24s; }
.masonry.reveal.visible a:nth-child(5) { transition-delay: .32s; }
.masonry.reveal.visible a:nth-child(6) { transition-delay: .4s; }
.masonry.reveal.visible a:nth-child(7) { transition-delay: .48s; }
.masonry.reveal.visible a:nth-child(8) { transition-delay: .56s; }
.masonry.reveal.visible a:nth-child(n+9) { transition-delay: .64s; }

@media (prefers-reduced-motion: reduce) {
  .card-row.reveal, .card-row.reveal.reverse,
  .intro-row.reveal .intro-media, .intro-row.reveal .intro-text,
  .video-block.reveal .media, .video-block.reveal .text,
  .tlx-info, .tlx-media,
  .masonry.reveal a {
    opacity: 1; transform: none; transition: none;
  }
  .tlx-year::after { transform: scaleX(1); transition: none; }
  .tlx-media img { transform: none; }
  .tlx-fill::after { animation: none; }
  .tlx-dot { scale: 1; box-shadow: none; }
  .tlx-item.near .tlx-dot::before { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Hero (home) ----------
   The photo stays pinned full-screen while you scroll the hero, and a solid
   black bar with the typewriter line is stuck to the bottom of the viewport —
   it travels down with you until the next section pushes it away. */
.hero {
  position: relative;
  /* --vph (set in main.js) = the layout height that renders to exactly one
     viewport under the current page zoom, so the photo is never over-zoomed. */
  height: calc(var(--vph, 100svh) * 1.5);
  background: #000;
  display: flex;
  flex-direction: column;
}
.hero .hero-media {
  position: sticky;
  top: 0;
  height: var(--vph, 100svh);
  min-height: 460px;
  overflow: hidden;
  background: #000;
}
.hero .hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 42%;   /* keep the standing figure fully in frame */
}
.hero canvas.particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* the black bar — thin, at the very bottom of the viewport */
.hero .typebar {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  z-index: 5;
  width: 100%;
  background: #000;
  padding: clamp(9px, 1.3vh, 15px) 4vw;
  text-align: center;
}
.hero .typebar .tb-inner {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.9vw, 25px);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}
.hero .typebar .caret {
  display: inline-block; width: 2px; height: 0.86em; margin-left: 6px;
  background: #fff; vertical-align: -0.06em;
  animation: caret-blink .7s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

/* ---------- Intro rows (home) ----------
   The two intro sections stack: the first one pins under the header and
   the second slides up OVER it while scrolling (like the original). */
.intro-stack { position: relative; }
.intro-stack .intro-row {
  position: sticky;
  top: var(--header-h);
  min-height: calc(94svh / var(--z, 1) - var(--header-h));
  background: var(--bg);
}
.intro-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(22px, 4vw, 64px);
  align-items: center;
  max-width: 1340px;
  margin: 0 auto;
  padding: clamp(30px, 6vh, 70px) 4vw;
}
.intro-row.reverse { direction: rtl; }
.intro-row.reverse > * { direction: ltr; }

.intro-media { position: relative; }
.intro-media video, .intro-media img {
  width: 100%;
  border-radius: var(--radius-card);
  aspect-ratio: 16 / 10.6;
  object-fit: cover;
}
/* small timecode + INTRO label above the video */
.intro-topmeta {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(9px, 0.8vw, 11px);
  letter-spacing: 0.22em;
  color: var(--fg);
  margin-bottom: 10px;
  white-space: nowrap;
}
.intro-topmeta .tc { margin-right: 14px; }
/* full-width EXIF bar spanning the whole intro row, under both columns */
.intro-botbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-top: 8px;
  font-weight: 700;
  font-size: clamp(9px, 0.8vw, 11px);
  letter-spacing: 0.18em;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
}
.intro-botbar .ib-intro { flex: none; }
.intro-botbar .exif-ticker { margin-left: auto; }
@media (max-width: 820px) { .intro-botbar { flex-wrap: wrap; white-space: normal; } }

.intro-text { font-size: clamp(18px, 2vw, 27px); line-height: 1.42; font-weight: 500; }
.intro-text p { margin: 0 0 14px; }
.intro-text .green { color: var(--accent); }

@media (max-width: 820px) {
  .intro-row { grid-template-columns: 1fr; }
  .intro-row.reverse { direction: ltr; }
}

/* ---------- Full-bleed photo (home) ---------- */
.fullbleed { position: relative; }
.fullbleed img, .fullbleed video {
  width: 100%;
  max-height: calc(88vh / var(--z, 1));
  object-fit: cover;
  display: block;
}

/* ---------- Services (home) ---------- */
.services { padding: 10px 5vw 70px; }

.services-title-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 0 8px;
}
.services-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 38px);
  margin: 0;
  text-transform: none;
  letter-spacing: 0.04em;
}
.services-title .glitch-cursor { color: var(--accent); font-size: 0.75em; margin-left: 12px; }
.services-title-bar .crop-corner {
  position: absolute; left: 2vw; top: -6px;
  width: 44px; height: 44px;
  color: var(--fg-muted);
}
.services-title-bar .rgb-tag {
  position: absolute; right: 2vw; bottom: 0;
  font-family: var(--font-mono); font-weight: 700; font-size: 11px; letter-spacing: .18em;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 5vw, 60px);
  max-width: 1220px;
  margin: clamp(40px, 9vh, 110px) auto 0;
  text-align: center;
}

/* The whole tile links to its section (Photography → photos/ …) */
.service { position: relative; }
.service h3 a { color: inherit; }
.service h3 a::after { content: ''; position: absolute; inset: 0; }

/* Icon videos have a black background. screen-blend hides it, but the reveal
   animation's will-change isolates the tile's stacking context, which makes
   the blend resolve against nothing — so paint the page colour underneath:
   screen(black, #030303) = #030303 and the box disappears reliably. */
.service .icon { background: var(--bg); }
.service .icon img,
.service .icon video {
  height: clamp(90px, 12vw, 150px);
  width: auto;
  margin: 0 auto 26px;
  display: inline-block;
  mix-blend-mode: screen;
}

/* staggered reveal of the three services */
.services-grid .service:nth-child(2) { transition-delay: .18s; }
.services-grid .service:nth-child(3) { transition-delay: .36s; }

/* hover: the hovered service grows, the other two shrink (original behaviour) */
.services-grid .service.visible { transition: opacity .4s ease, transform .4s ease; }
.services-grid .service.visible:hover { transform: scale(1.08); }
.services-grid:has(.service:hover) .service.visible:not(:hover) {
  transform: scale(0.92);
  opacity: 0.55;
}

.service h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: 0.28em;
  color: var(--accent);
  margin: 0 0 18px;
}
.service.white h3 { color: var(--fg); }

.service p { font-size: 14px; line-height: 1.7; margin: 0; color: var(--fg); }

@media (max-width: 820px) {
  .services-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ---------- Videos page: category grid (data-driven) ---------- */
.vid-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 1340px;
  margin: 6px auto clamp(28px, 4vh, 48px);
  padding: 0 4vw;
}
.vid-chip {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--line-dim);
  border-radius: 999px;
  padding: 10px 22px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.vid-chip:hover { border-color: var(--fg); }
.vid-chip.active { background: var(--accent); border-color: var(--accent); color: #000; }
/* touch: comfortable 44px targets for the category filters */
@media (max-width: 820px) {
  .vid-chip { min-height: 44px; padding: 10px 16px; }
}

.vid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: clamp(20px, 2vw, 32px);
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 4vw 80px;
}
.vid-card {
  background: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s ease var(--d, 0ms), transform .6s ease var(--d, 0ms), border-color .25s ease;
}
.vid-card.in { opacity: 1; transform: none; }
.vid-card:hover { border-color: var(--accent); }
.vid-card.is-soon { cursor: default; }

.vid-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.vid-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease, filter .3s ease;
}
.vid-card:hover .vid-thumb img { transform: scale(1.05); filter: brightness(0.72); }
/* Coming-soon card with no thumbnail yet: subtle texture so the empty tile
   reads as intentional, not as a failed image load. */
.vid-thumb:not(:has(img)) {
  background:
    repeating-linear-gradient(-45deg, #0d0d0d 0 14px, #090909 14px 28px);
}

.vid-play {
  position: absolute;
  top: 50%; left: 50%;
  translate: -50% -50%;
  width: 62px; height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  transition: background .2s ease, border-color .2s ease, scale .2s ease;
}
.vid-play svg { width: 26px; height: 26px; fill: #fff; margin-left: 3px; }
.vid-card:hover .vid-play { background: var(--accent); border-color: var(--accent); scale: 1.08; }
.vid-card:hover .vid-play svg { fill: #000; }

.vid-soon {
  position: absolute;
  top: 50%; left: 50%;
  translate: -50% -50%;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  padding: 8px 18px;
  background: rgba(0, 0, 0, 0.5);
}
.vid-tag {
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #000;
  background: var(--accent);
  border-radius: 5px;
  padding: 4px 10px;
}
.vid-info { padding: 18px 20px 22px; }
.vid-info h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 23px);
  letter-spacing: 0.02em;
  color: var(--accent);
  margin: 0 0 10px;
  line-height: 1.2;
}
.vid-info p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--fg-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vid-empty {
  max-width: 1340px;
  margin: 0 auto;
  padding: 40px 4vw 80px;
  text-align: center;
  color: var(--fg-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

/* modal player */
.vid-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.95);
  padding: 4vh 4vw;
}
.vid-modal.open { display: flex; }
.vid-modal .vm-stage { width: min(1200px, 100%); }
.vid-modal .vm-16x9 { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.vid-modal .vm-16x9 iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 10px; }
.vid-modal video { width: 100%; max-height: 88vh; border-radius: 10px; background: #000; }
.vid-modal video.portrait { width: auto; max-width: 100%; margin: 0 auto; display: block; }
.vid-modal .vm-close {
  position: absolute;
  top: 18px; right: 26px;
  font-size: 40px;
  line-height: 1;
  color: #fff;
  background: none;
  border: 0;
  cursor: pointer;
}
.vid-modal .vm-close:hover { color: var(--accent); }

/* photo-gallery view inside the modal (image-only entries, e.g. VlaďkySyn) */
.vid-modal .vm-gallery { position: relative; width: 100%; text-align: center; }
.vid-modal .vm-gallery img { max-width: 100%; max-height: 84vh; border-radius: 10px; }
.vid-modal .vm-gnav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.55); border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
}
.vid-modal .vm-gnav:hover { background: var(--accent); border-color: var(--accent); color: #041004; }
.vid-modal .vm-gprev { left: 10px; }
.vid-modal .vm-gnext { right: 10px; }
.vid-modal .vm-gcount {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  color: #fff; background: rgba(0, 0, 0, 0.55); padding: 4px 10px; border-radius: 20px;
}

/* videos pagination — appears only when the list overflows one page */
.vid-pager {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap;
  gap: 8px; margin: 40px auto 8px; padding: 0 4vw;
}
.vid-pager .vp-btn {
  min-width: 40px; height: 40px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 14px;
  color: var(--fg-muted); background: var(--bg-card);
  border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.vid-pager .vp-btn:hover:not([disabled]) { color: var(--fg); border-color: var(--accent); }
.vid-pager .vp-btn.active { color: #041004; background: var(--accent); border-color: var(--accent); font-weight: 600; }
.vid-pager .vp-btn[disabled] { opacity: 0.35; cursor: default; }

@media (max-width: 560px) {
  .vid-grid { grid-template-columns: 1fr; }
}

/* ---------- Video page blocks (legacy layout, kept for reference) ---------- */
.video-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(30px, 6vh, 70px) 5vw;
}
.video-block.reverse { direction: rtl; }
.video-block.reverse > * { direction: ltr; }
.video-block video {
  width: 100%;
  border-radius: var(--radius-media);
  background: #000;
}
.video-block video.portrait { max-height: calc(78vh / var(--z, 1)); width: auto; margin: 0 auto; }
.video-block .text {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(22px, 3vw, 36px);
  background: rgba(255, 255, 255, 0.015);
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.video-block h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 0 0 14px;
}
.video-block p { margin: 0 0 10px; font-size: 14px; line-height: 1.75; }
.video-block p .green { color: var(--accent); }
@media (max-width: 820px) {
  .video-block { grid-template-columns: 1fr; }
  .video-block.reverse { direction: ltr; }
}

/* ---------- EXIF ticker ---------- */
.exif-ticker {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: clamp(9px, 0.8vw, 11px);
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
}
.exif-ticker .label {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: clamp(10px, 0.9vw, 12px);
  color: var(--fg);
  opacity: 0.95;
}
.exif-ticker .strip { display: inline-block; white-space: nowrap; }
.exif-ticker .token { transition: color .16s ease; }
.exif-ticker .token.hl { color: var(--accent); }
.exif-ticker .dot { opacity: .6; padding: 0 .45ch; }

/* ---------- Gallery pages ---------- */
.gallery-hero { padding-top: var(--header-h); }
.gallery-hero img {
  width: 100%;
  height: calc(82vh / var(--z, 1));
  min-height: 420px;
  object-fit: cover;
  display: block;
}
/* mobile: the hero was swallowing nearly the whole first screen (730/812px) —
   cap it so the gallery content is visible without scrolling past a billboard */
@media (max-width: 820px) {
  .gallery-hero img { height: 44vh; min-height: 280px; }
}

.gallery-intro {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(34px, 6vh, 64px) 5vw;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
  text-align: justify;
}
.gallery-intro .green { color: var(--accent); font-weight: 600; }

/* Tiled photo grid: main.js measures each photo and gives wide shots a wide
   tile (.w), portraits a tall tile (.t) and an occasional feature a 2×2 (.b);
   dense flow packs them without holes. Same radius/gap/width as before. */
.masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(170px, 16vw, 225px);
  grid-auto-flow: dense;
  gap: 16px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px 4vw 60px;
}
.masonry a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
}
.masonry img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.masonry a:hover img { transform: scale(1.03); }
.masonry a.w { grid-column: span 2; }
.masonry a.t { grid-row: span 2; }
.masonry a.b { grid-column: span 2; grid-row: span 2; }
@media (max-width: 1000px) {
  .masonry { grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(150px, 22vw, 210px); }
}
@media (max-width: 700px) {
  .masonry { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 34vw; gap: 10px; }
  .masonry a { border-radius: 10px; }
  .masonry a.b { grid-column: span 2; grid-row: span 1; }  /* 2×2 too heavy on phones */
}

/* ---------- About page ---------- */
/* About intro — editorial ledger, same typographic line as Marketing .mkh-intro */
.about-hero {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(18px, 3vh, 36px) 5vw clamp(44px, 6vh, 68px);
}
.about-intro { min-width: 0; }
/* one strict green accent up top — a quiet ledger label */
.about-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 clamp(16px, 2.4vh, 26px);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.about-kicker::before { content: ""; flex: none; width: 34px; height: 1px; background: var(--accent); }
/* big Anton statement — mirrors .mkh-statement */
.about-statement {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  color: var(--fg);
  font-size: clamp(46px, 6.6vw, 96px);
  line-height: 0.96;
  letter-spacing: 0.01em;
  max-width: 12ch;
  text-wrap: balance;
}
/* bio re-set as a calm lede — mirrors .mkh-lede, client text + green words kept */
.about-hero .about-intro .bio {
  margin: clamp(22px, 3.2vh, 34px) 0 0;
  max-width: 56ch;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.75;
  color: var(--fg-muted);
}
.about-hero .about-intro .bio h4 { margin: 0; font: inherit; color: inherit; letter-spacing: normal; }
.about-hero .about-intro .bio .green { color: var(--accent); font-weight: 600; }
/* cinematic portrait for the #030303 stage — thin frame + soft bottom vignette */
.about-hero .portrait { position: relative; }
.about-hero .portrait img {
  width: 100%;
  display: block;
  border-radius: 4px;
  border: 1px solid var(--line);
  filter: grayscale(0.12) contrast(1.03);
}
.about-hero .portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(3, 3, 3, 0) 52%, rgba(3, 3, 3, 0.5) 100%);
  pointer-events: none;
}

.story-heading {
  font-family: var(--font-display);
  text-align: center;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0.08em;
  margin: 30px 0 0;
}

/* ============================================================
   THE STORY LINE — About timeline.
   A green line runs down the CENTER and fills as you scroll (glowing
   tip). When the tip reaches a stop, its dot ignites and the year +
   caption slide out to one side, the photo to the other — alternating
   stop by stop. Gentle scroll-snap holds each stop for a beat.
   ============================================================ */
.tlx {
  position: relative;
  max-width: 1280px;
  margin: 26px auto 0;
  padding: 24px 4vw 90px;
}
.tlx-list { list-style: none; margin: 0; padding: 0; }

/* --- the line: dim rail, green fill, glowing tip --- */
.tlx-track {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.10);
  border-radius: 2px;
}
.tlx-fill {
  display: block;
  width: 100%;
  height: 0;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(24, 193, 24, 0.35), var(--accent) 120px);
  box-shadow: 0 0 12px rgba(24, 193, 24, 0.55);
  position: relative;
}
.tlx-fill::after {   /* the travelling glowing tip — breathes softly */
  content: '';
  position: absolute;
  left: 50%; bottom: -5px;
  width: 11px; height: 11px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px 4px rgba(24, 193, 24, 0.75);
  animation: tlx-breathe 2.6s ease-in-out infinite;
}
@keyframes tlx-breathe {
  50% { box-shadow: 0 0 24px 7px rgba(24, 193, 24, 0.9); }
}

/* --- a stop (compact rhythm, natural scroll — no pinning, no snapping) --- */
.tlx-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr clamp(76px, 9vw, 140px) 1fr;
  align-items: center;
  padding-block: clamp(40px, 7vh, 84px);
}
/* the dot LIVES with the scroll: it grows + glows as the glowing tip
   approaches (--t 1 = tip right here, 0 = far away) and shrinks back
   as the tip travels on. Scroll-linked, no transitions needed. */
.tlx-dot {
  position: absolute;
  left: 50%; top: 50%;
  translate: -50% -50%;
  scale: calc(1 + var(--t, 0) * 1.35);
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 calc(var(--t, 0) * 22px) calc(var(--t, 0) * 6px) rgba(24, 193, 24, 0.55);
  transition: background .35s ease, border-color .35s ease;
  z-index: 2;
}
.tlx-item.on .tlx-dot {
  background: var(--accent);
  border-color: var(--accent);
}
/* radar ping on the stop the tip is currently at */
.tlx-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
}
.tlx-item.near .tlx-dot::before { animation: tlx-ping 1.7s ease-out infinite; }
@keyframes tlx-ping {
  0%   { opacity: 0.8; scale: 0.55; }
  80%  { opacity: 0;   scale: 2.3; }
  100% { opacity: 0;   scale: 2.3; }
}

/* --- year + caption (odd: left of the line, right-aligned) --- */
.tlx-info {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  text-align: right;
  max-width: 520px;
}
.tlx-year {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1.0;
  letter-spacing: 0.01em;
  color: var(--fg);
  padding-bottom: 10px;
}
/* glowing underline draws itself OUT OF THE LINE when the stop ignites */
.tlx-year::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(24, 193, 24, 0.75);
  transform: scaleX(0);
  transform-origin: right center;          /* odd stop: text sits left of the line */
  transition: transform .8s cubic-bezier(.16, 1, .3, 1) .3s;
}
.tlx-item.on .tlx-year::after { transform: scaleX(1); }
.tlx-item:nth-child(even) .tlx-year::after { transform-origin: left center; }
/* year digits roll up when igniting — green while counting */
.tlx-num { font-style: normal; font-weight: 400; transition: color .3s ease; }
.tlx-num.counting { color: var(--accent); }
/* range connector between two years — fills left→right on ignition */
.tlx-range {
  display: inline-block;
  vertical-align: 0.28em;
  width: clamp(26px, 3vw, 52px);
  height: 4px;
  margin: 0 0.34em;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}
.tlx-range i {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(24, 193, 24, 0.6);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1s cubic-bezier(.16, 1, .3, 1) .4s;
}
.tlx-item.on .tlx-range i { transform: scaleX(1); }

/* line "breathes" around the active stop: a soft green swell on the centre
   line whose strength follows the tip's proximity (--t, set by main.js) */
.tlx-item::before {
  content: '';
  position: absolute;
  left: 50%; top: 8%; bottom: 8%;
  width: 6px;
  transform: translateX(-50%);
  border-radius: 4px;
  background: var(--accent);
  filter: blur(2.5px);
  opacity: calc(var(--t, 0) * 0.5);
  box-shadow: 0 0 20px rgba(24, 193, 24, calc(var(--t, 0) * 0.7));
  pointer-events: none;
  z-index: 0;
}
.tlx-cap {
  position: relative;
  margin: 12px 0 0;
  font-weight: 300;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 44ch;
}
.tlx-info .tlx-cap { margin-left: auto; }

/* --- photo (odd: right of the line) --- */
.tlx-media {
  grid-column: 3;
  grid-row: 1;
  justify-self: start;
  margin: 0;
  width: 100%;          /* definite width from the grid track… */
  max-width: 460px;     /* …capped so photos stay tidy */
  /* scroll-linked breath: the frame lifts + sharpens as the tip approaches
     and settles back as it travels on (--t = proximity, set by main.js) */
  transform: translateY(calc((1 - var(--t, 1)) * 12px)) scale(calc(0.985 + 0.015 * var(--t, 1)));
  will-change: transform;
}
.tlx-photo {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-media);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: var(--bg-card);
  cursor: zoom-in;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.tlx-photo img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}
.tlx-photo:hover { border-color: var(--accent); box-shadow: 0 12px 40px rgba(24, 193, 24, 0.14); }
.tlx-photo:hover img { transform: scale(1.05); }
/* logo tile — Šragi-Cards mark, recoloured white on a soft panel */
.tlx-media.logo {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-media);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: linear-gradient(135deg, #0a0f0a, #0c130c);
}
.tlx-media.logo img {
  width: min(72%, 320px);
  height: auto;                 /* zelená verze — černá přebarvená na accent, bílá karta zůstává */
}

/* --- even stops swap sides --- */
.tlx-item:nth-child(even) .tlx-info { grid-column: 3; justify-self: start; text-align: left; }
.tlx-item:nth-child(even) .tlx-info .tlx-cap { margin-left: 0; margin-right: auto; }
.tlx-item:nth-child(even) .tlx-year { background-position: left 100%; }
.tlx-item:nth-child(even) .tlx-media { grid-column: 1; justify-self: end; }

/* --- ignition: both halves slide OUT of the dot, in sync with the line --- */
.tlx-info, .tlx-media {
  opacity: 0;
  transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1);
  will-change: opacity, transform;
}
.tlx-media { transition-delay: .07s; }
.tlx-item .tlx-info { transform: translateX(72px); }
.tlx-item .tlx-media { transform: translateX(-72px); }
.tlx-item:nth-child(even) .tlx-info { transform: translateX(-72px); }
.tlx-item:nth-child(even) .tlx-media { transform: translateX(72px); }
.tlx-item.on .tlx-info,
.tlx-item.on .tlx-media { opacity: 1; transform: none; }

/* visually hidden but readable by search engines & screen readers */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}

/* thin scroll-progress bar pinned to the very top (only on the story page) */
.scroll-prog {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent));
  box-shadow: 0 0 10px rgba(24, 193, 24, 0.7);
  z-index: 200;
  pointer-events: none;
}

/* side jump-nav — a marker per stop, year label reveals on hover/active */
.tlx-nav {
  position: fixed;
  right: clamp(10px, 1.6vw, 26px);
  top: 50%;
  translate: 0 -50%;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.tlx-nav-dot {
  position: relative;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transition: background .25s ease, scale .25s ease;
}
.tlx-nav-dot:hover { background: var(--fg); scale: 1.2; }
.tlx-nav-dot.active { background: var(--accent); scale: 1.35; box-shadow: 0 0 10px var(--accent); }
.tlx-nav-yr {
  position: absolute;
  right: 20px; top: 50%;
  translate: 0 -50%;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.tlx-nav-dot:hover .tlx-nav-yr,
.tlx-nav-dot.active .tlx-nav-yr { opacity: 1; transform: none; }
.tlx-nav-dot.active .tlx-nav-yr { color: var(--accent); border-color: var(--accent); }
@media (max-width: 1100px) { .tlx-nav { display: none; } }

@media (max-width: 820px) {
  .about-hero { grid-template-columns: 1fr; }
  .about-statement { max-width: none; }
  .about-hero .about-intro .bio { max-width: none; }
  /* line moves to the left edge, everything reads on one side */
  /* the line lives in .tlx coords but the dots in .tlx-item coords (items
     start 4vw further right) — offset the track so both share one centre
     at 4vw + 19.5px; otherwise the dots float 15px off the line */
  .tlx-track { left: calc(4vw + 18px); transform: none; }
  .tlx-item { grid-template-columns: 1fr; gap: 18px; padding: 34px 0 34px 46px; }
  .tlx-item::before { left: 19.5px; }
  .tlx-dot { left: 19.5px; }
  .tlx-info,
  .tlx-item:nth-child(even) .tlx-info { grid-column: 1; grid-row: auto; justify-self: start; text-align: left; }
  .tlx-info .tlx-cap { margin-left: 0; }
  .tlx-year::after,
  .tlx-item:nth-child(even) .tlx-year::after { transform-origin: left center; }
  .tlx-media,
  .tlx-item:nth-child(even) .tlx-media { grid-column: 1; grid-row: auto; justify-self: start; }
  .tlx-item .tlx-info, .tlx-item .tlx-media,
  .tlx-item:nth-child(even) .tlx-info, .tlx-item:nth-child(even) .tlx-media { transform: translateX(-36px); }
  .tlx-item.on .tlx-info, .tlx-item.on .tlx-media { transform: none; }
}

/* ---------- Marketing page ---------- */
/* ============================================================
   Marketing — clean editorial ledger: big statement, marquee,
   four numbered service rows, green CTA. Calm, no gimmicks.
   ============================================================ */
.mkh-intro {
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(18px, 3vh, 36px) 4vw clamp(40px, 6vh, 64px);
}
.mkh-statement {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.0;
  letter-spacing: 0.01em;
  max-width: 14ch;
  text-wrap: balance;
}
.mkh-statement em { font-style: normal; color: var(--accent); }
.mkh-lede {
  margin: clamp(18px, 3vh, 28px) 0 0;
  font-weight: 300;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 58ch;
}

/* --- four service rows --- */
.mkh-console { max-width: 1360px; margin: 0 auto; padding: clamp(36px, 5vh, 64px) 4vw 0; }
.mkh-channels { list-style: none; margin: 0; padding: 0; }
.mkh-ch {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(18px, 2.6vw, 44px);
  align-items: start;
  padding-block: clamp(30px, 4.5vw, 56px);
  border-top: 1px solid rgba(255,255,255,0.12);
}
.mkh-ch:last-child { border-bottom: 1px solid rgba(255,255,255,0.12); }
.mkh-ch-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
  justify-self: start;
  background: linear-gradient(var(--accent), var(--accent)) left 100% / 0 2px no-repeat;
  padding-bottom: 4px;
  transition: background-size .4s ease, color .25s ease;
}
.mkh-ch:hover .mkh-ch-name { background-size: 100% 2px; color: var(--accent); }
.mkh-ch-text {
  margin: 0;
  font-weight: 300;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.75;
  color: var(--fg-muted);
  max-width: 54ch;
}
.mkh-channels .mkh-ch.reveal:nth-child(2) { transition-delay: .06s; }
.mkh-channels .mkh-ch.reveal:nth-child(3) { transition-delay: .12s; }
.mkh-channels .mkh-ch.reveal:nth-child(4) { transition-delay: .18s; }

/* --- CTA slate: the site's one solid-green surface --- */
.mkh-cta {
  position: relative;
  width: min(1360px, 92vw);
  margin: clamp(48px, 7vh, 84px) auto 0;
  padding: clamp(36px, 5vw, 72px);
  background: var(--accent);
  color: #000;
  border-radius: 6px;
  overflow: hidden;
}
.mkh-cta-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.96;
  max-width: 14ch;
}
.mkh-cta-sub {
  margin: 12px 0 26px;
  font-weight: 300;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6;
  color: rgba(0,0,0,0.72);
  max-width: 52ch;
}
.mkh-cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.mkh-btn {
  font-family: var(--font-mono);
  font-weight: 700; font-size: 12.5px; line-height: 1;
  letter-spacing: 0.2em; text-transform: uppercase;
  border: 1.5px solid #000;
  border-radius: 999px;
  padding: 14px 26px;
  color: #000;
  transition: background .2s ease, color .2s ease;
}
.mkh-btn:hover { background: #000; color: var(--accent); }
.mkh-btn.solid { background: #000; color: var(--accent); }
.mkh-btn.solid:hover { background: transparent; color: #000; }
.mkh-btn .arr { display: inline-block; transition: transform .25s ease; }
.mkh-btn:hover .arr { transform: translateX(4px); }
.mkh-cta ::selection { background: #000; color: var(--accent); }

@media (max-width: 900px) {
  .mkh-ch { grid-template-columns: 1fr; gap: 0; }
  .mkh-ch-text { margin-top: 14px; }
}
@media (max-width: 560px) {
  .mkh-cta-actions { flex-direction: column; align-items: stretch; }
  .mkh-btn { text-align: center; }
}

/* ---------- Video page (yt + native blocks) ---------- */
.yt-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-media);
  overflow: hidden;
  background-color: #000;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.yt-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ---------- VlaďkySyn collab carousel ---------- */
.collab {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 560px) auto;
  gap: clamp(20px, 4vw, 50px);
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(30px, 6vh, 70px) 5vw;
}
.collab h2 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.25;
  margin: 0;
  text-align: center;
}
.collab-viewport { overflow: hidden; }
.collab-track {
  display: flex;
  gap: 14px;
  transition: transform .4s ease;
}
.collab-track a {
  flex: 0 0 calc(50% - 7px);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
}
.collab-track img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.collab-next {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.collab-next:hover { background: var(--accent); color: #000; border-color: var(--accent); }
@media (max-width: 760px) {
  .collab { grid-template-columns: 1fr; }
  .collab-next { justify-self: center; }
}

/* ---------- Related frames strip (post pages) ---------- */
.recent-posts {
  max-width: 980px;
  margin: 46px auto 0;
  padding: 0 4vw 64px;
}
.recent-posts .rp-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 16px;
}
.recent-posts .rp-head strong::before { content: '\259A '; color: var(--accent); }
.recent-posts .rp-head a { color: var(--fg-dim); }
.recent-posts .rp-head a:hover { color: var(--accent); }
.rp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: rframe; }
.rp-card {
  position: relative;
  counter-increment: rframe;
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  overflow: hidden;
}
.rp-card::before {
  content: '//' counter(rframe, decimal-leading-zero);
  position: absolute; top: 8px; left: 8px; z-index: 2;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-shadow: 0 1px 6px #000;
}
.rp-card:hover { border-color: var(--accent); }
.rp-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.rp-card .rp-title {
  display: block;
  padding: 12px 14px;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(13px, 1vw, 16px);
  letter-spacing: 0.03em;
  line-height: 1.2;
}
@media (max-width: 700px) { .rp-grid { grid-template-columns: 1fr; } }

/* mono camera-slate footer */
.post-foot {
  max-width: 760px;
  margin: 18px auto 0;
  padding: 18px 5vw 46px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.back-to-blog {
  display: inline-block;
  margin: 26px 0 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 22px;
}
.back-to-blog:hover { background: var(--accent); border-color: var(--accent); color: #000; }

@media (prefers-reduced-motion: reduce) {
  .rec { animation: none; }
  .post-card:hover .cover img { transform: none; }
}

/* ---------- Scroll bar (subtle, dark) ---------- */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #2c2c2c; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ============================================================
   MOBILE POLISH — touch targets, spacing, overscroll, safe areas
   (full mobile revision batch)
   ============================================================ */
@media (max-width: 820px) {
  /* typewriter bar never leaks past the viewport */
  .hero .typebar { overflow: hidden; }
  .hero .typebar .tb-inner { font-size: clamp(13px, 3.6vw, 25px); }
  /* intro rows: no sticky stacking in a single narrow column */
  .intro-stack .intro-row { position: static; min-height: 0; }
  /* full-bleed video keeps a real ratio before the poster loads (no CLS) */
  .fullbleed video { aspect-ratio: 16 / 9; max-height: none; height: auto; }
  /* photos hub cards — one deterministic box per card. The MEDIA frame owns a
     fixed 3:2 ratio, so its height is known before the photo loads (no empty
     hole, no layout shift) and every card is the same size regardless of the
     source orientation; the photo just fills it via object-fit: cover.
     (Earlier `aspect-ratio: auto` let each loaded photo resize its own box —
     portraits ballooned to 340px, landscapes shrank to 170px = the "broken",
     mismatched boxes.) */
  .card-row .media { aspect-ratio: 3 / 2; }
  .card-row .media img, .card-row .media video {
    min-height: 0; max-height: none; width: 100%; height: 100%; object-fit: cover;
  }
  /* galleries: justified text creates rivers in a ~345px column */
  .gallery-intro { text-align: left; }
  /* videos pager jump would land under the fixed header */
  .videos-page { scroll-margin-top: 80px; }
  /* micro mono labels: 9px is unreadable on a phone */
  .intro-topmeta, .intro-botbar, .exif-ticker { font-size: 10px; }
  /* footer: call / mail are the primary actions — real touch targets */
  .footer-info a { display: inline-block; padding: 8px 0; }
  .footer-legal a { display: inline-block; padding: 10px 0; }
  .footer-legal span:first-child { display: flex; flex-wrap: wrap; gap: 0 18px; }
}

@media (max-width: 700px) {
  /* hide the services title decorations like the section-title-bar does */
  .services-title-bar .crop-corner, .services-title-bar .rgb-tag { display: none; }
}

@media (max-width: 560px) {
  /* featured blog poster: compact overlay so the photo stays visible */
  .post-card.featured .excerpt { display: none; }
  .post-card.featured .cover:empty,
  .post-card.featured .cover img { height: clamp(260px, 44vh, 380px); }
  /* Poppins 300 under 15px falls apart on OLED — bump the excerpt weight */
  .post-card .excerpt { font-weight: 400; }
  /* marketing CTA buttons: ≥48px height and the mono e-mail fits the box */
  .mkh-btn { padding: 16px 18px; letter-spacing: 0.12em; overflow-wrap: anywhere; }
  /* about kicker fits one line on 360px */
  .about-kicker { letter-spacing: 0.16em; gap: 10px; }
  .about-kicker::before { width: 20px; }
  .about-statement { overflow-wrap: break-word; }
  /* timeline: "2019 — SOUČASNOST" ranges fit 360px */
  .tlx-year { font-size: 30px; }
}

/* touch devices: hover states would stick after a tap — neutralize them */
@media (hover: none) {
  .card-row:hover { border-color: var(--line); box-shadow: none; }
  .card-row:hover .media img { transform: none; }
  .masonry a:hover img { transform: none; }
  .vid-card:hover { border-color: rgba(255, 255, 255, 0.12); }
  .vid-card:hover .vid-thumb img { transform: none; filter: none; }
  .vid-card:hover .vid-play { background: rgba(0, 0, 0, 0.55); border-color: rgba(255, 255, 255, 0.35); scale: none; }
  .vid-card:hover .vid-play svg { fill: #fff; }
  .tlx-photo:hover { border-color: rgba(255, 255, 255, 0.10); box-shadow: none; }
  .tlx-photo:hover img { transform: none; }
}

/* modals: contain rubber-band overscroll; bigger close targets + safe area */
.lightbox, .vid-modal { overscroll-behavior: contain; }
.lightbox .lb-close { padding: 12px 14px; }
.vid-modal .vm-close { padding: 10px 14px; top: max(10px, env(safe-area-inset-top)); }

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 120%);
  width: min(880px, calc(100% - 24px));
  margin-bottom: max(12px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 18px 24px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: #0c0c0c;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  z-index: 500;
  transition: transform .4s cubic-bezier(.16, 1, .3, 1);
}
.cookie-bar.open { transform: translate(-50%, 0); }
.cookie-text {
  flex: 1 1 300px;
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg-muted);
}
.cookie-text strong { color: var(--fg); font-weight: 600; }
.cookie-text a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.cookie-btn {
  min-height: 44px;
  padding: 10px 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.cookie-accept { background: var(--accent); color: #041004; border: 1px solid var(--accent); }
.cookie-accept:hover { background: #15a815; border-color: #15a815; }
.cookie-decline { background: transparent; color: var(--fg-muted); border: 1px solid var(--line); }
.cookie-decline:hover { color: var(--fg); border-color: var(--fg-muted); }
.cookie-settings { cursor: pointer; }
@media (max-width: 560px) {
  .cookie-bar { gap: 14px; padding: 16px; }
  .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-bar { transition: none; }
}
