/* Natálie Sedláčková — portfolio styles (from Figma "Portfolio design 2026") */

/* ---- Design tokens (Figma: Portfolio design 2026) ---- */
:root {
  --base-color: #f5f5f5;      /* background */
  --font-colour: #0e0e0f;     /* text */
  --details-color: #C8402A;   /* accent — tomato (was #0000ff) */
  --accent-soft: #EDCDD1;     /* Bubble pink — button hover */
  --secondary: #6e6e70;       /* secondary text */
  --credit: #333335;

  --font: "neue-haas-grotesk-display", "Switzer", "Helvetica Neue", Arial, sans-serif;
  --tracking: 0.04em;         /* 4 % letter-spacing (Figma) */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--base-color);
  color: var(--font-colour);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* keep the footer at the bottom of the window on short pages (e.g. Contact) */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body > main { flex: 1 0 auto; }

/* ---- Navigation (node 4:82) — 1420 × 80 at 10/10, padding 18/31 ---- */
.nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: calc(100% - 20px);
  max-width: 1420px;
  height: 80px;
  margin: 10px auto 0;
  padding: 18px 31px;
}
/* Logo frame (4:83) — padding 10, logo 87 × 48 */
.nav__logo {
  display: block;
  padding: 10px;
  line-height: 0;
}
.nav__logo img {
  display: block;
  width: 87px;
  height: 48px;
  object-fit: cover;
}
.nav__logo:focus-visible,
.nav__menu a:focus-visible,
.nav__toggle:focus-visible { outline: 2px solid var(--details-color); outline-offset: 3px; }

/* Menu (4:84) — 15 px Regular, 45 px gaps */
.nav__menu {
  display: flex;
  align-items: center;
  gap: 45px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: var(--tracking);
  white-space: nowrap;
}
.nav__menu a {
  color: #000;
  text-decoration: none;
  transition: color .2s ease;
}
.nav__menu a:hover { color: var(--details-color); }
.nav__menu a[aria-current="page"] { color: var(--details-color); }
/* EN / CS — visual only for now (translation not built yet) */
.nav__lang { color: #000; letter-spacing: 0; }   /* Figma: EN / CS has no tracking */
.nav__lang-active { color: var(--details-color); }
.nav__lang-sep { color: var(--secondary); }
.nav__lang a { color: inherit; text-decoration: none; transition: color .2s ease; }
.nav__lang a:hover { color: var(--details-color); }
.nav__lang a:focus-visible { outline: 2px solid var(--details-color); outline-offset: 3px; }

/* Mobile menu button (not in Figma — phones only) */
.nav__toggle {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  margin: 4px -12px 0 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--font-colour);
}
.nav__toggle span {
  position: absolute;
  left: 13px;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform .25s ease, opacity .2s ease;
}
.nav__toggle span:nth-child(1) { top: 17px; }
.nav__toggle span:nth-child(2) { top: 23.25px; }
.nav__toggle span:nth-child(3) { top: 29.5px; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(6.25px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-6.25px) rotate(-45deg); }

/* ---- Hero page (node 34:10) — 1136 × 649 ---- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  max-width: 1136px;
  min-height: 649px;
  margin: 0 auto;
  padding: 133px 0 110px;
}

/* Hero text (8:841) — 710 wide, 53 px gap */
.hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 53px;
  width: 710px;
  flex-shrink: 1;
  min-width: 0;
}

/* H1 — 58 / Medium / 4 % */
.hero__title {
  width: 100%;
  margin: 0;
  font-size: 58px;
  font-weight: 600;
  line-height: 70px;
  letter-spacing: var(--tracking);
}

/* H4 — 35 / Medium / 4 % */
.hero__lead {
  margin: 0;
  font-size: 35px;
  font-weight: 600;
  line-height: 42px;
  letter-spacing: var(--tracking);
}

/* Component 1 (8:817) — 209 × 54, 1 px accent border, 12 px radius */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 209px;
  height: 54px;
  border: 1px solid var(--details-color);
  border-radius: 12px;
  background: var(--base-color);
  color: var(--details-color);
  font-family: inherit;
  font-size: 30px;            /* H5 — 30 / Light / 4 % */
  font-weight: 400;
  line-height: 36px;
  letter-spacing: var(--tracking);
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.btn:hover { background: var(--accent-soft); color: var(--details-color); }
.btn:focus-visible { outline: 2px solid var(--details-color); outline-offset: 3px; }

