.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.is-locked {
    overflow: hidden;
}

.header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--header);
    color: #f7f1e6;
    transition: transform 0.25s ease;
}

.header.is-away {
    transform: translateY(-100%);
}

.header .container {
    width: min(1200px, calc(100% - 32px));
}

.header__container {
    position: relative;
    z-index: 45;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
    background: var(--header);
}

.logo__wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.logo__wrapper:hover {
    color: inherit;
}

.logo__img {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.logo__text {
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.socials-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.socials-block__text {
    margin: 0;
    font-size: 14px;
    color: #d8d0c2;
}

.socials__list {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.socials__link {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    overflow: hidden;
    line-height: 0;
}

.socials__link svg {
    display: block;
    width: 32px;
    height: 32px;
}

.header__container .socials-block {
    display: none;
}

.header__toggle {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    border-radius: 10px;
    padding: 10px 9px;
    cursor: pointer;
}

.header__toggle span,
.header__toggle span::before,
.header__toggle span::after {
    display: block;
    height: 2px;
    background: #fff;
    position: relative;
}

.header__toggle span::before,
.header__toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
}

.header__toggle span::before {
    top: -7px;
}

.header__toggle span::after {
    top: 7px;
}

.header__wrapper {
    position: fixed;
    top: 72px;
    left: 0;
    bottom: 0;
    width: min(300px, 100%);
    background: #fff;
    color: var(--ink);
    overflow: auto;
    padding: 24px 22px 32px;
    transform: translateX(-110%);
    transition: transform 0.25s ease;
    z-index: 30;
    box-shadow: 18px 0 40px rgba(27, 23, 18, 0.08);
}

.header.is-open + .header__wrapper {
    transform: none;
}

.main-nav__list {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    border-top: 1px solid var(--line);
}

.main-nav__item {
    border-bottom: 1px solid var(--line);
}

.main-nav__item a,
.main-nav__link {
    display: block;
    padding: 11px 0;
    color: var(--ink);
    text-decoration: none;
}

.main-nav__item a:hover,
.main-nav__item.is-active .main-nav__link {
    color: var(--accent-dark);
    font-weight: 700;
}

.announcment-banner {
    display: block;
    margin: 8px 0 24px;
    padding: 16px;
    background: var(--header);
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
}

.announcment-banner:hover {
    color: #fff;
}

.header__wrapper .socials-block__text {
    color: var(--ink-soft);
}

.page-content {
    flex: 1;
}

.breadcrumbs {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 0;
}

.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: var(--ink-soft);
}

.breadcrumbs__item span,
.breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.page-section {
    padding: 20px 0 72px;
}

.grid-columns--v2 {
    display: block;
}

.text-content h1 {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.15;
    margin: 0 0 16px;
    max-width: 18ch;
}

.text-content .lead {
    margin: 0 0 28px;
}

.text-content .prose {
    max-width: none;
}

.is-inner .page-content {
    font-family: "Manrope", "Segoe UI", "PT Sans", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.is-inner .about-hero {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px 32px;
    align-items: start;
    margin: 0 0 1.6em;
    max-width: 40rem;
}

.is-inner .about-hero__photo {
    display: block;
    width: 220px;
    height: 280px;
    object-fit: cover;
    object-position: 50% 12%;
    border-radius: 16px;
    background: var(--bg-muted);
}

.is-inner .about-hero h1 {
    max-width: none;
}

.is-inner .about-hero .lead {
    margin: 0;
}

.is-inner .prose .content-cta {
    margin-top: 2em;
}

.is-inner .text-content h1 {
    font-family: inherit;
    font-weight: 700;
    font-size: clamp(1.85rem, 3.4vw, 2.55rem);
    line-height: 1.28;
    letter-spacing: -0.03em;
    max-width: 22em;
    margin: 0 0 0.7em;
    text-wrap: pretty;
}

.is-inner .text-content .lead {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 40rem;
}

.is-inner .text-content {
    min-width: 0;
    max-width: 100%;
}

.is-inner .text-content .prose {
    max-width: 40rem;
    font-size: 1.1875rem;
    line-height: 1.75;
    font-weight: 400;
    letter-spacing: 0.005em;
}

.is-inner .prose p,
.is-inner .prose li {
    color: #2c271f;
    font-size: inherit;
    line-height: inherit;
}

.is-inner .prose p {
    margin: 0 0 1.15em;
}

.is-inner .prose ul,
.is-inner .prose ol {
    margin: 0 0 1.2em;
    padding-left: 1.25em;
}

.is-inner .prose li + li {
    margin-top: 0.4em;
}

.is-inner .prose h2,
.is-inner .prose h3,
.is-inner .prose h4 {
    font-family: inherit;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--ink);
    line-height: 1.3;
    text-wrap: pretty;
}

.is-inner .prose h2 {
    font-size: 1.45em;
    margin: 1.7em 0 0.55em;
}

.is-inner .prose h3 {
    font-size: 1.22em;
    margin: 1.45em 0 0.45em;
}

.is-inner .prose a {
    text-underline-offset: 0.18em;
}

.is-inner .prose img {
    display: block;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 1.4em 0;
    border-radius: 12px;
    cursor: zoom-in;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 48px 20px 24px;
    background: rgba(22, 19, 15, 0.88);
}

.lightbox[hidden] {
    display: none;
}

body.is-lightbox {
    overflow: hidden;
}

.lightbox__figure {
    margin: 0;
    max-width: min(1100px, 94vw);
    display: grid;
    justify-items: center;
    gap: 12px;
}

.lightbox__figure img {
    width: auto;
    height: auto;
    max-width: min(1100px, 94vw);
    max-height: 84vh;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}

.lightbox__caption {
    margin: 0;
    max-width: 42rem;
    color: #f7f1e6;
    font-size: 0.95rem;
    line-height: 1.45;
    text-align: center;
}

.lightbox__close,
.lightbox__nav {
    position: absolute;
    border: 0;
    background: transparent;
    color: #f7f1e6;
    cursor: pointer;
}

.lightbox__close {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    font-size: 32px;
    line-height: 1;
}

.lightbox__nav {
    top: 50%;
    width: 44px;
    height: 64px;
    transform: translateY(-50%);
    font-size: 40px;
    line-height: 1;
}

.lightbox__nav--prev { left: 8px; }
.lightbox__nav--next { right: 8px; }

.lightbox__nav[hidden] {
    display: none;
}

.is-inner .prose blockquote {
    margin: 1.4em 0;
    padding: 0.2em 0 0.2em 1em;
    border-left: 3px solid var(--accent);
    color: var(--ink);
}

.is-inner .prose .table-scroll {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5em 0 1.8em;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.is-inner .prose table {
    width: max-content;
    min-width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.92em;
    line-height: 1.45;
    background: var(--paper);
}

.is-inner .prose th,
.is-inner .prose td {
    padding: 0.7em 0.9em;
    text-align: left;
    vertical-align: top;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: #2c271f;
}

.is-inner .prose th:last-child,
.is-inner .prose td:last-child {
    border-right: 0;
}

.is-inner .prose thead th {
    background: var(--header);
    color: #f7f1e6;
    font-weight: 700;
    letter-spacing: -0.01em;
    border-bottom-color: var(--header);
}

.is-inner .prose tbody tr:nth-child(even) td {
    background: rgba(232, 224, 210, 0.45);
}

.is-inner .prose tbody tr:last-child td {
    border-bottom: 0;
}

.is-inner .prose td:nth-child(n + 2),
.is-inner .prose th:nth-child(n + 2) {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.is-inner .article-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 1.15em;
}

.is-inner .article-author__photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 18%;
    flex-shrink: 0;
    background: #eadde3;
}

.is-inner .article-author__body {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.is-inner .article-author__name {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.is-inner .article-author__name a {
    color: inherit;
    text-decoration: none;
}

.is-inner .article-author__name a:hover {
    color: var(--accent-dark);
}

.is-inner .article-author__role {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink-soft);
    line-height: 1.35;
}

.is-inner .article-author__date {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ink-soft);
}

.is-inner .eyebrow {
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.is-inner .post-card {
    font-size: 1.05rem;
}

.is-inner .post-card h3 {
    font-family: inherit;
    font-weight: 700;
    font-size: 1.22rem;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.is-inner .post-card time {
    font-size: 0.9rem;
    font-weight: 500;
}

.is-inner .work-results {
    max-width: 40rem;
    margin: 2.6em 0 0;
}

.is-inner .work-results__title {
    font-family: inherit;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.3;
    margin: 0 0 0.85em;
}

.is-inner .work-results__grid {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 12px;
    align-items: stretch;
}

.is-inner .work-results__card {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 168px;
    overflow: hidden;
    border-radius: 16px;
    color: #f7f1e6;
    text-decoration: none;
    background: #16130f;
}

.is-inner .work-results__card--lg,
.is-inner .work-results__card--wide {
    grid-column: 1 / -1;
    min-height: 320px;
}

.is-inner .work-results__card--tall {
    grid-row: span 2;
    min-height: 280px;
}

.is-inner .work-results__card--md {
    min-height: 210px;
}

.is-inner .work-results__card--sm {
    min-height: 148px;
}

.is-inner .work-results__card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.45s ease;
}

.is-inner .work-results__card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(22, 19, 15, 0.05) 18%, rgba(22, 19, 15, 0.86) 100%);
}

