/* ---------------------------------------------------------------
   Border beam on "See my work" (home-test), in Breno's green.
   Generated from the border-beam package of Libraries.dev
   (github.com/Jakubantalik/Libraries.dev, packages/border-beam, v1.4.1)
   with its own generateBeamCSS(): size "sm", dark theme, a green palette
   built from #004233 on the library's "colorful" positions, glows scaled
   1.6x for a 156x52 pill, hue drift ±12deg, stroke/inner/bloom strength
   0.85/0.45/0.6 (up from the dark preset) so green reads on the ink pill. No React, no script: the
   element carries data-beam="bf" data-active and a [data-beam-bloom] child.

   MIT License. Copyright (c) 2026 Jakub Antalik. Permission is hereby
   granted, free of charge, to any person obtaining a copy of this software
   and associated documentation files (the "Software"), to deal in the
   Software without restriction, including without limitation the rights to
   use, copy, modify, merge, publish, distribute, sublicense, and/or sell
   copies of the Software, and to permit persons to whom the Software is
   furnished to do so, subject to the following conditions: The above
   copyright notice and this permission notice shall be included in all
   copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED
   "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
   NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
   PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
   COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
   WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
   OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
   SOFTWARE.
   --------------------------------------------------------------- */

@property --beam-angle-bf {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: true;
}

@property --beam-opacity-bf {
  syntax: "<number>";
  initial-value: 0;
  inherits: true;
}

/* :where() keeps this at zero weight, so a page that positions the
   element itself (absolute cards, layered buttons) always wins */
:where([data-beam="bf"]) {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
}

[data-beam="bf"][data-active] {
  animation:
    beam-spin-bf 1.96s linear infinite,
    beam-fade-in-bf 0.6s ease forwards;
}

[data-beam="bf"][data-fading] {
  animation:
    beam-spin-bf 1.96s linear infinite,
    beam-fade-out-bf 0.5s ease forwards;
}

[data-beam="bf"][data-active]::after,
[data-beam="bf"][data-fading]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 25px;
  padding: 1px;
  clip-path: inset(0 round 26px);
  background: conic-gradient(
        from var(--beam-angle-bf),
        transparent 0%, transparent 54%,
        rgba(255, 255, 255, 0.1) 57%,
        rgba(255, 255, 255, 0.3) 60%,
        rgba(255, 255, 255, 0.6) 63%,
        rgba(255, 255, 255, 0.75) 66%,
        rgba(255, 255, 255, 0.6) 69%,
        rgba(255, 255, 255, 0.3) 72%,
        rgba(255, 255, 255, 0.1) 75%,
        transparent 78%, transparent 100%
      ),radial-gradient(ellipse 14px 29px at 2% 68%, rgb(40, 220, 150), transparent),
    radial-gradient(ellipse 6px 13px at 2% 68%, rgb(0, 190, 135), transparent),
    radial-gradient(ellipse 94px 14px at 72% -3%, rgb(150, 255, 205), transparent),
    radial-gradient(ellipse 67px 11px at 74% 100%, rgb(20, 205, 145), transparent),
    radial-gradient(ellipse 16px 27px at 100% 27%, rgb(90, 240, 180), transparent),
    radial-gradient(ellipse 16px 29px at 100% 27%, rgb(0, 170, 120), transparent),
    radial-gradient(ellipse 8px 16px at 100% 27%, rgb(200, 255, 230), transparent),
    radial-gradient(ellipse 18px 19px at 100% 27%, rgb(60, 230, 165), transparent);
  -webkit-mask:
    conic-gradient(
      from var(--beam-angle-bf),
      transparent 0%, transparent 30%,
      rgba(255, 255, 255, 0.1) 36%, rgba(255, 255, 255, 0.35) 44%,
      white 52%, white 80%,
      rgba(255, 255, 255, 0.35) 86%, rgba(255, 255, 255, 0.1) 92%,
      transparent 95%, transparent 100%
    ),
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: source-in, xor;
  mask:
    conic-gradient(
      from var(--beam-angle-bf),
      transparent 0%, transparent 30%,
      rgba(255, 255, 255, 0.1) 36%, rgba(255, 255, 255, 0.35) 44%,
      white 52%, white 80%,
      rgba(255, 255, 255, 0.35) 86%, rgba(255, 255, 255, 0.1) 92%,
      transparent 95%, transparent 100%
    ),
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: intersect, exclude;
  pointer-events: none;
  z-index: 2;
  opacity: calc(var(--beam-opacity-bf) * 0.85 * var(--beam-stroke-opacity, 1) * var(--beam-strength, 1));
  animation: beam-hue-shift-bf 12s ease-in-out infinite;
}

