@font-face {
    font-family: "Montserrat";
    src: url("../fonts/montserrat-300.ttf") format("truetype");
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/montserrat-400.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/montserrat-500.ttf") format("truetype");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/montserrat-600.ttf") format("truetype");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

:root {
    color-scheme: light;
    --ink: #292929;
    --muted: #8c8c8c;
    --line: #e7e7e7;
    --paper: #ffffff;
    --wash: #f2f2f2;
    --panel: #535353;
    --dark: #202020;
    --content-width: 1140px;
    --section-space: 108px;
    font-family: "Montserrat", Arial, sans-serif;
    font-synthesis: none;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--paper);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

button,
a {
    color: inherit;
    font: inherit;
}

button {
    border: 0;
}

a {
    text-decoration: none;
}

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

[hidden] {
    display: none !important;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 200;
    padding: 9px 14px;
    color: var(--paper);
    background: var(--dark);
    transform: translateY(-160%);
    transition: transform 180ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: relative;
    z-index: 80;
    height: 90px;
    background: var(--paper);
}

.header-inner,
.footer-inner,
.section-inner,
.stats-inner {
    width: min(calc(100% - 48px), var(--content-width));
    margin: 0 auto;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.brand {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    text-transform: uppercase;
}

.menu-toggle {
    position: relative;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    width: 78px;
    height: 44px;
    padding: 0;
    cursor: pointer;
    background: transparent;
}

.menu-toggle-label {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 180ms ease;
}

.menu-toggle:hover .menu-toggle-label,
.menu-toggle:focus-visible .menu-toggle-label,
.menu-open .menu-toggle-label {
    opacity: 1;
}

.menu-toggle-icon {
    position: relative;
    display: block;
    width: 17px;
    height: 16px;
}

.menu-toggle-icon i {
    position: absolute;
    right: 0;
    width: 15px;
    height: 1px;
    background: currentColor;
    transition: top 200ms ease, transform 200ms ease, opacity 160ms ease;
}

.menu-toggle-icon i:nth-child(1) { top: 2px; }
.menu-toggle-icon i:nth-child(2) { top: 7px; }
.menu-toggle-icon i:nth-child(3) { top: 12px; }

.menu-open .site-header {
    color: var(--paper);
    background: transparent;
}

.menu-open .menu-toggle-icon i:nth-child(1) {
    top: 7px;
    transform: rotate(45deg);
}

.menu-open .menu-toggle-icon i:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-toggle-icon i:nth-child(3) {
    top: 7px;
    transform: rotate(-45deg);
}

.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: grid;
    place-items: center;
    visibility: hidden;
    color: var(--paper);
    background: rgba(55, 55, 55, 0.72);
    opacity: 0;
    transition: opacity 220ms ease, visibility 220ms ease;
}

.menu-overlay.is-open {
    visibility: visible;
    opacity: 1;
}

.overlay-nav {
    display: grid;
    gap: 12px;
    text-align: center;
}

.overlay-nav a {
    display: grid;
    place-items: center;
    min-width: 160px;
    min-height: 36px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    transition: color 180ms ease;
}

.overlay-nav a:hover,
.overlay-nav a:focus-visible {
    color: #d8d8d8;
}

.hero {
    position: relative;
    min-height: 780px;
    overflow: hidden;
    background-color: #d7d7d7;
}

.hero-image {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    pointer-events: none;
    user-select: none;
    mix-blend-mode: multiply;
    will-change: transform;
}

.hero-plaque {
    position: absolute;
    top: 50%;
    left: calc(50% - 20px);
    z-index: 2;
    width: min(460px, calc(100% - 72px));
    padding: 62px 36px 58px;
    color: var(--paper);
    text-align: center;
    background: rgba(66, 66, 66, 0.9);
    border: 1px solid #656565;
    transform: translate(-50%, -50%);
}

.hero-plaque::before {
    position: absolute;
    inset: -11px;
    content: "";
    pointer-events: none;
    border: 1px solid #555555;
}

.hero-plaque h1 {
    margin: 0;
    font-size: 29px;
    font-weight: 400;
    line-height: 1.3;
    text-transform: uppercase;
}

