:root {
    --cream: #FFFAF2;
    --blush: #FFD6DA;
    --ink: #1F1F1F;
    --accent: #6B2339;
    --accent-wash: rgba(107, 35, 57, 0.05);
    --accent-border: rgba(107, 35, 57, 0.16);
    --muted: #786E70;
    --page-gutter: max(7%, calc((100vw - 1200px) / 2));
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: "DM Sans", sans-serif;
    background: var(--cream);
    color: var(--ink);
    line-height: 1.6;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: min(920px, calc(100% - 40px));
    margin: 20px auto 0;
    padding: 10px 28px 10px 14px;
    gap: 24px;
    position: sticky;
    top: 20px;
    border: 1px solid var(--accent-border);
    border-radius: 999px;
    background: var(--blush);
    box-shadow: 0 8px 30px rgba(75, 45, 35, 0.08);
    -webkit-backdrop-filter: blur(0px);
    backdrop-filter: blur(0px);
    transition: background-color 0.25s ease, backdrop-filter 0.25s ease;
    z-index: 10;
}

nav.is-scrolled {
    background: rgba(255, 214, 218, 0.8);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

nav > div {
    display: flex;
    align-items: center;
    gap: 28px;
}

/* Frame the second logo tile from the supplied artwork. */
nav .brand-logo {
    position: relative;
    display: block;
    flex: 0 0 56px;
    width: 56px;
    height: 54px;
    margin: 0;
    overflow: hidden;
    border-radius: 50%;
    transform: none;
    transition: none;
}

.brand-logo img {
    position: absolute;
    width: 460px;
    height: auto;
    max-width: none;
    left: -170px;
    top: -190.5px;
}

nav .brand-logo:hover {
    opacity: 1;
    transform: none;
}

nav a {
    color: var(--ink);
    text-decoration: none;
    margin-left: 0;
    font-size: 14px;
}

nav > div > a:not(.contact-link) {
    position: relative;
}

nav > div > a:not(.contact-link)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 220ms ease;
}

nav > div > a:hover::after,
nav > div > a:focus-visible::after {
    transform: scaleX(1);
}

nav a.contact-link {
    padding: 7px 16px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    color: var(--ink);
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

nav a.contact-link:hover,
nav a.contact-link:focus-visible {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--cream);
    opacity: 1;
    transform: none;
}

.hero {
    min-height: 90vh;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: center;
    gap: 6%;
    padding: clamp(64px, 8vw, 112px) var(--page-gutter);
}

.hero h1 {
    font-family: "Instrument Serif", Georgia, serif;
    font-weight: 400;
    font-size: clamp(60px, 7vw, 110px);
    line-height: 1.05;
    margin: 20px 0;
}

.hero-text > p:first-child {
    color: var(--accent);
    font-size: 12px;
    letter-spacing: 3px;
}

.hero p {
    max-width: 600px;
}

button {
    font-family: inherit;
    margin-top: 30px;
    width: fit-content;
    padding: 14px 24px;
    background: transparent;
    border: 1px solid var(--ink);
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: var(--accent);
    color: white;
}

section:not(.hero) {
    padding: clamp(72px, 9vw, 120px) var(--page-gutter);
    border-top: 1px solid #d7cec5;
}

section h2 {
    font-family: "Instrument Serif", Georgia, serif;
    font-weight: 400;
    line-height: 1.15;
    font-size: clamp(42px, 5vw, 64px);
    letter-spacing: -0.025em;
    margin-bottom: 25px;
}
.hero-text, .photo-carousel {
    min-width: 0;
}

.hero-text > p:last-child {
    max-width: 38ch;
    font-size: clamp(17px, 1.6vw, 21px);
    line-height: 1.65;
}

#about > p:not(.section-number),
#projects > p:not(.section-number) {
    max-width: 52ch;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.7;
}

.carousel-track {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 18px;
    touch-action: pan-y pinch-zoom;
    isolation: isolate;
    background: #f4e3e3;
    transition: transform 350ms ease, box-shadow 350ms ease;
}

.photo-slide {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    background: #f4e3e3;
    transition: opacity 650ms ease;
}