[data-beam="bf"][data-active]::before,
[data-beam="bf"][data-fading]::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 26px;
  clip-path: inset(0 round 26px);
  background: radial-gradient(ellipse 14px 29px at 2% 68%, rgba(40, 220, 150, 0.5), transparent),
    radial-gradient(ellipse 6px 13px at 2% 68%, rgba(0, 190, 135, 0.45), transparent),
    radial-gradient(ellipse 94px 14px at 72% -3%, rgba(150, 255, 205, 0.35), transparent),
    radial-gradient(ellipse 67px 11px at 74% 100%, rgba(20, 205, 145, 0.35), transparent),
    radial-gradient(ellipse 16px 27px at 100% 27%, rgba(90, 240, 180, 0.3), transparent),
    radial-gradient(ellipse 16px 29px at 100% 27%, rgba(0, 170, 120, 0.4), transparent),
    radial-gradient(ellipse 8px 16px at 100% 27%, rgba(200, 255, 230, 0.3), transparent),
    radial-gradient(ellipse 18px 19px at 100% 27%, rgba(60, 230, 165, 0.3), transparent);
  box-shadow: inset 0 0 5px 1px rgba(255, 255, 255, 0.3);
  -webkit-mask-image: conic-gradient(
    from var(--beam-angle-bf),
    transparent 0%, transparent 22%,
    rgba(255, 255, 255, 0.12) 28%, rgba(255, 255, 255, 0.4) 36%,
    white 46%, white 82%,
    rgba(255, 255, 255, 0.4) 88%, rgba(255, 255, 255, 0.12) 94%,
    transparent 97%, transparent 100%
  );
  -webkit-mask-composite: source-over;
  mask-image: conic-gradient(
    from var(--beam-angle-bf),
    transparent 0%, transparent 22%,
    rgba(255, 255, 255, 0.12) 28%, rgba(255, 255, 255, 0.4) 36%,
    white 46%, white 82%,
    rgba(255, 255, 255, 0.4) 88%, rgba(255, 255, 255, 0.12) 94%,
    transparent 97%, transparent 100%
  );
  mask-composite: add;
  pointer-events: none;
  z-index: 1;
  opacity: calc(var(--beam-opacity-bf) * 0.45 * var(--beam-inner-opacity, 1) * var(--beam-strength, 1));
  animation: beam-hue-shift-bf 12s ease-in-out infinite;
}

[data-beam="bf"] [data-beam-bloom] {
  display: none;
  position: absolute;
  inset: 0;
  border-radius: 25px;
  clip-path: inset(0 round 26px);
  background: conic-gradient(
        from var(--beam-angle-bf),
        transparent 0%, transparent 58%,
        rgba(255, 255, 255, 0.03) 62%,
        rgba(255, 255, 255, 0.08) 65%,
        rgba(255, 255, 255, 0.2) 67%,
        rgba(255, 255, 255, 0.45) 69%,
        rgba(255, 255, 255, 0.85) 70%,
        rgba(255, 255, 255, 0.85) 70.5%,
        rgba(255, 255, 255, 0.45) 71.5%,
        rgba(255, 255, 255, 0.2) 73%,
        rgba(255, 255, 255, 0.08) 75%,
        rgba(255, 255, 255, 0.03) 78%,
        transparent 82%
      );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  padding: 1px;
  filter: blur(8px) brightness(1.30) saturate(1.20);
  pointer-events: none;
  z-index: 3;
  opacity: 0;
}

