/* Web Agency Homepage – Frontend (light theme) */

:root {
    --agency-bg: #ffffff;
    --agency-surface: #eef5fc;
    --agency-text: #1a1d21;
    --agency-muted: #4a5f73;
    --agency-accent: #1282ff;
    --agency-accent-hover: #0a6ee6;
    --agency-border: rgba(0,0,0,0.08);
    --agency-font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --touch-min: 44px; /* minimum touch target size (WCAG) */
    --agency-accent-rgb: 18, 130, 255;
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    background: var(--agency-bg);
    color: var(--agency-text);
    font-family: var(--agency-font);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Bootstrap 5.3: raise .container cap from 1320px to 1400px at xxl */
@media (min-width: 1400px) {
    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-xxl {
        max-width: 1400px;
    }
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    padding: 8px 16px;
    background: var(--agency-accent);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    z-index: 9999;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 16px;
}

/* Header / Nav */
.frontend-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgb(0 0 0 / 15%);
    transition: background 0.3s, border-color 0.3s;
}

.frontend-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
}

.frontend-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.frontend-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--agency-text);
    font-weight: 700;
    font-size: 1.25rem;
}

.frontend-logo img {
    max-height: 100px;
    /* width: auto; */
    object-fit: contain;
}

.frontend-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.frontend-nav a {
    display: inline-flex;
    align-items: center;
    min-height: var(--touch-min);
    padding: 0.5rem 1rem;
    color: var(--agency-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.frontend-nav a:hover {
    color: var(--agency-text);
    background: rgba(0,0,0,0.04);
}

.frontend-nav .nav-cta {
    margin-left: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--agency-accent);
    color: #fff !important;
    border-radius: 8px;
}

.frontend-nav .nav-cta:hover {
    background: var(--agency-accent-hover);
    color: #fff !important;
}

/* Services mega menu */
.nav-item-with-mega {
    position: relative;
}

.nav-link-mega-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.mega-chevron {
    font-size: 0.65rem;
    opacity: 0.8;
    transition: transform 0.2s;
}

.nav-item-with-mega:hover .mega-chevron,
.nav-item-with-mega.mega-open .mega-chevron {
    transform: rotate(180deg);
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    min-width: min(1140px, calc(100vw - 2rem));
    max-width: 1400px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border: 1px solid var(--agency-border);
    padding: 1.25rem 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 1001;
    margin-top: 4px;
}

.nav-item-with-mega:hover .mega-menu,
.nav-item-with-mega.mega-open .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-inner {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) minmax(300px, 1.25fr) minmax(220px, 1fr);
    gap: 0 1.5rem;
}

.mega-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-right: 1.5rem;
    border-right: 1px solid var(--agency-border);
}
.mega-column:last-child {
    padding-right: 0;
    border-right: none;
}

.mega-column-title {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--agency-accent);
    margin-bottom: 0.2rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--agency-border);
    white-space: nowrap;
}

