@font-face {
    font-family: Inter;
    src: url('resources/fonts/inter-400.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: Inter;
    src: url('resources/fonts/inter-600.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: Inter;
    src: url('resources/fonts/inter-700.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: Mono;
    src: url('resources/fonts/jetbrains-mono-400.woff2') format('woff2');
    font-display: swap;
}

:root {
    --bg: #131615;
    --surface: #1b201d;
    --text: #f1f2e9;
    --muted: #adb6ac;
    --accent: #d2f48b;
    --line: #353c35;
    --paper: #f0f1e9;
    --ink: #20271f;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter,sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

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

button {
    font: inherit;
    color: inherit;
    cursor: pointer;
}

a,button,summary {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,button:focus-visible,summary:focus-visible {
    outline: 3px solid #83b54f;
    outline-offset: 6px;
}

::selection {
    background: var(--accent);
    color: var(--ink);
}

.wrap {
    width: min(1200px,calc(100% - 96px));
    margin-inline: auto;
}

.header {
    height: 96px;
    width: min(1360px,calc(100% - 96px));
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    gap: 24px;
}

.wordmark {
    font-size: 21px;
    letter-spacing: -1px;
    white-space: nowrap;
    font-weight: 700;
}

.wordmark span {
    font-weight: 400;
}

.wordmark i {
    color: var(--accent);
    font-style: normal;
    margin-left: 10px;
    font-size: 26px;
}

.header nav {
    display: flex;
    gap: 32px;
    font-size: 14px;
    color: var(--muted);
}

.header nav a:hover,.text-link:hover {
    color: var(--accent);
}

.nav-contact {
    font-size: 14px;
    border: 1px solid #66705e;
    padding: 10px 18px;
    border-radius: 30px;
}

.nav-contact span {
    margin-left: 16px;
}

.hero {
    padding-block: 76px 65px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    gap: 90px;
}

.eyebrow,.index,.mono {
    font-family: Mono,monospace;
}

.eyebrow {
    font-size: 12px;
    letter-spacing: 1.4px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 24px;
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--accent);
}

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

h1 {
    font-size: clamp(48px,5.6vw,78px);
    line-height: 1.045;
    letter-spacing: -4px;
    margin-bottom: 26px;
    font-weight: 600;
}

h1 em {
    font-style: normal;
    color: var(--accent);
}

.intro {
    max-width: 500px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.hero-meta {
    font-size: 13px;
    color: var(--text);
}

.hero-meta span {
    padding: 0 7px;
    color: #7f897e;
}

.actions {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 15px 21px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 5px;
    transition: transform .2s,background .2s;
}

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

.primary {
    background: var(--accent);
    color: var(--ink);
}

.ink {
    background: var(--ink);
    color: var(--paper);
}

.text-link {
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-color: #66705e;
    background: none;
    border: 0;
    padding: 0;
}

.profile-card {
    border: 1px solid var(--line);
    padding: 12px;
    border-radius: 8px;
    transform: rotate(2deg);
}

.portrait {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    aspect-ratio: 1/1.04;
    background: #8c9386;
}

.portrait img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.55);
}

.profile-caption {
    padding: 17px 6px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-caption .mono {
    font-size: 11px;
    color: var(--muted);
}

.profile-bottom {
    padding: 15px 6px 5px;
    font-size: 13px;
}

.profile-bottom .status-dot {
    margin-right: 7px;
}

.profile-bottom div {
    font-size: 11px;
    color: var(--muted);
    margin-top: 5px;
}

.trust {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 23px 0;
    display: block;
}

.trust>p {
    font-family: Mono,monospace;
    font-size: 10px;
    letter-spacing: 1px;
    margin: 0 0 18px;
    color: var(--muted);
}

.trust>div {
    display: grid;
    grid-template-columns: repeat(8,minmax(0,1fr));
    align-items: center;
    gap: 20px;
}

.trust>div>span {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -.7px;
}

.proof {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    padding-block: 65px 75px;
    gap: 45px;
}

.index {
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--accent);
}

.proof h2 {
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: -.8px;
    margin: 22px 0 15px;
    font-weight: 600;
}

.proof p {
    color: var(--muted);
    font-size: 14px;
    max-width: 300px;
}

.proof a {
    font-size: 13px;
    border-bottom: 1px solid #66705e;
    padding-bottom: 5px;
}

.proof article+article {
    border-left: 1px solid var(--line);
    padding-left: 40px;
}

.light {
    background: var(--paper);
    color: var(--ink);
    padding-block: 90px;
}

.career-layout {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 80px;
}

.section-intro h2,.section-top h2,.publication h2,.profile h2 {
    font-size: 44px;
    line-height: 1.12;
    letter-spacing: -2px;
    font-weight: 600;
    margin-bottom: 25px;
}

.section-intro>p:not(.eyebrow) {
    font-size: 15px;
    color: #5c665a;
    max-width: 300px;
}

.section-intro .text-link:hover {
    color: #47672b;
}

.career-note {
    margin-top: 72px;
    border-left: 2px solid #b5c4a4;
    padding-left: 20px;
}

.career-note .mono {
    font-size: 11px;
    color: #5c665a;
}

.career-note p {
    font-size: 19px;
    line-height: 1.5;
    margin: 15px 0;
}

.career-row {
    border-top: 1px solid #cbd0c5;
}

.career-row:last-child {
    border-bottom: 1px solid #cbd0c5;
}

.career-row summary {
    display: grid;
    grid-template-columns: 105px 1fr 24px;
    gap: 14px;
    list-style: none;
    cursor: pointer;
    padding: 27px 0;
}

.career-row summary::-webkit-details-marker {
    display: none;
}

.period {
    font-size: 11px;
    font-family: Mono,monospace;
    color: #5c665a;
    padding-top: 7px;
}

.company {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 25px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -.6px;
}

.now {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 3px;
    background: #d3dfc6;
    font-weight: 400;
    letter-spacing: 0;
}

.role {
    display: block;
    font-size: 13px;
    margin-top: 6px;
}

.contribution {
    display: block;
    font-size: 13px;
    color: #5c665a;
    margin-top: 10px;
    line-height: 1.5;
}

.expand {
    font-size: 23px;
    color: #606d57;
}

.expand:before {
    content: '+';
}

details[open] .expand:before {
    content: '−';
}

.career-detail {
    margin: 0 36px 27px 119px;
    font-size: 14px;
    color: #4d574b;
    line-height: 1.8;
}

.career-detail p:last-child {
    margin-bottom: 0;
}

.career-detail ul {
    padding-left: 17px;
}

.career-detail li {
    margin-bottom: 12px;
}

.career-detail strong {
    font-weight: 600;
    color: var(--ink);
}

.context {
    font-size: 12px;
    color: #586b4c;
    border-bottom: 1px solid #cbd0c5;
    padding-bottom: 15px;
}

.work {
    padding-block: 95px;
}

.section-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 40px;
}

.section-top h2 {
    margin-bottom: 0;
}

.case {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.case-overview {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 60px;
    padding: 48px;
    background: #1a201c;
    align-items: center;
}

.case h3 {
    font-size: 38px;
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin: 23px 0;
}

.case h3>span {
    display: block;
    font-size: 25px;
    letter-spacing: -.5px;
    color: var(--muted);
    font-weight: 400;
    margin-top: 10px;
    line-height: 1.3;
}

.case p {
    font-size: 15px;
    color: var(--muted);
}

.tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 22px 0;
}

.tags span {
    border: 1px solid #414b3c;
    border-radius: 3px;
    font-size: 11px;
    padding: 4px 8px;
}

.lab-visual {
    background: #cfe4ab;
    color: #253b22;
    border-radius: 5px;
    padding: 26px;
    box-shadow: 10px 13px 0 #293426;
}

.lab-top {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: Mono,monospace;
    font-size: 10px;
    border-bottom: 1px solid #9eb484;
    padding-bottom: 15px;
}

.lab-top .status-dot {
    background: #3b652c;
}

.lab-top span:last-child {
    margin-left: auto;
}

.lab-number {
    font-size: 90px;
    line-height: 1;
    letter-spacing: -6px;
    margin: 27px 0;
}

.lab-number>span {
    display: inline-block;
    font-family: Mono,monospace;
    letter-spacing: 0;
    font-size: 11px;
    max-width: 100px;
    margin-left: 15px;
    line-height: 1.6;
}

.lab-flow {
    border-top: 1px solid #9eb484;
}

.lab-flow>div {
    font-size: 13px;
    padding: 11px 0;
    border-bottom: 1px solid #9eb484;
}

.lab-flow b {
    font: 11px Mono,monospace;
    margin-right: 18px;
    color: #49663d;
}

.lab-foot {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font: 10px Mono,monospace;
    margin-top: 22px;
}

.lab-foot span {
    max-width: 200px;
    text-align: right;
    line-height: 1.6;
}

.case-story {
    padding: 36px 48px;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 32px;
}

.case-story h4 {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    margin: 16px 0 12px;
}

.case-story p {
    font-size: 13px;
}

.case-story .text-link {
    font-size: 12px;
}

.other-work {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    margin-top: 26px;
}

.other-work>a {
    border-bottom: 1px solid var(--line);
    padding: 27px 0;
}

.other-work h3 {
    font-size: 23px;
    letter-spacing: -.7px;
    margin: 17px 0 10px;
}

.other-work h3 span {
    float: right;
    color: var(--accent);
}

.other-work p {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 18px;
}

.other-work .mono {
    font-size: 11px;
    color: var(--muted);
}

.publication {
    background: #d2e4b8;
    color: var(--ink);
    padding: 70px 0;
}

.book-layout {
    display: grid;
    grid-template-columns: .75fr 1.25fr;
    gap: 100px;
    align-items: center;
}

.book-image {
    padding: 20px 30px;
    display: flex;
    justify-content: center;
}

.book-image img {
    width: min(100%,250px);
    height: auto;
    box-shadow: 16px 19px 0 #b8cca0;
    transform: rotate(-6deg);
}

.publication h2 {
    font-size: 40px;
    margin-bottom: 23px;
}

.publication h2 em {
    font-style: normal;
    color: #506a3d;
}

.book-description {
    font-size: 14px;
    max-width: 500px;
    color: #4e6144;
}

.book-facts {
    display: flex;
    gap: 35px;
    font-size: 11px;
    border-top: 1px solid #afc198;
    padding-top: 18px;
}

.book-facts b {
    display: block;
    font-size: 25px;
    letter-spacing: -1px;
    font-weight: 600;
}

.publication .text-link:hover {
    color: #47672b;
}

.profile {
    padding-block: 90px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
}

.profile>div>p:not(.eyebrow) {
    font-size: 15px;
    color: var(--muted);
    max-width: 380px;
}

.profile-facts>div {
    display: grid;
    grid-template-columns: 145px 1fr;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    padding: 19px 0;
    font-size: 13px;
}

.profile-facts>div:first-child {
    padding-top: 0;
}

.profile-facts span {
    color: var(--muted);
    font-size: 12px;
}

.profile-facts p {
    margin: 0;
}

.contact {
    padding: 55px 0 80px;
    border-top: 1px solid var(--line);
}

.contact>div:not(.contact-links) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.contact h2 {
    font-size: clamp(32px,4.6vw,64px);
    letter-spacing: -2.5px;
    line-height: 1.1;
    font-weight: 600;
    margin-bottom: 25px;
}

.contact-arrow {
    display: grid;
    place-items: center;
    background: var(--accent);
    color: var(--ink);
    width: 85px;
    height: 85px;
    border-radius: 50%;
    font-size: 50px;
    flex-shrink: 0;
}

.email {
    font-size: 18px;
    color: var(--accent);
    overflow-wrap: anywhere;
}

.contact-links {
    display: flex;
    gap: 28px;
    font-size: 13px;
    margin-top: 28px;
    flex-wrap: wrap;
}

footer {
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-block: 28px!important;
}

footer p,footer>a:last-child {
    font-size: 11px;
    color: var(--muted);
    margin: 0;
}

footer .wordmark {
    font-size: 17px;
}

.skip {
    position: absolute;
    left: 20px;
    top: -100px;
    background: var(--accent);
    color: var(--ink);
    padding: 12px;
    z-index: 5;
}

.skip:focus {
    top: 10px;
}

@media(min-width:1500px) {
    .hero {
        padding-block: 95px;
    }
    .hero h1 {
        font-size: 84px;
    }
}

@media(max-width:1050px) {
    .trust>div {
        grid-template-columns: repeat(4,minmax(0,1fr));
        gap: 16px 24px;
    }
    .hero {
        gap: 45px;
    }
    .hero-meta {
        max-width: 320px;
    }
    .career-layout {
        gap: 35px;
        grid-template-columns: 1fr 1.5fr;
    }
    .career-row summary {
        grid-template-columns: 85px 1fr 20px;
    }
    .career-detail {
        margin-left: 99px;
    }
    .case-overview {
        gap: 28px;
        padding: 30px;
    }
    .case-story {
        padding: 30px;
    }
    .book-layout {
        gap: 40px;
    }
    .profile {
        gap: 35px;
    }
    .profile-facts>div {
        grid-template-columns: 110px 1fr;
    }
    .proof {
        gap: 25px;
    }
    .proof article+article {
        padding-left: 25px;
    }
}

@media(max-width:760px) {
    html {
        scroll-padding-top: 20px;
    }
    .wrap,.header {
        width: calc(100% - 40px);
    }
    .header {
        height: 78px;
        gap: 12px;
    }
    .header nav {
        display: none;
    }
    .wordmark {
        font-size: 19px;
    }
    .nav-contact {
        font-size: 12px;
        padding: 9px 13px;
    }
    .nav-contact span {
        margin-left: 7px;
    }
    .hero {
        grid-template-columns: 1fr;
        padding: 40px 0 32px;
        gap: 30px;
    }
    .hero h1 {
        font-size: clamp(44px,11vw,72px);
        letter-spacing: -2.8px;
    }
    .eyebrow {
        font-size: 10px;
        letter-spacing: 1px;
        margin-bottom: 20px;
    }
    .intro {
        font-size: 16px;
        margin-bottom: 16px;
    }
    .hero-meta {
        font-size: 12px;
        max-width: none;
    }
    .hero-meta span {
        padding-inline: 4px;
    }
    .actions {
        gap: 22px;
        margin-top: 22px;
    }
    .button {
        font-size: 13px;
        padding: 14px 16px;
    }
    .text-link {
        font-size: 13px;
    }
    .profile-card {
        transform: none;
        display: grid;
        grid-template-columns: 86px 1fr;
        gap: 0 16px;
        border: 0;
        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
        border-radius: 0;
        padding: 20px 0;
    }
    .portrait {
        grid-row: 1/3;
        aspect-ratio: 1;
        height: 86px;
        align-self: center;
    }
    .profile-caption {
        padding: 0 0 8px;
        display: block;
        font-size: 12px;
    }
    .profile-caption .mono {
        display: block;
        font-size: 10px;
        margin-top: 4px;
    }
    .profile-bottom {
        font-size: 11px;
        padding: 8px 0 0;
    }
    .profile-bottom div {
        font-size: 10px;
    }
    .trust {
        border-top: 0;
        display: block;
        padding-top: 0;
    }
    .trust>p {
        max-width: none;
        margin-bottom: 15px;
        font-size: 9px;
    }
    .trust>div {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 14px 24px;
    }
    .trust>div>span {
        font-size: 19px;
    }
    .proof {
        grid-template-columns: 1fr;
        padding: 35px 0;
        gap: 25px;
    }
    .proof article+article {
        border-left: 0;
        border-top: 1px solid var(--line);
        padding: 25px 0 0;
    }
    .proof h2 {
        font-size: 25px;
        margin: 12px 0;
    }
    .proof h2 br {
        display: none;
    }
    .proof p {
        max-width: none;
        margin-bottom: 12px;
    }
    .light {
        padding-block: 45px;
    }
    .career-layout {
        display: block;
    }
    .section-intro h2,.section-top h2,.profile h2 {
        font-size: 35px;
        letter-spacing: -1.6px;
    }
    .section-intro>p:not(.eyebrow) {
        max-width: none;
    }
    .career-note {
        display: none;
    }
    .section-intro {
        margin-bottom: 30px;
    }
    .career-row summary {
        grid-template-columns: 1fr 24px;
        gap: 6px;
        padding: 22px 0;
    }
    .period {
        grid-column: 1/-1;
        padding: 0;
        font-size: 10px;
    }
    .company {
        font-size: 24px;
    }
    .role {
        font-size: 12px;
    }
    .contribution {
        font-size: 13px;
    }
    .career-detail {
        margin: 0 0 25px;
        font-size: 14px;
    }
    .context {
        font-size: 11px;
    }
    .work {
        padding-block: 45px;
    }
    .section-top {
        display: block;
        margin-bottom: 27px;
    }
    .section-top h2 {
        margin-bottom: 22px;
    }
    .case-overview {
        grid-template-columns: 1fr;
        padding: 25px 20px;
        gap: 30px;
    }
    .case h3 {
        font-size: 33px;
    }
    .case h3>span {
        font-size: 23px;
    }
    .case p {
        font-size: 15px;
    }
    .lab-visual {
        padding: 20px;
        box-shadow: 5px 7px 0 #293426;
    }
    .lab-top {
        font-size: 9px;
    }
    .lab-number {
        font-size: 75px;
        margin: 24px 0;
    }
    .lab-foot {
        font-size: 9px;
    }
    .case-story {
        grid-template-columns: 1fr;
        padding: 28px 20px;
        gap: 23px;
    }
    .case-story h4 {
        margin-top: 11px;
    }
    .case-story p {
        font-size: 14px;
    }
    .case-story>div+div {
        border-top: 1px solid var(--line);
        padding-top: 22px;
    }
    .other-work {
        grid-template-columns: 1fr;
        gap: 0;
        margin-top: 12px;
    }
    .other-work h3 {
        font-size: 23px;
    }
    .publication {
        padding-block: 40px;
    }
    .book-layout {
        display: flex;
        flex-direction: column-reverse;
        gap: 25px;
        align-items: stretch;
    }
    .publication h2 {
        font-size: 33px;
        letter-spacing: -1.5px;
    }
    .book-facts {
        gap: 25px;
    }
    .book-image {
        padding: 20px;
    }
    .book-image img {
        width: 160px;
    }
    .profile {
        display: block;
        padding-block: 45px;
    }
    .profile-facts {
        margin-top: 35px;
    }
    .profile-facts>div {
        grid-template-columns: 105px 1fr;
    }
    .profile-facts p {
        font-size: 12px;
    }
    .contact {
        padding: 35px 0 45px;
    }
    .contact h2 {
        font-size: 34px;
        letter-spacing: -1.5px;
    }
    .contact-arrow {
        width: 45px;
        height: 45px;
        font-size: 28px;
    }
    .email {
        font-size: 14px;
    }
    .contact-links {
        gap: 15px 22px;
        font-size: 12px;
    }
    footer {
        flex-wrap: wrap;
        gap: 14px;
        padding-block: 22px!important;
    }
    footer p {
        font-size: 10px;
    }
    footer>a:last-child {
        width: 100%;
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto;
    }
    .button {
        transition: none;
    }
    .button:hover {
        transform: none;
    }
}

@media print {
    body {
        background: white;
        color: black;
    }
    .header,.actions,.contact-arrow,footer,.skip,#expand-all {
        display: none;
    }
    .wrap {
        width: 100%;
    }
    .career-layout {
        display: block;
    }
    .career-detail {
        margin-left: 0;
    }
    .light {
        padding: 20px 0;
    }
    .hero,.proof,.work,.publication,.profile,.contact {
        break-inside: avoid;
    }
    details::details-content {
        content-visibility: visible!important;
    }
    .career-row {
        break-inside: avoid;
    }
    .profile-card {
        transform: none;
    }
    .career-note {
        display: none;
    }
}

/* Complete portfolio: progressive navigation, catalogue, skills and native CV dialog. */

[hidden] {
    display: none!important;
}

.anchor-alias {
    display: block;
    scroll-margin-top: 30px;
}

.header {
    position: relative;
}

.language-toggle,.menu-toggle {
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 5px;
    min-width: 44px;
    min-height: 44px;
    font-size: 14px;
}

.language-toggle {
    display: none;
}

.js-enabled .language-toggle {
    display: block;
}

.menu-toggle {
    display: none;
}

.header nav {
    margin-left: auto;
}

.nav-contact {
    white-space: nowrap;
}

.button {
    border: 0;
}

.hero-copy {
    min-width: 0;
}

.hero h1 {
    font-size: clamp(44px,4.6vw,66px);
    letter-spacing: -3px;
    overflow-wrap: normal;
}

.hero .actions {
    gap: 20px;
}

.hero .text-link {
    white-space: nowrap;
}

.career-detail .tags {
    gap: 6px;
}

.career-detail .tags span {
    border-color: #a8b89b;
    font-size: 12px;
    color: var(--ink);
}

.catalog {
    padding-bottom: 85px;
}

.catalog .section-top h2 {
    font-size: 38px;
}

.catalog-tools {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
    align-items: end;
    padding: 22px 0;
    border-block: 1px solid var(--line);
}

.catalog-tools label {
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-size: 14px;
}

.catalog-tools input,.catalog-tools select {
    width: 100%;
    font: inherit;
    color: var(--text);
    background: var(--surface);
    border: 1px solid #64705c;
    border-radius: 4px;
    padding: 13px;
    min-height: 48px;
}

.catalog-tools input::placeholder {
    color: var(--muted);
}

input:focus-visible,select:focus-visible,textarea:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

#projectCount,#skillsFilterStatus {
    font-size: 14px;
    color: var(--muted);
    margin-top: 18px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 24px;
    margin: 25px 0;
}

