/* ==========================================================================
   TAUERFOTO.CZ — Darkroom Gallery Editorial Design System
   Ing. Vladimír Tauer · Ateliér Loučná
   Mobile-First, Uncropped Fine-Art Photography Portfolio
   ========================================================================== */

:root {
  /* Palette — Deep Matte Darkroom & Champagne Gold */
  --bg: #0b0b0e;
  --bg-elevated: #131318;
  --bg-card: #18181f;
  --bg-card-hover: #202029;
  --bg-glass: rgba(11, 11, 14, 0.84);

  --text: #f3efe7;
  --text-soft: #d2cbc0;
  --text-muted: #999287;
  --text-faint: #6c665d;

  --accent: #c9a875;
  --accent-light: #e0c496;
  --accent-dim: rgba(201, 168, 117, 0.16);
  --accent-border: rgba(201, 168, 117, 0.34);

  --border: rgba(243, 239, 231, 0.09);
  --border-strong: rgba(243, 239, 231, 0.18);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing & Sizing */
  --container: 1320px;
  --container-narrow: 920px;
  --nav-h: 74px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 180ms;
  --t-med: 340ms;
  --t-slow: 600ms;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  color: var(--text);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.68;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 9999;
  padding: 10px 18px;
  background: var(--accent);
  color: #0b0b0e;
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  left: 12px;
}

/* ---------- Typography Helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.8;
}

h1, h2, h3, .display-font {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
}

h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.5rem);
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}

.lead {
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  color: var(--text-soft);
  line-height: 1.75;
  max-width: 64ch;
}

.italic-accent {
  font-style: italic;
  color: var(--accent-light);
  font-weight: 400;
}

/* ---------- Layout Containers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: clamp(56px, 8vw, 108px);
  position: relative;
}

.section--alt {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, #101015 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: clamp(32px, 4.5vw, 56px);
}

.section-header--split {
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

@media (min-width: 820px) {
  .section-header--split {
    flex-direction: row;
    align-items: flex-end;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #0b0b0e;
  font-weight: 600;
}
.btn--primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(201, 168, 117, 0.22);
}

.btn--outline {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: rgba(243, 239, 231, 0.03);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: var(--accent-dim);
  transform: translateY(-1px);
}

.btn--ghost {
  padding: 8px 0;
  min-height: auto;
  color: var(--accent-light);
  border-radius: 0;
  border-bottom: 1px solid transparent;
}
.btn--ghost:hover {
  border-bottom-color: var(--accent);
}

.btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  transition: transform var(--t-fast) var(--ease);
}
.btn:hover svg.arrow-right {
  transform: translateX(3px);
}

/* ---------- Header & Persistent Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}

.site-header.is-scrolled {
  background: rgba(11, 11, 14, 0.94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand__logo {
  height: 36px;
  width: auto;
  filter: invert(1) brightness(1.08) sepia(0.18) saturate(0.8);
  opacity: 0.94;
  transition: opacity var(--t-fast);
}
.brand:hover .brand__logo {
  opacity: 1;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text);
}

.brand__sub {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.nav-links {
  display: none;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  padding-block: 8px;
  transition: color var(--t-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
}

.nav-links a.is-active::after,
.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  display: none;
  align-items: center;
  gap: 12px;
}

.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--text-soft);
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.social-icon-btn:hover {
  color: var(--accent-light);
  border-color: var(--accent-border);
  background: var(--accent-dim);
}
.social-icon-btn svg {
  width: 17px;
  height: 17px;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text);
}
.menu-toggle svg {
  width: 22px;
  height: 22px;
}

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-actions { display: flex; }
  .menu-toggle { display: none; }
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: #0b0b0e;
  display: flex;
  flex-direction: column;
  padding: 20px 24px 36px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), visibility 0s linear var(--t-fast);
}

.mobile-drawer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility 0s linear 0s;
}

.mobile-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.mobile-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-block: 28px;
}

.mobile-drawer__nav a {
  font-family: var(--font-display);
  font-size: 2rem;
  padding: 10px 4px;
  color: var(--text-soft);
  border-bottom: 1px solid rgba(243, 239, 231, 0.05);
  transition: color var(--t-fast), padding-left var(--t-fast);
}

.mobile-drawer__nav a.is-active,
.mobile-drawer__nav a:hover {
  color: var(--accent-light);
  padding-left: 8px;
}

.mobile-drawer__footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.mobile-drawer__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}
.mobile-drawer__contacts a {
  color: var(--text);
  font-weight: 500;
}

/* ---------- Hero Section (Homepage) ---------- */
.hero {
  position: relative;
  padding-block: clamp(44px, 6.5vw, 88px) clamp(52px, 7vw, 96px);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -140px;
  right: -120px;
  width: 680px;
  height: 680px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 117, 0.11) 0%, rgba(201, 168, 117, 0) 68%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__title {
  margin-bottom: 22px;
}

