html {
    scroll-behavior: smooth;
}
h1, h2, h3, h4, h5, h6, body, small {
    font-family: 'Inter', sans-serif;
}
h1 {
    font-size: 7rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin: 0;
}
h2,
.featured-work-title,
.case-study-page-title {
    font-size: 5.5rem;
    font-weight: 400;
    line-height: 1.125;
    margin: 0;
}
h3 {
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.1875;
    margin: 0;
}
h4,
.case-study-section-heading,
.hero-lede
 {
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
}
h5, 
.featured-work-item-title,
.case-study-section-subhead
 {
    font-size: 1.75rem;
    font-weight: 400;
    margin: 0;
}
h6,
.hero-cta
{
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0;
}
p, 
ul,
ol {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--color-accessible-grey);
    line-height: 1.6;
    margin: 0;
}
small {
    font-size: .95rem;
    font-weight: 400;
    color: var(--color-accessible-grey);
    margin: 0;
} 
ul,
ol {
    margin-bottom: 1rem;
}
h1 + p, h1 + small {
    margin-top: 1.5rem;
}
strong {
    font-weight: 600;
    color: var(--color-soft-black);
}
.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6rem;
    margin-top: 4rem;
    margin-bottom: 6rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0 4rem;
}
.hero {
    grid-column: 1 / -1;
}
.hero-intro {
    width: min(60vw, 100%);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}
