:root {
    --navy: #003366;
    --navy-light: #1a4d8a;
    --accent: #0077cc;
    --teal: #00ccaa;

    --bg: #07131f;
    --bg-2: #0a1d2c;
    --surface: #0d2434;
    --surface-2: #123246;
    --border: rgba(120, 180, 210, 0.16);
    --text: #eef6fb;
    --muted: #a8bfd0;
    --gradient: linear-gradient(135deg, #00b39a 0%, #1a6fd0 100%);

    --maxw: 1100px;
    --radius: 16px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--teal);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: #6fe6d3;
}

h1, h2, h3, h4 {
    line-height: 1.25;
    color: #fff;
}

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── monochrome outline icons ── */
.ic svg,
.badge svg,
.contact-card svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
}

.card .ic svg {
    width: 30px;
    height: 30px;
}

.project .ic svg {
    width: 26px;
    height: 26px;
}

.badge svg {
    width: 20px;
    height: 20px;
}

.contact-card .ic svg {
    width: 22px;
    height: 22px;
}

/* ── NAV ── */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 19, 31, 0.82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.monogram {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
}

.monogram .mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--gradient);
    display: grid;
    place-items: center;
    font-size: 14px;
    box-shadow: 0 6px 18px rgba(0, 179, 154, 0.35);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switch {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
}

.lang-link {
    padding: 4px 9px;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-decoration: none;
}

.lang-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.lang-link.active {
    background: var(--gradient);
    color: #04202b;
}

/* ── CV dropdown ── */
.cv-menu {
    position: relative;
}

.cv-menu > summary {
    list-style: none;
    cursor: pointer;
}

.cv-menu > summary::-webkit-details-marker {
    display: none;
}

.nav-cv > summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--teal);
    border: 1px solid rgba(0, 204, 170, 0.4);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.nav-cv > summary:hover {
    background: rgba(0, 204, 170, 0.12);
}

.cv-menu-list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 250px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    z-index: 200;
}

.nav-cv .cv-menu-list,
.hero-cv .cv-menu-list {
    left: 0;
    right: auto;
}

.cv-menu-list a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text);
    font-size: 13px;
    text-decoration: none;
    line-height: 1.35;
}

.cv-menu-list a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.cv-menu-list a small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}

.date-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 10px;
    border: 1px solid rgba(0, 204, 170, 0.35);
    color: #6fe6d3;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    gap: 22px;
    font-size: 14px;
    align-items: center;
}

.nav-links a {
    color: var(--muted);
    font-weight: 500;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a.cta-link {
    color: var(--teal);
    border: 1px solid rgba(0, 204, 170, 0.4);
    padding: 6px 14px;
    border-radius: 20px;
}

.nav-links a.cta-link:hover {
    background: rgba(0, 204, 170, 0.12);
}

/* ── HERO ── */
.hero {
    position: relative;
    padding: 72px 0 56px;
    background:
        radial-gradient(1000px 400px at 15% -10%, rgba(0, 179, 154, 0.18), transparent 60%),
        radial-gradient(900px 400px at 90% 0%, rgba(26, 111, 208, 0.2), transparent 55%),
        var(--bg);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 48px;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--teal);
    font-weight: 700;
    margin-bottom: 14px;
}

.hero h1 {
    font-size: 2.7em;
    margin-bottom: 12px;
}

.hero .role {
    font-size: 1.05em;
    color: var(--muted);
    margin-bottom: 20px;
    max-width: 620px;
}

.hero .role strong {
    color: #cfe6f3;
    font-weight: 600;
}

.hero .blurb {
    color: var(--muted);
    max-width: 640px;
    margin-bottom: 28px;
}

.hero .blurb strong {
    color: #dceaf3;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 28px;
    font-size: 0.95em;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient);
    color: #04202b;
    box-shadow: 0 10px 26px rgba(0, 150, 160, 0.3);
}

.btn-primary:hover {
    color: #04202b;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 150, 160, 0.42);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: rgba(0, 204, 170, 0.5);
    color: #fff;
}

.hero-langs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.lang-badge {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    color: var(--muted);
}

/* ── PHOTO ── */
.hero-photo {
    justify-self: center;
    position: relative;
}

.hero-photo img {
    width: 260px;
    height: 260px;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    filter: saturate(1.05);
}

.hero-photo::after {
    content: "";
    position: absolute;
    inset: -14px -14px 0 0;
    border: 1px solid rgba(0, 204, 170, 0.35);
    border-radius: 28px;
    z-index: -1;
}

/* ── STATS ── */
.stats {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
}

.stat {
    padding: 28px 20px;
    text-align: center;
}

.stat .num {
    font-size: 1.9em;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat .label {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
}

/* ── ACHIEVEMENTS ── */
.ach-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.ach {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 18px;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.ach:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 204, 170, 0.4);
}

