/* ============================================
   DESIGN TOKENS
   ============================================ */

:root {
    --void: #0A0A0A;
    --cosmos: #111111;
    --nebula: #1A1A1A;
    --stardust: #2A2A2A;
    --cream: #F5F2EB;
    --parchment: #E8E4DC;
    --border-light: #D4CFC6;
    --text-primary-dark: #F5F2EB;
    --text-secondary-dark: #A8A29E;
    --text-muted-dark: #A8A29E;
    --text-primary-light: #1C1917;
    --text-secondary-light: #44403C;
    --text-muted-light: #57534E;
    --coral: #FF6B6B;
    --peach: #FFA07A;
    --marigold: #FFB347;
    --citrus: #FFD93D;
    --mint: #6BCB77;
    --cyan: #2DD4BF;
    --azure: #4D96FF;
    --violet: #8B5CF6;
    --magenta: #C77DFF;
    --amber: #F5A623;
    --gold: #D4AF37;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --link-color: #6D28D9;
    --small-font: 0.875rem;
    --font-display: 'Libre Caslon Display', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
}

/* ============================================
   BASE STYLES
   ============================================ */

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html { 
    scroll-behavior: smooth;
    background: var(--cream);
}

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--text-primary-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1 {
    font-family: var(--font-display);
}

body::before {
    content: '';
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    pointer-events: none;
    z-index: 10000;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.fa-envelope:before {
    content: "\f0e0";
    font-size: 0.9rem;
    margin-right: -1px;
}

/* ============================================
   BRAND BAR
   ============================================ */

.brand-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--cyan) 0%, 
        var(--azure) 20%, 
        var(--violet) 40%, 
        var(--magenta) 60%, 
        var(--coral) 80%, 
        var(--marigold) 100%
    );
    z-index: 9999;
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible { 
    opacity: 1; 
    transform: translateY(0); 
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.6s; }

/* ============================================
   SECTION CONTENT REVEAL
   Automatically staggers section-label, h2/h3, and paragraphs
   Usage: Add .section-content-reveal to a container with
   .section-label, h2/h3, and p elements
   ============================================ */
.section-content-reveal .section-label,
.section-content-reveal h2,
.section-content-reveal h3,
.section-content-reveal > p,
.section-content-reveal > ul,
.section-content-reveal > ol,
.section-content-reveal > .constraints {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-content-reveal.visible .section-label {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
}

.section-content-reveal.visible h2,
.section-content-reveal.visible h3 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.15s;
}