.hero-display {
    font-family: "Gilda Display", serif;
    font-weight: 500;
    font-size: h1;
    line-height: 1;
    color: var(--color-soft-black);
}
.hero-divider {
    border: none;
    border-top: 1px solid var(--color-border-grey);
    margin: 0;
    width: 100%;
}
.hero-lede {
    color: var(--color-dark-grey);
    margin-bottom: 1.5rem;
    margin-top: .5rem;
}
.hero-roles-block {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin: 1.5rem 0;

}
.hero-roles {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.hero-role {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.125rem;
    line-height: 1.45;
    margin: 0;
}
.hero-role-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    margin-top: 0.1em;
    color: var(--color-soft-black);
    display: block;
}
.hero-role-text {
    min-width: 0;
}
.hero-role-label {
    font-weight: 600;
    color: var(--color-soft-black);
    letter-spacing: normal;
    text-transform: none;
    font-size: 1.125rem;
    margin-right: 6px;
}
.hero-role-detail {
    font-weight: 400;
    color: var(--color-accessible-grey);
}
.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    line-height: 1.3;
    color: var(--color-soft-black);
    background: #fff;
    border: 1px solid #adb3b9;
    border-radius: 9999px;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    transition:
        background-color 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.22s ease,
        color 0.22s ease;
}
.hero-cta:hover,
.hero-cta:focus-visible {
    background: var(--color-soft-black);
    color: #fff;
    border-color: var(--color-soft-black);
}
.hero-cta:focus-visible {
    outline: 2px solid var(--color-soft-black);
    outline-offset: 3px;
}
.hero-cta:hover:focus-visible,
.hero-cta:focus-visible:hover {
    outline-color: #fff;
}
.hero-cta:active {
    transform: translateY(0);
    background: var(--color-soft-black);
    color: #fff;
    border-color: var(--color-soft-black);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.hero-cta-icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    display: block;
}
@media (prefers-reduced-motion: reduce) {
    .hero-cta {
        transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
    }
    .hero-cta:hover,
    .hero-cta:focus-visible,
    .hero-cta:active {
        transform: none;
    }
}
.featured-work {
    margin-left: auto;
    margin-right: auto;
    padding: 0 4rem 6rem;
    display: none;
}
.featured-work-header {
    margin-bottom: 1.25rem;
}
.featured-work-title {
    font-family: "Gilda Display", serif;
    font-weight: 400;
    line-height: 1.1;
    color: var(--color-soft-black);
    margin: 0;
}
.featured-work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}
/* Row height follows the visual (aspect-ratio); list column stretches to match; items share height equally */
.featured-work-visual {
    --featured-bg: #b71c1c;
    display: block;
    position: relative;
    align-self: stretch;
    width: 100%;
    min-height: 700px;
    overflow: hidden;
    border-radius: 4px;
    background-color: var(--featured-bg);
}
.featured-work-visual-frame {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 3vw, 1.5rem);
    box-sizing: border-box;
}
.featured-work-visual-asset {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.featured-work-list {
    list-style: none;
    padding: 0;
    margin: 0;
    align-self: stretch;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.featured-work-item {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--color-border-grey);
    text-align: right;
}
.featured-work-item:last-child {
    border-bottom: 1px solid var(--color-border-grey);
}
.featured-work-item-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem 0;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    min-height: 0;
}
.featured-work-item-link:hover .featured-work-item-title,
.featured-work-item-link:focus-visible .featured-work-item-title {
    text-decoration: underline;
}
.featured-work-item-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--color-soft-black);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}
.featured-work-item-desc {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-accessible-grey);
    line-height: 1.5;
    margin: 0 0 0.75rem 0;
}
.featured-work-item-meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accessible-grey);
    margin: 0;
}
.featured-work-meta-sep {
    margin: 0 0.35rem;
    opacity: 0.6;
}
.featured-work-desktop {
    display: block;
}
.featured-work-mobile {
    display: none;
}
.case-studies-wrapper {
    display: none;
    /*display: flex; */
    flex-direction: column;
    gap: 1.5rem;
    background-color: var(--color-light-grey);
    padding-top: 6rem;
    padding-bottom: 6rem;
}
.case-studies-inner {
    display: flex;
    gap: 1.5rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 4rem;
}
/* Case study page (met-design-system.html) */
.case-study-page {
    min-height: 100vh;
}
.case-study-page-inner {
    margin-left: auto;
    margin-right: auto;
    padding: 2.5rem 4rem 5rem;
    box-sizing: border-box;
}
.case-study-hero {
    display: grid;
    width: min(60vw, 100%);
    align-items: start;
    padding-bottom: 1.5rem;
    margin-bottom: 0;
}
.case-study-page-title {
    color: var(--color-soft-black);
    font-family: "Gilda Display", serif;
}
.case-study-hero-kicker,
.case-study-section-subhead {
    font-weight: 600;
    color: var(--color-soft-black);
    margin: 0 0 0.75rem 0;
}
.case-study-hero-text > p {
    margin: 0 0 1rem 0;
    line-height: 1.5;
}
.case-study-hero-text > p:last-child {
    margin-bottom: 0;
}
.case-study-hero-visual {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 4px;
    overflow: hidden;
    background: #b71c1c;
}
.case-study-hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.case-study-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 3rem;
    align-items: start;
    padding: 2.5rem 0;
    scroll-margin-top: 1.5rem;
    border-top: 1px solid #e8e8e8;
}
.case-study-section-heading {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-soft-black);
    margin: 0;
}
.case-study-section-body {
    font-family: 'Inter', sans-serif;
    min-width: 0;
}
.case-study-section-body > p {
    margin: 0 0 2.5rem 0;
}
.case-study-section-body > p:last-child {
    margin-bottom: 0;
}
.case-study-section-body ul,
.case-study-section-body ol {
    margin: 0 0 2.5rem 0;
    padding-left: 1.25rem;
    color: var(--color-accessible-grey);
}
.case-study-section-body li {
    margin-bottom: 0.35rem;
}
.case-study-section-body li:last-child {
    margin-bottom: 0;
}
.case-study-section-body .case-study-figure:last-child {
    margin-bottom: 0;
}
.case-study-figure {
    margin: 2rem 0 0 0;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    background: #ececec;
}
.case-study-figure--wide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.case-study-figure:not(.case-study-figure--wide) img {
    width: 100%;
    height: auto;
    display: block;
}
.case-study-gallery {
    /* Full-bleed band: background spans viewport; padding aligns grid with .case-study-page-inner */
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    padding: 2.5rem 4rem;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr));
    gap: 1rem;
    list-style: none;
    background-color: var(--color-light-grey);
}
.case-study-gallery li {
    list-style: none;
}
.case-study-gallery-item {
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    background: #e8e8e8;
}
.case-study-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.case-study-gallery-item--placeholder {
    min-height: 8rem;
}
.case-study-other {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #e0e0e0;
}
.case-study-other-title {
    font-family: "Gilda Display", serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--color-soft-black);
    margin: 0 0 2rem 0;
    text-align: left;
}
.case-study-other-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
    gap: 1.25rem;
}
.case-study-other-card {
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    background: #ececec;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.case-study-other-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
@media (max-width: 1024px) {
    .main-grid {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
    }
    .case-studies-inner {
        padding: 0 1.5rem;
        flex-direction: column;
    }
    .hero-intro {
        width: 100%;
    }
    .featured-work {
        padding: 0 1.5rem 4rem;
    }
    .featured-work-desktop {
        display: none;
    }
    .featured-work-mobile {
        display: block;
        /* Break out of .featured-work horizontal padding — carousel spans viewport */
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        width: calc(100% + 3rem);
        max-width: none;
    }
    .featured-work-carousel-viewport {
        overflow: hidden;
        width: 100%;
        touch-action: pan-x;
    }
    .featured-work-track {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        gap: 0.625rem;
        width: 100%;
        will-change: transform;
    }
    .featured-work-slide {
        flex: 0 0 85%;
        max-width: 85%;
        min-width: 0;
    }
    .featured-work-slide-card {
        border-radius: 0;
        overflow: hidden;
        background: #fff;
        transition:
            transform 0.32s cubic-bezier(0.34, 1.15, 0.45, 1),
            box-shadow 0.32s ease,
            opacity 0.28s ease;
        transform-origin: 50% 50%;
    }
    .featured-work-slide.is-active .featured-work-slide-card {
        opacity: 1;
    }
    .featured-work-slide:not(.is-active) .featured-work-slide-card {
        transform: rotate(0deg) scale(0.985);
        opacity: 0.88;
    }
    .featured-work-slide-visual {
        display: block;
        position: relative;
        aspect-ratio: 3 / 4;
        overflow: hidden;
        background: #b71c1c;
    }
    .featured-work-slide-visual img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .featured-work-slide-body {
        padding: 1rem 1.5rem 1.25rem;
        text-align: left;
    }
    .featured-work-slide-link {
        display: block;
        text-decoration: none;
        color: inherit;
    }
    .featured-work-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        margin-top: 1.5rem;
        padding: 0 1.5rem;
    }
    .featured-work-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        padding: 0;
        border: 1px solid var(--color-accessible-grey);
        background: transparent;
        cursor: pointer;
        flex-shrink: 0;
        transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    }
    .featured-work-dot.is-active {
        background: var(--color-soft-black);
        border-color: var(--color-soft-black);
        transform: scale(1.1);
    }
    .featured-work-dot:focus-visible {
        outline: 2px solid var(--color-soft-black);
        outline-offset: 2px;
    }
    @media (prefers-reduced-motion: reduce) {
        .featured-work-track {
            transition: none !important;
        }
        .featured-work-slide-card {
            transition: opacity 0.15s ease;
        }
        .featured-work-slide.is-active .featured-work-slide-card,
        .featured-work-slide:not(.is-active) .featured-work-slide-card {
            transform: none;
        }
    }
    .case-study-page-inner {
        padding: 1.5rem 1.5rem 4rem;
    }
    .case-study-gallery {
        padding: 2.5rem 1.5rem;
    }
    .case-study-hero,
    .case-study-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .case-study-hero-visual {
        max-width: min(100%, 28rem);
        margin-left: auto;
        margin-right: auto;
    }
}