/* ==========================================================================
   Tokeny (CLAUDE.md)
   ========================================================================== */
:root {
  color-scheme: dark;
  --bg-dark: #141315;
  --bg-light: #ECE8E1;
  --text-on-dark: #E8E3DA;
  --text-on-light: #1F1E1F;
  --surface: #201F20;
  --accent: #B3A69D;

  --font: "Archivo", sans-serif;
  --font-display: "Bodoni Moda", "Times New Roman", serif;
  --fs-display: clamp(56px, 9vw, 120px);
  --fs-body: clamp(17px, 0.9rem + 0.25vw, 19px);
  --fs-small: 14px;

  --gutter: clamp(20px, 5vw, 64px);
  --nav-h: 64px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-reveal: 1100ms;
  --stagger: 120ms;
}

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  min-height: 100svh;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  font-family: var(--font);
  font-stretch: 115%;            /* Archivo w szerokiej odmianie */
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

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

/* :where() zeruje specyficzność, żeby klasy komponentów (np. .mosaic) mogły nadać własne odstępy */
:where(ul, ol)[role="list"] { list-style: none; padding: 0; }

h1, h2, h3 { font-weight: 400; line-height: 1; text-wrap: balance; }

/* Nagłówki: szeroki, kontrastowy szeryf (Didot/Bodoni) – chłodny, gotycki, modowy ton */
.hero__title,
.section__title,
.more__title,
.contact__link,
.nav__name {
  font-family: var(--font-display);
  font-weight: 400;
}

/* Bodoni zawsze w „plakatowej” odmianie optycznej (jak w dużych nagłówkach).
   Bez tego przy małych rozmiarach krój sam grubieje i wygląda jak Times. */
.hero__title, .section__title, .more__title, .contact__link,
.nav__name, .cue, .section__eyebrow, .triptych__caption, .press__name,
.about__text, .recognition dt, .contact__label, .contact__platform,
.credits__look, .credits__list dt {
  font-variation-settings: "opsz" 96;
}


p { max-width: 60ch; text-wrap: pretty; }

/* Zdjęć nie da się przeciągnąć na pulpit (dyskretna ochrona, bez blokowania menu) */
main img { -webkit-user-drag: none; user-select: none; }

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

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

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--text-on-dark);
  color: var(--bg-dark);
  font-size: var(--fs-small);
  border-radius: 999px;
  transform: translateY(-200%);
}
.skip-link:focus-visible { transform: none; }

/* ==========================================================================
   Nawigacja – przezroczysta nad hero, matowa nad treścią
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  color: var(--text-on-dark);
  transition: background-color 400ms ease, color 400ms ease, box-shadow 400ms ease;
}

.nav.is-solid {
  background: color-mix(in srgb, var(--bg-dark) 72%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgb(232 227 218 / 0.06);
}

.nav.is-solid[data-tone="light"] {
  background: color-mix(in srgb, var(--bg-light) 72%, transparent);
  color: var(--text-on-light);
  box-shadow: 0 1px 0 rgb(31 30 31 / 0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
  padding-inline: var(--gutter);
}

.nav__name {
  font-size: 21px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav__links {
  display: flex;
  gap: clamp(14px, 3vw, 36px);
  font-size: 13px;
}

.nav__links a {
  display: inline-block;
  padding-block: 12px;           /* cel dotyku ≥ 44px */
  opacity: 0.78;
  white-space: nowrap;
  transition: opacity 200ms ease;
}
.nav__links a:hover,
.nav__links a[aria-current="true"] { opacity: 1; }
.nav__links a[aria-current="true"] { color: var(--accent); }
.nav[data-tone="light"].is-solid .nav__links a[aria-current="true"] { color: var(--text-on-light); }

@media (max-width: 479px) {
  /* Na telefonie imię jest w hero; pasek oddaje miejsce pięciu linkom */
  .nav__name { display: none; }
  .nav__inner { justify-content: center; }
  .nav__links { gap: 12px; font-size: 13px; }
}

@media (min-width: 768px) {
  .nav__name { font-size: 21px; }
  .nav__links { font-size: 14px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 48px) var(--gutter) clamp(96px, 14vh, 160px);
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-dark);
}

