/* =========================================================
   Agency One-Pager — premium responsive edition
   Moin Siddiqui / DigiSpark Global
   ========================================================= */

:root {
  --bg: #0b0b0b;
  --bg-2: #121212;
  --bg-card: #161616;
  --bg-elevated: #1a1a1a;
  --text: #f4f4f4;
  --text-muted: #9b9b9b;
  --text-soft: #d4d4d4;
  --flame: #E2F4FF;
  --flame-2: #F4FBFF;
  --flame-soft: rgba(226, 244, 255, 0.16);
  --flame-glow: rgba(226, 244, 255, 0.35);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.16);
  --cream: #f2efea;
  --radius: 20px;
  --radius-sm: 14px;
  --radius-lg: 28px;
  --container: 1200px;
  --gutter: clamp(1.1rem, 3.2vw, 2rem);
  --section-y: clamp(4rem, 9vw, 7.75rem);
  --header-h: 78px;
  --font-sans: "Sora", system-ui, sans-serif;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow-card: 0 18px 50px rgba(0, 0, 0, 0.35);
  --shadow-flame: 0 16px 40px rgba(226, 244, 255, 0.28);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body.agency-onepager {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(226, 244, 255, 0.08), transparent 55%),
    radial-gradient(900px 500px at -10% 30%, rgba(226, 244, 255, 0.05), transparent 50%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.05vw, 16px);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.agency-onepager a { color: inherit; text-decoration: none; }
body.agency-onepager img { max-width: 100%; height: auto; display: block; }
body.agency-onepager ul { margin: 0; padding: 0; list-style: none; }
body.agency-onepager h1,
body.agency-onepager h2,
body.agency-onepager h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--cream);
  margin: 0;
  text-wrap: balance;
}

.ag-container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.ag-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--flame);
  letter-spacing: 0;
}

.ag-eyebrow {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  gap: 0.55rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(226, 244, 255, 0.35);
  background: linear-gradient(180deg, rgba(226, 244, 255, 0.12), rgba(255, 255, 255, 0.02));
  color: var(--flame);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.35rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}

.ag-eyebrow .ag-ico {
  width: 14px;
  height: 14px;
}

.ag-muted { color: var(--text-muted); }
.ag-lead {
  color: var(--text-muted);
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  max-width: 40rem;
  line-height: 1.7;
}

.ag-section {
  position: relative;
  padding: var(--section-y) 0;
  z-index: 1;
  overflow: hidden;
}

.ag-section.alt { background: linear-gradient(180deg, var(--bg-2), #101010); }
.ag-section.border-top { border-top: 1px solid var(--line); }

.ag-section > .ag-container {
  position: relative;
  z-index: 1;
}

.ag-glow {
  position: absolute;
  width: min(560px, 75vw);
  height: min(560px, 75vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 244, 255, 0.22), transparent 68%);
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
  animation: agGlowDrift 12s ease-in-out infinite alternate;
}

@keyframes agGlowDrift {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.7; }
  to { transform: translate3d(24px, -18px, 0) scale(1.08); opacity: 1; }
}

/* SVG icon system */
.ag-ico {
  width: 22px;
  height: 22px;
  display: inline-block;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ag-ico-lg { width: 26px; height: 26px; }
.ag-ico-xl { width: 30px; height: 30px; }

.ag-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--flame);
  background:
    linear-gradient(145deg, rgba(226, 244, 255, 0.18), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(226, 244, 255, 0.4);
  box-shadow:
    0 0 0 4px rgba(226, 244, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), background 0.45s ease;
}

.ag-icon-badge::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 122, 61, 0.45), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.ag-service-card:hover .ag-icon-badge,
.ag-process-card:hover .ag-icon-badge,
.ag-why-card:hover .ag-icon-badge {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 28px rgba(226, 244, 255, 0.25);
  background: linear-gradient(145deg, rgba(226, 244, 255, 0.28), rgba(255, 255, 255, 0.04));
}

/* ---------- Header ---------- */
.ag-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.ag-header.is-scrolled {
  background: rgba(11, 11, 11, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.ag-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.ag-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.ag-logo span {
  color: var(--flame);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35em;
}

.ag-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
}

.ag-nav a {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b7b7b7;
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease);
}

.ag-nav a:hover,
.ag-nav a.is-active {
  color: var(--flame);
  border-bottom-color: var(--flame);
  transform: translateY(-1px);
}

.ag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 999px;
  padding: 0.9rem 1.4rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), background 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.ag-btn-solid {
  background: linear-gradient(135deg, var(--flame-2), var(--flame));
  color: #0b0b0b !important;
  border: 1px solid transparent;
  box-shadow: var(--shadow-flame);
}

.ag-btn-solid:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 42px rgba(226, 244, 255, 0.4);
  color: #0b0b0b !important;
}

.ag-btn-outline {
  background: transparent;
  color: var(--text) !important;
  border: 1px solid rgba(226, 244, 255, 0.7);
}

.ag-btn-outline:hover {
  background: var(--flame-soft);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(226, 244, 255, 0.18);
}

.ag-btn-ghost {
  background: transparent;
  border: 0;
  color: var(--text-soft) !important;
  padding-inline: 0.35rem;
}

.ag-btn-ghost:hover { color: var(--flame) !important; transform: translateX(3px); }

/* Mailto CTAs — strong click affordance (icon + arrow) */
.ag-email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 100%;
  padding: 0.72rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(226, 244, 255, 0.55);
  background:
    linear-gradient(135deg, rgba(226, 244, 255, 0.14), rgba(226, 244, 255, 0.04));
  color: var(--flame) !important;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  text-decoration: none !important;
  box-shadow:
    0 8px 22px rgba(226, 244, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.35s var(--ease), border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease, filter 0.35s ease;
}

.ag-email-link .ag-email-ico {
  display: inline-flex;
  flex-shrink: 0;
  width: 1.55rem;
  height: 1.55rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(226, 244, 255, 0.18);
  border: 1px solid rgba(226, 244, 255, 0.4);
}

.ag-email-link .ag-ico {
  width: 15px;
  height: 15px;
  stroke: var(--flame);
  color: var(--flame);
}

.ag-email-link .ag-email-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ag-email-link .ag-email-go {
  flex-shrink: 0;
  font-size: 0.95rem;
  line-height: 1;
  color: var(--flame);
  transition: transform 0.3s var(--ease);
}

.ag-email-link:hover {
  transform: translateY(-2px);
  border-color: var(--flame);
  background:
    linear-gradient(135deg, rgba(226, 244, 255, 0.24), rgba(226, 244, 255, 0.08));
  box-shadow:
    0 14px 32px rgba(226, 244, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  filter: brightness(1.05);
  color: var(--flame) !important;
}

.ag-email-link:hover .ag-email-go {
  transform: translate(3px, -3px);
}

.ag-email-link--solid {
  background: linear-gradient(135deg, var(--flame-2), var(--flame));
  border-color: transparent;
  color: #0b0b0b !important;
  box-shadow: var(--shadow-flame);
}

.ag-email-link--solid .ag-email-ico {
  background: rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 0, 0, 0.15);
}

.ag-email-link--solid .ag-ico,
.ag-email-link--solid .ag-email-go {
  stroke: #0b0b0b;
  color: #0b0b0b;
}

.ag-email-link--solid:hover {
  color: #0b0b0b !important;
  filter: brightness(1.06);
  box-shadow: 0 18px 42px rgba(226, 244, 255, 0.4);
}

.ag-email-link--footer {
  padding: 0.55rem 0.85rem;
  font-size: 0.78rem;
  margin-top: 0.15rem;
}

.ag-btn-solid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.35) 45%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.7s var(--ease);
  z-index: -1;
}

.ag-btn-solid:hover::after { transform: translateX(130%); }

.ag-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.ag-menu-toggle:hover {
  border-color: var(--flame);
  background: var(--flame-soft);
}

/* ---------- Hero ---------- */
.ag-hero {
  position: relative;
  min-height: min(100svh, 980px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 2.5rem) 0 4.5rem;
  overflow: hidden;
}

/* Section / hero BG videos — 15% opacity; L/R 50% + T/B 30%; icy #E2F4FF */
.ag-bg,
.ag-hero-bg,
.ag-section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ag-bg-media,
.ag-hero-bg-media,
.ag-section-bg-media {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  -webkit-mask-image:
    linear-gradient(
      to right,
      transparent 0%,
      rgba(0, 0, 0, 0.4) 28%,
      #000 50%,
      rgba(0, 0, 0, 0.4) 72%,
      transparent 100%
    ),
    linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0, 0, 0, 0.4) 12%,
      #000 30%,
      #000 70%,
      rgba(0, 0, 0, 0.4) 88%,
      transparent 100%
    );
  mask-image:
    linear-gradient(
      to right,
      transparent 0%,
      rgba(0, 0, 0, 0.4) 28%,
      #000 50%,
      rgba(0, 0, 0, 0.4) 72%,
      transparent 100%
    ),
    linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0, 0, 0, 0.4) 12%,
      #000 30%,
      #000 70%,
      rgba(0, 0, 0, 0.4) 88%,
      transparent 100%
    );
  -webkit-mask-size: 100% 100%, 100% 100%;
  mask-size: 100% 100%, 100% 100%;
  -webkit-mask-repeat: no-repeat, no-repeat;
  mask-repeat: no-repeat, no-repeat;
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.ag-bg-media::after,
.ag-hero-bg-media::after,
.ag-section-bg-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--flame) 55%, #5EB8E8);
  mix-blend-mode: color;
  pointer-events: none;
  z-index: 2;
}