.hero__lead {
  margin: 0 0 30px;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.78;
  max-width: 56ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  max-width: 520px;
}

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 6px;
}

.stat__label {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Hero Visual Composition (3-photo Fine-Art Collage) */
.hero__visual {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  align-items: stretch;
}

.hero-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.48);
}

.hero-frame--main {
  aspect-ratio: 3 / 4;
}

.hero-frame__stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-frame--square {
  aspect-ratio: 1 / 1;
}

.hero-frame--sub {
  flex: 1;
  min-height: 140px;
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  transition: transform 800ms var(--ease);
}

.hero-frame--contain img {
  object-fit: contain;
  background: #060608;
  padding: 6px;
}

.hero-frame:hover img {
  transform: scale(1.04);
}

.hero-frame__cap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(11, 11, 14, 0.74);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

/* ---------- 6 Curated Category Cards (Homepage & Overview) ---------- */
.categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 2.6vw, 28px);
}

@media (min-width: 680px) {
  .categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.cat-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}

.cat-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-border);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}

.cat-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #070709;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.cat-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  transition: transform 700ms var(--ease);
}

.cat-card__media--contain img {
  object-fit: contain;
  background: #060608;
  padding: 8px;
}

.cat-card:hover .cat-card__media img {
  transform: scale(1.05);
}

.cat-card__badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.cat-card__num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: rgba(11, 11, 14, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--accent-light);
}

.cat-card__count {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(11, 11, 14, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--text-soft);
}

.cat-card__body {
  padding: 24px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cat-card__title {
  font-size: 1.62rem;
  margin-bottom: 8px;
}

.cat-card__motto {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.06rem;
  color: var(--accent-light);
  margin: 0 0 12px;
}

.cat-card__desc {
  margin: 0 0 20px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.68;
  flex: 1;
}

.cat-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.cat-card__link svg {
  width: 15px;
  height: 15px;
  transition: transform var(--t-fast) var(--ease);
}
.cat-card:hover .cat-card__link svg {
  transform: translateX(4px);
}

/* ---------- Feature Spotlight: Chronofotografie (Mandaly) ---------- */
.spotlight {
  background: radial-gradient(ellipse at 70% 50%, rgba(201, 168, 117, 0.08) 0%, rgba(7, 7, 10, 0.98) 65%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

@media (min-width: 960px) {
  .spotlight-grid {
    grid-template-columns: 0.95fr 1.05fr;
  }
}

.spotlight__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 30px;
}

.pill-tag {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent-border);
  background: var(--accent-dim);
  color: var(--accent-light);
  font-size: 0.8rem;
  font-weight: 500;
}

.mandala-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mandala-tile {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #040406;
  border: 1px solid var(--border);
  padding: 8px;
  cursor: pointer;
  transition: transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}

.mandala-tile:hover {
  transform: translateY(-4px);
  border-color: var(--accent-border);
}

.mandala-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 600ms var(--ease);
}

.mandala-tile:hover img {
  transform: scale(1.04);
}

/* ---------- Info Cards & Process Grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 720px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .features-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .features-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.info-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.info-card__icon svg {
  width: 21px;
  height: 21px;
}

.info-card h3 {
  font-size: 1.42rem;
}

.info-card p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.68;
}

/* ---------- Page Hero (Subpages) ---------- */
.page-hero {
  padding-block: clamp(44px, 6vw, 80px) clamp(30px, 4vw, 48px);
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse at 20% 0%, rgba(201, 168, 117, 0.08) 0%, transparent 60%);
}

.page-hero h1 {
  margin-bottom: 16px;
}

/* ---------- Portfolio Filter Bar & Uncropped Masonry ---------- */
.filter-bar-wrap {
  position: sticky;
  top: var(--nav-h);
  z-index: 800;
  background: rgba(11, 11, 14, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding-block: 14px;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
  scroll-snap-type: x proximity;
}
.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  flex-shrink: 0;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 500;
  transition: all var(--t-fast) var(--ease);
}

.filter-pill:hover {
  border-color: var(--accent-border);
  color: var(--text);
}

.filter-pill.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0b0b0e;
  font-weight: 600;
}

.filter-pill__cnt {
  font-size: 0.74rem;
  opacity: 0.75;
}

/* Active Category Intro Banner on Portfolio Page */
.category-banner {
  margin-top: 34px;
  margin-bottom: 32px;
  padding: clamp(24px, 3.5vw, 38px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--bg-card) 0%, #131319 100%);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 820px) {
  .category-banner {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

.category-banner__motto {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  color: var(--accent-light);
  margin: 8px 0 12px;
}

.category-banner__desc {
  margin: 0;
  color: var(--text-soft);
  max-width: 72ch;
  font-size: 0.96rem;
  line-height: 1.75;
}

.category-banner__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

@media (min-width: 820px) {
  .category-banner__meta {
    align-items: flex-end;
    text-align: right;
  }
}

/* Uncropped Balanced Masonry Gallery */
.masonry-grid {
  display: flex;
  align-items: flex-start;
  gap: clamp(12px, 1.6vw, 18px);
}

.masonry-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.6vw, 18px);
}

