:root {
    --background: #F5F5F5;
    --highlight: #284FD3;
    --line-color: #767676;
    font-size: 16px; /* Base font size for rem calculations */
}

* {
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

html::-webkit-scrollbar {
    display: none;
}

body {
    background-color: var(--background);
    margin: 0;
    padding: 1.5rem 7rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.intertext {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.instrument-serif-regular {
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    font-style: normal;
}

.instrument-serif-regular-italic {
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    font-style: italic;
}

.curved-navbar {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 0.1rem solid #c8c8c8;
    border-radius: 1rem;
    padding: 0.75rem 1.5rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1);
    font-family: "Instrument Serif", serif;
    flex-shrink: 0;
}

.curved-navbar .nav-items {
    display: flex;
    list-style: none;
    gap: 1.25rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.curved-navbar .nav-item a {
    text-decoration: none;
    color: #000;
    font-size: 1.4rem;
    font-family: "Instrument Serif", serif;
    font-style: normal;
}

.curved-navbar .nav-item a:hover {
    font-style: italic;
}

.curved-navbar .nav-item a.nav-label-ghost {
    color: #EEEEEE;
}

.curved-navbar .nav-item a.nav-label-ghost:hover {
    color: #EEEEEE;
}

.curved-navbar .nav-item.active .nav-label {
    font-style: italic;
}

.curved-navbar .logo {
    font-size: 2rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: "Instrument Serif", serif;
    text-decoration: none;
    color: #000;
}

.curved-navbar .nav-icon {
    font-size: 1.25rem;
    display: inline-block;
}

.curved-navbar .nav-icon i {
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.curved-navbar .nav-icon .ti {
    font-size: 1.55rem;
}

.curved-navbar .nav-icon svg {
    stroke-width: 0.5;
}

.curved-navbar .nav-icon svg path {
    stroke-width: 0.5;
}

.left {
    margin-right: 1rem;
}

.right {
    margin-left: 1rem;
}

/* Main Content Styles */
.main-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    font-family: "Instrument Serif", serif;
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    padding-top: 1.5rem;
    box-sizing: border-box;
}

/* Header Section */
.header-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: auto;
    margin-bottom: 4rem;
    align-items: center;
    flex: 0 1 auto;
    min-height: 0;
}

.header-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header-left h1 {
    font-size: 7rem;
    font-weight: 400;
    margin: 0 0 1rem 0;
    font-family: "Instrument Serif", serif;
    word-wrap: break-word;
    line-height: 1.2;
}

.header-left p {
    font-size: 2.3rem;
    margin: 0;
    line-height: 1.4;
    font-family: "Instrument Serif", serif;
    word-wrap: break-word;
}

.highlight {
    color: var(--highlight);
    font-style: italic;
    text-decoration: none;
}

/* Quick Facts Section */
.quick-facts {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.fact-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
    padding-bottom: 2rem;
    margin: 0;
    border-bottom: 1px solid var(--line-color);
}

.fact-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.fact-label {
    color: var(--highlight);
    font-style: italic;
    font-size: 2.3rem;
    line-height: 1.4;
    font-family: "Instrument Serif", serif;
    word-wrap: break-word;
    white-space: nowrap;
    flex-shrink: 0;
    width: 12rem;
    min-width: 12rem;
    margin: 0;
    padding: 0;
}

.fact-value {
    color: #000;
    font-size: 1.5rem;
    font-family: "Inter", sans-serif;
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex: 1;
    line-height: 1.3;
    margin: 0;
    padding: 0;
}

/* Experience Sections */
.experience-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 0;
    flex: 1 1 0;
    min-height: 0;
    align-items: start;
}

.experience-section {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.experience-section h2 {
    font-size: 2.3rem;
    font-weight: 400;
    margin: 0 0 1.25rem 0;
    font-family: "Instrument Serif", serif;
    flex-shrink: 0;
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1 1 0;
    min-height: 0;
}

.experience-item {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.experience-logo {
    width: 5rem;
    height: 5rem;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 20px;
}

.experience-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.experience-company {
    font-size: 1.35rem;
    font-weight: 500;
    margin: 0;
    font-family: "Inter", sans-serif;
    line-height: 1.3;
}

.experience-role {
    font-size: 1.125rem;
    color: #666;
    margin: 0;
    font-family: "Inter", sans-serif;
    font-style: italic;
    line-height: 1.3;
}

/* Divider */
.section-divider {
    border: none;
    border-top: 1px solid var(--line-color);
    margin: 3rem 0 3rem 0;
    flex-shrink: 0;
}

/* Work Page */
.work-page-title {
    font-family: "Instrument Serif", serif;
    font-size: 5rem;
    font-weight: 400;
    margin: 1.5rem 0 0.8rem 0;
    line-height: 1.1;
}

.work-section {
    margin-bottom: 1rem;
}

.work-exp-list {
    display: flex;
    flex-direction: column;
}

.work-exp-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 0;
}

.work-exp-item + .work-exp-item {
    border-top: 1px solid #c8c8c8;
}

.work-exp-logo {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    overflow: hidden;
}

.work-exp-logo-patreon {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-exp-logo-patreon img {
    width: 150%;
    height: 150%;
    object-fit: contain;
}

.work-exp-logo-placeholder {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: "Inter", sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.work-exp-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.work-exp-title {
    font-family: "Inter", sans-serif;
    font-size: clamp(0.9rem, 1.6vw, 1.4rem);
    font-weight: 500;
    margin: 0;
    color: #000;
}

.work-exp-company {
    font-family: "Inter", sans-serif;
    font-style: italic;
    font-weight: 400;
    color: inherit;
    text-decoration: none;
}

.work-exp-company:hover {
    text-decoration: underline;
}

.work-exp-logo-link {
    display: block;
    flex-shrink: 0;
    line-height: 0;
    align-self: center;
}

.work-exp-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.work-tag {
    font-family: "Inter", sans-serif;
    font-size: clamp(0.65rem, 0.9vw, 0.78rem);
    padding: 0.2rem 0.65rem;
    border-radius: 100px;
    background: #8B8B8B;
    color: #fff;
}

.work-tag-patreon {
    background: #4D4D4D;
}

.work-tag-red {
    background: #FFDFDF;
    color: #B83232;
}

.work-tag-green {
    background: #BAF5BC;
    color: #1A6B1E;
}

.work-tag-blue {
    background: #CFE6FF;
    color: #1A3E9A;
}

.work-tag-lightblue {
    background: #CAEEFF;
    color: #0A5288;
}

.work-tag-cs-blue {
    background: #D4E7FF;
    color: #1A3E9A;
}

.work-tag-cs-green {
    background: #D7E9DF;
    color: #1A6B1E;
}

.work-tag-cs-purple {
    background: #E4D0FF;
    color: #5A1A9A;
}

.work-exp-year {
    font-family: "Inter", sans-serif;
    font-size: clamp(0.9rem, 1.6vw, 1.4rem);
    font-weight: 500;
    color: #000;
    flex-shrink: 0;
}

/* Case Studies */
.case-studies-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.case-study-card {
    display: flex;
    border: 1px solid #c8c8c8;
    border-radius: 14px;
    overflow: hidden;
    min-height: 280px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.case-study-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.case-study-left {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.6rem;
}

.case-study-company {
    font-family: "Instrument Serif", serif;
    font-style: italic;
    font-size: 1.75rem;
    margin: 0;
    color: #555;
}

.case-study-role {
    font-family: "Instrument Serif", serif;
    font-size: 4.5rem;
    font-weight: 400;
    margin: 0;
    line-height: 1.05;
    color: #000;
}

.case-study-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
}

.case-study-image {
    width: 48%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.case-study-mock-img {
    position: absolute;
    top: 5%;
    right: -2%;
    height: 160%;
    width: auto;
}

.case-study-mock-img-bottom {
    position: absolute;
    bottom: 0%;
    right: -13%;
    height: 100%;
    width: auto;
}

.case-study-mock-img-full {
    position: absolute;
    top: 5%;
    right: 0;
    height: 95%;
    width: auto;
}

/* Shared Page Footer */
.page-footer {
    margin-top: 3rem;
    padding-bottom: 2rem;
}

.page-footer-cta {
    font-family: "Instrument Serif", serif;
    font-size: 2rem;
    margin: 0 0 1.5rem 0;
    line-height: 1.4;
}

.page-footer-divider {
    border: none;
    border-top: 1px solid #c8c8c8;
    margin: 0 0 1.5rem 0;
}

.page-footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.page-footer-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #000;
    font-family: "Inter", sans-serif;
    font-size: 1.1rem;
}

.page-footer-link i {
    width: 1.5rem;
    text-align: center;
    font-size: 1.15rem;
}

/* About page divider */
.about-divider {
    border: none;
    border-top: 1px solid var(--line-color);
    margin: 2rem 0 2.5rem 0;
}

/* Footnote superscript in body text */
.footnote-ref {
    font-size: 0.45em;
    position: relative;
    top: -0.2em;
    left: 0.3em;
    margin-right: 0.25em;
    color: var(--highlight);
    font-style: italic;
    font-family: "Instrument Serif", serif;
    text-decoration: underline;
    text-underline-offset: 0.1em;
}

.footnote-ref-plain {
    font-size: 0.55em;
    vertical-align: 0.4em;
    line-height: 0;
    color: #000;
    font-style: italic;
    font-family: "Instrument Serif", serif;
    text-decoration: underline;
    text-underline-offset: 0.1em;
}

.header-left p a.highlight {
    text-decoration: none;
}

.footnote-ref-no-ul {
    text-decoration: none;
}

a.footnote-link {
    text-decoration: none;
    color: inherit;
}

.fact-label a.fact-label-link {
    text-decoration: none;
    color: inherit;
}

/* Footnotes Section */
.footnotes-section {
    margin-top: auto;
    padding-bottom: 1rem;
    text-align: center;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
}

.footnotes-header {
    font-family: "Instrument Serif", serif;
    font-style: italic;
    font-size: 1.5rem;
    color: #000;
    margin: 0;
}

.footnotes-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-size: 1rem;
}

.footnote-item {
    color: #000;
}

.footnote-item a {
    color: #000;
    text-decoration: none;
    font-style: normal;
}

a.footnote-item-link {
    text-decoration: none;
    color: inherit;
}

.footnote-item-name {
    font-style: normal;
}

.footnote-num {
    color: var(--highlight);
    font-style: normal;
}

.footnote-divider {
    color: var(--line-color);
    font-family: "Instrument Serif", serif;
}

/* Hover popup tooltips */
.popup-anchor {
    position: relative;
    display: inline-block;
}

.popup-sup-anchor {
    position: relative;
    display: inline-block;
    vertical-align: baseline;
}

.popup-trigger {
    cursor: pointer;
}

.popup-box {
    display: none;
    position: absolute;
    bottom: calc(100% + 5px);
    left: -10px;
    transform: none;
    background: var(--background);
    border: 1px solid #c8c8c8;
    border-radius: 8px;
    padding: 0.4rem 0.85rem 0.5rem;
    white-space: nowrap;
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    font-style: normal;
    color: #000;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    pointer-events: auto;
}

/* Inline bridge: transparent hover area between popup and trigger */
.popup-bridge {
    display: block;
    position: absolute;
    top: 100%;
    left: -25px;
    right: -25px;
    height: 20px;
    pointer-events: auto;
}

/* Arrow tail — border triangle (outline). Left set via JS as --popup-arrow-left */
.popup-box::before {
    content: '';
    position: absolute;
    bottom: -9px;
    left: var(--popup-arrow-left, 0px);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 9px solid #c8c8c8;
}

/* Arrow tail — fill triangle (covers interior of border triangle) */
.popup-box::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: calc(var(--popup-arrow-left, 0px) + 1px);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 8px solid var(--background);
}

.popup-anchor:hover .popup-box,
.popup-anchor.pinned .popup-box {
    display: block;
}

.popup-link {
    color: #000;
    text-decoration: none;
}

.popup-link:hover {
    opacity: 0.6;
}

.popup-underline {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.popup-arrow-icon {
    display: inline-block;
    font-size: inherit;
    margin-left: -0.05em;
}

/* More Page */
@keyframes introFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.intro-part {
    opacity: 0;
    animation: introFadeIn 0.8s ease forwards;
}

.intro-part-1 { animation-delay: 0.1s; }
.intro-part-2 { animation-delay: 1.3s; }
.intro-part-3 { animation-delay: 2.9s; }
.intro-part-4 { animation-delay: 4.3s; }

.more-intro-quote {
    margin-bottom: 2rem;
    border-left: none !important;
    position: relative;
}

.more-intro-quote::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #000;
}

.more-quote-link {
    text-decoration: none;
    font-family: "Instrument Serif", serif;
    font-size: 1.5rem;
}

.more-body {
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 0.5rem 0;
    color: #000;
}

.more-underline {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.more-step {
    display: none;
}

.more-trigger {
    cursor: pointer;
}

.more-trigger:hover {
    opacity: 0.6;
}

.more-section-title {
    font-family: "Instrument Serif", serif;
    font-style: italic;
    color: var(--highlight);
    font-size: 2.5rem;
    font-weight: 400;
    margin: 2rem 0 0.75rem 0;
}

.more-list {
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #000;
    padding-left: 1.5rem;
    margin: 0 0 1rem 0;
}

.more-list-nested {
    padding-left: 1.5rem;
    margin: 0;
    list-style-type: circle;
}

/* Photo Gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    align-items: stretch;
}

.photo-locations {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 340px;
}

.photo-location {
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    color: #aaa;
    cursor: pointer;
    padding: 0.15rem 0 0.15rem 0.75rem;
    transition: color 0.15s;
}

.photo-location.active {
    color: #000;
    border-left: 2px solid #000;
    padding-left: 0.5rem;
}

.photo-location:hover:not(.active) {
    color: #666;
}

.photo-strip-wrapper {
    overflow-x: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
    height: 100%;
}

.photo-strip-wrapper::-webkit-scrollbar {
    display: none;
}

.photo-strip-center {
    display: flex;
    align-items: center;
    height: 100%;
    width: max-content;
}

.photo-strip {
    display: flex;
    gap: 0.75rem;
    position: relative;
    width: max-content;
}

.photo-item {
    height: 340px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
}

.photo-item img {
    height: 100%;
    width: auto;
    display: block;
    pointer-events: none;
    user-select: none;
}

.photo-caption-mobile {
    display: none;
}

/* Music / On Repeat */
.music-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.music-grid-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.music-grid-dedication {
    font-family: "Inter", sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #333;
    margin: 0;
}

.music-grid-dedication em {
    font-family: "Instrument Serif", serif;
    font-style: italic;
    font-size: 1.3rem;
}

.spotify-placeholder {
    background: #0d3a4a;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1rem;
}

.spotify-grid-card {
    height: 70px;
    width: 100%;
    box-sizing: border-box;
}

.spotify-compact {
    height: 70px;
    width: 280px;
}

.spotify-full {
    height: 80px;
    max-width: 520px;
}

.spotify-album-art {
    width: 46px;
    height: 46px;
    background: #1a5a6a;
    border-radius: 4px;
    flex-shrink: 0;
}

.spotify-text {
    flex: 1;
}

.spotify-song {
    font-family: "Inter", sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
}

.spotify-artist {
    font-family: "Inter", sans-serif;
    font-size: 0.72rem;
    color: #9aa;
}

.spotify-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.spotify-time {
    font-family: "Inter", sans-serif;
    font-size: 0.72rem;
    color: #9aa;
}

.spotify-btn {
    color: #fff;
    font-size: 0.85rem;
}

.music-text {
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #000;
    margin: 0;
}

.music-dedication {
    color: #666;
    font-size: 0.9rem;
}

/* Quotes Grid */
.quotes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.quote-card {
    border-left: 1px solid var(--line-color);
    padding: 0.25rem 0 0.25rem 1.5rem;
    margin: 0;
    font-family: "Inter", sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
}

.quote-card:first-child {
    border-left: none;
    padding-left: 0;
}

.quote-card p {
    margin: 0 0 0.5rem 0;
    color: #000;
    font-style: normal;
}

.quote-card footer {
    color: #aaa;
    font-style: normal;
    font-size: 0.85rem;
}

.more-quote-attribution-link {
    color: inherit;
    text-decoration: none;
}

/* More footer */
.more-footer {
    margin-top: 6rem;
    padding-bottom: 3rem;
}

.more-footer-cta {
    font-family: "Instrument Serif", serif;
    font-size: 2.5rem;
    margin: 0;
    font-weight: 400;
}

/* About Page Styles */
.about-header-section {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 3rem;
    margin-bottom: 2rem;
    padding: 2.5rem 0;
    align-items: center;
}

.about-header-left h1 {
    font-size: 7rem;
    font-weight: 400;
    margin: 0 0 0.5rem 0;
    font-family: "Instrument Serif", serif;
    word-wrap: break-word;
    line-height: 1.2;
}

.about-header-left p {
    font-size: 2.3rem;
    margin: 0;
    line-height: 1.4;
    font-family: "Instrument Serif", serif;
    word-wrap: break-word;
}

.about-more-link {
    color: inherit;
    text-decoration: none;
    font-style: normal;
}

.about-last-updated {
    font-size: 1rem !important;
    font-family: "Inter", sans-serif !important;
    color: #aaa;
    margin-top: 1.5rem !important;
}

.about-header-right {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    margin: 0 auto;
    border-radius: 20px;
}

.about-header-right-inner {
    width: 100%;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    isolation: isolate;
}

.about-profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transform: scale(1.2) translateX(8%);
    transform-origin: center 30%;
    display: block;
}


.about-section {
    margin-bottom: 1.5rem;
}

.about-section-title {
    font-size: 2.3rem;
    font-weight: 400;
    margin: 0 0 1.2rem 0;
    font-family: "Instrument Serif", serif;
    color: var(--highlight);
    font-style: italic;
}

.about-section-title-regular {
    font-size: 2.3rem;
    font-weight: 400;
    margin: 0 0 0.4rem 0;
    font-family: "Instrument Serif", serif;
    color: #000;
    font-style: normal;
}

.about-quote {
    margin: 0 0 0.75rem 0;
    padding-left: 2rem;
    border-left: 3px solid #000;
    font-size: 1.2rem;
    line-height: 1.6;
    font-family: "Inter", sans-serif;
    font-style: italic;
    color: #333;
}

.about-quote footer {
    margin-top: 0.3rem;
    font-size: 1.2rem;
    font-style: normal;
    color: #aaa;
}

.about-body {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 0.5rem 0;
    font-family: "Inter", sans-serif;
    color: #000;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 0.4rem 0;
    font-size: 1rem;
    line-height: 1.6;
    font-family: "Inter", sans-serif;
    color: #000;
}

.about-list li {
    margin-bottom: 0.25rem;
    padding-left: 1.5rem;
    position: relative;
}

.about-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #000;
}

.about-footer {
    margin-top: 4rem;
    padding-top: 2rem;
}

.about-footer-divider {
    border: none;
    border-top: 1px solid var(--line-color);
    margin: 0 0 2rem 0;
}

.about-footer-text {
    font-size: 2.3rem;
    margin: 0 0 1.5rem 0;
    font-family: "Instrument Serif", serif;
    line-height: 1.4;
}

.about-footer-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.about-footer-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #000;
    font-size: 1.4rem;
    font-family: "Instrument Serif", serif;
    transition: font-style 0.2s;
}