.mega-service-item {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0 -0.5rem;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.mega-service-item a.mega-service-link {
    display: block;
    min-height: 0;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.1;
    color: var(--agency-text);
    text-decoration: none;
    padding: 0;
    margin: 0;
    border-radius: 0;
    transition: color 0.2s;
}

.mega-service-item .mega-service-title {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mega-service-item .mega-service-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.25;
    color: var(--agency-muted);
    padding: 0;
    margin: 5px 0 0 0;
    max-width: 100%;
    white-space: normal;
}

.mega-service-item:hover {
    background: rgba(18, 130, 255, 0.1);
}
.mega-service-item:hover .mega-service-link,
.mega-service-item .mega-service-link:hover {
    color: var(--agency-accent);
}
.mega-service-item:hover .mega-service-desc {
    color: var(--agency-muted);
}

/* Desktop: mega menu is wide; centering on the nav item (left:50% of narrow trigger) overflows the viewport.
   Use fixed positioning; horizontal placement + top set in footer JS (syncMegaMenuPosition). */
@media (min-width: 992px) {
    .mega-menu {
        position: fixed;
        top: auto;
        left: auto;
        right: auto;
        margin-top: 0;
        transform: translateY(4px);
        min-width: 0;
        width: min(1140px, calc(100vw - 2rem));
        max-width: calc(100vw - 2rem);
        transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    }
    .nav-item-with-mega:hover .mega-menu,
    .nav-item-with-mega.mega-open .mega-menu {
        transform: translateY(0);
    }
}

@media (max-width: 991px) {
    .mega-menu {
        left: 0;
        right: 0;
        transform: translateY(4px);
        min-width: auto;
        max-width: none;
    }
    .nav-item-with-mega:hover .mega-menu,
    .nav-item-with-mega.mega-open .mega-menu {
        transform: translateY(0);
    }
    .mega-menu-inner {
        grid-template-columns: repeat(2, 1fr);
    }
    .mega-column:nth-child(2) {
        border-right: none;
        padding-right: 0;
    }
    .mega-column:nth-child(4) {
        border-right: none;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .mega-menu {
        position: static;
        transform: none;
        margin-top: 0;
        max-height: 0;
        overflow: hidden;
        padding: 0 0.65rem;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: rgba(0,0,0,0.02);
    }
    .nav-item-with-mega.mega-open .mega-menu {
        max-height: min(80vh, 480px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0.5rem 0.65rem;
        margin-top: 0.35rem;
        border: 1px solid var(--agency-border);
        border-radius: 8px;
    }
    .mega-menu-inner {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .mega-column {
        border-right: none;
        padding-right: 0;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid var(--agency-border);
        gap: 0.2rem;
    }
    .mega-column:last-child {
        padding-bottom: 0;
        border-bottom: none;
    }
    .mega-column-title {
        font-size: 0.8rem;
        margin-bottom: 0;
        padding-bottom: 0.25rem;
        letter-spacing: 0.05em;
    }
    .mega-service-item {
        margin: 0;
        padding: 0.3rem 0.45rem;
    }
    .mega-service-item a.mega-service-link {
        font-size: 0.875rem;
        line-height: 1.2;
    }
    .mega-service-item .mega-service-desc {
        margin-top: 0.125rem;
        font-size: 0.72rem;
        line-height: 1.2;
    }
}

/* Hamburger – visible only on small viewports */
.frontend-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: var(--touch-min);
    min-width: var(--touch-min);
    height: var(--touch-min);
    min-height: var(--touch-min);
    padding: 0;
    background: transparent;
    border: 1px solid var(--agency-border);
    border-radius: 8px;
    color: var(--agency-text);
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.frontend-nav-toggle:hover {
    background: rgba(0,0,0,0.04);
}

/* Main content wrapper */
.frontend-main {
    padding-top: 0;
}

/* Blog index: clear fixed header so on-page "Blog" title is visible */
.frontend-main.blog-index {
    padding-top: 7rem;
}

/* Blog single: clear fixed header and add gap above breadcrumbs */
.frontend-main.blog-single {
    padding-top: 7rem;
}

/* Blog author profile (/blog/author/slug): clear fixed header */
.frontend-main.blog-author-page {
    padding-top: 7rem;
}

/* Proposal offer (guest / invalid link / access denied): clear fixed header */
.frontend-main.proposal-offer-public {
    padding-top: 7rem;
}

/* Press release distribution report HTML (admin/account view): toolbar + iframe below fixed header */
.frontend-main.press-release-report-view {
    padding-top: 7rem;
}

.frontend-main.blog-single .blog-single-container {
    padding-top: 2.5rem;
}

/* Blog single: featured image uses 16:9 frame + cover (hides letterboxing in baked-in files) */
.frontend-main.blog-single .blog-single-featured {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}
.frontend-main.blog-single .blog-single-featured .ratio > img {
    object-fit: cover;
    object-position: center;
}

/* Blog single: article body (matches admin preview typography) */
.frontend-main.blog-single .blog-content {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--agency-text, #212529);
}
.frontend-main.blog-single .blog-content p { margin-bottom: 1rem; }
.frontend-main.blog-single .blog-content p:last-child { margin-bottom: 0; }
.frontend-main.blog-single .blog-content h1,
.frontend-main.blog-single .blog-content h2,
.frontend-main.blog-single .blog-content h3,
.frontend-main.blog-single .blog-content h4,
.frontend-main.blog-single .blog-content h5,
.frontend-main.blog-single .blog-content h6 {
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: var(--bs-dark, #212529);
}
.frontend-main.blog-single .blog-content h1 { font-size: 1.75rem; }
.frontend-main.blog-single .blog-content h2 { font-size: 1.5rem; }
.frontend-main.blog-single .blog-content h3 { font-size: 1.25rem; }
.frontend-main.blog-single .blog-content ul,
.frontend-main.blog-single .blog-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}
.frontend-main.blog-single .blog-content li { margin-bottom: 0.25rem; }
.frontend-main.blog-single .blog-content a {
    color: var(--bs-primary);
    text-decoration: underline;
}
.frontend-main.blog-single .blog-content a:hover { text-decoration: none; }
.frontend-main.blog-single .blog-content blockquote {
    margin: 1rem 0;
    padding-left: 1rem;
    border-left: 4px solid #dee2e6;
    color: #6c757d;
}
.frontend-main.blog-single .blog-content img {
    max-width: 100%;
    height: auto;
}
.frontend-main.blog-single .blog-content hr {
    margin: 1.5rem 0;
    border: 0;
    border-top: 1px solid #dee2e6;
}

/* Blog index: on-page title above the post list */
.blog-index-header {
    padding-top: 0.25rem;
    margin-bottom: 1.5rem;
}
.blog-index-title {
    font-size: 2.25rem;
    color: var(--bs-dark, #212529);
    margin-bottom: 0.5rem;
}

/* Blog single: CTA banner promoting the related service */
.blog-cta-banner {
    background: linear-gradient(135deg, var(--agency-accent, #1275ff) 0%, #0d5dd1 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 20px rgba(18, 117, 255, 0.25);
}

.blog-cta-banner-text {
    font-size: 1.15rem;
    color: #fff;
}

.blog-cta-banner .btn-light {
    font-weight: 600;
    color: var(--agency-accent, #1275ff);
}

.blog-cta-banner .btn-light:hover {
    background: #fff;
    color: var(--agency-accent-hover, #0d5dd1);
    border-color: #fff;
}

/* Section common */
.agency-section {
    padding: 4rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.agency-section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.agency-section-subtitle {
    color: var(--agency-muted);
    font-size: 1.1rem;
    max-width: 1150px;
    margin-bottom: 2.5rem;
}

/* Homepage: GEO / citation intro + FAQ (matches FAQPage JSON-LD) */
.agency-home-geo-intro {
    max-width: 960px;
}
.agency-home-geo-intro-inner {
    margin: 0 auto;
    padding: 0 0.25rem;
}
.agency-home-geo-intro-kicker {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--agency-muted);
    margin-bottom: 0.35rem;
}
.agency-home-geo-intro-lead {
    max-width: 42rem;
    margin-bottom: 2rem;
}
.agency-home-faq-section-title {
    font-weight: 700;
    letter-spacing: -0.02em;
}
.agency-home-faq-item {
    background: var(--agency-bg-muted, #f5f7fa);
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}
.agency-home-faq-btn {
    font-size: 0.95rem;
    font-weight: 600;
    background: var(--agency-bg-muted, #f5f7fa);
}
.agency-home-faq-btn:not(.collapsed) {
    background: #fff;
}
.agency-home-faq-body {
    background: #fff;
    color: var(--agency-muted, #5c6570);
    line-height: 1.55;
}

/* Hero */
.agency-hero {
    min-height: 92vh;
    display: flex;
    align-items: center;
    padding: 10rem 1.5rem 5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.agency-hero-inner {
    width: 100%;
}

.agency-hero-inner .agency-hero-headline {
    font-size: clamp(2rem, 8vw, 7rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin: 0 0 1.25rem;
}

/* Hero kinetic headline (vertical word cycle; fonts inherit from .agency-hero-headline) */
.agency-hero-inner .agency-hero-headline--kinetic {
    /*
     * Row height (--agency-kinetic-row): slot + each flip step; keep generous so overflow:hidden never clips glyphs.
     * Leading (--agency-kinetic-leading): line-height for wrapped headline lines only — can be tighter than row.
     */
    --agency-kinetic-row: 1.24;
    --agency-kinetic-leading: 1.1;
    line-height: var(--agency-kinetic-leading);
}

@keyframes agencyHeroKineticFlip {
    0%,
    22% {
        transform: translateY(0);
    }
    28%,
    48% {
        transform: translateY(-33.333333%);
    }
    54%,
    74% {
        transform: translateY(-66.666666%);
    }
    80%,
    100% {
        transform: translateY(0);
    }
}

.agency-hero-headline--kinetic .agency-hero-kinetic {
    display: block;
}

.agency-hero-headline--kinetic .agency-hero-kinetic-prefix,
.agency-hero-headline--kinetic .agency-hero-kinetic-suffix {
    white-space: normal;
}

.agency-hero-headline--kinetic .agency-hero-kinetic-slot {
    /* inline-flex + middle avoids baseline gap that shows “half” adjacent lines */
    display: inline-flex;
    align-items: flex-start;
    vertical-align: middle;
    overflow: hidden;
    /* One full line box: must match .agency-hero-kinetic-word row height for clean clip + flip steps */
    height: calc(1em * var(--agency-kinetic-row, 1.24));
    line-height: var(--agency-kinetic-row, 1.24);
    max-width: 100%;
    box-sizing: content-box;
}

.agency-hero-headline--kinetic .agency-hero-kinetic-track {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    animation: agencyHeroKineticFlip 12s cubic-bezier(0.16, 1, 0.3, 1) infinite;
    will-change: transform;
}

.agency-hero-headline--kinetic .agency-hero-kinetic-word {
    /* min-height:0 so flex doesn’t grow rows from min-content (breaks % translate steps) */
    flex: 0 0 calc(1em * var(--agency-kinetic-row, 1.24));
    min-height: 0;
    display: flex;
    align-items: center;
    line-height: var(--agency-kinetic-row, 1.24);
    height: calc(1em * var(--agency-kinetic-row, 1.24));
    max-height: calc(1em * var(--agency-kinetic-row, 1.24));
    white-space: nowrap;
    color: var(--agency-accent);
    box-sizing: border-box;
}

.agency-hero-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: rgba(18, 130, 255, 0.12);
    color: var(--agency-accent);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}

.agency-hero p.agency-hero-subtitle {
    font-size: 1.25rem;
    color: var(--agency-muted);
    max-width: 700px;
    margin-bottom: 2rem;
}

.agency-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Homepage hero: center CTAs + chat prompt under left-aligned headline */
.agency-hero .agency-hero-buttons {
    justify-content: center;
}

.agency-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: var(--touch-min);
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    border: none;
    cursor: pointer;
}

.agency-btn-primary {
    background: var(--agency-accent);
    color: #fff;
}

.agency-btn-primary:hover {
    background: var(--agency-accent-hover);
    color: #fff;
    transform: translateY(-1px);
}

.agency-btn-secondary {
    background: var(--agency-surface);
    color: var(--agency-text);
    border: 1px solid var(--agency-border);
}

.agency-btn-secondary:hover {
    background: rgba(0,0,0,0.05);
    color: var(--agency-text);
    transform: translateY(-1px);
}

/* ---- Animations: hero stagger, scroll reveal, hovers (respects prefers-reduced-motion) ---- */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.agency-hero-inner .hero-anim-item {
    opacity: 0;
    transform: translateY(24px);
}

.agency-hero-inner.hero-anim-ready .hero-anim-item {
    animation: heroFadeUp 0.55s ease-out forwards;
}

.agency-hero-inner.hero-anim-ready .agency-hero-headline { animation-delay: 0s; }
.agency-hero-inner.hero-anim-ready .agency-hero-subtitle { animation-delay: 0.12s; }
.agency-hero-inner.hero-anim-ready .agency-hero-buttons { animation-delay: 0.24s; }

@keyframes heroChatSlideUp {
    from {
        opacity: 0;
        transform: translateY(48px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.agency-hero-inner .agency-hero-chat-prompt.hero-anim-item {
    opacity: 0;
    transform: translateY(48px);
}

.agency-hero-inner.hero-anim-ready .agency-hero-chat-prompt.hero-anim-item {
    animation: heroChatSlideUp 0.55s ease-out 0.5s forwards;
}

/* Hero chat prompt: "Tell us what you are inquiring about" + input (blinking cursor via native caret) */
.agency-hero-chat-prompt {
    margin-top: 2rem;
    max-width: 520px;
    /* In column flex parents (e.g. service hero), margin-left/right auto disables stretch and
       shrinks width to min-content — force full cross size up to max-width. */
    width: 100%;
    box-sizing: border-box;
}

.agency-hero .agency-hero-chat-prompt {
    margin-left: auto;
    margin-right: auto;
}

.agency-hero-chat-label {
    display: block;
    font-size: 1rem;
    color: var(--agency-text);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.agency-hero-chat-typewriter {
    display: inline;
}

@keyframes typewriterBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.agency-hero-chat-cursor {
    display: inline-block;
    margin-left: 1px;
    color: var(--agency-accent);
    font-weight: 300;
    animation: typewriterBlink 1s step-end infinite;
}

.agency-hero-chat-cursor.typewriter-done {
    display: none;
}

.agency-hero-chat-form {
    margin: 0;
}

.agency-hero-chat-input-wrap {
    position: relative;
    isolation: isolate;
}

/* Typewriter above the input (z-index): opaque fill masks native placeholder so text does not double-stack */
.agency-hero-chat-typewriter-layer {
    position: absolute;
    left: 2px;
    top: 2px;
    right: 3rem;
    bottom: 2px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    align-content: center;
    padding: 0 calc(0.85rem - 2px);
    pointer-events: none;
    z-index: 2;
    font-size: 1rem;
    line-height: 1.45;
    color: var(--agency-text);
    text-align: left;
    background-color: var(--agency-surface);
    border-radius: 8px;
}

.agency-hero-chat-input-wrap.hero-chat-typewriter-dismissed .agency-hero-chat-typewriter-layer {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease;
}

.agency-hero-chat-input {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 56px;
    padding: 0.85rem 3rem 0.85rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--agency-text);
    background: var(--agency-surface);
    border: 2px solid var(--agency-accent);
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
    caret-color: var(--agency-accent);
    box-shadow: 0 0 0 3px rgba(18, 130, 255, 0.15);
}

.agency-hero-chat-input::placeholder {
    color: var(--agency-muted);
}

.agency-hero-chat-input:hover {
    border-color: var(--agency-accent-hover);
    box-shadow: 0 0 0 3px rgba(18, 130, 255, 0.2);
}

.agency-hero-chat-input:focus {
    outline: none;
    border-color: var(--agency-accent);
    box-shadow: 0 0 0 3px rgba(18, 130, 255, 0.2);
}

.agency-hero-chat-send {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--agency-accent);
    cursor: pointer;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
    z-index: 3;
}

.agency-hero-chat-send:hover {
    color: var(--agency-accent-hover);
    background: rgba(18, 130, 255, 0.1);
}

.agency-hero-chat-send:focus {
    outline: none;
}

.agency-hero-chat-send .fas {
    font-size: 1.1rem;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
    transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.agency-services-sleek-group.scroll-reveal.is-visible:nth-child(1) { transition-delay: 0s; }
.agency-services-sleek-group.scroll-reveal.is-visible:nth-child(2) { transition-delay: 0.08s; }
.agency-services-sleek-group.scroll-reveal.is-visible:nth-child(3) { transition-delay: 0.16s; }
.agency-services-sleek-group.scroll-reveal.is-visible:nth-child(4) { transition-delay: 0.24s; }

/* Nav: underline slide-in on hover */
.frontend-nav > a:not(.nav-cta) {
    position: relative;
}

.frontend-nav > a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: 0.35rem;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--agency-accent);
    transition: width 0.25s ease, left 0.25s ease;
}

.frontend-nav > a:not(.nav-cta):hover::after {
    width: 80%;
    left: 10%;
}

.frontend-nav .nav-cta {
    transition: background 0.25s ease, color 0.2s ease, transform 0.2s ease;
}

.frontend-nav .nav-cta:hover {
    transform: translateY(-2px);
}

.frontend-nav .nav-cta-chat {
    margin-left: auto;
}

/* Selected work: image zoom on hover */
.agency-work-card .thumb.agency-work-card-thumb-wrap {
    overflow: hidden;
}

.agency-work-card .thumb .agency-work-card-thumb-img {
    transition: transform 0.45s ease-out;
}

.agency-work-card:hover .thumb .agency-work-card-thumb-img {
    transform: scale(1.08);
}

.agency-work-card {
    transition: border-color 0.25s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.agency-work-card:hover {
    border-color: rgba(18, 130, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* Chat bubble: smooth micro-interaction */
.chat-float-bubble {
    transition: background 0.25s ease, color 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.chat-float-bubble:hover {
    box-shadow: 0 4px 20px rgba(18, 130, 255, 0.4);
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .agency-hero-inner .hero-anim-item,
    .agency-hero-inner.hero-anim-ready .hero-anim-item {
        opacity: 1;
        transform: none;
        animation: none;
    }
    .agency-hero-headline--kinetic .agency-hero-kinetic-track {
        animation: none;
        transform: none;
        will-change: auto;
        display: block;
    }
    .agency-hero-headline--kinetic .agency-hero-kinetic-word:not(:first-child) {
        display: none;
    }
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
    .scroll-reveal.is-visible {
        transform: none;
    }
    #indexPortfolioGrid.portfolio-grid--split-rows .portfolio-row-reveal:not(.is-visible) .portfolio-card,
    #indexPortfolioGrid.portfolio-grid--split-rows .portfolio-row-reveal.is-visible .portfolio-card,
    #portfolioGrid.portfolio-grid--split-rows .portfolio-row-reveal:not(.is-visible) .portfolio-card,
    #portfolioGrid.portfolio-grid--split-rows .portfolio-row-reveal.is-visible .portfolio-card {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .frontend-nav > a:not(.nav-cta)::after {
        transition: none;
    }
    .frontend-nav .nav-cta:hover,
    .agency-service-tile:hover .agency-service-tile-icon,
    .agency-work-card:hover .thumb .agency-work-card-thumb-img,
    .portfolio-card:hover .portfolio-card-image {
        transform: none;
    }
}

/* Services – What we do: gradient band + 2-col matrix of glass link rows (compact) */
.agency-services {
    max-width: none;
    width: 100%;
    padding: 0;
}

.agency-services-sleek {
    position: relative;
    overflow: hidden;
    /* Match homepage CTA banner band (.agency-cta-banner) */
    background: linear-gradient(118deg, #0a3d78 0%, var(--agency-accent, #1282ff) 45%, #1a74e8 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.agency-services-sleek::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 90% 120% at 100% 0%, rgba(255, 255, 255, 0.14), transparent 52%);
    pointer-events: none;
}

.agency-services-sleek-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(2.65rem, 5.5vw, 3.65rem) 1.5rem clamp(2.85rem, 5.5vw, 3.85rem);
}

.agency-services-sleek-head {
    max-width: 38rem;
    margin-bottom: clamp(1.5rem, 3.5vw, 2.1rem);
}

.agency-services-sleek-kicker {
    margin: 0 0 0.4rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
}

.agency-services-sleek-head .agency-section-title {
    margin-bottom: 0.4rem;
    color: #fff;
}

.agency-services-sleek-sub.agency-section-subtitle {
    margin-bottom: 0;
    font-size: 1.02rem;
    line-height: 1.55;
    max-width: none;
    color: rgba(255, 255, 255, 0.9);
}

.agency-services-sleek-matrix {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.15rem, 2.5vw, 1.65rem) clamp(1.35rem, 2.5vw, 2.25rem);
    /* Shorter columns stay top-aligned; extra row height shows as space below (not stretched tiles) */
    align-items: start;
}

/* Odd number of category columns (e.g. 5th category from custom services): without this,
   the last group sits in column 1 only and the row looks half-empty. */
@media (min-width: 768px) {
    .agency-services-sleek-matrix > .agency-services-sleek-group:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

.agency-services-sleek-group {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Category column titles on the blue band */
.agency-services-sleek-group .agency-services-sleek-cat.agency-section-title {
    margin: 0 0 0.65rem;
    padding: 0;
    border: none;
    line-height: 1.15;
    text-transform: none;
    color: #fff;
}

.agency-services-sleek-list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: clamp(0.52rem, 1.2vw, 0.85rem);
    min-height: 0;
}

.agency-service-tile {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem 0.92rem;
    padding: 0.78rem 0.9rem;
    margin: 0;
    text-decoration: none;
    color: var(--agency-text);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(18, 130, 255, 0.22);
    border-radius: 14px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.98) inset,
        0 2px 8px rgba(18, 130, 255, 0.08);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.agency-service-tile:hover {
    background: #fff;
    border-color: rgba(18, 130, 255, 0.42);
    box-shadow:
        0 12px 36px rgba(18, 130, 255, 0.18),
        0 2px 0 rgba(255, 255, 255, 1) inset;
    transform: translateY(-1px);
    color: var(--agency-text);
}

.agency-service-tile-icon {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.02rem;
    background: linear-gradient(145deg, rgba(18, 130, 255, 0.2), rgba(10, 110, 230, 0.14));
    color: #0a5ec9;
    transition: transform 0.3s ease, background 0.2s ease, color 0.2s ease;
}

.agency-service-tile:hover .agency-service-tile-icon {
    transform: scale(1.06);
    background: linear-gradient(145deg, rgba(18, 130, 255, 0.32), rgba(10, 110, 230, 0.22));
    color: var(--agency-accent-hover);
}

.agency-service-tile-main {
    flex: 1 1 auto;
    min-width: 0;
}

.agency-service-tile-title {
    display: block;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 0.2rem;
    letter-spacing: -0.01em;
    font-family: inherit;
}

h3.agency-service-tile-title {
    font-size: 1.02rem;
    font-weight: 700;
}

.agency-service-tile-dek {
    display: block;
    font-size: 0.86rem;
    line-height: 1.45;
    color: #3d5a73;
    margin: 0;
}

.agency-service-tile-arrow {
    flex: 0 0 auto;
    align-self: center;
    font-size: 0.84rem;
    color: var(--agency-accent);
    opacity: 0.45;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.agency-service-tile:hover .agency-service-tile-arrow {
    opacity: 1;
    transform: translateX(3px);
}

@media (max-width: 767px) {
    .agency-services-sleek-matrix {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .agency-service-tile:hover {
        transform: none;
    }

    .agency-service-tile:hover .agency-service-tile-icon {
        transform: none;
    }

    .agency-service-tile:hover .agency-service-tile-arrow {
        transform: none;
    }
}

/* About / Why us – 3 horizontal blocks + centered tagline */
.agency-about-blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
    .agency-about-blocks {
        grid-template-columns: 1fr;
    }
}

.agency-about-block {
    padding: 1.5rem;
    background: var(--agency-surface, #fff);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.agency-about-block-dot {
    width: 24px;
    height: 24px;
    background: var(--agency-accent);
    border-radius: 50%;
    margin-bottom: 1rem;
}

.agency-about-block-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--agency-heading, #1a1a1a);
}

.agency-about-block-text {
    color: var(--agency-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.agency-about-tagline {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
    padding-bottom: 1.5rem;
    color: var(--agency-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Homepage – Why work with us (sticky editorial rail + stream; left-aligned, white section) */
.agency-section.agency-why-us {
    max-width: none;
    width: 100%;
    padding: clamp(3rem, 8vw, 4.5rem) 0;
    background: #fff;
    border-top: 1px solid rgba(18, 130, 255, 0.08);
    border-bottom: 1px solid rgba(18, 130, 255, 0.06);
}

.agency-why-us-editorial {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.25fr);
    gap: clamp(1.75rem, 4vw, 3.25rem);
    align-items: start;
}

.agency-why-us-rail {
    position: sticky;
    top: max(5.5rem, 14vh);
    padding-bottom: 1rem;
}

.agency-why-us-rail-kicker {
    margin: 0 0 0.5rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--agency-accent);
}

.agency-why-us-rail-title {
    margin: 0;
    font-size: clamp(1.85rem, 4.2vw, 2.85rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
    color: var(--agency-heading, #1a1a1a);
}

.agency-why-us-rail-lead {
    margin: 1rem 0 0;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--agency-muted);
    max-width: 28rem;
}

/* Pinned reviews rotator (same source as About / service pages: GBL pinned or manual reviews) */
.agency-why-us-reviews {
    margin-top: 1.5rem;
    max-width: 28rem;
}

.agency-why-us-reviews-kicker {
    margin: 0 0 0.5rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(18, 130, 255, 0.9);
}

.agency-why-us-reviews-track {
    position: relative;
    min-height: 5.5rem;
}

.agency-why-us-review-slide {
    margin: 0;
    padding: 0.85rem 0 0;
    border: none;
    border-top: 1px solid rgba(18, 130, 255, 0.15);
    background: transparent;
}

.agency-why-us-review-slide[hidden] {
    display: none !important;
}

.agency-why-us-review-stars {
    display: flex;
    gap: 0.12rem;
    margin-bottom: 0.45rem;
    font-size: 0.72rem;
    color: #f5a623;
}

.agency-why-us-review-star--empty {
    color: rgba(0, 0, 0, 0.12);
}

.agency-why-us-review-quote {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--agency-heading, #1a1a1a);
    font-style: italic;
}

.agency-why-us-review-cite {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    margin: 0.5rem 0 0;
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 600;
    color: var(--agency-muted);
}

.agency-why-us-review-author {
    font-weight: 700;
    color: var(--agency-heading, #1a1a1a);
}

.agency-why-us-review-location {
    display: block;
    width: 100%;
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--agency-muted);
    line-height: 1.3;
}

.agency-why-us-review-company {
    font-weight: 500;
    font-size: 0.78rem;
    color: var(--agency-muted);
}

.agency-why-us-review-dots {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.4rem;
    margin-top: 0.65rem;
    justify-content: flex-start;
}

.agency-why-us-review-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(18, 130, 255, 0.25);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.agency-why-us-review-dot:hover,
.agency-why-us-review-dot:focus-visible {
    background: rgba(18, 130, 255, 0.55);
    outline: none;
    transform: scale(1.15);
}

.agency-why-us-review-dot.active {
    background: var(--agency-accent);
}

.agency-why-us-rail-accent {
    margin-top: 1.75rem;
    height: 4px;
    width: min(100%, 7rem);
    border-radius: 999px;
    background: linear-gradient(90deg, var(--agency-accent), rgba(18, 130, 255, 0.15));
}

.agency-why-us-stream {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.agency-why-us-item {
    position: relative;
    margin: 0;
    /* One left inset for all rows: bar (3px) + gap — no stagger */
    padding: clamp(1.5rem, 3.2vw, 2.1rem) 0 clamp(1.5rem, 3.2vw, 2.1rem) calc(3px + 0.85rem);
    overflow: visible;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    border-bottom: 1px solid rgba(18, 130, 255, 0.12);
}

.agency-why-us-item:last-of-type {
    border-bottom: none;
}

.agency-why-us-item-sheen {
    position: absolute;
    left: 0;
    top: 0.35rem;
    bottom: 0.35rem;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--agency-accent), rgba(18, 130, 255, 0.25));
    pointer-events: none;
}

.agency-why-us-item > :not(.agency-why-us-item-sheen) {
    position: relative;
    z-index: 1;
}

.agency-why-us-item-eyebrow {
    margin: 0 0 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(18, 130, 255, 0.85);
}

.agency-why-us-item-title {
    margin: 0 0 0.65rem;
    font-size: clamp(1.2rem, 2.4vw, 1.45rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--agency-heading, #1a1a1a);
}

.agency-why-us-item-body {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--agency-muted);
    max-width: 46rem;
}

@keyframes agencyWhyUsStreamItemIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.agency-why-us.agency-why-us--editorial.scroll-reveal.is-visible .agency-why-us-stream .agency-why-us-item {
    animation: agencyWhyUsStreamItemIn 0.58s ease-out forwards;
}

.agency-why-us.agency-why-us--editorial.scroll-reveal.is-visible .agency-why-us-stream .agency-why-us-item:nth-child(1) {
    animation-delay: 0.06s;
}

.agency-why-us.agency-why-us--editorial.scroll-reveal.is-visible .agency-why-us-stream .agency-why-us-item:nth-child(2) {
    animation-delay: 0.18s;
}

.agency-why-us.agency-why-us--editorial.scroll-reveal.is-visible .agency-why-us-stream .agency-why-us-item:nth-child(3) {
    animation-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
    .agency-why-us.agency-why-us--editorial.scroll-reveal .agency-why-us-stream .agency-why-us-item {
        opacity: 1 !important;
        animation: none !important;
        transform: none !important;
    }
}

@media (max-width: 900px) {
    .agency-why-us-editorial {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .agency-why-us-rail {
        position: static;
        top: auto;
        padding-bottom: 0;
        border-bottom: 1px solid rgba(18, 130, 255, 0.12);
        padding-bottom: 1.5rem;
    }

    .agency-why-us-item + .agency-why-us-item {
        margin-top: 0;
    }
}

/* Homepage – blog: stacked carousel (cascade + fade) */
.agency-home-blog--carousel {
    max-width: none;
    width: 100%;
    padding: 2rem 0;
    background: #fff;
    border-top: 1px solid rgba(18, 130, 255, 0.06);
    border-bottom: 1px solid rgba(18, 130, 255, 0.06);
}

.agency-home-blog-editorial-inner {
    max-width: 1200px;
    margin: 0 auto;
    /* Extra horizontal room so left-cascaded cards stay inside body (html/body overflow-x: hidden) */
    padding: 1.5rem clamp(1.25rem, 5vw, 2.5rem) 1.35rem clamp(1.5rem, 6vw, 3rem);
}

.agency-home-blog-editorial-header {
    margin-bottom: 1.35rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid rgba(18, 130, 255, 0.16);
}

.agency-home-blog-kicker {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--agency-accent);
    margin-bottom: 0.25rem;
}

/* Match .agency-section-title (e.g. Our work) */
.agency-home-blog-editorial-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--agency-heading, #1a1a1a);
}

.agency-home-blog-editorial-dek a {
    font-weight: 600;
}

/* Carousel + sidebar rail (desktop): more posts beside the rotating card */
.agency-home-blog-editorial-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 992px) {
    .agency-home-blog-editorial-layout--with-sidebar {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
        gap: 1.75rem 2rem;
    }
}

.agency-home-blog-editorial-main {
    min-width: 0;
}

.agency-home-blog-editorial-main .agency-home-blog-carousel-stack {
    max-width: 100%;
}

.agency-home-blog-editorial-main .agency-home-blog-carousel-nav {
    max-width: 100%;
}

.agency-home-blog-sidebar {
    min-width: 0;
    padding: 0.35rem 0 0;
    border-top: 1px solid rgba(18, 130, 255, 0.12);
}

@media (min-width: 992px) {
    .agency-home-blog-editorial-layout--with-sidebar .agency-home-blog-sidebar {
        padding: 0;
        border-top: none;
        border-left: 1px solid rgba(18, 130, 255, 0.14);
        padding-left: 1.5rem;
        margin-top: 0;
    }
}

.agency-home-blog-sidebar-kicker {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--agency-accent);
    margin: 0 0 0.85rem;
}

.agency-home-blog-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.agency-home-blog-sidebar-link {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    padding: 0.45rem 0.4rem 0.45rem 0;
    border-radius: 0 12px 12px 0;
    border-left: 3px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.agency-home-blog-sidebar-link:hover {
    background: rgba(18, 130, 255, 0.06);
    border-left-color: var(--agency-accent);
}

.agency-home-blog-sidebar-thumb {
    flex: 0 0 auto;
    width: 80px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--agency-bg-muted, #e8eef6);
}

.agency-home-blog-sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.agency-home-blog-sidebar-thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--agency-accent);
    font-size: 1.35rem;
}

.agency-home-blog-sidebar-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.agency-home-blog-sidebar-date {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--agency-muted);
}

.agency-home-blog-sidebar-title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.32;
    color: var(--agency-heading, #1a1a1a);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.agency-home-blog-carousel {
    position: relative;
    margin-top: 0.25rem;
    overflow: visible;
}

.agency-home-blog-carousel-stack {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    /* Reserve left gutter inside stack so translateX(-) peeks stay visible (not clipped by viewport) */
    padding-left: clamp(2.25rem, 11vw, 10.5rem);
    padding-right: 0;
    padding-bottom: 1.5rem;
    box-sizing: border-box;
    /* Initial min-height until JS sets stack.style.minHeight from tallest slide */
    min-height: 10rem;
    overflow: visible;
}

.agency-home-blog-carousel-slide {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    /* Was full stack width (~1200px); cap so the image band isn’t oversized on desktop */
    width: min(100%, 40rem);
    max-width: 100%;
    height: auto;
    margin: 0;
    /* Pure horizontal offset: back cards sit to the LEFT of the front card (same top, stepped left) */
    transform-origin: right top;
    transition:
        opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.85s ease,
        box-shadow 0.5s ease;
    pointer-events: none;
}

.agency-home-blog-carousel-slide--depth-0 {
    z-index: 50;
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: brightness(1);
    pointer-events: auto;
}

.agency-home-blog-carousel-slide--depth-1 {
    z-index: 40;
    opacity: 0.46;
    transform: translate3d(-2.35rem, 0, 0);
    filter: brightness(0.95);
}

.agency-home-blog-carousel-slide--depth-2 {
    z-index: 30;
    opacity: 0.3;
    transform: translate3d(-4.7rem, 0, 0);
    filter: brightness(0.92);
}

.agency-home-blog-carousel-slide--depth-3 {
    z-index: 20;
    opacity: 0.19;
    transform: translate3d(-7.05rem, 0, 0);
    filter: brightness(0.89);
}

.agency-home-blog-carousel-slide--depth-4 {
    z-index: 10;
    opacity: 0.11;
    transform: translate3d(-9.35rem, 0, 0);
    filter: brightness(0.86);
}

.agency-home-blog-carousel-slide-link {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    color: inherit;
    text-decoration: none;
    border-radius: 0 18px 18px 0;
    overflow: hidden;
    background: var(--agency-surface, #fff);
    box-shadow: 0 12px 32px rgba(18, 50, 100, 0.08);
    border: 1px solid rgba(18, 130, 255, 0.1);
    border-left: 3px solid var(--agency-accent);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.agency-home-blog-carousel-stack.agency-home-blog-carousel--sized .agency-home-blog-carousel-slide-link {
    height: 100%;
}

.agency-home-blog-carousel-slide--depth-0 .agency-home-blog-carousel-slide-link:hover {
    color: inherit;
    box-shadow: 0 18px 44px rgba(18, 130, 255, 0.14);
    transform: translateY(-2px);
}

.agency-home-blog-carousel-slide-visual {
    position: relative;
    flex-shrink: 0;
    /* Slightly wider than 2:1 so the image strip is shorter for a given card width */
    aspect-ratio: 21 / 9;
    width: 100%;
    overflow: hidden;
    background: var(--agency-bg-muted, #e8eef6);
}

.agency-home-blog-carousel-slide-visual--empty {
    min-height: 0;
    background: linear-gradient(145deg, var(--agency-bg-muted, #e8eef6) 0%, rgba(18, 130, 255, 0.08) 100%);
}

.agency-home-blog-carousel-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.agency-home-blog-carousel-slide--depth-0 .agency-home-blog-carousel-slide-link:hover .agency-home-blog-carousel-slide-img {
    transform: scale(1.04);
}

.agency-home-blog-carousel-slide-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, transparent 45%);
    pointer-events: none;
    opacity: 0.85;
}

/* Back slides: image only (no title/excerpt/CTA visible behind the focused card) */
.agency-home-blog-carousel-slide:not(.agency-home-blog-carousel-slide--depth-0) .agency-home-blog-carousel-slide-copy {
    visibility: hidden;
    pointer-events: none;
}

.agency-home-blog-carousel-slide:not(.agency-home-blog-carousel-slide--depth-0) .agency-home-blog-carousel-slide-shade {
    opacity: 0;
}

.agency-home-blog-carousel-slide-copy {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    padding: 1rem 1.25rem 1.15rem;
    box-sizing: border-box;
    min-width: 0;
}

.agency-home-blog-carousel-slide-date {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--agency-muted);
    margin-bottom: 0.45rem;
    flex-shrink: 0;
}

.agency-home-blog-carousel-slide-headline {
    font-size: clamp(1.15rem, 2.4vw, 1.45rem);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.02em;
    margin: 0 0 0.55rem 0;
    color: var(--agency-heading, #1a1a1a);
    display: block;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    flex-shrink: 0;
}

.agency-home-blog-carousel-slide-dek {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--agency-muted);
    margin: 0 0 0.5rem 0;
    flex: 0 0 auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.agency-home-blog-carousel-slide-cta {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--agency-accent);
    flex-shrink: 0;
    line-height: 1.35;
    margin-top: 0.45rem;
}

.agency-home-blog-carousel-slide--depth-0 .agency-home-blog-carousel-slide-link:hover .agency-home-blog-carousel-slide-cta {
    text-decoration: underline;
}

.agency-home-blog-carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-top: 0.25rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.agency-home-blog-view-all {
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    border-top: 1px solid rgba(18, 130, 255, 0.1);
}

.agency-home-blog-carousel-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(18, 130, 255, 0.22);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.agency-home-blog-carousel-dot:hover,
.agency-home-blog-carousel-dot:focus-visible {
    background: rgba(18, 130, 255, 0.45);
    outline: none;
    box-shadow: 0 0 0 2px rgba(18, 130, 255, 0.25);
}

.agency-home-blog-carousel-dot.active {
    background: var(--agency-accent);
    transform: scale(1.15);
}

/* Homepage “From the blog”: one card at a time — hide left cascade peek; dot nav below unchanged */
.agency-home-blog--carousel .agency-home-blog-carousel-stack {
    padding-left: 0;
    padding-right: 0;
}

/* Narrow card is centered (stack is full width; slides no longer use right-edge cascade alignment) */
.agency-home-blog--carousel .agency-home-blog-carousel-slide {
    left: 50%;
    right: auto;
    transform-origin: center top;
}

.agency-home-blog--carousel .agency-home-blog-carousel-slide--depth-0 {
    transform: translateX(-50%);
    visibility: visible;
}

.agency-home-blog--carousel .agency-home-blog-carousel-slide:not(.agency-home-blog-carousel-slide--depth-0) {
    opacity: 0 !important;
    transform: translateX(-50%) !important;
    filter: none !important;
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 575px) {
    .agency-home-blog-carousel-stack {
        padding-left: clamp(1.35rem, 8vw, 4rem);
    }

    .agency-home-blog--carousel .agency-home-blog-carousel-stack {
        padding-left: 0;
    }

    .agency-home-blog-carousel-slide--depth-1 {
        transform: translate3d(-1.15rem, 0, 0);
    }

    .agency-home-blog-carousel-slide--depth-2 {
        transform: translate3d(-2.25rem, 0, 0);
    }

    .agency-home-blog-carousel-slide--depth-3 {
        transform: translate3d(-3.35rem, 0, 0);
    }

    .agency-home-blog-carousel-slide--depth-4 {
        transform: translate3d(-4.4rem, 0, 0);
    }

    .agency-home-blog--carousel .agency-home-blog-carousel-slide:not(.agency-home-blog-carousel-slide--depth-0) {
        transform: translateX(-50%) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .agency-home-blog-carousel-slide {
        transition-duration: 0.01ms !important;
    }

    .agency-home-blog-carousel-slide-link,
    .agency-home-blog-carousel-slide-img {
        transition: none;
    }

    .agency-home-blog-carousel-slide--depth-0 .agency-home-blog-carousel-slide-link:hover {
        transform: none;
    }

    .agency-home-blog-carousel-slide--depth-0 .agency-home-blog-carousel-slide-link:hover .agency-home-blog-carousel-slide-img {
        transform: none;
    }
}

/* Legacy about list (if used elsewhere) */
.agency-about-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.agency-about-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.agency-about-list li::before {
    content: '';
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: var(--agency-accent);
    border-radius: 50%;
    margin-top: 0.15rem;
}

.agency-about-list li strong {
    display: block;
    margin-bottom: 0.2rem;
}

.agency-about-list li span {
    color: var(--agency-muted);
    font-size: 0.95rem;
}

.agency-about-cta {
    text-align: center;
}

.agency-about-blue-banner {
    background: #dcecff;
    color: #0a0a0a;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0 2.5rem 0;
    border-radius: 12px;
    text-align: center;
}

/*
 * About + service review carousels: one slide visible + enter animation on change.
 */
@keyframes reviewCarouselSlideIn {
    0% {
        opacity: 0;
        transform: translateY(6px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
#main #aboutReviewsSection .agency-about-reviews-inner.agency-reviews-carousel > .agency-about-review-item:not(.active) {
    display: none !important;
}
#main #aboutReviewsSection .agency-about-reviews-inner.agency-reviews-carousel > .agency-about-review-item.active {
    display: block !important;
    animation: reviewCarouselSlideIn 2s cubic-bezier(0.22, 1, 0.45, 1) forwards;
}
@media (prefers-reduced-motion: reduce) {
    #main #aboutReviewsSection .agency-about-reviews-inner.agency-reviews-carousel > .agency-about-review-item.active {
        animation: none !important;
    }
}

/* Portfolio / Work */
.agency-work {
    background: var(--agency-surface);
}

.agency-work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.agency-work-card {
    background: #fff;
    border: 1px solid var(--agency-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.agency-work-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.agency-work-card-link:hover {
    color: inherit;
}

.agency-work-view-all {
    display: flex;
    justify-content: center;
    margin: 2rem 0 0;
}

.agency-work-view-all .agency-btn {
    display: inline-flex;
    align-items: center;
}

.agency-work-card .thumb {
    height: 200px;
    background: linear-gradient(135deg, rgba(18,130,255,0.12) 0%, rgba(248,249,250,0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 3rem;
    color: rgba(18, 130, 255, 0.55);
}
.agency-work-card .thumb .agency-work-card-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.agency-work-card .body {
    padding: 1.25rem 1.5rem;
}

.agency-work-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.agency-work-card p {
    color: var(--agency-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Portfolio page */
.portfolio-page {
    padding-bottom: 2rem;
}

.portfolio-hero {
    padding: clamp(5rem, 12vw, 7rem) 1.5rem 3rem;
    text-align: center;
    background: linear-gradient(180deg, var(--agency-surface) 0%, var(--agency-bg) 100%);
}

.portfolio-hero-inner {
    max-width: 640px;
    margin: 0 auto;
}

.portfolio-hero-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--agency-accent);
    margin-bottom: 0.75rem;
}

.portfolio-hero h1 {
    font-size: clamp(2rem, 8vw, 7rem);
    font-weight: 800;
    margin: 0 0 1rem;
    line-height: 1;
}

.portfolio-hero-lead {
    color: var(--agency-muted);
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
}

.portfolio-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

/* Homepage only: Our work – same palette as site / services, lighter band (not same gradient as What we do) */
.agency-section.portfolio-section {
    position: relative;
    overflow: hidden;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 2rem 0 3rem;
    background: linear-gradient(
        172deg,
        #f5f9fd 0%,
        var(--agency-surface) 40%,
        #e4eef8 72%,
        #fbfdff 100%
    );
    border-top: 1px solid rgba(var(--agency-accent-rgb), 0.12);
    border-bottom: 1px solid rgba(var(--agency-accent-rgb), 0.12);
    box-sizing: border-box;
}

.agency-section.portfolio-section::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: -22% -12% auto -12%;
    height: 72%;
    background:
        radial-gradient(ellipse 70% 54% at 16% 20%, rgba(255, 255, 255, 0.6), transparent 52%),
        radial-gradient(ellipse 58% 46% at 90% 42%, rgba(var(--agency-accent-rgb), 0.09), transparent 54%),
        radial-gradient(ellipse 48% 38% at 42% 92%, rgba(10, 110, 230, 0.06), transparent 48%);
    pointer-events: none;
}

.agency-section.portfolio-section::after {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 48%, rgba(8, 72, 150, 0.045) 100%);
    pointer-events: none;
}

.agency-section.portfolio-section > .portfolio-section-head,
.agency-section.portfolio-section > .portfolio-toolbar,
.agency-section.portfolio-section > .portfolio-grid,
.agency-section.portfolio-section > .agency-work-view-all {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-sizing: border-box;
}

.agency-section.portfolio-section .portfolio-card {
    border: 1px solid rgba(var(--agency-accent-rgb), 0.15);
    box-shadow: 0 2px 14px rgba(var(--agency-accent-rgb), 0.07);
}

.agency-section.portfolio-section .portfolio-card:hover {
    border-color: rgba(var(--agency-accent-rgb), 0.3);
    box-shadow: 0 14px 36px rgba(var(--agency-accent-rgb), 0.12);
}

.agency-section.portfolio-section .portfolio-card-image-wrap {
    background: linear-gradient(160deg, var(--agency-surface) 0%, #e2ebf7 100%);
}

.portfolio-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-bottom: 2rem;
}

.portfolio-filter-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--agency-muted);
}

.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.portfolio-filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--agency-font);
    color: var(--agency-muted);
    background: #fff;
    border: 1px solid var(--agency-border);
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.portfolio-filter-btn:hover {
    color: var(--agency-text);
    border-color: rgba(0,0,0,0.15);
}

.portfolio-filter-btn.active {
    color: #fff;
    background: var(--agency-accent);
    border-color: var(--agency-accent);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
    gap: 1.75rem;
}

/* Homepage Our work + portfolio page: JS wraps visible cards into .portfolio-grid-row for scroll-reveal by row */
#indexPortfolioGrid.portfolio-grid--split-rows,
#portfolioGrid.portfolio-grid--split-rows {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

#indexPortfolioGrid .portfolio-grid-row,
#portfolioGrid .portfolio-grid-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
    gap: 1.75rem;
}

/* Portfolio listing + homepage Our work: fixed columns so a lone card in a row (e.g. after filter) stays card-width, not full-bleed */
@media (min-width: 992px) {
    #portfolioGrid:not(.portfolio-grid--split-rows),
    #indexPortfolioGrid:not(.portfolio-grid--split-rows) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    #portfolioGrid.portfolio-grid--split-rows .portfolio-grid-row,
    #indexPortfolioGrid.portfolio-grid--split-rows .portfolio-grid-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    #portfolioGrid:not(.portfolio-grid--split-rows),
    #indexPortfolioGrid:not(.portfolio-grid--split-rows) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #portfolioGrid.portfolio-grid--split-rows .portfolio-grid-row,
    #indexPortfolioGrid.portfolio-grid--split-rows .portfolio-grid-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    #portfolioGrid:not(.portfolio-grid--split-rows),
    #indexPortfolioGrid:not(.portfolio-grid--split-rows) {
        grid-template-columns: 1fr;
    }
    #portfolioGrid.portfolio-grid--split-rows .portfolio-grid-row,
    #indexPortfolioGrid.portfolio-grid--split-rows .portfolio-grid-row {
        grid-template-columns: 1fr;
    }
}

#indexPortfolioGrid.portfolio-grid--split-rows .portfolio-row-reveal:not(.is-visible) .portfolio-card,
#portfolioGrid.portfolio-grid--split-rows .portfolio-row-reveal:not(.is-visible) .portfolio-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

#indexPortfolioGrid.portfolio-grid--split-rows .portfolio-row-reveal.is-visible .portfolio-card,
#portfolioGrid.portfolio-grid--split-rows .portfolio-row-reveal.is-visible .portfolio-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

#indexPortfolioGrid.portfolio-grid--split-rows .portfolio-row-reveal.is-visible .portfolio-card:hover,
#portfolioGrid.portfolio-grid--split-rows .portfolio-row-reveal.is-visible .portfolio-card:hover {
    transform: translateY(-4px);
}

.portfolio-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--agency-border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s;
}

.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    border-color: rgba(18, 130, 255, 0.25);
}

.portfolio-card-image-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--agency-surface);
}

.portfolio-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.45s ease-out;
}

.portfolio-card:hover .portfolio-card-image {
    transform: scale(1.08);
}

.portfolio-card-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(255,255,255,0.95);
    color: var(--agency-text);
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.portfolio-card-body {
    padding: 1.5rem 1.5rem 1.75rem;
}

.portfolio-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.portfolio-card-desc {
    color: var(--agency-muted);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.55;
}

.portfolio-cta {
    text-align: center;
    padding: 4rem 1.5rem;
    background: var(--agency-surface);
}

.portfolio-cta-inner {
    max-width: 520px;
    margin: 0 auto;
}

.portfolio-cta h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.portfolio-cta p {
    color: var(--agency-muted);
    margin-bottom: 1.5rem;
}

.portfolio-cta .agency-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Service landing page – conversion-focused */
.agency-btn-lg {
    padding: 0.75rem 1.75rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.service-landing {
    padding-bottom: 0;
}

/* Hero – gradient, icon, primary CTA */
.service-hero-v2 {
    position: relative;
    padding: clamp(5rem, 14vw, 8rem) 1.5rem clamp(3rem, 8vw, 4rem);
    text-align: center;
    overflow: hidden;
}

.service-hero-v2-bg {
    position: absolute;
    inset: 0;
    /* Darker gradient for WCAG AAA contrast (white text ≥ 7:1) */
    background: linear-gradient(135deg, #0a3d91 0%, #0d47a1 25%, #1565c0 55%, #1976d2 85%);
    opacity: 0.98;
}

.service-hero-v2-bg::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.service-hero-v2-inner {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    color: #fff;
    height: 650px;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
}

/* Secondary hero links (Start a project / See our work) — below chat field; same treatment as primary service CTAs on dark hero */
.service-hero-v2-inner .agency-hero-buttons {
    justify-content: center;
    align-items: center;
    margin-top: 1.25rem;
    margin-bottom: 3rem;
}

.service-hero-v2-inner .agency-hero-buttons .agency-btn-primary {
    background: #fff;
    color: var(--agency-accent);
    border: none;
}

.service-hero-v2-inner .agency-hero-buttons .agency-btn-primary:hover {
    background: rgba(255, 255, 255, 1);
    color: var(--agency-accent-hover);
}

.service-hero-v2-inner .agency-hero-buttons .agency-btn-secondary {
    background: #fff;
    color: var(--agency-text);
    border: 1px solid rgba(255, 255, 255, 0.85);
}

.service-hero-v2-inner .agency-hero-buttons .agency-btn-secondary:hover {
    background: var(--agency-accent-hover);
    color: #fff;
    border-color: var(--agency-accent-hover);
    transform: translateY(-1px);
}

.service-hero-v2-inner .agency-hero-chat-prompt {
    margin-top: 1rem;
    margin-bottom: 0;
    margin-left: auto;
    margin-right: auto;
}

.service-hero-v2-inner .agency-hero-chat-label {
    color: #fff;
}

.service-hero-v2-inner .agency-hero-chat-typewriter-layer {
    color: var(--agency-text);
    background-color: var(--agency-surface);
}

.service-hero-v2-inner .agency-hero-chat-typewriter-layer .agency-hero-chat-cursor {
    color: var(--agency-accent);
}

/* Service hero: form only appears after typewriter completes, slides in from bottom */
.service-hero-v2-inner .agency-hero-chat-form-wrap {
    visibility: hidden;
    opacity: 0;
    transform: translateY(24px);
    transition: visibility 0s linear 0.35s, opacity 0.35s ease-out, transform 0.35s ease-out;
}

.service-hero-v2-inner .agency-hero-chat-form-wrap.hero-chat-form-visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}

.service-hero-v2-titles {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Category (h2): correct outline has h1 first; pill stays visually above title */
.service-hero-v2-titles .service-hero-v2-pill {
    order: -1;
}

.service-hero-v2-pill {
    display: inline-block;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    background: rgba(255,255,255,0.2);
    border-radius: 999px;
    margin: 0 0 1.25rem;
    border: none;
    line-height: 1.2;
}

.service-hero-v2-eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 0.75rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.service-hero-v2-with-image .service-hero-v2-eyebrow {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* Custom CRM service hero: display headline typography (Fraunces loaded on that page only) */
.service-hero-v2--crm .service-hero-v2-titles h1 {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.12;
    max-width: 22ch;
    margin-left: auto;
    margin-right: auto;
}

.service-hero-v2--crm .service-hero-v2-headline {
    font-weight: 400;
    font-size: clamp(1.05rem, 2vw, 1.125rem);
    line-height: 1.65;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.92;
}

.service-hero-v2-cta-row {
    width: 100%;
}

@media (max-width: 767px) {
    .service-hero-v2-cta-row {
        justify-content: center !important;
    }

    .service-hero-v2-cta-row .agency-btn {
        flex: 1 1 auto;
        min-width: min(100%, 200px);
        justify-content: center;
    }
}

.service-hero-v2 h1 {
    font-size: clamp(2rem, 8vw, 7rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    margin: 0 0 0.75rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.service-hero-v2-headline {
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    font-weight: 700;
    opacity: 0.95;
    margin: 0 0 1.75rem;
    line-height: 1.4;
}

.service-hero-v2-cta .agency-btn-primary {
    background: #fff;
    color: var(--agency-accent);
    border: none;
}

.service-hero-v2-cta .agency-btn-primary:hover {
    background: rgba(255,255,255,1);
    color: var(--agency-accent-hover);
}

.service-hero-v2-cta .agency-btn-secondary {
    background: #fff;
    color: var(--agency-text);
    border: 1px solid rgba(255, 255, 255, 0.85);
}

.service-hero-v2-cta .agency-btn-secondary:hover {
    background: var(--agency-accent-hover);
    color: #fff;
    border-color: var(--agency-accent-hover);
    transform: translateY(-1px);
}

.service-hero-v2-trust {
    margin: 1.25rem 0 0;
    font-size: 0.9rem;
    opacity: 0.95;
}

/* Hero decoration for custom web dev: subtle code/UI feel */
.service-hero-v2--dev .service-hero-v2-inner {
    position: relative;
}
.service-hero-v2--dev .service-hero-v2-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.06) 0%, transparent 40%),
                      radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 35%);
    pointer-events: none;
}
.service-hero-v2--dev .service-hero-v2-inner::after {
    content: '</>';
    position: absolute;
    right: 8%;
    bottom: 15%;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    opacity: 0.08;
    font-family: ui-monospace, monospace;
    letter-spacing: -0.05em;
    pointer-events: none;
}

/* Hero with background image: full-width image, text on top, overlay for readability */
.service-hero-v2-with-image .service-hero-v2-img-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
}

.service-hero-v2-with-image .service-hero-v2-img-wrap picture,
.service-hero-v2-with-image .service-hero-v2-img-wrap img.service-hero-v2-img,
.service-hero-v2-with-image .service-hero-v2-img-wrap video.service-hero-v2-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-hero-v2-with-image .service-hero-v2-overlay {
    position: absolute;
    inset: 0;
    z-index: 0.5;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

/* Service hero: mobile only, service pages – full viewport, no white; content 15% from top */
@media (max-width: 768px) {
    .service-hero-v2 {
        min-height: 100dvh;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: max(15vh, 5rem);
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 2rem;
        box-sizing: border-box;
    }
    .service-hero-v2-inner {
        height: auto;
        min-height: 0;
        margin-top: 0;
    }
    .service-hero-v2-inner .agency-hero-chat-prompt {
        margin-top: 1.5rem;
        margin-bottom: 0;
    }
    .service-hero-v2-inner .agency-hero-buttons {
        margin-top: 1rem;
        margin-bottom: 1.5rem;
    }
    .service-hero-v2 h1 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
    .service-hero-v2-headline {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }
    .service-hero-v2-trust {
        margin-top: 0.75rem;
        font-size: 0.85rem;
    }
    .service-landing .service-trusted-by {
        padding: 1rem 1rem;
    }
    .service-landing .service-intro-v2 {
        padding-top: 1.5rem;
    }
}

/* Trust strip */
.service-trust-strip {
    background: var(--agency-text);
    color: #fff;
    padding: 0.85rem 1.5rem;
}

.service-trust-strip-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem 2rem;
}

.service-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.service-trust-item i {
    color: #4caf50;
}

/* Trusted By ribbon (client logos) */
.service-trusted-by {
    background: var(--agency-surface);
    padding: 1.5rem 1.5rem;
    border-bottom: 1px solid var(--agency-border);
}
.service-trusted-by-inner {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}
.service-trusted-by-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--agency-muted);
    margin: 0 0 1rem;
}
.service-trusted-by-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem 2.5rem;
}
.service-trusted-by-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}
.service-trusted-by-item img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.8;
    transition: filter 0.2s, opacity 0.2s;
}
.service-trusted-by-item img:hover {
    filter: grayscale(0);
    opacity: 1;
}
.service-trusted-by-placeholder {
    font-size: 1rem;
    font-weight: 600;
    color: var(--agency-muted);
    padding: 0.5rem 1rem;
    background: rgba(0,0,0,0.04);
    border-radius: 8px;
}

/* Reviews carousel (shared: homepage + service pages) */
.agency-home-reviews {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-top: .6rem;
    margin-bottom: 2.9rem;
}
.agency-home-reviews-shell {
    max-width: 1400px;
    margin: 0 auto;
    background: #fff;
    border: 0;
    border-radius: 1.05rem;
    padding: 2.1rem 1.85rem 1.45rem;
    box-shadow: none;
    overflow: visible;
}
.agency-home-reviews-title {
    text-align: center;
    margin: 0 0 2rem;
}
.agency-home-reviews-page {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    transition: opacity .55s ease, transform .55s ease;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
}
.agency-home-reviews-page.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.agency-home-reviews-slider {
    position: relative;
    min-height: 320px;
    padding-bottom: 1.5rem;
}
.agency-home-reviews-slider:not(.agency-home-reviews-slider--mobile) .agency-home-reviews-page {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 1.4rem;
}
.agency-home-reviews-slider--mobile {
    min-height: 0 !important;
    padding-bottom: 0;
}
.agency-home-reviews-slider--mobile .agency-home-reviews-page {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    grid-template-columns: 1fr;
    opacity: 1;
    transform: none;
    pointer-events: auto;
}
.agency-home-reviews-slider--mobile .agency-home-reviews-page:not(.is-active) {
    display: none !important;
}
.agency-home-reviews-slider--mobile .agency-home-reviews-page.is-active {
    display: grid !important;
}
.agency-home-reviews-slider--mobile .agency-home-reviews-dots {
    position: static;
    margin-top: 0.9rem;
    margin-bottom: 0.2rem;
    z-index: auto;
    flex-wrap: wrap;
    row-gap: 0.35rem;
}
.agency-home-reviews-card {
    border: 1px solid #ebeff7;
    border-radius: .72rem;
    padding: 1.2rem 1rem .95rem;
    text-align: center;
    background: #fff;
    box-shadow: 0 8px 20px rgba(16, 24, 40, 0.1);
}
.agency-home-reviews-avatar-wrap {
    margin-top: -1.82rem;
    margin-bottom: .38rem;
}
.agency-home-reviews-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.18);
}
.agency-home-reviews-stars {
    color: #f4b12a;
    font-size: .8rem;
    margin-bottom: .5rem;
}
.agency-home-reviews-star-empty { color: #d8deeb; }
.agency-home-reviews-quote {
    font-size: .92rem;
    line-height: 1.45;
    color: #4a5567;
    margin: 0 0 .55rem;
    min-height: 6.6em;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.agency-home-reviews-slider--mobile .agency-home-reviews-quote {
    min-height: 0;
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
    text-overflow: unset;
}
.agency-home-reviews-author {
    margin: 0;
    font-size: .86rem;
    color: #1f2e44;
    font-weight: 600;
}
.agency-home-reviews-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: .2rem;
    z-index: 4;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .42rem;
}
.agency-home-reviews-dot {
    width: .42rem;
    height: .42rem;
    border-radius: 999px;
    border: 0;
    background: #d4d9e3;
    padding: 0;
    cursor: pointer;
}
.agency-home-reviews-dot.active { background: #102f58; }
@media (max-width: 991.98px) {
    .agency-home-reviews-shell { padding: 1.35rem clamp(0.85rem, 4vw, 1.25rem) 1.25rem; }
    .agency-home-reviews { margin-bottom: 2rem; }
    .agency-home-reviews-slider--mobile .agency-home-reviews-card {
        padding-top: 1.35rem;
    }
    .agency-home-reviews-slider--mobile .agency-home-reviews-avatar-wrap {
        margin-top: -1.55rem;
    }
}

/* Content blocks */
.service-block {
    padding: clamp(3rem, 8vw, 5rem) 1.5rem;
}

.service-block-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.service-block-title {
    text-align: center;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    margin-bottom: 2rem;
}

/* Intro with icon */
.service-intro-v2 {
    background: var(--agency-bg);
}

.service-intro-v2 .service-block-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
}

/* Rich “What you get” (pillars + deliverable chips): override default 2-col grid */
.service-intro-v2--rich {
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(18, 130, 255, 0.09) 0%, transparent 55%),
        radial-gradient(90% 60% at 0% 100%, rgba(18, 50, 100, 0.04) 0%, transparent 50%),
        var(--agency-bg);
}

