/* Shared refinements for the portfolio. */
:root {
    --paper: #fbfaf5;
    --paper-soft: #f1efe8;
    --ink: #050505;
    --muted: #6a665f;
    --line: #202020;
    --line-soft: rgba(31, 31, 31, 0.18);
    --accent: #185cff;
    --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --page-padding: clamp(18px, 3.5vw, 42px);
    --radius-control: 6px;
    --radius-media: 6px;
    --control-height: 38px;
    --control-padding-x: 15px;
    --control-font-size: clamp(12px, 0.95vw, 14px);
    --ease-standard: 160ms ease;
}

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

html,
body {
    overflow-x: hidden;
}

html {
    background: var(--paper-soft);
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    text-align: left;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

#Title h1,
#Title h2,
#Title h3,
.social-links,
#categories h1,
.subtitle h1,
.subtitle h2,
.subtitle h4,
.subtitle h5,
.image-text,
.image-text h2,
.image-text p,
.detailsContent > p,
.about-bio,
#about-section h3,
#about-section p {
    letter-spacing: 0;
}

#Title h1,
#categories h1,
.subtitle h1,
.image-text h2,
#about-section h3 {
    text-wrap: balance;
}

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

button {
    font-family: inherit;
}

hr {
    display: block;
    height: 1px;
    margin: 0;
    border: 0;
    background: var(--line-soft);
}

.thin-hr {
    height: 1px;
    background: var(--line-soft);
}

.thick-hr {
    height: 2px;
    background: var(--line);
}

:is(.btn, .subtitle-btn, .image-text-btn) {
    display: inline-flex;
    min-height: var(--control-height);
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    margin: 0;
    padding: 9px var(--control-padding-x);
    background: transparent;
    color: var(--ink);
    font-size: var(--control-font-size);
    font-weight: 600;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition:
        background-color var(--ease-standard),
        border-color var(--ease-standard),
        color var(--ease-standard),
        transform var(--ease-standard);
}

:is(.btn, .subtitle-btn, .image-text-btn):hover,
:is(.btn, .subtitle-btn, .image-text-btn):focus-visible {
    background: var(--ink);
    color: var(--paper);
    outline: none;
}

:is(.btn, .subtitle-btn, .image-text-btn):active {
    transform: translateY(1px);
}

.btn {
    width: 100%;
}

.image-text-btn {
    width: max-content;
    max-width: 100%;
    background: var(--ink);
    color: var(--paper);
}

.image-text-btn:hover,
.image-text-btn:focus-visible {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.image-text .project-link {
    align-self: flex-start;
    width: auto;
    min-height: auto;
    border: 0;
    border-bottom: 1px solid currentColor;
    border-radius: 0;
    margin-top: 2px;
    padding: 0 0 4px;
    background: transparent;
    color: var(--ink);
    font-size: clamp(13px, 1vw, 15px);
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: left;
    transition:
        border-color var(--ease-standard),
        color var(--ease-standard);
}

.image-text .project-link::after {
    content: "\00a0\2192";
    display: inline-block;
    transition: transform var(--ease-standard);
}

.image-text .project-link:hover,
.image-text .project-link:focus-visible {
    border-color: var(--accent);
    background: transparent;
    color: var(--accent);
    outline: none;
}

.image-text .project-link:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 4px;
}

.image-text .project-link:hover::after,
.image-text .project-link:focus-visible::after {
    transform: translateX(3px);
}

.image-text .project-link:active {
    transform: none;
}

.detailsButton {
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 36px;
    padding: 8px 12px;
    background: var(--paper);
    color: var(--ink);
    white-space: nowrap;
}

.detailsButton::after {
    content: "";
    flex: 0 0 auto;
    display: block;
    width: 9px;
    height: 9px;
    border: 0;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    border-radius: 0;
    margin: -4px 0 0 2px;
    transform: rotate(45deg);
    transform-origin: 50% 50%;
}

.detailsButton[aria-expanded="true"]::after {
    content: "";
    margin-top: 4px;
    transform: rotate(225deg);
}

.title-and-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: clamp(16px, 3vw, 48px);
}

.buttons-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(18px, 2.6vw, 36px);
    min-width: 0;
    padding-right: 20px;
}

.buttons-container .btn {
    flex: 0 0 auto;
    width: auto;
    min-height: 32px;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    color: var(--muted);
    font-size: clamp(13px, 0.95vw, 15px);
    font-weight: 700;
    letter-spacing: 0;
}

