/* Homepage long-form content layouts. Uses the existing site palette and components. */
.home-page {
    --home-section-space: clamp(72px, 5vw, 105px);
    --home-feature-space: var(--home-section-space);
    --home-compact-space: clamp(48px, 5vw, 72px);
    --home-header-space: clamp(32px, 4vw, 52px);
}

.home-page .hero-v2-inner {
    width: min(100% - clamp(48px, 6vw, 120px), 1440px);
    max-width: none;
    padding-inline: 0;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
    gap: clamp(48px, 5vw, 96px);
}

.home-page .hero-v2-text {
    width: 100%;
    min-width: 0;
    max-width: 760px;
}

.home-page .hero-v2-visual {
    min-width: 0;
    max-width: 100%;
    justify-content: flex-end;
}

.home-page .hero-headline,
.home-page .hero-v2-body {
    max-width: 100%;
}

.home-page .animated-seo-network {
    max-width: min(500px, 100%);
}

.home-page #main-content > .stats-row-section,
.home-page #main-content > .tools-belt-section {
    padding-top: var(--home-compact-space);
    padding-bottom: var(--home-compact-space);
}

.home-page #main-content > .services-grid-section,
.home-page #main-content > .portfolio-preview-section,
.home-page #main-content > .testimonials-section,
.home-page #main-content > .home-final-cta-section,
.home-page #main-content > .home-content-section,
.home-page #main-content > .home-section,
.home-page #main-content > .homepage-section,
.home-page #main-content > .home-feature-section {
    padding-top: var(--home-section-space);
    padding-bottom: var(--home-section-space);
}

.home-page #main-content > :is(
    .section-has-bg,
    .section-alt-bg,
    .section-muted,
    .section-panel
) {
    padding-top: var(--home-section-space);
    padding-bottom: var(--home-section-space);
}

/* Same-background siblings share one spacing interval instead of adding two. */
.home-page #main-content > section:not(
    .hero-v2,
    .trust-bar,
    .section-has-bg,
    .section-alt-bg,
    .section-muted,
    .section-panel
) + section:not(
    .section-has-bg,
    .section-alt-bg,
    .section-muted,
    .section-panel
) {
    padding-top: 0;
}

.home-page #main-content > section:not(.hero-v2):not(.trust-bar) {
    margin-top: 0;
    margin-bottom: 0;
}

.home-page #main-content > section:not(.hero-v2):not(.trust-bar) > .container {
    width: min(1180px, calc(100% - 48px));
    max-width: none;
    margin-inline: auto;
    margin-block: 0;
    padding-inline: 0;
}

.home-page #main-content .section-header-v2 {
    width: 100%;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--home-header-space);
}

.home-page #main-content .section-header-v2 > p {
    max-width: 720px;
    margin: 16px auto 0;
    line-height: 1.7;
}

.home-section-header {
    max-width: 850px;
}

.home-section-header .section-title {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.home-section-intro {
    max-width: 720px;
    margin: 16px auto 0;
    color: var(--color-text-muted);
    font-size: clamp(16px, 1.6vw, 18px);
    line-height: 1.7;
}

.home-two-column,
.home-wide-copy {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 36px;
    align-items: stretch;
}

.home-two-column--feature {
    align-items: center;
}

.home-two-column > *,
.home-wide-copy > * {
    min-width: 0;
}

.home-copy-panel {
    padding: clamp(28px, 4vw, 40px);
}

.home-copy-panel h3 {
    margin-bottom: 16px;
    font-size: clamp(19px, 2vw, 24px);
    line-height: 1.3;
}

.home-copy-panel p,
.home-split-copy p,
.home-wide-copy p {
    color: var(--color-text-muted);
    font-size: 16px;
    line-height: 1.75;
}

.home-copy-panel p + p,
.home-split-copy p + p {
    margin-top: 18px;
}

.home-copy-panel a,
.home-split-copy a,
.home-wide-copy a,
.home-faq-answer a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.home-copy-emphasis {
    color: var(--color-text-primary) !important;
    font-weight: 600;
}

.home-split-copy .section-title {
    margin-bottom: 24px;
}

.home-feature-grid,
.home-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.home-feature-card,
.home-compact-card,
.home-service-card {
    height: 100%;
    padding: 26px;
}

.home-feature-card,
.home-compact-card {
    display: flex;
    flex-direction: column;
}

.home-feature-card h3,
.home-compact-card h3,
.home-service-card h3 {
    margin: 16px 0 10px;
    font-size: 18px;
    line-height: 1.35;
}

.home-feature-card p,
.home-compact-card p,
.home-service-card > p,
.home-card-note {
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.7;
}

.home-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: var(--color-primary);
}

