:root {
    --bg: #0c1017;
    --bg-2: #12091d;
    --surface: rgba(20, 14, 31, 0.74);
    --surface-strong: rgba(29, 18, 45, 0.94);
    --text: #f2f5fa;
    --muted: #aeb8c9;
    --line: rgba(222, 200, 255, 0.14);
    --purple: #b46cff;
    --purple-strong: #7c3cff;
    --green: #b4f272;
    --cyan: #66f0ff;
    --pink: #ff4fd8;
    --danger: #ff5f7a;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
    --radius-lg: 22px;
    --radius-md: 14px;
    --max-width: min(1160px, calc(100% - 2rem));
    --header-height: 76px;
    --transition: 220ms ease;
    --pointer-x: 50%;
    --pointer-y: 20%;
    --scroll-progress: 0%;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(ellipse at 85% 5%, rgba(110, 83, 174, 0.12), transparent 36rem),
        #0c1017;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(156, 255, 46, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(180, 108, 255, 0.08) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(180deg, black, transparent 88%);
}

.noise-layer {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.035;
    background-image:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 3px);
    mix-blend-mode: overlay;
}

.scroll-progress {
    position: fixed;
    inset: 0 0 auto;
    z-index: 40;
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
}

.scroll-progress span {
    display: block;
    width: var(--scroll-progress);
    height: 100%;
    background: linear-gradient(90deg, var(--green), var(--purple), var(--pink));
    box-shadow: 0 0 18px rgba(180, 108, 255, 0.72);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: 0;
    color: inherit;
    font: inherit;
    background: transparent;
    cursor: pointer;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

p {
    margin: 0;
    color: var(--muted);
    line-height: 1.68;
}

strong,
.brand,
.btn,
.eyebrow,
.terminal-panel,
.project-name {
    font-family: "IBM Plex Mono", monospace;
}

h1,
h2,
h3 {
    margin: 0;
    letter-spacing: -0.035em;
    font-weight: 800;
}

.section {
    padding: 6.5rem 0;
}

.section-shell {
    width: var(--max-width);
    margin: 0 auto;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 2rem;
}

.section-heading.compact {
    max-width: 700px;
}

.section-heading h2 {
    margin-top: 0.65rem;
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.12;
}

.section-heading p:not(.eyebrow) {
    max-width: 650px;
    margin-top: 1rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 2px;
    background: var(--green);
    box-shadow: 0 0 18px rgba(156, 255, 46, 0.72);
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 30;
    padding: 0.85rem 0;
}

.header-shell {
    width: var(--max-width);
    min-height: var(--header-height);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(222, 200, 255, 0.14);
    border-radius: 18px;
    background: rgba(9, 6, 17, 0.72);
    backdrop-filter: blur(18px);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.24);
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.site-header.is-scrolled .header-shell {
    border-color: rgba(156, 255, 46, 0.22);
    background: rgba(9, 6, 17, 0.9);
    transform: translateY(-3px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.94rem;
    font-weight: 700;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(156, 255, 46, 0.45);
    border-radius: 10px;
    color: var(--green);
    background: rgba(156, 255, 46, 0.08);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-nav a {
    color: var(--muted);
    font-size: 0.92rem;
    transition: color var(--transition);
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--green);
}

.language-switcher {
    display: inline-flex;
    gap: 0.2rem;
    padding: 0.2rem;
    border: 1px solid rgba(222, 200, 255, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}

.language-option {
    min-width: 38px;
    min-height: 32px;
    border-radius: 9px;
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.78rem;
    font-weight: 700;
}

.language-option.is-active {
    color: #12091d;
    background: var(--green);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--text);
    transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.hero {
    position: relative;
    isolation: isolate;
    min-height: min(850px, 100svh);
    padding-top: calc(var(--header-height) + 5rem);
    display: grid;
    align-items: center;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: 0;
    height: 38%;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(8, 6, 15, 0.82));
}

.hero.is-3d-fallback::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        conic-gradient(from 145deg at 78% 34%, rgba(156, 255, 46, 0.22), transparent 28%, rgba(180, 108, 255, 0.34), transparent 72%),
        radial-gradient(circle at 82% 32%, rgba(255, 79, 216, 0.18), transparent 24rem);
    opacity: 0.85;
    transform: skewY(-5deg) scale(1.08);
}

.cyber-scene {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.82;
}

.hero-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.75fr);
    gap: 4rem;
    align-items: center;
}

