/* Shared editorial foundation for SwiftRoot inner pages. */
:is(.content-page, .about-page, .privacy-page, .library-page) {
    --editorial-canvas: #ffffff;
    --editorial-panel: #ffffff;
    --editorial-sage: #e8f0e7;
    --editorial-ink: #17342b;
    --editorial-muted: #5c6e66;
    --editorial-line: rgba(36, 73, 57, 0.18);
    --editorial-line-soft: rgba(36, 73, 57, 0.1);
    --editorial-mint: #b8ddc3;
    --editorial-green: #296747;
    --editorial-gold: #80601f;
    --editorial-radius: 0.5rem;
    --home-canvas: var(--editorial-canvas);
    --home-paper: var(--editorial-panel);
    --home-ink: var(--editorial-ink);
    --home-muted: var(--editorial-muted);
    --home-line: var(--editorial-line);
    --home-line-soft: var(--editorial-line-soft);
    min-width: 0;
    color: var(--editorial-ink);
    background: var(--editorial-canvas);
    font-family: Manrope, "Avenir Next", Avenir, "Segoe UI", sans-serif;
    line-height: 1.65;
}

.dark:is(.content-page, .about-page, .privacy-page, .library-page) {
    --editorial-canvas: #0d171b;
    --editorial-panel: #111e21;
    --editorial-sage: #172726;
    --editorial-ink: #eef3ee;
    --editorial-muted: #aabbb9;
    --editorial-line: rgba(183, 218, 202, 0.19);
    --editorial-line-soft: rgba(183, 218, 202, 0.1);
    --editorial-mint: #b5d9c0;
    --editorial-green: #b5d9c0;
    --editorial-gold: #d9bf87;
}

:is(.about-page, .privacy-page, .library-page) {
    --home-canvas: var(--editorial-canvas);
    --home-paper: var(--editorial-panel);
    --home-ink: var(--editorial-ink);
    --home-muted: var(--editorial-muted);
    --home-line: var(--editorial-line);
    --home-line-soft: var(--editorial-line-soft);
    color: var(--editorial-ink);
    background: var(--editorial-canvas);
}

