@font-face {
  font-family: 'BebasNeue';
  src: url('../fonts/bebas_neue/BebasNeue-Regular.woff') format('woff');
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --text: #111111;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --border: #e5e7eb;
  --nav-height: 68px;
  --thumb: 204px;
  --radius: 10px;
  --gap: 12px;
  --max-content: 1020px;
  --page-pad: 32px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

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


/* ── NAV ──────────────────────────────────────────── */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.site-nav__inner {
  width: 100%;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav__logo img {
  height: 40px;
  width: auto;
}

.site-nav__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav__links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.site-nav__links a:hover {
  color: var(--text);
}

.site-nav__social {
  border-left: 1px solid var(--border);
  padding-left: 20px;
  font-size: 18px;
  color: var(--text-muted);
  transition: color 0.2s;
  line-height: 1;
}

.site-nav__social:hover {
  color: var(--text);
}

.site-nav__burger {
  display: none;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px var(--page-pad) 20px;
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.mobile-menu li:last-child a {
  border-bottom: none;
}

.mobile-menu.is-open {
  display: block;
}


/* ── MAIN ─────────────────────────────────────────── */

.site-main {
  padding-top: var(--nav-height);
}


/* ── BIO ──────────────────────────────────────────── */

.bio {
  max-width: var(--max-content);
  margin: 72px auto 80px;
  padding: 0 var(--page-pad);
  display: flex;
  gap: 52px;
  align-items: center;
}

.bio__photo {
  flex-shrink: 0;
  width: var(--thumb);
}

.bio__photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
}

.bio__name {
  font-family: 'BebasNeue', sans-serif;
  font-size: 34px;
  letter-spacing: 0.05em;
  color: var(--text);
  margin: 0 0 4px;
  line-height: 1;
}

.bio__role {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  line-height: 1;
  margin: 0 0 14px;
}

.bio__text p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.56;
  margin: 0 0 10px;
}

.bio__text p:first-of-type {
  margin-top: 0;
}

.bio__text p:last-child {
  margin-bottom: 0;
}


/* ── CATEGORIES ───────────────────────────────────── */

.categories {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--page-pad) 100px;
}

.category {
  padding-top: 52px;
  border-top: 1px solid var(--border);
  margin-bottom: 0;
}

.category:first-child {
  border-top: none;
  padding-top: 0;
}

.category__header {
  margin-bottom: 24px;
}

.category__title {
  font-family: 'BebasNeue', sans-serif;
  font-size: 34px;
  letter-spacing: 0.05em;
  color: var(--text);
  margin: 0 0 12px;
  line-height: 1;
}

.category__desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.72;
  margin: 0;
}


/* ── SCROLL ROW ───────────────────────────────────── */

.scroll-wrap {
  position: relative;
  margin-bottom: 52px;
}

.scroll-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 10px;
  width: 80px;
  background: linear-gradient(to right, transparent, white);
  pointer-events: none;
  z-index: 1;
}

.scroll-row {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.scroll-row::-webkit-scrollbar {
  height: 3px;
}

.scroll-row::-webkit-scrollbar-track {
  background: transparent;
}

.scroll-row::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.thumb {
  flex-shrink: 0;
  width: var(--thumb);
}

.thumb a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
}

.thumb img {
  width: var(--thumb);
  height: var(--thumb);
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.thumb a:hover img {
  transform: scale(1.06);
  filter: brightness(0.92);
}


/* ── PROJECT DETAIL PAGE ─────────────────────────── */

/* Single image or video: simple two-column flex */
.project {
  max-width: var(--max-content);
  margin: 60px auto 100px;
  padding: 0 var(--page-pad);
  display: flex;
  gap: 52px;
  align-items: flex-start;
}

.project__media {
  flex: 0 0 320px;
  min-width: 0;
}

.project__img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}

