

*, *::before, *::after {

    box-sizing: border-box;

}



body {

    margin: 0;

    font-family: 'Inter', sans-serif;

    background: #0a0a0a;

    color: #eaeaea;

}



/* Header */

header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    padding: 40px;

    border-bottom: 1px solid #1a1a1a;

}



.site-name {

    text-decoration: none;

    color: #eaeaea;

    font-size: 25px;

}



.profession {

    color: #777;

    margin-top: 6px;

    font-size: 20px;

    font-weight: 300;

}



/* Navigation */

.nav {

    display: flex;

    gap: 24px;

}



.nav a {

    text-decoration: none;

    color: #888;

    font-size: 14px;

    position: relative;

    transition: color 0.2s;

}



.nav a:hover,

.nav a.active {

    color: #fff;

}



.nav a::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -6px;

    width: 0%;

    height: 1px;

    background: #fff;

    transition: width 0.2s;

}



.nav a:hover::after,

.nav a.active::after {

    width: 100%;

}



/* Homepage introduction */

.home-intro {

    max-width: 900px;

    padding: 76px 40px 54px;

}



.home-intro h1 {

    margin: 0 0 18px;

    max-width: 760px;

    font-size: clamp(34px, 5vw, 58px);

    line-height: 1.08;

    letter-spacing: -0.045em;

    font-weight: 400;

}



.home-intro p {

    max-width: 650px;

    margin: 0;

    color: #999;

    font-size: 17px;

    line-height: 1.75;

    font-weight: 300;

}



/* Work section and filters */

.work-section {

    padding: 0 20px 60px;

}



.work-toolbar {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 24px;

    padding: 0 20px 22px;

}



.work-heading h2 {

    margin: 0;

    color: #eaeaea;

    font-size: 15px;

    font-weight: 500;

}



.work-filters {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 8px;

}



.work-filter {

    appearance: none;

    border: 1px solid #303030;

    border-radius: 999px;

    padding: 9px 14px;

    background: transparent;

    color: #999;

    font: inherit;

    font-size: 12px;

    cursor: pointer;

    transition: color 0.2s, border-color 0.2s, background 0.2s;

}



.work-filter:hover {

    color: #fff;

    border-color: #777;

}



.work-filter.is-active {

    color: #0a0a0a;

    border-color: #eaeaea;

    background: #eaeaea;

}



/* Gallery */

.gallery {

    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 14px;

    padding: 0;

}



.project-card {

    position: relative;

    display: block;

    min-width: 0;

    overflow: hidden;

    cursor: pointer;

    text-decoration: none;

    color: #fff;

}



.project-card-image {

    position: relative;

    overflow: hidden;

    background: #151515;

}



.project-card img {

    width: 100%;

    height: 280px;

    object-fit: cover;

    display: block;

    transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);

}



.project-card:hover img {

    transform: scale(1.05);

}



/* Hover overlay */

.overlay {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    background: rgba(0, 0, 0, 0.6);

    opacity: 0;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    padding: 20px;

    transition: opacity 0.3s;

}



.project-card:hover .overlay {

    opacity: 1;

}



.overlay h2 {

    margin: 0;

    font-size: 20px;

    font-weight: 500;

}



.overlay p {

    font-size: 14px;

    font-weight: 300;

    margin-top: 6px;

    color: #ccc;

}



.project-card[hidden] {

    display: none !important;

}



.filter-empty {

    padding: 50px 20px;

    color: #888;

    text-align: center;

    font-size: 13px;

}



/* Project page */

.project-page {

    width: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;

    padding: 60px 40px;

}



.project-page h1 {

    font-size: 32px;

    font-weight: 500;

    margin: 0 0 8px;

}



.project-content {

    width: 100%;

    max-width: 800px;

}



.project-meta {

    color: #666;

    font-size: 13px;

    font-weight: 300;

    margin-bottom: 40px;

}



.project-hero {

    width: 100%;

    display: block;

    margin-bottom: 40px;

    object-fit: cover;

}



.project-caption {

    color: #666;

    font-size: 13px;

    font-weight: 300;

    margin-top: -32px;

    margin-bottom: 40px;

    text-align: center;

}