:is(.content-page, .about-page, .privacy-page, .library-page),
:is(.content-page, .about-page, .privacy-page, .library-page) :where(p, h1, h2, h3, h4, blockquote, cite) {
    font-family: Manrope, "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

.content-page .content-page-body,
.content-page :where(.articles-shell, .article-shell, .projects-shell, .case-shell) {
    color: var(--editorial-ink);
    background: var(--editorial-canvas) !important;
    font-family: Manrope, "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

.content-page :where(.articles-rail, .article-rail, .projects-rail, .case-rail),
.content-page :where(.articles-hero-grid, .article-hero-grid, .projects-hero-grid, .case-hero-grid) {
    display: none;
}

.content-page :where(.articles-hero-surface, .article-hero-surface, .projects-hero-surface, .case-hero-surface) {
    background: transparent;
}

.content-page main {
    overflow: clip;
    color: var(--editorial-ink);
}

.content-page main > section > .max-w-7xl,
.content-page main > section > [class*="max-w-7xl"] {
    width: 100%;
    max-width: 90rem;
    padding-inline: clamp(1.5rem, 5vw, 5rem);
}

.content-page main :where(h1, h2, h3, h4) {
    font-family: Manrope, "Avenir Next", Avenir, "Segoe UI", sans-serif;
    font-weight: 700 !important;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.content-page main h1 {
    max-width: 19ch;
    font-size: clamp(2.65rem, 5vw, 4.7rem) !important;
    line-height: 1.02;
}

.content-page main h2 {
    font-size: clamp(2rem, 3.6vw, 3.25rem) !important;
    line-height: 1.08;
}

.content-page main h3 {
    line-height: 1.2;
}

.content-page main :where(.text-emerald-700, .dark\:text-emerald-300),
.content-page main [class*="tracking-[0.1"] {
    color: var(--editorial-green) !important;
}

.content-page main :where(a, button, input, summary):focus-visible {
    outline: 2px solid var(--editorial-gold) !important;
    outline-offset: 4px !important;
}

.content-page main img {
    max-width: 100%;
}

.content-page main img[src="/img/sr-leaf.svg"] {
    display: inline-block;
    object-fit: contain;
    object-position: center;
    vertical-align: -0.08em !important;
}

/* Shared actions */
.content-page .hero-cta {
    min-height: 3.25rem;
    padding: 0.8rem 1.15rem !important;
    border: 1px solid var(--editorial-green) !important;
    border-radius: 0.375rem;
    font-size: 0.9rem !important;
    font-weight: 700;
    line-height: 1.4;
    box-shadow: none !important;
}

.content-page .hero-cta::before {
    display: none;
}

.content-page .hero-cta-primary {
    color: #fff !important;
    background: #296747 !important;
}

.dark.content-page .hero-cta-primary {
    color: #12271c !important;
    background: var(--editorial-mint) !important;
}

.content-page .hero-cta-secondary,
.dark.content-page .hero-cta-secondary {
    color: var(--editorial-green) !important;
    background: transparent !important;
}

.content-page .hero-cta:hover {
    transform: translateY(-1px);
}

/* Listing openings */
.content-page :where(.articles-shell, .case-shell) main > section:first-child {
    padding-block: clamp(4.5rem, 8vw, 7.5rem) clamp(3.5rem, 6vw, 6rem) !important;
}

.content-page :where(.articles-shell, .case-shell) main > section:first-child .relative.z-10 {
    padding: 0 !important;
}

.content-page :where(.articles-shell, .case-shell) main > section:first-child [class*="border"] {
    border-color: transparent !important;
}

.content-page :where(.articles-shell, .case-shell) main > section:first-child h1 + div,
.content-page .case-shell main > section:first-child h1 ~ div {
    margin-top: clamp(2rem, 4vw, 3.25rem);
}

.content-page :where(.articles-shell, .case-shell) main > section:first-child h1 + div p,
.content-page .case-shell main > section:first-child h1 ~ div p {
    max-width: 58ch;
    font-size: clamp(1.05rem, 1.5vw, 1.2rem) !important;
    line-height: 1.75 !important;
}

.content-page .articles-shell main > section:first-child .relative.z-10 > .grid {
    gap: clamp(2rem, 5vw, 5rem);
    border: 0 !important;
}

.content-page .articles-shell main > section:first-child .relative.z-10 > .grid > :first-child {
    padding: 0 !important;
    border: 0 !important;
}

.content-page .articles-shell main > section:first-child .relative.z-10 > .grid > .grid {
    align-content: start;
    border-top: 1px solid var(--editorial-line) !important;
}

.content-page .articles-shell main > section:first-child .relative.z-10 > .grid > .grid > article {
    padding: 1.25rem 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--editorial-line-soft) !important;
    background: transparent !important;
}

.content-page :where(.articles-shell, .case-shell) main > section:first-child .mt-8.flex:has(.hero-cta) {
    flex-flow: row wrap;
    max-width: none;
    gap: 0.75rem;
}

.content-page .content-summary-strip {
    border-block: 1px solid var(--editorial-line) !important;
    border-inline: 0 !important;
}

.content-page .content-summary-strip li {
    min-width: 0;
    padding: 1.2rem clamp(0.5rem, 2vw, 2rem) !important;
    border-color: var(--editorial-line-soft) !important;
    background: transparent !important;
}

.content-page .content-summary-strip li span:first-child {
    border: 0;
    color: var(--editorial-green) !important;
    background: transparent;
    font-size: 1rem;
}

/* Article library */
.content-page .articles-listing-hero,
.content-page .articles-listing-hero-frame {
    overflow: visible;
}

.content-page .articles-listing-hero h1 {
    line-height: 1.12;
    padding-block-end: 0.15em;
}

.content-page .articles-shell .article-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    padding-block: 1.5rem;
    border: 0 !important;
}

.content-page .articles-shell .article-list > .article-card {
    min-width: 0;
    padding: 1.5rem !important;
    border: 1px solid var(--editorial-line) !important;
    border-radius: var(--editorial-radius);
    background: var(--editorial-panel) !important;
    box-shadow: none !important;
}

.content-page .article-card::before,
.content-page .article-card-cursor {
    display: none;
}

.content-page .article-card:hover,
.content-page .article-card:focus-within {
    border-color: color-mix(in srgb, var(--editorial-green) 55%, transparent) !important;
    transform: translateY(-2px);
}

.content-page .article-card h3 {
    max-width: 24ch;
    margin-top: 1.25rem;
    color: var(--editorial-ink) !important;
    font-family: Manrope, "Avenir Next", Avenir, "Segoe UI", sans-serif;
    font-size: clamp(1.35rem, 1.8vw, 1.65rem) !important;
    font-weight: 700 !important;
    letter-spacing: -0.035em;
}

.content-page .article-card h3 + p {
    max-width: 56ch;
    font-size: 1rem;
    line-height: 1.65;
}

.content-page .article-card .h-9.w-9 {
    width: auto;
    height: auto;
    border: 0;
    color: var(--editorial-gold) !important;
    background: transparent !important;
    font-size: 0.75rem;
}

.content-page .article-card .border-t {
    border-color: var(--editorial-line-soft) !important;
}

.content-page .article-card ul {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.75rem !important;
}

.content-page .article-card li {
    gap: 0.6rem;
    padding: 0 !important;
    border: 0 !important;
    color: var(--editorial-muted) !important;
    line-height: 1.5;
}

.content-page .article-card li > span:first-child {
    margin-top: 0.55em !important;
}

.content-page .article-card .relative.z-10 > :last-child {
    margin-top: auto !important;
    color: var(--editorial-ink) !important;
}

.content-page .article-list + div {
    padding: 2rem 0 clamp(4rem, 7vw, 7rem) !important;
    border: 0 !important;
}

.content-page .article-list + div nav a,
.content-page .article-list + div nav span[class*="inline-flex"] {
    min-height: 2.75rem;
    border-color: var(--editorial-line) !important;
    color: var(--editorial-green) !important;
    background: transparent !important;
}

.content-page .article-list + div nav [aria-current="page"] {
    color: #fff !important;
    background: #296747 !important;
}

.dark.content-page .article-list + div nav [aria-current="page"] {
    color: #12271c !important;
    background: var(--editorial-mint) !important;
}

/* Article detail */
.content-page .article-shell main > section:first-child {
    padding-block: clamp(4.5rem, 8vw, 7rem) clamp(2.5rem, 5vw, 4.5rem);
}

.content-page .article-shell main > section > .max-w-7xl {
    max-width: 66rem;
}

.content-page .article-hero-layout {
    max-width: 56rem;
    border: 0;
}

.content-page .article-hero-layout > :first-child {
    padding: 0 0 clamp(2rem, 4vw, 3rem) !important;
}

.content-page .article-hero-layout h1 {
    max-width: 17ch;
}

.content-page .article-hero-layout .text-xl {
    max-width: 54ch;
    font-size: clamp(1.05rem, 1.6vw, 1.2rem) !important;
    line-height: 1.75 !important;
}

.content-page .article-hero-layout > :first-child > .mt-8.flex {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    gap: 0.75rem 1.5rem;
}

.content-page .article-hero-layout > :first-child .hero-cta {
    min-height: 2.75rem;
    padding: 0.5rem 0 !important;
    border: 0 !important;
    color: var(--editorial-green) !important;
    background: transparent !important;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.3em;
}

.content-page .article-hero-layout .hero-cta-arrow {
    display: none;
}

.content-page .article-hero-meta {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(7rem, 0.55fr) minmax(0, 1fr);
    border-block: 1px solid var(--editorial-line);
}

.content-page .article-hero-meta > article {
    padding: 1.25rem clamp(1rem, 3vw, 1.75rem);
    border: 0 !important;
    border-right: 1px solid var(--editorial-line-soft) !important;
    background: transparent !important;
}

.content-page .article-hero-meta > article:last-child {
    border-right: 0 !important;
}

.content-page .article-hero-meta > article :where(.text-lg, .text-2xl) {
    margin-top: 0.35rem;
    color: var(--editorial-ink) !important;
    font-size: 0.95rem !important;
    line-height: 1.55;
}

.content-page .article-reading-layout {
    display: block;
}

.content-page .article-reading-layout > :first-child {
    padding-block: clamp(3.5rem, 7vw, 6.5rem) !important;
    border: 0 !important;
}

.content-page .article-content {
    width: 100%;
    max-width: 46rem;
    margin-inline: auto;
    font-family: Manrope, "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

.content-page .article-content :where(h2, h3, h4) {
    font-family: inherit;
}

.content-page .article-content h2 {
    margin-top: 3.5rem;
    font-size: clamp(1.75rem, 3vw, 2.35rem) !important;
}

.content-page .article-content h3 {
    margin-top: 2.5rem;
    font-size: clamp(1.3rem, 2vw, 1.65rem) !important;
}

.content-page .article-content :where(p, li) {
    font-size: clamp(1.05rem, 1.5vw, 1.17rem);
    line-height: 1.85;
}

.content-page .article-content :where(p, ul, ol, table, pre, figure, details, blockquote) {
    margin-top: 1.5rem;
}

.content-page .article-content :where(ul, ol) {
    padding-left: 1.4rem;
}

.content-page .article-content li + li {
    margin-top: 0.6rem;
}

.content-page .article-content a {
    color: var(--editorial-green);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
}

.content-page .article-content blockquote {
    padding: 1.25rem 0 1.25rem 1.5rem;
    border-left: 3px solid var(--editorial-gold);
    background: transparent;
}

.content-page .article-content :where(table, pre) {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.content-page .article-content table {
    border-collapse: collapse;
}

.content-page .article-content :where(th, td) {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--editorial-line);
    text-align: left;
}

.content-page .article-content details {
    padding-block: 1rem;
    border-block: 1px solid var(--editorial-line);
}

.content-page .article-byline {
    width: min(100%, 46rem);
    margin-inline: auto;
    border-top: 1px solid var(--editorial-line);
}

.content-page .article-byline > section {
    padding: 1.5rem 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.content-page .article-byline > section:first-child {
    border-right: 1px solid var(--editorial-line-soft) !important;
    padding-right: 2rem !important;
}

.content-page .article-byline > section:last-child {
    padding-left: 2rem !important;
}

.content-page .article-byline span {
    border: 0;
    padding: 0;
    color: var(--editorial-muted) !important;
    background: transparent !important;
}

.content-page .article-closing-layout {
    display: block;
    max-width: 46rem;
    border-top: 1px solid var(--editorial-line);
}

.content-page .article-closing-layout > :first-child {
    padding: clamp(2.75rem, 5vw, 4rem) 0 !important;
    border: 0 !important;
}

.content-page .article-closing-layout > :first-child h2 {
    max-width: 22ch;
    font-size: clamp(1.8rem, 3vw, 2.45rem) !important;
}

.content-page .article-closing-layout > :first-child > p:nth-of-type(2) {
    display: block;
}

.content-page .article-closing-layout > :first-child .hero-cta-primary {
    min-height: 3.25rem;
    padding: 0.8rem 1.15rem !important;
    border: 1px solid var(--editorial-green) !important;
    color: #fff !important;
    background: #296747 !important;
    text-decoration: none;
}

.dark.content-page .article-closing-layout > :first-child .hero-cta-primary {
    color: #12271c !important;
    background: var(--editorial-mint) !important;
}

.content-page .article-closing-secondary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--editorial-line);
}

.content-page .article-closing-secondary > section {
    padding: 2rem 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.content-page .article-closing-secondary > section:first-child {
    border-right: 1px solid var(--editorial-line-soft) !important;
    padding-right: 2rem !important;
}

.content-page .article-closing-secondary > section:last-child {
    padding-left: 2rem !important;
}

.content-page .article-closing-secondary input {
    min-height: 2.9rem;
    border: 1px solid var(--editorial-line) !important;
    border-radius: 0.25rem;
    color: var(--editorial-ink) !important;
    background: var(--editorial-panel) !important;
}

.content-page .article-closing-secondary button {
    min-height: 2.9rem;
    border: 1px solid var(--editorial-green) !important;
    border-radius: 0.25rem;
    color: #fff !important;
    background: #296747 !important;
}

.dark.content-page .article-closing-secondary button {
    color: #12271c !important;
    background: var(--editorial-mint) !important;
}

.content-page .article-nav-card {
    padding: 1rem 0 !important;
    border: 0 !important;
    border-top: 1px solid var(--editorial-line-soft) !important;
    background: transparent !important;
}

/* Our Work */
.content-page .projects-container {
    width: 100%;
    max-width: 90rem;
    margin-inline: auto;
    padding-inline: clamp(1.5rem, 5vw, 5rem);
}

.content-page .projects-intro {
    padding-block: clamp(3rem, 5vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem);
    border-bottom: 1px solid var(--editorial-line);
}

.content-page .projects-intro h1 {
    max-width: none;
    font-size: clamp(2.5rem, 4.7vw, 4.25rem) !important;
    line-height: 1.12;
}

.content-page .projects-intro p {
    max-width: 42rem;
    margin-top: 1rem;
    color: var(--editorial-muted);
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    line-height: 1.75;
}

.content-page .projects-list {
    padding-block: 0;
}

.content-page .project-work-card {
    padding-block: clamp(3rem, 5vw, 5rem);
    border: 0 !important;
    border-top: 1px solid var(--editorial-line) !important;
    background: transparent !important;
    box-shadow: none !important;
}

.content-page .projects-list .project-work-card:first-child {
    padding-top: 2rem;
}

.content-page .project-card-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.content-page .project-card-layout > div,
.content-page .project-media,
.content-page .project-detail {
    display: contents;
}

.content-page .project-media > :first-child {
    grid-row: 1;
    padding: 0 0 1.25rem !important;
    border: 0 !important;
}

.content-page .project-copy {
    grid-row: 2;
    max-width: 60rem;
    padding: 0 0 clamp(2.5rem, 5vw, 4rem) !important;
    border: 0 !important;
}

.content-page .project-copy h2 {
    max-width: 24ch;
    font-size: clamp(2rem, 3.5vw, 3.25rem) !important;
    line-height: 1.2;
}

.content-page .project-copy > p:not(:first-child) {
    max-width: 62ch;
}

.content-page .project-copy > ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 2.25rem;
    border: 0 !important;
    border-top: 1px solid var(--editorial-line) !important;
}

.content-page .project-copy > ul > li {
    padding: 1rem 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--editorial-line-soft) !important;
}