/* photo (6:798) — 341 × 406, image cropped like in Figma */
.hero__photo {
  position: relative;
  flex: 0 0 341px;
  width: 341px;
  height: 406px;
  margin: 0;
}
.hero__photo-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero__photo img {
  position: absolute;
  left: -0.14%;
  top: -26.02%;
  width: 100%;
  height: 125.97%;
  max-width: none;
  display: block;
}

/* Photo credit (300:54) — 12 px / Regular / 4 %, right-aligned 8 px under the photo */
.hero__credit {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  font-size: 12px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: var(--tracking);
  white-space: nowrap;
  color: var(--credit);
}
.hero__credit span { color: var(--secondary); }

/* ---- Work (node 49:151) — 1136 content, 58 px top, 34 px gaps ---- */
.work {
  display: flex;
  flex-direction: column;
  gap: 34px;
  width: 100%;
  max-width: 1136px;
  margin: 0 auto;
  padding-top: 58px;
}

/* D2 — 12 / Regular / 0 % */
.work__label {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: 0;
  color: var(--secondary);
}

/* Pair (49:164) — two cards, 34 px gap */
.work__pair {
  display: flex;
  align-items: flex-start;
  gap: 34px;
}

/* Work card (43:65 component) — image 390, rule, meta; 20 px gaps */
.work-card {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--base-color);
  color: inherit;
  text-decoration: none;
}
.work-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 551 / 390;
  overflow: hidden;
}
.work-card__image img {
  position: absolute;
  max-width: none;
  display: block;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.work-card--art    .work-card__image img { left: 0.16%;  top: -40.92%;  width: 100%;   height: 211.9%; }
.work-card--design .work-card__image img { left: -0.02%; top: -118.53%; width: 103.1%; height: 218.47%; }
.work-card:hover .work-card__image img { transform: scale(1.03); }

.work-card__rule {
  display: block;
  width: 100%;
  height: 1px;
  margin-top: -1px;          /* Figma: 0-height rule, line drawn 1 px above */
}

.work-card__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 10px;
}
/* H3 — 45 / Medium / 4 % */
.work-card__title {
  margin: 0;
  font-size: 45px;
  font-weight: 600;
  line-height: 54px;
  letter-spacing: var(--tracking);
  color: #000;
  white-space: nowrap;
  transition: color .2s ease;
}
.work-card:hover .work-card__title { color: var(--details-color); }
/* D1 — 15 / Regular / 4 % */
.work-card__desc {
  margin: 0;
  width: 302px;
  max-width: 100%;
  font-size: 15px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: var(--tracking);
  text-align: right;
  color: var(--secondary);
}
.work-card:focus-visible { outline: 2px solid var(--details-color); outline-offset: 4px; }

/* ---- Contact CTA (node 65:2) — 130 top / 100 bottom, heading 640 wide ---- */
.cta {
  width: 100%;
  max-width: 1136px;
  margin: 0 auto;
  padding: 130px 0 100px;
}
/* H1 style — 58 / Medium */
.cta__heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 640px;
  max-width: 100%;
  margin: 0;
  font-size: 58px;
  font-weight: 600;
  line-height: 70px;
  letter-spacing: var(--tracking);
  color: var(--font-colour);
}
.cta__link {
  color: var(--details-color);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
  transition: text-decoration-color .2s ease;
}
.cta__link:hover { text-decoration-color: currentColor; }
.cta__link:focus-visible { outline: 2px solid var(--details-color); outline-offset: 4px; }

/* ---- Footer (node 65:5) — 1420 wide (10 px page margin), padding 40/31/9/31 ---- */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 26px;
  width: calc(100% - 20px);
  max-width: 1420px;
  margin: 0 auto;
  padding: 40px 31px 9px;
  font-size: 12px;            /* D2 — 12 / Regular / 0 % */
  font-weight: 500;
  line-height: 14px;
  letter-spacing: 0;
  color: var(--secondary);
}
.footer__copy { margin: 0; }
.footer__links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer__link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease;
}
.footer__link img { display: block; width: 14px; height: 14px; flex: none; }
.footer__link:hover { color: var(--details-color); }
.footer__link:focus-visible { outline: 2px solid var(--details-color); outline-offset: 3px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Pagehead (node 88:16) — Art / Design page title row ---- */
.pagehead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 1136px;
  margin: 0 auto;
  padding-top: 64px;
}
/* H1 — 58 / Medium */
.pagehead__title {
  margin: 0;
  font-size: 58px;
  font-weight: 600;
  line-height: 70px;
  letter-spacing: var(--tracking);
  color: #000;
  white-space: nowrap;
}
/* D2 — 12 / Regular / 0 % */
.pagehead__meta {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: 0;
  color: var(--secondary);
  white-space: nowrap;
}

