/* ============================== */
/* AGENCY PAGE — Digital Pixel Theme */
/* ============================== */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap');

body.agency-page {
  --navy: #0f0a1a;
  --navy-light: #140e22;
  --accent: #734BF2;
  --accent-glow: rgba(115,75,242,0.14);
  --teal: #4ecdc4;
  --teal-glow: rgba(78,205,196,0.14);
  --border: rgba(240,242,239,0.08);
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
  --pixel-grid: rgba(115,75,242,0.03);
  background: #0f0a1a;
}
/* Pixel grid overlay — subtle digital texture */
body.agency-page::before {
  background-image:
    linear-gradient(var(--pixel-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--pixel-grid) 1px, transparent 1px),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.025'/%3E%3C/svg%3E");
  background-size: 40px 40px, 40px 40px, 256px 256px;
}
body.agency-page ::selection { background: var(--accent); color: #fff; }

/* Scanline overlay — CRT monitor vibes */
body.agency-page::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.015) 2px,
    rgba(0,0,0,0.015) 4px
  );
  pointer-events: none;
  z-index: 9998;
}

/* Glitch hover micro-animation */
@keyframes ag-glitch {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-1px, 1px); }
  40% { transform: translate(1px, -1px); }
  60% { transform: translate(-1px, 0); }
  80% { transform: translate(1px, 1px); }
}
@keyframes ag-flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.97; }
}

/* Terminal cursor blink */
@keyframes ag-cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Pixel-style labels and numbers */
.ag-pixel-label,
.ag-hero-eyebrow,
.ag-section-label,
.ag-proc-label,
.ag-svc-eyebrow,
.ag-svc-cap-num,
.ag-svc-step-num {
  font-family: var(--mono) !important;
}

/* Glitch effect on stat numbers */
.ag-stat-num:hover,
.ag-svc-stat-num:hover,
.ag-svc-result-metric:hover {
  animation: ag-glitch 0.3s ease;
}

/* Digital underscore cursor after hero H1 */
.ag-hero h1 span::after {
  content: '_';
  color: var(--teal);
  animation: ag-cursor-blink 1s step-end infinite;
  font-weight: 300;
}

/* Nav overrides */
body.agency-page .nav {
  background: rgba(15,10,26,0.92);
}
body.agency-page .nav-cta {
  background: linear-gradient(135deg, #8B6CF7, #734BF2);
  box-shadow: 0 2px 12px rgba(115,75,242,0.35), 0 0 20px rgba(115,75,242,0.15);
}
body.agency-page .nav-cta:hover {
  background: linear-gradient(135deg, #734BF2, #5B3DC9);
  box-shadow: 0 4px 18px rgba(115,75,242,0.5), 0 0 30px rgba(115,75,242,0.2);
}

/* GTM Agency label under brand */
body.agency-page .nav-brand {
  position: relative;
}
body.agency-page .nav-brand::after {
  content: '// GROWTH_ENGINE';
  display: block;
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  opacity: 0.7;
  margin-top: -2px;
  text-align: center;
  font-weight: 500;
}

/* ============================== */
/* LAYOUT FRAME                   */
/* ============================== */
.ag-page-frame {
  max-width: 1400px;
  margin: 0 auto;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  min-height: 100vh;
}

.ag-body {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 100vh;
}

/* ============================== */
/* SIDEBAR                        */
/* ============================== */
.ag-sidebar {
  border-right: 1px solid var(--border);
  position: relative;
}

.ag-sidebar-inner {
  position: sticky;
  top: 80px;
  padding: 32px 0 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ag-sidebar-indicator {
  position: absolute;
  left: 0;
  width: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: top 0.25s cubic-bezier(0.25,1,0.5,1), height 0.25s cubic-bezier(0.25,1,0.5,1);
  opacity: 0;
}
.ag-sidebar-indicator.visible { opacity: 1; }

.ag-sidebar-inner a {
  display: block;
  padding: 8px 12px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(240,242,239,0.35);
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 400;
}
.ag-sidebar-inner a:hover { color: rgba(240,242,239,0.7); }
.ag-sidebar-inner a.active { color: rgba(240,242,239,0.9); }
.ag-sidebar-inner a .num {
  font-family: var(--mono);
  font-size: 0.65rem;
  margin-right: 6px;
  opacity: 0.5;
}

/* ============================== */
/* MAIN CONTENT                   */
/* ============================== */
.ag-main {
  min-width: 0;
}

/* ============================== */
/* SECTION BASE                   */
/* ============================== */
.ag-section {
  padding: 96px 64px;
  border-bottom: 1px solid var(--border);
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.25,1,0.5,1), transform 0.6s cubic-bezier(0.25,1,0.5,1);
}
.ag-section.in-view {
  opacity: 1;
  transform: translateY(0);
}

.ag-section-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: inline-block;
}

.ag-section h2 {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: rgba(240,242,239,0.95);
  margin: 0 0 16px 0;
  max-width: 600px;
}

.ag-section-sub {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(240,242,239,0.55);
  max-width: 520px;
  margin: 0 0 48px 0;
}

/* Text reveal animation */
.ag-txt-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s cubic-bezier(0.25,1,0.5,1), transform 0.5s cubic-bezier(0.25,1,0.5,1);
}
.ag-txt-reveal.txt-in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================== */
/* CANVAS BACKGROUNDS             */
/* ============================== */
.ag-3d-canvas {
  position: fixed;
  top: 0;
  right: 0;
  width: 48vw;
  height: 100vh;
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.5s ease;
}
.ag-3d-canvas.faded { opacity: 0; }
.ag-canvas-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.ag-hero > *:not(canvas):not(.ag-hero-orb):not(.ag-hero-grid-bg) {
  position: relative;
  z-index: 1;
}