.ag-bg-video,
.ag-hero-bg-video,
.ag-section-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
}

.ag-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  /* Stretch so the profile card bottom aligns with left column (capabilities end) */
  align-items: stretch;
}

.ag-hero-grid > .ag-reveal {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Higher specificity than body.agency-onepager h1 { margin: 0 } */
body.agency-onepager .ag-hero h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  max-width: 12ch;
  line-height: 1.12;
  margin-bottom: 0;
  /* padding clears italic descenders (“p” in Developer.) above the specialty line */
  padding-bottom: 1.35rem;
}

.ag-hero-role {
  color: var(--text-muted);
  font-size: clamp(0.92rem, 1.2vw, 1.02rem);
  margin-bottom: 1.15rem;
}

/* Raza-style rotating specialty line */
body.agency-onepager .ag-hero .ag-role-rotator {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.9rem 0 1.35rem;
  min-height: 2rem;
}

.ag-role-dash {
  display: inline-block;
  width: 3rem;
  height: 1px;
  background: var(--flame);
  flex-shrink: 0;
}

.ag-role-viewport {
  display: block;
  height: 1.85rem;
  overflow: hidden;
  position: relative;
}

.ag-role-text {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--cream);
  letter-spacing: 0;
  line-height: 1.85rem;
  white-space: nowrap;
}

.ag-role-text.is-in {
  animation: agRoleIn 0.5s ease-out both;
}

.ag-role-text.is-out {
  animation: agRoleOut 0.35s ease-in both;
}

@keyframes agRoleIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes agRoleOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-10px); }
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ag-hero h1 em.ag-serif {
  font-style: italic;
  font-weight: 400;
}

.ag-hero > .ag-container > .ag-reveal > p,
.ag-hero-grid > .ag-reveal > p {
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 0 1.75rem;
}

.ag-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.1rem;
  margin-bottom: 2.4rem;
}

.ag-caps {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.ag-caps-label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.ag-cap-list {
  display: grid;
  gap: 0.95rem;
}

.ag-cap-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.95rem;
  align-items: start;
  transition: transform 0.35s var(--ease);
}

.ag-cap-item:hover { transform: translateX(6px); }

.ag-cap-num {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(226, 244, 255, 0.45);
  background: var(--flame-soft);
  color: var(--flame);
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 0 0 4px rgba(226, 244, 255, 0.05);
}

.ag-cap-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--cream);
  margin-bottom: 0.15rem;
}

.ag-cap-item span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.ag-hero-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  padding: clamp(1rem, 2vw, 1.4rem);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.ag-hero-meta {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.ag-hero-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
}

.ag-hero-card::before {
  content: "";
  position: absolute;
  /* Full bleed so no hard rectangular clip edge shows inside the card */
  inset: -35% -25% -40% -25%;
  background: radial-gradient(
    ellipse 58% 48% at 28% 78%,
    rgba(226, 244, 255, 0.22) 0%,
    rgba(226, 244, 255, 0.1) 28%,
    rgba(226, 244, 255, 0.03) 52%,
    transparent 72%
  );
  pointer-events: none;
  /* Extra horizontal dissolve — fades cleanly right → left */
  -webkit-mask-image: linear-gradient(
    to left,
    #000 0%,
    #000 42%,
    rgba(0, 0, 0, 0.55) 68%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to left,
    #000 0%,
    #000 42%,
    rgba(0, 0, 0, 0.55) 68%,
    transparent 100%
  );
  animation: agGlowDrift 10s ease-in-out infinite alternate;
}

.ag-hero-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  background: transparent;
  margin-bottom: 1.15rem;
}

.ag-photo-stage {
  isolation: isolate;
  container-type: inline-size;
}

/* Soft icy bottom blend — lighter wash */
.ag-photo-stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(226, 244, 255, 0.08) 0%,
    rgba(226, 244, 255, 0.035) 40%,
    rgba(226, 244, 255, 0.01) 68%,
    transparent 100%
  );
}

.ag-photo-caption {
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 3;
  margin: 0;
  height: 2.2rem;
  padding: 0 0.9rem;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  color: var(--flame);
  -webkit-text-stroke: 1px #000;
  paint-order: stroke fill;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  /* Text/alignment swaps must be instant with frame changes — no layout transitions */
  transition-property: opacity;
}

.ag-photo-caption.is-right {
  justify-content: flex-end;
  text-align: right;
}

.ag-photo-caption.is-center {
  /* Same top edge as the other two captions; larger size still overlaps the head below */
  top: 14px;
  left: 0;
  right: 0;
  width: max-content;
  max-width: calc(100% - 0.8rem);
  margin-inline: auto;
  height: auto;
  min-height: 0;
  padding: 0 0.15rem;
  justify-content: center;
  text-align: center;
  transform: none;
  /* Prominent; JS fits to stage width so sides never clip */
  font-size: clamp(2.35rem, 5.2vw, 3.55rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.9;
  overflow: visible;
  -webkit-text-stroke: 1.35px #000;
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.45),
    0 0 18px rgba(226, 244, 255, 0.25);
}

.ag-photo-caption-line {
  display: inline-block;
  transform-origin: center center;
  will-change: opacity, transform, filter;
}

.ag-photo-stage.is-popped .ag-photo-caption {
  opacity: 1;
  animation: agCaptionBlink 1.65s var(--ease) infinite;
}

.ag-photo-stage.is-popped .ag-photo-caption.is-swapping {
  animation: none;
  opacity: 1;
  filter: none;
}

/* Caption bolt zap — total ~0.433s to match frame lightning */
.ag-photo-caption-line.is-out {
  animation: agCaptionBoltOut 0.18s cubic-bezier(0.4, 0, 1, 1) forwards;
}

.ag-photo-caption-line.is-in {
  animation: agCaptionBoltIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}


@keyframes agCaptionBlink {
  0%,
  100% {
    opacity: 1;
    filter: brightness(1);
    text-shadow:
      0 2px 10px rgba(0, 0, 0, 0.35),
      0 0 0 transparent;
  }
  45%,
  55% {
    opacity: 0.28;
    filter: brightness(1.15);
    text-shadow:
      0 2px 10px rgba(0, 0, 0, 0.2),
      0 0 14px rgba(226, 244, 255, 0.35);
  }
}

@keyframes agCaptionBoltOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.04);
  }
}

@keyframes agCaptionBoltIn {
  0% {
    opacity: 0;
    transform: scale(0.96);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}


.ag-photo-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  transform: scale(0.72);
  opacity: 0;
  filter: blur(10px);
  background: transparent;
  -webkit-mask-image: linear-gradient(
    to top,
    transparent 0%,
    rgba(0, 0, 0, 0.4) 12%,
    rgba(0, 0, 0, 0.85) 28%,
    #000 42%
  );
  mask-image: linear-gradient(
    to top,
    transparent 0%,
    rgba(0, 0, 0, 0.4) 12%,
    rgba(0, 0, 0, 0.85) 28%,
    #000 42%
  );
}

.ag-photo-stage.is-popped .ag-photo-video {
  animation: agPhotoPop 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ag-hero-card:hover .ag-photo-stage.is-popped .ag-photo-video {
  transform: scale(1);
  transition: transform 1.1s var(--ease);
}

/* Cloud burst on entrance */
.ag-cloud-burst {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
}

.ag-photo-stage.is-bursting .ag-cloud-burst {
  opacity: 1;
}

.ag-cloud-burst span {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 4.5rem;
  height: 4.5rem;
  margin: -2.25rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(226, 244, 255, 0.95), rgba(226, 244, 255, 0.55) 42%, rgba(226, 244, 255, 0) 72%);
  filter: blur(6px);
  opacity: 0;
  transform: scale(0.2);
}

.ag-photo-stage.is-bursting .ag-cloud-burst span {
  animation: agCloudBurst 1.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ag-cloud-burst span:nth-child(1) { --dx: -118px; --dy: -86px; animation-delay: 0.02s; }
.ag-cloud-burst span:nth-child(2) { --dx: 12px; --dy: -128px; animation-delay: 0.05s; width: 5.5rem; height: 5.5rem; }
.ag-cloud-burst span:nth-child(3) { --dx: 126px; --dy: -72px; animation-delay: 0.08s; }
.ag-cloud-burst span:nth-child(4) { --dx: -132px; --dy: 18px; animation-delay: 0.04s; width: 3.8rem; height: 3.8rem; }
.ag-cloud-burst span:nth-child(5) { --dx: 138px; --dy: 28px; animation-delay: 0.1s; }
.ag-cloud-burst span:nth-child(6) { --dx: -78px; --dy: 110px; animation-delay: 0.12s; width: 5rem; height: 5rem; }
.ag-cloud-burst span:nth-child(7) { --dx: 70px; --dy: 118px; animation-delay: 0.07s; }
.ag-cloud-burst span:nth-child(8) { --dx: -20px; --dy: 4px; animation-delay: 0s; width: 6.5rem; height: 6.5rem; }
.ag-cloud-burst span:nth-child(9) { --dx: -150px; --dy: -20px; animation-delay: 0.14s; width: 3.2rem; height: 3.2rem; }
.ag-cloud-burst span:nth-child(10) { --dx: 150px; --dy: -10px; animation-delay: 0.16s; width: 3.4rem; height: 3.4rem; }

@keyframes agCloudBurst {
  0% { opacity: 0; transform: translate(0, 0) scale(0.15); }
  25% { opacity: 0.95; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.65); }
}

