:root {
    --msc-navy: #111827;
    --msc-blue: #1F2937;
    --msc-yellow: #F9D900;
    --msc-steel: #9CA3AF;
    --msc-white: #F3F4F6;
    --msc-scrim-rgb: 16, 20, 28;
}

body { background: #ffffff; }

/* ══════════════════════════════════════════════
   Midwest Service Center — Hero
   ══════════════════════════════════════════════ */

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

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

.msc-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;
}

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

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

.msc-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
            to bottom,
            rgba(var(--msc-scrim-rgb), 0.20) 0%,
            rgba(var(--msc-scrim-rgb), 0.35) 60%,
            rgba(var(--msc-scrim-rgb), 0.82) 90%,
            rgba(var(--msc-scrim-rgb), 0.94) 100%
    );
}

.msc-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;
}

.msc-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;
}

.msc-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;
}

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

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

.msc-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);
}

.msc-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;
}

/* ── generic placeholder block — swap for <img> once assets land ── */
.msc-placeholder {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background:
            repeating-linear-gradient(135deg, rgba(13,27,42,0.05) 0 2px, transparent 2px 14px),
            linear-gradient(160deg, #E4E6EB, #CFD3DC);
    color: var(--msc-steel);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    overflow: hidden;
}

.msc-placeholder--dark {
    background:
            repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 14px),
            linear-gradient(160deg, #232B3A, #12161F);
    color: rgba(255, 255, 255, 0.4);
}

.msc-placeholder span {
    padding: 0.5rem 1rem;
}

@media (max-width: 768px) {
    .msc-hero-track { height: 200vh; }
    .msc-hero-content { padding: 0 6vw 5vh; }
    .msc-hero-meta { gap: 1.2rem 2rem; }
}

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

/* ══════════════════════════════════════════════
   THE BRIEF — slides up over the pinned hero
   ══════════════════════════════════════════════ */

.msc-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%;
}

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

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

.msc-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;
}

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

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

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

.msc-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;
}

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

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

/* ══════════════════════════════════════════════
   LOAD SCREEN ANIMATION
   ══════════════════════════════════════════════ */

.msc-load-screen {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    overflow: hidden;
}

.msc-load-screen svg {
    width: 100%;
    height: 100%;
}


/* ══════════════════════════════════════════════
   INTRO RECAP — centered title + meta row
   ══════════════════════════════════════════════ */

.msc-recap {
    background: #ffffff;
    padding: 4vh 80px 8vh;
    text-align: center;
}

.msc-recap-heading {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 300;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 1.25rem;
}

.msc-recap-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.msc-recap-meta span:not(:last-child)::after {
    content: '|';
    margin-left: 1.5rem;
    color: var(--line-strong);
}

/* ── four-tile portfolio grid ── */
.msc-highlight-row {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 2rem;
}

.msc-statement-card {
    background: var(--msc-navy);
    border-radius: 24px;
    aspect-ratio: 600 / 346;
    overflow: hidden;
    min-height: 0;
    min-width: 0;
    box-shadow: 0 4px 24px rgba(13, 27, 42, 0.14);
}

.msc-statement-inner {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.msc-statement-eyebrow {
    font-family: 'Akshar', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--msc-yellow);
}

.msc-statement-heading {
    text-align: center;
    font-family: 'Akshar', sans-serif;
    font-weight: bold;
    font-size: clamp(1.8rem, 4.5vw, 4.5rem);
    line-height: 0.9;
    letter-spacing: -0.01em;
    color: var(--bg);
    margin: 0;
    text-transform: uppercase;
}

.msc-arrows-card {
    background: #E6E6E6;
    border-radius: 24px;
    aspect-ratio: 600 / 346;
    overflow: hidden;
    min-height: 0;
    min-width: 0;
    box-shadow: 0 4px 24px rgba(13, 27, 42, 0.08);
}

.msc-highlight-row .msc-duo-img {
    aspect-ratio: 600 / 346;
}

