/* ========================================================================
   CASE STUDY — READING LAYER
   Extends the site design system (styles.css) for long-form project pages.
   The landing is a poster; a case study is a document. This layer adds:
   - a 6-level type scale: display / 48 / 32 / 20 / 18 body / 14 labels
   - body text at weight 400 so bold headings pop while scanning
   - ink colors that pass WCAG AA (100% cream, or 75% for muted text —
     same precedent as the review roles on the landing). Hierarchy comes
     from size/weight/case, never from low-opacity text.
   - a reading rhythm: sections 150/100, title-to-content 64/40,
     inner elements 24/32/48/64 (half the landing's monumental scale)
   ======================================================================== */

.case-study{
    /* reading inks (AA-safe on --bg-dark: 15.4:1 and 7.9:1) */
    --cs-ink: var(--main-light);
    --cs-ink-muted: rgba(236, 227, 207, 0.75);
    /* decorative accents (non-text, exempt from contrast rules) */
    --cs-accent-soft: rgba(246, 61, 0, 0.2);
    --cs-accent-half: rgba(246, 61, 0, 0.5);
    --cs-surface: var(--main-light-05);
}

/* the landing's 50% cream fails AA for text: inside a case study it
   always means "muted ink" instead */
.case-study .text-light-5{
    color: var(--cs-ink-muted);
}

/* ---- READING COLUMN ---- */

.sub-body{
    margin-left: 24px;
    margin-right: 24px;
}

@media (min-width: 775px){
    .sub-body{
        margin-left: 64px;
        margin-right: 64px;
    }
}

@media (min-width: 1440px){
    .sub-body{
        margin-left: 15.8333333%;
        margin-right: 15.8333333%;
    }
}

/* prose never exceeds a comfortable measure (~65-75 characters) */
.cs-body-text,
.cs-card__text,
.cs-card__detail{
    max-width: 70ch;
}

.border-divider{
    background: var(--main-light-05);
    height: 1px;
}

/* ---- TYPE SCALE ---- */

/* level 6 — labels / eyebrows / captions */
.cs-label{
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    line-height: 1.4;
    display: inline-block;
}

/* level 5 — body (regular weight: reading, not display) */
.cs-body-text{
    font-size: 18px;
    font-weight: 400;
    line-height: 1.65;
    color: var(--cs-ink-muted);
    text-transform: none;
    margin: 0;
}

.cs-body-text--muted{
    margin-top: 16px;
}

.cs-detail-value{
    font-size: 18px;
    font-weight: 700;
    text-transform: none;
    line-height: 1.5;
}

/* level 4 — highlights (card titles, step titles) */
.cs-card__title{
    font-size: 20px;
    font-weight: 700;
    color: var(--cs-ink);
    text-transform: uppercase;
    line-height: 1.25;
    margin-bottom: 12px;
    transition: color 0.5s ease;
}

.cs-card__title--spaced{
    margin-top: 24px;
    margin-bottom: 24px;
}

.cs-step-title{
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
    margin: 0;
}

/* level 3 — subsection titles */
.cs-subtitle{
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 16px;
}

/* level 2 — section titles */
.cs-section-title{
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* level 1 — display (case hero) */
.cs-hero__title{
    font-size: clamp(2.5rem, 8vw, 7rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 0.9;
    margin-bottom: 16px;
}

.cs-hero__title span{
    display: block;
}

/* ---- SHARED DECORATIVE ELEMENTS ---- */

.cs-divider-h{
    display: inline-block;
    width: 48px;
    height: 1px;
    background-color: var(--main-light-3);
    vertical-align: middle;
}

.cs-divider-flex{
    flex: 1;
    height: 1px;
    background-color: var(--main-light-05);
}

.cs-divider-border{
    border-top: 1px solid var(--main-light-05);
}

.cs-accent-line{
    width: 64px;
    height: 2px;
    background-color: var(--main);
    margin-top: 16px;
}

.cs-dot{
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--cs-accent-soft);
    display: inline-block;
    transition: background-color 0.5s ease;
}

.cs-bullet-dot{
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--main);
    display: inline-block;
    flex-shrink: 0;
    margin-top: 9px;
}

