@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap');

:root {
    --bg-soft: #ffffff;
    --bg-light: #ffffff;
    --ink: #262724;
    --muted: #262724;
    --line: #d6d6d6;
    --brand: #d22f45;
    --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --font-header: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg-soft);
    font-size: 16px;
    line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 0.6rem;
    font-family: var(--font-header);
    line-height: 1.15;
    font-size: 32px;
    font-weight: 400;
}

p {
    margin: 0 0 0.8rem;
    color: var(--ink);
    font-size: 16px;
}

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

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

.skip-link {
    position: absolute;
    top: -120px;
    left: 8px;
    background: #000;
    color: #fff;
    padding: 8px 10px;
    z-index: 999;
}

.skip-link:focus {
    top: 8px;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 60;
    padding: 16px 22px;
    font-family: var(--font-body);
}

body.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

.site-header--transparent {
    background: transparent;
    border-bottom: 0;
}

.site-header--white {
    background: #ffffff;
    border-bottom: 0;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 100;
}

.site-brand__name {
    font-family: var(--font-body);
    font-size: clamp(28px, 3vw, 54px);
    letter-spacing: -0.05em;
    line-height: 1;
    color: #fff;
    text-transform: lowercase;
    font-weight: 600;
}

.site-brand__logo {
    display: block;
    width: 65px;
    height: auto;
    object-fit: contain;
}

.site-brand__name span,
.site-footer__logo span {
    color: var(--brand);
}

.primary-nav__list.is-hidden {
    display: none;
}

.menu-toggle {
    position: fixed;
    top: 16px;
    right: 22px;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    display: inline-block;
    cursor: pointer;
    pointer-events: auto;
    z-index: 9999;
}

.menu-toggle span {
    position: absolute;
    right: 0;
    width: 28px;
    height: 2.5px;
    background: #262724;
    display: block;
    transition: transform 0.26s ease, top 0.26s ease, opacity 0.2s ease, background-color 0.2s ease;
    transform-origin: center;
}

body.admin-bar .menu-toggle {
    top: 48px;
}

@media (max-width: 782px) {
    body.admin-bar .menu-toggle {
        top: 62px;
    }
}

.menu-toggle span:nth-child(1) {
    top: 13px;
}

.menu-toggle span:nth-child(2) {
    top: 21px;
}

.menu-toggle span:nth-child(3) {
    top: 29px;
}

.menu-toggle.is-active span:nth-child(1),
.menu-toggle[aria-expanded='true'] span:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2),
.menu-toggle[aria-expanded='true'] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3),
.menu-toggle[aria-expanded='true'] span:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
}

.site-menu-panel {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
}

.site-menu-panel.is-open {
    opacity: 1;
    pointer-events: auto;
}

.site-menu-panel__sheet {
    margin-left: auto;
    width: min(58vw, 820px);
    height: 100dvh;
    background: #ffffff;
    padding: 28px 42px 42px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow: auto;
}

.site-menu-panel.is-open .site-menu-panel__sheet {
    transform: translateX(0);
}

.site-menu-panel__layout {
    margin-top: clamp(92px, 10vh, 150px);
    display: grid;
    grid-template-columns: 1fr minmax(220px, 0.7fr);
    align-items: stretch;
    gap: 30px;
}

.site-menu-panel__primary-list,
.site-menu-panel__secondary-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-menu-panel__primary {
    text-align: right;
}

.site-menu-panel__primary-item + .site-menu-panel__primary-item {
    margin-top: 10px;
}

.site-menu-panel__primary-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-family: var(--font-body);
    font-size: 45px;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: #262724;
    text-align: right;
    padding-left: 44px;
}

.site-menu-panel__primary-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 32px;
    height: 33px;
    background: url('../icons/arrow.svg') no-repeat center / contain;
    transform: translateY(-52%) translateX(-7px);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.site-menu-panel__primary-item:hover .site-menu-panel__primary-link::before,
