:root {
    --navy: #101a2c;
    --navy-soft: #17243a;
    --ink: #182338;
    --muted: #68758a;
    --line: #dce2e9;
    --paper: #f8fafc;
    --white: #fff;
    --lime: #c6f36a;
    --lime-dark: #9cc94b;
    --container: 1160px;
    --shadow: 0 20px 60px rgba(16, 26, 44, .1)
}

* {
    box-sizing: border-box
}

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

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: "DM Sans", "Segoe UI", sans-serif;
    line-height: 1.65
}

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

button {
    font: inherit
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .95);
    border-bottom: 1px solid rgba(220, 226, 233, .8);
    backdrop-filter: blur(14px)
}

.nav-wrap {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font: 600 .95rem "Space Grotesk", sans-serif;
    letter-spacing: -.02em
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--navy);
    color: var(--lime);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .03em
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px
}

.nav-menu>a {
    color: #526076;
    font-size: .88rem;
    font-weight: 600;
    transition: color .2s
}

.nav-menu>a:hover {
    color: var(--ink)
}

.nav-menu .nav-cta {
    padding: 10px 15px;
    border-radius: 7px;
    background: var(--navy);
    color: white
}

.nav-cta span {
    color: var(--lime);
    padding-left: 5px
}

.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: white;
    padding: 8px 12px;
    color: var(--ink)
}

.hero {
    position: relative;
    overflow: hidden;
    background: var(--navy);
    color: white;
    padding: 104px 0 100px
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
    gap: 90px
}

.hero-copy {
    max-width: 690px
}

.eyebrow,
.section-kicker {
    display: block;
    margin: 0 0 20px;
    color: #91a2ba;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #c5d0df;
    letter-spacing: .09em
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 5px rgba(198, 243, 106, .12)
}

h1,
h2,
h3,
p {
    margin-top: 0
}

.hero h1 {
    max-width: 690px;
    margin: 0;
    font: 600 clamp(3.2rem, 6vw, 5.7rem)/1.01 "Space Grotesk", sans-serif;
    letter-spacing: -.075em
}

.hero h1 span {
    color: var(--lime)
}

.lede {
    max-width: 610px;
    margin: 27px 0 0;
    color: #b6c1d1;
    font-size: 1.05rem;
    line-height: 1.8
}

.cta-row {
    display: flex;
    gap: 13px;
    margin-top: 30px
}

.button {
    min-height: 49px;
    padding: 12px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 7px;
    font-size: .9rem;
    font-weight: 700;
    transition: transform .2s, background .2s
}

.button:hover {
    transform: translateY(-2px)
}

.button.primary {
    background: var(--lime);
    color: var(--navy)
}

.button.primary:hover {
    background: #d4fa89
}

.button.secondary {
    border: 1px solid #445167;
    color: white
}

.button.secondary:hover {
    background: #1a2940
}

.social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 36px
}

.social-row a {
    color: #b7c2d2;
    font-size: .84rem;
    font-weight: 600
}

.social-row a:hover {
    color: var(--lime)
}

.social-row span {
    margin-left: 3px;
    font-size: .78rem
}

.hero-panel {
    position: relative;
    padding: 27px 28px 21px;
    border: 1px solid #344259;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025));
    box-shadow: 0 30px 90px rgba(0, 0, 0, .2)
}

.panel-top,
.panel-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.panel-label,
.panel-bottom {
    color: #92a1b7;
    font-size: .63rem;
    font-weight: 700;
    letter-spacing: .12em
}

.panel-icon {
    display: grid;
    place-items: center;
    width: 33px;
    height: 33px;
    border: 1px solid #42516a;
    border-radius: 8px;
    color: var(--lime);
    font-size: 1.1rem
}

.panel-headline {
    margin: 24px 0 21px;
    font: 500 1.85rem/1.17 "Space Grotesk", sans-serif;
    letter-spacing: -.045em
}

