/* Prepared from resources/css. Edit source files, then run php artisan frontend:prepare. */
/* Dedicated case study pages. Keep legacy project and homepage styles isolated. */
.cs-page {
    color: var(--theme-text-primary);
}
.cs-page .cs-shell {
    width: min(1200px, calc(100% - 80px));
    margin-inline: auto;
}
.cs-page :where(h1, h2, h3, p, ul, dl, dd) {
    margin: 0;
}
.cs-page :where(h1, h2, h3) {
    text-wrap: balance;
}
.cs-page :where(a, button):focus-visible {
    outline: 3px solid var(--theme-violet);
    outline-offset: 5px;
    border-radius: 4px;
}
.cs-page a {
    text-decoration: none;
}
.cs-page .cs-hero {
    position: relative;
    padding: 36px 0 56px;
    border-bottom: 1px solid #e7e7f2;
    background:
        radial-gradient(ellipse at 95% 0, #f9e8f6, transparent 55%),
        linear-gradient(135deg, #faf7ff, #f1f5ff);
}
.cs-page .cs-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 44px;
    color: #626982;
    font-size: 13px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}
.cs-page .cs-breadcrumbs a {
    color: #454b65;
}
.cs-page .cs-breadcrumbs a:hover {
    color: #6b29bd;
    text-decoration: underline;
}
.cs-page .cs-breadcrumbs [aria-current] {
    color: #151833;
}
.cs-page .cs-eyebrow {
    margin-bottom: 16px;
    color: #6b29bd;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.cs-page h1 {
    max-width: 800px;
    font-size: clamp(36px, 4.6vw, 64px);
    line-height: 1.08;
    overflow-wrap: anywhere;
}
.cs-page .cs-hero--index {
    padding-bottom: 60px;
}
.cs-page .cs-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 56px;
}
.cs-page .cs-hero-grid--text {
    grid-template-columns: minmax(0, 850px);
}
.cs-page .cs-lead {
    margin-top: 24px;
    color: #454b65;
    font-size: clamp(18px, 1.6vw, 21px);
    line-height: 1.6;
    text-wrap: pretty;
}
.cs-page .cs-hero-copy > .cs-text-link {
    margin-top: 28px;
}
.cs-page .cs-hero-image {
    padding: 16px;
    border: 1px solid #e2ddf0;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 20px 60px #33215b0d;
}
.cs-page .cs-hero-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: contain;
    border-radius: 12px;
}
.cs-page .cs-project-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin-top: 48px;
    padding: 28px 32px;
    border: 1px solid #e7e7f2;
    border-radius: 18px;
    background: #ffffffd9;
}
.cs-page .cs-project-facts dt {
    margin-bottom: 8px;
    color: #626982;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.cs-page .cs-project-facts dd {
    color: #151833;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.cs-page .cs-text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #6b29bd;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
}
.cs-page .cs-text-link span {
    font-size: 21px;
    line-height: 1;
}
.cs-page .cs-text-link:hover {
    color: #3657c8;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.cs-page .cs-listing {
    padding: 56px 0 88px;
}
.cs-page .cs-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}
.cs-page .cs-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    border: 1px solid #e7e7f2;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 8px 30px #15183306;
}
.cs-page .cs-card-image {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    padding: 20px;
    background: #f6f3fb;
    border-bottom: 1px solid #e7e7f2;
}
.cs-page .cs-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 320px;
    object-fit: contain;
    border-radius: 10px;
}
.cs-page .cs-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 30px 30px;
}
.cs-page .cs-card-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin-bottom: 18px;
    list-style: none;
}
.cs-page .cs-card-facts li {
    padding: 5px 12px;
    border: 1px solid #e7e2f4;
    border-radius: 999px;
    background: #f8f5fe;
    color: #5d3b83;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}
.cs-page .cs-card h2 {
    margin-bottom: 14px;
    font-size: clamp(24px, 2.3vw, 30px);
    line-height: 1.2;
}
.cs-page .cs-card h2 a {
    color: inherit;
}
.cs-page .cs-card h2 a:hover {
    color: #6b29bd;
}
.cs-page .cs-card-content > p {
    color: #555d76;
    font-size: 15px;
    line-height: 1.8;
}
.cs-page .cs-card-content > .cs-card-service {
    margin-top: 18px;
    margin-bottom: 20px;
    color: #454b65;
    font-size: 12px;
    font-weight: 600;
}
.cs-page .cs-card-content > .cs-text-link {
    margin-top: auto;
    padding-top: 18px;
}
.cs-page .cs-empty {
    grid-column: 1 / -1;
    padding: 40px;
    border: 1px solid #e7e7f2;
    border-radius: 18px;
    color: #454b65;
    background: #f8f6fc;
    line-height: 1.8;
}
.cs-page .cs-pagination {
    margin-top: 40px;
}
.cs-page .cs-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    list-style: none;
}
.cs-page .cs-pagination :where(a, span) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid #e7e7f2;
    border-radius: 10px;
    color: #454b65;
    font-size: 14px;
    line-height: 1.5;
}
.cs-page .cs-pagination [aria-current] {
    background: #6b29bd;
    border-color: #6b29bd;
    color: #fff;
}
.cs-page .cs-pagination [aria-disabled] {
    color: #72778c;
    background: #f7f7fa;
}
.cs-page .cs-pagination a:hover {
    background: #f8f5fe;
    border-color: #bda1dd;
}
.cs-page .cs-story {
    padding-top: 64px;
    padding-bottom: 88px;
}
.cs-page .cs-story-section {
    display: grid;
    grid-template-columns: minmax(180px, 0.38fr) minmax(0, 1fr);
    gap: 48px;
    padding-block: 36px;
    border-bottom: 1px solid #e7e7f2;
}
.cs-page .cs-story-section:first-child:not(.cs-results) {
    padding-top: 0;
}
.cs-page .cs-story-section:last-child:not(.cs-results) {
    border-bottom: 0;
    padding-bottom: 0;
}
.cs-page .cs-story-section > h2 {
    font-size: 25px;
    line-height: 1.3;
}
.cs-page .cs-prose {
    min-width: 0;
    color: #454b65;
    font-size: 16px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}