.project-body {

    color: #bbb;

    font-weight: 300;

    line-height: 1.8;

    font-size: 15px;

    max-width: 660px;

}



.project-images {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 12px;

    margin-top: 40px;

    width: 100%;

}



.project-images img {

    width: 100%;

    object-fit: cover;

    display: block;

}



.project-images video {

    width: 100%;

    max-height: 90vh;

    object-fit: contain;

    display: block;

}



.project-images p {

    color: #bbb;

    font-weight: 300;

    line-height: 1.8;

    font-size: 15px;

    margin-top: 8px;

    margin-bottom: 32px;

}



.back-link {

    display: inline-block;

    margin-top: 60px;

    color: #555;

    text-decoration: none;

    font-size: 13px;

    transition: color 0.2s;

}



.back-link:hover {

    color: #fff;

}



/* About and Contact */

.text-page {

    padding: 60px 40px;

    max-width: 700px;

}



.text-page h1 {

    font-weight: 500;

}



.text-page p {

    line-height: 1.7;

    color: #bbb;

    font-weight: 300;

}



.text-page a {

    color: #888;

    text-decoration: none;

    transition: color 0.2s;

}



.text-page a:hover {

    color: #fff;

}



/* Lightbox */

#lightbox {

    display: none;

    position: fixed;

    top: 0;

    left: 0;

    width: 100vw;

    height: 100vh;

    background: rgba(0, 0, 0, 0.9);

    justify-content: center;

    align-items: center;

    z-index: 1000;

    cursor: zoom-out;

    overflow: hidden;

}



#lightbox img {

    max-width: 90vw;

    max-height: 90vh;

    object-fit: contain;

    cursor: grab;

    transform-origin: center center;

    transition: transform 0.05s;

    user-select: none;

    -webkit-user-drag: none;


}



#lightbox-close {

    position: absolute;

    top: 20px;

    right: 20px;

    background: none;

    border: none;

    color: #fff;

    font-size: 24px;

    cursor: pointer;

    z-index: 1001;

    opacity: 0.6;

    transition: opacity 0.2s;

}



#lightbox-close:hover {

    opacity: 1;

}



/* Responsive layout */

@media (max-width: 1100px) {

    .gallery {

        grid-template-columns: repeat(3, minmax(0, 1fr));

    }

}



@media (max-width: 750px) {

    .gallery {

        grid-template-columns: repeat(2, minmax(0, 1fr));

    }

}



@media (max-width: 600px) {

    header {

        flex-direction: column;

        gap: 16px;

        padding: 24px 20px;

    }



    .nav {

        gap: 16px;

    }



    .home-intro {

        padding: 48px 20px 38px;

    }



    .home-intro p {

        font-size: 15px;

    }



    .work-section {

        padding: 0 12px 40px;

    }



    .work-toolbar {

        align-items: flex-start;

        flex-direction: column;

        gap: 16px;

        padding: 0 8px 18px;

    }



    .work-filters {

        gap: 6px;

    }



    .work-filter {

        padding: 8px 11px;

        font-size: 11px;

    }

}



@media (max-width: 480px) {

    .gallery {

        grid-template-columns: 1fr;

    }

}



/* ==========================================

   PROJECT GALLERY VIEW SWITCH

   ========================================== */



.gallery-toolbar {

    display: flex;

    justify-content: flex-end;

    margin: 35px 0 20px;

}



.gallery-view-switch {

    display: flex;

    gap: 8px;

}



.gallery-view-button {

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 9px 13px;



    background: transparent;

    border: 1px solid #303030;

    border-radius: 6px;



    color: #888;

    font-family: inherit;

    font-size: 12px;



    cursor: pointer;

    transition: 0.2s;

}



.gallery-view-button svg {

    width: 18px;

    height: 18px;

}



.gallery-view-button:hover {

    color: #fff;

    border-color: #777;

}



.gallery-view-button.is-active {

    color: #fff;

    border-color: #eaeaea;

}





/* ==========================================

   GALLERY ITEMS

   ========================================== */



#project-images .project-gallery-item {

    width: 100%;

    min-width: 0;

}



#project-images .project-gallery-item img,

#project-images .project-gallery-item video {

    display: block;

    width: 100%;

    height: auto;

    max-width: 100%;

    object-fit: contain;

}