.panel-rule {
    border-top: 1px solid #344259;
    margin-bottom: 8px
}

.panel-fact {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 11px;
    padding: 14px 0;
    border-bottom: 1px solid #344259
}

.panel-fact>span {
    padding-top: 2px;
    color: var(--lime);
    font: 600 .69rem "Space Grotesk", sans-serif
}

.panel-fact p {
    margin: 0;
    color: #b6c1d1;
    font-size: .83rem;
    line-height: 1.55
}

.panel-fact strong {
    display: block;
    margin-bottom: 3px;
    color: white;
    font-size: .88rem
}

.panel-bottom {
    padding-top: 19px;
    font-size: .55rem
}

.panel-bottom span:last-child {
    color: var(--lime)
}

.hero-orbit {
    position: absolute;
    border: 1px solid rgba(198, 243, 106, .08);
    border-radius: 50%;
    pointer-events: none
}

.orbit-one {
    width: 620px;
    height: 620px;
    right: -300px;
    top: -400px
}

.orbit-two {
    width: 900px;
    height: 900px;
    right: -440px;
    top: -540px
}

.section {
    padding: 95px 0
}

.work-section {
    background: var(--paper)
}

.heading-row {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 40px
}

.section-heading {
    margin-bottom: 38px
}

.section-kicker {
    margin-bottom: 13px;
    color: #718096
}

.section-heading h2,
.contact-card h2 {
    margin: 0;
    font: 600 clamp(2.1rem, 4vw, 3.35rem)/1.08 "Space Grotesk", sans-serif;
    letter-spacing: -.065em
}

.heading-row>p {
    max-width: 360px;
    margin: 0 0 5px;
    color: var(--muted);
    font-size: .94rem
}

.section-intro {
    margin: 14px 0 0;
    color: var(--muted)
}

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

.project-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
    transition: transform .22s, box-shadow .22s
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow)
}

.project-visual {
    position: relative;
    min-height: 175px;
    display: flex;
    align-items: flex-end;
    padding: 22px;
    background: var(--navy);
    overflow: hidden
}

.project-card:nth-child(2) .project-visual {
    background: #273647
}

.project-card:nth-child(3) .project-visual {
    background: #24364c
}

.project-visual:before,
.project-visual:after {
    position: absolute;
    content: "";
    border: 1px solid rgba(198, 243, 106, .2);
    border-radius: 50%
}

.project-visual:before {
    width: 230px;
    height: 230px;
    right: -32px;
    top: -135px
}

.project-visual:after {
    width: 160px;
    height: 160px;
    right: 3px;
    top: -98px
}

.project-badge {
    position: relative;
    z-index: 1;
    color: var(--lime);
    font: 600 1.65rem "Space Grotesk", sans-serif;
    letter-spacing: -.06em
}

.project-info {
    padding: 22px
}

.project-meta {
    color: #75839a;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase
}

.project-card h3 {
    margin: 9px 0 8px;
    font: 600 1.23rem "Space Grotesk", sans-serif;
    letter-spacing: -.035em
}

.project-card p {
    min-height: 74px;
    margin: 0 0 17px;
    color: var(--muted);
    font-size: .87rem;
    line-height: 1.7
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 19px;
    padding: 0;
    list-style: none
}

.tech-stack li,
.skill-tags span {
    padding: 5px 9px;
    border: 1px solid #e3e8ee;
    border-radius: 5px;
    background: #f8fafc;
    color: #526076;
    font-size: .69rem;
    font-weight: 600
}

.card-links a {
    color: #263754;
    font-size: .83rem;
    font-weight: 700
}

.card-links a:hover {
    color: #638b20
}

.card-links a span {
    padding-left: 4px
}

.about-section {
    background: white
}

.about-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 90px
}

.about-copy {
    max-width: 670px;
    color: #59677d;
    font-size: .98rem
}

.about-copy>p {
    margin: 0 0 18px
}

