/* ── Portfolio Navigation Bar ─────────────────── */
.pflio-bar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 40px;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(10,10,20,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 13px;
  box-sizing: border-box;
}
.pflio-bar a { color: rgba(255,255,255,0.75); text-decoration: none; transition: color 0.2s ease; white-space: nowrap; }
.pflio-bar a:hover { color: #fff; }
.pflio-bar a:focus-visible { outline: 2px solid rgba(255,255,255,0.5); outline-offset: 3px; border-radius: 3px; }
.pflio-bar__back:hover .pflio-bar__arrow { margin-right: 4px; }
.pflio-bar__arrow { display: inline-block; transition: margin 0.2s ease; }
.pflio-bar__label { color: rgba(255,255,255,0.45); font-size: 12px; letter-spacing: 0.06em; pointer-events: none; }
.pflio-bar__diamond { color: rgba(255,255,255,0.25); margin-right: 6px; font-size: 10px; }
.pflio-bar__arrow-right { display: inline-block; transition: transform 0.2s ease; margin-left: 4px; }
.pflio-bar__all:hover .pflio-bar__arrow-right { transform: translateX(3px); }
.pflio-bar__all-short { display: none; }
@media (max-width: 600px) { .pflio-bar { height: 44px; padding: 0 16px; } .pflio-bar__all-text { display: none; } .pflio-bar__all-short { display: inline; } }
@media (max-width: 480px) { .pflio-bar__label { display: none; } }

/* ── Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #0A0A0A;
  color: #fff;
  font-family: 'Cormorant Garamond', Georgia, serif;
  padding-top: 40px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: #fff;
  color: #000;
  padding: 0.5em 1em;
  z-index: 100000;
}
.skip-link:focus { top: 48px; }

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

/* ── Hero ─────────────────────────────────────── */
.hero {
  height: 100vh;
  background-image: url('https://images.unsplash.com/photo-1541140532154-b24daea1343d?w=1800&q=90&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
@media (max-width: 768px) { .hero { background-attachment: scroll; } }

/* ── Project title ────────────────────────────── */
.project-title {
  padding: 72px 48px 32px;
  max-width: 1400px;
  margin: 0 auto;
}
.project-title h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(3.5rem, 8vw, 9rem);
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
}
@media (max-width: 600px) { .project-title { padding: 48px 24px 24px; } .project-title h1 { letter-spacing: 0.12em; } }

/* ── Info bar ─────────────────────────────────── */
.info-bar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 48px 60px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 0;
}
.info-item {
  font-family: system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.info-sep {
  font-size: 10px;
  color: rgba(255,255,255,0.18);
  padding: 0 10px;
}
@media (max-width: 600px) { .info-bar { padding: 16px 24px 40px; } }

/* ── Gallery ──────────────────────────────────── */
.gallery-section { padding-bottom: 80px; }

.gallery {
  columns: 3;
  column-gap: 6px;
  padding: 0 24px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 6px;
  cursor: pointer;
  overflow: hidden;
  display: block;
  line-height: 0;
}
.gallery-img {
  width: 100%;
  display: block;
  transition: filter 0.35s ease;
  filter: brightness(1);
}
.gallery-img:hover { filter: brightness(1.06); }

@media (max-width: 768px) { .gallery { columns: 2; } }
@media (max-width: 480px) { .gallery { columns: 1; } }

/* ── Lightbox ─────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.97);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.active { opacity: 1; pointer-events: all; }

.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  transform: scale(0.97);
  transition: transform 0.3s ease, opacity 0.25s ease;
  opacity: 0;
  display: block;
}
.lightbox.active .lightbox__img { transform: scale(1); }

.lightbox__close {
  position: absolute;
  top: 16px; right: 20px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 32px;
  cursor: pointer;
  padding: 8px 12px;
  line-height: 1;
  transition: color 0.2s;
  font-family: system-ui, sans-serif;
}
.lightbox__close:hover { color: #fff; }

.lightbox__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 16px 22px;
  line-height: 1;
  transition: color 0.2s;
  font-family: system-ui, sans-serif;
  user-select: none;
}
.lightbox__btn:hover { color: #fff; }
#lightbox-prev { left: 0; }
#lightbox-next { right: 0; }

.lightbox__counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
}

/* ── Description ──────────────────────────────── */
.description {
  max-width: 620px;
  margin: 0 auto 80px;
  padding: 0 48px;
}
.description p {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.95;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
}
@media (max-width: 600px) { .description { padding: 0 24px; } }

/* ── Related projects ─────────────────────────── */
.related {
  padding: 60px 24px 80px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.related__title {
  font-family: system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 20px;
  padding: 0 0 0 0;
}
.related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
@media (max-width: 640px) { .related__grid { grid-template-columns: 1fr; } }

.related__card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  display: block;
}
.related__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
  filter: brightness(0.55);
}
.related__card:hover img { transform: scale(1.03); filter: brightness(0.72); }

.related__card__label {
  position: absolute;
  bottom: 14px;
  left: 16px;
  font-family: system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  pointer-events: none;
}

/* ── Contact CTA ──────────────────────────────── */
.contact-cta {
  text-align: center;
  padding: 72px 40px 80px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.contact-cta__question {
  font-family: system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 14px;
}
.contact-cta__email {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.contact-cta__email:hover { color: #fff; border-color: rgba(255,255,255,0.7); }

/* ── Footer ───────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 22px 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-family: system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer a { color: rgba(255,255,255,0.3); transition: color 0.2s; }
.site-footer a:hover { color: rgba(255,255,255,0.6); }
