:root {
    /* Burnt Timber Palette */
    --color-bg-dark: #0B0B0C;     /* Charcoal Black */
    --color-bg-soft: #2F2A27;     /* Burnt Wood */
    --color-text-primary: #DACCBF; /* Pale Birch */
    --color-text-secondary: #A2978E; /* Weathered Clay */
    --color-accent-1: #C75D2C;    /* Ember Core */
    --color-accent-2: #6F6460;    /* Ash Smoke */
    --color-complement: #B8860B;  /* Golden Bronze */
    
    /* Legacy variable mapping for compatibility */
    --bg-primary: var(--color-bg-dark);
    --bg-secondary: var(--color-bg-soft);
    --bg-tertiary: var(--color-bg-soft);
    --text-primary: var(--color-text-primary);
    --text-secondary: var(--color-text-secondary);
    --accent-primary: var(--color-accent-1);
    --accent-forest: var(--color-accent-2);
    --accent-earth: var(--color-accent-1);
    --accent-stone: var(--color-accent-2);
    --accent-moss: var(--color-accent-2);
    --border-subtle: var(--color-accent-2);
    --gradient-polygon: linear-gradient(120deg, var(--color-accent-1) 0%, var(--color-complement) 50%, var(--color-accent-1) 100%);
    --shadow-soft: 0 8px 32px rgba(11, 11, 12, 0.6);
    --shadow-polygon: 0 4px 16px rgba(11, 11, 12, 0.7);
    --vh: 1vh;
    --nav-height: 80px;
    --section-padding-y: clamp(1.5rem, 4vh, 3.5rem);
    --section-padding-x: clamp(1rem, 4vw, 3rem);
    --section-gap: clamp(0.75rem, 1.8vh, 1.5rem);
    --section-title-scale: clamp(1.8rem, min(4.2vw, 4.5vh), 3.4rem);
    --section-body-scale: clamp(1rem, min(2.2vw, 2.5vh), 1.35rem);
    --form-shell-padding-y: clamp(0.85rem, 1.8vh, 1.2rem);
    --form-shell-padding-x: clamp(1rem, 3vw, 1.4rem);
}

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

/* Ensure no black text on dark background */
*, *::before, *::after {
    color: inherit;
}

/* Override browser defaults for form elements */
button, input, textarea, select {
    color: inherit;
    font-family: inherit;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-primary);
    background-image: url("data:image/svg+xml,%3Csvg width='140' height='120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%236F6460' stroke-width='1.2' opacity='0.25'%3E%3Cpolygon points='70,15 95,30 95,60 70,75 45,60 45,30' /%3E%3Cpolygon points='20,45 45,60 45,90 20,105 -5,90 -5,60' /%3E%3Cpolygon points='120,45 145,60 145,90 120,105 95,90 95,60' /%3E%3Cline x1='70' y1='15' x2='45' y2='30' stroke='%23C75D2C' stroke-width='1.2' opacity='0.25'/%3E%3Cline x1='95' y1='30' x2='120' y2='45' stroke='%23B8860B' stroke-width='1.2' opacity='0.25'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 140px 120px;
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Simple subtle background texture - uniform across all pages */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(47, 42, 39, 0.15);
    z-index: -1;
}

/* Font Classes - Use these for explicit font control */
.font-display {
    font-family: 'Bebas Neue', 'Arial Black', 'Impact', 'Franklin Gothic Bold', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-display: block;
}

.font-accent {
    font-family: 'Roboto', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    font-display: block;
}

.font-body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-display: swap;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 11, 12, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    width: 100%;
}

body.nav-menu-open {
    overflow: hidden;
    height: 100vh;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 6px;
    transition: color 0.3s ease;
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.nav-toggle-bar {
    position: relative;
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: background 0.3s ease;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.3s ease;
}

.nav-toggle-bar::before {
    transform: translateY(-7px);
}

.nav-toggle-bar::after {
    transform: translateY(7px);
}

.nav.menu-open .nav-toggle-bar {
    background: transparent;
}

.nav.menu-open .nav-toggle-bar::before {
    transform: rotate(45deg);
}

.nav.menu-open .nav-toggle-bar::after {
    transform: rotate(-45deg);
}

/* Progress Navigation */
.progress-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.progress-nav .nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    position: relative;
    transition: all 0.3s ease;
    clip-path: polygon(5% 0, 95% 0, 100% 50%, 95% 100%, 5% 100%, 0 50%);
    flex-shrink: 0;
    white-space: nowrap;
    background: transparent;
}

.progress-nav .nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(-120deg, var(--color-accent-1) 0%, var(--color-complement) 50%, var(--color-accent-1) 100%);
    clip-path: polygon(5% 0, 95% 0, 100% 50%, 95% 100%, 5% 100%, 0 50%);
    z-index: -1;
    transition: background 0.3s ease;
}

.progress-nav .nav-item.active::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: var(--bg-primary);
    clip-path: polygon(5% 0, 95% 0, 100% 50%, 95% 100%, 5% 100%, 0 50%);
    z-index: -1;
}

.progress-nav .nav-item:hover {
    color: var(--accent-primary);
    transform: translateY(-1px);
}

.progress-nav .nav-item.active:hover {
    transform: translateY(-2px);
}

.progress-nav .nav-item.active {
    color: var(--color-accent-1);
}

.progress-nav .nav-item.completed {
    color: var(--accent-primary);
}

.progress-nav .progress-arrow {
    color: var(--text-secondary);
    font-size: 1.2rem;
    opacity: 0.6;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.progress-nav .progress-arrow.green {
    background: linear-gradient(-120deg, var(--color-accent-1) 0%, var(--color-complement) 50%, var(--color-accent-1) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    opacity: 1;
}

@media (max-width: 1024px) {
    .nav-container {
        justify-content: space-between;
        padding: 0.75rem 1.25rem;
    }

    .nav-toggle {
        display: flex;
    }

    .progress-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
        padding: 1rem 1.25rem 1.5rem;
        background: rgba(11, 11, 12, 0.98);
        border-bottom: 1px solid var(--border-subtle);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
        display: none;
        z-index: 1001;
    }

    .nav.menu-open .progress-nav {
        display: flex;
    }

    .progress-nav .progress-arrow {
        display: none;
    }

    .progress-nav .nav-item {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
    }

    .progress-nav .nav-item::before,
    .progress-nav .nav-item::after {
        clip-path: polygon(3% 0, 97% 0, 100% 50%, 97% 100%, 3% 100%, 0 50%);
    }

    .avatar-dropdown {
        width: 100%;
        margin-left: 0;
        display: flex;
        justify-content: center;
    }

    .avatar-icon {
        width: 36px;
        height: 36px;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 0.75rem;
        box-shadow: none;
        border: 1px solid rgba(199, 93, 44, 0.4);
    }

    .dropdown-menu::before {
        display: none;
    }
}

@media (max-width: 900px) {
    /* Hide section indicator text labels but keep dots visible */
    .principles-nav .section-indicator .word-completion,
    .index-nav .section-indicator .section-label,
    .roadmap-nav .section-indicator .section-label,
    .needs-nav .section-indicator .section-label,
    .join-nav .section-indicator .section-label {
        display: none !important;
    }

    .principles-nav .section-indicator .letter {
        width: 14px;
        height: 14px;
    }

    .section-indicators {
        left: 1rem;
    }
}

/* Next Page Button */
.next-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.next-page-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: var(--accent-primary);
    color: var(--bg-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.08rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    clip-path: polygon(5% 0, 95% 0, 100% 50%, 95% 100%, 5% 100%, 0 50%);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-polygon);
}

