/*
 * Case Study Style 2 visual rules — front end.
 * The editor counterpart lives in case-study-style-2-editor.css and mirrors
 * these layout, typography, and responsive rules for the Gutenberg canvas.
 * Keep the two context-specific sheets in sync when changing shared design.
 * Portfolio semantic color tokens come from patterns.css.
 */
.post-content .portfolio-case-study-style-2 {
    --portfolio-case-study-style-2-page: var(--bg-dynamic-secondary);
    --portfolio-case-study-style-2-card: var(--bg-dynamic-primary);
    --portfolio-case-study-style-2-text: var(--text-color-primary);
    --portfolio-case-study-style-2-muted: var(--text-color-secondary);
    --portfolio-case-study-style-2-border: var(--border-accordion);
    --portfolio-case-study-style-2-accent: var(--bg-dynamic-cta-cyan);
    --portfolio-case-study-style-2-ease: cubic-bezier(0.66, 0, 0.2, 1);
    --portfolio-case-study-style-2-content-width: 980px;
    --portfolio-case-study-style-2-gutter: 25px;
    --portfolio-case-study-style-2-inset: 62px;
    --portfolio-case-study-style-2-card-copy-max-width: 30em;
    --portfolio-case-study-style-2-modal-copy-max-width: min(735px, var(--max-width-post-text-wide, var(--max-width-post-content-wide, 960px)));
    --portfolio-case-study-style-2-section-space-after: 140px;
    --portfolio-case-study-style-2-card-header-offset: calc(var(--portfolio-case-study-style-2-inset) + 54.4px);
    box-sizing: border-box;
    display: flow-root;
    width: 100%;
    max-width: none;
    margin: 0;
    background-color: var(--portfolio-case-study-style-2-page);
    color: var(--portfolio-case-study-style-2-text) !important;
    color-scheme: light dark;

    font-size: 19px;
    letter-spacing: .012em;
    font-synthesis: none;
    overflow-wrap: normal;
}

.post-content:not(.cwp-modal__body) > .portfolio-case-study-style-2 {
    max-width: 100vw !important;
}

.post-content .portfolio-case-study-style-2 * {
    box-sizing: border-box;
}

.post-content .portfolio-case-study-style-2 :is(h1, h2, h3, p) { color: inherit; }

.post-content .portfolio-case-study-style-2 > .wp-block-group__inner-container,
.post-content .portfolio-case-study-style-2 > .wp-block-cover__inner-container { width: 100%; }

.post-content .portfolio-case-study-style-2 > :where(*) { max-width: none; }