.content-page .project-copy > ul > li:nth-child(odd) {
    padding-right: clamp(1rem, 3vw, 2.5rem) !important;
}

.content-page .project-copy > ul > li:nth-child(even) {
    padding-left: clamp(1rem, 3vw, 2.5rem) !important;
    border-left: 1px solid var(--editorial-line-soft) !important;
}

.content-page .project-media > :last-child {
    grid-row: 3;
    overflow: hidden;
    border: 0 !important;
    border-radius: var(--editorial-radius);
    background: var(--editorial-panel) !important;
}

.content-page .project-media > :last-child > .flex {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    background: transparent;
}

.content-page .project-media > :last-child > .flex > * {
    min-width: 0;
    border: 0 !important;
    background: var(--editorial-panel) !important;
}

.content-page .project-media img {
    width: 100%;
    height: auto;
    max-height: 44rem;
    object-fit: contain;
}

.content-page .project-facts {
    grid-row: 4;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    margin-top: 2rem;
    border-top: 1px solid var(--editorial-line);
}

.content-page .project-facts > * {
    min-width: 0;
    padding: 1.5rem clamp(0.75rem, 2vw, 1.5rem) !important;
    border: 0 !important;
    border-right: 1px solid var(--editorial-line-soft) !important;
    background: transparent !important;
}

