:root {
    --cs-ink: #0D1B2A;
    --cs-scrim-rgb: 13, 27, 42;
}

/* ══════════════════════════════════════════════
   Right From Start — Hero
   ══════════════════════════════════════════════ */

.cs-scroll-container {
    position: relative;
    overflow: visible;
}

.cs-hero-track {
    position: relative;
    height: 200vh;
}

.cs-hero {
    position: sticky;
    top: 0;
    z-index: 1;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    will-change: transform, opacity, filter;
}

.cs-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cs-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    background: var(--cs-ink);
    display: block;
}

.cs-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
            to bottom,
            rgba(var(--cs-scrim-rgb), 0.10) 0%,
            rgba(var(--cs-scrim-rgb), 0.25) 40%,
            rgba(var(--cs-scrim-rgb), 0.72) 70%,
            rgba(var(--cs-scrim-rgb), 0.88) 100%
    );
}

.cs-hero-content {
    position: relative;
    z-index: 1;
    padding: 0 5vw 6vh;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 100%;
    will-change: transform, opacity;
}

.cs-hero-title {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 300;
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin: 0;
}

.cs-hero-sub {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 200;
    font-size: clamp(0.95rem, 1.4vw, 1.2rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.68);
    margin: 0;
    max-width: 50ch;
}

.cs-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 3rem;
    margin-top: 0.5rem;
}

.cs-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.cs-meta-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.cs-meta-value {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 300;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.90);
    line-height: 1.3;
}

.cs-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.75rem 1.4rem;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 300;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.90);
    text-decoration: none;
    width: fit-content;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background:
            linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)) padding-box,
            linear-gradient(90deg, transparent, transparent) border-box;
    background-size: 100% 100%, 200% 100%;
    transition: background 0.3s ease, color 0.3s ease;
}

.cs-hero-cta:hover {
    color: var(--ink, #111);
    background:
            linear-gradient(#ffffff, #ffffff) padding-box,
            linear-gradient(90deg, #0052FF, #00C8A3, #0052FF, #00C8A3, #0052FF) border-box;
    background-size: 100% 100%, 200% 100%;
    animation: cs-gradient-shift 10s linear infinite;
}

@keyframes cs-gradient-shift {
    to { background-position: 0 0, -200% 0; }
}

@media (max-width: 760px) {
    .cs-hero-track { height: 200vh; }
    .cs-hero-content { padding: 0 6vw 5vh; }
    .cs-hero-meta { gap: 1.2rem 2rem; }
    .cs-hero-title { font-size: 2.4rem; }
}

/* ══════════════════════════════════════════════
   THE BRIEF
   ══════════════════════════════════════════════ */
.cs-brief {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #ffffff;
    border-radius: 58px 58px 0 0;
    box-shadow: none;
    padding: 8vh 80px 12vh;
    margin-top: -100vh;
    min-height: 100vh;
    width: 100%;
}

.cs-brief-inner {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 0 8vw;
    align-items: start;
}

.cs-brief-left {
    position: sticky;
    top: 8rem;
}

.cs-brief-heading {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 300;
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    line-height: 1.0;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin: 0;
}

.cs-brief-right {
    display: flex;
    flex-direction: column;
    padding-top: 0.25rem;
}

.cs-brief-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 0;
}

.cs-brief-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink);
}

.cs-brief-body {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    line-height: 1.75;
    color: var(--ink-soft);
    margin: 0;
    max-width: 75ch;
}

.cs-brief-divider {
    border: none;
    border-top: 1px solid var(--line);
    margin: 0;
}

/* ── HERO + BRIEF RESPONSIVE ── */
@media (max-width: 768px) {
    .cs-hero-track { height: 200vh; }
    .cs-hero-meta { flex-wrap: wrap; gap: 1.5rem 2.5rem; }
    .cs-hero-content { padding: 0 6vw 5vh; }
    .cs-brief { padding: 8vh 6vw 10vh; }
    .cs-brief-inner { grid-template-columns: 1fr; gap: 3rem 0; }
    .cs-brief-left { position: static; }
}

@media (max-width: 480px) {
    .cs-hero-title { font-size: 2.8rem; }
    .cs-hero-meta { gap: 1.2rem 2rem; }
}

/* ══════════════════════════════════════════════
   SNAPSHOT SECTION — homepage screenshot in browser chrome
   ══════════════════════════════════════════════ */

.cs-snapshot {
    background: #ffffff;
    padding: 12vh 80px 10vh;
    position: relative;
    overflow: hidden;
}

