:root {
    --page-bg: #ffffff;
    --surface: #faf8f4;
    --text: #727272;
    --text-strong: #191919;
    --text-soft: #99938a;
    --line: #ebe6de;
    --site-font: "Futura", "Futura PT", "Avenir Next", "Century Gothic", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page-bg);
    color: var(--text);
    font-family: var(--site-font);
    font-size: 16px;
    letter-spacing: 0.01em;
}

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

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

.site-header {
    padding: 6.1rem 1.25rem 0;
    text-align: center;
}

.brand {
    display: inline-block;
}

.brand img {
    width: auto;
    height: 3.65rem;
    margin: 0 auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 0.85rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    transition: transform 180ms ease, opacity 180ms ease, filter 180ms ease;
}

.social-links a:hover {
    opacity: 0.84;
    transform: translateY(-1px);
}

.social-links svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.social-facebook svg {
    fill: #1877f2;
    stroke: none;
}

.site-nav {
    margin-top: 1.65rem;
    display: flex;
    justify-content: center;
    gap: 1.9rem;
    flex-wrap: wrap;
    font-family: var(--site-font);
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.01em;
    font-weight: 400;
}

.site-nav a {
    position: relative;
    display: inline-block;
    padding-bottom: 0.4rem;
    color: #353535;
    transition: color 180ms ease;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--text-strong);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--text-strong);
}

.site-nav a:hover::after,
.site-nav a.active::after {
    transform: scaleX(1);
}

.intro {
    min-height: 40vh;
    display: grid;
    place-items: center;
    padding: 4rem 1.5rem 4.75rem;
}

.intro-copy {
    width: min(100%, 52rem);
    text-align: center;
    line-height: 1.95;
    font-size: 1rem;
    font-weight: 400;
    color: #4f4f4f;
}

.intro-copy p {
    margin: 0 0 1rem;
}

.intro-line {
    margin: 0 0 0.7rem;
    white-space: normal;
}

.intro-line-small {
    font-size: 0.92rem;
    font-weight: 400;
}

.intro-line-medium {
    font-size: 1rem;
    font-weight: 400;
}

.intro-line-large {
    font-size: 1.08rem;
    font-weight: 400;
}

.portfolio-grid-section {
    width: min(100%, 94rem);
    margin: 0 auto;
    padding: 0 1.5rem 0;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.2rem;
    flex-wrap: wrap;
}

.tab {
    border: 0;
    background: transparent;
    padding: 0;
    font-family: var(--site-font);
    text-transform: uppercase;
    letter-spacing: 0.01em;
    font-size: 1rem;
    color: #353535;
    cursor: pointer;
    font-weight: 400;
    transition: opacity 180ms ease;
}

.tab:hover {
    opacity: 0.72;
}

.tab.active {
    color: var(--text-strong);
}

.portfolio-grid {
    column-count: 3;
    column-gap: 1rem;
}

.project-card {
    break-inside: avoid;
    margin-bottom: 2rem;
}

.project-link {
    display: block;
}

.project-image-wrap {
    overflow: hidden;
    background: #f5f2ec;
}

.project-image-wrap img {
    height: auto;
    object-fit: cover;
    transition: transform 420ms ease, filter 420ms ease;
}

.project-link:hover .project-image-wrap img {
    transform: scale(1.015);
    filter: saturate(0.97);
}

.project-caption {
    padding-top: 0.75rem;
}

.project-caption h2,
.project-caption p {
    margin: 0;
}

.project-caption h2 {
    color: var(--text-strong);
    font-family: var(--site-font);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.18rem;
    text-transform: uppercase;
}

.project-caption p {
    margin-top: 0.35rem;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.26rem;
    color: var(--text-soft);
}

.project-card.is-hidden {
    display: none;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-bottom: 0;
}

.pagination button {
    border: 0;
    background: transparent;
    padding: 0.2rem 0.2rem 0.3rem;
    color: var(--text-soft);
    font-family: var(--site-font);
    font-size: 0.62rem;
    letter-spacing: 0.24rem;
    text-transform: uppercase;
    cursor: pointer;
}

.pagination button.active {
    color: var(--text-strong);
}

.site-footer {
    margin-top: 1.75rem;
    padding: 1.25rem 1rem 2rem;
    text-align: center;
}

.site-footer p {
    margin: 0;
    font-family: var(--site-font);
    font-size: 0.58rem;
    letter-spacing: 0.28rem;
    text-transform: uppercase;
    color: var(--text-soft);
}

.content-shell {
    padding: 4.75rem 1.5rem 5.5rem;
}

.content-narrow {
    width: min(100%, 57rem);
    margin: 0 auto;
}

.content-wide {
    width: min(100%, 92rem);
    margin: 0 auto;
}

.content-form {
    width: min(100%, 58rem);
    margin: 0 auto;
}

.contact-shell {
    padding-bottom: 2.5rem;
}

.page-title,
.detail-title {
    margin: 0 0 1rem;
    text-align: center;
    color: var(--text-strong);
    font-family: var(--site-font);
    font-size: clamp(1.8rem, 3.3vw, 2.7rem);
    font-weight: 300;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}

.page-intro,
.detail-copy,
.blog-post-body,
.story-copy {
    line-height: 1.95;
}

.page-intro {
    max-width: 38rem;
    margin: 0 auto 4.5rem;
    text-align: center;
}

.story-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.founder-image {
    width: min(100%, 27rem);
    margin: 0 auto 1.75rem;
}