.is-inner .work-results__card:hover {
    color: #fff;
}

.is-inner .work-results__card:hover img {
    transform: scale(1.06);
}

.is-inner .work-results__body {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 6px;
    padding: 18px 18px 16px;
}

.is-inner .work-results__result {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.is-inner .work-results__card--lg .work-results__result,
.is-inner .work-results__card--wide .work-results__result {
    font-size: clamp(1.7rem, 4vw, 2.15rem);
}

.is-inner .work-results__name {
    font-size: 0.98rem;
    line-height: 1.35;
    color: #e7dfd2;
}

@media (max-width: 640px) {
    .is-inner .work-results__grid {
        grid-template-columns: 1fr;
    }

    .is-inner .work-results__card--lg,
    .is-inner .work-results__card--wide,
    .is-inner .work-results__card--tall {
        grid-column: auto;
        grid-row: auto;
        min-height: 240px;
    }
}

.is-inner .related-posts {
    max-width: 40rem;
    margin: 2.8em 0 0;
    padding: 1.6em 0 0;
    border-top: 1px solid var(--line);
}

.is-inner .related-posts__title {
    font-family: inherit;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.3;
    margin: 0 0 0.85em;
}

.is-inner .related-posts__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.is-inner .related-posts__list li {
    display: grid;
    gap: 2px;
    padding: 0.85em 0;
    border-bottom: 1px solid var(--line);
}

.is-inner .related-posts__list li:first-child {
    padding-top: 0;
}

.is-inner .related-posts__list a {
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.4;
    letter-spacing: -0.015em;
    color: var(--ink);
    text-decoration: none;
}

.is-inner .related-posts__list a:hover {
    color: var(--accent-dark);
}

.is-inner .related-posts__list time {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ink-soft);
}

