body {
    background: var(--bg-dark);
    color: #e0e0e0;
}

/* ---- Hero / Photo Area ---- */
.profile-hero {
    position: relative;
    width: 100%;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.profile-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.profile-hero-bg img,
.profile-hero-bg svg.logo-placeholder-inline {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: brightness(0.7);
}

/* Gradient overlays on the photo */
.profile-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, var(--bg-dark) 0%, rgba(10, 15, 10, 0.4) 40%, transparent 70%),
        linear-gradient(90deg, rgba(10, 15, 10, 0.6) 0%, transparent 50%);
    pointer-events: none;
}

.profile-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 48px 64px;
}

.profile-hero-content .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin-bottom: 24px;
    transition: color 0.2s ease;
}

.profile-hero-content .back-link:hover {
    color: var(--neon);
}

.profile-hero-content .back-link svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.profile-role {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--neon);
    padding: 0.25rem 1rem;
    background: var(--neon-subtle);
    border-left: 3px solid var(--neon);
    margin-bottom: 12px;
}

.profile-name {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    font-family: var(--font-heading);
    color: #fff;
    line-height: 1.1;
    margin-bottom: 16px;
}

.profile-tagline {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 50ch;
}

/* ---- Contact Section ---- */
.contact-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 48px 120px;
}

.contact-section .section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--neon);
    margin-bottom: 12px;
    padding: 0.25rem 1rem;
    background: var(--neon-subtle);
    border-left: 3px solid var(--neon);
}

.contact-section h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: #fff;
    margin-bottom: 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0;
    clip-path: var(--clip-angular-sm);
    transition: all 0.35s var(--ease-out);
    text-decoration: none;
    color: inherit;
    position: relative;
}

.contact-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon);
    transition: width 0.4s var(--ease-out);
}

.contact-item:hover {
    background: rgba(68, 214, 165, 0.06);
    border-color: rgba(68, 214, 165, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    color: inherit;
}

.contact-item:hover::before {
    width: 100%;
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--neon-subtle);
    clip-path: var(--clip-angular-sm);
    transition: background 0.3s ease;
}

.contact-item:hover .contact-icon {
    background: rgba(68, 214, 165, 0.2);
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--neon);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-icon.filled svg {
    fill: var(--neon);
    stroke: none;
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-value {
    font-size: 1.05rem;
    color: #e0e0e0;
    font-weight: 400;
}

.contact-item:hover .contact-value {
    color: var(--neon);
}

/* ---- Profile Text Section ---- */
.profile-text-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 48px 120px;
}

.profile-text-section .section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--neon);
    margin-bottom: 12px;
    padding: 0.25rem 1rem;
    background: var(--neon-subtle);
    border-left: 3px solid var(--neon);
}

.profile-text-section h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: #fff;
    margin-bottom: 40px;
}

.profile-content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #d1d5db;
    max-width: 800px;
}

.profile-content-text p,
.profile-content-text ul,
.profile-content-text ol {
    margin-bottom: 24px;
}

.profile-content-text ul,
.profile-content-text ol {
    padding-left: 24px;
}

.profile-content-text li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .profile-hero {
        min-height: 55vh;
    }

    .profile-hero-content {
        padding: 0 24px 48px;
    }

    .contact-section {
        padding: 60px 24px 80px;
    }

    .profile-text-section {
        padding: 60px 24px 80px;
    }

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

    .profile-name {
        font-size: 2rem;
    }
}

/* ---- AI Agent Specifics ---- */
.profile-hero.is-ai .profile-hero-bg {
    background: var(--bg-dark);
}

.profile-hero.is-ai .profile-hero-bg img,
.profile-hero.is-ai .profile-hero-bg svg.logo-placeholder-inline {
    object-fit: contain;
    object-position: center;
    opacity: 0.15;
    padding: 4rem;
}