/* ---- Art grid (node 88:19) — 2 columns 548, gaps 40 / 64, padding 60 / 90 ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 64px 40px;
  width: 100%;
  max-width: 1136px;
  margin: 0 auto;
  padding: 60px 0 90px;
}

/* Tile — image 420, 18 px gap, meta */
.tile {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.tile__image {
  position: relative;
  width: 100%;
  aspect-ratio: 548 / 420;
  overflow: hidden;
}
.tile__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
/* Figma image crops (percent of the 548 × 420 frame) */
.tile--post-past  .tile__image img { inset: auto; left: -30.36%; top: 0.09%;   width: 134.53%; height: 117.04%; }
.tile--festival   .tile__image img { object-position: 47% 52%; }   /* natural proportions, framed like Figma (Figma stretched it ~12 %) */
.tile--residents  .tile__image img { inset: auto; left: 0.05%;   top: -48.38%; width: 100%;    height: 196.76%; }
.tile:hover .tile__image img { transform: scale(1.03); }

.tile__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
/* H4 — 35 / Medium */
.tile__title {
  flex: 0 1 var(--title-w, auto);
  min-width: 0;
  margin: 0;
  font-size: 35px;
  font-weight: 600;
  line-height: 41.7px;       /* Figma: 3 lines = 125 px */
  letter-spacing: var(--tracking);
  color: #000;
  transition: color .2s ease;
}
.tile:hover .tile__title { color: var(--details-color); }
/* D1 — 15 / Regular */
.tile__type {
  flex: none;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: var(--tracking);
  color: var(--secondary);
  white-space: nowrap;
  text-align: right;
}
.tile:focus-visible { outline: 2px solid var(--details-color); outline-offset: 4px; }

/* ==== Project detail page (Post-past detail, node 124:4) ==== */

/* Crumb (124:14) — "← Art", padding-top 44 */
.crumb {
  display: flex;              /* no extra line-box height: row is exactly 44 + 18 = 62 px */
  width: 100%;
  max-width: 1136px;
  margin: 0 auto;
  padding-top: 44px;
}
.crumb a {
  display: inline-block;
  font-size: 15px;            /* D1 — 15 / Roman */
  font-weight: 500;
  line-height: 18px;
  letter-spacing: var(--tracking);
  color: var(--secondary);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease;
}
.crumb a:hover { color: var(--details-color); }
.crumb a:focus-visible { outline: 2px solid var(--details-color); outline-offset: 3px; }

/* Detailhead (124:17) — padding-top 40, 18 px gaps */
.detailhead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
  max-width: 1136px;
  margin: 0 auto;
  padding-top: 40px;
}
.detailhead__type {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: var(--tracking);
  color: var(--secondary);
}
.detailhead__title {           /* H1 — 58 / Medium; box width per page (--title-w) */
  width: var(--title-w, 731px);
  max-width: 100%;
  margin: 0;
  font-size: 58px;
  font-weight: 600;
  line-height: 70px;
  letter-spacing: var(--tracking);
  color: #000;
}
.detailhead__titlegroup {      /* title + place name (e.g. Festival PROUD) — 8 px gap, 14 px below */
  display: flex;
  max-width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-bottom: 14px;
}
.detailhead__place {           /* 17 / Roman, grey */
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: var(--tracking);
  color: var(--secondary);
}
.detailhead__text {            /* D3 — 20 / Roman */
  width: 100%;
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: var(--tracking);
  color: var(--credit);
}

/* Gallery (124:22) — padding 56 / 90, 14 px gaps; main 620 high, strip of 4 × 150 */
.gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 1136px;
  margin: 0 auto;
  padding: 56px 0 90px;
}
.gallery__item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #e6e6e7;
  overflow: hidden;
  cursor: zoom-in;
}
.gallery__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);   /* framing per photo when shown uncropped */
  transition: transform .6s cubic-bezier(.2, .7, .2, 1), opacity .2s ease;
}
.gallery__item:hover img { transform: scale(1.02); }
.gallery__item:focus-visible { outline: 2px solid var(--details-color); outline-offset: 3px; }
.gallery__main { aspect-ratio: 1136 / 620; }
.gallery__strip {             /* number of cells and their shape set per page: --cols, --cell-ratio */
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: 14px;
}
.gallery__strip .gallery__item { aspect-ratio: var(--cell-ratio, 273.5 / 150); }
/* Figma crop for a single photo, set per photo: --x --y --w --h (percent of the frame) */
.gallery__item--crop img { inset: auto; left: var(--x, 0); top: var(--y, 0); width: var(--w, 100%); height: var(--h, 100%); }

