:root {
    --bg: #080f1c;
    --panel: #0d1628;
    --panel-soft: #111c31;
    --border: #1e293b;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --quiet: #64748b;
    --accent: #06b6d4;
    --warning: #f59e0b;
    --container: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Manrope, Arial, sans-serif;
    line-height: 1.5;
}

.geo-particles {
    position: fixed;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    pointer-events: none;
}

.site-main { position: relative; z-index: 1; }

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 12px;
    z-index: 100;
    background: var(--accent);
    color: var(--bg);
    padding: 8px 12px;
}

.skip-link:focus {
    left: 12px;
}

.portfolio-navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 80px;
    padding: 10px clamp(20px, 5vw, 80px);
    background: rgba(8, 15, 28, 0.94);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.brand__logo {
    width: 60px;
    height: 60px;
    overflow: hidden;
    border: 1.5px solid rgba(6, 182, 212, 0.8);
    border-radius: 18px;
    flex: 0 0 auto;
}

.brand__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand__text {
    display: flex;
    gap: 8px;
    align-items: baseline;
    color: var(--text);
    font-size: 14px;
    white-space: nowrap;
}

.brand__text span {
    opacity: 0.9;
}

.portfolio-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.portfolio-menu a:hover,
.portfolio-menu a:focus {
    color: var(--text);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 20px;
    border: 1px solid var(--accent);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 800;
    transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus {
    transform: translateY(-1px);
}

.button--solid {
    background: var(--accent);
    color: var(--bg);
}

.button--ghost {
    background: rgba(6, 182, 212, 0.08);
    color: var(--accent);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--panel);
    padding: 10px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--text);
}

.hero-section {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 640px);
    align-items: center;
    gap: clamp(28px, 4vw, 56px);
    min-height: 700px;
    overflow: hidden;
    padding: clamp(56px, 7vw, 80px);
    background: var(--bg);
}

.geo-dot-mesh {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image: radial-gradient(circle, var(--accent) 1.4px, transparent 1.8px);
    background-size: 86px 86px;
}

.hero-section__content,
.hero-visual,
.coord-note {
    position: relative;
    z-index: 1;
}

.eyebrow,
.section-kicker span,
.timeline-period,
.tag-list span,
.coord-note,
.coord-stamp,
.education-card__top {
    font-family: "JetBrains Mono", monospace;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
}

.hero-section h1 {
    max-width: 760px;
    margin: 0;
    color: var(--text);
    font-size: clamp(42px, 6vw, 72px);
    line-height: 0.95;
    font-weight: 800;
}

.hero-subtitle {
    margin: 14px 0 0;
    color: var(--accent);
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 700;
}

.hero-copy {
    max-width: 680px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 16px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.hero-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
}

.hero-specialties span {
    padding: 6px 10px;
    border: 1px solid rgba(var(--accent-rgb), 0.26);
    border-radius: 99px;
    background: rgba(var(--accent-rgb), 0.06);
    color: #bff8ed;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-visual {
    border: 1px solid rgba(6, 182, 212, 0.35);
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.16);
    overflow: hidden;
}

.hero-visual img {
    width: 100%;
    aspect-ratio: 1.31;
    object-fit: cover;
}

.hero-visual__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.13) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px);
    background-size: 25% 25%;
    opacity: 0.7;
    pointer-events: none;
}

.hero-visual__caption {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: grid;
    gap: 3px;
    padding: 9px 11px;
    border: 1px solid rgba(var(--accent-rgb), 0.42);
    border-radius: 7px;
    background: rgba(7, 17, 31, 0.78);
    box-shadow: 0 8px 20px rgba(1, 7, 16, 0.25);
    color: #d8faf3;
    font-family: "JetBrains Mono", monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.055em;
    line-height: 1.35;
}

.hero-visual__caption span:last-child { color: var(--accent); font-size: 8px; }

.map-marker {
    position: absolute;
    width: 11px;
    height: 11px;
    border: 2px solid #f8fafc;
    border-radius: 50% 50% 50% 0;
    background: var(--accent);
    box-shadow: 0 0 0 5px rgba(var(--accent-rgb), 0.17), 0 0 18px rgba(var(--accent-rgb), 0.8);
    transform: rotate(-45deg);
}

.map-marker::after {
    position: absolute;
    width: 3px;
    height: 3px;
    top: 2px;
    left: 2px;
    border-radius: 50%;
    background: var(--bg);
    content: "";
}

.map-marker--one { top: 29%; left: 31%; }
.map-marker--two { top: 57%; left: 66%; transform: rotate(-45deg) scale(0.7); }