.site-menu-panel__primary-item.is-current .site-menu-panel__primary-link::before,
.site-menu-panel__primary-item.is-submenu-active .site-menu-panel__primary-link::before {
    opacity: 1;
    transform: translateY(-52%) translateX(0);
}

.site-menu-panel__secondary {
    align-self: stretch;
    display: flex;
    align-items: flex-start;
    border-left: 1px solid #bdbdbd;
    padding-left: 34px;
    text-align: left;
}

.site-menu-panel__secondary.is-empty {
    border-left-color: transparent;
}

.site-menu-panel__secondary-item + .site-menu-panel__secondary-item {
    margin-top: 12px;
}

.site-menu-panel__secondary-link {
    font-family: var(--font-body);
    font-size: 24px;
    line-height: 1.06;
    text-transform: uppercase;
    color: #262724;
    text-align: left;
}

.site-menu-panel__secondary-link:hover {
    text-decoration: underline;
}

body.has-menu-open {
    overflow: hidden;
}

.site-header--transparent .site-brand__name {
    color: #ffffff;
}

.site-header--transparent .menu-toggle span {
    background: #ffffff;
}

.site-header--transparent .menu-toggle.is-active span {
    background: #262724;
}

body.has-menu-open .menu-toggle span {
    background: #262724;
}

.site-header--white .site-brand__name {
    color: #262724;
}

.home-hero {
    position: relative;
    height: 780px;
    overflow: hidden;
    background: #101010;
}

.home-hero__media,
.home-hero__slides,
.home-hero__slide {
    position: absolute;
    inset: 0;
}

.home-hero__image,
.home-hero__slide img,
.home-hero__media iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.home-hero__image,
.home-hero__slide img {
    object-fit: cover;
    object-position: center center;
}

.home-hero__media iframe {
    border: 0;
}

.home-hero__slides {
    z-index: 1;
}

.home-hero__slide {
    margin: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.home-hero__slide.is-active {
    opacity: 1;
}

.home-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 18, 30, 0.48);
    z-index: 2;
}

.home-stats {
    background: var(--bg-light);
    border-bottom: 0;
}

.home-stats__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-stat {
    position: relative;
    padding: clamp(26px, 3vw, 44px) 16px;
    text-align: center;
}

.home-stat + .home-stat {
    border-left: 0;
}

.home-stat + .home-stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: calc(clamp(42px, 5vw, 72px) + 8px + 27px);
    background: var(--line);
}

.home-stat__value {
    margin: 0;
    font-family: var(--font-body);
    font-size: clamp(42px, 5vw, 72px);
    line-height: 1;
    color: var(--brand);
    font-weight: 600;
}

.home-stat__label {
    margin: 8px 0 0;
    font-size: 16px;
    color: var(--ink);
}

.home-projects {
    padding: clamp(34px, 4vw, 68px) 0 clamp(42px, 5vw, 86px);
}

.home-projects__grid {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
}

.project-empty {
    background: #fff;
    border: 1px solid var(--line);
    padding: 30px;
}

.home-projects__cta {
    width: min(1120px, 100%);
    margin: 24px auto 0;
    text-align: center;
}

.home-projects__cta a {
    text-decoration: underline;
    font-size: 16px;
    color: var(--ink);
}

.project-archive {
    padding: 120px 0 70px;
}

.project-archive__header {
    margin-bottom: 24px;
}

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

.project-card {
    margin: 0;
}

.project-card__link {
    position: relative;
    display: block;
    aspect-ratio: 5 / 4;
    overflow: hidden;
}

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

.project-card__overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    text-align: center;
    padding: 20px;
    background: var(--category-overlay);
    color: var(--category-text);
    opacity: 0;
    transition: opacity 0.26s ease;
}

.project-card:hover .project-card__overlay,
.project-card:focus-within .project-card__overlay {
    opacity: 1;
}

