/* Additions on top of the compiled Astro CSS (the Astro source is lost, so
   anything new lives here). Linked into every page by tools/agent-ready.mjs. */

/* ---- Floating background blobs ------------------------------------------
   Colour orbs that roam the section, run into each other, blend where they
   overlap and part again. The individual translate/scale properties are
   animated so the orbs keep their Tailwind transform (the centred one uses
   translate(-50%, -50%)). Colours and blur are set here, stronger than the
   Tailwind originals, so the movement can actually be seen. */
.ifc-blob {
  filter: blur(72px);
  opacity: 0.9;
  mix-blend-mode: screen;
  will-change: translate, scale;
  animation: ifc-drift-a 19s ease-in-out infinite;
}
.ifc-blob-1 { background-color: #0f67b1a6; }
.ifc-blob-2 { background-color: #22d3ee66; animation-name: ifc-drift-b; animation-duration: 23s; }
.ifc-blob-3 { background-color: #6d4bf05c; animation-name: ifc-drift-c; animation-duration: 17s; }

/* Two extra orbs on the homepage hero. */
.ifc-blob-4,
.ifc-blob-5 {
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
}
.ifc-blob-4 {
  top: 6%;
  left: 60%;
  width: 18rem;
  height: 18rem;
  background-color: #22d3ee80;
  animation-name: ifc-drift-d;
  animation-duration: 27s;
}
.ifc-blob-5 {
  bottom: 4%;
  left: 14%;
  width: 20rem;
  height: 20rem;
  background-color: #2f6df099;
  animation-name: ifc-drift-e;
  animation-duration: 21s;
}

/* On a white page "screen" would wash the colours out. */
[data-theme=light] .ifc-blob {
  mix-blend-mode: multiply;
  opacity: 0.55;
}

/* Phones: smaller, sharper orbs, or they smear into one even wash. */
@media (max-width: 640px) {
  .ifc-blob {
    filter: blur(48px);
    width: 14rem;
    height: 14rem;
  }
}

@keyframes ifc-drift-a {
  0%, 100% { translate: 0 0; scale: 1; }
  25% { translate: 34vw 14vh; scale: 1.35; }
  50% { translate: 58vw -8vh; scale: 0.8; }
  75% { translate: 22vw -20vh; scale: 1.2; }
}
@keyframes ifc-drift-b {
  0%, 100% { translate: 0 0; scale: 1; }
  20% { translate: -30vw -18vh; scale: 1.3; }
  55% { translate: -56vw 10vh; scale: 0.75; }
  80% { translate: -18vw 18vh; scale: 1.15; }
}
@keyframes ifc-drift-c {
  0%, 100% { translate: 0 0; scale: 1; }
  30% { translate: -24vw 16vh; scale: 0.6; }
  60% { translate: 26vw -14vh; scale: 1.25; }
  85% { translate: 10vw 20vh; scale: 0.85; }
}
@keyframes ifc-drift-d {
  0%, 100% { translate: 0 0; scale: 1; }
  30% { translate: -42vw 26vh; scale: 1.4; }
  65% { translate: -12vw 46vh; scale: 0.8; }
}
@keyframes ifc-drift-e {
  0%, 100% { translate: 0 0; scale: 1; }
  35% { translate: 38vw -30vh; scale: 0.75; }
  70% { translate: 62vw -6vh; scale: 1.35; }
}

@media (prefers-reduced-motion: reduce) {
  .ifc-blob { animation: none; }
}

/* ---- Readability and tap targets ---------------------------------------- */
/* Nothing smaller than 12px. */
.text-\[10px\],
.text-\[11px\] {
  font-size: 0.75rem;
  line-height: 1rem;
}

/* Footer links: at least 24px tall to tap. */
footer ul a {
  display: inline-block;
  padding: 0.25rem 0;
}
footer .gap-5 > a {
  display: inline-block;
  padding: 0.5rem 0.125rem;
}

/* Standalone arrow links ("Full services breakdown" and the like): the same
   look, with a taller area to tap. */
main a.inline-flex.text-sm {
  padding: 0.375rem 0;
}
#main-nav a:not([class*="px-"]) {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
}