.section-content-reveal.visible > p:nth-of-type(1),
.section-content-reveal.visible > ul:nth-of-type(1),
.section-content-reveal.visible > ol:nth-of-type(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.section-content-reveal.visible > p:nth-of-type(2),
.section-content-reveal.visible > ul:nth-of-type(2),
.section-content-reveal.visible > ol:nth-of-type(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.45s;
}

.section-content-reveal.visible > p:nth-of-type(3),
.section-content-reveal.visible > ul:nth-of-type(3),
.section-content-reveal.visible > ol:nth-of-type(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.section-content-reveal.visible > .constraints {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.45s;
}

/* Staggered children animations */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.6s; }
.stagger-children.visible > * { 
    opacity: 1; 
    transform: translateY(0); 
}

/* ============================================
   CONTAINER
   ============================================ */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

@media (min-width: 768px) { 
    .container { 
        padding: 0 40px; 
    } 
}

/* ============================================
   HERO COMPONENT STYLES
   ============================================ */

/* Hero Container */
.hero {
    background: linear-gradient(164deg, #521377 0%, #000000 64%);
    color: var(--text-primary-dark);
    min-height: 120vh;
    position: relative;
    overflow: visible;
}

.hero-video {
    position: absolute;
    bottom: 44px;
    left: 0;
    width: 100%;
    height: auto;
    min-height: 100%;
    object-fit: cover;
    object-position: center bottom;
    opacity: 0.1;
    z-index: 0;
}

.hero-bg {
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%; 
    height: 100%;
    z-index: 1;
    /* Easily adjust animation opacity by changing the value below (0.0 to 1.0) */
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 25px 25px 60px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    animation: heroFadeIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@media (min-width: 768px) {
    .hero-content {
        padding: 40px 60px 80px;
    }
}

/* Hero Animations */
@keyframes heroFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes heroElementIn {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes navIn {
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Navigation */
.hero-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(-20px);
    animation: navIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.hero-nav-brand {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
}

.hero-nav-links { 
    display: none; 
    gap: 32px; 
}

@media (min-width: 768px) { 
    .hero-nav-links { 
        display: flex; 
    } 
}

.hero-nav-links a {
    color: var(--text-secondary-dark);
    text-decoration: none;
    font-size: 0.8125rem;
    transition: color 0.2s;
}

.hero-nav-links a:hover { 
    color: var(--text-primary-dark); 
}

/* Hero Main Container */
.hero-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    /* max-width is page-specific, not included here */
}

/* Hero Text - Header Variations */
.hero-text h1 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.02rem;
    line-height: 1.2;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(40px);
    animation: heroElementIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

/* Hero H1 size variations – shared line-height 1.2 */
.hero-text h1.large-header {
    font-size: 4.6rem;
    line-height: 1.2;
}

.hero-text h1.medium-header {
    font-size: 5.5rem;
    line-height: 1.2;
}

/* Mobile styles for both header variations */
@media (max-width: 767px) {
    .hero-text h1.large-header,
    .hero-text h1.medium-header {
        font-size: 3rem;
        line-height: 1.2;
    }
    
    .meta-value {
        font-size: 1.25rem;
    }
}

.hero-text h1 .accent {
    color: var(--amber);
}

.hero-text h1 .no-break {
    white-space: nowrap;
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: clamp(0.9375rem, 2vw, 1.0625rem);
    line-height: 1.7;
    color: #d3cfcc;
    /* max-width is page-specific, not included here */
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: heroElementIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

/* Hero Meta */
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    opacity: 0;
    transform: translateY(25px);
    animation: heroElementIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
}

.meta-item { 
    min-width: 100px; 
}

.meta-label {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #d3cfcc;
    margin-bottom: 4px;
}

.meta-value {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 0.02rem;
}

.meta-value.highlight { 
    color: var(--amber); 
}

/* Hero Tags */
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 32px;
    max-width: 700px;
}

.hero-tag {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-primary-dark);
    padding: 7px 13px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.05);
    opacity: 0;
    transform: translateY(12px);
    animation: heroElementIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-tags .hero-tag:nth-child(1) { animation-delay: 0.9s; }
.hero-tags .hero-tag:nth-child(2) { animation-delay: 0.95s; }
.hero-tags .hero-tag:nth-child(3) { animation-delay: 1s; }
.hero-tags .hero-tag:nth-child(4) { animation-delay: 1.05s; }
.hero-tags .hero-tag:nth-child(5) { animation-delay: 1.1s; }
.hero-tags .hero-tag:nth-child(6) { animation-delay: 1.15s; }
.hero-tags .hero-tag:nth-child(7) { animation-delay: 1.2s; }
.hero-tags .hero-tag:nth-child(8) { animation-delay: 1.25s; }

/* ============================================
   IMAGE PLACEHOLDER
   ============================================ */

.image-placeholder {
    background: var(--nebula);
    border: 1px solid var(--stardust);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted-dark);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(45,212,191,0.04));
}

.image-placeholder.light {
    background: var(--parchment);
    border-color: var(--border-light);
    color: var(--text-muted-light);
}

.image-placeholder.light::before {
    background: linear-gradient(135deg, rgba(139,92,246,0.04), rgba(45,212,191,0.02));
}

.challenge-bg-image img,
.process-image-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ui-image-float {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

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

.tag {
    font-family: var(--font-body);
    font-size: 0.625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 6px 12px;
    background: var(--parchment);
    border-radius: var(--radius-sm);
    color: var(--text-secondary-light);
}

.section .hero-tag {
    font-family: var(--font-body);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 6px 12px;
    background: var(--parchment);
    border-radius: var(--radius-sm);
    color: var(--text-secondary-light);
    border: none;
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
    background: var(--cream);
    padding: 80px 0;
    position: relative;
}

@media (min-width: 768px) { 
    .section { 
        padding: 100px 0 140px 0; 
    } 
}

h2 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 500;
    line-height: 1.25;
    color: var(--text-primary-light);
    margin-bottom: 38px;
}