@keyframes agPhotoPop {
  0% { opacity: 0; transform: scale(0.72); filter: blur(10px); }
  55% { opacity: 1; filter: blur(0); }
  75% { transform: scale(1.04); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

@media (prefers-reduced-motion: reduce) {
  .ag-photo-video,
  .ag-photo-stage.is-popped .ag-photo-video {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
  .ag-photo-stage.is-popped .ag-photo-caption {
    animation: none;
    opacity: 1;
    filter: none;
    transform: none;
  }
  .ag-photo-caption-line.is-out,
  .ag-photo-caption-line.is-in {
    animation: none !important;
    opacity: 1;
    filter: none;
    transform: none;
  }
  .ag-cloud-burst { display: none; }
}

.ag-hero-meta h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  margin-bottom: 0.3rem;
}

.ag-hero-meta p {
  margin: 0 0 0.45rem !important;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.ag-hero-consult {
  width: 100%;
  margin: 1.05rem 0 2.05rem;
  padding: 0.95rem 1.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  box-shadow:
    0 10px 28px rgba(226, 244, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.ag-hero-consult:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow:
    0 16px 36px rgba(226, 244, 255, 0.38),
    0 0 0 1px rgba(226, 244, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  filter: brightness(1.06);
}

.ag-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.ag-hero-socials {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.ag-hero-social {
  --brand: #e2f4ff;
  --brand-glow: var(--brand);
  position: relative;
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent);
  background: rgba(255, 255, 255, 0.03);
  color: #fff !important;
  transition: transform 0.3s var(--ease), border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.ag-hero-social-glow {
  position: absolute;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 50% 50%,
      color-mix(in srgb, var(--brand-glow) 72%, transparent) 0%,
      color-mix(in srgb, var(--brand-glow) 38%, transparent) 62%,
      transparent 78%
    );
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand-glow) 22%, transparent);
  opacity: 0.85;
  z-index: 0;
}

.ag-hero-social .ag-ico-brand {
  position: relative;
  z-index: 1;
  width: 17px;
  height: 17px;
  fill: currentColor !important;
  stroke: none !important;
  filter: none;
}
.ag-social-linkedin .ag-ico-brand,
.ag-social-facebook .ag-ico-brand {
  width: 18px;
  height: 18px;
}

.ag-social-linkedin {
  --brand: #0a66c2;
  --brand-glow: #0a66c2;
  color: #fff !important;
}
.ag-social-linkedin .ag-hero-social-glow {
  background:
    radial-gradient(
      circle at 50% 50%,
      color-mix(in srgb, #0a66c2 78%, #fff) 0%,
      color-mix(in srgb, #0a66c2 42%, transparent) 62%,
      transparent 78%
    );
  box-shadow: 0 0 0 1px color-mix(in srgb, #0a66c2 24%, transparent);
}
.ag-social-x {
  --brand: #a8aeb4;
  --brand-glow: #a8aeb4;
  color: #e7e9ea !important;
}
.ag-social-x .ag-hero-social-glow {
  background:
    radial-gradient(
      circle at 50% 50%,
      color-mix(in srgb, #a8aeb4 55%, transparent) 0%,
      color-mix(in srgb, #a8aeb4 28%, transparent) 58%,
      transparent 76%
    );
  box-shadow: 0 0 0 1px color-mix(in srgb, #a8aeb4 20%, transparent);
  opacity: 0.75;
}
.ag-social-facebook {
  --brand: #1877f2;
  --brand-glow: #1877f2;
  color: #fff !important;
}
.ag-social-facebook .ag-hero-social-glow {
  background:
    radial-gradient(
      circle at 50% 50%,
      color-mix(in srgb, #1877f2 78%, #fff) 0%,
      color-mix(in srgb, #1877f2 42%, transparent) 62%,
      transparent 78%
    );
  box-shadow: 0 0 0 1px color-mix(in srgb, #1877f2 24%, transparent);
}
.ag-social-instagram {
  --brand: #e4405f;
  --brand-glow: #e4405f;
  color: #fff !important;
}
.ag-social-instagram .ag-hero-social-glow {
  background:
    radial-gradient(
      circle at 50% 50%,
      color-mix(in srgb, #e4405f 70%, #c13584) 0%,
      color-mix(in srgb, #e4405f 40%, transparent) 58%,
      transparent 76%
    );
  box-shadow: 0 0 0 1px color-mix(in srgb, #e4405f 24%, transparent);
  opacity: 0.8;
}

.ag-hero-social:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 75%, #fff);
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 30%, transparent);
}

.ag-hero-social:hover .ag-hero-social-glow {
  transform: scale(1.1);
}

.ag-stat {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.95rem;
  background: rgba(0, 0, 0, 0.28);
  transition: transform 0.35s var(--ease), border-color 0.35s ease, background 0.35s ease;
}

.ag-stat:hover {
  transform: translateY(-3px);
  border-color: rgba(226, 244, 255, 0.4);
  background: rgba(226, 244, 255, 0.06);
}

.ag-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  color: var(--cream);
  letter-spacing: -0.03em;
}

.ag-stat span {
  display: block;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.35;
  margin-top: 0.2rem;
}

.ag-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-muted);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 2;
}

.ag-scroll-line {
  width: 1px;
  height: 46px;
  background: linear-gradient(to bottom, var(--flame), transparent);
  animation: agPulse 1.8s ease infinite;
  transform-origin: top;
}

@keyframes agPulse {
  0%, 100% { opacity: 0.35; transform: scaleY(0.75); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ---------- Tip / Support ---------- */
.ag-tip-section {
  padding-top: clamp(2.5rem, 5vw, 3.75rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.ag-tip-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.95fr) minmax(0, 1.35fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
  align-items: stretch;
}

.ag-tip-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.65rem;
  min-height: 100%;
  padding: clamp(1.35rem, 3vw, 1.9rem);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 244, 255, 0.35);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(226, 244, 255, 0.22), transparent 55%),
    linear-gradient(145deg, rgba(226, 244, 255, 0.1), rgba(255, 255, 255, 0.02));
  color: var(--cream) !important;
  text-decoration: none !important;
  transition: transform 0.45s var(--ease), border-color 0.35s ease, box-shadow 0.45s ease, background 0.45s ease;
}

.ag-tip-banner::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -20%;
  width: 70%;
  height: 90%;
  background: radial-gradient(circle, rgba(226, 244, 255, 0.28), transparent 70%);
  pointer-events: none;
  transition: transform 0.7s var(--ease), opacity 0.45s ease;
}

.ag-tip-banner:hover {
  transform: translateY(-4px);
  border-color: var(--flame);
  box-shadow: 0 22px 48px rgba(226, 244, 255, 0.16);
  background:
    radial-gradient(120% 90% at 10% 0%, rgba(226, 244, 255, 0.3), transparent 58%),
    linear-gradient(145deg, rgba(226, 244, 255, 0.16), rgba(255, 255, 255, 0.03));
}

.ag-tip-banner:hover::before {
  transform: translate(12%, 8%) scale(1.12);
  opacity: 0.9;
}

.ag-tip-banner-kicker,
.ag-tip-banner-title,
.ag-tip-banner-copy,
.ag-tip-banner-cta,
.ag-tip-banner-foot {
  position: relative;
  z-index: 1;
}

.ag-tip-banner-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--flame);
}

.ag-tip-banner-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
  line-height: 1.1;
  color: var(--cream);
}

.ag-tip-banner-copy {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 28ch;
  line-height: 1.55;
}

.ag-tip-banner-foot {
  margin-top: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.ag-tip-banner-cta {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--flame);
  transition: transform 0.3s var(--ease);
}

.ag-tip-payoneer {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  line-height: 1;
  pointer-events: none;
  margin-left: 0.35rem;
}

.ag-tip-payoneer-mark {
  width: 1.85rem;
  height: 1.85rem;
  flex: 0 0 auto;
  object-fit: contain;
  display: block;
}

.ag-tip-payoneer-word {
  display: block;
  font-family: var(--font-sans, "Sora", system-ui, sans-serif);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}

.ag-tip-banner:hover .ag-tip-banner-cta {
  transform: translateX(4px);
}

.ag-tip-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.ag-tip-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 1.15rem 0.85rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  transition: transform 0.35s var(--ease), border-color 0.35s ease, box-shadow 0.35s ease;
}

.ag-tip-card:hover {
  transform: translateY(-4px);
  border-color: rgba(226, 244, 255, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.ag-tip-card:hover .ag-tip-visual img {
  transform: translateY(-3px) scale(1.04);
}

.ag-tip-card.is-recommended {
  border-color: rgba(226, 244, 255, 0.55);
  box-shadow:
    0 0 0 1px rgba(226, 244, 255, 0.12),
    0 14px 34px rgba(226, 244, 255, 0.1);
  overflow: hidden;
}

.ag-tip-card.is-recommended::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(244, 251, 255, 0.16) 48%,
    transparent 62%
  );
  transform: translateX(-120%);
  opacity: 0;
}

.ag-tip-section.is-engaged .ag-tip-card.is-recommended::after {
  animation: agTipSheen 1.35s var(--ease) 0.35s both;
}

.ag-tip-section.is-engaged .ag-tip-card {
  animation: agTipRise 0.7s var(--ease) both;
}

.ag-tip-section.is-engaged .ag-tip-card:nth-child(1) { animation-delay: 0.05s; }
.ag-tip-section.is-engaged .ag-tip-card:nth-child(2) { animation-delay: 0.14s; }
.ag-tip-section.is-engaged .ag-tip-card:nth-child(3) { animation-delay: 0.23s; }

@keyframes agTipRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes agTipSheen {
  0% { opacity: 0; transform: translateX(-120%); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translateX(120%); }
}

.ag-tip-badge {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: var(--flame);
  color: #0b0b0b;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ag-tip-visual {
  width: clamp(4.5rem, 28%, 5.75rem);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  margin: 0.35rem 0 0.45rem;
  border: 1px solid rgba(226, 244, 255, 0.28);
  background: #0a0a0a;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.ag-tip-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.ag-tip-card h3 {
  font-size: 1.02rem;
  margin: 0;
}

.ag-tip-price {
  margin: 0 !important;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--flame) !important;
  letter-spacing: -0.02em;
}

.ag-tip-blurb {
  margin: 0 0 0.65rem !important;
  color: var(--text-muted) !important;
  font-size: 0.78rem;
  line-height: 1.4;
}

.ag-tip-btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
  padding: 0.75rem 0.9rem;
  font-size: 0.68rem;
  gap: 0.35rem;
}

.ag-tip-line {
  margin: 1rem 0 0.3rem;
  max-width: none;
  width: 100%;
  font-family: var(--font-serif);
  font-style: italic;
  /* Scales with viewport so the full sentence stays one line on phones */
  font-size: clamp(0.48rem, 2.2vw + 0.1rem, 1.05rem);
  line-height: 1.3;
  color: var(--cream);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.ag-tip-note {
  margin: 0.3rem 0 0;
  max-width: none;
  width: 100%;
  font-size: clamp(0.4rem, 1.85vw + 0.06rem, 0.68rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

/* ---------- About ---------- */
.ag-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: start;
}

body.agency-onepager .ag-about-grid h2 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  max-width: 16ch;
  margin: 0 0 1.85rem;
  line-height: 1.15;
}

body.agency-onepager .ag-about-grid h2 + p {
  margin-top: 0.35rem;
}

.ag-about-grid p { color: var(--text-muted); margin: 0 0 1rem; }

.ag-offer {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

body.agency-onepager .ag-offer h3 {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--flame);
  margin: 0 0 1.35rem;
}

.ag-offer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.5rem;
  margin: 0.15rem 0 0;
}

.ag-offer-chips li {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.45rem 0.75rem 0.45rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-size: 0.84rem;
  line-height: 1.25;
}

.ag-offer-chips li::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--flame);
  box-shadow: 0 0 0 3px rgba(226, 244, 255, 0.1);
}

/* ---------- Services ---------- */
.ag-services-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(1rem, 3vw, 1.75rem);
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
  align-items: end;
}

