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

:root {
    --bg: #0f0f0f;
    --bg-alt: #141414;
    --accent: #ffe600;
    --text: #f0f0f0;
    --muted: #777777;
    --border: #222222;
    --border-strong: #3a3a3a;
    --max-width: 800px;
    --mono: 'Courier New', 'Menlo', monospace;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── Nav ── */
.navbar {
    position: sticky;
    top: 0;
    background: var(--bg);
    border-bottom: 2px solid var(--text);
    z-index: 100;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3.5rem;
}

.logo {
    font-weight: 800;
    font-size: 0.875rem;
    color: var(--accent);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: var(--mono);
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.75rem;
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--mono);
    transition: color 0.1s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

/* ── Sections ── */
.section {
    padding: 5rem 1.5rem;
    border-bottom: 1px solid var(--border-strong);
}

.section-alt {
    background: var(--bg-alt);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
    font-family: var(--mono);
    padding-bottom: 0.875rem;
    border-bottom: 1px solid var(--border-strong);
    margin-bottom: 2.5rem;
}

/* ── Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

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

/* ── Hero ── */
.hero {
    padding: 5rem 1.5rem;
    border-bottom: 2px solid var(--text);
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 3rem;
}

.hero-content {
    flex: 1;
    min-width: 0;
}

.hero-eyebrow {
    font-size: 0.6875rem;
    color: var(--muted);
    margin-bottom: 1.25rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: var(--mono);
}

h1 {
    font-size: 3.75rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.0;
    margin-bottom: 0.875rem;
    color: var(--text);
}

.hero-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: var(--mono);
}

.hero-tagline {
    font-size: 0.9375rem;
    color: var(--muted);
    max-width: 440px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1.5px solid var(--border-strong);
    background: transparent;
    color: var(--muted);
    font-size: 1rem;
    text-decoration: none;
    transition: border-color 0.1s, color 0.1s, background 0.1s;
}

.icon-link:hover {
    border-color: var(--accent);
    color: var(--bg);
    background: var(--accent);
}

.hero-image {
    flex-shrink: 0;
    padding-top: 0.25rem;
}

.profile-photo {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border: 3px solid var(--accent);
    border-radius: 0;
    display: block;
    filter: grayscale(20%);
}

/* ── About ── */
.about-text {
    color: var(--muted);
    font-size: 0.9375rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-text:last-child {
    margin-bottom: 0;
}

/* ── Timeline ── */
.timeline {
    display: flex;
    flex-direction: column;
}

.timeline-item {
    border-left: 3px solid var(--border-strong);
    padding-left: 1.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    transition: border-left-color 0.1s;
}

.timeline-item:hover {
    border-left-color: var(--accent);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 6px;
    width: 5px;
    height: 5px;
    background: var(--border-strong);
    transition: background 0.1s;
}

.timeline-item:hover::before {
    background: var(--accent);
}

.timeline-item.current::before {
    background: var(--accent);
    width: 7px;
    height: 7px;
    left: -5px;
    top: 5px;
    animation: blink 1.6s ease-in-out infinite;
}

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

.date {
    display: block;
    font-size: 0.625rem;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 0.375rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: var(--mono);
}

.role {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.125rem;
    letter-spacing: -0.01em;
}

.company {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.timeline-item ul {
    padding-left: 1rem;
    margin-bottom: 0.75rem;
}

.timeline-item li {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 0.3rem;
    line-height: 1.6;
}

/* ── Tags ── */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.tag {
    font-size: 0.5625rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 0;
    background: transparent;
    color: var(--border-strong);
    border: 1px solid var(--border-strong);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: var(--mono);
    transition: border-color 0.1s, color 0.1s;
}

.timeline-item:hover .tag {
    border-color: var(--accent);
    color: var(--accent);
}

/* ── Certifications ── */
.cert-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cert-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border-strong);
    border-top: none;
    border-radius: 0;
    background: var(--bg);
    transition: background 0.1s;
}

.cert-card:first-child {
    border-top: 1px solid var(--border-strong);
}

.cert-card:hover {
    background: var(--bg-alt);
}

.cert-icon {
    font-size: 1.375rem;
    color: var(--accent);
    flex-shrink: 0;
    width: 2rem;
    text-align: center;
}

.cert-body h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.125rem;
    color: var(--text);
}

.cert-issuer {
    font-size: 0.75rem;
    color: var(--muted);
    font-family: var(--mono);
}

/* ── Contact ── */
.contact-intro {
    font-size: 0.9375rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9375rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--mono);
    padding: 1.125rem 0;
    border-bottom: 1px solid var(--border-strong);
    transition: color 0.1s;
    letter-spacing: 0.02em;
}

.contact-link:first-child {
    border-top: 1px solid var(--border-strong);
}

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

.contact-link i {
    font-size: 1rem;
    color: var(--accent);
    width: 1rem;
    text-align: center;
}

/* ── Footer ── */
.footer {
    border-top: 2px solid var(--text);
    padding: 1.25rem 1.5rem;
}

.footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer p {
    font-size: 0.625rem;
    color: var(--muted);
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    h1 { font-size: 2.5rem; }

    .hero-container {
        flex-direction: column;
        gap: 2rem;
    }

    .profile-photo {
        width: 100px;
        height: 100px;
    }

    .nav-menu { gap: 1.25rem; }

    .section { padding: 3rem 1.25rem; }
    .hero { padding: 3rem 1.25rem; }
}