.hero-copy h1 {
    margin-top: 0.8rem;
    max-width: 760px;
    font-size: clamp(3.5rem, 5.8vw, 5.5rem);
    line-height: 1.03;
}

.hero-lead {
    max-width: 680px;
    margin-top: 1.25rem;
    font-size: 1.16rem;
}

.hero-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.7rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0.85rem 1.05rem;
    border-radius: 12px;
    border: 1px solid var(--line);
    font-size: 0.88rem;
    font-weight: 700;
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
    border-color: rgba(156, 255, 46, 0.45);
}

.btn-primary {
    color: #11081b;
    border-color: transparent;
    background: linear-gradient(135deg, var(--green), #d4ff74);
}

.btn-secondary {
    background: rgba(180, 108, 255, 0.12);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
}

.hero-status {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 2rem;
}

.hero-status div,
.profile-card,
.timeline-item,
.knowledge-card,
.badge-card,
.cpts-panel,
.terminal-panel,
.portrait-panel {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.hero-status div {
    min-height: 104px;
    padding: 1rem;
    border-radius: var(--radius-md);
}

.hero-status span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
}

.hero-status strong {
    display: block;
    margin-top: 0.55rem;
    color: var(--text);
    font-size: 1rem;
}

.hero-visual {
    position: relative;
}

.portrait-panel {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 28px;
}

.portrait-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: saturate(0.78) contrast(1.08);
}

.portrait-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 36%, rgba(12, 6, 22, 0.88)),
        linear-gradient(90deg, rgba(156, 255, 46, 0.14), transparent 38%, rgba(180, 108, 255, 0.2));
    mix-blend-mode: screen;
}

.terminal-panel {
    position: absolute;
    right: -1rem;
    bottom: -1.4rem;
    width: min(340px, 86%);
    overflow: hidden;
    border-radius: 18px;
    background: rgba(7, 5, 12, 0.88);
}

.terminal-top {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.8rem 0.9rem;
    border-bottom: 1px solid var(--line);
}

.terminal-top span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--danger);
}

.terminal-top span:nth-child(2) {
    background: var(--green);
}

.terminal-top span:nth-child(3) {
    background: var(--purple);
}

.terminal-top strong {
    margin-left: auto;
    color: var(--muted);
    font-size: 0.75rem;
}

.terminal-body {
    padding: 1rem;
}

.terminal-body p {
    color: #e9dcff;
    font-size: 0.9rem;
    line-height: 1.95;
}

.terminal-body span {
    color: var(--green);
}

.profile-grid,
.knowledge-grid,
.badge-grid,
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.profile-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-card,
.knowledge-card,
.badge-card,
.project-card {
    position: relative;
    min-height: 100%;
    padding: 1.2rem;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.profile-card span,
.project-pill,
.project-stat,
.badge-kicker {
    color: var(--green);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.78rem;
    font-weight: 700;
}

.profile-card h3,
.knowledge-card h3,
.badge-card h3,
.project-card h3 {
    margin-top: 1rem;
    font-size: 1rem;
}

.profile-card p,
.knowledge-card p,
.badge-card p,
.project-card p {
    margin-top: 0.75rem;
    font-size: 0.94rem;
}

.timeline {
    display: grid;
    gap: 1rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 1.2rem;
    padding: 1.15rem;
    border-radius: var(--radius-lg);
}

.timeline-meta {
    display: grid;
    align-content: start;
    gap: 0.35rem;
}

.timeline-meta span {
    color: var(--green);
    font-family: "IBM Plex Mono", monospace;
}

.timeline-meta strong {
    color: var(--muted);
    font-size: 0.82rem;
}

.timeline-content h3 {
    font-size: 1.2rem;
}

.timeline-content p {
    margin-top: 0.75rem;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1rem;
}

.tag-row span,
.project-pills span,
.knowledge-filter {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.035);
    font-size: 0.82rem;
}

.projects-status {
    margin-bottom: 1rem;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.9rem;
}

.project-card {
    border: 1px solid var(--line);
    background: rgba(20, 14, 31, 0.66);
    box-shadow: var(--shadow);
}

.project-card.is-placeholder {
    opacity: 0.7;
}

.project-topline,
.project-pills,
.project-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

