/* Find your home team (/find-your-team), the public search for buyers and sellers. The navy band, header,
   hero house and footer come from cinematic-story.css; the search card, results, contact dialog and one
   small self-playing touch live here. No scroll effects. Same markup as the client home's team search. */
.team-hero{padding-bottom:150px}
/* Every role under the lead: each face lifts in turn, on a 10-second loop. */
.team-faces{display:flex;flex-wrap:wrap;gap:12px 22px;margin:36px 0 0;padding:0;list-style:none}
.team-faces li{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:580;color:#adbed4;animation:face-turn 12s ease-in-out infinite;animation-delay:calc(var(--i,0)*2s)}
.team-faces i{display:block;width:40px;height:40px;border-radius:50%;background:#1a2f4b url("/story/team6.jpg") calc(var(--face,0)*20%) 0/600% 100% no-repeat;box-shadow:0 0 0 2px #09182a,0 0 0 3px rgba(217,174,95,.35)}
@keyframes face-turn{0%,20%,100%{color:#adbed4;transform:none}5%,13%{color:#fff;transform:translateY(-5px)}}
/* The search card sits over the hero's edge; results follow in the same light section. Colours, buttons and fields
   are the app's own (brand-tokens.css), so this page and My Keylective wear one button, one field and one card. */
.team-search{padding-top:0;margin-top:-84px}
.search{position:relative;z-index:2;display:grid;gap:18px;padding:30px;border:1px solid var(--pi-line);border-radius:var(--radius-stage,24px);background:var(--pi-surface);box-shadow:var(--pi-card-shadow)}
fieldset{border:0;margin:0;padding:0;min-width:0}fieldset[hidden]{display:none}legend{margin-bottom:12px;padding:0;font-size:14px;font-weight:600;color:var(--pi-ink)}
.goal-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.goal{display:flex;align-items:center;gap:8px;min-height:44px;padding:10px 14px;border:1px solid var(--pi-line);border-radius:var(--radius-panel,12px);cursor:pointer;font-size:15px;font-weight:600;transition:border-color .2s,background .2s}.goal:has(input:checked){border-color:var(--pi-accent);background:var(--pi-accent-soft)}
.goal input,.check input{accent-color:var(--pi-accent);width:18px;height:18px;flex-shrink:0}
.row{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px;align-items:end}
.field{display:grid;gap:6px;min-width:0;font-size:14px;font-weight:600;color:var(--pi-ink)}.field small{font-weight:400;color:var(--pi-muted)}
.field input,.field select,.field textarea{width:100%;min-width:0;min-height:44px;box-sizing:border-box;padding:10px 12px;border:1px solid var(--pi-input-line);border-radius:var(--radius-control,9px);background:var(--pi-surface);color:var(--pi-ink);font:inherit;font-size:16px;font-weight:400}
.button,.text-button{font:inherit;cursor:pointer}
.button{display:inline-flex;align-items:center;justify-content:center;min-height:var(--control-h,44px);padding:10px 18px;border:1px solid var(--pi-line);border-radius:var(--radius-control,9px);background:var(--pi-surface);color:var(--pi-ink);font-size:14px;font-weight:600;line-height:1.3;transition:background .2s}
.button:hover{background:var(--pi-surface-soft)}.button.primary{border-color:transparent;background:var(--pi-primary-fill);color:var(--pi-on-primary)}.button.primary:hover{background:var(--pi-primary-fill-hover)}.button:disabled{opacity:.6;cursor:default}
.text-button{display:inline-flex;align-items:center;min-height:44px;padding:0 2px;border:0;background:none;color:var(--pi-accent);font-size:14px;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.search .button{justify-self:start}
:focus-visible{outline:3px solid var(--pi-focus);outline-offset:2px}
.error{color:var(--pi-danger)}.error:empty{display:none}
.status{margin:22px 0 6px;color:var(--pi-muted)}
/* Results: A–Z within each role, nothing ranked */
.group{margin:26px 0}.group h2{margin:0 0 12px;font:650 20px/1.3 Inter,ui-sans-serif,sans-serif;letter-spacing:0;color:var(--pi-ink)}
.optional{padding:1px 9px;border:1px solid var(--pi-line);border-radius:var(--radius-pill,999px);vertical-align:middle;font-size:12px;font-weight:650;color:var(--pi-muted)}
.pros{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px;margin:0;padding:0;list-style:none}
.pro{position:relative;display:grid;gap:8px;align-content:start;padding:20px;border:1px solid var(--pi-line);border-radius:var(--radius-card,16px);background:var(--pi-surface);box-shadow:var(--pi-card-shadow);animation:card-arrive .5s ease both}
@keyframes card-arrive{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.pro-top{display:flex;align-items:center;gap:12px}
.avatar{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--pi-accent-soft);color:var(--pi-accent);font-size:15px;font-weight:700;flex-shrink:0;box-shadow:0 0 0 2px var(--pi-surface),0 0 0 3px var(--pi-key-line)}
.pro h3{font-size:16px;font-weight:650}.pro p{font-size:14px;overflow-wrap:anywhere}.pro .role,.pro .small{color:var(--pi-muted);font-size:13px}
.pro .button{justify-self:start;margin-top:4px}.more{margin-top:12px}.empty{color:var(--pi-muted)}
/* Contacting one professional */
dialog{width:calc(100% - 32px);max-width:560px;padding:0;border:0;border-radius:var(--radius-dialog,18px);background:var(--pi-surface);color:var(--pi-ink);box-shadow:0 20px 60px var(--pi-overlay)}dialog::backdrop{background:var(--pi-overlay)}
.hint{color:var(--pi-muted);font-size:14px}.check{display:flex;align-items:flex-start;gap:10px;font-size:14px}.check input{margin-top:3px}.actions{display:flex;flex-wrap:wrap;gap:10px}
.trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
/* The small print above the footer */
.team-notes{padding-top:0}.team-notes p{max-width:72ch;font-size:13px;line-height:1.7;color:var(--pi-muted)}.team-notes p+p{margin-top:8px}
/* The quiet page (listing and web search both off) is only a hero and the footer, so the navy fills the screen. */
.team-quiet{min-height:100svh;display:flex;flex-direction:column}.team-quiet main,.team-quiet .page-hero{flex:1;display:flex;flex-direction:column}.team-quiet .page-hero{justify-content:center;align-items:flex-start}
@media (max-width:760px){.team-hero{padding-bottom:120px}.team-search{margin-top:-64px}.search{padding:20px;border-radius:20px}.pros{grid-template-columns:1fr}.team-faces{gap:10px 14px}.team-faces i{width:34px;height:34px}.film-footer nav{flex-wrap:wrap;row-gap:10px}
 /* A dialog is a full-screen sheet on a phone. */
 dialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border-radius:0}
 /* The short "Sent" answer stays a small card. */
 dialog:has(.sent){width:calc(100% - 32px);height:fit-content;max-height:none;margin:auto;border-radius:var(--radius-dialog,18px)}}
/* People not on Keylective: the same cards with a dashed face. Their Call, Text and Email, the small menu and the
   searching panel are in home-team-reach.css; the Contact inquiry stays with members. */
.web-intro{margin:0;color:var(--pi-muted)}.web-intro[hidden]{display:none}
.web-found{margin-top:14px;padding-top:14px;border-top:1px dashed var(--pi-line)}.web-found>h3{margin:0 0 10px;font:600 14px/1.3 Inter,ui-sans-serif,sans-serif;color:var(--pi-muted)}
.avatar.web{background:var(--pi-surface);box-shadow:none}.web-pro .actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