.cs-page .cs-prose > * + * {
    margin-top: 20px;
}
.cs-page .cs-prose :where(p, li, td, th, blockquote) {
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}
.cs-page .cs-prose :where(h1, h2, h3, h4, h5, h6) {
    margin-block: 24px 14px;
    color: #151833;
    font-family: inherit;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.025em;
}
.cs-page .cs-prose a {
    color: #6b29bd;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.cs-page .cs-prose :where(ul, ol) {
    padding-left: 24px;
}
.cs-page .cs-prose li + li {
    margin-top: 10px;
}
.cs-page .cs-prose :where(img, video, iframe) {
    max-width: 100%;
}
.cs-page .cs-prose img {
    height: auto;
}
.cs-page .cs-prose table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}
.cs-page .cs-prose :where(td, th) {
    padding: 12px;
    border: 1px solid #e7e7f2;
    background: #fff;
}
.cs-page .cs-prose th {
    font-weight: 700;
}
.cs-page .cs-preserve-lines {
    white-space: pre-line;
}
.cs-page .cs-prose .cs-challenge-list {
    display: grid;
    gap: 14px;
    margin-top: 28px;
    padding: 0;
    list-style: none;
}
.cs-page .cs-challenge-list li {
    position: relative;
    padding-left: 28px;
}
.cs-page .cs-challenge-list li + li {
    margin-top: 0;
}
.cs-page .cs-challenge-list li::before {
    content: "✓";
    position: absolute;
    top: 0;
    left: 0;
    color: #6b29bd;
    font-weight: 700;
}
.cs-page .cs-keywords {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 10px;
    padding: 0;
    list-style: none;
}
.cs-page .cs-keywords li {
    max-width: 100%;
    padding: 10px 16px;
    border: 1px solid #e0d7f0;
    border-radius: 12px;
    background: #f8f5fe;
    color: #513474;
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.cs-page .cs-results {
    padding: 32px;
    margin-block: 32px;
    border: 1px solid #e0d7f0;
    border-radius: 20px;
    background: linear-gradient(120deg, #faf5ff, #f3f6ff);
}
.cs-page .cs-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 20px;
}
.cs-page .cs-gallery img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #e7e7f2;
    border-radius: 14px;
    background: #f8f6fc;
}
@media (max-width: 991px) {
    .cs-page .cs-shell {
        width: calc(100% - 48px);
    }
    .cs-page .cs-hero-grid {
        gap: 32px;
    }
    .cs-page .cs-story-section {
        grid-template-columns: minmax(160px, 0.38fr) minmax(0, 1fr);
        gap: 28px;
    }
    .cs-page .cs-card-content {
        padding: 24px;
    }
}
@media (max-width: 767px) {
    .cs-page .cs-shell {
        width: calc(100% - 36px);
    }
    .cs-page .cs-hero {
        padding: 24px 0 32px;
    }
    .cs-page .cs-breadcrumbs {
        gap: 8px;
        margin-bottom: 32px;
        font-size: 12px;
    }
    .cs-page .cs-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }
    .cs-page .cs-hero-image {
        padding: 10px;
        border-radius: 18px;
    }
    .cs-page .cs-project-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 20px;
        margin-top: 32px;
        padding: 24px;
    }
    .cs-page .cs-project-facts dd {
        font-size: 14px;
    }
    .cs-page .cs-card-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
    .cs-page .cs-card-image {
        padding: 14px;
    }
    .cs-page .cs-listing {
        padding: 32px 0 56px;
    }
    .cs-page .cs-story {
        padding-top: 36px;
        padding-bottom: 56px;
    }
    .cs-page .cs-story-section {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        padding-block: 28px;
    }
    .cs-page .cs-story-section > h2 {
        font-size: 24px;
    }
    .cs-page .cs-prose {
        font-size: 15px;
        line-height: 1.85;
    }
    .cs-page .cs-results {
        padding: 24px;
        margin-block: 24px;
    }
    .cs-page .cs-gallery {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Portfolio details share the case-study page foundation in assets.php. */
.portfolio-page .portfolio-tags {
    margin-top: 24px;
}
.portfolio-page .cs-project-facts dd span {
    display: block;
}
.portfolio-page .cs-prose .portfolio-requirements {
    margin-top: 0;
}
.portfolio-page .portfolio-related {
    padding: 56px 0 80px;
    border-top: 1px solid #e7e7f2;
    background: #faf8fd;
}
.portfolio-page .portfolio-related-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
}
.portfolio-page .portfolio-related-heading h2 {
    font-size: clamp(28px, 3vw, 36px);
    line-height: 1.2;
}
.portfolio-page .cs-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.portfolio-page .cs-card h3 {
    margin-bottom: 16px;
    font-size: 24px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.portfolio-page .cs-card h3 a {
    color: inherit;
}
.portfolio-page .cs-card h3 a:hover {
    color: #6b29bd;
}
.portfolio-page .cs-card-content > .cs-eyebrow {
    margin-bottom: 12px;
    color: #6b29bd;
    font-size: 11px;
}
@media (max-width: 767px) {
    .portfolio-page .portfolio-related {
        padding: 36px 0 56px;
    }
}