.iowa-image-card {
    position: relative;
    isolation: isolate;
    width: 100%;
    height: clamp(300px, 34vw, 410px);
    margin: 0 auto 48px;
    overflow: hidden;
    background: var(--color-bg-dark);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow:
        0 22px 60px rgba(0, 0, 0, 0.28),
        0 0 36px rgba(110, 226, 104, 0.08);
}

.iowa-image-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.88) contrast(1.06) brightness(0.72);
}

.iowa-image-card::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3, 8, 4, 0.8), rgba(3, 8, 4, 0.28)),
        linear-gradient(135deg, rgba(110, 226, 104, 0.2), transparent 58%);
    pointer-events: none;
}

.iowa-image-content {
    position: absolute;
    z-index: 2;
    left: clamp(24px, 5vw, 56px);
    right: clamp(24px, 5vw, 56px);
    bottom: clamp(24px, 5vw, 48px);
    max-width: 560px;
}

.iowa-image-content span {
    color: #6EE268;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.85);
    text-transform: uppercase;
}

.iowa-image-content h3,
.iowa-image-content p {
    color: #FFFFFF;
    text-shadow: 0 2px 22px rgba(0, 0, 0, 0.9);
}

.iowa-image-content p {
    margin-top: 12px;
    font-size: clamp(16px, 1.7vw, 19px);
    line-height: 1.6;
    opacity: 0.96;
}

.home-fit-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
}

.home-wide-copy {
    margin-top: 32px;
    padding: clamp(28px, 4vw, 40px);
}

.home-wide-copy h3 {
    margin-bottom: 12px;
    font-size: 19px;
}

.home-service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.home-service-card {
    display: flex;
    flex-direction: column;
}

.home-card-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.home-card-heading h3 {
    margin: 0;
}

.home-card-list {
    display: grid;
    gap: 10px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.home-card-list li {
    position: relative;
    padding-left: 24px;
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.55;
}

.home-card-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

.home-card-note {
    margin-top: 18px;
}

.home-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-top: auto;
    padding-top: 20px;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.home-card-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.website-showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.website-showcase-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.22),
        0 0 28px rgba(110, 226, 104, 0.06);
    cursor: default;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.website-showcase-card:hover {
    border-color: rgba(110, 226, 104, 0.5);
    box-shadow:
        0 19px 48px rgba(0, 0, 0, 0.24),
        0 0 28px rgba(110, 226, 104, 0.08);
}

.website-screenshot-frame {
    overflow: hidden;
    background: #0B0F0C;
    border-bottom: 1px solid var(--color-border);
}

.website-browser-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 16px;
    background: #101611;
    border-bottom: 1px solid rgba(110, 226, 104, 0.14);
}

.website-browser-bar span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(110, 226, 104, 0.7);
}

.website-browser-bar span:nth-child(2) {
    opacity: 0.62;
}

.website-browser-bar span:nth-child(3) {
    opacity: 0.38;
}

.website-screenshot-viewport {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.website-screenshot-viewport::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(110, 226, 104, 0.08), transparent 48%);
    pointer-events: none;
}

.website-screenshot-viewport img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.website-showcase-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.website-showcase-content h3 {
    margin-bottom: 10px;
    font-size: clamp(20px, 2vw, 24px);
}

.website-showcase-content p {
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.65;
}

.website-showcase-content .home-card-link {
    margin-top: auto;
}

.home-check-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 104px;
    padding: 22px;
}

.home-check-card h3 {
    font-size: 16px;
    line-height: 1.4;
}

.home-difference-list {
    display: grid;
    gap: 14px;
}

.home-difference-card {
    display: flex;
    gap: 16px;
    padding: 20px 22px;
}

.home-difference-card h3 {
    margin-bottom: 5px;
    font-size: 16px;
}

.home-difference-card p {
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.home-process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.home-process-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 26px;
}

.home-process-card .service-process-num {
    font-size: 42px;
}

.home-process-card h3 {
    min-height: 48px;
}

.home-process-card p {
    line-height: 1.7;
}

.home-note-card {
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 900px;
    margin: 28px auto 0;
    padding: 22px 26px;
}

.home-note-card p {
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.7;
}

.home-audience-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.home-audience-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 88px;
    padding: 20px;
}

.home-audience-card i {
    width: 24px;
    color: var(--color-primary);
    font-size: 18px;
    text-align: center;
}

