:root {
    color-scheme: light;
    --paper: #f1f3f6;
    --white: #fff;
    --ink: #173b70;
    --muted: #66778a;
    --line: #d8e0e8;
    --blue: #347fe0;
    --blue-deep: #244f9f;
    --blue-pale: #e2ebf8;
    --dark: #10233b;
    --font-body: "DM Sans", "Segoe UI", sans-serif;
    --font-display: "Manrope", "Segoe UI", sans-serif;
    --container: 1160px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 4px;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(var(--container), calc(100% - 64px));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 20;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    transform: translateY(-160%);
    background: var(--blue);
    color: var(--ink);
    font-weight: 700;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    z-index: 10;
    top: 0;
    border-bottom: 1px solid rgb(255 255 255 / 14%);
    background: linear-gradient(112deg, var(--blue) 0%, var(--blue-deep) 100%);
    backdrop-filter: blur(14px);
}

.header-inner,
.site-nav,
.brand,
.hero-actions,
.hero-proof,
.section-kicker,
.project-topline,
.project-links,
.social-links,
.footer-inner {
    display: flex;
    align-items: center;
}

.header-inner {
    min-height: 78px;
    justify-content: space-between;
}

.brand {
    gap: 10px;
}

.brand-mark {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border-radius: 50%;
    background: rgb(255 255 255 / 16%);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 800;
}

.brand-mark span {
    color: var(--white);
}

.brand-name {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--white);
}

.site-nav {
    gap: 34px;
    color: rgb(255 255 255 / 88%);
    font-size: 13px;
    font-weight: 600;
}

.site-nav a:not(.nav-contact):hover,
.text-link:hover,
.underlined-link:hover {
    color: #dceaff;
}

.nav-contact {
    gap: 14px;
    padding: 11px 16px;
    border: 1px solid rgb(255 255 255 / 45%);
    border-radius: 3px;
    color: var(--white);
}

.nav-contact span,
.button span,
.text-link span,
.underlined-link span {
    font-size: 16px;
}

.menu-toggle {
    display: none;
}

.hero {
    display: grid;
    min-height: 620px;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 24px;
    padding-block: 70px 80px;
}

.hero-copy {
    position: relative;
    z-index: 1;
    padding-top: 8px;
}

.eyebrow,
.section-kicker,
.contact-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 22px;
    color: #485c73;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 0 4px rgb(52 127 224 / 15%);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

.hero h1 {
    max-width: 680px;
    margin-bottom: 23px;
    font-family: var(--font-display);
    font-size: clamp(44px, 5.7vw, 72px);
    font-weight: 700;
    letter-spacing: -.075em;
    line-height: 1.08;
}

.hero h1 span,
.section-title span {
    color: var(--blue);
}

.hero-lead {
    max-width: 480px;
    margin-bottom: 27px;
    color: #5d6e83;
    font-size: 22px;
    line-height: 1.75;
}

.hero-actions {
    gap: 25px;
}

.button {
    display: inline-flex;
    min-height: 49px;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 12px 19px;
    border: 0;
    border-radius: 3px;
    font-size: 15px;
    font-weight: 700;
    transition: transform .2s ease, background .2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-dark {
    background: var(--blue-deep);
    color: var(--white);
}

.button-dark:hover {
    background: #183c7b;
}

.text-link,
.underlined-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    transition: color .2s ease;
}

.hero-proof {
    gap: 13px;
    margin-top: 50px;
}

.proof-number {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.07em;
}

.proof-number span,
.stat strong span {
    color: var(--blue);
}

.hero-proof p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.5;
}

.hero-visual {
    position: relative;
    display: grid;
    min-height: 445px;
    place-items: center;
}

.photo-frame {
    position: relative;
    z-index: 1;
    width: min(390px, 80%);
    aspect-ratio: 1;
    padding: 12px;
    transform: rotate(3deg);
    border: 1px solid #d2e0ed;
    background: #e7f0f8;
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none;
}

.photo-caption {
    position: absolute;
    right: -17px;
    bottom: 23px;
    padding: 8px 12px;
    transform: rotate(-3deg);
    background: var(--blue);
    color: var(--white);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
}

.orbit {
    position: absolute;
    border: 1px solid #d8e3ee;
    border-radius: 50%;
}

.orbit-one {
    width: 440px;
    height: 440px;
}

.orbit-two {
    width: 510px;
    height: 510px;
    border-style: dashed;
    opacity: .7;
}

.floating-note {
    position: absolute;
    z-index: 2;
    right: -7px;
    bottom: 68px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 13px;
    border: 1px solid #e1e9f1;
    background: var(--white);
    box-shadow: 0 12px 35px rgb(20 38 61 / 8%);
    font-size: 12px;
    font-weight: 700;
}

