:root {
    --navy: #10283d;
    --teal: #087f79;
    --ink: #183247;
    --muted: #526577;
    --line: #dbe5e8;
    --light: #f2f7f8
}

* {
    box-sizing: border-box
}

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

body {
    margin: 0;
    font: 16px/1.7 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: #fff
}

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

a:hover {
    text-decoration: underline
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid #e6a34c;
    outline-offset: 4px
}

.wrap {
    width: min(1100px, 90%);
    margin: auto
}

header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 5
}

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

.brand {
    font-weight: 750;
    white-space: nowrap
}

.brand span {
    display: inline-grid;
    place-items: center;
    background: var(--navy);
    color: white;
    border-radius: 9px;
    width: 38px;
    height: 38px;
    margin-right: 8px
}

.links {
    display: flex;
    gap: 23px;
    font-size: 14px;
    font-weight: 600;
    flex-wrap: wrap
}

.hero,
.contact {
    background: var(--navy);
    color: white
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 65px;
    align-items: center;
    padding: 86px 0 100px
}

.eyebrow {
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .17em;
    color: var(--teal);
    margin: 0 0 14px
}

.hero .eyebrow,
.contact .eyebrow {
    color: #8ce1d5
}

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

h1 {
    font-size: clamp(40px, 5.5vw, 70px);
    line-height: 1.08;
    letter-spacing: -.045em;
    margin-bottom: 24px
}

h1 em {
    font-style: normal;
    color: #8ce1d5
}

h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    line-height: 1.2;
    letter-spacing: -.025em;
    margin-bottom: 20px
}

.hero h2 {
    font-size: 27px;
    margin-bottom: 10px
}

.lead {
    color: #d3e0e9;
    font-size: 18px;
    max-width: 610px
}

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

.btn {
    display: inline-block;
    border: 1px solid transparent;
    border-radius: 7px;
    padding: 12px 20px;
    font: inherit;
    font-weight: 650;
    cursor: pointer
}

.primary {
    background: #8ce1d5;
    color: #10283d
}

.outline {
    border-color: #7893a4;
    background: transparent;
    color: white
}

.profile {
    padding: 35px;
    border: 1px solid #456174;
    border-radius: 20px;
    background: #19384e
}

.profile h2 {
    font-size: 25px
}

.profile p:not(.eyebrow) {
    color: #c9dce5
}

.profile a {
    color: #8ce1d5;
    font-weight: 650
}

.monogram {
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: #d8f3ee;
    color: var(--navy);
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 28px
}

.stats {
    position: relative;
    margin-top: -32px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 14px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    box-shadow: 0 10px 30px #10283d0b
}

.stats div {
    padding: 24px 30px;
    display: flex;
    flex-direction: column
}

.stats div+div {
    border-left: 1px solid var(--line)
}

.stats strong {
    font-size: 36px;
    color: var(--teal);
    line-height: 1.2
}

.stats span {
    font-size: 14px;
    color: var(--muted)
}

.section {
    padding: 76px 0
}

.intro {
    max-width: 850px;
    font-size: 19px;
    color: var(--muted)
}

.tint {
    background: var(--light)
}

.timeline {
    border-left: 2px solid #b6d6d3;
    margin: 32px 0 0 8px;
    padding-left: 30px;
    display: grid;
    gap: 20px
}

.timeline article {
    position: relative;
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 25px 30px
}

.timeline article:before {
    content: '';
    position: absolute;
    left: -39px;
    top: 30px;
    width: 12px;
    height: 12px;
    border: 3px solid var(--light);
    background: var(--teal);
    border-radius: 50%
}

.date,
.cards article>span {
    font-size: 12px;
    letter-spacing: .09em;
    color: var(--teal);
    font-weight: 750
}

h3 {
    font-size: 21px;
    line-height: 1.3;
    margin: 8px 0
}

.company {
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 12px
}

ul {
    padding-left: 20px;
    margin-bottom: 0;
    color: var(--muted)
}

li+li {
    margin-top: 5px
}

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