.buttons-container .btn:hover,
.buttons-container .btn:focus-visible,
.buttons-container .btn.is-current,
.buttons-container .btn[aria-current="page"] {
    background: transparent;
    color: var(--ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.buttons-container .btn:active {
    transform: none;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0;
    padding: 0 20px;
    text-transform: uppercase;
}

.social-link {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    color: inherit;
    font-size: clamp(12px, 0.95vw, 14px);
    font-weight: 600;
    line-height: 1.1;
    text-decoration: none;
    transition: color var(--ease-standard);
}

.social-link:nth-child(1) {
    justify-content: flex-start;
}

.social-link:nth-child(2) {
    justify-content: center;
}

.social-link:nth-child(3) {
    justify-content: center;
}

.social-link:nth-child(4) {
    justify-content: center;
}

.social-link:nth-child(5) {
    justify-content: flex-end;
}

.social-link-youtube:hover,
.social-link-youtube:focus-visible {
    color: #e60000;
}

.social-link-soundcloud:hover,
.social-link-soundcloud:focus-visible {
    color: #ff6a00;
}

.social-link-instagram:hover,
.social-link-instagram:focus-visible {
    color: #b700ff;
}

.social-link-twitter:hover,
.social-link-twitter:focus-visible {
    color: #008ed8;
}

.social-link-facebook:hover,
.social-link-facebook:focus-visible {
    color: #164dff;
}

.subtitle-buttons-container {
    display: flex;
    align-items: center;
    justify-self: end;
    padding-right: 0;
}

#Title h1 {
    margin: clamp(18px, 2.2vw, 30px) 20px;
    font-size: clamp(56px, 8.6vw, 128px);
    font-weight: 500;
    line-height: 0.92;
    word-spacing: 0;
}

#Title:not(:has(.site-info-header)) {
    --home-title-height: clamp(156px, 14vw, 224px);
    --home-title-padding-y: clamp(22px, 2.4vw, 34px);
}

#Title:not(:has(.site-info-header)) .title-and-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

#Title:not(:has(.site-info-header)) .title-and-buttons > h1 {
    display: flex;
    min-height: var(--home-title-height);
    align-items: center;
    margin: 0;
    padding: var(--home-title-padding-y) var(--page-padding);
}

#Title:not(:has(.site-info-header)) .title-and-buttons .buttons-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    border-top: 1px solid var(--line-soft);
    padding: 0 var(--page-padding);
}

#Title:not(:has(.site-info-header)) .title-and-buttons .btn {
    min-width: 0;
    min-height: clamp(52px, 4.8vw, 66px);
    width: 100%;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
}

#Title h2 {
    align-items: center;
    padding: 12px 20px;
    color: var(--ink);
    font-size: clamp(12px, 0.9vw, 14px);
    font-weight: 600;
    line-height: 1.25;
}

#Title h2 span {
    font-size: inherit;
}

#Title > h3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    min-height: 32px;
    margin: 0;
    padding: 5px var(--page-padding);
    color: var(--muted);
    border-bottom: 1px solid var(--line-soft);
    font-size: clamp(11px, 0.85vw, 13px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
}

#Title > h3 span {
    min-width: 0;
    font-size: inherit;
    line-height: inherit;
    white-space: nowrap;
}

#Title > h3 span:nth-child(1) {
    text-align: left;
}

#Title > h3 span:nth-child(2) {
    text-align: center;
}

#Title > h3 span:nth-child(3) {
    text-align: right;
}

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

#categories h1 {
    margin: 0;
    padding: clamp(16px, 2.8vw, 34px) var(--page-padding);
    font-size: clamp(24px, 4vw, 48px);
    font-weight: 600;
    line-height: 1;
}

.subtitle-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(14px, 2vw, 24px);
    align-items: center;
    width: 100%;
    padding: clamp(18px, 3vw, 34px) var(--page-padding);
    background: var(--paper);
}

.subtitle h1 {
    margin: 0;
    padding: 0;
    font-size: clamp(26px, 4.1vw, 56px);
    font-weight: 400;
    line-height: 1.08;
    word-spacing: 0;
    overflow-wrap: anywhere;
}

.subtitle h1 a {
    color: inherit;
    text-decoration: none;
    transition: color var(--ease-standard);
}