.cs-snapshot-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ── header (currently unused — markup is commented out in HTML) ── */
.cs-snapshot-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 8vw;
    align-items: start;
}

.cs-snapshot-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    grid-column: 1 / -1;
    margin-bottom: 0.75rem;
    display: block;
}

.cs-snapshot-heading {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 300;
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin: 0;
}

.cs-snapshot-heading em {
    font-style: italic;
    color: var(--ink-soft);
}

.cs-snapshot-sub {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.15vw, 1rem);
    line-height: 1.75;
    color: var(--ink-soft);
    margin: 0;
    max-width: 44ch;
    padding-top: 0.35rem;
    align-self: end;
}

/* ── browser mockup stage ── */
.cs-snapshot-stage {
    position: relative;
}

.cs-browser {
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--line-strong);
    box-shadow:
            0 2px 4px rgba(13, 27, 42, 0.04),
            0 8px 24px rgba(13, 27, 42, 0.07),
            0 32px 64px rgba(13, 27, 42, 0.06);
    max-width: 960px;
    margin: 0 auto;
    transition:
            transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
            opacity   0.7s ease;
}

/* JS adds .cs-browser-animate on load, then .is-visible on scroll-into-view */
.cs-browser.cs-browser-animate {
    transform: translateY(40px);
    opacity: 0;
}

.cs-browser.cs-browser-animate.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.cs-browser-bar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.75rem 1rem;
    background: #f0f0f0;
    border-bottom: 1px solid var(--line);
}

.cs-browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--line-strong);
    flex-shrink: 0;
}

.cs-browser-dot:nth-child(1) { background: #fc5c57; }
.cs-browser-dot:nth-child(2) { background: #fdbc40; }
.cs-browser-dot:nth-child(3) { background: #33c748; }

.cs-browser-url {
    flex: 1;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0.28rem 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: var(--muted);
    text-align: center;
    letter-spacing: 0.01em;
    margin: 0 0.5rem;
}

.cs-browser-viewport {
    overflow: hidden;
    line-height: 0;
}

.cs-snapshot-img {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
    user-select: none;
}

/* ── ambient glow beneath browser, fades in with the browser ── */
.cs-snapshot-glow {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 120px;
    background: radial-gradient(ellipse at center, rgba(74, 163, 74, 0.18) 0%, transparent 70%);
    pointer-events: none;
    filter: blur(20px);
    opacity: 0;
    transition: opacity 1s ease 0.4s;
    z-index: -1;
}

.cs-browser.is-visible ~ .cs-snapshot-glow,
.cs-browser:not(.cs-browser-animate) ~ .cs-snapshot-glow {
    opacity: 1;
}

@media (max-width: 768px) {
    .cs-snapshot { padding: 10vh 6vw 8vh; }
    .cs-snapshot-header { grid-template-columns: 1fr; gap: 1rem 0; }
    .cs-snapshot-sub { padding-top: 0.5rem; }
    .cs-snapshot-glow { width: 80%; }
}


/* ══════════════════════════════════════════════
   TWO-SIDED BUILD SECTION — text + laptop mockup
   ══════════════════════════════════════════════ */

.cs-build {
    background: #ffffff;
    padding: 10vh 80px 12vh;
}

.cs-build-inner {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 6vw;
    align-items: start;
}

.cs-build-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    display: block;
    margin-bottom: 1rem;
}

.cs-build-heading {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 300;
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin: 0 0 1.5rem;
}

.cs-build-body {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.15vw, 1rem);
    line-height: 1.8;
    color: var(--ink-soft);
    margin: 0;
    max-width: 52ch;
}

.cs-build-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cs-build-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    border-radius: 8px;
    pointer-events: none;
    user-select: none;
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    opacity   0.7s ease;
}

/* JS adds .cs-img-animate on load, then .is-visible on scroll-into-view */
.cs-build-img.cs-img-animate {
    transform: translateY(32px);
    opacity: 0;
}

.cs-build-img.cs-img-animate.is-visible {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 768px) {
    .cs-build { padding: 8vh 6vw 10vh; }
    .cs-build-inner {
        grid-template-columns: 1fr;
        gap: 3rem 0;
    }
    .cs-build-body { max-width: none; }
    .cs-build-img { max-width: 100%; }
}


/* ══════════════════════════════════════════════
   STYLES SECTION — colour palette + type specimen
   ══════════════════════════════════════════════ */

.cs-styles {
    background: #ffffff;
    padding: 10vh 80px 12vh;
    border-radius: 0 0 58px 58px;
    position: relative;
    z-index: 1;
}