.note-icon {
    color: var(--blue-deep);
    font-size: 17px;
}

.note-label {
    line-height: 1.5;
}

.hero-index {
    position: absolute;
    right: 2px;
    top: 46px;
    color: #77869a;
    font-size: 10px;
    letter-spacing: .13em;
}

.ticker {
    overflow: hidden;
    background: var(--blue);
    color: var(--white);
}

.ticker-track {
    display: flex;
    width: max-content;
    min-height: 53px;
    align-items: center;
    gap: 36px;
    animation: ticker-scroll 40s linear infinite;
}

.ticker-track span {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
}

.ticker-track i {
    font-size: 14px;
    font-style: normal;
}

@keyframes ticker-scroll {
    to {
        transform: translateX(-50%);
    }
}

.section {
    padding-block: 116px;
}

.section-kicker {
    gap: 12px;
    margin-bottom: 30px;
    color: #718198;
}

.section-kicker span {
    color: #3478b8;
}

.section-title {
    width: fit-content;
    max-width: 100%;
    margin: 0;
    padding: 8px 16px;
    border-left: 5px solid var(--blue);
    background: var(--blue-pale);
    color: var(--blue-deep);
    font-family: var(--font-display);
    font-size: clamp(37px, 4.5vw, 56px);
    font-weight: 700;
    letter-spacing: -.07em;
    line-height: 1.15;
}

.about-copy {
    max-width: 850px;
    margin-top: 24px;
    color: #63748a;
    font-size: 16px;
}

.about-copy p {
    margin-bottom: 15px;
}

.about-copy .large-copy {
    color: var(--ink);
    font-size: 18px;
    line-height: 1.7;
}

.about-copy .underlined-link {
    margin-top: 11px;
    padding-bottom: 6px;
    border-bottom: 1px solid #aebfd0;
    color: var(--ink);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 75px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.stat {
    display: flex;
    min-height: 115px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding-inline: 25px;
    border-right: 1px solid var(--line);
}

.stat:first-child {
    padding-left: 0;
}

.stat:last-child {
    border-right: 0;
}

.stat strong {
    font-family: var(--font-display);
    font-size: 33px;
    font-weight: 800;
    letter-spacing: -.06em;
    line-height: 1.2;
}

.stat:last-child strong {
    font-size: 25px;
}

.stat > span {
    color: #718198;
    font-size: 13px;
}

.portfolio-section {
    background: #e7ebf0;
}

.section-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 45px;
    margin-bottom: 53px;
}

.section-heading-row > p {
    max-width: 290px;
    margin: 0 0 5px;
    color: #687b91;
    font-size: 15px;
}

.skill-card h3,
.project-details h3,
.education-item h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.04em;
}

