/* =========================================================
   GLOBAL
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --orange: #E0680E;
    --yellow: #F4B044;
    --blue: #88A5B7;
    --navy: #112543;

    --cream: #f4f0e8;
    --paper: #faf8f3;
    --white: #ffffff;
    --text: #112543;
    --muted: #637080;

    --border: rgba(17, 37, 67, 0.16);
    --shadow: 0 8px 0 rgba(17, 37, 67, 0.08);
}

body {
    margin: 0;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    background:
        radial-gradient(circle at 15% 10%,
            rgba(240, 104, 14, 0.07),
            transparent 28%),
        radial-gradient(circle at 85% 20%,
            rgba(136, 165, 183, 0.10),
            transparent 30%),
        var(--cream);

    color: var(--text);

    line-height: 1.6;

    overflow-x: hidden;
}

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

a:hover {
    text-decoration: none;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    max-width: 1180px;

    margin: 0 auto;

    padding:
        32px 28px 90px;

    position: relative;
}

.hero::before {
    content: "";

    position: absolute;

    top: 0;
    left: 28px;
    right: 28px;

    height: 5px;

    background:
        repeating-linear-gradient(90deg,
            var(--orange) 0 34px,
            var(--yellow) 34px 68px,
            var(--blue) 68px 102px,
            var(--navy) 102px 136px);
}


/* system status */

.hero-top {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 95px;

    padding-top: 10px;
}

.status {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    color: var(--muted);

    font-family:
        "SFMono-Regular",
        Consolas,
        monospace;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}

.status-dot {
    width: 9px;
    height: 9px;

    display: inline-block;

    border-radius: 50%;

    background: var(--orange);

    box-shadow:
        0 0 0 4px rgba(224, 104, 14, 0.12),
        0 0 12px rgba(224, 104, 14, 0.45);

    animation: slowPulse 2.4s ease-in-out infinite;
}

