@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:wght@400;600;700&family=Montserrat:wght@500;600;700;800&display=swap');

:root {
    --bone: #fbf8f1;
    --paper: #fffdf8;
    --mist: #f0ece4;
    --ink: #2f3433;
    --dark-coffee: #432818;
    --muted: #666b68;
    --clay: #9c4f32;
    --clay-dark: #71351f;
    --indigo: #284f63;
    --sage: #73856b;
    --line: #e5d9cb;
    --shadow: 0 18px 45px rgba(68, 45, 27, 0.09);
    --header-bg: rgba(255, 254, 248, .98);
    --nav-link: var(--dark-coffee);
    --heading: #2c1a10;
    --link-hover: #c13627;
    --link: #c27a36;
    --profile-card-bg: rgba(255, 253, 248, .72);
    --abstract-fade: linear-gradient(rgba(251, 248, 241, 0), var(--bone) 82%);
    --max: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    max-width: 100%;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

body {
    max-width: 100%;
    margin: 0;
    padding-top: 72px;
    overflow-x: clip;
    color: var(--dark-coffee);
    background: var(--bone);
    font-family: 'Crimson Text', serif;
    font-size: 17px;
    line-height: 1.65;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 18%, rgba(156, 79, 50, .06), transparent 28%),
        radial-gradient(circle at 84% 5%, rgba(40, 79, 99, .08), transparent 30%),
        linear-gradient(90deg, rgba(115, 133, 107, .04), transparent 38%, rgba(156, 79, 50, .04));
    z-index: -1;
}

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

a {
    color: var(--link);
    text-decoration-thickness: .08em;
    text-underline-offset: .18em;
}

a:hover {
    color: var(--link-hover);
}

/* Header and navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    background: var(--header-bg);
    border-bottom: 1px solid var(--line);
}

.nav-wrap {
    max-width: var(--max);
    min-height: 72px;
    margin: 0 auto;
    padding: 0 1.3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: inline-block;
    position: relative;
    padding-left: 52px;
    color: var(--clay-dark);
    font-weight: 700;
    letter-spacing: -.02em;
    text-decoration: none;
    white-space: nowrap;
}

.brand span {
    position: relative;
    z-index: 0;
    display: inline-block;
}

.brand-dog {
    position: absolute;
    left: 0;
    top: 50%;
    z-index: 1;
    height: 44px;
    width: auto;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    transition: transform .2s ease;
}

.brand:hover .brand-dog,
.brand:focus .brand-dog {
    transform: translateY(-50%) scale(1.05);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 1.35rem;
}

.site-nav a {
    padding: .35rem 0;
    color: var(--nav-link);
    font-size: .98rem;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--clay-dark);
    border-bottom-color: var(--clay);
}

.cv-nav {
    padding: .32rem .75rem !important;
    color: #fff !important;
    background: var(--clay);
    border-bottom: 0 !important;
    border-radius: 999px;
}

.cv-nav:hover {
    color: #fff !important;
    background: var(--clay-dark);
}

.menu-toggle {
    display: none;
    align-items: center;
    gap: .55rem;
    min-height: 42px;
    padding: .45rem .75rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--clay-dark);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(68, 45, 27, .07);
}

.menu-toggle-box {
    width: 22px;
    display: grid;
    gap: 4px;
}

.menu-toggle-box span {
    display: block;
    height: 2px;
    border-radius: 999px;
    background: var(--clay-dark);
    transition: transform .18s ease, opacity .18s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-box span:nth-child(1),
.profile-toggle[aria-expanded="true"] .menu-toggle-box span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-box span:nth-child(2),
.profile-toggle[aria-expanded="true"] .menu-toggle-box span:nth-child(2) {
    opacity: 0;
}

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

/* Page layout */
.page {
    max-width: var(--max);
    margin: 0 auto;
    padding: 3rem 1.3rem 4.5rem;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 4rem;
}

.content {
    max-width: 760px;
}

.sidebar {
    position: sticky;
    top: 102px;
    align-self: start;
    padding-top: .2rem;
}

.sidebar-khipu-wrap {
    width: 100%;
    margin-top: 1.5rem;
    padding: 1rem 0 0;
}

.sidebar-khipu {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: calc(80vh - 80px);
    height: auto;
    object-fit: contain;
    transform: rotate(90deg);
    transform-origin: center;
}

.profile-card {
    position: static;
    top: auto;
}

