/* Maël Trémouille — restrained editorial portfolio */

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

:root {
    --ink: #17191c;
    --ink-soft: #292c31;
    --paper: #f3f1eb;
    --paper-light: #fbfaf7;
    --paper-deep: #e8e5dc;
    --muted: #656962;
    --line: rgba(23, 25, 28, 0.18);
    --line-light: rgba(255, 255, 255, 0.17);
    --accent: #3f50e7;
    --display: "Manrope", "DM Sans", sans-serif;
    --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --serif: "Newsreader", Georgia, serif;
    --mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
    --shell: min(1180px, calc(100% - 48px));
}

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

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
}

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

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

button {
    color: inherit;
    font: inherit;
}

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

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

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd {
    margin-top: 0;
}

.shell {
    width: var(--shell);
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 10px;
    left: 10px;
    padding: 10px 14px;
    color: #fff;
    background: var(--ink);
    transform: translateY(-150%);
    transition: transform 180ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 650ms cubic-bezier(.2, .7, .2, 1), transform 650ms cubic-bezier(.2, .7, .2, 1);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation */

.site-nav {
    position: sticky;
    z-index: 100;
    top: 0;
    min-height: 72px;
    display: flex;
    color: var(--ink);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.wordmark {
    width: 248px;
    min-height: 72px;
    padding: 0 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--line);
    font-family: var(--display);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.015em;
}

.wordmark small {
    margin-top: 3px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.53rem;
    font-weight: 400;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.nav-links {
    min-height: 72px;
    margin-left: auto;
    display: flex;
    align-items: stretch;
}

.nav-links a {
    min-width: 98px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid var(--line);
    font-size: 0.77rem;
    font-weight: 500;
    transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: #fff;
    background: var(--ink);
}

.nav-links .nav-cta {
    min-width: 116px;
    gap: 24px;
    color: #fff;
    background: var(--ink);
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta:focus-visible {
    background: var(--accent);
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
}

.menu-toggle > span:not(.sr-only) {
    display: block;
    width: 23px;
    height: 1px;
    margin: 6px auto;
    background: currentColor;
    transition: transform 180ms ease;
}

/* Shared */

.eyebrow,
.section-label,
.footer-label,
.work-type,
.row-index {
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.eyebrow {
    margin-bottom: 0;
}

.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 9px;
    background: var(--accent);
    vertical-align: 1px;
}

.button {
    min-height: 47px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--line);
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

.button-dark {
    color: #fff;
    background: var(--ink);
    border-color: var(--ink);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.section {
    padding: 120px 0;
}

.section-label {
    display: flex;
    gap: 22px;
    align-items: baseline;
}

.section-label span {
    color: var(--accent);
}

.section-label p {
    margin-bottom: 0;
}

.section-header {
    margin-bottom: 74px;
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: start;
}

.section-header h2,
.path-content > h2 {
    max-width: 820px;
    margin-bottom: 0;
    font-family: var(--display);
    font-size: clamp(3.3rem, 6vw, 6.2rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.055em;
}

.split-section {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 0;
}

/* Hero */

.hero {
    background: var(--paper-light);
}

.hero-frame {
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.hero-main {
    min-height: 640px;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(310px, 0.82fr);
}

.hero-title {
    padding: 42px 38px 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-title h1 {
    margin-bottom: 0;
    font-family: var(--display);
    font-size: clamp(5.7rem, 9.3vw, 9.4rem);
    font-weight: 500;
    line-height: 0.77;
    letter-spacing: -0.08em;
}

.hero-title h1 span {
    color: var(--accent);
}

.hero-intro {
    padding: 42px 30px 44px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-left: 1px solid var(--line);
}

.hero-intro > p:not(.hero-statement) {
    margin-bottom: 34px;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.72;
}

.hero-statement {
    margin-bottom: auto;
    font-family: var(--serif);
    font-size: clamp(1.7rem, 2.45vw, 2.35rem);
    line-height: 1.08;
}

.hero-field {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    color: #fff;
    background: var(--ink);
    border-top: 1px solid var(--line);
}

.field-meta {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    left: 0;
    min-height: 46px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line-light);
    font-family: var(--mono);
    font-size: 0.55rem;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.hero-field svg {
    position: absolute;
    top: 46px;
    right: 0;
    bottom: 0;
    left: 0;
    width: 76%;
    height: calc(100% - 46px);
}

.field-grid {
    fill: none;
    stroke: rgba(255,255,255,.09);
    stroke-width: 1;
}

.field-path {
    fill: none;
    stroke: rgba(255,255,255,.68);
    stroke-width: 1.4;
    vector-effect: non-scaling-stroke;
}

.field-node {
    fill: var(--paper-light);
}

.field-node-accent {
    fill: var(--accent);
}

.field-frame {
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.2;
    vector-effect: non-scaling-stroke;
}

.field-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 24%;
    height: calc(100% - 46px);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--accent);
}

.field-caption span {
    font-family: var(--mono);
    font-size: 0.58rem;
}

.field-caption p {
    margin-bottom: 0;
    font-family: var(--serif);
    font-size: clamp(1.5rem, 2.4vw, 2.25rem);
    line-height: 1.05;
}

/* About */

.about-section {
    background: var(--paper);
}

.about-content {
    padding-left: 0;
}

.large-copy {
    max-width: 900px;
    margin-bottom: 70px;
    font-family: var(--serif);
    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.025em;
}

.two-column-copy {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(40px, 8vw, 100px);
}

.two-column-copy p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.8;
}

/* Interests */

.interests-section {
    background: var(--paper-light);
}

.interest-list {
    border-top: 1px solid var(--ink);
}

.interest-row {
    min-height: 176px;
    padding: 26px 0;
    display: grid;
    grid-template-columns: 48px minmax(220px, 0.8fr) minmax(280px, 1fr) 160px;
    gap: 26px;
    align-items: center;
    border-bottom: 1px solid var(--line);
}

.row-index {
    color: var(--accent);
}

.interest-row h3 {
    margin-bottom: 0;
    font-family: var(--display);
    font-size: clamp(1.8rem, 3vw, 2.9rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.045em;
}

.interest-row > p {
    max-width: 460px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.7;
}

.interest-row svg {
    width: 150px;
    fill: none;
    stroke: rgba(23,25,28,.28);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.interest-row svg circle {
    fill: var(--paper-light);
}

.interest-row svg .accent-stroke {
    stroke: var(--accent);
    stroke-width: 1.7;
}

/* Work */

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

.work-section .section-label span {
    color: #8790ff;
}

.work-list {
    border-top: 1px solid rgba(255,255,255,.7);
}

.work-item {
    border-bottom: 1px solid var(--line-light);
}

.work-row {
    min-height: 138px;
    padding: 24px 0;
    display: grid;
    grid-template-columns: 72px minmax(260px, 0.9fr) minmax(300px, 1fr) 120px;
    gap: 28px;
    align-items: center;
}

.work-year,
.work-state,
.work-repo,
.work-toggle,
.detail-label,
.work-privacy,
.detail-repo {
    font-family: var(--mono);
    font-size: 0.64rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.work-type {
    margin-bottom: 7px;
    color: rgba(255,255,255,.48);
}

.work-row h3 {
    margin-bottom: 0;
    font-family: var(--display);
    font-size: clamp(1.55rem, 2.5vw, 2.4rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.work-row > p {
    max-width: 470px;
    margin-bottom: 0;
    color: rgba(255,255,255,.58);
    font-size: 0.84rem;
    line-height: 1.7;
}

.work-actions {
    justify-self: end;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 13px;
}

.work-state {
    color: rgba(255,255,255,.55);
}

.work-action-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.work-repo,
.work-toggle,
.detail-repo {
    color: rgba(255,255,255,.72);
}

.work-repo,
.detail-repo {
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,.28);
    text-underline-offset: 4px;
}

.work-toggle {
    padding: 4px 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 0;
    color: rgba(255,255,255,.72);
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.toggle-mark {
    position: relative;
    width: 11px;
    height: 11px;
    display: inline-block;
    transition: transform 180ms ease;
}

.toggle-mark::before,
.toggle-mark::after {
    content: "";
    position: absolute;
    top: 5px;
    left: 0;
    width: 11px;
    height: 1px;
    background: currentColor;
}

.toggle-mark::after {
    transform: rotate(90deg);
}

.work-item.is-open .toggle-mark {
    transform: rotate(45deg);
}

.work-item.is-open .work-toggle {
    color: #a3a9ff;
}

.work-repo:hover,
.work-repo:focus-visible,
.work-toggle:hover,
.work-toggle:focus-visible,
.detail-repo:hover,
.detail-repo:focus-visible {
    color: #a3a9ff;
}

.work-repo:focus-visible,
.work-toggle:focus-visible,
.detail-repo:focus-visible {
    outline: 1px solid #a3a9ff;
    outline-offset: 5px;
}

.work-details {
    margin-left: 100px;
    padding: 27px 0 32px;
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1fr) 120px;
    gap: 28px;
    align-items: start;
    border-top: 1px solid rgba(255,255,255,.12);
}

.work-details[hidden] {
    display: none;
}

.work-details:not([hidden]) {
    animation: reveal-work-details 220ms cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes reveal-work-details {
    from {
        opacity: 0;
        transform: translateY(-7px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-label {
    margin-bottom: 11px;
    color: #8790ff;
}

.work-details > div > p:last-child {
    max-width: 520px;
    margin-bottom: 0;
    color: rgba(255,255,255,.8);
    font-size: 0.94rem;
    line-height: 1.7;
}

.work-ranking {
    display: inline-block;
    margin-top: 8px;
    color: var(--accent);
    font-family: var(--mono);
    font-size: 0.58rem;
    letter-spacing: 0.035em;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, currentColor 30%, transparent);
    text-underline-offset: 3px;
}

.work-ranking:hover,
.work-ranking:focus-visible {
    color: var(--ink);
}

.work-privacy {
    margin-bottom: 0;
    color: rgba(255,255,255,.38);
    line-height: 1.65;
}

.detail-repo {
    line-height: 1.5;
}

/* Path and personal */

.path-section {
    background: var(--paper-deep);
}

.path-content > h2 {
    margin-bottom: 70px;
}

.timeline {
    margin: 0 0 36px;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--ink);
}

.timeline li {
    min-height: 112px;
    padding: 22px 0;
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 30px;
    align-items: start;
    border-bottom: 1px solid var(--line);
}

.timeline time {
    font-family: var(--mono);
    font-size: 0.59rem;
    letter-spacing: 0.04em;
}

.timeline strong {
    display: block;
    margin-bottom: 5px;
    font-family: var(--display);
    font-size: 1.22rem;
    font-weight: 500;
}

.timeline p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.timeline .timeline-ranking {
    margin-top: 8px;
    color: var(--accent);
    font-family: var(--mono);
    font-size: 0.58rem;
    letter-spacing: 0.035em;
    line-height: 1.5;
    text-transform: uppercase;
}

.timeline-ranking a {
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, currentColor 30%, transparent);
    text-underline-offset: 3px;
}

.timeline-ranking a:hover,
.timeline-ranking a:focus-visible {
    color: var(--ink);
}

.personal-section {
    color: #fff;
    background: var(--accent);
}

.personal-inner {
    min-height: 250px;
    padding: 54px 0;
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: center;
}

.personal-inner .section-label {
    margin-bottom: 0;
}

.personal-inner > p:last-child {
    max-width: 850px;
    margin-bottom: 0;
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.06;
}

/* Footer */

.site-footer {
    padding: 90px 0 34px;
    color: var(--paper-light);
    background: #101214;
}

.footer-main {
    min-height: 310px;
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 60px;
}

.footer-label {
    margin-bottom: 18px;
    color: rgba(255,255,255,.48);
}

.footer-email {
    display: inline-block;
    font-family: var(--display);
    font-size: clamp(1.7rem, 3.1vw, 3rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.035em;
    overflow-wrap: normal;
    transition: color 180ms ease;
}

.footer-email:hover,
.footer-email:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
    color: #8790ff;
}

.footer-links {
    display: grid;
    align-content: start;
    gap: 10px;
    font-size: 0.78rem;
}

.footer-bottom {
    padding-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-top: 1px solid var(--line-light);
    color: rgba(255,255,255,.44);
    font-family: var(--mono);
    font-size: 0.55rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-bottom span:nth-child(2) { text-align: center; }
.footer-bottom span:last-child { text-align: right; }

/* CV */

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

.cv-hero-inner {
    min-height: 500px;
    padding: 58px 38px 54px;
    display: grid;
    grid-template-columns: 1.6fr 0.7fr;
    gap: 80px;
    align-items: end;
    border-right: 1px solid var(--line-light);
    border-left: 1px solid var(--line-light);
}

.cv-hero h1 {
    margin-bottom: 0;
    font-family: var(--display);
    font-size: clamp(4.4rem, 7.7vw, 7.7rem);
    font-weight: 400;
    line-height: 0.86;
    letter-spacing: -0.065em;
}

.cv-hero h1 em {
    color: #8790ff;
    font-family: var(--serif);
    font-weight: 400;
}

.cv-hero-side > p {
    margin-bottom: 30px;
    color: rgba(255,255,255,.62);
    font-size: 0.88rem;
}

.cv-hero .button {
    color: #fff;
    border-color: rgba(255,255,255,.22);
}

.cv-hero .button-dark {
    color: var(--ink);
    background: var(--paper-light);
    border-color: var(--paper-light);
}

.cv-layout {
    padding: 100px 0 130px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: clamp(70px, 10vw, 140px);
    align-items: start;
}

.cv-sidebar {
    position: sticky;
    top: 100px;
}

.cv-side-block {
    padding: 19px 0;
    border-top: 1px solid var(--line);
}

.cv-side-block:last-child {
    border-bottom: 1px solid var(--line);
}

.cv-side-block h2 {
    margin-bottom: 12px;
    font-family: var(--mono);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.cv-side-block p,
.cv-side-block a,
.cv-side-block li {
    color: var(--muted);
    font-size: 0.73rem;
    line-height: 1.68;
}

.cv-side-block p {
    margin-bottom: 0;
}

.cv-side-block a {
    display: block;
    width: max-content;
    max-width: 100%;
}

.cv-side-block a:hover,
.cv-side-block a:focus-visible {
    color: var(--accent);
}

.cv-side-block ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cv-side-block li::before {
    content: "— ";
    color: var(--accent);
}

.cv-content {
    min-width: 0;
}

.cv-block {
    padding-bottom: 80px;
}

.cv-block-heading {
    margin-bottom: 38px;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 16px;
    align-items: baseline;
    border-bottom: 1px solid var(--ink);
}

.cv-block-heading span {
    font-family: var(--mono);
    font-size: 0.58rem;
}

.cv-block-heading h2 {
    margin-bottom: 7px;
    font-family: var(--display);
    font-size: 2.4rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.04em;
}

.cv-profile {
    max-width: 800px;
    font-family: var(--serif);
    font-size: clamp(1.7rem, 3vw, 2.55rem);
    line-height: 1.2;
}

.cv-entry {
    padding: 0 0 34px 64px;
}

.cv-entry + .cv-entry {
    padding-top: 34px;
    border-top: 1px solid var(--line);
}

.cv-entry-head {
    margin-bottom: 15px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
}

.cv-entry h3 {
    margin-bottom: 4px;
    font-family: var(--display);
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.cv-entry h3 a:hover,
.cv-entry h3 a:focus-visible {
    color: var(--accent);
}

.cv-role {
    margin-bottom: 0;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 600;
}

.cv-ranking {
    margin-top: 0.42rem;
    font-size: 0.72rem;
    line-height: 1.35;
    letter-spacing: 0.035em;
    color: var(--muted);
}

.cv-ranking a {
    color: inherit;
    text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
    text-underline-offset: 0.2em;
}

.cv-ranking a:hover {
    color: var(--ink);
}

.cv-entry time {
    padding-top: 4px;
    font-family: var(--mono);
    font-size: 0.57rem;
    white-space: nowrap;
}

.cv-entry ul {
    max-width: 780px;
    margin: 0;
    padding-left: 16px;
}

.cv-entry li,
.cv-entry > p {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.72;
}

.cv-entry li + li {
    margin-top: 4px;
}

.cv-entry-compact > p {
    max-width: 760px;
    margin-bottom: 0;
}

.cv-beyond {
    padding-left: 64px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.cv-beyond p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.cv-beyond strong {
    display: block;
    margin-bottom: 6px;
    color: var(--ink);
    font-family: var(--display);
    font-size: 1.25rem;
    font-weight: 500;
}

/* Responsive */

@media (max-width: 980px) {
    .hero-main,
    .cv-hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-title {
        min-height: 540px;
    }

    .hero-intro {
        min-height: 370px;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .section-header,
    .split-section,
    .personal-inner {
        grid-template-columns: 170px 1fr;
    }

    .interest-row {
        grid-template-columns: 40px minmax(190px, 0.75fr) 1fr;
    }

    .interest-row svg {
        display: none;
    }

    .work-row {
        grid-template-columns: 62px minmax(210px, .9fr) 1fr auto;
        gap: 20px;
    }

    .work-state {
        display: none;
    }

    .work-details {
        margin-left: 82px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .work-privacy,
    .work-details > .detail-repo {
        grid-column: 1 / -1;
    }

    .cv-hero-inner {
        gap: 60px;
    }

    .cv-layout {
        grid-template-columns: 1fr;
    }

    .cv-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0 34px;
    }
}

@media (max-width: 760px) {
    :root {
        --shell: min(100% - 28px, 1180px);
    }

    html {
        scroll-padding-top: 68px;
    }

    .site-nav {
        min-height: 68px;
    }

    .wordmark {
        width: auto;
        min-height: 68px;
        padding: 0 14px;
        border-right: 0;
    }

    .menu-toggle {
        position: relative;
        z-index: 102;
        margin: auto 8px auto auto;
        display: block;
    }

    .menu-toggle[aria-expanded="true"] > span:nth-child(2) {
        transform: translateY(3.5px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] > span:nth-child(3) {
        transform: translateY(-3.5px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        z-index: 101;
        inset: 0;
        min-height: 100vh;
        padding: 108px 24px 40px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        color: var(--paper-light);
        background: var(--ink);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
    }

    .nav-links.is-open {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links a {
        min-width: 0;
        min-height: 64px;
        padding: 0;
        justify-content: flex-start;
        border: 0;
        border-bottom: 1px solid var(--line-light);
        font-family: var(--display);
        font-size: 1.55rem;
        font-weight: 400;
    }

    .nav-links .nav-cta {
        margin-top: 20px;
        padding: 0 16px;
        justify-content: space-between;
        color: var(--ink);
        background: var(--paper-light);
        font-family: var(--sans);
        font-size: 0.82rem;
    }

    body.menu-open .wordmark,
    body.menu-open .menu-toggle {
        z-index: 103;
        color: #fff;
    }

    .section {
        padding: 84px 0;
    }

    .hero-frame {
        width: calc(100% - 28px);
    }

    .hero-title {
        min-height: 510px;
        padding: 36px 16px 40px;
    }

    .hero-title h1 {
        font-size: clamp(4.3rem, 20vw, 5.4rem);
        line-height: 0.82;
    }

    .hero-intro {
        min-height: 400px;
        padding: 32px 16px 36px;
    }

    .hero-statement {
        font-size: 1.85rem;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-field {
        min-height: 360px;
    }

    .hero-field svg {
        width: 100%;
        height: 210px;
    }

    .field-caption {
        top: 256px;
        width: 100%;
        height: 104px;
        padding: 14px 16px;
        flex-direction: row;
        align-items: flex-end;
    }

    .field-caption p {
        max-width: 260px;
        font-size: 1.4rem;
        text-align: right;
    }

    .section-header,
    .split-section,
    .personal-inner {
        grid-template-columns: 1fr;
    }

    .section-header {
        gap: 34px;
        margin-bottom: 48px;
    }

    .section-header h2,
    .path-content > h2 {
        font-size: clamp(3.1rem, 14vw, 4.4rem);
    }

    .split-section {
        gap: 46px;
    }

    .large-copy {
        margin-bottom: 48px;
        font-size: clamp(2.5rem, 12vw, 3.6rem);
    }

    .two-column-copy {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .interest-row {
        min-height: 0;
        padding: 28px 0;
        grid-template-columns: 30px 1fr;
        gap: 10px 14px;
    }

    .interest-row h3 {
        font-size: 2rem;
    }

    .interest-row > p {
        grid-column: 2;
    }

    .work-row {
        min-height: 0;
        padding: 28px 0;
        grid-template-columns: 58px minmax(0, 1fr) auto;
        gap: 14px;
        align-items: start;
    }

    .work-row > p {
        grid-column: 2;
    }

    .work-actions {
        grid-column: 3;
        grid-row: 1 / 3;
        align-self: start;
    }

    .work-action-links {
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
    }

    .work-details {
        margin-left: 72px;
        padding-top: 24px;
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .work-privacy,
    .work-details > .detail-repo {
        grid-column: auto;
    }

    .work-row h3 {
        font-size: 1.65rem;
    }

    .path-content > h2 {
        margin-bottom: 48px;
    }

    .timeline li {
        grid-template-columns: 74px 1fr;
        gap: 16px;
    }

    .personal-inner {
        min-height: 300px;
        gap: 42px;
    }

    .footer-main {
        min-height: 360px;
        grid-template-columns: 1fr;
        gap: 54px;
    }

    .footer-email {
        max-width: 100%;
        font-size: clamp(1.55rem, 7vw, 2rem);
        overflow-wrap: normal;
    }

    .footer-bottom {
        grid-template-columns: 1fr auto;
        gap: 10px;
    }

    .footer-bottom span:nth-child(2) {
        display: none;
    }

    .cv-hero-inner {
        min-height: 690px;
        padding: 46px 16px 40px;
        gap: 70px;
    }

    .cv-hero h1 {
        font-size: clamp(3.8rem, 17vw, 5.1rem);
    }

    .cv-layout {
        padding: 72px 0 90px;
        gap: 70px;
    }

    .cv-sidebar {
        grid-template-columns: repeat(2, 1fr);
    }

    .cv-entry,
    .cv-beyond {
        padding-left: 0;
    }

    .cv-entry-head {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .cv-beyond {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

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

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
    .js .reveal { opacity: 1; transform: none; }
}

@media print {
    .site-nav,
    .site-footer,
    .hero-actions,
    .skip-link {
        display: none !important;
    }

    body,
    .cv-hero {
        color: #000;
        background: #fff;
    }

    .cv-hero {
        border-bottom: 1px solid #000;
    }

    .cv-hero-inner {
        min-height: 0;
        padding: 20px 0;
        display: block;
        border: 0;
    }

    .cv-hero h1 {
        font-size: 34pt;
    }

    .cv-hero h1 em,
    .cv-role,
    .cv-side-block li::before {
        color: #000;
    }

    .cv-hero-side {
        display: none;
    }

    .cv-layout {
        width: 100%;
        padding: 24px 0;
        grid-template-columns: 135px 1fr;
        gap: 30px;
    }

    .cv-sidebar {
        position: static;
    }

    .cv-block,
    .cv-entry {
        break-inside: avoid;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}
