/* Basic reset */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f6f5f1;
    color: #161616;
    font-family:
        Arial,
        Helvetica,
        sans-serif;
    line-height: 1.6;
}

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

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

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 900px;
    margin-bottom: 24px;
    font-size: clamp(3rem, 8vw, 6.5rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

h2 {
    margin-bottom: 24px;
    font-size: clamp(2.3rem, 5vw, 4rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

h3 {
    margin-bottom: 12px;
    font-size: 1.5rem;
    line-height: 1.15;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}


/* Navigation */

.announcement-banner {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: #111;
    color: white;

    text-align: center;
    padding: 10px 20px;

    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.site-header {
    position: sticky;
    top: 40px;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(246, 245, 241, 0.9);
    backdrop-filter: blur(12px);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
}

.logo {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 2px solid #161616;
    border-radius: 50%;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.contact-link {
    padding: 10px 18px;
    border: 1px solid #161616;
    border-radius: 999px;
}


/* Hero */

.hero {
    display: grid;
    grid-template-columns: 1fr 350px;
    align-items: center;
    gap: 60px;
    min-height: calc(100vh - 76px);
    padding-block: 100px;
}

.hero-description {
    max-width: 680px;
    margin-bottom: 32px;
    color: #555;
    font-size: 1.2rem;
}

.profile-image {
    width: 100%;
    height: auto;
    object-fit: cover;

    border: 6px solid #000;
    box-shadow: 8px 8px 0 #000;
}

.eyebrow,
.project-type {
    margin-bottom: 14px;
    color: #666;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}


/* Buttons */

.button {
    display: inline-block;
    padding: 13px 22px;
    border: 1px solid #161616;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.primary-button {
    background: #161616;
    color: #fff;
}

.primary-button:hover {
    background: #444;
}

.secondary-button:hover {
    background: #e8e7e2;
}


/* Shared sections */

.section {
    padding-block: 110px;
}

.section-heading {
    max-width: 700px;
    margin-bottom: 48px;
}


/* Featured cards */

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.featured-card {
    display: flex;
    min-height: 320px;
    padding: 28px;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 24px;
    background: #fff;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.featured-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.09);
}

.card-arrow {
    align-self: flex-end;
    font-size: 2rem;
}


/* Gallery */
.gallery-section {
    width: min(1000px, calc(100% - 40px));
    margin: 0 auto;
    padding: 100px 0;
}

.carousel {
    position: relative;
}

.carousel-track {
    position: relative;
    overflow: hidden;
    border: 2px solid #000;
    border-radius: 24px;
    background: #ddd;
}

.carousel-image {
    display: none;
    width: auto;
    max-width: 100%;
    max-height: 75vh;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.carousel-image.active {
    display: block;
}

.carousel-button {
    position: absolute;
    top: 50%;
    z-index: 2;

    width: 48px;
    height: 48px;

    border: 2px solid #000;
    border-radius: 50%;
    background: #fff;
    color: #000;

    font-size: 1.5rem;
    cursor: pointer;

    transform: translateY(-50%);
}

.carousel-button:hover {
    background: #000;
    color: #fff;
}

.previous {
    left: 20px;
}

.next {
    right: 20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    padding: 0;

    border: 1px solid #000;
    border-radius: 50%;
    background: transparent;

    cursor: pointer;
}

.dot.active {
    background: #000;
}


/* About */

.about-section {
    background: #161616;
    color: #fff;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.about-section .eyebrow {
    color: #aaa;
}

.about-copy {
    color: #d7d7d7;
    font-size: 1.2rem;
}

.class-button {
    background: #161616;
    color: white;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    text-align: right;
}

/* Extras */

.link-list {
    border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.link-list a {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding-block: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    font-size: 1.2rem;
}

.link-list a:hover {
    padding-left: 12px;
}


/* Contact */

.contact-section {
    background: #deddd7;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-form {
    display: grid;
    gap: 10px;
}

.contact-form label {
    margin-top: 10px;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    background: #fff;
    font: inherit;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    width: fit-content;
    margin-top: 16px;
}


/* Footer */

.site-footer {
    padding-block: 35px;
    background: #161616;
    color: #fff;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.footer-content p {
    margin: 0;
}

.footer-content div {
    display: flex;
    gap: 24px;
}


/* Tablet */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .profile-image {
        width: 220px;
        height: 280px;
    }

    .featured-grid,
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}


/* Mobile */

@media (max-width: 650px) {
    .nav-links li:not(:last-child) {
        display: none;
    }

    .hero {
        padding-block: 70px;
    }

    .section {
        padding-block: 75px;
    }

    .featured-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .featured-card {
        min-height: 260px;
    }

    .footer-content {
        flex-direction: column;
    }
}

/* About page */

.active-nav {
    font-weight: 700;
}

.about-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
    align-items: center;
    gap: 70px;
    min-height: calc(100vh - 116px);
    padding-block: 100px;
}

.about-hero h1 {
    font-size: clamp(3.2rem, 7vw, 6rem);
}

.about-intro,
.about-personal {
    max-width: 680px;
    color: #555;
    font-size: 1.05rem;
}

.about-photo-frame {
    margin: 0;
}

.about-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border: 6px solid #000;
    box-shadow: 10px 10px 0 #000;
}

.about-photo-frame figcaption {
    margin-top: 20px;
    color: #666;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.detail-list {
    border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.detail-row {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
    gap: 60px;
    padding-block: 34px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.detail-date {
    margin-bottom: 8px;
    color: #666;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.detail-description {
    color: #555;
}

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

.credentials-section {
    background: #deddd7;
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.knowledge-section {
    padding-top: 24px;
}

.knowledge-section h3 {
    margin-bottom: 14px;
}

.knowledge-section p {
    margin-bottom: 0;
    color: #555;
}

.about-cta {
    background: #161616;
    color: #fff;
}

.about-cta .eyebrow {
    color: #aaa;
}

.about-cta-layout {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 50px;
}

.about-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.about-cta .secondary-button {
    border-color: #fff;
    color: #fff;
}

.about-cta .secondary-button:hover {
    background: #fff;
    color: #161616;
}

.about-more {
    display: flex;
    justify-content: flex-end;
    margin-top: 40px;
}

.about-button {
    border-color: #fff;
    color: #fff;
}

.about-button:hover {
    background: #fff;
    color: #161616;
}

@media (max-width: 900px) {
    .about-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .about-photo-frame {
        max-width: 420px;
    }

    .credential-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-cta-layout {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 650px) {
    .about-hero {
        gap: 45px;
        padding-block: 70px;
    }

    .detail-row,
    .credential-grid {
        grid-template-columns: 1fr;
    }

    .detail-row {
        gap: 16px;
    }

    .about-more {
        justify-content: flex-start;
    }
}