/* Reading column widths: 980px desktop, 692px tablet, 87.5%/400px mobile. */
.portfolio-case-study-style-2 :where(.portfolio-case-study-style-2-project-name, .portfolio-case-study-style-2-hero-title,
    .portfolio-case-study-style-2-intro-copy, .portfolio-case-study-style-2-section-title, .portfolio-case-study-style-2-results,
    .portfolio-case-study-style-2-quote-grid, .portfolio-case-study-style-2-capabilities-grid) {
    width: var(--portfolio-case-study-style-2-content-width);
    max-width: calc(100% - 2 * var(--portfolio-case-study-style-2-gutter)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Hero */
.post-content .portfolio-case-study-style-2-hero { padding: 100px 0 0; text-align: center; }
.post-content .portfolio-case-study-style-2-project-name { margin-bottom: 80px !important; font-family: var(--display-font); font-size: 32px; font-weight: 600; letter-spacing: -.016em; }
.post-content .portfolio-case-study-style-2-hero-title { font-family: var(--display-font); font-size: 80px; font-weight: 600; letter-spacing: -.015em; }

.post-content .portfolio-case-study-style-2-hero-media { padding: 85px 0 0; }
.post-content .portfolio-case-study-style-2-hero-image { max-width: 1300px !important; }
.post-content .portfolio-case-study-style-2-hero-image img { display: block; width: 100%; }

/* Intro and at-a-glance */
.post-content .portfolio-case-study-style-2-intro { text-align: center; }
.post-content .portfolio-case-study-style-2-glance { text-align: center; }
.post-content .portfolio-case-study-style-2-eyebrow { margin: 0 0 1.1em !important; font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.post-content .portfolio-case-study-style-2-glance-grid { width: var(--portfolio-case-study-style-2-content-width); max-width: calc(100% - 2 * var(--portfolio-case-study-style-2-gutter)) !important; margin: 0 auto; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-content .portfolio-case-study-style-2-stat-value { margin: 0 !important; font-size: 80px; letter-spacing: -.015em; font-weight: 600; }
.post-content .portfolio-case-study-style-2-stat-caption { margin: 14px auto 0 !important; font-size: 14px; color: var(--portfolio-case-study-style-2-muted) !important; }

/* Constrained section heading above the full-width card grid. */
.post-content .portfolio-case-study-style-2-card-section { padding-inline: var(--portfolio-case-study-style-2-gutter) !important; }
.post-content .portfolio-case-study-style-2-section-title { margin-bottom: 90px !important; font-family: var(--display-font); font-size: 48px; letter-spacing: -.003em; font-weight: 600; text-align: left; }
.post-content .portfolio-case-study-style-2-card-grid { display: grid !important; width: min(1440px, 100%); max-width: 100% !important; margin: 0 auto; gap: var(--grid-gap); align-items: stretch; }
.post-content .portfolio-case-study-style-2-card {
    --portfolio-case-study-style-2-card-foreground-primary: var(--portfolio-case-study-style-2-text);
    --portfolio-case-study-style-2-card-foreground-secondary: var(--portfolio-case-study-style-2-muted);
    --portfolio-case-study-style-2-toggle-surface: var(--bg-dynamic-primary-reversed);
    --portfolio-case-study-style-2-toggle-mark: var(--portfolio-case-study-style-2-card);
    position: relative;
    min-width: 0;
    min-height: 740px;
    background: var(--portfolio-case-study-style-2-card);
    color: var(--portfolio-case-study-style-2-text);
    border-radius: 0;
    overflow: visible;
}

/* These fixed foreground choices keep their contrast across color schemes. */
.portfolio-case-study-style-2-card.is-style-portfolio-foreground-dark {
    --portfolio-case-study-style-2-card-foreground-primary: var(--gray-100);
    --portfolio-case-study-style-2-card-foreground-secondary: var(--gray-70);
    --portfolio-case-study-style-2-toggle-surface: var(--gray-100);
    --portfolio-case-study-style-2-toggle-mark: var(--white);
}
.portfolio-case-study-style-2-card.is-style-portfolio-foreground-light {
    --portfolio-case-study-style-2-card-foreground-primary: var(--gray-10);
    --portfolio-case-study-style-2-card-foreground-secondary: var(--gray-30);
    --portfolio-case-study-style-2-toggle-surface: var(--gray-10);
    --portfolio-case-study-style-2-toggle-mark: var(--gray-100);
}
.portfolio-case-study-style-2-card:is(.is-style-portfolio-foreground-dark, .is-style-portfolio-foreground-light) .portfolio-case-study-style-2-card-front {
    color: var(--portfolio-case-study-style-2-card-foreground-primary) !important;
}
.portfolio-case-study-style-2-card:is(.is-style-portfolio-foreground-dark, .is-style-portfolio-foreground-light) .portfolio-case-study-style-2-card-front :is(h1, h2, h3, h4, h5, h6) {
    color: var(--portfolio-case-study-style-2-card-foreground-primary) !important;
}
.portfolio-case-study-style-2-card:is(.is-style-portfolio-foreground-dark, .is-style-portfolio-foreground-light) .portfolio-case-study-style-2-card-eyebrow {
    color: var(--portfolio-case-study-style-2-card-foreground-secondary) !important;
}
.portfolio-case-study-style-2-card:is(.is-style-portfolio-foreground-dark, .is-style-portfolio-foreground-light) .portfolio-case-study-style-2-card-front p {
    color: var(--portfolio-case-study-style-2-card-foreground-secondary) !important;
}
/* Foreground styles describe the front face. The open back and its close
   control return to the normal card palette and dynamic theme contrast. */
.portfolio-case-study-style-2-card.is-open:is(.is-style-portfolio-foreground-dark, .is-style-portfolio-foreground-light) {
    --portfolio-case-study-style-2-toggle-surface: var(--bg-dynamic-primary-reversed);
    --portfolio-case-study-style-2-toggle-mark: var(--portfolio-case-study-style-2-card);
}
.portfolio-case-study-style-2-card.is-open:is(.is-style-portfolio-foreground-dark, .is-style-portfolio-foreground-light) .portfolio-case-study-style-2-card-eyebrow {
    color: var(--portfolio-case-study-style-2-muted) !important;
}
.post-content .portfolio-case-study-style-2-card.portfolio-case-study-style-2-js { height: 740px; overflow: hidden; }
.post-content .portfolio-case-study-style-2-card.portfolio-case-study-style-2-js:not(.is-open),
.post-content .portfolio-case-study-style-2-card.portfolio-case-study-style-2-js:not(.is-open) * { cursor: pointer; }
.post-content .portfolio-case-study-style-2-card.portfolio-case-study-style-2-js > .portfolio-case-study-style-2-card-scroll { width: 100%; max-width: none !important; height: 100%; margin: 0 !important; overflow: hidden; box-sizing: border-box; }
.post-content .portfolio-case-study-style-2-card.portfolio-case-study-style-2-js .portfolio-case-study-style-2-card-front[hidden],
.post-content .portfolio-case-study-style-2-card.portfolio-case-study-style-2-js .portfolio-case-study-style-2-card-back[hidden] { display: none !important; }
.post-content .portfolio-case-study-style-2-card--modal > .portfolio-case-study-style-2-card-back { display: none !important; }
.post-content .portfolio-case-study-style-2-card-front { position: relative; width: 100%; max-width: none !important; margin: 0 !important; height: 740px; padding: var(--portfolio-case-study-style-2-card-header-offset) var(--portfolio-case-study-style-2-inset) var(--portfolio-case-study-style-2-inset); overflow: hidden; }
.post-content .portfolio-case-study-style-2-card.portfolio-case-study-style-2-js .portfolio-case-study-style-2-card-front { height: 100%; }
.post-content .portfolio-case-study-style-2-card-front img { pointer-events: none; }
.post-content .portfolio-case-study-style-2-card-front.wp-block-cover { display: block; width: 100%; max-width: none; margin-inline: 0 !important; }
.post-content .portfolio-case-study-style-2-card--cover > .portfolio-case-study-style-2-card-front.wp-block-cover,
.post-content .portfolio-case-study-style-2-card--cover.portfolio-case-study-style-2-js > .portfolio-case-study-style-2-card-scroll { width: 100%; max-width: none; }
.post-content .portfolio-case-study-style-2-card-front.wp-block-cover > .wp-block-cover__image-background { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.post-content .portfolio-case-study-style-2-card-front.wp-block-cover > .wp-block-cover__background { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; pointer-events: none; }
.post-content .portfolio-case-study-style-2-card-front.wp-block-cover > .wp-block-cover__inner-container { position: relative; z-index: 2; width: 100%; max-width: none; height: 100%; margin: 0; }
.post-content .portfolio-case-study-style-2-card-front > .wp-block-cover { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
.post-content .portfolio-case-study-style-2-card-cover { background-color: var(--portfolio-case-study-style-2-card); }
.post-content .portfolio-case-study-style-2-card-front > :not(.wp-block-cover) { position: relative; z-index: 1; }
.post-content .portfolio-case-study-style-2-card-eyebrow { margin: 0 !important; color: var(--portfolio-case-study-style-2-muted) !important; font-weight: 600; }
.post-content .portfolio-case-study-style-2-card-title { margin: 0 !important; font-family: var(--display-font); font-size: 40px; letter-spacing: 0; font-weight: 600; text-align: left; }
.post-content .portfolio-case-study-style-2-card-art { position: absolute !important; left: var(--portfolio-case-study-style-2-inset); bottom: 90px; width: calc(100% - 2 * var(--portfolio-case-study-style-2-inset)); max-width: calc(100% - 2 * var(--portfolio-case-study-style-2-inset)); }
.post-content .portfolio-case-study-style-2-card-art :is(img, svg) { display: block; max-width: 100%; height: auto; object-fit: contain; }
.post-content .portfolio-case-study-style-2-card-art .wp-block-chiawei-blog-inline-svg { display: block; width: 100%; height: 100%; }
.post-content .portfolio-case-study-style-2-card--symbol .portfolio-case-study-style-2-card-front { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.post-content .portfolio-case-study-style-2-card--symbol .portfolio-case-study-style-2-card-eyebrow { position: absolute !important; top: var(--portfolio-case-study-style-2-inset); left: var(--portfolio-case-study-style-2-inset); }
.post-content .portfolio-case-study-style-2-card--symbol .portfolio-case-study-style-2-card-art { position: static !important; flex: 0 0 100px; width: 100px; height: 100px; margin: 0 0 12px !important; }
.post-content .portfolio-case-study-style-2-card--symbol .portfolio-case-study-style-2-card-art :is(svg, img) { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: contain; }
.post-content .portfolio-case-study-style-2-card-back p { margin: 0 !important; font-size: 19px; letter-spacing: .012em; }
.post-content .portfolio-case-study-style-2-card-back p + p { margin-top: 1em !important; }
.post-content .portfolio-case-study-style-2-card.portfolio-case-study-style-2-js .portfolio-case-study-style-2-card-back { display: none; }
.post-content .portfolio-case-study-style-2-card.portfolio-case-study-style-2-js.is-open .portfolio-case-study-style-2-card-scroll { overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; }
.post-content .portfolio-case-study-style-2-card.portfolio-case-study-style-2-js.is-open .portfolio-case-study-style-2-card-scroll > .portfolio-case-study-style-2-card-eyebrow { position: relative !important; top: auto !important; right: auto !important; bottom: auto !important; left: auto !important; width: auto; margin: var(--portfolio-case-study-style-2-inset) var(--portfolio-case-study-style-2-inset) 0 !important; }
.post-content .portfolio-case-study-style-2-card.portfolio-case-study-style-2-js.is-open .portfolio-case-study-style-2-card-back { padding-top: 1.1em !important; }
.post-content .portfolio-case-study-style-2-card.portfolio-case-study-style-2-js.is-open .portfolio-case-study-style-2-card-back { display: block; }
.post-content .portfolio-case-study-style-2-card-front[hidden],
.post-content .portfolio-case-study-style-2-card-back[hidden] { display: none !important; }
.post-content .portfolio-case-study-style-2-card:not(:has(> .portfolio-case-study-style-2-card-eyebrow)) > .portfolio-case-study-style-2-card-front,
.post-content .portfolio-case-study-style-2-card-scroll:not(:has(> .portfolio-case-study-style-2-card-eyebrow)) > .portfolio-case-study-style-2-card-front {
    padding-top: var(--portfolio-case-study-style-2-inset) !important;
}
.post-content .portfolio-case-study-style-2-card-toggle { position: absolute; z-index: 3; right: 24px; bottom: 24px; display: grid; place-items: center; width: 48px; height: 48px; min-width: 48px; min-height: 48px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; transform: rotate(0deg); transition: transform .32s var(--portfolio-case-study-style-2-ease), background-color 160ms ease; }
.post-content .portfolio-case-study-style-2-card-toggle-icon { display: block; flex: none; width: 40px; height: 40px; overflow: visible; }
.post-content .portfolio-case-study-style-2-card-toggle-surface { fill: var(--portfolio-case-study-style-2-toggle-surface); transition: fill 160ms ease; }
.post-content .portfolio-case-study-style-2-card-toggle-mark { fill: var(--portfolio-case-study-style-2-toggle-mark); transition: fill 160ms ease; }

/* Use the CTA surface on front-face hover; on the back, only the close
   control changes. The focus state provides the same cue to keyboard users. */
@media (hover: hover) and (pointer: fine) {
    .post-content .portfolio-case-study-style-2-card:not(.is-open):hover {
        --portfolio-case-study-style-2-toggle-surface: var(--portfolio-case-study-style-2-accent);
    }
    .post-content .portfolio-case-study-style-2-card.is-open > .portfolio-case-study-style-2-card-toggle:hover {
        --portfolio-case-study-style-2-toggle-surface: var(--portfolio-case-study-style-2-accent);
    }
}
.post-content .portfolio-case-study-style-2-card:not(.is-open) > .portfolio-case-study-style-2-card-toggle:focus-visible,
.post-content .portfolio-case-study-style-2-card.is-open > .portfolio-case-study-style-2-card-toggle:focus-visible {
    --portfolio-case-study-style-2-toggle-surface: var(--portfolio-case-study-style-2-accent);
}

/* Keep the card category in a stable header while the front/back face changes. */
.post-content .portfolio-case-study-style-2-card-scroll > .portfolio-case-study-style-2-card-eyebrow,
.post-content .portfolio-case-study-style-2-card > .portfolio-case-study-style-2-card-eyebrow {
    position: absolute !important;
    top: var(--portfolio-case-study-style-2-inset) !important;
    right: auto !important;
    bottom: auto !important;
    left: var(--portfolio-case-study-style-2-inset) !important;
    z-index: 2;
    width: calc(100% - 2 * var(--portfolio-case-study-style-2-inset));
    max-width: none !important;
    margin: 0 !important;
}

.post-content .portfolio-case-study-style-2-card-back {
    padding: var(--portfolio-case-study-style-2-card-header-offset)
        var(--portfolio-case-study-style-2-inset) 108px !important;
}

@media (min-width: 735px) and (max-width: 1068px) {
    .post-content .portfolio-case-study-style-2 {
        --portfolio-case-study-style-2-card-header-offset: calc(var(--portfolio-case-study-style-2-inset) + 51.1px);
    }
}

@media (max-width: 734px) {
    .post-content .portfolio-case-study-style-2 {
        --portfolio-case-study-style-2-card-header-offset: calc(var(--portfolio-case-study-style-2-inset) + 48.1px);
    }
}
.post-content .portfolio-case-study-style-2-card.is-open .portfolio-case-study-style-2-card-toggle { transform: rotate(45deg); }
.post-content .portfolio-case-study-style-2-card-fade { position: absolute; z-index: 2; right: 14px; bottom: 0; left: 0; height: 110px; pointer-events: none; opacity: var(--portfolio-case-study-style-2-card-fade-opacity, 0); transition: opacity .16s; background: linear-gradient(to bottom, transparent 0%, color-mix(in srgb, var(--portfolio-case-study-style-2-card) 12%, transparent) 25%, color-mix(in srgb, var(--portfolio-case-study-style-2-card) 40%, transparent) 52%, color-mix(in srgb, var(--portfolio-case-study-style-2-card) 85%, transparent) 82%, var(--portfolio-case-study-style-2-card) 100%); }
.post-content .portfolio-case-study-style-2-card-toggle:focus-visible { outline: 3px solid var(--portfolio-case-study-style-2-accent); outline-offset: 0px; }

@media (max-width: 1068px) {
    .post-content .portfolio-case-study-style-2-card--symbol .portfolio-case-study-style-2-card-art { flex-basis: 70px; width: 70px; height: 70px; margin-bottom: 8px !important; }
}
@media (max-width: 734px) {
    .post-content .portfolio-case-study-style-2-card-toggle { right: 16px; bottom: 16px; }
}

/* Four capabilities: the Site keeps each symbol in a left column, top-aligned. */
.post-content .portfolio-case-study-style-2-capabilities { padding-bottom: 100px; background: var(--portfolio-case-study-style-2-card); }
.post-content .portfolio-case-study-style-2-capabilities-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
.post-content .portfolio-case-study-style-2-capability { display: grid !important; grid-template-columns: minmax(0, 1fr); align-content: start; align-items: start; }
.post-content .portfolio-case-study-style-2-capability-icon { width: max-content; margin: 0 !important; justify-self: start; align-self: start; }
.post-content .portfolio-case-study-style-2-capability-icon :is(svg, img) { display: block; width: auto; height: 54px; }
.post-content .portfolio-case-study-style-2-capability p { margin: 0 !important; color: var(--portfolio-case-study-style-2-muted) !important; }

/* Results and quote */
.post-content .portfolio-case-study-style-2-results-grid { width: 100%; margin: 48px auto 0 !important; }
.post-content .portfolio-case-study-style-2-results-grid p { margin: 0 !important; }

/* Modal cards keep their Back as ordinary editable blocks. The shared
   Portfolio modal controller clones that content into its accessible dialog. */
.post-content .portfolio-case-study-style-2-card--modal.portfolio-case-study-style-2-js {
    height: 740px;
    min-height: 740px;
    overflow: hidden;
}
.post-content .portfolio-case-study-style-2-card--modal.portfolio-case-study-style-2-js .portfolio-case-study-style-2-card-front { height: 100%; }
.cwp-modal.portfolio-case-study-style-2-modal .cwp-modal__close {
	width: 48px;
	height: 48px;
	min-width: 48px;
	min-height: 48px;
    border-radius: 0;
    background-color: transparent;
}
.cwp-modal.portfolio-case-study-style-2-modal .cwp-modal__close:hover,
.cwp-modal.portfolio-case-study-style-2-modal .cwp-modal__close:active,
.cwp-modal.portfolio-case-study-style-2-modal .cwp-modal__close:focus-visible {
    background-color: transparent;
}
.cwp-modal.portfolio-case-study-style-2-modal .cwp-modal__close { color: var(--cwp-modal-surface) !important; }
.cwp-modal.portfolio-case-study-style-2-modal .cwp-modal__close .cwp-modal__icon { width: 40px; height: 40px; }
.cwp-modal.portfolio-case-study-style-2-modal .cwp-modal__close .cwp-modal__icon svg { display: block; width: 40px; height: 40px; }
.cwp-modal.portfolio-case-study-style-2-modal .cwp-modal__close .cwp-modal__style2-close-surface { fill: var(--portfolio-case-study-style-2-modal-close-control-fill); transition: fill 160ms ease; }
.cwp-modal.portfolio-case-study-style-2-modal .cwp-modal__close:is(:hover, :active) .cwp-modal__style2-close-surface { fill: var(--portfolio-case-study-style-2-accent); }
.cwp-modal.portfolio-case-study-style-2-modal .cwp-modal__close .cwp-modal__style2-close-mark { fill: var(--cwp-modal-surface); }
.cwp-modal.portfolio-case-study-style-2-modal .cwp-modal__close:focus-visible { border-radius: 50%; outline: 3px solid var(--portfolio-case-study-style-2-accent); outline-offset: 0px; }
.cwp-modal.portfolio-case-study-style-2-modal.is-open { --cwp-modal-surface: var(--bg-dynamic-primary); }
.cwp-modal.portfolio-case-study-style-2-modal {
    --portfolio-case-study-style-2-text: var(--text-color-primary);
    --portfolio-case-study-style-2-muted: var(--text-color-secondary);
    --portfolio-case-study-style-2-accent: var(--bg-dynamic-cta-cyan);
    --portfolio-case-study-style-2-card: var(--bg-dynamic-primary);
    --portfolio-case-study-style-2-modal-close-control-fill: var(--gray-50);
    --portfolio-case-study-style-2-modal-copy-max-width: min(735px, var(--max-width-post-text-wide, var(--max-width-post-content-wide, 960px)));
    --portfolio-case-study-style-2-modal-eyebrow-size: var(--font-size-20);
    --portfolio-case-study-style-2-modal-title-size: var(--font-size-48);
    --portfolio-case-study-style-2-modal-section-title-size: var(--font-size-48);
    --portfolio-case-study-style-2-modal-feature-title-size: var(--font-size-32);
    --portfolio-case-study-style-2-modal-copy-size: var(--font-size-18);
    --portfolio-case-study-style-2-modal-principle-size: var(--font-size-20);
    --portfolio-case-study-style-2-modal-display-leading-en: 1;
    --portfolio-case-study-style-2-modal-display-leading-zh: 1.15;
    --portfolio-case-study-style-2-modal-copy-leading-en: var(--line-height-paragraph-en-m);
    --portfolio-case-study-style-2-modal-copy-leading-zh: var(--line-height-paragraph-zh-m);
    --cwp-modal-backdrop: color-mix(in srgb, var(--black) 48%, transparent);
    --cwp-modal-backdrop-blur: 12px;
    opacity: 1;
    transition: visibility 0s linear 280ms;
}
.cwp-modal.portfolio-case-study-style-2-modal.is-open { opacity: 1; transition: visibility 0s; }
.cwp-modal.portfolio-case-study-style-2-modal .cwp-modal__dialog { opacity: 0; transition: opacity 380ms ease; }
.cwp-modal.portfolio-case-study-style-2-modal.is-open .cwp-modal__dialog { opacity: 1; }
.cwp-modal.portfolio-case-study-style-2-modal.is-open.is-closing { opacity: 1; pointer-events: none; }
.cwp-modal.portfolio-case-study-style-2-modal.is-open.is-closing .cwp-modal__dialog { opacity: 0; }
.cwp-modal.portfolio-case-study-style-2-modal.is-open.is-closing::before { opacity: 0; }
.cwp-modal.portfolio-case-study-style-2-modal[data-size="wide"] .cwp-modal__dialog { max-width: min(1024px, calc(100vw - 48px)); }
.cwp-modal.portfolio-case-study-style-2-modal .cwp-modal__dialog { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; border-radius: 20px; }
/* Overlay the sticky chrome and first content row without shifting the body. */
.cwp-modal.portfolio-case-study-style-2-modal .cwp-modal__header,
.cwp-modal.portfolio-case-study-style-2-modal .cwp-modal__body { grid-column: 1; grid-row: 1; }
.cwp-modal.portfolio-case-study-style-2-modal .cwp-modal__header { align-self: start; justify-content: flex-end; min-height: 0; padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); overflow: visible; }
.cwp-modal.portfolio-case-study-style-2-modal:has(.cwp-modal__title[hidden]) .cwp-modal__title-slot { display: none; }
.cwp-modal.portfolio-case-study-style-2-modal .cwp-modal__actions { align-self: flex-start; margin-left: auto; }
.cwp-modal.portfolio-case-study-style-2-modal .cwp-modal__close { margin: 0; }
.cwp-modal.portfolio-case-study-style-2-modal .cwp-modal__body.post-content { margin-top: 0 !important; padding-top: 0; }
.cwp-modal.portfolio-case-study-style-2-modal .cwp-modal__footer { grid-column: 1; grid-row: 2; }
.cwp-modal.portfolio-case-study-style-2-modal .cwp-modal__icon { width: 20px; height: 20px; }
.cwp-modal.portfolio-case-study-style-2-modal .portfolio-case-study-style-2-modal-content,
.cwp-modal.portfolio-case-study-style-2-modal .portfolio-case-study-style-2-modal-content * { box-sizing: border-box; }
html.cwp-modal-open .portfolio-case-study-style-2-card--modal .portfolio-case-study-style-2-card-toggle { visibility: hidden; }
.post-content .portfolio-case-study-style-2-modal-content { width: 100%; max-width: none !important; margin: 0 !important; padding: 0 !important; }
.cwp-modal.portfolio-case-study-style-2-modal .portfolio-case-study-style-2-modal-content { --portfolio-case-study-style-2-modal-copy-max-width: inherit; background: var(--cwp-modal-surface); }
.cwp-modal.portfolio-case-study-style-2-modal .cwp-modal__body.post-content .portfolio-case-study-style-2-modal-content :where(h1, h2, h3, h4) { max-width: none; }
.post-content .portfolio-case-study-style-2-modal-content-fullbleed { padding: 0 !important; }
.cwp-modal.portfolio-case-study-style-2-modal .portfolio-case-study-style-2-modal-content-fullbleed { padding: 0 !important; }
.cwp-modal.portfolio-case-study-style-2-modal .portfolio-case-study-style-2-modal-content :where(h1, h2, h3, h4) { color: var(--portfolio-case-study-style-2-text); font-family: var(--display-font); }
.cwp-modal.portfolio-case-study-style-2-modal .portfolio-case-study-style-2-modal-content :where(p, li) { color: var(--portfolio-case-study-style-2-muted); font-size: var(--portfolio-case-study-style-2-modal-copy-size); letter-spacing: -.01em; }
.cwp-modal.portfolio-case-study-style-2-modal .portfolio-case-study-style-2-modal-content a { color: var(--portfolio-case-study-style-2-accent); }
.cwp-modal.portfolio-case-study-style-2-modal .cwp-modal__body.post-content a[href]:focus-visible { outline: 3px solid var(--portfolio-case-study-style-2-accent); outline-offset: 2px; }
.post-content .portfolio-case-study-style-2-modal-hero { display: block; width: 100%; max-width: none !important; height: auto; margin: 0 !important; padding: 0; overflow: hidden; background: var(--bg-dynamic-secondary); }
.post-content .portfolio-case-study-style-2-modal-hero img { display: block; width: 100%; max-width: none; height: auto; max-height: none; margin: 0; object-fit: initial; }
.post-content .portfolio-case-study-style-2-modal-body { width: 100%; max-width: none !important; margin: 0 !important; padding: clamp(48px, 6vw, 88px) clamp(24px, 7vw, 112px) clamp(72px, 8vw, 120px); }
.cwp-modal.portfolio-case-study-style-2-modal .cwp-modal__body.post-content .portfolio-case-study-style-2-modal-reading,
.cwp-modal.portfolio-case-study-style-2-modal .cwp-modal__body.post-content .portfolio-case-study-style-2-modal-feature-grid,
.cwp-modal.portfolio-case-study-style-2-modal .cwp-modal__body.post-content .portfolio-case-study-style-2-modal-principles { width: 100%; max-width: var(--portfolio-case-study-style-2-modal-copy-max-width); margin-right: auto; margin-left: auto; }
.cwp-modal.portfolio-case-study-style-2-modal .cwp-modal__body.post-content .portfolio-case-study-style-2-modal-content :where(p, ul) { max-width: none; }
.post-content .portfolio-case-study-style-2-modal-eyebrow { margin: 0 0 20px !important; color: var(--portfolio-case-study-style-2-muted) !important; font-family: var(--display-font); font-size: var(--portfolio-case-study-style-2-modal-eyebrow-size); font-weight: 600; letter-spacing: -.01em; }
.post-content .portfolio-case-study-style-2-modal-title { margin: 0 0 24px !important; font-family: var(--display-font); font-size: var(--portfolio-case-study-style-2-modal-title-size); font-weight: 600; letter-spacing: -.025em; }
.post-content .portfolio-case-study-style-2-modal-image { width: 100%; max-width: none !important; margin: 0 0 72px !important; }
.post-content .portfolio-case-study-style-2-modal-image img { display: block; width: 100%; height: auto; }
.post-content .portfolio-case-study-style-2-modal-section-title { margin: 0 0 40px !important; font-family: var(--display-font); font-size: var(--portfolio-case-study-style-2-modal-section-title-size); font-weight: 600; letter-spacing: -.02em; }
.post-content .portfolio-case-study-style-2-modal-feature-grid { display: grid !important; width: 100%; max-width: var(--portfolio-case-study-style-2-modal-copy-max-width) !important; margin: 0 auto 64px !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; }
.post-content .portfolio-case-study-style-2-modal-feature { display: block; min-width: 0; margin: 0 !important; }
.post-content .portfolio-case-study-style-2-modal-icon { width: 64px; height: 64px; margin: 0 0 24px !important; color: var(--text-color-tertiary); }
.post-content .portfolio-case-study-style-2-modal-icon .wp-block-chiawei-blog-inline-svg { display: flex; align-items: flex-start; width: 100%; height: 100%; }
.post-content .portfolio-case-study-style-2-modal-icon svg { display: block; width: auto; max-width: 100%; height: 100%; }
.post-content .portfolio-case-study-style-2-modal-feature h3 { margin: 0 0 12px !important; font-family: var(--display-font); font-size: var(--portfolio-case-study-style-2-modal-feature-title-size); font-weight: 600; letter-spacing: -.015em; }
.post-content .portfolio-case-study-style-2-modal-feature p { margin: 0 !important; color: var(--portfolio-case-study-style-2-text) !important; font-size: var(--portfolio-case-study-style-2-modal-copy-size); letter-spacing: -.01em; }
.cwp-modal.portfolio-case-study-style-2-modal .cwp-modal__body.post-content .portfolio-case-study-style-2-modal-intro,
.cwp-modal.portfolio-case-study-style-2-modal .cwp-modal__body.post-content .portfolio-case-study-style-2-modal-principle p { margin: 0; color: var(--portfolio-case-study-style-2-muted); font-size: var(--portfolio-case-study-style-2-modal-principle-size); font-weight: 600; letter-spacing: -.01em; }
.post-content .portfolio-case-study-style-2-modal-reading > p:not(.portfolio-case-study-style-2-modal-eyebrow):not(.portfolio-case-study-style-2-modal-action) { margin: 0 0 24px !important; color: var(--portfolio-case-study-style-2-text) !important; font-size: var(--portfolio-case-study-style-2-modal-copy-size); letter-spacing: -.01em; }
.post-content .portfolio-case-study-style-2-modal-action { width: max-content; max-width: 100% !important; margin: 24px 0 72px !important; font-family: var(--display-font); font-size: var(--font-size-20); font-weight: 400; letter-spacing: -.01em; }
.post-content .portfolio-case-study-style-2-modal-action a { color: var(--portfolio-case-study-style-2-accent) !important; text-decoration: none; }
.post-content .portfolio-case-study-style-2-modal-action a:hover { text-decoration: underline; text-underline-offset: .18em; }
.post-content .portfolio-case-study-style-2-modal-principles { display: grid !important; width: 100%; max-width: var(--portfolio-case-study-style-2-modal-copy-max-width) !important; margin: 0 auto !important; gap: 32px; }
.post-content .portfolio-case-study-style-2-modal-principle { display: grid !important; grid-template-columns: 64px minmax(0, 1fr); align-items: start; gap: 32px; margin: 0 !important; }
.post-content .portfolio-case-study-style-2-modal-principle .portfolio-case-study-style-2-modal-icon { margin: 0 !important; }
.post-content .portfolio-case-study-style-2-modal-action.portfolio-case-study-style-2-modal-reading { width: 100%; max-width: var(--portfolio-case-study-style-2-modal-copy-max-width) !important; margin: 44px auto 0 !important; }

@media (prefers-color-scheme: dark) {
    .cwp-modal.portfolio-case-study-style-2-modal.is-open { --cwp-modal-surface: var(--bg-dynamic-secondary); }
}

@media (min-width: 735px) and (max-width: 1024px) {
    .cwp-modal.portfolio-case-study-style-2-modal { --portfolio-case-study-style-2-modal-copy-max-width: min(735px, var(--max-width-post-text-wide, var(--max-width-post-content-wide, 960px))); --portfolio-case-study-style-2-modal-eyebrow-size: var(--font-size-18); --portfolio-case-study-style-2-modal-title-size: var(--font-size-48); --portfolio-case-study-style-2-modal-section-title-size: var(--font-size-48); --portfolio-case-study-style-2-modal-feature-title-size: var(--font-size-28); --portfolio-case-study-style-2-modal-copy-size: var(--font-size-18); --portfolio-case-study-style-2-modal-principle-size: var(--font-size-20); }
    .post-content .portfolio-case-study-style-2-modal-icon { width: 56px; height: 56px; }
    .post-content .portfolio-case-study-style-2-modal-principle { grid-template-columns: 56px minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 734px) {
    .cwp-modal.portfolio-case-study-style-2-modal.is-open { padding: 0; }
    .cwp-modal.portfolio-case-study-style-2-modal .cwp-modal__dialog { min-height: 100dvh; margin: 0; border-radius: 20px 20px 0 0; }
    .cwp-modal.portfolio-case-study-style-2-modal .cwp-modal__header { padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
    .post-content .portfolio-case-study-style-2-card--modal.portfolio-case-study-style-2-js { height: 592px; min-height: 592px; }
    .post-content .portfolio-case-study-style-2-modal-body { padding: 48px 24px 72px; }
    .post-content .portfolio-case-study-style-2-modal-feature-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .post-content .portfolio-case-study-style-2-modal-image { margin-bottom: 48px !important; }
    .cwp-modal.portfolio-case-study-style-2-modal { --portfolio-case-study-style-2-modal-copy-max-width: 100%; --portfolio-case-study-style-2-modal-eyebrow-size: var(--font-size-16); --portfolio-case-study-style-2-modal-title-size: var(--font-size-40); --portfolio-case-study-style-2-modal-section-title-size: var(--font-size-32); --portfolio-case-study-style-2-modal-feature-title-size: var(--font-size-24); --portfolio-case-study-style-2-modal-copy-size: var(--font-size-18); --portfolio-case-study-style-2-modal-principle-size: var(--font-size-20); }
    .cwp-modal.portfolio-case-study-style-2-modal[data-size="wide"] .cwp-modal__dialog { max-width: 100%; }
    .post-content .portfolio-case-study-style-2-modal-eyebrow { margin-bottom: 16px !important; }
    .post-content .portfolio-case-study-style-2-modal-section-title { margin-bottom: 28px !important; }
    .post-content .portfolio-case-study-style-2-modal-principle { grid-template-columns: 48px minmax(0, 1fr); gap: 20px; }
    .post-content .portfolio-case-study-style-2-modal-principle .portfolio-case-study-style-2-modal-icon { width: 48px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
    .cwp-modal.portfolio-case-study-style-2-modal,
    .cwp-modal.portfolio-case-study-style-2-modal::before,
    .cwp-modal.portfolio-case-study-style-2-modal .cwp-modal__dialog,
    .cwp-modal.portfolio-case-study-style-2-modal .cwp-modal__close,
    .cwp-modal.portfolio-case-study-style-2-modal .cwp-modal__style2-close-surface { transition: none !important; }
}
.post-content .portfolio-case-study-style-2-quote-grid { display: grid !important; align-items: start; }
.post-content .portfolio-case-study-style-2-quote blockquote { margin: 0 !important; padding: 0; border: 0; }
.post-content .portfolio-case-study-style-2-quote blockquote p { margin: 0 !important; }
.post-content .portfolio-case-study-style-2-quote-credit p { margin: 0 !important; }
.post-content .portfolio-case-study-style-2-quote-credit p:first-child { font-weight: 600; }

@media (max-width: 1068px) {
    .post-content .portfolio-case-study-style-2 { --portfolio-case-study-style-2-content-width: 692px; --portfolio-case-study-style-2-gutter: 20px; --portfolio-case-study-style-2-inset: 55px; --portfolio-case-study-style-2-card-copy-max-width: 380px; }
    .post-content .portfolio-case-study-style-2-hero-image { max-width: 968px !important; }
    .post-content .portfolio-case-study-style-2-hero { padding-top: 88px; }
    .post-content .portfolio-case-study-style-2-project-name { margin-bottom: 72px !important; }
    .post-content .portfolio-case-study-style-2-section-title { margin-bottom: 62px !important; }
    .post-content .portfolio-case-study-style-2-card, .post-content .portfolio-case-study-style-2-card-front { min-height: 640px; height: 640px; }
    .post-content .portfolio-case-study-style-2-card.portfolio-case-study-style-2-js { height: 640px; }
    .post-content .portfolio-case-study-style-2-capabilities { padding-bottom: 90px; padding-inline: 0; }
}

@media (max-width: 734px) {
    .post-content .portfolio-case-study-style-2 { --portfolio-case-study-style-2-content-width: min(87.5%, 400px); --portfolio-case-study-style-2-gutter: 15px; --portfolio-case-study-style-2-inset: 40px; --portfolio-case-study-style-2-card-copy-max-width: 100%; font-size: 17px; letter-spacing: -.022em; }
    .post-content .portfolio-case-study-style-2 :where(.portfolio-case-study-style-2-project-name, .portfolio-case-study-style-2-hero-title, .portfolio-case-study-style-2-intro-copy, .portfolio-case-study-style-2-section-title, .portfolio-case-study-style-2-results, .portfolio-case-study-style-2-quote-grid, .portfolio-case-study-style-2-capabilities-grid) { max-width: 100% !important; }
    .post-content .portfolio-case-study-style-2-hero { padding-top: 65px; }
    .post-content .portfolio-case-study-style-2-project-name { margin-bottom: 64px !important; font-size: 24px; }
    .post-content .portfolio-case-study-style-2-hero-title { letter-spacing: -.003em; }
    .post-content .portfolio-case-study-style-2-hero-media { padding-top: 62px; }
    .post-content .portfolio-case-study-style-2-hero-image { max-width: 375px !important; }
    .post-content .portfolio-case-study-style-2-eyebrow { font-size: 21px; }
    .post-content .portfolio-case-study-style-2-glance-grid { grid-template-columns: 1fr; }
    .post-content .portfolio-case-study-style-2-section-title { font-size: 32px; letter-spacing: .004em; }
    .post-content .portfolio-case-study-style-2-card-grid { grid-template-columns: 1fr; }
    .post-content .portfolio-case-study-style-2-card-grid > .portfolio-case-study-style-2-card { grid-column: 1 / -1 !important; }
    .post-content .portfolio-case-study-style-2-card, .post-content .portfolio-case-study-style-2-card-front { min-height: 592px; height: 592px; }
    .post-content .portfolio-case-study-style-2-card.portfolio-case-study-style-2-js { height: 592px; }
    .post-content .portfolio-case-study-style-2-card-title { font-size: 34px; }
    .post-content .portfolio-case-study-style-2-card-back p {  font-size: 17px; letter-spacing: -.022em; }
    .post-content .portfolio-case-study-style-2-capabilities { padding-bottom: 65px; padding-inline: 24px; }
    .post-content .portfolio-case-study-style-2-capabilities-grid { grid-template-columns: 1fr; gap: 40px; }
    .post-content .portfolio-case-study-style-2-capability { column-gap: 16px; }
    .post-content .portfolio-case-study-style-2-capability h3 { font-size: 28px; }
}

@media (max-width: 320px) { .post-content .portfolio-case-study-style-2 { --portfolio-case-study-style-2-inset: 24px; } }
@media (prefers-reduced-motion: reduce) {
    .portfolio-case-study-style-2-card-toggle,
    .portfolio-case-study-style-2-card-toggle-icon,
    .portfolio-case-study-style-2-card-toggle-icon path { transition: none !important; }
}

/* Match the Site surface hierarchy using the existing portfolio palette. */
@media (prefers-color-scheme: dark) {
    .post-content .portfolio-case-study-style-2 {
        --portfolio-case-study-style-2-page: var(--bg-dynamic-primary);
        --portfolio-case-study-style-2-card: var(--bg-dynamic-secondary);
    }
}

/* Keep capability copy compact at tablet widths. */
.post-content .portfolio-case-study-style-2-capability p {
    letter-spacing: -.022em;
}
@media (min-width: 1069px) {
    .post-content .portfolio-case-study-style-2-quote blockquote p { letter-spacing: .007em; }
}

/* Shared canvas rules keep WordPress layout defaults from changing section rhythm. */
.post-content .portfolio-case-study-style-2 > * { margin-block-start: 0; }
.post-content .portfolio-case-study-style-2-section-title { color: var(--portfolio-case-study-style-2-muted); }
.post-content .portfolio-case-study-style-2-highlight { color: var(--portfolio-case-study-style-2-text); }
.post-content .portfolio-case-study-style-2-section-title .portfolio-case-study-style-2-secondary { color: var(--portfolio-case-study-style-2-muted); }
.post-content .portfolio-case-study-style-2-results-title { letter-spacing: -.003em; }
.post-content .portfolio-case-study-style-2-glance .portfolio-case-study-style-2-eyebrow { font-size: 21px; color: var(--portfolio-case-study-style-2-muted); }
.post-content .portfolio-case-study-style-2-stat-unit { letter-spacing: -.003em; }
.post-content .portfolio-case-study-style-2-card-grid { margin-inline: auto !important; }
.post-content .portfolio-case-study-style-2-card-back { margin: 0 !important; }
@media (max-width: 1068px) {
 .post-content .portfolio-case-study-style-2-hero-title { font-size:64px; }
 .post-content .portfolio-case-study-style-2-stat-value { font-size:64px; }
 .post-content .portfolio-case-study-style-2-intro-copy { width:692px; font-size:24px; }
 .post-content .portfolio-case-study-style-2-quote { margin-top:65px; padding:65px 0; }
 .post-content .portfolio-case-study-style-2-quote-grid { gap:40px; }
}
@media (max-width: 734px) {
 .post-content .portfolio-case-study-style-2-hero-title { font-size:48px; }
 .post-content .portfolio-case-study-style-2-stat-value { font-size:48px; }
 .post-content .portfolio-case-study-style-2-intro { padding-inline:0; }
 .post-content .portfolio-case-study-style-2-intro-copy { width:87.5%; font-size:21px; }
 .post-content .portfolio-case-study-style-2-capability { grid-template-columns:1fr; }
 .post-content .portfolio-case-study-style-2-capability-icon { width:max-content; height:54px; }
 .post-content .portfolio-case-study-style-2-capabilities-grid { row-gap:54px; }
 .post-content .portfolio-case-study-style-2-results-grid { gap:38px; }
 .post-content .portfolio-case-study-style-2-quote-grid { gap:32px; }
}

.post-content .portfolio-case-study-style-2-hero-title { margin-block:0; }
.post-content .portfolio-case-study-style-2-hero-media { padding-inline:0 !important; }
.post-content .portfolio-case-study-style-2-hero-image { margin:0 auto !important; width:min(1300px,100%); overflow:hidden !important; }
body.zoom-overlay-open .post-content .portfolio-case-study-style-2-hero-image,
body.zoom-overlay-closing .post-content .portfolio-case-study-style-2-hero-image { overflow:visible !important; }
.post-content .portfolio-case-study-style-2-hero-image img { height:100% !important; object-fit:cover !important; }
.post-content .portfolio-case-study-style-2-hero-image :is(img,.frame,.image) { border-radius:0 !important; }
@media(max-width:1068px) { .post-content .portfolio-case-study-style-2-hero-image { width:min(968px,100%); } }
@media(max-width:734px) { .post-content .portfolio-case-study-style-2-hero-image { width:min(375px,100%); } }
/* Explicit section spacing protects the intended rhythm from theme defaults. */
.post-content .portfolio-case-study-style-2-capabilities { padding-inline:0 !important; }
.post-content .portfolio-case-study-style-2-card-eyebrow { font-size:24px; }
.post-content .portfolio-case-study-style-2-glance-grid { padding-top:24px; padding-bottom:22px; }
.post-content .portfolio-case-study-style-2-glance .portfolio-case-study-style-2-eyebrow { margin-bottom:0 !important; }
.post-content .portfolio-case-study-style-2-stat-caption { margin-top:0 !important; }
.post-content .portfolio-case-study-style-2-results { padding-inline:0 !important; }
.post-content .portfolio-case-study-style-2-results-grid { gap:52px 0; }
.post-content .portfolio-case-study-style-2-result { padding-right:50px; }
.post-content .portfolio-case-study-style-2-quote { padding:0 !important; background:var(--portfolio-case-study-style-2-page); }
.post-content .portfolio-case-study-style-2-quote-grid { background:var(--portfolio-case-study-style-2-card); }
@media(max-width:1068px) {
 .post-content .portfolio-case-study-style-2-capability h3 { font-size:40px; }
 .post-content .portfolio-case-study-style-2-results-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:60px 0; margin-top:60px !important; }
 .post-content .portfolio-case-study-style-2-result { padding-right:40px; }
 .post-content .portfolio-case-study-style-2-quote { margin-top:65px !important; }
 .post-content .portfolio-case-study-style-2-quote-grid { padding-block:65px; }
}
@media(max-width:734px) {
 .post-content .portfolio-case-study-style-2-card-eyebrow { font-size:21px; }
 .post-content .portfolio-case-study-style-2-results-grid { grid-template-columns:1fr; row-gap:38px; margin-top:40px !important; }
 .post-content .portfolio-case-study-style-2-result { padding-right:0; }
 .post-content .portfolio-case-study-style-2-quote { margin-top:115px !important; }
 .post-content .portfolio-case-study-style-2-quote-grid { width:87.5%; padding:65px 40px; grid-template-columns:1fr; }
 .post-content .portfolio-case-study-style-2-glance-grid { row-gap:40px; }
}
.post-content :is(.portfolio-case-study-style-2-hero,.portfolio-case-study-style-2-intro,.portfolio-case-study-style-2-glance) { padding-inline:0 !important; }
.post-content .portfolio-case-study-style-2-card--symbol .portfolio-case-study-style-2-card-title { font-size:64px; }
@media(max-width:1068px) {
 .post-content .portfolio-case-study-style-2-card--symbol .portfolio-case-study-style-2-card-title { font-size:48px; }
}
@media(max-width:734px) {
 .post-content .portfolio-case-study-style-2-card-title { font-size:28px; }
 .post-content .portfolio-case-study-style-2-card--symbol .portfolio-case-study-style-2-card-title { font-size:40px; }
 .post-content .portfolio-case-study-style-2-quote blockquote p { font-size:21px; }
 .post-content .portfolio-case-study-style-2-capabilities { padding-block:65px; }
 .post-content .portfolio-case-study-style-2-glance .portfolio-case-study-style-2-eyebrow { font-size:19px; }
}
.post-content .portfolio-case-study-style-2-results-grid p { font-size:24px; }
.post-content .portfolio-case-study-style-2-capability { padding-right:0; }
.post-content .portfolio-case-study-style-2-capability h3 { margin:12px 0 0 !important; font-size:48px; }
.post-content .portfolio-case-study-style-2-capability h3 {
    font-family: var(--display-font);
    font-weight: 600;
    letter-spacing: -.003em;
}
.post-content .portfolio-case-study-style-2-capability p { margin-top:14px !important; font-size:17px; }
.post-content .portfolio-case-study-style-2-glance-grid { padding:0; }
.post-content .portfolio-case-study-style-2-stat { margin:20px 0 !important; padding:4px 0 2px; }
.post-content .portfolio-case-study-style-2-intro-copy { margin-bottom:.4em !important; }
@media(max-width:734px) {
 .post-content .portfolio-case-study-style-2-results-grid p { font-size:21px; }
 .post-content .portfolio-case-study-style-2-capability { padding-right:0; }
 .post-content .portfolio-case-study-style-2-capability h3 { font-size:32px; }
 .post-content .portfolio-case-study-style-2-capability p { margin-top:22px !important; }
}
/* Keep theme Group sizing and paragraph rhythm out of the quote grid. */
.post-content .portfolio-case-study-style-2-quote-grid { margin-bottom:0 !important; }
.post-content .portfolio-case-study-style-2-quote-credit { width:100%; max-width:none !important; margin:0 !important; align-self:start; }
.post-content .portfolio-case-study-style-2-capabilities-grid,
.post-content .portfolio-case-study-style-2-glance-grid,
.post-content .portfolio-case-study-style-2-results-grid { margin-bottom:0 !important; }
@media(max-width:734px) {
 .post-content .portfolio-case-study-style-2-quote-credit { margin-top:0 !important; }
}
.post-content .portfolio-case-study-style-2-results { margin-inline:auto !important; }
/* Inline units must own a smaller line box instead of stretching the value. */
.post-content .portfolio-case-study-style-2-stat-unit { font-size:48px; }
.post-content .portfolio-case-study-style-2-quote blockquote p::before {
    content: open-quote;
    display: inline-block;
    width: .4em;
    margin-left: -.4em;
}
.post-content .portfolio-case-study-style-2-quote blockquote p::after {
    content: close-quote;
    display: inline-block;
    width: .4em;
    margin-right: -.4em;
}
.post-content .portfolio-case-study-style-2-quote-credit p { font-size:17px; }
@media(max-width:1068px) {
 .post-content .portfolio-case-study-style-2-stat-unit { font-size:40px; }
}
@media(max-width:734px) {
 .post-content .portfolio-case-study-style-2-stat-unit { font-size:32px; }
 .post-content .portfolio-case-study-style-2-quote-grid { gap:0; }
 .post-content .portfolio-case-study-style-2-quote-credit { padding-top:34px; }
}
/* Keep the section label on the reading column and reset theme Group margins
 * on every grid item, including the first child. */
.post-content .portfolio-case-study-style-2-capabilities > .portfolio-case-study-style-2-eyebrow { width:var(--portfolio-case-study-style-2-content-width); max-width:calc(100% - 2 * var(--portfolio-case-study-style-2-gutter)) !important; margin-inline:auto !important; }
.post-content .portfolio-case-study-style-2-capability { margin:0 !important; align-self:stretch; }

/* Align introduction, share actions, and booking content to the shared grid. */
.post-content .portfolio-case-study-style-2-intro-copy {
    width: 816.6667px;
    max-width: calc(100% - 2 * var(--portfolio-case-study-style-2-gutter)) !important;
    margin: 0 auto !important;
    font-size: 28px;
    font-weight: 600;

}

.post-content .portfolio-case-study-style-2-share {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: 100vw !important;
    transform: translateX(-50%);
    margin: 0 !important;
    padding: 96px 0 0 !important;
    text-align: center;
}
.post-content .portfolio-case-study-style-2-share-title {
    width: var(--portfolio-case-study-style-2-content-width);
    max-width: calc(100% - 2 * var(--portfolio-case-study-style-2-gutter));
    margin: 0 auto !important;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: .004em;
    font-family: var(--display-font);
}
.post-content .portfolio-case-study-style-2-share-links {
    display: flex;
    width: 18.75%;
    margin: 35px auto 0;
}
.post-content .portfolio-case-study-style-2-share-link {
    display: flex;
    width: 33.333333%;
    height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--portfolio-case-study-style-2-text) !important;
    cursor: pointer;
}
.post-content .portfolio-case-study-style-2-share-icon { display:block; width:24px; height:24px; }
.post-content .portfolio-case-study-style-2-share-link:focus-visible { outline:2px solid var(--portfolio-case-study-style-2-accent); outline-offset:4px; }
.post-content .portfolio-case-study-style-2-share-status { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.post-content .portfolio-case-study-style-2-share-rule { width:100px; height:1px; margin:60px auto 0 !important; padding:0; border:0; background:var(--portfolio-case-study-style-2-border); }

.post-content .portfolio-case-study-style-2-book-chat { margin-top:0 !important; padding-top:135px !important; }
.post-content .portfolio-case-study-style-2-book-card {
    display:grid !important;
    width:var(--portfolio-case-study-style-2-content-width);
    max-width:calc(100% - 2 * var(--portfolio-case-study-style-2-gutter)) !important;
    margin:0 auto !important;
    padding:40px 0;
    grid-template-columns:8.333333% 33.333333% 58.333334%;
    align-items:center;
    overflow:hidden;
    background:var(--portfolio-case-study-style-2-card);
    color:var(--portfolio-case-study-style-2-text);
}
.post-content .portfolio-case-study-style-2-book-copy { grid-column:2; width:auto; max-width:none !important; margin:0 !important; padding-right:65px; }
.post-content .portfolio-case-study-style-2-book-copy h2 { margin:0 !important; font-size:32px; font-weight:600; letter-spacing:.009em; font-family:var(--display-font); }
.post-content .portfolio-case-study-style-2-book-copy p { margin:29px 0 0 !important; font-size:17px; font-weight:600; }
.post-content .portfolio-case-study-style-2-book-link { display:inline-flex; align-items:center; gap:.25em; color:var(--portfolio-case-study-style-2-accent); text-decoration:none; }
.post-content .portfolio-case-study-style-2-book-link > span[aria-hidden="true"] { display:inline-block; color:var(--portfolio-case-study-style-2-accent); font-size:1.25em; }
.post-content .portfolio-case-study-style-2-book-visual { grid-column:3; width:100%; margin:0 !important; aspect-ratio:1304 / 805; background:transparent; }

@media(max-width:1068px) {
    .post-content .portfolio-case-study-style-2-intro-copy { width:692px; font-size:24px; }
    .post-content .portfolio-case-study-style-2-share { padding-top:105px !important; }
    .post-content .portfolio-case-study-style-2-share-title { font-size:28px; }
    .post-content .portfolio-case-study-style-2-share-links { width:24.75%; }
    .post-content .portfolio-case-study-style-2-share-rule { margin-top:42px !important; }
    .post-content .portfolio-case-study-style-2-book-chat { padding-top:115px !important; }
    .post-content .portfolio-case-study-style-2-book-card { padding:70px 0; }
    .post-content .portfolio-case-study-style-2-book-copy { padding-right:40px; }
    .post-content .portfolio-case-study-style-2-book-copy h2 { font-size:28px; }
    .post-content .portfolio-case-study-style-2-book-copy p { margin-top:17px !important; }
}
@media(max-width:734px) {
    .post-content .portfolio-case-study-style-2-intro-copy { width:87.5%; max-width:400px !important; font-size:21px; }
    body .post-content.post-content > .portfolio-case-study-style-2-share,
    .post-content .portfolio-case-study-style-2-share { width:min(87.5vw,400px); min-width:0 !important; max-width:min(87.5vw,400px) !important; margin:95px auto 0 !important; padding:0 !important; }
    .post-content .portfolio-case-study-style-2-share-title { font-size:24px; }
    .post-content .portfolio-case-study-style-2-share-links { width:37.5%; }
    .post-content .portfolio-case-study-style-2-share-rule { margin-top:58px !important; }
    .post-content .portfolio-case-study-style-2-book-chat { width:100%; max-width:none !important; margin-top:70px !important; padding-inline:0 !important; }
    .post-content .portfolio-case-study-style-2-book-card { display:flex !important; width:87.5%; max-width:400px !important; flex-direction:column; align-items:stretch; padding:65px 40px 30px; }
    .post-content .portfolio-case-study-style-2-book-copy { width:100%; margin:0 0 35px !important; padding:0; }
    .post-content .portfolio-case-study-style-2-book-copy h2 { font-size:24px; }
    .post-content .portfolio-case-study-style-2-book-copy p { margin-top:17px !important; }
    .post-content .portfolio-case-study-style-2-book-visual { width:100%; }
}
@media(max-width:734px) {
    .post-content .portfolio-case-study-style-2-book-copy p { height:20.5px; }
}


/* Keep the glance metrics and labels in the secondary text tone. */
.post-content .portfolio-case-study-style-2-glance > .portfolio-case-study-style-2-eyebrow,
.post-content .portfolio-case-study-style-2-stat-value,
.post-content .portfolio-case-study-style-2-stat-unit,
.post-content .portfolio-case-study-style-2-stat-caption { color: var(--text-color-secondary) !important; }

/* Give the theme's display font room for descenders at the bottom of the hero. */
.post-content .portfolio-case-study-style-2-hero-title {
    padding-bottom: .15em !important;
}

/* The front and back faces are swapped and animated as complete content units. */
.post-content .portfolio-case-study-style-2-card.portfolio-case-study-style-2-js.is-open .portfolio-case-study-style-2-card-front {
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 0;
}

.post-content .portfolio-case-study-style-2-intro-copy {
    letter-spacing: .007em;
}

.post-content .portfolio-case-study-style-2-capability p,
.post-content .portfolio-case-study-style-2-capability-link {

    letter-spacing: -.022em;
}

.post-content .portfolio-case-study-style-2-capability-icon {
    display: block !important;
    height: 54px !important;
    max-width: none !important;
    flex: none;
}

.post-content .portfolio-case-study-style-2-capabilities-grid > .portfolio-case-study-style-2-capability:nth-child(1) .portfolio-case-study-style-2-capability-icon { width: 57.86px; }
.post-content .portfolio-case-study-style-2-capabilities-grid > .portfolio-case-study-style-2-capability:nth-child(2) .portfolio-case-study-style-2-capability-icon { width: 54px; }
.post-content .portfolio-case-study-style-2-capabilities-grid > .portfolio-case-study-style-2-capability:nth-child(3) .portfolio-case-study-style-2-capability-icon { width: 61.71px; }
.post-content .portfolio-case-study-style-2-capabilities-grid > .portfolio-case-study-style-2-capability:nth-child(4) .portfolio-case-study-style-2-capability-icon { width: 54px; }

.post-content .portfolio-case-study-style-2-capability-icon > .wp-block-inline-svg-block,
.post-content .portfolio-case-study-style-2-capability-icon > .wp-block-chiawei-blog-inline-svg {
    display: block;
    width: 100%;
    height: 100%;
}

.post-content .portfolio-case-study-style-2-capability-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Align the final mobile sections with the shared row rhythm. */
@media (max-width: 734px) {
    .post-content .portfolio-case-study-style-2-quote-grid {
        width: min(87.5vw, 400px);
    }
}
@media (max-width: 734px) {
    .post-content .portfolio-case-study-style-2-capabilities-grid > .portfolio-case-study-style-2-capability:first-child {
        min-height: 226px;
    }
    .post-content .portfolio-case-study-style-2-results-title {
        font-family: var(--display-font);
        font-weight: 600;
        letter-spacing: .004em;
    }
}
@media (max-width: 400px) {
    .post-content .portfolio-case-study-style-2-results-title {
        font-size: 30px;
    }
}
@media (max-width: 320px) {
    .post-content .portfolio-case-study-style-2-project-name { white-space: nowrap;  }
    .post-content .portfolio-case-study-style-2-capabilities-grid > .portfolio-case-study-style-2-capability:last-child { min-height: 226px; }
    .post-content .portfolio-case-study-style-2-results-title { font-size: 29px; }
}

/* Keep full-bleed sections full width while their contents use reading columns. */
.post-content .portfolio-case-study-style-2-results { position: relative; left: 50%; width: 100vw; max-width: 100vw !important; transform: translateX(-50%); }
.post-content .portfolio-case-study-style-2-results > .portfolio-case-study-style-2-eyebrow,
.post-content .portfolio-case-study-style-2-results-grid { width: var(--portfolio-case-study-style-2-content-width); max-width: calc(100% - 2 * var(--portfolio-case-study-style-2-gutter)) !important; margin-left: max(var(--portfolio-case-study-style-2-gutter), calc((100% - var(--portfolio-case-study-style-2-content-width)) / 2)) !important; margin-right: max(var(--portfolio-case-study-style-2-gutter), calc((100% - var(--portfolio-case-study-style-2-content-width)) / 2)) !important; }
.post-content .portfolio-case-study-style-2-results > .portfolio-case-study-style-2-eyebrow { font-size: 24px; }
.post-content .portfolio-case-study-style-2-results-title {
    width: min(var(--portfolio-case-study-style-2-content-width), 898.333px);
    max-width: calc(100% - 2 * var(--portfolio-case-study-style-2-gutter)) !important;
    margin: 0 0 0 max(var(--portfolio-case-study-style-2-gutter), calc((100% - var(--portfolio-case-study-style-2-content-width)) / 2)) !important;
    font-family: var(--display-font);
    font-size: 48px;
}
.post-content .portfolio-case-study-style-2-results-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 41.666667%));
    column-gap: 8.333333%;
    row-gap: 52px;
    margin-top: 54px !important;
}
.post-content .portfolio-case-study-style-2-result p {
    font-family: var(--display-font);
    font-size: 24px;
}

.post-content .portfolio-case-study-style-2-quote {
    margin-top: 0 !important;
    padding-top: 90px !important;
}
.post-content .portfolio-case-study-style-2-quote-grid {
    width: var(--portfolio-case-study-style-2-content-width);
    max-width: calc(100% - 2 * var(--portfolio-case-study-style-2-gutter)) !important;
    margin: 0 auto !important;
    padding: 80px 0;
    grid-template-columns: 8.333333% 50% 8.333333% 25%;
    gap: 0;
}
.post-content .portfolio-case-study-style-2-quote blockquote { grid-column: 2; }
.post-content .portfolio-case-study-style-2-quote-credit { grid-column: 4; }
.post-content .portfolio-case-study-style-2-quote blockquote p {
    font-family: var(--display-font);
    font-size: 28px;
}

@media (min-width: 735px) and (max-width: 1068px) {
    .post-content .portfolio-case-study-style-2-capability h3 {
        letter-spacing: .004em;
    }
    .post-content .portfolio-case-study-style-2-results-title {
        width: min(var(--portfolio-case-study-style-2-content-width), 577px);
        font-size: 40px;
    }
    .post-content .portfolio-case-study-style-2-results-grid {
        grid-template-columns: repeat(2, minmax(0, 50%));
        column-gap: 0;
        row-gap: 52px;
        margin-top: 60px !important;
    }
    .post-content .portfolio-case-study-style-2-quote { padding-top: 65px !important; }
    .post-content .portfolio-case-study-style-2-quote-grid { padding: 65px 0; }
}

@media (max-width: 734px) {
    .post-content .portfolio-case-study-style-2-results > .portfolio-case-study-style-2-eyebrow { width: var(--portfolio-case-study-style-2-content-width); font-size: 21px; }
    .post-content .portfolio-case-study-style-2-results-title {
        width: var(--portfolio-case-study-style-2-content-width);
        margin-left: max(var(--portfolio-case-study-style-2-gutter), calc((100% - var(--portfolio-case-study-style-2-content-width)) / 2)) !important;
        font-size: 32px;
    }
    .post-content .portfolio-case-study-style-2-results-grid {
        grid-template-columns: 1fr;
    }
    .post-content .portfolio-case-study-style-2-results-grid > .portfolio-case-study-style-2-result { padding: 0; }
    .post-content .portfolio-case-study-style-2-quote { padding-top: 115px !important; }
    .post-content .portfolio-case-study-style-2-quote-grid {
        width: min(87.5vw, 400px);
        padding: 65px 40px;
        grid-template-columns: 1fr;
        row-gap: 0;
    }
    .post-content .portfolio-case-study-style-2-quote blockquote,
    .post-content .portfolio-case-study-style-2-quote-credit { grid-column: 1; }
    .post-content .portfolio-case-study-style-2-quote-credit { padding-top: 34px; }
}
@media (min-width: 457px) and (max-width: 734px) {
    .post-content .portfolio-case-study-style-2-results-title {
        font-family: var(--display-font);
    }
    .post-content .portfolio-case-study-style-2-results-grid > .portfolio-case-study-style-2-result:nth-child(2) {
        min-height: 75px;
    }
    .post-content .portfolio-case-study-style-2-book-card {
        min-height: 394px;
    }
}

@media (prefers-color-scheme: dark) {
    .post-content .portfolio-case-study-style-2-glance > .portfolio-case-study-style-2-eyebrow,
    .post-content .portfolio-case-study-style-2-stat-value,
    .post-content .portfolio-case-study-style-2-stat-unit,
    .post-content .portfolio-case-study-style-2-stat-caption { color: var(--gray-40) !important; }
}

/* Section spacing lives inside each section so its surface fills the rhythm. */
.post-content .portfolio-case-study-style-2-capability-link { margin:17px 0 0 !important; font-size:17px; font-weight:400; }
.post-content .portfolio-case-study-style-2-capability-link a { display:inline-flex; align-items:baseline; gap:.25em; color:var(--portfolio-case-study-style-2-accent); font-size:17px; font-weight:400; text-decoration:none; }
.post-content .portfolio-case-study-style-2-capability-link a span { color:var(--portfolio-case-study-style-2-accent); }
.post-content .portfolio-case-study-style-2-capability-link a:hover,
.post-content .portfolio-case-study-style-2-book-link:hover { text-decoration:none; }
.post-content .portfolio-case-study-style-2-link-label { text-decoration:none; }
.post-content .portfolio-case-study-style-2-capability-link a:hover .portfolio-case-study-style-2-link-label,
.post-content .portfolio-case-study-style-2-book-link:hover .portfolio-case-study-style-2-link-label { text-decoration:underline; }

/* Keep Style 2 on the same explicit language-aware typography scale as portfolio patterns. */
html:lang(en-US) .post-content .portfolio-case-study-style-2 { line-height:var(--line-height-paragraph-en-l); }
html:lang(zh-CN) .post-content .portfolio-case-study-style-2 { line-height:var(--line-height-paragraph-zh-l); }
html:lang(en-US) .post-content .portfolio-case-study-style-2 :is(h1,h2,h3,h4,h5,h6) { line-height:1.1; }
html:lang(zh-CN) .post-content .portfolio-case-study-style-2 :is(h1,h2,h3,h4,h5,h6) { line-height:1.2; }
html:lang(en-US) .cwp-modal.portfolio-case-study-style-2-modal .portfolio-case-study-style-2-modal-content { line-height:var(--portfolio-case-study-style-2-modal-copy-leading-en); }
html:lang(zh-CN) .cwp-modal.portfolio-case-study-style-2-modal .portfolio-case-study-style-2-modal-content { line-height:var(--portfolio-case-study-style-2-modal-copy-leading-zh); }
html:lang(en-US) .cwp-modal.portfolio-case-study-style-2-modal .portfolio-case-study-style-2-modal-content :is(h1,h2,h3,h4,h5,h6) { line-height:var(--portfolio-case-study-style-2-modal-display-leading-en); }
html:lang(zh-CN) .cwp-modal.portfolio-case-study-style-2-modal .portfolio-case-study-style-2-modal-content :is(h1,h2,h3,h4,h5,h6) { line-height:var(--portfolio-case-study-style-2-modal-display-leading-zh); }
html:lang(en-US) .post-content .portfolio-case-study-style-2 :is(.portfolio-case-study-style-2-project-name,.portfolio-case-study-style-2-intro-copy,.portfolio-case-study-style-2-eyebrow,.portfolio-case-study-style-2-card-eyebrow,.portfolio-case-study-style-2-results-title,.portfolio-case-study-style-2-quote blockquote p) { line-height:1.15; }
html:lang(en-US) .cwp-modal.portfolio-case-study-style-2-modal .portfolio-case-study-style-2-modal-content :is(.portfolio-case-study-style-2-modal-eyebrow,.portfolio-case-study-style-2-modal-action) { line-height:var(--line-height-paragraph-en-s); }
html:lang(zh-CN) .post-content .portfolio-case-study-style-2 :is(.portfolio-case-study-style-2-project-name,.portfolio-case-study-style-2-intro-copy,.portfolio-case-study-style-2-eyebrow,.portfolio-case-study-style-2-card-eyebrow,.portfolio-case-study-style-2-results-title,.portfolio-case-study-style-2-quote blockquote p) { line-height:1.25; }
html:lang(zh-CN) .cwp-modal.portfolio-case-study-style-2-modal .portfolio-case-study-style-2-modal-content :is(.portfolio-case-study-style-2-modal-eyebrow,.portfolio-case-study-style-2-modal-action) { line-height:var(--line-height-paragraph-zh-s); }
html:lang(en-US) .post-content .portfolio-case-study-style-2 .portfolio-case-study-style-2-stat-value { line-height:1; }
html:lang(zh-CN) .post-content .portfolio-case-study-style-2 .portfolio-case-study-style-2-stat-value { line-height:1.1; }
/* Result statements are large, bold copy rather than body paragraphs. Keep
   their leading compact like Apple's emphasized outcome statements. */
html:lang(en-US) .post-content .portfolio-case-study-style-2-results-grid .portfolio-case-study-style-2-result > p { line-height:1.2; }
html:lang(zh-CN) .post-content .portfolio-case-study-style-2-results-grid .portfolio-case-study-style-2-result > p { line-height:1.3; }

/* Both text actions use the same label weight and arrow spacing. */
html:lang(en-US) .post-content :is(.portfolio-case-study-style-2-capability-link a,.portfolio-case-study-style-2-book-link),
html:lang(zh-CN) .post-content :is(.portfolio-case-study-style-2-capability-link a,.portfolio-case-study-style-2-book-link) {
    display:inline-flex;
    align-items:center;
    font-size:17px;
    font-weight:400;
    letter-spacing:-.022em;
    gap:.25em;
}

/* Keep final mobile overrides last to preserve widths, gaps, and section padding. */
@media (max-width: 734px) {
    .post-content .portfolio-case-study-style-2-card-section { padding-inline: 0 !important; }
    .post-content .portfolio-case-study-style-2-section-title { margin-bottom: 55px !important; }
    .post-content .portfolio-case-study-style-2-capability h3 { margin-top: 14px !important; }
    .post-content .portfolio-case-study-style-2-capability-link { height: 21px; }
    .post-content .portfolio-case-study-style-2-results-grid { margin-top: 40px !important; row-gap: 52px; }
    .post-content .portfolio-case-study-style-2-results-grid > .portfolio-case-study-style-2-result { width: 100%; max-width: none !important; margin: 0 !important; }
    .post-content .portfolio-case-study-style-2-results-grid > .portfolio-case-study-style-2-result:first-child { margin-bottom: -14px !important; }
    .post-content .portfolio-case-study-style-2-quote { margin-top: 0 !important; padding: 115px 0 0 !important; }
    .post-content .portfolio-case-study-style-2-quote blockquote p { max-width: none;  font-size: 21px; font-weight: 400; letter-spacing: .011em; }
    body .post-content.post-content > .portfolio-case-study-style-2-share { width: 100%; max-width: none !important; margin: 0 !important; padding: 95px 0 0 !important; }
    .post-content .portfolio-case-study-style-2-share-title { width: min(87.5vw, 400px); margin-inline: auto !important; }
    .post-content .portfolio-case-study-style-2-share-links { width: min(32.8125vw, 150px); }
    .post-content .portfolio-case-study-style-2-book-chat { margin-top: 0 !important; padding-top: 70px !important; }
}


@media (min-width: 457px) and (max-width: 734px) {
    .post-content .portfolio-case-study-style-2-quote blockquote p { width: 100%; }
}

/* Let the card examples in the pattern-review article reach the viewport edges.
 * The review wrapper is a constrained Group, so nested alignfull sections
 * otherwise remain inset by the wrapper's root padding. */
.post-content .portfolio-case-study-style-2-pattern-review > .portfolio-case-study-style-2-card-section { width: 100vw; max-width: 100vw !important; margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important; }
@media (max-width: 734px) {
    .post-content .portfolio-case-study-style-2-pattern-review > .portfolio-case-study-style-2-card-section .portfolio-case-study-style-2-card-grid { margin-inline: auto !important; }
}

/* Preserve section spacing and full-bleed grid alignment. */
@media (min-width: 735px) and (max-width: 1068px) {
    .post-content .portfolio-case-study-style-2-card-grid { padding-inline: var(--general-page-padding) !important; }
}
@media (min-width: 1069px) {
    .post-content .portfolio-case-study-style-2-card-section { padding-inline: 0 !important; }
    .post-content .portfolio-case-study-style-2-card-grid { padding-inline: var(--general-page-padding) !important; }
}
@media (min-width: 321px) and (max-width: 734px) {
    .post-content .portfolio-case-study-style-2-project-name { white-space: nowrap; }
}
@media (max-width: 734px) {
    .post-content .portfolio-case-study-style-2-intro-copy { letter-spacing: .011em; }
    .post-content .portfolio-case-study-style-2-capability h3 {
        font-family: var(--display-font);
        letter-spacing: .004em;
    }
    .post-content .portfolio-case-study-style-2-quote blockquote p { width: 100%; }
}
@media (min-width: 321px) and (max-width: 329px) {
    .post-content .portfolio-case-study-style-2-section-title { padding-right: calc(100vw - 320px) !important; }
}

/* Keep Results full-bleed while its contents use the centered reading width. */
.post-content .portfolio-case-study-style-2 > .portfolio-case-study-style-2-results { position: relative; left: 50%; width: 100vw; max-width: none !important; transform: translateX(-50%); }
.post-content .portfolio-case-study-style-2-results > .portfolio-case-study-style-2-eyebrow,
.post-content .portfolio-case-study-style-2-results > .portfolio-case-study-style-2-results-title,
.post-content .portfolio-case-study-style-2-results > .portfolio-case-study-style-2-results-grid { width: min(var(--portfolio-case-study-style-2-content-width), calc(100% - 2 * var(--portfolio-case-study-style-2-gutter))); max-width: none !important; margin-left: auto !important; margin-right: auto !important; }
.post-content .portfolio-case-study-style-2-results > .portfolio-case-study-style-2-results-grid { column-gap: 8.333333%; row-gap: 52px; }
.post-content .portfolio-case-study-style-2-results-grid > .portfolio-case-study-style-2-result {
    margin: 0 !important;
    padding: 0 !important;
}

@media (min-width: 735px) {
    .post-content .portfolio-case-study-style-2-results > .portfolio-case-study-style-2-results-title { max-width: 898.333px !important; margin-left: max(var(--portfolio-case-study-style-2-gutter), calc((100% - 980px) / 2)) !important; margin-right: auto !important; }
}
@media (min-width: 735px) and (max-width: 1068px) {
    .post-content .portfolio-case-study-style-2-capabilities > .portfolio-case-study-style-2-eyebrow { font-size: 21px; }
    .post-content .portfolio-case-study-style-2-capability { padding-right: 0; }
    .post-content .portfolio-case-study-style-2-capability h3 {
        font-family: var(--display-font);
        font-size: 32px;
    }
    .post-content .portfolio-case-study-style-2-capabilities-grid { align-items: stretch; }
    .post-content .portfolio-case-study-style-2-capability-link { height: 21px; }
    .post-content .portfolio-case-study-style-2-results > .portfolio-case-study-style-2-eyebrow { font-size: 21px; }
    .post-content .portfolio-case-study-style-2-results > .portfolio-case-study-style-2-results-title { width: min(577px, calc(100% - 2 * var(--portfolio-case-study-style-2-gutter))); max-width: 577px !important; margin-left: max(var(--portfolio-case-study-style-2-gutter), calc((100% - 692px) / 2)) !important; font-size: 40px; }
    .post-content .portfolio-case-study-style-2-results > .portfolio-case-study-style-2-results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 0; }
    .post-content .portfolio-case-study-style-2-results-grid > .portfolio-case-study-style-2-result { padding-right: 40px !important; }
    .post-content .portfolio-case-study-style-2-quote blockquote p {
        font-size: 24px;
    }
}
@media (max-width: 734px) {
    .post-content .portfolio-case-study-style-2-results > .portfolio-case-study-style-2-eyebrow,
    .post-content .portfolio-case-study-style-2-results > .portfolio-case-study-style-2-results-title,
    .post-content .portfolio-case-study-style-2-results > .portfolio-case-study-style-2-results-grid { width: min(87.5vw, 400px); }
    .post-content .portfolio-case-study-style-2-results > .portfolio-case-study-style-2-results-title { max-width: min(87.5vw, 400px) !important; margin-left: auto !important; margin-right: auto !important; font-size: 32px; }
    .post-content .portfolio-case-study-style-2-results > .portfolio-case-study-style-2-results-grid { grid-template-columns: 1fr; }
}

/* Preserve readable side gutters at the narrowest viewport width. */
@media (max-width: 320px) {
    .post-content .portfolio-case-study-style-2-results > .portfolio-case-study-style-2-eyebrow,
    .post-content .portfolio-case-study-style-2-results-grid { width: calc(100% - 40px); margin-left: auto !important; margin-right: auto !important; }
}

/* Keep mobile result statements compact with a clear staggered rhythm. */
@media (max-width: 734px) {
    .post-content .portfolio-case-study-style-2-results-grid p {

        font-size: 21px;
        letter-spacing: .011em;
        font-weight: 600;
    }
    .post-content .portfolio-case-study-style-2-results > .portfolio-case-study-style-2-results-grid { row-gap: 52px; }
}

/* Keep one responsive spacing rule for the capabilities section heading. */
.post-content .portfolio-case-study-style-2-capabilities > .portfolio-case-study-style-2-eyebrow { font-family: var(--display-font); font-weight: 600; letter-spacing: .009em; }
/* Keep paired capability items at the same row height across viewports. */
.post-content .portfolio-case-study-style-2-capabilities-grid {
    align-items: stretch;
}

@media (min-width: 735px) and (max-width: 1068px) {
    .post-content .portfolio-case-study-style-2-capabilities > .portfolio-case-study-style-2-eyebrow { letter-spacing: .011em; }
}

@media (max-width: 734px) {
    .post-content .portfolio-case-study-style-2-capabilities > .portfolio-case-study-style-2-eyebrow { letter-spacing: .011em; }
}

/* Narrow headline measures at the tablet breakpoint. */
@media (min-width: 735px) and (max-width: 1068px) {
    .post-content .portfolio-case-study-style-2-hero-title {
        width: 634.333px;
        max-width: calc(100% - 40px) !important;
        letter-spacing: -.009em;
    }
    .post-content .portfolio-case-study-style-2-card-section { padding-inline: 0 !important; }
    .post-content .portfolio-case-study-style-2-section-title {
        width: var(--portfolio-case-study-style-2-content-width);
        max-width: calc(100% - 2 * var(--portfolio-case-study-style-2-gutter)) !important;
        font-family: var(--display-font);
        font-size: 40px;
        letter-spacing: 0;
        margin-bottom: 62px !important;
    }
}

/* Keep the booking card on the content measure at tablet widths. */
@media (min-width: 735px) {
    .post-content .portfolio-case-study-style-2-book-chat {
        padding-inline: 0 !important;
    }
    .post-content .portfolio-case-study-style-2-book-card {
        max-width: var(--portfolio-case-study-style-2-content-width) !important;
    }
}

/* Size the share-icon group from the reading column. */
@media (min-width: 735px) and (max-width: 1068px) {
    .post-content .portfolio-case-study-style-2-share-links {
        width: 171.265px;
    }
}
@media (min-width: 1069px) {
    .post-content .portfolio-case-study-style-2-share-links {
        width: 183.75px;
    }
}

/* Shared typography and reading-column measures. */
.post-content .portfolio-case-study-style-2-glance > .portfolio-case-study-style-2-eyebrow { width: min(var(--portfolio-case-study-style-2-content-width), calc(100% - 2 * var(--portfolio-case-study-style-2-gutter))); margin-inline: auto !important; font-family: var(--display-font); letter-spacing: .011em; }
.post-content .portfolio-case-study-style-2-results > .portfolio-case-study-style-2-eyebrow { font-family: var(--display-font); letter-spacing: .011em; }
.post-content .portfolio-case-study-style-2-stat-value,
.post-content .portfolio-case-study-style-2-stat-unit,
.post-content .portfolio-case-study-style-2-card-eyebrow {
    font-family: var(--display-font);
}
.post-content .portfolio-case-study-style-2-stat-caption {
    width: 20ch;
    max-width: 20ch !important;
    margin-inline: auto !important;
    letter-spacing: -.016em;
}
.post-content .portfolio-case-study-style-2-card-title {
    width: 100%;
    max-width: none !important;
}
.post-content .portfolio-case-study-style-2-card-eyebrow {
    letter-spacing: .009em;
}
.post-content .portfolio-case-study-style-2-results-title {
    font-weight: 600;
}
.post-content .portfolio-case-study-style-2-results-grid p {

    font-weight: 600;
    letter-spacing: .009em;
}
.post-content .portfolio-case-study-style-2-quote blockquote p {

    font-weight: 400;
    letter-spacing: .007em;
}
.post-content .portfolio-case-study-style-2-share :is(a, button) {

    font-size: 17px;
}
.post-content .portfolio-case-study-style-2-book-chat h2 {
    letter-spacing: .004em;
}

@media (max-width: 734px) {
    .post-content .portfolio-case-study-style-2-card-eyebrow {
        font-size: 21px;
        letter-spacing: .011em;
    }
    .post-content .portfolio-case-study-style-2-results-grid p,
    .post-content .portfolio-case-study-style-2-quote blockquote p {
        letter-spacing: .011em;
    }
    .post-content .portfolio-case-study-style-2-book-chat h2 {
        letter-spacing: .009em;
    }
}
@media (min-width: 735px) and (max-width: 1068px) {
    .post-content .portfolio-case-study-style-2-stat-value {
        letter-spacing: -.009em;
    }
    .post-content .portfolio-case-study-style-2-stat-unit {
        letter-spacing: 0;
    }
    .post-content .portfolio-case-study-style-2-results-grid p {
        letter-spacing: .009em;
    }
}
/* Final responsive adjustments for the tablet and mobile layouts. */
@media (max-width: 734px) {
    .post-content .portfolio-case-study-style-2-glance > .portfolio-case-study-style-2-eyebrow { font-size: 19px; letter-spacing: .012em; }
    .post-content .portfolio-case-study-style-2-stat-value {
        position: relative;
        left: -2px;
        letter-spacing: -.003em;
    }
    .post-content .portfolio-case-study-style-2-stat-unit {
        letter-spacing: .004em;
    }
    .post-content .portfolio-case-study-style-2-card-title {
        letter-spacing: .007em;
    }
    .post-content .portfolio-case-study-style-2-share-title {
        letter-spacing: .009em;
    }
    .post-content .portfolio-case-study-style-2-card-grid > .portfolio-case-study-style-2-card {
        width: min(100%, 400px);
        margin-inline: auto !important;
    }
    .post-content .portfolio-case-study-style-2-card-grid {
        width: min(calc(100% - 2 * var(--general-page-padding)), 400px);
        max-width: min(calc(100% - 2 * var(--general-page-padding)), 400px) !important;
    }
    .post-content .portfolio-case-study-style-2-card--symbol .portfolio-case-study-style-2-card-title {
        width: auto;
        min-width: min-content;
        max-width: none !important;
        font-size: 40px;
        letter-spacing: 0;
    }
}
@media (min-width: 735px) and (max-width: 1068px) {
    .post-content .portfolio-case-study-style-2-intro-copy {
        letter-spacing: .009em;
    }
    .post-content .portfolio-case-study-style-2-quote blockquote p {
        letter-spacing: .009em;
    }
    .post-content .portfolio-case-study-style-2-share-title,
    .post-content .portfolio-case-study-style-2-book-chat h2 {
        letter-spacing: .007em;
    }
    .post-content .portfolio-case-study-style-2-card-title {
        font-size: 32px;
        letter-spacing: .004em;
    }
    .post-content .portfolio-case-study-style-2-card--symbol .portfolio-case-study-style-2-card-title {
        width: auto;
        min-width: min-content;
        max-width: 380px !important;
        font-size: 48px;
        letter-spacing: -.003em;
    }
    .post-content .portfolio-case-study-style-2-results-title {
        letter-spacing: normal;
    }
}
@media (min-width: 1069px) {
    .post-content .portfolio-case-study-style-2-glance .portfolio-case-study-style-2-stat-value { position: relative; left: -2px; }
    .post-content .portfolio-case-study-style-2-results > .portfolio-case-study-style-2-eyebrow { letter-spacing: .009em; }
    .post-content .portfolio-case-study-style-2-card--symbol .portfolio-case-study-style-2-card-title {
        width: auto;
        min-width: min-content;
        max-width: 510px !important;
        font-size: 64px;
        letter-spacing: -.009em;
    }
}

/* Center any number of metrics as a balanced group. Each item occupies at
   most one of three equal measures; incomplete rows stay centered naturally. */
.post-content .portfolio-case-study-style-2-glance-grid {
    --portfolio-case-study-style-2-stat-gap: 30px;
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: var(--portfolio-case-study-style-2-stat-gap);
}
.post-content .portfolio-case-study-style-2-glance-grid > .portfolio-case-study-style-2-stat {
    flex: 1 1 250px;
    min-width: 0;
    max-width: calc(33.333333% - 20px);
}
@media (max-width: 734px) {
    .post-content .portfolio-case-study-style-2-glance-grid {
        gap: 40px 0;
    }
    .post-content .portfolio-case-study-style-2-glance-grid > .portfolio-case-study-style-2-stat {
        flex-basis: 100%;
        max-width: 100%;
    }
}
@media (min-width: 735px) and (max-width: 1068px) {
    .post-content .portfolio-case-study-style-2-stat-value {
        position: relative;
        left: -2px;
    }
}

/* Card front variants. Column placement belongs to the surrounding Gutenberg
   layout; card classes describe only the content treatment. */
.post-content .portfolio-case-study-style-2-card.portfolio-case-study-style-2-card--symbol .portfolio-case-study-style-2-card-title--reduced {
    font-size: 40px;
    letter-spacing: 0;
}
.post-content .portfolio-case-study-style-2-card.portfolio-case-study-style-2-card--symbol .portfolio-case-study-style-2-card-title--elevated {
    max-width: 14ch !important;
    font-size: 64px;
    letter-spacing: -.009em;
}
.post-content .portfolio-case-study-style-2-card--image .portfolio-case-study-style-2-card-art {
    bottom: 56px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    max-height: 58%;
}
.post-content .portfolio-case-study-style-2-card--image .portfolio-case-study-style-2-card-art .wp-block-image,
.post-content .portfolio-case-study-style-2-card--image .portfolio-case-study-style-2-card-art img {
    width: 100%;
    margin: 0;
}
.post-content .portfolio-case-study-style-2-card--image .portfolio-case-study-style-2-card-art img {
    max-height: 420px;
    object-fit: contain;
}
.post-content .portfolio-case-study-style-2-card-back > :is(p, h2, h3, h4, ul, ol, blockquote) {
    max-width: var(--portfolio-case-study-style-2-card-copy-max-width) !important;
}

@media (min-width: 735px) and (max-width: 1068px) {
    .post-content .portfolio-case-study-style-2-card.portfolio-case-study-style-2-card--symbol .portfolio-case-study-style-2-card-title--reduced {
        font-size: 32px;
    }
    .post-content .portfolio-case-study-style-2-card.portfolio-case-study-style-2-card--symbol .portfolio-case-study-style-2-card-title--elevated {
        font-size: 48px;
    }
    .post-content .portfolio-case-study-style-2-card--image .portfolio-case-study-style-2-card-art {
        bottom: 48px;
        max-height: 56%;
    }
    .post-content .portfolio-case-study-style-2-card--image .portfolio-case-study-style-2-card-art img {
        max-height: 360px;
    }
}

@media (max-width: 734px) {
    .post-content .portfolio-case-study-style-2-card.portfolio-case-study-style-2-card--symbol .portfolio-case-study-style-2-card-title--reduced {
        font-size: 28px;
    }
    .post-content .portfolio-case-study-style-2-card.portfolio-case-study-style-2-card--symbol .portfolio-case-study-style-2-card-title--elevated {
        max-width: 16ch !important;
        font-size: 40px;
    }
    .post-content .portfolio-case-study-style-2-card--image .portfolio-case-study-style-2-card-art {
        bottom: 40px;
        max-height: 52%;
    }
    .post-content .portfolio-case-study-style-2-card--image .portfolio-case-study-style-2-card-art img {
        max-height: 300px;
    }
}

/* Image cards adapt their composition to the available card width. A wide card
   uses the two-column composition; a regular card keeps the image centered below
   its heading. The pattern itself does not encode a grid span. */
.post-content .portfolio-case-study-style-2-card--image {
    container-type: inline-size;
}
@container (min-width: 1000px) {
    .post-content .portfolio-case-study-style-2-card--image .portfolio-case-study-style-2-card-front {
        display: grid !important;
        grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
        align-items: start;
        gap: 40px;
    }
    .post-content .portfolio-case-study-style-2-card--image .portfolio-case-study-style-2-card-front > .portfolio-case-study-style-2-card-title {
        align-self: auto;
        max-width: 15ch !important;
    }
    .post-content .portfolio-case-study-style-2-card--image .portfolio-case-study-style-2-card-art {
        position: static !important;
        align-self: auto;
        width: 100%;
        max-width: 100%;
        max-height: 100%;
        margin: 0 !important;
    }
    .post-content .portfolio-case-study-style-2-card--image .portfolio-case-study-style-2-card-art img {
        width: 100%;
        max-height: 500px;
        object-fit: contain;
    }
}

/* Static text cards show their supporting copy on the front and have no details
   control. Static image cards center a single contained image. */
.post-content .portfolio-case-study-style-2-card--static-text .portfolio-case-study-style-2-card-front {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
}
.post-content .portfolio-case-study-style-2-card--static-text .portfolio-case-study-style-2-card-front > p {
    max-width: var(--portfolio-case-study-style-2-card-copy-max-width) !important;
    margin: 0 !important;
    font-size: 19px;
    letter-spacing: .012em;
}
.post-content .portfolio-case-study-style-2-card--image-only .portfolio-case-study-style-2-card-front {
    display: grid !important;
    place-items: center;
    padding: var(--portfolio-case-study-style-2-inset) !important;
}
.post-content .portfolio-case-study-style-2-card--image-only .portfolio-case-study-style-2-card-art {
    position: static !important;
    display: flex;
    width: 100%;
    max-width: 100%;
    max-height: 74%;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
}
.post-content .portfolio-case-study-style-2-card--image-only .portfolio-case-study-style-2-card-art .wp-block-image {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    margin: 0;
}
.post-content .portfolio-case-study-style-2-card--image-only .portfolio-case-study-style-2-card-art img {
    width: auto;
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
}

/* Balance icon-and-heading compositions by content structure, not a special
   card-type class. The eyebrow remains in its reserved header area. */
.post-content .portfolio-case-study-style-2-card-front:not([hidden]):has(> .portfolio-case-study-style-2-card-art :is(.wp-block-inline-svg-block, .wp-block-chiawei-blog-inline-svg)):has(> :is(.portfolio-case-study-style-2-card-title, h1, h2, h3, h4, h5, h6)) {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-bottom: var(--portfolio-case-study-style-2-card-header-offset) !important;
}

/* Existing inserted symbol cards default to the reduced scale too; only the
   explicit Elevated Heading pattern opts into the larger treatment. */
.post-content .portfolio-case-study-style-2-card.portfolio-case-study-style-2-card--symbol .portfolio-case-study-style-2-card-title:not(.portfolio-case-study-style-2-card-title--elevated) {
    font-size: 40px;
    letter-spacing: 0;
}
@media (min-width: 735px) and (max-width: 1068px) {
    .post-content .portfolio-case-study-style-2-card.portfolio-case-study-style-2-card--symbol .portfolio-case-study-style-2-card-title:not(.portfolio-case-study-style-2-card-title--elevated) {
        font-size: 32px;
    }
}
@media (max-width: 734px) {
    .post-content .portfolio-case-study-style-2-card.portfolio-case-study-style-2-card--symbol .portfolio-case-study-style-2-card-title:not(.portfolio-case-study-style-2-card-title--elevated) {
        font-size: 28px;
    }
}

/* Keep the single-column card grid centered after the mobile width override. */
@media (max-width: 734px) {
    .post-content .portfolio-case-study-style-2-card-grid {
        margin-inline: auto !important;
    }
}

/* Image-card art is a Group block, so reset the theme's default Group margins
   while preserving the deliberate space beneath the art. */
.post-content .portfolio-case-study-style-2-card--image .portfolio-case-study-style-2-card-front > .portfolio-case-study-style-2-card-art,
.post-content .portfolio-case-study-style-2-card--image-only .portfolio-case-study-style-2-card-front > .portfolio-case-study-style-2-card-art {
    margin: 0 0 40px 0 !important;
}
.post-content .portfolio-case-study-style-2-card--image .portfolio-case-study-style-2-card-art .wp-block-image,
.post-content .portfolio-case-study-style-2-card--image .portfolio-case-study-style-2-card-art img,
.post-content .portfolio-case-study-style-2-card--image-only .portfolio-case-study-style-2-card-art .wp-block-image,
.post-content .portfolio-case-study-style-2-card--image-only .portfolio-case-study-style-2-card-art img {
    margin-inline: auto !important;
}

/* Card content alignment is an independent front-face choice. Leave the style
   unset to preserve each pattern's own default composition. */
.post-content .portfolio-case-study-style-2-card:not(.portfolio-case-study-style-2-card--image) .portfolio-case-study-style-2-card-front:is(.is-style-portfolio-card-content-top, .is-style-portfolio-card-content-center, .is-style-portfolio-card-content-bottom):not(.wp-block-cover) {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
}
.post-content .portfolio-case-study-style-2-card:not(.portfolio-case-study-style-2-card--image) .portfolio-case-study-style-2-card-front.is-style-portfolio-card-content-top { justify-content: flex-start; }
.post-content .portfolio-case-study-style-2-card:not(.portfolio-case-study-style-2-card--image) .portfolio-case-study-style-2-card-front.is-style-portfolio-card-content-center { justify-content: center; }
.post-content .portfolio-case-study-style-2-card:not(.portfolio-case-study-style-2-card--image) .portfolio-case-study-style-2-card-front.is-style-portfolio-card-content-bottom { justify-content: flex-end; }
.post-content .portfolio-case-study-style-2-card .portfolio-case-study-style-2-card-front.wp-block-cover:is(.is-style-portfolio-card-content-top, .is-style-portfolio-card-content-center, .is-style-portfolio-card-content-bottom) > .wp-block-cover__inner-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.post-content .portfolio-case-study-style-2-card .portfolio-case-study-style-2-card-front.wp-block-cover.is-style-portfolio-card-content-top > .wp-block-cover__inner-container { justify-content: flex-start; }
.post-content .portfolio-case-study-style-2-card .portfolio-case-study-style-2-card-front.wp-block-cover.is-style-portfolio-card-content-center > .wp-block-cover__inner-container { justify-content: center; }
.post-content .portfolio-case-study-style-2-card .portfolio-case-study-style-2-card-front.wp-block-cover.is-style-portfolio-card-content-bottom > .wp-block-cover__inner-container { justify-content: flex-end; }
@media (min-width: 735px) and (max-width: 1068px) {
    .post-content .portfolio-case-study-style-2-alignment-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* A Group used for card artwork should only be anchored when it contains
   artwork. If it contains editorial blocks, let it join the front-face flow. */
.post-content .portfolio-case-study-style-2-card-front .portfolio-case-study-style-2-card-art:has(:is(p, h1, h2, h3, h4, h5, h6, ul, ol, blockquote, .wp-block-paragraph, .wp-block-heading, .wp-block-list, .wp-block-quote)) {
    position: static !important;
    inset: auto !important;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 1.25em 0 0 !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .75em;
}
.post-content .portfolio-case-study-style-2-card-front .portfolio-case-study-style-2-card-art:has(:is(p, h1, h2, h3, h4, h5, h6, ul, ol, blockquote, .wp-block-paragraph, .wp-block-heading, .wp-block-list, .wp-block-quote)) :is(p, h1, h2, h3, h4, h5, h6, ul, ol, blockquote, .wp-block-paragraph, .wp-block-heading, .wp-block-list, .wp-block-quote) {
    margin: 0 !important;
}
.post-content .portfolio-case-study-style-2-card-front .portfolio-case-study-style-2-card-art:has(:is(p, .wp-block-paragraph)) :is(p, .wp-block-paragraph) {
    max-width: var(--portfolio-case-study-style-2-card-copy-max-width);
}

/* Cover is already the image-bearing front container. Its editable foreground
   blocks stay in normal flow, with theme block margins replaced by one gap. */
.post-content .portfolio-case-study-style-2-card--cover .portfolio-case-study-style-2-card-front.wp-block-cover > .wp-block-cover__inner-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1.25em;
}
.post-content .portfolio-case-study-style-2-card--cover .portfolio-case-study-style-2-card-front.wp-block-cover > .wp-block-cover__inner-container > :is(h1, h2, h3, h4, h5, h6, p, .wp-block-heading, .wp-block-paragraph, .wp-block-group) {
    margin: 0 !important;
}

/* Wide image cards use the shared vertical-alignment styles. Their default is
   top aligned; the surrounding layout remains responsible for column spans. */
@container (min-width: 1000px) {
    .post-content .portfolio-case-study-style-2-card--image .portfolio-case-study-style-2-card-front.is-style-portfolio-card-content-center { align-items: center; }
    .post-content .portfolio-case-study-style-2-card--image .portfolio-case-study-style-2-card-front.is-style-portfolio-card-content-bottom { align-items: end; }
}

/* Section spacing lives inside each section so its surface fills the rhythm. */
.post-content .portfolio-case-study-style-2-intro { margin-top:0 !important; padding-top:50px !important; }
.post-content .portfolio-case-study-style-2-glance { margin-top:0 !important; padding-top:75px !important; }
/* The card section owns the 140px exit space; the following section starts at its boundary. */
.post-content .portfolio-case-study-style-2-card-section { margin-top:0 !important; padding-top:130px !important; padding-bottom:var(--portfolio-case-study-style-2-section-space-after) !important; }
.post-content .portfolio-case-study-style-2-capabilities { margin-top:0 !important; padding-top:100px !important; }
.post-content .portfolio-case-study-style-2.portfolio-case-study-style-2-results { margin-top:0 !important; padding-top:140px !important; }
.post-content .portfolio-case-study-style-2-intro-copy { text-align:center; }
@media(max-width:1068px) {
    .post-content .portfolio-case-study-style-2-intro { padding-top:55px !important; }
    .post-content .portfolio-case-study-style-2-glance { padding-top:64px !important; }
    .post-content .portfolio-case-study-style-2-card-section { padding-top:110px !important; }
    .post-content .portfolio-case-study-style-2.portfolio-case-study-style-2-results { padding-top:110px !important; }
}
@media(max-width:734px) {
    .post-content .portfolio-case-study-style-2-intro { padding-top:45px !important; }
    .post-content .portfolio-case-study-style-2-glance { padding-top:48px !important; }
    .post-content .portfolio-case-study-style-2-card-section { padding-top:130px !important; }
    .post-content .portfolio-case-study-style-2.portfolio-case-study-style-2-results { padding-top:135px !important; }
}

@media (max-width: 1068px) {
    .post-content .portfolio-case-study-style-2-eyebrow { margin-bottom: 1.3em !important; }
}
