:root{
  --bg:#070708;
  --fg:#f3f3f3;
  --muted:rgba(243,243,243,.72);
  --line:rgba(243,243,243,.10);

  --max: 1040px;
  --pad: 28px;

  --r: 18px;
  --shadow: 0 24px 60px rgba(0,0,0,.35);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background:var(--bg);
  color:var(--fg);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: .1px;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a{
  color:var(--fg);
  text-decoration:none;
  border-bottom: 1px solid transparent;
}
a:hover{
  border-bottom-color: rgba(243,243,243,.35);
}

.wrap{
  width:min(var(--max), calc(100% - 2*var(--pad)));
  margin:0 auto;
}

/* HEADER */
.site-header{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7,7,8,.86);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand{ min-width: 240px; }
.name{
  margin:0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .2px;
}
.role{
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.nav{
  display:flex;
  gap: 18px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.nav a{
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .6px;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
}
.nav a:hover{ color: var(--fg); border-bottom-color: rgba(243,243,243,.25); }

/* HERO */
/* .hero{
  position: relative;
  height: 30vh;
  min-height: 300px;
  max-height: 420px;
  overflow: hidden;
} */

.hero {
  position: relative;
  height: 45vh; /* albo 65vh */
  background-image: url("hero.jpg");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}


@media (max-width: 768px) {
  .hero {
    height: 18vh; 
    max-height: 140px;     
    min-height: 110px; 
    background-position: 40% center; 
  }
}

/* gradient */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.75) 25%,
    rgba(0, 0, 0, 0.35) 45%,
    rgba(0, 0, 0, 0.1) 65%,
    rgba(0, 0, 0, 0) 85%
  );
  pointer-events: none;
}

.hero img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  filter: grayscale(100%) contrast(105%);
}

.hero-header{
  position: relative;
  z-index: 2;
}

.hero-header .wrap{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  padding: 28px 0;
}

.hero-header h1{
  margin:0;
  font-size: 16px;
  font-weight: 500;
}

.hero-header p{
  margin:6px 0 0;
  font-size: 13px;
  color: rgba(255,255,255,.7);
}

.hero-header nav{
  display:flex;
  gap:18px;
}

.hero-header nav a{
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}

.hero-header nav a:hover{
  color:#fff;
}

/* SECTIONS */
.section{
  padding: 52px 0;
  border-bottom: 1px solid var(--line);
}

.section-title{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

/* PROJECT */
.project{
  padding: 18px 0 36px;
}
.project + .project{
  border-top: 1px solid var(--line);
  margin-top: 10px;
}

.project-title{
  margin:0;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 500;
  letter-spacing: .1px;
}

.project-desc{
  margin: 10px 0 18px;
  color: var(--muted);
  max-width: 70ch;
  font-size: 15px;
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grid img{
  width:100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--r);
  border: 1px solid rgba(243,243,243,.08);
  transition: transform .18s ease, filter .18s ease, border-color .18s ease;
}

.grid img:hover{
  transform: translateY(-2px);
  border-color: rgba(243,243,243,.18);
}

.project-links{
  margin: 14px 0 0;
}
.project-links a{
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .8px;
  text-transform: uppercase;
}

img {
  -webkit-user-drag: none;
}


/* TEXT */
.text{
  max-width: 70ch;
  color: var(--muted);
  font-size: 15px;
}
.text strong{ color: var(--fg); font-weight: 500; }

/* FOOTER */
.site-footer{
  padding: 28px 0;
  color: var(--muted);
  font-size: 13px;
}

/* MOBILE */
@media (max-width: 900px){
  .site-header .wrap{
    align-items:flex-start;
    padding: 16px 0;
  }
  .brand{ min-width: unset; }
  .grid{ grid-template-columns: 1fr; }
  .grid img{ height: auto; }
  .hero img{ height: auto; }
}

/* ZOOMABLE */

/* overlay */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
}

/* powiększone zdjęcie */
.lightbox img {
  max-width: 85vw;      /* kluczowe: NIE full screen */
  max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  user-select: none;
  pointer-events: none;
}

/* delikatny zoom on hover (desktop) */
.zoomable {
  cursor: zoom-in;
  transition: transform 0.25s ease;
}

@media (hover: none) {
  .zoomable {
    cursor: default;
    transform: none !important;
  }
}