/* Libre Caslon Display headings: unified weight and letter-spacing */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.02rem;
}

/* Universal h2/h3 on small screens (< 600px): single source of truth for the site */
.challenge {
    background: var(--cream);
    padding: 80px 0;
    position: relative;
}

@media (min-width: 768px) { 
    .challenge { 
        padding: 200px 0; 
    } 
}

.challenge-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}

@media (min-width: 900px) {
    .challenge-grid { 
        grid-template-columns: 1fr 1fr; 
        gap: 60px; 
        align-items: start; 
    }
}

.section-label {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted-light);
    margin-bottom: 27px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--text-muted-light);
    flex-shrink: 0;
}

/* Centered section labels: add line after as well */
.section-label[style*="justify-content: center"],
.section-label[style*="justify-content:center"] {
    justify-content: center;
}
.section-label[style*="justify-content: center"]::after,
.section-label[style*="justify-content:center"]::after {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--text-muted-light);
    flex-shrink: 0;
}
.outcome .section-label::after {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--text-muted-dark);
    flex-shrink: 0;
}

.outcome-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary-dark);
    max-width: 586px;
    margin-left: auto;
    margin-right: auto;
}

.outcome-label {
    font-weight: 600;
}

.outcome-number {
    font-size: clamp(5rem, 18vw, 9rem);
    font-weight: 600;
    line-height: 0.9;
}

/* ============================================
   CONTENT GRID - Two-column layout component
   Use for consistent left/right content sections
   Matches solution-block structure from MOS
   ============================================ */

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    min-width: 0;
}

@media (min-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        align-items: start;
    }
    
    /* Alt variant: visual on left, text on right */
    .content-grid.alt .content-text {
        order: 2;
    }
}

.content-text {
    max-width: 450px;
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 899px) {
    .content-text {
        max-width: 100%;
    }
}

.content-text h2 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: 0.02rem;
    line-height: 1.25;
    margin-bottom: 25px;
}

.content-text h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.02rem;
    line-height: 1.2;
    margin-bottom: 25px;
}

.solution-text h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 28px;
}

.content-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary-light);
    margin-bottom: 16px;
}

.content-text p:last-of-type {
    margin-bottom: 0;
}

.content-visual {
    position: relative;
    min-width: 0;
    max-width: 100%;
}

/* Solution letter styling within content-text */
.content-text .solution-letter {
    font-family: var(--font-display);
    font-size: clamp(5rem, 12vw, 8rem);
    font-weight: 400;
    line-height: 0.75;
    color: var(--parchment);
    margin-bottom: 16px;
}

/* ============================================
   TOPO DIVIDER
   ============================================ */

.topo-divider {
    position: relative;
    background: var(--cream);
    overflow: hidden;
}

.topo-divider canvas {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
}

/* Height variations are page-specific */

/* ============================================
   MOBILE LINED TABS
   ============================================
   Line-style tabs with horizontal scroll and gradient overlays.
   Use wrapper class "mobile-lined-tabs" and children: __rail, __button, __panels, __panel.
   Buttons use data-text for no-shift-on-active. Panels use exiting-left/right, entering-from-left/right for directional transitions.
   */