.profile-card h1,
.profile-card h2 {
    margin: 0 0 .3rem;
    font-size: 1.15rem;
    line-height: 1.25;
}

.headshot {
    display: block;
    width: 172px;
    height: 172px;
    margin-bottom: 1rem;
    object-fit: cover;
    border: 8px solid var(--paper);
    outline: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow);
}

.inline-headshot {
    float: left;
    width: 220px;
    max-width: 40%;
    height: auto;
    margin: .25rem 1.5rem 1rem 0;
    border-radius: 100%;
}

.pronouns,
.role,
.affiliation {
    margin: .2rem 0;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.45;
}

.affiliation {
    margin-top: .8rem;
}

.link-list {
    list-style: none;
    margin: 1.35rem 0 0;
    padding: 0;
    display: grid;
    gap: .65rem;
}

.link-list a {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--dark-coffee);
    font-size: .94rem;
    text-decoration: none;
}

.link-list img,
.link-dot {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    object-fit: contain;
}

.link-dot {
    display: inline-block;
    border-radius: 50%;
    background: var(--sage);
}

/* Typography and common components */
.eyebrow {
    margin: 0 0 .45rem;
    color: var(--clay);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

h1.page-title,
h2 {
    color: var(--heading);
    letter-spacing: -.035em;
    line-height: 1.1;
}

h1.page-title {
    margin: 0 0 1rem;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
}

h2 {
    margin: 2.2rem 0 .7rem;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
}

h3 {
    margin: 1.6rem 0 .4rem;
    color: var(--dark-coffee);
    font-size: 1.15rem;
}

p {
    margin: 0 0 1.15rem;
}

.lede {
    color: var(--dark-coffee);
    font-size: 1.17rem;
}

.callout {
    margin: 1.8rem 0;
    padding: 1.25rem 1.35rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 5px solid var(--clay);
    box-shadow: var(--shadow);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.1rem 0 2rem;
}

.card {
    padding: 1.15rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.card h3 {
    margin-top: 0;
}

.card p:last-child {
    margin-bottom: 0;
}

.clean-list {
    padding-left: 1.2rem;
}

.clean-list li {
    margin-bottom: .55rem;
}

.item-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.item {
    padding: 1rem 0 1.05rem;
    border-bottom: 1px solid var(--line);
}

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

.item-list.compact {
    gap: .35rem;
}

.year {
    margin-right: .4rem;
    color: var(--clay);
    font-size: .92rem;
    font-weight: 700;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.25rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .55rem .95rem;
    border-radius: 999px;
    border-color: var(--clay);
    border-width: 2px;
    border-style: solid;
    background: transparent;
    /* background: var(--clay); */
    color: var(--clay);
    font-weight: 700;
    text-decoration: none;
}

.button.secondary {
    background: var(--clay);
    color: #fff;
}

.button:hover {
    color: #fff;
    background: var(--clay);
    filter: brightness(.93);
}

.button.small {
    min-height: 34px;
    margin-top: .65rem;
    padding: .35rem .65rem;
    font-size: .82rem;
}

.footer {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 1.6rem 1.3rem 3rem;
    color: var(--muted);
    font-size: .9rem;
    border-top: 1px solid var(--line);
}

.khipu-rule {
    height: 9px;
    margin: 2rem 0;
    background: repeating-linear-gradient(90deg, var(--clay) 0 34px, transparent 34px 48px, var(--indigo) 48px 82px, transparent 82px 96px, var(--sage) 96px 130px, transparent 130px 144px);
    border-radius: 999px;
    opacity: .55;
}

/* Publications */
.publication-list {
    display: grid;
    gap: 1.4rem;
    margin: 1rem 0 2.5rem;
}

.publication-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.1rem 0 1.35rem;
    border-bottom: 1px solid var(--line);
}

.publication-cover {
    text-align: center;
}

.publication-cover img {
    max-width: 130px;
    max-height: 185px;
    object-fit: contain;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.publication-text .citation {
    margin-bottom: .6rem;
    color: var(--dark-coffee);
    font-size: 1.03rem;
}

.abstract {
    position: relative;
    overflow: hidden;
    transition: max-height .25s ease;
}

.abstract-collapsed {
    max-height: 8.25rem;
}

.abstract-collapsed::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3.2rem;
    pointer-events: none;
    background: var(--abstract-fade);
}

.abstract-expanded {
    max-height: none;
}

.see-more-button {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin: -.25rem 0 .7rem;
    padding: .2rem 0;
    border: 0;
    border-bottom: 2px solid currentColor;
    background: transparent;
    color: var(--link);
    font: inherit;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
}

/* Contact */
.contact-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.5rem;
    align-items: stretch;
    margin: 1.5rem 0;
}

