/* The public team journey uses native links and disclosures throughout. */
.team-journey .profile-header { padding: 48px 0 56px; }
.team-journey .profile-header h1 { font-size: clamp(2.2rem, 4.2vw, 3.8rem); max-width: 22ch; }
.team-journey .profile-header p { max-width: 62ch; margin-top: 20px; }
.team-journey .team-intro { padding-top: 52px; padding-bottom: 0; }
.team-intro-heading { max-width: 740px; }
.team-journey .team-eyebrow { color: #765847; font: 700 .74rem/1.5 var(--font-body); letter-spacing: .13em; text-transform: uppercase; margin-bottom: 12px; }
.team-intro h2, .team-roster h2 { font-size: clamp(1.65rem, 2.7vw, 2.5rem); }
.team-intro-heading > p:last-child { margin-top: 16px; color: #5d514b; }
.team-index ul { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #dcd1c8; border-left: 1px solid #dcd1c8; margin: 28px 0 0; padding: 0; }
.team-index li { min-width: 0; display: flex; border-right: 1px solid #dcd1c8; border-bottom: 1px solid #dcd1c8; }
.team-index a { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 100%; padding: 16px 20px; color: #361f1a; background: #f4efe9; text-decoration: none; }
.team-index a:hover { background: #e9dfd5; }
.team-index span { font: 600 1.25rem/1.3 var(--font-headline); }
.team-index small { font-size: .78rem; color: #66564b; }
.team-booking-note { padding: 20px 0 0; max-width: 80ch; color: #5d514b; font-size: .9rem; }
.team-booking-note a { display: inline-block; color: #563c30; text-decoration: underline; text-underline-offset: 4px; padding-block: 6px; }
.team-journey .team-film { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: center; padding-top: 40px; padding-bottom: 0; scroll-margin-top: 112px; }
.team-film-copy h2 { font-size: clamp(1.65rem, 2.7vw, 2.5rem); max-width: 20ch; }
.team-film-copy > p:not(.team-eyebrow) { margin-top: 16px; color: #514943; font-size: .92rem; line-height: 1.75; max-width: 48ch; }
.team-film-copy > p.team-film-location { color: #765847; font-size: .78rem; }
.team-film-media { min-width: 0; margin: 0; }
.team-film-media video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #e8e5e3; border: 1px solid #dcd1c8; }
.team-film-media figcaption { color: #66564b; font-size: .76rem; line-height: 1.6; margin-top: 10px; }
.team-film-media figcaption a { color: #563c30; text-decoration: underline; text-underline-offset: 3px; padding-block: 8px; display: inline-block; }
.team-film :is(video, a):focus-visible { outline: 3px solid #855b3f; outline-offset: 5px; }
.team-journey .team-roster { padding-top: 56px; padding-bottom: 48px; }
.team-section-heading { margin-bottom: 28px; }
.team-grid + .team-section-heading { margin-top: 64px; }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: start; }
.team-grid--founders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.team-card { min-width: 0; background: #f4efe9; border: 1px solid #e6dcd3; scroll-margin-top: 112px; }
.team-portrait { overflow: hidden; background: #e8e5e3; }
.team-photo { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 26%; }
.team-grid--founders .team-card { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.team-grid--founders .team-photo { height: 100%; min-height: 400px; aspect-ratio: auto; object-position: center 24%; }
.team-copy { min-width: 0; padding: 26px; }
.team-journey .team-role { font: 700 .7rem/1.6 var(--font-body); text-transform: uppercase; letter-spacing: .07em; color: #765847; margin-bottom: 10px; }
.team-card h3 { font-size: 1.5rem; margin-bottom: 16px; }
.team-copy > p:not(.team-role), .team-details p { font-size: .9rem; line-height: 1.75; color: #514943; }
.team-details { margin-top: 12px; }
.team-details summary, .team-story-details summary { cursor: pointer; color: #563c30; font-weight: 700; font-size: .85rem; min-height:48px; padding-block: 12px; }
.team-details p { margin-top: 8px; }
.team-service-link, .team-film-action { display: inline-flex; align-items: center; gap: 12px; min-height:48px; padding: 12px 0; margin-top: 12px; font-size: .86rem; font-weight: 700; color: #563c30; text-decoration: underline; text-underline-offset: 5px; }
.team-service-link span { text-decoration: none; }
.team-back { display: inline-block; padding: 14px 0; margin-top: 24px; text-decoration: underline; text-underline-offset: 5px; font-size: .88rem; }
.team-journey .team-story { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; border-block: 1px solid #dcd1c8; padding-top: 42px; padding-bottom: 42px; }
.team-story h2 { max-width: 23ch; font-size: clamp(1.5rem, 2.5vw, 2.3rem); line-height: 1.35; }
.team-story h2 + p { margin-top: 20px; color: #765847; font-size: .88rem; }
.team-story-details summary { font-size: 1rem; padding-block: 16px; }
.team-story-copy { display: grid; gap: 16px; color: #514943; font-size: .92rem; line-height: 1.8; margin-top: 12px; }
.team-journey .team-values { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 36px; padding-top: 44px; padding-bottom: 0; }
.team-values h2 { font-size: 1.5rem; }
.team-values h3 { font-size: 1.1rem; margin-bottom: 12px; }
.team-values p { color: #5d514b; font-size: .9rem; }
.team-journey :is(.team-index a, .team-card, .team-details summary, .team-story-details summary, .team-service-link, .team-back):focus-visible { outline: 3px solid #855b3f; outline-offset: 5px; }
.team-journey :is(#encontrar-equipa, .team-card):target { scroll-margin-top: 112px; }
.team-card:target { outline: 2px solid #855b3f; outline-offset: 4px; }
@media (max-width: 1050px) {
  .team-grid--founders .team-card { display: block; }
  .team-grid--founders .team-photo { min-height: 0; height: auto; aspect-ratio: 1.15 / 1; }
  .team-grid { gap: 20px; }
  .team-copy { padding: 22px; }
}
@media (max-width: 760px) {
  .team-journey .team-film { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 32px; scroll-margin-top: 84px; }
  .team-index ul, .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-journey .team-story, .team-journey .team-values { grid-template-columns: 1fr; gap: 24px; }
  .team-card { scroll-margin-top: 84px; }
  .team-journey :is(#encontrar-equipa, .team-card):target { scroll-margin-top: 84px; }
}
@media (max-width: 540px) {
  .team-journey .profile-header { padding: 30px 0 36px; }
  .team-journey .team-intro { padding-top: 32px; }
  .team-index a { padding: 14px; }
  .team-grid { grid-template-columns: minmax(0, 1fr); }
  .team-photo, .team-grid--founders .team-photo { aspect-ratio: 1.2 / 1; object-position: center 23%; }
  .team-copy { padding: 24px; }
  .team-grid + .team-section-heading { margin-top: 40px; }
  .team-journey .team-roster { padding-top: 40px; padding-bottom: 28px; }
}
