/* ui.css — Liquid Glass controls, account menu, tab bar, effects, status dots, avatar groups, steps, timeline. */

/* ---------- Liquid Glass: ONLY for the floating control layer (bars, menus, buttons). Content stays opaque. ---------- */
.glass, .top, .tabbar {
  background: rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .7);
  /* layered highlights: a bright top edge and a soft inner glow, like light caught in the edge of the glass */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 0 rgba(16, 24, 40, .06), inset 0 0 0 1px rgba(255, 255, 255, .25), 0 10px 30px rgba(16, 24, 40, .12);
}
.top { border-width: 0 0 1px; box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .6), 0 6px 24px rgba(16, 24, 40, .06); }
/* over the dark hero the controls tint dark so text stays readable */
.top.on-dark { background: rgba(11, 59, 55, .72); border-color: rgba(255, 255, 255, .12); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .08), 0 6px 24px rgba(0, 0, 0, .18); }
/* buttons: capsule shapes with a lit top edge */
.btn { border-radius: 999px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -1px 0 rgba(0, 0, 0, .12); }
.btn.ghost { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 0 0 1px rgba(15, 118, 110, .12); }
/* if the device asks for less transparency, the glass becomes solid */
@media (prefers-reduced-transparency: reduce) {
  .glass, .top, .tabbar, .top.on-dark { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .top.on-dark { background: #0b3b37; }
}

/* ---------- hover effects: only on devices that can really hover (mouse, trackpad). Nothing is hidden behind hover. ---------- */
/* resting state + transitions (harmless on touch screens) */
.btn, .nav-link, .acct-menu a, .acct-menu button, .list-row, .page-nav a, .dash-tabs a, .popular a, .foot-grid a, .tabbar a, .ms-mini, .table-wrap tbody tr, .chip, .acct-btn {
  transition: background-color .15s ease-out, color .15s ease-out, filter .15s ease-out;
}
.job-card, .cat-tile, .person, .t-card, .flow-card, .kpi, .how > div, .mock, .ms, .proposal, .list-row {
  position: relative; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .15s ease-out;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06);
}
.tilting { transition: transform .08s linear, box-shadow .2s ease; will-change: transform; }

@media (hover: hover) {
  /* hover highlight: a pale tint on buttons and rows (150 ms ease-out) */
  .btn:hover { filter: brightness(1.07) saturate(1.05); }
  .btn.ghost:hover, .btn.light:hover { background-color: #dff1ee; }
  .list-row:hover, .page-nav a:hover, .dash-tabs a:not([aria-current="page"]):hover, .acct-menu a:hover, .acct-menu button:hover,
  .ms-mini:hover, .table-wrap tbody tr:hover, .foot-grid a:hover, .chip:hover { background-color: #eef7f5; }
  .nav-link:hover { background-color: rgba(15, 118, 110, .08); }
  .tabbar a:not([aria-current="page"]):hover { background-color: rgba(15, 118, 110, .08); }
  
  /* hover lift on cards: up 4px, the shadow grows larger and softer (200 ms) */
  .job-card:hover, .cat-tile:hover, .person:hover, .flow-card:hover, .kpi:hover, .how > div:hover, .ms:hover, .proposal:hover, a.list-row:hover {
    transform: translateY(-4px); box-shadow: 0 18px 40px -8px rgba(16, 24, 40, .16), 0 4px 10px rgba(16, 24, 40, .05);
  }
  .t-card:hover, .mock:hover { box-shadow: 0 22px 48px -10px rgba(0, 0, 0, .35); }

  /* 3D tilt shine: a soft highlight that follows the pointer across the card */
  .tilting::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(circle at var(--sx, 50%) var(--sy, 50%), rgba(255, 255, 255, .45), rgba(255, 255, 255, .08) 40%, transparent 70%);
    mix-blend-mode: soft-light;
  }

  /* cursor spotlight in dark cards: a glow at the pointer (--x, --y) that also lights up the nearest 1px border */
  .t-card, .l-close, .dark-card { position: relative; isolation: isolate; }
  .t-card::before, .l-close::before, .dark-card::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s ease; z-index: -1;
    background: radial-gradient(320px circle at var(--x, 50%) var(--y, 50%), rgba(94, 234, 212, .18), transparent 60%);
  }
  .t-card::after, .l-close::after, .dark-card::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s ease; padding: 1px;
    background: radial-gradient(180px circle at var(--x, 50%) var(--y, 50%), rgba(167, 243, 230, .95), transparent 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  }
  .t-card:hover::before, .t-card:hover::after, .l-close:hover::before, .l-close:hover::after, .dark-card:hover::before, .dark-card:hover::after { opacity: 1; }
}

/* ---------- account menu ---------- */
.acct { position: relative; }
.acct-btn { width: 32px; height: 32px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; font-family: inherit; font-weight: 700; font-size: .75rem; line-height: 1; color: #fff; background: linear-gradient(135deg, #0f766e, #14b8a6); box-shadow: 0 0 0 2px #fff; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; border-radius: 18px; padding: 6px; z-index: 50; background: rgba(255, 255, 255, .86); }
.acct-label { padding: 10px 12px 8px; display: grid; gap: 2px; } .acct-label b { color: var(--ink); } .acct-label span { color: var(--muted); font-size: .82rem; word-break: break-all; }
.acct-menu a, .acct-menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 12px; border: 0; background: none; font: inherit; color: var(--ink); text-decoration: none; cursor: pointer; }
.acct-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.on-dark .acct-btn { box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }

/* ---------- bottom tab bar ---------- */
.tabbar { position: fixed; z-index: 40; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, 1fr);
  width: min(460px, calc(100% - 24px)); border-radius: 999px; padding: 6px; }
