/* =========================================================
   Custom development (agency) sections & pages — scoped to .hp.ag
   Builds on home.css tokens (--hp-*). Mobile-first.
   ========================================================= */

.ag { --ag-dark: #071431; --ag-dark-2: #0c1d44; }

.hp .hp-btn-lg { min-height: 54px; padding: 0 26px; font-size: 1rem; border-radius: 14px; }

/* ---------- Hero additions (home) ---------- */
.ag-hero-checks {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: .9rem;
    color: var(--hp-ink-2);
}
.ag-hero-checks li { display: inline-flex; align-items: center; gap: 7px; }
.ag-hero-checks i { color: #10b981; }
.ag-hero-products { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--hp-line); }
.ag-hero-products .hp-popular-label i { color: var(--hp-primary); margin-right: 4px; }
.ag-home .hp-proof { margin-top: 22px; }

.ag-fcase { text-decoration: none; transition: transform .25s var(--hp-ease), box-shadow .25s var(--hp-ease); }
.ag-fcase:hover { transform: translateY(-3px); }
.ag-fcase-icon { background: linear-gradient(135deg, var(--accent, #7c5cff), #3b8bff); }
.hp .ag-fcase.hp-float-3 { width: auto; }

/* ---------- Services ---------- */
.ag-services { background: var(--hp-bg); }
.ag-services-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) { .ag-services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) {
    .ag-services-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
    .ag-services-grid .ag-service { padding: 26px 22px 22px; }
    .ag-services-grid .ag-service h3 { font-size: 1.12rem; }
}

.ag-service {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px 26px 24px;
    border-radius: var(--hp-radius-lg);
    background: #fff;
    border: 1px solid var(--hp-line);
    box-shadow: var(--hp-shadow-sm);
    transition: transform .3s var(--hp-ease), box-shadow .3s var(--hp-ease), border-color .3s;
    overflow: hidden;
    isolation: isolate;
}
.ag-service::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(420px 180px at 0% 0%, rgba(var(--hp-primary-rgb), .07), transparent 70%);
    opacity: 0;
    transition: opacity .3s;
}
.ag-service:hover { transform: translateY(-4px); box-shadow: var(--hp-shadow); border-color: rgba(var(--hp-primary-rgb), .25); }
.ag-service:hover::before { opacity: 1; }
.ag-service-icon {
    width: 52px; height: 52px;
    display: grid; place-items: center;
    border-radius: 14px;
    font-size: 21px;
    color: #fff;
    background: var(--hp-grad);
    box-shadow: 0 10px 22px -12px rgba(var(--hp-primary-rgb), .9);
    margin-bottom: 18px;
}
.ag-service:nth-child(6n+2) .ag-service-icon { background: linear-gradient(135deg, #7c5cff, #b06bff); box-shadow: 0 10px 22px -12px rgba(124, 92, 255, .9); }
.ag-service:nth-child(6n+3) .ag-service-icon { background: linear-gradient(135deg, #00b894, #00d2a0); box-shadow: 0 10px 22px -12px rgba(0, 184, 148, .9); }
.ag-service:nth-child(6n+4) .ag-service-icon { background: linear-gradient(135deg, #ff7a45, #ffb347); box-shadow: 0 10px 22px -12px rgba(255, 122, 69, .9); }
.ag-service:nth-child(6n+5) .ag-service-icon { background: linear-gradient(135deg, #ff4d8d, #ff7aa8); box-shadow: 0 10px 22px -12px rgba(255, 77, 141, .9); }
.ag-service:nth-child(6n+6) .ag-service-icon { background: linear-gradient(135deg, #0ea5e9, #22d3ee); box-shadow: 0 10px 22px -12px rgba(14, 165, 233, .9); }
.ag-service h3 { font-size: 1.2rem; font-weight: 700; margin: 0 0 8px; letter-spacing: -.01em; }
.ag-service p { font-size: .95rem; line-height: 1.6; margin: 0 0 16px; }
.ag-service ul { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.ag-service li { display: flex; gap: 9px; align-items: baseline; font-size: .9rem; color: var(--hp-ink-2); }
.ag-service li i { color: #10b981; font-size: .75rem; }
.ag-service-link {
    margin-top: auto;
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 600; font-size: .92rem;
    color: var(--hp-primary);
}
.ag-service-link i { transition: transform .25s var(--hp-ease); }
.ag-service-link:hover i { transform: translateX(4px); }

/* Three ways to start + "We also help with" */
.ag-start-top { display: flex; align-items: flex-start; justify-content: space-between; }
.ag-start-num { font-size: 2.4rem; font-weight: 800; line-height: 1; color: rgba(var(--hp-primary-rgb), .13); }
.ag-service p.ag-start-best {
    display: block;
    margin: 0 0 12px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: .86rem;
    line-height: 1.45;
    color: var(--hp-ink-2);
    background: rgba(var(--hp-primary-rgb), .06);
}
.ag-start-best i { color: var(--hp-primary); margin-right: 4px; }
.ag-start-best span { font-weight: 700; color: var(--hp-ink); }
.ag-cap-head { margin: 48px 0 16px; }
.ag-cap-head p { margin: 4px 0 0; color: var(--hp-muted); font-size: .95rem; }
.ag-extra-title { margin: 0; font-size: 1.25rem; font-weight: 700; }
.ag-cap-else { margin: 18px 0 0; color: var(--hp-muted); font-size: .95rem; }
.ag-cap-else i { color: var(--hp-primary); margin-right: 6px; }
.ag-cap-else a { font-weight: 600; color: var(--hp-primary); }
.ag-extra-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .ag-extra-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .ag-extra-grid { grid-template-columns: repeat(3, 1fr); } }
.ag-extra {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 18px;
    border-radius: var(--hp-radius);
    background: #fff;
    border: 1px solid var(--hp-line);
    color: inherit;
    text-decoration: none;
    transition: border-color .25s, box-shadow .25s;
}
.ag-extra:hover { border-color: rgba(var(--hp-primary-rgb), .3); box-shadow: var(--hp-shadow-sm); color: inherit; }
.ag-extra .ag-service-icon { width: 42px; height: 42px; font-size: 17px; margin: 0; flex: 0 0 auto; border-radius: 12px; }
.ag-extra-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ag-extra-copy strong { color: var(--hp-ink); font-size: .98rem; }
.ag-extra-copy small { color: var(--hp-muted); font-size: .84rem; line-height: 1.5; }

/* ---------- Process ---------- */
.ag-process { background: var(--hp-bg); }
.ag-steps {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: 16px;
    grid-template-columns: 1fr;
    counter-reset: step;
    position: relative;
}
@media (min-width: 640px) { .ag-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
    .ag-steps { grid-template-columns: repeat(5, 1fr); gap: 18px; }
    .ag-steps::before {
        content: "";
        position: absolute;
        left: 8%; right: 8%; top: 52px;
        height: 2px;
        background: repeating-linear-gradient(90deg, rgba(var(--hp-primary-rgb), .35) 0 8px, transparent 8px 16px);
        z-index: 0;
    }
}
.ag-step {
    position: relative;
    z-index: 1;
    padding: 24px 22px;
    border-radius: var(--hp-radius-lg);
    background: #fff;
    border: 1px solid var(--hp-line);
    box-shadow: var(--hp-shadow-sm);
}
.ag-step-num {
    position: absolute; top: 18px; right: 20px;
    font-size: .8rem; font-weight: 800; letter-spacing: .08em;
    color: var(--hp-soft);
}
.ag-step-icon {
    width: 56px; height: 56px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--hp-primary);
    font-size: 20px;
    border: 2px solid rgba(var(--hp-primary-rgb), .18);
    box-shadow: 0 0 0 6px #fff;
    margin-bottom: 16px;
}
.ag-step h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 6px; }
.ag-step p { font-size: .9rem; line-height: 1.55; margin: 0; }

/* ---------- Process: sticky stack (desktop) ----------
   Intro stays on the left; each step sticks a little lower than the one before,
   so the next card slides up over it. home.js ("Process stack") moves the meter
   and sets --cover (0..1) on cards that are being covered. */
.ag-process-meter { display: none; }
@media (min-width: 992px) and (min-height: 500px) {
    .ag-process-layout {
        display: grid;
        grid-template-columns: .82fr 1.18fr;
        gap: 64px;
        align-items: start;
    }
    .ag-process-intro { position: sticky; top: 130px; }
    .ag-process-intro .hp-head-center { justify-content: flex-start; text-align: left; margin-bottom: 28px; }
    .ag-process-intro .hp-head-center > div:first-child { margin: 0; }
    .ag-process-meter { display: grid; gap: 10px; max-width: 340px; }
    .ag-process-count { font-size: .9rem; font-weight: 700; color: var(--hp-soft); letter-spacing: .06em; }
    .ag-process-count b { font-size: 2.2rem; font-weight: 800; color: var(--hp-primary); letter-spacing: -.02em; margin-right: 4px; }
    .ag-process-track { display: block; height: 4px; border-radius: 4px; background: rgba(var(--hp-primary-rgb), .14); overflow: hidden; }
    .ag-process-track i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--hp-grad, var(--hp-primary)); transform: scaleX(var(--p, .2)); transform-origin: 0 50%; transition: transform .35s var(--hp-ease); }
    .ag-process-label { font-size: 1rem; font-weight: 700; color: var(--hp-ink); }

    .ag-process-layout .ag-steps { grid-template-columns: 1fr; gap: 22px; padding-bottom: 40px; }
    .ag-process-layout .ag-steps::before,
    .ag-process-layout .ag-steps::after { display: none; }
    .ag-process .ag-process-layout .ag-step {
        position: sticky;
        top: calc(130px + var(--i, 0) * 16px);
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 22px;
        align-items: center;
        min-height: 190px;
        padding: 30px 34px;
        transform-origin: 50% 0;
        box-shadow: 0 -8px 30px -18px rgba(15, 23, 42, .35), var(--hp-shadow-sm);
    }
    .ag-process-layout .ag-step.is-stacked { transform: scale(calc(1 - var(--cover, 0) * .05)); }
    .ag-process-layout .ag-step.is-stacked > * { opacity: calc(1 - var(--cover, 0) * .55); }
    .ag-process-layout .ag-step-icon { margin: 0; width: 64px; height: 64px; font-size: 22px; }
    .ag-process-layout .ag-step h3 { font-size: 1.25rem; margin-bottom: 8px; }
    .ag-process-layout .ag-step p { font-size: 1rem; }
    .ag-process-layout .ag-step-num { font-size: 3rem; top: 14px; right: 24px; opacity: .25; letter-spacing: -.02em; }
}

/* ---------- Case study cards ---------- */
.ag-cases-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .ag-cases-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
    .ag-cases-grid { grid-template-columns: repeat(3, 1fr); }
    .ag-cases-grid--two { grid-template-columns: repeat(2, 1fr); }
}

.ag-case {
    --accent: #0072ff;
    display: flex; flex-direction: column;
    border-radius: var(--hp-radius-lg);
    background: #fff;
    border: 1px solid var(--hp-line);
    overflow: hidden;
    box-shadow: var(--hp-shadow-sm);
    transition: transform .35s var(--hp-ease), box-shadow .35s var(--hp-ease);
}
.ag-case:hover { transform: translateY(-5px); box-shadow: var(--hp-shadow-lg); }
.ag-case-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    padding: 22px 22px 0;
    background: linear-gradient(140deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #071431));
    overflow: hidden;
    isolation: isolate;
}
.ag-case-glow {
    position: absolute; inset: auto -20% -60% -20%;
    height: 80%;
    background: radial-gradient(closest-side, rgba(255, 255, 255, .35), transparent);
    z-index: -1;
}
.ag-case-media img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: top center;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -10px 40px -10px rgba(0, 0, 0, .45);
    transition: transform .6s var(--hp-ease);
    display: block;
}
.ag-case:hover .ag-case-media img { transform: translateY(-6px) scale(1.02); }
.ag-case-base {
    position: absolute; left: 14px; top: 12px;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: .72rem; font-weight: 700;
    color: #fff;
    background: rgba(7, 20, 49, .45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.ag-case-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.ag-case-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ag-case-tags span {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px;
    font-size: .74rem; font-weight: 600;
    border-radius: 999px;
    color: var(--accent, var(--hp-primary));
    background: color-mix(in srgb, var(--accent, #0072ff) 10%, #fff);
}
.ag-case-tags span.is-status { color: #047857; background: #ecfdf5; }
.ag-case-tags span.is-status i { font-size: .45rem; }
.ag-case h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.35; margin: 0 0 10px; letter-spacing: -.01em; }
.ag-case h3 a { color: inherit; }
.ag-case h3 a:hover { color: var(--accent); }
.ag-case-body > p { font-size: .92rem; line-height: 1.6; margin: 0 0 18px; }
.ag-case-results {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
    margin: 0 0 18px;
}
.ag-case-results > div { padding: 12px 14px; border-radius: 12px; background: var(--hp-bg-soft); }
.ag-case-results dt { font-size: 1.25rem; font-weight: 800; color: var(--hp-ink); letter-spacing: -.02em; }
.ag-case-results dd { margin: 2px 0 0; font-size: .76rem; line-height: 1.35; }
.ag-case-more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; color: var(--accent); }
.ag-case-more i { transition: transform .25s var(--hp-ease); }
.ag-case-more:hover i { transform: translateX(4px); }

@media (min-width: 1100px) {
    .ag-cases-grid:has(.ag-case--lg) { grid-template-columns: repeat(2, 1fr); }
    .ag-case--lg { grid-column: span 2; flex-direction: row; }
    .ag-case--lg .ag-case-media { flex: 0 0 56%; aspect-ratio: auto; min-height: 380px; padding: 36px 36px 0; }
    .ag-case--lg .ag-case-body { padding: 36px 40px; justify-content: center; }
    .ag-case--lg h3 { font-size: 1.65rem; }
    .ag-case--lg .ag-case-body > p { font-size: 1rem; }
    .ag-case--lg .ag-case-results { grid-template-columns: repeat(2, 1fr); }
    .ag-case--lg .ag-case-results dt { font-size: 1.6rem; }
}

/* ---------- Start from a proven core ---------- */
.ag-core { background: var(--hp-bg-soft); }
.ag-core-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 992px) { .ag-core-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; } }
.ag-core-copy h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; margin: 0 0 14px; }
.ag-core-copy > p { font-size: 1.02rem; line-height: 1.7; margin: 0 0 24px; }
.ag-core-bar {
    display: flex; height: 46px;
    border-radius: 14px; overflow: hidden;
    font-size: .8rem; font-weight: 700;
    box-shadow: var(--hp-shadow-sm);
    margin-bottom: 20px;
}
.ag-core-bar > div { display: flex; align-items: center; padding: 0 14px; white-space: nowrap; overflow: hidden; }
.ag-core-bar-built { flex: 0 0 78%; color: #fff; background: var(--hp-grad); }
.ag-core-bar-custom { flex: 1; color: #6b21a8; background: repeating-linear-gradient(135deg, #f3e8ff 0 10px, #ede0ff 10px 20px); justify-content: center; }
.hp-js .ag-core-bar-built { transform-origin: left; transform: scaleX(.05); transition: transform 1.4s var(--hp-ease) .2s; }
.hp-js .is-visible .ag-core-bar-built { transform: none; }
@media (max-width: 479.98px) { .ag-core-bar-custom span { display: none; } .ag-core-bar-custom::after { content: "+"; } }
.ag-core-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px; }
.ag-core-list li { display: flex; gap: 8px; align-items: baseline; font-size: .92rem; color: var(--hp-ink-2); }
.ag-core-list i { color: var(--hp-primary); font-size: .75rem; }
.ag-core-products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ag-core-card {
    border-radius: 18px; overflow: hidden;
    background: #fff; border: 1px solid var(--hp-line);
    box-shadow: var(--hp-shadow-sm);
    transition: transform .3s var(--hp-ease), box-shadow .3s var(--hp-ease);
}
.ag-core-card:hover { transform: translateY(-4px); box-shadow: var(--hp-shadow); }
.ag-core-card:nth-child(even) { transform: translateY(24px); }
.ag-core-card:nth-child(even):hover { transform: translateY(20px); }
.ag-core-img { display: block; aspect-ratio: 590 / 300; overflow: hidden; background: var(--hp-bg-soft); }
.ag-core-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--hp-ease); }
.ag-core-card:hover .ag-core-img img { transform: scale(1.04); }
.ag-core-body { padding: 14px 16px 16px; }
.ag-core-body h3 { font-size: 1rem; font-weight: 700; margin: 0 0 2px; }
.ag-core-body h3 a { color: inherit; }
.ag-core-body small { display: block; font-size: .78rem; color: var(--hp-soft); margin-bottom: 8px; }
.ag-core-link { display: inline-flex; gap: 6px; align-items: center; font-size: .85rem; font-weight: 600; color: var(--hp-primary); }
@media (max-width: 575.98px) {
    .ag-core-products { gap: 12px; }
    .ag-core-card:nth-child(even), .ag-core-card:nth-child(even):hover { transform: none; }
    .ag-core-list { grid-template-columns: 1fr; }
}

/* ---------- Engagement models ---------- */
.ag-models-grid { display: grid; gap: 20px; grid-template-columns: 1fr; max-width: 1120px; margin: 0 auto; }
@media (min-width: 900px) { .ag-models-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.ag-model {
    position: relative;
    display: flex; flex-direction: column;
    padding: 30px 26px 26px;
    border-radius: var(--hp-radius-lg);
    background: #fff;
    border: 1px solid var(--hp-line);
    box-shadow: var(--hp-shadow-sm);
}
.ag-model.is-featured {
    border-color: transparent;
    background: linear-gradient(#fff, #fff) padding-box, var(--hp-grad) border-box;
    border: 2px solid transparent;
    box-shadow: var(--hp-shadow-lg);
}
@media (min-width: 900px) { .ag-model.is-featured { transform: translateY(-10px); } }
.ag-model-badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    padding: 5px 14px; border-radius: 999px;
    font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    color: #fff; background: var(--hp-grad);
    white-space: nowrap;
}
.ag-model-icon {
    width: 48px; height: 48px; display: grid; place-items: center;
    border-radius: 14px; font-size: 19px;
    color: var(--hp-primary); background: rgba(var(--hp-primary-rgb), .08);
    margin-bottom: 16px;
}
.ag-model h3 { font-size: 1.25rem; font-weight: 700; margin: 0 0 4px; }
.ag-model-best { font-size: .88rem; margin: 0 0 18px; }
.ag-model ul { list-style: none; margin: 0 0 24px; padding: 18px 0 0; border-top: 1px solid var(--hp-line); display: grid; gap: 10px; }
.ag-model li { display: flex; gap: 10px; align-items: baseline; font-size: .93rem; color: var(--hp-ink-2); }
.ag-model li i { color: #10b981; }
.ag-model .hp-btn { margin-top: auto; width: 100%; }

/* ---------- Tech strip ---------- */
.ag-tech { padding: 8px 0 calc(var(--hp-section-y) * .6); }
.ag-tech-inner {
    display: flex; flex-direction: column; align-items: center; gap: 16px;
    padding: 26px 20px;
    border-radius: var(--hp-radius-lg);
    border: 1px dashed #d6deeb;
    background: var(--hp-bg-soft);
}
.ag-tech-label { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--hp-soft); }
.ag-tech-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ag-tech-list li {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 999px;
    background: #fff; border: 1px solid var(--hp-line);
    font-size: .88rem; font-weight: 600; color: var(--hp-ink-2);
    transition: border-color .2s, color .2s, transform .2s;
}
.ag-tech-list li:hover { border-color: rgba(var(--hp-primary-rgb), .4); color: var(--hp-primary); transform: translateY(-2px); }
.ag-tech-list li i { color: var(--hp-primary); font-size: 1rem; }

/* ---------- Quote section (dark) ---------- */
.ag-quote-wrap { padding-top: calc(var(--hp-section-y) * .5); }
.ag-quote {
    position: relative; overflow: hidden; isolation: isolate;
    border-radius: 28px;
    padding: 32px 20px;
    background: var(--ag-dark);
    color: #c7d2e6;
    display: grid; gap: 32px;
}
@media (min-width: 992px) { .ag-quote { grid-template-columns: .9fr 1.1fr; gap: 48px; padding: 56px; align-items: start; } }
.ag-quote-bg { position: absolute; inset: 0; z-index: -1; }
.ag-quote-bg span { position: absolute; border-radius: 50%; filter: blur(70px); }
.ag-quote-bg span:first-child { width: 520px; height: 520px; left: -200px; top: -240px; background: rgba(0, 114, 255, .55); }
.ag-quote-bg span:last-child { width: 420px; height: 420px; right: -160px; bottom: -220px; background: rgba(124, 92, 255, .4); }
.ag-quote-copy h2 { color: #fff; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; margin: 0 0 14px; }
.ag-quote-copy > p { font-size: 1.02rem; line-height: 1.7; margin: 0 0 26px; color: #b5c2db; }
.ag-quote-points { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; }
.ag-quote-points li { display: flex; align-items: center; gap: 14px; color: #e2e8f5; font-weight: 500; }
.ag-quote-points li span {
    flex: 0 0 40px; height: 40px; display: grid; place-items: center;
    border-radius: 12px; background: rgba(255, 255, 255, .08); color: #7cc4ff;
    border: 1px solid rgba(255, 255, 255, .1);
}
.ag-quote-card {
    background: #fff;
    border-radius: 22px;
    padding: 24px 20px;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55);
    color: var(--hp-muted);
}
@media (min-width: 576px) { .ag-quote-card { padding: 30px 28px; } }

/* Quick contact */
.ag-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ag-quick-label { font-size: .85rem; font-weight: 600; margin-right: 4px; }
.ag-quick-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 14px; border-radius: 12px;
    font-size: .88rem; font-weight: 600;
    color: var(--hp-ink-2); background: #fff; border: 1px solid var(--hp-line);
    transition: transform .2s, border-color .2s, color .2s;
}
.ag-quick-btn:hover { transform: translateY(-2px); border-color: rgba(var(--hp-primary-rgb), .4); color: var(--hp-primary); }
.ag-quick-btn.is-wa i { color: #25d366; }
.ag-quick-btn.is-tg i { color: #229ed9; }
.ag-quote .ag-quick-label { color: #b5c2db; }
.ag-quote .ag-quick-btn { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #fff; }
.ag-quote .ag-quick-btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------- Form ---------- */
.ag-form { display: grid; gap: 16px; }
.ag-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.ag-form-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.ag-form-group legend, .ag-field label {
    display: block; font-size: .86rem; font-weight: 600; color: var(--hp-ink); margin-bottom: 7px; float: none; width: auto;
}
.ag-field label small { font-weight: 500; color: var(--hp-soft); }
.ag-field label span { color: #ef4444; }
.ag-choice-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-choice { position: relative; margin: 0; cursor: pointer; }
.ag-choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.ag-choice span {
    display: inline-flex; align-items: center;
    padding: 8px 13px; border-radius: 10px;
    font-size: .84rem; font-weight: 500; color: var(--hp-ink-2);
    border: 1px solid var(--hp-line); background: #fff;
    transition: border-color .2s, background .2s, color .2s, box-shadow .2s;
}
.ag-choice:hover span { border-color: rgba(var(--hp-primary-rgb), .4); }
.ag-choice input:checked + span {
    color: var(--hp-primary); border-color: var(--hp-primary);
    background: rgba(var(--hp-primary-rgb), .06);
    box-shadow: 0 0 0 3px rgba(var(--hp-primary-rgb), .12);
}
.ag-choice input:focus-visible + span { outline: 3px solid rgba(var(--hp-primary-rgb), .45); outline-offset: 2px; }
.ag-legend-note { display: block; margin-top: 2px; font-weight: 500; font-size: .8rem; color: var(--hp-muted); }
.ag-start-choices { display: grid; gap: 10px; margin-bottom: 14px; }
@media (min-width: 576px) { .ag-start-choices { grid-template-columns: repeat(2, 1fr); } }
.ag-choice-start { display: flex; }
.ag-choice-start span {
    display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
    width: 100%; padding: 12px 13px; line-height: 1.35;
}
.ag-choice-start span i { color: var(--hp-primary); font-size: 1rem; margin-bottom: 4px; }
.ag-choice-start strong { font-size: .88rem; font-weight: 700; color: var(--hp-ink); }
.ag-choice-start small { font-size: .78rem; color: var(--hp-muted); font-weight: 500; }
.ag-choice-sub { margin: 0 0 8px; font-size: .8rem; font-weight: 600; color: var(--hp-muted); }
.ag-field[hidden] { display: none; }
.ag-form-row { display: grid; gap: 16px; }
@media (min-width: 576px) { .ag-form-row { grid-template-columns: 1fr 1fr; } }
.ag-field input, .ag-field select, .ag-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid #dbe2ee;
    background: #f9fbfe;
    color: var(--hp-ink);
    font-size: .95rem;
    line-height: 1.4;
    transition: border-color .2s, box-shadow .2s, background .2s;
    -webkit-appearance: none;
    appearance: none;
}
.ag-field select {
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath stroke='%235b6678' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
.ag-field textarea { resize: vertical; min-height: 120px; }
.ag-field input:focus, .ag-field select:focus, .ag-field textarea:focus {
    outline: none; background: #fff;
    border-color: var(--hp-primary);
    box-shadow: 0 0 0 4px rgba(var(--hp-primary-rgb), .12);
}
.ag-field [aria-invalid="true"] { border-color: #ef4444; background: #fff7f7; }
.ag-err { margin: 6px 0 0; font-size: .8rem; color: #dc2626; }
.ag-form-alert {
    display: flex; gap: 10px; align-items: center;
    padding: 12px 14px; border-radius: 12px;
    background: #fef2f2; color: #b91c1c; font-size: .9rem; font-weight: 500;
}
.ag-form-foot { display: grid; gap: 12px; }
.ag-submit { width: 100%; min-height: 54px; font-size: 1rem; }
.ag-submit[disabled] { opacity: .75; cursor: progress; }
.ag-submit .ag-spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: agSpin .8s linear infinite; }
@keyframes agSpin { to { transform: rotate(360deg); } }
.ag-form-note { margin: 0; font-size: .8rem; color: var(--hp-soft); display: flex; gap: 8px; align-items: baseline; justify-content: center; text-align: center; }

/* ---------- Page hero (inner agency pages) ---------- */
.ag-phero { position: relative; isolation: isolate; overflow: hidden; padding: 36px 0 56px; background: #fbfcff; border-bottom: 1px solid var(--hp-line); }
@media (min-width: 992px) { .ag-phero { padding: 48px 0 80px; } }
.ag-phero-inner { max-width: 820px; }
.ag-phero h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; margin: 0 0 16px; text-wrap: balance; }
.ag-phero-text { font-size: clamp(1rem, .95rem + .3vw, 1.15rem); line-height: 1.7; margin: 0; max-width: 680px; }
.ag-crumbs { margin-bottom: 24px; }
.hp .ag-crumbs .page-breadcrumb-list { justify-content: flex-start; }

/* Filter chips */
.ag-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.ag-filter-chip {
    padding: 9px 16px; border-radius: 999px;
    font-size: .88rem; font-weight: 600;
    color: var(--hp-ink-2); background: #fff; border: 1px solid var(--hp-line);
    transition: all .2s;
}
.ag-filter-chip:hover { border-color: var(--hp-primary); color: var(--hp-primary); }
.ag-filter-chip.is-active { color: #fff; background: var(--hp-ink); border-color: var(--hp-ink); }

/* ---------- Case study details ---------- */
.ag-cs-hero { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, #fff), #fbfcff); }
.ag-cs-hero-grid { display: grid; gap: 28px; }
@media (min-width: 992px) { .ag-cs-hero-grid { grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: end; } }
.ag-cs-hero .ag-case-tags span { --accent: inherit; }
.ag-cs .ag-case-tags span { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, #fff); }
.ag-cs .ag-case-tags span.is-status { color: #047857; background: #ecfdf5; }
.ag-cs-facts {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
    margin: 0; border-radius: 18px; overflow: hidden;
    background: var(--hp-line); border: 1px solid var(--hp-line);
    box-shadow: var(--hp-shadow-sm);
}
.ag-cs-facts > div { background: #fff; padding: 14px 16px; }
.ag-cs-facts > div.is-wide { grid-column: span 2; }
.ag-cs-facts dt { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hp-soft); margin-bottom: 4px; }
.ag-cs-facts dd { margin: 0; font-weight: 600; color: var(--hp-ink); }
.ag-cs-facts dd a { color: var(--accent); }
.ag-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ag-chips span { padding: 5px 10px; border-radius: 8px; font-size: .8rem; font-weight: 600; background: var(--hp-bg-soft); color: var(--hp-ink-2); border: 1px solid var(--hp-line); }

.ag-cs-results { margin-top: -28px; position: relative; z-index: 2; }
.ag-cs-results-card {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    border-radius: 22px; overflow: hidden;
    background: var(--ag-dark);
    box-shadow: var(--hp-shadow-lg);
}
.ag-cs-result { padding: 24px 26px; border-right: 1px solid rgba(255, 255, 255, .08); }
.ag-cs-result:last-child { border-right: 0; }
.ag-cs-result strong { display: block; font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; color: #fff; line-height: 1.1; }
.ag-cs-result strong { background: linear-gradient(120deg, #fff 20%, color-mix(in srgb, var(--accent) 60%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ag-cs-result span { display: block; margin-top: 6px; font-size: .86rem; color: #aab7cf; }

.ag-cs-shot { padding-top: 48px; }
.ag-cs-browser { margin: 0; max-width: 1080px; margin-inline: auto; }
.ag-cs-browser img { display: block; width: 100%; height: auto; }

.ag-cs-story-grid { display: grid; gap: 36px; }
@media (min-width: 992px) { .ag-cs-story-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; } }
.ag-cs-block { position: relative; padding-left: 0; margin-bottom: 44px; }
@media (min-width: 768px) { .ag-cs-block { padding-left: 68px; } }
.ag-cs-block-icon {
    width: 48px; height: 48px; display: grid; place-items: center;
    border-radius: 14px; font-size: 19px; color: #fff; margin-bottom: 14px;
}
@media (min-width: 768px) { .ag-cs-block-icon { position: absolute; left: 0; top: 0; margin: 0; } }
.ag-cs-block-icon.is-challenge { background: linear-gradient(135deg, #ff7a45, #ff4d8d); }
.ag-cs-block-icon.is-solution { background: linear-gradient(135deg, var(--accent), #3b8bff); }
.ag-cs-block-icon.is-features { background: linear-gradient(135deg, #00b894, #0ea5e9); }
.ag-cs-block h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 14px; }
.ag-prose p { font-size: 1.03rem; line-height: 1.8; margin: 0 0 14px; color: #475569; }
.ag-prose p:last-child { margin-bottom: 0; }
.ag-cs-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 640px) { .ag-cs-features { grid-template-columns: 1fr 1fr; } }
.ag-cs-features li {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px 16px; border-radius: 14px;
    background: var(--hp-bg-soft); border: 1px solid var(--hp-line);
    font-size: .94rem; color: var(--hp-ink-2); line-height: 1.5;
}
.ag-cs-features li i {
    flex: 0 0 22px; height: 22px; display: grid; place-items: center; margin-top: 1px;
    border-radius: 50%; font-size: .65rem; color: #fff; background: var(--accent);
}
.ag-cs-quote { margin: 0; padding: 30px; border-radius: 22px; background: var(--hp-bg-soft); border-left: 4px solid var(--accent); }
.ag-cs-quote > i { color: var(--accent); font-size: 1.4rem; }
.ag-cs-quote blockquote { margin: 10px 0 12px; font-size: 1.15rem; line-height: 1.65; color: var(--hp-ink); font-weight: 500; }
.ag-cs-quote figcaption { font-weight: 700; color: var(--hp-ink-2); }

.ag-cs-side { display: grid; gap: 18px; }
@media (min-width: 992px) { .ag-cs-side { position: sticky; top: 110px; } }
.ag-side-card { padding: 22px; border-radius: 20px; background: #fff; border: 1px solid var(--hp-line); box-shadow: var(--hp-shadow-sm); }
.ag-side-card h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 12px; }
.ag-side-product img { width: 100%; border-radius: 12px; margin-bottom: 14px; aspect-ratio: 590 / 300; object-fit: cover; }
.ag-side-product p { font-size: .9rem; line-height: 1.55; margin: 0 0 16px; }
.ag-side-eyebrow { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.ag-side-actions { display: grid; gap: 8px; }
.ag-side-actions .hp-btn { width: 100%; }
.ag-related { background: var(--hp-bg-soft); }

/* ---------- Quote page ---------- */
.ag-quote-page { border-bottom: 0; }
.ag-quote-page-grid { display: grid; gap: 32px; }
@media (min-width: 992px) { .ag-quote-page-grid { grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; } }
.ag-quote-page-copy h1 { margin-bottom: 14px; }
.ag-quote-page-card {
    background: #fff; border-radius: 24px; padding: 24px 20px;
    border: 1px solid var(--hp-line); box-shadow: var(--hp-shadow-lg);
}
@media (min-width: 576px) { .ag-quote-page-card { padding: 34px 32px; } }
.ag-quote-page-card h2 { font-size: 1.25rem; font-weight: 700; margin: 0 0 18px; }
.ag-selected-product {
    display: flex; gap: 14px; align-items: center;
    margin-top: 22px; padding: 12px; border-radius: 16px;
    background: #fff; border: 1px solid var(--hp-line); box-shadow: var(--hp-shadow-sm);
}
.ag-selected-product img { width: 120px; border-radius: 10px; object-fit: cover; }
.ag-selected-product small { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--hp-primary); }
.ag-selected-product strong { color: var(--hp-ink); font-size: .95rem; line-height: 1.35; }
.ag-next { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; }
.ag-next li { display: flex; gap: 14px; }
.ag-next li > span {
    flex: 0 0 34px; height: 34px; display: grid; place-items: center;
    border-radius: 50%; font-weight: 800; font-size: .85rem;
    color: var(--hp-primary); background: rgba(var(--hp-primary-rgb), .08);
}
.ag-next strong { color: var(--hp-ink); }
.ag-next p { margin: 2px 0 0; font-size: .9rem; }
.ag-trust-mini { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 22px; }
.ag-trust-mini span {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600;
    background: #fff; border: 1px solid var(--hp-line); color: var(--hp-ink-2);
}
.ag-trust-mini i { color: var(--hp-primary); }

/* Thank-you */
.ag-thanks { text-align: center; }
.ag-thanks-card { max-width: 640px; margin: 24px auto 0; }
.ag-thanks-icon {
    width: 76px; height: 76px; margin: 0 auto 22px; display: grid; place-items: center;
    border-radius: 50%; font-size: 30px; color: #fff;
    background: linear-gradient(135deg, #10b981, #34d399);
    box-shadow: 0 0 0 10px rgba(16, 185, 129, .12), 0 18px 30px -12px rgba(16, 185, 129, .7);
    animation: agPop .6s cubic-bezier(.2, .9, .3, 1.4) both;
}
@keyframes agPop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.ag-thanks-card p { font-size: 1.05rem; line-height: 1.7; margin: 0 0 22px; }
.ag-thanks .ag-quick, .ag-thanks .hp-hero-actions { justify-content: center; }

/* ---------- Services page extras ---------- */
.ag-why { background: var(--hp-bg-soft); }
.ag-why-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 992px) { .ag-why-grid { grid-template-columns: .9fr 1.1fr; gap: 56px; } }
.ag-why-copy h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin: 0 0 14px; }
.ag-why-copy p { font-size: 1.02rem; line-height: 1.7; margin: 0 0 18px; }
.ag-compare { display: grid; gap: 16px; }
@media (min-width: 576px) { .ag-compare { grid-template-columns: 1fr 1fr; } }
.ag-compare-col { padding: 24px; border-radius: 20px; background: #fff; border: 1px solid var(--hp-line); }
.ag-compare-col.is-good { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--hp-grad) border-box; box-shadow: var(--hp-shadow); }
.ag-compare-col h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 14px; }
.ag-compare-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ag-compare-col li { display: flex; gap: 10px; align-items: baseline; font-size: .92rem; }
.ag-compare-col .fa-times { color: #ef4444; }
.ag-compare-col .fa-check { color: #10b981; }

/* ---------- Product page: customization box ---------- */
.ag-customize-box {
    position: relative; overflow: hidden; isolation: isolate;
    margin-top: 18px; padding: 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, #071431, #0c2a6b);
    color: #c7d2e6;
}
.ag-customize-box::after {
    content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%;
    background: rgba(0, 198, 255, .35); filter: blur(40px); z-index: -1;
}
.ag-customize-box h4 { color: #fff; font-size: 1.05rem; font-weight: 700; margin: 0 0 6px; display: flex; gap: 8px; align-items: center; }
.ag-customize-box h4 i { color: #7cc4ff; }
.ag-customize-box p { font-size: .88rem; line-height: 1.55; margin: 0 0 14px; color: #b5c2db; }
.ag-customize-box ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; font-size: .85rem; color: #e2e8f5; }
.ag-customize-box ul i { color: #34d399; margin-right: 6px; }
.ag-customize-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-customize-actions a {
    flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 16px; border-radius: 11px;
    font-size: .9rem; font-weight: 600; text-decoration: none;
    transition: transform .2s, background .2s;
}
.ag-customize-actions a:hover { transform: translateY(-1px); }
.ag-customize-actions .is-primary { background: #fff; color: #0b1324; }
.ag-customize-actions .is-primary:hover { color: #0072ff; }
.ag-customize-actions .is-ghost { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .16); }
.ag-customize-actions .is-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }

@media (prefers-reduced-motion: reduce) {
    .ag-service, .ag-case, .ag-core-card, .ag-case-media img, .ag-thanks-icon { transition: none !important; animation: none !important; }
    .hp-js .ag-core-bar-built { transform: none; transition: none; }
}

/* From 1200px the header is fixed over the first section: clear it. */
@media (min-width: 1200px) {
  .ag-phero { padding-top: 190px; }
}

/* Home hero balance: shorter copy column, taller visual with recent client builds. */
.ag-home .hp-hero-sub { max-width: 600px; margin-bottom: 26px; }
@media (min-width: 1200px) {
  .ag-home .hp-hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
  .ag-home .hp-hero-title { font-size: clamp(2.25rem, 1.2rem + 3.3vw, 3.9rem); }
  .ag-home .hp-hero-visual { max-width: 640px; padding-bottom: 0; }
}
.ag-home .hp-hero-checks, .ag-home .ag-hero-checks { margin-bottom: 18px; }
.ag-hero-cases {
  position: relative; z-index: 2; margin: 22px 6px 0; padding: 16px 18px 10px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border: 1px solid var(--hp-line); border-radius: 18px;
  box-shadow: 0 24px 48px -28px rgba(15,23,42,.35);
}
@media (min-width: 1200px) { .ag-hero-cases { margin: -34px 28px 0 44px; } }
.ag-hero-cases-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hp-muted); }
.ag-hero-cases-head a { color: var(--hp-primary); text-transform: none; letter-spacing: 0; font-size: .8rem; }
.ag-hero-cases ul { list-style: none; margin: 0; padding: 0; }
.ag-hero-cases li + li { border-top: 1px dashed var(--hp-line); }
.ag-hero-cases li a { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-radius: 10px; color: inherit; transition: background .2s; }
.ag-hero-cases li a:hover { background: color-mix(in srgb, var(--accent) 6%, #fff); }
.ag-hero-case-icon { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: .8rem; background: var(--accent); }
.ag-hero-case-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.ag-hero-case-text strong { font-size: .95rem; color: var(--hp-ink, #0f172a); }
.ag-hero-case-text small { font-size: .8rem; color: var(--hp-muted); }
.ag-hero-case-tag { flex: none; font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, #fff); }
@media (max-width: 575px) { .ag-hero-case-tag { display: none; } }
@media (min-width: 1200px) { .ag-home .hp-float-2 { bottom: auto; top: 150px; } }
@media (max-width: 1199px) { .ag-home .hp-float-2 { bottom: auto; top: 46%; } }
/* Home: keep service cards short (the full lists are on /services). */
.ag-home .ag-service ul { display: none; }
/* Odd number of short facts: the last one fills the row (no empty grey cell). */
.ag-cs-facts > div:not(.is-wide):nth-last-child(1 of :not(.is-wide)):nth-child(odd of :not(.is-wide)) { grid-column: span 2; }

/* Trust strip: Envato facts. Badges get their own full-width row (also on phones). */
.ag-home .hp-stat-badges { display: flex; grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: center; padding-top: 16px; padding-bottom: 16px; }
.ag-home .hp-stat-badges .hp-pill { white-space: normal; }
@media (min-width: 1200px) {
  .ag-home .hp-stats-card { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ag-home .hp-stat-badges { grid-column: 1 / -1; flex-direction: row; justify-content: center; }
}
.ag-trust-note { margin: 14px 0 0; text-align: center; font-size: .875rem; color: var(--hp-muted); }
.ag-trust-note a { margin-left: 6px; font-weight: 600; color: var(--hp-primary); white-space: nowrap; }
.ag-trust-note a i { font-size: .7em; margin-left: 3px; }

/* Case study: live link + screenshot gallery */
.ag-cs-live { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 22px; }
.ag-cs-live .hp-btn i { font-size: .75em; margin-left: 6px; }
.ag-cs-live span { font-size: .875rem; color: var(--hp-muted); }
.ag-cs-gallery { margin-top: 36px; }
.ag-cs-gallery-title { font-size: 1.25rem; font-weight: 700; margin: 0 0 16px; color: var(--hp-ink); }
.ag-cs-gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 768px) { .ag-cs-gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ag-cs-shot-item { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--hp-line); background: #fff; box-shadow: var(--hp-shadow-sm, 0 4px 14px rgba(15,23,42,.06)); transition: transform .2s ease, box-shadow .2s ease; }
.ag-cs-shot-item:hover { transform: translateY(-3px); box-shadow: var(--hp-shadow); }
.ag-cs-shot-item img { display: block; width: 100%; height: 190px; object-fit: cover; object-position: top center; }
.ag-cs-shot-item span { display: block; padding: 10px 12px; font-size: .8125rem; font-weight: 600; color: var(--hp-ink-2); }
.ag-cs-gallery-note { margin: 12px 0 0; font-size: .8125rem; color: var(--hp-muted); }
.ag-cs-block-icon.is-progress { background: linear-gradient(135deg, #f59e0b, #f97316); }
.ag-cs-progress li i { color: #f59e0b; }

/* ---------- Hero: three ways to work with us (one line under the buttons) ---------- */
.ag-hero-ways a { display: inline-flex; align-items: center; gap: 7px; color: var(--hp-ink-2); text-decoration: none; font-weight: 600; }
.ag-hero-ways a:hover { color: var(--hp-primary); }
.ag-hero-ways i { color: var(--hp-primary); }

/* "ready-made products" link inside body text */
.ag-products-link { color: var(--hp-primary); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(var(--hp-primary-rgb), .35); text-underline-offset: 3px; }
.ag-products-link:hover { text-decoration-color: currentColor; }
.hp-cta .ag-products-link { color: #fff; text-decoration-color: rgba(255,255,255,.5); }

/* ---------- Searchable product picker (agency.js) ---------- */
.ag-pick { position: relative; }
.ag-pick .ag-pick-native { position: absolute !important; opacity: 0; pointer-events: none; inset: 0; }
.ag-pick-btn {
    width: 100%; min-height: 48px; padding: 11px 38px 11px 14px; text-align: left;
    border-radius: 12px; border: 1px solid #dbe2ee; background: #f9fbfe; color: var(--hp-ink);
    font-size: .95rem; line-height: 1.4; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath stroke='%235b6678' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.ag-pick-btn span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-pick-btn.is-empty { color: var(--hp-muted); }
.ag-pick-btn:focus-visible, .ag-pick.is-open .ag-pick-btn {
    outline: none; background-color: #fff; border-color: var(--hp-primary);
    box-shadow: 0 0 0 4px rgba(var(--hp-primary-rgb), .12);
}
.ag-pick-panel {
    position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px);
    background: #fff; border: 1px solid var(--hp-line); border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .14); overflow: hidden;
}
.ag-pick-search { position: relative; padding: 10px; border-bottom: 1px solid var(--hp-line); }
.ag-pick-search i { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); color: var(--hp-soft); font-size: .85rem; }
.ag-field .ag-pick-search input { min-height: 40px; padding: 8px 12px 8px 34px; border-radius: 10px; font-size: .9rem; }
.ag-pick-list { list-style: none; margin: 0; padding: 6px; max-height: 300px; overflow-y: auto; overscroll-behavior: contain; }
.ag-pick-group {
    padding: 10px 10px 4px; font-size: .7rem; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--hp-soft);
}
.ag-pick-item { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 9px; cursor: pointer; }
.ag-pick-item[hidden], .ag-pick-group[hidden] { display: none; }
.ag-pick-item strong { font-size: .9rem; font-weight: 600; color: var(--hp-ink); }
.ag-pick-item small { font-size: .78rem; color: var(--hp-muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ag-pick-item.is-active { background: rgba(var(--hp-primary-rgb), .07); }
.ag-pick-item.is-selected strong { color: var(--hp-primary); }
.ag-pick-empty { margin: 0; padding: 14px; text-align: center; font-size: .85rem; color: var(--hp-muted); }


/* =========================================================
   CASE STUDY RAIL (home + services)
   Dark band; on desktop it is pinned and the cards slide sideways (home.js "Case study rail").
   ========================================================= */
.ag-rail {
    --rail-accent: #0072ff;
    position: relative;
    background: #060b1a;
    color: #a7b1c6;
    isolation: isolate;
}
.ag-rail-pin { position: relative; overflow: hidden; }
.ag-rail-pin::before { /* faint grid */
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
}
.ag-rail-aura { /* glow in the colour of the card in front */
    position: absolute; inset: -10% -10% auto auto; width: 75%; height: 120%; z-index: -1; pointer-events: none;
    background-color: var(--rail-accent);
    -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
    mask-image: radial-gradient(closest-side, #000, transparent);
    opacity: .28;
    transition: background-color .7s var(--hp-ease);
    animation: agAura 12s ease-in-out infinite alternate;
}
@keyframes agAura { from { transform: translate(0, 0) scale(1); } to { transform: translate(-12%, 8%) scale(1.12); } }

.ag-rail-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.ag-rail-head > div:first-child { max-width: 680px; }
.ag-rail .hp-kicker { color: #5cc8ff; }
.ag-rail .hp-kicker::before { background: #5cc8ff; }
.ag-rail h2 { color: #fff; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; margin: 0 0 12px; }
.ag-rail-head p { margin: 0; font-size: 1.02rem; line-height: 1.65; }
.ag-rail-head .ag-products-link { color: #7cc4ff; }
.ag-rail-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; min-width: 220px; }
.ag-rail-count { font-size: .95rem; font-weight: 600; color: #7b869c; font-variant-numeric: tabular-nums; }
.ag-rail-count b { font-size: 2rem; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.ag-rail-bar { display: block; width: 100%; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.ag-rail-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--rail-accent), #5cc8ff); transform-origin: left; transform: scaleX(var(--rail-p, .08)); transition: background .6s; }
.ag-rail-hint { font-size: .8rem; color: #7b869c; display: none; }
.ag-rail-hint i { margin-right: 4px; animation: agNudge 1.6s ease-in-out infinite; }
@keyframes agNudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.ag-rail.is-pinned .ag-rail-hint { display: inline-block; }

/* Track: a swipe row by default */
.ag-rail-viewport {
    margin-top: 36px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.ag-rail-viewport::-webkit-scrollbar { display: none; }
.ag-rail-track {
    position: relative;
    display: flex; gap: 18px;
    padding: 6px 16px 10px;
    width: max-content;
}
@media (min-width: 768px) { .ag-rail-track { gap: 26px; padding-inline: max(24px, calc((100vw - 1320px) / 2)); } }

/* Slide */
.ag-slide {
    --accent: #0072ff;
    flex: 0 0 auto;
    width: min(86vw, 1040px);
    display: grid;
    grid-template-columns: 1fr;
    border-radius: 26px;
    background: #fff;
    overflow: hidden;
    scroll-snap-align: center;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .06);
    transform-origin: center;
}
@media (min-width: 992px) { .ag-slide { grid-template-columns: 1.15fr 1fr; width: min(74vw, 1040px); } }
.ag-slide-media {
    position: relative; display: block; overflow: hidden; isolation: isolate;
    padding: 56px 24px 0;
    min-height: 230px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 88%, #fff), color-mix(in srgb, var(--accent) 50%, #050b1c));
}
@media (min-width: 992px) { .ag-slide-media { padding: 64px 36px 0; } }
.ag-slide-media::after { /* shine */
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(60% 50% at 20% 0%, rgba(255, 255, 255, .35), transparent 70%);
}
.ag-slide-num {
    position: absolute; right: 22px; bottom: -14px; z-index: -1;
    font-size: clamp(5rem, 4rem + 5vw, 9rem); font-weight: 900; line-height: 1; letter-spacing: -.05em;
    color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .28);
}
.ag-slide-browser {
    display: block; height: 100%;
    border-radius: 14px 14px 0 0; overflow: hidden;
    background: #fff;
    box-shadow: 0 -20px 50px -18px rgba(0, 0, 0, .55);
    transform: translateY(var(--lift, 0px));
    transition: transform .7s var(--hp-ease);
}
.ag-slide-dots { display: flex; gap: 6px; padding: 9px 12px; background: #f1f4f9; border-bottom: 1px solid #e6eaf2; }
.ag-slide-dots i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.ag-slide-dots i:nth-child(2) { background: #febc2e; }
.ag-slide-dots i:nth-child(3) { background: #28c840; }
.ag-slide-browser img { display: block; width: 100%; height: calc(100% - 28px); min-height: 200px; object-fit: cover; object-position: top center; transition: transform 1.2s var(--hp-ease), object-position 4s ease; }
.ag-slide:hover .ag-slide-browser { --lift: -8px; }
.ag-slide:hover .ag-slide-browser img { object-position: bottom center; } /* slow scroll through the screenshot */
.ag-slide .ag-case-base { left: 18px; top: 16px; }

.ag-slide-body { display: flex; flex-direction: column; padding: 26px 24px 26px; }
@media (min-width: 992px) { .ag-slide-body { padding: 40px 40px 36px; justify-content: center; } }
.ag-slide .ag-case-tags span { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, #fff); }
.ag-slide h3 { font-size: clamp(1.2rem, 1rem + .9vw, 1.6rem); font-weight: 800; line-height: 1.25; letter-spacing: -.02em; margin: 0 0 12px; color: var(--hp-ink); }
.ag-slide h3 a { color: inherit; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size .4s var(--hp-ease), color .2s; }
.ag-slide h3 a:hover { color: var(--accent); background-size: 100% 2px; }
.ag-slide-body > p { font-size: .95rem; line-height: 1.65; margin: 0 0 20px; color: var(--hp-muted); }
.ag-slide-results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 22px; }
.ag-slide-results > div { position: relative; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 6%, #fff); border: 1px solid color-mix(in srgb, var(--accent) 14%, #fff); overflow: hidden; }
.ag-slide-results dt { font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem); font-weight: 800; color: var(--accent); letter-spacing: -.03em; line-height: 1.1; }
.ag-slide-results dd { margin: 4px 0 0; font-size: .78rem; line-height: 1.35; color: var(--hp-muted); }
.ag-slide-more {
    align-self: flex-start; margin-top: auto;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 11px 18px; border-radius: 999px;
    font-weight: 700; font-size: .92rem;
    color: #fff; background: var(--accent);
    box-shadow: 0 12px 24px -12px var(--accent);
    transition: transform .25s var(--hp-ease), box-shadow .25s;
}
.ag-slide-more:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -12px var(--accent); }
.ag-slide-more i { transition: transform .25s var(--hp-ease); }
.ag-slide-more:hover i { transform: translateX(4px); }

/* Last card: call to action */
.ag-slide--end {
    width: min(80vw, 400px);
    grid-template-columns: 1fr !important;
    align-content: center; justify-items: start;
    padding: 36px 32px;
    color: rgba(255, 255, 255, .85);
    background: var(--hp-grad);
    position: relative;
}
.ag-slide--end::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(50% 40% at 85% 10%, rgba(255, 255, 255, .35), transparent 70%), radial-gradient(40% 40% at 0% 100%, rgba(124, 92, 255, .5), transparent 70%);
    pointer-events: none;
}
.ag-slide-end-icon {
    position: relative; width: 64px; height: 64px; margin-bottom: 22px;
    display: grid; place-items: center; border-radius: 18px;
    font-size: 26px; color: #fff; background: rgba(255, 255, 255, .18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
    animation: agRocket 2.6s ease-in-out infinite;
}
@keyframes agRocket { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(-6deg); } }
.ag-slide--end h3 { position: relative; color: #fff; font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 10px; }
.ag-slide--end p { position: relative; font-size: .98rem; line-height: 1.6; margin: 0 0 24px; }
.ag-slide-end-actions { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.ag-slide-end-link { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.ag-slide-end-link:hover { color: #fff; opacity: .85; }

/* Pinned mode (desktop, set by JS) */
.ag-rail.is-pinned { padding: 0; }
.ag-rail.is-pinned .ag-rail-pin {
    position: sticky; top: 0;
    height: 100vh; height: 100svh;
    display: flex; flex-direction: column; justify-content: center;
    padding: 108px 0 28px;
}
.ag-rail.is-pinned .ag-rail-viewport { overflow: visible; scroll-snap-type: none; }
.ag-rail.is-pinned .ag-rail-track { will-change: transform; }
.ag-rail.is-pinned .ag-slide {
    height: min(540px, calc(100svh - 320px));
    transform: scale(calc(.9 + .1 * var(--f, 1)));
    opacity: calc(.5 + .5 * var(--f, 1));
}
.ag-rail.is-pinned .ag-slide-browser img { min-height: 0; }
@media (max-height: 860px) {
    .ag-rail.is-pinned .ag-rail-pin { padding-top: 106px; }
    .ag-rail.is-pinned .ag-rail-head p { display: none; }
    .ag-rail.is-pinned h2 { font-size: 2rem; margin-bottom: 0; }
    .ag-rail.is-pinned .ag-rail-viewport { margin-top: 24px; }
    .ag-rail.is-pinned .ag-slide { height: min(540px, calc(100svh - 240px)); }
    .ag-rail.is-pinned .ag-slide-body { padding: 26px 30px; }
    .ag-rail.is-pinned .ag-slide-body > p { margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .ag-rail.is-pinned .ag-slide-results { margin-bottom: 16px; }
    .ag-rail.is-pinned .ag-slide h3 { font-size: 1.35rem; }
}

/* Short laptop screens (e.g. 1366x768 with browser bars) */
@media (max-height: 720px) {
    .ag-rail.is-pinned .ag-rail-pin { padding-top: 104px; padding-bottom: 16px; }
    .ag-rail.is-pinned h2 { font-size: 1.6rem; }
    .ag-rail.is-pinned .ag-rail-viewport { margin-top: 16px; }
    .ag-rail.is-pinned .ag-slide { height: max(290px, calc(100svh - 200px)); }
    .ag-rail.is-pinned .ag-slide-body { padding: 20px 24px; }
    .ag-rail.is-pinned .ag-slide h3 { font-size: 1.2rem; }
    .ag-rail.is-pinned .ag-slide-body > p { -webkit-line-clamp: 2; }
}
/* Set by home.js when a card's text still does not fit: drop the extras, keep title + button. */
.ag-rail.is-pinned.is-tight .ag-slide-results,
.ag-rail.is-pinned.is-tight .ag-slide-body > p { display: none; }

/* =========================================================
   SERVICES: four project kinds, livelier cards
   ========================================================= */
.ag-services { position: relative; isolation: isolate; }
.ag-services::before { /* soft colour wash behind the cards */
    content: ""; position: absolute; inset: 8% 0 auto; height: 60%; z-index: -1; pointer-events: none;
    background:
        radial-gradient(30% 50% at 10% 40%, rgba(0, 114, 255, .08), transparent 70%),
        radial-gradient(30% 50% at 45% 60%, rgba(124, 92, 255, .08), transparent 70%),
        radial-gradient(30% 50% at 90% 40%, rgba(0, 184, 148, .07), transparent 70%);
}
.ag-start { --c: #0072ff; --c2: #00c6ff; }
.ag-start:nth-child(4n+2) { --c: #7c5cff; --c2: #b06bff; }
.ag-start:nth-child(4n+3) { --c: #00b894; --c2: #00d2a0; }
.ag-start:nth-child(4n+4) { --c: #ff7a45; --c2: #ffb347; }
.ag-start:nth-child(4n+2) .ag-service-icon,
.ag-start:nth-child(4n+3) .ag-service-icon,
.ag-start:nth-child(4n+4) .ag-service-icon,
.ag-start .ag-service-icon {
    background: linear-gradient(135deg, var(--c), var(--c2));
    box-shadow: 0 12px 24px -12px var(--c);
    transition: transform .45s cubic-bezier(.34, 1.56, .64, 1);
}
.ag-start {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(160deg, color-mix(in srgb, var(--c) 30%, #e6eaf2), #e6eaf2 40%, #e6eaf2 70%, color-mix(in srgb, var(--c2) 25%, #e6eaf2)) border-box;
}
.ag-start::after { /* top colour bar that grows on hover */
    content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
    background: linear-gradient(90deg, var(--c), var(--c2));
    transform: scaleX(.18); transform-origin: left;
    transition: transform .5s var(--hp-ease);
}
.ag-start:hover::after { transform: scaleX(1); }
.ag-start::before { background: radial-gradient(380px 200px at var(--mx, 0%) var(--my, 0%), color-mix(in srgb, var(--c) 10%, transparent), transparent 70%); }
.ag-start:hover {
    border-color: transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(160deg, var(--c), color-mix(in srgb, var(--c2) 40%, #fff) 50%, var(--c2)) border-box;
    box-shadow: 0 30px 50px -28px color-mix(in srgb, var(--c) 60%, transparent), var(--hp-shadow-sm);
}
.ag-start:hover .ag-service-icon { transform: translateY(-3px) rotate(-8deg) scale(1.08); }
.ag-start .ag-start-num {
    font-size: 3.2rem; font-weight: 900; letter-spacing: -.05em;
    color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--c) 30%, transparent);
    transition: -webkit-text-stroke-color .3s, transform .45s var(--hp-ease);
}
.ag-start:hover .ag-start-num { -webkit-text-stroke-color: var(--c); transform: translateY(-2px); }
.ag-start .ag-start-best { background: color-mix(in srgb, var(--c) 8%, #fff); }
.ag-start .ag-start-best i { color: var(--c); }
.ag-start .ag-start-best .ag-products-link, .ag-start p .ag-products-link { color: var(--c); }
.ag-start li i { color: var(--c); }
.ag-start .ag-service-link {
    align-self: flex-start;
    padding: 9px 16px; border-radius: 999px;
    color: var(--c);
    background: color-mix(in srgb, var(--c) 9%, #fff);
    transition: background .25s, color .25s, box-shadow .25s;
}
.ag-start:hover .ag-service-link { color: #fff; background: linear-gradient(135deg, var(--c), var(--c2)); box-shadow: 0 10px 22px -10px var(--c); }

/* Capabilities: icon ring + lift */
.ag-extra { transition: transform .3s var(--hp-ease), box-shadow .3s, border-color .3s; }
.ag-extra .ag-service-icon { transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.ag-extra:hover .ag-service-icon { transform: rotate(-10deg) scale(1.1); }

@media (prefers-reduced-motion: reduce) {
    .ag-rail-aura, .ag-slide-end-icon, .ag-rail-hint i { animation: none; }
    .ag-slide-browser, .ag-slide-browser img, .ag-start::after, .ag-start .ag-service-icon { transition: none; }
}

/* 3D tilt toward the pointer (home.js "Tilt") */
.ag-start, .ag-slide-media { transform-style: preserve-3d; }
.ag-start.is-tilting { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); transition: transform .12s linear, box-shadow .3s, background .3s; }
@media (max-width: 767.98px) { .ag-rail-meta { align-items: flex-start; width: 100%; min-width: 0; } }
