/* Team v1: one existing seven-role network, scoped above the host reset.
   Full portraits and the original lanyard/GSAP engines are retained. */
.team-gates-section.team-gates-section {
  min-height: 0;
  padding: clamp(100px, 8vw, 132px) clamp(20px, 4vw, 80px) 64px;
  color: #10151c;
  background-color: #fbfdff;
}
.team-gates-section .team-gates-intro { display: none; }
.team-gates-section .team-gates-wordmark { position: static; font-size: 11px; }
.team-gates-section .team-gates-intro-title { display: none; }
.team-gates-section .team-gates-signal { height: 74px; }
.team-gates-section .team-gates-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.38fr);
  gap: 16px 40px;
  width: min(100%, 1600px);
  margin: 0 auto 36px;
}
.team-gates-section .team-gates-heading > p {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .15em;
}
.team-gates-section .team-gates-heading h2 {
  max-width: none;
  margin: 0;
  font-size: clamp(44px, 4.5vw, 76px);
  line-height: .98;
  letter-spacing: -.055em;
  text-wrap: initial;
}
.team-gates-section .team-gates-heading > div {
  margin: 0;
  padding: 0 0 2px 22px;
  border-left: 1px solid #1a55f566;
}
.team-gates-section .team-gates-heading > div span,
.team-gates-section .team-gates-heading > div strong { font-size: 14px; line-height: 1.55; }
.team-gates-section .team-gates-heading > div strong { margin-top: 10px; }
.team-gates-section .team-gates-stage { width: min(100%, 1600px); min-height: 0; margin: 0 auto; }
.team-gates-section .team-gates-network,
.team-gates-section .team-gates-network i,
.team-gates-section .team-gates-network i::before { height: 32px; }
.team-gates-section .team-gates-row { gap: 8px; padding-top: 32px; }
.team-gates-section .team-gate {
  width: auto;
  height: clamp(400px, 32vw, 540px);
  padding: 0;
  border: 1px solid #1a55f52e;
  border-radius: 8px;
  background: #f4f7fc;
}
.team-gates-section .team-gate-portrait { inset: 0 0 88px; mask-image: none; -webkit-mask-image: none; }
.team-gates-section .team-gate-portrait img { object-fit: contain; object-position: center; transform: none; }
.team-gates-section .team-gate-meta {
  min-height: 108px;
  padding: 22px 12px 12px;
  align-content: end;
  gap: 6px;
  background: linear-gradient(transparent, #fbfdff 22%);
}
.team-gates-section .team-gate-meta small { font-size: 10px; letter-spacing: .09em; }
.team-gates-section .team-gate-meta b { max-width: none; margin: 0; font-size: clamp(13px, 1vw, 16px); line-height: 1.25; }
.team-gates-section .team-gate-meta em { margin: 0; opacity: 1; transform: none; font-size: 10px; line-height: 1.4; }
.team-gates-section .team-gate:focus-visible { outline: 3px solid #eda51b; outline-offset: 3px; }

/* Keep controls outside the scrolling sheet and above the fixed site header. */
/* Current Signal Ledger rail is z60 (the old Team handoff said z20). */
.field-ledger-content:has(.team-gates-section.has-open-card) { z-index: 70; }
.team-gates-section .team-card-layer { padding: 20px; align-items: center; }
.team-gates-section .team-card-safe-region {
  width: min(100%, 1500px);
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  grid-template-rows: minmax(0, 1fr) 48px;
  max-height: calc(100dvh - 40px);
}
.team-gates-section .team-card { height: min(80dvh, 780px); max-height: none; }
.team-gates-section .team-card-content { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.team-gates-section .team-card-lanyard-stage { min-width: 0; min-height: 0; }
.team-gates-section .team-card-evidence { overflow-y: auto; padding: clamp(20px, 2.5vw, 40px); gap: 24px; }
.team-gates-section .team-card-evidence header { padding: 0; }
.team-gates-section .team-card-evidence header small { font-size: 11px; line-height: 1.5; }
.team-gates-section .team-card-evidence header h3 { font-size: clamp(28px, 3vw, 46px); line-height: 1.02; margin: 12px 0 16px; }
.team-gates-section .team-card-evidence header p { font-size: 14px; line-height: 1.65; }
.team-gates-section .team-card-evidence figure { flex-shrink: 0; aspect-ratio: 3 / 2; }
.team-gates-section .team-card-evidence figcaption { font-size: 9px; line-height: 1.5; left: 8px; right: 8px; bottom: 8px; padding: 8px; }
.team-gates-section .team-card-close { width: 44px; height: 44px; top: 10px; right: 10px; }
.team-gates-section .team-card-nav { width: 44px; height: 44px; }
.team-gates-section .team-card-pagination { gap: 0; align-self: center; }
.team-gates-section .team-card-pagination button {
  display: grid; place-items: center; width: 28px; height: 44px;
  border: 0; border-radius: 0; background: transparent;
}
.team-gates-section .team-card-pagination button::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #9babc2; }
.team-gates-section .team-card-pagination button.is-active::after { width: 22px; border-radius: 8px; background: #eda51b; }
.team-gates-section .team-card-pagination button:focus-visible { outline: 2px solid #1a55f5; }
@media (min-width: 700px) and (max-width: 820px) and (max-aspect-ratio: 3/2) {
  .team-gates-section .team-card { grid-column: 2; overflow: hidden; }
  .team-gates-section .team-card-nav { grid-row: 1; align-self: center; }
  .team-gates-section .team-card-pagination { grid-column: 1 / -1; }
  .team-gates-section .specialist-lanyard { min-height: 0; }
}

@media (max-width: 1199px), (min-width: 1200px) and (max-aspect-ratio: 1/1) {
  .team-gates-section.team-gates-section { padding: 96px 32px 56px; }
  .team-gates-section .team-gates-heading { grid-template-columns: 1fr; gap: 18px; margin-bottom: 28px; }
  .team-gates-section .team-gates-heading h2 { font-size: clamp(44px, 6.5vw, 76px); }
  .team-gates-section .team-gates-heading > div { border: 0; padding: 0; }
  .team-gates-section .team-gates-heading > div strong { margin-top: 4px; }
  .team-gates-section .team-gates-network { display: none; }
  .team-gates-section .team-gates-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding-top: 16px; border-top: 1px solid #1a55f566; }
  .team-gates-section .team-gate { height: clamp(350px, 42vw, 460px); }
  .team-gates-section .team-gate-meta b { font-size: 15px; }
}
@media (max-width: 699px) {
  .team-gates-section.team-gates-section { padding: 100px 20px 44px; }
  .team-gates-section .team-gates-intro { inset-inline: 20px; }
  .team-gates-section .team-gates-heading { gap: 16px; margin-bottom: 20px; }
  .team-gates-section .team-gates-heading h2 { font-size: clamp(36px, 9.7vw, 60px); }
  .team-gates-section .team-gates-heading > p { font-size: 10px; letter-spacing: .1em; }
  .team-gates-section .team-gates-heading > div span,
  .team-gates-section .team-gates-heading > div strong { font-size: 13px; }
  .team-gates-section .team-gates-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .team-gates-section .team-gate { height: clamp(300px, 84vw, 410px); }
  .team-gates-section .team-gate-meta { padding-inline: 10px; }
  .team-gates-section .team-gate-meta b { font-size: 14px; }
}
@media (max-width: 699px), (max-width: 1000px) and (min-aspect-ratio: 3/2) {
  .team-gates-section .team-card-layer { padding: 8px; align-items: center; }
  .team-gates-section .team-card-safe-region { width: 100%; grid-template-columns: 44px minmax(0, 1fr) 44px; max-height: calc(100dvh - 16px); }
  .team-gates-section .team-card { grid-column: 1/-1; height: calc(100dvh - 64px); overflow: auto; overscroll-behavior: contain; }
  .team-gates-section .team-card-content { display: grid; grid-template-columns: 1fr; height: auto; }
  .team-gates-section .team-card-lanyard-stage { height: clamp(380px, 66dvh, 560px); min-height: 0; border-right: 0; border-bottom: 1px solid #1a55f533; }
  .team-gates-section .specialist-lanyard { min-height: 0; }
  .team-gates-section .team-card-evidence { padding: 24px 20px; overflow: visible; }
  .team-gates-section .team-card-evidence header h3 { max-width: 18ch; font-size: clamp(28px, 8vw, 40px); }
  .team-gates-section .team-card-close { position: sticky; float: right; top: 8px; margin: 8px 8px -52px 0; }
  .team-gates-section .team-card-nav { grid-row: 2; align-self: center; transform: none; }
  .team-gates-section .team-card-nav--previous { grid-column: 1; }
  .team-gates-section .team-card-nav--next { grid-column: 3; }
  .team-gates-section .team-card-pagination { grid-column: 2; }
}
@media (min-width: 700px) and (max-height: 650px) and (min-aspect-ratio: 3/2) {
  .team-gates-section.team-gates-section { padding-top: 88px; }
  .team-gates-section .team-gates-heading { grid-template-columns: minmax(0, 1fr) minmax(230px, .7fr); }
  .team-gates-section .team-gates-heading h2 { font-size: 40px; }
  .team-gates-section .team-gates-row { grid-template-columns: repeat(8, minmax(132px, 1fr)); overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 12px; }
  .team-gates-section .team-gate { height: 330px; scroll-snap-align: start; }
  .team-gates-section .team-card-content { grid-template-columns: 42% minmax(0, 1fr); min-height: 100%; }
  .team-gates-section .team-card-lanyard-stage { position: sticky; top: 0; height: calc(100dvh - 66px); border-right: 1px solid #1a55f533; border-bottom: 0; }
  .team-gates-section .team-card-evidence { align-content: start; }
  .team-gates-section .team-card-evidence header h3 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .team-gates-section .specialist-lanyard-static { min-height: 0; height: calc(100% - 32px); width: min(70%, 220px); margin: 16px auto; }
  .team-gates-section .specialist-lanyard-static img { height: 100%; min-height: 0; }
}
