:root {
    --paper: #f5f6f2;
    --paper2: #ebeee8;
    --ink: #152825;
    --sub: #5e6d67;
    --line: #d7ddd5;
    --green: #127663;
    --green-deep: #103a35;
    --accent: #d3ef70;
    --white: #fff;
    --radius: 18px;
    --max: 1190px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased
}

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

a:focus-visible {
    outline: 3px solid #9fcf52;
    outline-offset: 4px
}

::selection {
    background: #d3ef70;
    color: #143731
}

.container {
    width: min(calc(100% - 80px), var(--max));
    margin-inline: auto
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    padding: .6rem 1rem;
    background: white;
    z-index: 100
}

.skip-link:focus {
    top: 10px
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(245, 246, 242, .91);
    border-bottom: 1px solid rgba(215, 221, 213, .85)
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    font-weight: 680;
    letter-spacing: -.025em;
    font-size: 15px
}

.brand-symbol {
    background: var(--green-deep);
    color: white;
    display: inline-grid;
    place-items: center;
    width: 39px;
    height: 39px;
    border-radius: 11px;
    font-size: 15px;
    letter-spacing: -.07em
}

.brand-dot {
    color: var(--accent)
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 35px;
    font-size: 13px;
    font-weight: 620
}

.main-nav>a:not(.nav-contact):hover {
    color: var(--green)
}

.nav-contact {
    border: 1px solid var(--ink);
    padding: 9px 17px;
    border-radius: 8px
}

.nav-contact:hover {
    background: var(--ink);
    color: white
}

.hero {
    padding-block: 93px 93px;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(360px, .82fr);
    align-items: center;
    gap: 58px;
    min-height: 660px
}

.eyebrow,
.section-kicker {
    font-size: 11px;
    font-weight: 760;
    letter-spacing: .17em;
    color: var(--green)
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 13px
}

.eyebrow-line {
    width: 24px;
    height: 2px;
    background: var(--green)
}

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

h1,
h2 {
    letter-spacing: -.055em
}

h1 {
    font-size: clamp(50px, 5.1vw, 76px);
    line-height: 1.07;
    font-weight: 675;
    max-width: 700px;
    margin: 24px 0 27px
}

h1 em,
h2 em {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    letter-spacing: -.045em;
    color: var(--green);
    font-style: italic
}

.hero-description {
    font-size: 17px;
    line-height: 1.82;
    max-width: 630px;
    color: var(--sub)
}

.hero-description strong {
    color: var(--ink);
    font-weight: 650
}

.hero-actions {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 32px
}

.button {
    min-height: 49px;
    display: inline-flex;
    gap: 29px;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 720;
    transition: transform .2s ease, background .2s ease
}

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

.button-primary {
    background: var(--green-deep);
    color: white
}

.button-primary:hover {
    background: #216050
}

.button-plain {
    color: var(--ink);
    padding: 12px 7px
}

.hero-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 18px;
    color: var(--sub);
    font-size: 11px;
    letter-spacing: .015em;
    margin-top: 39px
}

.hero-signals span::before {
    content: '•';
    color: var(--green);
    padding-right: 8px
}

.ribbon {
    border-block: 1px solid var(--line);
    background: #edf0e9
}

.ribbon-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 0;
    flex-wrap: wrap;
    color: #486359;
    font-size: 10px;
    letter-spacing: .12em;
    font-weight: 760
}

.ribbon-inner span:first-child {
    color: var(--green)
}

.section {
    padding-block: 112px
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 38px
}

.section-heading p {
    max-width: 425px;
    margin: 0;
    color: var(--sub);
    font-size: 14px;
    line-height: 1.75
}

.section h2 {
    font-size: clamp(37px, 4vw, 57px);
    line-height: 1.13;
    margin: 15px 0 0;
    font-weight: 650
}

.period {
    color: var(--green)
}

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

.project-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px #1b372508
}

.project-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "top top" "visual body"
}

.project-card.featured .project-top {
    grid-area: top
}

.project-card.featured .project-visual {
    grid-area: visual;
    height: auto;
    min-height: 310px;
    margin: 0 0 21px 20px
}

.project-card.featured .project-body {
    grid-area: body;
    align-self: center;
    padding: 34px 37px 39px
}

.project-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 23px 25px;
    font-size: 10px;
    letter-spacing: .12em;
    font-weight: 790
}