.mobile-lined-tabs {
    position: relative;
    overflow: hidden;
    margin-bottom: 48px;
    border-bottom: 1px solid var(--border-light);
}
.mobile-lined-tabs::before,
.mobile-lined-tabs::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 1px;
    width: 32px;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.mobile-lined-tabs::before {
    left: 0;
    background: linear-gradient(to right, var(--cream), transparent);
}
.mobile-lined-tabs::after {
    right: 0;
    background: linear-gradient(to left, var(--cream), transparent);
}
.mobile-lined-tabs.scrollable-left::before,
.mobile-lined-tabs.scrollable-right::after {
    opacity: 1;
}
.mobile-lined-tabs__rail {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0;
}
.mobile-lined-tabs__rail::-webkit-scrollbar {
    display: none;
}
.mobile-lined-tabs__button {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 16px 24px;
    margin-bottom: -1px;
    position: relative;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted-dark);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.mobile-lined-tabs__button::after {
    content: attr(data-text);
    content: attr(data-text) / "";
    font-weight: 600;
    height: 0;
    visibility: hidden;
    overflow: hidden;
    pointer-events: none;
    display: block;
}
.mobile-lined-tabs__button:hover {
    color: var(--text-primary-light);
}
.mobile-lined-tabs__button.active {
    color: var(--text-primary-light);
    font-weight: 600;
    border-bottom-color: var(--gold);
}
.mobile-lined-tabs__button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}
@media (max-width: 767px) {
    .mobile-lined-tabs__rail {
        justify-content: flex-start;
    }
}
@media (max-width: 659px) {
    .mobile-lined-tabs__rail {
        padding-left: 40%;
        padding-right: 40%;
    }
}
@media (max-width: 549px) {
    .mobile-lined-tabs__button {
        padding: 16px 13px;
    }
}

/* ============================================
   MOBILE SCROLLING CARDS (role categories)
   ============================================
   Horizontally scrolling cards: category name in a simple card header, bullets below.
   ~5–10% of previous/next card visible (peek). No tabs.
   */
.mobile-scrolling-cards {
    overflow: hidden;
    position: relative;
}
.mobile-scrolling-cards::before,
.mobile-scrolling-cards::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 64px;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.mobile-scrolling-cards::before {
    left: 0;
    background: linear-gradient(to right, var(--cream), transparent);
}
.mobile-scrolling-cards::after {
    right: 0;
    background: linear-gradient(to left, var(--cream), transparent);
}
.mobile-scrolling-cards.scrollable-left::before,
.mobile-scrolling-cards.scrollable-right::after {
    opacity: 1;
}
.mobile-scrolling-cards__track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 25px 8px 25px;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 25px;
    scroll-padding-right: 25px;
}
.mobile-scrolling-cards__track::-webkit-scrollbar {
    display: none;
}

/* Center cards on larger screens */
@media (min-width: 945px) {
    .mobile-scrolling-cards__track {
        justify-content: center;
        overflow-x: visible;
        scroll-snap-type: none;
        padding: 0 25px 8px;
    }
    .mobile-scrolling-cards::before,
    .mobile-scrolling-cards::after {
        display: none;
    }
}

.mobile-scrolling-cards__card {
    flex: 0 0 260px;
    min-width: 260px;
    width: 260px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px 20px 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.mobile-scrolling-cards__card:first-child {
    scroll-margin-left: 25px;
}
.mobile-scrolling-cards__card-head {
    font-family: 'Libre Caslon Display', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary-light);
    margin: 12px 0 21px;
}
.mobile-scrolling-cards__card-body {
    padding: 0;
}
.mobile-scrolling-cards__list {
    list-style: disc;
    padding-left: 1.25em;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.mobile-scrolling-cards__item {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--text-secondary-light);
    padding-left: 0;
}
.mobile-scrolling-cards__item::before {
    display: none;
}

/* Wrapper for horizontally scrolling content: reverses container padding to margin so scroll can extend to edges.
   Use only on the element wrapping the horizontal-scroll block. Not applied elsewhere by default. */
.container-scroll-inset {
    margin: 0 20px;
    padding: 0;
}

/* Hide desktop tabs, use scrolling cards at all sizes */
.role-contributions-desktop { display: none !important; }

/* Version Toggle (Spark Notes / Extended) */
.version-toggle {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 34px 0 -20px;
}