.skills-section {
    padding-bottom: 127px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.skill-card {
    min-height: 230px;
    padding: 25px 24px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.skill-index {
    display: inline-block;
    margin-bottom: 23px;
    color: var(--blue-deep);
    font-size: 10px;
    font-weight: 700;
}

.skill-card h3 {
    margin-bottom: 8px;
}

.skill-card p {
    min-height: 44px;
    margin-bottom: 16px;
    color: #718198;
    font-size: 16px;
}

.tag-list,
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.project-tags li {
    padding: 4px 8px;
    border: 1px solid #d5e0eb;
    border-radius: 2px;
    color: #53677e;
    font-size: 11px;
    font-weight: 600;
}

.tag-list li {
    padding: 5px 9px;
    border: 1px solid #d5e0eb;
    border-radius: 2px;
    color: #53677e;
    font-size: 15px;
    font-weight: 600;
}

.portfolio-section {
    padding-block: 110px 120px;
}

.portfolio-heading {
    margin-bottom: 12px;
}

.portfolio-heading .underlined-link {
    margin-bottom: 9px;
    padding-bottom: 5px;
    border-bottom: 1px solid #aebfd0;
    white-space: nowrap;
}

.profile-link {
    font-size: 16px;
}

.button-blue.profile-link {
    min-height: 54px;
    padding-inline: 22px;
    font-size: 15px;
}

.portfolio-intro {
    max-width: 500px;
    margin-bottom: 42px;
    color: #687b91;
    font-size: 15px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 17px;
}

.project-card {
    overflow: hidden;
    border: 1px solid #dfe8f1;
    background: var(--paper);
    transition: transform .2s ease, box-shadow .2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgb(20 38 61 / 8%);
}

.project-topline {
    justify-content: space-between;
    padding: 17px 18px 0;
    color: #718198;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .11em;
}

.project-art {
    position: relative;
    display: grid;
    height: 172px;
    place-items: center;
    overflow: hidden;
}

.project-art > span {
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    font-size: 51px;
    font-weight: 800;
    letter-spacing: -.09em;
}

.project-art i {
    position: absolute;
    width: 110px;
    height: 110px;
    border: 1px solid rgb(20 38 61 / 12%);
    border-radius: 50%;
}

.project-art i:nth-of-type(1) {
    transform: translate(-45px, -15px);
}

.project-art i:nth-of-type(2) {
    transform: translate(47px, 14px);
}

.project-art i:nth-of-type(3) {
    width: 165px;
    height: 165px;
}

.project-art-mint { background: #d5e9f8; }
.project-art-blue { background: #c9e0f2; }
.project-art-violet { background: #d9e1f1; }
.project-art-orange { background: #d7e8f4; }
.project-art-yellow { background: #e1ebf6; }
.project-art-pink { background: #d5e4f0; }

.project-details {
    padding: 18px 18px 20px;
    border-top: 1px solid #dfe8f1;
}

.project-details h3 {
    margin-bottom: 8px;
}

.project-details > p {
    min-height: 58px;
    margin-bottom: 13px;
    color: #687b91;
    font-size: 13px;
    line-height: 1.7;
}

.project-tags {
    margin-bottom: 19px;
}

.project-tags li {
    padding: 3px 7px;
    background: #f1f5fa;
    font-size: 10px;
}

.project-links {
    gap: 18px;
    padding-top: 12px;
    border-top: 1px solid #dfe8f1;
}

.project-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
}

.project-links a:hover {
    color: #286aa6;
}

.education-section {
    padding-block: 116px 125px;
}

.education-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 10%;
}

.education-note {
    max-width: 310px;
    margin-top: 22px;
    color: #687b91;
    font-size: 15px;
}

.education-list {
    border-top: 1px solid var(--line);
}

.education-item {
    display: grid;
    grid-template-columns: 115px 1fr;
    gap: 18px;
    padding-block: 22px;
    border-bottom: 1px solid var(--line);
}

.education-period {
    padding-top: 4px;
    color: #718198;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
}

.education-item h3 {
    font-size: 15px;
}

.education-item h3 span {
    color: #647b95;
    font-size: 12px;
    font-weight: 500;
}

.education-item p {
    margin: 4px 0 0;
    color: #718198;
    font-size: 13px;
}

.contact-section {
    padding-block: 81px 37px;
    background: var(--dark);
    color: var(--white);
}

.contact-section .section-kicker {
    color: #a6b7c9;
}

.contact-section .section-kicker span {
    color: var(--blue);
}

.contact-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 50px;
    padding-block: 13px 70px;
}

.contact-eyebrow {
    margin-bottom: 18px;
    color: #a8b8ca;
}

.contact-content h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(48px, 7vw, 82px);
    font-weight: 700;
    letter-spacing: -.075em;
    line-height: 1.03;
}

.contact-content h2 span {
    color: var(--blue);
}

.contact-aside {
    max-width: 330px;
    padding-bottom: 8px;
}

.contact-aside p {
    margin-bottom: 19px;
    color: #b7c6d6;
    font-size: 15px;
}

.button-blue {
    background: var(--blue);
    color: var(--ink);
}

.button-blue:hover {
    background: #d3eaf9;
}

.social-links {
    justify-content: space-between;
    gap: 15px;
    padding-top: 22px;
    border-top: 1px solid rgb(255 255 255 / 17%);
    color: #c7d3e0;
    font-size: 14px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.social-links a:hover,
.back-to-top:hover {
    color: var(--blue);
}

.social-links > span {
    color: #9bafc3;
}

.site-footer {
    background: #0c1a2c;
    color: #c4d1df;
}

.footer-inner {
    min-height: 79px;
    justify-content: space-between;
    gap: 20px;
}

.footer-brand .brand-mark {
    background: #223751;
}

.footer-brand .brand-name {
    color: #e6edf5;
}

.footer-inner p,
.back-to-top {
    margin: 0;
    color: #9baec3;
    font-size: 10px;
}

.footer-inner p span {
    padding-left: 7px;
}

.back-to-top {
    color: #dbe5ef;
}

@media (max-width: 900px) {
    .container {
        width: min(var(--container), calc(100% - 48px));
    }

    .site-nav {
        gap: 19px;
        font-size: 11px;
    }

    .hero {
        min-height: 570px;
        grid-template-columns: 1.08fr .92fr;
    }

    .hero-visual {
        min-height: 370px;
    }

    .orbit-one {
        width: 340px;
        height: 340px;
    }

    .orbit-two {
        width: 400px;
        height: 400px;
    }

    .floating-note {
        right: -10px;
        bottom: 32px;
    }

    .section {
        padding-block: 90px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 640px) {
    html {
        scroll-padding-top: 72px;
    }

    .container {
        width: min(var(--container), calc(100% - 40px));
    }

    .header-inner {
        min-height: 68px;
    }

    .menu-toggle {
        display: flex;
        width: 42px;
        height: 42px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        border: 1px solid rgb(255 255 255 / 45%);
        border-radius: 3px;
        background: transparent;
        cursor: pointer;
    }

    .menu-toggle span {
        width: 17px;
        height: 1.5px;
        background: var(--white);
        transition: transform .2s ease;
    }

    .menu-toggle[aria-expanded="true"] span:first-child {
        transform: translateY(3.75px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] span:last-child {
        transform: translateY(-3.75px) rotate(-45deg);
    }

    .site-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        gap: 0;
        padding: 8px 20px 18px;
        border-bottom: 1px solid rgb(255 255 255 / 22%);
        background: linear-gradient(112deg, var(--blue) 0%, var(--blue-deep) 100%);
        box-shadow: 0 12px 18px rgb(20 38 61 / 5%);
    }

    .site-nav.is-open {
        display: flex;
        flex-direction: column;
    }

    .site-nav a:not(.nav-contact) {
        padding: 12px 0;
        border-bottom: 1px solid rgb(255 255 255 / 22%);
        font-size: 13px;
        color: var(--white);
    }

    .nav-contact {
        justify-content: space-between;
        margin-top: 12px;
        color: var(--white);
        border-color: rgb(255 255 255 / 45%);
    }

    .hero {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 18px;
        padding-block: 61px 55px;
    }

    .hero h1 {
        font-size: clamp(43px, 12vw, 61px);
    }

    .hero-lead {
        max-width: 440px;
        font-size: 16px;
    }

    .hero-proof {
        margin-top: 30px;
    }

    .hero-visual {
        min-height: 330px;
        margin-top: 8px;
    }

    .photo-frame {
        width: min(280px, 68%);
    }

    .orbit-one {
        width: 310px;
        height: 310px;
    }

    .orbit-two {
        width: 360px;
        height: 360px;
    }

    .floating-note {
        right: 0;
        bottom: 27px;
        font-size: 11px;
    }

    .hero-index {
        top: 5px;
        right: 0;
    }

    .ticker-track {
        min-height: 45px;
    }

    .section {
        padding-block: 74px;
    }

    .section-kicker {
        margin-bottom: 23px;
    }

    .education-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .section-title {
        font-size: clamp(37px, 10vw, 50px);
        padding: 7px 12px;
    }

    .about-copy {
        max-width: none;
        margin-top: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 42px;
    }

    .stat {
        min-height: 95px;
        padding-inline: 17px;
        border-bottom: 1px solid var(--line);
    }

    .stat:nth-child(2) {
        border-right: 0;
    }

    .stat:nth-child(3),
    .stat:nth-child(4) {
        border-bottom: 0;
    }

    .stat:first-child {
        padding-left: 0;
    }

    .stat strong {
        font-size: 29px;
    }

    .section-heading-row {
        display: block;
        margin-bottom: 34px;
    }

    .section-heading-row > p {
        margin-top: 16px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skill-card {
        min-height: 0;
        padding: 21px;
    }

    .skill-index {
        margin-bottom: 11px;
    }

    .skill-card p {
        min-height: 0;
    }

    .portfolio-section {
        padding-block: 75px;
    }

    .portfolio-heading {
        margin-bottom: 13px;
    }

    .portfolio-heading .underlined-link {
        margin-top: 22px;
    }

    .profile-link {
        font-size: 15px;
    }

    .button-blue.profile-link {
        font-size: 14px;
    }

    .portfolio-intro {
        margin-bottom: 27px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .project-art {
        height: 160px;
    }

    .project-details > p {
        min-height: 0;
    }

    .education-note {
        margin-top: 15px;
    }

    .education-item {
        grid-template-columns: 88px 1fr;
        gap: 10px;
    }

    .education-item h3 {
        font-size: 15px;
    }

    .contact-section {
        padding-block: 69px 27px;
    }

    .contact-content {
        display: block;
        padding-block: 10px 44px;
    }

    .contact-content h2 {
        font-size: clamp(51px, 13vw, 72px);
    }

    .contact-aside {
        margin-top: 25px;
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 14px 22px;
        padding-block: 19px;
    }

    .social-links > span {
        width: 100%;
    }

    .footer-inner {
        min-height: 105px;
        flex-wrap: wrap;
        justify-content: space-between;
        padding-block: 16px;
    }

    .footer-inner p {
        order: 3;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