.service-intro-v2--rich .service-block-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-width: 1120px;
    gap: 0;
}

/* “What you get” rich layout: canvas + timeline + chips (no paragraph walls, no cards) */
.service-wyg-shell {
    position: relative;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.service-wyg-surface {
    position: relative;
    padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.15rem, 3vw, 2rem);
    border-radius: 0 28px 0 32px;
    overflow: hidden;
    background:
        linear-gradient(118deg, rgba(18, 130, 255, 0.11) 0%, rgba(18, 130, 255, 0.02) 38%, transparent 62%),
        linear-gradient(196deg, rgba(18, 50, 100, 0.06) 0%, transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0%, rgba(248, 250, 254, 0.92) 100%);
    border: 1px solid rgba(18, 130, 255, 0.1);
}

.service-wyg-surface-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(ellipse 70% 50% at 92% 8%, rgba(18, 130, 255, 0.14) 0%, transparent 55%),
        radial-gradient(circle at 4% 88%, rgba(18, 130, 255, 0.07) 0%, transparent 45%);
    opacity: 0.9;
}

.service-wyg-hero-band {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(1.15rem, 3vw, 1.85rem);
    align-items: start;
    padding-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
    margin-bottom: 0.25rem;
    border-bottom: 1px solid rgba(18, 50, 100, 0.08);
}