.coord-note {
    position: absolute;
    left: clamp(20px, 5vw, 80px);
    bottom: 34px;
    color: var(--quiet);
    font-size: 12px;
}

.portfolio-section {
    padding: clamp(56px, 7vw, 80px) clamp(20px, 5vw, 80px);
    background: var(--bg);
}

.portfolio-section--panel {
    background: var(--panel);
}

.container {
    width: min(100%, var(--container));
    margin: 0 auto;
}

.container--narrow {
    max-width: 980px;
}

.section-header {
    margin-bottom: 48px;
}

.section-kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.section-kicker span {
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
}

.section-kicker i {
    width: 40px;
    height: 1px;
    background: var(--accent);
}

.section-header h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 36px);
    line-height: 1.15;
    font-weight: 800;
}

.about-grid {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
}

.profile-photo {
    width: 164px;
    height: 164px;
    overflow: hidden;
    border: 2px solid var(--accent);
    border-radius: 50%;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-copy p,
.contact-copy {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.metric strong {
    display: block;
    color: var(--accent);
    font-size: 24px;
    font-weight: 800;
}

.metric span {
    display: block;
    color: var(--quiet);
    font-size: 13px;
}

.card-grid,
.project-grid,
.recognition-grid,
.contact-grid {
    display: grid;
    gap: 24px;
}

.card-grid--three,
.project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.recognition-grid,
.contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
    gap: 32px;
}

.info-card,
.project-card,
.social-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--panel);
}

.portfolio-section--panel .info-card,
.portfolio-section--panel .project-card,
.portfolio-section--panel .social-card {
    background: var(--bg);
}

.info-card {
    padding: 24px;
}

.info-card h3,
.project-card h3,
.social-card h3 {
    margin: 0;
    color: var(--text);
    font-size: 18px;
    line-height: 1.3;
}

.info-card p,
.project-card p,
.certification-item p {
    color: var(--muted);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--panel-soft);
    color: var(--muted);
    font-size: 12px;
}

.timeline {
    position: relative;
    display: grid;
    gap: 34px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 170px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 140px 24px minmax(0, 1fr);
    gap: 18px;
}

.timeline-period {
    color: var(--quiet);
    font-size: 12px;
    text-align: right;
}

.timeline-dot {
    width: 9px;
    height: 9px;
    margin-top: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 5px rgba(6, 182, 212, 0.12);
}

.timeline-content h3 {
    margin: 0 0 4px;
    color: var(--text);
    font-size: 18px;
}

.timeline-content p {
    margin: 0 0 10px;
    color: var(--muted);
}

.timeline-content .muted {
    color: var(--accent);
    font-weight: 700;
}

.project-card {
    overflow: hidden;
}

.project-card__image {
    width: 100%;
    aspect-ratio: 1.68;
    object-fit: cover;
}

.project-card__body {
    padding: 22px;
}

.project-card p {
    margin: 10px 0 0;
    font-size: 14px;
}

.case-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

.case-link img {
    width: 14px;
    height: 14px;
}

body.modal-open { overflow: hidden; }

.project-modal[hidden] { display: none; }
.project-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 24px;
}
.project-modal__backdrop { position: absolute; inset: 0; border: 0; background: rgba(1, 8, 18, 0.76); backdrop-filter: blur(8px); cursor: default; opacity: 0; transition: opacity 180ms ease; }
.project-modal__dialog { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(250px, .9fr) minmax(300px, 1.1fr); width: min(100%, 900px); max-height: min(720px, calc(100vh - 48px)); overflow: auto; border: 1px solid rgba(var(--accent-rgb), .35); border-radius: 16px; background: var(--panel); box-shadow: 0 28px 80px rgba(0, 0, 0, .52); opacity: 0; transform: translateY(18px) scale(.98); transition: opacity 180ms ease, transform 180ms ease; }
.project-modal.is-open .project-modal__backdrop { opacity: 1; }
.project-modal.is-open .project-modal__dialog { opacity: 1; transform: translateY(0) scale(1); }
.project-modal__media { min-height: 100%; background: #07111f; }
.project-modal__media img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.project-modal__content { padding: clamp(28px, 4vw, 46px); }
.project-modal__eyebrow { margin: 0 0 9px; color: var(--accent); font-family: "JetBrains Mono", monospace; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.project-modal__content h2 { margin: 0; font-size: clamp(26px, 3vw, 38px); line-height: 1.08; letter-spacing: -.045em; }
.project-modal__content > p:not(.project-modal__eyebrow) { margin: 18px 0 0; color: var(--muted); line-height: 1.75; }
.project-modal__close { position: absolute; z-index: 2; top: 12px; right: 12px; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; background: rgba(7,17,31,.82); color: var(--text); cursor: pointer; font-size: 27px; line-height: 1; transition: background 180ms ease, transform 180ms ease; }
.project-modal__close:hover, .project-modal__close:focus-visible { background: var(--accent); color: var(--bg); transform: rotate(90deg); }

.education-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
}

.education-card__top strong {
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(245, 158, 11, 0.12);
    color: var(--warning);
    font-size: 11px;
}

.certification-item {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 12px;
    margin-top: 18px;
}

.certification-item img {
    width: 24px;
    height: 24px;
}

.certification-item h4 {
    margin: 0;
    font-size: 16px;
}

.certification-item p {
    margin: 4px 0 0;
    font-family: "JetBrains Mono", monospace;
    font-size: 13px;
}

.language-item {
    margin-top: 18px;
}

.language-item div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--text);
    font-size: 14px;
}