[data-beam="bf"][data-active] [data-beam-bloom],
[data-beam="bf"][data-fading] [data-beam-bloom] {
  display: block;
  opacity: calc(var(--beam-opacity-bf) * 0.60 * var(--beam-bloom-opacity, 1) * var(--beam-strength, 1));
}

@keyframes beam-spin-bf {
  to { --beam-angle-bf: 360deg; }
}

@keyframes beam-fade-in-bf {
  to { --beam-opacity-bf: 1; }
}

@keyframes beam-fade-out-bf {
  from { --beam-opacity-bf: 1; }
  to { --beam-opacity-bf: 0; }
}

@keyframes beam-hue-shift-bf {
  0% { filter: hue-rotate(calc(var(--beam-hue-base, 0deg) - 12deg)) brightness(1.30) saturate(1.20); }
  50% { filter: hue-rotate(calc(var(--beam-hue-base, 0deg) + 12deg)) brightness(1.30) saturate(1.20); }
  100% { filter: hue-rotate(calc(var(--beam-hue-base, 0deg) - 12deg)) brightness(1.30) saturate(1.20); }
}

[data-beam="bf"][data-paused],
[data-beam="bf"][data-paused]::after,
[data-beam="bf"][data-paused]::before,
[data-beam="bf"][data-paused] [data-beam-bloom] {
  animation-play-state: paused !important;
}


/* ---------------------------------------------------------------
   Hover beam for the secondary buttons ("Contact me", "Read more"),
   same generator, id "bfh": size "sm", LIGHT theme (outline buttons on
   grey or white), mid greens from #004233, pill radius, glows scaled
   1.5x, stroke/inner/bloom 0.9/0.35/0.45 (light preset is 0.12/0.3/0.16).
   home-test.js sets data-active on hover/focus and data-fading on leave,
   so the library's own fade-in and fade-out run.
   --------------------------------------------------------------- */

@property --beam-angle-bfh {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: true;
}

@property --beam-opacity-bfh {
  syntax: "<number>";
  initial-value: 0;
  inherits: true;
}

/* :where() keeps this at zero weight, so a page that positions the
   element itself (absolute cards, layered buttons) always wins */
:where([data-beam="bfh"]) {
  position: relative;
  border-radius: 999px;
  overflow: hidden;
}

[data-beam="bfh"][data-active] {
  animation:
    beam-spin-bfh 1.96s linear infinite,
    beam-fade-in-bfh 0.6s ease forwards;
}

[data-beam="bfh"][data-fading] {
  animation:
    beam-spin-bfh 1.96s linear infinite,
    beam-fade-out-bfh 0.5s ease forwards;
}

[data-beam="bfh"][data-active]::after,
[data-beam="bfh"][data-fading]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 998px;
  padding: 1px;
  clip-path: inset(0 round 999px);
  background: conic-gradient(
        from var(--beam-angle-bfh),
        transparent 0%, transparent 54%,
        rgba(0, 0, 0, 0.08) 57%,
        rgba(0, 0, 0, 0.2) 60%,
        rgba(0, 0, 0, 0.4) 63%,
        rgba(0, 0, 0, 0.55) 66%,
        rgba(0, 0, 0, 0.4) 69%,
        rgba(0, 0, 0, 0.2) 72%,
        rgba(0, 0, 0, 0.08) 75%,
        transparent 78%, transparent 100%
      ),radial-gradient(ellipse 14px 27px at 2% 68%, rgb(0, 150, 105), transparent),
    radial-gradient(ellipse 6px 12px at 2% 68%, rgb(0, 115, 85), transparent),
    radial-gradient(ellipse 89px 14px at 72% -3%, rgb(40, 185, 130), transparent),
    radial-gradient(ellipse 63px 11px at 74% 100%, rgb(0, 130, 95), transparent),
    radial-gradient(ellipse 15px 26px at 100% 27%, rgb(20, 170, 120), transparent),
    radial-gradient(ellipse 15px 27px at 100% 27%, rgb(0, 100, 75), transparent),
    radial-gradient(ellipse 8px 15px at 100% 27%, rgb(70, 205, 150), transparent),
    radial-gradient(ellipse 17px 18px at 100% 27%, rgb(0, 160, 115), transparent);
  -webkit-mask:
    conic-gradient(
      from var(--beam-angle-bfh),
      transparent 0%, transparent 30%,
      rgba(255, 255, 255, 0.1) 36%, rgba(255, 255, 255, 0.35) 44%,
      white 52%, white 80%,
      rgba(255, 255, 255, 0.35) 86%, rgba(255, 255, 255, 0.1) 92%,
      transparent 95%, transparent 100%
    ),
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: source-in, xor;
  mask:
    conic-gradient(
      from var(--beam-angle-bfh),
      transparent 0%, transparent 30%,
      rgba(255, 255, 255, 0.1) 36%, rgba(255, 255, 255, 0.35) 44%,
      white 52%, white 80%,
      rgba(255, 255, 255, 0.35) 86%, rgba(255, 255, 255, 0.1) 92%,
      transparent 95%, transparent 100%
    ),
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: intersect, exclude;
  pointer-events: none;
  z-index: 2;
  opacity: calc(var(--beam-opacity-bfh) * 0.90 * var(--beam-stroke-opacity, 1) * var(--beam-strength, 1));
  animation: beam-hue-shift-bfh 12s ease-in-out infinite;
}