.cs-styles-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.cs-styles-header {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.cs-styles-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.cs-styles-heading {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 300;
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin: 0;
}

.cs-styles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
    min-height: 80vh;
}

/* ── colour palette ── */
.cs-palette {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(13, 27, 42, 0.08);
}

.cs-swatch {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.1rem 1.4rem;
    flex: 1;
    min-height: 90px;
}

/* animation only plays once JS adds .animate-in to the parent .cs-palette */
.cs-palette.animate-in .cs-swatch {
    animation: cs-swatch-slide 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cs-palette.animate-in .cs-swatch:nth-child(1) { animation-delay: 0.00s; }
.cs-palette.animate-in .cs-swatch:nth-child(2) { animation-delay: 0.08s; }
.cs-palette.animate-in .cs-swatch:nth-child(3) { animation-delay: 0.16s; }
.cs-palette.animate-in .cs-swatch:nth-child(4) { animation-delay: 0.24s; }
.cs-palette.animate-in .cs-swatch:nth-child(5) { animation-delay: 0.32s; }

@keyframes cs-swatch-slide {
    from { opacity: 0; transform: translateX(-48px); }
    to   { opacity: 1; transform: translateX(0); }
}

.cs-swatch--growth { background: #52B44C; }
.cs-swatch--pine   { background: #2B6328; }
.cs-swatch--ink    { background: #1F2937; }
.cs-swatch--sage   { background: #E4F4E2; }
.cs-swatch--mint   { background: #F2FAF1; }

.cs-swatch-name {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.3;
}

.cs-swatch-hex {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    margin-top: 0.15rem;
}

/* light text on dark swatches */
.cs-swatch--growth .cs-swatch-name,
.cs-swatch--growth .cs-swatch-hex,
.cs-swatch--pine   .cs-swatch-name,
.cs-swatch--pine   .cs-swatch-hex,
.cs-swatch--ink    .cs-swatch-name,
.cs-swatch--ink    .cs-swatch-hex {
    color: rgba(255, 255, 255, 0.92);
}

/* dark text on light swatches */
.cs-swatch--sage .cs-swatch-name,
.cs-swatch--sage .cs-swatch-hex,
.cs-swatch--mint .cs-swatch-name,
.cs-swatch--mint .cs-swatch-hex {
    color: #1F2937;
}

/* ── type specimen card ── */
.cs-type-card {
    background: #ECEEF2;
    border-radius: 16px;
    padding: 2rem 2.2rem 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 24px rgba(13, 27, 42, 0.08);
    overflow: hidden;
}

/* animation only plays once JS adds .animate-in */
.cs-type-card.animate-in {
    animation: cs-card-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

@keyframes cs-card-rise {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cs-type-name-row {
    display: flex;
    align-items: baseline;
    flex-direction: column;
}

.cs-type-family {
    font-family: 'Gloock', Georgia, serif;
    font-weight: 400;
    font-size: clamp(2rem, 3vw, 2.8rem);
    color: #0a0a0a;
    letter-spacing: -0.02em;
}

.cs-type-display {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 1rem 0;
}

/* animated gradient sweep across the "Aa" specimen letters */
.cs-type-icon {
    width: 20rem;
}

@keyframes cs-gradient-sweep {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.cs-type-rule {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    margin: 0.75rem 0;
}

.cs-type-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.cs-type-charset {
    font-size: 0.72rem;
    line-height: 1.7;
    color: var(--ink-soft);
    margin: 0;
    max-width: 36ch;
    opacity: 0.7;
}

.cs-type-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1rem;
    flex-shrink: 0;
}

.cs-type-stack span {
    font-size: 0.8rem;
    color: var(--ink-soft);
    opacity: 0.55;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .cs-styles-grid {
        grid-template-columns: 1fr;
    }
    .cs-palette {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .cs-swatch {
        flex: 1 1 30%;
        min-height: 90px;
    }
}

@media (max-width: 768px) {
    .cs-styles { padding: 8vh 6vw 10vh; }
}

/* ══════════════════════════════════════════════
   CLOSING SHOWCASE — append to rfs.css
   Dark section, three overlapping page screenshots
   Now lives inside .cs-showcase-track for sticky behavior
   ══════════════════════════════════════════════ */

.cs-showcase {
    background: var(--bg-gray);
    padding: 0 80px;
    padding-top: 58px;
    margin-top: -58px;
    overflow: hidden;
    /* sticky inside track */
    position: sticky;
    top: -40px;
    height: 100vh;
    display: flex;
    align-items: center;
}

.cs-showcase-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    width: 100%;
}

/* ── stacked mockup container ── */
.cs-showcase-stack {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

.cs-showcase-img {
    position: absolute;
    border-radius: 8px;
    /*box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);*/
    pointer-events: none;
    user-select: none;
}

/* left image — behind, shifted left + down */
.cs-showcase-img--left {
    width: 42%;
    left: 0;
    top: 45%;
    z-index: 2;
}

/* center image — front, largest */
.cs-showcase-img--center {
    width: 62%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 1;
}

/* right image — behind, shifted right + up */
.cs-showcase-img--right {
    width: 42%;
    right: -5%;
    top: 10%;
    z-index: 2;
}


/* ── entry animation: keyframe-based ── */
.cs-showcase-stack.animate-in .cs-showcase-img--left {
    animation: cs-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.cs-showcase-stack.animate-in .cs-showcase-img--center {
    animation: cs-rise-center 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0s both;
}

.cs-showcase-stack.animate-in .cs-showcase-img--right {
    animation: cs-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

@keyframes cs-rise {
    from { opacity: 0; transform: translateY(48px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes cs-rise-center {
    from { opacity: 0; transform: translateX(-50%) translateY(48px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .cs-showcase-stack { min-height: 420px; }
    .cs-showcase-img--left  { width: 48%; }
    .cs-showcase-img--center { width: 56%; }
    .cs-showcase-img--right { width: 48%; }
}

@media (max-width: 600px) {
    .cs-showcase { padding: 0 6vw; padding-top: 58px; }
    .cs-showcase-stack { min-height: 280px; }
    .cs-showcase-img--left   { width: 52%; }
    .cs-showcase-img--center { width: 60%; }
    .cs-showcase-img--right  { width: 52%; }
}
/* ══════════════════════════════════════════════
   SHOWCASE STICKY TRACK + ONBOARDING OVERLAY
   Append to rfs.css
   ══════════════════════════════════════════════ */

/* ── SHOWCASE TRACK: gives the showcase room to stay pinned ── */
.cs-showcase-track {
    position: relative;
    height: 200vh;
}


/* ══════════════════════════════════════════════
   ONBOARDING SECTION — slides over pinned showcase
   ══════════════════════════════════════════════ */

.cs-onboarding {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #ffffff;
    border-radius: 58px 58px 0 0;
    margin-top: -100vh;
    min-height: 100vh;
    padding: 8vh 80px 12vh;
    width: 100%;
}

.cs-onboarding-inner {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0 4vw;
    align-items: start;
}

/* ── LEFT: text + hero image ── */
.cs-onboarding-left {
    position: sticky;
    top: 6rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.cs-onboarding-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cs-onboarding-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.cs-onboarding-heading {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 300;
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin: 0;
}

.cs-onboarding-body {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.15vw, 1rem);
    line-height: 1.8;
    color: var(--ink-soft);
    margin: 0;
    max-width: 48ch;
}

.cs-onboarding-hero-img {
    border-radius: 12px;
    overflow: hidden;
}

.cs-onboarding-hero-img img {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
    user-select: none;
}

/* ── RIGHT: single dark card wrapping the 2×3 grid ── */
.cs-onboarding-card {
    background: var(--bg-navy);
    border-radius: 16px;
    padding: 1.25rem;
}

.cs-onboarding-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

/* ── globe canvas ── */
.cs-globe-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
}

.cs-globe-canvas {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1 / 1;
    display: block;
}

/* ── glass card per image ── */
.cs-glass-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    position: relative;
    padding: 0.5rem;
}

.cs-glass-card img {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
    user-select: none;
    border-radius: 6px;
}

/* ── staggered reveal animation (keyframe-based) ── */
.cs-onboarding-grid.animate-in .cs-glass-card {
    animation: cs-card-pop 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cs-onboarding-grid.animate-in .cs-glass-card:nth-child(1) { animation-delay: 0.00s; }
.cs-onboarding-grid.animate-in .cs-glass-card:nth-child(2) { animation-delay: 0.08s; }
.cs-onboarding-grid.animate-in .cs-glass-card:nth-child(3) { animation-delay: 0.16s; }
.cs-onboarding-grid.animate-in .cs-glass-card:nth-child(4) { animation-delay: 0.24s; }
.cs-onboarding-grid.animate-in .cs-glass-card:nth-child(5) { animation-delay: 0.32s; }
.cs-onboarding-grid.animate-in .cs-glass-card:nth-child(6) { animation-delay: 0.40s; }

@keyframes cs-card-pop {
    from { opacity: 0; transform: translateY(32px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .cs-onboarding-inner {
        grid-template-columns: 1fr;
        gap: 3rem 0;
    }
    .cs-onboarding-left {
        position: static;
    }
    .cs-onboarding-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .cs-onboarding {
        padding: 6vh 6vw 10vh;
        border-radius: 32px 32px 0 0;
    }
    .cs-onboarding-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
/* ══════════════════════════════════════════════
   MY ROLES SECTION — append to rfs.css
   Visually identical to .cs-brief, but a normal
   in-flow section (no sticky / no -100vh pull-up),
   since it isn't paired with a preceding *-track div.
   ══════════════════════════════════════════════ */

.cs-roles {
    background: #ffffff;
    padding: 8vh 80px 12vh;
    width: 100%;
    border-radius: 0 0 58px 58px;
    position: relative;
    z-index: 1;
}

.cs-roles-inner {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 0 8vw;
    align-items: start;
}

.cs-roles-left {
    position: sticky;
    top: 8rem;
}

.cs-roles-heading {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 300;
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    line-height: 1.0;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin: 0;
}

.cs-roles-right {
    display: flex;
    flex-direction: column;
    padding-top: 0.25rem;
}

.cs-roles-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 0;
}

.cs-roles-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink);
}

.cs-roles-body {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    line-height: 1.75;
    color: var(--ink-soft);
    margin: 0;
    max-width: 75ch;
}

.cs-roles-divider {
    border: none;
    border-top: 1px solid var(--line);
    margin: 0;
}

@media (max-width: 768px) {
    .cs-roles { padding: 8vh 6vw 10vh; }
    .cs-roles-inner { grid-template-columns: 1fr; gap: 3rem 0; }
    .cs-roles-left { position: static; }
}

/* ══════════════════════════════════════════════
   CAPABILITIES SECTION — append to rfs.css
   Flat layer beneath .cs-roles rounded corners,
   same relationship as .cs-styles → .cs-showcase
   ══════════════════════════════════════════════ */

/* ── TRACK: gives capabilities room to stay pinned ── */
.cs-capabilities-track {
    position: relative;
    height: 200vh;
}

.cs-capabilities {
    background: var(--bg-gray);
    margin-top: -50px;
    padding: 0 80px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.cs-capabilities-inner {
    width: 100%;
}

/* ── header ── */
.cs-capabilities-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 5rem;
    max-width: 56ch;
}

.cs-capabilities-heading {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 300;
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin: 0;
}

.cs-capabilities-sub {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    line-height: 1.6;
    color: var(--ink-soft);
    margin: 0;
}

/* ── grid: 5 columns × 3 rows ── */
.cs-capabilities-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3rem 1.5rem;
}

.cs-cap-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.cs-cap-icon {
    width: 90px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cs-cap-icon img {
    width: 28px;
    height: 28px;
    display: block;
    pointer-events: none;
    user-select: none;
}

.cs-cap-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ink);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .cs-capabilities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .cs-capabilities {
        padding: 8vh 6vw 10vh;
        padding-top: calc(8vh + 58px);
    }
    .cs-capabilities-header { margin-bottom: 3rem; }
    .cs-capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1rem;
    }
}

/* ══════════════════════════════════════════════
   FUNDABILITY SCORE — slides over pinned .cs-capabilities, rounded top
   ══════════════════════════════════════════════ */

.cs-fundability {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #ffffff;
    border-radius: 58px 58px 58px 58px;
    margin-top: -100vh;
    min-height: 100vh;
    padding: 10vh 80px 12vh;
    width: 100%;
}

.cs-fundability-inner {
    width: 100%;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 0 5vw;
    align-items: stretch;
}

/* ── LEFT: photo ── */
.cs-fund-visual {
    position: relative;
}

.cs-fund-photo {
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    max-height: 700px;
}

.cs-fund-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    user-select: none;
}

/* ── RIGHT: heading, copy, highlights, stat card ── */
.cs-fund-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cs-fund-heading {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 300;
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin: 0;
}

.cs-fund-body {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    line-height: 1.7;
    color: var(--ink-soft);
    margin: 0;
    max-width: 75ch;
}

/* ── highlights list ── */
.cs-fund-highlights {
    list-style: none;
    margin: 1rem 0 0;
    padding: 1.5rem 0 0;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cs-fund-highlights li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--ink);
}

.cs-fund-highlight-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #52B44C;
    flex-shrink: 0;
}

/* ── stat card ── */
.cs-fund-card {
    width: 100%;
    margin-top: 2rem;
    background: #ffffff;
    border-radius: 16px;
    padding: 1.75rem 1.75rem 1.5rem;
    box-shadow:
            0 4px 16px rgba(13, 27, 42, 0.06),
            0 24px 48px rgba(13, 27, 42, 0.12);
}

.cs-fund-card-label {
    font-family: 'Roboto', sans-serif;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    display: block;
    margin-bottom: 1.25rem;
}

.cs-fund-card-body {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cs-fund-donut {
    flex-shrink: 0;
    width: 40%;
}

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

.cs-fund-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.cs-fund-legend li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--ink);
}

.cs-fund-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cs-fund-pct {
    margin-left: auto;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    font-size: 0.75rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .cs-fundability-inner {
        grid-template-columns: 1fr;
        gap: 3rem 0;
    }
}

@media (max-width: 600px) {
    .cs-fundability {
        padding: 8vh 6vw 10vh;
        border-radius: 32px 32px 0 0;
    }
    .cs-fund-card-body {
        flex-direction: column;
        align-items: flex-start;
    }
    .cs-fund-donut { width: 50%; }
}

/* ══════════════════════════════════════════════
   FOUNDER'S OPERATING SYSTEM — append to rfs.css
   Flat layer beneath .cs-fundability's rounded bottom
   ══════════════════════════════════════════════ */

/* ── TRACK: gives FOS room to stay pinned ── */
.cs-fos-track {
    position: relative;
    height: 200vh;
}

.cs-fos {
    background: var(--bg-gray);
    padding: 2vh 80px;
    padding-top: calc(2vh + 68px);
    margin-top: -60px;
    position: sticky;
    top: -60px;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.cs-fos-inner {
    width: 100%;
}

/* ── header ── */
.cs-fos-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    max-width: 100%;
}

.cs-fos-heading {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 300;
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin: 0;
}

.cs-fos-sub {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    line-height: 1.6;
    color: var(--ink-soft);
    margin: 0;
}

/* ── row: 3 items + connecting line ── */
.cs-fos-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 2rem;
    position: relative;
}

.cs-fos-row + .cs-fos-row {
    margin-top: 1rem;
}

/* connecting horizontal line spanning between dot centers */
.cs-fos-row::before {
    content: '';
    position: absolute;
    left: calc(100% / 6);
    right: calc(100% / 6);
    top: calc(100% - 2.35rem); /* aligns with dot row */
    height: 1px;
    background: var(--line-strong);
    z-index: 0;
}

.cs-fos-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* ── screenshot card ── */
.cs-fos-shot {
    width: 80%;
    max-height: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow:
            0 2px 4px rgba(13, 27, 42, 0.04),
            0 12px 24px rgba(13, 27, 42, 0.06);
}

.cs-fos-shot img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: fill;
    pointer-events: none;
    user-select: none;
}

/* ── connector dot ── */
.cs-fos-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 0 0.75rem;
}

.cs-fos-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ink);
    display: block;
}

/* ── label ── */
.cs-fos-label {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 400;
    font-size: 1rem;
    color: var(--ink);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .cs-fos-row {
        grid-template-columns: 1fr;
        gap: 2.5rem 0;
    }
    .cs-fos-row::before {
        display: none;
    }
    .cs-fos-row + .cs-fos-row {
        margin-top: 2.5rem;
    }
}

@media (max-width: 600px) {
    .cs-fos {
        padding: 8vh 6vw 10vh;
        padding-top: calc(8vh + 58px);
    }
    .cs-fos-header { margin-bottom: 3rem; }
}

/* ══════════════════════════════════════════════
   Animation Co-founder
   ══════════════════════════════════════════════ */

.cs-fos-snapshot {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #ffffff;
    border-radius: 58px 58px 0 0;
    margin-top: -100vh;
    min-height: 100vh;
    padding: 12vh 80px 10vh;
    overflow: hidden;
    width: 100%;
}

.cs-fos-snapshot-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cs-fs-stage {
    position: relative;
}

.cs-fs-stage .cs-browser {
    max-width: 960px;
    margin: 0 auto;
}

.cs-fs-glow {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 120px;
    background: radial-gradient(ellipse at center, rgba(74, 163, 74, 0.18) 0%, transparent 70%);
    pointer-events: none;
    filter: blur(20px);
    z-index: -1;
}

@media (max-width: 768px) {
    .cs-fos-snapshot {
        padding: 8vh 6vw 10vh;
        border-radius: 32px 32px 0 0;
    }
    .cs-fs-glow { width: 80%; }
}

.cs-fs-viewport-inner {
    background: #F7F8F6;
    padding: 0;
    overflow: visible;
    box-sizing: border-box;
    width: 100%;
}

.cs-fs-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    position: relative;
}

.cs-fs-image {
    display: block;
    width: 100%;
    height: auto;
}

.cs-fs-steps {
    position: absolute;
    top: 55%;
    left: 33%;
    width: 50%;
    margin: 0 auto;
}

.cs-fs-step {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #E3E5DE;
    border-radius: 6px;
    padding: 12px 12px;
    margin-bottom: 6px;
    background: #FAFAF9;
    transition: background 0.4s ease, border-color 0.4s ease;
    box-sizing: border-box;
}
.cs-fs-step:last-child { margin-bottom: 0; }
.cs-fs-step.active { background: #EAF6E8; border-color: #52B44C; }
.cs-fs-step.done { background: #F1FAEF; border-color: #52B44C; }

.cs-fs-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #D1D5DB;
    color: #FFFFFF;
    flex-shrink: 0;
    transition: background 0.4s ease;
}
.cs-fs-step.active .cs-fs-icon,
.cs-fs-step.done .cs-fs-icon { background: #52B44C; }
.cs-fs-icon svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; }

.cs-fs-text { flex: 1; min-width: 0; }
.cs-fs-title {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #5f5e5a;
    margin: 0 0 18px;
    position: static;
    display: block;
    transition: color 0.4s ease;
}
.cs-fs-step.active .cs-fs-title,
.cs-fs-step.done .cs-fs-title { color: #1a1a1a; }

.cs-fs-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    color: #8a8a86;
    margin: 0;
    position: static;
    display: block;
    transition: color 0.4s ease;
}
.cs-fs-step.active .cs-fs-subtitle { color: #2B6328; }
.cs-fs-step.done .cs-fs-subtitle { color: #8a8a86; }

.cs-fs-status {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 500;
    color: #8a8a86;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}
.cs-fs-status.active, .cs-fs-status.done { color: #52B44C; }

.cs-fs-spinner {
    width: 12px;
    height: 12px;
    border: 2px solid #CDEAC9;
    border-top-color: #52B44C;
    border-radius: 50%;
    animation: cs-fs-spin 0.8s linear infinite;
    flex-shrink: 0;
}
.cs-fs-check {
    width: 16px;
    height: 16px;
    stroke: #52B44C;
    stroke-width: 3;
    fill: none;
}

.cs-fs-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

@keyframes cs-fs-spin { to { transform: rotate(360deg); } }

/* Tighten further on small mockup widths */
@media (max-width: 640px) {
    .cs-fs-step { padding: 4px 6px; gap: 6px; margin-bottom: 3px; }
    .cs-fs-icon { width: 16px; height: 16px; }
}

/* ══════════════════════════════════════════════
   CLOSING — append to rfs.css
   Final card, sits after .cs-fos-snapshot, rounded bottom
   ══════════════════════════════════════════════ */

.cs-closing {
    background: #ffffff;
    border-radius: 0 0 58px 58px;
    padding: 4vh 80px 8vh;
    position: relative;
    z-index: 1;
    margin-bottom: -58px; /* tucks under footer so its bg reveals through the curve */
}

.cs-closing-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* ── THINKING IN SYSTEMS ── */
.cs-systems {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 0 4vw;
    align-items: start;
}

.cs-systems-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cs-systems-heading {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 300;
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin: 0;
}

.cs-systems-body {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    line-height: 1.6;
    color: var(--ink-soft);
    margin: 0;
}

.cs-systems-img {
    border-radius: 12px;
    overflow: hidden;
}

.cs-systems-img img {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
    user-select: none;
}

/* NEXT PROJECT — moved to shared /style.css component, see /assets/next-project.js */

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .cs-closing {
        border-radius: 0 0 32px 32px;
        margin-bottom: -32px;
        padding: 4vh 6vw 6vh;
    }
    .cs-systems {
        grid-template-columns: 1fr;
        gap: 2rem 0;
    }
}

/* ── FOOTER REVEAL: compensate for .cs-closing's -58px tuck-under ── */
#maeven-footer {
    position: relative;
    z-index: 0;
}

@media (max-width: 768px) {
    /* Clearing the -32px tuck with padding on the WRAPPER pushed the
       footer's grey down with it, so .cs-closing's rounded bottom cut
       out against the body instead of the grey — invisible.
       Put the clearance inside the footer so the grey still starts at
       the wrapper's top edge, behind the corners. */
    #maeven-footer {
        padding-top: 0;
    }
    #maeven-footer .footer {
        padding-top: calc(8vh + 32px);
    }
}


/* ══════════════════════════════════════════════
   RESPONSIVE — mobile
   Consolidated overrides; last in the file so they
   win over the per-section queries above.
   ══════════════════════════════════════════════ */

@media (max-width: 768px) {

    /* ── Rounded joins: .cs-brief and .cs-roles kept the desktop 58px,
       while every other card on the page drops to 32px at this width.
       58px is also just too deep a curve on a 375px-wide section. ── */
    .cs-brief { border-radius: 32px 32px 0 0; }
    .cs-roles { border-radius: 0 0 32px 32px; }

    /* ── STYLES GRID: the fixed 80vh, split across three stacked rows,
       left the palette 157px for 183px of swatches. They overflowed
       sideways (negative offsets) and the labels were cut off. ── */
    /* ── STYLES: palette and type specimen side by side rather than
       stacked, so the whole section fits a screen and the next heading
       comes into view with it. Earlier breakpoints collapse this to 1fr
       and the fixed 80vh squeezed the swatches, so both are overridden. ── */
    .cs-styles-grid {
        grid-template-columns: 1fr 1fr;
        min-height: 0;
        gap: 0.75rem;
    }
    /* three children here: Gloock, the palette, then Roboto. Put the
       palette down the left and stack the two specimens on the right. */
    .cs-styles-grid > :nth-child(1) { grid-column: 2; grid-row: 1; }
    .cs-styles-grid > :nth-child(2) { grid-column: 1; grid-row: 1 / span 2; }
    .cs-styles-grid > :nth-child(3) { grid-column: 2; grid-row: 2; }
    .cs-palette { flex-direction: column; }
    .cs-swatch { flex: 1 1 auto; min-height: 62px; padding: 0.6rem 0.75rem; }
    .cs-swatch-name { font-size: 0.8rem; line-height: 1.2; }
    .cs-swatch-hex  { font-size: 0.6rem; margin-top: 0.1rem; }

    .cs-type-card { padding: 1rem 0.9rem 0.85rem; border-radius: 14px; }
    .cs-type-family { font-size: 1.45rem; }
    .cs-type-display { padding: 0.75rem 0; }
    .cs-type-icon { max-width: 78%; }
    .cs-type-rule { margin: 0.5rem 0; }
    /* the specimen string barely breaks; at this width it only reads as
       texture, so keep it small and let it wrap anywhere */
    .cs-type-footer { flex-direction: column; align-items: flex-start; }
    .cs-type-charset {
        max-width: none;
        font-size: 0.55rem;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

    /* ── SHOWCASE: three overlapping desktop screenshots pinned over a
       200vh track — illegible at phone width. Same call as MSC. ── */
    .cs-showcase-track { display: none; }
    .cs-styles { border-radius: 0; }
    .cs-onboarding {
        position: relative;
        top: auto;
        margin-top: 0;
        min-height: 0;
        border-radius: 0;
        padding: 6vh 6vw 10vh;
    }

    /* ── CAPABILITIES: pinned at height:100vh with overflow:hidden, so
       373px of the icon grid was unreachable on a phone. Unpin it. ── */
    .cs-capabilities-track { height: auto; }
    .cs-capabilities {
        position: relative;
        top: auto;
        height: auto;
        overflow: visible;
        display: block;
        padding: 8vh 6vw;
    }
    /* `relative`, never `static` — static drops z-index and the rounded
       corners lose the layer they cut out against */
    .cs-fundability {
        position: relative;
        top: auto;
        margin-top: -32px;
        margin-bottom: -32px;
        min-height: 0;
        border-radius: 32px;
        padding: 8vh 6vw 10vh;
    }

    /* ── FEATURES-OF-SERVICE: same pin, 638px of mockups clipped ── */
    .cs-fos-track { height: auto; }
    .cs-fos {
        position: relative;
        top: auto;
        height: auto;
        overflow: visible;
        display: block;
        margin-top: 0;
        padding: 8vh 6vw;
    }
    .cs-fos-snapshot {
        position: relative;
        top: auto;
        margin-top: -32px;
        min-height: 0;
    }

    /* ── The "finding your matches" overlay is absolutely positioned and
       sized in fixed px for a ~900px-wide mockup. At 164px its rows
       piled on top of one another. ── */
    .cs-fs-steps { display: none; }
}
