:root {
    --mint: #25B992;
    /* primary accent */
    --mint-deep: #178A6C;
    /* hover / darker */
    --mint-bright: #3FE0AF;
    /* highlights on dark */
    --mint-soft: #E4F6EF;
    /* soft fills, chips */
    --mist: rgba(37, 185, 146, .12);
    --ink: #0D211C;
    /* near-black green */
    --slate: #4C6A5F;
    /* muted text */
    --paper: #FFFFFF;
    --fog: #F5FBF9;
    /* alt section bg */
    --dark: #071E18;
    /* contact band / footer */
    --line: rgba(13, 124, 96, .14);
    --navh: 68px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --ease: cubic-bezier(.22, .61, .36, 1);
    --disp: 'Sora', sans-serif;
    --body: 'Manrope', system-ui, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
    overflow-x: clip
}

body {
    font-family: var(--body);
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    overflow-x: clip;
    line-height: 1.55;
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
    text-rendering: optimizeLegibility
}

::selection {
    background: var(--mint);
    color: #04120D
}

::-webkit-scrollbar {
    width: 10px
}

::-webkit-scrollbar-thumb {
    background: rgba(37, 185, 146, .35);
    border-radius: 99px
}

::-webkit-scrollbar-track {
    background: transparent
}

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

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

button,
input {
    font: inherit;
    color: inherit
}

:focus-visible {
    outline: 2px solid var(--mint);
    outline-offset: 3px;
    border-radius: 4px
}

.container {
    width: min(1160px, 92%);
    margin-inline: auto
}

.mono {
    font-family: var(--mono)
}

/* Section head pattern (identity element) */
.sec-head {
    display: flex;
    align-items: flex-end;
    gap: 28px;
    margin-bottom: 52px;
    position: relative
}

.sec-mark {
    margin-left: auto;
    color: #BFE3D8;
    flex: 0 0 auto
}

.sec-kicker {
    font-family: var(--mono);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .22em;
    color: var(--mint-deep);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sec-kicker::before {
    content: "";
    width: 9px;
    height: 9px;
    background: var(--mint);
    transform: rotate(45deg)
}

.sec-title {
    font-family: var(--disp);
    font-weight: 700;
    letter-spacing: -.02em;
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
    line-height: 1.05;
    position: relative;
    display: inline-block;
}

.sec-title::after {
    /* underline draw */
    content: "";
    position: absolute;
    left: 0;
    bottom: -12px;
    width: 74px;
    height: 3px;
    border-radius: 3px;
    background: var(--mint);
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform .9s var(--ease) .15s;
}

.sec-head.in .sec-title::after {
    transform: scaleX(1)
}

section.block {
    padding: clamp(84px, 11vh, 128px) 0;
    position: relative;
    scroll-margin-top: calc(var(--navh) + var(--safe-top) - 8px)
}

/* faint graticule texture on light sections */
.block::before {
    /* lat lines */
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .5;
    background: repeating-linear-gradient(to bottom, transparent 0 139px, var(--line) 139px 140px);
}

.block::after {
    /* lng lines */
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .5;
    background: repeating-linear-gradient(to right, transparent 0 139px, var(--line) 139px 140px);
}

/* Reveal system */
html.no-js .rev {
    opacity: 1 !important;
    transform: none !important
}

/* without JS there is no map to sit the copy on — keep the hero legible */
html.no-js .hero {
    background: #0A2A22
}

html.no-js .scrim-l {
    display: none
}

.rev {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: var(--d, 0s)
}

.rev.in {
    opacity: 1;
    transform: none
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 90;
    height: calc(var(--navh) + var(--safe-top));
    padding-top: var(--safe-top);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-inline: clamp(18px, 4vw, 56px);
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(14px) saturate(1.3);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .4s, box-shadow .4s;
}

.nav-panel {
    display: contents
}

.nav.scrolled {
    border-color: var(--line);
    box-shadow: 0 10px 30px -18px rgba(7, 52, 41, .25)
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: var(--disp);
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: -.01em
}

/* .brand .cross {
    width: 30px;
    height: 30px;
    color: var(--mint-deep);
    animation: spin 14s linear infinite
} */

.brand .logo {
    width: 34px;
    height: 34px;
    display: block;
    border-radius: 8px
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.nav-links {
    display: flex;
    gap: clamp(14px, 2.4vw, 30px);
    list-style: none
}

.nav-links a {
    position: relative;
    font-weight: 600;
    font-size: .9rem;
    padding: 6px 2px;
    color: var(--slate);
    transition: color .3s
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background: var(--mint);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ease)
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--ink)
}

