/* ============================================
   ANALYTICAL MINIMALISM
   A restrained, data-forward aesthetic
   ============================================ */

:root {
    /* Core palette - warm charcoal with amber accent */
    --bg: #0a0a09;
    --bg-subtle: #111110;
    --surface: #1a1a18;
    --border: #2a2a27;
    --border-subtle: #1f1f1c;

    --text: #e8e6e1;
    --text-muted: #8a8880;
    --text-subtle: #5a5850;

    --accent: #d4a853;
    --accent-muted: #b8923f;
    --accent-subtle: rgba(212, 168, 83, 0.15);

    /* Typography */
    --font-display: 'Instrument Serif', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 3rem;
    --space-xl: 6rem;
    --space-2xl: 10rem;

    /* Timing */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    overflow-x: hidden;
}

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

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

/* ============================================
   GRID BACKGROUND
   ============================================ */

.grid-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
    background-image:
        linear-gradient(var(--border-subtle) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 70%);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(to bottom, var(--bg), transparent);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--text);
    transition: color 0.3s var(--ease-out);
}

.nav-logo:hover {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    transition: color 0.3s var(--ease-out);
}

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

/* ============================================
   HERO
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-2xl) var(--space-lg) var(--space-xl);
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.hero-text {
    animation: fadeUp 1s var(--ease-out) both;
}

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

.hero-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-md);
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
}

.hero-role {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.hero-role a {
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: border-color 0.3s var(--ease-out);
}

.hero-role a:hover {
    border-color: var(--accent);
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: var(--space-lg);
}

.hero-ctas {
    display: flex;
    gap: var(--space-md);
}

.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
}

.cta-link:hover {
    background: var(--accent-subtle);
    border-color: var(--accent-muted);
    color: var(--accent);
}

.cta-link svg {
    transition: transform 0.3s var(--ease-out);
}

.cta-link:hover svg {
    transform: translate(2px, -2px);
}

/* Hero visual - headshot or data viz */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeUp 1s var(--ease-out) 0.2s both;
}

.headshot-container {
    position: relative;
    width: 320px;
    height: 320px;
}

/* Vignette overlay to blend edges */
.headshot-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(
        circle at center,
        transparent 35%,
        rgba(10, 10, 9, 0.5) 70%,
        rgba(10, 10, 9, 0.9) 95%,
        var(--bg) 100%
    );
    pointer-events: none;
    z-index: 2;
}

/* Geometric rings around headshot */
.headshot-container .viz-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--border);
    z-index: 4;
}

.headshot-container .viz-ring-1 {
    inset: -20px;
    animation: rotate 60s linear infinite;
}

.headshot-container .viz-ring-2 {
    inset: -40px;
    border-color: var(--accent-muted);
    animation: rotate 45s linear infinite reverse;
}

.headshot-container .viz-ring-3 {
    inset: -60px;
    border-style: dashed;
    border-color: var(--border-subtle);
    animation: rotate 30s linear infinite;
}

.headshot-container .viz-ring-1::before,
.headshot-container .viz-ring-2::before,
.headshot-container .viz-ring-3::before {
    content: '';
    position: absolute;
    background: var(--accent);
    border-radius: 50%;
    top: -4px;
    left: 50%;
    margin-left: -4px;
}

.headshot-container .viz-ring-1::before {
    width: 8px;
    height: 8px;
}

.headshot-container .viz-ring-2::before {
    background: var(--text-muted);
    width: 6px;
    height: 6px;
    top: -3px;
    margin-left: -3px;
}

.headshot-container .viz-ring-3::before {
    background: var(--border);
    width: 4px;
    height: 4px;
    top: -2px;
    margin-left: -2px;
}

.headshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 50%;
    border: none;
    box-shadow:
        /* Inner rings */
        0 0 0 1px var(--border),
        0 0 0 2px var(--bg),
        0 0 0 3px var(--border-subtle),
        /* Accent ring */
        0 0 0 8px var(--bg),
        0 0 0 9px var(--accent-muted),
        0 0 0 10px var(--bg),
        /* Outer ring */
        0 0 0 15px var(--bg),
        0 0 0 16px var(--border-subtle),
        /* Glow and shadow */
        0 0 40px rgba(212, 168, 83, 0.15),
        0 20px 60px rgba(0, 0, 0, 0.4);
    transition: all 0.5s var(--ease-out);
    position: relative;
    z-index: 1;
}

.headshot:hover {
    box-shadow:
        /* Inner rings */
        0 0 0 1px var(--accent-muted),
        0 0 0 2px var(--bg),
        0 0 0 3px var(--accent-muted),
        /* Accent ring */
        0 0 0 8px var(--bg),
        0 0 0 9px var(--accent),
        0 0 0 10px var(--bg),
        /* Outer ring */
        0 0 0 15px var(--bg),
        0 0 0 16px var(--accent-muted),
        /* Glow and shadow */
        0 0 60px rgba(212, 168, 83, 0.3),
        0 20px 70px rgba(0, 0, 0, 0.5);
    transform: scale(1.02);
}