.content-page .project-facts > :last-child {
    border-right: 0 !important;
}

/* Case studies */
.content-page .case-shell main > section:not(:first-child) {
    padding-block: clamp(3.5rem, 7vw, 6rem);
}

.content-page .case-shell main > section + section {
    border-top: 1px solid var(--editorial-line) !important;
}

.content-page .case-shell main > section > div > div > .grid {
    gap: clamp(2rem, 5vw, 5rem);
}

.content-page .case-shell main > section > div > div > .grid > div {
    padding: 0 !important;
    border: 0 !important;
}

.content-page .case-shell main > section:first-child .max-w-6xl > .mt-8.grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
    gap: clamp(2rem, 5vw, 5rem);
    border: 0 !important;
    background: transparent !important;
}

.content-page .case-shell main > section:first-child .max-w-6xl > .mt-8.grid > :first-child {
    padding: 0 !important;
    border: 0 !important;
}

.content-page .case-shell main > section:first-child .max-w-6xl > .mt-8.grid > :last-child {
    background: var(--editorial-panel) !important;
}

.content-page .case-shell main > section:first-child .case-tile-grid {
    padding: 1.25rem !important;
    border-color: var(--editorial-line-soft) !important;
    background: transparent !important;
}

.content-page .case-shell main > section:first-child .max-w-6xl > .mt-0 {
    margin-top: clamp(3rem, 6vw, 5rem);
    overflow: visible;
    border: 0 !important;
}