/* Video projects: still image linking to the video + "Watch on YouTube ↗" (Coordinates video, 147:6) */
a.gallery__item { cursor: pointer; }
.video-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 15px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: var(--tracking);
  color: var(--details-color);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color .2s ease;
}
.video-link:hover { text-decoration-color: currentColor; }
.video-link:focus-visible { outline: 2px solid var(--details-color); outline-offset: 3px; }
.video-link img { display: block; width: 14px; height: 14px; }

.detail { padding-bottom: var(--detail-gap, 84px); }   /* space between gallery and footer (per page in Figma) */

/* ==== Lightbox (frames 270:54 – 270:90) ==== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}
.lightbox.is-open { display: block; }
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(245, 245, 245, 0.88);
  cursor: zoom-out;
}
.lightbox__stage {             /* 800 × 600 photo box, 19 px above centre like Figma */
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(800px, calc(100vw - 160px));
  height: min(600px, calc(100vh - 200px));
  transform: translate(-50%, calc(-50% - 19px));
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.lightbox__figure {
  position: relative;
  margin: 0;
  max-width: 100%;
  pointer-events: auto;
}
.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: min(600px, calc(100vh - 200px));
  width: auto;
  height: auto;
}
.lightbox__caption {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: var(--tracking);
  color: var(--credit);
}
.lightbox__credit span,
.lightbox__count { color: var(--secondary); }
.lightbox__count { white-space: nowrap; }
.lightbox__btn {                /* 44 px round, white 95 %, soft shadow */
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  color: var(--font-colour);
  cursor: pointer;
  transition: transform .15s ease;
}
.lightbox__btn:hover { transform: scale(1.06); }
.lightbox__btn:focus-visible { outline: 2px solid var(--details-color); outline-offset: 3px; }
.lightbox__btn img { display: block; width: 16px; height: 16px; }
.lightbox__prev  { left: 48px;  top: calc(50% - 22px); }
.lightbox__next  { right: 48px; top: calc(50% - 22px); }
.lightbox__close { right: 42px; top: 28px; font-size: 18px; line-height: 1; font-family: inherit; font-weight: 500; }
body.lightbox-open { overflow: hidden; }

