/* ── Global variables ── */
:root {
    --nav-h: 70px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
    background-color: #F5F6F1;
}

body {
    padding-top: var(--nav-h);
    font-family: 'Onest', sans-serif;
    color: #111;
}

/* ── Shared ── */
.section-label {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

/* ── Desktop nav ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    background-color: #F5F6F1;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 70px;
}

.nav-links a {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    color: inherit;
}

.nav-links a.active {
    font-weight: 800;
}

.nav-links a:hover {
    opacity: 0.5;
}

/* ── Mobile nav bar ── */
.nav-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    z-index: 100;
    align-items: center;
    justify-content: center;
    background-color: #F5F6F1;
}

.nav-mobile-title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.15em;
}

.hamburger {
    position: absolute;
    left: 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #111;
    transition: opacity 0.2s;
}

/* ── Mobile menu overlay ── */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 60px;
    background-color: #F5F6F1;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    display: block;
    width: 100%;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-decoration: none;
    color: inherit;
    padding: 25px 16px;
    border-bottom: 1px solid #000;
}

.mobile-menu a.active {
    font-weight: 800;
}

.mobile-menu a:first-of-type {
    border-top: 1px solid #000;
}

.mobile-menu a:hover {
    opacity: 0.5;
}

.mobile-close {
    position: absolute;
    top: 10px;
    right: 16px;
    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}

/* ── Sections ── */
section {
    height: calc(100vh - var(--nav-h));
    display: flex;
}

/* ── Home ── */
#home {
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    background-image: url('assets/home_background.jpg');
    opacity: 0.77;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #F5F6F1;
}

.home-name {
    font-size: 80px;
    font-weight: 600;
    letter-spacing: 0.07em;
    line-height: 1;
    margin-bottom: 20px;
}

.home-name svg {
    width: 407px;
    height: auto;
    display: block;
}

.home-sub {
    font-size: 38px;
    font-weight: 600;
    letter-spacing: 0.07em;
    line-height: 48px;
    padding-bottom: 150px;
}

/* ── Tagline ── */
.tagline {
    flex-direction: column;
    padding: 40px 20px;
    justify-content: center;
    height: 50vh;
}

.tagline-text {
    font-size: 33px;
    font-weight: 400;
    letter-spacing: 0.7px;
    line-height: 42px;
    text-align: center;
}

.tagline-text-bold {
    font-size: 33px;
    letter-spacing: 0.7px;
    line-height: 42px;
    text-align: center;
    font-weight: 800;
    padding-bottom: 20px;
}

.tagline-subtext {
    font-size: 20px;
    font-weight: 200;
    letter-spacing: 0.7px;
    line-height: 42px;
    text-align: center;
}

/* ── Objects ── */
#objects {
    flex-direction: column;
    padding: 0px 60px 80px;
}

.objects-header {
    margin-bottom: 60px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.view-toggle {
    display: flex;
    gap: 5ch;
}

.view-btn {
    font-family: 'Onest', sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.02em;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: inherit;
    position: relative;
    text-decoration: none;
}

.view-btn::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1.5px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.view-btn.active {
    font-weight: 600;
}

.view-btn.active::after {
    transform: scaleX(1);
}

.object-image {
    position: relative;
}

.img-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.object-image .img-drawing {
    object-fit: contain;
    transition: opacity 0.4s ease;
}

.objects-grid.show-photo .img-drawing {
    opacity: 0;
}

.objects-grid.show-photo .img-photo {
    opacity: 1;
}

.objects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 180px;
    width: 100%;
    padding-left: 30px;
    padding-right: 30px;
}

.object-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    padding-left: 20px;
    padding-right: 20px;
    color: inherit;
    text-decoration: none;
}

.object-caption {
    font-weight: 600;
    font-size: 35px;
    letter-spacing: 0em;
    margin-bottom: 32px;
    text-align: center;
}

.object-image {
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
}

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

/* ── Projects ── */
#projects {
    padding: 0;
    align-items: stretch;
}

.project-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0px 48px;
    gap: 24px;
    position: relative;
}

.project-title-row {
    display: block;
}

.project-nav-arrow {
    position: absolute;
    bottom: 48px;
    right: 48px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    line-height: 0;
}

.project-nav-arrow:hover {
    opacity: 0.5;
}

.project-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-top: 8px;
}

.project-link {
    font-size: 24px;
    font-weight: 400;
    text-decoration: underline;
    color: inherit;
    line-height: 130%;
    padding-bottom: 10px;
}

.project-link:hover {
    opacity: 0.5;
}

.project-desc {
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
    letter-spacing: 0.01em;
    padding: 20px 0px;
}

.project-image {
    width: 55%;
    overflow: hidden;
}

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

/* ── About ── */
#about {
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    background-image: url('assets/personal_woodworking.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #F5F6F1;
}

.about-title {
    font-size: 38px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.about-link {
    color: #F5F6F1;
}

/* ── Contact ── */
#contact {
    flex-direction: column;
    height: auto;
    padding: 0;
}

/* Hide mobile contact layout on desktop (overridden inside the mobile media query) */
.contact-mobile {
    display: none;
}

.contact-row1 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 60px 60px 0;
}