.cards article {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
    background: white
}

.cards p {
    color: var(--muted);
    margin: 0
}

.tools-title {
    margin-top: 35px
}

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

.tags span {
    background: #e5f2f0;
    color: #155e59;
    border-radius: 6px;
    padding: 7px 13px;
    font-size: 14px;
    font-weight: 600
}

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

.contact p {
    color: #d3e0e9
}

footer {
    display: flex;
    justify-content: space-between;
    padding: 24px 0;
    font-size: 14px;
    color: var(--muted)
}

[hidden] {
    display: none !important
}

@media(max-width:760px) {
    nav {
        align-items: flex-start;
        flex-direction: column;
        padding: 12px 0;
        gap: 8px
    }

    .links {
        gap: 8px 16px;
        font-size: 13px
    }

    html {
        scroll-padding-top: 125px
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 55px 0 70px
    }

    .stats div {
        padding: 16px 12px
    }

    .stats strong {
        font-size: 27px
    }

    .stats span {
        font-size: 12px
    }

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

    .section {
        padding: 50px 0
    }

    .timeline article {
        padding: 20px
    }

    .timeline {
        padding-left: 20px
    }

    .timeline article:before {
        left: -29px
    }
}

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

    .profile {
        padding: 24px
    }

    .btn {
        padding: 10px 14px
    }

    .stats {
        width: 94%
    }
}

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

/* Animated portfolio theme */
:root {
    --navy: #101b35;
    --teal: #087e78;
    --ink: #17243c;
    --muted: #53647c;
    --line: #dbe4ec;
    --light: #eef4f8;
    --paper: #fff;
    --accent: #68f0ce
}

body {
    background: var(--paper)
}

header {
    background: var(--paper);
    backdrop-filter: blur(16px)
}

