/* ══ HEADER: chartreuse yellow-green ══ */

.header {
    background: var(--yg);
    width: 100%;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
    padding-bottom: 32px;
}

/* Fill the diagonal gap left by clip-path */
.header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -72px;
    height: 72px;
    background: var(--yg);
    clip-path: polygon(0 0, 100% 14%, 100% 100%, 0 100%);
    z-index: -1;
}

.ascii-bg, .ascii-canvas, .header-corner { display: none; }

/* ── Top tag strip ── */
.hero-top-bar {
    display: flex;
    align-items: center;
    padding: 10px 6%;
    border-bottom: 1px solid rgba(0,0,0,0.12);
}

.hero-tag {
    font-family: var(--f-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(0,0,0,0.4);
    padding-right: 16px;
    margin-right: 16px;
    border-right: 1px solid rgba(0,0,0,0.15);
}

.hero-tag:last-child {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
}

/* ── Hero body: photo left | name right ── */
.hero-body {
    display: grid;
    grid-template-columns: 260px 1fr;
    align-items: stretch;
}

/* LEFT: photo column */
.hero-left {
    background: rgba(0,0,0,0.06);
    border-right: 2px solid rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 24px 16px 24px;
    gap: 12px;
}

.profile-image {
    width: 108px;
    height: 130px;
    overflow: hidden;
    border: 2px solid var(--black);
    flex-shrink: 0;
    background: var(--black);
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    pointer-events: none;
}

.hero-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.hero-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 20px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00e676;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.4);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