.version-toggle-btn {
    padding: 8px 16px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-muted-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.version-toggle-btn:first-child {
    border-radius: 4px 0 0 4px;
    border-right: none;
}

.version-toggle-btn:last-child {
    border-radius: 0 4px 4px 0;
}

.version-toggle-btn.active {
    background: var(--text-primary-light);
    color: var(--cream);
    border-color: var(--text-primary-light);
}

.version-toggle-btn:hover:not(.active) {
    border-color: var(--text-secondary-light);
    color: var(--text-secondary-light);
}

.role-content-extended,
.role-content-spark {
    display: none;
}

.role-content-extended.active,
.role-content-spark.active {
    display: block;
}

@media (max-width: 659px) {
    .role-section .container {
        margin: 0;
        padding: 0;
    }
    .role-section .container-scroll-inset {
        margin: 0;
        padding: 0;
    }
}

/* ========================================
   VERTICAL TIMELINE
   ======================================== */
.process-timeline {
    position: relative;
    padding-left: 24px;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--cyan), var(--violet), var(--coral));
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
    padding-left: 16px;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-item:last-child { padding-bottom: 0; }

/* Timeline item reveal animations */
.reveal.visible .process-infographic .timeline-item:nth-child(1),
.reveal.visible .process-timeline .timeline-item:nth-child(1) {
    transition-delay: 0.1s;
    opacity: 1;
    transform: translateY(0);
}

.reveal.visible .process-infographic .timeline-item:nth-child(2),
.reveal.visible .process-timeline .timeline-item:nth-child(2) {
    transition-delay: 0.2s;
    opacity: 1;
    transform: translateY(0);
}

.reveal.visible .process-infographic .timeline-item:nth-child(3),
.reveal.visible .process-timeline .timeline-item:nth-child(3) {
    transition-delay: 0.3s;
    opacity: 1;
    transform: translateY(0);
}

.reveal.visible .process-infographic .timeline-item:nth-child(4),
.reveal.visible .process-timeline .timeline-item:nth-child(4) {
    transition-delay: 0.4s;
    opacity: 1;
    transform: translateY(0);
}

.reveal.visible .process-infographic .timeline-item:nth-child(5),
.reveal.visible .process-timeline .timeline-item:nth-child(5) {
    transition-delay: 0.5s;
    opacity: 1;
    transform: translateY(0);
}

.reveal.visible .process-infographic .timeline-item:nth-child(6),
.reveal.visible .process-timeline .timeline-item:nth-child(6) {
    transition-delay: 0.6s;
    opacity: 1;
    transform: translateY(0);
}

.reveal.visible .process-infographic .timeline-item:nth-child(7),
.reveal.visible .process-timeline .timeline-item:nth-child(7) {
    transition-delay: 0.7s;
    opacity: 1;
    transform: translateY(0);
}

.reveal.visible .process-infographic .timeline-item:nth-child(8),
.reveal.visible .process-timeline .timeline-item:nth-child(8) {
    transition-delay: 0.8s;
    opacity: 1;
    transform: translateY(0);
}

/* Timeline item dots */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--void);
    border: 2px solid var(--cyan);
}

/* Color-coded dots by position */
.timeline-item:nth-child(2)::before { border-color: var(--azure); }
.timeline-item:nth-child(3)::before { border-color: var(--violet); }
.timeline-item:nth-child(4)::before { border-color: var(--magenta); }
.timeline-item:nth-child(5)::before { border-color: var(--coral); }
.timeline-item:nth-child(6)::before { border-color: var(--marigold); }
.timeline-item:nth-child(7)::before { border-color: var(--cyan); }
.timeline-item:nth-child(8)::before { border-color: var(--azure); }

/* Timeline item content */
.timeline-item .phase {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-muted-dark);
    margin-bottom: 2px;
}

.timeline-item .title {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary-dark);
    margin-bottom: 2px;
}

.timeline-item .desc {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: var(--text-secondary-dark);
    line-height: 1.4;
    margin-bottom: 8px;
}

/* ============================================
   PROCESS TIMELINE HORIZONTAL
   ============================================ */

.process-timeline-horizontal {
    position: relative;
    display: flex;
    align-items: flex-start;
    padding: 28px;
    padding-top: 48px;
    padding-bottom: 50px;
    padding-left: calc(50% - 120px);
    padding-right: calc(50% - 120px);
    overflow-x: auto;
    background: var(--void);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 80px rgba(0,0,0,0.2);
    justify-content: flex-start;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    width: 100%;
}