.nav-links a.active::after,
.nav-links a:hover::after {
    transform: scaleX(1)
}

.nav-cta {
    font-family: var(--mono);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    color: #fff;
    background: var(--mint);
    padding: 9px 16px;
    border-radius: 99px;
    transition: background .3s, transform .3s
}

.nav-cta:hover {
    background: var(--mint-deep);
    transform: translateY(-1px)
}

.burger {
    display: none;
    width: 44px;
    height: 44px;
    margin-right: -6px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px
}

.burger span {
    display: block;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    margin: 6px 0;
    transition: .3s var(--ease)
}

.nav-open .burger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg)
}

.nav-open .burger span:nth-child(2) {
    opacity: 0
}

.nav-open .burger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg)
}

#progress {
    position: absolute;
    bottom: -1px;
    left: 0;
    height: 2.5px;
    width: 100%;
    background: transparent
}

#progress i {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--mint), var(--mint-bright))
}

@media (max-width:920px) {
    .burger {
        display: block
    }

    .nav-panel {
        position: absolute;
        top: calc(var(--navh) + var(--safe-top));
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        gap: 4px;
        max-height: calc(100svh - var(--navh) - var(--safe-top));
        overflow-y: auto;
        overscroll-behavior: contain;
        background: #fff;
        padding: 12px clamp(18px, 5vw, 40px) calc(24px + var(--safe-bottom));
        border-bottom: 1px solid var(--line);
        box-shadow: 0 30px 40px -30px rgba(7, 52, 41, .3);
    }

    .nav-open .nav-panel {
        display: flex
    }

    .nav-panel .nav-links {
        flex-direction: column;
        gap: 0;
        width: 100%
    }

    .nav-links li {
        padding: 0;
        border-bottom: 1px dashed var(--line)
    }

    .nav-links a {
        display: flex;
        align-items: center;
        min-height: 48px;
        font-size: .98rem;
        padding: 0
    }

    .nav-links a::after {
        bottom: 12px;
        right: auto;
        width: 24px
    }

    .nav-cta {
        margin-top: 16px;
        text-align: center;
        display: inline-block;
        width: max-content;
        margin-inline: auto;
        padding: 12px 22px
    }

    body.menu-open {
        overflow: hidden
    }
}

.hero {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 640px;
    background: #0E2B24;
    overflow: hidden
}

#heroMap,
#fallbackCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%
}

.map-tint {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: var(--mint);
    opacity: .14;
    mix-blend-mode: color
}

.scrim-l {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(102deg, rgba(5, 32, 26, .88) 0%, rgba(5, 32, 26, .52) 36%, rgba(5, 32, 26, .14) 60%, transparent 80%)
}

.scrim-b {
    position: absolute;
    inset: auto 0 0 0;
    height: 18%;
    pointer-events: none;
    background: linear-gradient(to top, rgba(5, 32, 26, .45), transparent)
}

.hero-inner {
    position: relative;
    z-index: 5;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px
}

.kicker {
    font-family: var(--mono);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .24em;
    color: #BFF3E3;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: none
}

.kicker .pulse {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--mint-bright);
    box-shadow: 0 0 0 0 rgba(63, 224, 175, .7);
    animation: pulse 2.4s infinite
}

@keyframes pulse {
    70% {
        box-shadow: 0 0 0 11px rgba(63, 224, 175, 0)
    }

    100% {
        box-shadow: 0 0 0 11px rgba(63, 224, 175, 0)
    }
}

.hero h1 {
    font-family: var(--disp);
    font-weight: 800;
    letter-spacing: -.03em;
    color: #fff;
    line-height: .98;
    font-size: clamp(3rem, 8.4vw, 6.6rem)
}

.hero h1 .outline {
    color: var(--mint-bright);
    text-shadow: none
}