.home-audience-card h3 {
    font-size: 15px;
    line-height: 1.4;
}

.home-subsection-header {
    max-width: 760px;
    margin: clamp(52px, 7vw, 76px) auto 28px;
    text-align: center;
}

.home-subsection-header h3 {
    margin-bottom: 12px;
    font-size: clamp(24px, 3vw, 34px);
}

.home-subsection-header p {
    color: var(--color-text-muted);
    line-height: 1.7;
}

.home-problem-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.home-problem-card {
    grid-column: span 2;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 82px;
    padding: 20px 22px;
}

.home-problem-card:last-child:nth-child(odd) {
    grid-column: 2 / span 2;
}

.home-problem-card p {
    color: var(--color-text-primary);
    font-size: 15px;
    line-height: 1.55;
}

.home-closing-copy {
    max-width: 820px;
    margin: 30px auto 0;
    color: var(--color-text-muted);
    font-size: 17px;
    line-height: 1.75;
    text-align: center;
}

.common-problems-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
    gap: 32px;
    align-items: center;
}

.common-problems-layout .home-problem-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.common-problems-layout .home-problem-card {
    grid-column: span 1;
}

.common-problems-layout .home-problem-card:last-child:nth-child(odd) {
    grid-column: 1;
}

.common-problems-image-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--color-border);
    background: var(--card-bg);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.common-problems-image-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

@media (max-width: 900px) {
    .common-problems-layout {
        grid-template-columns: 1fr;
    }

    .common-problems-layout .home-problem-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .common-problems-layout {
        gap: 24px;
    }

    .common-problems-layout .home-problem-grid {
        grid-template-columns: 1fr;
    }

    .common-problems-layout .home-problem-card {
        grid-column: 1;
    }

    .common-problems-layout .home-problem-card:last-child:nth-child(odd) {
        grid-column: 1;
    }
}

.search-performance-section .gsc-proof-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(28px, 4vw, 48px);
}

.search-performance-section .gsc-proof-layout > * {
    min-width: 0;
}

.search-performance-section .gsc-proof-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.search-performance-section .gsc-proof-copy > h2 {
    max-width: 850px;
    margin-bottom: 18px;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.16;
}

.search-performance-section .gsc-proof-copy > p {
    max-width: 760px;
    margin: 18px auto 0;
    color: var(--color-text-muted);
    font-size: 16px;
    line-height: 1.7;
}

.search-performance-section .gsc-proof-points {
    width: 100%;
    max-width: 1120px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin: 0 auto;
}

.gsc-proof-point {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 16px 18px;
    height: 100%;
    background: var(--bg-glass);
    border: 1px solid var(--color-border);
    border-radius: 24px;
}

.gsc-proof-point h4 {
    margin-bottom: 4px;
    color: var(--color-text-primary);
    font-size: 16px;
    line-height: 1.4;
}

.gsc-proof-point p {
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.search-performance-section .search-console-slider {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
}

.search-performance-section .search-console-slider-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1.8 / 1;
    max-height: 430px;
    overflow: hidden;
    background: #eef2f8;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow:
        0 22px 60px rgba(0, 0, 0, 0.28),
        0 0 36px rgba(110, 226, 104, 0.08);
}

.search-console-slider-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(135deg, rgba(110, 226, 104, 0.1), transparent 48%);
    pointer-events: none;
}

.search-console-slide {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(18px) scale(0.992);
    transition:
        opacity 0.45s ease,
        transform 0.45s ease,
        visibility 0s linear 0.45s;
}

.search-console-slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
    transition-delay: 0s;
}

.search-console-slide img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 400px;
    object-fit: contain;
    filter: saturate(0.95) contrast(1.04);
}

.search-performance-section .search-console-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 16px;
}

.search-console-slider-arrow {
    display: inline-grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    color: var(--color-primary);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    cursor: pointer;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.search-console-slider-arrow:hover,
.search-console-slider-arrow:focus-visible {
    color: #071108;
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.search-console-slider-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.search-console-slider-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    background: var(--color-text-muted);
    border: 0;
    border-radius: 999px;
    opacity: 0.42;
    cursor: pointer;
    transition:
        width 0.25s ease,
        background-color 0.25s ease,
        opacity 0.25s ease;
}

.search-console-slider-dot.is-active {
    width: 28px;
    background: var(--color-primary);
    opacity: 1;
}

.search-console-slider-dot:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
}