.project-card__category {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.project-card__title {
    display: block;
    font-family: var(--font-header);
    font-size: 32px;
    line-height: 1.15;
}

.project-single {
    padding: 80px 0 0;
}

.project-single__head {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 520px) 1fr;
    align-items: end;
    gap: 14px;
    margin: 0 auto 16px;
    width: min(1200px, calc(100% - 48px));
    max-width: none;
    padding-inline: 0;
}

.project-single__heading {
    text-align: center;
}

.project-single__category {
    margin: 0 0 4px;
    color: #e51f2d;
    font-size: 18px;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.project-single__heading h1 {
    margin: 0;
    font-size: 32px;
    line-height: 1.15;
}

.project-single__year {
    margin: 4px 0 0;
    font-size: 18px;
}

.project-single__nav {
    padding-top: 0;
}

.project-single__nav--next {
    text-align: right;
}

.project-single__nav a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.1;
    text-transform: uppercase;
    color: #262724;
    transition: color 0.22s ease;
}

.project-single__nav a:hover,
.project-single__nav a:focus-visible {
    color: var(--brand);
}

.project-single__nav-icon-wrap {
    position: relative;
    width: 21px;
    height: 15px;
    display: inline-block;
    flex-shrink: 0;
}

.project-single__nav-icon-wrap--prev {
    transform: rotate(180deg);
}