.process-timeline-horizontal::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.process-timeline-horizontal::before {
    content: '';
    position: absolute;
    top: 32px;
    left: calc(50% - 120px);
    width: calc((240px + 24px) * 6);
    height: 2px;
    background: linear-gradient(to right, var(--cyan), var(--violet), var(--coral));
    opacity: 0;
    transition: opacity 0.6s ease;
}

.process-timeline-horizontal.visible::before {
    opacity: 1;
}

/* Adjust line width based on number of items */
.process-timeline-horizontal:has(.timeline-item-horizontal:nth-child(4):last-child)::before {
    width: calc((240px + 24px) * 3);
}

.process-timeline-horizontal:has(.timeline-item-horizontal:nth-child(5):last-child)::before {
    width: calc((240px + 24px) * 4);
}

.process-timeline-horizontal:has(.timeline-item-horizontal:nth-child(7):last-child)::before {
    width: calc((240px + 24px) * 6);
}

/* Edge-to-edge variant - no rounded corners, full width, rolodex-style centering
   IMPORTANT: This variant stays horizontal on mobile (does not collapse to vertical)
   Use .process-timeline-horizontal-wrapper for gradient overlays on edges */
.process-timeline-horizontal-wrapper {
    position: relative;
    overflow: hidden;
    padding-bottom: 50px;
}

.timeline-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.process-timeline-horizontal-wrapper:has(.reveal.visible) .timeline-bg {
    opacity: 1;
}

.process-timeline-horizontal-wrapper .process-timeline-horizontal {
    position: relative;
    z-index: 2;
}

.process-timeline-horizontal-wrapper::before,
.process-timeline-horizontal-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease 0.1s;
}

/* Fade in gradients when timeline becomes visible */
.process-timeline-horizontal-wrapper:has(.reveal.visible)::before,
.process-timeline-horizontal-wrapper:has(.reveal.visible)::after {
    opacity: 1;
}

.process-timeline-horizontal-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--void), transparent);
}

.process-timeline-horizontal-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--void), transparent);
}

@media (max-width: 600px) {
    .process-timeline-horizontal-wrapper::before,
    .process-timeline-horizontal-wrapper::after {
        width: 25px;
    }
}

.process-timeline-horizontal.edge-to-edge {
    border-radius: 0;
    padding-left: calc(50vw - 120px);
    padding-right: calc(50vw - 120px);
    margin-left: calc(-1 * (100vw - 100%) / 2);
    margin-right: calc(-1 * (100vw - 100%) / 2);
    width: 100vw;
    max-width: 100vw;
    background: transparent;
    box-shadow: none;
}

.process-timeline-horizontal.edge-to-edge::before {
    left: calc(50vw - 120px + 5px);
    width: 1679px;
}

.timeline-item-horizontal {
    position: relative;
    flex: 0 0 auto;
    width: 240px;
    padding-top: 24px;
    padding-left: 0;
    padding-right: 24px;
    padding-bottom: 0;
    text-align: left;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-item-horizontal:last-child {
    padding-right: 0;
}

.timeline-item-horizontal::before {
    content: '';
    position: absolute;
    top: -21px;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--void);
    border: 2px solid var(--cyan);
    z-index: 2;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Color progression for timeline dots */
.timeline-item-horizontal:nth-child(1)::before { border-color: var(--cyan); }
.timeline-item-horizontal:nth-child(2)::before { border-color: var(--azure); }
.timeline-item-horizontal:nth-child(3)::before { border-color: var(--violet); }
.timeline-item-horizontal:nth-child(4)::before { border-color: var(--magenta); }
.timeline-item-horizontal:nth-child(5)::before { border-color: var(--coral); }
.timeline-item-horizontal:nth-child(6)::before { border-color: var(--marigold); }
.timeline-item-horizontal:nth-child(7)::before { border-color: var(--citrus); }
.timeline-item-horizontal:nth-child(8)::before { border-color: var(--mint); }

/* Phase/Step number styling */
.timeline-item-horizontal .phase {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted-dark);
    margin-bottom: 2px;
}