.contact-info,
.contact-grid {
    display: grid;
    gap: 1rem;
}

.contact-grid article.card h2,
.contact-form-section h2 {
    margin-bottom: .8rem;
}

.contact-form-section {
    margin-top: 1.5rem;
}

.contact-form {
    display: grid;
    gap: .8rem;
    margin-top: 1rem;
}

.contact-form label {
    color: var(--dark-coffee);
    font-size: .95rem;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    color: var(--dark-coffee);
    font: inherit;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .button {
    width: fit-content;
}

.contact-image {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.columns {
    columns: 2;
}

/* Home hero */
.home-hero {
    position: relative;
    min-height: clamp(560px, 72vh, 820px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #1b1d1d;
    color: #fff;
}

.home-hero-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: #1b1d1d;
}

.home-hero-video video,
.home-hero-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    border: 0;
    object-fit: cover;
}

.home-hero-video video {
    object-position: center top;
    opacity: 0;
    transition: opacity .35s ease;
}

.home-hero-video video.is-loaded,
.home-hero-video video[poster] {
    opacity: 1;
}

.home-hero-video iframe {
    display: none;
}

.home-hero::before,
.home-hero::after {
    content: none;
}

.home-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1320px, 100%);
    margin: 0 auto;
    padding: clamp(3.5rem, 7vw, 6.5rem) 1.4rem;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, .72fr);
    align-items: center;
    gap: clamp(2.5rem, 7vw, 6.5rem);
}

.home-hero-text {
    max-width: 760px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .65);
}

.home-hero h1 {
    margin: 0 0 .75rem;
    color: #fff;
    /* font-family: 'Crimson Text', serif; */
    font-size: clamp(3.2rem, 7.6vw, 6.2rem);
    line-height: .95;
    letter-spacing: .005em;
    text-shadow: 0 8px 26px rgba(0, 0, 0, .35);
}

.hero-kicker {
    margin: 0 0 .4rem;
    color: rgba(255, 255, 255, .92);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 700;
    letter-spacing: .01em;
}

.hero-subtitle {
    margin: 0;
    font-size: clamp(1.05rem, 2.2vw, 1.55rem);
    font-weight: 600;
    line-height: 1.35;
}

.hero-rule {
    width: min(100%, 590px);
    height: 1px;
    margin: 1.35rem 0 1.25rem;
    background: rgba(255, 255, 255, .66);
}

.hero-interests {
    max-width: 760px;
    margin: 0 0 .95rem;
    color: rgba(255, 255, 255, .94);
    font-weight: 700;
    line-height: 1.55;
}

.hero-links {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
    margin: 1rem 0 1.55rem;
    padding: 0;
}

.hero-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: transform .16s ease, filter .16s ease;
}

.hero-links a:hover {
    transform: translateY(-2px);
    background: transparent;
    filter: brightness(1.08);
}

.hero-links img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: .75rem 1.75rem;
    border-radius: 999px;
    background: var(--clay);
    color: #fff;
    font-size: 1.18rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .26);
}

.hero-button:hover {
    color: #fff;
    background: var(--clay);
}

.home-hero-photo-wrap {
    justify-self: center;
}

.home-hero-photo {
    display: block;
    width: clamp(300px, 33vw, 470px);
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center top;
    border-radius: 999px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .35);
}

.home-main {
    display: block;
    max-width: 980px;
    padding-top: 3.5rem;
}

.home-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 2rem;
    align-items: start;
}

.home-main .about-content {
    max-width: 900px;
    margin: 0 auto;
}

.home-sidebar {
    position: sticky;
    top: 120px;
    align-self: start;
}

/* Video deck */
.video-grid {
    display: grid;
    gap: 1rem;
    margin: 1.25rem 0 2rem;
}

.video {
    position: relative;
    width: 100%;
    min-height: 380px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 18px;
    box-shadow: 0 22px 45px rgba(0, 0, 0, .12);
}

.video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-deck {
    margin: 1.25rem 0 2rem;
}

.video-deck-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.video-deck-controls {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    flex: 0 0 auto;
}