.search-console-slider-status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    .search-console-slide,
    .search-console-slider-arrow,
    .search-console-slider-dot {
        transition: none;
    }
}

@media (max-width: 900px) {
    .search-performance-section .gsc-proof-points {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .search-performance-section .search-console-slider {
        max-width: 100%;
    }

    .search-performance-section .search-console-slider-frame {
        aspect-ratio: 1.7 / 1;
        max-height: 340px;
    }

    .search-console-slide img {
        max-height: 320px;
    }
}

@media (max-width: 640px) {
    .search-performance-section .gsc-proof-layout {
        gap: 28px;
    }

    .search-performance-section .gsc-proof-copy {
        text-align: center;
    }

    .search-performance-section .gsc-proof-points {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .search-performance-section .search-console-slider-controls {
        margin-top: 12px;
    }

    .search-performance-section .search-console-slider-frame {
        aspect-ratio: 1.6 / 1;
        max-height: 280px;
    }

    .search-console-slide img {
        max-height: 260px;
    }
}

@media (max-width: 480px) {
    .search-console-slide img {
        max-height: 220px;
    }

    .search-performance-section .search-console-slider-frame {
        max-height: 240px;
    }
}

.home-faq-list {
    width: 100%;
    max-width: 960px;
    gap: 16px;
}

.home-faq-list .faq-item {
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.home-faq-list .faq-item summary {
    position: relative;
    padding: 24px 68px 24px 28px;
    color: var(--color-text-primary);
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.45;
}

.home-faq-list .faq-item summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 28px;
    width: 30px;
    height: 30px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
    text-align: center;
    transform: translateY(-50%);
}

.home-faq-list .faq-item[open] summary::after {
    content: "-";
}

.home-faq-answer {
    max-width: 850px;
    padding: 0 28px 26px;
}

.home-faq-list .faq-item p {
    padding: 0;
    color: var(--color-text-muted);
    font-size: 16px;
    line-height: 1.8;
}

.home-final-cta-section {
    padding-top: var(--home-section-space);
    padding-bottom: var(--home-section-space);
}

.home-final-cta {
    padding: clamp(44px, 7vw, 72px) clamp(24px, 6vw, 64px);
}

.home-final-cta h2 {
    max-width: 820px;
    margin: 0 auto;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.15;
}

.home-cta-copy {
    display: grid;
    gap: 14px;
    max-width: 790px;
    margin: 24px auto 0;
}

.home-final-cta .home-cta-copy p {
    max-width: none;
    margin: 0;
    font-size: 16px;
    line-height: 1.75;
}

.home-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 32px;
}

.home-page .tools-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: stretch;
}

@media (min-width: 1101px) {
    .home-page .home-services-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.home-page .tool-card,
.home-page .home-services-grid > .how-i-help-card,
.home-page .portfolio-preview-card,
.home-page .portfolio-preview-body {
    height: 100%;
}

.home-page .home-services-grid > .how-i-help-card,
.home-page .portfolio-preview-card,
.home-page .portfolio-preview-body {
    display: flex;
    flex-direction: column;
}

.home-page .home-services-grid .service-card-v2-link,
.home-page .portfolio-preview-link {
    margin-top: auto;
}

.home-page .portfolio-preview-body p {
    flex: 1;
}

.home-page .portfolio-preview-section .container > p:last-child {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 32px !important;
}

.home-page .portfolio-preview-section .container > p:last-child > span {
    display: none !important;
}

.home-page .testimonials-slider-wrap,
.home-page .testimonials-track,
.home-page .testimonial-slide {
    min-width: 0;
}

.home-page .testimonials-slider-wrap {
    width: 100%;
}

@media (max-width: 1024px) {
    .home-page .hero-v2-inner {
        width: min(calc(100% - 64px), 100%);
        grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
        gap: clamp(36px, 4vw, 56px);
    }

    .home-fit-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .home-fit-grid > * {
        grid-column: span 2;
    }

    .home-fit-grid > :last-child:nth-child(odd) {
        grid-column: 2 / span 2;
    }

    .home-process-grid,
    .home-audience-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .home-page .tools-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }

    .home-page .tool-card {
        grid-column: span 2;
    }

    .home-page .tool-card:nth-last-child(3) {
        grid-column: 2 / span 2;
    }

    .home-page .tool-card:nth-last-child(2) {
        grid-column: 4 / span 2;
    }

    .home-page .tool-card:last-child {
        grid-column: 6 / span 2;
    }
}