.project__video {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #111111;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.project__video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.project__video-fallback {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

.project__video-fallback:hover {
  background: white;
}

.project--video {
  display: grid;
  grid-template-columns: minmax(420px, 58%) 1fr;
  column-gap: 44px;
}

.project--video .project__media {
  flex: none;
  width: 100%;
}

.project--video .project__info {
  padding-top: 8px;
}

.project__info {
  flex: 1;
  min-width: 0;
  padding-top: 4px;
}

.project__title {
  font-family: 'BebasNeue', sans-serif;
  font-size: 42px;
  margin: 0 0 20px;
  line-height: 1;
  color: var(--text);
}

.project__meta {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.85;
}

.project__meta a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.project__meta a:hover {
  color: var(--text);
}


/* Multi-image gallery: large hero + text on top, full-width grid below */
.project--gallery {
  display: grid;
  grid-template-columns: minmax(340px, 46%) 1fr;
  grid-template-areas:
    "hero info"
    "subgrid subgrid";
  column-gap: 44px;
  row-gap: 32px;
}

.project__hero {
  grid-area: hero;
  align-self: start;
  position: relative;
}

.project__hero a {
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #fafafa;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.project__hero img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
}

.gallery-nav,
.gallery-lightbox__close {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 38px;
  height: 50px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font-size: 30px;
  transform: translateY(-50%);
  transition: background 0.2s, opacity 0.2s;
}

.gallery-nav:hover {
  background: white;
}

.gallery-nav--prev {
  left: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.gallery-nav--next {
  right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
}

.gallery-lightbox {
  width: min(1180px, calc(100vw - 32px));
  max-width: none;
  height: min(860px, calc(100vh - 32px));
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
}

.gallery-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.gallery-lightbox__frame {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox__img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius);
  object-fit: contain;
}

.gallery-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 24px;
}

.gallery-lightbox .gallery-nav {
  width: 48px;
  height: 64px;
}

.project__subgrid {
  grid-area: subgrid;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--gap);
}

.project__subgrid a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
}

.project__subgrid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s;
}

.project__subgrid a:hover img {
  opacity: 0.85;
}

.project__subgrid a.is-active {
  box-shadow: 0 0 0 2px var(--text);
}

.project--gallery .project__info {
  grid-area: info;
}


/* ── FOOTER ───────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px var(--page-pad);
  text-align: center;
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}


/* ── RESPONSIVE ───────────────────────────────────── */

@media (max-width: 600px) {
  :root {
    --thumb: 152px;
    --page-pad: 16px;
  }

  .bio {
    flex-direction: column;
    text-align: center;
    margin: 48px auto 64px;
    gap: 24px;
  }

  .bio__text {
    text-align: left;
  }

  .bio__text p {
    font-size: 14px;
    line-height: 1.72;
    margin-bottom: 12px;
  }

  .bio__role {
    line-height: 1.65;
    margin-bottom: 20px;
  }

  .bio__photo {
    width: var(--thumb);
    margin: 0 auto;
  }

  .bio__name {
    font-size: 28px;
    text-align: center;
  }

  .bio__role {
    text-align: center;
  }

  .bio__text p:first-of-type {
    margin-top: 0;
  }

  .category__title {
    font-size: 28px;
  }

  .category__desc {
    font-size: 14px;
  }

  .site-nav__links {
    display: none;
  }

  .site-nav__burger {
    display: block;
  }

  .scroll-wrap::after {
    width: 48px;
  }

  /* Single image / video pages */
  .project {
    flex-direction: column;
    margin: 40px auto 60px;
    gap: 28px;
  }

  .project__info {
    order: 1;
  }

  .project__media {
    order: 2;
    flex: none;
    width: 100%;
  }

  .project--video {
    display: flex;
  }

  .project--video .project__media {
    order: 1;
  }

  .project--video .project__info {
    order: 2;
  }

  /* Multi-image gallery pages */
  .project--gallery {
    grid-template-columns: 1fr;
    grid-template-areas:
      "info"
      "hero"
      "subgrid";
    margin: 40px auto 60px;
    row-gap: 20px;
  }

  .project__hero a {
    aspect-ratio: 1 / 1;
  }

  .project__subgrid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .gallery-nav {
    width: 34px;
    height: 46px;
    font-size: 28px;
  }

  .project__title {
    font-size: 34px;
  }
}