.service-wyg-hero-icon.service-intro-v2-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    font-size: 1.5rem;
    box-shadow: 0 6px 18px rgba(18, 130, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.65);
}

.service-wyg-header-copy .service-wyg-eyebrow {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--agency-accent, #1275ff);
    margin: 0 0 0.45rem;
}

.service-intro-v2--rich .service-intro-v2-content h2.service-wyg-title {
    font-size: clamp(1.6rem, 3.2vw, 2.05rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
    margin: 0 0 0.65rem;
    color: var(--agency-text);
}

.service-wyg-tagline {
    font-size: clamp(1.02rem, 2vw, 1.18rem);
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: -0.015em;
    color: var(--agency-muted, #4a5563);
    margin: 0;
    max-width: 36rem;
}

/* Vertical spine + nodes (not cards) */
.service-wyg-timeline {
    position: relative;
    z-index: 1;
    margin: clamp(1.25rem, 2.5vw, 1.75rem) 0 0;
    padding: 0 0 0 0.25rem;
}

.service-wyg-timeline::before {
    content: '';
    position: absolute;
    left: calc(1.125rem - 1px);
    top: 0.5rem;
    bottom: 1.5rem;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(
        180deg,
        var(--agency-accent, #1275ff) 0%,
        rgba(18, 130, 255, 0.45) 42%,
        rgba(18, 130, 255, 0.12) 100%
    );
    box-shadow: 0 0 20px rgba(18, 130, 255, 0.2);
}

.service-wyg-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: clamp(0.85rem, 2.5vw, 1.35rem);
    align-items: start;
    padding: 0 0 clamp(1.5rem, 3vw, 2rem);
    margin: 0;
    list-style: none;
}

.service-wyg-timeline-item:last-child {
    padding-bottom: 0;
}

.service-wyg-timeline-axis {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0.2rem;
}

.service-wyg-timeline-node {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--agency-accent, #1275ff);
    box-shadow: 0 0 0 4px rgba(18, 130, 255, 0.12);
    z-index: 1;
}

.service-wyg-timeline-step {
    margin-top: 0.45rem;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--agency-accent, #1275ff);
    opacity: 0.85;
}

.service-wyg-timeline-body {
    min-width: 0;
    padding-top: 0;
}

.service-wyg-pillar-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
}

.service-wyg-pillar-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    font-size: 0.95rem;
    color: var(--agency-accent, #1275ff);
    transform: rotate(-6deg);
}

.service-wyg-pillar-title {
    font-size: clamp(1.05rem, 2.2vw, 1.22rem);
    font-weight: 800;
    margin: 0;
    color: var(--agency-text);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

/* Scannable chips (not paragraphs) */
.service-wyg-point-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-wyg-point-chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin: 0;
    padding: 0.42rem 0.85rem 0.42rem 0.65rem;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--agency-text);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(18, 130, 255, 0.14);
    border-left: 3px solid var(--agency-accent, #1275ff);
    border-radius: 0 10px 10px 0;
    box-shadow: 0 2px 10px rgba(18, 50, 100, 0.04);
}

.service-wyg-point-chip::before {
    content: '';
    flex-shrink: 0;
    width: 5px;
    height: 5px;
    margin-right: 0.5rem;
    background: var(--agency-accent, #1275ff);
    opacity: 0.55;
    transform: rotate(45deg);
}

.service-wyg-cta-band {
    position: relative;
    z-index: 1;
    margin-top: clamp(1.35rem, 2.5vw, 1.85rem);
    padding-top: 1rem;
    border-top: 1px dashed rgba(18, 130, 255, 0.22);
}

.service-wyg-cta.service-inline-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    background: rgba(18, 130, 255, 0.1);
    border: 1px solid rgba(18, 130, 255, 0.22);
    color: var(--agency-accent, #1275ff);
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, gap 0.2s ease, box-shadow 0.2s ease;
}

.service-wyg-cta.service-inline-cta:hover {
    background: rgba(18, 130, 255, 0.16);
    border-color: rgba(18, 130, 255, 0.35);
    box-shadow: 0 6px 20px rgba(18, 130, 255, 0.15);
    gap: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
    .service-wyg-cta.service-inline-cta {
        transition: none;
    }
}

/* “What you get” tabbed panel (e.g. Branding & Identity): headline + tabs + dark content card */
.service-intro-v2--wyg-tabs {
    background: var(--agency-bg);
}

.service-intro-v2--wyg-tabs .service-block-inner {
    display: block;
    max-width: 1120px;
}

/* Match homepage “What we do” band: .agency-services-sleek */
.service-wyg-tabs {
    --wyg-sleek-gradient: linear-gradient(118deg, #0a3d78 0%, var(--agency-accent, #1282ff) 45%, #1a74e8 100%);
    --wyg-tab-deep: #0a3d78;
    --wyg-tab-cta-fg: #062a52;
    text-align: center;
}

.service-wyg-tabs-eyebrow {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--agency-accent, #1282ff);
    margin: 0 0 0.65rem;
}

.service-wyg-tabs-heading {
    font-size: clamp(1.45rem, 3.8vw, 2.35rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.035em;
    margin: 0 0 1.25rem;
    max-width: 52rem;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.service-wyg-tabs-heading-accent,
.service-wyg-tabs-heading-base {
    display: block;
    max-width: 100%;
    background: var(--wyg-sleek-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

@supports not (background-clip: text) {
    .service-wyg-tabs-heading-accent,
    .service-wyg-tabs-heading-base {
        background: none;
        color: var(--agency-accent, #1282ff);
        -webkit-text-fill-color: currentColor;
    }
}

.service-wyg-tabs-heading-single {
    color: var(--agency-text);
}

.service-wyg-tabs-intro {
    max-width: 40rem;
    margin: 0 auto 1.5rem;
    text-align: center;
    color: var(--agency-muted, #4a5f73);
    font-size: clamp(1rem, 2vw, 1.12rem);
    font-weight: 600;
    line-height: 1.5;
}

.service-wyg-tabs-intro p {
    margin: 0;
}

.service-wyg-tabs-nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: 0.25rem 1.5rem;
    margin: 0 auto 0;
    padding: 0 0.5rem 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.service-wyg-tabs-tab {
    flex: 0 0 auto;
    border: none;
    background: transparent;
    font: inherit;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    font-weight: 700;
    color: var(--agency-muted, #6b7c8e);
    padding: 0.5rem 0.15rem 0.65rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.service-wyg-tabs-tab:hover,
.service-wyg-tabs-tab:focus-visible {
    color: var(--agency-text);
    outline: none;
}

.service-wyg-tabs-tab.is-active,
.service-wyg-tabs-tab[aria-selected='true'] {
    color: var(--agency-accent, #1282ff);
    border-bottom-color: var(--agency-accent, #1282ff);
}

.service-wyg-tabs-panels {
    text-align: left;
}

.service-wyg-tabs-panel {
    position: relative;
    border-radius: 20px 20px 16px 16px;
    overflow: hidden;
    background: var(--wyg-sleek-gradient);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 48px rgba(10, 61, 120, 0.35);
}

.service-wyg-tabs-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 90% 120% at 100% 0%, rgba(255, 255, 255, 0.14), transparent 52%);
    pointer-events: none;
    z-index: 0;
}

.service-wyg-tabs-panel-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 0;
    align-items: stretch;
    min-height: 280px;
}

.service-wyg-tabs-media {
    position: relative;
    min-height: 220px;
    background: rgba(0, 0, 0, 0.2);
}

.service-wyg-tabs-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.service-wyg-tabs-media-fallback {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.22);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06) 0%, transparent 55%);
}

.service-wyg-tabs-copy {
    padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 2.75rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.service-wyg-tabs-subtitle {
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0;
}

.service-wyg-tabs-body {
    font-size: clamp(0.98rem, 2vw, 1.06rem);
    line-height: 1.6;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
}

.service-wyg-tabs-cta-wrap {
    margin-top: 0.35rem;
}

.service-wyg-tabs-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 1rem 0.65rem 1.35rem;
    border-radius: 999px;
    background: #fff;
    color: var(--wyg-tab-cta-fg);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease, gap 0.2s ease;
}

.service-wyg-tabs-cta:hover {
    color: var(--wyg-tab-cta-fg);
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
    gap: 0.85rem;
}

.service-wyg-tabs-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #0a3d78 0%, var(--agency-accent, #1282ff) 100%);
    color: #fff;
    font-size: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
    .service-wyg-tabs-cta {
        transition: none;
    }
    .service-wyg-tabs-cta:hover {
        transform: none;
    }
}

@media (max-width: 767.98px) {
    .service-wyg-tabs-panel-inner {
        grid-template-columns: 1fr;
    }

    .service-wyg-tabs-media {
        min-height: 200px;
        max-height: 240px;
    }

    .service-wyg-tabs-media .service-wyg-tabs-img {
        max-height: 240px;
    }

    .service-wyg-tabs-nav {
        justify-content: flex-start;
        padding-bottom: 1.25rem;
    }
}

@media (max-width: 576px) {
    .service-wyg-surface {
        border-radius: 0 18px 0 22px;
        padding: 1.35rem 0.95rem;
    }
    .service-wyg-timeline {
        margin-top: 1rem;
        padding-left: 0;
    }
    .service-wyg-timeline::before {
        left: 5px;
        top: 0.35rem;
        bottom: 1rem;
    }
    .service-wyg-timeline-item {
        grid-template-columns: 1.65rem minmax(0, 1fr);
        gap: 0.6rem;
        padding-bottom: 1.35rem;
    }
    .service-wyg-timeline-node {
        width: 11px;
        height: 11px;
        border-width: 2px;
    }
    .service-wyg-timeline-step {
        font-size: 0.55rem;
        letter-spacing: 0.08em;
    }
    .service-wyg-pillar-glyph {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.85rem;
    }
    .service-wyg-point-chip {
        width: 100%;
        box-sizing: border-box;
    }
}

.service-intro-v2-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(18,130,255,0.15) 0%, rgba(18,130,255,0.06) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--agency-accent);
}

.service-intro-v2-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.service-intro-v2-text {
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--agency-text);
    margin: 0 0 1rem;
}

.service-intro-v2-list-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--agency-text);
    margin: 1.25rem 0 0.65rem;
}

.service-intro-v2-deliverables {
    margin: 0 0 1.25rem;
    padding-left: 1.2rem;
    font-size: 1.02rem;
    line-height: 1.65;
    color: var(--agency-text);
}

.service-intro-v2-deliverables li {
    margin-bottom: 0.5rem;
    padding-left: 0.35rem;
}

.service-intro-v2-deliverables li::marker {
    color: var(--agency-accent, #1275ff);
}

.service-inline-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--agency-accent);
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s;
}