@supports not (-webkit-text-stroke:1px #fff) {
    .hero h1 .outline {
        color: var(--mint-bright)
    }
}

.lede {
    max-width: 56ch;
    color: #D7EFE4;
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    font-weight: 500
}

.cta-row {
    display: flex;
    gap: 14px;
    margin-top: 8px;
    flex-wrap: wrap
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--mono);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .06em;
    padding: 13px 22px;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .3s var(--ease), background .3s, border-color .3s, color .3s
}

.btn-primary {
    background: var(--mint);
    color: #04150F
}

.btn-primary:hover {
    background: var(--mint-bright);
    transform: translateY(-2px)
}

.btn-ghost {
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
    background: rgba(255, 255, 255, .04)
}

.btn-ghost:hover {
    background: rgba(63, 224, 175, .14);
    border-color: var(--mint-bright);
    transform: translateY(-2px)
}

/* live readout (bottom-right) */
.readout {
    position: absolute;
    right: clamp(18px, 3vw, 44px);
    bottom: clamp(90px, 12vh, 120px);
    z-index: 5;
    font-family: var(--mono);
    font-size: .74rem;
    color: #CFF6E9;
    min-width: 172px;
    background: rgba(5, 32, 26, .68);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(63, 224, 175, .28);
    border-radius: 12px;
    padding: 12px 14px;
    letter-spacing: .04em
}

.readout div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 2.5px 0
}

.readout b {
    color: #8FE9CE;
    font-weight: 600
}

.scalebar {
    margin-top: 8px;
    padding-top: 9px;
    border-top: 1px dashed rgba(63, 224, 175, .3);
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9FE7D2
}

.scalebar .bar {
    flex: 1;
    height: 0;
    border-bottom: 1.5px solid #9FE7D2;
    position: relative
}

.scalebar .bar::before,
.scalebar .bar::after {
    content: "";
    position: absolute;
    top: -4px;
    width: 1.5px;
    height: 8px;
    background: #9FE7D2
}

.scalebar .bar::after {
    right: 0;
    left: auto
}

.scrollcue {
    position: absolute;
    left: clamp(18px, 3vw, 44px);
    bottom: 34px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #BFF3E3;
    font-family: var(--mono);
    font-size: .62rem;
    letter-spacing: .3em;
    transform: rotate(0deg)
}

.scrollcue .line {
    width: 1.5px;
    height: 44px;
    background: rgba(255, 255, 255, .18);
    position: relative;
    overflow: hidden;
    border-radius: 2px
}

.scrollcue .line::after {
    content: "";
    position: absolute;
    top: -30%;
    left: 0;
    width: 100%;
    height: 30%;
    background: var(--mint-bright);
    animation: cue 2.2s var(--ease) infinite
}

@keyframes cue {
    to {
        top: 100%
    }
}

/* hero marker chip */
.pin-chip {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    border: 2px solid var(--mint);
    color: var(--mint-deep);
    font-family: var(--mono);
    font-weight: 700;
    font-size: .8rem;
    box-shadow: 0 6px 18px rgba(4, 30, 24, .35);
    position: relative
}

.pin-chip::after {
    content: "";
    position: absolute;
    inset: -9px;
    border-radius: 50%;
    border: 1.5px solid var(--mint);
    animation: pulse 2.6s infinite
}

@media (max-width:920px) {
    .readout {
        display: none
    }

    .hero {
        min-height: 620px
    }

    .hero-inner {
        justify-content: flex-end;
        gap: 18px;
        padding-bottom: calc(88px + var(--safe-bottom))
    }

    /* the desktop left-to-right scrim stops working once the copy
       fills the full width — go vertical so the text keeps contrast */
    .scrim-l {
        background:
            linear-gradient(to top,
                rgba(5, 32, 26, .97) 0%,
                rgba(5, 32, 26, .93) 20%,
                rgba(5, 32, 26, .82) 36%,
                rgba(5, 32, 26, .64) 50%,
                rgba(5, 32, 26, .55) 64%,
                rgba(5, 32, 26, .34) 78%,
                rgba(5, 32, 26, .5) 100%)
    }

    .scrim-b {
        height: 34%
    }

    .map-tint {
        opacity: .1
    }

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

    .lede {
        font-size: 1.02rem;
        line-height: 1.62;
        max-width: 46ch
    }

    /* decorative map marker sits behind the copy on narrow screens */
    .pin-chip {
        display: none
    }

    /* keep the map decorative: without this, touch-drag on the hero
       map traps the page scroll on phones */
    #heroMap .maplibregl-canvas-container {
        pointer-events: none
    }

    .scrollcue {
        left: clamp(18px, 3vw, 44px);
        transform: none;
        bottom: calc(18px + var(--safe-bottom));
        gap: 6px
    }

    .scrollcue .line {
        height: 28px
    }
}

