#resume-drawer-root {
    position: fixed;
    inset: 0;
    z-index: 260;
    color: #111;
    pointer-events: none;
}

body.resume-open .hud {
    z-index: 270;
}

body.resume-open .hud > :first-child {
    opacity: 0;
    visibility: hidden;
}

body.resume-open .portfolio-wordmark {
    opacity: 0;
    visibility: hidden;
}

.hud > :first-child,
.portfolio-wordmark {
    transition: opacity 260ms ease;
}

.resume-drawer-scrim {
    position: absolute;
    inset: 0;
    border: 0;
    background: transparent;
    opacity: 0;
    pointer-events: none;
}

.resume-drawer-root.is-open .resume-drawer-scrim {
    pointer-events: auto;
}

.resume-drawer-shell {
    --resume-panel-width: calc(100vw - clamp(220px, 14vw, 260px));
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--resume-panel-width);
    transform: translate3d(-100%, 0, 0);
    transition: transform 720ms cubic-bezier(0.76, 0, 0.24, 1);
    will-change: transform;
    pointer-events: none;
}

.resume-drawer-root.is-open .resume-drawer-shell {
    transform: translate3d(0, 0, 0);
}

.resume-drawer-panel {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #fff;
    color: #111;
    border-right: 1px solid rgba(17, 17, 17, 0.18);
    box-shadow: 18px 0 48px rgba(0, 0, 0, 0.14);
    pointer-events: auto;
}

.resume-drawer-scroll {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.resume-drawer-handle {
    position: absolute;
    top: 50%;
    left: 100%;
    width: 64px;
    height: 136px;
    padding: 17px 10px 17px 7px;
    display: grid;
    grid-template-rows: 1fr auto;
    justify-items: center;
    gap: 10px;
    border: 0;
    background: #fff;
    color: #111;
    clip-path: polygon(0 0, 66% 0, 100% 50%, 66% 100%, 0 100%);
    filter: drop-shadow(7px 2px 8px rgba(0, 0, 0, 0.2));
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) translateX(-8px);
    transition: opacity 280ms ease, transform 280ms ease, color 180ms ease;
}

.resume-drawer-root.is-ready .resume-drawer-handle {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}

.resume-drawer-handle:hover {
    color: #555;
}

.resume-drawer-handle:focus-visible {
    outline: none;
}

.resume-drawer-handle:focus-visible .resume-drawer-handle-label {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.resume-drawer-handle-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
}

.resume-drawer-handle svg {
    width: 22px;
    height: 22px;
    transition: transform 500ms cubic-bezier(0.76, 0, 0.24, 1);
}

.resume-drawer-root.is-open .resume-drawer-handle svg {
    transform: rotate(180deg);
}

.resume-sheet {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 80px 38px 30px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    background: #fff;
    overflow: hidden;
}

.resume-toolbar {
    position: absolute;
    top: 24px;
    right: 38px;
    z-index: 2;
}

.resume-wordmark {
    position: absolute;
    top: 32px;
    left: 50%;
    max-width: calc(100% - 190px);
    margin: 0;
    overflow: hidden;
    color: #111;
    font-family: 'Raleway', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 6px;
    text-align: center;
    text-overflow: clip;
    text-transform: uppercase;
    white-space: nowrap;
    transform: translateX(-50%);
}

.resume-download {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 9px 14px;
    border: 1px solid #111;
    border-radius: 4px;
    background: #111;
    color: #fff;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 180ms ease, color 180ms ease;
}

.resume-download:hover {
    background: #fff;
    color: #111;
}

.resume-download svg {
    width: 16px;
    height: 16px;
}

.resume-hero {
    min-width: 0;
    display: grid;
    grid-template-columns: 138px minmax(0, 1fr) 138px;
    gap: 30px;
    align-items: start;
    margin-bottom: 22px;
}

.resume-hero::after {
    content: '';
    width: 138px;
}

.resume-portrait-wrap {
    width: 138px;
    height: 164px;
    margin: 0;
    overflow: hidden;
    border-radius: 70px 70px 0 70px;
    background: #eee;
}

