/* Team credential cards (index.html, about.html) and the network map (about.html hero).
   The cards carry no portraits on purpose: a large experience figure is the visual anchor. */

/* ---------- Credential cards ---------- */
.cred-card {
  background: #fff; border: 1px solid var(--line-l); border-radius: 2px;
  display: flex; flex-direction: column; padding: 28px;
}
.cred-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 16px; border-bottom: 1px solid var(--line-l);
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
}
.cred-head .area { color: var(--steel); font-weight: 500; white-space: nowrap; }
.cred-head .place { color: var(--muted); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.cred-figure { display: flex; align-items: flex-end; gap: 14px; margin: 28px 0 24px; position: relative; }
.cred-figure::before {
  content: ''; position: absolute; top: -10px; left: 0; width: 28px; height: 2px; background: var(--copper);
}
.cred-num {
  font-family: 'Space Grotesk', sans-serif; font-weight: 500; letter-spacing: -0.04em; line-height: 0.82;
  font-size: 76px; color: var(--ink);
}
.cred-unit {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  line-height: 1.55; color: var(--muted); padding-bottom: 4px;
}
.cred-figure .reddot-badge { margin-left: auto; align-self: center; }

.cred-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; letter-spacing: -0.02em; font-size: 22px; color: var(--ink); }
.cred-role { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); margin-top: 2px; }
.cred-bio { font-size: 14px; line-height: 1.75; color: var(--muted); margin-top: 18px; }

.cred-foot { margin-top: auto; padding-top: 22px; }
.cred-contact {
  display: grid; gap: 4px; padding: 14px 0; margin-bottom: 16px;
  border-top: 1px solid var(--line-l); border-bottom: 1px solid var(--line-l);
}
.cred-contact .k { font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); }
.cred-contact .v { font-size: 13.5px; color: var(--ink); font-weight: 500; }
.cred-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cred-tags span {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; padding: 6px 10px;
  background: var(--paper-2); color: var(--muted); border-radius: 2px;
}

/* Compact variant for the home page */
.cred-card--compact { padding: 24px; }
.cred-card--compact .cred-figure { margin: 26px 0 20px; }
.cred-card--compact .cred-num { font-size: 60px; }
.cred-card--compact .cred-name { font-size: 18px; font-weight: 600; }
.cred-card--compact .cred-bio { font-size: 13px; line-height: 1.7; margin-top: 14px; }

/* ---------- Network map (about.html hero) ---------- */
/* Below 1280px the map sits under the hero text; from 1280px it takes the right side. */
.net-panel { position: relative; z-index: 1; max-width: 1320px; margin: 0 auto; padding: 0 24px 72px; }
@media (min-width: 1024px) { .net-panel { padding: 0 40px 96px; } }
@media (min-width: 1280px) {
  .net-panel {
    position: absolute; top: 68px; right: 0; bottom: 0; width: 44%; max-width: none; margin: 0;
    padding: 40px 40px 40px 24px;
    display: flex; flex-direction: column; justify-content: center; gap: 20px;
  }
}
.net-meta { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
@media (max-width: 1279px) { .net-meta { display: none; } }

.net-plate {
  position: relative; background: var(--ink); border: 1px solid var(--line-d); border-radius: 2px; padding: 18px;
  max-width: 760px;
}
@media (min-width: 1280px) { .net-plate { max-width: none; } }
.net-map { position: relative; width: 100%; aspect-ratio: 1168 / 520; }
.net-map svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.net-map .grat  { stroke: rgba(122,157,184,0.14); stroke-width: 1; fill: none; }
.net-map .eq    { stroke: rgba(122,157,184,0.28); stroke-width: 1; stroke-dasharray: 10 4 2 4; fill: none; }
.net-map .land  { stroke: rgba(255,255,255,0.26); stroke-width: 3.6; stroke-linecap: round; fill: none; }
.net-map .arc   { fill: none; stroke-linecap: round; }
.net-map .arc-cu { stroke: #F0AA28; stroke-width: 2.6; filter: url(#net-glow); }
.net-map .arc-st { stroke: rgba(122,157,184,0.75); stroke-width: 1.6; }
.net-map .node-cu { fill: #F0AA28; }
.net-map .ring-cu { fill: none; stroke: #F0AA28; stroke-width: 1.2; opacity: 0.55; }
.net-map .node-st { fill: #7A9DB8; }

/* City labels sit in HTML over the SVG so they stay legible at any size */
.net-label {
  position: absolute; transform: translate(10px, -6px); white-space: nowrap; pointer-events: none;
  font-family: 'IBM Plex Mono', monospace; line-height: 1.45;
  text-shadow: 0 0 3px #0A1628, 0 0 6px #0A1628, 0 0 10px #0A1628;
}
.net-label.is-left  { transform: translate(calc(-100% - 10px), -6px); text-align: right; }
.net-label.is-below { transform: translate(-8px, 14px); }
.net-label.is-below.is-left { transform: translate(calc(-100% + 14px), 16px); }
.net-label .c { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; font-weight: 500; }
.net-label .r { display: block; font-size: 10px; letter-spacing: 0.06em; color: rgba(255,255,255,0.5); }
.net-label .t { display: block; font-size: 10px; letter-spacing: 0.1em; color: var(--copper); font-variant-numeric: tabular-nums; }
@media (max-width: 639px) {
  .net-plate { padding: 12px; }
  .net-label .r { display: none; }
  .net-label .c { font-size: 9.5px; }
  .net-label .t { font-size: 9px; }
}

.net-caption {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; margin-top: 14px; padding-top: 12px;
  white-space: nowrap;
  border-top: 1px solid var(--line-d);
  font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.net-caption .key { display: inline-flex; align-items: center; gap: 8px; }
.net-caption .sw  { width: 18px; height: 2px; background: var(--copper); }
.net-caption .sw.st { background: rgba(122,157,184,0.75); height: 1px; }

/* Entrance: lines draw once on load, nodes and labels follow. No motion when reduced. */
@media (prefers-reduced-motion: no-preference) {
  .net-anim .land { opacity: 0; transition: opacity 0.9s ease-out; }
  .net-anim .arc  { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .net-anim .node-g { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0.4); transition: opacity 0.35s ease-out, transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1); }
  .net-anim .net-label { opacity: 0; transition: opacity 0.5s ease-out; }

  .net-anim.is-on .land { opacity: 1; }
  .net-anim.is-on .arc  { animation: net-draw 1.1s cubic-bezier(0.65, 0, 0.35, 1) forwards; animation-delay: var(--d, 0ms); }
  .net-anim.is-on .node-g { opacity: 1; transform: scale(1); transition-delay: var(--d, 0ms); }
  .net-anim.is-on .net-label { opacity: 1; transition-delay: var(--d, 0ms); }
}
@keyframes net-draw { to { stroke-dashoffset: 0; } }