[data-beam="bfh"][data-active]::before,
[data-beam="bfh"][data-fading]::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  clip-path: inset(0 round 999px);
  background: radial-gradient(ellipse 14px 27px at 2% 68%, rgba(0, 150, 105, 0.5), transparent),
    radial-gradient(ellipse 6px 12px at 2% 68%, rgba(0, 115, 85, 0.45), transparent),
    radial-gradient(ellipse 89px 14px at 72% -3%, rgba(40, 185, 130, 0.35), transparent),
    radial-gradient(ellipse 63px 11px at 74% 100%, rgba(0, 130, 95, 0.35), transparent),
    radial-gradient(ellipse 15px 26px at 100% 27%, rgba(20, 170, 120, 0.3), transparent),
    radial-gradient(ellipse 15px 27px at 100% 27%, rgba(0, 100, 75, 0.4), transparent),
    radial-gradient(ellipse 8px 15px at 100% 27%, rgba(70, 205, 150, 0.3), transparent),
    radial-gradient(ellipse 17px 18px at 100% 27%, rgba(0, 160, 115, 0.3), transparent);
  box-shadow: inset 0 0 5px 1px rgba(0, 0, 0, 0.08);
  -webkit-mask-image: conic-gradient(
    from var(--beam-angle-bfh),
    transparent 0%, transparent 22%,
    rgba(255, 255, 255, 0.12) 28%, rgba(255, 255, 255, 0.4) 36%,
    white 46%, white 82%,
    rgba(255, 255, 255, 0.4) 88%, rgba(255, 255, 255, 0.12) 94%,
    transparent 97%, transparent 100%
  );
  -webkit-mask-composite: source-over;
  mask-image: conic-gradient(
    from var(--beam-angle-bfh),
    transparent 0%, transparent 22%,
    rgba(255, 255, 255, 0.12) 28%, rgba(255, 255, 255, 0.4) 36%,
    white 46%, white 82%,
    rgba(255, 255, 255, 0.4) 88%, rgba(255, 255, 255, 0.12) 94%,
    transparent 97%, transparent 100%
  );
  mask-composite: add;
  pointer-events: none;
  z-index: 1;
  opacity: calc(var(--beam-opacity-bfh) * 0.35 * var(--beam-inner-opacity, 1) * var(--beam-strength, 1));
  animation: beam-hue-shift-bfh 12s ease-in-out infinite;
}

[data-beam="bfh"] [data-beam-bloom] {
  display: none;
  position: absolute;
  inset: 0;
  border-radius: 998px;
  clip-path: inset(0 round 999px);
  background: conic-gradient(
        from var(--beam-angle-bfh),
        transparent 0%, transparent 58%,
        rgba(0, 0, 0, 0.02) 62%,
        rgba(0, 0, 0, 0.08) 65%,
        rgba(0, 0, 0, 0.2) 67%,
        rgba(0, 0, 0, 0.4) 69%,
        rgba(0, 0, 0, 0.6) 70%,
        rgba(0, 0, 0, 0.6) 70.5%,
        rgba(0, 0, 0, 0.4) 71.5%,
        rgba(0, 0, 0, 0.2) 73%,
        rgba(0, 0, 0, 0.08) 75%,
        rgba(0, 0, 0, 0.02) 78%,
        transparent 82%
      );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  padding: 1px;
  filter: blur(8px) brightness(1.10) saturate(1.30);
  pointer-events: none;
  z-index: 3;
  opacity: 0;
}

