*{
    box-sizing:border-box;
    margin:0;
    padding:0;
}

body{
    font-family: "cofo-sans-mono-variable", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 2.5px;
    background: #222222;
    transition: opacity 0.32s ease;
}

body.page-ready {
    animation: page-enter 0.32s ease both;
}

body.is-page-leaving {
    opacity: 0;
}

@keyframes page-enter {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

html {
    scroll-behavior: smooth;
}

a{
    text-decoration: none;
    color: #d6d5d4;
}

ul{
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}
/*navbar*/
.navbar{
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 10;
    background: #222222;
    padding: 10px 30px;
    animation: navbar-enter 0.62s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.navbar .container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 0 20px;
    gap: 20px;
}

.navbar .main-menu {
    min-width: 0;
}

@keyframes navbar-enter {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #5a5a5a;
    background: transparent;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle-line {
    display: block;
    width: 18px;
    height: 1px;
    background: #d6d5d4;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.nav-toggle.is-open .nav-toggle-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open .nav-toggle-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.navbar .main-menu ul {
    display: flex;
    gap: 30px;
}

.navbar ul li a {
    padding: 30px 10px;
    display: block;
    font-weight: 400;
    transition: color 0.35s ease, transform 0.35s ease, opacity 0.35s ease;
}

.navbar ul li a:hover {
    color: #ffffff;
    border-radius: 5px;
    transform: translateY(-1px);
}

.navbar ul li a.is-current {
    color: #ffffff;
    opacity: 1;
}

.logo{
    width: 75px;
}

.logo-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
}

.logo-mark {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
    background: transparent;
}

.logo-word {
    width: 54px;
    height: auto;
    object-fit: contain;
    display: block;
    background: transparent;
}
  

/* utility classes */
.container{
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 15px;
}
.container-small{
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}
/* sidebar */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 50px;
    height: 100%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    writing-mode: vertical-rl; /* vertical text along left side */
    transform: rotate(180deg); /* flip base away from the edge */
    transform-origin: center;
    z-index: 1;
}

.sidebar li {
    list-style: none;
    margin: 0;
    padding: 0;
    color: #d6d5d4;
    font-size: 12px;
    letter-spacing: 2.5px;
    text-transform: lowercase;
}
/* home page hero section */

.thinlogo {
    margin: auto;
    width: 75%;
    padding: 235px 0 305px 40px; /* keep content away from sidebar */
    
}

.thinlogo-label {
    position: relative;
    padding-left: 40px;
    top: -250px;
    text-align: center;
    color: #d6d5d5;
    font-size: 18px;
    letter-spacing: 1.5px;
    text-transform: lowercase;
}

/* portfolio home page images */
.project-row {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 30px 30px 60px 40px; /* align with sidebar edge */
    max-width: 1800px;
    content-visibility: auto;
    contain-intrinsic-size: 1200px;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: transparent;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.project1img1 {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    background-color: #444444;
    overflow: hidden;
}

.project1img1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project4-thumb-image {
    object-position: center 55%;
}

.project3-thumb-image {
    object-position: center top;
}

.project8-thumb-image {
    object-position: 48.125% center;
}

.project11-thumb-image {
    object-position: center top;
}

.project12-thumb-image {
    object-position: right center;
}

.project6-thumb-image {
    object-position: 50.375% center;
}

.project7-thumb-image {
    object-position: center;
}

.project10-thumb-image {
    object-fit: cover;
    object-position: center;
}

.project1img1::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    background: rgba(0, 0, 0, 0.28);
    -webkit-backdrop-filter: grayscale(100%) brightness(0.75);
    backdrop-filter: grayscale(100%) brightness(0.75);
    transition: opacity 0.25s ease;
    z-index: 1;
}

.project-hover-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 2;
    background: transparent;
    white-space: nowrap;
}

.project1img1:hover::before,
.project1img1:focus-within::before {
    opacity: 1;
}