.hero-plaque p {
    margin: 13px 0 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    text-transform: uppercase;
}

.portfolio {
    padding: 92px 0 95px;
}

.portfolio-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px 29px;
    min-height: 44px;
    margin-bottom: 46px;
}

.filter-button {
    position: relative;
    height: 36px;
    padding: 0;
    color: #444444;
    cursor: pointer;
    background: transparent;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.filter-button::after {
    position: absolute;
    bottom: 1px;
    left: 50%;
    width: 0;
    height: 2px;
    content: "";
    background: var(--ink);
    transform: translateX(-50%);
    transition: width 180ms ease;
}

.filter-button:hover::after,
.filter-button:focus-visible::after,
.filter-button.is-active::after {
    width: 18px;
}

.portfolio-grid {
    position: relative;
    display: block;
    min-height: 0;
    perspective: 1600px;
    --portfolio-gap: 30px;
}

.project {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: calc((100% - 60px) / 3);
    margin: 0;
    overflow: hidden;
    background: #e6e6e6;
    animation: project-in 300ms ease both;
    filter: drop-shadow(0 14px 18px rgba(31, 31, 31, 0.12));
    transform-style: preserve-3d;
    transition: filter 260ms ease;
}

.project img {
    position: relative;
    z-index: 1;
    width: 100%;
    object-fit: cover;
    box-shadow: 0 9px 18px rgba(25, 25, 25, 0.15);
    transform: translateZ(0);
    transform-origin: center;
    transition: filter 260ms ease, transform 450ms ease, box-shadow 450ms ease;
}

.project-tall img { aspect-ratio: 0.78; }
.project-medium img { aspect-ratio: 1; }
.project-short img { aspect-ratio: 1.31; }
.project-feature-tall img { aspect-ratio: 0.67; }

.project-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    padding: 24px;
    color: var(--paper);
    text-align: center;
    background: rgba(35, 35, 35, 0.72);
    opacity: 0;
    transition: opacity 220ms ease;
}

.project:hover img,
.project:focus-within img {
    filter: grayscale(0.25);
    box-shadow: 0 18px 28px rgba(25, 25, 25, 0.23);
    transform: translateZ(20px) rotateX(1.25deg) rotateY(-1deg) scale(1.035);
}

.project:hover,
.project:focus-within {
    filter: drop-shadow(0 22px 26px rgba(31, 31, 31, 0.2));
}

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

.project-overlay h2 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: uppercase;
}

.project-overlay p {
    margin: 7px 0 0;
    font-size: 10px;
    font-style: italic;
    line-height: 1.4;
    text-transform: uppercase;
}

.project.is-filtered-out {
    display: none;
}

.load-more,
.order-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    height: 42px;
    margin: 50px auto 0;
    padding: 0 25px;
    color: var(--paper);
    cursor: pointer;
    background: var(--dark);
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    transition: color 180ms ease, background-color 180ms ease;
}

.load-more:hover,
.load-more:focus-visible,
.order-button:hover,
.order-button:focus-visible {
    color: var(--dark);
    background: #dddddd;
}

.stats {
    padding: 84px 0 80px;
    color: var(--paper);
    background: var(--panel);
}

.stats-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.stat {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 102px;
    text-align: center;
}

.stat + .stat::before {
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 0;
    width: 1px;
    content: "";
    background: rgba(255, 255, 255, 0.22);
}

.stat strong {
    font-size: 42px;
    font-weight: 300;
    line-height: 1;
}

.stat strong small {
    font-size: 20px;
}

.stat span {
    margin-top: 14px;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.4;
    text-transform: uppercase;
}

.posts,
.pricing {
    padding: var(--section-space) 0;
}

.section-title {
    margin: 0 0 58px;
    text-align: center;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
    text-transform: uppercase;
}

.posts-grid,
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.post-card {
    min-width: 0;
}

.post-card > img {
    width: 100%;
    aspect-ratio: 1.5;
    object-fit: cover;
    filter: saturate(0.72);
}

