/* 20261028dt: who runs MIP on a cover (pages/profile_hero.rs) -- the Portfolio page's header and, as it will look,
   Settings -> Profile in the admin console.

   The user (28 October): "add a professional cover image and avatar image with maskclip looking formally, and
   commanding technical authority ... these text will be on top of that image with green, white, purple and gold as
   how this one is and 50x better than that: Where it sits now, floor, ceiling".

   The cover fills the header: the picture uploaded (kept in view at the focus chosen) or MIP's own drawing, darkened
   where the words sit. Over it: the portrait in a gold rim with MIP's ring on its corner, the name in white, the line
   about the work, the links as pills in green, purple and gold; along the foot, the gauge's track from the first year
   the credentials name to now -- green, purple, gold, each credential a point ringed white, a role still held running
   on in gold to now. Every word 16 pixels or more. */
.mip-profile{position:relative;isolation:isolate;overflow:hidden;border:1px solid rgba(242,169,59,.30);border-radius:16px;background:#0a0b11;box-shadow:0 30px 60px -36px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.06)}
.mip-profile__cover{position:absolute;inset:0;z-index:-1}
.mip-profile__art, .mip-profile__photo{display:block;width:100%;height:100%;object-fit:cover}
.mip-profile__scrim{position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,9,13,.90) 0%,rgba(8,9,13,.66) 36%,rgba(8,9,13,.10) 70%,rgba(8,9,13,0) 100%),linear-gradient(0deg,rgba(8,9,13,.88) 0%,rgba(8,9,13,0) 40%)}
.mip-profile.has-photo .mip-profile__scrim{background:linear-gradient(90deg,rgba(8,9,13,.94) 0%,rgba(8,9,13,.80) 40%,rgba(8,9,13,.26) 76%,rgba(8,9,13,.08) 100%),linear-gradient(0deg,rgba(8,9,13,.94) 0%,rgba(8,9,13,0) 46%)}
.mip-profile__body{display:grid;align-content:space-between;gap:44px;min-height:440px;padding:44px 48px 34px}