.ag-services-head h2 {
  font-size: clamp(1.9rem, 4vw, 3.3rem);
  max-width: 16ch;
}

.ag-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.5vw, 1.1rem);
}

.ag-service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #1a1a1a, #141414);
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.45s ease, background 0.45s ease, box-shadow 0.45s ease;
}

.ag-service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 180px at 20% 0%, rgba(226, 244, 255, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.ag-service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(226, 244, 255, 0.5);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.4);
}

.ag-service-card:hover::before { opacity: 1; }

.ag-service-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.7rem;
  position: relative;
}

.ag-service-icon {
  position: relative;
}

.ag-service-arrow {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: #777;
  transition: color 0.3s ease, transform 0.35s var(--ease), border-color 0.3s ease, background 0.3s ease;
}

.ag-service-card:hover .ag-service-arrow {
  color: #0b0b0b;
  border-color: var(--flame);
  background: var(--flame);
  transform: translate(2px, -2px) rotate(12deg);
}

.ag-service-card h3 {
  font-size: clamp(1.05rem, 1.3vw, 1.18rem);
  margin-bottom: 0.6rem;
  position: relative;
  text-transform: none;
  letter-spacing: -0.02em;
}

.ag-service-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  position: relative;
  margin-top: auto;
}

/* ---------- Process / Why ---------- */
.ag-process-grid,
.ag-why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.5vw, 1.1rem);
  margin-top: 2rem;
}

.ag-process-card,
.ag-why-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.45rem;
  background: rgba(255, 255, 255, 0.02);
  min-height: 190px;
  transition: transform 0.4s var(--ease), border-color 0.4s ease, box-shadow 0.4s ease;
}

.ag-process-card:hover,
.ag-why-card:hover {
  transform: translateY(-8px);
  border-color: rgba(226, 244, 255, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.ag-process-num,
.ag-why-card .num {
  color: var(--flame);
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.ag-process-card h3,
.ag-why-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
}

.ag-process-card p,
.ag-why-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ---------- Experience / Education ---------- */
.ag-timeline {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.ag-timeline-item {
  display: grid;
  grid-template-columns: minmax(140px, 190px) 1fr;
  gap: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.45rem;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.4s var(--ease), border-color 0.4s ease, box-shadow 0.4s ease;
}

.ag-timeline-item:hover {
  transform: translateY(-5px);
  border-color: rgba(226, 244, 255, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.ag-timeline-dates {
  color: var(--flame);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ag-timeline-body h3 {
  font-size: 1.18rem;
  margin-bottom: 0.25rem;
}

.ag-timeline-org {
  color: var(--text-soft) !important;
  margin: 0 0 0.55rem !important;
  font-weight: 500;
}

.ag-timeline-org a { color: var(--flame); }
.ag-timeline-body p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

.ag-edu-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(1.5rem, 4vw, 2.25rem);
  align-items: start;
}

.ag-edu-list { display: grid; gap: 1rem; margin-top: 1.5rem; }

.ag-edu-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  background: var(--bg-card);
  transition: transform 0.4s var(--ease), border-color 0.4s ease;
}

.ag-edu-card:hover {
  transform: translateY(-5px);
  border-color: rgba(226, 244, 255, 0.35);
}

.ag-edu-card h3 { font-size: 1.12rem; margin: 0.45rem 0 0.25rem; }
.ag-edu-card ul { margin-top: 0.75rem; }
.ag-edu-card li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.45rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.ag-edu-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--flame);
}

.ag-edu-grid > div > .ag-reveal + .ag-cert-list,
.ag-cert-list {
  margin-top: 1.55rem;
  display: grid;
  gap: 0.75rem;
}
.ag-cert-list li {
  display: flex;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.95rem 1.1rem;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.35s var(--ease), border-color 0.35s ease;
}

.ag-cert-list li:hover {
  transform: translateX(4px);
  border-color: rgba(226, 244, 255, 0.35);
}

.ag-cert-copy {
  flex: 1 1 auto;
  min-width: 0;
  max-width: calc(100% - 4.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding-right: 0.35rem;
}

.ag-cert-list strong {
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
}

.ag-cert-org {
  color: color-mix(in srgb, var(--flame) 78%, #fff);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.ag-cert-year {
  color: var(--flame);
  font-size: 0.8rem;
  white-space: nowrap;
  font-weight: 700;
  flex: 0 0 auto;
  margin-left: auto;
  padding-left: 0.75rem;
  align-self: center;
}

/* ---------- Skills / Tools ---------- */
.ag-skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem 2rem;
  margin-top: 2rem;
}

.ag-skill { margin-bottom: 0.2rem; }
.ag-skill-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.ag-skill-top span:last-child { color: var(--flame); font-weight: 700; }

.ag-skill-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

.ag-skill-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff8a4c, var(--flame));
  box-shadow: 0 0 16px rgba(226, 244, 255, 0.45);
  transition: width 1.35s var(--ease);
  position: relative;
}

.ag-skill-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: agShimmer 2.2s linear infinite;
}

