@import url('https://cdn.jsdelivr.net/npm/@fontsource/geist-sans@5.3.0/latin-400.css');
@import url('https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@400,500,700,800&display=swap');

:root {
    --font-heading: 'Cabinet Grotesk', sans-serif;
    --font-body: 'Geist Sans', sans-serif;
    --page-padding: 32px;
    --nav-dock-top: 14px;
    --dock-content-spacing: 80px;
    --content-below-dock: 40px;
    --about-inset: clamp(32px, 4vw, 48px);
    --about-column-max: 440px;
    --layout-max: 1200px;
    --content-max: 560px;
    --work-col: 326px;
    --work-max: 796px;
    --work-content-width: 560px;
    --grid-gap: 24px;
    --media-grid-gutter: clamp(16px, 4vw, 64px);

    --text-heading: #000;
    --text-muted: #767679;
    --text-body: var(--text-muted);
    --page: #ffffff;
    --hairline: #e4e4e7;
    --surface-muted: #f4f4f5;

    --body-size: 15px;
    --caption-size: calc(var(--body-size) - 2px);
    --heading-size: 15px;
    --heading-weight: 500;
    --label-letter-spacing: 0.018em;
    --label-line-height: 1.8;
    --thumb-radius: 12px;
    --thumb-bg: #f4f4f5;
}

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

html,
body {
    background: var(--page);
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-synthesis: none;
    color: var(--text-body);
    font-size: var(--body-size);
    line-height: 1.5;
}

.container {
    width: 100%;
    max-width: var(--layout-max);
    margin: 0 auto;
    padding: 0 var(--page-padding);
}

h1,
h2,
h3,
h4,
h5,
h6,
.case-heading h1,
.case-section-title,
.case-interlude-title,
.work-entry-title {
    font-family: var(--font-heading);
    font-weight: var(--heading-weight);
}

h1 {
    font-size: var(--heading-size);
    color: var(--text-heading);
    line-height: 1.5;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

/* Work intro hero */

.intro-hero {
    --intro-hero-viewport: calc(100dvh - var(--nav-dock-top) - var(--dock-content-spacing));
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: var(--work-max);
    min-height: calc(var(--intro-hero-viewport) * 0.7);
    margin: 0 auto;
    padding: 0 var(--page-padding);
    text-align: center;
    box-sizing: border-box;
}

.intro-hero__inner {
    width: min(var(--work-content-width), 100%);
    margin-inline: auto;
}

.intro-hero__headline {
    margin: 0 auto;
    max-width: 18ch;
    font-family: var(--font-heading);
    font-size: clamp(28px, 4.8vw, 38px);
    font-weight: var(--heading-weight);
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--text-heading);
    text-wrap: balance;
}

.intro-hero__subtitle {
    margin: 14px 0 0;
    max-width: 28ch;
    margin-inline: auto;
    font-family: var(--font-body);
    font-size: var(--body-size);
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-muted);
    text-wrap: pretty;
}

#work:has(.intro-hero) .work-list {
    padding-top: 0;
}

/* Intro */

.home-intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: min(var(--work-content-width), 100%);
    margin: 0 auto;
    padding: 64px 0 0;
}

.home-avatar {
    width: 32px;
    height: 32px;
    display: block;
    margin-bottom: 20px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 32%;
    background: var(--surface-muted);
}

.home-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.home-title h1 {
    font-size: var(--body-size);
    line-height: 1.5;
    color: #000;
}

.home-title p,
.work-entry-meta {
    font-size: var(--body-size);
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: none;
}

.work-entry-meta,
.case-heading-meta,
.work-meta {
    text-transform: uppercase;
    letter-spacing: var(--label-letter-spacing);
    line-height: var(--label-line-height);
}

.work-entry-meta::before,
.case-heading-meta::before,
.work-meta::before {
    content: '[ ';
}

.work-entry-meta::after,
.case-heading-meta::after,
.work-meta::after {
    content: ' ]';
}

.home-title p {
    width: fit-content;
}