@media (max-width: 768px) {
    .msc-highlight-row { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════════════
   IMAGE DUO — two rounded images side by side
   ══════════════════════════════════════════════ */

.msc-duo {
    background: #ffffff;
    padding: 6vh 80px;
}

.msc-duo-inner {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.msc-duo-img {
    aspect-ratio: 2 / 2;
    border-radius: 20px;
    overflow: hidden;
}

.msc-duo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .msc-duo { padding: 4vh 6vw; }
    .msc-duo-inner { grid-template-columns: 1fr; gap: 1.25rem; }
}


/* ══════════════════════════════════════════════
   TWO-SIDED BUILD
   ══════════════════════════════════════════════ */

.msc-build {
    background: #ffffff;
    padding: 8vh 80px 10vh;
}

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

.msc-build-left {
    position: sticky;
    top: 8rem;
}

.msc-build-right {
    padding-top: 0.25rem;
}

.msc-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;
}

.msc-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: 75ch;
}

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

/* ══════════════════════════════════════════════
   STOP HERE — carousel + framed image
   Closes the first white stack with rounded bottom
   ══════════════════════════════════════════════ */

.msc-dont-stop {
    background: #ffffff;
    padding: 4vh 80px 0;
    position: relative;
    border-radius: 0 0 58px 58px;
    z-index: 1;
}

.msc-dont-stop-grid {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.msc-dont-stop-left {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.msc-carousel-wrap {
    background: #111827;
    border-radius: 20px;
    padding: 3rem 0;
    overflow: hidden;
    min-width: 0;
}

.msc-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-left: 2rem;
    scrollbar-width: none;
    height: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
}

.msc-carousel::-webkit-scrollbar { display: none; }
.msc-carousel:active { cursor: grabbing; }

.msc-carousel-card {
    flex: 0 0 78%;
    scroll-snap-align: start;
    background: rgba(243, 244, 246, 0.15);
    border-radius: 14px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 12rem;
}

.msc-carousel-card-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.msc-power-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--msc-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.msc-power-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: #ffffff;
    margin: 0;
}

.msc-power-sub {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #ffffff;
    margin: 0;
}

.msc-stop-here {
    text-align: right;
    display: flex;
    height: 90px;
}

.msc-stop-here-text {
    padding-top: 65px;
    padding-right: 5px;
}

.msc-stop-label {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 400;
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    color: var(--ink);
    margin: 0;
}

.msc-stop-sub {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--ink-soft);
    margin: 0.5rem 0 0;
    line-height: 1.5;
}

.msc-capabilities-preview {
    background: rgba(249, 217, 0, 0.20);
    border-radius: 20px 20px 0 0;
    padding: 1.5rem 1.5rem 0 1.5rem;
    overflow: hidden;
    display: flex;
}

.msc-frame-cutout {
    flex: 1;
    border-radius: 14px 14px 0 0;
    overflow: hidden;
}

.msc-frame-cutout img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .msc-dont-stop-grid { grid-template-columns: 1fr; }
    .msc-carousel-card { flex: 0 0 85%; }
    .msc-capabilities-preview { border-radius: 20px; padding: 1.5rem; }
    .msc-frame-cutout { border-radius: 14px; }
}


/* ══════════════════════════════════════════════
   SHOWCASE — dark layer behind the white stack
   Sits behind .msc-dont-stop's rounded bottom
   ══════════════════════════════════════════════ */

.msc-showcase-track {
    position: relative;
    height: 200vh;
}

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

.msc-showcase-inner {
    width: 100%;
    position: relative;
}