@keyframes agShimmer {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

.ag-tools-marquee {
  margin-top: 2rem;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ag-tools-track {
  display: flex;
  gap: 0.85rem;
  width: max-content;
  animation: agMarquee 34s linear infinite;
}

.ag-tools-marquee:hover .ag-tools-track { animation-play-state: paused; }

.ag-tool-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  white-space: nowrap;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.88rem;
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.ag-tool-chip:hover {
  border-color: rgba(226, 244, 255, 0.5);
  color: #fff;
  transform: translateY(-2px);
}

@keyframes agMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Portfolio ---------- */
.ag-portfolio-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(210px, 0.85fr);
  gap: 1.25rem 1.75rem;
  align-items: center;
}

.ag-portfolio-intro-copy .ag-lead {
  margin-bottom: 0;
}

.ag-folio-logo-rail {
  position: relative;
  border-radius: 999px;
  border: 1px solid rgba(226, 244, 255, 0.3);
  background:
    linear-gradient(180deg, rgba(226, 244, 255, 0.1), rgba(255, 255, 255, 0.02));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 10px 28px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  padding: 0.55rem 0.4rem;
  min-height: 3.6rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.ag-folio-logo-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: agMarquee 48s linear infinite;
}

.ag-folio-logo-set {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-right: 0.55rem;
  flex: 0 0 auto;
}

.ag-folio-logo-rail:hover .ag-folio-logo-track {
  animation-play-state: paused;
}

.ag-folio-logo-pill {
  --logo-pill: 3rem;
  --logo-art: 2.35rem; /* ~78% of pill — fill circle, stay centered */
  position: relative;
  flex: 0 0 var(--logo-pill);
  width: var(--logo-pill);
  height: var(--logo-pill);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 30% 26%, rgba(244, 251, 255, 1), #f7fbff 42%, #eef7fc 100%);
  border: 1.5px solid rgba(226, 244, 255, 0.72);
  box-shadow:
    0 0 0 1px rgba(226, 244, 255, 0.22),
    0 0 16px rgba(226, 244, 255, 0.42),
    0 0 28px rgba(226, 244, 255, 0.18),
    0 4px 12px rgba(0, 0, 0, 0.22),
    inset 0 1px 1px rgba(255, 255, 255, 0.95),
    inset 0 -6px 14px rgba(226, 244, 255, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
  isolation: isolate;
}

/* Permanent icy glass highlight */
.ag-folio-logo-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    linear-gradient(160deg, rgba(244, 251, 255, 0.7) 0%, transparent 42%),
    radial-gradient(circle at 70% 78%, rgba(226, 244, 255, 0.35), transparent 55%);
  pointer-events: none;
  z-index: 2;
}

/* Soft icy sheen sweep */
.ag-folio-logo-pill::after {
  content: "";
  position: absolute;
  inset: -25%;
  border-radius: 50%;
  background: linear-gradient(
    118deg,
    transparent 38%,
    rgba(226, 244, 255, 0.15) 46%,
    rgba(244, 251, 255, 0.7) 50%,
    rgba(226, 244, 255, 0.2) 54%,
    transparent 62%
  );
  transform: translateX(-130%) rotate(16deg);
  animation: agLogoIceShine 5.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 3;
}

.ag-folio-logo-set .ag-folio-logo-pill:nth-child(3n)::after { animation-delay: 0.7s; }
.ag-folio-logo-set .ag-folio-logo-pill:nth-child(3n + 1)::after { animation-delay: 1.5s; }
.ag-folio-logo-set .ag-folio-logo-pill:nth-child(3n + 2)::after { animation-delay: 2.3s; }

@keyframes agLogoIceShine {
  0%, 50% { transform: translateX(-130%) rotate(16deg); opacity: 0; }
  58% { opacity: 1; }
  76% { transform: translateX(130%) rotate(16deg); opacity: 0.9; }
  100% { transform: translateX(130%) rotate(16deg); opacity: 0; }
}

.ag-folio-logo-pill:hover {
  transform: translateY(-2px) scale(1.06);
  border-color: rgba(226, 244, 255, 0.95);
  box-shadow:
    0 0 0 1px rgba(226, 244, 255, 0.4),
    0 0 24px rgba(226, 244, 255, 0.55),
    0 0 36px rgba(226, 244, 255, 0.25),
    0 8px 18px rgba(0, 0, 0, 0.28),
    inset 0 1px 1px rgba(255, 255, 255, 1),
    inset 0 -6px 16px rgba(226, 244, 255, 0.35);
}

/* Identical art box for every brand — small logos scale up to fill it */
.ag-folio-logo-pill img {
  box-sizing: border-box;
  width: var(--logo-art) !important;
  height: var(--logo-art) !important;
  max-width: var(--logo-art) !important;
  max-height: var(--logo-art) !important;
  min-width: var(--logo-art) !important;
  min-height: var(--logo-art) !important;
  object-fit: contain;
  object-position: center center;
  display: block;
  margin: auto !important;
  padding: 0 !important;
  position: relative;
  inset: 0;
  z-index: 1;
  flex: 0 0 var(--logo-art);
  align-self: center;
  justify-self: center;
  -webkit-user-drag: none;
  filter: drop-shadow(0 0 4px rgba(226, 244, 255, 0.35));
}

@media (max-width: 900px) {
  .ag-portfolio-intro {
    grid-template-columns: 1fr;
  }

  .ag-folio-logo-rail {
    max-width: 100%;
  }
}

.ag-portfolio-shell {
  margin-top: 2rem;
  max-width: 100%;
  overflow: hidden;
}

/* Collapsed = dual marquees; expanded = full scrollable grid */
.ag-portfolio-shell:not(.is-expanded) .ag-portfolio-scroll {
  display: none;
}

.ag-portfolio-shell.is-expanded .ag-portfolio-marquees {
  display: none;
}

.ag-portfolio-marquees {
  position: relative;
  display: grid;
  gap: 1rem;
  max-width: 100%;
  overflow: hidden;
}

/* Soft left + right fades — long blend, no hard edge line */
.ag-portfolio-marquees::before,
.ag-portfolio-marquees::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(4rem, 12vw, 7.5rem);
  z-index: 4;
  pointer-events: none;
}

.ag-portfolio-marquees::before {
  left: 0;
  background: linear-gradient(
    90deg,
    var(--bg-2) 0%,
    rgba(16, 16, 16, 0.72) 28%,
    rgba(16, 16, 16, 0.28) 58%,
    transparent 100%
  );
}

.ag-portfolio-marquees::after {
  right: 0;
  background: linear-gradient(
    270deg,
    var(--bg-2) 0%,
    rgba(16, 16, 16, 0.72) 28%,
    rgba(16, 16, 16, 0.28) 58%,
    transparent 100%
  );
}

.ag-folio-marquee {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  padding-block: 0.55rem;
  margin-block: -0.55rem;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 16%,
    #000 84%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 16%,
    #000 84%,
    transparent 100%
  );
}

.ag-folio-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  will-change: transform;
}

/* Top row → right; bottom row → left (seamless via duplicated set @ 50%) */
.ag-folio-marquee--right .ag-folio-track {
  animation: agFolioMarqueeRight 75s linear infinite;
}

.ag-folio-marquee--left .ag-folio-track {
  animation: agFolioMarqueeLeft 75s linear infinite;
}

.ag-folio-marquee:hover .ag-folio-track,
.ag-folio-marquee:focus-within .ag-folio-track {
  animation-play-state: paused;
}

@keyframes agFolioMarqueeLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes agFolioMarqueeRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* Keep portfolio marquees moving even when OS reduced-motion is on —
   hover/focus still pauses for control. */

/* Fixed card widths so marquees work on every screen size */
.ag-folio-marquee .ag-folio-card {
  flex: 0 0 clamp(240px, 72vw, 380px);
  width: clamp(240px, 72vw, 380px);
  min-height: 0;
  aspect-ratio: 16 / 10;
  transform-origin: center bottom;
}

/* Soft ice glint while marquees scroll (no bounce / scale) */
@keyframes agFolioGlintRim {
  0%,
  100% {
    border-color: var(--line);
    box-shadow: none;
  }
  40% {
    border-color: rgba(226, 244, 255, 0.55);
    box-shadow: 0 0 0 1px rgba(226, 244, 255, 0.22), 0 12px 28px rgba(0, 0, 0, 0.35);
  }
}

@keyframes agFolioGlintSweep {
  0% {
    transform: translateX(-130%) skewX(-18deg);
    opacity: 0;
  }
  18% {
    opacity: 0.85;
  }
  55% {
    opacity: 0.55;
  }
  100% {
    transform: translateX(220%) skewX(-18deg);
    opacity: 0;
  }
}

.ag-folio-marquee .ag-folio-card.is-glinting {
  z-index: 5;
  animation: agFolioGlintRim 1.15s ease both;
}

.ag-folio-marquee .ag-folio-card.is-glinting::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 0;
  width: 42%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(226, 244, 255, 0.06) 35%,
    rgba(226, 244, 255, 0.28) 50%,
    rgba(226, 244, 255, 0.06) 65%,
    transparent 100%
  );
  animation: agFolioGlintSweep 1.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (min-width: 700px) {
  .ag-folio-marquee .ag-folio-card {
    flex-basis: clamp(260px, 42vw, 380px);
    width: clamp(260px, 42vw, 380px);
  }
}

@media (min-width: 1020px) {
  .ag-folio-marquee .ag-folio-card {
    flex-basis: clamp(280px, 28vw, 380px);
    width: clamp(280px, 28vw, 380px);
  }
}

.ag-portfolio-scroll {
  position: relative;
}

/* Expanded: inner scroll, page scroll still works outside / at edges */
.ag-portfolio-shell.is-expanded .ag-portfolio-scroll {
  display: block;
  max-height: min(68vh, 920px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: calc(var(--radius) + 4px);
  padding: 0.65rem;
  background: rgba(0, 0, 0, 0.18);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(226, 244, 255, 0.45) rgba(255, 255, 255, 0.06);
}

.ag-portfolio-shell.is-expanded .ag-portfolio-scroll::-webkit-scrollbar {
  width: 8px;
}

.ag-portfolio-shell.is-expanded .ag-portfolio-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

.ag-portfolio-shell.is-expanded .ag-portfolio-scroll::-webkit-scrollbar-thumb {
  background: rgba(226, 244, 255, 0.4);
  border-radius: 999px;
}

.ag-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.5vw, 1.1rem);
}

.ag-portfolio-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.ag-portfolio-actions[hidden] {
  display: none;
}

.ag-portfolio-actions .ag-btn {
  min-width: min(100%, 240px);
}

@media (max-width: 820px) {
  .ag-portfolio-shell.is-expanded .ag-portfolio-scroll {
    max-height: min(58vh, 720px);
  }
}