.hero__media,
.hero__shade { position: absolute; inset: 0; z-index: -1; }

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 45%;
  animation: hero-settle 2400ms var(--ease-out) both;
}

/* Winieta + przyciemnienie pod tekstem + delikatne ziarno */
.hero__shade {
  background:
    linear-gradient(to top, rgb(20 19 21 / 0.72) 0%, rgb(20 19 21 / 0.2) 40%, transparent 65%),
    radial-gradient(120% 90% at 55% 40%, transparent 50%, rgb(20 19 21 / 0.55) 100%);
}
.hero__shade::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Całe zdjęcie jest przyciskiem rozwijającym serię; tekst nad nim nie łapie kliknięć */
.hero__open {
  position: absolute;
  inset: 0;
  z-index: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-on-dark);
  cursor: pointer;
}
.hero__open:focus-visible { outline-offset: -8px; }
.hero__media img { transition: filter 600ms var(--ease-out); }
.hero:has(.hero__open:hover) .hero__media img { filter: brightness(1.08); }
/* Podpowiedź „rozwiń” – wspólna dla hero i lasu */
.cue {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(32px, 4.5vh, 48px);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0;
  opacity: 0.78;
  transition: opacity 200ms ease;
}
[data-expand]:hover .cue,
[data-expand]:focus-visible .cue { opacity: 1; }
.cue__plus {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  transition: transform 500ms var(--ease-out);
}
[data-expand][aria-expanded="true"] .cue__plus { transform: rotate(45deg); }
/* Podpowiedź, że zdjęcie się rozwija: trzy delikatne fale wokół plusa, gdy kadr pierwszy raz pojawi się na ekranie */
[data-expand].is-hinting[aria-expanded="false"] .cue__plus { animation: cue-pulse 1800ms var(--ease-out) 600ms 3; }
@keyframes cue-pulse {
  from { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 50%, transparent); }
  to   { box-shadow: 0 0 0 14px transparent; }
}

.hero__content { position: relative; z-index: 1; max-width: 1200px; pointer-events: none; }
.hero__scroll { z-index: 2; }

.hero__title {
  font-size: calc(var(--fs-display) * 1.15);
  letter-spacing: -0.015em;
  line-height: 0.88;
}
.hero__title > .reveal { display: block; }
.hero__tagline {
  margin-top: clamp(16px, 2.4vw, 28px);
  font-size: clamp(16px, 1rem + 0.35vw, 21px);
  color: color-mix(in srgb, currentColor 82%, transparent);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 4vh, 40px);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-left: -24px;
  border-radius: 50%;
  color: var(--text-on-dark);
  opacity: 0.7;
  transition: opacity 200ms ease;
}
.hero__scroll:hover { opacity: 1; }
.hero__scroll svg { animation: nudge 2.6s ease-in-out 2.4s infinite; }
.hero.is-offscreen .hero__scroll svg { animation-play-state: paused; }

/* ==========================================================================
   Wejście strony – staggered reveal
   Każdy .reveal maskuje wewnętrzny <span>, który wysuwa się od dołu.
   ========================================================================== */
.reveal {
  display: block;
  overflow: clip;
  overflow-clip-margin: 0.15em;
  padding-bottom: 0.06em;        /* miejsce na descendery w masce */
}
.reveal > span {
  display: block;
  animation: rise var(--dur-reveal) var(--ease-out) both;
  animation-delay: calc(300ms + var(--i, 0) * var(--stagger));
}
.hero__scroll.reveal {
  overflow: visible;
  padding: 0;
  animation: fade 900ms ease both;
  animation-delay: calc(300ms + var(--i, 0) * var(--stagger) + 400ms);
}