/* ============================== */
/* S1: HERO                       */
/* ============================== */
.ag-hero {
  padding: 140px 64px 64px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.ag-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.ag-hero-orb-1 {
  width: 500px; height: 500px;
  top: -200px; right: -100px;
  background: radial-gradient(circle, rgba(115,75,242,0.15), transparent 70%);
}
.ag-hero-orb-2 {
  width: 400px; height: 400px;
  bottom: -100px; left: -100px;
  background: radial-gradient(circle, rgba(78,205,196,0.08), transparent 70%);
}

.ag-hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(240,242,239,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,242,239,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black, transparent);
}

.ag-hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}
.ag-hero-eyebrow::before {
  content: '> ';
  color: var(--accent);
  opacity: 0.6;
}

.ag-hero h1 {
  font-size: 3.75rem;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: rgba(240,242,239,0.97);
  margin: 0 0 24px 0;
  max-width: 700px;
}
.ag-hero h1 span {
  color: var(--accent);
}

.ag-hero-sub {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(240,242,239,0.55);
  max-width: 520px;
  margin: 0 0 36px 0;
}

.ag-hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 72px;
}

/* Buttons */
.ag-btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: linear-gradient(135deg, #8B6CF7, #734BF2);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.25,1,0.5,1);
  box-shadow: 0 2px 16px rgba(115,75,242,0.3), 0 0 24px rgba(115,75,242,0.1);
}
.ag-btn-primary:hover {
  background: linear-gradient(135deg, #9B7FF7, #8B6CF7);
  box-shadow: 0 4px 24px rgba(115,75,242,0.5), 0 0 40px rgba(115,75,242,0.15);
  transform: translateY(-1px);
}

.ag-btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: transparent;
  color: rgba(240,242,239,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid rgba(240,242,239,0.15);
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.25,1,0.5,1);
}
.ag-btn-ghost:hover {
  border-color: rgba(240,242,239,0.35);
  color: #fff;
  background: rgba(240,242,239,0.04);
}

/* Stats row */
.ag-stats-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(240,242,239,0.02);
  overflow: hidden;
}

.ag-stat {
  flex: 1;
  padding: 28px 24px;
  text-align: center;
}

.ag-stat-num {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 6px;
}

.ag-stat-label {
  font-size: 0.8rem;
  color: rgba(240,242,239,0.5);
  letter-spacing: 0.02em;
}

.ag-stat-client {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: rgba(240,242,239,0.3);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ag-stat-divider {
  width: 1px;
  align-self: stretch;
  background: var(--border);
}

/* ============================== */
/* TRUST BAR (carousel)           */
/* ============================== */
.ag-trust-bar {
  padding: 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.ag-trust-track {
  display: flex;
  gap: 0;
  align-items: center;
  width: max-content;
  animation: ag-trust-scroll 80s linear infinite;
}

@keyframes ag-trust-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ag-trust-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 120px;
  height: 52px;
  border-right: 1px solid var(--border);
  opacity: 0.5;
  transition: opacity 0.3s;
}

.ag-trust-logo:hover { opacity: 0.8; }

.ag-trust-logo img {
  max-height: 16px;
  max-width: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

/* ============================== */
/* S2: RESULTS                    */
/* ============================== */
.ag-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ag-result-card {
  position: relative;
  padding: 36px 32px;
  border: 1px solid var(--border);
  background: rgba(240,242,239,0.015);
  transition: border-color 0.4s cubic-bezier(0.25,1,0.5,1), background 0.4s;
}

.ag-result-card:hover {
  border-color: rgba(115,75,242,0.25);
  background: rgba(240,242,239,0.025);
}

/* Decorative corner brackets (Fin.ai pattern) */
.ag-result-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  z-index: 1;
}
.ag-result-corner-tl { top: 8px; left: 8px; border-top: 1px solid rgba(115,75,242,0.3); border-left: 1px solid rgba(115,75,242,0.3); }
.ag-result-corner-tr { top: 8px; right: 8px; border-top: 1px solid rgba(115,75,242,0.3); border-right: 1px solid rgba(115,75,242,0.3); }
.ag-result-corner-bl { bottom: 8px; left: 8px; border-bottom: 1px solid rgba(115,75,242,0.3); border-left: 1px solid rgba(115,75,242,0.3); }
.ag-result-corner-br { bottom: 8px; right: 8px; border-bottom: 1px solid rgba(115,75,242,0.3); border-right: 1px solid rgba(115,75,242,0.3); }

/* Featured result card — spans full width */
.ag-result-featured {
  grid-column: 1 / -1;
  padding: 36px 32px;
  background: linear-gradient(135deg, rgba(115,75,242,0.06), rgba(78,205,196,0.03));
}

.ag-result-featured-top {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.ag-result-featured .ag-result-eyebrow {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}

.ag-result-featured .ag-result-quote {
  flex-shrink: 0;
  max-width: 280px;
  align-self: center;
}

.ag-result-client-name {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(240,242,239,0.35);
  margin-bottom: 16px;
}

.ag-result-logo {
  height: 20px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.5;
  margin-bottom: 20px;
}

.ag-result-metric {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 12px;
}

.ag-result-context {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(240,242,239,0.55);
  margin-bottom: 16px;
  max-width: 45ch;
}

.ag-result-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ag-result-tags span {
  font-size: 0.7rem;
  padding: 4px 10px;
  border: 1px solid rgba(115,75,242,0.2);
  color: rgba(240,242,239,0.5);
  letter-spacing: 0.02em;
  font-family: var(--mono);
}

/* Result card quote */
.ag-result-quote {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--border);
  background: rgba(240,242,239,0.02);
}

.ag-result-headshot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(115,75,242,0.2);
}

.ag-result-quote-text {
  font-size: 0.85rem;
  color: rgba(240,242,239,0.7);
  line-height: 1.5;
  font-style: italic;
  margin-bottom: 8px;
}

.ag-result-quote-attr {
  font-size: 0.75rem;
  color: rgba(240,242,239,0.4);
  font-family: var(--mono);
}

/* ============================== */
/* S3: SERVICES — Futuristic Grid */
/* ============================== */
.ag-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 2px;
}