.msc-showcase-stack {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

.msc-showcase-img {
    position: absolute;
    border-radius: 8px;
    pointer-events: none;
    user-select: none;
}

.msc-showcase-img--left {
    width: 30%;
    left: 80px;
    top: 45%;
    z-index: 2;
}

.msc-showcase-img--center {
    width: 60%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 1;
}

.msc-showcase-img--right {
    width: 30%;
    right: 80px;
    top: 10%;
    z-index: 2;
}

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

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

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

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

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

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

@media (max-width: 600px) {
    .msc-showcase { padding: 0 6vw; padding-top: 58px; }
    .msc-showcase-stack { min-height: 280px; }
    .msc-showcase-img--left   { width: 52%; }
    .msc-showcase-img--center { width: 60%; }
    .msc-showcase-img--right  { width: 52%; }
}


/* ══════════════════════════════════════════════
   STYLES — slides up over the showcase
   Opens with rounded top over the dark showcase
   ══════════════════════════════════════════════ */

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

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

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

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

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

.msc-swatch--navy   { background: var(--msc-navy); }
.msc-swatch--blue   { background: var(--msc-blue); }
.msc-swatch--yellow { background: var(--msc-yellow); }
.msc-swatch--steel  { background: var(--msc-steel); }
.msc-swatch--white  { background: var(--msc-white); }

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

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

.msc-swatch--navy .msc-swatch-name,  .msc-swatch--navy .msc-swatch-hex,
.msc-swatch--blue .msc-swatch-name,  .msc-swatch--blue .msc-swatch-hex,
.msc-swatch--steel .msc-swatch-name, .msc-swatch--steel .msc-swatch-hex {
    color: rgba(255, 255, 255, 0.92);
}

.msc-swatch--yellow .msc-swatch-name, .msc-swatch--yellow .msc-swatch-hex,
.msc-swatch--white .msc-swatch-name,  .msc-swatch--white .msc-swatch-hex {
    color: #1F2937;
}

.msc-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;
}

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

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

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

.msc-type-icon {
    max-width: 60%;
    max-height: 100%;
    display: block;
}

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

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

.msc-type-charset {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink-soft);
    margin: 0;
    max-width: 36ch;
    opacity: 0.7;
    font-family: 'Roboto', sans-serif;
}

.msc-type-stack span {
    font-size: 0.8rem;
    color: var(--ink-soft);
    opacity: 0.55;
    font-family: 'Roboto', sans-serif;
}

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

@media (max-width: 600px) {
    .msc-styles { border-radius: 32px 32px 32px 32px; padding: 8vh 6vw 10vh; }
}

/* ══════════════════════════════════════════════
   PRECISION BY DESIGN
   ══════════════════════════════════════════════ */

.msc-precision {
    background: #ffffff;
    padding: 8vh 80px 10vh;
    position: relative;
    z-index: 1;
}

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

.msc-precision-left {
    position: sticky;
    top: 8rem;
}

.msc-precision-right {
    padding-top: 0.25rem;
}

.msc-precision-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;
}

.msc-precision-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;
}

@media (max-width: 768px) {
    .msc-precision { padding: 6vh 6vw 8vh; }
    .msc-precision-inner { grid-template-columns: 1fr; gap: 1.5rem 0; }
}

/* ══════════════════════════════════════════════
   WEBSITE SNAPSHOT — browser mockup
   ══════════════════════════════════════════════ */

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

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

.msc-snapshot-stage {
    position: relative;
}

.msc-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;
}

.msc-browser.msc-browser-animate {
    transform: translateY(40px);
    opacity: 0;
}

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

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

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

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

.msc-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;
}

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

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

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


/* ══════════════════════════════════════════════
   MY ROLE — opens with rounded top over nav-feature dark band
   ══════════════════════════════════════════════ */

.msc-roles {
    background: #ffffff;
    padding: 10vh 80px 12vh;
    width: 100%;
    border-radius: 0 0 58px 58px;   /* closes DOWN into the dark nav-feature */
    position: relative;
    z-index: 2;
}

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

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

.msc-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;
}

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

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

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

.msc-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;
}

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

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


/* ══════════════════════════════════════════════
   RESPONSIVE NAVIGATION — dark band
   Slides up under .msc-roles rounded bottom
   ══════════════════════════════════════════════ */