.project-card {
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    align-self: start;
    min-width: 0;
}

.project-art {
    aspect-ratio: 16/9;
    background: #202a22;
    overflow: hidden;
}

.project-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-body {
    padding: 22px;
}

.project-body .index {
    font-size: 12px;
    margin-bottom: 12px;
}

.project-body h3 {
    font-size: 23px;
    line-height: 1.2;
    letter-spacing: -.7px;
    overflow-wrap: anywhere;
}

.project-summary {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.project-body details {
    font-size: 14px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.project-body summary {
    cursor: pointer;
    padding: 8px 0;
    color: var(--accent);
    min-height: 44px;
}

.project-detail {
    padding-top: 16px;
    overflow-wrap: anywhere;
}

.project-detail img {
    width: 100%;
    height: auto;
}

.project-detail .tags span {
    font-size: 12px;
}

.project-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    padding-top: 20px;
    font-size: 14px;
}

.project-links a {
    padding: 7px 0;
    border-bottom: 1px solid #66705e;
}

.mnemo-art {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    color: var(--accent);
    background: #26342a;
}

.mnemo-art span:first-child {
    font: 600 42px Inter,sans-serif;
    letter-spacing: -2px;
}

.mnemo-art span:last-child {
    font: 10px Mono,monospace;
    margin-top: 20px;
}

.book-extras {
    margin-top: 45px;
}

.book-language {
    font-size: 14px;
}

.book-collapse {
    border-top: 1px solid #9db184;
    padding-block: 15px;
}

.book-collapse:last-child {
    border-bottom: 1px solid #9db184;
}

.book-collapse summary {
    cursor: pointer;
    font-size: 15px;
    padding: 10px 0;
    min-height: 44px;
}

.book-collapse-body {
    padding-top: 22px;
}

.book-index-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 40px;
    list-style: none;
    padding: 0;
    font-size: 14px;
}