.content-page .case-shell main > section:first-child .max-w-6xl > .mt-0 > .grid {
    gap: clamp(2rem, 5vw, 4rem);
}

.content-page .case-shell main > section:first-child .max-w-6xl > .mt-0 img,
.content-page .case-shell main > section:not(:first-child) img:not([src="/img/sr-leaf.svg"]) {
    border-radius: var(--editorial-radius);
}

.content-page .case-shell .case-media-frame {
    border-radius: var(--editorial-radius);
    background: linear-gradient(180deg, transparent 65%, rgba(13, 23, 27, 0.22));
}

.content-page .case-shell .case-card {
    padding: clamp(1.25rem, 3vw, 2rem) 0 !important;
    border: 0 !important;
    border-top: 1px solid var(--editorial-line-soft) !important;
    background: transparent !important;
    box-shadow: none !important;
}

.content-page .case-shell .case-card:nth-child(even) {
    padding-left: clamp(1rem, 3vw, 2.5rem) !important;
}

.content-page .case-shell .case-card:nth-child(odd) {
    padding-right: clamp(1rem, 3vw, 2.5rem) !important;
}

.content-page .case-shell main > section:not(:first-child) article:not(.case-card) {
    padding: 1.25rem 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--editorial-line-soft) !important;
    background: transparent !important;
}