.education-card {
    display: flex;
    align-items: center;
    gap: 17px;
    margin-top: 28px;
    padding: 19px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fbfcfd
}

.education-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #eff7df;
    color: #557b1f;
    font-size: 1.15rem
}

.education-card div {
    display: grid;
    gap: 3px
}

.card-overline {
    color: #718096;
    font-size: .61rem;
    font-weight: 700;
    letter-spacing: .12em
}

.education-card strong {
    color: var(--ink);
    font-size: .88rem
}

.education-card div span:last-child {
    color: var(--muted);
    font-size: .79rem
}

.skills-section {
    background: #f2f5f8
}

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

.skill-card {
    min-height: 225px;
    padding: 22px;
    border: 1px solid #e0e6ec;
    border-radius: 9px;
    background: white
}

.skill-number {
    color: #83aa3c;
    font: 600 .72rem "Space Grotesk", sans-serif
}

.skill-card h3 {
    margin: 17px 0 6px;
    font: 600 1.13rem "Space Grotesk", sans-serif;
    letter-spacing: -.03em
}

.skill-card p {
    min-height: 64px;
    margin: 0 0 15px;
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.6
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px
}

.skill-tags span {
    padding: 4px 7px;
    font-size: .62rem
}

.credentials-section {
    background: white
}

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

.certificate-card {
    display: flex;
    flex-direction: column;
    min-height: 170px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white
}

.certificate-meta {
    color: #718096;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase
}

.certificate-card h3 {
    margin: 9px 0 7px;
    font: 600 1rem/1.35 "Space Grotesk", sans-serif
}

.certificate-card p {
    margin: 0 0 13px;
    color: var(--muted);
    font-size: .77rem;
    line-height: 1.55
}

.card-links {
    margin-top: auto
}

.certificate-card .card-links a {
    font-size: .76rem
}

.contact-section {
    padding: 80px 0;
    background: var(--navy)
}

.contact-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    color: white
}

.contact-card .section-kicker {
    color: var(--lime)
}

.contact-card h2 {
    font-size: clamp(2.4rem, 5vw, 4rem)
}

.contact-card p {
    max-width: 510px;
    margin: 17px 0 0;
    color: #b5c0d0
}

.contact-actions {
    display: grid;
    justify-items: start;
    gap: 14px;
    flex: none
}

.contact-email {
    color: #b5c0d0;
    font-size: .82rem
}

.contact-email:hover {
    color: var(--lime)
}

.footer {
    padding: 22px 0;
    border-top: 1px solid #2d3a4f;
    background: var(--navy);
    color: #9ca9ba
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: .75rem
}

.footer .brand {
    color: white;
    font-size: .82rem
}

.footer .brand-mark {
    width: 29px;
    height: 29px
}

.footer-inner>a:last-child {
    color: #c0ccd9
}

.footer-inner>a:last-child:hover {
    color: var(--lime)
}

@media(max-width:950px) {
    .hero-grid {
        grid-template-columns: 1.1fr .9fr;
        gap: 40px
    }

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

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

    .about-grid {
        gap: 45px
    }
}

@media(max-width:720px) {
    .container {
        width: min(var(--container), 100% - 36px)
    }

    .nav-wrap {
        min-height: 67px
    }

    .nav-toggle {
        display: block
    }

    .nav-menu {
        position: absolute;
        top: 66px;
        left: 18px;
        right: 18px;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        padding: 9px;
        border: 1px solid var(--line);
        border-radius: 9px;
        background: white;
        box-shadow: var(--shadow)
    }

    .nav-menu.is-open {
        display: flex
    }

    .nav-menu>a {
        padding: 11px 12px
    }

    .nav-menu .nav-cta {
        margin-top: 5px
    }

    .hero {
        padding: 75px 0 72px
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 46px
    }

    .hero h1 {
        font-size: clamp(3rem, 12vw, 5rem)
    }

    .hero-panel {
        max-width: 500px
    }

    .section {
        padding: 72px 0
    }

    .heading-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px
    }

    .section-heading {
        margin-bottom: 28px
    }

    .card-grid {
        grid-template-columns: 1fr
    }

    .project-card p {
        min-height: 0
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 18px
    }

    .about-grid .section-heading {
        margin-bottom: 4px
    }

    .contact-card {
        align-items: flex-start;
        flex-direction: column;
        gap: 30px
    }

    .contact-actions {
        width: 100%
    }
}