.tabbar a { display: grid; justify-items: center; gap: 2px; padding: 7px 4px; border-radius: 999px; text-decoration: none; color: #6b7385; font-size: .72rem; font-weight: 700; transition: background-color .15s, color .15s; }
.tabbar a[aria-current="page"] { color: var(--brand); background: rgba(15, 118, 110, .12); }
.tb-icon { position: relative; width: 24px; height: 24px; }
.tb-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a[aria-current="page"] svg { stroke-width: 2.2; }
.tb-badge { position: absolute; top: -6px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--bad); color: #fff; font-size: .68rem; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
body.has-tabbar { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

/* ---------- status dot (presence) ---------- */
.av-wrap { position: relative; display: inline-flex; flex: none; }
.status-dot { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 2px var(--card, #fff); background: #9aa3b2; }
.av-wrap.lg .status-dot { width: 20px; height: 20px; right: 2px; bottom: 2px; box-shadow: 0 0 0 3px #fff; }
.av-wrap.sm .status-dot { width: 9px; height: 9px; }
.status-dot.is-available { background: #16a34a; } .status-dot.is-away { background: #f59e0b; } .status-dot.is-busy { background: #dc2626; } .status-dot.is-offline { background: #9aa3b2; }
.status-dot .ping { position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1.4s cubic-bezier(0, 0, .2, 1) infinite; z-index: -1; }
@keyframes ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }
.presence-text { font-size: .78rem; font-weight: 700; } .presence-text.is-available { color: #15803d; } .presence-text.is-away { color: #b45309; } .presence-text.is-busy { color: #b91c1c; } .presence-text.is-offline { color: #6b7385; }

/* ---------- avatar group ---------- */
.av-group { display: inline-flex; align-items: center; }
.av-group .avatar { box-shadow: 0 0 0 2px #fff; position: relative; }
.av-group .avatar + .avatar { margin-left: -9px; }
.av-group .more { background: #e4e7ee; color: #3b4558; }

/* ---------- steps indicator ---------- */
.steps-ind { list-style: none; padding: 0; margin: 14px 0 20px; display: flex; align-items: center; gap: 0; }
.steps-ind .st { display: flex; align-items: center; gap: 8px; flex: none; }
.st-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .88rem; border: 2px solid #cfd5df; color: #8a93a4; background: #fff; }
.st-label { font-weight: 700; font-size: .9rem; color: #8a93a4; }
.st.done .st-dot { background: var(--brand); border-color: var(--brand); color: #fff; } .st.done .st-label { color: var(--ink); }
.st.current .st-dot { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 4px rgba(15, 118, 110, .15); } .st.current .st-label { color: var(--brand); }
.st-sep { flex: 1; height: 2px; background: #dfe3ea; margin: 0 10px; min-width: 18px; list-style: none; }
.st.done + .st-sep { background: var(--brand); }
@media (max-width: 640px) { .st-label { display: none; } .st.current .st-label { display: inline; } }

/* ---------- timeline (time | dot + connector | content) ---------- */
.tl { list-style: none; padding: 0; margin: 12px 0; }
.tl-item { display: grid; grid-template-columns: 118px 24px 1fr; column-gap: 12px; }
.tl-time { text-align: right; color: var(--muted); font-size: .8rem; padding-top: 1px; font-variant-numeric: tabular-nums; }
.tl-sep { display: flex; flex-direction: column; align-items: center; }
.tl-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px #e6f4f2; margin-top: 3px; flex: none; }
.tl-line { width: 2px; flex: 1; background: #d9dee6; margin: 4px 0; min-height: 18px; }
.tl-content { padding-bottom: 18px; display: grid; gap: 2px; } .tl-content span { color: var(--muted); font-size: .9rem; }
.tl-item.good .tl-dot { background: var(--good); box-shadow: 0 0 0 3px var(--good-bg); }
.tl-item.bad .tl-dot { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-bg); }
.tl-item.loading .tl-dot { background: #fff; border: 2px solid var(--brand); border-right-color: transparent; animation: spin 1s linear infinite; box-shadow: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) { .tl-item { grid-template-columns: 22px 1fr; } .tl-time { grid-column: 2; text-align: left; order: 2; } .tl-sep { grid-row: span 2; } .tl-content { order: 3; grid-column: 2; } }

/* ---------- reduce motion: nothing tilts, pings or spins ---------- */
@media (prefers-reduced-motion: reduce) {
  .job-card:hover, .cat-tile:hover, .person:hover, .flow-card:hover, .kpi:hover, .how > div:hover, .ms:hover, .proposal:hover, a.list-row:hover { transform: none; }
  .status-dot .ping, .tl-item.loading .tl-dot { animation: none; }
  .enter { animation: none !important; }
}

/* =====================================================================================
   Liquid Glass, animated. Glass lives ONLY on the floating controls (header, tab bar, its lens).
   Cards are content: they stay opaque and only catch a moving glint of light on their edge.
   ===================================================================================== */
@property --ga { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* --- header: a lens, not frost. Edge light that bends brighter at the top, plus a specular spot under the pointer --- */
.top { transition: background-color .35s ease, box-shadow .35s ease, border-color .35s ease, transform .3s ease; }
.top::before { /* refraction-like rim: bright top edge, a dim lower edge, a hint of colour where light bends */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .15) 40%, rgba(94, 234, 212, .25) 85%, rgba(255, 255, 255, .5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .7; }
.top::after { /* specular highlight that follows the pointer across the bar */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(220px 90px at var(--hx, 50%) 0%, rgba(255, 255, 255, .55), transparent 70%); mix-blend-mode: soft-light; }
.top:hover::after { opacity: 1; }
.top > .wrap { position: relative; z-index: 1; }
/* Apple-style floating capsule from the start (concentric with the tab bar below). Fixed, so it never shifts the page. */
.top.floating { position: fixed; top: 10px; left: 0; right: 0; width: min(1280px, calc(100% - 24px)); margin-inline: auto; border-radius: 999px; border-width: 1px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 0 rgba(16, 24, 40, .06), 0 16px 40px rgba(16, 24, 40, .14); }
.top.floating > .wrap { padding-inline: 20px 10px; }
.top.floating .nav { height: 56px; }
.top.on-dark.floating { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 16px 40px rgba(0, 0, 0, .3); }
.top.on-dark::before { background: linear-gradient(180deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, .04) 45%, rgba(94, 234, 212, .3)); }
/* the bar adapts its tint to what is under it so text stays readable: light glass over light content, dark glass over dark */
.top.on-light-strong { background: rgba(255, 255, 255, .8); }

/* --- tab bar: a glass lens that slides to the tab you point at, then settles back on the current page --- */
.tabbar { isolation: isolate; }
.tabbar::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .1) 50%, rgba(94, 234, 212, .3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.tb-lens { position: absolute; z-index: -1; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 999px; pointer-events: none;
  background: rgba(15, 118, 110, .13); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 0 rgba(15, 118, 110, .12), 0 2px 8px rgba(15, 118, 110, .12);
  transition: transform .5s cubic-bezier(.2, 1.1, .3, 1.15), width .5s cubic-bezier(.2, 1.1, .3, 1.15); }
.tabbar.has-lens a[aria-current="page"] { background: none; }
.tabbar a { position: relative; transition: color .15s ease-out, transform .25s cubic-bezier(.2, 1.2, .3, 1.2); }
.tabbar a:active { transform: scale(.92); }
.tabbar a:focus-visible { outline: 3px solid #0f766e; outline-offset: -3px; border-radius: 999px; }
.tabbar.on-dark { background: rgba(11, 59, 55, .72); border-color: rgba(255, 255, 255, .14); }
.tabbar.on-dark a { color: #cde9e4; } .tabbar.on-dark a[aria-current="page"] { color: #fff; } .tabbar.on-dark .tb-lens { background: rgba(255, 255, 255, .16); }
.tabbar.on-dark a:focus-visible { outline-color: #ffd166; }

/* --- glass buttons squish a little when pressed, like a drop of liquid --- */
.btn { transition: background-color .15s ease-out, filter .15s ease-out, transform .25s cubic-bezier(.2, 1.2, .3, 1.2), box-shadow .2s ease; }
.btn:active { transform: scale(.96); }

/* --- cards (content, still opaque): a glint of glass light runs around the edge on hover --- */
.job-card, .cat-tile, .person, .kpi, .flow-card, .ms, .proposal, .how > div, .mock, .panel.glint { position: relative; }
.job-card::before, .cat-tile::before, .person::before, .kpi::before, .flow-card::before, .ms::before, .proposal::before, .how > div::before, .mock::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 2px; opacity: 0; transition: opacity .35s ease;
  background: conic-gradient(from var(--ga), transparent 0deg, rgba(94, 234, 212, .7) 25deg, rgba(15, 118, 110, .95) 55deg, rgba(204, 251, 241, .9) 75deg, transparent 115deg, transparent 195deg, rgba(20, 184, 166, .55) 235deg, transparent 285deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
@keyframes glint { to { --ga: 360deg; } }
@media (hover: hover) {
  .job-card:hover::before, .cat-tile:hover::before, .person:hover::before, .kpi:hover::before, .flow-card:hover::before, .ms:hover::before,
  .proposal:hover::before, .how > div:hover::before, .mock:hover::before { opacity: 1; animation: glint 2.8s linear infinite; }
}
/* keyboard users get the same edge light on the card they are focused in */
.job-card:focus-within::before, .cat-tile:focus-visible::before, .person:focus-visible::before { opacity: 1; }

/* --- Reduce Motion: nothing slides, morphs, squishes or spins; the glint becomes a still edge light --- */
@media (prefers-reduced-motion: reduce) {
  .top, .tb-lens, .tabbar a, .btn { transition: none !important; }
  .btn:active, .tabbar a:active { transform: none; }
  .job-card:hover::before, .cat-tile:hover::before, .person:hover::before, .kpi:hover::before, .flow-card:hover::before, .ms:hover::before,
  .proposal:hover::before, .how > div:hover::before, .mock:hover::before { animation: none; }
}
/* --- Reduce Transparency: every glass surface turns solid, the tint still follows the content --- */
@media (prefers-reduced-transparency: reduce) {
  .top.floating, .tabbar { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .top.on-dark, .tabbar.on-dark { background: #0b3b37; }
  .top::after { display: none; }
}

/* ---------- magnetic controls, stronger 3D tilt with depth, header lean, bobbing hero cards ---------- */
/* while the pointer drags them they follow quickly; when it leaves they spring back with a little overshoot */
button, .btn, input[type=submit], [role=button], .nav-link, .wallet, .acct-btn, .popular a, .tabbar a, .fed-btn, .logo, .who, .page-nav a, .dash-tabs a, .link-arrow, .pill-eyebrow, .chip, .tag, .status, summary {
  transition: translate .5s cubic-bezier(.2, 1.4, .35, 1), scale .35s cubic-bezier(.2, 1.4, .35, 1), transform .25s ease, background-color .15s ease-out, color .15s ease-out, border-color .15s ease-out, filter .15s ease-out, box-shadow .2s ease; }
.magnet-on { transition: translate .12s ease-out, scale .2s ease-out, transform .25s ease, background-color .15s ease-out, color .15s ease-out, border-color .15s ease-out, filter .15s ease-out, box-shadow .2s ease !important; will-change: translate; }
.tag, .status { display: inline-flex; }
.nav-link, .wallet, .who, .link-arrow { display: inline-flex; }
/* cards ease back flat when the pointer leaves, and snap quickly while it moves */
.job-card, .cat-tile, .person, .t-card, .flow-card, .kpi, .how > div, .mock, .ms, .proposal { transform-style: preserve-3d; }
.tilting { transition: transform .1s ease-out, box-shadow .2s ease !important; box-shadow: 0 30px 60px -12px rgba(16, 24, 40, .28) !important; }
/* depth: inside a tilting hero card the content floats a little above the glass, so it moves in layers */
.l-hero .mock > * { transition: transform .4s cubic-bezier(.2, 1.2, .3, 1); }
.l-hero .mock.tilting > * { transform: translateZ(26px); }
.l-hero .mock.tilting > .row:first-child, .l-hero .mock.tilting > h4 { transform: translateZ(40px); }
/* the header lean */
.top { transform-origin: 50% 0; }
/* bobbing (uses the separate translate property, so it never fights the tilt transform) */
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.l-hero .mock.bob { animation: bob 6s ease-in-out infinite; }
.l-hero .mock.bob.offset { animation-duration: 7s; animation-delay: -3s; }
.l-hero .mock.bob:hover { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .l-hero .mock.bob { animation: none; }
  .l-hero .mock.tilting > * { transform: none; }
}

/* =====================================================================================
   Ripple, orbs, reveal, self-playing hero card + hover on everything
   ===================================================================================== */
/* ripple */
.has-ripple { position: relative; overflow: hidden; isolation: isolate; }
.ripple { position: absolute; border-radius: 50%; pointer-events: none; background: currentColor; opacity: .22; transform: scale(0); animation: ripple .6s ease-out forwards; z-index: 0; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* floating orbs behind the page (light page: soft teal and amber glows; they show between sections) */
.orbs { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); will-change: transform; }
.orb-1 { width: 560px; height: 560px; top: -160px; left: -140px; background: radial-gradient(circle, rgba(20, 184, 166, .22), transparent 70%); animation: orbDrift1 22s ease-in-out infinite; }
.orb-2 { width: 480px; height: 480px; top: 30%; right: -120px; background: radial-gradient(circle, rgba(56, 189, 248, .16), transparent 70%); animation: orbDrift2 27s ease-in-out infinite; }
.orb-3 { width: 420px; height: 420px; bottom: -120px; left: 30%; background: radial-gradient(circle, rgba(245, 158, 11, .12), transparent 70%); animation: orbDrift3 31s ease-in-out infinite; }
.orb-4 { width: 340px; height: 340px; top: 55%; left: -80px; background: radial-gradient(circle, rgba(15, 118, 110, .16), transparent 70%); animation: orbDrift4 24s ease-in-out infinite; }
@keyframes orbDrift1 { 0%, 100% { transform: translate(0, 0) scale(1); } 25% { transform: translate(90px, 60px) scale(1.08); } 50% { transform: translate(40px, 150px) scale(.95); } 75% { transform: translate(130px, 70px) scale(1.04); } }
@keyframes orbDrift2 { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(-90px, -110px) scale(1.1); } 66% { transform: translate(-40px, 70px) scale(.93); } }
@keyframes orbDrift3 { 0%, 100% { transform: translate(0, 0) scale(1); } 40% { transform: translate(70px, -90px) scale(1.06); } 80% { transform: translate(-50px, -40px) scale(.95); } }
@keyframes orbDrift4 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(110px, -70px) scale(1.1); } }
/* so the orbs can glow through, the plain page background becomes see-through (sections keep their own colours) */
body { background: transparent; } html { background: var(--bg); }

/* reveal on scroll (uses translate + opacity, so it never fights the tilt or the hover lift) */
[data-reveal] { opacity: 0; translate: 0 28px; transition: opacity .7s ease, translate .7s cubic-bezier(.2, .8, .25, 1), transform .2s ease, box-shadow .2s ease, background-color .15s ease-out, border-color .2s ease; }
[data-reveal].in { opacity: 1; translate: none; }

/* the self-playing hero card: a row flashes when its status changes */
@keyframes rowFlash { 0% { background: rgba(20, 184, 166, .22); } 100% { background: transparent; } }
.ms-mini.flash { animation: rowFlash 1s ease-out; border-radius: 8px; }
.ms-mini.flash .status, .ms-mini.flash .tick { animation: pop .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { 0% { scale: .6; } 100% { scale: 1; } }

/* soft spotlight on light panels and cards (the dark cards already have the brighter one) */
.panel { position: relative; }
.panel::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(420px circle at var(--x, 50%) var(--y, 50%), rgba(20, 184, 166, .07), transparent 60%); }

/* hover animation on everything else (only on devices that can hover; nothing is hidden behind it) */
@media (hover: hover) {
  .panel:hover::after { opacity: 1; }
  .panel { transition: box-shadow .25s ease, border-color .2s ease; }
  .panel:hover { box-shadow: 0 16px 40px -12px rgba(16, 24, 40, .14); border-color: #cfe5e1; }
  input:not([type=radio]):not([type=checkbox]):hover, select:hover, textarea:hover { border-color: #8fd3c8; box-shadow: 0 0 0 4px rgba(20, 184, 166, .08); }
  input, select, textarea { transition: border-color .15s ease-out, box-shadow .2s ease; }
  main a:not([class]):hover, .crumbs a:hover, .foot-grid a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
  .avatar { transition: scale .25s cubic-bezier(.2, 1.4, .35, 1), box-shadow .2s ease; }
  .avatar:hover, .av-group:hover .avatar { scale: 1.1; }
  .av-group:hover .avatar + .avatar { margin-left: -4px; }
  .av-group .avatar + .avatar { transition: margin .25s ease, scale .25s ease; }
  .tag:hover, .status:hover, .chip:hover { filter: brightness(.97) saturate(1.2); }
  .tl-item .tl-dot { transition: scale .25s cubic-bezier(.2, 1.4, .35, 1); }
  .tl-item:hover .tl-dot { scale: 1.35; }
  .tl-item:hover .tl-content b { color: var(--brand); }
  .st .st-dot { transition: scale .25s cubic-bezier(.2, 1.4, .35, 1), box-shadow .2s ease; }
  .st:hover .st-dot { scale: 1.12; }
  .stars { transition: letter-spacing .25s ease; }
  .job-card:hover .stars, .person:hover .stars, .review:hover .stars { letter-spacing: .06em; }
  .cat-tile .cat-ico { transition: scale .3s cubic-bezier(.2, 1.5, .35, 1), rotate .3s ease; display: inline-grid; }
  .cat-tile:hover .cat-ico { scale: 1.15; rotate: -8deg; }
  .roles-pick span { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
  .roles-pick label:hover span { border-color: #8fd3c8; box-shadow: 0 10px 26px -10px rgba(15, 118, 110, .35); }
  details > summary:hover { color: var(--brand); }
  .l-facts > div { transition: translate .25s ease; } .l-facts > div:hover { translate: 0 -3px; }
  .ms-mini { transition: background-color .15s ease-out; border-radius: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .orb, .ms-mini.flash, .ms-mini.flash .status, .ms-mini.flash .tick { animation: none !important; }
  [data-reveal] { opacity: 1; translate: none; }
  .avatar:hover, .tl-item:hover .tl-dot, .st:hover .st-dot, .cat-tile:hover .cat-ico { scale: none; rotate: none; }
}

/* while a number counts up, its moving digits keep the number's own size and colour (not the small label style) */
[data-counted] > span[aria-hidden="true"] { font: inherit; color: inherit; display: inline; letter-spacing: inherit; }

/* room for the fixed capsule header: 10px gap + 56px bar + 10px breathing space */
body { padding-top: 76px; }
/* the landing hero runs up behind the glass header, so there is no light strip above it */
body.landing { padding-top: 0; }
body.landing .l-hero { padding-top: calc(56px + 76px); min-height: 100svh; }
.auth { min-height: calc(100svh - 76px); }

/* ---------- header fits inside the capsule at every width ---------- */
.top .nav { min-width: 0; gap: 12px; }
.top .logo { min-width: 0; flex-shrink: 1; }
.top .logo span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#navRight { min-width: 0; flex-shrink: 0; gap: 10px; }
#navRight .acct, #navRight .acct-btn { flex: none; }
/* below laptop width the page links live in the bottom tab bar and your name in the account menu */
@media (max-width: 960px) { .top .nav .nav-link, .top .who { display: none; } }
@media (max-width: 420px) {
  .top.floating > .wrap { padding-inline: 12px 8px; }
  .top .logo { font-size: 1rem; gap: 8px; } .top .logo i { width: 30px; height: 30px; }
  .top .wallet { padding: 6px 10px; font-size: .85rem; }
}
@media (max-width: 340px) { .top .logo span { display: none; } }

/* ---------- the site's own confirm dialog and toasts ---------- */
.ff-dialog { border: 0; padding: 0; border-radius: 22px; width: min(440px, calc(100% - 32px)); background: #fff; color: var(--ink); box-shadow: 0 30px 80px rgba(16, 24, 40, .35); }
.ff-dialog::backdrop { background: rgba(8, 30, 28, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ff-dialog form { padding: 24px; }
.ff-dialog h2 { margin: 0 0 8px; font-size: 1.2rem; } .ff-dialog p { margin: 0 0 8px; color: var(--muted); }
.ff-dialog-actions { justify-content: flex-end; gap: 10px; margin-top: 18px; }
.ff-dialog[open] { animation: dlgIn .25s cubic-bezier(.2, 1.2, .3, 1); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.ff-toasts { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: calc(96px + env(safe-area-inset-bottom)); display: grid; gap: 8px; width: min(460px, calc(100% - 24px)); pointer-events: none; }
.ff-toast { padding: 12px 16px; border-radius: 16px; font-weight: 600; color: #fff; background: #0f766e; box-shadow: 0 14px 34px rgba(16, 24, 40, .25); animation: dlgIn .3s ease; transition: opacity .35s ease, transform .35s ease; }
.ff-toast.error { background: #b42318; } .ff-toast.out { opacity: 0; transform: translateY(8px); }
@media (prefers-reduced-motion: reduce) { .ff-dialog[open], .ff-toast { animation: none; } }

/* ---------- milestone progress timeline (left to right; top to bottom on phones) ---------- */
.mtl-wrap { margin: 14px 0; }
.mtl-head { margin-bottom: 14px; gap: 8px; flex-wrap: wrap; }
.mtl { list-style: none; margin: 0; padding: 0 0 4px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); overflow-x: auto; }
.mtl-step { position: relative; padding-right: 14px; }
.mtl-step::before { content: ""; position: absolute; top: 17px; left: 40px; right: 4px; height: 3px; border-radius: 2px; background: #dfe3ea; }
.mtl-step:last-child::before { display: none; }
.mtl-step.done::before { background: var(--brand); }
.mtl-node { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .9rem;
  border: 2px solid #cfd5df; background: #fff; color: #8a93a4; transition: scale .25s cubic-bezier(.2, 1.4, .35, 1); }
.mtl-node svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mtl-step.done .mtl-node { background: var(--brand); border-color: var(--brand); color: #fff; }
.mtl-step.now .mtl-node { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 5px rgba(15, 118, 110, .14); animation: mtlPulse 2s ease-in-out infinite; }
.mtl-step.now.bad .mtl-node { border-color: var(--bad); color: var(--bad); box-shadow: 0 0 0 5px rgba(180, 35, 24, .12); }
.mtl-step.locked .mtl-node { background: #f1f3f7; border-style: dashed; color: #8a93a4; }
.mtl-body { display: grid; gap: 2px; margin-top: 10px; }
.mtl-body b { font-size: .95rem; }
.mtl-state { font-size: .84rem; font-weight: 700; color: var(--muted); }
.mtl-step.done .mtl-state { color: var(--good); } .mtl-step.now .mtl-state { color: var(--brand); } .mtl-step.now.bad .mtl-state { color: var(--bad); }
.mtl-step.locked .mtl-body { opacity: .7; }
.mtl-step.here .mtl-body b { text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 4px; }
@keyframes mtlPulse { 50% { box-shadow: 0 0 0 9px rgba(15, 118, 110, .06); } }
@media (hover: hover) { .mtl-step:hover .mtl-node { scale: 1.1; } }
@media (max-width: 640px) {
  .mtl { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; }
  .mtl-step { display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; padding: 0 0 16px; }
  .mtl-step::before { top: 40px; bottom: 4px; left: 17px; right: auto; width: 3px; height: auto; }
  .mtl-body { margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) { .mtl-step.now .mtl-node { animation: none; } }
/* a locked milestone's note in tables and cards */
.lock-note { display: inline-flex; gap: 6px; align-items: center; font-size: .84rem; font-weight: 600; color: var(--muted); }
.lock-note svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
