/* Phone & tablet menu */
.bfd-menu-toggle { display: none; }
@media (max-width: 1024px) {
  .bfd-menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 11px; margin-left: 4px; flex: 0 0 auto;
    border-radius: 999px; border: 1px solid rgba(255,255,255,0.26); background: rgba(255,255,255,0.07);
    cursor: pointer;
  }
  .bfd-menu-toggle span { display: block; height: 2px; border-radius: 2px; background: #FFFFFF; transition: transform 0.25s ease, opacity 0.2s ease; }
  .bfd-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .bfd-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .bfd-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
.bfd-menu-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  max-height: calc(100vh - 76px); overflow-y: auto;
  padding: 20px 16px 28px;
  background: #100F3D; /* solid: the header already blurs, so a nested blur can't, and see-through text bled in */
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.8);
}
.bfd-menu-panel[hidden] { display: none; }
.bfd-menu-panel ul { list-style: none; margin: 0 0 20px; padding: 0; }
.bfd-menu-panel li a {
  display: block; padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,0.08);
  font-family: "DM Sans", sans-serif; font-size: 20px; font-weight: 600; color: #FFFFFF; text-decoration: none;
}
.bfd-menu-panel li a[aria-current="page"], .bfd-menu-panel li a:hover { color: #4EE4FF; }
.bfd-menu-actions { display: flex; flex-direction: column; gap: 12px; }
.bfd-menu-actions a {
  display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 22px;
  border-radius: 999px; font-family: Inter, sans-serif; font-size: 15.5px; font-weight: 600; text-decoration: none; color: #FFFFFF;
}
.bfd-menu-cta { background: linear-gradient(135deg, #5A00EC 0%, #3230C1 100%); box-shadow: 0 18px 50px -18px rgba(90,0,236,0.75); }
.bfd-menu-call { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.26); }
html.bfd-menu-open { overflow: hidden; }

/* Slots: the sticky header takes its own space, so static offsets for a fixed header are dropped */
.bfd-legacy { --header-h: 0px; width: 100%; }
.bfd-slot--form, .bfd-slot--voice { display: block; }
.bfd-slot--form iframe { display: block; }

/* Reveal on scroll */
.bfd-reveal { transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) var(--bfd-reveal-delay, 0s), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) var(--bfd-reveal-delay, 0s) !important; }
.bfd-reveal:not(.is-visible) { opacity: 0; transform: translateY(28px) !important; }

/* Pointer spotlight on glass cards */
.bfd-card { position: relative; overflow: hidden; }
.bfd-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(78, 228, 255, 0.13), transparent 45%);
  opacity: 0; transition: opacity 0.35s ease;
}
.bfd-card:hover::before { opacity: 1; }

/* Shimmer sweep on primary buttons */
.bfd-btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.bfd-btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.28) 45%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.7s ease;
}
.bfd-btn-primary:hover::after { transform: translateX(120%); }

/* Testimonial slider */
.bfd-slider-track {
  flex-wrap: nowrap !important; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 8px 2px 24px !important; scrollbar-width: none;
}
.bfd-slider-track::-webkit-scrollbar { display: none; }
.bfd-slider-track > .bfd-testimonial { flex: 0 0 min(440px, 86%) !important; min-width: 0 !important; scroll-snap-align: start; }
.bfd-slider-controls { display: flex; justify-content: flex-end; gap: 10px; width: 100%; margin-top: 8px; }
.bfd-slider-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; padding: 0 0 3px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,0.26); background: rgba(255,255,255,0.07);
  color: #FFFFFF; font-size: 26px; line-height: 1; cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.bfd-slider-btn:hover { background: rgba(255,255,255,0.11); border-color: #4EE4FF; }
.bfd-slider-btn[disabled] { opacity: 0.35; cursor: default; }