#p1:hover,
#p2:hover,
#p3:hover,
#p4:hover,
#p5:hover,
.subtitle h1 a:hover,
.subtitle h1 a:focus-visible {
    color: var(--accent);
}

.subtitle h2,
.image-text h2 {
    margin: 0;
    padding: 0;
    font-size: clamp(24px, 3.2vw, 44px);
    font-weight: 400;
    line-height: 1.08;
    text-align: left;
}

.subtitle h4,
.subtitle h5,
.image-text p,
.subtitle p {
    color: var(--muted);
    font-size: clamp(15px, 1.45vw, 19px);
    font-weight: 400;
    line-height: 1.48;
}

.subtitle h4,
.subtitle h5 {
    margin: 0;
    padding: 0 var(--page-padding) var(--page-padding);
}

.image-text p {
    margin: 0;
}

#webpage_main_image {
    align-items: stretch;
}

.webpage_main_image,
.image-text {
    padding: var(--page-padding);
}

.image-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(14px, 2vw, 24px);
    text-align: left;
}

.resizable-image,
video.resizable-image,
.mobile {
    display: block;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-media);
}

img,
video,
iframe {
    max-width: 100%;
}

img,
video {
    height: auto;
}

.mobile {
    display: block;
    width: 100%;
    height: auto;
}

.detailsContent {
    will-change: max-height, opacity;
    background: var(--paper);
}

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

.about-hero .profile-image,
.about-portrait .profile-image {
    aspect-ratio: 1;
    object-fit: cover;
}

.about-portrait {
    display: flex;
    justify-content: center;
    padding: clamp(36px, 7vw, 80px) 24px 12px;
}

.about-portrait .profile-image {
    display: block;
    width: min(42vw, 340px);
    height: auto;
    margin: 0 auto;
}

.detailsContent > p {
    max-width: 760px;
    margin: 24px auto;
    padding: 0 28px;
    color: var(--ink);
    font-size: clamp(16px, 1.45vw, 20px);
    font-weight: 400;
    line-height: 1.45;
    text-align: left;
    overflow-wrap: break-word;
}

.about-bio {
    max-width: 760px;
    margin: 24px auto 0;
    padding: 0 28px;
    color: var(--ink);
    font-size: clamp(16px, 1.55vw, 22px);
    font-weight: 400;
    line-height: 1.45;
    text-align: left;
    overflow-wrap: break-word;
}

.resume-button {
    display: block;
    width: max-content;
    max-width: calc(100% - 56px);
    margin: 22px auto 56px;
}

.about-contact-panel {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.4fr);
    gap: clamp(22px, 4vw, 56px);
    align-items: center;
    padding: clamp(24px, 5vw, 64px) var(--page-padding);
    background: var(--paper);
}

.about-contact-photo {
    display: flex;
    justify-content: flex-end;
}

.about-contact-photo .profile-image {
    display: block;
    width: min(100%, 330px);
    height: auto;
    margin: 0;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-media);
    aspect-ratio: auto;
    object-fit: contain;
}

.about-contact-info {
    max-width: 680px;
}

.contact-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.contact-topline .profile-label {
    margin-bottom: 0;
}

.language-switch {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(38px, 1fr));
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-control);
    overflow: hidden;
    background: var(--paper);
}

.language-option {
    min-height: 30px;
    border: 0;
    border-left: 1px solid var(--line-soft);
    padding: 0 10px;
    background: transparent;
    color: var(--muted);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.language-option:first-child {
    border-left: 0;
}

.language-option:hover,
.language-option:focus-visible {
    background: var(--paper-soft);
    color: var(--ink);
    outline: none;
}

.language-option.is-active,
.language-option[aria-pressed="true"] {
    background: var(--ink);
    color: var(--paper);
}

.about-contact-info h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: 0;
}

.contact-lede {
    max-width: 620px;
    margin: clamp(14px, 2vw, 22px) 0 0;
    color: var(--muted);
    font-size: clamp(16px, 1.6vw, 21px);
    line-height: 1.45;
}

.contact-list {
    display: grid;
    margin: clamp(18px, 2.6vw, 28px) 0 0;
    border-top: 1px solid var(--line-soft);
}

.contact-list div {
    display: grid;
    grid-template-columns: minmax(90px, 0.32fr) minmax(0, 1fr);
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line-soft);
}