/* the portrait and the words */
.mip-profile__id{display:grid;grid-template-columns:auto minmax(0, 1fr);gap:28px;align-items:center;max-width:900px}
.mip-profile__avatar{position:relative;width:152px;height:152px;margin:0;filter:drop-shadow(0 16px 28px rgba(0,0,0,.65))}
.mip-profile__avatar svg{display:block;width:100%;height:100%}
.mip-profile__initials{position:absolute;inset:0;display:grid;place-items:center;color:#ffffff;font-size:48px;font-weight:800;letter-spacing:.02em;text-shadow:0 2px 14px rgba(0,0,0,.6)}
.mip-profile__badge{position:absolute;right:-1px;bottom:-1px;width:36px;height:36px;border:7px solid var(--t-brand);border-radius:50%;background:#0a0b11;box-shadow:0 0 0 3px #0a0b11, 0 0 20px rgba(242,169,59,.6)}
.mip-profile .mip-profile__name{margin:0;color:#ffffff;font-size:clamp(36px, 4.4vw, 58px);font-weight:800;line-height:1.04;letter-spacing:-.015em;text-shadow:0 2px 26px rgba(0,0,0,.55)}
.mip-profile .mip-profile__headline{max-width:54ch;margin:14px 0 0;color:#eeedf5;font-size:20px;font-weight:500;line-height:1.5;text-shadow:0 1px 16px rgba(0,0,0,.65)}
.mip-profile__links{display:flex;flex-wrap:wrap;gap:12px;margin:22px 0 0}
.mip-profile .mip-profile__link{display:inline-flex;align-items:center;gap:9px;min-height:46px;padding:8px 18px;border:1px solid var(--tone-line);border-radius:999px;background:rgba(8,9,13,.58);color:var(--tone);font-size:17px;font-weight:700;text-decoration:none;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.mip-profile .mip-profile__link .mip-glyph{width:20px;height:20px}
.mip-profile .mip-profile__link .mip-glyph:last-child{width:18px;height:18px;stroke-width:2.2;transition:transform .18s ease}
.mip-profile .mip-profile__link:hover, .mip-profile .mip-profile__link:focus-visible{border-color:var(--tone);background:var(--tone-bg)}
.mip-profile__link:hover .mip-glyph:last-child, .mip-profile__link:focus-visible .mip-glyph:last-child{transform:translate(2px,-2px)}
.mip-profile__link:focus-visible{outline:3px solid var(--t-focus);outline-offset:3px}
.mip-profile__link.is-green{--tone:#28d89b;--tone-line:rgba(40,216,155,.58);--tone-bg:rgba(40,216,155,.15)}
.mip-profile__link.is-violet{--tone:#cbbcff;--tone-line:rgba(178,156,240,.64);--tone-bg:rgba(133,98,231,.22)}
.mip-profile__link.is-gold{--tone:#f2a93b;--tone-line:rgba(242,169,59,.62);--tone-bg:rgba(242,169,59,.16)}
.mip-profile__link.is-white{--tone:#ffffff;--tone-line:rgba(255,255,255,.5);--tone-bg:rgba(255,255,255,.12)}

/* the track: the gauge's, from the first year the credentials name to now */
.mip-profile__rail{position:relative;height:8px;margin:0 16px 38px;padding:0;list-style:none;border-radius:99px;background:linear-gradient(90deg,#1f8a63 0%,#28d89b 20%,#8562e7 54%,#b29cf0 72%,#f2a93b 100%);box-shadow:0 0 0 1px rgba(255,255,255,.10), 0 0 26px rgba(133,98,231,.38)}
.mip-profile__span{position:absolute;top:-1px;bottom:-1px;left:var(--from);right:0;border-radius:99px;background:linear-gradient(90deg,rgba(242,169,59,0),#f2a93b 55%,#ffd98c);box-shadow:0 0 18px rgba(242,169,59,.6)}
.mip-profile__point{position:absolute;top:50%;left:var(--at);width:0;height:0}
.mip-profile__point > i{position:absolute;left:-12px;top:-12px;width:24px;height:24px;box-sizing:border-box;border:3px solid #ffffff;border-radius:50%;background:var(--dot, #ffffff);box-shadow:0 0 0 3px rgba(8,9,13,.7), 0 6px 14px rgba(0,0,0,.55)}
.mip-profile__point.is-green{--dot:#28d89b}
.mip-profile__point.is-violet{--dot:#8562e7}
.mip-profile__point.is-gold{--dot:#f2a93b}
.mip-profile__point.is-now > i{left:-16px;top:-16px;width:32px;height:32px;--dot:#f2a93b;box-shadow:0 0 0 4px rgba(8,9,13,.7), 0 0 0 11px rgba(242,169,59,.18), 0 0 30px rgba(242,169,59,.75)}
.mip-profile__point > b{position:absolute;top:20px;left:0;color:#ffffff;font-size:16px;font-weight:700;white-space:nowrap;transform:translateX(-50%);text-shadow:0 1px 10px rgba(0,0,0,.85)}
.mip-profile__point.is-first > b{transform:translateX(-12px)}
.mip-profile__point.is-now > b{color:var(--t-brand);font-weight:800;transform:translateX(calc(-100% + 16px))}
.mip-profile__point.is-tight > b{display:none}
.mip-profile__point:focus{outline:none}
.mip-profile__point:focus-visible > i{outline:3px solid var(--t-focus);outline-offset:4px}
.mip-profile__tip{position:absolute;bottom:24px;left:0;z-index:2;width:max-content;max-width:min(440px, 72vw);padding:10px 14px;border:1px solid rgba(242,169,59,.5);border-radius:10px;background:rgba(8,9,13,.97);box-shadow:0 18px 30px -16px rgba(0,0,0,.9);color:#ffffff;font-size:16px;font-weight:600;line-height:1.45;white-space:normal;transform:translateX(-50%);opacity:0;visibility:hidden;transition:opacity .15s ease}
.mip-profile__point.is-first .mip-profile__tip{transform:translateX(-16px)}
.mip-profile__point.is-late .mip-profile__tip{transform:translateX(calc(-100% + 16px))}
.mip-profile__point:hover .mip-profile__tip, .mip-profile__point:focus-visible .mip-profile__tip{opacity:1;visibility:visible}

@media (max-width:720px){
  .mip-profile__body{min-height:0;gap:34px;padding:26px 18px 22px}
  .mip-profile__id{grid-template-columns:minmax(0, 1fr);gap:18px}
  .mip-profile__avatar{width:108px;height:108px}
  .mip-profile__initials{font-size:36px}
  .mip-profile__badge{width:30px;height:30px;border-width:6px}
  .mip-profile .mip-profile__headline{font-size:18px}
  .mip-profile__scrim, .mip-profile.has-photo .mip-profile__scrim{background:linear-gradient(180deg,rgba(8,9,13,.50) 0%,rgba(8,9,13,.84) 48%,rgba(8,9,13,.95) 100%)}
  .mip-profile__rail{margin:0 14px 38px}
  .mip-profile__point > i{left:-10px;top:-10px;width:20px;height:20px}
  .mip-profile__point.is-now > i{left:-14px;top:-14px;width:28px;height:28px}
}
@media (max-width:640px){.mip-profile__point.is-minor > b{display:none}}
@media (prefers-reduced-motion:reduce){
  .mip-profile__tip, .mip-profile__link .mip-glyph:last-child{transition:none}
}
