/* About hero: the ORYNX AXIOM emblem in place of the team photograph.
   Layers, back to front: a blurred backdrop made from the emblem itself, faint grid at the edges, the emblem
   (feathered edges, slow float), a breathing glow on its core, an occasional light sweep, corner marks, caption.
   The stage carries the frame's cut corners so the line and dot under the figure (its ::before/::after) stay visible. */
html:root body .master-about-hero .master-about-image.oa-emblem { isolation: isolate; }

.oa-emblem .oa-stage {
  position: absolute; inset: 0; overflow: hidden; z-index: 0;
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
  background: #04101f url("/assets/images/about/orynx-emblem-backdrop.webp") center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgb(120 180 255 / .10);
}
/* faint grid, only toward the edges */
.oa-emblem .oa-stage::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgb(130 190 255 / .07) 1px, transparent 1px),
    linear-gradient(90deg, rgb(130 190 255 / .07) 1px, transparent 1px);
  background-size: 46px 46px; background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, transparent 45%, #000 100%);
          mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, transparent 45%, #000 100%);
}

/* the floating layer: the emblem and its beams move together */
.oa-emblem .oa-float {
  position: absolute; inset: 0; z-index: 1;
  transform-origin: 50% 55%;
  animation: oa-float 11s ease-in-out infinite;
}
/* the emblem: always whole, centred, edges melting into the backdrop */
html:root body .master-about-hero .master-about-image.oa-emblem img.oa-mark {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100% !important; max-height: none; aspect-ratio: auto;
  object-fit: contain; object-position: 50% 50% !important;
  clip-path: none;
  transition: filter .6s ease;
}
/* beams of light from the emblem's bright parts (about-emblem-rays.js) */
.oa-emblem .oa-rays {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%;
  pointer-events: none; mix-blend-mode: screen;
  opacity: 0; transition: opacity 1.6s ease;
}
.oa-emblem .oa-rays.is-on { opacity: 1; }
@keyframes oa-float {
  0%, 100% { transform: translate3d(0, -1.1%, 0) scale(1); }
  50%      { transform: translate3d(0, 1.1%, 0) scale(1.014); }
}

/* the core breathes: soft blue light over the crystal */
.oa-emblem .oa-glow {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: screen;
  background:
    radial-gradient(ellipse 30% 26% at 54% 50%, rgb(70 170 255 / .26), transparent 70%),
    radial-gradient(ellipse 55% 45% at 50% 52%, rgb(40 120 230 / .12), transparent 75%);
  animation: oa-breathe 6.5s ease-in-out infinite;
}
@keyframes oa-breathe { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* a light sweep now and then */
.oa-emblem .oa-stage::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 42%, rgb(160 215 255 / .08) 47%, rgb(225 243 255 / .20) 50%, rgb(160 215 255 / .08) 53%, transparent 58%) no-repeat;
  background-size: 260% 100%; background-position: 140% 0;
  animation: oa-sweep 9s cubic-bezier(.45, .05, .25, 1) 1.2s infinite;
}
@keyframes oa-sweep {
  0%   { background-position: 140% 0; }
  32%  { background-position: -40% 0; }
  100% { background-position: -40% 0; }
}

/* corner marks */
.oa-emblem .oa-corners { position: absolute; inset: 16px; z-index: 4; pointer-events: none; }
.oa-emblem .oa-corners i { position: absolute; width: 18px; height: 18px; border: 0 solid rgb(140 200 255 / .55); }
.oa-emblem .oa-corners i:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.oa-emblem .oa-corners i:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.oa-emblem .oa-corners i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.oa-emblem .oa-corners i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

/* caption sits over the stage, inside the cut corner */
html:root body .master-about-hero .master-about-image.oa-emblem figcaption {
  z-index: 5; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
  background: linear-gradient(transparent, rgb(2 8 18 / .82));
}

/* pointer over the figure: a little more light */
@media (hover: hover) {
  html:root body .master-about-hero .master-about-image.oa-emblem:hover img.oa-mark { filter: brightness(1.08) saturate(1.06); }
}

/* phones: smaller corner marks */
@media (max-width: 540px) {
  .oa-emblem .oa-corners { inset: 10px; }
  .oa-emblem .oa-corners i { width: 12px; height: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .oa-emblem .oa-float, .oa-emblem .oa-glow, .oa-emblem .oa-stage::after { animation: none; }
  .oa-emblem .oa-glow { opacity: .7; }
}