.contact-list dt {
    color: var(--muted);
    font-size: clamp(12px, 1vw, 14px);
    font-weight: 700;
    line-height: 1.35;
}

.contact-list dd {
    margin: 0;
    color: var(--ink);
    font-size: clamp(14px, 1.2vw, 16px);
    font-weight: 500;
    line-height: 1.42;
    overflow-wrap: anywhere;
}

.contact-list a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.about-contact-info .resume-button {
    margin: clamp(18px, 2.6vw, 28px) 0 0;
}

#about-section {
    max-width: 1120px;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 56px);
}

#about-section .info-section {
    gap: 12px;
    margin-top: 0;
}

.education,
.degree,
.skills,
.awards,
.scholarship {
    margin: 0;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: var(--paper);
    padding: 18px;
}

#about-section h3 {
    margin: 0 0 14px;
    color: var(--ink);
    font-size: clamp(17px, 1.8vw, 24px);
    font-weight: 600;
    line-height: 1.1;
}

#about-section p,
.chart p {
    color: var(--muted);
    font-size: clamp(14px, 1.25vw, 16px);
    line-height: 1.5;
}

.profile-summary,
.profile-card {
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: var(--paper);
    padding: clamp(18px, 2.8vw, 30px);
}

.profile-summary {
    margin-bottom: 12px;
}

.profile-label {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.profile-summary h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(28px, 4.2vw, 52px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
}

.profile-summary p {
    max-width: 760px;
    margin: 16px 0 0;
}

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

.profile-card {
    grid-column: span 6;
}

.profile-card-wide {
    grid-column: span 12;
}

.profile-experience {
    padding-inline: 0;
}

.profile-experience > h3,
.profile-experience .profile-entry,
.profile-experience .profile-entry-header,
.profile-experience .profile-entry h4,
.profile-experience .profile-entry p {
    margin-left: 0;
    padding-left: 0;
    text-indent: 0;
}

.profile-experience > h3,
.profile-experience .profile-entry {
    padding-right: clamp(12px, 2vw, 24px);
}

.profile-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.profile-list div {
    display: grid;
    grid-template-columns: minmax(96px, 0.35fr) minmax(0, 1fr);
    gap: 14px;
    padding: 10px 0;
    border-top: 1px solid var(--line-soft);
}

.profile-list div:first-child {
    border-top: 0;
    padding-top: 0;
}

.profile-list div:last-child {
    padding-bottom: 0;
}

.profile-list dt {
    color: var(--muted);
    font-size: clamp(12px, 1vw, 14px);
    font-weight: 700;
    line-height: 1.35;
}

.profile-list dd {
    margin: 0;
    color: var(--ink);
    font-size: clamp(14px, 1.2vw, 16px);
    font-weight: 500;
    line-height: 1.42;
}

.profile-list a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border: 1px solid var(--line-soft);
    border-radius: 4px;
    padding: 6px 9px;
    color: var(--ink);
    font-size: clamp(12px, 1vw, 14px);
    font-weight: 600;
    line-height: 1.15;
}

.profile-entry {
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid var(--line-soft);
}

.profile-entry:first-of-type {
    padding-top: 0;
    margin-top: 0;
    border-top: 0;
}

.profile-entry-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.profile-entry h4 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(18px, 1.8vw, 26px);
    font-weight: 600;
    line-height: 1.15;
}

.profile-entry-header span {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: clamp(12px, 1vw, 14px);
    font-weight: 700;
    line-height: 1.3;
}

.profile-entry p {
    margin: 10px 0 0;
}

.profile-entry .profile-meta {
    color: var(--ink);
    font-weight: 600;
}