.resume-portrait {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.resume-intro {
    min-width: 0;
    padding-top: 2px;
    text-align: center;
}

.resume-role {
    margin: 0 0 8px;
    color: #4a4a4a;
    font-size: 0.76rem;
    font-weight: 650;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0;
}

.resume-name {
    margin: 0;
    color: #050505;
    font-size: 3.45rem;
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.resume-summary {
    max-width: 760px;
    margin: 14px auto 0;
    color: #303030;
    font-size: 0.92rem;
    line-height: 1.5;
    white-space: pre-line;
}

.resume-columns {
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    overflow: hidden;
}

.resume-column {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 28px;
    border-left: 1px solid #dedede;
    overflow: hidden;
}

.resume-column:first-child {
    padding-left: 0;
    border-left: 0;
}

.resume-column:last-child {
    padding-right: 0;
}

.resume-section[hidden] {
    display: none;
}

.resume-section-title {
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #111;
    color: #777;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0;
}

.resume-credential-list {
    display: grid;
}

.resume-credential {
    min-width: 0;
    display: block;
    padding: 12px 0 13px;
    border-bottom: 1px solid #dedede;
    color: #111;
    text-decoration: none;
}

.resume-credential-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #666;
    font-size: 0.66rem;
    line-height: 1.3;
}

.resume-credential-period {
    flex: 0 0 auto;
    text-align: right;
}

.resume-credential-title {
    margin: 7px 0 0;
    color: #111;
    font-size: 1.02rem;
    font-weight: 650;
    line-height: 1.2;
}

.resume-credential-detail {
    margin: 5px 0 0;
    color: #555;
    font-size: 0.72rem;
    line-height: 1.35;
}

.resume-credential-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    color: #111;
    font-size: 0.68rem;
    font-weight: 650;
    line-height: 1;
}

.resume-credential-action svg {
    width: 12px;
    height: 12px;
}

.resume-credential:hover .resume-credential-action {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.resume-records {
    display: grid;
    gap: 0;
}

.resume-record {
    padding: 11px 0;
    border-bottom: 1px solid #dedede;
}

.resume-record:last-child {
    border-bottom: 0;
}

.resume-record-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.resume-record-title {
    margin: 0;
    color: #111;
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.3;
}

.resume-record-period {
    flex: 0 0 auto;
    color: #777;
    font-size: 0.62rem;
    line-height: 1.3;
    text-align: right;
}

.resume-record-organisation,
.resume-record-detail,
.resume-record-result {
    margin: 3px 0 0;
    color: #444;
    font-size: 0.7rem;
    line-height: 1.38;
    white-space: pre-line;
}

.resume-record-result {
    color: #707070;
    font-size: 0.65rem;
}

.resume-list {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
    list-style: none;
}

.resume-list li {
    min-width: 0;
    padding: 8px 0;
    border-bottom: 1px solid #dedede;
    color: #2b2b2b;
    font-size: 0.7rem;
    line-height: 1.32;
    overflow-wrap: anywhere;
}

.resume-interest-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0;
    padding: 10px 0 0;
    list-style: none;
}

.resume-interest-list li {
    padding: 5px 7px;
    border: 1px solid #cfcfcf;
    color: #292929;
    font-size: 0.66rem;
    line-height: 1;
}

.resume-interest-list .resume-tool-note {
    flex-basis: 100%;
    padding: 4px 0 0;
    border: 0;
    color: #666;
    font-size: 0.61rem;
    line-height: 1.35;
}

.resume-contact-list {
    display: grid;
    gap: 7px;
    padding-top: 10px;
}

.resume-contact-link {
    min-width: 0;
    display: grid;
    grid-template-columns: 55px minmax(0, 1fr);
    gap: 8px;
    align-items: baseline;
    color: #111;
    text-decoration: none;
}

.resume-contact-label {
    color: #777;
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
}

.resume-contact-value {
    min-width: 0;
    color: #222;
    font-size: 0.68rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: text-decoration-color 180ms ease;
}

.resume-contact-link:hover .resume-contact-value {
    text-decoration-color: currentColor;
}

@media (max-width: 1100px) {
    .resume-sheet {
        padding: 74px 30px 26px;
    }

    .resume-toolbar {
        top: 18px;
        right: 30px;
    }

    .resume-wordmark {
        top: 28px;
        max-width: calc(100% - 150px);
        font-size: 1rem;
        letter-spacing: 5px;
    }

    .resume-hero {
        grid-template-columns: 104px minmax(0, 1fr) 104px;
        gap: 20px;
        margin-bottom: 16px;
    }

    .resume-hero::after {
        width: 104px;
    }

    .resume-portrait-wrap {
        width: 104px;
        height: 124px;
    }

    .resume-name {
        font-size: 2.7rem;
    }

    .resume-summary {
        font-size: 0.82rem;
    }

    .resume-column {
        gap: 16px;
        padding: 0 20px;
    }

    .resume-section-title {
        padding-bottom: 8px;
    }

    .resume-credential {
        padding: 9px 0 10px;
    }

    .resume-credential-title {
        font-size: 0.92rem;
    }

    .resume-record {
        padding: 8px 0;
    }

    .resume-record-title {
        font-size: 0.76rem;
    }

    .resume-record-period {
        font-size: 0.57rem;
    }

    .resume-record-organisation,
    .resume-record-detail,
    .resume-record-result {
        font-size: 0.64rem;
        line-height: 1.32;
    }

}