@keyframes rise {
  from { transform: translateY(105%); opacity: 0; }
  60%  { opacity: 1; }
  to   { transform: none; opacity: 1; }
}
@keyframes fade {
  from { opacity: 0; }
}
@keyframes hero-settle {
  from { transform: scale(1.05); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ==========================================================================
   Panel „więcej” – kadry rozwijane kliknięciem w duże zdjęcie (hero, las).
   Bez JS panel jest po prostu otwarty.
   ========================================================================== */
.more {
  display: grid;
  grid-template-rows: 1fr;
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
.more__inner { min-height: 0; overflow: hidden; }
.more__body { padding: clamp(64px, 9vw, 120px) var(--gutter) clamp(72px, 10vw, 160px); }
.more__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 14%, 140px);
  width: min(100%, 960px);
  margin-inline: auto;
}
.more__grid {
  display: grid;
  gap: clamp(24px, 6vw, 48px);
  width: min(100%, 1120px);
  margin-inline: auto;
}
.more__title {
  margin-top: clamp(56px, 8vw, 120px);
  font-size: clamp(28px, 3vw, 40px);
  text-align: center;
}
@media (min-width: 768px) {
  .more__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
  /* Nieparzysta liczba kadrów: pierwszy na całą szerokość, reszta parami */
  .more__grid > li:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
}

.js .more {
  grid-template-rows: 0fr;
  transition: grid-template-rows 1000ms var(--ease-out);
}
.js .more.is-open { grid-template-rows: 1fr; }
.js .more li,
.js .more__title {
  opacity: 0;
  transform: translateY(56px) scale(0.96);
  transition: opacity 900ms var(--ease-out), transform 1200ms var(--ease-out);
}
.js .more.is-open li,
.js .more.is-open .more__title { opacity: 1; transform: none; }
.js .more.is-open li:nth-child(1) { transition-delay: 200ms; }
.js .more.is-open li:nth-child(2) { transition-delay: 380ms; }
.js .more.is-open li:nth-child(3) { transition-delay: 560ms; }
.js .more.is-open li:nth-child(4) { transition-delay: 740ms; }
.js .more.is-open li:nth-child(5) { transition-delay: 920ms; }
.js .more.is-open .more__title { transition-delay: 600ms; }

/* ==========================================================================
   Sekcje – wspólny system
   ========================================================================== */
.section {
  min-height: 100svh;
  padding-block: clamp(96px, 14vw, 200px);
}
.section--dark  { background: var(--bg-dark);  color: var(--text-on-dark); }
.section--light { background: var(--bg-light); color: var(--text-on-light); }

.section__head {
  padding-inline: var(--gutter);
  margin-bottom: clamp(48px, 8vw, 112px);
}

/* Etykiety: lekki szeryf małymi literami zamiast pogrubionych wersalików */
.section__eyebrow {
  margin-bottom: clamp(16px, 2.5vw, 28px);
  font-size: clamp(18px, 1.6vw, 22px);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0;
  color: color-mix(in srgb, currentColor 72%, transparent);
}

/* Tytuł sekcji mniejszy niż imię w hero – pierwszy ekran sekcji należy do zdjęcia */
.section__title {
  font-size: clamp(44px, 5.4vw, 76px);
  letter-spacing: -0.015em;
  line-height: 0.9;
}

.section__lead {
  margin-top: clamp(20px, 3vw, 32px);
  max-width: 38ch;
  font-size: clamp(18px, 1rem + 0.5vw, 22px);
  line-height: 1.4;
  color: color-mix(in srgb, currentColor 72%, transparent);
}

/* Przyciski z ikoną – lightbox */
.icon-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: border-color 200ms ease, background-color 200ms ease, opacity 200ms ease;
}
.icon-btn:hover { border-color: currentColor; }
.icon-btn:disabled { opacity: 0.3; cursor: default; border-color: color-mix(in srgb, currentColor 28%, transparent); }

/* ==========================================================================
   Moda – układ statyczny: główny kadr, tryptyk, miniatury
   ========================================================================== */

/* 1. Główny kadr – największy w zakładce */
.moda__lead {
  width: min(calc(100% - 2 * var(--gutter)), 900px);
  margin-inline: auto;
}

/* 2. Tryptyk – trzy równe sylwetki w jednej linii; klik otwiera kadr z creditsami */
.triptych { padding: clamp(96px, 14vh, 180px) var(--gutter); }
.triptych__list {
  display: grid;
  gap: clamp(48px, 10vw, 72px);
}
/* Telefon: kadry jeden pod drugim, wyśrodkowane, równej szerokości */
.triptych__item { width: min(84%, 420px); justify-self: center; }
.triptych__item .frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
/* Podpis = sama cyfra rzymska, wyśrodkowana pod kadrem */
.triptych__caption {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1;
  text-align: center;
  color: color-mix(in srgb, currentColor 72%, transparent);
}