@media screen and (max-width: 900px) {
    :root {
        --page-padding: 14px;
        --control-height: 36px;
        --control-padding-x: 12px;
        --control-font-size: 12px;
    }

    #Title:not(:has(.site-info-header)) {
        --home-title-height: clamp(128px, 18vw, 156px);
        --home-title-padding-y: 20px;
    }

    html,
    body {
        background: var(--paper-soft);
        text-align: left;
    }

    hr {
        margin: 0;
    }

    .thin-hr,
    hr {
        background-color: var(--line-soft);
        opacity: 1;
    }

    .thick-hr {
        background-color: var(--line);
        opacity: 0.9;
    }

    #Title {
        background: var(--paper);
    }

    #Title h2,
    .social-links {
        gap: 0;
        font-size: 12px;
        line-height: 1.35;
    }

    #Title h2 {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: start;
        column-gap: 18px;
        row-gap: 6px;
        padding: 12px 14px;
    }

    #Title h2:not(:has(.up-sub-4)):not(.site-info-header) {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    }

    #Title h2 .up-sub-2 {
        text-align: center;
    }

    #Title h2 .up-sub-3 {
        text-align: right;
    }

    #Title h2 .up-sub-4 {
        grid-column: 1 / -1;
        color: var(--muted);
    }

    .social-links {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        padding: 0;
    }

    #Title h2 span,
    .social-link {
        font-size: clamp(10px, 2.8vw, 12px);
        font-weight: 600;
        letter-spacing: 0;
        line-height: 1.35;
    }

    #Title h2 a,
    .social-link {
        min-height: 32px;
        display: inline-flex;
        align-items: center;
    }

    .social-link {
        min-height: 38px;
        align-items: center;
        border-right: 1px solid var(--line-soft);
        border-bottom: 1px solid var(--line-soft);
        padding: 9px 6px;
        justify-content: center;
        text-align: center;
        white-space: nowrap;
    }

    .social-link:nth-child(1),
    .social-link:nth-child(2),
    .social-link:nth-child(3),
    .social-link:nth-child(4),
    .social-link:nth-child(5) {
        justify-content: center;
    }

    .social-link:nth-child(5) {
        border-right: 0;
    }

    .title-and-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    #Title h1 {
        margin: 0;
        padding: var(--home-title-padding-y) 14px;
        font-size: clamp(38px, 10.8vw, 56px);
        font-weight: 500;
        line-height: 0.96;
        letter-spacing: 0;
        overflow-wrap: anywhere;
    }

    .buttons-container {
        align-items: stretch;
        justify-content: space-between;
        gap: 0;
        border-top: 1px solid var(--line-soft);
        padding: 0 14px;
    }

    .buttons-container .btn {
        flex: 1 1 0;
        min-height: 46px;
        font-size: 13px;
    }


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

    #categories h1 {
        padding: 11px 14px;
        font-size: clamp(17px, 4.8vw, 26px);
        font-weight: 600;
        line-height: 1.02;
        letter-spacing: 0;
    }

    .subtitle-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        align-items: center;
        padding: 13px 14px;
        background: var(--paper);
    }

    .subtitle h1 {
        padding: 0;
        font-size: clamp(18px, 5vw, 25px);
        font-weight: 400;
        line-height: 1.12;
        letter-spacing: 0;
        overflow-wrap: anywhere;
    }

    .subtitle-buttons-container {
        padding: 0;
    }

    .subtitle-btn {
        --control-height: 34px;
        --control-font-size: 12px;
    }

    .detailsButton {
        min-height: 34px;
        padding: 7px 10px;
    }

    .detailsContent {
        background: var(--paper);
    }

    .detailsContent > br {
        display: none;
    }

    #webpage_main_image {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        width: 100%;
    }

    .vertical-line {
        display: none;
    }

    .webpage_main_image,
    .image-text {
        flex: 1 1 auto;
        width: 100%;
        padding: 14px;
    }

    .image-text {
        max-width: 720px;
        gap: 12px;
        font-size: 14px;
        line-height: 1.42;
        text-align: left;
    }

    .image-text h2,
    .subtitle h2 {
        padding: 0;
        font-size: clamp(18px, 5vw, 24px);
        font-weight: 400;
        line-height: 1.12;
        text-align: left;
        letter-spacing: 0;
    }

    .image-text p,
    .subtitle p {
        color: var(--muted);
        font-size: clamp(13px, 3.5vw, 15px);
        line-height: 1.48;
    }

    .subtitle h4,
    .subtitle h5 {
        padding: 10px 14px;
        font-size: clamp(13px, 3.5vw, 15px);
        line-height: 1.35;
        text-align: left;
        letter-spacing: 0;
    }

    .resizable-image,
    video.resizable-image,
    .mobile {
        display: block;
        border: 1px solid var(--line-soft);
        border-radius: 6px;
    }

    .image-text-btn {
        margin-top: 12px;
        min-height: 34px;
        padding: 8px 12px;
    }

    .about-hero {
        padding: 24px 14px 18px;
    }

    .about-hero .webpage_main_image {
        display: flex;
        justify-content: center;
        padding: 0;
    }

    .about-hero .profile-image {
        width: min(42vw, 180px);
        height: auto;
        margin: 0 auto;
    }

    .about-hero .image-text {
        margin: 0 auto;
        padding: 12px 0 0;
        text-align: center;
    }

    .about-hero .image-text h2,
    .about-hero .image-text p {
        text-align: center;
    }

    .about-portrait {
        padding: 34px 14px 10px;
    }

    .about-portrait .profile-image {
        width: min(54vw, 250px);
        margin: 0 auto;
    }

    .detailsContent > p {
        max-width: 560px;
        margin: 14px auto;
        padding: 0 22px;
        font-size: clamp(15px, 4vw, 18px);
        line-height: 1.5;
    }

    .about-bio {
        max-width: 560px;
        margin: 14px auto 0;
        padding: 0 22px;
        font-size: clamp(15px, 4vw, 18px);
        line-height: 1.5;
    }

    .resume-button {
        width: calc(100% - 44px);
        max-width: 320px;
        margin: 18px auto 34px;
        text-align: center;
    }

    .about-contact-panel {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 24px 14px 28px;
    }

    .about-contact-photo {
        justify-content: center;
    }

    .about-contact-photo .profile-image {
        width: min(64vw, 260px);
        margin: 0 auto;
    }

    .about-contact-info {
        max-width: 560px;
        margin: 0 auto;
        text-align: left;
    }

    .about-contact-info h2 {
        font-size: clamp(28px, 8vw, 42px);
        line-height: 1.02;
    }

    .contact-lede {
        font-size: clamp(14px, 3.8vw, 17px);
        line-height: 1.5;
    }

    .contact-list div {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 9px 0;
    }

    .about-contact-info .resume-button {
        width: 100%;
        margin: 18px 0 0;
    }

    .logo {
        width: min(34vw, 140px);
        height: auto;
        padding: 8px;
    }

    img.logo {
        display: block;
        max-width: 100%;
        height: auto;
        padding: 0;
    }

    #Title .logo {
        width: clamp(48px, 16vw, 72px);
        padding: 0;
    }

    iframe {
        width: 100% !important;
        min-height: 260px;
        height: 62vw !important;
    }

    .profile-image {
        display: block;
        width: min(58vw, 220px);
        height: auto;
        margin: 0 auto 12px;
    }

    #about-section {
        padding: 18px 14px 28px;
    }

    .profile-summary,
    .profile-card {
        padding: 14px;
    }

    .profile-experience {
        padding-inline: 8px;
    }

    .profile-summary h2 {
        font-size: clamp(26px, 8vw, 36px);
        line-height: 1.05;
    }

    .profile-summary p {
        margin-top: 12px;
        font-size: clamp(14px, 3.7vw, 16px);
    }

    .profile-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .profile-card,
    .profile-card-wide {
        grid-column: 1;
    }

    .profile-list div {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 9px 0;
    }

    .profile-list dt {
        font-size: 12px;
    }

    .profile-list dd,
    .tag-list span {
        font-size: clamp(13px, 3.5vw, 15px);
    }

    .profile-entry-header {
        display: block;
    }

    .profile-entry-header span {
        display: block;
        margin-top: 5px;
    }

    .profile-entry h4 {
        font-size: clamp(17px, 5vw, 22px);
    }

    .info-section,
    .degree .charts {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .education,
    .degree,
    .skills,
    .awards,
    .scholarship {
        flex-basis: 100%;
        padding: 14px;
    }

    #about-section h3 {
        margin-bottom: 10px;
        font-size: clamp(18px, 5vw, 24px);
    }

    #about-section p,
    .chart p {
        margin: 8px 0 0;
        font-size: clamp(14px, 3.7vw, 16px);
    }

    .chart {
        align-items: flex-start;
        text-align: left;
    }

    .skills-icons {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-start;
    }

    .skills-icons img {
        width: 44px;
        height: 44px;
        margin: 0;
    }
}