/* Glow CTA (service pages): call + email line under the button */
.e-paragraph-base.bfd-cta-contact a:not(.e-paragraph-link-base) { color: #E4E4FF; text-decoration: none; transition: color 0.2s ease; }
.e-paragraph-base.bfd-cta-contact a:not(.e-paragraph-link-base):hover { color: #4EE4FF; }
.bfd-cta-glow .bfd-btn-primary { box-shadow: 0 22px 60px -18px rgba(110, 40, 255, 0.95), 0 1px 0 0 rgba(255, 255, 255, 0.25) inset; }

/* Review cards (Home "Client love"): stars + soft quote mark, divider over the reviewer, clamp long reviews */
/* Elementor uses .e-con::before for background overlays (absolute, full size), so reset that first */
.e-con.bfd-review-card::before {
  content: "\2605\2605\2605\2605\2605"; position: static; inset: auto; width: auto; height: auto;
  background: none; opacity: 1; mix-blend-mode: normal; border-radius: 0; transition: none;
  display: block; font-size: 15px; letter-spacing: 3px; line-height: 1;
  color: #FFC857; text-shadow: 0 0 14px rgba(255, 200, 87, 0.35);
}
.e-con.bfd-review-card::after {
  content: "\201C"; position: absolute; top: 6px; right: 22px; left: auto; width: auto; height: auto; pointer-events: none;
  font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 120px; line-height: 1;
  background: linear-gradient(135deg, #4EE4FF 0%, #A58BFF 50%, #FF05FF 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; opacity: 0.28;
}
.bfd-review-meta { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.bfd-review-name strong { display: block; color: #FFFFFF; font-size: 15px; font-weight: 600; }
.bfd-review-name br { display: none; }
.bfd-review-text.is-clamped {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden;
}
.bfd-review-more {
  align-self: flex-start; margin-top: -6px; padding: 0; border: 0; background: none; cursor: pointer;
  color: #4EE4FF; font: 600 14px/1.4 Inter, sans-serif;
}
.bfd-review-more:hover { color: #FFFFFF; }
.bfd-review-card .bfd-small a { font-weight: 600; }

/* Trust marquee */
.bfd-marquee {
  flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.bfd-trust-track { flex-wrap: nowrap !important; width: max-content !important; gap: 14px !important; }
.bfd-trust-track.is-animated { animation: bfd-marquee var(--marquee-duration, 40s) linear infinite; }
.bfd-marquee:hover .bfd-trust-track { animation-play-state: paused; }
@keyframes bfd-marquee { to { transform: translateX(calc(-50% - 7px)); } }
.bfd-marquee { scrollbar-width: none; }
.bfd-marquee::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: reduce) { .bfd-trust-track.is-animated { animation: none; } .bfd-marquee { overflow-x: auto; } }

/* Showpiece slots must not become their own scroll boxes, or the sticky scroll scenes can't pin.
   (The static body rule overflow-x:hidden was scoped onto .bfd-legacy; clip trims glows without that.) */
.bfd-legacy { overflow: visible !important; overflow-x: clip !important; }
.bfd-legacy.bfd-slot--journey { --header-h: 76px; }
.bfd-legacy.bfd-slot--work .work-showcase--pinned .work-pin { padding-top: calc(76px + 12px); }
.bfd-legacy.bfd-slot--work-home .work-showcase--pinned .work-pin { padding-top: calc(76px + 12px); }
/* Work card placeholder: the client logo on a brand gradient until a 1200x750 screenshot is uploaded */
.bfd-legacy .work-card-image.work-card-image--logo {
  object-fit: contain; object-position: 50% 50%; padding: 11% 20%;
  background: radial-gradient(120% 100% at 50% 0%, rgba(90,0,236,0.55) 0%, rgba(50,48,193,0.22) 45%, #100F3D 100%);
}

/* Header nav: small caps like the "DIGITAL" logo label, CTA purple on hover */
header nav { gap: 2px !important; }
header nav p.e-paragraph-base { font-family: "DM Sans", Inter, sans-serif !important; font-size: 13.5px !important; font-weight: 400 !important; letter-spacing: 0.08em; text-transform: uppercase; color: #9A9CD0 !important; }
header nav p.e-paragraph-base > a.e-paragraph-link-base {
  display: inline-flex; align-items: center; padding: 9px 15px; border-radius: 999px; color: #9A9CD0;
  transition: color 0.2s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}
header nav p.e-paragraph-base > a.e-paragraph-link-base.is-current { color: #FFFFFF; }
header nav p.e-paragraph-base > a.e-paragraph-link-base:hover,
header nav p.e-paragraph-base > a.e-paragraph-link-base:focus-visible,
header nav p.e-paragraph-base > a.e-paragraph-link-base.bfd-nav-active {
  color: #FFFFFF;
  background-image: linear-gradient(135deg, #5A00EC 0%, #3230C1 100%);
  box-shadow: 0 10px 26px -12px rgba(90, 0, 236, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Services mega menu */
.bfd-mega-caret {
  display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin: 0 4px 0 -8px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: #9A9CD0; cursor: pointer; flex: 0 0 auto;
}
.bfd-mega-caret svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s ease; }
.bfd-mega-caret:hover, .bfd-mega-caret[aria-expanded="true"] { color: #FFFFFF; }
.bfd-mega-caret[aria-expanded="true"] svg { transform: rotate(180deg); }
/* Our Work: two links, so a narrower panel with the links stacked */
.bfd-mega--work { width: min(720px, calc(100vw - 32px)); }
.bfd-mega--work .bfd-mega-grid > li { flex-basis: 100%; }
.bfd-mega--work .bfd-mega-link { padding-top: 16px; padding-bottom: 16px; }
.bfd-mega {
  position: absolute; top: calc(100% + 8px); left: 50%; z-index: 101;
  width: min(1000px, calc(100vw - 32px));
  opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 10px);
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0.35s;
}
.bfd-mega::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.bfd-mega.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.bfd-mega-inner {
  display: flex; gap: 18px; padding: 18px; border-radius: 26px;
  background: radial-gradient(55% 90% at 100% 0%, rgba(90, 0, 236, 0.32), transparent 60%), radial-gradient(40% 60% at 0% 100%, rgba(78, 228, 255, 0.08), transparent 70%), #14134A;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.bfd-mega-services { flex: 1 1 auto; min-width: 0; }
.bfd-mega-label { margin: 6px 10px 12px; font: 600 11.5px/1.2 Inter, sans-serif; letter-spacing: 0.18em; text-transform: uppercase; color: #4EE4FF; }
.bfd-mega-grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.bfd-mega-grid > li { flex: 1 1 calc(50% - 3px); min-width: 0; }
.bfd-mega-link {
  display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 16px; text-decoration: none; color: #FFFFFF;
  border: 1px solid transparent; transition: background-color 0.2s ease, border-color 0.2s ease;
}
.bfd-mega-link:hover, .bfd-mega-link:focus-visible { background: rgba(255, 255, 255, 0.06); border-color: rgba(78, 228, 255, 0.35); color: #FFFFFF; }
.bfd-mega-link[aria-current="page"] { background: rgba(78, 228, 255, 0.07); }
.bfd-mega-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; flex: 0 0 auto; border-radius: 14px;
  background: linear-gradient(135deg, rgba(90, 0, 236, 0.5), rgba(78, 228, 255, 0.14)); border: 1px solid rgba(255, 255, 255, 0.14);
  color: #4EE4FF; box-shadow: 0 10px 24px -12px rgba(90, 0, 236, 0.9);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1.4), box-shadow 0.3s ease;
}
.bfd-mega-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.bfd-mega-link:hover .bfd-mega-icon, .bfd-mega-link:focus-visible .bfd-mega-icon { transform: translateY(-2px) rotate(-6deg); box-shadow: 0 12px 26px -10px rgba(78, 228, 255, 0.75); }
.bfd-mega-text { flex: 1 1 auto; min-width: 0; }
.bfd-mega-name { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font: 600 15.5px/1.3 "DM Sans", Inter, sans-serif; color: #FFFFFF; }
.bfd-mega-desc { display: block; margin-top: 3px; font: 400 13px/1.45 Inter, sans-serif; color: #9A9CD0; }
.bfd-mega-badge { padding: 3px 8px; border-radius: 999px; background: rgba(78, 228, 255, 0.12); border: 1px solid rgba(78, 228, 255, 0.4); color: #4EE4FF; font: 700 9.5px/1 Inter, sans-serif; letter-spacing: 0.12em; text-transform: uppercase; }
.bfd-mega-arrow { color: #4EE4FF; font-size: 18px; opacity: 0; transform: translateX(-6px); transition: opacity 0.2s ease, transform 0.25s ease; }
.bfd-mega-link:hover .bfd-mega-arrow, .bfd-mega-link:focus-visible .bfd-mega-arrow { opacity: 1; transform: none; }
.bfd-mega-feature {
  position: relative; overflow: hidden; flex: 0 0 260px; display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 20px;
  background: linear-gradient(160deg, rgba(90, 0, 236, 0.6) 0%, rgba(50, 48, 193, 0.4) 55%, rgba(3, 32, 96, 0.55) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.bfd-mega-feature::after { content: ""; position: absolute; right: -50px; top: -50px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(78, 228, 255, 0.35), transparent 70%); pointer-events: none; }
.bfd-mega-feature .bfd-mega-label { margin: 0; color: #FFFFFF; opacity: 0.85; }
.bfd-mega-price { margin: 0; font: 700 42px/1 "DM Sans", Inter, sans-serif; letter-spacing: -0.03em; color: #FFFFFF; }
.bfd-mega-price span { font-size: 15px; font-weight: 400; letter-spacing: 0; color: #CACBEF; margin-left: 2px; }
.bfd-mega-headline { position: relative; z-index: 1; margin: 2px 0 0; font: 700 22px/1.22 "DM Sans", Inter, sans-serif; letter-spacing: -0.015em; color: #FFFFFF; }
.bfd-mega-includes { list-style: none; margin: 4px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bfd-mega-includes li { position: relative; padding-left: 24px; font: 500 14px/1.35 Inter, sans-serif; color: #FFFFFF; }
.bfd-mega-includes li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 11px; height: 6px; border-left: 2px solid #4EE4FF; border-bottom: 2px solid #4EE4FF; transform: rotate(-45deg); }
.bfd-mega-cta {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: auto; padding: 10px 18px;
  border-radius: 999px; background: #FFFFFF; color: #100F3D; font: 600 14px/1.2 Inter, sans-serif; text-align: center; text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bfd-mega-cta:hover { color: #100F3D; transform: translateY(-2px); box-shadow: 0 16px 34px -14px rgba(78, 228, 255, 0.7); }
.bfd-mega-all { position: relative; z-index: 1; font: 600 14px/1.2 Inter, sans-serif; color: #4EE4FF; text-align: center; text-decoration: none; }
.bfd-mega-all:hover { color: #FFFFFF; }
.bfd-mega .bfd-mega-item { opacity: 0; transform: translateY(8px); transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.bfd-mega.is-open .bfd-mega-item { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 35ms + 60ms); }
@media (max-width: 1024px) { .bfd-mega, .bfd-mega-caret { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .bfd-mega, .bfd-mega .bfd-mega-item { transition: none !important; } }

/* Phone widths: keep the trust strip and header inside the screen.
   (An unconstrained marquee made the page 2400px wide, so phones zoomed out.) */
.bfd-marquee { width: 100%; max-width: 100%; align-self: stretch; }
@media (max-width: 480px) {
  header .bfd-container { gap: 10px !important; }
  header .e-flexbox-base:has(> a.e-button-base) { gap: 8px !important; }
}
/* 375px phones: logo + Book a Call + menu button came out 4px too wide */
@media (max-width: 400px) { header .bfd-container { gap: 6px !important; } }

/* Phone menu: services listed under "Services" */
.bfd-menu-panel ul.bfd-menu-sub { margin: 0 0 8px; padding: 2px 0 6px 14px; border-left: 1px solid rgba(78, 228, 255, 0.25); }
.bfd-menu-panel ul.bfd-menu-sub li a { padding: 10px 4px; border-bottom: 0; font-family: Inter, sans-serif; font-size: 16px; font-weight: 500; color: #CACBEF; }

/* ---------- Service heroes rebuilt in Elementor ----------
   The section (.bfd-svc-hero) holds the editable text; the animated scene is a slot in its right column.
   showpiece-service-hero.js marks the section .is-ready (or .is-static for reduced motion). */
.bfd-svc-hero { isolation: isolate; }
.bfd-svc-hero::after { /* fine grid texture, as on the original page heroes */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(78, 228, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(78, 228, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 80% at 70% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(70% 80% at 70% 30%, #000 0%, transparent 75%);
}
/* the scene slot fills its column and may overflow it (3D tilt, glow); the section itself clips */
.bfd-svc-hero .bfd-legacy { width: 100%; background: none; overflow: visible !important; overflow-x: visible !important; }
.bfd-legacy .svc-hero.svc-hero--scene { padding: 0; }
/* Text entrance. Hidden only while waiting for the animation script, and only once the scene slot is on
   the page (so the Elementor editor always shows it); revealed anyway after 4s if the script never runs. */
.js .bfd-svc-hero:has(.svc-hero--scene):not(.is-ready):not(.is-static) .svc-hero-fade {
  opacity: 0; transform: translateY(16px);
  animation: bfd-hero-failsafe 0.6s ease 4s forwards;
}
@keyframes bfd-hero-failsafe { to { opacity: 1; transform: none; filter: none; } }
.bfd-svc-hero.is-ready .svc-hero-fade {
  opacity: 1; transform: none;
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--fade-delay, 0.4s);
}
.js .bfd-svc-hero .svc-word { display: inline-block; opacity: 0; transform: translateY(0.45em); filter: blur(8px); }
.js .bfd-svc-hero:not(.is-ready):not(.is-static) .svc-word { animation: bfd-hero-failsafe 0.6s ease 4s forwards; }
.bfd-svc-hero.is-ready .svc-word { animation: hero-word-in 1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; animation-delay: calc(var(--word-index, 0) * 75ms + 120ms); }
/* Every heading <span> gets the site gradient, and the headline's split words are spans too:
   plain words go back to white, only words inside the accent <span> keep the gradient. */
.bfd-svc-hero .svc-hero-headline .svc-word { background: none; color: inherit; -webkit-text-fill-color: currentColor; }
.bfd-svc-hero .svc-hero-headline span:not(.svc-word) .svc-word {
  background: linear-gradient(92deg, #4EE4FF 0%, #A58BFF 48%, #FF05FF 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.bfd-svc-hero.is-ready .svc-hero-headline span:not(.svc-word) .svc-word { animation-name: hero-word-in-accent; }
.bfd-svc-hero .svc-hero-headline span:has(.svc-word) { background: none; }
.bfd-svc-hero.is-static .svc-word, .bfd-svc-hero.is-static .svc-hero-fade { opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; }
/* Breadcrumbs: links in soft lavender, <sub> marks the dimmed "/" separators */
.bfd-svc-hero .bfd-breadcrumbs a:not(.e-paragraph-link-base) { color: #CACBEF; }
.bfd-svc-hero .bfd-breadcrumbs a:not(.e-paragraph-link-base):hover { color: #FFFFFF; }
.bfd-svc-hero .bfd-breadcrumbs sub { margin: 0 8px; font-size: inherit; color: inherit; opacity: 0.5; }

/* ---------- Website Portfolio + SEO Case Studies (Our Work pages) ----------
   Each project is an Elementor accordion item (details/summary) carrying bfd-portfolio-* global classes;
   layout and type live in those classes, the open/closed states and decorations live here. */
details.bfd-portfolio-item, details.bfd-portfolio-item[open] {
  background: transparent !important; border: 0 !important; border-top: 1px solid rgba(233, 233, 242, 0.14) !important; border-radius: 0 !important;
}
.bfd-portfolio-header { cursor: pointer; }
.bfd-portfolio-header .e-accordion-item-title-base { flex: 1 1 auto; min-width: 0; }
.bfd-portfolio-name { transition: color 0.2s ease; }
.bfd-portfolio-header:hover .bfd-portfolio-name { color: #4EE4FF; }
.e-con.bfd-portfolio-icon {
  width: 44px !important; height: 44px !important; flex: 0 0 44px !important; justify-content: center !important;
  border-radius: 50%; border: 1px solid rgba(165, 139, 255, 0.6); color: #FFFFFF;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.e-con.bfd-portfolio-icon::before {
  content: "+"; position: static; inset: auto; width: auto; height: auto; background: none; opacity: 1;
  font: 400 24px/1 Inter, sans-serif; color: #FFFFFF;
}
.bfd-portfolio-header:hover .e-con.bfd-portfolio-icon { border-color: #4EE4FF; }
details[open] > .bfd-portfolio-header .e-con.bfd-portfolio-icon {
  background: linear-gradient(135deg, #5A00EC 0%, #3230C1 100%); border-color: transparent;
  box-shadow: 0 10px 26px -12px rgba(90, 0, 236, 0.95);
}
details[open] > .bfd-portfolio-header .e-con.bfd-portfolio-icon::before { content: "\2212"; }
details[open] > .bfd-portfolio-body { animation: bfd-portfolio-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes bfd-portfolio-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.bfd-portfolio-visit a { color: #FFFFFF; text-decoration: none; padding-bottom: 6px; border-bottom: 1px solid #A58BFF; transition: color 0.2s ease, border-color 0.2s ease; }
.bfd-portfolio-visit a:hover, .bfd-portfolio-visit a:focus-visible { color: #4EE4FF; border-color: #4EE4FF; }
/* browser frame: three dots before the address pill */
.e-con.bfd-portfolio-bar::before {
  content: ""; position: static; inset: auto; flex: 0 0 9px; width: 9px; height: 9px; border-radius: 50%; opacity: 1;
  background: rgba(233, 233, 242, 0.3); box-shadow: 15px 0 0 rgba(233, 233, 242, 0.3), 30px 0 0 rgba(233, 233, 242, 0.3); margin-right: 32px;
}
img.bfd-portfolio-desktop { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
img.bfd-portfolio-phone { aspect-ratio: 420 / 756; object-fit: cover; object-position: top; }
/* case-study placeholders: a dashed "drop your screenshot here" frame until the real images exist */
.e-con.bfd-portfolio-placeholder { aspect-ratio: 16 / 10; }
.e-con.bfd-portfolio-placeholder::before {
  content: ""; position: absolute; inset: 14px; width: auto; height: auto; opacity: 1; border-radius: 12px;
  border: 1.5px dashed rgba(165, 139, 255, 0.45); background: none;
}
/* a list typed into a portfolio paragraph: the browser moves the <ul> out of the <p>, so style it from the copy column */
.bfd-portfolio-text strong { color: #FFFFFF; font-weight: 600; }
.bfd-portfolio-copy > ul { margin: -10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font: 400 16px/1.6 Inter, sans-serif; color: #CACBEF; }
.bfd-portfolio-copy > ul li { position: relative; padding-left: 28px; }
.bfd-portfolio-copy > ul li::before { content: ""; position: absolute; left: 3px; top: 0.5em; width: 11px; height: 6px; border-left: 2px solid #4EE4FF; border-bottom: 2px solid #4EE4FF; transform: rotate(-45deg); }
.bfd-portfolio-copy > ul li strong { color: #FFFFFF; font-weight: 600; }
.bfd-portfolio-copy > p:empty { display: none; }
@media (prefers-reduced-motion: reduce) { details[open] > .bfd-portfolio-body { animation: none; } }

/* ---------- Footer (bfd-footer-* global classes, built by tools/templates/build_footer.py) ----------
   Layout and type live in the global classes; the decorations Elementor can't express live here. */
.e-con.bfd-footer::before { /* gradient hairline along the top edge */
  content: ""; position: absolute; inset: 0 0 auto 0; width: auto; height: 1px; opacity: 1; z-index: 2;
  background: linear-gradient(90deg, rgba(78, 228, 255, 0) 0%, #4EE4FF 22%, #A58BFF 50%, #FF05FF 78%, rgba(255, 5, 255, 0) 100%);
}
.e-con.bfd-footer::after { /* faint grid that fades out from the top */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(78, 228, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(78, 228, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 55% at 50% 0%, #000 0%, transparent 80%);
  mask-image: radial-gradient(70% 55% at 50% 0%, #000 0%, transparent 80%);
}
.bfd-footer > * { position: relative; z-index: 1; }
.bfd-footer p.bfd-footer-social a {
  display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 999px; color: #FFFFFF; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.bfd-footer p.bfd-footer-social a:hover, .bfd-footer p.bfd-footer-social a:focus-visible {
  color: #FFFFFF; border-color: rgba(78, 228, 255, 0.6); background: rgba(78, 228, 255, 0.08); transform: translateY(-2px);
}
/* contact cards: arrow slides in on hover */
.e-con.bfd-footer-card::after {
  content: "\2192"; position: static; margin-left: auto; flex: 0 0 auto; color: #4EE4FF; font: 600 18px/1 Inter, sans-serif;
  opacity: 0.45; transform: translateX(-6px); transition: opacity 0.25s ease, transform 0.3s ease;
}
.e-con.bfd-footer-card:hover::after, .e-con.bfd-footer-card:focus-visible::after { opacity: 1; transform: none; }
.bfd-footer-card:focus-visible { outline: 2px solid #4EE4FF; outline-offset: 3px; }
/* link lists: a gradient line grows in front of the hovered (or current) link */
.bfd-footer p.bfd-footer-link a { display: inline-flex; align-items: center; color: #CACBEF; text-decoration: none; transition: color 0.2s ease; }
.bfd-footer p.bfd-footer-link a::before {
  content: ""; display: inline-block; flex: 0 0 auto; width: 0; height: 1.5px; margin-right: 0; border-radius: 2px;
  background: linear-gradient(90deg, #4EE4FF, #A58BFF); transition: width 0.25s ease, margin-right 0.25s ease;
}
.bfd-footer p.bfd-footer-link a:hover, .bfd-footer p.bfd-footer-link a:focus-visible, .bfd-footer p.bfd-footer-link a[aria-current="page"] { color: #FFFFFF; }
.bfd-footer p.bfd-footer-link a:hover::before, .bfd-footer p.bfd-footer-link a:focus-visible::before, .bfd-footer p.bfd-footer-link a[aria-current="page"]::before { width: 14px; margin-right: 10px; }
.bfd-footer p.bfd-footer-place strong { color: #FFFFFF; font-weight: 600; }
.bfd-footer p.bfd-footer-legal a { color: #CACBEF; text-decoration: none; transition: color 0.2s ease; }
.bfd-footer p.bfd-footer-legal a:hover, .bfd-footer p.bfd-footer-legal a:focus-visible { color: #FFFFFF; }
/* giant wordmark: gradient outline text, faded at the bottom; a spotlight follows the pointer (--mx/--my from site-ui.js) */
/* Footer tagline: even line breaks so no single word sits alone on the last line */
.bfd-footer p.bfd-footer-title { text-wrap: balance; }
.bfd-footer p.bfd-footer-wordmark {
  margin: 80px 0 10px; padding: 0; text-align: center; white-space: nowrap; user-select: none;
  font-family: "DM Sans", Inter, sans-serif; font-weight: 700; font-size: 13.4vw; line-height: 0.82; letter-spacing: -0.055em;
  color: transparent; -webkit-text-fill-color: transparent;
  background-image: radial-gradient(circle 22vw at var(--mx, 50%) var(--my, -60%), rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(92deg, rgba(78, 228, 255, 0.34) 0%, rgba(165, 139, 255, 0.24) 50%, rgba(255, 5, 255, 0.34) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, rgba(0, 0, 0, 0.12) 100%);
  mask-image: linear-gradient(180deg, #000 30%, rgba(0, 0, 0, 0.12) 100%);
}
@media (max-width: 767px) { .bfd-footer p.bfd-footer-wordmark { margin-top: 52px; } }
/* back to top: round arrow button */
.bfd-footer p.bfd-footer-totop a { display: inline-flex; align-items: center; gap: 12px; color: #FFFFFF; text-decoration: none; }
.bfd-footer p.bfd-footer-totop a::after {
  content: "\2191"; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18); font: 600 16px/1 Inter, sans-serif; color: #FFFFFF;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.bfd-footer p.bfd-footer-totop a:hover::after, .bfd-footer p.bfd-footer-totop a:focus-visible::after {
  background-image: linear-gradient(135deg, #5A00EC 0%, #3230C1 100%); border-color: transparent; transform: translateY(-3px);
  box-shadow: 0 12px 28px -12px rgba(90, 0, 236, 0.95);
}
@media (prefers-reduced-motion: reduce) { .bfd-footer-card, .bfd-footer p.bfd-footer-totop a::after { transition: none !important; } }