.project-single__nav-icon {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.project-single__nav-icon--default {
    opacity: 1;
}

.project-single__nav-icon--hover {
    opacity: 0;
}

.project-single__nav a:hover .project-single__nav-icon--default,
.project-single__nav a:focus-visible .project-single__nav-icon--default {
    opacity: 0;
}

.project-single__nav a:hover .project-single__nav-icon--hover,
.project-single__nav a:focus-visible .project-single__nav-icon--hover {
    opacity: 1;
}

.project-single__nav--prev a:hover .project-single__nav-icon,
.project-single__nav--prev a:focus-visible .project-single__nav-icon {
    transform: translateX(4px);
}

.project-single__nav--next a:hover .project-single__nav-icon,
.project-single__nav--next a:focus-visible .project-single__nav-icon {
    transform: translateX(4px);
}

.project-single__hero {
    margin: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f4f4f4;
    position: relative;
}

.project-single__hero .js-project-main-image {
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    background-color: #f4f4f4;
    display: block;
}

.project-single__hero.is-landscape .js-project-main-image {
    background-size: cover;
}

.project-single__gallery {
    width: min(1200px, 100%);
    margin-inline: auto;
}

.project-single__thumbs-wrap {
    overflow: hidden;
    margin-top: 8px;
    padding-bottom: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
}

.project-single__thumbs-wrap::-webkit-scrollbar {
    display: none;
}

.project-single__thumbs-wrap.is-dragging {
    cursor: grabbing;
}

.project-single__thumbs {
    display: flex;
    gap: 8px;
    min-width: max-content;
    will-change: transform;
}

.project-single__thumb {
    border: 0;
    background: #f4f4f4;
    padding: 0;
    flex: 0 0 auto;
    height: 225px;
    width: auto;
    min-width: 82px;
    opacity: 0.75;
    transition: opacity 0.2s ease;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.project-single__thumb.is-active {
    opacity: 1;
}

.project-single__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.project-single__content {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
    display: grid;
    grid-template-columns: 180px minmax(0, 1.4fr) minmax(0, 1fr) 170px;
    align-items: start;
    column-gap: 20px;
    row-gap: 0;
    padding: 52px 0 70px;
}

.project-single__description {
    grid-column: 2;
}

.project-single__team {
    grid-column: 3;
}

.project-single__description > p {
    margin: 0 0 24px;
}

.project-single__description > p:first-child {
    margin-bottom: 6px;
}

.project-single__meta-list p,
.project-single__team p {
    margin: 0 0 8px;
}

.project-single__team h2 {
    margin: 0 0 16px;
    font-size: 18px;
    line-height: 1.2;
}

.team-page {
    padding: 120px 0 0;
}

.team-page__intro,
.team-page__ceo,
.team-page__all-inner {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
}

.team-page__intro {
    padding-bottom: 26px;
}

.team-page__intro h1 {
    margin: 0 0 10px;
    color: var(--brand);
}

.team-page__intro-text p {
    margin: 0;
}

.team-page__ceo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.team-page__all {
    margin-top: 58px;
    background: #f3f3f3;
    padding: 46px 0 64px;
}

.team-page__all-title {
    margin: 0 0 34px;
    text-align: center;
    font-family: var(--font-header);
    font-size: 32px;
}

.team-page__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px 18px;
}

.team-member-card__photo {
    margin: 0 0 12px;
    aspect-ratio: 5 / 4;
    background: #e8e8e8;
    overflow: hidden;
}

.team-member-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.team-member-card__role {
    margin: 0 0 4px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #262724;
}

.team-member-card__name {
    margin: 0;
    font-size: 18px;
    color: #e51f2d;
}

.method-page__hero {
    width: 100%;
    height: 760px;
    background: #e8e8e8;
    overflow: hidden;
}

.method-page__hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.method-page__intro {
    padding: 56px 0 62px;
}

.method-page__intro-inner,
.method-page__phases-inner,
.method-page__points-inner {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
}

.method-page__intro-inner {
    max-width: 900px;
    text-align: center;
}

.method-page__intro-inner h1 {
    margin: 0 0 14px;
    color: #e51f2d;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 400;
}

.method-page__intro-inner p {
    margin: 0;
}

.method-page__phases {
    background: #f3f3f3;
    padding: 62px 0 68px;
}

.method-page__phases h2 {
    margin: 0;
    text-align: center;
}

.method-page__phases-subtitle {
    margin: 6px 0 0;
    text-align: center;
}

.method-page__timeline {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px 24px;
}

.method-page__phase {
    position: relative;
}

.method-page__phase h3 {
    margin: 0 0 8px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
    font-size: 32px;
    line-height: 1.1;
    font-weight: 400;
}

.method-page__phase h3::before {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 4px solid #e51f2d;
    background: #f3f3f3;
    flex: 0 0 14px;
}

.method-page__phase h3::after {
    content: '';
    position: absolute;
    right: calc(100% + 6px);
    top: 50%;
    width: 70px;
    height: 1px;
    background: #cfcfcf;
    transform: translateY(-50%);
}

.method-page__phase p {
    margin: 0;
    padding-left: 26px;
    font-size: 16px;
    line-height: 1.35;
}

.method-page__points {
    padding: 68px 0 78px;
}

.method-page__points h2 {
    max-width: 740px;
    margin: 0 auto;
    text-align: center;
}

.method-page__points-grid {
    margin-top: 42px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 46px;
}

.method-page__point h3 {
    margin: 0 0 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 9px;
    font-size: 32px;
    line-height: 1.1;
    font-weight: 400;
}

.method-page__point-number {
    color: #e51f2d;
}

.method-page__point-title {
    color: #262724;
}

.method-page__point p {
    margin: 0;
}

.blog-archive {
    padding: 80px 0 56px;
}

.blog-archive__head,
.blog-archive__grid,
.blog-archive__pagination,
.blog-archive__empty {
    width: min(1440px, calc(100% - 48px));
    margin-inline: auto;
}

.blog-archive__head {
    padding: 10px 0 14px;
}

.blog-archive__crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 16px;
}

.blog-archive__crumb a {
    text-decoration: underline;
}

.blog-archive__crumb-sep {
    color: #898989;
}

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

.blog-archive__card-media {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #efefef;
}

.blog-archive__card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transform: scale(1);
    transition: transform 0.6s ease;
}

.blog-archive__card:hover .blog-archive__card-media img,
.blog-archive__card:focus-within .blog-archive__card-media img {
    transform: scale(1.045);
}

.blog-archive__card-body {
    padding: 10px 0 0;
}