.next-page-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.next-page-btn .btn-arrow {
    font-size: 1.8rem;
    background-color: var(--bg-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    transition: transform 0.3s ease;
    will-change: transform;
    transform: translateZ(0);
}

.next-page-btn:hover .btn-arrow {
    transform: translateX(4px) translateZ(0);
}

/* Full-screen sectioned layout */
main.single-page {
    padding-top: 0;
    position: relative;
    overflow: hidden;
    height: calc(var(--vh, 1vh) * 100);
}

main {
    height: calc(var(--vh, 1vh) * 100);
    overflow: hidden;
}

html.mobile-stack,
html.mobile-stack body {
    height: auto;
}

html.mobile-stack main,
html.mobile-stack main.single-page {
    height: auto;
    min-height: 100vh;
    overflow: visible;
}

html.mobile-stack main.single-page {
    padding-top: calc(var(--nav-height, 80px) + clamp(0.75rem, 2vh, 1.25rem));
}

html.mobile-stack .sections-container {
    height: auto;
    overflow: visible;
    margin-top: 0;
}

html.mobile-stack .sections-wrapper {
    min-height: auto;
    display: block;
    transform: none !important;
}

html.mobile-stack .section {
    height: auto;
    min-height: unset;
    padding: clamp(1rem, 5vw, 2rem) clamp(1rem, 5vw, 2rem);
}

html.mobile-stack .section .container {
    padding: 0;
}

html.mobile-stack .scroll-arrow,
html.mobile-stack .section-indicators {
    display: none !important;
}

/* SVG pattern background moved to body for consistency */

/* Removed empty ::after overlay that was causing brightness inconsistencies */

.section::-webkit-scrollbar {
    display: none; /* WebKit */
}

/* Full-screen section styles */
.section {
    height: calc(var(--vh, 1vh) * 100 - 80px);
    width: 100vw;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    padding: var(--section-padding-y) var(--section-padding-x);
    box-sizing: border-box;
    flex-shrink: 0;
    overflow-y: auto;
}

.section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--section-padding-x);
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    justify-content: center;
}

.section-content {
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    margin-top: clamp(0.5rem, 1.4vh, 1.25rem);
    gap: var(--section-gap);
}

/* Content transition animations */
.section-content .card,
.section-content p,
.section-content .process-steps,
.section-content .why-list,
.section-content .next-page-container,
.section-title,
.section-subtitle {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.165, 0.840, 0.440, 1.000);
}

/* Active section content animations */
.section.active .section-content .card:nth-child(1) { transition-delay: 100ms; }
.section.active .section-content .card:nth-child(2) { transition-delay: 200ms; }
.section.active .section-content .card:nth-child(3) { transition-delay: 300ms; }
.section.active .section-content .card:nth-child(4) { transition-delay: 400ms; }
.section.active .section-content .card:nth-child(5) { transition-delay: 500ms; }
.section.active .section-content .card:nth-child(6) { transition-delay: 600ms; }
.section.active .section-content .card:nth-child(7) { transition-delay: 700ms; }

.section.active .section-content p:nth-child(1) { transition-delay: 150ms; }
.section.active .section-content p:nth-child(2) { transition-delay: 250ms; }
.section.active .section-content p:nth-child(3) { transition-delay: 350ms; }
.section.active .section-content p:nth-child(4) { transition-delay: 450ms; }

.section.active .section-content .process-steps { transition-delay: 100ms; }
.section.active .section-content .why-list { transition-delay: 200ms; }
.section.active .section-content .next-page-container { transition-delay: 600ms; }

.section.active .section-title { transition-delay: 50ms; }
.section.active .section-subtitle { transition-delay: 75ms; }

.section.active .section-content .card,
.section.active .section-content p,
.section.active .section-content .process-steps,
.section.active .section-content .why-list,
.section.active .section-content .next-page-container,
.section.active .section-title,
.section.active .section-subtitle {
    opacity: 1;
    transform: translateY(0);
}

/* Individual list item animations for why-list */
.why-list li {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.165, 0.840, 0.440, 1.000);
}

.section.active .why-list li:nth-child(1) { transition-delay: 300ms; }
.section.active .why-list li:nth-child(2) { transition-delay: 400ms; }
.section.active .why-list li:nth-child(3) { transition-delay: 500ms; }
.section.active .why-list li:nth-child(4) { transition-delay: 600ms; }
.section.active .why-list li:nth-child(5) { transition-delay: 700ms; }
.section.active .why-list li:nth-child(6) { transition-delay: 800ms; }
.section.active .why-list li:nth-child(7) { transition-delay: 900ms; }

.section.active .why-list li {
    opacity: 1;
    transform: translateY(0);
}

.sections-container {
    height: calc(var(--vh, 1vh) * 100 - 80px);
    overflow: hidden;
    position: relative;
    margin-top: 80px;
}

.sections-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 500vh; /* Minimum for 5 sections, but can expand */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0); /* Ensure initial position */
}

/* Site Logo */
.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease, filter 0.3s ease;
    margin-right: 2rem;
}

.site-logo:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 4px 12px rgba(199, 93, 44, 0.4));
}

.logo-hexagon {
    height: 50px;
    width: auto;
}

/* Logo Showcase Page */
.logo-showcase {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.logo-showcase .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    text-align: center;
}

.logo-display {
    width: clamp(300px, 50vw, 600px);
    height: auto;
    filter: drop-shadow(0 8px 32px rgba(199, 93, 44, 0.3));
    animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.logo-title {
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--text-primary);
    margin: 0;
    letter-spacing: 3px;
}