.msc-nav-feature {
    background: #333A4E;
    padding: calc(8vh + 58px) 80px 8vh;  /* extra top clears the tuck */
    margin-top: -58px;                   /* slide under .msc-roles' rounded bottom */
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 1;
}

.msc-nav-track {
    position: relative;
    height: 200vh;
}

.msc-nav-feature-inner {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 4rem;
}

.msc-nav-feature-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: #FFFFFF;
    margin: 0;
}

.msc-nav-feature-body {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    line-height: 1.75;
    color: #EAECF1;
    margin: 0;
    margin-bottom: 1.25rem;
    display: block;
    margin-top: 1.25rem;
}

.msc-nav-feature-inner-divider {
    width: 1px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    justify-self: center;
}

.msc-nav-feature-hint {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.msc-hint-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px dashed var(--msc-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--msc-yellow);
    flex-shrink: 0;
}

.msc-hint-label {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 0.25rem;
}

.msc-hint-body {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
}

.msc-nav-mockup-wrap {
    width: 100%;
}

.msc-nav-mockup {
    position: relative;
}

.msc-mock-navbar {
    background: #0D1B2A;
    border-radius: 16px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    z-index: 2;
    width: 100%;
}

.msc-mock-navbar-inner {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.msc-mock-logo {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: #ffffff;
    white-space: nowrap;
}

.msc-mock-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding-right: 2rem;

}

.msc-mock-link {
    font-family: 'Roboto', sans-serif;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    transition: color 0.2s ease;
    position: relative;
    padding-bottom: 4px;
}

.msc-mock-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--msc-yellow);
    transition: width 0.25s ease;
}

.msc-mock-link:hover,
.msc-mock-link.is-active { color: #ffffff; }

.msc-mock-link:hover::after,
.msc-mock-link.is-active::after { width: 100%; }

.msc-mock-cta {
    background: var(--msc-yellow);
    color: #0D1B2A;
    border: none;
    border-radius: 10px;
    padding: 0.85rem 1.75rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.msc-mock-cta:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.msc-mock-panel {
    background: #0D1B2A;
    border-radius: 16px;
    display: grid;
    grid-template-columns: 1fr 1px 1fr 1px 1fr;
    gap: 2rem;
    padding: 0 2.5rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.4s ease, padding 0.4s ease;
    position: relative;
    top: -12px;
    z-index: 1;
}

.msc-mock-panel.is-open {
    max-height: 400px;
    opacity: 1;
    margin-top: 2.25rem;
    padding: 2.5rem;
}

.msc-mock-panel-item {
    display: flex;
    gap: 1rem;
}

.msc-mock-panel-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--msc-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0D1B2A;
    flex-shrink: 0;
}

.msc-mock-panel-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: #ffffff;
    margin: 0 0 0.6rem;
}

.msc-mock-panel-body {
    font-family: 'Roboto', sans-serif;
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

.msc-mock-panel-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 900px) {
    .msc-nav-feature-inner { grid-template-columns: 1fr; }
    .msc-mock-navbar { flex-wrap: wrap; padding: 1rem 1.25rem; }
    .msc-mock-links { gap: 1.25rem; order: 3; width: 100%; justify-content: center; }
    .msc-mock-panel { grid-template-columns: 1fr; }
    .msc-mock-panel-divider { width: 100%; height: 1px; }
}


/* ══════════════════════════════════════════════
   CLOSING — opens with rounded top over the dark band,
   closes with rounded bottom over the footer
   ══════════════════════════════════════════════ */

.msc-closing {
    background: #ffffff;
    border-radius: 58px 58px 58px 58px;  /* opens AND closes */
    padding: 6vh 80px 8vh;
    position: sticky;
    top: 0;
    z-index: 2;
    margin-top: -100vh;
    margin-bottom: -58px;
    min-height: 100vh;
}

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