.content-page .case-shell blockquote {
    color: var(--editorial-ink) !important;
    font-size: clamp(1.5rem, 3vw, 2.25rem) !important;
    line-height: 1.5 !important;
    letter-spacing: -0.025em;
}

@media (max-width: 79.99rem) {
    .content-page .articles-shell .article-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .content-page .case-shell main > section:first-child .max-w-6xl > .mt-8.grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 47.99rem) {
    .content-page .articles-shell .article-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .content-page .case-shell main > section:first-child .max-w-6xl > .mt-8.grid > :last-child {
        grid-template-columns: minmax(0, 1fr);
    }

    .content-page .case-shell main > section:first-child .case-tile-grid {
        border-right: 0 !important;
        border-bottom: 1px solid var(--editorial-line-soft) !important;
    }

    .content-page .case-shell main > section:first-child .case-tile-grid:last-child {
        border-bottom: 0 !important;
    }

    .content-page .case-shell main > section > div > div > .grid {
        gap: 2.5rem;
    }
}

@media (max-width: 39.99rem) {
    .content-page main > section > .max-w-7xl,
    .content-page main > section > [class*="max-w-7xl"] {
        padding-inline: 1.25rem;
    }

    .content-page main h1 {
        font-size: clamp(2.35rem, 12vw, 3.1rem) !important;
        letter-spacing: -0.055em;
    }

    .content-page :where(.articles-shell, .projects-shell, .case-shell) main > section:first-child {
        padding-block: 3.75rem 3rem !important;
    }

    .content-page .content-summary-strip,
    .content-page .project-copy > ul,
    .content-page .project-media > :last-child > .flex,
    .content-page .project-facts,
    .content-page .article-closing-secondary {
        grid-template-columns: minmax(0, 1fr);
    }

    .content-page .content-summary-strip li {
        border-left: 0 !important;
        border-bottom: 1px solid var(--editorial-line-soft) !important;
    }

    .content-page .content-summary-strip li:last-child {
        border-bottom: 0 !important;
    }

    .content-page .article-hero-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .content-page .article-hero-meta > article:first-child {
        grid-column: 1 / -1;
        border-right: 0 !important;
        border-bottom: 1px solid var(--editorial-line-soft) !important;
    }

    .content-page .article-hero-meta > article:nth-child(2) {
        padding-left: 0;
    }

    .content-page .article-hero-meta > article:last-child {
        padding-right: 0;
    }

    .content-page .article-byline,
    .content-page .article-closing-layout {
        width: 100%;
    }

    .content-page .article-byline > section:first-child,
    .content-page .article-closing-secondary > section:first-child {
        padding-right: 0 !important;
        border-right: 0 !important;
        border-bottom: 1px solid var(--editorial-line-soft) !important;
    }

    .content-page .article-byline > section:last-child,
    .content-page .article-closing-secondary > section:last-child {
        padding-left: 0 !important;
    }

    .content-page .project-copy > ul > li:nth-child(n),
    .content-page .project-facts > * {
        padding-inline: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
        border-bottom: 1px solid var(--editorial-line-soft) !important;
    }

    .content-page .case-shell .case-card:nth-child(n) {
        padding-inline: 0 !important;
    }

    .content-page .articles-shell .article-list {
        gap: 1rem;
        padding-block: 1rem;
    }

    .content-page .articles-shell .article-list > .article-card {
        padding: 1.25rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .content-page :where(.hero-cta, .article-card, .project-work-card, .case-card) {
        transition: none !important;
        transform: none !important;
    }
}