.project-index {
    color: #63766c
}

.status {
    color: var(--green);
    text-transform: none;
    font-size: 10px;
    letter-spacing: 0;
    background: #eef6e9;
    padding: 5px 10px;
    border-radius: 40px
}

.project-visual {
    margin: 0 20px;
    height: 220px;
    border-radius: 9px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px
}

.visual-transformer {
    background: linear-gradient(115deg, #143b36, #236253);
    color: #def4cd
}

.visual-transformer>span {
    font-weight: 780;
    font-size: 10px;
    letter-spacing: .18em;
    margin-bottom: 8px;
}

.visual-graph {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 34px
}

.graph-row {
    display: flex;
    align-items: center;
    gap: 19px
}

.graph-row i {
    display: block;
    width: var(--w);
    height: 13px;
    background: linear-gradient(90deg, #85c5aa, #d3ef70);
    border-radius: 0 3px 3px 0
}

.graph-row b {
    font-size: 11px;
    white-space: nowrap;
    font-weight: 600
}

.visual-transformer small {
    font-size: 9px;
    opacity: .7;
    margin-top: 19px
}


.transformer-model {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 15px 18px;
    border: 1px solid #6a9d8a;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    text-align: center;
}

.transformer-model strong {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.4;
}

.transformer-model small {
    font-size: 11px;
    color: #c9e4d9;
    opacity: 1;
    margin-top: 0;
}


.transformer-environments {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.transformer-environment {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 11px 13px;
    border: 1px solid #568879;
    border-radius: 8px;
    text-align: center;
}

.transformer-environment strong {
    color: #c9e4d9;
    font-size: 10px;
    letter-spacing: 0.1em;
}

.transformer-environment span {
    color: #ffffff;
    font-size: 12px;
    line-height: 1.4;
}


.transformer-evaluation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    text-align: center;
}

.transformer-evaluation strong {
    color: #def4cd;
    font-size: 11px;
    letter-spacing: 0.08em;
    line-height: 1.4;
}

.transformer-evaluation small {
    color: #c9e4d9;
    font-size: 11px;
    opacity: 1;
    margin-top: 0;
    line-height: 1.4;
}

.visual-rag {
    background: #ebf1e5;
    align-items: center;
    color: #286553
}

.rag-query {
    border: 1px solid #b7d0bc;
    border-radius: 6px;
    letter-spacing: .14em;
    font-size: 11px;
    font-weight: 780;
    padding: 12px 37px;
    background: white
}

.rag-query span {
    color: var(--green);
    font-size: 15px
}

.rag-connector {
    width: 1px;
    height: 26px;
    background: #80ab94;
    flex: none;
}

.rag-docs {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: center
}

.rag-docs span {
    font-size: 9px;
    letter-spacing: .09em;
    background: #d2e4d0;
    border: 1px solid #9fc2a7;
    padding: 9px 11px;
    border-radius: 4px;
    font-weight: 760
}

.visual-rag small,
.visual-graphml small {
    font-size: 9px;
    letter-spacing: .13em;
    font-weight: 760;
    color: #3f7261;
    margin-top: 20px
}

.visual-graphml {
    background: #e8ede3;
    align-items: center
}

.visual-graphml svg {
    width: min(100%, 440px);
    height: auto;
    display: block
}

.project-body {
    padding: 24px 31px 32px;
    flex: 1;
    display: flex;
    flex-direction: column
}

.project-category {
    font-size: 10px;
    letter-spacing: .15em;
    color: var(--green);
    font-weight: 760
}

.project-body h3 {
    font-size: 25px;
    letter-spacing: -.035em;
    line-height: 1.25;
    margin: 9px 0 14px;
    font-weight: 700
}

.project-body p {
    font-size: 14px;
    line-height: 1.75;
    color: var(--sub);
    margin-bottom: 22px
}

.project-facts {
    display: flex;
    gap: 13px 25px;
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
    padding-top: 17px;
    color: #63766c;
    font-size: 11px;
    margin-top: auto
}

.project-facts strong {
    color: var(--ink);
    font-size: 17px;
    display: inline-block;
    margin-right: 5px
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 20px
}

.tags span {
    font-size: 10px;
    background: #f2f5ef;
    border: 1px solid #e4eae2;
    color: #51675b;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 600
}

.publication-note {
    margin: 19px 0 0;
    color: var(--sub);
    font-size: 12px;
    line-height: 1.7
}

.publication-note span {
    font-size: 20px;
    color: var(--green);
    margin-right: 5px
}

.experience-section {
    background: var(--paper2);
    border-block: 1px solid var(--line)
}

.experience-layout {
    display: grid;
    grid-template-columns: 1fr 1.04fr;
    gap: 80px;
    margin-top: 15px
}

.experience-layout h2 {
    margin-top: 14px
}

.experience-intro {
    max-width: 420px;
    color: var(--sub);
    font-size: 16px;
    line-height: 1.85;
    margin-top: 23px
}

.experience-card {
    background: #fff;
    border: 1px solid #d3ddd3;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 9px 24px #1d38200b
}

.experience-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: start;
    padding-bottom: 22px;
    border-bottom: 1px solid #e4e8e2
}

.experience-header h3 {
    font-size: 21px;
    margin: 0;
    letter-spacing: -.03em
}

.experience-header p {
    font-size: 13px;
    color: var(--sub);
    margin: 3px 0 0
}

.experience-header>span {
    font-size: 12px;
    color: var(--green);
    font-weight: 780;
    white-space: nowrap
}

.experience-card ul {
    padding-left: 20px;
    margin: 20px 0 18px;
    color: var(--sub);
    font-size: 14px;
    line-height: 1.85
}

.experience-card li {
    margin-bottom: 10px;
    padding-left: 3px
}

.experience-card li::marker {
    color: var(--green)
}

.experience-tools {
    border-top: 1px solid #e4e8e2;
    padding-top: 16px;
    font-size: 11px;
    font-weight: 650;
    color: #3e6559;
    line-height: 1.9
}

.experience-tools span {
    margin: 0 4px;
    color: #9daea6
}

.about-layout {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 100px;
    align-items: start;
    margin-top: 15px
}

.about-layout h2 {
    font-size: clamp(37px, 4vw, 50px);
    margin: 12px 0 27px;
}

.about-layout>div:first-child p {
    color: var(--sub);
    font-size: 15px;
    line-height: 1.9;
    max-width: 550px
}

.education-panel {
    border-left: 1px solid var(--line);
    padding-left: 39px
}

.education-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--green);
    letter-spacing: .15em;
    margin-bottom: 24px
}

