/* sections/hero.css — Hero section: home page and blog index. */

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-h) + 60px) 0 90px;
    overflow: hidden;
    background:
        radial-gradient(900px 500px at 85% 20%, rgba(230, 237, 243, 0.04), transparent 60%),
        radial-gradient(700px 400px at 0% 100%, rgba(154, 166, 178, 0.06), transparent 60%),
        var(--bg);
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    align-items: center;
    gap: 56px;
}

.hero-content > *,
.about-content > *,
.timeline-item > *,
.contact-container > *,
.feature-grid > * {
    min-width: 0;
}

.hero-text {
    max-width: 580px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: var(--fs-sm);
    color: var(--text-muted);
    padding: 7px 14px;
    border: 1px solid var(--border);
    background: rgba(18, 23, 31, 0.7);
    border-radius: 999px;
    margin-bottom: 26px;
}

.hero-text h1 {
    font-size: clamp(2.8rem, 6.5vw, 4.6rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
    margin-bottom: 18px;
}

/* Avatar + name row */
.hero-identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

/* hero text column is centred under the avatar */
.hero-text {
    text-align: center;
}

.hero-text .hero-buttons,
.hero-text .hero-meta {
    justify-content: center;
}

.hero-identity h1 {
    margin-bottom: 0;
    font-size: clamp(2.6rem, 4.8vw, 4.2rem);
    white-space: nowrap;
}

/* two-column hero is narrow between 1025-1240px: shorten the status pill */
@media (min-width: 1025px) and (max-width: 1240px) {
    .hero-eyebrow .hide-sm {
        display: none;
    }
}

.hero-avatar {
    position: relative;
    flex-shrink: 0;
    width: 152px;
    height: 152px;
    padding: 4px;
    border-radius: 50%;
    isolation: isolate;
}

/* gradient ring behind the photo */
.hero-avatar::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 50%;
    background: conic-gradient(from 210deg, var(--accent), transparent 28%, transparent 50%, var(--accent-2) 72%, var(--accent));
}

/* soft glow */
.hero-avatar::after {
    content: '';
    position: absolute;
    inset: -10px;
    z-index: -2;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 237, 243, 0.07), transparent 70%);
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 38%;
    border: 4px solid var(--bg);
    transition: transform 0.4s var(--ease);
}

.hero-avatar:hover img {
    transform: scale(1.05);
}

.avatar-status {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--status);
    border: 3px solid var(--bg);
    animation: ping 2s ease-out infinite;
}

.hero-text h2 {
    font-size: clamp(1.1rem, 2.4vw, 1.45rem);
    font-weight: 500;
    color: var(--text-muted);
}

.hero-text p {
    color: var(--text-muted);
}

.highlight {
    color: var(--accent);
}

.hero-role {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text) !important;
    margin-bottom: 22px;
    min-height: 1.8em;
}

.hero-role .prompt {
    color: var(--accent);
    margin-right: 6px;
}

.caret {
    display: inline-block;
    width: 0.55em;
    height: 1.15em;
    margin-left: 3px;
    vertical-align: text-bottom;
    background: var(--accent);
    animation: blink 1s steps(1) infinite;
}

.hero-lead {
    font-size: var(--fs-lg);
    line-height: 1.75;
    margin-bottom: 34px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-meta {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 34px;
    font-size: var(--fs-sm);
    color: var(--text-dim);
}

.hero-meta i {
    color: var(--accent);
    margin-right: 6px;
}

.hero-meta a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.hero-meta a:hover {
    color: var(--text);
}

.scroll-hint {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-size: var(--fs-xs);
    color: var(--text-dim);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