.photo-slide.is-active {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
}

.photo-slide img {
    transition: transform 600ms ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-slide img[hidden], .photo-placeholder[hidden] {
    display: none;
}

.photo-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: center;
    text-align: center;
    color: var(--accent);
}

.photo-placeholder span {
    font-size: 12px;
}

.carousel-controls {
    display: grid;
    grid-template-columns: 80px max-content 80px;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 4px 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--accent-border);
    font-size: 13px;
}

#photoCount {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.carousel-controls button {
    margin: 0;
    padding: 8px 12px;
    min-width: 44px;
    min-height: 44px;
    width: 100%;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.carousel-controls button span {
    display: inline-block;
    transition: transform 220ms ease;
    font-size: 16px;
    vertical-align: -1px;
}

.carousel-controls button:hover,
.carousel-controls button:focus-visible {
    background: var(--accent-wash);
    color: var(--accent);
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

@media (max-width: 700px) {
    nav {
        width: calc(100% - 24px);
        margin-top: 12px;
        top: 12px;
        padding: 8px 18px 8px 10px;
        gap: 12px;
    }

    nav > div {
        gap: 14px;
    }

    nav a {
        margin-left: 0;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 7%;
    }

    .photo-carousel {
        width: 100%;
        max-width: 440px;
        justify-self: center;
    }
}

@media (max-width: 420px) {
    html {
        scroll-padding-top: 160px;
    }

    nav {
        flex-direction: column;
        padding: 10px 16px 14px;
        gap: 6px;
        border-radius: 30px;
    }

    nav > div {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px 16px;
    }

    nav a {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    nav {
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 650ms ease, transform 650ms ease;
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Applies when project entries are added as cards. */
.project-card {
    transition: transform 300ms ease, box-shadow 300ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .carousel-track:hover {
        transform: translateY(-6px);
        box-shadow: 0 14px 30px rgba(75, 45, 35, 0.1);
    }

    .carousel-track:hover .photo-slide img {
        transform: scale(1.025);
    }

    .carousel-controls button:hover span {
        transform: translateX(3px);
    }

    .project-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 24px rgba(75, 45, 35, 0.08);
    }
}

.project-card:focus-within {
    transform: translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }

    .scroll-reveal {
        opacity: 1;
        transform: none;
    }

    .carousel-track:hover,
    .carousel-track:hover .photo-slide img,
    .carousel-controls button:hover span,
    .project-card:hover,
    .project-card:focus-within {
        transform: none;
    }
}

nav > div > a:hover,
nav > div > a:focus-visible {
    color: var(--accent);
}

nav a.contact-link:hover,
nav a.contact-link:focus-visible {
    color: var(--cream);
}

#currentPhotoNumber {
    color: var(--accent);
    font-weight: 700;
}

.experience-timeline {
    list-style: none;
    margin-top: 40px;
    max-width: 720px;
}

.timeline-entry {
    position: relative;
    padding: 0 0 42px 32px;
}

.timeline-entry::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 8px;
    bottom: -8px;
    width: 1px;
    background: var(--accent-border);
}

.timeline-entry::after {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
}

.timeline-entry:last-child {
    padding-bottom: 0;
}

.timeline-entry:last-child::before {
    display: none;
}

.timeline-date {
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.timeline-content h3 {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 6px;
}

.timeline-role {
    color: var(--muted);
    font-size: 15px;
}

@media (min-width: 900px) {
    .experience-timeline {
        max-width: 880px;
    }

    .timeline-content {
        display: grid;
        grid-template-columns: 180px minmax(0, 1fr);
        column-gap: 32px;
    }

    .timeline-date {
        grid-column: 1;
        grid-row: 1 / 3;
        padding-top: 5px;
    }

    .timeline-content h3,
    .timeline-role {
        grid-column: 2;
    }
}

.section-number {
    color: var(--accent);
    font-family: "Instrument Serif", Georgia, serif;
    font-size: clamp(64px, 8vw, 104px);
    font-weight: 400;
    font-variant-numeric: lining-nums tabular-nums;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 18px;
}

#contact {
    padding-bottom: 28px;
    background: linear-gradient(180deg, var(--cream) 0%, #fff2ed 100%);
}

#contact .contact-headline {
    max-width: 900px;
    font-size: clamp(44px, 6.5vw, 88px);
    line-height: 1.06;
    letter-spacing: -0.025em;
    margin-bottom: 28px;
}