@media screen and (max-width: 480px) {
    #Title:not(:has(.site-info-header)) {
        --home-title-height: 108px;
        --home-title-padding-y: 18px;
    }

    .subtitle-header {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
    }

    .subtitle-buttons-container {
        justify-content: flex-end;
    }

    .buttons-container {
        gap: 14px;
    }

    .buttons-container .btn {
        font-size: 12px;
        padding-inline: 6px;
    }

    #Title h1 {
        font-size: clamp(38px, 10.4vw, 52px);
    }

    .social-links {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .social-link {
        min-height: 36px;
        padding: 8px 3px;
        font-size: clamp(8px, 2.2vw, 10px);
        justify-content: center;
    }

    .social-link:nth-child(5) {
        border-right: 0;
        justify-content: center;
    }
}

@media screen and (max-width: 900px) {
    .subtitle-header {
        grid-template-columns: minmax(0, 1fr) 36px;
    }

    .subtitle-header > h1 {
        min-width: 0;
    }

    .subtitle-buttons-container {
        justify-self: end;
        align-self: center;
        justify-content: flex-end;
    }

    .detailsButton {
        width: 36px;
        min-width: 36px;
        height: 36px;
        min-height: 36px;
        border-radius: 50%;
        padding: 0;
        font-size: 0;
        gap: 0;
    }

    .detailsButton::after {
        width: 11px;
        height: 11px;
        margin: 0;
        transform: rotate(45deg) translate(-1px, -1px);
    }

    .detailsButton[aria-expanded="true"]::after {
        margin: 0;
        transform: rotate(225deg) translate(-1px, -1px);
    }
}