.service-inline-cta:hover {
    gap: 0.75rem;
}

/* Benefits grid – cards with check icons */
.service-benefits-v2 {
    background: var(--agency-surface);
}

.service-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .service-benefits-grid--by-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 576px) and (max-width: 991px) {
    .service-benefits-grid--by-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.service-benefit-card {
    background: #fff;
    padding: 1.75rem;
    border-radius: 16px;
    border: 1px solid var(--agency-border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.service-benefit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    border-color: rgba(18, 130, 255, 0.2);
}

.service-benefit-card-icon {
    width: 44px;
    height: 44px;
    background: rgba(18, 130, 255, 0.1);
    color: var(--agency-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.service-benefit-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.4rem;
}

.service-benefit-card p {
    font-size: 0.95rem;
    color: var(--agency-muted);
    margin: 0;
    line-height: 1.55;
}

/* Why it matters – scroll-style fade-in (runs on load with stagger) */
@keyframes serviceBenefitReveal {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.service-benefits-reveal .service-benefit-card {
    animation: serviceBenefitReveal 0.5s ease-out both;
}
.service-benefits-reveal .service-benefit-card:nth-child(1) { animation-delay: 0.1s; }
.service-benefits-reveal .service-benefit-card:nth-child(2) { animation-delay: 0.2s; }
.service-benefits-reveal .service-benefit-card:nth-child(3) { animation-delay: 0.3s; }
.service-benefits-reveal .service-benefit-card:nth-child(4) { animation-delay: 0.4s; }
.service-benefits-reveal .service-benefit-card:nth-child(5) { animation-delay: 0.5s; }

/* How we work (default + rich variant on service pages) */
.service-process {
    background: linear-gradient(180deg, var(--agency-bg) 0%, #e8f4fd 100%);
    padding: clamp(3rem, 8vw, 5rem) 1.5rem;
}

.service-process-inner {
    max-width: 900px;
    margin: 0 auto;
}

.service-process h2 {
    text-align: center;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    margin-bottom: 2rem;
}

.service-process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-process-step {
    text-align: center;
    padding: 1.5rem 1rem;
}

.service-process-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--agency-accent);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.service-process-step h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
}

.service-process-step p {
    font-size: 0.9rem;
    color: var(--agency-muted);
    margin: 0;
    line-height: 1.5;
}

/* How we work – rich variant (service pages) */
.service-process-rich {
    background: #fff;
    border-top: 1px solid rgba(10, 61, 120, 0.1);
    padding: clamp(2.5rem, 6vw, 4.25rem) 1.5rem;
}

.service-process-rich .service-process-inner {
    width: 100%;
    max-width: 1400px;
    margin-inline: auto;
}

.service-process-rich h2 {
    margin-bottom: 0;
    color: var(--agency-text);
    font-size: clamp(1.35rem, 3vw, 1.65rem);
}

.service-process-header {
    text-align: center;
    max-width: 36rem;
    margin: 0 auto 1.75rem;
}

.service-process-rich .service-process-header {
    max-width: min(52rem, 100%);
}

.service-process-lead {
    margin: 1rem 0 0;
    font-size: clamp(1rem, 2.2vw, 1.08rem);
    line-height: 1.65;
    font-weight: 500;
    color: var(--agency-muted);
}

.service-process-rich .service-process-lead {
    font-size: clamp(0.9rem, 1.9vw, 0.98rem);
    line-height: 1.55;
}

.service-process-steps-rich {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.25rem, 3vw, 1.75rem);
    align-items: stretch;
}

/* How we work: single-column flow (not cards)—rail + copy, dividers */
.service-process-rich .service-process-steps-rich {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 100%;
    margin-inline: auto;
}

.service-process-step-rich {
    text-align: left;
    background: #fff;
    border-radius: 18px;
    padding: clamp(1.25rem, 2.5vw, 1.65rem);
    border: 1px solid rgba(18, 130, 255, 0.14);
    box-shadow: 0 8px 32px rgba(10, 61, 120, 0.1);
}

.service-process-rich .service-process-step-rich {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: clamp(0.65rem, 2vw, 1rem);
    padding: 1.65rem 0;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid rgba(10, 61, 120, 0.12);
}

.service-process-rich .service-process-step-rich--reverse {
    flex-direction: row-reverse;
    justify-content: center;
}

.service-process-step-content {
    flex: 0 1 auto;
    min-width: 0;
    max-width: min(52rem, 100%);
}

.service-process-step-media {
    flex: 0 0 clamp(10.5rem, 34vw, 17.5rem);
    width: clamp(10.5rem, 34vw, 17.5rem);
    max-width: clamp(10.5rem, 34vw, 17.5rem);
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-process-step-media img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    border-radius: 14px;
}

.service-process-rich .service-process-step-rich:first-child {
    padding-top: 0;
}

.service-process-rich .service-process-step-rich:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.service-process-step-rich h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
}

.service-process-rich .service-process-step-rich h3 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.08rem, 2.5vw, 1.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--agency-text);
}

