* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
  font-family: Limelight-Regular;
  src: url(fonts/Limelight-Regular.ttf);
  font-weight: bold;
}
@font-face {
  font-family: MPlus2;
  src: url(fonts/MPLUS2-Light.ttf);
  font-weight: bold;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f7f4ef;
    color: #000;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 40px 60px;
}

.header-left h1 {
    line-height: 0.8;
}

.name-tirstan {
    font-family: 'Limelight-Regular', serif;
    font-size: 96px;
}

.name-oostdijk {
    font-family: 'MPlus2', sans-serif;
    font-size: 48px;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.nav-link {
    color: #ff6b35;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 0.7;
}

main {
    display: flex;
    padding: 60px 60px 40px;
    gap: 100px;
}

.projects-sidebar {
    flex-shrink: 0;
    width: 250px;
}

.projects-sidebar h2 {
    color: #ff6b35;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6b35;
}

.projects-list {
    list-style: none;
}

.projects-list li {
    margin-bottom: 15px;
}

.project-link {
    color: #000;
    text-decoration: none;
    font-size: 18px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: color 0.3s;
}

.project-link:hover {
    color: #ff6b35;
}

.project-link:hover .project-description {
    color: #ff6b35;
}

.project-link.hover {
    color: #ff6b35;
}

.project-link.hover .project-description {
    color: #ff6b35;
}

.project-number {
    color: #ff6b35;
    font-weight: 700;
    flex-shrink: 0;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.project-name {
    display: block;
    font-size: 18px;
   
}

.project-description {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #666;
    transition: color 0.3s;
}

.images-container {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
    margin-left: 15%;
    gap: 10px;
}

.images-container a {
    display: block;
}

.mobile-projects {
    display: none;
}

.image-box {
    width: 100%;
    height: 100px;
    background-color: #ccc;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) brightness(60%);
    transition: height 0.4s ease, transform 0.3s ease, filter 0.4s ease;
}

#image-1 {
    background-image: url('images/enyflow.png');
}

#image-2 {
    background-image: url('images/buurtschap-te-veld.png');
}

#image-3 {
    background-image: url('images/bladspiegels.png');
}

#image-4 {
    background-image: url('images/food-app.png');
}

.image-box.expand {
    height: 160px;
    transform: scale(1.06);
    filter: grayscale(0%);
}

@media (max-width: 1024px) {
    main {
        gap: 56px;
        padding: 40px 34px 32px;
    }

    .projects-sidebar {
        width: 220px;
    }

    .images-container {
        flex: 0 0 360px;
        margin-left: 5%;
    }

    .image-box {
        height: 96px;
    }

    .name-tirstan {
        font-size: 82px;
    }

    .name-oostdijk {
        font-size: 42px;
    }
}

@media (max-width: 800px) {
    header {
        padding: 32px 32px 24px;
    }

    .name-tirstan {
        font-size: 72px;
    }

    .name-oostdijk {
        font-size: 38px;
    }

    body:not(.project-detail) .header-right {
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
    }

    main {
        padding: 60px 32px 32px;
        gap: 40px;
    }

    .projects-sidebar,
    .images-container {
        display: none;
    }

    .mobile-projects {
        display: flex;
        flex-direction: column;
        gap: 30px;
        width: 80%;
        margin-left: auto;
        margin-right: auto;
    }

    .mobile-project-card {
        display: block;
        color: #0c0c0c;
        text-decoration: none;
        overflow: hidden;
        padding-bottom: 40px;
    }

    .mobile-project-head {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
    }

    .mobile-project-dot {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
        background: #ff6b35;
    }

    .mobile-project-number {
        min-width: 34px;
        font-size: 1.5rem;
        font-weight: 700;
        color: #6f7780;
        line-height: 1;
    }

    .mobile-project-line {
        flex: 1;
        height: 1px;
        background: #1b1b1b;
        opacity: 0.9;
    }

    .mobile-project-name {
        font-size: clamp(1.3rem, 4.4vw, 2rem);
        font-weight: 700;
        letter-spacing: -0.015em;
        white-space: nowrap;
        transition: color 0.3s;
    }

    .mobile-project-image {
        display: block;
        width: 100%;
        height: clamp(120px, 28vw, 200px);
        object-fit: cover;
        filter: none;
        transition: transform 0.35s ease, filter 0.35s ease;
    }

    .mobile-project-card:hover .mobile-project-image,
    .mobile-project-card:focus-visible .mobile-project-image {
        transform: scale(1.05);
        filter: none;
    }

    .mobile-project-card:hover .mobile-project-name,
    .mobile-project-card:focus-visible .mobile-project-name {
        color: #ff6b35;
    }
}

