/* /bio/ link-in-bio (round 7, 2026-10-21). Loaded only by templates/company_bio.j2, after v2.css, v2-pages.css and v2-r6.css.
   Pixel language of the site: stepped (pixel) corners on the card, the rows and the badges, the logo's squares as accents, the
   node field behind, the pixel edge above the footer. Phone first (390 px), every link 56 px or taller. */

body.kind-bio { padding-bottom: 0; }
.bio {
  /* one stepped corner shape for everything: two 4 px steps per corner (--s, --s2) */
  --s: 4px; --s2: 8px;
  --step: polygon(var(--s2) 0, calc(100% - var(--s2)) 0, calc(100% - var(--s2)) var(--s), calc(100% - var(--s)) var(--s), calc(100% - var(--s)) var(--s2), 100% var(--s2),
    100% calc(100% - var(--s2)), calc(100% - var(--s)) calc(100% - var(--s2)), calc(100% - var(--s)) calc(100% - var(--s)), calc(100% - var(--s2)) calc(100% - var(--s)), calc(100% - var(--s2)) 100%,
    var(--s2) 100%, var(--s2) calc(100% - var(--s)), var(--s) calc(100% - var(--s)), var(--s) calc(100% - var(--s2)), 0 calc(100% - var(--s2)),
    0 var(--s2), var(--s) var(--s2), var(--s) var(--s), var(--s2) var(--s));
  --b-ring: #C9D6E8; --b-row: #FFFFFF; --b-row-h: #EEF6FD; --b-ic: #E6F3FC; --b-ic-ink: #0062B3; --b-sh: 0 16px 30px -22px rgba(10, 40, 90, .45);
  --h-ink: #0A1428; --h-acc: #005FAD; --h-pill-ring: #C9D6E8;
  position: relative; isolation: isolate; overflow: hidden; min-height: 100svh; padding: 14px 16px 88px;
  background:
    radial-gradient(90% 50% at 50% 0%, rgba(0, 187, 255, .16), transparent 70%),
    radial-gradient(60% 40% at 100% 100%, rgba(120, 110, 255, .08), transparent 70%),
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--bg);
}
[data-theme="dark"] .bio {
  --b-ring: #26395E; --b-row: #0E1A33; --b-row-h: #132546; --b-ic: rgba(0, 230, 255, .1); --b-ic-ink: #4FD1FF; --b-sh: 0 18px 34px -22px rgba(0, 0, 0, .8);
  --h-ink: #E8EEF9; --h-acc: #4FD1FF; --h-pill-ring: #2B4270;
  background:
    radial-gradient(90% 50% at 50% 0%, rgba(0, 187, 255, .2), transparent 70%),
    radial-gradient(60% 40% at 100% 100%, rgba(120, 110, 255, .12), transparent 70%),
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--bg);
}
.bio > .nodes { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

/* drifting logo squares in the backdrop (ambient, under 20% of the primary motion) */
.bio-px { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.bio-px i { position: absolute; width: 10px; height: 10px; background: var(--accent); opacity: .16; }
.bio-px i:nth-child(3n) { width: 6px; height: 6px; background: var(--cyan); opacity: .3; }
.bio-px i:nth-child(4n) { width: 14px; height: 14px; opacity: .08; }

.bio-col { position: relative; width: min(460px, 100%); margin-inline: auto; }

/* ---- bar: logo + the site's theme toggle ---- */
.bio-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
.bio-logo { display: inline-flex; align-items: center; min-height: 44px; }
.bio-logo img { width: 132px; height: auto; }
.bio-logo .lg-dark { display: none; }
[data-theme="dark"] .bio-logo .lg-light { display: none; }
[data-theme="dark"] .bio-logo .lg-dark { display: block; width: 128px; }
.bio-bar .theme-btn { width: 46px; height: 46px; }
.bio-bar .theme-btn::after { content: ""; position: absolute; inset: 1px; z-index: -1; background: var(--b-row); clip-path: var(--step); }
.bio-bar .theme-btn:hover::after { background: var(--b-row-h); }

/* ---- header card: navy in both themes, pixel corners, the peeking mascot behind its top edge ---- */
.bio-hero { position: relative; margin-top: 118px; }
.bio-peek { --ps: 150px; position: absolute; z-index: 0; right: 4%; top: calc(var(--ps) * -.84); width: var(--ps); pointer-events: none; }
.bio-peek .m-stage { width: var(--ps); animation: none; filter: drop-shadow(0 -6px 20px rgba(0, 150, 235, .35)); }
.bio-peek .mascot-bub { position: absolute; z-index: 2; right: 92%; top: 14%; width: max-content; max-width: 168px; margin: 0; text-align: left; border-radius: 0; clip-path: var(--step);
  background: var(--navy); padding: 10px 14px; }
.bio-peek .mascot-bub::after { display: none; }
.bio-peek .mascot-bub::before { content: ""; position: absolute; right: -2px; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: var(--cyan); }
[data-theme="dark"] .bio-peek .mascot-bub { background: #11295A; box-shadow: inset 0 0 0 1.5px rgba(0, 230, 255, .5); }

.bio-card { --s: 6px; --s2: 12px; position: relative; z-index: 1; padding: 30px 22px 24px; text-align: center; color: #E8EEF9; clip-path: var(--step);
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(0, 187, 255, .22), transparent 70%),
    linear-gradient(rgba(120, 205, 255, .07) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, rgba(120, 205, 255, .07) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(165deg, #0F1F40 0%, #0A1428 60%, #08101F 100%); }
/* 1 px cyan stepped ring around the card (an outline would ignore the clip-path) */
.bio-hero::after { content: ""; position: absolute; inset: -1.5px; z-index: 0; --s: 6px; --s2: 12px; clip-path: var(--step); background: linear-gradient(180deg, rgba(0, 230, 255, .75), rgba(0, 187, 255, .15) 60%, rgba(0, 187, 255, .4)); pointer-events: none; }
.bio-sq { position: absolute; width: 8px; height: 8px; background: var(--cyan); }
.bio-sq.s1 { left: 14px; top: 14px; } .bio-sq.s2 { left: 26px; top: 14px; width: 4px; height: 4px; opacity: .6; } .bio-sq.s3 { right: 14px; bottom: 14px; } .bio-sq.s4 { right: 26px; bottom: 14px; width: 4px; height: 4px; opacity: .6; }

/* portrait: the ring photo in a circle, framed by four pixel corner brackets (a viewfinder) with the pixel loader inside */
.bio-ring { position: relative; display: inline-block; padding: 12px;
  --bc: var(--cyan); --bl: 22px; --bw: 4px;
  background:
    linear-gradient(var(--bc), var(--bc)) 0 0 / var(--bl) var(--bw), linear-gradient(var(--bc), var(--bc)) 0 0 / var(--bw) var(--bl),
    linear-gradient(var(--bc), var(--bc)) 100% 0 / var(--bl) var(--bw), linear-gradient(var(--bc), var(--bc)) 100% 0 / var(--bw) var(--bl),
    linear-gradient(var(--bc), var(--bc)) 0 100% / var(--bl) var(--bw), linear-gradient(var(--bc), var(--bc)) 0 100% / var(--bw) var(--bl),
    linear-gradient(var(--bc), var(--bc)) 100% 100% / var(--bl) var(--bw), linear-gradient(var(--bc), var(--bc)) 100% 100% / var(--bw) var(--bl);
  background-repeat: no-repeat; }
.bio-ph { position: relative; display: block; width: 136px; height: 136px; overflow: hidden; border-radius: 50%; background: #02060F;
  box-shadow: 0 0 0 1px rgba(0, 230, 255, .35), 0 16px 44px -10px rgba(0, 187, 255, .6); }
.bio-ph img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 50%; }
.bio-live { position: absolute; right: 22px; bottom: 22px; z-index: 4; display: grid; place-items: center; width: 22px; height: 22px; background: #0A1428; box-shadow: 0 0 0 2px rgba(0, 230, 255, .4); }
.bio-live .live { width: 8px; height: 8px; border-radius: 0; background: #3BF28A; box-shadow: none; animation: bioBlink 2.4s steps(2, jump-none) infinite; }
.bio-card h1 { margin-top: 16px; font-size: 32px; line-height: 1.1; font-weight: 800; color: #fff; }
.bio-role { margin-top: 6px; color: var(--cyan); font: 700 14.5px/1.35 var(--f-head); letter-spacing: .01em; }
.bio-blurb { margin: 12px auto 0; max-width: 36ch; color: #A9BAD8; font-size: 14.5px; line-height: 1.55; }
.bio-chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.bio-chips li { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 0 11px; font: 700 12px/1 var(--f-head); letter-spacing: .04em; color: #DDE8F7;
  background: rgba(120, 205, 255, .1); box-shadow: inset 0 0 0 1px rgba(120, 205, 255, .22); --s: 3px; --s2: 6px; clip-path: var(--step); }
.bio-chips li::before { content: ""; width: 5px; height: 5px; background: var(--cyan); }

/* ---- link rows ---- */
.bio-links { list-style: none; display: grid; gap: 10px; margin-top: 18px; padding: 0; }
.bio-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bl { position: relative; isolation: isolate; display: flex; align-items: center; gap: 14px; min-height: 62px; padding: 9px 18px 9px 9px; color: var(--ink); text-decoration: none;
  font: 700 16px/1.25 var(--f-head); background: var(--b-ring); clip-path: var(--step); filter: drop-shadow(0 10px 14px rgba(10, 40, 90, .08));
  transition: transform var(--t-quick) var(--ease), color 100ms var(--ease); -webkit-tap-highlight-color: transparent; }
.bl::before { content: ""; position: absolute; inset: 1.5px; z-index: -1; background: var(--b-row); clip-path: var(--step); transition: background-color 100ms var(--ease); }
.bl:hover::before { background: var(--b-row-h); }
.bl:hover { background: var(--accent); }
.bl:active { transform: scale(.97); }
.bl-t { flex: 1; min-width: 0; }
.bl .arr { flex: none; width: 18px; height: 18px; color: var(--muted); transition: transform 240ms var(--ease), color 100ms var(--ease); }
.bl:hover .arr { transform: translateX(4px); color: var(--accent-ink); }
.bl-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; color: var(--b-ic-ink); background: var(--b-ic); --s: 3px; --s2: 6px; clip-path: var(--step);
  transition: background-color 100ms var(--ease), color 100ms var(--ease); }
.bl-ic svg { width: 21px; height: 21px; }
.bl:hover .bl-ic { background: var(--accent); color: #0A1428; }
.bl-es { font: 800 14px/1 var(--f-head); letter-spacing: .06em; }

/* the two-up rows stack icon over label (square tiles) */
.bl-sq { flex-direction: column; justify-content: center; gap: 8px; min-height: 96px; padding: 14px 10px; text-align: center; font-size: 15px; }
.bl-sq .bl-t { flex: none; }

/* primary: Call */
.bl-primary { min-height: 68px; padding-right: 22px; background: var(--accent); color: #0A1428; font-size: 18px; filter: drop-shadow(0 14px 22px rgba(0, 150, 235, .35)); --pxf: var(--cyan); }
.bl-primary::before { display: none; }
.bl-primary:hover { background: var(--accent); }
.bl-primary .bl-ic { background: #0A1428; color: var(--cyan); }
.bl-primary:hover .bl-ic { background: #0A1428; color: #fff; }
.bl-primary .bl-ic svg { width: 22px; height: 22px; }
.bl-primary .arr { color: #0A1428; }
.bl-primary:hover .arr { color: #0A1428; }
.bl-primary .pxg { grid-template-columns: repeat(16, 1fr); }

/* ---- socials ---- */
.bio-sh { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 30px; }
.bio-sh h2 { font: 700 12px/1 var(--f-head); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.bio-glyph { width: 22px; height: 22px; }
.bio-social { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; padding: 0; }
.bio-social a { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 84px; padding: 10px 4px;
  color: var(--ink-2); text-decoration: none; text-align: center; font: 700 11.5px/1.2 var(--f-head); background: var(--b-ring); clip-path: var(--step);
  transition: transform var(--t-quick) var(--ease), color 100ms var(--ease), background-color 100ms var(--ease); }
.bio-social a::before { content: ""; position: absolute; inset: 1.5px; z-index: -1; background: var(--b-row); clip-path: var(--step); }
.bio-social a:hover { background: var(--accent); color: var(--ink); }
.bio-social a:active { transform: scale(.95); }
.bs-ic { display: grid; place-items: center; width: 30px; height: 30px; color: var(--b-ic-ink); }
.bs-ic svg { width: 24px; height: 24px; }

/* ---- footer: navy with the pixel edge rising into the page ---- */
.bio-foot { position: relative; padding: 22px 16px 104px;  /* room for the chat launcher fixed bottom right */ text-align: center; color: #A9BAD8; font-size: 13px; background: #0A1428; }
.bio-foot .bio-edge { --pxc: #0A1428; }
.bio-foot a { color: #DDE8F7; }

:where(.bio) :focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }

@keyframes bioBlink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes bioDrift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes bioSq { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: no-preference) {
  .bio-px i { animation: bioDrift calc(6s + var(--k) * .45s) cubic-bezier(.45, 0, .55, 1) infinite; animation-delay: calc(var(--k) * -.7s); }
  .bio-sq.s1, .bio-sq.s3 { animation: bioSq 4s cubic-bezier(.45, 0, .55, 1) infinite; }
  .bio-sq.s3 { animation-delay: -2s; }
  .bio-peek { animation: bioPeekIn 620ms cubic-bezier(.175, .885, .32, 1.12) 420ms both; }
}
@keyframes bioPeekIn { from { transform: translateY(46%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .bl, .bio-social a, .bl .arr { transition: none; }
  .bio-live .live { animation: none; }
}

/* desktop: two pixel clusters dissolve in from the sides (the logo's squares), a few twinkle */
.bio-cl { display: none; }
@media (min-width: 980px) {
  .bio-cl { position: absolute; z-index: -1; top: 26%; display: grid; grid-template-columns: repeat(10, 22px); grid-auto-rows: 22px; gap: 6px; pointer-events: none; }
  .bio-cl-l { left: 4%; } .bio-cl-r { right: 4%; }
  .bio-cl i { background: var(--accent); opacity: var(--o); }
  [data-theme="dark"] .bio-cl i { background: var(--cyan); opacity: calc(var(--o) * .7); }
}
@media (min-width: 980px) and (prefers-reduced-motion: no-preference) {
  .bio-cl i.t { animation: tw 6s cubic-bezier(.4, 0, .2, 1) infinite; animation-delay: calc(var(--tw, 0ms) * -1); }
}
@media (min-width: 720px) {
  .bio-col { width: min(480px, 100%); }
  .bio { padding-top: 22px; }
  .bio-hero { margin-top: 150px; }
  .bio-peek { --ps: 184px; right: 6%; }
  .bio-peek .mascot-bub { max-width: 200px; font-size: 13.5px; }
  .bio-card { padding: 36px 30px 30px; }
  .bio-card h1 { font-size: 36px; }
}