.blog-archive__card-category {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.blog-archive__card-title {
    margin: 0;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 400;
}

.blog-archive__pagination {
    margin-top: 28px;
}

.blog-single {
    padding: 80px 0 0;
}

.blog-single__breadcrumb-wrap {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
    padding: 10px 0 12px;
}

.blog-single__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    line-height: 1.35;
}

.blog-single__breadcrumb a {
    text-decoration: underline;
}

.blog-single__hero {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
    aspect-ratio: 16 / 9;
    background: #f4f4f4;
    overflow: hidden;
}

.blog-single__hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.blog-single__content-wrap {
    padding: 46px 0 56px;
}

.blog-single__content {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
}

.blog-single__category {
    margin: 0 0 8px;
    text-transform: uppercase;
}

.blog-single__title {
    margin: 0 0 22px;
    color: #e51f2d;
}

.blog-single__body p {
    margin: 0 0 1.05rem;
}

.blog-single__body blockquote {
    margin: 30px 0 28px;
    padding: 0 0 0 24px;
    border-left: 1px solid #cfcfcf;
}

.blog-single__body blockquote p {
    margin: 0;
    color: #e51f2d;
    font-family: var(--font-header);
    font-size: 32px;
    font-style: italic;
    line-height: 1.18;
}

.blog-single__share {
    margin: 45px 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0;
    font-size: 16px;
}

.blog-single__share a {
    margin-left: 4px;
    text-decoration: underline;
}

.blog-single__share-sep {
    margin-left: 4px;
}

.blog-single__nav-wrap {
    background: #f3f3f3;
    border-top: 1px solid #e1e1e1;
}

.blog-single__nav {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    padding: 42px 0;
}

.blog-single__nav-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blog-single__nav-head {
    padding-top: 0;
}

.blog-single__nav-title-link {
    display: block;
}

.blog-single__nav-item--next .blog-single__nav-title-link {
    text-align: right;
}

.blog-single__nav-title {
    color: #e51f2d;
    font-family: var(--font-header);
    font-size: 24px;
    font-style: italic;
    line-height: 1.15;
}

.site-footer {
    background: #ffffff;
    border-top: 1px solid #d4d4d4;
}

.site-footer .container {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
    padding-inline: 0;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 180px 1.4fr 1fr 170px;
    gap: 20px;
    align-items: flex-start;
    padding: 34px 0 20px;
}

.site-footer__logo {
    font-family: var(--font-body);
    font-size: clamp(34px, 3vw, 56px);
    letter-spacing: -0.05em;
    text-transform: lowercase;
    line-height: 1;
    color: #111;
}

.site-footer__logo-image {
    width: 86px;
    height: auto;
    display: block;
}

.site-footer__block p {
    margin: 0;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.4;
}

.site-footer__social {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    align-items: flex-start;
}

.site-footer__social a {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: grid;
    place-content: center;
    border: 1px solid #202020;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    text-transform: lowercase;
}

.site-footer__legal {
    position: relative;
    padding: 12px 0 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.site-footer__legal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    border-top: 1px solid #ddd;
}

.site-footer__legal-nav {
    min-width: 0;
}

.site-footer__legal-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.site-footer__legal-menu li {
    display: inline-flex;
    align-items: center;
}

.site-footer__legal-menu li + li::before {
    content: '—';
    margin: 0 8px;
    color: #898989;
}

.site-footer__legal-menu a,
.site-footer__credit {
    margin: 0;
    color: #898989;
    font-size: 12px;
}

.site-footer__credits-trigger {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    text-transform: lowercase;
}

.site-footer__credits-modal[hidden] {
    display: none;
}

.site-footer__credits-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
}

.site-footer__credits-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
}

.site-footer__credits-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(560px, calc(100% - 24px));
    max-height: min(78vh, 760px);
    overflow: auto;
    background: #ffffff;
    border: 1px solid #d8d8d8;
    padding: 22px 22px 20px;
}

.site-footer__credits-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: 0;
    background: transparent;
    padding: 4px;
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
    color: #262724;
}

.site-footer__credits-title {
    margin: 0 0 14px;
    font-size: 24px;
}