@media (max-width: 640px) {
    header {
        padding: 24px 20px 18px;
    }

    .name-tirstan {
        font-size: 54px;
    }

    .name-oostdijk {
        font-size: 30px;
    }

    body:not(.project-detail) .header-right {
        width: auto;
        justify-content: flex-start;
        flex-wrap: nowrap;
        flex-direction: column;
        align-items: flex-end;
    }

    .nav-link {
        font-size: 16px;
    }

    main {
        padding: 60px 20px 28px;
        gap: 32px;
    }

    .mobile-projects {
        gap: 24px;
    }

    .mobile-project-head {
        gap: 9px;
        margin-bottom: 8px;
    }

    .mobile-project-number {
        font-size: 1.25rem;
    }

    .mobile-project-name {
        font-size: clamp(1rem, 5vw, 1.45rem);
    }

    .mobile-project-dot {
        width: 12px;
        height: 12px;
    }

    .mobile-project-image {
        height: clamp(110px, 31vw, 170px);
    }

    .projects-sidebar h2 {
        font-size: 20px;
    }

    .project-link {
        gap: 12px;
    }

    .project-name {
        font-size: 17px;
    }

    .project-description {
        font-size: 13px;
    }

    .image-box {
        height: 120px;
    }
}

body.project-detail {
    background-color: #f7f4ef;
    color: #111;
}

body.project-detail header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(247, 244, 239, 0.94);
    backdrop-filter: blur(12px);
}

.project-page {
    display: block;
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 50px 72px;
}

body.project-detail .header-right {
    gap: 0;
}

body.project-detail .nav-link {
    font-size: 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-hero {
    padding-top: 12px;
}

.project-title {
    max-width: 900px;
    margin-bottom: 18px;
    font-size: clamp(4rem, 9vw, 6rem);
    font-weight: 400;
    letter-spacing: -0.05em;
    line-height: 0.92;
}

.project-tagline {
    margin-bottom: 34px;
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    font-weight: 700;
    line-height: 1.1;
}

.project-summary {
    max-width: 820px;
    margin-bottom: 90px;
    font-size: clamp(1.4rem, 2.3vw, 1.9rem);
    line-height: 1.25;
}

.project-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    margin-bottom: 72px;
}

.project-meta-block h2 {
    margin-bottom: 16px;
    font-size: 1rem;
    font-weight: 700;
}

.project-meta-block p,
.project-meta-block li {
    font-size: 0.98rem;
    line-height: 1.55;
}

.project-meta-block ul {
    list-style: none;
}

.project-context-block {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 80px;
    margin-top: 80px;
}

.project-context-block h2 {
    margin-bottom: 8px;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-context-block p {
    font-size: 1.3rem;
    line-height: 1.55;
}

.project-image-frame {
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
}

.project-image-frame-bb {
    overflow: hidden;
    border-radius: 24px;
    background: #203856;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
}

.project-image-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.project-image-frame-bb img {
    display: block;
    width: 80%;
    height: auto;
    margin: auto;
}

.project-lightbox {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.92);
}

.project-lightbox.is-open {
    display: flex;
}