.msc-systems {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 0 4vw;
    align-items: start;
}

.msc-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;
}

.msc-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-top: 1.35rem;
}

.msc-systems-body + .msc-systems-body {
    margin-top: 1.25rem;
}

.msc-systems-img {
    height: 700px;
    overflow: hidden;
    position: relative;
    border-radius: 20px;
}

.msc-systems-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 50%;
    display: block;
}

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

/* ══════════════════════════════════════════════
   FOOTER — sits behind .msc-closing's rounded bottom
   ══════════════════════════════════════════════ */

#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 .msc-closing's rounded bottom cut
       out against the white 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 — tablet + mobile
   Consolidated overrides. Sits last so it wins
   over the per-section rules above.
   ══════════════════════════════════════════════ */

/* ── TABLET: pull the 80px gutters in ── */
@media (max-width: 1024px) {
    .msc-brief,
    .msc-duo,
    .msc-build,
    .msc-dont-stop,
    .msc-styles,
    .msc-precision,
    .msc-snapshot,
    .msc-roles,
    .msc-closing { padding-left: 40px; padding-right: 40px; }

    .msc-showcase { padding-left: 40px; padding-right: 40px; }
    .msc-nav-feature { padding-left: 40px; padding-right: 40px; }

    .msc-showcase-img--left  { left: 40px; }
    .msc-showcase-img--right { right: 40px; }

    .msc-mock-links { gap: 1.5rem; padding-right: 1rem; }
    .msc-mock-logo { font-size: 1.1rem; }
    .msc-mock-panel { gap: 1.25rem; }
    .msc-mock-panel.is-open { padding: 2rem 1.75rem; }
}