.subtitle {
    font-size: var(--body-size);
    color: #87888e;
    max-width: 402px;
    line-height: 24px;
}

.teams {
    width: min(var(--content-max), 100%);
    margin: 40px auto 0;
}

.teams h2 {
    margin-bottom: 18px;
    color: #87888e;
    font-family: var(--font-body);
    font-size: var(--body-size);
    font-weight: 400;
    line-height: 24px;
}

.team-logos {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
    overflow-x: auto;
    scrollbar-width: none;
}

.team-logos::-webkit-scrollbar {
    display: none;
}

.team-logos img {
    flex: 0 0 auto;
    width: auto;
    height: 24px;
    display: block;
    opacity: 0.65;
}

/* Nav */

.nav-dock {
    display: flex;
    justify-content: flex-start;
    padding: 0;
    margin-top: 16px;
}

.tabs-list {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.tab-trigger {
    position: relative;
    display: inline-block;
    padding: 0 0 6px;
    border: none;
    font-size: var(--body-size);
    font-weight: 400;
    line-height: 1.5;
    font-family: inherit;
    color: var(--text-muted);
    background: transparent;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    text-decoration: none;
    transition: color 0.28s ease;
}

.tab-trigger::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: currentColor;
    opacity: 0;
    filter: blur(0.25px);
    transform: translateY(4px);
    transition:
        opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.tab-trigger:hover {
    color: #111;
}

.tab-trigger:focus-visible {
    outline: 2px solid #18181b;
    outline-offset: 2px;
}

.tab-trigger.active {
    color: var(--text-muted);
}

.tab-trigger.active::after {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .tab-trigger,
    .tab-trigger::after {
        transition: none;
    }
}

#tabs-nav {
    width: min(var(--work-content-width), 100%);
    margin: 40px auto 0;
}

.nav-dock-shell {
    position: fixed;
    top: var(--nav-dock-top);
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    justify-content: center;
    padding: 0 var(--page-padding);
    pointer-events: none;
}

.nav-dock--pill {
    pointer-events: auto;
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 5px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #eeeeee;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.035);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.nav-dock--pill .tabs-list {
    gap: 2px;
    flex-wrap: nowrap;
}

.nav-dock--pill .tab-trigger {
    padding: 7px 14px;
    border-radius: 999px;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-dock--pill .tab-trigger::after {
    display: none;
}

.nav-dock--pill .tab-trigger:hover {
    color: var(--text-heading);
}

.nav-dock--pill .tab-trigger.active {
    color: var(--text-heading);
}

.home-page #tabs-nav {
    width: auto;
    margin: 0;
}

.has-nav-dock > .container {
    padding-top: calc(var(--nav-dock-top) + var(--dock-content-spacing));
}

.nav-dock--pill a.tab-trigger {
    text-decoration: none;
}

.nav-dock--floating {
    position: sticky;
    top: 0;
    z-index: 200;
    width: 100%;
    padding: 16px var(--page-padding);
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid var(--hairline);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nav-dock--floating .tabs-list {
    max-width: var(--layout-max);
    margin: 0 auto;
}

.case-study-page .nav-dock {
    margin-bottom: 16px;
}

.section {
    display: none;
}

.section.active {
    display: block;
    animation: section-enter 1.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.section.is-hidden {
    display: none !important;
}

@keyframes section-enter {
    from {
        opacity: 0;
        filter: blur(6px);
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .section.active {
        animation: none;
    }
}

/* About */

#about {
    width: 100%;
}

#about.section.active {
    overflow: hidden;
}

.about-page {
    position: relative;
    width: 100%;
    padding: 0 0 var(--about-inset);
    height: calc(
        100dvh - var(--nav-dock-top) - var(--dock-content-spacing) - var(--content-below-dock) -
            var(--about-inset)
    );
    min-height: 420px;
    max-height: calc(
        100dvh - var(--nav-dock-top) - var(--dock-content-spacing) - var(--content-below-dock) -
            var(--about-inset)
    );
    margin: 0;
    box-sizing: border-box;
}

.about-primary {
    position: absolute;
    left: 0;
    top: var(--content-below-dock);
    bottom: var(--about-inset);
    width: min(var(--about-column-max), calc(50% - var(--about-inset)));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(24px, 3vh, 40px);
    min-width: 0;
    overflow-y: auto;
    scrollbar-width: thin;
}

.about-copy {
    width: 100%;
    min-width: 0;
    flex: 0 1 auto;
}

.about-copy p {
    font-size: var(--body-size);
    font-weight: 400;
    line-height: 1.55;
    color: var(--text-body);
    margin: 0 0 1em;
    text-wrap: pretty;
}

.about-copy p:last-of-type {
    margin-bottom: 0;
}

.about-connect h2,
.about-teams h2 {
    margin: 0 0 16px;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: var(--body-size);
    font-weight: 400;
    line-height: 1.5;
}

.about-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.about-links a {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    text-decoration: underline dotted;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: color 0.2s ease;
}

.about-links a:hover {
    color: var(--text-heading);
}

.about-photo {
    position: absolute;
    left: 50%;
    right: 0;
    top: var(--content-below-dock);
    bottom: var(--about-inset);
    width: auto;
    max-width: none;
    aspect-ratio: unset;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface-muted);
    margin: 0;
}

