:root {
    --ink: #0b0b0f;
    --paper: #fff8ef;
    --cobalt: #2653FF;
    --coral: #FF5A5F;
    --mango: #FFB000;
    --mint: #22C7A9;
    --fuchsia: #FF2AB4;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-800: #1f2937;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
}

a.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--cobalt);
    color: var(--paper);
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-weight: 500;
    z-index: 1000;
}

a.skip-link:focus {
    top: 0;
}

/* Hero Section */
.hero {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem 3rem;
    position: relative;
    background: linear-gradient(135deg, var(--paper) 0%, #fff 100%);
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--ink);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.rotating-text {
    display: inline-block;
    position: relative;
    height: 1.2em;
    min-width: 14ch;
    vertical-align: bottom;
}

.rotating-text span {
    position: absolute;
    left: 0;
    opacity: 0;
    transform: translateY(20px);
    animation: rotateWords 12s infinite;
}

.rotating-text span:nth-child(1) {
    color: var(--coral);
    animation-delay: 0s;
}

.rotating-text span:nth-child(2) {
    color: var(--cobalt);
    animation-delay: 4s;
}

.rotating-text span:nth-child(3) {
    color: var(--mint);
    animation-delay: 8s;
}

@keyframes rotateWords {
    0%, 100% { opacity: 0; transform: translateY(20px); }
    5%, 28% { opacity: 1; transform: translateY(0); }
    33% { opacity: 0; transform: translateY(-20px); }
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: var(--gray-800);
    margin-bottom: 0;
    line-height: 1.5;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 10px); }
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
    stroke: var(--ink);
    opacity: 0.5;
}

/* About Section */
.about {
    padding: 6rem 2rem;
    background: white;
    border-top: 3px solid var(--ink);
    border-bottom: 3px solid var(--ink);
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
}

.section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 1rem;
}

.about h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--ink);
    line-height: 1.2;
}

.about p {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--gray-800);
}

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

/* Stats Bar */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid var(--gray-200);
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ink);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-800);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Pillars Section */
.pillars {
    padding: 2rem 2rem 6rem;
    max-width: 1400px;
    margin: 0 auto;
}

.pillars-header {
    text-align: center;
    margin-bottom: 4rem;
}

.pillars-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--ink);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.pillar-card {
    background: white;
    border: 3px solid var(--ink);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.pillar-card:hover::before {
    transform: scaleX(1);
}

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: 12px 12px 0 var(--ink);
}

.pillar-card.hull-house {
    border-color: var(--coral);
}

.pillar-card.hull-house::before {
    background: var(--coral);
}

.pillar-card.tech-career {
    border-color: var(--cobalt);
}

.pillar-card.tech-career::before {
    background: var(--cobalt);
}

.pillar-card.civic-tech {
    border-color: var(--mint);
}

.pillar-card.civic-tech::before {
    background: var(--mint);
}

.pillar-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
}

.pillar-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--ink);
}

.pillar-card p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--gray-800);
    margin-bottom: 1.5rem;
}

.detail-text {
    margin-top: 1.5rem;
    font-size: 0.9375rem;
}

.detail-text-compact {
    margin-top: 1rem;
    font-size: 0.9375rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    background: var(--paper);
    border: 2px solid var(--ink);
    border-radius: 6px;
    font-weight: 500;
}

.hull-house .tag:nth-child(1) { border-color: var(--coral); color: var(--coral); }
.hull-house .tag:nth-child(2) { border-color: var(--mango); color: var(--mango); }
.hull-house .tag:nth-child(3) { border-color: var(--fuchsia); color: var(--fuchsia); }

.tech-career .tag { border-color: var(--cobalt); color: var(--cobalt); }
.civic-tech .tag { border-color: var(--mint); color: var(--mint); }

.project-list {
    list-style: none;
    margin: 1.5rem 0;
}

.project-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.project-list li:last-child {
    border-bottom: none;
}

.project-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: block;
}

.project-desc {
    font-size: 0.9375rem;
    color: var(--gray-800);
    line-height: 1.6;
}

.cta-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
}

.btn {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    border: 3px solid var(--ink);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    text-align: center;
    cursor: pointer;
}

.btn-primary {
    background: var(--ink);
    color: var(--paper);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 0 var(--ink);
}

.btn-secondary {
    background: transparent;
    color: var(--ink);
}

.btn-secondary:hover {
    background: var(--ink);
    color: var(--paper);
}

.hull-house .btn-primary {
    background: var(--coral);
    border-color: var(--coral);
}

.hull-house .btn-primary:hover {
    box-shadow: 4px 4px 0 var(--coral);
}

.tech-career .btn-primary {
    background: var(--cobalt);
    border-color: var(--cobalt);
}

.tech-career .btn-primary:hover {
    box-shadow: 4px 4px 0 var(--cobalt);
}

.civic-tech .btn-primary {
    background: var(--mint);
    border-color: var(--mint);
    color: var(--ink);
}

.civic-tech .btn-primary:hover {
    box-shadow: 4px 4px 0 var(--mint);
}

.btn:focus {
    outline: 3px solid var(--mango);
    outline-offset: 2px;
}

/* Newsletter Section */
.newsletter {
    padding: 6rem 2rem;
    background: var(--ink);
    color: var(--paper);
}

.newsletter-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.newsletter h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.newsletter p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 3px solid var(--paper);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

.newsletter-form button {
    padding: 1rem 2rem;
    background: var(--coral);
    color: var(--paper);
    border: 3px solid var(--coral);
    border-radius: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 0 var(--coral);
}

/* Footer */
footer {
    padding: 3rem 2rem;
    background: var(--paper);
    border-top: 3px solid var(--ink);
    text-align: center;
}

footer p {
    font-size: 1rem;
    color: var(--ink);
    margin-bottom: 1rem;
}

footer a {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--cobalt);
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--gray-800);
    font-style: italic;
    margin-top: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        min-height: 70vh;
        padding: 3rem 1.5rem 2rem;
    }

    .about {
        padding: 4rem 1.5rem;
    }

    .pillars {
        padding: 2rem 1.5rem 4rem;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .stats {
        gap: 1.5rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