.data-viz {
    position: relative;
    width: 320px;
    height: 320px;
}

.viz-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--border);
}

.viz-ring-1 {
    inset: 0;
    animation: rotate 60s linear infinite;
}

.viz-ring-2 {
    inset: 40px;
    border-color: var(--border-subtle);
    animation: rotate 45s linear infinite reverse;
}

.viz-ring-3 {
    inset: 80px;
    border-style: dashed;
    border-color: var(--border-subtle);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

.viz-ring-1::before,
.viz-ring-2::before,
.viz-ring-3::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    top: -4px;
    left: 50%;
    margin-left: -4px;
}

.viz-ring-2::before {
    background: var(--text-muted);
    width: 6px;
    height: 6px;
    top: -3px;
    margin-left: -3px;
}

.viz-ring-3::before {
    background: var(--border);
    width: 4px;
    height: 4px;
    top: -2px;
    margin-left: -2px;
}

.viz-pulse {
    position: absolute;
    inset: 120px;
    background: radial-gradient(circle, var(--accent-subtle) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s var(--ease-in-out) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

/* Hero metrics bar */
.hero-metrics {
    max-width: 1200px;
    margin: var(--space-xl) auto 0;
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-subtle);
    animation: fadeUp 1s var(--ease-out) 0.4s both;
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.metric-label {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-subtle);
}

.metric-value {
    font-size: 0.9375rem;
    color: var(--text);
    letter-spacing: 0.01em;
}

.metric-divider {
    width: 1px;
    height: 32px;
    background: var(--border-subtle);
}

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

.section {
    padding: var(--space-2xl) var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.section-number {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-style: italic;
    color: var(--accent);
}

.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: -0.02em;
}

/* ============================================
   EXPERTISE
   ============================================ */

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.expertise-card {
    padding: var(--space-lg);
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: 2px;
    transition: all 0.4s var(--ease-out);
}

.expertise-card:hover {
    border-color: var(--border);
    transform: translateY(-4px);
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: 2px;
    margin-bottom: var(--space-md);
    color: var(--accent);
}

.expertise-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: var(--space-sm);
}

.expertise-card p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ============================================
   APPROACH
   ============================================ */

.approach-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.approach-text {
    max-width: 540px;
}

.approach-lead {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.01em;
    margin-bottom: var(--space-md);
    color: var(--text);
}

.approach-text p:not(.approach-lead) {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.approach-tools {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding-top: var(--space-sm);
}

.tool-tag {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.625rem 1rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
}

.tool-tag:hover {
    border-color: var(--accent-muted);
    color: var(--accent);
}

/* ============================================
   CONTACT
   ============================================ */

.contact-content {
    max-width: 600px;
}

.contact-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: var(--space-lg);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-email {
    font-size: 1.125rem;
    color: var(--accent);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease-out);
    width: fit-content;
}

.contact-email:hover {
    border-color: var(--accent);
}

.contact-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
    transition: color 0.3s var(--ease-out);
    width: fit-content;
}

.contact-linkedin:hover {
    color: var(--text);
}

.contact-linkedin svg {
    transition: transform 0.3s var(--ease-out);
}

.contact-linkedin:hover svg {
    transform: translate(2px, -2px);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    padding: var(--space-lg);
    border-top: 1px solid var(--border-subtle);
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: var(--text-subtle);
}

.footer-divider {
    color: var(--border);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

.section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 968px) {
    :root {
        --space-lg: 2rem;
        --space-xl: 4rem;
        --space-2xl: 6rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .hero-visual {
        order: -1;
    }

    .headshot-container {
        width: 240px;
        height: 240px;
    }

    .headshot-container .viz-ring-1 {
        inset: -15px;
    }

    .headshot-container .viz-ring-2 {
        inset: -30px;
    }

    .headshot-container .viz-ring-3 {
        inset: -45px;
    }

    .data-viz {
        width: 240px;
        height: 240px;
    }

    .viz-ring-2 { inset: 30px; }
    .viz-ring-3 { inset: 60px; }
    .viz-pulse { inset: 90px; }

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

    .approach-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

@media (max-width: 640px) {
    :root {
        --space-lg: 1.5rem;
        --space-xl: 3rem;
        --space-2xl: 4rem;
    }

    .header {
        padding: var(--space-sm) var(--space-md);
    }

    .nav-links {
        gap: var(--space-md);
    }

    .nav-links a {
        font-size: 0.8125rem;
    }

    .hero {
        padding: var(--space-2xl) var(--space-md) var(--space-xl);
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-ctas {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .hero-metrics {
        flex-wrap: wrap;
        gap: var(--space-md);
    }

    .metric-divider {
        display: none;
    }

    .section {
        padding: var(--space-xl) var(--space-md);
    }

    .section-title {
        font-size: 1.5rem;
    }

    .approach-lead,
    .contact-text {
        font-size: 1.25rem;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

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

    html {
        scroll-behavior: auto;
    }
}
