/* =====================================================================
   Hageman Capital — Team plugin styles (v1.0.2)
   Consumes the child theme's :root design tokens with hard fallbacks so
   nothing breaks if the reskin sheet is absent. Angular language
   throughout: squared corners, hairlines, butt caps. Entrance motion is
   doubly gated (.hc-js on <html> from the theme's hc-reveal.js +
   prefers-reduced-motion) — no JS means everything simply shows.
   ===================================================================== */

/* ---- roster tiers ---- */
.hc-tm-tier{ margin-top:56px; }
.hc-tm-tier-head{
  display:flex; align-items:baseline; gap:14px;
  border-bottom:1px solid var(--hc-line,#e6e2da);
  padding-bottom:10px; margin-bottom:26px;
}
.hc-tm-tier-n{
  font-family:var(--hc-mono,"DM Mono",monospace);
  font-size:.78rem; color:var(--hc-cta,#AE5E3A);
  letter-spacing:.06em;
}
.hc-tm-tier-t{
  font-family:var(--hc-font,"Hanken Grotesk",sans-serif);
  font-weight:500; font-size:.8rem;
  letter-spacing:.16em; text-transform:uppercase;
  color:var(--hc-navy,#00263d);
}

.hc-tm-grid{
  display:grid;
  grid-template-columns:repeat(var(--hc-tm-cols,4),1fr);
  gap:26px 22px;
}
.hc-tm-card{ display:block; text-decoration:none; }
.hc-tm-photo{
  margin:0; overflow:hidden;
  aspect-ratio:4/5;
  background:var(--hc-soft-2,#efece5);
  border:1px solid var(--hc-line,#e6e2da);
}
.hc-tm-photo img{
  display:block; width:100%; height:100%;
  object-fit:cover; border-radius:0;
  filter:grayscale(1);
  transform:scale(1);
  transition:transform .5s cubic-bezier(.22,.7,.2,1), filter .45s ease;
}
.hc-tm-card:hover .hc-tm-photo img,
.hc-tm-card:focus-visible .hc-tm-photo img{ transform:scale(1.035); filter:grayscale(0); }
@media (hover:none){
  .hc-tm-photo img{ filter:grayscale(0); }
}
.hc-tm-name{
  display:block; margin-top:12px;
  font-family:var(--hc-font,"Hanken Grotesk",sans-serif);
  font-weight:500; font-size:1.02rem;
  color:var(--hc-navy,#00263d);
  transition:color .18s ease;
}
.hc-tm-card:hover .hc-tm-name{ color:var(--hc-accent-strong,#055f87); }
.hc-tm-role{
  display:block; margin-top:3px;
  font-size:.85rem; line-height:1.4;
  color:var(--hc-ink-soft,#566578);
}

/* ---- profile subpage ---- */
.hc-tm-profile-grid{
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.4fr);
  gap:72px;
  align-items:start;
}
.hc-tm-portrait{ position:relative; padding:16px 16px 0 0; }
.hc-tm-frame{
  position:absolute; top:0; right:0;
  width:84%; height:88%;
  border:1.5px solid var(--hc-navy,#00263d);
}
.hc-tm-fig{ position:relative; margin:0 12px 0 0; width:88%; margin-top:16px; }
.hc-tm-fig img{
  display:block; width:100%; height:auto;
  aspect-ratio:4/5; object-fit:cover; border-radius:0;
}
.hc-tm-h{
  font-family:var(--hc-font,"Hanken Grotesk",sans-serif);
  font-weight:300; letter-spacing:-.02em; line-height:1.08;
  font-size:clamp(1.8rem,2.6vw,2.4rem);
  color:var(--hc-ink,#16273b);
  margin:26px 0 6px;
}
.hc-tm-sub{
  font-size:.98rem; color:var(--hc-ink-soft,#566578);
  margin:0 0 22px;
}
.hc-tm-contact{ border-top:1px solid var(--hc-line,#e6e2da); }
.hc-tm-row{
  display:flex; justify-content:space-between; align-items:baseline; gap:16px;
  padding:11px 0;
  border-bottom:1px solid var(--hc-line,#e6e2da);
}
.hc-tm-k{
  font-family:var(--hc-mono,"DM Mono",monospace);
  font-size:.7rem; letter-spacing:.14em; text-transform:uppercase;
  color:var(--hc-ink-faint,#8a96a4);
}
.hc-tm-v{
  font-size:.93rem; color:var(--hc-navy,#00263d);
  text-decoration:none; word-break:break-all; text-align:right;
  transition:color .18s ease;
}
.hc-tm-v:hover{ color:var(--hc-accent-strong,#055f87); }
.hc-tm-li{ margin-top:22px; }

.hc-tm-bio{
  font-size:1.05rem; line-height:1.75;
  color:var(--hc-ink,#16273b);
  margin-top:22px;
}
.hc-tm-bio p{ margin:0 0 1.2em; }
.hc-tm-bio p:first-child{
  font-size:1.22rem; line-height:1.6;
  font-weight:300; color:var(--hc-ink,#16273b);
}

/* ---- attributed insights ---- */
.hc-tm-post-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1px;
  background:var(--hc-line,#e6e2da);
  border:1px solid var(--hc-line,#e6e2da);
}
.hc-tm-post-grid:empty{ display:none; border:0; background:transparent; }
.hc-tm-post{
  display:flex; flex-direction:column; justify-content:space-between; gap:26px;
  background:var(--hc-paper,#ffffff);
  padding:26px 26px 22px;
  text-decoration:none;
  transition:background .18s ease;
}
.hc-tm-post:hover{ background:var(--hc-soft,#f6f5f2); }
.hc-tm-post-t{
  font-family:var(--hc-font,"Hanken Grotesk",sans-serif);
  font-weight:400; font-size:1.05rem; line-height:1.45;
  color:var(--hc-navy,#00263d);
}
.hc-tm-post:hover .hc-tm-post-t{ color:var(--hc-accent-strong,#055f87); }
.hc-tm-post-d{
  display:flex; align-items:center; gap:8px;
  font-family:var(--hc-mono,"DM Mono",monospace);
  font-size:.74rem; letter-spacing:.08em; text-transform:uppercase;
  color:var(--hc-ink-faint,#8a96a4);
}
.hc-tm-post .arw{ color:var(--hc-cta,#AE5E3A); }

/* ---- entrance motion (gated) ---- */
@media (prefers-reduced-motion:no-preference){
  .hc-js .hc-tm-tier.hc-anim .hc-tm-tier-head{
    opacity:0; transition:opacity .5s ease .05s;
  }
  .hc-js .hc-tm-tier.hc-anim .hc-tm-card{
    opacity:0; transform:translateY(16px);
    transition:opacity .5s ease calc(.15s + var(--i,0) * .08s),
               transform .55s cubic-bezier(.22,.7,.2,1) calc(.15s + var(--i,0) * .08s);
  }
  .hc-js .hc-tm-tier.hc-anim.hc-in .hc-tm-tier-head{ opacity:1; }
  .hc-js .hc-tm-tier.hc-anim.hc-in .hc-tm-card{ opacity:1; transform:none; }

  .hc-js .hc-tm-profile.hc-anim .hc-tm-fig{
    clip-path:inset(0 0 100% 0);
    transition:clip-path .9s cubic-bezier(.22,.7,.2,1) .2s;
  }
  .hc-js .hc-tm-profile.hc-anim .hc-tm-frame{
    opacity:0; transition:opacity .8s ease .8s;
  }
  .hc-js .hc-tm-profile.hc-anim .hc-tm-body{
    opacity:0; transform:translateY(16px);
    transition:opacity .6s ease .3s, transform .6s cubic-bezier(.22,.7,.2,1) .3s;
  }
  .hc-js .hc-tm-profile.hc-anim.hc-in .hc-tm-fig{ clip-path:inset(0 0 0 0); }
  .hc-js .hc-tm-profile.hc-anim.hc-in .hc-tm-frame{ opacity:1; }
  .hc-js .hc-tm-profile.hc-anim.hc-in .hc-tm-body{ opacity:1; transform:none; }

  .hc-js .hc-tm-insights.hc-anim .hc-tm-post{
    opacity:0; transform:translateY(14px);
    transition:opacity .5s ease calc(.1s + var(--i,0) * .12s),
               transform .5s cubic-bezier(.22,.7,.2,1) calc(.1s + var(--i,0) * .12s);
  }
  .hc-js .hc-tm-insights.hc-anim.hc-in .hc-tm-post{ opacity:1; transform:none; }
}

/* ---- responsive ---- */
@media (max-width:980px){
  .hc-tm-grid{ grid-template-columns:repeat(2,1fr); }
  .hc-tm-profile-grid{ grid-template-columns:1fr; gap:44px; }
  .hc-tm-portrait{ max-width:420px; }
  .hc-tm-post-grid{ grid-template-columns:1fr; }
}
@media (max-width:560px){
  .hc-tm-grid{ grid-template-columns:repeat(2,1fr); gap:20px 14px; }
}