.contact-col-left {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-logo {
    margin-bottom: 200px;
}

.contact-logo svg {
    width: 204px;
    height: auto;
}

.contact-nav-legal {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
}

.contact-nav,
.contact-legal {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-nav a,
.contact-legal a {
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    color: inherit;
    letter-spacing: 0.02em;
}

.contact-nav a:hover,
.contact-legal a:hover {
    opacity: 0.5;
}

.contact-col-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-left: 40px;
}

.contact-heading {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.contact-body {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.01em;
    max-width: 400px;
    margin-bottom: 24px;
}

.contact-detail {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.contact-row2 {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 40px 60px;
    margin-top: 60px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.contact-row2 a {
    color: inherit;
    text-decoration: none;
}

.contact-row2 a:hover {
    opacity: 0.5;
}

.contact-row3 {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 24px 60px 40px;
    gap: 0;
    position: relative;
}

.contact-copyright {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.01em;
    flex: 0 0 33.333%;
}

.contact-support {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.01em;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 33.333%;
    text-align: center;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    :root {
        --nav-h: 40px;
    }

    nav {
        display: none;
    }

    .nav-mobile {
        display: flex;
    }

    .nav-mobile-logo {
        width: 60px;
        height: auto;
        display: block;
    }

    html {
        scroll-padding-top: 40px;
    }

    /* Global mobile padding — 20px left/right, no extra padding elsewhere */
    section {
        height: auto;
        min-height: unset;
        padding: 40px 20px 0;
    }

    #home {
        height: 100vh;
        padding: 40px 20px 0;
    }

    .home-name svg {
        width: 60vw;
        height: auto;
    }

    .home-sub {
        font-size: 20px;
        width: 60vw;
        line-height: 1.35;
        letter-spacing: 0.07em;
        text-align: center;
    }

    .tagline:not(.tagline-collab) {
        display: none;
        padding: 20px 10px;
        min-height: unset;
    }

    .tagline-text {
        font-size: 16px;
        line-height: 24px;
        padding: 0;
    }

    .tagline-text-bold {
        font-size: 20px;
        line-height: 28px;
        padding-bottom: 12px;
        white-space: nowrap;
        text-align: left;

    }

    .tagline-subtext {
        font-size: 14px;
        line-height: 22px;
        text-align: left;

    }

    .view-btn {
        font-size: 18px;
    }

    #objects {
        padding: 40px 20px 0;
    }

    .objects-header {
        margin-bottom: 32px;
    }

    .objects-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0;
    }

    .object-item {
        padding: 0;
        padding-bottom: 40px;
    }

    .object-image {
        width: 100vw;
        margin-left: -20px;
        margin-right: -20px;
    }

    .object-image {
        display: flex;
        justify-content: center;
        align-items: center;
        aspect-ratio: unset;
        overflow: visible;
        height: auto;
    }

    .img-photo {
        max-width: 50vw;
        width: auto;
        height: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    .object-image .img-drawing {
        max-width: 50vw;
        width: auto;
        height: auto;
    }

    .object-caption {
        font-size: 25px;
    }

    #projects {
        flex-direction: column-reverse;
        padding: 10px 20px 0;
        min-height: unset;
    }

    .project-left {
        width: 100%;
        padding: 0;
        gap: 16px;
        padding: 20px 0;
        position: static;
    }

    .project-title-row {
        display: flex;
        align-items: center;
        width: 100%;
    }

    .project-title {
        flex: 1;
    }

    .project-nav-arrow {
        position: static;
        flex-shrink: 0;
    }

    .project-image {
        width: calc(100% + 40px);
        margin-left: -20px;
        margin-right: -20px;
        height: 60vw;
    }

    .project-link {
        font-size: 15px;
        padding-bottom: 10px;
    }

    .project-desc {
        font-size: 15px;
        padding: 0;
    }

    #about {
        padding: 0;
        min-height: unset;
        height: calc(100vw * 1.3 * (1178 / 1920));
        background-size: 130% auto;
        background-position: left center;
    }

    .about-title {
        font-size: 25px;
        padding-top: 50px;
    }

    /* Contact mobile */
    #contact {
        padding: 0;
        scroll-margin-top: 40px;
    }

    .contact-mobile {
        display: flex;
        flex-direction: column;
        padding: 40px 20px 50px;
        gap: 20px;
    }

    .contact-mobile .contact-heading {
        font-size: 18px;
        font-weight: 700;
        letter-spacing: 0.05em;
    }

    .contact-mobile .contact-body {
        font-size: 15px;
        font-weight: 400;
        line-height: 1.6;
        max-width: 100%;
    }

    .contact-mobile-cols {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20vw;
        padding-bottom: 40px;
    }

    .contact-mobile-col-left,
    .contact-mobile-col-right {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .contact-mobile-col-left p,
    .contact-mobile-col-right a {
        font-size: 15px;
        font-weight: 400;
        line-height: 1.5;
        text-decoration: none;
        color: inherit;
    }

    .contact-mobile-col-right a:hover {
        opacity: 0.5;
    }

    .contact-mobile-nav {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .contact-mobile-nav a {
        font-size: 15px;
        font-weight: 400;
        text-decoration: none;
        color: inherit;
    }

    .contact-mobile-legal {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: flex-end;
    }

    .contact-mobile-legal a {
        font-size: 15px;
        font-weight: 400;
        text-decoration: none;
        color: inherit;
    }

    .contact-mobile .contact-support {
        position: static;
        width: 100%;
        transform: none;
        font-size: 12px;
        line-height: 1.6;
        text-align: left;
    }

    .contact-mobile .contact-copyright {
        font-size: 12px;
        line-height: 1.6;
    }

    /* Hide desktop contact layout on mobile */
    .contact-row1,
    .contact-row2,
    .contact-row3 {
        display: none;
    }

}