.team-intro{padding-block:clamp(3.5rem,7vw,6.5rem) clamp(2.5rem,5vw,4rem);max-width:1000px}.team-eyebrow{font-size:.98rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#6f7f8f;margin:0 0 1rem}.team-intro h2,.team-heading{font-family:inherit;font-size:clamp(2rem,4vw,3.5rem);line-height:1.12;margin:0 0 1.25rem}.team-intro p:not(.team-eyebrow){font-size:clamp(1rem,1.3vw,1.18rem);line-height:1.8;max-width:78ch;color:#44515c}.team-directory{padding-bottom:clamp(4rem,8vw,8rem)}.team-directory-header{margin-bottom:2rem;margin-top:2rem}.team-directory-header p{color:#566574;max-width:65ch;line-height:1.7}.team-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(1rem,2.4vw,2rem)}.team-card{background:#fff;border:1px solid #e4e9ed;border-radius:18px;overflow:hidden;box-shadow:0 12px 34px rgba(22,35,48,.07);transition:transform .2s ease,box-shadow .2s ease}.team-card:hover{transform:translateY(-4px);box-shadow:0 18px 44px rgba(22,35,48,.12)}.team-photo{aspect-ratio:4/4.4;position:relative;overflow:hidden;background:linear-gradient(145deg,#e9eef2,#d7e0e7);display:grid;place-items:center}.team-photo img{width:100%;height:100%;object-fit:cover;display:block}.team-photo-placeholder{color:#66798a;display:flex;flex-direction:column;align-items:center;gap:.7rem;text-align:center;padding:1.5rem}.team-photo-placeholder svg{width:64px;height:64px;opacity:.55}.team-photo-placeholder span{font-size:.82rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.team-card-content{padding:clamp(1.25rem,2vw,1.8rem)}.team-card h3{font-size:clamp(1.35rem,1.8vw,1.65rem);margin:0 0 .35rem;line-height:1.2;color:#223129}.team-role{font-weight:750;color:#5b7187;margin:0 0 .9rem;font-size:.93rem}.team-bio{color:#52606b;line-height:1.7;margin:0}@media (max-width:900px){.team-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:600px){.team-grid{grid-template-columns:1fr}.team-photo{aspect-ratio:4/3.7}.team-intro{padding-top:3rem}}@media (prefers-reduced-motion:reduce){.team-card{transition:none}.team-card:hover{transform:none}}


/* Meet the Team photo layout */
.team-page .team-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-width:1240px;margin-inline:auto}
.team-page .team-photo{aspect-ratio:4/4.4}
.team-group-photo{margin:0 auto 2.5rem;max-width:900px}
.team-group-photo img{width:100%;height:auto;border-radius:18px;display:block}
.team-group-photo figcaption,.team-scenes-grid figcaption{padding:.7rem .2rem;color:#566574;font-size:.94rem}
.team-behind-scenes{padding-bottom:clamp(4rem,8vw,7rem)}
.team-scenes-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(1rem,2.4vw,2rem)}
.team-scenes-grid figure{margin:0}
.team-scenes-grid img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:18px}
@media(max-width:900px){.team-page .team-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.team-page .team-grid,.team-scenes-grid{grid-template-columns:1fr}.team-page .team-photo{aspect-ratio:4/4.4}}
/* Woofers: match the other portrait cards without cropping or stretching the artwork. */
.team-page .team-woofers .team-photo{aspect-ratio:4/4.4;isolation:isolate;background:#243039}
.team-page .team-woofers .team-photo::before{content:"";position:absolute;inset:-16px;background:url("../images/kora-remi-koko-400.webp") center/cover no-repeat;filter:blur(15px) brightness(.65);z-index:-1;pointer-events:none}
.team-page .team-woofers .team-photo picture{display:block;width:100%;height:100%;position:relative;z-index:1}
.team-page .team-woofers .team-photo picture img{display:block;width:100%;height:100%;object-fit:contain}

/* Tighter spacing before Beyond the Workshop */
.team-page .team-directory{padding-bottom:54px}
.team-page .team-behind-scenes .team-directory-header{margin-top:0}
@media(max-width:600px){.team-page .team-directory{padding-bottom:16px}}

/* Behind the scenes carousel */
.team-carousel{max-width:960px;margin-inline:auto;border:1px solid #e4e9ed;border-radius:20px;overflow:hidden;background:#fff;box-shadow:0 12px 34px rgba(22,35,48,.08)}
.team-carousel-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-ms-overflow-style:none;overscroll-behavior-x:contain}
.team-carousel-slide{flex:0 0 100%;min-width:0;margin:0;scroll-snap-align:start;scroll-snap-stop:always}
.team-carousel-media{height:clamp(260px,52vw,540px);background:#17232e;position:relative;display:block;overflow:hidden}
.team-carousel-media img{position:absolute;inset:0;display:block;width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%;object-fit:contain;object-position:center;aspect-ratio:auto}
.team-carousel-slide figcaption{padding:1.2rem clamp(1rem,3vw,2rem);min-height:105px;color:#566574}
.team-carousel-slide h3{margin:0 0 .35rem;color:#223129;font-size:1.25rem}.team-carousel-slide p{margin:0;line-height:1.6}
.team-carousel-controls{display:flex;align-items:center;justify-content:center;gap:1.5rem;padding:0 1rem 1.2rem}.team-carousel-controls[hidden]{display:none}
.team-carousel-controls button{width:44px;height:44px;border:1px solid #d6dfe7;border-radius:50%;background:#fff;color:#223129;font-size:1.4rem;cursor:pointer}.team-carousel-controls button:hover{background:#e9eef2}.team-carousel-controls button:focus-visible,.team-carousel-track:focus-visible{outline:3px solid #2876bb;outline-offset:-3px}.team-carousel-controls span{font-variant-numeric:tabular-nums;color:#566574}

/* Hide the scrollbar while retaining touch and arrow navigation. */
.team-carousel-track::-webkit-scrollbar{display:none;width:0;height:0}
.team-carousel-controls button{display:grid;place-items:center;padding:0;line-height:1;flex:0 0 44px;box-sizing:border-box}
.team-carousel-controls button svg{display:block;width:24px;height:24px;pointer-events:none}

/* Keep navigation immediately below the photo, independent of caption length. */
.team-page .team-carousel{position:relative;--gallery-photo-height:clamp(180px,min(52vw,calc(100vh - 260px)),540px);--gallery-controls-height:64px}
@supports(height:100dvh){.team-page .team-carousel{--gallery-photo-height:clamp(180px,min(52vw,calc(100dvh - 260px)),540px)}}
.team-page .team-carousel-media{height:var(--gallery-photo-height);margin-bottom:var(--gallery-controls-height)}
.team-page .team-carousel-controls{position:absolute;z-index:2;top:var(--gallery-photo-height);left:0;right:0;height:var(--gallery-controls-height);padding:0 1rem;background:#fff;border-bottom:1px solid #e4e9ed}
.team-page .team-carousel-slide figcaption{min-height:0;padding:.85rem clamp(1rem,3vw,2rem) 1rem}
.team-page .team-carousel-controls button svg{stroke-width:3.5}
@media(max-width:600px){.team-page .team-carousel{--gallery-photo-height:clamp(180px,70vw,360px)}}

/* Size the gallery to the current slide, not the longest caption. */
.team-page .team-carousel-track{align-items:flex-start;overflow-y:hidden}
.team-page .team-carousel-slide{align-self:flex-start}
.team-page .team-carousel-controls{top:var(--gallery-active-photo-height,var(--gallery-photo-height))}
@media(max-width:600px){
  .team-page .team-carousel-media{height:auto;background:#fff;overflow:hidden}
  .team-page .team-carousel-media img{position:static;inset:auto;width:100%;height:auto;max-height:none;max-width:100%;object-fit:contain;aspect-ratio:auto}
  .team-page .team-carousel-slide figcaption{padding:.85rem 1rem 1rem}
}
