/* =============================================================
   mikołaj.photo — czarno-białe portfolio fotograficzne
   Styl: "złote a skromne" — mono + cienki akcent szampańskiego złota
   ============================================================= */

:root{
  --bg:        #0a0a0b;
  --bg-alt:    #121214;
  --fg:        #f3f1ec;
  --fg-dim:    #a8a6a1;
  --line:      rgba(243,241,236,0.10);
  --gold:      #c7a769;
  --gold-soft: rgba(199,167,105,0.35);
  --shadow:    0 30px 80px rgba(0,0,0,0.55);
  --ease:      cubic-bezier(.22,.61,.36,1);
  --serif:     'Cormorant Garamond', Georgia, serif;
  --sans:      'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--fg);
  font-family:var(--sans);
  font-weight:300;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ display:block; max-width:100%; filter:grayscale(1) contrast(1.04); }
a{ color:inherit; text-decoration:none; }
h1,h2,h3{ font-family:var(--serif); font-weight:500; margin:0; letter-spacing:.01em; }
p{ margin:0; }
::selection{ background:var(--gold); color:#000; }

.eyebrow{
  display:block; font-size:.72rem; letter-spacing:.32em; text-transform:uppercase;
  color:var(--gold); margin-bottom:14px; font-weight:500;
}

/* film grain overlay */
.grain{
  position:fixed; inset:0; z-index:999; pointer-events:none; opacity:.05; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%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");
}

/* reveal-on-scroll */
.reveal{ opacity:0; transform:translateY(24px); transition:opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible{ opacity:1; transform:translateY(0); }

/* buttons */
.btn{
  display:inline-block; padding:14px 30px; font-size:.82rem; letter-spacing:.14em;
  text-transform:uppercase; border-radius:2px; transition:all .35s var(--ease); font-weight:500;
}
.btn--ghost{ border:1px solid var(--line); color:var(--fg); }
.btn--ghost:hover{ border-color:var(--gold); color:var(--gold); }
.btn--gold{ background:var(--gold); color:#161310; border:1px solid var(--gold); }
.btn--gold:hover{ background:transparent; color:var(--gold); }

/* =============================== NAV =============================== */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:200;
  display:flex; align-items:center; justify-content:space-between;
  padding:24px 5vw; transition:background .4s var(--ease), padding .4s var(--ease), backdrop-filter .4s;
}
.nav.scrolled{
  background:rgba(10,10,11,.82); backdrop-filter:blur(10px); padding:14px 5vw;
  border-bottom:1px solid var(--line);
}
.nav__logo{ font-family:var(--serif); font-size:1.35rem; letter-spacing:.02em; }
.nav__logo .dot{ color:var(--gold); }
.nav__links{ display:flex; gap:38px; }
.nav__links a{ font-size:.78rem; letter-spacing:.14em; text-transform:uppercase; color:var(--fg-dim); position:relative; padding-bottom:4px; }
.nav__links a::after{
  content:''; position:absolute; left:0; right:100%; bottom:0; height:1px; background:var(--gold);
  transition:right .35s var(--ease);
}
.nav__links a:hover{ color:var(--fg); }
.nav__links a:hover::after{ right:0; }
.nav__ig{ display:flex; align-items:center; gap:8px; font-size:.78rem; letter-spacing:.1em; text-transform:uppercase; color:var(--fg-dim); border:1px solid var(--line); padding:9px 16px; border-radius:999px; transition:.35s var(--ease); }
.nav__ig:hover{ color:var(--gold); border-color:var(--gold-soft); }
.nav__burger{ display:none; flex-direction:column; gap:5px; background:none; border:0; cursor:pointer; padding:6px; z-index:210; }
.nav__burger span{ width:22px; height:1px; background:var(--fg); display:block; }

.mobile-menu{
  position:fixed; inset:0; background:var(--bg); z-index:190; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:32px; transform:translateY(-100%); transition:transform .5s var(--ease);
}
.mobile-menu.open{ transform:translateY(0); }
.mobile-menu a{ font-family:var(--serif); font-size:1.8rem; }

/* =============================== HERO =============================== */
.hero{ position:relative; height:100svh; min-height:560px; overflow:hidden; }
.hero__slides{ position:absolute; inset:0; }
.hero__slide{
  position:absolute; inset:0; background-size:cover; background-position:center;
  opacity:0; transform:scale(1.12); transition:opacity 1.6s var(--ease), transform 8s linear;
  filter:grayscale(1) contrast(1.05) brightness(.82);
}
.hero__slide.active{ opacity:1; transform:scale(1); }
.hero__vignette{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(8,8,9,.55) 0%, rgba(8,8,9,.25) 30%, rgba(8,8,9,.55) 68%, rgba(8,8,9,.96) 100%),
    radial-gradient(120% 90% at 50% 30%, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 100%);
}
.hero__content{
  position:relative; z-index:2; height:100%; display:flex; flex-direction:column;
  align-items:center; justify-content:center; text-align:center; padding:0 6vw;
}
.hero__kicker{ font-size:.78rem; letter-spacing:.38em; text-transform:uppercase; color:var(--gold); margin-bottom:22px; }
.hero__title{ font-size:clamp(2.6rem, 7vw, 5.6rem); line-height:1.06; font-weight:500; }
.hero__title em{ font-style:italic; color:var(--gold); }
.hero__sub{ margin-top:22px; max-width:520px; color:var(--fg-dim); font-size:1.05rem; letter-spacing:.02em; }
.hero__cta{ margin-top:38px; display:flex; gap:18px; flex-wrap:wrap; justify-content:center; }
.hero__scroll{
  position:absolute; bottom:34px; left:50%; transform:translateX(-50%); z-index:2;
  display:flex; flex-direction:column; align-items:center; gap:10px; color:var(--fg-dim);
}
.hero__scroll span{ font-size:.66rem; letter-spacing:.3em; text-transform:uppercase; }
.hero__scroll-line{ width:1px; height:42px; background:linear-gradient(var(--gold), transparent); position:relative; overflow:hidden; }
.hero__scroll-line::after{
  content:''; position:absolute; top:-100%; left:0; width:100%; height:100%; background:var(--fg);
  animation:scrollDrop 2.2s var(--ease) infinite;
}
@keyframes scrollDrop{ to{ top:100%; } }
.hero__dots{ position:absolute; right:5vw; bottom:44px; z-index:2; display:flex; flex-direction:column; gap:10px; }
.hero__dot{ width:6px; height:6px; border-radius:50%; background:rgba(243,241,236,.3); cursor:pointer; transition:.3s; border:none; padding:0; }
.hero__dot.active{ background:var(--gold); transform:scale(1.5); }

/* =============================== INTRO / CYTAT =============================== */
.intro{ padding:min(16vh,150px) 6vw; display:flex; justify-content:center; }
.intro__inner{ max-width:760px; text-align:center; }
.quote{
  margin:0; font-family:var(--serif); font-size:clamp(1.4rem,3vw,2.1rem);
  line-height:1.45; color:var(--fg); font-style:italic; position:relative; padding-top:34px;
}
.quote::before{
  content:''; position:absolute; top:0; left:50%; transform:translateX(-50%);
  width:44px; height:1px; background:var(--gold);
}

/* =============================== SECTION HEAD =============================== */
.section-head{ text-align:center; max-width:640px; margin:0 auto 56px; padding:0 6vw; }
.section-head h2{ font-size:clamp(2rem,4.2vw,2.9rem); margin-bottom:14px; }
.section-head p{ color:var(--fg-dim); }

/* =============================== SLIDER =============================== */
.slider-section{ padding:min(14vh,120px) 0 40px; }
.slider{ position:relative; display:flex; align-items:center; gap:14px; padding:0 5vw; }
.slider__viewport{ overflow-x:auto; scrollbar-width:none; flex:1; }
.slider__viewport::-webkit-scrollbar{ display:none; }
.slider__track{ display:flex; gap:20px; }
/* stała wysokość, szerokość wynika z proporcji zdjęcia (ustawia ją JS) */
.slide-card{
  position:relative; flex:0 0 auto; height:clamp(300px,46vh,500px); aspect-ratio:1/1;
  overflow:hidden; border-radius:3px; cursor:pointer; background:var(--bg-alt);
}
.slide-card img{ width:100%; height:100%; object-fit:cover; transition:transform 1.2s var(--ease); }
.slide-card:hover img{ transform:scale(1.07); }
.slide-card::after{
  content:''; position:absolute; inset:0; box-shadow:inset 0 0 0 1px var(--line); transition:.3s;
}
.slide-card:hover::after{ box-shadow:inset 0 0 0 1px var(--gold-soft); }
.slider__arrow{
  flex:0 0 auto; width:48px; height:48px; border-radius:50%; border:1px solid var(--line); background:transparent;
  color:var(--fg); font-size:1.4rem; cursor:pointer; transition:.3s var(--ease); display:flex; align-items:center; justify-content:center;
}
.slider__arrow:hover{ border-color:var(--gold); color:var(--gold); }
.slider__more{ text-align:center; margin-top:32px; font-size:.85rem; color:var(--fg-dim); }
.slider__more a{ color:var(--gold); border-bottom:1px solid var(--gold-soft); padding-bottom:1px; }
.slider__more a:hover{ border-color:var(--gold); }

/* =============================== SPOTLIGHT (kobiece) =============================== */
.spotlight{
  display:grid; grid-template-columns:1.1fr 1fr; align-items:center; gap:0;
  padding:min(14vh,130px) 6vw; background:var(--bg-alt); border-top:1px solid var(--line); border-bottom:1px solid var(--line);
}
/* wysokość ramek wynika z proporcji zdjęcia (ustawia ją JS), więc nic nie jest kadrowane */
.spotlight__images{ position:relative; aspect-ratio:1/1; }
.spotlight__img{ position:absolute; background-size:cover; background-position:center; border-radius:3px; box-shadow:var(--shadow); }
.spotlight__img--a{ width:66%; top:0; left:0; z-index:1; }
.spotlight__img--b{ width:52%; right:0; bottom:0; z-index:2; border:6px solid var(--bg-alt); }
.spotlight__text{ padding-left:min(7vw,90px); }
.spotlight__text h2{ font-size:clamp(2rem,4.2vw,2.9rem); margin-bottom:22px; }
.spotlight__text p{ color:var(--fg-dim); margin-bottom:18px; max-width:480px; }
.spotlight__text .spotlight__closer{ color:var(--fg); margin-top:24px; }
.spotlight__text .btn{ margin-top:10px; }

/* =============================== ABOUT =============================== */
.about{ display:grid; grid-template-columns:.9fr 1.1fr; gap:0; padding:min(14vh,130px) 6vw; align-items:center; }
.about__img{ background-size:cover; background-position:center; border-radius:3px; box-shadow:var(--shadow); }
.about__text{ padding-left:min(7vw,90px); }
.about__text h2{ font-size:clamp(2.2rem,5vw,3.4rem); margin-bottom:22px; }
.about__text p{ color:var(--fg-dim); margin-bottom:18px; max-width:480px; }
.about__text .about__place{
  color:var(--gold); font-size:.76rem; letter-spacing:.24em; text-transform:uppercase;
  margin-top:26px; margin-bottom:26px;
}
.about__text .btn{ margin-top:8px; }

/* =============================== FOOTER =============================== */
.footer{
  border-top:1px solid var(--line); padding:60px 6vw 40px; display:flex; flex-direction:column;
  align-items:center; gap:18px; text-align:center;
}
.footer__ig{ display:flex; align-items:center; gap:9px; color:var(--fg-dim); font-size:.85rem; letter-spacing:.1em; text-transform:uppercase; transition:.3s; }
.footer__ig:hover{ color:var(--gold); }
.footer__copy{ color:#59564f; font-size:.78rem; letter-spacing:.03em; }

/* =============================== LIGHTBOX =============================== */
.lightbox{
  position:fixed; inset:0; background:rgba(6,6,7,.97); z-index:500; display:none;
  align-items:center; justify-content:center; padding:5vw;
}
.lightbox.open{ display:flex; }
.lightbox__img{ max-width:88vw; max-height:86vh; object-fit:contain; box-shadow:var(--shadow); }
.lightbox__close{
  position:absolute; top:22px; right:28px; background:none; border:0; color:var(--fg); font-size:2.2rem;
  cursor:pointer; line-height:1; opacity:.8;
}
.lightbox__close:hover{ color:var(--gold); opacity:1; }
.lightbox__nav{
  position:absolute; top:50%; transform:translateY(-50%); background:none; border:1px solid var(--line);
  color:var(--fg); font-size:1.8rem; width:52px; height:52px; border-radius:50%; cursor:pointer; transition:.3s;
}
.lightbox__nav:hover{ border-color:var(--gold); color:var(--gold); }
.lightbox__nav--prev{ left:24px; }
.lightbox__nav--next{ right:24px; }

/* =============================== RESPONSIVE =============================== */
@media (max-width: 980px){
  .nav__links{ display:none; }
  .nav__ig span{ display:none; }
  .nav__burger{ display:flex; }
  .spotlight, .about{ grid-template-columns:1fr; }
  .spotlight__images{ margin-bottom:40px; }
  .spotlight__text, .about__text{ padding-left:0; }
  .about__img{ margin-bottom:40px; order:-1; }
}
@media (max-width: 560px){
  .hero__cta{ flex-direction:column; width:100%; }
  .hero__cta .btn{ width:100%; text-align:center; }
  .lightbox__nav{ width:42px; height:42px; font-size:1.4rem; }
  /* niżej, żeby poziome kadry mieściły się na szerokość telefonu */
  .slide-card{ height:min(62vw,340px); }
}