@media (max-width:520px) {
    .hero-inner {
        gap: 16px;
        padding-bottom: calc(84px + var(--safe-bottom))
    }

    .hero h1 {
        font-size: clamp(2.45rem, 12.2vw, 3.4rem)
    }

    .kicker {
        font-size: .66rem;
        letter-spacing: .16em;
        gap: 8px
    }

    .cta-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-top: 4px
    }

    .btn {
        justify-content: center;
        width: 100%;
        padding: 14px 18px
    }
}

@media (max-height:700px) {
    .scrollcue {
        display: none
    }
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(300px, 5fr) 7fr;
    gap: clamp(40px, 6vw, 84px);
    align-items: center
}

.portrait-wrap {
    position: relative;
    width: min(100%, 420px)
}

.contours {
    position: absolute;
    inset: -9% -14%;
    color: var(--mint);
    opacity: .5;
    z-index: 0
}

.contours path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 2.6s var(--ease)
}

.portrait-wrap.in .contours path:nth-child(1) {
    stroke-dashoffset: 0
}

.portrait-wrap.in .contours path:nth-child(2) {
    stroke-dashoffset: 0;
    transition-delay: .35s
}

.portrait-wrap.in .contours path:nth-child(3) {
    stroke-dashoffset: 0;
    transition-delay: .7s
}

.ring {
    position: absolute;
    inset: -16px -16px auto auto;
    width: calc(100% + 42px);
    aspect-ratio: 1;
    border: 1.5px dashed rgba(37, 185, 146, .4);
    border-radius: 50%;
    animation: spin 46s linear infinite reverse;
    z-index: 0;
    pointer-events: none
}

.portrait {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: .82;
    border-radius: 20px;
    overflow: hidden;
    background: #D9EFE6;
    box-shadow: 0 30px 70px -40px rgba(7, 52, 41, .5)
}

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

.portrait::after {
    content: "";
    position: absolute;
    inset: auto auto 12px 12px;
    width: 34px;
    height: 34px;
    border-left: 2px solid var(--mint);
    border-bottom: 2px solid var(--mint)
}

/* crop mark */
.portrait-cap {
    margin-top: 16px;
    font-family: var(--mono);
    font-size: .7rem;
    letter-spacing: .18em;
    color: var(--slate);
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    row-gap: 4px
}

.portrait-cap b {
    color: var(--mint-deep);
    font-weight: 600
}

.about-copy .lede-sm {
    color: var(--slate);
    max-width: 54ch;
    font-size: 1.02rem;
    margin-bottom: 26px
}

.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px 34px
}

.fact {
    border-left: 2px solid var(--mint);
    padding-left: 14px;
    background: linear-gradient(90deg, var(--mist), transparent)
}

.fact dt {
    font-family: var(--mono);
    font-size: .68rem;
    letter-spacing: .18em;
    color: var(--slate);
    text-transform: uppercase;
    margin-bottom: 3px
}

.fact dd {
    font-weight: 700;
    font-family: var(--disp);
    font-size: .98rem
}

.timeline {
    position: relative;
    padding-left: 34px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 26px
}

.timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 14px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(var(--mint) 0%, var(--line) 90%);
    border-radius: 2px
}

.tl-item {
    position: relative;
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 50px;
    padding: 8px 0
}

.tl-item::before {
    content: "";
    position: absolute;
    left: -34px;
    top: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--mint);
    box-shadow: 0 0 0 4px var(--mist)
}

.tl-item.in::before {
    animation: node .7s var(--ease)
}