@media(max-width:480px) {
    .container {
        width: calc(100% - 32px)
    }

    .hero {
        padding: 61px 0
    }

    .eyebrow {
        font-size: .62rem
    }

    .hero h1 {
        font-size: 3.1rem
    }

    .lede {
        font-size: .95rem
    }

    .cta-row {
        align-items: stretch;
        flex-direction: column
    }

    .cta-row .button {
        width: 100%
    }

    .social-row {
        gap: 13px 19px
    }

    .hero-panel {
        padding: 22px 19px
    }

    .panel-bottom {
        font-size: .48rem
    }

    .skills-grid,
    .credential-grid,
    .profile-grid {
        grid-template-columns: 1fr
    }

    .skill-card {
        min-height: 0
    }

    .skill-card p {
        min-height: 0
    }

    .footer-inner {
        align-items: flex-start;
        flex-wrap: wrap
    }

    .footer-inner>span {
        order: 3;
        width: 100%
    }
}

.experience-section {
    background: white
}

.profiles-section {
    background: var(--paper)
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: white;
    transition: transform .2s, box-shadow .2s
}

.profile-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow)
}

.profile-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--navy);
    color: var(--lime);
    font: 700 .78rem "Space Grotesk", sans-serif
}

.profile-card>span:nth-child(2) {
    display: grid;
    gap: 3px
}

.profile-card strong {
    font: 600 1rem "Space Grotesk", sans-serif
}

.profile-card small {
    color: var(--muted);
    font-size: .77rem
}

.profile-arrow {
    margin-left: auto;
    color: #718096
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    *,
    *:before,
    *:after {
        transition: none !important
    }
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--white);
    color: var(--ink);
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .2s
}

.theme-toggle:hover {
    transform: translateY(-1px);
    border-color: var(--lime-dark)
}

.theme-icon {
    font-size: 1rem;
    line-height: 1
}

.nav-menu .theme-toggle {
    color: var(--ink)
}

:focus-visible {
    outline: 3px solid var(--lime-dark);
    outline-offset: 3px
}

/* A quiet entrance keeps the page lively without competing with the content. */
.hero-copy>* {
    animation: rise-in .7s both
}

.hero-copy .eyebrow {
    animation-delay: .08s
}

.hero-copy h1 {
    animation-delay: .16s
}

.hero-copy .lede {
    animation-delay: .24s
}

.hero-copy .cta-row {
    animation-delay: .32s
}

.hero-copy .social-row {
    animation-delay: .4s
}

.hero-panel {
    animation: panel-in .8s .18s both
}

.orbit-one {
    animation: orbit-drift 26s ease-in-out infinite alternate
}

.orbit-two {
    animation: orbit-drift 34s ease-in-out infinite alternate-reverse
}

.status-dot {
    animation: status-pulse 2.4s ease-out infinite
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .65s ease, transform .65s cubic-bezier(.2, .7, .2, 1)
}

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

.reveal-delay-1 {
    transition-delay: .08s
}

.reveal-delay-2 {
    transition-delay: .16s
}

.reveal-delay-3 {
    transition-delay: .24s
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(16px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes panel-in {
    from {
        opacity: 0;
        transform: translate(18px, 12px) scale(.98)
    }

    to {
        opacity: 1;
        transform: translate(0) scale(1)
    }
}

@keyframes orbit-drift {
    from {
        transform: translate3d(-8px, 0, 0) rotate(-3deg)
    }

    to {
        transform: translate3d(12px, 14px, 0) rotate(4deg)
    }
}

@keyframes status-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 5px rgba(198, 243, 106, .12)
    }

    50% {
        box-shadow: 0 0 0 9px rgba(198, 243, 106, 0)
    }
}