.education-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    padding: 0 0 20px;
    margin-bottom: 20px
}

.education-item:last-child {
    border: 0;
    margin: 0
}

.education-item strong {
    font-size: 15px
}

.education-item span {
    color: var(--sub);
    font-size: 13px
}

.education-item small {
    color: var(--sub);
    font-size: 11px
}

.academic-section {
    background: #e1ebe0;
    border-block: 1px solid #d2dfcf
}

.academic-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(250px, .8fr);
    gap: 100px;
    align-items: center
}

.academic-inner h2 {
    font-size: clamp(31px, 3vw, 46px);
    margin: 14px 0
}

.academic-inner p {
    color: #546b5e;
    font-size: 14px;
    line-height: 1.85;
    max-width: 710px
}

.academic-mark {
    width: 225px;
    height: 225px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 9px;
    justify-self: center;
    transform: rotate(-9deg)
}

.cell {
    border: 1px solid #77a091;
    border-radius: 5px;
    background: radial-gradient(circle at 50% 50%, #cfc6b8 7%, #9eb3a8 12%, #e6cec0 24%, #87b3a5 32%, #d2e4d5 46%, #b8d7b9 55%, #f0e0c7 73%);
    filter: saturate(.7)
}

.c2 {
    transform: translateY(-7px)
}

.c4 {
    transform: translateX(8px)
}

.c6 {
    transform: translateY(8px)
}

.academic-illustration {
    width: 100%;
    max-width: 320px;
    justify-self: center;
}

.academic-illustration img {
    display: block;
    width: 100%;
    height: auto;
}

.connect-section {
    padding-top: 105px;
    padding-bottom: 105px
}

.connect-inner {
    background: #12352f;
    color: #fff;
    border-radius: 19px;
    padding: 65px 72px;
    position: relative;
    overflow: hidden
}

.connect-inner::before {
    content: '';
    position: absolute;
    width: 480px;
    height: 480px;
    right: -250px;
    top: -100px;
    background: radial-gradient(circle, #7aa98740, transparent 72%);
    pointer-events: none
}

.connect-inner .section-kicker {
    color: #c5eb90
}

.connect-inner h2 {
    font-size: clamp(41px, 4vw, 57px);
    margin: 20px 0
}

.connect-inner h2 em {
    color: #cbef9a
}

.connect-inner p {
    max-width: 535px;
    color: #c3d7cd;
    font-size: 15px;
    line-height: 1.85
}

.connect-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 29px
}

.button-light {
    background: var(--accent);
    color: #15352c
}

.button-light:hover {
    background: #e7f9ac
}

.button-dark-outline {
    color: white;
    border: 1px solid #7ba393
}

.button-dark-outline:hover {
    background: #205a4b
}

.connect-inner small {
    display: block;
    color: #a6c7b7;
    font-size: 11px;
    margin-top: 24px
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 34px;
    color: var(--sub);
    font-size: 11px
}

.footer-brand {
    color: var(--ink)
}

.footer-brand .brand-symbol {
    width: 31px;
    height: 31px;
    font-size: 12px
}

.footer-brand .brand-name {
    font-size: 13px
}

.site-footer>a:last-child {
    color: var(--green);
    font-weight: 680
}


.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 19px;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
}