@keyframes node {
    from {
        transform: scale(.2)
    }
}

.date-chip {
    font-family: var(--mono);
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .1em;
    color: var(--mint-deep);
    background: var(--mist);
    border: 1px solid rgba(37, 185, 146, .3);
    padding: 6px 10px;
    border-radius: 8px;
    min-width: 184px;
    text-align: center;
    align-self: start
}

.tl-body h3 {
    font-family: var(--disp);
    font-size: 1.22rem;
    font-weight: 700;
    letter-spacing: -.01em
}

.tl-org {
    color: var(--mint-deep);
    font-weight: 600;
    margin: 2px 0 8px
}

.tl-note {
    color: var(--slate);
    margin-bottom: 6px;
    font-size: .95rem
}

.tl-body ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px
}

.tl-body li {
    position: relative;
    padding-left: 18px;
    color: var(--slate);
    font-size: .94rem
}

.tl-body li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .62em;
    width: 7px;
    height: 7px;
    background: var(--mint);
    transform: rotate(45deg) scale(.8)
}

@media (max-width:680px) {
    .tl-item {
        grid-template-columns: 1fr;
        gap: 10px
    }

    .timeline {
        padding-left: 24px
    }

    .tl-item::before {
        left: -24px
    }

    .date-chip {
        justify-self: start;
        min-width: 0
    }

    .sec-head {
        margin-bottom: 36px;
        gap: 16px;
        flex-wrap: nowrap
    }

    .sec-head>div {
        min-width: 0
    }

    .sec-mark {
        width: 56px;
        height: 56px
    }
}

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

.edu-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 26px;
    position: relative;
    transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
    overflow: hidden
}

.edu-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 185, 146, .5);
    box-shadow: 0 24px 44px -28px rgba(9, 90, 68, .4)
}

.edu-grade {
    position: absolute;
    top: 14px;
    right: 18px;
    font-family: var(--mono);
    font-size: .72rem;
    font-weight: 600;
    color: var(--mint-deep);
    background: var(--mint-soft);
    padding: 5px 10px;
    border-radius: 99px
}

.edu-card h3 {
    font-family: var(--disp);
    font-size: 1.08rem;
    font-weight: 700;
    max-width: 76%
}

.edu-degree {
    color: var(--slate);
    margin: 4px 0 12px;
    font-size: .95rem
}

.edu-foot {
    display: flex;
    justify-content: space-between;
    border-top: 1px dashed var(--line);
    padding-top: 12px;
    margin-top: 18px;
    font-family: var(--mono);
    font-size: .72rem;
    color: var(--slate)
}

@media (max-width:860px) {
    .edu-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin-inline: auto;
        gap: 16px
    }
}

.skills-grid {
    display: grid;
    grid-template-columns: 1.15fr .9fr;
    gap: clamp(34px, 5vw, 64px)
}

.skill-group {
    margin-bottom: 28px
}

.skill-label {
    font-family: var(--mono);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .2em;
    color: var(--slate);
    text-transform: uppercase;
    margin-bottom: 12px;
    display: flex;
    gap: 10px;
    align-items: center
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    list-style: none
}

.chip {
    font-size: .86rem;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 99px;
    background: var(--mint-soft);
    border: 1px solid transparent;
    color: #0E4A3B;
    transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s
}

.chip:hover {
    background: var(--mint);
    color: #fff;
    border-color: var(--mint-deep);
    transform: translateY(-3px)
}

.focus-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin-bottom: 26px
}

.focus-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: #1E3A31;
    font-size: .97rem
}

.tick {
    flex: 0 0 auto;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: var(--mint-soft);
    display: grid;
    place-items: center;
    margin-top: -1px
}

.now-box {
    border-left: 3px solid var(--mint);
    background: linear-gradient(90deg, var(--mist), transparent);
    padding: 16px 18px;
    border-radius: 0 12px 12px 0;
    font-size: .95rem;
    color: #173B31
}

.now-box .k {
    font-family: var(--mono);
    font-size: .66rem;
    letter-spacing: .2em;
    display: block;
    margin-bottom: 4px;
    color: var(--mint-deep)
}

@media (max-width:860px) {
    .skills-grid {
        grid-template-columns: 1fr
    }
}