.about-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 20%;
}

.about-teams {
    width: 100%;
    flex: 0 1 auto;
    min-width: 0;
}

.team-ticker {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.team-ticker__track {
    display: flex;
    width: max-content;
    animation: team-ticker-scroll 56s linear infinite;
}

.team-ticker__group {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: clamp(28px, 4vw, 40px);
    padding-right: clamp(28px, 4vw, 40px);
}

.team-ticker__group img {
    flex: 0 0 auto;
    width: auto;
    height: 20px;
    display: block;
    opacity: 0.55;
}

.team-ticker__group img.team-logo--scale {
    height: 22px;
}

.team-ticker__group img.team-logo--xl {
    height: 24px;
}

@keyframes team-ticker-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .team-ticker__track {
        animation: none;
        flex-wrap: wrap;
        width: 100%;
    }

    .team-ticker__group[aria-hidden='true'] {
        display: none;
    }

    .team-ticker {
        mask-image: none;
        -webkit-mask-image: none;
    }
}

.about-connect {
    flex: 0 0 auto;
}

/* Art / Motion grids */

#art,
#craft {
    width: calc(100vw - var(--media-grid-gutter) * 2);
    margin-left: calc(50% - 50vw + var(--media-grid-gutter));
}

#ai {
    width: min(var(--work-content-width), 100%);
    margin-left: calc((100% - min(var(--work-content-width), 100%)) / 2);
    margin-right: auto;
}

.masonry {
    column-count: 4;
    column-gap: 24px;
    padding: var(--content-below-dock) 0 100px;
}

#craft .masonry {
    column-count: 3;
}

.masonry-item {
    position: relative;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
    margin-bottom: 24px;
    border-radius: 10px;
    overflow: hidden;
    cursor: zoom-in;
    background: transparent;
}

.art-title-pill {
    position: absolute;
    left: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #000;
    font-size: var(--body-size);
    font-weight: 400;
    line-height: 1;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.masonry-item:hover .art-title-pill,
.masonry-item:focus .art-title-pill,
.masonry-item:focus-within .art-title-pill {
    opacity: 1;
    transform: translateY(0);
}

.masonry-item:focus-visible {
    outline: 2px solid #18181b;
    outline-offset: 3px;
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.masonry-item img.loaded {
    opacity: 1;
}

.masonry-item--motion {
    cursor: pointer;
}

.masonry-item--motion .rive-lottie {
    border-radius: 10px;
}

/* Work list */

.work-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: var(--work-max);
    margin: 0 auto;
    padding: 32px 0 80px;
}

#work .work-list {
    width: 100%;
    max-width: var(--work-max);
    margin: 0 auto;
    padding: var(--content-below-dock) 0 120px;
}

.work-entries {
    display: flex;
    flex-direction: column;
    gap: 104px;
    width: 100%;
    min-width: 0;
}