.project-lightbox-image {
    max-width: min(96vw, 1400px);
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.project-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 900px) {
    .project-page {
        padding: 32px 24px 48px;
    }

    .project-summary {
        margin-bottom: 54px;
    }

    .project-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-bottom: 48px;
    }
}

@media (max-width: 640px) {
    body.project-detail header {
        padding: 28px 24px 18px;
    }

    body.project-detail .header-right {
        align-items: flex-end;
    }
}

@media (max-width: 800px) {
    body.project-detail .project-image-frame img,
    body.project-detail .project-image-frame-bb img {
        cursor: zoom-in;
    }
}

@media (max-width: 560px) {
    header {
        padding: 20px 16px 14px;
    }

    .name-tirstan {
        font-size: 42px;
    }

    .name-oostdijk {
        font-size: 24px;
    }

    main {
        padding: 60px 16px 24px;
        gap: 28px;
    }

    .projects-list li {
        margin-bottom: 18px;
    }

    .image-box {
        height: 100px;
    }

    .project-title {
        margin-bottom: 14px;
    }

    .project-tagline {
        margin-bottom: 24px;
    }

    .project-summary {
        font-size: 1.2rem;
    }

    .project-context-block h2 {
        font-size: 0.88rem;
    }

    .project-context-block p {
        font-size: 0.92rem;
    }

    .project-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px 20px;
    }

    .project-image-frame {
        border-radius: 18px;
    }
}

body.about-page {
    background: #f7f4ef;
    color: #111;
}

.about-main {
    display: block;
    max-width: 1500px;
    margin: 0 auto;
    padding: 40px 50px 56px;
}

.about-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 72px;
}

.about-title {
    font-size: clamp(3rem, 8vw, 4.3rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.about-grid {
    display: grid;
    grid-template-columns: 2.6fr 0.8fr 0.8fr 0.8fr;
    gap: 36px;
    margin-bottom: 100px;
}

.about-intro p,
.about-block li,
.about-block p {
    text-transform: uppercase;
    font-size: 1.18rem;
    line-height: 1.45;
}

.about-intro p {
    max-width: 840px;
}

.about-block h2 {
    margin-bottom: 26px;
    color: #656565;
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.about-block ul {
    list-style: none;
}

.about-block a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.about-block a:hover {
    color: #ff6b35;
}

.about-bottom-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.about-asterisk {
    color: #ff6b35;
    font-size: clamp(6rem, 12vw, 9rem);
    line-height: 0.8;
    font-weight: 700;
}

.about-bottom-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-transform: uppercase;
}

.about-bottom-links a {
    color: inherit;
    text-decoration: none;
    font-size: 1.08rem;
}

.about-bottom-links a:hover {
    color: #ff6b35;
}

@media (max-width: 1200px) {
    .about-grid {
        grid-template-columns: 1.8fr 1fr 1fr;
    }

    .about-grid .about-block:last-child {
        grid-column: 2 / span 2;
    }
}

@media (max-width: 900px) {
    .about-main {
        padding: 24px 24px 40px;
    }

    .about-top-row {
        margin-bottom: 44px;
    }

    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        margin-bottom: 84px;
    }

    .about-grid .about-intro {
        grid-column: 1 / -1;
    }

    .about-grid .about-block:last-child {
        grid-column: auto;
    }

    .about-intro p,
    .about-block li,
    .about-block p {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    body.about-page header {
        padding: 28px 20px 18px;
    }

    .about-main {
        padding: 18px 20px 36px;
    }

    .about-top-meta {
        gap: 12px;
        font-size: 0.74rem;
    }

    .about-line {
        width: 38px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        margin-bottom: 60px;
    }

    .about-block h2 {
        margin-bottom: 12px;
    }

    .about-bottom-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 26px;
        min-height: auto;
    }

    .about-bottom-links a {
        font-size: 0.95rem;
    }
}