.service-process-step-tagline {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--agency-text);
    line-height: 1.45;
    margin: 0 0 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(10, 61, 120, 0.1);
}

.service-process-rich .service-process-step-tagline {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 0.5rem;
    padding: 0;
    letter-spacing: normal;
    text-transform: none;
    color: var(--agency-muted);
    border-bottom: none;
}

.service-process-step-list {
    margin: 0;
    padding: 0 0 0 1.15rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--agency-muted);
}

.service-process-rich .service-process-step-list {
    font-size: 0.88rem;
    line-height: 1.5;
    padding-left: 1.15rem;
    margin-top: 0.15rem;
}

.service-process-step-list li {
    margin-bottom: 0.65rem;
}

.service-process-rich .service-process-step-list li {
    margin-bottom: 0.45rem;
}

.service-process-step-list li:last-child {
    margin-bottom: 0;
}

@media (max-width: 560px) {
    .service-process-rich .service-process-step-rich {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1.4rem 0;
    }

    .service-process-rich .service-process-step-rich--reverse {
        flex-direction: column;
        justify-content: flex-start;
    }

    .service-process-rich .service-process-step-content {
        max-width: 100%;
    }

    .service-process-step-media {
        flex: 0 0 auto;
        width: 100%;
        max-width: min(18rem, 100%);
        margin: 0 auto;
        min-height: 10rem;
        max-height: 14rem;
    }

    .service-process-step-media img {
        height: auto;
        max-height: 14rem;
        width: 100%;
        object-fit: contain;
    }
}