.photo-tile {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #111116;
  border: 1px solid var(--border);
  cursor: zoom-in;
  display: block;
  width: 100%;
  padding: 0;
  transition: transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}

.photo-tile:hover {
  transform: translateY(-3px);
  border-color: var(--accent-border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.48);
}

.photo-tile img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transition: opacity 420ms var(--ease), transform 650ms var(--ease);
}

.photo-tile img.is-loaded {
  opacity: 1;
}

.photo-tile:hover img {
  transform: scale(1.025);
}

.photo-tile__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(8, 8, 11, 0.72) 100%);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 12px 14px;
  transition: opacity var(--t-fast) var(--ease);
  pointer-events: none;
}

.photo-tile:hover .photo-tile__overlay,
.photo-tile:focus-visible .photo-tile__overlay {
  opacity: 1;
}

.photo-tile__label {
  font-size: 0.76rem;
  color: var(--text);
  letter-spacing: 0.04em;
}

.photo-tile__zoom {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(201, 168, 117, 0.2);
  border: 1px solid var(--accent-border);
  color: var(--accent-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.photo-tile__zoom svg {
  width: 14px;
  height: 14px;
}

/* ---------- Fullscreen Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(6, 6, 9, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms var(--ease);
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(16px, 3vw, 28px);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.lightbox__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.lightbox__counter {
  color: var(--accent-light);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.lightbox__close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background var(--t-fast), border-color var(--t-fast);
}
.lightbox__close:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
}

.lightbox__stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3vw, 36px);
  user-select: none;
  touch-action: pan-y;
}

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7);
  transition: opacity 200ms var(--ease);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(18, 18, 24, 0.78);
  border: 1px solid var(--border-strong);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.lightbox__nav:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0b0b0e;
}
.lightbox__nav--prev { left: clamp(10px, 2vw, 24px); }
.lightbox__nav--next { right: clamp(10px, 2vw, 24px); }

@media (max-width: 640px) {
  .lightbox__nav {
    width: 40px;
    height: 40px;
    background: rgba(18, 18, 24, 0.6);
  }
}

.lightbox__bottom {
  padding: 12px clamp(16px, 3vw, 28px) 18px;
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ---------- Testimonials / Reference ---------- */
.quotes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 720px) {
  .quotes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .quotes-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.quote-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.quote-card__mark {
  font-family: var(--font-display);
  font-size: 2.8rem;
  line-height: 0.7;
  color: var(--accent);
  opacity: 0.65;
}

.quote-card__text {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-soft);
  line-height: 1.72;
}

.quote-card__author {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ---------- Projects Cards (projekty.html) ---------- */
.project-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

@media (min-width: 820px) {
  .project-card {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.project-card__media {
  background: #070709;
  min-height: 260px;
  max-height: 440px;
  overflow: hidden;
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.project-card__media--contain img {
  object-fit: contain;
  padding: 14px;
}

.project-card__body {
  padding: clamp(24px, 3.5vw, 38px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.project-card__badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent-light);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.projects-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ---------- Collaborators Chips & Exhibitions ---------- */
.exhibition-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

@media (min-width: 820px) {
  .exhibition-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.exhibition-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.exhibition-card__year {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--accent-light);
  line-height: 1;
}

.collab-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .collab-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .collab-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.collab-item {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.collab-item__name {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.collab-item__note {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.models-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.model-chip {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-soft);
}

/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1.05fr;
    align-items: start;
  }
}

.contact-card {
  padding: clamp(24px, 3.5vw, 38px);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.contact-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.contact-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-list__label {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-list__val {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
}

.contact-list a.contact-list__val:hover {
  color: var(--accent-light);
}

.map-frame {
  width: 100%;
  height: 360px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: invert(90%) hue-rotate(180deg) contrast(0.92) saturate(0.8);
}

/* Form styling */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 580px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-soft);
  margin-bottom: 7px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color var(--t-fast);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

/* ---------- CTA Banner ---------- */
.cta-band {
  padding: clamp(34px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(201, 168, 117, 0.14) 0%, rgba(24, 24, 31, 0.95) 60%);
  border: 1px solid var(--accent-border);
  display: flex;
  flex-direction: column;
  gap: 22px;
  justify-content: space-between;
}

@media (min-width: 820px) {
  .cta-band {
    flex-direction: row;
    align-items: center;
  }
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: #08080b;
  padding-block: clamp(44px, 6vw, 68px) 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  margin-bottom: 40px;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  }
}

.footer__heading {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer__list a:hover {
  color: var(--text);
}

.footer__bottom {
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* ---------- Subtle Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 550ms var(--ease), transform 550ms var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