.ag-service-card {
  background: rgba(15,10,26,0.95);
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease;
}
.ag-service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(115,75,242,0.06) 0%, transparent 70%);
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.ag-service-card:hover::before { opacity: 1; }
.ag-service-card:hover {
  background: rgba(18,12,30,0.98);
}

.ag-service-visual {
  height: 340px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.ag-svc-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.ag-service-content {
  padding: 32px 32px 36px;
}

.ag-service-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 14px;
}

.ag-service-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--teal);
  opacity: 0.7;
  letter-spacing: 0.04em;
}

.ag-service-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(240,242,239,0.95);
  margin: 0;
}

.ag-service-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(240,242,239,0.5);
  margin: 0 0 20px 0;
}

.ag-service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ag-service-list li {
  font-size: 0.8rem;
  color: rgba(240,242,239,0.45);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.ag-service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border: 1px solid var(--teal);
  border-radius: 1px;
  opacity: 0.4;
  transition: opacity 0.3s;
}
.ag-service-card:hover .ag-service-list li::before {
  opacity: 0.7;
}

/* ============================== */
/* S4: PROOF / TESTIMONIALS       */
/* ============================== */
.ag-proof-section {
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow: hidden;
}
.ag-proof-section .ag-section-label,
.ag-proof-section h2,
.ag-proof-section .ag-section-sub {
  padding-left: 64px;
}

/* Marquee rows */
.ag-marquee-row {
  overflow: hidden;
  margin-bottom: 16px;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.ag-marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
}
.ag-marquee-left { animation: ag-marquee-l 60s linear infinite; }
.ag-marquee-right { animation: ag-marquee-r 65s linear infinite; }
@keyframes ag-marquee-l { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes ag-marquee-r { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }

.ag-marquee-card {
  flex-shrink: 0;
  width: 380px;
  padding: 28px;
  border: 1px solid var(--border);
  background: rgba(240,242,239,0.015);
  transition: border-color 0.4s, background 0.4s;
}
.ag-marquee-card:hover {
  border-color: rgba(115,75,242,0.2);
  background: rgba(240,242,239,0.025);
}
.ag-marquee-card blockquote {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(240,242,239,0.7);
  margin: 0 0 20px 0;
  font-style: normal;
}
.ag-marquee-card blockquote::before {
  content: '\201C';
  display: block;
  font-size: 1.75rem;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 6px;
}

.ag-test-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ag-test-photo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(115,75,242,0.2);
  flex-shrink: 0;
}

.ag-test-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(115,75,242,0.3), rgba(78,205,196,0.2));
  border: 1px solid rgba(115,75,242,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(240,242,239,0.7);
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.ag-test-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(240,242,239,0.9);
}

.ag-test-role {
  font-size: 0.7rem;
  color: rgba(240,242,239,0.4);
  margin-top: 1px;
}

/* ============================== */
/* S5: PROCESS — Timeline         */
/* ============================== */
.ag-timeline {
  position: relative;
  padding-left: 48px;
}

.ag-timeline-line {
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(240,242,239,0.06);
  border-radius: 1px;
  overflow: hidden;
}

.ag-timeline-line-fill {
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--accent), var(--teal));
  border-radius: 1px;
  transition: height 1.8s cubic-bezier(0.25,1,0.5,1);
}

.ag-section.in-view .ag-timeline-line-fill {
  height: 100%;
}

.ag-timeline-item {
  position: relative;
  padding: 0 0 56px 0;
}

.ag-timeline-item:last-child {
  padding-bottom: 0;
}

.ag-timeline-dot {
  position: absolute;
  left: -48px;
  top: 4px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ag-timeline-dot-inner {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(115,75,242,0.3);
  background: var(--navy);
  position: relative;
  transition: border-color 0.5s, box-shadow 0.5s, background 0.5s;
}

.ag-timeline-item.txt-in .ag-timeline-dot-inner {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 12px rgba(115,75,242,0.4), 0 0 24px rgba(115,75,242,0.15);
}

/* Pulse ring on active dot */
.ag-timeline-item.txt-in .ag-timeline-dot-inner::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(115,75,242,0.25);
  animation: ag-dot-pulse 2s ease-out infinite;
}

@keyframes ag-dot-pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.ag-timeline-content {
  padding: 4px 0 0 16px;
}

.ag-proc-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}

.ag-proc-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(240,242,239,0.9);
  margin: 0 0 10px 0;
}

.ag-proc-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(240,242,239,0.5);
  margin: 0;
  max-width: 50ch;
}

/* ============================== */
/* S6: FIT                        */
/* ============================== */
.ag-fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ag-fit-card {
  padding: 40px 36px;
  border: 1px solid var(--border);
  position: relative;
}

.ag-fit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}

.ag-fit-yes::before {
  background: linear-gradient(90deg, var(--teal), transparent);
}

.ag-fit-no::before {
  background: linear-gradient(90deg, rgba(240,242,239,0.15), transparent);
}

.ag-fit-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.ag-fit-icon {
  width: 28px;
  height: 28px;
}

.ag-fit-icon-yes { color: var(--teal); }
.ag-fit-icon-no { color: rgba(240,242,239,0.35); }

.ag-fit-card-header span {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(240,242,239,0.9);
}

.ag-fit-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ag-fit-card li {
  font-size: 0.875rem;
  color: rgba(240,242,239,0.55);
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
}

.ag-fit-yes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--teal);
  border-radius: 50%;
}

.ag-fit-yes li::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 7px;
  width: 4px;
  height: 4px;
  background: var(--teal);
  border-radius: 50%;
}

.ag-fit-no li::before {
  content: '\2013';
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(240,242,239,0.2);
  font-weight: 700;
}

/* ============================== */
/* S7: FAQ                        */
/* ============================== */
.ag-faq-list {
  border-top: 1px solid var(--border);
}

.ag-faq-item {
  border-bottom: 1px solid var(--border);
}

.ag-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: rgba(240,242,239,0.85);
  font-size: 1.05rem;
  font-weight: 500;
  font-family: inherit;
  line-height: 1.4;
  transition: color 0.3s;
}
.ag-faq-item.open .ag-faq-q {
  color: var(--accent);
}