.post-content {
    padding: 28px 5px 0;
}

.post-content h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.45;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin: 11px 0 15px;
    color: var(--muted);
    font-size: 10px;
}

.post-meta span {
    position: relative;
}

.post-meta span::before {
    position: absolute;
    top: 0;
    left: -8px;
    content: "/";
}

.post-content > p:last-child {
    margin: 0;
    color: #6d6d6d;
    font-size: 12px;
    line-height: 2;
}

.testimonials {
    padding: 98px 0 92px;
    background: var(--wash);
}

.testimonial-shell {
    max-width: 820px;
    text-align: center;
}

.testimonial-track {
    position: relative;
}

.testimonial-slide {
    margin: 0;
    animation: testimonial-in 380ms ease both;
}

.testimonial-slide blockquote {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    color: #5c5c5c;
    font-size: 16px;
    font-weight: 300;
    line-height: 2;
}

.testimonial-slide blockquote::before,
.testimonial-slide blockquote::after {
    position: absolute;
    color: #bebebe;
    font-family: Georgia, serif;
    font-size: 34px;
    line-height: 1;
}

.testimonial-slide blockquote::before {
    top: -12px;
    left: -14px;
    content: "\201C";
}

.testimonial-slide blockquote::after {
    right: -14px;
    bottom: -12px;
    content: "\201D";
}

.testimonial-slide figcaption {
    display: grid;
    justify-items: center;
    margin-top: 30px;
}

.avatar {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    color: var(--paper);
    background: var(--panel);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 500;
}

.testimonial-slide figcaption strong {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.testimonial-slide figcaption small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
}

.testimonial-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 32px;
    margin-top: 12px;
}

.testimonial-dot {
    width: 28px;
    height: 28px;
    padding: 0;
    cursor: pointer;
    background: transparent;
}

.testimonial-dot::after {
    display: block;
    width: 6px;
    height: 6px;
    margin: auto;
    content: "";
    background: #b8b8b8;
    border-radius: 50%;
    transition: background-color 160ms ease, transform 160ms ease;
}

.testimonial-dot.is-active::after,
.testimonial-dot:hover::after,
.testimonial-dot:focus-visible::after {
    background: var(--dark);
    transform: scale(1.35);
}

.pricing-card {
    position: relative;
    min-height: 510px;
    padding: 44px 35px 40px;
    overflow: hidden;
    text-align: center;
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 18px;
    box-shadow: 0 20px 42px rgba(32, 32, 32, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    backdrop-filter: blur(18px) saturate(130%);
}

.pricing-card::before {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.34), transparent 48%, rgba(255, 255, 255, 0.12));
}

.pricing-card > * {
    position: relative;
    z-index: 1;
}

.pricing-card-featured {
    color: var(--paper);
    background: rgba(62, 62, 62, 0.68);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 22px 46px rgba(22, 22, 22, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.pricing-card h3 {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    text-transform: uppercase;
}

.plan-mark {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: 25px auto 18px;
    color: #8c8c8c;
    border: 1px solid #cfcfcf;
    border-radius: 50%;
    font-size: 11px;
}

.pricing-card-featured .plan-mark {
    color: var(--paper);
    border-color: rgba(255, 255, 255, 0.45);
}

.price {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin: 0 0 28px;
    font-size: 38px;
    font-weight: 300;
    line-height: 1;
}

.price sup {
    margin: 2px 3px 0 0;
    font-size: 13px;
}

.price small {
    align-self: flex-end;
    margin: 0 0 2px 5px;
    font-size: 9px;
}

.pricing-card ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #767676;
    font-size: 11px;
}

.pricing-card-featured ul {
    color: #e5e5e5;
}

.pricing-card .order-button {
    margin-top: 34px;
}

.pricing-card-featured .order-button {
    color: var(--dark);
    background: var(--paper);
}

.pricing-card-featured .order-button:hover,
.pricing-card-featured .order-button:focus-visible {
    background: #d8d8d8;
}

.order-status {
    min-height: 26px;
    margin: 22px 0 0;
    color: #6a6a6a;
    text-align: center;
    font-size: 11px;
}

.site-footer {
    padding: 18px 0 17px;
    color: #eeeeee;
    background: var(--dark);
}

.footer-inner {
    display: grid;
    justify-items: center;
}

.footer-brand {
    color: var(--paper);
}

.social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 21px 0;
}