.language-item span {
    color: var(--accent);
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
}

.language-item i {
    display: block;
    height: 6px;
    margin-top: 8px;
    overflow: hidden;
    border-radius: 3px;
    background: var(--bg);
}

.language-item b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
}

.contact-list {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.contact-item,
.contact-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-family: "JetBrains Mono", monospace;
    font-size: 15px;
}

.contact-item img {
    width: 20px;
    height: 20px;
}

.social-card {
    padding: 32px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 28px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--panel);
    font-size: 14px;
    font-weight: 700;
}

.social-links img {
    width: 16px;
    height: 16px;
}

.social-links__mark {
    display: inline-grid;
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(var(--accent-rgb), .48);
    border-radius: 6px;
    background: rgba(var(--accent-rgb), .1);
    color: var(--accent);
    font-family: "JetBrains Mono", monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: -.04em;
    text-transform: uppercase;
}

.contact-grid--single { grid-template-columns: minmax(0, 760px); }

.coord-stamp {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
    opacity: 0.5;
}

.coord-stamp span {
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    background: var(--accent);
}

.portfolio-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--quiet);
    font-size: 13px;
}

.portfolio-footer strong {
    color: var(--accent);
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
}

.whatsapp-float {
    position: fixed;
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 45;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: #25d366;
    box-shadow: 0 10px 26px rgba(7, 93, 49, 0.34), 0 0 0 0 rgba(37, 211, 102, 0.42);
    color: #fff;
    transition: width 220ms ease, border-radius 220ms ease, transform 180ms ease, box-shadow 180ms ease;
    animation: whatsapp-pulse 3s ease-out 1.4s infinite;
}

.whatsapp-float svg { width: 29px; height: 29px; flex: 0 0 auto; fill: currentColor; }
.whatsapp-float span { width: 0; overflow: hidden; font-size: 13px; font-weight: 800; opacity: 0; transition: opacity 150ms ease 70ms; }
.whatsapp-float:hover, .whatsapp-float:focus-visible { width: 142px; gap: 9px; border-radius: 99px; box-shadow: 0 14px 30px rgba(7, 93, 49, 0.42); transform: translateY(-3px); animation-play-state: paused; }
.whatsapp-float:hover span, .whatsapp-float:focus-visible span { width: auto; opacity: 1; }

@keyframes whatsapp-pulse {
    0%, 72%, 100% { box-shadow: 0 10px 26px rgba(7, 93, 49, 0.34), 0 0 0 0 rgba(37, 211, 102, 0.4); }
    82% { box-shadow: 0 10px 26px rgba(7, 93, 49, 0.34), 0 0 0 10px rgba(37, 211, 102, 0); }
}