.footer {
    margin-top: auto;
}

.footer .container {
    display: grid;
    gap: 20px;
    padding: 40px 0 28px;
}

.footer__content-text {
    margin: 0 0 8px;
    color: #d8d0c2;
}

@media (min-width: 1100px) {
    .header__toggle {
        display: none;
    }

    .header__container .socials-block {
        display: flex;
        margin-left: auto;
    }

    .header.is-away {
        transform: none;
    }

    .header__wrapper {
        position: fixed;
        transform: none;
        top: 72px;
        left: 0;
        bottom: 0;
        width: 300px;
        height: calc(100vh - 72px);
        padding-top: 24px;
        box-shadow: none;
        border-right: 1px solid var(--line);
    }

    .header__wrapper .socials-block {
        display: none;
    }

    .wrapper main,
    .wrapper .footer {
        padding-left: 300px;
    }

    .header .container {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        padding-left: 32px;
        padding-right: 32px;
    }

    .is-inner .breadcrumbs,
    .is-inner .page-section .container {
        width: min(1120px, calc(100% - 82px));
        margin-left: 50px;
        margin-right: auto;
    }
}

@media (max-width: 1099px) {
    .header__wrapper .socials-block {
        display: flex;
        margin-top: 8px;
    }
}

@media (max-width: 640px) {
    .is-inner .about-hero {
        grid-template-columns: 1fr;
    }

    .is-inner .about-hero__photo {
        width: 168px;
        height: 210px;
    }
}