.project1img1:hover .project-hover-title,
.project1img1:focus-within .project-hover-title {
    opacity: 1;
}

.project-card-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    background: transparent;
}


.project1-info {
    position: relative;
    width: 100%;
    color: #d6d5d4;
    background: transparent;
    display: none;
    flex-wrap: wrap;
    align-items: baseline;
}

.project1-info h2 {
    display: inline-block;
    margin: 0;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 2.5px;
}

.project1-info time {
    display: inline-block;
    margin-left: auto;
    margin-bottom: 0;
    font-size: 10px;
    letter-spacing: 2px;
    opacity: 0.8;
}

.project1-info p {
    margin: 12px 0 0 0;
    width: 100%;
    font-size: 10px;
    line-height: 1.6;
}

/* About section on homepage */
.about-section {
    margin: 50px 30px 80px 40px;
    color: #d6d5d4;
    content-visibility: auto;
    contain-intrinsic-size: 720px;
}

#about-section {
    scroll-margin-top: 110px;
}

.about-content {
    display: grid;
    grid-template-columns: minmax(260px, 420px) 1fr;
    gap: 50px;
    align-items: center;
    border: 1px solid #3a3a3a;
    padding: 40px;
    transition: border-color 0.3s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.about-content:hover {
    border-color: #555555;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
    transform: translateY(-2px);
}

.about-image-wrap {
    width: 100%;
}

.about-image {
    width: 92%;
    aspect-ratio: 3 / 4;
    border: 25px solid #ecebea;
    display: block;
    object-fit: cover;
    margin: 0 auto;
    transition: transform 0.45s ease;
}

.about-content:hover .about-image {
    transform: scale(1.02);
}

.about-text h2 {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.about-text p {
    font-size: 10px;
    line-height: 1.8;
    letter-spacing: 2px;
    margin-bottom: 14px;
    max-width: 640px;
}

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

.about-links {
    margin-top: 22px;
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}

.about-links a {
    color: #d6d5d4;
    border: 1px solid #4a4a4a;
    padding: 8px 12px;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.about-links a:hover {
    color: #222222;
    background: #d6d5d4;
    border-color: #d6d5d4;
}

.business-card-wrap {
    margin-top: 26px;
}

.business-card-label {
    margin-bottom: 10px;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #bdbcbc;
}

.business-card {
    display: block;
    width: min(100%, 380px);
    aspect-ratio: 1.75 / 1;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    perspective: 1200px;
    transition: transform 0.32s ease;
}

.business-card:hover {
    transform: translateY(-2px);
}

.business-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.business-card.is-flipped .business-card-inner {
    transform: rotateY(180deg);
}

.business-card-face {
    position: absolute;
    inset: 0;
    padding: 0;
    border: 1px solid #6a6a6a;
    backface-visibility: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: box-shadow 0.35s ease;
}

.business-card:hover .business-card-face {
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34);
}

.business-card-front {
    background: #2a2a2a;
}

.business-card-back {
    background: #d6d5d4;
    transform: rotateY(180deg);
}

.business-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.business-card:focus-visible {
    outline: 2px solid #d6d5d4;
    outline-offset: 4px;
}

.business-card-download {
    display: block;
    margin-top: 12px;
    border: 1px solid #4a4a4a;
    background: transparent;
    color: #d6d5d4;
    padding: 9px 12px;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: "cofo-sans-mono-variable", sans-serif;
}

.business-card-download:hover {
    background: #d6d5d4;
    color: #222222;
    border-color: #d6d5d4;
}

@media (max-width: 900px) {
    .sidebar {
        display: none;
    }

    .navbar {
        padding: 10px 16px;
    }

    .navbar .container {
        padding: 0;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        position: relative;
        flex-wrap: wrap;
    }

    .logo {
        width: 66px;
        flex: 0 0 auto;
        order: 1;
    }

    .nav-toggle {
        display: inline-flex;
        flex: 0 0 auto;
        order: 2;
        margin-left: auto;
    }

    .navbar .main-menu {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.34s ease, opacity 0.28s ease;
        order: 3;
    }

    .navbar .main-menu.is-open {
        max-height: 420px;
        opacity: 1;
        margin-top: 10px;
    }

    .navbar .main-menu ul {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .navbar .main-menu ul li {
        opacity: 0;
        transform: translateY(8px);
        transition: opacity 0.28s ease, transform 0.28s ease;
    }

    .navbar .main-menu.is-open ul li {
        opacity: 1;
        transform: translateY(0);
    }

    .navbar .main-menu.is-open ul li:nth-child(1) { transition-delay: 0ms; }
    .navbar .main-menu.is-open ul li:nth-child(2) { transition-delay: 45ms; }
    .navbar .main-menu.is-open ul li:nth-child(3) { transition-delay: 90ms; }
    .navbar .main-menu.is-open ul li:nth-child(4) { transition-delay: 135ms; }
    .navbar .main-menu.is-open ul li:nth-child(5) { transition-delay: 180ms; }
    .navbar .main-menu.is-open ul li:nth-child(6) { transition-delay: 225ms; }

    .navbar ul li a {
        padding: 10px 8px;
        font-size: 10px;
        letter-spacing: 1.6px;
        text-align: center;
        border: 1px solid #4a4a4a;
    }

    .navbar .main-menu a.btn {
        display: none;
    }

    .thinlogo {
        width: 75%;
        padding: 175px 0 220px 20px;
    }

    .thinlogo-label {
        padding-left: 20px;
        top: -185px;
        font-size: 16px;
    }

    .project-row {
        grid-template-columns: repeat(2, 1fr);
        margin: 30px 24px 48px 24px;
        gap: 30px;
    }

    .project1img1 {
        aspect-ratio: 4 / 3;
    }

    .about-section {
        margin: 30px 20px 50px 20px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 28px;
    }

    .about-image-wrap {
        max-width: 400px;
    }

    .business-card {
        width: min(100%, 420px);
    }
}

@media (max-width: 600px) {
    .navbar {
        padding: 10px 12px;
    }

    .navbar .main-menu ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .navbar ul li a {
        padding: 9px 6px;
        font-size: 10px;
        letter-spacing: 1.4px;
    }

    .project-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: 20px 16px 30px 16px;
        gap: 16px;
    }

    .thinlogo {
        width: 80%;
        padding: 130px 0 150px 10px;
    }

    .thinlogo-label {
        padding-left: 10px;
        top: -130px;
        font-size: 14px;
    }

    .project-hover-title {
        font-size: 16px;
        letter-spacing: 2px;
        white-space: normal;
        width: calc(100% - 14px);
        text-align: center;
    }

    .about-section {
        margin: 12px 14px 36px 14px;
    }

    .about-content {
        padding: 20px;
    }
}

/* Contact Modal */
.contact-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

.contact-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-modal-content {
    background-color: #222222;
    padding: 30px;
    border: 1px solid #444444;
    border-radius: 5px;
    width: 90%;
    max-width: 500px;
    color: #d6d5d4;
    animation: slideIn 0.3s ease;
}

.contact-modal-close {
    display: inline-block;
    color: #d6d5d4;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
}

.contact-modal-close:hover {
    color: #ffffff;
}

.contact-modal h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 400;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    background-color: #333333;
    border: 1px solid #444444;
    color: #d6d5d4;
    font-family: "cofo-sans-mono-variable", sans-serif;
    font-size: 12px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d6d5d4;
    background-color: #3d3d3d;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background-color: transparent;
    border: 1px solid #d6d5d4;
    color: #d6d5d4;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    font-family: "cofo-sans-mono-variable", sans-serif;
}

.submit-btn:hover {
    background-color: #d6d5d4;
    color: #222222;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

body.resume-screen {
    overflow: hidden;
}

/* Resume Page */
.resume-page {
    max-width: 1500px;
    margin-top: 82px;
    margin-bottom: 0;
    margin-left: 70px;
    padding-right: 30px;
    padding-bottom: 14px;
    color: #d6d5d4;
    height: calc(100dvh - 112px);
    display: flex;
    overflow: hidden;
    content-visibility: auto;
    contain-intrinsic-size: 1100px;
}

.resume-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 40px;
    align-items: stretch;
    justify-items: center;
    flex: 1;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.resume-intro {
    position: relative;
    height: auto;
}

.resume-title {
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 2.5px;
    text-transform: lowercase;
    margin: 0 0 10px 0;
}

.resume-kicker,
.resume-note {
    font-size: 10px;
    line-height: 1.7;
    letter-spacing: 2px;
    margin: 0 0 10px 0;
}

.resume-note {
    opacity: 0.75;
    margin-bottom: 16px;
}

.resume-block {
    margin-bottom: 34px;
}

.resume-block h2 {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.resume-block p {
    font-size: 12px;
    line-height: 1.8;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.resume-viewer-wrap {
    border: 0;
    background: transparent;
    width: auto;
    height: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-self: center;
    min-height: 0;
    overflow: visible;
}

.resume-static-image {
    width: auto;
    height: min(72dvh, 810px);
    min-height: 0;
    object-fit: contain;
    display: block;
}

.resume-download-wrap {
    position: static;
    width: auto;
    text-align: left;
    padding: 0;
    margin-top: 12px;
}

.resume-download-btn {
    display: inline-block;
    padding: 12px 18px;
    border: 1px solid #d6d5d4;
    color: #d6d5d4;
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.resume-download-btn:hover {
    background: #d6d5d4;
    color: #222222;
}

/* Project Detail Page */
.project-page {
    margin-top: 20px;
    margin-bottom: 60px;
    margin-left: 40px;
    padding-right: 30px;
    content-visibility: auto;
    contain-intrinsic-size: 1200px;
}

.project-page-title {
    color: #d6d5d4;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin: 0;
    white-space: nowrap;
}

.project-page-description {
    color: #d6d5d4;
    font-size: 10px;
    line-height: 1.8;
    letter-spacing: 2px;
    max-width: 560px;
    opacity: 0.9;
    margin: 10px 0 0 0;
}

.project-page-description p + p {
    margin-top: 10px;
}

.project-gallery {
    max-width: 1600px;
    display: flex;
    gap: 50px;
    align-items: flex-start;
    padding-right: 50px;
}

.project-gallery + .project-gallery {
    margin-top: 48px;
}

.project-gallery-reverse {
    flex-direction: row-reverse;
    margin-left: auto;
    padding-right: 60px;
}

.project-main-frame {
    position: relative;
    width: 1080px;
    height: 810px;
    flex-shrink: 0;
    border: 1px solid #3b3b3b;
    background: #1a1a1a;
}

.project-main-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #1a1a1a;
    cursor: zoom-in;
}

.project-image-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.project-image-lightbox.active {
    display: flex;
}

.project-image-lightbox-img {
    max-width: min(95vw, 1400px);
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    background: #111111;
}

.project-image-lightbox-close {
    position: absolute;
    top: 18px;
    right: 24px;
    border: 1px solid #d6d5d4;
    background: transparent;
    color: #d6d5d4;
    width: 36px;
    height: 36px;
    font-size: 28px;
    line-height: 28px;
    cursor: pointer;
}

.project-image-lightbox-close:hover {
    background: #d6d5d4;
    color: #222222;
}

.project-gallery-right {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 810px;
    background: transparent;
}

.project-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 134px);
    gap: 30px;
    margin-top: 32px;
    align-content: start;
    background: transparent;
}

.project6-thumbs {
    grid-template-columns: repeat(6, 145px);
    gap: 16px;
}

.project6-thumbs .project-thumb {
    width: 145px;
    height: 145px;
}

.project-thumb {
    position: relative;
    width: 134px;
    height: 90px;
    padding: 0;
    border: 1px solid #555555;
    cursor: pointer;
    background: #111111;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-thumb:hover,
.project-thumb.is-active {
    border-color: #d6d5d4;
}

.project-press {
    margin-top: 30px;
    max-width: 1100px;
    border-top: 1px solid #3b3b3b;
    padding-top: 24px;
}

.project-press h2 {
    color: #d6d5d4;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.project-press-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-press-list a {
    display: inline-block;
    color: #d6d5d4;
    border: 1px solid #4a4a4a;
    padding: 10px 12px;
    letter-spacing: 2px;
    font-size: 10px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.project-press-list a:hover {
    background: #d6d5d4;
    color: #222222;
    border-color: #d6d5d4;
}

@media (max-width: 1300px) {
    .project-page {
        margin-left: 20px;
        padding-right: 20px;
    }

    .project-gallery,
    .project-gallery-reverse {
        flex-direction: column;
        gap: 24px;
        max-width: 100%;
        padding-right: 0;
        margin-left: 0;
    }

    .project-gallery + .project-gallery {
        margin-top: 36px;
    }

    .project-main-frame {
        width: min(100%, 1080px);
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .project-gallery-right {
        width: 100%;
        height: auto;
    }

    .project-page-title {
        white-space: normal;
    }

    .project-page-description {
        max-width: 100%;
    }

    .project-thumbs {
        width: 100%;
        grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
        gap: 12px;
        margin-top: 20px;
    }

    .project-thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .project-press {
        max-width: 100%;
    }
}

@media (max-width: 1300px) and (min-width: 901px) {
    .project-page {
        /* Keep project content clear of the fixed left sidebar when it is visible. */
        margin-left: 64px;
    }
}

@media (max-width: 900px) {
    body.resume-screen {
        overflow: auto;
    }

    .resume-page {
        margin-left: 20px;
        padding-right: 20px;
        margin-top: 82px;
        height: auto;
        display: block;
    }

    .resume-layout {
        grid-template-columns: 1fr;
        gap: 18px;
        min-height: auto;
    }

    .resume-intro {
        position: static;
        height: auto;
    }

    .resume-download-wrap {
        position: static;
        width: auto;
        text-align: left;
        margin-top: 8px;
    }

    .resume-title {
        margin-bottom: 10px;
        font-size: 22px;
    }

    .project-page {
        margin-top: 10px;
        margin-bottom: 36px;
        margin-left: 12px;
        padding-right: 12px;
    }

    .project-gallery,
    .project-gallery-reverse {
        gap: 18px;
    }

    .project-page-title {
        font-size: 18px;
        letter-spacing: 1.5px;
    }

    .project-page-description {
        font-size: 10px;
        letter-spacing: 1.5px;
        line-height: 1.7;
    }

    .project-thumbs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .project6-thumbs .project-thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .project-image-lightbox {
        padding: 20px;
    }

    .project-image-lightbox-close {
        top: 12px;
        right: 14px;
    }

    .project-press {
        margin-top: 22px;
        max-width: 100%;
    }

}

@media (max-width: 520px) {
    .project-thumbs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    body,
    body.page-ready,
    body.is-page-leaving {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .navbar {
        animation: none;
    }

    .reveal-on-scroll,
    .reveal-on-scroll.is-revealed,
    .photo-item.is-filter-enter,
    .navbar .main-menu ul li,
    .navbar ul li a,
    .photo-item,
    .photo-item img,
    .photo-lightbox {
        transition: none !important;
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* Photography Page */
.photo-page {
    margin-top: 20px;
    margin-bottom: 60px;
    margin-left: 40px;
    padding-right: 30px;
}

.photo-hero {
    position: relative;
    padding: 18px 10px 24px 10px;
    border-bottom: 1px solid #3a3a3a;
}

.photo-kicker {
    color: #9c9a98;
    text-transform: uppercase;
    letter-spacing: 2.4px;
    font-size: 10px;
    margin-bottom: 12px;
}

.photo-hero h1 {
    color: #d6d5d4;
    max-width: 760px;
    font-size: clamp(18px, 2.2vw, 30px);
    line-height: 1.25;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 400;
}

.photo-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 24px 10px 20px 10px;
}

.photo-filter {
    border: 1px solid #4f4f4f;
    color: #d6d5d4;
    background: transparent;
    padding: 8px 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: "cofo-sans-mono-variable", sans-serif;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.photo-filter:hover,
.photo-filter.is-active {
    background: #d6d5d4;
    color: #222222;
    border-color: #d6d5d4;
}

.photo-gallery-wrap {
    padding: 0 10px;
    content-visibility: auto;
    contain-intrinsic-size: 1400px;
}

.photo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.photo-item {
    position: relative;
    border: 1px solid #353535;
    background: #151515;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.photo-item.is-filter-enter {
    animation: photo-filter-enter 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: var(--filter-delay, 0ms);
}

@keyframes photo-filter-enter {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.photo-item:hover {
    border-color: #d6d5d4;
    transform: translateY(-2px);
}

.photo-item img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.photo-item[data-category="park"] img {
    transform: scale(1.18);
    transform-origin: center;
}

.photo-item:hover img {
    filter: grayscale(100%);
}

.photo-medium-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 6px;
    border: 1px solid rgba(214, 213, 212, 0.75);
    background: rgba(0, 0, 0, 0.55);
    color: #d6d5d4;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-size: 7px;
    z-index: 2;
}

.photo-tone-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 6px;
    border: 1px solid rgba(214, 213, 212, 0.75);
    background: rgba(0, 0, 0, 0.55);
    color: #d6d5d4;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-size: 7px;
    z-index: 2;
}

.photo-item figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 8px 10px;
    color: #f0efee;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    text-transform: uppercase;
    letter-spacing: 1.6px;
    font-size: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.photo-item:hover figcaption,
.photo-item:focus-visible figcaption {
    opacity: 1;
}

.photo-item.is-hidden {
    display: none;
}

.photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.photo-lightbox.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.photo-lightbox.is-closing {
    opacity: 0;
}

.photo-lightbox-img {
    max-width: min(94vw, 1420px);
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border: 1px solid #4b4b4b;
    background: #090909;
}

.photo-lightbox-close,
.photo-lightbox-prev,
.photo-lightbox-next {
    position: absolute;
    border: 1px solid #d6d5d4;
    background: transparent;
    color: #d6d5d4;
    width: 40px;
    height: 40px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.photo-lightbox-close:hover,
.photo-lightbox-prev:hover,
.photo-lightbox-next:hover {
    background: #d6d5d4;
    color: #222222;
}

.photo-lightbox-close {
    top: 14px;
    right: 16px;
}

.photo-lightbox-prev {
    left: 16px;
}

.photo-lightbox-next {
    right: 16px;
}

@media (max-width: 1300px) {
    .photo-page {
        margin-left: 20px;
        padding-right: 20px;
    }

    .photo-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .photo-page {
        margin-left: 12px;
        padding-right: 12px;
        margin-bottom: 40px;
    }

    .photo-hero {
        padding-top: 10px;
    }

    .photo-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .photo-lightbox {
        padding: 18px;
    }

    .photo-lightbox-prev,
    .photo-lightbox-next {
        bottom: 16px;
        top: auto;
    }

    .photo-lightbox-prev {
        left: calc(50% - 50px);
    }

    .photo-lightbox-next {
        right: calc(50% - 50px);
    }
}

@media (max-width: 520px) {
    .photo-controls {
        gap: 8px;
    }

    .photo-filter {
        font-size: 9px;
        letter-spacing: 1.5px;
        padding: 7px 10px;
    }
}