.contact-intro {
    max-width: 540px;
    font-size: clamp(16px, 1.7vw, 20px);
    line-height: 1.65;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 36px;
    margin-top: 32px;
}

.contact-action {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--accent-border);
    color: var(--ink);
    font-size: 18px;
    text-decoration: none;
    transition: color 200ms ease, border-color 200ms ease;
}

.contact-action span {
    color: var(--accent);
    display: inline-block;
    transition: transform 220ms ease;
}

a.contact-action:hover,
a.contact-action:focus-visible {
    color: var(--accent);
    border-color: var(--accent);
}

a.contact-action:hover span,
a.contact-action:focus-visible span {
    transform: translate(3px, -3px);
}

.contact-signature {
    margin-top: clamp(72px, 12vw, 160px);
    padding-top: 24px;
    border-top: 1px solid var(--accent-border);
    font-size: clamp(32px, 11.5vw, 180px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.065em;
    text-align: center;
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    a.contact-action:hover span,
    a.contact-action:focus-visible span {
        transform: none;
    }
}

/* About: layouts scoped to this section preserve the shared visual system. */
#about .about-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(40px, 7vw, 96px);
    margin-top: 48px;
    align-items: start;
}

#about .about-personal p {
    max-width: 48ch;
    line-height: 1.8;
}

#about .about-currently > h3 {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 22px;
}

#about .about-currently dl > div {
    padding: 16px 0;
    border-top: 1px solid #d7cec5;
}

#about .about-currently dl > div:last-child {
    padding-bottom: 0;
}

#about .about-currently dt,
#about .about-interest h3 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.6;
    margin-bottom: 8px;
}

#about .about-currently dd {
    line-height: 1.65;
}

#about .about-interests {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 56px;
    padding-top: 28px;
    border-top: 1px solid #d7cec5;
}

#about .about-interest {
    min-width: 0;
    padding: 0 28px;
    transition: transform 220ms ease;
}

#about .about-interest:first-child {
    padding-left: 0;
}

#about .about-interest:last-child {
    padding-right: 0;
}

#about .about-interest + .about-interest {
    border-left: 1px solid #d7cec5;
}

#about .about-interest p {
    font-size: 15px;
    line-height: 1.75;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    #about .about-interest:hover {
        transform: translateY(-3px);
    }
}

@media (max-width: 700px) {
    #about .about-columns {
        grid-template-columns: 1fr;
        gap: 36px;
        margin-top: 32px;
    }

    #about .about-interests {
        grid-template-columns: 1fr;
        margin-top: 40px;
        padding-top: 0;
    }

    #about .about-interest {
        padding: 22px 0;
    }

    #about .about-interest + .about-interest {
        border-left: none;
        border-top: 1px solid #d7cec5;
    }

    #about .about-interest:last-child {
        padding-bottom: 0;
    }
}

/* Experience refinement: all overrides stay within this section. */
#experience .experience-timeline {
    max-width: none;
    margin-top: 48px;
}

#experience .timeline-entry {
    padding-left: 36px;
    padding-bottom: 48px;
}

#experience .timeline-entry:last-child {
    padding-bottom: 0;
}

#experience .timeline-entry::after {
    transition: transform 220ms ease;
}

#experience .timeline-content h3 {
    transition: transform 220ms ease;
}

#experience .timeline-role {
    color: var(--ink);
    margin-bottom: 16px;
}

#experience .timeline-description {
    max-width: 76ch;
    font-size: 16px;
    line-height: 1.8;
}

#experience .timeline-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 0;
    list-style: none;
    margin-top: 20px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.7;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 220ms ease;
}

#experience .timeline-skills li:not(:last-child)::after {
    content: "·";
    margin: 0 12px;
    color: var(--accent);
}

#experience .experience-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
}

#experience .experience-heading h2 {
    margin-bottom: 0;
}