.book-index-appendices {
    font-size: 14px;
    line-height: 1.8;
}

.book-chapter {
    max-width: 760px;
    margin-inline: auto;
    font-size: 16px;
    line-height: 1.85;
}

.book-chapter h2 {
    font-size: 30px;
}

.book-chapter h3 {
    font-size: 22px;
    margin-top: 30px;
}

.book-chapter h4 {
    font-size: 18px;
}

.book-chapter table {
    display: block;
    max-width: 100%;
    overflow: auto;
    border-collapse: collapse;
}

.book-chapter th,.book-chapter td {
    padding: 10px;
    border: 1px solid #9db184;
}

.book-chapter pre {
    overflow: auto;
    max-width: 100%;
    font-size: 13px;
    white-space: pre-wrap;
}

.book-callout,.book-quote {
    border-left: 3px solid #608043;
    padding: 12px 20px;
    margin-block: 22px;
}

.full-profile {
    grid-column: 1/-1;
    border-top: 1px solid var(--line);
    padding-top: 20px;
}

.full-profile summary {
    cursor: pointer;
    font-size: 16px;
    padding-block: 12px;
    color: var(--accent);
}

.reading {
    max-width: 800px;
    font-size: 16px;
    color: var(--muted);
    padding-top: 20px;
}

.skills-section {
    padding-bottom: 80px;
}