.cs-meta-row{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

/* ---- HERO: title on top, then the home-slide image as a fixed-cover
   card (24px margins, 24px radius — the email-box radius token). The
   clip-path curtain gives the "window" effect on every device, including
   iOS where background-attachment: fixed is broken. ---- */

.cs-hero{
    background-color: var(--bg-dark);
    padding-top: 128px;
}

.cs-hero-visual{
    position: relative;
    height: 80vh;
    height: 80svh;
    margin: 24px 24px 0;
    clip-path: inset(0 round 24px);
}

.cs-hero-visual::before{
    content: '';
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.cs-hero-visual--weedoo::before{
    background-image: url("../img/weedooPortfolio.webp");
}

.cs-hero-visual--jobif::before{
    background-image: url("../img/leaddmePortfolio.webp");
}

.cs-hero-visual--google::before{
    background-image: url("../img/dashboard-google.webp");
}

.cs-hero__bottom{
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-top: 64px;
    padding-bottom: 64px;
}

@media (min-width: 775px){
    .cs-hero__bottom{
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        padding-top: 80px;
        padding-bottom: 100px;
    }
}

.cs-hero__subtitle{
    max-width: 520px;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.65;
}

.cs-hero__details{
    display: flex;
    gap: 32px;
}

/* on narrow phones the 3 details wrap instead of squeezing into columns */
@media (max-width: 575.98px){
    .cs-hero__details{
        flex-wrap: wrap;
        gap: 24px 48px;
    }
}

@media (min-width: 775px){
    .cs-hero__details{
        gap: 48px;
    }
}

.cs-hero__detail{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cs-scroll-indicator{
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
}

.cs-scroll-indicator__arrow{
    color: var(--cs-ink-muted);
    font-size: 14px;
    animation: cs-bounce 2s infinite ease-in-out;
}

@keyframes cs-bounce{
    0%, 100%{ transform: translateY(0); }
    50%{ transform: translateY(8px); }
}

/* ---- MARQUEE (decorative, aria-hidden) ---- */

.cs-marquee-wrap{
    padding: 24px 0;
    border-top: 1px solid var(--main-light-05);
    border-bottom: 1px solid var(--main-light-05);
    overflow: hidden;
}

.cs-marquee{
    overflow: hidden;
    white-space: nowrap;
}

.cs-marquee__track{
    display: inline-flex;
    gap: 32px;
    animation: cs-marquee-scroll 40s linear infinite;
}

.cs-marquee--reverse .cs-marquee__track{
    animation-direction: reverse;
    animation-duration: 35s;
}

/* large-text AA: cream 50% = 4.4:1, full orange = 4.3:1 */
.cs-marquee__track span{
    display: inline-flex;
    align-items: center;
    gap: 32px;
    font-size: 20px;
    font-weight: 700;
    color: var(--main-light-5);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.cs-marquee__track span em{
    color: var(--main);
    font-style: normal;
}

@keyframes cs-marquee-scroll{
    0%{ transform: translateX(0); }
    100%{ transform: translateX(-50%); }
}

/* ---- SECTION HEADERS (reading rhythm: 150/100 above, 64/40 below) ---- */

.cs-section-header{
    padding-top: 100px;
    padding-bottom: 40px;
}

@media (min-width: 775px){
    .cs-section-header{
        padding-top: 150px;
        padding-bottom: 64px;
    }
}

.cs-section-header__split{
    display: flex;
    flex-direction: column;
    gap: 32px;
}

@media (min-width: 775px){
    .cs-section-header__split{
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

.cs-section-header__aside{
    max-width: 380px;
}

/* ---- CARDS ---- */

.cs-cards-grid{
    display: grid;
    gap: 1px;
}

.cs-cards-grid--3,
.cs-cards-grid--2{
    grid-template-columns: 1fr;
}

@media (min-width: 775px){
    .cs-cards-grid--3{
        grid-template-columns: repeat(3, 1fr);
    }
    .cs-cards-grid--2{
        grid-template-columns: repeat(2, 1fr);
    }
}

.cs-card{
    padding: 32px;
    height: 100%;
    transition: background-color 0.5s ease;
}

@media (min-width: 775px){
    .cs-card{
        padding-left: 40px;
        padding-right: 40px;
    }
}

.cs-card--hover:hover .cs-dot{
    background-color: var(--main);
}

.cs-card--hover:hover .cs-card__title{
    color: var(--main);
}

.cs-card--center{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cs-card--elevated{
    background-color: var(--cs-surface);
}

.cs-card__header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

/* ghost watermark numbers: rendered via CSS content — pure decoration,
   exempt from contrast rules (WCAG 1.4.3 "incidental") */
.cs-card__num{
    font-size: 48px;
    font-weight: 700;
    color: var(--main-light-05);
    text-transform: uppercase;
    transition: color 0.5s ease;
}

.cs-card__num::before{
    content: attr(data-num);
}

.cs-card--hover:hover .cs-card__num{
    color: var(--cs-accent-soft);
}

.cs-card__text{
    font-size: 18px;
    font-weight: 400;
    color: var(--cs-ink-muted);
    line-height: 1.65;
    text-transform: none;
    margin: 0;
}

.cs-card__detail{
    font-size: 14px;
    font-weight: 400;
    color: var(--cs-ink-muted);
    line-height: 1.65;
    text-transform: none;
    margin-top: 8px;
}

/* ---- STATS ---- */

.cs-stats-row{
    display: grid;
    gap: 1px;
    background-color: var(--main-light-05);
}

.cs-stats-row--4,
.cs-stats-row--5{
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 775px){
    .cs-stats-row--4{
        grid-template-columns: repeat(4, 1fr);
    }
    .cs-stats-row--5{
        grid-template-columns: repeat(5, 1fr);
    }
}

.cs-stat{
    background-color: var(--bg-dark);
    padding: 24px 32px;
    text-align: center;
    transition: background-color 0.7s ease;
}

.cs-stat--highlight:hover{
    background-color: var(--cs-surface);
}

.cs-stat__value{
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 4px;
    display: block;
}


/* ---- TWO-COLUMN (Problem, Manual, PLX Constraints) ---- */

.cs-two-col{
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding-top: 40px;
    padding-bottom: 64px;
}

@media (min-width: 775px){
    .cs-two-col{
        flex-direction: row;
        gap: 80px;
        padding-top: 64px;
        padding-bottom: 100px;
    }
}

.cs-two-col__left{
    flex: 0 0 auto;
}

@media (min-width: 775px){
    .cs-two-col__left{
        width: 33.333%;
    }
    .cs-two-col__right{
        width: 66.666%;
    }
}

.cs-bullet-grid{
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
}

@media (min-width: 576px){
    .cs-bullet-grid{
        grid-template-columns: repeat(2, 1fr);
    }
}

.cs-bullet-item{
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.cs-bullet-item span:last-child{
    font-size: 18px;
    font-weight: 400;
    color: var(--cs-ink-muted);
    text-transform: none;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.cs-bullet-item:hover span:last-child{
    color: var(--cs-ink);
}

/* ---- PROCESS STEPS ---- */

.cs-process-wrap{
    border-top: 1px solid var(--main-light-05);
    border-bottom: 1px solid var(--main-light-05);
    margin-top: 64px;
}

.cs-process-wrap > .sub-body{
    padding-top: 48px;
    padding-bottom: 48px;
}

@media (min-width: 775px){
    .cs-process-wrap > .sub-body{
        padding-top: 64px;
        padding-bottom: 64px;
    }
}

.cs-process-header{
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
}

.cs-process-steps{
    display: flex;
    flex-direction: column;
}

.cs-process-step{
    display: flex;
    gap: 24px;
    padding: 32px 0;
    border-bottom: 1px solid var(--main-light-05);
    transition: padding-left 0.5s ease;
}

@media (min-width: 775px){
    .cs-process-step{
        gap: 48px;
    }
}

.cs-process-step:last-child{
    border-bottom: none;
}

.cs-process-step:hover{
    padding-left: 16px;
}

.cs-process-step:hover .cs-label{
    color: var(--main);
}

.cs-process-step:hover .cs-step-title{
    color: var(--main);
}

/* ---- CHECKLIST ---- */

.cs-checklist{
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.cs-checklist__item{
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.cs-checklist__dot{
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--cs-accent-half);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 4px;
    transition: border-color 0.5s ease;
}

.cs-checklist__dot span{
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--cs-accent-half);
    transition: background-color 0.5s ease;
}

.cs-card--hover:hover .cs-checklist__dot{
    border-color: var(--main);
}

.cs-card--hover:hover .cs-checklist__dot span{
    background-color: var(--main);
}

.cs-checklist__item span:last-child{
    font-size: 18px;
    font-weight: 400;
    color: var(--cs-ink-muted);
    text-transform: none;
    line-height: 1.5;
}

/* ---- SOURCE LIST ---- */

.cs-source-list{
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cs-source-item{
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--main-light-05);
}

.cs-source-item:last-child{
    border-bottom: none;
}

/* ---- REQUIREMENTS ---- */

.cs-requirements-grid{
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 775px){
    .cs-requirements-grid{
        grid-template-columns: repeat(2, 1fr);
        gap: 48px;
    }
}

.cs-requirement__header{
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.cs-requirement__bar{
    width: 3px;
    height: 24px;
    background-color: var(--main);
    flex-shrink: 0;
}

.cs-requirement__items{
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ---- ITERATIONS ---- */

.cs-iteration-grid{
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 775px){
    .cs-iteration-grid{
        grid-template-columns: repeat(4, 1fr);
    }
}

.cs-iteration-step .cs-label{
    margin-bottom: 16px;
}

.cs-iteration-step .cs-step-title{
    margin-bottom: 8px;
}

/* ---- BEFORE / AFTER ---- */

.cs-before-after-list{
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.cs-ba-item{
    display: flex;
    align-items: center;
    gap: 12px;
}

.cs-ba-item span:last-child{
    font-size: 18px;
    font-weight: 400;
    color: var(--cs-ink-muted);
    text-transform: none;
    line-height: 1.5;
}

.cs-ba-item--after span:last-child{
    color: var(--cs-ink);
}

.cs-ba-line{
    display: inline-block;
    width: 16px;
    height: 1px;
    background-color: var(--main-light-3);
    flex-shrink: 0;
}

.cs-ba-line--accent{
    background-color: var(--cs-accent-half);
}

.cs-transformation-indicator{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 16px 0;
}

.cs-pulse-dot{
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--main);
    animation: cs-pulse 2s infinite ease-in-out;
}

@keyframes cs-pulse{
    0%, 100%{ transform: scale(1); }
    50%{ transform: scale(1.2); }
}

/* ---- FEATURES & IMPACT ---- */

.cs-features-impact{
    display: flex;
    flex-direction: column;
    gap: 48px;
}

@media (min-width: 775px){
    .cs-features-impact{
        flex-direction: row;
        gap: 80px;
    }
    .cs-features-col,
    .cs-impact-col{
        width: 50%;
    }
}

.cs-features-col .cs-subtitle,
.cs-impact-col .cs-subtitle{
    margin-bottom: 32px;
}

.cs-feature-list{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cs-progress-bars{
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cs-progress__header{
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.cs-progress__track{
    height: 2px;
    background-color: var(--main-light-1);
    border-radius: 2px;
    overflow: hidden;
}

.cs-progress__fill{
    height: 100%;
    background-color: var(--main);
    border-radius: 2px;
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- IMPACT STATEMENT (pull quote) ---- */

.cs-impact-statement{
    text-align: center;
    padding: 64px 0 100px;
}

.cs-impact-statement .cs-label{
    margin-bottom: 32px;
}

.cs-impact-text{
    font-size: clamp(20px, 2.5vw, 24px);
    font-weight: 400;
    line-height: 1.6;
    text-transform: none;
    max-width: 40em;
    margin: 0 auto;
    color: var(--cs-ink);
}

/* ---- MOCK IMAGE ---- */

.cs-mock{
    padding: 32px 0;
}

.cs-mock img{
    width: 100%;
    height: auto;
    border-radius: 24px;
}

.cs-mock .cs-body-text{
    margin: 32px auto 0;
    text-align: center;
}

/* variant: tall artwork never exceeds one screen of height */
.cs-mock--capped img{
    width: auto;
    max-width: 100%;
    max-height: 100vh;
    max-height: 100svh;
    margin-left: auto;
    margin-right: auto;
}

/* ---- SCREEN GALLERY (showcase pages: full-length UI shots) ---- */

.cs-gallery{
    display: flex;
    flex-direction: column;
    gap: 64px;
    padding-bottom: 32px;
}

@media (min-width: 775px){
    .cs-gallery{
        gap: 100px;
    }
}

.cs-gallery figure{
    margin: 0;
}

.cs-gallery figure > img{
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
}

.cs-gallery figcaption{
    margin-top: 24px;
    text-align: center;
}

/* a trio of app screens side by side (stacks on phones) */
.cs-shot-trio{
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 576px){
    .cs-shot-trio{
        grid-template-columns: repeat(3, 1fr);
        align-items: start;
    }
}

.cs-shot-trio img{
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
}

/* very tall page captures flow inline, full length — the page scroll is
   the tour (Behance style), shown as an aligned desktop/mobile pair */
.cs-shot-pair{
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 775px){
    .cs-shot-pair{
        grid-template-columns: 2fr 1fr;
        align-items: start;
    }
}

.cs-shot-pair img{
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
}

/* phones see the mobile capture (readable at phone width); the desktop
   capture — microscopic at 390px — is for larger screens */
@media (max-width: 774.98px){
    .cs-shot-pair img:first-child{
        display: none;
    }
}

/* mockups in pairs — two columns even on phones, so no shot sits alone */
.cs-shot-duo{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    align-items: start;
}

@media (min-width: 775px){
    .cs-shot-duo{
        gap: 32px;
    }
}

.cs-shot-duo img{
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
}

/* four app screens: 2x2 on phones, one row on larger screens */
.cs-shot-quad{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    align-items: start;
}

@media (min-width: 775px){
    .cs-shot-quad{
        grid-template-columns: repeat(4, 1fr);
        gap: 32px;
    }
}

.cs-shot-quad img{
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
}

/* WeeDoo's light canvas (#F0F5F8) — brand assets are made for this bg */
.cs-light-card{
    background-color: #F0F5F8;
    border-radius: 24px;
    padding: 24px;
}

@media (min-width: 775px){
    .cs-light-card{
        padding: 40px;
    }
}

.cs-light-card img{
    width: 100%;
    height: auto;
    display: block;
}

/* text sitting on a light card uses the WeeDoo dark ink */
.cs-on-light{
    color: #1B1B21;
}

/* recreated component sheet: images are visuals, labels are real text */
.cs-navspec{
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cs-navspec img{
    width: 100%;
    height: auto;
    display: block;
}

.cs-navspec__states{
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 775px){
    .cs-navspec__states{
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

.cs-navspec__states span{
    display: block;
    margin-top: 8px;
    text-align: center;
}

/* tighter rhythm for spec/token sheets inside a chapter */
.cs-gallery--tight{
    gap: 32px;
}

@media (min-width: 775px){
    .cs-gallery--tight{
        gap: 48px;
    }
}

/* chapter divider inside a long process section */
.cs-chapter{
    padding-top: 64px;
}

@media (min-width: 775px){
    .cs-chapter{
        padding-top: 100px;
    }
}

.cs-chapter .cs-process-header{
    margin-bottom: 32px;
}

/* ---- WEEDOO FLAVOR ----
   The WeeDoo brand lives on a light canvas (#F0F5F8) with playful photo
   cutouts. These blocks rebuild its tokens as real HTML/CSS — text stays
   text (accessible, crawlable), and the glass effect is the actual effect. */

.cs-fun-banner{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    background-color: var(--cs-surface);
    border-radius: 24px;
    padding: 32px;
}

@media (min-width: 775px){
    .cs-fun-banner{
        flex-direction: row;
        gap: 48px;
        padding: 48px 64px;
    }
}

.cs-fun-banner img{
    width: min(320px, 70%);
    height: auto;
    flex-shrink: 0;
}

.cs-fun-banner__title{
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 700;
    color: var(--cs-ink);
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0;
}

.cs-fun-banner__title em{
    font-style: normal;
    color: #F30860;
}

.cs-fun-banner__echo{
    font-size: 20px;
    font-weight: 700;
    color: #F30860;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 8px 0 16px;
}

.cs-fun-banner__note{
    font-size: 16px;
    font-weight: 400;
    color: var(--cs-ink-muted);
    line-height: 1.55;
    text-transform: none;
    margin: 0;
    max-width: 42ch;
}

/* rounded card variant (WeeDoo personas): soft tiles instead of grid lines */
.cs-cards-grid--rounded{
    gap: 8px;
}

.cs-cards-grid--rounded .cs-card{
    border-radius: 24px;
}

/* brand tiles (logo variations on their intended backgrounds) */
.cs-tile-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 775px){
    .cs-tile-grid{
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

/* logo variations: the vertical mark takes one part, the horizontal two */
.cs-logo-row{
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 16px;
}

/* first row: the vertical tile is a 40px-padded square and the
   horizontal tile stretches to match its height */
.cs-logo-row:not(.cs-logo-row--squares) > div{
    display: flex;
    flex-direction: column;
}

.cs-logo-row:not(.cs-logo-row--squares) .cs-tile{
    flex: 1;
}

.cs-logo-row:not(.cs-logo-row--squares) > div:first-child .cs-tile{
    aspect-ratio: 1 / 1;
    min-height: 0;
    padding: 40px;
}

.cs-logo-row:not(.cs-logo-row--squares) > div:first-child .cs-tile img{
    max-width: 100%;
    max-height: 100%;
}

/* small screens: the pair stacks */
@media (max-width: 575.98px){
    .cs-logo-row{
        grid-template-columns: 1fr;
    }
}

.cs-logo-row + .cs-logo-row{
    margin-top: 16px;
}

/* below: two big square cards, same gap */
.cs-logo-row--squares{
    grid-template-columns: 1fr;
}

.cs-tile--square{
    aspect-ratio: 1 / 1;
    min-height: 0;
}

.cs-tile--lottie{
    padding: 0;
    overflow: hidden;
}

.cs-tile--lottie iframe{
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

@media (min-width: 576px){
    .cs-logo-row--squares{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 775px){
    .cs-logo-row{
        gap: 24px;
    }

    .cs-logo-row + .cs-logo-row{
        margin-top: 24px;
    }
}

.cs-tile{
    border-radius: 24px;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

@media (min-width: 775px){
    .cs-tile{
        min-height: 200px;
    }
}

.cs-tile--light{
    background-color: #F0F5F8;
}

.cs-tile--dark{
    background-color: #1B1B21;
}

.cs-tile img{
    max-width: 78%;
    max-height: 150px;
    width: auto;
    height: auto;
}

/* variant: the artwork covers the whole tile as a background */
.cs-tile--fill{
    padding: 0;
    background-image: url("../weedoo/logo-structure.svg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.cs-tile-label{
    display: block;
    margin-top: 12px;
    text-align: center;
}

/* color tokens as live swatches */
.cs-swatch-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 775px){
    .cs-swatch-grid{
        grid-template-columns: repeat(4, 1fr);
    }
}

.cs-swatch{
    border-radius: 16px;
    min-height: 112px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 2px;
}

/* labels sit on a dark chip so they pass AA over any brand color */
.cs-swatch strong,
.cs-swatch span{
    background-color: rgba(20, 20, 23, 0.8);
    color: #F0F5F8;
    padding: 2px 10px;
    border-radius: 6px;
    align-self: flex-start;
}

.cs-swatch strong{
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.cs-swatch span{
    font-size: 14px;
}

.cs-swatch--ink-dark{ color: #1B1B21; }
.cs-swatch--ink-light{ color: #F0F5F8; }

.cs-tint-row{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 16px;
}

@media (min-width: 775px){
    .cs-tint-row{
        grid-template-columns: repeat(8, 1fr);
    }
}

.cs-tint{
    border-radius: 12px;
    height: 64px;
    display: flex;
    align-items: flex-end;
    padding: 8px 10px;
    color: var(--cs-ink-muted);
    font-size: 14px;
    font-weight: 500;
}

/* spacing scale as real bars */
.cs-bars{
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.cs-bar{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.cs-bar i{
    display: block;
    height: 96px;
    background-color: rgba(236, 227, 207, 0.22);
    border-radius: 4px;
}

.cs-bar span{
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--cs-ink-muted);
}

/* the glass, for real: CSS backdrop blur over the brand gradient */
.cs-glass-demo{
    /* a real photo behind the chips: backdrop blur needs sharp detail
       behind it to be visible */
    background-image: url("../weedoo/glass-bg.webp");
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 775px){
    .cs-glass-demo{
        padding: 40px;
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

.cs-glass-chip{
    height: 120px;
    border-radius: 16px;
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(240, 245, 248, 0.35);
    display: flex;
    align-items: flex-end;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #F0F5F8;
}

.cs-glass-chip--1{ background-color: rgba(240, 245, 248, 0.01); }
.cs-glass-chip--50{ background-color: rgba(240, 245, 248, 0.5); color: #1B1B21; }
.cs-glass-chip--80{ background-color: rgba(240, 245, 248, 0.8); color: #1B1B21; }
.cs-glass-chip--shadow{
    background-color: rgba(240, 245, 248, 0.01);
    box-shadow: 8px 8px 32px rgba(56, 107, 156, 0.6);
}

/* type scale, set in the app's own typeface */
.cs-wix{
    font-family: "Wix Madefor Text", "Inter", sans-serif;
}

.cs-type-row{
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--main-light-05);
}

.cs-type-row:last-child{
    border-bottom: none;
}

.cs-type-row .cs-type-sample{
    font-weight: 700;
    color: var(--cs-ink);
    line-height: 1;
    text-transform: none;
    white-space: nowrap;
}

.cs-type-row .cs-type-meta{
    margin-left: auto;
    text-align: right;
    flex-shrink: 0;
}

/* feature definition — five areas, real text */
.cs-def-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

@media (min-width: 775px){
    .cs-def-grid{
        grid-template-columns: repeat(5, 1fr);
        gap: 24px;
    }
}

.cs-def-col ul{
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}

.cs-def-col li{
    padding: 8px 0;
    border-bottom: 1px solid var(--main-light-05);
    font-size: 16px;
    font-weight: 400;
    color: var(--cs-ink-muted);
    text-transform: none;
    line-height: 1.4;
}

.cs-def-col li:last-child{
    border-bottom: none;
}

/* ---- BACK TO TOP (appears after the first screen) ---- */

.cs-top-btn{
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 90;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--main);
    color: var(--main-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 10px 10px 24px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease, background-color 0.3s ease;
}

.cs-top-btn.visible{
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.cs-top-btn:hover{
    background-color: var(--main-light);
    color: var(--main-dark);
}

/* aligned with the content edge; with the menu once it exists */
@media (min-width: 775px){
    .cs-top-btn{
        right: 64px;
        bottom: 40px;
    }
}

@media (min-width: 1200px){
    .cs-top-btn{
        right: 100px;
    }
}

/* ---- NEXT PROJECTS (cross navigation between portfolio pieces) ---- */

.cs-next{
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 100px;
}

@media (min-width: 576px){
    .cs-next{
        grid-template-columns: repeat(2, 1fr);
        gap: 48px;
        padding-bottom: 150px;
    }
}

/* compact 80px buttons: thumbnail + caption in a row */
.cs-next__card{
    display: flex;
    align-items: center;
    gap: 24px;
    height: 80px;
    text-decoration: none;
}

.cs-next__card img{
    width: 142px;
    height: 80px;
    object-fit: cover;
    border-radius: 24px;
    display: block;
    flex-shrink: 0;
}

.cs-next__meta{
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cs-next__title{
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--cs-ink);
    text-transform: uppercase;
    line-height: 1.25;
    transition: color 0.3s ease;
}

.cs-next__card:hover .cs-next__title{
    color: var(--main);
}

.cs-next__chevron{
    margin-left: auto;
    color: var(--cs-ink-muted);
    font-size: 14px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.cs-next__card:hover .cs-next__chevron{
    color: var(--main);
    transform: translateX(4px);
}

/* ---- FOOTER CTA ---- */

.cs-footer-cta__inner{
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 100px 0 100px;
}

@media (min-width: 775px){
    .cs-footer-cta__inner{
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 100px 0 150px;
    }
}

.cs-footer-cta__inner .cs-label{
    margin-bottom: 16px;
}

.cs-footer-email{
    margin-top: 24px;
}

.cs-footer-email p{
    font-size: 18px;
    font-weight: 700;
    text-transform: lowercase;
    color: var(--cs-ink);
    margin: 0 0 4px;
}

.cs-footer-cta__links{
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cs-footer-cta__social-link{
    transition: color 0.3s ease;
}

.cs-footer-cta__social-link:hover{
    color: var(--main) !important;
}

.cs-btn-back{
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    height: auto;
    padding: 16px 32px;
    border-radius: 42px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cs-btn-back:hover{
    background-color: var(--main);
    color: var(--main-light);
}

.cs-btn-back i{
    font-size: 14px;
    color: inherit;
}

/* ---- CONCEPT PAIR (asymmetric breathing room per sample) ---- */

.cs-shot-duo .cs-light-card:first-child{
    padding: 32px;
}

.cs-shot-duo .cs-light-card:last-child{
    padding: 48px;
}

@media (min-width: 775px){
    .cs-shot-duo .cs-light-card:first-child{
        padding: 80px;
    }
    .cs-shot-duo .cs-light-card:last-child{
        padding: 120px;
    }
}

/* ---- USER FLOW MAP ---- */

.cs-flow-scroller img{
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
}

.cs-flow-hint{
    display: none;
}

/* portrait phones and tablets: the map takes the screen height
   and scrolls sideways instead of shrinking into a stamp */
@media (orientation: portrait) and (max-width: 1024px){
    .cs-flow-scroller{
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        height: 100vh;
        height: 100svh;
        border-radius: 24px;
    }

    .cs-flow-scroller img{
        height: 100%;
        width: auto;
        max-width: none;
        border-radius: 0;
    }

    .cs-flow-hint{
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 8px;
        position: relative;
        z-index: 2;
        margin-top: -44px;
        /* clears the fixed back-to-top circle in the corner */
        padding-right: 104px;
    }

    .cs-flow-hint__arrow{
        color: var(--cs-ink-muted);
        font-size: 14px;
        animation: cs-nudge-x 2s infinite ease-in-out;
    }
}

@keyframes cs-nudge-x{
    0%, 100%{ transform: translateX(0); }
    50%{ transform: translateX(8px); }
}

/* ---- BRAND MOCKUPS (stationery, tags, merch) ---- */

.cs-tag-row{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.cs-tag-row img{
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.cs-brand-duo{
    display: grid;
    gap: 16px;
    align-items: start;
}

.cs-brand-duo img{
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
}

@media (min-width: 775px){
    .cs-tag-row{
        grid-template-columns: repeat(6, 1fr);
    }

    .cs-brand-duo{
        gap: 32px;
    }

    /* columns sized by each image's aspect ratio so the pair
       lands at the same height without cropping anything */
    .cs-brand-duo--a{
        grid-template-columns: 1.524fr 1.211fr;
    }

    .cs-brand-duo--b{
        grid-template-columns: 1.131fr 1.389fr;
    }
}