.project-topline {
    justify-content: space-between;
}

.project-name {
    word-break: break-word;
}

.project-links {
    margin-top: 1rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--green);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.86rem;
}

.knowledge-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.knowledge-filter {
    font-family: "IBM Plex Mono", monospace;
    font-weight: 700;
    transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.knowledge-filter.is-active {
    color: #12091d;
    border-color: transparent;
    background: var(--green);
}

.knowledge-card {
    display: flex;
    flex-direction: column;
}

.knowledge-card i,
.badge-card i {
    color: var(--purple);
    font-size: 1.55rem;
}

.knowledge-card[hidden] {
    display: none;
}

.badges-shell {
    display: grid;
    gap: 1rem;
}

.cpts-panel {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 2.5rem;
    padding: 2rem;
    align-items: center;
    border-radius: var(--radius-lg);
}

.cpts-badge {
    display: grid;
    min-height: 280px;
    padding: 1rem;
    place-items: center;
}

.cpts-badge img {
    width: min(250px, 94%);
    height: auto;
}

.cpts-content h3 {
    margin-top: 0.45rem;
    font-size: 2.1rem;
}

.cpts-content p {
    margin-top: 0.9rem;
}

.contact-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2rem;
    padding: 2.2rem;
    border: 1px solid rgba(156, 255, 46, 0.18);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(156, 255, 46, 0.08), rgba(180, 108, 255, 0.12)),
        rgba(20, 14, 31, 0.76);
    box-shadow: var(--shadow);
}

.contact-copy h2 {
    margin-top: 0.65rem;
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.12;
}

.contact-actions {
    margin-top: 0;
    justify-content: flex-end;
}

.site-footer {
    padding: 2rem 0 2.5rem;
}

.footer-shell {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
}

.footer-shell a {
    color: var(--green);
}

.reveal-enabled [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 650ms ease, transform 650ms ease;
}

.reveal-enabled [data-reveal="scale"] {
    transform: scale(0.96);
}