/* ==== Design page — Stripgrid (node 175:72): bands of info + images, 1 px dividers ==== */
.stripgrid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  max-width: 1136px;
  margin: 0 auto;
  padding: 44px 0;
}
.stripgrid__divider {
  height: 1px;
  margin: 0;
  border: 0;
  background: #dcdcdd;
}
/* Stripband — 172 high: info 280 | 40 gap | images */
.stripband {
  display: flex;
  align-items: center;
  gap: 40px;
  color: inherit;
  text-decoration: none;
}
.stripband:focus-visible { outline: 2px solid var(--details-color); outline-offset: 4px; }
.stripband__info {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 172px;
}
.stripband__titlegroup { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.stripband__label,
.stripband__desc {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: var(--tracking);
  color: var(--secondary);
}
.stripband__title {            /* 27 / Medium (TheMed band uses 35 via --band-title) */
  margin: 0;
  font-size: var(--band-title, 27px);
  font-weight: 600;
  line-height: 1.19;
  letter-spacing: var(--tracking);
  color: #000;
  transition: color .2s ease;
}
.stripband:hover .stripband__title { color: var(--details-color); }
.stripband__imgs {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  gap: 10px;
  height: 172px;
}
.stripband__cell {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  background: #e6e6e7;
}
.stripband__cell img {
  position: absolute;
  left: var(--x, 0);
  top: var(--y, 0);
  width: var(--w, 100%);
  height: var(--h, 100%);
  max-width: none;
  display: block;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.stripband:hover .stripband__cell img { transform: scale(1.03); }

/* ==== Design detail sections with horizontal carousels (TheMed, node 176:96 / 176:112) ==== */
.dsection {
  position: relative;
  width: 100%;
  max-width: 1136px;
  margin: 32px auto 0;
}
.dsection + .dsection { margin-top: 56px; }
.dsection__title {             /* 26 / Medium */
  margin: 0 0 29px;
  font-size: 26px;
  font-weight: 600;
  line-height: 31px;
  letter-spacing: var(--tracking);
  color: #000;
}
.carousel { position: relative; }
.carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.carousel__viewport::-webkit-scrollbar { display: none; }
.carousel__row { display: flex; gap: 14px; width: max-content; }
.carousel__cell {
  position: relative;
  flex: none;
  width: var(--cell-w, 300px);
  height: var(--cell-h, 300px);
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #e6e6e7;
  cursor: zoom-in;
  scroll-snap-align: start;
}
.carousel__cell img {
  position: absolute;
  left: var(--x, 0);
  top: var(--y, 0);
  width: var(--w, 100%);
  height: var(--h, 100%);
  max-width: none;
  display: block;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
}
.carousel__cell:focus-visible { outline: 2px solid var(--details-color); outline-offset: -2px; }
.carousel__btn {               /* 44 px round, 14 px in from the edge, centred on the images */
  position: absolute;
  top: calc(50% - 22px);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: opacity .2s ease, transform .15s ease;
}
.carousel__btn:hover { transform: scale(1.06); }
.carousel__btn:disabled { opacity: .35; cursor: default; transform: none; }
.carousel__btn:focus-visible { outline: 2px solid var(--details-color); outline-offset: 3px; }
.carousel__btn img { display: block; width: 16px; height: 16px; }
.carousel__btn--prev { left: 14px; }
.carousel__btn--next { right: 14px; }

/* ---- Responsive (no separate Figma breakpoints — handled in CSS) ---- */
@media (max-width: 1200px) {
  .hero { padding-left: 32px; padding-right: 32px; }
  .hero__title { font-size: clamp(40px, 4.8vw, 58px); line-height: 1.2; }
  .hero__lead  { font-size: clamp(24px, 2.9vw, 35px); line-height: 1.2; }
}

@media (max-width: 820px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 56px;
    min-height: 0;
    padding: 72px 16px 80px;
  }
  .hero__text { width: 100%; gap: 32px; }
  .hero__title { font-size: clamp(32px, 8.5vw, 58px); }
  .hero__lead  { font-size: clamp(20px, 5.2vw, 35px); }
  .hero__photo {
    flex: none;
    width: min(341px, 100%);
    height: auto;
    aspect-ratio: 341 / 406;
    align-self: flex-end;
    margin-bottom: 22px;
  }
}

@media (max-width: 1200px) {
  .work { padding-left: 32px; padding-right: 32px; }
}
@media (max-width: 820px) {
  .work { padding: 40px 16px 0; gap: 24px; }
  .work__pair { flex-direction: column; gap: 40px; }
  .work-card { width: 100%; flex: none; }
  .work-card__title { font-size: 36px; line-height: 43px; }
  .work-card__desc { font-size: 14px; width: auto; max-width: 60%; }
}

@media (max-width: 1200px) {
  .cta { padding-left: 32px; padding-right: 32px; }
  .cta__heading { font-size: clamp(40px, 4.8vw, 58px); line-height: 1.2; }
}
@media (max-width: 820px) {
  .cta { padding: 88px 16px 72px; }
  .cta__heading { font-size: clamp(32px, 8.5vw, 58px); }
}

@media (max-width: 820px) {
  .footer { flex-direction: column-reverse; align-items: flex-start; padding: 32px 6px 16px; }
  .footer__links { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 820px) {
  .nav { width: 100%; margin-top: 0; height: auto; padding: 10px 16px; align-items: center; }
  .nav__logo { padding: 10px 0; }
  .nav__logo img { width: 72px; height: 40px; }
  .nav__toggle { display: block; }
  .nav__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 16px 24px;
    background: var(--base-color);
    border-bottom: 1px solid #dcdcdd;
    font-size: 28px;
    line-height: 34px;
  }
  .nav.is-open .nav__menu { display: flex; }
  .nav__menu li { padding: 8px 0; }
  .nav__lang { font-size: 15px; line-height: 18px; margin-top: 12px; }
}

@media (max-width: 1200px) {
  .pagehead { padding-left: 32px; padding-right: 32px; }
  .pagehead__title { font-size: clamp(40px, 4.8vw, 58px); line-height: 1.2; }
}
@media (max-width: 820px) {
  .pagehead { padding: 40px 16px 0; align-items: baseline; }
  .pagehead__title { font-size: clamp(36px, 10vw, 58px); }
}

@media (max-width: 1200px) {
  .grid { padding-left: 32px; padding-right: 32px; }
  .tile__title { font-size: clamp(26px, 2.9vw, 35px); line-height: 1.2; }
}
@media (max-width: 820px) {
  .grid { grid-template-columns: 1fr; gap: 48px; padding: 32px 16px 72px; }
  .tile__title { flex-basis: auto; font-size: clamp(24px, 6.5vw, 35px); }
  .tile__meta { flex-direction: column-reverse; gap: 6px; }
  .tile__type { text-align: left; }
}

@media (max-width: 1200px) {
  .crumb, .detailhead, .gallery { padding-left: 32px; padding-right: 32px; }
  .detailhead__title { font-size: clamp(40px, 4.8vw, 58px); line-height: 1.2; }
}
@media (max-width: 820px) {
  .crumb { padding: 24px 16px 0; }
  .detailhead { padding: 24px 16px 0; gap: 14px; }
  .detailhead__title { font-size: clamp(32px, 8.5vw, 58px); width: auto; }   /* phones: title uses the screen width */
  .detailhead__titlegroup { max-width: 100%; }
  .br-desk { display: none; }   /* line breaks only meant for wide screens */
  .detailhead__text { font-size: 17px; line-height: 1.4; }
  .gallery { padding: 32px 16px 56px; gap: 8px; }
  .gallery__strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .detail { padding-bottom: 24px; }
  .lightbox__stage { width: calc(100vw - 32px); height: calc(100vh - 220px); }
  .lightbox__img { max-height: calc(100vh - 220px); }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 32px; }
  .lightbox__prev { left: 16px; }
  .lightbox__next { right: 16px; }
  .lightbox__close { right: 16px; top: 16px; }
}