.hero,
.contact {
    background: radial-gradient(ellipse at 85% 15%, #254b69 0, transparent 48%), linear-gradient(125deg, #10172f, #142c43);
    position: relative;
    overflow: hidden
}

.hero:before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(#a9e6ff0b 1px, transparent 1px), linear-gradient(90deg, #a9e6ff0b 1px, transparent 1px);
    background-size: 45px 45px;
    mask-image: linear-gradient(90deg, transparent, black)
}

.hero-grid {
    position: relative;
    min-height: 570px
}

.hero h1 em {
    background: linear-gradient(100deg, #a5fce3, #80c9ff, #a5fce3);
    background-size: 200%;
    background-clip: text;
    color: transparent;
    animation: shine 7s ease infinite
}

.role-line {
    color: #a5fce3;
    font-size: 14px;
    letter-spacing: .04em
}

.role-line span {
    margin: 0 8px
}

.profile {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff15, #ffffff06);
    backdrop-filter: blur(12px);
    box-shadow: 0 24px 70px #0004;
    border-color: #ffffff35
}

.monogram {
    position: relative;
    background: linear-gradient(140deg, #b3ffe8, #7db9f8);
    box-shadow: 0 0 35px #80f0d34a;
    animation: float 5s ease-in-out infinite
}

.orbit {
    position: absolute;
    width: 250px;
    height: 250px;
    border: 1px solid #a5fce333;
    border-radius: 50%;
    right: -85px;
    top: -90px;
    animation: spin 20s linear infinite
}

.orbit:after {
    content: '';
    position: absolute;
    inset: 25px;
    border: 1px dashed #a5fce344;
    border-radius: 50%
}

.orbit i {
    position: absolute;
    width: 9px;
    height: 9px;
    background: #a5fce3;
    border-radius: 50%;
    top: 50%;
    left: -4px;
    box-shadow: 0 0 15px #a5fce3
}

.orbit i:nth-child(2) {
    top: 10%;
    left: 80%
}

.orbit i:nth-child(3) {
    top: 90%;
    left: 80%
}

.stats,
.timeline article,
.cards article {
    background: var(--paper);
    box-shadow: 0 10px 32px #10283d0a
}

.cards article,
.timeline article,
.btn,
.control {
    transition: transform .25s, box-shadow .25s, border-color .25s, background .25s
}

.cards article:hover,
.timeline article:hover {
    transform: translateY(-4px);
    border-color: #62bfb5;
    box-shadow: 0 15px 40px #0c6c7520
}

.btn:hover,
.control:hover {
    transform: translateY(-2px);
    text-decoration: none
}

.primary {
    background: linear-gradient(110deg, #a5fce3, #8bcaff)
}

.control {
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    border-radius: 30px;
    padding: 8px 14px;
    cursor: pointer;
    white-space: nowrap
}

.control[aria-pressed=true] {
    background: var(--teal);
    color: var(--paper);
    border-color: var(--teal)
}

.filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 24px
}

.links a.active {
    color: var(--teal);
    text-decoration: underline;
    text-underline-offset: 7px
}

.timeline details {
    margin-top: 12px
}

.timeline summary {
    cursor: pointer;
    color: var(--teal);
    font-weight: 650
}

.timeline details[open] summary {
    margin-bottom: 8px
}

#progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, #63f1cc, #82baff);
    z-index: 20
}

.reveal {
    animation: enter .7s both
}

.hero-grid>div {
    animation: enter .8s both
}

.profile {
    animation: enter 1s .12s both
}

html[data-theme=dark] {
    --paper: #111c2d;
    --ink: #e6edf7;
    --muted: #aebed1;
    --line: #304258;
    --light: #152338;
    --teal: #85e8d4
}

html[data-theme=dark] .tags span {
    background: #23443f;
    color: #b5f7e7
}

html[data-theme=dark] .control[aria-pressed=true] {
    color: #10283d
}

@keyframes enter {
    from {
        opacity: 0;
        transform: translateY(22px)
    }

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

@keyframes shine {
    50% {
        background-position: 100%
    }
}

@keyframes float {
    50% {
        transform: translateY(-7px)
    }
}

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

@media(max-width:760px) {
    nav {
        display: grid;
        grid-template-columns: 1fr auto
    }

    .links {
        grid-row: 2;
        grid-column: 1/-1
    }

    #theme {
        grid-column: 2;
        grid-row: 1
    }

    .hero-grid {
        min-height: 0
    }

    .profile {
        max-width: 500px
    }
}

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important
    }
}

/* Executive premium refinements */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden
}

.ambient {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(ellipse at 80% 25%, #14b8a62b, transparent 45%), radial-gradient(ellipse at 10% 80%, #4469b326, transparent 50%);
    animation: ambient 9s ease-in-out infinite alternate
}

.hero-grid {
    position: relative;
    min-height: 540px
}

.hero h1 {
    font-size: clamp(44px, 6.5vw, 82px);
    max-width: 800px
}

.hero h2 {
    font-size: clamp(18px, 2vw, 24px)
}

.profile {
    backdrop-filter: blur(16px);
    box-shadow: 0 24px 80px #0003
}

.btn {
    transition: transform .2s, box-shadow .2s
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px #14b8a633
}

.stats>div {
    transition: transform .25s
}

.stats>div:hover {
    transform: translateY(-4px)
}

#menu {
    display: none
}

.role-line {
    min-height: 28px
}

.role-line.swap {
    animation: roleSwap .45s ease both
}

@keyframes roleSwap {
    from {
        opacity: 0;
        transform: translateY(5px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@keyframes ambient {
    to {
        transform: scale(1.15) translate(-2%, 3%)
    }
}

@media(max-width:700px) {
    #menu {
        display: block
    }

    nav {
        position: relative;
        flex-wrap: wrap;
        gap: 8px
    }

    .links {
        display: none;
        width: 100%;
        order: 5;
        padding: 12px 0
    }

    .links.open {
        display: flex
    }

    .hero-grid {
        min-height: 0
    }

    .hero h1 {
        font-size: clamp(39px, 10vw, 62px)
    }
}

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

    .ambient,
    .role-line.swap {
        animation: none
    }

    .btn,
    .stats>div {
        transition: none
    }
}