[data-theme="dark"] {
    color-scheme: dark;
    --ink: #e7edf5;
    --muted: #a5b1c2;
    --line: #2e3b50;
    --paper: #141e2e;
    --white: #101827;
    --shadow: 0 20px 60px rgba(0, 0, 0, .3)
}

[data-theme="dark"] body {
    background: #101827;
    color: var(--ink)
}

[data-theme="dark"] .site-header {
    background: rgba(16, 24, 39, .94);
    border-color: #263349
}

[data-theme="dark"] .brand {
    color: #f0f4f8
}

[data-theme="dark"] .nav-menu>a {
    color: #bac5d3
}

[data-theme="dark"] .nav-menu>a:hover {
    color: white
}

[data-theme="dark"] .nav-menu .nav-cta {
    background: var(--lime);
    color: #101827
}

[data-theme="dark"] .nav-toggle,
[data-theme="dark"] .theme-toggle {
    background: #182438;
    border-color: #35435a;
    color: #e7edf5
}

[data-theme="dark"] .work-section,
[data-theme="dark"] .profiles-section {
    background: #141e2e
}

[data-theme="dark"] .about-section,
[data-theme="dark"] .credentials-section,
[data-theme="dark"] .experience-section {
    background: #101827
}

[data-theme="dark"] .skills-section {
    background: #141e2e
}

[data-theme="dark"] .project-card,
[data-theme="dark"] .certificate-card,
[data-theme="dark"] .profile-card,
[data-theme="dark"] .skill-card {
    background: #182438;
    border-color: #2e3b50
}

[data-theme="dark"] .education-card {
    background: #182438;
    border-color: #2e3b50
}

[data-theme="dark"] .education-icon {
    background: #27391f;
    color: #c6f36a
}

[data-theme="dark"] .education-card strong,
[data-theme="dark"] .project-card h3,
[data-theme="dark"] .certificate-card h3,
[data-theme="dark"] .profile-card strong,
[data-theme="dark"] .skill-card h3 {
    color: #edf2f7
}

[data-theme="dark"] .about-copy {
    color: #adb9c9
}

[data-theme="dark"] .heading-row>p,
[data-theme="dark"] .section-intro,
[data-theme="dark"] .skill-card p,
[data-theme="dark"] .certificate-card p,
[data-theme="dark"] .profile-card small {
    color: #a5b1c2
}

[data-theme="dark"] .section-kicker,
[data-theme="dark"] .certificate-meta,
[data-theme="dark"] .project-meta,
[data-theme="dark"] .card-overline {
    color: #9eacc0
}

[data-theme="dark"] .tech-stack li,
[data-theme="dark"] .skill-tags span {
    background: #202e43;
    border-color: #34445c;
    color: #c2ccda
}

[data-theme="dark"] .card-links a {
    color: #c6f36a
}

[data-theme="dark"] .card-links a:hover {
    color: #e0ffac
}

[data-theme="dark"] .contact-section,
[data-theme="dark"] .footer {
    background: #0b111d
}

[data-theme="dark"] .footer {
    border-color: #243047
}

[data-theme="dark"] .nav-menu {
    background: #101827;
    border-color: #2e3b50
}

@media(max-width:720px) {
    .nav-menu .theme-toggle {
        align-self: flex-start;
        margin: 8px 10px
    }
}

@media(prefers-reduced-motion:reduce) {

    .hero-copy>*,
    .hero-panel,
    .orbit-one,
    .orbit-two,
    .status-dot {
        animation: none !important
    }

    .reveal,
    .reveal.is-visible {
        opacity: 1;
        transform: none;
        transition: none
    }
}