.work-entry { min-width: 0; }

.work-entry-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.work-entry-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.work-entry-title {
    font-size: 22px;
    line-height: 1.25;
    color: var(--text-heading);
    text-wrap: balance;
    min-width: 0;
}

.work-entry-subtitle {
    margin: 0;
    font-size: var(--body-size);
    font-weight: 400;
    line-height: 1.45;
    color: var(--text-muted);
    text-wrap: pretty;
}

.work-entry-meta {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

.work-entry-cta {
    box-sizing: border-box;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    height: 40px;
    min-height: 40px;
    padding: 0 20px;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--text-heading);
    font-size: var(--body-size);
    font-weight: 400;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.035);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.work-entry-cta:focus-visible {
    background: #18181b;
    border-color: #18181b;
    color: #fff;
    outline: 2px solid #71717a;
    outline-offset: 4px;
}

@media (hover: hover) {
    .work-entry-cta:hover {
        background: #18181b;
        border-color: #18181b;
        color: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    }
}

.work-ticker {
    --work-ticker-height: clamp(280px, 34vw, 460px);
    position: relative;
    height: var(--work-ticker-height);
    overflow: hidden;
    border-radius: 10px;
    cursor: default;
    touch-action: pan-y;
}

@media (hover: hover) and (pointer: fine) {
    .work-ticker {
        cursor: grab;
        touch-action: none;
    }

    .work-ticker.is-dragging {
        cursor: grabbing;
        user-select: none;
    }
}

.work-ticker.is-dragging {
    user-select: none;
}

.work-ticker-track {
    display: flex;
    align-items: center;
    height: 100%;
    width: max-content;
    will-change: transform;
}

.work-ticker-group {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    height: 100%;
    gap: 14px;
    padding-right: 14px;
}

.work-ticker .work-entry-thumb {
    display: block;
    flex: 0 0 auto;
    height: 100%;
    width: auto;
    max-height: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface-muted);
}

.work-entry-thumb img,
.work-entry-thumb video {
    display: block;
}

.work-ticker .work-entry-thumb img,
.work-ticker .work-entry-thumb video {
    height: 100%;
    width: auto;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.work-entry-thumb--ai-mascot img { transform: scale(1.1); }
.work-entry-thumb--offcampus-doodles { border: 1px solid #e6e6e6; }

@media (prefers-reduced-motion: reduce) {
    .work-ticker-track { transform: none !important; }
}

@media (max-width: 600px) {
    .work-entry-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 32px;
    }
    .work-ticker {
        --work-ticker-height: clamp(230px, 56vw, 400px);
    }
    .work-entry-cta {
        height: 40px;
        min-height: 40px;
        padding: 0 16px;
    }
}

.work-card {
    border: 1px solid var(--hairline);
    border-radius: 12px;
    padding: 16px 18px;
}

.work-card h3 {
    font-size: var(--heading-size);
    margin-bottom: 6px;
    font-weight: 400;
    color: var(--text-heading);
}

.work-meta {
    font-size: var(--body-size);
    color: var(--text-muted);
    margin-bottom: 8px;
}

.work-card a {
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid #000;
    padding-bottom: 2px;
    width: fit-content;
}

/* Motion */

.rive-grid {
    width: 100%;
    padding: var(--content-below-dock) 0 80px;
}

.rive-stack {
    display: flex;
    flex-direction: column;
    gap: 72px;
}

.rive-entry {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.work-entry-subtitle a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.work-entry-subtitle a:hover {
    color: var(--text-heading);
}

.rive-card {
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface-muted);
    border: none;
    cursor: pointer;
    padding: 0;
    display: block;
    width: 100%;
    line-height: 0;
}

.rive-thumb {
    width: 100%;
    overflow: hidden;
}

.rive-thumb video {
    width: 100%;
    height: auto;
    display: block;
}

.rive-thumb--fixed-ratio video {
    height: 100%;
    object-fit: cover;
}

.rive-lottie {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f4f4f5;
}

.rive-lottie svg {
    display: block;
    width: 68% !important;
    height: 68% !important;
}

.rive-lottie--cc {
    align-items: flex-end;
    background: #2e2d33;
}

.rive-lottie--cc svg {
    width: 74% !important;
    height: auto !important;
}

#rive-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
    padding: 20px;
    cursor: zoom-out;
}