@keyframes slowPulse {

    0%,
    100% {
        opacity: 0.55;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

.zen-dots {
    color: var(--orange);

    font-size: 18px;

    letter-spacing: 7px;

    line-height: 1;

    opacity: 0.8;
}


/* hero content */

.hero-content {
    max-width: 820px;
}

.eyebrow {
    margin: 0 0 14px;

    color: var(--orange);

    font-family:
        "SFMono-Regular",
        Consolas,
        monospace;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.hero h1 {
    margin: 0;

    color: var(--navy);

    font-size: clamp(58px, 9vw, 112px);

    line-height: 0.92;

    letter-spacing: -6px;

    font-weight: 800;
}

.hero-title {
    margin: 28px 0 0;

    color: var(--navy);

    font-size: 25px;

    font-weight: 700;

    letter-spacing: -0.5px;
}

.hero-description {
    max-width: 700px;

    margin: 24px 0 0;

    color: var(--muted);

    font-size: 18px;

    line-height: 1.7;
}


/* buttons */

.hero-links {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 34px;
}

.button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 135px;

    padding: 13px 22px;

    border: 2px solid var(--navy);

    border-radius: 7px;

    font-size: 14px;

    font-weight: 800;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.button:hover {
    transform: translate(-2px, -2px);

    box-shadow:
        4px 4px 0 var(--navy);
}

.button-primary {
    background: var(--navy);
    color: var(--white);
}

.button-secondary {
    background: var(--yellow);
    color: var(--navy);
}


/* =========================================================
   MAIN
   ========================================================= */

main {
    max-width: 1180px;

    margin: 0 auto;

    padding: 0 28px 80px;
}

section {
    margin-bottom: 105px;
}

.section-heading {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 30px;
}

.section-heading h2 {
    margin: 0;

    color: var(--navy);

    font-size: 38px;

    line-height: 1.1;

    letter-spacing: -1.5px;
}

.section-code {
    padding-bottom: 5px;

    color: var(--blue);

    font-family:
        "SFMono-Regular",
        Consolas,
        monospace;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.5px;
}


/* =========================================================
   TECH STACK
   ========================================================= */

.stack-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;
}

.stack-card {
    min-height: 220px;

    padding: 23px;

    border: 2px solid var(--navy);

    border-radius: 8px;

    box-shadow: var(--shadow);

    position: relative;

    overflow: hidden;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.stack-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 12px 0 rgba(17, 37, 67, 0.10);
}

.stack-card::after {
    content: "";

    position: absolute;

    width: 55px;
    height: 55px;

    right: -18px;
    bottom: -18px;

    border: 7px dotted rgba(17, 37, 67, 0.2);

    border-radius: 50%;
}

.stack-number {
    margin-bottom: 28px;

    font-family:
        "SFMono-Regular",
        Consolas,
        monospace;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1px;

    opacity: 0.7;
}

.stack-card h3 {
    margin: 0 0 18px;

    font-size: 22px;

    line-height: 1.1;

    letter-spacing: -0.5px;
}

.stack-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;
}

.stack-tags span {
    padding: 5px 8px;

    border: 1px solid currentColor;

    border-radius: 4px;

    font-family:
        "SFMono-Regular",
        Consolas,
        monospace;

    font-size: 11px;

    font-weight: 600;

    line-height: 1.3;
}

.stack-orange {
    background: var(--orange);
    color: var(--white);
}

.stack-yellow {
    background: var(--yellow);
    color: var(--navy);
}

.stack-blue {
    background: var(--blue);
    color: var(--navy);
}

.stack-dark {
    background: var(--navy);
    color: var(--white);
}


/* =========================================================
   PROJECTS
   ========================================================= */

.projects {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}

.project-card {
    min-height: 420px;

    display: flex;

    flex-direction: column;

    padding: 27px;

    background: var(--paper);

    border: 2px solid var(--navy);

    border-radius: 9px;

    box-shadow: var(--shadow);

    position: relative;

    overflow: hidden;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.project-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 13px 0 rgba(17, 37, 67, 0.12);
}

.project-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 7px;
}

.project-smartscore::before {
    background: var(--orange);
}

.project-darkstore::before {
    background: var(--yellow);
}

.project-hotel::before {
    background: var(--blue);
}

.project-top {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 55px;
}

.project-number {
    color: var(--navy);

    font-family:
        "SFMono-Regular",
        Consolas,
        monospace;

    font-size: 13px;

    font-weight: 800;
}

.project-type {
    padding: 5px 8px;

    background: rgba(136, 165, 183, 0.16);

    color: var(--muted);

    border: 1px solid rgba(17, 37, 67, 0.12);

    border-radius: 4px;

    font-family:
        "SFMono-Regular",
        Consolas,
        monospace;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 0.8px;
}

.project-card h3 {
    margin: 0 0 13px;

    color: var(--navy);

    font-size: 28px;

    line-height: 1.1;

    letter-spacing: -1px;
}

.project-description {
    margin: 0;

    color: var(--muted);

    font-size: 15px;

    line-height: 1.6;
}

.metric {
    margin-top: 32px;

    padding-top: 20px;

    border-top: 1px solid var(--border);
}

.metric span {
    display: block;

    margin-bottom: 3px;

    color: var(--muted);

    font-family:
        "SFMono-Regular",
        Consolas,
        monospace;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1px;
}

.metric strong {
    display: block;

    color: var(--navy);

    font-size: 34px;

    line-height: 1.1;

    letter-spacing: -1.5px;
}

.project-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 25px;
}

.project-tags span {
    padding: 5px 8px;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 4px;

    color: var(--muted);

    font-size: 11px;

    font-weight: 600;
}

.case-link {
    margin-top: auto;

    padding-top: 30px;

    color: var(--orange);

    font-family:
        "SFMono-Regular",
        Consolas,
        monospace;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 0.5px;
}