.video-deck-button {
    width: 52px;
    height: 52px;
    border: 1px solid rgba(40, 79, 99, .16);
    border-radius: 50%;
    background: #fff;
    color: var(--clay);
    font: inherit;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .1);
    transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.video-deck-button:hover,
.video-deck-button:focus-visible {
    transform: translateY(-2px);
    background: var(--clay);
    color: #fff;
    border-color: transparent;
}

.video-deck-button:focus-visible {
    outline: 3px solid rgba(115, 199, 182, .35);
    outline-offset: 3px;
}

.video-deck-viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    padding-bottom: .6rem;
}

.video-deck-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(620px, 86%);
    gap: 1rem;
}

.video-slide {
    scroll-snap-align: start;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.video-slide h3 {
    margin: .9rem 0 .25rem;
}

.video-slide p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: .96rem;
    line-height: 1.5;
}

/* Image gallery carousel */
.image-gallery {
    --gallery-height: 460px;
    position: relative;
    margin: 2rem 0 2.5rem;
}

.gallery-track {
    position: relative;
    width: 100%;
    height: var(--gallery-height);
    overflow: hidden;
    border-radius: 18px;
    background: #f4f1eb;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .14);
}

.gallery-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transform: scale(1.015);
    background: #f4f1eb;
    transition: opacity 450ms ease, transform 450ms ease;
}

.gallery-slide.active {
    z-index: 1;
    opacity: 1;
    transform: scale(1);
}

.gallery-arrow {
    position: absolute;
    top: calc(var(--gallery-height) / 2);
    z-index: 3;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, .86);
    color: #2f2a24;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}

.gallery-arrow:hover {
    background: rgba(255, 255, 255, .96);
}

.gallery-prev {
    left: 1rem;
}

.gallery-next {
    right: 1rem;
}

.gallery-dots {
    position: static;
    z-index: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .45rem;
    max-width: 100%;
    margin: 0;
    padding: .9rem 1rem 0;
    overflow-x: auto;
    background: transparent;
    transform: none;
}

.gallery-dot {
    width: .55rem;
    height: .55rem;
    flex: 0 0 auto;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(47, 42, 36, .28);
    cursor: pointer;
}

.gallery-dot.active {
    background: rgba(47, 42, 36, .92);
}

/* Mobile and tablet */
@media (max-width: 900px) {
    .home-hero {
        min-height: auto;
    }

    .home-hero-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-top: 2.25rem;
        padding-bottom: 3rem;
    }

    .home-hero-photo-wrap {
        order: -1;
    }

    .home-hero-photo {
        width: min(72vw, 360px);
    }

    .home-main {
        padding-top: 2rem;
    }
}