.ag-faq-q:hover { color: rgba(240,242,239,1); }

.ag-faq-q svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.4;
  transition: transform 0.3s cubic-bezier(0.25,1,0.5,1), opacity 0.3s;
}
.ag-faq-item.open .ag-faq-q svg {
  opacity: 0.8;
}

.ag-faq-item.open .ag-faq-q svg {
  transform: rotate(180deg);
}

.ag-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25,1,0.5,1);
}

.ag-faq-item.open .ag-faq-a {
  max-height: 600px;
}

.ag-faq-a-inner {
  padding: 0 0 28px 0;
  font-size: 0.925rem;
  line-height: 1.75;
  color: rgba(240,242,239,0.65);
  max-width: 640px;
  border-left: 2px solid rgba(115,75,242,0.25);
  padding-left: 20px;
  margin-left: 2px;
}

/* ============================== */
/* CTA                            */
/* ============================== */
.ag-cta {
  padding: 120px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ag-cta-orb {
  position: absolute;
  width: 600px;
  height: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(115,75,242,0.1), transparent 60%);
  filter: blur(80px);
  pointer-events: none;
}

.ag-cta h2 {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: rgba(240,242,239,0.95);
  margin: 0 auto 20px;
  max-width: 600px;
}

.ag-cta-sub {
  font-size: 1.05rem;
  color: rgba(240,242,239,0.5);
  margin: 0 auto 36px;
  max-width: 480px;
  line-height: 1.6;
}

/* ============================== */
/* RESPONSIVE                     */
/* ============================== */
@media (max-width: 1000px) {
  .ag-body {
    grid-template-columns: 1fr;
  }
  .ag-sidebar {
    display: none;
  }
  .ag-hero { padding: 120px 40px 48px; }
  .ag-hero h1 { font-size: 2.75rem; }
  .ag-section { padding: 64px 40px; }
  .ag-section h2 { font-size: 2rem; }

  .ag-stats-row {
    flex-wrap: wrap;
  }
  .ag-stat {
    flex: 1 0 45%;
    padding: 20px 16px;
  }
  .ag-stat-divider {
    display: none;
  }

  .ag-results-grid,
  .ag-fit-grid {
    grid-template-columns: 1fr;
  }
  .ag-result-featured {
    grid-template-columns: 1fr;
  }
  .ag-result-featured .ag-result-quote {
    grid-column: 1;
    grid-row: auto;
  }

  .ag-services-grid {
    grid-template-columns: 1fr;
  }
  .ag-3d-canvas { display: none; }

  .ag-service-visual {
    height: 180px;
  }
  .ag-svc-canvas {
    display: none;
  }

  .ag-timeline {
    padding-left: 40px;
  }
  .ag-timeline-item {
    padding-bottom: 40px;
  }

  .ag-proof-section .ag-section-label,
  .ag-proof-section h2,
  .ag-proof-section .ag-section-sub {
    padding-left: 40px;
  }
  .ag-marquee-card { width: 320px; }
  .ag-result-featured-top { flex-direction: column; }

  .ag-cta { padding: 80px 40px; }
  .ag-cta h2 { font-size: 2rem; }
}

@media (max-width: 600px) {
  .ag-hero { padding: 100px 20px 36px; }
  .ag-hero h1 { font-size: 2rem; }
  .ag-hero-sub { font-size: 1rem; }
  .ag-hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .ag-section { padding: 48px 20px; }
  .ag-section h2 { font-size: 1.75rem; }

  .ag-stats-row {
    flex-direction: column;
  }
  .ag-stat {
    flex: none;
    border-bottom: 1px solid var(--border);
    padding: 18px 20px;
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 12px;
  }
  .ag-stat:last-child { border-bottom: none; }
  .ag-stat-num { font-size: 1.5rem; }

  .ag-proof-section .ag-section-label,
  .ag-proof-section h2,
  .ag-proof-section .ag-section-sub {
    padding-left: 20px;
  }
  .ag-marquee-card { width: 280px; padding: 20px; }
  .ag-marquee-card blockquote { font-size: 0.8rem; }

  .ag-result-metric { font-size: 2.25rem; }
  .ag-timeline { padding-left: 36px; }
  .ag-timeline-item { padding-bottom: 32px; }

  .ag-cta { padding: 60px 20px; }
  .ag-cta h2 { font-size: 1.75rem; }
  .ag-fit-card { padding: 28px 20px; }
}