.social-links button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    color: #bdbdbd;
    cursor: pointer;
    background: transparent;
    transition: color 160ms ease, background-color 160ms ease;
}

.social-links button:hover,
.social-links button:focus-visible {
    color: var(--dark);
    background: var(--paper);
}

.social-links svg,
.back-to-top svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.footer-inner > p {
    margin: 0;
    color: #8d8d8d;
    text-align: center;
    font-size: 10px;
}

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 60;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    color: var(--paper);
    cursor: pointer;
    background: var(--dark);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
    color: var(--dark);
    background: #dddddd;
}

:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

@keyframes project-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes testimonial-in {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 900px) {
    :root {
        --section-space: 88px;
    }

    .site-header {
        height: 78px;
    }

    .hero {
        min-height: 560px;
    }

    .hero-plaque {
        left: 46%;
        width: min(420px, calc(100% - 72px));
    }

    .portfolio {
        padding: 78px 0 82px;
    }

    .portfolio-grid {
        --portfolio-gap: 24px;
    }

    .project {
        width: calc((100% - 24px) / 2);
    }

    .posts-grid,
    .pricing-grid {
        gap: 22px;
    }

    .pricing-card {
        min-height: 500px;
        padding-right: 20px;
        padding-left: 20px;
    }

    .testimonial-slide blockquote {
        max-width: 640px;
    }
}

@media (max-width: 600px) {
    :root {
        --section-space: 72px;
    }

    body {
        font-size: 13px;
    }

    .header-inner,
    .footer-inner,
    .section-inner,
    .stats-inner {
        width: min(calc(100% - 40px), var(--content-width));
    }

    .site-header {
        height: 70px;
    }

    .brand {
        font-size: 14px;
    }

    .menu-toggle {
        width: 58px;
    }

    .menu-toggle-label {
        display: none;
    }

    .hero {
        min-height: 520px;
    }

    .hero-image {
        display: none;
    }

    .hero-plaque {
        top: 50%;
        left: 50%;
        width: calc(100% - 62px);
        padding: 42px 18px 39px;
        transform: translate(-50%, -50%);
    }

    .hero-plaque h1 {
        font-size: 21px;
    }

    .hero-plaque p {
        font-size: 10px;
    }

    .portfolio {
        padding: 62px 0 70px;
    }

    .portfolio-filters {
        gap: 2px 18px;
        margin-bottom: 33px;
    }

    .filter-button {
        font-size: 9px;
    }

    .portfolio-grid {
        --portfolio-gap: 20px;
    }

    .project {
        width: 100%;
    }

    .project-overlay {
        opacity: 1;
        background: linear-gradient(180deg, transparent 48%, rgba(30, 30, 30, 0.75));
        align-content: end;
        justify-items: start;
        text-align: left;
    }

    .load-more {
        margin-top: 34px;
    }

    .stats {
        padding: 58px 0 54px;
    }

    .stats-inner {
        width: calc(100% - 24px);
    }

    .stat {
        min-height: 85px;
        padding: 0 5px;
    }

    .stat strong {
        font-size: 28px;
    }

    .stat strong small {
        font-size: 13px;
    }

    .stat span {
        margin-top: 10px;
        font-size: 8px;
    }

    .section-title {
        margin-bottom: 42px;
        font-size: 19px;
    }

    .posts-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .post-content {
        padding-top: 22px;
    }

    .testimonials {
        padding: 72px 0 66px;
    }

    .testimonial-slide blockquote {
        width: calc(100% - 34px);
        font-size: 14px;
        line-height: 1.9;
    }

    .pricing-card {
        min-height: 0;
        padding: 40px 30px 38px;
    }

    .site-footer {
        padding: 12px 0;
    }

    .back-to-top {
        right: 18px;
        bottom: 18px;
        width: 40px;
        height: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