.case-link:hover {
    color: var(--navy);
}


/* =========================================================
   MORE PROJECTS
   ========================================================= */

.more-panel {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 40px;

    padding: 35px;

    background: var(--navy);

    border: 2px solid var(--navy);

    border-radius: 9px;

    color: var(--white);

    position: relative;

    overflow: hidden;
}

.more-panel::after {
    content: "•••";

    position: absolute;

    right: 28px;
    bottom: 15px;

    color: var(--orange);

    font-size: 22px;

    letter-spacing: 8px;

    opacity: 0.8;
}

.more-panel .eyebrow {
    color: var(--yellow);
}

.more-panel h2 {
    margin: 0;

    font-size: 34px;

    line-height: 1.1;

    letter-spacing: -1px;
}

.more-panel p:not(.eyebrow) {
    max-width: 560px;

    margin: 12px 0 0;

    color: rgba(255, 255, 255, 0.65);

    font-size: 15px;
}

.more-button {
    flex-shrink: 0;

    padding: 14px 22px;

    background: var(--orange);

    border: 2px solid var(--white);

    border-radius: 6px;

    color: var(--white);

    font-size: 13px;

    font-weight: 800;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.more-button:hover {
    transform: translate(-2px, -2px);

    box-shadow:
        4px 4px 0 var(--yellow);
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    border-top: 2px solid var(--navy);

    background: var(--paper);
}

.footer-content {
    max-width: 1180px;

    margin: 0 auto;

    padding: 28px;

    display: grid;

    grid-template-columns:
        1fr auto auto;

    align-items: center;

    gap: 35px;
}

.footer-content strong {
    display: block;

    color: var(--navy);

    font-size: 15px;
}

.footer-content span {
    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 12px;
}

.footer-content>a {
    color: var(--orange);

    font-family:
        "SFMono-Regular",
        Consolas,
        monospace;

    font-size: 12px;

    font-weight: 800;
}

.footer-status {
    display: flex;

    align-items: center;

    gap: 8px;

    color: var(--muted);

    font-family:
        "SFMono-Regular",
        Consolas,
        monospace;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

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

    .projects {
        grid-template-columns:
            1fr;
    }

    .project-card {
        min-height: 360px;
    }
}


@media (max-width: 700px) {

    .hero {
        padding:
            25px 18px 65px;
    }

    .hero::before {
        left: 18px;
        right: 18px;
    }

    .hero-top {
        margin-bottom: 65px;
    }

    .hero h1 {
        font-size: 61px;

        letter-spacing: -3.5px;
    }

    .hero-title {
        font-size: 20px;
    }

    .hero-description {
        font-size: 16px;
    }

    main {
        padding:
            0 18px 55px;
    }

    section {
        margin-bottom: 75px;
    }

    .section-heading {
        align-items: flex-start;
    }

    .section-heading h2 {
        font-size: 30px;
    }

    .section-code {
        display: none;
    }

    .stack-grid {
        grid-template-columns: 1fr;
    }

    .stack-card {
        min-height: auto;
    }

    .more-panel {
        flex-direction: column;

        align-items: flex-start;

        padding: 27px;
    }

    .more-panel h2 {
        font-size: 29px;
    }

    .more-button {
        width: 100%;

        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .footer-status {
        order: 3;
    }
}


@media (max-width: 430px) {

    .hero h1 {
        font-size: 51px;
    }

    .hero-links {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .project-card {
        padding: 22px;
    }

    .metric strong {
        font-size: 30px;
    }
}

/* =========================================================
   CASE STUDY PAGES
   ========================================================= */

.project-back {
    display: inline-block;

    margin-bottom: 28px;

    color: var(--orange);

    font-family:
        "SFMono-Regular",
        Consolas,
        monospace;

    font-size: 12px;
    font-weight: 800;

    transition: transform 0.15s ease;
}

.project-back:hover {
    transform: translateX(-4px);
}

.project-kicker {
    margin: 0 0 14px;

    color: var(--orange);

    font-family:
        "SFMono-Regular",
        Consolas,
        monospace;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 2px;
    text-transform: uppercase;
}

header:not(.hero) {
    max-width: 1180px;

    margin: 0 auto;

    padding: 38px 28px 90px;

    position: relative;
}

header:not(.hero)::before {
    content: "";

    position: absolute;

    top: 0;
    left: 28px;
    right: 28px;

    height: 5px;

    background:
        repeating-linear-gradient(90deg,
            var(--orange) 0 34px,
            var(--yellow) 34px 68px,
            var(--blue) 68px 102px,
            var(--navy) 102px 136px);
}

header:not(.hero) h1 {
    margin: 0;

    color: var(--navy);

    font-size: clamp(55px, 9vw, 105px);

    line-height: 0.92;

    letter-spacing: -5px;

    font-weight: 800;
}

.project-subtitle {
    margin: 25px 0 0;

    color: var(--navy);

    font-size: 25px;

    font-weight: 700;

    letter-spacing: -0.5px;
}

.project-description {
    max-width: 720px;

    margin: 20px 0 0;

    color: var(--muted);

    font-size: 17px;

    line-height: 1.7;
}

/* Не конфликтует с .project-description на карточках */
header .project-description {
    margin-bottom: 0;
}

.project-tech {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 28px;
}

.project-tech span {
    padding: 6px 9px;

    background: var(--paper);

    border: 1px solid var(--border);

    border-radius: 4px;

    color: var(--muted);

    font-family:
        "SFMono-Regular",
        Consolas,
        monospace;

    font-size: 11px;

    font-weight: 700;
}

.system-status {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    margin-top: 35px;

    color: var(--muted);

    font-family:
        "SFMono-Regular",
        Consolas,
        monospace;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;
}

.status-dots {
    display: flex;

    gap: 4px;
}

.status-dots span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--orange);

    opacity: 0.75;

    animation: caseStudyPulse 2s ease-in-out infinite;
}

.status-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.status-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes caseStudyPulse {

    0%,
    100% {
        opacity: 0.35;
        transform: scale(0.85);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}


/* =========================================================
   METRICS
   ========================================================= */

.metrics {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 16px;
}

.metric-card {
    min-height: 145px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 25px;

    background: var(--paper);

    border: 2px solid var(--navy);

    border-radius: 8px;

    box-shadow: var(--shadow);
}

.metric-label {
    display: block;

    margin-bottom: 8px;

    color: var(--muted);

    font-family:
        "SFMono-Regular",
        Consolas,
        monospace;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.3px;

    text-transform: uppercase;
}

.metric-value {
    display: block;

    color: var(--navy);

    font-size: 39px;

    line-height: 1;

    font-weight: 800;

    letter-spacing: -2px;
}


/* =========================================================
   SECTION HEADINGS
   ========================================================= */

.section-number {
    flex-shrink: 0;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    background: var(--navy);

    border-radius: 5px;

    color: var(--white);

    font-family:
        "SFMono-Regular",
        Consolas,
        monospace;

    font-size: 12px;

    font-weight: 800;
}

.section-heading {
    align-items: center;
    justify-content: flex-start;

    gap: 16px;
}

.section-heading h2 {
    flex: 1;
}


/* =========================================================
   CONTENT
   ========================================================= */

.content-block {
    padding: 25px 28px;

    background: var(--paper);

    border: 2px solid var(--border);

    border-radius: 8px;
}

.content-block p {
    margin: 0 0 16px;

    color: var(--muted);

    font-size: 16px;

    line-height: 1.7;
}

.content-block p:last-child {
    margin-bottom: 0;
}

.content-block h3 {
    margin: 0 0 18px;

    color: var(--navy);

    font-size: 20px;
}

.content-block pre {
    margin: 0;

    padding: 20px;

    background: var(--navy);

    border-radius: 6px;

    color: #fff;

    overflow-x: auto;

    font-family:
        "SFMono-Regular",
        Consolas,
        monospace;

    font-size: 12px;

    line-height: 1.8;
}


/* =========================================================
   CARDS
   ========================================================= */

.cards {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 16px;
}

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

.card {
    padding: 24px;

    background: var(--paper);

    border: 2px solid var(--navy);

    border-radius: 8px;

    box-shadow: var(--shadow);

    position: relative;

    overflow: hidden;
}

.card::after {
    content: "";

    position: absolute;

    width: 55px;
    height: 55px;

    right: -20px;
    bottom: -20px;

    border: 7px dotted rgba(17, 37, 67, 0.12);

    border-radius: 50%;
}

.card h3 {
    margin: 0 0 12px;

    color: var(--navy);

    font-size: 21px;

    line-height: 1.15;
}

.card p {
    margin: 0;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.65;
}

.card ul {
    margin: 0;
    padding-left: 20px;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.9;
}

.card.yellow {
    background: var(--yellow);

    border-color: var(--navy);
}

.card.blue {
    background: var(--blue);

    border-color: var(--navy);
}

.card.accent {
    background: var(--orange);

    color: var(--white);
}

.card.accent h3,
.card.accent p {
    color: var(--white);
}


/* =========================================================
   TAGS
   ========================================================= */

.tags {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}

.tags span {
    padding: 7px 10px;

    background: var(--paper);

    border: 1px solid var(--border);

    border-radius: 4px;

    color: var(--muted);

    font-family:
        "SFMono-Regular",
        Consolas,
        monospace;

    font-size: 11px;

    font-weight: 600;
}

.tags span:hover {
    border-color: var(--orange);

    color: var(--orange);
}


/* =========================================================
   FEATURE LIST
   ========================================================= */

.feature-list {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 16px;
}


/* =========================================================
   TABLE
   ========================================================= */

.table-wrap {
    width: 100%;

    overflow-x: auto;

    background: var(--paper);

    border: 2px solid var(--navy);

    border-radius: 8px;

    box-shadow: var(--shadow);
}

.table-wrap table {
    width: 100%;

    border-collapse: collapse;

    min-width: 650px;
}

.table-wrap th {
    padding: 15px;

    background: var(--navy);

    color: var(--white);

    text-align: left;

    font-family:
        "SFMono-Regular",
        Consolas,
        monospace;

    font-size: 11px;

    letter-spacing: 0.5px;
}

.table-wrap td {
    padding: 15px;

    border-bottom: 1px solid var(--border);

    color: var(--muted);

    font-size: 14px;
}

.table-wrap tbody tr:last-child td {
    border-bottom: none;
}

.table-wrap .best-row {
    background: rgba(244, 176, 68, 0.28);
}

.table-wrap .best-row td {
    color: var(--navy);

    font-weight: 800;
}


/* =========================================================
   ARCHITECTURE
   ========================================================= */

.architecture {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 12px;

    align-items: stretch;
}

.architecture-column {
    position: relative;

    display: flex;

    align-items: center;
}

.architecture-column:not(:last-child)::after {
    content: "→";

    position: absolute;

    right: -13px;

    color: var(--orange);

    font-size: 22px;

    font-weight: 800;

    z-index: 2;
}

.architecture-box {
    width: 100%;

    min-height: 105px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 20px;

    background: var(--paper);

    border: 2px solid var(--navy);

    border-radius: 7px;

    box-shadow: var(--shadow);

    text-align: center;
}

.architecture-box strong {
    color: var(--navy);

    font-size: 17px;
}

.architecture-box span {
    margin-top: 5px;

    color: var(--muted);

    font-family:
        "SFMono-Regular",
        Consolas,
        monospace;

    font-size: 10px;
}


/* =========================================================
   PIPELINE
   ========================================================= */

.pipeline {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 10px;
}

.pipeline-step {
    min-height: 125px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 18px;

    background: var(--paper);

    border: 2px solid var(--navy);

    border-radius: 7px;

    position: relative;
}

.pipeline-step>span {
    color: var(--orange);

    font-family:
        "SFMono-Regular",
        Consolas,
        monospace;

    font-size: 10px;

    font-weight: 800;
}

.pipeline-step strong {
    margin-top: 9px;

    color: var(--navy);

    font-size: 15px;
}

.pipeline-step small {
    margin-top: 3px;

    color: var(--muted);

    font-size: 11px;
}

.pipeline-step:not(:last-child)::after {
    content: "→";

    position: absolute;

    right: -17px;
    top: 50%;

    transform: translateY(-50%);

    color: var(--orange);

    font-size: 20px;

    font-weight: 800;

    z-index: 3;
}


/* =========================================================
   PROJECT LINKS
   ========================================================= */

.project-links {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;
}

.project-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 13px 22px;

    background: var(--navy);

    border: 2px solid var(--navy);

    border-radius: 6px;

    color: var(--white);

    font-size: 13px;

    font-weight: 800;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.project-button:hover {
    transform: translate(-2px, -2px);

    box-shadow:
        4px 4px 0 var(--orange);
}

.project-button.secondary {
    background: var(--yellow);

    color: var(--navy);
}


/* =========================================================
   CASE STUDY FOOTER
   ========================================================= */

body>footer {
    border-top: 2px solid var(--navy);

    background: var(--paper);
}

.footer-inner {
    max-width: 1180px;

    margin: 0 auto;

    padding: 28px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;
}

.footer-inner strong {
    display: block;

    color: var(--navy);

    font-size: 15px;
}

.footer-inner span {
    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 12px;
}

.footer-inner>a {
    color: var(--orange);

    font-family:
        "SFMono-Regular",
        Consolas,
        monospace;

    font-size: 12px;

    font-weight: 800;
}


/* =========================================================
   CASE STUDY RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

    header:not(.hero) {
        padding-bottom: 70px;
    }

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

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

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

    .architecture-column:not(:last-child)::after {
        display: none;
    }

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

    .pipeline-step::after {
        display: none;
    }
}


@media (max-width: 700px) {

    header:not(.hero) {
        padding:
            28px 18px 60px;
    }

    header:not(.hero)::before {
        left: 18px;
        right: 18px;
    }

    header:not(.hero) h1 {
        font-size: 61px;

        letter-spacing: -3.5px;
    }

    .project-subtitle {
        font-size: 20px;
    }

    .project-description {
        font-size: 15px;
    }

    .metrics {
        grid-template-columns: 1fr;
    }

    .metric-card {
        min-height: 120px;
    }

    .metric-value {
        font-size: 34px;
    }

    .cards,
    .cards.two,
    .feature-list {
        grid-template-columns: 1fr;
    }

    .architecture {
        grid-template-columns: 1fr;
    }

    .pipeline {
        grid-template-columns: 1fr;
    }

    .architecture-box {
        min-height: 90px;
    }

    .section-heading {
        gap: 12px;
    }

    .section-number {
        width: 36px;
        height: 36px;

        font-size: 10px;
    }

    .section-heading h2 {
        font-size: 28px;
    }

    .content-block {
        padding: 20px;
    }

    .project-links {
        flex-direction: column;
    }

    .project-button {
        width: 100%;
    }

    .footer-inner {
        flex-direction: column;

        align-items: flex-start;
    }
}


@media (max-width: 430px) {

    header:not(.hero) h1 {
        font-size: 50px;

        letter-spacing: -3px;
    }

    .project-tech {
        gap: 6px;
    }

    .project-tech span {
        font-size: 10px;
    }

    .metric-value {
        font-size: 31px;
    }
}