@media (max-width: 900px) {
    .home-page .hero-v2-inner {
        grid-template-columns: 1fr;
    }

    .home-page .hero-v2-text {
        max-width: 720px;
        margin-inline: auto;
    }

    .home-page .hero-v2-visual {
        justify-content: center;
    }

    .home-two-column,
    .home-wide-copy {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .home-two-column--feature {
        align-items: start;
    }

    .search-performance-section .gsc-proof-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .search-performance-section .search-console-slider {
        width: 100%;
        max-width: 100%;
        min-height: auto;
        margin-inline: auto;
    }

    .home-page .tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-page .tool-card,
    .home-page .tool-card:nth-last-child(3),
    .home-page .tool-card:nth-last-child(2),
    .home-page .tool-card:last-child {
        grid-column: auto;
    }

    .home-page .home-services-grid,
    .home-page .portfolio-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-page .portfolio-preview-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        width: calc((100% - 24px) / 2);
        justify-self: center;
    }
}

@media (max-width: 640px) {
    .home-service-grid,
    .home-problem-grid {
        grid-template-columns: 1fr;
    }

    .home-process-card h3 {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .home-page {
        --home-section-space: 56px;
        --home-feature-space: 56px;
        --home-compact-space: 36px;
        --home-header-space: 32px;
    }

    .home-page .hero-v2-inner {
        width: min(calc(100% - 32px), 100%);
    }

    .home-page #main-content > section:not(.hero-v2):not(.trust-bar) > .container {
        width: calc(100% - 32px);
    }

    .home-page #main-content .section-header-v2 > p {
        font-size: 15px;
    }

    .iowa-image-card {
        height: 300px;
        margin-bottom: 36px;
    }

    .iowa-image-content {
        left: 20px;
        right: 20px;
        bottom: 22px;
    }

    .website-showcase-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .home-content-section {
        padding-top: var(--home-feature-space);
        padding-bottom: var(--home-feature-space);
    }

    .home-section-header {
        margin-bottom: 32px;
    }

    .home-section-header .section-title,
    .home-split-copy .section-title {
        font-size: clamp(28px, 9vw, 42px);
        line-height: 1.1;
        overflow-wrap: anywhere;
    }

    .search-performance-section .gsc-proof-copy > h2 {
        font-size: clamp(26px, 8vw, 34px);
    }

    .search-performance-section .search-console-slider-frame {
        aspect-ratio: 1.8 / 1;
    }

    .search-performance-section .search-console-slider-controls {
        margin-top: 14px;
    }

    .gsc-proof-point {
        padding: 15px;
    }

    .home-feature-grid,
    .home-check-grid,
    .home-fit-grid,
    .home-process-grid,
    .home-audience-grid,
    .home-page .home-services-grid,
    .home-page .portfolio-preview-grid {
        grid-template-columns: 1fr;
    }

    .home-fit-grid > *,
    .home-fit-grid > :last-child:nth-child(odd),
    .home-problem-card,
    .home-problem-card:last-child:nth-child(odd),
    .home-page .portfolio-preview-card:last-child:nth-child(odd) {
        grid-column: auto;
        width: 100%;
    }

    .home-page .stats-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .home-page .stats-row-item {
        min-height: 150px;
        padding: 24px 10px;
    }

    .home-page .stats-row-number {
        margin-bottom: 12px;
        font-size: clamp(42px, 14vw, 56px);
    }

    .home-page .stats-row-label {
        font-size: 14px;
    }

    .home-page .stats-row-sublabel {
        font-size: 12px;
    }

    .home-copy-panel,
    .home-feature-card,
    .home-compact-card,
    .home-service-card,
    .home-process-card,
    .home-audience-card,
    .home-problem-card,
    .home-page .how-i-help-card,
    .home-page .portfolio-preview-body,
    .home-page .testimonial-card {
        padding: 20px;
    }

    .home-wide-copy {
        padding: 20px;
    }

    .home-note-card {
        align-items: flex-start;
        padding: 20px;
    }

    .home-faq-list .faq-item summary {
        padding: 20px 56px 20px 20px;
    }

    .home-faq-list .faq-item summary::after {
        right: 18px;
    }

    .home-faq-answer {
        padding: 0 20px 20px;
    }

    .home-final-cta {
        padding: 44px 20px;
    }

    .home-cta-actions {
        flex-direction: column;
    }

    .home-cta-actions a {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .home-page .portfolio-preview-section .container > p:last-child {
        flex-direction: column;
    }

    .home-page .portfolio-preview-section .container > p:last-child a {
        width: 100%;
        justify-content: center;
    }

}
