/* =================================================================
   CENTER POINT - Main Stylesheet
   ================================================================= */

/* --- 1. VARIABLES & RESET --- */
:root {
    --c-bg: #ffffff;
    --c-text: #334155;
    --c-heading: #062c1b;
    --c-accent: #30A36A;
    --c-deep-forest: #022c22;
    --c-gold: #c2a370;
    --c-surface: #ffffff;
    --c-surface-muted: #f0fdf4;
    --c-text-muted: #64748b;
    --c-border: #e2e8f0;

    --f-hero: clamp(2.75rem, 5vw + 1rem, 4.5rem);
    --f-h1: clamp(2rem, 4vw + 1rem, 3.25rem);
    --f-h2: clamp(1.5rem, 3vw + 1rem, 2.5rem);
    --f-body: clamp(1rem, 0.5vw + 1rem, 1.15rem);

    --spacing-sm: clamp(16px, 2vw, 24px);
    --spacing-md: clamp(32px, 3vw, 48px);
    --spacing-lg: clamp(64px, 6vw, 96px);

    --container-width: min(1100px, 92vw);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--c-bg);
    color: var(--c-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
    color: var(--c-heading);
    font-weight: 700;
    line-height: 1.1;
}

p {
    max-width: 68ch;
    font-size: var(--f-body);
    line-height: 1.55;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* --- 2. UTILITIES --- */
.container {
    width: var(--container-width);
    margin-inline: auto;
    max-width: 100%;
}

.flow > * + * {
    margin-top: var(--spacing-md);
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--c-heading);
    color: white;
    padding: 8px 16px;
    z-index: 200;
    transition: top 0.3s;
}

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

/* --- 3. NAVIGATION --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.5rem 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--c-border);
    transition: transform 0.3s var(--ease-out-expo);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    height: 60px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--c-text-muted);
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--c-accent);
    outline: none;
}

.nav-links a.active {
    color: var(--c-accent);
}

.nav-contact {
    color: var(--c-heading);
    border-bottom: 2px solid var(--c-accent);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- 4. HERO --- */
header.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--c-heading);
    color: white;
    padding-top: 100px;
    padding-bottom: 4rem;
}

canvas#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 65ch;
    margin-top: 2rem;
}

h1.hero-title {
    font-size: var(--f-hero);
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: white;
}

h1.hero-title em {
    font-style: italic;
    color: white;
}

h1.hero-title .text-highlight {
    color: var(--c-accent);
    background: linear-gradient(135deg, var(--c-accent), #86efac);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: normal;
}

.hero-lead {
    opacity: 0.9;
    margin-top: 1.5rem;
    font-size: 1.35rem;
    line-height: 1.5;
    color: #ecfdf5;
}

.hero-buttons {
    margin-top: 3rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
    background: white;
    color: var(--c-heading);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-outline {
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    background: transparent;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
}

/* --- 5. SECTIONS --- */
section {
    padding-block: var(--spacing-lg);
}

.section-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .section-wrapper {
        grid-template-columns: 320px 1fr;
        gap: 3rem;
        align-items: start;
    }
}

.section-header {
    position: relative;
    padding-top: 1.5rem;
    border-top: 1px solid var(--c-border);
    margin-bottom: 0;
}

.section-header::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--c-heading);
}

.section-header .section-meta {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--c-accent);
    margin-bottom: 0.5rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 0;
    letter-spacing: -0.02em;
    color: var(--c-heading);
    line-height: 1.1;
}

/* --- 6. ABOUT SECTION --- */
.founder-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .founder-card {
        align-items: center;
        text-align: center;
        padding-top: 0.25rem;
    }
}

.founder-img {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    box-shadow: 0 15px 35px -10px rgba(0,0,0,0.1);
    border: 4px solid white;
}

.founder-name {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.founder-title {
    color: var(--c-accent);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.bio-text {
    font-family: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
    border-top: 1px solid var(--c-border);
    padding-top: 1.5rem;
}

.bio-text p.lead {
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--c-heading);
}

.bio-text p {
    font-size: 1.25rem;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .bio-text {
        padding-top: 4.5rem;
    }
}

.quote-box {
    position: relative;
    padding-left: 1.5rem;
    border-left: 3px solid var(--c-accent);
    font-family: Charter, serif;
    font-style: italic;
    color: var(--c-heading);
    margin-top: 3.5rem;
    font-size: 1.25rem;
    line-height: 1.5;
}

/* --- 7. FOCUS SECTION --- */
#focus {
    background-color: var(--c-deep-forest);
}