.proj-grid {
    display: grid;
    gap: 22px
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 30px;
    position: relative;
    transition: transform .4s var(--ease), box-shadow .4s, border-color .4s
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 185, 146, .5);
    box-shadow: 0 26px 50px -30px rgba(9, 90, 68, .45)
}

.card .idx {
    position: absolute;
    top: 22px;
    right: 26px;
    font-family: var(--mono);
    font-size: .7rem;
    color: #BFE3D8;
    letter-spacing: .1em
}

.card h3 {
    font-family: var(--disp);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 8px;
    padding-right: 64px
}

.card p {
    color: var(--slate);
    font-size: .95rem;
    max-width: 62ch
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 16px;
    font-family: var(--mono);
    font-size: .68rem;
    letter-spacing: .14em;
    color: var(--mint-deep)
}

.tags span::before {
    content: "◆";
    margin-right: 7px;
    font-size: .55rem
}

.lab-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column
}

.lab-head {
    padding: 24px 24px 2px;
    display: flex;
    flex-direction: column;
    gap: 4px
}

.lab-title {
    margin: 0;
    padding-right: 92px
}

.lab-desc {
    color: var(--slate);
    font-size: .92rem;
    max-width: 62ch;
    margin-top: 4px
}

.lab-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    background: #fff
}

.tool-label {
    font-family: var(--mono);
    font-size: .78rem;
    font-weight: 600;
    color: var(--ink)
}

.btn-mini {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .05em;
    padding: 9px 14px;
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
    border: 1px solid rgba(37, 185, 146, .4);
    color: var(--ink);
    transition: .25s
}

.btn-mini:hover:not(:disabled) {
    background: var(--mint-soft);
    border-color: var(--mint)
}

.btn-mini:disabled {
    opacity: .4;
    cursor: not-allowed
}

#fileInput {
    display: none
}

.slider-wrap {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: .7rem;
    color: var(--slate)
}

input[type=range] {
    accent-color: var(--mint);
    width: 130px;
    height: 4px;
    cursor: pointer
}

#labMap {
    height: min(58vh, 520px);
    position: relative;
    background: #E9F2ED
}

.map-readout {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 5;
    font-family: var(--mono);
    font-size: .7rem;
    color: #CFE7DE;
    background: rgba(5, 32, 26, .72);
    padding: 7px 11px;
    border-radius: 9px;
    border: 1px solid rgba(63, 224, 175, .25);
    pointer-events: none
}

.lab-tilt {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 6;
    background: #fff
}

.map-offline {
    display: grid;
    place-items: center;
    height: min(58vh, 520px);
    font-family: var(--mono);
    font-size: .8rem;
    color: var(--slate);
    background: #EAF6F0;
    text-align: center;
    padding: 30px
}

.proj-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    margin-top: 22px
}

.contact {
    background: var(--dark);
    color: #DFF2EA;
    padding: clamp(90px, 13vh, 150px) 0 0;
    position: relative;
    overflow: hidden
}

.contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(to right, transparent 0 139px, rgba(63, 224, 175, .05) 139px 140px);
    pointer-events: none
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: clamp(30px, 5vw, 70px);
    align-items: center
}

.contact h2 {
    font-family: var(--disp);
    font-weight: 800;
    letter-spacing: -.02em;
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    line-height: 1.08;
    color: #fff
}

.contact h2 em {
    font-style: normal;
    color: var(--mint-bright)
}

.mail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 26px;
    max-width: 100%;
    background: var(--mint);
    color: #04150F;
    font-family: var(--mono);
    font-size: clamp(.8rem, 3.6vw, 1rem);
    font-weight: 600;
    letter-spacing: .04em;
    padding: 15px clamp(16px, 2.5vw, 24px);
    border-radius: 13px;
    overflow-wrap: anywhere;
    transition: background .3s, transform .3s
}

.mail-btn:hover {
    background: var(--mint-bright);
    transform: translateY(-2px)
}

.social-row {
    display: flex;
    gap: 12px;
    margin-top: 26px;
    flex-wrap: wrap
}