.ag-folio-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 0;
  aspect-ratio: 16 / 10;
  background: #1a1a1a;
  display: flex;
  align-items: flex-end;
  transition: transform 0.45s var(--ease), border-color 0.45s ease;
}

.ag-folio-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* 4-side vignette + soft black scrim behind bottom labels */
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0) 48%,
      rgba(0, 0, 0, 0.5) 78%,
      rgba(0, 0, 0, 0.68) 100%
    ),
    radial-gradient(
      ellipse 78% 70% at 50% 48%,
      transparent 28%,
      rgba(0, 0, 0, 0.35) 62%,
      rgba(0, 0, 0, 0.72) 100%
    );
}

.ag-folio-link {
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 100%;
  min-height: 0;
  color: inherit;
  text-decoration: none;
}

.ag-folio-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ag-folio-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transform: scale(1.02);
  transition: transform 0.7s var(--ease);
}

.ag-folio-card:hover {
  transform: translateY(-8px);
  border-color: rgba(226, 244, 255, 0.45);
}

.ag-folio-card:hover .ag-folio-media img { transform: scale(1.06); }

.ag-folio-body {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 1.15rem 1.2rem 1.15rem;
}

.ag-folio-body .tag {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--flame);
  margin-bottom: 0.28rem;
  font-weight: 600;
}

.ag-folio-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.28rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.ag-folio-body span { color: var(--text-muted); font-size: 0.85rem; }

.ag-folio-flag {
  position: absolute;
  right: 1.2rem;
  bottom: 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  margin: 0;
  line-height: 0;
}

.ag-folio-flag img {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.ag-folio-flag img.ag-folio-globe {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  opacity: 0.92;
}

/* ---------- Testimonials / FAQ / Contact ---------- */
.ag-testimonial {
  margin-top: 2rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: rgba(255, 255, 255, 0.02);
  min-height: 230px;
  transition: border-color 0.4s ease;
}

.ag-testimonial:hover { border-color: rgba(226, 244, 255, 0.35); }

.ag-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  line-height: 1.35;
  color: var(--cream);
  margin: 0 0 1.5rem;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.ag-quote.is-swap {
  opacity: 0;
  transform: translateY(8px);
}

.ag-testi-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.ag-testi-nav { display: flex; gap: 0.55rem; }
.ag-testi-nav button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s var(--ease), background 0.3s ease;
}

.ag-testi-nav button:hover {
  border-color: var(--flame);
  color: #0b0b0b;
  background: var(--flame);
  transform: scale(1.06);
}

.ag-faq-list { margin-top: 1.75rem; border-top: 1px solid var(--line); }
.ag-faq-item { border-bottom: 1px solid var(--line); }
.ag-faq-q {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--cream);
  text-align: left;
  padding: 1.2rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.4vw, 1.08rem);
  font-weight: 600;
  transition: color 0.3s ease;
}

.ag-faq-q:hover { color: var(--flame); }
.ag-faq-q span:first-child > span:first-child { color: var(--flame); margin-right: 0.65rem; }

.ag-faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
  color: var(--text-muted);
  max-width: 52rem;
}

.ag-faq-a > div { overflow: hidden; }
.ag-faq-item.is-open .ag-faq-a { grid-template-rows: 1fr; padding-bottom: 1.15rem; }

.ag-contact-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 2.25rem);
  align-items: start;
}

.ag-contact-wrap h2 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  max-width: 14ch;
  margin-bottom: 1rem;
}

.ag-contact-form {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.25rem, 3vw, 1.6rem);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow-card);
  transition: border-color 0.35s ease, box-shadow 0.45s var(--ease);
}

.ag-contact-form:focus-within {
  border-color: rgba(226, 244, 255, 0.55);
  box-shadow:
    0 0 0 1px rgba(226, 244, 255, 0.14),
    0 18px 42px rgba(226, 244, 255, 0.1),
    var(--shadow-card);
}

.ag-contact-wrap.is-engaged .ag-contact-cta {
  animation: agContactIcePulse 1.45s var(--ease) both;
}

@keyframes agContactIcePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(226, 244, 255, 0);
  }
  35% {
    box-shadow:
      0 0 0 6px rgba(226, 244, 255, 0.18),
      0 14px 34px rgba(226, 244, 255, 0.28);
  }
  100% {
    box-shadow: 0 16px 40px rgba(226, 244, 255, 0.28);
  }
}

.ag-contact-form h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.agency-onepager .wpcf7-form label,
.agency-onepager .wpcf7-form p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.agency-onepager .wpcf7-form input[type="text"],
.agency-onepager .wpcf7-form input[type="email"],
.agency-onepager .wpcf7-form input[type="tel"],
.agency-onepager .wpcf7-form input[type="url"],
.agency-onepager .wpcf7-form textarea {
  width: 100%;
  background: #101010;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #fff;
  padding: 0.9rem 1rem;
  margin-top: 0.35rem;
  margin-bottom: 0.85rem;
  font-family: var(--font-sans);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.agency-onepager .wpcf7-form input:focus,
.agency-onepager .wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--flame);
  box-shadow: 0 0 0 4px rgba(226, 244, 255, 0.15);
}

.agency-onepager .wpcf7-submit {
  background: linear-gradient(135deg, var(--flame-2), var(--flame)) !important;
  border: 0 !important;
  color: #0b0b0b !important;
  border-radius: 999px !important;
  padding: 0.95rem 1.45rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease !important;
}

.agency-onepager .wpcf7-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-flame);
}

/* ---------- Footer ---------- */
.ag-footer {
  border-top: 1px solid var(--line);
  padding: 4rem 0 1.75rem;
  background: #090909;
}

.ag-footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.05fr;
  gap: clamp(1.5rem, 3.5vw, 2.5rem);
  margin-bottom: 2.75rem;
  align-items: start;
}

.ag-footer-brand .ag-logo {
  display: inline-block;
  margin-bottom: 0.35rem;
}

.ag-footer h4 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #fff;
  margin: 0 0 1.15rem;
  font-weight: 700;
}

.ag-footer p {
  color: var(--text-muted);
  margin: 0.85rem 0 1.25rem;
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 28ch;
}

.ag-footer a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.25s ease; }
.ag-footer a:hover { color: var(--flame); }
.ag-footer li { margin-bottom: 0.58rem; }

.ag-footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.ag-footer-social {
  --brand: var(--flame);
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand) !important;
  background: transparent;
  transition: transform 0.25s var(--ease), border-color 0.25s ease, background 0.25s ease;
}

.ag-footer-social .ag-ico-brand {
  width: 14px;
  height: 14px;
  fill: currentColor !important;
  stroke: none !important;
}

.ag-footer-social:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 75%, #fff);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
}

.ag-footer-touch .ag-email-link--footer {
  margin-bottom: 1.15rem;
}

.ag-footer-cta {
  margin-top: 0.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 0 24px color-mix(in srgb, var(--flame) 28%, transparent);
}

.ag-footer-cta span {
  font-size: 0.95em;
  line-height: 1;
}

.ag-footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: #777;
  font-size: 0.84rem;
  flex-wrap: wrap;
}

.ag-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
}

.ag-footer-legal a {
  color: #888;
  font-size: 0.84rem;
}

.ag-footer-legal a:hover {
  color: var(--flame);
}

/* ---------- Reveal / Motion ---------- */
.ag-reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition:
    opacity 0.85s var(--ease),
    transform 0.85s var(--ease),
    filter 0.85s var(--ease);
  will-change: opacity, transform, filter;
}

.ag-reveal.is-in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

.ag-reveal[data-delay="1"] { transition-delay: 0.08s; }
.ag-reveal[data-delay="2"] { transition-delay: 0.16s; }
.ag-reveal[data-delay="3"] { transition-delay: 0.24s; }
.ag-reveal[data-delay="4"] { transition-delay: 0.32s; }

/* Magnetic cursor glow */
.ag-cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(226, 244, 255, 0.12), transparent 65%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  mix-blend-mode: screen;
}

body.agency-onepager.is-pointer .ag-cursor-glow { opacity: 1; }

/* Progress bar */
.ag-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 1100;
  background: linear-gradient(90deg, var(--flame-2), var(--flame));
  box-shadow: 0 0 12px rgba(226, 244, 255, 0.6);
  transform-origin: left;
}

/* ---------- Ice-cube progress loader (0→100%) ---------- */
.ag-loader {
  --ag-load: 0;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 45% at 50% 38%, rgba(226, 244, 255, 0.09), transparent 68%),
    linear-gradient(180deg, #04070b 0%, #05080c 48%, #071018 100%);
  color: var(--flame);
  transition: opacity 0.85s var(--ease), visibility 0.85s var(--ease), filter 0.85s var(--ease);
}

.ag-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: blur(12px) saturate(1.1);
}

.ag-loader-ambience {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ag-loader-caustic {
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(90vw, 640px);
  height: min(40vw, 260px);
  transform: translate(-50%, -20%);
  background:
    radial-gradient(ellipse at 30% 40%, rgba(244, 251, 255, 0.12), transparent 45%),
    radial-gradient(ellipse at 70% 55%, rgba(142, 200, 232, 0.1), transparent 48%),
    radial-gradient(ellipse at 50% 70%, rgba(226, 244, 255, 0.08), transparent 55%);
  filter: blur(22px);
  animation: ag-ice-caustic 5.5s ease-in-out infinite;
  opacity: calc(0.35 + (var(--ag-load) * 0.006));
}

.ag-loader-floor {
  position: absolute;
  left: 50%;
  bottom: max(12vh, 64px);
  width: min(88vw, 520px);
  height: 48px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(226, 244, 255, 0.14), transparent 70%);
  filter: blur(10px);
  opacity: calc(0.25 + (var(--ag-load) * 0.005));
}