.skills-section h2 {
    font-size: 35px;
    letter-spacing: -1px;
}

.skills-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.skill-filter-btn {
    min-height: 44px;
    padding: 9px 14px;
    border: 1px solid #617158;
    background: transparent;
    border-radius: 4px;
    font-size: 14px;
}

.skill-filter-btn.is-active {
    background: var(--accent);
    color: var(--ink);
}

[data-skill-count] {
    margin-left: 7px;
    opacity: .75;
}

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

.skill-category {
    border-top: 1px solid var(--line);
    padding: 20px 0;
}

.skill-category h3 {
    font-size: 20px;
}

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

.skill-chips .skill-chip {
    border: 1px solid #4b5844;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 14px;
}

.skill-chips .skill-expert {
    border-color: #b1cf87;
    color: #d2f48b;
}

.skill-chips .skill-advanced {
    border-color: #799165;
    color: #d9e8c7;
}

.skill-chips .skill-proficient {
    border-style: dashed;
}

.skill-chips .skill-exploring {
    border-style: dotted;
}

.legal-links {
    display: flex;
    gap: 20px;
    font-size: 13px;
}

dialog {
    color: var(--text);
    background: var(--surface);
    border: 1px solid #66705e;
    border-radius: 10px;
    width: min(580px,calc(100% - 32px));
    max-height: 90dvh;
    padding: 30px;
    overflow: auto;
    overscroll-behavior: contain;
}