.site-footer__credits-content {
    font-size: 14px;
    line-height: 1.5;
}

.site-footer__credits-content p {
    margin: 0 0 10px;
}

body.has-credits-modal-open {
    overflow: hidden;
}

/* Basic layout for inner templates */
.section,
.section--narrow {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
    padding: 120px 0 56px;
}

.single-entry {
    display: block;
    padding: 16px;
}

.single-entry h1 {
    margin-bottom: 16px;
}

@media (max-width: 1180px) {
    .site-menu-panel__sheet {
        width: min(74vw, 760px);
        padding: 24px 30px 34px;
    }

    .site-menu-panel__layout {
        margin-top: clamp(82px, 9vh, 120px);
        grid-template-columns: 1fr minmax(190px, 0.72fr);
        gap: 24px;
    }

    .site-menu-panel__primary-link {
        font-size: clamp(34px, 4.2vw, 42px);
    }

    .site-menu-panel__secondary {
        padding-left: 24px;
    }

    .site-menu-panel__secondary-link {
        font-size: 22px;
    }
}

@media (max-width: 1024px) {
    .site-menu-panel__sheet {
        width: 100vw;
        max-width: none;
        padding: 24px 28px 32px;
    }

    .site-menu-panel__layout {
        margin-top: 72px;
        grid-template-columns: minmax(0, 1fr) minmax(210px, 0.86fr);
        gap: 22px;
    }

    .site-menu-panel__primary-link {
        font-size: clamp(30px, 4.4vw, 36px);
        line-height: 1.08;
        padding-left: 40px;
    }

    .site-menu-panel__secondary-link {
        font-size: 20px;
        line-height: 1.12;
    }

    .site-menu-panel__primary-link::before {
        width: 30px;
        height: 31px;
    }
}

@media (max-width: 1024px) and (orientation: portrait), (max-width: 768px) {
    .method-page__timeline {
        grid-template-columns: 1fr;
        gap: 24px 0;
        position: relative;
        width: min(420px, 100%);
        margin-inline: auto;
    }

    .method-page__timeline::before {
        content: '';
        position: absolute;
        left: 7px;
        top: 8px;
        bottom: 8px;
        width: 1px;
        background: #cfcfcf;
    }

    .method-page__phase h3::after {
        content: none;
    }
}