.status-text {
    font-family: var(--f-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--black);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.location {
    font-family: var(--f-mono);
    font-size: 0.7rem;
    color: rgba(0,0,0,0.72);
    letter-spacing: 0.05em;
    text-align: center;
}

/* RIGHT: name + info */
.hero-right {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: end;
    gap: 0 40px;
    padding: 24px 5% 24px 32px;
}

.hero-name-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Terminal block: modern macOS style */
.hero-terminal {
    display: flex;
    flex-direction: column;
    border: 2px solid var(--black);
    background: rgba(0,0,0,0.06);
    align-self: stretch;
    justify-content: flex-start;
    min-width: 280px;
    overflow: hidden;
    box-shadow: 4px 4px 0 var(--black);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(0,0,0,0.1);
    border-bottom: 2px solid var(--black);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1.5px solid var(--black);
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
    font-family: var(--f-mono);
    font-size: 0.7rem;
    color: var(--black);
    margin-left: 12px;
    letter-spacing: 0.06em;
    font-weight: 600;
    opacity: 0.7;
}

.terminal-body {
    padding: 16px 18px;
    font-family: var(--f-mono);
    font-size: 0.8rem;
    line-height: 1.7;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.terminal-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.prompt {
    color: var(--black);
    font-weight: 700;
    opacity: 0.6;
}

.command {
    color: var(--black);
    font-weight: 600;
}

.cursor {
    display: inline-block;
    width: 9px;
    height: 1.2em;
    background: var(--black);
    animation: blink 1s ease-in-out infinite;
    vertical-align: middle;
    border-radius: 1px;
    margin-left: 1px;
    flex: 0 0 auto;
    line-height: 1;
}

@keyframes blink {
    0%, 45% { opacity: 1; }
    50%, 95% { opacity: 0; }
    100% { opacity: 1; }
}

.terminal-output {
    color: var(--black);
    margin-top: 8px;
    min-height: 60px;
    padding-left: 1.5em;
}

.terminal-output .line {
    display: block;
    opacity: 0;
    animation: fadeIn 0.4s ease forwards;
    font-weight: 500;
}

@keyframes fadeIn {
    to { opacity: 0.85; }
}

.name {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.name-line {
    font-family: var(--f-cond);
    font-weight: 900;
    font-size: clamp(3.2rem, 9vw, 6.5rem);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--black);
    display: block;
    line-height: 0.92;
}

.name-line--accent {
    -webkit-text-stroke: 2px var(--black);
    color: transparent;
}

.title {
    font-family: var(--f-mono);
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(0,0,0,0.5);
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.title.typing {
    white-space: nowrap;
}

.title.typing::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 0.85em;
    margin-left: 2px;
    background: var(--black);
    vertical-align: middle;
    animation: caret-blink 1s step-end infinite;
}

@keyframes caret-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .title.typing::after { animation: none; }
}

.hero-inner { position: relative; z-index: 1; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .name-line { font-size: clamp(2.8rem, 8vw, 5rem); }
}

@media (max-width: 900px) {
    .hero-right { gap: 0 24px; }
    .hero-info-block { padding-left: 20px; gap: 14px; }
    .hero-stat-num { font-size: clamp(1.3rem, 2.5vw, 2rem); }
}

@media (max-width: 768px) {
    .header {
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
        padding-bottom: 40px;
    }

    .header::after {
        bottom: -40px;
        height: 40px;
        clip-path: polygon(0 0, 100% 10%, 100% 100%, 0 100%);
    }

    .hero-body {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 18px 5% 0;
    }

    .hero-left {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        flex-wrap: wrap;
        gap: 14px;
        padding: 2px 0 18px;
        background: transparent;
        border-right: none;
        border-bottom: 2px solid rgba(0,0,0,0.14);
    }

    .profile-image { width: 82px; height: 98px; }

    .hero-meta {
        align-items: flex-start;
        gap: 6px;
        width: auto;
        flex: 1;
    }

    .location {
        text-align: left;
        font-size: 0.74rem;
        color: var(--black);
        background: rgba(255,255,255,0.24);
        border: 1px solid rgba(0,0,0,0.14);
        padding: 8px 12px;
        border-radius: 999px;
        box-shadow: 3px 3px 0 rgba(0,0,0,0.08);
        display: inline-flex;
        align-items: center;
        max-width: 100%;
    }

    .hero-right {
        display: grid;
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        padding: 18px 0 0;
        gap: 18px;
        align-items: end;
    }

    .hero-terminal {
        width: 100%;
        min-width: 0;
    }

    .name-line { font-size: clamp(2.4rem, 10vw, 4.5rem); }

    .title {
        font-size: 0.8rem;
        letter-spacing: 0.06em;
    }
}

@media (max-width: 540px) {
    .hero-body {
        padding: 16px 4% 0;
    }

    .hero-left {
        gap: 10px;
        padding-bottom: 14px;
    }

    .hero-meta {
        align-items: flex-start;
        gap: 2px;
        min-width: 0;
    }

    .location {
        text-align: left;
        font-size: 0.72rem;
        letter-spacing: 0.02em;
        padding: 7px 10px;
        line-height: 1.25;
        box-shadow: 2px 2px 0 rgba(0,0,0,0.08);
    }

    .profile-image {
        width: 72px;
        height: 86px;
        flex-shrink: 0;
    }

    .hero-right {
        padding-top: 14px;
        display: grid;
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
        align-items: end;
        gap: 12px;
    }

    .hero-terminal {
        box-shadow: 3px 3px 0 var(--black);
        margin-top: 0;
    }

    .terminal-header {
        padding: 8px 12px;
        border-bottom: 2px solid var(--black);
        gap: 7px;
    }

    .terminal-dot {
        width: 10px;
        height: 10px;
    }

    .terminal-title {
        font-size: 0.65rem;
        margin-left: 8px;
    }

    .terminal-body {
        padding: 12px 12px 14px;
        font-size: 0.72rem;
        line-height: 1.55;
    }

    .terminal-output {
        padding-left: 0.95em;
        min-height: 52px;
        margin-top: 6px;
    }

    .terminal-line {
        gap: 8px;
    }

    .command {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .name-line {
        font-size: clamp(2.2rem, 12vw, 3.6rem);
        line-height: 0.9;
    }

    .name { gap: 0.1em; }

    .title {
        font-size: 0.72rem;
        letter-spacing: 0.06em;
        min-width: 0 !important;
    }

    .header {
        clip-path: polygon(0 0, 100% 0, 100% 93%, 0 100%);
        padding-bottom: 36px;
    }

    .header::after {
        bottom: -36px;
        height: 36px;
        clip-path: polygon(0 0, 100% 7%, 100% 100%, 0 100%);
    }
}

@media (max-width: 420px) {
    .hero-right {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .hero-terminal {
        margin-top: 4px;
    }
}