dialog::backdrop {
    background: rgb(0 0 0 / 75%);
}

.no-scroll {
    overflow: hidden;
}

.cv-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 15px;
}

.cv-header h2 {
    font-size: 30px;
    letter-spacing: -1px;
    margin: 10px 0;
}

.cv-tag {
    font: 12px Mono,monospace;
    color: var(--accent);
}

.cv-subtitle,.cv-privacy,.cv-legal {
    font-size: 14px;
    color: var(--muted);
}

.cv-header button {
    font-size: 30px;
    min-width: 44px;
    min-height: 44px;
    text-decoration: none;
}

.cv-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 18px;
    font-size: 14px;
}

.cv-field input,.cv-field textarea {
    background: var(--bg);
    border: 1px solid #66705e;
    border-radius: 4px;
    color: var(--text);
    padding: 12px;
    font: inherit;
    min-width: 0;
    width: 100%;
    font-size: 16px;
}

.cv-field textarea {
    resize: vertical;
}

.cv-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.cv-honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
    pointer-events: none;
}

.cv-actions {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
    align-items: center;
}

.cv-actions button {
    min-height: 44px;
}

.cv-feedback {
    margin-top: 20px;
    border: 1px solid #95b575;
    padding: 14px;
    font-size: 15px;
}

.cv-feedback.error {
    border-color: #e5a38b;
}