/* ── MOBILE ── */
@media (max-width: 768px) {

    /* one gutter for every section — the 1024px tier's 40px is too
       wide a margin once the viewport is phone-sized */
    .msc-brief,
    .msc-duo,
    .msc-build,
    .msc-dont-stop,
    .msc-styles,
    .msc-precision,
    .msc-snapshot,
    .msc-roles,
    .msc-nav-feature,
    .msc-closing { padding-left: 6vw; padding-right: 6vw; }

    /* rounded section joins scale down with the gutters */
    .msc-brief   { border-radius: 32px 32px 0 0; }
    .msc-dont-stop { border-radius: 0 0 32px 32px; }

    /* load screen: don't burn a whole viewport on a letterboxed SVG */
    .msc-load-screen { height: 56vh; min-height: 300px; }

    /* headings stop sticking once the columns collapse — otherwise
       the sticky heading floats on top of the body copy */
    .msc-build-left,
    .msc-precision-left,
    .msc-roles-left,
    .msc-brief-left { position: static; }

    .msc-precision-inner { gap: 1.5rem 0; }

    /* highlight tiles */
    .msc-highlight-row { gap: 1.25rem; }
    .msc-statement-inner { padding: 2rem 1.5rem; }

    /* ── carousel: let the cards grow to fit their copy ── */
    .msc-carousel-wrap { padding: 2rem 0; }
    .msc-carousel {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        scroll-padding-left: 1.25rem;
        gap: 0.75rem;
    }
    .msc-carousel-card {
        flex: 0 0 82%;
        height: auto;
        min-height: 13rem;
        padding: 1.25rem;
    }
    .msc-carousel-card-title { gap: 0.75rem; margin-bottom: 0.5rem; }
    .msc-power-title { font-size: 1.05rem; }
    .msc-power-sub { font-size: 0.9rem; }

    /* ── "stop here" cue: the fixed 90px box collided with the
       carousel and the yellow panel once stacked ── */
    .msc-stop-here {
        height: auto;
        align-items: flex-end;
        justify-content: flex-end;
        gap: 0.5rem;
        padding: 1.5rem 0 0.25rem;
    }
    .msc-stop-here-text { padding-top: 0; padding-right: 0; }
    .msc-stop-here img { width: 56px; height: auto; flex-shrink: 0; }

    .msc-capabilities-preview { margin-top: 2rem; }

    /* ── showcase: desktop-only choreography.
       Pinned over a 200vh track, it bought nothing on a phone but
       another 2,500px of scrolling, so it comes out entirely. ── */
    .msc-showcase-track { display: none; }

    /* with the grey showcase gone the two white stacks are one run —
       drop the rounded join that used to bridge them */
    .msc-dont-stop { border-radius: 0; padding-bottom: 2vh; }
    .msc-styles {
        position: static;
        margin-top: 0;
        min-height: 0;
        border-radius: 0;
        padding-top: 6vh;
        padding-bottom: 10vh;
    }
    /* ── 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. ── */
    .msc-styles-grid {
        grid-template-columns: 1fr 1fr;
        min-height: 0;
        gap: 0.75rem;
    }
    .msc-palette { flex-direction: column; }
    .msc-swatch { flex: 1 1 auto; min-height: 62px; padding: 0.6rem 0.75rem; }
    .msc-swatch-name { font-size: 0.8rem; line-height: 1.2; }
    .msc-swatch-hex  { font-size: 0.6rem; margin-top: 0.1rem; }

    .msc-type-card { padding: 1rem 0.9rem 0.85rem; border-radius: 14px; }
    .msc-type-family { font-size: 1.45rem; }
    .msc-type-display { padding: 0.75rem 0; }
    .msc-type-icon { max-width: 78%; }
    .msc-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 */
    .msc-type-footer { flex-direction: column; align-items: flex-start; }
    .msc-type-charset {
        max-width: none;
        font-size: 0.55rem;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

    /* ── responsive-navigation feature: unpin, then stack the mockup ── */
    .msc-nav-track { height: auto; }
    .msc-nav-feature {
        position: static;
        height: auto;
        padding: calc(6vh + 32px) 6vw 8vh;
        margin-top: -32px;   /* matches .msc-roles' 32px bottom radius here */
    }
    .msc-nav-feature-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }
    .msc-nav-feature-inner-divider {
        width: 100%;
        height: 1px;
        justify-self: stretch;
    }

    .msc-mock-navbar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1.25rem;
    }
    .msc-mock-navbar-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        width: 100%;
    }
    .msc-mock-logo { font-size: 1.05rem; white-space: normal; }
    .msc-mock-links {
        order: 0;
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 1.25rem;
        padding-right: 0;
    }
    .msc-mock-link { font-size: 0.95rem; }
    .msc-mock-cta { width: 100%; padding: 0.75rem 1.25rem; }

    .msc-mock-panel { grid-template-columns: 1fr; gap: 1.25rem; }
    .msc-mock-panel.is-open { max-height: 1600px; padding: 1.75rem 1.25rem; }
    .msc-mock-panel-divider { width: 100%; height: 1px; }
    .msc-mock-panel-title { font-size: 0.98rem; }

    /* ── closing: unpin so it can grow past one viewport, but stay
       POSITIONED — static killed its z-index, which let the footer
       paint over the rounded bottom, and margin-top:0 left the rounded
       top cutting out against the light body instead of the dark band ── */
    .msc-closing {
        position: relative;
        z-index: 2;
        margin-top: -32px;
        min-height: 0;
        border-radius: 32px;
        margin-bottom: -32px;
        padding: 6vh 6vw 8vh;
    }
    .msc-systems { grid-template-columns: 1fr; gap: 2rem 0; }
    .msc-systems-img { height: 360px; }
}

/* ── TOUCH: the nav mockup's hover demo needs a tap affordance ── */
.msc-hint-label--touch,
.msc-hint-body--touch { display: none; }

@media (hover: none) {
    .msc-hint-label--hover,
    .msc-hint-body--hover { display: none; }
    .msc-hint-label--touch { display: block; }
    .msc-hint-body--touch { display: block; }
}