.founder-name {
    margin: 0;
    color: var(--text-strong);
    font-family: var(--site-font);
    font-size: 0.92rem;
    font-weight: 400;
    letter-spacing: 0.24rem;
    text-transform: uppercase;
}

.founder-role {
    margin: 0.45rem 0 0;
    color: var(--text-soft);
    font-family: var(--site-font);
    font-size: 0.62rem;
    letter-spacing: 0.24rem;
    text-transform: uppercase;
}

.story-title {
    margin-bottom: 2.4rem;
}

.story-copy p {
    margin: 0 0 1.35rem;
    text-align: center;
}

.feature-list {
    display: grid;
    gap: 2rem;
}

.feature-item {
    padding: 1.4rem;
    background: var(--surface);
    display: grid;
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
    gap: 1.4rem;
    align-items: start;
}

.feature-image-wrap {
    overflow: hidden;
    background: #f5f2ec;
    margin: 0;
}

.feature-image-wrap img {
    aspect-ratio: 4 / 4.8;
    object-fit: cover;
    height: 100%;
}

.feature-copy {
    padding-top: 0.15rem;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.feature-item h2 {
    margin: 0 0 0.75rem;
    color: var(--text-strong);
    font-family: var(--site-font);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.16rem;
    text-transform: uppercase;
    line-height: 1.5;
}

.feature-publication,
.blog-date,
.detail-category,
.detail-back-link {
    font-family: var(--site-font);
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.28rem;
    color: var(--text-soft);
}

.feature-item > p:last-child {
    margin: 0;
    line-height: 1.9;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem 1.6rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
}

.blog-image-wrap {
    overflow: hidden;
    background: #f5f2ec;
    margin-bottom: 1.2rem;
}

.blog-image-wrap img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform 420ms ease;
}

.blog-card:hover .blog-image-wrap img {
    transform: scale(1.03);
}

.blog-card h2 {
    margin: 0 0 0.7rem;
    color: var(--text-strong);
    font-family: var(--site-font);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.18rem;
    text-transform: uppercase;
}

.blog-date {
    margin: 0 0 0.9rem;
}

.blog-excerpt {
    margin: 0 0 1.2rem;
    line-height: 1.9;
}

.blog-button,
.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-width: 10rem;
    padding: 0.78rem 1.2rem;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text-strong);
    font-family: var(--site-font);
    font-size: 0.56rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    cursor: pointer;
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.blog-button:hover,
.submit-button:hover {
    background: var(--surface);
    border-color: #ddd4c8;
    transform: translateY(-1px);
}

.blog-post-date {
    text-align: center;
    margin-bottom: 2rem;
}

.blog-post-hero {
    margin-bottom: 2.25rem;
    background: #f5f2ec;
}

.blog-post-hero img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.blog-post-intro {
    margin: 0 0 2rem;
}

.blog-post-section {
    margin-bottom: 2rem;
}

.blog-post-section h2 {
    margin: 0 0 0.75rem;
    color: var(--text-strong);
    font-family: var(--site-font);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.16rem;
    text-transform: uppercase;
}

.detail-back-wrap {
    margin-bottom: 1.6rem;
    text-align: center;
}

.detail-header {
    margin-bottom: 1.8rem;
}

.detail-category {
    margin: 0 0 0.75rem;
    text-align: center;
}

.detail-copy {
    max-width: 44rem;
    margin: 0 auto 3rem;
    text-align: center;
}

.detail-grid {
    column-count: 3;
    column-gap: 1rem;
}

.detail-image-wrap {
    break-inside: avoid;
    margin-bottom: 1rem;
    overflow: hidden;
    background: #f5f2ec;
}

.detail-image-wrap img {
    height: auto;
    object-fit: cover;
    transition: transform 420ms ease;
}

.detail-image-wrap:hover img {
    transform: scale(1.02);
}

.detail-empty {
    text-align: center;
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    padding: 0.78rem 0.95rem;
    background: #fff;
    color: var(--text-strong);
    font: inherit;
    font-size: 0.85rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    font-family: var(--site-font);
    font-size: 0.52rem;
    text-transform: uppercase;
    letter-spacing: 0.18rem;
    color: #b4aa9d;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.captcha-prompt {
    color: var(--text-strong);
    font-family: var(--site-font);
    font-size: 0.56rem;
    text-transform: uppercase;
    letter-spacing: 0.16rem;
}

.captcha-row input {
    max-width: 12rem;
}

.submit-message {
    margin: 0;
    color: #c25e4c;
}

.submit-message.success {
    color: #6d8460;
}

@media (max-width: 960px) {
    .feature-item {
        grid-template-columns: 1fr;
    }

    .feature-image-wrap {
        max-width: 26rem;
    }

    .portfolio-grid,
    .detail-grid {
        column-count: 2;
    }

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

@media (max-width: 640px) {
    .site-header {
        padding-top: 3.1rem;
    }

    .brand img {
        height: 2.5rem;
    }

    .site-nav {
        gap: 0.9rem;
        font-size: 0.9rem;
        letter-spacing: 0.18rem;
    }

    .intro {
        min-height: 28vh;
        padding: 2.4rem 1.2rem 3.2rem;
    }

    .intro-copy {
        font-size: 0.84rem;
    }

    .category-tabs {
        margin-bottom: 2rem;
    }

    .portfolio-grid,
    .detail-grid {
        column-count: 1;
    }

    .feature-item {
        padding: 1rem;
        gap: 1rem;
    }

    .feature-image-wrap {
        max-width: 100%;
    }

    .blog-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .content-shell {
        padding-top: 3.2rem;
    }
}
