/* Individual SEO/PPC case studies only. Mirrors the updated archive, not the
   legacy caseStudy selectors consumed by other detail types and sliders. */
.ac-seo-study {
    --study-ink: #1d1d1f;
    --study-muted: #6e6e73;
    --study-blue: #0055d4;
    --study-surface: #f9f7f7;
    --study-line: #dedee3;
    color: var(--study-ink);
    background: #fff;
    font-family: "Outfit", sans-serif;
}
.ac-seo-study *, .ac-seo-study *::before, .ac-seo-study *::after { box-sizing: border-box; }
/* ID scope wins over the legacy site's multi-:not alignment rules without
   changing alignment on any archive or unrelated page. */
#seo-case-study h1, #seo-case-study h2, #seo-case-study h3,
#seo-case-study .cs-prose, #seo-case-study .cs-prose p {
    text-align: left !important;
    margin-inline: 0 !important;
}
#seo-case-study .ac-study-heading,
#seo-case-study #study-testimonials .mkt-testimonials__title {
    font-size: clamp(32px, 3.4vw, 48px) !important;
    line-height: 1.08 !important;
    letter-spacing: -.04em !important;
}
.ac-seo-study .cs-prose p, .ac-seo-study .cs-prose li { color: #6e6e73 !important; font-size: 16.8px !important; line-height: 1.68 !important; }
.ac-seo-study .ac-study-container {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
}
.ac-seo-study .ac-study-section { padding: clamp(56px, 7vw, 100px) 0; scroll-margin-top: 110px; }
.ac-seo-study .ac-study-section--tinted { background: var(--study-surface); }
.ac-seo-study .ac-study-heading {
    margin: 0 0 24px;
    color: var(--study-ink);
    font-size: clamp(32px, 3.4vw, 48px);
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1.08;
    text-align: left;
}
.ac-seo-study .ac-study-eyebrow {
    display: block;
    margin: 0 0 16px;
    color: var(--study-blue);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.ac-seo-study .cs-prose {
    min-width: 0;
    color: #515157;
    font-size: 17px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}
.ac-seo-study .cs-prose p { margin: 0 0 18px; }
.ac-seo-study .cs-prose > :last-child { margin-bottom: 0; }
.ac-seo-study .cs-prose h2, .ac-seo-study .cs-prose h3, .ac-seo-study .cs-prose h4 {
    margin: 28px 0 16px;
    color: var(--study-ink);
    font-weight: 600;
    letter-spacing: -.025em;
    line-height: 1.25;
}
.ac-seo-study .cs-prose h2 { font-size: clamp(27px, 3vw, 38px); }
.ac-seo-study .cs-prose h3 { font-size: 25px; }
.ac-seo-study .cs-prose ul, .ac-seo-study .cs-prose ol { padding-left: 24px; margin: 16px 0 24px; }
.ac-seo-study .cs-prose li { margin-bottom: 8px; }
.ac-seo-study .cs-prose a { color: var(--study-blue); text-decoration: underline; text-underline-offset: 4px; }
.ac-seo-study .cs-prose img { max-width: 100%; height: auto; }
.ac-seo-study .cs-prose table { display: block; max-width: 100%; overflow-x: auto; }
.ac-seo-study a:focus-visible, .ac-seo-study [tabindex]:focus-visible {
    outline: 3px solid var(--study-blue) !important;
    outline-offset: 5px;
    border-radius: 4px;
}
.ac-seo-study .ac-study-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    color: var(--study-blue);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}
.ac-seo-study .ac-study-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.ac-seo-study .ac-study-link span { transition: transform .18s ease; }
.ac-seo-study .ac-study-link:hover span { transform: translateX(3px); }
.ac-seo-study .ac-study-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 76px); }
.ac-seo-study .ac-study-grid > :only-child { grid-column: 1 / -1; max-width: 880px; }
.ac-seo-study .ac-study-hero { padding-top: clamp(88px, 7vw, 112px); padding-bottom: clamp(48px, 6vw, 84px); }
.ac-seo-study .ac-study-hero h1 {
    margin: 0 0 24px;
    font-size: clamp(40px, 4.8vw, 68px);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1.03;
    color: var(--study-ink);
    overflow-wrap: anywhere;
}
.ac-seo-study .ac-study-hero__media { position: relative; min-width: 0; }
.ac-seo-study .ac-study-hero__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    border-radius: 20px;
    background: var(--study-surface);
}
.ac-seo-study .ac-study-hero__inset {
    display: block;
    position: absolute;
    right: 24px;
    bottom: 24px;
    width: 30%;
    max-width: 240px;
    max-height: 150px;
    object-fit: contain;
    margin: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    padding: 12px;
    background: #fff;
    border: 1px solid var(--study-line);
    border-radius: 14px;
}
.ac-seo-study .ac-study-image { display: block; width: 100%; height: auto; max-height: 540px; object-fit: contain; border-radius: 16px; }
.ac-seo-study .ac-study-image.is-fallback,
.ac-seo-study .ac-study-hero__image.is-fallback { height: 300px; object-fit: contain; padding: 48px; background: #ececf1; }
.ac-seo-study .ac-study-client__media { display: flex; justify-content: center; align-items: center; padding: 40px; background: var(--ac-band-card, #f9f7f7); border-radius: 18px; }
.ac-seo-study .ac-study-client__media img { max-height: 220px; object-fit: contain; }
.ac-seo-study .ac-study-results__intro { max-width: 850px; }
.ac-seo-study .ac-study-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; margin: 32px 0 0; }
.ac-seo-study .ac-study-stat { padding: clamp(24px, 3vw, 36px); background: var(--ac-band-card, #f9f7f7); border: 1px solid var(--study-line); border-radius: 18px; }
.ac-seo-study .ac-study-stat__value { display: block; margin-bottom: 12px; color: var(--study-blue); font-size: clamp(32px, 3.4vw, 48px); font-weight: 700; line-height: 1.1; letter-spacing: -.04em; overflow-wrap: anywhere; }
.ac-seo-study .ac-study-stat .cs-prose { font-size: 16px; line-height: 1.5; }
/* Objective only: open editorial columns, not stacked cards. Keep the CMS
   counters, titles, prose and links in their original template order. */
.ac-seo-study .ac-study-objective { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 5vw, 64px); align-items: start; }
#seo-case-study #study-objective .ac-study-eyebrow { display: none; }
#seo-case-study #study-objective .ac-study-heading { margin: 0; text-align: center !important; }
.ac-seo-study .ac-study-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--study-line); }
.ac-seo-study .ac-study-step { min-width: 0; padding: 36px clamp(24px, 3vw, 36px) 40px; background: transparent; border-radius: 0; }
.ac-seo-study .ac-study-step + .ac-study-step { border-left: 1px solid var(--study-line); }
.ac-seo-study .ac-study-step h3 { margin: 0 0 12px; color: var(--study-ink); font-size: 18px; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
.ac-seo-study .ac-study-step .cs-prose { font-size: 15px; line-height: 1.8; }
#seo-case-study #study-objective .cs-prose,
#seo-case-study #study-objective .cs-prose p,
#seo-case-study #study-objective .cs-prose li { color: var(--study-muted) !important; }
.ac-seo-study .ac-study-step__counter { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-bottom: 18px; color: var(--study-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.ac-seo-study .ac-study-step__counter span { padding: 0; color: var(--study-line); background: transparent; border-radius: 0; font-size: 42px; font-weight: 700; line-height: 1; letter-spacing: -.05em; }
.ac-seo-study .ac-study-campaign__panel { position: relative; padding: clamp(24px, 3vw, 40px); border-radius: 18px; background: var(--ac-band-card, #fff); overflow: hidden; }
.ac-seo-study .ac-study-campaign__background { width: 100%; height: auto; max-height: 260px; object-fit: cover; margin-bottom: 24px; border-radius: 12px; }
.ac-seo-study .ac-study-campaign__panel .ac-study-stat__value { font-size: clamp(38px, 4vw, 58px); }
.ac-seo-study .ac-study-campaign__panel .ac-study-image { margin-top: 24px; }
/* Campaign only: the statistic/media remains intact below the full-width rows. */
.ac-seo-study .ac-study-campaign__layout { display: block; }
.ac-seo-study .ac-study-campaign__intro { margin-bottom: 32px; }
.ac-seo-study .ac-study-campaign__pills { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 36px; list-style: none; }
.ac-seo-study .ac-study-campaign__pills li { max-width: 100%; padding: 9px 17px; border: 1px solid var(--study-line); border-radius: 100px; color: var(--study-ink); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.ac-seo-study .ac-study-campaign__row { border-top: 1px solid #d5d5da; }
.ac-seo-study .ac-study-campaign__row:last-child { border-bottom: 1px solid #d5d5da; }
.ac-seo-study .ac-study-campaign__row summary { display: grid; grid-template-columns: 42px minmax(0, 1fr) 28px; align-items: baseline; gap: 24px; padding: 30px 0; cursor: pointer; list-style: none; color: var(--study-ink); }
.ac-seo-study .ac-study-campaign__row summary::-webkit-details-marker { display: none; }
.ac-seo-study .ac-study-campaign__number { color: #8a8a8f; font-size: 14px; font-weight: 600; }
.ac-seo-study .ac-study-campaign__label { font-size: clamp(23px, 3vw, 38px); font-weight: 700; letter-spacing: -.035em; line-height: 1.2; overflow-wrap: anywhere; }
.ac-seo-study .ac-study-campaign__arrow { color: #8a8a8f; font-size: 30px; line-height: 1; transition: transform .2s ease; }
.ac-seo-study .ac-study-campaign__row[open] .ac-study-campaign__label,
.ac-seo-study .ac-study-campaign__row[open] .ac-study-campaign__arrow { color: var(--study-blue); }
.ac-seo-study .ac-study-campaign__row[open] .ac-study-campaign__arrow { transform: rotate(90deg); }
.ac-seo-study .ac-study-campaign__body { padding: 0 52px 32px 66px; }
.ac-seo-study .ac-study-campaign__layout > .ac-study-campaign__panel { margin-top: 40px; background: var(--ac-band-card, #fff); border: 1px solid var(--study-line); }
.ac-seo-study summary:focus-visible, .ac-seo-study button:focus-visible { outline: 3px solid var(--study-blue); outline-offset: 4px; }
/* Reuse the shared Swiper engine, with the original case-study cards. */
.ac-seo-study .ac-study-related.swiper { display: block; overflow-x: auto; }
.ac-seo-study .ac-study-related.swiper-initialized { overflow: hidden; }
.ac-seo-study .ac-study-related .swiper-wrapper { display: flex; align-items: stretch; height: auto; }
.ac-seo-study .ac-study-related .swiper-slide { width: calc((100% - 32px) / 3); height: auto; }
.ac-seo-study .ac-study-related:not(.swiper-initialized) .swiper-slide:not(:last-child) { margin-right: 16px; }
.ac-seo-study .ac-study-related__controls { display: flex; justify-content: flex-end; gap: 12px; padding: 24px 0 4px; }
#seo-case-study .ac-study-related__controls button { position: static; display: inline-flex; justify-content: center; align-items: center; width: 44px; height: 44px; margin: 0; border: 1px solid var(--study-line); border-radius: 50%; color: var(--study-blue); background: #fff; font: inherit; font-size: 24px; cursor: pointer; transform: none; }
#seo-case-study .ac-study-related__controls button::after { content: none; }
#seo-case-study .ac-study-related__controls button:disabled { opacity: .35; cursor: default; }
@media (max-width: 991px) {
    .ac-seo-study .ac-study-related .swiper-slide { width: calc((100% - 16px) / 2); }
}
@media (max-width: 767px) {
    .ac-seo-study .ac-study-campaign__row summary { grid-template-columns: 28px minmax(0, 1fr) 24px; gap: 12px; padding: 24px 0; }
    .ac-seo-study .ac-study-campaign__body { padding: 0 0 26px 40px; }
    .ac-seo-study .ac-study-related .swiper-slide { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .ac-seo-study .ac-study-campaign__arrow { transition: none; }
}
.ac-seo-study #study-testimonials { scroll-margin-top: 110px; }
.ac-seo-study #study-testimonials .mkt-testimonials { padding: clamp(48px, 6vw, 88px) 0; background: #fff; }
.ac-seo-study #study-testimonials .container { width: min(1200px, calc(100% - 48px)); max-width: none; padding: 0; }
.ac-seo-study #study-testimonials .mkt-testimonials__head { text-align: left; margin-bottom: 28px; }
.ac-seo-study #study-testimonials .mkt-testimonials__title { font-size: clamp(30px, 3.3vw, 46px); font-weight: 700; letter-spacing: -.04em; text-align: left; }
.ac-seo-study #study-testimonials .mkt-testimonials__grid { display: grid; grid-template-columns: 1fr; grid-auto-rows: auto; gap: 18px; max-width: none; margin-inline: 0; }
.ac-seo-study #study-testimonials .mkt-tcard { padding: clamp(24px, 3vw, 40px); height: auto; background: #f9f7f7; border-radius: 16px; transform: none; }
.ac-seo-study #study-testimonials .mkt-tcard__quote { height: auto !important; max-height: none !important; overflow: visible !important; flex: none; padding-right: 0; white-space: pre-line; font-size: 18px; line-height: 1.7; }
.ac-seo-study #study-testimonials .wow { visibility: visible !important; animation: none !important; }
.ac-seo-study .ac-study-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.ac-seo-study .ac-study-card { display: flex; flex-direction: column; min-width: 0; background: var(--ac-band-card, #fff); border-radius: 26px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.ac-seo-study .ac-study-card__image { display: block; flex: 0 0 200px; width: 100%; height: 200px; background: #e9e9ee; overflow: hidden; }
.ac-seo-study .ac-study-card__image img { display: block; width: 100%; height: 200px; object-fit: cover; object-position: top center; }
.ac-seo-study .ac-study-card__image img.is-fallback { object-fit: contain; padding: 40px; }
.ac-seo-study .ac-study-card__body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 24px; }
.ac-seo-study .ac-study-card__pill { display: inline-flex; padding: 4px 12px; margin-bottom: 14px; background: rgba(0,85,212,.09); color: var(--study-blue); border-radius: 100px; font-size: 11px; font-weight: 600; letter-spacing: .07em; line-height: 1.5; text-transform: uppercase; }
.ac-seo-study .ac-study-card h3 { margin: 0 0 12px; font-size: 21px; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; text-align: left; }
.ac-seo-study .ac-study-card h3 a { color: var(--study-ink); }
.ac-seo-study .ac-study-card__excerpt { margin: 0 0 20px; color: var(--study-muted); font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.ac-seo-study .ac-study-card__cta { margin-top: auto; color: var(--study-blue); font-size: 14px; font-weight: 600; display: inline-flex; gap: 10px; align-items: center; }
@media (max-width: 991px) {
    .ac-seo-study .ac-study-related { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .ac-seo-study .ac-study-grid { gap: 32px; }
}
@media (max-width: 767px) {
    .ac-seo-study .ac-study-container, .ac-seo-study #study-testimonials .container { width: calc(100% - 36px); }
    .ac-seo-study .ac-study-grid, .ac-seo-study .ac-study-objective, .ac-seo-study .ac-study-related, .ac-seo-study .ac-study-stats { grid-template-columns: minmax(0, 1fr); }
    .ac-seo-study .ac-study-hero h1 { font-size: clamp(38px, 10vw, 52px); }
    .ac-seo-study .ac-study-hero__image { max-height: 350px; }
    .ac-seo-study .ac-study-hero__inset { position: static; width: 46%; max-width: 180px; margin: -40px 16px 0 auto; }
    .ac-seo-study .ac-study-card__body { padding: 22px; }
    .ac-seo-study .ac-study-image.is-fallback { height: 240px; }
    .ac-seo-study .ac-study-steps { grid-template-columns: minmax(0, 1fr); }
    .ac-seo-study .ac-study-step { padding: 28px 0 32px; }
    .ac-seo-study .ac-study-step + .ac-study-step { border-left: 0; border-top: 1px solid var(--study-line); }
}
@media (prefers-reduced-motion: reduce) {
    .ac-seo-study .ac-study-link span { transition: none; }
}

/* ---------------------------------------------------------------------------
 * The brief, the work, and what changed.
 *
 * The page used to run headline -> figures -> a list of work -> related
 * studies. It never said what the figures were measured from, and never said
 * what the work was worth. These three carry that, and every one of them is
 * built from components the Marketing and Web Design pages already use - see
 * docs/design-system.md. Nothing new was invented for this page.
 *
 * The brief and the outcome share one shape: the heading holds a narrow left
 * column and the prose a wide right one, which is how the reference pages set
 * a section that is mostly reading.
 * ------------------------------------------------------------------------- */
.ac-seo-study .ac-proof-brief,
.ac-seo-study .ac-proof-strategy,
.ac-seo-study .ac-proof-challenge,
.ac-seo-study .ac-proof-outcome { --study-head-offset: 120px; }
.ac-seo-study .ac-proof-brief__layout,
.ac-seo-study .ac-proof-challenge__layout,
.ac-seo-study .ac-proof-strategy__layout,
.ac-seo-study .ac-proof-outcome__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 24px 72px;
    align-items: start;
}
/* The heading pins while its prose scrolls past, the way the FAQ and the
 * "problems you're facing" guides do. align-self: start is what makes it work:
 * a grid child stretches to the row height by default, which leaves sticky no
 * travel and no visible effect. The containing block is the grid area, so the
 * heading releases at the bottom of its own row rather than following the
 * reader down the page.
 *
 * Only below 992px does this stack, and a sticky heading on a phone would eat
 * the viewport, so it is desktop only. A short brief gets no travel and simply
 * sits where it always did - the pin only shows when there is more to read. */
@media (min-width: 992px) {
    .ac-seo-study .ac-proof-brief__head,
    .ac-seo-study .ac-proof-challenge__head,
    .ac-seo-study .ac-proof-strategy__head,
    .ac-seo-study .ac-proof-outcome__head {
        position: sticky;
        top: var(--study-head-offset, 120px);
        align-self: start;
    }
}
.ac-seo-study .ac-proof-brief__body .cs-prose p:first-child {
    margin-top: 0;
    color: #1d1d1f !important;
    font-size: 19px !important;
    line-height: 1.68 !important;
}
.ac-seo-study .ac-proof-outcome__body p:first-child { margin-top: 0; }

/* The baseline a figure is measured from. A quiet note, not a card: a box
   here would compete with the figures it exists to explain. */
.ac-seo-study .ac-proof-baseline {
    margin-top: 32px;
    padding: 22px 26px;
    border-left: 3px solid #0071e3;
    border-radius: 0 12px 12px 0;
    background: var(--ac-band-card, #f9f7f7);
}
.ac-seo-study .ac-proof-baseline__label {
    display: block;
    margin-bottom: 8px;
    color: var(--study-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.ac-seo-study .ac-proof-baseline p {
    margin: 0;
    color: var(--study-muted);
    font-size: 16.8px;
    line-height: 1.68;
}

/* The work, in two columns, all of it visible. These are the site's text cell
   at its measured values: transparent, square, 40px 32px 44px, and a 2px
   #0071e3 rule that wipes across the top edge on hover. The outer cells lose
   their side padding so the column edges line up with the heading above. */
.ac-seo-study .ac-proof-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-top: 44px;
}
.ac-seo-study .ac-proof-step {
    position: relative;
    padding: 40px 32px 44px;
    background: transparent;
    border: 0;
    border-radius: 0;
}
.ac-seo-study .ac-proof-step:nth-child(odd) { padding-left: 0; }
.ac-seo-study .ac-proof-step:nth-child(even) { padding-right: 0; }
/* The rules between cells.
 *
 * Measured on .mkt-why-item and .ac-seo-different__item, which carry the same
 * lattice on both reference pages: a vertical rule between columns and a
 * horizontal rule between rows, 1px rgba(0,0,0,.12), with no rule on the
 * outside of the grid - nothing above the first row and nothing right of the
 * last column. The hover bar sits ON the row rule, which is why it reads as
 * the rule lighting up rather than a line appearing out of nowhere.
 *
 * An earlier pass here reported this component as having no border at all.
 * That reading came from sampling cells 0-2, which are the top row and the
 * last column - the three cells in the grid that genuinely have no rule. */
.ac-seo-study .ac-proof-step { border-right: 1px solid rgba(0, 0, 0, .12); }
.ac-seo-study .ac-proof-step:nth-child(even) { border-right: 0; }
.ac-seo-study .ac-proof-step:nth-child(n+3) { border-top: 1px solid rgba(0, 0, 0, .12); }
.ac-seo-study .ac-proof-step::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #0071e3;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
}
.ac-seo-study .ac-proof-step:hover::before { transform: scaleX(1); }
.ac-seo-study .ac-proof-step__number {
    display: block;
    margin-bottom: 14px;
    color: #0071e3;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
}
.ac-seo-study .ac-proof-step__title {
    margin: 0 0 10px;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.25;
}
.ac-seo-study .ac-proof-step__body p { margin: 0; }
.ac-seo-study .ac-proof-step__body p + p { margin-top: 10px; }

@media (max-width: 991px) {
    .ac-seo-study .ac-proof-brief__layout,
    .ac-seo-study .ac-proof-strategy__layout,
    .ac-seo-study .ac-proof-challenge__layout,
    .ac-seo-study .ac-proof-outcome__layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 767px) {
    .ac-seo-study .ac-proof-steps { grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
    .ac-seo-study .ac-proof-step { padding: 30px 0 32px; border-right: 0; }
    .ac-seo-study .ac-proof-step:nth-child(n+2) { border-top: 1px solid rgba(0, 0, 0, .12); }
    .ac-seo-study .ac-proof-brief__body .cs-prose p:first-child { font-size: 18px !important; }
}

/* The hero summary. The mockup carried a line under the headline and the
   build shipped without one, so the hero ran straight from title to pills.
   Measurements are the reference hero's intro: 780px, centred, muted. */
.ac-seo-study #study-hero .ac-proof-summary {
    max-width: 780px;
    margin: 0 auto 26px;
    color: var(--study-muted);
    font-size: 17px;
    line-height: 1.68;
    text-align: center;
}
@media (max-width: 767px) {
    .ac-seo-study #study-hero .ac-proof-summary { font-size: 16px; margin-bottom: 22px; }
}

/* The campaign stat, over its panel. The figure is the point of the panel;
   the images are its setting, so it sits on top of them rather than beside. */
.ac-seo-study .ac-study-campaign__stat {
    position: absolute;
    left: clamp(24px, 3vw, 40px);
    bottom: clamp(24px, 3vw, 40px);
    padding: 20px 24px;
    border-radius: 14px;
    background: #121214;
    color: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .18);
}
.ac-seo-study .ac-study-campaign__stat strong {
    display: block;
    color: #ffd84d;
    font-size: clamp(28px, 2.6vw, 36px);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1;
}
.ac-seo-study .ac-study-campaign__stat span {
    display: block;
    margin-top: 7px;
    color: #c7c7cf;
    font-size: 13px;
    line-height: 1.45;
}
@media (max-width: 767px) {
    .ac-seo-study .ac-study-campaign__stat { left: 16px; bottom: 16px; padding: 14px 16px; border-radius: 12px; }
    .ac-seo-study .ac-study-campaign__stat span { font-size: 12px; }
}

/* The overview image sits under its prose, in the same column: a traffic chart
   or a screenshot is evidence for the paragraph above it, not a separate thing. */
.ac-seo-study .ac-proof-outcome__media {
    margin: 28px 0 0;
    padding: 0;
}
.ac-seo-study .ac-proof-outcome__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    border: 1px solid var(--study-line);
    background: var(--ac-band-card, #f9f7f7);
}

/* The objectives grid stacks rather than squeezing three columns onto a phone. */
@media (max-width: 991px) {
    .ac-seo-study .ac-study-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ac-seo-study .ac-study-step:nth-child(2n+1) { border-left: 0; }
}
@media (max-width: 767px) {
    .ac-seo-study .ac-study-steps { grid-template-columns: minmax(0, 1fr); }
    .ac-seo-study .ac-study-step { padding: 28px 0 30px; }
    .ac-seo-study .ac-study-step + .ac-study-step { border-left: 0; border-top: 1px solid var(--study-line); }
}

/* A strategy of several steps is a sequence, so the steps are separated by a
   rule rather than boxed - the same hairline the objectives grid uses. One
   step, which is what every study has until the repeater is filled, shows no
   rule at all and reads exactly as the single block did. */
.ac-seo-study .ac-proof-strategy__step + .ac-proof-strategy__step {
    margin-top: 36px;
    padding-top: 36px;
    border-top: 1px solid var(--study-line);
}
.ac-seo-study .ac-proof-strategy__step-title {
    margin: 0 0 12px;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.25;
}

/* Where a figure came from and when. Quiet by design: it is provenance, not a
   headline, and it must not compete with the number above it. */
.ac-seo-study .ac-study-stat__note {
    margin: 14px 0 0;
    color: var(--study-muted);
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: .01em;
}

/* The paragraph that explains the three figures. Centred under the centred
   heading and capped at the hero intro's width, so the band reads as one
   block: heading, the sentence that frames the numbers, then the numbers. */
#seo-case-study .ac-proof-results__intro,
#seo-case-study .ac-proof-results__intro p {
    text-align: center !important;
    margin-inline: auto !important;
}
#seo-case-study .ac-proof-results__intro {
    max-width: 780px;
    margin-top: -14px;
    margin-bottom: 40px;
}
#seo-case-study .ac-proof-results__intro p { margin-bottom: 14px; }
#seo-case-study .ac-proof-results__intro p:last-child { margin-bottom: 0; }
@media (max-width: 767px) {
    #seo-case-study .ac-proof-results__intro { margin-top: -6px; margin-bottom: 28px; }
}

/* The strategy section's lead image, under its heading.
   Fills the column the heading used to sit in alone. It scrolls with the
   sticky heading, so it stays in view while the approach is read beside it. */
.ac-seo-study .ac-proof-strategy__lead-media {
    margin: 28px 0 0;
    padding: 0;
}
.ac-seo-study .ac-proof-strategy__lead-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    border: 1px solid var(--study-line);
    background: var(--ac-band-card, #f9f7f7);
}
@media (max-width: 991px) {
    .ac-seo-study .ac-proof-strategy__lead-media { margin-top: 20px; max-width: 420px; }
}

/* The challenge, one row per problem. A rule between rows, not a box around
   each: Objectives above and The campaign below are both grids of cells, and a
   third would make the middle of the page a wall of them. */
.ac-seo-study .ac-proof-challenge__item + .ac-proof-challenge__item {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--study-line);
}
.ac-seo-study .ac-proof-challenge__item-title {
    margin: 0 0 12px;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.25;
}