.timeline-item-horizontal .title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary-dark);
    margin-bottom: 7px;
}

.timeline-item-horizontal .desc {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--text-secondary-dark);
    line-height: 1.4;
    margin-bottom: 8px;
}

/* Sequential reveal animations for horizontal timeline items */
.process-timeline-horizontal.reveal.visible .timeline-item-horizontal:nth-child(1) {
    transition-delay: 0.15s;
    opacity: 1;
    transform: translateY(0);
}
.process-timeline-horizontal.reveal.visible .timeline-item-horizontal:nth-child(2) {
    transition-delay: 0.25s;
    opacity: 1;
    transform: translateY(0);
}
.process-timeline-horizontal.reveal.visible .timeline-item-horizontal:nth-child(3) {
    transition-delay: 0.35s;
    opacity: 1;
    transform: translateY(0);
}
.process-timeline-horizontal.reveal.visible .timeline-item-horizontal:nth-child(4) {
    transition-delay: 0.45s;
    opacity: 1;
    transform: translateY(0);
}
.process-timeline-horizontal.reveal.visible .timeline-item-horizontal:nth-child(5) {
    transition-delay: 0.55s;
    opacity: 1;
    transform: translateY(0);
}
.process-timeline-horizontal.reveal.visible .timeline-item-horizontal:nth-child(6) {
    transition-delay: 0.65s;
    opacity: 1;
    transform: translateY(0);
}
.process-timeline-horizontal.reveal.visible .timeline-item-horizontal:nth-child(7) {
    transition-delay: 0.75s;
    opacity: 1;
    transform: translateY(0);
}
.process-timeline-horizontal.reveal.visible .timeline-item-horizontal:nth-child(8) {
    transition-delay: 0.85s;
    opacity: 1;
    transform: translateY(0);
}

/* Sequential reveal for timeline dots */
.process-timeline-horizontal.reveal.visible .timeline-item-horizontal:nth-child(1)::before {
    transition-delay: 0.1s;
    opacity: 1;
    transform: scale(1);
}
.process-timeline-horizontal.reveal.visible .timeline-item-horizontal:nth-child(2)::before {
    transition-delay: 0.2s;
    opacity: 1;
    transform: scale(1);
}
.process-timeline-horizontal.reveal.visible .timeline-item-horizontal:nth-child(3)::before {
    transition-delay: 0.3s;
    opacity: 1;
    transform: scale(1);
}
.process-timeline-horizontal.reveal.visible .timeline-item-horizontal:nth-child(4)::before {
    transition-delay: 0.4s;
    opacity: 1;
    transform: scale(1);
}
.process-timeline-horizontal.reveal.visible .timeline-item-horizontal:nth-child(5)::before {
    transition-delay: 0.5s;
    opacity: 1;
    transform: scale(1);
}
.process-timeline-horizontal.reveal.visible .timeline-item-horizontal:nth-child(6)::before {
    transition-delay: 0.6s;
    opacity: 1;
    transform: scale(1);
}
.process-timeline-horizontal.reveal.visible .timeline-item-horizontal:nth-child(7)::before {
    transition-delay: 0.7s;
    opacity: 1;
    transform: scale(1);
}
.process-timeline-horizontal.reveal.visible .timeline-item-horizontal:nth-child(8)::before {
    transition-delay: 0.8s;
    opacity: 1;
    transform: scale(1);
}

/* Mobile: Stack vertically (except edge-to-edge variant which stays horizontal) */
@media (max-width: 899px) {
    .process-timeline-horizontal:not(.edge-to-edge) {
        flex-direction: column;
        padding-top: 0;
        padding-left: 24px;
        padding-right: 24px;
    }
    
    .process-timeline-horizontal:not(.edge-to-edge)::before {
        top: 8px;
        bottom: 8px;
        left: 6px;
        right: auto;
        width: 2px;
        height: auto;
        background: linear-gradient(to bottom, var(--cyan), var(--violet), var(--coral));
    }
    
    .process-timeline-horizontal:not(.edge-to-edge) .timeline-item-horizontal {
        flex: none;
        width: auto;
        min-width: auto;
        padding-top: 0;
        padding-bottom: 20px;
        padding-left: 16px;
        padding-right: 0;
        text-align: left;
    }
    
    .process-timeline-horizontal:not(.edge-to-edge) .timeline-item-horizontal::before {
        top: 6px;
        left: -24px;
        transform: none;
    }
}