.about-footer-link:hover {
    font-style: italic;
}

.about-footer-link i {
    font-size: 1.25rem;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    :root {
        font-size: 13px;
    }
    
    body {
        padding: 1rem 4rem;
    }
    
    .curved-navbar {
        border-radius: 7px;
    }
    
    .header-left h1 {
        font-size: 4.5rem;
    }
    
    .header-left p {
        font-size: 1.75rem;
    }
    
    .fact-label {
        font-size: 1.75rem;
        width: 9rem;
        min-width: 9rem;
    }
    
    .fact-value {
        font-size: 1.15rem;
    }
    
    .experience-section h2 {
        font-size: 1.75rem;
    }
    
    .experience-logo {
        width: 4rem;
        height: 4rem;
        border-radius: 7px;
    }
    
    .experience-company {
        font-size: 1.1rem;
    }
    
    .experience-role {
        font-size: 0.95rem;
    }
    
    .header-section {
        gap: 2rem;
    }
    
    .experience-sections {
        gap: 2rem;
    }
    
    .quick-facts {
        gap: 2rem;
    }
    
    .fact-item {
        gap: 1rem;
        padding-bottom: 1.5rem;
    }
    
    .experience-list {
        gap: 0.8rem;
    }
    
    .section-divider {
        margin: 1.75rem 0 1.75rem 0;
    }
}