#Title > h2:has(.up-sub-4),
#Title .site-info-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: clamp(22px, 2.8vw, 42px);
    row-gap: 8px;
    align-items: start;
    margin: 0;
    padding: clamp(24px, 3vw, 42px) var(--page-padding) clamp(20px, 2.6vw, 34px);
    color: var(--ink);
    font-size: clamp(13px, 1.15vw, 18px);
    font-weight: 700;
    line-height: 1.08;
    text-transform: uppercase;
}

#Title > h2:has(.up-sub-4) {
    grid-template-columns: minmax(0, 1fr) auto auto;
}

#Title:has(.site-info-header) .site-info-header {
    min-height: clamp(82px, 7.8vw, 116px);
    padding: clamp(20px, 2.4vw, 34px) var(--page-padding);
}

#Title > h2:has(.up-sub-4) span,
#Title .site-info-header span {
    min-width: 0;
    font-size: inherit;
    line-height: inherit;
}

#Title > h2:has(.up-sub-4) .up-sub-1,
#Title > h2:has(.up-sub-4) .up-sub-4,
#Title .site-info-school,
#Title .site-info-program {
    grid-column: 1;
    justify-self: start;
}

#Title > h2:has(.up-sub-4) .up-sub-1,
#Title .site-info-school {
    grid-row: 1;
}

#Title > h2:has(.up-sub-4) .up-sub-4,
#Title .site-info-program {
    grid-row: 2;
    color: var(--muted);
}

#Title > h2:has(.up-sub-4) .up-sub-2,
#Title > h2:has(.up-sub-4) .up-sub-3 {
    grid-row: 1;
    justify-self: end;
}

#Title > h2:has(.up-sub-4) .up-sub-2 {
    grid-column: 2;
}

#Title > h2:has(.up-sub-4) .up-sub-3 {
    grid-column: 3;
}

#Title .site-info-locations {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    display: inline-flex;
    align-items: flex-start;
    gap: clamp(22px, 2.8vw, 42px);
    white-space: nowrap;
}

#Title .site-info-location {
    font-size: inherit;
    line-height: inherit;
}

#Title:has(.site-info-header) {
    --project-title-size: clamp(42px, 5vw, 72px);
    --project-title-height: clamp(150px, 16vw, 224px);
    --project-title-padding-y: clamp(22px, 2.4vw, 34px);
}

#Title .site-info-header + .thin-hr + h2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    min-height: clamp(58px, 5.5vw, 78px);
    margin: 0;
    padding: 0 var(--page-padding);
}

#Title .site-info-header + .thin-hr + h2 span {
    font-size: clamp(13px, 1.05vw, 16px);
    font-weight: 700;
    line-height: 1;
}

#Title .site-info-header + .thin-hr + h2 .up-sub-1 {
    justify-self: start;
}

#Title .site-info-header + .thin-hr + h2 .up-sub-2 {
    justify-self: center;
}

#Title .site-info-header + .thin-hr + h2 .up-sub-3 {
    justify-self: end;
}

#Title .site-info-header + .thin-hr + h2 a {
    min-height: 0;
    align-items: center;
}