/* ============================== */
/* AGENCY NAV                     */
/* ============================== */
.ag-nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  background: rgba(15,10,26,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.ag-nav-brand {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--fg, rgba(240,242,239,0.9));
  font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em;
}
.ag-nav-icon { width: 22px; height: 22px; }
.ag-nav-wordmark { opacity: 0.9; }
.ag-nav-badge {
  font-size: 0.6rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  background: var(--ag-accent, #734bf2); color: #fff;
  padding: 2px 7px; border-radius: 3px; margin-left: 4px;
}
.ag-nav-links {
  display: flex; align-items: center; gap: 24px;
  margin-left: auto; margin-right: 24px;
}
.ag-nav-links a {
  color: rgba(240,242,239,0.55); text-decoration: none;
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.02em;
  transition: color 0.15s;
}
.ag-nav-links a:hover, .ag-nav-links a.active { color: rgba(240,242,239,0.95); }
.ag-nav-cta {
  font-size: 0.78rem; font-weight: 600; text-decoration: none;
  background: var(--ag-accent, #734bf2); color: #fff;
  padding: 8px 18px; border-radius: 6px;
  transition: background 0.15s;
}
.ag-nav-cta:hover { background: #8a62ff; }
.ag-nav-mobile { display: none; background: none; border: none; color: rgba(240,242,239,0.7); cursor: pointer; padding: 6px; }

/* Mobile menu */
.ag-mobile-menu {
  display: none; flex-direction: column; gap: 0;
  position: fixed; top: 53px; left: 0; right: 0; z-index: 99;
  background: rgba(15,10,26,0.97); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-100%); opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.ag-mobile-menu.open { display: flex; transform: translateY(0); opacity: 1; }
.ag-mobile-menu a {
  color: rgba(240,242,239,0.7); text-decoration: none;
  font-size: 0.9rem; padding: 14px 32px;
  border-bottom: 1px solid var(--border);
}
.ag-mobile-menu a:hover { color: #fff; background: rgba(115,75,242,0.08); }
.ag-mobile-cta { background: rgba(115,75,242,0.12) !important; color: var(--ag-accent, #734bf2) !important; font-weight: 600; }
.ag-mobile-section-label {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--teal, #4ecdc4);
  padding: 16px 32px 4px; opacity: 0.7;
}
.ag-mobile-divider {
  height: 1px; background: var(--border); margin: 4px 32px;
}

/* Nav dropdown */
.ag-nav-dropdown { position: relative; }
.ag-nav-dropdown > a { cursor: pointer; }
.ag-nav-dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 200px; padding: 8px 0;
  background: rgba(20,14,34,0.97); backdrop-filter: blur(16px);
  border: 1px solid var(--border); border-radius: 10px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  transform: translateX(-50%) translateY(6px);
  z-index: 100; margin-top: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.ag-nav-dropdown:hover .ag-nav-dropdown-menu {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.ag-nav-dropdown-menu a {
  display: block; padding: 9px 20px;
  font-size: 0.8rem; color: rgba(240,242,239,0.65);
  text-decoration: none; transition: color 0.15s, background 0.15s;
}
.ag-nav-dropdown-menu a:hover {
  color: #fff; background: rgba(115,75,242,0.08);
}

@media (max-width: 768px) {
  .ag-nav-dropdown-menu { display: none !important; }
  .ag-nav { padding: 12px 20px; }
  .ag-nav-links, .ag-nav-cta { display: none; }
  .ag-nav-mobile { display: block; margin-left: auto; }
  .ag-mobile-menu { display: flex; }
}

/* Hide the main site nav and footer on agency pages using AgencyLayout */
body.agency-page .nav { display: none; }
body.agency-page .site-footer { display: none; }

/* ============================== */
/* AGENCY FOOTER                  */
/* ============================== */
.ag-footer {
  border-top: 1px solid var(--border);
  padding: 56px 32px 0;
  background: rgba(15,10,26,0.6);
}
.ag-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px; margin: 0 auto;
  padding-bottom: 48px;
}
.ag-footer-brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em;
  color: rgba(240,242,239,0.85);
  margin-bottom: 12px;
}
.ag-footer-icon { width: 20px; height: 20px; }
.ag-footer-tagline {
  color: rgba(240,242,239,0.45); font-size: 0.8rem; line-height: 1.6;
  margin-bottom: 24px; max-width: 340px;
}
.ag-footer-nl { margin-bottom: 20px; }
.ag-footer-nl-title {
  font-size: 0.82rem; font-weight: 600; color: rgba(240,242,239,0.75);
  margin-bottom: 10px;
}
.ag-footer-nl-form { display: flex; gap: 8px; max-width: 320px; }
.ag-footer-nl-input {
  flex: 1; padding: 8px 12px;
  background: rgba(240,242,239,0.06); border: 1px solid var(--border);
  border-radius: 6px; color: rgba(240,242,239,0.9);
  font-size: 0.8rem;
}
.ag-footer-nl-input::placeholder { color: rgba(240,242,239,0.3); }
.ag-footer-nl-btn {
  padding: 8px 16px; background: var(--ag-accent, #734bf2); color: #fff;
  border: none; border-radius: 6px; font-size: 0.78rem; font-weight: 600;
  cursor: pointer;
}
.ag-footer-nl-btn:hover { background: #8a62ff; }

.ag-footer-platform-link {
  display: block; text-decoration: none; margin-top: 16px;
  border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 16px; max-width: 340px;
  transition: border-color 0.2s;
}
.ag-footer-platform-link:hover { border-color: rgba(240,242,239,0.15); }
.ag-footer-platform-inner { display: flex; align-items: center; justify-content: space-between; }
.ag-footer-platform-label { font-size: 0.78rem; font-weight: 600; color: rgba(240,242,239,0.7); display: block; }
.ag-footer-platform-desc { font-size: 0.72rem; color: rgba(240,242,239,0.4); display: block; margin-top: 2px; }
.ag-footer-platform-cta {
  font-size: 0.72rem; color: var(--accent); white-space: nowrap;
  display: flex; align-items: center; gap: 4px;
}

.ag-footer-col-title {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: rgba(240,242,239,0.4);
  margin-bottom: 14px;
}
.ag-footer-links { list-style: none; padding: 0; margin: 0; }
.ag-footer-links li { margin-bottom: 8px; }
.ag-footer-links a {
  color: rgba(240,242,239,0.55); text-decoration: none;
  font-size: 0.8rem; transition: color 0.15s;
}
.ag-footer-links a:hover { color: rgba(240,242,239,0.9); }

.ag-footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border);
  padding: 20px 0;
  max-width: 1200px; margin: 0 auto;
}
.ag-footer-copy { font-size: 0.72rem; color: rgba(240,242,239,0.3); }
.ag-footer-legal { display: flex; gap: 16px; }
.ag-footer-legal a { font-size: 0.72rem; color: rgba(240,242,239,0.3); text-decoration: none; }
.ag-footer-legal a:hover { color: rgba(240,242,239,0.6); }

@media (max-width: 768px) {
  .ag-footer { padding: 40px 20px 0; }
  .ag-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .ag-footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* ============================== */
/* AGENCY BLOG HUB                */
/* ============================== */
.ag-blog-hub {
  max-width: 1100px; margin: 0 auto;
  padding: 60px 32px 80px;
}
.ag-blog-hub-header {
  text-align: center; margin-bottom: 48px;
}
.ag-blog-hub-label {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--ag-accent, #734bf2);
  margin-bottom: 12px; display: block;
}
.ag-blog-hub-title {
  font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em;
  color: rgba(240,242,239,0.95); margin-bottom: 16px;
}
.ag-blog-hub-sub {
  font-size: 1.05rem; color: rgba(240,242,239,0.5);
  max-width: 600px; margin: 0 auto 24px; line-height: 1.6;
}
.ag-blog-hub-filters { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.ag-blog-pill {
  padding: 6px 16px; border: 1px solid var(--border); border-radius: 20px;
  background: transparent; color: rgba(240,242,239,0.5);
  font-size: 0.78rem; cursor: pointer; transition: all 0.15s;
}
.ag-blog-pill:hover { border-color: rgba(240,242,239,0.2); color: rgba(240,242,239,0.8); }
.ag-blog-pill.active { background: var(--ag-accent, #734bf2); border-color: var(--ag-accent, #734bf2); color: #fff; }

.ag-blog-empty {
  text-align: center; padding: 80px 0;
  color: rgba(240,242,239,0.4); font-size: 1rem;
}

.ag-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.ag-blog-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.ag-blog-card:hover { border-color: rgba(115,75,242,0.3); transform: translateY(-2px); }
.ag-blog-card-featured { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .ag-blog-card-featured { display: grid; grid-template-columns: 1.2fr 1fr; }
}
.ag-blog-card-img { overflow: hidden; aspect-ratio: 16/9; }
.ag-blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.ag-blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.ag-blog-card-top { margin-bottom: 10px; }
.ag-blog-cat {
  font-size: 0.68rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--cat-color, var(--ag-accent, #734bf2));
}
.ag-blog-card-title {
  font-size: 1.15rem; font-weight: 700; color: rgba(240,242,239,0.92);
  line-height: 1.35; margin-bottom: 10px;
}
.ag-blog-card-excerpt {
  font-size: 0.85rem; color: rgba(240,242,239,0.45);
  line-height: 1.55; margin-bottom: 12px; flex: 1;
}
.ag-blog-card-tags { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.ag-blog-card-tag {
  font-size: 0.68rem; padding: 3px 10px;
  background: rgba(115,75,242,0.08); border-radius: 12px;
  color: rgba(240,242,239,0.5);
}
.ag-blog-card-meta {
  font-size: 0.72rem; color: rgba(240,242,239,0.35);
  margin-top: auto;
}

/* ============================== */
/* AGENCY BLOG POST               */
/* ============================== */
.ag-blog-article {
  max-width: 760px; margin: 0 auto;
  padding: 48px 32px 80px;
}
.ag-blog-header { margin-bottom: 40px; }
.ag-blog-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.75rem; color: rgba(240,242,239,0.35);
  margin-bottom: 20px;
}
.ag-blog-breadcrumb a { color: rgba(240,242,239,0.45); text-decoration: none; }
.ag-blog-breadcrumb a:hover { color: var(--ag-accent, #734bf2); }
.ag-blog-category {
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--ag-accent, #734bf2);
  margin-bottom: 12px; display: inline-block;
}
.ag-blog-title {
  font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em;
  color: rgba(240,242,239,0.95); line-height: 1.2;
  margin-bottom: 16px;
}
.ag-blog-subtitle {
  font-size: 1.1rem; color: rgba(240,242,239,0.5);
  line-height: 1.6; margin-bottom: 20px;
}
.ag-blog-meta {
  display: flex; gap: 16px; font-size: 0.8rem;
  color: rgba(240,242,239,0.4);
}
.ag-blog-author { font-weight: 600; color: rgba(240,242,239,0.6); }

.ag-blog-body {
  font-size: 1rem; line-height: 1.75;
  color: rgba(240,242,239,0.72);
}
.ag-blog-body h2 {
  font-size: 1.5rem; font-weight: 700; color: rgba(240,242,239,0.92);
  margin-top: 48px; margin-bottom: 16px; letter-spacing: -0.02em;
}
.ag-blog-body h3 {
  font-size: 1.15rem; font-weight: 600; color: rgba(240,242,239,0.85);
  margin-top: 32px; margin-bottom: 12px;
}
.ag-blog-body p { margin-bottom: 20px; }
.ag-blog-body a { color: var(--ag-accent, #734bf2); text-decoration: underline; text-underline-offset: 3px; }
.ag-blog-body a:hover { color: #8a62ff; }
.ag-blog-body ul, .ag-blog-body ol { margin-bottom: 20px; padding-left: 24px; }
.ag-blog-body li { margin-bottom: 8px; }
.ag-blog-body blockquote {
  border-left: 3px solid var(--ag-accent, #734bf2);
  padding: 16px 24px; margin: 24px 0;
  background: rgba(115,75,242,0.06); border-radius: 0 8px 8px 0;
  color: rgba(240,242,239,0.65);
}
.ag-blog-body table {
  width: 100%; margin: 24px 0; border-collapse: collapse;
  overflow-x: auto; display: block; -webkit-overflow-scrolling: touch;
}
.ag-blog-body th, .ag-blog-body td {
  padding: 10px 14px; text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.ag-blog-body th {
  font-weight: 600; color: rgba(240,242,239,0.7);
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ag-blog-body code {
  background: rgba(115,75,242,0.1); padding: 2px 6px;
  border-radius: 4px; font-size: 0.88em;
}
.ag-blog-body pre {
  background: rgba(15,10,26,0.8); border: 1px solid var(--border);
  border-radius: 8px; padding: 20px; margin: 24px 0;
  overflow-x: auto;
}
.ag-blog-body pre code { background: none; padding: 0; }
.ag-blog-body img {
  max-width: 100%; height: auto; border-radius: 8px;
  margin: 24px 0;
}

.ag-blog-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 40px 0; }
.ag-blog-tag {
  font-size: 0.72rem; padding: 4px 12px;
  background: rgba(115,75,242,0.08); border-radius: 14px;
  color: rgba(240,242,239,0.55);
}

.ag-blog-cta-box {
  margin-top: 56px; padding: 40px;
  background: linear-gradient(135deg, rgba(115,75,242,0.12), rgba(78,205,196,0.08));
  border: 1px solid rgba(115,75,242,0.2); border-radius: 16px;
  text-align: center;
}
.ag-blog-cta-box h3 {
  font-size: 1.35rem; font-weight: 700; color: rgba(240,242,239,0.92);
  margin-bottom: 10px;
}
.ag-blog-cta-box p {
  font-size: 0.95rem; color: rgba(240,242,239,0.5);
  margin-bottom: 20px;
}
.ag-blog-cta-btn {
  display: inline-block; padding: 12px 28px;
  background: var(--ag-accent, #734bf2); color: #fff;
  border-radius: 8px; font-weight: 600; font-size: 0.9rem;
  text-decoration: none; transition: background 0.15s;
}
.ag-blog-cta-btn:hover { background: #8a62ff; }

@media (max-width: 768px) {
  .ag-blog-hub { padding: 40px 20px 60px; }
  .ag-blog-hub-title { font-size: 1.8rem; }
  .ag-blog-grid { grid-template-columns: 1fr; }
  .ag-blog-article { padding: 32px 20px 60px; }
  .ag-blog-title { font-size: 1.6rem; }
  .ag-blog-cta-box { padding: 28px 20px; }
  .ag-footer-nl-input { font-size: 16px; }
  .ag-footer-links a { min-height: 44px; display: inline-flex; align-items: center; }
}

/* ============================== */
/* SERVICE PAGES                   */
/* ============================== */

.ag-svc-hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  text-align: center;
  position: relative;
}
.ag-svc-hero::after {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(115,75,242,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.ag-svc-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--white-40, rgba(255,255,255,0.4));
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}
.ag-svc-breadcrumb a {
  color: var(--white-40, rgba(255,255,255,0.4));
  text-decoration: none;
  transition: color 0.2s;
}
.ag-svc-breadcrumb a:hover { color: var(--accent); }
.ag-svc-breadcrumb span { opacity: 0.5; }
.ag-svc-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 20px;
}
.ag-svc-hero h1 {
  font-family: var(--heading-font, 'DM Serif Display', serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--white-90, rgba(255,255,255,0.92));
  margin: 0 0 20px;
}
.ag-svc-hero-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--white-60, rgba(255,255,255,0.6));
  max-width: 640px;
  margin: 0 auto 32px;
}
.ag-svc-hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 48px;
}

/* Stats row — reuse from main agency */
.ag-svc-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 32px 0 0;
  border-top: 1px solid var(--border);
}
.ag-svc-stat-num {
  font-family: var(--heading-font, 'DM Serif Display', serif);
  font-size: 2rem;
  color: var(--teal);
  font-weight: 400;
  text-shadow: 0 0 20px rgba(78,205,196,0.15);
}
.ag-svc-stat-label {
  font-size: 0.75rem;
  color: var(--white-40, rgba(255,255,255,0.4));
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.ag-svc-stat-client {
  font-size: 0.65rem;
  color: var(--white-20, rgba(255,255,255,0.2));
  margin-top: 2px;
}

/* Capabilities grid */
.ag-svc-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 80px 24px;
}
.ag-svc-section h2 {
  font-family: var(--heading-font, 'DM Serif Display', serif);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--white-90, rgba(255,255,255,0.92));
  margin: 0 0 12px;
}
.ag-svc-section-sub {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--white-50, rgba(255,255,255,0.5));
  max-width: 600px;
  margin: 0 0 40px;
}
.ag-svc-cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ag-svc-cap-card {
  background: var(--navy-light, #140e22);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.3s;
  position: relative;
}
.ag-svc-cap-card:hover {
  border-color: rgba(115,75,242,0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(115,75,242,0.08), 0 0 0 1px rgba(115,75,242,0.1);
}
.ag-svc-cap-num {
  font-size: 0.65rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.ag-svc-cap-card:hover .ag-svc-cap-num { opacity: 1; }
.ag-svc-cap-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white-90, rgba(255,255,255,0.92));
  margin-bottom: 8px;
}
.ag-svc-cap-desc {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--white-40, rgba(255,255,255,0.4));
}

/* Results cards */
.ag-svc-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ag-svc-result-card {
  background: var(--navy-light, #140e22);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 24px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}
.ag-svc-result-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  opacity: 0;
  transition: opacity 0.3s;
}
.ag-svc-result-card:hover::before { opacity: 1; }
.ag-svc-result-card:hover {
  border-color: rgba(115,75,242,0.2);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(78,205,196,0.06), 0 4px 16px rgba(115,75,242,0.06);
}
.ag-svc-result-metric {
  font-family: var(--heading-font, 'DM Serif Display', serif);
  font-size: 2.2rem;
  color: var(--teal);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 6px;
  text-shadow: 0 0 24px rgba(78,205,196,0.2);
}
.ag-svc-result-label {
  font-size: 0.8rem;
  color: var(--white-60, rgba(255,255,255,0.6));
  margin-bottom: 16px;
}
.ag-svc-result-client {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white-90, rgba(255,255,255,0.92));
  margin-bottom: 4px;
}
.ag-svc-result-desc {
  font-size: 0.78rem;
  color: var(--white-40, rgba(255,255,255,0.4));
  line-height: 1.5;
}

/* Process / How it works */
.ag-svc-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.ag-svc-step {
  background: var(--navy-light, #140e22);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 22px;
  position: relative;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.ag-svc-step:hover {
  border-color: rgba(115,75,242,0.2);
  box-shadow: 0 4px 20px rgba(115,75,242,0.05);
}
.ag-svc-step-num {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.ag-svc-step-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white-90, rgba(255,255,255,0.92));
  margin-bottom: 8px;
}
.ag-svc-step-desc {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--white-40, rgba(255,255,255,0.4));
}

/* Comparison table */
.ag-svc-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 32px 0;
  border-radius: 14px;
  border: 1px solid var(--border);
}
.ag-svc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  min-width: 600px;
}
.ag-svc-table th {
  text-align: left;
  padding: 14px 18px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-40, rgba(255,255,255,0.4));
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  background: rgba(115,75,242,0.04);
}
.ag-svc-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--white-70, rgba(255,255,255,0.7));
  vertical-align: top;
}
.ag-svc-table tr:last-child td { border-bottom: none; }
.ag-svc-table tr:hover td { background: rgba(115,75,242,0.03); }
.ag-svc-table .ag-svc-highlight {
  color: var(--teal);
  font-weight: 600;
}

/* Testimonial cards (service page variant) */
.ag-svc-testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.ag-svc-quote-card {
  background: var(--navy-light, #140e22);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  transition: border-color 0.25s, box-shadow 0.3s;
}
.ag-svc-quote-card:hover {
  border-color: rgba(115,75,242,0.15);
  box-shadow: 0 8px 28px rgba(115,75,242,0.05);
}
.ag-svc-quote-card blockquote {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--white-70, rgba(255,255,255,0.7));
  margin: 0 0 20px;
  font-style: italic;
}
.ag-svc-quote-card blockquote::before {
  content: '\201C';
  font-size: 2rem;
  color: var(--accent);
  line-height: 0;
  vertical-align: -0.5em;
  margin-right: 4px;
}
.ag-svc-quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ag-svc-quote-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.ag-svc-quote-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}
.ag-svc-quote-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white-90, rgba(255,255,255,0.92));
}
.ag-svc-quote-role {
  font-size: 0.72rem;
  color: var(--white-40, rgba(255,255,255,0.4));
}

/* FAQ — reuse main agency FAQ styles */
.ag-svc-faq-list { max-width: 700px; }

/* CTA section */
.ag-svc-cta {
  text-align: center;
  padding: 80px 24px 100px;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}
.ag-svc-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(115,75,242,0.06) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}
.ag-svc-cta h2 {
  font-family: var(--heading-font, 'DM Serif Display', serif);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--white-90, rgba(255,255,255,0.92));
  margin: 0 0 16px;
  position: relative;
}
.ag-svc-cta-sub {
  font-size: 0.95rem;
  color: var(--white-50, rgba(255,255,255,0.5));
  margin-bottom: 28px;
  line-height: 1.6;
}

/* Divider between sections */
.ag-svc-divider {
  border: none;
  border-top: 1px solid var(--border);
  max-width: 200px;
  margin: 0 auto;
}

/* Tools/integration grid */
.ag-svc-tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ag-svc-tool-pill {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--white-60, rgba(255,255,255,0.6));
  background: rgba(115,75,242,0.04);
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
}
.ag-svc-tool-pill:hover {
  border-color: var(--accent);
  color: var(--white-90, rgba(255,255,255,0.92));
  background: rgba(115,75,242,0.08);
  box-shadow: 0 2px 12px rgba(115,75,242,0.1);
}