@media (min-width: 761px) and (max-width: 1200px) {
    .resume-download {
        width: 40px;
        padding: 0;
    }

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

@media (min-width: 761px) and (max-width: 980px) {
    .resume-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 28px;
        row-gap: 18px;
        align-content: start;
    }

    .resume-column {
        padding: 0;
        border-left: 0;
    }

    .resume-column-credentials {
        grid-column: 1 / -1;
    }

    .resume-credential-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 22px;
    }
}

@media (max-height: 700px) and (min-width: 761px) {
    .resume-sheet {
        padding-top: 64px;
        padding-bottom: 20px;
    }

    .resume-toolbar {
        top: 12px;
    }

    .resume-wordmark {
        top: 22px;
    }

    .resume-hero {
        grid-template-columns: 96px minmax(0, 1fr) 96px;
        margin-bottom: 14px;
    }

    .resume-hero::after {
        width: 96px;
    }

    .resume-portrait-wrap {
        width: 96px;
        height: 112px;
    }

    .resume-name {
        font-size: 2.35rem;
    }

    .resume-summary {
        margin-top: 10px;
        font-size: 0.76rem;
        line-height: 1.4;
    }

    .resume-column {
        gap: 12px;
    }

    .resume-credential {
        padding: 8px 0 9px;
    }

    .resume-credential-title {
        font-size: 0.88rem;
    }

    .resume-list li {
        padding: 6px 0;
    }
}

@media (max-width: 760px) {
    .resume-drawer-shell {
        --resume-panel-width: calc(100vw - 64px);
    }

    .resume-sheet {
        padding: 62px 18px 15px;
        grid-template-rows: auto minmax(0, 1fr);
    }

    .resume-toolbar {
        top: 8px;
        right: 16px;
    }

    .resume-wordmark {
        top: 18px;
        max-width: calc(100% - 96px);
        font-size: 0.72rem;
        letter-spacing: 3px;
    }

    .resume-download {
        width: 36px;
        min-height: 36px;
        padding: 0;
    }

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

    .resume-hero {
        grid-template-columns: 66px minmax(0, 1fr) 66px;
        gap: 12px;
        padding: 0;
        margin-bottom: 10px;
    }

    .resume-hero::after {
        width: 66px;
    }

    .resume-portrait-wrap {
        width: 66px;
        height: 80px;
        border-radius: 36px 36px 0 36px;
    }

    .resume-role {
        margin-bottom: 4px;
        font-size: 0.6rem;
    }

    .resume-name {
        font-size: 1.55rem;
        line-height: 1;
    }

    .resume-summary {
        margin-top: 7px;
        display: -webkit-box;
        overflow: hidden;
        font-size: 0.64rem;
        line-height: 1.35;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .resume-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 13px;
        row-gap: 11px;
        align-content: start;
    }

    .resume-column {
        gap: 11px;
        padding: 0;
        border: 0;
    }

    .resume-column-credentials {
        grid-column: 1 / -1;
    }

    .resume-section-title {
        padding-bottom: 7px;
        font-size: 0.56rem;
    }

    .resume-credential-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 12px;
    }

    .resume-credential {
        padding: 7px 0 8px;
    }

    .resume-credential-meta {
        display: grid;
        gap: 2px;
        font-size: 0.52rem;
    }

    .resume-credential-period {
        text-align: left;
    }

    .resume-credential-title {
        margin-top: 4px;
        font-size: 0.7rem;
    }

    .resume-credential-detail {
        font-size: 0.54rem;
    }

    .resume-credential-action {
        margin-top: 5px;
        font-size: 0.54rem;
    }

    .resume-list {
        grid-template-columns: 1fr;
        column-gap: 0;
    }

    .resume-list li {
        padding: 4px 0;
        font-size: 0.55rem;
    }

    .resume-interest-list {
        gap: 3px;
    }

    .resume-interest-list li {
        padding: 3px 4px;
        font-size: 0.52rem;
    }

    .resume-records {
        gap: 7px;
    }

    .resume-record {
        padding: 6px 0;
    }

    .resume-record-header {
        display: grid;
        gap: 2px;
    }

    .resume-record-title {
        font-size: 0.61rem;
    }

    .resume-record-period,
    .resume-record-organisation,
    .resume-record-detail,
    .resume-record-result {
        font-size: 0.52rem;
        text-align: left;
    }

    .resume-contact-list {
        gap: 4px;
    }

    .resume-contact-link {
        display: block;
    }

    .resume-contact-label,
    .resume-contact-value {
        display: block;
        font-size: 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .resume-drawer-shell,
    .resume-drawer-handle,
    .resume-drawer-handle svg {
        transition-duration: 1ms;
    }
}