[data-beam="bfh"][data-active] [data-beam-bloom],
[data-beam="bfh"][data-fading] [data-beam-bloom] {
  display: block;
  opacity: calc(var(--beam-opacity-bfh) * 0.45 * var(--beam-bloom-opacity, 1) * var(--beam-strength, 1));
}

@keyframes beam-spin-bfh {
  to { --beam-angle-bfh: 360deg; }
}

@keyframes beam-fade-in-bfh {
  to { --beam-opacity-bfh: 1; }
}

@keyframes beam-fade-out-bfh {
  from { --beam-opacity-bfh: 1; }
  to { --beam-opacity-bfh: 0; }
}

@keyframes beam-hue-shift-bfh {
  0% { filter: hue-rotate(calc(var(--beam-hue-base, 0deg) - 10deg)) brightness(1.10) saturate(1.30); }
  50% { filter: hue-rotate(calc(var(--beam-hue-base, 0deg) + 10deg)) brightness(1.10) saturate(1.30); }
  100% { filter: hue-rotate(calc(var(--beam-hue-base, 0deg) - 10deg)) brightness(1.10) saturate(1.30); }
}

[data-beam="bfh"][data-paused],
[data-beam="bfh"][data-paused]::after,
[data-beam="bfh"][data-paused]::before,
[data-beam="bfh"][data-paused] [data-beam-bloom] {
  animation-play-state: paused !important;
}

/* Added for the site: people who ask for less motion get no hover beam */
@media (prefers-reduced-motion: reduce) {
  [data-beam="bfh"][data-active], [data-beam="bfh"][data-fading] { animation: none; --beam-opacity-bfh: 0; }
}


/* ---------------------------------------------------------------
   Hover beam for cards (the "What I'm up to" links), id "bfc": size
   "md", light theme, the page's --radius corners, mid greens from
   #004233, glows scaled 0.7x for ~213x100 cards. case-shared.js wires
   it like the buttons' beam.
   --------------------------------------------------------------- */

@property --beam-angle-bfc {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: true;
}

@property --beam-opacity-bfc {
  syntax: "<number>";
  initial-value: 0;
  inherits: true;
}

/* :where() keeps this at zero weight, so a page that positions the
   element itself (absolute cards, layered buttons) always wins */
:where([data-beam="bfc"]) {
  position: relative;
  border-radius: var(--radius, 16px);
  overflow: hidden;
}

[data-beam="bfc"][data-active] {
  animation:
    beam-spin-bfc 1.96s linear infinite,
    beam-fade-in-bfc 0.6s ease forwards;
}

[data-beam="bfc"][data-fading] {
  animation:
    beam-spin-bfc 1.96s linear infinite,
    beam-fade-out-bfc 0.5s ease forwards;
}