@media (max-width: 900px) {
    .container,
    .section,
    .section--narrow {
        width: min(1440px, calc(100% - 26px));
    }

    .home-stats__grid {
        grid-template-columns: 1fr;
    }

    .home-stat + .home-stat {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .home-stat + .home-stat::before {
        content: none;
    }

    .home-projects__grid {
        grid-template-columns: 1fr;
    }

    .project-archive {
        padding-top: 108px;
    }

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

    .project-single {
        padding-top: 108px;
    }

    .team-page {
        padding-top: 108px;
    }

    .blog-archive {
        padding-top: 108px;
    }

    .blog-archive__head,
    .blog-archive__grid,
    .blog-archive__pagination,
    .blog-archive__empty {
        width: min(1440px, calc(100% - 26px));
    }

    .blog-archive__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 14px;
    }

    .blog-archive__card-title {
        font-size: 24px;
    }

    .blog-single {
        padding-top: 108px;
    }

    .blog-single__breadcrumb-wrap,
    .blog-single__hero,
    .blog-single__content,
    .blog-single__nav {
        width: min(1200px, calc(100% - 26px));
    }

    .blog-single__content-wrap {
        padding: 36px 0 42px;
    }

    .blog-single__nav {
        gap: 20px;
        padding: 30px 0;
    }

    .blog-single__nav-title {
        font-size: 24px;
    }

    .method-page__hero {
        height: 560px;
    }

    .method-page__intro,
    .method-page__phases,
    .method-page__points {
        padding-block: 50px;
    }

    .method-page__intro-inner,
    .method-page__phases-inner,
    .method-page__points-inner {
        width: min(1200px, calc(100% - 26px));
    }

    .method-page__intro-inner h1 {
        font-size: 32px;
    }

    .method-page__timeline {
        gap: 22px 0;
    }

    .method-page__phase h3 {
        font-size: 30px;
    }

    .method-page__point h3 {
        font-size: 30px;
    }

    .method-page__points-grid {
        gap: 28px 24px;
    }

    .project-single__head {
        grid-template-columns: 1fr;
        gap: 14px;
        width: min(1200px, calc(100% - 26px));
        margin-bottom: 14px;
    }

    .project-single__nav--prev {
        order: 1;
    }

    .project-single__heading {
        order: 2;
    }

    .project-single__nav--next {
        order: 3;
        text-align: left;
    }

    .project-single__content {
        width: min(1200px, calc(100% - 26px));
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 38px 0 50px;
    }

    .project-single__description,
    .project-single__team {
        grid-column: auto;
    }

    .team-page__intro,
    .team-page__ceo,
    .team-page__all-inner {
        width: min(1200px, calc(100% - 26px));
    }

    .team-page__ceo-grid,
    .team-page__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 14px;
    }

    .site-menu-panel__sheet {
        width: 100vw;
        padding: 20px 18px 28px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .site-menu-panel__layout {
        margin-top: 54px;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .site-menu-panel__primary {
        text-align: right;
    }

    .site-menu-panel__primary-list {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .site-menu-panel__primary-link {
        font-size: clamp(24px, 7.4vw, 30px);
        line-height: 1.1;
        padding-left: 32px;
    }

    .site-menu-panel__secondary-link {
        font-size: 17px;
        line-height: 1.2;
        text-align: right;
    }

    .site-menu-panel__primary-link::before {
        width: 26px;
        height: 27px;
    }

    .site-menu-panel__secondary {
        border-left: 0;
        border-top: 1px solid #bdbdbd;
        padding-left: 0;
        padding-top: 14px;
        align-items: flex-end;
        text-align: right;
    }

    .site-menu-panel__secondary-list {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .site-menu-panel__secondary-item + .site-menu-panel__secondary-item {
        margin-top: 10px;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
        align-items: flex-start;
        padding-top: 28px;
        gap: 14px;
    }

    .site-footer .container {
        width: min(1200px, calc(100% - 26px));
    }

    .site-footer__social {
        justify-content: flex-start;
    }

    .site-footer__legal {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .home-hero {
        height: 500px;
    }

    .blog-archive__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .blog-archive__card-title {
        font-size: 24px;
    }

    .blog-single__breadcrumb {
        font-size: 14px;
    }

    .blog-single__content-wrap {
        padding: 30px 0 38px;
    }

    .blog-single__share {
        margin-top: 36px;
    }

    .blog-single__nav {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .blog-single__nav-item--next .blog-single__nav-title-link {
        text-align: left;
    }

    .method-page__hero {
        height: 420px;
    }

    .method-page__intro-inner h1 {
        font-size: 30px;
    }

    .method-page__points-grid {
        grid-template-columns: 1fr;
    }

    .method-page__phase p,
    .method-page__phase h3 {
        max-width: 340px;
    }
}

@media (max-width: 480px) {
    .site-menu-panel__sheet {
        padding: 16px 14px 24px;
    }

    .site-menu-panel__layout {
        margin-top: 46px;
        gap: 16px;
    }

    .site-menu-panel__primary-link {
        font-size: clamp(21px, 8.8vw, 26px);
        line-height: 1.12;
        padding-left: 28px;
    }

    .site-menu-panel__primary-link::before {
        width: 22px;
        height: 23px;
    }

    .site-menu-panel__secondary-link {
        font-size: 16px;
        line-height: 1.2;
    }

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

    .project-card__title {
        font-size: 26px;
    }

    .team-page__ceo-grid,
    .team-page__grid {
        grid-template-columns: 1fr;
    }

    .project-single__thumb {
        min-width: 72px;
        height: 225px;
    }
}