#rive-modal.active {
    opacity: 1;
    visibility: visible;
}

.rive-modal-inner {
    height: 75vh;
    width: 75vh;
    cursor: default;
}

.rive-modal-canvas {
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rive-modal-canvas.is-loaded {
    opacity: 1;
}

.rive-modal-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

/* Projects (hidden) */

.thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    padding: 10px 0 70px;
}

.thumb-card {
    border: 1px solid var(--hairline);
    border-radius: var(--thumb-radius);
    overflow: hidden;
    background: var(--thumb-bg);
    display: flex;
    flex-direction: column;
}

.thumb-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: contain;
    background: var(--thumb-bg);
}

.thumb-card .thumb-body {
    padding: 12px 14px 16px;
}

.thumb-card h3 {
    font-size: var(--heading-size);
    margin-bottom: 6px;
    font-weight: 400;
    color: var(--text-heading);
}

.md-entry summary {
    cursor: pointer;
    list-style: none;
    font-weight: 400;
    margin-bottom: 6px;
}

.md-entry summary::-webkit-details-marker {
    display: none;
}

.md-body {
    margin-top: 8px;
    color: var(--text-body);
}

.md-body h1,
.md-body h2,
.md-body h3 {
    font-size: var(--heading-size);
    color: var(--text-heading);
    margin: 12px 0 8px;
}

.md-body ul {
    padding-left: 18px;
    margin: 8px 0;
}

footer {
    text-align: center;
    padding: 50px 0 40px;
    color: var(--text-muted);
    font-size: var(--body-size);
}

#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: .4s;
    z-index: 9999;
    padding: 20px;
    cursor: zoom-out;
}

#lightbox.active {
    opacity: 1;
    visibility: visible;
}

#lightbox img {
    max-width: 96vw;
    max-height: 96vh;
    object-fit: contain;
    border-radius: 12px;
}

@media (max-width: 1280px) {
    .masonry {
        column-count: 4;
    }

    #craft .masonry {
        column-count: 3;
    }
}

@media (max-width: 1024px) {
    .masonry {
        column-count: 3;
    }
}

@media (max-width: 900px) {
    #work .work-list {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-top: 32px;
    }

    .work-entries {
        gap: 64px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-dock-top: 10px;
    }

    .nav-dock--pill .tab-trigger {
        padding: 6px 11px;
        font-size: 14px;
    }

    .home-intro {
        padding-top: 40px;
    }

    .intro-hero {
        min-height: calc((100dvh - var(--nav-dock-top) - var(--dock-content-spacing)) * 0.62);
        padding: 0 var(--page-padding);
    }

    .subtitle {
        max-width: 640px;
        line-height: 20px;
    }

    #about.section.active {
        overflow: visible;
    }

    .about-page {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 40px;
        height: auto;
        min-height: 0;
        max-height: none;
        width: 100%;
        padding: var(--content-below-dock) 0 80px;
    }

    .about-primary {
        position: static;
        width: 100%;
        overflow: visible;
        justify-content: flex-start;
    }

    .about-photo {
        position: static;
        width: 100%;
        aspect-ratio: 4 / 5;
        max-height: min(70vh, 520px);
    }

    .team-ticker__group {
        flex-wrap: wrap;
        row-gap: 20px;
    }

    .teams {
        width: 100%;
        margin-top: 48px;
    }

    .teams h2 {
        text-align: left;
    }

    .team-logos {
        justify-content: flex-start;
        gap: 32px;
        padding-bottom: 2px;
    }

    .masonry {
        column-count: 2;
        column-gap: 18px;
    }

    .rive-stack {
        gap: 48px;
    }

    .work-entries {
        gap: 80px;
    }
}

@media (max-width: 480px) {
    .masonry {
        column-count: 1;
    }
}