[data-beam="bfc"][data-active]::after,
[data-beam="bfc"][data-fading]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: calc(var(--radius, 16px) - 1px);
  padding: 1px;
  clip-path: inset(0 round var(--radius, 16px));
  background: conic-gradient(
        from var(--beam-angle-bfc),
        transparent 0%, transparent 54%,
        rgba(0, 0, 0, 0.08) 57%,
        rgba(0, 0, 0, 0.2) 60%,
        rgba(0, 0, 0, 0.4) 63%,
        rgba(0, 0, 0, 0.55) 66%,
        rgba(0, 0, 0, 0.4) 69%,
        rgba(0, 0, 0, 0.2) 72%,
        rgba(0, 0, 0, 0.08) 75%,
        transparent 78%, transparent 100%
      ),radial-gradient(ellipse 49px 28px at 33% -7.4%, rgb(0, 150, 105), transparent),
    radial-gradient(ellipse 42px 25px at 12% -5%, rgb(0, 115, 85), transparent),
    radial-gradient(ellipse 28px 49px at 2.1% 68.3%, rgb(40, 185, 130), transparent),
    radial-gradient(ellipse 14px 25px at 2.1% 68.3%, rgb(0, 130, 95), transparent),
    radial-gradient(ellipse 126px 22px at 74.4% 100%, rgb(20, 170, 120), transparent),
    radial-gradient(ellipse 59px 18px at 55% 100%, rgb(0, 100, 75), transparent),
    radial-gradient(ellipse 52px 22px at 93.9% 0%, rgb(70, 205, 150), transparent),
    radial-gradient(ellipse 18px 29px at 100% 27.1%, rgb(0, 160, 115), transparent),
    radial-gradient(ellipse 36px 34px at 100% 27.1%, rgb(30, 175, 125), transparent);
  -webkit-mask:
    conic-gradient(
      from var(--beam-angle-bfc),
      transparent 0%, transparent 30%,
      rgba(255, 255, 255, 0.1) 36%, rgba(255, 255, 255, 0.35) 44%,
      white 52%, white 80%,
      rgba(255, 255, 255, 0.35) 86%, rgba(255, 255, 255, 0.1) 92%,
      transparent 95%, transparent 100%
    ),
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: source-in, xor;
  mask:
    conic-gradient(
      from var(--beam-angle-bfc),
      transparent 0%, transparent 30%,
      rgba(255, 255, 255, 0.1) 36%, rgba(255, 255, 255, 0.35) 44%,
      white 52%, white 80%,
      rgba(255, 255, 255, 0.35) 86%, rgba(255, 255, 255, 0.1) 92%,
      transparent 95%, transparent 100%
    ),
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: intersect, exclude;
  pointer-events: none;
  z-index: 2;
  opacity: calc(var(--beam-opacity-bfc) * 0.90 * var(--beam-stroke-opacity, 1) * var(--beam-strength, 1));
  animation: beam-hue-shift-bfc 12s ease-in-out infinite;
}

[data-beam="bfc"][data-active]::before,
[data-beam="bfc"][data-fading]::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius, 16px);
  background: radial-gradient(ellipse 44px 25px at 33% -7.4%, rgba(0, 150, 105, 0.45), transparent),
    radial-gradient(ellipse 38px 23px at 12% -5%, rgba(0, 115, 85, 0.45), transparent),
    radial-gradient(ellipse 25px 44px at 2.1% 68.3%, rgba(40, 185, 130, 0.45), transparent),
    radial-gradient(ellipse 13px 23px at 2.1% 68.3%, rgba(0, 130, 95, 0.45), transparent),
    radial-gradient(ellipse 113px 20px at 74.4% 100%, rgba(20, 170, 120, 0.45), transparent),
    radial-gradient(ellipse 53px var(--radius, 16px) at 55% 100%, rgba(0, 100, 75, 0.45), transparent),
    radial-gradient(ellipse 47px 20px at 93.9% 0%, rgba(70, 205, 150, 0.45), transparent),
    radial-gradient(ellipse var(--radius, 16px) 26px at 100% 27.1%, rgba(0, 160, 115, 0.45), transparent),
    radial-gradient(ellipse 32px 31px at 100% 27.1%, rgba(30, 175, 125, 0.45), transparent);
  box-shadow: inset 0 0 9px 1px rgba(0, 0, 0, 0.08);
  -webkit-mask-image:
    conic-gradient(
      from var(--beam-angle-bfc),
      transparent 0%, transparent 30%,
      rgba(255, 255, 255, 0.1) 36%, rgba(255, 255, 255, 0.35) 44%,
      white 52%, white 80%,
      rgba(255, 255, 255, 0.35) 86%, rgba(255, 255, 255, 0.1) 92%,
      transparent 95%, transparent 100%
    ),
    linear-gradient(white, transparent 28px, transparent calc(100% - 28px), white),
    linear-gradient(to right, white, transparent 28px, transparent calc(100% - 28px), white);
  -webkit-mask-composite: source-in, source-over;
  mask-image:
    conic-gradient(
      from var(--beam-angle-bfc),
      transparent 0%, transparent 30%,
      rgba(255, 255, 255, 0.1) 36%, rgba(255, 255, 255, 0.35) 44%,
      white 52%, white 80%,
      rgba(255, 255, 255, 0.35) 86%, rgba(255, 255, 255, 0.1) 92%,
      transparent 95%, transparent 100%
    ),
    linear-gradient(white, transparent 28px, transparent calc(100% - 28px), white),
    linear-gradient(to right, white, transparent 28px, transparent calc(100% - 28px), white);
  mask-composite: intersect, add;
  pointer-events: none;
  z-index: 1;
  opacity: calc(var(--beam-opacity-bfc) * 0.30 * var(--beam-inner-opacity, 1) * var(--beam-strength, 1));
  clip-path: inset(0 round var(--radius, 16px));
  animation: beam-hue-shift-bfc 12s ease-in-out infinite;
}