#Title .site-info-header + .thin-hr + h2 .up-sub-2 .logo {
    display: flex;
    width: clamp(76px, 7vw, 104px);
    align-items: center;
    justify-content: center;
    margin: 0;
}

#Title .site-info-header + .thin-hr + h2 img.logo {
    display: block;
    width: 100%;
    height: auto;
}

#Title:has(.site-info-header) > h3 {
    min-height: 36px;
    padding: 0 var(--page-padding);
}

#Title:has(.site-info-header) .title-and-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

#Title:has(.site-info-header) .title-and-buttons > h1 {
    display: flex;
    min-width: 0;
    min-height: var(--project-title-height);
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    padding: var(--project-title-padding-y) var(--page-padding);
    font-size: var(--project-title-size);
    font-weight: 500;
    line-height: 0.92;
    letter-spacing: 0;
    white-space: nowrap;
    overflow-wrap: normal;
    overflow: hidden;
}

#Title:has(.site-info-header) .title-and-buttons > h1:has(.project-title-line) {
    white-space: normal;
}

.project-title-line {
    display: block;
    max-width: 100%;
    white-space: nowrap;
}

#Title:has(.site-info-header) .title-and-buttons .buttons-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    border-top: 1px solid var(--line-soft);
    padding: 0 var(--page-padding);
}

#Title:has(.site-info-header) .title-and-buttons .btn {
    min-width: 0;
    min-height: clamp(52px, 4.8vw, 66px);
    width: 100%;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media screen and (max-width: 900px) {
    #Title:has(.site-info-header) {
        --project-title-size: clamp(30px, 7.8vw, 44px);
        --project-title-height: 138px;
        --project-title-padding-y: 20px;
    }

    #Title > h2:has(.up-sub-4),
    #Title .site-info-header {
        column-gap: 16px;
        row-gap: 7px;
        padding: 16px 14px 14px;
        font-size: clamp(12px, 3.4vw, 14px);
        line-height: 1.16;
    }

    #Title:has(.site-info-header) .site-info-header {
        min-height: 68px;
    }

    #Title > h2:has(.up-sub-4) .up-sub-4,
    #Title .site-info-program {
        grid-column: 1 / -1;
    }

    #Title .site-info-locations {
        gap: 16px;
    }

    #Title .site-info-header + .thin-hr + h2 {
        min-height: 56px;
        padding: 0 14px;
    }

    #Title .site-info-header + .thin-hr + h2 span {
        font-size: clamp(12px, 3vw, 14px);
    }

    #Title .site-info-header + .thin-hr + h2 .up-sub-2 .logo {
        width: clamp(72px, 15vw, 92px);
    }

    #Title:has(.site-info-header) > h3 {
        min-height: 32px;
        padding: 0 14px;
    }

    #Title:has(.site-info-header) .title-and-buttons > h1 {
        min-height: var(--project-title-height);
        padding: var(--project-title-padding-y) 14px;
        font-size: var(--project-title-size);
        line-height: 0.96;
    }

    #Title:has(.site-info-header) .title-and-buttons .buttons-container {
        padding: 0 14px;
    }

    #Title:has(.site-info-header) .title-and-buttons .btn {
        min-height: 46px;
    }
}

@media screen and (max-width: 480px) {
    #Title:has(.site-info-header) {
        --project-title-size: clamp(26px, 8.4vw, 36px);
        --project-title-height: 116px;
        --project-title-padding-y: 18px;
    }

    #Title > h2:has(.up-sub-4),
    #Title .site-info-header {
        column-gap: 12px;
        padding: 14px;
        font-size: clamp(11px, 3.2vw, 13px);
    }

    #Title:has(.site-info-header) .site-info-header {
        min-height: 62px;
    }

    #Title .site-info-locations {
        gap: 12px;
    }

    #Title .site-info-header + .thin-hr + h2 {
        min-height: 50px;
    }

    #Title .site-info-header + .thin-hr + h2 .up-sub-2 .logo {
        width: clamp(66px, 18vw, 82px);
    }

    #Title:has(.site-info-header) .title-and-buttons > h1 {
        min-height: var(--project-title-height);
        padding: var(--project-title-padding-y) 14px;
        font-size: var(--project-title-size);
    }

    #Title:has(.site-info-header) .title-and-buttons .btn {
        min-height: 42px;
        font-size: 12px;
    }
}