@media (max-width: 991.98px) {
    .service-process-steps-rich {
        grid-template-columns: 1fr;
    }
}

/* How we work – horizontal timeline with connecting line (legacy pages if used) */
.service-process-timeline .service-process-steps {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}
.service-process-timeline .service-process-steps::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 15%;
    right: 15%;
    height: 3px;
    background: linear-gradient(90deg, var(--agency-accent), rgba(18, 130, 255, 0.4));
    border-radius: 2px;
    z-index: 0;
}
@media (max-width: 768px) {
    .service-process-timeline .service-process-steps::before {
        display: none;
    }
}
.service-process-timeline .service-process-step {
    position: relative;
    z-index: 1;
    flex: 1 1 0;
    min-width: 180px;
}
.service-process-timeline .service-process-num {
    box-shadow: 0 0 0 4px var(--agency-bg), 0 0 0 6px var(--agency-accent);
}

/* Related services – cards */
.service-related-v2 {
    padding: clamp(3rem, 8vw, 5rem) 1.5rem;
    background: var(--agency-surface);
}

.service-related-v2 h2 {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.service-related-v2-intro {
    font-size: 0.95rem;
    color: var(--agency-muted);
    margin-bottom: 1.5rem;
}

.service-related-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 1.25rem;
}

.service-related-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--agency-border);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.service-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
    border-color: rgba(18, 130, 255, 0.3);
}

.service-related-card-icon {
    width: 44px;
    height: 44px;
    background: rgba(18, 130, 255, 0.1);
    color: var(--agency-accent);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.service-related-card-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.service-related-card-desc {
    font-size: 0.9rem;
    color: var(--agency-muted);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    flex: 1;
}

.service-related-card-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--agency-accent);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.service-related-card:hover .service-related-card-link {
    text-decoration: underline;
}

/* Service pricing packages */
.service-pricing-packages {
    background: var(--agency-surface);
}

.service-pricing-intro {
    font-size: 0.95rem;
    color: var(--agency-muted);
}

.service-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 1.25rem;
}

.service-pricing-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--agency-border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.service-pricing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    border-color: rgba(18, 130, 255, 0.2);
}

.service-pricing-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.service-pricing-card-desc {
    font-size: 0.9rem;
    color: var(--agency-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
}

.service-pricing-card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--agency-accent);
    margin-bottom: 1rem;
}

.service-pricing-card .agency-btn {
    margin-top: auto;
    white-space: nowrap;
}

/* Service pricing tiers (press-releases package cards) – hover lift + shadow */
.service-pricing-tiers .card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-pricing-tiers .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1), 0 1rem 2rem rgba(0, 0, 0, 0.08);
}

/* Final CTA – blue band distinct from dark footer (#1c1e22) */
.service-cta-final {
    background: linear-gradient(165deg, var(--agency-accent) 0%, #0d5ed4 42%, #0a4aad 100%);
    color: #fff;
    padding: clamp(1.75rem, 4vw, 2.5rem) 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.service-cta-final-inner {
    max-width: min(56rem, 100%);
    margin: 0 auto;
}

.service-cta-final h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.service-cta-final p {
    margin-bottom: 1.5rem;
    opacity: 1;
}

/* One line on wide viewports; wrap naturally on small screens */
@media (min-width: 900px) {
    .service-cta-final-lead {
        white-space: nowrap;
    }
}

.service-cta-final-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.service-cta-final .agency-btn-primary {
    background: var(--agency-accent);
    border: none;
}

.service-cta-final .agency-btn-primary:hover {
    background: var(--agency-accent-hover);
}

.service-cta-final .agency-btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
}

.service-cta-final .agency-btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    color: #fff;
}

.service-cta-final .agency-btn-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.7);
    color: #fff;
}
.service-cta-final .agency-btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
}

.service-cta-final-note {
    font-size: 0.9rem;
    opacity: 0.85;
    margin: 0;
}

@media (max-width: 768px) {
    .service-intro-v2 .service-block-inner {
        grid-template-columns: 1fr;
    }
    .service-intro-v2-top.service-wyg-hero-band {
        grid-template-columns: 1fr;
    }
    .service-intro-v2--rich .service-wyg-hero-icon.service-intro-v2-icon {
        justify-self: start;
    }
    .service-wyg-shell {
        padding: 0;
    }
    .service-process-steps,
    .service-process-timeline .service-process-steps {
        grid-template-columns: 1fr;
    }
    .service-trust-strip-inner {
        flex-direction: column;
        align-items: center;
    }
    .service-trusted-by-logos {
        gap: 1.5rem;
    }
    .service-cta-final-buttons {
        flex-direction: column;
    }
    .service-cta-final-buttons .agency-btn {
        width: 100%;
        justify-content: center;
    }
}

/* CTA – simple centered strip (pages without .agency-cta-banner) */
.agency-cta:not(.agency-cta-banner) {
    text-align: center;
    padding: 4rem 1.5rem;
}

.agency-cta:not(.agency-cta-banner) h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.agency-cta:not(.agency-cta-banner) p {
    color: var(--agency-muted);
    margin-bottom: 1.5rem;
}

/* CTA – homepage footer banner */
.agency-cta.agency-cta-banner {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: left;
    background: linear-gradient(118deg, #0a3d78 0%, var(--agency-accent, #1282ff) 45%, #1a74e8 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 -12px 40px rgba(18, 130, 255, 0.18);
    position: relative;
    overflow: hidden;
}

.agency-cta.agency-cta-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 90% 120% at 100% 0%, rgba(255, 255, 255, 0.14), transparent 52%);
    pointer-events: none;
}

.agency-cta-banner-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(2.35rem, 5vw, 3.65rem) 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 2.25rem;
}

.agency-cta-banner-copy {
    flex: 1 1 min(100%, 32rem);
    min-width: min(100%, 240px);
}

.agency-cta-banner-title {
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 0.5rem;
    color: #fff;
}

.agency-cta-banner-dek {
    margin: 0;
    font-size: 1.06rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
    max-width: 36rem;
}

.agency-cta-banner-actions {
    flex: 0 0 auto;
}

/* High-contrast pill on blue band (reads as primary CTA) */
.agency-cta-banner .agency-cta-banner-btn.agency-btn-primary {
    background: #fff;
    color: var(--agency-accent, #1282ff);
    border: none;
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.15);
    font-weight: 600;
}

.agency-cta-banner .agency-cta-banner-btn.agency-btn-primary:hover {
    background: #f0f7ff;
    color: var(--agency-accent-hover, #0d5dd1);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

@media (prefers-reduced-motion: reduce) {
    .agency-cta-banner .agency-cta-banner-btn.agency-btn-primary:hover {
        transform: none;
    }
}

@media (max-width: 767.98px) {
    .agency-cta-banner-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .agency-cta-banner-actions {
        width: 100%;
        justify-content: center;
    }
}

/* Service page mid CTA – reuse homepage banner gradient; no upward footer shadow */
.agency-cta.agency-cta-banner.service-cta-mid {
    box-shadow: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

/* Contact */
.agency-contact {
    background: var(--agency-surface);
}

.agency-contact-inner {
    max-width: 560px;
    margin: 0 auto;
}

.agency-contact form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.agency-contact label {
    font-weight: 600;
    font-size: 0.9rem;
}

.agency-contact input {
    width: 100%;
    min-height: var(--touch-min);
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1px solid var(--agency-border);
    border-radius: 10px;
    color: var(--agency-text);
    font-family: inherit;
    font-size: 16px; /* prevents iOS zoom on focus */
    transition: border-color 0.2s;
}

.agency-contact input::placeholder,
.agency-contact textarea::placeholder {
    color: var(--agency-muted);
}

.agency-contact input:focus,
.agency-contact textarea:focus {
    outline: none;
    border-color: var(--agency-accent);
}

.agency-contact textarea {
    width: 100%;
    min-height: 140px;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1px solid var(--agency-border);
    border-radius: 10px;
    color: var(--agency-text);
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.2s;
    resize: vertical;
}

.agency-contact button[type="submit"] {
    align-self: flex-start;
    margin-top: 0.5rem;
}

/* Footer – dark */
.frontend-footer {
    background: #1c1e22;
    color: rgba(255, 255, 255, 0.88);
    padding: 2.5rem 1.5rem 2rem;
    border-top: none;
}

.frontend-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.frontend-footer-links {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem 3rem;
    margin-bottom: 2rem;
    text-align: left;
}

.frontend-footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
    padding: 0 1rem;
}

.frontend-footer-col:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding-right: 1.5rem;
    margin-right: 0.5rem;
}

.frontend-footer-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.25rem;
}

