/* =====================================================================
   Styles for the client's own section templates: team.html, portfolio.html,
   badges.html.  Kept in a SEPARATE file so it is never clobbered by edits
   to generic.css.
   ===================================================================== */

/* ---- team: featured founder + member grid ---------------------------- */
.g-team { padding: clamp(70px, 8.5vw, 130px) 0; }
.g-team .g-lead { margin: 1rem auto 0; max-width: 62ch; }

.tm-founder { display: grid; grid-template-columns: 420px 1fr; gap: clamp(32px, 4.5vw, 64px);
  align-items: center; margin-top: 54px; }
.tm-founder-ph { position: relative; }
.tm-founder-ph img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; display: block; }
.tm-founder-ph::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--gold); }
.tm-founder-bd h3 { font-family: var(--ff-display); font-weight: 300; font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  color: var(--ink); line-height: 1.15; margin-top: .5rem; }
.tm-founder-bd .rule-l { display: block; width: 54px; height: 1px; background: var(--gold); margin: 20px 0 22px; }
.tm-founder-bd p { font-size: .95rem; color: var(--muted); line-height: 1.9; max-width: 66ch; }
.tm-quote { margin-top: 18px; font-family: var(--ff-edit, Georgia), serif; font-style: italic;
  font-size: 1.05rem; color: var(--ink); }
.tm-quote:empty { display: none; }
@media (max-width:1080px) { .tm-founder { grid-template-columns: 1fr; gap: 26px; }
  .tm-founder-ph img { min-height: 300px; } }

.tm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 56px; }
.tm-card { background: #fff; border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease); }
.tm-card:hover { transform: translateY(-5px); border-color: rgba(176,137,79,.5);
  box-shadow: 0 22px 50px rgba(8,23,32,.13); }
.tm-ph { display: block; aspect-ratio: 4/5; overflow: hidden; background: var(--cream); }
.tm-ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; display: block;
  transition: transform .7s var(--ease); }
.tm-card:hover .tm-ph img { transform: scale(1.05); }
.tm-bd { padding: 20px 22px 24px; }
.tm-bd h3 { font-family: var(--ff-display); font-weight: 400; font-size: 1.1rem; color: var(--ink); }
.tm-role { display: block; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-top: 6px; }
.tm-bd p { font-size: .84rem; color: var(--muted); line-height: 1.75; margin-top: 11px; }
@media (max-width: 1080px) { .tm-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width:640px)  { .tm-grid { grid-template-columns: 1fr; } }

/* ---- portfolio: filter bar + project grid ---------------------------- */
.g-port { padding: clamp(70px, 8.5vw, 130px) 0; }
.g-port .g-lead { margin: 1rem auto 0; max-width: 64ch; }

.port-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 40px; }
.port-filters:empty { display: none; }
.port-filters button, .port-filters .pf {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background: transparent; border: 1px solid var(--line); border-radius: 0;
  font-family: var(--ff-body); font-size: .72rem; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); padding: 11px 20px; line-height: 1;
  transition: .3s var(--ease); }
.port-filters button:hover, .port-filters .pf:hover { border-color: var(--gold); color: var(--gold); }
.port-filters button.active, .port-filters .pf.active,
.port-filters button[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: #fff; }

.port-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.pt-item { position: relative; display: block; overflow: hidden; text-decoration: none;
  background: var(--navy-soft); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.pt-item:hover { transform: translateY(-5px); box-shadow: 0 24px 54px rgba(8,23,32,.18); }
.pt-item.is-hidden { display: none; }
.pt-ph { display: block; aspect-ratio: 4/3; overflow: hidden; }
.pt-ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.pt-item:hover .pt-ph img { transform: scale(1.06); }
.pt-bd { position: absolute; left: 0; right: 0; bottom: 0; display: block; padding: 40px 20px 18px; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(8,23,32,.86)); }
.pt-bd b { display: block; font-family: var(--ff-display); font-weight: 400; font-size: 1.04rem;
  letter-spacing: .01em; line-height: 1.3; }
.pt-bd i { display: block; font-style: normal; font-size: .64rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold-lt); margin-top: 6px; }
@media (max-width:1080px) { .port-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }
@media (max-width: 560px)  { .port-grid { grid-template-columns: 1fr; } }

/* ---- certification badge strip --------------------------------------- */
.badge-strip { background: var(--cream); padding: clamp(44px, 5vw, 70px) 0; text-align: center; }
.badge-strip .eyebrow { display: inline-block; }
.badge-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: stretch; margin-top: 26px; }
.badge-i { display: flex; align-items: center; justify-content: center; background: #fff;
  border: 1px solid var(--line); border-radius: 5px; padding: 14px 20px; height: 86px; min-width: 150px;
  transition: transform .3s var(--ease), border-color .3s var(--ease); }
.badge-i:hover { transform: translateY(-3px); border-color: rgba(176,137,79,.55); }
.badge-i img { max-height: 100%; width: auto; max-width: 165px; object-fit: contain; display: block; }