.pill-link {
    font-family: var(--mono);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .08em;
    border: 1px solid rgba(255, 255, 255, .28);
    color: #CFEFE3;
    padding: 9px 16px;
    border-radius: 99px;
    transition: .3s
}

.pill-link:hover {
    background: var(--mint);
    border-color: var(--mint);
    color: #04150F;
    transform: translateY(-2px)
}

.radar-wrap {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 300px
}

.radar {
    width: min(300px, 70%);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid rgba(63, 224, 175, .28);
    position: relative;
    background: radial-gradient(circle, rgba(63, 224, 175, .06), transparent 65%)
}

.radar::before {
    content: "";
    position: absolute;
    inset: 22%;
    border-radius: 50%;
    border: 1px dashed rgba(63, 224, 175, .22)
}

.radar .cross-l {
    position: absolute;
    background: rgba(63, 224, 175, .18)
}

.radar .cx {
    left: 0;
    right: 0;
    top: 50%;
    height: 1px
}

.radar .cy {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px
}

.sweep {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(63, 224, 175, .5), transparent 22%);
    animation: sweep 5.5s linear infinite;
    -webkit-mask: radial-gradient(circle, black 98%, transparent);
    mask: radial-gradient(circle, black 98%, transparent)
}

@keyframes sweep {
    to {
        transform: rotate(-360deg)
    }
}

.radar .blip {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mint-bright);
    box-shadow: 0 0 12px var(--mint-bright);
    animation: pulse 2.4s infinite
}

.contact-foot {
    margin-top: clamp(46px, 7vh, 80px);
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    font-family: var(--mono);
    font-size: .7rem;
    letter-spacing: .1em;
    color: #8FC9B8
}

/* to-top */
.totop {
    position: fixed;
    right: max(20px, env(safe-area-inset-right, 0px));
    bottom: calc(20px + var(--safe-bottom));
    z-index: 60;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(37, 185, 146, .5);
    background: #fff;
    display: grid;
    place-items: center;
    color: var(--mint-deep);
    box-shadow: 0 12px 26px -14px rgba(9, 90, 68, .6);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: .35s var(--ease)
}

.totop.show {
    opacity: 1;
    pointer-events: auto;
    transform: none
}

.totop:hover {
    background: var(--mint-soft)
}

@media (max-width:920px) {
    .about-grid {
        grid-template-columns: 1fr
    }

    .portrait-wrap {
        margin-inline: auto
    }
}

/* contact: stack before the email pill starts pushing the radar out */
@media (max-width:860px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px
    }

    .contact h2 {
        font-size: clamp(1.9rem, 7vw, 3rem)
    }

    .radar-wrap {
        min-height: 240px
    }

    .radar {
        width: min(230px, 64vw)
    }
}

@media (max-width:600px) {
    .lab-head {
        padding: 20px 16px 0
    }

    .lab-title {
        padding-right: 86px;
        font-size: 1.08rem
    }

    .lab-card .lab-title {
        padding-right: 86px
    }

    .lab-toolbar {
        padding: 12px;
        gap: 8px
    }

    .lab-toolbar .btn-mini {
        flex: 1 1 auto;
        justify-content: center
    }

    .slider-wrap {
        width: 100%;
        margin-left: 0;
        justify-content: space-between;
        gap: 12px;
        padding-top: 2px
    }

    .slider-wrap input[type=range] {
        flex: 1;
        width: auto;
        max-width: 210px
    }

    #labMap,
    .map-offline {
        height: clamp(320px, 52svh, 460px)
    }

    .map-readout {
        left: 10px;
        bottom: 10px;
        font-size: .66rem;
        padding: 6px 9px
    }
}

@media (max-width:520px) {
    .card {
        padding: 22px;
        border-radius: 16px
    }

    .lab-card {
        padding: 0
    }

    .card h3 {
        padding-right: 0
    }

    .card .idx {
        top: 18px;
        right: 18px;
        font-size: .62rem
    }    .chip {
        padding: 9px 14px;
        font-size: .82rem
    }

    .edu-card {
        padding: 22px
    }

    .edu-card h3 {
        max-width: 100%;
        padding-right: 0
    }

    .edu-grade {
        position: static;
        display: inline-flex;
        margin-bottom: 10px
    }

    .edu-foot {
        flex-wrap: wrap;
        gap: 6px 12px
    }

    .contact {
        padding-top: 78px
    }

    .contact h2 {
        font-size: clamp(1.8rem, 8.6vw, 2.5rem)
    }

    .mail-btn {
        width: 100%;
        padding: 14px 16px
    }

    .social-row {
        gap: 8px
    }

    .pill-link {
        padding: 10px 14px
    }

    .contact-foot {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding-bottom: calc(20px + var(--safe-bottom))
    }
}