.cv-feedback.success {
    color: var(--accent);
}

button:disabled {
    opacity: .6;
    cursor: wait;
}

.catalog-tools label,.project-card,.profile-facts>div,.reading {
    min-width: 0;
}

.email {
    overflow-wrap: anywhere;
}

.index,.eyebrow {
    font-size: 12px;
}

.proof p,.contribution,.role,.career-detail,.case-story p,.other-work p,.profile-facts p {
    font-size: 14px;
}

.period,.context,.hero-meta,.profile-caption .mono,.profile-bottom div,.trust>p,.trust small,.mono,.other-work .mono {
    font-size: 12px;
}

.trust>div>span {
    font-size: 21px;
}

.lab-top,.lab-foot,.lab-flow b,.lab-number>span {
    font-size: 12px;
}

.book-facts {
    font-size: 13px;
}

.portrait {
    background: var(--surface);
}

footer p,footer>a:last-child {
    font-size: 12px;
}

.case h3>span {
    display: block;
}

.case h3 span[data-copy] {
    display: inline;
}

.publication h2 em {
    display: inline;
}

.hero h1 span[data-copy] {
    display: inline;
}

.publication h2 span[data-copy] {
    display: inline;
}

.book-chapter-title {
    scroll-margin-top: 30px;
}

@media(max-width:1050px) {
    .catalog-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
    .header {
        gap: 15px;
    }
    .header nav {
        gap: 20px;
    }
    .hero {
        gap: 40px;
    }
    .hero h1 {
        font-size: clamp(44px,5.5vw,58px);
    }
}