.ag-loader-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.1rem, 3vw, 1.75rem);
  padding: 1.5rem;
  text-align: center;
}

.ag-loader-kicker {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  letter-spacing: 0.08em;
  color: rgba(244, 251, 255, 0.72);
}

.ag-loader-caption {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(226, 244, 255, 0.45);
}

/* True CSS 3D ice cubes */
.ag-ice-hero {
  position: relative;
  width: clamp(160px, 30vw, 210px);
  height: clamp(160px, 30vw, 210px);
  display: grid;
  place-items: center;
}

.ag-ice-hero-shade {
  position: absolute;
  left: 18%;
  right: 12%;
  bottom: 2%;
  height: 22%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.ag-ice-scene {
  width: 100%;
  height: 100%;
  perspective: 700px;
  display: grid;
  place-items: center;
}

.ag-ice-box {
  --s: 32px;
  --half: calc(var(--s) / 2);
  position: relative;
  width: var(--s);
  height: var(--s);
  transform-style: preserve-3d;
  transform: rotateX(-22deg) rotateY(-34deg);
}

.ag-ice-box--hero {
  --s: clamp(110px, 22vw, 148px);
  --half: calc(var(--s) / 2);
  animation: ag-ice-hero-float 5.2s ease-in-out infinite;
}

.ag-ice-face {
  position: absolute;
  inset: 0;
  width: var(--s);
  height: var(--s);
  border: 1px solid rgba(244, 251, 255, 0.42);
  border-radius: 3px;
  background:
    linear-gradient(145deg, rgba(244, 251, 255, 0.34), rgba(180, 220, 245, 0.1) 48%, rgba(90, 150, 185, 0.16)),
    linear-gradient(35deg, transparent 42%, rgba(255, 255, 255, 0.28) 49%, transparent 57%);
  box-shadow:
    inset 0 0 18px rgba(244, 251, 255, 0.2),
    inset 0 -12px 20px rgba(70, 130, 170, 0.12);
  backface-visibility: hidden;
}

.ag-ice-face--front  { transform: translateZ(var(--half)); }
.ag-ice-face--back   { transform: rotateY(180deg) translateZ(var(--half)); background: linear-gradient(160deg, rgba(160, 200, 230, 0.22), rgba(70, 120, 160, 0.18)); }
.ag-ice-face--right  { transform: rotateY(90deg) translateZ(var(--half)); background: linear-gradient(210deg, rgba(190, 225, 245, 0.3), rgba(90, 145, 180, 0.2)); }
.ag-ice-face--left   { transform: rotateY(-90deg) translateZ(var(--half)); background: linear-gradient(150deg, rgba(210, 235, 250, 0.26), rgba(100, 155, 185, 0.16)); }
.ag-ice-face--top    { transform: rotateX(90deg) translateZ(var(--half)); background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(200, 230, 245, 0.18)); border-color: rgba(255, 255, 255, 0.5); }
.ag-ice-face--bottom { transform: rotateX(-90deg) translateZ(var(--half)); background: linear-gradient(0deg, rgba(80, 130, 170, 0.28), rgba(140, 190, 220, 0.12)); }

.ag-ice-sheen {
  position: absolute;
  inset: 12% 18% 40% 12%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.45), transparent 55%);
  border-radius: 2px;
  pointer-events: none;
}

.ag-ice-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 32% 38%, rgba(255, 255, 255, 0.75) 0 3px, transparent 4px),
    radial-gradient(circle at 62% 52%, rgba(255, 255, 255, 0.45) 0 2px, transparent 3px),
    radial-gradient(circle at 44% 68%, rgba(255, 255, 255, 0.35) 0 2.5px, transparent 3.5px);
}

.ag-ice-hero-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateZ(calc(var(--half) + 1px));
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.5vw, 3.25rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: #F4FBFF;
  text-shadow:
    0 0 20px rgba(226, 244, 255, 0.55),
    0 2px 0 rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.ag-ice-hero-pct small {
  font-size: 0.4em;
  font-weight: 500;
  margin-left: 0.08em;
  margin-top: 0.3em;
  opacity: 0.85;
  align-self: flex-start;
}

.ag-ice-tray {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(0.55rem, 1.6vw, 0.85rem);
  padding: 1.15rem 1.15rem 1rem;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(226, 244, 255, 0.04), rgba(226, 244, 255, 0.015));
  border: 1px solid rgba(226, 244, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 40px rgba(0, 0, 0, 0.35);
  perspective: 500px;
}

.ag-ice-cube {
  --form: 0;
  --s: clamp(26px, 4.8vw, 38px);
  position: relative;
  width: var(--s);
  height: var(--s);
  flex: 0 0 auto;
  opacity: 0.38;
  filter: saturate(0.65);
  transition: opacity 0.45s var(--ease), filter 0.45s var(--ease);
}

.ag-ice-cube .ag-ice-scene {
  width: 100%;
  height: 100%;
  perspective: 420px;
}

.ag-ice-cube .ag-ice-box {
  --s: inherit;
  --half: calc(var(--s) / 2);
  width: var(--s);
  height: var(--s);
  transition: transform 0.55s var(--ease);
}

.ag-ice-cube .ag-ice-face {
  border-radius: 2px;
  border-color: rgba(244, 251, 255, 0.28);
  background: linear-gradient(150deg, rgba(244, 251, 255, 0.1), rgba(226, 244, 255, 0.03));
  box-shadow: inset 0 0 8px rgba(244, 251, 255, 0.08);
}

.ag-ice-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0%;
  background:
    linear-gradient(180deg, rgba(244, 251, 255, 0.65), rgba(142, 200, 232, 0.4) 55%, rgba(100, 170, 205, 0.45));
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.35);
  transition: height 0.35s var(--ease);
  pointer-events: none;
}

.ag-ice-cube.is-forming {
  opacity: 0.88;
  filter: saturate(1);
}

.ag-ice-cube.is-forming .ag-ice-fill {
  height: calc(var(--form) * 100%);
}

.ag-ice-cube.is-solid {
  opacity: 1;
  filter: saturate(1.2) drop-shadow(0 6px 14px rgba(226, 244, 255, 0.28));
}

.ag-ice-cube.is-solid .ag-ice-box {
  transform: rotateX(-22deg) rotateY(-34deg) translateY(-5px);
}

.ag-ice-cube.is-solid .ag-ice-fill {
  height: 100%;
}

.ag-ice-cube.is-solid .ag-ice-face {
  border-color: rgba(244, 251, 255, 0.5);
  background:
    linear-gradient(145deg, rgba(244, 251, 255, 0.4), rgba(180, 220, 245, 0.14) 48%, rgba(100, 165, 200, 0.2)),
    linear-gradient(35deg, transparent 42%, rgba(255, 255, 255, 0.22) 49%, transparent 57%);
  box-shadow: inset 0 0 12px rgba(244, 251, 255, 0.28);
}

.ag-ice-cube.is-solid .ag-ice-face--top {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(200, 230, 245, 0.2));
}

@keyframes ag-ice-hero-float {
  0%, 100% { transform: rotateX(-22deg) rotateY(-34deg) translateY(0); }
  50% { transform: rotateX(-18deg) rotateY(-28deg) translateY(-10px); }
}

@keyframes ag-ice-caustic {
  0%, 100% { transform: translate(-50%, -20%) scale(1); }
  50% { transform: translate(-48%, -18%) scale(1.06); }
}

@media (max-width: 520px) {
  .ag-ice-tray { gap: 0.4rem; padding: 0.85rem 0.8rem 0.75rem; }
  .ag-ice-cube { --s: 24px; width: var(--s); height: var(--s); }
}

@media (prefers-reduced-motion: reduce) {
  .ag-ice-box--hero,
  .ag-loader-caustic {
    animation: none !important;
  }
  .ag-loader.is-done { transition-duration: 0.2s; filter: none; }
}

body.agency-onepager .darkmode,
body.agency-onepager .site-header.customizer_header,
body.agency-onepager .footer-section,
body.agency-onepager #preloader {
  display: none !important;
}

#consult-form,
#contact { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .ag-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .ag-hero-grid,
  .ag-about-grid,
  .ag-tip-grid,
  .ag-services-head,
  .ag-contact-wrap,
  .ag-edu-grid,
  .ag-footer-grid {
    grid-template-columns: 1fr;
  }

  .ag-tip-banner {
    min-height: auto;
    padding: 1.25rem 1.35rem;
  }

  .ag-tip-banner-copy {
    max-width: none;
  }

  /* Banner on its own row; tip choices stay as a second row */
  .ag-tip-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ag-offer { position: static; }
  .ag-process-grid,
  .ag-why-grid,
  .ag-portfolio-grid,
  .ag-skills-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ag-hero { min-height: auto; padding-bottom: 3.5rem; }
  .ag-hero h1 { max-width: none; }
  .ag-scroll { display: none; }
}