@media (max-width: 860px) {
    body {
        padding-top: 68px;
    }

    .site-header {
        position: fixed;
        top: 0;
        z-index: 1000;
    }

    body.nav-open .site-header {
        max-height: 100dvh;
        overflow-y: auto;
    }

    .nav-wrap {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: .85rem;
        min-height: 68px;
        padding: .7rem 1.3rem;
    }

    .brand {
        white-space: normal;
        line-height: 1.2;
    }

    .menu-toggle {
        display: inline-flex;
        justify-self: end;
    }

    .site-nav {
        grid-column: 1 / -1;
        display: none;
        width: 100%;
        padding: .55rem 0 .25rem;
        flex-direction: column;
        align-items: stretch;
        gap: .25rem;
    }

    body.nav-open .site-nav {
        display: flex;
    }

    .site-nav a {
        display: block;
        width: 100%;
        padding: .7rem .85rem;
        border-bottom: 0;
        border-radius: 12px;
        background: var(--profile-card-bg);
        font-size: .98rem;
    }

    .site-nav a:hover,
    .site-nav a.active {
        background: var(--paper);
        border-bottom-color: transparent;
    }

    .site-nav .cv-nav {
        display: inline-flex !important;
        width: fit-content !important;
        align-self: flex-start;
        margin-top: .35rem;
        padding: .45rem .9rem !important;
        text-align: left;
        color: #fff !important;
        background: var(--clay) !important;
        border-radius: 999px;
    }

    .site-nav .cv-nav:hover,
    .site-nav .cv-nav.active {
        color: #fff !important;
        background: var(--clay-dark) !important;
    }

    .page {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding-top: 1.25rem;
    }

    .page>[data-include="sidebar"] {
        order: 2;
    }

    .page>.content {
        order: 1;
    }

    .profile-card {
        display: grid;
        grid-template-columns: 120px 1fr;
        column-gap: 1rem;
        align-items: start;
        padding: 1rem;
        background: var(--profile-card-bg);
        border: 1px solid var(--line);
        border-radius: 18px;
        box-shadow: var(--shadow);
    }

    .headshot {
        width: 120px;
        height: 120px;
        margin-bottom: 0;
        grid-row: span 5;
    }

    .link-list {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-toggle {
        display: inline-flex;
    }

    .profile-extra {
        display: none;
        grid-column: 1 / -1;
    }

    .profile-extra.profile-extra-open {
        display: block;
    }

    .profile-extra .link-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.profile-toggle {
    display: none;
    align-items: center;
    gap: .55rem;
    min-height: 40px;
    margin-top: .85rem;
    padding: .4rem .75rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--clay-dark);
    font: inherit;
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 800px) {
    .image-gallery {
        --gallery-height: 340px;
    }

    .gallery-track {
        border-radius: 14px;
    }

    .gallery-arrow {
        width: 36px;
        height: 36px;
        font-size: 1.6rem;
    }
}

@media (max-width: 700px) {
    .home-main {
        display: block;
        width: 100%;
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        overflow-x: clip;
    }

    .home-main .content,
    .home-main .about-content {
        width: 100%;
        max-width: 100%;
        overflow-wrap: break-word;
    }

    .inline-headshot {
        float: none;
        display: block;
        width: min(240px, 80vw);
        max-width: 100%;
        height: auto;
        margin: 0 auto 1.25rem;
    }

    .home-hero {
        min-height: 620px;
        background-image:
            linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, .4)),
            url("../images/IMG_3218.JPG");
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }

    .home-hero-video {
        display: none;
    }

    .home-hero-inner {
        min-height: 620px;
        align-items: end;
        padding-top: 5rem;
        padding-bottom: 3rem;
    }

    .home-hero-text {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        text-shadow: 0 2px 14px rgba(0, 0, 0, .75);
    }

    .home-hero h1,
    .hero-kicker,
    .hero-subtitle,
    .hero-interests {
        text-align: center;
    }

    .home-hero h1 {
        font-size: clamp(3rem, 13vw, 5.2rem);
    }

    .hero-rule {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-links {
        justify-content: center;
    }

    .home-main .eyebrow,
    .home-main .page-title {
        text-align: center;
    }
}

@media (max-width: 680px) {
    .publication-card {
        grid-template-columns: 1fr;
    }

    .publication-cover {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .publication-cover a:first-child {
        display: block;
    }

    .publication-cover img {
        display: block;
        width: min(260px, 100%);
        max-width: 100%;
        height: auto;
    }

    .publication-cover .button.small {
        display: inline-flex;
        width: fit-content;
        margin-top: .75rem;
    }

    .contact-panel,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .columns {
        columns: 1;
    }

    .video-deck-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .video-deck-track {
        grid-auto-columns: 92%;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 16px;
    }

    .nav-wrap {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .menu-toggle-text {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .profile-card {
        display: block;
        text-align: left;
    }

    .profile-card .headshot {
        margin-bottom: 1rem;
    }

    .link-list,
    .profile-extra .link-list {
        grid-template-columns: 1fr;
    }

    .abstract-collapsed {
        max-height: 10rem;
    }

    .home-hero {
        background-position: center top;
    }

    .home-hero-inner {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .home-hero-photo {
        width: min(78vw, 290px);
    }

    .hero-kicker,
    .hero-subtitle,
    .hero-interests {
        font-size: 1rem;
    }

    .hero-links {
        gap: .55rem;
    }

    .hero-links a {
        width: 32px;
        height: 32px;
    }

    .hero-links img {
        width: 21px;
        height: 21px;
    }

    .hero-button {
        min-height: 50px;
        padding: .65rem 1.25rem;
        font-size: 1rem;
    }
}

@media (max-width: 520px) {
    .image-gallery {
        --gallery-height: 260px;
    }

    .gallery-prev {
        left: .5rem;
    }

    .gallery-next {
        right: .5rem;
    }
}

/* Hide sidebar completely on mobile */
@media (max-width: 860px) {
    .page>[data-include="sidebar"] {
        display: none;
    }
}