@media (max-width: 1000px) {
    .case-study-image {
        width: 40%;
    }

    .case-study-mock-img {
        height: 110%;
    }

    .case-study-mock-img-bottom {
        height: 80%;
    }

    .case-study-mock-img-full {
        height: 75%;
    }

    .case-study-role {
        font-size: 3rem;
    }

    .case-study-company {
        font-size: 1.4rem;
    }
}

@media (max-width: 1200px) {
    :root {
        font-size: 12px;
    }
    
    body {
        padding: 0.9rem 3rem;
    }
    
    .curved-navbar {
        border-radius: 7px;
    }
    
    .header-left h1 {
        font-size: 3.75rem;
    }
    
    .header-left p {
        font-size: 1.5rem;
    }
    
    .fact-label {
        font-size: 1.5rem;
        width: 8rem;
        min-width: 8rem;
    }
    
    .fact-value {
        font-size: 1rem;
    }
    
    .experience-section h2 {
        font-size: 1.5rem;
    }
    
    .experience-logo {
        width: 3.5rem;
        height: 3.5rem;
        border-radius: 7px;
    }
    
    .experience-company {
        font-size: 0.95rem;
    }
    
    .experience-role {
        font-size: 0.85rem;
    }
    
    .header-section {
        gap: 1.75rem;
    }
    
    .experience-sections {
        gap: 1.75rem;
    }
    
    .quick-facts {
        gap: 1.75rem;
    }
    
    .fact-item {
        gap: 0.9rem;
        padding-bottom: 1.25rem;
    }
    
    .experience-list {
        gap: 0.7rem;
    }
    
    .section-divider {
        margin: 1.5rem 0 1.75rem 0;
    }
}