@media(max-width:950px) {
    .container {
        width: min(calc(100% - 48px), var(--max))
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 45px;
        padding-block: 74px
    }

    .experience-layout,
    .about-layout {
        gap: 44px
    }

    .project-card.featured {
        grid-template-columns: 1fr;
        grid-template-areas: "top" "visual" "body"
    }

    .project-card.featured .project-visual {
        margin: 0 20px;
        min-height: 250px
    }

    .project-card.featured .project-body {
        padding: 24px 31px 32px
    }

    .ribbon-inner {
        justify-content: flex-start;
        gap: 15px 35px
    }

    .academic-inner {
        gap: 30px
    }
}

@media(max-width:670px) {
    .container {
        width: min(calc(100% - 34px), var(--max))
    }

    .nav-wrap {
        min-height: 67px;
        flex-wrap: wrap;
        row-gap: 8px;
        padding-block: 10px;
    }

    .brand-name {
        display: none
    }

    .main-nav {
        gap: 13px;
        font-size: 12px;
        width: 100%;
        justify-content: space-between;
    }

    .main-nav > a:not(.nav-contact) {
        padding-block: 12px;
    }

    .nav-contact {
        padding: 12px 10px
    }

    .hero {
        padding-block: 40px;
        min-height: 0
    }

    .eyebrow {
        font-size: 9px
    }

    h1 {
        font-size: clamp(40px, 10vw, 59px)
    }

    .hero-description {
        font-size: 15px
    }

    .ribbon-inner {
        padding: 15px 0;
        font-size: 9px
    }

    .section {
        padding-block: 74px
    }

    .section-heading {
        display: block;
        margin-bottom: 30px
    }

    .section-heading p {
        margin-top: 15px
    }

    .section h2 {
        font-size: 41px
    }

    .about-layout h2 {
        font-size: 33px;
        text-wrap: balance;
    }

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

    .project-card.featured {
        grid-column: auto
    }

    .project-card.featured .project-visual {
        min-height: 240px
    }

    .project-body h3 {
        font-size: 23px
    }

    .experience-layout,
    .about-layout,
    .academic-inner {
        grid-template-columns: 1fr
    }

    .experience-layout {
        gap: 23px
    }

    .experience-card {
        padding: 24px
    }

    .education-panel {
        padding-left: 21px
    }

    .academic-mark {
        width: 155px;
        height: 155px;
        justify-self: start;
        margin-top: 10px
    }

    .connect-inner {
        padding: 39px 25px
    }

    .connect-inner h2 {
        font-size: 42px
    }

    .site-footer {
        flex-wrap: wrap
    }

    .footer-brand .brand-name {
        display: inline
    }

    .hero-actions {
        gap: 11px
    }

    .button {
        gap: 12px;
        padding-inline: 17px
    }
}

@media (max-width: 360px) {
    .transformer-environments {
        grid-template-columns: 1fr;
    }
    
    .visual-rag {
        height: auto;
    }
}

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

    .button {
        transition: none
    }
}