:root {
  --ink: #181815;
  --ink-soft: #292923;
  --paper: #f2f0e9;
  --paper-warm: #e9e5da;
  --muted: #77766e;
  --line: rgba(24, 24, 21, 0.18);
  --accent: #181815;
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shell: min(100% - 48px, 1440px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.menu-open, body.lightbox-open, body.dialog-open { overflow: hidden; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }
::selection { color: var(--paper); background: var(--accent); }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.section-shell { width: var(--shell); margin-inline: auto; }
.eyebrow, .section-index {
  margin: 0;
  font-size: 0.71rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}
.eyebrow { color: rgba(255,255,255,.7); }
.eyebrow--dark { color: var(--muted); }
.section-index { color: var(--muted); }
em { color: var(--accent); font-family: var(--serif); font-weight: 400; }
.hero h1 em, .story h2 em { color: #fff; }

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 88px;
  padding: 0 max(24px, calc((100vw - 1440px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.2);
  transition: color .35s, background .35s, border-color .35s, height .35s;
}
.site-header.is-scrolled {
  height: 68px;
  color: var(--ink);
  background: rgba(242,240,233,.94);
  border-color: var(--line);
  backdrop-filter: blur(14px);
}
.site-header--solid { height: 68px; color: var(--ink); background: rgba(242,240,233,.97); border-color: var(--line); }
.brand { display: inline-flex; align-items: baseline; gap: 7px; color: inherit; text-decoration: none; }
.brand__name { font-size: 1.05rem; font-weight: 800; letter-spacing: .18em; }
.brand__kind { font-size: .53rem; font-weight: 600; letter-spacing: .31em; opacity: .68; }
.site-nav { display: flex; align-items: center; gap: clamp(24px, 4vw, 64px); }
.site-nav a {
  position: relative;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-decoration: none;
  text-transform: uppercase;
}
.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s;
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; }

.hero {
  position: relative;
  height: max(680px, 100svh);
  min-height: 620px;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
}
.hero__image, .hero__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__image { animation: hero-in 1.5s cubic-bezier(.2,.7,.2,1) both; user-select: none; }
.hero__fallback { background: linear-gradient(135deg, #4a493e, #181815); }
.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9,10,8,.64) 0%, rgba(9,10,8,.25) 55%, rgba(9,10,8,.05) 100%),
              linear-gradient(0deg, rgba(9,10,8,.32), transparent 45%);
}
.hero__content {
  position: relative;
  z-index: 1;
  width: var(--shell);
  height: 100%;
  margin-inline: auto;
  padding-top: clamp(150px, 22vh, 240px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero h1 {
  max-width: 950px;
  margin: 22px 0 24px;
  font-size: clamp(4.2rem, 9.6vw, 9.4rem);
  font-weight: 280;
  letter-spacing: -.065em;
  line-height: .79;
}
.hero h1 em { font-size: 1.05em; }
.hero__lead { max-width: 440px; margin: 0; font-size: clamp(1rem, 1.5vw, 1.25rem); color: rgba(255,255,255,.75); }
.circle-link {
  position: absolute;
  right: 0;
  bottom: 54px;
  width: 124px;
  height: 124px;
  padding: 0 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 50%;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .3s, background .3s, transform .3s;
}
.circle-link:hover { color: var(--ink); background: #fff; transform: rotate(-5deg); }
.hero__credit {
  position: absolute;
  z-index: 1;
  bottom: 30px;
  left: max(24px, calc((100vw - 1440px) / 2));
  margin: 0;
  font-size: .58rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .6;
}
.hero::after {
  content: "© ZYKANPHOTO.CZ";
  position: absolute;
  z-index: 1;
  right: max(24px, calc((100vw - 1440px) / 2));
  bottom: 24px;
  color: rgba(255,255,255,.6);
  font-size: .58rem;
  letter-spacing: .13em;
  display: none;
}

.intro { padding-block: clamp(90px, 12vw, 180px); display: grid; grid-template-columns: 1fr 3fr; }
.intro__copy { max-width: 1000px; }
.intro__copy p { margin: 0; font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 5rem); letter-spacing: -.045em; line-height: 1.05; }
.intro__copy .intro__muted { color: #a09e95; }

.portfolio { padding-bottom: clamp(100px, 12vw, 180px); }
.portfolio__heading { padding-bottom: 44px; display: flex; align-items: flex-end; justify-content: space-between; border-bottom: 1px solid var(--line); }
.portfolio h2, .story h2, .contact h2 { margin: 8px 0 0; font-size: clamp(3.4rem, 7vw, 7.2rem); font-weight: 300; letter-spacing: -.065em; line-height: .9; }
.portfolio__count { margin: 0; color: var(--muted); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.filters { padding: 30px 0 44px; display: flex; gap: 16px 34px; flex-wrap: wrap; }
.filter {
  padding: 0 0 5px;
  color: var(--muted);
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.filter sup { margin-left: 3px; font-size: .58rem; }
.filter:hover, .filter.is-active { color: var(--ink); border-bottom-color: var(--ink); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 2.3vw, 36px);
  align-items: start;
}
.gallery-card { grid-column: span 4; margin: 0; }
.gallery-card:nth-child(6n + 1), .gallery-card:nth-child(6n + 4) { grid-column: span 7; }
.gallery-card:nth-child(6n + 2), .gallery-card:nth-child(6n + 3) { grid-column: span 5; }
.gallery-card:nth-child(6n + 1) img, .gallery-card:nth-child(6n + 4) img { aspect-ratio: 1.44 / 1; }
.gallery-card:nth-child(6n + 2) img, .gallery-card:nth-child(6n + 3) img { aspect-ratio: 1 / 1.15; }
.gallery-card:nth-child(6n + 3) { margin-top: 10vw; }
.gallery-card:nth-child(6n + 5), .gallery-card:nth-child(6n + 6) { margin-top: 3vw; }
.gallery-open { width: 100%; padding: 0; color: inherit; background: none; border: 0; cursor: zoom-in; text-align: left; }
.gallery-open > img { width: 100%; aspect-ratio: 1 / 1.1; object-fit: cover; background: var(--paper-warm); user-select: none; transition: filter .45s, transform .7s cubic-bezier(.2,.7,.2,1); }
.gallery-open:hover > img { filter: brightness(.88); }
.gallery-card__meta { padding: 13px 2px 0; display: flex; justify-content: space-between; color: var(--muted); font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; }
.photo-interest {
  margin: 11px 2px 0;
  padding: 0 0 3px;
  color: var(--ink);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  font-family: var(--serif);
  font-size: .86rem;
  text-align: left;
}
.photo-interest:hover, .photo-interest:focus-visible { border-color: var(--ink); }
.gallery-page-link { margin: 48px 0 0; text-align: right; }
.gallery-page-link .text-button { display: inline-block; text-decoration: none; }
.gallery-grid--squares { gap: 42px 18px; }
.gallery-grid--squares .gallery-card,
.gallery-grid--squares .gallery-card:nth-child(n) { grid-column: span 3; margin: 0; }
.gallery-grid--squares .gallery-card:nth-child(n) img { aspect-ratio: 1 / 1; }
.load-more-wrap { padding-top: 80px; text-align: center; }
.text-button { padding: 12px 0; color: var(--ink); background: none; border: 0; border-bottom: 1px solid var(--ink); cursor: pointer; font-size: .73rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.text-button span { margin-left: 18px; }
.text-button:disabled { cursor: wait; opacity: .45; }
.text-button[hidden] { display: none; }
.noscript { text-align: center; color: var(--muted); }

.story { color: var(--paper); background: var(--ink); }
.story__aside { padding-top: 74px; }
.story .section-index { color: #838279; }
.story__content { padding-block: clamp(70px, 10vw, 150px) clamp(100px, 13vw, 190px); }
.story h2 { max-width: 1050px; margin-top: 22px; font-family: var(--serif); font-size: clamp(3.3rem, 7.5vw, 7.6rem); letter-spacing: -.055em; }
.story__text { max-width: 820px; margin: clamp(60px, 8vw, 120px) 0 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; color: #aaa99f; }
.story__text p { margin: 0; }
.story__facts { margin: clamp(70px, 9vw, 130px) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.16); }
.story__facts div { padding: 28px 20px 0 0; }
.story__facts dt { margin-bottom: 8px; color: #74736b; font-size: .65rem; letter-spacing: .13em; text-transform: uppercase; }
.story__facts dd { margin: 0; font-family: var(--serif); font-size: 1.35rem; }

.contact { padding-block: clamp(100px, 13vw, 180px); display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(60px, 10vw, 160px); }
.contact__intro .eyebrow { margin-top: clamp(70px, 9vw, 120px); }
.contact h2 { max-width: 800px; margin-top: 20px; font-family: var(--serif); }
.contact__email { display: inline-block; margin-top: 50px; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.35rem); text-decoration-thickness: 1px; text-underline-offset: 7px; }
.contact-form { padding-top: 55px; }
.contact-form > label:not(.consent) { position: relative; padding: 22px 0 7px; display: block; color: var(--muted); border-bottom: 1px solid var(--line); font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.contact-form input:not([type="checkbox"]), .contact-form textarea { width: 100%; padding: 10px 0 6px; color: var(--ink); background: transparent; border: 0; border-radius: 0; outline: 0; font-family: var(--serif); font-size: 1.25rem; resize: vertical; }
.contact-form > label:focus-within { border-color: var(--ink); }
.consent { margin-top: 25px; display: flex; align-items: flex-start; gap: 12px; color: var(--muted); font-size: .7rem; line-height: 1.45; }
.consent input { margin-top: 3px; accent-color: var(--accent); }
.submit-button { width: 100%; margin-top: 35px; padding: 20px 22px; display: flex; justify-content: space-between; color: var(--paper); background: var(--ink); border: 1px solid var(--ink); cursor: pointer; font-size: .72rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; transition: color .25s, background .25s; }
.submit-button:hover { color: var(--ink); background: transparent; }
.submit-button:disabled { cursor: wait; opacity: .55; }
.form-status { min-height: 1.5em; margin: 15px 0 0; color: var(--muted); font-size: .78rem; }
.honey { position: absolute; left: -9999px; }

.site-footer { padding-block: 48px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; color: #828178; border-top: 1px solid var(--line); font-size: .67rem; letter-spacing: .08em; text-transform: uppercase; }
.site-footer p { margin: 0; text-align: center; }
.site-footer p:last-child { text-align: right; }
.brand--footer { color: var(--ink); }

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 42px 80px;
  color: #fff;
  background: rgba(10,10,9,.97);
  border: 0;
  overflow: hidden;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(10,10,9,.96); }
.lightbox figure { height: 100%; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox img { max-width: min(82vw, 1600px); max-height: calc(100dvh - 115px); object-fit: contain; user-select: none; transition: opacity .18s ease, filter .18s ease; }
.lightbox img.is-preview { opacity: .82; filter: blur(1.5px); }
.lightbox figcaption { margin-top: 12px; color: #9b9a91; font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; }
.lightbox button { position: fixed; z-index: 2; color: #fff; background: none; border: 0; cursor: pointer; }
.lightbox__close { top: 22px; right: 30px; font-size: 2rem; font-weight: 200; }
.lightbox__nav { top: 50%; padding: 20px; font-size: 1.5rem; }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
.lightbox .lightbox__interest {
  right: 50%;
  bottom: 18px;
  padding: 8px 0 5px;
  border-bottom: 1px solid rgba(255,255,255,.45);
  font-family: var(--serif);
  font-size: .9rem;
  transform: translateX(50%);
}

.inquiry-dialog {
  width: min(100% - 32px, 680px);
  max-height: calc(100dvh - 32px);
  padding: clamp(28px, 5vw, 58px);
  color: var(--ink);
  background: var(--paper);
  border: 0;
  overflow: auto;
}
.inquiry-dialog::backdrop { background: rgba(10,10,9,.78); backdrop-filter: blur(5px); }
.inquiry-dialog__close { position: absolute; top: 12px; right: 18px; padding: 5px; color: var(--ink); background: none; border: 0; cursor: pointer; font-size: 1.8rem; font-weight: 200; }
.inquiry-dialog h2 { margin: 12px 0 0; font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 400; letter-spacing: -.04em; line-height: .98; }
.inquiry-dialog__photo { margin: 20px 0 0; color: var(--muted); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.contact-form--inquiry { padding-top: 18px; }

.gallery-page__main { padding-top: 68px; padding-bottom: clamp(100px, 11vw, 170px); }
.gallery-page__hero { padding: clamp(90px, 13vw, 180px) 0 clamp(60px, 8vw, 105px); border-bottom: 1px solid var(--line); }
.gallery-page__hero h1 { margin: 14px 0 22px; font-family: var(--serif); font-size: clamp(4rem, 10vw, 9rem); font-weight: 400; letter-spacing: -.065em; line-height: .85; }
.gallery-page__hero > p:last-child { max-width: 610px; margin: 0; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.25rem); }
.gallery-tools { padding: 30px 0 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.gallery-tools .filters { padding: 0; }
.gallery-sort { display: flex; align-items: center; gap: 13px; color: var(--muted); font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.gallery-sort select { padding: 8px 28px 8px 8px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; cursor: pointer; }
.gallery-page .portfolio__count { margin: 0 0 28px; text-align: right; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes hero-in { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 900px) {
  :root { --shell: min(100% - 32px, 1440px); }
  .site-header { height: 72px; padding-inline: 16px; }
  .menu-toggle { width: 42px; height: 42px; padding: 11px 7px; display: flex; flex-direction: column; justify-content: center; gap: 6px; color: inherit; background: none; border: 0; }
  .menu-toggle span:not(.sr-only) { width: 100%; height: 1px; background: currentColor; transition: transform .25s; }
  .menu-toggle[aria-expanded="true"] span:nth-last-child(2) { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .site-nav { position: fixed; inset: 0; z-index: -1; padding: 120px 24px 50px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 22px; color: var(--paper); background: var(--ink); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
  .site-nav.is-open { opacity: 1; visibility: visible; }
  .site-nav a { font-family: var(--serif); font-size: clamp(2.7rem, 12vw, 5rem); font-weight: 400; letter-spacing: -.03em; text-transform: none; }
  .site-header.is-scrolled:has(.site-nav.is-open) { color: #fff; background: transparent; border-color: transparent; }
  .hero__veil { background: linear-gradient(90deg, rgba(9,10,8,.62), rgba(9,10,8,.12)), linear-gradient(0deg, rgba(9,10,8,.46), transparent 60%); }
  .intro { grid-template-columns: 1fr; gap: 50px; }
  .gallery-card, .gallery-card:nth-child(n) { grid-column: span 6; margin-top: 0; }
  .gallery-card:nth-child(n) img { aspect-ratio: 1 / 1.08; }
  .gallery-card:nth-child(4n + 1) { grid-column: span 12; }
  .gallery-card:nth-child(4n + 1) img { aspect-ratio: 1.35 / 1; }
  .gallery-grid--squares .gallery-card,
  .gallery-grid--squares .gallery-card:nth-child(n) { grid-column: span 4; }
  .gallery-grid--squares .gallery-card:nth-child(n) img { aspect-ratio: 1 / 1; }
  .gallery-tools { flex-direction: column; }
  .contact { grid-template-columns: 1fr; }
  .contact-form { padding-top: 0; }
}

@media (max-width: 620px) {
  html { scroll-padding-top: 68px; }
  .hero { height: 100svh; min-height: 600px; }
  .hero__content { padding-top: 145px; }
  .hero h1 { font-size: clamp(3.7rem, 19vw, 6rem); line-height: .84; }
  .hero__lead { max-width: 290px; font-size: .92rem; }
  .circle-link { right: 0; bottom: 42px; width: 96px; height: 96px; padding-inline: 16px; font-size: .58rem; }
  .hero__credit { display: none; }
  .hero::after { right: 16px; bottom: 16px; display: block; font-size: .5rem; }
  .intro { padding-block: 85px 100px; gap: 35px; }
  .intro__copy p { font-size: 2.55rem; }
  .portfolio__heading { align-items: flex-start; flex-direction: column; gap: 24px; }
  .portfolio h2, .contact h2 { font-size: 3.85rem; }
  .filters { gap: 13px 24px; overflow-x: auto; flex-wrap: nowrap; }
  .filter { flex: 0 0 auto; }
  .gallery-grid { gap: 28px 12px; }
  .gallery-card, .gallery-card:nth-child(n) { grid-column: span 6; }
  .gallery-card:nth-child(5n + 1) { grid-column: span 12; }
  .gallery-card:nth-child(n) img { aspect-ratio: .82 / 1; }
  .gallery-card:nth-child(5n + 1) img { aspect-ratio: 1.3 / 1; }
  .gallery-grid--squares { gap: 30px 12px; }
  .gallery-grid--squares .gallery-card,
  .gallery-grid--squares .gallery-card:nth-child(n) { grid-column: span 6; }
  .gallery-grid--squares .gallery-card:nth-child(n) img { aspect-ratio: 1 / 1; }
  .gallery-card__meta { font-size: .55rem; }
  .photo-interest { font-size: .73rem; line-height: 1.35; }
  .story__aside { padding-top: 50px; }
  .story__content { padding-top: 65px; }
  .story h2 { font-size: 3.6rem; }
  .story__text { grid-template-columns: 1fr; gap: 25px; }
  .story__facts { grid-template-columns: 1fr; }
  .story__facts div { padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .contact__intro .eyebrow { margin-top: 60px; }
  .site-footer { grid-template-columns: 1fr 1fr; gap: 24px; }
  .site-footer p:nth-child(2) { display: none; }
  .site-footer p:last-child { text-align: right; }
  .lightbox { padding: 50px 15px; }
  .lightbox img { max-width: 100%; max-height: calc(100dvh - 160px); }
  .lightbox__nav { top: auto; bottom: 8px; }
  .lightbox .lightbox__interest { bottom: 18px; width: calc(100% - 150px); font-size: .76rem; }
  .lightbox__nav--prev { left: 0; }
  .lightbox__nav--next { right: 0; }
  .gallery-page__hero { padding-top: 85px; }
  .gallery-page__hero h1 { font-size: 4.3rem; }
  .gallery-sort { width: 100%; justify-content: space-between; }
}

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