/* ============================================
   STICKY TABLE (universal: one sticky column, scroll rest)
   Use: .sticky-table-scroll-outer > .sticky-table-wrapper > table.sticky-table
   First column: .sticky-col. Optionally .sticky-table-divider for vertical line.
   Override --sticky-col-width (default 200px) and theme as needed.
   ============================================ */

.sticky-table-scroll-outer {
    position: relative;
}

.sticky-table-wrapper {
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.sticky-table-wrapper .sticky-table {
    table-layout: fixed;
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    min-width: 100%;
}

.sticky-table-wrapper .sticky-col {
    position: sticky;
    left: 0;
    z-index: 1;
    width: var(--sticky-col-width, 200px);
    min-width: var(--sticky-col-width, 200px);
    max-width: var(--sticky-col-width, 200px);
    box-shadow: 2px 0 0 0 var(--sticky-divider-color, #ececec);
    background: var(--sticky-col-bg, #FFFFFF);
    transform: translateZ(0);
    backface-visibility: hidden;
}

.sticky-table-wrapper thead .sticky-col {
    z-index: 2;
}

.sticky-table-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--sticky-col-width, 200px);
    width: 0;
    pointer-events: none;
    z-index: 3;
}

/* ============================================
   HEATMAP CONTAINER (reusable)
   ============================================ */

.heatmap-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.heatmap-container--with-headroom {
    padding-top: 5px;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 352px;
}

/* ============================================
   CONCLUSION SECTION
   ============================================ */

.conclusion {
    background: var(--cream);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
@media (min-width: 768px) { .conclusion { padding: 100px 0; } }

.conclusion-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    opacity: 0.4;
}

.conclusion > .container {
    position: relative;
    z-index: 2;
}

.conclusion-header {
    margin-bottom: 60px;
    max-width: 600px;
}

.conclusion-header h2 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: 0.02rem;
    line-height: 1.25;
    margin-bottom: 0;
}

.conclusion-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 900px) { 
    .conclusion-sections { 
        grid-template-columns: 1fr 1fr; 
        gap: 60px; 
    }
    .conclusion-section:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }
    .conclusion-section:nth-child(2) {
        grid-column: 2;
        grid-row: 1 / span 2;
    }
    .conclusion-section:nth-child(3) {
        grid-column: 1;
        grid-row: 2;
    }
}

.conclusion-section {
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border-light);
}

.conclusion-section h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 0.02rem;
    margin-bottom: 20px;
    color: var(--text-primary-light);
}

.conclusion-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.conclusion-section ul li {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--text-secondary-light);
    margin-bottom: 16px;
    padding-left: 24px;
    position: relative;
}

.conclusion-section ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 600;
}

.conclusion-section ul li:last-child {
    margin-bottom: 0;
}

.conclusion-section p {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--text-secondary-light);
    margin-bottom: 16px;
}

.conclusion-section p:last-child {
    margin-bottom: 0;
}

.conclusion-section strong {
    color: var(--text-primary-light);
    font-weight: 600;
}

.conclusion-core-learning {
    background: rgba(245, 242, 235, 0.8);
    border: 2px solid var(--gold);
}

.conclusion-core-learning h3 {
    color: var(--gold);
}

/* ============================================
   SITE FOOTER (shared component)
   ============================================ */
.site-footer {
    padding: 48px 24px;
    text-align: center;
    border-top: 1px solid rgba(26, 24, 36, 0.08);
    background: #EDE9E1;
}
.site-footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}
.site-footer .footer-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-void);
    text-decoration: none;
    opacity: 0.9;
}
.site-footer .footer-links a:hover {
    color: var(--link-color);
}
.site-footer .copyright {
    font-size: 0.8125rem;
    color: #666;
}