/* Deliverables grid */
.ag-svc-deliverables {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.ag-svc-deliverable {
  background: var(--navy-light, #140e22);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--white-60, rgba(255,255,255,0.6));
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.ag-svc-deliverable:hover {
  border-color: rgba(115,75,242,0.25);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(115,75,242,0.06);
}
.ag-svc-deliverable-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
  display: block;
}

/* ============================== */
/* SERVICE PAGE — RESPONSIVE       */
/* ============================== */
@media (max-width: 900px) {
  .ag-svc-cap-grid { grid-template-columns: repeat(2, 1fr); }
  .ag-svc-results-grid { grid-template-columns: repeat(2, 1fr); }
  .ag-svc-process { grid-template-columns: repeat(2, 1fr); }
  .ag-svc-deliverables { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .ag-svc-hero { padding: 32px 16px 48px; }
  .ag-svc-hero h1 { font-size: 1.8rem; }
  .ag-svc-hero-actions { flex-direction: column; align-items: center; }
  .ag-svc-stats { gap: 24px; }
  .ag-svc-section { padding: 48px 16px; }
  .ag-svc-cap-grid { grid-template-columns: 1fr; }
  .ag-svc-results-grid { grid-template-columns: 1fr; }
  .ag-svc-process { grid-template-columns: 1fr; }
  .ag-svc-deliverables { grid-template-columns: repeat(2, 1fr); }
  .ag-svc-testimonials { grid-template-columns: 1fr; }
  .ag-svc-cta { padding: 48px 16px 64px; }
}

/* ============================== */
/* DIGITAL PIXEL ENHANCEMENTS      */
/* ============================== */

/* Animated gradient border on featured elements */
@keyframes ag-border-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Corner brackets — digital frame effect on result cards */
.ag-result-card::after,
.ag-svc-result-card::after {
  content: '';
  position: absolute;
  top: 6px; right: 6px;
  width: 14px; height: 14px;
  border-top: 1px solid rgba(78,205,196,0.2);
  border-right: 1px solid rgba(78,205,196,0.2);
  pointer-events: none;
  transition: border-color 0.3s;
}
.ag-result-card:hover::after,
.ag-svc-result-card:hover::after {
  border-color: rgba(78,205,196,0.5);
}

/* Terminal-style prefix on eyebrows */
.ag-svc-eyebrow::before {
  content: '// ';
  color: var(--accent);
  opacity: 0.5;
}

/* Monospace on tags and pills */
.ag-result-tags span,
.ag-svc-tool-pill,
.ag-svc-cap-num,
.ag-svc-step-num {
  font-family: var(--mono);
}

/* Digital pulse glow on primary buttons */
@keyframes ag-btn-pulse {
  0%, 100% { box-shadow: 0 2px 12px rgba(115,75,242,0.35), 0 0 20px rgba(115,75,242,0.15); }
  50% { box-shadow: 0 2px 20px rgba(115,75,242,0.5), 0 0 40px rgba(115,75,242,0.25); }
}
.ag-btn-primary {
  animation: ag-btn-pulse 3s ease-in-out infinite;
}
.ag-btn-primary:hover {
  animation: none;
}

/* Pixel dot grid on hover for service cards (subtle) */
.ag-service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(circle, rgba(115,75,242,0.06) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.ag-service-card:hover::after { opacity: 1; }