.logo-tagline {
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    color: var(--text-secondary);
    margin: 0;
    letter-spacing: 2px;
}

/* Avatar dropdown */
.avatar-dropdown {
    position: relative;
    margin-left: 1rem;
}

.avatar-icon {
    height: calc(0.9rem * 1.6 + 1rem); /* match nav-item active height */
    width: calc((0.9rem * 1.6 + 1rem) * 1.1547);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--color-accent-1);
    background: var(--color-bg-dark);
    clip-path: polygon(50% -50%, 100% 50%, 50% 150%, 0 50%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.avatar-icon::before,
.avatar-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    clip-path: inherit;
    transition: all 0.3s ease;
    z-index: -1;
}

.avatar-icon::before {
    background: linear-gradient(-120deg, var(--color-accent-1) 0%, var(--color-complement) 50%, var(--color-accent-1) 100%);
    z-index: -2;
}

.avatar-icon::after {
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: var(--bg-primary);
    z-index: -1;
}

.avatar-icon svg {
    position: relative;
    z-index: 1;
}

.avatar-icon:hover {
    color: var(--color-complement);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

/* Hex action buttons (Contribute page selector) */
.hex-action-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 2rem auto;
}

.hex-action {
    --hex-action-size: 140px;
    position: relative;
    width: calc(var(--hex-action-size) * 1.15);
    height: var(--hex-action-size);
    border: none;
    background: transparent;
    clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-1);
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    padding: 0;
    overflow: visible;
}

.hex-action::before,
.hex-action::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    clip-path: inherit;
    transition: all 0.3s ease;
    z-index: -1;
}

.hex-action::before {
    background: linear-gradient(-120deg, var(--color-accent-1) 0%, var(--color-complement) 50%, var(--color-accent-1) 100%);
    z-index: -2;
}

.hex-action::after {
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    background: var(--bg-primary);
    z-index: -1;
}

.hex-action .hex-title {
    font-family: var(--font-accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-secondary);
    z-index: 1;
    transition: color 0.3s ease;
}

.hex-action .hex-label {
    position: absolute;
    left: calc(100% + 1.75rem);
    top: 50%;
    transform: translate(-20px, -50%);
    opacity: 0;
    pointer-events: none;
    background: rgba(11, 11, 12, 0.9);
    border: 1px solid rgba(199, 93, 44, 0.6);
    padding: 0.85rem 1.1rem;
    border-radius: 8px;
    min-width: 240px;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.hex-action .hex-label strong {
    display: block;
    font-family: var(--font-accent);
    font-size: 1rem;
    color: var(--accent-primary);
    margin-bottom: 0.2rem;
}

.hex-action .hex-label-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.hex-action:hover,
.hex-action:focus-visible {
    color: var(--color-complement);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hex-action:hover .hex-title,
.hex-action:focus-visible .hex-title {
    color: var(--color-accent-1);
}

.hex-action:hover .hex-label,
.hex-action:focus-visible .hex-label,
.hex-action.selected .hex-label {
    opacity: 1;
    transform: translate(0, -50%);
}

.hex-action:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 4px;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-primary);
    border: 2px solid rgba(199, 93, 44, 0.4);
    border-radius: 0;
    min-width: 160px;
    padding: 0.85rem 1rem;
    clip-path: polygon(8% 0, 92% 0, 100% 50%, 92% 100%, 8% 100%, 0 50%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.65rem 0.85rem;
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.dropdown-item:hover {
    background: rgba(199, 93, 44, 0.12);
    color: var(--accent-copper);
    transform: translateX(4px);
}

.dropdown-item svg {
    margin-right: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.dropdown-item:hover svg {
    opacity: 1;
}

/* Arrow pointer for dropdown */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 12px;
    width: 18px;
    height: 18px;
    background: var(--bg-primary);
    border: 2px solid rgba(199, 93, 44, 0.4);
    border-bottom: none;
    border-right: none;
    transform: rotate(45deg);
}

.join-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.option-card {
    background: rgba(47, 42, 39, 0.08);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    clip-path: none;
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-copper) 0%, var(--accent-bronze) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.option-card:hover {
    border-color: var(--accent-copper);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(199, 93, 44, 0.2);
}

.option-card:hover::before {
    opacity: 0.1;
}

.option-card.selected {
    border-color: var(--accent-copper);
    background: rgba(199, 93, 44, 0.1);
    transform: translateY(-2px);
}

.option-card.selected::before {
    opacity: 0.15;
}

.option-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.option-card h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.option-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.option-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--text-tertiary);
    transition: all 0.3s ease;
}

.option-card.selected .option-status {
    background: var(--accent-copper);
    border-color: var(--accent-copper);
    box-shadow: 0 0 8px rgba(199, 93, 44, 0.5);
}

.selection-prompt {
    text-align: center;
    margin-top: 2rem !important;
    color: var(--text-secondary);
    font-style: italic;
}

.selection-prompt.updated {
    color: var(--accent-copper);
    font-weight: 500;
}

/* Dynamic section creation */
.dynamic-section {
    animation: slideInFromBottom 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(40px);
}

.dynamic-section.removing {
    animation: slideOutToBottom 0.4s ease-in forwards;
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOutToBottom {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-40px);
        height: 0;
        margin: 0;
        padding: 0;
    }
}

/* Login form styles */
.login-form, .signup-form {
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}


.form-input-shell {
    width: 100%;
    position: relative;
    border-radius: 0;
    clip-path: polygon(1% 0, 99% 0, 100% 50%, 99% 100%, 1% 100%, 0 50%);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    transition: box-shadow 0.3s ease;
    overflow: hidden;
    isolation: isolate;
}