@media (min-width: 768px) {
  .triptych__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    column-gap: clamp(20px, 3vw, 48px);
    max-width: 1180px;
    margin-inline: auto;
  }
  .triptych__item { width: auto; justify-self: stretch; }
}

/* 3. Miniatury – pozostałe ujęcia z sesji, małe */
/* Siatka wyśrodkowana; etykieta trzyma lewą krawędź siatki */
.minis {
  width: min(calc(100% - 2 * var(--gutter)), 1100px);
  margin-inline: auto;
}
.minis__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
}
.mini { aspect-ratio: 4 / 5; overflow: clip; }
.mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Trzy kadry: zawsze jeden rząd */
.minis__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* 4. Publikacje – ta sama sesja w druku. Rozkładówka 2:1 ze stroną → równe wysokości */
.press {
  width: min(calc(100% - 2 * var(--gutter)), 1100px);
  margin: clamp(96px, 14vh, 180px) auto 0;
}
.press__list { display: grid; gap: clamp(40px, 8vw, 56px); }
.press__item--page { width: 64%; }
.press__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-top: 14px;
}
.press__name { font-family: var(--font-display); font-size: clamp(19px, 1.6vw, 22px); }
.press__issue {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, currentColor 66%, transparent);
}
@media (min-width: 768px) {
  .press__list { grid-template-columns: 2fr 1fr; align-items: end; column-gap: clamp(20px, 3vw, 48px); }
  .press__item--page { width: auto; }
}

/* ==========================================================================
   Personal Projects – nagłówek i blok „the frozen forest”
   ========================================================================== */

/* ==========================================================================
   Keepsake – analogowe kadry jak luźno rozłożone odbitki, pod każdym drobny podpis
   ========================================================================== */
.keepsake__grid {
  display: grid;
  gap: clamp(48px, 10vw, 72px);
  padding-inline: var(--gutter);
}
.keepsake__item:nth-child(odd)  { width: 92%; }
.keepsake__item:nth-child(even) { width: 84%; justify-self: end; }
@media (min-width: 768px) {
  .keepsake__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(16px, 3vw, 48px);
    row-gap: clamp(64px, 10vw, 160px);
    align-items: start;
    max-width: 1400px;
    margin-inline: auto;
  }
  .keepsake__item:nth-child(n) { width: auto; justify-self: stretch; }
  .keepsake__item:nth-child(1) { grid-column: 1 / span 5; }
  .keepsake__item:nth-child(2) { grid-column: 7 / span 6; margin-top: clamp(80px, 16vw, 260px); }
  .keepsake__item:nth-child(3) { grid-column: 2 / span 6; }
  .keepsake__item:nth-child(4) { grid-column: 8 / span 5; margin-top: clamp(64px, 12vw, 200px); }
}

/* Przyciski powiększenia – bez wyglądu przycisku.
   :where() = zerowa specyficzność, więc układ komponentów (position, display, width) zawsze wygrywa. */
:where(.mosaic__open, .frame, .mini) {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--surface);
  cursor: zoom-in;
}
.mosaic__open img,
.frame img { width: 100%; height: auto; }
.mosaic__item { overflow: clip; }

/* ==========================================================================
   Koncept – asymetryczna siatka (układ powtarza się co 8 zdjęć)
   ========================================================================== */
.mosaic {
  display: grid;
  gap: clamp(40px, 10vw, 72px);
  padding-inline: var(--gutter);
}
.mosaic__item:nth-child(odd)  { width: 88%; }
.mosaic__item:nth-child(even) { width: 88%; justify-self: end; }