@media (max-width: 700px) {
    #experience .experience-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

#experience .experience-resume {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    color: var(--ink);
    font-size: 14px;
    text-decoration: underline;
    text-decoration-color: var(--accent-border);
    text-underline-offset: 6px;
    transition: color 220ms ease, text-decoration-color 220ms ease;
}

#experience .experience-resume span {
    color: var(--accent);
    transition: transform 220ms ease;
}

#experience a.experience-resume:hover,
#experience a.experience-resume:focus-visible {
    color: var(--accent);
    text-decoration-color: var(--accent);
}

@media (min-width: 900px) {
    #experience .timeline-content {
        grid-template-columns: 180px minmax(0, 1fr);
        column-gap: clamp(48px, 6vw, 80px);
    }

    #experience .timeline-date {
        grid-row: 1 / 5;
    }

    #experience .timeline-description,
    #experience .timeline-skills {
        grid-column: 2;
    }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    #experience .timeline-entry:hover::after {
        transform: scale(1.2);
    }

    #experience .timeline-entry:hover h3 {
        transform: translateX(3px);
    }

    #experience .timeline-entry:hover .timeline-skills {
        color: var(--ink);
    }

    #experience a.experience-resume:hover span {
        transform: translate(2px, -2px);
    }
}

/* A quiet final page, using the existing display type and palette. */
.site-footer {
    padding: 0 var(--page-gutter) 32px;
    background: var(--cream);
    color: var(--ink);
}

.site-footer .footer-statement {
    max-width: 42ch;
    color: var(--accent);
    font-size: 12px;
    line-height: 1.8;
    letter-spacing: 0.035em;
    margin-bottom: clamp(48px, 7vw, 96px);
}

.site-footer .footer-name {
    padding-top: 24px;
    border-top: 1px solid var(--accent-border);
    font-family: "Instrument Serif", Georgia, serif;
    font-size: clamp(40px, 14.5vw, 220px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.035em;
    text-align: center;
    white-space: nowrap;
}

.site-footer .footer-name a {
    display: inline-block;
    color: inherit;
    text-decoration: none;
    transition: color 300ms ease;
}

.site-footer .footer-name a:hover,
.site-footer .footer-name a:focus-visible {
    color: var(--accent);
}

.site-footer .footer-credit {
    margin-top: 28px;
    font-size: 10px;
    line-height: 1.7;
    letter-spacing: 0.06em;
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .site-footer .footer-name a {
        transition: none;
    }
}

/* Small editorial details tie the sections together. */
::selection {
    background: var(--blush);
    color: var(--ink);
}

.reading-progress {
    position: fixed;
    inset: 0 0 auto;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    z-index: 20;
    pointer-events: none;
}

nav > div > a[aria-current="location"] {
    color: var(--accent);
}

nav > div > a[aria-current="location"]::after {
    transform: scaleX(1);
}

nav a.contact-link[aria-current="location"] {
    border-color: var(--accent);
    background: var(--accent-wash);
}

nav a.contact-link:hover,
nav a.contact-link:focus-visible {
    background: var(--accent);
    color: var(--cream);
}

.photo-masthead {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 16px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.photo-masthead span:first-child {
    color: var(--accent);
}

.section-number::after {
    content: "";
    display: inline-block;
    width: clamp(36px, 5vw, 64px);
    height: 1px;
    margin-left: 22px;
    vertical-align: middle;
    background: var(--accent-border);
}

.editorial-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--accent);
    vertical-align: middle;
}

#projects .work-preview {
    display: flex;
    align-items: center;
    gap: 20px;
}

.work-mark {
    color: var(--accent);
    font-size: 38px;
    line-height: 1;
}

.site-footer .footer-colophon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 28px;
}

.site-footer .footer-colophon .footer-credit {
    margin-top: 0;
    text-align: left;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    font-size: 10px;
    letter-spacing: 0.06em;
    color: var(--ink);
    text-decoration: none;
}

.back-to-top span {
    color: var(--accent);
    transition: transform 220ms ease;
}

.back-to-top:hover,
.back-to-top:focus-visible {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: var(--accent);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .back-to-top:hover span {
        transform: translateY(-3px);
    }
}