.form-input-shell::before,
.form-input-shell::after {
    content: '';
    position: absolute;
    inset: 0;
    clip-path: inherit;
    transition: background 0.3s ease, transform 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

.form-input-shell::before {
    background: linear-gradient(-120deg, rgba(199, 93, 44, 0.85) 0%, rgba(255, 138, 92, 0.85) 50%, rgba(199, 93, 44, 0.85) 100%);
}

.form-input-shell::after {
    inset: 2px;
    background: var(--bg-primary);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.form-input-shell:focus-within {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

.form-input-shell:focus-within::before {
    background: linear-gradient(-120deg, var(--color-accent-1) 0%, var(--color-complement) 50%, var(--color-accent-1) 100%);
}

.form-input {
    width: 100%;
    padding: var(--form-shell-padding-y) var(--form-shell-padding-x);
    background: transparent;
    border: none;
    border-radius: 0;
    display: block;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.4;
    transition: color 0.3s ease;
    appearance: none;
    position: relative;
    z-index: 1;
}

.form-input:focus {
    outline: none;
}

textarea.form-input {
    resize: vertical;
    min-height: 3rem;
}

.form-input::placeholder {
    color: var(--text-tertiary);
}

select.form-input {
    cursor: pointer;
    padding-right: 3.25rem;
    --select-arrow-color: var(--text-primary);
    background-image:
        linear-gradient(45deg, transparent 50%, var(--select-arrow-color) 50%),
        linear-gradient(135deg, var(--select-arrow-color) 50%, transparent 50%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.15));
    background-position:
        calc(100% - 2rem) calc(50% - 0.1rem),
        calc(100% - 1.4rem) calc(50% - 0.1rem),
        calc(100% - 3.1rem) 46%;
    background-size:
        10px 10px,
        10px 10px,
        1px 38%;
    background-repeat: no-repeat;
}

select.form-input::-ms-expand {
    display: none;
}

select.form-input option {
    background: var(--bg-primary);
    color: var(--text-primary);
}

select.form-input option:checked {
    background: var(--color-accent-1);
    color: var(--bg-primary);
}

select.form-input:focus {
    --select-arrow-color: var(--color-accent-1);
    background-image:
        linear-gradient(45deg, transparent 50%, var(--select-arrow-color) 50%),
        linear-gradient(135deg, var(--select-arrow-color) 50%, transparent 50%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.25));
    background-position:
        calc(100% - 2rem) calc(50% - 0.1rem),
        calc(100% - 1.4rem) calc(50% - 0.1rem),
        calc(100% - 3.1rem) 50%;
}

.form-button {
    width: 100%;
    padding: clamp(0.9rem, 1.8vh, 1.1rem) clamp(1.5rem, 3.5vw, 2rem);
    background: transparent;
    border: 2px solid var(--accent-copper);
    border-radius: 8px;
    color: var(--accent-copper);
    font-family: var(--font-accent);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-button:hover {
    background: var(--accent-copper);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

.form-button:active {
    transform: translateY(0);
}

.form-link {
    text-align: center;
    margin-top: 1.5rem;
}

.form-link a {
    color: var(--accent-copper);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.form-link a:hover {
    color: var(--accent-bronze);
}

.application-step {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 clamp(0.5rem, 2vw, 1.25rem);
}

.application-step .section-text {
    max-width: 640px;
}

.agreement-list {
    display: grid;
    gap: clamp(0.65rem, 1.4vh, 1rem);
    margin: clamp(1rem, 2vh, 1.5rem) 0;
}

.agreement-item {
    display: flex;
    gap: clamp(0.5rem, 1.2vh, 0.9rem);
    padding: clamp(0.85rem, 1.6vh, 1.15rem) clamp(1.15rem, 3vw, 1.75rem) clamp(0.85rem, 1.6vh, 1.15rem) clamp(1.35rem, 3.2vw, 2.1rem);
    align-items: center;
    position: relative;
    border: none;
    border-radius: 0;
    background: transparent;
    clip-path: polygon(1% 0, 99% 0, 100% 50%, 99% 100%, 1% 100%, 0 50%);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.agreement-item::before,
.agreement-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    clip-path: inherit;
    z-index: -1;
}

.agreement-item::before {
    background: linear-gradient(-120deg, var(--color-accent-1) 0%, var(--color-complement) 50%, var(--color-accent-1) 100%);
}

.agreement-item::after {
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: var(--bg-primary);
}

.agreement-item span {
    color: var(--text-primary);
    line-height: 1.4;
    position: relative;
    z-index: 1;
    margin-left: 0.35rem;
}

.agreement-item input {
    width: 1.35rem;
    height: 1.35rem;
    flex-shrink: 0;
    margin: 0;
    position: relative;
    z-index: 1;
    appearance: none;
    border: 2px solid rgba(199, 93, 44, 0.75);
    border-radius: 6px;
    background: var(--bg-primary);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.agreement-item input:focus-visible {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(199, 93, 44, 0.25);
}

@media (max-height: 950px) {
    .section .container {
        justify-content: flex-start;
    }

    .application-step {
        max-height: calc(var(--vh, 1vh) * 100 - 220px);
        overflow-y: auto;
        padding-right: clamp(0.5rem, 1vw, 1rem);
    }

    .agreement-list {
        max-height: calc(var(--vh, 1vh) * 100 - 320px);
        overflow-y: auto;
        padding-right: clamp(0.35rem, 1vw, 0.75rem);
    }
}

@media (max-height: 760px) {
    .section {
        padding-top: clamp(1rem, 3vh, 1.5rem);
        padding-bottom: clamp(1rem, 3vh, 1.5rem);
    }

    .hex-action-row {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .form-button {
        padding: 0.85rem 1.5rem;
    }
}

.agreement-item input:checked {
    border-color: var(--accent-primary);
    background: var(--accent-primary);
}

.agreement-item input::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.5rem;
    height: 0.25rem;
    border: 2px solid transparent;
    border-left-color: var(--bg-primary);
    border-bottom-color: var(--bg-primary);
    transform: translate(-50%, -60%) rotate(-45deg) scale(0);
    transition: transform 0.2s ease;
}

.agreement-item input:checked::after {
    transform: translate(-50%, -60%) rotate(-45deg) scale(1);
}

.agreement-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.application-note {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.application-form .form-button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    letter-spacing: 0.08em;
    font-size: 1.5rem;
    text-transform: uppercase;
    box-shadow: none;
}

.application-form .form-button:hover,
.application-form .form-button:focus-visible {
    background: transparent;
    color: var(--accent-primary);
    transform: translateY(-1px);
}

.scenario-question-group {
    margin-bottom: 1.75rem;
    padding: 1.25rem;
    border: 1px solid var(--border-primary);
    border-radius: 14px;
    background: var(--bg-secondary);
}

.scenario-question-group .form-label {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

label.scenario-option {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.85rem 0.75rem;
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.3s ease, transform 0.3s ease;
    background: var(--bg-primary);
}

label.scenario-option:hover {
    background: var(--bg-secondary);
    transform: translateY(-1px);
}

label.scenario-option input {
    margin-top: 0.2rem;
    width: 1.2rem;
    height: 1.2rem;
    accent-color: var(--accent-primary);
}

label.scenario-option span {
    color: var(--text-secondary);
}

label.scenario-option input:checked + span {
    color: var(--accent-primary);
    font-weight: 600;
}

.scenario-branch {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    background: var(--bg-primary);
    border: 1px dashed var(--border-primary);
}

.scenario-branch.active {
    display: block;
}

.application-complete {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(199, 93, 44, 0.4);
    background: rgba(199, 93, 44, 0.08);
    color: var(--text-primary);
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .join-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .option-card {
        padding: 1.5rem;
    }
    
    .option-icon {
        font-size: 2.5rem;
    }
}
.scroll-arrow {
    position: fixed;
    right: 2rem;
    z-index: 1000;
    height: 60px;
    aspect-ratio: 1/cos(30deg);
    clip-path: polygon(50% -50%, 100% 50%, 50% 150%, 0 50%);
    background: var(--color-bg-dark);
    color: var(--color-accent-1);
    border: none !important;
    outline: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-arrow:disabled {
    color: var(--border-subtle);
    cursor: not-allowed;
    opacity: 0.6;
}

.scroll-arrow:disabled::before {
    background: var(--border-subtle);
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(-120deg, var(--color-accent-1) 0%, var(--color-complement) 50%, var(--color-accent-1) 100%);
    clip-path: polygon(50% -50%, 100% 50%, 50% 150%, 0 50%);
    z-index: -1;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    background: var(--bg-primary);
    clip-path: polygon(50% -50%, 100% 50%, 50% 150%, 0 50%);
    z-index: -1;
    transition: background 0.3s ease;
}

.scroll-arrow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.scroll-arrow.down {
    top: calc(50% + 50px);
}

.scroll-arrow.up {
    top: calc(50% - 50px);
}

.scroll-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

/* Section indicators */
.section-indicators {
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-indicators.principles-nav,
.section-indicators.index-nav,
.section-indicators.roadmap-nav,
.section-indicators.needs-nav,
.section-indicators.join-nav {
    gap: 0.5rem;
}

.section-indicator {
    width: 12px;
    height: 12px;
    background: var(--border-subtle);
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    transition: all 0.3s ease;
    cursor: pointer;
}

.principles-nav .section-indicator,
.index-nav .section-indicator,
.roadmap-nav .section-indicator,
.needs-nav .section-indicator,
.join-nav .section-indicator {
    width: auto;
    min-width: 32px;
    height: 32px;
    background: transparent;
    clip-path: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: bold;
    color: var(--text-secondary);
    overflow: visible;
    white-space: nowrap;
    position: relative;
}

.section-indicator.active {
    background: linear-gradient(-120deg, var(--color-accent-1) 0%, var(--color-complement) 50%, var(--color-accent-1) 100%);
    transform: scale(1.3);
}

.principles-nav .section-indicator.active,
.index-nav .section-indicator.active,
.roadmap-nav .section-indicator.active,
.needs-nav .section-indicator.active,
.join-nav .section-indicator.active {
    background: transparent;
    transform: scale(1.1);
}

/* Principles page specific navigation styling */

.principles-nav .section-indicator .letter {
    display: flex;
    width: 20px;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
    color: var(--border-subtle);
}

.principles-nav .section-indicator .word-completion {
    display: inline-block;
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    white-space: nowrap;
    position: absolute;
    left: 24px;
}

.principles-nav .section-indicator .h-completion {
    left: 26px; /* For "eadless" */
}

.principles-nav .section-indicator .i-completion {
    left: 22px; /* For "ndependent" */
}

.principles-nav .section-indicator .d-completion {
    left: 25px; /* For "istributed" */
}

.principles-nav .section-indicator.active .letter {
    background: linear-gradient(-120deg, var(--color-accent-1) 0%, var(--color-complement) 50%, var(--color-accent-1) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateX(10px);
}

.principles-nav .section-indicator.active .word-completion {
    width: auto;
    opacity: 1;
    color: var(--accent-primary);
}

/* Index page specific navigation styling */

.index-nav .section-indicator .indicator-dot,
.roadmap-nav .section-indicator .indicator-dot,
.join-nav .section-indicator .indicator-dot {
    display: flex;
    background: var(--border-subtle);
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    transition: all 0.3s ease;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}

.index-nav .section-indicator .indicator-dot,
.roadmap-nav .section-indicator .indicator-dot {
    width: 14px;
    height: 14px;
}

.index-nav .section-indicator .section-label {
    display: inline-block;
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    white-space: nowrap;
    position: absolute;
    left: 28px;
    color: var(--accent-primary);
}

.index-nav .section-indicator.active .indicator-dot,
.roadmap-nav .section-indicator.active .indicator-dot {
    background: linear-gradient(-120deg, var(--color-accent-1) 0%, var(--color-complement) 50%, var(--color-accent-1) 100%);
    transform: scale(1.3);
}

.index-nav .section-indicator.active .section-label {
    width: auto;
    opacity: 1;
}

/* Roadmap page specific navigation styling */

.roadmap-nav .section-indicator .section-label,
.needs-nav .section-indicator .section-label,
.join-nav .section-indicator .section-label {
    display: inline-block;
    width: auto;
    opacity: 1;
    overflow: visible;
    transition: all 0.4s ease;
    white-space: nowrap;
    position: absolute;
    left: 28px;
    color: var(--text-secondary);
}

.join-nav .section-indicator .section-label {
    left: 24px;
}

.roadmap-nav .section-indicator.active .section-label {
    color: var(--accent-primary);
}

/* Needs page specific navigation styling */

.needs-nav .section-indicator .indicator-dot {
    display: flex;
    width: 20px;
    height: auto;
    background: transparent;
    clip-path: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--border-subtle);
    align-items: center;
    justify-content: center;
}

/* Special styling for critical need icon (exclamation mark) */
.needs-nav .section-indicator .indicator-dot .capacity-critical {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: transparent;
    font-size: 0.85rem;
    line-height: 1;
    color: var(--border-subtle);
    -webkit-text-fill-color: var(--border-subtle);
}

.needs-nav .section-indicator.active .indicator-dot {
    background: transparent;
    transform: scale(1.2);
    background: linear-gradient(-120deg, var(--color-accent-1) 0%, var(--color-complement) 50%, var(--color-accent-1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.needs-nav .section-indicator.active .section-label {
    color: var(--accent-primary);
}

/* Active state for critical need icon - gradient background with dark cutout text */
.needs-nav .section-indicator.active .indicator-dot .capacity-critical {
    background: linear-gradient(-120deg, var(--color-accent-1) 0%, var(--color-complement) 50%, var(--color-accent-1) 100%) !important;
    color: rgba(11, 11, 12, 0.95) !important;
    -webkit-text-fill-color: rgba(11, 11, 12, 0.95) !important;
    font-size: 0.75rem !important;
    line-height: 0.9 !important;
    box-shadow: 0 0 8px rgba(163, 65, 42, 0.3) !important;
}

/* Join page specific navigation styling */

.join-nav .section-indicator .indicator-dot {
    width: 12px;
    height: 12px;
}

.join-nav .section-indicator.active .indicator-dot {
    background: linear-gradient(-120deg, var(--color-accent-1) 0%, var(--color-complement) 50%, var(--color-accent-1) 100%);
    transform: scale(1.3);
}

.join-nav .section-indicator.active .section-label {
    color: var(--accent-primary);
}

.section-content {
    width: min(75%, 960px);
    margin: 0 auto;
    margin-top: clamp(0.5rem, 1.4vh, 1.25rem);
    opacity: 1;
    visibility: visible;
}

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

.section-text {
    font-size: var(--section-body-scale);
    margin: 0 auto clamp(1rem, 2vh, 1.75rem);
    text-align: center;
    opacity: 0.9;
}

.section-text.emphasis {
    font-weight: 600;
    color: var(--accent-primary);
}

/* Why List */
.why-list {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 2rem auto;
    text-align: left;
    list-style: none;
    padding-left: 0;
}

.why-list li {
    margin-bottom: 0.8rem;
    padding-left: 1rem;
    position: relative;
}

.why-list li::before {
    content: '•';
    color: var(--accent-primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90vh;
    width: 100vw;
    padding: 2rem;
    position: relative;
}



.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    z-index: 2;
    position: relative;
    transform: translateY(-25%);
}

/* Hero section content transitions */
.hero-content .hero-org-name {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.840, 0.440, 1.000);
}

.section.active .hero-content .hero-org-name {
    transition-delay: 3500ms; /* After MAKERS and . appear */
}

.section.active .hero-content .hero-org-name {
    opacity: 1;
    transform: translateY(0);
}

/* Word-by-word reveal for hero title */
.hero-title .word-reveal {
    opacity: 0;
    transform: translateY(20px);
    display: inline-block;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
    margin-right: 0.2em;
}

.hero-title .word-reveal:last-child {
    margin-right: 0;
}

/* Remove margin after MAKERS word specifically */
.hero-title .word-reveal.gradient-text {
    margin-right: 0;
}

/* Staggered word appearance with exact timing */
.section.active .hero-title .word-reveal[data-delay="0"] { transition-delay: 100ms; }   /* NO */
.section.active .hero-title .word-reveal[data-delay="1"] { transition-delay: 400ms; }   /* MASTERS. (300ms after NO) */
.section.active .hero-title .word-reveal[data-delay="2"] { transition-delay: 1400ms; }  /* ONLY (1000ms after MASTERS.) */
.section.active .hero-title .word-reveal[data-delay="4"] { transition-delay: 1800ms; }  /* MAKERS (400ms after ONLY) */
.section.active .hero-title .word-reveal[data-delay="5"] { transition-delay: 2200ms; }  /* . */

.section.active .hero-title .word-reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Special animation for MAKERS word */
.section.active .hero-title .word-reveal[data-delay="4"] {
    animation: makersReveal 0.8s cubic-bezier(0.23, 1, 0.320, 1) forwards;
    animation-delay: 1800ms; /* Same as transition-delay */
}

@keyframes makersReveal {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    70% {
        opacity: 1;
        transform: translateY(0) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-title {
    font-size: clamp(3rem, 8.4vw, 6rem);
    margin-bottom: 0.5rem;
    text-align: center;
    color: var(--accent-primary);
    line-height: 1.1;
    white-space: normal;
}

.hero-title-line {
    display: inline;
}

@media (max-width: 425px) {
    .hero-title-line.hero-second-line {
        display: block;
        margin-top: 0.15em;
    }
}

.hero-org-name {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    text-align: center;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    text-align: center;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-principles {
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-principles .principle-item {
    margin-bottom: 1.5rem;
    text-align: left;
}

.gradient-text {
    background: linear-gradient(-120deg, var(--color-accent-1) 0%, var(--color-complement) 50%, var(--color-accent-1) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

.section-title {
    font-size: var(--section-title-scale);
    text-align: center;
    margin-bottom: 1rem;
    color: var(--accent-primary);
    position: relative;
    line-height: 1.1;
}

.card {
    display: flex;
    align-items: flex-start;
    gap: clamp(0.75rem, 1.5vw, 1.1rem);
    padding: clamp(0.85rem, 1.8vh, 1.25rem) clamp(1rem, 3vw, 1.65rem);
    background: rgba(47, 42, 39, 0.08);
    border: 1px solid rgba(111, 100, 96, 0.2);
    border-radius: 0;
    clip-path: polygon(5% 0, 95% 0, 100% 50%, 95% 100%, 5% 100%, 0 50%);
    box-shadow: var(--shadow-polygon);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.card:last-child {
    margin-bottom: 0;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent-primary);
    clip-path: polygon(5% 0, 95% 0, 100% 50%, 95% 100%, 5% 100%, 0 50%);
    z-index: -1;
}

.card::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: var(--bg-primary);
    clip-path: polygon(5% 0, 95% 0, 100% 50%, 95% 100%, 5% 100%, 0 50%);
    z-index: -1;
}

.card .step-number {
    font-size: clamp(2rem, min(3.2vw, 3.4vh), 3.3rem);
    background: var(--gradient-polygon);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    line-height: 1;
    min-width: clamp(48px, 7vw, 64px);
    margin-left: 0px;
    text-align: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}



/* =====================================================
   CAPACITY SYSTEM STYLES
   ===================================================== */

/* ===== CAPACITY ICONS ===== */

/* Base capacity icon styling */
.capacity-icon {
    display: inline-block;
    vertical-align: middle;
    font-size: 60px;
    line-height: 1;
}

/* Content section capacity icons */
.card .step-number i,
.card .step-number .capacity-icon {
    font-size: 7rem;
    background: inherit;
    background-clip: inherit;
    -webkit-background-clip: inherit;
    -webkit-text-fill-color: inherit;
}

/* Quarter icon positioning adjustment */
.card .step-number .capacity-quarter {
    margin-left: -16px;
}

/* Navigation capacity icons */
.indicator-dot .capacity-icon {
    font-size: 1.3rem;
}

.needs-nav .section-indicator.active .indicator-dot .capacity-icon {
    font-size: 1.5rem;
}

/* Navigation capacity icon active state - inherits earth gradient */
.needs-nav .section-indicator.active .indicator-dot i,
.needs-nav .section-indicator.active .indicator-dot .capacity-icon {
    background: linear-gradient(-120deg, var(--color-accent-1) 0%, var(--color-complement) 50%, var(--color-accent-1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation icon states */
.needs-nav .section-indicator .indicator-dot i,
.needs-nav .section-indicator .indicator-dot .capacity-icon {
    font-size: 1.2rem;
    color: inherit;
}

/*=======================================================================================
   CAPACITY SYSTEM STYLES
   Complete styling system for team capacity indicators and status labels
=======================================================================================*/

/* === CAPACITY ICON STYLES === */

/* === CAPACITY ICON ROTATIONS === */
/* Visual orientation for different capacity levels */
.capacity-half {
    transform: rotate(180deg) translateZ(0);
    will-change: transform;
}

.capacity-quarter {
    transform: rotate(90deg) translateZ(0);
    will-change: transform;
}

.capacity-three-quarters {
    transform: rotate(270deg) translateZ(0);
    will-change: transform;
}

/* === CAPACITY STATUS LABELS === */
/* Team capacity and urgency level indicators */

/* Base capacity status styling */
.capacity-status {
    display: block;
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 0.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-accent);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid currentColor;
    background: rgba(255, 255, 255, 0.1);
}

/* Capacity status levels */
.capacity-status.no-need {
    background: rgba(162, 151, 142, 0.3);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-text-secondary);
}

.capacity-status.partial-need {
    background: rgba(199, 93, 44, 0.2);
    color: #E67A42;
    border: 1px solid #E67A42;
}

.capacity-status.high-need {
    background: rgba(199, 93, 44, 0.4);
    color: #DC5A2C;
    border: 1px solid #DC5A2C;
}

/* Enhanced urgent/critical capacity status styling */
.step-number .capacity-status.urgent-need {
    background: rgba(199, 93, 44, 0.3) !important;
    color: #B8502A !important;
    border: 1px solid #B8502A !important;
    animation: pulse 2s ease-in-out infinite;
    opacity: 1 !important;
    visibility: visible !important;
    text-indent: 0 !important;
    -webkit-text-fill-color: #B8502A !important;
    text-shadow: none !important;
    display: block !important;
    font-size: 1.5rem !important;
    font-weight: 500 !important;
    margin-top: 0.5rem !important;
    text-align: center !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-family: var(--font-accent) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 20px !important;
}

.step-number .capacity-status.critical-need {
    background: rgba(180, 50, 30, 0.4) !important;
    color: #A3412A !important;
    border: 2px solid #A3412A !important;
    animation: urgentFlash 1.5s ease-in-out infinite;
    opacity: 1 !important;
    visibility: visible !important;
    text-indent: 0 !important;
    -webkit-text-fill-color: #A3412A !important;
    text-shadow: none !important;
    display: block !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    margin-top: 0.5rem !important;
    text-align: center !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-family: var(--font-accent) !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 20px !important;
    box-shadow: 0 0 8px rgba(163, 65, 42, 0.3) !important;
}

/* Transition overrides - ensure urgent/critical labels always visible */
.section-content .card .step-number .capacity-status.urgent-need {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    color: #B8502A !important;
    -webkit-text-fill-color: #B8502A !important;
}

.section-content .card .step-number .capacity-status.critical-need {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    color: #A3412A !important;
    -webkit-text-fill-color: #A3412A !important;
}

/* === CAPACITY STATUS ANIMATIONS === */
/* Pulse animation for urgent needs */

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

/* Flash animation for critical needs */
@keyframes urgentFlash {
    0%, 100% { 
        background: rgba(180, 50, 30, 0.4);
        box-shadow: 0 0 8px rgba(163, 65, 42, 0.3);
    }
    50% { 
        background: rgba(180, 50, 30, 0.6);
        box-shadow: 0 0 12px rgba(163, 65, 42, 0.5);
    }
}

/*=======================================================================================
   END CAPACITY SYSTEM STYLES  
=======================================================================================*/

/* Animation utilities */
.animate-in {
    animation: slideInUp 0.6s ease forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card .step-content {
    flex: 1;
}

.card .step-content h3 {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.card .step-content p {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.4;
    font-size: 1.1rem;
}

/* Content item variants for different pages */
.card.principle-style {
    display: block;
    padding: 2rem 2rem 2rem 3rem;
    gap: 0;
    text-align: left;
}

.card.principle-style h4 {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
    color: var(--accent-primary);
    text-align: left;
}

.card.principle-style p {
    text-align: left;
    margin: 0;
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 1.2rem;
}

/* Roadmap page content items - match principles styling */
.card:has(.step-number) {
    padding: 2rem 2rem 2rem 3rem !important;
}

.card .step-number + .step-content h4 {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
    color: var(--accent-primary);
}

.card .step-number + .step-content p {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Needs page content items - match principles styling */
.card:not(:has(.step-number)):not(.principle-style) {
    padding: 2rem 2rem 2rem 3rem !important;
}

.card:not(:has(.step-number)):not(.principle-style) h4 {
    font-size: 1.5rem !important;
    margin-bottom: 0.2rem !important;
    color: var(--accent-primary) !important;
}

.card:not(:has(.step-number)):not(.principle-style) p {
    margin: 0 !important;
    color: var(--text-primary) !important;
    line-height: 1.6 !important;
}

/* How We Work section - reduce vertical spacing */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: clamp(0.6rem, 1.5vh, 1rem);
}

.process-steps .card {
    padding: clamp(0.75rem, 1.4vh, 1.15rem) clamp(0.85rem, 2.25vw, 1.35rem) !important;
    margin-bottom: 0 !important;
}

.process-steps .card .step-content h3 {
    font-size: clamp(1rem, min(2.4vw, 2.5vh), 1.35rem) !important;
    margin: 0 0 0.3rem 0 !important;
    line-height: 1.2 !important;
}

.process-steps .card .step-content p {
    font-size: clamp(0.95rem, min(2.1vw, 2.2vh), 1.15rem) !important;
    margin: 0 !important;
    line-height: 1.35 !important;
}

.process-steps .card .step-number {
    font-size: clamp(1.2rem, min(2.6vw, 2.7vh), 2rem) !important;
    min-width: clamp(2.2rem, 6vw, 3.2rem) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }
    
    .hero {
        text-align: center;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .process-controls {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .process-btn {
        padding: 0.6rem 1rem;
    }
    
    .process-viewer {
        height: 50vh;
    }
    
    .process-card {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .card-number {
        font-size: 2.8rem;
        min-width: 80px;
    }
    
    /* Font size reductions for mobile */
    .section-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem) !important;
        margin-bottom: 0.75rem !important;
    }
    
    .section-text {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .hero-title {
        font-size: clamp(2rem, 6vw, 3rem) !important;
    }
    
    .hero-org-name {
        font-size: clamp(0.7rem, 1.5vw, 0.9rem) !important;
        letter-spacing: 1px !important;
    }
    
    /* Navigation font sizes */
    .progress-nav .nav-item {
        font-size: 0.7rem !important;
        padding: 0.4rem 0.7rem !important;
        letter-spacing: 0.5px !important;
    }
    
    .progress-arrow {
        font-size: 0.7rem !important;
    }
    
    /* Step items for How We Work */
    .step-number {
        font-size: 2rem !important;
    }
    
    .step-content h3 {
        font-size: 1rem !important;
    }
    
    .step-item {
        padding: 1rem !important;
        gap: 1rem !important;
    }
    
    /* List items */
    .why-list li {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
    }
    
    /* Next page button */
    .next-page-btn {
        font-size: 0.9rem !important;
        padding: 0.75rem 1.5rem !important;
    }
    
    .next-page-btn span {
        font-size: 0.85rem;
    }
    
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .step-item {
        padding: 1rem;
        gap: 1rem;
        margin-bottom: 1.5rem;
        flex-direction: column;
        text-align: center;
    }
    
    .step-item .step-number {
        font-size: 2rem;
        min-width: auto;
    }
    
    .step-item .step-content h3 {
        font-size: 1.2rem;
    }
    
    .step-item .step-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}



/* Responsive adjustments for shorter screens */
@media (max-height: 800px) {
    .section {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .step-item {
        padding: 1rem;
        gap: 1rem;
    }
    
    .step-number {
        font-size: 2rem !important;
    }
    
    .process-steps {
        gap: 1rem;
    }
    
    .next-page-container {
        margin-top: 1rem;
    }
}

@media (max-height: 700px) {
    .section {
        padding: 0.5rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .section-text {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .step-item {
        padding: 0.75rem;
    }
    
    .step-content h3 {
        font-size: 1.1rem;
    }
    
    .step-content p {
        font-size: 0.85rem;
    }
}

@media (max-width: 640px) {
    .hex-action-row {
        flex-direction: column;
        gap: 1.25rem;
        margin: 1.25rem auto;
    }

    .hex-action {
        --hex-action-size: 110px;
    }

    .section-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .section-text,
    .application-step .section-text {
        text-align: left;
    }

    .process-steps .card {
        flex-direction: row;
        align-items: flex-start;
        gap: clamp(0.65rem, 3vw, 0.9rem);
    }

    .process-steps .card .step-number {
        font-size: clamp(2rem, 7vw, 2.8rem) !important;
        margin-bottom: 0;
        text-align: left;
        margin-left: clamp(0.05rem, 2vw, 0.5rem);
        line-height: 1;
    }

    .process-steps .card .step-content h3 {
        font-size: clamp(0.95rem, 4vw, 1.15rem) !important;
    }

    .process-steps .card .step-content p {
        font-size: clamp(0.85rem, 3.6vw, 1.05rem) !important;
        line-height: 1.4 !important;
    }

    .card.principle-style {
        padding: clamp(1rem, 5.5vw, 1.4rem) clamp(1rem, 6vw, 1.75rem);
        gap: 0;
    }

    .card.principle-style h4 {
        font-size: clamp(1.05rem, 4.2vw, 1.35rem);
        margin-bottom: 0.25rem;
    }

    .card.principle-style p {
        font-size: clamp(0.9rem, 3.9vw, 1.05rem);
        line-height: 1.45;
    }

    .card.roadmap-card {
        padding: clamp(0.85rem, 4.5vw, 1.3rem) clamp(1rem, 6vw, 1.6rem) !important;
        gap: clamp(0.6rem, 3.2vw, 0.9rem);
        align-items: flex-start;
    }

    .card.roadmap-card .step-number {
        font-size: clamp(1.75rem, 6.5vw, 2.4rem) !important;
        min-width: auto;
        line-height: 1;
        margin-right: clamp(0.35rem, 2.5vw, 0.75rem);
    }

    .card.roadmap-card .step-number + .step-content h4,
    .card.roadmap-card .step-content h4 {
        font-size: clamp(0.95rem, 4.1vw, 1.2rem) !important;
        margin-bottom: 0.2rem;
    }

    .card.roadmap-card .step-number + .step-content p,
    .card.roadmap-card .step-content p {
        font-size: clamp(0.85rem, 3.5vw, 1rem) !important;
        line-height: 1.4 !important;
    }

    /* Needs page cards - reduce capacity icons and status labels */
    .card .step-number .capacity-icon {
        font-size: clamp(3.5rem, 14vw, 5rem) !important;
    }

    .capacity-status {
        font-size: clamp(0.75rem, 3.2vw, 1rem) !important;
        padding: clamp(0.35rem, 1.6vw, 0.5rem) clamp(0.6rem, 2.8vw, 0.85rem) !important;
        margin-top: clamp(0.3rem, 1.2vw, 0.45rem) !important;
    }

    .step-number .capacity-status.urgent-need {
        font-size: clamp(0.8rem, 3.4vw, 1.05rem) !important;
        padding: clamp(0.4rem, 1.7vw, 0.55rem) clamp(0.65rem, 2.9vw, 0.9rem) !important;
    }

    .step-number .capacity-status.critical-need {
        font-size: clamp(0.85rem, 3.6vw, 1.1rem) !important;
        padding: clamp(0.45rem, 1.8vw, 0.6rem) clamp(0.7rem, 3vw, 0.95rem) !important;
    }

    .card:not(:has(.step-number)):not(.principle-style) h4 {
        font-size: clamp(0.95rem, 4vw, 1.2rem) !important;
    }

    .card:not(:has(.step-number)):not(.principle-style) p {
        font-size: clamp(0.85rem, 3.5vw, 1rem) !important;
        line-height: 1.4 !important;
    }

    /* Needs page cards with capacity indicators */
    .card:has(.capacity-icon) {
        padding: clamp(0.75rem, 4vw, 1.2rem) clamp(0.9rem, 5vw, 1.5rem) !important;
    }

    .card .step-number + .step-content h4 {
        font-size: clamp(0.95rem, 4.1vw, 1.2rem) !important;
    }

    .card .step-number + .step-content p {
        font-size: clamp(0.85rem, 3.5vw, 1rem) !important;
        line-height: 1.4 !important;
    }

    .application-step {
        padding: 0 clamp(0.35rem, 4vw, 0.75rem);
    }

    .form-input-shell {
        clip-path: polygon(3% 0, 97% 0, 100% 50%, 97% 100%, 3% 100%, 0 50%);
    }

    .hex-label-text {
        font-size: 0.85rem;
    }
}