@media (min-width: 768px) {
  .mosaic {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(16px, 3vw, 48px);
    row-gap: clamp(64px, 10vw, 160px);
    align-items: start;
  }
  .mosaic__item:nth-child(n) { width: auto; justify-self: stretch; }
  .mosaic__item:nth-child(8n+1) { grid-column: 1 / span 5; }
  .mosaic__item:nth-child(8n+2) { grid-column: 7 / span 6; margin-top: clamp(80px, 14vw, 240px); }
  .mosaic__item:nth-child(8n+3) { grid-column: 2 / span 7; }
  .mosaic__item:nth-child(8n+4) { grid-column: 9 / span 4; margin-top: clamp(64px, 10vw, 180px); }
  .mosaic__item:nth-child(8n+5) { grid-column: 1 / span 4; }
  .mosaic__item:nth-child(8n+6) { grid-column: 6 / span 7; margin-top: clamp(64px, 12vw, 200px); }
  .mosaic__item:nth-child(8n+7) { grid-column: 2 / span 4; }
  .mosaic__item:nth-child(8n+8) { grid-column: 7 / span 6; margin-top: clamp(80px, 14vw, 240px); }
}

/* ==========================================================================
   The frozen forest – jeden kadr na cały ekran; klik rozwija pod nim kolejne ujęcia
   ========================================================================== */
.forest {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
.forest__label { padding-inline: var(--gutter); }
/* Kadr w całości (bez przycinania), wyrównany do tej samej lewej krawędzi co etykieta */
.forest__lead { margin-top: clamp(20px, 3vw, 32px); padding-inline: var(--gutter); }
.forest__open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  cursor: pointer;
}
.forest__open img {
  width: 100%;
  height: auto;
  transition: filter 600ms var(--ease-out);
}
.forest__open:hover img { filter: brightness(1.08); }
.forest__open:focus-visible { outline-offset: -8px; }

/* ==========================================================================
   Kontakt – sama typografia
   ========================================================================== */
.contact {
  min-height: 80svh;
  display: grid;
  align-content: center;
  padding-inline: var(--gutter);
}

/* About: kilka zdań o autorze nad kontaktem */
.about {
  max-width: 40ch;
  margin-bottom: clamp(72px, 12vw, 160px);
}
.about__text {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.35;
}

/* Wyróżnienia i publikacje: rok w kolumnie, opis obok */
.recognition {
  display: grid;
  gap: 10px;
  margin-top: clamp(28px, 4vw, 40px);
  font-size: 15px;
  line-height: 1.5;
}
.recognition div { display: grid; grid-template-columns: 4.5ch 1fr; gap: 16px; }
.recognition dt {
  font-family: var(--font-display);
  color: color-mix(in srgb, currentColor 80%, transparent);
}

.contact__label {
  margin-bottom: 12px;
  font-size: clamp(18px, 1.6vw, 22px);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0;
  color: color-mix(in srgb, currentColor 72%, transparent);
}

.contact__intro {
  margin-bottom: clamp(32px, 5vw, 56px);
  color: color-mix(in srgb, currentColor 82%, transparent);
}

/* Mail jako główne wezwanie; pod nim mniejsze linki, każdy z nazwą serwisu nad sobą */
.contact__list { display: grid; gap: clamp(28px, 5vw, 40px); }
.contact__platform {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, currentColor 80%, transparent);
}
@media (min-width: 768px) {
  .contact__list { grid-template-columns: repeat(3, max-content); column-gap: clamp(48px, 8vw, 120px); }
  .contact__mail { grid-column: 1 / -1; }
}

/* „@” w Bodoni przy cienkich kreskach czyta się jak „a” – znak bierzemy z Archivo */
.at {
  font-family: var(--font);
  font-stretch: 100%;
  font-weight: 400;
  font-size: 0.78em;
  font-variation-settings: normal;
  margin-inline: 0.04em;
}

.contact__link {
  display: inline;
  font-size: clamp(30px, 4.4vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;        /* długi adres nie rozpycha strony na telefonie */
  background: linear-gradient(var(--accent), var(--accent)) left 100% / 0 2px no-repeat;
  transition: background-size 500ms var(--ease-out), color 300ms ease;
}
.contact__link--small { font-size: clamp(22px, 2.4vw, 32px); }
.contact__link:hover,
.contact__link:focus-visible { color: var(--accent); background-size: 100% 2px; }

.contact__arrow {
  display: inline-block;
  margin-left: 0.15em;
  font-weight: 400;
  transition: transform 300ms var(--ease-out);
}
.contact__link:hover .contact__arrow { transform: translate(0.08em, -0.08em); }
.contact__mail .contact__link:hover .contact__arrow { transform: translateX(0.12em); }

/* ==========================================================================
   Stopka
   ========================================================================== */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 28px var(--gutter) 32px;
  border-top: 1px solid var(--surface);
  font-size: var(--fs-small);
  color: color-mix(in srgb, var(--text-on-dark) 64%, transparent);
}
.footer a { padding-block: 12px; margin-block: -12px; }
.footer a:hover { color: var(--text-on-dark); }