#project-images .project-gallery-item .project-caption {

    margin: 10px 0 0;

    color: #bbb;

    font-size: 13px;

    line-height: 1.6;

}





/* ==========================================

   VERTICAL LAYOUT

   ========================================== */



#project-images[data-layout="vertical"] {

    display: flex;

    flex-direction: column;

    align-items: stretch;

    gap: 28px;

    margin-top: 0;

}





/* ==========================================

   MASONRY LAYOUT

   ========================================== */



#project-images[data-layout="masonry"] {

    display: block;

    columns: 2;

    column-gap: 16px;

    margin-top: 0;

}



#project-images[data-layout="masonry"] .project-gallery-item {

    display: inline-block;

    width: 100%;

    margin-bottom: 16px;

    break-inside: avoid;

    -webkit-column-break-inside: avoid;

    vertical-align: top;

}





/* ==========================================

   MOBILE

   ========================================== */



@media (max-width: 650px) {

    #project-images[data-layout="masonry"] {

        columns: 1;

    }



    .gallery-view-button {

        padding: 8px 10px;

        font-size: 11px;

    }

}





/* Mobile portfolio enhancements */

@media (max-width: 650px) {

  #project-images[data-layout="masonry"] { columns: 2; column-gap: 10px; }

  #project-images[data-layout="masonry"] .project-gallery-item { margin-bottom: 10px; }

  .project-page { padding: 32px 16px; }

  .gallery-toolbar { margin: 24px 0 16px; }

  .gallery-view-switch { flex-wrap: wrap; }

  header { padding: 20px 16px; gap: 14px; align-items: flex-start; }

  .site-name { font-size: 21px; }

  .nav { display: flex; flex-wrap: wrap; gap: 18px; }

  .nav a { font-size: 13px; }

  .project-images p { overflow-wrap: anywhere; }

}

@media (max-width: 360px) {

  .gallery-view-button { gap: 5px; padding: 7px; font-size: 10px; }

  #project-images[data-layout="masonry"] { column-gap: 8px; }

}

/* Lightbox navigation, including mobile touch targets */

#lightbox .lightbox-nav {

  position: absolute; top: 50%; transform: translateY(-50%);

  z-index: 1002; background: rgba(0,0,0,.45); color: white;

  border: 1px solid rgba(255,255,255,.25); border-radius: 50%;

  width: 44px; height: 44px; cursor: pointer; font-size: 24px;

  display: grid; place-items: center;

}

#lightbox .lightbox-prev { left: 12px; }

#lightbox .lightbox-next { right: 12px; }

@media (max-width: 650px) {

  #lightbox .lightbox-nav { width: 38px; height: 38px; font-size: 20px; }

  #lightbox .lightbox-prev { left: 4px; }

  #lightbox .lightbox-next { right: 4px; }

}



.home-intro .home-statement {

  font-size: clamp(24px, 3vw, 38px);

  font-weight: 400;

  line-height: 1.25;

  letter-spacing: -0.025em;

  margin: 22px 0;

  max-width: 850px;

}



.home-intro > p {

  max-width: 700px;

  line-height: 1.7;

}



@media (max-width: 650px) {

  .home-intro .home-statement {

    font-size: 25px;

    line-height: 1.3;

    margin: 18px 0;

  }

}

.hero-caption {

  margin-top: 12px;

  margin-bottom: 40px;

}



.hero-caption p {

  margin: 0 0 16px;

  line-height: 1.7;

}



.hero-caption p:last-child {

  margin-bottom: 0;

}



.contact-email {

  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 12px;

}



.contact-email a {

  overflow-wrap: anywhere;

}



#copy-email {

  font: inherit;

  font-size: 13px;

  padding: 7px 12px;

  border: 1px solid #777;

  border-radius: 6px;

  background: transparent;

  color: inherit;

  cursor: pointer;

}



#copy-email:hover {

  opacity: 0.7;

}

/* Contact details */
.contact-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 18px;
  color: #bbb;
  font-weight: 300;
  line-height: 1.7;
}
.contact-row .contact-label {
  color: #bbb;
}
#copy-email:focus-visible {
  outline: 2px solid #eaeaea;
  outline-offset: 3px;
}