@media (max-width: 1200px) {
  .stripgrid { padding-left: 32px; padding-right: 32px; }
}
@media (max-width: 820px) {
  .stripgrid { padding: 32px 16px 56px; gap: 24px; }
  .stripband { flex-direction: column; align-items: stretch; gap: 16px; }
  .stripband__info { flex: none; height: auto; gap: 10px; }
  .stripband__imgs { height: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stripband__cell { aspect-ratio: 196.5 / 172; }
  .stripband__imgs--2 { grid-template-columns: 1fr; }
  .stripband__imgs--2 .stripband__cell { aspect-ratio: 403 / 172; }
}

@media (max-width: 1200px) {
  .dsection { padding-left: 32px; padding-right: 32px; }
}
@media (max-width: 820px) {
  .dsection { padding-left: 16px; padding-right: 0; margin-top: 24px; }
  .dsection + .dsection { margin-top: 40px; }
  .dsection__title { margin-bottom: 16px; font-size: 22px; line-height: 27px; }
  .carousel__cell { width: calc(var(--cell-w, 300px) * .8); height: calc(var(--cell-h, 300px) * .8); }
  .carousel__btn { display: none; }   /* swipe on touch screens */
}

/* ==== Poster + video detail (Předlická Kolejnička, 208:44) ==== */
.dposter { width: min(480px, 100%); margin: 0 auto; aspect-ratio: 480 / 676; }   /* 480 × 676, centred */
.dvideo { display: flex; flex-direction: column; gap: 14px; }                      /* still 1136 × 620, link 14 px below */
.dsection--video, .dsection + .dsection--video { margin-top: 32px; }
.lightbox.is-single .lightbox__prev,
.lightbox.is-single .lightbox__next,
.lightbox.is-single .lightbox__count { display: none; }
@media (max-width: 820px) {
  .dsection--video, .dsection + .dsection--video { margin-top: 24px; padding-right: 16px; }
  .dsection--poster { padding-right: 16px; }   /* poster keeps the same margin on both sides */
  .dvideo { gap: 8px; }
}

/* ==== About page (230:48) ==== */
.about { width: 100%; max-width: 1136px; margin: 0 auto; padding-bottom: 36px; }
/* Intro (230:60): photo 360 × 460, text column 712 wide, 64 px between */
.aintro { display: flex; align-items: flex-start; gap: 64px; padding: 48px 0; }
.aintro__photo { position: relative; flex: 0 0 360px; width: 360px; height: 460px; margin: 0; overflow: hidden; background: #e6e6e7; }
.aintro__photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; display: block; object-fit: cover; object-position: 50% 86.7%; }
.aintro__text { display: flex; flex-direction: column; align-items: flex-start; width: 712px; min-width: 0; }
.aintro__role { margin: 0; font-size: 15px; font-weight: 500; line-height: 18px; letter-spacing: var(--tracking); color: var(--secondary); }
.aintro__name { margin: 8px 0 0; font-size: 58px; font-weight: 600; line-height: 70px; letter-spacing: var(--tracking); color: #000; }
.aintro__bio { margin: 24px 0 32px; font-size: 20px; font-weight: 500; line-height: 30px; letter-spacing: var(--tracking); color: var(--credit); }
/* Process photos (298:54): 3 cells 240 high, 24 px gaps; credit 8 px below */
.astrip { margin-top: 28px; }
.astrip__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.astrip__cell { position: relative; height: 240px; margin: 0; overflow: hidden; background: #e6e6e7; }
.astrip__cell img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; display: block; object-fit: cover; object-position: var(--pos, 50% 50%); }
.astrip__cell--crop img { inset: auto; left: var(--x, 0); top: var(--y, 0); width: var(--w, 100%); height: var(--h, 100%); }
.astrip__credit { margin: 8px 0 0; font-size: 12px; font-weight: 500; line-height: 14px; letter-spacing: var(--tracking); color: var(--secondary); }
.astrip__credit span { color: var(--credit); }
/* CV sections: 1 px divider, label, entries (title 22 / Medium + grey line) */
.alist { margin-top: 56px; padding-top: 28px; border-top: 1px solid #dcdcdd; }
.alist__label { margin: 0 0 24px; font-size: 15px; font-weight: 500; line-height: 18px; letter-spacing: var(--tracking); color: var(--secondary); }
.alist__items { display: flex; flex-direction: column; gap: 32px; margin: 0; padding: 0; list-style: none; }
.alist__title { margin: 0; font-size: 22px; font-weight: 600; line-height: 26px; letter-spacing: var(--tracking); color: #000; }
.alist__meta { margin: 6px 0 0; font-size: 15px; font-weight: 500; line-height: 18px; letter-spacing: var(--tracking); color: var(--secondary); }
.alist__text { margin: 0; font-size: 20px; font-weight: 500; line-height: 24px; letter-spacing: var(--tracking); color: var(--credit); }
@media (max-width: 1200px) {
  .about { padding-left: 32px; padding-right: 32px; }
  .aintro { gap: 40px; }
  .aintro__name { font-size: clamp(40px, 4.8vw, 58px); line-height: 1.2; }
}
@media (max-width: 820px) {
  .about { padding: 0 16px 24px; }
  .aintro { flex-direction: column; gap: 32px; padding: 32px 0; }
  .aintro__photo { flex: none; width: min(360px, 100%); height: auto; aspect-ratio: 360 / 460; }
  .aintro__text { width: 100%; }
  .aintro__name { font-size: clamp(32px, 8.5vw, 58px); }
  .aintro__bio { font-size: 17px; line-height: 1.5; }
  .astrip { margin-top: 0; }
  .astrip__row { grid-template-columns: 1fr; gap: 8px; }
  .astrip__cell { height: auto; aspect-ratio: 362.67 / 240; }
  .alist { margin-top: 40px; padding-top: 24px; }
  .alist__label { margin-bottom: 20px; }
  .alist__items { gap: 24px; }
  .alist__title { font-size: 19px; line-height: 1.25; }
  .alist__text { font-size: 17px; line-height: 1.4; }
}

/* ==== Contact page (252:50): two 528 px columns, 80 px apart ==== */
.contact { display: flex; justify-content: space-between; align-items: flex-start; width: 100%; max-width: 1136px; margin: 0 auto; padding: 48px 0 60px; }
.contact__intro, .cform { width: 528px; min-width: 0; }
.contact__label { margin: 0; font-size: 15px; font-weight: 500; line-height: 18px; letter-spacing: var(--tracking); color: var(--secondary); }
.contact__title { margin: 8px 0 0; font-size: 58px; font-weight: 600; line-height: 70px; letter-spacing: var(--tracking); color: #000; }
.contact__text { margin: 24px 0 0; font-size: 20px; font-weight: 500; line-height: 30px; letter-spacing: var(--tracking); color: var(--credit); }
.contact__direct { margin-top: 40px; }
.contact__links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
/* Form: label 18 + field; groups 28 apart */
.cform { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; margin: 0; }
.cform__group { display: flex; flex-direction: column; width: 100%; margin: 0; padding: 0; border: 0; min-width: 0; }
.cform__label { display: block; padding: 0; font-size: 15px; font-weight: 500; line-height: 18px; letter-spacing: var(--tracking); color: var(--secondary); }
.cform__input {                /* underline field: 34 high + 1 px line */
  width: 100%; height: 35px; margin: 0; padding: 0 0 6px; border: 0; border-bottom: 1px solid #dcdcdd; border-radius: 0;
  background: transparent; color: var(--font-colour); font: inherit; font-size: 17px; font-weight: 500; letter-spacing: var(--tracking);
  transition: border-color .2s ease;
}
.cform__input:focus, .cform__textarea:focus { outline: none; border-color: var(--details-color); }
.cform__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cform__chip { position: relative; }
.cform__chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cform__chip span {             /* pill: 14 px text, 9/16 padding, 1 px border */
  display: block; padding: 9px 16px; border: 1px solid #dcdcdd; border-radius: 999px;
  font-size: 14px; font-weight: 500; line-height: 17px; letter-spacing: var(--tracking); color: #000; cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.cform__chip span:hover { border-color: var(--details-color); }
.cform__chip input:checked + span { border-color: var(--details-color); color: var(--details-color); }
.cform__chip input:focus-visible + span { outline: 2px solid var(--details-color); outline-offset: 2px; }
.cform__textarea {
  display: block; width: 100%; height: 96px; margin-top: 14px; padding: 10px 12px; border: 1px solid #dcdcdd; border-radius: 2px;
  background: transparent; color: var(--font-colour); font: inherit; font-size: 17px; font-weight: 500; line-height: 1.4; letter-spacing: var(--tracking); resize: vertical;
  transition: border-color .2s ease;
}
.cform__send {                  /* 174 × 54, accent, 12 px radius, 14 / uppercase / 6 % */
  width: 174px; height: 54px; border: 1px solid var(--details-color); border-radius: 12px; background: var(--details-color); color: #fff;
  font: inherit; font-size: 14px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.cform__send:hover { background: var(--accent-soft); color: var(--details-color); }
.cform__send:focus-visible { outline: 2px solid var(--details-color); outline-offset: 3px; }
.cform__send:disabled { opacity: .5; cursor: wait; }
.cform__status { margin: -14px 0 0; font-size: 15px; font-weight: 500; line-height: 18px; letter-spacing: var(--tracking); color: var(--credit); }
.cform__status:empty { display: none; }
.cform__trap { position: absolute; left: -9999px; }
@media (max-width: 1200px) {
  .contact { gap: 48px; padding-left: 32px; padding-right: 32px; }
  .contact__title { font-size: clamp(40px, 4.8vw, 58px); line-height: 1.2; }
}
@media (max-width: 820px) {
  .contact { flex-direction: column; gap: 48px; padding: 32px 16px 48px; }
  .contact__intro, .cform { width: 100%; }
  .contact__title { font-size: clamp(32px, 8.5vw, 58px); }
  .contact__text { font-size: 17px; line-height: 1.5; }
  .contact__direct { margin-top: 32px; }
}

@media (max-width: 420px) {
  .btn { width: 180px; height: 48px; font-size: 26px; }
  .hero__photo { width: 100%; }
}

/* ==== Motion (29. 9.) — soft, short; all switched off for "reduce motion" ==== */

/* 1) Smooth page changes: pages cross-fade (Chrome, Edge, Safari; others just switch) */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: .4s; animation-timing-function: ease; }

/* 2) Fade-in on scroll — js/motion.js marks only content BELOW the first screen
      (what you see when a page opens is there straight away — no blink) */
.reveal-pre { opacity: 0; transform: translateY(28px); }
.reveal-pre.is-in {
  opacity: 1; transform: none;
  transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
}

/* 3) Zoom on hover — stronger than before (3 % → 6 %) */
.work-card:hover .work-card__image img,
.tile:hover .tile__image img,
.stripband:hover .stripband__cell img { transform: scale(1.06); }
.gallery__item:hover img { transform: scale(1.04); }

/* 4) Animated underline — a line draws in from the left on hover */
.nav__menu a,
.nav__lang a,
.footer__link > span,
.cta__link {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: color .2s ease, background-size .35s cubic-bezier(.2, .7, .2, 1);
}
.nav__menu a, .nav__lang a { padding-bottom: 3px; }
.cta__link { background-size: 0% 3px; padding-bottom: 2px; }
.nav__menu a:hover,
.nav__lang a:hover,
.footer__link:hover > span { background-size: 100% 1px; }
.cta__link:hover { background-size: 100% 3px; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .reveal-pre { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