@media (max-width: 1024px) {
    .portfolio-menu,
    .navbar-cv {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .portfolio-menu.is-open {
        position: absolute;
        left: 20px;
        right: 20px;
        top: 76px;
        display: grid;
        gap: 0;
        padding: 10px;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: var(--panel);
    }

    .portfolio-menu.is-open a {
        padding: 14px;
    }

    .hero-section,
    .recognition-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .card-grid--three,
    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .portfolio-navbar {
        min-height: 72px;
    }

    .brand__logo {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .brand__text {
        display: grid;
        gap: 0;
        font-size: 12px;
    }

    .hero-section {
        min-height: auto;
        padding: 48px 20px 80px;
    }

    .hero-section h1 {
        font-size: 38px;
    }

    .about-grid,
    .metrics-grid,
    .card-grid--three,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 4px;
    }

    .timeline-item {
        grid-template-columns: 24px minmax(0, 1fr);
    }

    .timeline-period {
        grid-column: 2;
        text-align: left;
    }

    .timeline-dot {
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .portfolio-footer,
    .education-card__top {
        align-items: flex-start;
        flex-direction: column;
    }

    .whatsapp-float {
        right: max(14px, env(safe-area-inset-right));
        bottom: max(14px, env(safe-area-inset-bottom));
        width: 54px;
        height: 54px;
    }

    .whatsapp-float:hover,
    .whatsapp-float:focus-visible { width: 54px; border-radius: 50%; }

    .whatsapp-float:hover span,
    .whatsapp-float:focus-visible span { width: 0; opacity: 0; }
}

/* Visual refinement and motion ------------------------------------------------ */
:root {
    --bg: #07111f;
    --panel: #0b1728;
    --panel-soft: #13243a;
    --border: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #a8b7ca;
    --quiet: #72839a;
    --accent: #2dd4bf;
    --accent-strong: #14b8a6;
    --accent-rgb: 45, 212, 191;
    --warning: #fbbf24;
}

body {
    min-width: 320px;
    background:
        radial-gradient(circle at 85% -10%, rgba(var(--accent-rgb), 0.11), transparent 30rem),
        var(--bg);
    letter-spacing: -0.01em;
}

::selection { background: rgba(var(--accent-rgb), 0.3); color: var(--text); }

:focus-visible {
    outline: 3px solid rgba(var(--accent-rgb), 0.76);
    outline-offset: 4px;
}

.portfolio-navbar {
    min-height: 76px;
    background: rgba(7, 17, 31, 0.78);
    border-bottom-color: rgba(148, 163, 184, 0.12);
    box-shadow: 0 10px 30px rgba(1, 7, 16, 0.16);
}

.brand__logo {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(var(--accent-rgb), 0.18);
}

.portfolio-menu { gap: clamp(16px, 2.3vw, 32px); }

.portfolio-menu a {
    position: relative;
    padding: 8px 0;
    transition: color 180ms ease;
}

.portfolio-menu a::after {
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 99px;
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 220ms ease;
}

.portfolio-menu a:hover::after,
.portfolio-menu a:focus-visible::after,
.portfolio-menu a.is-active::after { transform: scaleX(1); transform-origin: left; }
.portfolio-menu a.is-active { color: var(--text); }

.button {
    min-height: 44px;
    border-radius: 9px;
    box-shadow: 0 8px 20px rgba(1, 7, 16, 0.16);
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible { transform: translateY(-3px); }
.button--solid { background: linear-gradient(135deg, var(--accent), #42e8cb); box-shadow: 0 10px 26px rgba(var(--accent-rgb), 0.2); }
.button--solid:hover,
.button--solid:focus-visible { box-shadow: 0 14px 30px rgba(var(--accent-rgb), 0.3); }
.button--ghost { border-color: rgba(var(--accent-rgb), 0.55); background: rgba(var(--accent-rgb), 0.08); }

.hero-section {
    min-height: min(760px, calc(100vh - 76px));
    isolation: isolate;
}

.hero-section::before,
.hero-section::after {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    content: "";
    filter: blur(8px);
    pointer-events: none;
}

.hero-section::before { width: 24rem; height: 24rem; top: -12rem; right: 24%; background: rgba(var(--accent-rgb), 0.08); }
.hero-section::after { width: 15rem; height: 15rem; right: -8rem; bottom: -7rem; background: rgba(59, 130, 246, 0.1); }
.geo-dot-mesh { opacity: 0.09; mask-image: linear-gradient(to bottom, black, transparent 88%); }

.eyebrow,
.section-kicker span { letter-spacing: 0.06em; }
.eyebrow::before { display: inline-block; width: 18px; height: 1px; margin: 0 9px 4px 0; background: currentColor; content: ""; vertical-align: middle; }

.hero-section h1 {
    max-width: 820px;
    font-size: clamp(43px, 5.5vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.065em;
    text-wrap: balance;
}

.hero-subtitle { color: #5eead4; }
.hero-copy { max-width: 610px; font-size: 16px; line-height: 1.75; }
.hero-visual {
    position: relative;
    border-color: rgba(var(--accent-rgb), 0.38);
    border-radius: 18px;
    box-shadow: 0 28px 70px rgba(1, 7, 16, 0.45), 0 0 0 8px rgba(var(--accent-rgb), 0.035);
    transform: perspective(900px) rotateY(-3deg) rotateX(1deg);
    transition: transform 400ms cubic-bezier(.2,.8,.2,1), box-shadow 400ms ease;
}
.hero-visual::after { position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.08); border-radius: inherit; content: ""; pointer-events: none; }
.hero-visual:hover { box-shadow: 0 35px 80px rgba(1, 7, 16, 0.55), 0 0 0 8px rgba(var(--accent-rgb), 0.07); transform: perspective(900px) rotateY(0) rotateX(0) translateY(-5px); }
.hero-visual img { transition: transform 800ms ease; }
.hero-visual:hover img { transform: scale(1.035); }

.portfolio-section { position: relative; scroll-margin-top: 76px; }
.portfolio-section--panel { background: linear-gradient(115deg, #0b1728, #0d1a2d); }
.portfolio-section--panel::before { position: absolute; top: 0; right: 0; left: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), .3), transparent); content: ""; }
.section-header { margin-bottom: clamp(32px, 4vw, 48px); }
.section-header h2 { letter-spacing: -0.045em; text-wrap: balance; }
.section-kicker i { width: 48px; background: linear-gradient(90deg, var(--accent), transparent); }

.profile-photo { position: relative; width: 172px; height: 172px; border-color: var(--accent); box-shadow: 0 0 0 8px rgba(var(--accent-rgb), 0.07), 0 20px 40px rgba(1,7,16,.35); }
.profile-photo::after { position: absolute; inset: 10px; border: 1px solid rgba(255,255,255,.2); border-radius: inherit; content: ""; pointer-events: none; }
.metrics-grid { gap: 14px; }
.metric { padding: 16px 0 4px; border-top: 1px solid var(--border); }
.metric strong { font-size: 28px; }

.info-card,
.project-card,
.social-card {
    border-color: rgba(148, 163, 184, 0.16);
    border-radius: 14px;
    box-shadow: 0 14px 32px rgba(1, 7, 16, 0.12);
    transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.info-card:hover,
.project-card:hover,
.social-card:hover { border-color: rgba(var(--accent-rgb), .48); box-shadow: 0 22px 44px rgba(1, 7, 16, 0.25); transform: translateY(-5px); }
.info-card { padding: 26px; }
.tag-list span { border: 1px solid rgba(148, 163, 184, .12); border-radius: 6px; background: rgba(19, 36, 58, .78); transition: border-color 180ms ease, color 180ms ease; }
.info-card:hover .tag-list span, .timeline-item:hover .tag-list span, .project-card:hover .tag-list span { border-color: rgba(var(--accent-rgb), .22); color: #d8faf3; }

.timeline { gap: 24px; }
.timeline::before { background: linear-gradient(var(--accent), rgba(var(--accent-rgb), .1)); }
.timeline-item { padding: 14px 0; }
.timeline-content { padding: 0 0 6px; transition: transform 180ms ease; }
.timeline-item:hover .timeline-content { transform: translateX(5px); }
.timeline-dot { box-shadow: 0 0 0 5px rgba(var(--accent-rgb), .12), 0 0 18px rgba(var(--accent-rgb), .42); }

.project-card__image { transition: transform 500ms cubic-bezier(.2,.8,.2,1); }
.project-card:hover .project-card__image { transform: scale(1.055); }
.case-link { transition: gap 180ms ease, color 180ms ease; }
.case-link:hover, .case-link:focus-visible { gap: 13px; color: #7af1df; }

.social-links a { border-radius: 8px; transition: border-color 180ms ease, background 180ms ease, transform 180ms ease; }
.social-links a:hover, .social-links a:focus-visible { border-color: rgba(var(--accent-rgb), .6); background: rgba(var(--accent-rgb), .1); transform: translateY(-2px); }
.contact-item a { transition: color 180ms ease, transform 180ms ease; }
.contact-item a:hover, .contact-item a:focus-visible { color: var(--accent); transform: translateX(3px); }
.language-item b { box-shadow: 0 0 16px rgba(var(--accent-rgb), .45); }

.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 600ms ease var(--reveal-delay, 0ms), transform 600ms cubic-bezier(.2,.8,.2,1) var(--reveal-delay, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) {
    .portfolio-menu.is-open { top: 70px; background: rgba(11, 23, 40, .98); box-shadow: 0 18px 42px rgba(1,7,16,.35); }
    .portfolio-menu.is-open a { border-radius: 8px; }
    .portfolio-menu.is-open a::after { display: none; }
    .portfolio-menu.is-open a:hover, .portfolio-menu.is-open a:focus-visible, .portfolio-menu.is-open a.is-active { background: rgba(var(--accent-rgb), .1); }
    .hero-visual { max-width: 680px; transform: none; }
}

@media (max-width: 720px) {
    .portfolio-navbar { padding-inline: 20px; }
    .hero-section { gap: 40px; }
    .hero-section h1 { font-size: clamp(40px, 12vw, 54px); }
    .hero-copy { font-size: 15px; }
    .hero-actions .button { flex: 1 1 150px; }
    .hero-specialties { margin-top: 22px; }
    .hero-specialties span { font-size: 9px; }
    .hero-visual { border-radius: 14px; }
    .hero-visual__caption { right: 10px; bottom: 10px; padding: 7px 8px; font-size: 7px; }
    .hero-visual__caption span:last-child { font-size: 6px; }
    .project-modal { padding: 14px; }
    .project-modal__dialog { grid-template-columns: 1fr; max-height: calc(100vh - 28px); }
    .project-modal__media img { min-height: 190px; max-height: 270px; }
    .project-modal__content { padding: 26px 22px 30px; }
    .coord-note { bottom: 28px; font-size: 10px; }
    .about-grid { gap: 26px; }
    .profile-photo { width: 140px; height: 140px; }
    .info-card, .social-card { padding: 22px; }
    .info-card:hover, .project-card:hover, .social-card:hover { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
    .js .reveal { opacity: 1; transform: none; }
    .geo-particles { display: none; }
}

/* Geospatial command-center hero ------------------------------------------ */
:root {
    --map-cyan: #22d3ee;
    --map-violet: #c084fc;
    --map-lime: #6ee7b7;
}

.hero-section {
    grid-template-columns: minmax(0, .9fr) minmax(460px, 1.15fr);
    gap: clamp(30px, 4.5vw, 84px);
    min-height: min(820px, calc(100vh - 76px));
    padding-top: clamp(66px, 8vw, 112px);
    padding-bottom: clamp(76px, 9vw, 118px);
    background:
        radial-gradient(ellipse at 72% 45%, rgba(34, 211, 238, .12), transparent 35%),
        radial-gradient(ellipse at 18% 0%, rgba(192, 132, 252, .09), transparent 28%),
        #06101e;
}

.hero-section::before {
    width: 52vw;
    height: 52vw;
    top: -27vw;
    right: -13vw;
    border: 1px solid rgba(34, 211, 238, .11);
    background:
        repeating-radial-gradient(circle at center, transparent 0 40px, rgba(34, 211, 238, .045) 41px 42px),
        rgba(34, 211, 238, .025);
    box-shadow: 0 0 80px rgba(34, 211, 238, .08);
    filter: none;
}

.hero-section::after { width: 27rem; height: 27rem; right: -14rem; bottom: -14rem; background: rgba(192, 132, 252, .1); }
.geo-dot-mesh { opacity: .14; background-size: 72px 72px; mask-image: radial-gradient(ellipse at 55% 40%, #000 0 32%, transparent 74%); }

.hero-section__content { align-self: center; }
.hero-system-status { display: flex; align-items: center; gap: 8px; margin: 0 0 26px; color: #a8c2d1; font-family: "JetBrains Mono", monospace; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.hero-system-status span { width: 7px; height: 7px; border-radius: 50%; background: var(--map-lime); box-shadow: 0 0 0 4px rgba(110, 231, 183, .1), 0 0 16px var(--map-lime); animation: system-blink 2.2s ease-in-out infinite; }
.hero-section h1 { max-width: 740px; color: #f4fbff; font-size: clamp(48px, 5.2vw, 80px); letter-spacing: -.07em; text-shadow: 0 10px 38px rgba(0, 0, 0, .26); }
.hero-subtitle { max-width: 640px; color: var(--map-cyan); font-size: clamp(17px, 1.75vw, 23px); }
.hero-copy { max-width: 580px; color: #b4c4d4; }
.hero-specialties span { border-color: rgba(34, 211, 238, .25); background: rgba(34, 211, 238, .06); color: #d5fbff; }
.hero-actions { margin-top: 34px; }
.hero-actions .button--solid { background: linear-gradient(135deg, var(--map-cyan), #39e4d1); color: #04111c; }
.hero-actions .button--ghost { border-color: rgba(34, 211, 238, .54); color: #bff8ff; }

.hero-visual {
    width: min(100%, 760px);
    justify-self: end;
    border: 1px solid rgba(34, 211, 238, .62);
    border-radius: 3px;
    background: #06101e;
    box-shadow: 0 35px 90px rgba(0, 0, 0, .48), 0 0 0 7px rgba(34, 211, 238, .045), inset 0 0 0 1px rgba(192, 132, 252, .25);
    clip-path: polygon(3.5% 0, 96.5% 0, 100% 4%, 100% 96%, 96.5% 100%, 3.5% 100%, 0 96%, 0 4%);
    transform: perspective(1200px) rotateY(-5deg) rotateX(2deg);
}

.hero-visual::before { position: absolute; z-index: 2; inset: 0; border: 1px solid rgba(255, 255, 255, .12); background: linear-gradient(120deg, rgba(34, 211, 238, .12), transparent 22%, transparent 76%, rgba(192, 132, 252, .12)); content: ""; pointer-events: none; }
.hero-visual::after { z-index: 4; border: 0; border-radius: 0; background: linear-gradient(var(--map-cyan), var(--map-cyan)) left top / 38px 2px no-repeat, linear-gradient(var(--map-cyan), var(--map-cyan)) left top / 2px 38px no-repeat, linear-gradient(var(--map-violet), var(--map-violet)) right bottom / 38px 2px no-repeat, linear-gradient(var(--map-violet), var(--map-violet)) right bottom / 2px 38px no-repeat; opacity: .8; }
.hero-visual img { aspect-ratio: 1.15; min-height: 510px; object-position: center; filter: saturate(1.2) contrast(1.08); }
.hero-visual:hover { transform: perspective(1200px) rotateY(-1deg) rotateX(0) translateY(-7px); }
.hero-visual__overlay { z-index: 3; background-image: linear-gradient(90deg, rgba(34, 211, 238, .17) 1px, transparent 1px), linear-gradient(rgba(34, 211, 238, .17) 1px, transparent 1px); background-size: 12.5% 12.5%; opacity: .92; }
.hero-visual__caption { right: 18px; bottom: 18px; border-color: rgba(34, 211, 238, .62); border-radius: 2px; background: rgba(3, 12, 24, .84); font-size: 9px; }
.map-marker { z-index: 2; border-color: #eaffff; background: var(--map-lime); box-shadow: 0 0 0 6px rgba(110, 231, 183, .13), 0 0 20px rgba(110, 231, 183, .75); }
.map-marker--one { top: 33%; left: 34%; }
.map-marker--two { top: 64%; left: 58%; }

.geo-hud { position: absolute; z-index: 4; color: #d9fbff; font-family: "JetBrains Mono", monospace; font-size: 8px; font-weight: 700; letter-spacing: .08em; }
.geo-hud--layers { top: 18px; left: 18px; display: grid; gap: 6px; width: 148px; padding: 9px 10px; border-left: 2px solid var(--map-cyan); background: linear-gradient(90deg, rgba(3, 12, 24, .83), transparent); }
.geo-hud--layers > span { margin-bottom: 3px; color: var(--map-cyan); font-size: 8px; }
.geo-hud--layers b { display: flex; align-items: center; gap: 6px; font-weight: 400; }
.geo-hud--layers i { width: 5px; height: 5px; border-radius: 50%; background: var(--map-lime); box-shadow: 0 0 8px var(--map-lime); }
.geo-hud--layers b:nth-child(3) i { background: var(--map-cyan); box-shadow: 0 0 8px var(--map-cyan); }
.geo-hud--layers b:nth-child(4) i { background: var(--map-violet); box-shadow: 0 0 8px var(--map-violet); }
.geo-hud--status { bottom: 19px; left: 18px; display: flex; align-items: center; gap: 7px; padding: 7px 8px; border: 1px solid rgba(34, 211, 238, .28); background: rgba(3, 12, 24, .74); }
.geo-hud--status span { width: 5px; height: 5px; border-radius: 50%; background: var(--map-lime); box-shadow: 0 0 8px var(--map-lime); }
.geo-compass { position: absolute; z-index: 4; top: 18px; right: 18px; width: 42px; height: 42px; border: 1px solid rgba(34, 211, 238, .42); border-radius: 50%; background: rgba(3, 12, 24, .58); color: #d9fbff; font-family: "JetBrains Mono", monospace; font-size: 7px; text-align: center; }
.geo-compass b, .geo-compass span, .geo-compass em, .geo-compass small { position: absolute; font-style: normal; line-height: 1; }
.geo-compass b { top: 3px; left: 16px; color: var(--map-cyan); }.geo-compass span { top: 17px; right: 3px; }.geo-compass em { bottom: 3px; left: 17px; }.geo-compass small { top: 17px; left: 3px; font-size: 7px; }
.geo-compass i { position: absolute; top: 11px; left: 19px; width: 0; height: 0; border-right: 2px solid transparent; border-bottom: 14px solid var(--map-cyan); border-left: 2px solid transparent; filter: drop-shadow(0 0 4px var(--map-cyan)); }
.coord-note { bottom: 26px; color: rgba(187, 230, 239, .63); letter-spacing: .05em; }
.hero-scroll-cue { position: absolute; z-index: 4; right: clamp(20px, 5vw, 80px); bottom: 24px; display: flex; align-items: center; gap: 9px; color: #9ab5c7; font-family: "JetBrains Mono", monospace; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; transition: color 180ms ease; }
.hero-scroll-cue:hover, .hero-scroll-cue:focus-visible { color: var(--map-cyan); }.hero-scroll-cue span { width: 22px; height: 32px; border: 1px solid rgba(34, 211, 238, .6); border-radius: 99px; }.hero-scroll-cue span::after { display: block; width: 3px; height: 7px; margin: 7px auto 0; border-radius: 99px; background: var(--map-cyan); content: ""; animation: scroll-signal 1.8s ease-in-out infinite; }

.portfolio-section { background-image: linear-gradient(90deg, rgba(34, 211, 238, .025) 1px, transparent 1px), linear-gradient(rgba(34, 211, 238, .025) 1px, transparent 1px); background-size: 64px 64px; }
.portfolio-section--panel { background-color: #0b1728; background-image: linear-gradient(90deg, rgba(34, 211, 238, .035) 1px, transparent 1px), linear-gradient(rgba(34, 211, 238, .035) 1px, transparent 1px), linear-gradient(115deg, #0b1728, #0d1a2d); }
.section-kicker span { color: var(--map-cyan); }.section-kicker i { background: linear-gradient(90deg, var(--map-cyan), transparent); }.section-header h2 { color: #effcff; }
.info-card, .project-card, .social-card { border-radius: 4px; background: rgba(9, 23, 40, .86); }.portfolio-section--panel .info-card, .portfolio-section--panel .project-card, .portfolio-section--panel .social-card { background: rgba(6, 17, 31, .8); }.info-card:hover, .project-card:hover, .social-card:hover { border-color: rgba(34, 211, 238, .55); box-shadow: 0 22px 48px rgba(0, 0, 0, .28), inset 3px 0 0 var(--map-cyan); }
.tag-list span { border-radius: 2px; }.timeline::before { background: linear-gradient(var(--map-cyan), rgba(192, 132, 252, .18)); }.timeline-dot { background: var(--map-cyan); }

@keyframes system-blink { 0%, 100% { opacity: .6; transform: scale(.85); } 50% { opacity: 1; transform: scale(1); } }
@keyframes scroll-signal { 0%, 100% { opacity: .35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(8px); } }

@media (max-width: 1150px) {
    .hero-section { grid-template-columns: minmax(0, 1fr) minmax(390px, .85fr); gap: 36px; }
    .hero-visual img { min-height: 410px; }
}

@media (max-width: 1024px) {
    .hero-section { grid-template-columns: 1fr; }
    .hero-visual { justify-self: start; width: min(100%, 720px); }
    .hero-visual img { min-height: 0; }
}

@media (max-width: 720px) {
    .hero-section { padding-top: 56px; padding-bottom: 104px; }
    .hero-system-status { margin-bottom: 19px; font-size: 9px; }
    .hero-section h1 { font-size: clamp(44px, 13vw, 60px); }
    .hero-visual { clip-path: polygon(5% 0, 95% 0, 100% 5%, 100% 95%, 95% 100%, 5% 100%, 0 95%, 0 5%); transform: none; }
    .hero-visual img { aspect-ratio: 1.05; }
    .geo-hud--layers { top: 12px; left: 12px; width: 132px; padding: 7px; font-size: 7px; }.geo-hud--status { display: none; }.geo-compass { top: 12px; right: 12px; transform: scale(.84); transform-origin: top right; }
    .hero-visual__caption { right: 12px; bottom: 12px; }.hero-scroll-cue { right: 20px; bottom: 26px; font-size: 9px; }.coord-note { display: none; }
    .portfolio-section { background-size: 48px 48px; }
}

@media (prefers-reduced-motion: reduce) { .hero-system-status span, .hero-scroll-cue span::after { animation: none; } }