#focus .section-header {
    border-top-color: rgba(255,255,255,0.2);
}

#focus .section-header::before {
    background-color: white;
}

#focus .section-header h2 {
    color: white;
}

#focus .section-header .section-meta {
    color: rgba(255,255,255,0.7);
}

.focus-content-area {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.focus-block {
    padding: 2.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
}

.focus-block p {
    font-family: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    max-width: 65ch;
}

.focus-block p + p {
    margin-top: 1.25rem;
}

.focus-block h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-accent);
    margin-bottom: 1.25rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 600;
}

.focus-block .practice-list {
    color: white;
    font-weight: 500;
}

/* Agency Block */
.agency-block {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    padding: 2.5rem;
    margin-top: 0.5rem;
    background-color: white;
    border-radius: 8px;
    align-items: center;
    color: var(--c-text);
}

.agency-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.agency-icon-wrapper img {
    width: 80%;
    max-width: 250px;
    height: auto;
}

.agency-content .eyebrow {
    color: var(--c-text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    display: block;
    text-transform: uppercase;
    font-weight: 600;
}

.agency-content h3 {
    font-size: 1.4rem;
    color: var(--c-heading);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.agency-content p {
    color: var(--c-text);
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 0;
}

/* --- 8. PUBLICATIONS --- */
.pub-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 1.5rem;
}

.pub-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--c-border);
    align-items: baseline;
}

.pub-item:last-child {
    border-bottom: none;
}

.pub-year {
    font-family: monospace;
    font-weight: 600;
    color: var(--c-accent);
    font-size: 1rem;
}

.pub-content a {
    text-decoration: none;
}

.pub-content a strong {
    display: block;
    font-family: Charter, serif;
    font-size: 1.4rem;
    line-height: 1.25;
    color: var(--c-accent);
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.pub-content a strong::after {
    content: ' ↗';
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.8em;
    opacity: 0.6;
}

.pub-content a:hover strong,
.pub-content a:focus strong {
    color: var(--c-heading);
}

.pub-content a:hover strong::after,
.pub-content a:focus strong::after {
    opacity: 1;
}

.pub-meta {
    font-size: 1rem;
    color: var(--c-text-muted);
    font-style: italic;
}

/* --- 9. CLIENTS --- */
#clients {
    background-color: white;
    padding-bottom: var(--spacing-lg);
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    place-items: center;
    margin-top: 1.5rem;
}

.logo-grid img {
    max-height: 64px;
    width: auto;
    opacity: 1;
}

.logo-grid .full-row {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 2rem;
}

/* --- 10. FOOTER --- */
footer {
    background: var(--c-heading);
    color: #94a3b8;
    padding: var(--spacing-lg) 0;
}

.footer-cta {
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-cta h2 {
    font-family: Charter, serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: white;
    font-style: italic;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #ffffff, #a7f3d0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-cta p {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 1.1rem;
    color: #6ee7b7;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
}

.footer-brand img {
    height: 60px;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-col h4 {
    color: white;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-col a,
.footer-col address {
    color: rgba(255,255,255,0.7);
    font-style: normal;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.footer-col a:hover,
.footer-col a:focus {
    color: white;
}

.copyright {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

/* --- 11. ANIMATIONS --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s var(--ease-out-expo);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- 12. RESPONSIVE --- */
@media (max-width: 768px) {
    .footer-main {
        flex-direction: column;
        gap: 2.5rem;
    }

    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        height: 100dvh;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
        border-bottom: 1px solid #eee;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }

    .nav-links.open {
        transform: translateY(0);
    }

    .mobile-toggle {
        display: block;
    }

    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .focus-block {
        padding: 1.75rem;
    }
    
    .focus-block p {
        font-size: 1.1rem;
    }

    .agency-block {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: left;
    }

    .agency-icon-wrapper {
        justify-content: flex-start;
        margin-bottom: 1rem;
    }

    .agency-icon-wrapper img {
        width: auto;
        height: 60px;
    }

    .pub-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .footer-main {
        flex-direction: column;
        gap: 2.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}