@media (max-width: 820px) {
  :root { --header-h: 70px; }

  .ag-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem var(--gutter) 1.5rem;
    background: rgba(11, 11, 11, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
  }

  .ag-nav.is-open { display: flex; }
  .ag-menu-toggle { display: inline-grid; place-items: center; }

  .ag-header-inner .ag-btn-outline {
    padding: 0.75rem 1rem;
    font-size: 0.68rem;
  }

  .ag-timeline-item {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .ag-process-grid,
  .ag-why-grid,
  .ag-portfolio-grid,
  .ag-skills-grid,
  .ag-service-grid {
    grid-template-columns: 1fr;
  }

  .ag-service-card { min-height: 0; }
  .ag-cert-list li { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
  .ag-cursor-glow { display: none; }

  /* Stack hero CTAs; keep View Services centered under Start a Project */
  .ag-hero .ag-hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: center;
  }

  .ag-hero .ag-hero-actions .ag-btn-solid {
    width: 100%;
  }

  .ag-hero .ag-hero-actions .ag-btn-ghost {
    width: auto;
    align-self: center;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .ag-hero-actions { width: 100%; }
  .ag-btn-solid,
  .ag-btn-outline { width: 100%; }
  .ag-btn-ghost { width: auto; align-self: center; text-align: center; }
  .ag-stats { gap: 0.6rem; }
  .ag-stat { padding: 0.8rem; }
  .ag-footer-bottom { flex-direction: column; gap: 0.4rem; }

  .ag-tip-card {
    padding: 0.9rem 0.45rem 0.95rem;
  }

  .ag-tip-visual {
    width: 3.85rem;
  }

  .ag-tip-price {
    font-size: 1.15rem;
  }

  .ag-tip-blurb {
    display: none;
  }

  .ag-tip-btn {
    font-size: 0.6rem;
    padding: 0.65rem 0.35rem;
  }

  .ag-tip-badge {
    top: 0.4rem;
    right: 0.35rem;
    font-size: 0.5rem;
    padding: 0.22rem 0.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  /* Portfolio marquees stay in motion (user-requested continuous scroll) */
  .ag-folio-marquee--right .ag-folio-track {
    animation: agFolioMarqueeRight 75s linear infinite !important;
  }
  .ag-folio-marquee--left .ag-folio-track {
    animation: agFolioMarqueeLeft 75s linear infinite !important;
  }
  .ag-folio-logo-track {
    animation: agMarquee 48s linear infinite !important;
  }
  .ag-folio-logo-rail:hover .ag-folio-logo-track {
    animation-play-state: paused !important;
  }
  .ag-folio-logo-pill::after {
    animation: none !important;
    inset: 0;
    transform: none;
    opacity: 0.55;
    background: linear-gradient(165deg, rgba(244, 251, 255, 0.5), transparent 55%);
  }
  .ag-folio-marquee:hover .ag-folio-track,
  .ag-folio-marquee:focus-within .ag-folio-track {
    animation-play-state: paused !important;
  }
  .ag-folio-marquee .ag-folio-card.is-glinting {
    animation: agFolioGlintRim 1.15s ease both !important;
  }
  .ag-folio-marquee .ag-folio-card.is-glinting::after {
    animation: agFolioGlintSweep 1.15s cubic-bezier(0.22, 1, 0.36, 1) both !important;
  }

  .ag-reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .ag-cursor-glow,
  .ag-progress { display: none !important; }
}

/* ---------- Legal pages (Privacy / Terms) ---------- */
.ag-legal {
  min-height: 100vh;
  padding-bottom: 3rem;
}

.ag-legal-shell {
  padding-top: calc(var(--header-h) + 2.25rem);
  padding-bottom: 3rem;
}

.ag-legal-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.ag-legal-crumb a { color: var(--text-muted); }
.ag-legal-crumb a:hover { color: var(--flame); }

.ag-legal-hero h1 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--cream);
  margin: 0 0 0.55rem;
  letter-spacing: -0.02em;
}

.ag-legal-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 2.4rem;
}

.ag-legal-layout {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 2.5rem 3rem;
  align-items: start;
}

.ag-legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.ag-legal-toc-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.85rem;
}

.ag-legal-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.ag-legal-toc a {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.ag-legal-toc a:hover { color: var(--flame); }

.ag-legal-body {
  max-width: 46rem;
}

.ag-legal-body > p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 0 0 1.75rem;
}

.ag-legal-body section {
  margin-bottom: 2.1rem;
  scroll-margin-top: calc(var(--header-h) + 1.25rem);
}

.ag-legal-body h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--cream);
  margin: 0 0 0.7rem;
  letter-spacing: -0.01em;
}

.ag-legal-body section p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
  margin: 0 0 0.85rem;
}

.ag-legal-body a {
  color: var(--flame);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.ag-footer-bottom--legal {
  border-top: 1px solid var(--line);
  margin-top: 1rem;
  padding-top: 1.25rem;
}

@media (max-width: 900px) {
  .ag-legal-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .ag-legal-toc { position: static; }
}

/* ---------- Sticky mobile / tablet ice bnav ---------- */
:root {
  --bnav-h: 4.55rem;
}

.ag-bnav {
  display: none;
}

@media (max-width: 820px) {
  body.agency-onepager {
    padding-bottom: calc(var(--bnav-h) + env(safe-area-inset-bottom, 0px) + 0.35rem);
  }

  .ag-bnav {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    padding: 0.45rem 0.65rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
  }

  .ag-bnav-shell {
    pointer-events: auto;
    display: grid;
    grid-template-columns: 1fr 1.12fr 1fr;
    gap: 0.35rem;
    align-items: stretch;
    max-width: 34rem;
    margin: 0 auto;
    padding: 0.38rem;
    border-radius: 1.35rem;
    border: 1px solid rgba(226, 244, 255, 0.28);
    background:
      linear-gradient(180deg, rgba(244, 251, 255, 0.14), rgba(18, 24, 32, 0.72) 42%, rgba(8, 10, 14, 0.88)),
      rgba(10, 14, 18, 0.72);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.04) inset,
      0 -1px 0 rgba(226, 244, 255, 0.18) inset,
      0 18px 40px rgba(0, 0, 0, 0.45),
      0 0 28px rgba(226, 244, 255, 0.12);
    backdrop-filter: blur(18px) saturate(1.25);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
  }

  .ag-bnav-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(125deg, rgba(244, 251, 255, 0.22), transparent 38%, transparent 62%, rgba(226, 244, 255, 0.08));
    opacity: 0.7;
  }

  .ag-bnav-shell {
    position: relative;
    overflow: hidden;
  }

  /* Beat body.agency-onepager a { color: inherit } so contrast always wins */
  body.agency-onepager a.ag-bnav-item {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.22rem;
    min-height: 3.55rem;
    padding: 0.45rem 0.35rem 0.5rem;
    border-radius: 1.05rem;
    color: #f4f7fa;
    text-decoration: none;
    transition: transform 0.25s var(--ease), background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  }

  body.agency-onepager a.ag-bnav-item:active {
    transform: scale(0.97);
  }

  body.agency-onepager a.ag-bnav-item .ag-bnav-ico {
    width: 1.35rem;
    height: 1.35rem;
    display: grid;
    place-items: center;
    color: #e8f6ff;
    filter: drop-shadow(0 0 8px rgba(226, 244, 255, 0.35));
  }

  body.agency-onepager a.ag-bnav-item .ag-bnav-ico svg {
    width: 100%;
    height: 100%;
  }

  body.agency-onepager a.ag-bnav-item .ag-bnav-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.1;
    white-space: nowrap;
    color: inherit;
  }

  /* Side actions: light on dark — default + hover/focus */
  body.agency-onepager a.ag-bnav-item:not(.ag-bnav-item--primary):hover,
  body.agency-onepager a.ag-bnav-item:not(.ag-bnav-item--primary):focus-visible {
    background: rgba(226, 244, 255, 0.12);
    color: #ffffff;
  }

  body.agency-onepager a.ag-bnav-item:not(.ag-bnav-item--primary):hover .ag-bnav-ico,
  body.agency-onepager a.ag-bnav-item:not(.ag-bnav-item--primary):focus-visible .ag-bnav-ico {
    color: #ffffff;
  }

  /* Primary Get Quote: dark ink on ice — default + hover/focus */
  body.agency-onepager a.ag-bnav-item--primary {
    color: #071018;
    background: linear-gradient(160deg, #f7fcff, #d7eefc 55%, #b6d8ee);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.45) inset,
      0 10px 22px rgba(226, 244, 255, 0.28);
  }

  body.agency-onepager a.ag-bnav-item--primary .ag-bnav-ico,
  body.agency-onepager a.ag-bnav-item--primary .ag-bnav-label {
    color: #071018;
    filter: none;
  }

  body.agency-onepager a.ag-bnav-item--primary:hover,
  body.agency-onepager a.ag-bnav-item--primary:focus-visible {
    color: #05080c;
    background: linear-gradient(160deg, #ffffff, #e8f5ff 50%, #c5e2f4);
  }

  body.agency-onepager a.ag-bnav-item--primary:hover .ag-bnav-ico,
  body.agency-onepager a.ag-bnav-item--primary:hover .ag-bnav-label,
  body.agency-onepager a.ag-bnav-item--primary:focus-visible .ag-bnav-ico,
  body.agency-onepager a.ag-bnav-item--primary:focus-visible .ag-bnav-label {
    color: #05080c;
  }
}

@media (max-width: 380px) {
  .ag-bnav-label { font-size: 0.56rem; letter-spacing: 0.04em; }
  .ag-bnav-item { min-height: 3.35rem; padding-inline: 0.2rem; }
}