.frontend-footer a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 0.95rem;
}

.frontend-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.frontend-footer-copy {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Dynamic Google review badge in the footer (values from settings → GBP API cache) */
.frontend-footer-rating-badge {
    text-align: center;
    margin: 1.25rem auto 0.75rem;
    line-height: 1;
}
.frontend-footer-rating-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.875rem;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}
a.frontend-footer-rating-link:hover,
a.frontend-footer-rating-link:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    text-decoration: none;
}
.frontend-footer-rating-stars {
    color: #f5b301;
    font-size: 0.95rem;
    line-height: 1;
    letter-spacing: 1px;
    display: inline-flex;
    gap: 1px;
}
.frontend-footer-rating-text {
    font-size: 0.875rem;
}
.frontend-footer-rating-text strong {
    font-weight: 700;
    color: #fff;
}
@media (max-width: 480px) {
    .frontend-footer-rating-link {
        white-space: normal;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
}

/* Footer social icons (grayscale → brand-color on hover) */
.frontend-footer-social {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 1rem auto 0.5rem;
}
.frontend-footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.55);
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.frontend-footer-social-icon:hover,
.frontend-footer-social-icon:focus {
    color: var(--social-brand-color, #fff);
    border-color: var(--social-brand-color, rgba(255, 255, 255, 0.5));
    background-color: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

/* Utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ========== Responsive: tablet and below ========== */
@media (max-width: 768px) {
    .frontend-header {
        padding: 1rem 0;
    }
    .frontend-logo {
        font-size: 1.1rem;
    }
    .frontend-logo img {
        max-height: 48px;
    }
    .frontend-nav-toggle {
        display: flex;
    }
    .frontend-nav {
        display: none;
    }
    .frontend-nav.mobile-open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        /* Tighter than desktop .frontend-nav gap (0.5rem) — saves vertical space in the stack */
        gap: 0.125rem;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0.35rem 0.55rem;
        background: var(--agency-bg);
        border-bottom: 1px solid var(--agency-border);
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }
    .frontend-nav.mobile-open a {
        width: 100%;
        padding: 0.4rem 0.65rem;
        min-height: 2.625rem;
        box-sizing: border-box;
        border-radius: 8px;
        font-size: 0.9375rem;
        line-height: 1.25;
    }
    /* Services row: mega panel adds its own margin; keep trigger row compact */
    .frontend-nav.mobile-open .nav-link-mega-trigger {
        padding-top: 0.4rem;
        padding-bottom: 0.4rem;
    }
    .frontend-nav.mobile-open .nav-cta {
        margin-left: 0;
        margin-top: 0.2rem;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        min-height: 2.625rem;
    }
    .agency-hero {
        min-height: auto;
        padding: 6rem 1rem 3rem;
    }
    .agency-hero-inner .agency-hero-headline {
        font-size: clamp(1.75rem, 7vw, 4rem);
    }
    /* Kinetic hero: one shared scale for prefix, rotating line, and suffix (all larger than default headline) */
    .agency-hero-inner .agency-hero-headline--kinetic {
        /* Slightly under prior scale so “that grow your business” stays one line on narrow phones */
        font-size: clamp(2rem, 8.85vw, 4.65rem);
    }
    /* “that grow your business” starts its own row (no orphaned “that” after the blue slot) */
    .agency-hero-headline--kinetic .agency-hero-kinetic-suffix-space-before-that {
        display: none;
    }
    .agency-hero-headline--kinetic .agency-hero-kinetic-suffix-third {
        display: block;
    }
    .agency-hero p.agency-hero-subtitle {
        font-size: 1.05rem;
    }
    .agency-hero-buttons {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }
    .agency-hero-buttons .agency-btn {
        width: 100%;
        max-width: 320px;
    }
    .agency-hero-chat-prompt {
        margin-top: 1.5rem;
    }
    .agency-hero-chat-input {
        min-height: 48px;
    }
    .agency-section {
        padding: 3rem 1rem;
    }
    .agency-section.portfolio-section {
        padding-left: 0;
        padding-right: 0;
    }
    .agency-section.portfolio-section > .portfolio-section-head,
    .agency-section.portfolio-section > .portfolio-toolbar,
    .agency-section.portfolio-section > .portfolio-grid,
    .agency-section.portfolio-section > .agency-work-view-all {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .agency-services-inner,
    .agency-services-sleek-inner {
        padding: 3rem 1rem;
    }
    .agency-section-subtitle {
        margin-bottom: 1.5rem;
    }
    .agency-work-grid {
        grid-template-columns: 1fr;
    }
    .agency-cta:not(.agency-cta-banner) {
        padding: 3rem 1rem;
    }

    .agency-cta-banner-inner {
        padding: 2.5rem 1rem;
    }
    .agency-contact {
        padding: 3rem 1rem;
    }
    .frontend-footer {
        padding: 1.5rem 1rem;
    }
    .frontend-footer-links {
        grid-template-columns: 1fr;
        align-items: center;
        gap: 1.5rem;
        text-align: center;
    }
    .frontend-footer-col {
        align-items: center;
    }
    .frontend-footer-col:first-child {
        border-right: none;
        margin-right: 0;
        padding-right: 1rem;
    }
    .chat-float-bubble-wrapper {
        bottom: 1rem;
        right: 1rem;
    }
    .frontend-chat-panel {
        top: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    .frontend-chat-panel:not(.open) {
        transform: translateX(100vw);
    }
    .frontend-chat-panel.chat-position-focussed {
        left: 50%;
        top: 50%;
        right: auto;
        width: 92%;
        max-width: 100%;
        height: 80vh;
        max-height: 80vh;
        border-radius: 12px;
        transform: translate(-50%, -50%) scale(0.95);
    }
    .frontend-chat-panel.chat-position-focussed:not(.open) {
        transform: translate(-50%, -50%) scale(0.95);
    }
    .frontend-chat-panel.chat-position-focussed.open {
        transform: translate(-50%, -50%) scale(1);
    }
    /* Back-to-top below and left of chat on small screens */
    .back-to-top {
        bottom: 0.5rem;
        right: 4.5rem;
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
}

/* ========== Responsive: small phones ========== */
@media (max-width: 480px) {
    .agency-hero {
        padding: 6rem 0.75rem 2.5rem;
    }
    .agency-section {
        padding: 2.5rem 0.75rem;
    }
    .agency-services-inner,
    .agency-services-sleek-inner {
        padding: 2.5rem 0.75rem;
    }
    .agency-section-title {
        font-size: clamp(1.5rem, 5vw, 1.75rem);
    }
    .agency-section.portfolio-section > .portfolio-section-head,
    .agency-section.portfolio-section > .portfolio-toolbar,
    .agency-section.portfolio-section > .portfolio-grid,
    .agency-section.portfolio-section > .agency-work-view-all {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    .agency-home-blog-editorial-title {
        font-size: clamp(1.5rem, 5vw, 1.75rem);
    }
    .agency-work-card .thumb {
        height: 160px;
        font-size: 2.5rem;
    }
    .agency-work-card .body {
        padding: 1rem 1.25rem;
    }
}

/* Chat bubble – frontend (keep in frontend folder) */
.chat-float-bubble-wrapper {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1050;
}
.chat-float-bubble {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    border-radius: 50%;
    background: var(--agency-accent);
    color: #fff !important;
    border: 2px solid var(--agency-accent-hover);
    box-shadow: 0 2px 12px rgb(252 252 252);
    transition: background 0.2s, transform 0.2s;
    cursor: pointer;
}
.chat-float-bubble:hover {
    background: var(--agency-accent-hover);
    color: #fff !important;
    transform: scale(1.05);
}
.chat-float-bubble i {
    font-size: 1.4rem;
}

/* Periodic double-bounce reminder (triggered every 15s via JS .animate class) */
@keyframes chat-bubble-double-bounce {
    0%, 100% { transform: translateY(0); }
    25%      { transform: translateY(-10px); }
    50%      { transform: translateY(0); }
    65%      { transform: translateY(-6px); }
    80%, 100% { transform: translateY(0); }
}
.chat-float-bubble.animate {
    animation: chat-bubble-double-bounce 1s ease-out both;
}
.chat-float-bubble.animate:hover {
    transform: translateY(0) scale(1.05);
}

.frontend-chat-panel {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 100%;
    max-width: 380px;
    max-height: 85vh;
    height: 520px;
    background: #fff;
    border: 1px solid var(--agency-border);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    z-index: 1060;
    display: flex;
    flex-direction: column;
    transform: translateX(calc(100% + 1rem));
    transition: transform 0.25s ease, visibility 0.25s ease;
    visibility: hidden;
    pointer-events: none;
}
.frontend-chat-panel.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

/* Chat backdrop: dim and blur background when chat is open */
.frontend-chat-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 1055;
    pointer-events: auto;
}

/* Focussed (centered) position: wider, centered modal-like window */
.frontend-chat-panel.chat-position-focussed {
    left: 50%;
    top: 50%;
    right: auto;
    width: 90%;
    max-width: 560px;
    height: 75vh;
    max-height: 640px;
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
}
.frontend-chat-panel.chat-position-focussed:not(.open) {
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0;
}
.frontend-chat-panel.chat-position-focussed.open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.frontend-chat-panel .chat-panel-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--agency-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    border-radius: 12px 12px 0 0;
}
.frontend-chat-panel .chat-panel-header-text {
    flex: 1;
    min-width: 0;
    padding-right: 0.5rem;
}
.frontend-chat-panel .chat-panel-header-tagline {
    font-weight: normal;
    line-height: 1.35;
}
.frontend-chat-panel .chat-panel-body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}
.frontend-chat-panel .chat-panel-footer {
    padding: 1rem;
    border-top: 1px solid var(--agency-border);
    flex-shrink: 0;
}

/* Back to top – frontend: under (below) chat icon, left of it so it never covers chat; slightly transparent */
.back-to-top {
    position: fixed;
    /* Below and left of chat: chat at right 1.5rem / bottom 1.5rem; back-to-top under it, no overlap */
    bottom: 0.5rem;
    right: 5.25rem;
    width: 44px;
    height: 44px;
    background: rgba(18, 130, 255, 0.82);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 1040;
    box-shadow: 0 2px 10px rgba(18, 130, 255, 0.25);
    transition: background 0.2s, transform 0.2s, opacity 0.2s;
    opacity: 0;
    transform: translateY(12px);
}
.back-to-top.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}
.back-to-top:hover {
    background: rgba(10, 110, 230, 1);
    transform: translateY(-2px);
}

/* Payment page */
.payment-page {
    max-width: 600px;
    margin: 6rem auto 4rem;
    padding: 0 1rem;
}
.payment-page-inner {
    background: #fff;
    border: 1px solid var(--agency-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.payment-page-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}
.payment-form .form-label {
    font-weight: 600;
    margin-bottom: 0.35rem;
}
.payment-amount-row {
    margin-bottom: 1rem;
}
.payment-fee-summary {
    background: var(--agency-surface);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}
.payment-agree-row {
    margin-bottom: 1.25rem;
}
.payment-agree-row .form-check-label a {
    color: var(--agency-accent);
    text-decoration: underline;
}
.payment-agree-row .form-check-label a:hover {
    color: var(--agency-accent-hover);
}
.payment-email-row {
    margin-bottom: 1rem;
}
.payment-card-fields {
    margin-bottom: 1rem;
}
.payment-card-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.payment-submit {
    width: 100%;
    border-radius: 999px;
}

/* Terms and conditions page */
.terms-page {
    max-width: 720px;
    margin: 4rem auto 4rem;
    padding: 0 1rem;
}
.terms-page-inner {
    background: #fff;
    border: 1px solid var(--agency-border);
    border-radius: 16px;
    padding: 5rem 2.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.terms-page-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}
.terms-section {
    margin-bottom: 2rem;
}
.terms-section:last-child {
    margin-bottom: 0;
}
.terms-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.terms-section h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}
.terms-section p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: var(--agency-text);
}
.terms-section ul {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
}

@media (min-width: 768px) {
    .p-md-5 {
        /* padding: 1rem !important; */
    }
}

.ai-style-change-1.rounded-4 {
    margin-top: 3rem;
}