.reveal-enabled [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 1020px) {
    .section {
        padding: 5.4rem 0;
    }

    .section-heading h2,
    .contact-copy h2 {
        font-size: 3rem;
    }

    .menu-toggle {
        display: block;
        order: 3;
    }

    .brand {
        order: 1;
    }

    .language-switcher {
        order: 2;
        margin-left: auto;
    }

    .site-nav {
        position: absolute;
        inset: calc(100% + 0.7rem) 0 auto;
        display: grid;
        gap: 0;
        padding: 0.55rem;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: rgba(9, 6, 17, 0.94);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
    }

    .site-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .site-nav a {
        padding: 0.85rem;
    }

    .hero-shell,
    .contact-shell {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-copy h1 {
        max-width: 680px;
        font-size: 4.5rem;
    }

    .contact-actions {
        justify-content: flex-start;
    }

    .profile-grid,
    .knowledge-grid,
    .badge-grid,
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    :root {
        --header-height: 64px;
    }

    .site-header {
        padding: 0.65rem 0;
    }

    .header-shell {
        padding: 0.6rem;
        border-radius: 16px;
    }

    .brand span:last-child {
        max-width: 130px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .language-option {
        min-width: 34px;
        min-height: 30px;
        font-size: 0.72rem;
    }

    .hero {
        min-height: auto;
        padding-top: calc(var(--header-height) + 4rem);
    }

    .hero-status,
    .profile-grid,
    .knowledge-grid,
    .badge-grid,
    .projects-grid,
    .timeline-item,
    .cpts-panel {
        grid-template-columns: 1fr;
    }

    .terminal-panel {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        margin-top: 1rem;
    }

    .portrait-panel {
        border-radius: 20px;
    }

    .section {
        padding: 4rem 0;
    }

    .section-heading h2,
    .contact-copy h2 {
        font-size: 2.3rem;
    }

    .hero-copy h1 {
        font-size: 3.4rem;
    }

    .hero-lead {
        font-size: 1rem;
    }

    .cpts-content h3 {
        font-size: 1.55rem;
    }

    .section-heading h2,
    .contact-copy h2 {
        line-height: 1.04;
    }

    .footer-shell {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Editorial layout, clear certification status, and keyboard navigation. */
section[id], main[id] { scroll-margin-top: 125px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 60; padding: 1rem; border-radius: 8px; color: var(--bg); background: var(--green); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.header-shell { position: relative; background: rgba(12, 16, 23, 0.92); }
.site-header.is-scrolled .header-shell { background: rgba(12, 16, 23, 0.96); }
.site-nav { gap: 0.8rem; }
.site-nav a { font-size: 0.78rem; }
.hero-grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(174, 184, 201, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(174, 184, 201, .045) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(180deg, black, transparent); }
.hero::after { background: linear-gradient(180deg, transparent, var(--bg)); }
.hero-copy h1 { max-width: 700px; }
.name-accent { display: block; color: var(--green); }
.hero-lead { max-width: 560px; font-size: 1.05rem; line-height: 1.85; }
.hero-status { border-top: 1px solid var(--line); padding-top: 1.25rem; gap: 1.2rem; }
.hero-status div { min-height: auto; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none; backdrop-filter: none; }
.hero-status strong { font-family: "Manrope", sans-serif; font-size: .9rem; }
.hero-status .cert-status { color: var(--green); }
.portrait-panel { border-radius: 24px 24px 80px 24px; }
.portrait-panel img { filter: saturate(.75); }
.portrait-overlay { mix-blend-mode: normal; background: linear-gradient(180deg, transparent 65%, rgba(12,16,23,.5)); }
.terminal-panel { box-shadow: 0 18px 48px #0007; }
.section { border-bottom: 1px solid rgba(174,184,201,.06); }
.section-heading h2 { text-wrap: balance; }
.badges-section { background: linear-gradient(115deg, rgba(180,242,114,.025), rgba(180,108,255,.04)); }
.cpts-panel { border-color: rgba(180,242,114,.26); background: linear-gradient(125deg, #171e2a, #10161f); }
.cpts-content h3 { max-width: 600px; font-size: clamp(1.6rem, 2.7vw, 2.3rem); line-height: 1.2; }
.badge-kicker { color: var(--muted); letter-spacing: .14em; text-transform: uppercase; font-size: .75rem; }
.certification-status { display: inline-flex; gap: .6rem; align-items: center; margin-top: 1.4rem; padding: .65rem .9rem; border: 1px solid #b4f27240; border-radius: 8px; background: #b4f2720d; color: var(--green); font-size: .9rem; font-weight: 700; }
.certification-status i { font-size: 1.3rem; }
.certification-topics { margin-top: 1.25rem; }
.profile-card, .knowledge-card, .badge-card, .project-card { box-shadow: none; }
.profile-card:hover, .knowledge-card:hover, .project-card:hover { border-color: #b4f27255; }
.knowledge-card { min-height: 180px; }
.project-name { overflow-wrap: anywhere; }
.contact-shell { background: linear-gradient(120deg, #182126, #171725); }
.contact-copy h2 { line-height: 1.15; }
@media (min-width: 1021px) { .hero-shell { grid-template-columns: 1.15fr .85fr; gap: 4rem; } }
@media (min-width: 721px) and (max-width: 1020px) { .hero-shell { grid-template-columns: 1.1fr .9fr; gap: 2rem; } .hero-copy h1 { font-size: 3.5rem; } .hero-status { grid-template-columns: 1fr; gap: .85rem; } .hero-status strong { margin-top: .2rem; } .terminal-panel { right: 0; } }
@media (max-width: 720px) { .hero { padding-top: 8rem; } .hero-copy h1 { font-size: clamp(2.6rem, 11vw, 4rem); } .hero-shell { gap: 2.5rem; } .hero-status { grid-template-columns: repeat(2,minmax(0,1fr)); } .hero-status div:last-child { grid-column: 1 / -1; } .hero-visual { max-width: 420px; width: 100%; margin-inline: auto; } .cpts-panel { padding: 1.25rem; gap: 1.5rem; } .cpts-badge { min-height: 240px; } .cpts-badge img { width: 220px; } .contact-shell { padding: 1.5rem; } .header-shell { gap: .4rem; } .brand { gap: .4rem; font-size: .8rem; } .brand span:last-child { max-width: 105px; } .language-option { min-height: 40px; min-width: 32px; } }
@media (prefers-reduced-motion: reduce) { .reveal-enabled [data-reveal] { opacity: 1; transform: none; } }

.research-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.research-card { display: flex; flex-direction: column; align-items: flex-start; padding: 2rem; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, #171e29, #111720); }
.research-topline { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; width: 100%; gap: .8rem; }
.cve-id { font-family: "IBM Plex Mono", monospace; color: var(--green); font-size: .9rem; }
.severity { padding: .35rem .6rem; border-radius: 6px; font-size: .73rem; font-weight: 700; }
.severity-moderate { color: #f5cf8d; background: #f5cf8d12; border: 1px solid #f5cf8d33; }
.severity-low { color: #a7c6ff; background: #a7c6ff12; border: 1px solid #a7c6ff33; }
.research-product { margin-top: 2rem; color: #c7b5f1; font-size: .85rem; font-weight: 700; }
.research-card h3 { margin: .5rem 0 1rem; font-size: 1.7rem; line-height: 1.2; }
.research-card .tag-row { margin-top: 1.25rem; margin-bottom: 1.5rem; }
.research-credit { display: flex; gap: .5rem; align-items: center; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); width: 100%; font-size: .78rem; color: var(--muted); }
.research-credit i { color: var(--green); font-size: 1.1rem; }
.research-card .project-link { margin-top: 1rem; min-height: 40px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 720px) { .research-grid { grid-template-columns: 1fr; } .research-card { padding: 1.35rem; } }

@media (max-width: 380px) { .brand span:last-child { display: none; } .menu-toggle { flex-shrink: 0; } .language-switcher { flex-shrink: 0; } }

@media (max-width: 380px) { .section-heading h2, .contact-copy h2 { font-size: 1.9rem; overflow-wrap: anywhere; } }

/* CPTS release: original credentials, clearer hierarchy and responsive evidence. */
:root {
    --line: rgba(174, 184, 201, 0.16);
    --surface: #111923;
}
.noise-layer { opacity: .018; }
.section { padding-block: 6rem; }
.section-heading { margin-bottom: 2.6rem; }
.section-heading h2 { font-size: clamp(2rem, 3.7vw, 3.3rem); line-height: 1.12; letter-spacing: -.045em; }
.section-heading p:not(.eyebrow) { max-width: 720px; line-height: 1.85; }
.eyebrow { font-size: .7rem; letter-spacing: .12em; }
.eyebrow::before { width: 5px; height: 5px; border-radius: 50%; box-shadow: none; }
.header-shell { border-radius: 16px; box-shadow: 0 8px 36px #0002; }
.brand-mark { border-radius: 8px; }
.site-nav .nav-contact { color: var(--text); }
.hero { padding-top: 10rem; padding-bottom: 5.5rem; min-height: 800px; }
.hero-shell { gap: 4rem; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); }
.hero-copy h1 { margin-top: .85rem; font-size: clamp(3.2rem, 5.4vw, 5rem); letter-spacing: -.065em; line-height: 1.04; }
.hero-copy > .eyebrow { margin-top: 1.8rem; }
.achievement-pill { display: inline-flex; align-items: center; gap: .65rem; padding: .65rem .8rem; border: 1px solid #b4f27235; border-radius: 6px; background: #b4f27208; color: var(--green); font-family: "IBM Plex Mono", monospace; font-size: .69rem; letter-spacing: .01em; }
.achievement-pill > i { font-size: 1.1rem; transform: rotate(45deg); }
.status-dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--green); }
.hero-role { margin-top: 1.4rem; color: var(--text); font-size: 1.04rem; font-weight: 700; line-height: 1.6; }
.hero-lead { margin-top: .65rem; max-width: 570px; font-size: 1rem; line-height: 1.85; }
.hero-actions { gap: .7rem; margin-top: 1.7rem; }
.btn { border-radius: 8px; min-height: 48px; font-family: "Manrope", sans-serif; }
.btn-primary { background: var(--green); }
.btn-secondary { background: #ffffff04; }
.hero-status { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; margin-top: 2rem; padding-top: 1.4rem; }
.hero-status .metric-value { display: block; margin: 0 0 .4rem; font-size: clamp(1.3rem, 2.2vw, 1.85rem); letter-spacing: -.04em; line-height: 1.2; font-weight: 800; white-space: nowrap; }
.hero-status .metric-dot { display: inline; font-size: inherit; color: var(--green); }
.hero-status span { font-size: .73rem; }
.availability { display: flex; gap: .6rem; align-items: center; margin-top: 1.5rem; font-size: .72rem; color: var(--muted); }
.availability .status-dot { width: 4px; height: 4px; flex-basis: 4px; }
.hero-visual { padding-bottom: 2rem; }
.portrait-panel { aspect-ratio: 4 / 5; border-radius: 14px; box-shadow: none; border-color: #aeb8c926; }
.portrait-panel img { filter: saturate(.62); }
.portrait-overlay { background: linear-gradient(180deg, transparent 65%, #0c1017aa); }
.hero-credential { position: absolute; right: -1rem; bottom: 0; width: min(330px, calc(100% - 1rem)); display: flex; align-items: center; gap: 1rem; padding: 1.1rem; border: 1px solid #b4f27245; border-radius: 12px; background: #111923; box-shadow: 0 14px 40px #0005; transition: border-color var(--transition), transform var(--transition); }
.hero-credential:hover { border-color: var(--green); transform: translateY(-3px); }
.hero-credential > img { width: 72px; height: 72px; object-fit: contain; }
.hero-credential-copy { display: grid; gap: .3rem; min-width: 0; }
.hero-credential-copy .badge-kicker { font-size: .6rem; }
.hero-credential-copy > strong { font-size: 1.65rem; line-height: 1.1; letter-spacing: -.04em; }
.hero-credential-copy > strong i { font-size: 1rem; color: var(--green); vertical-align: middle; }
.hero-credential-copy > span:not(.badge-kicker) { color: var(--muted); font-size: .67rem; }
.hero-credential-copy > code { color: #aeb8c9; font-size: .59rem; font-family: "IBM Plex Mono", monospace; }
.credential-arrow { margin-left: auto; align-self: flex-start; transform: rotate(45deg); color: var(--green); }
.badges-section { background: linear-gradient(120deg, #141c222e, #17162144); }
.cpts-panel { grid-template-columns: 210px minmax(0, 1fr); gap: 2rem; padding: 2rem; border-color: #b4f27235; background: #111923; box-shadow: none; border-radius: 14px; }
.cpts-badge { padding: 0; min-height: 210px; background: transparent; border: 0; }
.cpts-badge img { width: 200px; }
.cpts-content h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); max-width: 640px; letter-spacing: -.035em; }
.cpts-content p { max-width: 650px; line-height: 1.8; font-size: .93rem; }
.certification-status { margin-top: 1rem; border: 0; padding: 0; background: transparent; font-size: .8rem; }
.certification-topics { margin-top: 1rem; }
.certificate-proof { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 2.2rem; padding-top: 2rem; border-top: 1px solid var(--line); align-items: center; }
.certificate-preview { position: relative; display: block; overflow: hidden; border: 1px solid #aeb8c926; border-radius: 7px; }
.certificate-preview > img { display: block; width: 100%; height: auto; }
.certificate-preview > span { display: flex; justify-content: center; align-items: center; gap: .5rem; padding: .75rem; color: var(--muted); background: #0e1520; font-size: .73rem; transition: color var(--transition); }
.certificate-preview:hover > span { color: var(--green); }
.certificate-details dl { margin: 1.2rem 0 1.6rem; }
.certificate-details dl > div { margin-top: 1rem; }
.certificate-details dt { font-size: .69rem; color: var(--muted); }
.certificate-details dd { margin: .3rem 0 0; font-size: .86rem; font-weight: 600; overflow-wrap: anywhere; }
.certificate-details code { font-family: "IBM Plex Mono", monospace; font-size: .8rem; color: var(--green); }
.certificate-details .btn { min-height: 44px; font-size: .8rem; }
.certificate-details > .project-link { display: flex; width: fit-content; gap: .45rem; margin-top: 1rem; font-size: .78rem; min-height: 36px; }
.certificate-details .verification-hint { margin-top: .25rem; max-width: 260px; color: var(--muted); font-size: .67rem; line-height: 1.7; }
.badge-grid { margin-top: 1rem; }
.badge-card { border-radius: 10px; padding: 1.4rem; }
.badge-card h3 { font-size: 1rem; }
.badge-card p { font-size: .83rem; }
.research-card { position: relative; padding: 2rem; border-radius: 12px; background: #111923; }
.research-card::before { content: ""; position: absolute; top: 0; left: 2rem; width: 50px; height: 2px; background: var(--green); }
.research-card:last-child::before { background: #a7c6ff; }
.research-product { margin-top: 1.7rem; color: var(--text); font-size: .9rem; }
.research-card h3 { font-size: 1.8rem; letter-spacing: -.04em; }
.research-card > p:not(.research-product) { font-size: .9rem; line-height: 1.9; }
.research-outcome { margin: 0 0 1.8rem; border-left: 2px solid #b4f27255; padding-left: .85rem; }
.research-outcome > span { font-size: .64rem; color: var(--green); text-transform: uppercase; letter-spacing: .08em; }
.research-outcome > p { margin-top: .4rem; font-size: .8rem; color: var(--muted); line-height: 1.75; }
.research-credit { line-height: 1.7; }
.profile-card, .knowledge-card, .project-card, .timeline-item { border-radius: 10px; background: #111923; }
.profile-card > span { color: var(--green); font-family: "IBM Plex Mono", monospace; font-size: .75rem; }
.project-card .project-stat { display: none; }
.project-link { text-underline-offset: 5px; }
.project-link:hover { text-decoration: underline; }
.contact-shell { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); padding: 3rem; border-radius: 14px; border-color: #b4f27235; background: radial-gradient(ellipse at 0% 100%, #b4f27209, transparent 65%), #111923; }
.contact-copy h2 { font-size: clamp(2.1rem, 3.4vw, 3rem); letter-spacing: -.045em; }
.contact-copy > p:not(.eyebrow) { line-height: 1.85; font-size: .94rem; }
.contact-email { display: inline-flex; align-items: center; gap: .65rem; margin-top: 1.4rem; color: var(--green); font-weight: 600; font-size: clamp(.8rem, 1.5vw, 1.05rem); overflow-wrap: anywhere; }
.contact-email i { transform: rotate(45deg); }
.contact-actions { align-content: center; gap: .65rem; }
.contact-actions > a { width: 100%; }
.footer-shell { font-size: .73rem; }
@media (min-width: 721px) and (max-width: 1020px) {
    .hero-shell { grid-template-columns: minmax(0, 1.2fr) minmax(0, .85fr); gap: 2rem; }
    .hero-copy h1 { font-size: clamp(2.7rem, 5.3vw, 3.5rem); }
    .hero-credential { right: 0; padding: .85rem; gap: .6rem; }
    .hero-credential > img { width: 50px; height: 50px; }
    .hero-credential-copy > strong { font-size: 1.4rem; }
    .credential-arrow { display: none; }
    .certificate-proof { gap: 1.5rem; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); }
    .contact-shell { grid-template-columns: 1fr; padding: 2rem; }
    .contact-actions > a { width: auto; }
}
@media (max-width: 720px) {
    .section { padding-block: 4rem; }
    .hero { padding-top: 8rem; padding-bottom: 4rem; min-height: auto; }
    .hero-shell { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-copy h1 { font-size: clamp(2.7rem, 10vw, 4.25rem); }
    .hero-copy > .eyebrow { font-size: .61rem; margin-top: 1.6rem; }
    .hero-role { font-size: .95rem; }
    .hero-lead { font-size: .93rem; }
    .hero-actions .btn { font-size: .78rem; padding-inline: .85rem; }
    .hero-status { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
    .hero-status div:last-child { grid-column: auto; }
    .hero-status .metric-value { font-size: 1.5rem; }
    .hero-status span { font-size: .65rem; }
    .hero-visual { max-width: 360px; padding-bottom: 2rem; }
    .hero-credential { right: -.25rem; width: min(290px, 100%); }
    .cpts-panel { grid-template-columns: 1fr; padding: 1.25rem; gap: 1rem; }
    .cpts-badge { min-height: 180px; }
    .cpts-badge img { width: 180px; }
    .cpts-content h3 { font-size: 1.65rem; }
    .cpts-content p { font-size: .86rem; }
    .certificate-proof { grid-template-columns: 1fr; gap: 1.6rem; margin-top: 1rem; padding-top: 1.25rem; }
    .certificate-details { padding: 0 .25rem .5rem; }
    .certificate-details .verification-hint { max-width: none; }
    .research-card { padding: 1.4rem; }
    .research-card h3 { font-size: 1.6rem; }
    .contact-shell { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem; }
    .contact-actions { margin-top: 0; }
    .contact-actions > a { width: auto; }
}