@media (max-width: 768px) {
    .header-section,
    .experience-sections {
        grid-template-columns: 1fr;
    }

    :root {
        font-size: 11px;
    }

    body {
        padding: 0.75rem 1.5rem 1rem 1.5rem;
    }

    .curved-navbar {
        border-radius: 7px;
    }

    .header-left h1 {
        font-size: 3rem;
    }

    .header-left p {
        font-size: 1.3rem;
    }

    .fact-label {
        font-size: 1.3rem;
        width: 7rem;
        min-width: 7rem;
    }

    .fact-value {
        font-size: 0.9rem;
    }

    .experience-section h2 {
        font-size: 1.3rem;
    }

    .experience-logo {
        width: 3rem;
        height: 3rem;
        border-radius: 7px;
    }

    .experience-company {
        font-size: 0.9rem;
    }

    .experience-role {
        font-size: 0.75rem;
    }

    .section-divider {
        margin: 1.5rem 0 1.75rem 0;
    }
}

/* ── Phone (≤ 480px) ─────────────────────────────────────────── */
@media (max-width: 480px) {
    :root {
        font-size: 14px;
    }

    body {
        padding: 0.75rem clamp(1rem, 4vw, 1.5rem) 1.5rem;
    }

    /* Navbar */
    .curved-navbar {
        padding: 0.5rem 0.75rem;
        border-radius: 10px;
        margin-bottom: 1rem;
    }

    .curved-navbar .nav-items {
        gap: 0.6rem;
    }

    .curved-navbar .nav-item a {
        font-size: 1.1rem;
    }

    .curved-navbar .logo {
        font-size: 1.6rem;
    }

    .curved-navbar .nav-icon {
        font-size: 1.2rem;
        padding: 0.25rem;
    }

    .curved-navbar .nav-icon .ti {
        font-size: 1.5rem;
    }

    .left {
        margin-right: 0.25rem;
    }

    .right {
        margin-left: 0.25rem;
    }

    /* Home page */
    .header-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .header-left h1 {
        font-size: 3.5rem;
        margin-bottom: 0.5rem;
    }

    .header-left p {
        font-size: 1.6rem;
    }

    .quick-facts {
        gap: 0;
    }

    .fact-item {
        display: block;
        padding-top: 1rem;
        padding-bottom: 1.25rem;
    }

    .fact-label {
        display: inline;
        font-size: 1.4rem;
        width: auto;
        min-width: unset;
        white-space: normal;
        margin-right: 0.3em;
    }

    .fact-value {
        display: inline;
        font-size: 1rem;
    }

    .footnotes-list {
        gap: 0.75rem;
    }

    /* Work page — experience list */
    .work-page-title {
        font-size: 3rem;
        margin-top: 0.5rem;
    }

    .work-exp-sep {
        display: none;
    }

    .work-exp-company {
        display: block;
        font-style: italic;
        margin-top: 0.15rem;
    }

    .work-exp-logo {
        width: 3.5rem;
        height: 3.5rem;
    }

    /* Work page — case studies */
    .case-study-image {
        display: none;
    }

    .case-study-card {
        min-height: unset;
    }

    .case-study-left {
        padding: 1.25rem 1.5rem;
    }

    .case-study-role {
        font-size: 2rem;
    }

    .case-study-company {
        font-size: 1rem;
    }

    /* More page — songs */
    .music-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* More page — quotes */
    .about-quote {
        font-size: 1.1rem;
        padding-left: 1.2rem;
    }

    .quote-card footer,
    .about-quote footer {
        color: #666;
        font-size: 0.85rem;
    }

    .more-intro-quote {
        font-size: 1.1rem;
    }

    .more-intro-quote footer {
        font-size: 1rem;
    }

    .quotes-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .quote-card {
        border: none;
        border-left: 3px solid #000;
        border-radius: 0;
        padding: 0.25rem 0 0.25rem 0.85rem;
    }

    .quote-card:first-child {
        border-left: 3px solid #000;
        padding-left: 0.85rem;
    }

    /* About page */
    .about-header-section {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        padding: 0;
        margin-bottom: 0;
    }

    .about-header-left h1 {
        font-size: 4.5rem;
        margin-bottom: -0.25rem;
    }

    .about-header-left p {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .about-last-updated {
        margin-top: 0.2rem !important;
        font-size: 0.8rem !important;
    }

    .about-header-right {
        width: 100%;
        margin: 0;
        border-radius: 14px;
    }

    .about-header-right-inner {
        height: auto;
        aspect-ratio: 16 / 9;
        border-radius: 14px;
    }

    .about-profile-image {
        width: 100%;
    }

    .about-section-title {
        font-size: 1.75rem;
    }

    .about-body {
        font-size: 1rem;
    }

    /* About page — photo gallery mobile carousel */
    .photo-gallery {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin-top: 1rem;
    }

    .photo-locations {
        display: none;
    }

    .photo-caption-mobile {
        display: block;
        font-family: "Inter", sans-serif;
        font-size: 0.9rem;
        color: #555;
        margin: 0.6rem 0 0;
        padding: 0;
    }

    .photo-strip-wrapper {
        overflow: hidden;
        position: relative;
        height: auto;
        width: 100vw;
        margin-left: calc(-1 * clamp(1rem, 4vw, 1.5rem));
        cursor: pointer;
    }

    .photo-strip-center {
        display: block;
        width: auto;
        height: auto;
    }

    .photo-strip {
        display: flex;
        gap: 10px;
        width: max-content;
        will-change: transform;
    }

    .photo-item {
        height: 54vw;
        width: auto;
        max-width: 82vw;
        flex-shrink: 0;
        border-radius: 12px;
        overflow: hidden;
    }

    .photo-item img {
        height: 100%;
        width: auto;
        max-width: 82vw;
        object-fit: cover;
        display: block;
    }

    /* Page footer */
    .page-footer-cta {
        font-size: 1.5rem;
    }
}