.ach .v {
    font-size: 1.5em;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ach .l {
    color: var(--muted);
    font-size: 13px;
    margin-top: 6px;
    line-height: 1.4;
}

.ach .l small {
    display: block;
    color: var(--teal);
    font-size: 11px;
    opacity: 0.85;
    margin-top: 4px;
}

/* ── SECTIONS ── */
.section {
    padding: 72px 0;
}

.section-head {
    margin-bottom: 36px;
}

.section-head .kicker {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--teal);
    font-weight: 700;
}

.section-head h2 {
    font-size: 1.9em;
    margin-top: 6px;
}

.section-head p {
    color: var(--muted);
    margin-top: 8px;
    max-width: 640px;
}

.grid {
    display: grid;
    gap: 20px;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* ── FOCUS CARDS ── */
.card {
    background: linear-gradient(180deg, var(--surface), var(--bg-2));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 204, 170, 0.4);
}

.card .ic {
    font-size: 1.7em;
    margin-bottom: 12px;
}

.card h3 {
    font-size: 1.1em;
    margin-bottom: 8px;
}

.card p {
    color: var(--muted);
    font-size: 0.94em;
}

.book-list {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

.book-list li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9em;
}

.book-list li:last-child {
    border-bottom: none;
}

.book-list a {
    color: var(--text);
    text-decoration: none;
}

.book-list a:hover {
    color: var(--teal);
}

.book-year {
    color: var(--muted);
    white-space: nowrap;
}

.card-cta {
    display: inline-block;
    margin-top: 14px;
    font-weight: 600;
    font-size: 0.92em;
    color: var(--teal);
}

.card:hover .card-cta {
    color: #6fe6d3;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.tag {
    font-size: 11px;
    color: #b7d6e6;
    background: rgba(0, 119, 204, 0.14);
    border: 1px solid rgba(0, 119, 204, 0.28);
    border-radius: 14px;
    padding: 3px 10px;
}

/* ── PROJECTS ── */
.project {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--surface), var(--bg-2));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.project:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 204, 170, 0.4);
}

.project .top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.project .ic {
    font-size: 1.6em;
}

.project h3 {
    font-size: 1.12em;
    margin-bottom: 8px;
}

.project p {
    color: var(--muted);
    font-size: 0.94em;
    flex-grow: 1;
}

.project .go {
    margin-top: 16px;
    font-weight: 600;
    font-size: 0.92em;
}

.pill {
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    padding: 3px 10px;
    white-space: nowrap;
}

.pill-live {
    color: #04202b;
    background: var(--teal);
}

.pill-soon {
    color: var(--muted);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
}

/* ── PUBLICATIONS ── */
.pub {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.pub:last-child {
    border-bottom: none;
}

.pub .badge {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(0, 179, 154, 0.12);
    border: 1px solid rgba(0, 179, 154, 0.3);
    font-size: 1.2em;
}

.pub .body h3 {
    font-size: 1em;
    margin-bottom: 4px;
}

.pub .body .meta {
    color: var(--muted);
    font-size: 0.86em;
}

.pub .body .meta em {
    color: var(--teal);
    font-style: normal;
    font-weight: 600;
}

.pub .body .metrics {
    color: #9fc4d6;
    font-size: 0.84em;
    margin-top: 4px;
}

.pub .body .pub-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
}

.status-pill {
    flex-shrink: 0;
    display: inline-block;
    white-space: nowrap;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid currentColor;
}

.status-pill.pill-accepted { color: #00ccaa; background: rgba(0, 204, 170, 0.12); }
.status-pill.pill-review   { color: #f0b429; background: rgba(240, 180, 41, 0.12); }
.status-pill.pill-progress { color: #4aa3df; background: rgba(74, 163, 223, 0.12); }
.status-pill.pill-draft    { color: #93aec0; background: rgba(147, 174, 192, 0.12); }
.status-pill.pill-rejected { color: #e05d5d; background: rgba(224, 93, 93, 0.12); }
.status-pill.pill-muted    { color: #6b8397; background: rgba(107, 131, 151, 0.12); }

.pub-cta {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ── CONTACT ── */
.contact {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 18px;
    color: var(--text);
}

.contact-card:hover {
    border-color: rgba(0, 204, 170, 0.45);
    color: #fff;
}

.contact-card .ic {
    font-size: 1.3em;
}

.contact-card .txt {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.contact-card .txt small {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── FOOTER ── */
footer {
    padding: 36px 0;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

footer a {
    color: #b7d6e6;
}

footer .cv-links {
    margin-bottom: 12px;
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero .role,
    .hero .blurb {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions,
    .hero-langs {
        justify-content: center;
    }

    .hero-photo {
        order: -1;
    }

    .grid-3,
    .grid-2,
    .stats-grid,
    .ach-strip,
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 620px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2em;
    }

    .project .go {
        display: flex;
        align-items: center;
        min-height: 44px;
        margin-top: 10px;
    }

    .grid-3,
    .grid-2,
    .stats-grid,
    .ach-strip,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-photo img {
        width: 200px;
        height: 200px;
    }

    .section {
        padding: 52px 0;
    }
}