@media(max-width:760px) {
    .header {
        gap: 10px;
        height: auto;
        min-height: 78px;
        flex-wrap: wrap;
        padding-block: 16px;
    }
    .header .wordmark {
        margin-right: auto;
        font-size: 18px;
    }
    .nav-contact {
        display: none;
    }
    .js-enabled .menu-toggle {
        display: block;
    }
    .header nav {
        display: flex;
        order: 5;
        width: 100%;
        gap: 12px;
        justify-content: space-between;
        margin: 0;
    }
    .js-enabled .header nav {
        display: none;
    }
    .js-enabled .header nav.is-open {
        display: flex;
    }
    .header nav a {
        padding: 12px 0;
        font-size: 15px;
    }
    .hero h1 {
        font-size: clamp(40px,10.8vw,64px);
        letter-spacing: -2px;
    }
    .hero .actions {
        gap: 18px;
    }
    .hero-meta {
        font-size: 12px;
    }
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    .catalog-tools {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .catalog-tools label:first-child {
        grid-column: 1/-1;
    }
    .catalog-tools select {
        font-size: 16px;
        padding: 10px;
    }
    .catalog {
        padding-bottom: 45px;
    }
    .catalog .section-top h2 {
        font-size: 32px;
    }
    .book-index-grid {
        grid-template-columns: 1fr;
    }
    .book-collapse-hint {
        display: block;
    }
    .skills-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .skills-section {
        padding-bottom: 45px;
    }
    .skills-section h2 {
        font-size: 30px;
    }
    .full-profile {
        margin-top: 30px;
    }
    .profile-facts p {
        font-size: 14px;
    }
    .profile-facts>div {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .cv-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    dialog {
        padding: 22px;
    }
    .cv-header h2 {
        font-size: 27px;
    }
    .trust>div>span {
        font-size: 21px;
    }
    .case h3>span {
        font-size: 23px;
    }
    .case h3 span[data-copy] {
        font-size: inherit;
    }
    .lab-top {
        flex-wrap: wrap;
    }
    .lab-number>span {
        max-width: 130px;
    }
    .career-row summary {
        grid-template-columns: 1fr 28px;
    }
    .period {
        grid-column: 1/-1;
    }
    .career-detail {
        font-size: 15px;
    }
    .profile-bottom {
        font-size: 12px;
    }
    .profile-bottom div {
        font-size: 11px;
    }
    .contact-links a,.contact-links button {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        font-size: 14px;
    }
    .contact h2 {
        font-size: 32px;
    }
    .legal-links {
        width: 100%;
    }
    .proof a {
        display: inline-block;
        min-height: 44px;
        padding-top: 10px;
        font-size: 14px;
    }
}

@media print {
    [hidden] {
        display: revert!important;
    }
    .catalog-tools,.skills-filter,#loadMoreBtn,#projectCount,#noProjects,#skillsFilterStatus,.menu-toggle,.language-toggle,dialog {
        display: none!important;
    }
    .project-card {
        break-inside: avoid;
    }
    .project-card img {
        max-height: 140px;
        object-fit: contain;
    }
    .catalog-grid,.skills-container {
        grid-template-columns: 1fr 1fr;
    }
    .hero,.work,.publication,.profile,.contact {
        break-inside: auto;
    }
    .career-row {
        break-inside: avoid;
    }
    .career-detail,.project-detail,.reading {
        color: #111;
    }
    .project-body details,.book-chapter {
        color: #111;
    }
    .project-card,.skill-category {
        border-color: #888;
    }
}

.mobile-contact {
    display: none;
}
@media(max-width:760px) {
    .header nav .mobile-contact {
        display: block;
    }
    .catalog-tools select {
        font-size: 16px;
    }
}