/* ==========================================================================
   Lightbox
   ========================================================================== */
html:has(.lightbox[open]) { overflow: hidden; }

.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  padding: 0;
  border: 0;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  opacity: 0;
  transition: opacity 300ms ease, overlay 300ms allow-discrete, display 300ms allow-discrete;
}
.lightbox[open] { opacity: 1; }
@starting-style { .lightbox[open] { opacity: 0; } }
.lightbox::backdrop { background: var(--bg-dark); }

.lightbox__figure {
  position: absolute;
  inset: 72px 0 96px;
  display: flex;                 /* flex (nie grid), by max-height: 100% liczył się od figure */
  align-items: center;
  justify-content: center;
  touch-action: pan-y pinch-zoom;
}

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity 250ms ease;
}
.lightbox__img.is-loading { opacity: 0; }

.lightbox__count {
  position: absolute;
  top: 28px;
  left: var(--gutter);
  font-size: var(--fs-small);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, currentColor 72%, transparent);
}

.lightbox__close { position: absolute; top: 12px; right: var(--gutter); }

.lightbox__prev,
.lightbox__next { position: absolute; bottom: 24px; }
.lightbox__prev { right: calc(var(--gutter) + 60px); }
.lightbox__next { right: var(--gutter); }

/* Widok z creditsami: telefon – zdjęcie u góry, opis pod nim; desktop – opis w prawej kolumnie */
.lightbox.has-credits { --credits-w: min(32vw, 400px); }
.lightbox.has-credits .lightbox__figure { inset: 72px var(--gutter) auto; height: 56svh; }
.lightbox__credits {
  position: absolute;
  top: calc(72px + 56svh + 28px);
  left: var(--gutter);
  right: var(--gutter);
  bottom: 88px;
  overflow-y: auto;
}
.credits__look {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
}
.credits__list {
  display: grid;
  gap: 14px;
  margin-top: clamp(20px, 3vh, 36px);
}
.credits__list:first-child { margin-top: 0; }
.credits__list div { display: grid; gap: 2px; }
.credits__list dt {
  font-size: 15px;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0;
  color: color-mix(in srgb, currentColor 80%, transparent);
}
.credits__list dd { font-size: 17px; }

@media (min-width: 768px) {
  .lightbox__figure { inset: 80px 112px; }
  .lightbox__prev,
  .lightbox__next { top: 50%; bottom: auto; margin-top: -24px; }
  .lightbox__prev { left: var(--gutter); right: auto; }

  .lightbox.has-credits .lightbox__figure {
    inset: 80px calc(var(--credits-w) + 2 * var(--gutter)) 80px var(--gutter);
    height: auto;
  }
  .lightbox__credits {
    top: 50%;
    bottom: auto;
    left: auto;
    width: var(--credits-w);
    max-height: calc(100% - 240px);
    transform: translateY(-50%);
  }
  .lightbox.has-credits .lightbox__prev,
  .lightbox.has-credits .lightbox__next { top: auto; bottom: 32px; margin-top: 0; }
  .lightbox.has-credits .lightbox__prev { left: auto; right: calc(var(--gutter) + 60px); }
}

/* ==========================================================================
   Odsłanianie przy przewijaniu (tylko z JS – bez JS treść jest widoczna)
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 900ms var(--ease-out),
    transform 1100ms var(--ease-out);
  transition-delay: calc(var(--d, 0) * var(--stagger));
}
.js [data-reveal="zoom"] { transform: none; }
.js [data-reveal="zoom"] img {
  transform: scale(1.05);
  transition: transform 1600ms var(--ease-out);
}

.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="zoom"].is-in img { transform: scale(1); }

/* ==========================================================================
   Ograniczony ruch – wersja statyczna
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal],
  .js [data-reveal] img { opacity: 1; transform: none; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
