/* Awaken profile, the lanyard badge (awaken-profile.js beside this).
   Piloted in Awaken Ops from 2026-11-08 (Paul); when it's settled it
   replaces ../awaken-profile.css and goes out to every app. Load it after
   the app's own tokens.

   Colours and type come from the Awaken family's tokens (--surface,
   --surface-2, --ink, --ink-2, --ink-3, --line, --line-soft, --line-strong,
   --ok, --err, --orange-text or --accent, --font or --font-ui,
   --font-display); the values after each comma are the light ones, for a
   page that defines none. The gradient (strap, ring, band, initials, the
   current app's mark) is the badge's, and the only colour that isn't a
   token. In dark mode an app sets --aw-profile-sheen and
   --aw-profile-glare lower.

   The pieces, outside in: the dialog is the dimmed page. The rig is where
   the card hangs (higher when the back needs room); drop is the settle in
   and the lift out; swing is the sway, pivoting where the lanyard fades;
   persp holds the card's 3D apart from the clip, which is drawn over it;
   tilt leans toward the pointer, pivoting at the lanyard slot; card is
   the turn, about the slot; the faces carry the size and grow. Both faces
   share the corners, border, shadow and the slot cut through. */

.aw-profile{
  --aw-grad:linear-gradient(45deg,#E80E8A 0%,#EE4137 50%,#F59220 100%);
  --aw-grad-h:linear-gradient(90deg,#E80E8A 0%,#EE4137 50%,#F59220 100%);
  --aw-focus:0 0 0 2px var(--surface,#FFFFFF),0 0 0 4px var(--orange-text,var(--accent,#C4342A));
  --aw-sheen:var(--aw-profile-sheen,rgba(255,255,255,.5));
  --aw-glare:var(--aw-profile-glare,rgba(255,255,255,.55));
  --aw-card-shadow:0 10px 26px -14px rgba(0,0,0,.35),0 34px 70px -28px rgba(0,0,0,.6);
  position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:none;overflow:hidden;
  color:var(--ink,#1F1B17);font-family:var(--font,var(--font-ui,'Circular',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif));
  font-size:14px;line-height:1.45;-webkit-font-smoothing:antialiased;box-sizing:border-box}
.aw-profile:focus{outline:none}
.aw-profile *,.aw-profile *::before,.aw-profile *::after{box-sizing:border-box}
.aw-profile::backdrop{background:rgba(22,19,15,0);transition:background .35s ease}
.aw-profile.aw-profile-dim::backdrop{background:rgba(22,19,15,.62)}
.aw-profile button,.aw-profile input{font:inherit;color:inherit}
.aw-profile button:focus-visible,.aw-profile a:focus-visible,.aw-profile input:focus-visible{outline:none;box-shadow:var(--aw-focus)}

.aw-profile-rig,.aw-profile-drop,.aw-profile-swing,.aw-profile-persp,.aw-profile-tilt,.aw-profile-straps{position:absolute;left:0;top:0;width:0;height:0}
.aw-profile-rig{left:50%}
.aw-profile-swing{transform-origin:0 -150px}
/* The card's 3D, in a layer of its own under the clip. */
.aw-profile-persp{perspective:1700px;perspective-origin:0 260px}
.aw-profile-tilt{transform-style:preserve-3d;transform-origin:0 26px;transform:rotateX(var(--aw-rx,0deg)) rotateY(var(--aw-ry,0deg))}
/* The card is a point at the lanyard slot that only turns; the faces hang
   from it and carry the size. Nothing that turns depends on its own size,
   so Safari can't leave the card off-centre while the back grows. And the
   point has no box of its own to sit in the back's plane and catch the
   pointer between the buttons. */
.aw-profile-card{position:absolute;left:0;top:0;width:0;height:0;transform-style:preserve-3d;transform-origin:0 25px;pointer-events:none}

/* The lanyard: a short length of two straps meeting at the clip, fading
   out above it, printed with the name. The swing pivots where it fades. */
.aw-profile-strap{position:absolute;bottom:calc(100% - 2px);width:22px;height:150px;transform-origin:50% 100%;overflow:hidden;
  -webkit-mask-image:linear-gradient(to top,#000 35%,transparent);mask-image:linear-gradient(to top,#000 35%,transparent);
  display:flex;justify-content:center;pointer-events:none;
  background:
    repeating-linear-gradient(0deg,rgba(0,0,0,.06) 0 1px,transparent 1px 3px),
    linear-gradient(90deg,rgba(0,0,0,.22),transparent 22%,transparent 78%,rgba(0,0,0,.22)),
    linear-gradient(90deg,#E80E8A,#EE4137 55%,#F59220)}
.aw-profile-strap.aw-l{left:-17px;transform:rotate(-7deg)}
.aw-profile-strap.aw-r{left:-5px;transform:rotate(7deg)}
.aw-profile-strap span{writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap;color:rgba(255,255,255,.92);
  font-size:11px;font-weight:800;letter-spacing:.34em;line-height:22px;text-transform:uppercase}
.aw-profile-strap.aw-r span{transform:none}
.aw-profile-clip{position:absolute;left:-22px;top:-20px;width:44px;height:50px;pointer-events:none;filter:drop-shadow(0 2px 2px rgba(0,0,0,.35))}
/* lanyard: false: the badge on its own (the Leadership Hub, 2026-11-10). */
.aw-profile-bare .aw-profile-straps,.aw-profile-bare .aw-profile-clip{display:none}

.aw-profile-face{position:absolute;left:0;top:0;width:300px;height:478px;margin-left:-150px;pointer-events:auto;border-radius:20px;overflow:hidden;backface-visibility:hidden;-webkit-backface-visibility:hidden;
  border:1px solid var(--line,#E4DFD7);box-shadow:var(--aw-card-shadow);isolation:isolate}
/* The surface, with the lanyard slot cut out of it (58 x 11, 20px down). */
/* Everything on a face carries the face's corners itself (border-radius: inherit), so they stay round where a
   browser doesn't clip a turning card's children to them (Safari; Paul, 2026-11-10: the back's bottom corners). */
.aw-profile-face::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:var(--surface,#FFFFFF);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='58' height='11'%3E%3Crect width='58' height='11' rx='5.5'/%3E%3C/svg%3E") 50% 20px/58px 11px no-repeat,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='58' height='11'%3E%3Crect width='58' height='11' rx='5.5'/%3E%3C/svg%3E") 50% 20px/58px 11px no-repeat exclude,linear-gradient(#000 0 0)}
.aw-profile-back{transform:rotateY(180deg)}
/* The face turned away is gone once the turn ends, so it can't be hit or drawn. */
.aw-profile:not(.aw-profile-turning):not(.aw-profile-still) .aw-profile-face[inert]{visibility:hidden}
.aw-profile-slot{position:absolute;left:50%;top:20px;width:58px;height:11px;margin-left:-29px;border-radius:999px;
  box-shadow:0 0 0 1px var(--line,#E4DFD7),0 -1px 1px 1px rgba(0,0,0,.14)}
.aw-profile-glare{position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:var(--aw-glare-on,0);mix-blend-mode:soft-light;
  background:radial-gradient(circle at var(--aw-gx,50%) var(--aw-gy,30%),var(--aw-glare) 0%,transparent 55%)}
.aw-profile-sheen{position:absolute;inset:0;border-radius:inherit;pointer-events:none;transform:translateX(-120%);
  background:linear-gradient(105deg,transparent 35%,var(--aw-sheen) 50%,transparent 65%)}
/* The band is drawn on a face-sized layer, so its ends follow the bottom corners. */
.aw-profile-band{position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:var(--aw-grad-h) 0 100%/100% 10px no-repeat}

/* Front: the sign-in's badge, with campus and badge number at the foot. */
.aw-profile-front-in{position:absolute;left:0;top:0;width:300px;height:478px;display:flex;flex-direction:column;align-items:center;padding:51px 22px 10px;text-align:center}
.aw-profile-hit{position:absolute;inset:0;z-index:2;border:0;background:none;cursor:pointer;border-radius:20px}
.aw-profile .aw-profile-hit:focus-visible{box-shadow:inset 0 0 0 3px var(--orange-text,var(--accent,#C4342A))}
/* Focus that followed a click on turn-over: no ring (awaken-profile.js, follow). */
.aw-profile .aw-profile-face [data-aw-quiet]:focus-visible{box-shadow:none}
.aw-profile-turn-ico{position:absolute;top:12px;right:12px;width:30px;height:30px;display:grid;place-items:center;border-radius:999px;color:var(--ink-3,#786D60);
  opacity:0;transition:opacity .3s ease 1.1s,color .2s,background .2s}
.aw-profile-front:hover .aw-profile-turn-ico{color:var(--ink,#1F1B17);background:var(--line-soft,#F0EBE3)}
.aw-profile-issuer{display:flex;align-items:center;justify-content:center;gap:8px;font-size:.75rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-2,#574E45)}
.aw-profile-issuer[hidden],.aw-profile-issuer img[hidden]{display:none}
.aw-profile-issuer img{width:20px;height:20px;object-fit:contain}
.aw-profile-photo{position:relative;width:152px;height:152px;margin:auto auto 18px;flex:none}
.aw-profile-ring{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}
.aw-profile-ring circle{fill:none;stroke-width:3.5;stroke-linecap:round;stroke-dasharray:396;stroke-dashoffset:396;transition:stroke-dashoffset .72s cubic-bezier(.65,0,.25,1) .1s}
.aw-profile-pic{position:absolute;inset:11px;border-radius:50%;overflow:hidden;background:var(--surface-2,#FBF9F5);
  opacity:0;transform:scale(.72);filter:blur(10px);transition:opacity .42s ease .35s,transform .56s cubic-bezier(.2,1.25,.35,1) .35s,filter .48s ease .35s}
.aw-profile-pic img,.aw-profile-mini img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.aw-profile-initials{width:100%;height:100%;display:grid;place-items:center;background:var(--aw-grad);color:#fff;font-weight:800;font-size:2.75rem;letter-spacing:.02em}
.aw-profile-who{font-family:var(--font-display,'Quarto',Georgia,serif);font-weight:700;font-size:1.75rem;line-height:1.1;letter-spacing:-.01em;text-wrap:balance;
  overflow-wrap:anywhere;color:var(--ink,#1F1B17);opacity:0;transform:translateY(10px);transition:opacity .38s ease .6s,transform .46s cubic-bezier(.2,.8,.3,1) .6s}
.aw-profile-chips{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin:10px 0 auto;opacity:0;transform:translateY(8px);
  transition:opacity .36s ease .72s,transform .42s cubic-bezier(.2,.8,.3,1) .72s}
.aw-profile-chips span{font-size:.75rem;font-weight:700;padding:4px 12px;border-radius:999px;border:1.5px solid var(--line,#E4DFD7);color:var(--ink-2,#574E45);white-space:nowrap}
.aw-profile-chips .aw-profile-ok-chip{border-color:transparent;color:var(--ok,#0E7050);background:color-mix(in srgb,var(--ok,#0E7050) 14%,transparent)}
/* Campus and badge number side by side, centred, split by a dashed line. */
.aw-profile-id{align-self:stretch;display:grid;grid-template-columns:1fr 1fr;margin:20px -22px 0;padding:14px 0 6px;border-top:1px dashed var(--line,#E4DFD7);
  opacity:0;transition:opacity .36s ease .84s}
.aw-profile-id div{display:grid;gap:3px;padding:0 10px;min-width:0}
.aw-profile-id div+div{border-left:1px dashed var(--line,#E4DFD7)}
.aw-profile-id div[hidden]{display:none}
.aw-profile-id div[hidden]+div,.aw-profile-id div:only-child{grid-column:1 / -1;border-left:0}
.aw-profile-id dt{font-size:.6875rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-3,#786D60)}
.aw-profile-id dd{margin:0;font-size:.8125rem;font-weight:700;color:var(--ink,#1F1B17);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
.aw-profile-num{letter-spacing:.06em}
.aw-profile-on .aw-profile-ring circle{stroke-dashoffset:0}
.aw-profile-on .aw-profile-pic{opacity:1;transform:none;filter:none}
.aw-profile-on .aw-profile-who,.aw-profile-on .aw-profile-chips{opacity:1;transform:none}
.aw-profile-on .aw-profile-id,.aw-profile-on .aw-profile-turn-ico{opacity:1}
.aw-profile-on .aw-profile-front .aw-profile-sheen{transform:translateX(120%);transition:transform .9s ease-in-out .95s}

/* Back: who you are, your apps, the app's own things, photo, sign-ins, sign out. */
.aw-profile-back-in{position:absolute;left:0;top:0;width:var(--aw-bw,460px);height:var(--aw-bh,640px);display:flex;flex-direction:column}
.aw-profile-top{flex:none;position:relative;height:50px}
.aw-profile-ibtn{position:absolute;top:8px;display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:999px;background:none;color:var(--ink-2,#574E45);cursor:pointer}
.aw-profile-ibtn:hover{background:var(--line-soft,#F0EBE3);color:var(--ink,#1F1B17)}
.aw-profile-ibtn.aw-turn{left:10px}
.aw-profile-ibtn.aw-x{right:10px}
.aw-profile-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:4px 24px 20px;scrollbar-width:thin}
.aw-profile-me{display:flex;align-items:center;gap:16px;margin-bottom:22px}
.aw-profile-mini{position:relative;flex:none;width:68px;height:68px}
.aw-profile-mini svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}
.aw-profile-mini circle{fill:none;stroke-width:3}
.aw-profile-mini .aw-profile-dot{position:absolute;inset:6px;border-radius:50%;overflow:hidden}
.aw-profile-mini .aw-profile-initials{font-size:1.15rem}
.aw-profile-me-t{min-width:0;flex:1}
.aw-profile-me-t h2{margin:0;font-family:var(--font-display,'Quarto',Georgia,serif);font-size:1.6rem;line-height:1.1;font-weight:700;letter-spacing:-.01em;overflow-wrap:anywhere;color:var(--ink,#1F1B17)}
.aw-profile-me-t p{margin:3px 0 0;color:var(--ink-2,#574E45);font-weight:700;font-size:13px}
.aw-profile-quiet{display:inline-flex;align-items:center;flex:none;min-height:32px;padding:4px 8px;border:0;border-radius:8px;background:none;color:var(--ink-2,#574E45);
  font-size:13px;font-weight:700;cursor:pointer;text-decoration:none;white-space:nowrap}
.aw-profile-me-t .aw-profile-quiet{margin-left:-8px}
.aw-profile-quiet:hover{background:var(--line-soft,#F0EBE3);color:var(--ink,#1F1B17)}
.aw-profile-k{display:block;margin:0 0 8px;font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3,#786D60)}
.aw-profile-sec+.aw-profile-sec{margin-top:22px}
.aw-profile-apps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.aw-profile-app{position:relative;display:flex;flex-direction:column;gap:10px;height:100%;min-height:104px;padding:14px;border-radius:14px;border:1px solid var(--line,#E4DFD7);
  background:var(--surface-2,#FBF9F5);text-decoration:none;color:inherit;transition:border-color .2s,transform .2s cubic-bezier(.2,.8,.3,1),box-shadow .2s}
a.aw-profile-app:hover{border-color:var(--line-strong,#9E9384);transform:translateY(-2px);box-shadow:0 10px 20px -16px rgba(0,0,0,.5)}
.aw-profile-app .aw-ico{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:var(--surface,#FFFFFF);border:1px solid var(--line,#E4DFD7);
  color:var(--ink-2,#574E45);font-weight:800}
.aw-profile-app.aw-here .aw-ico{background:var(--aw-grad);border-color:transparent;color:#fff}
.aw-profile-app svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.aw-profile-app b{display:block;font-weight:700;line-height:1.2;color:var(--ink,#1F1B17)}
.aw-profile-app small{display:block;margin-top:2px;font-size:12px;color:var(--ink-3,#786D60);line-height:1.3}
.aw-profile-app .aw-go{position:absolute;top:12px;right:12px;color:var(--ink-3,#786D60);opacity:0;transform:translate(-3px,3px);transition:opacity .2s,transform .2s}
a.aw-profile-app:hover .aw-go,a.aw-profile-app:focus-visible .aw-go{opacity:1;transform:none}
.aw-profile-app .aw-here-tag{position:absolute;top:12px;right:12px;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:800;color:var(--ok,#0E7050);
  background:color-mix(in srgb,var(--ok,#0E7050) 14%,transparent)}
.aw-profile-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:12px;background:var(--surface-2,#FBF9F5);border:1px solid var(--line-soft,#F0EBE3)}
.aw-profile-row b{display:block;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.aw-profile-note{margin:8px 0 0;font-size:13px;color:var(--ink-3,#786D60)}
.aw-profile-logins{list-style:none;margin:0;padding:0;border:1px solid var(--line-soft,#F0EBE3);border-radius:12px;background:var(--surface-2,#FBF9F5)}
.aw-profile-logins li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;min-height:56px}
.aw-profile-logins li+li{border-top:1px solid var(--line-soft,#F0EBE3)}
.aw-profile-login{min-width:0}
.aw-profile-login b{display:block;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.aw-profile-login small{display:block;font-size:12px;color:var(--ink-3,#786D60)}
.aw-profile-now{flex:none;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:700;color:var(--ok,#0E7050);background:color-mix(in srgb,var(--ok,#0E7050) 14%,transparent)}
.aw-profile-ghost{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;margin-top:10px;padding:10px 20px;border:1.5px solid var(--line-strong,#9E9384);
  border-radius:999px;background:var(--surface,#FFFFFF);color:var(--ink,#1F1B17);font-weight:700;cursor:pointer}
.aw-profile-ghost:hover{border-color:var(--ink-3,#786D60)}
.aw-profile-ghost:disabled,.aw-profile-quiet:disabled{opacity:.6;cursor:default}
.aw-profile-k+.aw-profile-ghost{margin-top:0}
.aw-profile-edit{display:flex;gap:8px;align-items:center;margin-top:6px}
.aw-profile-edit input{flex:1;min-width:0;min-height:44px;padding:10px 12px;font-size:15px;color:var(--ink,#1F1B17);background:var(--surface,#FFFFFF);
  border:1.5px solid var(--line-strong,#9E9384);border-radius:8px}
.aw-profile-edit .aw-profile-ghost{width:auto;margin:0}
.aw-profile-ok,.aw-profile-err,.aw-profile-wait{margin:14px 0 0;padding:10px 12px;border-radius:10px;font-weight:700;font-size:13px}
.aw-profile-ok{color:var(--ok,#0E7050);background:color-mix(in srgb,var(--ok,#0E7050) 12%,transparent)}
.aw-profile-err{color:var(--err,var(--crit,#C5221A));background:color-mix(in srgb,var(--err,var(--crit,#C5221A)) 10%,transparent)}
.aw-profile-wait{margin:0;padding:0;color:var(--ink-3,#786D60)}
.aw-profile-signout{margin-top:22px;border-color:var(--line,#E4DFD7)}
.aw-profile-foot{flex:none;display:flex;justify-content:space-between;gap:12px;padding:12px 20px 22px;border-top:1px dashed var(--line,#E4DFD7);
  font-size:.6875rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3,#786D60)}
/* The back arrives in order once it's turned toward you. */
.aw-profile-back .aw-rise{opacity:0;transform:translateY(10px);transition:opacity .3s ease,transform .45s cubic-bezier(.2,.8,.3,1);transition-delay:calc(var(--aw-i,0) * 55ms)}
.aw-profile-back-on .aw-profile-back .aw-rise{opacity:1;transform:none}
.aw-profile-back-on .aw-profile-back .aw-profile-sheen{transform:translateX(120%);transition:transform 1s ease-in-out .15s}

.aw-profile-hint{position:absolute;left:0;top:500px;width:260px;margin:0 0 0 -130px;text-align:center;color:rgba(255,255,255,.8);font-size:13px;font-weight:700;
  opacity:0;transition:opacity .3s ease;pointer-events:none}
.aw-profile.aw-profile-hinting .aw-profile-hint{opacity:1;transition-delay:.4s}

/* Quick arrival (every open after the first of the day): the face is
   already drawn as it falls, with no pass of light. */
.aw-profile.aw-profile-quick .aw-profile-front *{transition-delay:0s !important;transition-duration:.2s !important}
.aw-profile.aw-profile-quick .aw-profile-front .aw-profile-sheen{display:none}

@media (max-width:520px){
  .aw-profile-edit{flex-wrap:wrap}
  .aw-profile-edit input{flex-basis:100%;font-size:16px}
  .aw-profile-scroll{padding:4px 16px 18px}
}
@media (max-width:400px){
  .aw-profile-who{font-size:1.625rem}
}

/* Reduced motion: no settle, sway, tilt or turn; short fades instead. */
.aw-profile.aw-profile-still .aw-profile-face{transition:opacity .2s ease}
.aw-profile.aw-profile-still .aw-profile-back{transform:none;opacity:0}
.aw-profile.aw-profile-still.aw-profile-on-back .aw-profile-back{opacity:1}
.aw-profile.aw-profile-still.aw-profile-on-back .aw-profile-front{opacity:0}
.aw-profile.aw-profile-still .aw-profile-sheen{display:none}
.aw-profile.aw-profile-still *{transition-delay:0s !important;transition-duration:.15s !important}
.aw-profile.aw-profile-still .aw-profile-pic,.aw-profile.aw-profile-still .aw-profile-who,.aw-profile.aw-profile-still .aw-profile-chips,
.aw-profile.aw-profile-still .aw-rise{transform:none !important;filter:none !important}