@media (max-width:420px) {
    /* let the live badge sit on its own line instead of
       colliding with the playground title */
    .lab-card .idx {
        position: static;
        display: block;
        text-align: right;
        padding: 14px 16px 0
    }

    .lab-card .lab-title {
        padding-right: 0
    }

    .lab-head {
        padding-top: 4px
    }

    .tags {
        gap: 8px 14px;
        font-size: .64rem
    }
}

@media (max-width:380px) {
    /* below this the section header can't hold the title and its
       action side by side — drop the action onto its own line */
    .sec-head {
        flex-wrap: wrap
    }

    .social-row {
        gap: 6px
    }

    .pill-link {
        padding: 9px 11px;
        font-size: .68rem;
        letter-spacing: .04em
    }
}

/* touch devices: kill sticky hover states and lift-on-tap transforms */
@media (max-width:320px) {
    .mail-btn {
        font-size: .74rem;
        letter-spacing: .02em;
        padding: 13px 12px
    }
}

@media (hover:none) {
    .card:hover,
    .edu-card:hover,
    .chip:hover,
    .pill-link:hover,
    .btn:hover,
    .mail-btn:hover,
    .nav-cta:hover {
        transform: none
    }

    .chip:hover {
        background: var(--mint-soft);
        color: #0E4A3B;
        border-color: transparent
    }

    .card:hover,
    .edu-card:hover {
        box-shadow: none;
        border-color: var(--line)
    }

    #heroMap .maplibregl-canvas-container {
        pointer-events: none
    }
}

@media (max-width:920px) {
    #heroMap .maplibregl-ctrl-bottom-right {
        bottom: calc(6px + var(--safe-bottom))
    }

    .lab-tilt {
        top: 10px;
        right: 10px;
        padding: 8px 11px;
        font-size: .68rem
    }
}

/* nicer line breaking where the browser supports it */
h1,
h2,
h3,
.sec-title,
.contact h2 {
    text-wrap: balance
}

p,
li {
    text-wrap: pretty
}

@media print {
    html,
    body {
        overflow: visible;
        background: #fff
    }

    .nav,
    #heroMap,
    .map-tint,
    .scrim-l,
    .scrim-b,
    .readout,
    .scrollcue,
    #labMap,
    .lab-toolbar,
    .lab-tilt,
    .radar-wrap,
    .totop,
    .sec-mark,
    .block::before,
    .block::after {
        display: none !important
    }

    .hero {
        height: auto;
        min-height: 0;
        background: #fff;
        padding: 24px 0
    }

    .hero-inner {
        height: auto;
        padding: 0
    }

    .hero h1,
    .hero h1 .outline,
    .kicker,
    .lede {
        color: #0D211C
    }

    .contact,
    .contact h2,
    .contact h2 em {
        background: #fff;
        color: #0D211C
    }

    .rev,
    .sec-head .sec-title {
        opacity: 1 !important;
        transform: none !important
    }

    .sec-title::after {
        transform: scaleX(1)
    }

    section.block {
        padding: 24px 0;
        break-inside: avoid
    }

    a {
        text-decoration: underline
    }

    .contact a,
    .pill-link,
    .mail-btn {
        background: none;
        color: #0D211C;
        border-color: #999
    }

    .contact-foot {
        color: #444;
        border-color: #ccc
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: .001s !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001s !important
    }

    .rev {
        opacity: 1;
        transform: none
    }

    .sec-title::after {
        transform: scaleX(1)
    }

    .contours path {
        stroke-dashoffset: 0
    }

    .sweep {
        animation: none;
        background: conic-gradient(from -25deg, rgba(63, 224, 175, .4), transparent 20%);
        transform: rotate(140deg)
    }
}