[data-beam="bfc"] [data-beam-bloom] {
  display: none;
  position: absolute;
  inset: 0;
  border-radius: calc(var(--radius, 16px) - 1px);
  clip-path: inset(0 round var(--radius, 16px));
  background: conic-gradient(
        from var(--beam-angle-bfc),
        transparent 0%, transparent 58%,
        rgba(0, 0, 0, 0.02) 62%,
        rgba(0, 0, 0, 0.08) 65%,
        rgba(0, 0, 0, 0.2) 67%,
        rgba(0, 0, 0, 0.4) 69%,
        rgba(0, 0, 0, 0.6) 70%,
        rgba(0, 0, 0, 0.6) 70.5%,
        rgba(0, 0, 0, 0.4) 71.5%,
        rgba(0, 0, 0, 0.2) 73%,
        rgba(0, 0, 0, 0.08) 75%,
        rgba(0, 0, 0, 0.02) 78%,
        transparent 82%
      );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  padding: 1px;
  filter: blur(8px) brightness(1.10) saturate(1.30);
  pointer-events: none;
  z-index: 3;
  opacity: 0;
}

[data-beam="bfc"][data-active] [data-beam-bloom],
[data-beam="bfc"][data-fading] [data-beam-bloom] {
  display: block;
  opacity: calc(var(--beam-opacity-bfc) * 0.45 * var(--beam-bloom-opacity, 1) * var(--beam-strength, 1));
}

@keyframes beam-spin-bfc {
  to { --beam-angle-bfc: 360deg; }
}

@keyframes beam-fade-in-bfc {
  to { --beam-opacity-bfc: 1; }
}

@keyframes beam-fade-out-bfc {
  from { --beam-opacity-bfc: 1; }
  to { --beam-opacity-bfc: 0; }
}

@keyframes beam-hue-shift-bfc {
  0% { filter: hue-rotate(calc(var(--beam-hue-base, 0deg) - 10deg)) brightness(1.10) saturate(1.30); }
  50% { filter: hue-rotate(calc(var(--beam-hue-base, 0deg) + 10deg)) brightness(1.10) saturate(1.30); }
  100% { filter: hue-rotate(calc(var(--beam-hue-base, 0deg) - 10deg)) brightness(1.10) saturate(1.30); }
}

[data-beam="bfc"][data-paused],
[data-beam="bfc"][data-paused]::after,
[data-beam="bfc"][data-paused]::before,
[data-beam="bfc"][data-paused] [data-beam-bloom] {
  animation-play-state: paused !important;
}

@media (prefers-reduced-motion: reduce) {
  [data-beam="bfc"][data-active], [data-beam="bfc"][data-fading] { animation: none; --beam-opacity-bfc: 0; }
}

/* Added for the site: people who ask for less motion get a still beam */
@media (prefers-reduced-motion: reduce) {
  [data-beam="bf"][data-active],
  [data-beam="bf"][data-active]::before,
  [data-beam="bf"][data-active]::after { animation: none; }
  [data-beam="bf"][data-active] { --beam-opacity-bf: 1; --beam-angle-bf: 200deg; }
}
