/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:       #ffffff;
  --ink:      #1a1918;
  --muted:    #888480;
  --sidebar:  340px;
  --gap:      48px;
  --font:     "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Lenis smooth-scroll requirements */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ── Layout: sidebar + main ──────────────────────────────────── */
body {
  display: flex;
}

/* ── Sidebar ─────────────────────────────────────────────────── */
.pf-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar);
  height: 100vh;
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 10;
}

.pf-sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pf-name {
  font-size: 54px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.0;
}

.pf-tagline {
  font-size: 17px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.6;
}

.pf-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pf-nav a {
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s;
}

.pf-nav a:hover {
  color: var(--ink);
}

/* ── Main: masonry grid ──────────────────────────────────────── */
.pf-main {
  margin-left: var(--sidebar);
  flex: 1;
  display: flex;
  gap: var(--gap);
  padding: 56px 80px 80px 0;
}

.pf-column {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

/* ── Photo cards ─────────────────────────────────────────────── */
.portfolio-photo {
  overflow: hidden;
  cursor: zoom-in;
  display: block;
}

.portfolio-photo picture,
.portfolio-photo img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Lightbox ────────────────────────────────────────────────── */
.hidden {
  display: none !important;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 32px;
  cursor: zoom-out;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  cursor: default;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: transparent;
  border: 1px solid #d8d6d2;
  color: var(--ink);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s;
  padding: 0;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: #f0efec;
}

.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev  { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 24px; top: 50%; transform: translateY(-50%); }

.lightbox svg {
  width: 18px;
  height: 18px;
  stroke: var(--ink);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  :root { --sidebar: 260px; }
  .pf-main {
    padding: 40px 40px 48px 0;
  }
}

@media (max-width: 760px) {
  :root { --sidebar: 0px; --gap: 14px; }

  body { flex-direction: column; }

  .pf-sidebar {
    position: static;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px;
    border-bottom: 1px solid #eeece8;
  }

  .pf-sidebar-top { flex-direction: row; align-items: baseline; gap: 12px; }
  .pf-name { font-size: 22px; }
  .pf-name br { display: none; }
  .pf-tagline { display: none; }

  .pf-nav { flex-direction: row; }

  .pf-main {
    margin-left: 0;
    padding: 16px;
  }
}
